~ubuntu-branches/debian/squeeze/ntp/squeeze-201010051545

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Matt Zimmerman
  • Date: 2004-10-11 16:10:27 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041011161027-icyjbji8ujym633o
Tags: 1:4.2.0a-10ubuntu2
Use ntp.ubuntulinux.org instead of pool.ntp.org

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by Autoconf 2.50.
 
3
# Generated by GNU Autoconf 2.59 for ntp 4.2.0a.
4
4
#
5
 
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6
 
# Free Software Foundation, Inc.
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
7
6
# This configure script is free software; the Free Software Foundation
8
7
# gives unlimited permission to copy, distribute and modify it.
 
8
## --------------------- ##
 
9
## M4sh Initialization.  ##
 
10
## --------------------- ##
9
11
 
10
12
# Be Bourne compatible
11
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12
14
  emulate sh
13
15
  NULLCMD=:
 
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
17
  # is contrary to our usage.  Disable this feature.
 
18
  alias -g '${1+"$@"}'='"$@"'
14
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15
20
  set -o posix
16
21
fi
 
22
DUALCASE=1; export DUALCASE # for MKS sh
 
23
 
 
24
# Support unset when possible.
 
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
26
  as_unset=unset
 
27
else
 
28
  as_unset=false
 
29
fi
 
30
 
 
31
 
 
32
# Work around bugs in pre-3.0 UWIN ksh.
 
33
$as_unset ENV MAIL MAILPATH
 
34
PS1='$ '
 
35
PS2='> '
 
36
PS4='+ '
 
37
 
 
38
# NLS nuisances.
 
39
for as_var in \
 
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
42
  LC_TELEPHONE LC_TIME
 
43
do
 
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
45
    eval $as_var=C; export $as_var
 
46
  else
 
47
    $as_unset $as_var
 
48
  fi
 
49
done
 
50
 
 
51
# Required to use basename.
 
52
if expr a : '\(a\)' >/dev/null 2>&1; then
 
53
  as_expr=expr
 
54
else
 
55
  as_expr=false
 
56
fi
 
57
 
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
59
  as_basename=basename
 
60
else
 
61
  as_basename=false
 
62
fi
 
63
 
17
64
 
18
65
# Name of the executable.
19
 
as_me=`echo "$0" |sed 's,.*[\\/],,'`
 
66
as_me=`$as_basename "$0" ||
 
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
68
         X"$0" : 'X\(//\)$' \| \
 
69
         X"$0" : 'X\(/\)$' \| \
 
70
         .     : '\(.\)' 2>/dev/null ||
 
71
echo X/"$0" |
 
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
74
          /^X\/\(\/\).*/{ s//\1/; q; }
 
75
          s/.*/./; q'`
 
76
 
 
77
 
 
78
# PATH needs CR, and LINENO needs CR and PATH.
 
79
# Avoid depending upon Character Ranges.
 
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
83
as_cr_digits='0123456789'
 
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
85
 
 
86
# The user is always right.
 
87
if test "${PATH_SEPARATOR+set}" != set; then
 
88
  echo "#! /bin/sh" >conf$$.sh
 
89
  echo  "exit 0"   >>conf$$.sh
 
90
  chmod +x conf$$.sh
 
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
92
    PATH_SEPARATOR=';'
 
93
  else
 
94
    PATH_SEPARATOR=:
 
95
  fi
 
96
  rm -f conf$$.sh
 
97
fi
 
98
 
 
99
 
 
100
  as_lineno_1=$LINENO
 
101
  as_lineno_2=$LINENO
 
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
105
  # Find who we are.  Look in the path if we contain no path at all
 
106
  # relative or not.
 
107
  case $0 in
 
108
    *[\\/]* ) as_myself=$0 ;;
 
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
110
for as_dir in $PATH
 
111
do
 
112
  IFS=$as_save_IFS
 
113
  test -z "$as_dir" && as_dir=.
 
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
115
done
 
116
 
 
117
       ;;
 
118
  esac
 
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
120
  # in which case we are not to be found in the path.
 
121
  if test "x$as_myself" = x; then
 
122
    as_myself=$0
 
123
  fi
 
124
  if test ! -f "$as_myself"; then
 
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
126
   { (exit 1); exit 1; }; }
 
127
  fi
 
128
  case $CONFIG_SHELL in
 
129
  '')
 
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
132
do
 
133
  IFS=$as_save_IFS
 
134
  test -z "$as_dir" && as_dir=.
 
135
  for as_base in sh bash ksh sh5; do
 
136
         case $as_dir in
 
137
         /*)
 
138
           if ("$as_dir/$as_base" -c '
 
139
  as_lineno_1=$LINENO
 
140
  as_lineno_2=$LINENO
 
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
146
             CONFIG_SHELL=$as_dir/$as_base
 
147
             export CONFIG_SHELL
 
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
149
           fi;;
 
150
         esac
 
151
       done
 
152
done
 
153
;;
 
154
  esac
 
155
 
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
158
  # line-number line before each line; the second 'sed' does the real
 
159
  # work.  The second script uses 'N' to pair each line-number line
 
160
  # with the numbered line, and appends trailing '-' during
 
161
  # substitution so that $LINENO is not a special case at line end.
 
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
164
  sed '=' <$as_myself |
 
165
    sed '
 
166
      N
 
167
      s,$,-,
 
168
      : loop
 
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
170
      t loop
 
171
      s,-$,,
 
172
      s,^['$as_cr_digits']*\n,,
 
173
    ' >$as_me.lineno &&
 
174
  chmod +x $as_me.lineno ||
 
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
176
   { (exit 1); exit 1; }; }
 
177
 
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
 
179
  # (the dirname of $[0] is not the place where we might find the
 
180
  # original and so on.  Autoconf is especially sensible to this).
 
181
  . ./$as_me.lineno
 
182
  # Exit status is that of the last command.
 
183
  exit
 
184
}
 
185
 
 
186
 
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
188
  *c*,-n*) ECHO_N= ECHO_C='
 
189
' ECHO_T='      ' ;;
 
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
192
esac
20
193
 
21
194
if expr a : '\(a\)' >/dev/null 2>&1; then
22
195
  as_expr=expr
42
215
fi
43
216
rm -f conf$$ conf$$.exe conf$$.file
44
217
 
 
218
if mkdir -p . 2>/dev/null; then
 
219
  as_mkdir_p=:
 
220
else
 
221
  test -d ./-p && rmdir ./-p
 
222
  as_mkdir_p=false
 
223
fi
 
224
 
45
225
as_executable_p="test -f"
46
226
 
47
 
# Support unset when possible.
48
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
49
 
  as_unset=unset
50
 
else
51
 
  as_unset=false
52
 
fi
53
 
 
54
 
# NLS nuisances.
55
 
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
56
 
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
57
 
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
58
 
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
59
 
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
60
 
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
61
 
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
62
 
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
 
227
# Sed expression to map a string onto a valid CPP name.
 
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
229
 
 
230
# Sed expression to map a string onto a valid variable name.
 
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
232
 
63
233
 
64
234
# IFS
65
235
# We need space, tab and new line, in precisely that order.
68
238
IFS="   $as_nl"
69
239
 
70
240
# CDPATH.
71
 
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
241
$as_unset CDPATH
 
242
 
72
243
 
73
244
# Name of the host.
74
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
81
252
# Initializations.
82
253
#
83
254
ac_default_prefix=/usr/local
 
255
ac_config_libobj_dir=.
84
256
cross_compiling=no
85
257
subdirs=
86
 
MFLAGS= MAKEFLAGS=
 
258
MFLAGS=
 
259
MAKEFLAGS=
87
260
SHELL=${CONFIG_SHELL-/bin/sh}
88
261
 
89
262
# Maximum number of lines to put in a shell here document.
91
264
# only ac_max_sed_lines should be used.
92
265
: ${ac_max_here_lines=38}
93
266
 
94
 
# Avoid depending upon Character Ranges.
95
 
ac_cr_az='abcdefghijklmnopqrstuvwxyz'
96
 
ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
97
 
ac_cr_09='0123456789'
98
 
ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
99
 
 
100
 
# Sed expression to map a string onto a valid sh and CPP variable names.
101
 
ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
102
 
ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
103
 
 
104
 
ac_unique_file="ntpd/ntp_refclock.c"
 
267
# Identity of this package.
 
268
PACKAGE_NAME='ntp'
 
269
PACKAGE_TARNAME='ntp'
 
270
PACKAGE_VERSION='4.2.0a'
 
271
PACKAGE_STRING='ntp 4.2.0a'
 
272
PACKAGE_BUGREPORT=''
 
273
 
105
274
# Factoring default headers for most tests.
106
275
ac_includes_default="\
107
276
#include <stdio.h>
108
 
#include <sys/types.h>
109
 
#include <sys/stat.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
110
283
#if STDC_HEADERS
111
284
# include <stdlib.h>
112
285
# include <stddef.h>
120
293
#  include <memory.h>
121
294
# endif
122
295
# include <string.h>
123
 
#else
124
 
# if HAVE_STRINGS_H
125
 
#  include <strings.h>
126
 
# endif
 
296
#endif
 
297
#if HAVE_STRINGS_H
 
298
# include <strings.h>
127
299
#endif
128
300
#if HAVE_INTTYPES_H
129
301
# include <inttypes.h>
 
302
#else
 
303
# if HAVE_STDINT_H
 
304
#  include <stdint.h>
 
305
# endif
130
306
#endif
131
307
#if HAVE_UNISTD_H
132
308
# include <unistd.h>
133
309
#endif"
134
310
 
 
311
ac_subdirs_all="$ac_subdirs_all arlib"
 
312
ac_subdirs_all="$ac_subdirs_all sntp"
 
313
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LN_S RANLIB ac_ct_RANLIB PATH_SH PATH_PERL READLINE_LIBS U ANSI2KNR LIBOBJS LIBPARSE MAKE_LIBPARSE MAKE_LIBPARSE_KERNEL MAKE_CHECK_Y2K OPENSSL OPENSSL_INC OPENSSL_LIB MAKE_NTP_KEYGEN LCRYPTO EF_PROGS EF_LIBS MAKE_SNTP TESTDCF DCFD MAKE_PARSEKMODULE PROPDELAY CHUTEST CLKTEST MAKE_ADJTIMED MAKE_NTPTIME MAKE_TICKADJ MAKE_TIMETRIM MAKE_LIBNTPSIM MAKE_NTPDSIM ARLIB_DIR subdirs LTLIBOBJS'
 
314
ac_subst_files=''
 
315
 
135
316
# Initialize some variables set by options.
136
317
ac_init_help=
137
318
ac_init_version=false
170
351
infodir='${prefix}/info'
171
352
mandir='${prefix}/man'
172
353
 
173
 
# Identity of this package.
174
 
PACKAGE_NAME=
175
 
PACKAGE_TARNAME=
176
 
PACKAGE_VERSION=
177
 
PACKAGE_STRING=
178
 
PACKAGE_BUGREPORT=
179
 
 
180
354
ac_prev=
181
355
for ac_option
182
356
do
222
396
  -disable-* | --disable-*)
223
397
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
224
398
    # Reject names that are not valid shell variable names.
225
 
    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
 
399
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
226
400
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
227
401
   { (exit 1); exit 1; }; }
228
402
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
231
405
  -enable-* | --enable-*)
232
406
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
233
407
    # Reject names that are not valid shell variable names.
234
 
    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
 
408
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
235
409
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
236
410
   { (exit 1); exit 1; }; }
237
411
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
309
483
    with_fp=no ;;
310
484
 
311
485
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
312
 
  | --no-cr | --no-c)
 
486
  | --no-cr | --no-c | -n)
313
487
    no_create=yes ;;
314
488
 
315
489
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
413
587
  -with-* | --with-*)
414
588
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
415
589
    # Reject names that are not valid shell variable names.
416
 
    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
 
590
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
417
591
      { echo "$as_me: error: invalid package name: $ac_package" >&2
418
592
   { (exit 1); exit 1; }; }
419
593
    ac_package=`echo $ac_package| sed 's/-/_/g'`
426
600
  -without-* | --without-*)
427
601
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
428
602
    # Reject names that are not valid shell variable names.
429
 
    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
 
603
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
430
604
      { echo "$as_me: error: invalid package name: $ac_package" >&2
431
605
   { (exit 1); exit 1; }; }
432
606
    ac_package=`echo $ac_package | sed 's/-/_/g'`
458
632
  *=*)
459
633
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
460
634
    # Reject names that are not valid shell variable names.
461
 
    expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
 
635
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
462
636
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
463
637
   { (exit 1); exit 1; }; }
464
638
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
468
642
  *)
469
643
    # FIXME: should be removed in autoconf 3.0.
470
644
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
471
 
    expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
 
645
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
472
646
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
473
647
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
474
648
    ;;
483
657
fi
484
658
 
485
659
# Be sure to have absolute paths.
 
660
for ac_var in exec_prefix prefix
 
661
do
 
662
  eval ac_val=$`echo $ac_var`
 
663
  case $ac_val in
 
664
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
665
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
666
   { (exit 1); exit 1; }; };;
 
667
  esac
 
668
done
 
669
 
 
670
# Be sure to have absolute paths.
486
671
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
487
 
              localstatedir libdir includedir oldincludedir infodir mandir \
488
 
              exec_prefix prefix
 
672
              localstatedir libdir includedir oldincludedir infodir mandir
489
673
do
490
674
  eval ac_val=$`echo $ac_var`
491
675
  case $ac_val in
492
676
    [\\/$]* | ?:[\\/]* ) ;;
493
 
    NONE ) ;;
494
 
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
 
677
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
495
678
   { (exit 1); exit 1; }; };;
496
679
  esac
497
680
done
498
681
 
499
682
# There might be people who depend on the old broken behavior: `$host'
500
683
# used to hold the argument of --host etc.
 
684
# FIXME: To remove some day.
501
685
build=$build_alias
502
686
host=$host_alias
503
687
target=$target_alias
504
688
 
505
 
# FIXME: should be removed in autoconf 3.0.
 
689
# FIXME: To remove some day.
506
690
if test "x$host_alias" != x; then
507
691
  if test "x$build_alias" = x; then
508
692
    cross_compiling=maybe
518
702
 
519
703
test "$silent" = yes && exec 6>/dev/null
520
704
 
 
705
 
521
706
# Find the source files, if location was not specified.
522
707
if test -z "$srcdir"; then
523
708
  ac_srcdir_defaulted=yes
524
709
  # Try the directory containing this script, then its parent.
525
 
  ac_prog=$0
526
 
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
527
 
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
710
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
711
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
712
         X"$0" : 'X\(//\)[^/]' \| \
 
713
         X"$0" : 'X\(//\)$' \| \
 
714
         X"$0" : 'X\(/\)' \| \
 
715
         .     : '\(.\)' 2>/dev/null ||
 
716
echo X"$0" |
 
717
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
718
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
719
          /^X\(\/\/\)$/{ s//\1/; q; }
 
720
          /^X\(\/\).*/{ s//\1/; q; }
 
721
          s/.*/./; q'`
528
722
  srcdir=$ac_confdir
529
723
  if test ! -r $srcdir/$ac_unique_file; then
530
724
    srcdir=..
534
728
fi
535
729
if test ! -r $srcdir/$ac_unique_file; then
536
730
  if test "$ac_srcdir_defaulted" = yes; then
537
 
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
 
731
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
538
732
   { (exit 1); exit 1; }; }
539
733
  else
540
 
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
 
734
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
541
735
   { (exit 1); exit 1; }; }
542
736
  fi
543
737
fi
 
738
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
739
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
740
   { (exit 1); exit 1; }; }
544
741
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
545
742
ac_env_build_alias_set=${build_alias+set}
546
743
ac_env_build_alias_value=$build_alias
581
778
if test "$ac_init_help" = "long"; then
582
779
  # Omit some internal or obsolete options to make the list less imposing.
583
780
  # This message is too long to be a string in the A/UX 3.1 sh.
584
 
  cat <<EOF
585
 
\`configure' configures this package to adapt to many kinds of systems.
 
781
  cat <<_ACEOF
 
782
\`configure' configures ntp 4.2.0a to adapt to many kinds of systems.
586
783
 
587
784
Usage: $0 [OPTION]... [VAR=VALUE]...
588
785
 
602
799
  -n, --no-create         do not create output files
603
800
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
604
801
 
605
 
EOF
 
802
_ACEOF
606
803
 
607
 
  cat <<EOF
 
804
  cat <<_ACEOF
608
805
Installation directories:
609
806
  --prefix=PREFIX         install architecture-independent files in PREFIX
610
 
                          [$ac_default_prefix]
 
807
                          [$ac_default_prefix]
611
808
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
612
 
                          [PREFIX]
 
809
                          [PREFIX]
613
810
 
614
811
By default, \`make install' will install all the files in
615
812
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
631
828
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
632
829
  --infodir=DIR          info documentation [PREFIX/info]
633
830
  --mandir=DIR           man documentation [PREFIX/man]
634
 
EOF
 
831
_ACEOF
635
832
 
636
 
  cat <<\EOF
 
833
  cat <<\_ACEOF
637
834
 
638
835
Program names:
639
836
  --program-prefix=PREFIX            prepend PREFIX to installed program names
642
839
 
643
840
System types:
644
841
  --build=BUILD     configure for building on BUILD [guessed]
645
 
  --host=HOST       build programs to run on HOST [BUILD]
646
 
  --target=TARGET   configure for building compilers for TARGET [HOST]
647
 
EOF
 
842
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
843
_ACEOF
648
844
fi
649
845
 
650
846
if test -n "$ac_init_help"; then
651
 
 
652
 
  cat <<\EOF
 
847
  case $ac_init_help in
 
848
     short | recursive ) echo "Configuration of ntp 4.2.0a:";;
 
849
   esac
 
850
  cat <<\_ACEOF
653
851
 
654
852
Optional Features:
655
853
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
656
854
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
657
855
  --disable-dependency-tracking Speeds up one-time builds
658
856
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
857
  --enable-clockctl       Use /dev/clockctl for non-root clock control
 
858
  --enable-linuxcaps      Use Linux capabilities for non-root clock control
659
859
  --enable-debugging      + include debugging code
660
860
  --enable-dst-minutes=60 + minutes per DST adjustment
661
 
  --enable-HOPFSERIAL     + hopf serial clock device
662
 
  --enable-HOPFPCI        + hopf 6039 PCI board
663
861
  --enable-BANCOMM        - Datum/Bancomm bc635/VME interface
664
862
  --enable-GPSVME         - TrueTime GPS receiver/VME interface
665
 
  --enable-SHM            - SHM clock attached thru shared memory
666
863
  --enable-all-clocks     + include all suitable non-PARSE clocks:
667
 
  --enable-ACTS           + ACTS modem service
 
864
  --enable-ACTS           s ACTS modem service
668
865
  --enable-ARBITER        + Arbiter 1088A/B GPS receiver
669
866
  --enable-ARCRON-MSF     + Arcron MSF receiver
 
867
  --enable-AS2201         + Austron 2200A/2201A GPS receiver
670
868
  --enable-ATOM           s ATOM PPS interface
671
 
  --enable-AS2201         + Austron 2200A/2201A GPS receiver
672
 
  --enable-CHU            - CHU modem/decoder
 
869
  --enable-CHRONOLOG      + Chrono-log K-series WWVB receiver
 
870
  --enable-CHU            + CHU modem/decoder
673
871
  --enable-AUDIO-CHU      s CHU audio/decoder
674
872
  --enable-DATUM          s Datum Programmable Time System
 
873
  --enable-DUMBCLOCK      + Dumb generic hh:mm:ss local clock
675
874
  --enable-FG             + Forum Graphic GPS
676
875
  --enable-HEATH          s Heath GC-1000 WWV/WWVH receiver
 
876
  --enable-HOPFSERIAL     + hopf serial clock device
 
877
  --enable-HOPFPCI        + hopf 6039 PCI board
677
878
  --enable-HPGPS          + HP 58503A GPS receiver
678
 
  --enable-IRIG           s Sun IRIG audio decoder
 
879
  --enable-IRIG           s IRIG audio decoder
 
880
  --enable-JJY            + JJY receiver
 
881
  --enable-JUPITER        s Rockwell Jupiter GPS receiver
679
882
  --enable-LEITCH         + Leitch CSD 5300 Master Clock System Driver
680
883
  --enable-LOCAL-CLOCK    + local clock reference
681
884
  --enable-MSFEES         + EES M201 MSF receiver
682
885
  --enable-MX4200         s Magnavox MX4200 GPS receiver
 
886
  --enable-NEOCLOCK4X     + NeoClock4X DCF77 / TDF receiver
683
887
  --enable-NMEA           + NMEA GPS receiver
684
888
  --enable-ONCORE         s Motorola VP/UT Oncore GPS receiver
685
 
  --enable-PALISADE       + Palisade clock
 
889
  --enable-PALISADE       s Palisade clock
 
890
  --enable-PCF            + Conrad parallel port radio clock
686
891
  --enable-PST            + PST/Traconex 1020 WWV/WWVH receiver
687
 
  --enable-JUPITER        s Rockwell Jupiter GPS receiver
688
892
  --enable-PTBACTS        s PTB modem service
 
893
  --enable-RIPENCC        - RIPENCC specific Trimble driver
 
894
  --enable-SHM            s SHM clock attached thru shared memory
 
895
  --enable-SPECTRACOM     + Spectracom 8170/Netclock/2 WWVB receiver
689
896
  --enable-TPRO           s KSI/Odetics TPRO/S GPS receiver/IRIG interface
690
897
  --enable-TRAK           + TRAK 8810 GPS receiver
691
 
  --enable-CHRONOLOG      + Chrono-log K-series WWVB receiver
692
 
  --enable-DUMBCLOCK      + Dumb generic hh:mm:ss local clock
693
 
  --enable-PCF            + Conrad parallel port radio clock
694
 
  --enable-SPECTRACOM     + Spectracom 8170/Netclock/2 WWVB receiver
695
898
  --enable-TRUETIME       s Kinemetrics/TrueTime receivers
 
899
  --enable-TT560          - TrueTime 560 IRIG-B decoder
696
900
  --enable-ULINK          + Ultralink WWVB receiver
697
 
  --enable-WWV            + WWV Audio receiver
698
901
  --enable-USNO           s USNO modem service
 
902
  --enable-WWV            s WWV Audio receiver
 
903
  --enable-ZYFER          + Zyfer GPStarplus receiver
699
904
  --enable-parse-clocks   - include all suitable PARSE clocks:
700
905
  --enable-COMPUTIME      s Diem Computime Radio Clock
701
906
  --enable-DCF7000        s ELV/DCF7000 clock
713
918
                          s the adjtime() call is accurate
714
919
  --enable-tick=VALUE     s force a value for 'tick'
715
920
  --enable-tickadj=VALUE  s force a value for 'tickadj'
 
921
  --enable-simulator      - build/install the NTPD simulator?
716
922
  --enable-udp-wildcard   s use UDP wildcard delivery
717
923
  --enable-slew-always    s always slew the time
718
924
  --enable-step-slew      s step and slew the time
720
926
  --enable-hourly-todr-sync
721
927
                          s if we should sync TODR hourly
722
928
  --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
 
929
  --enable-irig-sawtooth  s if we should enable the IRIG sawtooth filter
 
930
  --enable-nist           - if we should enable the NIST lockclock scheme
 
931
  --enable-errorcache     - if we should enable caching bad IP destinations
 
932
  --enable-ipv6           use IPv6?
723
933
 
724
934
Optional Packages:
725
935
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
726
936
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
727
937
  --with-openssl-libdir   + =/something/reasonable
728
938
  --with-openssl-incdir   + =/something/reasonable
729
 
  --with-crypto           + ={autokey,rsaref}
 
939
  --with-crypto           + =openssl
730
940
  --with-electricfence    - compile with ElectricFence malloc debugger
 
941
  --with-sntp             - Build SNTP?
 
942
  --with-kame=PATH      use Kame IPv6 default path /usr/local/v6
 
943
  --with-arlib            - Compile the async resolver library?
731
944
 
732
945
Some influential environment variables:
733
946
  CC          C compiler command
741
954
Use these variables to override the choices made by `configure' or to help
742
955
it to find libraries and programs with nonstandard names/locations.
743
956
 
744
 
EOF
 
957
_ACEOF
745
958
fi
746
959
 
747
960
if test "$ac_init_help" = "recursive"; then
748
961
  # If there are subdirs, report their specific --help.
749
962
  ac_popdir=`pwd`
750
 
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
751
 
    cd $ac_subdir
752
 
    # A "../" for each directory in /$ac_subdir.
753
 
    ac_dots=`echo $ac_subdir |
754
 
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
755
 
 
756
 
    case $srcdir in
757
 
    .) # No --srcdir option.  We are building in place.
758
 
      ac_sub_srcdir=$srcdir ;;
759
 
    [\\/]* | ?:[\\/]* ) # Absolute path.
760
 
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
761
 
    *) # Relative path.
762
 
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
763
 
    esac
764
 
 
 
963
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
964
    test -d $ac_dir || continue
 
965
    ac_builddir=.
 
966
 
 
967
if test "$ac_dir" != .; then
 
968
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
969
  # A "../" for each directory in $ac_dir_suffix.
 
970
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
971
else
 
972
  ac_dir_suffix= ac_top_builddir=
 
973
fi
 
974
 
 
975
case $srcdir in
 
976
  .)  # No --srcdir option.  We are building in place.
 
977
    ac_srcdir=.
 
978
    if test -z "$ac_top_builddir"; then
 
979
       ac_top_srcdir=.
 
980
    else
 
981
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
982
    fi ;;
 
983
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
984
    ac_srcdir=$srcdir$ac_dir_suffix;
 
985
    ac_top_srcdir=$srcdir ;;
 
986
  *) # Relative path.
 
987
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
988
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
989
esac
 
990
 
 
991
# Do not use `cd foo && pwd` to compute absolute paths, because
 
992
# the directories may not exist.
 
993
case `pwd` in
 
994
.) ac_abs_builddir="$ac_dir";;
 
995
*)
 
996
  case "$ac_dir" in
 
997
  .) ac_abs_builddir=`pwd`;;
 
998
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
999
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1000
  esac;;
 
1001
esac
 
1002
case $ac_abs_builddir in
 
1003
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1004
*)
 
1005
  case ${ac_top_builddir}. in
 
1006
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1007
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1008
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1009
  esac;;
 
1010
esac
 
1011
case $ac_abs_builddir in
 
1012
.) ac_abs_srcdir=$ac_srcdir;;
 
1013
*)
 
1014
  case $ac_srcdir in
 
1015
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1016
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1017
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1018
  esac;;
 
1019
esac
 
1020
case $ac_abs_builddir in
 
1021
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1022
*)
 
1023
  case $ac_top_srcdir in
 
1024
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1025
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1026
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1027
  esac;;
 
1028
esac
 
1029
 
 
1030
    cd $ac_dir
765
1031
    # Check for guested configure; otherwise get Cygnus style configure.
766
 
    if test -f $ac_sub_srcdir/configure.gnu; then
767
 
      echo
768
 
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
769
 
    elif test -f $ac_sub_srcdir/configure; then
770
 
      echo
771
 
      $SHELL $ac_sub_srcdir/configure  --help=recursive
772
 
    elif test -f $ac_sub_srcdir/configure.ac ||
773
 
           test -f $ac_sub_srcdir/configure.in; then
 
1032
    if test -f $ac_srcdir/configure.gnu; then
 
1033
      echo
 
1034
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1035
    elif test -f $ac_srcdir/configure; then
 
1036
      echo
 
1037
      $SHELL $ac_srcdir/configure  --help=recursive
 
1038
    elif test -f $ac_srcdir/configure.ac ||
 
1039
           test -f $ac_srcdir/configure.in; then
774
1040
      echo
775
1041
      $ac_configure --help
776
1042
    else
777
 
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
 
1043
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
778
1044
    fi
779
 
    cd $ac_popdir
 
1045
    cd "$ac_popdir"
780
1046
  done
781
1047
fi
782
1048
 
783
1049
test -n "$ac_init_help" && exit 0
784
1050
if $ac_init_version; then
785
 
  cat <<\EOF
 
1051
  cat <<\_ACEOF
 
1052
ntp configure 4.2.0a
 
1053
generated by GNU Autoconf 2.59
786
1054
 
787
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
788
 
Free Software Foundation, Inc.
 
1055
Copyright (C) 2003 Free Software Foundation, Inc.
789
1056
This configure script is free software; the Free Software Foundation
790
1057
gives unlimited permission to copy, distribute and modify it.
791
 
EOF
 
1058
_ACEOF
792
1059
  exit 0
793
1060
fi
794
1061
exec 5>config.log
795
 
cat >&5 <<EOF
 
1062
cat >&5 <<_ACEOF
796
1063
This file contains any messages produced by compilers while
797
1064
running configure, to aid debugging if configure makes a mistake.
798
1065
 
799
 
It was created by $as_me, which was
800
 
generated by GNU Autoconf 2.50.  Invocation command line was
 
1066
It was created by ntp $as_me 4.2.0a, which was
 
1067
generated by GNU Autoconf 2.59.  Invocation command line was
801
1068
 
802
1069
  $ $0 $@
803
1070
 
804
 
EOF
 
1071
_ACEOF
805
1072
{
806
1073
cat <<_ASUNAME
807
 
## ---------- ##
808
 
## Platform.  ##
809
 
## ---------- ##
 
1074
## --------- ##
 
1075
## Platform. ##
 
1076
## --------- ##
810
1077
 
811
1078
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
812
1079
uname -m = `(uname -m) 2>/dev/null || echo unknown`
825
1092
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
826
1093
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
827
1094
 
828
 
PATH = $PATH
829
 
 
830
1095
_ASUNAME
 
1096
 
 
1097
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1098
for as_dir in $PATH
 
1099
do
 
1100
  IFS=$as_save_IFS
 
1101
  test -z "$as_dir" && as_dir=.
 
1102
  echo "PATH: $as_dir"
 
1103
done
 
1104
 
831
1105
} >&5
832
1106
 
833
 
cat >&5 <<EOF
834
 
## ------------ ##
835
 
## Core tests.  ##
836
 
## ------------ ##
837
 
 
838
 
EOF
 
1107
cat >&5 <<_ACEOF
 
1108
 
 
1109
 
 
1110
## ----------- ##
 
1111
## Core tests. ##
 
1112
## ----------- ##
 
1113
 
 
1114
_ACEOF
 
1115
 
839
1116
 
840
1117
# Keep a trace of the command line.
841
1118
# Strip out --no-create and --no-recursion so they do not pile up.
 
1119
# Strip out --silent because we don't want to record it for future runs.
842
1120
# Also quote any args containing shell meta-characters.
 
1121
# Make two passes to allow for proper duplicate-argument suppression.
843
1122
ac_configure_args=
 
1123
ac_configure_args0=
 
1124
ac_configure_args1=
844
1125
ac_sep=
845
 
for ac_arg
 
1126
ac_must_keep_next=false
 
1127
for ac_pass in 1 2
846
1128
do
847
 
  case $ac_arg in
848
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
849
 
  | --no-cr | --no-c) ;;
850
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
851
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
852
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
853
 
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
854
 
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
855
 
    ac_sep=" " ;;
856
 
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
857
 
     ac_sep=" " ;;
858
 
  esac
859
 
  # Get rid of the leading space.
 
1129
  for ac_arg
 
1130
  do
 
1131
    case $ac_arg in
 
1132
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1133
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1134
    | -silent | --silent | --silen | --sile | --sil)
 
1135
      continue ;;
 
1136
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1137
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1138
    esac
 
1139
    case $ac_pass in
 
1140
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1141
    2)
 
1142
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1143
      if test $ac_must_keep_next = true; then
 
1144
        ac_must_keep_next=false # Got value, back to normal.
 
1145
      else
 
1146
        case $ac_arg in
 
1147
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1148
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1149
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1150
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1151
            case "$ac_configure_args0 " in
 
1152
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1153
            esac
 
1154
            ;;
 
1155
          -* ) ac_must_keep_next=true ;;
 
1156
        esac
 
1157
      fi
 
1158
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1159
      # Get rid of the leading space.
 
1160
      ac_sep=" "
 
1161
      ;;
 
1162
    esac
 
1163
  done
860
1164
done
 
1165
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1166
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
861
1167
 
862
1168
# When interrupted or exit'd, cleanup temporary files, and complete
863
1169
# config.log.  We remove comments because anyway the quotes in there
864
1170
# would cause problems or look ugly.
 
1171
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1172
# such as our DU 5.0 friend, will then `close' the trap.
865
1173
trap 'exit_status=$?
866
1174
  # Save into config.log some information that might help in debugging.
867
 
  echo >&5
868
 
  echo "## ----------------- ##" >&5
869
 
  echo "## Cache variables.  ##" >&5
870
 
  echo "## ----------------- ##" >&5
871
 
  echo >&5
872
 
  # The following way of writing the cache mishandles newlines in values,
 
1175
  {
 
1176
    echo
 
1177
 
 
1178
    cat <<\_ASBOX
 
1179
## ---------------- ##
 
1180
## Cache variables. ##
 
1181
## ---------------- ##
 
1182
_ASBOX
 
1183
    echo
 
1184
    # The following way of writing the cache mishandles newlines in values,
873
1185
{
874
1186
  (set) 2>&1 |
875
1187
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
876
1188
    *ac_space=\ *)
877
1189
      sed -n \
878
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
879
 
          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1190
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1191
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
880
1192
      ;;
881
1193
    *)
882
1194
      sed -n \
883
 
        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1195
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
884
1196
      ;;
885
1197
    esac;
886
 
} >&5
887
 
  sed "/^$/d" confdefs.h >conftest.log
888
 
  if test -s conftest.log; then
889
 
    echo >&5
890
 
    echo "## ------------ ##" >&5
891
 
    echo "## confdefs.h.  ##" >&5
892
 
    echo "## ------------ ##" >&5
893
 
    echo >&5
894
 
    cat conftest.log >&5
895
 
  fi
896
 
  (echo; echo) >&5
897
 
  test "$ac_signal" != 0 &&
898
 
    echo "$as_me: caught signal $ac_signal" >&5
899
 
  echo "$as_me: exit $exit_status" >&5
900
 
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
 
1198
}
 
1199
    echo
 
1200
 
 
1201
    cat <<\_ASBOX
 
1202
## ----------------- ##
 
1203
## Output variables. ##
 
1204
## ----------------- ##
 
1205
_ASBOX
 
1206
    echo
 
1207
    for ac_var in $ac_subst_vars
 
1208
    do
 
1209
      eval ac_val=$`echo $ac_var`
 
1210
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1211
    done | sort
 
1212
    echo
 
1213
 
 
1214
    if test -n "$ac_subst_files"; then
 
1215
      cat <<\_ASBOX
 
1216
## ------------- ##
 
1217
## Output files. ##
 
1218
## ------------- ##
 
1219
_ASBOX
 
1220
      echo
 
1221
      for ac_var in $ac_subst_files
 
1222
      do
 
1223
        eval ac_val=$`echo $ac_var`
 
1224
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1225
      done | sort
 
1226
      echo
 
1227
    fi
 
1228
 
 
1229
    if test -s confdefs.h; then
 
1230
      cat <<\_ASBOX
 
1231
## ----------- ##
 
1232
## confdefs.h. ##
 
1233
## ----------- ##
 
1234
_ASBOX
 
1235
      echo
 
1236
      sed "/^$/d" confdefs.h | sort
 
1237
      echo
 
1238
    fi
 
1239
    test "$ac_signal" != 0 &&
 
1240
      echo "$as_me: caught signal $ac_signal"
 
1241
    echo "$as_me: exit $exit_status"
 
1242
  } >&5
 
1243
  rm -f core *.core &&
 
1244
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
901
1245
    exit $exit_status
902
1246
     ' 0
903
1247
for ac_signal in 1 2 13 15; do
904
 
  trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
 
1248
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
905
1249
done
906
1250
ac_signal=0
907
1251
 
910
1254
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
911
1255
echo >confdefs.h
912
1256
 
 
1257
# Predefined preprocessor variables.
 
1258
 
 
1259
cat >>confdefs.h <<_ACEOF
 
1260
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1261
_ACEOF
 
1262
 
 
1263
 
 
1264
cat >>confdefs.h <<_ACEOF
 
1265
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1266
_ACEOF
 
1267
 
 
1268
 
 
1269
cat >>confdefs.h <<_ACEOF
 
1270
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1271
_ACEOF
 
1272
 
 
1273
 
 
1274
cat >>confdefs.h <<_ACEOF
 
1275
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1276
_ACEOF
 
1277
 
 
1278
 
 
1279
cat >>confdefs.h <<_ACEOF
 
1280
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1281
_ACEOF
 
1282
 
 
1283
 
913
1284
# Let the site file select an alternate cache file if it wants to.
914
1285
# Prefer explicitly selected file to automatically selected ones.
915
1286
if test -z "$CONFIG_SITE"; then
921
1292
fi
922
1293
for ac_site_file in $CONFIG_SITE; do
923
1294
  if test -r "$ac_site_file"; then
924
 
    { echo "$as_me:924: loading site script $ac_site_file" >&5
 
1295
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
925
1296
echo "$as_me: loading site script $ac_site_file" >&6;}
926
 
    cat "$ac_site_file" >&5
 
1297
    sed 's/^/| /' "$ac_site_file" >&5
927
1298
    . "$ac_site_file"
928
1299
  fi
929
1300
done
932
1303
  # Some versions of bash will fail to source /dev/null (special
933
1304
  # files actually), so we avoid doing that.
934
1305
  if test -f "$cache_file"; then
935
 
    { echo "$as_me:935: loading cache $cache_file" >&5
 
1306
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
936
1307
echo "$as_me: loading cache $cache_file" >&6;}
937
1308
    case $cache_file in
938
1309
      [\\/]* | ?:[\\/]* ) . $cache_file;;
940
1311
    esac
941
1312
  fi
942
1313
else
943
 
  { echo "$as_me:943: creating cache $cache_file" >&5
 
1314
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
944
1315
echo "$as_me: creating cache $cache_file" >&6;}
945
1316
  >$cache_file
946
1317
fi
947
1318
 
948
1319
# Check that the precious variables saved in the cache have kept the same
949
1320
# value.
950
 
ac_suggest_removing_cache=false
 
1321
ac_cache_corrupted=false
951
1322
for ac_var in `(set) 2>&1 |
952
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1323
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
953
1324
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
954
1325
  eval ac_new_set=\$ac_env_${ac_var}_set
955
1326
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
956
1327
  eval ac_new_val="\$ac_env_${ac_var}_value"
957
1328
  case $ac_old_set,$ac_new_set in
958
1329
    set,)
959
 
      { echo "$as_me:959: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
960
 
echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
961
 
      ac_suggest_removing_cache=: ;;
 
1330
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1331
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1332
      ac_cache_corrupted=: ;;
962
1333
    ,set)
963
 
      { echo "$as_me:963: WARNING: \`$ac_var' was not set in the previous run" >&5
964
 
echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
965
 
      ac_suggest_removing_cache=: ;;
 
1334
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1335
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1336
      ac_cache_corrupted=: ;;
966
1337
    ,);;
967
1338
    *)
968
1339
      if test "x$ac_old_val" != "x$ac_new_val"; then
969
 
        { echo "$as_me:969: WARNING: \`$ac_var' has changed since the previous run:" >&5
970
 
echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
971
 
        { echo "$as_me:971: WARNING:   former value:  $ac_old_val" >&5
972
 
echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
973
 
        { echo "$as_me:973: WARNING:   current value: $ac_new_val" >&5
974
 
echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
975
 
        ac_suggest_removing_cache=:
 
1340
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1341
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1342
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1343
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1344
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1345
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1346
        ac_cache_corrupted=:
976
1347
      fi;;
977
1348
  esac
 
1349
  # Pass precious variables to config.status.
 
1350
  if test "$ac_new_set" = set; then
 
1351
    case $ac_new_val in
 
1352
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1353
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1354
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1355
    esac
 
1356
    case " $ac_configure_args " in
 
1357
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1358
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1359
    esac
 
1360
  fi
978
1361
done
979
 
if $ac_suggest_removing_cache; then
980
 
  { echo "$as_me:980: WARNING: changes in the environment can compromise the build" >&5
981
 
echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
982
 
  { echo "$as_me:982: WARNING: consider removing $cache_file and starting over" >&5
983
 
echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
 
1362
if $ac_cache_corrupted; then
 
1363
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1364
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1365
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1366
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1367
   { (exit 1); exit 1; }; }
984
1368
fi
985
1369
 
986
1370
ac_ext=c
989
1373
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
990
1374
ac_compiler_gnu=$ac_cv_c_compiler_gnu
991
1375
 
992
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
993
 
  *c*,-n*) ECHO_N= ECHO_C='
994
 
' ECHO_T='      ' ;;
995
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
996
 
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
997
 
esac
998
 
echo "#! $SHELL" >conftest.sh
999
 
echo  "exit 0"   >>conftest.sh
1000
 
chmod +x conftest.sh
1001
 
if { (echo "$as_me:1001: PATH=\".;.\"; conftest.sh") >&5
1002
 
  (PATH=".;."; conftest.sh) 2>&5
1003
 
  ac_status=$?
1004
 
  echo "$as_me:1004: \$? = $ac_status" >&5
1005
 
  (exit $ac_status); }; then
1006
 
  ac_path_separator=';'
1007
 
else
1008
 
  ac_path_separator=:
1009
 
fi
1010
 
PATH_SEPARATOR="$ac_path_separator"
1011
 
rm -f conftest.sh
1012
 
 
 
1376
 
 
1377
 
 
1378
 
 
1379
 
 
1380
 
 
1381
 
 
1382
 
 
1383
 
 
1384
 
 
1385
 
 
1386
 
 
1387
 
 
1388
 
 
1389
 
 
1390
 
 
1391
 
 
1392
 
 
1393
 
 
1394
 
 
1395
 
 
1396
 
 
1397
 
 
1398
 
 
1399
 
 
1400
 
 
1401
 
 
1402
am__api_version="1.7"
1013
1403
ac_aux_dir=
1014
1404
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1015
1405
  if test -f $ac_dir/install-sh; then
1027
1417
  fi
1028
1418
done
1029
1419
if test -z "$ac_aux_dir"; then
1030
 
  { { echo "$as_me:1030: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1420
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1031
1421
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1032
1422
   { (exit 1); exit 1; }; }
1033
1423
fi
1035
1425
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1036
1426
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1037
1427
 
1038
 
# Make sure we can run config.sub.
1039
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
1040
 
  { { echo "$as_me:1040: error: cannot run $ac_config_sub" >&5
1041
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1042
 
   { (exit 1); exit 1; }; }
1043
 
 
1044
 
echo "$as_me:1044: checking build system type" >&5
1045
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1046
 
if test "${ac_cv_build+set}" = set; then
1047
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1048
 
else
1049
 
  ac_cv_build_alias=$build_alias
1050
 
test -z "$ac_cv_build_alias" &&
1051
 
  ac_cv_build_alias=`$ac_config_guess`
1052
 
test -z "$ac_cv_build_alias" &&
1053
 
  { { echo "$as_me:1053: error: cannot guess build type; you must specify one" >&5
1054
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1055
 
   { (exit 1); exit 1; }; }
1056
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1057
 
  { { echo "$as_me:1057: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1058
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1059
 
   { (exit 1); exit 1; }; }
1060
 
 
1061
 
fi
1062
 
echo "$as_me:1062: result: $ac_cv_build" >&5
1063
 
echo "${ECHO_T}$ac_cv_build" >&6
1064
 
build=$ac_cv_build
1065
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1066
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1067
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1068
 
 
1069
 
echo "$as_me:1069: checking host system type" >&5
1070
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1071
 
if test "${ac_cv_host+set}" = set; then
1072
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1073
 
else
1074
 
  ac_cv_host_alias=$host_alias
1075
 
test -z "$ac_cv_host_alias" &&
1076
 
  ac_cv_host_alias=$ac_cv_build_alias
1077
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1078
 
  { { echo "$as_me:1078: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1079
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1080
 
   { (exit 1); exit 1; }; }
1081
 
 
1082
 
fi
1083
 
echo "$as_me:1083: result: $ac_cv_host" >&5
1084
 
echo "${ECHO_T}$ac_cv_host" >&6
1085
 
host=$ac_cv_host
1086
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1087
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1088
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1089
 
 
1090
 
echo "$as_me:1090: checking target system type" >&5
1091
 
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1092
 
if test "${ac_cv_target+set}" = set; then
1093
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1094
 
else
1095
 
  ac_cv_target_alias=$target_alias
1096
 
test "x$ac_cv_target_alias" = "x" &&
1097
 
  ac_cv_target_alias=$ac_cv_host_alias
1098
 
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1099
 
  { { echo "$as_me:1099: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1100
 
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1101
 
   { (exit 1); exit 1; }; }
1102
 
 
1103
 
fi
1104
 
echo "$as_me:1104: result: $ac_cv_target" >&5
1105
 
echo "${ECHO_T}$ac_cv_target" >&6
1106
 
target=$ac_cv_target
1107
 
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1108
 
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1109
 
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1110
 
 
1111
 
# The aliases save the names the user supplied, while $host etc.
1112
 
# will get canonicalized.
1113
 
test -n "$target_alias" &&
1114
 
  test "$program_prefix$program_suffix$program_transform_name" = \
1115
 
    NONENONEs,x,x, &&
1116
 
  program_prefix=${target_alias}-
1117
 
cat >>confdefs.h <<EOF
1118
 
#define STR_SYSTEM "$target"
1119
 
EOF
1120
 
 
1121
 
ac_config_headers="$ac_config_headers config.h"
1122
 
 
1123
 
  ac_config_commands="$ac_config_commands default-1"
1124
 
 
1125
 
if test "$program_transform_name" = s,x,x,; then
1126
 
  program_transform_name=
1127
 
else
1128
 
  # Double any \ or $.  echo might interpret backslashes.
1129
 
  cat <<\EOF >conftest.sed
1130
 
s,\\,\\\\,g; s,\$,$$,g
1131
 
EOF
1132
 
  program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1133
 
  rm -f conftest.sed
1134
 
fi
1135
 
test "$program_prefix" != NONE &&
1136
 
  program_transform_name="s,^,${program_prefix},;$program_transform_name"
1137
 
# Use a double $ so make ignores it.
1138
 
test "$program_suffix" != NONE &&
1139
 
  program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1140
 
 
1141
 
# sed with no file args requires a program.
1142
 
test -z "$program_transform_name" && program_transform_name="s,x,x,"
1143
 
 
1144
1428
# Find a good install program.  We prefer a C program (faster),
1145
1429
# so one script is as good as another.  But avoid the broken or
1146
1430
# incompatible versions:
1152
1436
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1153
1437
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1154
1438
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1439
# OS/2's system install, which has a completely different semantic
1155
1440
# ./install, which can be erroneously created by make from ./install.sh.
1156
 
echo "$as_me:1156: checking for a BSD compatible install" >&5
1157
 
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
 
1441
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1442
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1158
1443
if test -z "$INSTALL"; then
1159
1444
if test "${ac_cv_path_install+set}" = set; then
1160
1445
  echo $ECHO_N "(cached) $ECHO_C" >&6
1161
1446
else
1162
 
    ac_save_IFS=$IFS; IFS=$ac_path_separator
1163
 
  for ac_dir in $PATH; do
1164
 
    IFS=$ac_save_IFS
1165
 
    # Account for people who put trailing slashes in PATH elements.
1166
 
    case $ac_dir/ in
1167
 
    / | ./ | .// | /cC/* \
1168
 
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1169
 
    | /usr/ucb/* ) ;;
1170
 
    *)
1171
 
      # OSF1 and SCO ODT 3.0 have their own names for install.
1172
 
      # Don't use installbsd from OSF since it installs stuff as root
1173
 
      # by default.
1174
 
      for ac_prog in ginstall scoinst install; do
1175
 
        if $as_executable_p "$ac_dir/$ac_prog"; then
 
1447
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1448
for as_dir in $PATH
 
1449
do
 
1450
  IFS=$as_save_IFS
 
1451
  test -z "$as_dir" && as_dir=.
 
1452
  # Account for people who put trailing slashes in PATH elements.
 
1453
case $as_dir/ in
 
1454
  ./ | .// | /cC/* | \
 
1455
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1456
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1457
  /usr/ucb/* ) ;;
 
1458
  *)
 
1459
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1460
    # Don't use installbsd from OSF since it installs stuff as root
 
1461
    # by default.
 
1462
    for ac_prog in ginstall scoinst install; do
 
1463
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1464
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1176
1465
          if test $ac_prog = install &&
1177
 
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 
1466
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1178
1467
            # AIX install.  It has an incompatible calling convention.
1179
1468
            :
1180
1469
          elif test $ac_prog = install &&
1181
 
            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 
1470
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1182
1471
            # program-specific install script used by HP pwplus--don't use.
1183
1472
            :
1184
1473
          else
1185
 
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1186
 
            break 2
 
1474
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1475
            break 3
1187
1476
          fi
1188
1477
        fi
1189
1478
      done
1190
 
      ;;
1191
 
    esac
1192
 
  done
 
1479
    done
 
1480
    ;;
 
1481
esac
 
1482
done
 
1483
 
1193
1484
 
1194
1485
fi
1195
1486
  if test "${ac_cv_path_install+set}" = set; then
1202
1493
    INSTALL=$ac_install_sh
1203
1494
  fi
1204
1495
fi
1205
 
echo "$as_me:1205: result: $INSTALL" >&5
 
1496
echo "$as_me:$LINENO: result: $INSTALL" >&5
1206
1497
echo "${ECHO_T}$INSTALL" >&6
1207
1498
 
1208
1499
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1213
1504
 
1214
1505
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1215
1506
 
1216
 
echo "$as_me:1216: checking whether build environment is sane" >&5
 
1507
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1217
1508
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1218
1509
# Just in case
1219
1510
sleep 1
1229
1520
      # -L didn't work.
1230
1521
      set X `ls -t $srcdir/configure conftest.file`
1231
1522
   fi
 
1523
   rm -f conftest.file
1232
1524
   if test "$*" != "X $srcdir/configure conftest.file" \
1233
1525
      && test "$*" != "X conftest.file $srcdir/configure"; then
1234
1526
 
1236
1528
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1237
1529
      # broken ls alias from the environment.  This has actually
1238
1530
      # happened.  Such a system could not be considered "sane".
1239
 
      { { echo "$as_me:1239: error: ls -t appears to fail.  Make sure there is not a broken
 
1531
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1240
1532
alias in your environment" >&5
1241
1533
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1242
1534
alias in your environment" >&2;}
1249
1541
   # Ok.
1250
1542
   :
1251
1543
else
1252
 
   { { echo "$as_me:1252: error: newly created file is older than distributed files!
 
1544
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1253
1545
Check your system clock" >&5
1254
1546
echo "$as_me: error: newly created file is older than distributed files!
1255
1547
Check your system clock" >&2;}
1256
1548
   { (exit 1); exit 1; }; }
1257
1549
fi
1258
 
rm -f conftest*
1259
 
echo "$as_me:1259: result: yes" >&5
 
1550
echo "$as_me:$LINENO: result: yes" >&5
1260
1551
echo "${ECHO_T}yes" >&6
1261
 
test x"${MISSING+set}" = xset ||
1262
 
  MISSING="\${SHELL} `CDPATH=:; cd $ac_aux_dir && pwd`/missing"
 
1552
test "$program_prefix" != NONE &&
 
1553
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1554
# Use a double $ so make ignores it.
 
1555
test "$program_suffix" != NONE &&
 
1556
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1557
# Double any \ or $.  echo might interpret backslashes.
 
1558
# By default was `s,x,x', remove it if useless.
 
1559
cat <<\_ACEOF >conftest.sed
 
1560
s/[\\$]/&&/g;s/;s,x,x,$//
 
1561
_ACEOF
 
1562
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1563
rm conftest.sed
 
1564
 
 
1565
 
 
1566
# expand $ac_aux_dir to an absolute path
 
1567
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1568
 
 
1569
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1263
1570
# Use eval to expand $SHELL
1264
 
if eval "$MISSING --run :"; then
 
1571
if eval "$MISSING --run true"; then
1265
1572
  am_missing_run="$MISSING --run "
1266
1573
else
1267
1574
  am_missing_run=
1268
 
  am_backtick='`'
1269
 
  { echo "$as_me:1269: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1270
 
echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
 
1575
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1576
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1271
1577
fi
1272
1578
 
1273
 
for ac_prog in mawk gawk nawk awk
 
1579
for ac_prog in gawk mawk nawk awk
1274
1580
do
1275
1581
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1276
1582
set dummy $ac_prog; ac_word=$2
1277
 
echo "$as_me:1277: checking for $ac_word" >&5
 
1583
echo "$as_me:$LINENO: checking for $ac_word" >&5
1278
1584
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1279
1585
if test "${ac_cv_prog_AWK+set}" = set; then
1280
1586
  echo $ECHO_N "(cached) $ECHO_C" >&6
1282
1588
  if test -n "$AWK"; then
1283
1589
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1284
1590
else
1285
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1286
 
ac_dummy="$PATH"
1287
 
for ac_dir in $ac_dummy; do
1288
 
  IFS=$ac_save_IFS
1289
 
  test -z "$ac_dir" && ac_dir=.
1290
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1291
 
ac_cv_prog_AWK="$ac_prog"
1292
 
echo "$as_me:1292: found $ac_dir/$ac_word" >&5
1293
 
break
 
1591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1592
for as_dir in $PATH
 
1593
do
 
1594
  IFS=$as_save_IFS
 
1595
  test -z "$as_dir" && as_dir=.
 
1596
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1597
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1598
    ac_cv_prog_AWK="$ac_prog"
 
1599
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1600
    break 2
 
1601
  fi
 
1602
done
1294
1603
done
1295
1604
 
1296
1605
fi
1297
1606
fi
1298
1607
AWK=$ac_cv_prog_AWK
1299
1608
if test -n "$AWK"; then
1300
 
  echo "$as_me:1300: result: $AWK" >&5
 
1609
  echo "$as_me:$LINENO: result: $AWK" >&5
1301
1610
echo "${ECHO_T}$AWK" >&6
1302
1611
else
1303
 
  echo "$as_me:1303: result: no" >&5
 
1612
  echo "$as_me:$LINENO: result: no" >&5
1304
1613
echo "${ECHO_T}no" >&6
1305
1614
fi
1306
1615
 
1307
1616
  test -n "$AWK" && break
1308
1617
done
1309
1618
 
1310
 
echo "$as_me:1310: checking whether ${MAKE-make} sets \${MAKE}" >&5
1311
 
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1312
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
1619
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1620
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1621
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1313
1622
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1314
1623
  echo $ECHO_N "(cached) $ECHO_C" >&6
1315
1624
else
1316
 
  cat >conftest.make <<\EOF
 
1625
  cat >conftest.make <<\_ACEOF
1317
1626
all:
1318
 
        @echo 'ac_maketemp="${MAKE}"'
1319
 
EOF
 
1627
        @echo 'ac_maketemp="$(MAKE)"'
 
1628
_ACEOF
1320
1629
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1321
1630
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1322
1631
if test -n "$ac_maketemp"; then
1327
1636
rm -f conftest.make
1328
1637
fi
1329
1638
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1330
 
  echo "$as_me:1330: result: yes" >&5
 
1639
  echo "$as_me:$LINENO: result: yes" >&5
1331
1640
echo "${ECHO_T}yes" >&6
1332
1641
  SET_MAKE=
1333
1642
else
1334
 
  echo "$as_me:1334: result: no" >&5
 
1643
  echo "$as_me:$LINENO: result: no" >&5
1335
1644
echo "${ECHO_T}no" >&6
1336
1645
  SET_MAKE="MAKE=${MAKE-make}"
1337
1646
fi
1338
1647
 
1339
 
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1340
 
if test "${enable_dependency_tracking+set}" = set; then
1341
 
  enableval="$enable_dependency_tracking"
1342
 
 
1343
 
fi;
1344
 
if test "x$enable_dependency_tracking" = xno; then
1345
 
  AMDEP="#"
1346
 
else
1347
 
  am_depcomp="$ac_aux_dir/depcomp"
1348
 
  if test ! -f "$am_depcomp"; then
1349
 
    AMDEP="#"
1350
 
  else
1351
 
    AMDEP=
1352
 
  fi
1353
 
fi
1354
 
 
1355
 
if test -z "$AMDEP"; then
1356
 
  AMDEPBACKSLASH='\'
1357
 
else
1358
 
  AMDEPBACKSLASH=
1359
 
fi
1360
 
 
1361
 
if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
1362
 
  DEPDIR=.deps
1363
 
  # We redirect because .deps might already exist and be populated.
1364
 
  # In this situation we don't want to see an error.
1365
 
  rmdir .deps > /dev/null 2>&1
1366
 
else
1367
 
  DEPDIR=_deps
1368
 
fi
1369
 
 
1370
 
# test to see if srcdir already configured
1371
 
if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
 
1648
rm -rf .tst 2>/dev/null
 
1649
mkdir .tst 2>/dev/null
 
1650
if test -d .tst; then
 
1651
  am__leading_dot=.
 
1652
else
 
1653
  am__leading_dot=_
 
1654
fi
 
1655
rmdir .tst 2>/dev/null
 
1656
 
 
1657
 # test to see if srcdir already configured
 
1658
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1372
1659
   test -f $srcdir/config.status; then
1373
 
  { { echo "$as_me:1373: error: source directory already configured; run \"make distclean\" there first" >&5
 
1660
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1374
1661
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1375
1662
   { (exit 1); exit 1; }; }
1376
1663
fi
1377
1664
 
 
1665
# test whether we have cygpath
 
1666
if test -z "$CYGPATH_W"; then
 
1667
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1668
    CYGPATH_W='cygpath -w'
 
1669
  else
 
1670
    CYGPATH_W=echo
 
1671
  fi
 
1672
fi
 
1673
 
 
1674
 
1378
1675
# Define the identity of the package.
1379
 
PACKAGE=ntp
1380
 
VERSION=4.1.0
1381
 
 
1382
 
cat >>confdefs.h <<EOF
 
1676
 PACKAGE='ntp'
 
1677
 VERSION='4.2.0a'
 
1678
 
 
1679
 
 
1680
cat >>confdefs.h <<_ACEOF
1383
1681
#define PACKAGE "$PACKAGE"
1384
 
EOF
1385
 
 
1386
 
cat >>confdefs.h <<EOF
 
1682
_ACEOF
 
1683
 
 
1684
 
 
1685
cat >>confdefs.h <<_ACEOF
1387
1686
#define VERSION "$VERSION"
1388
 
EOF
1389
 
 
1390
 
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
1391
 
# the ones we care about.
 
1687
_ACEOF
1392
1688
 
1393
1689
# Some tools Automake needs.
1394
1690
 
1395
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
 
1691
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1692
 
1396
1693
 
1397
1694
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1398
1695
 
1399
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
 
1696
 
 
1697
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1698
 
1400
1699
 
1401
1700
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1402
1701
 
 
1702
 
1403
1703
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1404
1704
 
 
1705
 
1405
1706
AMTAR=${AMTAR-"${am_missing_run}tar"}
1406
1707
 
1407
 
if test -z "$install_sh"; then
1408
 
   for install_sh in "$ac_aux_dir/install-sh" \
1409
 
                     "$ac_aux_dir/install.sh" \
1410
 
                     "${am_missing_run}${ac_auxdir}/install-sh";
1411
 
   do
1412
 
     test -f "$install_sh" && break
1413
 
   done
1414
 
   # FIXME: an evil hack: we remove the SHELL invocation from
1415
 
   # install_sh because automake adds it back in.  Sigh.
1416
 
   install_sh=`echo $install_sh | sed -e 's/\${SHELL}//'`
1417
 
fi
1418
 
 
1419
 
# We'd like to do this but we can't because it will unconditionally
1420
 
# require config.guess.  One way would be if autoconf had the capability
1421
 
# to let us compile in this code only when config.guess was already
1422
 
# a possibility.
1423
 
#if test "$cross_compiling" != no; then
1424
 
#  # since we are cross-compiling, we need to check for a suitable `strip'
1425
 
#  AM_PROG_STRIP
1426
 
#  if test -z "$STRIP"; then
1427
 
#    AC_MSG_WARN([strip missing, install-strip will not strip binaries])
1428
 
#  fi
1429
 
#fi
1430
 
 
1431
 
# If $STRIP is defined (either by the user, or by AM_PROG_STRIP),
1432
 
# instruct install-strip to use install-sh and the given $STRIP program.
1433
 
# Otherwise, just use ${INSTALL}: the idea is to use the vendor install
1434
 
# as much as possible, because it's faster.
1435
 
if test -z "$STRIP"; then
1436
 
  # The top level make will set INSTALL_PROGRAM=$(INSTALL_STRIP_PROGRAM)
1437
 
  # and the double dolard below is there to make sure that ${INSTALL}
1438
 
  # is substitued in the sub-makes, not at the top-level; this is
1439
 
  # needed if ${INSTALL} is a relative path (ajusted in each subdirectory
1440
 
  # by config.status).
1441
 
  INSTALL_STRIP_PROGRAM='$${INSTALL} -s'
1442
 
  INSTALL_STRIP_PROGRAM_ENV=''
1443
 
else
1444
 
  _am_dirpart="`echo $install_sh | sed -e 's,//*[^/]*$,,'`"
1445
 
  INSTALL_STRIP_PROGRAM="\${SHELL} \`CDPATH=: && cd $_am_dirpart && pwd\`/install-sh -c -s"
1446
 
  INSTALL_STRIP_PROGRAM_ENV="STRIPPROG='\$(STRIP)'"
1447
 
fi
 
1708
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1709
 
 
1710
# Installed binaries are usually stripped using `strip' when the user
 
1711
# run `make install-strip'.  However `strip' might not be the right
 
1712
# tool to use in cross-compilation environments, therefore Automake
 
1713
# will honor the `STRIP' environment variable to overrule this program.
 
1714
if test "$cross_compiling" != no; then
 
1715
  if test -n "$ac_tool_prefix"; then
 
1716
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1717
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1718
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1719
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1720
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1721
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1722
else
 
1723
  if test -n "$STRIP"; then
 
1724
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1725
else
 
1726
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1727
for as_dir in $PATH
 
1728
do
 
1729
  IFS=$as_save_IFS
 
1730
  test -z "$as_dir" && as_dir=.
 
1731
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1732
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1733
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1734
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1735
    break 2
 
1736
  fi
 
1737
done
 
1738
done
 
1739
 
 
1740
fi
 
1741
fi
 
1742
STRIP=$ac_cv_prog_STRIP
 
1743
if test -n "$STRIP"; then
 
1744
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1745
echo "${ECHO_T}$STRIP" >&6
 
1746
else
 
1747
  echo "$as_me:$LINENO: result: no" >&5
 
1748
echo "${ECHO_T}no" >&6
 
1749
fi
 
1750
 
 
1751
fi
 
1752
if test -z "$ac_cv_prog_STRIP"; then
 
1753
  ac_ct_STRIP=$STRIP
 
1754
  # Extract the first word of "strip", so it can be a program name with args.
 
1755
set dummy strip; ac_word=$2
 
1756
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1757
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1758
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1759
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1760
else
 
1761
  if test -n "$ac_ct_STRIP"; then
 
1762
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1763
else
 
1764
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1765
for as_dir in $PATH
 
1766
do
 
1767
  IFS=$as_save_IFS
 
1768
  test -z "$as_dir" && as_dir=.
 
1769
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1770
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1771
    ac_cv_prog_ac_ct_STRIP="strip"
 
1772
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1773
    break 2
 
1774
  fi
 
1775
done
 
1776
done
 
1777
 
 
1778
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1779
fi
 
1780
fi
 
1781
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1782
if test -n "$ac_ct_STRIP"; then
 
1783
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1784
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1785
else
 
1786
  echo "$as_me:$LINENO: result: no" >&5
 
1787
echo "${ECHO_T}no" >&6
 
1788
fi
 
1789
 
 
1790
  STRIP=$ac_ct_STRIP
 
1791
else
 
1792
  STRIP="$ac_cv_prog_STRIP"
 
1793
fi
 
1794
 
 
1795
fi
 
1796
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1448
1797
 
1449
1798
# We need awk for the "check" target.  The system "awk" is bad on
1450
1799
# some platforms.
1451
1800
 
 
1801
 
 
1802
 
 
1803
# Make sure we can run config.sub.
 
1804
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1805
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1806
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1807
   { (exit 1); exit 1; }; }
 
1808
 
 
1809
echo "$as_me:$LINENO: checking build system type" >&5
 
1810
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1811
if test "${ac_cv_build+set}" = set; then
 
1812
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1813
else
 
1814
  ac_cv_build_alias=$build_alias
 
1815
test -z "$ac_cv_build_alias" &&
 
1816
  ac_cv_build_alias=`$ac_config_guess`
 
1817
test -z "$ac_cv_build_alias" &&
 
1818
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1819
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1820
   { (exit 1); exit 1; }; }
 
1821
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1822
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1823
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1824
   { (exit 1); exit 1; }; }
 
1825
 
 
1826
fi
 
1827
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1828
echo "${ECHO_T}$ac_cv_build" >&6
 
1829
build=$ac_cv_build
 
1830
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1831
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1832
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1833
 
 
1834
 
 
1835
echo "$as_me:$LINENO: checking host system type" >&5
 
1836
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1837
if test "${ac_cv_host+set}" = set; then
 
1838
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1839
else
 
1840
  ac_cv_host_alias=$host_alias
 
1841
test -z "$ac_cv_host_alias" &&
 
1842
  ac_cv_host_alias=$ac_cv_build_alias
 
1843
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1844
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1845
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1846
   { (exit 1); exit 1; }; }
 
1847
 
 
1848
fi
 
1849
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1850
echo "${ECHO_T}$ac_cv_host" >&6
 
1851
host=$ac_cv_host
 
1852
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1853
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1854
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1855
 
 
1856
 
 
1857
 
 
1858
cat >>confdefs.h <<_ACEOF
 
1859
#define STR_SYSTEM "$host"
 
1860
_ACEOF
 
1861
 
 
1862
          ac_config_headers="$ac_config_headers config.h"
 
1863
 
 
1864
 
 
1865
 
 
1866
ac_cv_var_atom_ok=no
1452
1867
ac_cv_var_oncore_ok=no
1453
 
ac_cv_var_atom_ok=no
 
1868
ac_cv_var_ripe_ncc_ok=no
 
1869
ac_cv_var_jupiter_ok=no
1454
1870
 
1455
1871
iCFLAGS="$CFLAGS"
1456
1872
 
 
1873
DEPDIR="${am__leading_dot}deps"
 
1874
 
 
1875
          ac_config_commands="$ac_config_commands depfiles"
 
1876
 
 
1877
 
 
1878
am_make=${MAKE-make}
 
1879
cat > confinc << 'END'
 
1880
am__doit:
 
1881
        @echo done
 
1882
.PHONY: am__doit
 
1883
END
 
1884
# If we don't find an include directive, just comment out the code.
 
1885
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
1886
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
1887
am__include="#"
 
1888
am__quote=
 
1889
_am_result=none
 
1890
# First try GNU make style include.
 
1891
echo "include confinc" > confmf
 
1892
# We grep out `Entering directory' and `Leaving directory'
 
1893
# messages which can occur if `w' ends up in MAKEFLAGS.
 
1894
# In particular we don't look at `^make:' because GNU make might
 
1895
# be invoked under some other name (usually "gmake"), in which
 
1896
# case it prints its new name instead of `make'.
 
1897
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
1898
   am__include=include
 
1899
   am__quote=
 
1900
   _am_result=GNU
 
1901
fi
 
1902
# Now try BSD make style include.
 
1903
if test "$am__include" = "#"; then
 
1904
   echo '.include "confinc"' > confmf
 
1905
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
1906
      am__include=.include
 
1907
      am__quote="\""
 
1908
      _am_result=BSD
 
1909
   fi
 
1910
fi
 
1911
 
 
1912
 
 
1913
echo "$as_me:$LINENO: result: $_am_result" >&5
 
1914
echo "${ECHO_T}$_am_result" >&6
 
1915
rm -f confinc confmf
 
1916
 
 
1917
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
1918
if test "${enable_dependency_tracking+set}" = set; then
 
1919
  enableval="$enable_dependency_tracking"
 
1920
 
 
1921
fi;
 
1922
if test "x$enable_dependency_tracking" != xno; then
 
1923
  am_depcomp="$ac_aux_dir/depcomp"
 
1924
  AMDEPBACKSLASH='\'
 
1925
fi
 
1926
 
 
1927
 
 
1928
if test "x$enable_dependency_tracking" != xno; then
 
1929
  AMDEP_TRUE=
 
1930
  AMDEP_FALSE='#'
 
1931
else
 
1932
  AMDEP_TRUE='#'
 
1933
  AMDEP_FALSE=
 
1934
fi
 
1935
 
 
1936
 
 
1937
 
1457
1938
ac_ext=c
1458
1939
ac_cpp='$CPP $CPPFLAGS'
1459
1940
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1462
1943
if test -n "$ac_tool_prefix"; then
1463
1944
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1464
1945
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1465
 
echo "$as_me:1465: checking for $ac_word" >&5
 
1946
echo "$as_me:$LINENO: checking for $ac_word" >&5
1466
1947
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467
1948
if test "${ac_cv_prog_CC+set}" = set; then
1468
1949
  echo $ECHO_N "(cached) $ECHO_C" >&6
1470
1951
  if test -n "$CC"; then
1471
1952
  ac_cv_prog_CC="$CC" # Let the user override the test.
1472
1953
else
1473
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1474
 
ac_dummy="$PATH"
1475
 
for ac_dir in $ac_dummy; do
1476
 
  IFS=$ac_save_IFS
1477
 
  test -z "$ac_dir" && ac_dir=.
1478
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1479
 
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1480
 
echo "$as_me:1480: found $ac_dir/$ac_word" >&5
1481
 
break
 
1954
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1955
for as_dir in $PATH
 
1956
do
 
1957
  IFS=$as_save_IFS
 
1958
  test -z "$as_dir" && as_dir=.
 
1959
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1960
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1961
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1962
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1963
    break 2
 
1964
  fi
 
1965
done
1482
1966
done
1483
1967
 
1484
1968
fi
1485
1969
fi
1486
1970
CC=$ac_cv_prog_CC
1487
1971
if test -n "$CC"; then
1488
 
  echo "$as_me:1488: result: $CC" >&5
 
1972
  echo "$as_me:$LINENO: result: $CC" >&5
1489
1973
echo "${ECHO_T}$CC" >&6
1490
1974
else
1491
 
  echo "$as_me:1491: result: no" >&5
 
1975
  echo "$as_me:$LINENO: result: no" >&5
1492
1976
echo "${ECHO_T}no" >&6
1493
1977
fi
1494
1978
 
1497
1981
  ac_ct_CC=$CC
1498
1982
  # Extract the first word of "gcc", so it can be a program name with args.
1499
1983
set dummy gcc; ac_word=$2
1500
 
echo "$as_me:1500: checking for $ac_word" >&5
 
1984
echo "$as_me:$LINENO: checking for $ac_word" >&5
1501
1985
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1502
1986
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1503
1987
  echo $ECHO_N "(cached) $ECHO_C" >&6
1505
1989
  if test -n "$ac_ct_CC"; then
1506
1990
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1507
1991
else
1508
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1509
 
ac_dummy="$PATH"
1510
 
for ac_dir in $ac_dummy; do
1511
 
  IFS=$ac_save_IFS
1512
 
  test -z "$ac_dir" && ac_dir=.
1513
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1514
 
ac_cv_prog_ac_ct_CC="gcc"
1515
 
echo "$as_me:1515: found $ac_dir/$ac_word" >&5
1516
 
break
 
1992
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1993
for as_dir in $PATH
 
1994
do
 
1995
  IFS=$as_save_IFS
 
1996
  test -z "$as_dir" && as_dir=.
 
1997
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1998
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1999
    ac_cv_prog_ac_ct_CC="gcc"
 
2000
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2001
    break 2
 
2002
  fi
 
2003
done
1517
2004
done
1518
2005
 
1519
2006
fi
1520
2007
fi
1521
2008
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1522
2009
if test -n "$ac_ct_CC"; then
1523
 
  echo "$as_me:1523: result: $ac_ct_CC" >&5
 
2010
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1524
2011
echo "${ECHO_T}$ac_ct_CC" >&6
1525
2012
else
1526
 
  echo "$as_me:1526: result: no" >&5
 
2013
  echo "$as_me:$LINENO: result: no" >&5
1527
2014
echo "${ECHO_T}no" >&6
1528
2015
fi
1529
2016
 
1536
2023
  if test -n "$ac_tool_prefix"; then
1537
2024
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1538
2025
set dummy ${ac_tool_prefix}cc; ac_word=$2
1539
 
echo "$as_me:1539: checking for $ac_word" >&5
 
2026
echo "$as_me:$LINENO: checking for $ac_word" >&5
1540
2027
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1541
2028
if test "${ac_cv_prog_CC+set}" = set; then
1542
2029
  echo $ECHO_N "(cached) $ECHO_C" >&6
1544
2031
  if test -n "$CC"; then
1545
2032
  ac_cv_prog_CC="$CC" # Let the user override the test.
1546
2033
else
1547
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1548
 
ac_dummy="$PATH"
1549
 
for ac_dir in $ac_dummy; do
1550
 
  IFS=$ac_save_IFS
1551
 
  test -z "$ac_dir" && ac_dir=.
1552
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1553
 
ac_cv_prog_CC="${ac_tool_prefix}cc"
1554
 
echo "$as_me:1554: found $ac_dir/$ac_word" >&5
1555
 
break
 
2034
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2035
for as_dir in $PATH
 
2036
do
 
2037
  IFS=$as_save_IFS
 
2038
  test -z "$as_dir" && as_dir=.
 
2039
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2040
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2041
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2042
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2043
    break 2
 
2044
  fi
 
2045
done
1556
2046
done
1557
2047
 
1558
2048
fi
1559
2049
fi
1560
2050
CC=$ac_cv_prog_CC
1561
2051
if test -n "$CC"; then
1562
 
  echo "$as_me:1562: result: $CC" >&5
 
2052
  echo "$as_me:$LINENO: result: $CC" >&5
1563
2053
echo "${ECHO_T}$CC" >&6
1564
2054
else
1565
 
  echo "$as_me:1565: result: no" >&5
 
2055
  echo "$as_me:$LINENO: result: no" >&5
1566
2056
echo "${ECHO_T}no" >&6
1567
2057
fi
1568
2058
 
1571
2061
  ac_ct_CC=$CC
1572
2062
  # Extract the first word of "cc", so it can be a program name with args.
1573
2063
set dummy cc; ac_word=$2
1574
 
echo "$as_me:1574: checking for $ac_word" >&5
 
2064
echo "$as_me:$LINENO: checking for $ac_word" >&5
1575
2065
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1576
2066
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1577
2067
  echo $ECHO_N "(cached) $ECHO_C" >&6
1579
2069
  if test -n "$ac_ct_CC"; then
1580
2070
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1581
2071
else
1582
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1583
 
ac_dummy="$PATH"
1584
 
for ac_dir in $ac_dummy; do
1585
 
  IFS=$ac_save_IFS
1586
 
  test -z "$ac_dir" && ac_dir=.
1587
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1588
 
ac_cv_prog_ac_ct_CC="cc"
1589
 
echo "$as_me:1589: found $ac_dir/$ac_word" >&5
1590
 
break
 
2072
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2073
for as_dir in $PATH
 
2074
do
 
2075
  IFS=$as_save_IFS
 
2076
  test -z "$as_dir" && as_dir=.
 
2077
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2078
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2079
    ac_cv_prog_ac_ct_CC="cc"
 
2080
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2081
    break 2
 
2082
  fi
 
2083
done
1591
2084
done
1592
2085
 
1593
2086
fi
1594
2087
fi
1595
2088
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1596
2089
if test -n "$ac_ct_CC"; then
1597
 
  echo "$as_me:1597: result: $ac_ct_CC" >&5
 
2090
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1598
2091
echo "${ECHO_T}$ac_ct_CC" >&6
1599
2092
else
1600
 
  echo "$as_me:1600: result: no" >&5
 
2093
  echo "$as_me:$LINENO: result: no" >&5
1601
2094
echo "${ECHO_T}no" >&6
1602
2095
fi
1603
2096
 
1610
2103
if test -z "$CC"; then
1611
2104
  # Extract the first word of "cc", so it can be a program name with args.
1612
2105
set dummy cc; ac_word=$2
1613
 
echo "$as_me:1613: checking for $ac_word" >&5
 
2106
echo "$as_me:$LINENO: checking for $ac_word" >&5
1614
2107
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1615
2108
if test "${ac_cv_prog_CC+set}" = set; then
1616
2109
  echo $ECHO_N "(cached) $ECHO_C" >&6
1619
2112
  ac_cv_prog_CC="$CC" # Let the user override the test.
1620
2113
else
1621
2114
  ac_prog_rejected=no
1622
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1623
 
ac_dummy="$PATH"
1624
 
for ac_dir in $ac_dummy; do
1625
 
  IFS=$ac_save_IFS
1626
 
  test -z "$ac_dir" && ac_dir=.
1627
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1628
 
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1629
 
  ac_prog_rejected=yes
1630
 
  continue
1631
 
fi
1632
 
ac_cv_prog_CC="cc"
1633
 
echo "$as_me:1633: found $ac_dir/$ac_word" >&5
1634
 
break
 
2115
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2116
for as_dir in $PATH
 
2117
do
 
2118
  IFS=$as_save_IFS
 
2119
  test -z "$as_dir" && as_dir=.
 
2120
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2121
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2122
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2123
       ac_prog_rejected=yes
 
2124
       continue
 
2125
     fi
 
2126
    ac_cv_prog_CC="cc"
 
2127
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2128
    break 2
 
2129
  fi
 
2130
done
1635
2131
done
1636
2132
 
1637
2133
if test $ac_prog_rejected = yes; then
1643
2139
    # However, it has the same basename, so the bogon will be chosen
1644
2140
    # first if we set CC to just the basename; use the full file name.
1645
2141
    shift
1646
 
    set dummy "$ac_dir/$ac_word" ${1+"$@"}
1647
 
    shift
1648
 
    ac_cv_prog_CC="$@"
 
2142
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1649
2143
  fi
1650
2144
fi
1651
2145
fi
1652
2146
fi
1653
2147
CC=$ac_cv_prog_CC
1654
2148
if test -n "$CC"; then
1655
 
  echo "$as_me:1655: result: $CC" >&5
 
2149
  echo "$as_me:$LINENO: result: $CC" >&5
1656
2150
echo "${ECHO_T}$CC" >&6
1657
2151
else
1658
 
  echo "$as_me:1658: result: no" >&5
 
2152
  echo "$as_me:$LINENO: result: no" >&5
1659
2153
echo "${ECHO_T}no" >&6
1660
2154
fi
1661
2155
 
1666
2160
  do
1667
2161
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1668
2162
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1669
 
echo "$as_me:1669: checking for $ac_word" >&5
 
2163
echo "$as_me:$LINENO: checking for $ac_word" >&5
1670
2164
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671
2165
if test "${ac_cv_prog_CC+set}" = set; then
1672
2166
  echo $ECHO_N "(cached) $ECHO_C" >&6
1674
2168
  if test -n "$CC"; then
1675
2169
  ac_cv_prog_CC="$CC" # Let the user override the test.
1676
2170
else
1677
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1678
 
ac_dummy="$PATH"
1679
 
for ac_dir in $ac_dummy; do
1680
 
  IFS=$ac_save_IFS
1681
 
  test -z "$ac_dir" && ac_dir=.
1682
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1683
 
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1684
 
echo "$as_me:1684: found $ac_dir/$ac_word" >&5
1685
 
break
 
2171
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2172
for as_dir in $PATH
 
2173
do
 
2174
  IFS=$as_save_IFS
 
2175
  test -z "$as_dir" && as_dir=.
 
2176
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2177
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2178
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2179
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2180
    break 2
 
2181
  fi
 
2182
done
1686
2183
done
1687
2184
 
1688
2185
fi
1689
2186
fi
1690
2187
CC=$ac_cv_prog_CC
1691
2188
if test -n "$CC"; then
1692
 
  echo "$as_me:1692: result: $CC" >&5
 
2189
  echo "$as_me:$LINENO: result: $CC" >&5
1693
2190
echo "${ECHO_T}$CC" >&6
1694
2191
else
1695
 
  echo "$as_me:1695: result: no" >&5
 
2192
  echo "$as_me:$LINENO: result: no" >&5
1696
2193
echo "${ECHO_T}no" >&6
1697
2194
fi
1698
2195
 
1705
2202
do
1706
2203
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1707
2204
set dummy $ac_prog; ac_word=$2
1708
 
echo "$as_me:1708: checking for $ac_word" >&5
 
2205
echo "$as_me:$LINENO: checking for $ac_word" >&5
1709
2206
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710
2207
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1711
2208
  echo $ECHO_N "(cached) $ECHO_C" >&6
1713
2210
  if test -n "$ac_ct_CC"; then
1714
2211
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1715
2212
else
1716
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1717
 
ac_dummy="$PATH"
1718
 
for ac_dir in $ac_dummy; do
1719
 
  IFS=$ac_save_IFS
1720
 
  test -z "$ac_dir" && ac_dir=.
1721
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1722
 
ac_cv_prog_ac_ct_CC="$ac_prog"
1723
 
echo "$as_me:1723: found $ac_dir/$ac_word" >&5
1724
 
break
 
2213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2214
for as_dir in $PATH
 
2215
do
 
2216
  IFS=$as_save_IFS
 
2217
  test -z "$as_dir" && as_dir=.
 
2218
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2219
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2220
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2221
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2222
    break 2
 
2223
  fi
 
2224
done
1725
2225
done
1726
2226
 
1727
2227
fi
1728
2228
fi
1729
2229
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1730
2230
if test -n "$ac_ct_CC"; then
1731
 
  echo "$as_me:1731: result: $ac_ct_CC" >&5
 
2231
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1732
2232
echo "${ECHO_T}$ac_ct_CC" >&6
1733
2233
else
1734
 
  echo "$as_me:1734: result: no" >&5
 
2234
  echo "$as_me:$LINENO: result: no" >&5
1735
2235
echo "${ECHO_T}no" >&6
1736
2236
fi
1737
2237
 
1743
2243
 
1744
2244
fi
1745
2245
 
1746
 
test -z "$CC" && { { echo "$as_me:1746: error: no acceptable cc found in \$PATH" >&5
1747
 
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
 
2246
 
 
2247
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2248
See \`config.log' for more details." >&5
 
2249
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2250
See \`config.log' for more details." >&2;}
1748
2251
   { (exit 1); exit 1; }; }
1749
2252
 
 
2253
# Provide some information about the compiler.
 
2254
echo "$as_me:$LINENO:" \
 
2255
     "checking for C compiler version" >&5
 
2256
ac_compiler=`set X $ac_compile; echo $2`
 
2257
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2258
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2259
  ac_status=$?
 
2260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2261
  (exit $ac_status); }
 
2262
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2263
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2264
  ac_status=$?
 
2265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2266
  (exit $ac_status); }
 
2267
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2268
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2269
  ac_status=$?
 
2270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2271
  (exit $ac_status); }
 
2272
 
1750
2273
cat >conftest.$ac_ext <<_ACEOF
1751
 
#line 1751 "configure"
1752
 
#include "confdefs.h"
 
2274
/* confdefs.h.  */
 
2275
_ACEOF
 
2276
cat confdefs.h >>conftest.$ac_ext
 
2277
cat >>conftest.$ac_ext <<_ACEOF
 
2278
/* end confdefs.h.  */
1753
2279
 
1754
2280
int
1755
2281
main ()
1760
2286
}
1761
2287
_ACEOF
1762
2288
ac_clean_files_save=$ac_clean_files
1763
 
ac_clean_files="$ac_clean_files a.out a.exe"
 
2289
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1764
2290
# Try to create an executable without -o first, disregard a.out.
1765
 
# It will help us diagnose broken compiler, and finding out an intuition
 
2291
# It will help us diagnose broken compilers, and finding out an intuition
1766
2292
# of exeext.
1767
 
echo "$as_me:1767: checking for C compiler default output" >&5
1768
 
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
2293
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2294
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1769
2295
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1770
 
if { (eval echo "$as_me:1770: \"$ac_link_default\"") >&5
 
2296
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1771
2297
  (eval $ac_link_default) 2>&5
1772
2298
  ac_status=$?
1773
 
  echo "$as_me:1773: \$? = $ac_status" >&5
 
2299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1774
2300
  (exit $ac_status); }; then
1775
 
  for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
 
2301
  # Find the output, starting from the most likely.  This scheme is
 
2302
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2303
# resort.
 
2304
 
 
2305
# Be careful to initialize this variable, since it used to be cached.
 
2306
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2307
ac_cv_exeext=
 
2308
# b.out is created by i960 compilers.
 
2309
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2310
do
 
2311
  test -f "$ac_file" || continue
1776
2312
  case $ac_file in
1777
 
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1778
 
    a.out ) # We found the default executable, but exeext='' is most
1779
 
            # certainly right.
1780
 
            break;;
1781
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1782
 
          export ac_cv_exeext
1783
 
          break;;
1784
 
    * ) break;;
 
2313
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2314
        ;;
 
2315
    conftest.$ac_ext )
 
2316
        # This is the source file.
 
2317
        ;;
 
2318
    [ab].out )
 
2319
        # We found the default executable, but exeext='' is most
 
2320
        # certainly right.
 
2321
        break;;
 
2322
    *.* )
 
2323
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2324
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2325
        # but it would be cool to find out if it's true.  Does anybody
 
2326
        # maintain Libtool? --akim.
 
2327
        export ac_cv_exeext
 
2328
        break;;
 
2329
    * )
 
2330
        break;;
1785
2331
  esac
1786
2332
done
1787
2333
else
1788
2334
  echo "$as_me: failed program was:" >&5
1789
 
cat conftest.$ac_ext >&5
1790
 
{ { echo "$as_me:1790: error: C compiler cannot create executables" >&5
1791
 
echo "$as_me: error: C compiler cannot create executables" >&2;}
 
2335
sed 's/^/| /' conftest.$ac_ext >&5
 
2336
 
 
2337
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2338
See \`config.log' for more details." >&5
 
2339
echo "$as_me: error: C compiler cannot create executables
 
2340
See \`config.log' for more details." >&2;}
1792
2341
   { (exit 77); exit 77; }; }
1793
2342
fi
1794
2343
 
1795
2344
ac_exeext=$ac_cv_exeext
1796
 
echo "$as_me:1796: result: $ac_file" >&5
 
2345
echo "$as_me:$LINENO: result: $ac_file" >&5
1797
2346
echo "${ECHO_T}$ac_file" >&6
1798
2347
 
1799
2348
# Check the compiler produces executables we can run.  If not, either
1800
2349
# the compiler is broken, or we cross compile.
1801
 
echo "$as_me:1801: checking whether the C compiler works" >&5
 
2350
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1802
2351
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1803
2352
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1804
2353
# If not cross compiling, check that we can run a simple program.
1805
2354
if test "$cross_compiling" != yes; then
1806
2355
  if { ac_try='./$ac_file'
1807
 
  { (eval echo "$as_me:1807: \"$ac_try\"") >&5
 
2356
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1808
2357
  (eval $ac_try) 2>&5
1809
2358
  ac_status=$?
1810
 
  echo "$as_me:1810: \$? = $ac_status" >&5
 
2359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1811
2360
  (exit $ac_status); }; }; then
1812
2361
    cross_compiling=no
1813
2362
  else
1814
2363
    if test "$cross_compiling" = maybe; then
1815
2364
        cross_compiling=yes
1816
2365
    else
1817
 
        { { echo "$as_me:1817: error: cannot run C compiled programs.
1818
 
If you meant to cross compile, use \`--host'." >&5
 
2366
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2367
If you meant to cross compile, use \`--host'.
 
2368
See \`config.log' for more details." >&5
1819
2369
echo "$as_me: error: cannot run C compiled programs.
1820
 
If you meant to cross compile, use \`--host'." >&2;}
 
2370
If you meant to cross compile, use \`--host'.
 
2371
See \`config.log' for more details." >&2;}
1821
2372
   { (exit 1); exit 1; }; }
1822
2373
    fi
1823
2374
  fi
1824
2375
fi
1825
 
echo "$as_me:1825: result: yes" >&5
 
2376
echo "$as_me:$LINENO: result: yes" >&5
1826
2377
echo "${ECHO_T}yes" >&6
1827
2378
 
1828
 
rm -f a.out a.exe conftest$ac_cv_exeext
 
2379
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1829
2380
ac_clean_files=$ac_clean_files_save
1830
2381
# Check the compiler produces executables we can run.  If not, either
1831
2382
# the compiler is broken, or we cross compile.
1832
 
echo "$as_me:1832: checking whether we are cross compiling" >&5
 
2383
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1833
2384
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1834
 
echo "$as_me:1834: result: $cross_compiling" >&5
 
2385
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1835
2386
echo "${ECHO_T}$cross_compiling" >&6
1836
2387
 
1837
 
echo "$as_me:1837: checking for executable suffix" >&5
1838
 
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1839
 
if { (eval echo "$as_me:1839: \"$ac_link\"") >&5
 
2388
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2389
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2390
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1840
2391
  (eval $ac_link) 2>&5
1841
2392
  ac_status=$?
1842
 
  echo "$as_me:1842: \$? = $ac_status" >&5
 
2393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843
2394
  (exit $ac_status); }; then
1844
2395
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1845
2396
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1846
2397
# work properly (i.e., refer to `conftest.exe'), while it won't with
1847
2398
# `rm'.
1848
 
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
 
2399
for ac_file in conftest.exe conftest conftest.*; do
 
2400
  test -f "$ac_file" || continue
1849
2401
  case $ac_file in
1850
 
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
2402
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1851
2403
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1852
 
          export ac_cv_exeext
1853
 
          break;;
 
2404
          export ac_cv_exeext
 
2405
          break;;
1854
2406
    * ) break;;
1855
2407
  esac
1856
2408
done
1857
2409
else
1858
 
  { { echo "$as_me:1858: error: cannot compute EXEEXT: cannot compile and link" >&5
1859
 
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
 
2410
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2411
See \`config.log' for more details." >&5
 
2412
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2413
See \`config.log' for more details." >&2;}
1860
2414
   { (exit 1); exit 1; }; }
1861
2415
fi
1862
2416
 
1863
2417
rm -f conftest$ac_cv_exeext
1864
 
echo "$as_me:1864: result: $ac_cv_exeext" >&5
 
2418
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1865
2419
echo "${ECHO_T}$ac_cv_exeext" >&6
1866
2420
 
1867
2421
rm -f conftest.$ac_ext
1868
2422
EXEEXT=$ac_cv_exeext
1869
2423
ac_exeext=$EXEEXT
1870
 
echo "$as_me:1870: checking for object suffix" >&5
1871
 
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
 
2424
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2425
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1872
2426
if test "${ac_cv_objext+set}" = set; then
1873
2427
  echo $ECHO_N "(cached) $ECHO_C" >&6
1874
2428
else
1875
2429
  cat >conftest.$ac_ext <<_ACEOF
1876
 
#line 1876 "configure"
1877
 
#include "confdefs.h"
 
2430
/* confdefs.h.  */
 
2431
_ACEOF
 
2432
cat confdefs.h >>conftest.$ac_ext
 
2433
cat >>conftest.$ac_ext <<_ACEOF
 
2434
/* end confdefs.h.  */
1878
2435
 
1879
2436
int
1880
2437
main ()
1885
2442
}
1886
2443
_ACEOF
1887
2444
rm -f conftest.o conftest.obj
1888
 
if { (eval echo "$as_me:1888: \"$ac_compile\"") >&5
 
2445
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1889
2446
  (eval $ac_compile) 2>&5
1890
2447
  ac_status=$?
1891
 
  echo "$as_me:1891: \$? = $ac_status" >&5
 
2448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892
2449
  (exit $ac_status); }; then
1893
2450
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1894
2451
  case $ac_file in
1895
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
2452
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1896
2453
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1897
2454
       break;;
1898
2455
  esac
1899
2456
done
1900
2457
else
1901
2458
  echo "$as_me: failed program was:" >&5
1902
 
cat conftest.$ac_ext >&5
1903
 
{ { echo "$as_me:1903: error: cannot compute OBJEXT: cannot compile" >&5
1904
 
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
 
2459
sed 's/^/| /' conftest.$ac_ext >&5
 
2460
 
 
2461
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2462
See \`config.log' for more details." >&5
 
2463
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2464
See \`config.log' for more details." >&2;}
1905
2465
   { (exit 1); exit 1; }; }
1906
2466
fi
1907
2467
 
1908
2468
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1909
2469
fi
1910
 
echo "$as_me:1910: result: $ac_cv_objext" >&5
 
2470
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1911
2471
echo "${ECHO_T}$ac_cv_objext" >&6
1912
2472
OBJEXT=$ac_cv_objext
1913
2473
ac_objext=$OBJEXT
1914
 
echo "$as_me:1914: checking whether we are using the GNU C compiler" >&5
1915
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1916
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1917
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1918
 
else
1919
 
  cat >conftest.$ac_ext <<_ACEOF
1920
 
#line 1920 "configure"
1921
 
#include "confdefs.h"
1922
 
 
1923
 
int
1924
 
main ()
1925
 
{
1926
 
#ifndef __GNUC__
1927
 
       choke me
1928
 
#endif
1929
 
 
1930
 
  ;
1931
 
  return 0;
1932
 
}
1933
 
_ACEOF
1934
 
rm -f conftest.$ac_objext
1935
 
if { (eval echo "$as_me:1935: \"$ac_compile\"") >&5
1936
 
  (eval $ac_compile) 2>&5
1937
 
  ac_status=$?
1938
 
  echo "$as_me:1938: \$? = $ac_status" >&5
1939
 
  (exit $ac_status); } &&
1940
 
         { ac_try='test -s conftest.$ac_objext'
1941
 
  { (eval echo "$as_me:1941: \"$ac_try\"") >&5
1942
 
  (eval $ac_try) 2>&5
1943
 
  ac_status=$?
1944
 
  echo "$as_me:1944: \$? = $ac_status" >&5
1945
 
  (exit $ac_status); }; }; then
1946
 
  ac_compiler_gnu=yes
1947
 
else
1948
 
  echo "$as_me: failed program was:" >&5
1949
 
cat conftest.$ac_ext >&5
1950
 
ac_compiler_gnu=no
1951
 
fi
1952
 
rm -f conftest.$ac_objext conftest.$ac_ext
1953
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1954
 
 
1955
 
fi
1956
 
echo "$as_me:1956: result: $ac_cv_c_compiler_gnu" >&5
1957
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1958
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
1959
 
ac_test_CFLAGS=${CFLAGS+set}
1960
 
ac_save_CFLAGS=$CFLAGS
1961
 
CFLAGS="-g"
1962
 
echo "$as_me:1962: checking whether $CC accepts -g" >&5
1963
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1964
 
if test "${ac_cv_prog_cc_g+set}" = set; then
1965
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1966
 
else
1967
 
  cat >conftest.$ac_ext <<_ACEOF
1968
 
#line 1968 "configure"
1969
 
#include "confdefs.h"
1970
 
 
1971
 
int
1972
 
main ()
1973
 
{
1974
 
 
1975
 
  ;
1976
 
  return 0;
1977
 
}
1978
 
_ACEOF
1979
 
rm -f conftest.$ac_objext
1980
 
if { (eval echo "$as_me:1980: \"$ac_compile\"") >&5
1981
 
  (eval $ac_compile) 2>&5
1982
 
  ac_status=$?
1983
 
  echo "$as_me:1983: \$? = $ac_status" >&5
1984
 
  (exit $ac_status); } &&
1985
 
         { ac_try='test -s conftest.$ac_objext'
1986
 
  { (eval echo "$as_me:1986: \"$ac_try\"") >&5
1987
 
  (eval $ac_try) 2>&5
1988
 
  ac_status=$?
1989
 
  echo "$as_me:1989: \$? = $ac_status" >&5
1990
 
  (exit $ac_status); }; }; then
1991
 
  ac_cv_prog_cc_g=yes
1992
 
else
1993
 
  echo "$as_me: failed program was:" >&5
1994
 
cat conftest.$ac_ext >&5
1995
 
ac_cv_prog_cc_g=no
1996
 
fi
1997
 
rm -f conftest.$ac_objext conftest.$ac_ext
1998
 
fi
1999
 
echo "$as_me:1999: result: $ac_cv_prog_cc_g" >&5
2000
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2001
 
if test "$ac_test_CFLAGS" = set; then
2002
 
  CFLAGS=$ac_save_CFLAGS
2003
 
elif test $ac_cv_prog_cc_g = yes; then
2004
 
  if test "$GCC" = yes; then
2005
 
    CFLAGS="-g -O2"
2006
 
  else
2007
 
    CFLAGS="-g"
2008
 
  fi
2009
 
else
2010
 
  if test "$GCC" = yes; then
2011
 
    CFLAGS="-O2"
2012
 
  else
2013
 
    CFLAGS=
2014
 
  fi
2015
 
fi
2016
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2017
 
# in C++ we need to declare it.  In case someone uses the same compiler
2018
 
# for both compiling C and C++ we need to have the C++ compiler decide
2019
 
# the declaration of exit, since it's the most demanding environment.
2020
 
cat >conftest.$ac_ext <<_ACEOF
2021
 
#ifndef __cplusplus
2022
 
  choke me
2023
 
#endif
2024
 
_ACEOF
2025
 
rm -f conftest.$ac_objext
2026
 
if { (eval echo "$as_me:2026: \"$ac_compile\"") >&5
2027
 
  (eval $ac_compile) 2>&5
2028
 
  ac_status=$?
2029
 
  echo "$as_me:2029: \$? = $ac_status" >&5
2030
 
  (exit $ac_status); } &&
2031
 
         { ac_try='test -s conftest.$ac_objext'
2032
 
  { (eval echo "$as_me:2032: \"$ac_try\"") >&5
2033
 
  (eval $ac_try) 2>&5
2034
 
  ac_status=$?
2035
 
  echo "$as_me:2035: \$? = $ac_status" >&5
2036
 
  (exit $ac_status); }; }; then
2037
 
  for ac_declaration in \
2038
 
   ''\
2039
 
   '#include <stdlib.h>' \
2040
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2041
 
   'extern "C" void std::exit (int); using std::exit;' \
2042
 
   'extern "C" void exit (int) throw ();' \
2043
 
   'extern "C" void exit (int);' \
2044
 
   'void exit (int);'
2045
 
do
2046
 
  cat >conftest.$ac_ext <<_ACEOF
2047
 
#line 2047 "configure"
2048
 
#include "confdefs.h"
2049
 
#include <stdlib.h>
2050
 
$ac_declaration
2051
 
int
2052
 
main ()
2053
 
{
2054
 
exit (42);
2055
 
  ;
2056
 
  return 0;
2057
 
}
2058
 
_ACEOF
2059
 
rm -f conftest.$ac_objext
2060
 
if { (eval echo "$as_me:2060: \"$ac_compile\"") >&5
2061
 
  (eval $ac_compile) 2>&5
2062
 
  ac_status=$?
2063
 
  echo "$as_me:2063: \$? = $ac_status" >&5
2064
 
  (exit $ac_status); } &&
2065
 
         { ac_try='test -s conftest.$ac_objext'
2066
 
  { (eval echo "$as_me:2066: \"$ac_try\"") >&5
2067
 
  (eval $ac_try) 2>&5
2068
 
  ac_status=$?
2069
 
  echo "$as_me:2069: \$? = $ac_status" >&5
2070
 
  (exit $ac_status); }; }; then
2071
 
  :
2072
 
else
2073
 
  echo "$as_me: failed program was:" >&5
2074
 
cat conftest.$ac_ext >&5
2075
 
continue
2076
 
fi
2077
 
rm -f conftest.$ac_objext conftest.$ac_ext
2078
 
  cat >conftest.$ac_ext <<_ACEOF
2079
 
#line 2079 "configure"
2080
 
#include "confdefs.h"
2081
 
$ac_declaration
2082
 
int
2083
 
main ()
2084
 
{
2085
 
exit (42);
2086
 
  ;
2087
 
  return 0;
2088
 
}
2089
 
_ACEOF
2090
 
rm -f conftest.$ac_objext
2091
 
if { (eval echo "$as_me:2091: \"$ac_compile\"") >&5
2092
 
  (eval $ac_compile) 2>&5
2093
 
  ac_status=$?
2094
 
  echo "$as_me:2094: \$? = $ac_status" >&5
2095
 
  (exit $ac_status); } &&
2096
 
         { ac_try='test -s conftest.$ac_objext'
2097
 
  { (eval echo "$as_me:2097: \"$ac_try\"") >&5
2098
 
  (eval $ac_try) 2>&5
2099
 
  ac_status=$?
2100
 
  echo "$as_me:2100: \$? = $ac_status" >&5
2101
 
  (exit $ac_status); }; }; then
2102
 
  break
2103
 
else
2104
 
  echo "$as_me: failed program was:" >&5
2105
 
cat conftest.$ac_ext >&5
2106
 
fi
2107
 
rm -f conftest.$ac_objext conftest.$ac_ext
2108
 
done
2109
 
echo '#ifdef __cplusplus' >>confdefs.h
2110
 
echo $ac_declaration      >>confdefs.h
2111
 
echo '#endif'             >>confdefs.h
2112
 
 
2113
 
else
2114
 
  echo "$as_me: failed program was:" >&5
2115
 
cat conftest.$ac_ext >&5
2116
 
fi
2117
 
rm -f conftest.$ac_objext conftest.$ac_ext
2118
 
ac_ext=c
2119
 
ac_cpp='$CPP $CPPFLAGS'
2120
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2121
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2122
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2123
 
 
2124
 
ac_config_commands="$ac_config_commands default-2"
2125
 
 
2126
 
ac_ext=c
2127
 
ac_cpp='$CPP $CPPFLAGS'
2128
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2129
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2130
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2131
 
echo "$as_me:2131: checking how to run the C preprocessor" >&5
2132
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2133
 
# On Suns, sometimes $CPP names a directory.
2134
 
if test -n "$CPP" && test -d "$CPP"; then
2135
 
  CPP=
2136
 
fi
2137
 
if test -z "$CPP"; then
2138
 
  if test "${ac_cv_prog_CPP+set}" = set; then
2139
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2140
 
else
2141
 
      # Double quotes because CPP needs to be expanded
2142
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2143
 
    do
2144
 
      # break 2 since there is a loop in there.
2145
 
      ac_preproc_ok=false
2146
 
for ac_c_preproc_warn_flag in '' yes
2147
 
do
2148
 
  # Use a header file that comes with gcc, so configuring glibc
2149
 
  # with a fresh cross-compiler works.
2150
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2151
 
  # not just through cpp. "Syntax error" is here to catch this case.
2152
 
  cat >conftest.$ac_ext <<_ACEOF
2153
 
#line 2153 "configure"
2154
 
#include "confdefs.h"
2155
 
#include <assert.h>
2156
 
                     Syntax error
2157
 
_ACEOF
2158
 
if { (eval echo "$as_me:2158: \"$ac_cpp conftest.$ac_ext\"") >&5
2159
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2160
 
  ac_status=$?
2161
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2162
 
  rm -f conftest.er1
2163
 
  cat conftest.err >&5
2164
 
  echo "$as_me:2164: \$? = $ac_status" >&5
2165
 
  (exit $ac_status); } >/dev/null; then
2166
 
  if test -s conftest.err; then
2167
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2168
 
  else
2169
 
    ac_cpp_err=
2170
 
  fi
2171
 
else
2172
 
  ac_cpp_err=yes
2173
 
fi
2174
 
if test -z "$ac_cpp_err"; then
2175
 
  :
2176
 
else
2177
 
  echo "$as_me: failed program was:" >&5
2178
 
  cat conftest.$ac_ext >&5
2179
 
  # Broken: fails on valid input.
2180
 
continue
2181
 
fi
2182
 
rm -f conftest.err conftest.$ac_ext
2183
 
 
2184
 
  # OK, works on sane cases.  Now check whether non-existent headers
2185
 
  # can be detected and how.
2186
 
  cat >conftest.$ac_ext <<_ACEOF
2187
 
#line 2187 "configure"
2188
 
#include "confdefs.h"
2189
 
#include <ac_nonexistent.h>
2190
 
_ACEOF
2191
 
if { (eval echo "$as_me:2191: \"$ac_cpp conftest.$ac_ext\"") >&5
2192
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2193
 
  ac_status=$?
2194
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2195
 
  rm -f conftest.er1
2196
 
  cat conftest.err >&5
2197
 
  echo "$as_me:2197: \$? = $ac_status" >&5
2198
 
  (exit $ac_status); } >/dev/null; then
2199
 
  if test -s conftest.err; then
2200
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2201
 
  else
2202
 
    ac_cpp_err=
2203
 
  fi
2204
 
else
2205
 
  ac_cpp_err=yes
2206
 
fi
2207
 
if test -z "$ac_cpp_err"; then
2208
 
  # Broken: success on invalid input.
2209
 
continue
2210
 
else
2211
 
  echo "$as_me: failed program was:" >&5
2212
 
  cat conftest.$ac_ext >&5
2213
 
  # Passes both tests.
2214
 
ac_preproc_ok=:
2215
 
break
2216
 
fi
2217
 
rm -f conftest.err conftest.$ac_ext
2218
 
 
2219
 
done
2220
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2221
 
rm -f conftest.err conftest.$ac_ext
2222
 
if $ac_preproc_ok; then
2223
 
  break 2
2224
 
fi
2225
 
 
2226
 
    done
2227
 
    ac_cv_prog_CPP=$CPP
2228
 
 
2229
 
fi
2230
 
  CPP=$ac_cv_prog_CPP
2231
 
else
2232
 
  ac_cv_prog_CPP=$CPP
2233
 
fi
2234
 
echo "$as_me:2234: result: $CPP" >&5
2235
 
echo "${ECHO_T}$CPP" >&6
2236
 
ac_preproc_ok=false
2237
 
for ac_c_preproc_warn_flag in '' yes
2238
 
do
2239
 
  # Use a header file that comes with gcc, so configuring glibc
2240
 
  # with a fresh cross-compiler works.
2241
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2242
 
  # not just through cpp. "Syntax error" is here to catch this case.
2243
 
  cat >conftest.$ac_ext <<_ACEOF
2244
 
#line 2244 "configure"
2245
 
#include "confdefs.h"
2246
 
#include <assert.h>
2247
 
                     Syntax error
2248
 
_ACEOF
2249
 
if { (eval echo "$as_me:2249: \"$ac_cpp conftest.$ac_ext\"") >&5
2250
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2251
 
  ac_status=$?
2252
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2253
 
  rm -f conftest.er1
2254
 
  cat conftest.err >&5
2255
 
  echo "$as_me:2255: \$? = $ac_status" >&5
2256
 
  (exit $ac_status); } >/dev/null; then
2257
 
  if test -s conftest.err; then
2258
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2259
 
  else
2260
 
    ac_cpp_err=
2261
 
  fi
2262
 
else
2263
 
  ac_cpp_err=yes
2264
 
fi
2265
 
if test -z "$ac_cpp_err"; then
2266
 
  :
2267
 
else
2268
 
  echo "$as_me: failed program was:" >&5
2269
 
  cat conftest.$ac_ext >&5
2270
 
  # Broken: fails on valid input.
2271
 
continue
2272
 
fi
2273
 
rm -f conftest.err conftest.$ac_ext
2274
 
 
2275
 
  # OK, works on sane cases.  Now check whether non-existent headers
2276
 
  # can be detected and how.
2277
 
  cat >conftest.$ac_ext <<_ACEOF
2278
 
#line 2278 "configure"
2279
 
#include "confdefs.h"
2280
 
#include <ac_nonexistent.h>
2281
 
_ACEOF
2282
 
if { (eval echo "$as_me:2282: \"$ac_cpp conftest.$ac_ext\"") >&5
2283
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2284
 
  ac_status=$?
2285
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2286
 
  rm -f conftest.er1
2287
 
  cat conftest.err >&5
2288
 
  echo "$as_me:2288: \$? = $ac_status" >&5
2289
 
  (exit $ac_status); } >/dev/null; then
2290
 
  if test -s conftest.err; then
2291
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2292
 
  else
2293
 
    ac_cpp_err=
2294
 
  fi
2295
 
else
2296
 
  ac_cpp_err=yes
2297
 
fi
2298
 
if test -z "$ac_cpp_err"; then
2299
 
  # Broken: success on invalid input.
2300
 
continue
2301
 
else
2302
 
  echo "$as_me: failed program was:" >&5
2303
 
  cat conftest.$ac_ext >&5
2304
 
  # Passes both tests.
2305
 
ac_preproc_ok=:
2306
 
break
2307
 
fi
2308
 
rm -f conftest.err conftest.$ac_ext
2309
 
 
2310
 
done
2311
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2312
 
rm -f conftest.err conftest.$ac_ext
2313
 
if $ac_preproc_ok; then
2314
 
  :
2315
 
else
2316
 
  { { echo "$as_me:2316: error: C preprocessor \"$CPP\" fails sanity check" >&5
2317
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2318
 
   { (exit 1); exit 1; }; }
2319
 
fi
2320
 
 
2321
 
ac_ext=c
2322
 
ac_cpp='$CPP $CPPFLAGS'
2323
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2324
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2325
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2326
 
 
2327
 
am_make=${MAKE-make}
2328
 
# BSD make uses .include
2329
 
cat > confinc << 'END'
2330
 
doit:
2331
 
        @echo done
2332
 
END
2333
 
# If we don't find an include directive, just comment out the code.
2334
 
echo "$as_me:2334: checking for style of include used by $am_make" >&5
2335
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2336
 
_am_include='#'
2337
 
for am_inc in include .include; do
2338
 
   echo "$am_inc confinc" > confmf
2339
 
   if test "`$am_make -f confmf 2> /dev/null`" = "done"; then
2340
 
      _am_include=$am_inc
2341
 
      break
2342
 
   fi
2343
 
done
2344
 
 
2345
 
echo "$as_me:2345: result: $_am_include" >&5
2346
 
echo "${ECHO_T}$_am_include" >&6
2347
 
rm -f confinc confmf
2348
 
 
2349
 
depcc="$CC"
2350
 
depcpp="$CPP"
2351
 
 
2352
 
echo "$as_me:2352: checking dependency style of $depcc" >&5
2353
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2354
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2355
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2356
 
else
2357
 
  if test -z "$AMDEP"; then
2358
 
  # We make a subdir and do the tests there.  Otherwise we can end up
2359
 
  # making bogus files that we don't know about and never remove.  For
2360
 
  # instance it was reported that on HP-UX the gcc test will end up
2361
 
  # making a dummy file named `D' -- because `-MD' means `put the output
2362
 
  # in D'.
2363
 
  mkdir confdir
2364
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
2365
 
  # using a relative directory.
2366
 
  cp "$am_depcomp" confdir
2367
 
  cd confdir
2368
 
 
2369
 
  am_cv_CC_dependencies_compiler_type=none
2370
 
  for depmode in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "./depcomp"`; do
2371
 
    # We need to recreate these files for each test, as the compiler may
2372
 
    # overwrite some of them when testing with obscure command lines.
2373
 
    # This happens at least with the AIX C compiler.
2374
 
    echo '#include "conftest.h"' > conftest.c
2375
 
    echo 'int i;' > conftest.h
2376
 
 
2377
 
    case "$depmode" in
2378
 
    nosideeffect)
2379
 
      # after this tag, mechanisms are not by side-effect, so they'll
2380
 
      # only be used when explicitly requested
2381
 
      if test "x$enable_dependency_tracking" = xyes; then
2382
 
        continue
2383
 
      else
2384
 
        break
2385
 
      fi
2386
 
      ;;
2387
 
    none) break ;;
2388
 
    esac
2389
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2390
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
2391
 
    # handle `-M -o', and we need to detect this.
2392
 
    if depmode="$depmode" \
2393
 
       source=conftest.c object=conftest.o \
2394
 
       depfile=conftest.Po tmpdepfile=conftest.TPo \
2395
 
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2396
 
       grep conftest.h conftest.Po > /dev/null 2>&1; then
2397
 
      am_cv_CC_dependencies_compiler_type="$depmode"
2398
 
      break
2399
 
    fi
2400
 
  done
2401
 
 
2402
 
  cd ..
2403
 
  rm -rf confdir
2404
 
else
2405
 
  am_cv_CC_dependencies_compiler_type=none
2406
 
fi
2407
 
 
2408
 
fi
2409
 
echo "$as_me:2409: result: $am_cv_CC_dependencies_compiler_type" >&5
2410
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2411
 
CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2412
 
 
2413
 
echo "$as_me:2413: checking for $CC option to accept ANSI C" >&5
2414
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2415
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2416
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2417
 
else
2418
 
  ac_cv_prog_cc_stdc=no
2419
 
ac_save_CC=$CC
2420
 
cat >conftest.$ac_ext <<_ACEOF
2421
 
#line 2421 "configure"
2422
 
#include "confdefs.h"
2423
 
#include <stdarg.h>
2424
 
#include <stdio.h>
2425
 
#include <sys/types.h>
2426
 
#include <sys/stat.h>
2427
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2428
 
struct buf { int x; };
2429
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2430
 
static char *e (p, i)
2431
 
     char **p;
2432
 
     int i;
2433
 
{
2434
 
  return p[i];
2435
 
}
2436
 
static char *f (char * (*g) (char **, int), char **p, ...)
2437
 
{
2438
 
  char *s;
2439
 
  va_list v;
2440
 
  va_start (v,p);
2441
 
  s = g (p, va_arg (v,int));
2442
 
  va_end (v);
2443
 
  return s;
2444
 
}
2445
 
int test (int i, double x);
2446
 
struct s1 {int (*f) (int a);};
2447
 
struct s2 {int (*f) (double a);};
2448
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2449
 
int argc;
2450
 
char **argv;
2451
 
int
2452
 
main ()
2453
 
{
2454
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2455
 
  ;
2456
 
  return 0;
2457
 
}
2458
 
_ACEOF
2459
 
# Don't try gcc -ansi; that turns off useful extensions and
2460
 
# breaks some systems' header files.
2461
 
# AIX                   -qlanglvl=ansi
2462
 
# Ultrix and OSF/1      -std1
2463
 
# HP-UX 10.20 and later -Ae
2464
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2465
 
# SVR4                  -Xc -D__EXTENSIONS__
2466
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2467
 
do
2468
 
  CC="$ac_save_CC $ac_arg"
2469
 
  rm -f conftest.$ac_objext
2470
 
if { (eval echo "$as_me:2470: \"$ac_compile\"") >&5
2471
 
  (eval $ac_compile) 2>&5
2472
 
  ac_status=$?
2473
 
  echo "$as_me:2473: \$? = $ac_status" >&5
2474
 
  (exit $ac_status); } &&
2475
 
         { ac_try='test -s conftest.$ac_objext'
2476
 
  { (eval echo "$as_me:2476: \"$ac_try\"") >&5
2477
 
  (eval $ac_try) 2>&5
2478
 
  ac_status=$?
2479
 
  echo "$as_me:2479: \$? = $ac_status" >&5
2480
 
  (exit $ac_status); }; }; then
2481
 
  ac_cv_prog_cc_stdc=$ac_arg
2482
 
break
2483
 
else
2484
 
  echo "$as_me: failed program was:" >&5
2485
 
cat conftest.$ac_ext >&5
2486
 
fi
2487
 
rm -f conftest.$ac_objext
2488
 
done
2489
 
rm -f conftest.$ac_ext conftest.$ac_objext
2490
 
CC=$ac_save_CC
2491
 
 
2492
 
fi
2493
 
 
2494
 
case "x$ac_cv_prog_cc_stdc" in
2495
 
  x|xno)
2496
 
    echo "$as_me:2496: result: none needed" >&5
2497
 
echo "${ECHO_T}none needed" >&6 ;;
2498
 
  *)
2499
 
    echo "$as_me:2499: result: $ac_cv_prog_cc_stdc" >&5
2500
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2501
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2502
 
esac
2503
 
 
2504
 
ac_ext=c
2505
 
ac_cpp='$CPP $CPPFLAGS'
2506
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2509
 
echo "$as_me:2509: checking how to run the C preprocessor" >&5
2510
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2511
 
# On Suns, sometimes $CPP names a directory.
2512
 
if test -n "$CPP" && test -d "$CPP"; then
2513
 
  CPP=
2514
 
fi
2515
 
if test -z "$CPP"; then
2516
 
  if test "${ac_cv_prog_CPP+set}" = set; then
2517
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2518
 
else
2519
 
      # Double quotes because CPP needs to be expanded
2520
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2521
 
    do
2522
 
      # break 2 since there is a loop in there.
2523
 
      ac_preproc_ok=false
2524
 
for ac_c_preproc_warn_flag in '' yes
2525
 
do
2526
 
  # Use a header file that comes with gcc, so configuring glibc
2527
 
  # with a fresh cross-compiler works.
2528
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2529
 
  # not just through cpp. "Syntax error" is here to catch this case.
2530
 
  cat >conftest.$ac_ext <<_ACEOF
2531
 
#line 2531 "configure"
2532
 
#include "confdefs.h"
2533
 
#include <assert.h>
2534
 
                     Syntax error
2535
 
_ACEOF
2536
 
if { (eval echo "$as_me:2536: \"$ac_cpp conftest.$ac_ext\"") >&5
2537
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2538
 
  ac_status=$?
2539
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2540
 
  rm -f conftest.er1
2541
 
  cat conftest.err >&5
2542
 
  echo "$as_me:2542: \$? = $ac_status" >&5
2543
 
  (exit $ac_status); } >/dev/null; then
2544
 
  if test -s conftest.err; then
2545
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2546
 
  else
2547
 
    ac_cpp_err=
2548
 
  fi
2549
 
else
2550
 
  ac_cpp_err=yes
2551
 
fi
2552
 
if test -z "$ac_cpp_err"; then
2553
 
  :
2554
 
else
2555
 
  echo "$as_me: failed program was:" >&5
2556
 
  cat conftest.$ac_ext >&5
2557
 
  # Broken: fails on valid input.
2558
 
continue
2559
 
fi
2560
 
rm -f conftest.err conftest.$ac_ext
2561
 
 
2562
 
  # OK, works on sane cases.  Now check whether non-existent headers
2563
 
  # can be detected and how.
2564
 
  cat >conftest.$ac_ext <<_ACEOF
2565
 
#line 2565 "configure"
2566
 
#include "confdefs.h"
2567
 
#include <ac_nonexistent.h>
2568
 
_ACEOF
2569
 
if { (eval echo "$as_me:2569: \"$ac_cpp conftest.$ac_ext\"") >&5
2570
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2571
 
  ac_status=$?
2572
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2573
 
  rm -f conftest.er1
2574
 
  cat conftest.err >&5
2575
 
  echo "$as_me:2575: \$? = $ac_status" >&5
2576
 
  (exit $ac_status); } >/dev/null; then
2577
 
  if test -s conftest.err; then
2578
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2579
 
  else
2580
 
    ac_cpp_err=
2581
 
  fi
2582
 
else
2583
 
  ac_cpp_err=yes
2584
 
fi
2585
 
if test -z "$ac_cpp_err"; then
2586
 
  # Broken: success on invalid input.
2587
 
continue
2588
 
else
2589
 
  echo "$as_me: failed program was:" >&5
2590
 
  cat conftest.$ac_ext >&5
2591
 
  # Passes both tests.
2592
 
ac_preproc_ok=:
2593
 
break
2594
 
fi
2595
 
rm -f conftest.err conftest.$ac_ext
2596
 
 
2597
 
done
2598
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2599
 
rm -f conftest.err conftest.$ac_ext
2600
 
if $ac_preproc_ok; then
2601
 
  break 2
2602
 
fi
2603
 
 
2604
 
    done
2605
 
    ac_cv_prog_CPP=$CPP
2606
 
 
2607
 
fi
2608
 
  CPP=$ac_cv_prog_CPP
2609
 
else
2610
 
  ac_cv_prog_CPP=$CPP
2611
 
fi
2612
 
echo "$as_me:2612: result: $CPP" >&5
2613
 
echo "${ECHO_T}$CPP" >&6
2614
 
ac_preproc_ok=false
2615
 
for ac_c_preproc_warn_flag in '' yes
2616
 
do
2617
 
  # Use a header file that comes with gcc, so configuring glibc
2618
 
  # with a fresh cross-compiler works.
2619
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2620
 
  # not just through cpp. "Syntax error" is here to catch this case.
2621
 
  cat >conftest.$ac_ext <<_ACEOF
2622
 
#line 2622 "configure"
2623
 
#include "confdefs.h"
2624
 
#include <assert.h>
2625
 
                     Syntax error
2626
 
_ACEOF
2627
 
if { (eval echo "$as_me:2627: \"$ac_cpp conftest.$ac_ext\"") >&5
2628
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2629
 
  ac_status=$?
2630
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2631
 
  rm -f conftest.er1
2632
 
  cat conftest.err >&5
2633
 
  echo "$as_me:2633: \$? = $ac_status" >&5
2634
 
  (exit $ac_status); } >/dev/null; then
2635
 
  if test -s conftest.err; then
2636
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2637
 
  else
2638
 
    ac_cpp_err=
2639
 
  fi
2640
 
else
2641
 
  ac_cpp_err=yes
2642
 
fi
2643
 
if test -z "$ac_cpp_err"; then
2644
 
  :
2645
 
else
2646
 
  echo "$as_me: failed program was:" >&5
2647
 
  cat conftest.$ac_ext >&5
2648
 
  # Broken: fails on valid input.
2649
 
continue
2650
 
fi
2651
 
rm -f conftest.err conftest.$ac_ext
2652
 
 
2653
 
  # OK, works on sane cases.  Now check whether non-existent headers
2654
 
  # can be detected and how.
2655
 
  cat >conftest.$ac_ext <<_ACEOF
2656
 
#line 2656 "configure"
2657
 
#include "confdefs.h"
2658
 
#include <ac_nonexistent.h>
2659
 
_ACEOF
2660
 
if { (eval echo "$as_me:2660: \"$ac_cpp conftest.$ac_ext\"") >&5
2661
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2662
 
  ac_status=$?
2663
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2664
 
  rm -f conftest.er1
2665
 
  cat conftest.err >&5
2666
 
  echo "$as_me:2666: \$? = $ac_status" >&5
2667
 
  (exit $ac_status); } >/dev/null; then
2668
 
  if test -s conftest.err; then
2669
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2670
 
  else
2671
 
    ac_cpp_err=
2672
 
  fi
2673
 
else
2674
 
  ac_cpp_err=yes
2675
 
fi
2676
 
if test -z "$ac_cpp_err"; then
2677
 
  # Broken: success on invalid input.
2678
 
continue
2679
 
else
2680
 
  echo "$as_me: failed program was:" >&5
2681
 
  cat conftest.$ac_ext >&5
2682
 
  # Passes both tests.
2683
 
ac_preproc_ok=:
2684
 
break
2685
 
fi
2686
 
rm -f conftest.err conftest.$ac_ext
2687
 
 
2688
 
done
2689
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2690
 
rm -f conftest.err conftest.$ac_ext
2691
 
if $ac_preproc_ok; then
2692
 
  :
2693
 
else
2694
 
  { { echo "$as_me:2694: error: C preprocessor \"$CPP\" fails sanity check" >&5
2695
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2696
 
   { (exit 1); exit 1; }; }
2697
 
fi
2698
 
 
2699
 
ac_ext=c
2700
 
ac_cpp='$CPP $CPPFLAGS'
2701
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2702
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2703
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704
 
 
2705
 
case "$target" in
 
2474
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2475
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2476
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2477
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2478
else
 
2479
  cat >conftest.$ac_ext <<_ACEOF
 
2480
/* confdefs.h.  */
 
2481
_ACEOF
 
2482
cat confdefs.h >>conftest.$ac_ext
 
2483
cat >>conftest.$ac_ext <<_ACEOF
 
2484
/* end confdefs.h.  */
 
2485
 
 
2486
int
 
2487
main ()
 
2488
{
 
2489
#ifndef __GNUC__
 
2490
       choke me
 
2491
#endif
 
2492
 
 
2493
  ;
 
2494
  return 0;
 
2495
}
 
2496
_ACEOF
 
2497
rm -f conftest.$ac_objext
 
2498
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2499
  (eval $ac_compile) 2>conftest.er1
 
2500
  ac_status=$?
 
2501
  grep -v '^ *+' conftest.er1 >conftest.err
 
2502
  rm -f conftest.er1
 
2503
  cat conftest.err >&5
 
2504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2505
  (exit $ac_status); } &&
 
2506
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2507
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2508
  (eval $ac_try) 2>&5
 
2509
  ac_status=$?
 
2510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2511
  (exit $ac_status); }; } &&
 
2512
         { ac_try='test -s conftest.$ac_objext'
 
2513
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2514
  (eval $ac_try) 2>&5
 
2515
  ac_status=$?
 
2516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2517
  (exit $ac_status); }; }; then
 
2518
  ac_compiler_gnu=yes
 
2519
else
 
2520
  echo "$as_me: failed program was:" >&5
 
2521
sed 's/^/| /' conftest.$ac_ext >&5
 
2522
 
 
2523
ac_compiler_gnu=no
 
2524
fi
 
2525
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2526
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2527
 
 
2528
fi
 
2529
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2530
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2531
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2532
ac_test_CFLAGS=${CFLAGS+set}
 
2533
ac_save_CFLAGS=$CFLAGS
 
2534
CFLAGS="-g"
 
2535
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2536
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2537
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2538
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2539
else
 
2540
  cat >conftest.$ac_ext <<_ACEOF
 
2541
/* confdefs.h.  */
 
2542
_ACEOF
 
2543
cat confdefs.h >>conftest.$ac_ext
 
2544
cat >>conftest.$ac_ext <<_ACEOF
 
2545
/* end confdefs.h.  */
 
2546
 
 
2547
int
 
2548
main ()
 
2549
{
 
2550
 
 
2551
  ;
 
2552
  return 0;
 
2553
}
 
2554
_ACEOF
 
2555
rm -f conftest.$ac_objext
 
2556
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2557
  (eval $ac_compile) 2>conftest.er1
 
2558
  ac_status=$?
 
2559
  grep -v '^ *+' conftest.er1 >conftest.err
 
2560
  rm -f conftest.er1
 
2561
  cat conftest.err >&5
 
2562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2563
  (exit $ac_status); } &&
 
2564
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2565
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2566
  (eval $ac_try) 2>&5
 
2567
  ac_status=$?
 
2568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2569
  (exit $ac_status); }; } &&
 
2570
         { ac_try='test -s conftest.$ac_objext'
 
2571
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2572
  (eval $ac_try) 2>&5
 
2573
  ac_status=$?
 
2574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2575
  (exit $ac_status); }; }; then
 
2576
  ac_cv_prog_cc_g=yes
 
2577
else
 
2578
  echo "$as_me: failed program was:" >&5
 
2579
sed 's/^/| /' conftest.$ac_ext >&5
 
2580
 
 
2581
ac_cv_prog_cc_g=no
 
2582
fi
 
2583
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2584
fi
 
2585
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2586
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2587
if test "$ac_test_CFLAGS" = set; then
 
2588
  CFLAGS=$ac_save_CFLAGS
 
2589
elif test $ac_cv_prog_cc_g = yes; then
 
2590
  if test "$GCC" = yes; then
 
2591
    CFLAGS="-g -O2"
 
2592
  else
 
2593
    CFLAGS="-g"
 
2594
  fi
 
2595
else
 
2596
  if test "$GCC" = yes; then
 
2597
    CFLAGS="-O2"
 
2598
  else
 
2599
    CFLAGS=
 
2600
  fi
 
2601
fi
 
2602
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2603
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2604
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2605
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2606
else
 
2607
  ac_cv_prog_cc_stdc=no
 
2608
ac_save_CC=$CC
 
2609
cat >conftest.$ac_ext <<_ACEOF
 
2610
/* confdefs.h.  */
 
2611
_ACEOF
 
2612
cat confdefs.h >>conftest.$ac_ext
 
2613
cat >>conftest.$ac_ext <<_ACEOF
 
2614
/* end confdefs.h.  */
 
2615
#include <stdarg.h>
 
2616
#include <stdio.h>
 
2617
#include <sys/types.h>
 
2618
#include <sys/stat.h>
 
2619
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2620
struct buf { int x; };
 
2621
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2622
static char *e (p, i)
 
2623
     char **p;
 
2624
     int i;
 
2625
{
 
2626
  return p[i];
 
2627
}
 
2628
static char *f (char * (*g) (char **, int), char **p, ...)
 
2629
{
 
2630
  char *s;
 
2631
  va_list v;
 
2632
  va_start (v,p);
 
2633
  s = g (p, va_arg (v,int));
 
2634
  va_end (v);
 
2635
  return s;
 
2636
}
 
2637
 
 
2638
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2639
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2640
   These don't provoke an error unfortunately, instead are silently treated
 
2641
   as 'x'.  The following induces an error, until -std1 is added to get
 
2642
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2643
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2644
   that's true only with -std1.  */
 
2645
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2646
 
 
2647
int test (int i, double x);
 
2648
struct s1 {int (*f) (int a);};
 
2649
struct s2 {int (*f) (double a);};
 
2650
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2651
int argc;
 
2652
char **argv;
 
2653
int
 
2654
main ()
 
2655
{
 
2656
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2657
  ;
 
2658
  return 0;
 
2659
}
 
2660
_ACEOF
 
2661
# Don't try gcc -ansi; that turns off useful extensions and
 
2662
# breaks some systems' header files.
 
2663
# AIX                   -qlanglvl=ansi
 
2664
# Ultrix and OSF/1      -std1
 
2665
# HP-UX 10.20 and later -Ae
 
2666
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2667
# SVR4                  -Xc -D__EXTENSIONS__
 
2668
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2669
do
 
2670
  CC="$ac_save_CC $ac_arg"
 
2671
  rm -f conftest.$ac_objext
 
2672
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2673
  (eval $ac_compile) 2>conftest.er1
 
2674
  ac_status=$?
 
2675
  grep -v '^ *+' conftest.er1 >conftest.err
 
2676
  rm -f conftest.er1
 
2677
  cat conftest.err >&5
 
2678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2679
  (exit $ac_status); } &&
 
2680
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2681
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2682
  (eval $ac_try) 2>&5
 
2683
  ac_status=$?
 
2684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2685
  (exit $ac_status); }; } &&
 
2686
         { ac_try='test -s conftest.$ac_objext'
 
2687
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2688
  (eval $ac_try) 2>&5
 
2689
  ac_status=$?
 
2690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2691
  (exit $ac_status); }; }; then
 
2692
  ac_cv_prog_cc_stdc=$ac_arg
 
2693
break
 
2694
else
 
2695
  echo "$as_me: failed program was:" >&5
 
2696
sed 's/^/| /' conftest.$ac_ext >&5
 
2697
 
 
2698
fi
 
2699
rm -f conftest.err conftest.$ac_objext
 
2700
done
 
2701
rm -f conftest.$ac_ext conftest.$ac_objext
 
2702
CC=$ac_save_CC
 
2703
 
 
2704
fi
 
2705
 
 
2706
case "x$ac_cv_prog_cc_stdc" in
 
2707
  x|xno)
 
2708
    echo "$as_me:$LINENO: result: none needed" >&5
 
2709
echo "${ECHO_T}none needed" >&6 ;;
 
2710
  *)
 
2711
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2712
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2713
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2714
esac
 
2715
 
 
2716
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2717
# in C++ we need to declare it.  In case someone uses the same compiler
 
2718
# for both compiling C and C++ we need to have the C++ compiler decide
 
2719
# the declaration of exit, since it's the most demanding environment.
 
2720
cat >conftest.$ac_ext <<_ACEOF
 
2721
#ifndef __cplusplus
 
2722
  choke me
 
2723
#endif
 
2724
_ACEOF
 
2725
rm -f conftest.$ac_objext
 
2726
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2727
  (eval $ac_compile) 2>conftest.er1
 
2728
  ac_status=$?
 
2729
  grep -v '^ *+' conftest.er1 >conftest.err
 
2730
  rm -f conftest.er1
 
2731
  cat conftest.err >&5
 
2732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2733
  (exit $ac_status); } &&
 
2734
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2735
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2736
  (eval $ac_try) 2>&5
 
2737
  ac_status=$?
 
2738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2739
  (exit $ac_status); }; } &&
 
2740
         { ac_try='test -s conftest.$ac_objext'
 
2741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2742
  (eval $ac_try) 2>&5
 
2743
  ac_status=$?
 
2744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2745
  (exit $ac_status); }; }; then
 
2746
  for ac_declaration in \
 
2747
   '' \
 
2748
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2749
   'extern "C" void std::exit (int); using std::exit;' \
 
2750
   'extern "C" void exit (int) throw ();' \
 
2751
   'extern "C" void exit (int);' \
 
2752
   'void exit (int);'
 
2753
do
 
2754
  cat >conftest.$ac_ext <<_ACEOF
 
2755
/* confdefs.h.  */
 
2756
_ACEOF
 
2757
cat confdefs.h >>conftest.$ac_ext
 
2758
cat >>conftest.$ac_ext <<_ACEOF
 
2759
/* end confdefs.h.  */
 
2760
$ac_declaration
 
2761
#include <stdlib.h>
 
2762
int
 
2763
main ()
 
2764
{
 
2765
exit (42);
 
2766
  ;
 
2767
  return 0;
 
2768
}
 
2769
_ACEOF
 
2770
rm -f conftest.$ac_objext
 
2771
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2772
  (eval $ac_compile) 2>conftest.er1
 
2773
  ac_status=$?
 
2774
  grep -v '^ *+' conftest.er1 >conftest.err
 
2775
  rm -f conftest.er1
 
2776
  cat conftest.err >&5
 
2777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2778
  (exit $ac_status); } &&
 
2779
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2780
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2781
  (eval $ac_try) 2>&5
 
2782
  ac_status=$?
 
2783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2784
  (exit $ac_status); }; } &&
 
2785
         { ac_try='test -s conftest.$ac_objext'
 
2786
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2787
  (eval $ac_try) 2>&5
 
2788
  ac_status=$?
 
2789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2790
  (exit $ac_status); }; }; then
 
2791
  :
 
2792
else
 
2793
  echo "$as_me: failed program was:" >&5
 
2794
sed 's/^/| /' conftest.$ac_ext >&5
 
2795
 
 
2796
continue
 
2797
fi
 
2798
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2799
  cat >conftest.$ac_ext <<_ACEOF
 
2800
/* confdefs.h.  */
 
2801
_ACEOF
 
2802
cat confdefs.h >>conftest.$ac_ext
 
2803
cat >>conftest.$ac_ext <<_ACEOF
 
2804
/* end confdefs.h.  */
 
2805
$ac_declaration
 
2806
int
 
2807
main ()
 
2808
{
 
2809
exit (42);
 
2810
  ;
 
2811
  return 0;
 
2812
}
 
2813
_ACEOF
 
2814
rm -f conftest.$ac_objext
 
2815
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2816
  (eval $ac_compile) 2>conftest.er1
 
2817
  ac_status=$?
 
2818
  grep -v '^ *+' conftest.er1 >conftest.err
 
2819
  rm -f conftest.er1
 
2820
  cat conftest.err >&5
 
2821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2822
  (exit $ac_status); } &&
 
2823
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2824
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2825
  (eval $ac_try) 2>&5
 
2826
  ac_status=$?
 
2827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2828
  (exit $ac_status); }; } &&
 
2829
         { ac_try='test -s conftest.$ac_objext'
 
2830
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2831
  (eval $ac_try) 2>&5
 
2832
  ac_status=$?
 
2833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2834
  (exit $ac_status); }; }; then
 
2835
  break
 
2836
else
 
2837
  echo "$as_me: failed program was:" >&5
 
2838
sed 's/^/| /' conftest.$ac_ext >&5
 
2839
 
 
2840
fi
 
2841
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2842
done
 
2843
rm -f conftest*
 
2844
if test -n "$ac_declaration"; then
 
2845
  echo '#ifdef __cplusplus' >>confdefs.h
 
2846
  echo $ac_declaration      >>confdefs.h
 
2847
  echo '#endif'             >>confdefs.h
 
2848
fi
 
2849
 
 
2850
else
 
2851
  echo "$as_me: failed program was:" >&5
 
2852
sed 's/^/| /' conftest.$ac_ext >&5
 
2853
 
 
2854
fi
 
2855
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2856
ac_ext=c
 
2857
ac_cpp='$CPP $CPPFLAGS'
 
2858
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2859
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2860
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2861
 
 
2862
depcc="$CC"   am_compiler_list=
 
2863
 
 
2864
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2865
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
2866
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
2867
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2868
else
 
2869
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2870
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2871
  # making bogus files that we don't know about and never remove.  For
 
2872
  # instance it was reported that on HP-UX the gcc test will end up
 
2873
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2874
  # in D'.
 
2875
  mkdir conftest.dir
 
2876
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2877
  # using a relative directory.
 
2878
  cp "$am_depcomp" conftest.dir
 
2879
  cd conftest.dir
 
2880
  # We will build objects and dependencies in a subdirectory because
 
2881
  # it helps to detect inapplicable dependency modes.  For instance
 
2882
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
2883
  # side effect of compilation, but ICC will put the dependencies in
 
2884
  # the current directory while Tru64 will put them in the object
 
2885
  # directory.
 
2886
  mkdir sub
 
2887
 
 
2888
  am_cv_CC_dependencies_compiler_type=none
 
2889
  if test "$am_compiler_list" = ""; then
 
2890
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
2891
  fi
 
2892
  for depmode in $am_compiler_list; do
 
2893
    # Setup a source with many dependencies, because some compilers
 
2894
    # like to wrap large dependency lists on column 80 (with \), and
 
2895
    # we should not choose a depcomp mode which is confused by this.
 
2896
    #
 
2897
    # We need to recreate these files for each test, as the compiler may
 
2898
    # overwrite some of them when testing with obscure command lines.
 
2899
    # This happens at least with the AIX C compiler.
 
2900
    : > sub/conftest.c
 
2901
    for i in 1 2 3 4 5 6; do
 
2902
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
2903
      : > sub/conftst$i.h
 
2904
    done
 
2905
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
2906
 
 
2907
    case $depmode in
 
2908
    nosideeffect)
 
2909
      # after this tag, mechanisms are not by side-effect, so they'll
 
2910
      # only be used when explicitly requested
 
2911
      if test "x$enable_dependency_tracking" = xyes; then
 
2912
        continue
 
2913
      else
 
2914
        break
 
2915
      fi
 
2916
      ;;
 
2917
    none) break ;;
 
2918
    esac
 
2919
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
2920
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
2921
    # handle `-M -o', and we need to detect this.
 
2922
    if depmode=$depmode \
 
2923
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
2924
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
2925
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
2926
         >/dev/null 2>conftest.err &&
 
2927
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
2928
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
2929
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
2930
      # icc doesn't choke on unknown options, it will just issue warnings
 
2931
      # (even with -Werror).  So we grep stderr for any message
 
2932
      # that says an option was ignored.
 
2933
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
2934
        am_cv_CC_dependencies_compiler_type=$depmode
 
2935
        break
 
2936
      fi
 
2937
    fi
 
2938
  done
 
2939
 
 
2940
  cd ..
 
2941
  rm -rf conftest.dir
 
2942
else
 
2943
  am_cv_CC_dependencies_compiler_type=none
 
2944
fi
 
2945
 
 
2946
fi
 
2947
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
2948
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
2949
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
2950
 
 
2951
 
 
2952
 
 
2953
if
 
2954
  test "x$enable_dependency_tracking" != xno \
 
2955
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
2956
  am__fastdepCC_TRUE=
 
2957
  am__fastdepCC_FALSE='#'
 
2958
else
 
2959
  am__fastdepCC_TRUE='#'
 
2960
  am__fastdepCC_FALSE=
 
2961
fi
 
2962
 
 
2963
 
 
2964
 
 
2965
ac_ext=c
 
2966
ac_cpp='$CPP $CPPFLAGS'
 
2967
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2968
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2969
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2970
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
2971
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
2972
# On Suns, sometimes $CPP names a directory.
 
2973
if test -n "$CPP" && test -d "$CPP"; then
 
2974
  CPP=
 
2975
fi
 
2976
if test -z "$CPP"; then
 
2977
  if test "${ac_cv_prog_CPP+set}" = set; then
 
2978
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2979
else
 
2980
      # Double quotes because CPP needs to be expanded
 
2981
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2982
    do
 
2983
      ac_preproc_ok=false
 
2984
for ac_c_preproc_warn_flag in '' yes
 
2985
do
 
2986
  # Use a header file that comes with gcc, so configuring glibc
 
2987
  # with a fresh cross-compiler works.
 
2988
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2989
  # <limits.h> exists even on freestanding compilers.
 
2990
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2991
  # not just through cpp. "Syntax error" is here to catch this case.
 
2992
  cat >conftest.$ac_ext <<_ACEOF
 
2993
/* confdefs.h.  */
 
2994
_ACEOF
 
2995
cat confdefs.h >>conftest.$ac_ext
 
2996
cat >>conftest.$ac_ext <<_ACEOF
 
2997
/* end confdefs.h.  */
 
2998
#ifdef __STDC__
 
2999
# include <limits.h>
 
3000
#else
 
3001
# include <assert.h>
 
3002
#endif
 
3003
                     Syntax error
 
3004
_ACEOF
 
3005
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3006
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3007
  ac_status=$?
 
3008
  grep -v '^ *+' conftest.er1 >conftest.err
 
3009
  rm -f conftest.er1
 
3010
  cat conftest.err >&5
 
3011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3012
  (exit $ac_status); } >/dev/null; then
 
3013
  if test -s conftest.err; then
 
3014
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3015
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3016
  else
 
3017
    ac_cpp_err=
 
3018
  fi
 
3019
else
 
3020
  ac_cpp_err=yes
 
3021
fi
 
3022
if test -z "$ac_cpp_err"; then
 
3023
  :
 
3024
else
 
3025
  echo "$as_me: failed program was:" >&5
 
3026
sed 's/^/| /' conftest.$ac_ext >&5
 
3027
 
 
3028
  # Broken: fails on valid input.
 
3029
continue
 
3030
fi
 
3031
rm -f conftest.err conftest.$ac_ext
 
3032
 
 
3033
  # OK, works on sane cases.  Now check whether non-existent headers
 
3034
  # can be detected and how.
 
3035
  cat >conftest.$ac_ext <<_ACEOF
 
3036
/* confdefs.h.  */
 
3037
_ACEOF
 
3038
cat confdefs.h >>conftest.$ac_ext
 
3039
cat >>conftest.$ac_ext <<_ACEOF
 
3040
/* end confdefs.h.  */
 
3041
#include <ac_nonexistent.h>
 
3042
_ACEOF
 
3043
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3044
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3045
  ac_status=$?
 
3046
  grep -v '^ *+' conftest.er1 >conftest.err
 
3047
  rm -f conftest.er1
 
3048
  cat conftest.err >&5
 
3049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3050
  (exit $ac_status); } >/dev/null; then
 
3051
  if test -s conftest.err; then
 
3052
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3053
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3054
  else
 
3055
    ac_cpp_err=
 
3056
  fi
 
3057
else
 
3058
  ac_cpp_err=yes
 
3059
fi
 
3060
if test -z "$ac_cpp_err"; then
 
3061
  # Broken: success on invalid input.
 
3062
continue
 
3063
else
 
3064
  echo "$as_me: failed program was:" >&5
 
3065
sed 's/^/| /' conftest.$ac_ext >&5
 
3066
 
 
3067
  # Passes both tests.
 
3068
ac_preproc_ok=:
 
3069
break
 
3070
fi
 
3071
rm -f conftest.err conftest.$ac_ext
 
3072
 
 
3073
done
 
3074
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3075
rm -f conftest.err conftest.$ac_ext
 
3076
if $ac_preproc_ok; then
 
3077
  break
 
3078
fi
 
3079
 
 
3080
    done
 
3081
    ac_cv_prog_CPP=$CPP
 
3082
 
 
3083
fi
 
3084
  CPP=$ac_cv_prog_CPP
 
3085
else
 
3086
  ac_cv_prog_CPP=$CPP
 
3087
fi
 
3088
echo "$as_me:$LINENO: result: $CPP" >&5
 
3089
echo "${ECHO_T}$CPP" >&6
 
3090
ac_preproc_ok=false
 
3091
for ac_c_preproc_warn_flag in '' yes
 
3092
do
 
3093
  # Use a header file that comes with gcc, so configuring glibc
 
3094
  # with a fresh cross-compiler works.
 
3095
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3096
  # <limits.h> exists even on freestanding compilers.
 
3097
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3098
  # not just through cpp. "Syntax error" is here to catch this case.
 
3099
  cat >conftest.$ac_ext <<_ACEOF
 
3100
/* confdefs.h.  */
 
3101
_ACEOF
 
3102
cat confdefs.h >>conftest.$ac_ext
 
3103
cat >>conftest.$ac_ext <<_ACEOF
 
3104
/* end confdefs.h.  */
 
3105
#ifdef __STDC__
 
3106
# include <limits.h>
 
3107
#else
 
3108
# include <assert.h>
 
3109
#endif
 
3110
                     Syntax error
 
3111
_ACEOF
 
3112
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3113
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3114
  ac_status=$?
 
3115
  grep -v '^ *+' conftest.er1 >conftest.err
 
3116
  rm -f conftest.er1
 
3117
  cat conftest.err >&5
 
3118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3119
  (exit $ac_status); } >/dev/null; then
 
3120
  if test -s conftest.err; then
 
3121
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3122
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3123
  else
 
3124
    ac_cpp_err=
 
3125
  fi
 
3126
else
 
3127
  ac_cpp_err=yes
 
3128
fi
 
3129
if test -z "$ac_cpp_err"; then
 
3130
  :
 
3131
else
 
3132
  echo "$as_me: failed program was:" >&5
 
3133
sed 's/^/| /' conftest.$ac_ext >&5
 
3134
 
 
3135
  # Broken: fails on valid input.
 
3136
continue
 
3137
fi
 
3138
rm -f conftest.err conftest.$ac_ext
 
3139
 
 
3140
  # OK, works on sane cases.  Now check whether non-existent headers
 
3141
  # can be detected and how.
 
3142
  cat >conftest.$ac_ext <<_ACEOF
 
3143
/* confdefs.h.  */
 
3144
_ACEOF
 
3145
cat confdefs.h >>conftest.$ac_ext
 
3146
cat >>conftest.$ac_ext <<_ACEOF
 
3147
/* end confdefs.h.  */
 
3148
#include <ac_nonexistent.h>
 
3149
_ACEOF
 
3150
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3151
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3152
  ac_status=$?
 
3153
  grep -v '^ *+' conftest.er1 >conftest.err
 
3154
  rm -f conftest.er1
 
3155
  cat conftest.err >&5
 
3156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3157
  (exit $ac_status); } >/dev/null; then
 
3158
  if test -s conftest.err; then
 
3159
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3160
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3161
  else
 
3162
    ac_cpp_err=
 
3163
  fi
 
3164
else
 
3165
  ac_cpp_err=yes
 
3166
fi
 
3167
if test -z "$ac_cpp_err"; then
 
3168
  # Broken: success on invalid input.
 
3169
continue
 
3170
else
 
3171
  echo "$as_me: failed program was:" >&5
 
3172
sed 's/^/| /' conftest.$ac_ext >&5
 
3173
 
 
3174
  # Passes both tests.
 
3175
ac_preproc_ok=:
 
3176
break
 
3177
fi
 
3178
rm -f conftest.err conftest.$ac_ext
 
3179
 
 
3180
done
 
3181
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3182
rm -f conftest.err conftest.$ac_ext
 
3183
if $ac_preproc_ok; then
 
3184
  :
 
3185
else
 
3186
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3187
See \`config.log' for more details." >&5
 
3188
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3189
See \`config.log' for more details." >&2;}
 
3190
   { (exit 1); exit 1; }; }
 
3191
fi
 
3192
 
 
3193
ac_ext=c
 
3194
ac_cpp='$CPP $CPPFLAGS'
 
3195
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3196
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3197
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3198
 
 
3199
 
 
3200
echo "$as_me:$LINENO: checking for egrep" >&5
 
3201
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3202
if test "${ac_cv_prog_egrep+set}" = set; then
 
3203
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3204
else
 
3205
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3206
    then ac_cv_prog_egrep='grep -E'
 
3207
    else ac_cv_prog_egrep='egrep'
 
3208
    fi
 
3209
fi
 
3210
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3211
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3212
 EGREP=$ac_cv_prog_egrep
 
3213
 
 
3214
 
 
3215
 
 
3216
echo "$as_me:$LINENO: checking for AIX" >&5
 
3217
echo $ECHO_N "checking for AIX... $ECHO_C" >&6
 
3218
cat >conftest.$ac_ext <<_ACEOF
 
3219
/* confdefs.h.  */
 
3220
_ACEOF
 
3221
cat confdefs.h >>conftest.$ac_ext
 
3222
cat >>conftest.$ac_ext <<_ACEOF
 
3223
/* end confdefs.h.  */
 
3224
#ifdef _AIX
 
3225
  yes
 
3226
#endif
 
3227
 
 
3228
_ACEOF
 
3229
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3230
  $EGREP "yes" >/dev/null 2>&1; then
 
3231
  echo "$as_me:$LINENO: result: yes" >&5
 
3232
echo "${ECHO_T}yes" >&6
 
3233
cat >>confdefs.h <<\_ACEOF
 
3234
#define _ALL_SOURCE 1
 
3235
_ACEOF
 
3236
 
 
3237
else
 
3238
  echo "$as_me:$LINENO: result: no" >&5
 
3239
echo "${ECHO_T}no" >&6
 
3240
fi
 
3241
rm -f conftest*
 
3242
 
 
3243
 
 
3244
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3245
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
3246
if test "${ac_cv_header_stdc+set}" = set; then
 
3247
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3248
else
 
3249
  cat >conftest.$ac_ext <<_ACEOF
 
3250
/* confdefs.h.  */
 
3251
_ACEOF
 
3252
cat confdefs.h >>conftest.$ac_ext
 
3253
cat >>conftest.$ac_ext <<_ACEOF
 
3254
/* end confdefs.h.  */
 
3255
#include <stdlib.h>
 
3256
#include <stdarg.h>
 
3257
#include <string.h>
 
3258
#include <float.h>
 
3259
 
 
3260
int
 
3261
main ()
 
3262
{
 
3263
 
 
3264
  ;
 
3265
  return 0;
 
3266
}
 
3267
_ACEOF
 
3268
rm -f conftest.$ac_objext
 
3269
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3270
  (eval $ac_compile) 2>conftest.er1
 
3271
  ac_status=$?
 
3272
  grep -v '^ *+' conftest.er1 >conftest.err
 
3273
  rm -f conftest.er1
 
3274
  cat conftest.err >&5
 
3275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3276
  (exit $ac_status); } &&
 
3277
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3278
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3279
  (eval $ac_try) 2>&5
 
3280
  ac_status=$?
 
3281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3282
  (exit $ac_status); }; } &&
 
3283
         { ac_try='test -s conftest.$ac_objext'
 
3284
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3285
  (eval $ac_try) 2>&5
 
3286
  ac_status=$?
 
3287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3288
  (exit $ac_status); }; }; then
 
3289
  ac_cv_header_stdc=yes
 
3290
else
 
3291
  echo "$as_me: failed program was:" >&5
 
3292
sed 's/^/| /' conftest.$ac_ext >&5
 
3293
 
 
3294
ac_cv_header_stdc=no
 
3295
fi
 
3296
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3297
 
 
3298
if test $ac_cv_header_stdc = yes; then
 
3299
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3300
  cat >conftest.$ac_ext <<_ACEOF
 
3301
/* confdefs.h.  */
 
3302
_ACEOF
 
3303
cat confdefs.h >>conftest.$ac_ext
 
3304
cat >>conftest.$ac_ext <<_ACEOF
 
3305
/* end confdefs.h.  */
 
3306
#include <string.h>
 
3307
 
 
3308
_ACEOF
 
3309
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3310
  $EGREP "memchr" >/dev/null 2>&1; then
 
3311
  :
 
3312
else
 
3313
  ac_cv_header_stdc=no
 
3314
fi
 
3315
rm -f conftest*
 
3316
 
 
3317
fi
 
3318
 
 
3319
if test $ac_cv_header_stdc = yes; then
 
3320
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3321
  cat >conftest.$ac_ext <<_ACEOF
 
3322
/* confdefs.h.  */
 
3323
_ACEOF
 
3324
cat confdefs.h >>conftest.$ac_ext
 
3325
cat >>conftest.$ac_ext <<_ACEOF
 
3326
/* end confdefs.h.  */
 
3327
#include <stdlib.h>
 
3328
 
 
3329
_ACEOF
 
3330
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3331
  $EGREP "free" >/dev/null 2>&1; then
 
3332
  :
 
3333
else
 
3334
  ac_cv_header_stdc=no
 
3335
fi
 
3336
rm -f conftest*
 
3337
 
 
3338
fi
 
3339
 
 
3340
if test $ac_cv_header_stdc = yes; then
 
3341
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3342
  if test "$cross_compiling" = yes; then
 
3343
  :
 
3344
else
 
3345
  cat >conftest.$ac_ext <<_ACEOF
 
3346
/* confdefs.h.  */
 
3347
_ACEOF
 
3348
cat confdefs.h >>conftest.$ac_ext
 
3349
cat >>conftest.$ac_ext <<_ACEOF
 
3350
/* end confdefs.h.  */
 
3351
#include <ctype.h>
 
3352
#if ((' ' & 0x0FF) == 0x020)
 
3353
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3354
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3355
#else
 
3356
# define ISLOWER(c) \
 
3357
                   (('a' <= (c) && (c) <= 'i') \
 
3358
                     || ('j' <= (c) && (c) <= 'r') \
 
3359
                     || ('s' <= (c) && (c) <= 'z'))
 
3360
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3361
#endif
 
3362
 
 
3363
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3364
int
 
3365
main ()
 
3366
{
 
3367
  int i;
 
3368
  for (i = 0; i < 256; i++)
 
3369
    if (XOR (islower (i), ISLOWER (i))
 
3370
        || toupper (i) != TOUPPER (i))
 
3371
      exit(2);
 
3372
  exit (0);
 
3373
}
 
3374
_ACEOF
 
3375
rm -f conftest$ac_exeext
 
3376
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3377
  (eval $ac_link) 2>&5
 
3378
  ac_status=$?
 
3379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3380
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3381
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3382
  (eval $ac_try) 2>&5
 
3383
  ac_status=$?
 
3384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3385
  (exit $ac_status); }; }; then
 
3386
  :
 
3387
else
 
3388
  echo "$as_me: program exited with status $ac_status" >&5
 
3389
echo "$as_me: failed program was:" >&5
 
3390
sed 's/^/| /' conftest.$ac_ext >&5
 
3391
 
 
3392
( exit $ac_status )
 
3393
ac_cv_header_stdc=no
 
3394
fi
 
3395
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3396
fi
 
3397
fi
 
3398
fi
 
3399
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3400
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
3401
if test $ac_cv_header_stdc = yes; then
 
3402
 
 
3403
cat >>confdefs.h <<\_ACEOF
 
3404
#define STDC_HEADERS 1
 
3405
_ACEOF
 
3406
 
 
3407
fi
 
3408
 
 
3409
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3410
 
 
3411
 
 
3412
 
 
3413
 
 
3414
 
 
3415
 
 
3416
 
 
3417
 
 
3418
 
 
3419
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3420
                  inttypes.h stdint.h unistd.h
 
3421
do
 
3422
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3423
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3424
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3425
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3426
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3427
else
 
3428
  cat >conftest.$ac_ext <<_ACEOF
 
3429
/* confdefs.h.  */
 
3430
_ACEOF
 
3431
cat confdefs.h >>conftest.$ac_ext
 
3432
cat >>conftest.$ac_ext <<_ACEOF
 
3433
/* end confdefs.h.  */
 
3434
$ac_includes_default
 
3435
 
 
3436
#include <$ac_header>
 
3437
_ACEOF
 
3438
rm -f conftest.$ac_objext
 
3439
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3440
  (eval $ac_compile) 2>conftest.er1
 
3441
  ac_status=$?
 
3442
  grep -v '^ *+' conftest.er1 >conftest.err
 
3443
  rm -f conftest.er1
 
3444
  cat conftest.err >&5
 
3445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3446
  (exit $ac_status); } &&
 
3447
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3448
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3449
  (eval $ac_try) 2>&5
 
3450
  ac_status=$?
 
3451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3452
  (exit $ac_status); }; } &&
 
3453
         { ac_try='test -s conftest.$ac_objext'
 
3454
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3455
  (eval $ac_try) 2>&5
 
3456
  ac_status=$?
 
3457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3458
  (exit $ac_status); }; }; then
 
3459
  eval "$as_ac_Header=yes"
 
3460
else
 
3461
  echo "$as_me: failed program was:" >&5
 
3462
sed 's/^/| /' conftest.$ac_ext >&5
 
3463
 
 
3464
eval "$as_ac_Header=no"
 
3465
fi
 
3466
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3467
fi
 
3468
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3469
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3470
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3471
  cat >>confdefs.h <<_ACEOF
 
3472
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3473
_ACEOF
 
3474
 
 
3475
fi
 
3476
 
 
3477
done
 
3478
 
 
3479
 
 
3480
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
3481
  echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
3482
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
 
3483
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
3484
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3485
fi
 
3486
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
3487
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
 
3488
else
 
3489
  # Is the header compilable?
 
3490
echo "$as_me:$LINENO: checking minix/config.h usability" >&5
 
3491
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
 
3492
cat >conftest.$ac_ext <<_ACEOF
 
3493
/* confdefs.h.  */
 
3494
_ACEOF
 
3495
cat confdefs.h >>conftest.$ac_ext
 
3496
cat >>conftest.$ac_ext <<_ACEOF
 
3497
/* end confdefs.h.  */
 
3498
$ac_includes_default
 
3499
#include <minix/config.h>
 
3500
_ACEOF
 
3501
rm -f conftest.$ac_objext
 
3502
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3503
  (eval $ac_compile) 2>conftest.er1
 
3504
  ac_status=$?
 
3505
  grep -v '^ *+' conftest.er1 >conftest.err
 
3506
  rm -f conftest.er1
 
3507
  cat conftest.err >&5
 
3508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3509
  (exit $ac_status); } &&
 
3510
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3511
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3512
  (eval $ac_try) 2>&5
 
3513
  ac_status=$?
 
3514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3515
  (exit $ac_status); }; } &&
 
3516
         { ac_try='test -s conftest.$ac_objext'
 
3517
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3518
  (eval $ac_try) 2>&5
 
3519
  ac_status=$?
 
3520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3521
  (exit $ac_status); }; }; then
 
3522
  ac_header_compiler=yes
 
3523
else
 
3524
  echo "$as_me: failed program was:" >&5
 
3525
sed 's/^/| /' conftest.$ac_ext >&5
 
3526
 
 
3527
ac_header_compiler=no
 
3528
fi
 
3529
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3530
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3531
echo "${ECHO_T}$ac_header_compiler" >&6
 
3532
 
 
3533
# Is the header present?
 
3534
echo "$as_me:$LINENO: checking minix/config.h presence" >&5
 
3535
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
 
3536
cat >conftest.$ac_ext <<_ACEOF
 
3537
/* confdefs.h.  */
 
3538
_ACEOF
 
3539
cat confdefs.h >>conftest.$ac_ext
 
3540
cat >>conftest.$ac_ext <<_ACEOF
 
3541
/* end confdefs.h.  */
 
3542
#include <minix/config.h>
 
3543
_ACEOF
 
3544
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3545
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3546
  ac_status=$?
 
3547
  grep -v '^ *+' conftest.er1 >conftest.err
 
3548
  rm -f conftest.er1
 
3549
  cat conftest.err >&5
 
3550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3551
  (exit $ac_status); } >/dev/null; then
 
3552
  if test -s conftest.err; then
 
3553
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3554
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3555
  else
 
3556
    ac_cpp_err=
 
3557
  fi
 
3558
else
 
3559
  ac_cpp_err=yes
 
3560
fi
 
3561
if test -z "$ac_cpp_err"; then
 
3562
  ac_header_preproc=yes
 
3563
else
 
3564
  echo "$as_me: failed program was:" >&5
 
3565
sed 's/^/| /' conftest.$ac_ext >&5
 
3566
 
 
3567
  ac_header_preproc=no
 
3568
fi
 
3569
rm -f conftest.err conftest.$ac_ext
 
3570
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3571
echo "${ECHO_T}$ac_header_preproc" >&6
 
3572
 
 
3573
# So?  What about this header?
 
3574
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
3575
  yes:no: )
 
3576
    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
3577
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3578
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
 
3579
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
 
3580
    ac_header_preproc=yes
 
3581
    ;;
 
3582
  no:yes:* )
 
3583
    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
 
3584
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
 
3585
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
 
3586
echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
 
3587
    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
 
3588
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
 
3589
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
 
3590
echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
3591
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
 
3592
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
 
3593
    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
 
3594
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
 
3595
    (
 
3596
      cat <<\_ASBOX
 
3597
## ------------------------------ ##
 
3598
## Report this to the ntp lists.  ##
 
3599
## ------------------------------ ##
 
3600
_ASBOX
 
3601
    ) |
 
3602
      sed "s/^/$as_me: WARNING:     /" >&2
 
3603
    ;;
 
3604
esac
 
3605
echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
3606
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
 
3607
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
3608
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3609
else
 
3610
  ac_cv_header_minix_config_h=$ac_header_preproc
 
3611
fi
 
3612
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
3613
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
 
3614
 
 
3615
fi
 
3616
if test $ac_cv_header_minix_config_h = yes; then
 
3617
  MINIX=yes
 
3618
else
 
3619
  MINIX=
 
3620
fi
 
3621
 
 
3622
 
 
3623
if test "$MINIX" = yes; then
 
3624
 
 
3625
cat >>confdefs.h <<\_ACEOF
 
3626
#define _POSIX_SOURCE 1
 
3627
_ACEOF
 
3628
 
 
3629
 
 
3630
cat >>confdefs.h <<\_ACEOF
 
3631
#define _POSIX_1_SOURCE 2
 
3632
_ACEOF
 
3633
 
 
3634
 
 
3635
cat >>confdefs.h <<\_ACEOF
 
3636
#define _MINIX 1
 
3637
_ACEOF
 
3638
 
 
3639
fi
 
3640
 
 
3641
 
 
3642
ac_ext=c
 
3643
ac_cpp='$CPP $CPPFLAGS'
 
3644
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3645
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3646
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3647
if test -n "$ac_tool_prefix"; then
 
3648
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3649
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3650
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3651
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3652
if test "${ac_cv_prog_CC+set}" = set; then
 
3653
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3654
else
 
3655
  if test -n "$CC"; then
 
3656
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3657
else
 
3658
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3659
for as_dir in $PATH
 
3660
do
 
3661
  IFS=$as_save_IFS
 
3662
  test -z "$as_dir" && as_dir=.
 
3663
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3664
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3665
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3666
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3667
    break 2
 
3668
  fi
 
3669
done
 
3670
done
 
3671
 
 
3672
fi
 
3673
fi
 
3674
CC=$ac_cv_prog_CC
 
3675
if test -n "$CC"; then
 
3676
  echo "$as_me:$LINENO: result: $CC" >&5
 
3677
echo "${ECHO_T}$CC" >&6
 
3678
else
 
3679
  echo "$as_me:$LINENO: result: no" >&5
 
3680
echo "${ECHO_T}no" >&6
 
3681
fi
 
3682
 
 
3683
fi
 
3684
if test -z "$ac_cv_prog_CC"; then
 
3685
  ac_ct_CC=$CC
 
3686
  # Extract the first word of "gcc", so it can be a program name with args.
 
3687
set dummy gcc; ac_word=$2
 
3688
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3689
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3690
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3691
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3692
else
 
3693
  if test -n "$ac_ct_CC"; then
 
3694
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3695
else
 
3696
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3697
for as_dir in $PATH
 
3698
do
 
3699
  IFS=$as_save_IFS
 
3700
  test -z "$as_dir" && as_dir=.
 
3701
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3702
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3703
    ac_cv_prog_ac_ct_CC="gcc"
 
3704
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3705
    break 2
 
3706
  fi
 
3707
done
 
3708
done
 
3709
 
 
3710
fi
 
3711
fi
 
3712
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3713
if test -n "$ac_ct_CC"; then
 
3714
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3715
echo "${ECHO_T}$ac_ct_CC" >&6
 
3716
else
 
3717
  echo "$as_me:$LINENO: result: no" >&5
 
3718
echo "${ECHO_T}no" >&6
 
3719
fi
 
3720
 
 
3721
  CC=$ac_ct_CC
 
3722
else
 
3723
  CC="$ac_cv_prog_CC"
 
3724
fi
 
3725
 
 
3726
if test -z "$CC"; then
 
3727
  if test -n "$ac_tool_prefix"; then
 
3728
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3729
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3730
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3731
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3732
if test "${ac_cv_prog_CC+set}" = set; then
 
3733
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3734
else
 
3735
  if test -n "$CC"; then
 
3736
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3737
else
 
3738
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3739
for as_dir in $PATH
 
3740
do
 
3741
  IFS=$as_save_IFS
 
3742
  test -z "$as_dir" && as_dir=.
 
3743
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3744
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3745
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3746
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3747
    break 2
 
3748
  fi
 
3749
done
 
3750
done
 
3751
 
 
3752
fi
 
3753
fi
 
3754
CC=$ac_cv_prog_CC
 
3755
if test -n "$CC"; then
 
3756
  echo "$as_me:$LINENO: result: $CC" >&5
 
3757
echo "${ECHO_T}$CC" >&6
 
3758
else
 
3759
  echo "$as_me:$LINENO: result: no" >&5
 
3760
echo "${ECHO_T}no" >&6
 
3761
fi
 
3762
 
 
3763
fi
 
3764
if test -z "$ac_cv_prog_CC"; then
 
3765
  ac_ct_CC=$CC
 
3766
  # Extract the first word of "cc", so it can be a program name with args.
 
3767
set dummy cc; ac_word=$2
 
3768
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3769
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3770
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3771
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3772
else
 
3773
  if test -n "$ac_ct_CC"; then
 
3774
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3775
else
 
3776
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3777
for as_dir in $PATH
 
3778
do
 
3779
  IFS=$as_save_IFS
 
3780
  test -z "$as_dir" && as_dir=.
 
3781
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3782
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3783
    ac_cv_prog_ac_ct_CC="cc"
 
3784
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3785
    break 2
 
3786
  fi
 
3787
done
 
3788
done
 
3789
 
 
3790
fi
 
3791
fi
 
3792
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3793
if test -n "$ac_ct_CC"; then
 
3794
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3795
echo "${ECHO_T}$ac_ct_CC" >&6
 
3796
else
 
3797
  echo "$as_me:$LINENO: result: no" >&5
 
3798
echo "${ECHO_T}no" >&6
 
3799
fi
 
3800
 
 
3801
  CC=$ac_ct_CC
 
3802
else
 
3803
  CC="$ac_cv_prog_CC"
 
3804
fi
 
3805
 
 
3806
fi
 
3807
if test -z "$CC"; then
 
3808
  # Extract the first word of "cc", so it can be a program name with args.
 
3809
set dummy cc; ac_word=$2
 
3810
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3811
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3812
if test "${ac_cv_prog_CC+set}" = set; then
 
3813
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3814
else
 
3815
  if test -n "$CC"; then
 
3816
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3817
else
 
3818
  ac_prog_rejected=no
 
3819
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3820
for as_dir in $PATH
 
3821
do
 
3822
  IFS=$as_save_IFS
 
3823
  test -z "$as_dir" && as_dir=.
 
3824
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3825
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3826
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3827
       ac_prog_rejected=yes
 
3828
       continue
 
3829
     fi
 
3830
    ac_cv_prog_CC="cc"
 
3831
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3832
    break 2
 
3833
  fi
 
3834
done
 
3835
done
 
3836
 
 
3837
if test $ac_prog_rejected = yes; then
 
3838
  # We found a bogon in the path, so make sure we never use it.
 
3839
  set dummy $ac_cv_prog_CC
 
3840
  shift
 
3841
  if test $# != 0; then
 
3842
    # We chose a different compiler from the bogus one.
 
3843
    # However, it has the same basename, so the bogon will be chosen
 
3844
    # first if we set CC to just the basename; use the full file name.
 
3845
    shift
 
3846
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3847
  fi
 
3848
fi
 
3849
fi
 
3850
fi
 
3851
CC=$ac_cv_prog_CC
 
3852
if test -n "$CC"; then
 
3853
  echo "$as_me:$LINENO: result: $CC" >&5
 
3854
echo "${ECHO_T}$CC" >&6
 
3855
else
 
3856
  echo "$as_me:$LINENO: result: no" >&5
 
3857
echo "${ECHO_T}no" >&6
 
3858
fi
 
3859
 
 
3860
fi
 
3861
if test -z "$CC"; then
 
3862
  if test -n "$ac_tool_prefix"; then
 
3863
  for ac_prog in cl
 
3864
  do
 
3865
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3866
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3867
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3868
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3869
if test "${ac_cv_prog_CC+set}" = set; then
 
3870
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3871
else
 
3872
  if test -n "$CC"; then
 
3873
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3874
else
 
3875
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3876
for as_dir in $PATH
 
3877
do
 
3878
  IFS=$as_save_IFS
 
3879
  test -z "$as_dir" && as_dir=.
 
3880
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3881
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3882
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3883
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3884
    break 2
 
3885
  fi
 
3886
done
 
3887
done
 
3888
 
 
3889
fi
 
3890
fi
 
3891
CC=$ac_cv_prog_CC
 
3892
if test -n "$CC"; then
 
3893
  echo "$as_me:$LINENO: result: $CC" >&5
 
3894
echo "${ECHO_T}$CC" >&6
 
3895
else
 
3896
  echo "$as_me:$LINENO: result: no" >&5
 
3897
echo "${ECHO_T}no" >&6
 
3898
fi
 
3899
 
 
3900
    test -n "$CC" && break
 
3901
  done
 
3902
fi
 
3903
if test -z "$CC"; then
 
3904
  ac_ct_CC=$CC
 
3905
  for ac_prog in cl
 
3906
do
 
3907
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3908
set dummy $ac_prog; ac_word=$2
 
3909
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3910
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3911
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3912
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3913
else
 
3914
  if test -n "$ac_ct_CC"; then
 
3915
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3916
else
 
3917
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3918
for as_dir in $PATH
 
3919
do
 
3920
  IFS=$as_save_IFS
 
3921
  test -z "$as_dir" && as_dir=.
 
3922
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3923
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3924
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3925
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3926
    break 2
 
3927
  fi
 
3928
done
 
3929
done
 
3930
 
 
3931
fi
 
3932
fi
 
3933
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3934
if test -n "$ac_ct_CC"; then
 
3935
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3936
echo "${ECHO_T}$ac_ct_CC" >&6
 
3937
else
 
3938
  echo "$as_me:$LINENO: result: no" >&5
 
3939
echo "${ECHO_T}no" >&6
 
3940
fi
 
3941
 
 
3942
  test -n "$ac_ct_CC" && break
 
3943
done
 
3944
 
 
3945
  CC=$ac_ct_CC
 
3946
fi
 
3947
 
 
3948
fi
 
3949
 
 
3950
 
 
3951
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3952
See \`config.log' for more details." >&5
 
3953
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3954
See \`config.log' for more details." >&2;}
 
3955
   { (exit 1); exit 1; }; }
 
3956
 
 
3957
# Provide some information about the compiler.
 
3958
echo "$as_me:$LINENO:" \
 
3959
     "checking for C compiler version" >&5
 
3960
ac_compiler=`set X $ac_compile; echo $2`
 
3961
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
3962
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
3963
  ac_status=$?
 
3964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3965
  (exit $ac_status); }
 
3966
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
3967
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
3968
  ac_status=$?
 
3969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3970
  (exit $ac_status); }
 
3971
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
3972
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
3973
  ac_status=$?
 
3974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3975
  (exit $ac_status); }
 
3976
 
 
3977
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3978
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
3979
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3980
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3981
else
 
3982
  cat >conftest.$ac_ext <<_ACEOF
 
3983
/* confdefs.h.  */
 
3984
_ACEOF
 
3985
cat confdefs.h >>conftest.$ac_ext
 
3986
cat >>conftest.$ac_ext <<_ACEOF
 
3987
/* end confdefs.h.  */
 
3988
 
 
3989
int
 
3990
main ()
 
3991
{
 
3992
#ifndef __GNUC__
 
3993
       choke me
 
3994
#endif
 
3995
 
 
3996
  ;
 
3997
  return 0;
 
3998
}
 
3999
_ACEOF
 
4000
rm -f conftest.$ac_objext
 
4001
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4002
  (eval $ac_compile) 2>conftest.er1
 
4003
  ac_status=$?
 
4004
  grep -v '^ *+' conftest.er1 >conftest.err
 
4005
  rm -f conftest.er1
 
4006
  cat conftest.err >&5
 
4007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4008
  (exit $ac_status); } &&
 
4009
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4010
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4011
  (eval $ac_try) 2>&5
 
4012
  ac_status=$?
 
4013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4014
  (exit $ac_status); }; } &&
 
4015
         { ac_try='test -s conftest.$ac_objext'
 
4016
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4017
  (eval $ac_try) 2>&5
 
4018
  ac_status=$?
 
4019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4020
  (exit $ac_status); }; }; then
 
4021
  ac_compiler_gnu=yes
 
4022
else
 
4023
  echo "$as_me: failed program was:" >&5
 
4024
sed 's/^/| /' conftest.$ac_ext >&5
 
4025
 
 
4026
ac_compiler_gnu=no
 
4027
fi
 
4028
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4029
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
4030
 
 
4031
fi
 
4032
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
4033
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
4034
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
4035
ac_test_CFLAGS=${CFLAGS+set}
 
4036
ac_save_CFLAGS=$CFLAGS
 
4037
CFLAGS="-g"
 
4038
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
4039
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
4040
if test "${ac_cv_prog_cc_g+set}" = set; then
 
4041
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4042
else
 
4043
  cat >conftest.$ac_ext <<_ACEOF
 
4044
/* confdefs.h.  */
 
4045
_ACEOF
 
4046
cat confdefs.h >>conftest.$ac_ext
 
4047
cat >>conftest.$ac_ext <<_ACEOF
 
4048
/* end confdefs.h.  */
 
4049
 
 
4050
int
 
4051
main ()
 
4052
{
 
4053
 
 
4054
  ;
 
4055
  return 0;
 
4056
}
 
4057
_ACEOF
 
4058
rm -f conftest.$ac_objext
 
4059
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4060
  (eval $ac_compile) 2>conftest.er1
 
4061
  ac_status=$?
 
4062
  grep -v '^ *+' conftest.er1 >conftest.err
 
4063
  rm -f conftest.er1
 
4064
  cat conftest.err >&5
 
4065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4066
  (exit $ac_status); } &&
 
4067
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4068
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4069
  (eval $ac_try) 2>&5
 
4070
  ac_status=$?
 
4071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4072
  (exit $ac_status); }; } &&
 
4073
         { ac_try='test -s conftest.$ac_objext'
 
4074
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4075
  (eval $ac_try) 2>&5
 
4076
  ac_status=$?
 
4077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4078
  (exit $ac_status); }; }; then
 
4079
  ac_cv_prog_cc_g=yes
 
4080
else
 
4081
  echo "$as_me: failed program was:" >&5
 
4082
sed 's/^/| /' conftest.$ac_ext >&5
 
4083
 
 
4084
ac_cv_prog_cc_g=no
 
4085
fi
 
4086
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4087
fi
 
4088
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
4089
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
4090
if test "$ac_test_CFLAGS" = set; then
 
4091
  CFLAGS=$ac_save_CFLAGS
 
4092
elif test $ac_cv_prog_cc_g = yes; then
 
4093
  if test "$GCC" = yes; then
 
4094
    CFLAGS="-g -O2"
 
4095
  else
 
4096
    CFLAGS="-g"
 
4097
  fi
 
4098
else
 
4099
  if test "$GCC" = yes; then
 
4100
    CFLAGS="-O2"
 
4101
  else
 
4102
    CFLAGS=
 
4103
  fi
 
4104
fi
 
4105
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
4106
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
4107
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
4108
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4109
else
 
4110
  ac_cv_prog_cc_stdc=no
 
4111
ac_save_CC=$CC
 
4112
cat >conftest.$ac_ext <<_ACEOF
 
4113
/* confdefs.h.  */
 
4114
_ACEOF
 
4115
cat confdefs.h >>conftest.$ac_ext
 
4116
cat >>conftest.$ac_ext <<_ACEOF
 
4117
/* end confdefs.h.  */
 
4118
#include <stdarg.h>
 
4119
#include <stdio.h>
 
4120
#include <sys/types.h>
 
4121
#include <sys/stat.h>
 
4122
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4123
struct buf { int x; };
 
4124
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4125
static char *e (p, i)
 
4126
     char **p;
 
4127
     int i;
 
4128
{
 
4129
  return p[i];
 
4130
}
 
4131
static char *f (char * (*g) (char **, int), char **p, ...)
 
4132
{
 
4133
  char *s;
 
4134
  va_list v;
 
4135
  va_start (v,p);
 
4136
  s = g (p, va_arg (v,int));
 
4137
  va_end (v);
 
4138
  return s;
 
4139
}
 
4140
 
 
4141
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4142
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4143
   These don't provoke an error unfortunately, instead are silently treated
 
4144
   as 'x'.  The following induces an error, until -std1 is added to get
 
4145
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4146
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4147
   that's true only with -std1.  */
 
4148
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4149
 
 
4150
int test (int i, double x);
 
4151
struct s1 {int (*f) (int a);};
 
4152
struct s2 {int (*f) (double a);};
 
4153
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4154
int argc;
 
4155
char **argv;
 
4156
int
 
4157
main ()
 
4158
{
 
4159
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4160
  ;
 
4161
  return 0;
 
4162
}
 
4163
_ACEOF
 
4164
# Don't try gcc -ansi; that turns off useful extensions and
 
4165
# breaks some systems' header files.
 
4166
# AIX                   -qlanglvl=ansi
 
4167
# Ultrix and OSF/1      -std1
 
4168
# HP-UX 10.20 and later -Ae
 
4169
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
4170
# SVR4                  -Xc -D__EXTENSIONS__
 
4171
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4172
do
 
4173
  CC="$ac_save_CC $ac_arg"
 
4174
  rm -f conftest.$ac_objext
 
4175
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4176
  (eval $ac_compile) 2>conftest.er1
 
4177
  ac_status=$?
 
4178
  grep -v '^ *+' conftest.er1 >conftest.err
 
4179
  rm -f conftest.er1
 
4180
  cat conftest.err >&5
 
4181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4182
  (exit $ac_status); } &&
 
4183
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4184
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4185
  (eval $ac_try) 2>&5
 
4186
  ac_status=$?
 
4187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4188
  (exit $ac_status); }; } &&
 
4189
         { ac_try='test -s conftest.$ac_objext'
 
4190
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4191
  (eval $ac_try) 2>&5
 
4192
  ac_status=$?
 
4193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4194
  (exit $ac_status); }; }; then
 
4195
  ac_cv_prog_cc_stdc=$ac_arg
 
4196
break
 
4197
else
 
4198
  echo "$as_me: failed program was:" >&5
 
4199
sed 's/^/| /' conftest.$ac_ext >&5
 
4200
 
 
4201
fi
 
4202
rm -f conftest.err conftest.$ac_objext
 
4203
done
 
4204
rm -f conftest.$ac_ext conftest.$ac_objext
 
4205
CC=$ac_save_CC
 
4206
 
 
4207
fi
 
4208
 
 
4209
case "x$ac_cv_prog_cc_stdc" in
 
4210
  x|xno)
 
4211
    echo "$as_me:$LINENO: result: none needed" >&5
 
4212
echo "${ECHO_T}none needed" >&6 ;;
 
4213
  *)
 
4214
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
4215
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
4216
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
4217
esac
 
4218
 
 
4219
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
4220
# in C++ we need to declare it.  In case someone uses the same compiler
 
4221
# for both compiling C and C++ we need to have the C++ compiler decide
 
4222
# the declaration of exit, since it's the most demanding environment.
 
4223
cat >conftest.$ac_ext <<_ACEOF
 
4224
#ifndef __cplusplus
 
4225
  choke me
 
4226
#endif
 
4227
_ACEOF
 
4228
rm -f conftest.$ac_objext
 
4229
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4230
  (eval $ac_compile) 2>conftest.er1
 
4231
  ac_status=$?
 
4232
  grep -v '^ *+' conftest.er1 >conftest.err
 
4233
  rm -f conftest.er1
 
4234
  cat conftest.err >&5
 
4235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4236
  (exit $ac_status); } &&
 
4237
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4238
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4239
  (eval $ac_try) 2>&5
 
4240
  ac_status=$?
 
4241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4242
  (exit $ac_status); }; } &&
 
4243
         { ac_try='test -s conftest.$ac_objext'
 
4244
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4245
  (eval $ac_try) 2>&5
 
4246
  ac_status=$?
 
4247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4248
  (exit $ac_status); }; }; then
 
4249
  for ac_declaration in \
 
4250
   '' \
 
4251
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
4252
   'extern "C" void std::exit (int); using std::exit;' \
 
4253
   'extern "C" void exit (int) throw ();' \
 
4254
   'extern "C" void exit (int);' \
 
4255
   'void exit (int);'
 
4256
do
 
4257
  cat >conftest.$ac_ext <<_ACEOF
 
4258
/* confdefs.h.  */
 
4259
_ACEOF
 
4260
cat confdefs.h >>conftest.$ac_ext
 
4261
cat >>conftest.$ac_ext <<_ACEOF
 
4262
/* end confdefs.h.  */
 
4263
$ac_declaration
 
4264
#include <stdlib.h>
 
4265
int
 
4266
main ()
 
4267
{
 
4268
exit (42);
 
4269
  ;
 
4270
  return 0;
 
4271
}
 
4272
_ACEOF
 
4273
rm -f conftest.$ac_objext
 
4274
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4275
  (eval $ac_compile) 2>conftest.er1
 
4276
  ac_status=$?
 
4277
  grep -v '^ *+' conftest.er1 >conftest.err
 
4278
  rm -f conftest.er1
 
4279
  cat conftest.err >&5
 
4280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4281
  (exit $ac_status); } &&
 
4282
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4283
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4284
  (eval $ac_try) 2>&5
 
4285
  ac_status=$?
 
4286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4287
  (exit $ac_status); }; } &&
 
4288
         { ac_try='test -s conftest.$ac_objext'
 
4289
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4290
  (eval $ac_try) 2>&5
 
4291
  ac_status=$?
 
4292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4293
  (exit $ac_status); }; }; then
 
4294
  :
 
4295
else
 
4296
  echo "$as_me: failed program was:" >&5
 
4297
sed 's/^/| /' conftest.$ac_ext >&5
 
4298
 
 
4299
continue
 
4300
fi
 
4301
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4302
  cat >conftest.$ac_ext <<_ACEOF
 
4303
/* confdefs.h.  */
 
4304
_ACEOF
 
4305
cat confdefs.h >>conftest.$ac_ext
 
4306
cat >>conftest.$ac_ext <<_ACEOF
 
4307
/* end confdefs.h.  */
 
4308
$ac_declaration
 
4309
int
 
4310
main ()
 
4311
{
 
4312
exit (42);
 
4313
  ;
 
4314
  return 0;
 
4315
}
 
4316
_ACEOF
 
4317
rm -f conftest.$ac_objext
 
4318
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4319
  (eval $ac_compile) 2>conftest.er1
 
4320
  ac_status=$?
 
4321
  grep -v '^ *+' conftest.er1 >conftest.err
 
4322
  rm -f conftest.er1
 
4323
  cat conftest.err >&5
 
4324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4325
  (exit $ac_status); } &&
 
4326
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4327
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4328
  (eval $ac_try) 2>&5
 
4329
  ac_status=$?
 
4330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4331
  (exit $ac_status); }; } &&
 
4332
         { ac_try='test -s conftest.$ac_objext'
 
4333
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4334
  (eval $ac_try) 2>&5
 
4335
  ac_status=$?
 
4336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4337
  (exit $ac_status); }; }; then
 
4338
  break
 
4339
else
 
4340
  echo "$as_me: failed program was:" >&5
 
4341
sed 's/^/| /' conftest.$ac_ext >&5
 
4342
 
 
4343
fi
 
4344
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4345
done
 
4346
rm -f conftest*
 
4347
if test -n "$ac_declaration"; then
 
4348
  echo '#ifdef __cplusplus' >>confdefs.h
 
4349
  echo $ac_declaration      >>confdefs.h
 
4350
  echo '#endif'             >>confdefs.h
 
4351
fi
 
4352
 
 
4353
else
 
4354
  echo "$as_me: failed program was:" >&5
 
4355
sed 's/^/| /' conftest.$ac_ext >&5
 
4356
 
 
4357
fi
 
4358
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4359
ac_ext=c
 
4360
ac_cpp='$CPP $CPPFLAGS'
 
4361
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4362
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4363
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4364
 
 
4365
depcc="$CC"   am_compiler_list=
 
4366
 
 
4367
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4368
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
4369
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
4370
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4371
else
 
4372
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4373
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4374
  # making bogus files that we don't know about and never remove.  For
 
4375
  # instance it was reported that on HP-UX the gcc test will end up
 
4376
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4377
  # in D'.
 
4378
  mkdir conftest.dir
 
4379
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4380
  # using a relative directory.
 
4381
  cp "$am_depcomp" conftest.dir
 
4382
  cd conftest.dir
 
4383
  # We will build objects and dependencies in a subdirectory because
 
4384
  # it helps to detect inapplicable dependency modes.  For instance
 
4385
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4386
  # side effect of compilation, but ICC will put the dependencies in
 
4387
  # the current directory while Tru64 will put them in the object
 
4388
  # directory.
 
4389
  mkdir sub
 
4390
 
 
4391
  am_cv_CC_dependencies_compiler_type=none
 
4392
  if test "$am_compiler_list" = ""; then
 
4393
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4394
  fi
 
4395
  for depmode in $am_compiler_list; do
 
4396
    # Setup a source with many dependencies, because some compilers
 
4397
    # like to wrap large dependency lists on column 80 (with \), and
 
4398
    # we should not choose a depcomp mode which is confused by this.
 
4399
    #
 
4400
    # We need to recreate these files for each test, as the compiler may
 
4401
    # overwrite some of them when testing with obscure command lines.
 
4402
    # This happens at least with the AIX C compiler.
 
4403
    : > sub/conftest.c
 
4404
    for i in 1 2 3 4 5 6; do
 
4405
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4406
      : > sub/conftst$i.h
 
4407
    done
 
4408
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4409
 
 
4410
    case $depmode in
 
4411
    nosideeffect)
 
4412
      # after this tag, mechanisms are not by side-effect, so they'll
 
4413
      # only be used when explicitly requested
 
4414
      if test "x$enable_dependency_tracking" = xyes; then
 
4415
        continue
 
4416
      else
 
4417
        break
 
4418
      fi
 
4419
      ;;
 
4420
    none) break ;;
 
4421
    esac
 
4422
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4423
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4424
    # handle `-M -o', and we need to detect this.
 
4425
    if depmode=$depmode \
 
4426
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4427
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4428
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4429
         >/dev/null 2>conftest.err &&
 
4430
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4431
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4432
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4433
      # icc doesn't choke on unknown options, it will just issue warnings
 
4434
      # (even with -Werror).  So we grep stderr for any message
 
4435
      # that says an option was ignored.
 
4436
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
4437
        am_cv_CC_dependencies_compiler_type=$depmode
 
4438
        break
 
4439
      fi
 
4440
    fi
 
4441
  done
 
4442
 
 
4443
  cd ..
 
4444
  rm -rf conftest.dir
 
4445
else
 
4446
  am_cv_CC_dependencies_compiler_type=none
 
4447
fi
 
4448
 
 
4449
fi
 
4450
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4451
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
4452
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4453
 
 
4454
 
 
4455
 
 
4456
if
 
4457
  test "x$enable_dependency_tracking" != xno \
 
4458
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4459
  am__fastdepCC_TRUE=
 
4460
  am__fastdepCC_FALSE='#'
 
4461
else
 
4462
  am__fastdepCC_TRUE='#'
 
4463
  am__fastdepCC_FALSE=
 
4464
fi
 
4465
 
 
4466
 
 
4467
 
 
4468
ac_ext=c
 
4469
ac_cpp='$CPP $CPPFLAGS'
 
4470
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4471
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4472
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4473
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4474
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
4475
# On Suns, sometimes $CPP names a directory.
 
4476
if test -n "$CPP" && test -d "$CPP"; then
 
4477
  CPP=
 
4478
fi
 
4479
if test -z "$CPP"; then
 
4480
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4481
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4482
else
 
4483
      # Double quotes because CPP needs to be expanded
 
4484
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4485
    do
 
4486
      ac_preproc_ok=false
 
4487
for ac_c_preproc_warn_flag in '' yes
 
4488
do
 
4489
  # Use a header file that comes with gcc, so configuring glibc
 
4490
  # with a fresh cross-compiler works.
 
4491
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4492
  # <limits.h> exists even on freestanding compilers.
 
4493
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4494
  # not just through cpp. "Syntax error" is here to catch this case.
 
4495
  cat >conftest.$ac_ext <<_ACEOF
 
4496
/* confdefs.h.  */
 
4497
_ACEOF
 
4498
cat confdefs.h >>conftest.$ac_ext
 
4499
cat >>conftest.$ac_ext <<_ACEOF
 
4500
/* end confdefs.h.  */
 
4501
#ifdef __STDC__
 
4502
# include <limits.h>
 
4503
#else
 
4504
# include <assert.h>
 
4505
#endif
 
4506
                     Syntax error
 
4507
_ACEOF
 
4508
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4509
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4510
  ac_status=$?
 
4511
  grep -v '^ *+' conftest.er1 >conftest.err
 
4512
  rm -f conftest.er1
 
4513
  cat conftest.err >&5
 
4514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4515
  (exit $ac_status); } >/dev/null; then
 
4516
  if test -s conftest.err; then
 
4517
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4518
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4519
  else
 
4520
    ac_cpp_err=
 
4521
  fi
 
4522
else
 
4523
  ac_cpp_err=yes
 
4524
fi
 
4525
if test -z "$ac_cpp_err"; then
 
4526
  :
 
4527
else
 
4528
  echo "$as_me: failed program was:" >&5
 
4529
sed 's/^/| /' conftest.$ac_ext >&5
 
4530
 
 
4531
  # Broken: fails on valid input.
 
4532
continue
 
4533
fi
 
4534
rm -f conftest.err conftest.$ac_ext
 
4535
 
 
4536
  # OK, works on sane cases.  Now check whether non-existent headers
 
4537
  # can be detected and how.
 
4538
  cat >conftest.$ac_ext <<_ACEOF
 
4539
/* confdefs.h.  */
 
4540
_ACEOF
 
4541
cat confdefs.h >>conftest.$ac_ext
 
4542
cat >>conftest.$ac_ext <<_ACEOF
 
4543
/* end confdefs.h.  */
 
4544
#include <ac_nonexistent.h>
 
4545
_ACEOF
 
4546
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4547
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4548
  ac_status=$?
 
4549
  grep -v '^ *+' conftest.er1 >conftest.err
 
4550
  rm -f conftest.er1
 
4551
  cat conftest.err >&5
 
4552
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4553
  (exit $ac_status); } >/dev/null; then
 
4554
  if test -s conftest.err; then
 
4555
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4556
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4557
  else
 
4558
    ac_cpp_err=
 
4559
  fi
 
4560
else
 
4561
  ac_cpp_err=yes
 
4562
fi
 
4563
if test -z "$ac_cpp_err"; then
 
4564
  # Broken: success on invalid input.
 
4565
continue
 
4566
else
 
4567
  echo "$as_me: failed program was:" >&5
 
4568
sed 's/^/| /' conftest.$ac_ext >&5
 
4569
 
 
4570
  # Passes both tests.
 
4571
ac_preproc_ok=:
 
4572
break
 
4573
fi
 
4574
rm -f conftest.err conftest.$ac_ext
 
4575
 
 
4576
done
 
4577
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4578
rm -f conftest.err conftest.$ac_ext
 
4579
if $ac_preproc_ok; then
 
4580
  break
 
4581
fi
 
4582
 
 
4583
    done
 
4584
    ac_cv_prog_CPP=$CPP
 
4585
 
 
4586
fi
 
4587
  CPP=$ac_cv_prog_CPP
 
4588
else
 
4589
  ac_cv_prog_CPP=$CPP
 
4590
fi
 
4591
echo "$as_me:$LINENO: result: $CPP" >&5
 
4592
echo "${ECHO_T}$CPP" >&6
 
4593
ac_preproc_ok=false
 
4594
for ac_c_preproc_warn_flag in '' yes
 
4595
do
 
4596
  # Use a header file that comes with gcc, so configuring glibc
 
4597
  # with a fresh cross-compiler works.
 
4598
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4599
  # <limits.h> exists even on freestanding compilers.
 
4600
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4601
  # not just through cpp. "Syntax error" is here to catch this case.
 
4602
  cat >conftest.$ac_ext <<_ACEOF
 
4603
/* confdefs.h.  */
 
4604
_ACEOF
 
4605
cat confdefs.h >>conftest.$ac_ext
 
4606
cat >>conftest.$ac_ext <<_ACEOF
 
4607
/* end confdefs.h.  */
 
4608
#ifdef __STDC__
 
4609
# include <limits.h>
 
4610
#else
 
4611
# include <assert.h>
 
4612
#endif
 
4613
                     Syntax error
 
4614
_ACEOF
 
4615
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4616
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4617
  ac_status=$?
 
4618
  grep -v '^ *+' conftest.er1 >conftest.err
 
4619
  rm -f conftest.er1
 
4620
  cat conftest.err >&5
 
4621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4622
  (exit $ac_status); } >/dev/null; then
 
4623
  if test -s conftest.err; then
 
4624
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4625
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4626
  else
 
4627
    ac_cpp_err=
 
4628
  fi
 
4629
else
 
4630
  ac_cpp_err=yes
 
4631
fi
 
4632
if test -z "$ac_cpp_err"; then
 
4633
  :
 
4634
else
 
4635
  echo "$as_me: failed program was:" >&5
 
4636
sed 's/^/| /' conftest.$ac_ext >&5
 
4637
 
 
4638
  # Broken: fails on valid input.
 
4639
continue
 
4640
fi
 
4641
rm -f conftest.err conftest.$ac_ext
 
4642
 
 
4643
  # OK, works on sane cases.  Now check whether non-existent headers
 
4644
  # can be detected and how.
 
4645
  cat >conftest.$ac_ext <<_ACEOF
 
4646
/* confdefs.h.  */
 
4647
_ACEOF
 
4648
cat confdefs.h >>conftest.$ac_ext
 
4649
cat >>conftest.$ac_ext <<_ACEOF
 
4650
/* end confdefs.h.  */
 
4651
#include <ac_nonexistent.h>
 
4652
_ACEOF
 
4653
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4654
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4655
  ac_status=$?
 
4656
  grep -v '^ *+' conftest.er1 >conftest.err
 
4657
  rm -f conftest.er1
 
4658
  cat conftest.err >&5
 
4659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4660
  (exit $ac_status); } >/dev/null; then
 
4661
  if test -s conftest.err; then
 
4662
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4663
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4664
  else
 
4665
    ac_cpp_err=
 
4666
  fi
 
4667
else
 
4668
  ac_cpp_err=yes
 
4669
fi
 
4670
if test -z "$ac_cpp_err"; then
 
4671
  # Broken: success on invalid input.
 
4672
continue
 
4673
else
 
4674
  echo "$as_me: failed program was:" >&5
 
4675
sed 's/^/| /' conftest.$ac_ext >&5
 
4676
 
 
4677
  # Passes both tests.
 
4678
ac_preproc_ok=:
 
4679
break
 
4680
fi
 
4681
rm -f conftest.err conftest.$ac_ext
 
4682
 
 
4683
done
 
4684
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4685
rm -f conftest.err conftest.$ac_ext
 
4686
if $ac_preproc_ok; then
 
4687
  :
 
4688
else
 
4689
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4690
See \`config.log' for more details." >&5
 
4691
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4692
See \`config.log' for more details." >&2;}
 
4693
   { (exit 1); exit 1; }; }
 
4694
fi
 
4695
 
 
4696
ac_ext=c
 
4697
ac_cpp='$CPP $CPPFLAGS'
 
4698
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4699
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4700
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4701
 
 
4702
 
 
4703
case "$host" in
 
4704
 *-*-amigaos)
 
4705
    CFLAGS="$CFLAGS -Dfork=vfork -DSYS_AMIGA"
 
4706
    ;;
2706
4707
 *-pc-cygwin*)
2707
4708
    CFLAGS="$CFLAGS -DSYS_CYGWIN32"
2708
4709
    ;;
2709
4710
 i386-sequent-sysv4)
2710
4711
    case "$CC" in
2711
4712
     cc)
2712
 
        CFLAGS="$CFLAGS -Wc,+Abi-socket"
2713
 
        ;;
2714
 
    esac
2715
 
    ;;
2716
 
 alpha*-dec-osf*)
2717
 
    case "$CC" in
2718
 
     cc)
2719
 
        CFLAGS="$CFLAGS -std1"
2720
 
        ;;
2721
 
    esac
2722
 
    ;;
2723
 
esac
2724
 
 
2725
 
case "$host" in
2726
 
 $target)
2727
 
    ;;
2728
 
 *) case "$target" in
 
4713
        CFLAGS="$CFLAGS -Wc,+abi-socket"
 
4714
        ;;
 
4715
    esac
 
4716
    ;;
 
4717
 *-*-mpeix*)
 
4718
    CPPFLAGS="$CPPFLAGS -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -I/SYSLOG/PUB"
 
4719
    LDFLAGS="$LDFLAGS -L/SYSLOG/PUB"
 
4720
    LIBS="$LIBS -lcurses"
 
4721
    ;;
 
4722
esac
 
4723
 
 
4724
echo "$as_me:$LINENO: checking if we should use /dev/clockctl" >&5
 
4725
echo $ECHO_N "checking if we should use /dev/clockctl... $ECHO_C" >&6
 
4726
if test "${ac_clockctl+set}" = set; then
 
4727
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4728
else
 
4729
  # Check whether --enable-clockctl or --disable-clockctl was given.
 
4730
if test "${enable_clockctl+set}" = set; then
 
4731
  enableval="$enable_clockctl"
 
4732
  ans=$enableval
 
4733
else
 
4734
  case "$host" in
 
4735
      *-*-netbsd*)
 
4736
         ans=yes
 
4737
         ;;
 
4738
      *) ans=no
 
4739
         ;;
 
4740
     esac
 
4741
 
 
4742
fi;
 
4743
ac_clockctl=$ans
 
4744
fi
 
4745
echo "$as_me:$LINENO: result: $ac_clockctl" >&5
 
4746
echo "${ECHO_T}$ac_clockctl" >&6
 
4747
# End of AC_CACHE_CHECK for clockctl
 
4748
 
 
4749
for ac_header in sys/clockctl.h
 
4750
do
 
4751
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4752
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4753
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4754
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4755
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4756
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4757
fi
 
4758
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4759
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4760
else
 
4761
  # Is the header compilable?
 
4762
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4763
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4764
cat >conftest.$ac_ext <<_ACEOF
 
4765
/* confdefs.h.  */
 
4766
_ACEOF
 
4767
cat confdefs.h >>conftest.$ac_ext
 
4768
cat >>conftest.$ac_ext <<_ACEOF
 
4769
/* end confdefs.h.  */
 
4770
$ac_includes_default
 
4771
#include <$ac_header>
 
4772
_ACEOF
 
4773
rm -f conftest.$ac_objext
 
4774
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4775
  (eval $ac_compile) 2>conftest.er1
 
4776
  ac_status=$?
 
4777
  grep -v '^ *+' conftest.er1 >conftest.err
 
4778
  rm -f conftest.er1
 
4779
  cat conftest.err >&5
 
4780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4781
  (exit $ac_status); } &&
 
4782
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4783
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4784
  (eval $ac_try) 2>&5
 
4785
  ac_status=$?
 
4786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4787
  (exit $ac_status); }; } &&
 
4788
         { ac_try='test -s conftest.$ac_objext'
 
4789
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4790
  (eval $ac_try) 2>&5
 
4791
  ac_status=$?
 
4792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4793
  (exit $ac_status); }; }; then
 
4794
  ac_header_compiler=yes
 
4795
else
 
4796
  echo "$as_me: failed program was:" >&5
 
4797
sed 's/^/| /' conftest.$ac_ext >&5
 
4798
 
 
4799
ac_header_compiler=no
 
4800
fi
 
4801
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4802
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4803
echo "${ECHO_T}$ac_header_compiler" >&6
 
4804
 
 
4805
# Is the header present?
 
4806
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4807
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4808
cat >conftest.$ac_ext <<_ACEOF
 
4809
/* confdefs.h.  */
 
4810
_ACEOF
 
4811
cat confdefs.h >>conftest.$ac_ext
 
4812
cat >>conftest.$ac_ext <<_ACEOF
 
4813
/* end confdefs.h.  */
 
4814
#include <$ac_header>
 
4815
_ACEOF
 
4816
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4817
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4818
  ac_status=$?
 
4819
  grep -v '^ *+' conftest.er1 >conftest.err
 
4820
  rm -f conftest.er1
 
4821
  cat conftest.err >&5
 
4822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4823
  (exit $ac_status); } >/dev/null; then
 
4824
  if test -s conftest.err; then
 
4825
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4826
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4827
  else
 
4828
    ac_cpp_err=
 
4829
  fi
 
4830
else
 
4831
  ac_cpp_err=yes
 
4832
fi
 
4833
if test -z "$ac_cpp_err"; then
 
4834
  ac_header_preproc=yes
 
4835
else
 
4836
  echo "$as_me: failed program was:" >&5
 
4837
sed 's/^/| /' conftest.$ac_ext >&5
 
4838
 
 
4839
  ac_header_preproc=no
 
4840
fi
 
4841
rm -f conftest.err conftest.$ac_ext
 
4842
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4843
echo "${ECHO_T}$ac_header_preproc" >&6
 
4844
 
 
4845
# So?  What about this header?
 
4846
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4847
  yes:no: )
 
4848
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4849
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4850
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4851
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4852
    ac_header_preproc=yes
 
4853
    ;;
 
4854
  no:yes:* )
 
4855
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4856
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4857
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4858
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4859
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4860
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4861
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4862
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4863
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4864
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4865
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4866
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4867
    (
 
4868
      cat <<\_ASBOX
 
4869
## ------------------------------ ##
 
4870
## Report this to the ntp lists.  ##
 
4871
## ------------------------------ ##
 
4872
_ASBOX
 
4873
    ) |
 
4874
      sed "s/^/$as_me: WARNING:     /" >&2
 
4875
    ;;
 
4876
esac
 
4877
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4878
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4879
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4880
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4881
else
 
4882
  eval "$as_ac_Header=\$ac_header_preproc"
 
4883
fi
 
4884
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4885
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4886
 
 
4887
fi
 
4888
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4889
  cat >>confdefs.h <<_ACEOF
 
4890
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4891
_ACEOF
 
4892
 
 
4893
fi
 
4894
 
 
4895
done
 
4896
 
 
4897
case "$ac_clockctl$ac_cv_header_sys_clockctl_h" in
 
4898
 yesyes)
 
4899
 
 
4900
cat >>confdefs.h <<\_ACEOF
 
4901
#define HAVE_DROPROOT
 
4902
_ACEOF
 
4903
 
 
4904
    ;;
 
4905
esac
 
4906
 
 
4907
echo "$as_me:$LINENO: checking if we have linux capabilities (libcap)" >&5
 
4908
echo $ECHO_N "checking if we have linux capabilities (libcap)... $ECHO_C" >&6
 
4909
if test "${ac_linuxcaps+set}" = set; then
 
4910
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4911
else
 
4912
  # Check whether --enable-linuxcaps or --disable-linuxcaps was given.
 
4913
if test "${enable_linuxcaps+set}" = set; then
 
4914
  enableval="$enable_linuxcaps"
 
4915
  ans=$enableval
 
4916
else
 
4917
  ans=no
 
4918
fi;
 
4919
ac_linuxcaps=$ans
 
4920
fi
 
4921
echo "$as_me:$LINENO: result: $ac_linuxcaps" >&5
 
4922
echo "${ECHO_T}$ac_linuxcaps" >&6
 
4923
# End of AC_CACHE_CHECK for linuxcaps
 
4924
 
 
4925
for ac_header in sys/capability.h
 
4926
do
 
4927
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4928
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4929
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4930
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4931
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4932
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4933
fi
 
4934
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4935
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4936
else
 
4937
  # Is the header compilable?
 
4938
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4939
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4940
cat >conftest.$ac_ext <<_ACEOF
 
4941
/* confdefs.h.  */
 
4942
_ACEOF
 
4943
cat confdefs.h >>conftest.$ac_ext
 
4944
cat >>conftest.$ac_ext <<_ACEOF
 
4945
/* end confdefs.h.  */
 
4946
$ac_includes_default
 
4947
#include <$ac_header>
 
4948
_ACEOF
 
4949
rm -f conftest.$ac_objext
 
4950
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4951
  (eval $ac_compile) 2>conftest.er1
 
4952
  ac_status=$?
 
4953
  grep -v '^ *+' conftest.er1 >conftest.err
 
4954
  rm -f conftest.er1
 
4955
  cat conftest.err >&5
 
4956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4957
  (exit $ac_status); } &&
 
4958
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4959
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4960
  (eval $ac_try) 2>&5
 
4961
  ac_status=$?
 
4962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4963
  (exit $ac_status); }; } &&
 
4964
         { ac_try='test -s conftest.$ac_objext'
 
4965
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4966
  (eval $ac_try) 2>&5
 
4967
  ac_status=$?
 
4968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4969
  (exit $ac_status); }; }; then
 
4970
  ac_header_compiler=yes
 
4971
else
 
4972
  echo "$as_me: failed program was:" >&5
 
4973
sed 's/^/| /' conftest.$ac_ext >&5
 
4974
 
 
4975
ac_header_compiler=no
 
4976
fi
 
4977
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4978
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4979
echo "${ECHO_T}$ac_header_compiler" >&6
 
4980
 
 
4981
# Is the header present?
 
4982
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4983
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4984
cat >conftest.$ac_ext <<_ACEOF
 
4985
/* confdefs.h.  */
 
4986
_ACEOF
 
4987
cat confdefs.h >>conftest.$ac_ext
 
4988
cat >>conftest.$ac_ext <<_ACEOF
 
4989
/* end confdefs.h.  */
 
4990
#include <$ac_header>
 
4991
_ACEOF
 
4992
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4993
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4994
  ac_status=$?
 
4995
  grep -v '^ *+' conftest.er1 >conftest.err
 
4996
  rm -f conftest.er1
 
4997
  cat conftest.err >&5
 
4998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4999
  (exit $ac_status); } >/dev/null; then
 
5000
  if test -s conftest.err; then
 
5001
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5002
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5003
  else
 
5004
    ac_cpp_err=
 
5005
  fi
 
5006
else
 
5007
  ac_cpp_err=yes
 
5008
fi
 
5009
if test -z "$ac_cpp_err"; then
 
5010
  ac_header_preproc=yes
 
5011
else
 
5012
  echo "$as_me: failed program was:" >&5
 
5013
sed 's/^/| /' conftest.$ac_ext >&5
 
5014
 
 
5015
  ac_header_preproc=no
 
5016
fi
 
5017
rm -f conftest.err conftest.$ac_ext
 
5018
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5019
echo "${ECHO_T}$ac_header_preproc" >&6
 
5020
 
 
5021
# So?  What about this header?
 
5022
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5023
  yes:no: )
 
5024
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5025
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5026
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5027
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5028
    ac_header_preproc=yes
 
5029
    ;;
 
5030
  no:yes:* )
 
5031
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5032
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5033
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5034
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5035
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5036
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5037
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5038
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5039
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5040
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5041
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5042
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5043
    (
 
5044
      cat <<\_ASBOX
 
5045
## ------------------------------ ##
 
5046
## Report this to the ntp lists.  ##
 
5047
## ------------------------------ ##
 
5048
_ASBOX
 
5049
    ) |
 
5050
      sed "s/^/$as_me: WARNING:     /" >&2
 
5051
    ;;
 
5052
esac
 
5053
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5054
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5055
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5056
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5057
else
 
5058
  eval "$as_ac_Header=\$ac_header_preproc"
 
5059
fi
 
5060
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5061
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5062
 
 
5063
fi
 
5064
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5065
  cat >>confdefs.h <<_ACEOF
 
5066
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5067
_ACEOF
 
5068
 
 
5069
fi
 
5070
 
 
5071
done
 
5072
 
 
5073
 
 
5074
for ac_header in sys/prctl.h
 
5075
do
 
5076
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5077
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5078
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5079
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5080
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5081
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5082
fi
 
5083
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5084
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5085
else
 
5086
  # Is the header compilable?
 
5087
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5088
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5089
cat >conftest.$ac_ext <<_ACEOF
 
5090
/* confdefs.h.  */
 
5091
_ACEOF
 
5092
cat confdefs.h >>conftest.$ac_ext
 
5093
cat >>conftest.$ac_ext <<_ACEOF
 
5094
/* end confdefs.h.  */
 
5095
$ac_includes_default
 
5096
#include <$ac_header>
 
5097
_ACEOF
 
5098
rm -f conftest.$ac_objext
 
5099
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5100
  (eval $ac_compile) 2>conftest.er1
 
5101
  ac_status=$?
 
5102
  grep -v '^ *+' conftest.er1 >conftest.err
 
5103
  rm -f conftest.er1
 
5104
  cat conftest.err >&5
 
5105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5106
  (exit $ac_status); } &&
 
5107
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5108
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5109
  (eval $ac_try) 2>&5
 
5110
  ac_status=$?
 
5111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5112
  (exit $ac_status); }; } &&
 
5113
         { ac_try='test -s conftest.$ac_objext'
 
5114
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5115
  (eval $ac_try) 2>&5
 
5116
  ac_status=$?
 
5117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5118
  (exit $ac_status); }; }; then
 
5119
  ac_header_compiler=yes
 
5120
else
 
5121
  echo "$as_me: failed program was:" >&5
 
5122
sed 's/^/| /' conftest.$ac_ext >&5
 
5123
 
 
5124
ac_header_compiler=no
 
5125
fi
 
5126
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5127
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5128
echo "${ECHO_T}$ac_header_compiler" >&6
 
5129
 
 
5130
# Is the header present?
 
5131
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5132
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5133
cat >conftest.$ac_ext <<_ACEOF
 
5134
/* confdefs.h.  */
 
5135
_ACEOF
 
5136
cat confdefs.h >>conftest.$ac_ext
 
5137
cat >>conftest.$ac_ext <<_ACEOF
 
5138
/* end confdefs.h.  */
 
5139
#include <$ac_header>
 
5140
_ACEOF
 
5141
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5142
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5143
  ac_status=$?
 
5144
  grep -v '^ *+' conftest.er1 >conftest.err
 
5145
  rm -f conftest.er1
 
5146
  cat conftest.err >&5
 
5147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5148
  (exit $ac_status); } >/dev/null; then
 
5149
  if test -s conftest.err; then
 
5150
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5151
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5152
  else
 
5153
    ac_cpp_err=
 
5154
  fi
 
5155
else
 
5156
  ac_cpp_err=yes
 
5157
fi
 
5158
if test -z "$ac_cpp_err"; then
 
5159
  ac_header_preproc=yes
 
5160
else
 
5161
  echo "$as_me: failed program was:" >&5
 
5162
sed 's/^/| /' conftest.$ac_ext >&5
 
5163
 
 
5164
  ac_header_preproc=no
 
5165
fi
 
5166
rm -f conftest.err conftest.$ac_ext
 
5167
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5168
echo "${ECHO_T}$ac_header_preproc" >&6
 
5169
 
 
5170
# So?  What about this header?
 
5171
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5172
  yes:no: )
 
5173
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5174
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5175
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5176
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5177
    ac_header_preproc=yes
 
5178
    ;;
 
5179
  no:yes:* )
 
5180
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5181
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5182
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5183
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5184
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5185
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5186
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5187
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5188
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5189
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5190
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5191
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5192
    (
 
5193
      cat <<\_ASBOX
 
5194
## ------------------------------ ##
 
5195
## Report this to the ntp lists.  ##
 
5196
## ------------------------------ ##
 
5197
_ASBOX
 
5198
    ) |
 
5199
      sed "s/^/$as_me: WARNING:     /" >&2
 
5200
    ;;
 
5201
esac
 
5202
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5203
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5204
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5205
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5206
else
 
5207
  eval "$as_ac_Header=\$ac_header_preproc"
 
5208
fi
 
5209
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5210
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5211
 
 
5212
fi
 
5213
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5214
  cat >>confdefs.h <<_ACEOF
 
5215
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5216
_ACEOF
 
5217
 
 
5218
fi
 
5219
 
 
5220
done
 
5221
 
 
5222
case "$ac_linuxcaps$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
 
5223
 yesyesyes)
 
5224
 
 
5225
cat >>confdefs.h <<\_ACEOF
 
5226
#define HAVE_LINUX_CAPABILITIES
 
5227
_ACEOF
 
5228
 
 
5229
 
 
5230
cat >>confdefs.h <<\_ACEOF
 
5231
#define HAVE_DROPROOT
 
5232
_ACEOF
 
5233
 
 
5234
    LIBS="$LIBS -lcap"
 
5235
    ;;
 
5236
esac
 
5237
 
 
5238
 
 
5239
case "$build" in
 
5240
 $host)
 
5241
    ;;
 
5242
 *) case "$host" in
2729
5243
     *-*-vxworks*)
2730
5244
        # Quick and dirty sanity check
2731
5245
        case "$VX_KERNEL" in
2732
 
         '') { { echo "$as_me:2732: error: Please follow the directions in html/vxworks.html!" >&5
 
5246
         '') { { echo "$as_me:$LINENO: error: Please follow the directions in html/vxworks.html!" >&5
2733
5247
echo "$as_me: error: Please follow the directions in html/vxworks.html!" >&2;}
2734
5248
   { (exit 1); exit 1; }; }
2735
5249
            ;;
2740
5254
    ;;
2741
5255
esac
2742
5256
 
2743
 
for ac_prog in mawk gawk nawk awk
 
5257
for ac_prog in gawk mawk nawk awk
2744
5258
do
2745
5259
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2746
5260
set dummy $ac_prog; ac_word=$2
2747
 
echo "$as_me:2747: checking for $ac_word" >&5
 
5261
echo "$as_me:$LINENO: checking for $ac_word" >&5
2748
5262
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2749
5263
if test "${ac_cv_prog_AWK+set}" = set; then
2750
5264
  echo $ECHO_N "(cached) $ECHO_C" >&6
2752
5266
  if test -n "$AWK"; then
2753
5267
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2754
5268
else
2755
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2756
 
ac_dummy="$PATH"
2757
 
for ac_dir in $ac_dummy; do
2758
 
  IFS=$ac_save_IFS
2759
 
  test -z "$ac_dir" && ac_dir=.
2760
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2761
 
ac_cv_prog_AWK="$ac_prog"
2762
 
echo "$as_me:2762: found $ac_dir/$ac_word" >&5
2763
 
break
 
5269
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5270
for as_dir in $PATH
 
5271
do
 
5272
  IFS=$as_save_IFS
 
5273
  test -z "$as_dir" && as_dir=.
 
5274
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5275
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5276
    ac_cv_prog_AWK="$ac_prog"
 
5277
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5278
    break 2
 
5279
  fi
 
5280
done
2764
5281
done
2765
5282
 
2766
5283
fi
2767
5284
fi
2768
5285
AWK=$ac_cv_prog_AWK
2769
5286
if test -n "$AWK"; then
2770
 
  echo "$as_me:2770: result: $AWK" >&5
 
5287
  echo "$as_me:$LINENO: result: $AWK" >&5
2771
5288
echo "${ECHO_T}$AWK" >&6
2772
5289
else
2773
 
  echo "$as_me:2773: result: no" >&5
 
5290
  echo "$as_me:$LINENO: result: no" >&5
2774
5291
echo "${ECHO_T}no" >&6
2775
5292
fi
2776
5293
 
2777
5294
  test -n "$AWK" && break
2778
5295
done
2779
5296
 
2780
 
echo "$as_me:2780: checking whether ${MAKE-make} sets \${MAKE}" >&5
2781
 
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2782
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
5297
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
5298
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
5299
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2783
5300
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2784
5301
  echo $ECHO_N "(cached) $ECHO_C" >&6
2785
5302
else
2786
 
  cat >conftest.make <<\EOF
 
5303
  cat >conftest.make <<\_ACEOF
2787
5304
all:
2788
 
        @echo 'ac_maketemp="${MAKE}"'
2789
 
EOF
 
5305
        @echo 'ac_maketemp="$(MAKE)"'
 
5306
_ACEOF
2790
5307
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2791
5308
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2792
5309
if test -n "$ac_maketemp"; then
2797
5314
rm -f conftest.make
2798
5315
fi
2799
5316
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2800
 
  echo "$as_me:2800: result: yes" >&5
 
5317
  echo "$as_me:$LINENO: result: yes" >&5
2801
5318
echo "${ECHO_T}yes" >&6
2802
5319
  SET_MAKE=
2803
5320
else
2804
 
  echo "$as_me:2804: result: no" >&5
 
5321
  echo "$as_me:$LINENO: result: no" >&5
2805
5322
echo "${ECHO_T}no" >&6
2806
5323
  SET_MAKE="MAKE=${MAKE-make}"
2807
5324
fi
2808
5325
 
 
5326
 
2809
5327
rm -f conftest*
2810
5328
 
2811
5329
case "$GCC" in
2822
5340
    # CFLAGS="$CFLAGS -Wtraditional"
2823
5341
    # CFLAGS="$CFLAGS -Wwrite-strings"
2824
5342
 
2825
 
    echo "$as_me:2825: checking whether ${CC-cc} -pipe works" >&5
2826
 
echo $ECHO_N "checking whether ${CC-cc} -pipe works... $ECHO_C" >&6
2827
 
if test "${ac_cv_prog_cc_pipe+set}" = set; then
2828
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2829
 
else
2830
 
  echo 'void f(){}' > conftest.c
2831
 
    if test -z "`${CC-cc} -pipe -c conftest.c 2>&1`" -a -s conftest.o; then
2832
 
      ac_cv_prog_cc_pipe=yes
2833
 
    else
2834
 
      ac_cv_prog_cc_pipe=no
2835
 
    fi
2836
 
    rm -f conftest*
2837
 
 
2838
 
fi
2839
 
echo "$as_me:2839: result: $ac_cv_prog_cc_pipe" >&5
2840
 
echo "${ECHO_T}$ac_cv_prog_cc_pipe" >&6
2841
 
 
2842
 
    case "$ac_cv_prog_cc_pipe" in
2843
 
     yes)
2844
 
        CFLAGS="$CFLAGS -pipe"
2845
 
        ;;
2846
 
    esac
2847
5343
    ;;
2848
5344
esac
2849
5345
 
2850
5346
ac_busted_vpath_in_make=no
2851
5347
 
2852
 
case "$target" in
 
5348
case "$host" in
2853
5349
 *-next-nextstep3)
2854
5350
    CFLAGS="$CFLAGS -posix"
2855
5351
    ;;
2863
5359
      case "$CFLAGS" in
2864
5360
       *-n32*) ;;
2865
5361
       *-n64*) ;;
 
5362
       *-64*) ;;
2866
5363
       *) case "$iCFLAGS" in
2867
5364
           '') CFLAGS="-O2 -g3 -n32" ;;
2868
5365
           *)  CFLAGS="$CFLAGS -n32" ;;
2872
5369
      case "$LDFLAGS" in
2873
5370
       *-n32*) ;;
2874
5371
       *-n64*) ;;
 
5372
       *-64*) ;;
2875
5373
       *) LDFLAGS="$LDFLAGS -n32" ;;
2876
5374
      esac
2877
5375
    fi
2879
5377
 *-*-solaris2.5.1)
2880
5378
    ac_busted_vpath_in_make=yes
2881
5379
    ;;
 
5380
 *-*-unicosmp*)
 
5381
    ac_busted_vpath_in_make=yes
 
5382
    ;;
2882
5383
esac
2883
5384
 
2884
5385
case "$ac_busted_vpath_in_make$srcdir" in
2886
5387
 yes.) ;;
2887
5388
 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in
2888
5389
     '')
2889
 
        { { echo "$as_me:2889: error: building outside of the main directory requires GNU make" >&5
 
5390
        { { echo "$as_me:$LINENO: error: building outside of the main directory requires GNU make" >&5
2890
5391
echo "$as_me: error: building outside of the main directory requires GNU make" >&2;}
2891
5392
   { (exit 1); exit 1; }; }
2892
5393
        ;;
2895
5396
    ;;
2896
5397
esac
2897
5398
 
2898
 
echo "$as_me:2898: checking whether ln -s works" >&5
 
5399
 
 
5400
echo "$as_me:$LINENO: checking whether ln -s works" >&5
2899
5401
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2900
5402
LN_S=$as_ln_s
2901
5403
if test "$LN_S" = "ln -s"; then
2902
 
  echo "$as_me:2902: result: yes" >&5
 
5404
  echo "$as_me:$LINENO: result: yes" >&5
2903
5405
echo "${ECHO_T}yes" >&6
2904
5406
else
2905
 
  echo "$as_me:2905: result: no, using $LN_S" >&5
 
5407
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2906
5408
echo "${ECHO_T}no, using $LN_S" >&6
2907
5409
fi
2908
5410
 
2909
5411
if test $ac_cv_c_compiler_gnu = yes; then
2910
 
    echo "$as_me:2910: checking whether $CC needs -traditional" >&5
 
5412
    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2911
5413
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2912
5414
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2913
5415
  echo $ECHO_N "(cached) $ECHO_C" >&6
2914
5416
else
2915
5417
    ac_pattern="Autoconf.*'x'"
2916
5418
  cat >conftest.$ac_ext <<_ACEOF
2917
 
#line 2917 "configure"
2918
 
#include "confdefs.h"
 
5419
/* confdefs.h.  */
 
5420
_ACEOF
 
5421
cat confdefs.h >>conftest.$ac_ext
 
5422
cat >>conftest.$ac_ext <<_ACEOF
 
5423
/* end confdefs.h.  */
2919
5424
#include <sgtty.h>
2920
5425
Autoconf TIOCGETP
2921
5426
_ACEOF
2922
5427
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2923
 
  egrep "$ac_pattern" >/dev/null 2>&1; then
 
5428
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
2924
5429
  ac_cv_prog_gcc_traditional=yes
2925
5430
else
2926
5431
  ac_cv_prog_gcc_traditional=no
2927
5432
fi
2928
5433
rm -f conftest*
2929
5434
 
 
5435
 
2930
5436
  if test $ac_cv_prog_gcc_traditional = no; then
2931
5437
    cat >conftest.$ac_ext <<_ACEOF
2932
 
#line 2932 "configure"
2933
 
#include "confdefs.h"
 
5438
/* confdefs.h.  */
 
5439
_ACEOF
 
5440
cat confdefs.h >>conftest.$ac_ext
 
5441
cat >>conftest.$ac_ext <<_ACEOF
 
5442
/* end confdefs.h.  */
2934
5443
#include <termio.h>
2935
5444
Autoconf TCGETA
2936
5445
_ACEOF
2937
5446
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2938
 
  egrep "$ac_pattern" >/dev/null 2>&1; then
 
5447
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
2939
5448
  ac_cv_prog_gcc_traditional=yes
2940
5449
fi
2941
5450
rm -f conftest*
2942
5451
 
2943
5452
  fi
2944
5453
fi
2945
 
echo "$as_me:2945: result: $ac_cv_prog_gcc_traditional" >&5
 
5454
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2946
5455
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2947
5456
  if test $ac_cv_prog_gcc_traditional = yes; then
2948
5457
    CC="$CC -traditional"
2949
5458
  fi
2950
5459
fi
2951
5460
 
2952
 
echo "$as_me:2952: checking for AIX" >&5
2953
 
echo $ECHO_N "checking for AIX... $ECHO_C" >&6
 
5461
echo "$as_me:$LINENO: checking for working volatile" >&5
 
5462
echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
 
5463
if test "${ac_cv_c_volatile+set}" = set; then
 
5464
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5465
else
 
5466
  cat >conftest.$ac_ext <<_ACEOF
 
5467
/* confdefs.h.  */
 
5468
_ACEOF
 
5469
cat confdefs.h >>conftest.$ac_ext
 
5470
cat >>conftest.$ac_ext <<_ACEOF
 
5471
/* end confdefs.h.  */
 
5472
 
 
5473
int
 
5474
main ()
 
5475
{
 
5476
 
 
5477
volatile int x;
 
5478
int * volatile y;
 
5479
  ;
 
5480
  return 0;
 
5481
}
 
5482
_ACEOF
 
5483
rm -f conftest.$ac_objext
 
5484
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5485
  (eval $ac_compile) 2>conftest.er1
 
5486
  ac_status=$?
 
5487
  grep -v '^ *+' conftest.er1 >conftest.err
 
5488
  rm -f conftest.er1
 
5489
  cat conftest.err >&5
 
5490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5491
  (exit $ac_status); } &&
 
5492
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5493
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5494
  (eval $ac_try) 2>&5
 
5495
  ac_status=$?
 
5496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5497
  (exit $ac_status); }; } &&
 
5498
         { ac_try='test -s conftest.$ac_objext'
 
5499
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5500
  (eval $ac_try) 2>&5
 
5501
  ac_status=$?
 
5502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5503
  (exit $ac_status); }; }; then
 
5504
  ac_cv_c_volatile=yes
 
5505
else
 
5506
  echo "$as_me: failed program was:" >&5
 
5507
sed 's/^/| /' conftest.$ac_ext >&5
 
5508
 
 
5509
ac_cv_c_volatile=no
 
5510
fi
 
5511
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5512
fi
 
5513
echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
 
5514
echo "${ECHO_T}$ac_cv_c_volatile" >&6
 
5515
if test $ac_cv_c_volatile = no; then
 
5516
 
 
5517
cat >>confdefs.h <<\_ACEOF
 
5518
#define volatile
 
5519
_ACEOF
 
5520
 
 
5521
fi
 
5522
 
 
5523
 
 
5524
        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
 
5525
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
 
5526
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
 
5527
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5528
else
 
5529
  ac_check_lib_save_LIBS=$LIBS
 
5530
LIBS="-lcposix  $LIBS"
2954
5531
cat >conftest.$ac_ext <<_ACEOF
2955
 
#line 2955 "configure"
2956
 
#include "confdefs.h"
2957
 
#ifdef _AIX
2958
 
  yes
 
5532
/* confdefs.h.  */
 
5533
_ACEOF
 
5534
cat confdefs.h >>conftest.$ac_ext
 
5535
cat >>conftest.$ac_ext <<_ACEOF
 
5536
/* end confdefs.h.  */
 
5537
 
 
5538
/* Override any gcc2 internal prototype to avoid an error.  */
 
5539
#ifdef __cplusplus
 
5540
extern "C"
2959
5541
#endif
2960
 
 
2961
 
_ACEOF
2962
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2963
 
  egrep "yes" >/dev/null 2>&1; then
2964
 
  echo "$as_me:2964: result: yes" >&5
2965
 
echo "${ECHO_T}yes" >&6
2966
 
cat >>confdefs.h <<\EOF
2967
 
#define _ALL_SOURCE 1
2968
 
EOF
2969
 
 
2970
 
else
2971
 
  echo "$as_me:2971: result: no" >&5
2972
 
echo "${ECHO_T}no" >&6
2973
 
fi
2974
 
rm -f conftest*
2975
 
 
2976
 
echo "$as_me:2976: checking for minix/config.h" >&5
2977
 
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2978
 
if test "${ac_cv_header_minix_config_h+set}" = set; then
2979
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2980
 
else
2981
 
  cat >conftest.$ac_ext <<_ACEOF
2982
 
#line 2982 "configure"
2983
 
#include "confdefs.h"
2984
 
#include <minix/config.h>
2985
 
_ACEOF
2986
 
if { (eval echo "$as_me:2986: \"$ac_cpp conftest.$ac_ext\"") >&5
2987
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5542
/* We use char because int might match the return type of a gcc2
 
5543
   builtin and then its argument prototype would still apply.  */
 
5544
char strerror ();
 
5545
int
 
5546
main ()
 
5547
{
 
5548
strerror ();
 
5549
  ;
 
5550
  return 0;
 
5551
}
 
5552
_ACEOF
 
5553
rm -f conftest.$ac_objext conftest$ac_exeext
 
5554
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5555
  (eval $ac_link) 2>conftest.er1
2988
5556
  ac_status=$?
2989
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
5557
  grep -v '^ *+' conftest.er1 >conftest.err
2990
5558
  rm -f conftest.er1
2991
5559
  cat conftest.err >&5
2992
 
  echo "$as_me:2992: \$? = $ac_status" >&5
2993
 
  (exit $ac_status); } >/dev/null; then
2994
 
  if test -s conftest.err; then
2995
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2996
 
  else
2997
 
    ac_cpp_err=
2998
 
  fi
2999
 
else
3000
 
  ac_cpp_err=yes
3001
 
fi
3002
 
if test -z "$ac_cpp_err"; then
3003
 
  ac_cv_header_minix_config_h=yes
 
5560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5561
  (exit $ac_status); } &&
 
5562
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5563
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5564
  (eval $ac_try) 2>&5
 
5565
  ac_status=$?
 
5566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5567
  (exit $ac_status); }; } &&
 
5568
         { ac_try='test -s conftest$ac_exeext'
 
5569
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5570
  (eval $ac_try) 2>&5
 
5571
  ac_status=$?
 
5572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5573
  (exit $ac_status); }; }; then
 
5574
  ac_cv_lib_cposix_strerror=yes
3004
5575
else
3005
5576
  echo "$as_me: failed program was:" >&5
3006
 
  cat conftest.$ac_ext >&5
3007
 
  ac_cv_header_minix_config_h=no
3008
 
fi
3009
 
rm -f conftest.err conftest.$ac_ext
3010
 
fi
3011
 
echo "$as_me:3011: result: $ac_cv_header_minix_config_h" >&5
3012
 
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3013
 
if test $ac_cv_header_minix_config_h = yes; then
3014
 
  MINIX=yes
3015
 
else
3016
 
  MINIX=
3017
 
fi
3018
 
 
3019
 
if test "$MINIX" = yes; then
3020
 
 
3021
 
cat >>confdefs.h <<\EOF
3022
 
#define _POSIX_SOURCE 1
3023
 
EOF
3024
 
 
3025
 
cat >>confdefs.h <<\EOF
3026
 
#define _POSIX_1_SOURCE 2
3027
 
EOF
3028
 
 
3029
 
cat >>confdefs.h <<\EOF
3030
 
#define _MINIX 1
3031
 
EOF
3032
 
 
3033
 
fi
3034
 
 
3035
 
echo "$as_me:3035: checking for POSIXized ISC" >&5
3036
 
echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
3037
 
if test -d /etc/conf/kconfig.d &&
3038
 
   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3039
 
then
3040
 
  echo "$as_me:3040: result: yes" >&5
3041
 
echo "${ECHO_T}yes" >&6
3042
 
  ISC=yes # If later tests want to check for ISC.
3043
 
 
3044
 
cat >>confdefs.h <<\EOF
3045
 
#define _POSIX_SOURCE 1
3046
 
EOF
3047
 
 
3048
 
  if test "$GCC" = yes; then
3049
 
    CC="$CC -posix"
3050
 
  else
3051
 
    CC="$CC -Xp"
3052
 
  fi
3053
 
else
3054
 
  echo "$as_me:3054: result: no" >&5
3055
 
echo "${ECHO_T}no" >&6
3056
 
  ISC=
3057
 
fi
 
5577
sed 's/^/| /' conftest.$ac_ext >&5
 
5578
 
 
5579
ac_cv_lib_cposix_strerror=no
 
5580
fi
 
5581
rm -f conftest.err conftest.$ac_objext \
 
5582
      conftest$ac_exeext conftest.$ac_ext
 
5583
LIBS=$ac_check_lib_save_LIBS
 
5584
fi
 
5585
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
 
5586
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
 
5587
if test $ac_cv_lib_cposix_strerror = yes; then
 
5588
  LIBS="$LIBS -lcposix"
 
5589
fi
 
5590
 
 
5591
 
3058
5592
 
3059
5593
if test -n "$ac_tool_prefix"; then
3060
5594
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3061
5595
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3062
 
echo "$as_me:3062: checking for $ac_word" >&5
 
5596
echo "$as_me:$LINENO: checking for $ac_word" >&5
3063
5597
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3064
5598
if test "${ac_cv_prog_RANLIB+set}" = set; then
3065
5599
  echo $ECHO_N "(cached) $ECHO_C" >&6
3067
5601
  if test -n "$RANLIB"; then
3068
5602
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3069
5603
else
3070
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3071
 
ac_dummy="$PATH"
3072
 
for ac_dir in $ac_dummy; do
3073
 
  IFS=$ac_save_IFS
3074
 
  test -z "$ac_dir" && ac_dir=.
3075
 
  $as_executable_p "$ac_dir/$ac_word" || continue
3076
 
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3077
 
echo "$as_me:3077: found $ac_dir/$ac_word" >&5
3078
 
break
 
5604
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5605
for as_dir in $PATH
 
5606
do
 
5607
  IFS=$as_save_IFS
 
5608
  test -z "$as_dir" && as_dir=.
 
5609
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5610
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5611
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5612
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5613
    break 2
 
5614
  fi
 
5615
done
3079
5616
done
3080
5617
 
3081
5618
fi
3082
5619
fi
3083
5620
RANLIB=$ac_cv_prog_RANLIB
3084
5621
if test -n "$RANLIB"; then
3085
 
  echo "$as_me:3085: result: $RANLIB" >&5
 
5622
  echo "$as_me:$LINENO: result: $RANLIB" >&5
3086
5623
echo "${ECHO_T}$RANLIB" >&6
3087
5624
else
3088
 
  echo "$as_me:3088: result: no" >&5
 
5625
  echo "$as_me:$LINENO: result: no" >&5
3089
5626
echo "${ECHO_T}no" >&6
3090
5627
fi
3091
5628
 
3094
5631
  ac_ct_RANLIB=$RANLIB
3095
5632
  # Extract the first word of "ranlib", so it can be a program name with args.
3096
5633
set dummy ranlib; ac_word=$2
3097
 
echo "$as_me:3097: checking for $ac_word" >&5
 
5634
echo "$as_me:$LINENO: checking for $ac_word" >&5
3098
5635
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3099
5636
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3100
5637
  echo $ECHO_N "(cached) $ECHO_C" >&6
3102
5639
  if test -n "$ac_ct_RANLIB"; then
3103
5640
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3104
5641
else
3105
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3106
 
ac_dummy="$PATH"
3107
 
for ac_dir in $ac_dummy; do
3108
 
  IFS=$ac_save_IFS
3109
 
  test -z "$ac_dir" && ac_dir=.
3110
 
  $as_executable_p "$ac_dir/$ac_word" || continue
3111
 
ac_cv_prog_ac_ct_RANLIB="ranlib"
3112
 
echo "$as_me:3112: found $ac_dir/$ac_word" >&5
3113
 
break
 
5642
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5643
for as_dir in $PATH
 
5644
do
 
5645
  IFS=$as_save_IFS
 
5646
  test -z "$as_dir" && as_dir=.
 
5647
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5648
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5649
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5650
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5651
    break 2
 
5652
  fi
 
5653
done
3114
5654
done
3115
5655
 
3116
5656
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3118
5658
fi
3119
5659
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3120
5660
if test -n "$ac_ct_RANLIB"; then
3121
 
  echo "$as_me:3121: result: $ac_ct_RANLIB" >&5
 
5661
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3122
5662
echo "${ECHO_T}$ac_ct_RANLIB" >&6
3123
5663
else
3124
 
  echo "$as_me:3124: result: no" >&5
 
5664
  echo "$as_me:$LINENO: result: no" >&5
3125
5665
echo "${ECHO_T}no" >&6
3126
5666
fi
3127
5667
 
3132
5672
 
3133
5673
# Extract the first word of "sh", so it can be a program name with args.
3134
5674
set dummy sh; ac_word=$2
3135
 
echo "$as_me:3135: checking for $ac_word" >&5
 
5675
echo "$as_me:$LINENO: checking for $ac_word" >&5
3136
5676
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3137
5677
if test "${ac_cv_path_PATH_SH+set}" = set; then
3138
5678
  echo $ECHO_N "(cached) $ECHO_C" >&6
3142
5682
  ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a path.
3143
5683
  ;;
3144
5684
  *)
3145
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3146
 
ac_dummy="$PATH"
3147
 
for ac_dir in $ac_dummy; do
3148
 
  IFS=$ac_save_IFS
3149
 
  test -z "$ac_dir" && ac_dir=.
3150
 
  if $as_executable_p "$ac_dir/$ac_word"; then
3151
 
   ac_cv_path_PATH_SH="$ac_dir/$ac_word"
3152
 
   echo "$as_me:3152: found $ac_dir/$ac_word" >&5
3153
 
   break
3154
 
fi
 
5685
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5686
for as_dir in $PATH
 
5687
do
 
5688
  IFS=$as_save_IFS
 
5689
  test -z "$as_dir" && as_dir=.
 
5690
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5691
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5692
    ac_cv_path_PATH_SH="$as_dir/$ac_word$ac_exec_ext"
 
5693
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5694
    break 2
 
5695
  fi
 
5696
done
3155
5697
done
3156
5698
 
3157
5699
  ;;
3160
5702
PATH_SH=$ac_cv_path_PATH_SH
3161
5703
 
3162
5704
if test -n "$PATH_SH"; then
3163
 
  echo "$as_me:3163: result: $PATH_SH" >&5
 
5705
  echo "$as_me:$LINENO: result: $PATH_SH" >&5
3164
5706
echo "${ECHO_T}$PATH_SH" >&6
3165
5707
else
3166
 
  echo "$as_me:3166: result: no" >&5
 
5708
  echo "$as_me:$LINENO: result: no" >&5
3167
5709
echo "${ECHO_T}no" >&6
3168
5710
fi
3169
5711
 
3170
5712
# Extract the first word of "perl", so it can be a program name with args.
3171
5713
set dummy perl; ac_word=$2
3172
 
echo "$as_me:3172: checking for $ac_word" >&5
 
5714
echo "$as_me:$LINENO: checking for $ac_word" >&5
3173
5715
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3174
5716
if test "${ac_cv_path_PATH_PERL+set}" = set; then
3175
5717
  echo $ECHO_N "(cached) $ECHO_C" >&6
3179
5721
  ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
3180
5722
  ;;
3181
5723
  *)
3182
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3183
 
ac_dummy="$PATH"
3184
 
for ac_dir in $ac_dummy; do
3185
 
  IFS=$ac_save_IFS
3186
 
  test -z "$ac_dir" && ac_dir=.
3187
 
  if $as_executable_p "$ac_dir/$ac_word"; then
3188
 
   ac_cv_path_PATH_PERL="$ac_dir/$ac_word"
3189
 
   echo "$as_me:3189: found $ac_dir/$ac_word" >&5
3190
 
   break
3191
 
fi
 
5724
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5725
for as_dir in $PATH
 
5726
do
 
5727
  IFS=$as_save_IFS
 
5728
  test -z "$as_dir" && as_dir=.
 
5729
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5730
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5731
    ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
 
5732
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5733
    break 2
 
5734
  fi
 
5735
done
3192
5736
done
3193
5737
 
3194
5738
  ;;
3197
5741
PATH_PERL=$ac_cv_path_PATH_PERL
3198
5742
 
3199
5743
if test -n "$PATH_PERL"; then
3200
 
  echo "$as_me:3200: result: $PATH_PERL" >&5
 
5744
  echo "$as_me:$LINENO: result: $PATH_PERL" >&5
3201
5745
echo "${ECHO_T}$PATH_PERL" >&6
3202
5746
else
3203
 
  echo "$as_me:3203: result: no" >&5
 
5747
  echo "$as_me:$LINENO: result: no" >&5
3204
5748
echo "${ECHO_T}no" >&6
3205
5749
fi
3206
5750
 
3207
 
 cat >conftest.$ac_ext <<_ACEOF
3208
 
#line 3208 "configure"
3209
 
#include "confdefs.h"
 
5751
 
 
5752
 
 
5753
 
 
5754
cat >conftest.$ac_ext <<_ACEOF
 
5755
/* confdefs.h.  */
 
5756
_ACEOF
 
5757
cat confdefs.h >>conftest.$ac_ext
 
5758
cat >>conftest.$ac_ext <<_ACEOF
 
5759
/* end confdefs.h.  */
3210
5760
#define ACAT(a,b)a ## b
3211
5761
ACAT(Cir,cus)
3212
5762
 
3213
5763
_ACEOF
3214
5764
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3215
 
  egrep "Circus" >/dev/null 2>&1; then
3216
 
  cat >>confdefs.h <<\EOF
 
5765
  $EGREP "Circus" >/dev/null 2>&1; then
 
5766
  cat >>confdefs.h <<\_ACEOF
3217
5767
#define ULONG_CONST(a) a ## UL
3218
 
EOF
 
5768
_ACEOF
3219
5769
 
3220
5770
else
3221
5771
  cat >conftest.$ac_ext <<_ACEOF
3222
 
#line 3222 "configure"
3223
 
#include "confdefs.h"
 
5772
/* confdefs.h.  */
 
5773
_ACEOF
 
5774
cat confdefs.h >>conftest.$ac_ext
 
5775
cat >>conftest.$ac_ext <<_ACEOF
 
5776
/* end confdefs.h.  */
3224
5777
#define RCAT(a,b)a/**/b
3225
5778
RCAT(Rei,ser)
3226
5779
 
3227
5780
_ACEOF
3228
5781
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3229
 
  egrep "Reiser" >/dev/null 2>&1; then
3230
 
  cat >>confdefs.h <<\EOF
 
5782
  $EGREP "Reiser" >/dev/null 2>&1; then
 
5783
  cat >>confdefs.h <<\_ACEOF
3231
5784
#define ULONG_CONST(a) a/**/L
3232
 
EOF
 
5785
_ACEOF
3233
5786
 
3234
5787
else
3235
 
  { { echo "$as_me:3235: error: How do we create an unsigned long constant?" >&5
 
5788
  { { echo "$as_me:$LINENO: error: How do we create an unsigned long constant?" >&5
3236
5789
echo "$as_me: error: How do we create an unsigned long constant?" >&2;}
3237
5790
   { (exit 1); exit 1; }; }
3238
5791
fi
3241
5794
fi
3242
5795
rm -f conftest*
3243
5796
 
3244
 
case "$target" in
 
5797
 
 
5798
case "$host" in
3245
5799
 *-*-vxworks*)
3246
5800
    ac_link="$ac_link $VX_KERNEL"
3247
5801
    ;;
3258
5812
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3259
5813
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3260
5814
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
5815
# OS/2's system install, which has a completely different semantic
3261
5816
# ./install, which can be erroneously created by make from ./install.sh.
3262
 
echo "$as_me:3262: checking for a BSD compatible install" >&5
3263
 
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
 
5817
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
5818
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3264
5819
if test -z "$INSTALL"; then
3265
5820
if test "${ac_cv_path_install+set}" = set; then
3266
5821
  echo $ECHO_N "(cached) $ECHO_C" >&6
3267
5822
else
3268
 
    ac_save_IFS=$IFS; IFS=$ac_path_separator
3269
 
  for ac_dir in $PATH; do
3270
 
    IFS=$ac_save_IFS
3271
 
    # Account for people who put trailing slashes in PATH elements.
3272
 
    case $ac_dir/ in
3273
 
    / | ./ | .// | /cC/* \
3274
 
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3275
 
    | /usr/ucb/* ) ;;
3276
 
    *)
3277
 
      # OSF1 and SCO ODT 3.0 have their own names for install.
3278
 
      # Don't use installbsd from OSF since it installs stuff as root
3279
 
      # by default.
3280
 
      for ac_prog in ginstall scoinst install; do
3281
 
        if $as_executable_p "$ac_dir/$ac_prog"; then
 
5823
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5824
for as_dir in $PATH
 
5825
do
 
5826
  IFS=$as_save_IFS
 
5827
  test -z "$as_dir" && as_dir=.
 
5828
  # Account for people who put trailing slashes in PATH elements.
 
5829
case $as_dir/ in
 
5830
  ./ | .// | /cC/* | \
 
5831
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
5832
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
5833
  /usr/ucb/* ) ;;
 
5834
  *)
 
5835
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
5836
    # Don't use installbsd from OSF since it installs stuff as root
 
5837
    # by default.
 
5838
    for ac_prog in ginstall scoinst install; do
 
5839
      for ac_exec_ext in '' $ac_executable_extensions; do
 
5840
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3282
5841
          if test $ac_prog = install &&
3283
 
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 
5842
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3284
5843
            # AIX install.  It has an incompatible calling convention.
3285
5844
            :
3286
5845
          elif test $ac_prog = install &&
3287
 
            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 
5846
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3288
5847
            # program-specific install script used by HP pwplus--don't use.
3289
5848
            :
3290
5849
          else
3291
 
            ac_cv_path_install="$ac_dir/$ac_prog -c"
3292
 
            break 2
 
5850
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
5851
            break 3
3293
5852
          fi
3294
5853
        fi
3295
5854
      done
3296
 
      ;;
3297
 
    esac
3298
 
  done
 
5855
    done
 
5856
    ;;
 
5857
esac
 
5858
done
 
5859
 
3299
5860
 
3300
5861
fi
3301
5862
  if test "${ac_cv_path_install+set}" = set; then
3308
5869
    INSTALL=$ac_install_sh
3309
5870
  fi
3310
5871
fi
3311
 
echo "$as_me:3311: result: $INSTALL" >&5
 
5872
echo "$as_me:$LINENO: result: $INSTALL" >&5
3312
5873
echo "${ECHO_T}$INSTALL" >&6
3313
5874
 
3314
5875
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3319
5880
 
3320
5881
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3321
5882
 
3322
 
case "$target" in
 
5883
 
 
5884
case "$host" in
3323
5885
 *-pc-cygwin*)
3324
5886
 
3325
 
echo "$as_me:3325: checking for main in -ladvapi32" >&5
 
5887
echo "$as_me:$LINENO: checking for main in -ladvapi32" >&5
3326
5888
echo $ECHO_N "checking for main in -ladvapi32... $ECHO_C" >&6
3327
5889
if test "${ac_cv_lib_advapi32_main+set}" = set; then
3328
5890
  echo $ECHO_N "(cached) $ECHO_C" >&6
3330
5892
  ac_check_lib_save_LIBS=$LIBS
3331
5893
LIBS="-ladvapi32  $LIBS"
3332
5894
cat >conftest.$ac_ext <<_ACEOF
3333
 
#line 3333 "configure"
3334
 
#include "confdefs.h"
 
5895
/* confdefs.h.  */
 
5896
_ACEOF
 
5897
cat confdefs.h >>conftest.$ac_ext
 
5898
cat >>conftest.$ac_ext <<_ACEOF
 
5899
/* end confdefs.h.  */
 
5900
 
3335
5901
 
3336
5902
int
3337
5903
main ()
3342
5908
}
3343
5909
_ACEOF
3344
5910
rm -f conftest.$ac_objext conftest$ac_exeext
3345
 
if { (eval echo "$as_me:3345: \"$ac_link\"") >&5
3346
 
  (eval $ac_link) 2>&5
 
5911
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5912
  (eval $ac_link) 2>conftest.er1
3347
5913
  ac_status=$?
3348
 
  echo "$as_me:3348: \$? = $ac_status" >&5
 
5914
  grep -v '^ *+' conftest.er1 >conftest.err
 
5915
  rm -f conftest.er1
 
5916
  cat conftest.err >&5
 
5917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349
5918
  (exit $ac_status); } &&
3350
 
         { ac_try='test -s conftest$ac_exeext'
3351
 
  { (eval echo "$as_me:3351: \"$ac_try\"") >&5
3352
 
  (eval $ac_try) 2>&5
3353
 
  ac_status=$?
3354
 
  echo "$as_me:3354: \$? = $ac_status" >&5
 
5919
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5920
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5921
  (eval $ac_try) 2>&5
 
5922
  ac_status=$?
 
5923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5924
  (exit $ac_status); }; } &&
 
5925
         { ac_try='test -s conftest$ac_exeext'
 
5926
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5927
  (eval $ac_try) 2>&5
 
5928
  ac_status=$?
 
5929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355
5930
  (exit $ac_status); }; }; then
3356
5931
  ac_cv_lib_advapi32_main=yes
3357
5932
else
3358
5933
  echo "$as_me: failed program was:" >&5
3359
 
cat conftest.$ac_ext >&5
 
5934
sed 's/^/| /' conftest.$ac_ext >&5
 
5935
 
3360
5936
ac_cv_lib_advapi32_main=no
3361
5937
fi
3362
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5938
rm -f conftest.err conftest.$ac_objext \
 
5939
      conftest$ac_exeext conftest.$ac_ext
3363
5940
LIBS=$ac_check_lib_save_LIBS
3364
5941
fi
3365
 
echo "$as_me:3365: result: $ac_cv_lib_advapi32_main" >&5
 
5942
echo "$as_me:$LINENO: result: $ac_cv_lib_advapi32_main" >&5
3366
5943
echo "${ECHO_T}$ac_cv_lib_advapi32_main" >&6
3367
5944
if test $ac_cv_lib_advapi32_main = yes; then
3368
 
  cat >>confdefs.h <<EOF
 
5945
  cat >>confdefs.h <<_ACEOF
3369
5946
#define HAVE_LIBADVAPI32 1
3370
 
EOF
 
5947
_ACEOF
3371
5948
 
3372
5949
  LIBS="-ladvapi32 $LIBS"
3373
5950
 
3376
5953
    ;;
3377
5954
esac
3378
5955
 
3379
 
echo "$as_me:3379: checking for nlist in -lelf" >&5
 
5956
echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
3380
5957
echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6
3381
5958
if test "${ac_cv_lib_elf_nlist+set}" = set; then
3382
5959
  echo $ECHO_N "(cached) $ECHO_C" >&6
3384
5961
  ac_check_lib_save_LIBS=$LIBS
3385
5962
LIBS="-lelf  $LIBS"
3386
5963
cat >conftest.$ac_ext <<_ACEOF
3387
 
#line 3387 "configure"
3388
 
#include "confdefs.h"
 
5964
/* confdefs.h.  */
 
5965
_ACEOF
 
5966
cat confdefs.h >>conftest.$ac_ext
 
5967
cat >>conftest.$ac_ext <<_ACEOF
 
5968
/* end confdefs.h.  */
3389
5969
 
3390
5970
/* Override any gcc2 internal prototype to avoid an error.  */
3391
5971
#ifdef __cplusplus
3403
5983
}
3404
5984
_ACEOF
3405
5985
rm -f conftest.$ac_objext conftest$ac_exeext
3406
 
if { (eval echo "$as_me:3406: \"$ac_link\"") >&5
3407
 
  (eval $ac_link) 2>&5
 
5986
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5987
  (eval $ac_link) 2>conftest.er1
3408
5988
  ac_status=$?
3409
 
  echo "$as_me:3409: \$? = $ac_status" >&5
 
5989
  grep -v '^ *+' conftest.er1 >conftest.err
 
5990
  rm -f conftest.er1
 
5991
  cat conftest.err >&5
 
5992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410
5993
  (exit $ac_status); } &&
3411
 
         { ac_try='test -s conftest$ac_exeext'
3412
 
  { (eval echo "$as_me:3412: \"$ac_try\"") >&5
3413
 
  (eval $ac_try) 2>&5
3414
 
  ac_status=$?
3415
 
  echo "$as_me:3415: \$? = $ac_status" >&5
 
5994
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5995
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5996
  (eval $ac_try) 2>&5
 
5997
  ac_status=$?
 
5998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5999
  (exit $ac_status); }; } &&
 
6000
         { ac_try='test -s conftest$ac_exeext'
 
6001
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6002
  (eval $ac_try) 2>&5
 
6003
  ac_status=$?
 
6004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416
6005
  (exit $ac_status); }; }; then
3417
6006
  ac_cv_lib_elf_nlist=yes
3418
6007
else
3419
6008
  echo "$as_me: failed program was:" >&5
3420
 
cat conftest.$ac_ext >&5
 
6009
sed 's/^/| /' conftest.$ac_ext >&5
 
6010
 
3421
6011
ac_cv_lib_elf_nlist=no
3422
6012
fi
3423
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6013
rm -f conftest.err conftest.$ac_objext \
 
6014
      conftest$ac_exeext conftest.$ac_ext
3424
6015
LIBS=$ac_check_lib_save_LIBS
3425
6016
fi
3426
 
echo "$as_me:3426: result: $ac_cv_lib_elf_nlist" >&5
 
6017
echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
3427
6018
echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6
3428
6019
if test $ac_cv_lib_elf_nlist = yes; then
3429
 
  cat >>confdefs.h <<EOF
 
6020
  cat >>confdefs.h <<_ACEOF
3430
6021
#define HAVE_LIBELF 1
3431
 
EOF
 
6022
_ACEOF
3432
6023
 
3433
6024
  LIBS="-lelf $LIBS"
3434
6025
 
3435
6026
fi
3436
6027
 
3437
 
echo "$as_me:3437: checking for main in -lkvm" >&5
 
6028
echo "$as_me:$LINENO: checking for main in -lkvm" >&5
3438
6029
echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6
3439
6030
if test "${ac_cv_lib_kvm_main+set}" = set; then
3440
6031
  echo $ECHO_N "(cached) $ECHO_C" >&6
3442
6033
  ac_check_lib_save_LIBS=$LIBS
3443
6034
LIBS="-lkvm  $LIBS"
3444
6035
cat >conftest.$ac_ext <<_ACEOF
3445
 
#line 3445 "configure"
3446
 
#include "confdefs.h"
 
6036
/* confdefs.h.  */
 
6037
_ACEOF
 
6038
cat confdefs.h >>conftest.$ac_ext
 
6039
cat >>conftest.$ac_ext <<_ACEOF
 
6040
/* end confdefs.h.  */
 
6041
 
3447
6042
 
3448
6043
int
3449
6044
main ()
3454
6049
}
3455
6050
_ACEOF
3456
6051
rm -f conftest.$ac_objext conftest$ac_exeext
3457
 
if { (eval echo "$as_me:3457: \"$ac_link\"") >&5
3458
 
  (eval $ac_link) 2>&5
 
6052
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6053
  (eval $ac_link) 2>conftest.er1
3459
6054
  ac_status=$?
3460
 
  echo "$as_me:3460: \$? = $ac_status" >&5
 
6055
  grep -v '^ *+' conftest.er1 >conftest.err
 
6056
  rm -f conftest.er1
 
6057
  cat conftest.err >&5
 
6058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461
6059
  (exit $ac_status); } &&
3462
 
         { ac_try='test -s conftest$ac_exeext'
3463
 
  { (eval echo "$as_me:3463: \"$ac_try\"") >&5
3464
 
  (eval $ac_try) 2>&5
3465
 
  ac_status=$?
3466
 
  echo "$as_me:3466: \$? = $ac_status" >&5
 
6060
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6061
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6062
  (eval $ac_try) 2>&5
 
6063
  ac_status=$?
 
6064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6065
  (exit $ac_status); }; } &&
 
6066
         { ac_try='test -s conftest$ac_exeext'
 
6067
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6068
  (eval $ac_try) 2>&5
 
6069
  ac_status=$?
 
6070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467
6071
  (exit $ac_status); }; }; then
3468
6072
  ac_cv_lib_kvm_main=yes
3469
6073
else
3470
6074
  echo "$as_me: failed program was:" >&5
3471
 
cat conftest.$ac_ext >&5
 
6075
sed 's/^/| /' conftest.$ac_ext >&5
 
6076
 
3472
6077
ac_cv_lib_kvm_main=no
3473
6078
fi
3474
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6079
rm -f conftest.err conftest.$ac_objext \
 
6080
      conftest$ac_exeext conftest.$ac_ext
3475
6081
LIBS=$ac_check_lib_save_LIBS
3476
6082
fi
3477
 
echo "$as_me:3477: result: $ac_cv_lib_kvm_main" >&5
 
6083
echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5
3478
6084
echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6
3479
6085
if test $ac_cv_lib_kvm_main = yes; then
3480
 
  cat >>confdefs.h <<EOF
 
6086
  cat >>confdefs.h <<_ACEOF
3481
6087
#define HAVE_LIBKVM 1
3482
 
EOF
 
6088
_ACEOF
3483
6089
 
3484
6090
  LIBS="-lkvm $LIBS"
3485
6091
 
3486
6092
fi
3487
6093
 
3488
 
echo "$as_me:3488: checking for nlist in -lld" >&5
 
6094
echo "$as_me:$LINENO: checking for nlist in -lld" >&5
3489
6095
echo $ECHO_N "checking for nlist in -lld... $ECHO_C" >&6
3490
6096
if test "${ac_cv_lib_ld_nlist+set}" = set; then
3491
6097
  echo $ECHO_N "(cached) $ECHO_C" >&6
3493
6099
  ac_check_lib_save_LIBS=$LIBS
3494
6100
LIBS="-lld  $LIBS"
3495
6101
cat >conftest.$ac_ext <<_ACEOF
3496
 
#line 3496 "configure"
3497
 
#include "confdefs.h"
 
6102
/* confdefs.h.  */
 
6103
_ACEOF
 
6104
cat confdefs.h >>conftest.$ac_ext
 
6105
cat >>conftest.$ac_ext <<_ACEOF
 
6106
/* end confdefs.h.  */
3498
6107
 
3499
6108
/* Override any gcc2 internal prototype to avoid an error.  */
3500
6109
#ifdef __cplusplus
3512
6121
}
3513
6122
_ACEOF
3514
6123
rm -f conftest.$ac_objext conftest$ac_exeext
3515
 
if { (eval echo "$as_me:3515: \"$ac_link\"") >&5
3516
 
  (eval $ac_link) 2>&5
 
6124
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6125
  (eval $ac_link) 2>conftest.er1
3517
6126
  ac_status=$?
3518
 
  echo "$as_me:3518: \$? = $ac_status" >&5
 
6127
  grep -v '^ *+' conftest.er1 >conftest.err
 
6128
  rm -f conftest.er1
 
6129
  cat conftest.err >&5
 
6130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519
6131
  (exit $ac_status); } &&
3520
 
         { ac_try='test -s conftest$ac_exeext'
3521
 
  { (eval echo "$as_me:3521: \"$ac_try\"") >&5
3522
 
  (eval $ac_try) 2>&5
3523
 
  ac_status=$?
3524
 
  echo "$as_me:3524: \$? = $ac_status" >&5
 
6132
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6133
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6134
  (eval $ac_try) 2>&5
 
6135
  ac_status=$?
 
6136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6137
  (exit $ac_status); }; } &&
 
6138
         { ac_try='test -s conftest$ac_exeext'
 
6139
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6140
  (eval $ac_try) 2>&5
 
6141
  ac_status=$?
 
6142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525
6143
  (exit $ac_status); }; }; then
3526
6144
  ac_cv_lib_ld_nlist=yes
3527
6145
else
3528
6146
  echo "$as_me: failed program was:" >&5
3529
 
cat conftest.$ac_ext >&5
 
6147
sed 's/^/| /' conftest.$ac_ext >&5
 
6148
 
3530
6149
ac_cv_lib_ld_nlist=no
3531
6150
fi
3532
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6151
rm -f conftest.err conftest.$ac_objext \
 
6152
      conftest$ac_exeext conftest.$ac_ext
3533
6153
LIBS=$ac_check_lib_save_LIBS
3534
6154
fi
3535
 
echo "$as_me:3535: result: $ac_cv_lib_ld_nlist" >&5
 
6155
echo "$as_me:$LINENO: result: $ac_cv_lib_ld_nlist" >&5
3536
6156
echo "${ECHO_T}$ac_cv_lib_ld_nlist" >&6
3537
6157
if test $ac_cv_lib_ld_nlist = yes; then
3538
 
  cat >>confdefs.h <<EOF
 
6158
  cat >>confdefs.h <<_ACEOF
3539
6159
#define HAVE_LIBLD 1
3540
 
EOF
 
6160
_ACEOF
3541
6161
 
3542
6162
  LIBS="-lld $LIBS"
3543
6163
 
3544
6164
fi
3545
6165
 
3546
 
echo "$as_me:3546: checking for nlist in -lmld" >&5
 
6166
 
 
6167
echo "$as_me:$LINENO: checking for nlist in -lmld" >&5
3547
6168
echo $ECHO_N "checking for nlist in -lmld... $ECHO_C" >&6
3548
6169
if test "${ac_cv_lib_mld_nlist+set}" = set; then
3549
6170
  echo $ECHO_N "(cached) $ECHO_C" >&6
3551
6172
  ac_check_lib_save_LIBS=$LIBS
3552
6173
LIBS="-lmld  $LIBS"
3553
6174
cat >conftest.$ac_ext <<_ACEOF
3554
 
#line 3554 "configure"
3555
 
#include "confdefs.h"
 
6175
/* confdefs.h.  */
 
6176
_ACEOF
 
6177
cat confdefs.h >>conftest.$ac_ext
 
6178
cat >>conftest.$ac_ext <<_ACEOF
 
6179
/* end confdefs.h.  */
3556
6180
 
3557
6181
/* Override any gcc2 internal prototype to avoid an error.  */
3558
6182
#ifdef __cplusplus
3570
6194
}
3571
6195
_ACEOF
3572
6196
rm -f conftest.$ac_objext conftest$ac_exeext
3573
 
if { (eval echo "$as_me:3573: \"$ac_link\"") >&5
3574
 
  (eval $ac_link) 2>&5
 
6197
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6198
  (eval $ac_link) 2>conftest.er1
3575
6199
  ac_status=$?
3576
 
  echo "$as_me:3576: \$? = $ac_status" >&5
 
6200
  grep -v '^ *+' conftest.er1 >conftest.err
 
6201
  rm -f conftest.er1
 
6202
  cat conftest.err >&5
 
6203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577
6204
  (exit $ac_status); } &&
3578
 
         { ac_try='test -s conftest$ac_exeext'
3579
 
  { (eval echo "$as_me:3579: \"$ac_try\"") >&5
3580
 
  (eval $ac_try) 2>&5
3581
 
  ac_status=$?
3582
 
  echo "$as_me:3582: \$? = $ac_status" >&5
 
6205
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6206
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6207
  (eval $ac_try) 2>&5
 
6208
  ac_status=$?
 
6209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6210
  (exit $ac_status); }; } &&
 
6211
         { ac_try='test -s conftest$ac_exeext'
 
6212
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6213
  (eval $ac_try) 2>&5
 
6214
  ac_status=$?
 
6215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583
6216
  (exit $ac_status); }; }; then
3584
6217
  ac_cv_lib_mld_nlist=yes
3585
6218
else
3586
6219
  echo "$as_me: failed program was:" >&5
3587
 
cat conftest.$ac_ext >&5
 
6220
sed 's/^/| /' conftest.$ac_ext >&5
 
6221
 
3588
6222
ac_cv_lib_mld_nlist=no
3589
6223
fi
3590
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6224
rm -f conftest.err conftest.$ac_objext \
 
6225
      conftest$ac_exeext conftest.$ac_ext
3591
6226
LIBS=$ac_check_lib_save_LIBS
3592
6227
fi
3593
 
echo "$as_me:3593: result: $ac_cv_lib_mld_nlist" >&5
 
6228
echo "$as_me:$LINENO: result: $ac_cv_lib_mld_nlist" >&5
3594
6229
echo "${ECHO_T}$ac_cv_lib_mld_nlist" >&6
3595
6230
if test $ac_cv_lib_mld_nlist = yes; then
3596
 
  cat >>confdefs.h <<EOF
 
6231
  cat >>confdefs.h <<_ACEOF
3597
6232
#define HAVE_LIBMLD 1
3598
 
EOF
 
6233
_ACEOF
3599
6234
 
3600
6235
  LIBS="-lmld $LIBS"
3601
6236
 
3602
6237
fi
3603
6238
 
3604
 
echo "$as_me:3604: checking for gethostent" >&5
 
6239
echo "$as_me:$LINENO: checking for gethostent" >&5
3605
6240
echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
3606
6241
if test "${ac_cv_func_gethostent+set}" = set; then
3607
6242
  echo $ECHO_N "(cached) $ECHO_C" >&6
3608
6243
else
3609
6244
  cat >conftest.$ac_ext <<_ACEOF
3610
 
#line 3610 "configure"
3611
 
#include "confdefs.h"
 
6245
/* confdefs.h.  */
 
6246
_ACEOF
 
6247
cat confdefs.h >>conftest.$ac_ext
 
6248
cat >>conftest.$ac_ext <<_ACEOF
 
6249
/* end confdefs.h.  */
 
6250
/* Define gethostent to an innocuous variant, in case <limits.h> declares gethostent.
 
6251
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6252
#define gethostent innocuous_gethostent
 
6253
 
3612
6254
/* System header to define __stub macros and hopefully few prototypes,
3613
 
    which can conflict with char gethostent (); below.  */
3614
 
#include <assert.h>
 
6255
    which can conflict with char gethostent (); below.
 
6256
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6257
    <limits.h> exists even on freestanding compilers.  */
 
6258
 
 
6259
#ifdef __STDC__
 
6260
# include <limits.h>
 
6261
#else
 
6262
# include <assert.h>
 
6263
#endif
 
6264
 
 
6265
#undef gethostent
 
6266
 
3615
6267
/* Override any gcc2 internal prototype to avoid an error.  */
3616
6268
#ifdef __cplusplus
3617
6269
extern "C"
 
6270
{
3618
6271
#endif
3619
6272
/* We use char because int might match the return type of a gcc2
3620
6273
   builtin and then its argument prototype would still apply.  */
3621
6274
char gethostent ();
3622
 
char (*f) ();
3623
 
 
3624
 
int
3625
 
main ()
3626
 
{
3627
6275
/* The GNU C library defines this for functions which it implements
3628
6276
    to always fail with ENOSYS.  Some functions are actually named
3629
6277
    something starting with __ and the normal name is an alias.  */
3630
6278
#if defined (__stub_gethostent) || defined (__stub___gethostent)
3631
6279
choke me
3632
6280
#else
3633
 
f = gethostent;
 
6281
char (*f) () = gethostent;
 
6282
#endif
 
6283
#ifdef __cplusplus
 
6284
}
3634
6285
#endif
3635
6286
 
 
6287
int
 
6288
main ()
 
6289
{
 
6290
return f != gethostent;
3636
6291
  ;
3637
6292
  return 0;
3638
6293
}
3639
6294
_ACEOF
3640
6295
rm -f conftest.$ac_objext conftest$ac_exeext
3641
 
if { (eval echo "$as_me:3641: \"$ac_link\"") >&5
3642
 
  (eval $ac_link) 2>&5
 
6296
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6297
  (eval $ac_link) 2>conftest.er1
3643
6298
  ac_status=$?
3644
 
  echo "$as_me:3644: \$? = $ac_status" >&5
 
6299
  grep -v '^ *+' conftest.er1 >conftest.err
 
6300
  rm -f conftest.er1
 
6301
  cat conftest.err >&5
 
6302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645
6303
  (exit $ac_status); } &&
3646
 
         { ac_try='test -s conftest$ac_exeext'
3647
 
  { (eval echo "$as_me:3647: \"$ac_try\"") >&5
3648
 
  (eval $ac_try) 2>&5
3649
 
  ac_status=$?
3650
 
  echo "$as_me:3650: \$? = $ac_status" >&5
 
6304
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6305
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6306
  (eval $ac_try) 2>&5
 
6307
  ac_status=$?
 
6308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6309
  (exit $ac_status); }; } &&
 
6310
         { ac_try='test -s conftest$ac_exeext'
 
6311
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6312
  (eval $ac_try) 2>&5
 
6313
  ac_status=$?
 
6314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651
6315
  (exit $ac_status); }; }; then
3652
6316
  ac_cv_func_gethostent=yes
3653
6317
else
3654
6318
  echo "$as_me: failed program was:" >&5
3655
 
cat conftest.$ac_ext >&5
 
6319
sed 's/^/| /' conftest.$ac_ext >&5
 
6320
 
3656
6321
ac_cv_func_gethostent=no
3657
6322
fi
3658
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6323
rm -f conftest.err conftest.$ac_objext \
 
6324
      conftest$ac_exeext conftest.$ac_ext
3659
6325
fi
3660
 
echo "$as_me:3660: result: $ac_cv_func_gethostent" >&5
 
6326
echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
3661
6327
echo "${ECHO_T}$ac_cv_func_gethostent" >&6
3662
6328
if test $ac_cv_func_gethostent = yes; then
3663
6329
  :
3664
6330
else
3665
6331
 
3666
 
echo "$as_me:3666: checking for gethostent in -lnsl" >&5
 
6332
echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
3667
6333
echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
3668
6334
if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
3669
6335
  echo $ECHO_N "(cached) $ECHO_C" >&6
3671
6337
  ac_check_lib_save_LIBS=$LIBS
3672
6338
LIBS="-lnsl -lsocket $LIBS"
3673
6339
cat >conftest.$ac_ext <<_ACEOF
3674
 
#line 3674 "configure"
3675
 
#include "confdefs.h"
 
6340
/* confdefs.h.  */
 
6341
_ACEOF
 
6342
cat confdefs.h >>conftest.$ac_ext
 
6343
cat >>conftest.$ac_ext <<_ACEOF
 
6344
/* end confdefs.h.  */
3676
6345
 
3677
6346
/* Override any gcc2 internal prototype to avoid an error.  */
3678
6347
#ifdef __cplusplus
3690
6359
}
3691
6360
_ACEOF
3692
6361
rm -f conftest.$ac_objext conftest$ac_exeext
3693
 
if { (eval echo "$as_me:3693: \"$ac_link\"") >&5
3694
 
  (eval $ac_link) 2>&5
 
6362
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6363
  (eval $ac_link) 2>conftest.er1
3695
6364
  ac_status=$?
3696
 
  echo "$as_me:3696: \$? = $ac_status" >&5
 
6365
  grep -v '^ *+' conftest.er1 >conftest.err
 
6366
  rm -f conftest.er1
 
6367
  cat conftest.err >&5
 
6368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697
6369
  (exit $ac_status); } &&
3698
 
         { ac_try='test -s conftest$ac_exeext'
3699
 
  { (eval echo "$as_me:3699: \"$ac_try\"") >&5
3700
 
  (eval $ac_try) 2>&5
3701
 
  ac_status=$?
3702
 
  echo "$as_me:3702: \$? = $ac_status" >&5
 
6370
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6371
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6372
  (eval $ac_try) 2>&5
 
6373
  ac_status=$?
 
6374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6375
  (exit $ac_status); }; } &&
 
6376
         { ac_try='test -s conftest$ac_exeext'
 
6377
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6378
  (eval $ac_try) 2>&5
 
6379
  ac_status=$?
 
6380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703
6381
  (exit $ac_status); }; }; then
3704
6382
  ac_cv_lib_nsl_gethostent=yes
3705
6383
else
3706
6384
  echo "$as_me: failed program was:" >&5
3707
 
cat conftest.$ac_ext >&5
 
6385
sed 's/^/| /' conftest.$ac_ext >&5
 
6386
 
3708
6387
ac_cv_lib_nsl_gethostent=no
3709
6388
fi
3710
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6389
rm -f conftest.err conftest.$ac_objext \
 
6390
      conftest$ac_exeext conftest.$ac_ext
3711
6391
LIBS=$ac_check_lib_save_LIBS
3712
6392
fi
3713
 
echo "$as_me:3713: result: $ac_cv_lib_nsl_gethostent" >&5
 
6393
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
3714
6394
echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
3715
6395
if test $ac_cv_lib_nsl_gethostent = yes; then
3716
 
  cat >>confdefs.h <<EOF
 
6396
  cat >>confdefs.h <<_ACEOF
3717
6397
#define HAVE_LIBNSL 1
3718
 
EOF
 
6398
_ACEOF
3719
6399
 
3720
6400
  LIBS="-lnsl $LIBS"
3721
6401
 
3723
6403
 
3724
6404
fi
3725
6405
 
3726
 
echo "$as_me:3726: checking for openlog" >&5
 
6406
echo "$as_me:$LINENO: checking for openlog" >&5
3727
6407
echo $ECHO_N "checking for openlog... $ECHO_C" >&6
3728
6408
if test "${ac_cv_func_openlog+set}" = set; then
3729
6409
  echo $ECHO_N "(cached) $ECHO_C" >&6
3730
6410
else
3731
6411
  cat >conftest.$ac_ext <<_ACEOF
3732
 
#line 3732 "configure"
3733
 
#include "confdefs.h"
 
6412
/* confdefs.h.  */
 
6413
_ACEOF
 
6414
cat confdefs.h >>conftest.$ac_ext
 
6415
cat >>conftest.$ac_ext <<_ACEOF
 
6416
/* end confdefs.h.  */
 
6417
/* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
 
6418
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6419
#define openlog innocuous_openlog
 
6420
 
3734
6421
/* System header to define __stub macros and hopefully few prototypes,
3735
 
    which can conflict with char openlog (); below.  */
3736
 
#include <assert.h>
 
6422
    which can conflict with char openlog (); below.
 
6423
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6424
    <limits.h> exists even on freestanding compilers.  */
 
6425
 
 
6426
#ifdef __STDC__
 
6427
# include <limits.h>
 
6428
#else
 
6429
# include <assert.h>
 
6430
#endif
 
6431
 
 
6432
#undef openlog
 
6433
 
3737
6434
/* Override any gcc2 internal prototype to avoid an error.  */
3738
6435
#ifdef __cplusplus
3739
6436
extern "C"
 
6437
{
3740
6438
#endif
3741
6439
/* We use char because int might match the return type of a gcc2
3742
6440
   builtin and then its argument prototype would still apply.  */
3743
6441
char openlog ();
3744
 
char (*f) ();
3745
 
 
3746
 
int
3747
 
main ()
3748
 
{
3749
6442
/* The GNU C library defines this for functions which it implements
3750
6443
    to always fail with ENOSYS.  Some functions are actually named
3751
6444
    something starting with __ and the normal name is an alias.  */
3752
6445
#if defined (__stub_openlog) || defined (__stub___openlog)
3753
6446
choke me
3754
6447
#else
3755
 
f = openlog;
 
6448
char (*f) () = openlog;
 
6449
#endif
 
6450
#ifdef __cplusplus
 
6451
}
3756
6452
#endif
3757
6453
 
 
6454
int
 
6455
main ()
 
6456
{
 
6457
return f != openlog;
3758
6458
  ;
3759
6459
  return 0;
3760
6460
}
3761
6461
_ACEOF
3762
6462
rm -f conftest.$ac_objext conftest$ac_exeext
3763
 
if { (eval echo "$as_me:3763: \"$ac_link\"") >&5
3764
 
  (eval $ac_link) 2>&5
 
6463
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6464
  (eval $ac_link) 2>conftest.er1
3765
6465
  ac_status=$?
3766
 
  echo "$as_me:3766: \$? = $ac_status" >&5
 
6466
  grep -v '^ *+' conftest.er1 >conftest.err
 
6467
  rm -f conftest.er1
 
6468
  cat conftest.err >&5
 
6469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767
6470
  (exit $ac_status); } &&
3768
 
         { ac_try='test -s conftest$ac_exeext'
3769
 
  { (eval echo "$as_me:3769: \"$ac_try\"") >&5
3770
 
  (eval $ac_try) 2>&5
3771
 
  ac_status=$?
3772
 
  echo "$as_me:3772: \$? = $ac_status" >&5
 
6471
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6472
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6473
  (eval $ac_try) 2>&5
 
6474
  ac_status=$?
 
6475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6476
  (exit $ac_status); }; } &&
 
6477
         { ac_try='test -s conftest$ac_exeext'
 
6478
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6479
  (eval $ac_try) 2>&5
 
6480
  ac_status=$?
 
6481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773
6482
  (exit $ac_status); }; }; then
3774
6483
  ac_cv_func_openlog=yes
3775
6484
else
3776
6485
  echo "$as_me: failed program was:" >&5
3777
 
cat conftest.$ac_ext >&5
 
6486
sed 's/^/| /' conftest.$ac_ext >&5
 
6487
 
3778
6488
ac_cv_func_openlog=no
3779
6489
fi
3780
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6490
rm -f conftest.err conftest.$ac_objext \
 
6491
      conftest$ac_exeext conftest.$ac_ext
3781
6492
fi
3782
 
echo "$as_me:3782: result: $ac_cv_func_openlog" >&5
 
6493
echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
3783
6494
echo "${ECHO_T}$ac_cv_func_openlog" >&6
3784
6495
if test $ac_cv_func_openlog = yes; then
3785
6496
  :
3786
6497
else
3787
6498
 
3788
 
echo "$as_me:3788: checking for openlog in -lgen" >&5
 
6499
echo "$as_me:$LINENO: checking for openlog in -lgen" >&5
3789
6500
echo $ECHO_N "checking for openlog in -lgen... $ECHO_C" >&6
3790
6501
if test "${ac_cv_lib_gen_openlog+set}" = set; then
3791
6502
  echo $ECHO_N "(cached) $ECHO_C" >&6
3793
6504
  ac_check_lib_save_LIBS=$LIBS
3794
6505
LIBS="-lgen  $LIBS"
3795
6506
cat >conftest.$ac_ext <<_ACEOF
3796
 
#line 3796 "configure"
3797
 
#include "confdefs.h"
 
6507
/* confdefs.h.  */
 
6508
_ACEOF
 
6509
cat confdefs.h >>conftest.$ac_ext
 
6510
cat >>conftest.$ac_ext <<_ACEOF
 
6511
/* end confdefs.h.  */
3798
6512
 
3799
6513
/* Override any gcc2 internal prototype to avoid an error.  */
3800
6514
#ifdef __cplusplus
3812
6526
}
3813
6527
_ACEOF
3814
6528
rm -f conftest.$ac_objext conftest$ac_exeext
3815
 
if { (eval echo "$as_me:3815: \"$ac_link\"") >&5
3816
 
  (eval $ac_link) 2>&5
 
6529
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6530
  (eval $ac_link) 2>conftest.er1
3817
6531
  ac_status=$?
3818
 
  echo "$as_me:3818: \$? = $ac_status" >&5
 
6532
  grep -v '^ *+' conftest.er1 >conftest.err
 
6533
  rm -f conftest.er1
 
6534
  cat conftest.err >&5
 
6535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819
6536
  (exit $ac_status); } &&
3820
 
         { ac_try='test -s conftest$ac_exeext'
3821
 
  { (eval echo "$as_me:3821: \"$ac_try\"") >&5
3822
 
  (eval $ac_try) 2>&5
3823
 
  ac_status=$?
3824
 
  echo "$as_me:3824: \$? = $ac_status" >&5
 
6537
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6538
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6539
  (eval $ac_try) 2>&5
 
6540
  ac_status=$?
 
6541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6542
  (exit $ac_status); }; } &&
 
6543
         { ac_try='test -s conftest$ac_exeext'
 
6544
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6545
  (eval $ac_try) 2>&5
 
6546
  ac_status=$?
 
6547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825
6548
  (exit $ac_status); }; }; then
3826
6549
  ac_cv_lib_gen_openlog=yes
3827
6550
else
3828
6551
  echo "$as_me: failed program was:" >&5
3829
 
cat conftest.$ac_ext >&5
 
6552
sed 's/^/| /' conftest.$ac_ext >&5
 
6553
 
3830
6554
ac_cv_lib_gen_openlog=no
3831
6555
fi
3832
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6556
rm -f conftest.err conftest.$ac_objext \
 
6557
      conftest$ac_exeext conftest.$ac_ext
3833
6558
LIBS=$ac_check_lib_save_LIBS
3834
6559
fi
3835
 
echo "$as_me:3835: result: $ac_cv_lib_gen_openlog" >&5
 
6560
echo "$as_me:$LINENO: result: $ac_cv_lib_gen_openlog" >&5
3836
6561
echo "${ECHO_T}$ac_cv_lib_gen_openlog" >&6
3837
6562
if test $ac_cv_lib_gen_openlog = yes; then
3838
 
  cat >>confdefs.h <<EOF
 
6563
  cat >>confdefs.h <<_ACEOF
3839
6564
#define HAVE_LIBGEN 1
3840
 
EOF
 
6565
_ACEOF
3841
6566
 
3842
6567
  LIBS="-lgen $LIBS"
3843
6568
 
3844
 
fi
3845
 
 
3846
 
fi
3847
 
 
3848
 
echo "$as_me:3848: checking for readline in -lreadline" >&5
 
6569
else
 
6570
 
 
6571
echo "$as_me:$LINENO: checking for openlog in -lsyslog" >&5
 
6572
echo $ECHO_N "checking for openlog in -lsyslog... $ECHO_C" >&6
 
6573
if test "${ac_cv_lib_syslog_openlog+set}" = set; then
 
6574
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6575
else
 
6576
  ac_check_lib_save_LIBS=$LIBS
 
6577
LIBS="-lsyslog -lsocket $LIBS"
 
6578
cat >conftest.$ac_ext <<_ACEOF
 
6579
/* confdefs.h.  */
 
6580
_ACEOF
 
6581
cat confdefs.h >>conftest.$ac_ext
 
6582
cat >>conftest.$ac_ext <<_ACEOF
 
6583
/* end confdefs.h.  */
 
6584
 
 
6585
/* Override any gcc2 internal prototype to avoid an error.  */
 
6586
#ifdef __cplusplus
 
6587
extern "C"
 
6588
#endif
 
6589
/* We use char because int might match the return type of a gcc2
 
6590
   builtin and then its argument prototype would still apply.  */
 
6591
char openlog ();
 
6592
int
 
6593
main ()
 
6594
{
 
6595
openlog ();
 
6596
  ;
 
6597
  return 0;
 
6598
}
 
6599
_ACEOF
 
6600
rm -f conftest.$ac_objext conftest$ac_exeext
 
6601
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6602
  (eval $ac_link) 2>conftest.er1
 
6603
  ac_status=$?
 
6604
  grep -v '^ *+' conftest.er1 >conftest.err
 
6605
  rm -f conftest.er1
 
6606
  cat conftest.err >&5
 
6607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6608
  (exit $ac_status); } &&
 
6609
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6610
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6611
  (eval $ac_try) 2>&5
 
6612
  ac_status=$?
 
6613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6614
  (exit $ac_status); }; } &&
 
6615
         { ac_try='test -s conftest$ac_exeext'
 
6616
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6617
  (eval $ac_try) 2>&5
 
6618
  ac_status=$?
 
6619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6620
  (exit $ac_status); }; }; then
 
6621
  ac_cv_lib_syslog_openlog=yes
 
6622
else
 
6623
  echo "$as_me: failed program was:" >&5
 
6624
sed 's/^/| /' conftest.$ac_ext >&5
 
6625
 
 
6626
ac_cv_lib_syslog_openlog=no
 
6627
fi
 
6628
rm -f conftest.err conftest.$ac_objext \
 
6629
      conftest$ac_exeext conftest.$ac_ext
 
6630
LIBS=$ac_check_lib_save_LIBS
 
6631
fi
 
6632
echo "$as_me:$LINENO: result: $ac_cv_lib_syslog_openlog" >&5
 
6633
echo "${ECHO_T}$ac_cv_lib_syslog_openlog" >&6
 
6634
if test $ac_cv_lib_syslog_openlog = yes; then
 
6635
  cat >>confdefs.h <<_ACEOF
 
6636
#define HAVE_LIBSYSLOG 1
 
6637
_ACEOF
 
6638
 
 
6639
  LIBS="-lsyslog $LIBS"
 
6640
 
 
6641
fi
 
6642
 
 
6643
fi
 
6644
 
 
6645
fi
 
6646
 
 
6647
 
 
6648
echo "$as_me:$LINENO: checking for MD5Init in -lmd5" >&5
 
6649
echo $ECHO_N "checking for MD5Init in -lmd5... $ECHO_C" >&6
 
6650
if test "${ac_cv_lib_md5_MD5Init+set}" = set; then
 
6651
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6652
else
 
6653
  ac_check_lib_save_LIBS=$LIBS
 
6654
LIBS="-lmd5  $LIBS"
 
6655
cat >conftest.$ac_ext <<_ACEOF
 
6656
/* confdefs.h.  */
 
6657
_ACEOF
 
6658
cat confdefs.h >>conftest.$ac_ext
 
6659
cat >>conftest.$ac_ext <<_ACEOF
 
6660
/* end confdefs.h.  */
 
6661
 
 
6662
/* Override any gcc2 internal prototype to avoid an error.  */
 
6663
#ifdef __cplusplus
 
6664
extern "C"
 
6665
#endif
 
6666
/* We use char because int might match the return type of a gcc2
 
6667
   builtin and then its argument prototype would still apply.  */
 
6668
char MD5Init ();
 
6669
int
 
6670
main ()
 
6671
{
 
6672
MD5Init ();
 
6673
  ;
 
6674
  return 0;
 
6675
}
 
6676
_ACEOF
 
6677
rm -f conftest.$ac_objext conftest$ac_exeext
 
6678
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6679
  (eval $ac_link) 2>conftest.er1
 
6680
  ac_status=$?
 
6681
  grep -v '^ *+' conftest.er1 >conftest.err
 
6682
  rm -f conftest.er1
 
6683
  cat conftest.err >&5
 
6684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6685
  (exit $ac_status); } &&
 
6686
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6687
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6688
  (eval $ac_try) 2>&5
 
6689
  ac_status=$?
 
6690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6691
  (exit $ac_status); }; } &&
 
6692
         { ac_try='test -s conftest$ac_exeext'
 
6693
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6694
  (eval $ac_try) 2>&5
 
6695
  ac_status=$?
 
6696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6697
  (exit $ac_status); }; }; then
 
6698
  ac_cv_lib_md5_MD5Init=yes
 
6699
else
 
6700
  echo "$as_me: failed program was:" >&5
 
6701
sed 's/^/| /' conftest.$ac_ext >&5
 
6702
 
 
6703
ac_cv_lib_md5_MD5Init=no
 
6704
fi
 
6705
rm -f conftest.err conftest.$ac_objext \
 
6706
      conftest$ac_exeext conftest.$ac_ext
 
6707
LIBS=$ac_check_lib_save_LIBS
 
6708
fi
 
6709
echo "$as_me:$LINENO: result: $ac_cv_lib_md5_MD5Init" >&5
 
6710
echo "${ECHO_T}$ac_cv_lib_md5_MD5Init" >&6
 
6711
if test $ac_cv_lib_md5_MD5Init = yes; then
 
6712
  cat >>confdefs.h <<_ACEOF
 
6713
#define HAVE_LIBMD5 1
 
6714
_ACEOF
 
6715
 
 
6716
  LIBS="-lmd5 $LIBS"
 
6717
 
 
6718
else
 
6719
 
 
6720
echo "$as_me:$LINENO: checking for MD5Init in -lmd" >&5
 
6721
echo $ECHO_N "checking for MD5Init in -lmd... $ECHO_C" >&6
 
6722
if test "${ac_cv_lib_md_MD5Init+set}" = set; then
 
6723
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6724
else
 
6725
  ac_check_lib_save_LIBS=$LIBS
 
6726
LIBS="-lmd  $LIBS"
 
6727
cat >conftest.$ac_ext <<_ACEOF
 
6728
/* confdefs.h.  */
 
6729
_ACEOF
 
6730
cat confdefs.h >>conftest.$ac_ext
 
6731
cat >>conftest.$ac_ext <<_ACEOF
 
6732
/* end confdefs.h.  */
 
6733
 
 
6734
/* Override any gcc2 internal prototype to avoid an error.  */
 
6735
#ifdef __cplusplus
 
6736
extern "C"
 
6737
#endif
 
6738
/* We use char because int might match the return type of a gcc2
 
6739
   builtin and then its argument prototype would still apply.  */
 
6740
char MD5Init ();
 
6741
int
 
6742
main ()
 
6743
{
 
6744
MD5Init ();
 
6745
  ;
 
6746
  return 0;
 
6747
}
 
6748
_ACEOF
 
6749
rm -f conftest.$ac_objext conftest$ac_exeext
 
6750
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6751
  (eval $ac_link) 2>conftest.er1
 
6752
  ac_status=$?
 
6753
  grep -v '^ *+' conftest.er1 >conftest.err
 
6754
  rm -f conftest.er1
 
6755
  cat conftest.err >&5
 
6756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6757
  (exit $ac_status); } &&
 
6758
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6759
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6760
  (eval $ac_try) 2>&5
 
6761
  ac_status=$?
 
6762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6763
  (exit $ac_status); }; } &&
 
6764
         { ac_try='test -s conftest$ac_exeext'
 
6765
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6766
  (eval $ac_try) 2>&5
 
6767
  ac_status=$?
 
6768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6769
  (exit $ac_status); }; }; then
 
6770
  ac_cv_lib_md_MD5Init=yes
 
6771
else
 
6772
  echo "$as_me: failed program was:" >&5
 
6773
sed 's/^/| /' conftest.$ac_ext >&5
 
6774
 
 
6775
ac_cv_lib_md_MD5Init=no
 
6776
fi
 
6777
rm -f conftest.err conftest.$ac_objext \
 
6778
      conftest$ac_exeext conftest.$ac_ext
 
6779
LIBS=$ac_check_lib_save_LIBS
 
6780
fi
 
6781
echo "$as_me:$LINENO: result: $ac_cv_lib_md_MD5Init" >&5
 
6782
echo "${ECHO_T}$ac_cv_lib_md_MD5Init" >&6
 
6783
if test $ac_cv_lib_md_MD5Init = yes; then
 
6784
  cat >>confdefs.h <<_ACEOF
 
6785
#define HAVE_LIBMD 1
 
6786
_ACEOF
 
6787
 
 
6788
  LIBS="-lmd $LIBS"
 
6789
 
 
6790
fi
 
6791
 
 
6792
fi
 
6793
 
 
6794
 
 
6795
for ac_func in MD5Init
 
6796
do
 
6797
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6798
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6799
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
6800
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
6801
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6802
else
 
6803
  cat >conftest.$ac_ext <<_ACEOF
 
6804
/* confdefs.h.  */
 
6805
_ACEOF
 
6806
cat confdefs.h >>conftest.$ac_ext
 
6807
cat >>conftest.$ac_ext <<_ACEOF
 
6808
/* end confdefs.h.  */
 
6809
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
6810
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6811
#define $ac_func innocuous_$ac_func
 
6812
 
 
6813
/* System header to define __stub macros and hopefully few prototypes,
 
6814
    which can conflict with char $ac_func (); below.
 
6815
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6816
    <limits.h> exists even on freestanding compilers.  */
 
6817
 
 
6818
#ifdef __STDC__
 
6819
# include <limits.h>
 
6820
#else
 
6821
# include <assert.h>
 
6822
#endif
 
6823
 
 
6824
#undef $ac_func
 
6825
 
 
6826
/* Override any gcc2 internal prototype to avoid an error.  */
 
6827
#ifdef __cplusplus
 
6828
extern "C"
 
6829
{
 
6830
#endif
 
6831
/* We use char because int might match the return type of a gcc2
 
6832
   builtin and then its argument prototype would still apply.  */
 
6833
char $ac_func ();
 
6834
/* The GNU C library defines this for functions which it implements
 
6835
    to always fail with ENOSYS.  Some functions are actually named
 
6836
    something starting with __ and the normal name is an alias.  */
 
6837
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
6838
choke me
 
6839
#else
 
6840
char (*f) () = $ac_func;
 
6841
#endif
 
6842
#ifdef __cplusplus
 
6843
}
 
6844
#endif
 
6845
 
 
6846
int
 
6847
main ()
 
6848
{
 
6849
return f != $ac_func;
 
6850
  ;
 
6851
  return 0;
 
6852
}
 
6853
_ACEOF
 
6854
rm -f conftest.$ac_objext conftest$ac_exeext
 
6855
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6856
  (eval $ac_link) 2>conftest.er1
 
6857
  ac_status=$?
 
6858
  grep -v '^ *+' conftest.er1 >conftest.err
 
6859
  rm -f conftest.er1
 
6860
  cat conftest.err >&5
 
6861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6862
  (exit $ac_status); } &&
 
6863
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6864
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6865
  (eval $ac_try) 2>&5
 
6866
  ac_status=$?
 
6867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6868
  (exit $ac_status); }; } &&
 
6869
         { ac_try='test -s conftest$ac_exeext'
 
6870
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6871
  (eval $ac_try) 2>&5
 
6872
  ac_status=$?
 
6873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6874
  (exit $ac_status); }; }; then
 
6875
  eval "$as_ac_var=yes"
 
6876
else
 
6877
  echo "$as_me: failed program was:" >&5
 
6878
sed 's/^/| /' conftest.$ac_ext >&5
 
6879
 
 
6880
eval "$as_ac_var=no"
 
6881
fi
 
6882
rm -f conftest.err conftest.$ac_objext \
 
6883
      conftest$ac_exeext conftest.$ac_ext
 
6884
fi
 
6885
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
6886
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
6887
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6888
  cat >>confdefs.h <<_ACEOF
 
6889
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6890
_ACEOF
 
6891
 
 
6892
fi
 
6893
done
 
6894
 
 
6895
 
 
6896
 
 
6897
for ac_header in readline/history.h readline/readline.h
 
6898
do
 
6899
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6900
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6901
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6902
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6903
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6904
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6905
fi
 
6906
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6907
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6908
else
 
6909
  # Is the header compilable?
 
6910
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6911
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6912
cat >conftest.$ac_ext <<_ACEOF
 
6913
/* confdefs.h.  */
 
6914
_ACEOF
 
6915
cat confdefs.h >>conftest.$ac_ext
 
6916
cat >>conftest.$ac_ext <<_ACEOF
 
6917
/* end confdefs.h.  */
 
6918
$ac_includes_default
 
6919
#include <$ac_header>
 
6920
_ACEOF
 
6921
rm -f conftest.$ac_objext
 
6922
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6923
  (eval $ac_compile) 2>conftest.er1
 
6924
  ac_status=$?
 
6925
  grep -v '^ *+' conftest.er1 >conftest.err
 
6926
  rm -f conftest.er1
 
6927
  cat conftest.err >&5
 
6928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6929
  (exit $ac_status); } &&
 
6930
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6931
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6932
  (eval $ac_try) 2>&5
 
6933
  ac_status=$?
 
6934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6935
  (exit $ac_status); }; } &&
 
6936
         { ac_try='test -s conftest.$ac_objext'
 
6937
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6938
  (eval $ac_try) 2>&5
 
6939
  ac_status=$?
 
6940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6941
  (exit $ac_status); }; }; then
 
6942
  ac_header_compiler=yes
 
6943
else
 
6944
  echo "$as_me: failed program was:" >&5
 
6945
sed 's/^/| /' conftest.$ac_ext >&5
 
6946
 
 
6947
ac_header_compiler=no
 
6948
fi
 
6949
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6950
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6951
echo "${ECHO_T}$ac_header_compiler" >&6
 
6952
 
 
6953
# Is the header present?
 
6954
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6955
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6956
cat >conftest.$ac_ext <<_ACEOF
 
6957
/* confdefs.h.  */
 
6958
_ACEOF
 
6959
cat confdefs.h >>conftest.$ac_ext
 
6960
cat >>conftest.$ac_ext <<_ACEOF
 
6961
/* end confdefs.h.  */
 
6962
#include <$ac_header>
 
6963
_ACEOF
 
6964
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6965
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6966
  ac_status=$?
 
6967
  grep -v '^ *+' conftest.er1 >conftest.err
 
6968
  rm -f conftest.er1
 
6969
  cat conftest.err >&5
 
6970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6971
  (exit $ac_status); } >/dev/null; then
 
6972
  if test -s conftest.err; then
 
6973
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6974
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6975
  else
 
6976
    ac_cpp_err=
 
6977
  fi
 
6978
else
 
6979
  ac_cpp_err=yes
 
6980
fi
 
6981
if test -z "$ac_cpp_err"; then
 
6982
  ac_header_preproc=yes
 
6983
else
 
6984
  echo "$as_me: failed program was:" >&5
 
6985
sed 's/^/| /' conftest.$ac_ext >&5
 
6986
 
 
6987
  ac_header_preproc=no
 
6988
fi
 
6989
rm -f conftest.err conftest.$ac_ext
 
6990
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6991
echo "${ECHO_T}$ac_header_preproc" >&6
 
6992
 
 
6993
# So?  What about this header?
 
6994
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6995
  yes:no: )
 
6996
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6997
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6998
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6999
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
7000
    ac_header_preproc=yes
 
7001
    ;;
 
7002
  no:yes:* )
 
7003
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7004
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7005
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
7006
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
7007
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
7008
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
7009
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
7010
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
7011
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7012
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7013
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
7014
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
7015
    (
 
7016
      cat <<\_ASBOX
 
7017
## ------------------------------ ##
 
7018
## Report this to the ntp lists.  ##
 
7019
## ------------------------------ ##
 
7020
_ASBOX
 
7021
    ) |
 
7022
      sed "s/^/$as_me: WARNING:     /" >&2
 
7023
    ;;
 
7024
esac
 
7025
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7026
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7027
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7028
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7029
else
 
7030
  eval "$as_ac_Header=\$ac_header_preproc"
 
7031
fi
 
7032
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7033
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7034
 
 
7035
fi
 
7036
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7037
  cat >>confdefs.h <<_ACEOF
 
7038
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7039
_ACEOF
 
7040
 
 
7041
fi
 
7042
 
 
7043
done
 
7044
 
 
7045
case "$ac_cv_header_readline_history_h$ac_cv_header_readline_readline_h" in
 
7046
 *no*) ;;
 
7047
 *) save_LIBS=$LIBS
 
7048
    LIBS=
 
7049
 
 
7050
echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
3849
7051
echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
3850
7052
if test "${ac_cv_lib_readline_readline+set}" = set; then
3851
7053
  echo $ECHO_N "(cached) $ECHO_C" >&6
3853
7055
  ac_check_lib_save_LIBS=$LIBS
3854
7056
LIBS="-lreadline  $LIBS"
3855
7057
cat >conftest.$ac_ext <<_ACEOF
3856
 
#line 3856 "configure"
3857
 
#include "confdefs.h"
 
7058
/* confdefs.h.  */
 
7059
_ACEOF
 
7060
cat confdefs.h >>conftest.$ac_ext
 
7061
cat >>conftest.$ac_ext <<_ACEOF
 
7062
/* end confdefs.h.  */
3858
7063
 
3859
7064
/* Override any gcc2 internal prototype to avoid an error.  */
3860
7065
#ifdef __cplusplus
3872
7077
}
3873
7078
_ACEOF
3874
7079
rm -f conftest.$ac_objext conftest$ac_exeext
3875
 
if { (eval echo "$as_me:3875: \"$ac_link\"") >&5
3876
 
  (eval $ac_link) 2>&5
 
7080
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7081
  (eval $ac_link) 2>conftest.er1
3877
7082
  ac_status=$?
3878
 
  echo "$as_me:3878: \$? = $ac_status" >&5
 
7083
  grep -v '^ *+' conftest.er1 >conftest.err
 
7084
  rm -f conftest.er1
 
7085
  cat conftest.err >&5
 
7086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879
7087
  (exit $ac_status); } &&
3880
 
         { ac_try='test -s conftest$ac_exeext'
3881
 
  { (eval echo "$as_me:3881: \"$ac_try\"") >&5
3882
 
  (eval $ac_try) 2>&5
3883
 
  ac_status=$?
3884
 
  echo "$as_me:3884: \$? = $ac_status" >&5
 
7088
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7089
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7090
  (eval $ac_try) 2>&5
 
7091
  ac_status=$?
 
7092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7093
  (exit $ac_status); }; } &&
 
7094
         { ac_try='test -s conftest$ac_exeext'
 
7095
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7096
  (eval $ac_try) 2>&5
 
7097
  ac_status=$?
 
7098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885
7099
  (exit $ac_status); }; }; then
3886
7100
  ac_cv_lib_readline_readline=yes
3887
7101
else
3888
7102
  echo "$as_me: failed program was:" >&5
3889
 
cat conftest.$ac_ext >&5
 
7103
sed 's/^/| /' conftest.$ac_ext >&5
 
7104
 
3890
7105
ac_cv_lib_readline_readline=no
3891
7106
fi
3892
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7107
rm -f conftest.err conftest.$ac_objext \
 
7108
      conftest$ac_exeext conftest.$ac_ext
3893
7109
LIBS=$ac_check_lib_save_LIBS
3894
7110
fi
3895
 
echo "$as_me:3895: result: $ac_cv_lib_readline_readline" >&5
 
7111
echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
3896
7112
echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
3897
7113
if test $ac_cv_lib_readline_readline = yes; then
3898
 
  cat >>confdefs.h <<EOF
 
7114
  cat >>confdefs.h <<_ACEOF
3899
7115
#define HAVE_LIBREADLINE 1
3900
 
EOF
 
7116
_ACEOF
3901
7117
 
3902
7118
  LIBS="-lreadline $LIBS"
3903
7119
 
3904
 
fi
3905
 
 
3906
 
case "$target" in
 
7120
else
 
7121
  { echo "$as_me:$LINENO: Trying again with -lcurses" >&5
 
7122
echo "$as_me: Trying again with -lcurses" >&6;}
 
7123
     unset ac_cv_lib_readline_readline
 
7124
     echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
 
7125
echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
 
7126
if test "${ac_cv_lib_readline_readline+set}" = set; then
 
7127
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7128
else
 
7129
  ac_check_lib_save_LIBS=$LIBS
 
7130
LIBS="-lreadline -lcurses $LIBS"
 
7131
cat >conftest.$ac_ext <<_ACEOF
 
7132
/* confdefs.h.  */
 
7133
_ACEOF
 
7134
cat confdefs.h >>conftest.$ac_ext
 
7135
cat >>conftest.$ac_ext <<_ACEOF
 
7136
/* end confdefs.h.  */
 
7137
 
 
7138
/* Override any gcc2 internal prototype to avoid an error.  */
 
7139
#ifdef __cplusplus
 
7140
extern "C"
 
7141
#endif
 
7142
/* We use char because int might match the return type of a gcc2
 
7143
   builtin and then its argument prototype would still apply.  */
 
7144
char readline ();
 
7145
int
 
7146
main ()
 
7147
{
 
7148
readline ();
 
7149
  ;
 
7150
  return 0;
 
7151
}
 
7152
_ACEOF
 
7153
rm -f conftest.$ac_objext conftest$ac_exeext
 
7154
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7155
  (eval $ac_link) 2>conftest.er1
 
7156
  ac_status=$?
 
7157
  grep -v '^ *+' conftest.er1 >conftest.err
 
7158
  rm -f conftest.er1
 
7159
  cat conftest.err >&5
 
7160
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7161
  (exit $ac_status); } &&
 
7162
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7163
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7164
  (eval $ac_try) 2>&5
 
7165
  ac_status=$?
 
7166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7167
  (exit $ac_status); }; } &&
 
7168
         { ac_try='test -s conftest$ac_exeext'
 
7169
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7170
  (eval $ac_try) 2>&5
 
7171
  ac_status=$?
 
7172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7173
  (exit $ac_status); }; }; then
 
7174
  ac_cv_lib_readline_readline=yes
 
7175
else
 
7176
  echo "$as_me: failed program was:" >&5
 
7177
sed 's/^/| /' conftest.$ac_ext >&5
 
7178
 
 
7179
ac_cv_lib_readline_readline=no
 
7180
fi
 
7181
rm -f conftest.err conftest.$ac_objext \
 
7182
      conftest$ac_exeext conftest.$ac_ext
 
7183
LIBS=$ac_check_lib_save_LIBS
 
7184
fi
 
7185
echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
 
7186
echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
 
7187
if test $ac_cv_lib_readline_readline = yes; then
 
7188
  LIBS="-lreadline -lcurses $LIBS"
 
7189
      cat >>confdefs.h <<\_ACEOF
 
7190
#define HAVE_LIBREADLINE 1
 
7191
_ACEOF
 
7192
 
 
7193
 
 
7194
cat >>confdefs.h <<\_ACEOF
 
7195
#define HAVE_LIBCURSES
 
7196
_ACEOF
 
7197
 
 
7198
else
 
7199
  echo "$as_me:$LINENO: checking for readline in -ledit" >&5
 
7200
echo $ECHO_N "checking for readline in -ledit... $ECHO_C" >&6
 
7201
if test "${ac_cv_lib_edit_readline+set}" = set; then
 
7202
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7203
else
 
7204
  ac_check_lib_save_LIBS=$LIBS
 
7205
LIBS="-ledit -lcurses $LIBS"
 
7206
cat >conftest.$ac_ext <<_ACEOF
 
7207
/* confdefs.h.  */
 
7208
_ACEOF
 
7209
cat confdefs.h >>conftest.$ac_ext
 
7210
cat >>conftest.$ac_ext <<_ACEOF
 
7211
/* end confdefs.h.  */
 
7212
 
 
7213
/* Override any gcc2 internal prototype to avoid an error.  */
 
7214
#ifdef __cplusplus
 
7215
extern "C"
 
7216
#endif
 
7217
/* We use char because int might match the return type of a gcc2
 
7218
   builtin and then its argument prototype would still apply.  */
 
7219
char readline ();
 
7220
int
 
7221
main ()
 
7222
{
 
7223
readline ();
 
7224
  ;
 
7225
  return 0;
 
7226
}
 
7227
_ACEOF
 
7228
rm -f conftest.$ac_objext conftest$ac_exeext
 
7229
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7230
  (eval $ac_link) 2>conftest.er1
 
7231
  ac_status=$?
 
7232
  grep -v '^ *+' conftest.er1 >conftest.err
 
7233
  rm -f conftest.er1
 
7234
  cat conftest.err >&5
 
7235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7236
  (exit $ac_status); } &&
 
7237
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7238
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7239
  (eval $ac_try) 2>&5
 
7240
  ac_status=$?
 
7241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7242
  (exit $ac_status); }; } &&
 
7243
         { ac_try='test -s conftest$ac_exeext'
 
7244
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7245
  (eval $ac_try) 2>&5
 
7246
  ac_status=$?
 
7247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7248
  (exit $ac_status); }; }; then
 
7249
  ac_cv_lib_edit_readline=yes
 
7250
else
 
7251
  echo "$as_me: failed program was:" >&5
 
7252
sed 's/^/| /' conftest.$ac_ext >&5
 
7253
 
 
7254
ac_cv_lib_edit_readline=no
 
7255
fi
 
7256
rm -f conftest.err conftest.$ac_objext \
 
7257
      conftest$ac_exeext conftest.$ac_ext
 
7258
LIBS=$ac_check_lib_save_LIBS
 
7259
fi
 
7260
echo "$as_me:$LINENO: result: $ac_cv_lib_edit_readline" >&5
 
7261
echo "${ECHO_T}$ac_cv_lib_edit_readline" >&6
 
7262
if test $ac_cv_lib_edit_readline = yes; then
 
7263
  LIBS="-ledit -lcurses"
 
7264
 
 
7265
cat >>confdefs.h <<\_ACEOF
 
7266
#define HAVE_LIBEDIT
 
7267
_ACEOF
 
7268
 
 
7269
 
 
7270
cat >>confdefs.h <<\_ACEOF
 
7271
#define HAVE_LIBCURSES
 
7272
_ACEOF
 
7273
 
 
7274
 
 
7275
fi
 
7276
 
 
7277
 
 
7278
fi
 
7279
 
 
7280
fi
 
7281
 
 
7282
    READLINE_LIBS=$LIBS
 
7283
 
 
7284
    LIBS=$save_LIBS
 
7285
    ;;
 
7286
esac
 
7287
 
 
7288
 
 
7289
case "$host" in
3907
7290
 *-*-linux*) ;;
3908
7291
 *)
3909
7292
 
3910
 
echo "$as_me:3910: checking for sched_setscheduler in -lrt" >&5
 
7293
echo "$as_me:$LINENO: checking for sched_setscheduler in -lrt" >&5
3911
7294
echo $ECHO_N "checking for sched_setscheduler in -lrt... $ECHO_C" >&6
3912
7295
if test "${ac_cv_lib_rt_sched_setscheduler+set}" = set; then
3913
7296
  echo $ECHO_N "(cached) $ECHO_C" >&6
3915
7298
  ac_check_lib_save_LIBS=$LIBS
3916
7299
LIBS="-lrt  $LIBS"
3917
7300
cat >conftest.$ac_ext <<_ACEOF
3918
 
#line 3918 "configure"
3919
 
#include "confdefs.h"
 
7301
/* confdefs.h.  */
 
7302
_ACEOF
 
7303
cat confdefs.h >>conftest.$ac_ext
 
7304
cat >>conftest.$ac_ext <<_ACEOF
 
7305
/* end confdefs.h.  */
3920
7306
 
3921
7307
/* Override any gcc2 internal prototype to avoid an error.  */
3922
7308
#ifdef __cplusplus
3934
7320
}
3935
7321
_ACEOF
3936
7322
rm -f conftest.$ac_objext conftest$ac_exeext
3937
 
if { (eval echo "$as_me:3937: \"$ac_link\"") >&5
3938
 
  (eval $ac_link) 2>&5
 
7323
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7324
  (eval $ac_link) 2>conftest.er1
3939
7325
  ac_status=$?
3940
 
  echo "$as_me:3940: \$? = $ac_status" >&5
 
7326
  grep -v '^ *+' conftest.er1 >conftest.err
 
7327
  rm -f conftest.er1
 
7328
  cat conftest.err >&5
 
7329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941
7330
  (exit $ac_status); } &&
3942
 
         { ac_try='test -s conftest$ac_exeext'
3943
 
  { (eval echo "$as_me:3943: \"$ac_try\"") >&5
3944
 
  (eval $ac_try) 2>&5
3945
 
  ac_status=$?
3946
 
  echo "$as_me:3946: \$? = $ac_status" >&5
 
7331
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7332
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7333
  (eval $ac_try) 2>&5
 
7334
  ac_status=$?
 
7335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7336
  (exit $ac_status); }; } &&
 
7337
         { ac_try='test -s conftest$ac_exeext'
 
7338
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7339
  (eval $ac_try) 2>&5
 
7340
  ac_status=$?
 
7341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947
7342
  (exit $ac_status); }; }; then
3948
7343
  ac_cv_lib_rt_sched_setscheduler=yes
3949
7344
else
3950
7345
  echo "$as_me: failed program was:" >&5
3951
 
cat conftest.$ac_ext >&5
 
7346
sed 's/^/| /' conftest.$ac_ext >&5
 
7347
 
3952
7348
ac_cv_lib_rt_sched_setscheduler=no
3953
7349
fi
3954
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7350
rm -f conftest.err conftest.$ac_objext \
 
7351
      conftest$ac_exeext conftest.$ac_ext
3955
7352
LIBS=$ac_check_lib_save_LIBS
3956
7353
fi
3957
 
echo "$as_me:3957: result: $ac_cv_lib_rt_sched_setscheduler" >&5
 
7354
echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_setscheduler" >&5
3958
7355
echo "${ECHO_T}$ac_cv_lib_rt_sched_setscheduler" >&6
3959
7356
if test $ac_cv_lib_rt_sched_setscheduler = yes; then
3960
 
  cat >>confdefs.h <<EOF
 
7357
  cat >>confdefs.h <<_ACEOF
3961
7358
#define HAVE_LIBRT 1
3962
 
EOF
 
7359
_ACEOF
3963
7360
 
3964
7361
  LIBS="-lrt $LIBS"
3965
7362
 
3966
7363
else
3967
7364
 
3968
 
echo "$as_me:3968: checking for sched_setscheduler in -lposix4" >&5
 
7365
echo "$as_me:$LINENO: checking for sched_setscheduler in -lposix4" >&5
3969
7366
echo $ECHO_N "checking for sched_setscheduler in -lposix4... $ECHO_C" >&6
3970
7367
if test "${ac_cv_lib_posix4_sched_setscheduler+set}" = set; then
3971
7368
  echo $ECHO_N "(cached) $ECHO_C" >&6
3973
7370
  ac_check_lib_save_LIBS=$LIBS
3974
7371
LIBS="-lposix4  $LIBS"
3975
7372
cat >conftest.$ac_ext <<_ACEOF
3976
 
#line 3976 "configure"
3977
 
#include "confdefs.h"
 
7373
/* confdefs.h.  */
 
7374
_ACEOF
 
7375
cat confdefs.h >>conftest.$ac_ext
 
7376
cat >>conftest.$ac_ext <<_ACEOF
 
7377
/* end confdefs.h.  */
3978
7378
 
3979
7379
/* Override any gcc2 internal prototype to avoid an error.  */
3980
7380
#ifdef __cplusplus
3992
7392
}
3993
7393
_ACEOF
3994
7394
rm -f conftest.$ac_objext conftest$ac_exeext
3995
 
if { (eval echo "$as_me:3995: \"$ac_link\"") >&5
3996
 
  (eval $ac_link) 2>&5
 
7395
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7396
  (eval $ac_link) 2>conftest.er1
3997
7397
  ac_status=$?
3998
 
  echo "$as_me:3998: \$? = $ac_status" >&5
 
7398
  grep -v '^ *+' conftest.er1 >conftest.err
 
7399
  rm -f conftest.er1
 
7400
  cat conftest.err >&5
 
7401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999
7402
  (exit $ac_status); } &&
4000
 
         { ac_try='test -s conftest$ac_exeext'
4001
 
  { (eval echo "$as_me:4001: \"$ac_try\"") >&5
4002
 
  (eval $ac_try) 2>&5
4003
 
  ac_status=$?
4004
 
  echo "$as_me:4004: \$? = $ac_status" >&5
 
7403
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7404
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7405
  (eval $ac_try) 2>&5
 
7406
  ac_status=$?
 
7407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7408
  (exit $ac_status); }; } &&
 
7409
         { ac_try='test -s conftest$ac_exeext'
 
7410
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7411
  (eval $ac_try) 2>&5
 
7412
  ac_status=$?
 
7413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005
7414
  (exit $ac_status); }; }; then
4006
7415
  ac_cv_lib_posix4_sched_setscheduler=yes
4007
7416
else
4008
7417
  echo "$as_me: failed program was:" >&5
4009
 
cat conftest.$ac_ext >&5
 
7418
sed 's/^/| /' conftest.$ac_ext >&5
 
7419
 
4010
7420
ac_cv_lib_posix4_sched_setscheduler=no
4011
7421
fi
4012
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7422
rm -f conftest.err conftest.$ac_objext \
 
7423
      conftest$ac_exeext conftest.$ac_ext
4013
7424
LIBS=$ac_check_lib_save_LIBS
4014
7425
fi
4015
 
echo "$as_me:4015: result: $ac_cv_lib_posix4_sched_setscheduler" >&5
 
7426
echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_setscheduler" >&5
4016
7427
echo "${ECHO_T}$ac_cv_lib_posix4_sched_setscheduler" >&6
4017
7428
if test $ac_cv_lib_posix4_sched_setscheduler = yes; then
4018
 
  cat >>confdefs.h <<EOF
 
7429
  cat >>confdefs.h <<_ACEOF
4019
7430
#define HAVE_LIBPOSIX4 1
4020
 
EOF
 
7431
_ACEOF
4021
7432
 
4022
7433
  LIBS="-lposix4 $LIBS"
4023
7434
 
4028
7439
    ;;
4029
7440
esac
4030
7441
 
4031
 
echo "$as_me:4031: checking for setsockopt" >&5
 
7442
echo "$as_me:$LINENO: checking for setsockopt" >&5
4032
7443
echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
4033
7444
if test "${ac_cv_func_setsockopt+set}" = set; then
4034
7445
  echo $ECHO_N "(cached) $ECHO_C" >&6
4035
7446
else
4036
7447
  cat >conftest.$ac_ext <<_ACEOF
4037
 
#line 4037 "configure"
4038
 
#include "confdefs.h"
 
7448
/* confdefs.h.  */
 
7449
_ACEOF
 
7450
cat confdefs.h >>conftest.$ac_ext
 
7451
cat >>conftest.$ac_ext <<_ACEOF
 
7452
/* end confdefs.h.  */
 
7453
/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
 
7454
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
7455
#define setsockopt innocuous_setsockopt
 
7456
 
4039
7457
/* System header to define __stub macros and hopefully few prototypes,
4040
 
    which can conflict with char setsockopt (); below.  */
4041
 
#include <assert.h>
 
7458
    which can conflict with char setsockopt (); below.
 
7459
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7460
    <limits.h> exists even on freestanding compilers.  */
 
7461
 
 
7462
#ifdef __STDC__
 
7463
# include <limits.h>
 
7464
#else
 
7465
# include <assert.h>
 
7466
#endif
 
7467
 
 
7468
#undef setsockopt
 
7469
 
4042
7470
/* Override any gcc2 internal prototype to avoid an error.  */
4043
7471
#ifdef __cplusplus
4044
7472
extern "C"
 
7473
{
4045
7474
#endif
4046
7475
/* We use char because int might match the return type of a gcc2
4047
7476
   builtin and then its argument prototype would still apply.  */
4048
7477
char setsockopt ();
4049
 
char (*f) ();
4050
 
 
4051
 
int
4052
 
main ()
4053
 
{
4054
7478
/* The GNU C library defines this for functions which it implements
4055
7479
    to always fail with ENOSYS.  Some functions are actually named
4056
7480
    something starting with __ and the normal name is an alias.  */
4057
7481
#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
4058
7482
choke me
4059
7483
#else
4060
 
f = setsockopt;
 
7484
char (*f) () = setsockopt;
 
7485
#endif
 
7486
#ifdef __cplusplus
 
7487
}
4061
7488
#endif
4062
7489
 
 
7490
int
 
7491
main ()
 
7492
{
 
7493
return f != setsockopt;
4063
7494
  ;
4064
7495
  return 0;
4065
7496
}
4066
7497
_ACEOF
4067
7498
rm -f conftest.$ac_objext conftest$ac_exeext
4068
 
if { (eval echo "$as_me:4068: \"$ac_link\"") >&5
4069
 
  (eval $ac_link) 2>&5
 
7499
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7500
  (eval $ac_link) 2>conftest.er1
4070
7501
  ac_status=$?
4071
 
  echo "$as_me:4071: \$? = $ac_status" >&5
 
7502
  grep -v '^ *+' conftest.er1 >conftest.err
 
7503
  rm -f conftest.er1
 
7504
  cat conftest.err >&5
 
7505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072
7506
  (exit $ac_status); } &&
4073
 
         { ac_try='test -s conftest$ac_exeext'
4074
 
  { (eval echo "$as_me:4074: \"$ac_try\"") >&5
4075
 
  (eval $ac_try) 2>&5
4076
 
  ac_status=$?
4077
 
  echo "$as_me:4077: \$? = $ac_status" >&5
 
7507
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7508
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7509
  (eval $ac_try) 2>&5
 
7510
  ac_status=$?
 
7511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7512
  (exit $ac_status); }; } &&
 
7513
         { ac_try='test -s conftest$ac_exeext'
 
7514
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7515
  (eval $ac_try) 2>&5
 
7516
  ac_status=$?
 
7517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078
7518
  (exit $ac_status); }; }; then
4079
7519
  ac_cv_func_setsockopt=yes
4080
7520
else
4081
7521
  echo "$as_me: failed program was:" >&5
4082
 
cat conftest.$ac_ext >&5
 
7522
sed 's/^/| /' conftest.$ac_ext >&5
 
7523
 
4083
7524
ac_cv_func_setsockopt=no
4084
7525
fi
4085
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7526
rm -f conftest.err conftest.$ac_objext \
 
7527
      conftest$ac_exeext conftest.$ac_ext
4086
7528
fi
4087
 
echo "$as_me:4087: result: $ac_cv_func_setsockopt" >&5
 
7529
echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
4088
7530
echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
4089
7531
if test $ac_cv_func_setsockopt = yes; then
4090
7532
  :
4091
7533
else
4092
7534
 
4093
 
echo "$as_me:4093: checking for setsockopt in -lsocket" >&5
 
7535
echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
4094
7536
echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
4095
7537
if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
4096
7538
  echo $ECHO_N "(cached) $ECHO_C" >&6
4098
7540
  ac_check_lib_save_LIBS=$LIBS
4099
7541
LIBS="-lsocket  $LIBS"
4100
7542
cat >conftest.$ac_ext <<_ACEOF
4101
 
#line 4101 "configure"
4102
 
#include "confdefs.h"
 
7543
/* confdefs.h.  */
 
7544
_ACEOF
 
7545
cat confdefs.h >>conftest.$ac_ext
 
7546
cat >>conftest.$ac_ext <<_ACEOF
 
7547
/* end confdefs.h.  */
4103
7548
 
4104
7549
/* Override any gcc2 internal prototype to avoid an error.  */
4105
7550
#ifdef __cplusplus
4117
7562
}
4118
7563
_ACEOF
4119
7564
rm -f conftest.$ac_objext conftest$ac_exeext
4120
 
if { (eval echo "$as_me:4120: \"$ac_link\"") >&5
4121
 
  (eval $ac_link) 2>&5
 
7565
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7566
  (eval $ac_link) 2>conftest.er1
4122
7567
  ac_status=$?
4123
 
  echo "$as_me:4123: \$? = $ac_status" >&5
 
7568
  grep -v '^ *+' conftest.er1 >conftest.err
 
7569
  rm -f conftest.er1
 
7570
  cat conftest.err >&5
 
7571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124
7572
  (exit $ac_status); } &&
4125
 
         { ac_try='test -s conftest$ac_exeext'
4126
 
  { (eval echo "$as_me:4126: \"$ac_try\"") >&5
4127
 
  (eval $ac_try) 2>&5
4128
 
  ac_status=$?
4129
 
  echo "$as_me:4129: \$? = $ac_status" >&5
 
7573
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7574
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7575
  (eval $ac_try) 2>&5
 
7576
  ac_status=$?
 
7577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7578
  (exit $ac_status); }; } &&
 
7579
         { ac_try='test -s conftest$ac_exeext'
 
7580
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7581
  (eval $ac_try) 2>&5
 
7582
  ac_status=$?
 
7583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130
7584
  (exit $ac_status); }; }; then
4131
7585
  ac_cv_lib_socket_setsockopt=yes
4132
7586
else
4133
7587
  echo "$as_me: failed program was:" >&5
4134
 
cat conftest.$ac_ext >&5
 
7588
sed 's/^/| /' conftest.$ac_ext >&5
 
7589
 
4135
7590
ac_cv_lib_socket_setsockopt=no
4136
7591
fi
4137
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7592
rm -f conftest.err conftest.$ac_objext \
 
7593
      conftest$ac_exeext conftest.$ac_ext
4138
7594
LIBS=$ac_check_lib_save_LIBS
4139
7595
fi
4140
 
echo "$as_me:4140: result: $ac_cv_lib_socket_setsockopt" >&5
 
7596
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
4141
7597
echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
4142
7598
if test $ac_cv_lib_socket_setsockopt = yes; then
4143
 
  cat >>confdefs.h <<EOF
 
7599
  cat >>confdefs.h <<_ACEOF
4144
7600
#define HAVE_LIBSOCKET 1
4145
 
EOF
 
7601
_ACEOF
4146
7602
 
4147
7603
  LIBS="-lsocket $LIBS"
4148
7604
 
4150
7606
 
4151
7607
fi
4152
7608
 
4153
 
echo "$as_me:4153: checking for ANSI C header files" >&5
 
7609
 
 
7610
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4154
7611
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4155
7612
if test "${ac_cv_header_stdc+set}" = set; then
4156
7613
  echo $ECHO_N "(cached) $ECHO_C" >&6
4157
7614
else
4158
7615
  cat >conftest.$ac_ext <<_ACEOF
4159
 
#line 4159 "configure"
4160
 
#include "confdefs.h"
 
7616
/* confdefs.h.  */
 
7617
_ACEOF
 
7618
cat confdefs.h >>conftest.$ac_ext
 
7619
cat >>conftest.$ac_ext <<_ACEOF
 
7620
/* end confdefs.h.  */
4161
7621
#include <stdlib.h>
4162
7622
#include <stdarg.h>
4163
7623
#include <string.h>
4164
7624
#include <float.h>
4165
7625
 
 
7626
int
 
7627
main ()
 
7628
{
 
7629
 
 
7630
  ;
 
7631
  return 0;
 
7632
}
4166
7633
_ACEOF
4167
 
if { (eval echo "$as_me:4167: \"$ac_cpp conftest.$ac_ext\"") >&5
4168
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7634
rm -f conftest.$ac_objext
 
7635
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7636
  (eval $ac_compile) 2>conftest.er1
4169
7637
  ac_status=$?
4170
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
7638
  grep -v '^ *+' conftest.er1 >conftest.err
4171
7639
  rm -f conftest.er1
4172
7640
  cat conftest.err >&5
4173
 
  echo "$as_me:4173: \$? = $ac_status" >&5
4174
 
  (exit $ac_status); } >/dev/null; then
4175
 
  if test -s conftest.err; then
4176
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4177
 
  else
4178
 
    ac_cpp_err=
4179
 
  fi
4180
 
else
4181
 
  ac_cpp_err=yes
4182
 
fi
4183
 
if test -z "$ac_cpp_err"; then
 
7641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7642
  (exit $ac_status); } &&
 
7643
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7644
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7645
  (eval $ac_try) 2>&5
 
7646
  ac_status=$?
 
7647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7648
  (exit $ac_status); }; } &&
 
7649
         { ac_try='test -s conftest.$ac_objext'
 
7650
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7651
  (eval $ac_try) 2>&5
 
7652
  ac_status=$?
 
7653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7654
  (exit $ac_status); }; }; then
4184
7655
  ac_cv_header_stdc=yes
4185
7656
else
4186
7657
  echo "$as_me: failed program was:" >&5
4187
 
  cat conftest.$ac_ext >&5
4188
 
  ac_cv_header_stdc=no
 
7658
sed 's/^/| /' conftest.$ac_ext >&5
 
7659
 
 
7660
ac_cv_header_stdc=no
4189
7661
fi
4190
 
rm -f conftest.err conftest.$ac_ext
 
7662
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4191
7663
 
4192
7664
if test $ac_cv_header_stdc = yes; then
4193
7665
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4194
7666
  cat >conftest.$ac_ext <<_ACEOF
4195
 
#line 4195 "configure"
4196
 
#include "confdefs.h"
 
7667
/* confdefs.h.  */
 
7668
_ACEOF
 
7669
cat confdefs.h >>conftest.$ac_ext
 
7670
cat >>conftest.$ac_ext <<_ACEOF
 
7671
/* end confdefs.h.  */
4197
7672
#include <string.h>
4198
7673
 
4199
7674
_ACEOF
4200
7675
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4201
 
  egrep "memchr" >/dev/null 2>&1; then
 
7676
  $EGREP "memchr" >/dev/null 2>&1; then
4202
7677
  :
4203
7678
else
4204
7679
  ac_cv_header_stdc=no
4210
7685
if test $ac_cv_header_stdc = yes; then
4211
7686
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4212
7687
  cat >conftest.$ac_ext <<_ACEOF
4213
 
#line 4213 "configure"
4214
 
#include "confdefs.h"
 
7688
/* confdefs.h.  */
 
7689
_ACEOF
 
7690
cat confdefs.h >>conftest.$ac_ext
 
7691
cat >>conftest.$ac_ext <<_ACEOF
 
7692
/* end confdefs.h.  */
4215
7693
#include <stdlib.h>
4216
7694
 
4217
7695
_ACEOF
4218
7696
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4219
 
  egrep "free" >/dev/null 2>&1; then
 
7697
  $EGREP "free" >/dev/null 2>&1; then
4220
7698
  :
4221
7699
else
4222
7700
  ac_cv_header_stdc=no
4231
7709
  :
4232
7710
else
4233
7711
  cat >conftest.$ac_ext <<_ACEOF
4234
 
#line 4234 "configure"
4235
 
#include "confdefs.h"
 
7712
/* confdefs.h.  */
 
7713
_ACEOF
 
7714
cat confdefs.h >>conftest.$ac_ext
 
7715
cat >>conftest.$ac_ext <<_ACEOF
 
7716
/* end confdefs.h.  */
4236
7717
#include <ctype.h>
4237
7718
#if ((' ' & 0x0FF) == 0x020)
4238
7719
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4239
7720
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4240
7721
#else
4241
 
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4242
 
                     || ('j' <= (c) && (c) <= 'r') \
4243
 
                     || ('s' <= (c) && (c) <= 'z'))
 
7722
# define ISLOWER(c) \
 
7723
                   (('a' <= (c) && (c) <= 'i') \
 
7724
                     || ('j' <= (c) && (c) <= 'r') \
 
7725
                     || ('s' <= (c) && (c) <= 'z'))
4244
7726
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4245
7727
#endif
4246
7728
 
4251
7733
  int i;
4252
7734
  for (i = 0; i < 256; i++)
4253
7735
    if (XOR (islower (i), ISLOWER (i))
4254
 
        || toupper (i) != TOUPPER (i))
 
7736
        || toupper (i) != TOUPPER (i))
4255
7737
      exit(2);
4256
7738
  exit (0);
4257
7739
}
4258
7740
_ACEOF
4259
7741
rm -f conftest$ac_exeext
4260
 
if { (eval echo "$as_me:4260: \"$ac_link\"") >&5
 
7742
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4261
7743
  (eval $ac_link) 2>&5
4262
7744
  ac_status=$?
4263
 
  echo "$as_me:4263: \$? = $ac_status" >&5
 
7745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264
7746
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4265
 
  { (eval echo "$as_me:4265: \"$ac_try\"") >&5
 
7747
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266
7748
  (eval $ac_try) 2>&5
4267
7749
  ac_status=$?
4268
 
  echo "$as_me:4268: \$? = $ac_status" >&5
 
7750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269
7751
  (exit $ac_status); }; }; then
4270
7752
  :
4271
7753
else
4272
7754
  echo "$as_me: program exited with status $ac_status" >&5
4273
7755
echo "$as_me: failed program was:" >&5
4274
 
cat conftest.$ac_ext >&5
 
7756
sed 's/^/| /' conftest.$ac_ext >&5
 
7757
 
 
7758
( exit $ac_status )
4275
7759
ac_cv_header_stdc=no
4276
7760
fi
4277
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
4278
 
fi
4279
 
fi
4280
 
fi
4281
 
echo "$as_me:4281: result: $ac_cv_header_stdc" >&5
 
7761
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7762
fi
 
7763
fi
 
7764
fi
 
7765
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4282
7766
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4283
7767
if test $ac_cv_header_stdc = yes; then
4284
7768
 
4285
 
cat >>confdefs.h <<\EOF
 
7769
cat >>confdefs.h <<\_ACEOF
4286
7770
#define STDC_HEADERS 1
4287
 
EOF
4288
 
 
4289
 
fi
4290
 
 
4291
 
for ac_header in bstring.h errno.h fcntl.h ieeefp.h math.h memory.h netdb.h
4292
 
do
4293
 
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4294
 
echo "$as_me:4294: checking for $ac_header" >&5
4295
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4296
 
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4297
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4298
 
else
4299
 
  cat >conftest.$ac_ext <<_ACEOF
4300
 
#line 4300 "configure"
4301
 
#include "confdefs.h"
4302
 
#include <$ac_header>
4303
 
_ACEOF
4304
 
if { (eval echo "$as_me:4304: \"$ac_cpp conftest.$ac_ext\"") >&5
4305
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4306
 
  ac_status=$?
4307
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
4308
 
  rm -f conftest.er1
4309
 
  cat conftest.err >&5
4310
 
  echo "$as_me:4310: \$? = $ac_status" >&5
4311
 
  (exit $ac_status); } >/dev/null; then
4312
 
  if test -s conftest.err; then
4313
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4314
 
  else
4315
 
    ac_cpp_err=
4316
 
  fi
4317
 
else
4318
 
  ac_cpp_err=yes
4319
 
fi
4320
 
if test -z "$ac_cpp_err"; then
4321
 
  eval "$ac_ac_Header=yes"
4322
 
else
4323
 
  echo "$as_me: failed program was:" >&5
4324
 
  cat conftest.$ac_ext >&5
4325
 
  eval "$ac_ac_Header=no"
4326
 
fi
4327
 
rm -f conftest.err conftest.$ac_ext
4328
 
fi
4329
 
echo "$as_me:4329: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4330
 
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4331
 
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4332
 
  cat >>confdefs.h <<EOF
4333
 
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4334
 
EOF
4335
 
 
4336
 
fi
4337
 
done
4338
 
 
4339
 
for ac_header in poll.h resolv.h sched.h sgtty.h stdlib.h string.h termio.h
4340
 
do
4341
 
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4342
 
echo "$as_me:4342: checking for $ac_header" >&5
4343
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4344
 
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4345
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4346
 
else
4347
 
  cat >conftest.$ac_ext <<_ACEOF
4348
 
#line 4348 "configure"
4349
 
#include "confdefs.h"
4350
 
#include <$ac_header>
4351
 
_ACEOF
4352
 
if { (eval echo "$as_me:4352: \"$ac_cpp conftest.$ac_ext\"") >&5
4353
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4354
 
  ac_status=$?
4355
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
4356
 
  rm -f conftest.er1
4357
 
  cat conftest.err >&5
4358
 
  echo "$as_me:4358: \$? = $ac_status" >&5
4359
 
  (exit $ac_status); } >/dev/null; then
4360
 
  if test -s conftest.err; then
4361
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4362
 
  else
4363
 
    ac_cpp_err=
4364
 
  fi
4365
 
else
4366
 
  ac_cpp_err=yes
4367
 
fi
4368
 
if test -z "$ac_cpp_err"; then
4369
 
  eval "$ac_ac_Header=yes"
4370
 
else
4371
 
  echo "$as_me: failed program was:" >&5
4372
 
  cat conftest.$ac_ext >&5
4373
 
  eval "$ac_ac_Header=no"
4374
 
fi
4375
 
rm -f conftest.err conftest.$ac_ext
4376
 
fi
4377
 
echo "$as_me:4377: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4378
 
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4379
 
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4380
 
  cat >>confdefs.h <<EOF
4381
 
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4382
 
EOF
4383
 
 
4384
 
fi
4385
 
done
4386
 
 
4387
 
for ac_header in termios.h timepps.h timex.h unistd.h utmp.h utmpx.h
4388
 
do
4389
 
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4390
 
echo "$as_me:4390: checking for $ac_header" >&5
4391
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4392
 
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4393
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4394
 
else
4395
 
  cat >conftest.$ac_ext <<_ACEOF
4396
 
#line 4396 "configure"
4397
 
#include "confdefs.h"
4398
 
#include <$ac_header>
4399
 
_ACEOF
4400
 
if { (eval echo "$as_me:4400: \"$ac_cpp conftest.$ac_ext\"") >&5
4401
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4402
 
  ac_status=$?
4403
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
4404
 
  rm -f conftest.er1
4405
 
  cat conftest.err >&5
4406
 
  echo "$as_me:4406: \$? = $ac_status" >&5
4407
 
  (exit $ac_status); } >/dev/null; then
4408
 
  if test -s conftest.err; then
4409
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4410
 
  else
4411
 
    ac_cpp_err=
4412
 
  fi
4413
 
else
4414
 
  ac_cpp_err=yes
4415
 
fi
4416
 
if test -z "$ac_cpp_err"; then
4417
 
  eval "$ac_ac_Header=yes"
4418
 
else
4419
 
  echo "$as_me: failed program was:" >&5
4420
 
  cat conftest.$ac_ext >&5
4421
 
  eval "$ac_ac_Header=no"
4422
 
fi
4423
 
rm -f conftest.err conftest.$ac_ext
4424
 
fi
4425
 
echo "$as_me:4425: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4426
 
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4427
 
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4428
 
  cat >>confdefs.h <<EOF
4429
 
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4430
 
EOF
4431
 
 
4432
 
fi
4433
 
done
4434
 
 
4435
 
for ac_header in arpa/nameser.h net/if.h netinet/in_systm.h netinet/in.h
4436
 
do
4437
 
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4438
 
echo "$as_me:4438: checking for $ac_header" >&5
4439
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4440
 
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4441
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4442
 
else
4443
 
  cat >conftest.$ac_ext <<_ACEOF
4444
 
#line 4444 "configure"
4445
 
#include "confdefs.h"
4446
 
#include <$ac_header>
4447
 
_ACEOF
4448
 
if { (eval echo "$as_me:4448: \"$ac_cpp conftest.$ac_ext\"") >&5
4449
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4450
 
  ac_status=$?
4451
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
4452
 
  rm -f conftest.er1
4453
 
  cat conftest.err >&5
4454
 
  echo "$as_me:4454: \$? = $ac_status" >&5
4455
 
  (exit $ac_status); } >/dev/null; then
4456
 
  if test -s conftest.err; then
4457
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4458
 
  else
4459
 
    ac_cpp_err=
4460
 
  fi
4461
 
else
4462
 
  ac_cpp_err=yes
4463
 
fi
4464
 
if test -z "$ac_cpp_err"; then
4465
 
  eval "$ac_ac_Header=yes"
4466
 
else
4467
 
  echo "$as_me: failed program was:" >&5
4468
 
  cat conftest.$ac_ext >&5
4469
 
  eval "$ac_ac_Header=no"
4470
 
fi
4471
 
rm -f conftest.err conftest.$ac_ext
4472
 
fi
4473
 
echo "$as_me:4473: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4474
 
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4475
 
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4476
 
  cat >>confdefs.h <<EOF
4477
 
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4478
 
EOF
4479
 
 
4480
 
fi
4481
 
done
 
7771
_ACEOF
 
7772
 
 
7773
fi
 
7774
 
 
7775
 
 
7776
 
 
7777
 
 
7778
 
 
7779
 
 
7780
for ac_header in bstring.h errno.h fcntl.h ieeefp.h math.h
 
7781
do
 
7782
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7783
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7784
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7785
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7786
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7787
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7788
fi
 
7789
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7790
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7791
else
 
7792
  # Is the header compilable?
 
7793
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7794
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
7795
cat >conftest.$ac_ext <<_ACEOF
 
7796
/* confdefs.h.  */
 
7797
_ACEOF
 
7798
cat confdefs.h >>conftest.$ac_ext
 
7799
cat >>conftest.$ac_ext <<_ACEOF
 
7800
/* end confdefs.h.  */
 
7801
$ac_includes_default
 
7802
#include <$ac_header>
 
7803
_ACEOF
 
7804
rm -f conftest.$ac_objext
 
7805
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7806
  (eval $ac_compile) 2>conftest.er1
 
7807
  ac_status=$?
 
7808
  grep -v '^ *+' conftest.er1 >conftest.err
 
7809
  rm -f conftest.er1
 
7810
  cat conftest.err >&5
 
7811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7812
  (exit $ac_status); } &&
 
7813
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7814
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7815
  (eval $ac_try) 2>&5
 
7816
  ac_status=$?
 
7817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7818
  (exit $ac_status); }; } &&
 
7819
         { ac_try='test -s conftest.$ac_objext'
 
7820
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7821
  (eval $ac_try) 2>&5
 
7822
  ac_status=$?
 
7823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7824
  (exit $ac_status); }; }; then
 
7825
  ac_header_compiler=yes
 
7826
else
 
7827
  echo "$as_me: failed program was:" >&5
 
7828
sed 's/^/| /' conftest.$ac_ext >&5
 
7829
 
 
7830
ac_header_compiler=no
 
7831
fi
 
7832
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7833
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7834
echo "${ECHO_T}$ac_header_compiler" >&6
 
7835
 
 
7836
# Is the header present?
 
7837
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7838
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
7839
cat >conftest.$ac_ext <<_ACEOF
 
7840
/* confdefs.h.  */
 
7841
_ACEOF
 
7842
cat confdefs.h >>conftest.$ac_ext
 
7843
cat >>conftest.$ac_ext <<_ACEOF
 
7844
/* end confdefs.h.  */
 
7845
#include <$ac_header>
 
7846
_ACEOF
 
7847
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7848
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7849
  ac_status=$?
 
7850
  grep -v '^ *+' conftest.er1 >conftest.err
 
7851
  rm -f conftest.er1
 
7852
  cat conftest.err >&5
 
7853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7854
  (exit $ac_status); } >/dev/null; then
 
7855
  if test -s conftest.err; then
 
7856
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7857
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
7858
  else
 
7859
    ac_cpp_err=
 
7860
  fi
 
7861
else
 
7862
  ac_cpp_err=yes
 
7863
fi
 
7864
if test -z "$ac_cpp_err"; then
 
7865
  ac_header_preproc=yes
 
7866
else
 
7867
  echo "$as_me: failed program was:" >&5
 
7868
sed 's/^/| /' conftest.$ac_ext >&5
 
7869
 
 
7870
  ac_header_preproc=no
 
7871
fi
 
7872
rm -f conftest.err conftest.$ac_ext
 
7873
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7874
echo "${ECHO_T}$ac_header_preproc" >&6
 
7875
 
 
7876
# So?  What about this header?
 
7877
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
7878
  yes:no: )
 
7879
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
7880
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7881
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
7882
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
7883
    ac_header_preproc=yes
 
7884
    ;;
 
7885
  no:yes:* )
 
7886
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7887
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7888
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
7889
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
7890
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
7891
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
7892
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
7893
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
7894
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7895
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7896
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
7897
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
7898
    (
 
7899
      cat <<\_ASBOX
 
7900
## ------------------------------ ##
 
7901
## Report this to the ntp lists.  ##
 
7902
## ------------------------------ ##
 
7903
_ASBOX
 
7904
    ) |
 
7905
      sed "s/^/$as_me: WARNING:     /" >&2
 
7906
    ;;
 
7907
esac
 
7908
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7909
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7910
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7911
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7912
else
 
7913
  eval "$as_ac_Header=\$ac_header_preproc"
 
7914
fi
 
7915
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7916
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7917
 
 
7918
fi
 
7919
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7920
  cat >>confdefs.h <<_ACEOF
 
7921
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7922
_ACEOF
 
7923
 
 
7924
fi
 
7925
 
 
7926
done
 
7927
 
 
7928
# HMS: Lame, but fast.
 
7929
if test -f /etc/redhat-release
 
7930
then
 
7931
    :
 
7932
else
 
7933
 
 
7934
for ac_header in md5.h
 
7935
do
 
7936
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7937
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7938
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7939
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7940
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7941
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7942
fi
 
7943
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7944
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7945
else
 
7946
  # Is the header compilable?
 
7947
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7948
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
7949
cat >conftest.$ac_ext <<_ACEOF
 
7950
/* confdefs.h.  */
 
7951
_ACEOF
 
7952
cat confdefs.h >>conftest.$ac_ext
 
7953
cat >>conftest.$ac_ext <<_ACEOF
 
7954
/* end confdefs.h.  */
 
7955
$ac_includes_default
 
7956
#include <$ac_header>
 
7957
_ACEOF
 
7958
rm -f conftest.$ac_objext
 
7959
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7960
  (eval $ac_compile) 2>conftest.er1
 
7961
  ac_status=$?
 
7962
  grep -v '^ *+' conftest.er1 >conftest.err
 
7963
  rm -f conftest.er1
 
7964
  cat conftest.err >&5
 
7965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7966
  (exit $ac_status); } &&
 
7967
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7968
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7969
  (eval $ac_try) 2>&5
 
7970
  ac_status=$?
 
7971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7972
  (exit $ac_status); }; } &&
 
7973
         { ac_try='test -s conftest.$ac_objext'
 
7974
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7975
  (eval $ac_try) 2>&5
 
7976
  ac_status=$?
 
7977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7978
  (exit $ac_status); }; }; then
 
7979
  ac_header_compiler=yes
 
7980
else
 
7981
  echo "$as_me: failed program was:" >&5
 
7982
sed 's/^/| /' conftest.$ac_ext >&5
 
7983
 
 
7984
ac_header_compiler=no
 
7985
fi
 
7986
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7987
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7988
echo "${ECHO_T}$ac_header_compiler" >&6
 
7989
 
 
7990
# Is the header present?
 
7991
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7992
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
7993
cat >conftest.$ac_ext <<_ACEOF
 
7994
/* confdefs.h.  */
 
7995
_ACEOF
 
7996
cat confdefs.h >>conftest.$ac_ext
 
7997
cat >>conftest.$ac_ext <<_ACEOF
 
7998
/* end confdefs.h.  */
 
7999
#include <$ac_header>
 
8000
_ACEOF
 
8001
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8002
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8003
  ac_status=$?
 
8004
  grep -v '^ *+' conftest.er1 >conftest.err
 
8005
  rm -f conftest.er1
 
8006
  cat conftest.err >&5
 
8007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8008
  (exit $ac_status); } >/dev/null; then
 
8009
  if test -s conftest.err; then
 
8010
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8011
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
8012
  else
 
8013
    ac_cpp_err=
 
8014
  fi
 
8015
else
 
8016
  ac_cpp_err=yes
 
8017
fi
 
8018
if test -z "$ac_cpp_err"; then
 
8019
  ac_header_preproc=yes
 
8020
else
 
8021
  echo "$as_me: failed program was:" >&5
 
8022
sed 's/^/| /' conftest.$ac_ext >&5
 
8023
 
 
8024
  ac_header_preproc=no
 
8025
fi
 
8026
rm -f conftest.err conftest.$ac_ext
 
8027
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8028
echo "${ECHO_T}$ac_header_preproc" >&6
 
8029
 
 
8030
# So?  What about this header?
 
8031
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8032
  yes:no: )
 
8033
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8034
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8035
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
8036
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
8037
    ac_header_preproc=yes
 
8038
    ;;
 
8039
  no:yes:* )
 
8040
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8041
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8042
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
8043
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
8044
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
8045
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
8046
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
8047
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
8048
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8049
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8050
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
8051
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
8052
    (
 
8053
      cat <<\_ASBOX
 
8054
## ------------------------------ ##
 
8055
## Report this to the ntp lists.  ##
 
8056
## ------------------------------ ##
 
8057
_ASBOX
 
8058
    ) |
 
8059
      sed "s/^/$as_me: WARNING:     /" >&2
 
8060
    ;;
 
8061
esac
 
8062
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8063
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8064
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8065
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8066
else
 
8067
  eval "$as_ac_Header=\$ac_header_preproc"
 
8068
fi
 
8069
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8070
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8071
 
 
8072
fi
 
8073
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8074
  cat >>confdefs.h <<_ACEOF
 
8075
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8076
_ACEOF
 
8077
 
 
8078
fi
 
8079
 
 
8080
done
 
8081
 
 
8082
fi
 
8083
 
 
8084
 
 
8085
 
 
8086
for ac_header in memory.h netdb.h poll.h
 
8087
do
 
8088
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8089
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8090
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8091
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8092
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8093
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8094
fi
 
8095
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8096
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8097
else
 
8098
  # Is the header compilable?
 
8099
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8100
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
8101
cat >conftest.$ac_ext <<_ACEOF
 
8102
/* confdefs.h.  */
 
8103
_ACEOF
 
8104
cat confdefs.h >>conftest.$ac_ext
 
8105
cat >>conftest.$ac_ext <<_ACEOF
 
8106
/* end confdefs.h.  */
 
8107
$ac_includes_default
 
8108
#include <$ac_header>
 
8109
_ACEOF
 
8110
rm -f conftest.$ac_objext
 
8111
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8112
  (eval $ac_compile) 2>conftest.er1
 
8113
  ac_status=$?
 
8114
  grep -v '^ *+' conftest.er1 >conftest.err
 
8115
  rm -f conftest.er1
 
8116
  cat conftest.err >&5
 
8117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8118
  (exit $ac_status); } &&
 
8119
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8120
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8121
  (eval $ac_try) 2>&5
 
8122
  ac_status=$?
 
8123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8124
  (exit $ac_status); }; } &&
 
8125
         { ac_try='test -s conftest.$ac_objext'
 
8126
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8127
  (eval $ac_try) 2>&5
 
8128
  ac_status=$?
 
8129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8130
  (exit $ac_status); }; }; then
 
8131
  ac_header_compiler=yes
 
8132
else
 
8133
  echo "$as_me: failed program was:" >&5
 
8134
sed 's/^/| /' conftest.$ac_ext >&5
 
8135
 
 
8136
ac_header_compiler=no
 
8137
fi
 
8138
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8139
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8140
echo "${ECHO_T}$ac_header_compiler" >&6
 
8141
 
 
8142
# Is the header present?
 
8143
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8144
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
8145
cat >conftest.$ac_ext <<_ACEOF
 
8146
/* confdefs.h.  */
 
8147
_ACEOF
 
8148
cat confdefs.h >>conftest.$ac_ext
 
8149
cat >>conftest.$ac_ext <<_ACEOF
 
8150
/* end confdefs.h.  */
 
8151
#include <$ac_header>
 
8152
_ACEOF
 
8153
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8154
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8155
  ac_status=$?
 
8156
  grep -v '^ *+' conftest.er1 >conftest.err
 
8157
  rm -f conftest.er1
 
8158
  cat conftest.err >&5
 
8159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8160
  (exit $ac_status); } >/dev/null; then
 
8161
  if test -s conftest.err; then
 
8162
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8163
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
8164
  else
 
8165
    ac_cpp_err=
 
8166
  fi
 
8167
else
 
8168
  ac_cpp_err=yes
 
8169
fi
 
8170
if test -z "$ac_cpp_err"; then
 
8171
  ac_header_preproc=yes
 
8172
else
 
8173
  echo "$as_me: failed program was:" >&5
 
8174
sed 's/^/| /' conftest.$ac_ext >&5
 
8175
 
 
8176
  ac_header_preproc=no
 
8177
fi
 
8178
rm -f conftest.err conftest.$ac_ext
 
8179
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8180
echo "${ECHO_T}$ac_header_preproc" >&6
 
8181
 
 
8182
# So?  What about this header?
 
8183
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8184
  yes:no: )
 
8185
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8186
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8187
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
8188
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
8189
    ac_header_preproc=yes
 
8190
    ;;
 
8191
  no:yes:* )
 
8192
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8193
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8194
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
8195
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
8196
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
8197
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
8198
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
8199
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
8200
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8201
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8202
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
8203
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
8204
    (
 
8205
      cat <<\_ASBOX
 
8206
## ------------------------------ ##
 
8207
## Report this to the ntp lists.  ##
 
8208
## ------------------------------ ##
 
8209
_ASBOX
 
8210
    ) |
 
8211
      sed "s/^/$as_me: WARNING:     /" >&2
 
8212
    ;;
 
8213
esac
 
8214
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8215
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8216
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8217
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8218
else
 
8219
  eval "$as_ac_Header=\$ac_header_preproc"
 
8220
fi
 
8221
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8222
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8223
 
 
8224
fi
 
8225
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8226
  cat >>confdefs.h <<_ACEOF
 
8227
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8228
_ACEOF
 
8229
 
 
8230
fi
 
8231
 
 
8232
done
 
8233
 
 
8234
 
 
8235
 
 
8236
 
 
8237
 
 
8238
 
 
8239
for ac_header in sched.h sgtty.h stdlib.h string.h termio.h
 
8240
do
 
8241
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8242
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8243
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8244
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8245
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8246
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8247
fi
 
8248
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8249
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8250
else
 
8251
  # Is the header compilable?
 
8252
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8253
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
8254
cat >conftest.$ac_ext <<_ACEOF
 
8255
/* confdefs.h.  */
 
8256
_ACEOF
 
8257
cat confdefs.h >>conftest.$ac_ext
 
8258
cat >>conftest.$ac_ext <<_ACEOF
 
8259
/* end confdefs.h.  */
 
8260
$ac_includes_default
 
8261
#include <$ac_header>
 
8262
_ACEOF
 
8263
rm -f conftest.$ac_objext
 
8264
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8265
  (eval $ac_compile) 2>conftest.er1
 
8266
  ac_status=$?
 
8267
  grep -v '^ *+' conftest.er1 >conftest.err
 
8268
  rm -f conftest.er1
 
8269
  cat conftest.err >&5
 
8270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8271
  (exit $ac_status); } &&
 
8272
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8273
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8274
  (eval $ac_try) 2>&5
 
8275
  ac_status=$?
 
8276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8277
  (exit $ac_status); }; } &&
 
8278
         { ac_try='test -s conftest.$ac_objext'
 
8279
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8280
  (eval $ac_try) 2>&5
 
8281
  ac_status=$?
 
8282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8283
  (exit $ac_status); }; }; then
 
8284
  ac_header_compiler=yes
 
8285
else
 
8286
  echo "$as_me: failed program was:" >&5
 
8287
sed 's/^/| /' conftest.$ac_ext >&5
 
8288
 
 
8289
ac_header_compiler=no
 
8290
fi
 
8291
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8292
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8293
echo "${ECHO_T}$ac_header_compiler" >&6
 
8294
 
 
8295
# Is the header present?
 
8296
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8297
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
8298
cat >conftest.$ac_ext <<_ACEOF
 
8299
/* confdefs.h.  */
 
8300
_ACEOF
 
8301
cat confdefs.h >>conftest.$ac_ext
 
8302
cat >>conftest.$ac_ext <<_ACEOF
 
8303
/* end confdefs.h.  */
 
8304
#include <$ac_header>
 
8305
_ACEOF
 
8306
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8307
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8308
  ac_status=$?
 
8309
  grep -v '^ *+' conftest.er1 >conftest.err
 
8310
  rm -f conftest.er1
 
8311
  cat conftest.err >&5
 
8312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8313
  (exit $ac_status); } >/dev/null; then
 
8314
  if test -s conftest.err; then
 
8315
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8316
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
8317
  else
 
8318
    ac_cpp_err=
 
8319
  fi
 
8320
else
 
8321
  ac_cpp_err=yes
 
8322
fi
 
8323
if test -z "$ac_cpp_err"; then
 
8324
  ac_header_preproc=yes
 
8325
else
 
8326
  echo "$as_me: failed program was:" >&5
 
8327
sed 's/^/| /' conftest.$ac_ext >&5
 
8328
 
 
8329
  ac_header_preproc=no
 
8330
fi
 
8331
rm -f conftest.err conftest.$ac_ext
 
8332
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8333
echo "${ECHO_T}$ac_header_preproc" >&6
 
8334
 
 
8335
# So?  What about this header?
 
8336
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8337
  yes:no: )
 
8338
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8339
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8340
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
8341
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
8342
    ac_header_preproc=yes
 
8343
    ;;
 
8344
  no:yes:* )
 
8345
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8346
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8347
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
8348
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
8349
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
8350
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
8351
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
8352
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
8353
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8354
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8355
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
8356
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
8357
    (
 
8358
      cat <<\_ASBOX
 
8359
## ------------------------------ ##
 
8360
## Report this to the ntp lists.  ##
 
8361
## ------------------------------ ##
 
8362
_ASBOX
 
8363
    ) |
 
8364
      sed "s/^/$as_me: WARNING:     /" >&2
 
8365
    ;;
 
8366
esac
 
8367
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8368
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8369
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8370
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8371
else
 
8372
  eval "$as_ac_Header=\$ac_header_preproc"
 
8373
fi
 
8374
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8375
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8376
 
 
8377
fi
 
8378
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8379
  cat >>confdefs.h <<_ACEOF
 
8380
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8381
_ACEOF
 
8382
 
 
8383
fi
 
8384
 
 
8385
done
 
8386
 
 
8387
 
 
8388
 
 
8389
 
 
8390
 
 
8391
for ac_header in termios.h timepps.h timex.h unistd.h
 
8392
do
 
8393
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8394
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8395
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8396
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8397
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8398
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8399
fi
 
8400
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8401
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8402
else
 
8403
  # Is the header compilable?
 
8404
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8405
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
8406
cat >conftest.$ac_ext <<_ACEOF
 
8407
/* confdefs.h.  */
 
8408
_ACEOF
 
8409
cat confdefs.h >>conftest.$ac_ext
 
8410
cat >>conftest.$ac_ext <<_ACEOF
 
8411
/* end confdefs.h.  */
 
8412
$ac_includes_default
 
8413
#include <$ac_header>
 
8414
_ACEOF
 
8415
rm -f conftest.$ac_objext
 
8416
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8417
  (eval $ac_compile) 2>conftest.er1
 
8418
  ac_status=$?
 
8419
  grep -v '^ *+' conftest.er1 >conftest.err
 
8420
  rm -f conftest.er1
 
8421
  cat conftest.err >&5
 
8422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8423
  (exit $ac_status); } &&
 
8424
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8425
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8426
  (eval $ac_try) 2>&5
 
8427
  ac_status=$?
 
8428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8429
  (exit $ac_status); }; } &&
 
8430
         { ac_try='test -s conftest.$ac_objext'
 
8431
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8432
  (eval $ac_try) 2>&5
 
8433
  ac_status=$?
 
8434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8435
  (exit $ac_status); }; }; then
 
8436
  ac_header_compiler=yes
 
8437
else
 
8438
  echo "$as_me: failed program was:" >&5
 
8439
sed 's/^/| /' conftest.$ac_ext >&5
 
8440
 
 
8441
ac_header_compiler=no
 
8442
fi
 
8443
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8444
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8445
echo "${ECHO_T}$ac_header_compiler" >&6
 
8446
 
 
8447
# Is the header present?
 
8448
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8449
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
8450
cat >conftest.$ac_ext <<_ACEOF
 
8451
/* confdefs.h.  */
 
8452
_ACEOF
 
8453
cat confdefs.h >>conftest.$ac_ext
 
8454
cat >>conftest.$ac_ext <<_ACEOF
 
8455
/* end confdefs.h.  */
 
8456
#include <$ac_header>
 
8457
_ACEOF
 
8458
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8459
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8460
  ac_status=$?
 
8461
  grep -v '^ *+' conftest.er1 >conftest.err
 
8462
  rm -f conftest.er1
 
8463
  cat conftest.err >&5
 
8464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8465
  (exit $ac_status); } >/dev/null; then
 
8466
  if test -s conftest.err; then
 
8467
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8468
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
8469
  else
 
8470
    ac_cpp_err=
 
8471
  fi
 
8472
else
 
8473
  ac_cpp_err=yes
 
8474
fi
 
8475
if test -z "$ac_cpp_err"; then
 
8476
  ac_header_preproc=yes
 
8477
else
 
8478
  echo "$as_me: failed program was:" >&5
 
8479
sed 's/^/| /' conftest.$ac_ext >&5
 
8480
 
 
8481
  ac_header_preproc=no
 
8482
fi
 
8483
rm -f conftest.err conftest.$ac_ext
 
8484
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8485
echo "${ECHO_T}$ac_header_preproc" >&6
 
8486
 
 
8487
# So?  What about this header?
 
8488
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8489
  yes:no: )
 
8490
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8491
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8492
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
8493
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
8494
    ac_header_preproc=yes
 
8495
    ;;
 
8496
  no:yes:* )
 
8497
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8498
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8499
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
8500
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
8501
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
8502
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
8503
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
8504
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
8505
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8506
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8507
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
8508
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
8509
    (
 
8510
      cat <<\_ASBOX
 
8511
## ------------------------------ ##
 
8512
## Report this to the ntp lists.  ##
 
8513
## ------------------------------ ##
 
8514
_ASBOX
 
8515
    ) |
 
8516
      sed "s/^/$as_me: WARNING:     /" >&2
 
8517
    ;;
 
8518
esac
 
8519
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8520
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8521
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8522
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8523
else
 
8524
  eval "$as_ac_Header=\$ac_header_preproc"
 
8525
fi
 
8526
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8527
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8528
 
 
8529
fi
 
8530
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8531
  cat >>confdefs.h <<_ACEOF
 
8532
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8533
_ACEOF
 
8534
 
 
8535
fi
 
8536
 
 
8537
done
 
8538
 
 
8539
case "$host" in
 
8540
 *-*-aix*)
 
8541
 
 
8542
for ac_header in utmpx.h
 
8543
do
 
8544
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8545
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8546
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8547
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8548
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8549
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8550
fi
 
8551
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8552
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8553
else
 
8554
  # Is the header compilable?
 
8555
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8556
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
8557
cat >conftest.$ac_ext <<_ACEOF
 
8558
/* confdefs.h.  */
 
8559
_ACEOF
 
8560
cat confdefs.h >>conftest.$ac_ext
 
8561
cat >>conftest.$ac_ext <<_ACEOF
 
8562
/* end confdefs.h.  */
 
8563
$ac_includes_default
 
8564
#include <$ac_header>
 
8565
_ACEOF
 
8566
rm -f conftest.$ac_objext
 
8567
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8568
  (eval $ac_compile) 2>conftest.er1
 
8569
  ac_status=$?
 
8570
  grep -v '^ *+' conftest.er1 >conftest.err
 
8571
  rm -f conftest.er1
 
8572
  cat conftest.err >&5
 
8573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8574
  (exit $ac_status); } &&
 
8575
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8576
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8577
  (eval $ac_try) 2>&5
 
8578
  ac_status=$?
 
8579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8580
  (exit $ac_status); }; } &&
 
8581
         { ac_try='test -s conftest.$ac_objext'
 
8582
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8583
  (eval $ac_try) 2>&5
 
8584
  ac_status=$?
 
8585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8586
  (exit $ac_status); }; }; then
 
8587
  ac_header_compiler=yes
 
8588
else
 
8589
  echo "$as_me: failed program was:" >&5
 
8590
sed 's/^/| /' conftest.$ac_ext >&5
 
8591
 
 
8592
ac_header_compiler=no
 
8593
fi
 
8594
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8595
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8596
echo "${ECHO_T}$ac_header_compiler" >&6
 
8597
 
 
8598
# Is the header present?
 
8599
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8600
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
8601
cat >conftest.$ac_ext <<_ACEOF
 
8602
/* confdefs.h.  */
 
8603
_ACEOF
 
8604
cat confdefs.h >>conftest.$ac_ext
 
8605
cat >>conftest.$ac_ext <<_ACEOF
 
8606
/* end confdefs.h.  */
 
8607
#include <$ac_header>
 
8608
_ACEOF
 
8609
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8610
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8611
  ac_status=$?
 
8612
  grep -v '^ *+' conftest.er1 >conftest.err
 
8613
  rm -f conftest.er1
 
8614
  cat conftest.err >&5
 
8615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8616
  (exit $ac_status); } >/dev/null; then
 
8617
  if test -s conftest.err; then
 
8618
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8619
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
8620
  else
 
8621
    ac_cpp_err=
 
8622
  fi
 
8623
else
 
8624
  ac_cpp_err=yes
 
8625
fi
 
8626
if test -z "$ac_cpp_err"; then
 
8627
  ac_header_preproc=yes
 
8628
else
 
8629
  echo "$as_me: failed program was:" >&5
 
8630
sed 's/^/| /' conftest.$ac_ext >&5
 
8631
 
 
8632
  ac_header_preproc=no
 
8633
fi
 
8634
rm -f conftest.err conftest.$ac_ext
 
8635
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8636
echo "${ECHO_T}$ac_header_preproc" >&6
 
8637
 
 
8638
# So?  What about this header?
 
8639
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8640
  yes:no: )
 
8641
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8642
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8643
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
8644
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
8645
    ac_header_preproc=yes
 
8646
    ;;
 
8647
  no:yes:* )
 
8648
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8649
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8650
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
8651
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
8652
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
8653
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
8654
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
8655
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
8656
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8657
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8658
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
8659
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
8660
    (
 
8661
      cat <<\_ASBOX
 
8662
## ------------------------------ ##
 
8663
## Report this to the ntp lists.  ##
 
8664
## ------------------------------ ##
 
8665
_ASBOX
 
8666
    ) |
 
8667
      sed "s/^/$as_me: WARNING:     /" >&2
 
8668
    ;;
 
8669
esac
 
8670
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8671
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8672
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8673
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8674
else
 
8675
  eval "$as_ac_Header=\$ac_header_preproc"
 
8676
fi
 
8677
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8678
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8679
 
 
8680
fi
 
8681
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8682
  cat >>confdefs.h <<_ACEOF
 
8683
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8684
_ACEOF
 
8685
 
 
8686
fi
 
8687
 
 
8688
done
 
8689
 
 
8690
    case "$ac_cv_header_utmpx_h" in
 
8691
     yes) ;;
 
8692
     *)
 
8693
for ac_header in utmp.h
 
8694
do
 
8695
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8696
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8697
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8698
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8699
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8700
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8701
fi
 
8702
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8703
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8704
else
 
8705
  # Is the header compilable?
 
8706
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8707
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
8708
cat >conftest.$ac_ext <<_ACEOF
 
8709
/* confdefs.h.  */
 
8710
_ACEOF
 
8711
cat confdefs.h >>conftest.$ac_ext
 
8712
cat >>conftest.$ac_ext <<_ACEOF
 
8713
/* end confdefs.h.  */
 
8714
$ac_includes_default
 
8715
#include <$ac_header>
 
8716
_ACEOF
 
8717
rm -f conftest.$ac_objext
 
8718
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8719
  (eval $ac_compile) 2>conftest.er1
 
8720
  ac_status=$?
 
8721
  grep -v '^ *+' conftest.er1 >conftest.err
 
8722
  rm -f conftest.er1
 
8723
  cat conftest.err >&5
 
8724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8725
  (exit $ac_status); } &&
 
8726
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8728
  (eval $ac_try) 2>&5
 
8729
  ac_status=$?
 
8730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8731
  (exit $ac_status); }; } &&
 
8732
         { ac_try='test -s conftest.$ac_objext'
 
8733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8734
  (eval $ac_try) 2>&5
 
8735
  ac_status=$?
 
8736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8737
  (exit $ac_status); }; }; then
 
8738
  ac_header_compiler=yes
 
8739
else
 
8740
  echo "$as_me: failed program was:" >&5
 
8741
sed 's/^/| /' conftest.$ac_ext >&5
 
8742
 
 
8743
ac_header_compiler=no
 
8744
fi
 
8745
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8746
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8747
echo "${ECHO_T}$ac_header_compiler" >&6
 
8748
 
 
8749
# Is the header present?
 
8750
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8751
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
8752
cat >conftest.$ac_ext <<_ACEOF
 
8753
/* confdefs.h.  */
 
8754
_ACEOF
 
8755
cat confdefs.h >>conftest.$ac_ext
 
8756
cat >>conftest.$ac_ext <<_ACEOF
 
8757
/* end confdefs.h.  */
 
8758
#include <$ac_header>
 
8759
_ACEOF
 
8760
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8761
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8762
  ac_status=$?
 
8763
  grep -v '^ *+' conftest.er1 >conftest.err
 
8764
  rm -f conftest.er1
 
8765
  cat conftest.err >&5
 
8766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8767
  (exit $ac_status); } >/dev/null; then
 
8768
  if test -s conftest.err; then
 
8769
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8770
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
8771
  else
 
8772
    ac_cpp_err=
 
8773
  fi
 
8774
else
 
8775
  ac_cpp_err=yes
 
8776
fi
 
8777
if test -z "$ac_cpp_err"; then
 
8778
  ac_header_preproc=yes
 
8779
else
 
8780
  echo "$as_me: failed program was:" >&5
 
8781
sed 's/^/| /' conftest.$ac_ext >&5
 
8782
 
 
8783
  ac_header_preproc=no
 
8784
fi
 
8785
rm -f conftest.err conftest.$ac_ext
 
8786
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8787
echo "${ECHO_T}$ac_header_preproc" >&6
 
8788
 
 
8789
# So?  What about this header?
 
8790
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8791
  yes:no: )
 
8792
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8793
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8794
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
8795
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
8796
    ac_header_preproc=yes
 
8797
    ;;
 
8798
  no:yes:* )
 
8799
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8800
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8801
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
8802
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
8803
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
8804
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
8805
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
8806
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
8807
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8808
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8809
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
8810
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
8811
    (
 
8812
      cat <<\_ASBOX
 
8813
## ------------------------------ ##
 
8814
## Report this to the ntp lists.  ##
 
8815
## ------------------------------ ##
 
8816
_ASBOX
 
8817
    ) |
 
8818
      sed "s/^/$as_me: WARNING:     /" >&2
 
8819
    ;;
 
8820
esac
 
8821
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8822
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8823
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8824
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8825
else
 
8826
  eval "$as_ac_Header=\$ac_header_preproc"
 
8827
fi
 
8828
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8829
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8830
 
 
8831
fi
 
8832
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8833
  cat >>confdefs.h <<_ACEOF
 
8834
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8835
_ACEOF
 
8836
 
 
8837
fi
 
8838
 
 
8839
done
 
8840
 ;;
 
8841
    esac
 
8842
    ;;
 
8843
 *)
 
8844
 
 
8845
for ac_header in utmp.h utmpx.h
 
8846
do
 
8847
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8848
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8849
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8850
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8851
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8852
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8853
fi
 
8854
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8855
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8856
else
 
8857
  # Is the header compilable?
 
8858
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8859
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
8860
cat >conftest.$ac_ext <<_ACEOF
 
8861
/* confdefs.h.  */
 
8862
_ACEOF
 
8863
cat confdefs.h >>conftest.$ac_ext
 
8864
cat >>conftest.$ac_ext <<_ACEOF
 
8865
/* end confdefs.h.  */
 
8866
$ac_includes_default
 
8867
#include <$ac_header>
 
8868
_ACEOF
 
8869
rm -f conftest.$ac_objext
 
8870
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8871
  (eval $ac_compile) 2>conftest.er1
 
8872
  ac_status=$?
 
8873
  grep -v '^ *+' conftest.er1 >conftest.err
 
8874
  rm -f conftest.er1
 
8875
  cat conftest.err >&5
 
8876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8877
  (exit $ac_status); } &&
 
8878
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8879
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8880
  (eval $ac_try) 2>&5
 
8881
  ac_status=$?
 
8882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8883
  (exit $ac_status); }; } &&
 
8884
         { ac_try='test -s conftest.$ac_objext'
 
8885
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8886
  (eval $ac_try) 2>&5
 
8887
  ac_status=$?
 
8888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8889
  (exit $ac_status); }; }; then
 
8890
  ac_header_compiler=yes
 
8891
else
 
8892
  echo "$as_me: failed program was:" >&5
 
8893
sed 's/^/| /' conftest.$ac_ext >&5
 
8894
 
 
8895
ac_header_compiler=no
 
8896
fi
 
8897
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8898
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8899
echo "${ECHO_T}$ac_header_compiler" >&6
 
8900
 
 
8901
# Is the header present?
 
8902
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8903
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
8904
cat >conftest.$ac_ext <<_ACEOF
 
8905
/* confdefs.h.  */
 
8906
_ACEOF
 
8907
cat confdefs.h >>conftest.$ac_ext
 
8908
cat >>conftest.$ac_ext <<_ACEOF
 
8909
/* end confdefs.h.  */
 
8910
#include <$ac_header>
 
8911
_ACEOF
 
8912
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8913
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8914
  ac_status=$?
 
8915
  grep -v '^ *+' conftest.er1 >conftest.err
 
8916
  rm -f conftest.er1
 
8917
  cat conftest.err >&5
 
8918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8919
  (exit $ac_status); } >/dev/null; then
 
8920
  if test -s conftest.err; then
 
8921
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8922
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
8923
  else
 
8924
    ac_cpp_err=
 
8925
  fi
 
8926
else
 
8927
  ac_cpp_err=yes
 
8928
fi
 
8929
if test -z "$ac_cpp_err"; then
 
8930
  ac_header_preproc=yes
 
8931
else
 
8932
  echo "$as_me: failed program was:" >&5
 
8933
sed 's/^/| /' conftest.$ac_ext >&5
 
8934
 
 
8935
  ac_header_preproc=no
 
8936
fi
 
8937
rm -f conftest.err conftest.$ac_ext
 
8938
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8939
echo "${ECHO_T}$ac_header_preproc" >&6
 
8940
 
 
8941
# So?  What about this header?
 
8942
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8943
  yes:no: )
 
8944
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8945
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8946
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
8947
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
8948
    ac_header_preproc=yes
 
8949
    ;;
 
8950
  no:yes:* )
 
8951
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8952
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8953
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
8954
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
8955
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
8956
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
8957
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
8958
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
8959
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8960
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8961
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
8962
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
8963
    (
 
8964
      cat <<\_ASBOX
 
8965
## ------------------------------ ##
 
8966
## Report this to the ntp lists.  ##
 
8967
## ------------------------------ ##
 
8968
_ASBOX
 
8969
    ) |
 
8970
      sed "s/^/$as_me: WARNING:     /" >&2
 
8971
    ;;
 
8972
esac
 
8973
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8974
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8975
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8976
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8977
else
 
8978
  eval "$as_ac_Header=\$ac_header_preproc"
 
8979
fi
 
8980
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8981
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8982
 
 
8983
fi
 
8984
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8985
  cat >>confdefs.h <<_ACEOF
 
8986
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8987
_ACEOF
 
8988
 
 
8989
fi
 
8990
 
 
8991
done
 
8992
 ;;
 
8993
esac
 
8994
 
 
8995
for ac_header in arpa/nameser.h
 
8996
do
 
8997
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8998
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8999
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9000
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9001
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9002
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9003
fi
 
9004
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9005
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9006
else
 
9007
  # Is the header compilable?
 
9008
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9009
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
9010
cat >conftest.$ac_ext <<_ACEOF
 
9011
/* confdefs.h.  */
 
9012
_ACEOF
 
9013
cat confdefs.h >>conftest.$ac_ext
 
9014
cat >>conftest.$ac_ext <<_ACEOF
 
9015
/* end confdefs.h.  */
 
9016
$ac_includes_default
 
9017
#include <$ac_header>
 
9018
_ACEOF
 
9019
rm -f conftest.$ac_objext
 
9020
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9021
  (eval $ac_compile) 2>conftest.er1
 
9022
  ac_status=$?
 
9023
  grep -v '^ *+' conftest.er1 >conftest.err
 
9024
  rm -f conftest.er1
 
9025
  cat conftest.err >&5
 
9026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9027
  (exit $ac_status); } &&
 
9028
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9029
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9030
  (eval $ac_try) 2>&5
 
9031
  ac_status=$?
 
9032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9033
  (exit $ac_status); }; } &&
 
9034
         { ac_try='test -s conftest.$ac_objext'
 
9035
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9036
  (eval $ac_try) 2>&5
 
9037
  ac_status=$?
 
9038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9039
  (exit $ac_status); }; }; then
 
9040
  ac_header_compiler=yes
 
9041
else
 
9042
  echo "$as_me: failed program was:" >&5
 
9043
sed 's/^/| /' conftest.$ac_ext >&5
 
9044
 
 
9045
ac_header_compiler=no
 
9046
fi
 
9047
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9048
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9049
echo "${ECHO_T}$ac_header_compiler" >&6
 
9050
 
 
9051
# Is the header present?
 
9052
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9053
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
9054
cat >conftest.$ac_ext <<_ACEOF
 
9055
/* confdefs.h.  */
 
9056
_ACEOF
 
9057
cat confdefs.h >>conftest.$ac_ext
 
9058
cat >>conftest.$ac_ext <<_ACEOF
 
9059
/* end confdefs.h.  */
 
9060
#include <$ac_header>
 
9061
_ACEOF
 
9062
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9063
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9064
  ac_status=$?
 
9065
  grep -v '^ *+' conftest.er1 >conftest.err
 
9066
  rm -f conftest.er1
 
9067
  cat conftest.err >&5
 
9068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9069
  (exit $ac_status); } >/dev/null; then
 
9070
  if test -s conftest.err; then
 
9071
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9072
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
9073
  else
 
9074
    ac_cpp_err=
 
9075
  fi
 
9076
else
 
9077
  ac_cpp_err=yes
 
9078
fi
 
9079
if test -z "$ac_cpp_err"; then
 
9080
  ac_header_preproc=yes
 
9081
else
 
9082
  echo "$as_me: failed program was:" >&5
 
9083
sed 's/^/| /' conftest.$ac_ext >&5
 
9084
 
 
9085
  ac_header_preproc=no
 
9086
fi
 
9087
rm -f conftest.err conftest.$ac_ext
 
9088
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9089
echo "${ECHO_T}$ac_header_preproc" >&6
 
9090
 
 
9091
# So?  What about this header?
 
9092
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9093
  yes:no: )
 
9094
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9095
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9096
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9097
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9098
    ac_header_preproc=yes
 
9099
    ;;
 
9100
  no:yes:* )
 
9101
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9102
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9103
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9104
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9105
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9106
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9107
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9108
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9109
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9110
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9111
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9112
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9113
    (
 
9114
      cat <<\_ASBOX
 
9115
## ------------------------------ ##
 
9116
## Report this to the ntp lists.  ##
 
9117
## ------------------------------ ##
 
9118
_ASBOX
 
9119
    ) |
 
9120
      sed "s/^/$as_me: WARNING:     /" >&2
 
9121
    ;;
 
9122
esac
 
9123
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9124
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9125
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9126
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9127
else
 
9128
  eval "$as_ac_Header=\$ac_header_preproc"
 
9129
fi
 
9130
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9131
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9132
 
 
9133
fi
 
9134
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9135
  cat >>confdefs.h <<_ACEOF
 
9136
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9137
_ACEOF
 
9138
 
 
9139
fi
 
9140
 
 
9141
done
 
9142
 
 
9143
 
 
9144
for ac_header in net/if.h
 
9145
do
 
9146
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9147
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9148
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9149
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9150
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9151
else
 
9152
  cat >conftest.$ac_ext <<_ACEOF
 
9153
/* confdefs.h.  */
 
9154
_ACEOF
 
9155
cat confdefs.h >>conftest.$ac_ext
 
9156
cat >>conftest.$ac_ext <<_ACEOF
 
9157
/* end confdefs.h.  */
 
9158
#if HAVE_SYS_SOCKET_H
 
9159
#include <sys/socket.h>
 
9160
#endif
 
9161
 
 
9162
 
 
9163
#include <$ac_header>
 
9164
_ACEOF
 
9165
rm -f conftest.$ac_objext
 
9166
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9167
  (eval $ac_compile) 2>conftest.er1
 
9168
  ac_status=$?
 
9169
  grep -v '^ *+' conftest.er1 >conftest.err
 
9170
  rm -f conftest.er1
 
9171
  cat conftest.err >&5
 
9172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9173
  (exit $ac_status); } &&
 
9174
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9175
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9176
  (eval $ac_try) 2>&5
 
9177
  ac_status=$?
 
9178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9179
  (exit $ac_status); }; } &&
 
9180
         { ac_try='test -s conftest.$ac_objext'
 
9181
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9182
  (eval $ac_try) 2>&5
 
9183
  ac_status=$?
 
9184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9185
  (exit $ac_status); }; }; then
 
9186
  eval "$as_ac_Header=yes"
 
9187
else
 
9188
  echo "$as_me: failed program was:" >&5
 
9189
sed 's/^/| /' conftest.$ac_ext >&5
 
9190
 
 
9191
eval "$as_ac_Header=no"
 
9192
fi
 
9193
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9194
fi
 
9195
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9196
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9197
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9198
  cat >>confdefs.h <<_ACEOF
 
9199
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9200
_ACEOF
 
9201
 
 
9202
fi
 
9203
 
 
9204
done
 
9205
 
 
9206
 
 
9207
for ac_header in net/if6.h
 
9208
do
 
9209
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9210
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9211
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9212
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9213
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9214
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9215
fi
 
9216
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9217
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9218
else
 
9219
  # Is the header compilable?
 
9220
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9221
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
9222
cat >conftest.$ac_ext <<_ACEOF
 
9223
/* confdefs.h.  */
 
9224
_ACEOF
 
9225
cat confdefs.h >>conftest.$ac_ext
 
9226
cat >>conftest.$ac_ext <<_ACEOF
 
9227
/* end confdefs.h.  */
 
9228
$ac_includes_default
 
9229
#include <$ac_header>
 
9230
_ACEOF
 
9231
rm -f conftest.$ac_objext
 
9232
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9233
  (eval $ac_compile) 2>conftest.er1
 
9234
  ac_status=$?
 
9235
  grep -v '^ *+' conftest.er1 >conftest.err
 
9236
  rm -f conftest.er1
 
9237
  cat conftest.err >&5
 
9238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9239
  (exit $ac_status); } &&
 
9240
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9241
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9242
  (eval $ac_try) 2>&5
 
9243
  ac_status=$?
 
9244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9245
  (exit $ac_status); }; } &&
 
9246
         { ac_try='test -s conftest.$ac_objext'
 
9247
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9248
  (eval $ac_try) 2>&5
 
9249
  ac_status=$?
 
9250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9251
  (exit $ac_status); }; }; then
 
9252
  ac_header_compiler=yes
 
9253
else
 
9254
  echo "$as_me: failed program was:" >&5
 
9255
sed 's/^/| /' conftest.$ac_ext >&5
 
9256
 
 
9257
ac_header_compiler=no
 
9258
fi
 
9259
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9260
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9261
echo "${ECHO_T}$ac_header_compiler" >&6
 
9262
 
 
9263
# Is the header present?
 
9264
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9265
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
9266
cat >conftest.$ac_ext <<_ACEOF
 
9267
/* confdefs.h.  */
 
9268
_ACEOF
 
9269
cat confdefs.h >>conftest.$ac_ext
 
9270
cat >>conftest.$ac_ext <<_ACEOF
 
9271
/* end confdefs.h.  */
 
9272
#include <$ac_header>
 
9273
_ACEOF
 
9274
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9275
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9276
  ac_status=$?
 
9277
  grep -v '^ *+' conftest.er1 >conftest.err
 
9278
  rm -f conftest.er1
 
9279
  cat conftest.err >&5
 
9280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9281
  (exit $ac_status); } >/dev/null; then
 
9282
  if test -s conftest.err; then
 
9283
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9284
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
9285
  else
 
9286
    ac_cpp_err=
 
9287
  fi
 
9288
else
 
9289
  ac_cpp_err=yes
 
9290
fi
 
9291
if test -z "$ac_cpp_err"; then
 
9292
  ac_header_preproc=yes
 
9293
else
 
9294
  echo "$as_me: failed program was:" >&5
 
9295
sed 's/^/| /' conftest.$ac_ext >&5
 
9296
 
 
9297
  ac_header_preproc=no
 
9298
fi
 
9299
rm -f conftest.err conftest.$ac_ext
 
9300
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9301
echo "${ECHO_T}$ac_header_preproc" >&6
 
9302
 
 
9303
# So?  What about this header?
 
9304
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9305
  yes:no: )
 
9306
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9307
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9308
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9309
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9310
    ac_header_preproc=yes
 
9311
    ;;
 
9312
  no:yes:* )
 
9313
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9314
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9315
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9316
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9317
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9318
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9319
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9320
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9321
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9322
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9323
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9324
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9325
    (
 
9326
      cat <<\_ASBOX
 
9327
## ------------------------------ ##
 
9328
## Report this to the ntp lists.  ##
 
9329
## ------------------------------ ##
 
9330
_ASBOX
 
9331
    ) |
 
9332
      sed "s/^/$as_me: WARNING:     /" >&2
 
9333
    ;;
 
9334
esac
 
9335
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9336
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9337
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9338
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9339
else
 
9340
  eval "$as_ac_Header=\$ac_header_preproc"
 
9341
fi
 
9342
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9343
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9344
 
 
9345
fi
 
9346
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9347
  cat >>confdefs.h <<_ACEOF
 
9348
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9349
_ACEOF
 
9350
 
 
9351
fi
 
9352
 
 
9353
done
 
9354
 
 
9355
 
 
9356
 
 
9357
for ac_header in netinet/in_system.h netinet/in_systm.h
 
9358
do
 
9359
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9360
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9361
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9362
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9363
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9364
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9365
fi
 
9366
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9367
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9368
else
 
9369
  # Is the header compilable?
 
9370
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9371
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
9372
cat >conftest.$ac_ext <<_ACEOF
 
9373
/* confdefs.h.  */
 
9374
_ACEOF
 
9375
cat confdefs.h >>conftest.$ac_ext
 
9376
cat >>conftest.$ac_ext <<_ACEOF
 
9377
/* end confdefs.h.  */
 
9378
$ac_includes_default
 
9379
#include <$ac_header>
 
9380
_ACEOF
 
9381
rm -f conftest.$ac_objext
 
9382
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9383
  (eval $ac_compile) 2>conftest.er1
 
9384
  ac_status=$?
 
9385
  grep -v '^ *+' conftest.er1 >conftest.err
 
9386
  rm -f conftest.er1
 
9387
  cat conftest.err >&5
 
9388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9389
  (exit $ac_status); } &&
 
9390
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9391
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9392
  (eval $ac_try) 2>&5
 
9393
  ac_status=$?
 
9394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9395
  (exit $ac_status); }; } &&
 
9396
         { ac_try='test -s conftest.$ac_objext'
 
9397
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9398
  (eval $ac_try) 2>&5
 
9399
  ac_status=$?
 
9400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9401
  (exit $ac_status); }; }; then
 
9402
  ac_header_compiler=yes
 
9403
else
 
9404
  echo "$as_me: failed program was:" >&5
 
9405
sed 's/^/| /' conftest.$ac_ext >&5
 
9406
 
 
9407
ac_header_compiler=no
 
9408
fi
 
9409
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9410
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9411
echo "${ECHO_T}$ac_header_compiler" >&6
 
9412
 
 
9413
# Is the header present?
 
9414
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9415
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
9416
cat >conftest.$ac_ext <<_ACEOF
 
9417
/* confdefs.h.  */
 
9418
_ACEOF
 
9419
cat confdefs.h >>conftest.$ac_ext
 
9420
cat >>conftest.$ac_ext <<_ACEOF
 
9421
/* end confdefs.h.  */
 
9422
#include <$ac_header>
 
9423
_ACEOF
 
9424
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9425
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9426
  ac_status=$?
 
9427
  grep -v '^ *+' conftest.er1 >conftest.err
 
9428
  rm -f conftest.er1
 
9429
  cat conftest.err >&5
 
9430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9431
  (exit $ac_status); } >/dev/null; then
 
9432
  if test -s conftest.err; then
 
9433
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9434
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
9435
  else
 
9436
    ac_cpp_err=
 
9437
  fi
 
9438
else
 
9439
  ac_cpp_err=yes
 
9440
fi
 
9441
if test -z "$ac_cpp_err"; then
 
9442
  ac_header_preproc=yes
 
9443
else
 
9444
  echo "$as_me: failed program was:" >&5
 
9445
sed 's/^/| /' conftest.$ac_ext >&5
 
9446
 
 
9447
  ac_header_preproc=no
 
9448
fi
 
9449
rm -f conftest.err conftest.$ac_ext
 
9450
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9451
echo "${ECHO_T}$ac_header_preproc" >&6
 
9452
 
 
9453
# So?  What about this header?
 
9454
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9455
  yes:no: )
 
9456
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9457
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9458
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9459
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9460
    ac_header_preproc=yes
 
9461
    ;;
 
9462
  no:yes:* )
 
9463
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9464
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9465
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9466
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9467
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9468
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9469
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9470
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9471
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9472
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9473
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9474
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9475
    (
 
9476
      cat <<\_ASBOX
 
9477
## ------------------------------ ##
 
9478
## Report this to the ntp lists.  ##
 
9479
## ------------------------------ ##
 
9480
_ASBOX
 
9481
    ) |
 
9482
      sed "s/^/$as_me: WARNING:     /" >&2
 
9483
    ;;
 
9484
esac
 
9485
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9486
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9487
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9488
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9489
else
 
9490
  eval "$as_ac_Header=\$ac_header_preproc"
 
9491
fi
 
9492
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9493
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9494
 
 
9495
fi
 
9496
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9497
  cat >>confdefs.h <<_ACEOF
 
9498
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9499
_ACEOF
 
9500
 
 
9501
fi
 
9502
 
 
9503
done
 
9504
 
 
9505
 
 
9506
for ac_header in netinet/in.h
 
9507
do
 
9508
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9509
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9510
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9511
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9512
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9513
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9514
fi
 
9515
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9516
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9517
else
 
9518
  # Is the header compilable?
 
9519
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9520
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
9521
cat >conftest.$ac_ext <<_ACEOF
 
9522
/* confdefs.h.  */
 
9523
_ACEOF
 
9524
cat confdefs.h >>conftest.$ac_ext
 
9525
cat >>conftest.$ac_ext <<_ACEOF
 
9526
/* end confdefs.h.  */
 
9527
$ac_includes_default
 
9528
#include <$ac_header>
 
9529
_ACEOF
 
9530
rm -f conftest.$ac_objext
 
9531
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9532
  (eval $ac_compile) 2>conftest.er1
 
9533
  ac_status=$?
 
9534
  grep -v '^ *+' conftest.er1 >conftest.err
 
9535
  rm -f conftest.er1
 
9536
  cat conftest.err >&5
 
9537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9538
  (exit $ac_status); } &&
 
9539
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9540
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9541
  (eval $ac_try) 2>&5
 
9542
  ac_status=$?
 
9543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9544
  (exit $ac_status); }; } &&
 
9545
         { ac_try='test -s conftest.$ac_objext'
 
9546
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9547
  (eval $ac_try) 2>&5
 
9548
  ac_status=$?
 
9549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9550
  (exit $ac_status); }; }; then
 
9551
  ac_header_compiler=yes
 
9552
else
 
9553
  echo "$as_me: failed program was:" >&5
 
9554
sed 's/^/| /' conftest.$ac_ext >&5
 
9555
 
 
9556
ac_header_compiler=no
 
9557
fi
 
9558
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9559
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9560
echo "${ECHO_T}$ac_header_compiler" >&6
 
9561
 
 
9562
# Is the header present?
 
9563
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9564
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
9565
cat >conftest.$ac_ext <<_ACEOF
 
9566
/* confdefs.h.  */
 
9567
_ACEOF
 
9568
cat confdefs.h >>conftest.$ac_ext
 
9569
cat >>conftest.$ac_ext <<_ACEOF
 
9570
/* end confdefs.h.  */
 
9571
#include <$ac_header>
 
9572
_ACEOF
 
9573
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9574
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9575
  ac_status=$?
 
9576
  grep -v '^ *+' conftest.er1 >conftest.err
 
9577
  rm -f conftest.er1
 
9578
  cat conftest.err >&5
 
9579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9580
  (exit $ac_status); } >/dev/null; then
 
9581
  if test -s conftest.err; then
 
9582
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9583
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
9584
  else
 
9585
    ac_cpp_err=
 
9586
  fi
 
9587
else
 
9588
  ac_cpp_err=yes
 
9589
fi
 
9590
if test -z "$ac_cpp_err"; then
 
9591
  ac_header_preproc=yes
 
9592
else
 
9593
  echo "$as_me: failed program was:" >&5
 
9594
sed 's/^/| /' conftest.$ac_ext >&5
 
9595
 
 
9596
  ac_header_preproc=no
 
9597
fi
 
9598
rm -f conftest.err conftest.$ac_ext
 
9599
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9600
echo "${ECHO_T}$ac_header_preproc" >&6
 
9601
 
 
9602
# So?  What about this header?
 
9603
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9604
  yes:no: )
 
9605
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9606
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9607
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9608
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9609
    ac_header_preproc=yes
 
9610
    ;;
 
9611
  no:yes:* )
 
9612
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9613
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9614
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9615
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9616
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9617
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9618
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9619
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9620
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9621
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9622
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9623
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9624
    (
 
9625
      cat <<\_ASBOX
 
9626
## ------------------------------ ##
 
9627
## Report this to the ntp lists.  ##
 
9628
## ------------------------------ ##
 
9629
_ASBOX
 
9630
    ) |
 
9631
      sed "s/^/$as_me: WARNING:     /" >&2
 
9632
    ;;
 
9633
esac
 
9634
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9635
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9636
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9637
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9638
else
 
9639
  eval "$as_ac_Header=\$ac_header_preproc"
 
9640
fi
 
9641
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9642
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9643
 
 
9644
fi
 
9645
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9646
  cat >>confdefs.h <<_ACEOF
 
9647
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9648
_ACEOF
 
9649
 
 
9650
fi
 
9651
 
 
9652
done
 
9653
 
 
9654
 
 
9655
for ac_header in netinet/ip.h
 
9656
do
 
9657
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9658
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9659
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9660
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9661
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9662
else
 
9663
  cat >conftest.$ac_ext <<_ACEOF
 
9664
/* confdefs.h.  */
 
9665
_ACEOF
 
9666
cat confdefs.h >>conftest.$ac_ext
 
9667
cat >>conftest.$ac_ext <<_ACEOF
 
9668
/* end confdefs.h.  */
 
9669
#if HAVE_SYS_TYPES_H
 
9670
#include <sys/types.h>
 
9671
#endif
 
9672
#if HAVE_NETINET_IN_H
 
9673
#include <netinet/in.h>
 
9674
#endif
 
9675
#if HAVE_NETINET_IN_SYSTM_H
 
9676
#include <netinet/in_systm.h>
 
9677
#endif
 
9678
 
 
9679
 
 
9680
#include <$ac_header>
 
9681
_ACEOF
 
9682
rm -f conftest.$ac_objext
 
9683
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9684
  (eval $ac_compile) 2>conftest.er1
 
9685
  ac_status=$?
 
9686
  grep -v '^ *+' conftest.er1 >conftest.err
 
9687
  rm -f conftest.er1
 
9688
  cat conftest.err >&5
 
9689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9690
  (exit $ac_status); } &&
 
9691
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9692
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9693
  (eval $ac_try) 2>&5
 
9694
  ac_status=$?
 
9695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9696
  (exit $ac_status); }; } &&
 
9697
         { ac_try='test -s conftest.$ac_objext'
 
9698
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9699
  (eval $ac_try) 2>&5
 
9700
  ac_status=$?
 
9701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9702
  (exit $ac_status); }; }; then
 
9703
  eval "$as_ac_Header=yes"
 
9704
else
 
9705
  echo "$as_me: failed program was:" >&5
 
9706
sed 's/^/| /' conftest.$ac_ext >&5
 
9707
 
 
9708
eval "$as_ac_Header=no"
 
9709
fi
 
9710
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9711
fi
 
9712
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9713
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9714
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9715
  cat >>confdefs.h <<_ACEOF
 
9716
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9717
_ACEOF
 
9718
 
 
9719
fi
 
9720
 
 
9721
done
 
9722
 
4482
9723
 
4483
9724
for ac_header in netinfo/ni.h
4484
9725
do
4485
 
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4486
 
echo "$as_me:4486: checking for $ac_header" >&5
 
9726
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9727
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9728
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4487
9729
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4488
 
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
 
9730
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4489
9731
  echo $ECHO_N "(cached) $ECHO_C" >&6
4490
 
else
4491
 
  cat >conftest.$ac_ext <<_ACEOF
4492
 
#line 4492 "configure"
4493
 
#include "confdefs.h"
4494
 
#include <$ac_header>
4495
 
_ACEOF
4496
 
if { (eval echo "$as_me:4496: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9732
fi
 
9733
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9734
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9735
else
 
9736
  # Is the header compilable?
 
9737
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9738
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
9739
cat >conftest.$ac_ext <<_ACEOF
 
9740
/* confdefs.h.  */
 
9741
_ACEOF
 
9742
cat confdefs.h >>conftest.$ac_ext
 
9743
cat >>conftest.$ac_ext <<_ACEOF
 
9744
/* end confdefs.h.  */
 
9745
$ac_includes_default
 
9746
#include <$ac_header>
 
9747
_ACEOF
 
9748
rm -f conftest.$ac_objext
 
9749
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9750
  (eval $ac_compile) 2>conftest.er1
 
9751
  ac_status=$?
 
9752
  grep -v '^ *+' conftest.er1 >conftest.err
 
9753
  rm -f conftest.er1
 
9754
  cat conftest.err >&5
 
9755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9756
  (exit $ac_status); } &&
 
9757
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9758
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9759
  (eval $ac_try) 2>&5
 
9760
  ac_status=$?
 
9761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9762
  (exit $ac_status); }; } &&
 
9763
         { ac_try='test -s conftest.$ac_objext'
 
9764
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9765
  (eval $ac_try) 2>&5
 
9766
  ac_status=$?
 
9767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9768
  (exit $ac_status); }; }; then
 
9769
  ac_header_compiler=yes
 
9770
else
 
9771
  echo "$as_me: failed program was:" >&5
 
9772
sed 's/^/| /' conftest.$ac_ext >&5
 
9773
 
 
9774
ac_header_compiler=no
 
9775
fi
 
9776
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9777
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9778
echo "${ECHO_T}$ac_header_compiler" >&6
 
9779
 
 
9780
# Is the header present?
 
9781
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9782
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
9783
cat >conftest.$ac_ext <<_ACEOF
 
9784
/* confdefs.h.  */
 
9785
_ACEOF
 
9786
cat confdefs.h >>conftest.$ac_ext
 
9787
cat >>conftest.$ac_ext <<_ACEOF
 
9788
/* end confdefs.h.  */
 
9789
#include <$ac_header>
 
9790
_ACEOF
 
9791
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4497
9792
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4498
9793
  ac_status=$?
4499
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
9794
  grep -v '^ *+' conftest.er1 >conftest.err
4500
9795
  rm -f conftest.er1
4501
9796
  cat conftest.err >&5
4502
 
  echo "$as_me:4502: \$? = $ac_status" >&5
 
9797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503
9798
  (exit $ac_status); } >/dev/null; then
4504
9799
  if test -s conftest.err; then
4505
9800
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9801
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4506
9802
  else
4507
9803
    ac_cpp_err=
4508
9804
  fi
4510
9806
  ac_cpp_err=yes
4511
9807
fi
4512
9808
if test -z "$ac_cpp_err"; then
4513
 
  eval "$ac_ac_Header=yes"
 
9809
  ac_header_preproc=yes
4514
9810
else
4515
9811
  echo "$as_me: failed program was:" >&5
4516
 
  cat conftest.$ac_ext >&5
4517
 
  eval "$ac_ac_Header=no"
 
9812
sed 's/^/| /' conftest.$ac_ext >&5
 
9813
 
 
9814
  ac_header_preproc=no
4518
9815
fi
4519
9816
rm -f conftest.err conftest.$ac_ext
4520
 
fi
4521
 
echo "$as_me:4521: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4522
 
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4523
 
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4524
 
  cat >>confdefs.h <<EOF
4525
 
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4526
 
EOF
4527
 
 cat >>confdefs.h <<\EOF
 
9817
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9818
echo "${ECHO_T}$ac_header_preproc" >&6
 
9819
 
 
9820
# So?  What about this header?
 
9821
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9822
  yes:no: )
 
9823
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9824
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9825
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9826
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9827
    ac_header_preproc=yes
 
9828
    ;;
 
9829
  no:yes:* )
 
9830
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9831
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9832
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9833
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9834
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9835
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9836
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9837
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9838
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9839
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9840
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9841
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9842
    (
 
9843
      cat <<\_ASBOX
 
9844
## ------------------------------ ##
 
9845
## Report this to the ntp lists.  ##
 
9846
## ------------------------------ ##
 
9847
_ASBOX
 
9848
    ) |
 
9849
      sed "s/^/$as_me: WARNING:     /" >&2
 
9850
    ;;
 
9851
esac
 
9852
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9853
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9854
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9855
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9856
else
 
9857
  eval "$as_ac_Header=\$ac_header_preproc"
 
9858
fi
 
9859
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9860
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9861
 
 
9862
fi
 
9863
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9864
  cat >>confdefs.h <<_ACEOF
 
9865
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9866
_ACEOF
 
9867
 
 
9868
cat >>confdefs.h <<\_ACEOF
4528
9869
#define HAVE_NETINFO 1
4529
 
EOF
 
9870
_ACEOF
4530
9871
 
4531
9872
fi
 
9873
 
4532
9874
done
4533
9875
 
 
9876
 
 
9877
 
4534
9878
for ac_header in sun/audioio.h sys/audioio.h
4535
9879
do
4536
 
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4537
 
echo "$as_me:4537: checking for $ac_header" >&5
 
9880
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9881
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9882
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4538
9883
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4539
 
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
 
9884
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4540
9885
  echo $ECHO_N "(cached) $ECHO_C" >&6
4541
 
else
4542
 
  cat >conftest.$ac_ext <<_ACEOF
4543
 
#line 4543 "configure"
4544
 
#include "confdefs.h"
4545
 
#include <$ac_header>
4546
 
_ACEOF
4547
 
if { (eval echo "$as_me:4547: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9886
fi
 
9887
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9888
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9889
else
 
9890
  # Is the header compilable?
 
9891
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9892
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
9893
cat >conftest.$ac_ext <<_ACEOF
 
9894
/* confdefs.h.  */
 
9895
_ACEOF
 
9896
cat confdefs.h >>conftest.$ac_ext
 
9897
cat >>conftest.$ac_ext <<_ACEOF
 
9898
/* end confdefs.h.  */
 
9899
$ac_includes_default
 
9900
#include <$ac_header>
 
9901
_ACEOF
 
9902
rm -f conftest.$ac_objext
 
9903
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9904
  (eval $ac_compile) 2>conftest.er1
 
9905
  ac_status=$?
 
9906
  grep -v '^ *+' conftest.er1 >conftest.err
 
9907
  rm -f conftest.er1
 
9908
  cat conftest.err >&5
 
9909
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9910
  (exit $ac_status); } &&
 
9911
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9912
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9913
  (eval $ac_try) 2>&5
 
9914
  ac_status=$?
 
9915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9916
  (exit $ac_status); }; } &&
 
9917
         { ac_try='test -s conftest.$ac_objext'
 
9918
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9919
  (eval $ac_try) 2>&5
 
9920
  ac_status=$?
 
9921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9922
  (exit $ac_status); }; }; then
 
9923
  ac_header_compiler=yes
 
9924
else
 
9925
  echo "$as_me: failed program was:" >&5
 
9926
sed 's/^/| /' conftest.$ac_ext >&5
 
9927
 
 
9928
ac_header_compiler=no
 
9929
fi
 
9930
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9931
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9932
echo "${ECHO_T}$ac_header_compiler" >&6
 
9933
 
 
9934
# Is the header present?
 
9935
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9936
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
9937
cat >conftest.$ac_ext <<_ACEOF
 
9938
/* confdefs.h.  */
 
9939
_ACEOF
 
9940
cat confdefs.h >>conftest.$ac_ext
 
9941
cat >>conftest.$ac_ext <<_ACEOF
 
9942
/* end confdefs.h.  */
 
9943
#include <$ac_header>
 
9944
_ACEOF
 
9945
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4548
9946
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4549
9947
  ac_status=$?
4550
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
9948
  grep -v '^ *+' conftest.er1 >conftest.err
4551
9949
  rm -f conftest.er1
4552
9950
  cat conftest.err >&5
4553
 
  echo "$as_me:4553: \$? = $ac_status" >&5
 
9951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554
9952
  (exit $ac_status); } >/dev/null; then
4555
9953
  if test -s conftest.err; then
4556
9954
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9955
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4557
9956
  else
4558
9957
    ac_cpp_err=
4559
9958
  fi
4561
9960
  ac_cpp_err=yes
4562
9961
fi
4563
9962
if test -z "$ac_cpp_err"; then
4564
 
  eval "$ac_ac_Header=yes"
 
9963
  ac_header_preproc=yes
4565
9964
else
4566
9965
  echo "$as_me: failed program was:" >&5
4567
 
  cat conftest.$ac_ext >&5
4568
 
  eval "$ac_ac_Header=no"
 
9966
sed 's/^/| /' conftest.$ac_ext >&5
 
9967
 
 
9968
  ac_header_preproc=no
4569
9969
fi
4570
9970
rm -f conftest.err conftest.$ac_ext
4571
 
fi
4572
 
echo "$as_me:4572: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4573
 
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4574
 
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4575
 
  cat >>confdefs.h <<EOF
4576
 
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4577
 
EOF
4578
 
 
4579
 
fi
 
9971
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9972
echo "${ECHO_T}$ac_header_preproc" >&6
 
9973
 
 
9974
# So?  What about this header?
 
9975
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9976
  yes:no: )
 
9977
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9978
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9979
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9980
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9981
    ac_header_preproc=yes
 
9982
    ;;
 
9983
  no:yes:* )
 
9984
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9985
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9986
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9987
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9988
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9989
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9990
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9991
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9992
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9993
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9994
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9995
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9996
    (
 
9997
      cat <<\_ASBOX
 
9998
## ------------------------------ ##
 
9999
## Report this to the ntp lists.  ##
 
10000
## ------------------------------ ##
 
10001
_ASBOX
 
10002
    ) |
 
10003
      sed "s/^/$as_me: WARNING:     /" >&2
 
10004
    ;;
 
10005
esac
 
10006
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10007
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10008
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10009
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10010
else
 
10011
  eval "$as_ac_Header=\$ac_header_preproc"
 
10012
fi
 
10013
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10014
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10015
 
 
10016
fi
 
10017
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
10018
  cat >>confdefs.h <<_ACEOF
 
10019
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
10020
_ACEOF
 
10021
 
 
10022
fi
 
10023
 
4580
10024
done
4581
10025
 
4582
 
for ac_header in sys/clkdefs.h sys/file.h
 
10026
 
 
10027
 
 
10028
 
 
10029
for ac_header in sys/clkdefs.h sys/file.h sys/var.h
4583
10030
do
4584
 
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4585
 
echo "$as_me:4585: checking for $ac_header" >&5
 
10031
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
10032
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10033
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4586
10034
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4587
 
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
 
10035
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4588
10036
  echo $ECHO_N "(cached) $ECHO_C" >&6
4589
 
else
4590
 
  cat >conftest.$ac_ext <<_ACEOF
4591
 
#line 4591 "configure"
4592
 
#include "confdefs.h"
4593
 
#include <$ac_header>
4594
 
_ACEOF
4595
 
if { (eval echo "$as_me:4595: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10037
fi
 
10038
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10039
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10040
else
 
10041
  # Is the header compilable?
 
10042
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
10043
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
10044
cat >conftest.$ac_ext <<_ACEOF
 
10045
/* confdefs.h.  */
 
10046
_ACEOF
 
10047
cat confdefs.h >>conftest.$ac_ext
 
10048
cat >>conftest.$ac_ext <<_ACEOF
 
10049
/* end confdefs.h.  */
 
10050
$ac_includes_default
 
10051
#include <$ac_header>
 
10052
_ACEOF
 
10053
rm -f conftest.$ac_objext
 
10054
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10055
  (eval $ac_compile) 2>conftest.er1
 
10056
  ac_status=$?
 
10057
  grep -v '^ *+' conftest.er1 >conftest.err
 
10058
  rm -f conftest.er1
 
10059
  cat conftest.err >&5
 
10060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10061
  (exit $ac_status); } &&
 
10062
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10063
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10064
  (eval $ac_try) 2>&5
 
10065
  ac_status=$?
 
10066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10067
  (exit $ac_status); }; } &&
 
10068
         { ac_try='test -s conftest.$ac_objext'
 
10069
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10070
  (eval $ac_try) 2>&5
 
10071
  ac_status=$?
 
10072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10073
  (exit $ac_status); }; }; then
 
10074
  ac_header_compiler=yes
 
10075
else
 
10076
  echo "$as_me: failed program was:" >&5
 
10077
sed 's/^/| /' conftest.$ac_ext >&5
 
10078
 
 
10079
ac_header_compiler=no
 
10080
fi
 
10081
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10082
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
10083
echo "${ECHO_T}$ac_header_compiler" >&6
 
10084
 
 
10085
# Is the header present?
 
10086
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
10087
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
10088
cat >conftest.$ac_ext <<_ACEOF
 
10089
/* confdefs.h.  */
 
10090
_ACEOF
 
10091
cat confdefs.h >>conftest.$ac_ext
 
10092
cat >>conftest.$ac_ext <<_ACEOF
 
10093
/* end confdefs.h.  */
 
10094
#include <$ac_header>
 
10095
_ACEOF
 
10096
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4596
10097
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4597
10098
  ac_status=$?
4598
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
10099
  grep -v '^ *+' conftest.er1 >conftest.err
4599
10100
  rm -f conftest.er1
4600
10101
  cat conftest.err >&5
4601
 
  echo "$as_me:4601: \$? = $ac_status" >&5
 
10102
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602
10103
  (exit $ac_status); } >/dev/null; then
4603
10104
  if test -s conftest.err; then
4604
10105
    ac_cpp_err=$ac_c_preproc_warn_flag
 
10106
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4605
10107
  else
4606
10108
    ac_cpp_err=
4607
10109
  fi
4609
10111
  ac_cpp_err=yes
4610
10112
fi
4611
10113
if test -z "$ac_cpp_err"; then
4612
 
  eval "$ac_ac_Header=yes"
 
10114
  ac_header_preproc=yes
4613
10115
else
4614
10116
  echo "$as_me: failed program was:" >&5
4615
 
  cat conftest.$ac_ext >&5
4616
 
  eval "$ac_ac_Header=no"
 
10117
sed 's/^/| /' conftest.$ac_ext >&5
 
10118
 
 
10119
  ac_header_preproc=no
4617
10120
fi
4618
10121
rm -f conftest.err conftest.$ac_ext
4619
 
fi
4620
 
echo "$as_me:4620: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4621
 
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4622
 
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4623
 
  cat >>confdefs.h <<EOF
4624
 
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4625
 
EOF
4626
 
 
4627
 
fi
 
10122
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
10123
echo "${ECHO_T}$ac_header_preproc" >&6
 
10124
 
 
10125
# So?  What about this header?
 
10126
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
10127
  yes:no: )
 
10128
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
10129
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
10130
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
10131
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
10132
    ac_header_preproc=yes
 
10133
    ;;
 
10134
  no:yes:* )
 
10135
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
10136
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
10137
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
10138
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
10139
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
10140
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
10141
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
10142
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
10143
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
10144
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
10145
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
10146
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
10147
    (
 
10148
      cat <<\_ASBOX
 
10149
## ------------------------------ ##
 
10150
## Report this to the ntp lists.  ##
 
10151
## ------------------------------ ##
 
10152
_ASBOX
 
10153
    ) |
 
10154
      sed "s/^/$as_me: WARNING:     /" >&2
 
10155
    ;;
 
10156
esac
 
10157
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10158
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10159
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10160
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10161
else
 
10162
  eval "$as_ac_Header=\$ac_header_preproc"
 
10163
fi
 
10164
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10165
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10166
 
 
10167
fi
 
10168
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
10169
  cat >>confdefs.h <<_ACEOF
 
10170
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
10171
_ACEOF
 
10172
 
 
10173
fi
 
10174
 
4628
10175
done
4629
10176
 
4630
 
case "$target" in
 
10177
case "$host" in
4631
10178
 *-*-sunos4*) ;;
4632
10179
 *)
4633
10180
for ac_header in sys/ioctl.h
4634
10181
do
4635
 
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4636
 
echo "$as_me:4636: checking for $ac_header" >&5
4637
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4638
 
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4639
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4640
 
else
4641
 
  cat >conftest.$ac_ext <<_ACEOF
4642
 
#line 4642 "configure"
4643
 
#include "confdefs.h"
4644
 
#include <$ac_header>
4645
 
_ACEOF
4646
 
if { (eval echo "$as_me:4646: \"$ac_cpp conftest.$ac_ext\"") >&5
4647
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4648
 
  ac_status=$?
4649
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
4650
 
  rm -f conftest.er1
4651
 
  cat conftest.err >&5
4652
 
  echo "$as_me:4652: \$? = $ac_status" >&5
4653
 
  (exit $ac_status); } >/dev/null; then
4654
 
  if test -s conftest.err; then
4655
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4656
 
  else
4657
 
    ac_cpp_err=
4658
 
  fi
4659
 
else
4660
 
  ac_cpp_err=yes
4661
 
fi
4662
 
if test -z "$ac_cpp_err"; then
4663
 
  eval "$ac_ac_Header=yes"
4664
 
else
4665
 
  echo "$as_me: failed program was:" >&5
4666
 
  cat conftest.$ac_ext >&5
4667
 
  eval "$ac_ac_Header=no"
4668
 
fi
4669
 
rm -f conftest.err conftest.$ac_ext
4670
 
fi
4671
 
echo "$as_me:4671: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4672
 
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4673
 
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4674
 
  cat >>confdefs.h <<EOF
4675
 
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4676
 
EOF
4677
 
 
4678
 
fi
4679
 
done
4680
 
 
4681
 
    ;;
4682
 
esac
 
10182
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
10183
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10184
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10185
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10186
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10187
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10188
fi
 
10189
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10190
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10191
else
 
10192
  # Is the header compilable?
 
10193
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
10194
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
10195
cat >conftest.$ac_ext <<_ACEOF
 
10196
/* confdefs.h.  */
 
10197
_ACEOF
 
10198
cat confdefs.h >>conftest.$ac_ext
 
10199
cat >>conftest.$ac_ext <<_ACEOF
 
10200
/* end confdefs.h.  */
 
10201
$ac_includes_default
 
10202
#include <$ac_header>
 
10203
_ACEOF
 
10204
rm -f conftest.$ac_objext
 
10205
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10206
  (eval $ac_compile) 2>conftest.er1
 
10207
  ac_status=$?
 
10208
  grep -v '^ *+' conftest.er1 >conftest.err
 
10209
  rm -f conftest.er1
 
10210
  cat conftest.err >&5
 
10211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10212
  (exit $ac_status); } &&
 
10213
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10214
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10215
  (eval $ac_try) 2>&5
 
10216
  ac_status=$?
 
10217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10218
  (exit $ac_status); }; } &&
 
10219
         { ac_try='test -s conftest.$ac_objext'
 
10220
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10221
  (eval $ac_try) 2>&5
 
10222
  ac_status=$?
 
10223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10224
  (exit $ac_status); }; }; then
 
10225
  ac_header_compiler=yes
 
10226
else
 
10227
  echo "$as_me: failed program was:" >&5
 
10228
sed 's/^/| /' conftest.$ac_ext >&5
 
10229
 
 
10230
ac_header_compiler=no
 
10231
fi
 
10232
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10233
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
10234
echo "${ECHO_T}$ac_header_compiler" >&6
 
10235
 
 
10236
# Is the header present?
 
10237
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
10238
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
10239
cat >conftest.$ac_ext <<_ACEOF
 
10240
/* confdefs.h.  */
 
10241
_ACEOF
 
10242
cat confdefs.h >>conftest.$ac_ext
 
10243
cat >>conftest.$ac_ext <<_ACEOF
 
10244
/* end confdefs.h.  */
 
10245
#include <$ac_header>
 
10246
_ACEOF
 
10247
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10248
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10249
  ac_status=$?
 
10250
  grep -v '^ *+' conftest.er1 >conftest.err
 
10251
  rm -f conftest.er1
 
10252
  cat conftest.err >&5
 
10253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10254
  (exit $ac_status); } >/dev/null; then
 
10255
  if test -s conftest.err; then
 
10256
    ac_cpp_err=$ac_c_preproc_warn_flag
 
10257
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
10258
  else
 
10259
    ac_cpp_err=
 
10260
  fi
 
10261
else
 
10262
  ac_cpp_err=yes
 
10263
fi
 
10264
if test -z "$ac_cpp_err"; then
 
10265
  ac_header_preproc=yes
 
10266
else
 
10267
  echo "$as_me: failed program was:" >&5
 
10268
sed 's/^/| /' conftest.$ac_ext >&5
 
10269
 
 
10270
  ac_header_preproc=no
 
10271
fi
 
10272
rm -f conftest.err conftest.$ac_ext
 
10273
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
10274
echo "${ECHO_T}$ac_header_preproc" >&6
 
10275
 
 
10276
# So?  What about this header?
 
10277
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
10278
  yes:no: )
 
10279
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
10280
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
10281
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
10282
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
10283
    ac_header_preproc=yes
 
10284
    ;;
 
10285
  no:yes:* )
 
10286
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
10287
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
10288
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
10289
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
10290
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
10291
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
10292
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
10293
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
10294
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
10295
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
10296
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
10297
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
10298
    (
 
10299
      cat <<\_ASBOX
 
10300
## ------------------------------ ##
 
10301
## Report this to the ntp lists.  ##
 
10302
## ------------------------------ ##
 
10303
_ASBOX
 
10304
    ) |
 
10305
      sed "s/^/$as_me: WARNING:     /" >&2
 
10306
    ;;
 
10307
esac
 
10308
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10309
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10310
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10311
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10312
else
 
10313
  eval "$as_ac_Header=\$ac_header_preproc"
 
10314
fi
 
10315
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10316
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10317
 
 
10318
fi
 
10319
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
10320
  cat >>confdefs.h <<_ACEOF
 
10321
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
10322
_ACEOF
 
10323
 
 
10324
fi
 
10325
 
 
10326
done
 
10327
 
 
10328
    ;;
 
10329
esac
 
10330
 
 
10331
for ac_header in sys/ipc.h
 
10332
do
 
10333
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
10334
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10335
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10336
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10337
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10338
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10339
fi
 
10340
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10341
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10342
else
 
10343
  # Is the header compilable?
 
10344
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
10345
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
10346
cat >conftest.$ac_ext <<_ACEOF
 
10347
/* confdefs.h.  */
 
10348
_ACEOF
 
10349
cat confdefs.h >>conftest.$ac_ext
 
10350
cat >>conftest.$ac_ext <<_ACEOF
 
10351
/* end confdefs.h.  */
 
10352
$ac_includes_default
 
10353
#include <$ac_header>
 
10354
_ACEOF
 
10355
rm -f conftest.$ac_objext
 
10356
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10357
  (eval $ac_compile) 2>conftest.er1
 
10358
  ac_status=$?
 
10359
  grep -v '^ *+' conftest.er1 >conftest.err
 
10360
  rm -f conftest.er1
 
10361
  cat conftest.err >&5
 
10362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10363
  (exit $ac_status); } &&
 
10364
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10365
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10366
  (eval $ac_try) 2>&5
 
10367
  ac_status=$?
 
10368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10369
  (exit $ac_status); }; } &&
 
10370
         { ac_try='test -s conftest.$ac_objext'
 
10371
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10372
  (eval $ac_try) 2>&5
 
10373
  ac_status=$?
 
10374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10375
  (exit $ac_status); }; }; then
 
10376
  ac_header_compiler=yes
 
10377
else
 
10378
  echo "$as_me: failed program was:" >&5
 
10379
sed 's/^/| /' conftest.$ac_ext >&5
 
10380
 
 
10381
ac_header_compiler=no
 
10382
fi
 
10383
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10384
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
10385
echo "${ECHO_T}$ac_header_compiler" >&6
 
10386
 
 
10387
# Is the header present?
 
10388
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
10389
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
10390
cat >conftest.$ac_ext <<_ACEOF
 
10391
/* confdefs.h.  */
 
10392
_ACEOF
 
10393
cat confdefs.h >>conftest.$ac_ext
 
10394
cat >>conftest.$ac_ext <<_ACEOF
 
10395
/* end confdefs.h.  */
 
10396
#include <$ac_header>
 
10397
_ACEOF
 
10398
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10399
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10400
  ac_status=$?
 
10401
  grep -v '^ *+' conftest.er1 >conftest.err
 
10402
  rm -f conftest.er1
 
10403
  cat conftest.err >&5
 
10404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10405
  (exit $ac_status); } >/dev/null; then
 
10406
  if test -s conftest.err; then
 
10407
    ac_cpp_err=$ac_c_preproc_warn_flag
 
10408
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
10409
  else
 
10410
    ac_cpp_err=
 
10411
  fi
 
10412
else
 
10413
  ac_cpp_err=yes
 
10414
fi
 
10415
if test -z "$ac_cpp_err"; then
 
10416
  ac_header_preproc=yes
 
10417
else
 
10418
  echo "$as_me: failed program was:" >&5
 
10419
sed 's/^/| /' conftest.$ac_ext >&5
 
10420
 
 
10421
  ac_header_preproc=no
 
10422
fi
 
10423
rm -f conftest.err conftest.$ac_ext
 
10424
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
10425
echo "${ECHO_T}$ac_header_preproc" >&6
 
10426
 
 
10427
# So?  What about this header?
 
10428
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
10429
  yes:no: )
 
10430
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
10431
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
10432
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
10433
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
10434
    ac_header_preproc=yes
 
10435
    ;;
 
10436
  no:yes:* )
 
10437
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
10438
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
10439
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
10440
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
10441
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
10442
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
10443
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
10444
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
10445
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
10446
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
10447
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
10448
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
10449
    (
 
10450
      cat <<\_ASBOX
 
10451
## ------------------------------ ##
 
10452
## Report this to the ntp lists.  ##
 
10453
## ------------------------------ ##
 
10454
_ASBOX
 
10455
    ) |
 
10456
      sed "s/^/$as_me: WARNING:     /" >&2
 
10457
    ;;
 
10458
esac
 
10459
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10460
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10461
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10462
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10463
else
 
10464
  eval "$as_ac_Header=\$ac_header_preproc"
 
10465
fi
 
10466
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10467
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10468
 
 
10469
fi
 
10470
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
10471
  cat >>confdefs.h <<_ACEOF
 
10472
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
10473
_ACEOF
 
10474
 
 
10475
fi
 
10476
 
 
10477
done
 
10478
 
 
10479
 
 
10480
 
 
10481
 
 
10482
 
4683
10483
 
4684
10484
for ac_header in sys/lock.h sys/mman.h sys/modem.h sys/param.h sys/ppsclock.h
4685
10485
do
4686
 
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4687
 
echo "$as_me:4687: checking for $ac_header" >&5
 
10486
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
10487
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10488
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4688
10489
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4689
 
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
 
10490
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4690
10491
  echo $ECHO_N "(cached) $ECHO_C" >&6
4691
 
else
4692
 
  cat >conftest.$ac_ext <<_ACEOF
4693
 
#line 4693 "configure"
4694
 
#include "confdefs.h"
4695
 
#include <$ac_header>
4696
 
_ACEOF
4697
 
if { (eval echo "$as_me:4697: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10492
fi
 
10493
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10494
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10495
else
 
10496
  # Is the header compilable?
 
10497
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
10498
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
10499
cat >conftest.$ac_ext <<_ACEOF
 
10500
/* confdefs.h.  */
 
10501
_ACEOF
 
10502
cat confdefs.h >>conftest.$ac_ext
 
10503
cat >>conftest.$ac_ext <<_ACEOF
 
10504
/* end confdefs.h.  */
 
10505
$ac_includes_default
 
10506
#include <$ac_header>
 
10507
_ACEOF
 
10508
rm -f conftest.$ac_objext
 
10509
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10510
  (eval $ac_compile) 2>conftest.er1
 
10511
  ac_status=$?
 
10512
  grep -v '^ *+' conftest.er1 >conftest.err
 
10513
  rm -f conftest.er1
 
10514
  cat conftest.err >&5
 
10515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10516
  (exit $ac_status); } &&
 
10517
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10518
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10519
  (eval $ac_try) 2>&5
 
10520
  ac_status=$?
 
10521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10522
  (exit $ac_status); }; } &&
 
10523
         { ac_try='test -s conftest.$ac_objext'
 
10524
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10525
  (eval $ac_try) 2>&5
 
10526
  ac_status=$?
 
10527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10528
  (exit $ac_status); }; }; then
 
10529
  ac_header_compiler=yes
 
10530
else
 
10531
  echo "$as_me: failed program was:" >&5
 
10532
sed 's/^/| /' conftest.$ac_ext >&5
 
10533
 
 
10534
ac_header_compiler=no
 
10535
fi
 
10536
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10537
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
10538
echo "${ECHO_T}$ac_header_compiler" >&6
 
10539
 
 
10540
# Is the header present?
 
10541
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
10542
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
10543
cat >conftest.$ac_ext <<_ACEOF
 
10544
/* confdefs.h.  */
 
10545
_ACEOF
 
10546
cat confdefs.h >>conftest.$ac_ext
 
10547
cat >>conftest.$ac_ext <<_ACEOF
 
10548
/* end confdefs.h.  */
 
10549
#include <$ac_header>
 
10550
_ACEOF
 
10551
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4698
10552
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4699
10553
  ac_status=$?
4700
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
10554
  grep -v '^ *+' conftest.er1 >conftest.err
4701
10555
  rm -f conftest.er1
4702
10556
  cat conftest.err >&5
4703
 
  echo "$as_me:4703: \$? = $ac_status" >&5
 
10557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704
10558
  (exit $ac_status); } >/dev/null; then
4705
10559
  if test -s conftest.err; then
4706
10560
    ac_cpp_err=$ac_c_preproc_warn_flag
 
10561
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4707
10562
  else
4708
10563
    ac_cpp_err=
4709
10564
  fi
4711
10566
  ac_cpp_err=yes
4712
10567
fi
4713
10568
if test -z "$ac_cpp_err"; then
4714
 
  eval "$ac_ac_Header=yes"
 
10569
  ac_header_preproc=yes
4715
10570
else
4716
10571
  echo "$as_me: failed program was:" >&5
4717
 
  cat conftest.$ac_ext >&5
4718
 
  eval "$ac_ac_Header=no"
 
10572
sed 's/^/| /' conftest.$ac_ext >&5
 
10573
 
 
10574
  ac_header_preproc=no
4719
10575
fi
4720
10576
rm -f conftest.err conftest.$ac_ext
4721
 
fi
4722
 
echo "$as_me:4722: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4723
 
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4724
 
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4725
 
  cat >>confdefs.h <<EOF
4726
 
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4727
 
EOF
4728
 
 
4729
 
fi
 
10577
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
10578
echo "${ECHO_T}$ac_header_preproc" >&6
 
10579
 
 
10580
# So?  What about this header?
 
10581
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
10582
  yes:no: )
 
10583
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
10584
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
10585
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
10586
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
10587
    ac_header_preproc=yes
 
10588
    ;;
 
10589
  no:yes:* )
 
10590
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
10591
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
10592
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
10593
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
10594
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
10595
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
10596
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
10597
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
10598
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
10599
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
10600
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
10601
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
10602
    (
 
10603
      cat <<\_ASBOX
 
10604
## ------------------------------ ##
 
10605
## Report this to the ntp lists.  ##
 
10606
## ------------------------------ ##
 
10607
_ASBOX
 
10608
    ) |
 
10609
      sed "s/^/$as_me: WARNING:     /" >&2
 
10610
    ;;
 
10611
esac
 
10612
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10613
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10614
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10615
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10616
else
 
10617
  eval "$as_ac_Header=\$ac_header_preproc"
 
10618
fi
 
10619
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10620
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10621
 
 
10622
fi
 
10623
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
10624
  cat >>confdefs.h <<_ACEOF
 
10625
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
10626
_ACEOF
 
10627
 
 
10628
fi
 
10629
 
4730
10630
done
4731
10631
 
 
10632
 
 
10633
 
 
10634
 
 
10635
 
4732
10636
for ac_header in sys/ppstime.h sys/proc.h sys/resource.h sys/sched.h
4733
10637
do
4734
 
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4735
 
echo "$as_me:4735: checking for $ac_header" >&5
 
10638
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
10639
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10640
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4736
10641
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4737
 
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
 
10642
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4738
10643
  echo $ECHO_N "(cached) $ECHO_C" >&6
4739
 
else
4740
 
  cat >conftest.$ac_ext <<_ACEOF
4741
 
#line 4741 "configure"
4742
 
#include "confdefs.h"
4743
 
#include <$ac_header>
4744
 
_ACEOF
4745
 
if { (eval echo "$as_me:4745: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10644
fi
 
10645
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10646
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10647
else
 
10648
  # Is the header compilable?
 
10649
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
10650
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
10651
cat >conftest.$ac_ext <<_ACEOF
 
10652
/* confdefs.h.  */
 
10653
_ACEOF
 
10654
cat confdefs.h >>conftest.$ac_ext
 
10655
cat >>conftest.$ac_ext <<_ACEOF
 
10656
/* end confdefs.h.  */
 
10657
$ac_includes_default
 
10658
#include <$ac_header>
 
10659
_ACEOF
 
10660
rm -f conftest.$ac_objext
 
10661
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10662
  (eval $ac_compile) 2>conftest.er1
 
10663
  ac_status=$?
 
10664
  grep -v '^ *+' conftest.er1 >conftest.err
 
10665
  rm -f conftest.er1
 
10666
  cat conftest.err >&5
 
10667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10668
  (exit $ac_status); } &&
 
10669
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10670
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10671
  (eval $ac_try) 2>&5
 
10672
  ac_status=$?
 
10673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10674
  (exit $ac_status); }; } &&
 
10675
         { ac_try='test -s conftest.$ac_objext'
 
10676
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10677
  (eval $ac_try) 2>&5
 
10678
  ac_status=$?
 
10679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10680
  (exit $ac_status); }; }; then
 
10681
  ac_header_compiler=yes
 
10682
else
 
10683
  echo "$as_me: failed program was:" >&5
 
10684
sed 's/^/| /' conftest.$ac_ext >&5
 
10685
 
 
10686
ac_header_compiler=no
 
10687
fi
 
10688
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10689
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
10690
echo "${ECHO_T}$ac_header_compiler" >&6
 
10691
 
 
10692
# Is the header present?
 
10693
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
10694
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
10695
cat >conftest.$ac_ext <<_ACEOF
 
10696
/* confdefs.h.  */
 
10697
_ACEOF
 
10698
cat confdefs.h >>conftest.$ac_ext
 
10699
cat >>conftest.$ac_ext <<_ACEOF
 
10700
/* end confdefs.h.  */
 
10701
#include <$ac_header>
 
10702
_ACEOF
 
10703
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4746
10704
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4747
10705
  ac_status=$?
4748
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
10706
  grep -v '^ *+' conftest.er1 >conftest.err
4749
10707
  rm -f conftest.er1
4750
10708
  cat conftest.err >&5
4751
 
  echo "$as_me:4751: \$? = $ac_status" >&5
 
10709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752
10710
  (exit $ac_status); } >/dev/null; then
4753
10711
  if test -s conftest.err; then
4754
10712
    ac_cpp_err=$ac_c_preproc_warn_flag
 
10713
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4755
10714
  else
4756
10715
    ac_cpp_err=
4757
10716
  fi
4759
10718
  ac_cpp_err=yes
4760
10719
fi
4761
10720
if test -z "$ac_cpp_err"; then
4762
 
  eval "$ac_ac_Header=yes"
 
10721
  ac_header_preproc=yes
4763
10722
else
4764
10723
  echo "$as_me: failed program was:" >&5
4765
 
  cat conftest.$ac_ext >&5
4766
 
  eval "$ac_ac_Header=no"
 
10724
sed 's/^/| /' conftest.$ac_ext >&5
 
10725
 
 
10726
  ac_header_preproc=no
4767
10727
fi
4768
10728
rm -f conftest.err conftest.$ac_ext
4769
 
fi
4770
 
echo "$as_me:4770: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4771
 
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4772
 
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4773
 
  cat >>confdefs.h <<EOF
4774
 
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4775
 
EOF
4776
 
 
4777
 
fi
 
10729
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
10730
echo "${ECHO_T}$ac_header_preproc" >&6
 
10731
 
 
10732
# So?  What about this header?
 
10733
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
10734
  yes:no: )
 
10735
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
10736
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
10737
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
10738
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
10739
    ac_header_preproc=yes
 
10740
    ;;
 
10741
  no:yes:* )
 
10742
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
10743
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
10744
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
10745
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
10746
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
10747
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
10748
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
10749
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
10750
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
10751
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
10752
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
10753
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
10754
    (
 
10755
      cat <<\_ASBOX
 
10756
## ------------------------------ ##
 
10757
## Report this to the ntp lists.  ##
 
10758
## ------------------------------ ##
 
10759
_ASBOX
 
10760
    ) |
 
10761
      sed "s/^/$as_me: WARNING:     /" >&2
 
10762
    ;;
 
10763
esac
 
10764
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10765
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10766
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10767
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10768
else
 
10769
  eval "$as_ac_Header=\$ac_header_preproc"
 
10770
fi
 
10771
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10772
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10773
 
 
10774
fi
 
10775
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
10776
  cat >>confdefs.h <<_ACEOF
 
10777
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
10778
_ACEOF
 
10779
 
 
10780
fi
 
10781
 
4778
10782
done
4779
10783
 
4780
 
case "$target" in
 
10784
case "$host" in
4781
10785
 *-*-sco*)
4782
10786
 
4783
10787
for ac_header in sys/sio.h
4784
10788
do
4785
 
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4786
 
echo "$as_me:4786: checking for $ac_header" >&5
4787
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4788
 
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4789
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4790
 
else
4791
 
  cat >conftest.$ac_ext <<_ACEOF
4792
 
#line 4792 "configure"
4793
 
#include "confdefs.h"
4794
 
#include <$ac_header>
4795
 
_ACEOF
4796
 
if { (eval echo "$as_me:4796: \"$ac_cpp conftest.$ac_ext\"") >&5
4797
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4798
 
  ac_status=$?
4799
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
4800
 
  rm -f conftest.er1
4801
 
  cat conftest.err >&5
4802
 
  echo "$as_me:4802: \$? = $ac_status" >&5
4803
 
  (exit $ac_status); } >/dev/null; then
4804
 
  if test -s conftest.err; then
4805
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4806
 
  else
4807
 
    ac_cpp_err=
4808
 
  fi
4809
 
else
4810
 
  ac_cpp_err=yes
4811
 
fi
4812
 
if test -z "$ac_cpp_err"; then
4813
 
  eval "$ac_ac_Header=yes"
4814
 
else
4815
 
  echo "$as_me: failed program was:" >&5
4816
 
  cat conftest.$ac_ext >&5
4817
 
  eval "$ac_ac_Header=no"
4818
 
fi
4819
 
rm -f conftest.err conftest.$ac_ext
4820
 
fi
4821
 
echo "$as_me:4821: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4822
 
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4823
 
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4824
 
  cat >>confdefs.h <<EOF
4825
 
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4826
 
EOF
4827
 
 
4828
 
fi
4829
 
done
4830
 
 
4831
 
    ;;
4832
 
esac
4833
 
 
4834
 
for ac_header in sys/select.h sys/sockio.h sys/stat.h sys/stream.h
4835
 
do
4836
 
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4837
 
echo "$as_me:4837: checking for $ac_header" >&5
4838
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4839
 
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4840
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4841
 
else
4842
 
  cat >conftest.$ac_ext <<_ACEOF
4843
 
#line 4843 "configure"
4844
 
#include "confdefs.h"
4845
 
#include <$ac_header>
4846
 
_ACEOF
4847
 
if { (eval echo "$as_me:4847: \"$ac_cpp conftest.$ac_ext\"") >&5
4848
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4849
 
  ac_status=$?
4850
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
4851
 
  rm -f conftest.er1
4852
 
  cat conftest.err >&5
4853
 
  echo "$as_me:4853: \$? = $ac_status" >&5
4854
 
  (exit $ac_status); } >/dev/null; then
4855
 
  if test -s conftest.err; then
4856
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4857
 
  else
4858
 
    ac_cpp_err=
4859
 
  fi
4860
 
else
4861
 
  ac_cpp_err=yes
4862
 
fi
4863
 
if test -z "$ac_cpp_err"; then
4864
 
  eval "$ac_ac_Header=yes"
4865
 
else
4866
 
  echo "$as_me: failed program was:" >&5
4867
 
  cat conftest.$ac_ext >&5
4868
 
  eval "$ac_ac_Header=no"
4869
 
fi
4870
 
rm -f conftest.err conftest.$ac_ext
4871
 
fi
4872
 
echo "$as_me:4872: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4873
 
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4874
 
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4875
 
  cat >>confdefs.h <<EOF
4876
 
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4877
 
EOF
4878
 
 
4879
 
fi
4880
 
done
4881
 
 
4882
 
for ac_header in sys/stropts.h sys/sysctl.h sys/syssgi.h sys/termios.h
4883
 
do
4884
 
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4885
 
echo "$as_me:4885: checking for $ac_header" >&5
4886
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4887
 
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4888
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4889
 
else
4890
 
  cat >conftest.$ac_ext <<_ACEOF
4891
 
#line 4891 "configure"
4892
 
#include "confdefs.h"
4893
 
#include <$ac_header>
4894
 
_ACEOF
4895
 
if { (eval echo "$as_me:4895: \"$ac_cpp conftest.$ac_ext\"") >&5
4896
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4897
 
  ac_status=$?
4898
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
4899
 
  rm -f conftest.er1
4900
 
  cat conftest.err >&5
4901
 
  echo "$as_me:4901: \$? = $ac_status" >&5
4902
 
  (exit $ac_status); } >/dev/null; then
4903
 
  if test -s conftest.err; then
4904
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4905
 
  else
4906
 
    ac_cpp_err=
4907
 
  fi
4908
 
else
4909
 
  ac_cpp_err=yes
4910
 
fi
4911
 
if test -z "$ac_cpp_err"; then
4912
 
  eval "$ac_ac_Header=yes"
4913
 
else
4914
 
  echo "$as_me: failed program was:" >&5
4915
 
  cat conftest.$ac_ext >&5
4916
 
  eval "$ac_ac_Header=no"
4917
 
fi
4918
 
rm -f conftest.err conftest.$ac_ext
4919
 
fi
4920
 
echo "$as_me:4920: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4921
 
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4922
 
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4923
 
  cat >>confdefs.h <<EOF
4924
 
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4925
 
EOF
4926
 
 
4927
 
fi
4928
 
done
4929
 
 
4930
 
for ac_header in sys/time.h
4931
 
do
4932
 
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4933
 
echo "$as_me:4933: checking for $ac_header" >&5
4934
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4935
 
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4936
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4937
 
else
4938
 
  cat >conftest.$ac_ext <<_ACEOF
4939
 
#line 4939 "configure"
4940
 
#include "confdefs.h"
4941
 
#include <$ac_header>
4942
 
_ACEOF
4943
 
if { (eval echo "$as_me:4943: \"$ac_cpp conftest.$ac_ext\"") >&5
4944
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4945
 
  ac_status=$?
4946
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
4947
 
  rm -f conftest.er1
4948
 
  cat conftest.err >&5
4949
 
  echo "$as_me:4949: \$? = $ac_status" >&5
4950
 
  (exit $ac_status); } >/dev/null; then
4951
 
  if test -s conftest.err; then
4952
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4953
 
  else
4954
 
    ac_cpp_err=
4955
 
  fi
4956
 
else
4957
 
  ac_cpp_err=yes
4958
 
fi
4959
 
if test -z "$ac_cpp_err"; then
4960
 
  eval "$ac_ac_Header=yes"
4961
 
else
4962
 
  echo "$as_me: failed program was:" >&5
4963
 
  cat conftest.$ac_ext >&5
4964
 
  eval "$ac_ac_Header=no"
4965
 
fi
4966
 
rm -f conftest.err conftest.$ac_ext
4967
 
fi
4968
 
echo "$as_me:4968: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4969
 
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4970
 
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4971
 
  cat >>confdefs.h <<EOF
4972
 
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4973
 
EOF
4974
 
 
4975
 
fi
4976
 
done
4977
 
 
4978
 
cat >conftest.$ac_ext <<_ACEOF
4979
 
#line 4979 "configure"
4980
 
#include "confdefs.h"
 
10789
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
10790
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10791
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10792
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10793
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10794
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10795
fi
 
10796
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10797
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10798
else
 
10799
  # Is the header compilable?
 
10800
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
10801
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
10802
cat >conftest.$ac_ext <<_ACEOF
 
10803
/* confdefs.h.  */
 
10804
_ACEOF
 
10805
cat confdefs.h >>conftest.$ac_ext
 
10806
cat >>conftest.$ac_ext <<_ACEOF
 
10807
/* end confdefs.h.  */
 
10808
$ac_includes_default
 
10809
#include <$ac_header>
 
10810
_ACEOF
 
10811
rm -f conftest.$ac_objext
 
10812
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10813
  (eval $ac_compile) 2>conftest.er1
 
10814
  ac_status=$?
 
10815
  grep -v '^ *+' conftest.er1 >conftest.err
 
10816
  rm -f conftest.er1
 
10817
  cat conftest.err >&5
 
10818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10819
  (exit $ac_status); } &&
 
10820
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10821
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10822
  (eval $ac_try) 2>&5
 
10823
  ac_status=$?
 
10824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10825
  (exit $ac_status); }; } &&
 
10826
         { ac_try='test -s conftest.$ac_objext'
 
10827
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10828
  (eval $ac_try) 2>&5
 
10829
  ac_status=$?
 
10830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10831
  (exit $ac_status); }; }; then
 
10832
  ac_header_compiler=yes
 
10833
else
 
10834
  echo "$as_me: failed program was:" >&5
 
10835
sed 's/^/| /' conftest.$ac_ext >&5
 
10836
 
 
10837
ac_header_compiler=no
 
10838
fi
 
10839
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10840
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
10841
echo "${ECHO_T}$ac_header_compiler" >&6
 
10842
 
 
10843
# Is the header present?
 
10844
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
10845
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
10846
cat >conftest.$ac_ext <<_ACEOF
 
10847
/* confdefs.h.  */
 
10848
_ACEOF
 
10849
cat confdefs.h >>conftest.$ac_ext
 
10850
cat >>conftest.$ac_ext <<_ACEOF
 
10851
/* end confdefs.h.  */
 
10852
#include <$ac_header>
 
10853
_ACEOF
 
10854
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10855
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10856
  ac_status=$?
 
10857
  grep -v '^ *+' conftest.er1 >conftest.err
 
10858
  rm -f conftest.er1
 
10859
  cat conftest.err >&5
 
10860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10861
  (exit $ac_status); } >/dev/null; then
 
10862
  if test -s conftest.err; then
 
10863
    ac_cpp_err=$ac_c_preproc_warn_flag
 
10864
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
10865
  else
 
10866
    ac_cpp_err=
 
10867
  fi
 
10868
else
 
10869
  ac_cpp_err=yes
 
10870
fi
 
10871
if test -z "$ac_cpp_err"; then
 
10872
  ac_header_preproc=yes
 
10873
else
 
10874
  echo "$as_me: failed program was:" >&5
 
10875
sed 's/^/| /' conftest.$ac_ext >&5
 
10876
 
 
10877
  ac_header_preproc=no
 
10878
fi
 
10879
rm -f conftest.err conftest.$ac_ext
 
10880
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
10881
echo "${ECHO_T}$ac_header_preproc" >&6
 
10882
 
 
10883
# So?  What about this header?
 
10884
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
10885
  yes:no: )
 
10886
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
10887
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
10888
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
10889
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
10890
    ac_header_preproc=yes
 
10891
    ;;
 
10892
  no:yes:* )
 
10893
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
10894
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
10895
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
10896
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
10897
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
10898
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
10899
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
10900
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
10901
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
10902
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
10903
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
10904
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
10905
    (
 
10906
      cat <<\_ASBOX
 
10907
## ------------------------------ ##
 
10908
## Report this to the ntp lists.  ##
 
10909
## ------------------------------ ##
 
10910
_ASBOX
 
10911
    ) |
 
10912
      sed "s/^/$as_me: WARNING:     /" >&2
 
10913
    ;;
 
10914
esac
 
10915
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10916
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10917
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10918
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10919
else
 
10920
  eval "$as_ac_Header=\$ac_header_preproc"
 
10921
fi
 
10922
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10923
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10924
 
 
10925
fi
 
10926
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
10927
  cat >>confdefs.h <<_ACEOF
 
10928
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
10929
_ACEOF
 
10930
 
 
10931
fi
 
10932
 
 
10933
done
 
10934
 
 
10935
    ;;
 
10936
esac
 
10937
 
 
10938
 
 
10939
 
 
10940
 
 
10941
for ac_header in sys/select.h sys/shm.h sys/signal.h sys/sockio.h
 
10942
do
 
10943
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
10944
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10945
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10946
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10947
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10948
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10949
fi
 
10950
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10951
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10952
else
 
10953
  # Is the header compilable?
 
10954
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
10955
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
10956
cat >conftest.$ac_ext <<_ACEOF
 
10957
/* confdefs.h.  */
 
10958
_ACEOF
 
10959
cat confdefs.h >>conftest.$ac_ext
 
10960
cat >>conftest.$ac_ext <<_ACEOF
 
10961
/* end confdefs.h.  */
 
10962
$ac_includes_default
 
10963
#include <$ac_header>
 
10964
_ACEOF
 
10965
rm -f conftest.$ac_objext
 
10966
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10967
  (eval $ac_compile) 2>conftest.er1
 
10968
  ac_status=$?
 
10969
  grep -v '^ *+' conftest.er1 >conftest.err
 
10970
  rm -f conftest.er1
 
10971
  cat conftest.err >&5
 
10972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10973
  (exit $ac_status); } &&
 
10974
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10975
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10976
  (eval $ac_try) 2>&5
 
10977
  ac_status=$?
 
10978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10979
  (exit $ac_status); }; } &&
 
10980
         { ac_try='test -s conftest.$ac_objext'
 
10981
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10982
  (eval $ac_try) 2>&5
 
10983
  ac_status=$?
 
10984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10985
  (exit $ac_status); }; }; then
 
10986
  ac_header_compiler=yes
 
10987
else
 
10988
  echo "$as_me: failed program was:" >&5
 
10989
sed 's/^/| /' conftest.$ac_ext >&5
 
10990
 
 
10991
ac_header_compiler=no
 
10992
fi
 
10993
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10994
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
10995
echo "${ECHO_T}$ac_header_compiler" >&6
 
10996
 
 
10997
# Is the header present?
 
10998
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
10999
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
11000
cat >conftest.$ac_ext <<_ACEOF
 
11001
/* confdefs.h.  */
 
11002
_ACEOF
 
11003
cat confdefs.h >>conftest.$ac_ext
 
11004
cat >>conftest.$ac_ext <<_ACEOF
 
11005
/* end confdefs.h.  */
 
11006
#include <$ac_header>
 
11007
_ACEOF
 
11008
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11009
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11010
  ac_status=$?
 
11011
  grep -v '^ *+' conftest.er1 >conftest.err
 
11012
  rm -f conftest.er1
 
11013
  cat conftest.err >&5
 
11014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11015
  (exit $ac_status); } >/dev/null; then
 
11016
  if test -s conftest.err; then
 
11017
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11018
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
11019
  else
 
11020
    ac_cpp_err=
 
11021
  fi
 
11022
else
 
11023
  ac_cpp_err=yes
 
11024
fi
 
11025
if test -z "$ac_cpp_err"; then
 
11026
  ac_header_preproc=yes
 
11027
else
 
11028
  echo "$as_me: failed program was:" >&5
 
11029
sed 's/^/| /' conftest.$ac_ext >&5
 
11030
 
 
11031
  ac_header_preproc=no
 
11032
fi
 
11033
rm -f conftest.err conftest.$ac_ext
 
11034
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11035
echo "${ECHO_T}$ac_header_preproc" >&6
 
11036
 
 
11037
# So?  What about this header?
 
11038
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11039
  yes:no: )
 
11040
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
11041
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11042
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
11043
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
11044
    ac_header_preproc=yes
 
11045
    ;;
 
11046
  no:yes:* )
 
11047
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
11048
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
11049
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
11050
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
11051
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
11052
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
11053
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
11054
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11055
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
11056
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
11057
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
11058
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
11059
    (
 
11060
      cat <<\_ASBOX
 
11061
## ------------------------------ ##
 
11062
## Report this to the ntp lists.  ##
 
11063
## ------------------------------ ##
 
11064
_ASBOX
 
11065
    ) |
 
11066
      sed "s/^/$as_me: WARNING:     /" >&2
 
11067
    ;;
 
11068
esac
 
11069
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11070
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11071
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11072
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11073
else
 
11074
  eval "$as_ac_Header=\$ac_header_preproc"
 
11075
fi
 
11076
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11077
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11078
 
 
11079
fi
 
11080
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11081
  cat >>confdefs.h <<_ACEOF
 
11082
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11083
_ACEOF
 
11084
 
 
11085
fi
 
11086
 
 
11087
done
 
11088
 
 
11089
case "$host" in
 
11090
 *-*-netbsd*) ;;
 
11091
 *)
 
11092
 
 
11093
for ac_header in machine/soundcard.h sys/soundcard.h
 
11094
do
 
11095
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11096
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11097
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11098
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11099
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11100
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11101
fi
 
11102
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11103
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11104
else
 
11105
  # Is the header compilable?
 
11106
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
11107
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
11108
cat >conftest.$ac_ext <<_ACEOF
 
11109
/* confdefs.h.  */
 
11110
_ACEOF
 
11111
cat confdefs.h >>conftest.$ac_ext
 
11112
cat >>conftest.$ac_ext <<_ACEOF
 
11113
/* end confdefs.h.  */
 
11114
$ac_includes_default
 
11115
#include <$ac_header>
 
11116
_ACEOF
 
11117
rm -f conftest.$ac_objext
 
11118
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11119
  (eval $ac_compile) 2>conftest.er1
 
11120
  ac_status=$?
 
11121
  grep -v '^ *+' conftest.er1 >conftest.err
 
11122
  rm -f conftest.er1
 
11123
  cat conftest.err >&5
 
11124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11125
  (exit $ac_status); } &&
 
11126
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11127
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11128
  (eval $ac_try) 2>&5
 
11129
  ac_status=$?
 
11130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11131
  (exit $ac_status); }; } &&
 
11132
         { ac_try='test -s conftest.$ac_objext'
 
11133
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11134
  (eval $ac_try) 2>&5
 
11135
  ac_status=$?
 
11136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11137
  (exit $ac_status); }; }; then
 
11138
  ac_header_compiler=yes
 
11139
else
 
11140
  echo "$as_me: failed program was:" >&5
 
11141
sed 's/^/| /' conftest.$ac_ext >&5
 
11142
 
 
11143
ac_header_compiler=no
 
11144
fi
 
11145
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11146
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11147
echo "${ECHO_T}$ac_header_compiler" >&6
 
11148
 
 
11149
# Is the header present?
 
11150
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
11151
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
11152
cat >conftest.$ac_ext <<_ACEOF
 
11153
/* confdefs.h.  */
 
11154
_ACEOF
 
11155
cat confdefs.h >>conftest.$ac_ext
 
11156
cat >>conftest.$ac_ext <<_ACEOF
 
11157
/* end confdefs.h.  */
 
11158
#include <$ac_header>
 
11159
_ACEOF
 
11160
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11161
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11162
  ac_status=$?
 
11163
  grep -v '^ *+' conftest.er1 >conftest.err
 
11164
  rm -f conftest.er1
 
11165
  cat conftest.err >&5
 
11166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11167
  (exit $ac_status); } >/dev/null; then
 
11168
  if test -s conftest.err; then
 
11169
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11170
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
11171
  else
 
11172
    ac_cpp_err=
 
11173
  fi
 
11174
else
 
11175
  ac_cpp_err=yes
 
11176
fi
 
11177
if test -z "$ac_cpp_err"; then
 
11178
  ac_header_preproc=yes
 
11179
else
 
11180
  echo "$as_me: failed program was:" >&5
 
11181
sed 's/^/| /' conftest.$ac_ext >&5
 
11182
 
 
11183
  ac_header_preproc=no
 
11184
fi
 
11185
rm -f conftest.err conftest.$ac_ext
 
11186
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11187
echo "${ECHO_T}$ac_header_preproc" >&6
 
11188
 
 
11189
# So?  What about this header?
 
11190
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11191
  yes:no: )
 
11192
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
11193
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11194
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
11195
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
11196
    ac_header_preproc=yes
 
11197
    ;;
 
11198
  no:yes:* )
 
11199
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
11200
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
11201
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
11202
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
11203
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
11204
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
11205
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
11206
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11207
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
11208
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
11209
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
11210
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
11211
    (
 
11212
      cat <<\_ASBOX
 
11213
## ------------------------------ ##
 
11214
## Report this to the ntp lists.  ##
 
11215
## ------------------------------ ##
 
11216
_ASBOX
 
11217
    ) |
 
11218
      sed "s/^/$as_me: WARNING:     /" >&2
 
11219
    ;;
 
11220
esac
 
11221
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11222
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11223
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11224
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11225
else
 
11226
  eval "$as_ac_Header=\$ac_header_preproc"
 
11227
fi
 
11228
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11229
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11230
 
 
11231
fi
 
11232
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11233
  cat >>confdefs.h <<_ACEOF
 
11234
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11235
_ACEOF
 
11236
 
 
11237
fi
 
11238
 
 
11239
done
 
11240
 
 
11241
    ;;
 
11242
esac
 
11243
 
 
11244
 
 
11245
for ac_header in sys/stat.h sys/stream.h
 
11246
do
 
11247
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11248
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11249
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11250
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11251
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11252
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11253
fi
 
11254
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11255
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11256
else
 
11257
  # Is the header compilable?
 
11258
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
11259
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
11260
cat >conftest.$ac_ext <<_ACEOF
 
11261
/* confdefs.h.  */
 
11262
_ACEOF
 
11263
cat confdefs.h >>conftest.$ac_ext
 
11264
cat >>conftest.$ac_ext <<_ACEOF
 
11265
/* end confdefs.h.  */
 
11266
$ac_includes_default
 
11267
#include <$ac_header>
 
11268
_ACEOF
 
11269
rm -f conftest.$ac_objext
 
11270
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11271
  (eval $ac_compile) 2>conftest.er1
 
11272
  ac_status=$?
 
11273
  grep -v '^ *+' conftest.er1 >conftest.err
 
11274
  rm -f conftest.er1
 
11275
  cat conftest.err >&5
 
11276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11277
  (exit $ac_status); } &&
 
11278
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11279
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11280
  (eval $ac_try) 2>&5
 
11281
  ac_status=$?
 
11282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11283
  (exit $ac_status); }; } &&
 
11284
         { ac_try='test -s conftest.$ac_objext'
 
11285
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11286
  (eval $ac_try) 2>&5
 
11287
  ac_status=$?
 
11288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11289
  (exit $ac_status); }; }; then
 
11290
  ac_header_compiler=yes
 
11291
else
 
11292
  echo "$as_me: failed program was:" >&5
 
11293
sed 's/^/| /' conftest.$ac_ext >&5
 
11294
 
 
11295
ac_header_compiler=no
 
11296
fi
 
11297
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11298
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11299
echo "${ECHO_T}$ac_header_compiler" >&6
 
11300
 
 
11301
# Is the header present?
 
11302
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
11303
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
11304
cat >conftest.$ac_ext <<_ACEOF
 
11305
/* confdefs.h.  */
 
11306
_ACEOF
 
11307
cat confdefs.h >>conftest.$ac_ext
 
11308
cat >>conftest.$ac_ext <<_ACEOF
 
11309
/* end confdefs.h.  */
 
11310
#include <$ac_header>
 
11311
_ACEOF
 
11312
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11313
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11314
  ac_status=$?
 
11315
  grep -v '^ *+' conftest.er1 >conftest.err
 
11316
  rm -f conftest.er1
 
11317
  cat conftest.err >&5
 
11318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11319
  (exit $ac_status); } >/dev/null; then
 
11320
  if test -s conftest.err; then
 
11321
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11322
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
11323
  else
 
11324
    ac_cpp_err=
 
11325
  fi
 
11326
else
 
11327
  ac_cpp_err=yes
 
11328
fi
 
11329
if test -z "$ac_cpp_err"; then
 
11330
  ac_header_preproc=yes
 
11331
else
 
11332
  echo "$as_me: failed program was:" >&5
 
11333
sed 's/^/| /' conftest.$ac_ext >&5
 
11334
 
 
11335
  ac_header_preproc=no
 
11336
fi
 
11337
rm -f conftest.err conftest.$ac_ext
 
11338
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11339
echo "${ECHO_T}$ac_header_preproc" >&6
 
11340
 
 
11341
# So?  What about this header?
 
11342
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11343
  yes:no: )
 
11344
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
11345
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11346
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
11347
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
11348
    ac_header_preproc=yes
 
11349
    ;;
 
11350
  no:yes:* )
 
11351
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
11352
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
11353
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
11354
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
11355
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
11356
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
11357
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
11358
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11359
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
11360
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
11361
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
11362
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
11363
    (
 
11364
      cat <<\_ASBOX
 
11365
## ------------------------------ ##
 
11366
## Report this to the ntp lists.  ##
 
11367
## ------------------------------ ##
 
11368
_ASBOX
 
11369
    ) |
 
11370
      sed "s/^/$as_me: WARNING:     /" >&2
 
11371
    ;;
 
11372
esac
 
11373
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11374
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11375
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11376
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11377
else
 
11378
  eval "$as_ac_Header=\$ac_header_preproc"
 
11379
fi
 
11380
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11381
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11382
 
 
11383
fi
 
11384
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11385
  cat >>confdefs.h <<_ACEOF
 
11386
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11387
_ACEOF
 
11388
 
 
11389
fi
 
11390
 
 
11391
done
 
11392
 
 
11393
 
 
11394
 
 
11395
 
 
11396
 
 
11397
for ac_header in sys/stropts.h sys/sysctl.h sys/syssgi.h sys/systune.h
 
11398
do
 
11399
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11400
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11401
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11402
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11403
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11404
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11405
fi
 
11406
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11407
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11408
else
 
11409
  # Is the header compilable?
 
11410
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
11411
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
11412
cat >conftest.$ac_ext <<_ACEOF
 
11413
/* confdefs.h.  */
 
11414
_ACEOF
 
11415
cat confdefs.h >>conftest.$ac_ext
 
11416
cat >>conftest.$ac_ext <<_ACEOF
 
11417
/* end confdefs.h.  */
 
11418
$ac_includes_default
 
11419
#include <$ac_header>
 
11420
_ACEOF
 
11421
rm -f conftest.$ac_objext
 
11422
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11423
  (eval $ac_compile) 2>conftest.er1
 
11424
  ac_status=$?
 
11425
  grep -v '^ *+' conftest.er1 >conftest.err
 
11426
  rm -f conftest.er1
 
11427
  cat conftest.err >&5
 
11428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11429
  (exit $ac_status); } &&
 
11430
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11431
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11432
  (eval $ac_try) 2>&5
 
11433
  ac_status=$?
 
11434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11435
  (exit $ac_status); }; } &&
 
11436
         { ac_try='test -s conftest.$ac_objext'
 
11437
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11438
  (eval $ac_try) 2>&5
 
11439
  ac_status=$?
 
11440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11441
  (exit $ac_status); }; }; then
 
11442
  ac_header_compiler=yes
 
11443
else
 
11444
  echo "$as_me: failed program was:" >&5
 
11445
sed 's/^/| /' conftest.$ac_ext >&5
 
11446
 
 
11447
ac_header_compiler=no
 
11448
fi
 
11449
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11450
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11451
echo "${ECHO_T}$ac_header_compiler" >&6
 
11452
 
 
11453
# Is the header present?
 
11454
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
11455
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
11456
cat >conftest.$ac_ext <<_ACEOF
 
11457
/* confdefs.h.  */
 
11458
_ACEOF
 
11459
cat confdefs.h >>conftest.$ac_ext
 
11460
cat >>conftest.$ac_ext <<_ACEOF
 
11461
/* end confdefs.h.  */
 
11462
#include <$ac_header>
 
11463
_ACEOF
 
11464
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11465
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11466
  ac_status=$?
 
11467
  grep -v '^ *+' conftest.er1 >conftest.err
 
11468
  rm -f conftest.er1
 
11469
  cat conftest.err >&5
 
11470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11471
  (exit $ac_status); } >/dev/null; then
 
11472
  if test -s conftest.err; then
 
11473
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11474
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
11475
  else
 
11476
    ac_cpp_err=
 
11477
  fi
 
11478
else
 
11479
  ac_cpp_err=yes
 
11480
fi
 
11481
if test -z "$ac_cpp_err"; then
 
11482
  ac_header_preproc=yes
 
11483
else
 
11484
  echo "$as_me: failed program was:" >&5
 
11485
sed 's/^/| /' conftest.$ac_ext >&5
 
11486
 
 
11487
  ac_header_preproc=no
 
11488
fi
 
11489
rm -f conftest.err conftest.$ac_ext
 
11490
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11491
echo "${ECHO_T}$ac_header_preproc" >&6
 
11492
 
 
11493
# So?  What about this header?
 
11494
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11495
  yes:no: )
 
11496
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
11497
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11498
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
11499
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
11500
    ac_header_preproc=yes
 
11501
    ;;
 
11502
  no:yes:* )
 
11503
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
11504
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
11505
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
11506
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
11507
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
11508
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
11509
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
11510
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11511
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
11512
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
11513
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
11514
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
11515
    (
 
11516
      cat <<\_ASBOX
 
11517
## ------------------------------ ##
 
11518
## Report this to the ntp lists.  ##
 
11519
## ------------------------------ ##
 
11520
_ASBOX
 
11521
    ) |
 
11522
      sed "s/^/$as_me: WARNING:     /" >&2
 
11523
    ;;
 
11524
esac
 
11525
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11526
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11527
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11528
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11529
else
 
11530
  eval "$as_ac_Header=\$ac_header_preproc"
 
11531
fi
 
11532
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11533
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11534
 
 
11535
fi
 
11536
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11537
  cat >>confdefs.h <<_ACEOF
 
11538
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11539
_ACEOF
 
11540
 
 
11541
fi
 
11542
 
 
11543
done
 
11544
 
 
11545
 
 
11546
 
 
11547
 
 
11548
for ac_header in sys/termios.h sys/time.h sys/signal.h
 
11549
do
 
11550
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11551
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11552
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11553
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11554
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11555
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11556
fi
 
11557
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11558
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11559
else
 
11560
  # Is the header compilable?
 
11561
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
11562
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
11563
cat >conftest.$ac_ext <<_ACEOF
 
11564
/* confdefs.h.  */
 
11565
_ACEOF
 
11566
cat confdefs.h >>conftest.$ac_ext
 
11567
cat >>conftest.$ac_ext <<_ACEOF
 
11568
/* end confdefs.h.  */
 
11569
$ac_includes_default
 
11570
#include <$ac_header>
 
11571
_ACEOF
 
11572
rm -f conftest.$ac_objext
 
11573
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11574
  (eval $ac_compile) 2>conftest.er1
 
11575
  ac_status=$?
 
11576
  grep -v '^ *+' conftest.er1 >conftest.err
 
11577
  rm -f conftest.er1
 
11578
  cat conftest.err >&5
 
11579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11580
  (exit $ac_status); } &&
 
11581
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11582
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11583
  (eval $ac_try) 2>&5
 
11584
  ac_status=$?
 
11585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11586
  (exit $ac_status); }; } &&
 
11587
         { ac_try='test -s conftest.$ac_objext'
 
11588
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11589
  (eval $ac_try) 2>&5
 
11590
  ac_status=$?
 
11591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11592
  (exit $ac_status); }; }; then
 
11593
  ac_header_compiler=yes
 
11594
else
 
11595
  echo "$as_me: failed program was:" >&5
 
11596
sed 's/^/| /' conftest.$ac_ext >&5
 
11597
 
 
11598
ac_header_compiler=no
 
11599
fi
 
11600
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11601
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11602
echo "${ECHO_T}$ac_header_compiler" >&6
 
11603
 
 
11604
# Is the header present?
 
11605
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
11606
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
11607
cat >conftest.$ac_ext <<_ACEOF
 
11608
/* confdefs.h.  */
 
11609
_ACEOF
 
11610
cat confdefs.h >>conftest.$ac_ext
 
11611
cat >>conftest.$ac_ext <<_ACEOF
 
11612
/* end confdefs.h.  */
 
11613
#include <$ac_header>
 
11614
_ACEOF
 
11615
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11616
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11617
  ac_status=$?
 
11618
  grep -v '^ *+' conftest.er1 >conftest.err
 
11619
  rm -f conftest.er1
 
11620
  cat conftest.err >&5
 
11621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11622
  (exit $ac_status); } >/dev/null; then
 
11623
  if test -s conftest.err; then
 
11624
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11625
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
11626
  else
 
11627
    ac_cpp_err=
 
11628
  fi
 
11629
else
 
11630
  ac_cpp_err=yes
 
11631
fi
 
11632
if test -z "$ac_cpp_err"; then
 
11633
  ac_header_preproc=yes
 
11634
else
 
11635
  echo "$as_me: failed program was:" >&5
 
11636
sed 's/^/| /' conftest.$ac_ext >&5
 
11637
 
 
11638
  ac_header_preproc=no
 
11639
fi
 
11640
rm -f conftest.err conftest.$ac_ext
 
11641
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11642
echo "${ECHO_T}$ac_header_preproc" >&6
 
11643
 
 
11644
# So?  What about this header?
 
11645
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11646
  yes:no: )
 
11647
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
11648
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11649
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
11650
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
11651
    ac_header_preproc=yes
 
11652
    ;;
 
11653
  no:yes:* )
 
11654
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
11655
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
11656
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
11657
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
11658
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
11659
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
11660
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
11661
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11662
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
11663
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
11664
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
11665
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
11666
    (
 
11667
      cat <<\_ASBOX
 
11668
## ------------------------------ ##
 
11669
## Report this to the ntp lists.  ##
 
11670
## ------------------------------ ##
 
11671
_ASBOX
 
11672
    ) |
 
11673
      sed "s/^/$as_me: WARNING:     /" >&2
 
11674
    ;;
 
11675
esac
 
11676
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11677
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11678
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11679
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11680
else
 
11681
  eval "$as_ac_Header=\$ac_header_preproc"
 
11682
fi
 
11683
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11684
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11685
 
 
11686
fi
 
11687
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11688
  cat >>confdefs.h <<_ACEOF
 
11689
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11690
_ACEOF
 
11691
 
 
11692
fi
 
11693
 
 
11694
done
 
11695
 
 
11696
cat >conftest.$ac_ext <<_ACEOF
 
11697
/* confdefs.h.  */
 
11698
_ACEOF
 
11699
cat confdefs.h >>conftest.$ac_ext
 
11700
cat >>conftest.$ac_ext <<_ACEOF
 
11701
/* end confdefs.h.  */
4981
11702
#include <sys/timepps.h>
4982
11703
#ifdef PPS_API_VERS_1
4983
11704
yes
4985
11706
 
4986
11707
_ACEOF
4987
11708
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4988
 
  egrep "yes" >/dev/null 2>&1; then
 
11709
  $EGREP "yes" >/dev/null 2>&1; then
4989
11710
 
4990
11711
for ac_header in sys/timepps.h
4991
11712
do
4992
 
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4993
 
echo "$as_me:4993: checking for $ac_header" >&5
 
11713
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11714
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11715
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4994
11716
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4995
 
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
 
11717
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4996
11718
  echo $ECHO_N "(cached) $ECHO_C" >&6
4997
 
else
4998
 
  cat >conftest.$ac_ext <<_ACEOF
4999
 
#line 4999 "configure"
5000
 
#include "confdefs.h"
5001
 
#include <$ac_header>
5002
 
_ACEOF
5003
 
if { (eval echo "$as_me:5003: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11719
fi
 
11720
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11721
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11722
else
 
11723
  # Is the header compilable?
 
11724
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
11725
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
11726
cat >conftest.$ac_ext <<_ACEOF
 
11727
/* confdefs.h.  */
 
11728
_ACEOF
 
11729
cat confdefs.h >>conftest.$ac_ext
 
11730
cat >>conftest.$ac_ext <<_ACEOF
 
11731
/* end confdefs.h.  */
 
11732
$ac_includes_default
 
11733
#include <$ac_header>
 
11734
_ACEOF
 
11735
rm -f conftest.$ac_objext
 
11736
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11737
  (eval $ac_compile) 2>conftest.er1
 
11738
  ac_status=$?
 
11739
  grep -v '^ *+' conftest.er1 >conftest.err
 
11740
  rm -f conftest.er1
 
11741
  cat conftest.err >&5
 
11742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11743
  (exit $ac_status); } &&
 
11744
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11745
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11746
  (eval $ac_try) 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_header_compiler=yes
 
11757
else
 
11758
  echo "$as_me: failed program was:" >&5
 
11759
sed 's/^/| /' conftest.$ac_ext >&5
 
11760
 
 
11761
ac_header_compiler=no
 
11762
fi
 
11763
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11764
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11765
echo "${ECHO_T}$ac_header_compiler" >&6
 
11766
 
 
11767
# Is the header present?
 
11768
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
11769
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
11770
cat >conftest.$ac_ext <<_ACEOF
 
11771
/* confdefs.h.  */
 
11772
_ACEOF
 
11773
cat confdefs.h >>conftest.$ac_ext
 
11774
cat >>conftest.$ac_ext <<_ACEOF
 
11775
/* end confdefs.h.  */
 
11776
#include <$ac_header>
 
11777
_ACEOF
 
11778
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5004
11779
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5005
11780
  ac_status=$?
5006
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
11781
  grep -v '^ *+' conftest.er1 >conftest.err
5007
11782
  rm -f conftest.er1
5008
11783
  cat conftest.err >&5
5009
 
  echo "$as_me:5009: \$? = $ac_status" >&5
 
11784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010
11785
  (exit $ac_status); } >/dev/null; then
5011
11786
  if test -s conftest.err; then
5012
11787
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11788
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5013
11789
  else
5014
11790
    ac_cpp_err=
5015
11791
  fi
5017
11793
  ac_cpp_err=yes
5018
11794
fi
5019
11795
if test -z "$ac_cpp_err"; then
5020
 
  eval "$ac_ac_Header=yes"
 
11796
  ac_header_preproc=yes
5021
11797
else
5022
11798
  echo "$as_me: failed program was:" >&5
5023
 
  cat conftest.$ac_ext >&5
5024
 
  eval "$ac_ac_Header=no"
 
11799
sed 's/^/| /' conftest.$ac_ext >&5
 
11800
 
 
11801
  ac_header_preproc=no
5025
11802
fi
5026
11803
rm -f conftest.err conftest.$ac_ext
5027
 
fi
5028
 
echo "$as_me:5028: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5029
 
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5030
 
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5031
 
  cat >>confdefs.h <<EOF
5032
 
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5033
 
EOF
5034
 
 
5035
 
fi
 
11804
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11805
echo "${ECHO_T}$ac_header_preproc" >&6
 
11806
 
 
11807
# So?  What about this header?
 
11808
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11809
  yes:no: )
 
11810
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
11811
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11812
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
11813
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
11814
    ac_header_preproc=yes
 
11815
    ;;
 
11816
  no:yes:* )
 
11817
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
11818
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
11819
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
11820
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
11821
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
11822
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
11823
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
11824
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11825
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
11826
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
11827
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
11828
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
11829
    (
 
11830
      cat <<\_ASBOX
 
11831
## ------------------------------ ##
 
11832
## Report this to the ntp lists.  ##
 
11833
## ------------------------------ ##
 
11834
_ASBOX
 
11835
    ) |
 
11836
      sed "s/^/$as_me: WARNING:     /" >&2
 
11837
    ;;
 
11838
esac
 
11839
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11840
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11841
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11842
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11843
else
 
11844
  eval "$as_ac_Header=\$ac_header_preproc"
 
11845
fi
 
11846
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11847
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11848
 
 
11849
fi
 
11850
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11851
  cat >>confdefs.h <<_ACEOF
 
11852
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11853
_ACEOF
 
11854
 
 
11855
fi
 
11856
 
5036
11857
done
5037
11858
 
5038
11859
fi
5039
11860
rm -f conftest*
5040
11861
 
 
11862
 
 
11863
 
 
11864
 
 
11865
 
 
11866
 
5041
11867
for ac_header in sys/timers.h sys/timex.h sys/tpro.h sys/types.h sys/wait.h
5042
11868
do
5043
 
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5044
 
echo "$as_me:5044: checking for $ac_header" >&5
 
11869
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11870
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11871
  echo "$as_me:$LINENO: checking for $ac_header" >&5
5045
11872
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5046
 
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
 
11873
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5047
11874
  echo $ECHO_N "(cached) $ECHO_C" >&6
5048
 
else
5049
 
  cat >conftest.$ac_ext <<_ACEOF
5050
 
#line 5050 "configure"
5051
 
#include "confdefs.h"
5052
 
#include <$ac_header>
5053
 
_ACEOF
5054
 
if { (eval echo "$as_me:5054: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11875
fi
 
11876
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11877
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11878
else
 
11879
  # Is the header compilable?
 
11880
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
11881
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
11882
cat >conftest.$ac_ext <<_ACEOF
 
11883
/* confdefs.h.  */
 
11884
_ACEOF
 
11885
cat confdefs.h >>conftest.$ac_ext
 
11886
cat >>conftest.$ac_ext <<_ACEOF
 
11887
/* end confdefs.h.  */
 
11888
$ac_includes_default
 
11889
#include <$ac_header>
 
11890
_ACEOF
 
11891
rm -f conftest.$ac_objext
 
11892
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11893
  (eval $ac_compile) 2>conftest.er1
 
11894
  ac_status=$?
 
11895
  grep -v '^ *+' conftest.er1 >conftest.err
 
11896
  rm -f conftest.er1
 
11897
  cat conftest.err >&5
 
11898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11899
  (exit $ac_status); } &&
 
11900
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11901
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11902
  (eval $ac_try) 2>&5
 
11903
  ac_status=$?
 
11904
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11905
  (exit $ac_status); }; } &&
 
11906
         { ac_try='test -s conftest.$ac_objext'
 
11907
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11908
  (eval $ac_try) 2>&5
 
11909
  ac_status=$?
 
11910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11911
  (exit $ac_status); }; }; then
 
11912
  ac_header_compiler=yes
 
11913
else
 
11914
  echo "$as_me: failed program was:" >&5
 
11915
sed 's/^/| /' conftest.$ac_ext >&5
 
11916
 
 
11917
ac_header_compiler=no
 
11918
fi
 
11919
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11920
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11921
echo "${ECHO_T}$ac_header_compiler" >&6
 
11922
 
 
11923
# Is the header present?
 
11924
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
11925
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
11926
cat >conftest.$ac_ext <<_ACEOF
 
11927
/* confdefs.h.  */
 
11928
_ACEOF
 
11929
cat confdefs.h >>conftest.$ac_ext
 
11930
cat >>conftest.$ac_ext <<_ACEOF
 
11931
/* end confdefs.h.  */
 
11932
#include <$ac_header>
 
11933
_ACEOF
 
11934
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5055
11935
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5056
11936
  ac_status=$?
5057
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
11937
  grep -v '^ *+' conftest.er1 >conftest.err
5058
11938
  rm -f conftest.er1
5059
11939
  cat conftest.err >&5
5060
 
  echo "$as_me:5060: \$? = $ac_status" >&5
 
11940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061
11941
  (exit $ac_status); } >/dev/null; then
5062
11942
  if test -s conftest.err; then
5063
11943
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11944
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5064
11945
  else
5065
11946
    ac_cpp_err=
5066
11947
  fi
5068
11949
  ac_cpp_err=yes
5069
11950
fi
5070
11951
if test -z "$ac_cpp_err"; then
5071
 
  eval "$ac_ac_Header=yes"
 
11952
  ac_header_preproc=yes
5072
11953
else
5073
11954
  echo "$as_me: failed program was:" >&5
5074
 
  cat conftest.$ac_ext >&5
5075
 
  eval "$ac_ac_Header=no"
 
11955
sed 's/^/| /' conftest.$ac_ext >&5
 
11956
 
 
11957
  ac_header_preproc=no
5076
11958
fi
5077
11959
rm -f conftest.err conftest.$ac_ext
5078
 
fi
5079
 
echo "$as_me:5079: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5080
 
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5081
 
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5082
 
  cat >>confdefs.h <<EOF
5083
 
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5084
 
EOF
5085
 
 
5086
 
fi
 
11960
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11961
echo "${ECHO_T}$ac_header_preproc" >&6
 
11962
 
 
11963
# So?  What about this header?
 
11964
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11965
  yes:no: )
 
11966
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
11967
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11968
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
11969
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
11970
    ac_header_preproc=yes
 
11971
    ;;
 
11972
  no:yes:* )
 
11973
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
11974
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
11975
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
11976
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
11977
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
11978
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
11979
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
11980
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11981
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
11982
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
11983
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
11984
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
11985
    (
 
11986
      cat <<\_ASBOX
 
11987
## ------------------------------ ##
 
11988
## Report this to the ntp lists.  ##
 
11989
## ------------------------------ ##
 
11990
_ASBOX
 
11991
    ) |
 
11992
      sed "s/^/$as_me: WARNING:     /" >&2
 
11993
    ;;
 
11994
esac
 
11995
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11996
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11997
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11998
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11999
else
 
12000
  eval "$as_ac_Header=\$ac_header_preproc"
 
12001
fi
 
12002
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
12003
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12004
 
 
12005
fi
 
12006
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12007
  cat >>confdefs.h <<_ACEOF
 
12008
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12009
_ACEOF
 
12010
 
 
12011
fi
 
12012
 
5087
12013
done
5088
12014
 
5089
 
echo "$as_me:5089: checking whether time.h and sys/time.h may both be included" >&5
 
12015
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5090
12016
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5091
12017
if test "${ac_cv_header_time+set}" = set; then
5092
12018
  echo $ECHO_N "(cached) $ECHO_C" >&6
5093
12019
else
5094
12020
  cat >conftest.$ac_ext <<_ACEOF
5095
 
#line 5095 "configure"
5096
 
#include "confdefs.h"
 
12021
/* confdefs.h.  */
 
12022
_ACEOF
 
12023
cat confdefs.h >>conftest.$ac_ext
 
12024
cat >>conftest.$ac_ext <<_ACEOF
 
12025
/* end confdefs.h.  */
5097
12026
#include <sys/types.h>
5098
12027
#include <sys/time.h>
5099
12028
#include <time.h>
5101
12030
int
5102
12031
main ()
5103
12032
{
5104
 
struct tm *tp;
 
12033
if ((struct tm *) 0)
 
12034
return 0;
5105
12035
  ;
5106
12036
  return 0;
5107
12037
}
5108
12038
_ACEOF
5109
12039
rm -f conftest.$ac_objext
5110
 
if { (eval echo "$as_me:5110: \"$ac_compile\"") >&5
5111
 
  (eval $ac_compile) 2>&5
 
12040
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12041
  (eval $ac_compile) 2>conftest.er1
5112
12042
  ac_status=$?
5113
 
  echo "$as_me:5113: \$? = $ac_status" >&5
 
12043
  grep -v '^ *+' conftest.er1 >conftest.err
 
12044
  rm -f conftest.er1
 
12045
  cat conftest.err >&5
 
12046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114
12047
  (exit $ac_status); } &&
5115
 
         { ac_try='test -s conftest.$ac_objext'
5116
 
  { (eval echo "$as_me:5116: \"$ac_try\"") >&5
5117
 
  (eval $ac_try) 2>&5
5118
 
  ac_status=$?
5119
 
  echo "$as_me:5119: \$? = $ac_status" >&5
 
12048
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12049
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12050
  (eval $ac_try) 2>&5
 
12051
  ac_status=$?
 
12052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12053
  (exit $ac_status); }; } &&
 
12054
         { ac_try='test -s conftest.$ac_objext'
 
12055
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12056
  (eval $ac_try) 2>&5
 
12057
  ac_status=$?
 
12058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120
12059
  (exit $ac_status); }; }; then
5121
12060
  ac_cv_header_time=yes
5122
12061
else
5123
12062
  echo "$as_me: failed program was:" >&5
5124
 
cat conftest.$ac_ext >&5
 
12063
sed 's/^/| /' conftest.$ac_ext >&5
 
12064
 
5125
12065
ac_cv_header_time=no
5126
12066
fi
5127
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
12067
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5128
12068
fi
5129
 
echo "$as_me:5129: result: $ac_cv_header_time" >&5
 
12069
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5130
12070
echo "${ECHO_T}$ac_cv_header_time" >&6
5131
12071
if test $ac_cv_header_time = yes; then
5132
12072
 
5133
 
cat >>confdefs.h <<\EOF
 
12073
cat >>confdefs.h <<\_ACEOF
5134
12074
#define TIME_WITH_SYS_TIME 1
5135
 
EOF
 
12075
_ACEOF
5136
12076
 
5137
12077
fi
5138
12078
 
5139
 
case "$target" in
 
12079
case "$host" in
5140
12080
*-convex-*)
5141
12081
 
 
12082
 
5142
12083
for ac_header in /sys/sync/queue.h /sys/sync/sema.h
5143
12084
do
5144
 
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5145
 
echo "$as_me:5145: checking for $ac_header" >&5
 
12085
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12086
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
12087
  echo "$as_me:$LINENO: checking for $ac_header" >&5
5146
12088
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5147
 
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
 
12089
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5148
12090
  echo $ECHO_N "(cached) $ECHO_C" >&6
5149
 
else
5150
 
  cat >conftest.$ac_ext <<_ACEOF
5151
 
#line 5151 "configure"
5152
 
#include "confdefs.h"
5153
 
#include <$ac_header>
5154
 
_ACEOF
5155
 
if { (eval echo "$as_me:5155: \"$ac_cpp conftest.$ac_ext\"") >&5
 
12091
fi
 
12092
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
12093
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12094
else
 
12095
  # Is the header compilable?
 
12096
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
12097
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
12098
cat >conftest.$ac_ext <<_ACEOF
 
12099
/* confdefs.h.  */
 
12100
_ACEOF
 
12101
cat confdefs.h >>conftest.$ac_ext
 
12102
cat >>conftest.$ac_ext <<_ACEOF
 
12103
/* end confdefs.h.  */
 
12104
$ac_includes_default
 
12105
#include <$ac_header>
 
12106
_ACEOF
 
12107
rm -f conftest.$ac_objext
 
12108
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12109
  (eval $ac_compile) 2>conftest.er1
 
12110
  ac_status=$?
 
12111
  grep -v '^ *+' conftest.er1 >conftest.err
 
12112
  rm -f conftest.er1
 
12113
  cat conftest.err >&5
 
12114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12115
  (exit $ac_status); } &&
 
12116
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12117
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12118
  (eval $ac_try) 2>&5
 
12119
  ac_status=$?
 
12120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12121
  (exit $ac_status); }; } &&
 
12122
         { ac_try='test -s conftest.$ac_objext'
 
12123
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12124
  (eval $ac_try) 2>&5
 
12125
  ac_status=$?
 
12126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12127
  (exit $ac_status); }; }; then
 
12128
  ac_header_compiler=yes
 
12129
else
 
12130
  echo "$as_me: failed program was:" >&5
 
12131
sed 's/^/| /' conftest.$ac_ext >&5
 
12132
 
 
12133
ac_header_compiler=no
 
12134
fi
 
12135
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12136
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12137
echo "${ECHO_T}$ac_header_compiler" >&6
 
12138
 
 
12139
# Is the header present?
 
12140
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
12141
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
12142
cat >conftest.$ac_ext <<_ACEOF
 
12143
/* confdefs.h.  */
 
12144
_ACEOF
 
12145
cat confdefs.h >>conftest.$ac_ext
 
12146
cat >>conftest.$ac_ext <<_ACEOF
 
12147
/* end confdefs.h.  */
 
12148
#include <$ac_header>
 
12149
_ACEOF
 
12150
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5156
12151
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5157
12152
  ac_status=$?
5158
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
12153
  grep -v '^ *+' conftest.er1 >conftest.err
5159
12154
  rm -f conftest.er1
5160
12155
  cat conftest.err >&5
5161
 
  echo "$as_me:5161: \$? = $ac_status" >&5
 
12156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162
12157
  (exit $ac_status); } >/dev/null; then
5163
12158
  if test -s conftest.err; then
5164
12159
    ac_cpp_err=$ac_c_preproc_warn_flag
 
12160
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5165
12161
  else
5166
12162
    ac_cpp_err=
5167
12163
  fi
5169
12165
  ac_cpp_err=yes
5170
12166
fi
5171
12167
if test -z "$ac_cpp_err"; then
5172
 
  eval "$ac_ac_Header=yes"
 
12168
  ac_header_preproc=yes
5173
12169
else
5174
12170
  echo "$as_me: failed program was:" >&5
5175
 
  cat conftest.$ac_ext >&5
5176
 
  eval "$ac_ac_Header=no"
 
12171
sed 's/^/| /' conftest.$ac_ext >&5
 
12172
 
 
12173
  ac_header_preproc=no
5177
12174
fi
5178
12175
rm -f conftest.err conftest.$ac_ext
5179
 
fi
5180
 
echo "$as_me:5180: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5181
 
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5182
 
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5183
 
  cat >>confdefs.h <<EOF
5184
 
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5185
 
EOF
5186
 
 
5187
 
fi
 
12176
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12177
echo "${ECHO_T}$ac_header_preproc" >&6
 
12178
 
 
12179
# So?  What about this header?
 
12180
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
12181
  yes:no: )
 
12182
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
12183
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12184
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
12185
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
12186
    ac_header_preproc=yes
 
12187
    ;;
 
12188
  no:yes:* )
 
12189
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
12190
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
12191
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
12192
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
12193
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
12194
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
12195
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
12196
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12197
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
12198
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
12199
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
12200
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
12201
    (
 
12202
      cat <<\_ASBOX
 
12203
## ------------------------------ ##
 
12204
## Report this to the ntp lists.  ##
 
12205
## ------------------------------ ##
 
12206
_ASBOX
 
12207
    ) |
 
12208
      sed "s/^/$as_me: WARNING:     /" >&2
 
12209
    ;;
 
12210
esac
 
12211
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12212
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
12213
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
12214
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12215
else
 
12216
  eval "$as_ac_Header=\$ac_header_preproc"
 
12217
fi
 
12218
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
12219
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12220
 
 
12221
fi
 
12222
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12223
  cat >>confdefs.h <<_ACEOF
 
12224
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12225
_ACEOF
 
12226
 
 
12227
fi
 
12228
 
5188
12229
done
5189
12230
 
5190
12231
  ;;
5191
12232
*-*-bsdi*)
5192
12233
 
 
12234
 
 
12235
 
5193
12236
for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
5194
12237
do
5195
 
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5196
 
echo "$as_me:5196: checking for $ac_header" >&5
 
12238
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12239
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
12240
  echo "$as_me:$LINENO: checking for $ac_header" >&5
5197
12241
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5198
 
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
 
12242
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5199
12243
  echo $ECHO_N "(cached) $ECHO_C" >&6
5200
 
else
5201
 
  cat >conftest.$ac_ext <<_ACEOF
5202
 
#line 5202 "configure"
5203
 
#include "confdefs.h"
5204
 
#include <$ac_header>
5205
 
_ACEOF
5206
 
if { (eval echo "$as_me:5206: \"$ac_cpp conftest.$ac_ext\"") >&5
 
12244
fi
 
12245
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
12246
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12247
else
 
12248
  # Is the header compilable?
 
12249
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
12250
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
12251
cat >conftest.$ac_ext <<_ACEOF
 
12252
/* confdefs.h.  */
 
12253
_ACEOF
 
12254
cat confdefs.h >>conftest.$ac_ext
 
12255
cat >>conftest.$ac_ext <<_ACEOF
 
12256
/* end confdefs.h.  */
 
12257
$ac_includes_default
 
12258
#include <$ac_header>
 
12259
_ACEOF
 
12260
rm -f conftest.$ac_objext
 
12261
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12262
  (eval $ac_compile) 2>conftest.er1
 
12263
  ac_status=$?
 
12264
  grep -v '^ *+' conftest.er1 >conftest.err
 
12265
  rm -f conftest.er1
 
12266
  cat conftest.err >&5
 
12267
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12268
  (exit $ac_status); } &&
 
12269
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12270
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12271
  (eval $ac_try) 2>&5
 
12272
  ac_status=$?
 
12273
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12274
  (exit $ac_status); }; } &&
 
12275
         { ac_try='test -s conftest.$ac_objext'
 
12276
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12277
  (eval $ac_try) 2>&5
 
12278
  ac_status=$?
 
12279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12280
  (exit $ac_status); }; }; then
 
12281
  ac_header_compiler=yes
 
12282
else
 
12283
  echo "$as_me: failed program was:" >&5
 
12284
sed 's/^/| /' conftest.$ac_ext >&5
 
12285
 
 
12286
ac_header_compiler=no
 
12287
fi
 
12288
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12289
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12290
echo "${ECHO_T}$ac_header_compiler" >&6
 
12291
 
 
12292
# Is the header present?
 
12293
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
12294
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
12295
cat >conftest.$ac_ext <<_ACEOF
 
12296
/* confdefs.h.  */
 
12297
_ACEOF
 
12298
cat confdefs.h >>conftest.$ac_ext
 
12299
cat >>conftest.$ac_ext <<_ACEOF
 
12300
/* end confdefs.h.  */
 
12301
#include <$ac_header>
 
12302
_ACEOF
 
12303
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5207
12304
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5208
12305
  ac_status=$?
5209
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
12306
  grep -v '^ *+' conftest.er1 >conftest.err
5210
12307
  rm -f conftest.er1
5211
12308
  cat conftest.err >&5
5212
 
  echo "$as_me:5212: \$? = $ac_status" >&5
 
12309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213
12310
  (exit $ac_status); } >/dev/null; then
5214
12311
  if test -s conftest.err; then
5215
12312
    ac_cpp_err=$ac_c_preproc_warn_flag
 
12313
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5216
12314
  else
5217
12315
    ac_cpp_err=
5218
12316
  fi
5220
12318
  ac_cpp_err=yes
5221
12319
fi
5222
12320
if test -z "$ac_cpp_err"; then
5223
 
  eval "$ac_ac_Header=yes"
 
12321
  ac_header_preproc=yes
5224
12322
else
5225
12323
  echo "$as_me: failed program was:" >&5
5226
 
  cat conftest.$ac_ext >&5
5227
 
  eval "$ac_ac_Header=no"
 
12324
sed 's/^/| /' conftest.$ac_ext >&5
 
12325
 
 
12326
  ac_header_preproc=no
5228
12327
fi
5229
12328
rm -f conftest.err conftest.$ac_ext
5230
 
fi
5231
 
echo "$as_me:5231: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5232
 
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5233
 
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5234
 
  cat >>confdefs.h <<EOF
5235
 
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5236
 
EOF
5237
 
 
5238
 
fi
 
12329
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12330
echo "${ECHO_T}$ac_header_preproc" >&6
 
12331
 
 
12332
# So?  What about this header?
 
12333
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
12334
  yes:no: )
 
12335
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
12336
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12337
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
12338
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
12339
    ac_header_preproc=yes
 
12340
    ;;
 
12341
  no:yes:* )
 
12342
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
12343
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
12344
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
12345
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
12346
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
12347
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
12348
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
12349
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12350
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
12351
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
12352
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
12353
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
12354
    (
 
12355
      cat <<\_ASBOX
 
12356
## ------------------------------ ##
 
12357
## Report this to the ntp lists.  ##
 
12358
## ------------------------------ ##
 
12359
_ASBOX
 
12360
    ) |
 
12361
      sed "s/^/$as_me: WARNING:     /" >&2
 
12362
    ;;
 
12363
esac
 
12364
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12365
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
12366
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
12367
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12368
else
 
12369
  eval "$as_ac_Header=\$ac_header_preproc"
 
12370
fi
 
12371
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
12372
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12373
 
 
12374
fi
 
12375
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12376
  cat >>confdefs.h <<_ACEOF
 
12377
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12378
_ACEOF
 
12379
 
 
12380
fi
 
12381
 
5239
12382
done
5240
12383
 
5241
12384
  ;;
5242
12385
esac
5243
12386
 
5244
 
echo "$as_me:5244: checking for nlist.h" >&5
 
12387
if test "${ac_cv_header_nlist_h+set}" = set; then
 
12388
  echo "$as_me:$LINENO: checking for nlist.h" >&5
5245
12389
echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
5246
12390
if test "${ac_cv_header_nlist_h+set}" = set; then
5247
12391
  echo $ECHO_N "(cached) $ECHO_C" >&6
5248
 
else
5249
 
  cat >conftest.$ac_ext <<_ACEOF
5250
 
#line 5250 "configure"
5251
 
#include "confdefs.h"
5252
 
#include <nlist.h>
5253
 
_ACEOF
5254
 
if { (eval echo "$as_me:5254: \"$ac_cpp conftest.$ac_ext\"") >&5
 
12392
fi
 
12393
echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
 
12394
echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
 
12395
else
 
12396
  # Is the header compilable?
 
12397
echo "$as_me:$LINENO: checking nlist.h usability" >&5
 
12398
echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6
 
12399
cat >conftest.$ac_ext <<_ACEOF
 
12400
/* confdefs.h.  */
 
12401
_ACEOF
 
12402
cat confdefs.h >>conftest.$ac_ext
 
12403
cat >>conftest.$ac_ext <<_ACEOF
 
12404
/* end confdefs.h.  */
 
12405
$ac_includes_default
 
12406
#include <nlist.h>
 
12407
_ACEOF
 
12408
rm -f conftest.$ac_objext
 
12409
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12410
  (eval $ac_compile) 2>conftest.er1
 
12411
  ac_status=$?
 
12412
  grep -v '^ *+' conftest.er1 >conftest.err
 
12413
  rm -f conftest.er1
 
12414
  cat conftest.err >&5
 
12415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12416
  (exit $ac_status); } &&
 
12417
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12418
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12419
  (eval $ac_try) 2>&5
 
12420
  ac_status=$?
 
12421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12422
  (exit $ac_status); }; } &&
 
12423
         { ac_try='test -s conftest.$ac_objext'
 
12424
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12425
  (eval $ac_try) 2>&5
 
12426
  ac_status=$?
 
12427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12428
  (exit $ac_status); }; }; then
 
12429
  ac_header_compiler=yes
 
12430
else
 
12431
  echo "$as_me: failed program was:" >&5
 
12432
sed 's/^/| /' conftest.$ac_ext >&5
 
12433
 
 
12434
ac_header_compiler=no
 
12435
fi
 
12436
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12437
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12438
echo "${ECHO_T}$ac_header_compiler" >&6
 
12439
 
 
12440
# Is the header present?
 
12441
echo "$as_me:$LINENO: checking nlist.h presence" >&5
 
12442
echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6
 
12443
cat >conftest.$ac_ext <<_ACEOF
 
12444
/* confdefs.h.  */
 
12445
_ACEOF
 
12446
cat confdefs.h >>conftest.$ac_ext
 
12447
cat >>conftest.$ac_ext <<_ACEOF
 
12448
/* end confdefs.h.  */
 
12449
#include <nlist.h>
 
12450
_ACEOF
 
12451
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5255
12452
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5256
12453
  ac_status=$?
5257
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
12454
  grep -v '^ *+' conftest.er1 >conftest.err
5258
12455
  rm -f conftest.er1
5259
12456
  cat conftest.err >&5
5260
 
  echo "$as_me:5260: \$? = $ac_status" >&5
 
12457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261
12458
  (exit $ac_status); } >/dev/null; then
5262
12459
  if test -s conftest.err; then
5263
12460
    ac_cpp_err=$ac_c_preproc_warn_flag
 
12461
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5264
12462
  else
5265
12463
    ac_cpp_err=
5266
12464
  fi
5268
12466
  ac_cpp_err=yes
5269
12467
fi
5270
12468
if test -z "$ac_cpp_err"; then
5271
 
  ac_cv_header_nlist_h=yes
 
12469
  ac_header_preproc=yes
5272
12470
else
5273
12471
  echo "$as_me: failed program was:" >&5
5274
 
  cat conftest.$ac_ext >&5
5275
 
  ac_cv_header_nlist_h=no
 
12472
sed 's/^/| /' conftest.$ac_ext >&5
 
12473
 
 
12474
  ac_header_preproc=no
5276
12475
fi
5277
12476
rm -f conftest.err conftest.$ac_ext
 
12477
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12478
echo "${ECHO_T}$ac_header_preproc" >&6
 
12479
 
 
12480
# So?  What about this header?
 
12481
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
12482
  yes:no: )
 
12483
    { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
12484
echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12485
    { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's result" >&5
 
12486
echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result" >&2;}
 
12487
    ac_header_preproc=yes
 
12488
    ;;
 
12489
  no:yes:* )
 
12490
    { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5
 
12491
echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;}
 
12492
    { echo "$as_me:$LINENO: WARNING: nlist.h:     check for missing prerequisite headers?" >&5
 
12493
echo "$as_me: WARNING: nlist.h:     check for missing prerequisite headers?" >&2;}
 
12494
    { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5
 
12495
echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;}
 
12496
    { echo "$as_me:$LINENO: WARNING: nlist.h:     section \"Present But Cannot Be Compiled\"" >&5
 
12497
echo "$as_me: WARNING: nlist.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12498
    { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
 
12499
echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;}
 
12500
    { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will take precedence" >&5
 
12501
echo "$as_me: WARNING: nlist.h: in the future, the compiler will take precedence" >&2;}
 
12502
    (
 
12503
      cat <<\_ASBOX
 
12504
## ------------------------------ ##
 
12505
## Report this to the ntp lists.  ##
 
12506
## ------------------------------ ##
 
12507
_ASBOX
 
12508
    ) |
 
12509
      sed "s/^/$as_me: WARNING:     /" >&2
 
12510
    ;;
 
12511
esac
 
12512
echo "$as_me:$LINENO: checking for nlist.h" >&5
 
12513
echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
 
12514
if test "${ac_cv_header_nlist_h+set}" = set; then
 
12515
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12516
else
 
12517
  ac_cv_header_nlist_h=$ac_header_preproc
5278
12518
fi
5279
 
echo "$as_me:5279: result: $ac_cv_header_nlist_h" >&5
 
12519
echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
5280
12520
echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
 
12521
 
 
12522
fi
5281
12523
if test $ac_cv_header_nlist_h = yes; then
5282
 
  cat >>confdefs.h <<\EOF
 
12524
 
 
12525
cat >>confdefs.h <<\_ACEOF
5283
12526
#define NLIST_STRUCT 1
5284
 
EOF
 
12527
_ACEOF
5285
12528
 
5286
 
echo "$as_me:5286: checking for n_un in struct nlist" >&5
 
12529
echo "$as_me:$LINENO: checking for n_un in struct nlist" >&5
5287
12530
echo $ECHO_N "checking for n_un in struct nlist... $ECHO_C" >&6
5288
12531
if test "${ac_cv_struct_nlist_n_un+set}" = set; then
5289
12532
  echo $ECHO_N "(cached) $ECHO_C" >&6
5290
12533
else
5291
12534
  cat >conftest.$ac_ext <<_ACEOF
5292
 
#line 5292 "configure"
5293
 
#include "confdefs.h"
 
12535
/* confdefs.h.  */
 
12536
_ACEOF
 
12537
cat confdefs.h >>conftest.$ac_ext
 
12538
cat >>conftest.$ac_ext <<_ACEOF
 
12539
/* end confdefs.h.  */
5294
12540
#include <nlist.h>
5295
12541
int
5296
12542
main ()
5301
12547
}
5302
12548
_ACEOF
5303
12549
rm -f conftest.$ac_objext
5304
 
if { (eval echo "$as_me:5304: \"$ac_compile\"") >&5
5305
 
  (eval $ac_compile) 2>&5
5306
 
  ac_status=$?
5307
 
  echo "$as_me:5307: \$? = $ac_status" >&5
5308
 
  (exit $ac_status); } &&
5309
 
         { ac_try='test -s conftest.$ac_objext'
5310
 
  { (eval echo "$as_me:5310: \"$ac_try\"") >&5
5311
 
  (eval $ac_try) 2>&5
5312
 
  ac_status=$?
5313
 
  echo "$as_me:5313: \$? = $ac_status" >&5
5314
 
  (exit $ac_status); }; }; then
5315
 
  ac_cv_struct_nlist_n_un=yes
5316
 
else
5317
 
  echo "$as_me: failed program was:" >&5
5318
 
cat conftest.$ac_ext >&5
5319
 
ac_cv_struct_nlist_n_un=no
5320
 
fi
5321
 
rm -f conftest.$ac_objext conftest.$ac_ext
5322
 
fi
5323
 
echo "$as_me:5323: result: $ac_cv_struct_nlist_n_un" >&5
5324
 
echo "${ECHO_T}$ac_cv_struct_nlist_n_un" >&6
5325
 
if test $ac_cv_struct_nlist_n_un = yes; then
5326
 
  cat >>confdefs.h <<\EOF
5327
 
#define NLIST_NAME_UNION 1
5328
 
EOF
5329
 
 
5330
 
fi
5331
 
 
5332
 
fi
5333
 
 
5334
 
echo "$as_me:5334: checking for basic volatile support" >&5
 
12550
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12551
  (eval $ac_compile) 2>conftest.er1
 
12552
  ac_status=$?
 
12553
  grep -v '^ *+' conftest.er1 >conftest.err
 
12554
  rm -f conftest.er1
 
12555
  cat conftest.err >&5
 
12556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12557
  (exit $ac_status); } &&
 
12558
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12559
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12560
  (eval $ac_try) 2>&5
 
12561
  ac_status=$?
 
12562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12563
  (exit $ac_status); }; } &&
 
12564
         { ac_try='test -s conftest.$ac_objext'
 
12565
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12566
  (eval $ac_try) 2>&5
 
12567
  ac_status=$?
 
12568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12569
  (exit $ac_status); }; }; then
 
12570
  ac_cv_struct_nlist_n_un=yes
 
12571
else
 
12572
  echo "$as_me: failed program was:" >&5
 
12573
sed 's/^/| /' conftest.$ac_ext >&5
 
12574
 
 
12575
ac_cv_struct_nlist_n_un=no
 
12576
fi
 
12577
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12578
fi
 
12579
echo "$as_me:$LINENO: result: $ac_cv_struct_nlist_n_un" >&5
 
12580
echo "${ECHO_T}$ac_cv_struct_nlist_n_un" >&6
 
12581
if test $ac_cv_struct_nlist_n_un = yes; then
 
12582
 
 
12583
cat >>confdefs.h <<\_ACEOF
 
12584
#define NLIST_NAME_UNION 1
 
12585
_ACEOF
 
12586
 
 
12587
fi
 
12588
 
 
12589
fi
 
12590
 
 
12591
 
 
12592
if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
 
12593
  echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
 
12594
echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6
 
12595
if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
 
12596
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12597
fi
 
12598
echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
 
12599
echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6
 
12600
else
 
12601
  # Is the header compilable?
 
12602
echo "$as_me:$LINENO: checking libelf/nlist.h usability" >&5
 
12603
echo $ECHO_N "checking libelf/nlist.h usability... $ECHO_C" >&6
 
12604
cat >conftest.$ac_ext <<_ACEOF
 
12605
/* confdefs.h.  */
 
12606
_ACEOF
 
12607
cat confdefs.h >>conftest.$ac_ext
 
12608
cat >>conftest.$ac_ext <<_ACEOF
 
12609
/* end confdefs.h.  */
 
12610
$ac_includes_default
 
12611
#include <libelf/nlist.h>
 
12612
_ACEOF
 
12613
rm -f conftest.$ac_objext
 
12614
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12615
  (eval $ac_compile) 2>conftest.er1
 
12616
  ac_status=$?
 
12617
  grep -v '^ *+' conftest.er1 >conftest.err
 
12618
  rm -f conftest.er1
 
12619
  cat conftest.err >&5
 
12620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12621
  (exit $ac_status); } &&
 
12622
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12623
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12624
  (eval $ac_try) 2>&5
 
12625
  ac_status=$?
 
12626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12627
  (exit $ac_status); }; } &&
 
12628
         { ac_try='test -s conftest.$ac_objext'
 
12629
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12630
  (eval $ac_try) 2>&5
 
12631
  ac_status=$?
 
12632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12633
  (exit $ac_status); }; }; then
 
12634
  ac_header_compiler=yes
 
12635
else
 
12636
  echo "$as_me: failed program was:" >&5
 
12637
sed 's/^/| /' conftest.$ac_ext >&5
 
12638
 
 
12639
ac_header_compiler=no
 
12640
fi
 
12641
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12642
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12643
echo "${ECHO_T}$ac_header_compiler" >&6
 
12644
 
 
12645
# Is the header present?
 
12646
echo "$as_me:$LINENO: checking libelf/nlist.h presence" >&5
 
12647
echo $ECHO_N "checking libelf/nlist.h presence... $ECHO_C" >&6
 
12648
cat >conftest.$ac_ext <<_ACEOF
 
12649
/* confdefs.h.  */
 
12650
_ACEOF
 
12651
cat confdefs.h >>conftest.$ac_ext
 
12652
cat >>conftest.$ac_ext <<_ACEOF
 
12653
/* end confdefs.h.  */
 
12654
#include <libelf/nlist.h>
 
12655
_ACEOF
 
12656
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
12657
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
12658
  ac_status=$?
 
12659
  grep -v '^ *+' conftest.er1 >conftest.err
 
12660
  rm -f conftest.er1
 
12661
  cat conftest.err >&5
 
12662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12663
  (exit $ac_status); } >/dev/null; then
 
12664
  if test -s conftest.err; then
 
12665
    ac_cpp_err=$ac_c_preproc_warn_flag
 
12666
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
12667
  else
 
12668
    ac_cpp_err=
 
12669
  fi
 
12670
else
 
12671
  ac_cpp_err=yes
 
12672
fi
 
12673
if test -z "$ac_cpp_err"; then
 
12674
  ac_header_preproc=yes
 
12675
else
 
12676
  echo "$as_me: failed program was:" >&5
 
12677
sed 's/^/| /' conftest.$ac_ext >&5
 
12678
 
 
12679
  ac_header_preproc=no
 
12680
fi
 
12681
rm -f conftest.err conftest.$ac_ext
 
12682
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12683
echo "${ECHO_T}$ac_header_preproc" >&6
 
12684
 
 
12685
# So?  What about this header?
 
12686
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
12687
  yes:no: )
 
12688
    { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
12689
echo "$as_me: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12690
    { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&5
 
12691
echo "$as_me: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&2;}
 
12692
    ac_header_preproc=yes
 
12693
    ;;
 
12694
  no:yes:* )
 
12695
    { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: present but cannot be compiled" >&5
 
12696
echo "$as_me: WARNING: libelf/nlist.h: present but cannot be compiled" >&2;}
 
12697
    { echo "$as_me:$LINENO: WARNING: libelf/nlist.h:     check for missing prerequisite headers?" >&5
 
12698
echo "$as_me: WARNING: libelf/nlist.h:     check for missing prerequisite headers?" >&2;}
 
12699
    { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: see the Autoconf documentation" >&5
 
12700
echo "$as_me: WARNING: libelf/nlist.h: see the Autoconf documentation" >&2;}
 
12701
    { echo "$as_me:$LINENO: WARNING: libelf/nlist.h:     section \"Present But Cannot Be Compiled\"" >&5
 
12702
echo "$as_me: WARNING: libelf/nlist.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12703
    { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&5
 
12704
echo "$as_me: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&2;}
 
12705
    { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&5
 
12706
echo "$as_me: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&2;}
 
12707
    (
 
12708
      cat <<\_ASBOX
 
12709
## ------------------------------ ##
 
12710
## Report this to the ntp lists.  ##
 
12711
## ------------------------------ ##
 
12712
_ASBOX
 
12713
    ) |
 
12714
      sed "s/^/$as_me: WARNING:     /" >&2
 
12715
    ;;
 
12716
esac
 
12717
echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
 
12718
echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6
 
12719
if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
 
12720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12721
else
 
12722
  ac_cv_header_libelf_nlist_h=$ac_header_preproc
 
12723
fi
 
12724
echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
 
12725
echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6
 
12726
 
 
12727
fi
 
12728
if test $ac_cv_header_libelf_nlist_h = yes; then
 
12729
 
 
12730
cat >>confdefs.h <<\_ACEOF
 
12731
#define LIBELF_NLIST_STRUCT 1
 
12732
_ACEOF
 
12733
 
 
12734
echo "$as_me:$LINENO: checking for n_un in struct nlist" >&5
 
12735
echo $ECHO_N "checking for n_un in struct nlist... $ECHO_C" >&6
 
12736
if test "${ac_cv_struct_nlist_n_un+set}" = set; then
 
12737
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12738
else
 
12739
  cat >conftest.$ac_ext <<_ACEOF
 
12740
/* confdefs.h.  */
 
12741
_ACEOF
 
12742
cat confdefs.h >>conftest.$ac_ext
 
12743
cat >>conftest.$ac_ext <<_ACEOF
 
12744
/* end confdefs.h.  */
 
12745
#include <libelf/nlist.h>
 
12746
int
 
12747
main ()
 
12748
{
 
12749
struct nlist n; n.n_un.n_name = 0;
 
12750
  ;
 
12751
  return 0;
 
12752
}
 
12753
_ACEOF
 
12754
rm -f conftest.$ac_objext
 
12755
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12756
  (eval $ac_compile) 2>conftest.er1
 
12757
  ac_status=$?
 
12758
  grep -v '^ *+' conftest.er1 >conftest.err
 
12759
  rm -f conftest.er1
 
12760
  cat conftest.err >&5
 
12761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12762
  (exit $ac_status); } &&
 
12763
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12764
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12765
  (eval $ac_try) 2>&5
 
12766
  ac_status=$?
 
12767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12768
  (exit $ac_status); }; } &&
 
12769
         { ac_try='test -s conftest.$ac_objext'
 
12770
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12771
  (eval $ac_try) 2>&5
 
12772
  ac_status=$?
 
12773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12774
  (exit $ac_status); }; }; then
 
12775
  ac_cv_struct_nlist_n_un=yes
 
12776
else
 
12777
  echo "$as_me: failed program was:" >&5
 
12778
sed 's/^/| /' conftest.$ac_ext >&5
 
12779
 
 
12780
ac_cv_struct_nlist_n_un=no
 
12781
fi
 
12782
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12783
fi
 
12784
echo "$as_me:$LINENO: result: $ac_cv_struct_nlist_n_un" >&5
 
12785
echo "${ECHO_T}$ac_cv_struct_nlist_n_un" >&6
 
12786
if test $ac_cv_struct_nlist_n_un = yes; then
 
12787
 
 
12788
cat >>confdefs.h <<\_ACEOF
 
12789
#define NLIST_NAME_UNION 1
 
12790
_ACEOF
 
12791
 
 
12792
fi
 
12793
 
 
12794
fi
 
12795
 
 
12796
 
 
12797
 
 
12798
 
 
12799
for ac_header in resolv.h
 
12800
do
 
12801
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12802
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12803
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
12804
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
12805
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12806
else
 
12807
  cat >conftest.$ac_ext <<_ACEOF
 
12808
/* confdefs.h.  */
 
12809
_ACEOF
 
12810
cat confdefs.h >>conftest.$ac_ext
 
12811
cat >>conftest.$ac_ext <<_ACEOF
 
12812
/* end confdefs.h.  */
 
12813
#if HAVE_SYS_TYPES_H
 
12814
#include <sys/types.h>
 
12815
#endif
 
12816
#if HAVE_NETINET_IN_H
 
12817
#include <netinet/in.h>
 
12818
#endif
 
12819
#if HAVE_ARPA_NAMESER_H
 
12820
#include <arpa/nameser.h>
 
12821
#endif
 
12822
 
 
12823
 
 
12824
#include <$ac_header>
 
12825
_ACEOF
 
12826
rm -f conftest.$ac_objext
 
12827
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12828
  (eval $ac_compile) 2>conftest.er1
 
12829
  ac_status=$?
 
12830
  grep -v '^ *+' conftest.er1 >conftest.err
 
12831
  rm -f conftest.er1
 
12832
  cat conftest.err >&5
 
12833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12834
  (exit $ac_status); } &&
 
12835
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12836
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12837
  (eval $ac_try) 2>&5
 
12838
  ac_status=$?
 
12839
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12840
  (exit $ac_status); }; } &&
 
12841
         { ac_try='test -s conftest.$ac_objext'
 
12842
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12843
  (eval $ac_try) 2>&5
 
12844
  ac_status=$?
 
12845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12846
  (exit $ac_status); }; }; then
 
12847
  eval "$as_ac_Header=yes"
 
12848
else
 
12849
  echo "$as_me: failed program was:" >&5
 
12850
sed 's/^/| /' conftest.$ac_ext >&5
 
12851
 
 
12852
eval "$as_ac_Header=no"
 
12853
fi
 
12854
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12855
fi
 
12856
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
12857
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12858
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12859
  cat >>confdefs.h <<_ACEOF
 
12860
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12861
_ACEOF
 
12862
 
 
12863
fi
 
12864
 
 
12865
done
 
12866
 
 
12867
 
 
12868
echo "$as_me:$LINENO: checking for basic volatile support" >&5
5335
12869
echo $ECHO_N "checking for basic volatile support... $ECHO_C" >&6
5336
12870
if test "${ac_cv_c_volatile+set}" = set; then
5337
12871
  echo $ECHO_N "(cached) $ECHO_C" >&6
5338
12872
else
5339
12873
  cat >conftest.$ac_ext <<_ACEOF
5340
 
#line 5340 "configure"
5341
 
#include "confdefs.h"
 
12874
/* confdefs.h.  */
 
12875
_ACEOF
 
12876
cat confdefs.h >>conftest.$ac_ext
 
12877
cat >>conftest.$ac_ext <<_ACEOF
 
12878
/* end confdefs.h.  */
5342
12879
 
5343
12880
int
5344
12881
main ()
5350
12887
}
5351
12888
_ACEOF
5352
12889
rm -f conftest.$ac_objext
5353
 
if { (eval echo "$as_me:5353: \"$ac_compile\"") >&5
5354
 
  (eval $ac_compile) 2>&5
 
12890
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12891
  (eval $ac_compile) 2>conftest.er1
5355
12892
  ac_status=$?
5356
 
  echo "$as_me:5356: \$? = $ac_status" >&5
 
12893
  grep -v '^ *+' conftest.er1 >conftest.err
 
12894
  rm -f conftest.er1
 
12895
  cat conftest.err >&5
 
12896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357
12897
  (exit $ac_status); } &&
5358
 
         { ac_try='test -s conftest.$ac_objext'
5359
 
  { (eval echo "$as_me:5359: \"$ac_try\"") >&5
5360
 
  (eval $ac_try) 2>&5
5361
 
  ac_status=$?
5362
 
  echo "$as_me:5362: \$? = $ac_status" >&5
 
12898
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12899
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12900
  (eval $ac_try) 2>&5
 
12901
  ac_status=$?
 
12902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12903
  (exit $ac_status); }; } &&
 
12904
         { ac_try='test -s conftest.$ac_objext'
 
12905
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12906
  (eval $ac_try) 2>&5
 
12907
  ac_status=$?
 
12908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363
12909
  (exit $ac_status); }; }; then
5364
12910
  ac_cv_c_volatile=yes
5365
12911
else
5366
12912
  echo "$as_me: failed program was:" >&5
5367
 
cat conftest.$ac_ext >&5
 
12913
sed 's/^/| /' conftest.$ac_ext >&5
 
12914
 
5368
12915
ac_cv_c_volatile=no
5369
12916
fi
5370
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
12917
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5371
12918
 
5372
12919
fi
5373
 
echo "$as_me:5373: result: $ac_cv_c_volatile" >&5
 
12920
echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5374
12921
echo "${ECHO_T}$ac_cv_c_volatile" >&6
5375
12922
case "$ac_cv_c_volatile" in
5376
12923
 yes)
5377
12924
    ;;
5378
 
 *) cat >>confdefs.h <<\EOF
 
12925
 *)
 
12926
cat >>confdefs.h <<\_ACEOF
5379
12927
#define volatile
5380
 
EOF
 
12928
_ACEOF
5381
12929
 
5382
12930
    ;;
5383
12931
esac
5384
12932
 
5385
 
case "$target" in
 
12933
case "$host" in
5386
12934
 sparc-*-solaris2*)
5387
12935
    # Assume that solaris2 is Ansi C...
5388
12936
    ;;
5389
12937
 *)
5390
12938
 
5391
 
echo "$as_me:5391: checking for ${CC-cc} option to accept ANSI C" >&5
 
12939
 
 
12940
 
 
12941
echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
5392
12942
echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
5393
12943
if test "${am_cv_prog_cc_stdc+set}" = set; then
5394
12944
  echo $ECHO_N "(cached) $ECHO_C" >&6
5406
12956
do
5407
12957
  CC="$ac_save_CC $ac_arg"
5408
12958
  cat >conftest.$ac_ext <<_ACEOF
5409
 
#line 5409 "configure"
5410
 
#include "confdefs.h"
 
12959
/* confdefs.h.  */
 
12960
_ACEOF
 
12961
cat confdefs.h >>conftest.$ac_ext
 
12962
cat >>conftest.$ac_ext <<_ACEOF
 
12963
/* end confdefs.h.  */
5411
12964
#include <stdarg.h>
5412
12965
#include <stdio.h>
5413
12966
#include <sys/types.h>
5448
13001
}
5449
13002
_ACEOF
5450
13003
rm -f conftest.$ac_objext
5451
 
if { (eval echo "$as_me:5451: \"$ac_compile\"") >&5
5452
 
  (eval $ac_compile) 2>&5
 
13004
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13005
  (eval $ac_compile) 2>conftest.er1
5453
13006
  ac_status=$?
5454
 
  echo "$as_me:5454: \$? = $ac_status" >&5
 
13007
  grep -v '^ *+' conftest.er1 >conftest.err
 
13008
  rm -f conftest.er1
 
13009
  cat conftest.err >&5
 
13010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455
13011
  (exit $ac_status); } &&
5456
 
         { ac_try='test -s conftest.$ac_objext'
5457
 
  { (eval echo "$as_me:5457: \"$ac_try\"") >&5
5458
 
  (eval $ac_try) 2>&5
5459
 
  ac_status=$?
5460
 
  echo "$as_me:5460: \$? = $ac_status" >&5
 
13012
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13013
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13014
  (eval $ac_try) 2>&5
 
13015
  ac_status=$?
 
13016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13017
  (exit $ac_status); }; } &&
 
13018
         { ac_try='test -s conftest.$ac_objext'
 
13019
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13020
  (eval $ac_try) 2>&5
 
13021
  ac_status=$?
 
13022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461
13023
  (exit $ac_status); }; }; then
5462
13024
  am_cv_prog_cc_stdc="$ac_arg"; break
5463
13025
else
5464
13026
  echo "$as_me: failed program was:" >&5
5465
 
cat conftest.$ac_ext >&5
 
13027
sed 's/^/| /' conftest.$ac_ext >&5
 
13028
 
5466
13029
fi
5467
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
13030
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5468
13031
done
5469
13032
CC="$ac_save_CC"
5470
13033
 
5471
13034
fi
5472
13035
 
5473
13036
if test -z "$am_cv_prog_cc_stdc"; then
5474
 
  echo "$as_me:5474: result: none needed" >&5
 
13037
  echo "$as_me:$LINENO: result: none needed" >&5
5475
13038
echo "${ECHO_T}none needed" >&6
5476
13039
else
5477
 
  echo "$as_me:5477: result: $am_cv_prog_cc_stdc" >&5
 
13040
  echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
5478
13041
echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
5479
13042
fi
5480
13043
case "x$am_cv_prog_cc_stdc" in
5482
13045
  *) CC="$CC $am_cv_prog_cc_stdc" ;;
5483
13046
esac
5484
13047
 
5485
 
echo "$as_me:5485: checking for function prototypes" >&5
 
13048
 
 
13049
 
 
13050
echo "$as_me:$LINENO: checking for function prototypes" >&5
5486
13051
echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5487
13052
if test "$am_cv_prog_cc_stdc" != no; then
5488
 
  echo "$as_me:5488: result: yes" >&5
 
13053
  echo "$as_me:$LINENO: result: yes" >&5
5489
13054
echo "${ECHO_T}yes" >&6
5490
13055
 
5491
 
cat >>confdefs.h <<\EOF
 
13056
cat >>confdefs.h <<\_ACEOF
5492
13057
#define PROTOTYPES 1
5493
 
EOF
 
13058
_ACEOF
5494
13059
 
5495
13060
  U= ANSI2KNR=
5496
13061
else
5497
 
  echo "$as_me:5497: result: no" >&5
 
13062
  echo "$as_me:$LINENO: result: no" >&5
5498
13063
echo "${ECHO_T}no" >&6
5499
13064
  U=_ ANSI2KNR=./ansi2knr
5500
13065
fi
5501
13066
# Ensure some checks needed by ansi2knr itself.
5502
 
echo "$as_me:5502: checking for ANSI C header files" >&5
 
13067
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5503
13068
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5504
13069
if test "${ac_cv_header_stdc+set}" = set; then
5505
13070
  echo $ECHO_N "(cached) $ECHO_C" >&6
5506
13071
else
5507
13072
  cat >conftest.$ac_ext <<_ACEOF
5508
 
#line 5508 "configure"
5509
 
#include "confdefs.h"
 
13073
/* confdefs.h.  */
 
13074
_ACEOF
 
13075
cat confdefs.h >>conftest.$ac_ext
 
13076
cat >>conftest.$ac_ext <<_ACEOF
 
13077
/* end confdefs.h.  */
5510
13078
#include <stdlib.h>
5511
13079
#include <stdarg.h>
5512
13080
#include <string.h>
5513
13081
#include <float.h>
5514
13082
 
 
13083
int
 
13084
main ()
 
13085
{
 
13086
 
 
13087
  ;
 
13088
  return 0;
 
13089
}
5515
13090
_ACEOF
5516
 
if { (eval echo "$as_me:5516: \"$ac_cpp conftest.$ac_ext\"") >&5
5517
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
13091
rm -f conftest.$ac_objext
 
13092
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13093
  (eval $ac_compile) 2>conftest.er1
5518
13094
  ac_status=$?
5519
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
13095
  grep -v '^ *+' conftest.er1 >conftest.err
5520
13096
  rm -f conftest.er1
5521
13097
  cat conftest.err >&5
5522
 
  echo "$as_me:5522: \$? = $ac_status" >&5
5523
 
  (exit $ac_status); } >/dev/null; then
5524
 
  if test -s conftest.err; then
5525
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5526
 
  else
5527
 
    ac_cpp_err=
5528
 
  fi
5529
 
else
5530
 
  ac_cpp_err=yes
5531
 
fi
5532
 
if test -z "$ac_cpp_err"; then
 
13098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13099
  (exit $ac_status); } &&
 
13100
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13101
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13102
  (eval $ac_try) 2>&5
 
13103
  ac_status=$?
 
13104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13105
  (exit $ac_status); }; } &&
 
13106
         { ac_try='test -s conftest.$ac_objext'
 
13107
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13108
  (eval $ac_try) 2>&5
 
13109
  ac_status=$?
 
13110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13111
  (exit $ac_status); }; }; then
5533
13112
  ac_cv_header_stdc=yes
5534
13113
else
5535
13114
  echo "$as_me: failed program was:" >&5
5536
 
  cat conftest.$ac_ext >&5
5537
 
  ac_cv_header_stdc=no
 
13115
sed 's/^/| /' conftest.$ac_ext >&5
 
13116
 
 
13117
ac_cv_header_stdc=no
5538
13118
fi
5539
 
rm -f conftest.err conftest.$ac_ext
 
13119
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5540
13120
 
5541
13121
if test $ac_cv_header_stdc = yes; then
5542
13122
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5543
13123
  cat >conftest.$ac_ext <<_ACEOF
5544
 
#line 5544 "configure"
5545
 
#include "confdefs.h"
 
13124
/* confdefs.h.  */
 
13125
_ACEOF
 
13126
cat confdefs.h >>conftest.$ac_ext
 
13127
cat >>conftest.$ac_ext <<_ACEOF
 
13128
/* end confdefs.h.  */
5546
13129
#include <string.h>
5547
13130
 
5548
13131
_ACEOF
5549
13132
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5550
 
  egrep "memchr" >/dev/null 2>&1; then
 
13133
  $EGREP "memchr" >/dev/null 2>&1; then
5551
13134
  :
5552
13135
else
5553
13136
  ac_cv_header_stdc=no
5559
13142
if test $ac_cv_header_stdc = yes; then
5560
13143
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5561
13144
  cat >conftest.$ac_ext <<_ACEOF
5562
 
#line 5562 "configure"
5563
 
#include "confdefs.h"
 
13145
/* confdefs.h.  */
 
13146
_ACEOF
 
13147
cat confdefs.h >>conftest.$ac_ext
 
13148
cat >>conftest.$ac_ext <<_ACEOF
 
13149
/* end confdefs.h.  */
5564
13150
#include <stdlib.h>
5565
13151
 
5566
13152
_ACEOF
5567
13153
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5568
 
  egrep "free" >/dev/null 2>&1; then
 
13154
  $EGREP "free" >/dev/null 2>&1; then
5569
13155
  :
5570
13156
else
5571
13157
  ac_cv_header_stdc=no
5580
13166
  :
5581
13167
else
5582
13168
  cat >conftest.$ac_ext <<_ACEOF
5583
 
#line 5583 "configure"
5584
 
#include "confdefs.h"
 
13169
/* confdefs.h.  */
 
13170
_ACEOF
 
13171
cat confdefs.h >>conftest.$ac_ext
 
13172
cat >>conftest.$ac_ext <<_ACEOF
 
13173
/* end confdefs.h.  */
5585
13174
#include <ctype.h>
5586
13175
#if ((' ' & 0x0FF) == 0x020)
5587
13176
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5588
13177
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5589
13178
#else
5590
 
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5591
 
                     || ('j' <= (c) && (c) <= 'r') \
5592
 
                     || ('s' <= (c) && (c) <= 'z'))
 
13179
# define ISLOWER(c) \
 
13180
                   (('a' <= (c) && (c) <= 'i') \
 
13181
                     || ('j' <= (c) && (c) <= 'r') \
 
13182
                     || ('s' <= (c) && (c) <= 'z'))
5593
13183
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5594
13184
#endif
5595
13185
 
5600
13190
  int i;
5601
13191
  for (i = 0; i < 256; i++)
5602
13192
    if (XOR (islower (i), ISLOWER (i))
5603
 
        || toupper (i) != TOUPPER (i))
 
13193
        || toupper (i) != TOUPPER (i))
5604
13194
      exit(2);
5605
13195
  exit (0);
5606
13196
}
5607
13197
_ACEOF
5608
13198
rm -f conftest$ac_exeext
5609
 
if { (eval echo "$as_me:5609: \"$ac_link\"") >&5
 
13199
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5610
13200
  (eval $ac_link) 2>&5
5611
13201
  ac_status=$?
5612
 
  echo "$as_me:5612: \$? = $ac_status" >&5
 
13202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613
13203
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5614
 
  { (eval echo "$as_me:5614: \"$ac_try\"") >&5
 
13204
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615
13205
  (eval $ac_try) 2>&5
5616
13206
  ac_status=$?
5617
 
  echo "$as_me:5617: \$? = $ac_status" >&5
 
13207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618
13208
  (exit $ac_status); }; }; then
5619
13209
  :
5620
13210
else
5621
13211
  echo "$as_me: program exited with status $ac_status" >&5
5622
13212
echo "$as_me: failed program was:" >&5
5623
 
cat conftest.$ac_ext >&5
 
13213
sed 's/^/| /' conftest.$ac_ext >&5
 
13214
 
 
13215
( exit $ac_status )
5624
13216
ac_cv_header_stdc=no
5625
13217
fi
5626
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
5627
 
fi
5628
 
fi
5629
 
fi
5630
 
echo "$as_me:5630: result: $ac_cv_header_stdc" >&5
 
13218
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
13219
fi
 
13220
fi
 
13221
fi
 
13222
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5631
13223
echo "${ECHO_T}$ac_cv_header_stdc" >&6
5632
13224
if test $ac_cv_header_stdc = yes; then
5633
13225
 
5634
 
cat >>confdefs.h <<\EOF
 
13226
cat >>confdefs.h <<\_ACEOF
5635
13227
#define STDC_HEADERS 1
5636
 
EOF
 
13228
_ACEOF
5637
13229
 
5638
13230
fi
5639
13231
 
 
13232
 
5640
13233
for ac_header in string.h
5641
13234
do
5642
 
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5643
 
echo "$as_me:5643: checking for $ac_header" >&5
 
13235
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13236
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13237
  echo "$as_me:$LINENO: checking for $ac_header" >&5
5644
13238
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5645
 
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
 
13239
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5646
13240
  echo $ECHO_N "(cached) $ECHO_C" >&6
5647
 
else
5648
 
  cat >conftest.$ac_ext <<_ACEOF
5649
 
#line 5649 "configure"
5650
 
#include "confdefs.h"
5651
 
#include <$ac_header>
5652
 
_ACEOF
5653
 
if { (eval echo "$as_me:5653: \"$ac_cpp conftest.$ac_ext\"") >&5
 
13241
fi
 
13242
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
13243
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
13244
else
 
13245
  # Is the header compilable?
 
13246
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
13247
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
13248
cat >conftest.$ac_ext <<_ACEOF
 
13249
/* confdefs.h.  */
 
13250
_ACEOF
 
13251
cat confdefs.h >>conftest.$ac_ext
 
13252
cat >>conftest.$ac_ext <<_ACEOF
 
13253
/* end confdefs.h.  */
 
13254
$ac_includes_default
 
13255
#include <$ac_header>
 
13256
_ACEOF
 
13257
rm -f conftest.$ac_objext
 
13258
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13259
  (eval $ac_compile) 2>conftest.er1
 
13260
  ac_status=$?
 
13261
  grep -v '^ *+' conftest.er1 >conftest.err
 
13262
  rm -f conftest.er1
 
13263
  cat conftest.err >&5
 
13264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13265
  (exit $ac_status); } &&
 
13266
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13267
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13268
  (eval $ac_try) 2>&5
 
13269
  ac_status=$?
 
13270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13271
  (exit $ac_status); }; } &&
 
13272
         { ac_try='test -s conftest.$ac_objext'
 
13273
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13274
  (eval $ac_try) 2>&5
 
13275
  ac_status=$?
 
13276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13277
  (exit $ac_status); }; }; then
 
13278
  ac_header_compiler=yes
 
13279
else
 
13280
  echo "$as_me: failed program was:" >&5
 
13281
sed 's/^/| /' conftest.$ac_ext >&5
 
13282
 
 
13283
ac_header_compiler=no
 
13284
fi
 
13285
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13286
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
13287
echo "${ECHO_T}$ac_header_compiler" >&6
 
13288
 
 
13289
# Is the header present?
 
13290
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
13291
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
13292
cat >conftest.$ac_ext <<_ACEOF
 
13293
/* confdefs.h.  */
 
13294
_ACEOF
 
13295
cat confdefs.h >>conftest.$ac_ext
 
13296
cat >>conftest.$ac_ext <<_ACEOF
 
13297
/* end confdefs.h.  */
 
13298
#include <$ac_header>
 
13299
_ACEOF
 
13300
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5654
13301
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5655
13302
  ac_status=$?
5656
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
13303
  grep -v '^ *+' conftest.er1 >conftest.err
5657
13304
  rm -f conftest.er1
5658
13305
  cat conftest.err >&5
5659
 
  echo "$as_me:5659: \$? = $ac_status" >&5
 
13306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660
13307
  (exit $ac_status); } >/dev/null; then
5661
13308
  if test -s conftest.err; then
5662
13309
    ac_cpp_err=$ac_c_preproc_warn_flag
 
13310
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5663
13311
  else
5664
13312
    ac_cpp_err=
5665
13313
  fi
5667
13315
  ac_cpp_err=yes
5668
13316
fi
5669
13317
if test -z "$ac_cpp_err"; then
5670
 
  eval "$ac_ac_Header=yes"
 
13318
  ac_header_preproc=yes
5671
13319
else
5672
13320
  echo "$as_me: failed program was:" >&5
5673
 
  cat conftest.$ac_ext >&5
5674
 
  eval "$ac_ac_Header=no"
 
13321
sed 's/^/| /' conftest.$ac_ext >&5
 
13322
 
 
13323
  ac_header_preproc=no
5675
13324
fi
5676
13325
rm -f conftest.err conftest.$ac_ext
5677
 
fi
5678
 
echo "$as_me:5678: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5679
 
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5680
 
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5681
 
  cat >>confdefs.h <<EOF
5682
 
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5683
 
EOF
5684
 
 
5685
 
fi
 
13326
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
13327
echo "${ECHO_T}$ac_header_preproc" >&6
 
13328
 
 
13329
# So?  What about this header?
 
13330
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
13331
  yes:no: )
 
13332
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
13333
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
13334
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
13335
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
13336
    ac_header_preproc=yes
 
13337
    ;;
 
13338
  no:yes:* )
 
13339
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
13340
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
13341
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
13342
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
13343
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
13344
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
13345
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
13346
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
13347
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
13348
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
13349
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
13350
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
13351
    (
 
13352
      cat <<\_ASBOX
 
13353
## ------------------------------ ##
 
13354
## Report this to the ntp lists.  ##
 
13355
## ------------------------------ ##
 
13356
_ASBOX
 
13357
    ) |
 
13358
      sed "s/^/$as_me: WARNING:     /" >&2
 
13359
    ;;
 
13360
esac
 
13361
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13362
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
13363
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13364
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13365
else
 
13366
  eval "$as_ac_Header=\$ac_header_preproc"
 
13367
fi
 
13368
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
13369
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
13370
 
 
13371
fi
 
13372
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
13373
  cat >>confdefs.h <<_ACEOF
 
13374
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13375
_ACEOF
 
13376
 
 
13377
fi
 
13378
 
5686
13379
done
5687
13380
 
 
13381
 
5688
13382
    ;;
5689
13383
esac
5690
 
echo "$as_me:5690: checking if C compiler permits function prototypes" >&5
 
13384
echo "$as_me:$LINENO: checking if C compiler permits function prototypes" >&5
5691
13385
echo $ECHO_N "checking if C compiler permits function prototypes... $ECHO_C" >&6
5692
13386
if test "${ac_cv_have_prototypes+set}" = set; then
5693
13387
  echo $ECHO_N "(cached) $ECHO_C" >&6
5694
13388
else
5695
13389
  cat >conftest.$ac_ext <<_ACEOF
5696
 
#line 5696 "configure"
5697
 
#include "confdefs.h"
 
13390
/* confdefs.h.  */
 
13391
_ACEOF
 
13392
cat confdefs.h >>conftest.$ac_ext
 
13393
cat >>conftest.$ac_ext <<_ACEOF
 
13394
/* end confdefs.h.  */
5698
13395
 
5699
13396
extern int foo (short);
5700
13397
int foo(short i) { return i; }
5708
13405
}
5709
13406
_ACEOF
5710
13407
rm -f conftest.$ac_objext
5711
 
if { (eval echo "$as_me:5711: \"$ac_compile\"") >&5
5712
 
  (eval $ac_compile) 2>&5
 
13408
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13409
  (eval $ac_compile) 2>conftest.er1
5713
13410
  ac_status=$?
5714
 
  echo "$as_me:5714: \$? = $ac_status" >&5
 
13411
  grep -v '^ *+' conftest.er1 >conftest.err
 
13412
  rm -f conftest.er1
 
13413
  cat conftest.err >&5
 
13414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715
13415
  (exit $ac_status); } &&
5716
 
         { ac_try='test -s conftest.$ac_objext'
5717
 
  { (eval echo "$as_me:5717: \"$ac_try\"") >&5
5718
 
  (eval $ac_try) 2>&5
5719
 
  ac_status=$?
5720
 
  echo "$as_me:5720: \$? = $ac_status" >&5
 
13416
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13417
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13418
  (eval $ac_try) 2>&5
 
13419
  ac_status=$?
 
13420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13421
  (exit $ac_status); }; } &&
 
13422
         { ac_try='test -s conftest.$ac_objext'
 
13423
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13424
  (eval $ac_try) 2>&5
 
13425
  ac_status=$?
 
13426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721
13427
  (exit $ac_status); }; }; then
5722
13428
  ac_cv_have_prototypes=yes
5723
13429
else
5724
13430
  echo "$as_me: failed program was:" >&5
5725
 
cat conftest.$ac_ext >&5
 
13431
sed 's/^/| /' conftest.$ac_ext >&5
 
13432
 
5726
13433
ac_cv_have_prototypes=no
5727
13434
fi
5728
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
13435
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5729
13436
 
5730
13437
fi
5731
 
echo "$as_me:5731: result: $ac_cv_have_prototypes" >&5
 
13438
echo "$as_me:$LINENO: result: $ac_cv_have_prototypes" >&5
5732
13439
echo "${ECHO_T}$ac_cv_have_prototypes" >&6
5733
13440
if test "$ac_cv_have_prototypes" = yes; then
5734
 
  cat >>confdefs.h <<\EOF
 
13441
 
 
13442
cat >>confdefs.h <<\_ACEOF
5735
13443
#define HAVE_PROTOTYPES 1
5736
 
EOF
 
13444
_ACEOF
5737
13445
 
5738
13446
fi
5739
13447
 
5740
 
echo "$as_me:5740: checking for an ANSI C-conforming const" >&5
 
13448
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5741
13449
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5742
13450
if test "${ac_cv_c_const+set}" = set; then
5743
13451
  echo $ECHO_N "(cached) $ECHO_C" >&6
5744
13452
else
5745
13453
  cat >conftest.$ac_ext <<_ACEOF
5746
 
#line 5746 "configure"
5747
 
#include "confdefs.h"
 
13454
/* confdefs.h.  */
 
13455
_ACEOF
 
13456
cat confdefs.h >>conftest.$ac_ext
 
13457
cat >>conftest.$ac_ext <<_ACEOF
 
13458
/* end confdefs.h.  */
5748
13459
 
5749
13460
int
5750
13461
main ()
5801
13512
}
5802
13513
_ACEOF
5803
13514
rm -f conftest.$ac_objext
5804
 
if { (eval echo "$as_me:5804: \"$ac_compile\"") >&5
5805
 
  (eval $ac_compile) 2>&5
 
13515
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13516
  (eval $ac_compile) 2>conftest.er1
5806
13517
  ac_status=$?
5807
 
  echo "$as_me:5807: \$? = $ac_status" >&5
 
13518
  grep -v '^ *+' conftest.er1 >conftest.err
 
13519
  rm -f conftest.er1
 
13520
  cat conftest.err >&5
 
13521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808
13522
  (exit $ac_status); } &&
5809
 
         { ac_try='test -s conftest.$ac_objext'
5810
 
  { (eval echo "$as_me:5810: \"$ac_try\"") >&5
5811
 
  (eval $ac_try) 2>&5
5812
 
  ac_status=$?
5813
 
  echo "$as_me:5813: \$? = $ac_status" >&5
 
13523
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13524
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13525
  (eval $ac_try) 2>&5
 
13526
  ac_status=$?
 
13527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13528
  (exit $ac_status); }; } &&
 
13529
         { ac_try='test -s conftest.$ac_objext'
 
13530
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13531
  (eval $ac_try) 2>&5
 
13532
  ac_status=$?
 
13533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814
13534
  (exit $ac_status); }; }; then
5815
13535
  ac_cv_c_const=yes
5816
13536
else
5817
13537
  echo "$as_me: failed program was:" >&5
5818
 
cat conftest.$ac_ext >&5
 
13538
sed 's/^/| /' conftest.$ac_ext >&5
 
13539
 
5819
13540
ac_cv_c_const=no
5820
13541
fi
5821
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
13542
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5822
13543
fi
5823
 
echo "$as_me:5823: result: $ac_cv_c_const" >&5
 
13544
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5824
13545
echo "${ECHO_T}$ac_cv_c_const" >&6
5825
13546
if test $ac_cv_c_const = no; then
5826
13547
 
5827
 
cat >>confdefs.h <<\EOF
 
13548
cat >>confdefs.h <<\_ACEOF
5828
13549
#define const
5829
 
EOF
 
13550
_ACEOF
5830
13551
 
5831
13552
fi
5832
13553
 
5833
 
case "$host" in
5834
 
 $target)
5835
 
    echo "$as_me:5835: checking whether byte ordering is bigendian" >&5
 
13554
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5836
13555
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5837
13556
if test "${ac_cv_c_bigendian+set}" = set; then
5838
13557
  echo $ECHO_N "(cached) $ECHO_C" >&6
5839
13558
else
5840
 
  ac_cv_c_bigendian=unknown
5841
 
# See if sys/param.h defines the BYTE_ORDER macro.
 
13559
  # See if sys/param.h defines the BYTE_ORDER macro.
5842
13560
cat >conftest.$ac_ext <<_ACEOF
5843
 
#line 5843 "configure"
5844
 
#include "confdefs.h"
 
13561
/* confdefs.h.  */
 
13562
_ACEOF
 
13563
cat confdefs.h >>conftest.$ac_ext
 
13564
cat >>conftest.$ac_ext <<_ACEOF
 
13565
/* end confdefs.h.  */
5845
13566
#include <sys/types.h>
5846
13567
#include <sys/param.h>
5847
13568
 
5857
13578
}
5858
13579
_ACEOF
5859
13580
rm -f conftest.$ac_objext
5860
 
if { (eval echo "$as_me:5860: \"$ac_compile\"") >&5
5861
 
  (eval $ac_compile) 2>&5
 
13581
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13582
  (eval $ac_compile) 2>conftest.er1
5862
13583
  ac_status=$?
5863
 
  echo "$as_me:5863: \$? = $ac_status" >&5
 
13584
  grep -v '^ *+' conftest.er1 >conftest.err
 
13585
  rm -f conftest.er1
 
13586
  cat conftest.err >&5
 
13587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864
13588
  (exit $ac_status); } &&
5865
 
         { ac_try='test -s conftest.$ac_objext'
5866
 
  { (eval echo "$as_me:5866: \"$ac_try\"") >&5
5867
 
  (eval $ac_try) 2>&5
5868
 
  ac_status=$?
5869
 
  echo "$as_me:5869: \$? = $ac_status" >&5
 
13589
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13590
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13591
  (eval $ac_try) 2>&5
 
13592
  ac_status=$?
 
13593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13594
  (exit $ac_status); }; } &&
 
13595
         { ac_try='test -s conftest.$ac_objext'
 
13596
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13597
  (eval $ac_try) 2>&5
 
13598
  ac_status=$?
 
13599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870
13600
  (exit $ac_status); }; }; then
5871
13601
  # It does; now see whether it defined to BIG_ENDIAN or not.
5872
13602
cat >conftest.$ac_ext <<_ACEOF
5873
 
#line 5873 "configure"
5874
 
#include "confdefs.h"
 
13603
/* confdefs.h.  */
 
13604
_ACEOF
 
13605
cat confdefs.h >>conftest.$ac_ext
 
13606
cat >>conftest.$ac_ext <<_ACEOF
 
13607
/* end confdefs.h.  */
5875
13608
#include <sys/types.h>
5876
13609
#include <sys/param.h>
5877
13610
 
5887
13620
}
5888
13621
_ACEOF
5889
13622
rm -f conftest.$ac_objext
5890
 
if { (eval echo "$as_me:5890: \"$ac_compile\"") >&5
5891
 
  (eval $ac_compile) 2>&5
 
13623
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13624
  (eval $ac_compile) 2>conftest.er1
5892
13625
  ac_status=$?
5893
 
  echo "$as_me:5893: \$? = $ac_status" >&5
 
13626
  grep -v '^ *+' conftest.er1 >conftest.err
 
13627
  rm -f conftest.er1
 
13628
  cat conftest.err >&5
 
13629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894
13630
  (exit $ac_status); } &&
5895
 
         { ac_try='test -s conftest.$ac_objext'
5896
 
  { (eval echo "$as_me:5896: \"$ac_try\"") >&5
5897
 
  (eval $ac_try) 2>&5
5898
 
  ac_status=$?
5899
 
  echo "$as_me:5899: \$? = $ac_status" >&5
 
13631
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13633
  (eval $ac_try) 2>&5
 
13634
  ac_status=$?
 
13635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13636
  (exit $ac_status); }; } &&
 
13637
         { ac_try='test -s conftest.$ac_objext'
 
13638
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13639
  (eval $ac_try) 2>&5
 
13640
  ac_status=$?
 
13641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900
13642
  (exit $ac_status); }; }; then
5901
13643
  ac_cv_c_bigendian=yes
5902
13644
else
5903
13645
  echo "$as_me: failed program was:" >&5
5904
 
cat conftest.$ac_ext >&5
 
13646
sed 's/^/| /' conftest.$ac_ext >&5
 
13647
 
5905
13648
ac_cv_c_bigendian=no
5906
13649
fi
5907
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
13650
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5908
13651
else
5909
13652
  echo "$as_me: failed program was:" >&5
5910
 
cat conftest.$ac_ext >&5
5911
 
fi
5912
 
rm -f conftest.$ac_objext conftest.$ac_ext
5913
 
if test $ac_cv_c_bigendian = unknown; then
 
13653
sed 's/^/| /' conftest.$ac_ext >&5
 
13654
 
 
13655
# It does not; compile a test program.
5914
13656
if test "$cross_compiling" = yes; then
5915
 
  { { echo "$as_me:5915: error: cannot run test program while cross compiling" >&5
5916
 
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5917
 
   { (exit 1); exit 1; }; }
5918
 
else
5919
 
  cat >conftest.$ac_ext <<_ACEOF
5920
 
#line 5920 "configure"
5921
 
#include "confdefs.h"
 
13657
  # try to guess the endianness by grepping values into an object file
 
13658
  ac_cv_c_bigendian=unknown
 
13659
  cat >conftest.$ac_ext <<_ACEOF
 
13660
/* confdefs.h.  */
 
13661
_ACEOF
 
13662
cat confdefs.h >>conftest.$ac_ext
 
13663
cat >>conftest.$ac_ext <<_ACEOF
 
13664
/* end confdefs.h.  */
 
13665
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
13666
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
13667
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
13668
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
13669
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
13670
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
13671
int
 
13672
main ()
 
13673
{
 
13674
 _ascii (); _ebcdic ();
 
13675
  ;
 
13676
  return 0;
 
13677
}
 
13678
_ACEOF
 
13679
rm -f conftest.$ac_objext
 
13680
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13681
  (eval $ac_compile) 2>conftest.er1
 
13682
  ac_status=$?
 
13683
  grep -v '^ *+' conftest.er1 >conftest.err
 
13684
  rm -f conftest.er1
 
13685
  cat conftest.err >&5
 
13686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13687
  (exit $ac_status); } &&
 
13688
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13689
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13690
  (eval $ac_try) 2>&5
 
13691
  ac_status=$?
 
13692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13693
  (exit $ac_status); }; } &&
 
13694
         { ac_try='test -s conftest.$ac_objext'
 
13695
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13696
  (eval $ac_try) 2>&5
 
13697
  ac_status=$?
 
13698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13699
  (exit $ac_status); }; }; then
 
13700
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
13701
  ac_cv_c_bigendian=yes
 
13702
fi
 
13703
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
13704
  if test "$ac_cv_c_bigendian" = unknown; then
 
13705
    ac_cv_c_bigendian=no
 
13706
  else
 
13707
    # finding both strings is unlikely to happen, but who knows?
 
13708
    ac_cv_c_bigendian=unknown
 
13709
  fi
 
13710
fi
 
13711
else
 
13712
  echo "$as_me: failed program was:" >&5
 
13713
sed 's/^/| /' conftest.$ac_ext >&5
 
13714
 
 
13715
fi
 
13716
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13717
else
 
13718
  cat >conftest.$ac_ext <<_ACEOF
 
13719
/* confdefs.h.  */
 
13720
_ACEOF
 
13721
cat confdefs.h >>conftest.$ac_ext
 
13722
cat >>conftest.$ac_ext <<_ACEOF
 
13723
/* end confdefs.h.  */
5922
13724
int
5923
13725
main ()
5924
13726
{
5933
13735
}
5934
13736
_ACEOF
5935
13737
rm -f conftest$ac_exeext
5936
 
if { (eval echo "$as_me:5936: \"$ac_link\"") >&5
 
13738
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5937
13739
  (eval $ac_link) 2>&5
5938
13740
  ac_status=$?
5939
 
  echo "$as_me:5939: \$? = $ac_status" >&5
 
13741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940
13742
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5941
 
  { (eval echo "$as_me:5941: \"$ac_try\"") >&5
 
13743
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942
13744
  (eval $ac_try) 2>&5
5943
13745
  ac_status=$?
5944
 
  echo "$as_me:5944: \$? = $ac_status" >&5
 
13746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945
13747
  (exit $ac_status); }; }; then
5946
13748
  ac_cv_c_bigendian=no
5947
13749
else
5948
13750
  echo "$as_me: program exited with status $ac_status" >&5
5949
13751
echo "$as_me: failed program was:" >&5
5950
 
cat conftest.$ac_ext >&5
 
13752
sed 's/^/| /' conftest.$ac_ext >&5
 
13753
 
 
13754
( exit $ac_status )
5951
13755
ac_cv_c_bigendian=yes
5952
13756
fi
5953
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
5954
 
fi
5955
 
fi
5956
 
fi
5957
 
echo "$as_me:5957: result: $ac_cv_c_bigendian" >&5
 
13757
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
13758
fi
 
13759
fi
 
13760
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13761
fi
 
13762
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5958
13763
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5959
 
if test $ac_cv_c_bigendian = yes; then
5960
 
 
5961
 
cat >>confdefs.h <<\EOF
5962
 
#define WORDS_BIGENDIAN 1
5963
 
EOF
5964
 
 
5965
 
fi
5966
 
 
5967
 
    ;;
5968
 
 *) case "$target" in
5969
 
     i*86-*-vxworks*)
5970
 
        # LITTLEENDIAN
5971
 
        ;;
5972
 
     *-*-vxworks*)
5973
 
        cat >>confdefs.h <<\EOF
5974
 
#define WORDS_BIGENDIAN 1
5975
 
EOF
5976
 
 
5977
 
        ;;
5978
 
     *) { { echo "$as_me:5978: error: Cross-compiling needs explicit byte order" >&5
5979
 
echo "$as_me: error: Cross-compiling needs explicit byte order" >&2;}
5980
 
   { (exit 1); exit 1; }; }
5981
 
        ;;
5982
 
    esac
5983
 
    ;;
 
13764
case $ac_cv_c_bigendian in
 
13765
  yes)
 
13766
 
 
13767
cat >>confdefs.h <<\_ACEOF
 
13768
#define WORDS_BIGENDIAN 1
 
13769
_ACEOF
 
13770
 ;;
 
13771
  no)
 
13772
     ;;
 
13773
  *)
 
13774
    { { echo "$as_me:$LINENO: error: unknown endianness
 
13775
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
13776
echo "$as_me: error: unknown endianness
 
13777
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
13778
   { (exit 1); exit 1; }; } ;;
5984
13779
esac
5985
 
echo "$as_me:5985: checking return type of signal handlers" >&5
 
13780
 
 
13781
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5986
13782
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5987
13783
if test "${ac_cv_type_signal+set}" = set; then
5988
13784
  echo $ECHO_N "(cached) $ECHO_C" >&6
5989
13785
else
5990
13786
  cat >conftest.$ac_ext <<_ACEOF
5991
 
#line 5991 "configure"
5992
 
#include "confdefs.h"
 
13787
/* confdefs.h.  */
 
13788
_ACEOF
 
13789
cat confdefs.h >>conftest.$ac_ext
 
13790
cat >>conftest.$ac_ext <<_ACEOF
 
13791
/* end confdefs.h.  */
5993
13792
#include <sys/types.h>
5994
13793
#include <signal.h>
5995
13794
#ifdef signal
6010
13809
}
6011
13810
_ACEOF
6012
13811
rm -f conftest.$ac_objext
6013
 
if { (eval echo "$as_me:6013: \"$ac_compile\"") >&5
6014
 
  (eval $ac_compile) 2>&5
 
13812
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13813
  (eval $ac_compile) 2>conftest.er1
6015
13814
  ac_status=$?
6016
 
  echo "$as_me:6016: \$? = $ac_status" >&5
 
13815
  grep -v '^ *+' conftest.er1 >conftest.err
 
13816
  rm -f conftest.er1
 
13817
  cat conftest.err >&5
 
13818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017
13819
  (exit $ac_status); } &&
6018
 
         { ac_try='test -s conftest.$ac_objext'
6019
 
  { (eval echo "$as_me:6019: \"$ac_try\"") >&5
6020
 
  (eval $ac_try) 2>&5
6021
 
  ac_status=$?
6022
 
  echo "$as_me:6022: \$? = $ac_status" >&5
 
13820
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13821
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13822
  (eval $ac_try) 2>&5
 
13823
  ac_status=$?
 
13824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13825
  (exit $ac_status); }; } &&
 
13826
         { ac_try='test -s conftest.$ac_objext'
 
13827
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13828
  (eval $ac_try) 2>&5
 
13829
  ac_status=$?
 
13830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023
13831
  (exit $ac_status); }; }; then
6024
13832
  ac_cv_type_signal=void
6025
13833
else
6026
13834
  echo "$as_me: failed program was:" >&5
6027
 
cat conftest.$ac_ext >&5
 
13835
sed 's/^/| /' conftest.$ac_ext >&5
 
13836
 
6028
13837
ac_cv_type_signal=int
6029
13838
fi
6030
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
13839
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6031
13840
fi
6032
 
echo "$as_me:6032: result: $ac_cv_type_signal" >&5
 
13841
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6033
13842
echo "${ECHO_T}$ac_cv_type_signal" >&6
6034
13843
 
6035
 
cat >>confdefs.h <<EOF
 
13844
cat >>confdefs.h <<_ACEOF
6036
13845
#define RETSIGTYPE $ac_cv_type_signal
6037
 
EOF
6038
 
 
6039
 
for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
6040
 
do
6041
 
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
6042
 
echo "$as_me:6042: checking for $ac_header" >&5
6043
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6044
 
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
6045
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6046
 
else
6047
 
  cat >conftest.$ac_ext <<_ACEOF
6048
 
#line 6048 "configure"
6049
 
#include "confdefs.h"
6050
 
#include <$ac_header>
6051
13846
_ACEOF
6052
 
if { (eval echo "$as_me:6052: \"$ac_cpp conftest.$ac_ext\"") >&5
6053
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6054
 
  ac_status=$?
6055
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
6056
 
  rm -f conftest.er1
6057
 
  cat conftest.err >&5
6058
 
  echo "$as_me:6058: \$? = $ac_status" >&5
6059
 
  (exit $ac_status); } >/dev/null; then
6060
 
  if test -s conftest.err; then
6061
 
    ac_cpp_err=$ac_c_preproc_warn_flag
6062
 
  else
6063
 
    ac_cpp_err=
6064
 
  fi
6065
 
else
6066
 
  ac_cpp_err=yes
6067
 
fi
6068
 
if test -z "$ac_cpp_err"; then
6069
 
  eval "$ac_ac_Header=yes"
6070
 
else
6071
 
  echo "$as_me: failed program was:" >&5
6072
 
  cat conftest.$ac_ext >&5
6073
 
  eval "$ac_ac_Header=no"
6074
 
fi
6075
 
rm -f conftest.err conftest.$ac_ext
6076
 
fi
6077
 
echo "$as_me:6077: result: `eval echo '${'$ac_ac_Header'}'`" >&5
6078
 
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
6079
 
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
6080
 
  cat >>confdefs.h <<EOF
6081
 
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
6082
 
EOF
6083
 
 
6084
 
fi
6085
 
done
6086
 
 
6087
 
echo "$as_me:6087: checking for off_t" >&5
 
13847
 
 
13848
 
 
13849
echo "$as_me:$LINENO: checking for off_t" >&5
6088
13850
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6089
13851
if test "${ac_cv_type_off_t+set}" = set; then
6090
13852
  echo $ECHO_N "(cached) $ECHO_C" >&6
6091
13853
else
6092
13854
  cat >conftest.$ac_ext <<_ACEOF
6093
 
#line 6093 "configure"
6094
 
#include "confdefs.h"
 
13855
/* confdefs.h.  */
 
13856
_ACEOF
 
13857
cat confdefs.h >>conftest.$ac_ext
 
13858
cat >>conftest.$ac_ext <<_ACEOF
 
13859
/* end confdefs.h.  */
6095
13860
$ac_includes_default
6096
13861
int
6097
13862
main ()
6105
13870
}
6106
13871
_ACEOF
6107
13872
rm -f conftest.$ac_objext
6108
 
if { (eval echo "$as_me:6108: \"$ac_compile\"") >&5
6109
 
  (eval $ac_compile) 2>&5
 
13873
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13874
  (eval $ac_compile) 2>conftest.er1
6110
13875
  ac_status=$?
6111
 
  echo "$as_me:6111: \$? = $ac_status" >&5
 
13876
  grep -v '^ *+' conftest.er1 >conftest.err
 
13877
  rm -f conftest.er1
 
13878
  cat conftest.err >&5
 
13879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112
13880
  (exit $ac_status); } &&
6113
 
         { ac_try='test -s conftest.$ac_objext'
6114
 
  { (eval echo "$as_me:6114: \"$ac_try\"") >&5
6115
 
  (eval $ac_try) 2>&5
6116
 
  ac_status=$?
6117
 
  echo "$as_me:6117: \$? = $ac_status" >&5
 
13881
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13882
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13883
  (eval $ac_try) 2>&5
 
13884
  ac_status=$?
 
13885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13886
  (exit $ac_status); }; } &&
 
13887
         { ac_try='test -s conftest.$ac_objext'
 
13888
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13889
  (eval $ac_try) 2>&5
 
13890
  ac_status=$?
 
13891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118
13892
  (exit $ac_status); }; }; then
6119
13893
  ac_cv_type_off_t=yes
6120
13894
else
6121
13895
  echo "$as_me: failed program was:" >&5
6122
 
cat conftest.$ac_ext >&5
 
13896
sed 's/^/| /' conftest.$ac_ext >&5
 
13897
 
6123
13898
ac_cv_type_off_t=no
6124
13899
fi
6125
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
13900
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6126
13901
fi
6127
 
echo "$as_me:6127: result: $ac_cv_type_off_t" >&5
 
13902
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6128
13903
echo "${ECHO_T}$ac_cv_type_off_t" >&6
6129
13904
if test $ac_cv_type_off_t = yes; then
6130
13905
  :
6131
13906
else
6132
13907
 
6133
 
cat >>confdefs.h <<EOF
 
13908
cat >>confdefs.h <<_ACEOF
6134
13909
#define off_t long
6135
 
EOF
 
13910
_ACEOF
6136
13911
 
6137
13912
fi
6138
13913
 
6139
 
echo "$as_me:6139: checking for size_t" >&5
 
13914
echo "$as_me:$LINENO: checking for size_t" >&5
6140
13915
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6141
13916
if test "${ac_cv_type_size_t+set}" = set; then
6142
13917
  echo $ECHO_N "(cached) $ECHO_C" >&6
6143
13918
else
6144
13919
  cat >conftest.$ac_ext <<_ACEOF
6145
 
#line 6145 "configure"
6146
 
#include "confdefs.h"
 
13920
/* confdefs.h.  */
 
13921
_ACEOF
 
13922
cat confdefs.h >>conftest.$ac_ext
 
13923
cat >>conftest.$ac_ext <<_ACEOF
 
13924
/* end confdefs.h.  */
6147
13925
$ac_includes_default
6148
13926
int
6149
13927
main ()
6157
13935
}
6158
13936
_ACEOF
6159
13937
rm -f conftest.$ac_objext
6160
 
if { (eval echo "$as_me:6160: \"$ac_compile\"") >&5
6161
 
  (eval $ac_compile) 2>&5
 
13938
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13939
  (eval $ac_compile) 2>conftest.er1
6162
13940
  ac_status=$?
6163
 
  echo "$as_me:6163: \$? = $ac_status" >&5
 
13941
  grep -v '^ *+' conftest.er1 >conftest.err
 
13942
  rm -f conftest.er1
 
13943
  cat conftest.err >&5
 
13944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164
13945
  (exit $ac_status); } &&
6165
 
         { ac_try='test -s conftest.$ac_objext'
6166
 
  { (eval echo "$as_me:6166: \"$ac_try\"") >&5
6167
 
  (eval $ac_try) 2>&5
6168
 
  ac_status=$?
6169
 
  echo "$as_me:6169: \$? = $ac_status" >&5
 
13946
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13947
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13948
  (eval $ac_try) 2>&5
 
13949
  ac_status=$?
 
13950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13951
  (exit $ac_status); }; } &&
 
13952
         { ac_try='test -s conftest.$ac_objext'
 
13953
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13954
  (eval $ac_try) 2>&5
 
13955
  ac_status=$?
 
13956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170
13957
  (exit $ac_status); }; }; then
6171
13958
  ac_cv_type_size_t=yes
6172
13959
else
6173
13960
  echo "$as_me: failed program was:" >&5
6174
 
cat conftest.$ac_ext >&5
 
13961
sed 's/^/| /' conftest.$ac_ext >&5
 
13962
 
6175
13963
ac_cv_type_size_t=no
6176
13964
fi
6177
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
13965
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6178
13966
fi
6179
 
echo "$as_me:6179: result: $ac_cv_type_size_t" >&5
 
13967
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6180
13968
echo "${ECHO_T}$ac_cv_type_size_t" >&6
6181
13969
if test $ac_cv_type_size_t = yes; then
6182
13970
  :
6183
13971
else
6184
13972
 
6185
 
cat >>confdefs.h <<EOF
 
13973
cat >>confdefs.h <<_ACEOF
6186
13974
#define size_t unsigned
6187
 
EOF
 
13975
_ACEOF
6188
13976
 
6189
13977
fi
6190
13978
 
6191
 
echo "$as_me:6191: checking for time_t" >&5
 
13979
echo "$as_me:$LINENO: checking for time_t" >&5
6192
13980
echo $ECHO_N "checking for time_t... $ECHO_C" >&6
6193
13981
if test "${ac_cv_type_time_t+set}" = set; then
6194
13982
  echo $ECHO_N "(cached) $ECHO_C" >&6
6195
13983
else
6196
13984
  cat >conftest.$ac_ext <<_ACEOF
6197
 
#line 6197 "configure"
6198
 
#include "confdefs.h"
 
13985
/* confdefs.h.  */
 
13986
_ACEOF
 
13987
cat confdefs.h >>conftest.$ac_ext
 
13988
cat >>conftest.$ac_ext <<_ACEOF
 
13989
/* end confdefs.h.  */
6199
13990
$ac_includes_default
6200
13991
int
6201
13992
main ()
6209
14000
}
6210
14001
_ACEOF
6211
14002
rm -f conftest.$ac_objext
6212
 
if { (eval echo "$as_me:6212: \"$ac_compile\"") >&5
6213
 
  (eval $ac_compile) 2>&5
 
14003
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14004
  (eval $ac_compile) 2>conftest.er1
6214
14005
  ac_status=$?
6215
 
  echo "$as_me:6215: \$? = $ac_status" >&5
 
14006
  grep -v '^ *+' conftest.er1 >conftest.err
 
14007
  rm -f conftest.er1
 
14008
  cat conftest.err >&5
 
14009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216
14010
  (exit $ac_status); } &&
6217
 
         { ac_try='test -s conftest.$ac_objext'
6218
 
  { (eval echo "$as_me:6218: \"$ac_try\"") >&5
6219
 
  (eval $ac_try) 2>&5
6220
 
  ac_status=$?
6221
 
  echo "$as_me:6221: \$? = $ac_status" >&5
 
14011
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14012
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14013
  (eval $ac_try) 2>&5
 
14014
  ac_status=$?
 
14015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14016
  (exit $ac_status); }; } &&
 
14017
         { ac_try='test -s conftest.$ac_objext'
 
14018
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14019
  (eval $ac_try) 2>&5
 
14020
  ac_status=$?
 
14021
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222
14022
  (exit $ac_status); }; }; then
6223
14023
  ac_cv_type_time_t=yes
6224
14024
else
6225
14025
  echo "$as_me: failed program was:" >&5
6226
 
cat conftest.$ac_ext >&5
 
14026
sed 's/^/| /' conftest.$ac_ext >&5
 
14027
 
6227
14028
ac_cv_type_time_t=no
6228
14029
fi
6229
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
14030
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6230
14031
fi
6231
 
echo "$as_me:6231: result: $ac_cv_type_time_t" >&5
 
14032
echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
6232
14033
echo "${ECHO_T}$ac_cv_type_time_t" >&6
6233
14034
if test $ac_cv_type_time_t = yes; then
6234
14035
  :
6235
14036
else
6236
14037
 
6237
 
cat >>confdefs.h <<EOF
 
14038
cat >>confdefs.h <<_ACEOF
6238
14039
#define time_t long
6239
 
EOF
 
14040
_ACEOF
6240
14041
 
6241
14042
fi
6242
14043
 
6243
 
echo "$as_me:6243: checking whether struct tm is in sys/time.h or time.h" >&5
 
14044
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6244
14045
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6245
14046
if test "${ac_cv_struct_tm+set}" = set; then
6246
14047
  echo $ECHO_N "(cached) $ECHO_C" >&6
6247
14048
else
6248
14049
  cat >conftest.$ac_ext <<_ACEOF
6249
 
#line 6249 "configure"
6250
 
#include "confdefs.h"
 
14050
/* confdefs.h.  */
 
14051
_ACEOF
 
14052
cat confdefs.h >>conftest.$ac_ext
 
14053
cat >>conftest.$ac_ext <<_ACEOF
 
14054
/* end confdefs.h.  */
6251
14055
#include <sys/types.h>
6252
14056
#include <time.h>
6253
14057
 
6260
14064
}
6261
14065
_ACEOF
6262
14066
rm -f conftest.$ac_objext
6263
 
if { (eval echo "$as_me:6263: \"$ac_compile\"") >&5
6264
 
  (eval $ac_compile) 2>&5
 
14067
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14068
  (eval $ac_compile) 2>conftest.er1
6265
14069
  ac_status=$?
6266
 
  echo "$as_me:6266: \$? = $ac_status" >&5
 
14070
  grep -v '^ *+' conftest.er1 >conftest.err
 
14071
  rm -f conftest.er1
 
14072
  cat conftest.err >&5
 
14073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267
14074
  (exit $ac_status); } &&
6268
 
         { ac_try='test -s conftest.$ac_objext'
6269
 
  { (eval echo "$as_me:6269: \"$ac_try\"") >&5
6270
 
  (eval $ac_try) 2>&5
6271
 
  ac_status=$?
6272
 
  echo "$as_me:6272: \$? = $ac_status" >&5
 
14075
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14077
  (eval $ac_try) 2>&5
 
14078
  ac_status=$?
 
14079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14080
  (exit $ac_status); }; } &&
 
14081
         { ac_try='test -s conftest.$ac_objext'
 
14082
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14083
  (eval $ac_try) 2>&5
 
14084
  ac_status=$?
 
14085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273
14086
  (exit $ac_status); }; }; then
6274
14087
  ac_cv_struct_tm=time.h
6275
14088
else
6276
14089
  echo "$as_me: failed program was:" >&5
6277
 
cat conftest.$ac_ext >&5
 
14090
sed 's/^/| /' conftest.$ac_ext >&5
 
14091
 
6278
14092
ac_cv_struct_tm=sys/time.h
6279
14093
fi
6280
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
14094
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6281
14095
fi
6282
 
echo "$as_me:6282: result: $ac_cv_struct_tm" >&5
 
14096
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6283
14097
echo "${ECHO_T}$ac_cv_struct_tm" >&6
6284
14098
if test $ac_cv_struct_tm = sys/time.h; then
6285
14099
 
6286
 
cat >>confdefs.h <<\EOF
 
14100
cat >>confdefs.h <<\_ACEOF
6287
14101
#define TM_IN_SYS_TIME 1
6288
 
EOF
6289
 
 
6290
 
fi
6291
 
 
6292
 
echo "$as_me:6292: checking for a fallback value for HZ" >&5
 
14102
_ACEOF
 
14103
 
 
14104
fi
 
14105
 
 
14106
 
 
14107
echo "$as_me:$LINENO: checking for u_int8_t" >&5
 
14108
echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
 
14109
if test "${ac_cv_type_u_int8_t+set}" = set; then
 
14110
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14111
else
 
14112
  cat >conftest.$ac_ext <<_ACEOF
 
14113
/* confdefs.h.  */
 
14114
_ACEOF
 
14115
cat confdefs.h >>conftest.$ac_ext
 
14116
cat >>conftest.$ac_ext <<_ACEOF
 
14117
/* end confdefs.h.  */
 
14118
#include <sys/types.h>
 
14119
int
 
14120
main ()
 
14121
{
 
14122
u_int8_t len = 42; return 0;
 
14123
  ;
 
14124
  return 0;
 
14125
}
 
14126
_ACEOF
 
14127
rm -f conftest.$ac_objext
 
14128
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14129
  (eval $ac_compile) 2>conftest.er1
 
14130
  ac_status=$?
 
14131
  grep -v '^ *+' conftest.er1 >conftest.err
 
14132
  rm -f conftest.er1
 
14133
  cat conftest.err >&5
 
14134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14135
  (exit $ac_status); } &&
 
14136
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14137
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14138
  (eval $ac_try) 2>&5
 
14139
  ac_status=$?
 
14140
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14141
  (exit $ac_status); }; } &&
 
14142
         { ac_try='test -s conftest.$ac_objext'
 
14143
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14144
  (eval $ac_try) 2>&5
 
14145
  ac_status=$?
 
14146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14147
  (exit $ac_status); }; }; then
 
14148
  ac_cv_type_u_int8_t=yes
 
14149
else
 
14150
  echo "$as_me: failed program was:" >&5
 
14151
sed 's/^/| /' conftest.$ac_ext >&5
 
14152
 
 
14153
ac_cv_type_u_int8_t=no
 
14154
fi
 
14155
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14156
 
 
14157
fi
 
14158
echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
 
14159
echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
 
14160
if test $ac_cv_type_u_int8_t = yes; then
 
14161
 
 
14162
cat >>confdefs.h <<\_ACEOF
 
14163
#define HAVE_TYPE_U_INT8_T 1
 
14164
_ACEOF
 
14165
 
 
14166
fi
 
14167
 
 
14168
echo "$as_me:$LINENO: checking for u_int64_t" >&5
 
14169
echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
 
14170
if test "${ac_cv_type_u_int64_t+set}" = set; then
 
14171
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14172
else
 
14173
  cat >conftest.$ac_ext <<_ACEOF
 
14174
/* confdefs.h.  */
 
14175
_ACEOF
 
14176
cat confdefs.h >>conftest.$ac_ext
 
14177
cat >>conftest.$ac_ext <<_ACEOF
 
14178
/* end confdefs.h.  */
 
14179
#include <sys/types.h>
 
14180
int
 
14181
main ()
 
14182
{
 
14183
u_int64_t len = 42; return 0;
 
14184
  ;
 
14185
  return 0;
 
14186
}
 
14187
_ACEOF
 
14188
rm -f conftest.$ac_objext
 
14189
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14190
  (eval $ac_compile) 2>conftest.er1
 
14191
  ac_status=$?
 
14192
  grep -v '^ *+' conftest.er1 >conftest.err
 
14193
  rm -f conftest.er1
 
14194
  cat conftest.err >&5
 
14195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14196
  (exit $ac_status); } &&
 
14197
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14198
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14199
  (eval $ac_try) 2>&5
 
14200
  ac_status=$?
 
14201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14202
  (exit $ac_status); }; } &&
 
14203
         { ac_try='test -s conftest.$ac_objext'
 
14204
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14205
  (eval $ac_try) 2>&5
 
14206
  ac_status=$?
 
14207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14208
  (exit $ac_status); }; }; then
 
14209
  ac_cv_type_u_int64_t=yes
 
14210
else
 
14211
  echo "$as_me: failed program was:" >&5
 
14212
sed 's/^/| /' conftest.$ac_ext >&5
 
14213
 
 
14214
ac_cv_type_u_int64_t=no
 
14215
fi
 
14216
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14217
 
 
14218
fi
 
14219
echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
 
14220
echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
 
14221
if test $ac_cv_type_u_int64_t = yes; then
 
14222
 
 
14223
cat >>confdefs.h <<\_ACEOF
 
14224
#define HAVE_TYPE_U_INT64_T 1
 
14225
_ACEOF
 
14226
 
 
14227
fi
 
14228
 
 
14229
echo "$as_me:$LINENO: checking for a fallback value for HZ" >&5
6293
14230
echo $ECHO_N "checking for a fallback value for HZ... $ECHO_C" >&6
6294
14231
if test "${ac_cv_var_default_hz+set}" = set; then
6295
14232
  echo $ECHO_N "(cached) $ECHO_C" >&6
6296
14233
else
6297
14234
  ac_cv_var_default_hz=100
6298
 
case "$target" in
 
14235
case "$host" in
6299
14236
 alpha*-dec-osf4*|alpha*-dec-osf5*)
6300
14237
    ac_cv_var_default_hz=1024
6301
14238
    ;;
6304
14241
    ;;
6305
14242
esac
6306
14243
fi
6307
 
echo "$as_me:6307: result: $ac_cv_var_default_hz" >&5
 
14244
echo "$as_me:$LINENO: result: $ac_cv_var_default_hz" >&5
6308
14245
echo "${ECHO_T}$ac_cv_var_default_hz" >&6
6309
 
cat >>confdefs.h <<EOF
 
14246
 
 
14247
cat >>confdefs.h <<_ACEOF
6310
14248
#define DEFAULT_HZ $ac_cv_var_default_hz
6311
 
EOF
6312
 
 
6313
 
echo "$as_me:6313: checking if we need to override the system's value for HZ" >&5
 
14249
_ACEOF
 
14250
 
 
14251
 
 
14252
echo "$as_me:$LINENO: checking if we need to override the system's value for HZ" >&5
6314
14253
echo $ECHO_N "checking if we need to override the system's value for HZ... $ECHO_C" >&6
6315
14254
if test "${ac_cv_var_override_hz+set}" = set; then
6316
14255
  echo $ECHO_N "(cached) $ECHO_C" >&6
6317
14256
else
6318
14257
  ac_cv_var_override_hz=no
6319
 
case "$target" in
 
14258
case "$host" in
6320
14259
 alpha*-dec-osf4*|alpha*-dec-osf5*)
6321
14260
    ac_cv_var_override_hz=yes
6322
14261
    ;;
6331
14270
    ;;
6332
14271
esac
6333
14272
fi
6334
 
echo "$as_me:6334: result: $ac_cv_var_override_hz" >&5
 
14273
echo "$as_me:$LINENO: result: $ac_cv_var_override_hz" >&5
6335
14274
echo "${ECHO_T}$ac_cv_var_override_hz" >&6
6336
14275
case "$ac_cv_var_override_hz" in
6337
14276
 yes)
6338
 
    cat >>confdefs.h <<\EOF
 
14277
 
 
14278
cat >>confdefs.h <<\_ACEOF
6339
14279
#define OVERRIDE_HZ 1
6340
 
EOF
 
14280
_ACEOF
6341
14281
 
6342
14282
    ;;
6343
14283
esac
6344
14284
 
6345
 
echo "$as_me:6345: checking struct sigaction for sa_sigaction" >&5
 
14285
 
 
14286
 
 
14287
echo "$as_me:$LINENO: checking struct sigaction for sa_sigaction" >&5
6346
14288
echo $ECHO_N "checking struct sigaction for sa_sigaction... $ECHO_C" >&6
6347
14289
if test "${ac_cv_struct_sigaction_has_sa_sigaction+set}" = set; then
6348
14290
  echo $ECHO_N "(cached) $ECHO_C" >&6
6349
14291
else
6350
14292
 
6351
14293
    cat >conftest.$ac_ext <<_ACEOF
6352
 
#line 6352 "configure"
6353
 
#include "confdefs.h"
 
14294
/* confdefs.h.  */
 
14295
_ACEOF
 
14296
cat confdefs.h >>conftest.$ac_ext
 
14297
cat >>conftest.$ac_ext <<_ACEOF
 
14298
/* end confdefs.h.  */
6354
14299
#include <signal.h>
6355
14300
int
6356
14301
main ()
6361
14306
}
6362
14307
_ACEOF
6363
14308
rm -f conftest.$ac_objext
6364
 
if { (eval echo "$as_me:6364: \"$ac_compile\"") >&5
6365
 
  (eval $ac_compile) 2>&5
 
14309
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14310
  (eval $ac_compile) 2>conftest.er1
6366
14311
  ac_status=$?
6367
 
  echo "$as_me:6367: \$? = $ac_status" >&5
 
14312
  grep -v '^ *+' conftest.er1 >conftest.err
 
14313
  rm -f conftest.er1
 
14314
  cat conftest.err >&5
 
14315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368
14316
  (exit $ac_status); } &&
6369
 
         { ac_try='test -s conftest.$ac_objext'
6370
 
  { (eval echo "$as_me:6370: \"$ac_try\"") >&5
6371
 
  (eval $ac_try) 2>&5
6372
 
  ac_status=$?
6373
 
  echo "$as_me:6373: \$? = $ac_status" >&5
 
14317
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14318
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14319
  (eval $ac_try) 2>&5
 
14320
  ac_status=$?
 
14321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14322
  (exit $ac_status); }; } &&
 
14323
         { ac_try='test -s conftest.$ac_objext'
 
14324
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14325
  (eval $ac_try) 2>&5
 
14326
  ac_status=$?
 
14327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374
14328
  (exit $ac_status); }; }; then
6375
14329
  ac_cv_struct_sigaction_has_sa_sigaction=yes
6376
14330
else
6377
14331
  echo "$as_me: failed program was:" >&5
6378
 
cat conftest.$ac_ext >&5
 
14332
sed 's/^/| /' conftest.$ac_ext >&5
 
14333
 
6379
14334
ac_cv_struct_sigaction_has_sa_sigaction=no
6380
14335
 
6381
14336
fi
6382
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
14337
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14338
 
6383
14339
 
6384
14340
fi
6385
 
echo "$as_me:6385: result: $ac_cv_struct_sigaction_has_sa_sigaction" >&5
 
14341
echo "$as_me:$LINENO: result: $ac_cv_struct_sigaction_has_sa_sigaction" >&5
6386
14342
echo "${ECHO_T}$ac_cv_struct_sigaction_has_sa_sigaction" >&6
6387
14343
if test $ac_cv_struct_sigaction_has_sa_sigaction = yes; then
6388
 
  cat >>confdefs.h <<\EOF
 
14344
 
 
14345
cat >>confdefs.h <<\_ACEOF
6389
14346
#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1
6390
 
EOF
 
14347
_ACEOF
6391
14348
 
6392
14349
fi
6393
14350
 
6394
 
echo "$as_me:6394: checking for struct ppsclockev" >&5
 
14351
echo "$as_me:$LINENO: checking for struct ppsclockev" >&5
6395
14352
echo $ECHO_N "checking for struct ppsclockev... $ECHO_C" >&6
6396
14353
if test "${ac_cv_struct_ppsclockev+set}" = set; then
6397
14354
  echo $ECHO_N "(cached) $ECHO_C" >&6
6398
14355
else
6399
14356
  cat >conftest.$ac_ext <<_ACEOF
6400
 
#line 6400 "configure"
6401
 
#include "confdefs.h"
 
14357
/* confdefs.h.  */
 
14358
_ACEOF
 
14359
cat confdefs.h >>conftest.$ac_ext
 
14360
cat >>conftest.$ac_ext <<_ACEOF
 
14361
/* end confdefs.h.  */
6402
14362
 
6403
14363
#include <sys/types.h>
6404
14364
#ifdef HAVE_SYS_TERMIOS_H
6421
14381
}
6422
14382
_ACEOF
6423
14383
rm -f conftest.$ac_objext
6424
 
if { (eval echo "$as_me:6424: \"$ac_compile\"") >&5
6425
 
  (eval $ac_compile) 2>&5
 
14384
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14385
  (eval $ac_compile) 2>conftest.er1
6426
14386
  ac_status=$?
6427
 
  echo "$as_me:6427: \$? = $ac_status" >&5
 
14387
  grep -v '^ *+' conftest.er1 >conftest.err
 
14388
  rm -f conftest.er1
 
14389
  cat conftest.err >&5
 
14390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428
14391
  (exit $ac_status); } &&
6429
 
         { ac_try='test -s conftest.$ac_objext'
6430
 
  { (eval echo "$as_me:6430: \"$ac_try\"") >&5
6431
 
  (eval $ac_try) 2>&5
6432
 
  ac_status=$?
6433
 
  echo "$as_me:6433: \$? = $ac_status" >&5
 
14392
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14393
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14394
  (eval $ac_try) 2>&5
 
14395
  ac_status=$?
 
14396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14397
  (exit $ac_status); }; } &&
 
14398
         { ac_try='test -s conftest.$ac_objext'
 
14399
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14400
  (eval $ac_try) 2>&5
 
14401
  ac_status=$?
 
14402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434
14403
  (exit $ac_status); }; }; then
6435
14404
  ac_cv_struct_ppsclockev=yes
6436
14405
else
6437
14406
  echo "$as_me: failed program was:" >&5
6438
 
cat conftest.$ac_ext >&5
 
14407
sed 's/^/| /' conftest.$ac_ext >&5
 
14408
 
6439
14409
ac_cv_struct_ppsclockev=no
6440
14410
fi
6441
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
14411
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6442
14412
 
6443
14413
fi
6444
 
echo "$as_me:6444: result: $ac_cv_struct_ppsclockev" >&5
 
14414
echo "$as_me:$LINENO: result: $ac_cv_struct_ppsclockev" >&5
6445
14415
echo "${ECHO_T}$ac_cv_struct_ppsclockev" >&6
6446
14416
if test $ac_cv_struct_ppsclockev = yes; then
6447
 
    cat >>confdefs.h <<\EOF
 
14417
 
 
14418
cat >>confdefs.h <<\_ACEOF
6448
14419
#define HAVE_STRUCT_PPSCLOCKEV 1
6449
 
EOF
 
14420
_ACEOF
6450
14421
 
6451
14422
fi
6452
14423
 
6453
 
echo "$as_me:6453: checking struct sockaddr for sa_len" >&5
 
14424
echo "$as_me:$LINENO: checking struct sockaddr for sa_len" >&5
6454
14425
echo $ECHO_N "checking struct sockaddr for sa_len... $ECHO_C" >&6
6455
14426
if test "${ac_cv_struct_sockaddr_has_sa_len+set}" = set; then
6456
14427
  echo $ECHO_N "(cached) $ECHO_C" >&6
6457
14428
else
6458
14429
  cat >conftest.$ac_ext <<_ACEOF
6459
 
#line 6459 "configure"
6460
 
#include "confdefs.h"
 
14430
/* confdefs.h.  */
 
14431
_ACEOF
 
14432
cat confdefs.h >>conftest.$ac_ext
 
14433
cat >>conftest.$ac_ext <<_ACEOF
 
14434
/* end confdefs.h.  */
6461
14435
 
6462
14436
#include <sys/types.h>
6463
14437
#include <sys/socket.h>
6472
14446
}
6473
14447
_ACEOF
6474
14448
rm -f conftest.$ac_objext
6475
 
if { (eval echo "$as_me:6475: \"$ac_compile\"") >&5
6476
 
  (eval $ac_compile) 2>&5
 
14449
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14450
  (eval $ac_compile) 2>conftest.er1
6477
14451
  ac_status=$?
6478
 
  echo "$as_me:6478: \$? = $ac_status" >&5
 
14452
  grep -v '^ *+' conftest.er1 >conftest.err
 
14453
  rm -f conftest.er1
 
14454
  cat conftest.err >&5
 
14455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479
14456
  (exit $ac_status); } &&
6480
 
         { ac_try='test -s conftest.$ac_objext'
6481
 
  { (eval echo "$as_me:6481: \"$ac_try\"") >&5
6482
 
  (eval $ac_try) 2>&5
6483
 
  ac_status=$?
6484
 
  echo "$as_me:6484: \$? = $ac_status" >&5
 
14457
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
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); }; } &&
 
14463
         { ac_try='test -s conftest.$ac_objext'
 
14464
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14465
  (eval $ac_try) 2>&5
 
14466
  ac_status=$?
 
14467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485
14468
  (exit $ac_status); }; }; then
6486
14469
  ac_cv_struct_sockaddr_has_sa_len=yes
6487
14470
else
6488
14471
  echo "$as_me: failed program was:" >&5
6489
 
cat conftest.$ac_ext >&5
 
14472
sed 's/^/| /' conftest.$ac_ext >&5
 
14473
 
6490
14474
ac_cv_struct_sockaddr_has_sa_len=no
6491
14475
fi
6492
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
14476
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6493
14477
 
6494
14478
fi
6495
 
echo "$as_me:6495: result: $ac_cv_struct_sockaddr_has_sa_len" >&5
 
14479
echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_has_sa_len" >&5
6496
14480
echo "${ECHO_T}$ac_cv_struct_sockaddr_has_sa_len" >&6
6497
14481
if test $ac_cv_struct_sockaddr_has_sa_len = yes; then
6498
 
    cat >>confdefs.h <<\EOF
 
14482
 
 
14483
cat >>confdefs.h <<\_ACEOF
6499
14484
#define HAVE_SA_LEN_IN_STRUCT_SOCKADDR 1
6500
 
EOF
6501
 
 
6502
 
fi
6503
 
 
6504
 
echo "$as_me:6504: checking struct clockinfo for hz" >&5
 
14485
_ACEOF
 
14486
 
 
14487
fi
 
14488
 
 
14489
echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
 
14490
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
 
14491
if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
 
14492
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14493
else
 
14494
  cat >conftest.$ac_ext <<_ACEOF
 
14495
/* confdefs.h.  */
 
14496
_ACEOF
 
14497
cat confdefs.h >>conftest.$ac_ext
 
14498
cat >>conftest.$ac_ext <<_ACEOF
 
14499
/* end confdefs.h.  */
 
14500
 
 
14501
#include <sys/types.h>
 
14502
#include <sys/socket.h>
 
14503
#include <netinet/in.h>
 
14504
 
 
14505
int
 
14506
main ()
 
14507
{
 
14508
 
 
14509
extern struct sockaddr_storage *ss;
 
14510
return 0;
 
14511
  ;
 
14512
  return 0;
 
14513
}
 
14514
_ACEOF
 
14515
rm -f conftest.$ac_objext
 
14516
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14517
  (eval $ac_compile) 2>conftest.er1
 
14518
  ac_status=$?
 
14519
  grep -v '^ *+' conftest.er1 >conftest.err
 
14520
  rm -f conftest.er1
 
14521
  cat conftest.err >&5
 
14522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14523
  (exit $ac_status); } &&
 
14524
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14525
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14526
  (eval $ac_try) 2>&5
 
14527
  ac_status=$?
 
14528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14529
  (exit $ac_status); }; } &&
 
14530
         { ac_try='test -s conftest.$ac_objext'
 
14531
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14532
  (eval $ac_try) 2>&5
 
14533
  ac_status=$?
 
14534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14535
  (exit $ac_status); }; }; then
 
14536
  ac_cv_struct_sockaddr_storage=yes
 
14537
else
 
14538
  echo "$as_me: failed program was:" >&5
 
14539
sed 's/^/| /' conftest.$ac_ext >&5
 
14540
 
 
14541
ac_cv_struct_sockaddr_storage=no
 
14542
fi
 
14543
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14544
 
 
14545
fi
 
14546
echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
 
14547
echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
 
14548
if test $ac_cv_struct_sockaddr_storage = yes; then
 
14549
 
 
14550
cat >>confdefs.h <<\_ACEOF
 
14551
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
 
14552
_ACEOF
 
14553
 
 
14554
fi
 
14555
 
 
14556
echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
 
14557
echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
 
14558
if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
 
14559
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14560
else
 
14561
 
 
14562
        cat >conftest.$ac_ext <<_ACEOF
 
14563
/* confdefs.h.  */
 
14564
_ACEOF
 
14565
cat confdefs.h >>conftest.$ac_ext
 
14566
cat >>conftest.$ac_ext <<_ACEOF
 
14567
/* end confdefs.h.  */
 
14568
 
 
14569
#include <sys/types.h>
 
14570
#include <sys/socket.h>
 
14571
 
 
14572
int
 
14573
main ()
 
14574
{
 
14575
 struct sockaddr_storage s; s.ss_family = 1;
 
14576
  ;
 
14577
  return 0;
 
14578
}
 
14579
_ACEOF
 
14580
rm -f conftest.$ac_objext
 
14581
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14582
  (eval $ac_compile) 2>conftest.er1
 
14583
  ac_status=$?
 
14584
  grep -v '^ *+' conftest.er1 >conftest.err
 
14585
  rm -f conftest.er1
 
14586
  cat conftest.err >&5
 
14587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14588
  (exit $ac_status); } &&
 
14589
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14590
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14591
  (eval $ac_try) 2>&5
 
14592
  ac_status=$?
 
14593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14594
  (exit $ac_status); }; } &&
 
14595
         { ac_try='test -s conftest.$ac_objext'
 
14596
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14597
  (eval $ac_try) 2>&5
 
14598
  ac_status=$?
 
14599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14600
  (exit $ac_status); }; }; then
 
14601
   ac_cv_have_ss_family_in_struct_ss="yes"
 
14602
else
 
14603
  echo "$as_me: failed program was:" >&5
 
14604
sed 's/^/| /' conftest.$ac_ext >&5
 
14605
 
 
14606
 ac_cv_have_ss_family_in_struct_ss="no"
 
14607
fi
 
14608
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14609
 
 
14610
fi
 
14611
echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
 
14612
echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
 
14613
if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
 
14614
 
 
14615
cat >>confdefs.h <<\_ACEOF
 
14616
#define HAVE_SS_FAMILY_IN_SS 1
 
14617
_ACEOF
 
14618
 
 
14619
else
 
14620
    # Hack around a problem...
 
14621
    case "$host" in
 
14622
     *-*-hpux11.11) CPPFLAGS="$CPPFLAGS -D_NETINET_IN6_H"
 
14623
        ;;
 
14624
    esac
 
14625
fi
 
14626
 
 
14627
echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
 
14628
echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
 
14629
if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
 
14630
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14631
else
 
14632
 
 
14633
        cat >conftest.$ac_ext <<_ACEOF
 
14634
/* confdefs.h.  */
 
14635
_ACEOF
 
14636
cat confdefs.h >>conftest.$ac_ext
 
14637
cat >>conftest.$ac_ext <<_ACEOF
 
14638
/* end confdefs.h.  */
 
14639
 
 
14640
#include <sys/types.h>
 
14641
#include <sys/socket.h>
 
14642
 
 
14643
int
 
14644
main ()
 
14645
{
 
14646
 struct sockaddr_storage s; s.__ss_family = 1;
 
14647
  ;
 
14648
  return 0;
 
14649
}
 
14650
_ACEOF
 
14651
rm -f conftest.$ac_objext
 
14652
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14653
  (eval $ac_compile) 2>conftest.er1
 
14654
  ac_status=$?
 
14655
  grep -v '^ *+' conftest.er1 >conftest.err
 
14656
  rm -f conftest.er1
 
14657
  cat conftest.err >&5
 
14658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14659
  (exit $ac_status); } &&
 
14660
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14661
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14662
  (eval $ac_try) 2>&5
 
14663
  ac_status=$?
 
14664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14665
  (exit $ac_status); }; } &&
 
14666
         { ac_try='test -s conftest.$ac_objext'
 
14667
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14668
  (eval $ac_try) 2>&5
 
14669
  ac_status=$?
 
14670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14671
  (exit $ac_status); }; }; then
 
14672
   ac_cv_have___ss_family_in_struct_ss="yes"
 
14673
else
 
14674
  echo "$as_me: failed program was:" >&5
 
14675
sed 's/^/| /' conftest.$ac_ext >&5
 
14676
 
 
14677
 ac_cv_have___ss_family_in_struct_ss="no"
 
14678
 
 
14679
fi
 
14680
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14681
 
 
14682
fi
 
14683
echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
 
14684
echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
 
14685
if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
 
14686
 
 
14687
cat >>confdefs.h <<\_ACEOF
 
14688
#define HAVE___SS_FAMILY_IN_SS 1
 
14689
_ACEOF
 
14690
 
 
14691
fi
 
14692
 
 
14693
 
 
14694
 
 
14695
 
 
14696
case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
 
14697
  *yes*)
 
14698
    echo "$as_me:$LINENO: checking for struct snd_size" >&5
 
14699
echo $ECHO_N "checking for struct snd_size... $ECHO_C" >&6
 
14700
if test "${ac_cv_struct_snd_size+set}" = set; then
 
14701
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14702
else
 
14703
  cat >conftest.$ac_ext <<_ACEOF
 
14704
/* confdefs.h.  */
 
14705
_ACEOF
 
14706
cat confdefs.h >>conftest.$ac_ext
 
14707
cat >>conftest.$ac_ext <<_ACEOF
 
14708
/* end confdefs.h.  */
 
14709
 
 
14710
#ifdef HAVE_MACHINE_SOUNDCARD_H
 
14711
# include <machine/soundcard.h>
 
14712
#endif
 
14713
#ifdef HAVE_SYS_SOUNDCARD_H
 
14714
# include <sys/soundcard.h>
 
14715
#endif
 
14716
int
 
14717
main ()
 
14718
{
 
14719
 
 
14720
extern struct snd_size *ss;
 
14721
return ss->rec_size;
 
14722
  ;
 
14723
  return 0;
 
14724
}
 
14725
_ACEOF
 
14726
rm -f conftest.$ac_objext
 
14727
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14728
  (eval $ac_compile) 2>conftest.er1
 
14729
  ac_status=$?
 
14730
  grep -v '^ *+' conftest.er1 >conftest.err
 
14731
  rm -f conftest.er1
 
14732
  cat conftest.err >&5
 
14733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14734
  (exit $ac_status); } &&
 
14735
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14736
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14737
  (eval $ac_try) 2>&5
 
14738
  ac_status=$?
 
14739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14740
  (exit $ac_status); }; } &&
 
14741
         { ac_try='test -s conftest.$ac_objext'
 
14742
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14743
  (eval $ac_try) 2>&5
 
14744
  ac_status=$?
 
14745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14746
  (exit $ac_status); }; }; then
 
14747
  ac_cv_struct_snd_size=yes
 
14748
else
 
14749
  echo "$as_me: failed program was:" >&5
 
14750
sed 's/^/| /' conftest.$ac_ext >&5
 
14751
 
 
14752
ac_cv_struct_snd_size=no
 
14753
fi
 
14754
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14755
 
 
14756
fi
 
14757
echo "$as_me:$LINENO: result: $ac_cv_struct_snd_size" >&5
 
14758
echo "${ECHO_T}$ac_cv_struct_snd_size" >&6
 
14759
    case "$ac_cv_struct_snd_size" in
 
14760
     yes)
 
14761
cat >>confdefs.h <<\_ACEOF
 
14762
#define HAVE_STRUCT_SND_SIZE 1
 
14763
_ACEOF
 
14764
 ;;
 
14765
    esac
 
14766
    ;;
 
14767
esac
 
14768
 
 
14769
echo "$as_me:$LINENO: checking struct clockinfo for hz" >&5
6505
14770
echo $ECHO_N "checking struct clockinfo for hz... $ECHO_C" >&6
6506
14771
if test "${ac_cv_struct_clockinfo_has_hz+set}" = set; then
6507
14772
  echo $ECHO_N "(cached) $ECHO_C" >&6
6508
14773
else
6509
14774
  cat >conftest.$ac_ext <<_ACEOF
6510
 
#line 6510 "configure"
6511
 
#include "confdefs.h"
 
14775
/* confdefs.h.  */
 
14776
_ACEOF
 
14777
cat confdefs.h >>conftest.$ac_ext
 
14778
cat >>conftest.$ac_ext <<_ACEOF
 
14779
/* end confdefs.h.  */
6512
14780
 
6513
14781
#include <sys/time.h>
6514
14782
int
6522
14790
}
6523
14791
_ACEOF
6524
14792
rm -f conftest.$ac_objext
6525
 
if { (eval echo "$as_me:6525: \"$ac_compile\"") >&5
6526
 
  (eval $ac_compile) 2>&5
 
14793
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14794
  (eval $ac_compile) 2>conftest.er1
6527
14795
  ac_status=$?
6528
 
  echo "$as_me:6528: \$? = $ac_status" >&5
 
14796
  grep -v '^ *+' conftest.er1 >conftest.err
 
14797
  rm -f conftest.er1
 
14798
  cat conftest.err >&5
 
14799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529
14800
  (exit $ac_status); } &&
6530
 
         { ac_try='test -s conftest.$ac_objext'
6531
 
  { (eval echo "$as_me:6531: \"$ac_try\"") >&5
6532
 
  (eval $ac_try) 2>&5
6533
 
  ac_status=$?
6534
 
  echo "$as_me:6534: \$? = $ac_status" >&5
 
14801
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14802
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14803
  (eval $ac_try) 2>&5
 
14804
  ac_status=$?
 
14805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14806
  (exit $ac_status); }; } &&
 
14807
         { ac_try='test -s conftest.$ac_objext'
 
14808
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14809
  (eval $ac_try) 2>&5
 
14810
  ac_status=$?
 
14811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535
14812
  (exit $ac_status); }; }; then
6536
14813
  ac_cv_struct_clockinfo_has_hz=yes
6537
14814
else
6538
14815
  echo "$as_me: failed program was:" >&5
6539
 
cat conftest.$ac_ext >&5
 
14816
sed 's/^/| /' conftest.$ac_ext >&5
 
14817
 
6540
14818
ac_cv_struct_clockinfo_has_hz=no
6541
14819
fi
6542
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
14820
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6543
14821
 
6544
14822
fi
6545
 
echo "$as_me:6545: result: $ac_cv_struct_clockinfo_has_hz" >&5
 
14823
echo "$as_me:$LINENO: result: $ac_cv_struct_clockinfo_has_hz" >&5
6546
14824
echo "${ECHO_T}$ac_cv_struct_clockinfo_has_hz" >&6
6547
14825
if test $ac_cv_struct_clockinfo_has_hz = yes; then
6548
 
    cat >>confdefs.h <<\EOF
 
14826
 
 
14827
cat >>confdefs.h <<\_ACEOF
6549
14828
#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1
6550
 
EOF
 
14829
_ACEOF
6551
14830
 
6552
14831
fi
6553
14832
 
6554
 
echo "$as_me:6554: checking struct clockinfo for tickadj" >&5
 
14833
echo "$as_me:$LINENO: checking struct clockinfo for tickadj" >&5
6555
14834
echo $ECHO_N "checking struct clockinfo for tickadj... $ECHO_C" >&6
6556
14835
if test "${ac_cv_struct_clockinfo_has_tickadj+set}" = set; then
6557
14836
  echo $ECHO_N "(cached) $ECHO_C" >&6
6558
14837
else
6559
14838
  cat >conftest.$ac_ext <<_ACEOF
6560
 
#line 6560 "configure"
6561
 
#include "confdefs.h"
 
14839
/* confdefs.h.  */
 
14840
_ACEOF
 
14841
cat confdefs.h >>conftest.$ac_ext
 
14842
cat >>conftest.$ac_ext <<_ACEOF
 
14843
/* end confdefs.h.  */
6562
14844
 
6563
14845
#include <sys/time.h>
6564
14846
int
6572
14854
}
6573
14855
_ACEOF
6574
14856
rm -f conftest.$ac_objext
6575
 
if { (eval echo "$as_me:6575: \"$ac_compile\"") >&5
6576
 
  (eval $ac_compile) 2>&5
 
14857
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14858
  (eval $ac_compile) 2>conftest.er1
6577
14859
  ac_status=$?
6578
 
  echo "$as_me:6578: \$? = $ac_status" >&5
 
14860
  grep -v '^ *+' conftest.er1 >conftest.err
 
14861
  rm -f conftest.er1
 
14862
  cat conftest.err >&5
 
14863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579
14864
  (exit $ac_status); } &&
6580
 
         { ac_try='test -s conftest.$ac_objext'
6581
 
  { (eval echo "$as_me:6581: \"$ac_try\"") >&5
6582
 
  (eval $ac_try) 2>&5
6583
 
  ac_status=$?
6584
 
  echo "$as_me:6584: \$? = $ac_status" >&5
 
14865
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14866
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14867
  (eval $ac_try) 2>&5
 
14868
  ac_status=$?
 
14869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14870
  (exit $ac_status); }; } &&
 
14871
         { ac_try='test -s conftest.$ac_objext'
 
14872
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14873
  (eval $ac_try) 2>&5
 
14874
  ac_status=$?
 
14875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585
14876
  (exit $ac_status); }; }; then
6586
14877
  ac_cv_struct_clockinfo_has_tickadj=yes
6587
14878
else
6588
14879
  echo "$as_me: failed program was:" >&5
6589
 
cat conftest.$ac_ext >&5
 
14880
sed 's/^/| /' conftest.$ac_ext >&5
 
14881
 
6590
14882
ac_cv_struct_clockinfo_has_tickadj=no
6591
14883
fi
6592
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
14884
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6593
14885
 
6594
14886
fi
6595
 
echo "$as_me:6595: result: $ac_cv_struct_clockinfo_has_tickadj" >&5
 
14887
echo "$as_me:$LINENO: result: $ac_cv_struct_clockinfo_has_tickadj" >&5
6596
14888
echo "${ECHO_T}$ac_cv_struct_clockinfo_has_tickadj" >&6
6597
14889
if test $ac_cv_struct_clockinfo_has_tickadj = yes; then
6598
 
    cat >>confdefs.h <<\EOF
 
14890
 
 
14891
cat >>confdefs.h <<\_ACEOF
6599
14892
#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1
6600
 
EOF
 
14893
_ACEOF
6601
14894
 
6602
14895
fi
6603
14896
 
6604
 
echo "$as_me:6604: checking for struct timespec" >&5
 
14897
echo "$as_me:$LINENO: checking for struct timespec" >&5
6605
14898
echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
6606
14899
if test "${ac_cv_struct_timespec+set}" = set; then
6607
14900
  echo $ECHO_N "(cached) $ECHO_C" >&6
6608
14901
else
6609
14902
  cat >conftest.$ac_ext <<_ACEOF
6610
 
#line 6610 "configure"
6611
 
#include "confdefs.h"
 
14903
/* confdefs.h.  */
 
14904
_ACEOF
 
14905
cat confdefs.h >>conftest.$ac_ext
 
14906
cat >>conftest.$ac_ext <<_ACEOF
 
14907
/* end confdefs.h.  */
6612
14908
 
6613
14909
#include <sys/time.h>
6614
14910
/* Under SunOS, timespec is in sys/timepps.h, which needs errno.h and FRAC */
6628
14924
}
6629
14925
_ACEOF
6630
14926
rm -f conftest.$ac_objext
6631
 
if { (eval echo "$as_me:6631: \"$ac_compile\"") >&5
6632
 
  (eval $ac_compile) 2>&5
 
14927
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14928
  (eval $ac_compile) 2>conftest.er1
6633
14929
  ac_status=$?
6634
 
  echo "$as_me:6634: \$? = $ac_status" >&5
 
14930
  grep -v '^ *+' conftest.er1 >conftest.err
 
14931
  rm -f conftest.er1
 
14932
  cat conftest.err >&5
 
14933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635
14934
  (exit $ac_status); } &&
6636
 
         { ac_try='test -s conftest.$ac_objext'
6637
 
  { (eval echo "$as_me:6637: \"$ac_try\"") >&5
6638
 
  (eval $ac_try) 2>&5
6639
 
  ac_status=$?
6640
 
  echo "$as_me:6640: \$? = $ac_status" >&5
 
14935
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14936
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14937
  (eval $ac_try) 2>&5
 
14938
  ac_status=$?
 
14939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14940
  (exit $ac_status); }; } &&
 
14941
         { ac_try='test -s conftest.$ac_objext'
 
14942
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14943
  (eval $ac_try) 2>&5
 
14944
  ac_status=$?
 
14945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641
14946
  (exit $ac_status); }; }; then
6642
14947
  ac_cv_struct_timespec=yes
6643
14948
else
6644
14949
  echo "$as_me: failed program was:" >&5
6645
 
cat conftest.$ac_ext >&5
 
14950
sed 's/^/| /' conftest.$ac_ext >&5
 
14951
 
6646
14952
ac_cv_struct_timespec=no
6647
14953
fi
6648
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
14954
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6649
14955
fi
6650
 
echo "$as_me:6650: result: $ac_cv_struct_timespec" >&5
 
14956
echo "$as_me:$LINENO: result: $ac_cv_struct_timespec" >&5
6651
14957
echo "${ECHO_T}$ac_cv_struct_timespec" >&6
6652
14958
if test $ac_cv_struct_timespec = yes; then
6653
14959
 
6654
 
cat >>confdefs.h <<\EOF
 
14960
cat >>confdefs.h <<\_ACEOF
6655
14961
#define HAVE_STRUCT_TIMESPEC 1
6656
 
EOF
 
14962
_ACEOF
6657
14963
 
6658
14964
fi
6659
14965
 
6660
 
echo "$as_me:6660: checking for struct ntptimeval" >&5
 
14966
echo "$as_me:$LINENO: checking for struct ntptimeval" >&5
6661
14967
echo $ECHO_N "checking for struct ntptimeval... $ECHO_C" >&6
6662
14968
if test "${ac_cv_struct_ntptimeval+set}" = set; then
6663
14969
  echo $ECHO_N "(cached) $ECHO_C" >&6
6664
14970
else
6665
14971
  cat >conftest.$ac_ext <<_ACEOF
6666
 
#line 6666 "configure"
6667
 
#include "confdefs.h"
 
14972
/* confdefs.h.  */
 
14973
_ACEOF
 
14974
cat confdefs.h >>conftest.$ac_ext
 
14975
cat >>conftest.$ac_ext <<_ACEOF
 
14976
/* end confdefs.h.  */
6668
14977
 
6669
14978
#include <sys/time.h>
6670
14979
#include <sys/timex.h>
6677
14986
}
6678
14987
_ACEOF
6679
14988
rm -f conftest.$ac_objext
6680
 
if { (eval echo "$as_me:6680: \"$ac_compile\"") >&5
6681
 
  (eval $ac_compile) 2>&5
 
14989
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14990
  (eval $ac_compile) 2>conftest.er1
6682
14991
  ac_status=$?
6683
 
  echo "$as_me:6683: \$? = $ac_status" >&5
 
14992
  grep -v '^ *+' conftest.er1 >conftest.err
 
14993
  rm -f conftest.er1
 
14994
  cat conftest.err >&5
 
14995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684
14996
  (exit $ac_status); } &&
6685
 
         { ac_try='test -s conftest.$ac_objext'
6686
 
  { (eval echo "$as_me:6686: \"$ac_try\"") >&5
6687
 
  (eval $ac_try) 2>&5
6688
 
  ac_status=$?
6689
 
  echo "$as_me:6689: \$? = $ac_status" >&5
 
14997
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14998
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14999
  (eval $ac_try) 2>&5
 
15000
  ac_status=$?
 
15001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15002
  (exit $ac_status); }; } &&
 
15003
         { ac_try='test -s conftest.$ac_objext'
 
15004
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15005
  (eval $ac_try) 2>&5
 
15006
  ac_status=$?
 
15007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690
15008
  (exit $ac_status); }; }; then
6691
15009
  ac_cv_struct_ntptimeval=yes
6692
15010
else
6693
15011
  echo "$as_me: failed program was:" >&5
6694
 
cat conftest.$ac_ext >&5
 
15012
sed 's/^/| /' conftest.$ac_ext >&5
 
15013
 
6695
15014
ac_cv_struct_ntptimeval=no
6696
15015
fi
6697
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
15016
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6698
15017
fi
6699
 
echo "$as_me:6699: result: $ac_cv_struct_ntptimeval" >&5
 
15018
echo "$as_me:$LINENO: result: $ac_cv_struct_ntptimeval" >&5
6700
15019
echo "${ECHO_T}$ac_cv_struct_ntptimeval" >&6
6701
15020
if test $ac_cv_struct_ntptimeval = yes; then
6702
15021
 
6703
 
cat >>confdefs.h <<\EOF
 
15022
cat >>confdefs.h <<\_ACEOF
6704
15023
#define HAVE_STRUCT_NTPTIMEVAL 1
6705
 
EOF
 
15024
_ACEOF
6706
15025
 
6707
15026
fi
6708
15027
 
6709
 
echo "$as_me:6709: checking for struct ntptimeval.time.tv_nsec" >&5
 
15028
echo "$as_me:$LINENO: checking for struct ntptimeval.time.tv_nsec" >&5
6710
15029
echo $ECHO_N "checking for struct ntptimeval.time.tv_nsec... $ECHO_C" >&6
6711
15030
if test "${ac_cv_member_struct_ntptimeval_time_tv_nsec+set}" = set; then
6712
15031
  echo $ECHO_N "(cached) $ECHO_C" >&6
6713
15032
else
6714
15033
  cat >conftest.$ac_ext <<_ACEOF
6715
 
#line 6715 "configure"
6716
 
#include "confdefs.h"
6717
 
#ifdef HAVE_SYS_TIME_H
6718
 
#include <sys/time.h>
6719
 
#else
6720
 
# ifdef HAVE_TIME_H
6721
 
# include <time.h>
6722
 
# endif
6723
 
#endif
6724
 
#ifdef HAVE_SYS_TIMEX_H
6725
 
#include <sys/timex.h>
6726
 
#else
6727
 
# ifdef HAVE_TIMEX_H
6728
 
# include <timex.h>
6729
 
# endif
6730
 
#endif
6731
 
 
6732
 
int
6733
 
main ()
6734
 
{
6735
 
struct ntptimeval foo;
6736
 
foo.time.tv_nsec;
6737
 
  ;
6738
 
  return 0;
6739
 
}
6740
 
_ACEOF
6741
 
rm -f conftest.$ac_objext
6742
 
if { (eval echo "$as_me:6742: \"$ac_compile\"") >&5
6743
 
  (eval $ac_compile) 2>&5
6744
 
  ac_status=$?
6745
 
  echo "$as_me:6745: \$? = $ac_status" >&5
6746
 
  (exit $ac_status); } &&
6747
 
         { ac_try='test -s conftest.$ac_objext'
6748
 
  { (eval echo "$as_me:6748: \"$ac_try\"") >&5
6749
 
  (eval $ac_try) 2>&5
6750
 
  ac_status=$?
6751
 
  echo "$as_me:6751: \$? = $ac_status" >&5
6752
 
  (exit $ac_status); }; }; then
6753
 
  ac_cv_member_struct_ntptimeval_time_tv_nsec=yes
6754
 
else
6755
 
  echo "$as_me: failed program was:" >&5
6756
 
cat conftest.$ac_ext >&5
 
15034
/* confdefs.h.  */
 
15035
_ACEOF
 
15036
cat confdefs.h >>conftest.$ac_ext
 
15037
cat >>conftest.$ac_ext <<_ACEOF
 
15038
/* end confdefs.h.  */
 
15039
#ifdef HAVE_SYS_TIME_H
 
15040
#include <sys/time.h>
 
15041
#else
 
15042
# ifdef HAVE_TIME_H
 
15043
# include <time.h>
 
15044
# endif
 
15045
#endif
 
15046
#ifdef HAVE_SYS_TIMEX_H
 
15047
#include <sys/timex.h>
 
15048
#else
 
15049
# ifdef HAVE_TIMEX_H
 
15050
# include <timex.h>
 
15051
# endif
 
15052
#endif
 
15053
 
 
15054
int
 
15055
main ()
 
15056
{
 
15057
static struct ntptimeval ac_aggr;
 
15058
if (ac_aggr.time.tv_nsec)
 
15059
return 0;
 
15060
  ;
 
15061
  return 0;
 
15062
}
 
15063
_ACEOF
 
15064
rm -f conftest.$ac_objext
 
15065
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15066
  (eval $ac_compile) 2>conftest.er1
 
15067
  ac_status=$?
 
15068
  grep -v '^ *+' conftest.er1 >conftest.err
 
15069
  rm -f conftest.er1
 
15070
  cat conftest.err >&5
 
15071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15072
  (exit $ac_status); } &&
 
15073
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15074
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15075
  (eval $ac_try) 2>&5
 
15076
  ac_status=$?
 
15077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15078
  (exit $ac_status); }; } &&
 
15079
         { ac_try='test -s conftest.$ac_objext'
 
15080
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15081
  (eval $ac_try) 2>&5
 
15082
  ac_status=$?
 
15083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15084
  (exit $ac_status); }; }; then
 
15085
  ac_cv_member_struct_ntptimeval_time_tv_nsec=yes
 
15086
else
 
15087
  echo "$as_me: failed program was:" >&5
 
15088
sed 's/^/| /' conftest.$ac_ext >&5
 
15089
 
 
15090
cat >conftest.$ac_ext <<_ACEOF
 
15091
/* confdefs.h.  */
 
15092
_ACEOF
 
15093
cat confdefs.h >>conftest.$ac_ext
 
15094
cat >>conftest.$ac_ext <<_ACEOF
 
15095
/* end confdefs.h.  */
 
15096
#ifdef HAVE_SYS_TIME_H
 
15097
#include <sys/time.h>
 
15098
#else
 
15099
# ifdef HAVE_TIME_H
 
15100
# include <time.h>
 
15101
# endif
 
15102
#endif
 
15103
#ifdef HAVE_SYS_TIMEX_H
 
15104
#include <sys/timex.h>
 
15105
#else
 
15106
# ifdef HAVE_TIMEX_H
 
15107
# include <timex.h>
 
15108
# endif
 
15109
#endif
 
15110
 
 
15111
int
 
15112
main ()
 
15113
{
 
15114
static struct ntptimeval ac_aggr;
 
15115
if (sizeof ac_aggr.time.tv_nsec)
 
15116
return 0;
 
15117
  ;
 
15118
  return 0;
 
15119
}
 
15120
_ACEOF
 
15121
rm -f conftest.$ac_objext
 
15122
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15123
  (eval $ac_compile) 2>conftest.er1
 
15124
  ac_status=$?
 
15125
  grep -v '^ *+' conftest.er1 >conftest.err
 
15126
  rm -f conftest.er1
 
15127
  cat conftest.err >&5
 
15128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15129
  (exit $ac_status); } &&
 
15130
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15131
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15132
  (eval $ac_try) 2>&5
 
15133
  ac_status=$?
 
15134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15135
  (exit $ac_status); }; } &&
 
15136
         { ac_try='test -s conftest.$ac_objext'
 
15137
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15138
  (eval $ac_try) 2>&5
 
15139
  ac_status=$?
 
15140
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15141
  (exit $ac_status); }; }; then
 
15142
  ac_cv_member_struct_ntptimeval_time_tv_nsec=yes
 
15143
else
 
15144
  echo "$as_me: failed program was:" >&5
 
15145
sed 's/^/| /' conftest.$ac_ext >&5
 
15146
 
6757
15147
ac_cv_member_struct_ntptimeval_time_tv_nsec=no
6758
15148
fi
6759
 
rm -f conftest.$ac_objext conftest.$ac_ext
6760
 
fi
6761
 
echo "$as_me:6761: result: $ac_cv_member_struct_ntptimeval_time_tv_nsec" >&5
 
15149
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15150
fi
 
15151
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15152
fi
 
15153
echo "$as_me:$LINENO: result: $ac_cv_member_struct_ntptimeval_time_tv_nsec" >&5
6762
15154
echo "${ECHO_T}$ac_cv_member_struct_ntptimeval_time_tv_nsec" >&6
6763
15155
if test $ac_cv_member_struct_ntptimeval_time_tv_nsec = yes; then
6764
15156
 
6765
 
cat >>confdefs.h <<EOF
 
15157
cat >>confdefs.h <<_ACEOF
6766
15158
#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
6767
 
EOF
 
15159
_ACEOF
 
15160
 
6768
15161
 
6769
15162
fi
6770
15163
 
6771
 
echo "$as_me:6771: checking for inline" >&5
 
15164
 
 
15165
echo "$as_me:$LINENO: checking for inline" >&5
6772
15166
echo $ECHO_N "checking for inline... $ECHO_C" >&6
6773
15167
if test "${ac_cv_c_inline+set}" = set; then
6774
15168
  echo $ECHO_N "(cached) $ECHO_C" >&6
6776
15170
  ac_cv_c_inline=no
6777
15171
for ac_kw in inline __inline__ __inline; do
6778
15172
  cat >conftest.$ac_ext <<_ACEOF
6779
 
#line 6779 "configure"
6780
 
#include "confdefs.h"
 
15173
/* confdefs.h.  */
 
15174
_ACEOF
 
15175
cat confdefs.h >>conftest.$ac_ext
 
15176
cat >>conftest.$ac_ext <<_ACEOF
 
15177
/* end confdefs.h.  */
6781
15178
#ifndef __cplusplus
6782
 
static $ac_kw int static_foo () {return 0; }
6783
 
$ac_kw int foo () {return 0; }
 
15179
typedef int foo_t;
 
15180
static $ac_kw foo_t static_foo () {return 0; }
 
15181
$ac_kw foo_t foo () {return 0; }
6784
15182
#endif
6785
15183
 
6786
15184
_ACEOF
6787
15185
rm -f conftest.$ac_objext
6788
 
if { (eval echo "$as_me:6788: \"$ac_compile\"") >&5
6789
 
  (eval $ac_compile) 2>&5
 
15186
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15187
  (eval $ac_compile) 2>conftest.er1
6790
15188
  ac_status=$?
6791
 
  echo "$as_me:6791: \$? = $ac_status" >&5
 
15189
  grep -v '^ *+' conftest.er1 >conftest.err
 
15190
  rm -f conftest.er1
 
15191
  cat conftest.err >&5
 
15192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792
15193
  (exit $ac_status); } &&
6793
 
         { ac_try='test -s conftest.$ac_objext'
6794
 
  { (eval echo "$as_me:6794: \"$ac_try\"") >&5
6795
 
  (eval $ac_try) 2>&5
6796
 
  ac_status=$?
6797
 
  echo "$as_me:6797: \$? = $ac_status" >&5
 
15194
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15196
  (eval $ac_try) 2>&5
 
15197
  ac_status=$?
 
15198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15199
  (exit $ac_status); }; } &&
 
15200
         { ac_try='test -s conftest.$ac_objext'
 
15201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15202
  (eval $ac_try) 2>&5
 
15203
  ac_status=$?
 
15204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798
15205
  (exit $ac_status); }; }; then
6799
15206
  ac_cv_c_inline=$ac_kw; break
6800
15207
else
6801
15208
  echo "$as_me: failed program was:" >&5
6802
 
cat conftest.$ac_ext >&5
 
15209
sed 's/^/| /' conftest.$ac_ext >&5
 
15210
 
6803
15211
fi
6804
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
15212
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6805
15213
done
6806
15214
 
6807
15215
fi
6808
 
echo "$as_me:6808: result: $ac_cv_c_inline" >&5
 
15216
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6809
15217
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
15218
 
 
15219
 
6810
15220
case $ac_cv_c_inline in
6811
15221
  inline | yes) ;;
6812
 
  no)
6813
 
cat >>confdefs.h <<\EOF
6814
 
#define inline
6815
 
EOF
6816
 
 ;;
6817
 
  *)  cat >>confdefs.h <<EOF
6818
 
#define inline $ac_cv_c_inline
6819
 
EOF
6820
 
 ;;
 
15222
  *)
 
15223
    case $ac_cv_c_inline in
 
15224
      no) ac_val=;;
 
15225
      *) ac_val=$ac_cv_c_inline;;
 
15226
    esac
 
15227
    cat >>confdefs.h <<_ACEOF
 
15228
#ifndef __cplusplus
 
15229
#define inline $ac_val
 
15230
#endif
 
15231
_ACEOF
 
15232
    ;;
6821
15233
esac
6822
15234
 
6823
 
echo "$as_me:6823: checking whether char is unsigned" >&5
 
15235
 
 
15236
echo "$as_me:$LINENO: checking whether char is unsigned" >&5
6824
15237
echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
6825
15238
if test "${ac_cv_c_char_unsigned+set}" = set; then
6826
15239
  echo $ECHO_N "(cached) $ECHO_C" >&6
6827
15240
else
6828
15241
  cat >conftest.$ac_ext <<_ACEOF
6829
 
#line 6829 "configure"
6830
 
#include "confdefs.h"
 
15242
/* confdefs.h.  */
 
15243
_ACEOF
 
15244
cat confdefs.h >>conftest.$ac_ext
 
15245
cat >>conftest.$ac_ext <<_ACEOF
 
15246
/* end confdefs.h.  */
6831
15247
$ac_includes_default
6832
15248
int
6833
15249
main ()
6834
15250
{
6835
 
int _array_ [1 - 2 * !(((char) -1) < 0)]
 
15251
static int test_array [1 - 2 * !(((char) -1) < 0)];
 
15252
test_array [0] = 0
 
15253
 
6836
15254
  ;
6837
15255
  return 0;
6838
15256
}
6839
15257
_ACEOF
6840
15258
rm -f conftest.$ac_objext
6841
 
if { (eval echo "$as_me:6841: \"$ac_compile\"") >&5
6842
 
  (eval $ac_compile) 2>&5
 
15259
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15260
  (eval $ac_compile) 2>conftest.er1
6843
15261
  ac_status=$?
6844
 
  echo "$as_me:6844: \$? = $ac_status" >&5
 
15262
  grep -v '^ *+' conftest.er1 >conftest.err
 
15263
  rm -f conftest.er1
 
15264
  cat conftest.err >&5
 
15265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845
15266
  (exit $ac_status); } &&
6846
 
         { ac_try='test -s conftest.$ac_objext'
6847
 
  { (eval echo "$as_me:6847: \"$ac_try\"") >&5
6848
 
  (eval $ac_try) 2>&5
6849
 
  ac_status=$?
6850
 
  echo "$as_me:6850: \$? = $ac_status" >&5
 
15267
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15268
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15269
  (eval $ac_try) 2>&5
 
15270
  ac_status=$?
 
15271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15272
  (exit $ac_status); }; } &&
 
15273
         { ac_try='test -s conftest.$ac_objext'
 
15274
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15275
  (eval $ac_try) 2>&5
 
15276
  ac_status=$?
 
15277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851
15278
  (exit $ac_status); }; }; then
6852
15279
  ac_cv_c_char_unsigned=no
6853
15280
else
6854
15281
  echo "$as_me: failed program was:" >&5
6855
 
cat conftest.$ac_ext >&5
 
15282
sed 's/^/| /' conftest.$ac_ext >&5
 
15283
 
6856
15284
ac_cv_c_char_unsigned=yes
6857
15285
fi
6858
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
15286
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6859
15287
fi
6860
 
echo "$as_me:6860: result: $ac_cv_c_char_unsigned" >&5
 
15288
echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
6861
15289
echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
6862
15290
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
6863
 
  cat >>confdefs.h <<\EOF
 
15291
  cat >>confdefs.h <<\_ACEOF
6864
15292
#define __CHAR_UNSIGNED__ 1
6865
 
EOF
6866
 
 
6867
 
fi
6868
 
                case "$host" in
6869
 
 $target)
6870
 
    echo "$as_me:6870: checking for signed char" >&5
6871
 
echo $ECHO_N "checking for signed char... $ECHO_C" >&6
6872
 
if test "${ac_cv_type_signed_char+set}" = set; then
6873
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6874
 
else
6875
 
  cat >conftest.$ac_ext <<_ACEOF
6876
 
#line 6876 "configure"
6877
 
#include "confdefs.h"
6878
 
$ac_includes_default
6879
 
int
6880
 
main ()
6881
 
{
6882
 
if ((signed char *) 0)
6883
 
  return 0;
6884
 
if (sizeof (signed char))
6885
 
  return 0;
6886
 
  ;
6887
 
  return 0;
6888
 
}
6889
 
_ACEOF
6890
 
rm -f conftest.$ac_objext
6891
 
if { (eval echo "$as_me:6891: \"$ac_compile\"") >&5
6892
 
  (eval $ac_compile) 2>&5
6893
 
  ac_status=$?
6894
 
  echo "$as_me:6894: \$? = $ac_status" >&5
6895
 
  (exit $ac_status); } &&
6896
 
         { ac_try='test -s conftest.$ac_objext'
6897
 
  { (eval echo "$as_me:6897: \"$ac_try\"") >&5
6898
 
  (eval $ac_try) 2>&5
6899
 
  ac_status=$?
6900
 
  echo "$as_me:6900: \$? = $ac_status" >&5
6901
 
  (exit $ac_status); }; }; then
6902
 
  ac_cv_type_signed_char=yes
6903
 
else
6904
 
  echo "$as_me: failed program was:" >&5
6905
 
cat conftest.$ac_ext >&5
6906
 
ac_cv_type_signed_char=no
6907
 
fi
6908
 
rm -f conftest.$ac_objext conftest.$ac_ext
6909
 
fi
6910
 
echo "$as_me:6910: result: $ac_cv_type_signed_char" >&5
6911
 
echo "${ECHO_T}$ac_cv_type_signed_char" >&6
6912
 
 
6913
 
echo "$as_me:6913: checking size of signed char" >&5
6914
 
echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
6915
 
if test "${ac_cv_sizeof_signed_char+set}" = set; then
6916
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6917
 
else
6918
 
  if test "$ac_cv_type_signed_char" = yes; then
6919
 
  if test "$cross_compiling" = yes; then
6920
 
  # Depending upon the size, compute the lo and hi bounds.
6921
 
cat >conftest.$ac_ext <<_ACEOF
6922
 
#line 6922 "configure"
6923
 
#include "confdefs.h"
6924
 
$ac_includes_default
6925
 
int
6926
 
main ()
6927
 
{
6928
 
int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
6929
 
  ;
6930
 
  return 0;
6931
 
}
6932
 
_ACEOF
6933
 
rm -f conftest.$ac_objext
6934
 
if { (eval echo "$as_me:6934: \"$ac_compile\"") >&5
6935
 
  (eval $ac_compile) 2>&5
6936
 
  ac_status=$?
6937
 
  echo "$as_me:6937: \$? = $ac_status" >&5
6938
 
  (exit $ac_status); } &&
6939
 
         { ac_try='test -s conftest.$ac_objext'
6940
 
  { (eval echo "$as_me:6940: \"$ac_try\"") >&5
6941
 
  (eval $ac_try) 2>&5
6942
 
  ac_status=$?
6943
 
  echo "$as_me:6943: \$? = $ac_status" >&5
6944
 
  (exit $ac_status); }; }; then
6945
 
  ac_lo=0 ac_mid=0
6946
 
  while :; do
6947
 
    cat >conftest.$ac_ext <<_ACEOF
6948
 
#line 6948 "configure"
6949
 
#include "confdefs.h"
6950
 
$ac_includes_default
6951
 
int
6952
 
main ()
6953
 
{
6954
 
int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
6955
 
  ;
6956
 
  return 0;
6957
 
}
6958
 
_ACEOF
6959
 
rm -f conftest.$ac_objext
6960
 
if { (eval echo "$as_me:6960: \"$ac_compile\"") >&5
6961
 
  (eval $ac_compile) 2>&5
6962
 
  ac_status=$?
6963
 
  echo "$as_me:6963: \$? = $ac_status" >&5
6964
 
  (exit $ac_status); } &&
6965
 
         { ac_try='test -s conftest.$ac_objext'
6966
 
  { (eval echo "$as_me:6966: \"$ac_try\"") >&5
6967
 
  (eval $ac_try) 2>&5
6968
 
  ac_status=$?
6969
 
  echo "$as_me:6969: \$? = $ac_status" >&5
6970
 
  (exit $ac_status); }; }; then
6971
 
  ac_hi=$ac_mid; break
6972
 
else
6973
 
  echo "$as_me: failed program was:" >&5
6974
 
cat conftest.$ac_ext >&5
6975
 
ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
6976
 
fi
6977
 
rm -f conftest.$ac_objext conftest.$ac_ext
6978
 
  done
6979
 
else
6980
 
  echo "$as_me: failed program was:" >&5
6981
 
cat conftest.$ac_ext >&5
6982
 
ac_hi=-1 ac_mid=-1
6983
 
  while :; do
6984
 
    cat >conftest.$ac_ext <<_ACEOF
6985
 
#line 6985 "configure"
6986
 
#include "confdefs.h"
6987
 
$ac_includes_default
6988
 
int
6989
 
main ()
6990
 
{
6991
 
int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
6992
 
  ;
6993
 
  return 0;
6994
 
}
6995
 
_ACEOF
6996
 
rm -f conftest.$ac_objext
6997
 
if { (eval echo "$as_me:6997: \"$ac_compile\"") >&5
6998
 
  (eval $ac_compile) 2>&5
6999
 
  ac_status=$?
7000
 
  echo "$as_me:7000: \$? = $ac_status" >&5
7001
 
  (exit $ac_status); } &&
7002
 
         { ac_try='test -s conftest.$ac_objext'
7003
 
  { (eval echo "$as_me:7003: \"$ac_try\"") >&5
7004
 
  (eval $ac_try) 2>&5
7005
 
  ac_status=$?
7006
 
  echo "$as_me:7006: \$? = $ac_status" >&5
7007
 
  (exit $ac_status); }; }; then
7008
 
  ac_lo=$ac_mid; break
7009
 
else
7010
 
  echo "$as_me: failed program was:" >&5
7011
 
cat conftest.$ac_ext >&5
7012
 
ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7013
 
fi
7014
 
rm -f conftest.$ac_objext conftest.$ac_ext
7015
 
  done
7016
 
fi
7017
 
rm -f conftest.$ac_objext conftest.$ac_ext
7018
 
# Binary search between lo and hi bounds.
7019
 
while test "x$ac_lo" != "x$ac_hi"; do
7020
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7021
 
  cat >conftest.$ac_ext <<_ACEOF
7022
 
#line 7022 "configure"
7023
 
#include "confdefs.h"
7024
 
$ac_includes_default
7025
 
int
7026
 
main ()
7027
 
{
7028
 
int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
7029
 
  ;
7030
 
  return 0;
7031
 
}
7032
 
_ACEOF
7033
 
rm -f conftest.$ac_objext
7034
 
if { (eval echo "$as_me:7034: \"$ac_compile\"") >&5
7035
 
  (eval $ac_compile) 2>&5
7036
 
  ac_status=$?
7037
 
  echo "$as_me:7037: \$? = $ac_status" >&5
7038
 
  (exit $ac_status); } &&
7039
 
         { ac_try='test -s conftest.$ac_objext'
7040
 
  { (eval echo "$as_me:7040: \"$ac_try\"") >&5
7041
 
  (eval $ac_try) 2>&5
7042
 
  ac_status=$?
7043
 
  echo "$as_me:7043: \$? = $ac_status" >&5
7044
 
  (exit $ac_status); }; }; then
7045
 
  ac_hi=$ac_mid
7046
 
else
7047
 
  echo "$as_me: failed program was:" >&5
7048
 
cat conftest.$ac_ext >&5
7049
 
ac_lo=`expr $ac_mid + 1`
7050
 
fi
7051
 
rm -f conftest.$ac_objext conftest.$ac_ext
7052
 
done
7053
 
ac_cv_sizeof_signed_char=$ac_lo
7054
 
else
7055
 
  if test "$cross_compiling" = yes; then
7056
 
  { { echo "$as_me:7056: error: cannot run test program while cross compiling" >&5
7057
 
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7058
 
   { (exit 1); exit 1; }; }
7059
 
else
7060
 
  cat >conftest.$ac_ext <<_ACEOF
7061
 
#line 7061 "configure"
7062
 
#include "confdefs.h"
7063
 
$ac_includes_default
7064
 
int
7065
 
main ()
7066
 
{
7067
 
FILE *f = fopen ("conftest.val", "w");
7068
 
if (!f)
7069
 
  exit (1);
7070
 
fprintf (f, "%d", (sizeof (signed char)));
7071
 
fclose (f);
7072
 
  ;
7073
 
  return 0;
7074
 
}
7075
 
_ACEOF
7076
 
rm -f conftest$ac_exeext
7077
 
if { (eval echo "$as_me:7077: \"$ac_link\"") >&5
7078
 
  (eval $ac_link) 2>&5
7079
 
  ac_status=$?
7080
 
  echo "$as_me:7080: \$? = $ac_status" >&5
7081
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7082
 
  { (eval echo "$as_me:7082: \"$ac_try\"") >&5
7083
 
  (eval $ac_try) 2>&5
7084
 
  ac_status=$?
7085
 
  echo "$as_me:7085: \$? = $ac_status" >&5
7086
 
  (exit $ac_status); }; }; then
7087
 
  ac_cv_sizeof_signed_char=`cat conftest.val`
7088
 
else
7089
 
  echo "$as_me: program exited with status $ac_status" >&5
7090
 
echo "$as_me: failed program was:" >&5
7091
 
cat conftest.$ac_ext >&5
7092
 
fi
7093
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
7094
 
fi
7095
 
fi
7096
 
rm -f conftest.val
7097
 
else
7098
 
  ac_cv_sizeof_signed_char=0
7099
 
fi
7100
 
fi
7101
 
echo "$as_me:7101: result: $ac_cv_sizeof_signed_char" >&5
7102
 
echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
7103
 
cat >>confdefs.h <<EOF
7104
 
#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
7105
 
EOF
7106
 
 
7107
 
    ;;
7108
 
 *) case "$target" in
7109
 
     *-*-vxworks*)
7110
 
        echo "$as_me:7110: checking for signed char" >&5
7111
 
echo $ECHO_N "checking for signed char... $ECHO_C" >&6
7112
 
if test "${ac_cv_type_signed_char+set}" = set; then
7113
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7114
 
else
7115
 
  cat >conftest.$ac_ext <<_ACEOF
7116
 
#line 7116 "configure"
7117
 
#include "confdefs.h"
7118
 
$ac_includes_default
7119
 
int
7120
 
main ()
7121
 
{
7122
 
if ((signed char *) 0)
7123
 
  return 0;
7124
 
if (sizeof (signed char))
7125
 
  return 0;
7126
 
  ;
7127
 
  return 0;
7128
 
}
7129
 
_ACEOF
7130
 
rm -f conftest.$ac_objext
7131
 
if { (eval echo "$as_me:7131: \"$ac_compile\"") >&5
7132
 
  (eval $ac_compile) 2>&5
7133
 
  ac_status=$?
7134
 
  echo "$as_me:7134: \$? = $ac_status" >&5
7135
 
  (exit $ac_status); } &&
7136
 
         { ac_try='test -s conftest.$ac_objext'
7137
 
  { (eval echo "$as_me:7137: \"$ac_try\"") >&5
7138
 
  (eval $ac_try) 2>&5
7139
 
  ac_status=$?
7140
 
  echo "$as_me:7140: \$? = $ac_status" >&5
7141
 
  (exit $ac_status); }; }; then
7142
 
  ac_cv_type_signed_char=yes
7143
 
else
7144
 
  echo "$as_me: failed program was:" >&5
7145
 
cat conftest.$ac_ext >&5
7146
 
ac_cv_type_signed_char=no
7147
 
fi
7148
 
rm -f conftest.$ac_objext conftest.$ac_ext
7149
 
fi
7150
 
echo "$as_me:7150: result: $ac_cv_type_signed_char" >&5
7151
 
echo "${ECHO_T}$ac_cv_type_signed_char" >&6
7152
 
 
7153
 
echo "$as_me:7153: checking size of signed char" >&5
7154
 
echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
7155
 
if test "${ac_cv_sizeof_signed_char+set}" = set; then
7156
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7157
 
else
7158
 
  if test "$ac_cv_type_signed_char" = yes; then
7159
 
  if test "$cross_compiling" = yes; then
7160
 
  # Depending upon the size, compute the lo and hi bounds.
7161
 
cat >conftest.$ac_ext <<_ACEOF
7162
 
#line 7162 "configure"
7163
 
#include "confdefs.h"
7164
 
$ac_includes_default
7165
 
int
7166
 
main ()
7167
 
{
7168
 
int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
7169
 
  ;
7170
 
  return 0;
7171
 
}
7172
 
_ACEOF
7173
 
rm -f conftest.$ac_objext
7174
 
if { (eval echo "$as_me:7174: \"$ac_compile\"") >&5
7175
 
  (eval $ac_compile) 2>&5
7176
 
  ac_status=$?
7177
 
  echo "$as_me:7177: \$? = $ac_status" >&5
7178
 
  (exit $ac_status); } &&
7179
 
         { ac_try='test -s conftest.$ac_objext'
7180
 
  { (eval echo "$as_me:7180: \"$ac_try\"") >&5
7181
 
  (eval $ac_try) 2>&5
7182
 
  ac_status=$?
7183
 
  echo "$as_me:7183: \$? = $ac_status" >&5
7184
 
  (exit $ac_status); }; }; then
7185
 
  ac_lo=0 ac_mid=0
7186
 
  while :; do
7187
 
    cat >conftest.$ac_ext <<_ACEOF
7188
 
#line 7188 "configure"
7189
 
#include "confdefs.h"
7190
 
$ac_includes_default
7191
 
int
7192
 
main ()
7193
 
{
7194
 
int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
7195
 
  ;
7196
 
  return 0;
7197
 
}
7198
 
_ACEOF
7199
 
rm -f conftest.$ac_objext
7200
 
if { (eval echo "$as_me:7200: \"$ac_compile\"") >&5
7201
 
  (eval $ac_compile) 2>&5
7202
 
  ac_status=$?
7203
 
  echo "$as_me:7203: \$? = $ac_status" >&5
7204
 
  (exit $ac_status); } &&
7205
 
         { ac_try='test -s conftest.$ac_objext'
7206
 
  { (eval echo "$as_me:7206: \"$ac_try\"") >&5
7207
 
  (eval $ac_try) 2>&5
7208
 
  ac_status=$?
7209
 
  echo "$as_me:7209: \$? = $ac_status" >&5
7210
 
  (exit $ac_status); }; }; then
7211
 
  ac_hi=$ac_mid; break
7212
 
else
7213
 
  echo "$as_me: failed program was:" >&5
7214
 
cat conftest.$ac_ext >&5
7215
 
ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7216
 
fi
7217
 
rm -f conftest.$ac_objext conftest.$ac_ext
7218
 
  done
7219
 
else
7220
 
  echo "$as_me: failed program was:" >&5
7221
 
cat conftest.$ac_ext >&5
7222
 
ac_hi=-1 ac_mid=-1
7223
 
  while :; do
7224
 
    cat >conftest.$ac_ext <<_ACEOF
7225
 
#line 7225 "configure"
7226
 
#include "confdefs.h"
7227
 
$ac_includes_default
7228
 
int
7229
 
main ()
7230
 
{
7231
 
int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
7232
 
  ;
7233
 
  return 0;
7234
 
}
7235
 
_ACEOF
7236
 
rm -f conftest.$ac_objext
7237
 
if { (eval echo "$as_me:7237: \"$ac_compile\"") >&5
7238
 
  (eval $ac_compile) 2>&5
7239
 
  ac_status=$?
7240
 
  echo "$as_me:7240: \$? = $ac_status" >&5
7241
 
  (exit $ac_status); } &&
7242
 
         { ac_try='test -s conftest.$ac_objext'
7243
 
  { (eval echo "$as_me:7243: \"$ac_try\"") >&5
7244
 
  (eval $ac_try) 2>&5
7245
 
  ac_status=$?
7246
 
  echo "$as_me:7246: \$? = $ac_status" >&5
7247
 
  (exit $ac_status); }; }; then
7248
 
  ac_lo=$ac_mid; break
7249
 
else
7250
 
  echo "$as_me: failed program was:" >&5
7251
 
cat conftest.$ac_ext >&5
7252
 
ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7253
 
fi
7254
 
rm -f conftest.$ac_objext conftest.$ac_ext
7255
 
  done
7256
 
fi
7257
 
rm -f conftest.$ac_objext conftest.$ac_ext
7258
 
# Binary search between lo and hi bounds.
7259
 
while test "x$ac_lo" != "x$ac_hi"; do
7260
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7261
 
  cat >conftest.$ac_ext <<_ACEOF
7262
 
#line 7262 "configure"
7263
 
#include "confdefs.h"
7264
 
$ac_includes_default
7265
 
int
7266
 
main ()
7267
 
{
7268
 
int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
7269
 
  ;
7270
 
  return 0;
7271
 
}
7272
 
_ACEOF
7273
 
rm -f conftest.$ac_objext
7274
 
if { (eval echo "$as_me:7274: \"$ac_compile\"") >&5
7275
 
  (eval $ac_compile) 2>&5
7276
 
  ac_status=$?
7277
 
  echo "$as_me:7277: \$? = $ac_status" >&5
7278
 
  (exit $ac_status); } &&
7279
 
         { ac_try='test -s conftest.$ac_objext'
7280
 
  { (eval echo "$as_me:7280: \"$ac_try\"") >&5
7281
 
  (eval $ac_try) 2>&5
7282
 
  ac_status=$?
7283
 
  echo "$as_me:7283: \$? = $ac_status" >&5
7284
 
  (exit $ac_status); }; }; then
7285
 
  ac_hi=$ac_mid
7286
 
else
7287
 
  echo "$as_me: failed program was:" >&5
7288
 
cat conftest.$ac_ext >&5
7289
 
ac_lo=`expr $ac_mid + 1`
7290
 
fi
7291
 
rm -f conftest.$ac_objext conftest.$ac_ext
7292
 
done
7293
 
ac_cv_sizeof_signed_char=$ac_lo
7294
 
else
7295
 
  if test "$cross_compiling" = yes; then
7296
 
  { { echo "$as_me:7296: error: cannot run test program while cross compiling" >&5
7297
 
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7298
 
   { (exit 1); exit 1; }; }
7299
 
else
7300
 
  cat >conftest.$ac_ext <<_ACEOF
7301
 
#line 7301 "configure"
7302
 
#include "confdefs.h"
7303
 
$ac_includes_default
7304
 
int
7305
 
main ()
7306
 
{
7307
 
FILE *f = fopen ("conftest.val", "w");
7308
 
if (!f)
7309
 
  exit (1);
7310
 
fprintf (f, "%d", (sizeof (signed char)));
7311
 
fclose (f);
7312
 
  ;
7313
 
  return 0;
7314
 
}
7315
 
_ACEOF
7316
 
rm -f conftest$ac_exeext
7317
 
if { (eval echo "$as_me:7317: \"$ac_link\"") >&5
7318
 
  (eval $ac_link) 2>&5
7319
 
  ac_status=$?
7320
 
  echo "$as_me:7320: \$? = $ac_status" >&5
7321
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7322
 
  { (eval echo "$as_me:7322: \"$ac_try\"") >&5
7323
 
  (eval $ac_try) 2>&5
7324
 
  ac_status=$?
7325
 
  echo "$as_me:7325: \$? = $ac_status" >&5
7326
 
  (exit $ac_status); }; }; then
7327
 
  ac_cv_sizeof_signed_char=`cat conftest.val`
7328
 
else
7329
 
  echo "$as_me: program exited with status $ac_status" >&5
7330
 
echo "$as_me: failed program was:" >&5
7331
 
cat conftest.$ac_ext >&5
7332
 
fi
7333
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
7334
 
fi
7335
 
fi
7336
 
rm -f conftest.val
7337
 
else
7338
 
  ac_cv_sizeof_signed_char=0
7339
 
fi
7340
 
fi
7341
 
echo "$as_me:7341: result: $ac_cv_sizeof_signed_char" >&5
7342
 
echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
7343
 
cat >>confdefs.h <<EOF
7344
 
#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
7345
 
EOF
7346
 
 
7347
 
        ;;
7348
 
     *) { { echo "$as_me:7348: error: Cross-compiling needs explicit SIZEOF_SIGNED_LONG" >&5
7349
 
echo "$as_me: error: Cross-compiling needs explicit SIZEOF_SIGNED_LONG" >&2;}
7350
 
   { (exit 1); exit 1; }; }
7351
 
        ;;
7352
 
    esac
7353
 
    ;;
7354
 
esac
7355
 
 
7356
 
case "$host" in
7357
 
 $target)
7358
 
    echo "$as_me:7358: checking for int" >&5
7359
 
echo $ECHO_N "checking for int... $ECHO_C" >&6
7360
 
if test "${ac_cv_type_int+set}" = set; then
7361
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7362
 
else
7363
 
  cat >conftest.$ac_ext <<_ACEOF
7364
 
#line 7364 "configure"
7365
 
#include "confdefs.h"
7366
 
$ac_includes_default
7367
 
int
7368
 
main ()
7369
 
{
7370
 
if ((int *) 0)
7371
 
  return 0;
7372
 
if (sizeof (int))
7373
 
  return 0;
7374
 
  ;
7375
 
  return 0;
7376
 
}
7377
 
_ACEOF
7378
 
rm -f conftest.$ac_objext
7379
 
if { (eval echo "$as_me:7379: \"$ac_compile\"") >&5
7380
 
  (eval $ac_compile) 2>&5
7381
 
  ac_status=$?
7382
 
  echo "$as_me:7382: \$? = $ac_status" >&5
7383
 
  (exit $ac_status); } &&
7384
 
         { ac_try='test -s conftest.$ac_objext'
7385
 
  { (eval echo "$as_me:7385: \"$ac_try\"") >&5
7386
 
  (eval $ac_try) 2>&5
7387
 
  ac_status=$?
7388
 
  echo "$as_me:7388: \$? = $ac_status" >&5
7389
 
  (exit $ac_status); }; }; then
7390
 
  ac_cv_type_int=yes
7391
 
else
7392
 
  echo "$as_me: failed program was:" >&5
7393
 
cat conftest.$ac_ext >&5
7394
 
ac_cv_type_int=no
7395
 
fi
7396
 
rm -f conftest.$ac_objext conftest.$ac_ext
7397
 
fi
7398
 
echo "$as_me:7398: result: $ac_cv_type_int" >&5
7399
 
echo "${ECHO_T}$ac_cv_type_int" >&6
7400
 
 
7401
 
echo "$as_me:7401: checking size of int" >&5
7402
 
echo $ECHO_N "checking size of int... $ECHO_C" >&6
7403
 
if test "${ac_cv_sizeof_int+set}" = set; then
7404
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7405
 
else
7406
 
  if test "$ac_cv_type_int" = yes; then
7407
 
  if test "$cross_compiling" = yes; then
7408
 
  # Depending upon the size, compute the lo and hi bounds.
7409
 
cat >conftest.$ac_ext <<_ACEOF
7410
 
#line 7410 "configure"
7411
 
#include "confdefs.h"
7412
 
$ac_includes_default
7413
 
int
7414
 
main ()
7415
 
{
7416
 
int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
7417
 
  ;
7418
 
  return 0;
7419
 
}
7420
 
_ACEOF
7421
 
rm -f conftest.$ac_objext
7422
 
if { (eval echo "$as_me:7422: \"$ac_compile\"") >&5
7423
 
  (eval $ac_compile) 2>&5
7424
 
  ac_status=$?
7425
 
  echo "$as_me:7425: \$? = $ac_status" >&5
7426
 
  (exit $ac_status); } &&
7427
 
         { ac_try='test -s conftest.$ac_objext'
7428
 
  { (eval echo "$as_me:7428: \"$ac_try\"") >&5
7429
 
  (eval $ac_try) 2>&5
7430
 
  ac_status=$?
7431
 
  echo "$as_me:7431: \$? = $ac_status" >&5
7432
 
  (exit $ac_status); }; }; then
7433
 
  ac_lo=0 ac_mid=0
7434
 
  while :; do
7435
 
    cat >conftest.$ac_ext <<_ACEOF
7436
 
#line 7436 "configure"
7437
 
#include "confdefs.h"
7438
 
$ac_includes_default
7439
 
int
7440
 
main ()
7441
 
{
7442
 
int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
7443
 
  ;
7444
 
  return 0;
7445
 
}
7446
 
_ACEOF
7447
 
rm -f conftest.$ac_objext
7448
 
if { (eval echo "$as_me:7448: \"$ac_compile\"") >&5
7449
 
  (eval $ac_compile) 2>&5
7450
 
  ac_status=$?
7451
 
  echo "$as_me:7451: \$? = $ac_status" >&5
7452
 
  (exit $ac_status); } &&
7453
 
         { ac_try='test -s conftest.$ac_objext'
7454
 
  { (eval echo "$as_me:7454: \"$ac_try\"") >&5
7455
 
  (eval $ac_try) 2>&5
7456
 
  ac_status=$?
7457
 
  echo "$as_me:7457: \$? = $ac_status" >&5
7458
 
  (exit $ac_status); }; }; then
7459
 
  ac_hi=$ac_mid; break
7460
 
else
7461
 
  echo "$as_me: failed program was:" >&5
7462
 
cat conftest.$ac_ext >&5
7463
 
ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7464
 
fi
7465
 
rm -f conftest.$ac_objext conftest.$ac_ext
7466
 
  done
7467
 
else
7468
 
  echo "$as_me: failed program was:" >&5
7469
 
cat conftest.$ac_ext >&5
7470
 
ac_hi=-1 ac_mid=-1
7471
 
  while :; do
7472
 
    cat >conftest.$ac_ext <<_ACEOF
7473
 
#line 7473 "configure"
7474
 
#include "confdefs.h"
7475
 
$ac_includes_default
7476
 
int
7477
 
main ()
7478
 
{
7479
 
int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
7480
 
  ;
7481
 
  return 0;
7482
 
}
7483
 
_ACEOF
7484
 
rm -f conftest.$ac_objext
7485
 
if { (eval echo "$as_me:7485: \"$ac_compile\"") >&5
7486
 
  (eval $ac_compile) 2>&5
7487
 
  ac_status=$?
7488
 
  echo "$as_me:7488: \$? = $ac_status" >&5
7489
 
  (exit $ac_status); } &&
7490
 
         { ac_try='test -s conftest.$ac_objext'
7491
 
  { (eval echo "$as_me:7491: \"$ac_try\"") >&5
7492
 
  (eval $ac_try) 2>&5
7493
 
  ac_status=$?
7494
 
  echo "$as_me:7494: \$? = $ac_status" >&5
7495
 
  (exit $ac_status); }; }; then
7496
 
  ac_lo=$ac_mid; break
7497
 
else
7498
 
  echo "$as_me: failed program was:" >&5
7499
 
cat conftest.$ac_ext >&5
7500
 
ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7501
 
fi
7502
 
rm -f conftest.$ac_objext conftest.$ac_ext
7503
 
  done
7504
 
fi
7505
 
rm -f conftest.$ac_objext conftest.$ac_ext
7506
 
# Binary search between lo and hi bounds.
7507
 
while test "x$ac_lo" != "x$ac_hi"; do
7508
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7509
 
  cat >conftest.$ac_ext <<_ACEOF
7510
 
#line 7510 "configure"
7511
 
#include "confdefs.h"
7512
 
$ac_includes_default
7513
 
int
7514
 
main ()
7515
 
{
7516
 
int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
7517
 
  ;
7518
 
  return 0;
7519
 
}
7520
 
_ACEOF
7521
 
rm -f conftest.$ac_objext
7522
 
if { (eval echo "$as_me:7522: \"$ac_compile\"") >&5
7523
 
  (eval $ac_compile) 2>&5
7524
 
  ac_status=$?
7525
 
  echo "$as_me:7525: \$? = $ac_status" >&5
7526
 
  (exit $ac_status); } &&
7527
 
         { ac_try='test -s conftest.$ac_objext'
7528
 
  { (eval echo "$as_me:7528: \"$ac_try\"") >&5
7529
 
  (eval $ac_try) 2>&5
7530
 
  ac_status=$?
7531
 
  echo "$as_me:7531: \$? = $ac_status" >&5
7532
 
  (exit $ac_status); }; }; then
7533
 
  ac_hi=$ac_mid
7534
 
else
7535
 
  echo "$as_me: failed program was:" >&5
7536
 
cat conftest.$ac_ext >&5
7537
 
ac_lo=`expr $ac_mid + 1`
7538
 
fi
7539
 
rm -f conftest.$ac_objext conftest.$ac_ext
7540
 
done
7541
 
ac_cv_sizeof_int=$ac_lo
7542
 
else
7543
 
  if test "$cross_compiling" = yes; then
7544
 
  { { echo "$as_me:7544: error: cannot run test program while cross compiling" >&5
7545
 
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7546
 
   { (exit 1); exit 1; }; }
7547
 
else
7548
 
  cat >conftest.$ac_ext <<_ACEOF
7549
 
#line 7549 "configure"
7550
 
#include "confdefs.h"
7551
 
$ac_includes_default
7552
 
int
7553
 
main ()
7554
 
{
7555
 
FILE *f = fopen ("conftest.val", "w");
7556
 
if (!f)
7557
 
  exit (1);
7558
 
fprintf (f, "%d", (sizeof (int)));
7559
 
fclose (f);
7560
 
  ;
7561
 
  return 0;
7562
 
}
7563
 
_ACEOF
7564
 
rm -f conftest$ac_exeext
7565
 
if { (eval echo "$as_me:7565: \"$ac_link\"") >&5
7566
 
  (eval $ac_link) 2>&5
7567
 
  ac_status=$?
7568
 
  echo "$as_me:7568: \$? = $ac_status" >&5
7569
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7570
 
  { (eval echo "$as_me:7570: \"$ac_try\"") >&5
7571
 
  (eval $ac_try) 2>&5
7572
 
  ac_status=$?
7573
 
  echo "$as_me:7573: \$? = $ac_status" >&5
7574
 
  (exit $ac_status); }; }; then
7575
 
  ac_cv_sizeof_int=`cat conftest.val`
7576
 
else
7577
 
  echo "$as_me: program exited with status $ac_status" >&5
7578
 
echo "$as_me: failed program was:" >&5
7579
 
cat conftest.$ac_ext >&5
7580
 
fi
7581
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
7582
 
fi
7583
 
fi
7584
 
rm -f conftest.val
7585
 
else
7586
 
  ac_cv_sizeof_int=0
7587
 
fi
7588
 
fi
7589
 
echo "$as_me:7589: result: $ac_cv_sizeof_int" >&5
7590
 
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7591
 
cat >>confdefs.h <<EOF
7592
 
#define SIZEOF_INT $ac_cv_sizeof_int
7593
 
EOF
7594
 
 
7595
 
    ;;
7596
 
 *) case "$target" in
7597
 
     *-*-vxworks*)
7598
 
        echo "$as_me:7598: checking for int" >&5
7599
 
echo $ECHO_N "checking for int... $ECHO_C" >&6
7600
 
if test "${ac_cv_type_int+set}" = set; then
7601
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7602
 
else
7603
 
  cat >conftest.$ac_ext <<_ACEOF
7604
 
#line 7604 "configure"
7605
 
#include "confdefs.h"
7606
 
$ac_includes_default
7607
 
int
7608
 
main ()
7609
 
{
7610
 
if ((int *) 0)
7611
 
  return 0;
7612
 
if (sizeof (int))
7613
 
  return 0;
7614
 
  ;
7615
 
  return 0;
7616
 
}
7617
 
_ACEOF
7618
 
rm -f conftest.$ac_objext
7619
 
if { (eval echo "$as_me:7619: \"$ac_compile\"") >&5
7620
 
  (eval $ac_compile) 2>&5
7621
 
  ac_status=$?
7622
 
  echo "$as_me:7622: \$? = $ac_status" >&5
7623
 
  (exit $ac_status); } &&
7624
 
         { ac_try='test -s conftest.$ac_objext'
7625
 
  { (eval echo "$as_me:7625: \"$ac_try\"") >&5
7626
 
  (eval $ac_try) 2>&5
7627
 
  ac_status=$?
7628
 
  echo "$as_me:7628: \$? = $ac_status" >&5
7629
 
  (exit $ac_status); }; }; then
7630
 
  ac_cv_type_int=yes
7631
 
else
7632
 
  echo "$as_me: failed program was:" >&5
7633
 
cat conftest.$ac_ext >&5
7634
 
ac_cv_type_int=no
7635
 
fi
7636
 
rm -f conftest.$ac_objext conftest.$ac_ext
7637
 
fi
7638
 
echo "$as_me:7638: result: $ac_cv_type_int" >&5
7639
 
echo "${ECHO_T}$ac_cv_type_int" >&6
7640
 
 
7641
 
echo "$as_me:7641: checking size of int" >&5
7642
 
echo $ECHO_N "checking size of int... $ECHO_C" >&6
7643
 
if test "${ac_cv_sizeof_int+set}" = set; then
7644
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7645
 
else
7646
 
  if test "$ac_cv_type_int" = yes; then
7647
 
  if test "$cross_compiling" = yes; then
7648
 
  # Depending upon the size, compute the lo and hi bounds.
7649
 
cat >conftest.$ac_ext <<_ACEOF
7650
 
#line 7650 "configure"
7651
 
#include "confdefs.h"
7652
 
$ac_includes_default
7653
 
int
7654
 
main ()
7655
 
{
7656
 
int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
7657
 
  ;
7658
 
  return 0;
7659
 
}
7660
 
_ACEOF
7661
 
rm -f conftest.$ac_objext
7662
 
if { (eval echo "$as_me:7662: \"$ac_compile\"") >&5
7663
 
  (eval $ac_compile) 2>&5
7664
 
  ac_status=$?
7665
 
  echo "$as_me:7665: \$? = $ac_status" >&5
7666
 
  (exit $ac_status); } &&
7667
 
         { ac_try='test -s conftest.$ac_objext'
7668
 
  { (eval echo "$as_me:7668: \"$ac_try\"") >&5
7669
 
  (eval $ac_try) 2>&5
7670
 
  ac_status=$?
7671
 
  echo "$as_me:7671: \$? = $ac_status" >&5
7672
 
  (exit $ac_status); }; }; then
7673
 
  ac_lo=0 ac_mid=0
7674
 
  while :; do
7675
 
    cat >conftest.$ac_ext <<_ACEOF
7676
 
#line 7676 "configure"
7677
 
#include "confdefs.h"
7678
 
$ac_includes_default
7679
 
int
7680
 
main ()
7681
 
{
7682
 
int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
7683
 
  ;
7684
 
  return 0;
7685
 
}
7686
 
_ACEOF
7687
 
rm -f conftest.$ac_objext
7688
 
if { (eval echo "$as_me:7688: \"$ac_compile\"") >&5
7689
 
  (eval $ac_compile) 2>&5
7690
 
  ac_status=$?
7691
 
  echo "$as_me:7691: \$? = $ac_status" >&5
7692
 
  (exit $ac_status); } &&
7693
 
         { ac_try='test -s conftest.$ac_objext'
7694
 
  { (eval echo "$as_me:7694: \"$ac_try\"") >&5
7695
 
  (eval $ac_try) 2>&5
7696
 
  ac_status=$?
7697
 
  echo "$as_me:7697: \$? = $ac_status" >&5
7698
 
  (exit $ac_status); }; }; then
7699
 
  ac_hi=$ac_mid; break
7700
 
else
7701
 
  echo "$as_me: failed program was:" >&5
7702
 
cat conftest.$ac_ext >&5
7703
 
ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7704
 
fi
7705
 
rm -f conftest.$ac_objext conftest.$ac_ext
7706
 
  done
7707
 
else
7708
 
  echo "$as_me: failed program was:" >&5
7709
 
cat conftest.$ac_ext >&5
7710
 
ac_hi=-1 ac_mid=-1
7711
 
  while :; do
7712
 
    cat >conftest.$ac_ext <<_ACEOF
7713
 
#line 7713 "configure"
7714
 
#include "confdefs.h"
7715
 
$ac_includes_default
7716
 
int
7717
 
main ()
7718
 
{
7719
 
int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
7720
 
  ;
7721
 
  return 0;
7722
 
}
7723
 
_ACEOF
7724
 
rm -f conftest.$ac_objext
7725
 
if { (eval echo "$as_me:7725: \"$ac_compile\"") >&5
7726
 
  (eval $ac_compile) 2>&5
7727
 
  ac_status=$?
7728
 
  echo "$as_me:7728: \$? = $ac_status" >&5
7729
 
  (exit $ac_status); } &&
7730
 
         { ac_try='test -s conftest.$ac_objext'
7731
 
  { (eval echo "$as_me:7731: \"$ac_try\"") >&5
7732
 
  (eval $ac_try) 2>&5
7733
 
  ac_status=$?
7734
 
  echo "$as_me:7734: \$? = $ac_status" >&5
7735
 
  (exit $ac_status); }; }; then
7736
 
  ac_lo=$ac_mid; break
7737
 
else
7738
 
  echo "$as_me: failed program was:" >&5
7739
 
cat conftest.$ac_ext >&5
7740
 
ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7741
 
fi
7742
 
rm -f conftest.$ac_objext conftest.$ac_ext
7743
 
  done
7744
 
fi
7745
 
rm -f conftest.$ac_objext conftest.$ac_ext
7746
 
# Binary search between lo and hi bounds.
7747
 
while test "x$ac_lo" != "x$ac_hi"; do
7748
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7749
 
  cat >conftest.$ac_ext <<_ACEOF
7750
 
#line 7750 "configure"
7751
 
#include "confdefs.h"
7752
 
$ac_includes_default
7753
 
int
7754
 
main ()
7755
 
{
7756
 
int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
7757
 
  ;
7758
 
  return 0;
7759
 
}
7760
 
_ACEOF
7761
 
rm -f conftest.$ac_objext
7762
 
if { (eval echo "$as_me:7762: \"$ac_compile\"") >&5
7763
 
  (eval $ac_compile) 2>&5
7764
 
  ac_status=$?
7765
 
  echo "$as_me:7765: \$? = $ac_status" >&5
7766
 
  (exit $ac_status); } &&
7767
 
         { ac_try='test -s conftest.$ac_objext'
7768
 
  { (eval echo "$as_me:7768: \"$ac_try\"") >&5
7769
 
  (eval $ac_try) 2>&5
7770
 
  ac_status=$?
7771
 
  echo "$as_me:7771: \$? = $ac_status" >&5
7772
 
  (exit $ac_status); }; }; then
7773
 
  ac_hi=$ac_mid
7774
 
else
7775
 
  echo "$as_me: failed program was:" >&5
7776
 
cat conftest.$ac_ext >&5
7777
 
ac_lo=`expr $ac_mid + 1`
7778
 
fi
7779
 
rm -f conftest.$ac_objext conftest.$ac_ext
7780
 
done
7781
 
ac_cv_sizeof_int=$ac_lo
7782
 
else
7783
 
  if test "$cross_compiling" = yes; then
7784
 
  { { echo "$as_me:7784: error: cannot run test program while cross compiling" >&5
7785
 
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7786
 
   { (exit 1); exit 1; }; }
7787
 
else
7788
 
  cat >conftest.$ac_ext <<_ACEOF
7789
 
#line 7789 "configure"
7790
 
#include "confdefs.h"
7791
 
$ac_includes_default
7792
 
int
7793
 
main ()
7794
 
{
7795
 
FILE *f = fopen ("conftest.val", "w");
7796
 
if (!f)
7797
 
  exit (1);
7798
 
fprintf (f, "%d", (sizeof (int)));
7799
 
fclose (f);
7800
 
  ;
7801
 
  return 0;
7802
 
}
7803
 
_ACEOF
7804
 
rm -f conftest$ac_exeext
7805
 
if { (eval echo "$as_me:7805: \"$ac_link\"") >&5
7806
 
  (eval $ac_link) 2>&5
7807
 
  ac_status=$?
7808
 
  echo "$as_me:7808: \$? = $ac_status" >&5
7809
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7810
 
  { (eval echo "$as_me:7810: \"$ac_try\"") >&5
7811
 
  (eval $ac_try) 2>&5
7812
 
  ac_status=$?
7813
 
  echo "$as_me:7813: \$? = $ac_status" >&5
7814
 
  (exit $ac_status); }; }; then
7815
 
  ac_cv_sizeof_int=`cat conftest.val`
7816
 
else
7817
 
  echo "$as_me: program exited with status $ac_status" >&5
7818
 
echo "$as_me: failed program was:" >&5
7819
 
cat conftest.$ac_ext >&5
7820
 
fi
7821
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
7822
 
fi
7823
 
fi
7824
 
rm -f conftest.val
7825
 
else
7826
 
  ac_cv_sizeof_int=0
7827
 
fi
7828
 
fi
7829
 
echo "$as_me:7829: result: $ac_cv_sizeof_int" >&5
7830
 
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7831
 
cat >>confdefs.h <<EOF
7832
 
#define SIZEOF_INT $ac_cv_sizeof_int
7833
 
EOF
7834
 
 
7835
 
        ;;
7836
 
     *) { { echo "$as_me:7836: error: Cross-compiling needs explicit SIZEOF_INT" >&5
7837
 
echo "$as_me: error: Cross-compiling needs explicit SIZEOF_INT" >&2;}
7838
 
   { (exit 1); exit 1; }; }
7839
 
        ;;
7840
 
    esac
7841
 
    ;;
7842
 
esac
7843
 
 
7844
 
case "$host" in
7845
 
 $target)
7846
 
    echo "$as_me:7846: checking for long" >&5
7847
 
echo $ECHO_N "checking for long... $ECHO_C" >&6
7848
 
if test "${ac_cv_type_long+set}" = set; then
7849
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7850
 
else
7851
 
  cat >conftest.$ac_ext <<_ACEOF
7852
 
#line 7852 "configure"
7853
 
#include "confdefs.h"
7854
 
$ac_includes_default
7855
 
int
7856
 
main ()
7857
 
{
7858
 
if ((long *) 0)
7859
 
  return 0;
7860
 
if (sizeof (long))
7861
 
  return 0;
7862
 
  ;
7863
 
  return 0;
7864
 
}
7865
 
_ACEOF
7866
 
rm -f conftest.$ac_objext
7867
 
if { (eval echo "$as_me:7867: \"$ac_compile\"") >&5
7868
 
  (eval $ac_compile) 2>&5
7869
 
  ac_status=$?
7870
 
  echo "$as_me:7870: \$? = $ac_status" >&5
7871
 
  (exit $ac_status); } &&
7872
 
         { ac_try='test -s conftest.$ac_objext'
7873
 
  { (eval echo "$as_me:7873: \"$ac_try\"") >&5
7874
 
  (eval $ac_try) 2>&5
7875
 
  ac_status=$?
7876
 
  echo "$as_me:7876: \$? = $ac_status" >&5
7877
 
  (exit $ac_status); }; }; then
7878
 
  ac_cv_type_long=yes
7879
 
else
7880
 
  echo "$as_me: failed program was:" >&5
7881
 
cat conftest.$ac_ext >&5
7882
 
ac_cv_type_long=no
7883
 
fi
7884
 
rm -f conftest.$ac_objext conftest.$ac_ext
7885
 
fi
7886
 
echo "$as_me:7886: result: $ac_cv_type_long" >&5
7887
 
echo "${ECHO_T}$ac_cv_type_long" >&6
7888
 
 
7889
 
echo "$as_me:7889: checking size of long" >&5
7890
 
echo $ECHO_N "checking size of long... $ECHO_C" >&6
7891
 
if test "${ac_cv_sizeof_long+set}" = set; then
7892
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7893
 
else
7894
 
  if test "$ac_cv_type_long" = yes; then
7895
 
  if test "$cross_compiling" = yes; then
7896
 
  # Depending upon the size, compute the lo and hi bounds.
7897
 
cat >conftest.$ac_ext <<_ACEOF
7898
 
#line 7898 "configure"
7899
 
#include "confdefs.h"
7900
 
$ac_includes_default
7901
 
int
7902
 
main ()
7903
 
{
7904
 
int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
7905
 
  ;
7906
 
  return 0;
7907
 
}
7908
 
_ACEOF
7909
 
rm -f conftest.$ac_objext
7910
 
if { (eval echo "$as_me:7910: \"$ac_compile\"") >&5
7911
 
  (eval $ac_compile) 2>&5
7912
 
  ac_status=$?
7913
 
  echo "$as_me:7913: \$? = $ac_status" >&5
7914
 
  (exit $ac_status); } &&
7915
 
         { ac_try='test -s conftest.$ac_objext'
7916
 
  { (eval echo "$as_me:7916: \"$ac_try\"") >&5
7917
 
  (eval $ac_try) 2>&5
7918
 
  ac_status=$?
7919
 
  echo "$as_me:7919: \$? = $ac_status" >&5
7920
 
  (exit $ac_status); }; }; then
7921
 
  ac_lo=0 ac_mid=0
7922
 
  while :; do
7923
 
    cat >conftest.$ac_ext <<_ACEOF
7924
 
#line 7924 "configure"
7925
 
#include "confdefs.h"
7926
 
$ac_includes_default
7927
 
int
7928
 
main ()
7929
 
{
7930
 
int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
7931
 
  ;
7932
 
  return 0;
7933
 
}
7934
 
_ACEOF
7935
 
rm -f conftest.$ac_objext
7936
 
if { (eval echo "$as_me:7936: \"$ac_compile\"") >&5
7937
 
  (eval $ac_compile) 2>&5
7938
 
  ac_status=$?
7939
 
  echo "$as_me:7939: \$? = $ac_status" >&5
7940
 
  (exit $ac_status); } &&
7941
 
         { ac_try='test -s conftest.$ac_objext'
7942
 
  { (eval echo "$as_me:7942: \"$ac_try\"") >&5
7943
 
  (eval $ac_try) 2>&5
7944
 
  ac_status=$?
7945
 
  echo "$as_me:7945: \$? = $ac_status" >&5
7946
 
  (exit $ac_status); }; }; then
7947
 
  ac_hi=$ac_mid; break
7948
 
else
7949
 
  echo "$as_me: failed program was:" >&5
7950
 
cat conftest.$ac_ext >&5
7951
 
ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7952
 
fi
7953
 
rm -f conftest.$ac_objext conftest.$ac_ext
7954
 
  done
7955
 
else
7956
 
  echo "$as_me: failed program was:" >&5
7957
 
cat conftest.$ac_ext >&5
7958
 
ac_hi=-1 ac_mid=-1
7959
 
  while :; do
7960
 
    cat >conftest.$ac_ext <<_ACEOF
7961
 
#line 7961 "configure"
7962
 
#include "confdefs.h"
7963
 
$ac_includes_default
7964
 
int
7965
 
main ()
7966
 
{
7967
 
int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
7968
 
  ;
7969
 
  return 0;
7970
 
}
7971
 
_ACEOF
7972
 
rm -f conftest.$ac_objext
7973
 
if { (eval echo "$as_me:7973: \"$ac_compile\"") >&5
7974
 
  (eval $ac_compile) 2>&5
7975
 
  ac_status=$?
7976
 
  echo "$as_me:7976: \$? = $ac_status" >&5
7977
 
  (exit $ac_status); } &&
7978
 
         { ac_try='test -s conftest.$ac_objext'
7979
 
  { (eval echo "$as_me:7979: \"$ac_try\"") >&5
7980
 
  (eval $ac_try) 2>&5
7981
 
  ac_status=$?
7982
 
  echo "$as_me:7982: \$? = $ac_status" >&5
7983
 
  (exit $ac_status); }; }; then
7984
 
  ac_lo=$ac_mid; break
7985
 
else
7986
 
  echo "$as_me: failed program was:" >&5
7987
 
cat conftest.$ac_ext >&5
7988
 
ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7989
 
fi
7990
 
rm -f conftest.$ac_objext conftest.$ac_ext
7991
 
  done
7992
 
fi
7993
 
rm -f conftest.$ac_objext conftest.$ac_ext
7994
 
# Binary search between lo and hi bounds.
7995
 
while test "x$ac_lo" != "x$ac_hi"; do
7996
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7997
 
  cat >conftest.$ac_ext <<_ACEOF
7998
 
#line 7998 "configure"
7999
 
#include "confdefs.h"
8000
 
$ac_includes_default
8001
 
int
8002
 
main ()
8003
 
{
8004
 
int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
8005
 
  ;
8006
 
  return 0;
8007
 
}
8008
 
_ACEOF
8009
 
rm -f conftest.$ac_objext
8010
 
if { (eval echo "$as_me:8010: \"$ac_compile\"") >&5
8011
 
  (eval $ac_compile) 2>&5
8012
 
  ac_status=$?
8013
 
  echo "$as_me:8013: \$? = $ac_status" >&5
8014
 
  (exit $ac_status); } &&
8015
 
         { ac_try='test -s conftest.$ac_objext'
8016
 
  { (eval echo "$as_me:8016: \"$ac_try\"") >&5
8017
 
  (eval $ac_try) 2>&5
8018
 
  ac_status=$?
8019
 
  echo "$as_me:8019: \$? = $ac_status" >&5
8020
 
  (exit $ac_status); }; }; then
8021
 
  ac_hi=$ac_mid
8022
 
else
8023
 
  echo "$as_me: failed program was:" >&5
8024
 
cat conftest.$ac_ext >&5
8025
 
ac_lo=`expr $ac_mid + 1`
8026
 
fi
8027
 
rm -f conftest.$ac_objext conftest.$ac_ext
8028
 
done
8029
 
ac_cv_sizeof_long=$ac_lo
8030
 
else
8031
 
  if test "$cross_compiling" = yes; then
8032
 
  { { echo "$as_me:8032: error: cannot run test program while cross compiling" >&5
8033
 
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8034
 
   { (exit 1); exit 1; }; }
8035
 
else
8036
 
  cat >conftest.$ac_ext <<_ACEOF
8037
 
#line 8037 "configure"
8038
 
#include "confdefs.h"
8039
 
$ac_includes_default
8040
 
int
8041
 
main ()
8042
 
{
8043
 
FILE *f = fopen ("conftest.val", "w");
8044
 
if (!f)
8045
 
  exit (1);
8046
 
fprintf (f, "%d", (sizeof (long)));
8047
 
fclose (f);
8048
 
  ;
8049
 
  return 0;
8050
 
}
8051
 
_ACEOF
8052
 
rm -f conftest$ac_exeext
8053
 
if { (eval echo "$as_me:8053: \"$ac_link\"") >&5
8054
 
  (eval $ac_link) 2>&5
8055
 
  ac_status=$?
8056
 
  echo "$as_me:8056: \$? = $ac_status" >&5
8057
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8058
 
  { (eval echo "$as_me:8058: \"$ac_try\"") >&5
8059
 
  (eval $ac_try) 2>&5
8060
 
  ac_status=$?
8061
 
  echo "$as_me:8061: \$? = $ac_status" >&5
8062
 
  (exit $ac_status); }; }; then
8063
 
  ac_cv_sizeof_long=`cat conftest.val`
8064
 
else
8065
 
  echo "$as_me: program exited with status $ac_status" >&5
8066
 
echo "$as_me: failed program was:" >&5
8067
 
cat conftest.$ac_ext >&5
8068
 
fi
8069
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
8070
 
fi
8071
 
fi
8072
 
rm -f conftest.val
8073
 
else
8074
 
  ac_cv_sizeof_long=0
8075
 
fi
8076
 
fi
8077
 
echo "$as_me:8077: result: $ac_cv_sizeof_long" >&5
8078
 
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8079
 
cat >>confdefs.h <<EOF
8080
 
#define SIZEOF_LONG $ac_cv_sizeof_long
8081
 
EOF
8082
 
 
8083
 
    ;;
8084
 
 *) case "$target" in
8085
 
     *-*-vxworks*)
8086
 
        echo "$as_me:8086: checking for long" >&5
8087
 
echo $ECHO_N "checking for long... $ECHO_C" >&6
8088
 
if test "${ac_cv_type_long+set}" = set; then
8089
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8090
 
else
8091
 
  cat >conftest.$ac_ext <<_ACEOF
8092
 
#line 8092 "configure"
8093
 
#include "confdefs.h"
8094
 
$ac_includes_default
8095
 
int
8096
 
main ()
8097
 
{
8098
 
if ((long *) 0)
8099
 
  return 0;
8100
 
if (sizeof (long))
8101
 
  return 0;
8102
 
  ;
8103
 
  return 0;
8104
 
}
8105
 
_ACEOF
8106
 
rm -f conftest.$ac_objext
8107
 
if { (eval echo "$as_me:8107: \"$ac_compile\"") >&5
8108
 
  (eval $ac_compile) 2>&5
8109
 
  ac_status=$?
8110
 
  echo "$as_me:8110: \$? = $ac_status" >&5
8111
 
  (exit $ac_status); } &&
8112
 
         { ac_try='test -s conftest.$ac_objext'
8113
 
  { (eval echo "$as_me:8113: \"$ac_try\"") >&5
8114
 
  (eval $ac_try) 2>&5
8115
 
  ac_status=$?
8116
 
  echo "$as_me:8116: \$? = $ac_status" >&5
8117
 
  (exit $ac_status); }; }; then
8118
 
  ac_cv_type_long=yes
8119
 
else
8120
 
  echo "$as_me: failed program was:" >&5
8121
 
cat conftest.$ac_ext >&5
8122
 
ac_cv_type_long=no
8123
 
fi
8124
 
rm -f conftest.$ac_objext conftest.$ac_ext
8125
 
fi
8126
 
echo "$as_me:8126: result: $ac_cv_type_long" >&5
8127
 
echo "${ECHO_T}$ac_cv_type_long" >&6
8128
 
 
8129
 
echo "$as_me:8129: checking size of long" >&5
8130
 
echo $ECHO_N "checking size of long... $ECHO_C" >&6
8131
 
if test "${ac_cv_sizeof_long+set}" = set; then
8132
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8133
 
else
8134
 
  if test "$ac_cv_type_long" = yes; then
8135
 
  if test "$cross_compiling" = yes; then
8136
 
  # Depending upon the size, compute the lo and hi bounds.
8137
 
cat >conftest.$ac_ext <<_ACEOF
8138
 
#line 8138 "configure"
8139
 
#include "confdefs.h"
8140
 
$ac_includes_default
8141
 
int
8142
 
main ()
8143
 
{
8144
 
int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
8145
 
  ;
8146
 
  return 0;
8147
 
}
8148
 
_ACEOF
8149
 
rm -f conftest.$ac_objext
8150
 
if { (eval echo "$as_me:8150: \"$ac_compile\"") >&5
8151
 
  (eval $ac_compile) 2>&5
8152
 
  ac_status=$?
8153
 
  echo "$as_me:8153: \$? = $ac_status" >&5
8154
 
  (exit $ac_status); } &&
8155
 
         { ac_try='test -s conftest.$ac_objext'
8156
 
  { (eval echo "$as_me:8156: \"$ac_try\"") >&5
8157
 
  (eval $ac_try) 2>&5
8158
 
  ac_status=$?
8159
 
  echo "$as_me:8159: \$? = $ac_status" >&5
8160
 
  (exit $ac_status); }; }; then
8161
 
  ac_lo=0 ac_mid=0
8162
 
  while :; do
8163
 
    cat >conftest.$ac_ext <<_ACEOF
8164
 
#line 8164 "configure"
8165
 
#include "confdefs.h"
8166
 
$ac_includes_default
8167
 
int
8168
 
main ()
8169
 
{
8170
 
int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
8171
 
  ;
8172
 
  return 0;
8173
 
}
8174
 
_ACEOF
8175
 
rm -f conftest.$ac_objext
8176
 
if { (eval echo "$as_me:8176: \"$ac_compile\"") >&5
8177
 
  (eval $ac_compile) 2>&5
8178
 
  ac_status=$?
8179
 
  echo "$as_me:8179: \$? = $ac_status" >&5
8180
 
  (exit $ac_status); } &&
8181
 
         { ac_try='test -s conftest.$ac_objext'
8182
 
  { (eval echo "$as_me:8182: \"$ac_try\"") >&5
8183
 
  (eval $ac_try) 2>&5
8184
 
  ac_status=$?
8185
 
  echo "$as_me:8185: \$? = $ac_status" >&5
8186
 
  (exit $ac_status); }; }; then
8187
 
  ac_hi=$ac_mid; break
8188
 
else
8189
 
  echo "$as_me: failed program was:" >&5
8190
 
cat conftest.$ac_ext >&5
8191
 
ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
8192
 
fi
8193
 
rm -f conftest.$ac_objext conftest.$ac_ext
8194
 
  done
8195
 
else
8196
 
  echo "$as_me: failed program was:" >&5
8197
 
cat conftest.$ac_ext >&5
8198
 
ac_hi=-1 ac_mid=-1
8199
 
  while :; do
8200
 
    cat >conftest.$ac_ext <<_ACEOF
8201
 
#line 8201 "configure"
8202
 
#include "confdefs.h"
8203
 
$ac_includes_default
8204
 
int
8205
 
main ()
8206
 
{
8207
 
int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
8208
 
  ;
8209
 
  return 0;
8210
 
}
8211
 
_ACEOF
8212
 
rm -f conftest.$ac_objext
8213
 
if { (eval echo "$as_me:8213: \"$ac_compile\"") >&5
8214
 
  (eval $ac_compile) 2>&5
8215
 
  ac_status=$?
8216
 
  echo "$as_me:8216: \$? = $ac_status" >&5
8217
 
  (exit $ac_status); } &&
8218
 
         { ac_try='test -s conftest.$ac_objext'
8219
 
  { (eval echo "$as_me:8219: \"$ac_try\"") >&5
8220
 
  (eval $ac_try) 2>&5
8221
 
  ac_status=$?
8222
 
  echo "$as_me:8222: \$? = $ac_status" >&5
8223
 
  (exit $ac_status); }; }; then
8224
 
  ac_lo=$ac_mid; break
8225
 
else
8226
 
  echo "$as_me: failed program was:" >&5
8227
 
cat conftest.$ac_ext >&5
8228
 
ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
8229
 
fi
8230
 
rm -f conftest.$ac_objext conftest.$ac_ext
8231
 
  done
8232
 
fi
8233
 
rm -f conftest.$ac_objext conftest.$ac_ext
8234
 
# Binary search between lo and hi bounds.
8235
 
while test "x$ac_lo" != "x$ac_hi"; do
8236
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8237
 
  cat >conftest.$ac_ext <<_ACEOF
8238
 
#line 8238 "configure"
8239
 
#include "confdefs.h"
8240
 
$ac_includes_default
8241
 
int
8242
 
main ()
8243
 
{
8244
 
int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
8245
 
  ;
8246
 
  return 0;
8247
 
}
8248
 
_ACEOF
8249
 
rm -f conftest.$ac_objext
8250
 
if { (eval echo "$as_me:8250: \"$ac_compile\"") >&5
8251
 
  (eval $ac_compile) 2>&5
8252
 
  ac_status=$?
8253
 
  echo "$as_me:8253: \$? = $ac_status" >&5
8254
 
  (exit $ac_status); } &&
8255
 
         { ac_try='test -s conftest.$ac_objext'
8256
 
  { (eval echo "$as_me:8256: \"$ac_try\"") >&5
8257
 
  (eval $ac_try) 2>&5
8258
 
  ac_status=$?
8259
 
  echo "$as_me:8259: \$? = $ac_status" >&5
8260
 
  (exit $ac_status); }; }; then
8261
 
  ac_hi=$ac_mid
8262
 
else
8263
 
  echo "$as_me: failed program was:" >&5
8264
 
cat conftest.$ac_ext >&5
8265
 
ac_lo=`expr $ac_mid + 1`
8266
 
fi
8267
 
rm -f conftest.$ac_objext conftest.$ac_ext
8268
 
done
8269
 
ac_cv_sizeof_long=$ac_lo
8270
 
else
8271
 
  if test "$cross_compiling" = yes; then
8272
 
  { { echo "$as_me:8272: error: cannot run test program while cross compiling" >&5
8273
 
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8274
 
   { (exit 1); exit 1; }; }
8275
 
else
8276
 
  cat >conftest.$ac_ext <<_ACEOF
8277
 
#line 8277 "configure"
8278
 
#include "confdefs.h"
8279
 
$ac_includes_default
8280
 
int
8281
 
main ()
8282
 
{
8283
 
FILE *f = fopen ("conftest.val", "w");
8284
 
if (!f)
8285
 
  exit (1);
8286
 
fprintf (f, "%d", (sizeof (long)));
8287
 
fclose (f);
8288
 
  ;
8289
 
  return 0;
8290
 
}
8291
 
_ACEOF
8292
 
rm -f conftest$ac_exeext
8293
 
if { (eval echo "$as_me:8293: \"$ac_link\"") >&5
8294
 
  (eval $ac_link) 2>&5
8295
 
  ac_status=$?
8296
 
  echo "$as_me:8296: \$? = $ac_status" >&5
8297
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8298
 
  { (eval echo "$as_me:8298: \"$ac_try\"") >&5
8299
 
  (eval $ac_try) 2>&5
8300
 
  ac_status=$?
8301
 
  echo "$as_me:8301: \$? = $ac_status" >&5
8302
 
  (exit $ac_status); }; }; then
8303
 
  ac_cv_sizeof_long=`cat conftest.val`
8304
 
else
8305
 
  echo "$as_me: program exited with status $ac_status" >&5
8306
 
echo "$as_me: failed program was:" >&5
8307
 
cat conftest.$ac_ext >&5
8308
 
fi
8309
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
8310
 
fi
8311
 
fi
8312
 
rm -f conftest.val
8313
 
else
8314
 
  ac_cv_sizeof_long=0
8315
 
fi
8316
 
fi
8317
 
echo "$as_me:8317: result: $ac_cv_sizeof_long" >&5
8318
 
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8319
 
cat >>confdefs.h <<EOF
8320
 
#define SIZEOF_LONG $ac_cv_sizeof_long
8321
 
EOF
8322
 
 
8323
 
        ;;
8324
 
     *) { { echo "$as_me:8324: error: Cross-compiling needs explicit SIZEOF_LONG" >&5
8325
 
echo "$as_me: error: Cross-compiling needs explicit SIZEOF_LONG" >&2;}
8326
 
   { (exit 1); exit 1; }; }
8327
 
        ;;
8328
 
    esac
8329
 
    ;;
8330
 
esac
8331
 
 
8332
 
echo "$as_me:8332: checking for s_char" >&5
 
15293
_ACEOF
 
15294
 
 
15295
fi
 
15296
                echo "$as_me:$LINENO: checking for signed char" >&5
 
15297
echo $ECHO_N "checking for signed char... $ECHO_C" >&6
 
15298
if test "${ac_cv_type_signed_char+set}" = set; then
 
15299
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15300
else
 
15301
  cat >conftest.$ac_ext <<_ACEOF
 
15302
/* confdefs.h.  */
 
15303
_ACEOF
 
15304
cat confdefs.h >>conftest.$ac_ext
 
15305
cat >>conftest.$ac_ext <<_ACEOF
 
15306
/* end confdefs.h.  */
 
15307
$ac_includes_default
 
15308
int
 
15309
main ()
 
15310
{
 
15311
if ((signed char *) 0)
 
15312
  return 0;
 
15313
if (sizeof (signed char))
 
15314
  return 0;
 
15315
  ;
 
15316
  return 0;
 
15317
}
 
15318
_ACEOF
 
15319
rm -f conftest.$ac_objext
 
15320
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15321
  (eval $ac_compile) 2>conftest.er1
 
15322
  ac_status=$?
 
15323
  grep -v '^ *+' conftest.er1 >conftest.err
 
15324
  rm -f conftest.er1
 
15325
  cat conftest.err >&5
 
15326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15327
  (exit $ac_status); } &&
 
15328
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15329
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15330
  (eval $ac_try) 2>&5
 
15331
  ac_status=$?
 
15332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15333
  (exit $ac_status); }; } &&
 
15334
         { ac_try='test -s conftest.$ac_objext'
 
15335
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15336
  (eval $ac_try) 2>&5
 
15337
  ac_status=$?
 
15338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15339
  (exit $ac_status); }; }; then
 
15340
  ac_cv_type_signed_char=yes
 
15341
else
 
15342
  echo "$as_me: failed program was:" >&5
 
15343
sed 's/^/| /' conftest.$ac_ext >&5
 
15344
 
 
15345
ac_cv_type_signed_char=no
 
15346
fi
 
15347
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15348
fi
 
15349
echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
 
15350
echo "${ECHO_T}$ac_cv_type_signed_char" >&6
 
15351
 
 
15352
echo "$as_me:$LINENO: checking size of signed char" >&5
 
15353
echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
 
15354
if test "${ac_cv_sizeof_signed_char+set}" = set; then
 
15355
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15356
else
 
15357
  if test "$ac_cv_type_signed_char" = yes; then
 
15358
  # The cast to unsigned long works around a bug in the HP C Compiler
 
15359
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
15360
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
15361
  # This bug is HP SR number 8606223364.
 
15362
  if test "$cross_compiling" = yes; then
 
15363
  # Depending upon the size, compute the lo and hi bounds.
 
15364
cat >conftest.$ac_ext <<_ACEOF
 
15365
/* confdefs.h.  */
 
15366
_ACEOF
 
15367
cat confdefs.h >>conftest.$ac_ext
 
15368
cat >>conftest.$ac_ext <<_ACEOF
 
15369
/* end confdefs.h.  */
 
15370
$ac_includes_default
 
15371
int
 
15372
main ()
 
15373
{
 
15374
static int test_array [1 - 2 * !(((long) (sizeof (signed char))) >= 0)];
 
15375
test_array [0] = 0
 
15376
 
 
15377
  ;
 
15378
  return 0;
 
15379
}
 
15380
_ACEOF
 
15381
rm -f conftest.$ac_objext
 
15382
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15383
  (eval $ac_compile) 2>conftest.er1
 
15384
  ac_status=$?
 
15385
  grep -v '^ *+' conftest.er1 >conftest.err
 
15386
  rm -f conftest.er1
 
15387
  cat conftest.err >&5
 
15388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15389
  (exit $ac_status); } &&
 
15390
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15391
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15392
  (eval $ac_try) 2>&5
 
15393
  ac_status=$?
 
15394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15395
  (exit $ac_status); }; } &&
 
15396
         { ac_try='test -s conftest.$ac_objext'
 
15397
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15398
  (eval $ac_try) 2>&5
 
15399
  ac_status=$?
 
15400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15401
  (exit $ac_status); }; }; then
 
15402
  ac_lo=0 ac_mid=0
 
15403
  while :; do
 
15404
    cat >conftest.$ac_ext <<_ACEOF
 
15405
/* confdefs.h.  */
 
15406
_ACEOF
 
15407
cat confdefs.h >>conftest.$ac_ext
 
15408
cat >>conftest.$ac_ext <<_ACEOF
 
15409
/* end confdefs.h.  */
 
15410
$ac_includes_default
 
15411
int
 
15412
main ()
 
15413
{
 
15414
static int test_array [1 - 2 * !(((long) (sizeof (signed char))) <= $ac_mid)];
 
15415
test_array [0] = 0
 
15416
 
 
15417
  ;
 
15418
  return 0;
 
15419
}
 
15420
_ACEOF
 
15421
rm -f conftest.$ac_objext
 
15422
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15423
  (eval $ac_compile) 2>conftest.er1
 
15424
  ac_status=$?
 
15425
  grep -v '^ *+' conftest.er1 >conftest.err
 
15426
  rm -f conftest.er1
 
15427
  cat conftest.err >&5
 
15428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15429
  (exit $ac_status); } &&
 
15430
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15431
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15432
  (eval $ac_try) 2>&5
 
15433
  ac_status=$?
 
15434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15435
  (exit $ac_status); }; } &&
 
15436
         { ac_try='test -s conftest.$ac_objext'
 
15437
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15438
  (eval $ac_try) 2>&5
 
15439
  ac_status=$?
 
15440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15441
  (exit $ac_status); }; }; then
 
15442
  ac_hi=$ac_mid; break
 
15443
else
 
15444
  echo "$as_me: failed program was:" >&5
 
15445
sed 's/^/| /' conftest.$ac_ext >&5
 
15446
 
 
15447
ac_lo=`expr $ac_mid + 1`
 
15448
                    if test $ac_lo -le $ac_mid; then
 
15449
                      ac_lo= ac_hi=
 
15450
                      break
 
15451
                    fi
 
15452
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
15453
fi
 
15454
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15455
  done
 
15456
else
 
15457
  echo "$as_me: failed program was:" >&5
 
15458
sed 's/^/| /' conftest.$ac_ext >&5
 
15459
 
 
15460
cat >conftest.$ac_ext <<_ACEOF
 
15461
/* confdefs.h.  */
 
15462
_ACEOF
 
15463
cat confdefs.h >>conftest.$ac_ext
 
15464
cat >>conftest.$ac_ext <<_ACEOF
 
15465
/* end confdefs.h.  */
 
15466
$ac_includes_default
 
15467
int
 
15468
main ()
 
15469
{
 
15470
static int test_array [1 - 2 * !(((long) (sizeof (signed char))) < 0)];
 
15471
test_array [0] = 0
 
15472
 
 
15473
  ;
 
15474
  return 0;
 
15475
}
 
15476
_ACEOF
 
15477
rm -f conftest.$ac_objext
 
15478
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15479
  (eval $ac_compile) 2>conftest.er1
 
15480
  ac_status=$?
 
15481
  grep -v '^ *+' conftest.er1 >conftest.err
 
15482
  rm -f conftest.er1
 
15483
  cat conftest.err >&5
 
15484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15485
  (exit $ac_status); } &&
 
15486
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15487
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15488
  (eval $ac_try) 2>&5
 
15489
  ac_status=$?
 
15490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15491
  (exit $ac_status); }; } &&
 
15492
         { ac_try='test -s conftest.$ac_objext'
 
15493
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15494
  (eval $ac_try) 2>&5
 
15495
  ac_status=$?
 
15496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15497
  (exit $ac_status); }; }; then
 
15498
  ac_hi=-1 ac_mid=-1
 
15499
  while :; do
 
15500
    cat >conftest.$ac_ext <<_ACEOF
 
15501
/* confdefs.h.  */
 
15502
_ACEOF
 
15503
cat confdefs.h >>conftest.$ac_ext
 
15504
cat >>conftest.$ac_ext <<_ACEOF
 
15505
/* end confdefs.h.  */
 
15506
$ac_includes_default
 
15507
int
 
15508
main ()
 
15509
{
 
15510
static int test_array [1 - 2 * !(((long) (sizeof (signed char))) >= $ac_mid)];
 
15511
test_array [0] = 0
 
15512
 
 
15513
  ;
 
15514
  return 0;
 
15515
}
 
15516
_ACEOF
 
15517
rm -f conftest.$ac_objext
 
15518
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15519
  (eval $ac_compile) 2>conftest.er1
 
15520
  ac_status=$?
 
15521
  grep -v '^ *+' conftest.er1 >conftest.err
 
15522
  rm -f conftest.er1
 
15523
  cat conftest.err >&5
 
15524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15525
  (exit $ac_status); } &&
 
15526
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15527
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15528
  (eval $ac_try) 2>&5
 
15529
  ac_status=$?
 
15530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15531
  (exit $ac_status); }; } &&
 
15532
         { ac_try='test -s conftest.$ac_objext'
 
15533
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15534
  (eval $ac_try) 2>&5
 
15535
  ac_status=$?
 
15536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15537
  (exit $ac_status); }; }; then
 
15538
  ac_lo=$ac_mid; break
 
15539
else
 
15540
  echo "$as_me: failed program was:" >&5
 
15541
sed 's/^/| /' conftest.$ac_ext >&5
 
15542
 
 
15543
ac_hi=`expr '(' $ac_mid ')' - 1`
 
15544
                       if test $ac_mid -le $ac_hi; then
 
15545
                         ac_lo= ac_hi=
 
15546
                         break
 
15547
                       fi
 
15548
                       ac_mid=`expr 2 '*' $ac_mid`
 
15549
fi
 
15550
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15551
  done
 
15552
else
 
15553
  echo "$as_me: failed program was:" >&5
 
15554
sed 's/^/| /' conftest.$ac_ext >&5
 
15555
 
 
15556
ac_lo= ac_hi=
 
15557
fi
 
15558
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15559
fi
 
15560
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15561
# Binary search between lo and hi bounds.
 
15562
while test "x$ac_lo" != "x$ac_hi"; do
 
15563
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
15564
  cat >conftest.$ac_ext <<_ACEOF
 
15565
/* confdefs.h.  */
 
15566
_ACEOF
 
15567
cat confdefs.h >>conftest.$ac_ext
 
15568
cat >>conftest.$ac_ext <<_ACEOF
 
15569
/* end confdefs.h.  */
 
15570
$ac_includes_default
 
15571
int
 
15572
main ()
 
15573
{
 
15574
static int test_array [1 - 2 * !(((long) (sizeof (signed char))) <= $ac_mid)];
 
15575
test_array [0] = 0
 
15576
 
 
15577
  ;
 
15578
  return 0;
 
15579
}
 
15580
_ACEOF
 
15581
rm -f conftest.$ac_objext
 
15582
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15583
  (eval $ac_compile) 2>conftest.er1
 
15584
  ac_status=$?
 
15585
  grep -v '^ *+' conftest.er1 >conftest.err
 
15586
  rm -f conftest.er1
 
15587
  cat conftest.err >&5
 
15588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15589
  (exit $ac_status); } &&
 
15590
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15591
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15592
  (eval $ac_try) 2>&5
 
15593
  ac_status=$?
 
15594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15595
  (exit $ac_status); }; } &&
 
15596
         { ac_try='test -s conftest.$ac_objext'
 
15597
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15598
  (eval $ac_try) 2>&5
 
15599
  ac_status=$?
 
15600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15601
  (exit $ac_status); }; }; then
 
15602
  ac_hi=$ac_mid
 
15603
else
 
15604
  echo "$as_me: failed program was:" >&5
 
15605
sed 's/^/| /' conftest.$ac_ext >&5
 
15606
 
 
15607
ac_lo=`expr '(' $ac_mid ')' + 1`
 
15608
fi
 
15609
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15610
done
 
15611
case $ac_lo in
 
15612
?*) ac_cv_sizeof_signed_char=$ac_lo;;
 
15613
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char), 77
 
15614
See \`config.log' for more details." >&5
 
15615
echo "$as_me: error: cannot compute sizeof (signed char), 77
 
15616
See \`config.log' for more details." >&2;}
 
15617
   { (exit 1); exit 1; }; } ;;
 
15618
esac
 
15619
else
 
15620
  if test "$cross_compiling" = yes; then
 
15621
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
15622
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
15623
   { (exit 1); exit 1; }; }
 
15624
else
 
15625
  cat >conftest.$ac_ext <<_ACEOF
 
15626
/* confdefs.h.  */
 
15627
_ACEOF
 
15628
cat confdefs.h >>conftest.$ac_ext
 
15629
cat >>conftest.$ac_ext <<_ACEOF
 
15630
/* end confdefs.h.  */
 
15631
$ac_includes_default
 
15632
long longval () { return (long) (sizeof (signed char)); }
 
15633
unsigned long ulongval () { return (long) (sizeof (signed char)); }
 
15634
#include <stdio.h>
 
15635
#include <stdlib.h>
 
15636
int
 
15637
main ()
 
15638
{
 
15639
 
 
15640
  FILE *f = fopen ("conftest.val", "w");
 
15641
  if (! f)
 
15642
    exit (1);
 
15643
  if (((long) (sizeof (signed char))) < 0)
 
15644
    {
 
15645
      long i = longval ();
 
15646
      if (i != ((long) (sizeof (signed char))))
 
15647
        exit (1);
 
15648
      fprintf (f, "%ld\n", i);
 
15649
    }
 
15650
  else
 
15651
    {
 
15652
      unsigned long i = ulongval ();
 
15653
      if (i != ((long) (sizeof (signed char))))
 
15654
        exit (1);
 
15655
      fprintf (f, "%lu\n", i);
 
15656
    }
 
15657
  exit (ferror (f) || fclose (f) != 0);
 
15658
 
 
15659
  ;
 
15660
  return 0;
 
15661
}
 
15662
_ACEOF
 
15663
rm -f conftest$ac_exeext
 
15664
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15665
  (eval $ac_link) 2>&5
 
15666
  ac_status=$?
 
15667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15668
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
15669
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15670
  (eval $ac_try) 2>&5
 
15671
  ac_status=$?
 
15672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15673
  (exit $ac_status); }; }; then
 
15674
  ac_cv_sizeof_signed_char=`cat conftest.val`
 
15675
else
 
15676
  echo "$as_me: program exited with status $ac_status" >&5
 
15677
echo "$as_me: failed program was:" >&5
 
15678
sed 's/^/| /' conftest.$ac_ext >&5
 
15679
 
 
15680
( exit $ac_status )
 
15681
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char), 77
 
15682
See \`config.log' for more details." >&5
 
15683
echo "$as_me: error: cannot compute sizeof (signed char), 77
 
15684
See \`config.log' for more details." >&2;}
 
15685
   { (exit 1); exit 1; }; }
 
15686
fi
 
15687
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
15688
fi
 
15689
fi
 
15690
rm -f conftest.val
 
15691
else
 
15692
  ac_cv_sizeof_signed_char=0
 
15693
fi
 
15694
fi
 
15695
echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
 
15696
echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
 
15697
cat >>confdefs.h <<_ACEOF
 
15698
#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
 
15699
_ACEOF
 
15700
 
 
15701
 
 
15702
echo "$as_me:$LINENO: checking for int" >&5
 
15703
echo $ECHO_N "checking for int... $ECHO_C" >&6
 
15704
if test "${ac_cv_type_int+set}" = set; then
 
15705
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15706
else
 
15707
  cat >conftest.$ac_ext <<_ACEOF
 
15708
/* confdefs.h.  */
 
15709
_ACEOF
 
15710
cat confdefs.h >>conftest.$ac_ext
 
15711
cat >>conftest.$ac_ext <<_ACEOF
 
15712
/* end confdefs.h.  */
 
15713
$ac_includes_default
 
15714
int
 
15715
main ()
 
15716
{
 
15717
if ((int *) 0)
 
15718
  return 0;
 
15719
if (sizeof (int))
 
15720
  return 0;
 
15721
  ;
 
15722
  return 0;
 
15723
}
 
15724
_ACEOF
 
15725
rm -f conftest.$ac_objext
 
15726
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15727
  (eval $ac_compile) 2>conftest.er1
 
15728
  ac_status=$?
 
15729
  grep -v '^ *+' conftest.er1 >conftest.err
 
15730
  rm -f conftest.er1
 
15731
  cat conftest.err >&5
 
15732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15733
  (exit $ac_status); } &&
 
15734
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15735
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15736
  (eval $ac_try) 2>&5
 
15737
  ac_status=$?
 
15738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15739
  (exit $ac_status); }; } &&
 
15740
         { ac_try='test -s conftest.$ac_objext'
 
15741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15742
  (eval $ac_try) 2>&5
 
15743
  ac_status=$?
 
15744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15745
  (exit $ac_status); }; }; then
 
15746
  ac_cv_type_int=yes
 
15747
else
 
15748
  echo "$as_me: failed program was:" >&5
 
15749
sed 's/^/| /' conftest.$ac_ext >&5
 
15750
 
 
15751
ac_cv_type_int=no
 
15752
fi
 
15753
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15754
fi
 
15755
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
 
15756
echo "${ECHO_T}$ac_cv_type_int" >&6
 
15757
 
 
15758
echo "$as_me:$LINENO: checking size of int" >&5
 
15759
echo $ECHO_N "checking size of int... $ECHO_C" >&6
 
15760
if test "${ac_cv_sizeof_int+set}" = set; then
 
15761
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15762
else
 
15763
  if test "$ac_cv_type_int" = yes; then
 
15764
  # The cast to unsigned long works around a bug in the HP C Compiler
 
15765
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
15766
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
15767
  # This bug is HP SR number 8606223364.
 
15768
  if test "$cross_compiling" = yes; then
 
15769
  # Depending upon the size, compute the lo and hi bounds.
 
15770
cat >conftest.$ac_ext <<_ACEOF
 
15771
/* confdefs.h.  */
 
15772
_ACEOF
 
15773
cat confdefs.h >>conftest.$ac_ext
 
15774
cat >>conftest.$ac_ext <<_ACEOF
 
15775
/* end confdefs.h.  */
 
15776
$ac_includes_default
 
15777
int
 
15778
main ()
 
15779
{
 
15780
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
 
15781
test_array [0] = 0
 
15782
 
 
15783
  ;
 
15784
  return 0;
 
15785
}
 
15786
_ACEOF
 
15787
rm -f conftest.$ac_objext
 
15788
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15789
  (eval $ac_compile) 2>conftest.er1
 
15790
  ac_status=$?
 
15791
  grep -v '^ *+' conftest.er1 >conftest.err
 
15792
  rm -f conftest.er1
 
15793
  cat conftest.err >&5
 
15794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15795
  (exit $ac_status); } &&
 
15796
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15797
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15798
  (eval $ac_try) 2>&5
 
15799
  ac_status=$?
 
15800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15801
  (exit $ac_status); }; } &&
 
15802
         { ac_try='test -s conftest.$ac_objext'
 
15803
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15804
  (eval $ac_try) 2>&5
 
15805
  ac_status=$?
 
15806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15807
  (exit $ac_status); }; }; then
 
15808
  ac_lo=0 ac_mid=0
 
15809
  while :; do
 
15810
    cat >conftest.$ac_ext <<_ACEOF
 
15811
/* confdefs.h.  */
 
15812
_ACEOF
 
15813
cat confdefs.h >>conftest.$ac_ext
 
15814
cat >>conftest.$ac_ext <<_ACEOF
 
15815
/* end confdefs.h.  */
 
15816
$ac_includes_default
 
15817
int
 
15818
main ()
 
15819
{
 
15820
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
15821
test_array [0] = 0
 
15822
 
 
15823
  ;
 
15824
  return 0;
 
15825
}
 
15826
_ACEOF
 
15827
rm -f conftest.$ac_objext
 
15828
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15829
  (eval $ac_compile) 2>conftest.er1
 
15830
  ac_status=$?
 
15831
  grep -v '^ *+' conftest.er1 >conftest.err
 
15832
  rm -f conftest.er1
 
15833
  cat conftest.err >&5
 
15834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15835
  (exit $ac_status); } &&
 
15836
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15837
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15838
  (eval $ac_try) 2>&5
 
15839
  ac_status=$?
 
15840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15841
  (exit $ac_status); }; } &&
 
15842
         { ac_try='test -s conftest.$ac_objext'
 
15843
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15844
  (eval $ac_try) 2>&5
 
15845
  ac_status=$?
 
15846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15847
  (exit $ac_status); }; }; then
 
15848
  ac_hi=$ac_mid; break
 
15849
else
 
15850
  echo "$as_me: failed program was:" >&5
 
15851
sed 's/^/| /' conftest.$ac_ext >&5
 
15852
 
 
15853
ac_lo=`expr $ac_mid + 1`
 
15854
                    if test $ac_lo -le $ac_mid; then
 
15855
                      ac_lo= ac_hi=
 
15856
                      break
 
15857
                    fi
 
15858
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
15859
fi
 
15860
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15861
  done
 
15862
else
 
15863
  echo "$as_me: failed program was:" >&5
 
15864
sed 's/^/| /' conftest.$ac_ext >&5
 
15865
 
 
15866
cat >conftest.$ac_ext <<_ACEOF
 
15867
/* confdefs.h.  */
 
15868
_ACEOF
 
15869
cat confdefs.h >>conftest.$ac_ext
 
15870
cat >>conftest.$ac_ext <<_ACEOF
 
15871
/* end confdefs.h.  */
 
15872
$ac_includes_default
 
15873
int
 
15874
main ()
 
15875
{
 
15876
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
 
15877
test_array [0] = 0
 
15878
 
 
15879
  ;
 
15880
  return 0;
 
15881
}
 
15882
_ACEOF
 
15883
rm -f conftest.$ac_objext
 
15884
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15885
  (eval $ac_compile) 2>conftest.er1
 
15886
  ac_status=$?
 
15887
  grep -v '^ *+' conftest.er1 >conftest.err
 
15888
  rm -f conftest.er1
 
15889
  cat conftest.err >&5
 
15890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15891
  (exit $ac_status); } &&
 
15892
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15893
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15894
  (eval $ac_try) 2>&5
 
15895
  ac_status=$?
 
15896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15897
  (exit $ac_status); }; } &&
 
15898
         { ac_try='test -s conftest.$ac_objext'
 
15899
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15900
  (eval $ac_try) 2>&5
 
15901
  ac_status=$?
 
15902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15903
  (exit $ac_status); }; }; then
 
15904
  ac_hi=-1 ac_mid=-1
 
15905
  while :; do
 
15906
    cat >conftest.$ac_ext <<_ACEOF
 
15907
/* confdefs.h.  */
 
15908
_ACEOF
 
15909
cat confdefs.h >>conftest.$ac_ext
 
15910
cat >>conftest.$ac_ext <<_ACEOF
 
15911
/* end confdefs.h.  */
 
15912
$ac_includes_default
 
15913
int
 
15914
main ()
 
15915
{
 
15916
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
 
15917
test_array [0] = 0
 
15918
 
 
15919
  ;
 
15920
  return 0;
 
15921
}
 
15922
_ACEOF
 
15923
rm -f conftest.$ac_objext
 
15924
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15925
  (eval $ac_compile) 2>conftest.er1
 
15926
  ac_status=$?
 
15927
  grep -v '^ *+' conftest.er1 >conftest.err
 
15928
  rm -f conftest.er1
 
15929
  cat conftest.err >&5
 
15930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15931
  (exit $ac_status); } &&
 
15932
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15933
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15934
  (eval $ac_try) 2>&5
 
15935
  ac_status=$?
 
15936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15937
  (exit $ac_status); }; } &&
 
15938
         { ac_try='test -s conftest.$ac_objext'
 
15939
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15940
  (eval $ac_try) 2>&5
 
15941
  ac_status=$?
 
15942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15943
  (exit $ac_status); }; }; then
 
15944
  ac_lo=$ac_mid; break
 
15945
else
 
15946
  echo "$as_me: failed program was:" >&5
 
15947
sed 's/^/| /' conftest.$ac_ext >&5
 
15948
 
 
15949
ac_hi=`expr '(' $ac_mid ')' - 1`
 
15950
                       if test $ac_mid -le $ac_hi; then
 
15951
                         ac_lo= ac_hi=
 
15952
                         break
 
15953
                       fi
 
15954
                       ac_mid=`expr 2 '*' $ac_mid`
 
15955
fi
 
15956
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15957
  done
 
15958
else
 
15959
  echo "$as_me: failed program was:" >&5
 
15960
sed 's/^/| /' conftest.$ac_ext >&5
 
15961
 
 
15962
ac_lo= ac_hi=
 
15963
fi
 
15964
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15965
fi
 
15966
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15967
# Binary search between lo and hi bounds.
 
15968
while test "x$ac_lo" != "x$ac_hi"; do
 
15969
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
15970
  cat >conftest.$ac_ext <<_ACEOF
 
15971
/* confdefs.h.  */
 
15972
_ACEOF
 
15973
cat confdefs.h >>conftest.$ac_ext
 
15974
cat >>conftest.$ac_ext <<_ACEOF
 
15975
/* end confdefs.h.  */
 
15976
$ac_includes_default
 
15977
int
 
15978
main ()
 
15979
{
 
15980
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
15981
test_array [0] = 0
 
15982
 
 
15983
  ;
 
15984
  return 0;
 
15985
}
 
15986
_ACEOF
 
15987
rm -f conftest.$ac_objext
 
15988
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15989
  (eval $ac_compile) 2>conftest.er1
 
15990
  ac_status=$?
 
15991
  grep -v '^ *+' conftest.er1 >conftest.err
 
15992
  rm -f conftest.er1
 
15993
  cat conftest.err >&5
 
15994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15995
  (exit $ac_status); } &&
 
15996
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15997
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15998
  (eval $ac_try) 2>&5
 
15999
  ac_status=$?
 
16000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16001
  (exit $ac_status); }; } &&
 
16002
         { ac_try='test -s conftest.$ac_objext'
 
16003
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16004
  (eval $ac_try) 2>&5
 
16005
  ac_status=$?
 
16006
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16007
  (exit $ac_status); }; }; then
 
16008
  ac_hi=$ac_mid
 
16009
else
 
16010
  echo "$as_me: failed program was:" >&5
 
16011
sed 's/^/| /' conftest.$ac_ext >&5
 
16012
 
 
16013
ac_lo=`expr '(' $ac_mid ')' + 1`
 
16014
fi
 
16015
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16016
done
 
16017
case $ac_lo in
 
16018
?*) ac_cv_sizeof_int=$ac_lo;;
 
16019
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
16020
See \`config.log' for more details." >&5
 
16021
echo "$as_me: error: cannot compute sizeof (int), 77
 
16022
See \`config.log' for more details." >&2;}
 
16023
   { (exit 1); exit 1; }; } ;;
 
16024
esac
 
16025
else
 
16026
  if test "$cross_compiling" = yes; then
 
16027
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
16028
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
16029
   { (exit 1); exit 1; }; }
 
16030
else
 
16031
  cat >conftest.$ac_ext <<_ACEOF
 
16032
/* confdefs.h.  */
 
16033
_ACEOF
 
16034
cat confdefs.h >>conftest.$ac_ext
 
16035
cat >>conftest.$ac_ext <<_ACEOF
 
16036
/* end confdefs.h.  */
 
16037
$ac_includes_default
 
16038
long longval () { return (long) (sizeof (int)); }
 
16039
unsigned long ulongval () { return (long) (sizeof (int)); }
 
16040
#include <stdio.h>
 
16041
#include <stdlib.h>
 
16042
int
 
16043
main ()
 
16044
{
 
16045
 
 
16046
  FILE *f = fopen ("conftest.val", "w");
 
16047
  if (! f)
 
16048
    exit (1);
 
16049
  if (((long) (sizeof (int))) < 0)
 
16050
    {
 
16051
      long i = longval ();
 
16052
      if (i != ((long) (sizeof (int))))
 
16053
        exit (1);
 
16054
      fprintf (f, "%ld\n", i);
 
16055
    }
 
16056
  else
 
16057
    {
 
16058
      unsigned long i = ulongval ();
 
16059
      if (i != ((long) (sizeof (int))))
 
16060
        exit (1);
 
16061
      fprintf (f, "%lu\n", i);
 
16062
    }
 
16063
  exit (ferror (f) || fclose (f) != 0);
 
16064
 
 
16065
  ;
 
16066
  return 0;
 
16067
}
 
16068
_ACEOF
 
16069
rm -f conftest$ac_exeext
 
16070
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16071
  (eval $ac_link) 2>&5
 
16072
  ac_status=$?
 
16073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16074
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
16075
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16076
  (eval $ac_try) 2>&5
 
16077
  ac_status=$?
 
16078
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16079
  (exit $ac_status); }; }; then
 
16080
  ac_cv_sizeof_int=`cat conftest.val`
 
16081
else
 
16082
  echo "$as_me: program exited with status $ac_status" >&5
 
16083
echo "$as_me: failed program was:" >&5
 
16084
sed 's/^/| /' conftest.$ac_ext >&5
 
16085
 
 
16086
( exit $ac_status )
 
16087
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
16088
See \`config.log' for more details." >&5
 
16089
echo "$as_me: error: cannot compute sizeof (int), 77
 
16090
See \`config.log' for more details." >&2;}
 
16091
   { (exit 1); exit 1; }; }
 
16092
fi
 
16093
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
16094
fi
 
16095
fi
 
16096
rm -f conftest.val
 
16097
else
 
16098
  ac_cv_sizeof_int=0
 
16099
fi
 
16100
fi
 
16101
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
 
16102
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
 
16103
cat >>confdefs.h <<_ACEOF
 
16104
#define SIZEOF_INT $ac_cv_sizeof_int
 
16105
_ACEOF
 
16106
 
 
16107
 
 
16108
echo "$as_me:$LINENO: checking for long" >&5
 
16109
echo $ECHO_N "checking for long... $ECHO_C" >&6
 
16110
if test "${ac_cv_type_long+set}" = set; then
 
16111
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16112
else
 
16113
  cat >conftest.$ac_ext <<_ACEOF
 
16114
/* confdefs.h.  */
 
16115
_ACEOF
 
16116
cat confdefs.h >>conftest.$ac_ext
 
16117
cat >>conftest.$ac_ext <<_ACEOF
 
16118
/* end confdefs.h.  */
 
16119
$ac_includes_default
 
16120
int
 
16121
main ()
 
16122
{
 
16123
if ((long *) 0)
 
16124
  return 0;
 
16125
if (sizeof (long))
 
16126
  return 0;
 
16127
  ;
 
16128
  return 0;
 
16129
}
 
16130
_ACEOF
 
16131
rm -f conftest.$ac_objext
 
16132
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16133
  (eval $ac_compile) 2>conftest.er1
 
16134
  ac_status=$?
 
16135
  grep -v '^ *+' conftest.er1 >conftest.err
 
16136
  rm -f conftest.er1
 
16137
  cat conftest.err >&5
 
16138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16139
  (exit $ac_status); } &&
 
16140
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16141
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16142
  (eval $ac_try) 2>&5
 
16143
  ac_status=$?
 
16144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16145
  (exit $ac_status); }; } &&
 
16146
         { ac_try='test -s conftest.$ac_objext'
 
16147
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16148
  (eval $ac_try) 2>&5
 
16149
  ac_status=$?
 
16150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16151
  (exit $ac_status); }; }; then
 
16152
  ac_cv_type_long=yes
 
16153
else
 
16154
  echo "$as_me: failed program was:" >&5
 
16155
sed 's/^/| /' conftest.$ac_ext >&5
 
16156
 
 
16157
ac_cv_type_long=no
 
16158
fi
 
16159
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16160
fi
 
16161
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
 
16162
echo "${ECHO_T}$ac_cv_type_long" >&6
 
16163
 
 
16164
echo "$as_me:$LINENO: checking size of long" >&5
 
16165
echo $ECHO_N "checking size of long... $ECHO_C" >&6
 
16166
if test "${ac_cv_sizeof_long+set}" = set; then
 
16167
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16168
else
 
16169
  if test "$ac_cv_type_long" = yes; then
 
16170
  # The cast to unsigned long works around a bug in the HP C Compiler
 
16171
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
16172
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
16173
  # This bug is HP SR number 8606223364.
 
16174
  if test "$cross_compiling" = yes; then
 
16175
  # Depending upon the size, compute the lo and hi bounds.
 
16176
cat >conftest.$ac_ext <<_ACEOF
 
16177
/* confdefs.h.  */
 
16178
_ACEOF
 
16179
cat confdefs.h >>conftest.$ac_ext
 
16180
cat >>conftest.$ac_ext <<_ACEOF
 
16181
/* end confdefs.h.  */
 
16182
$ac_includes_default
 
16183
int
 
16184
main ()
 
16185
{
 
16186
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
 
16187
test_array [0] = 0
 
16188
 
 
16189
  ;
 
16190
  return 0;
 
16191
}
 
16192
_ACEOF
 
16193
rm -f conftest.$ac_objext
 
16194
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16195
  (eval $ac_compile) 2>conftest.er1
 
16196
  ac_status=$?
 
16197
  grep -v '^ *+' conftest.er1 >conftest.err
 
16198
  rm -f conftest.er1
 
16199
  cat conftest.err >&5
 
16200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16201
  (exit $ac_status); } &&
 
16202
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16203
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16204
  (eval $ac_try) 2>&5
 
16205
  ac_status=$?
 
16206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16207
  (exit $ac_status); }; } &&
 
16208
         { ac_try='test -s conftest.$ac_objext'
 
16209
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16210
  (eval $ac_try) 2>&5
 
16211
  ac_status=$?
 
16212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16213
  (exit $ac_status); }; }; then
 
16214
  ac_lo=0 ac_mid=0
 
16215
  while :; do
 
16216
    cat >conftest.$ac_ext <<_ACEOF
 
16217
/* confdefs.h.  */
 
16218
_ACEOF
 
16219
cat confdefs.h >>conftest.$ac_ext
 
16220
cat >>conftest.$ac_ext <<_ACEOF
 
16221
/* end confdefs.h.  */
 
16222
$ac_includes_default
 
16223
int
 
16224
main ()
 
16225
{
 
16226
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
16227
test_array [0] = 0
 
16228
 
 
16229
  ;
 
16230
  return 0;
 
16231
}
 
16232
_ACEOF
 
16233
rm -f conftest.$ac_objext
 
16234
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16235
  (eval $ac_compile) 2>conftest.er1
 
16236
  ac_status=$?
 
16237
  grep -v '^ *+' conftest.er1 >conftest.err
 
16238
  rm -f conftest.er1
 
16239
  cat conftest.err >&5
 
16240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16241
  (exit $ac_status); } &&
 
16242
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16244
  (eval $ac_try) 2>&5
 
16245
  ac_status=$?
 
16246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16247
  (exit $ac_status); }; } &&
 
16248
         { ac_try='test -s conftest.$ac_objext'
 
16249
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16250
  (eval $ac_try) 2>&5
 
16251
  ac_status=$?
 
16252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16253
  (exit $ac_status); }; }; then
 
16254
  ac_hi=$ac_mid; break
 
16255
else
 
16256
  echo "$as_me: failed program was:" >&5
 
16257
sed 's/^/| /' conftest.$ac_ext >&5
 
16258
 
 
16259
ac_lo=`expr $ac_mid + 1`
 
16260
                    if test $ac_lo -le $ac_mid; then
 
16261
                      ac_lo= ac_hi=
 
16262
                      break
 
16263
                    fi
 
16264
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
16265
fi
 
16266
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16267
  done
 
16268
else
 
16269
  echo "$as_me: failed program was:" >&5
 
16270
sed 's/^/| /' conftest.$ac_ext >&5
 
16271
 
 
16272
cat >conftest.$ac_ext <<_ACEOF
 
16273
/* confdefs.h.  */
 
16274
_ACEOF
 
16275
cat confdefs.h >>conftest.$ac_ext
 
16276
cat >>conftest.$ac_ext <<_ACEOF
 
16277
/* end confdefs.h.  */
 
16278
$ac_includes_default
 
16279
int
 
16280
main ()
 
16281
{
 
16282
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
 
16283
test_array [0] = 0
 
16284
 
 
16285
  ;
 
16286
  return 0;
 
16287
}
 
16288
_ACEOF
 
16289
rm -f conftest.$ac_objext
 
16290
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16291
  (eval $ac_compile) 2>conftest.er1
 
16292
  ac_status=$?
 
16293
  grep -v '^ *+' conftest.er1 >conftest.err
 
16294
  rm -f conftest.er1
 
16295
  cat conftest.err >&5
 
16296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16297
  (exit $ac_status); } &&
 
16298
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16299
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16300
  (eval $ac_try) 2>&5
 
16301
  ac_status=$?
 
16302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16303
  (exit $ac_status); }; } &&
 
16304
         { ac_try='test -s conftest.$ac_objext'
 
16305
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16306
  (eval $ac_try) 2>&5
 
16307
  ac_status=$?
 
16308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16309
  (exit $ac_status); }; }; then
 
16310
  ac_hi=-1 ac_mid=-1
 
16311
  while :; do
 
16312
    cat >conftest.$ac_ext <<_ACEOF
 
16313
/* confdefs.h.  */
 
16314
_ACEOF
 
16315
cat confdefs.h >>conftest.$ac_ext
 
16316
cat >>conftest.$ac_ext <<_ACEOF
 
16317
/* end confdefs.h.  */
 
16318
$ac_includes_default
 
16319
int
 
16320
main ()
 
16321
{
 
16322
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
 
16323
test_array [0] = 0
 
16324
 
 
16325
  ;
 
16326
  return 0;
 
16327
}
 
16328
_ACEOF
 
16329
rm -f conftest.$ac_objext
 
16330
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16331
  (eval $ac_compile) 2>conftest.er1
 
16332
  ac_status=$?
 
16333
  grep -v '^ *+' conftest.er1 >conftest.err
 
16334
  rm -f conftest.er1
 
16335
  cat conftest.err >&5
 
16336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16337
  (exit $ac_status); } &&
 
16338
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16339
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16340
  (eval $ac_try) 2>&5
 
16341
  ac_status=$?
 
16342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16343
  (exit $ac_status); }; } &&
 
16344
         { ac_try='test -s conftest.$ac_objext'
 
16345
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16346
  (eval $ac_try) 2>&5
 
16347
  ac_status=$?
 
16348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16349
  (exit $ac_status); }; }; then
 
16350
  ac_lo=$ac_mid; break
 
16351
else
 
16352
  echo "$as_me: failed program was:" >&5
 
16353
sed 's/^/| /' conftest.$ac_ext >&5
 
16354
 
 
16355
ac_hi=`expr '(' $ac_mid ')' - 1`
 
16356
                       if test $ac_mid -le $ac_hi; then
 
16357
                         ac_lo= ac_hi=
 
16358
                         break
 
16359
                       fi
 
16360
                       ac_mid=`expr 2 '*' $ac_mid`
 
16361
fi
 
16362
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16363
  done
 
16364
else
 
16365
  echo "$as_me: failed program was:" >&5
 
16366
sed 's/^/| /' conftest.$ac_ext >&5
 
16367
 
 
16368
ac_lo= ac_hi=
 
16369
fi
 
16370
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16371
fi
 
16372
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16373
# Binary search between lo and hi bounds.
 
16374
while test "x$ac_lo" != "x$ac_hi"; do
 
16375
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
16376
  cat >conftest.$ac_ext <<_ACEOF
 
16377
/* confdefs.h.  */
 
16378
_ACEOF
 
16379
cat confdefs.h >>conftest.$ac_ext
 
16380
cat >>conftest.$ac_ext <<_ACEOF
 
16381
/* end confdefs.h.  */
 
16382
$ac_includes_default
 
16383
int
 
16384
main ()
 
16385
{
 
16386
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
16387
test_array [0] = 0
 
16388
 
 
16389
  ;
 
16390
  return 0;
 
16391
}
 
16392
_ACEOF
 
16393
rm -f conftest.$ac_objext
 
16394
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16395
  (eval $ac_compile) 2>conftest.er1
 
16396
  ac_status=$?
 
16397
  grep -v '^ *+' conftest.er1 >conftest.err
 
16398
  rm -f conftest.er1
 
16399
  cat conftest.err >&5
 
16400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16401
  (exit $ac_status); } &&
 
16402
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16403
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16404
  (eval $ac_try) 2>&5
 
16405
  ac_status=$?
 
16406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16407
  (exit $ac_status); }; } &&
 
16408
         { ac_try='test -s conftest.$ac_objext'
 
16409
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16410
  (eval $ac_try) 2>&5
 
16411
  ac_status=$?
 
16412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16413
  (exit $ac_status); }; }; then
 
16414
  ac_hi=$ac_mid
 
16415
else
 
16416
  echo "$as_me: failed program was:" >&5
 
16417
sed 's/^/| /' conftest.$ac_ext >&5
 
16418
 
 
16419
ac_lo=`expr '(' $ac_mid ')' + 1`
 
16420
fi
 
16421
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16422
done
 
16423
case $ac_lo in
 
16424
?*) ac_cv_sizeof_long=$ac_lo;;
 
16425
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
16426
See \`config.log' for more details." >&5
 
16427
echo "$as_me: error: cannot compute sizeof (long), 77
 
16428
See \`config.log' for more details." >&2;}
 
16429
   { (exit 1); exit 1; }; } ;;
 
16430
esac
 
16431
else
 
16432
  if test "$cross_compiling" = yes; then
 
16433
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
16434
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
16435
   { (exit 1); exit 1; }; }
 
16436
else
 
16437
  cat >conftest.$ac_ext <<_ACEOF
 
16438
/* confdefs.h.  */
 
16439
_ACEOF
 
16440
cat confdefs.h >>conftest.$ac_ext
 
16441
cat >>conftest.$ac_ext <<_ACEOF
 
16442
/* end confdefs.h.  */
 
16443
$ac_includes_default
 
16444
long longval () { return (long) (sizeof (long)); }
 
16445
unsigned long ulongval () { return (long) (sizeof (long)); }
 
16446
#include <stdio.h>
 
16447
#include <stdlib.h>
 
16448
int
 
16449
main ()
 
16450
{
 
16451
 
 
16452
  FILE *f = fopen ("conftest.val", "w");
 
16453
  if (! f)
 
16454
    exit (1);
 
16455
  if (((long) (sizeof (long))) < 0)
 
16456
    {
 
16457
      long i = longval ();
 
16458
      if (i != ((long) (sizeof (long))))
 
16459
        exit (1);
 
16460
      fprintf (f, "%ld\n", i);
 
16461
    }
 
16462
  else
 
16463
    {
 
16464
      unsigned long i = ulongval ();
 
16465
      if (i != ((long) (sizeof (long))))
 
16466
        exit (1);
 
16467
      fprintf (f, "%lu\n", i);
 
16468
    }
 
16469
  exit (ferror (f) || fclose (f) != 0);
 
16470
 
 
16471
  ;
 
16472
  return 0;
 
16473
}
 
16474
_ACEOF
 
16475
rm -f conftest$ac_exeext
 
16476
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16477
  (eval $ac_link) 2>&5
 
16478
  ac_status=$?
 
16479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16480
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
16481
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16482
  (eval $ac_try) 2>&5
 
16483
  ac_status=$?
 
16484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16485
  (exit $ac_status); }; }; then
 
16486
  ac_cv_sizeof_long=`cat conftest.val`
 
16487
else
 
16488
  echo "$as_me: program exited with status $ac_status" >&5
 
16489
echo "$as_me: failed program was:" >&5
 
16490
sed 's/^/| /' conftest.$ac_ext >&5
 
16491
 
 
16492
( exit $ac_status )
 
16493
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
16494
See \`config.log' for more details." >&5
 
16495
echo "$as_me: error: cannot compute sizeof (long), 77
 
16496
See \`config.log' for more details." >&2;}
 
16497
   { (exit 1); exit 1; }; }
 
16498
fi
 
16499
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
16500
fi
 
16501
fi
 
16502
rm -f conftest.val
 
16503
else
 
16504
  ac_cv_sizeof_long=0
 
16505
fi
 
16506
fi
 
16507
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
16508
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
 
16509
cat >>confdefs.h <<_ACEOF
 
16510
#define SIZEOF_LONG $ac_cv_sizeof_long
 
16511
_ACEOF
 
16512
 
 
16513
 
 
16514
 
 
16515
echo "$as_me:$LINENO: checking for s_char" >&5
8333
16516
echo $ECHO_N "checking for s_char... $ECHO_C" >&6
8334
16517
if test "${ac_cv_type_s_char+set}" = set; then
8335
16518
  echo $ECHO_N "(cached) $ECHO_C" >&6
8336
16519
else
8337
16520
  cat >conftest.$ac_ext <<_ACEOF
8338
 
#line 8338 "configure"
8339
 
#include "confdefs.h"
 
16521
/* confdefs.h.  */
 
16522
_ACEOF
 
16523
cat confdefs.h >>conftest.$ac_ext
 
16524
cat >>conftest.$ac_ext <<_ACEOF
 
16525
/* end confdefs.h.  */
8340
16526
$ac_includes_default
8341
16527
int
8342
16528
main ()
8350
16536
}
8351
16537
_ACEOF
8352
16538
rm -f conftest.$ac_objext
8353
 
if { (eval echo "$as_me:8353: \"$ac_compile\"") >&5
8354
 
  (eval $ac_compile) 2>&5
 
16539
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16540
  (eval $ac_compile) 2>conftest.er1
8355
16541
  ac_status=$?
8356
 
  echo "$as_me:8356: \$? = $ac_status" >&5
 
16542
  grep -v '^ *+' conftest.er1 >conftest.err
 
16543
  rm -f conftest.er1
 
16544
  cat conftest.err >&5
 
16545
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357
16546
  (exit $ac_status); } &&
8358
 
         { ac_try='test -s conftest.$ac_objext'
8359
 
  { (eval echo "$as_me:8359: \"$ac_try\"") >&5
8360
 
  (eval $ac_try) 2>&5
8361
 
  ac_status=$?
8362
 
  echo "$as_me:8362: \$? = $ac_status" >&5
 
16547
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16548
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16549
  (eval $ac_try) 2>&5
 
16550
  ac_status=$?
 
16551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16552
  (exit $ac_status); }; } &&
 
16553
         { ac_try='test -s conftest.$ac_objext'
 
16554
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16555
  (eval $ac_try) 2>&5
 
16556
  ac_status=$?
 
16557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363
16558
  (exit $ac_status); }; }; then
8364
16559
  ac_cv_type_s_char=yes
8365
16560
else
8366
16561
  echo "$as_me: failed program was:" >&5
8367
 
cat conftest.$ac_ext >&5
 
16562
sed 's/^/| /' conftest.$ac_ext >&5
 
16563
 
8368
16564
ac_cv_type_s_char=no
8369
16565
fi
8370
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
16566
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8371
16567
fi
8372
 
echo "$as_me:8372: result: $ac_cv_type_s_char" >&5
 
16568
echo "$as_me:$LINENO: result: $ac_cv_type_s_char" >&5
8373
16569
echo "${ECHO_T}$ac_cv_type_s_char" >&6
8374
16570
if test $ac_cv_type_s_char = yes; then
8375
16571
 
8376
 
cat >>confdefs.h <<EOF
 
16572
cat >>confdefs.h <<_ACEOF
8377
16573
#define HAVE_S_CHAR 1
8378
 
EOF
 
16574
_ACEOF
 
16575
 
8379
16576
 
8380
16577
fi
8381
16578
 
8385
16582
    ;;
8386
16583
 no0no)
8387
16584
    # We have signed chars, can't say 'signed char', no s_char typedef.
8388
 
    cat >>confdefs.h <<\EOF
 
16585
 
 
16586
cat >>confdefs.h <<\_ACEOF
8389
16587
#define NEED_S_CHAR_TYPEDEF 1
8390
 
EOF
 
16588
_ACEOF
8391
16589
 
8392
16590
    ;;
8393
16591
 no1no)
8394
16592
    # We have signed chars, can say 'signed char', no s_char typedef.
8395
 
    cat >>confdefs.h <<\EOF
 
16593
    cat >>confdefs.h <<\_ACEOF
8396
16594
#define NEED_S_CHAR_TYPEDEF 1
8397
 
EOF
 
16595
_ACEOF
8398
16596
 
8399
16597
    ;;
8400
16598
 yes0no)
8401
16599
    # We have unsigned chars, can't say 'signed char', no s_char typedef.
8402
 
    { { echo "$as_me:8402: error: No way to specify a signed character!" >&5
 
16600
    { { echo "$as_me:$LINENO: error: No way to specify a signed character!" >&5
8403
16601
echo "$as_me: error: No way to specify a signed character!" >&2;}
8404
16602
   { (exit 1); exit 1; }; }
8405
16603
    ;;
8406
16604
 yes1no)
8407
16605
    # We have unsigned chars, can say 'signed char', no s_char typedef.
8408
 
    cat >>confdefs.h <<\EOF
 
16606
    cat >>confdefs.h <<\_ACEOF
8409
16607
#define NEED_S_CHAR_TYPEDEF 1
8410
 
EOF
 
16608
_ACEOF
8411
16609
 
8412
16610
    ;;
8413
16611
esac
8414
 
echo "$as_me:8414: checking for uid_t in sys/types.h" >&5
 
16612
echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8415
16613
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
8416
16614
if test "${ac_cv_type_uid_t+set}" = set; then
8417
16615
  echo $ECHO_N "(cached) $ECHO_C" >&6
8418
16616
else
8419
16617
  cat >conftest.$ac_ext <<_ACEOF
8420
 
#line 8420 "configure"
8421
 
#include "confdefs.h"
 
16618
/* confdefs.h.  */
 
16619
_ACEOF
 
16620
cat confdefs.h >>conftest.$ac_ext
 
16621
cat >>conftest.$ac_ext <<_ACEOF
 
16622
/* end confdefs.h.  */
8422
16623
#include <sys/types.h>
8423
16624
 
8424
16625
_ACEOF
8425
16626
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8426
 
  egrep "uid_t" >/dev/null 2>&1; then
 
16627
  $EGREP "uid_t" >/dev/null 2>&1; then
8427
16628
  ac_cv_type_uid_t=yes
8428
16629
else
8429
16630
  ac_cv_type_uid_t=no
8431
16632
rm -f conftest*
8432
16633
 
8433
16634
fi
8434
 
echo "$as_me:8434: result: $ac_cv_type_uid_t" >&5
 
16635
echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8435
16636
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
8436
16637
if test $ac_cv_type_uid_t = no; then
8437
16638
 
8438
 
cat >>confdefs.h <<\EOF
 
16639
cat >>confdefs.h <<\_ACEOF
8439
16640
#define uid_t int
8440
 
EOF
8441
 
 
8442
 
cat >>confdefs.h <<\EOF
 
16641
_ACEOF
 
16642
 
 
16643
 
 
16644
cat >>confdefs.h <<\_ACEOF
8443
16645
#define gid_t int
8444
 
EOF
 
16646
_ACEOF
8445
16647
 
8446
16648
fi
8447
16649
 
8448
 
case "$target" in
 
16650
 
 
16651
case "$host" in
8449
16652
 *-*-linux*)
8450
16653
 
 
16654
 
8451
16655
for ac_func in __adjtimex __ntp_gettime
8452
16656
do
8453
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8454
 
echo "$as_me:8454: checking for $ac_func" >&5
 
16657
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
16658
echo "$as_me:$LINENO: checking for $ac_func" >&5
8455
16659
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8456
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
16660
if eval "test \"\${$as_ac_var+set}\" = set"; then
8457
16661
  echo $ECHO_N "(cached) $ECHO_C" >&6
8458
16662
else
8459
16663
  cat >conftest.$ac_ext <<_ACEOF
8460
 
#line 8460 "configure"
8461
 
#include "confdefs.h"
 
16664
/* confdefs.h.  */
 
16665
_ACEOF
 
16666
cat confdefs.h >>conftest.$ac_ext
 
16667
cat >>conftest.$ac_ext <<_ACEOF
 
16668
/* end confdefs.h.  */
 
16669
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
16670
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
16671
#define $ac_func innocuous_$ac_func
 
16672
 
8462
16673
/* System header to define __stub macros and hopefully few prototypes,
8463
 
    which can conflict with char $ac_func (); below.  */
8464
 
#include <assert.h>
 
16674
    which can conflict with char $ac_func (); below.
 
16675
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16676
    <limits.h> exists even on freestanding compilers.  */
 
16677
 
 
16678
#ifdef __STDC__
 
16679
# include <limits.h>
 
16680
#else
 
16681
# include <assert.h>
 
16682
#endif
 
16683
 
 
16684
#undef $ac_func
 
16685
 
8465
16686
/* Override any gcc2 internal prototype to avoid an error.  */
8466
16687
#ifdef __cplusplus
8467
16688
extern "C"
 
16689
{
8468
16690
#endif
8469
16691
/* We use char because int might match the return type of a gcc2
8470
16692
   builtin and then its argument prototype would still apply.  */
8471
16693
char $ac_func ();
8472
 
char (*f) ();
8473
 
 
8474
 
int
8475
 
main ()
8476
 
{
8477
16694
/* The GNU C library defines this for functions which it implements
8478
16695
    to always fail with ENOSYS.  Some functions are actually named
8479
16696
    something starting with __ and the normal name is an alias.  */
8480
16697
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8481
16698
choke me
8482
16699
#else
8483
 
f = $ac_func;
 
16700
char (*f) () = $ac_func;
 
16701
#endif
 
16702
#ifdef __cplusplus
 
16703
}
8484
16704
#endif
8485
16705
 
 
16706
int
 
16707
main ()
 
16708
{
 
16709
return f != $ac_func;
8486
16710
  ;
8487
16711
  return 0;
8488
16712
}
8489
16713
_ACEOF
8490
16714
rm -f conftest.$ac_objext conftest$ac_exeext
8491
 
if { (eval echo "$as_me:8491: \"$ac_link\"") >&5
8492
 
  (eval $ac_link) 2>&5
 
16715
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16716
  (eval $ac_link) 2>conftest.er1
8493
16717
  ac_status=$?
8494
 
  echo "$as_me:8494: \$? = $ac_status" >&5
 
16718
  grep -v '^ *+' conftest.er1 >conftest.err
 
16719
  rm -f conftest.er1
 
16720
  cat conftest.err >&5
 
16721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495
16722
  (exit $ac_status); } &&
8496
 
         { ac_try='test -s conftest$ac_exeext'
8497
 
  { (eval echo "$as_me:8497: \"$ac_try\"") >&5
8498
 
  (eval $ac_try) 2>&5
8499
 
  ac_status=$?
8500
 
  echo "$as_me:8500: \$? = $ac_status" >&5
 
16723
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16724
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16725
  (eval $ac_try) 2>&5
 
16726
  ac_status=$?
 
16727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16728
  (exit $ac_status); }; } &&
 
16729
         { ac_try='test -s conftest$ac_exeext'
 
16730
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16731
  (eval $ac_try) 2>&5
 
16732
  ac_status=$?
 
16733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501
16734
  (exit $ac_status); }; }; then
8502
 
  eval "$ac_ac_var=yes"
 
16735
  eval "$as_ac_var=yes"
8503
16736
else
8504
16737
  echo "$as_me: failed program was:" >&5
8505
 
cat conftest.$ac_ext >&5
8506
 
eval "$ac_ac_var=no"
8507
 
fi
8508
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8509
 
fi
8510
 
echo "$as_me:8510: result: `eval echo '${'$ac_ac_var'}'`" >&5
8511
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8512
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
8513
 
  cat >>confdefs.h <<EOF
8514
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8515
 
EOF
 
16738
sed 's/^/| /' conftest.$ac_ext >&5
 
16739
 
 
16740
eval "$as_ac_var=no"
 
16741
fi
 
16742
rm -f conftest.err conftest.$ac_objext \
 
16743
      conftest$ac_exeext conftest.$ac_ext
 
16744
fi
 
16745
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
16746
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
16747
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
16748
  cat >>confdefs.h <<_ACEOF
 
16749
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
16750
_ACEOF
8516
16751
 
8517
16752
fi
8518
16753
done
8519
16754
 
8520
16755
    ;;
8521
16756
esac
8522
 
case "$target" in
8523
 
 *-*-aix4*)
 
16757
case "$host" in
 
16758
 *-*-aix[45]*)
8524
16759
        # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
8525
16760
        # (returning ENOSYS).  I didn't check 4.2.  If, in the future,
8526
16761
        # IBM pulls its thumbs out long enough to implement clock_settime,
8528
16763
        # instead to try to set the time to itself and check errno.
8529
16764
    ;;
8530
16765
 *)
8531
 
for ac_func in clock_settime
 
16766
 
 
16767
for ac_func in clock_gettime clock_settime
8532
16768
do
8533
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8534
 
echo "$as_me:8534: checking for $ac_func" >&5
 
16769
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
16770
echo "$as_me:$LINENO: checking for $ac_func" >&5
8535
16771
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8536
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
16772
if eval "test \"\${$as_ac_var+set}\" = set"; then
8537
16773
  echo $ECHO_N "(cached) $ECHO_C" >&6
8538
16774
else
8539
16775
  cat >conftest.$ac_ext <<_ACEOF
8540
 
#line 8540 "configure"
8541
 
#include "confdefs.h"
 
16776
/* confdefs.h.  */
 
16777
_ACEOF
 
16778
cat confdefs.h >>conftest.$ac_ext
 
16779
cat >>conftest.$ac_ext <<_ACEOF
 
16780
/* end confdefs.h.  */
 
16781
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
16782
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
16783
#define $ac_func innocuous_$ac_func
 
16784
 
8542
16785
/* System header to define __stub macros and hopefully few prototypes,
8543
 
    which can conflict with char $ac_func (); below.  */
8544
 
#include <assert.h>
 
16786
    which can conflict with char $ac_func (); below.
 
16787
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16788
    <limits.h> exists even on freestanding compilers.  */
 
16789
 
 
16790
#ifdef __STDC__
 
16791
# include <limits.h>
 
16792
#else
 
16793
# include <assert.h>
 
16794
#endif
 
16795
 
 
16796
#undef $ac_func
 
16797
 
8545
16798
/* Override any gcc2 internal prototype to avoid an error.  */
8546
16799
#ifdef __cplusplus
8547
16800
extern "C"
 
16801
{
8548
16802
#endif
8549
16803
/* We use char because int might match the return type of a gcc2
8550
16804
   builtin and then its argument prototype would still apply.  */
8551
16805
char $ac_func ();
8552
 
char (*f) ();
8553
 
 
8554
 
int
8555
 
main ()
8556
 
{
8557
16806
/* The GNU C library defines this for functions which it implements
8558
16807
    to always fail with ENOSYS.  Some functions are actually named
8559
16808
    something starting with __ and the normal name is an alias.  */
8560
16809
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8561
16810
choke me
8562
16811
#else
8563
 
f = $ac_func;
 
16812
char (*f) () = $ac_func;
 
16813
#endif
 
16814
#ifdef __cplusplus
 
16815
}
8564
16816
#endif
8565
16817
 
 
16818
int
 
16819
main ()
 
16820
{
 
16821
return f != $ac_func;
8566
16822
  ;
8567
16823
  return 0;
8568
16824
}
8569
16825
_ACEOF
8570
16826
rm -f conftest.$ac_objext conftest$ac_exeext
8571
 
if { (eval echo "$as_me:8571: \"$ac_link\"") >&5
8572
 
  (eval $ac_link) 2>&5
 
16827
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16828
  (eval $ac_link) 2>conftest.er1
8573
16829
  ac_status=$?
8574
 
  echo "$as_me:8574: \$? = $ac_status" >&5
 
16830
  grep -v '^ *+' conftest.er1 >conftest.err
 
16831
  rm -f conftest.er1
 
16832
  cat conftest.err >&5
 
16833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575
16834
  (exit $ac_status); } &&
8576
 
         { ac_try='test -s conftest$ac_exeext'
8577
 
  { (eval echo "$as_me:8577: \"$ac_try\"") >&5
8578
 
  (eval $ac_try) 2>&5
8579
 
  ac_status=$?
8580
 
  echo "$as_me:8580: \$? = $ac_status" >&5
 
16835
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16836
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16837
  (eval $ac_try) 2>&5
 
16838
  ac_status=$?
 
16839
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16840
  (exit $ac_status); }; } &&
 
16841
         { ac_try='test -s conftest$ac_exeext'
 
16842
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16843
  (eval $ac_try) 2>&5
 
16844
  ac_status=$?
 
16845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581
16846
  (exit $ac_status); }; }; then
8582
 
  eval "$ac_ac_var=yes"
 
16847
  eval "$as_ac_var=yes"
8583
16848
else
8584
16849
  echo "$as_me: failed program was:" >&5
8585
 
cat conftest.$ac_ext >&5
8586
 
eval "$ac_ac_var=no"
8587
 
fi
8588
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8589
 
fi
8590
 
echo "$as_me:8590: result: `eval echo '${'$ac_ac_var'}'`" >&5
8591
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8592
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
8593
 
  cat >>confdefs.h <<EOF
8594
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8595
 
EOF
 
16850
sed 's/^/| /' conftest.$ac_ext >&5
 
16851
 
 
16852
eval "$as_ac_var=no"
 
16853
fi
 
16854
rm -f conftest.err conftest.$ac_objext \
 
16855
      conftest$ac_exeext conftest.$ac_ext
 
16856
fi
 
16857
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
16858
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
16859
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
16860
  cat >>confdefs.h <<_ACEOF
 
16861
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
16862
_ACEOF
8596
16863
 
8597
16864
fi
8598
16865
done
8602
16869
 
8603
16870
for ac_func in daemon
8604
16871
do
8605
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8606
 
echo "$as_me:8606: checking for $ac_func" >&5
 
16872
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
16873
echo "$as_me:$LINENO: checking for $ac_func" >&5
8607
16874
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8608
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
16875
if eval "test \"\${$as_ac_var+set}\" = set"; then
8609
16876
  echo $ECHO_N "(cached) $ECHO_C" >&6
8610
16877
else
8611
16878
  cat >conftest.$ac_ext <<_ACEOF
8612
 
#line 8612 "configure"
8613
 
#include "confdefs.h"
 
16879
/* confdefs.h.  */
 
16880
_ACEOF
 
16881
cat confdefs.h >>conftest.$ac_ext
 
16882
cat >>conftest.$ac_ext <<_ACEOF
 
16883
/* end confdefs.h.  */
 
16884
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
16885
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
16886
#define $ac_func innocuous_$ac_func
 
16887
 
8614
16888
/* System header to define __stub macros and hopefully few prototypes,
8615
 
    which can conflict with char $ac_func (); below.  */
8616
 
#include <assert.h>
 
16889
    which can conflict with char $ac_func (); below.
 
16890
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16891
    <limits.h> exists even on freestanding compilers.  */
 
16892
 
 
16893
#ifdef __STDC__
 
16894
# include <limits.h>
 
16895
#else
 
16896
# include <assert.h>
 
16897
#endif
 
16898
 
 
16899
#undef $ac_func
 
16900
 
8617
16901
/* Override any gcc2 internal prototype to avoid an error.  */
8618
16902
#ifdef __cplusplus
8619
16903
extern "C"
 
16904
{
8620
16905
#endif
8621
16906
/* We use char because int might match the return type of a gcc2
8622
16907
   builtin and then its argument prototype would still apply.  */
8623
16908
char $ac_func ();
8624
 
char (*f) ();
8625
 
 
8626
 
int
8627
 
main ()
8628
 
{
8629
16909
/* The GNU C library defines this for functions which it implements
8630
16910
    to always fail with ENOSYS.  Some functions are actually named
8631
16911
    something starting with __ and the normal name is an alias.  */
8632
16912
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8633
16913
choke me
8634
16914
#else
8635
 
f = $ac_func;
 
16915
char (*f) () = $ac_func;
 
16916
#endif
 
16917
#ifdef __cplusplus
 
16918
}
8636
16919
#endif
8637
16920
 
 
16921
int
 
16922
main ()
 
16923
{
 
16924
return f != $ac_func;
8638
16925
  ;
8639
16926
  return 0;
8640
16927
}
8641
16928
_ACEOF
8642
16929
rm -f conftest.$ac_objext conftest$ac_exeext
8643
 
if { (eval echo "$as_me:8643: \"$ac_link\"") >&5
8644
 
  (eval $ac_link) 2>&5
 
16930
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16931
  (eval $ac_link) 2>conftest.er1
8645
16932
  ac_status=$?
8646
 
  echo "$as_me:8646: \$? = $ac_status" >&5
 
16933
  grep -v '^ *+' conftest.er1 >conftest.err
 
16934
  rm -f conftest.er1
 
16935
  cat conftest.err >&5
 
16936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647
16937
  (exit $ac_status); } &&
8648
 
         { ac_try='test -s conftest$ac_exeext'
8649
 
  { (eval echo "$as_me:8649: \"$ac_try\"") >&5
8650
 
  (eval $ac_try) 2>&5
8651
 
  ac_status=$?
8652
 
  echo "$as_me:8652: \$? = $ac_status" >&5
 
16938
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16939
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16940
  (eval $ac_try) 2>&5
 
16941
  ac_status=$?
 
16942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16943
  (exit $ac_status); }; } &&
 
16944
         { ac_try='test -s conftest$ac_exeext'
 
16945
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16946
  (eval $ac_try) 2>&5
 
16947
  ac_status=$?
 
16948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653
16949
  (exit $ac_status); }; }; then
8654
 
  eval "$ac_ac_var=yes"
 
16950
  eval "$as_ac_var=yes"
8655
16951
else
8656
16952
  echo "$as_me: failed program was:" >&5
8657
 
cat conftest.$ac_ext >&5
8658
 
eval "$ac_ac_var=no"
8659
 
fi
8660
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8661
 
fi
8662
 
echo "$as_me:8662: result: `eval echo '${'$ac_ac_var'}'`" >&5
8663
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8664
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
8665
 
  cat >>confdefs.h <<EOF
8666
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8667
 
EOF
 
16953
sed 's/^/| /' conftest.$ac_ext >&5
 
16954
 
 
16955
eval "$as_ac_var=no"
 
16956
fi
 
16957
rm -f conftest.err conftest.$ac_objext \
 
16958
      conftest$ac_exeext conftest.$ac_ext
 
16959
fi
 
16960
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
16961
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
16962
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
16963
  cat >>confdefs.h <<_ACEOF
 
16964
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
16965
_ACEOF
8668
16966
 
8669
16967
fi
8670
16968
done
8671
16969
 
 
16970
 
8672
16971
for ac_func in finite
8673
16972
do
8674
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8675
 
echo "$as_me:8675: checking for $ac_func" >&5
 
16973
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
16974
echo "$as_me:$LINENO: checking for $ac_func" >&5
8676
16975
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8677
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
16976
if eval "test \"\${$as_ac_var+set}\" = set"; then
8678
16977
  echo $ECHO_N "(cached) $ECHO_C" >&6
8679
16978
else
8680
16979
  cat >conftest.$ac_ext <<_ACEOF
8681
 
#line 8681 "configure"
8682
 
#include "confdefs.h"
 
16980
/* confdefs.h.  */
 
16981
_ACEOF
 
16982
cat confdefs.h >>conftest.$ac_ext
 
16983
cat >>conftest.$ac_ext <<_ACEOF
 
16984
/* end confdefs.h.  */
 
16985
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
16986
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
16987
#define $ac_func innocuous_$ac_func
 
16988
 
8683
16989
/* System header to define __stub macros and hopefully few prototypes,
8684
 
    which can conflict with char $ac_func (); below.  */
8685
 
#include <assert.h>
 
16990
    which can conflict with char $ac_func (); below.
 
16991
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16992
    <limits.h> exists even on freestanding compilers.  */
 
16993
 
 
16994
#ifdef __STDC__
 
16995
# include <limits.h>
 
16996
#else
 
16997
# include <assert.h>
 
16998
#endif
 
16999
 
 
17000
#undef $ac_func
 
17001
 
8686
17002
/* Override any gcc2 internal prototype to avoid an error.  */
8687
17003
#ifdef __cplusplus
8688
17004
extern "C"
 
17005
{
8689
17006
#endif
8690
17007
/* We use char because int might match the return type of a gcc2
8691
17008
   builtin and then its argument prototype would still apply.  */
8692
17009
char $ac_func ();
8693
 
char (*f) ();
8694
 
 
8695
 
int
8696
 
main ()
8697
 
{
8698
17010
/* The GNU C library defines this for functions which it implements
8699
17011
    to always fail with ENOSYS.  Some functions are actually named
8700
17012
    something starting with __ and the normal name is an alias.  */
8701
17013
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8702
17014
choke me
8703
17015
#else
8704
 
f = $ac_func;
 
17016
char (*f) () = $ac_func;
 
17017
#endif
 
17018
#ifdef __cplusplus
 
17019
}
8705
17020
#endif
8706
17021
 
 
17022
int
 
17023
main ()
 
17024
{
 
17025
return f != $ac_func;
8707
17026
  ;
8708
17027
  return 0;
8709
17028
}
8710
17029
_ACEOF
8711
17030
rm -f conftest.$ac_objext conftest$ac_exeext
8712
 
if { (eval echo "$as_me:8712: \"$ac_link\"") >&5
8713
 
  (eval $ac_link) 2>&5
 
17031
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17032
  (eval $ac_link) 2>conftest.er1
8714
17033
  ac_status=$?
8715
 
  echo "$as_me:8715: \$? = $ac_status" >&5
 
17034
  grep -v '^ *+' conftest.er1 >conftest.err
 
17035
  rm -f conftest.er1
 
17036
  cat conftest.err >&5
 
17037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716
17038
  (exit $ac_status); } &&
8717
 
         { ac_try='test -s conftest$ac_exeext'
8718
 
  { (eval echo "$as_me:8718: \"$ac_try\"") >&5
8719
 
  (eval $ac_try) 2>&5
8720
 
  ac_status=$?
8721
 
  echo "$as_me:8721: \$? = $ac_status" >&5
 
17039
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17040
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17041
  (eval $ac_try) 2>&5
 
17042
  ac_status=$?
 
17043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17044
  (exit $ac_status); }; } &&
 
17045
         { ac_try='test -s conftest$ac_exeext'
 
17046
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17047
  (eval $ac_try) 2>&5
 
17048
  ac_status=$?
 
17049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722
17050
  (exit $ac_status); }; }; then
8723
 
  eval "$ac_ac_var=yes"
 
17051
  eval "$as_ac_var=yes"
8724
17052
else
8725
17053
  echo "$as_me: failed program was:" >&5
8726
 
cat conftest.$ac_ext >&5
8727
 
eval "$ac_ac_var=no"
8728
 
fi
8729
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8730
 
fi
8731
 
echo "$as_me:8731: result: `eval echo '${'$ac_ac_var'}'`" >&5
8732
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8733
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
8734
 
  cat >>confdefs.h <<EOF
8735
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8736
 
EOF
 
17054
sed 's/^/| /' conftest.$ac_ext >&5
 
17055
 
 
17056
eval "$as_ac_var=no"
 
17057
fi
 
17058
rm -f conftest.err conftest.$ac_objext \
 
17059
      conftest$ac_exeext conftest.$ac_ext
 
17060
fi
 
17061
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
17062
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
17063
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
17064
  cat >>confdefs.h <<_ACEOF
 
17065
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
17066
_ACEOF
8737
17067
 
8738
17068
else
8739
17069
 
8740
17070
for ac_func in isfinite
8741
17071
do
8742
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8743
 
echo "$as_me:8743: checking for $ac_func" >&5
 
17072
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
17073
echo "$as_me:$LINENO: checking for $ac_func" >&5
8744
17074
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8745
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
17075
if eval "test \"\${$as_ac_var+set}\" = set"; then
8746
17076
  echo $ECHO_N "(cached) $ECHO_C" >&6
8747
17077
else
8748
17078
  cat >conftest.$ac_ext <<_ACEOF
8749
 
#line 8749 "configure"
8750
 
#include "confdefs.h"
 
17079
/* confdefs.h.  */
 
17080
_ACEOF
 
17081
cat confdefs.h >>conftest.$ac_ext
 
17082
cat >>conftest.$ac_ext <<_ACEOF
 
17083
/* end confdefs.h.  */
 
17084
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17085
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17086
#define $ac_func innocuous_$ac_func
 
17087
 
8751
17088
/* System header to define __stub macros and hopefully few prototypes,
8752
 
    which can conflict with char $ac_func (); below.  */
8753
 
#include <assert.h>
 
17089
    which can conflict with char $ac_func (); below.
 
17090
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17091
    <limits.h> exists even on freestanding compilers.  */
 
17092
 
 
17093
#ifdef __STDC__
 
17094
# include <limits.h>
 
17095
#else
 
17096
# include <assert.h>
 
17097
#endif
 
17098
 
 
17099
#undef $ac_func
 
17100
 
8754
17101
/* Override any gcc2 internal prototype to avoid an error.  */
8755
17102
#ifdef __cplusplus
8756
17103
extern "C"
 
17104
{
8757
17105
#endif
8758
17106
/* We use char because int might match the return type of a gcc2
8759
17107
   builtin and then its argument prototype would still apply.  */
8760
17108
char $ac_func ();
8761
 
char (*f) ();
8762
 
 
8763
 
int
8764
 
main ()
8765
 
{
8766
17109
/* The GNU C library defines this for functions which it implements
8767
17110
    to always fail with ENOSYS.  Some functions are actually named
8768
17111
    something starting with __ and the normal name is an alias.  */
8769
17112
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8770
17113
choke me
8771
17114
#else
8772
 
f = $ac_func;
 
17115
char (*f) () = $ac_func;
 
17116
#endif
 
17117
#ifdef __cplusplus
 
17118
}
8773
17119
#endif
8774
17120
 
 
17121
int
 
17122
main ()
 
17123
{
 
17124
return f != $ac_func;
8775
17125
  ;
8776
17126
  return 0;
8777
17127
}
8778
17128
_ACEOF
8779
17129
rm -f conftest.$ac_objext conftest$ac_exeext
8780
 
if { (eval echo "$as_me:8780: \"$ac_link\"") >&5
8781
 
  (eval $ac_link) 2>&5
 
17130
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17131
  (eval $ac_link) 2>conftest.er1
8782
17132
  ac_status=$?
8783
 
  echo "$as_me:8783: \$? = $ac_status" >&5
 
17133
  grep -v '^ *+' conftest.er1 >conftest.err
 
17134
  rm -f conftest.er1
 
17135
  cat conftest.err >&5
 
17136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784
17137
  (exit $ac_status); } &&
8785
 
         { ac_try='test -s conftest$ac_exeext'
8786
 
  { (eval echo "$as_me:8786: \"$ac_try\"") >&5
8787
 
  (eval $ac_try) 2>&5
8788
 
  ac_status=$?
8789
 
  echo "$as_me:8789: \$? = $ac_status" >&5
 
17138
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17139
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17140
  (eval $ac_try) 2>&5
 
17141
  ac_status=$?
 
17142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17143
  (exit $ac_status); }; } &&
 
17144
         { ac_try='test -s conftest$ac_exeext'
 
17145
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17146
  (eval $ac_try) 2>&5
 
17147
  ac_status=$?
 
17148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790
17149
  (exit $ac_status); }; }; then
8791
 
  eval "$ac_ac_var=yes"
 
17150
  eval "$as_ac_var=yes"
8792
17151
else
8793
17152
  echo "$as_me: failed program was:" >&5
8794
 
cat conftest.$ac_ext >&5
8795
 
eval "$ac_ac_var=no"
8796
 
fi
8797
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8798
 
fi
8799
 
echo "$as_me:8799: result: `eval echo '${'$ac_ac_var'}'`" >&5
8800
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8801
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
8802
 
  cat >>confdefs.h <<EOF
8803
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8804
 
EOF
 
17153
sed 's/^/| /' conftest.$ac_ext >&5
 
17154
 
 
17155
eval "$as_ac_var=no"
 
17156
fi
 
17157
rm -f conftest.err conftest.$ac_objext \
 
17158
      conftest$ac_exeext conftest.$ac_ext
 
17159
fi
 
17160
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
17161
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
17162
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
17163
  cat >>confdefs.h <<_ACEOF
 
17164
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
17165
_ACEOF
8805
17166
 
8806
17167
else
8807
 
  echo "$as_me:8807: checking for isfinite with <math.h>" >&5
 
17168
  echo "$as_me:$LINENO: checking for isfinite with <math.h>" >&5
8808
17169
echo $ECHO_N "checking for isfinite with <math.h>... $ECHO_C" >&6
8809
17170
    _libs=$LIBS
8810
17171
    LIBS="$LIBS -lm"
8811
17172
    cat >conftest.$ac_ext <<_ACEOF
8812
 
#line 8812 "configure"
8813
 
#include "confdefs.h"
 
17173
/* confdefs.h.  */
 
17174
_ACEOF
 
17175
cat confdefs.h >>conftest.$ac_ext
 
17176
cat >>conftest.$ac_ext <<_ACEOF
 
17177
/* end confdefs.h.  */
8814
17178
#include <math.h>
8815
17179
int
8816
17180
main ()
8821
17185
}
8822
17186
_ACEOF
8823
17187
rm -f conftest.$ac_objext conftest$ac_exeext
8824
 
if { (eval echo "$as_me:8824: \"$ac_link\"") >&5
8825
 
  (eval $ac_link) 2>&5
 
17188
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17189
  (eval $ac_link) 2>conftest.er1
8826
17190
  ac_status=$?
8827
 
  echo "$as_me:8827: \$? = $ac_status" >&5
 
17191
  grep -v '^ *+' conftest.er1 >conftest.err
 
17192
  rm -f conftest.er1
 
17193
  cat conftest.err >&5
 
17194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828
17195
  (exit $ac_status); } &&
8829
 
         { ac_try='test -s conftest$ac_exeext'
8830
 
  { (eval echo "$as_me:8830: \"$ac_try\"") >&5
8831
 
  (eval $ac_try) 2>&5
8832
 
  ac_status=$?
8833
 
  echo "$as_me:8833: \$? = $ac_status" >&5
 
17196
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17197
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17198
  (eval $ac_try) 2>&5
 
17199
  ac_status=$?
 
17200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17201
  (exit $ac_status); }; } &&
 
17202
         { ac_try='test -s conftest$ac_exeext'
 
17203
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17204
  (eval $ac_try) 2>&5
 
17205
  ac_status=$?
 
17206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834
17207
  (exit $ac_status); }; }; then
8835
 
  echo "$as_me:8835: result: yes" >&5
 
17208
  echo "$as_me:$LINENO: result: yes" >&5
8836
17209
echo "${ECHO_T}yes" >&6
8837
 
      cat >>confdefs.h <<\EOF
 
17210
      cat >>confdefs.h <<\_ACEOF
8838
17211
#define HAVE_ISFINITE 1
8839
 
EOF
 
17212
_ACEOF
8840
17213
 
8841
17214
else
8842
17215
  echo "$as_me: failed program was:" >&5
8843
 
cat conftest.$ac_ext >&5
8844
 
echo "$as_me:8844: result: no" >&5
 
17216
sed 's/^/| /' conftest.$ac_ext >&5
 
17217
 
 
17218
echo "$as_me:$LINENO: result: no" >&5
8845
17219
echo "${ECHO_T}no" >&6
8846
17220
fi
8847
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
17221
rm -f conftest.err conftest.$ac_objext \
 
17222
      conftest$ac_exeext conftest.$ac_ext
8848
17223
    LIBS=$_libs
8849
17224
fi
8850
17225
done
8852
17227
fi
8853
17228
done
8854
17229
 
8855
 
for ac_func in getbootfile getclock getdtablesize getrusage gettimeofday
 
17230
 
 
17231
 
 
17232
 
 
17233
 
 
17234
for ac_func in getbootfile getclock getdtablesize getrusage
8856
17235
do
8857
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8858
 
echo "$as_me:8858: checking for $ac_func" >&5
 
17236
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
17237
echo "$as_me:$LINENO: checking for $ac_func" >&5
8859
17238
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8860
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
17239
if eval "test \"\${$as_ac_var+set}\" = set"; then
8861
17240
  echo $ECHO_N "(cached) $ECHO_C" >&6
8862
17241
else
8863
17242
  cat >conftest.$ac_ext <<_ACEOF
8864
 
#line 8864 "configure"
8865
 
#include "confdefs.h"
 
17243
/* confdefs.h.  */
 
17244
_ACEOF
 
17245
cat confdefs.h >>conftest.$ac_ext
 
17246
cat >>conftest.$ac_ext <<_ACEOF
 
17247
/* end confdefs.h.  */
 
17248
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17249
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17250
#define $ac_func innocuous_$ac_func
 
17251
 
8866
17252
/* System header to define __stub macros and hopefully few prototypes,
8867
 
    which can conflict with char $ac_func (); below.  */
8868
 
#include <assert.h>
 
17253
    which can conflict with char $ac_func (); below.
 
17254
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17255
    <limits.h> exists even on freestanding compilers.  */
 
17256
 
 
17257
#ifdef __STDC__
 
17258
# include <limits.h>
 
17259
#else
 
17260
# include <assert.h>
 
17261
#endif
 
17262
 
 
17263
#undef $ac_func
 
17264
 
8869
17265
/* Override any gcc2 internal prototype to avoid an error.  */
8870
17266
#ifdef __cplusplus
8871
17267
extern "C"
 
17268
{
8872
17269
#endif
8873
17270
/* We use char because int might match the return type of a gcc2
8874
17271
   builtin and then its argument prototype would still apply.  */
8875
17272
char $ac_func ();
8876
 
char (*f) ();
8877
 
 
8878
 
int
8879
 
main ()
8880
 
{
8881
17273
/* The GNU C library defines this for functions which it implements
8882
17274
    to always fail with ENOSYS.  Some functions are actually named
8883
17275
    something starting with __ and the normal name is an alias.  */
8884
17276
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8885
17277
choke me
8886
17278
#else
8887
 
f = $ac_func;
 
17279
char (*f) () = $ac_func;
 
17280
#endif
 
17281
#ifdef __cplusplus
 
17282
}
8888
17283
#endif
8889
17284
 
 
17285
int
 
17286
main ()
 
17287
{
 
17288
return f != $ac_func;
8890
17289
  ;
8891
17290
  return 0;
8892
17291
}
8893
17292
_ACEOF
8894
17293
rm -f conftest.$ac_objext conftest$ac_exeext
8895
 
if { (eval echo "$as_me:8895: \"$ac_link\"") >&5
8896
 
  (eval $ac_link) 2>&5
 
17294
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17295
  (eval $ac_link) 2>conftest.er1
8897
17296
  ac_status=$?
8898
 
  echo "$as_me:8898: \$? = $ac_status" >&5
 
17297
  grep -v '^ *+' conftest.er1 >conftest.err
 
17298
  rm -f conftest.er1
 
17299
  cat conftest.err >&5
 
17300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899
17301
  (exit $ac_status); } &&
8900
 
         { ac_try='test -s conftest$ac_exeext'
8901
 
  { (eval echo "$as_me:8901: \"$ac_try\"") >&5
8902
 
  (eval $ac_try) 2>&5
8903
 
  ac_status=$?
8904
 
  echo "$as_me:8904: \$? = $ac_status" >&5
 
17302
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17303
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17304
  (eval $ac_try) 2>&5
 
17305
  ac_status=$?
 
17306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17307
  (exit $ac_status); }; } &&
 
17308
         { ac_try='test -s conftest$ac_exeext'
 
17309
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17310
  (eval $ac_try) 2>&5
 
17311
  ac_status=$?
 
17312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905
17313
  (exit $ac_status); }; }; then
8906
 
  eval "$ac_ac_var=yes"
 
17314
  eval "$as_ac_var=yes"
8907
17315
else
8908
17316
  echo "$as_me: failed program was:" >&5
8909
 
cat conftest.$ac_ext >&5
8910
 
eval "$ac_ac_var=no"
8911
 
fi
8912
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8913
 
fi
8914
 
echo "$as_me:8914: result: `eval echo '${'$ac_ac_var'}'`" >&5
8915
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8916
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
8917
 
  cat >>confdefs.h <<EOF
8918
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8919
 
EOF
 
17317
sed 's/^/| /' conftest.$ac_ext >&5
 
17318
 
 
17319
eval "$as_ac_var=no"
 
17320
fi
 
17321
rm -f conftest.err conftest.$ac_objext \
 
17322
      conftest$ac_exeext conftest.$ac_ext
 
17323
fi
 
17324
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
17325
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
17326
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
17327
  cat >>confdefs.h <<_ACEOF
 
17328
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
17329
_ACEOF
8920
17330
 
8921
17331
fi
8922
17332
done
8923
17333
 
8924
 
case "$target" in
 
17334
echo "$as_me:$LINENO: checking for gettimeofday" >&5
 
17335
echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
 
17336
if test "${ac_cv_func_gettimeofday+set}" = set; then
 
17337
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17338
else
 
17339
  cat >conftest.$ac_ext <<_ACEOF
 
17340
/* confdefs.h.  */
 
17341
_ACEOF
 
17342
cat confdefs.h >>conftest.$ac_ext
 
17343
cat >>conftest.$ac_ext <<_ACEOF
 
17344
/* end confdefs.h.  */
 
17345
/* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
 
17346
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17347
#define gettimeofday innocuous_gettimeofday
 
17348
 
 
17349
/* System header to define __stub macros and hopefully few prototypes,
 
17350
    which can conflict with char gettimeofday (); below.
 
17351
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17352
    <limits.h> exists even on freestanding compilers.  */
 
17353
 
 
17354
#ifdef __STDC__
 
17355
# include <limits.h>
 
17356
#else
 
17357
# include <assert.h>
 
17358
#endif
 
17359
 
 
17360
#undef gettimeofday
 
17361
 
 
17362
/* Override any gcc2 internal prototype to avoid an error.  */
 
17363
#ifdef __cplusplus
 
17364
extern "C"
 
17365
{
 
17366
#endif
 
17367
/* We use char because int might match the return type of a gcc2
 
17368
   builtin and then its argument prototype would still apply.  */
 
17369
char gettimeofday ();
 
17370
/* The GNU C library defines this for functions which it implements
 
17371
    to always fail with ENOSYS.  Some functions are actually named
 
17372
    something starting with __ and the normal name is an alias.  */
 
17373
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
 
17374
choke me
 
17375
#else
 
17376
char (*f) () = gettimeofday;
 
17377
#endif
 
17378
#ifdef __cplusplus
 
17379
}
 
17380
#endif
 
17381
 
 
17382
int
 
17383
main ()
 
17384
{
 
17385
return f != gettimeofday;
 
17386
  ;
 
17387
  return 0;
 
17388
}
 
17389
_ACEOF
 
17390
rm -f conftest.$ac_objext conftest$ac_exeext
 
17391
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17392
  (eval $ac_link) 2>conftest.er1
 
17393
  ac_status=$?
 
17394
  grep -v '^ *+' conftest.er1 >conftest.err
 
17395
  rm -f conftest.er1
 
17396
  cat conftest.err >&5
 
17397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17398
  (exit $ac_status); } &&
 
17399
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17400
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17401
  (eval $ac_try) 2>&5
 
17402
  ac_status=$?
 
17403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17404
  (exit $ac_status); }; } &&
 
17405
         { ac_try='test -s conftest$ac_exeext'
 
17406
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17407
  (eval $ac_try) 2>&5
 
17408
  ac_status=$?
 
17409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17410
  (exit $ac_status); }; }; then
 
17411
  ac_cv_func_gettimeofday=yes
 
17412
else
 
17413
  echo "$as_me: failed program was:" >&5
 
17414
sed 's/^/| /' conftest.$ac_ext >&5
 
17415
 
 
17416
ac_cv_func_gettimeofday=no
 
17417
fi
 
17418
rm -f conftest.err conftest.$ac_objext \
 
17419
      conftest$ac_exeext conftest.$ac_ext
 
17420
fi
 
17421
echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
 
17422
echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
 
17423
if test $ac_cv_func_gettimeofday = yes; then
 
17424
  :
 
17425
else
 
17426
 
 
17427
case "$host" in
 
17428
  *-*-mpeix*) ac_cv_func_gettimeofday=yes
 
17429
    ;;
 
17430
esac
 
17431
fi
 
17432
 
 
17433
case "$host" in
8925
17434
 *-pc-cygwin*)
8926
17435
    ;;
8927
17436
 *)
8928
17437
for ac_func in getuid
8929
17438
do
8930
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8931
 
echo "$as_me:8931: checking for $ac_func" >&5
 
17439
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
17440
echo "$as_me:$LINENO: checking for $ac_func" >&5
8932
17441
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8933
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
17442
if eval "test \"\${$as_ac_var+set}\" = set"; then
8934
17443
  echo $ECHO_N "(cached) $ECHO_C" >&6
8935
17444
else
8936
17445
  cat >conftest.$ac_ext <<_ACEOF
8937
 
#line 8937 "configure"
8938
 
#include "confdefs.h"
 
17446
/* confdefs.h.  */
 
17447
_ACEOF
 
17448
cat confdefs.h >>conftest.$ac_ext
 
17449
cat >>conftest.$ac_ext <<_ACEOF
 
17450
/* end confdefs.h.  */
 
17451
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17452
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17453
#define $ac_func innocuous_$ac_func
 
17454
 
8939
17455
/* System header to define __stub macros and hopefully few prototypes,
8940
 
    which can conflict with char $ac_func (); below.  */
8941
 
#include <assert.h>
 
17456
    which can conflict with char $ac_func (); below.
 
17457
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17458
    <limits.h> exists even on freestanding compilers.  */
 
17459
 
 
17460
#ifdef __STDC__
 
17461
# include <limits.h>
 
17462
#else
 
17463
# include <assert.h>
 
17464
#endif
 
17465
 
 
17466
#undef $ac_func
 
17467
 
8942
17468
/* Override any gcc2 internal prototype to avoid an error.  */
8943
17469
#ifdef __cplusplus
8944
17470
extern "C"
 
17471
{
8945
17472
#endif
8946
17473
/* We use char because int might match the return type of a gcc2
8947
17474
   builtin and then its argument prototype would still apply.  */
8948
17475
char $ac_func ();
8949
 
char (*f) ();
8950
 
 
8951
 
int
8952
 
main ()
8953
 
{
8954
17476
/* The GNU C library defines this for functions which it implements
8955
17477
    to always fail with ENOSYS.  Some functions are actually named
8956
17478
    something starting with __ and the normal name is an alias.  */
8957
17479
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8958
17480
choke me
8959
17481
#else
8960
 
f = $ac_func;
 
17482
char (*f) () = $ac_func;
 
17483
#endif
 
17484
#ifdef __cplusplus
 
17485
}
8961
17486
#endif
8962
17487
 
 
17488
int
 
17489
main ()
 
17490
{
 
17491
return f != $ac_func;
8963
17492
  ;
8964
17493
  return 0;
8965
17494
}
8966
17495
_ACEOF
8967
17496
rm -f conftest.$ac_objext conftest$ac_exeext
8968
 
if { (eval echo "$as_me:8968: \"$ac_link\"") >&5
8969
 
  (eval $ac_link) 2>&5
 
17497
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17498
  (eval $ac_link) 2>conftest.er1
8970
17499
  ac_status=$?
8971
 
  echo "$as_me:8971: \$? = $ac_status" >&5
 
17500
  grep -v '^ *+' conftest.er1 >conftest.err
 
17501
  rm -f conftest.er1
 
17502
  cat conftest.err >&5
 
17503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972
17504
  (exit $ac_status); } &&
8973
 
         { ac_try='test -s conftest$ac_exeext'
8974
 
  { (eval echo "$as_me:8974: \"$ac_try\"") >&5
8975
 
  (eval $ac_try) 2>&5
8976
 
  ac_status=$?
8977
 
  echo "$as_me:8977: \$? = $ac_status" >&5
 
17505
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17506
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17507
  (eval $ac_try) 2>&5
 
17508
  ac_status=$?
 
17509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17510
  (exit $ac_status); }; } &&
 
17511
         { ac_try='test -s conftest$ac_exeext'
 
17512
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17513
  (eval $ac_try) 2>&5
 
17514
  ac_status=$?
 
17515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978
17516
  (exit $ac_status); }; }; then
8979
 
  eval "$ac_ac_var=yes"
 
17517
  eval "$as_ac_var=yes"
8980
17518
else
8981
17519
  echo "$as_me: failed program was:" >&5
8982
 
cat conftest.$ac_ext >&5
8983
 
eval "$ac_ac_var=no"
8984
 
fi
8985
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8986
 
fi
8987
 
echo "$as_me:8987: result: `eval echo '${'$ac_ac_var'}'`" >&5
8988
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8989
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
8990
 
  cat >>confdefs.h <<EOF
8991
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8992
 
EOF
 
17520
sed 's/^/| /' conftest.$ac_ext >&5
 
17521
 
 
17522
eval "$as_ac_var=no"
 
17523
fi
 
17524
rm -f conftest.err conftest.$ac_objext \
 
17525
      conftest$ac_exeext conftest.$ac_ext
 
17526
fi
 
17527
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
17528
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
17529
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
17530
  cat >>confdefs.h <<_ACEOF
 
17531
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
17532
_ACEOF
8993
17533
 
8994
17534
fi
8995
17535
done
8997
17537
    ;;
8998
17538
esac
8999
17539
 
9000
 
for ac_func in hstrerror K_open kvm_open memcpy memmove memset
9001
 
do
9002
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9003
 
echo "$as_me:9003: checking for $ac_func" >&5
9004
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9005
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
9006
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9007
 
else
9008
 
  cat >conftest.$ac_ext <<_ACEOF
9009
 
#line 9009 "configure"
9010
 
#include "confdefs.h"
9011
 
/* System header to define __stub macros and hopefully few prototypes,
9012
 
    which can conflict with char $ac_func (); below.  */
9013
 
#include <assert.h>
9014
 
/* Override any gcc2 internal prototype to avoid an error.  */
9015
 
#ifdef __cplusplus
9016
 
extern "C"
9017
 
#endif
9018
 
/* We use char because int might match the return type of a gcc2
9019
 
   builtin and then its argument prototype would still apply.  */
9020
 
char $ac_func ();
9021
 
char (*f) ();
9022
 
 
9023
 
int
9024
 
main ()
9025
 
{
9026
 
/* The GNU C library defines this for functions which it implements
9027
 
    to always fail with ENOSYS.  Some functions are actually named
9028
 
    something starting with __ and the normal name is an alias.  */
9029
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9030
 
choke me
9031
 
#else
9032
 
f = $ac_func;
9033
 
#endif
9034
 
 
9035
 
  ;
9036
 
  return 0;
9037
 
}
9038
 
_ACEOF
9039
 
rm -f conftest.$ac_objext conftest$ac_exeext
9040
 
if { (eval echo "$as_me:9040: \"$ac_link\"") >&5
9041
 
  (eval $ac_link) 2>&5
9042
 
  ac_status=$?
9043
 
  echo "$as_me:9043: \$? = $ac_status" >&5
9044
 
  (exit $ac_status); } &&
9045
 
         { ac_try='test -s conftest$ac_exeext'
9046
 
  { (eval echo "$as_me:9046: \"$ac_try\"") >&5
9047
 
  (eval $ac_try) 2>&5
9048
 
  ac_status=$?
9049
 
  echo "$as_me:9049: \$? = $ac_status" >&5
9050
 
  (exit $ac_status); }; }; then
9051
 
  eval "$ac_ac_var=yes"
9052
 
else
9053
 
  echo "$as_me: failed program was:" >&5
9054
 
cat conftest.$ac_ext >&5
9055
 
eval "$ac_ac_var=no"
9056
 
fi
9057
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9058
 
fi
9059
 
echo "$as_me:9059: result: `eval echo '${'$ac_ac_var'}'`" >&5
9060
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9061
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
9062
 
  cat >>confdefs.h <<EOF
9063
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9064
 
EOF
9065
 
 
9066
 
fi
9067
 
done
9068
 
 
9069
 
case "$target" in
 
17540
for ac_func in hstrerror
 
17541
do
 
17542
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
17543
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
17544
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
17545
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
17546
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17547
else
 
17548
  cat >conftest.$ac_ext <<_ACEOF
 
17549
/* confdefs.h.  */
 
17550
_ACEOF
 
17551
cat confdefs.h >>conftest.$ac_ext
 
17552
cat >>conftest.$ac_ext <<_ACEOF
 
17553
/* end confdefs.h.  */
 
17554
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17555
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17556
#define $ac_func innocuous_$ac_func
 
17557
 
 
17558
/* System header to define __stub macros and hopefully few prototypes,
 
17559
    which can conflict with char $ac_func (); below.
 
17560
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17561
    <limits.h> exists even on freestanding compilers.  */
 
17562
 
 
17563
#ifdef __STDC__
 
17564
# include <limits.h>
 
17565
#else
 
17566
# include <assert.h>
 
17567
#endif
 
17568
 
 
17569
#undef $ac_func
 
17570
 
 
17571
/* Override any gcc2 internal prototype to avoid an error.  */
 
17572
#ifdef __cplusplus
 
17573
extern "C"
 
17574
{
 
17575
#endif
 
17576
/* We use char because int might match the return type of a gcc2
 
17577
   builtin and then its argument prototype would still apply.  */
 
17578
char $ac_func ();
 
17579
/* The GNU C library defines this for functions which it implements
 
17580
    to always fail with ENOSYS.  Some functions are actually named
 
17581
    something starting with __ and the normal name is an alias.  */
 
17582
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
17583
choke me
 
17584
#else
 
17585
char (*f) () = $ac_func;
 
17586
#endif
 
17587
#ifdef __cplusplus
 
17588
}
 
17589
#endif
 
17590
 
 
17591
int
 
17592
main ()
 
17593
{
 
17594
return f != $ac_func;
 
17595
  ;
 
17596
  return 0;
 
17597
}
 
17598
_ACEOF
 
17599
rm -f conftest.$ac_objext conftest$ac_exeext
 
17600
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17601
  (eval $ac_link) 2>conftest.er1
 
17602
  ac_status=$?
 
17603
  grep -v '^ *+' conftest.er1 >conftest.err
 
17604
  rm -f conftest.er1
 
17605
  cat conftest.err >&5
 
17606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17607
  (exit $ac_status); } &&
 
17608
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17609
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17610
  (eval $ac_try) 2>&5
 
17611
  ac_status=$?
 
17612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17613
  (exit $ac_status); }; } &&
 
17614
         { ac_try='test -s conftest$ac_exeext'
 
17615
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17616
  (eval $ac_try) 2>&5
 
17617
  ac_status=$?
 
17618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17619
  (exit $ac_status); }; }; then
 
17620
  eval "$as_ac_var=yes"
 
17621
else
 
17622
  echo "$as_me: failed program was:" >&5
 
17623
sed 's/^/| /' conftest.$ac_ext >&5
 
17624
 
 
17625
eval "$as_ac_var=no"
 
17626
fi
 
17627
rm -f conftest.err conftest.$ac_objext \
 
17628
      conftest$ac_exeext conftest.$ac_ext
 
17629
fi
 
17630
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
17631
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
17632
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
17633
  cat >>confdefs.h <<_ACEOF
 
17634
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
17635
_ACEOF
 
17636
 
 
17637
fi
 
17638
done
 
17639
 
 
17640
echo "$as_me:$LINENO: checking for inet_ntop" >&5
 
17641
echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
 
17642
if test "${ac_cv_func_inet_ntop+set}" = set; then
 
17643
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17644
else
 
17645
  cat >conftest.$ac_ext <<_ACEOF
 
17646
/* confdefs.h.  */
 
17647
_ACEOF
 
17648
cat confdefs.h >>conftest.$ac_ext
 
17649
cat >>conftest.$ac_ext <<_ACEOF
 
17650
/* end confdefs.h.  */
 
17651
/* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
 
17652
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17653
#define inet_ntop innocuous_inet_ntop
 
17654
 
 
17655
/* System header to define __stub macros and hopefully few prototypes,
 
17656
    which can conflict with char inet_ntop (); below.
 
17657
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17658
    <limits.h> exists even on freestanding compilers.  */
 
17659
 
 
17660
#ifdef __STDC__
 
17661
# include <limits.h>
 
17662
#else
 
17663
# include <assert.h>
 
17664
#endif
 
17665
 
 
17666
#undef inet_ntop
 
17667
 
 
17668
/* Override any gcc2 internal prototype to avoid an error.  */
 
17669
#ifdef __cplusplus
 
17670
extern "C"
 
17671
{
 
17672
#endif
 
17673
/* We use char because int might match the return type of a gcc2
 
17674
   builtin and then its argument prototype would still apply.  */
 
17675
char inet_ntop ();
 
17676
/* The GNU C library defines this for functions which it implements
 
17677
    to always fail with ENOSYS.  Some functions are actually named
 
17678
    something starting with __ and the normal name is an alias.  */
 
17679
#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
 
17680
choke me
 
17681
#else
 
17682
char (*f) () = inet_ntop;
 
17683
#endif
 
17684
#ifdef __cplusplus
 
17685
}
 
17686
#endif
 
17687
 
 
17688
int
 
17689
main ()
 
17690
{
 
17691
return f != inet_ntop;
 
17692
  ;
 
17693
  return 0;
 
17694
}
 
17695
_ACEOF
 
17696
rm -f conftest.$ac_objext conftest$ac_exeext
 
17697
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17698
  (eval $ac_link) 2>conftest.er1
 
17699
  ac_status=$?
 
17700
  grep -v '^ *+' conftest.er1 >conftest.err
 
17701
  rm -f conftest.er1
 
17702
  cat conftest.err >&5
 
17703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17704
  (exit $ac_status); } &&
 
17705
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17706
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17707
  (eval $ac_try) 2>&5
 
17708
  ac_status=$?
 
17709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17710
  (exit $ac_status); }; } &&
 
17711
         { ac_try='test -s conftest$ac_exeext'
 
17712
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17713
  (eval $ac_try) 2>&5
 
17714
  ac_status=$?
 
17715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17716
  (exit $ac_status); }; }; then
 
17717
  ac_cv_func_inet_ntop=yes
 
17718
else
 
17719
  echo "$as_me: failed program was:" >&5
 
17720
sed 's/^/| /' conftest.$ac_ext >&5
 
17721
 
 
17722
ac_cv_func_inet_ntop=no
 
17723
fi
 
17724
rm -f conftest.err conftest.$ac_objext \
 
17725
      conftest$ac_exeext conftest.$ac_ext
 
17726
fi
 
17727
echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
 
17728
echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
 
17729
if test $ac_cv_func_inet_ntop = yes; then
 
17730
  :
 
17731
else
 
17732
 
 
17733
cat >>confdefs.h <<\_ACEOF
 
17734
#define ISC_PLATFORM_NEEDNTOP 1
 
17735
_ACEOF
 
17736
 
 
17737
fi
 
17738
 
 
17739
 
 
17740
 
 
17741
 
 
17742
 
 
17743
 
 
17744
for ac_func in K_open kvm_open memcpy memmove memset
 
17745
do
 
17746
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
17747
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
17748
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
17749
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
17750
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17751
else
 
17752
  cat >conftest.$ac_ext <<_ACEOF
 
17753
/* confdefs.h.  */
 
17754
_ACEOF
 
17755
cat confdefs.h >>conftest.$ac_ext
 
17756
cat >>conftest.$ac_ext <<_ACEOF
 
17757
/* end confdefs.h.  */
 
17758
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17759
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17760
#define $ac_func innocuous_$ac_func
 
17761
 
 
17762
/* System header to define __stub macros and hopefully few prototypes,
 
17763
    which can conflict with char $ac_func (); below.
 
17764
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17765
    <limits.h> exists even on freestanding compilers.  */
 
17766
 
 
17767
#ifdef __STDC__
 
17768
# include <limits.h>
 
17769
#else
 
17770
# include <assert.h>
 
17771
#endif
 
17772
 
 
17773
#undef $ac_func
 
17774
 
 
17775
/* Override any gcc2 internal prototype to avoid an error.  */
 
17776
#ifdef __cplusplus
 
17777
extern "C"
 
17778
{
 
17779
#endif
 
17780
/* We use char because int might match the return type of a gcc2
 
17781
   builtin and then its argument prototype would still apply.  */
 
17782
char $ac_func ();
 
17783
/* The GNU C library defines this for functions which it implements
 
17784
    to always fail with ENOSYS.  Some functions are actually named
 
17785
    something starting with __ and the normal name is an alias.  */
 
17786
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
17787
choke me
 
17788
#else
 
17789
char (*f) () = $ac_func;
 
17790
#endif
 
17791
#ifdef __cplusplus
 
17792
}
 
17793
#endif
 
17794
 
 
17795
int
 
17796
main ()
 
17797
{
 
17798
return f != $ac_func;
 
17799
  ;
 
17800
  return 0;
 
17801
}
 
17802
_ACEOF
 
17803
rm -f conftest.$ac_objext conftest$ac_exeext
 
17804
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17805
  (eval $ac_link) 2>conftest.er1
 
17806
  ac_status=$?
 
17807
  grep -v '^ *+' conftest.er1 >conftest.err
 
17808
  rm -f conftest.er1
 
17809
  cat conftest.err >&5
 
17810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17811
  (exit $ac_status); } &&
 
17812
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17813
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17814
  (eval $ac_try) 2>&5
 
17815
  ac_status=$?
 
17816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17817
  (exit $ac_status); }; } &&
 
17818
         { ac_try='test -s conftest$ac_exeext'
 
17819
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17820
  (eval $ac_try) 2>&5
 
17821
  ac_status=$?
 
17822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17823
  (exit $ac_status); }; }; then
 
17824
  eval "$as_ac_var=yes"
 
17825
else
 
17826
  echo "$as_me: failed program was:" >&5
 
17827
sed 's/^/| /' conftest.$ac_ext >&5
 
17828
 
 
17829
eval "$as_ac_var=no"
 
17830
fi
 
17831
rm -f conftest.err conftest.$ac_objext \
 
17832
      conftest$ac_exeext conftest.$ac_ext
 
17833
fi
 
17834
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
17835
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
17836
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
17837
  cat >>confdefs.h <<_ACEOF
 
17838
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
17839
_ACEOF
 
17840
 
 
17841
fi
 
17842
done
 
17843
 
 
17844
case "$host" in
9070
17845
 *-*-sco3.2v5.0.*)
9071
17846
    # Just stubs.  Idiots.
9072
17847
    ;;
9073
17848
 *)
9074
17849
for ac_func in mkstemp
9075
17850
do
9076
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9077
 
echo "$as_me:9077: checking for $ac_func" >&5
 
17851
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
17852
echo "$as_me:$LINENO: checking for $ac_func" >&5
9078
17853
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9079
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
17854
if eval "test \"\${$as_ac_var+set}\" = set"; then
9080
17855
  echo $ECHO_N "(cached) $ECHO_C" >&6
9081
17856
else
9082
17857
  cat >conftest.$ac_ext <<_ACEOF
9083
 
#line 9083 "configure"
9084
 
#include "confdefs.h"
 
17858
/* confdefs.h.  */
 
17859
_ACEOF
 
17860
cat confdefs.h >>conftest.$ac_ext
 
17861
cat >>conftest.$ac_ext <<_ACEOF
 
17862
/* end confdefs.h.  */
 
17863
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17864
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17865
#define $ac_func innocuous_$ac_func
 
17866
 
9085
17867
/* System header to define __stub macros and hopefully few prototypes,
9086
 
    which can conflict with char $ac_func (); below.  */
9087
 
#include <assert.h>
 
17868
    which can conflict with char $ac_func (); below.
 
17869
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17870
    <limits.h> exists even on freestanding compilers.  */
 
17871
 
 
17872
#ifdef __STDC__
 
17873
# include <limits.h>
 
17874
#else
 
17875
# include <assert.h>
 
17876
#endif
 
17877
 
 
17878
#undef $ac_func
 
17879
 
9088
17880
/* Override any gcc2 internal prototype to avoid an error.  */
9089
17881
#ifdef __cplusplus
9090
17882
extern "C"
 
17883
{
9091
17884
#endif
9092
17885
/* We use char because int might match the return type of a gcc2
9093
17886
   builtin and then its argument prototype would still apply.  */
9094
17887
char $ac_func ();
9095
 
char (*f) ();
9096
 
 
9097
 
int
9098
 
main ()
9099
 
{
9100
17888
/* The GNU C library defines this for functions which it implements
9101
17889
    to always fail with ENOSYS.  Some functions are actually named
9102
17890
    something starting with __ and the normal name is an alias.  */
9103
17891
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9104
17892
choke me
9105
17893
#else
9106
 
f = $ac_func;
 
17894
char (*f) () = $ac_func;
 
17895
#endif
 
17896
#ifdef __cplusplus
 
17897
}
9107
17898
#endif
9108
17899
 
 
17900
int
 
17901
main ()
 
17902
{
 
17903
return f != $ac_func;
9109
17904
  ;
9110
17905
  return 0;
9111
17906
}
9112
17907
_ACEOF
9113
17908
rm -f conftest.$ac_objext conftest$ac_exeext
9114
 
if { (eval echo "$as_me:9114: \"$ac_link\"") >&5
9115
 
  (eval $ac_link) 2>&5
 
17909
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17910
  (eval $ac_link) 2>conftest.er1
9116
17911
  ac_status=$?
9117
 
  echo "$as_me:9117: \$? = $ac_status" >&5
 
17912
  grep -v '^ *+' conftest.er1 >conftest.err
 
17913
  rm -f conftest.er1
 
17914
  cat conftest.err >&5
 
17915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118
17916
  (exit $ac_status); } &&
9119
 
         { ac_try='test -s conftest$ac_exeext'
9120
 
  { (eval echo "$as_me:9120: \"$ac_try\"") >&5
9121
 
  (eval $ac_try) 2>&5
9122
 
  ac_status=$?
9123
 
  echo "$as_me:9123: \$? = $ac_status" >&5
 
17917
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17918
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17919
  (eval $ac_try) 2>&5
 
17920
  ac_status=$?
 
17921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17922
  (exit $ac_status); }; } &&
 
17923
         { ac_try='test -s conftest$ac_exeext'
 
17924
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17925
  (eval $ac_try) 2>&5
 
17926
  ac_status=$?
 
17927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124
17928
  (exit $ac_status); }; }; then
9125
 
  eval "$ac_ac_var=yes"
 
17929
  eval "$as_ac_var=yes"
9126
17930
else
9127
17931
  echo "$as_me: failed program was:" >&5
9128
 
cat conftest.$ac_ext >&5
9129
 
eval "$ac_ac_var=no"
9130
 
fi
9131
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9132
 
fi
9133
 
echo "$as_me:9133: result: `eval echo '${'$ac_ac_var'}'`" >&5
9134
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9135
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
9136
 
  cat >>confdefs.h <<EOF
9137
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9138
 
EOF
 
17932
sed 's/^/| /' conftest.$ac_ext >&5
 
17933
 
 
17934
eval "$as_ac_var=no"
 
17935
fi
 
17936
rm -f conftest.err conftest.$ac_objext \
 
17937
      conftest$ac_exeext conftest.$ac_ext
 
17938
fi
 
17939
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
17940
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
17941
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
17942
  cat >>confdefs.h <<_ACEOF
 
17943
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
17944
_ACEOF
9139
17945
 
9140
17946
fi
9141
17947
done
9145
17951
 
9146
17952
for ac_func in mktime
9147
17953
do
9148
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9149
 
echo "$as_me:9149: checking for $ac_func" >&5
 
17954
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
17955
echo "$as_me:$LINENO: checking for $ac_func" >&5
9150
17956
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9151
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
17957
if eval "test \"\${$as_ac_var+set}\" = set"; then
9152
17958
  echo $ECHO_N "(cached) $ECHO_C" >&6
9153
17959
else
9154
17960
  cat >conftest.$ac_ext <<_ACEOF
9155
 
#line 9155 "configure"
9156
 
#include "confdefs.h"
 
17961
/* confdefs.h.  */
 
17962
_ACEOF
 
17963
cat confdefs.h >>conftest.$ac_ext
 
17964
cat >>conftest.$ac_ext <<_ACEOF
 
17965
/* end confdefs.h.  */
 
17966
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17967
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17968
#define $ac_func innocuous_$ac_func
 
17969
 
9157
17970
/* System header to define __stub macros and hopefully few prototypes,
9158
 
    which can conflict with char $ac_func (); below.  */
9159
 
#include <assert.h>
 
17971
    which can conflict with char $ac_func (); below.
 
17972
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17973
    <limits.h> exists even on freestanding compilers.  */
 
17974
 
 
17975
#ifdef __STDC__
 
17976
# include <limits.h>
 
17977
#else
 
17978
# include <assert.h>
 
17979
#endif
 
17980
 
 
17981
#undef $ac_func
 
17982
 
9160
17983
/* Override any gcc2 internal prototype to avoid an error.  */
9161
17984
#ifdef __cplusplus
9162
17985
extern "C"
 
17986
{
9163
17987
#endif
9164
17988
/* We use char because int might match the return type of a gcc2
9165
17989
   builtin and then its argument prototype would still apply.  */
9166
17990
char $ac_func ();
9167
 
char (*f) ();
9168
 
 
9169
 
int
9170
 
main ()
9171
 
{
9172
17991
/* The GNU C library defines this for functions which it implements
9173
17992
    to always fail with ENOSYS.  Some functions are actually named
9174
17993
    something starting with __ and the normal name is an alias.  */
9175
17994
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9176
17995
choke me
9177
17996
#else
9178
 
f = $ac_func;
 
17997
char (*f) () = $ac_func;
 
17998
#endif
 
17999
#ifdef __cplusplus
 
18000
}
9179
18001
#endif
9180
18002
 
 
18003
int
 
18004
main ()
 
18005
{
 
18006
return f != $ac_func;
9181
18007
  ;
9182
18008
  return 0;
9183
18009
}
9184
18010
_ACEOF
9185
18011
rm -f conftest.$ac_objext conftest$ac_exeext
9186
 
if { (eval echo "$as_me:9186: \"$ac_link\"") >&5
9187
 
  (eval $ac_link) 2>&5
 
18012
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18013
  (eval $ac_link) 2>conftest.er1
9188
18014
  ac_status=$?
9189
 
  echo "$as_me:9189: \$? = $ac_status" >&5
 
18015
  grep -v '^ *+' conftest.er1 >conftest.err
 
18016
  rm -f conftest.er1
 
18017
  cat conftest.err >&5
 
18018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190
18019
  (exit $ac_status); } &&
9191
 
         { ac_try='test -s conftest$ac_exeext'
9192
 
  { (eval echo "$as_me:9192: \"$ac_try\"") >&5
9193
 
  (eval $ac_try) 2>&5
9194
 
  ac_status=$?
9195
 
  echo "$as_me:9195: \$? = $ac_status" >&5
 
18020
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18021
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18022
  (eval $ac_try) 2>&5
 
18023
  ac_status=$?
 
18024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18025
  (exit $ac_status); }; } &&
 
18026
         { ac_try='test -s conftest$ac_exeext'
 
18027
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18028
  (eval $ac_try) 2>&5
 
18029
  ac_status=$?
 
18030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196
18031
  (exit $ac_status); }; }; then
9197
 
  eval "$ac_ac_var=yes"
 
18032
  eval "$as_ac_var=yes"
9198
18033
else
9199
18034
  echo "$as_me: failed program was:" >&5
9200
 
cat conftest.$ac_ext >&5
9201
 
eval "$ac_ac_var=no"
9202
 
fi
9203
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9204
 
fi
9205
 
echo "$as_me:9205: result: `eval echo '${'$ac_ac_var'}'`" >&5
9206
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9207
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
9208
 
  cat >>confdefs.h <<EOF
9209
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9210
 
EOF
9211
 
 
9212
 
else
9213
 
  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
 
18035
sed 's/^/| /' conftest.$ac_ext >&5
 
18036
 
 
18037
eval "$as_ac_var=no"
 
18038
fi
 
18039
rm -f conftest.err conftest.$ac_objext \
 
18040
      conftest$ac_exeext conftest.$ac_ext
 
18041
fi
 
18042
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
18043
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
18044
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18045
  cat >>confdefs.h <<_ACEOF
 
18046
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18047
_ACEOF
 
18048
 
9214
18049
fi
9215
18050
done
9216
18051
 
9217
 
case "$target" in
9218
 
 *-*-aix4*)
 
18052
case "$host" in
 
18053
 *-*-aix[45]*)
9219
18054
    # Just a stub.  Idiots.
9220
18055
    ;;
9221
 
 *-*-irix*)
9222
 
    # Just stubs in Irix.  Idiots.
 
18056
 *-*-irix[45]*)
 
18057
    # Just a stub in "old" Irix.  Idiots.
 
18058
    ;;
 
18059
 *-*-qnx*)
 
18060
    # Apparently there but not working in QNX.  Idiots?
9223
18061
    ;;
9224
18062
 *-*-sco3.2v5.0.*)
9225
 
    # Just stubs.  Idiots.
 
18063
    # Just a stub.  Idiots.
9226
18064
    ;;
9227
18065
 alpha*-dec-osf4*|alpha*-dec-osf5*)
9228
18066
    # mlockall is there, as a #define calling memlk via <sys/mman.h>
9230
18068
 
9231
18069
for ac_func in memlk
9232
18070
do
9233
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9234
 
echo "$as_me:9234: checking for $ac_func" >&5
 
18071
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18072
echo "$as_me:$LINENO: checking for $ac_func" >&5
9235
18073
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9236
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
18074
if eval "test \"\${$as_ac_var+set}\" = set"; then
9237
18075
  echo $ECHO_N "(cached) $ECHO_C" >&6
9238
18076
else
9239
18077
  cat >conftest.$ac_ext <<_ACEOF
9240
 
#line 9240 "configure"
9241
 
#include "confdefs.h"
 
18078
/* confdefs.h.  */
 
18079
_ACEOF
 
18080
cat confdefs.h >>conftest.$ac_ext
 
18081
cat >>conftest.$ac_ext <<_ACEOF
 
18082
/* end confdefs.h.  */
 
18083
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18084
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18085
#define $ac_func innocuous_$ac_func
 
18086
 
9242
18087
/* System header to define __stub macros and hopefully few prototypes,
9243
 
    which can conflict with char $ac_func (); below.  */
9244
 
#include <assert.h>
 
18088
    which can conflict with char $ac_func (); below.
 
18089
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18090
    <limits.h> exists even on freestanding compilers.  */
 
18091
 
 
18092
#ifdef __STDC__
 
18093
# include <limits.h>
 
18094
#else
 
18095
# include <assert.h>
 
18096
#endif
 
18097
 
 
18098
#undef $ac_func
 
18099
 
9245
18100
/* Override any gcc2 internal prototype to avoid an error.  */
9246
18101
#ifdef __cplusplus
9247
18102
extern "C"
 
18103
{
9248
18104
#endif
9249
18105
/* We use char because int might match the return type of a gcc2
9250
18106
   builtin and then its argument prototype would still apply.  */
9251
18107
char $ac_func ();
9252
 
char (*f) ();
9253
 
 
9254
 
int
9255
 
main ()
9256
 
{
9257
18108
/* The GNU C library defines this for functions which it implements
9258
18109
    to always fail with ENOSYS.  Some functions are actually named
9259
18110
    something starting with __ and the normal name is an alias.  */
9260
18111
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9261
18112
choke me
9262
18113
#else
9263
 
f = $ac_func;
 
18114
char (*f) () = $ac_func;
 
18115
#endif
 
18116
#ifdef __cplusplus
 
18117
}
9264
18118
#endif
9265
18119
 
 
18120
int
 
18121
main ()
 
18122
{
 
18123
return f != $ac_func;
9266
18124
  ;
9267
18125
  return 0;
9268
18126
}
9269
18127
_ACEOF
9270
18128
rm -f conftest.$ac_objext conftest$ac_exeext
9271
 
if { (eval echo "$as_me:9271: \"$ac_link\"") >&5
9272
 
  (eval $ac_link) 2>&5
 
18129
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18130
  (eval $ac_link) 2>conftest.er1
9273
18131
  ac_status=$?
9274
 
  echo "$as_me:9274: \$? = $ac_status" >&5
 
18132
  grep -v '^ *+' conftest.er1 >conftest.err
 
18133
  rm -f conftest.er1
 
18134
  cat conftest.err >&5
 
18135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275
18136
  (exit $ac_status); } &&
9276
 
         { ac_try='test -s conftest$ac_exeext'
9277
 
  { (eval echo "$as_me:9277: \"$ac_try\"") >&5
9278
 
  (eval $ac_try) 2>&5
9279
 
  ac_status=$?
9280
 
  echo "$as_me:9280: \$? = $ac_status" >&5
 
18137
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18138
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18139
  (eval $ac_try) 2>&5
 
18140
  ac_status=$?
 
18141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18142
  (exit $ac_status); }; } &&
 
18143
         { ac_try='test -s conftest$ac_exeext'
 
18144
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18145
  (eval $ac_try) 2>&5
 
18146
  ac_status=$?
 
18147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281
18148
  (exit $ac_status); }; }; then
9282
 
  eval "$ac_ac_var=yes"
 
18149
  eval "$as_ac_var=yes"
9283
18150
else
9284
18151
  echo "$as_me: failed program was:" >&5
9285
 
cat conftest.$ac_ext >&5
9286
 
eval "$ac_ac_var=no"
9287
 
fi
9288
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9289
 
fi
9290
 
echo "$as_me:9290: result: `eval echo '${'$ac_ac_var'}'`" >&5
9291
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9292
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
9293
 
  cat >>confdefs.h <<EOF
9294
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9295
 
EOF
 
18152
sed 's/^/| /' conftest.$ac_ext >&5
 
18153
 
 
18154
eval "$as_ac_var=no"
 
18155
fi
 
18156
rm -f conftest.err conftest.$ac_objext \
 
18157
      conftest$ac_exeext conftest.$ac_ext
 
18158
fi
 
18159
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
18160
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
18161
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18162
  cat >>confdefs.h <<_ACEOF
 
18163
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18164
_ACEOF
9296
18165
 ac_cv_func_mlockall='yes'
9297
18166
fi
9298
18167
done
9299
18168
 
 
18169
 
9300
18170
for ac_func in mlockall
9301
18171
do
9302
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9303
 
echo "$as_me:9303: checking for $ac_func" >&5
 
18172
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18173
echo "$as_me:$LINENO: checking for $ac_func" >&5
9304
18174
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9305
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
18175
if eval "test \"\${$as_ac_var+set}\" = set"; then
9306
18176
  echo $ECHO_N "(cached) $ECHO_C" >&6
9307
18177
else
9308
18178
  cat >conftest.$ac_ext <<_ACEOF
9309
 
#line 9309 "configure"
9310
 
#include "confdefs.h"
 
18179
/* confdefs.h.  */
 
18180
_ACEOF
 
18181
cat confdefs.h >>conftest.$ac_ext
 
18182
cat >>conftest.$ac_ext <<_ACEOF
 
18183
/* end confdefs.h.  */
 
18184
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18185
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18186
#define $ac_func innocuous_$ac_func
 
18187
 
9311
18188
/* System header to define __stub macros and hopefully few prototypes,
9312
 
    which can conflict with char $ac_func (); below.  */
9313
 
#include <assert.h>
 
18189
    which can conflict with char $ac_func (); below.
 
18190
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18191
    <limits.h> exists even on freestanding compilers.  */
 
18192
 
 
18193
#ifdef __STDC__
 
18194
# include <limits.h>
 
18195
#else
 
18196
# include <assert.h>
 
18197
#endif
 
18198
 
 
18199
#undef $ac_func
 
18200
 
9314
18201
/* Override any gcc2 internal prototype to avoid an error.  */
9315
18202
#ifdef __cplusplus
9316
18203
extern "C"
 
18204
{
9317
18205
#endif
9318
18206
/* We use char because int might match the return type of a gcc2
9319
18207
   builtin and then its argument prototype would still apply.  */
9320
18208
char $ac_func ();
9321
 
char (*f) ();
9322
 
 
9323
 
int
9324
 
main ()
9325
 
{
9326
18209
/* The GNU C library defines this for functions which it implements
9327
18210
    to always fail with ENOSYS.  Some functions are actually named
9328
18211
    something starting with __ and the normal name is an alias.  */
9329
18212
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9330
18213
choke me
9331
18214
#else
9332
 
f = $ac_func;
 
18215
char (*f) () = $ac_func;
 
18216
#endif
 
18217
#ifdef __cplusplus
 
18218
}
9333
18219
#endif
9334
18220
 
 
18221
int
 
18222
main ()
 
18223
{
 
18224
return f != $ac_func;
9335
18225
  ;
9336
18226
  return 0;
9337
18227
}
9338
18228
_ACEOF
9339
18229
rm -f conftest.$ac_objext conftest$ac_exeext
9340
 
if { (eval echo "$as_me:9340: \"$ac_link\"") >&5
9341
 
  (eval $ac_link) 2>&5
 
18230
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18231
  (eval $ac_link) 2>conftest.er1
9342
18232
  ac_status=$?
9343
 
  echo "$as_me:9343: \$? = $ac_status" >&5
 
18233
  grep -v '^ *+' conftest.er1 >conftest.err
 
18234
  rm -f conftest.er1
 
18235
  cat conftest.err >&5
 
18236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344
18237
  (exit $ac_status); } &&
9345
 
         { ac_try='test -s conftest$ac_exeext'
9346
 
  { (eval echo "$as_me:9346: \"$ac_try\"") >&5
9347
 
  (eval $ac_try) 2>&5
9348
 
  ac_status=$?
9349
 
  echo "$as_me:9349: \$? = $ac_status" >&5
 
18238
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18239
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18240
  (eval $ac_try) 2>&5
 
18241
  ac_status=$?
 
18242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18243
  (exit $ac_status); }; } &&
 
18244
         { ac_try='test -s conftest$ac_exeext'
 
18245
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18246
  (eval $ac_try) 2>&5
 
18247
  ac_status=$?
 
18248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350
18249
  (exit $ac_status); }; }; then
9351
 
  eval "$ac_ac_var=yes"
 
18250
  eval "$as_ac_var=yes"
9352
18251
else
9353
18252
  echo "$as_me: failed program was:" >&5
9354
 
cat conftest.$ac_ext >&5
9355
 
eval "$ac_ac_var=no"
9356
 
fi
9357
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9358
 
fi
9359
 
echo "$as_me:9359: result: `eval echo '${'$ac_ac_var'}'`" >&5
9360
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9361
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
9362
 
  cat >>confdefs.h <<EOF
9363
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9364
 
EOF
 
18253
sed 's/^/| /' conftest.$ac_ext >&5
 
18254
 
 
18255
eval "$as_ac_var=no"
 
18256
fi
 
18257
rm -f conftest.err conftest.$ac_objext \
 
18258
      conftest$ac_exeext conftest.$ac_ext
 
18259
fi
 
18260
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
18261
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
18262
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18263
  cat >>confdefs.h <<_ACEOF
 
18264
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18265
_ACEOF
9365
18266
 
9366
18267
fi
9367
18268
done
9370
18271
 *)
9371
18272
for ac_func in mlockall
9372
18273
do
9373
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9374
 
echo "$as_me:9374: checking for $ac_func" >&5
 
18274
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18275
echo "$as_me:$LINENO: checking for $ac_func" >&5
9375
18276
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9376
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
18277
if eval "test \"\${$as_ac_var+set}\" = set"; then
9377
18278
  echo $ECHO_N "(cached) $ECHO_C" >&6
9378
18279
else
9379
18280
  cat >conftest.$ac_ext <<_ACEOF
9380
 
#line 9380 "configure"
9381
 
#include "confdefs.h"
 
18281
/* confdefs.h.  */
 
18282
_ACEOF
 
18283
cat confdefs.h >>conftest.$ac_ext
 
18284
cat >>conftest.$ac_ext <<_ACEOF
 
18285
/* end confdefs.h.  */
 
18286
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18287
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18288
#define $ac_func innocuous_$ac_func
 
18289
 
9382
18290
/* System header to define __stub macros and hopefully few prototypes,
9383
 
    which can conflict with char $ac_func (); below.  */
9384
 
#include <assert.h>
 
18291
    which can conflict with char $ac_func (); below.
 
18292
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18293
    <limits.h> exists even on freestanding compilers.  */
 
18294
 
 
18295
#ifdef __STDC__
 
18296
# include <limits.h>
 
18297
#else
 
18298
# include <assert.h>
 
18299
#endif
 
18300
 
 
18301
#undef $ac_func
 
18302
 
9385
18303
/* Override any gcc2 internal prototype to avoid an error.  */
9386
18304
#ifdef __cplusplus
9387
18305
extern "C"
 
18306
{
9388
18307
#endif
9389
18308
/* We use char because int might match the return type of a gcc2
9390
18309
   builtin and then its argument prototype would still apply.  */
9391
18310
char $ac_func ();
9392
 
char (*f) ();
9393
 
 
9394
 
int
9395
 
main ()
9396
 
{
9397
18311
/* The GNU C library defines this for functions which it implements
9398
18312
    to always fail with ENOSYS.  Some functions are actually named
9399
18313
    something starting with __ and the normal name is an alias.  */
9400
18314
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9401
18315
choke me
9402
18316
#else
9403
 
f = $ac_func;
 
18317
char (*f) () = $ac_func;
 
18318
#endif
 
18319
#ifdef __cplusplus
 
18320
}
9404
18321
#endif
9405
18322
 
 
18323
int
 
18324
main ()
 
18325
{
 
18326
return f != $ac_func;
9406
18327
  ;
9407
18328
  return 0;
9408
18329
}
9409
18330
_ACEOF
9410
18331
rm -f conftest.$ac_objext conftest$ac_exeext
9411
 
if { (eval echo "$as_me:9411: \"$ac_link\"") >&5
9412
 
  (eval $ac_link) 2>&5
 
18332
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18333
  (eval $ac_link) 2>conftest.er1
9413
18334
  ac_status=$?
9414
 
  echo "$as_me:9414: \$? = $ac_status" >&5
 
18335
  grep -v '^ *+' conftest.er1 >conftest.err
 
18336
  rm -f conftest.er1
 
18337
  cat conftest.err >&5
 
18338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415
18339
  (exit $ac_status); } &&
9416
 
         { ac_try='test -s conftest$ac_exeext'
9417
 
  { (eval echo "$as_me:9417: \"$ac_try\"") >&5
9418
 
  (eval $ac_try) 2>&5
9419
 
  ac_status=$?
9420
 
  echo "$as_me:9420: \$? = $ac_status" >&5
 
18340
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18341
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18342
  (eval $ac_try) 2>&5
 
18343
  ac_status=$?
 
18344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18345
  (exit $ac_status); }; } &&
 
18346
         { ac_try='test -s conftest$ac_exeext'
 
18347
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18348
  (eval $ac_try) 2>&5
 
18349
  ac_status=$?
 
18350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421
18351
  (exit $ac_status); }; }; then
9422
 
  eval "$ac_ac_var=yes"
 
18352
  eval "$as_ac_var=yes"
9423
18353
else
9424
18354
  echo "$as_me: failed program was:" >&5
9425
 
cat conftest.$ac_ext >&5
9426
 
eval "$ac_ac_var=no"
9427
 
fi
9428
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9429
 
fi
9430
 
echo "$as_me:9430: result: `eval echo '${'$ac_ac_var'}'`" >&5
9431
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9432
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
9433
 
  cat >>confdefs.h <<EOF
9434
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9435
 
EOF
 
18355
sed 's/^/| /' conftest.$ac_ext >&5
 
18356
 
 
18357
eval "$as_ac_var=no"
 
18358
fi
 
18359
rm -f conftest.err conftest.$ac_objext \
 
18360
      conftest$ac_exeext conftest.$ac_ext
 
18361
fi
 
18362
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
18363
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
18364
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18365
  cat >>confdefs.h <<_ACEOF
 
18366
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18367
_ACEOF
9436
18368
 
9437
18369
fi
9438
18370
done
9440
18372
    ;;
9441
18373
esac
9442
18374
 
 
18375
 
 
18376
 
 
18377
 
9443
18378
for ac_func in mrand48 srand48 nice nlist
9444
18379
do
9445
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9446
 
echo "$as_me:9446: checking for $ac_func" >&5
 
18380
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18381
echo "$as_me:$LINENO: checking for $ac_func" >&5
9447
18382
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9448
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
18383
if eval "test \"\${$as_ac_var+set}\" = set"; then
9449
18384
  echo $ECHO_N "(cached) $ECHO_C" >&6
9450
18385
else
9451
18386
  cat >conftest.$ac_ext <<_ACEOF
9452
 
#line 9452 "configure"
9453
 
#include "confdefs.h"
 
18387
/* confdefs.h.  */
 
18388
_ACEOF
 
18389
cat confdefs.h >>conftest.$ac_ext
 
18390
cat >>conftest.$ac_ext <<_ACEOF
 
18391
/* end confdefs.h.  */
 
18392
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18393
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18394
#define $ac_func innocuous_$ac_func
 
18395
 
9454
18396
/* System header to define __stub macros and hopefully few prototypes,
9455
 
    which can conflict with char $ac_func (); below.  */
9456
 
#include <assert.h>
 
18397
    which can conflict with char $ac_func (); below.
 
18398
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18399
    <limits.h> exists even on freestanding compilers.  */
 
18400
 
 
18401
#ifdef __STDC__
 
18402
# include <limits.h>
 
18403
#else
 
18404
# include <assert.h>
 
18405
#endif
 
18406
 
 
18407
#undef $ac_func
 
18408
 
9457
18409
/* Override any gcc2 internal prototype to avoid an error.  */
9458
18410
#ifdef __cplusplus
9459
18411
extern "C"
 
18412
{
9460
18413
#endif
9461
18414
/* We use char because int might match the return type of a gcc2
9462
18415
   builtin and then its argument prototype would still apply.  */
9463
18416
char $ac_func ();
9464
 
char (*f) ();
9465
 
 
9466
 
int
9467
 
main ()
9468
 
{
9469
18417
/* The GNU C library defines this for functions which it implements
9470
18418
    to always fail with ENOSYS.  Some functions are actually named
9471
18419
    something starting with __ and the normal name is an alias.  */
9472
18420
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9473
18421
choke me
9474
18422
#else
9475
 
f = $ac_func;
 
18423
char (*f) () = $ac_func;
 
18424
#endif
 
18425
#ifdef __cplusplus
 
18426
}
9476
18427
#endif
9477
18428
 
 
18429
int
 
18430
main ()
 
18431
{
 
18432
return f != $ac_func;
9478
18433
  ;
9479
18434
  return 0;
9480
18435
}
9481
18436
_ACEOF
9482
18437
rm -f conftest.$ac_objext conftest$ac_exeext
9483
 
if { (eval echo "$as_me:9483: \"$ac_link\"") >&5
9484
 
  (eval $ac_link) 2>&5
 
18438
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18439
  (eval $ac_link) 2>conftest.er1
9485
18440
  ac_status=$?
9486
 
  echo "$as_me:9486: \$? = $ac_status" >&5
 
18441
  grep -v '^ *+' conftest.er1 >conftest.err
 
18442
  rm -f conftest.er1
 
18443
  cat conftest.err >&5
 
18444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487
18445
  (exit $ac_status); } &&
9488
 
         { ac_try='test -s conftest$ac_exeext'
9489
 
  { (eval echo "$as_me:9489: \"$ac_try\"") >&5
9490
 
  (eval $ac_try) 2>&5
9491
 
  ac_status=$?
9492
 
  echo "$as_me:9492: \$? = $ac_status" >&5
 
18446
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18447
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18448
  (eval $ac_try) 2>&5
 
18449
  ac_status=$?
 
18450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18451
  (exit $ac_status); }; } &&
 
18452
         { ac_try='test -s conftest$ac_exeext'
 
18453
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18454
  (eval $ac_try) 2>&5
 
18455
  ac_status=$?
 
18456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493
18457
  (exit $ac_status); }; }; then
9494
 
  eval "$ac_ac_var=yes"
 
18458
  eval "$as_ac_var=yes"
9495
18459
else
9496
18460
  echo "$as_me: failed program was:" >&5
9497
 
cat conftest.$ac_ext >&5
9498
 
eval "$ac_ac_var=no"
9499
 
fi
9500
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9501
 
fi
9502
 
echo "$as_me:9502: result: `eval echo '${'$ac_ac_var'}'`" >&5
9503
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9504
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
9505
 
  cat >>confdefs.h <<EOF
9506
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9507
 
EOF
 
18461
sed 's/^/| /' conftest.$ac_ext >&5
 
18462
 
 
18463
eval "$as_ac_var=no"
 
18464
fi
 
18465
rm -f conftest.err conftest.$ac_objext \
 
18466
      conftest$ac_exeext conftest.$ac_ext
 
18467
fi
 
18468
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
18469
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
18470
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18471
  cat >>confdefs.h <<_ACEOF
 
18472
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18473
_ACEOF
9508
18474
 
9509
18475
fi
9510
18476
done
9511
18477
 
9512
 
case "$target" in
 
18478
case "$host" in
9513
18479
 *-*-solaris2.6)
9514
18480
    # Broken...
9515
18481
    ;;
9517
18483
 
9518
18484
for ac_func in ntp_adjtime ntp_gettime
9519
18485
do
9520
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9521
 
echo "$as_me:9521: checking for $ac_func" >&5
 
18486
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18487
echo "$as_me:$LINENO: checking for $ac_func" >&5
9522
18488
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9523
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
18489
if eval "test \"\${$as_ac_var+set}\" = set"; then
9524
18490
  echo $ECHO_N "(cached) $ECHO_C" >&6
9525
18491
else
9526
18492
  cat >conftest.$ac_ext <<_ACEOF
9527
 
#line 9527 "configure"
9528
 
#include "confdefs.h"
 
18493
/* confdefs.h.  */
 
18494
_ACEOF
 
18495
cat confdefs.h >>conftest.$ac_ext
 
18496
cat >>conftest.$ac_ext <<_ACEOF
 
18497
/* end confdefs.h.  */
 
18498
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18499
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18500
#define $ac_func innocuous_$ac_func
 
18501
 
9529
18502
/* System header to define __stub macros and hopefully few prototypes,
9530
 
    which can conflict with char $ac_func (); below.  */
9531
 
#include <assert.h>
 
18503
    which can conflict with char $ac_func (); below.
 
18504
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18505
    <limits.h> exists even on freestanding compilers.  */
 
18506
 
 
18507
#ifdef __STDC__
 
18508
# include <limits.h>
 
18509
#else
 
18510
# include <assert.h>
 
18511
#endif
 
18512
 
 
18513
#undef $ac_func
 
18514
 
9532
18515
/* Override any gcc2 internal prototype to avoid an error.  */
9533
18516
#ifdef __cplusplus
9534
18517
extern "C"
 
18518
{
9535
18519
#endif
9536
18520
/* We use char because int might match the return type of a gcc2
9537
18521
   builtin and then its argument prototype would still apply.  */
9538
18522
char $ac_func ();
9539
 
char (*f) ();
9540
 
 
9541
 
int
9542
 
main ()
9543
 
{
9544
18523
/* The GNU C library defines this for functions which it implements
9545
18524
    to always fail with ENOSYS.  Some functions are actually named
9546
18525
    something starting with __ and the normal name is an alias.  */
9547
18526
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9548
18527
choke me
9549
18528
#else
9550
 
f = $ac_func;
 
18529
char (*f) () = $ac_func;
 
18530
#endif
 
18531
#ifdef __cplusplus
 
18532
}
9551
18533
#endif
9552
18534
 
 
18535
int
 
18536
main ()
 
18537
{
 
18538
return f != $ac_func;
9553
18539
  ;
9554
18540
  return 0;
9555
18541
}
9556
18542
_ACEOF
9557
18543
rm -f conftest.$ac_objext conftest$ac_exeext
9558
 
if { (eval echo "$as_me:9558: \"$ac_link\"") >&5
9559
 
  (eval $ac_link) 2>&5
 
18544
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18545
  (eval $ac_link) 2>conftest.er1
9560
18546
  ac_status=$?
9561
 
  echo "$as_me:9561: \$? = $ac_status" >&5
 
18547
  grep -v '^ *+' conftest.er1 >conftest.err
 
18548
  rm -f conftest.er1
 
18549
  cat conftest.err >&5
 
18550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562
18551
  (exit $ac_status); } &&
9563
 
         { ac_try='test -s conftest$ac_exeext'
9564
 
  { (eval echo "$as_me:9564: \"$ac_try\"") >&5
9565
 
  (eval $ac_try) 2>&5
9566
 
  ac_status=$?
9567
 
  echo "$as_me:9567: \$? = $ac_status" >&5
 
18552
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18553
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18554
  (eval $ac_try) 2>&5
 
18555
  ac_status=$?
 
18556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18557
  (exit $ac_status); }; } &&
 
18558
         { ac_try='test -s conftest$ac_exeext'
 
18559
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18560
  (eval $ac_try) 2>&5
 
18561
  ac_status=$?
 
18562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568
18563
  (exit $ac_status); }; }; then
9569
 
  eval "$ac_ac_var=yes"
 
18564
  eval "$as_ac_var=yes"
9570
18565
else
9571
18566
  echo "$as_me: failed program was:" >&5
9572
 
cat conftest.$ac_ext >&5
9573
 
eval "$ac_ac_var=no"
9574
 
fi
9575
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9576
 
fi
9577
 
echo "$as_me:9577: result: `eval echo '${'$ac_ac_var'}'`" >&5
9578
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9579
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
9580
 
  cat >>confdefs.h <<EOF
9581
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9582
 
EOF
 
18567
sed 's/^/| /' conftest.$ac_ext >&5
 
18568
 
 
18569
eval "$as_ac_var=no"
 
18570
fi
 
18571
rm -f conftest.err conftest.$ac_objext \
 
18572
      conftest$ac_exeext conftest.$ac_ext
 
18573
fi
 
18574
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
18575
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
18576
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18577
  cat >>confdefs.h <<_ACEOF
 
18578
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18579
_ACEOF
9583
18580
 
9584
18581
fi
9585
18582
done
9587
18584
    ;;
9588
18585
esac
9589
18586
 
 
18587
 
 
18588
 
 
18589
 
 
18590
 
9590
18591
for ac_func in plock pututline pututxline readlink rtprio
9591
18592
do
9592
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9593
 
echo "$as_me:9593: checking for $ac_func" >&5
 
18593
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18594
echo "$as_me:$LINENO: checking for $ac_func" >&5
9594
18595
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9595
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
18596
if eval "test \"\${$as_ac_var+set}\" = set"; then
9596
18597
  echo $ECHO_N "(cached) $ECHO_C" >&6
9597
18598
else
9598
18599
  cat >conftest.$ac_ext <<_ACEOF
9599
 
#line 9599 "configure"
9600
 
#include "confdefs.h"
 
18600
/* confdefs.h.  */
 
18601
_ACEOF
 
18602
cat confdefs.h >>conftest.$ac_ext
 
18603
cat >>conftest.$ac_ext <<_ACEOF
 
18604
/* end confdefs.h.  */
 
18605
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18606
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18607
#define $ac_func innocuous_$ac_func
 
18608
 
9601
18609
/* System header to define __stub macros and hopefully few prototypes,
9602
 
    which can conflict with char $ac_func (); below.  */
9603
 
#include <assert.h>
 
18610
    which can conflict with char $ac_func (); below.
 
18611
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18612
    <limits.h> exists even on freestanding compilers.  */
 
18613
 
 
18614
#ifdef __STDC__
 
18615
# include <limits.h>
 
18616
#else
 
18617
# include <assert.h>
 
18618
#endif
 
18619
 
 
18620
#undef $ac_func
 
18621
 
9604
18622
/* Override any gcc2 internal prototype to avoid an error.  */
9605
18623
#ifdef __cplusplus
9606
18624
extern "C"
 
18625
{
9607
18626
#endif
9608
18627
/* We use char because int might match the return type of a gcc2
9609
18628
   builtin and then its argument prototype would still apply.  */
9610
18629
char $ac_func ();
9611
 
char (*f) ();
9612
 
 
9613
 
int
9614
 
main ()
9615
 
{
9616
18630
/* The GNU C library defines this for functions which it implements
9617
18631
    to always fail with ENOSYS.  Some functions are actually named
9618
18632
    something starting with __ and the normal name is an alias.  */
9619
18633
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9620
18634
choke me
9621
18635
#else
9622
 
f = $ac_func;
 
18636
char (*f) () = $ac_func;
 
18637
#endif
 
18638
#ifdef __cplusplus
 
18639
}
9623
18640
#endif
9624
18641
 
 
18642
int
 
18643
main ()
 
18644
{
 
18645
return f != $ac_func;
9625
18646
  ;
9626
18647
  return 0;
9627
18648
}
9628
18649
_ACEOF
9629
18650
rm -f conftest.$ac_objext conftest$ac_exeext
9630
 
if { (eval echo "$as_me:9630: \"$ac_link\"") >&5
9631
 
  (eval $ac_link) 2>&5
 
18651
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18652
  (eval $ac_link) 2>conftest.er1
9632
18653
  ac_status=$?
9633
 
  echo "$as_me:9633: \$? = $ac_status" >&5
 
18654
  grep -v '^ *+' conftest.er1 >conftest.err
 
18655
  rm -f conftest.er1
 
18656
  cat conftest.err >&5
 
18657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634
18658
  (exit $ac_status); } &&
9635
 
         { ac_try='test -s conftest$ac_exeext'
9636
 
  { (eval echo "$as_me:9636: \"$ac_try\"") >&5
9637
 
  (eval $ac_try) 2>&5
9638
 
  ac_status=$?
9639
 
  echo "$as_me:9639: \$? = $ac_status" >&5
 
18659
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18660
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18661
  (eval $ac_try) 2>&5
 
18662
  ac_status=$?
 
18663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18664
  (exit $ac_status); }; } &&
 
18665
         { ac_try='test -s conftest$ac_exeext'
 
18666
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18667
  (eval $ac_try) 2>&5
 
18668
  ac_status=$?
 
18669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640
18670
  (exit $ac_status); }; }; then
9641
 
  eval "$ac_ac_var=yes"
 
18671
  eval "$as_ac_var=yes"
9642
18672
else
9643
18673
  echo "$as_me: failed program was:" >&5
9644
 
cat conftest.$ac_ext >&5
9645
 
eval "$ac_ac_var=no"
9646
 
fi
9647
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9648
 
fi
9649
 
echo "$as_me:9649: result: `eval echo '${'$ac_ac_var'}'`" >&5
9650
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9651
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
9652
 
  cat >>confdefs.h <<EOF
9653
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9654
 
EOF
 
18674
sed 's/^/| /' conftest.$ac_ext >&5
 
18675
 
 
18676
eval "$as_ac_var=no"
 
18677
fi
 
18678
rm -f conftest.err conftest.$ac_objext \
 
18679
      conftest$ac_exeext conftest.$ac_ext
 
18680
fi
 
18681
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
18682
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
18683
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18684
  cat >>confdefs.h <<_ACEOF
 
18685
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18686
_ACEOF
9655
18687
 
9656
18688
fi
9657
18689
done
9661
18693
 *)
9662
18694
for ac_func in random
9663
18695
do
9664
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9665
 
echo "$as_me:9665: checking for $ac_func" >&5
 
18696
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18697
echo "$as_me:$LINENO: checking for $ac_func" >&5
9666
18698
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9667
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
18699
if eval "test \"\${$as_ac_var+set}\" = set"; then
9668
18700
  echo $ECHO_N "(cached) $ECHO_C" >&6
9669
18701
else
9670
18702
  cat >conftest.$ac_ext <<_ACEOF
9671
 
#line 9671 "configure"
9672
 
#include "confdefs.h"
 
18703
/* confdefs.h.  */
 
18704
_ACEOF
 
18705
cat confdefs.h >>conftest.$ac_ext
 
18706
cat >>conftest.$ac_ext <<_ACEOF
 
18707
/* end confdefs.h.  */
 
18708
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18709
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18710
#define $ac_func innocuous_$ac_func
 
18711
 
9673
18712
/* System header to define __stub macros and hopefully few prototypes,
9674
 
    which can conflict with char $ac_func (); below.  */
9675
 
#include <assert.h>
 
18713
    which can conflict with char $ac_func (); below.
 
18714
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18715
    <limits.h> exists even on freestanding compilers.  */
 
18716
 
 
18717
#ifdef __STDC__
 
18718
# include <limits.h>
 
18719
#else
 
18720
# include <assert.h>
 
18721
#endif
 
18722
 
 
18723
#undef $ac_func
 
18724
 
9676
18725
/* Override any gcc2 internal prototype to avoid an error.  */
9677
18726
#ifdef __cplusplus
9678
18727
extern "C"
 
18728
{
9679
18729
#endif
9680
18730
/* We use char because int might match the return type of a gcc2
9681
18731
   builtin and then its argument prototype would still apply.  */
9682
18732
char $ac_func ();
9683
 
char (*f) ();
9684
 
 
9685
 
int
9686
 
main ()
9687
 
{
9688
18733
/* The GNU C library defines this for functions which it implements
9689
18734
    to always fail with ENOSYS.  Some functions are actually named
9690
18735
    something starting with __ and the normal name is an alias.  */
9691
18736
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9692
18737
choke me
9693
18738
#else
9694
 
f = $ac_func;
 
18739
char (*f) () = $ac_func;
 
18740
#endif
 
18741
#ifdef __cplusplus
 
18742
}
9695
18743
#endif
9696
18744
 
 
18745
int
 
18746
main ()
 
18747
{
 
18748
return f != $ac_func;
9697
18749
  ;
9698
18750
  return 0;
9699
18751
}
9700
18752
_ACEOF
9701
18753
rm -f conftest.$ac_objext conftest$ac_exeext
9702
 
if { (eval echo "$as_me:9702: \"$ac_link\"") >&5
9703
 
  (eval $ac_link) 2>&5
 
18754
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18755
  (eval $ac_link) 2>conftest.er1
9704
18756
  ac_status=$?
9705
 
  echo "$as_me:9705: \$? = $ac_status" >&5
 
18757
  grep -v '^ *+' conftest.er1 >conftest.err
 
18758
  rm -f conftest.er1
 
18759
  cat conftest.err >&5
 
18760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706
18761
  (exit $ac_status); } &&
9707
 
         { ac_try='test -s conftest$ac_exeext'
9708
 
  { (eval echo "$as_me:9708: \"$ac_try\"") >&5
9709
 
  (eval $ac_try) 2>&5
9710
 
  ac_status=$?
9711
 
  echo "$as_me:9711: \$? = $ac_status" >&5
 
18762
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18763
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18764
  (eval $ac_try) 2>&5
 
18765
  ac_status=$?
 
18766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18767
  (exit $ac_status); }; } &&
 
18768
         { ac_try='test -s conftest$ac_exeext'
 
18769
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18770
  (eval $ac_try) 2>&5
 
18771
  ac_status=$?
 
18772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712
18773
  (exit $ac_status); }; }; then
9713
 
  eval "$ac_ac_var=yes"
 
18774
  eval "$as_ac_var=yes"
9714
18775
else
9715
18776
  echo "$as_me: failed program was:" >&5
9716
 
cat conftest.$ac_ext >&5
9717
 
eval "$ac_ac_var=no"
9718
 
fi
9719
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9720
 
fi
9721
 
echo "$as_me:9721: result: `eval echo '${'$ac_ac_var'}'`" >&5
9722
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9723
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
9724
 
  cat >>confdefs.h <<EOF
9725
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9726
 
EOF
 
18777
sed 's/^/| /' conftest.$ac_ext >&5
 
18778
 
 
18779
eval "$as_ac_var=no"
 
18780
fi
 
18781
rm -f conftest.err conftest.$ac_objext \
 
18782
      conftest$ac_exeext conftest.$ac_ext
 
18783
fi
 
18784
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
18785
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
18786
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18787
  cat >>confdefs.h <<_ACEOF
 
18788
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18789
_ACEOF
9727
18790
 
9728
18791
else
9729
 
  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
 
18792
  case $LIBOBJS in
 
18793
    "$ac_func.$ac_objext"   | \
 
18794
  *" $ac_func.$ac_objext"   | \
 
18795
    "$ac_func.$ac_objext "* | \
 
18796
  *" $ac_func.$ac_objext "* ) ;;
 
18797
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
 
18798
esac
 
18799
 
9730
18800
fi
9731
18801
done
9732
18802
 
9733
18803
 ;;
9734
18804
esac
9735
 
case "$target" in
9736
 
 *-*-aix4*)
 
18805
case "$host" in
 
18806
 *-*-aix[45]*)
9737
18807
    # Just a stub in AIX 4.  Idiots.
9738
18808
    ;;
9739
18809
 *-*-solaris2.5*)
9742
18812
 *)
9743
18813
for ac_func in sched_setscheduler
9744
18814
do
9745
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9746
 
echo "$as_me:9746: checking for $ac_func" >&5
9747
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9748
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
9749
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9750
 
else
9751
 
  cat >conftest.$ac_ext <<_ACEOF
9752
 
#line 9752 "configure"
9753
 
#include "confdefs.h"
9754
 
/* System header to define __stub macros and hopefully few prototypes,
9755
 
    which can conflict with char $ac_func (); below.  */
9756
 
#include <assert.h>
9757
 
/* Override any gcc2 internal prototype to avoid an error.  */
9758
 
#ifdef __cplusplus
9759
 
extern "C"
9760
 
#endif
9761
 
/* We use char because int might match the return type of a gcc2
9762
 
   builtin and then its argument prototype would still apply.  */
9763
 
char $ac_func ();
9764
 
char (*f) ();
9765
 
 
9766
 
int
9767
 
main ()
9768
 
{
9769
 
/* The GNU C library defines this for functions which it implements
9770
 
    to always fail with ENOSYS.  Some functions are actually named
9771
 
    something starting with __ and the normal name is an alias.  */
9772
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9773
 
choke me
9774
 
#else
9775
 
f = $ac_func;
9776
 
#endif
9777
 
 
9778
 
  ;
9779
 
  return 0;
9780
 
}
9781
 
_ACEOF
9782
 
rm -f conftest.$ac_objext conftest$ac_exeext
9783
 
if { (eval echo "$as_me:9783: \"$ac_link\"") >&5
9784
 
  (eval $ac_link) 2>&5
9785
 
  ac_status=$?
9786
 
  echo "$as_me:9786: \$? = $ac_status" >&5
9787
 
  (exit $ac_status); } &&
9788
 
         { ac_try='test -s conftest$ac_exeext'
9789
 
  { (eval echo "$as_me:9789: \"$ac_try\"") >&5
9790
 
  (eval $ac_try) 2>&5
9791
 
  ac_status=$?
9792
 
  echo "$as_me:9792: \$? = $ac_status" >&5
9793
 
  (exit $ac_status); }; }; then
9794
 
  eval "$ac_ac_var=yes"
9795
 
else
9796
 
  echo "$as_me: failed program was:" >&5
9797
 
cat conftest.$ac_ext >&5
9798
 
eval "$ac_ac_var=no"
9799
 
fi
9800
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9801
 
fi
9802
 
echo "$as_me:9802: result: `eval echo '${'$ac_ac_var'}'`" >&5
9803
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9804
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
9805
 
  cat >>confdefs.h <<EOF
9806
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9807
 
EOF
9808
 
 
9809
 
fi
9810
 
done
9811
 
 
9812
 
    ;;
9813
 
esac
9814
 
 
9815
 
for ac_func in setlinebuf
9816
 
do
9817
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9818
 
echo "$as_me:9818: checking for $ac_func" >&5
9819
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9820
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
9821
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9822
 
else
9823
 
  cat >conftest.$ac_ext <<_ACEOF
9824
 
#line 9824 "configure"
9825
 
#include "confdefs.h"
9826
 
/* System header to define __stub macros and hopefully few prototypes,
9827
 
    which can conflict with char $ac_func (); below.  */
9828
 
#include <assert.h>
9829
 
/* Override any gcc2 internal prototype to avoid an error.  */
9830
 
#ifdef __cplusplus
9831
 
extern "C"
9832
 
#endif
9833
 
/* We use char because int might match the return type of a gcc2
9834
 
   builtin and then its argument prototype would still apply.  */
9835
 
char $ac_func ();
9836
 
char (*f) ();
9837
 
 
9838
 
int
9839
 
main ()
9840
 
{
9841
 
/* The GNU C library defines this for functions which it implements
9842
 
    to always fail with ENOSYS.  Some functions are actually named
9843
 
    something starting with __ and the normal name is an alias.  */
9844
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9845
 
choke me
9846
 
#else
9847
 
f = $ac_func;
9848
 
#endif
9849
 
 
9850
 
  ;
9851
 
  return 0;
9852
 
}
9853
 
_ACEOF
9854
 
rm -f conftest.$ac_objext conftest$ac_exeext
9855
 
if { (eval echo "$as_me:9855: \"$ac_link\"") >&5
9856
 
  (eval $ac_link) 2>&5
9857
 
  ac_status=$?
9858
 
  echo "$as_me:9858: \$? = $ac_status" >&5
9859
 
  (exit $ac_status); } &&
9860
 
         { ac_try='test -s conftest$ac_exeext'
9861
 
  { (eval echo "$as_me:9861: \"$ac_try\"") >&5
9862
 
  (eval $ac_try) 2>&5
9863
 
  ac_status=$?
9864
 
  echo "$as_me:9864: \$? = $ac_status" >&5
9865
 
  (exit $ac_status); }; }; then
9866
 
  eval "$ac_ac_var=yes"
9867
 
else
9868
 
  echo "$as_me: failed program was:" >&5
9869
 
cat conftest.$ac_ext >&5
9870
 
eval "$ac_ac_var=no"
9871
 
fi
9872
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9873
 
fi
9874
 
echo "$as_me:9874: result: `eval echo '${'$ac_ac_var'}'`" >&5
9875
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9876
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
9877
 
  cat >>confdefs.h <<EOF
9878
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9879
 
EOF
9880
 
 
9881
 
fi
9882
 
done
9883
 
 
9884
 
for ac_func in setpgid setpriority setsid settimeofday setvbuf sigaction
9885
 
do
9886
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9887
 
echo "$as_me:9887: checking for $ac_func" >&5
9888
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9889
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
9890
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9891
 
else
9892
 
  cat >conftest.$ac_ext <<_ACEOF
9893
 
#line 9893 "configure"
9894
 
#include "confdefs.h"
9895
 
/* System header to define __stub macros and hopefully few prototypes,
9896
 
    which can conflict with char $ac_func (); below.  */
9897
 
#include <assert.h>
9898
 
/* Override any gcc2 internal prototype to avoid an error.  */
9899
 
#ifdef __cplusplus
9900
 
extern "C"
9901
 
#endif
9902
 
/* We use char because int might match the return type of a gcc2
9903
 
   builtin and then its argument prototype would still apply.  */
9904
 
char $ac_func ();
9905
 
char (*f) ();
9906
 
 
9907
 
int
9908
 
main ()
9909
 
{
9910
 
/* The GNU C library defines this for functions which it implements
9911
 
    to always fail with ENOSYS.  Some functions are actually named
9912
 
    something starting with __ and the normal name is an alias.  */
9913
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9914
 
choke me
9915
 
#else
9916
 
f = $ac_func;
9917
 
#endif
9918
 
 
9919
 
  ;
9920
 
  return 0;
9921
 
}
9922
 
_ACEOF
9923
 
rm -f conftest.$ac_objext conftest$ac_exeext
9924
 
if { (eval echo "$as_me:9924: \"$ac_link\"") >&5
9925
 
  (eval $ac_link) 2>&5
9926
 
  ac_status=$?
9927
 
  echo "$as_me:9927: \$? = $ac_status" >&5
9928
 
  (exit $ac_status); } &&
9929
 
         { ac_try='test -s conftest$ac_exeext'
9930
 
  { (eval echo "$as_me:9930: \"$ac_try\"") >&5
9931
 
  (eval $ac_try) 2>&5
9932
 
  ac_status=$?
9933
 
  echo "$as_me:9933: \$? = $ac_status" >&5
9934
 
  (exit $ac_status); }; }; then
9935
 
  eval "$ac_ac_var=yes"
9936
 
else
9937
 
  echo "$as_me: failed program was:" >&5
9938
 
cat conftest.$ac_ext >&5
9939
 
eval "$ac_ac_var=no"
9940
 
fi
9941
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9942
 
fi
9943
 
echo "$as_me:9943: result: `eval echo '${'$ac_ac_var'}'`" >&5
9944
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9945
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
9946
 
  cat >>confdefs.h <<EOF
9947
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9948
 
EOF
9949
 
 
9950
 
fi
9951
 
done
 
18815
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18816
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18817
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
18818
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
18819
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18820
else
 
18821
  cat >conftest.$ac_ext <<_ACEOF
 
18822
/* confdefs.h.  */
 
18823
_ACEOF
 
18824
cat confdefs.h >>conftest.$ac_ext
 
18825
cat >>conftest.$ac_ext <<_ACEOF
 
18826
/* end confdefs.h.  */
 
18827
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18828
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18829
#define $ac_func innocuous_$ac_func
 
18830
 
 
18831
/* System header to define __stub macros and hopefully few prototypes,
 
18832
    which can conflict with char $ac_func (); below.
 
18833
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18834
    <limits.h> exists even on freestanding compilers.  */
 
18835
 
 
18836
#ifdef __STDC__
 
18837
# include <limits.h>
 
18838
#else
 
18839
# include <assert.h>
 
18840
#endif
 
18841
 
 
18842
#undef $ac_func
 
18843
 
 
18844
/* Override any gcc2 internal prototype to avoid an error.  */
 
18845
#ifdef __cplusplus
 
18846
extern "C"
 
18847
{
 
18848
#endif
 
18849
/* We use char because int might match the return type of a gcc2
 
18850
   builtin and then its argument prototype would still apply.  */
 
18851
char $ac_func ();
 
18852
/* The GNU C library defines this for functions which it implements
 
18853
    to always fail with ENOSYS.  Some functions are actually named
 
18854
    something starting with __ and the normal name is an alias.  */
 
18855
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
18856
choke me
 
18857
#else
 
18858
char (*f) () = $ac_func;
 
18859
#endif
 
18860
#ifdef __cplusplus
 
18861
}
 
18862
#endif
 
18863
 
 
18864
int
 
18865
main ()
 
18866
{
 
18867
return f != $ac_func;
 
18868
  ;
 
18869
  return 0;
 
18870
}
 
18871
_ACEOF
 
18872
rm -f conftest.$ac_objext conftest$ac_exeext
 
18873
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18874
  (eval $ac_link) 2>conftest.er1
 
18875
  ac_status=$?
 
18876
  grep -v '^ *+' conftest.er1 >conftest.err
 
18877
  rm -f conftest.er1
 
18878
  cat conftest.err >&5
 
18879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18880
  (exit $ac_status); } &&
 
18881
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18882
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18883
  (eval $ac_try) 2>&5
 
18884
  ac_status=$?
 
18885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18886
  (exit $ac_status); }; } &&
 
18887
         { ac_try='test -s conftest$ac_exeext'
 
18888
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18889
  (eval $ac_try) 2>&5
 
18890
  ac_status=$?
 
18891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18892
  (exit $ac_status); }; }; then
 
18893
  eval "$as_ac_var=yes"
 
18894
else
 
18895
  echo "$as_me: failed program was:" >&5
 
18896
sed 's/^/| /' conftest.$ac_ext >&5
 
18897
 
 
18898
eval "$as_ac_var=no"
 
18899
fi
 
18900
rm -f conftest.err conftest.$ac_objext \
 
18901
      conftest$ac_exeext conftest.$ac_ext
 
18902
fi
 
18903
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
18904
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
18905
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18906
  cat >>confdefs.h <<_ACEOF
 
18907
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18908
_ACEOF
 
18909
 
 
18910
fi
 
18911
done
 
18912
 
 
18913
    ;;
 
18914
esac
 
18915
 
 
18916
 
 
18917
 
 
18918
 
 
18919
for ac_func in setlinebuf setpgid setpriority setsid
 
18920
do
 
18921
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18922
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18923
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
18924
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
18925
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18926
else
 
18927
  cat >conftest.$ac_ext <<_ACEOF
 
18928
/* confdefs.h.  */
 
18929
_ACEOF
 
18930
cat confdefs.h >>conftest.$ac_ext
 
18931
cat >>conftest.$ac_ext <<_ACEOF
 
18932
/* end confdefs.h.  */
 
18933
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18934
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18935
#define $ac_func innocuous_$ac_func
 
18936
 
 
18937
/* System header to define __stub macros and hopefully few prototypes,
 
18938
    which can conflict with char $ac_func (); below.
 
18939
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18940
    <limits.h> exists even on freestanding compilers.  */
 
18941
 
 
18942
#ifdef __STDC__
 
18943
# include <limits.h>
 
18944
#else
 
18945
# include <assert.h>
 
18946
#endif
 
18947
 
 
18948
#undef $ac_func
 
18949
 
 
18950
/* Override any gcc2 internal prototype to avoid an error.  */
 
18951
#ifdef __cplusplus
 
18952
extern "C"
 
18953
{
 
18954
#endif
 
18955
/* We use char because int might match the return type of a gcc2
 
18956
   builtin and then its argument prototype would still apply.  */
 
18957
char $ac_func ();
 
18958
/* The GNU C library defines this for functions which it implements
 
18959
    to always fail with ENOSYS.  Some functions are actually named
 
18960
    something starting with __ and the normal name is an alias.  */
 
18961
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
18962
choke me
 
18963
#else
 
18964
char (*f) () = $ac_func;
 
18965
#endif
 
18966
#ifdef __cplusplus
 
18967
}
 
18968
#endif
 
18969
 
 
18970
int
 
18971
main ()
 
18972
{
 
18973
return f != $ac_func;
 
18974
  ;
 
18975
  return 0;
 
18976
}
 
18977
_ACEOF
 
18978
rm -f conftest.$ac_objext conftest$ac_exeext
 
18979
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18980
  (eval $ac_link) 2>conftest.er1
 
18981
  ac_status=$?
 
18982
  grep -v '^ *+' conftest.er1 >conftest.err
 
18983
  rm -f conftest.er1
 
18984
  cat conftest.err >&5
 
18985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18986
  (exit $ac_status); } &&
 
18987
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18988
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18989
  (eval $ac_try) 2>&5
 
18990
  ac_status=$?
 
18991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18992
  (exit $ac_status); }; } &&
 
18993
         { ac_try='test -s conftest$ac_exeext'
 
18994
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18995
  (eval $ac_try) 2>&5
 
18996
  ac_status=$?
 
18997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18998
  (exit $ac_status); }; }; then
 
18999
  eval "$as_ac_var=yes"
 
19000
else
 
19001
  echo "$as_me: failed program was:" >&5
 
19002
sed 's/^/| /' conftest.$ac_ext >&5
 
19003
 
 
19004
eval "$as_ac_var=no"
 
19005
fi
 
19006
rm -f conftest.err conftest.$ac_objext \
 
19007
      conftest$ac_exeext conftest.$ac_ext
 
19008
fi
 
19009
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
19010
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19011
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19012
  cat >>confdefs.h <<_ACEOF
 
19013
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19014
_ACEOF
 
19015
 
 
19016
fi
 
19017
done
 
19018
 
 
19019
 
 
19020
for ac_func in setrlimit
 
19021
do
 
19022
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19023
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19024
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
19025
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
19026
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19027
else
 
19028
  cat >conftest.$ac_ext <<_ACEOF
 
19029
/* confdefs.h.  */
 
19030
_ACEOF
 
19031
cat confdefs.h >>conftest.$ac_ext
 
19032
cat >>conftest.$ac_ext <<_ACEOF
 
19033
/* end confdefs.h.  */
 
19034
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19035
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19036
#define $ac_func innocuous_$ac_func
 
19037
 
 
19038
/* System header to define __stub macros and hopefully few prototypes,
 
19039
    which can conflict with char $ac_func (); below.
 
19040
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19041
    <limits.h> exists even on freestanding compilers.  */
 
19042
 
 
19043
#ifdef __STDC__
 
19044
# include <limits.h>
 
19045
#else
 
19046
# include <assert.h>
 
19047
#endif
 
19048
 
 
19049
#undef $ac_func
 
19050
 
 
19051
/* Override any gcc2 internal prototype to avoid an error.  */
 
19052
#ifdef __cplusplus
 
19053
extern "C"
 
19054
{
 
19055
#endif
 
19056
/* We use char because int might match the return type of a gcc2
 
19057
   builtin and then its argument prototype would still apply.  */
 
19058
char $ac_func ();
 
19059
/* The GNU C library defines this for functions which it implements
 
19060
    to always fail with ENOSYS.  Some functions are actually named
 
19061
    something starting with __ and the normal name is an alias.  */
 
19062
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
19063
choke me
 
19064
#else
 
19065
char (*f) () = $ac_func;
 
19066
#endif
 
19067
#ifdef __cplusplus
 
19068
}
 
19069
#endif
 
19070
 
 
19071
int
 
19072
main ()
 
19073
{
 
19074
return f != $ac_func;
 
19075
  ;
 
19076
  return 0;
 
19077
}
 
19078
_ACEOF
 
19079
rm -f conftest.$ac_objext conftest$ac_exeext
 
19080
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19081
  (eval $ac_link) 2>conftest.er1
 
19082
  ac_status=$?
 
19083
  grep -v '^ *+' conftest.er1 >conftest.err
 
19084
  rm -f conftest.er1
 
19085
  cat conftest.err >&5
 
19086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19087
  (exit $ac_status); } &&
 
19088
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19089
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19090
  (eval $ac_try) 2>&5
 
19091
  ac_status=$?
 
19092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19093
  (exit $ac_status); }; } &&
 
19094
         { ac_try='test -s conftest$ac_exeext'
 
19095
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19096
  (eval $ac_try) 2>&5
 
19097
  ac_status=$?
 
19098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19099
  (exit $ac_status); }; }; then
 
19100
  eval "$as_ac_var=yes"
 
19101
else
 
19102
  echo "$as_me: failed program was:" >&5
 
19103
sed 's/^/| /' conftest.$ac_ext >&5
 
19104
 
 
19105
eval "$as_ac_var=no"
 
19106
fi
 
19107
rm -f conftest.err conftest.$ac_objext \
 
19108
      conftest$ac_exeext conftest.$ac_ext
 
19109
fi
 
19110
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
19111
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19112
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19113
  cat >>confdefs.h <<_ACEOF
 
19114
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19115
_ACEOF
 
19116
 
 
19117
fi
 
19118
done
 
19119
 
 
19120
 
 
19121
for ac_func in settimeofday
 
19122
do
 
19123
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19124
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19125
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
19126
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
19127
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19128
else
 
19129
  cat >conftest.$ac_ext <<_ACEOF
 
19130
/* confdefs.h.  */
 
19131
_ACEOF
 
19132
cat confdefs.h >>conftest.$ac_ext
 
19133
cat >>conftest.$ac_ext <<_ACEOF
 
19134
/* end confdefs.h.  */
 
19135
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19136
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19137
#define $ac_func innocuous_$ac_func
 
19138
 
 
19139
/* System header to define __stub macros and hopefully few prototypes,
 
19140
    which can conflict with char $ac_func (); below.
 
19141
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19142
    <limits.h> exists even on freestanding compilers.  */
 
19143
 
 
19144
#ifdef __STDC__
 
19145
# include <limits.h>
 
19146
#else
 
19147
# include <assert.h>
 
19148
#endif
 
19149
 
 
19150
#undef $ac_func
 
19151
 
 
19152
/* Override any gcc2 internal prototype to avoid an error.  */
 
19153
#ifdef __cplusplus
 
19154
extern "C"
 
19155
{
 
19156
#endif
 
19157
/* We use char because int might match the return type of a gcc2
 
19158
   builtin and then its argument prototype would still apply.  */
 
19159
char $ac_func ();
 
19160
/* The GNU C library defines this for functions which it implements
 
19161
    to always fail with ENOSYS.  Some functions are actually named
 
19162
    something starting with __ and the normal name is an alias.  */
 
19163
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
19164
choke me
 
19165
#else
 
19166
char (*f) () = $ac_func;
 
19167
#endif
 
19168
#ifdef __cplusplus
 
19169
}
 
19170
#endif
 
19171
 
 
19172
int
 
19173
main ()
 
19174
{
 
19175
return f != $ac_func;
 
19176
  ;
 
19177
  return 0;
 
19178
}
 
19179
_ACEOF
 
19180
rm -f conftest.$ac_objext conftest$ac_exeext
 
19181
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19182
  (eval $ac_link) 2>conftest.er1
 
19183
  ac_status=$?
 
19184
  grep -v '^ *+' conftest.er1 >conftest.err
 
19185
  rm -f conftest.er1
 
19186
  cat conftest.err >&5
 
19187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19188
  (exit $ac_status); } &&
 
19189
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19190
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19191
  (eval $ac_try) 2>&5
 
19192
  ac_status=$?
 
19193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19194
  (exit $ac_status); }; } &&
 
19195
         { ac_try='test -s conftest$ac_exeext'
 
19196
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19197
  (eval $ac_try) 2>&5
 
19198
  ac_status=$?
 
19199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19200
  (exit $ac_status); }; }; then
 
19201
  eval "$as_ac_var=yes"
 
19202
else
 
19203
  echo "$as_me: failed program was:" >&5
 
19204
sed 's/^/| /' conftest.$ac_ext >&5
 
19205
 
 
19206
eval "$as_ac_var=no"
 
19207
fi
 
19208
rm -f conftest.err conftest.$ac_objext \
 
19209
      conftest$ac_exeext conftest.$ac_ext
 
19210
fi
 
19211
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
19212
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19213
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19214
  cat >>confdefs.h <<_ACEOF
 
19215
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19216
_ACEOF
 
19217
 
 
19218
else
 
19219
 
 
19220
case "$host" in
 
19221
  *-*-mpeix*) ac_cv_func_settimeofday=yes
 
19222
    ;;
 
19223
esac
 
19224
fi
 
19225
done
 
19226
 
 
19227
 
 
19228
 
 
19229
for ac_func in setvbuf sigaction
 
19230
do
 
19231
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19232
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19233
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
19234
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
19235
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19236
else
 
19237
  cat >conftest.$ac_ext <<_ACEOF
 
19238
/* confdefs.h.  */
 
19239
_ACEOF
 
19240
cat confdefs.h >>conftest.$ac_ext
 
19241
cat >>conftest.$ac_ext <<_ACEOF
 
19242
/* end confdefs.h.  */
 
19243
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19244
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19245
#define $ac_func innocuous_$ac_func
 
19246
 
 
19247
/* System header to define __stub macros and hopefully few prototypes,
 
19248
    which can conflict with char $ac_func (); below.
 
19249
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19250
    <limits.h> exists even on freestanding compilers.  */
 
19251
 
 
19252
#ifdef __STDC__
 
19253
# include <limits.h>
 
19254
#else
 
19255
# include <assert.h>
 
19256
#endif
 
19257
 
 
19258
#undef $ac_func
 
19259
 
 
19260
/* Override any gcc2 internal prototype to avoid an error.  */
 
19261
#ifdef __cplusplus
 
19262
extern "C"
 
19263
{
 
19264
#endif
 
19265
/* We use char because int might match the return type of a gcc2
 
19266
   builtin and then its argument prototype would still apply.  */
 
19267
char $ac_func ();
 
19268
/* The GNU C library defines this for functions which it implements
 
19269
    to always fail with ENOSYS.  Some functions are actually named
 
19270
    something starting with __ and the normal name is an alias.  */
 
19271
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
19272
choke me
 
19273
#else
 
19274
char (*f) () = $ac_func;
 
19275
#endif
 
19276
#ifdef __cplusplus
 
19277
}
 
19278
#endif
 
19279
 
 
19280
int
 
19281
main ()
 
19282
{
 
19283
return f != $ac_func;
 
19284
  ;
 
19285
  return 0;
 
19286
}
 
19287
_ACEOF
 
19288
rm -f conftest.$ac_objext conftest$ac_exeext
 
19289
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19290
  (eval $ac_link) 2>conftest.er1
 
19291
  ac_status=$?
 
19292
  grep -v '^ *+' conftest.er1 >conftest.err
 
19293
  rm -f conftest.er1
 
19294
  cat conftest.err >&5
 
19295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19296
  (exit $ac_status); } &&
 
19297
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19299
  (eval $ac_try) 2>&5
 
19300
  ac_status=$?
 
19301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19302
  (exit $ac_status); }; } &&
 
19303
         { ac_try='test -s conftest$ac_exeext'
 
19304
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19305
  (eval $ac_try) 2>&5
 
19306
  ac_status=$?
 
19307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19308
  (exit $ac_status); }; }; then
 
19309
  eval "$as_ac_var=yes"
 
19310
else
 
19311
  echo "$as_me: failed program was:" >&5
 
19312
sed 's/^/| /' conftest.$ac_ext >&5
 
19313
 
 
19314
eval "$as_ac_var=no"
 
19315
fi
 
19316
rm -f conftest.err conftest.$ac_objext \
 
19317
      conftest$ac_exeext conftest.$ac_ext
 
19318
fi
 
19319
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
19320
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19321
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19322
  cat >>confdefs.h <<_ACEOF
 
19323
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19324
_ACEOF
 
19325
 
 
19326
fi
 
19327
done
 
19328
 
 
19329
 
 
19330
 
 
19331
 
 
19332
 
 
19333
 
 
19334
 
9952
19335
 
9953
19336
for ac_func in sigvec sigset sigsuspend stime strchr sysconf sysctl
9954
19337
do
9955
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9956
 
echo "$as_me:9956: checking for $ac_func" >&5
9957
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9958
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
9959
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9960
 
else
9961
 
  cat >conftest.$ac_ext <<_ACEOF
9962
 
#line 9962 "configure"
9963
 
#include "confdefs.h"
9964
 
/* System header to define __stub macros and hopefully few prototypes,
9965
 
    which can conflict with char $ac_func (); below.  */
9966
 
#include <assert.h>
9967
 
/* Override any gcc2 internal prototype to avoid an error.  */
9968
 
#ifdef __cplusplus
9969
 
extern "C"
9970
 
#endif
9971
 
/* We use char because int might match the return type of a gcc2
9972
 
   builtin and then its argument prototype would still apply.  */
9973
 
char $ac_func ();
9974
 
char (*f) ();
9975
 
 
9976
 
int
9977
 
main ()
9978
 
{
9979
 
/* The GNU C library defines this for functions which it implements
9980
 
    to always fail with ENOSYS.  Some functions are actually named
9981
 
    something starting with __ and the normal name is an alias.  */
9982
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9983
 
choke me
9984
 
#else
9985
 
f = $ac_func;
9986
 
#endif
9987
 
 
9988
 
  ;
9989
 
  return 0;
9990
 
}
9991
 
_ACEOF
9992
 
rm -f conftest.$ac_objext conftest$ac_exeext
9993
 
if { (eval echo "$as_me:9993: \"$ac_link\"") >&5
9994
 
  (eval $ac_link) 2>&5
9995
 
  ac_status=$?
9996
 
  echo "$as_me:9996: \$? = $ac_status" >&5
9997
 
  (exit $ac_status); } &&
9998
 
         { ac_try='test -s conftest$ac_exeext'
9999
 
  { (eval echo "$as_me:9999: \"$ac_try\"") >&5
10000
 
  (eval $ac_try) 2>&5
10001
 
  ac_status=$?
10002
 
  echo "$as_me:10002: \$? = $ac_status" >&5
10003
 
  (exit $ac_status); }; }; then
10004
 
  eval "$ac_ac_var=yes"
10005
 
else
10006
 
  echo "$as_me: failed program was:" >&5
10007
 
cat conftest.$ac_ext >&5
10008
 
eval "$ac_ac_var=no"
10009
 
fi
10010
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10011
 
fi
10012
 
echo "$as_me:10012: result: `eval echo '${'$ac_ac_var'}'`" >&5
10013
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
10014
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
10015
 
  cat >>confdefs.h <<EOF
10016
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10017
 
EOF
10018
 
 
10019
 
fi
10020
 
done
10021
 
 
10022
 
for ac_func in snprintf strdup strerror
10023
 
do
10024
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10025
 
echo "$as_me:10025: checking for $ac_func" >&5
10026
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10027
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
10028
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10029
 
else
10030
 
  cat >conftest.$ac_ext <<_ACEOF
10031
 
#line 10031 "configure"
10032
 
#include "confdefs.h"
10033
 
/* System header to define __stub macros and hopefully few prototypes,
10034
 
    which can conflict with char $ac_func (); below.  */
10035
 
#include <assert.h>
10036
 
/* Override any gcc2 internal prototype to avoid an error.  */
10037
 
#ifdef __cplusplus
10038
 
extern "C"
10039
 
#endif
10040
 
/* We use char because int might match the return type of a gcc2
10041
 
   builtin and then its argument prototype would still apply.  */
10042
 
char $ac_func ();
10043
 
char (*f) ();
10044
 
 
10045
 
int
10046
 
main ()
10047
 
{
10048
 
/* The GNU C library defines this for functions which it implements
10049
 
    to always fail with ENOSYS.  Some functions are actually named
10050
 
    something starting with __ and the normal name is an alias.  */
10051
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10052
 
choke me
10053
 
#else
10054
 
f = $ac_func;
10055
 
#endif
10056
 
 
10057
 
  ;
10058
 
  return 0;
10059
 
}
10060
 
_ACEOF
10061
 
rm -f conftest.$ac_objext conftest$ac_exeext
10062
 
if { (eval echo "$as_me:10062: \"$ac_link\"") >&5
10063
 
  (eval $ac_link) 2>&5
10064
 
  ac_status=$?
10065
 
  echo "$as_me:10065: \$? = $ac_status" >&5
10066
 
  (exit $ac_status); } &&
10067
 
         { ac_try='test -s conftest$ac_exeext'
10068
 
  { (eval echo "$as_me:10068: \"$ac_try\"") >&5
10069
 
  (eval $ac_try) 2>&5
10070
 
  ac_status=$?
10071
 
  echo "$as_me:10071: \$? = $ac_status" >&5
10072
 
  (exit $ac_status); }; }; then
10073
 
  eval "$ac_ac_var=yes"
10074
 
else
10075
 
  echo "$as_me: failed program was:" >&5
10076
 
cat conftest.$ac_ext >&5
10077
 
eval "$ac_ac_var=no"
10078
 
fi
10079
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10080
 
fi
10081
 
echo "$as_me:10081: result: `eval echo '${'$ac_ac_var'}'`" >&5
10082
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
10083
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
10084
 
  cat >>confdefs.h <<EOF
10085
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10086
 
EOF
10087
 
 
10088
 
else
10089
 
  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10090
 
fi
10091
 
done
10092
 
 
10093
 
case "$target" in
10094
 
 *-*-aix4*)
10095
 
    # Just stubs.  Idiots.
10096
 
    ;;
10097
 
 *-*-netbsd*)
 
19338
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19339
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19340
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
19341
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
19342
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19343
else
 
19344
  cat >conftest.$ac_ext <<_ACEOF
 
19345
/* confdefs.h.  */
 
19346
_ACEOF
 
19347
cat confdefs.h >>conftest.$ac_ext
 
19348
cat >>conftest.$ac_ext <<_ACEOF
 
19349
/* end confdefs.h.  */
 
19350
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19351
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19352
#define $ac_func innocuous_$ac_func
 
19353
 
 
19354
/* System header to define __stub macros and hopefully few prototypes,
 
19355
    which can conflict with char $ac_func (); below.
 
19356
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19357
    <limits.h> exists even on freestanding compilers.  */
 
19358
 
 
19359
#ifdef __STDC__
 
19360
# include <limits.h>
 
19361
#else
 
19362
# include <assert.h>
 
19363
#endif
 
19364
 
 
19365
#undef $ac_func
 
19366
 
 
19367
/* Override any gcc2 internal prototype to avoid an error.  */
 
19368
#ifdef __cplusplus
 
19369
extern "C"
 
19370
{
 
19371
#endif
 
19372
/* We use char because int might match the return type of a gcc2
 
19373
   builtin and then its argument prototype would still apply.  */
 
19374
char $ac_func ();
 
19375
/* The GNU C library defines this for functions which it implements
 
19376
    to always fail with ENOSYS.  Some functions are actually named
 
19377
    something starting with __ and the normal name is an alias.  */
 
19378
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
19379
choke me
 
19380
#else
 
19381
char (*f) () = $ac_func;
 
19382
#endif
 
19383
#ifdef __cplusplus
 
19384
}
 
19385
#endif
 
19386
 
 
19387
int
 
19388
main ()
 
19389
{
 
19390
return f != $ac_func;
 
19391
  ;
 
19392
  return 0;
 
19393
}
 
19394
_ACEOF
 
19395
rm -f conftest.$ac_objext conftest$ac_exeext
 
19396
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19397
  (eval $ac_link) 2>conftest.er1
 
19398
  ac_status=$?
 
19399
  grep -v '^ *+' conftest.er1 >conftest.err
 
19400
  rm -f conftest.er1
 
19401
  cat conftest.err >&5
 
19402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19403
  (exit $ac_status); } &&
 
19404
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19405
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19406
  (eval $ac_try) 2>&5
 
19407
  ac_status=$?
 
19408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19409
  (exit $ac_status); }; } &&
 
19410
         { ac_try='test -s conftest$ac_exeext'
 
19411
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19412
  (eval $ac_try) 2>&5
 
19413
  ac_status=$?
 
19414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19415
  (exit $ac_status); }; }; then
 
19416
  eval "$as_ac_var=yes"
 
19417
else
 
19418
  echo "$as_me: failed program was:" >&5
 
19419
sed 's/^/| /' conftest.$ac_ext >&5
 
19420
 
 
19421
eval "$as_ac_var=no"
 
19422
fi
 
19423
rm -f conftest.err conftest.$ac_objext \
 
19424
      conftest$ac_exeext conftest.$ac_ext
 
19425
fi
 
19426
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
19427
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19428
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19429
  cat >>confdefs.h <<_ACEOF
 
19430
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19431
_ACEOF
 
19432
 
 
19433
fi
 
19434
done
 
19435
 
 
19436
 
 
19437
 
 
19438
 
 
19439
 
 
19440
for ac_func in snprintf strdup strerror strstr
 
19441
do
 
19442
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19443
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19444
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
19445
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
19446
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19447
else
 
19448
  cat >conftest.$ac_ext <<_ACEOF
 
19449
/* confdefs.h.  */
 
19450
_ACEOF
 
19451
cat confdefs.h >>conftest.$ac_ext
 
19452
cat >>conftest.$ac_ext <<_ACEOF
 
19453
/* end confdefs.h.  */
 
19454
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19455
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19456
#define $ac_func innocuous_$ac_func
 
19457
 
 
19458
/* System header to define __stub macros and hopefully few prototypes,
 
19459
    which can conflict with char $ac_func (); below.
 
19460
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19461
    <limits.h> exists even on freestanding compilers.  */
 
19462
 
 
19463
#ifdef __STDC__
 
19464
# include <limits.h>
 
19465
#else
 
19466
# include <assert.h>
 
19467
#endif
 
19468
 
 
19469
#undef $ac_func
 
19470
 
 
19471
/* Override any gcc2 internal prototype to avoid an error.  */
 
19472
#ifdef __cplusplus
 
19473
extern "C"
 
19474
{
 
19475
#endif
 
19476
/* We use char because int might match the return type of a gcc2
 
19477
   builtin and then its argument prototype would still apply.  */
 
19478
char $ac_func ();
 
19479
/* The GNU C library defines this for functions which it implements
 
19480
    to always fail with ENOSYS.  Some functions are actually named
 
19481
    something starting with __ and the normal name is an alias.  */
 
19482
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
19483
choke me
 
19484
#else
 
19485
char (*f) () = $ac_func;
 
19486
#endif
 
19487
#ifdef __cplusplus
 
19488
}
 
19489
#endif
 
19490
 
 
19491
int
 
19492
main ()
 
19493
{
 
19494
return f != $ac_func;
 
19495
  ;
 
19496
  return 0;
 
19497
}
 
19498
_ACEOF
 
19499
rm -f conftest.$ac_objext conftest$ac_exeext
 
19500
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19501
  (eval $ac_link) 2>conftest.er1
 
19502
  ac_status=$?
 
19503
  grep -v '^ *+' conftest.er1 >conftest.err
 
19504
  rm -f conftest.er1
 
19505
  cat conftest.err >&5
 
19506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19507
  (exit $ac_status); } &&
 
19508
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19509
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19510
  (eval $ac_try) 2>&5
 
19511
  ac_status=$?
 
19512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19513
  (exit $ac_status); }; } &&
 
19514
         { ac_try='test -s conftest$ac_exeext'
 
19515
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19516
  (eval $ac_try) 2>&5
 
19517
  ac_status=$?
 
19518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19519
  (exit $ac_status); }; }; then
 
19520
  eval "$as_ac_var=yes"
 
19521
else
 
19522
  echo "$as_me: failed program was:" >&5
 
19523
sed 's/^/| /' conftest.$ac_ext >&5
 
19524
 
 
19525
eval "$as_ac_var=no"
 
19526
fi
 
19527
rm -f conftest.err conftest.$ac_objext \
 
19528
      conftest$ac_exeext conftest.$ac_ext
 
19529
fi
 
19530
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
19531
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19532
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19533
  cat >>confdefs.h <<_ACEOF
 
19534
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19535
_ACEOF
 
19536
 
 
19537
fi
 
19538
done
 
19539
 
 
19540
 
 
19541
for ac_func in timegm
 
19542
do
 
19543
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19544
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19545
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
19546
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
19547
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19548
else
 
19549
  cat >conftest.$ac_ext <<_ACEOF
 
19550
/* confdefs.h.  */
 
19551
_ACEOF
 
19552
cat confdefs.h >>conftest.$ac_ext
 
19553
cat >>conftest.$ac_ext <<_ACEOF
 
19554
/* end confdefs.h.  */
 
19555
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19556
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19557
#define $ac_func innocuous_$ac_func
 
19558
 
 
19559
/* System header to define __stub macros and hopefully few prototypes,
 
19560
    which can conflict with char $ac_func (); below.
 
19561
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19562
    <limits.h> exists even on freestanding compilers.  */
 
19563
 
 
19564
#ifdef __STDC__
 
19565
# include <limits.h>
 
19566
#else
 
19567
# include <assert.h>
 
19568
#endif
 
19569
 
 
19570
#undef $ac_func
 
19571
 
 
19572
/* Override any gcc2 internal prototype to avoid an error.  */
 
19573
#ifdef __cplusplus
 
19574
extern "C"
 
19575
{
 
19576
#endif
 
19577
/* We use char because int might match the return type of a gcc2
 
19578
   builtin and then its argument prototype would still apply.  */
 
19579
char $ac_func ();
 
19580
/* The GNU C library defines this for functions which it implements
 
19581
    to always fail with ENOSYS.  Some functions are actually named
 
19582
    something starting with __ and the normal name is an alias.  */
 
19583
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
19584
choke me
 
19585
#else
 
19586
char (*f) () = $ac_func;
 
19587
#endif
 
19588
#ifdef __cplusplus
 
19589
}
 
19590
#endif
 
19591
 
 
19592
int
 
19593
main ()
 
19594
{
 
19595
return f != $ac_func;
 
19596
  ;
 
19597
  return 0;
 
19598
}
 
19599
_ACEOF
 
19600
rm -f conftest.$ac_objext conftest$ac_exeext
 
19601
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19602
  (eval $ac_link) 2>conftest.er1
 
19603
  ac_status=$?
 
19604
  grep -v '^ *+' conftest.er1 >conftest.err
 
19605
  rm -f conftest.er1
 
19606
  cat conftest.err >&5
 
19607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19608
  (exit $ac_status); } &&
 
19609
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19610
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19611
  (eval $ac_try) 2>&5
 
19612
  ac_status=$?
 
19613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19614
  (exit $ac_status); }; } &&
 
19615
         { ac_try='test -s conftest$ac_exeext'
 
19616
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19617
  (eval $ac_try) 2>&5
 
19618
  ac_status=$?
 
19619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19620
  (exit $ac_status); }; }; then
 
19621
  eval "$as_ac_var=yes"
 
19622
else
 
19623
  echo "$as_me: failed program was:" >&5
 
19624
sed 's/^/| /' conftest.$ac_ext >&5
 
19625
 
 
19626
eval "$as_ac_var=no"
 
19627
fi
 
19628
rm -f conftest.err conftest.$ac_objext \
 
19629
      conftest$ac_exeext conftest.$ac_ext
 
19630
fi
 
19631
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
19632
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19633
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19634
  cat >>confdefs.h <<_ACEOF
 
19635
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19636
_ACEOF
 
19637
 
 
19638
fi
 
19639
done
 
19640
 
 
19641
case "$host" in
 
19642
 *-*-aix[45]*)
 
19643
    # Just stubs.  Idiots.
 
19644
    ;;
 
19645
 *-*-netbsd1*)
 
19646
    # Just stubs.  Idiots.
 
19647
    ;;
 
19648
 *-*-netbsdelf1*)
10098
19649
    # Just stubs.  Idiots.
10099
19650
    ;;
10100
19651
 *-*-openbsd*)
10104
19655
 
10105
19656
for ac_func in timer_create timer_settime
10106
19657
do
10107
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10108
 
echo "$as_me:10108: checking for $ac_func" >&5
 
19658
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19659
echo "$as_me:$LINENO: checking for $ac_func" >&5
10109
19660
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10110
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
19661
if eval "test \"\${$as_ac_var+set}\" = set"; then
10111
19662
  echo $ECHO_N "(cached) $ECHO_C" >&6
10112
19663
else
10113
19664
  cat >conftest.$ac_ext <<_ACEOF
10114
 
#line 10114 "configure"
10115
 
#include "confdefs.h"
 
19665
/* confdefs.h.  */
 
19666
_ACEOF
 
19667
cat confdefs.h >>conftest.$ac_ext
 
19668
cat >>conftest.$ac_ext <<_ACEOF
 
19669
/* end confdefs.h.  */
 
19670
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19671
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19672
#define $ac_func innocuous_$ac_func
 
19673
 
10116
19674
/* System header to define __stub macros and hopefully few prototypes,
10117
 
    which can conflict with char $ac_func (); below.  */
10118
 
#include <assert.h>
 
19675
    which can conflict with char $ac_func (); below.
 
19676
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19677
    <limits.h> exists even on freestanding compilers.  */
 
19678
 
 
19679
#ifdef __STDC__
 
19680
# include <limits.h>
 
19681
#else
 
19682
# include <assert.h>
 
19683
#endif
 
19684
 
 
19685
#undef $ac_func
 
19686
 
10119
19687
/* Override any gcc2 internal prototype to avoid an error.  */
10120
19688
#ifdef __cplusplus
10121
19689
extern "C"
 
19690
{
10122
19691
#endif
10123
19692
/* We use char because int might match the return type of a gcc2
10124
19693
   builtin and then its argument prototype would still apply.  */
10125
19694
char $ac_func ();
10126
 
char (*f) ();
10127
 
 
10128
 
int
10129
 
main ()
10130
 
{
10131
19695
/* The GNU C library defines this for functions which it implements
10132
19696
    to always fail with ENOSYS.  Some functions are actually named
10133
19697
    something starting with __ and the normal name is an alias.  */
10134
19698
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10135
19699
choke me
10136
19700
#else
10137
 
f = $ac_func;
 
19701
char (*f) () = $ac_func;
 
19702
#endif
 
19703
#ifdef __cplusplus
 
19704
}
10138
19705
#endif
10139
19706
 
 
19707
int
 
19708
main ()
 
19709
{
 
19710
return f != $ac_func;
10140
19711
  ;
10141
19712
  return 0;
10142
19713
}
10143
19714
_ACEOF
10144
19715
rm -f conftest.$ac_objext conftest$ac_exeext
10145
 
if { (eval echo "$as_me:10145: \"$ac_link\"") >&5
10146
 
  (eval $ac_link) 2>&5
 
19716
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19717
  (eval $ac_link) 2>conftest.er1
10147
19718
  ac_status=$?
10148
 
  echo "$as_me:10148: \$? = $ac_status" >&5
 
19719
  grep -v '^ *+' conftest.er1 >conftest.err
 
19720
  rm -f conftest.er1
 
19721
  cat conftest.err >&5
 
19722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149
19723
  (exit $ac_status); } &&
10150
 
         { ac_try='test -s conftest$ac_exeext'
10151
 
  { (eval echo "$as_me:10151: \"$ac_try\"") >&5
10152
 
  (eval $ac_try) 2>&5
10153
 
  ac_status=$?
10154
 
  echo "$as_me:10154: \$? = $ac_status" >&5
 
19724
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19725
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19726
  (eval $ac_try) 2>&5
 
19727
  ac_status=$?
 
19728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19729
  (exit $ac_status); }; } &&
 
19730
         { ac_try='test -s conftest$ac_exeext'
 
19731
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19732
  (eval $ac_try) 2>&5
 
19733
  ac_status=$?
 
19734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155
19735
  (exit $ac_status); }; }; then
10156
 
  eval "$ac_ac_var=yes"
 
19736
  eval "$as_ac_var=yes"
10157
19737
else
10158
19738
  echo "$as_me: failed program was:" >&5
10159
 
cat conftest.$ac_ext >&5
10160
 
eval "$ac_ac_var=no"
10161
 
fi
10162
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10163
 
fi
10164
 
echo "$as_me:10164: result: `eval echo '${'$ac_ac_var'}'`" >&5
10165
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
10166
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
10167
 
  cat >>confdefs.h <<EOF
10168
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10169
 
EOF
 
19739
sed 's/^/| /' conftest.$ac_ext >&5
 
19740
 
 
19741
eval "$as_ac_var=no"
 
19742
fi
 
19743
rm -f conftest.err conftest.$ac_objext \
 
19744
      conftest$ac_exeext conftest.$ac_ext
 
19745
fi
 
19746
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
19747
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19748
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19749
  cat >>confdefs.h <<_ACEOF
 
19750
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19751
_ACEOF
10170
19752
 
10171
19753
fi
10172
19754
done
10173
19755
 
10174
19756
    ;;
10175
19757
esac
10176
 
case "$target" in
 
19758
case "$host" in
10177
19759
 *-pc-cygwin*)
10178
19760
    # I have no idea...
10179
19761
    ;;
10180
19762
 *)
10181
19763
for ac_func in umask
10182
19764
do
10183
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10184
 
echo "$as_me:10184: checking for $ac_func" >&5
 
19765
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19766
echo "$as_me:$LINENO: checking for $ac_func" >&5
10185
19767
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10186
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
19768
if eval "test \"\${$as_ac_var+set}\" = set"; then
10187
19769
  echo $ECHO_N "(cached) $ECHO_C" >&6
10188
19770
else
10189
19771
  cat >conftest.$ac_ext <<_ACEOF
10190
 
#line 10190 "configure"
10191
 
#include "confdefs.h"
 
19772
/* confdefs.h.  */
 
19773
_ACEOF
 
19774
cat confdefs.h >>conftest.$ac_ext
 
19775
cat >>conftest.$ac_ext <<_ACEOF
 
19776
/* end confdefs.h.  */
 
19777
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19778
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19779
#define $ac_func innocuous_$ac_func
 
19780
 
10192
19781
/* System header to define __stub macros and hopefully few prototypes,
10193
 
    which can conflict with char $ac_func (); below.  */
10194
 
#include <assert.h>
 
19782
    which can conflict with char $ac_func (); below.
 
19783
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19784
    <limits.h> exists even on freestanding compilers.  */
 
19785
 
 
19786
#ifdef __STDC__
 
19787
# include <limits.h>
 
19788
#else
 
19789
# include <assert.h>
 
19790
#endif
 
19791
 
 
19792
#undef $ac_func
 
19793
 
10195
19794
/* Override any gcc2 internal prototype to avoid an error.  */
10196
19795
#ifdef __cplusplus
10197
19796
extern "C"
 
19797
{
10198
19798
#endif
10199
19799
/* We use char because int might match the return type of a gcc2
10200
19800
   builtin and then its argument prototype would still apply.  */
10201
19801
char $ac_func ();
10202
 
char (*f) ();
10203
 
 
10204
 
int
10205
 
main ()
10206
 
{
10207
19802
/* The GNU C library defines this for functions which it implements
10208
19803
    to always fail with ENOSYS.  Some functions are actually named
10209
19804
    something starting with __ and the normal name is an alias.  */
10210
19805
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10211
19806
choke me
10212
19807
#else
10213
 
f = $ac_func;
 
19808
char (*f) () = $ac_func;
 
19809
#endif
 
19810
#ifdef __cplusplus
 
19811
}
10214
19812
#endif
10215
19813
 
 
19814
int
 
19815
main ()
 
19816
{
 
19817
return f != $ac_func;
10216
19818
  ;
10217
19819
  return 0;
10218
19820
}
10219
19821
_ACEOF
10220
19822
rm -f conftest.$ac_objext conftest$ac_exeext
10221
 
if { (eval echo "$as_me:10221: \"$ac_link\"") >&5
10222
 
  (eval $ac_link) 2>&5
 
19823
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19824
  (eval $ac_link) 2>conftest.er1
10223
19825
  ac_status=$?
10224
 
  echo "$as_me:10224: \$? = $ac_status" >&5
 
19826
  grep -v '^ *+' conftest.er1 >conftest.err
 
19827
  rm -f conftest.er1
 
19828
  cat conftest.err >&5
 
19829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225
19830
  (exit $ac_status); } &&
10226
 
         { ac_try='test -s conftest$ac_exeext'
10227
 
  { (eval echo "$as_me:10227: \"$ac_try\"") >&5
10228
 
  (eval $ac_try) 2>&5
10229
 
  ac_status=$?
10230
 
  echo "$as_me:10230: \$? = $ac_status" >&5
 
19831
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19832
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19833
  (eval $ac_try) 2>&5
 
19834
  ac_status=$?
 
19835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19836
  (exit $ac_status); }; } &&
 
19837
         { ac_try='test -s conftest$ac_exeext'
 
19838
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19839
  (eval $ac_try) 2>&5
 
19840
  ac_status=$?
 
19841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231
19842
  (exit $ac_status); }; }; then
10232
 
  eval "$ac_ac_var=yes"
 
19843
  eval "$as_ac_var=yes"
10233
19844
else
10234
19845
  echo "$as_me: failed program was:" >&5
10235
 
cat conftest.$ac_ext >&5
10236
 
eval "$ac_ac_var=no"
10237
 
fi
10238
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10239
 
fi
10240
 
echo "$as_me:10240: result: `eval echo '${'$ac_ac_var'}'`" >&5
10241
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
10242
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
10243
 
  cat >>confdefs.h <<EOF
10244
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10245
 
EOF
 
19846
sed 's/^/| /' conftest.$ac_ext >&5
 
19847
 
 
19848
eval "$as_ac_var=no"
 
19849
fi
 
19850
rm -f conftest.err conftest.$ac_objext \
 
19851
      conftest$ac_exeext conftest.$ac_ext
 
19852
fi
 
19853
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
19854
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19855
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19856
  cat >>confdefs.h <<_ACEOF
 
19857
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19858
_ACEOF
10246
19859
 
10247
19860
fi
10248
19861
done
10250
19863
    ;;
10251
19864
esac
10252
19865
 
10253
 
for ac_func in uname updwtmp updwtmpx vsprintf
 
19866
 
 
19867
 
 
19868
 
 
19869
 
 
19870
for ac_func in uname updwtmp updwtmpx vsnprintf vsprintf
10254
19871
do
10255
 
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10256
 
echo "$as_me:10256: checking for $ac_func" >&5
 
19872
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19873
echo "$as_me:$LINENO: checking for $ac_func" >&5
10257
19874
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10258
 
if eval "test \"\${$ac_ac_var+set}\" = set"; then
 
19875
if eval "test \"\${$as_ac_var+set}\" = set"; then
10259
19876
  echo $ECHO_N "(cached) $ECHO_C" >&6
10260
19877
else
10261
19878
  cat >conftest.$ac_ext <<_ACEOF
10262
 
#line 10262 "configure"
10263
 
#include "confdefs.h"
 
19879
/* confdefs.h.  */
 
19880
_ACEOF
 
19881
cat confdefs.h >>conftest.$ac_ext
 
19882
cat >>conftest.$ac_ext <<_ACEOF
 
19883
/* end confdefs.h.  */
 
19884
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19885
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19886
#define $ac_func innocuous_$ac_func
 
19887
 
10264
19888
/* System header to define __stub macros and hopefully few prototypes,
10265
 
    which can conflict with char $ac_func (); below.  */
10266
 
#include <assert.h>
 
19889
    which can conflict with char $ac_func (); below.
 
19890
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19891
    <limits.h> exists even on freestanding compilers.  */
 
19892
 
 
19893
#ifdef __STDC__
 
19894
# include <limits.h>
 
19895
#else
 
19896
# include <assert.h>
 
19897
#endif
 
19898
 
 
19899
#undef $ac_func
 
19900
 
10267
19901
/* Override any gcc2 internal prototype to avoid an error.  */
10268
19902
#ifdef __cplusplus
10269
19903
extern "C"
 
19904
{
10270
19905
#endif
10271
19906
/* We use char because int might match the return type of a gcc2
10272
19907
   builtin and then its argument prototype would still apply.  */
10273
19908
char $ac_func ();
10274
 
char (*f) ();
10275
 
 
10276
 
int
10277
 
main ()
10278
 
{
10279
19909
/* The GNU C library defines this for functions which it implements
10280
19910
    to always fail with ENOSYS.  Some functions are actually named
10281
19911
    something starting with __ and the normal name is an alias.  */
10282
19912
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10283
19913
choke me
10284
19914
#else
10285
 
f = $ac_func;
 
19915
char (*f) () = $ac_func;
 
19916
#endif
 
19917
#ifdef __cplusplus
 
19918
}
10286
19919
#endif
10287
19920
 
 
19921
int
 
19922
main ()
 
19923
{
 
19924
return f != $ac_func;
10288
19925
  ;
10289
19926
  return 0;
10290
19927
}
10291
19928
_ACEOF
10292
19929
rm -f conftest.$ac_objext conftest$ac_exeext
10293
 
if { (eval echo "$as_me:10293: \"$ac_link\"") >&5
10294
 
  (eval $ac_link) 2>&5
 
19930
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19931
  (eval $ac_link) 2>conftest.er1
10295
19932
  ac_status=$?
10296
 
  echo "$as_me:10296: \$? = $ac_status" >&5
 
19933
  grep -v '^ *+' conftest.er1 >conftest.err
 
19934
  rm -f conftest.er1
 
19935
  cat conftest.err >&5
 
19936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297
19937
  (exit $ac_status); } &&
10298
 
         { ac_try='test -s conftest$ac_exeext'
10299
 
  { (eval echo "$as_me:10299: \"$ac_try\"") >&5
10300
 
  (eval $ac_try) 2>&5
10301
 
  ac_status=$?
10302
 
  echo "$as_me:10302: \$? = $ac_status" >&5
 
19938
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19939
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19940
  (eval $ac_try) 2>&5
 
19941
  ac_status=$?
 
19942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19943
  (exit $ac_status); }; } &&
 
19944
         { ac_try='test -s conftest$ac_exeext'
 
19945
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19946
  (eval $ac_try) 2>&5
 
19947
  ac_status=$?
 
19948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303
19949
  (exit $ac_status); }; }; then
10304
 
  eval "$ac_ac_var=yes"
 
19950
  eval "$as_ac_var=yes"
10305
19951
else
10306
19952
  echo "$as_me: failed program was:" >&5
10307
 
cat conftest.$ac_ext >&5
10308
 
eval "$ac_ac_var=no"
10309
 
fi
10310
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10311
 
fi
10312
 
echo "$as_me:10312: result: `eval echo '${'$ac_ac_var'}'`" >&5
10313
 
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
10314
 
if test `eval echo '${'$ac_ac_var'}'` = yes; then
10315
 
  cat >>confdefs.h <<EOF
10316
 
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10317
 
EOF
 
19953
sed 's/^/| /' conftest.$ac_ext >&5
 
19954
 
 
19955
eval "$as_ac_var=no"
 
19956
fi
 
19957
rm -f conftest.err conftest.$ac_objext \
 
19958
      conftest$ac_exeext conftest.$ac_ext
 
19959
fi
 
19960
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
19961
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19962
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19963
  cat >>confdefs.h <<_ACEOF
 
19964
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19965
_ACEOF
10318
19966
 
10319
19967
fi
10320
19968
done
10321
19969
 
10322
 
echo "$as_me:10322: checking number of arguments to gettimeofday()" >&5
 
19970
 
 
19971
case "$host" in
 
19972
 *-*-sunos4*)
 
19973
 
 
19974
cat >>confdefs.h <<\_ACEOF
 
19975
#define SPRINTF_CHAR 1
 
19976
_ACEOF
 
19977
 
 
19978
    ;;
 
19979
esac
 
19980
 
 
19981
echo "$as_me:$LINENO: checking number of arguments to gettimeofday()" >&5
10323
19982
echo $ECHO_N "checking number of arguments to gettimeofday()... $ECHO_C" >&6
10324
19983
if test "${ac_cv_func_Xettimeofday_nargs+set}" = set; then
10325
19984
  echo $ECHO_N "(cached) $ECHO_C" >&6
10326
19985
else
10327
19986
  cat >conftest.$ac_ext <<_ACEOF
10328
 
#line 10328 "configure"
10329
 
#include "confdefs.h"
 
19987
/* confdefs.h.  */
 
19988
_ACEOF
 
19989
cat confdefs.h >>conftest.$ac_ext
 
19990
cat >>conftest.$ac_ext <<_ACEOF
 
19991
/* end confdefs.h.  */
10330
19992
#include <sys/time.h>
10331
19993
int
10332
19994
main ()
10340
20002
}
10341
20003
_ACEOF
10342
20004
rm -f conftest.$ac_objext
10343
 
if { (eval echo "$as_me:10343: \"$ac_compile\"") >&5
10344
 
  (eval $ac_compile) 2>&5
 
20005
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20006
  (eval $ac_compile) 2>conftest.er1
10345
20007
  ac_status=$?
10346
 
  echo "$as_me:10346: \$? = $ac_status" >&5
 
20008
  grep -v '^ *+' conftest.er1 >conftest.err
 
20009
  rm -f conftest.er1
 
20010
  cat conftest.err >&5
 
20011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347
20012
  (exit $ac_status); } &&
10348
 
         { ac_try='test -s conftest.$ac_objext'
10349
 
  { (eval echo "$as_me:10349: \"$ac_try\"") >&5
10350
 
  (eval $ac_try) 2>&5
10351
 
  ac_status=$?
10352
 
  echo "$as_me:10352: \$? = $ac_status" >&5
 
20013
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20014
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20015
  (eval $ac_try) 2>&5
 
20016
  ac_status=$?
 
20017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20018
  (exit $ac_status); }; } &&
 
20019
         { ac_try='test -s conftest.$ac_objext'
 
20020
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20021
  (eval $ac_try) 2>&5
 
20022
  ac_status=$?
 
20023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353
20024
  (exit $ac_status); }; }; then
10354
20025
  ac_cv_func_Xettimeofday_nargs=2
10355
20026
else
10356
20027
  echo "$as_me: failed program was:" >&5
10357
 
cat conftest.$ac_ext >&5
 
20028
sed 's/^/| /' conftest.$ac_ext >&5
 
20029
 
10358
20030
ac_cv_func_Xettimeofday_nargs=1
10359
20031
fi
10360
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20032
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10361
20033
 
10362
20034
fi
10363
 
echo "$as_me:10363: result: $ac_cv_func_Xettimeofday_nargs" >&5
 
20035
echo "$as_me:$LINENO: result: $ac_cv_func_Xettimeofday_nargs" >&5
10364
20036
echo "${ECHO_T}$ac_cv_func_Xettimeofday_nargs" >&6
10365
20037
if test $ac_cv_func_Xettimeofday_nargs = 1; then
10366
 
        cat >>confdefs.h <<\EOF
 
20038
 
 
20039
cat >>confdefs.h <<\_ACEOF
10367
20040
#define SYSV_TIMEOFDAY 1
10368
 
EOF
 
20041
_ACEOF
10369
20042
 
10370
20043
fi
10371
20044
 
10372
 
echo "$as_me:10372: checking number of arguments taken by setpgrp()" >&5
 
20045
echo "$as_me:$LINENO: checking number of arguments taken by setpgrp()" >&5
10373
20046
echo $ECHO_N "checking number of arguments taken by setpgrp()... $ECHO_C" >&6
10374
20047
if test "${ac_cv_func_setpgrp_nargs+set}" = set; then
10375
20048
  echo $ECHO_N "(cached) $ECHO_C" >&6
10376
20049
else
10377
20050
  cat >conftest.$ac_ext <<_ACEOF
10378
 
#line 10378 "configure"
10379
 
#include "confdefs.h"
 
20051
/* confdefs.h.  */
 
20052
_ACEOF
 
20053
cat confdefs.h >>conftest.$ac_ext
 
20054
cat >>conftest.$ac_ext <<_ACEOF
 
20055
/* end confdefs.h.  */
10380
20056
 
10381
20057
#ifdef HAVE_SYS_TYPES_H
10382
20058
# include <sys/types.h>
10394
20070
}
10395
20071
_ACEOF
10396
20072
rm -f conftest.$ac_objext
10397
 
if { (eval echo "$as_me:10397: \"$ac_compile\"") >&5
10398
 
  (eval $ac_compile) 2>&5
 
20073
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20074
  (eval $ac_compile) 2>conftest.er1
10399
20075
  ac_status=$?
10400
 
  echo "$as_me:10400: \$? = $ac_status" >&5
 
20076
  grep -v '^ *+' conftest.er1 >conftest.err
 
20077
  rm -f conftest.er1
 
20078
  cat conftest.err >&5
 
20079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401
20080
  (exit $ac_status); } &&
10402
 
         { ac_try='test -s conftest.$ac_objext'
10403
 
  { (eval echo "$as_me:10403: \"$ac_try\"") >&5
10404
 
  (eval $ac_try) 2>&5
10405
 
  ac_status=$?
10406
 
  echo "$as_me:10406: \$? = $ac_status" >&5
 
20081
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20082
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20083
  (eval $ac_try) 2>&5
 
20084
  ac_status=$?
 
20085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20086
  (exit $ac_status); }; } &&
 
20087
         { ac_try='test -s conftest.$ac_objext'
 
20088
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20089
  (eval $ac_try) 2>&5
 
20090
  ac_status=$?
 
20091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407
20092
  (exit $ac_status); }; }; then
10408
20093
  ac_cv_func_setpgrp_nargs=2
10409
20094
else
10410
20095
  echo "$as_me: failed program was:" >&5
10411
 
cat conftest.$ac_ext >&5
 
20096
sed 's/^/| /' conftest.$ac_ext >&5
 
20097
 
10412
20098
ac_cv_func_setpgrp_nargs=0
10413
20099
fi
10414
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20100
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10415
20101
 
10416
20102
fi
10417
 
echo "$as_me:10417: result: $ac_cv_func_setpgrp_nargs" >&5
 
20103
echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_nargs" >&5
10418
20104
echo "${ECHO_T}$ac_cv_func_setpgrp_nargs" >&6
10419
20105
if test $ac_cv_func_setpgrp_nargs = 0; then
10420
 
        cat >>confdefs.h <<\EOF
 
20106
 
 
20107
cat >>confdefs.h <<\_ACEOF
10421
20108
#define HAVE_SETPGRP_0 1
10422
 
EOF
 
20109
_ACEOF
10423
20110
 
10424
20111
fi
10425
20112
 
10426
20113
save_CFLAGS=$CFLAGS
10427
20114
CFLAGS="$CFLAGS -I$srcdir/include"
10428
20115
 
10429
 
echo "$as_me:10429: checking argument pointer type of qsort()'s compare function and base" >&5
 
20116
echo "$as_me:$LINENO: checking argument pointer type of qsort()'s compare function and base" >&5
10430
20117
echo $ECHO_N "checking argument pointer type of qsort()'s compare function and base... $ECHO_C" >&6
10431
20118
if test "${ac_cv_func_qsort_argtype+set}" = set; then
10432
20119
  echo $ECHO_N "(cached) $ECHO_C" >&6
10433
20120
else
10434
20121
  cat >conftest.$ac_ext <<_ACEOF
10435
 
#line 10435 "configure"
10436
 
#include "confdefs.h"
 
20122
/* confdefs.h.  */
 
20123
_ACEOF
 
20124
cat confdefs.h >>conftest.$ac_ext
 
20125
cat >>conftest.$ac_ext <<_ACEOF
 
20126
/* end confdefs.h.  */
10437
20127
 
10438
20128
#include "l_stdlib.h"
10439
20129
 
10460
20150
}
10461
20151
_ACEOF
10462
20152
rm -f conftest.$ac_objext
10463
 
if { (eval echo "$as_me:10463: \"$ac_compile\"") >&5
10464
 
  (eval $ac_compile) 2>&5
 
20153
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20154
  (eval $ac_compile) 2>conftest.er1
10465
20155
  ac_status=$?
10466
 
  echo "$as_me:10466: \$? = $ac_status" >&5
 
20156
  grep -v '^ *+' conftest.er1 >conftest.err
 
20157
  rm -f conftest.er1
 
20158
  cat conftest.err >&5
 
20159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467
20160
  (exit $ac_status); } &&
10468
 
         { ac_try='test -s conftest.$ac_objext'
10469
 
  { (eval echo "$as_me:10469: \"$ac_try\"") >&5
10470
 
  (eval $ac_try) 2>&5
10471
 
  ac_status=$?
10472
 
  echo "$as_me:10472: \$? = $ac_status" >&5
 
20161
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20162
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20163
  (eval $ac_try) 2>&5
 
20164
  ac_status=$?
 
20165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20166
  (exit $ac_status); }; } &&
 
20167
         { ac_try='test -s conftest.$ac_objext'
 
20168
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20169
  (eval $ac_try) 2>&5
 
20170
  ac_status=$?
 
20171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473
20172
  (exit $ac_status); }; }; then
10474
20173
  ac_cv_func_qsort_argtype=void
10475
20174
else
10476
20175
  echo "$as_me: failed program was:" >&5
10477
 
cat conftest.$ac_ext >&5
 
20176
sed 's/^/| /' conftest.$ac_ext >&5
 
20177
 
10478
20178
ac_cv_func_qsort_argtype=char
10479
20179
fi
10480
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20180
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10481
20181
 
10482
20182
fi
10483
 
echo "$as_me:10483: result: $ac_cv_func_qsort_argtype" >&5
 
20183
echo "$as_me:$LINENO: result: $ac_cv_func_qsort_argtype" >&5
10484
20184
echo "${ECHO_T}$ac_cv_func_qsort_argtype" >&6
10485
20185
case "$ac_cv_func_qsort_argtype" in
10486
20186
 void)
10487
 
    cat >>confdefs.h <<\EOF
 
20187
 
 
20188
cat >>confdefs.h <<\_ACEOF
10488
20189
#define QSORT_USES_VOID_P 1
10489
 
EOF
 
20190
_ACEOF
10490
20191
 
10491
20192
    ;;
10492
20193
esac
10493
20194
 
10494
20195
CFLAGS=$save_CFLAGS
10495
20196
 
10496
 
echo "$as_me:10496: checking if we need to declare 'errno'" >&5
 
20197
echo "$as_me:$LINENO: checking if we need to declare 'errno'" >&5
10497
20198
echo $ECHO_N "checking if we need to declare 'errno'... $ECHO_C" >&6
10498
20199
if test "${ac_cv_decl_errno+set}" = set; then
10499
20200
  echo $ECHO_N "(cached) $ECHO_C" >&6
10500
20201
else
10501
20202
  cat >conftest.$ac_ext <<_ACEOF
10502
 
#line 10502 "configure"
10503
 
#include "confdefs.h"
 
20203
/* confdefs.h.  */
 
20204
_ACEOF
 
20205
cat confdefs.h >>conftest.$ac_ext
 
20206
cat >>conftest.$ac_ext <<_ACEOF
 
20207
/* end confdefs.h.  */
10504
20208
#ifdef HAVE_ERRNO_H
10505
20209
#include <errno.h>
10506
20210
#endif
10513
20217
}
10514
20218
_ACEOF
10515
20219
rm -f conftest.$ac_objext
10516
 
if { (eval echo "$as_me:10516: \"$ac_compile\"") >&5
10517
 
  (eval $ac_compile) 2>&5
 
20220
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20221
  (eval $ac_compile) 2>conftest.er1
10518
20222
  ac_status=$?
10519
 
  echo "$as_me:10519: \$? = $ac_status" >&5
 
20223
  grep -v '^ *+' conftest.er1 >conftest.err
 
20224
  rm -f conftest.er1
 
20225
  cat conftest.err >&5
 
20226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520
20227
  (exit $ac_status); } &&
10521
 
         { ac_try='test -s conftest.$ac_objext'
10522
 
  { (eval echo "$as_me:10522: \"$ac_try\"") >&5
10523
 
  (eval $ac_try) 2>&5
10524
 
  ac_status=$?
10525
 
  echo "$as_me:10525: \$? = $ac_status" >&5
 
20228
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20229
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20230
  (eval $ac_try) 2>&5
 
20231
  ac_status=$?
 
20232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20233
  (exit $ac_status); }; } &&
 
20234
         { ac_try='test -s conftest.$ac_objext'
 
20235
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20236
  (eval $ac_try) 2>&5
 
20237
  ac_status=$?
 
20238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526
20239
  (exit $ac_status); }; }; then
10527
20240
  ac_cv_decl_errno=no
10528
20241
else
10529
20242
  echo "$as_me: failed program was:" >&5
10530
 
cat conftest.$ac_ext >&5
 
20243
sed 's/^/| /' conftest.$ac_ext >&5
 
20244
 
10531
20245
ac_cv_decl_errno=yes
10532
20246
fi
10533
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20247
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10534
20248
fi
10535
 
echo "$as_me:10535: result: $ac_cv_decl_errno" >&5
 
20249
echo "$as_me:$LINENO: result: $ac_cv_decl_errno" >&5
10536
20250
echo "${ECHO_T}$ac_cv_decl_errno" >&6
10537
20251
case "$ac_cv_decl_errno" in
10538
 
 yes) cat >>confdefs.h <<\EOF
 
20252
 yes)
 
20253
cat >>confdefs.h <<\_ACEOF
10539
20254
#define DECL_ERRNO 1
10540
 
EOF
 
20255
_ACEOF
10541
20256
 ;;
10542
20257
esac
10543
20258
 
10544
 
echo "$as_me:10544: checking if we may declare 'h_errno'" >&5
 
20259
echo "$as_me:$LINENO: checking if we may declare 'h_errno'" >&5
10545
20260
echo $ECHO_N "checking if we may declare 'h_errno'... $ECHO_C" >&6
10546
20261
if test "${ac_cv_decl_h_errno+set}" = set; then
10547
20262
  echo $ECHO_N "(cached) $ECHO_C" >&6
10548
20263
else
10549
20264
  cat >conftest.$ac_ext <<_ACEOF
10550
 
#line 10550 "configure"
10551
 
#include "confdefs.h"
 
20265
/* confdefs.h.  */
 
20266
_ACEOF
 
20267
cat confdefs.h >>conftest.$ac_ext
 
20268
cat >>conftest.$ac_ext <<_ACEOF
 
20269
/* end confdefs.h.  */
10552
20270
#include <sys/types.h>
10553
20271
#ifdef HAVE_NETINET_IN_H
10554
20272
#include <netinet/in.h>
10571
20289
}
10572
20290
_ACEOF
10573
20291
rm -f conftest.$ac_objext
10574
 
if { (eval echo "$as_me:10574: \"$ac_compile\"") >&5
10575
 
  (eval $ac_compile) 2>&5
 
20292
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20293
  (eval $ac_compile) 2>conftest.er1
10576
20294
  ac_status=$?
10577
 
  echo "$as_me:10577: \$? = $ac_status" >&5
 
20295
  grep -v '^ *+' conftest.er1 >conftest.err
 
20296
  rm -f conftest.er1
 
20297
  cat conftest.err >&5
 
20298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578
20299
  (exit $ac_status); } &&
10579
 
         { ac_try='test -s conftest.$ac_objext'
10580
 
  { (eval echo "$as_me:10580: \"$ac_try\"") >&5
10581
 
  (eval $ac_try) 2>&5
10582
 
  ac_status=$?
10583
 
  echo "$as_me:10583: \$? = $ac_status" >&5
 
20300
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20301
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20302
  (eval $ac_try) 2>&5
 
20303
  ac_status=$?
 
20304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20305
  (exit $ac_status); }; } &&
 
20306
         { ac_try='test -s conftest.$ac_objext'
 
20307
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20308
  (eval $ac_try) 2>&5
 
20309
  ac_status=$?
 
20310
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584
20311
  (exit $ac_status); }; }; then
10585
20312
  ac_cv_decl_h_errno=yes
10586
20313
else
10587
20314
  echo "$as_me: failed program was:" >&5
10588
 
cat conftest.$ac_ext >&5
 
20315
sed 's/^/| /' conftest.$ac_ext >&5
 
20316
 
10589
20317
ac_cv_decl_h_errno=no
10590
20318
fi
10591
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20319
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10592
20320
fi
10593
 
echo "$as_me:10593: result: $ac_cv_decl_h_errno" >&5
 
20321
echo "$as_me:$LINENO: result: $ac_cv_decl_h_errno" >&5
10594
20322
echo "${ECHO_T}$ac_cv_decl_h_errno" >&6
10595
20323
case "$ac_cv_decl_h_errno" in
10596
 
 yes) cat >>confdefs.h <<\EOF
 
20324
 yes)
 
20325
cat >>confdefs.h <<\_ACEOF
10597
20326
#define DECL_H_ERRNO 1
10598
 
EOF
 
20327
_ACEOF
10599
20328
 ;;
10600
20329
esac
10601
20330
 
10602
 
echo "$as_me:10602: checking if declaring 'char *sys_errlist[]' is ok" >&5
 
20331
echo "$as_me:$LINENO: checking if declaring 'char *sys_errlist[]' is ok" >&5
10603
20332
echo $ECHO_N "checking if declaring 'char *sys_errlist[]' is ok... $ECHO_C" >&6
10604
20333
if test "${ac_cv_decl_sys_errlist+set}" = set; then
10605
20334
  echo $ECHO_N "(cached) $ECHO_C" >&6
10606
20335
else
10607
20336
  cat >conftest.$ac_ext <<_ACEOF
10608
 
#line 10608 "configure"
10609
 
#include "confdefs.h"
 
20337
/* confdefs.h.  */
 
20338
_ACEOF
 
20339
cat confdefs.h >>conftest.$ac_ext
 
20340
cat >>conftest.$ac_ext <<_ACEOF
 
20341
/* end confdefs.h.  */
10610
20342
#include <stdio.h>
10611
20343
#ifdef HAVE_ERRNO_H
10612
20344
#include <errno.h>
10621
20353
}
10622
20354
_ACEOF
10623
20355
rm -f conftest.$ac_objext
10624
 
if { (eval echo "$as_me:10624: \"$ac_compile\"") >&5
10625
 
  (eval $ac_compile) 2>&5
 
20356
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20357
  (eval $ac_compile) 2>conftest.er1
10626
20358
  ac_status=$?
10627
 
  echo "$as_me:10627: \$? = $ac_status" >&5
 
20359
  grep -v '^ *+' conftest.er1 >conftest.err
 
20360
  rm -f conftest.er1
 
20361
  cat conftest.err >&5
 
20362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628
20363
  (exit $ac_status); } &&
10629
 
         { ac_try='test -s conftest.$ac_objext'
10630
 
  { (eval echo "$as_me:10630: \"$ac_try\"") >&5
10631
 
  (eval $ac_try) 2>&5
10632
 
  ac_status=$?
10633
 
  echo "$as_me:10633: \$? = $ac_status" >&5
 
20364
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20365
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20366
  (eval $ac_try) 2>&5
 
20367
  ac_status=$?
 
20368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20369
  (exit $ac_status); }; } &&
 
20370
         { ac_try='test -s conftest.$ac_objext'
 
20371
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20372
  (eval $ac_try) 2>&5
 
20373
  ac_status=$?
 
20374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634
20375
  (exit $ac_status); }; }; then
10635
20376
  ac_cv_decl_sys_errlist=yes
10636
20377
else
10637
20378
  echo "$as_me: failed program was:" >&5
10638
 
cat conftest.$ac_ext >&5
 
20379
sed 's/^/| /' conftest.$ac_ext >&5
 
20380
 
10639
20381
ac_cv_decl_sys_errlist=no
10640
20382
fi
10641
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20383
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10642
20384
fi
10643
 
echo "$as_me:10643: result: $ac_cv_decl_sys_errlist" >&5
 
20385
echo "$as_me:$LINENO: result: $ac_cv_decl_sys_errlist" >&5
10644
20386
echo "${ECHO_T}$ac_cv_decl_sys_errlist" >&6
10645
20387
case "$ac_cv_decl_sys_errlist" in
10646
 
 yes) cat >>confdefs.h <<\EOF
 
20388
 yes)
 
20389
cat >>confdefs.h <<\_ACEOF
10647
20390
#define CHAR_SYS_ERRLIST 1
10648
 
EOF
 
20391
_ACEOF
10649
20392
 ;;
10650
20393
esac
10651
20394
 
10652
 
echo "$as_me:10652: checking if declaring 'syscall()' is ok" >&5
 
20395
echo "$as_me:$LINENO: checking if declaring 'syscall()' is ok" >&5
10653
20396
echo $ECHO_N "checking if declaring 'syscall()' is ok... $ECHO_C" >&6
10654
20397
if test "${ac_cv_decl_syscall+set}" = set; then
10655
20398
  echo $ECHO_N "(cached) $ECHO_C" >&6
10656
20399
else
10657
20400
  cat >conftest.$ac_ext <<_ACEOF
10658
 
#line 10658 "configure"
10659
 
#include "confdefs.h"
 
20401
/* confdefs.h.  */
 
20402
_ACEOF
 
20403
cat confdefs.h >>conftest.$ac_ext
 
20404
cat >>conftest.$ac_ext <<_ACEOF
 
20405
/* end confdefs.h.  */
10660
20406
 
10661
20407
#ifdef HAVE_SYS_TYPES_H
10662
20408
# include <sys/types.h>
10679
20425
}
10680
20426
_ACEOF
10681
20427
rm -f conftest.$ac_objext
10682
 
if { (eval echo "$as_me:10682: \"$ac_compile\"") >&5
10683
 
  (eval $ac_compile) 2>&5
 
20428
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20429
  (eval $ac_compile) 2>conftest.er1
10684
20430
  ac_status=$?
10685
 
  echo "$as_me:10685: \$? = $ac_status" >&5
 
20431
  grep -v '^ *+' conftest.er1 >conftest.err
 
20432
  rm -f conftest.er1
 
20433
  cat conftest.err >&5
 
20434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686
20435
  (exit $ac_status); } &&
10687
 
         { ac_try='test -s conftest.$ac_objext'
10688
 
  { (eval echo "$as_me:10688: \"$ac_try\"") >&5
10689
 
  (eval $ac_try) 2>&5
10690
 
  ac_status=$?
10691
 
  echo "$as_me:10691: \$? = $ac_status" >&5
 
20436
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20437
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20438
  (eval $ac_try) 2>&5
 
20439
  ac_status=$?
 
20440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20441
  (exit $ac_status); }; } &&
 
20442
         { ac_try='test -s conftest.$ac_objext'
 
20443
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20444
  (eval $ac_try) 2>&5
 
20445
  ac_status=$?
 
20446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692
20447
  (exit $ac_status); }; }; then
10693
20448
  ac_cv_decl_syscall=yes
10694
20449
else
10695
20450
  echo "$as_me: failed program was:" >&5
10696
 
cat conftest.$ac_ext >&5
 
20451
sed 's/^/| /' conftest.$ac_ext >&5
 
20452
 
10697
20453
ac_cv_decl_syscall=no
10698
20454
fi
10699
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20455
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10700
20456
fi
10701
 
echo "$as_me:10701: result: $ac_cv_decl_syscall" >&5
 
20457
echo "$as_me:$LINENO: result: $ac_cv_decl_syscall" >&5
10702
20458
echo "${ECHO_T}$ac_cv_decl_syscall" >&6
10703
20459
case "$ac_cv_decl_syscall" in
10704
 
 yes) cat >>confdefs.h <<\EOF
 
20460
 yes)
 
20461
cat >>confdefs.h <<\_ACEOF
10705
20462
#define DECL_SYSCALL 1
10706
 
EOF
 
20463
_ACEOF
10707
20464
 ;;
10708
20465
esac
10709
20466
 
10710
 
case "$target" in
 
20467
case "$host" in
10711
20468
 *-*-aix4.3.*)
10712
 
    cat >>confdefs.h <<\EOF
 
20469
 
 
20470
cat >>confdefs.h <<\_ACEOF
10713
20471
#define DECL_HSTRERROR_0 1
10714
 
EOF
 
20472
_ACEOF
10715
20473
                # Needed for XLC under AIX 4.3.2
10716
20474
    ;;
 
20475
 *-*-mpeix*)
 
20476
 
 
20477
cat >>confdefs.h <<\_ACEOF
 
20478
#define DECL_ADJTIME_0 1
 
20479
_ACEOF
 
20480
 
 
20481
 
 
20482
cat >>confdefs.h <<\_ACEOF
 
20483
#define DECL_INET_NTOA_0 1
 
20484
_ACEOF
 
20485
 
 
20486
 
 
20487
cat >>confdefs.h <<\_ACEOF
 
20488
#define DECL_MKTEMP_0 1
 
20489
_ACEOF
 
20490
 
 
20491
 
 
20492
cat >>confdefs.h <<\_ACEOF
 
20493
#define DECL_MRAND48_0 1
 
20494
_ACEOF
 
20495
 
 
20496
 
 
20497
cat >>confdefs.h <<\_ACEOF
 
20498
#define DECL_SELECT_0 1
 
20499
_ACEOF
 
20500
 
 
20501
 
 
20502
cat >>confdefs.h <<\_ACEOF
 
20503
#define DECL_SETITIMER_0 1
 
20504
_ACEOF
 
20505
 
 
20506
 
 
20507
cat >>confdefs.h <<\_ACEOF
 
20508
#define DECL_SRAND48_0 1
 
20509
_ACEOF
 
20510
 
 
20511
 
 
20512
cat >>confdefs.h <<\_ACEOF
 
20513
#define DECL_SYSLOG_0 1
 
20514
_ACEOF
 
20515
 
 
20516
 
 
20517
cat >>confdefs.h <<\_ACEOF
 
20518
#define DECL_TIMEOFDAY_0 1
 
20519
_ACEOF
 
20520
 
 
20521
    ;;
10717
20522
 *-*-osf[45]*)
10718
 
    cat >>confdefs.h <<\EOF
 
20523
 
 
20524
cat >>confdefs.h <<\_ACEOF
10719
20525
#define DECL_PLOCK_0 1
10720
 
EOF
10721
 
 
10722
 
    cat >>confdefs.h <<\EOF
 
20526
_ACEOF
 
20527
 
 
20528
 
 
20529
cat >>confdefs.h <<\_ACEOF
10723
20530
#define DECL_STIME_1 1
10724
 
EOF
 
20531
_ACEOF
 
20532
 
 
20533
    ;;
 
20534
 *-*-qnx*)
 
20535
 
 
20536
cat >>confdefs.h <<\_ACEOF
 
20537
#define DECL_ADJTIME_0 1
 
20538
_ACEOF
10725
20539
 
10726
20540
    ;;
10727
20541
 *-*-riscos4*)
10728
 
    cat >>confdefs.h <<\EOF
 
20542
 
 
20543
cat >>confdefs.h <<\_ACEOF
10729
20544
#define DECL_ADJTIME_0 1
10730
 
EOF
10731
 
 
10732
 
    cat >>confdefs.h <<\EOF
 
20545
_ACEOF
 
20546
 
 
20547
 
 
20548
cat >>confdefs.h <<\_ACEOF
10733
20549
#define DECL_BZERO_0 1
10734
 
EOF
10735
 
 
10736
 
    cat >>confdefs.h <<\EOF
 
20550
_ACEOF
 
20551
 
 
20552
 
 
20553
cat >>confdefs.h <<\_ACEOF
10737
20554
#define DECL_IOCTL_0 1
10738
 
EOF
10739
 
 
10740
 
    cat >>confdefs.h <<\EOF
 
20555
_ACEOF
 
20556
 
 
20557
 
 
20558
cat >>confdefs.h <<\_ACEOF
10741
20559
#define DECL_IPC_0 1
10742
 
EOF
10743
 
 
10744
 
    cat >>confdefs.h <<\EOF
 
20560
_ACEOF
 
20561
 
 
20562
 
 
20563
cat >>confdefs.h <<\_ACEOF
10745
20564
#define DECL_MEMMOVE_0 1
10746
 
EOF
10747
 
 
10748
 
    cat >>confdefs.h <<\EOF
 
20565
_ACEOF
 
20566
 
 
20567
 
 
20568
cat >>confdefs.h <<\_ACEOF
10749
20569
#define DECL_MKTEMP_0 1
10750
 
EOF
10751
 
 
10752
 
    cat >>confdefs.h <<\EOF
 
20570
_ACEOF
 
20571
 
 
20572
 
 
20573
cat >>confdefs.h <<\_ACEOF
10753
20574
#define DECL_RENAME_0 1
10754
 
EOF
10755
 
 
10756
 
    cat >>confdefs.h <<\EOF
 
20575
_ACEOF
 
20576
 
 
20577
 
 
20578
cat >>confdefs.h <<\_ACEOF
10757
20579
#define DECL_SELECT_0 1
10758
 
EOF
10759
 
 
10760
 
    cat >>confdefs.h <<\EOF
 
20580
_ACEOF
 
20581
 
 
20582
 
 
20583
cat >>confdefs.h <<\_ACEOF
10761
20584
#define DECL_SETITIMER_0 1
10762
 
EOF
10763
 
 
10764
 
    cat >>confdefs.h <<\EOF
 
20585
_ACEOF
 
20586
 
 
20587
 
 
20588
cat >>confdefs.h <<\_ACEOF
10765
20589
#define DECL_SETPRIORITY_0 1
10766
 
EOF
10767
 
 
10768
 
    cat >>confdefs.h <<\EOF
 
20590
_ACEOF
 
20591
 
 
20592
 
 
20593
cat >>confdefs.h <<\_ACEOF
10769
20594
#define DECL_STDIO_0 1
10770
 
EOF
10771
 
 
10772
 
    cat >>confdefs.h <<\EOF
 
20595
_ACEOF
 
20596
 
 
20597
 
 
20598
cat >>confdefs.h <<\_ACEOF
10773
20599
#define DECL_STRTOL_0 1
10774
 
EOF
10775
 
 
10776
 
    cat >>confdefs.h <<\EOF
 
20600
_ACEOF
 
20601
 
 
20602
 
 
20603
cat >>confdefs.h <<\_ACEOF
10777
20604
#define DECL_SYSLOG_0 1
10778
 
EOF
10779
 
 
10780
 
    cat >>confdefs.h <<\EOF
 
20605
_ACEOF
 
20606
 
 
20607
 
 
20608
cat >>confdefs.h <<\_ACEOF
10781
20609
#define DECL_TIME_0 1
10782
 
EOF
10783
 
 
10784
 
    cat >>confdefs.h <<\EOF
 
20610
_ACEOF
 
20611
 
 
20612
 
 
20613
cat >>confdefs.h <<\_ACEOF
10785
20614
#define DECL_TIMEOFDAY_0 1
10786
 
EOF
10787
 
 
10788
 
    cat >>confdefs.h <<\EOF
 
20615
_ACEOF
 
20616
 
 
20617
 
 
20618
cat >>confdefs.h <<\_ACEOF
10789
20619
#define DECL_TOLOWER_0 1
10790
 
EOF
 
20620
_ACEOF
10791
20621
 
10792
20622
    ;;
10793
20623
 *-*-solaris2*)
10794
 
    cat >>confdefs.h <<\EOF
 
20624
 
 
20625
cat >>confdefs.h <<\_ACEOF
10795
20626
#define DECL_MKSTEMP_0 1
10796
 
EOF
10797
 
 
10798
 
    cat >>confdefs.h <<\EOF
 
20627
_ACEOF
 
20628
 
 
20629
 
 
20630
cat >>confdefs.h <<\_ACEOF
10799
20631
#define DECL_SETPRIORITY_1 1
10800
 
EOF
 
20632
_ACEOF
10801
20633
 
10802
 
    case "$target" in
 
20634
    case "$host" in
10803
20635
     *-*-solaris2.4)
10804
 
        cat >>confdefs.h <<\EOF
 
20636
 
 
20637
cat >>confdefs.h <<\_ACEOF
10805
20638
#define DECL_TIMEOFDAY_0 1
10806
 
EOF
 
20639
_ACEOF
10807
20640
 
10808
20641
        ;;
10809
20642
    esac
10810
20643
    ;;
10811
20644
 *-*-sunos4*)
10812
 
    cat >>confdefs.h <<\EOF
 
20645
 
 
20646
cat >>confdefs.h <<\_ACEOF
10813
20647
#define DECL_ADJTIME_0 1
10814
 
EOF
10815
 
 
10816
 
    cat >>confdefs.h <<\EOF
 
20648
_ACEOF
 
20649
 
 
20650
 
 
20651
cat >>confdefs.h <<\_ACEOF
10817
20652
#define DECL_BCOPY_0 1
10818
 
EOF
10819
 
 
10820
 
    cat >>confdefs.h <<\EOF
 
20653
_ACEOF
 
20654
 
 
20655
 
 
20656
cat >>confdefs.h <<\_ACEOF
10821
20657
#define DECL_BZERO_0 1
10822
 
EOF
10823
 
 
10824
 
    cat >>confdefs.h <<\EOF
 
20658
_ACEOF
 
20659
 
 
20660
 
 
20661
cat >>confdefs.h <<\_ACEOF
10825
20662
#define DECL_IOCTL_0 1
10826
 
EOF
10827
 
 
10828
 
    cat >>confdefs.h <<\EOF
 
20663
_ACEOF
 
20664
 
 
20665
 
 
20666
cat >>confdefs.h <<\_ACEOF
10829
20667
#define DECL_IPC_0 1
10830
 
EOF
10831
 
 
10832
 
    cat >>confdefs.h <<\EOF
 
20668
_ACEOF
 
20669
 
 
20670
 
 
20671
cat >>confdefs.h <<\_ACEOF
10833
20672
#define DECL_MEMMOVE_0 1
10834
 
EOF
10835
 
 
10836
 
    cat >>confdefs.h <<\EOF
 
20673
_ACEOF
 
20674
 
 
20675
 
 
20676
cat >>confdefs.h <<\_ACEOF
10837
20677
#define DECL_MKTEMP_0 1
10838
 
EOF
10839
 
 
10840
 
    cat >>confdefs.h <<\EOF
 
20678
_ACEOF
 
20679
 
 
20680
 
 
20681
cat >>confdefs.h <<\_ACEOF
10841
20682
#define DECL_MKSTEMP_0 1
10842
 
EOF
10843
 
 
10844
 
    cat >>confdefs.h <<\EOF
 
20683
_ACEOF
 
20684
 
 
20685
 
 
20686
cat >>confdefs.h <<\_ACEOF
10845
20687
#define DECL_MRAND48_0 1
10846
 
EOF
10847
 
 
10848
 
    cat >>confdefs.h <<\EOF
 
20688
_ACEOF
 
20689
 
 
20690
 
 
20691
cat >>confdefs.h <<\_ACEOF
10849
20692
#define DECL_RENAME_0 1
10850
 
EOF
10851
 
 
10852
 
    cat >>confdefs.h <<\EOF
 
20693
_ACEOF
 
20694
 
 
20695
 
 
20696
cat >>confdefs.h <<\_ACEOF
10853
20697
#define DECL_SELECT_0 1
10854
 
EOF
10855
 
 
10856
 
    cat >>confdefs.h <<\EOF
 
20698
_ACEOF
 
20699
 
 
20700
 
 
20701
cat >>confdefs.h <<\_ACEOF
10857
20702
#define DECL_SETITIMER_0 1
10858
 
EOF
10859
 
 
10860
 
    cat >>confdefs.h <<\EOF
 
20703
_ACEOF
 
20704
 
 
20705
 
 
20706
cat >>confdefs.h <<\_ACEOF
10861
20707
#define DECL_SETPRIORITY_0 1
10862
 
EOF
10863
 
 
10864
 
    cat >>confdefs.h <<\EOF
 
20708
_ACEOF
 
20709
 
 
20710
 
 
20711
cat >>confdefs.h <<\_ACEOF
10865
20712
#define DECL_SIGVEC_0 1
10866
 
EOF
10867
 
 
10868
 
    cat >>confdefs.h <<\EOF
 
20713
_ACEOF
 
20714
 
 
20715
 
 
20716
cat >>confdefs.h <<\_ACEOF
10869
20717
#define DECL_SRAND48_0 1
10870
 
EOF
 
20718
_ACEOF
10871
20719
 
10872
20720
    case "`basename $ac_cv_prog_CC`" in
10873
20721
     acc*) ;;
10874
 
     *) cat >>confdefs.h <<\EOF
 
20722
     *)
 
20723
cat >>confdefs.h <<\_ACEOF
10875
20724
#define DECL_STDIO_0 1
10876
 
EOF
 
20725
_ACEOF
10877
20726
 
10878
20727
        ;;
10879
20728
    esac
10880
 
    cat >>confdefs.h <<\EOF
 
20729
 
 
20730
cat >>confdefs.h <<\_ACEOF
10881
20731
#define DECL_STRTOL_0 1
10882
 
EOF
10883
 
 
10884
 
    cat >>confdefs.h <<\EOF
 
20732
_ACEOF
 
20733
 
 
20734
 
 
20735
cat >>confdefs.h <<\_ACEOF
10885
20736
#define DECL_SYSLOG_0 1
10886
 
EOF
10887
 
 
10888
 
    cat >>confdefs.h <<\EOF
 
20737
_ACEOF
 
20738
 
 
20739
 
 
20740
cat >>confdefs.h <<\_ACEOF
10889
20741
#define DECL_TIME_0 1
10890
 
EOF
10891
 
 
10892
 
    cat >>confdefs.h <<\EOF
 
20742
_ACEOF
 
20743
 
 
20744
 
 
20745
cat >>confdefs.h <<\_ACEOF
10893
20746
#define DECL_TIMEOFDAY_0 1
10894
 
EOF
10895
 
 
10896
 
    cat >>confdefs.h <<\EOF
 
20747
_ACEOF
 
20748
 
 
20749
 
 
20750
cat >>confdefs.h <<\_ACEOF
10897
20751
#define DECL_TOLOWER_0 1
10898
 
EOF
10899
 
 
10900
 
    cat >>confdefs.h <<\EOF
 
20752
_ACEOF
 
20753
 
 
20754
 
 
20755
cat >>confdefs.h <<\_ACEOF
10901
20756
#define DECL_TOUPPER_0 1
10902
 
EOF
10903
 
 
10904
 
    cat >>confdefs.h <<\EOF
 
20757
_ACEOF
 
20758
 
 
20759
 
 
20760
cat >>confdefs.h <<\_ACEOF
10905
20761
#define DECL_STRERROR_0 1
10906
 
EOF
 
20762
_ACEOF
10907
20763
 
10908
20764
    ;;
10909
20765
 *-*-ultrix4*)
10910
 
    cat >>confdefs.h <<\EOF
 
20766
 
 
20767
cat >>confdefs.h <<\_ACEOF
10911
20768
#define DECL_ADJTIME_0 1
10912
 
EOF
10913
 
 
10914
 
    cat >>confdefs.h <<\EOF
 
20769
_ACEOF
 
20770
 
 
20771
 
 
20772
cat >>confdefs.h <<\_ACEOF
10915
20773
#define DECL_BZERO_0 1
10916
 
EOF
10917
 
 
10918
 
    cat >>confdefs.h <<\EOF
 
20774
_ACEOF
 
20775
 
 
20776
 
 
20777
cat >>confdefs.h <<\_ACEOF
10919
20778
#define DECL_CFSETISPEED_0 1
10920
 
EOF
10921
 
 
10922
 
    cat >>confdefs.h <<\EOF
 
20779
_ACEOF
 
20780
 
 
20781
 
 
20782
cat >>confdefs.h <<\_ACEOF
10923
20783
#define DECL_IOCTL_0 1
10924
 
EOF
10925
 
 
10926
 
    cat >>confdefs.h <<\EOF
 
20784
_ACEOF
 
20785
 
 
20786
 
 
20787
cat >>confdefs.h <<\_ACEOF
10927
20788
#define DECL_IPC_0 1
10928
 
EOF
10929
 
 
10930
 
    cat >>confdefs.h <<\EOF
 
20789
_ACEOF
 
20790
 
 
20791
 
 
20792
cat >>confdefs.h <<\_ACEOF
10931
20793
#define DECL_MKTEMP_0 1
10932
 
EOF
10933
 
 
10934
 
    cat >>confdefs.h <<\EOF
 
20794
_ACEOF
 
20795
 
 
20796
 
 
20797
cat >>confdefs.h <<\_ACEOF
10935
20798
#define DECL_MRAND48_0 1
10936
 
EOF
10937
 
 
10938
 
    cat >>confdefs.h <<\EOF
 
20799
_ACEOF
 
20800
 
 
20801
 
 
20802
cat >>confdefs.h <<\_ACEOF
10939
20803
#define DECL_NLIST_0 1
10940
 
EOF
10941
 
 
10942
 
    cat >>confdefs.h <<\EOF
 
20804
_ACEOF
 
20805
 
 
20806
 
 
20807
cat >>confdefs.h <<\_ACEOF
10943
20808
#define DECL_PLOCK_0 1
10944
 
EOF
10945
 
 
10946
 
    cat >>confdefs.h <<\EOF
 
20809
_ACEOF
 
20810
 
 
20811
 
 
20812
cat >>confdefs.h <<\_ACEOF
10947
20813
#define DECL_SELECT_0 1
10948
 
EOF
10949
 
 
10950
 
    cat >>confdefs.h <<\EOF
 
20814
_ACEOF
 
20815
 
 
20816
 
 
20817
cat >>confdefs.h <<\_ACEOF
10951
20818
#define DECL_SETITIMER_0 1
10952
 
EOF
10953
 
 
10954
 
    cat >>confdefs.h <<\EOF
 
20819
_ACEOF
 
20820
 
 
20821
 
 
20822
cat >>confdefs.h <<\_ACEOF
10955
20823
#define DECL_SETPRIORITY_0 1
10956
 
EOF
10957
 
 
10958
 
    cat >>confdefs.h <<\EOF
 
20824
_ACEOF
 
20825
 
 
20826
 
 
20827
cat >>confdefs.h <<\_ACEOF
10959
20828
#define DECL_SRAND48_0 1
10960
 
EOF
10961
 
 
10962
 
    cat >>confdefs.h <<\EOF
 
20829
_ACEOF
 
20830
 
 
20831
 
 
20832
cat >>confdefs.h <<\_ACEOF
10963
20833
#define DECL_STIME_0 1
10964
 
EOF
10965
 
 
10966
 
    cat >>confdefs.h <<\EOF
 
20834
_ACEOF
 
20835
 
 
20836
 
 
20837
cat >>confdefs.h <<\_ACEOF
10967
20838
#define DECL_SYSLOG_0 1
10968
 
EOF
10969
 
 
10970
 
    cat >>confdefs.h <<\EOF
 
20839
_ACEOF
 
20840
 
 
20841
 
 
20842
cat >>confdefs.h <<\_ACEOF
10971
20843
#define DECL_TIMEOFDAY_0 1
10972
 
EOF
 
20844
_ACEOF
10973
20845
 
10974
20846
    ;;
10975
20847
esac
10976
20848
 
10977
 
case "$target" in
 
20849
case "$host" in
10978
20850
 *-*-sco3.2*)
10979
 
    cat >>confdefs.h <<\EOF
 
20851
 
 
20852
cat >>confdefs.h <<\_ACEOF
10980
20853
#define TERMIOS_NEEDS__SVID3 1
10981
 
EOF
 
20854
_ACEOF
10982
20855
 
10983
20856
    ;;
10984
20857
esac
10985
20858
 
10986
 
echo "$as_me:10986: checking if we should use a streams device for ifconfig" >&5
10987
 
echo $ECHO_N "checking if we should use a streams device for ifconfig... $ECHO_C" >&6
10988
 
if test "${ac_cv_var_use_streams_device_for_ifconfig+set}" = set; then
10989
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10990
 
else
10991
 
  ac_cv_var_use_streams_device_for_ifconfig=no
10992
 
fi
10993
 
echo "$as_me:10993: result: $ac_cv_var_use_streams_device_for_ifconfig" >&5
10994
 
echo "${ECHO_T}$ac_cv_var_use_streams_device_for_ifconfig" >&6
10995
 
 
10996
 
echo "$as_me:10996: checking if we need extra room for SO_RCVBUF" >&5
 
20859
echo "$as_me:$LINENO: checking if we need extra room for SO_RCVBUF" >&5
10997
20860
echo $ECHO_N "checking if we need extra room for SO_RCVBUF... $ECHO_C" >&6
10998
20861
if test "${ac_cv_var_rcvbuf_slop+set}" = set; then
10999
20862
  echo $ECHO_N "(cached) $ECHO_C" >&6
11000
20863
else
11001
20864
  ans=no
11002
 
case "$target" in
 
20865
case "$host" in
11003
20866
 *-*-hpux[567]*)
11004
20867
    ans=yes
11005
20868
    ;;
11006
20869
esac
11007
20870
ac_cv_var_rcvbuf_slop=$ans
11008
20871
fi
11009
 
echo "$as_me:11009: result: $ac_cv_var_rcvbuf_slop" >&5
 
20872
echo "$as_me:$LINENO: result: $ac_cv_var_rcvbuf_slop" >&5
11010
20873
echo "${ECHO_T}$ac_cv_var_rcvbuf_slop" >&6
11011
20874
case "$ac_cv_var_rcvbuf_slop" in
11012
 
 yes) cat >>confdefs.h <<\EOF
 
20875
 yes)
 
20876
cat >>confdefs.h <<\_ACEOF
11013
20877
#define NEED_RCVBUF_SLOP 1
11014
 
EOF
 
20878
_ACEOF
11015
20879
 ;;
11016
20880
esac
11017
20881
 
11018
 
echo "$as_me:11018: checking if we will open the broadcast socket" >&5
 
20882
echo "$as_me:$LINENO: checking if we will open the broadcast socket" >&5
11019
20883
echo $ECHO_N "checking if we will open the broadcast socket... $ECHO_C" >&6
11020
20884
if test "${ac_cv_var_open_bcast_socket+set}" = set; then
11021
20885
  echo $ECHO_N "(cached) $ECHO_C" >&6
11022
20886
else
11023
20887
  ans=yes
11024
 
case "$target" in
 
20888
case "$host" in
11025
20889
 *-*-domainos)
11026
20890
    ans=no
11027
20891
    ;;
11028
 
 *-*-linux*)
11029
 
    ans=no
11030
 
    ;;
11031
20892
esac
11032
20893
ac_cv_var_open_bcast_socket=$ans
11033
20894
fi
11034
 
echo "$as_me:11034: result: $ac_cv_var_open_bcast_socket" >&5
 
20895
echo "$as_me:$LINENO: result: $ac_cv_var_open_bcast_socket" >&5
11035
20896
echo "${ECHO_T}$ac_cv_var_open_bcast_socket" >&6
11036
20897
case "$ac_cv_var_open_bcast_socket" in
11037
 
 yes) cat >>confdefs.h <<\EOF
 
20898
 yes)
 
20899
cat >>confdefs.h <<\_ACEOF
11038
20900
#define OPEN_BCAST_SOCKET 1
11039
 
EOF
 
20901
_ACEOF
11040
20902
 ;;
11041
20903
esac
11042
20904
 
11043
 
echo "$as_me:11043: checking if we want the HPUX version of FindConfig()" >&5
 
20905
echo "$as_me:$LINENO: checking if we want the HPUX version of FindConfig()" >&5
11044
20906
echo $ECHO_N "checking if we want the HPUX version of FindConfig()... $ECHO_C" >&6
11045
20907
if test "${ac_cv_var_hpux_findconfig+set}" = set; then
11046
20908
  echo $ECHO_N "(cached) $ECHO_C" >&6
11047
20909
else
11048
20910
  ans=no
11049
 
case "$target" in
 
20911
case "$host" in
11050
20912
 *-*-hpux*)
11051
20913
    ans=yes
11052
20914
    ;;
11053
20915
esac
11054
20916
ac_cv_var_hpux_findconfig=$ans
11055
20917
fi
11056
 
echo "$as_me:11056: result: $ac_cv_var_hpux_findconfig" >&5
 
20918
echo "$as_me:$LINENO: result: $ac_cv_var_hpux_findconfig" >&5
11057
20919
echo "${ECHO_T}$ac_cv_var_hpux_findconfig" >&6
11058
20920
case "$ac_cv_var_hpux_findconfig" in
11059
 
 yes) cat >>confdefs.h <<\EOF
 
20921
 yes)
 
20922
cat >>confdefs.h <<\_ACEOF
11060
20923
#define NEED_HPUX_FINDCONFIG 1
11061
 
EOF
 
20924
_ACEOF
11062
20925
 ;;
11063
20926
esac
11064
20927
 
11065
 
echo "$as_me:11065: checking if process groups are set with -pid" >&5
 
20928
echo "$as_me:$LINENO: checking if process groups are set with -pid" >&5
11066
20929
echo $ECHO_N "checking if process groups are set with -pid... $ECHO_C" >&6
11067
20930
if test "${ac_cv_arg_setpgrp_negpid+set}" = set; then
11068
20931
  echo $ECHO_N "(cached) $ECHO_C" >&6
11069
20932
else
11070
 
  case "$target" in
 
20933
  case "$host" in
11071
20934
 *-*-hpux[567]*)
11072
20935
    ans=no
11073
20936
    ;;
11089
20952
esac
11090
20953
ac_cv_arg_setpgrp_negpid=$ans
11091
20954
fi
11092
 
echo "$as_me:11092: result: $ac_cv_arg_setpgrp_negpid" >&5
 
20955
echo "$as_me:$LINENO: result: $ac_cv_arg_setpgrp_negpid" >&5
11093
20956
echo "${ECHO_T}$ac_cv_arg_setpgrp_negpid" >&6
11094
20957
case "$ac_cv_arg_setpgrp_negpid" in
11095
 
 yes) cat >>confdefs.h <<\EOF
 
20958
 yes)
 
20959
cat >>confdefs.h <<\_ACEOF
11096
20960
#define UDP_BACKWARDS_SETOWN 1
11097
 
EOF
 
20961
_ACEOF
11098
20962
 ;;
11099
20963
esac
11100
20964
 
11101
 
echo "$as_me:11101: checking if we need a ctty for F_SETOWN" >&5
 
20965
echo "$as_me:$LINENO: checking if we need a ctty for F_SETOWN" >&5
11102
20966
echo $ECHO_N "checking if we need a ctty for F_SETOWN... $ECHO_C" >&6
11103
20967
if test "${ac_cv_func_ctty_for_f_setown+set}" = set; then
11104
20968
  echo $ECHO_N "(cached) $ECHO_C" >&6
11105
20969
else
11106
 
  case "$target" in
11107
 
 *-*-bsdi23*)
 
20970
  case "$host" in
 
20971
 *-*-bsdi[23]*)
11108
20972
    ans=yes
11109
20973
    ;;
11110
20974
 *-*-freebsd*)
11124
20988
esac
11125
20989
ac_cv_func_ctty_for_f_setown=$ans
11126
20990
fi
11127
 
echo "$as_me:11127: result: $ac_cv_func_ctty_for_f_setown" >&5
 
20991
echo "$as_me:$LINENO: result: $ac_cv_func_ctty_for_f_setown" >&5
11128
20992
echo "${ECHO_T}$ac_cv_func_ctty_for_f_setown" >&6
11129
20993
case "$ac_cv_func_ctty_for_f_setown" in
11130
 
 yes) cat >>confdefs.h <<\EOF
 
20994
 yes)
 
20995
cat >>confdefs.h <<\_ACEOF
11131
20996
#define USE_FSETOWNCTTY 1
11132
 
EOF
 
20997
_ACEOF
11133
20998
 ;;
11134
20999
esac
11135
21000
 
11136
21001
ntp_warning='GRONK'
11137
 
echo "$as_me:11137: checking if we'll use clock_settime or settimeofday or stime" >&5
 
21002
echo "$as_me:$LINENO: checking if we'll use clock_settime or settimeofday or stime" >&5
11138
21003
echo $ECHO_N "checking if we'll use clock_settime or settimeofday or stime... $ECHO_C" >&6
11139
21004
case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
11140
21005
 yes*)
11150
21015
    ans='stime()'
11151
21016
    ;;
11152
21017
 *)
11153
 
    case "$host" in
11154
 
     $target) ntp_warning='Which leaves us with nothing to use!'
 
21018
    case "$build" in
 
21019
     $host) ntp_warning='Which leaves us with nothing to use!'
11155
21020
    ans=none
11156
21021
    ;;
11157
21022
esac
11158
21023
esac
11159
 
echo "$as_me:11159: result: $ans" >&5
 
21024
echo "$as_me:$LINENO: result: $ans" >&5
11160
21025
echo "${ECHO_T}$ans" >&6
11161
21026
case "$ntp_warning" in
11162
21027
 '') ;;
11163
 
 *) { echo "$as_me:11163: WARNING: *** $ntp_warning ***" >&5
 
21028
 *) { echo "$as_me:$LINENO: WARNING: *** $ntp_warning ***" >&5
11164
21029
echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
11165
21030
    ;;
11166
21031
esac
11167
21032
 
11168
 
echo "$as_me:11168: checking if we have a losing syscall()" >&5
 
21033
echo "$as_me:$LINENO: checking if we have a losing syscall()" >&5
11169
21034
echo $ECHO_N "checking if we have a losing syscall()... $ECHO_C" >&6
11170
21035
if test "${ac_cv_var_syscall_bug+set}" = set; then
11171
21036
  echo $ECHO_N "(cached) $ECHO_C" >&6
11172
21037
else
11173
 
  case "$target" in
 
21038
  case "$host" in
11174
21039
 *-*-solaris2.4*)
11175
21040
    ans=yes
11176
21041
    ;;
11179
21044
esac
11180
21045
ac_cv_var_syscall_bug=$ans
11181
21046
fi
11182
 
echo "$as_me:11182: result: $ac_cv_var_syscall_bug" >&5
 
21047
echo "$as_me:$LINENO: result: $ac_cv_var_syscall_bug" >&5
11183
21048
echo "${ECHO_T}$ac_cv_var_syscall_bug" >&6
11184
21049
case "$ac_cv_var_syscall_bug" in
11185
 
 yes) cat >>confdefs.h <<\EOF
 
21050
 yes)
 
21051
cat >>confdefs.h <<\_ACEOF
11186
21052
#define SYSCALL_BUG 1
11187
 
EOF
 
21053
_ACEOF
11188
21054
 ;;
11189
21055
esac
11190
21056
 
11191
 
echo "$as_me:11191: checking for Streams/TLI" >&5
 
21057
echo "$as_me:$LINENO: checking for Streams/TLI" >&5
11192
21058
echo $ECHO_N "checking for Streams/TLI... $ECHO_C" >&6
11193
21059
if test "${ac_cv_var_streams_tli+set}" = set; then
11194
21060
  echo $ECHO_N "(cached) $ECHO_C" >&6
11197
21063
  yes)
11198
21064
     ans=no
11199
21065
     # There must be a better way...
11200
 
     case "$target" in
 
21066
     case "$host" in
11201
21067
      *-*-ptx*)
11202
21068
         ans=yes
11203
21069
         ;;
11206
21072
 esac
11207
21073
 ac_cv_var_streams_tli=$ans
11208
21074
fi
11209
 
echo "$as_me:11209: result: $ac_cv_var_streams_tli" >&5
 
21075
echo "$as_me:$LINENO: result: $ac_cv_var_streams_tli" >&5
11210
21076
echo "${ECHO_T}$ac_cv_var_streams_tli" >&6
11211
21077
case "$ac_cv_var_streams_tli" in
11212
21078
 yes)
11213
 
    cat >>confdefs.h <<\EOF
 
21079
 
 
21080
cat >>confdefs.h <<\_ACEOF
11214
21081
#define STREAMS_TLI 1
11215
 
EOF
 
21082
_ACEOF
11216
21083
 
11217
21084
    ;;
11218
21085
esac
11219
21086
 
11220
 
echo "$as_me:11220: checking for SIGIO" >&5
 
21087
echo "$as_me:$LINENO: checking for SIGIO" >&5
11221
21088
echo $ECHO_N "checking for SIGIO... $ECHO_C" >&6
11222
21089
if test "${ac_cv_hdr_def_sigio+set}" = set; then
11223
21090
  echo $ECHO_N "(cached) $ECHO_C" >&6
11224
21091
else
11225
21092
  cat >conftest.$ac_ext <<_ACEOF
11226
 
#line 11226 "configure"
11227
 
#include "confdefs.h"
 
21093
/* confdefs.h.  */
 
21094
_ACEOF
 
21095
cat confdefs.h >>conftest.$ac_ext
 
21096
cat >>conftest.$ac_ext <<_ACEOF
 
21097
/* end confdefs.h.  */
11228
21098
#include <signal.h>
11229
21099
#ifdef SIGIO
11230
21100
   yes
11232
21102
 
11233
21103
_ACEOF
11234
21104
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11235
 
  egrep "yes" >/dev/null 2>&1; then
 
21105
  $EGREP "yes" >/dev/null 2>&1; then
11236
21106
  ac_cv_hdr_def_sigio=yes
11237
21107
else
11238
21108
  ac_cv_hdr_def_sigio=no
11240
21110
rm -f conftest*
11241
21111
 
11242
21112
fi
11243
 
echo "$as_me:11243: result: $ac_cv_hdr_def_sigio" >&5
 
21113
echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigio" >&5
11244
21114
echo "${ECHO_T}$ac_cv_hdr_def_sigio" >&6
11245
21115
 
11246
 
echo "$as_me:11246: checking if we want to use signalled IO" >&5
 
21116
echo "$as_me:$LINENO: checking if we want to use signalled IO" >&5
11247
21117
echo $ECHO_N "checking if we want to use signalled IO... $ECHO_C" >&6
11248
21118
if test "${ac_cv_var_signalled_io+set}" = set; then
11249
21119
  echo $ECHO_N "(cached) $ECHO_C" >&6
11252
21122
case "$ac_cv_hdr_def_sigio" in
11253
21123
 yes)
11254
21124
    ans=yes
11255
 
    case "$target" in
 
21125
    case "$host" in
11256
21126
     alpha*-dec-osf4*|alpha*-dec-osf5*)
11257
21127
        ans=no
11258
21128
        ;;
11280
21150
     *-*-linux*)
11281
21151
        ans=no
11282
21152
        ;;
 
21153
     *-*-unicosmp*)
 
21154
        ans=no
 
21155
        ;;
11283
21156
    esac
11284
21157
    ;;
11285
21158
esac
11286
21159
ac_cv_var_signalled_io=$ans
11287
21160
fi
11288
 
echo "$as_me:11288: result: $ac_cv_var_signalled_io" >&5
 
21161
echo "$as_me:$LINENO: result: $ac_cv_var_signalled_io" >&5
11289
21162
echo "${ECHO_T}$ac_cv_var_signalled_io" >&6
11290
21163
case "$ac_cv_var_signalled_io" in
11291
 
 yes) cat >>confdefs.h <<\EOF
 
21164
 yes)
 
21165
cat >>confdefs.h <<\_ACEOF
11292
21166
#define HAVE_SIGNALED_IO 1
11293
 
EOF
 
21167
_ACEOF
11294
21168
 ;;
11295
21169
esac
11296
21170
 
11297
 
echo "$as_me:11297: checking for SIGPOLL" >&5
 
21171
echo "$as_me:$LINENO: checking for SIGPOLL" >&5
11298
21172
echo $ECHO_N "checking for SIGPOLL... $ECHO_C" >&6
11299
21173
if test "${ac_cv_hdr_def_sigpoll+set}" = set; then
11300
21174
  echo $ECHO_N "(cached) $ECHO_C" >&6
11301
21175
else
11302
21176
  cat >conftest.$ac_ext <<_ACEOF
11303
 
#line 11303 "configure"
11304
 
#include "confdefs.h"
 
21177
/* confdefs.h.  */
 
21178
_ACEOF
 
21179
cat confdefs.h >>conftest.$ac_ext
 
21180
cat >>conftest.$ac_ext <<_ACEOF
 
21181
/* end confdefs.h.  */
11305
21182
#include <signal.h>
11306
21183
#ifdef SIGPOLL
11307
21184
  yes
11309
21186
 
11310
21187
_ACEOF
11311
21188
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11312
 
  egrep "yes" >/dev/null 2>&1; then
 
21189
  $EGREP "yes" >/dev/null 2>&1; then
11313
21190
  ac_cv_hdr_def_sigpoll=yes
11314
21191
else
11315
21192
  ac_cv_hdr_def_sigpoll=no
11317
21194
rm -f conftest*
11318
21195
 
11319
21196
fi
11320
 
echo "$as_me:11320: result: $ac_cv_hdr_def_sigpoll" >&5
 
21197
echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigpoll" >&5
11321
21198
echo "${ECHO_T}$ac_cv_hdr_def_sigpoll" >&6
11322
21199
 
11323
 
echo "$as_me:11323: checking for SIGSYS" >&5
 
21200
echo "$as_me:$LINENO: checking for SIGSYS" >&5
11324
21201
echo $ECHO_N "checking for SIGSYS... $ECHO_C" >&6
11325
21202
if test "${ac_cv_hdr_def_sigsys+set}" = set; then
11326
21203
  echo $ECHO_N "(cached) $ECHO_C" >&6
11327
21204
else
11328
21205
  cat >conftest.$ac_ext <<_ACEOF
11329
 
#line 11329 "configure"
11330
 
#include "confdefs.h"
 
21206
/* confdefs.h.  */
 
21207
_ACEOF
 
21208
cat confdefs.h >>conftest.$ac_ext
 
21209
cat >>conftest.$ac_ext <<_ACEOF
 
21210
/* end confdefs.h.  */
11331
21211
#include <signal.h>
11332
21212
#ifdef SIGSYS
11333
21213
  yes
11335
21215
 
11336
21216
_ACEOF
11337
21217
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11338
 
  egrep "yes" >/dev/null 2>&1; then
 
21218
  $EGREP "yes" >/dev/null 2>&1; then
11339
21219
  ac_cv_hdr_def_sigsys=yes
11340
21220
else
11341
21221
  ac_cv_hdr_def_sigsys=no
11343
21223
rm -f conftest*
11344
21224
 
11345
21225
fi
11346
 
echo "$as_me:11346: result: $ac_cv_hdr_def_sigsys" >&5
 
21226
echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigsys" >&5
11347
21227
echo "${ECHO_T}$ac_cv_hdr_def_sigsys" >&6
11348
21228
 
11349
 
echo "$as_me:11349: checking if we can use SIGPOLL for UDP I/O" >&5
 
21229
echo "$as_me:$LINENO: checking if we can use SIGPOLL for UDP I/O" >&5
11350
21230
echo $ECHO_N "checking if we can use SIGPOLL for UDP I/O... $ECHO_C" >&6
11351
21231
if test "${ac_cv_var_use_udp_sigpoll+set}" = set; then
11352
21232
  echo $ECHO_N "(cached) $ECHO_C" >&6
11354
21234
  ans=no
11355
21235
case "$ac_cv_hdr_def_sigpoll" in
11356
21236
 yes)
11357
 
    case "$target" in
 
21237
    case "$host" in
11358
21238
     mips-sgi-irix*)
11359
21239
        ans=no
11360
21240
        ;;
11367
21247
     *-sni-sysv*)
11368
21248
        ans=no
11369
21249
        ;;
11370
 
     *-*-aix4*)
 
21250
     *-*-aix[45]*)
11371
21251
        ans=no
11372
21252
        ;;
11373
21253
     *-*-hpux*)
11379
21259
     *-*-osf*)
11380
21260
        ans=no
11381
21261
        ;;
 
21262
     *-*-qnx*)
 
21263
        ans=no
 
21264
        ;;
11382
21265
     *-*-sunos*)
11383
21266
        ans=no
11384
21267
        ;;
11385
21268
     *-*-ultrix*)
11386
21269
        ans=no
11387
21270
        ;;
 
21271
     *-*-unicosmp*)
 
21272
        ans=no
 
21273
        ;;
11388
21274
     *) ans=yes
11389
21275
        ;;
11390
21276
    esac
11392
21278
esac
11393
21279
ac_cv_var_use_udp_sigpoll=$ans
11394
21280
fi
11395
 
echo "$as_me:11395: result: $ac_cv_var_use_udp_sigpoll" >&5
 
21281
echo "$as_me:$LINENO: result: $ac_cv_var_use_udp_sigpoll" >&5
11396
21282
echo "${ECHO_T}$ac_cv_var_use_udp_sigpoll" >&6
11397
21283
case "$ac_cv_var_use_udp_sigpoll" in
11398
 
 yes) cat >>confdefs.h <<\EOF
 
21284
 yes)
 
21285
cat >>confdefs.h <<\_ACEOF
11399
21286
#define USE_UDP_SIGPOLL 1
11400
 
EOF
 
21287
_ACEOF
11401
21288
 ;;
11402
21289
esac
11403
21290
 
11404
 
echo "$as_me:11404: checking if we can use SIGPOLL for TTY I/O" >&5
 
21291
echo "$as_me:$LINENO: checking if we can use SIGPOLL for TTY I/O" >&5
11405
21292
echo $ECHO_N "checking if we can use SIGPOLL for TTY I/O... $ECHO_C" >&6
11406
21293
if test "${ac_cv_var_use_tty_sigpoll+set}" = set; then
11407
21294
  echo $ECHO_N "(cached) $ECHO_C" >&6
11409
21296
  ans=no
11410
21297
case "$ac_cv_hdr_def_sigpoll" in
11411
21298
 yes)
11412
 
    case "$target" in
 
21299
    case "$host" in
11413
21300
     mips-sgi-irix*)
11414
21301
        ans=no
11415
21302
        ;;
11422
21309
     *-sni-sysv*)
11423
21310
        ans=no
11424
21311
        ;;
11425
 
     *-*-aix4*)
 
21312
     *-*-aix[45]*)
11426
21313
        ans=no
11427
21314
        ;;
11428
21315
     *-*-hpux*)
11440
21327
     *-*-ultrix*)
11441
21328
        ans=no
11442
21329
        ;;
 
21330
     *-*-qnx*)
 
21331
        ans=no
 
21332
        ;;
 
21333
     *-*-unicosmp*)
 
21334
        ans=no
 
21335
        ;;
11443
21336
     *) ans=yes
11444
21337
        ;;
11445
21338
    esac
11447
21340
esac
11448
21341
ac_cv_var_use_tty_sigpoll=$ans
11449
21342
fi
11450
 
echo "$as_me:11450: result: $ac_cv_var_use_tty_sigpoll" >&5
 
21343
echo "$as_me:$LINENO: result: $ac_cv_var_use_tty_sigpoll" >&5
11451
21344
echo "${ECHO_T}$ac_cv_var_use_tty_sigpoll" >&6
11452
21345
case "$ac_cv_var_use_tty_sigpoll" in
11453
 
 yes) cat >>confdefs.h <<\EOF
 
21346
 yes)
 
21347
cat >>confdefs.h <<\_ACEOF
11454
21348
#define USE_TTY_SIGPOLL 1
11455
 
EOF
 
21349
_ACEOF
11456
21350
 ;;
11457
21351
esac
11458
21352
 
11459
21353
case "$ac_cv_header_sys_sio_h" in
11460
21354
 yes)
11461
 
    echo "$as_me:11461: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5
 
21355
    echo "$as_me:$LINENO: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5
11462
21356
echo $ECHO_N "checking sys/sio.h for TIOCDCDTIMESTAMP... $ECHO_C" >&6
11463
21357
if test "${ac_cv_hdr_def_tiocdcdtimestamp+set}" = set; then
11464
21358
  echo $ECHO_N "(cached) $ECHO_C" >&6
11465
21359
else
11466
21360
  cat >conftest.$ac_ext <<_ACEOF
11467
 
#line 11467 "configure"
11468
 
#include "confdefs.h"
 
21361
/* confdefs.h.  */
 
21362
_ACEOF
 
21363
cat confdefs.h >>conftest.$ac_ext
 
21364
cat >>conftest.$ac_ext <<_ACEOF
 
21365
/* end confdefs.h.  */
11469
21366
#include <sys/sio.h>
11470
21367
#ifdef TIOCDCDTIMESTAMP
11471
21368
  yes
11473
21370
 
11474
21371
_ACEOF
11475
21372
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11476
 
  egrep "yes" >/dev/null 2>&1; then
 
21373
  $EGREP "yes" >/dev/null 2>&1; then
11477
21374
  ac_cv_hdr_def_tiocdcdtimestamp=yes
11478
21375
else
11479
21376
  ac_cv_hdr_def_tiocdcdtimestamp=no
11481
21378
rm -f conftest*
11482
21379
 
11483
21380
fi
11484
 
echo "$as_me:11484: result: $ac_cv_hdr_def_tiocdcdtimestamp" >&5
 
21381
echo "$as_me:$LINENO: result: $ac_cv_hdr_def_tiocdcdtimestamp" >&5
11485
21382
echo "${ECHO_T}$ac_cv_hdr_def_tiocdcdtimestamp" >&6
11486
21383
    ;;
11487
21384
esac
11492
21389
    ;;
11493
21390
esac
11494
21391
 
11495
 
echo "$as_me:11495: checking if nlist() values might require extra indirection" >&5
 
21392
echo "$as_me:$LINENO: checking if nlist() values might require extra indirection" >&5
11496
21393
echo $ECHO_N "checking if nlist() values might require extra indirection... $ECHO_C" >&6
11497
21394
if test "${ac_cv_var_nlist_extra_indirection+set}" = set; then
11498
21395
  echo $ECHO_N "(cached) $ECHO_C" >&6
11499
21396
else
11500
21397
  ans=no
11501
 
case "$target" in
 
21398
case "$host" in
11502
21399
 *-*-aix*)
11503
21400
    ans=yes
11504
21401
    ;;
11505
21402
esac
11506
21403
ac_cv_var_nlist_extra_indirection=$ans
11507
21404
fi
11508
 
echo "$as_me:11508: result: $ac_cv_var_nlist_extra_indirection" >&5
 
21405
echo "$as_me:$LINENO: result: $ac_cv_var_nlist_extra_indirection" >&5
11509
21406
echo "${ECHO_T}$ac_cv_var_nlist_extra_indirection" >&6
11510
21407
case "$ac_cv_var_nlist_extra_indirection" in
11511
 
 yes) cat >>confdefs.h <<\EOF
 
21408
 yes)
 
21409
cat >>confdefs.h <<\_ACEOF
11512
21410
#define NLIST_EXTRA_INDIRECTION 1
11513
 
EOF
 
21411
_ACEOF
11514
21412
 ;;
11515
21413
esac
11516
21414
 
11517
 
echo "$as_me:11517: checking for a minimum recommended value of tickadj" >&5
 
21415
echo "$as_me:$LINENO: checking for a minimum recommended value of tickadj" >&5
11518
21416
echo $ECHO_N "checking for a minimum recommended value of tickadj... $ECHO_C" >&6
11519
21417
if test "${ac_cv_var_min_rec_tickadj+set}" = set; then
11520
21418
  echo $ECHO_N "(cached) $ECHO_C" >&6
11521
21419
else
11522
21420
  ans=no
11523
 
case "$target" in
 
21421
case "$host" in
11524
21422
 *-*-aix*)
11525
21423
    ans=40
11526
21424
    ;;
11527
21425
esac
11528
21426
ac_cv_var_min_rec_tickadj=$ans
11529
21427
fi
11530
 
echo "$as_me:11530: result: $ac_cv_var_min_rec_tickadj" >&5
 
21428
echo "$as_me:$LINENO: result: $ac_cv_var_min_rec_tickadj" >&5
11531
21429
echo "${ECHO_T}$ac_cv_var_min_rec_tickadj" >&6
11532
21430
case "$ac_cv_var_min_rec_tickadj" in
11533
21431
 ''|no) ;;
11534
 
 *) cat >>confdefs.h <<EOF
 
21432
 *)
 
21433
cat >>confdefs.h <<_ACEOF
11535
21434
#define MIN_REC_TICKADJ $ac_cv_var_min_rec_tickadj
11536
 
EOF
 
21435
_ACEOF
11537
21436
 ;;
11538
21437
esac
11539
21438
 
11540
 
echo "$as_me:11540: checking if the TTY code permits PARENB and IGNPAR" >&5
 
21439
echo "$as_me:$LINENO: checking if the TTY code permits PARENB and IGNPAR" >&5
11541
21440
echo $ECHO_N "checking if the TTY code permits PARENB and IGNPAR... $ECHO_C" >&6
11542
21441
if test "${ac_cv_var_no_parenb_ignpar+set}" = set; then
11543
21442
  echo $ECHO_N "(cached) $ECHO_C" >&6
11544
21443
else
11545
21444
  ans=no
11546
 
case "$target" in
 
21445
case "$host" in
11547
21446
 i?86-*-linux*)
11548
21447
    ans=yes
11549
21448
    ;;
11550
21449
 mips-sgi-irix*)
11551
21450
    ans=yes
11552
21451
    ;;
 
21452
 i?86-*-freebsd[123].*)
 
21453
    ;;
 
21454
 i?86-*-freebsd*)
 
21455
    ans=yes
 
21456
    ;;
 
21457
 *-*-unicosmp*)
 
21458
    ans=yes
 
21459
    ;;
11553
21460
esac
11554
21461
ac_cv_var_no_parenb_ignpar=$ans
11555
21462
fi
11556
 
echo "$as_me:11556: result: $ac_cv_var_no_parenb_ignpar" >&5
 
21463
echo "$as_me:$LINENO: result: $ac_cv_var_no_parenb_ignpar" >&5
11557
21464
echo "${ECHO_T}$ac_cv_var_no_parenb_ignpar" >&6
11558
21465
case "$ac_cv_var_no_parenb_ignpar" in
11559
 
 yes) cat >>confdefs.h <<\EOF
 
21466
 yes)
 
21467
cat >>confdefs.h <<\_ACEOF
11560
21468
#define NO_PARENB_IGNPAR 1
11561
 
EOF
 
21469
_ACEOF
11562
21470
 ;;
11563
21471
esac
11564
21472
 
11565
 
echo "$as_me:11565: checking if we're including debugging code" >&5
 
21473
echo "$as_me:$LINENO: checking if we're including debugging code" >&5
11566
21474
echo $ECHO_N "checking if we're including debugging code... $ECHO_C" >&6
11567
21475
# Check whether --enable-debugging or --disable-debugging was given.
11568
21476
if test "${enable_debugging+set}" = set; then
11572
21480
  ntp_ok=yes
11573
21481
fi;
11574
21482
if test "$ntp_ok" = "yes"; then
11575
 
    cat >>confdefs.h <<\EOF
 
21483
 
 
21484
cat >>confdefs.h <<\_ACEOF
11576
21485
#define DEBUG 1
11577
 
EOF
 
21486
_ACEOF
11578
21487
 
11579
21488
fi
11580
 
echo "$as_me:11580: result: $ntp_ok" >&5
 
21489
echo "$as_me:$LINENO: result: $ntp_ok" >&5
11581
21490
echo "${ECHO_T}$ntp_ok" >&6
11582
21491
 
11583
 
echo "$as_me:11583: checking for a the number of minutes in a DST adjustment" >&5
 
21492
echo "$as_me:$LINENO: checking for a the number of minutes in a DST adjustment" >&5
11584
21493
echo $ECHO_N "checking for a the number of minutes in a DST adjustment... $ECHO_C" >&6
11585
21494
# Check whether --enable-dst_minutes or --disable-dst_minutes was given.
11586
21495
if test "${enable_dst_minutes+set}" = set; then
11589
21498
else
11590
21499
  ans=60
11591
21500
fi;
11592
 
cat >>confdefs.h <<EOF
 
21501
 
 
21502
cat >>confdefs.h <<_ACEOF
11593
21503
#define DSTMINUTES $ans
11594
 
EOF
 
21504
_ACEOF
11595
21505
 
11596
 
echo "$as_me:11596: result: $ans" >&5
 
21506
echo "$as_me:$LINENO: result: $ans" >&5
11597
21507
echo "${ECHO_T}$ans" >&6
11598
21508
 
11599
 
echo "$as_me:11599: checking if we have the tty_clk line discipline/streams module" >&5
 
21509
echo "$as_me:$LINENO: checking if we have the tty_clk line discipline/streams module" >&5
11600
21510
echo $ECHO_N "checking if we have the tty_clk line discipline/streams module... $ECHO_C" >&6
11601
21511
if test "${ac_cv_var_tty_clk+set}" = set; then
11602
21512
  echo $ECHO_N "(cached) $ECHO_C" >&6
11605
21515
  *yes*) ac_cv_var_tty_clk=yes ;;
11606
21516
 esac
11607
21517
fi
11608
 
echo "$as_me:11608: result: $ac_cv_var_tty_clk" >&5
 
21518
echo "$as_me:$LINENO: result: $ac_cv_var_tty_clk" >&5
11609
21519
echo "${ECHO_T}$ac_cv_var_tty_clk" >&6
11610
21520
case "$ac_cv_var_tty_clk" in
11611
 
 yes) cat >>confdefs.h <<\EOF
 
21521
 yes)
 
21522
cat >>confdefs.h <<\_ACEOF
11612
21523
#define TTYCLK 1
11613
 
EOF
 
21524
_ACEOF
11614
21525
 ;;
11615
21526
esac
11616
21527
 
11617
 
echo "$as_me:11617: checking for the ppsclock streams module" >&5
 
21528
echo "$as_me:$LINENO: checking for the ppsclock streams module" >&5
11618
21529
echo $ECHO_N "checking for the ppsclock streams module... $ECHO_C" >&6
11619
21530
if test "${ac_cv_var_ppsclock+set}" = set; then
11620
21531
  echo $ECHO_N "(cached) $ECHO_C" >&6
11621
21532
else
11622
21533
  ac_cv_var_ppsclock=$ac_cv_struct_ppsclockev
11623
21534
fi
11624
 
echo "$as_me:11624: result: $ac_cv_var_ppsclock" >&5
 
21535
echo "$as_me:$LINENO: result: $ac_cv_var_ppsclock" >&5
11625
21536
echo "${ECHO_T}$ac_cv_var_ppsclock" >&6
11626
21537
case "$ac_cv_var_ppsclock" in
11627
 
 yes) cat >>confdefs.h <<\EOF
 
21538
 yes)
 
21539
cat >>confdefs.h <<\_ACEOF
11628
21540
#define PPS 1
11629
 
EOF
 
21541
_ACEOF
11630
21542
 ;;
11631
21543
esac
11632
21544
 
11633
 
echo "$as_me:11633: checking for kernel multicast support" >&5
 
21545
echo "$as_me:$LINENO: checking for kernel multicast support" >&5
11634
21546
echo $ECHO_N "checking for kernel multicast support... $ECHO_C" >&6
11635
21547
if test "${ac_cv_var_mcast+set}" = set; then
11636
21548
  echo $ECHO_N "(cached) $ECHO_C" >&6
11637
21549
else
11638
21550
  ac_cv_var_mcast=no
11639
 
  case "$target" in
 
21551
  case "$host" in
11640
21552
   i386-sequent-sysv4) ;;
11641
21553
   *) cat >conftest.$ac_ext <<_ACEOF
11642
 
#line 11642 "configure"
11643
 
#include "confdefs.h"
 
21554
/* confdefs.h.  */
 
21555
_ACEOF
 
21556
cat confdefs.h >>conftest.$ac_ext
 
21557
cat >>conftest.$ac_ext <<_ACEOF
 
21558
/* end confdefs.h.  */
11644
21559
#include <netinet/in.h>
11645
21560
#ifdef IP_ADD_MEMBERSHIP
11646
21561
   yes
11648
21563
 
11649
21564
_ACEOF
11650
21565
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11651
 
  egrep "yes" >/dev/null 2>&1; then
 
21566
  $EGREP "yes" >/dev/null 2>&1; then
11652
21567
  ac_cv_var_mcast=yes
11653
21568
fi
11654
21569
rm -f conftest*
11655
21570
 ;;
11656
21571
  esac
11657
21572
fi
11658
 
echo "$as_me:11658: result: $ac_cv_var_mcast" >&5
 
21573
echo "$as_me:$LINENO: result: $ac_cv_var_mcast" >&5
11659
21574
echo "${ECHO_T}$ac_cv_var_mcast" >&6
11660
21575
case "$ac_cv_var_mcast" in
11661
 
 yes) cat >>confdefs.h <<\EOF
 
21576
 yes)
 
21577
cat >>confdefs.h <<\_ACEOF
11662
21578
#define MCAST 1
11663
 
EOF
 
21579
_ACEOF
11664
21580
 ;;
11665
21581
esac
11666
21582
 
11667
 
echo "$as_me:11667: checking availability of ntp_{adj,get}time()" >&5
 
21583
echo "$as_me:$LINENO: checking availability of ntp_{adj,get}time()" >&5
11668
21584
echo $ECHO_N "checking availability of ntp_{adj,get}time()... $ECHO_C" >&6
11669
21585
if test "${ac_cv_var_ntp_syscalls+set}" = set; then
11670
21586
  echo $ECHO_N "(cached) $ECHO_C" >&6
11671
21587
else
11672
21588
  ac_cv_var_ntp_syscalls=no
11673
 
 case "$ac_cv_func___adjtimex" in
11674
 
  yes)
11675
 
    ac_cv_var_ntp_syscalls=libc
11676
 
    ;;
11677
 
  *) case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime" in
11678
 
      yesyes)
11679
 
        ac_cv_var_ntp_syscalls=libc
11680
 
        ;;
 
21589
 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime" in
 
21590
  yesyes)
 
21591
     ac_cv_var_ntp_syscalls=libc
 
21592
     ;;
 
21593
  *) case "$ac_cv_func___adjtimex" in
 
21594
      yes)
 
21595
         ac_cv_var_ntp_syscalls=adjtimex
 
21596
         ;;
11681
21597
      *) cat >conftest.$ac_ext <<_ACEOF
11682
 
#line 11682 "configure"
11683
 
#include "confdefs.h"
 
21598
/* confdefs.h.  */
 
21599
_ACEOF
 
21600
cat confdefs.h >>conftest.$ac_ext
 
21601
cat >>conftest.$ac_ext <<_ACEOF
 
21602
/* end confdefs.h.  */
11684
21603
#include <sys/syscall.h>
11685
21604
#if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime)
11686
21605
           yes
11688
21607
 
11689
21608
_ACEOF
11690
21609
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11691
 
  egrep "yes" >/dev/null 2>&1; then
 
21610
  $EGREP "yes" >/dev/null 2>&1; then
11692
21611
  ac_cv_var_ntp_syscalls=kernel
11693
21612
fi
11694
21613
rm -f conftest*
11698
21617
     ;;
11699
21618
 esac
11700
21619
fi
11701
 
echo "$as_me:11701: result: $ac_cv_var_ntp_syscalls" >&5
 
21620
echo "$as_me:$LINENO: result: $ac_cv_var_ntp_syscalls" >&5
11702
21621
echo "${ECHO_T}$ac_cv_var_ntp_syscalls" >&6
11703
21622
case "$ac_cv_var_ntp_syscalls" in
11704
21623
 libc)
11705
 
    cat >>confdefs.h <<\EOF
 
21624
 
 
21625
cat >>confdefs.h <<\_ACEOF
11706
21626
#define NTP_SYSCALLS_LIBC 1
11707
 
EOF
 
21627
_ACEOF
11708
21628
 
11709
21629
    ;;
11710
21630
 kernel)
11711
 
    cat >>confdefs.h <<\EOF
 
21631
 
 
21632
cat >>confdefs.h <<\_ACEOF
11712
21633
#define NTP_SYSCALLS_STD 1
11713
 
EOF
 
21634
_ACEOF
11714
21635
 
11715
21636
    ;;
11716
21637
 *)
11717
21638
    ;;
11718
21639
esac
11719
21640
 
11720
 
echo "$as_me:11720: checking if sys/timex.h has STA_FLL" >&5
 
21641
echo "$as_me:$LINENO: checking if sys/timex.h has STA_FLL" >&5
11721
21642
echo $ECHO_N "checking if sys/timex.h has STA_FLL... $ECHO_C" >&6
11722
21643
if test "${ac_cv_var_sta_fll+set}" = set; then
11723
21644
  echo $ECHO_N "(cached) $ECHO_C" >&6
11724
21645
else
11725
21646
  cat >conftest.$ac_ext <<_ACEOF
11726
 
#line 11726 "configure"
11727
 
#include "confdefs.h"
 
21647
/* confdefs.h.  */
 
21648
_ACEOF
 
21649
cat confdefs.h >>conftest.$ac_ext
 
21650
cat >>conftest.$ac_ext <<_ACEOF
 
21651
/* end confdefs.h.  */
11728
21652
#include <sys/timex.h>
11729
21653
#ifdef STA_FLL
11730
21654
    yes
11732
21656
 
11733
21657
_ACEOF
11734
21658
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11735
 
  egrep "yes" >/dev/null 2>&1; then
 
21659
  $EGREP "yes" >/dev/null 2>&1; then
11736
21660
  ac_cv_var_sta_fll=yes
11737
21661
else
11738
21662
  ac_cv_var_sta_fll=no
11740
21664
rm -f conftest*
11741
21665
 
11742
21666
fi
11743
 
echo "$as_me:11743: result: $ac_cv_var_sta_fll" >&5
 
21667
echo "$as_me:$LINENO: result: $ac_cv_var_sta_fll" >&5
11744
21668
echo "${ECHO_T}$ac_cv_var_sta_fll" >&6
11745
21669
 
11746
 
echo "$as_me:11746: checking if we have kernel PLL support" >&5
 
21670
echo "$as_me:$LINENO: checking if we have kernel PLL support" >&5
11747
21671
echo $ECHO_N "checking if we have kernel PLL support... $ECHO_C" >&6
11748
21672
if test "${ac_cv_var_kernel_pll+set}" = set; then
11749
21673
  echo $ECHO_N "(cached) $ECHO_C" >&6
11756
21680
    ;;
11757
21681
esac
11758
21682
fi
11759
 
echo "$as_me:11759: result: $ac_cv_var_kernel_pll" >&5
 
21683
echo "$as_me:$LINENO: result: $ac_cv_var_kernel_pll" >&5
11760
21684
echo "${ECHO_T}$ac_cv_var_kernel_pll" >&6
11761
21685
case "$ac_cv_var_kernel_pll" in
11762
21686
 yes)
11763
 
    cat >>confdefs.h <<\EOF
 
21687
 
 
21688
cat >>confdefs.h <<\_ACEOF
11764
21689
#define KERNEL_PLL 1
11765
 
EOF
 
21690
_ACEOF
11766
21691
 
11767
21692
    ;;
11768
21693
esac
11769
21694
 
11770
 
echo "$as_me:11770: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
 
21695
echo "$as_me:$LINENO: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
11771
21696
echo $ECHO_N "checking if SIOCGIFCONF returns buffer size in the buffer... $ECHO_C" >&6
11772
21697
if test "${ac_cv_var_size_returned_in_buffer+set}" = set; then
11773
21698
  echo $ECHO_N "(cached) $ECHO_C" >&6
11774
21699
else
11775
21700
  ans=no
11776
 
  case "$target" in
 
21701
  case "$host" in
11777
21702
   *-fujitsu-uxp*)
11778
21703
      ans=yes
11779
21704
      ;;
11786
21711
  esac
11787
21712
  ac_cv_var_size_returned_in_buffer=$ans
11788
21713
fi
11789
 
echo "$as_me:11789: result: $ac_cv_var_size_returned_in_buffer" >&5
 
21714
echo "$as_me:$LINENO: result: $ac_cv_var_size_returned_in_buffer" >&5
11790
21715
echo "${ECHO_T}$ac_cv_var_size_returned_in_buffer" >&6
11791
21716
case "$ac_cv_var_size_returned_in_buffer" in
11792
 
 yes) cat >>confdefs.h <<\EOF
 
21717
 yes)
 
21718
cat >>confdefs.h <<\_ACEOF
11793
21719
#define SIZE_RETURNED_IN_BUFFER 1
11794
 
EOF
 
21720
_ACEOF
11795
21721
 ;;
11796
21722
esac
11797
21723
 
 
21724
 
11798
21725
# Check for ioctls TIOCGPPSEV
11799
 
echo "$as_me:11799: checking ioctl TIOCGPPSEV" >&5
 
21726
echo "$as_me:$LINENO: checking ioctl TIOCGPPSEV" >&5
11800
21727
echo $ECHO_N "checking ioctl TIOCGPPSEV... $ECHO_C" >&6
11801
21728
if test "$ac_cv_header_termios_h" = "yes"; then
11802
21729
    cat >conftest.$ac_ext <<_ACEOF
11803
 
#line 11803 "configure"
11804
 
#include "confdefs.h"
 
21730
/* confdefs.h.  */
 
21731
_ACEOF
 
21732
cat confdefs.h >>conftest.$ac_ext
 
21733
cat >>conftest.$ac_ext <<_ACEOF
 
21734
/* end confdefs.h.  */
11805
21735
#include <termios.h>
11806
21736
#ifdef TIOCGPPSEV
11807
21737
         yes
11809
21739
 
11810
21740
_ACEOF
11811
21741
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11812
 
  egrep "yes" >/dev/null 2>&1; then
 
21742
  $EGREP "yes" >/dev/null 2>&1; then
11813
21743
  ntp_ok=yes
11814
21744
else
11815
21745
  ntp_ok=no
11820
21750
ntp_ok=no
11821
21751
fi
11822
21752
if test "$ntp_ok" = "yes"; then
11823
 
    cat >>confdefs.h <<\EOF
 
21753
 
 
21754
cat >>confdefs.h <<\_ACEOF
11824
21755
#define HAVE_TIOCGPPSEV 1
11825
 
EOF
 
21756
_ACEOF
11826
21757
 
11827
21758
    ac_cv_var_oncore_ok=yes
11828
21759
fi
11829
 
echo "$as_me:11829: result: $ntp_ok" >&5
 
21760
echo "$as_me:$LINENO: result: $ntp_ok" >&5
11830
21761
echo "${ECHO_T}$ntp_ok" >&6
11831
21762
 
11832
21763
# Check for ioctls TIOCSPPS
11833
 
echo "$as_me:11833: checking ioctl TIOCSPPS" >&5
 
21764
echo "$as_me:$LINENO: checking ioctl TIOCSPPS" >&5
11834
21765
echo $ECHO_N "checking ioctl TIOCSPPS... $ECHO_C" >&6
11835
21766
if test "$ac_cv_header_termios_h" = "yes"; then
11836
21767
    cat >conftest.$ac_ext <<_ACEOF
11837
 
#line 11837 "configure"
11838
 
#include "confdefs.h"
 
21768
/* confdefs.h.  */
 
21769
_ACEOF
 
21770
cat confdefs.h >>conftest.$ac_ext
 
21771
cat >>conftest.$ac_ext <<_ACEOF
 
21772
/* end confdefs.h.  */
11839
21773
#include <termios.h>
11840
21774
#ifdef TIOCSPPS
11841
21775
         yes
11843
21777
 
11844
21778
_ACEOF
11845
21779
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11846
 
  egrep "yes" >/dev/null 2>&1; then
 
21780
  $EGREP "yes" >/dev/null 2>&1; then
11847
21781
  ntp_ok=yes
11848
21782
else
11849
21783
  ntp_ok=no
11855
21789
fi
11856
21790
 
11857
21791
if test "$ntp_ok" = "yes"; then
11858
 
    cat >>confdefs.h <<\EOF
 
21792
 
 
21793
cat >>confdefs.h <<\_ACEOF
11859
21794
#define HAVE_TIOCSPPS 1
11860
 
EOF
 
21795
_ACEOF
11861
21796
 
11862
21797
fi
11863
 
echo "$as_me:11863: result: $ntp_ok" >&5
 
21798
echo "$as_me:$LINENO: result: $ntp_ok" >&5
11864
21799
echo "${ECHO_T}$ntp_ok" >&6
11865
21800
 
11866
21801
# Check for ioctls CIOGETEV
11867
 
echo "$as_me:11867: checking ioctl CIOGETEV" >&5
 
21802
echo "$as_me:$LINENO: checking ioctl CIOGETEV" >&5
11868
21803
echo $ECHO_N "checking ioctl CIOGETEV... $ECHO_C" >&6
11869
21804
if test "$ac_cv_header_sys_ppsclock_h" = "yes"; then
11870
21805
    cat >conftest.$ac_ext <<_ACEOF
11871
 
#line 11871 "configure"
11872
 
#include "confdefs.h"
 
21806
/* confdefs.h.  */
 
21807
_ACEOF
 
21808
cat confdefs.h >>conftest.$ac_ext
 
21809
cat >>conftest.$ac_ext <<_ACEOF
 
21810
/* end confdefs.h.  */
11873
21811
#include <sys/ppsclock.h>
11874
21812
#ifdef CIOGETEV
11875
21813
         yes
11877
21815
 
11878
21816
_ACEOF
11879
21817
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11880
 
  egrep "yes" >/dev/null 2>&1; then
 
21818
  $EGREP "yes" >/dev/null 2>&1; then
11881
21819
  ntp_ok=yes
11882
21820
else
11883
21821
  ntp_ok=no
11889
21827
fi
11890
21828
if test "$ntp_ok" = "yes"; then
11891
21829
    ac_cv_var_oncore_ok=yes
11892
 
    cat >>confdefs.h <<\EOF
 
21830
 
 
21831
cat >>confdefs.h <<\_ACEOF
11893
21832
#define HAVE_CIOGETEV 1
11894
 
EOF
 
21833
_ACEOF
11895
21834
 
11896
21835
fi
11897
 
echo "$as_me:11897: result: $ntp_ok" >&5
 
21836
echo "$as_me:$LINENO: result: $ntp_ok" >&5
11898
21837
echo "${ECHO_T}$ntp_ok" >&6
11899
21838
 
 
21839
 
11900
21840
# ATOM/PPSAPI stuff.
11901
21841
 
11902
21842
# ATOM used to require struct timespec, but that's been fixed now.
11918
21858
 
11919
21859
case "$ac_cv_c_inline$ac_cv_struct_timespec$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h" in
11920
21860
 inlineyes*yes*)
11921
 
    cat >>confdefs.h <<\EOF
 
21861
 
 
21862
cat >>confdefs.h <<\_ACEOF
11922
21863
#define HAVE_PPSAPI 1
11923
 
EOF
 
21864
_ACEOF
11924
21865
 
11925
21866
    ac_cv_var_oncore_ok=yes
 
21867
    ac_cv_var_ripe_ncc_ok=yes
 
21868
    ac_cv_var_jupiter_ok=yes
11926
21869
    ;;
11927
21870
esac
11928
21871
 
11929
21872
# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
11930
 
echo "$as_me:11930: checking for linux/serial.h" >&5
 
21873
if test "${ac_cv_header_linux_serial_h+set}" = set; then
 
21874
  echo "$as_me:$LINENO: checking for linux/serial.h" >&5
11931
21875
echo $ECHO_N "checking for linux/serial.h... $ECHO_C" >&6
11932
21876
if test "${ac_cv_header_linux_serial_h+set}" = set; then
11933
21877
  echo $ECHO_N "(cached) $ECHO_C" >&6
11934
 
else
11935
 
  cat >conftest.$ac_ext <<_ACEOF
11936
 
#line 11936 "configure"
11937
 
#include "confdefs.h"
11938
 
#include <linux/serial.h>
11939
 
_ACEOF
11940
 
if { (eval echo "$as_me:11940: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21878
fi
 
21879
echo "$as_me:$LINENO: result: $ac_cv_header_linux_serial_h" >&5
 
21880
echo "${ECHO_T}$ac_cv_header_linux_serial_h" >&6
 
21881
else
 
21882
  # Is the header compilable?
 
21883
echo "$as_me:$LINENO: checking linux/serial.h usability" >&5
 
21884
echo $ECHO_N "checking linux/serial.h usability... $ECHO_C" >&6
 
21885
cat >conftest.$ac_ext <<_ACEOF
 
21886
/* confdefs.h.  */
 
21887
_ACEOF
 
21888
cat confdefs.h >>conftest.$ac_ext
 
21889
cat >>conftest.$ac_ext <<_ACEOF
 
21890
/* end confdefs.h.  */
 
21891
$ac_includes_default
 
21892
#include <linux/serial.h>
 
21893
_ACEOF
 
21894
rm -f conftest.$ac_objext
 
21895
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21896
  (eval $ac_compile) 2>conftest.er1
 
21897
  ac_status=$?
 
21898
  grep -v '^ *+' conftest.er1 >conftest.err
 
21899
  rm -f conftest.er1
 
21900
  cat conftest.err >&5
 
21901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21902
  (exit $ac_status); } &&
 
21903
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21904
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21905
  (eval $ac_try) 2>&5
 
21906
  ac_status=$?
 
21907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21908
  (exit $ac_status); }; } &&
 
21909
         { ac_try='test -s conftest.$ac_objext'
 
21910
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21911
  (eval $ac_try) 2>&5
 
21912
  ac_status=$?
 
21913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21914
  (exit $ac_status); }; }; then
 
21915
  ac_header_compiler=yes
 
21916
else
 
21917
  echo "$as_me: failed program was:" >&5
 
21918
sed 's/^/| /' conftest.$ac_ext >&5
 
21919
 
 
21920
ac_header_compiler=no
 
21921
fi
 
21922
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21923
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21924
echo "${ECHO_T}$ac_header_compiler" >&6
 
21925
 
 
21926
# Is the header present?
 
21927
echo "$as_me:$LINENO: checking linux/serial.h presence" >&5
 
21928
echo $ECHO_N "checking linux/serial.h presence... $ECHO_C" >&6
 
21929
cat >conftest.$ac_ext <<_ACEOF
 
21930
/* confdefs.h.  */
 
21931
_ACEOF
 
21932
cat confdefs.h >>conftest.$ac_ext
 
21933
cat >>conftest.$ac_ext <<_ACEOF
 
21934
/* end confdefs.h.  */
 
21935
#include <linux/serial.h>
 
21936
_ACEOF
 
21937
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11941
21938
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11942
21939
  ac_status=$?
11943
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
21940
  grep -v '^ *+' conftest.er1 >conftest.err
11944
21941
  rm -f conftest.er1
11945
21942
  cat conftest.err >&5
11946
 
  echo "$as_me:11946: \$? = $ac_status" >&5
 
21943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947
21944
  (exit $ac_status); } >/dev/null; then
11948
21945
  if test -s conftest.err; then
11949
21946
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21947
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11950
21948
  else
11951
21949
    ac_cpp_err=
11952
21950
  fi
11954
21952
  ac_cpp_err=yes
11955
21953
fi
11956
21954
if test -z "$ac_cpp_err"; then
11957
 
  ac_cv_header_linux_serial_h=yes
 
21955
  ac_header_preproc=yes
11958
21956
else
11959
21957
  echo "$as_me: failed program was:" >&5
11960
 
  cat conftest.$ac_ext >&5
11961
 
  ac_cv_header_linux_serial_h=no
 
21958
sed 's/^/| /' conftest.$ac_ext >&5
 
21959
 
 
21960
  ac_header_preproc=no
11962
21961
fi
11963
21962
rm -f conftest.err conftest.$ac_ext
 
21963
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21964
echo "${ECHO_T}$ac_header_preproc" >&6
 
21965
 
 
21966
# So?  What about this header?
 
21967
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21968
  yes:no: )
 
21969
    { echo "$as_me:$LINENO: WARNING: linux/serial.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
21970
echo "$as_me: WARNING: linux/serial.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21971
    { echo "$as_me:$LINENO: WARNING: linux/serial.h: proceeding with the compiler's result" >&5
 
21972
echo "$as_me: WARNING: linux/serial.h: proceeding with the compiler's result" >&2;}
 
21973
    ac_header_preproc=yes
 
21974
    ;;
 
21975
  no:yes:* )
 
21976
    { echo "$as_me:$LINENO: WARNING: linux/serial.h: present but cannot be compiled" >&5
 
21977
echo "$as_me: WARNING: linux/serial.h: present but cannot be compiled" >&2;}
 
21978
    { echo "$as_me:$LINENO: WARNING: linux/serial.h:     check for missing prerequisite headers?" >&5
 
21979
echo "$as_me: WARNING: linux/serial.h:     check for missing prerequisite headers?" >&2;}
 
21980
    { echo "$as_me:$LINENO: WARNING: linux/serial.h: see the Autoconf documentation" >&5
 
21981
echo "$as_me: WARNING: linux/serial.h: see the Autoconf documentation" >&2;}
 
21982
    { echo "$as_me:$LINENO: WARNING: linux/serial.h:     section \"Present But Cannot Be Compiled\"" >&5
 
21983
echo "$as_me: WARNING: linux/serial.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21984
    { echo "$as_me:$LINENO: WARNING: linux/serial.h: proceeding with the preprocessor's result" >&5
 
21985
echo "$as_me: WARNING: linux/serial.h: proceeding with the preprocessor's result" >&2;}
 
21986
    { echo "$as_me:$LINENO: WARNING: linux/serial.h: in the future, the compiler will take precedence" >&5
 
21987
echo "$as_me: WARNING: linux/serial.h: in the future, the compiler will take precedence" >&2;}
 
21988
    (
 
21989
      cat <<\_ASBOX
 
21990
## ------------------------------ ##
 
21991
## Report this to the ntp lists.  ##
 
21992
## ------------------------------ ##
 
21993
_ASBOX
 
21994
    ) |
 
21995
      sed "s/^/$as_me: WARNING:     /" >&2
 
21996
    ;;
 
21997
esac
 
21998
echo "$as_me:$LINENO: checking for linux/serial.h" >&5
 
21999
echo $ECHO_N "checking for linux/serial.h... $ECHO_C" >&6
 
22000
if test "${ac_cv_header_linux_serial_h+set}" = set; then
 
22001
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22002
else
 
22003
  ac_cv_header_linux_serial_h=$ac_header_preproc
11964
22004
fi
11965
 
echo "$as_me:11965: result: $ac_cv_header_linux_serial_h" >&5
 
22005
echo "$as_me:$LINENO: result: $ac_cv_header_linux_serial_h" >&5
11966
22006
echo "${ECHO_T}$ac_cv_header_linux_serial_h" >&6
11967
22007
 
11968
 
echo "$as_me:11968: checking ioctl TIOCGSERIAL" >&5
 
22008
fi
 
22009
 
 
22010
 
 
22011
echo "$as_me:$LINENO: checking ioctl TIOCGSERIAL" >&5
11969
22012
echo $ECHO_N "checking ioctl TIOCGSERIAL... $ECHO_C" >&6
11970
22013
case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
11971
22014
  yesyes)
11972
22015
    cat >conftest.$ac_ext <<_ACEOF
11973
 
#line 11973 "configure"
11974
 
#include "confdefs.h"
 
22016
/* confdefs.h.  */
 
22017
_ACEOF
 
22018
cat confdefs.h >>conftest.$ac_ext
 
22019
cat >>conftest.$ac_ext <<_ACEOF
 
22020
/* end confdefs.h.  */
11975
22021
#include <sys/time.h>
11976
22022
typedef int u_int;
11977
22023
 
11992
22038
 
11993
22039
_ACEOF
11994
22040
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11995
 
  egrep "yes" >/dev/null 2>&1; then
 
22041
  $EGREP "yes" >/dev/null 2>&1; then
11996
22042
  ntp_ok=yes
11997
22043
fi
11998
22044
rm -f conftest*
12003
22049
        ;;
12004
22050
esac
12005
22051
if test "$ntp_ok" = "yes"; then
12006
 
    cat >>confdefs.h <<\EOF
 
22052
 
 
22053
cat >>confdefs.h <<\_ACEOF
12007
22054
#define HAVE_TIO_SERIAL_STUFF 1
12008
 
EOF
 
22055
_ACEOF
12009
22056
 
12010
22057
fi
12011
 
echo "$as_me:12011: result: $ntp_ok" >&5
 
22058
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12012
22059
echo "${ECHO_T}$ntp_ok" >&6
12013
22060
 
12014
22061
# Check for SHMEM_STATUS support
12015
 
echo "$as_me:12015: checking SHMEM_STATUS support" >&5
 
22062
echo "$as_me:$LINENO: checking SHMEM_STATUS support" >&5
12016
22063
echo $ECHO_N "checking SHMEM_STATUS support... $ECHO_C" >&6
12017
22064
case "$ac_cv_header_sys_mman_h" in
12018
22065
 yes) ntp_ok=yes ;;
12019
22066
 *)   ntp_ok=no  ;;
12020
22067
esac
12021
22068
if test "$ntp_ok" = "yes"; then
12022
 
    cat >>confdefs.h <<\EOF
 
22069
 
 
22070
cat >>confdefs.h <<\_ACEOF
12023
22071
#define ONCORE_SHMEM_STATUS 1
12024
 
EOF
 
22072
_ACEOF
12025
22073
 
12026
22074
fi
12027
 
echo "$as_me:12027: result: $ntp_ok" >&5
 
22075
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12028
22076
echo "${ECHO_T}$ntp_ok" >&6
12029
22077
 
 
22078
 
12030
22079
ntp_refclock=no
12031
22080
 
12032
 
echo "$as_me:12032: checking for hopf serial clock device" >&5
12033
 
echo $ECHO_N "checking for hopf serial clock device... $ECHO_C" >&6
12034
 
# Check whether --enable-HOPFSERIAL or --disable-HOPFSERIAL was given.
12035
 
if test "${enable_HOPFSERIAL+set}" = set; then
12036
 
  enableval="$enable_HOPFSERIAL"
12037
 
  ntp_ok=$enableval
12038
 
else
12039
 
  ntp_ok=$ntp_eac
12040
 
fi;
12041
 
  if test "$ntp_ok" = "yes"; then
12042
 
      ntp_refclock=yes
12043
 
      cat >>confdefs.h <<\EOF
12044
 
#define CLOCK_HOPF_SERIAL 1
12045
 
EOF
12046
 
 
12047
 
  fi
12048
 
  echo "$as_me:12048: result: $ntp_ok" >&5
12049
 
echo "${ECHO_T}$ntp_ok" >&6
12050
 
 
12051
 
echo "$as_me:12051: checking for hopf PCI clock 6039" >&5
12052
 
echo $ECHO_N "checking for hopf PCI clock 6039... $ECHO_C" >&6
12053
 
# Check whether --enable-HOPFPCI or --disable-HOPFPCI was given.
12054
 
if test "${enable_HOPFPCI+set}" = set; then
12055
 
  enableval="$enable_HOPFPCI"
12056
 
  ntp_ok=$enableval
12057
 
else
12058
 
  ntp_ok=$ntp_eac
12059
 
fi;
12060
 
if test "$ntp_ok" = "yes"; then
12061
 
    ntp_refclock=yes
12062
 
    cat >>confdefs.h <<\EOF
12063
 
#define CLOCK_HOPF_PCI 1
12064
 
EOF
12065
 
 
12066
 
fi
12067
 
echo "$as_me:12067: result: $ntp_ok" >&5
12068
 
echo "${ECHO_T}$ntp_ok" >&6
12069
 
 
12070
22081
# HPUX only, and by explicit request
12071
 
echo "$as_me:12071: checking Datum/Bancomm bc635/VME interface" >&5
 
22082
echo "$as_me:$LINENO: checking Datum/Bancomm bc635/VME interface" >&5
12072
22083
echo $ECHO_N "checking Datum/Bancomm bc635/VME interface... $ECHO_C" >&6
12073
22084
# Check whether --enable-BANCOMM or --disable-BANCOMM was given.
12074
22085
if test "${enable_BANCOMM+set}" = set; then
12079
22090
fi;
12080
22091
if test "$ntp_ok" = "yes"; then
12081
22092
    ntp_refclock=yes
12082
 
    cat >>confdefs.h <<\EOF
 
22093
 
 
22094
cat >>confdefs.h <<\_ACEOF
12083
22095
#define CLOCK_BANC 1
12084
 
EOF
 
22096
_ACEOF
12085
22097
 
12086
22098
fi
12087
 
echo "$as_me:12087: result: $ntp_ok" >&5
 
22099
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12088
22100
echo "${ECHO_T}$ntp_ok" >&6
12089
 
case "$ntp_ok$target" in
 
22101
case "$ntp_ok$host" in
12090
22102
 yes*-*-hpux*) ;;
12091
 
 yes*) { echo "$as_me:12091: WARNING: *** But the expected answer is... no ***" >&5
 
22103
 yes*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
12092
22104
echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
12093
22105
esac
12094
22106
 
12095
22107
#HPUX only, and only by explicit request
12096
 
echo "$as_me:12096: checking TrueTime GPS receiver/VME interface" >&5
 
22108
echo "$as_me:$LINENO: checking TrueTime GPS receiver/VME interface" >&5
12097
22109
echo $ECHO_N "checking TrueTime GPS receiver/VME interface... $ECHO_C" >&6
12098
22110
# Check whether --enable-GPSVME or --disable-GPSVME was given.
12099
22111
if test "${enable_GPSVME+set}" = set; then
12104
22116
fi;
12105
22117
if test "$ntp_ok" = "yes"; then
12106
22118
    ntp_refclock=yes
12107
 
    cat >>confdefs.h <<\EOF
 
22119
 
 
22120
cat >>confdefs.h <<\_ACEOF
12108
22121
#define CLOCK_GPSVME 1
12109
 
EOF
 
22122
_ACEOF
12110
22123
 
12111
22124
fi
12112
 
echo "$as_me:12112: result: $ntp_ok" >&5
 
22125
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12113
22126
echo "${ECHO_T}$ntp_ok" >&6
12114
 
case "$ntp_ok$target" in
 
22127
case "$ntp_ok$host" in
12115
22128
 yes*-*-hpux*) ;;
12116
 
 yes*) { echo "$as_me:12116: WARNING: *** But the expected answer is... no ***" >&5
 
22129
 yes*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
12117
22130
echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
12118
22131
esac
12119
22132
 
12120
 
echo "$as_me:12120: checking for PCL720 clock support" >&5
 
22133
echo "$as_me:$LINENO: checking for PCL720 clock support" >&5
12121
22134
echo $ECHO_N "checking for PCL720 clock support... $ECHO_C" >&6
12122
22135
case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
12123
22136
 yesyesyes)
12124
 
    cat >>confdefs.h <<\EOF
 
22137
 
 
22138
cat >>confdefs.h <<\_ACEOF
12125
22139
#define CLOCK_PPS720 1
12126
 
EOF
 
22140
_ACEOF
12127
22141
 
12128
22142
    ans=yes
12129
22143
    ;;
12131
22145
    ans=no
12132
22146
    ;;
12133
22147
esac
12134
 
echo "$as_me:12134: result: $ans" >&5
 
22148
echo "$as_me:$LINENO: result: $ans" >&5
12135
22149
echo "${ECHO_T}$ans" >&6
12136
22150
 
12137
 
echo "$as_me:12137: checking for SHM clock attached thru shared memory" >&5
12138
 
echo $ECHO_N "checking for SHM clock attached thru shared memory... $ECHO_C" >&6
12139
 
# Check whether --enable-SHM or --disable-SHM was given.
12140
 
if test "${enable_SHM+set}" = set; then
12141
 
  enableval="$enable_SHM"
12142
 
  ntp_ok=$enableval
12143
 
else
12144
 
  ntp_ok=no
12145
 
fi;
12146
 
if test "$ntp_ok" = "yes"; then
12147
 
    ntp_refclock=yes
12148
 
    cat >>confdefs.h <<\EOF
12149
 
#define CLOCK_SHM 1
12150
 
EOF
12151
 
 
12152
 
fi
12153
 
echo "$as_me:12153: result: $ntp_ok" >&5
12154
 
echo "${ECHO_T}$ntp_ok" >&6
12155
 
 
12156
 
echo "$as_me:12156: checking for default inclusion of all suitable non-PARSE clocks" >&5
 
22151
echo "$as_me:$LINENO: checking for default inclusion of all suitable non-PARSE clocks" >&5
12157
22152
echo $ECHO_N "checking for default inclusion of all suitable non-PARSE clocks... $ECHO_C" >&6
12158
22153
# Check whether --enable-all-clocks or --disable-all-clocks was given.
12159
22154
if test "${enable_all_clocks+set}" = set; then
12162
22157
else
12163
22158
  ntp_eac=yes
12164
22159
fi;
12165
 
echo "$as_me:12165: result: $ntp_eac" >&5
 
22160
echo "$as_me:$LINENO: result: $ntp_eac" >&5
12166
22161
echo "${ECHO_T}$ntp_eac" >&6
12167
22162
 
12168
 
echo "$as_me:12168: checking if we have support for PARSE clocks" >&5
 
22163
echo "$as_me:$LINENO: checking if we have support for PARSE clocks" >&5
12169
22164
echo $ECHO_N "checking if we have support for PARSE clocks... $ECHO_C" >&6
12170
22165
case "$ac_cv_var_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
12171
22166
 yes*yes*)
12174
22169
 *) ntp_canparse=no
12175
22170
    ;;
12176
22171
esac
12177
 
echo "$as_me:12177: result: $ntp_canparse" >&5
 
22172
echo "$as_me:$LINENO: result: $ntp_canparse" >&5
12178
22173
echo "${ECHO_T}$ntp_canparse" >&6
12179
22174
 
12180
 
echo "$as_me:12180: checking if we have support for audio clocks" >&5
 
22175
echo "$as_me:$LINENO: checking if we have support for audio clocks" >&5
12181
22176
echo $ECHO_N "checking if we have support for audio clocks... $ECHO_C" >&6
12182
 
case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h" in
 
22177
case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
12183
22178
 *yes*)
12184
22179
    ntp_canaudio=yes
12185
22180
 
12186
 
cat >>confdefs.h <<\EOF
 
22181
cat >>confdefs.h <<\_ACEOF
12187
22182
#define HAVE_AUDIO
12188
 
EOF
 
22183
_ACEOF
12189
22184
 
12190
22185
    ;;
12191
22186
 *) ntp_canaudio=no ;;
12192
22187
esac
12193
 
echo "$as_me:12193: result: $ntp_canaudio" >&5
 
22188
echo "$as_me:$LINENO: result: $ntp_canaudio" >&5
12194
22189
echo "${ECHO_T}$ntp_canaudio" >&6
12195
22190
 
 
22191
echo "$as_me:$LINENO: checking if we have support for the SHM refclock interface" >&5
 
22192
echo $ECHO_N "checking if we have support for the SHM refclock interface... $ECHO_C" >&6
 
22193
case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
 
22194
 yesyes)
 
22195
    ntp_canshm=yes
 
22196
    ;;
 
22197
 *) ntp_canshm=no ;;
 
22198
esac
 
22199
echo "$as_me:$LINENO: result: $ntp_canshm" >&5
 
22200
echo "${ECHO_T}$ntp_canshm" >&6
 
22201
 
12196
22202
# Requires modem control
12197
 
echo "$as_me:12197: checking ACTS modem service" >&5
 
22203
echo "$as_me:$LINENO: checking ACTS modem service" >&5
12198
22204
echo $ECHO_N "checking ACTS modem service... $ECHO_C" >&6
12199
22205
# Check whether --enable-ACTS or --disable-ACTS was given.
12200
22206
if test "${enable_ACTS+set}" = set; then
12202
22208
  ntp_ok=$enableval
12203
22209
else
12204
22210
  cat >conftest.$ac_ext <<_ACEOF
12205
 
#line 12205 "configure"
12206
 
#include "confdefs.h"
 
22211
/* confdefs.h.  */
 
22212
_ACEOF
 
22213
cat confdefs.h >>conftest.$ac_ext
 
22214
cat >>conftest.$ac_ext <<_ACEOF
 
22215
/* end confdefs.h.  */
12207
22216
#include <termios.h>
12208
22217
#ifdef HAVE_SYS_IOCTL_H
12209
22218
#include <sys/ioctl.h>
12214
22223
 
12215
22224
_ACEOF
12216
22225
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12217
 
  egrep "yes" >/dev/null 2>&1; then
 
22226
  $EGREP "yes" >/dev/null 2>&1; then
12218
22227
  ntp_ok=$ntp_eac
12219
22228
else
12220
22229
  ntp_ok=no
12224
22233
fi;
12225
22234
if test "$ntp_ok" = "yes"; then
12226
22235
    ntp_refclock=yes
12227
 
    cat >>confdefs.h <<\EOF
 
22236
 
 
22237
cat >>confdefs.h <<\_ACEOF
12228
22238
#define CLOCK_ACTS 1
12229
 
EOF
 
22239
_ACEOF
12230
22240
 
12231
22241
fi
12232
 
echo "$as_me:12232: result: $ntp_ok" >&5
 
22242
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12233
22243
echo "${ECHO_T}$ntp_ok" >&6
12234
22244
 
12235
 
echo "$as_me:12235: checking Arbiter 1088A/B GPS receiver" >&5
 
22245
echo "$as_me:$LINENO: checking Arbiter 1088A/B GPS receiver" >&5
12236
22246
echo $ECHO_N "checking Arbiter 1088A/B GPS receiver... $ECHO_C" >&6
12237
22247
# Check whether --enable-ARBITER or --disable-ARBITER was given.
12238
22248
if test "${enable_ARBITER+set}" = set; then
12243
22253
fi;
12244
22254
if test "$ntp_ok" = "yes"; then
12245
22255
    ntp_refclock=yes
12246
 
    cat >>confdefs.h <<\EOF
 
22256
 
 
22257
cat >>confdefs.h <<\_ACEOF
12247
22258
#define CLOCK_ARBITER 1
12248
 
EOF
 
22259
_ACEOF
12249
22260
 
12250
22261
fi
12251
 
echo "$as_me:12251: result: $ntp_ok" >&5
 
22262
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12252
22263
echo "${ECHO_T}$ntp_ok" >&6
12253
22264
 
12254
 
echo "$as_me:12254: checking Arcron MSF receiver" >&5
 
22265
echo "$as_me:$LINENO: checking Arcron MSF receiver" >&5
12255
22266
echo $ECHO_N "checking Arcron MSF receiver... $ECHO_C" >&6
12256
22267
# Check whether --enable-ARCRON_MSF or --disable-ARCRON_MSF was given.
12257
22268
if test "${enable_ARCRON_MSF+set}" = set; then
12262
22273
fi;
12263
22274
if test "$ntp_ok" = "yes"; then
12264
22275
    ntp_refclock=yes
12265
 
    cat >>confdefs.h <<\EOF
 
22276
 
 
22277
cat >>confdefs.h <<\_ACEOF
12266
22278
#define CLOCK_ARCRON_MSF 1
12267
 
EOF
12268
 
 
12269
 
fi
12270
 
echo "$as_me:12270: result: $ntp_ok" >&5
12271
 
echo "${ECHO_T}$ntp_ok" >&6
12272
 
 
12273
 
echo "$as_me:12273: checking ATOM PPS interface" >&5
 
22279
_ACEOF
 
22280
 
 
22281
fi
 
22282
echo "$as_me:$LINENO: result: $ntp_ok" >&5
 
22283
echo "${ECHO_T}$ntp_ok" >&6
 
22284
 
 
22285
echo "$as_me:$LINENO: checking Austron 2200A/2201A GPS receiver" >&5
 
22286
echo $ECHO_N "checking Austron 2200A/2201A GPS receiver... $ECHO_C" >&6
 
22287
# Check whether --enable-AS2201 or --disable-AS2201 was given.
 
22288
if test "${enable_AS2201+set}" = set; then
 
22289
  enableval="$enable_AS2201"
 
22290
  ntp_ok=$enableval
 
22291
else
 
22292
  ntp_ok=$ntp_eac
 
22293
fi;
 
22294
if test "$ntp_ok" = "yes"; then
 
22295
    ntp_refclock=yes
 
22296
 
 
22297
cat >>confdefs.h <<\_ACEOF
 
22298
#define CLOCK_AS2201 1
 
22299
_ACEOF
 
22300
 
 
22301
fi
 
22302
echo "$as_me:$LINENO: result: $ntp_ok" >&5
 
22303
echo "${ECHO_T}$ntp_ok" >&6
 
22304
 
 
22305
echo "$as_me:$LINENO: checking ATOM PPS interface" >&5
12274
22306
echo $ECHO_N "checking ATOM PPS interface... $ECHO_C" >&6
12275
22307
# Check whether --enable-ATOM or --disable-ATOM was given.
12276
22308
if test "${enable_ATOM+set}" = set; then
12284
22316
esac
12285
22317
if test "$ntp_ok" = "yes"; then
12286
22318
    ntp_refclock=yes
12287
 
    cat >>confdefs.h <<\EOF
 
22319
 
 
22320
cat >>confdefs.h <<\_ACEOF
12288
22321
#define CLOCK_ATOM 1
12289
 
EOF
 
22322
_ACEOF
12290
22323
 
12291
22324
fi
12292
 
echo "$as_me:12292: result: $ntp_ok" >&5
 
22325
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12293
22326
echo "${ECHO_T}$ntp_ok" >&6
12294
22327
 
12295
 
echo "$as_me:12295: checking Austron 2200A/2201A GPS receiver" >&5
12296
 
echo $ECHO_N "checking Austron 2200A/2201A GPS receiver... $ECHO_C" >&6
12297
 
# Check whether --enable-AS2201 or --disable-AS2201 was given.
12298
 
if test "${enable_AS2201+set}" = set; then
12299
 
  enableval="$enable_AS2201"
 
22328
echo "$as_me:$LINENO: checking Chrono-log K-series WWVB receiver" >&5
 
22329
echo $ECHO_N "checking Chrono-log K-series WWVB receiver... $ECHO_C" >&6
 
22330
# Check whether --enable-CHRONOLOG or --disable-CHRONOLOG was given.
 
22331
if test "${enable_CHRONOLOG+set}" = set; then
 
22332
  enableval="$enable_CHRONOLOG"
12300
22333
  ntp_ok=$enableval
12301
22334
else
12302
22335
  ntp_ok=$ntp_eac
12303
22336
fi;
12304
22337
if test "$ntp_ok" = "yes"; then
12305
22338
    ntp_refclock=yes
12306
 
    cat >>confdefs.h <<\EOF
12307
 
#define CLOCK_AS2201 1
12308
 
EOF
 
22339
 
 
22340
cat >>confdefs.h <<\_ACEOF
 
22341
#define CLOCK_CHRONOLOG 1
 
22342
_ACEOF
12309
22343
 
12310
22344
fi
12311
 
echo "$as_me:12311: result: $ntp_ok" >&5
 
22345
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12312
22346
echo "${ECHO_T}$ntp_ok" >&6
12313
22347
 
12314
 
echo "$as_me:12314: checking CHU modem/decoder" >&5
 
22348
echo "$as_me:$LINENO: checking CHU modem/decoder" >&5
12315
22349
echo $ECHO_N "checking CHU modem/decoder... $ECHO_C" >&6
12316
22350
# Check whether --enable-CHU or --disable-CHU was given.
12317
22351
if test "${enable_CHU+set}" = set; then
12322
22356
fi;
12323
22357
if test "$ntp_ok" = "yes"; then
12324
22358
    ntp_refclock=yes
12325
 
    cat >>confdefs.h <<\EOF
 
22359
 
 
22360
cat >>confdefs.h <<\_ACEOF
12326
22361
#define CLOCK_CHU 1
12327
 
EOF
 
22362
_ACEOF
12328
22363
 
12329
22364
fi
12330
 
echo "$as_me:12330: result: $ntp_ok" >&5
 
22365
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12331
22366
echo "${ECHO_T}$ntp_ok" >&6
12332
22367
ac_refclock_chu=$ntp_ok
12333
22368
 
12334
 
echo "$as_me:12334: checking CHU audio/decoder" >&5
 
22369
echo "$as_me:$LINENO: checking CHU audio/decoder" >&5
12335
22370
echo $ECHO_N "checking CHU audio/decoder... $ECHO_C" >&6
12336
22371
# Check whether --enable-AUDIO-CHU or --disable-AUDIO-CHU was given.
12337
22372
if test "${enable_AUDIO_CHU+set}" = set; then
12344
22379
esac
12345
22380
fi;
12346
22381
if test "$ntp_ok" = "yes"; then
12347
 
    cat >>confdefs.h <<\EOF
 
22382
 
 
22383
cat >>confdefs.h <<\_ACEOF
12348
22384
#define AUDIO_CHU 1
12349
 
EOF
 
22385
_ACEOF
12350
22386
 
12351
22387
fi
12352
 
echo "$as_me:12352: result: $ntp_ok" >&5
 
22388
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12353
22389
echo "${ECHO_T}$ntp_ok" >&6
12354
22390
# We used to check for sunos/solaris target...
12355
22391
case "$ntp_ok$ac_refclock_chu$ntp_canaudio" in
12356
 
 yes*no*) { echo "$as_me:12356: WARNING: *** But the expected answer is...no ***" >&5
 
22392
 yes*no*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is...no ***" >&5
12357
22393
echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;} ;;
12358
22394
esac
12359
22395
 
12360
22396
# Not under HP-UX
12361
 
echo "$as_me:12361: checking Datum Programmable Time System" >&5
 
22397
echo "$as_me:$LINENO: checking Datum Programmable Time System" >&5
12362
22398
echo $ECHO_N "checking Datum Programmable Time System... $ECHO_C" >&6
12363
22399
# Check whether --enable-DATUM or --disable-DATUM was given.
12364
22400
if test "${enable_DATUM+set}" = set; then
12375
22411
fi;
12376
22412
if test "$ntp_ok" = "yes"; then
12377
22413
    ntp_refclock=yes
12378
 
    cat >>confdefs.h <<\EOF
 
22414
 
 
22415
cat >>confdefs.h <<\_ACEOF
12379
22416
#define CLOCK_DATUM 1
12380
 
EOF
12381
 
 
12382
 
fi
12383
 
echo "$as_me:12383: result: $ntp_ok" >&5
12384
 
echo "${ECHO_T}$ntp_ok" >&6
12385
 
 
12386
 
echo "$as_me:12386: checking Forum Graphic GPS" >&5
 
22417
_ACEOF
 
22418
 
 
22419
fi
 
22420
echo "$as_me:$LINENO: result: $ntp_ok" >&5
 
22421
echo "${ECHO_T}$ntp_ok" >&6
 
22422
 
 
22423
echo "$as_me:$LINENO: checking Dumb generic hh:mm:ss local clock" >&5
 
22424
echo $ECHO_N "checking Dumb generic hh:mm:ss local clock... $ECHO_C" >&6
 
22425
# Check whether --enable-DUMBCLOCK or --disable-DUMBCLOCK was given.
 
22426
if test "${enable_DUMBCLOCK+set}" = set; then
 
22427
  enableval="$enable_DUMBCLOCK"
 
22428
  ntp_ok=$enableval
 
22429
else
 
22430
  ntp_ok=$ntp_eac
 
22431
fi;
 
22432
if test "$ntp_ok" = "yes"; then
 
22433
    ntp_refclock=yes
 
22434
 
 
22435
cat >>confdefs.h <<\_ACEOF
 
22436
#define CLOCK_DUMBCLOCK 1
 
22437
_ACEOF
 
22438
 
 
22439
fi
 
22440
echo "$as_me:$LINENO: result: $ntp_ok" >&5
 
22441
echo "${ECHO_T}$ntp_ok" >&6
 
22442
 
 
22443
echo "$as_me:$LINENO: checking Forum Graphic GPS" >&5
12387
22444
echo $ECHO_N "checking Forum Graphic GPS... $ECHO_C" >&6
12388
22445
# Check whether --enable-FG or --disable-FG was given.
12389
22446
if test "${enable_FG+set}" = set; then
12394
22451
fi;
12395
22452
if test "$ntp_ok" = "yes"; then
12396
22453
    ntp_refclock=yes
12397
 
    cat >>confdefs.h <<\EOF
 
22454
 
 
22455
cat >>confdefs.h <<\_ACEOF
12398
22456
#define CLOCK_FG 1
12399
 
EOF
 
22457
_ACEOF
12400
22458
 
12401
22459
fi
12402
 
echo "$as_me:12402: result: $ntp_ok" >&5
 
22460
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12403
22461
echo "${ECHO_T}$ntp_ok" >&6
12404
22462
 
12405
22463
# Requires modem control
12406
 
echo "$as_me:12406: checking Heath GC-1000 WWV/WWVH receiver" >&5
 
22464
echo "$as_me:$LINENO: checking Heath GC-1000 WWV/WWVH receiver" >&5
12407
22465
echo $ECHO_N "checking Heath GC-1000 WWV/WWVH receiver... $ECHO_C" >&6
12408
22466
# Check whether --enable-HEATH or --disable-HEATH was given.
12409
22467
if test "${enable_HEATH+set}" = set; then
12411
22469
  ntp_ok=$enableval
12412
22470
else
12413
22471
  cat >conftest.$ac_ext <<_ACEOF
12414
 
#line 12414 "configure"
12415
 
#include "confdefs.h"
 
22472
/* confdefs.h.  */
 
22473
_ACEOF
 
22474
cat confdefs.h >>conftest.$ac_ext
 
22475
cat >>conftest.$ac_ext <<_ACEOF
 
22476
/* end confdefs.h.  */
12416
22477
#include <termios.h>
12417
22478
#ifdef HAVE_SYS_IOCTL_H
12418
22479
#include <sys/ioctl.h>
12423
22484
 
12424
22485
_ACEOF
12425
22486
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12426
 
  egrep "yes" >/dev/null 2>&1; then
 
22487
  $EGREP "yes" >/dev/null 2>&1; then
12427
22488
  ntp_ok=$ntp_eac
12428
22489
else
12429
22490
  ntp_ok=no
12433
22494
fi;
12434
22495
if test "$ntp_ok" = "yes"; then
12435
22496
    ntp_refclock=yes
12436
 
    cat >>confdefs.h <<\EOF
 
22497
 
 
22498
cat >>confdefs.h <<\_ACEOF
12437
22499
#define CLOCK_HEATH 1
12438
 
EOF
12439
 
 
12440
 
fi
12441
 
echo "$as_me:12441: result: $ntp_ok" >&5
12442
 
echo "${ECHO_T}$ntp_ok" >&6
12443
 
 
12444
 
echo "$as_me:12444: checking HP 58503A GPS receiver" >&5
 
22500
_ACEOF
 
22501
 
 
22502
fi
 
22503
echo "$as_me:$LINENO: result: $ntp_ok" >&5
 
22504
echo "${ECHO_T}$ntp_ok" >&6
 
22505
 
 
22506
echo "$as_me:$LINENO: checking for hopf serial clock device" >&5
 
22507
echo $ECHO_N "checking for hopf serial clock device... $ECHO_C" >&6
 
22508
# Check whether --enable-HOPFSERIAL or --disable-HOPFSERIAL was given.
 
22509
if test "${enable_HOPFSERIAL+set}" = set; then
 
22510
  enableval="$enable_HOPFSERIAL"
 
22511
  ntp_ok=$enableval
 
22512
else
 
22513
  ntp_ok=$ntp_eac
 
22514
fi;
 
22515
if test "$ntp_ok" = "yes"; then
 
22516
    ntp_refclock=yes
 
22517
 
 
22518
cat >>confdefs.h <<\_ACEOF
 
22519
#define CLOCK_HOPF_SERIAL 1
 
22520
_ACEOF
 
22521
 
 
22522
fi
 
22523
echo "$as_me:$LINENO: result: $ntp_ok" >&5
 
22524
echo "${ECHO_T}$ntp_ok" >&6
 
22525
 
 
22526
echo "$as_me:$LINENO: checking for hopf PCI clock 6039" >&5
 
22527
echo $ECHO_N "checking for hopf PCI clock 6039... $ECHO_C" >&6
 
22528
# Check whether --enable-HOPFPCI or --disable-HOPFPCI was given.
 
22529
if test "${enable_HOPFPCI+set}" = set; then
 
22530
  enableval="$enable_HOPFPCI"
 
22531
  ntp_ok=$enableval
 
22532
else
 
22533
  ntp_ok=$ntp_eac
 
22534
fi;
 
22535
if test "$ntp_ok" = "yes"; then
 
22536
    ntp_refclock=yes
 
22537
 
 
22538
cat >>confdefs.h <<\_ACEOF
 
22539
#define CLOCK_HOPF_PCI 1
 
22540
_ACEOF
 
22541
 
 
22542
fi
 
22543
echo "$as_me:$LINENO: result: $ntp_ok" >&5
 
22544
echo "${ECHO_T}$ntp_ok" >&6
 
22545
 
 
22546
echo "$as_me:$LINENO: checking HP 58503A GPS receiver" >&5
12445
22547
echo $ECHO_N "checking HP 58503A GPS receiver... $ECHO_C" >&6
12446
22548
# Check whether --enable-HPGPS or --disable-HPGPS was given.
12447
22549
if test "${enable_HPGPS+set}" = set; then
12452
22554
fi;
12453
22555
if test "$ntp_ok" = "yes"; then
12454
22556
    ntp_refclock=yes
12455
 
    cat >>confdefs.h <<\EOF
 
22557
 
 
22558
cat >>confdefs.h <<\_ACEOF
12456
22559
#define CLOCK_HPGPS 1
12457
 
EOF
 
22560
_ACEOF
12458
22561
 
12459
22562
fi
12460
 
echo "$as_me:12460: result: $ntp_ok" >&5
 
22563
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12461
22564
echo "${ECHO_T}$ntp_ok" >&6
12462
22565
 
12463
 
echo "$as_me:12463: checking Sun IRIG audio decoder" >&5
12464
 
echo $ECHO_N "checking Sun IRIG audio decoder... $ECHO_C" >&6
 
22566
echo "$as_me:$LINENO: checking IRIG audio decoder" >&5
 
22567
echo $ECHO_N "checking IRIG audio decoder... $ECHO_C" >&6
12465
22568
# Check whether --enable-IRIG or --disable-IRIG was given.
12466
22569
if test "${enable_IRIG+set}" = set; then
12467
22570
  enableval="$enable_IRIG"
12474
22577
fi;
12475
22578
if test "$ntp_ok" = "yes"; then
12476
22579
    ntp_refclock=yes
12477
 
    cat >>confdefs.h <<\EOF
 
22580
 
 
22581
cat >>confdefs.h <<\_ACEOF
12478
22582
#define CLOCK_IRIG 1
12479
 
EOF
 
22583
_ACEOF
12480
22584
 
12481
22585
fi
12482
 
echo "$as_me:12482: result: $ntp_ok" >&5
 
22586
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12483
22587
echo "${ECHO_T}$ntp_ok" >&6
12484
22588
case "$ntp_ok$ntp_canaudio" in
12485
 
 yesno) { echo "$as_me:12485: WARNING: *** But the expected answer is... no ***" >&5
 
22589
 yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
12486
22590
echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
12487
22591
esac
12488
22592
 
12489
 
echo "$as_me:12489: checking Leitch CSD 5300 Master Clock System Driver" >&5
 
22593
echo "$as_me:$LINENO: checking for JJY receiver" >&5
 
22594
echo $ECHO_N "checking for JJY receiver... $ECHO_C" >&6
 
22595
# Check whether --enable-JJY or --disable-JJY was given.
 
22596
if test "${enable_JJY+set}" = set; then
 
22597
  enableval="$enable_JJY"
 
22598
  ntp_ok=$enableval
 
22599
else
 
22600
  ntp_ok=$ntp_eac
 
22601
fi;
 
22602
if test "$ntp_ok" = "yes"; then
 
22603
    ntp_refclock=yes
 
22604
 
 
22605
cat >>confdefs.h <<\_ACEOF
 
22606
#define CLOCK_JJY 1
 
22607
_ACEOF
 
22608
 
 
22609
fi
 
22610
echo "$as_me:$LINENO: result: $ntp_ok" >&5
 
22611
echo "${ECHO_T}$ntp_ok" >&6
 
22612
 
 
22613
echo "$as_me:$LINENO: checking Rockwell Jupiter GPS receiver" >&5
 
22614
echo $ECHO_N "checking Rockwell Jupiter GPS receiver... $ECHO_C" >&6
 
22615
# Check whether --enable-JUPITER or --disable-JUPITER was given.
 
22616
if test "${enable_JUPITER+set}" = set; then
 
22617
  enableval="$enable_JUPITER"
 
22618
  ntp_ok=$enableval
 
22619
else
 
22620
  ntp_ok=$ntp_eac
 
22621
fi;
 
22622
case "$ac_cv_var_jupiter_ok" in
 
22623
 no) ntp_ok=no ;;
 
22624
esac
 
22625
if test "$ntp_ok" = "yes"; then
 
22626
    ntp_refclock=yes
 
22627
 
 
22628
cat >>confdefs.h <<\_ACEOF
 
22629
#define CLOCK_JUPITER 1
 
22630
_ACEOF
 
22631
 
 
22632
fi
 
22633
echo "$as_me:$LINENO: result: $ntp_ok" >&5
 
22634
echo "${ECHO_T}$ntp_ok" >&6
 
22635
 
 
22636
echo "$as_me:$LINENO: checking Leitch CSD 5300 Master Clock System Driver" >&5
12490
22637
echo $ECHO_N "checking Leitch CSD 5300 Master Clock System Driver... $ECHO_C" >&6
12491
22638
# Check whether --enable-LEITCH or --disable-LEITCH was given.
12492
22639
if test "${enable_LEITCH+set}" = set; then
12497
22644
fi;
12498
22645
if test "$ntp_ok" = "yes"; then
12499
22646
    ntp_refclock=yes
12500
 
    cat >>confdefs.h <<\EOF
 
22647
 
 
22648
cat >>confdefs.h <<\_ACEOF
12501
22649
#define CLOCK_LEITCH 1
12502
 
EOF
 
22650
_ACEOF
12503
22651
 
12504
22652
fi
12505
 
echo "$as_me:12505: result: $ntp_ok" >&5
 
22653
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12506
22654
echo "${ECHO_T}$ntp_ok" >&6
12507
22655
 
12508
 
echo "$as_me:12508: checking local clock reference" >&5
 
22656
echo "$as_me:$LINENO: checking local clock reference" >&5
12509
22657
echo $ECHO_N "checking local clock reference... $ECHO_C" >&6
12510
22658
# Check whether --enable-LOCAL-CLOCK or --disable-LOCAL-CLOCK was given.
12511
22659
if test "${enable_LOCAL_CLOCK+set}" = set; then
12516
22664
fi;
12517
22665
if test "$ntp_ok" = "yes"; then
12518
22666
    ntp_refclock=yes
12519
 
    cat >>confdefs.h <<\EOF
 
22667
 
 
22668
cat >>confdefs.h <<\_ACEOF
12520
22669
#define CLOCK_LOCAL 1
12521
 
EOF
 
22670
_ACEOF
12522
22671
 
12523
22672
fi
12524
 
echo "$as_me:12524: result: $ntp_ok" >&5
 
22673
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12525
22674
echo "${ECHO_T}$ntp_ok" >&6
12526
22675
 
12527
 
echo "$as_me:12527: checking EES M201 MSF receiver" >&5
 
22676
echo "$as_me:$LINENO: checking EES M201 MSF receiver" >&5
12528
22677
echo $ECHO_N "checking EES M201 MSF receiver... $ECHO_C" >&6
12529
22678
# Check whether --enable-MSFEES or --disable-MSFEES was given.
12530
22679
if test "${enable_MSFEES+set}" = set; then
12535
22684
fi;
12536
22685
if test "$ntp_ok" = "yes"; then
12537
22686
    ntp_refclock=yes
12538
 
    cat >>confdefs.h <<\EOF
 
22687
 
 
22688
cat >>confdefs.h <<\_ACEOF
12539
22689
#define CLOCK_MSFEES 1
12540
 
EOF
 
22690
_ACEOF
12541
22691
 
12542
22692
fi
12543
 
echo "$as_me:12543: result: $ntp_ok" >&5
 
22693
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12544
22694
echo "${ECHO_T}$ntp_ok" >&6
12545
22695
 
12546
22696
# Not Ultrix
12547
 
echo "$as_me:12547: checking Magnavox MX4200 GPS receiver" >&5
 
22697
echo "$as_me:$LINENO: checking Magnavox MX4200 GPS receiver" >&5
12548
22698
echo $ECHO_N "checking Magnavox MX4200 GPS receiver... $ECHO_C" >&6
12549
22699
# Check whether --enable-MX4200 or --disable-MX4200 was given.
12550
22700
if test "${enable_MX4200+set}" = set; then
12560
22710
fi;
12561
22711
if test "$ntp_ok" = "yes"; then
12562
22712
    ntp_refclock=yes
12563
 
    cat >>confdefs.h <<\EOF
 
22713
 
 
22714
cat >>confdefs.h <<\_ACEOF
12564
22715
#define CLOCK_MX4200 1
12565
 
EOF
 
22716
_ACEOF
12566
22717
 
12567
22718
fi
12568
 
echo "$as_me:12568: result: $ntp_ok" >&5
 
22719
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12569
22720
echo "${ECHO_T}$ntp_ok" >&6
12570
 
case "$ntp_ok$target" in
12571
 
 yes*-*-ultrix*) { echo "$as_me:12571: WARNING: *** But the expected answer is... no ***" >&5
 
22721
case "$ntp_ok$host" in
 
22722
 yes*-*-ultrix*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
12572
22723
echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
12573
22724
esac
12574
22725
 
12575
 
echo "$as_me:12575: checking NMEA GPS receiver" >&5
 
22726
echo "$as_me:$LINENO: checking for NeoClock4X receiver" >&5
 
22727
echo $ECHO_N "checking for NeoClock4X receiver... $ECHO_C" >&6
 
22728
# Check whether --enable-NEOCLOCK4X or --disable-NEOCLOCK4X was given.
 
22729
if test "${enable_NEOCLOCK4X+set}" = set; then
 
22730
  enableval="$enable_NEOCLOCK4X"
 
22731
  ntp_ok=$enableval
 
22732
else
 
22733
  ntp_ok=$ntp_eac
 
22734
fi;
 
22735
if test "$ntp_ok" = "yes"; then
 
22736
    ntp_refclock=yes
 
22737
 
 
22738
cat >>confdefs.h <<\_ACEOF
 
22739
#define CLOCK_NEOCLOCK4X 1
 
22740
_ACEOF
 
22741
 
 
22742
fi
 
22743
echo "$as_me:$LINENO: result: $ntp_ok" >&5
 
22744
echo "${ECHO_T}$ntp_ok" >&6
 
22745
 
 
22746
echo "$as_me:$LINENO: checking NMEA GPS receiver" >&5
12576
22747
echo $ECHO_N "checking NMEA GPS receiver... $ECHO_C" >&6
12577
22748
# Check whether --enable-NMEA or --disable-NMEA was given.
12578
22749
if test "${enable_NMEA+set}" = set; then
12583
22754
fi;
12584
22755
if test "$ntp_ok" = "yes"; then
12585
22756
    ntp_refclock=yes
12586
 
    cat >>confdefs.h <<\EOF
 
22757
 
 
22758
cat >>confdefs.h <<\_ACEOF
12587
22759
#define CLOCK_NMEA 1
12588
 
EOF
 
22760
_ACEOF
12589
22761
 
12590
22762
fi
12591
 
echo "$as_me:12591: result: $ntp_ok" >&5
 
22763
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12592
22764
echo "${ECHO_T}$ntp_ok" >&6
12593
22765
 
12594
 
echo "$as_me:12594: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
 
22766
echo "$as_me:$LINENO: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
12595
22767
echo $ECHO_N "checking for ONCORE Motorola VP/UT Oncore GPS... $ECHO_C" >&6
12596
22768
# Check whether --enable-ONCORE or --disable-ONCORE was given.
12597
22769
if test "${enable_ONCORE+set}" = set; then
12605
22777
esac
12606
22778
if test "$ntp_ok" = "yes"; then
12607
22779
    ntp_refclock=yes
12608
 
    cat >>confdefs.h <<\EOF
 
22780
 
 
22781
cat >>confdefs.h <<\_ACEOF
12609
22782
#define CLOCK_ONCORE 1
12610
 
EOF
 
22783
_ACEOF
12611
22784
 
12612
22785
fi
12613
 
echo "$as_me:12613: result: $ntp_ok" >&5
 
22786
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12614
22787
echo "${ECHO_T}$ntp_ok" >&6
12615
22788
 
12616
 
echo "$as_me:12616: checking for Palisade clock" >&5
 
22789
echo "$as_me:$LINENO: checking for Palisade clock" >&5
12617
22790
echo $ECHO_N "checking for Palisade clock... $ECHO_C" >&6
12618
22791
# Check whether --enable-PALISADE or --disable-PALISADE was given.
12619
22792
if test "${enable_PALISADE+set}" = set; then
12631
22804
 
12632
22805
if test "$ntp_ok" = "yes"; then
12633
22806
    ntp_refclock=yes
12634
 
    cat >>confdefs.h <<\EOF
 
22807
 
 
22808
cat >>confdefs.h <<\_ACEOF
12635
22809
#define CLOCK_PALISADE 1
12636
 
EOF
12637
 
 
12638
 
fi
12639
 
echo "$as_me:12639: result: $ntp_ok" >&5
12640
 
echo "${ECHO_T}$ntp_ok" >&6
12641
 
 
12642
 
echo "$as_me:12642: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
 
22810
_ACEOF
 
22811
 
 
22812
fi
 
22813
echo "$as_me:$LINENO: result: $ntp_ok" >&5
 
22814
echo "${ECHO_T}$ntp_ok" >&6
 
22815
 
 
22816
echo "$as_me:$LINENO: checking Conrad parallel port radio clock" >&5
 
22817
echo $ECHO_N "checking Conrad parallel port radio clock... $ECHO_C" >&6
 
22818
# Check whether --enable-PCF or --disable-PCF was given.
 
22819
if test "${enable_PCF+set}" = set; then
 
22820
  enableval="$enable_PCF"
 
22821
  ntp_ok=$enableval
 
22822
else
 
22823
  ntp_ok=$ntp_eac
 
22824
fi;
 
22825
if test "$ntp_ok" = "yes"; then
 
22826
    ntp_refclock=yes
 
22827
 
 
22828
cat >>confdefs.h <<\_ACEOF
 
22829
#define CLOCK_PCF 1
 
22830
_ACEOF
 
22831
 
 
22832
fi
 
22833
echo "$as_me:$LINENO: result: $ntp_ok" >&5
 
22834
echo "${ECHO_T}$ntp_ok" >&6
 
22835
 
 
22836
echo "$as_me:$LINENO: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
12643
22837
echo $ECHO_N "checking PST/Traconex 1020 WWV/WWVH receiver... $ECHO_C" >&6
12644
22838
# Check whether --enable-PST or --disable-PST was given.
12645
22839
if test "${enable_PST+set}" = set; then
12650
22844
fi;
12651
22845
if test "$ntp_ok" = "yes"; then
12652
22846
    ntp_refclock=yes
12653
 
    cat >>confdefs.h <<\EOF
 
22847
 
 
22848
cat >>confdefs.h <<\_ACEOF
12654
22849
#define CLOCK_PST 1
12655
 
EOF
12656
 
 
12657
 
fi
12658
 
echo "$as_me:12658: result: $ntp_ok" >&5
12659
 
echo "${ECHO_T}$ntp_ok" >&6
12660
 
 
12661
 
# Not Ultrix
12662
 
echo "$as_me:12662: checking Rockwell Jupiter GPS receiver" >&5
12663
 
echo $ECHO_N "checking Rockwell Jupiter GPS receiver... $ECHO_C" >&6
12664
 
# Check whether --enable-JUPITER or --disable-JUPITER was given.
12665
 
if test "${enable_JUPITER+set}" = set; then
12666
 
  enableval="$enable_JUPITER"
12667
 
  ntp_ok=$enableval
12668
 
else
12669
 
  case "$ac_cv_var_ppsclock" in
12670
 
#     yes) ntp_ok=$ntp_eac
12671
 
#        ;;
12672
 
     *) ntp_ok=no
12673
 
        ;;
12674
 
    esac
12675
 
fi;
12676
 
if test "$ntp_ok" = "yes"; then
12677
 
    ntp_refclock=yes
12678
 
    cat >>confdefs.h <<\EOF
12679
 
#define CLOCK_JUPITER 1
12680
 
EOF
12681
 
 
12682
 
fi
12683
 
echo "$as_me:12683: result: $ntp_ok" >&5
12684
 
echo "${ECHO_T}$ntp_ok" >&6
12685
 
case "$ntp_ok$target" in
12686
 
 yes*-*-ultrix*) { echo "$as_me:12686: WARNING: *** But the expected answer is... no ***" >&5
12687
 
echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
12688
 
esac
 
22850
_ACEOF
 
22851
 
 
22852
fi
 
22853
echo "$as_me:$LINENO: result: $ntp_ok" >&5
 
22854
echo "${ECHO_T}$ntp_ok" >&6
12689
22855
 
12690
22856
# Requires modem control
12691
 
echo "$as_me:12691: checking PTB modem service" >&5
 
22857
echo "$as_me:$LINENO: checking PTB modem service" >&5
12692
22858
echo $ECHO_N "checking PTB modem service... $ECHO_C" >&6
12693
22859
# Check whether --enable-PTBACTS or --disable-PTBACTS was given.
12694
22860
if test "${enable_PTBACTS+set}" = set; then
12696
22862
  ntp_ok=$enableval
12697
22863
else
12698
22864
  cat >conftest.$ac_ext <<_ACEOF
12699
 
#line 12699 "configure"
12700
 
#include "confdefs.h"
 
22865
/* confdefs.h.  */
 
22866
_ACEOF
 
22867
cat confdefs.h >>conftest.$ac_ext
 
22868
cat >>conftest.$ac_ext <<_ACEOF
 
22869
/* end confdefs.h.  */
12701
22870
#include <termios.h>
12702
22871
#ifdef HAVE_SYS_IOCTL_H
12703
22872
#include <sys/ioctl.h>
12708
22877
 
12709
22878
_ACEOF
12710
22879
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12711
 
  egrep "yes" >/dev/null 2>&1; then
 
22880
  $EGREP "yes" >/dev/null 2>&1; then
12712
22881
  ntp_ok=$ntp_eac
12713
22882
else
12714
22883
  ntp_ok=no
12718
22887
fi;
12719
22888
if test "$ntp_ok" = "yes"; then
12720
22889
    ntp_refclock=yes
12721
 
    cat >>confdefs.h <<\EOF
 
22890
 
 
22891
cat >>confdefs.h <<\_ACEOF
12722
22892
#define CLOCK_PTBACTS 1
12723
 
EOF
12724
 
 
12725
 
fi
12726
 
echo "$as_me:12726: result: $ntp_ok" >&5
12727
 
echo "${ECHO_T}$ntp_ok" >&6
12728
 
 
12729
 
echo "$as_me:12729: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
 
22893
_ACEOF
 
22894
 
 
22895
fi
 
22896
echo "$as_me:$LINENO: result: $ntp_ok" >&5
 
22897
echo "${ECHO_T}$ntp_ok" >&6
 
22898
 
 
22899
echo "$as_me:$LINENO: checking RIPENCC specific Trimble driver" >&5
 
22900
echo $ECHO_N "checking RIPENCC specific Trimble driver... $ECHO_C" >&6
 
22901
# Check whether --enable-RIPENCC or --disable-RIPENCC was given.
 
22902
if test "${enable_RIPENCC+set}" = set; then
 
22903
  enableval="$enable_RIPENCC"
 
22904
  ntp_ok=$enableval
 
22905
else
 
22906
  ntp_ok=no
 
22907
fi;
 
22908
# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
 
22909
case "$ac_cv_var_ripe_ncc_ok" in
 
22910
 no) ntp_ok=no ;;
 
22911
esac
 
22912
if test "$ntp_ok" = "yes"; then
 
22913
    ntp_refclock=yes
 
22914
 
 
22915
cat >>confdefs.h <<\_ACEOF
 
22916
#define CLOCK_RIPENCC
 
22917
_ACEOF
 
22918
 
 
22919
fi
 
22920
echo "$as_me:$LINENO: result: $ntp_ok" >&5
 
22921
echo "${ECHO_T}$ntp_ok" >&6
 
22922
 
 
22923
# Danny Meyer says SHM compiles (with a few warnings) under Win32.
 
22924
# For *IX, we need sys/ipc.h and sys/shm.h.
 
22925
echo "$as_me:$LINENO: checking for SHM clock attached thru shared memory" >&5
 
22926
echo $ECHO_N "checking for SHM clock attached thru shared memory... $ECHO_C" >&6
 
22927
# Check whether --enable-SHM or --disable-SHM was given.
 
22928
if test "${enable_SHM+set}" = set; then
 
22929
  enableval="$enable_SHM"
 
22930
  ntp_ok=$enableval
 
22931
else
 
22932
  case "$ntp_eac$ntp_canshm" in
 
22933
 *no*)  ntp_ok=no  ;;
 
22934
 *)     ntp_ok=yes ;;
 
22935
esac
 
22936
fi;
 
22937
if test "$ntp_ok" = "yes"; then
 
22938
    ntp_refclock=yes
 
22939
 
 
22940
cat >>confdefs.h <<\_ACEOF
 
22941
#define CLOCK_SHM 1
 
22942
_ACEOF
 
22943
 
 
22944
fi
 
22945
echo "$as_me:$LINENO: result: $ntp_ok" >&5
 
22946
echo "${ECHO_T}$ntp_ok" >&6
 
22947
 
 
22948
echo "$as_me:$LINENO: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
 
22949
echo $ECHO_N "checking Spectracom 8170/Netclock/2 WWVB receiver... $ECHO_C" >&6
 
22950
# Check whether --enable-SPECTRACOM or --disable-SPECTRACOM was given.
 
22951
if test "${enable_SPECTRACOM+set}" = set; then
 
22952
  enableval="$enable_SPECTRACOM"
 
22953
  ntp_ok=$enableval
 
22954
else
 
22955
  ntp_ok=$ntp_eac
 
22956
fi;
 
22957
if test "$ntp_ok" = "yes"; then
 
22958
    ntp_refclock=yes
 
22959
 
 
22960
cat >>confdefs.h <<\_ACEOF
 
22961
#define CLOCK_SPECTRACOM 1
 
22962
_ACEOF
 
22963
 
 
22964
fi
 
22965
echo "$as_me:$LINENO: result: $ntp_ok" >&5
 
22966
echo "${ECHO_T}$ntp_ok" >&6
 
22967
 
 
22968
echo "$as_me:$LINENO: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
12730
22969
echo $ECHO_N "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... $ECHO_C" >&6
12731
22970
# Check whether --enable-TPRO or --disable-TPRO was given.
12732
22971
if test "${enable_TPRO+set}" = set; then
12743
22982
fi;
12744
22983
if test "$ntp_ok" = "yes"; then
12745
22984
    ntp_refclock=yes
12746
 
    cat >>confdefs.h <<\EOF
 
22985
 
 
22986
cat >>confdefs.h <<\_ACEOF
12747
22987
#define CLOCK_TPRO 1
12748
 
EOF
 
22988
_ACEOF
12749
22989
 
12750
22990
fi
12751
 
echo "$as_me:12751: result: $ntp_ok" >&5
 
22991
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12752
22992
echo "${ECHO_T}$ntp_ok" >&6
12753
22993
case "$ntp_ok$ac_cv_header_sys_tpro" in
12754
 
 yesno) { echo "$as_me:12754: WARNING: *** But the expected answer is... no ***" >&5
 
22994
 yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
12755
22995
echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
12756
22996
esac
12757
22997
 
12758
 
echo "$as_me:12758: checking TRAK 8810 GPS receiver" >&5
 
22998
echo "$as_me:$LINENO: checking TRAK 8810 GPS receiver" >&5
12759
22999
echo $ECHO_N "checking TRAK 8810 GPS receiver... $ECHO_C" >&6
12760
23000
# Check whether --enable-TRAK or --disable-TRAK was given.
12761
23001
if test "${enable_TRAK+set}" = set; then
12766
23006
fi;
12767
23007
if test "$ntp_ok" = "yes"; then
12768
23008
    ntp_refclock=yes
12769
 
    cat >>confdefs.h <<\EOF
 
23009
 
 
23010
cat >>confdefs.h <<\_ACEOF
12770
23011
#define CLOCK_TRAK 1
12771
 
EOF
12772
 
 
12773
 
fi
12774
 
echo "$as_me:12774: result: $ntp_ok" >&5
12775
 
echo "${ECHO_T}$ntp_ok" >&6
12776
 
 
12777
 
echo "$as_me:12777: checking Chrono-log K-series WWVB receiver" >&5
12778
 
echo $ECHO_N "checking Chrono-log K-series WWVB receiver... $ECHO_C" >&6
12779
 
# Check whether --enable-CHRONOLOG or --disable-CHRONOLOG was given.
12780
 
if test "${enable_CHRONOLOG+set}" = set; then
12781
 
  enableval="$enable_CHRONOLOG"
12782
 
  ntp_ok=$enableval
12783
 
else
12784
 
  ntp_ok=$ntp_eac
12785
 
fi;
12786
 
if test "$ntp_ok" = "yes"; then
12787
 
    ntp_refclock=yes
12788
 
    cat >>confdefs.h <<\EOF
12789
 
#define CLOCK_CHRONOLOG 1
12790
 
EOF
12791
 
 
12792
 
fi
12793
 
echo "$as_me:12793: result: $ntp_ok" >&5
12794
 
echo "${ECHO_T}$ntp_ok" >&6
12795
 
 
12796
 
echo "$as_me:12796: checking Dumb generic hh:mm:ss local clock" >&5
12797
 
echo $ECHO_N "checking Dumb generic hh:mm:ss local clock... $ECHO_C" >&6
12798
 
# Check whether --enable-DUMBCLOCK or --disable-DUMBCLOCK was given.
12799
 
if test "${enable_DUMBCLOCK+set}" = set; then
12800
 
  enableval="$enable_DUMBCLOCK"
12801
 
  ntp_ok=$enableval
12802
 
else
12803
 
  ntp_ok=$ntp_eac
12804
 
fi;
12805
 
if test "$ntp_ok" = "yes"; then
12806
 
    ntp_refclock=yes
12807
 
    cat >>confdefs.h <<\EOF
12808
 
#define CLOCK_DUMBCLOCK 1
12809
 
EOF
12810
 
 
12811
 
fi
12812
 
echo "$as_me:12812: result: $ntp_ok" >&5
12813
 
echo "${ECHO_T}$ntp_ok" >&6
12814
 
 
12815
 
echo "$as_me:12815: checking Conrad parallel port radio clock" >&5
12816
 
echo $ECHO_N "checking Conrad parallel port radio clock... $ECHO_C" >&6
12817
 
# Check whether --enable-PCF or --disable-PCF was given.
12818
 
if test "${enable_PCF+set}" = set; then
12819
 
  enableval="$enable_PCF"
12820
 
  ntp_ok=$enableval
12821
 
else
12822
 
  ntp_ok=$ntp_eac
12823
 
fi;
12824
 
if test "$ntp_ok" = "yes"; then
12825
 
    ntp_refclock=yes
12826
 
    cat >>confdefs.h <<\EOF
12827
 
#define CLOCK_PCF 1
12828
 
EOF
12829
 
 
12830
 
fi
12831
 
echo "$as_me:12831: result: $ntp_ok" >&5
12832
 
echo "${ECHO_T}$ntp_ok" >&6
12833
 
 
12834
 
echo "$as_me:12834: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
12835
 
echo $ECHO_N "checking Spectracom 8170/Netclock/2 WWVB receiver... $ECHO_C" >&6
12836
 
# Check whether --enable-SPECTRACOM or --disable-SPECTRACOM was given.
12837
 
if test "${enable_SPECTRACOM+set}" = set; then
12838
 
  enableval="$enable_SPECTRACOM"
12839
 
  ntp_ok=$enableval
12840
 
else
12841
 
  ntp_ok=$ntp_eac
12842
 
fi;
12843
 
if test "$ntp_ok" = "yes"; then
12844
 
    ntp_refclock=yes
12845
 
    cat >>confdefs.h <<\EOF
12846
 
#define CLOCK_SPECTRACOM 1
12847
 
EOF
12848
 
 
12849
 
fi
12850
 
echo "$as_me:12850: result: $ntp_ok" >&5
 
23012
_ACEOF
 
23013
 
 
23014
fi
 
23015
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12851
23016
echo "${ECHO_T}$ntp_ok" >&6
12852
23017
 
12853
23018
# Not on a vax-dec-bsd
12854
 
echo "$as_me:12854: checking Kinemetrics/TrueTime receivers" >&5
 
23019
echo "$as_me:$LINENO: checking Kinemetrics/TrueTime receivers" >&5
12855
23020
echo $ECHO_N "checking Kinemetrics/TrueTime receivers... $ECHO_C" >&6
12856
23021
# Check whether --enable-TRUETIME or --disable-TRUETIME was given.
12857
23022
if test "${enable_TRUETIME+set}" = set; then
12858
23023
  enableval="$enable_TRUETIME"
12859
23024
  ntp_ok=$enableval
12860
23025
else
12861
 
  case "$target" in
 
23026
  case "$host" in
12862
23027
     vax-dec-bsd)
12863
23028
        ntp_ok=no
12864
23029
        ;;
12869
23034
fi;
12870
23035
if test "$ntp_ok" = "yes"; then
12871
23036
    ntp_refclock=yes
12872
 
    cat >>confdefs.h <<\EOF
 
23037
 
 
23038
cat >>confdefs.h <<\_ACEOF
12873
23039
#define CLOCK_TRUETIME 1
12874
 
EOF
 
23040
_ACEOF
12875
23041
 
12876
23042
fi
12877
 
echo "$as_me:12877: result: $ntp_ok" >&5
 
23043
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12878
23044
echo "${ECHO_T}$ntp_ok" >&6
12879
 
case "$ntp_ok$target" in
12880
 
 yesvax-dec-bsd) { echo "$as_me:12880: WARNING: *** But the expected answer is... no ***" >&5
 
23045
case "$ntp_ok$host" in
 
23046
 yesvax-dec-bsd) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
12881
23047
echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
12882
23048
esac
12883
23049
 
12884
 
echo "$as_me:12884: checking Ultralink M320 WWVB receiver" >&5
 
23050
echo "$as_me:$LINENO: checking TrueTime 560 IRIG-B decoder" >&5
 
23051
echo $ECHO_N "checking TrueTime 560 IRIG-B decoder... $ECHO_C" >&6
 
23052
# Check whether --enable-TT560 or --disable-TT560 was given.
 
23053
if test "${enable_TT560+set}" = set; then
 
23054
  enableval="$enable_TT560"
 
23055
  ntp_ok=$enableval
 
23056
else
 
23057
  ntp_ok=no
 
23058
fi;
 
23059
if test "$ntp_ok" = "yes"; then
 
23060
    ntp_refclock=yes
 
23061
 
 
23062
cat >>confdefs.h <<\_ACEOF
 
23063
#define CLOCK_TT560
 
23064
_ACEOF
 
23065
 
 
23066
fi
 
23067
echo "$as_me:$LINENO: result: $ntp_ok" >&5
 
23068
echo "${ECHO_T}$ntp_ok" >&6
 
23069
 
 
23070
echo "$as_me:$LINENO: checking Ultralink M320 WWVB receiver" >&5
12885
23071
echo $ECHO_N "checking Ultralink M320 WWVB receiver... $ECHO_C" >&6
12886
23072
# Check whether --enable-ULINK or --disable-ULINK was given.
12887
23073
if test "${enable_ULINK+set}" = set; then
12892
23078
fi;
12893
23079
if test "$ntp_ok" = "yes"; then
12894
23080
    ntp_refclock=yes
12895
 
    cat >>confdefs.h <<\EOF
 
23081
 
 
23082
cat >>confdefs.h <<\_ACEOF
12896
23083
#define CLOCK_ULINK 1
12897
 
EOF
12898
 
 
12899
 
fi
12900
 
echo "$as_me:12900: result: $ntp_ok" >&5
12901
 
echo "${ECHO_T}$ntp_ok" >&6
12902
 
 
12903
 
echo "$as_me:12903: checking WWV receiver" >&5
 
23084
_ACEOF
 
23085
 
 
23086
fi
 
23087
echo "$as_me:$LINENO: result: $ntp_ok" >&5
 
23088
echo "${ECHO_T}$ntp_ok" >&6
 
23089
 
 
23090
# Requires modem control
 
23091
echo "$as_me:$LINENO: checking USNO modem service" >&5
 
23092
echo $ECHO_N "checking USNO modem service... $ECHO_C" >&6
 
23093
# Check whether --enable-USNO or --disable-USNO was given.
 
23094
if test "${enable_USNO+set}" = set; then
 
23095
  enableval="$enable_USNO"
 
23096
  ntp_ok=$enableval
 
23097
else
 
23098
  cat >conftest.$ac_ext <<_ACEOF
 
23099
/* confdefs.h.  */
 
23100
_ACEOF
 
23101
cat confdefs.h >>conftest.$ac_ext
 
23102
cat >>conftest.$ac_ext <<_ACEOF
 
23103
/* end confdefs.h.  */
 
23104
#include <termios.h>
 
23105
#ifdef HAVE_SYS_IOCTL_H
 
23106
#include <sys/ioctl.h>
 
23107
#endif
 
23108
#ifdef TIOCMBIS
 
23109
         yes
 
23110
#endif
 
23111
 
 
23112
_ACEOF
 
23113
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
23114
  $EGREP "yes" >/dev/null 2>&1; then
 
23115
  ntp_ok=$ntp_eac
 
23116
else
 
23117
  ntp_ok=no
 
23118
fi
 
23119
rm -f conftest*
 
23120
 
 
23121
fi;
 
23122
if test "$ntp_ok" = "yes"; then
 
23123
    ntp_refclock=yes
 
23124
 
 
23125
cat >>confdefs.h <<\_ACEOF
 
23126
#define CLOCK_USNO 1
 
23127
_ACEOF
 
23128
 
 
23129
fi
 
23130
echo "$as_me:$LINENO: result: $ntp_ok" >&5
 
23131
echo "${ECHO_T}$ntp_ok" >&6
 
23132
 
 
23133
echo "$as_me:$LINENO: checking WWV receiver" >&5
12904
23134
echo $ECHO_N "checking WWV receiver... $ECHO_C" >&6
12905
23135
# Check whether --enable-WWV or --disable-WWV was given.
12906
23136
if test "${enable_WWV+set}" = set; then
12914
23144
fi;
12915
23145
if test "$ntp_ok" = "yes"; then
12916
23146
    ntp_refclock=yes
12917
 
    cat >>confdefs.h <<\EOF
 
23147
 
 
23148
cat >>confdefs.h <<\_ACEOF
12918
23149
#define CLOCK_WWV 1
12919
 
EOF
 
23150
_ACEOF
12920
23151
 
12921
23152
fi
12922
 
echo "$as_me:12922: result: $ntp_ok" >&5
 
23153
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12923
23154
echo "${ECHO_T}$ntp_ok" >&6
12924
23155
case "$ntp_ok$ntp_canaudio" in
12925
 
 yesno) { echo "$as_me:12925: WARNING: *** But the expected answer is... no ***" >&5
 
23156
 yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
12926
23157
echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
12927
23158
esac
12928
23159
 
12929
 
# Requires modem control
12930
 
echo "$as_me:12930: checking USNO modem service" >&5
12931
 
echo $ECHO_N "checking USNO modem service... $ECHO_C" >&6
12932
 
# Check whether --enable-USNO or --disable-USNO was given.
12933
 
if test "${enable_USNO+set}" = set; then
12934
 
  enableval="$enable_USNO"
 
23160
echo "$as_me:$LINENO: checking for Zyfer receiver" >&5
 
23161
echo $ECHO_N "checking for Zyfer receiver... $ECHO_C" >&6
 
23162
# Check whether --enable-ZYFER or --disable-ZYFER was given.
 
23163
if test "${enable_ZYFER+set}" = set; then
 
23164
  enableval="$enable_ZYFER"
12935
23165
  ntp_ok=$enableval
12936
23166
else
12937
 
  cat >conftest.$ac_ext <<_ACEOF
12938
 
#line 12938 "configure"
12939
 
#include "confdefs.h"
12940
 
#include <termios.h>
12941
 
#ifdef HAVE_SYS_IOCTL_H
12942
 
#include <sys/ioctl.h>
12943
 
#endif
12944
 
#ifdef TIOCMBIS
12945
 
         yes
12946
 
#endif
12947
 
 
12948
 
_ACEOF
12949
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12950
 
  egrep "yes" >/dev/null 2>&1; then
12951
23167
  ntp_ok=$ntp_eac
12952
 
else
12953
 
  ntp_ok=no
12954
 
fi
12955
 
rm -f conftest*
12956
 
 
12957
23168
fi;
12958
23169
if test "$ntp_ok" = "yes"; then
12959
23170
    ntp_refclock=yes
12960
 
    cat >>confdefs.h <<\EOF
12961
 
#define CLOCK_USNO 1
12962
 
EOF
 
23171
 
 
23172
cat >>confdefs.h <<\_ACEOF
 
23173
#define CLOCK_ZYFER 1
 
23174
_ACEOF
12963
23175
 
12964
23176
fi
12965
 
echo "$as_me:12965: result: $ntp_ok" >&5
 
23177
echo "$as_me:$LINENO: result: $ntp_ok" >&5
12966
23178
echo "${ECHO_T}$ntp_ok" >&6
12967
23179
 
12968
 
echo "$as_me:12968: checking for default inclusion of all suitable PARSE clocks" >&5
 
23180
echo "$as_me:$LINENO: checking for default inclusion of all suitable PARSE clocks" >&5
12969
23181
echo $ECHO_N "checking for default inclusion of all suitable PARSE clocks... $ECHO_C" >&6
12970
23182
# Check whether --enable-parse-clocks or --disable-parse-clocks was given.
12971
23183
if test "${enable_parse_clocks+set}" = set; then
12978
23190
    esac
12979
23191
    ntp_eapc=no
12980
23192
fi;
12981
 
echo "$as_me:12981: result: $ntp_eapc" >&5
 
23193
echo "$as_me:$LINENO: result: $ntp_eapc" >&5
12982
23194
echo "${ECHO_T}$ntp_eapc" >&6
12983
23195
 
12984
23196
case "$ntp_eac$ntp_eapc$ntp_canparse" in
12985
23197
 noyes*)
12986
 
    { { echo "$as_me:12986: error: \"--enable-parse-clocks\" requires \"--enable-all-clocks\"." >&5
 
23198
    { { echo "$as_me:$LINENO: error: \"--enable-parse-clocks\" requires \"--enable-all-clocks\"." >&5
12987
23199
echo "$as_me: error: \"--enable-parse-clocks\" requires \"--enable-all-clocks\"." >&2;}
12988
23200
   { (exit 1); exit 1; }; }
12989
23201
    ;;
12990
23202
 yesyesno)
12991
 
    { { echo "$as_me:12991: error: You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" >&5
 
23203
    { { echo "$as_me:$LINENO: error: You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" >&5
12992
23204
echo "$as_me: error: You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" >&2;}
12993
23205
   { (exit 1); exit 1; }; }
12994
23206
    ;;
12999
23211
ntp_parseutil=no
13000
23212
ntp_rawdcf=no
13001
23213
 
13002
 
echo "$as_me:13002: checking Diem Computime Radio Clock" >&5
 
23214
echo "$as_me:$LINENO: checking Diem Computime Radio Clock" >&5
13003
23215
echo $ECHO_N "checking Diem Computime Radio Clock... $ECHO_C" >&6
13004
23216
# Check whether --enable-COMPUTIME or --disable-COMPUTIME was given.
13005
23217
if test "${enable_COMPUTIME+set}" = set; then
13011
23223
if test "$ntp_ok" = "yes"; then
13012
23224
    ntp_libparse=yes
13013
23225
    ntp_refclock=yes
13014
 
    cat >>confdefs.h <<\EOF
 
23226
 
 
23227
cat >>confdefs.h <<\_ACEOF
13015
23228
#define CLOCK_COMPUTIME 1
13016
 
EOF
 
23229
_ACEOF
13017
23230
 
13018
23231
fi
13019
 
echo "$as_me:13019: result: $ntp_ok" >&5
 
23232
echo "$as_me:$LINENO: result: $ntp_ok" >&5
13020
23233
echo "${ECHO_T}$ntp_ok" >&6
13021
23234
case "$ntp_ok$ntp_canparse" in
13022
23235
 yesno)
13023
 
    { { echo "$as_me:13023: error: That's a parse clock and this system doesn't support it!" >&5
 
23236
    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
13024
23237
echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
13025
23238
   { (exit 1); exit 1; }; }
13026
23239
    ;;
13027
23240
esac
13028
23241
 
13029
 
echo "$as_me:13029: checking ELV/DCF7000 clock" >&5
 
23242
echo "$as_me:$LINENO: checking ELV/DCF7000 clock" >&5
13030
23243
echo $ECHO_N "checking ELV/DCF7000 clock... $ECHO_C" >&6
13031
23244
# Check whether --enable-DCF7000 or --disable-DCF7000 was given.
13032
23245
if test "${enable_DCF7000+set}" = set; then
13038
23251
if test "$ntp_ok" = "yes"; then
13039
23252
    ntp_libparse=yes
13040
23253
    ntp_refclock=yes
13041
 
    cat >>confdefs.h <<\EOF
 
23254
 
 
23255
cat >>confdefs.h <<\_ACEOF
13042
23256
#define CLOCK_DCF7000 1
13043
 
EOF
 
23257
_ACEOF
13044
23258
 
13045
23259
fi
13046
 
echo "$as_me:13046: result: $ntp_ok" >&5
 
23260
echo "$as_me:$LINENO: result: $ntp_ok" >&5
13047
23261
echo "${ECHO_T}$ntp_ok" >&6
13048
23262
case "$ntp_ok$ntp_canparse" in
13049
23263
 yesno)
13050
 
    { { echo "$as_me:13050: error: That's a parse clock and this system doesn't support it!" >&5
 
23264
    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
13051
23265
echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
13052
23266
   { (exit 1); exit 1; }; }
13053
23267
    ;;
13054
23268
esac
13055
23269
 
13056
 
echo "$as_me:13056: checking HOPF 6021 clock" >&5
 
23270
echo "$as_me:$LINENO: checking HOPF 6021 clock" >&5
13057
23271
echo $ECHO_N "checking HOPF 6021 clock... $ECHO_C" >&6
13058
23272
# Check whether --enable-HOPF6021 or --disable-HOPF6021 was given.
13059
23273
if test "${enable_HOPF6021+set}" = set; then
13065
23279
if test "$ntp_ok" = "yes"; then
13066
23280
    ntp_libparse=yes
13067
23281
    ntp_refclock=yes
13068
 
    cat >>confdefs.h <<\EOF
 
23282
 
 
23283
cat >>confdefs.h <<\_ACEOF
13069
23284
#define CLOCK_HOPF6021 1
13070
 
EOF
 
23285
_ACEOF
13071
23286
 
13072
23287
fi
13073
 
echo "$as_me:13073: result: $ntp_ok" >&5
 
23288
echo "$as_me:$LINENO: result: $ntp_ok" >&5
13074
23289
echo "${ECHO_T}$ntp_ok" >&6
13075
23290
case "$ntp_ok$ntp_canparse" in
13076
23291
 yesno)
13077
 
    { { echo "$as_me:13077: error: That's a parse clock and this system doesn't support it!" >&5
 
23292
    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
13078
23293
echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
13079
23294
   { (exit 1); exit 1; }; }
13080
23295
    ;;
13081
23296
esac
13082
23297
 
13083
 
echo "$as_me:13083: checking Meinberg clocks" >&5
 
23298
echo "$as_me:$LINENO: checking Meinberg clocks" >&5
13084
23299
echo $ECHO_N "checking Meinberg clocks... $ECHO_C" >&6
13085
23300
# Check whether --enable-MEINBERG or --disable-MEINBERG was given.
13086
23301
if test "${enable_MEINBERG+set}" = set; then
13092
23307
if test "$ntp_ok" = "yes"; then
13093
23308
    ntp_libparse=yes
13094
23309
    ntp_refclock=yes
13095
 
    cat >>confdefs.h <<\EOF
 
23310
 
 
23311
cat >>confdefs.h <<\_ACEOF
13096
23312
#define CLOCK_MEINBERG 1
13097
 
EOF
 
23313
_ACEOF
13098
23314
 
13099
23315
fi
13100
 
echo "$as_me:13100: result: $ntp_ok" >&5
 
23316
echo "$as_me:$LINENO: result: $ntp_ok" >&5
13101
23317
echo "${ECHO_T}$ntp_ok" >&6
13102
23318
case "$ntp_ok$ntp_canparse" in
13103
23319
 yesno)
13104
 
    { { echo "$as_me:13104: error: That's a parse clock and this system doesn't support it!" >&5
 
23320
    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
13105
23321
echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
13106
23322
   { (exit 1); exit 1; }; }
13107
23323
    ;;
13108
23324
esac
13109
23325
 
13110
 
echo "$as_me:13110: checking DCF77 raw time code" >&5
 
23326
echo "$as_me:$LINENO: checking DCF77 raw time code" >&5
13111
23327
echo $ECHO_N "checking DCF77 raw time code... $ECHO_C" >&6
13112
23328
# Check whether --enable-RAWDCF or --disable-RAWDCF was given.
13113
23329
if test "${enable_RAWDCF+set}" = set; then
13121
23337
    ntp_parseutil=yes
13122
23338
    ntp_refclock=yes
13123
23339
    ntp_rawdcf=yes
13124
 
    cat >>confdefs.h <<\EOF
 
23340
 
 
23341
cat >>confdefs.h <<\_ACEOF
13125
23342
#define CLOCK_RAWDCF 1
13126
 
EOF
 
23343
_ACEOF
13127
23344
 
13128
23345
fi
13129
 
echo "$as_me:13129: result: $ntp_ok" >&5
 
23346
echo "$as_me:$LINENO: result: $ntp_ok" >&5
13130
23347
echo "${ECHO_T}$ntp_ok" >&6
13131
23348
case "$ntp_ok$ntp_canparse" in
13132
23349
 yesno)
13133
 
    { { echo "$as_me:13133: error: That's a parse clock and this system doesn't support it!" >&5
 
23350
    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
13134
23351
echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
13135
23352
   { (exit 1); exit 1; }; }
13136
23353
    ;;
13138
23355
 
13139
23356
case "$ntp_rawdcf" in
13140
23357
 yes)
13141
 
    echo "$as_me:13141: checking if we must enable parity for RAWDCF" >&5
 
23358
    echo "$as_me:$LINENO: checking if we must enable parity for RAWDCF" >&5
13142
23359
echo $ECHO_N "checking if we must enable parity for RAWDCF... $ECHO_C" >&6
13143
23360
if test "${ac_cv_var_rawdcf_parity+set}" = set; then
13144
23361
  echo $ECHO_N "(cached) $ECHO_C" >&6
13145
23362
else
13146
23363
  ans=no
13147
 
    case "$target" in
 
23364
    case "$host" in
13148
23365
     *-*-linux*)
13149
23366
        ans=yes
13150
23367
        ;;
13151
23368
    esac
13152
23369
    ac_cv_var_rawdcf_parity=$ans
13153
23370
fi
13154
 
echo "$as_me:13154: result: $ac_cv_var_rawdcf_parity" >&5
 
23371
echo "$as_me:$LINENO: result: $ac_cv_var_rawdcf_parity" >&5
13155
23372
echo "${ECHO_T}$ac_cv_var_rawdcf_parity" >&6
13156
23373
    case "$ac_cv_var_rawdcf_parity" in
13157
 
     yes) cat >>confdefs.h <<\EOF
 
23374
     yes)
 
23375
cat >>confdefs.h <<\_ACEOF
13158
23376
#define RAWDCF_NO_IGNPAR 1
13159
 
EOF
 
23377
_ACEOF
13160
23378
 ;;
13161
23379
    esac
13162
23380
    ;;
13166
23384
    ;;
13167
23385
esac
13168
23386
 
13169
 
echo "$as_me:13169: checking RCC 8000 clock" >&5
 
23387
echo "$as_me:$LINENO: checking RCC 8000 clock" >&5
13170
23388
echo $ECHO_N "checking RCC 8000 clock... $ECHO_C" >&6
13171
23389
# Check whether --enable-RCC8000 or --disable-RCC8000 was given.
13172
23390
if test "${enable_RCC8000+set}" = set; then
13178
23396
if test "$ntp_ok" = "yes"; then
13179
23397
    ntp_libparse=yes
13180
23398
    ntp_refclock=yes
13181
 
    cat >>confdefs.h <<\EOF
 
23399
 
 
23400
cat >>confdefs.h <<\_ACEOF
13182
23401
#define CLOCK_RCC8000 1
13183
 
EOF
 
23402
_ACEOF
13184
23403
 
13185
23404
fi
13186
 
echo "$as_me:13186: result: $ntp_ok" >&5
 
23405
echo "$as_me:$LINENO: result: $ntp_ok" >&5
13187
23406
echo "${ECHO_T}$ntp_ok" >&6
13188
23407
case "$ntp_ok$ntp_canparse" in
13189
23408
 yesno)
13190
 
    { { echo "$as_me:13190: error: That's a parse clock and this system doesn't support it!" >&5
 
23409
    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
13191
23410
echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
13192
23411
   { (exit 1); exit 1; }; }
13193
23412
    ;;
13194
23413
esac
13195
23414
 
13196
 
echo "$as_me:13196: checking Schmid DCF77 clock" >&5
 
23415
echo "$as_me:$LINENO: checking Schmid DCF77 clock" >&5
13197
23416
echo $ECHO_N "checking Schmid DCF77 clock... $ECHO_C" >&6
13198
23417
# Check whether --enable-SCHMID or --disable-SCHMID was given.
13199
23418
if test "${enable_SCHMID+set}" = set; then
13205
23424
if test "$ntp_ok" = "yes"; then
13206
23425
    ntp_libparse=yes
13207
23426
    ntp_refclock=yes
13208
 
    cat >>confdefs.h <<\EOF
 
23427
 
 
23428
cat >>confdefs.h <<\_ACEOF
13209
23429
#define CLOCK_SCHMID 1
13210
 
EOF
 
23430
_ACEOF
13211
23431
 
13212
23432
fi
13213
 
echo "$as_me:13213: result: $ntp_ok" >&5
 
23433
echo "$as_me:$LINENO: result: $ntp_ok" >&5
13214
23434
echo "${ECHO_T}$ntp_ok" >&6
13215
23435
case "$ntp_ok$ntp_canparse" in
13216
23436
 yesno)
13217
 
    { { echo "$as_me:13217: error: That's a parse clock and this system doesn't support it!" >&5
 
23437
    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
13218
23438
echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
13219
23439
   { (exit 1); exit 1; }; }
13220
23440
    ;;
13221
23441
esac
13222
23442
 
13223
 
echo "$as_me:13223: checking Trimble GPS receiver/TAIP protocol" >&5
 
23443
echo "$as_me:$LINENO: checking Trimble GPS receiver/TAIP protocol" >&5
13224
23444
echo $ECHO_N "checking Trimble GPS receiver/TAIP protocol... $ECHO_C" >&6
13225
23445
# Check whether --enable-TRIMTAIP or --disable-TRIMTAIP was given.
13226
23446
if test "${enable_TRIMTAIP+set}" = set; then
13232
23452
if test "$ntp_ok" = "yes"; then
13233
23453
    ntp_libparse=yes
13234
23454
    ntp_refclock=yes
13235
 
    cat >>confdefs.h <<\EOF
 
23455
 
 
23456
cat >>confdefs.h <<\_ACEOF
13236
23457
#define CLOCK_TRIMTAIP 1
13237
 
EOF
 
23458
_ACEOF
13238
23459
 
13239
23460
fi
13240
 
echo "$as_me:13240: result: $ntp_ok" >&5
 
23461
echo "$as_me:$LINENO: result: $ntp_ok" >&5
13241
23462
echo "${ECHO_T}$ntp_ok" >&6
13242
23463
case "$ntp_ok$ntp_canparse" in
13243
23464
 yesno)
13244
 
    { { echo "$as_me:13244: error: That's a parse clock and this system doesn't support it!" >&5
 
23465
    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
13245
23466
echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
13246
23467
   { (exit 1); exit 1; }; }
13247
23468
    ;;
13248
23469
esac
13249
23470
 
13250
 
echo "$as_me:13250: checking Trimble GPS receiver/TSIP protocol" >&5
 
23471
echo "$as_me:$LINENO: checking Trimble GPS receiver/TSIP protocol" >&5
13251
23472
echo $ECHO_N "checking Trimble GPS receiver/TSIP protocol... $ECHO_C" >&6
13252
23473
# Check whether --enable-TRIMTSIP or --disable-TRIMTSIP was given.
13253
23474
if test "${enable_TRIMTSIP+set}" = set; then
13259
23480
if test "$ntp_ok" = "yes"; then
13260
23481
    ntp_libparse=yes
13261
23482
    ntp_refclock=yes
13262
 
    cat >>confdefs.h <<\EOF
 
23483
 
 
23484
cat >>confdefs.h <<\_ACEOF
13263
23485
#define CLOCK_TRIMTSIP 1
13264
 
EOF
 
23486
_ACEOF
13265
23487
 
13266
23488
fi
13267
 
echo "$as_me:13267: result: $ntp_ok" >&5
 
23489
echo "$as_me:$LINENO: result: $ntp_ok" >&5
13268
23490
echo "${ECHO_T}$ntp_ok" >&6
13269
23491
case "$ntp_ok$ntp_canparse" in
13270
23492
 yesno)
13271
 
    { { echo "$as_me:13271: error: That's a parse clock and this system doesn't support it!" >&5
 
23493
    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
13272
23494
echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
13273
23495
   { (exit 1); exit 1; }; }
13274
23496
    ;;
13275
23497
esac
13276
23498
 
13277
 
echo "$as_me:13277: checking WHARTON 400A Series clock" >&5
 
23499
echo "$as_me:$LINENO: checking WHARTON 400A Series clock" >&5
13278
23500
echo $ECHO_N "checking WHARTON 400A Series clock... $ECHO_C" >&6
13279
23501
# Check whether --enable-WHARTON or --disable-WHARTON was given.
13280
23502
if test "${enable_WHARTON+set}" = set; then
13286
23508
if test "$ntp_ok" = "yes"; then
13287
23509
    ntp_libparse=yes
13288
23510
    ntp_refclock=yes
13289
 
    cat >>confdefs.h <<\EOF
 
23511
 
 
23512
cat >>confdefs.h <<\_ACEOF
13290
23513
#define CLOCK_WHARTON_400A 1
13291
 
EOF
 
23514
_ACEOF
13292
23515
 
13293
23516
fi
13294
 
echo "$as_me:13294: result: $ntp_ok" >&5
 
23517
echo "$as_me:$LINENO: result: $ntp_ok" >&5
13295
23518
echo "${ECHO_T}$ntp_ok" >&6
13296
23519
case "$ntp_ok$ntp_canparse" in
13297
23520
 yesno)
13298
 
    { { echo "$as_me:13298: error: That's a parse clock and this system doesn't support it!" >&5
 
23521
    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
13299
23522
echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
13300
23523
   { (exit 1); exit 1; }; }
13301
23524
    ;;
13302
23525
esac
13303
23526
 
13304
 
echo "$as_me:13304: checking VARITEXT clock" >&5
 
23527
echo "$as_me:$LINENO: checking VARITEXT clock" >&5
13305
23528
echo $ECHO_N "checking VARITEXT clock... $ECHO_C" >&6
13306
23529
# Check whether --enable-VARITEXT or --disable-VARITEXT was given.
13307
23530
if test "${enable_VARITEXT+set}" = set; then
13313
23536
if test "$ntp_ok" = "yes"; then
13314
23537
    ntp_libparse=yes
13315
23538
    ntp_refclock=yes
13316
 
    cat >>confdefs.h <<\EOF
 
23539
 
 
23540
cat >>confdefs.h <<\_ACEOF
13317
23541
#define CLOCK_VARITEXT 1
13318
 
EOF
 
23542
_ACEOF
13319
23543
 
13320
23544
fi
13321
 
echo "$as_me:13321: result: $ntp_ok" >&5
 
23545
echo "$as_me:$LINENO: result: $ntp_ok" >&5
13322
23546
echo "${ECHO_T}$ntp_ok" >&6
13323
23547
case "$ntp_ok$ntp_canparse" in
13324
23548
 yesno)
13325
 
    { { echo "$as_me:13325: error: That's a parse clock and this system doesn't support it!" >&5
 
23549
    { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
13326
23550
echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
13327
23551
   { (exit 1); exit 1; }; }
13328
23552
    ;;
13329
23553
esac
13330
23554
 
13331
 
echo "$as_me:13331: checking if we need to make and use the parse libraries" >&5
 
23555
 
 
23556
 
 
23557
 
 
23558
echo "$as_me:$LINENO: checking if we need to make and use the parse libraries" >&5
13332
23559
echo $ECHO_N "checking if we need to make and use the parse libraries... $ECHO_C" >&6
13333
23560
ans=no
13334
23561
case "$ntp_libparse" in
13335
23562
 yes)
13336
23563
    ans=yes
13337
 
    cat >>confdefs.h <<\EOF
 
23564
 
 
23565
cat >>confdefs.h <<\_ACEOF
13338
23566
#define CLOCK_PARSE 1
13339
 
EOF
 
23567
_ACEOF
13340
23568
 
13341
23569
    LIBPARSE=../libparse/libparse.a
13342
23570
    MAKE_LIBPARSE=libparse.a
13343
 
    MAKE_CHECK_Y2K=check_y2k
13344
 
    cat >>confdefs.h <<\EOF
 
23571
    # HMS: check_y2k trips the 34 year problem now...
 
23572
    0 && MAKE_CHECK_Y2K=check_y2k
 
23573
 
 
23574
cat >>confdefs.h <<\_ACEOF
13345
23575
#define PPS_SAMPLE 1
13346
 
EOF
 
23576
_ACEOF
13347
23577
 
13348
 
    cat >>confdefs.h <<\EOF
 
23578
    cat >>confdefs.h <<\_ACEOF
13349
23579
#define CLOCK_ATOM 1
13350
 
EOF
 
23580
_ACEOF
13351
23581
 
13352
23582
    ;;
13353
23583
esac
13354
 
echo "$as_me:13354: result: $ans" >&5
 
23584
echo "$as_me:$LINENO: result: $ans" >&5
13355
23585
echo "${ECHO_T}$ans" >&6
13356
23586
 
13357
 
echo "$as_me:13357: checking for openssl library directory" >&5
 
23587
# AC_SUBST(RSAOBJS)
 
23588
# AC_SUBST(RSASRCS)
 
23589
# AC_SUBST(RSADIR)
 
23590
# AC_SUBST(RSAREF)
 
23591
# AC_SUBST(LIBRSAREF)
 
23592
# AC_SUBST(MAKE_LIBRSAREF)
 
23593
 
 
23594
 
 
23595
 
 
23596
 
 
23597
 
 
23598
 
 
23599
 
 
23600
echo "$as_me:$LINENO: checking for openssl library directory" >&5
13358
23601
echo $ECHO_N "checking for openssl library directory... $ECHO_C" >&6
13359
23602
 
13360
23603
# Check whether --with-openssl-libdir or --without-openssl-libdir was given.
13367
23610
case "$ans" in
13368
23611
 no) ;;
13369
23612
 yes) # Look in:
13370
 
    ans="/usr/lib /usr/local/lib /usr/local/ssl/lib"
 
23613
    ans="/usr/lib /usr/lib/openssl /usr/local/lib /usr/local/ssl/lib"
13371
23614
    ;;
13372
23615
 *) # Look where they said
13373
23616
    ;;
13377
23620
 *) # Look for libcrypto.a and libssl.a:
13378
23621
    for i in $ans no
13379
23622
    do
13380
 
        test -f $i/libcrypto.a -a -f $i/libssl.a && break
 
23623
        case "$host" in
 
23624
         *-*-darwin*)
 
23625
            test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
 
23626
            ;;
 
23627
         *)
 
23628
            test -f $i/libcrypto.a -a -f $i/libssl.a && break
 
23629
            ;;
 
23630
        esac
13381
23631
    done
13382
23632
    case "$i" in
13383
23633
     no)
13390
23640
    esac
13391
23641
    ;;
13392
23642
esac
13393
 
echo "$as_me:13393: result: $ans" >&5
 
23643
echo "$as_me:$LINENO: result: $ans" >&5
13394
23644
echo "${ECHO_T}$ans" >&6
13395
23645
 
13396
 
echo "$as_me:13396: checking for openssl include directory" >&5
 
23646
echo "$as_me:$LINENO: checking for openssl include directory" >&5
13397
23647
echo $ECHO_N "checking for openssl include directory... $ECHO_C" >&6
13398
23648
 
13399
23649
# Check whether --with-openssl-incdir or --without-openssl-incdir was given.
13429
23679
    esac
13430
23680
    ;;
13431
23681
esac
13432
 
echo "$as_me:13432: result: $ans" >&5
 
23682
echo "$as_me:$LINENO: result: $ans" >&5
13433
23683
echo "${ECHO_T}$ans" >&6
13434
23684
 
13435
 
echo "$as_me:13435: checking for the level of crypto support" >&5
13436
 
echo $ECHO_N "checking for the level of crypto support... $ECHO_C" >&6
13437
23685
 
13438
23686
# Check whether --with-crypto or --without-crypto was given.
13439
23687
if test "${with_crypto+set}" = set; then
13444
23692
fi;
13445
23693
case "$ans" in
13446
23694
 no) ;;
13447
 
 yes|rsaref|openssl)
13448
 
    case "$ans" in
13449
 
     yes|rsaref) # Just "rsaref" when OpenSSL is ready
 
23695
 yes|openssl)
 
23696
    if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC"
 
23697
    then
13450
23698
        ans=no
13451
 
        ;;
13452
 
     *)
13453
 
        if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC"
13454
 
        then
13455
 
            ans=no
13456
 
        else
13457
 
            # We have OpenSSL inc/lib - use them.
13458
 
            ans=openssl
13459
 
            CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC"
13460
 
            LDFLAGS="$LDFLAGS -L$OPENSSL_LIB"
13461
 
            LIBS="$LIBS -lcrypto"
13462
 
            cat >>confdefs.h <<\EOF
13463
 
#define DES 1
13464
 
EOF
13465
 
 
13466
 
cat >>confdefs.h <<\EOF
 
23699
    else
 
23700
        # We have OpenSSL inc/lib - use them.
 
23701
        ans=openssl
 
23702
        CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC"
 
23703
        LDFLAGS="$LDFLAGS -L$OPENSSL_LIB"
 
23704
        LCRYPTO=-lcrypto
 
23705
 
 
23706
        MAKE_NTP_KEYGEN=ntp-keygen
 
23707
 
 
23708
cat >>confdefs.h <<\_ACEOF
13467
23709
#define OPENSSL
13468
 
EOF
13469
 
 
13470
 
cat >>confdefs.h <<\EOF
13471
 
#define PUBKEY
13472
 
EOF
13473
 
 
13474
 
        fi
13475
 
        ;;
13476
 
    esac
13477
 
 
13478
 
    case "$ans" in
13479
 
     no)
13480
 
        if test -f $srcdir/rsaref2/source/digit.c
13481
 
        then
13482
 
            ans=rsaref
13483
 
            RSAOBJS=digit.o
13484
 
            RSASRCS="digit.c digit.h"
13485
 
            RSADIR=rsaref2
13486
 
        fi
13487
 
        if test -f $srcdir/rsaeuro1/source/rsaeuro.h
13488
 
        then
13489
 
            ans=rsaref
13490
 
            RSAOBJS="md4c.o shsc.o"
13491
 
            RSASRCS="md4c.c shsc.c"
13492
 
            RSADIR=rsaeuro1
13493
 
        fi
13494
 
        if test "$ans" = "rsaref"; then
13495
 
            LIBRSAREF=../librsaref/librsaref.a
13496
 
            MAKE_LIBRSAREF=librsaref.a
13497
 
            cat >>confdefs.h <<\EOF
13498
 
#define DES 1
13499
 
EOF
13500
 
 
13501
 
            cat >>confdefs.h <<\EOF
13502
 
#define PUBKEY 1
13503
 
EOF
13504
 
 
13505
 
cat >>confdefs.h <<\EOF
13506
 
#define RSAREF
13507
 
EOF
13508
 
 
13509
 
        fi
13510
 
        ;;
13511
 
    esac
13512
 
    ;;
13513
 
esac
13514
 
 
13515
 
case "$ans" in
13516
 
 no) ;;
13517
 
 *)
13518
 
 
13519
 
cat >>confdefs.h <<\EOF
13520
 
#define AUTOKEY
13521
 
EOF
13522
 
 
13523
 
    AUTOKEY=1
13524
 
    ;;
13525
 
esac
13526
 
echo "$as_me:13526: result: $ans" >&5
 
23710
_ACEOF
 
23711
 
 
23712
 
 
23713
 
 
23714
for ac_func in EVP_md2 EVP_mdc2
 
23715
do
 
23716
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
23717
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
23718
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
23719
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
23720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23721
else
 
23722
  cat >conftest.$ac_ext <<_ACEOF
 
23723
/* confdefs.h.  */
 
23724
_ACEOF
 
23725
cat confdefs.h >>conftest.$ac_ext
 
23726
cat >>conftest.$ac_ext <<_ACEOF
 
23727
/* end confdefs.h.  */
 
23728
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
23729
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23730
#define $ac_func innocuous_$ac_func
 
23731
 
 
23732
/* System header to define __stub macros and hopefully few prototypes,
 
23733
    which can conflict with char $ac_func (); below.
 
23734
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23735
    <limits.h> exists even on freestanding compilers.  */
 
23736
 
 
23737
#ifdef __STDC__
 
23738
# include <limits.h>
 
23739
#else
 
23740
# include <assert.h>
 
23741
#endif
 
23742
 
 
23743
#undef $ac_func
 
23744
 
 
23745
/* Override any gcc2 internal prototype to avoid an error.  */
 
23746
#ifdef __cplusplus
 
23747
extern "C"
 
23748
{
 
23749
#endif
 
23750
/* We use char because int might match the return type of a gcc2
 
23751
   builtin and then its argument prototype would still apply.  */
 
23752
char $ac_func ();
 
23753
/* The GNU C library defines this for functions which it implements
 
23754
    to always fail with ENOSYS.  Some functions are actually named
 
23755
    something starting with __ and the normal name is an alias.  */
 
23756
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
23757
choke me
 
23758
#else
 
23759
char (*f) () = $ac_func;
 
23760
#endif
 
23761
#ifdef __cplusplus
 
23762
}
 
23763
#endif
 
23764
 
 
23765
int
 
23766
main ()
 
23767
{
 
23768
return f != $ac_func;
 
23769
  ;
 
23770
  return 0;
 
23771
}
 
23772
_ACEOF
 
23773
rm -f conftest.$ac_objext conftest$ac_exeext
 
23774
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23775
  (eval $ac_link) 2>conftest.er1
 
23776
  ac_status=$?
 
23777
  grep -v '^ *+' conftest.er1 >conftest.err
 
23778
  rm -f conftest.er1
 
23779
  cat conftest.err >&5
 
23780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23781
  (exit $ac_status); } &&
 
23782
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23783
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23784
  (eval $ac_try) 2>&5
 
23785
  ac_status=$?
 
23786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23787
  (exit $ac_status); }; } &&
 
23788
         { ac_try='test -s conftest$ac_exeext'
 
23789
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23790
  (eval $ac_try) 2>&5
 
23791
  ac_status=$?
 
23792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23793
  (exit $ac_status); }; }; then
 
23794
  eval "$as_ac_var=yes"
 
23795
else
 
23796
  echo "$as_me: failed program was:" >&5
 
23797
sed 's/^/| /' conftest.$ac_ext >&5
 
23798
 
 
23799
eval "$as_ac_var=no"
 
23800
fi
 
23801
rm -f conftest.err conftest.$ac_objext \
 
23802
      conftest$ac_exeext conftest.$ac_ext
 
23803
fi
 
23804
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
23805
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
23806
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
23807
  cat >>confdefs.h <<_ACEOF
 
23808
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
23809
_ACEOF
 
23810
 
 
23811
fi
 
23812
done
 
23813
 
 
23814
    fi
 
23815
    ;;
 
23816
esac
 
23817
echo "$as_me:$LINENO: checking for the level of crypto support" >&5
 
23818
echo $ECHO_N "checking for the level of crypto support... $ECHO_C" >&6
 
23819
echo "$as_me:$LINENO: result: $ans" >&5
13527
23820
echo "${ECHO_T}$ans" >&6
13528
23821
 
13529
 
echo "$as_me:13529: checking if we want to compile with ElectricFence" >&5
 
23822
echo "$as_me:$LINENO: checking if we want to compile with ElectricFence" >&5
13530
23823
echo $ECHO_N "checking if we want to compile with ElectricFence... $ECHO_C" >&6
13531
23824
 
13532
23825
# Check whether --with-electricfence or --without-electricfence was given.
13547
23840
    ans=yes
13548
23841
    ;;
13549
23842
esac
13550
 
echo "$as_me:13550: result: $ans" >&5
13551
 
echo "${ECHO_T}$ans" >&6
13552
 
 
13553
 
echo "$as_me:13553: checking if we can make dcf parse utilities" >&5
 
23843
echo "$as_me:$LINENO: result: $ans" >&5
 
23844
echo "${ECHO_T}$ans" >&6
 
23845
 
 
23846
echo "$as_me:$LINENO: checking if we want to try SNTP" >&5
 
23847
echo $ECHO_N "checking if we want to try SNTP... $ECHO_C" >&6
 
23848
 
 
23849
# Check whether --with-sntp or --without-sntp was given.
 
23850
if test "${with_sntp+set}" = set; then
 
23851
  withval="$with_sntp"
 
23852
  ans=$withval
 
23853
else
 
23854
  ans=no
 
23855
fi;
 
23856
case "$ans" in
 
23857
 no) ;;
 
23858
 *)
 
23859
    MAKE_SNTP="sntp"
 
23860
 
 
23861
    ans=yes
 
23862
    ;;
 
23863
esac
 
23864
echo "$as_me:$LINENO: result: $ans" >&5
 
23865
echo "${ECHO_T}$ans" >&6
 
23866
 
 
23867
 
 
23868
 
 
23869
 
 
23870
echo "$as_me:$LINENO: checking if we can make dcf parse utilities" >&5
13554
23871
echo $ECHO_N "checking if we can make dcf parse utilities... $ECHO_C" >&6
13555
23872
ans=no
13556
23873
if test "$ntp_parseutil" = "yes"; then
13557
 
    case "$target" in
 
23874
    case "$host" in
13558
23875
     *-*-sunos4*|*-*-solaris2*|*-*-linux*)
13559
23876
        ans="dcfd testdcf"
13560
23877
        DCFD=dcfd
13562
23879
        ;;
13563
23880
    esac
13564
23881
fi
13565
 
echo "$as_me:13565: result: $ans" >&5
 
23882
echo "$as_me:$LINENO: result: $ans" >&5
13566
23883
echo "${ECHO_T}$ans" >&6
13567
23884
 
13568
 
echo "$as_me:13568: checking if we can build kernel streams modules for parse" >&5
 
23885
 
 
23886
echo "$as_me:$LINENO: checking if we can build kernel streams modules for parse" >&5
13569
23887
echo $ECHO_N "checking if we can build kernel streams modules for parse... $ECHO_C" >&6
13570
23888
ans=no
13571
23889
case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
13572
23890
 yesyes)
13573
 
    case "$target" in
 
23891
    case "$host" in
13574
23892
     sparc-*-sunos4*)
13575
23893
        case "$ac_cv_var_kernel_pll" in
13576
23894
        yes)
13577
 
            cat >>confdefs.h <<\EOF
 
23895
 
 
23896
cat >>confdefs.h <<\_ACEOF
13578
23897
#define PPS_SYNC 1
13579
 
EOF
 
23898
_ACEOF
13580
23899
 
13581
23900
            ;;
13582
23901
        esac
13590
23909
    esac
13591
23910
    ;;
13592
23911
esac
13593
 
echo "$as_me:13593: result: $ans" >&5
 
23912
echo "$as_me:$LINENO: result: $ans" >&5
13594
23913
echo "${ECHO_T}$ans" >&6
13595
23914
 
13596
 
echo "$as_me:13596: checking if we need basic refclock support" >&5
 
23915
echo "$as_me:$LINENO: checking if we need basic refclock support" >&5
13597
23916
echo $ECHO_N "checking if we need basic refclock support... $ECHO_C" >&6
13598
23917
if test "$ntp_refclock" = "yes"; then
13599
 
    cat >>confdefs.h <<\EOF
 
23918
 
 
23919
cat >>confdefs.h <<\_ACEOF
13600
23920
#define REFCLOCK 1
13601
 
EOF
 
23921
_ACEOF
13602
23922
 
13603
23923
fi
13604
 
echo "$as_me:13604: result: $ntp_refclock" >&5
 
23924
echo "$as_me:$LINENO: result: $ntp_refclock" >&5
13605
23925
echo "${ECHO_T}$ntp_refclock" >&6
13606
23926
 
13607
 
echo "$as_me:13607: checking if we want HP-UX adjtimed support" >&5
 
23927
 
 
23928
 
 
23929
echo "$as_me:$LINENO: checking if we want HP-UX adjtimed support" >&5
13608
23930
echo $ECHO_N "checking if we want HP-UX adjtimed support... $ECHO_C" >&6
13609
 
case "$target" in
 
23931
case "$host" in
13610
23932
 *-*-hpux[56789]*)
13611
23933
    ans=yes
13612
23934
    ;;
13615
23937
esac
13616
23938
if test "$ans" = "yes"; then
13617
23939
    MAKE_ADJTIMED=adjtimed
13618
 
    cat >>confdefs.h <<\EOF
 
23940
 
 
23941
cat >>confdefs.h <<\_ACEOF
13619
23942
#define NEED_HPUX_ADJTIME 1
13620
 
EOF
13621
 
 
13622
 
fi
13623
 
echo "$as_me:13623: result: $ans" >&5
13624
 
echo "${ECHO_T}$ans" >&6
13625
 
 
13626
 
echo "$as_me:13626: checking if we can read kmem" >&5
 
23943
_ACEOF
 
23944
 
 
23945
fi
 
23946
echo "$as_me:$LINENO: result: $ans" >&5
 
23947
echo "${ECHO_T}$ans" >&6
 
23948
 
 
23949
echo "$as_me:$LINENO: checking if we want QNX adjtime support" >&5
 
23950
echo $ECHO_N "checking if we want QNX adjtime support... $ECHO_C" >&6
 
23951
case "$host" in
 
23952
 *-*-qnx*)
 
23953
    ans=yes
 
23954
    ;;
 
23955
 *) ans=no
 
23956
    ;;
 
23957
esac
 
23958
if test "$ans" = "yes"; then
 
23959
 
 
23960
cat >>confdefs.h <<\_ACEOF
 
23961
#define NEED_QNX_ADJTIME 1
 
23962
_ACEOF
 
23963
 
 
23964
fi
 
23965
echo "$as_me:$LINENO: result: $ans" >&5
 
23966
echo "${ECHO_T}$ans" >&6
 
23967
 
 
23968
echo "$as_me:$LINENO: checking if we can read kmem" >&5
13627
23969
echo $ECHO_N "checking if we can read kmem... $ECHO_C" >&6
13628
23970
if test "${ac_cv_var_can_kmem+set}" = set; then
13629
23971
  echo $ECHO_N "(cached) $ECHO_C" >&6
13640
23982
     *) ans=no
13641
23983
        ;;
13642
23984
    esac
13643
 
    case "$target" in
 
23985
    case "$host" in
13644
23986
     *-*-aix*)
13645
23987
        #ans=no
13646
23988
        ;;
13659
24001
     *-*-winnt3.5)
13660
24002
        ans=no
13661
24003
        ;;
 
24004
     *-*-unicosmp*)
 
24005
        ans=no
 
24006
        ;;
13662
24007
    esac
13663
24008
 
13664
24009
fi;
13665
24010
ac_cv_var_can_kmem=$ans
13666
24011
fi
13667
 
echo "$as_me:13667: result: $ac_cv_var_can_kmem" >&5
 
24012
echo "$as_me:$LINENO: result: $ac_cv_var_can_kmem" >&5
13668
24013
echo "${ECHO_T}$ac_cv_var_can_kmem" >&6
13669
24014
 
13670
24015
case "$ac_cv_var_can_kmem" in
13671
24016
 *yes*) ;;
13672
 
 *) cat >>confdefs.h <<\EOF
 
24017
 *)
 
24018
cat >>confdefs.h <<\_ACEOF
13673
24019
#define NOKMEM 1
13674
 
EOF
 
24020
_ACEOF
13675
24021
 ;;
13676
24022
esac
13677
24023
 
13678
 
echo "$as_me:13678: checking if adjtime is accurate" >&5
 
24024
echo "$as_me:$LINENO: checking if adjtime is accurate" >&5
13679
24025
echo $ECHO_N "checking if adjtime is accurate... $ECHO_C" >&6
13680
24026
if test "${ac_cv_var_adjtime_is_accurate+set}" = set; then
13681
24027
  echo $ECHO_N "(cached) $ECHO_C" >&6
13685
24031
  enableval="$enable_accurate_adjtime"
13686
24032
  ans=$enableval
13687
24033
else
13688
 
  case "$target" in
 
24034
  case "$host" in
13689
24035
      i386-sequent-ptx*)
13690
24036
         ans=no
13691
24037
         ;;
13698
24044
      *-fujitsu-uxp*)
13699
24045
         ans=yes
13700
24046
         ;;
13701
 
      *-ibm-aix4*)
 
24047
      *-ibm-aix[45]*)
13702
24048
         ans=yes
13703
24049
         ;;
13704
24050
      *-*-linux*)
13705
24051
         ans=yes
13706
24052
         ;;
13707
 
      *-*-solaris2.[01]*)
 
24053
      *-*-solaris2.[01])
13708
24054
         ans=no
13709
24055
         ;;
13710
24056
      *-*-solaris2*)
13711
24057
         ans=yes
13712
24058
         ;;
 
24059
      *-*-unicosmp*)
 
24060
         ans=yes
 
24061
         ;;
13713
24062
      *) ans=no
13714
24063
         ;;
13715
24064
     esac
13717
24066
fi;
13718
24067
ac_cv_var_adjtime_is_accurate=$ans
13719
24068
fi
13720
 
echo "$as_me:13720: result: $ac_cv_var_adjtime_is_accurate" >&5
 
24069
echo "$as_me:$LINENO: result: $ac_cv_var_adjtime_is_accurate" >&5
13721
24070
echo "${ECHO_T}$ac_cv_var_adjtime_is_accurate" >&6
13722
24071
case "$ac_cv_var_adjtime_is_accurate" in
13723
 
 yes) cat >>confdefs.h <<\EOF
 
24072
 yes)
 
24073
cat >>confdefs.h <<\_ACEOF
13724
24074
#define ADJTIME_IS_ACCURATE 1
13725
 
EOF
 
24075
_ACEOF
13726
24076
 ;;
13727
24077
esac
13728
24078
 
13729
 
echo "$as_me:13729: checking the name of 'tick' in the kernel" >&5
 
24079
echo "$as_me:$LINENO: checking the name of 'tick' in the kernel" >&5
13730
24080
echo $ECHO_N "checking the name of 'tick' in the kernel... $ECHO_C" >&6
13731
24081
if test "${ac_cv_var_nlist_tick+set}" = set; then
13732
24082
  echo $ECHO_N "(cached) $ECHO_C" >&6
13733
24083
else
13734
24084
  ans=_tick
13735
 
case "$target" in
 
24085
case "$host" in
13736
24086
 m68*-hp-hpux*) # HP9000/300?
13737
24087
    ans=_old_tick
13738
24088
    ;;
13742
24092
 *-hp-hpux*)
13743
24093
    ans=old_tick
13744
24094
    ;;
13745
 
 *-ibm-aix[34]*)
 
24095
 *-ibm-aix[345]*)
 
24096
    ans=no
 
24097
    ;;
 
24098
 *-*-mpeix*)
13746
24099
    ans=no
13747
24100
    ;;
13748
24101
 *-*-ptx*)
13760
24113
esac
13761
24114
ac_cv_var_nlist_tick=$ans
13762
24115
fi
13763
 
echo "$as_me:13763: result: $ac_cv_var_nlist_tick" >&5
 
24116
echo "$as_me:$LINENO: result: $ac_cv_var_nlist_tick" >&5
13764
24117
echo "${ECHO_T}$ac_cv_var_nlist_tick" >&6
13765
24118
case "$ac_cv_var_nlist_tick" in
13766
24119
 ''|no) ;;      # HMS: I think we can only get 'no' here...
13767
 
 *) cat >>confdefs.h <<EOF
 
24120
 *)
 
24121
cat >>confdefs.h <<_ACEOF
13768
24122
#define K_TICK_NAME "$ac_cv_var_nlist_tick"
13769
 
EOF
 
24123
_ACEOF
13770
24124
 ;;
13771
24125
esac
13772
24126
#
13773
 
echo "$as_me:13773: checking for the units of 'tick'" >&5
 
24127
echo "$as_me:$LINENO: checking for the units of 'tick'" >&5
13774
24128
echo $ECHO_N "checking for the units of 'tick'... $ECHO_C" >&6
13775
24129
if test "${ac_cv_var_tick_nano+set}" = set; then
13776
24130
  echo $ECHO_N "(cached) $ECHO_C" >&6
13777
24131
else
13778
24132
  ans=usec
13779
 
case "$target" in
 
24133
case "$host" in
13780
24134
 *-*-solaris2*)
13781
24135
    ans=nsec
13782
24136
    ;;
13783
24137
esac
13784
24138
ac_cv_var_tick_nano=$ans
13785
24139
fi
13786
 
echo "$as_me:13786: result: $ac_cv_var_tick_nano" >&5
 
24140
echo "$as_me:$LINENO: result: $ac_cv_var_tick_nano" >&5
13787
24141
echo "${ECHO_T}$ac_cv_var_tick_nano" >&6
13788
24142
case "$ac_cv_var_tick_nano" in
13789
24143
 nsec)
13790
 
    cat >>confdefs.h <<\EOF
 
24144
 
 
24145
cat >>confdefs.h <<\_ACEOF
13791
24146
#define TICK_NANO 1
13792
 
EOF
 
24147
_ACEOF
13793
24148
 
13794
24149
    ;;
13795
24150
esac
13796
24151
#
13797
 
echo "$as_me:13797: checking the name of 'tickadj' in the kernel" >&5
 
24152
echo "$as_me:$LINENO: checking the name of 'tickadj' in the kernel" >&5
13798
24153
echo $ECHO_N "checking the name of 'tickadj' in the kernel... $ECHO_C" >&6
13799
24154
if test "${ac_cv_var_nlist_tickadj+set}" = set; then
13800
24155
  echo $ECHO_N "(cached) $ECHO_C" >&6
13801
24156
else
13802
24157
  ans=_tickadj
13803
 
case "$target" in
 
24158
case "$host" in
13804
24159
 m68*-hp-hpux*) # HP9000/300?
13805
24160
    ans=_tickadj
13806
24161
    ;;
13819
24174
 *-*-aix*)
13820
24175
    ans=tickadj
13821
24176
    ;;
 
24177
 *-*-mpeix*)
 
24178
    ans=no
 
24179
    ;;
13822
24180
 *-*-ptx*)
13823
24181
    ans=tickadj
13824
24182
    ;;
13837
24195
esac
13838
24196
ac_cv_var_nlist_tickadj=$ans
13839
24197
fi
13840
 
echo "$as_me:13840: result: $ac_cv_var_nlist_tickadj" >&5
 
24198
echo "$as_me:$LINENO: result: $ac_cv_var_nlist_tickadj" >&5
13841
24199
echo "${ECHO_T}$ac_cv_var_nlist_tickadj" >&6
13842
24200
case "$ac_cv_var_nlist_tickadj" in
13843
24201
 ''|no) ;;      # HMS: I think we can only get 'no' here...
13844
 
 *) cat >>confdefs.h <<EOF
 
24202
 *)
 
24203
cat >>confdefs.h <<_ACEOF
13845
24204
#define K_TICKADJ_NAME "$ac_cv_var_nlist_tickadj"
13846
 
EOF
 
24205
_ACEOF
13847
24206
 ;;
13848
24207
esac
13849
24208
#
13850
 
echo "$as_me:13850: checking for the units of 'tickadj'" >&5
 
24209
echo "$as_me:$LINENO: checking for the units of 'tickadj'" >&5
13851
24210
echo $ECHO_N "checking for the units of 'tickadj'... $ECHO_C" >&6
13852
24211
if test "${ac_cv_var_tickadj_nano+set}" = set; then
13853
24212
  echo $ECHO_N "(cached) $ECHO_C" >&6
13854
24213
else
13855
24214
  ans=usec
13856
 
case "$target" in
 
24215
case "$host" in
13857
24216
 *-*-solaris2*)
13858
24217
    ans=nsec
13859
24218
    ;;
13860
24219
esac
13861
24220
ac_cv_var_tickadj_nano=$ans
13862
24221
fi
13863
 
echo "$as_me:13863: result: $ac_cv_var_tickadj_nano" >&5
 
24222
echo "$as_me:$LINENO: result: $ac_cv_var_tickadj_nano" >&5
13864
24223
echo "${ECHO_T}$ac_cv_var_tickadj_nano" >&6
13865
24224
case "$ac_cv_var_tickadj_nano" in
13866
24225
 nsec)
13867
 
    cat >>confdefs.h <<\EOF
 
24226
 
 
24227
cat >>confdefs.h <<\_ACEOF
13868
24228
#define TICKADJ_NANO 1
13869
 
EOF
 
24229
_ACEOF
13870
24230
 
13871
24231
    ;;
13872
24232
esac
13873
24233
#
13874
 
echo "$as_me:13874: checking half-heartedly for 'dosynctodr' in the kernel" >&5
 
24234
echo "$as_me:$LINENO: checking half-heartedly for 'dosynctodr' in the kernel" >&5
13875
24235
echo $ECHO_N "checking half-heartedly for 'dosynctodr' in the kernel... $ECHO_C" >&6
13876
24236
if test "${ac_cv_var_nlist_dosynctodr+set}" = set; then
13877
24237
  echo $ECHO_N "(cached) $ECHO_C" >&6
13878
24238
else
13879
 
  case "$target" in
 
24239
  case "$host" in
13880
24240
 *-apple-aux[23]*)
13881
24241
    ans=no
13882
24242
    ;;
13889
24249
 *-*-hpux*)
13890
24250
    ans=no
13891
24251
    ;;
 
24252
 *-*-mpeix*)
 
24253
    ans=no
 
24254
    ;;
13892
24255
 *-*-nextstep*)
13893
24256
    ans=_dosynctodr
13894
24257
    ;;
13913
24276
esac
13914
24277
ac_cv_var_nlist_dosynctodr=$ans
13915
24278
fi
13916
 
echo "$as_me:13916: result: $ac_cv_var_nlist_dosynctodr" >&5
 
24279
echo "$as_me:$LINENO: result: $ac_cv_var_nlist_dosynctodr" >&5
13917
24280
echo "${ECHO_T}$ac_cv_var_nlist_dosynctodr" >&6
13918
24281
case "$ac_cv_var_nlist_dosynctodr" in
13919
24282
 no) ;;
13920
 
 *)  cat >>confdefs.h <<EOF
 
24283
 *)
 
24284
cat >>confdefs.h <<_ACEOF
13921
24285
#define K_DOSYNCTODR_NAME "$ac_cv_var_nlist_dosynctodr"
13922
 
EOF
 
24286
_ACEOF
13923
24287
 
13924
24288
     ;;
13925
24289
esac
13926
24290
#
13927
 
echo "$as_me:13927: checking half-heartedly for 'noprintf' in the kernel" >&5
 
24291
echo "$as_me:$LINENO: checking half-heartedly for 'noprintf' in the kernel" >&5
13928
24292
echo $ECHO_N "checking half-heartedly for 'noprintf' in the kernel... $ECHO_C" >&6
13929
24293
if test "${ac_cv_var_nlist_noprintf+set}" = set; then
13930
24294
  echo $ECHO_N "(cached) $ECHO_C" >&6
13931
24295
else
13932
 
  case "$target" in
 
24296
  case "$host" in
13933
24297
 *-apple-aux[23]*)
13934
24298
    ans=no
13935
24299
    ;;
13942
24306
 *-*-hpux*)
13943
24307
    ans=no
13944
24308
    ;;
 
24309
 *-*-mpeix*)
 
24310
    ans=no
 
24311
    ;;
13945
24312
 *-*-ptx*)
13946
24313
    ans=noprintf
13947
24314
    ;;
13960
24327
esac
13961
24328
ac_cv_var_nlist_noprintf=$ans
13962
24329
fi
13963
 
echo "$as_me:13963: result: $ac_cv_var_nlist_noprintf" >&5
 
24330
echo "$as_me:$LINENO: result: $ac_cv_var_nlist_noprintf" >&5
13964
24331
echo "${ECHO_T}$ac_cv_var_nlist_noprintf" >&6
13965
24332
case "$ac_cv_var_nlist_noprintf" in
13966
24333
 no) ;;
13967
 
 *)  cat >>confdefs.h <<EOF
 
24334
 *)
 
24335
cat >>confdefs.h <<_ACEOF
13968
24336
#define K_NOPRINTF_NAME "$ac_cv_var_nlist_noprintf"
13969
 
EOF
 
24337
_ACEOF
13970
24338
 
13971
24339
     ;;
13972
24340
esac
13973
24341
 
13974
 
echo "$as_me:13974: checking for a default value for 'tick'" >&5
 
24342
 
 
24343
 
 
24344
 
 
24345
echo "$as_me:$LINENO: checking for a default value for 'tick'" >&5
13975
24346
echo $ECHO_N "checking for a default value for 'tick'... $ECHO_C" >&6
13976
24347
if test "${ac_cv_var_tick+set}" = set; then
13977
24348
  echo $ECHO_N "(cached) $ECHO_C" >&6
13982
24353
  ans=$enableval
13983
24354
else
13984
24355
  ans=no
13985
 
     case "$target" in
 
24356
     case "$host" in
13986
24357
      XXX-*-pc-cygwin*)
13987
24358
         ;;
13988
24359
      *-univel-sysv*)
13994
24365
      *-*-linux*)
13995
24366
         ans=txc.tick
13996
24367
         ;;
 
24368
      *-*-mpeix*)
 
24369
         ans=no
 
24370
         ;;
13997
24371
      *-*-winnt3.5)
13998
24372
         ans='(every / 10)'
13999
24373
         ;;
 
24374
      *-*-unicosmp*)
 
24375
         ans=10000
 
24376
         ;;
14000
24377
      *)
14001
24378
         ans='1000000L/hz'
14002
24379
         ;;
14004
24381
fi;
14005
24382
ac_cv_var_tick=$ans
14006
24383
fi
14007
 
echo "$as_me:14007: result: $ac_cv_var_tick" >&5
 
24384
echo "$as_me:$LINENO: result: $ac_cv_var_tick" >&5
14008
24385
echo "${ECHO_T}$ac_cv_var_tick" >&6
14009
24386
case "$ac_cv_var_tick" in
14010
24387
 ''|no) ;;      # HMS: I think we can only get 'no' here...
14011
 
 *) cat >>confdefs.h <<EOF
 
24388
 *)
 
24389
cat >>confdefs.h <<_ACEOF
14012
24390
#define PRESET_TICK $ac_cv_var_tick
14013
 
EOF
 
24391
_ACEOF
14014
24392
 ;;
14015
24393
esac
14016
24394
 
14017
 
echo "$as_me:14017: checking for a default value for 'tickadj'" >&5
 
24395
echo "$as_me:$LINENO: checking for a default value for 'tickadj'" >&5
14018
24396
echo $ECHO_N "checking for a default value for 'tickadj'... $ECHO_C" >&6
14019
24397
if test "${ac_cv_var_tickadj+set}" = set; then
14020
24398
  echo $ECHO_N "(cached) $ECHO_C" >&6
14025
24403
  ans=$enableval
14026
24404
else
14027
24405
  ans='500/hz'
14028
 
  case "$target" in
 
24406
  case "$host" in
14029
24407
   *-fujitsu-uxp*)
14030
24408
      case "$ac_cv_var_adjtime_is_accurate" in
14031
24409
       yes) ans='tick/16' ;;
14055
24433
   *-*-irix*)
14056
24434
      ans=150
14057
24435
      ;;
 
24436
   *-*-mpeix*)
 
24437
      ans=no
 
24438
      ;;
14058
24439
   *-*-sco3.2v5.0*)
14059
24440
      ans=10000L/hz
14060
24441
      ;;
14068
24449
   *-*-winnt3.5)
14069
24450
      ans=50
14070
24451
      ;;
 
24452
   *-*-unicosmp*)
 
24453
      ans=150
 
24454
      ;;
14071
24455
  esac
14072
24456
fi;
14073
24457
ac_cv_var_tickadj=$ans
14074
24458
fi
14075
 
echo "$as_me:14075: result: $ac_cv_var_tickadj" >&5
 
24459
echo "$as_me:$LINENO: result: $ac_cv_var_tickadj" >&5
14076
24460
echo "${ECHO_T}$ac_cv_var_tickadj" >&6
14077
24461
case "$ac_cv_var_tickadj" in
14078
24462
 ''|no) ;;      # HMS: I think we can only get 'no' here...
14079
 
 *) cat >>confdefs.h <<EOF
 
24463
 *)
 
24464
cat >>confdefs.h <<_ACEOF
14080
24465
#define PRESET_TICKADJ $ac_cv_var_tickadj
14081
 
EOF
 
24466
_ACEOF
14082
24467
 ;;
14083
24468
esac
14084
24469
 
14086
24471
# 1/100s (system tick). Sigh ...
14087
24472
# Unfortunately, there is no easy way to know if particular release
14088
24473
# has this "feature" or any obvious way to test for it.
14089
 
case "$target" in
14090
 
 mips-sni-sysv4*) cat >>confdefs.h <<\EOF
 
24474
case "$host" in
 
24475
 mips-sni-sysv4*)
 
24476
cat >>confdefs.h <<\_ACEOF
14091
24477
#define RELIANTUNIX_CLOCK 1
14092
 
EOF
 
24478
_ACEOF
14093
24479
 ;;
14094
24480
esac
14095
24481
 
14096
 
case "$target" in
14097
 
 *-*-sco3.2v5*) cat >>confdefs.h <<\EOF
 
24482
case "$host" in
 
24483
 *-*-sco3.2v5*)
 
24484
cat >>confdefs.h <<\_ACEOF
14098
24485
#define SCO5_CLOCK 1
14099
 
EOF
 
24486
_ACEOF
14100
24487
 ;;
14101
24488
esac
14102
24489
 
14103
24490
ac_cv_make_tickadj=yes
14104
24491
case "$ac_cv_var_can_kmem$ac_cv_var_tick$ac_cv_var_tickadj" in
14105
24492
 nonono)        # Don't read KMEM, no presets.  Bogus.
14106
 
    { echo "$as_me:14106: WARNING: Can't read kmem" >&5
 
24493
    { echo "$as_me:$LINENO: WARNING: Can't read kmem" >&5
14107
24494
echo "$as_me: WARNING: Can't read kmem" >&2;}
14108
24495
    ac_cv_make_tickadj=no
14109
24496
    ;;
14110
24497
 nono*)         # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
14111
 
    { echo "$as_me:14111: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&5
 
24498
    { echo "$as_me:$LINENO: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&5
14112
24499
echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&2;}
14113
24500
    ac_cv_make_tickadj=no
14114
24501
    ;;
14115
24502
 no*no)         # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Bogus.
14116
 
    { echo "$as_me:14116: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&5
 
24503
    { echo "$as_me:$LINENO: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&5
14117
24504
echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&2;}
14118
24505
    ac_cv_make_tickadj=no
14119
24506
    ;;
14122
24509
 yesnono)       # Read KMEM, no presets.  Cool.
14123
24510
    ;;
14124
24511
 yesno*)        # Read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
14125
 
    { echo "$as_me:14125: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&5
 
24512
    { echo "$as_me:$LINENO: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&5
14126
24513
echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&2;}
14127
24514
    ;;
14128
24515
 yes*no)        # Read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Cool.
14130
24517
 yes*)          # READ KMEM, PRESET_TICK and PRESET_TICKADJ.
14131
24518
    ;;
14132
24519
 *)             # Generally bogus.
14133
 
    { { echo "$as_me:14133: error: This shouldn't happen." >&5
 
24520
    { { echo "$as_me:$LINENO: error: This shouldn't happen." >&5
14134
24521
echo "$as_me: error: This shouldn't happen." >&2;}
14135
24522
   { (exit 1); exit 1; }; }
14136
24523
    ;;
14137
24524
esac
14138
24525
 
14139
 
echo "$as_me:14139: checking if we want and can make the ntptime utility" >&5
 
24526
 
 
24527
echo "$as_me:$LINENO: checking if we want and can make the ntptime utility" >&5
14140
24528
echo $ECHO_N "checking if we want and can make the ntptime utility... $ECHO_C" >&6
14141
24529
if test "${ac_cv_make_ntptime+set}" = set; then
14142
24530
  echo $ECHO_N "(cached) $ECHO_C" >&6
14143
24531
else
14144
 
  case "$target" in
 
24532
  case "$host" in
14145
24533
 *) case "$ac_cv_struct_ntptimeval$ac_cv_var_kernel_pll" in
14146
24534
     yesyes)
14147
24535
        ans=yes
14154
24542
esac
14155
24543
ac_cv_make_ntptime=$ans
14156
24544
fi
14157
 
echo "$as_me:14157: result: $ac_cv_make_ntptime" >&5
 
24545
echo "$as_me:$LINENO: result: $ac_cv_make_ntptime" >&5
14158
24546
echo "${ECHO_T}$ac_cv_make_ntptime" >&6
14159
24547
case "$ac_cv_make_ntptime" in
14160
24548
 yes)
14162
24550
    ;;
14163
24551
esac
14164
24552
 
14165
 
case "$target" in
 
24553
 
 
24554
case "$host" in
14166
24555
 mips-sni-sysv4*)
14167
24556
    # tickadj is pretty useless on newer versions of ReliantUNIX
14168
24557
    # Do not bother
14173
24562
    ;;
14174
24563
 *-*-solaris2*)
14175
24564
    # DLM says tickadj is a no-no starting with solaris2.5
14176
 
    case "$target" in
14177
 
     *-*-solaris2.0-4*) ;;
 
24565
    case "$host" in
 
24566
     *-*-solaris2.1[0-9]*)
 
24567
        ac_cv_make_tickadj=no
 
24568
        ;;
 
24569
     *-*-solaris2.[0-4]*) ;;
14178
24570
     *) ac_cv_make_tickadj=no ;;
14179
24571
    esac
14180
24572
    ;;
 
24573
 *-*-unicosmp*)
 
24574
    ac_cv_make_tickadj=no
 
24575
    ;;
14181
24576
esac
14182
 
echo "$as_me:14182: checking if we want and can make the tickadj utility" >&5
 
24577
echo "$as_me:$LINENO: checking if we want and can make the tickadj utility" >&5
14183
24578
echo $ECHO_N "checking if we want and can make the tickadj utility... $ECHO_C" >&6
14184
24579
if test "${ac_cv_make_tickadj+set}" = set; then
14185
24580
  echo $ECHO_N "(cached) $ECHO_C" >&6
14186
24581
else
14187
24582
  ac_cv_make_tickadj=yes
14188
24583
fi
14189
 
echo "$as_me:14189: result: $ac_cv_make_tickadj" >&5
 
24584
echo "$as_me:$LINENO: result: $ac_cv_make_tickadj" >&5
14190
24585
echo "${ECHO_T}$ac_cv_make_tickadj" >&6
14191
24586
case "$ac_cv_make_tickadj" in
14192
24587
 yes)
14194
24589
    ;;
14195
24590
esac
14196
24591
 
14197
 
echo "$as_me:14197: checking if we want and can make the timetrim utility" >&5
 
24592
 
 
24593
echo "$as_me:$LINENO: checking if we want and can make the timetrim utility" >&5
14198
24594
echo $ECHO_N "checking if we want and can make the timetrim utility... $ECHO_C" >&6
14199
24595
if test "${ac_cv_make_timetrim+set}" = set; then
14200
24596
  echo $ECHO_N "(cached) $ECHO_C" >&6
14201
24597
else
14202
 
  case "$target" in
 
24598
  case "$host" in
14203
24599
 *-*-irix*)
14204
24600
    ac_cv_make_timetrim=yes
14205
24601
    ;;
 
24602
 *-*-unicosmp*)
 
24603
    ac_cv_make_timetrim=yes
 
24604
    ;;
14206
24605
 *)
14207
24606
    ac_cv_make_timetrim=no
14208
24607
    ;;
14209
24608
esac
14210
24609
fi
14211
 
echo "$as_me:14211: result: $ac_cv_make_timetrim" >&5
 
24610
echo "$as_me:$LINENO: result: $ac_cv_make_timetrim" >&5
14212
24611
echo "${ECHO_T}$ac_cv_make_timetrim" >&6
14213
24612
case "$ac_cv_make_timetrim" in
14214
24613
 yes)
14216
24615
    ;;
14217
24616
esac
14218
24617
 
14219
 
echo "$as_me:14219: checking if we want UDP wildcard delivery" >&5
 
24618
 
 
24619
 
 
24620
echo "$as_me:$LINENO: checking if we want to build the NTPD simulator" >&5
 
24621
echo $ECHO_N "checking if we want to build the NTPD simulator... $ECHO_C" >&6
 
24622
if test "${ac_cv_var_ntpd_sim+set}" = set; then
 
24623
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24624
else
 
24625
  # Check whether --enable-simulator or --disable-simulator was given.
 
24626
if test "${enable_simulator+set}" = set; then
 
24627
  enableval="$enable_simulator"
 
24628
  ans=$enableval
 
24629
else
 
24630
  ans=no
 
24631
fi;
 
24632
ac_cv_var_ntpd_sim=$ans
 
24633
fi
 
24634
echo "$as_me:$LINENO: result: $ac_cv_var_ntpd_sim" >&5
 
24635
echo "${ECHO_T}$ac_cv_var_ntpd_sim" >&6
 
24636
case "$ac_cv_var_ntpd_sim" in
 
24637
 yes)
 
24638
    MAKE_NTPDSIM=ntpdsim
 
24639
    MAKE_LIBNTPSIM=libntpsim.a
 
24640
    ;;
 
24641
esac
 
24642
 
 
24643
echo "$as_me:$LINENO: checking if we want UDP wildcard delivery" >&5
14220
24644
echo $ECHO_N "checking if we want UDP wildcard delivery... $ECHO_C" >&6
14221
24645
if test "${ac_cv_var_udp_wildcard_delivery+set}" = set; then
14222
24646
  echo $ECHO_N "(cached) $ECHO_C" >&6
14227
24651
  ans=$enableval
14228
24652
else
14229
24653
  ans=no
14230
 
     case "$target" in
 
24654
     case "$host" in
14231
24655
      *-fujitsu-uxp*)
14232
24656
         ans=yes
14233
24657
         ;;
14237
24661
      *-*-aix3.2*)
14238
24662
         ans=yes
14239
24663
         ;;
14240
 
      *-*-aix4*)
 
24664
      *-*-aix[45]*)
14241
24665
         ans=yes
14242
24666
         ;;
14243
24667
      *-*-bsdi*)
14258
24682
      *-*-linux*)
14259
24683
         ans=yes
14260
24684
         ;;
 
24685
      *-*-mpeix*)
 
24686
         ans=yes
 
24687
         ;;
14261
24688
      *-*-osf*)
14262
24689
         ans=yes
14263
24690
         ;;
14270
24697
      *-*-sunos4*)
14271
24698
         ans=yes
14272
24699
         ;;
 
24700
      *-*-unicosmp*)
 
24701
         ans=yes
 
24702
         ;;
14273
24703
     esac
14274
24704
fi;
14275
24705
ac_cv_var_udp_wildcard_delivery=$ans
14276
24706
fi
14277
 
echo "$as_me:14277: result: $ac_cv_var_udp_wildcard_delivery" >&5
 
24707
echo "$as_me:$LINENO: result: $ac_cv_var_udp_wildcard_delivery" >&5
14278
24708
echo "${ECHO_T}$ac_cv_var_udp_wildcard_delivery" >&6
14279
24709
case "$ac_cv_var_udp_wildcard_delivery" in
14280
 
 yes) cat >>confdefs.h <<\EOF
 
24710
 yes)
 
24711
cat >>confdefs.h <<\_ACEOF
14281
24712
#define UDP_WILDCARD_DELIVERY 1
14282
 
EOF
 
24713
_ACEOF
14283
24714
 ;;
14284
24715
esac
14285
24716
 
14286
 
case "$host" in
14287
 
 $target)
 
24717
case "$build" in
 
24718
 $host)
14288
24719
    ;;
14289
 
 *) case "$target" in
 
24720
 *) case "$host" in
14290
24721
     *-*-vxworks*)
14291
24722
        LDFLAGS="$LDFLAGS -r"
14292
24723
        ;;
14294
24725
    ;;
14295
24726
esac
14296
24727
 
14297
 
echo "$as_me:14297: checking if we should always slew the time" >&5
 
24728
echo "$as_me:$LINENO: checking if we should always slew the time" >&5
14298
24729
echo $ECHO_N "checking if we should always slew the time... $ECHO_C" >&6
14299
24730
if test "${ac_cv_var_slew_always+set}" = set; then
14300
24731
  echo $ECHO_N "(cached) $ECHO_C" >&6
14304
24735
  enableval="$enable_slew_always"
14305
24736
  ans=$enableval
14306
24737
else
14307
 
  case "$target" in
 
24738
  case "$host" in
14308
24739
      *-apple-aux[23]*)
14309
24740
         ans=yes
14310
24741
         ;;
14324
24755
fi;
14325
24756
ac_cv_var_slew_always=$ans
14326
24757
fi
14327
 
echo "$as_me:14327: result: $ac_cv_var_slew_always" >&5
 
24758
echo "$as_me:$LINENO: result: $ac_cv_var_slew_always" >&5
14328
24759
echo "${ECHO_T}$ac_cv_var_slew_always" >&6
14329
24760
case "$ac_cv_var_slew_always" in
14330
 
 yes) cat >>confdefs.h <<\EOF
 
24761
 yes)
 
24762
cat >>confdefs.h <<\_ACEOF
14331
24763
#define SLEWALWAYS 1
14332
 
EOF
 
24764
_ACEOF
14333
24765
 ;;
14334
24766
esac
14335
24767
 
14336
 
echo "$as_me:14336: checking if we should step and slew the time" >&5
 
24768
echo "$as_me:$LINENO: checking if we should step and slew the time" >&5
14337
24769
echo $ECHO_N "checking if we should step and slew the time... $ECHO_C" >&6
14338
24770
if test "${ac_cv_var_step_slew+set}" = set; then
14339
24771
  echo $ECHO_N "(cached) $ECHO_C" >&6
14343
24775
  enableval="$enable_step_slew"
14344
24776
  ans=$enableval
14345
24777
else
14346
 
  case "$target" in
 
24778
  case "$host" in
14347
24779
      *-sni-sysv*)
14348
24780
         ans=yes
14349
24781
         ;;
14353
24785
      *-*-ptx*)
14354
24786
         ans=yes
14355
24787
         ;;
 
24788
      *-*-solaris2.1[0-9]*)
 
24789
         ans-no
 
24790
         ;;
14356
24791
      *-*-solaris2.[012]*)
14357
24792
         ans=yes
14358
24793
         ;;
14366
24801
fi;
14367
24802
ac_cv_var_step_slew=$ans
14368
24803
fi
14369
 
echo "$as_me:14369: result: $ac_cv_var_step_slew" >&5
 
24804
echo "$as_me:$LINENO: result: $ac_cv_var_step_slew" >&5
14370
24805
echo "${ECHO_T}$ac_cv_var_step_slew" >&6
14371
24806
case "$ac_cv_var_step_slew" in
14372
 
 yes) cat >>confdefs.h <<\EOF
 
24807
 yes)
 
24808
cat >>confdefs.h <<\_ACEOF
14373
24809
#define STEP_SLEW 1
14374
 
EOF
 
24810
_ACEOF
14375
24811
 ;;
14376
24812
esac
14377
24813
 
14378
 
echo "$as_me:14378: checking if ntpdate should step the time" >&5
 
24814
echo "$as_me:$LINENO: checking if ntpdate should step the time" >&5
14379
24815
echo $ECHO_N "checking if ntpdate should step the time... $ECHO_C" >&6
14380
24816
if test "${ac_cv_var_ntpdate_step+set}" = set; then
14381
24817
  echo $ECHO_N "(cached) $ECHO_C" >&6
14385
24821
  enableval="$enable_ntpdate_step"
14386
24822
  ans=$enableval
14387
24823
else
14388
 
  case "$target" in
 
24824
  case "$host" in
14389
24825
      *-apple-aux[23]*)
14390
24826
         ans=yes
14391
24827
         ;;
14396
24832
fi;
14397
24833
ac_cv_var_ntpdate_step=$ans
14398
24834
fi
14399
 
echo "$as_me:14399: result: $ac_cv_var_ntpdate_step" >&5
 
24835
echo "$as_me:$LINENO: result: $ac_cv_var_ntpdate_step" >&5
14400
24836
echo "${ECHO_T}$ac_cv_var_ntpdate_step" >&6
14401
24837
case "$ac_cv_var_ntpdate_step" in
14402
 
 yes) cat >>confdefs.h <<\EOF
 
24838
 yes)
 
24839
cat >>confdefs.h <<\_ACEOF
14403
24840
#define FORCE_NTPDATE_STEP 1
14404
 
EOF
 
24841
_ACEOF
14405
24842
 ;;
14406
24843
esac
14407
24844
 
14408
 
echo "$as_me:14408: checking if we should sync TODR clock every hour" >&5
 
24845
echo "$as_me:$LINENO: checking if we should sync TODR clock every hour" >&5
14409
24846
echo $ECHO_N "checking if we should sync TODR clock every hour... $ECHO_C" >&6
14410
24847
if test "${ac_cv_var_sync_todr+set}" = set; then
14411
24848
  echo $ECHO_N "(cached) $ECHO_C" >&6
14415
24852
  enableval="$enable_hourly_todr_sync"
14416
24853
  ans=$enableval
14417
24854
else
14418
 
  case "$target" in
 
24855
  case "$host" in
14419
24856
      *-*-nextstep*)
14420
24857
         ans=yes
14421
24858
         ;;
14428
24865
fi;
14429
24866
ac_cv_var_sync_todr=$ans
14430
24867
fi
14431
 
echo "$as_me:14431: result: $ac_cv_var_sync_todr" >&5
 
24868
echo "$as_me:$LINENO: result: $ac_cv_var_sync_todr" >&5
14432
24869
echo "${ECHO_T}$ac_cv_var_sync_todr" >&6
14433
24870
case "$ac_cv_var_sync_todr" in
14434
 
 yes) cat >>confdefs.h <<\EOF
 
24871
 yes)
 
24872
cat >>confdefs.h <<\_ACEOF
14435
24873
#define DOSYNCTODR 1
14436
 
EOF
 
24874
_ACEOF
14437
24875
 ;;
14438
24876
esac
14439
24877
 
14440
 
echo "$as_me:14440: checking if we should avoid kernel FLL bug" >&5
 
24878
echo "$as_me:$LINENO: checking if we should avoid kernel FLL bug" >&5
14441
24879
echo $ECHO_N "checking if we should avoid kernel FLL bug... $ECHO_C" >&6
14442
24880
if test "${ac_cv_var_kernel_fll_bug+set}" = set; then
14443
24881
  echo $ECHO_N "(cached) $ECHO_C" >&6
14447
24885
  enableval="$enable_kernel_fll_bug"
14448
24886
  ans=$enableval
14449
24887
else
14450
 
  case "$target" in
 
24888
  case "$host" in
14451
24889
     *-*-solaris2.6)
14452
24890
         unamev=`uname -v`
14453
24891
         case "$unamev" in
14495
24933
fi;
14496
24934
ac_cv_var_kernel_fll_bug=$ans
14497
24935
fi
14498
 
echo "$as_me:14498: result: $ac_cv_var_kernel_fll_bug" >&5
 
24936
echo "$as_me:$LINENO: result: $ac_cv_var_kernel_fll_bug" >&5
14499
24937
echo "${ECHO_T}$ac_cv_var_kernel_fll_bug" >&6
14500
24938
case "$ac_cv_var_kernel_fll_bug" in
14501
 
 yes) cat >>confdefs.h <<\EOF
 
24939
 yes)
 
24940
cat >>confdefs.h <<\_ACEOF
14502
24941
#define KERNEL_FLL_BUG 1
14503
 
EOF
14504
 
 ;;
14505
 
esac
14506
 
 
 
24942
_ACEOF
 
24943
 ;;
 
24944
esac
 
24945
 
 
24946
echo "$as_me:$LINENO: checking if we should use the IRIG sawtooth filter" >&5
 
24947
echo $ECHO_N "checking if we should use the IRIG sawtooth filter... $ECHO_C" >&6
 
24948
if test "${ac_cv_var_irig_sucks+set}" = set; then
 
24949
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24950
else
 
24951
  # Check whether --enable-irig-sawtooth or --disable-irig-sawtooth was given.
 
24952
if test "${enable_irig_sawtooth+set}" = set; then
 
24953
  enableval="$enable_irig_sawtooth"
 
24954
  ans=$enableval
 
24955
else
 
24956
  case "$host" in
 
24957
     *-*-solaris2.[89])
 
24958
        ans=yes
 
24959
        ;;
 
24960
     *-*-solaris2.1[0-9]*)
 
24961
        ans=yes
 
24962
        ;;
 
24963
     *) ans=no
 
24964
        ;;
 
24965
    esac
 
24966
 
 
24967
fi;
 
24968
ac_cv_var_irig_sucks=$ans
 
24969
fi
 
24970
echo "$as_me:$LINENO: result: $ac_cv_var_irig_sucks" >&5
 
24971
echo "${ECHO_T}$ac_cv_var_irig_sucks" >&6
 
24972
case "$ac_cv_var_irig_sucks" in
 
24973
 yes)
 
24974
cat >>confdefs.h <<\_ACEOF
 
24975
#define IRIG_SUCKS 1
 
24976
_ACEOF
 
24977
 ;;
 
24978
esac
 
24979
 
 
24980
echo "$as_me:$LINENO: checking if we should enable NIST lockclock scheme" >&5
 
24981
echo $ECHO_N "checking if we should enable NIST lockclock scheme... $ECHO_C" >&6
 
24982
if test "${ac_cv_var_nist_lockclock+set}" = set; then
 
24983
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24984
else
 
24985
  # Check whether --enable-nist or --disable-nist was given.
 
24986
if test "${enable_nist+set}" = set; then
 
24987
  enableval="$enable_nist"
 
24988
  ans=$enableval
 
24989
else
 
24990
  ans=no
 
24991
fi;
 
24992
ac_cv_var_nist_lockclock=$ans
 
24993
fi
 
24994
echo "$as_me:$LINENO: result: $ac_cv_var_nist_lockclock" >&5
 
24995
echo "${ECHO_T}$ac_cv_var_nist_lockclock" >&6
 
24996
case "$ac_cv_var_nist_lockclock" in
 
24997
 yes)
 
24998
cat >>confdefs.h <<\_ACEOF
 
24999
#define LOCKCLOCK 1
 
25000
_ACEOF
 
25001
 ;;
 
25002
esac
 
25003
 
 
25004
echo "$as_me:$LINENO: checking if we should cache bad destination addresses" >&5
 
25005
echo $ECHO_N "checking if we should cache bad destination addresses... $ECHO_C" >&6
 
25006
if test "${ac_cv_errorcache+set}" = set; then
 
25007
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25008
else
 
25009
  # Check whether --enable-errorcache or --disable-errorcache was given.
 
25010
if test "${enable_errorcache+set}" = set; then
 
25011
  enableval="$enable_errorcache"
 
25012
  ans=$enableval
 
25013
else
 
25014
  ans=no
 
25015
fi;
 
25016
ac_cv_errorcache=$ans
 
25017
fi
 
25018
echo "$as_me:$LINENO: result: $ac_cv_errorcache" >&5
 
25019
echo "${ECHO_T}$ac_cv_errorcache" >&6
 
25020
case "$ac_cv_errorcache" in
 
25021
 yes)
 
25022
cat >>confdefs.h <<\_ACEOF
 
25023
#define ERRORCACHE 10
 
25024
_ACEOF
 
25025
 ;;
 
25026
 no)
 
25027
cat >>confdefs.h <<\_ACEOF
 
25028
#define ERRORCACHE 0
 
25029
_ACEOF
 
25030
 ;;
 
25031
esac
 
25032
 
 
25033
#
 
25034
# ISC stuff
 
25035
#
 
25036
 
 
25037
if test $ac_cv_struct_sockaddr_has_sa_len = yes; then
 
25038
 
 
25039
cat >>confdefs.h <<\_ACEOF
 
25040
#define ISC_PLATFORM_HAVESALEN
 
25041
_ACEOF
 
25042
 
 
25043
fi
 
25044
 
 
25045
# Check whether --enable-ipv6 or --disable-ipv6 was given.
 
25046
if test "${enable_ipv6+set}" = set; then
 
25047
  enableval="$enable_ipv6"
 
25048
 
 
25049
fi;
 
25050
 
 
25051
case "$enable_ipv6" in
 
25052
 yes|''|autodetect)
 
25053
    case "$host" in
 
25054
     powerpc-ibm-aix4*) ;;
 
25055
     *)
 
25056
 
 
25057
cat >>confdefs.h <<\_ACEOF
 
25058
#define WANT_IPV6
 
25059
_ACEOF
 
25060
 
 
25061
        ;;
 
25062
    esac
 
25063
    ;;
 
25064
 no)
 
25065
    ;;
 
25066
esac
 
25067
 
 
25068
echo "$as_me:$LINENO: checking for IPv6 structures" >&5
 
25069
echo $ECHO_N "checking for IPv6 structures... $ECHO_C" >&6
 
25070
cat >conftest.$ac_ext <<_ACEOF
 
25071
/* confdefs.h.  */
 
25072
_ACEOF
 
25073
cat confdefs.h >>conftest.$ac_ext
 
25074
cat >>conftest.$ac_ext <<_ACEOF
 
25075
/* end confdefs.h.  */
 
25076
 
 
25077
#include <sys/types.h>
 
25078
#include <sys/socket.h>
 
25079
#include <netinet/in.h>
 
25080
int
 
25081
main ()
 
25082
{
 
25083
struct sockaddr_in6 sin6; return (0);
 
25084
  ;
 
25085
  return 0;
 
25086
}
 
25087
_ACEOF
 
25088
rm -f conftest.$ac_objext
 
25089
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25090
  (eval $ac_compile) 2>conftest.er1
 
25091
  ac_status=$?
 
25092
  grep -v '^ *+' conftest.er1 >conftest.err
 
25093
  rm -f conftest.er1
 
25094
  cat conftest.err >&5
 
25095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25096
  (exit $ac_status); } &&
 
25097
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25098
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25099
  (eval $ac_try) 2>&5
 
25100
  ac_status=$?
 
25101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25102
  (exit $ac_status); }; } &&
 
25103
         { ac_try='test -s conftest.$ac_objext'
 
25104
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25105
  (eval $ac_try) 2>&5
 
25106
  ac_status=$?
 
25107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25108
  (exit $ac_status); }; }; then
 
25109
  echo "$as_me:$LINENO: result: yes" >&5
 
25110
echo "${ECHO_T}yes" >&6
 
25111
         found_ipv6=yes
 
25112
else
 
25113
  echo "$as_me: failed program was:" >&5
 
25114
sed 's/^/| /' conftest.$ac_ext >&5
 
25115
 
 
25116
echo "$as_me:$LINENO: result: no" >&5
 
25117
echo "${ECHO_T}no" >&6
 
25118
         found_ipv6=no
 
25119
fi
 
25120
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25121
 
 
25122
#
 
25123
# See whether IPv6 support is provided via a Kame add-on.
 
25124
# This is done before other IPv6 linking tests so LIBS is properly set.
 
25125
#
 
25126
echo "$as_me:$LINENO: checking for Kame IPv6 support" >&5
 
25127
echo $ECHO_N "checking for Kame IPv6 support... $ECHO_C" >&6
 
25128
 
 
25129
# Check whether --with-kame or --without-kame was given.
 
25130
if test "${with_kame+set}" = set; then
 
25131
  withval="$with_kame"
 
25132
  use_kame="$withval"
 
25133
else
 
25134
  use_kame="no"
 
25135
fi;
 
25136
 
 
25137
case "$use_kame" in
 
25138
        no)
 
25139
                ;;
 
25140
        yes)
 
25141
                kame_path=/usr/local/v6
 
25142
                ;;
 
25143
        *)
 
25144
                kame_path="$use_kame"
 
25145
                ;;
 
25146
esac
 
25147
 
 
25148
case "$use_kame" in
 
25149
        no)
 
25150
                echo "$as_me:$LINENO: result: no" >&5
 
25151
echo "${ECHO_T}no" >&6
 
25152
                ;;
 
25153
        *)
 
25154
                if test -f $kame_path/lib/libinet6.a; then
 
25155
                        echo "$as_me:$LINENO: result: $kame_path/lib/libinet6.a" >&5
 
25156
echo "${ECHO_T}$kame_path/lib/libinet6.a" >&6
 
25157
                        LIBS="-L$kame_path/lib -linet6 $LIBS"
 
25158
                else
 
25159
                        { { echo "$as_me:$LINENO: error: $kame_path/lib/libinet6.a not found.
 
25160
 
 
25161
Please choose the proper path with the following command:
 
25162
 
 
25163
    configure --with-kame=PATH
 
25164
" >&5
 
25165
echo "$as_me: error: $kame_path/lib/libinet6.a not found.
 
25166
 
 
25167
Please choose the proper path with the following command:
 
25168
 
 
25169
    configure --with-kame=PATH
 
25170
" >&2;}
 
25171
   { (exit 1); exit 1; }; }
 
25172
                fi
 
25173
                ;;
 
25174
esac
 
25175
 
 
25176
#
 
25177
# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
 
25178
# Including it on Kame-using platforms is very bad, though, because
 
25179
# Kame uses #error against direct inclusion.   So include it on only
 
25180
# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
 
25181
# This is done before the in6_pktinfo check because that's what
 
25182
# netinet6/in6.h is needed for.
 
25183
#
14507
25184
case "$host" in
14508
 
 $target)
14509
 
    ;;
14510
 
 *) case "$target" in
 
25185
*-bsdi4.[01]*)
 
25186
        ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
 
25187
        LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1"
 
25188
        isc_netinet6in6_hack="#include <netinet6/in6.h>"
 
25189
        ;;
 
25190
*)
 
25191
        ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
 
25192
        LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H"
 
25193
        isc_netinet6in6_hack=""
 
25194
        ;;
 
25195
esac
 
25196
 
 
25197
echo "$as_me:$LINENO: checking for struct if_laddrconf" >&5
 
25198
echo $ECHO_N "checking for struct if_laddrconf... $ECHO_C" >&6
 
25199
cat >conftest.$ac_ext <<_ACEOF
 
25200
/* confdefs.h.  */
 
25201
_ACEOF
 
25202
cat confdefs.h >>conftest.$ac_ext
 
25203
cat >>conftest.$ac_ext <<_ACEOF
 
25204
/* end confdefs.h.  */
 
25205
 
 
25206
#include <sys/types.h>
 
25207
#include <net/if6.h>
 
25208
 
 
25209
int
 
25210
main ()
 
25211
{
 
25212
 struct if_laddrconf a;
 
25213
  ;
 
25214
  return 0;
 
25215
}
 
25216
_ACEOF
 
25217
rm -f conftest.$ac_objext conftest$ac_exeext
 
25218
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25219
  (eval $ac_link) 2>conftest.er1
 
25220
  ac_status=$?
 
25221
  grep -v '^ *+' conftest.er1 >conftest.err
 
25222
  rm -f conftest.er1
 
25223
  cat conftest.err >&5
 
25224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25225
  (exit $ac_status); } &&
 
25226
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25227
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25228
  (eval $ac_try) 2>&5
 
25229
  ac_status=$?
 
25230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25231
  (exit $ac_status); }; } &&
 
25232
         { ac_try='test -s conftest$ac_exeext'
 
25233
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25234
  (eval $ac_try) 2>&5
 
25235
  ac_status=$?
 
25236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25237
  (exit $ac_status); }; }; then
 
25238
  echo "$as_me:$LINENO: result: yes" >&5
 
25239
echo "${ECHO_T}yes" >&6
 
25240
 
 
25241
cat >>confdefs.h <<\_ACEOF
 
25242
#define ISC_PLATFORM_HAVEIF_LADDRCONF
 
25243
_ACEOF
 
25244
 
 
25245
else
 
25246
  echo "$as_me: failed program was:" >&5
 
25247
sed 's/^/| /' conftest.$ac_ext >&5
 
25248
 
 
25249
echo "$as_me:$LINENO: result: no" >&5
 
25250
echo "${ECHO_T}no" >&6
 
25251
fi
 
25252
rm -f conftest.err conftest.$ac_objext \
 
25253
      conftest$ac_exeext conftest.$ac_ext
 
25254
 
 
25255
echo "$as_me:$LINENO: checking for struct if_laddrreq" >&5
 
25256
echo $ECHO_N "checking for struct if_laddrreq... $ECHO_C" >&6
 
25257
cat >conftest.$ac_ext <<_ACEOF
 
25258
/* confdefs.h.  */
 
25259
_ACEOF
 
25260
cat confdefs.h >>conftest.$ac_ext
 
25261
cat >>conftest.$ac_ext <<_ACEOF
 
25262
/* end confdefs.h.  */
 
25263
 
 
25264
#include <sys/types.h>
 
25265
#include <net/if6.h>
 
25266
 
 
25267
int
 
25268
main ()
 
25269
{
 
25270
 struct if_laddrreq a;
 
25271
  ;
 
25272
  return 0;
 
25273
}
 
25274
_ACEOF
 
25275
rm -f conftest.$ac_objext conftest$ac_exeext
 
25276
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25277
  (eval $ac_link) 2>conftest.er1
 
25278
  ac_status=$?
 
25279
  grep -v '^ *+' conftest.er1 >conftest.err
 
25280
  rm -f conftest.er1
 
25281
  cat conftest.err >&5
 
25282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25283
  (exit $ac_status); } &&
 
25284
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25285
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25286
  (eval $ac_try) 2>&5
 
25287
  ac_status=$?
 
25288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25289
  (exit $ac_status); }; } &&
 
25290
         { ac_try='test -s conftest$ac_exeext'
 
25291
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25292
  (eval $ac_try) 2>&5
 
25293
  ac_status=$?
 
25294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25295
  (exit $ac_status); }; }; then
 
25296
  echo "$as_me:$LINENO: result: yes" >&5
 
25297
echo "${ECHO_T}yes" >&6
 
25298
 
 
25299
cat >>confdefs.h <<\_ACEOF
 
25300
#define ISC_PLATFORM_HAVEIF_LADDRREQ
 
25301
_ACEOF
 
25302
 
 
25303
else
 
25304
  echo "$as_me: failed program was:" >&5
 
25305
sed 's/^/| /' conftest.$ac_ext >&5
 
25306
 
 
25307
echo "$as_me:$LINENO: result: no" >&5
 
25308
echo "${ECHO_T}no" >&6
 
25309
fi
 
25310
rm -f conftest.err conftest.$ac_objext \
 
25311
      conftest$ac_exeext conftest.$ac_ext
 
25312
 
 
25313
case "$found_ipv6" in
 
25314
 yes)
 
25315
 
 
25316
cat >>confdefs.h <<\_ACEOF
 
25317
#define ISC_PLATFORM_HAVEIPV6
 
25318
_ACEOF
 
25319
 
 
25320
 
 
25321
    echo "$as_me:$LINENO: checking for in6_pktinfo" >&5
 
25322
echo $ECHO_N "checking for in6_pktinfo... $ECHO_C" >&6
 
25323
    cat >conftest.$ac_ext <<_ACEOF
 
25324
/* confdefs.h.  */
 
25325
_ACEOF
 
25326
cat confdefs.h >>conftest.$ac_ext
 
25327
cat >>conftest.$ac_ext <<_ACEOF
 
25328
/* end confdefs.h.  */
 
25329
 
 
25330
#include <sys/types.h>
 
25331
#include <sys/socket.h>
 
25332
#include <netinet/in.h>
 
25333
$isc_netinetin6_hack
 
25334
$isc_netinet6in6_hack
 
25335
 
 
25336
int
 
25337
main ()
 
25338
{
 
25339
struct in6_pktinfo xyzzy; return (0);
 
25340
  ;
 
25341
  return 0;
 
25342
}
 
25343
_ACEOF
 
25344
rm -f conftest.$ac_objext
 
25345
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25346
  (eval $ac_compile) 2>conftest.er1
 
25347
  ac_status=$?
 
25348
  grep -v '^ *+' conftest.er1 >conftest.err
 
25349
  rm -f conftest.er1
 
25350
  cat conftest.err >&5
 
25351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25352
  (exit $ac_status); } &&
 
25353
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25355
  (eval $ac_try) 2>&5
 
25356
  ac_status=$?
 
25357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25358
  (exit $ac_status); }; } &&
 
25359
         { ac_try='test -s conftest.$ac_objext'
 
25360
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25361
  (eval $ac_try) 2>&5
 
25362
  ac_status=$?
 
25363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25364
  (exit $ac_status); }; }; then
 
25365
  echo "$as_me:$LINENO: result: yes" >&5
 
25366
echo "${ECHO_T}yes" >&6
 
25367
 
 
25368
cat >>confdefs.h <<\_ACEOF
 
25369
#define ISC_PLATFORM_HAVEIN6PKTINFO
 
25370
_ACEOF
 
25371
 
 
25372
else
 
25373
  echo "$as_me: failed program was:" >&5
 
25374
sed 's/^/| /' conftest.$ac_ext >&5
 
25375
 
 
25376
echo "$as_me:$LINENO: result: no -- disabling runtime ipv6 support" >&5
 
25377
echo "${ECHO_T}no -- disabling runtime ipv6 support" >&6
 
25378
fi
 
25379
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25380
 
 
25381
    echo "$as_me:$LINENO: checking for in6addr_any" >&5
 
25382
echo $ECHO_N "checking for in6addr_any... $ECHO_C" >&6
 
25383
    cat >conftest.$ac_ext <<_ACEOF
 
25384
/* confdefs.h.  */
 
25385
_ACEOF
 
25386
cat confdefs.h >>conftest.$ac_ext
 
25387
cat >>conftest.$ac_ext <<_ACEOF
 
25388
/* end confdefs.h.  */
 
25389
 
 
25390
#include <sys/types.h>
 
25391
#include <sys/socket.h>
 
25392
#include <netinet/in.h>
 
25393
$isc_netinetin6_hack
 
25394
$isc_netinet6in6_hack
 
25395
$isc_in_addr6_hack
 
25396
 
 
25397
int
 
25398
main ()
 
25399
{
 
25400
struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]);
 
25401
  ;
 
25402
  return 0;
 
25403
}
 
25404
_ACEOF
 
25405
rm -f conftest.$ac_objext conftest$ac_exeext
 
25406
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25407
  (eval $ac_link) 2>conftest.er1
 
25408
  ac_status=$?
 
25409
  grep -v '^ *+' conftest.er1 >conftest.err
 
25410
  rm -f conftest.er1
 
25411
  cat conftest.err >&5
 
25412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25413
  (exit $ac_status); } &&
 
25414
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25415
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25416
  (eval $ac_try) 2>&5
 
25417
  ac_status=$?
 
25418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25419
  (exit $ac_status); }; } &&
 
25420
         { ac_try='test -s conftest$ac_exeext'
 
25421
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25422
  (eval $ac_try) 2>&5
 
25423
  ac_status=$?
 
25424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25425
  (exit $ac_status); }; }; then
 
25426
  echo "$as_me:$LINENO: result: yes" >&5
 
25427
echo "${ECHO_T}yes" >&6
 
25428
else
 
25429
  echo "$as_me: failed program was:" >&5
 
25430
sed 's/^/| /' conftest.$ac_ext >&5
 
25431
 
 
25432
echo "$as_me:$LINENO: result: no" >&5
 
25433
echo "${ECHO_T}no" >&6
 
25434
 
 
25435
cat >>confdefs.h <<\_ACEOF
 
25436
#define ISC_PLATFORM_NEEDIN6ADDRANY
 
25437
_ACEOF
 
25438
 
 
25439
 
 
25440
fi
 
25441
rm -f conftest.err conftest.$ac_objext \
 
25442
      conftest$ac_exeext conftest.$ac_ext
 
25443
    ;;
 
25444
esac
 
25445
 
 
25446
#
 
25447
# Look for a sysctl call to get the list of network interfaces.
 
25448
#
 
25449
echo "$as_me:$LINENO: checking for interface list sysctl" >&5
 
25450
echo $ECHO_N "checking for interface list sysctl... $ECHO_C" >&6
 
25451
cat >conftest.$ac_ext <<_ACEOF
 
25452
/* confdefs.h.  */
 
25453
_ACEOF
 
25454
cat confdefs.h >>conftest.$ac_ext
 
25455
cat >>conftest.$ac_ext <<_ACEOF
 
25456
/* end confdefs.h.  */
 
25457
 
 
25458
#include <sys/param.h>
 
25459
#include <sys/sysctl.h>
 
25460
#include <sys/socket.h>
 
25461
#ifdef NET_RT_IFLIST
 
25462
found_rt_iflist
 
25463
#endif
 
25464
 
 
25465
_ACEOF
 
25466
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
25467
  $EGREP "found_rt_iflist" >/dev/null 2>&1; then
 
25468
  echo "$as_me:$LINENO: result: yes" >&5
 
25469
echo "${ECHO_T}yes" >&6
 
25470
 
 
25471
cat >>confdefs.h <<\_ACEOF
 
25472
#define HAVE_IFLIST_SYSCTL 1
 
25473
_ACEOF
 
25474
 
 
25475
else
 
25476
  echo "$as_me:$LINENO: result: no" >&5
 
25477
echo "${ECHO_T}no" >&6
 
25478
fi
 
25479
rm -f conftest*
 
25480
 
 
25481
 
 
25482
###
 
25483
 
 
25484
case "$build" in
 
25485
 $host)
 
25486
    ;;
 
25487
 *) case "$host" in
14511
25488
     *-*-vxworks*)
14512
25489
        LDFLAGS="$LDFLAGS -r"
14513
25490
        ;;
14515
25492
    ;;
14516
25493
esac
14517
25494
 
 
25495
 
14518
25496
        ac_expanded=`(
14519
25497
            test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14520
25498
            test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
14521
25499
            eval echo \""$sysconfdir"\"
14522
25500
        )`
14523
25501
 
14524
 
cat >>confdefs.h <<EOF
 
25502
cat >>confdefs.h <<_ACEOF
14525
25503
#define NTP_KEYSDIR "$ac_expanded"
14526
 
EOF
14527
 
 
14528
 
# This is necessary so that .o files in LIBOBJS are also built via
14529
 
# the ANSI2KNR-filtering rules.
14530
 
LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
14531
 
 
14532
 
ac_config_files="$ac_config_files Makefile adjtimed/Makefile clockstuff/Makefile ElectricFence/Makefile include/Makefile kernel/Makefile kernel/sys/Makefile libntp/Makefile libparse/Makefile librsaref/Makefile ntpd/Makefile ntpdc/Makefile ntpdate/Makefile ntpq/Makefile ntptrace/Makefile parseutil/Makefile scripts/Makefile scripts/calc_tickadj scripts/checktime scripts/freq_adj scripts/mkver scripts/ntp-wait scripts/ntpsweep scripts/ntpver scripts/plot_summary scripts/summary util/Makefile"
14533
 
 
14534
 
ac_config_commands="$ac_config_commands default"
 
25504
_ACEOF
 
25505
 
 
25506
 
 
25507
 
 
25508
 
 
25509
if test -d $srcdir/arlib
 
25510
then
 
25511
 
 
25512
# Check whether --with-arlib or --without-arlib was given.
 
25513
if test "${with_arlib+set}" = set; then
 
25514
  withval="$with_arlib"
 
25515
  ans=$withval
 
25516
else
 
25517
  ans=no
 
25518
fi;
 
25519
 
 
25520
    case "$ans" in
 
25521
     yes)
 
25522
        ARLIB_DIR=arlib
 
25523
 
 
25524
 
 
25525
subdirs="$subdirs arlib"
 
25526
 
 
25527
        ;;
 
25528
    esac
 
25529
fi
 
25530
 
 
25531
          ac_config_files="$ac_config_files Makefile"
 
25532
 
 
25533
          ac_config_files="$ac_config_files ElectricFence/Makefile"
 
25534
 
 
25535
          ac_config_files="$ac_config_files adjtimed/Makefile"
 
25536
 
 
25537
          ac_config_files="$ac_config_files clockstuff/Makefile"
 
25538
 
 
25539
          ac_config_files="$ac_config_files include/Makefile"
 
25540
 
 
25541
          ac_config_files="$ac_config_files include/isc/Makefile"
 
25542
 
 
25543
          ac_config_files="$ac_config_files kernel/Makefile"
 
25544
 
 
25545
          ac_config_files="$ac_config_files kernel/sys/Makefile"
 
25546
 
 
25547
          ac_config_files="$ac_config_files libntp/Makefile"
 
25548
 
 
25549
          ac_config_files="$ac_config_files libparse/Makefile"
 
25550
 
 
25551
          ac_config_files="$ac_config_files ntpd/Makefile"
 
25552
 
 
25553
          ac_config_files="$ac_config_files ntpdate/Makefile"
 
25554
 
 
25555
          ac_config_files="$ac_config_files ntpdc/Makefile"
 
25556
 
 
25557
          ac_config_files="$ac_config_files ntpdc/nl.pl"
 
25558
 
 
25559
          ac_config_files="$ac_config_files ntpq/Makefile"
 
25560
 
 
25561
          ac_config_files="$ac_config_files parseutil/Makefile"
 
25562
 
 
25563
          ac_config_files="$ac_config_files scripts/Makefile"
 
25564
 
 
25565
          ac_config_files="$ac_config_files scripts/calc_tickadj"
 
25566
 
 
25567
          ac_config_files="$ac_config_files scripts/checktime"
 
25568
 
 
25569
          ac_config_files="$ac_config_files scripts/freq_adj"
 
25570
 
 
25571
          ac_config_files="$ac_config_files scripts/mkver"
 
25572
 
 
25573
          ac_config_files="$ac_config_files scripts/ntp-wait"
 
25574
 
 
25575
          ac_config_files="$ac_config_files scripts/ntpsweep"
 
25576
 
 
25577
          ac_config_files="$ac_config_files scripts/ntptrace"
 
25578
 
 
25579
          ac_config_files="$ac_config_files scripts/ntpver"
 
25580
 
 
25581
          ac_config_files="$ac_config_files scripts/plot_summary"
 
25582
 
 
25583
          ac_config_files="$ac_config_files scripts/summary"
 
25584
 
 
25585
          ac_config_files="$ac_config_files util/Makefile"
 
25586
 
 
25587
 
 
25588
case "$MAKE_SNTP" in
 
25589
 '') ;;
 
25590
 *)
 
25591
 
 
25592
 
 
25593
subdirs="$subdirs sntp"
 
25594
 
 
25595
    ;;
 
25596
esac
14535
25597
 
14536
25598
cat >confcache <<\_ACEOF
14537
25599
# This file is a shell script that caches the results of configure
14543
25605
# config.status only pays attention to the cache file if you give it
14544
25606
# the --recheck option to rerun configure.
14545
25607
#
14546
 
# `ac_cv_env_foo' variables (set or unset) will be overriden when
 
25608
# `ac_cv_env_foo' variables (set or unset) will be overridden when
14547
25609
# loading this file, other *unset* `ac_cv_foo' will be assigned the
14548
25610
# following values.
14549
25611
 
14561
25623
      # `set' does not quote correctly, so add quotes (double-quote
14562
25624
      # substitution turns \\\\ into \\, and sed turns \\ into \).
14563
25625
      sed -n \
14564
 
        "s/'/'\\\\''/g;
14565
 
          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
25626
        "s/'/'\\\\''/g;
 
25627
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14566
25628
      ;;
14567
25629
    *)
14568
25630
      # `set' quotes correctly as required by POSIX, so do not add quotes.
14569
25631
      sed -n \
14570
 
        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
25632
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14571
25633
      ;;
14572
25634
    esac;
14573
25635
} |
14578
25640
     t end
14579
25641
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14580
25642
     : end' >>confcache
14581
 
if cmp -s $cache_file confcache; then :; else
 
25643
if diff $cache_file confcache >/dev/null 2>&1; then :; else
14582
25644
  if test -w $cache_file; then
14583
25645
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14584
25646
    cat confcache >$cache_file
14597
25659
# trailing colons and then remove the whole line if VPATH becomes empty
14598
25660
# (actually we leave an empty line to preserve line numbers).
14599
25661
if test "x$srcdir" = x.; then
14600
 
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
25662
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
14601
25663
s/:*\$(srcdir):*/:/;
14602
25664
s/:*\${srcdir}:*/:/;
14603
25665
s/:*@srcdir@:*/:/;
14604
 
s/^\([^=]*=[    ]*\):*/\1/;
 
25666
s/^\([^=]*=[     ]*\):*/\1/;
14605
25667
s/:*$//;
14606
 
s/^[^=]*=[      ]*$//;
 
25668
s/^[^=]*=[       ]*$//;
14607
25669
}'
14608
25670
fi
14609
25671
 
14610
25672
DEFS=-DHAVE_CONFIG_H
14611
25673
 
 
25674
ac_libobjs=
 
25675
ac_ltlibobjs=
 
25676
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
25677
  # 1. Remove the extension, and $U if already installed.
 
25678
  ac_i=`echo "$ac_i" |
 
25679
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
25680
  # 2. Add them.
 
25681
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
25682
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
25683
done
 
25684
LIBOBJS=$ac_libobjs
 
25685
 
 
25686
LTLIBOBJS=$ac_ltlibobjs
 
25687
 
 
25688
 
 
25689
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
25690
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
25691
Usually this means the macro was only invoked conditionally." >&5
 
25692
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
25693
Usually this means the macro was only invoked conditionally." >&2;}
 
25694
   { (exit 1); exit 1; }; }
 
25695
fi
 
25696
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
25697
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
25698
Usually this means the macro was only invoked conditionally." >&5
 
25699
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
25700
Usually this means the macro was only invoked conditionally." >&2;}
 
25701
   { (exit 1); exit 1; }; }
 
25702
fi
 
25703
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
25704
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
25705
Usually this means the macro was only invoked conditionally." >&5
 
25706
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
25707
Usually this means the macro was only invoked conditionally." >&2;}
 
25708
   { (exit 1); exit 1; }; }
 
25709
fi
 
25710
 
14612
25711
: ${CONFIG_STATUS=./config.status}
14613
25712
ac_clean_files_save=$ac_clean_files
14614
25713
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14615
 
{ echo "$as_me:14615: creating $CONFIG_STATUS" >&5
 
25714
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14616
25715
echo "$as_me: creating $CONFIG_STATUS" >&6;}
14617
25716
cat >$CONFIG_STATUS <<_ACEOF
14618
25717
#! $SHELL
14619
 
# Generated automatically by configure.
 
25718
# Generated by $as_me.
14620
25719
# Run this file to recreate the current configuration.
14621
25720
# Compiler output produced by configure, useful for debugging
14622
25721
# configure, is in config.log if it exists.
14623
25722
 
14624
25723
debug=false
 
25724
ac_cs_recheck=false
 
25725
ac_cs_silent=false
14625
25726
SHELL=\${CONFIG_SHELL-$SHELL}
14626
 
ac_cs_invocation="\$0 \$@"
14627
 
 
14628
25727
_ACEOF
14629
25728
 
14630
25729
cat >>$CONFIG_STATUS <<\_ACEOF
 
25730
## --------------------- ##
 
25731
## M4sh Initialization.  ##
 
25732
## --------------------- ##
 
25733
 
14631
25734
# Be Bourne compatible
14632
25735
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14633
25736
  emulate sh
14634
25737
  NULLCMD=:
 
25738
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
25739
  # is contrary to our usage.  Disable this feature.
 
25740
  alias -g '${1+"$@"}'='"$@"'
14635
25741
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14636
25742
  set -o posix
14637
25743
fi
 
25744
DUALCASE=1; export DUALCASE # for MKS sh
 
25745
 
 
25746
# Support unset when possible.
 
25747
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
25748
  as_unset=unset
 
25749
else
 
25750
  as_unset=false
 
25751
fi
 
25752
 
 
25753
 
 
25754
# Work around bugs in pre-3.0 UWIN ksh.
 
25755
$as_unset ENV MAIL MAILPATH
 
25756
PS1='$ '
 
25757
PS2='> '
 
25758
PS4='+ '
 
25759
 
 
25760
# NLS nuisances.
 
25761
for as_var in \
 
25762
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
25763
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
25764
  LC_TELEPHONE LC_TIME
 
25765
do
 
25766
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
25767
    eval $as_var=C; export $as_var
 
25768
  else
 
25769
    $as_unset $as_var
 
25770
  fi
 
25771
done
 
25772
 
 
25773
# Required to use basename.
 
25774
if expr a : '\(a\)' >/dev/null 2>&1; then
 
25775
  as_expr=expr
 
25776
else
 
25777
  as_expr=false
 
25778
fi
 
25779
 
 
25780
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
25781
  as_basename=basename
 
25782
else
 
25783
  as_basename=false
 
25784
fi
 
25785
 
14638
25786
 
14639
25787
# Name of the executable.
14640
 
as_me=`echo "$0" |sed 's,.*[\\/],,'`
 
25788
as_me=`$as_basename "$0" ||
 
25789
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
25790
         X"$0" : 'X\(//\)$' \| \
 
25791
         X"$0" : 'X\(/\)$' \| \
 
25792
         .     : '\(.\)' 2>/dev/null ||
 
25793
echo X/"$0" |
 
25794
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
25795
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
25796
          /^X\/\(\/\).*/{ s//\1/; q; }
 
25797
          s/.*/./; q'`
 
25798
 
 
25799
 
 
25800
# PATH needs CR, and LINENO needs CR and PATH.
 
25801
# Avoid depending upon Character Ranges.
 
25802
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
25803
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
25804
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
25805
as_cr_digits='0123456789'
 
25806
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
25807
 
 
25808
# The user is always right.
 
25809
if test "${PATH_SEPARATOR+set}" != set; then
 
25810
  echo "#! /bin/sh" >conf$$.sh
 
25811
  echo  "exit 0"   >>conf$$.sh
 
25812
  chmod +x conf$$.sh
 
25813
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
25814
    PATH_SEPARATOR=';'
 
25815
  else
 
25816
    PATH_SEPARATOR=:
 
25817
  fi
 
25818
  rm -f conf$$.sh
 
25819
fi
 
25820
 
 
25821
 
 
25822
  as_lineno_1=$LINENO
 
25823
  as_lineno_2=$LINENO
 
25824
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
25825
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
25826
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
25827
  # Find who we are.  Look in the path if we contain no path at all
 
25828
  # relative or not.
 
25829
  case $0 in
 
25830
    *[\\/]* ) as_myself=$0 ;;
 
25831
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
25832
for as_dir in $PATH
 
25833
do
 
25834
  IFS=$as_save_IFS
 
25835
  test -z "$as_dir" && as_dir=.
 
25836
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
25837
done
 
25838
 
 
25839
       ;;
 
25840
  esac
 
25841
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
25842
  # in which case we are not to be found in the path.
 
25843
  if test "x$as_myself" = x; then
 
25844
    as_myself=$0
 
25845
  fi
 
25846
  if test ! -f "$as_myself"; then
 
25847
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
25848
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
25849
   { (exit 1); exit 1; }; }
 
25850
  fi
 
25851
  case $CONFIG_SHELL in
 
25852
  '')
 
25853
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
25854
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
25855
do
 
25856
  IFS=$as_save_IFS
 
25857
  test -z "$as_dir" && as_dir=.
 
25858
  for as_base in sh bash ksh sh5; do
 
25859
         case $as_dir in
 
25860
         /*)
 
25861
           if ("$as_dir/$as_base" -c '
 
25862
  as_lineno_1=$LINENO
 
25863
  as_lineno_2=$LINENO
 
25864
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
25865
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
25866
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
25867
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
25868
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
25869
             CONFIG_SHELL=$as_dir/$as_base
 
25870
             export CONFIG_SHELL
 
25871
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
25872
           fi;;
 
25873
         esac
 
25874
       done
 
25875
done
 
25876
;;
 
25877
  esac
 
25878
 
 
25879
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
25880
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
25881
  # line-number line before each line; the second 'sed' does the real
 
25882
  # work.  The second script uses 'N' to pair each line-number line
 
25883
  # with the numbered line, and appends trailing '-' during
 
25884
  # substitution so that $LINENO is not a special case at line end.
 
25885
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
25886
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
25887
  sed '=' <$as_myself |
 
25888
    sed '
 
25889
      N
 
25890
      s,$,-,
 
25891
      : loop
 
25892
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
25893
      t loop
 
25894
      s,-$,,
 
25895
      s,^['$as_cr_digits']*\n,,
 
25896
    ' >$as_me.lineno &&
 
25897
  chmod +x $as_me.lineno ||
 
25898
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
25899
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
25900
   { (exit 1); exit 1; }; }
 
25901
 
 
25902
  # Don't try to exec as it changes $[0], causing all sort of problems
 
25903
  # (the dirname of $[0] is not the place where we might find the
 
25904
  # original and so on.  Autoconf is especially sensible to this).
 
25905
  . ./$as_me.lineno
 
25906
  # Exit status is that of the last command.
 
25907
  exit
 
25908
}
 
25909
 
 
25910
 
 
25911
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
25912
  *c*,-n*) ECHO_N= ECHO_C='
 
25913
' ECHO_T='      ' ;;
 
25914
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
25915
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
25916
esac
14641
25917
 
14642
25918
if expr a : '\(a\)' >/dev/null 2>&1; then
14643
25919
  as_expr=expr
14663
25939
fi
14664
25940
rm -f conf$$ conf$$.exe conf$$.file
14665
25941
 
 
25942
if mkdir -p . 2>/dev/null; then
 
25943
  as_mkdir_p=:
 
25944
else
 
25945
  test -d ./-p && rmdir ./-p
 
25946
  as_mkdir_p=false
 
25947
fi
 
25948
 
14666
25949
as_executable_p="test -f"
14667
25950
 
14668
 
# Support unset when possible.
14669
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
14670
 
  as_unset=unset
14671
 
else
14672
 
  as_unset=false
14673
 
fi
14674
 
 
14675
 
# NLS nuisances.
14676
 
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
14677
 
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
14678
 
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
14679
 
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
14680
 
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
14681
 
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
14682
 
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
14683
 
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
 
25951
# Sed expression to map a string onto a valid CPP name.
 
25952
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
25953
 
 
25954
# Sed expression to map a string onto a valid variable name.
 
25955
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
25956
 
14684
25957
 
14685
25958
# IFS
14686
25959
# We need space, tab and new line, in precisely that order.
14689
25962
IFS="   $as_nl"
14690
25963
 
14691
25964
# CDPATH.
14692
 
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
25965
$as_unset CDPATH
14693
25966
 
14694
25967
exec 6>&1
14695
25968
 
 
25969
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
25970
# report actual input values of CONFIG_FILES etc. instead of their
 
25971
# values after options handling.  Logging --version etc. is OK.
 
25972
exec 5>>config.log
 
25973
{
 
25974
  echo
 
25975
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
25976
## Running $as_me. ##
 
25977
_ASBOX
 
25978
} >&5
 
25979
cat >&5 <<_CSEOF
 
25980
 
 
25981
This file was extended by ntp $as_me 4.2.0a, which was
 
25982
generated by GNU Autoconf 2.59.  Invocation command line was
 
25983
 
 
25984
  CONFIG_FILES    = $CONFIG_FILES
 
25985
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
25986
  CONFIG_LINKS    = $CONFIG_LINKS
 
25987
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
25988
  $ $0 $@
 
25989
 
 
25990
_CSEOF
 
25991
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
25992
echo >&5
14696
25993
_ACEOF
14697
25994
 
14698
25995
# Files that config.status was made for.
14712
26009
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14713
26010
fi
14714
26011
 
14715
 
cat >>$CONFIG_STATUS <<\EOF
 
26012
cat >>$CONFIG_STATUS <<\_ACEOF
14716
26013
 
14717
26014
ac_cs_usage="\
14718
26015
\`$as_me' instantiates files from templates according to the
14722
26019
 
14723
26020
  -h, --help       print this help, then exit
14724
26021
  -V, --version    print version number, then exit
 
26022
  -q, --quiet      do not print progress messages
14725
26023
  -d, --debug      don't remove temporary files
14726
26024
      --recheck    update $as_me by reconfiguring in the same conditions
14727
26025
  --file=FILE[:TEMPLATE]
14728
 
                   instantiate the configuration file FILE
 
26026
                   instantiate the configuration file FILE
14729
26027
  --header=FILE[:TEMPLATE]
14730
 
                   instantiate the configuration header FILE
 
26028
                   instantiate the configuration header FILE
14731
26029
 
14732
26030
Configuration files:
14733
26031
$config_files
14739
26037
$config_commands
14740
26038
 
14741
26039
Report bugs to <bug-autoconf@gnu.org>."
14742
 
EOF
 
26040
_ACEOF
14743
26041
 
14744
 
cat >>$CONFIG_STATUS <<EOF
 
26042
cat >>$CONFIG_STATUS <<_ACEOF
14745
26043
ac_cs_version="\\
14746
 
config.status
14747
 
configured by $0, generated by GNU Autoconf 2.50,
 
26044
ntp config.status 4.2.0a
 
26045
configured by $0, generated by GNU Autoconf 2.59,
14748
26046
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14749
26047
 
14750
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14751
 
Free Software Foundation, Inc.
 
26048
Copyright (C) 2003 Free Software Foundation, Inc.
14752
26049
This config.status script is free software; the Free Software Foundation
14753
26050
gives unlimited permission to copy, distribute and modify it."
14754
26051
srcdir=$srcdir
14755
26052
INSTALL="$INSTALL"
14756
 
EOF
 
26053
_ACEOF
14757
26054
 
14758
 
cat >>$CONFIG_STATUS <<\EOF
 
26055
cat >>$CONFIG_STATUS <<\_ACEOF
14759
26056
# If no file are specified by the user, then we need to provide default
14760
26057
# value.  By we need to know if files were specified by the user.
14761
26058
ac_need_defaults=:
14765
26062
  --*=*)
14766
26063
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
14767
26064
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14768
 
    shift
14769
 
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
14770
 
    shift
14771
 
    ;;
14772
 
  -*);;
 
26065
    ac_shift=:
 
26066
    ;;
 
26067
  -*)
 
26068
    ac_option=$1
 
26069
    ac_optarg=$2
 
26070
    ac_shift=shift
 
26071
    ;;
14773
26072
  *) # This is not an option, so the user has probably given explicit
14774
26073
     # arguments.
 
26074
     ac_option=$1
14775
26075
     ac_need_defaults=false;;
14776
26076
  esac
14777
26077
 
14778
 
  case $1 in
 
26078
  case $ac_option in
14779
26079
  # Handling of the options.
14780
 
EOF
14781
 
cat >>$CONFIG_STATUS <<EOF
 
26080
_ACEOF
 
26081
cat >>$CONFIG_STATUS <<\_ACEOF
14782
26082
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14783
 
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14784
 
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
14785
 
EOF
14786
 
cat >>$CONFIG_STATUS <<\EOF
 
26083
    ac_cs_recheck=: ;;
14787
26084
  --version | --vers* | -V )
14788
26085
    echo "$ac_cs_version"; exit 0 ;;
14789
26086
  --he | --h)
14790
26087
    # Conflict between --help and --header
14791
 
    { { echo "$as_me:14791: error: ambiguous option: $1
 
26088
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
14792
26089
Try \`$0 --help' for more information." >&5
14793
26090
echo "$as_me: error: ambiguous option: $1
14794
26091
Try \`$0 --help' for more information." >&2;}
14798
26095
  --debug | --d* | -d )
14799
26096
    debug=: ;;
14800
26097
  --file | --fil | --fi | --f )
14801
 
    shift
14802
 
    CONFIG_FILES="$CONFIG_FILES $1"
 
26098
    $ac_shift
 
26099
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14803
26100
    ac_need_defaults=false;;
14804
26101
  --header | --heade | --head | --hea )
14805
 
    shift
14806
 
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
 
26102
    $ac_shift
 
26103
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14807
26104
    ac_need_defaults=false;;
14808
 
 
14809
 
  # Handling of arguments.
14810
 
  'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14811
 
  'adjtimed/Makefile' ) CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
14812
 
  'clockstuff/Makefile' ) CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
14813
 
  'ElectricFence/Makefile' ) CONFIG_FILES="$CONFIG_FILES ElectricFence/Makefile" ;;
14814
 
  'include/Makefile' ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14815
 
  'kernel/Makefile' ) CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
14816
 
  'kernel/sys/Makefile' ) CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
14817
 
  'libntp/Makefile' ) CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
14818
 
  'libparse/Makefile' ) CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
14819
 
  'librsaref/Makefile' ) CONFIG_FILES="$CONFIG_FILES librsaref/Makefile" ;;
14820
 
  'ntpd/Makefile' ) CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
14821
 
  'ntpdc/Makefile' ) CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
14822
 
  'ntpdate/Makefile' ) CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
14823
 
  'ntpq/Makefile' ) CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
14824
 
  'ntptrace/Makefile' ) CONFIG_FILES="$CONFIG_FILES ntptrace/Makefile" ;;
14825
 
  'parseutil/Makefile' ) CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
14826
 
  'scripts/Makefile' ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
14827
 
  'scripts/calc_tickadj' ) CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj" ;;
14828
 
  'scripts/checktime' ) CONFIG_FILES="$CONFIG_FILES scripts/checktime" ;;
14829
 
  'scripts/freq_adj' ) CONFIG_FILES="$CONFIG_FILES scripts/freq_adj" ;;
14830
 
  'scripts/mkver' ) CONFIG_FILES="$CONFIG_FILES scripts/mkver" ;;
14831
 
  'scripts/ntp-wait' ) CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait" ;;
14832
 
  'scripts/ntpsweep' ) CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep" ;;
14833
 
  'scripts/ntpver' ) CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
14834
 
  'scripts/plot_summary' ) CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
14835
 
  'scripts/summary' ) CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
14836
 
  'util/Makefile' ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
14837
 
  'default-1' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14838
 
  'default-2' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
14839
 
  'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14840
 
  'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
26105
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
26106
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
26107
    ac_cs_silent=: ;;
14841
26108
 
14842
26109
  # This is an error.
14843
 
  -*) { { echo "$as_me:14843: error: unrecognized option: $1
 
26110
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14844
26111
Try \`$0 --help' for more information." >&5
14845
26112
echo "$as_me: error: unrecognized option: $1
14846
26113
Try \`$0 --help' for more information." >&2;}
14847
26114
   { (exit 1); exit 1; }; } ;;
14848
 
  *) { { echo "$as_me:14848: error: invalid argument: $1" >&5
14849
 
echo "$as_me: error: invalid argument: $1" >&2;}
 
26115
 
 
26116
  *) ac_config_targets="$ac_config_targets $1" ;;
 
26117
 
 
26118
  esac
 
26119
  shift
 
26120
done
 
26121
 
 
26122
ac_configure_extra_args=
 
26123
 
 
26124
if $ac_cs_silent; then
 
26125
  exec 6>/dev/null
 
26126
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
26127
fi
 
26128
 
 
26129
_ACEOF
 
26130
cat >>$CONFIG_STATUS <<_ACEOF
 
26131
if \$ac_cs_recheck; then
 
26132
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
26133
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
26134
fi
 
26135
 
 
26136
_ACEOF
 
26137
 
 
26138
cat >>$CONFIG_STATUS <<_ACEOF
 
26139
#
 
26140
# INIT-COMMANDS section.
 
26141
#
 
26142
 
 
26143
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
26144
 
 
26145
_ACEOF
 
26146
 
 
26147
 
 
26148
 
 
26149
cat >>$CONFIG_STATUS <<\_ACEOF
 
26150
for ac_config_target in $ac_config_targets
 
26151
do
 
26152
  case "$ac_config_target" in
 
26153
  # Handling of arguments.
 
26154
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
26155
  "ElectricFence/Makefile" ) CONFIG_FILES="$CONFIG_FILES ElectricFence/Makefile" ;;
 
26156
  "adjtimed/Makefile" ) CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
 
26157
  "clockstuff/Makefile" ) CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
 
26158
  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
 
26159
  "include/isc/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
 
26160
  "kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
 
26161
  "kernel/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
 
26162
  "libntp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
 
26163
  "libparse/Makefile" ) CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
 
26164
  "ntpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
 
26165
  "ntpdate/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
 
26166
  "ntpdc/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
 
26167
  "ntpdc/nl.pl" ) CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
 
26168
  "ntpq/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
 
26169
  "parseutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
 
26170
  "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
 
26171
  "scripts/calc_tickadj" ) CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj" ;;
 
26172
  "scripts/checktime" ) CONFIG_FILES="$CONFIG_FILES scripts/checktime" ;;
 
26173
  "scripts/freq_adj" ) CONFIG_FILES="$CONFIG_FILES scripts/freq_adj" ;;
 
26174
  "scripts/mkver" ) CONFIG_FILES="$CONFIG_FILES scripts/mkver" ;;
 
26175
  "scripts/ntp-wait" ) CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait" ;;
 
26176
  "scripts/ntpsweep" ) CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep" ;;
 
26177
  "scripts/ntptrace" ) CONFIG_FILES="$CONFIG_FILES scripts/ntptrace" ;;
 
26178
  "scripts/ntpver" ) CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
 
26179
  "scripts/plot_summary" ) CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
 
26180
  "scripts/summary" ) CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
 
26181
  "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
 
26182
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
26183
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
26184
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
26185
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14850
26186
   { (exit 1); exit 1; }; };;
14851
26187
  esac
14852
 
  shift
14853
26188
done
14854
26189
 
14855
 
exec 5>>config.log
14856
 
cat >&5 << _ACEOF
14857
 
 
14858
 
## ----------------------- ##
14859
 
## Running config.status.  ##
14860
 
## ----------------------- ##
14861
 
 
14862
 
This file was extended by $as_me 2.50, executed with
14863
 
  > $ac_cs_invocation
14864
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
14865
 
 
14866
 
_ACEOF
14867
 
EOF
14868
 
 
14869
 
cat >>$CONFIG_STATUS <<\EOF
14870
26190
# If the user did not use the arguments to specify the items to instantiate,
14871
26191
# then the envvar interface is used.  Set only those that are not.
14872
26192
# We use the long form for the default assignment because of an extremely
14877
26197
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14878
26198
fi
14879
26199
 
 
26200
# Have a temporary directory for convenience.  Make it in the build tree
 
26201
# simply because there is no reason to put it here, and in addition,
 
26202
# creating and moving files from /tmp can sometimes cause problems.
14880
26203
# Create a temporary directory, and hook for its removal unless debugging.
14881
26204
$debug ||
14882
26205
{
14883
26206
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14884
 
  trap '{ (exit $?); exit $?; }' 1 2 13 15
 
26207
  trap '{ (exit 1); exit 1; }' 1 2 13 15
14885
26208
}
14886
26209
 
14887
26210
# Create a (secure) tmp directory for tmp files.
14888
 
: ${TMPDIR=/tmp}
 
26211
 
14889
26212
{
14890
 
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
 
26213
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14891
26214
  test -n "$tmp" && test -d "$tmp"
14892
26215
}  ||
14893
26216
{
14894
 
  tmp=$TMPDIR/cs$$-$RANDOM
 
26217
  tmp=./confstat$$-$RANDOM
14895
26218
  (umask 077 && mkdir $tmp)
14896
26219
} ||
14897
26220
{
14898
 
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
 
26221
   echo "$me: cannot create a temporary directory in ." >&2
14899
26222
   { (exit 1); exit 1; }
14900
26223
}
14901
26224
 
14902
 
EOF
14903
 
 
14904
 
cat >>$CONFIG_STATUS <<EOF
14905
 
#
14906
 
# INIT-COMMANDS section.
14907
 
#
14908
 
 
14909
 
am_indx=1
14910
 
  for am_file in config.h; do
14911
 
    case " $CONFIG_HEADERS " in
14912
 
    *" $am_file "*)
14913
 
      echo timestamp > `echo $am_file | sed 's%:.*%%;s%[^/]*$%%'`stamp-h$am_indx
14914
 
      ;;
14915
 
    esac
14916
 
    am_indx=\`expr \$am_indx + 1\`
14917
 
  done
14918
 
AMDEP="$AMDEP"
14919
 
ac_aux_dir="$ac_aux_dir"
14920
 
 
14921
 
EOF
14922
 
 
14923
 
cat >>$CONFIG_STATUS <<EOF
 
26225
_ACEOF
 
26226
 
 
26227
cat >>$CONFIG_STATUS <<_ACEOF
14924
26228
 
14925
26229
#
14926
26230
# CONFIG_FILES section.
14933
26237
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14934
26238
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14935
26239
s,@SHELL@,$SHELL,;t t
 
26240
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
26241
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
26242
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
26243
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
26244
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
26245
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14936
26246
s,@exec_prefix@,$exec_prefix,;t t
14937
26247
s,@prefix@,$prefix,;t t
14938
26248
s,@program_transform_name@,$program_transform_name,;t t
14948
26258
s,@oldincludedir@,$oldincludedir,;t t
14949
26259
s,@infodir@,$infodir,;t t
14950
26260
s,@mandir@,$mandir,;t t
14951
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14952
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14953
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14954
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14955
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
26261
s,@build_alias@,$build_alias,;t t
 
26262
s,@host_alias@,$host_alias,;t t
 
26263
s,@target_alias@,$target_alias,;t t
 
26264
s,@DEFS@,$DEFS,;t t
14956
26265
s,@ECHO_C@,$ECHO_C,;t t
14957
26266
s,@ECHO_N@,$ECHO_N,;t t
14958
26267
s,@ECHO_T@,$ECHO_T,;t t
14959
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14960
 
s,@DEFS@,$DEFS,;t t
14961
26268
s,@LIBS@,$LIBS,;t t
14962
 
s,@build@,$build,;t t
14963
 
s,@build_cpu@,$build_cpu,;t t
14964
 
s,@build_vendor@,$build_vendor,;t t
14965
 
s,@build_os@,$build_os,;t t
14966
 
s,@host@,$host,;t t
14967
 
s,@host_cpu@,$host_cpu,;t t
14968
 
s,@host_vendor@,$host_vendor,;t t
14969
 
s,@host_os@,$host_os,;t t
14970
 
s,@target@,$target,;t t
14971
 
s,@target_cpu@,$target_cpu,;t t
14972
 
s,@target_vendor@,$target_vendor,;t t
14973
 
s,@target_os@,$target_os,;t t
14974
26269
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14975
26270
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14976
26271
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
26272
s,@CYGPATH_W@,$CYGPATH_W,;t t
14977
26273
s,@PACKAGE@,$PACKAGE,;t t
14978
26274
s,@VERSION@,$VERSION,;t t
14979
26275
s,@ACLOCAL@,$ACLOCAL,;t t
14984
26280
s,@AMTAR@,$AMTAR,;t t
14985
26281
s,@install_sh@,$install_sh,;t t
14986
26282
s,@STRIP@,$STRIP,;t t
 
26283
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14987
26284
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14988
 
s,@INSTALL_STRIP_PROGRAM_ENV@,$INSTALL_STRIP_PROGRAM_ENV,;t t
14989
26285
s,@AWK@,$AWK,;t t
14990
26286
s,@SET_MAKE@,$SET_MAKE,;t t
14991
 
s,@AMDEP@,$AMDEP,;t t
14992
 
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14993
 
s,@DEPDIR@,$DEPDIR,;t t
 
26287
s,@am__leading_dot@,$am__leading_dot,;t t
 
26288
s,@build@,$build,;t t
 
26289
s,@build_cpu@,$build_cpu,;t t
 
26290
s,@build_vendor@,$build_vendor,;t t
 
26291
s,@build_os@,$build_os,;t t
 
26292
s,@host@,$host,;t t
 
26293
s,@host_cpu@,$host_cpu,;t t
 
26294
s,@host_vendor@,$host_vendor,;t t
 
26295
s,@host_os@,$host_os,;t t
14994
26296
s,@CC@,$CC,;t t
14995
26297
s,@CFLAGS@,$CFLAGS,;t t
14996
26298
s,@LDFLAGS@,$LDFLAGS,;t t
14998
26300
s,@ac_ct_CC@,$ac_ct_CC,;t t
14999
26301
s,@EXEEXT@,$EXEEXT,;t t
15000
26302
s,@OBJEXT@,$OBJEXT,;t t
 
26303
s,@DEPDIR@,$DEPDIR,;t t
 
26304
s,@am__include@,$am__include,;t t
 
26305
s,@am__quote@,$am__quote,;t t
 
26306
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
26307
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
26308
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
26309
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
26310
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
26311
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15001
26312
s,@CPP@,$CPP,;t t
15002
 
s,@_am_include@,$_am_include,;t t
15003
 
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
26313
s,@EGREP@,$EGREP,;t t
15004
26314
s,@LN_S@,$LN_S,;t t
15005
26315
s,@RANLIB@,$RANLIB,;t t
15006
26316
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15007
26317
s,@PATH_SH@,$PATH_SH,;t t
15008
26318
s,@PATH_PERL@,$PATH_PERL,;t t
 
26319
s,@READLINE_LIBS@,$READLINE_LIBS,;t t
15009
26320
s,@U@,$U,;t t
15010
26321
s,@ANSI2KNR@,$ANSI2KNR,;t t
15011
26322
s,@LIBOBJS@,$LIBOBJS,;t t
15013
26324
s,@MAKE_LIBPARSE@,$MAKE_LIBPARSE,;t t
15014
26325
s,@MAKE_LIBPARSE_KERNEL@,$MAKE_LIBPARSE_KERNEL,;t t
15015
26326
s,@MAKE_CHECK_Y2K@,$MAKE_CHECK_Y2K,;t t
15016
 
s,@RSAOBJS@,$RSAOBJS,;t t
15017
 
s,@RSASRCS@,$RSASRCS,;t t
15018
 
s,@RSADIR@,$RSADIR,;t t
15019
 
s,@RSAREF@,$RSAREF,;t t
15020
 
s,@LIBRSAREF@,$LIBRSAREF,;t t
15021
 
s,@MAKE_LIBRSAREF@,$MAKE_LIBRSAREF,;t t
15022
26327
s,@OPENSSL@,$OPENSSL,;t t
15023
26328
s,@OPENSSL_INC@,$OPENSSL_INC,;t t
15024
26329
s,@OPENSSL_LIB@,$OPENSSL_LIB,;t t
15025
 
s,@MAKE_NTP_GENKEYS@,$MAKE_NTP_GENKEYS,;t t
15026
 
s,@AUTOKEY@,$AUTOKEY,;t t
 
26330
s,@MAKE_NTP_KEYGEN@,$MAKE_NTP_KEYGEN,;t t
 
26331
s,@LCRYPTO@,$LCRYPTO,;t t
15027
26332
s,@EF_PROGS@,$EF_PROGS,;t t
15028
26333
s,@EF_LIBS@,$EF_LIBS,;t t
 
26334
s,@MAKE_SNTP@,$MAKE_SNTP,;t t
15029
26335
s,@TESTDCF@,$TESTDCF,;t t
15030
26336
s,@DCFD@,$DCFD,;t t
15031
26337
s,@MAKE_PARSEKMODULE@,$MAKE_PARSEKMODULE,;t t
15036
26342
s,@MAKE_NTPTIME@,$MAKE_NTPTIME,;t t
15037
26343
s,@MAKE_TICKADJ@,$MAKE_TICKADJ,;t t
15038
26344
s,@MAKE_TIMETRIM@,$MAKE_TIMETRIM,;t t
 
26345
s,@MAKE_LIBNTPSIM@,$MAKE_LIBNTPSIM,;t t
 
26346
s,@MAKE_NTPDSIM@,$MAKE_NTPDSIM,;t t
 
26347
s,@ARLIB_DIR@,$ARLIB_DIR,;t t
 
26348
s,@subdirs@,$subdirs,;t t
 
26349
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15039
26350
CEOF
15040
26351
 
15041
 
EOF
 
26352
_ACEOF
15042
26353
 
15043
 
  cat >>$CONFIG_STATUS <<\EOF
 
26354
  cat >>$CONFIG_STATUS <<\_ACEOF
15044
26355
  # Split the substitutions into bite-sized pieces for seds with
15045
26356
  # small command number limits, like on Digital OSF/1 and HP-UX.
15046
26357
  ac_max_sed_lines=48
15065
26376
      (echo ':t
15066
26377
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15067
26378
      if test -z "$ac_sed_cmds"; then
15068
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
26379
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15069
26380
      else
15070
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
26381
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15071
26382
      fi
15072
26383
      ac_sed_frag=`expr $ac_sed_frag + 1`
15073
26384
      ac_beg=$ac_end
15079
26390
  fi
15080
26391
fi # test -n "$CONFIG_FILES"
15081
26392
 
15082
 
EOF
15083
 
cat >>$CONFIG_STATUS <<\EOF
 
26393
_ACEOF
 
26394
cat >>$CONFIG_STATUS <<\_ACEOF
15084
26395
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15085
26396
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15086
26397
  case $ac_file in
15087
26398
  - | *:- | *:-:* ) # input from stdin
15088
 
        cat >$tmp/stdin
15089
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15090
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
26399
        cat >$tmp/stdin
 
26400
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
26401
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15091
26402
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15092
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
26403
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15093
26404
  * )   ac_file_in=$ac_file.in ;;
15094
26405
  esac
15095
26406
 
15096
26407
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15097
 
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15098
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
15099
 
         X"$ac_file" : 'X\(//\)$' \| \
15100
 
         X"$ac_file" : 'X\(/\)' \| \
15101
 
         .     : '\(.\)' 2>/dev/null ||
 
26408
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
26409
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
26410
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
26411
         X"$ac_file" : 'X\(//\)$' \| \
 
26412
         X"$ac_file" : 'X\(/\)' \| \
 
26413
         .     : '\(.\)' 2>/dev/null ||
15102
26414
echo X"$ac_file" |
15103
26415
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15104
26416
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15105
26417
          /^X\(\/\/\)$/{ s//\1/; q; }
15106
26418
          /^X\(\/\).*/{ s//\1/; q; }
15107
26419
          s/.*/./; q'`
15108
 
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15109
 
    { case "$ac_dir" in
15110
 
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15111
 
  *)                      as_incr_dir=.;;
15112
 
esac
15113
 
as_dummy="$ac_dir"
15114
 
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15115
 
  case $as_mkdir_dir in
15116
 
    # Skip DOS drivespec
15117
 
    ?:) as_incr_dir=$as_mkdir_dir ;;
15118
 
    *)
15119
 
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
15120
 
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
15121
 
    ;;
15122
 
  esac
15123
 
done; }
15124
 
 
15125
 
    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
15126
 
    # A "../" for each directory in $ac_dir_suffix.
15127
 
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
 
26420
  { if $as_mkdir_p; then
 
26421
    mkdir -p "$ac_dir"
15128
26422
  else
15129
 
    ac_dir_suffix= ac_dots=
15130
 
  fi
15131
 
 
15132
 
  case $srcdir in
15133
 
  .)  ac_srcdir=.
15134
 
      if test -z "$ac_dots"; then
15135
 
         ac_top_srcdir=.
15136
 
      else
15137
 
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
15138
 
      fi ;;
15139
 
  [\\/]* | ?:[\\/]* )
15140
 
      ac_srcdir=$srcdir$ac_dir_suffix;
15141
 
      ac_top_srcdir=$srcdir ;;
 
26423
    as_dir="$ac_dir"
 
26424
    as_dirs=
 
26425
    while test ! -d "$as_dir"; do
 
26426
      as_dirs="$as_dir $as_dirs"
 
26427
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
26428
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
26429
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
26430
         X"$as_dir" : 'X\(//\)$' \| \
 
26431
         X"$as_dir" : 'X\(/\)' \| \
 
26432
         .     : '\(.\)' 2>/dev/null ||
 
26433
echo X"$as_dir" |
 
26434
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
26435
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
26436
          /^X\(\/\/\)$/{ s//\1/; q; }
 
26437
          /^X\(\/\).*/{ s//\1/; q; }
 
26438
          s/.*/./; q'`
 
26439
    done
 
26440
    test ! -n "$as_dirs" || mkdir $as_dirs
 
26441
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
26442
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
26443
   { (exit 1); exit 1; }; }; }
 
26444
 
 
26445
  ac_builddir=.
 
26446
 
 
26447
if test "$ac_dir" != .; then
 
26448
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
26449
  # A "../" for each directory in $ac_dir_suffix.
 
26450
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
26451
else
 
26452
  ac_dir_suffix= ac_top_builddir=
 
26453
fi
 
26454
 
 
26455
case $srcdir in
 
26456
  .)  # No --srcdir option.  We are building in place.
 
26457
    ac_srcdir=.
 
26458
    if test -z "$ac_top_builddir"; then
 
26459
       ac_top_srcdir=.
 
26460
    else
 
26461
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
26462
    fi ;;
 
26463
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
26464
    ac_srcdir=$srcdir$ac_dir_suffix;
 
26465
    ac_top_srcdir=$srcdir ;;
15142
26466
  *) # Relative path.
15143
 
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
15144
 
    ac_top_srcdir=$ac_dots$srcdir ;;
15145
 
  esac
 
26467
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
26468
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
26469
esac
 
26470
 
 
26471
# Do not use `cd foo && pwd` to compute absolute paths, because
 
26472
# the directories may not exist.
 
26473
case `pwd` in
 
26474
.) ac_abs_builddir="$ac_dir";;
 
26475
*)
 
26476
  case "$ac_dir" in
 
26477
  .) ac_abs_builddir=`pwd`;;
 
26478
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
26479
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
26480
  esac;;
 
26481
esac
 
26482
case $ac_abs_builddir in
 
26483
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
26484
*)
 
26485
  case ${ac_top_builddir}. in
 
26486
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
26487
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
26488
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
26489
  esac;;
 
26490
esac
 
26491
case $ac_abs_builddir in
 
26492
.) ac_abs_srcdir=$ac_srcdir;;
 
26493
*)
 
26494
  case $ac_srcdir in
 
26495
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
26496
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
26497
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
26498
  esac;;
 
26499
esac
 
26500
case $ac_abs_builddir in
 
26501
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
26502
*)
 
26503
  case $ac_top_srcdir in
 
26504
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
26505
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
26506
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
26507
  esac;;
 
26508
esac
 
26509
 
15146
26510
 
15147
26511
  case $INSTALL in
15148
26512
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15149
 
  *) ac_INSTALL=$ac_dots$INSTALL ;;
 
26513
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15150
26514
  esac
15151
26515
 
 
26516
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
26517
  # use $as_me), people would be surprised to read:
 
26518
  #    /* config.h.  Generated by config.status.  */
 
26519
  if test x"$ac_file" = x-; then
 
26520
    configure_input=
 
26521
  else
 
26522
    configure_input="$ac_file.  "
 
26523
  fi
 
26524
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
26525
                                     sed 's,.*/,,'` by configure."
 
26526
 
 
26527
  # First look for the input files in the build tree, otherwise in the
 
26528
  # src tree.
 
26529
  ac_file_inputs=`IFS=:
 
26530
    for f in $ac_file_in; do
 
26531
      case $f in
 
26532
      -) echo $tmp/stdin ;;
 
26533
      [\\/$]*)
 
26534
         # Absolute (can't be DOS-style, as IFS=:)
 
26535
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
26536
echo "$as_me: error: cannot find input file: $f" >&2;}
 
26537
   { (exit 1); exit 1; }; }
 
26538
         echo "$f";;
 
26539
      *) # Relative
 
26540
         if test -f "$f"; then
 
26541
           # Build tree
 
26542
           echo "$f"
 
26543
         elif test -f "$srcdir/$f"; then
 
26544
           # Source tree
 
26545
           echo "$srcdir/$f"
 
26546
         else
 
26547
           # /dev/null tree
 
26548
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
26549
echo "$as_me: error: cannot find input file: $f" >&2;}
 
26550
   { (exit 1); exit 1; }; }
 
26551
         fi;;
 
26552
      esac
 
26553
    done` || { (exit 1); exit 1; }
 
26554
 
15152
26555
  if test x"$ac_file" != x-; then
15153
 
    { echo "$as_me:15153: creating $ac_file" >&5
 
26556
    { echo "$as_me:$LINENO: creating $ac_file" >&5
15154
26557
echo "$as_me: creating $ac_file" >&6;}
15155
26558
    rm -f "$ac_file"
15156
26559
  fi
15157
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
15158
 
  # use $as_me), people would be surprised to read:
15159
 
  #    /* config.h.  Generated automatically by config.status.  */
15160
 
  configure_input="Generated automatically from `echo $ac_file_in |
15161
 
                                                 sed 's,.*/,,'` by configure."
15162
 
 
15163
 
  # First look for the input files in the build tree, otherwise in the
15164
 
  # src tree.
15165
 
  ac_file_inputs=`IFS=:
15166
 
    for f in $ac_file_in; do
15167
 
      case $f in
15168
 
      -) echo $tmp/stdin ;;
15169
 
      [\\/$]*)
15170
 
         # Absolute (can't be DOS-style, as IFS=:)
15171
 
         test -f "$f" || { { echo "$as_me:15171: error: cannot find input file: $f" >&5
15172
 
echo "$as_me: error: cannot find input file: $f" >&2;}
15173
 
   { (exit 1); exit 1; }; }
15174
 
         echo $f;;
15175
 
      *) # Relative
15176
 
         if test -f "$f"; then
15177
 
           # Build tree
15178
 
           echo $f
15179
 
         elif test -f "$srcdir/$f"; then
15180
 
           # Source tree
15181
 
           echo $srcdir/$f
15182
 
         else
15183
 
           # /dev/null tree
15184
 
           { { echo "$as_me:15184: error: cannot find input file: $f" >&5
15185
 
echo "$as_me: error: cannot find input file: $f" >&2;}
15186
 
   { (exit 1); exit 1; }; }
15187
 
         fi;;
15188
 
      esac
15189
 
    done` || { (exit 1); exit 1; }
15190
 
EOF
15191
 
cat >>$CONFIG_STATUS <<EOF
 
26560
_ACEOF
 
26561
cat >>$CONFIG_STATUS <<_ACEOF
15192
26562
  sed "$ac_vpsub
15193
26563
$extrasub
15194
 
EOF
15195
 
cat >>$CONFIG_STATUS <<\EOF
 
26564
_ACEOF
 
26565
cat >>$CONFIG_STATUS <<\_ACEOF
15196
26566
:t
15197
26567
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15198
26568
s,@configure_input@,$configure_input,;t t
15199
26569
s,@srcdir@,$ac_srcdir,;t t
 
26570
s,@abs_srcdir@,$ac_abs_srcdir,;t t
15200
26571
s,@top_srcdir@,$ac_top_srcdir,;t t
 
26572
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
26573
s,@builddir@,$ac_builddir,;t t
 
26574
s,@abs_builddir@,$ac_abs_builddir,;t t
 
26575
s,@top_builddir@,$ac_top_builddir,;t t
 
26576
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15201
26577
s,@INSTALL@,$ac_INSTALL,;t t
15202
26578
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15203
26579
  rm -f $tmp/stdin
15208
26584
    rm -f $tmp/out
15209
26585
  fi
15210
26586
 
 
26587
  # Run the commands associated with the file.
 
26588
  case $ac_file in
 
26589
    ntpdc/nl.pl ) chmod +x ntpdc/nl.pl ;;
 
26590
    scripts/calc_tickadj ) chmod +x scripts/calc_tickadj ;;
 
26591
    scripts/checktime ) chmod +x scripts/checktime ;;
 
26592
    scripts/freq_adj ) chmod +x scripts/freq_adj ;;
 
26593
    scripts/mkver ) chmod +x scripts/mkver ;;
 
26594
    scripts/ntp-wait ) chmod +x scripts/ntp-wait ;;
 
26595
    scripts/ntpsweep ) chmod +x scripts/ntpsweep ;;
 
26596
    scripts/ntptrace ) chmod +x scripts/ntptrace ;;
 
26597
    scripts/ntpver ) chmod +x scripts/ntpver ;;
 
26598
    scripts/plot_summary ) chmod +x scripts/plot_summary ;;
 
26599
    scripts/summary ) chmod +x scripts/summary ;;
 
26600
  esac
15211
26601
done
15212
 
EOF
15213
 
cat >>$CONFIG_STATUS <<\EOF
 
26602
_ACEOF
 
26603
cat >>$CONFIG_STATUS <<\_ACEOF
15214
26604
 
15215
26605
#
15216
26606
# CONFIG_HEADER section.
15220
26610
# NAME is the cpp macro being defined and VALUE is the value it is being given.
15221
26611
#
15222
26612
# ac_d sets the value in "#define NAME VALUE" lines.
15223
 
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
15224
 
ac_dB='[        ].*$,\1#\2'
 
26613
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
26614
ac_dB='[         ].*$,\1#\2'
15225
26615
ac_dC=' '
15226
26616
ac_dD=',;t'
15227
26617
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15228
 
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
26618
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
15229
26619
ac_uB='$,\1#\2define\3'
15230
26620
ac_uC=' '
15231
26621
ac_uD=',;t'
15234
26624
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15235
26625
  case $ac_file in
15236
26626
  - | *:- | *:-:* ) # input from stdin
15237
 
        cat >$tmp/stdin
15238
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15239
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
26627
        cat >$tmp/stdin
 
26628
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
26629
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15240
26630
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15241
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
26631
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15242
26632
  * )   ac_file_in=$ac_file.in ;;
15243
26633
  esac
15244
26634
 
15245
 
  test x"$ac_file" != x- && { echo "$as_me:15245: creating $ac_file" >&5
 
26635
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15246
26636
echo "$as_me: creating $ac_file" >&6;}
15247
26637
 
15248
26638
  # First look for the input files in the build tree, otherwise in the
15252
26642
      case $f in
15253
26643
      -) echo $tmp/stdin ;;
15254
26644
      [\\/$]*)
15255
 
         # Absolute (can't be DOS-style, as IFS=:)
15256
 
         test -f "$f" || { { echo "$as_me:15256: error: cannot find input file: $f" >&5
 
26645
         # Absolute (can't be DOS-style, as IFS=:)
 
26646
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15257
26647
echo "$as_me: error: cannot find input file: $f" >&2;}
15258
26648
   { (exit 1); exit 1; }; }
15259
 
         echo $f;;
 
26649
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
26650
         echo "$f";;
15260
26651
      *) # Relative
15261
 
         if test -f "$f"; then
15262
 
           # Build tree
15263
 
           echo $f
15264
 
         elif test -f "$srcdir/$f"; then
15265
 
           # Source tree
15266
 
           echo $srcdir/$f
15267
 
         else
15268
 
           # /dev/null tree
15269
 
           { { echo "$as_me:15269: error: cannot find input file: $f" >&5
 
26652
         if test -f "$f"; then
 
26653
           # Build tree
 
26654
           echo "$f"
 
26655
         elif test -f "$srcdir/$f"; then
 
26656
           # Source tree
 
26657
           echo "$srcdir/$f"
 
26658
         else
 
26659
           # /dev/null tree
 
26660
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15270
26661
echo "$as_me: error: cannot find input file: $f" >&2;}
15271
26662
   { (exit 1); exit 1; }; }
15272
 
         fi;;
 
26663
         fi;;
15273
26664
      esac
15274
26665
    done` || { (exit 1); exit 1; }
15275
26666
  # Remove the trailing spaces.
15276
 
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
26667
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
15277
26668
 
15278
 
EOF
 
26669
_ACEOF
15279
26670
 
15280
26671
# Transform confdefs.h into two sed scripts, `conftest.defines' and
15281
26672
# `conftest.undefs', that substitutes the proper values into
15291
26682
# `end' is used to avoid that the second main sed command (meant for
15292
26683
# 0-ary CPP macros) applies to n-ary macro definitions.
15293
26684
# See the Autoconf documentation for `clear'.
15294
 
cat >confdef2sed.sed <<\EOF
 
26685
cat >confdef2sed.sed <<\_ACEOF
15295
26686
s/[\\&,]/\\&/g
15296
26687
s,[\\$`],\\&,g
15297
26688
t clear
15298
26689
: clear
15299
 
s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
 
26690
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15300
26691
t end
15301
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
26692
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15302
26693
: end
15303
 
EOF
 
26694
_ACEOF
15304
26695
# If some macros were called several times there might be several times
15305
26696
# the same #defines, which is useless.  Nevertheless, we may not want to
15306
26697
# sort them, since we want the *last* AC-DEFINE to be honored.
15311
26702
# This sed command replaces #undef with comments.  This is necessary, for
15312
26703
# example, in the case of _POSIX_SOURCE, which is predefined and required
15313
26704
# on some systems where configure will not decide to define it.
15314
 
cat >>conftest.undefs <<\EOF
15315
 
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15316
 
EOF
 
26705
cat >>conftest.undefs <<\_ACEOF
 
26706
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
26707
_ACEOF
15317
26708
 
15318
26709
# Break up conftest.defines because some shells have a limit on the size
15319
26710
# of here documents, and old seds have small limits too (100 cmds).
15320
26711
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15321
 
echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
26712
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15322
26713
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15323
26714
echo '  :' >>$CONFIG_STATUS
15324
26715
rm -f conftest.tail
15327
26718
  # Write a limited-size here document to $tmp/defines.sed.
15328
26719
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15329
26720
  # Speed up: don't consider the non `#define' lines.
15330
 
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
26721
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
15331
26722
  # Work around the forget-to-reset-the-flag bug.
15332
26723
  echo 't clr' >>$CONFIG_STATUS
15333
26724
  echo ': clr' >>$CONFIG_STATUS
15342
26733
  mv conftest.tail conftest.defines
15343
26734
done
15344
26735
rm -f conftest.defines
15345
 
echo '  fi # egrep' >>$CONFIG_STATUS
 
26736
echo '  fi # grep' >>$CONFIG_STATUS
15346
26737
echo >>$CONFIG_STATUS
15347
26738
 
15348
26739
# Break up conftest.undefs because some shells have a limit on the size
15354
26745
  # Write a limited-size here document to $tmp/undefs.sed.
15355
26746
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15356
26747
  # Speed up: don't consider the non `#undef'
15357
 
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
26748
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
15358
26749
  # Work around the forget-to-reset-the-flag bug.
15359
26750
  echo 't clr' >>$CONFIG_STATUS
15360
26751
  echo ': clr' >>$CONFIG_STATUS
15370
26761
done
15371
26762
rm -f conftest.undefs
15372
26763
 
15373
 
cat >>$CONFIG_STATUS <<\EOF
 
26764
cat >>$CONFIG_STATUS <<\_ACEOF
15374
26765
  # Let's still pretend it is `configure' which instantiates (i.e., don't
15375
26766
  # use $as_me), people would be surprised to read:
15376
 
  #    /* config.h.  Generated automatically by config.status.  */
 
26767
  #    /* config.h.  Generated by config.status.  */
15377
26768
  if test x"$ac_file" = x-; then
15378
 
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
 
26769
    echo "/* Generated by configure.  */" >$tmp/config.h
15379
26770
  else
15380
 
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
 
26771
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
15381
26772
  fi
15382
26773
  cat $tmp/in >>$tmp/config.h
15383
26774
  rm -f $tmp/in
15384
26775
  if test x"$ac_file" != x-; then
15385
 
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
15386
 
      { echo "$as_me:15386: $ac_file is unchanged" >&5
 
26776
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
26777
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15387
26778
echo "$as_me: $ac_file is unchanged" >&6;}
15388
26779
    else
15389
 
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15390
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
15391
 
         X"$ac_file" : 'X\(//\)$' \| \
15392
 
         X"$ac_file" : 'X\(/\)' \| \
15393
 
         .     : '\(.\)' 2>/dev/null ||
 
26780
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
26781
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
26782
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
26783
         X"$ac_file" : 'X\(//\)$' \| \
 
26784
         X"$ac_file" : 'X\(/\)' \| \
 
26785
         .     : '\(.\)' 2>/dev/null ||
15394
26786
echo X"$ac_file" |
15395
26787
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15396
26788
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15397
26789
          /^X\(\/\/\)$/{ s//\1/; q; }
15398
26790
          /^X\(\/\).*/{ s//\1/; q; }
15399
26791
          s/.*/./; q'`
15400
 
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15401
 
        { case "$ac_dir" in
15402
 
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15403
 
  *)                      as_incr_dir=.;;
15404
 
esac
15405
 
as_dummy="$ac_dir"
15406
 
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15407
 
  case $as_mkdir_dir in
15408
 
    # Skip DOS drivespec
15409
 
    ?:) as_incr_dir=$as_mkdir_dir ;;
15410
 
    *)
15411
 
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
15412
 
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
15413
 
    ;;
15414
 
  esac
15415
 
done; }
 
26792
      { if $as_mkdir_p; then
 
26793
    mkdir -p "$ac_dir"
 
26794
  else
 
26795
    as_dir="$ac_dir"
 
26796
    as_dirs=
 
26797
    while test ! -d "$as_dir"; do
 
26798
      as_dirs="$as_dir $as_dirs"
 
26799
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
26800
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
26801
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
26802
         X"$as_dir" : 'X\(//\)$' \| \
 
26803
         X"$as_dir" : 'X\(/\)' \| \
 
26804
         .     : '\(.\)' 2>/dev/null ||
 
26805
echo X"$as_dir" |
 
26806
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
26807
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
26808
          /^X\(\/\/\)$/{ s//\1/; q; }
 
26809
          /^X\(\/\).*/{ s//\1/; q; }
 
26810
          s/.*/./; q'`
 
26811
    done
 
26812
    test ! -n "$as_dirs" || mkdir $as_dirs
 
26813
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
26814
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
26815
   { (exit 1); exit 1; }; }; }
15416
26816
 
15417
 
      fi
15418
26817
      rm -f $ac_file
15419
26818
      mv $tmp/config.h $ac_file
15420
26819
    fi
15422
26821
    cat $tmp/config.h
15423
26822
    rm -f $tmp/config.h
15424
26823
  fi
15425
 
done
15426
 
EOF
15427
 
cat >>$CONFIG_STATUS <<\EOF
 
26824
# Compute $ac_file's index in $config_headers.
 
26825
_am_stamp_count=1
 
26826
for _am_header in $config_headers :; do
 
26827
  case $_am_header in
 
26828
    $ac_file | $ac_file:* )
 
26829
      break ;;
 
26830
    * )
 
26831
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
26832
  esac
 
26833
done
 
26834
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
26835
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
26836
         X$ac_file : 'X\(//\)[^/]' \| \
 
26837
         X$ac_file : 'X\(//\)$' \| \
 
26838
         X$ac_file : 'X\(/\)' \| \
 
26839
         .     : '\(.\)' 2>/dev/null ||
 
26840
echo X$ac_file |
 
26841
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
26842
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
26843
          /^X\(\/\/\)$/{ s//\1/; q; }
 
26844
          /^X\(\/\).*/{ s//\1/; q; }
 
26845
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
26846
done
 
26847
_ACEOF
 
26848
cat >>$CONFIG_STATUS <<\_ACEOF
15428
26849
 
15429
26850
#
15430
26851
# CONFIG_COMMANDS section.
15432
26853
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15433
26854
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15434
26855
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15435
 
 
 
26856
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
26857
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
26858
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
26859
         X"$ac_dest" : 'X\(//\)$' \| \
 
26860
         X"$ac_dest" : 'X\(/\)' \| \
 
26861
         .     : '\(.\)' 2>/dev/null ||
 
26862
echo X"$ac_dest" |
 
26863
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
26864
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
26865
          /^X\(\/\/\)$/{ s//\1/; q; }
 
26866
          /^X\(\/\).*/{ s//\1/; q; }
 
26867
          s/.*/./; q'`
 
26868
  { if $as_mkdir_p; then
 
26869
    mkdir -p "$ac_dir"
 
26870
  else
 
26871
    as_dir="$ac_dir"
 
26872
    as_dirs=
 
26873
    while test ! -d "$as_dir"; do
 
26874
      as_dirs="$as_dir $as_dirs"
 
26875
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
26876
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
26877
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
26878
         X"$as_dir" : 'X\(//\)$' \| \
 
26879
         X"$as_dir" : 'X\(/\)' \| \
 
26880
         .     : '\(.\)' 2>/dev/null ||
 
26881
echo X"$as_dir" |
 
26882
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
26883
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
26884
          /^X\(\/\/\)$/{ s//\1/; q; }
 
26885
          /^X\(\/\).*/{ s//\1/; q; }
 
26886
          s/.*/./; q'`
 
26887
    done
 
26888
    test ! -n "$as_dirs" || mkdir $as_dirs
 
26889
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
26890
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
26891
   { (exit 1); exit 1; }; }; }
 
26892
 
 
26893
  ac_builddir=.
 
26894
 
 
26895
if test "$ac_dir" != .; then
 
26896
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
26897
  # A "../" for each directory in $ac_dir_suffix.
 
26898
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
26899
else
 
26900
  ac_dir_suffix= ac_top_builddir=
 
26901
fi
 
26902
 
 
26903
case $srcdir in
 
26904
  .)  # No --srcdir option.  We are building in place.
 
26905
    ac_srcdir=.
 
26906
    if test -z "$ac_top_builddir"; then
 
26907
       ac_top_srcdir=.
 
26908
    else
 
26909
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
26910
    fi ;;
 
26911
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
26912
    ac_srcdir=$srcdir$ac_dir_suffix;
 
26913
    ac_top_srcdir=$srcdir ;;
 
26914
  *) # Relative path.
 
26915
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
26916
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
26917
esac
 
26918
 
 
26919
# Do not use `cd foo && pwd` to compute absolute paths, because
 
26920
# the directories may not exist.
 
26921
case `pwd` in
 
26922
.) ac_abs_builddir="$ac_dir";;
 
26923
*)
 
26924
  case "$ac_dir" in
 
26925
  .) ac_abs_builddir=`pwd`;;
 
26926
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
26927
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
26928
  esac;;
 
26929
esac
 
26930
case $ac_abs_builddir in
 
26931
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
26932
*)
 
26933
  case ${ac_top_builddir}. in
 
26934
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
26935
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
26936
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
26937
  esac;;
 
26938
esac
 
26939
case $ac_abs_builddir in
 
26940
.) ac_abs_srcdir=$ac_srcdir;;
 
26941
*)
 
26942
  case $ac_srcdir in
 
26943
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
26944
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
26945
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
26946
  esac;;
 
26947
esac
 
26948
case $ac_abs_builddir in
 
26949
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
26950
*)
 
26951
  case $ac_top_srcdir in
 
26952
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
26953
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
26954
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
26955
  esac;;
 
26956
esac
 
26957
 
 
26958
 
 
26959
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
26960
echo "$as_me: executing $ac_dest commands" >&6;}
15436
26961
  case $ac_dest in
15437
 
    default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp >      stamp-h ;;
15438
 
    default-2 )
15439
 
test x"$AMDEP" != x"" ||
15440
 
for mf in $CONFIG_FILES; do
15441
 
  case "$mf" in
15442
 
  Makefile) dirpart=.;;
15443
 
  */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
15444
 
  *) continue;;
15445
 
  esac
 
26962
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
26963
  # Strip MF so we end up with the name of the file.
 
26964
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
26965
  # Check whether this is an Automake generated Makefile or not.
 
26966
  # We used to match only the files named `Makefile.in', but
 
26967
  # some people rename them; so instead we look at the file content.
 
26968
  # Grep'ing the first line is not enough: some people post-process
 
26969
  # each Makefile.in and add a new line on top of each file to say so.
 
26970
  # So let's grep whole file.
 
26971
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
26972
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
26973
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
26974
         X"$mf" : 'X\(//\)[^/]' \| \
 
26975
         X"$mf" : 'X\(//\)$' \| \
 
26976
         X"$mf" : 'X\(/\)' \| \
 
26977
         .     : '\(.\)' 2>/dev/null ||
 
26978
echo X"$mf" |
 
26979
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
26980
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
26981
          /^X\(\/\/\)$/{ s//\1/; q; }
 
26982
          /^X\(\/\).*/{ s//\1/; q; }
 
26983
          s/.*/./; q'`
 
26984
  else
 
26985
    continue
 
26986
  fi
15446
26987
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
15447
26988
  # Extract the definition of DEP_FILES from the Makefile without
15448
26989
  # running `make'.
15467
27008
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15468
27009
    # Make sure the directory exists.
15469
27010
    test -f "$dirpart/$file" && continue
15470
 
    fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
15471
 
    $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
 
27011
    fdir=`(dirname "$file") 2>/dev/null ||
 
27012
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
27013
         X"$file" : 'X\(//\)[^/]' \| \
 
27014
         X"$file" : 'X\(//\)$' \| \
 
27015
         X"$file" : 'X\(/\)' \| \
 
27016
         .     : '\(.\)' 2>/dev/null ||
 
27017
echo X"$file" |
 
27018
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
27019
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
27020
          /^X\(\/\/\)$/{ s//\1/; q; }
 
27021
          /^X\(\/\).*/{ s//\1/; q; }
 
27022
          s/.*/./; q'`
 
27023
    { if $as_mkdir_p; then
 
27024
    mkdir -p $dirpart/$fdir
 
27025
  else
 
27026
    as_dir=$dirpart/$fdir
 
27027
    as_dirs=
 
27028
    while test ! -d "$as_dir"; do
 
27029
      as_dirs="$as_dir $as_dirs"
 
27030
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
27031
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
27032
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
27033
         X"$as_dir" : 'X\(//\)$' \| \
 
27034
         X"$as_dir" : 'X\(/\)' \| \
 
27035
         .     : '\(.\)' 2>/dev/null ||
 
27036
echo X"$as_dir" |
 
27037
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
27038
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
27039
          /^X\(\/\/\)$/{ s//\1/; q; }
 
27040
          /^X\(\/\).*/{ s//\1/; q; }
 
27041
          s/.*/./; q'`
 
27042
    done
 
27043
    test ! -n "$as_dirs" || mkdir $as_dirs
 
27044
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
27045
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
27046
   { (exit 1); exit 1; }; }; }
 
27047
 
15472
27048
    # echo "creating $dirpart/$file"
15473
27049
    echo '# dummy' > "$dirpart/$file"
15474
27050
  done
15475
27051
done
15476
27052
 ;;
15477
 
    default ) chmod +x scripts/calc_tickadj scripts/checktime scripts/freq_adj scripts/mkver scripts/ntp-wait scripts/ntpsweep scripts/ntpver scripts/plot_summary scripts/summary ;;
15478
27053
  esac
15479
27054
done
15480
 
EOF
 
27055
_ACEOF
15481
27056
 
15482
 
cat >>$CONFIG_STATUS <<\EOF
 
27057
cat >>$CONFIG_STATUS <<\_ACEOF
15483
27058
 
15484
27059
{ (exit 0); exit 0; }
15485
 
EOF
 
27060
_ACEOF
15486
27061
chmod +x $CONFIG_STATUS
15487
27062
ac_clean_files=$ac_clean_files_save
15488
27063
 
 
27064
 
15489
27065
# configure is writing to config.log, and then calls config.status.
15490
27066
# config.status does its own redirection, appending to config.log.
15491
27067
# Unfortunately, on DOS this fails, as config.log is still kept open
15496
27072
# need to make the FD available again.
15497
27073
if test "$no_create" != yes; then
15498
27074
  ac_cs_success=:
 
27075
  ac_config_status_args=
 
27076
  test "$silent" = yes &&
 
27077
    ac_config_status_args="$ac_config_status_args --quiet"
15499
27078
  exec 5>/dev/null
15500
 
  $SHELL $CONFIG_STATUS || ac_cs_success=false
 
27079
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15501
27080
  exec 5>>config.log
15502
27081
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15503
27082
  # would make configure fail if this is the last instruction.
15504
27083
  $ac_cs_success || { (exit 1); exit 1; }
15505
27084
fi
15506
27085
 
15507
 
#test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h])
 
27086
#
 
27087
# CONFIG_SUBDIRS section.
 
27088
#
 
27089
if test "$no_recursion" != yes; then
 
27090
 
 
27091
  # Remove --cache-file and --srcdir arguments so they do not pile up.
 
27092
  ac_sub_configure_args=
 
27093
  ac_prev=
 
27094
  for ac_arg in $ac_configure_args; do
 
27095
    if test -n "$ac_prev"; then
 
27096
      ac_prev=
 
27097
      continue
 
27098
    fi
 
27099
    case $ac_arg in
 
27100
    -cache-file | --cache-file | --cache-fil | --cache-fi \
 
27101
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
27102
      ac_prev=cache_file ;;
 
27103
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
27104
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
 
27105
    | --c=*)
 
27106
      ;;
 
27107
    --config-cache | -C)
 
27108
      ;;
 
27109
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
27110
      ac_prev=srcdir ;;
 
27111
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
27112
      ;;
 
27113
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
27114
      ac_prev=prefix ;;
 
27115
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
27116
      ;;
 
27117
    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
 
27118
    esac
 
27119
  done
 
27120
 
 
27121
  # Always prepend --prefix to ensure using the same prefix
 
27122
  # in subdir configurations.
 
27123
  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
 
27124
 
 
27125
  ac_popdir=`pwd`
 
27126
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
 
27127
 
 
27128
    # Do not complain, so a configure script can configure whichever
 
27129
    # parts of a large source tree are present.
 
27130
    test -d $srcdir/$ac_dir || continue
 
27131
 
 
27132
    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
 
27133
echo "$as_me: configuring in $ac_dir" >&6;}
 
27134
    { if $as_mkdir_p; then
 
27135
    mkdir -p "$ac_dir"
 
27136
  else
 
27137
    as_dir="$ac_dir"
 
27138
    as_dirs=
 
27139
    while test ! -d "$as_dir"; do
 
27140
      as_dirs="$as_dir $as_dirs"
 
27141
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
27142
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
27143
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
27144
         X"$as_dir" : 'X\(//\)$' \| \
 
27145
         X"$as_dir" : 'X\(/\)' \| \
 
27146
         .     : '\(.\)' 2>/dev/null ||
 
27147
echo X"$as_dir" |
 
27148
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
27149
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
27150
          /^X\(\/\/\)$/{ s//\1/; q; }
 
27151
          /^X\(\/\).*/{ s//\1/; q; }
 
27152
          s/.*/./; q'`
 
27153
    done
 
27154
    test ! -n "$as_dirs" || mkdir $as_dirs
 
27155
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
27156
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
27157
   { (exit 1); exit 1; }; }; }
 
27158
 
 
27159
    ac_builddir=.
 
27160
 
 
27161
if test "$ac_dir" != .; then
 
27162
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
27163
  # A "../" for each directory in $ac_dir_suffix.
 
27164
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
27165
else
 
27166
  ac_dir_suffix= ac_top_builddir=
 
27167
fi
 
27168
 
 
27169
case $srcdir in
 
27170
  .)  # No --srcdir option.  We are building in place.
 
27171
    ac_srcdir=.
 
27172
    if test -z "$ac_top_builddir"; then
 
27173
       ac_top_srcdir=.
 
27174
    else
 
27175
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
27176
    fi ;;
 
27177
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
27178
    ac_srcdir=$srcdir$ac_dir_suffix;
 
27179
    ac_top_srcdir=$srcdir ;;
 
27180
  *) # Relative path.
 
27181
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
27182
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
27183
esac
 
27184
 
 
27185
# Do not use `cd foo && pwd` to compute absolute paths, because
 
27186
# the directories may not exist.
 
27187
case `pwd` in
 
27188
.) ac_abs_builddir="$ac_dir";;
 
27189
*)
 
27190
  case "$ac_dir" in
 
27191
  .) ac_abs_builddir=`pwd`;;
 
27192
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
27193
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
27194
  esac;;
 
27195
esac
 
27196
case $ac_abs_builddir in
 
27197
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
27198
*)
 
27199
  case ${ac_top_builddir}. in
 
27200
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
27201
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
27202
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
27203
  esac;;
 
27204
esac
 
27205
case $ac_abs_builddir in
 
27206
.) ac_abs_srcdir=$ac_srcdir;;
 
27207
*)
 
27208
  case $ac_srcdir in
 
27209
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
27210
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
27211
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
27212
  esac;;
 
27213
esac
 
27214
case $ac_abs_builddir in
 
27215
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
27216
*)
 
27217
  case $ac_top_srcdir in
 
27218
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
27219
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
27220
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
27221
  esac;;
 
27222
esac
 
27223
 
 
27224
 
 
27225
    cd $ac_dir
 
27226
 
 
27227
    # Check for guested configure; otherwise get Cygnus style configure.
 
27228
    if test -f $ac_srcdir/configure.gnu; then
 
27229
      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
 
27230
    elif test -f $ac_srcdir/configure; then
 
27231
      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
 
27232
    elif test -f $ac_srcdir/configure.in; then
 
27233
      ac_sub_configure=$ac_configure
 
27234
    else
 
27235
      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
 
27236
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
 
27237
      ac_sub_configure=
 
27238
    fi
 
27239
 
 
27240
    # The recursion is here.
 
27241
    if test -n "$ac_sub_configure"; then
 
27242
      # Make the cache file name correct relative to the subdirectory.
 
27243
      case $cache_file in
 
27244
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
 
27245
      *) # Relative path.
 
27246
        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
 
27247
      esac
 
27248
 
 
27249
      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
 
27250
echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
 
27251
      # The eval makes quoting arguments work.
 
27252
      eval $ac_sub_configure $ac_sub_configure_args \
 
27253
           --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
 
27254
        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
 
27255
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
 
27256
   { (exit 1); exit 1; }; }
 
27257
    fi
 
27258
 
 
27259
    cd "$ac_popdir"
 
27260
  done
 
27261
fi
 
27262