1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ntp 4.2.8p15.
4#
5# Report bugs to <http://bugs.ntp.org./>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://bugs.ntp.org./ about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='ntp'
592PACKAGE_TARNAME='ntp'
593PACKAGE_VERSION='4.2.8p15'
594PACKAGE_STRING='ntp 4.2.8p15'
595PACKAGE_BUGREPORT='http://bugs.ntp.org./'
596PACKAGE_URL='http://www.ntp.org./'
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_header_list=
635enable_option_checking=no
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639subdirs
640PERLLIBDIR
641NTP_KEYSDIR
642BUILD_TEST_NTP_SIGND_FALSE
643BUILD_TEST_NTP_SIGND_TRUE
644BUILD_TEST_NTP_SCANNER_FALSE
645BUILD_TEST_NTP_SCANNER_TRUE
646BUILD_TEST_NTP_RESTRICT_FALSE
647BUILD_TEST_NTP_RESTRICT_TRUE
648GTEST_AVAILABLE_FALSE
649GTEST_AVAILABLE_TRUE
650GTEST_CPPFLAGS
651GTEST_CXXFLAGS
652GTEST_LIBS
653GTEST_LDFLAGS
654GTEST_CONFIG
655UNITYBUILD_AVAILABLE_FALSE
656UNITYBUILD_AVAILABLE_TRUE
657PATH_RUBY
658HAVE_LEAPSMEARINTERVAL
659SAVECONFIG_ENABLED_FALSE
660SAVECONFIG_ENABLED_TRUE
661LSCF
662MAKE_NTPSNMPD
663SNMP_CFLAGS
664SNMP_CPPFLAGS
665SNMP_LIBS
666BUILD_SNTP_FALSE
667BUILD_SNTP_TRUE
668SNTP
669MAKE_NTPDSIM
670MAKE_LIBNTPSIM
671MAKE_TIMETRIM
672MAKE_TICKADJ
673MAKE_NTPTIME
674MAKE_ADJTIMED
675CHUTEST
676PROPDELAY
677MAKE_PARSEKMODULE
678DCFD
679TESTDCF
680MAKE_CHECK_LAYOUT
681VER_SUFFIX
682MAKE_CHECK_Y2K
683MAKE_LIBPARSE_KERNEL
684MAKE_LIBPARSE
685LIBPARSE
686HAVE_RLIMIT_STACK
687HAVE_RLIMIT_MEMLOCK
688LDADD_NLIST
689PATH_NET_SNMP_CONFIG
690CONFIG_SHELL
691PATH_TEST
692PATH_PERL
693LIBOBJS
694PTHREADS_FALSE
695PTHREADS_TRUE
696LIBISC_PTHREADS_NOTHREADS
697PTHREAD_LIBS
698LTHREAD_LIBS
699BUILD_THREAD
700HAVE_INLINE
701LDADD_LIBUTIL
702ALLOCA
703LIBM
704EDITLINE_LIBS
705LDADD_LIBNTP
706NTP_CROSSCOMPILE_FALSE
707NTP_CROSSCOMPILE_TRUE
708BUILD_LIBEVENT_FALSE
709BUILD_LIBEVENT_TRUE
710LDADD_LIBEVENT
711CPPFLAGS_LIBEVENT
712CFLAGS_LIBEVENT
713PKG_CONFIG
714LIBOPTS_DIR
715LIBOPTS_CFLAGS
716LIBOPTS_LDADD
717NEED_LIBOPTS_FALSE
718NEED_LIBOPTS_TRUE
719INSTALL_LIBOPTS_FALSE
720INSTALL_LIBOPTS_TRUE
721POSIX_SHELL
722GL_GENERATE_STDNORETURN_H_FALSE
723GL_GENERATE_STDNORETURN_H_TRUE
724STDNORETURN_H
725LIBTOOL_DEPS
726LT_SYS_LIBRARY_PATH
727OTOOL64
728OTOOL
729LIPO
730NMEDIT
731DSYMUTIL
732MANIFEST_TOOL
733RANLIB
734DLLTOOL
735OBJDUMP
736LN_S
737NM
738ac_ct_DUMPBIN
739DUMPBIN
740LD
741FGREP
742SED
743LIBTOOL
744ac_ct_AR
745AR
746INSTALL_UPDATE_LEAP_FALSE
747INSTALL_UPDATE_LEAP_TRUE
748UPDATE_LEAP_NI
749UPDATE_LEAP_MS
750UPDATE_LEAP_DS
751UPDATE_LEAP_DL
752UPDATE_LEAP_DB
753TIMETRIM_NI
754TIMETRIM_MS
755TIMETRIM_DS
756TIMETRIM_DL
757TIMETRIM_DB
758TICKADJ_NI
759TICKADJ_MS
760TICKADJ_DS
761TICKADJ_DL
762TICKADJ_DB
763SNTP_NI
764SNTP_MS
765SNTP_DS
766SNTP_DL
767SNTP_DB
768NTP_WAIT_NI
769NTP_WAIT_MS
770NTP_WAIT_DS
771NTP_WAIT_DL
772NTP_WAIT_DB
773NTP_KEYGEN_NI
774NTP_KEYGEN_MS
775NTP_KEYGEN_DS
776NTP_KEYGEN_DL
777NTP_KEYGEN_DB
778NTPTRACE_NI
779NTPTRACE_MS
780NTPTRACE_DS
781NTPTRACE_DL
782NTPTRACE_DB
783NTPTIME_NI
784NTPTIME_MS
785NTPTIME_DS
786NTPTIME_DL
787NTPTIME_DB
788INSTALL_NTPSWEEP_FALSE
789INSTALL_NTPSWEEP_TRUE
790NTPSWEEP_NI
791NTPSWEEP_MS
792NTPSWEEP_DS
793NTPSWEEP_DL
794NTPSWEEP_DB
795NTPSNMPD_NI
796NTPSNMPD_MS
797NTPSNMPD_DS
798NTPSNMPD_DL
799NTPSNMPD_DB
800NTPQ_NI
801NTPQ_MS
802NTPQ_DS
803NTPQ_DL
804NTPQ_DB
805NTPD_NI
806NTPD_MS
807NTPD_DS
808NTPD_DL
809NTPD_DB
810NTPDSIM_NI
811NTPDSIM_MS
812NTPDSIM_DS
813NTPDSIM_DL
814NTPDSIM_DB
815NTPDC_NI
816NTPDC_MS
817NTPDC_DS
818NTPDC_DL
819NTPDC_DB
820NTPDATE_NI
821NTPDATE_MS
822NTPDATE_DS
823NTPDATE_DL
824NTPDATE_DB
825MANTAGFMT
826CALC_TICKADJ_NI
827CALC_TICKADJ_MS
828CALC_TICKADJ_DS
829CALC_TICKADJ_DL
830CALC_TICKADJ_DB
831WANT_CALC_TICKADJ_MS_FALSE
832WANT_CALC_TICKADJ_MS_TRUE
833VPATH_HACK_FALSE
834VPATH_HACK_TRUE
835NTP_HARD_LDFLAGS
836NTP_HARD_CPPFLAGS
837NTP_HARD_CFLAGS
838YFLAGS
839YACC
840LDFLAGS_NTP
841LDADD_NTP
842CPPFLAGS_NTP
843CFLAGS_NTP
844EGREP
845GREP
846CPP
847am__fastdepCC_FALSE
848am__fastdepCC_TRUE
849CCDEPMODE
850am__nodep
851AMDEPBACKSLASH
852AMDEP_FALSE
853AMDEP_TRUE
854am__quote
855am__include
856DEPDIR
857OBJEXT
858EXEEXT
859ac_ct_CC
860CPPFLAGS
861LDFLAGS
862CFLAGS
863CC
864host_os
865host_vendor
866host_cpu
867host
868build_os
869build_vendor
870build_cpu
871build
872AM_BACKSLASH
873AM_DEFAULT_VERBOSITY
874AM_DEFAULT_V
875AM_V
876am__untar
877am__tar
878AMTAR
879am__leading_dot
880SET_MAKE
881AWK
882mkdir_p
883MKDIR_P
884INSTALL_STRIP_PROGRAM
885STRIP
886install_sh
887MAKEINFO
888AUTOHEADER
889AUTOMAKE
890AUTOCONF
891ACLOCAL
892VERSION
893PACKAGE
894CYGPATH_W
895am__isrc
896INSTALL_DATA
897INSTALL_SCRIPT
898INSTALL_PROGRAM
899target_alias
900host_alias
901build_alias
902LIBS
903ECHO_T
904ECHO_N
905ECHO_C
906DEFS
907mandir
908localedir
909libdir
910psdir
911pdfdir
912dvidir
913htmldir
914infodir
915docdir
916oldincludedir
917includedir
918localstatedir
919sharedstatedir
920sysconfdir
921datadir
922datarootdir
923libexecdir
924sbindir
925bindir
926program_transform_name
927prefix
928exec_prefix
929PACKAGE_URL
930PACKAGE_BUGREPORT
931PACKAGE_STRING
932PACKAGE_VERSION
933PACKAGE_TARNAME
934PACKAGE_NAME
935PATH_SEPARATOR
936SHELL'
937ac_subst_files='calc_tickadj_opts
938ntp_wait_opts
939ntpsweep_opts
940ntptrace_opts
941summary_opts
942plot_summary_opts'
943ac_user_opts='
944enable_option_checking
945enable_silent_rules
946enable_dependency_tracking
947with_hardenfile
948with_locfile
949enable_shared
950enable_static
951with_pic
952enable_fast_install
953with_aix_soname
954with_gnu_ld
955with_sysroot
956enable_libtool_lock
957enable_nls
958enable_local_libopts
959enable_libopts_install
960with_autoopts_config
961enable_local_libevent
962with_lineeditlibs
963enable_debugging
964enable_thread_support
965with_threads
966with_yielding_select
967enable_c99_snprintf
968enable_clockctl
969enable_linuxcaps
970enable_solarisprivs
971enable_trustedbsd_mac
972enable_signalled_io
973with_arlib
974with_net_snmp_config
975enable_libseccomp
976with_stack_limit
977with_memlock
978enable_debug_timing
979enable_dst_minutes
980enable_ignore_dns_errors
981enable_BANCOMM
982enable_GPSVME
983enable_all_clocks
984enable_ACTS
985enable_ARBITER
986enable_ARCRON_MSF
987enable_AS2201
988enable_ATOM
989enable_CHRONOLOG
990enable_CHU
991enable_AUDIO_CHU
992enable_DATUM
993enable_DUMBCLOCK
994enable_FG
995enable_HEATH
996enable_HOPFSERIAL
997enable_HOPFPCI
998enable_HPGPS
999enable_IRIG
1000enable_JJY
1001enable_JUPITER
1002enable_LEITCH
1003enable_LOCAL_CLOCK
1004enable_MX4200
1005enable_NEOCLOCK4X
1006enable_NMEA
1007enable_GPSD
1008enable_ONCORE
1009enable_PALISADE
1010enable_PCF
1011enable_PST
1012enable_RIPENCC
1013enable_SHM
1014enable_SPECTRACOM
1015enable_TPRO
1016enable_TRUETIME
1017enable_TT560
1018enable_ULINK
1019enable_TSYNCPCI
1020enable_WWV
1021enable_ZYFER
1022enable_parse_clocks
1023enable_COMPUTIME
1024enable_DCF7000
1025enable_HOPF6021
1026enable_MEINBERG
1027enable_RAWDCF
1028enable_RCC8000
1029enable_SCHMID
1030enable_TRIMTAIP
1031enable_TRIMTSIP
1032enable_WHARTON
1033enable_VARITEXT
1034enable_SEL240X
1035with_crypto
1036with_openssl_libdir
1037with_openssl_incdir
1038with_rpath
1039enable_openssl_random
1040enable_autokey
1041enable_kmem
1042enable_accurate_adjtime
1043enable_tick
1044enable_tickadj
1045enable_simulator
1046with_sntp
1047with_ntpsnmpd
1048enable_slew_always
1049enable_step_slew
1050enable_ntpdate_step
1051enable_hourly_todr_sync
1052enable_kernel_fll_bug
1053enable_bug1243_fix
1054enable_bug3020_fix
1055enable_bug3527_fix
1056enable_irig_sawtooth
1057enable_nist
1058enable_ntp_signd
1059enable_ipv6
1060with_kame
1061enable_getifaddrs
1062enable_saveconfig
1063enable_leap_smear
1064enable_dynamic_interleave
1065with_gtest
1066enable_problem_tests
1067'
1068      ac_precious_vars='build_alias
1069host_alias
1070target_alias
1071CC
1072CFLAGS
1073LDFLAGS
1074LIBS
1075CPPFLAGS
1076CPP
1077YACC
1078YFLAGS
1079LT_SYS_LIBRARY_PATH'
1080ac_subdirs_all='sntp'
1081
1082# Initialize some variables set by options.
1083ac_init_help=
1084ac_init_version=false
1085ac_unrecognized_opts=
1086ac_unrecognized_sep=
1087# The variables have the same names as the options, with
1088# dashes changed to underlines.
1089cache_file=/dev/null
1090exec_prefix=NONE
1091no_create=
1092no_recursion=
1093prefix=NONE
1094program_prefix=NONE
1095program_suffix=NONE
1096program_transform_name=s,x,x,
1097silent=
1098site=
1099srcdir=
1100verbose=
1101x_includes=NONE
1102x_libraries=NONE
1103
1104# Installation directory options.
1105# These are left unexpanded so users can "make install exec_prefix=/foo"
1106# and all the variables that are supposed to be based on exec_prefix
1107# by default will actually change.
1108# Use braces instead of parens because sh, perl, etc. also accept them.
1109# (The list follows the same order as the GNU Coding Standards.)
1110bindir='${exec_prefix}/bin'
1111sbindir='${exec_prefix}/sbin'
1112libexecdir='${exec_prefix}/libexec'
1113datarootdir='${prefix}/share'
1114datadir='${datarootdir}'
1115sysconfdir='${prefix}/etc'
1116sharedstatedir='${prefix}/com'
1117localstatedir='${prefix}/var'
1118includedir='${prefix}/include'
1119oldincludedir='/usr/include'
1120docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1121infodir='${datarootdir}/info'
1122htmldir='${docdir}'
1123dvidir='${docdir}'
1124pdfdir='${docdir}'
1125psdir='${docdir}'
1126libdir='${exec_prefix}/lib'
1127localedir='${datarootdir}/locale'
1128mandir='${datarootdir}/man'
1129
1130ac_prev=
1131ac_dashdash=
1132for ac_option
1133do
1134  # If the previous option needs an argument, assign it.
1135  if test -n "$ac_prev"; then
1136    eval $ac_prev=\$ac_option
1137    ac_prev=
1138    continue
1139  fi
1140
1141  case $ac_option in
1142  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1143  *=)   ac_optarg= ;;
1144  *)    ac_optarg=yes ;;
1145  esac
1146
1147  # Accept the important Cygnus configure options, so we can diagnose typos.
1148
1149  case $ac_dashdash$ac_option in
1150  --)
1151    ac_dashdash=yes ;;
1152
1153  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1154    ac_prev=bindir ;;
1155  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1156    bindir=$ac_optarg ;;
1157
1158  -build | --build | --buil | --bui | --bu)
1159    ac_prev=build_alias ;;
1160  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1161    build_alias=$ac_optarg ;;
1162
1163  -cache-file | --cache-file | --cache-fil | --cache-fi \
1164  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1165    ac_prev=cache_file ;;
1166  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1167  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1168    cache_file=$ac_optarg ;;
1169
1170  --config-cache | -C)
1171    cache_file=config.cache ;;
1172
1173  -datadir | --datadir | --datadi | --datad)
1174    ac_prev=datadir ;;
1175  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1176    datadir=$ac_optarg ;;
1177
1178  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1179  | --dataroo | --dataro | --datar)
1180    ac_prev=datarootdir ;;
1181  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1182  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1183    datarootdir=$ac_optarg ;;
1184
1185  -disable-* | --disable-*)
1186    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1187    # Reject names that are not valid shell variable names.
1188    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189      as_fn_error $? "invalid feature name: $ac_useropt"
1190    ac_useropt_orig=$ac_useropt
1191    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192    case $ac_user_opts in
1193      *"
1194"enable_$ac_useropt"
1195"*) ;;
1196      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1197	 ac_unrecognized_sep=', ';;
1198    esac
1199    eval enable_$ac_useropt=no ;;
1200
1201  -docdir | --docdir | --docdi | --doc | --do)
1202    ac_prev=docdir ;;
1203  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1204    docdir=$ac_optarg ;;
1205
1206  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1207    ac_prev=dvidir ;;
1208  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1209    dvidir=$ac_optarg ;;
1210
1211  -enable-* | --enable-*)
1212    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1213    # Reject names that are not valid shell variable names.
1214    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215      as_fn_error $? "invalid feature name: $ac_useropt"
1216    ac_useropt_orig=$ac_useropt
1217    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218    case $ac_user_opts in
1219      *"
1220"enable_$ac_useropt"
1221"*) ;;
1222      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1223	 ac_unrecognized_sep=', ';;
1224    esac
1225    eval enable_$ac_useropt=\$ac_optarg ;;
1226
1227  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1228  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1229  | --exec | --exe | --ex)
1230    ac_prev=exec_prefix ;;
1231  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1232  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1233  | --exec=* | --exe=* | --ex=*)
1234    exec_prefix=$ac_optarg ;;
1235
1236  -gas | --gas | --ga | --g)
1237    # Obsolete; use --with-gas.
1238    with_gas=yes ;;
1239
1240  -help | --help | --hel | --he | -h)
1241    ac_init_help=long ;;
1242  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1243    ac_init_help=recursive ;;
1244  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1245    ac_init_help=short ;;
1246
1247  -host | --host | --hos | --ho)
1248    ac_prev=host_alias ;;
1249  -host=* | --host=* | --hos=* | --ho=*)
1250    host_alias=$ac_optarg ;;
1251
1252  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1253    ac_prev=htmldir ;;
1254  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1255  | --ht=*)
1256    htmldir=$ac_optarg ;;
1257
1258  -includedir | --includedir | --includedi | --included | --include \
1259  | --includ | --inclu | --incl | --inc)
1260    ac_prev=includedir ;;
1261  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1262  | --includ=* | --inclu=* | --incl=* | --inc=*)
1263    includedir=$ac_optarg ;;
1264
1265  -infodir | --infodir | --infodi | --infod | --info | --inf)
1266    ac_prev=infodir ;;
1267  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1268    infodir=$ac_optarg ;;
1269
1270  -libdir | --libdir | --libdi | --libd)
1271    ac_prev=libdir ;;
1272  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1273    libdir=$ac_optarg ;;
1274
1275  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1276  | --libexe | --libex | --libe)
1277    ac_prev=libexecdir ;;
1278  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1279  | --libexe=* | --libex=* | --libe=*)
1280    libexecdir=$ac_optarg ;;
1281
1282  -localedir | --localedir | --localedi | --localed | --locale)
1283    ac_prev=localedir ;;
1284  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1285    localedir=$ac_optarg ;;
1286
1287  -localstatedir | --localstatedir | --localstatedi | --localstated \
1288  | --localstate | --localstat | --localsta | --localst | --locals)
1289    ac_prev=localstatedir ;;
1290  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1291  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1292    localstatedir=$ac_optarg ;;
1293
1294  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1295    ac_prev=mandir ;;
1296  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1297    mandir=$ac_optarg ;;
1298
1299  -nfp | --nfp | --nf)
1300    # Obsolete; use --without-fp.
1301    with_fp=no ;;
1302
1303  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1304  | --no-cr | --no-c | -n)
1305    no_create=yes ;;
1306
1307  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1308  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1309    no_recursion=yes ;;
1310
1311  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1312  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1313  | --oldin | --oldi | --old | --ol | --o)
1314    ac_prev=oldincludedir ;;
1315  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1316  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1317  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1318    oldincludedir=$ac_optarg ;;
1319
1320  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1321    ac_prev=prefix ;;
1322  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1323    prefix=$ac_optarg ;;
1324
1325  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1326  | --program-pre | --program-pr | --program-p)
1327    ac_prev=program_prefix ;;
1328  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1329  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1330    program_prefix=$ac_optarg ;;
1331
1332  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1333  | --program-suf | --program-su | --program-s)
1334    ac_prev=program_suffix ;;
1335  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1336  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1337    program_suffix=$ac_optarg ;;
1338
1339  -program-transform-name | --program-transform-name \
1340  | --program-transform-nam | --program-transform-na \
1341  | --program-transform-n | --program-transform- \
1342  | --program-transform | --program-transfor \
1343  | --program-transfo | --program-transf \
1344  | --program-trans | --program-tran \
1345  | --progr-tra | --program-tr | --program-t)
1346    ac_prev=program_transform_name ;;
1347  -program-transform-name=* | --program-transform-name=* \
1348  | --program-transform-nam=* | --program-transform-na=* \
1349  | --program-transform-n=* | --program-transform-=* \
1350  | --program-transform=* | --program-transfor=* \
1351  | --program-transfo=* | --program-transf=* \
1352  | --program-trans=* | --program-tran=* \
1353  | --progr-tra=* | --program-tr=* | --program-t=*)
1354    program_transform_name=$ac_optarg ;;
1355
1356  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1357    ac_prev=pdfdir ;;
1358  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1359    pdfdir=$ac_optarg ;;
1360
1361  -psdir | --psdir | --psdi | --psd | --ps)
1362    ac_prev=psdir ;;
1363  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1364    psdir=$ac_optarg ;;
1365
1366  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1367  | -silent | --silent | --silen | --sile | --sil)
1368    silent=yes ;;
1369
1370  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1371    ac_prev=sbindir ;;
1372  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1373  | --sbi=* | --sb=*)
1374    sbindir=$ac_optarg ;;
1375
1376  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1377  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1378  | --sharedst | --shareds | --shared | --share | --shar \
1379  | --sha | --sh)
1380    ac_prev=sharedstatedir ;;
1381  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1382  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1383  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1384  | --sha=* | --sh=*)
1385    sharedstatedir=$ac_optarg ;;
1386
1387  -site | --site | --sit)
1388    ac_prev=site ;;
1389  -site=* | --site=* | --sit=*)
1390    site=$ac_optarg ;;
1391
1392  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1393    ac_prev=srcdir ;;
1394  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1395    srcdir=$ac_optarg ;;
1396
1397  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1398  | --syscon | --sysco | --sysc | --sys | --sy)
1399    ac_prev=sysconfdir ;;
1400  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1401  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1402    sysconfdir=$ac_optarg ;;
1403
1404  -target | --target | --targe | --targ | --tar | --ta | --t)
1405    ac_prev=target_alias ;;
1406  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1407    target_alias=$ac_optarg ;;
1408
1409  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1410    verbose=yes ;;
1411
1412  -version | --version | --versio | --versi | --vers | -V)
1413    ac_init_version=: ;;
1414
1415  -with-* | --with-*)
1416    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1417    # Reject names that are not valid shell variable names.
1418    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1419      as_fn_error $? "invalid package name: $ac_useropt"
1420    ac_useropt_orig=$ac_useropt
1421    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1422    case $ac_user_opts in
1423      *"
1424"with_$ac_useropt"
1425"*) ;;
1426      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1427	 ac_unrecognized_sep=', ';;
1428    esac
1429    eval with_$ac_useropt=\$ac_optarg ;;
1430
1431  -without-* | --without-*)
1432    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1433    # Reject names that are not valid shell variable names.
1434    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1435      as_fn_error $? "invalid package name: $ac_useropt"
1436    ac_useropt_orig=$ac_useropt
1437    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1438    case $ac_user_opts in
1439      *"
1440"with_$ac_useropt"
1441"*) ;;
1442      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1443	 ac_unrecognized_sep=', ';;
1444    esac
1445    eval with_$ac_useropt=no ;;
1446
1447  --x)
1448    # Obsolete; use --with-x.
1449    with_x=yes ;;
1450
1451  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1452  | --x-incl | --x-inc | --x-in | --x-i)
1453    ac_prev=x_includes ;;
1454  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1455  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1456    x_includes=$ac_optarg ;;
1457
1458  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1459  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1460    ac_prev=x_libraries ;;
1461  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1462  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1463    x_libraries=$ac_optarg ;;
1464
1465  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1466Try \`$0 --help' for more information"
1467    ;;
1468
1469  *=*)
1470    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1471    # Reject names that are not valid shell variable names.
1472    case $ac_envvar in #(
1473      '' | [0-9]* | *[!_$as_cr_alnum]* )
1474      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1475    esac
1476    eval $ac_envvar=\$ac_optarg
1477    export $ac_envvar ;;
1478
1479  *)
1480    # FIXME: should be removed in autoconf 3.0.
1481    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1482    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1483      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1484    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1485    ;;
1486
1487  esac
1488done
1489
1490if test -n "$ac_prev"; then
1491  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1492  as_fn_error $? "missing argument to $ac_option"
1493fi
1494
1495if test -n "$ac_unrecognized_opts"; then
1496  case $enable_option_checking in
1497    no) ;;
1498    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1499    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1500  esac
1501fi
1502
1503# Check all directory arguments for consistency.
1504for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1505		datadir sysconfdir sharedstatedir localstatedir includedir \
1506		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1507		libdir localedir mandir
1508do
1509  eval ac_val=\$$ac_var
1510  # Remove trailing slashes.
1511  case $ac_val in
1512    */ )
1513      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1514      eval $ac_var=\$ac_val;;
1515  esac
1516  # Be sure to have absolute directory names.
1517  case $ac_val in
1518    [\\/$]* | ?:[\\/]* )  continue;;
1519    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1520  esac
1521  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1522done
1523
1524# There might be people who depend on the old broken behavior: `$host'
1525# used to hold the argument of --host etc.
1526# FIXME: To remove some day.
1527build=$build_alias
1528host=$host_alias
1529target=$target_alias
1530
1531# FIXME: To remove some day.
1532if test "x$host_alias" != x; then
1533  if test "x$build_alias" = x; then
1534    cross_compiling=maybe
1535  elif test "x$build_alias" != "x$host_alias"; then
1536    cross_compiling=yes
1537  fi
1538fi
1539
1540ac_tool_prefix=
1541test -n "$host_alias" && ac_tool_prefix=$host_alias-
1542
1543test "$silent" = yes && exec 6>/dev/null
1544
1545
1546ac_pwd=`pwd` && test -n "$ac_pwd" &&
1547ac_ls_di=`ls -di .` &&
1548ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1549  as_fn_error $? "working directory cannot be determined"
1550test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1551  as_fn_error $? "pwd does not report name of working directory"
1552
1553
1554# Find the source files, if location was not specified.
1555if test -z "$srcdir"; then
1556  ac_srcdir_defaulted=yes
1557  # Try the directory containing this script, then the parent directory.
1558  ac_confdir=`$as_dirname -- "$as_myself" ||
1559$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1560	 X"$as_myself" : 'X\(//\)[^/]' \| \
1561	 X"$as_myself" : 'X\(//\)$' \| \
1562	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1563$as_echo X"$as_myself" |
1564    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1565	    s//\1/
1566	    q
1567	  }
1568	  /^X\(\/\/\)[^/].*/{
1569	    s//\1/
1570	    q
1571	  }
1572	  /^X\(\/\/\)$/{
1573	    s//\1/
1574	    q
1575	  }
1576	  /^X\(\/\).*/{
1577	    s//\1/
1578	    q
1579	  }
1580	  s/.*/./; q'`
1581  srcdir=$ac_confdir
1582  if test ! -r "$srcdir/$ac_unique_file"; then
1583    srcdir=..
1584  fi
1585else
1586  ac_srcdir_defaulted=no
1587fi
1588if test ! -r "$srcdir/$ac_unique_file"; then
1589  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1590  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1591fi
1592ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1593ac_abs_confdir=`(
1594	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1595	pwd)`
1596# When building in place, set srcdir=.
1597if test "$ac_abs_confdir" = "$ac_pwd"; then
1598  srcdir=.
1599fi
1600# Remove unnecessary trailing slashes from srcdir.
1601# Double slashes in file names in object file debugging info
1602# mess up M-x gdb in Emacs.
1603case $srcdir in
1604*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1605esac
1606for ac_var in $ac_precious_vars; do
1607  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1608  eval ac_env_${ac_var}_value=\$${ac_var}
1609  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1610  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1611done
1612
1613#
1614# Report the --help message.
1615#
1616if test "$ac_init_help" = "long"; then
1617  # Omit some internal or obsolete options to make the list less imposing.
1618  # This message is too long to be a string in the A/UX 3.1 sh.
1619  cat <<_ACEOF
1620\`configure' configures ntp 4.2.8p15 to adapt to many kinds of systems.
1621
1622Usage: $0 [OPTION]... [VAR=VALUE]...
1623
1624To assign environment variables (e.g., CC, CFLAGS...), specify them as
1625VAR=VALUE.  See below for descriptions of some of the useful variables.
1626
1627Defaults for the options are specified in brackets.
1628
1629Configuration:
1630  -h, --help              display this help and exit
1631      --help=short        display options specific to this package
1632      --help=recursive    display the short help of all the included packages
1633  -V, --version           display version information and exit
1634  -q, --quiet, --silent   do not print \`checking ...' messages
1635      --cache-file=FILE   cache test results in FILE [disabled]
1636  -C, --config-cache      alias for \`--cache-file=config.cache'
1637  -n, --no-create         do not create output files
1638      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1639
1640Installation directories:
1641  --prefix=PREFIX         install architecture-independent files in PREFIX
1642                          [$ac_default_prefix]
1643  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1644                          [PREFIX]
1645
1646By default, \`make install' will install all the files in
1647\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1648an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1649for instance \`--prefix=\$HOME'.
1650
1651For better control, use the options below.
1652
1653Fine tuning of the installation directories:
1654  --bindir=DIR            user executables [EPREFIX/bin]
1655  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1656  --libexecdir=DIR        program executables [EPREFIX/libexec]
1657  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1658  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1659  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1660  --libdir=DIR            object code libraries [EPREFIX/lib]
1661  --includedir=DIR        C header files [PREFIX/include]
1662  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1663  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1664  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1665  --infodir=DIR           info documentation [DATAROOTDIR/info]
1666  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1667  --mandir=DIR            man documentation [DATAROOTDIR/man]
1668  --docdir=DIR            documentation root [DATAROOTDIR/doc/ntp]
1669  --htmldir=DIR           html documentation [DOCDIR]
1670  --dvidir=DIR            dvi documentation [DOCDIR]
1671  --pdfdir=DIR            pdf documentation [DOCDIR]
1672  --psdir=DIR             ps documentation [DOCDIR]
1673_ACEOF
1674
1675  cat <<\_ACEOF
1676
1677Program names:
1678  --program-prefix=PREFIX            prepend PREFIX to installed program names
1679  --program-suffix=SUFFIX            append SUFFIX to installed program names
1680  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1681
1682System types:
1683  --build=BUILD     configure for building on BUILD [guessed]
1684  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1685_ACEOF
1686fi
1687
1688if test -n "$ac_init_help"; then
1689  case $ac_init_help in
1690     short | recursive ) echo "Configuration of ntp 4.2.8p15:";;
1691   esac
1692  cat <<\_ACEOF
1693
1694Optional Features and Packages:
1695  --disable-option-checking  ignore unrecognized --enable/--with options
1696  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1697  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1698  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1699  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1700  --enable-silent-rules   less verbose build output (undo: "make V=1")
1701  --disable-silent-rules  verbose build output (undo: "make V=0")
1702  --enable-dependency-tracking
1703                          do not reject slow dependency extractors
1704  --disable-dependency-tracking
1705                          speeds up one-time build
1706  --with-hardenfile=XXX   os-specific or "/dev/null"
1707  --with-locfile=XXX      os-specific or "legacy"
1708  --enable-shared[=PKGS]  build shared libraries [default=no]
1709  --enable-static[=PKGS]  build static libraries [default=yes]
1710  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1711                          both]
1712  --enable-fast-install[=PKGS]
1713                          optimize for fast installation [default=yes]
1714  --with-aix-soname=aix|svr4|both
1715                          shared library versioning (aka "SONAME") variant to
1716                          provide on AIX, [default=aix].
1717  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1718  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1719                          compiler's sysroot if not specified).
1720  --disable-libtool-lock  avoid locking (might break parallel builds)
1721  --disable-nls           disable nls support in libopts
1722  --enable-local-libopts  Use the supplied libopts tearoff code
1723  --enable-libopts-install
1724                          Install libopts with client installation
1725  --with-autoopts-config  specify the config-info script
1726  --enable-local-libevent Force using the supplied libevent tearoff code
1727  --with-lineeditlibs     edit,editline (readline may be specified if desired)
1728  defaults:               + yes, - no, s system-specific
1729  --enable-debugging      + include ntpd debugging code
1730  --enable-thread-support s use threads (+ if available)
1731  --with-threads	  with threads [auto]
1732  --with-yielding-select  with yielding select [auto]
1733  --enable-c99-snprintf   s force replacement
1734  --enable-clockctl       s Use /dev/clockctl for non-root clock control
1735  --enable-linuxcaps      + Use Linux capabilities for non-root clock control
1736  --enable-solarisprivs   + Use Solaris privileges for non-root clock control
1737  --enable-trustedbsd-mac s Use TrustedBSD MAC policy for non-root clock
1738                          control
1739  --enable-signalled-io   s Use signalled IO if we can
1740  --with-arlib            - deprecated, arlib not distributed
1741  --with-net-snmp-config  + =net-snmp-config
1742  --enable-libseccomp     EXPERIMENTAL: enable support for libseccomp
1743                          sandboxing (default is no)
1744  --with-stack-limit      ? =50 (200 for openbsd) 4k pages
1745  --with-memlock          ? =32 (-1 on linux) megabytes
1746  --enable-debug-timing   - include processing time debugging code (costs
1747                          performance)
1748  --enable-dst-minutes    =60 minutes per DST adjustment
1749  --enable-ignore-dns-errors
1750                          - retry DNS queries on any error
1751  --enable-BANCOMM        - Datum/Bancomm bc635/VME interface
1752  --enable-GPSVME         - TrueTime GPS receiver/VME interface
1753  --enable-all-clocks     + include all suitable non-PARSE clocks:
1754  --enable-ACTS           s ACTS modem service
1755  --enable-ARBITER        + Arbiter 1088A/B GPS receiver
1756  --enable-ARCRON-MSF     + Arcron MSF receiver
1757  --enable-AS2201         + Austron 2200A/2201A GPS receiver
1758  --enable-ATOM           s ATOM PPS interface
1759  --enable-CHRONOLOG      + Chrono-log K-series WWVB receiver
1760  --enable-CHU            + CHU modem/decoder
1761  --enable-AUDIO-CHU      s CHU audio/decoder
1762  --enable-DATUM          s Datum Programmable Time System
1763  --enable-DUMBCLOCK      + Dumb generic hh:mm:ss local clock
1764  --enable-FG             + Forum Graphic GPS
1765  --enable-HEATH          s Heath GC-1000 WWV/WWVH receiver
1766  --enable-HOPFSERIAL     + hopf serial clock device
1767  --enable-HOPFPCI        + hopf 6039 PCI board
1768  --enable-HPGPS          + HP 58503A GPS receiver
1769  --enable-IRIG           s IRIG audio decoder
1770  --enable-JJY            + JJY receiver
1771  --enable-JUPITER        s Rockwell Jupiter GPS receiver
1772  --enable-LEITCH         + Leitch CSD 5300 Master Clock System Driver
1773  --enable-LOCAL-CLOCK    + local clock reference
1774  --enable-MX4200         s Magnavox MX4200 GPS receiver
1775  --enable-NEOCLOCK4X     + NeoClock4X DCF77 / TDF receiver
1776  --enable-NMEA           + NMEA GPS receiver
1777  --enable-GPSD           + GPSD JSON receiver
1778  --enable-ONCORE         s Motorola VP/UT Oncore GPS receiver
1779  --enable-PALISADE       s Palisade clock
1780  --enable-PCF            + Conrad parallel port radio clock
1781  --enable-PST            + PST/Traconex 1020 WWV/WWVH receiver
1782  --enable-RIPENCC        - RIPENCC specific Trimble driver
1783  --enable-SHM            s SHM clock attached thru shared memory
1784  --enable-SPECTRACOM     + Spectracom 8170/Netclock/2 WWVB receiver
1785  --enable-TPRO           s KSI/Odetics TPRO/S GPS receiver/IRIG interface
1786  --enable-TRUETIME       s Kinemetrics/TrueTime receivers
1787  --enable-TT560          - TrueTime 560 IRIG-B decoder
1788  --enable-ULINK          + Ultralink WWVB receiver
1789  --enable-TSYNCPCI       s Spectracom TSYNC timing board
1790  --enable-WWV            s WWV Audio receiver
1791  --enable-ZYFER          + Zyfer GPStarplus receiver
1792  --enable-parse-clocks   - include all suitable PARSE clocks:
1793  --enable-COMPUTIME      s Diem Computime Radio Clock
1794  --enable-DCF7000        s ELV/DCF7000 clock
1795  --enable-HOPF6021       s HOPF 6021 clock
1796  --enable-MEINBERG       s Meinberg clocks
1797  --enable-RAWDCF         s DCF77 raw time code
1798  --enable-RCC8000        s RCC 8000 clock
1799  --enable-SCHMID         s Schmid DCF77 clock
1800  --enable-TRIMTAIP       s Trimble GPS receiver/TAIP protocol
1801  --enable-TRIMTSIP       s Trimble GPS receiver/TSIP protocol
1802  --enable-WHARTON        s WHARTON 400A Series clock
1803  --enable-VARITEXT       s VARITEXT clock
1804  --enable-SEL240X        s SEL240X clock
1805  --with-crypto           + =openssl,libcrypto
1806
1807  --with-openssl-libdir   + =/something/reasonable
1808
1809  --with-openssl-incdir   + =/something/reasonable
1810
1811  --without-rpath         s Disable auto-added -R linker paths
1812
1813  --enable-openssl-random Use OpenSSL's crypto random number functions, if
1814                          available (default is yes)
1815  --enable-autokey        + support NTP Autokey protocol
1816  --enable-kmem           s read /dev/kmem for tick and/or tickadj
1817  --enable-accurate-adjtime
1818                          s the adjtime() call is accurate
1819  --enable-tick=VALUE     s force a value for 'tick'
1820  --enable-tickadj=VALUE  s force a value for 'tickadj'
1821  --enable-simulator      - build/install the NTPD simulator?
1822  --without-sntp          - disable building sntp and sntp/tests
1823  --with-ntpsnmpd         s Build ntpsnmpd MIB agent?
1824  --enable-slew-always    s always slew the time
1825  --enable-step-slew      s step and slew the time
1826  --enable-ntpdate-step   s if ntpdate should step the time
1827  --enable-hourly-todr-sync
1828                          s if we should sync TODR hourly
1829  --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
1830  --enable-bug1243-fix    + use unmodified autokey session keys
1831  --enable-bug3020-fix    + Provide the explicit 127.0.0.0/8 martian filter
1832  --enable-bug3527-fix    + provide correct mode7 fudgetime2 behavior
1833  --enable-irig-sawtooth  s if we should enable the IRIG sawtooth filter
1834  --enable-nist           - if we should enable the NIST lockclock scheme
1835  --enable-ntp-signd      - Provide support for Samba's signing daemon,
1836                          =/var/run/ntp_signd
1837  --enable-ipv6           s use IPv6?
1838
1839  --with-kame             - =/usr/local/v6
1840  --enable-getifaddrs     + Enable the use of getifaddrs() [[yes|no]].
1841  --enable-saveconfig     + saveconfig mechanism
1842  --enable-leap-smear     - experimental leap smear code
1843  --enable-dynamic-interleave
1844                          - dynamic interleave support
1845  --with-gtest            Use the gtest framework (Default: if it's available)
1846  --enable-problem-tests  + enable tests with undiagnosed problems
1847
1848Some influential environment variables:
1849  CC          C compiler command
1850  CFLAGS      C compiler flags
1851  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1852              nonstandard directory <lib dir>
1853  LIBS        libraries to pass to the linker, e.g. -l<library>
1854  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1855              you have headers in a nonstandard directory <include dir>
1856  CPP         C preprocessor
1857  YACC        The `Yet Another Compiler Compiler' implementation to use.
1858              Defaults to the first program found out of: `bison -y', `byacc',
1859              `yacc'.
1860  YFLAGS      The list of arguments that will be passed by default to $YACC.
1861              This script will default YFLAGS to the empty string to avoid a
1862              default value of `-d' given by some make applications.
1863  LT_SYS_LIBRARY_PATH
1864              User-defined run-time library search path.
1865
1866Use these variables to override the choices made by `configure' or to help
1867it to find libraries and programs with nonstandard names/locations.
1868
1869Report bugs to <http://bugs.ntp.org./>.
1870ntp home page: <http://www.ntp.org./>.
1871_ACEOF
1872ac_status=$?
1873fi
1874
1875if test "$ac_init_help" = "recursive"; then
1876  # If there are subdirs, report their specific --help.
1877  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1878    test -d "$ac_dir" ||
1879      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1880      continue
1881    ac_builddir=.
1882
1883case "$ac_dir" in
1884.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1885*)
1886  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1887  # A ".." for each directory in $ac_dir_suffix.
1888  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1889  case $ac_top_builddir_sub in
1890  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1891  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1892  esac ;;
1893esac
1894ac_abs_top_builddir=$ac_pwd
1895ac_abs_builddir=$ac_pwd$ac_dir_suffix
1896# for backward compatibility:
1897ac_top_builddir=$ac_top_build_prefix
1898
1899case $srcdir in
1900  .)  # We are building in place.
1901    ac_srcdir=.
1902    ac_top_srcdir=$ac_top_builddir_sub
1903    ac_abs_top_srcdir=$ac_pwd ;;
1904  [\\/]* | ?:[\\/]* )  # Absolute name.
1905    ac_srcdir=$srcdir$ac_dir_suffix;
1906    ac_top_srcdir=$srcdir
1907    ac_abs_top_srcdir=$srcdir ;;
1908  *) # Relative name.
1909    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1910    ac_top_srcdir=$ac_top_build_prefix$srcdir
1911    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1912esac
1913ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1914
1915    cd "$ac_dir" || { ac_status=$?; continue; }
1916    # Check for guested configure.
1917    if test -f "$ac_srcdir/configure.gnu"; then
1918      echo &&
1919      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1920    elif test -f "$ac_srcdir/configure"; then
1921      echo &&
1922      $SHELL "$ac_srcdir/configure" --help=recursive
1923    else
1924      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1925    fi || ac_status=$?
1926    cd "$ac_pwd" || { ac_status=$?; break; }
1927  done
1928fi
1929
1930test -n "$ac_init_help" && exit $ac_status
1931if $ac_init_version; then
1932  cat <<\_ACEOF
1933ntp configure 4.2.8p15
1934generated by GNU Autoconf 2.69
1935
1936Copyright (C) 2012 Free Software Foundation, Inc.
1937This configure script is free software; the Free Software Foundation
1938gives unlimited permission to copy, distribute and modify it.
1939_ACEOF
1940  exit
1941fi
1942
1943## ------------------------ ##
1944## Autoconf initialization. ##
1945## ------------------------ ##
1946
1947# ac_fn_c_try_compile LINENO
1948# --------------------------
1949# Try to compile conftest.$ac_ext, and return whether this succeeded.
1950ac_fn_c_try_compile ()
1951{
1952  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953  rm -f conftest.$ac_objext
1954  if { { ac_try="$ac_compile"
1955case "(($ac_try" in
1956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957  *) ac_try_echo=$ac_try;;
1958esac
1959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960$as_echo "$ac_try_echo"; } >&5
1961  (eval "$ac_compile") 2>conftest.err
1962  ac_status=$?
1963  if test -s conftest.err; then
1964    grep -v '^ *+' conftest.err >conftest.er1
1965    cat conftest.er1 >&5
1966    mv -f conftest.er1 conftest.err
1967  fi
1968  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969  test $ac_status = 0; } && {
1970	 test -z "$ac_c_werror_flag" ||
1971	 test ! -s conftest.err
1972       } && test -s conftest.$ac_objext; then :
1973  ac_retval=0
1974else
1975  $as_echo "$as_me: failed program was:" >&5
1976sed 's/^/| /' conftest.$ac_ext >&5
1977
1978	ac_retval=1
1979fi
1980  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981  as_fn_set_status $ac_retval
1982
1983} # ac_fn_c_try_compile
1984
1985# ac_fn_c_try_cpp LINENO
1986# ----------------------
1987# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1988ac_fn_c_try_cpp ()
1989{
1990  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991  if { { ac_try="$ac_cpp conftest.$ac_ext"
1992case "(($ac_try" in
1993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994  *) ac_try_echo=$ac_try;;
1995esac
1996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997$as_echo "$ac_try_echo"; } >&5
1998  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1999  ac_status=$?
2000  if test -s conftest.err; then
2001    grep -v '^ *+' conftest.err >conftest.er1
2002    cat conftest.er1 >&5
2003    mv -f conftest.er1 conftest.err
2004  fi
2005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006  test $ac_status = 0; } > conftest.i && {
2007	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2008	 test ! -s conftest.err
2009       }; then :
2010  ac_retval=0
2011else
2012  $as_echo "$as_me: failed program was:" >&5
2013sed 's/^/| /' conftest.$ac_ext >&5
2014
2015    ac_retval=1
2016fi
2017  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018  as_fn_set_status $ac_retval
2019
2020} # ac_fn_c_try_cpp
2021
2022# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2023# -------------------------------------------------------
2024# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2025# the include files in INCLUDES and setting the cache variable VAR
2026# accordingly.
2027ac_fn_c_check_header_mongrel ()
2028{
2029  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030  if eval \${$3+:} false; then :
2031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032$as_echo_n "checking for $2... " >&6; }
2033if eval \${$3+:} false; then :
2034  $as_echo_n "(cached) " >&6
2035fi
2036eval ac_res=\$$3
2037	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038$as_echo "$ac_res" >&6; }
2039else
2040  # Is the header compilable?
2041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2042$as_echo_n "checking $2 usability... " >&6; }
2043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044/* end confdefs.h.  */
2045$4
2046#include <$2>
2047_ACEOF
2048if ac_fn_c_try_compile "$LINENO"; then :
2049  ac_header_compiler=yes
2050else
2051  ac_header_compiler=no
2052fi
2053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2055$as_echo "$ac_header_compiler" >&6; }
2056
2057# Is the header present?
2058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2059$as_echo_n "checking $2 presence... " >&6; }
2060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061/* end confdefs.h.  */
2062#include <$2>
2063_ACEOF
2064if ac_fn_c_try_cpp "$LINENO"; then :
2065  ac_header_preproc=yes
2066else
2067  ac_header_preproc=no
2068fi
2069rm -f conftest.err conftest.i conftest.$ac_ext
2070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2071$as_echo "$ac_header_preproc" >&6; }
2072
2073# So?  What about this header?
2074case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2075  yes:no: )
2076    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2077$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2078    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2079$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2080    ;;
2081  no:yes:* )
2082    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2083$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2084    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2085$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2086    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2087$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2088    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2089$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2090    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2091$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2092( $as_echo "## ------------------------------------ ##
2093## Report this to http://bugs.ntp.org./ ##
2094## ------------------------------------ ##"
2095     ) | sed "s/^/$as_me: WARNING:     /" >&2
2096    ;;
2097esac
2098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2099$as_echo_n "checking for $2... " >&6; }
2100if eval \${$3+:} false; then :
2101  $as_echo_n "(cached) " >&6
2102else
2103  eval "$3=\$ac_header_compiler"
2104fi
2105eval ac_res=\$$3
2106	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107$as_echo "$ac_res" >&6; }
2108fi
2109  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110
2111} # ac_fn_c_check_header_mongrel
2112
2113# ac_fn_c_try_run LINENO
2114# ----------------------
2115# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2116# that executables *can* be run.
2117ac_fn_c_try_run ()
2118{
2119  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120  if { { ac_try="$ac_link"
2121case "(($ac_try" in
2122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123  *) ac_try_echo=$ac_try;;
2124esac
2125eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2126$as_echo "$ac_try_echo"; } >&5
2127  (eval "$ac_link") 2>&5
2128  ac_status=$?
2129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2130  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2131  { { case "(($ac_try" in
2132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133  *) ac_try_echo=$ac_try;;
2134esac
2135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2136$as_echo "$ac_try_echo"; } >&5
2137  (eval "$ac_try") 2>&5
2138  ac_status=$?
2139  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2140  test $ac_status = 0; }; }; then :
2141  ac_retval=0
2142else
2143  $as_echo "$as_me: program exited with status $ac_status" >&5
2144       $as_echo "$as_me: failed program was:" >&5
2145sed 's/^/| /' conftest.$ac_ext >&5
2146
2147       ac_retval=$ac_status
2148fi
2149  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2150  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151  as_fn_set_status $ac_retval
2152
2153} # ac_fn_c_try_run
2154
2155# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2156# -------------------------------------------------------
2157# Tests whether HEADER exists and can be compiled using the include files in
2158# INCLUDES, setting the cache variable VAR accordingly.
2159ac_fn_c_check_header_compile ()
2160{
2161  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2163$as_echo_n "checking for $2... " >&6; }
2164if eval \${$3+:} false; then :
2165  $as_echo_n "(cached) " >&6
2166else
2167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168/* end confdefs.h.  */
2169$4
2170#include <$2>
2171_ACEOF
2172if ac_fn_c_try_compile "$LINENO"; then :
2173  eval "$3=yes"
2174else
2175  eval "$3=no"
2176fi
2177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178fi
2179eval ac_res=\$$3
2180	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181$as_echo "$ac_res" >&6; }
2182  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183
2184} # ac_fn_c_check_header_compile
2185
2186# ac_fn_c_try_link LINENO
2187# -----------------------
2188# Try to link conftest.$ac_ext, and return whether this succeeded.
2189ac_fn_c_try_link ()
2190{
2191  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192  rm -f conftest.$ac_objext conftest$ac_exeext
2193  if { { ac_try="$ac_link"
2194case "(($ac_try" in
2195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2196  *) ac_try_echo=$ac_try;;
2197esac
2198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2199$as_echo "$ac_try_echo"; } >&5
2200  (eval "$ac_link") 2>conftest.err
2201  ac_status=$?
2202  if test -s conftest.err; then
2203    grep -v '^ *+' conftest.err >conftest.er1
2204    cat conftest.er1 >&5
2205    mv -f conftest.er1 conftest.err
2206  fi
2207  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208  test $ac_status = 0; } && {
2209	 test -z "$ac_c_werror_flag" ||
2210	 test ! -s conftest.err
2211       } && test -s conftest$ac_exeext && {
2212	 test "$cross_compiling" = yes ||
2213	 test -x conftest$ac_exeext
2214       }; then :
2215  ac_retval=0
2216else
2217  $as_echo "$as_me: failed program was:" >&5
2218sed 's/^/| /' conftest.$ac_ext >&5
2219
2220	ac_retval=1
2221fi
2222  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2223  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2224  # interfere with the next link command; also delete a directory that is
2225  # left behind by Apple's compiler.  We do this before executing the actions.
2226  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2227  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228  as_fn_set_status $ac_retval
2229
2230} # ac_fn_c_try_link
2231
2232# ac_fn_c_check_func LINENO FUNC VAR
2233# ----------------------------------
2234# Tests whether FUNC exists, setting the cache variable VAR accordingly
2235ac_fn_c_check_func ()
2236{
2237  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2239$as_echo_n "checking for $2... " >&6; }
2240if eval \${$3+:} false; then :
2241  $as_echo_n "(cached) " >&6
2242else
2243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244/* end confdefs.h.  */
2245/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2246   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2247#define $2 innocuous_$2
2248
2249/* System header to define __stub macros and hopefully few prototypes,
2250    which can conflict with char $2 (); below.
2251    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2252    <limits.h> exists even on freestanding compilers.  */
2253
2254#ifdef __STDC__
2255# include <limits.h>
2256#else
2257# include <assert.h>
2258#endif
2259
2260#undef $2
2261
2262/* Override any GCC internal prototype to avoid an error.
2263   Use char because int might match the return type of a GCC
2264   builtin and then its argument prototype would still apply.  */
2265#ifdef __cplusplus
2266extern "C"
2267#endif
2268char $2 ();
2269/* The GNU C library defines this for functions which it implements
2270    to always fail with ENOSYS.  Some functions are actually named
2271    something starting with __ and the normal name is an alias.  */
2272#if defined __stub_$2 || defined __stub___$2
2273choke me
2274#endif
2275
2276int
2277main ()
2278{
2279return $2 ();
2280  ;
2281  return 0;
2282}
2283_ACEOF
2284if ac_fn_c_try_link "$LINENO"; then :
2285  eval "$3=yes"
2286else
2287  eval "$3=no"
2288fi
2289rm -f core conftest.err conftest.$ac_objext \
2290    conftest$ac_exeext conftest.$ac_ext
2291fi
2292eval ac_res=\$$3
2293	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2294$as_echo "$ac_res" >&6; }
2295  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2296
2297} # ac_fn_c_check_func
2298
2299# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2300# -------------------------------------------
2301# Tests whether TYPE exists after having included INCLUDES, setting cache
2302# variable VAR accordingly.
2303ac_fn_c_check_type ()
2304{
2305  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2307$as_echo_n "checking for $2... " >&6; }
2308if eval \${$3+:} false; then :
2309  $as_echo_n "(cached) " >&6
2310else
2311  eval "$3=no"
2312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313/* end confdefs.h.  */
2314$4
2315int
2316main ()
2317{
2318if (sizeof ($2))
2319	 return 0;
2320  ;
2321  return 0;
2322}
2323_ACEOF
2324if ac_fn_c_try_compile "$LINENO"; then :
2325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326/* end confdefs.h.  */
2327$4
2328int
2329main ()
2330{
2331if (sizeof (($2)))
2332	    return 0;
2333  ;
2334  return 0;
2335}
2336_ACEOF
2337if ac_fn_c_try_compile "$LINENO"; then :
2338
2339else
2340  eval "$3=yes"
2341fi
2342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343fi
2344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345fi
2346eval ac_res=\$$3
2347	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2348$as_echo "$ac_res" >&6; }
2349  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2350
2351} # ac_fn_c_check_type
2352
2353# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2354# --------------------------------------------
2355# Tries to find the compile-time value of EXPR in a program that includes
2356# INCLUDES, setting VAR accordingly. Returns whether the value could be
2357# computed
2358ac_fn_c_compute_int ()
2359{
2360  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361  if test "$cross_compiling" = yes; then
2362    # Depending upon the size, compute the lo and hi bounds.
2363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364/* end confdefs.h.  */
2365$4
2366int
2367main ()
2368{
2369static int test_array [1 - 2 * !(($2) >= 0)];
2370test_array [0] = 0;
2371return test_array [0];
2372
2373  ;
2374  return 0;
2375}
2376_ACEOF
2377if ac_fn_c_try_compile "$LINENO"; then :
2378  ac_lo=0 ac_mid=0
2379  while :; do
2380    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381/* end confdefs.h.  */
2382$4
2383int
2384main ()
2385{
2386static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2387test_array [0] = 0;
2388return test_array [0];
2389
2390  ;
2391  return 0;
2392}
2393_ACEOF
2394if ac_fn_c_try_compile "$LINENO"; then :
2395  ac_hi=$ac_mid; break
2396else
2397  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2398			if test $ac_lo -le $ac_mid; then
2399			  ac_lo= ac_hi=
2400			  break
2401			fi
2402			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2403fi
2404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405  done
2406else
2407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408/* end confdefs.h.  */
2409$4
2410int
2411main ()
2412{
2413static int test_array [1 - 2 * !(($2) < 0)];
2414test_array [0] = 0;
2415return test_array [0];
2416
2417  ;
2418  return 0;
2419}
2420_ACEOF
2421if ac_fn_c_try_compile "$LINENO"; then :
2422  ac_hi=-1 ac_mid=-1
2423  while :; do
2424    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425/* end confdefs.h.  */
2426$4
2427int
2428main ()
2429{
2430static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2431test_array [0] = 0;
2432return test_array [0];
2433
2434  ;
2435  return 0;
2436}
2437_ACEOF
2438if ac_fn_c_try_compile "$LINENO"; then :
2439  ac_lo=$ac_mid; break
2440else
2441  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2442			if test $ac_mid -le $ac_hi; then
2443			  ac_lo= ac_hi=
2444			  break
2445			fi
2446			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2447fi
2448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449  done
2450else
2451  ac_lo= ac_hi=
2452fi
2453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454fi
2455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456# Binary search between lo and hi bounds.
2457while test "x$ac_lo" != "x$ac_hi"; do
2458  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460/* end confdefs.h.  */
2461$4
2462int
2463main ()
2464{
2465static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2466test_array [0] = 0;
2467return test_array [0];
2468
2469  ;
2470  return 0;
2471}
2472_ACEOF
2473if ac_fn_c_try_compile "$LINENO"; then :
2474  ac_hi=$ac_mid
2475else
2476  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2477fi
2478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2479done
2480case $ac_lo in #((
2481?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2482'') ac_retval=1 ;;
2483esac
2484  else
2485    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486/* end confdefs.h.  */
2487$4
2488static long int longval () { return $2; }
2489static unsigned long int ulongval () { return $2; }
2490#include <stdio.h>
2491#include <stdlib.h>
2492int
2493main ()
2494{
2495
2496  FILE *f = fopen ("conftest.val", "w");
2497  if (! f)
2498    return 1;
2499  if (($2) < 0)
2500    {
2501      long int i = longval ();
2502      if (i != ($2))
2503	return 1;
2504      fprintf (f, "%ld", i);
2505    }
2506  else
2507    {
2508      unsigned long int i = ulongval ();
2509      if (i != ($2))
2510	return 1;
2511      fprintf (f, "%lu", i);
2512    }
2513  /* Do not output a trailing newline, as this causes \r\n confusion
2514     on some platforms.  */
2515  return ferror (f) || fclose (f) != 0;
2516
2517  ;
2518  return 0;
2519}
2520_ACEOF
2521if ac_fn_c_try_run "$LINENO"; then :
2522  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2523else
2524  ac_retval=1
2525fi
2526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2527  conftest.$ac_objext conftest.beam conftest.$ac_ext
2528rm -f conftest.val
2529
2530  fi
2531  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2532  as_fn_set_status $ac_retval
2533
2534} # ac_fn_c_compute_int
2535
2536# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2537# ---------------------------------------------
2538# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2539# accordingly.
2540ac_fn_c_check_decl ()
2541{
2542  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543  as_decl_name=`echo $2|sed 's/ *(.*//'`
2544  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2546$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2547if eval \${$3+:} false; then :
2548  $as_echo_n "(cached) " >&6
2549else
2550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551/* end confdefs.h.  */
2552$4
2553int
2554main ()
2555{
2556#ifndef $as_decl_name
2557#ifdef __cplusplus
2558  (void) $as_decl_use;
2559#else
2560  (void) $as_decl_name;
2561#endif
2562#endif
2563
2564  ;
2565  return 0;
2566}
2567_ACEOF
2568if ac_fn_c_try_compile "$LINENO"; then :
2569  eval "$3=yes"
2570else
2571  eval "$3=no"
2572fi
2573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574fi
2575eval ac_res=\$$3
2576	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2577$as_echo "$ac_res" >&6; }
2578  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2579
2580} # ac_fn_c_check_decl
2581
2582# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2583# ----------------------------------------------------
2584# Tries to find if the field MEMBER exists in type AGGR, after including
2585# INCLUDES, setting cache variable VAR accordingly.
2586ac_fn_c_check_member ()
2587{
2588  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2589  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2590$as_echo_n "checking for $2.$3... " >&6; }
2591if eval \${$4+:} false; then :
2592  $as_echo_n "(cached) " >&6
2593else
2594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595/* end confdefs.h.  */
2596$5
2597int
2598main ()
2599{
2600static $2 ac_aggr;
2601if (ac_aggr.$3)
2602return 0;
2603  ;
2604  return 0;
2605}
2606_ACEOF
2607if ac_fn_c_try_compile "$LINENO"; then :
2608  eval "$4=yes"
2609else
2610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611/* end confdefs.h.  */
2612$5
2613int
2614main ()
2615{
2616static $2 ac_aggr;
2617if (sizeof ac_aggr.$3)
2618return 0;
2619  ;
2620  return 0;
2621}
2622_ACEOF
2623if ac_fn_c_try_compile "$LINENO"; then :
2624  eval "$4=yes"
2625else
2626  eval "$4=no"
2627fi
2628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2629fi
2630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631fi
2632eval ac_res=\$$4
2633	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2634$as_echo "$ac_res" >&6; }
2635  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2636
2637} # ac_fn_c_check_member
2638cat >config.log <<_ACEOF
2639This file contains any messages produced by compilers while
2640running configure, to aid debugging if configure makes a mistake.
2641
2642It was created by ntp $as_me 4.2.8p15, which was
2643generated by GNU Autoconf 2.69.  Invocation command line was
2644
2645  $ $0 $@
2646
2647_ACEOF
2648exec 5>>config.log
2649{
2650cat <<_ASUNAME
2651## --------- ##
2652## Platform. ##
2653## --------- ##
2654
2655hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2656uname -m = `(uname -m) 2>/dev/null || echo unknown`
2657uname -r = `(uname -r) 2>/dev/null || echo unknown`
2658uname -s = `(uname -s) 2>/dev/null || echo unknown`
2659uname -v = `(uname -v) 2>/dev/null || echo unknown`
2660
2661/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2662/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2663
2664/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2665/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2666/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2667/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2668/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2669/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2670/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2671
2672_ASUNAME
2673
2674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675for as_dir in $PATH
2676do
2677  IFS=$as_save_IFS
2678  test -z "$as_dir" && as_dir=.
2679    $as_echo "PATH: $as_dir"
2680  done
2681IFS=$as_save_IFS
2682
2683} >&5
2684
2685cat >&5 <<_ACEOF
2686
2687
2688## ----------- ##
2689## Core tests. ##
2690## ----------- ##
2691
2692_ACEOF
2693
2694
2695# Keep a trace of the command line.
2696# Strip out --no-create and --no-recursion so they do not pile up.
2697# Strip out --silent because we don't want to record it for future runs.
2698# Also quote any args containing shell meta-characters.
2699# Make two passes to allow for proper duplicate-argument suppression.
2700ac_configure_args=
2701ac_configure_args0=
2702ac_configure_args1=
2703ac_must_keep_next=false
2704for ac_pass in 1 2
2705do
2706  for ac_arg
2707  do
2708    case $ac_arg in
2709    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2710    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2711    | -silent | --silent | --silen | --sile | --sil)
2712      continue ;;
2713    *\'*)
2714      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2715    esac
2716    case $ac_pass in
2717    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2718    2)
2719      as_fn_append ac_configure_args1 " '$ac_arg'"
2720      if test $ac_must_keep_next = true; then
2721	ac_must_keep_next=false # Got value, back to normal.
2722      else
2723	case $ac_arg in
2724	  *=* | --config-cache | -C | -disable-* | --disable-* \
2725	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2726	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2727	  | -with-* | --with-* | -without-* | --without-* | --x)
2728	    case "$ac_configure_args0 " in
2729	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2730	    esac
2731	    ;;
2732	  -* ) ac_must_keep_next=true ;;
2733	esac
2734      fi
2735      as_fn_append ac_configure_args " '$ac_arg'"
2736      ;;
2737    esac
2738  done
2739done
2740{ ac_configure_args0=; unset ac_configure_args0;}
2741{ ac_configure_args1=; unset ac_configure_args1;}
2742
2743# When interrupted or exit'd, cleanup temporary files, and complete
2744# config.log.  We remove comments because anyway the quotes in there
2745# would cause problems or look ugly.
2746# WARNING: Use '\'' to represent an apostrophe within the trap.
2747# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2748trap 'exit_status=$?
2749  # Save into config.log some information that might help in debugging.
2750  {
2751    echo
2752
2753    $as_echo "## ---------------- ##
2754## Cache variables. ##
2755## ---------------- ##"
2756    echo
2757    # The following way of writing the cache mishandles newlines in values,
2758(
2759  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2760    eval ac_val=\$$ac_var
2761    case $ac_val in #(
2762    *${as_nl}*)
2763      case $ac_var in #(
2764      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2765$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2766      esac
2767      case $ac_var in #(
2768      _ | IFS | as_nl) ;; #(
2769      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2770      *) { eval $ac_var=; unset $ac_var;} ;;
2771      esac ;;
2772    esac
2773  done
2774  (set) 2>&1 |
2775    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2776    *${as_nl}ac_space=\ *)
2777      sed -n \
2778	"s/'\''/'\''\\\\'\'''\''/g;
2779	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2780      ;; #(
2781    *)
2782      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2783      ;;
2784    esac |
2785    sort
2786)
2787    echo
2788
2789    $as_echo "## ----------------- ##
2790## Output variables. ##
2791## ----------------- ##"
2792    echo
2793    for ac_var in $ac_subst_vars
2794    do
2795      eval ac_val=\$$ac_var
2796      case $ac_val in
2797      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2798      esac
2799      $as_echo "$ac_var='\''$ac_val'\''"
2800    done | sort
2801    echo
2802
2803    if test -n "$ac_subst_files"; then
2804      $as_echo "## ------------------- ##
2805## File substitutions. ##
2806## ------------------- ##"
2807      echo
2808      for ac_var in $ac_subst_files
2809      do
2810	eval ac_val=\$$ac_var
2811	case $ac_val in
2812	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2813	esac
2814	$as_echo "$ac_var='\''$ac_val'\''"
2815      done | sort
2816      echo
2817    fi
2818
2819    if test -s confdefs.h; then
2820      $as_echo "## ----------- ##
2821## confdefs.h. ##
2822## ----------- ##"
2823      echo
2824      cat confdefs.h
2825      echo
2826    fi
2827    test "$ac_signal" != 0 &&
2828      $as_echo "$as_me: caught signal $ac_signal"
2829    $as_echo "$as_me: exit $exit_status"
2830  } >&5
2831  rm -f core *.core core.conftest.* &&
2832    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2833    exit $exit_status
2834' 0
2835for ac_signal in 1 2 13 15; do
2836  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2837done
2838ac_signal=0
2839
2840# confdefs.h avoids OS command line length limits that DEFS can exceed.
2841rm -f -r conftest* confdefs.h
2842
2843$as_echo "/* confdefs.h */" > confdefs.h
2844
2845# Predefined preprocessor variables.
2846
2847cat >>confdefs.h <<_ACEOF
2848#define PACKAGE_NAME "$PACKAGE_NAME"
2849_ACEOF
2850
2851cat >>confdefs.h <<_ACEOF
2852#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2853_ACEOF
2854
2855cat >>confdefs.h <<_ACEOF
2856#define PACKAGE_VERSION "$PACKAGE_VERSION"
2857_ACEOF
2858
2859cat >>confdefs.h <<_ACEOF
2860#define PACKAGE_STRING "$PACKAGE_STRING"
2861_ACEOF
2862
2863cat >>confdefs.h <<_ACEOF
2864#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2865_ACEOF
2866
2867cat >>confdefs.h <<_ACEOF
2868#define PACKAGE_URL "$PACKAGE_URL"
2869_ACEOF
2870
2871
2872# Let the site file select an alternate cache file if it wants to.
2873# Prefer an explicitly selected file to automatically selected ones.
2874ac_site_file1=NONE
2875ac_site_file2=NONE
2876if test -n "$CONFIG_SITE"; then
2877  # We do not want a PATH search for config.site.
2878  case $CONFIG_SITE in #((
2879    -*)  ac_site_file1=./$CONFIG_SITE;;
2880    */*) ac_site_file1=$CONFIG_SITE;;
2881    *)   ac_site_file1=./$CONFIG_SITE;;
2882  esac
2883elif test "x$prefix" != xNONE; then
2884  ac_site_file1=$prefix/share/config.site
2885  ac_site_file2=$prefix/etc/config.site
2886else
2887  ac_site_file1=$ac_default_prefix/share/config.site
2888  ac_site_file2=$ac_default_prefix/etc/config.site
2889fi
2890for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2891do
2892  test "x$ac_site_file" = xNONE && continue
2893  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2894    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2895$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2896    sed 's/^/| /' "$ac_site_file" >&5
2897    . "$ac_site_file" \
2898      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2900as_fn_error $? "failed to load site script $ac_site_file
2901See \`config.log' for more details" "$LINENO" 5; }
2902  fi
2903done
2904
2905if test -r "$cache_file"; then
2906  # Some versions of bash will fail to source /dev/null (special files
2907  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2908  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2909    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2910$as_echo "$as_me: loading cache $cache_file" >&6;}
2911    case $cache_file in
2912      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2913      *)                      . "./$cache_file";;
2914    esac
2915  fi
2916else
2917  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2918$as_echo "$as_me: creating cache $cache_file" >&6;}
2919  >$cache_file
2920fi
2921
2922as_fn_append ac_header_list " stdarg.h"
2923# Check that the precious variables saved in the cache have kept the same
2924# value.
2925ac_cache_corrupted=false
2926for ac_var in $ac_precious_vars; do
2927  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2928  eval ac_new_set=\$ac_env_${ac_var}_set
2929  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2930  eval ac_new_val=\$ac_env_${ac_var}_value
2931  case $ac_old_set,$ac_new_set in
2932    set,)
2933      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2934$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2935      ac_cache_corrupted=: ;;
2936    ,set)
2937      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2938$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2939      ac_cache_corrupted=: ;;
2940    ,);;
2941    *)
2942      if test "x$ac_old_val" != "x$ac_new_val"; then
2943	# differences in whitespace do not lead to failure.
2944	ac_old_val_w=`echo x $ac_old_val`
2945	ac_new_val_w=`echo x $ac_new_val`
2946	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2947	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2948$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2949	  ac_cache_corrupted=:
2950	else
2951	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2952$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2953	  eval $ac_var=\$ac_old_val
2954	fi
2955	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2956$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2957	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2958$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2959      fi;;
2960  esac
2961  # Pass precious variables to config.status.
2962  if test "$ac_new_set" = set; then
2963    case $ac_new_val in
2964    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2965    *) ac_arg=$ac_var=$ac_new_val ;;
2966    esac
2967    case " $ac_configure_args " in
2968      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2969      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2970    esac
2971  fi
2972done
2973if $ac_cache_corrupted; then
2974  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2977$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2978  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2979fi
2980## -------------------- ##
2981## Main body of script. ##
2982## -------------------- ##
2983
2984ac_ext=c
2985ac_cpp='$CPP $CPPFLAGS'
2986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989
2990
2991
2992ac_aux_dir=
2993for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
2994  if test -f "$ac_dir/install-sh"; then
2995    ac_aux_dir=$ac_dir
2996    ac_install_sh="$ac_aux_dir/install-sh -c"
2997    break
2998  elif test -f "$ac_dir/install.sh"; then
2999    ac_aux_dir=$ac_dir
3000    ac_install_sh="$ac_aux_dir/install.sh -c"
3001    break
3002  elif test -f "$ac_dir/shtool"; then
3003    ac_aux_dir=$ac_dir
3004    ac_install_sh="$ac_aux_dir/shtool install -c"
3005    break
3006  fi
3007done
3008if test -z "$ac_aux_dir"; then
3009  as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
3010fi
3011
3012# These three variables are undocumented and unsupported,
3013# and are intended to be withdrawn in a future Autoconf release.
3014# They can cause serious problems if a builder's source tree is in a directory
3015# whose full name contains unusual characters.
3016ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3017ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3018ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3019
3020
3021ac_ext=c
3022ac_cpp='$CPP $CPPFLAGS'
3023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026
3027
3028
3029
3030
3031
3032# Bump ntp_configure_cache_version for each change to configure.ac or
3033# .m4 files which invalidates cached values from previous configure
3034# runs.
3035#
3036# If the change affects cache variables used only by the main NTP
3037# configure.ac, then only its version number should be bumped, while
3038# the subdir configure.ac version numbers should be unchanged.  The
3039# same is true for a test/variable that is used only by one subdir
3040# being changed incompatibly; only that subdir's cache version needs
3041# bumping.
3042#
3043# If a change affects variables shared by all NTP configure scripts,
3044# please bump the version numbers of each.  If you are not sure, the
3045# safe choice is to bump all on any cache-invalidating change.
3046#
3047# In order to avoid the risk of version stamp collision between -stable
3048# and -dev branches, do not simply increment the version, instead use
3049# the date YYYYMMDD optionally with -HHMM if there is more than one
3050# bump in a day.
3051
3052ntp_configure_cache_version=20120806
3053
3054# When the cache version of config.cache and configure do not
3055# match, NTP_CACHEVERSION will flush the cache.
3056
3057
3058
3059    ntp_cache_flush=1
3060
3061    case "$ntp_cv_main_cache_version" in
3062     $ntp_configure_cache_version)
3063	# same version, good
3064	ntp_cache_flush=0
3065	;;
3066     '')
3067	# No cache, predates ntp_cv_main_cache_version, or is empty.
3068	case "$cache_file" in
3069	 /dev/null)
3070	    ntp_cache_flush=0
3071	    ;;
3072	 *)
3073	    case "$NTP_CACHEVERSION_PARENT" in
3074	     '')
3075		# Do not clear the cache immediately after it is created
3076		# empty as it is noisy.  Differentiate a newly-created
3077		# config.cache from one predating the cache version
3078		# mechanism by looking for the first cached variable set
3079		# by Autoconf
3080		case "$ac_cv_path_install" in
3081		 '')
3082		    # empty config.cache file
3083		    ntp_cache_flush=0
3084		esac
3085		;;
3086	     *)
3087		# Parent configure just created cache from empty,
3088		# flushing would be counterproductive.
3089		ntp_cache_flush=0;
3090		;;
3091	    esac
3092	esac
3093	;;
3094     *)
3095	# configure cache version mismatches config.cache version
3096	;;
3097    esac
3098
3099    case "$ntp_cache_flush" in
3100     1)
3101	c_version="${ntp_cv_main_cache_version:-(no version found)}"
3102
3103	# Do we flush all variables or exclude others' version stamps?
3104
3105	case "$NTP_CACHEVERSION_PARENT" in
3106	 '')
3107	    # Clear all *_cv_* variables including our child subdirs'
3108	    # ntp_cv_*_cache_version variables.  This prevents subdir
3109	    # configure scripts from noticing a version mismatch just
3110	    # after the top configure in the invocation cleared and
3111	    # recreated the cache.
3112
3113	    c_varname_list=`set |
3114			    sed -n -e 's/=.*$//' \
3115				   -e '/_cv_/p'
3116			   `
3117	    ;;
3118	 *)
3119	    # This is not the top configure this particular invocation.
3120	    # Clear all *_cv_* variables sparing the version stamps
3121	    # of other configure scripts, so we don't trigger
3122	    # useless repeated clearings.
3123
3124	    c_varname_list=`set |
3125			    sed -n -e 's/=.*$//' \
3126				   -e '/ntp_cv_.*_cache_version/d' \
3127				   -e '/_cv_/p'
3128			   `
3129	esac
3130
3131	for c_varname in $c_varname_list
3132	do
3133	    	    	    	    	    	    { eval $c_varname=; unset $c_varname; }
3134	done
3135
3136	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
3137$as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
3138	{ $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
3139$as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
3140	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
3141$as_echo "$as_me: $cache_file version: $c_version" >&6;}
3142	{ c_varname=; unset c_varname;}
3143	{ c_varname_list=; unset c_varname_list;}
3144	{ c_version=; unset c_version;}
3145    esac
3146
3147    { ntp_cache_flush=; unset ntp_cache_flush;}
3148
3149    # save configure version in config.cache for next time
3150    ntp_cv_main_cache_version="$ntp_configure_cache_version"
3151
3152    # let any subdir configure.ac NTP_CACHEVERSION invocations
3153    # know they are not the top level.
3154    NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT
3155
3156
3157am__api_version='1.15'
3158
3159# Find a good install program.  We prefer a C program (faster),
3160# so one script is as good as another.  But avoid the broken or
3161# incompatible versions:
3162# SysV /etc/install, /usr/sbin/install
3163# SunOS /usr/etc/install
3164# IRIX /sbin/install
3165# AIX /bin/install
3166# AmigaOS /C/install, which installs bootblocks on floppy discs
3167# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3168# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3169# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3170# OS/2's system install, which has a completely different semantic
3171# ./install, which can be erroneously created by make from ./install.sh.
3172# Reject install programs that cannot install multiple files.
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3174$as_echo_n "checking for a BSD-compatible install... " >&6; }
3175if test -z "$INSTALL"; then
3176if ${ac_cv_path_install+:} false; then :
3177  $as_echo_n "(cached) " >&6
3178else
3179  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180for as_dir in $PATH
3181do
3182  IFS=$as_save_IFS
3183  test -z "$as_dir" && as_dir=.
3184    # Account for people who put trailing slashes in PATH elements.
3185case $as_dir/ in #((
3186  ./ | .// | /[cC]/* | \
3187  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3188  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3189  /usr/ucb/* ) ;;
3190  *)
3191    # OSF1 and SCO ODT 3.0 have their own names for install.
3192    # Don't use installbsd from OSF since it installs stuff as root
3193    # by default.
3194    for ac_prog in ginstall scoinst install; do
3195      for ac_exec_ext in '' $ac_executable_extensions; do
3196	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3197	  if test $ac_prog = install &&
3198	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3199	    # AIX install.  It has an incompatible calling convention.
3200	    :
3201	  elif test $ac_prog = install &&
3202	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3203	    # program-specific install script used by HP pwplus--don't use.
3204	    :
3205	  else
3206	    rm -rf conftest.one conftest.two conftest.dir
3207	    echo one > conftest.one
3208	    echo two > conftest.two
3209	    mkdir conftest.dir
3210	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3211	      test -s conftest.one && test -s conftest.two &&
3212	      test -s conftest.dir/conftest.one &&
3213	      test -s conftest.dir/conftest.two
3214	    then
3215	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3216	      break 3
3217	    fi
3218	  fi
3219	fi
3220      done
3221    done
3222    ;;
3223esac
3224
3225  done
3226IFS=$as_save_IFS
3227
3228rm -rf conftest.one conftest.two conftest.dir
3229
3230fi
3231  if test "${ac_cv_path_install+set}" = set; then
3232    INSTALL=$ac_cv_path_install
3233  else
3234    # As a last resort, use the slow shell script.  Don't cache a
3235    # value for INSTALL within a source directory, because that will
3236    # break other packages using the cache if that directory is
3237    # removed, or if the value is a relative name.
3238    INSTALL=$ac_install_sh
3239  fi
3240fi
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3242$as_echo "$INSTALL" >&6; }
3243
3244# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3245# It thinks the first close brace ends the variable substitution.
3246test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3247
3248test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3249
3250test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3251
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3253$as_echo_n "checking whether build environment is sane... " >&6; }
3254# Reject unsafe characters in $srcdir or the absolute working directory
3255# name.  Accept space and tab only in the latter.
3256am_lf='
3257'
3258case `pwd` in
3259  *[\\\"\#\$\&\'\`$am_lf]*)
3260    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3261esac
3262case $srcdir in
3263  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3264    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3265esac
3266
3267# Do 'set' in a subshell so we don't clobber the current shell's
3268# arguments.  Must try -L first in case configure is actually a
3269# symlink; some systems play weird games with the mod time of symlinks
3270# (eg FreeBSD returns the mod time of the symlink's containing
3271# directory).
3272if (
3273   am_has_slept=no
3274   for am_try in 1 2; do
3275     echo "timestamp, slept: $am_has_slept" > conftest.file
3276     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3277     if test "$*" = "X"; then
3278	# -L didn't work.
3279	set X `ls -t "$srcdir/configure" conftest.file`
3280     fi
3281     if test "$*" != "X $srcdir/configure conftest.file" \
3282	&& test "$*" != "X conftest.file $srcdir/configure"; then
3283
3284	# If neither matched, then we have a broken ls.  This can happen
3285	# if, for instance, CONFIG_SHELL is bash and it inherits a
3286	# broken ls alias from the environment.  This has actually
3287	# happened.  Such a system could not be considered "sane".
3288	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3289  alias in your environment" "$LINENO" 5
3290     fi
3291     if test "$2" = conftest.file || test $am_try -eq 2; then
3292       break
3293     fi
3294     # Just in case.
3295     sleep 1
3296     am_has_slept=yes
3297   done
3298   test "$2" = conftest.file
3299   )
3300then
3301   # Ok.
3302   :
3303else
3304   as_fn_error $? "newly created file is older than distributed files!
3305Check your system clock" "$LINENO" 5
3306fi
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3308$as_echo "yes" >&6; }
3309# If we didn't sleep, we still need to ensure time stamps of config.status and
3310# generated files are strictly newer.
3311am_sleep_pid=
3312if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3313  ( sleep 1 ) &
3314  am_sleep_pid=$!
3315fi
3316
3317rm -f conftest.file
3318
3319test "$program_prefix" != NONE &&
3320  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3321# Use a double $ so make ignores it.
3322test "$program_suffix" != NONE &&
3323  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3324# Double any \ or $.
3325# By default was `s,x,x', remove it if useless.
3326ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3327program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3328
3329# Expand $ac_aux_dir to an absolute path.
3330am_aux_dir=`cd "$ac_aux_dir" && pwd`
3331
3332if test x"${MISSING+set}" != xset; then
3333  case $am_aux_dir in
3334  *\ * | *\	*)
3335    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3336  *)
3337    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3338  esac
3339fi
3340# Use eval to expand $SHELL
3341if eval "$MISSING --is-lightweight"; then
3342  am_missing_run="$MISSING "
3343else
3344  am_missing_run=
3345  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3346$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3347fi
3348
3349if test x"${install_sh+set}" != xset; then
3350  case $am_aux_dir in
3351  *\ * | *\	*)
3352    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3353  *)
3354    install_sh="\${SHELL} $am_aux_dir/install-sh"
3355  esac
3356fi
3357
3358# Installed binaries are usually stripped using 'strip' when the user
3359# run "make install-strip".  However 'strip' might not be the right
3360# tool to use in cross-compilation environments, therefore Automake
3361# will honor the 'STRIP' environment variable to overrule this program.
3362if test "$cross_compiling" != no; then
3363  if test -n "$ac_tool_prefix"; then
3364  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3365set dummy ${ac_tool_prefix}strip; ac_word=$2
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367$as_echo_n "checking for $ac_word... " >&6; }
3368if ${ac_cv_prog_STRIP+:} false; then :
3369  $as_echo_n "(cached) " >&6
3370else
3371  if test -n "$STRIP"; then
3372  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3373else
3374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375for as_dir in $PATH
3376do
3377  IFS=$as_save_IFS
3378  test -z "$as_dir" && as_dir=.
3379    for ac_exec_ext in '' $ac_executable_extensions; do
3380  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383    break 2
3384  fi
3385done
3386  done
3387IFS=$as_save_IFS
3388
3389fi
3390fi
3391STRIP=$ac_cv_prog_STRIP
3392if test -n "$STRIP"; then
3393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3394$as_echo "$STRIP" >&6; }
3395else
3396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397$as_echo "no" >&6; }
3398fi
3399
3400
3401fi
3402if test -z "$ac_cv_prog_STRIP"; then
3403  ac_ct_STRIP=$STRIP
3404  # Extract the first word of "strip", so it can be a program name with args.
3405set dummy strip; ac_word=$2
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407$as_echo_n "checking for $ac_word... " >&6; }
3408if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3409  $as_echo_n "(cached) " >&6
3410else
3411  if test -n "$ac_ct_STRIP"; then
3412  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3413else
3414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415for as_dir in $PATH
3416do
3417  IFS=$as_save_IFS
3418  test -z "$as_dir" && as_dir=.
3419    for ac_exec_ext in '' $ac_executable_extensions; do
3420  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421    ac_cv_prog_ac_ct_STRIP="strip"
3422    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423    break 2
3424  fi
3425done
3426  done
3427IFS=$as_save_IFS
3428
3429fi
3430fi
3431ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3432if test -n "$ac_ct_STRIP"; then
3433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3434$as_echo "$ac_ct_STRIP" >&6; }
3435else
3436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437$as_echo "no" >&6; }
3438fi
3439
3440  if test "x$ac_ct_STRIP" = x; then
3441    STRIP=":"
3442  else
3443    case $cross_compiling:$ac_tool_warned in
3444yes:)
3445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3447ac_tool_warned=yes ;;
3448esac
3449    STRIP=$ac_ct_STRIP
3450  fi
3451else
3452  STRIP="$ac_cv_prog_STRIP"
3453fi
3454
3455fi
3456INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3457
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3459$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3460if test -z "$MKDIR_P"; then
3461  if ${ac_cv_path_mkdir+:} false; then :
3462  $as_echo_n "(cached) " >&6
3463else
3464  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3466do
3467  IFS=$as_save_IFS
3468  test -z "$as_dir" && as_dir=.
3469    for ac_prog in mkdir gmkdir; do
3470	 for ac_exec_ext in '' $ac_executable_extensions; do
3471	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3472	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3473	     'mkdir (GNU coreutils) '* | \
3474	     'mkdir (coreutils) '* | \
3475	     'mkdir (fileutils) '4.1*)
3476	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3477	       break 3;;
3478	   esac
3479	 done
3480       done
3481  done
3482IFS=$as_save_IFS
3483
3484fi
3485
3486  test -d ./--version && rmdir ./--version
3487  if test "${ac_cv_path_mkdir+set}" = set; then
3488    MKDIR_P="$ac_cv_path_mkdir -p"
3489  else
3490    # As a last resort, use the slow shell script.  Don't cache a
3491    # value for MKDIR_P within a source directory, because that will
3492    # break other packages using the cache if that directory is
3493    # removed, or if the value is a relative name.
3494    MKDIR_P="$ac_install_sh -d"
3495  fi
3496fi
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3498$as_echo "$MKDIR_P" >&6; }
3499
3500for ac_prog in gawk mawk nawk awk
3501do
3502  # Extract the first word of "$ac_prog", so it can be a program name with args.
3503set dummy $ac_prog; ac_word=$2
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505$as_echo_n "checking for $ac_word... " >&6; }
3506if ${ac_cv_prog_AWK+:} false; then :
3507  $as_echo_n "(cached) " >&6
3508else
3509  if test -n "$AWK"; then
3510  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3511else
3512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513for as_dir in $PATH
3514do
3515  IFS=$as_save_IFS
3516  test -z "$as_dir" && as_dir=.
3517    for ac_exec_ext in '' $ac_executable_extensions; do
3518  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519    ac_cv_prog_AWK="$ac_prog"
3520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521    break 2
3522  fi
3523done
3524  done
3525IFS=$as_save_IFS
3526
3527fi
3528fi
3529AWK=$ac_cv_prog_AWK
3530if test -n "$AWK"; then
3531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3532$as_echo "$AWK" >&6; }
3533else
3534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535$as_echo "no" >&6; }
3536fi
3537
3538
3539  test -n "$AWK" && break
3540done
3541
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3543$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3544set x ${MAKE-make}
3545ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3546if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3547  $as_echo_n "(cached) " >&6
3548else
3549  cat >conftest.make <<\_ACEOF
3550SHELL = /bin/sh
3551all:
3552	@echo '@@@%%%=$(MAKE)=@@@%%%'
3553_ACEOF
3554# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3555case `${MAKE-make} -f conftest.make 2>/dev/null` in
3556  *@@@%%%=?*=@@@%%%*)
3557    eval ac_cv_prog_make_${ac_make}_set=yes;;
3558  *)
3559    eval ac_cv_prog_make_${ac_make}_set=no;;
3560esac
3561rm -f conftest.make
3562fi
3563if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3565$as_echo "yes" >&6; }
3566  SET_MAKE=
3567else
3568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569$as_echo "no" >&6; }
3570  SET_MAKE="MAKE=${MAKE-make}"
3571fi
3572
3573rm -rf .tst 2>/dev/null
3574mkdir .tst 2>/dev/null
3575if test -d .tst; then
3576  am__leading_dot=.
3577else
3578  am__leading_dot=_
3579fi
3580rmdir .tst 2>/dev/null
3581
3582# Check whether --enable-silent-rules was given.
3583if test "${enable_silent_rules+set}" = set; then :
3584  enableval=$enable_silent_rules;
3585fi
3586
3587case $enable_silent_rules in # (((
3588  yes) AM_DEFAULT_VERBOSITY=0;;
3589   no) AM_DEFAULT_VERBOSITY=1;;
3590    *) AM_DEFAULT_VERBOSITY=1;;
3591esac
3592am_make=${MAKE-make}
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3594$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3595if ${am_cv_make_support_nested_variables+:} false; then :
3596  $as_echo_n "(cached) " >&6
3597else
3598  if $as_echo 'TRUE=$(BAR$(V))
3599BAR0=false
3600BAR1=true
3601V=1
3602am__doit:
3603	@$(TRUE)
3604.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3605  am_cv_make_support_nested_variables=yes
3606else
3607  am_cv_make_support_nested_variables=no
3608fi
3609fi
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3611$as_echo "$am_cv_make_support_nested_variables" >&6; }
3612if test $am_cv_make_support_nested_variables = yes; then
3613    AM_V='$(V)'
3614  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3615else
3616  AM_V=$AM_DEFAULT_VERBOSITY
3617  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3618fi
3619AM_BACKSLASH='\'
3620
3621if test "`cd $srcdir && pwd`" != "`pwd`"; then
3622  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3623  # is not polluted with repeated "-I."
3624  am__isrc=' -I$(srcdir)'
3625  # test to see if srcdir already configured
3626  if test -f $srcdir/config.status; then
3627    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3628  fi
3629fi
3630
3631# test whether we have cygpath
3632if test -z "$CYGPATH_W"; then
3633  if (cygpath --version) >/dev/null 2>/dev/null; then
3634    CYGPATH_W='cygpath -w'
3635  else
3636    CYGPATH_W=echo
3637  fi
3638fi
3639
3640
3641# Define the identity of the package.
3642 PACKAGE='ntp'
3643 VERSION='4.2.8p15'
3644
3645
3646cat >>confdefs.h <<_ACEOF
3647#define PACKAGE "$PACKAGE"
3648_ACEOF
3649
3650
3651cat >>confdefs.h <<_ACEOF
3652#define VERSION "$VERSION"
3653_ACEOF
3654
3655# Some tools Automake needs.
3656
3657ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3658
3659
3660AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3661
3662
3663AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3664
3665
3666AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3667
3668
3669MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3670
3671# For better backward compatibility.  To be removed once Automake 1.9.x
3672# dies out for good.  For more background, see:
3673# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3674# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3675mkdir_p='$(MKDIR_P)'
3676
3677# We need awk for the "check" target (and possibly the TAP driver).  The
3678# system "awk" is bad on some platforms.
3679# Always define AMTAR for backward compatibility.  Yes, it's still used
3680# in the wild :-(  We should find a proper way to deprecate it ...
3681AMTAR='$${TAR-tar}'
3682
3683
3684# We'll loop over all known methods to create a tar archive until one works.
3685_am_tools='gnutar  pax cpio none'
3686
3687am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3688
3689
3690
3691
3692
3693
3694# POSIX will say in a future version that running "rm -f" with no argument
3695# is OK; and we want to be able to make that assumption in our Makefile
3696# recipes.  So use an aggressive probe to check that the usage we want is
3697# actually supported "in the wild" to an acceptable degree.
3698# See automake bug#10828.
3699# To make any issue more visible, cause the running configure to be aborted
3700# by default if the 'rm' program in use doesn't match our expectations; the
3701# user can still override this though.
3702if rm -f && rm -fr && rm -rf; then : OK; else
3703  cat >&2 <<'END'
3704Oops!
3705
3706Your 'rm' program seems unable to run without file operands specified
3707on the command line, even when the '-f' option is present.  This is contrary
3708to the behaviour of most rm programs out there, and not conforming with
3709the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3710
3711Please tell bug-automake@gnu.org about your system, including the value
3712of your $PATH and any error possibly output before this message.  This
3713can help us improve future automake versions.
3714
3715END
3716  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3717    echo 'Configuration will proceed anyway, since you have set the' >&2
3718    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3719    echo >&2
3720  else
3721    cat >&2 <<'END'
3722Aborting the configuration process, to ensure you take notice of the issue.
3723
3724You can download and install GNU coreutils to get an 'rm' implementation
3725that behaves properly: <http://www.gnu.org/software/coreutils/>.
3726
3727If you want to complete the configuration process using your problematic
3728'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3729to "yes", and re-run configure.
3730
3731END
3732    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3733  fi
3734fi
3735
3736
3737# Check whether --enable-silent-rules was given.
3738if test "${enable_silent_rules+set}" = set; then :
3739  enableval=$enable_silent_rules;
3740fi
3741
3742case $enable_silent_rules in # (((
3743  yes) AM_DEFAULT_VERBOSITY=0;;
3744   no) AM_DEFAULT_VERBOSITY=1;;
3745    *) AM_DEFAULT_VERBOSITY=0;;
3746esac
3747am_make=${MAKE-make}
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3749$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3750if ${am_cv_make_support_nested_variables+:} false; then :
3751  $as_echo_n "(cached) " >&6
3752else
3753  if $as_echo 'TRUE=$(BAR$(V))
3754BAR0=false
3755BAR1=true
3756V=1
3757am__doit:
3758	@$(TRUE)
3759.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3760  am_cv_make_support_nested_variables=yes
3761else
3762  am_cv_make_support_nested_variables=no
3763fi
3764fi
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3766$as_echo "$am_cv_make_support_nested_variables" >&6; }
3767if test $am_cv_make_support_nested_variables = yes; then
3768    AM_V='$(V)'
3769  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3770else
3771  AM_V=$AM_DEFAULT_VERBOSITY
3772  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3773fi
3774AM_BACKSLASH='\'
3775
3776
3777# Make sure we can run config.sub.
3778$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3779  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3780
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3782$as_echo_n "checking build system type... " >&6; }
3783if ${ac_cv_build+:} false; then :
3784  $as_echo_n "(cached) " >&6
3785else
3786  ac_build_alias=$build_alias
3787test "x$ac_build_alias" = x &&
3788  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3789test "x$ac_build_alias" = x &&
3790  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3791ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3792  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3793
3794fi
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3796$as_echo "$ac_cv_build" >&6; }
3797case $ac_cv_build in
3798*-*-*) ;;
3799*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3800esac
3801build=$ac_cv_build
3802ac_save_IFS=$IFS; IFS='-'
3803set x $ac_cv_build
3804shift
3805build_cpu=$1
3806build_vendor=$2
3807shift; shift
3808# Remember, the first character of IFS is used to create $*,
3809# except with old shells:
3810build_os=$*
3811IFS=$ac_save_IFS
3812case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3813
3814
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3816$as_echo_n "checking host system type... " >&6; }
3817if ${ac_cv_host+:} false; then :
3818  $as_echo_n "(cached) " >&6
3819else
3820  if test "x$host_alias" = x; then
3821  ac_cv_host=$ac_cv_build
3822else
3823  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3824    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3825fi
3826
3827fi
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3829$as_echo "$ac_cv_host" >&6; }
3830case $ac_cv_host in
3831*-*-*) ;;
3832*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3833esac
3834host=$ac_cv_host
3835ac_save_IFS=$IFS; IFS='-'
3836set x $ac_cv_host
3837shift
3838host_cpu=$1
3839host_vendor=$2
3840shift; shift
3841# Remember, the first character of IFS is used to create $*,
3842# except with old shells:
3843host_os=$*
3844IFS=$ac_save_IFS
3845case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3846
3847
3848
3849cat >>confdefs.h <<_ACEOF
3850#define STR_SYSTEM "$host"
3851_ACEOF
3852
3853ac_config_headers="$ac_config_headers config.h"
3854
3855
3856ntp_atom_ok=${ntp_atom_ok=no}
3857ntp_oncore_ok=${ntp_oncore_ok=no}
3858ntp_parse_ok=${ntp_parse_ok=no}
3859ntp_ripe_ncc_ok=${ntp_parse_ok=no}
3860ntp_jupiter_ok=${ntp_jupiter_ok=no}
3861
3862DEPDIR="${am__leading_dot}deps"
3863
3864ac_config_commands="$ac_config_commands depfiles"
3865
3866
3867am_make=${MAKE-make}
3868cat > confinc << 'END'
3869am__doit:
3870	@echo this is the am__doit target
3871.PHONY: am__doit
3872END
3873# If we don't find an include directive, just comment out the code.
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3875$as_echo_n "checking for style of include used by $am_make... " >&6; }
3876am__include="#"
3877am__quote=
3878_am_result=none
3879# First try GNU make style include.
3880echo "include confinc" > confmf
3881# Ignore all kinds of additional output from 'make'.
3882case `$am_make -s -f confmf 2> /dev/null` in #(
3883*the\ am__doit\ target*)
3884  am__include=include
3885  am__quote=
3886  _am_result=GNU
3887  ;;
3888esac
3889# Now try BSD make style include.
3890if test "$am__include" = "#"; then
3891   echo '.include "confinc"' > confmf
3892   case `$am_make -s -f confmf 2> /dev/null` in #(
3893   *the\ am__doit\ target*)
3894     am__include=.include
3895     am__quote="\""
3896     _am_result=BSD
3897     ;;
3898   esac
3899fi
3900
3901
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3903$as_echo "$_am_result" >&6; }
3904rm -f confinc confmf
3905
3906# Check whether --enable-dependency-tracking was given.
3907if test "${enable_dependency_tracking+set}" = set; then :
3908  enableval=$enable_dependency_tracking;
3909fi
3910
3911if test "x$enable_dependency_tracking" != xno; then
3912  am_depcomp="$ac_aux_dir/depcomp"
3913  AMDEPBACKSLASH='\'
3914  am__nodep='_no'
3915fi
3916 if test "x$enable_dependency_tracking" != xno; then
3917  AMDEP_TRUE=
3918  AMDEP_FALSE='#'
3919else
3920  AMDEP_TRUE='#'
3921  AMDEP_FALSE=
3922fi
3923
3924
3925
3926case "$build" in
3927 *-*-freebsd1?.*)
3928    cclist=cc
3929    ;;
3930 *)
3931    cclist="cc gcc"
3932    ;;
3933esac
3934
3935
3936#AC_USE_SYSTEM_EXTENSIONS
3937
3938ac_ext=c
3939ac_cpp='$CPP $CPPFLAGS'
3940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943if test -n "$ac_tool_prefix"; then
3944  for ac_prog in $cclist
3945  do
3946    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3947set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949$as_echo_n "checking for $ac_word... " >&6; }
3950if ${ac_cv_prog_CC+:} false; then :
3951  $as_echo_n "(cached) " >&6
3952else
3953  if test -n "$CC"; then
3954  ac_cv_prog_CC="$CC" # Let the user override the test.
3955else
3956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957for as_dir in $PATH
3958do
3959  IFS=$as_save_IFS
3960  test -z "$as_dir" && as_dir=.
3961    for ac_exec_ext in '' $ac_executable_extensions; do
3962  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3963    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965    break 2
3966  fi
3967done
3968  done
3969IFS=$as_save_IFS
3970
3971fi
3972fi
3973CC=$ac_cv_prog_CC
3974if test -n "$CC"; then
3975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3976$as_echo "$CC" >&6; }
3977else
3978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979$as_echo "no" >&6; }
3980fi
3981
3982
3983    test -n "$CC" && break
3984  done
3985fi
3986if test -z "$CC"; then
3987  ac_ct_CC=$CC
3988  for ac_prog in $cclist
3989do
3990  # Extract the first word of "$ac_prog", so it can be a program name with args.
3991set dummy $ac_prog; ac_word=$2
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3993$as_echo_n "checking for $ac_word... " >&6; }
3994if ${ac_cv_prog_ac_ct_CC+:} false; then :
3995  $as_echo_n "(cached) " >&6
3996else
3997  if test -n "$ac_ct_CC"; then
3998  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3999else
4000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001for as_dir in $PATH
4002do
4003  IFS=$as_save_IFS
4004  test -z "$as_dir" && as_dir=.
4005    for ac_exec_ext in '' $ac_executable_extensions; do
4006  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4007    ac_cv_prog_ac_ct_CC="$ac_prog"
4008    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009    break 2
4010  fi
4011done
4012  done
4013IFS=$as_save_IFS
4014
4015fi
4016fi
4017ac_ct_CC=$ac_cv_prog_ac_ct_CC
4018if test -n "$ac_ct_CC"; then
4019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4020$as_echo "$ac_ct_CC" >&6; }
4021else
4022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023$as_echo "no" >&6; }
4024fi
4025
4026
4027  test -n "$ac_ct_CC" && break
4028done
4029
4030  if test "x$ac_ct_CC" = x; then
4031    CC=""
4032  else
4033    case $cross_compiling:$ac_tool_warned in
4034yes:)
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4037ac_tool_warned=yes ;;
4038esac
4039    CC=$ac_ct_CC
4040  fi
4041fi
4042
4043
4044test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4046as_fn_error $? "no acceptable C compiler found in \$PATH
4047See \`config.log' for more details" "$LINENO" 5; }
4048
4049# Provide some information about the compiler.
4050$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4051set X $ac_compile
4052ac_compiler=$2
4053for ac_option in --version -v -V -qversion; do
4054  { { ac_try="$ac_compiler $ac_option >&5"
4055case "(($ac_try" in
4056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057  *) ac_try_echo=$ac_try;;
4058esac
4059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4060$as_echo "$ac_try_echo"; } >&5
4061  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4062  ac_status=$?
4063  if test -s conftest.err; then
4064    sed '10a\
4065... rest of stderr output deleted ...
4066         10q' conftest.err >conftest.er1
4067    cat conftest.er1 >&5
4068  fi
4069  rm -f conftest.er1 conftest.err
4070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4071  test $ac_status = 0; }
4072done
4073
4074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075/* end confdefs.h.  */
4076
4077int
4078main ()
4079{
4080
4081  ;
4082  return 0;
4083}
4084_ACEOF
4085ac_clean_files_save=$ac_clean_files
4086ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4087# Try to create an executable without -o first, disregard a.out.
4088# It will help us diagnose broken compilers, and finding out an intuition
4089# of exeext.
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4091$as_echo_n "checking whether the C compiler works... " >&6; }
4092ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4093
4094# The possible output files:
4095ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4096
4097ac_rmfiles=
4098for ac_file in $ac_files
4099do
4100  case $ac_file in
4101    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4102    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4103  esac
4104done
4105rm -f $ac_rmfiles
4106
4107if { { ac_try="$ac_link_default"
4108case "(($ac_try" in
4109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110  *) ac_try_echo=$ac_try;;
4111esac
4112eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4113$as_echo "$ac_try_echo"; } >&5
4114  (eval "$ac_link_default") 2>&5
4115  ac_status=$?
4116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4117  test $ac_status = 0; }; then :
4118  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4119# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4120# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4121# so that the user can short-circuit this test for compilers unknown to
4122# Autoconf.
4123for ac_file in $ac_files ''
4124do
4125  test -f "$ac_file" || continue
4126  case $ac_file in
4127    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4128	;;
4129    [ab].out )
4130	# We found the default executable, but exeext='' is most
4131	# certainly right.
4132	break;;
4133    *.* )
4134	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4135	then :; else
4136	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4137	fi
4138	# We set ac_cv_exeext here because the later test for it is not
4139	# safe: cross compilers may not add the suffix if given an `-o'
4140	# argument, so we may need to know it at that point already.
4141	# Even if this section looks crufty: it has the advantage of
4142	# actually working.
4143	break;;
4144    * )
4145	break;;
4146  esac
4147done
4148test "$ac_cv_exeext" = no && ac_cv_exeext=
4149
4150else
4151  ac_file=''
4152fi
4153if test -z "$ac_file"; then :
4154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155$as_echo "no" >&6; }
4156$as_echo "$as_me: failed program was:" >&5
4157sed 's/^/| /' conftest.$ac_ext >&5
4158
4159{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4161as_fn_error 77 "C compiler cannot create executables
4162See \`config.log' for more details" "$LINENO" 5; }
4163else
4164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4165$as_echo "yes" >&6; }
4166fi
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4168$as_echo_n "checking for C compiler default output file name... " >&6; }
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4170$as_echo "$ac_file" >&6; }
4171ac_exeext=$ac_cv_exeext
4172
4173rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4174ac_clean_files=$ac_clean_files_save
4175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4176$as_echo_n "checking for suffix of executables... " >&6; }
4177if { { ac_try="$ac_link"
4178case "(($ac_try" in
4179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180  *) ac_try_echo=$ac_try;;
4181esac
4182eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4183$as_echo "$ac_try_echo"; } >&5
4184  (eval "$ac_link") 2>&5
4185  ac_status=$?
4186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4187  test $ac_status = 0; }; then :
4188  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4189# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4190# work properly (i.e., refer to `conftest.exe'), while it won't with
4191# `rm'.
4192for ac_file in conftest.exe conftest conftest.*; do
4193  test -f "$ac_file" || continue
4194  case $ac_file in
4195    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4196    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4197	  break;;
4198    * ) break;;
4199  esac
4200done
4201else
4202  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4204as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4205See \`config.log' for more details" "$LINENO" 5; }
4206fi
4207rm -f conftest conftest$ac_cv_exeext
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4209$as_echo "$ac_cv_exeext" >&6; }
4210
4211rm -f conftest.$ac_ext
4212EXEEXT=$ac_cv_exeext
4213ac_exeext=$EXEEXT
4214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215/* end confdefs.h.  */
4216#include <stdio.h>
4217int
4218main ()
4219{
4220FILE *f = fopen ("conftest.out", "w");
4221 return ferror (f) || fclose (f) != 0;
4222
4223  ;
4224  return 0;
4225}
4226_ACEOF
4227ac_clean_files="$ac_clean_files conftest.out"
4228# Check that the compiler produces executables we can run.  If not, either
4229# the compiler is broken, or we cross compile.
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4231$as_echo_n "checking whether we are cross compiling... " >&6; }
4232if test "$cross_compiling" != yes; then
4233  { { ac_try="$ac_link"
4234case "(($ac_try" in
4235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236  *) ac_try_echo=$ac_try;;
4237esac
4238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4239$as_echo "$ac_try_echo"; } >&5
4240  (eval "$ac_link") 2>&5
4241  ac_status=$?
4242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4243  test $ac_status = 0; }
4244  if { ac_try='./conftest$ac_cv_exeext'
4245  { { case "(($ac_try" in
4246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247  *) ac_try_echo=$ac_try;;
4248esac
4249eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250$as_echo "$ac_try_echo"; } >&5
4251  (eval "$ac_try") 2>&5
4252  ac_status=$?
4253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254  test $ac_status = 0; }; }; then
4255    cross_compiling=no
4256  else
4257    if test "$cross_compiling" = maybe; then
4258	cross_compiling=yes
4259    else
4260	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4262as_fn_error $? "cannot run C compiled programs.
4263If you meant to cross compile, use \`--host'.
4264See \`config.log' for more details" "$LINENO" 5; }
4265    fi
4266  fi
4267fi
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4269$as_echo "$cross_compiling" >&6; }
4270
4271rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4272ac_clean_files=$ac_clean_files_save
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4274$as_echo_n "checking for suffix of object files... " >&6; }
4275if ${ac_cv_objext+:} false; then :
4276  $as_echo_n "(cached) " >&6
4277else
4278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279/* end confdefs.h.  */
4280
4281int
4282main ()
4283{
4284
4285  ;
4286  return 0;
4287}
4288_ACEOF
4289rm -f conftest.o conftest.obj
4290if { { ac_try="$ac_compile"
4291case "(($ac_try" in
4292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293  *) ac_try_echo=$ac_try;;
4294esac
4295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296$as_echo "$ac_try_echo"; } >&5
4297  (eval "$ac_compile") 2>&5
4298  ac_status=$?
4299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300  test $ac_status = 0; }; then :
4301  for ac_file in conftest.o conftest.obj conftest.*; do
4302  test -f "$ac_file" || continue;
4303  case $ac_file in
4304    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4305    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4306       break;;
4307  esac
4308done
4309else
4310  $as_echo "$as_me: failed program was:" >&5
4311sed 's/^/| /' conftest.$ac_ext >&5
4312
4313{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4315as_fn_error $? "cannot compute suffix of object files: cannot compile
4316See \`config.log' for more details" "$LINENO" 5; }
4317fi
4318rm -f conftest.$ac_cv_objext conftest.$ac_ext
4319fi
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4321$as_echo "$ac_cv_objext" >&6; }
4322OBJEXT=$ac_cv_objext
4323ac_objext=$OBJEXT
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4325$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4326if ${ac_cv_c_compiler_gnu+:} false; then :
4327  $as_echo_n "(cached) " >&6
4328else
4329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330/* end confdefs.h.  */
4331
4332int
4333main ()
4334{
4335#ifndef __GNUC__
4336       choke me
4337#endif
4338
4339  ;
4340  return 0;
4341}
4342_ACEOF
4343if ac_fn_c_try_compile "$LINENO"; then :
4344  ac_compiler_gnu=yes
4345else
4346  ac_compiler_gnu=no
4347fi
4348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349ac_cv_c_compiler_gnu=$ac_compiler_gnu
4350
4351fi
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4353$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4354if test $ac_compiler_gnu = yes; then
4355  GCC=yes
4356else
4357  GCC=
4358fi
4359ac_test_CFLAGS=${CFLAGS+set}
4360ac_save_CFLAGS=$CFLAGS
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4362$as_echo_n "checking whether $CC accepts -g... " >&6; }
4363if ${ac_cv_prog_cc_g+:} false; then :
4364  $as_echo_n "(cached) " >&6
4365else
4366  ac_save_c_werror_flag=$ac_c_werror_flag
4367   ac_c_werror_flag=yes
4368   ac_cv_prog_cc_g=no
4369   CFLAGS="-g"
4370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371/* end confdefs.h.  */
4372
4373int
4374main ()
4375{
4376
4377  ;
4378  return 0;
4379}
4380_ACEOF
4381if ac_fn_c_try_compile "$LINENO"; then :
4382  ac_cv_prog_cc_g=yes
4383else
4384  CFLAGS=""
4385      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386/* end confdefs.h.  */
4387
4388int
4389main ()
4390{
4391
4392  ;
4393  return 0;
4394}
4395_ACEOF
4396if ac_fn_c_try_compile "$LINENO"; then :
4397
4398else
4399  ac_c_werror_flag=$ac_save_c_werror_flag
4400	 CFLAGS="-g"
4401	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402/* end confdefs.h.  */
4403
4404int
4405main ()
4406{
4407
4408  ;
4409  return 0;
4410}
4411_ACEOF
4412if ac_fn_c_try_compile "$LINENO"; then :
4413  ac_cv_prog_cc_g=yes
4414fi
4415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416fi
4417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418fi
4419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420   ac_c_werror_flag=$ac_save_c_werror_flag
4421fi
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4423$as_echo "$ac_cv_prog_cc_g" >&6; }
4424if test "$ac_test_CFLAGS" = set; then
4425  CFLAGS=$ac_save_CFLAGS
4426elif test $ac_cv_prog_cc_g = yes; then
4427  if test "$GCC" = yes; then
4428    CFLAGS="-g -O2"
4429  else
4430    CFLAGS="-g"
4431  fi
4432else
4433  if test "$GCC" = yes; then
4434    CFLAGS="-O2"
4435  else
4436    CFLAGS=
4437  fi
4438fi
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4440$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4441if ${ac_cv_prog_cc_c89+:} false; then :
4442  $as_echo_n "(cached) " >&6
4443else
4444  ac_cv_prog_cc_c89=no
4445ac_save_CC=$CC
4446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447/* end confdefs.h.  */
4448#include <stdarg.h>
4449#include <stdio.h>
4450struct stat;
4451/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4452struct buf { int x; };
4453FILE * (*rcsopen) (struct buf *, struct stat *, int);
4454static char *e (p, i)
4455     char **p;
4456     int i;
4457{
4458  return p[i];
4459}
4460static char *f (char * (*g) (char **, int), char **p, ...)
4461{
4462  char *s;
4463  va_list v;
4464  va_start (v,p);
4465  s = g (p, va_arg (v,int));
4466  va_end (v);
4467  return s;
4468}
4469
4470/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4471   function prototypes and stuff, but not '\xHH' hex character constants.
4472   These don't provoke an error unfortunately, instead are silently treated
4473   as 'x'.  The following induces an error, until -std is added to get
4474   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4475   array size at least.  It's necessary to write '\x00'==0 to get something
4476   that's true only with -std.  */
4477int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4478
4479/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4480   inside strings and character constants.  */
4481#define FOO(x) 'x'
4482int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4483
4484int test (int i, double x);
4485struct s1 {int (*f) (int a);};
4486struct s2 {int (*f) (double a);};
4487int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4488int argc;
4489char **argv;
4490int
4491main ()
4492{
4493return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4494  ;
4495  return 0;
4496}
4497_ACEOF
4498for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4499	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4500do
4501  CC="$ac_save_CC $ac_arg"
4502  if ac_fn_c_try_compile "$LINENO"; then :
4503  ac_cv_prog_cc_c89=$ac_arg
4504fi
4505rm -f core conftest.err conftest.$ac_objext
4506  test "x$ac_cv_prog_cc_c89" != "xno" && break
4507done
4508rm -f conftest.$ac_ext
4509CC=$ac_save_CC
4510
4511fi
4512# AC_CACHE_VAL
4513case "x$ac_cv_prog_cc_c89" in
4514  x)
4515    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4516$as_echo "none needed" >&6; } ;;
4517  xno)
4518    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4519$as_echo "unsupported" >&6; } ;;
4520  *)
4521    CC="$CC $ac_cv_prog_cc_c89"
4522    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4523$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4524esac
4525if test "x$ac_cv_prog_cc_c89" != xno; then :
4526
4527fi
4528
4529ac_ext=c
4530ac_cpp='$CPP $CPPFLAGS'
4531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533ac_compiler_gnu=$ac_cv_c_compiler_gnu
4534
4535ac_ext=c
4536ac_cpp='$CPP $CPPFLAGS'
4537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4541$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4542if ${am_cv_prog_cc_c_o+:} false; then :
4543  $as_echo_n "(cached) " >&6
4544else
4545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4546/* end confdefs.h.  */
4547
4548int
4549main ()
4550{
4551
4552  ;
4553  return 0;
4554}
4555_ACEOF
4556  # Make sure it works both with $CC and with simple cc.
4557  # Following AC_PROG_CC_C_O, we do the test twice because some
4558  # compilers refuse to overwrite an existing .o file with -o,
4559  # though they will create one.
4560  am_cv_prog_cc_c_o=yes
4561  for am_i in 1 2; do
4562    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4563   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4564   ac_status=$?
4565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566   (exit $ac_status); } \
4567         && test -f conftest2.$ac_objext; then
4568      : OK
4569    else
4570      am_cv_prog_cc_c_o=no
4571      break
4572    fi
4573  done
4574  rm -f core conftest*
4575  unset am_i
4576fi
4577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4578$as_echo "$am_cv_prog_cc_c_o" >&6; }
4579if test "$am_cv_prog_cc_c_o" != yes; then
4580   # Losing compiler, so override with the script.
4581   # FIXME: It is wrong to rewrite CC.
4582   # But if we don't then we get into trouble of one sort or another.
4583   # A longer-term fix would be to have automake use am__CC in this case,
4584   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4585   CC="$am_aux_dir/compile $CC"
4586fi
4587ac_ext=c
4588ac_cpp='$CPP $CPPFLAGS'
4589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591ac_compiler_gnu=$ac_cv_c_compiler_gnu
4592
4593
4594depcc="$CC"   am_compiler_list=
4595
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4597$as_echo_n "checking dependency style of $depcc... " >&6; }
4598if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4599  $as_echo_n "(cached) " >&6
4600else
4601  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4602  # We make a subdir and do the tests there.  Otherwise we can end up
4603  # making bogus files that we don't know about and never remove.  For
4604  # instance it was reported that on HP-UX the gcc test will end up
4605  # making a dummy file named 'D' -- because '-MD' means "put the output
4606  # in D".
4607  rm -rf conftest.dir
4608  mkdir conftest.dir
4609  # Copy depcomp to subdir because otherwise we won't find it if we're
4610  # using a relative directory.
4611  cp "$am_depcomp" conftest.dir
4612  cd conftest.dir
4613  # We will build objects and dependencies in a subdirectory because
4614  # it helps to detect inapplicable dependency modes.  For instance
4615  # both Tru64's cc and ICC support -MD to output dependencies as a
4616  # side effect of compilation, but ICC will put the dependencies in
4617  # the current directory while Tru64 will put them in the object
4618  # directory.
4619  mkdir sub
4620
4621  am_cv_CC_dependencies_compiler_type=none
4622  if test "$am_compiler_list" = ""; then
4623     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4624  fi
4625  am__universal=false
4626  case " $depcc " in #(
4627     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4628     esac
4629
4630  for depmode in $am_compiler_list; do
4631    # Setup a source with many dependencies, because some compilers
4632    # like to wrap large dependency lists on column 80 (with \), and
4633    # we should not choose a depcomp mode which is confused by this.
4634    #
4635    # We need to recreate these files for each test, as the compiler may
4636    # overwrite some of them when testing with obscure command lines.
4637    # This happens at least with the AIX C compiler.
4638    : > sub/conftest.c
4639    for i in 1 2 3 4 5 6; do
4640      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4641      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4642      # Solaris 10 /bin/sh.
4643      echo '/* dummy */' > sub/conftst$i.h
4644    done
4645    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4646
4647    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4648    # mode.  It turns out that the SunPro C++ compiler does not properly
4649    # handle '-M -o', and we need to detect this.  Also, some Intel
4650    # versions had trouble with output in subdirs.
4651    am__obj=sub/conftest.${OBJEXT-o}
4652    am__minus_obj="-o $am__obj"
4653    case $depmode in
4654    gcc)
4655      # This depmode causes a compiler race in universal mode.
4656      test "$am__universal" = false || continue
4657      ;;
4658    nosideeffect)
4659      # After this tag, mechanisms are not by side-effect, so they'll
4660      # only be used when explicitly requested.
4661      if test "x$enable_dependency_tracking" = xyes; then
4662	continue
4663      else
4664	break
4665      fi
4666      ;;
4667    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4668      # This compiler won't grok '-c -o', but also, the minuso test has
4669      # not run yet.  These depmodes are late enough in the game, and
4670      # so weak that their functioning should not be impacted.
4671      am__obj=conftest.${OBJEXT-o}
4672      am__minus_obj=
4673      ;;
4674    none) break ;;
4675    esac
4676    if depmode=$depmode \
4677       source=sub/conftest.c object=$am__obj \
4678       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4679       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4680         >/dev/null 2>conftest.err &&
4681       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4682       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4683       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4684       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4685      # icc doesn't choke on unknown options, it will just issue warnings
4686      # or remarks (even with -Werror).  So we grep stderr for any message
4687      # that says an option was ignored or not supported.
4688      # When given -MP, icc 7.0 and 7.1 complain thusly:
4689      #   icc: Command line warning: ignoring option '-M'; no argument required
4690      # The diagnosis changed in icc 8.0:
4691      #   icc: Command line remark: option '-MP' not supported
4692      if (grep 'ignoring option' conftest.err ||
4693          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4694        am_cv_CC_dependencies_compiler_type=$depmode
4695        break
4696      fi
4697    fi
4698  done
4699
4700  cd ..
4701  rm -rf conftest.dir
4702else
4703  am_cv_CC_dependencies_compiler_type=none
4704fi
4705
4706fi
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4708$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4709CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4710
4711 if
4712  test "x$enable_dependency_tracking" != xno \
4713  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4714  am__fastdepCC_TRUE=
4715  am__fastdepCC_FALSE='#'
4716else
4717  am__fastdepCC_TRUE='#'
4718  am__fastdepCC_FALSE=
4719fi
4720
4721
4722
4723
4724
4725ac_ext=c
4726ac_cpp='$CPP $CPPFLAGS'
4727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4731$as_echo_n "checking how to run the C preprocessor... " >&6; }
4732# On Suns, sometimes $CPP names a directory.
4733if test -n "$CPP" && test -d "$CPP"; then
4734  CPP=
4735fi
4736if test -z "$CPP"; then
4737  if ${ac_cv_prog_CPP+:} false; then :
4738  $as_echo_n "(cached) " >&6
4739else
4740      # Double quotes because CPP needs to be expanded
4741    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4742    do
4743      ac_preproc_ok=false
4744for ac_c_preproc_warn_flag in '' yes
4745do
4746  # Use a header file that comes with gcc, so configuring glibc
4747  # with a fresh cross-compiler works.
4748  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4749  # <limits.h> exists even on freestanding compilers.
4750  # On the NeXT, cc -E runs the code through the compiler's parser,
4751  # not just through cpp. "Syntax error" is here to catch this case.
4752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753/* end confdefs.h.  */
4754#ifdef __STDC__
4755# include <limits.h>
4756#else
4757# include <assert.h>
4758#endif
4759		     Syntax error
4760_ACEOF
4761if ac_fn_c_try_cpp "$LINENO"; then :
4762
4763else
4764  # Broken: fails on valid input.
4765continue
4766fi
4767rm -f conftest.err conftest.i conftest.$ac_ext
4768
4769  # OK, works on sane cases.  Now check whether nonexistent headers
4770  # can be detected and how.
4771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772/* end confdefs.h.  */
4773#include <ac_nonexistent.h>
4774_ACEOF
4775if ac_fn_c_try_cpp "$LINENO"; then :
4776  # Broken: success on invalid input.
4777continue
4778else
4779  # Passes both tests.
4780ac_preproc_ok=:
4781break
4782fi
4783rm -f conftest.err conftest.i conftest.$ac_ext
4784
4785done
4786# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4787rm -f conftest.i conftest.err conftest.$ac_ext
4788if $ac_preproc_ok; then :
4789  break
4790fi
4791
4792    done
4793    ac_cv_prog_CPP=$CPP
4794
4795fi
4796  CPP=$ac_cv_prog_CPP
4797else
4798  ac_cv_prog_CPP=$CPP
4799fi
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4801$as_echo "$CPP" >&6; }
4802ac_preproc_ok=false
4803for ac_c_preproc_warn_flag in '' yes
4804do
4805  # Use a header file that comes with gcc, so configuring glibc
4806  # with a fresh cross-compiler works.
4807  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4808  # <limits.h> exists even on freestanding compilers.
4809  # On the NeXT, cc -E runs the code through the compiler's parser,
4810  # not just through cpp. "Syntax error" is here to catch this case.
4811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812/* end confdefs.h.  */
4813#ifdef __STDC__
4814# include <limits.h>
4815#else
4816# include <assert.h>
4817#endif
4818		     Syntax error
4819_ACEOF
4820if ac_fn_c_try_cpp "$LINENO"; then :
4821
4822else
4823  # Broken: fails on valid input.
4824continue
4825fi
4826rm -f conftest.err conftest.i conftest.$ac_ext
4827
4828  # OK, works on sane cases.  Now check whether nonexistent headers
4829  # can be detected and how.
4830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831/* end confdefs.h.  */
4832#include <ac_nonexistent.h>
4833_ACEOF
4834if ac_fn_c_try_cpp "$LINENO"; then :
4835  # Broken: success on invalid input.
4836continue
4837else
4838  # Passes both tests.
4839ac_preproc_ok=:
4840break
4841fi
4842rm -f conftest.err conftest.i conftest.$ac_ext
4843
4844done
4845# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4846rm -f conftest.i conftest.err conftest.$ac_ext
4847if $ac_preproc_ok; then :
4848
4849else
4850  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4852as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4853See \`config.log' for more details" "$LINENO" 5; }
4854fi
4855
4856ac_ext=c
4857ac_cpp='$CPP $CPPFLAGS'
4858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4860ac_compiler_gnu=$ac_cv_c_compiler_gnu
4861
4862
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4864$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4865if ${ac_cv_path_GREP+:} false; then :
4866  $as_echo_n "(cached) " >&6
4867else
4868  if test -z "$GREP"; then
4869  ac_path_GREP_found=false
4870  # Loop through the user's path and test for each of PROGNAME-LIST
4871  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4873do
4874  IFS=$as_save_IFS
4875  test -z "$as_dir" && as_dir=.
4876    for ac_prog in grep ggrep; do
4877    for ac_exec_ext in '' $ac_executable_extensions; do
4878      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4879      as_fn_executable_p "$ac_path_GREP" || continue
4880# Check for GNU ac_path_GREP and select it if it is found.
4881  # Check for GNU $ac_path_GREP
4882case `"$ac_path_GREP" --version 2>&1` in
4883*GNU*)
4884  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4885*)
4886  ac_count=0
4887  $as_echo_n 0123456789 >"conftest.in"
4888  while :
4889  do
4890    cat "conftest.in" "conftest.in" >"conftest.tmp"
4891    mv "conftest.tmp" "conftest.in"
4892    cp "conftest.in" "conftest.nl"
4893    $as_echo 'GREP' >> "conftest.nl"
4894    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4895    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4896    as_fn_arith $ac_count + 1 && ac_count=$as_val
4897    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4898      # Best one so far, save it but keep looking for a better one
4899      ac_cv_path_GREP="$ac_path_GREP"
4900      ac_path_GREP_max=$ac_count
4901    fi
4902    # 10*(2^10) chars as input seems more than enough
4903    test $ac_count -gt 10 && break
4904  done
4905  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4906esac
4907
4908      $ac_path_GREP_found && break 3
4909    done
4910  done
4911  done
4912IFS=$as_save_IFS
4913  if test -z "$ac_cv_path_GREP"; then
4914    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4915  fi
4916else
4917  ac_cv_path_GREP=$GREP
4918fi
4919
4920fi
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4922$as_echo "$ac_cv_path_GREP" >&6; }
4923 GREP="$ac_cv_path_GREP"
4924
4925
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4927$as_echo_n "checking for egrep... " >&6; }
4928if ${ac_cv_path_EGREP+:} false; then :
4929  $as_echo_n "(cached) " >&6
4930else
4931  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4932   then ac_cv_path_EGREP="$GREP -E"
4933   else
4934     if test -z "$EGREP"; then
4935  ac_path_EGREP_found=false
4936  # Loop through the user's path and test for each of PROGNAME-LIST
4937  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4939do
4940  IFS=$as_save_IFS
4941  test -z "$as_dir" && as_dir=.
4942    for ac_prog in egrep; do
4943    for ac_exec_ext in '' $ac_executable_extensions; do
4944      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4945      as_fn_executable_p "$ac_path_EGREP" || continue
4946# Check for GNU ac_path_EGREP and select it if it is found.
4947  # Check for GNU $ac_path_EGREP
4948case `"$ac_path_EGREP" --version 2>&1` in
4949*GNU*)
4950  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4951*)
4952  ac_count=0
4953  $as_echo_n 0123456789 >"conftest.in"
4954  while :
4955  do
4956    cat "conftest.in" "conftest.in" >"conftest.tmp"
4957    mv "conftest.tmp" "conftest.in"
4958    cp "conftest.in" "conftest.nl"
4959    $as_echo 'EGREP' >> "conftest.nl"
4960    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4961    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4962    as_fn_arith $ac_count + 1 && ac_count=$as_val
4963    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4964      # Best one so far, save it but keep looking for a better one
4965      ac_cv_path_EGREP="$ac_path_EGREP"
4966      ac_path_EGREP_max=$ac_count
4967    fi
4968    # 10*(2^10) chars as input seems more than enough
4969    test $ac_count -gt 10 && break
4970  done
4971  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4972esac
4973
4974      $ac_path_EGREP_found && break 3
4975    done
4976  done
4977  done
4978IFS=$as_save_IFS
4979  if test -z "$ac_cv_path_EGREP"; then
4980    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4981  fi
4982else
4983  ac_cv_path_EGREP=$EGREP
4984fi
4985
4986   fi
4987fi
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4989$as_echo "$ac_cv_path_EGREP" >&6; }
4990 EGREP="$ac_cv_path_EGREP"
4991
4992
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4994$as_echo_n "checking for ANSI C header files... " >&6; }
4995if ${ac_cv_header_stdc+:} false; then :
4996  $as_echo_n "(cached) " >&6
4997else
4998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999/* end confdefs.h.  */
5000#include <stdlib.h>
5001#include <stdarg.h>
5002#include <string.h>
5003#include <float.h>
5004
5005int
5006main ()
5007{
5008
5009  ;
5010  return 0;
5011}
5012_ACEOF
5013if ac_fn_c_try_compile "$LINENO"; then :
5014  ac_cv_header_stdc=yes
5015else
5016  ac_cv_header_stdc=no
5017fi
5018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019
5020if test $ac_cv_header_stdc = yes; then
5021  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023/* end confdefs.h.  */
5024#include <string.h>
5025
5026_ACEOF
5027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5028  $EGREP "memchr" >/dev/null 2>&1; then :
5029
5030else
5031  ac_cv_header_stdc=no
5032fi
5033rm -f conftest*
5034
5035fi
5036
5037if test $ac_cv_header_stdc = yes; then
5038  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040/* end confdefs.h.  */
5041#include <stdlib.h>
5042
5043_ACEOF
5044if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5045  $EGREP "free" >/dev/null 2>&1; then :
5046
5047else
5048  ac_cv_header_stdc=no
5049fi
5050rm -f conftest*
5051
5052fi
5053
5054if test $ac_cv_header_stdc = yes; then
5055  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5056  if test "$cross_compiling" = yes; then :
5057  :
5058else
5059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060/* end confdefs.h.  */
5061#include <ctype.h>
5062#include <stdlib.h>
5063#if ((' ' & 0x0FF) == 0x020)
5064# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5065# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5066#else
5067# define ISLOWER(c) \
5068		   (('a' <= (c) && (c) <= 'i') \
5069		     || ('j' <= (c) && (c) <= 'r') \
5070		     || ('s' <= (c) && (c) <= 'z'))
5071# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5072#endif
5073
5074#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5075int
5076main ()
5077{
5078  int i;
5079  for (i = 0; i < 256; i++)
5080    if (XOR (islower (i), ISLOWER (i))
5081	|| toupper (i) != TOUPPER (i))
5082      return 2;
5083  return 0;
5084}
5085_ACEOF
5086if ac_fn_c_try_run "$LINENO"; then :
5087
5088else
5089  ac_cv_header_stdc=no
5090fi
5091rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5092  conftest.$ac_objext conftest.beam conftest.$ac_ext
5093fi
5094
5095fi
5096fi
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5098$as_echo "$ac_cv_header_stdc" >&6; }
5099if test $ac_cv_header_stdc = yes; then
5100
5101$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5102
5103fi
5104
5105# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5106for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5107		  inttypes.h stdint.h unistd.h
5108do :
5109  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5110ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5111"
5112if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5113  cat >>confdefs.h <<_ACEOF
5114#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5115_ACEOF
5116
5117fi
5118
5119done
5120
5121
5122
5123  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5124if test "x$ac_cv_header_minix_config_h" = xyes; then :
5125  MINIX=yes
5126else
5127  MINIX=
5128fi
5129
5130
5131  if test "$MINIX" = yes; then
5132
5133$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5134
5135
5136$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5137
5138
5139$as_echo "#define _MINIX 1" >>confdefs.h
5140
5141  fi
5142
5143
5144  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5145$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5146if ${ac_cv_safe_to_define___extensions__+:} false; then :
5147  $as_echo_n "(cached) " >&6
5148else
5149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150/* end confdefs.h.  */
5151
5152#         define __EXTENSIONS__ 1
5153          $ac_includes_default
5154int
5155main ()
5156{
5157
5158  ;
5159  return 0;
5160}
5161_ACEOF
5162if ac_fn_c_try_compile "$LINENO"; then :
5163  ac_cv_safe_to_define___extensions__=yes
5164else
5165  ac_cv_safe_to_define___extensions__=no
5166fi
5167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168fi
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5170$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5171  test $ac_cv_safe_to_define___extensions__ = yes &&
5172    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5173
5174  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5175
5176  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5177
5178  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5179
5180  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5181
5182
5183
5184   case $ac_cv_prog_cc_stdc in #(
5185  no) :
5186    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5187  *) :
5188    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5189$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5190if ${ac_cv_prog_cc_c99+:} false; then :
5191  $as_echo_n "(cached) " >&6
5192else
5193  ac_cv_prog_cc_c99=no
5194ac_save_CC=$CC
5195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196/* end confdefs.h.  */
5197#include <stdarg.h>
5198#include <stdbool.h>
5199#include <stdlib.h>
5200#include <wchar.h>
5201#include <stdio.h>
5202
5203// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5204#define debug(...) fprintf (stderr, __VA_ARGS__)
5205#define showlist(...) puts (#__VA_ARGS__)
5206#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5207static void
5208test_varargs_macros (void)
5209{
5210  int x = 1234;
5211  int y = 5678;
5212  debug ("Flag");
5213  debug ("X = %d\n", x);
5214  showlist (The first, second, and third items.);
5215  report (x>y, "x is %d but y is %d", x, y);
5216}
5217
5218// Check long long types.
5219#define BIG64 18446744073709551615ull
5220#define BIG32 4294967295ul
5221#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5222#if !BIG_OK
5223  your preprocessor is broken;
5224#endif
5225#if BIG_OK
5226#else
5227  your preprocessor is broken;
5228#endif
5229static long long int bignum = -9223372036854775807LL;
5230static unsigned long long int ubignum = BIG64;
5231
5232struct incomplete_array
5233{
5234  int datasize;
5235  double data[];
5236};
5237
5238struct named_init {
5239  int number;
5240  const wchar_t *name;
5241  double average;
5242};
5243
5244typedef const char *ccp;
5245
5246static inline int
5247test_restrict (ccp restrict text)
5248{
5249  // See if C++-style comments work.
5250  // Iterate through items via the restricted pointer.
5251  // Also check for declarations in for loops.
5252  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5253    continue;
5254  return 0;
5255}
5256
5257// Check varargs and va_copy.
5258static void
5259test_varargs (const char *format, ...)
5260{
5261  va_list args;
5262  va_start (args, format);
5263  va_list args_copy;
5264  va_copy (args_copy, args);
5265
5266  const char *str;
5267  int number;
5268  float fnumber;
5269
5270  while (*format)
5271    {
5272      switch (*format++)
5273	{
5274	case 's': // string
5275	  str = va_arg (args_copy, const char *);
5276	  break;
5277	case 'd': // int
5278	  number = va_arg (args_copy, int);
5279	  break;
5280	case 'f': // float
5281	  fnumber = va_arg (args_copy, double);
5282	  break;
5283	default:
5284	  break;
5285	}
5286    }
5287  va_end (args_copy);
5288  va_end (args);
5289}
5290
5291int
5292main ()
5293{
5294
5295  // Check bool.
5296  _Bool success = false;
5297
5298  // Check restrict.
5299  if (test_restrict ("String literal") == 0)
5300    success = true;
5301  char *restrict newvar = "Another string";
5302
5303  // Check varargs.
5304  test_varargs ("s, d' f .", "string", 65, 34.234);
5305  test_varargs_macros ();
5306
5307  // Check flexible array members.
5308  struct incomplete_array *ia =
5309    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5310  ia->datasize = 10;
5311  for (int i = 0; i < ia->datasize; ++i)
5312    ia->data[i] = i * 1.234;
5313
5314  // Check named initializers.
5315  struct named_init ni = {
5316    .number = 34,
5317    .name = L"Test wide string",
5318    .average = 543.34343,
5319  };
5320
5321  ni.number = 58;
5322
5323  int dynamic_array[ni.number];
5324  dynamic_array[ni.number - 1] = 543;
5325
5326  // work around unused variable warnings
5327  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5328	  || dynamic_array[ni.number - 1] != 543);
5329
5330  ;
5331  return 0;
5332}
5333_ACEOF
5334for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5335do
5336  CC="$ac_save_CC $ac_arg"
5337  if ac_fn_c_try_compile "$LINENO"; then :
5338  ac_cv_prog_cc_c99=$ac_arg
5339fi
5340rm -f core conftest.err conftest.$ac_objext
5341  test "x$ac_cv_prog_cc_c99" != "xno" && break
5342done
5343rm -f conftest.$ac_ext
5344CC=$ac_save_CC
5345
5346fi
5347# AC_CACHE_VAL
5348case "x$ac_cv_prog_cc_c99" in
5349  x)
5350    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5351$as_echo "none needed" >&6; } ;;
5352  xno)
5353    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5354$as_echo "unsupported" >&6; } ;;
5355  *)
5356    CC="$CC $ac_cv_prog_cc_c99"
5357    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5358$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5359esac
5360if test "x$ac_cv_prog_cc_c99" != xno; then :
5361  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5362else
5363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5364$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5365if ${ac_cv_prog_cc_c89+:} false; then :
5366  $as_echo_n "(cached) " >&6
5367else
5368  ac_cv_prog_cc_c89=no
5369ac_save_CC=$CC
5370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371/* end confdefs.h.  */
5372#include <stdarg.h>
5373#include <stdio.h>
5374struct stat;
5375/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5376struct buf { int x; };
5377FILE * (*rcsopen) (struct buf *, struct stat *, int);
5378static char *e (p, i)
5379     char **p;
5380     int i;
5381{
5382  return p[i];
5383}
5384static char *f (char * (*g) (char **, int), char **p, ...)
5385{
5386  char *s;
5387  va_list v;
5388  va_start (v,p);
5389  s = g (p, va_arg (v,int));
5390  va_end (v);
5391  return s;
5392}
5393
5394/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5395   function prototypes and stuff, but not '\xHH' hex character constants.
5396   These don't provoke an error unfortunately, instead are silently treated
5397   as 'x'.  The following induces an error, until -std is added to get
5398   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5399   array size at least.  It's necessary to write '\x00'==0 to get something
5400   that's true only with -std.  */
5401int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5402
5403/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5404   inside strings and character constants.  */
5405#define FOO(x) 'x'
5406int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5407
5408int test (int i, double x);
5409struct s1 {int (*f) (int a);};
5410struct s2 {int (*f) (double a);};
5411int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5412int argc;
5413char **argv;
5414int
5415main ()
5416{
5417return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5418  ;
5419  return 0;
5420}
5421_ACEOF
5422for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5423	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5424do
5425  CC="$ac_save_CC $ac_arg"
5426  if ac_fn_c_try_compile "$LINENO"; then :
5427  ac_cv_prog_cc_c89=$ac_arg
5428fi
5429rm -f core conftest.err conftest.$ac_objext
5430  test "x$ac_cv_prog_cc_c89" != "xno" && break
5431done
5432rm -f conftest.$ac_ext
5433CC=$ac_save_CC
5434
5435fi
5436# AC_CACHE_VAL
5437case "x$ac_cv_prog_cc_c89" in
5438  x)
5439    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5440$as_echo "none needed" >&6; } ;;
5441  xno)
5442    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5443$as_echo "unsupported" >&6; } ;;
5444  *)
5445    CC="$CC $ac_cv_prog_cc_c89"
5446    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5447$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5448esac
5449if test "x$ac_cv_prog_cc_c89" != xno; then :
5450  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5451else
5452  ac_cv_prog_cc_stdc=no
5453fi
5454
5455fi
5456 ;;
5457esac
5458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5459$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5460  if ${ac_cv_prog_cc_stdc+:} false; then :
5461  $as_echo_n "(cached) " >&6
5462fi
5463
5464  case $ac_cv_prog_cc_stdc in #(
5465  no) :
5466    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5467$as_echo "unsupported" >&6; } ;; #(
5468  '') :
5469    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5470$as_echo "none needed" >&6; } ;; #(
5471  *) :
5472    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5473$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5474esac
5475
5476
5477
5478
5479
5480# Ralf Wildenhues: With per-target flags we need CC_C_O
5481# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
5482
5483if test $ac_cv_c_compiler_gnu = yes; then
5484    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5485$as_echo_n "checking whether $CC needs -traditional... " >&6; }
5486if ${ac_cv_prog_gcc_traditional+:} false; then :
5487  $as_echo_n "(cached) " >&6
5488else
5489    ac_pattern="Autoconf.*'x'"
5490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491/* end confdefs.h.  */
5492#include <sgtty.h>
5493Autoconf TIOCGETP
5494_ACEOF
5495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5496  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5497  ac_cv_prog_gcc_traditional=yes
5498else
5499  ac_cv_prog_gcc_traditional=no
5500fi
5501rm -f conftest*
5502
5503
5504  if test $ac_cv_prog_gcc_traditional = no; then
5505    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506/* end confdefs.h.  */
5507#include <termio.h>
5508Autoconf TCGETA
5509_ACEOF
5510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5511  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5512  ac_cv_prog_gcc_traditional=yes
5513fi
5514rm -f conftest*
5515
5516  fi
5517fi
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5519$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5520  if test $ac_cv_prog_gcc_traditional = yes; then
5521    CC="$CC -traditional"
5522  fi
5523fi
5524
5525
5526
5527CFLAGS_NTP=
5528CPPFLAGS_NTP=
5529LDADD_NTP=
5530LDFLAGS_NTP=
5531
5532
5533
5534
5535
5536case "$ac_cv_prog_cc_c89" in
5537 no)
5538    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5539		 version 4.2.5 and higher." >&5
5540$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5541		 version 4.2.5 and higher." >&2;}
5542    ;;
5543esac
5544
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
5546$as_echo_n "checking if $CC can handle #warning... " >&6; }
5547if ${ntp_cv_cpp_warning+:} false; then :
5548  $as_echo_n "(cached) " >&6
5549else
5550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551/* end confdefs.h.  */
5552
5553int
5554main ()
5555{
5556#warning foo
5557  ;
5558  return 0;
5559}
5560_ACEOF
5561if ac_fn_c_try_compile "$LINENO"; then :
5562  ntp_cv_cpp_warning=yes
5563else
5564  ntp_cv_cpp_warning=no
5565
5566fi
5567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568
5569fi
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
5571$as_echo "$ntp_cv_cpp_warning" >&6; }
5572case "$ntp_cv_cpp_warning" in
5573 no)
5574
5575$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
5576
5577esac
5578
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
5580$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
5581if ${ntp_cv_cc_attribute+:} false; then :
5582  $as_echo_n "(cached) " >&6
5583else
5584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585/* end confdefs.h.  */
5586
5587int
5588main ()
5589{
5590void foo(void) __attribute__((__noreturn__));
5591
5592  ;
5593  return 0;
5594}
5595_ACEOF
5596if ac_fn_c_try_compile "$LINENO"; then :
5597  ntp_cv_cc_attribute=yes
5598else
5599  ntp_cv_cc_attribute=no
5600
5601fi
5602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5603
5604fi
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
5606$as_echo "$ntp_cv_cc_attribute" >&6; }
5607case "$ntp_cv_cc_attribute" in
5608 yes)
5609
5610$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
5611
5612esac
5613
5614
5615case "$GCC" in
5616 yes)
5617    SAVED_CFLAGS="$CFLAGS"
5618    CFLAGS="$CFLAGS -Wstrict-overflow"
5619    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
5620$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
5621if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
5622  $as_echo_n "(cached) " >&6
5623else
5624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625/* end confdefs.h.  */
5626
5627int
5628main ()
5629{
5630
5631  ;
5632  return 0;
5633}
5634_ACEOF
5635if ac_fn_c_try_compile "$LINENO"; then :
5636  ntp_cv_gcc_Wstrict_overflow=yes
5637else
5638  ntp_cv_gcc_Wstrict_overflow=no
5639
5640fi
5641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642
5643fi
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
5645$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
5646    #
5647    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
5648    # flag to CFLAGS.
5649    #
5650    CFLAGS="$SAVED_CFLAGS -Winit-self"
5651    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
5652$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
5653if ${ntp_cv_gcc_Winit_self+:} false; then :
5654  $as_echo_n "(cached) " >&6
5655else
5656
5657	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658/* end confdefs.h.  */
5659
5660int
5661main ()
5662{
5663
5664  ;
5665  return 0;
5666}
5667_ACEOF
5668if ac_fn_c_try_compile "$LINENO"; then :
5669  ntp_cv_gcc_Winit_self=yes
5670else
5671  ntp_cv_gcc_Winit_self=no
5672
5673fi
5674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675
5676
5677fi
5678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
5679$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
5680    CFLAGS="$SAVED_CFLAGS"
5681    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
5682    #
5683    # $ntp_cv_gcc_Winit_self is tested later to add the
5684    # flag to CFLAGS_NTP.
5685    #
5686    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
5687$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
5688if ${ntp_cv_gc_sections_runs+:} false; then :
5689  $as_echo_n "(cached) " >&6
5690else
5691
5692	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
5693	    CFLAGS="$CFLAGS -Wl,--gc-sections"
5694	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695/* end confdefs.h.  */
5696
5697			#include <stdlib.h>
5698			#include <stdio.h>
5699
5700int
5701main ()
5702{
5703
5704			FILE *	fpC;
5705			char	buf[32];
5706			size_t	cch;
5707			int	read_success_once;
5708
5709			fpC = fopen("conftest.c", "r");
5710			if (NULL == fpC)
5711				exit(1);
5712			do {
5713				cch = fread(buf, sizeof(buf), 1, fpC);
5714				read_success_once |= (0 != cch);
5715			} while (0 != cch);
5716			if (!read_success_once)
5717				exit(2);
5718			if (!feof(fpC))
5719				exit(3);
5720			if (0 != fclose(fpC))
5721				exit(4);
5722
5723			exit(EXIT_SUCCESS);
5724
5725
5726  ;
5727  return 0;
5728}
5729_ACEOF
5730if ac_fn_c_try_link "$LINENO"; then :
5731
5732		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
5733			ntp_cv_gc_sections_runs=no
5734		    else
5735			ntp_cv_gc_sections_runs=no
5736			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
5737		    fi
5738
5739else
5740  ntp_cv_gc_sections_runs=no
5741
5742fi
5743rm -f core conftest.err conftest.$ac_objext \
5744    conftest$ac_exeext conftest.$ac_ext
5745	    CFLAGS="$origCFLAGS"
5746	    { origCFLAGS=; unset origCFLAGS;}
5747
5748
5749fi
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
5751$as_echo "$ntp_cv_gc_sections_runs" >&6; }
5752    case "$ntp_cv_gc_sections_runs" in
5753     yes)
5754	LDADD_LIBNTP="-Wl,--gc-sections"
5755	CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
5756	;;
5757     no)
5758	LDADD_LIBNTP=
5759	;;
5760    esac
5761    CFLAGS_NTP="$CFLAGS_NTP -Wall"
5762    CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
5763    CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
5764    # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
5765    # CFLAGS_NTP="$CFLAGS_NTP -Werror"
5766    # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
5767    # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
5768    CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
5769    CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
5770    CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
5771    # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
5772    # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
5773    case "$ntp_cv_gcc_Winit_self" in
5774     yes)
5775	CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
5776    esac
5777    case "$ntp_cv_gcc_Wstrict_overflow" in
5778     yes)
5779	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
5780    esac
5781    # -W[no-]strict-prototypes might be added by NTP_OPENSSL
5782esac
5783
5784
5785    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
5786$as_echo_n "checking additional compiler flags... " >&6; }
5787    # allow ntp_os_cflags to be preset to skip this stuff
5788    case "${ntp_os_cflags+set}" in
5789     set)
5790	;;
5791     *)
5792	ntp_os_cflags=
5793	case "$host_os" in
5794	 aix[1-3]*)
5795	    ;;
5796	 aix4.[0-2]*)
5797	    # turn on additional headers
5798	    ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
5799	    ;;
5800	 aix5.3*)
5801	    # avoid circular dependencies in yp headers, and more
5802	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
5803	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
5804	    ;;
5805	 aix*)
5806	    # XXX Only verified thru AIX6.
5807	    # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
5808	    # avoid circular dependencies in yp headers
5809	    # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
5810	    # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
5811	    # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
5812	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
5813	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
5814	    ;;
5815	 amigaos)
5816	    ntp_os_cflags="-DSYS_AMIGA"
5817	    ;;
5818	 darwin*|macosx*|rhapsody*)
5819	    ntp_os_cflags="-D_P1003_1B_VISIBLE"
5820	    ;;
5821	 hpux10.*)		# at least for hppa2.0-hp-hpux10.20
5822	    case "$GCC" in
5823	     yes)
5824		;;
5825	     *)
5826		# use Ansi compiler on HPUX, and some -Wp magic
5827		ntp_os_cflags="-Ae -Wp,-H18816"
5828		;;
5829	    esac
5830	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
5831	    ;;
5832	 hpux*)
5833	    case "$GCC" in
5834	     yes)
5835		;;
5836	     *)
5837		# use Ansi compiler on HPUX
5838		ntp_os_cflags="-Ae"
5839	    esac
5840	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
5841	    ;;
5842	 irix6*)
5843	    case "$CC" in
5844	     cc)
5845		# do not use 64-bit compiler
5846		ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
5847	    esac
5848	    ;;
5849	 nextstep3)
5850	    ntp_os_cflags="-posix"
5851	    ;;
5852	 solaris1*|solaris2.[0-5]|solaris2.5.*)
5853	    ;;
5854	 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
5855	    ;;
5856	 solaris2*|sunos5*)
5857	    # turn on 64-bit file offset interface
5858	    ntp_os_cflags="-D_LARGEFILE64_SOURCE"
5859	    ;;
5860	 vxworks*)
5861	    case "$build" in
5862	     $host)
5863		;;
5864	     *)
5865		# Quick and dirty sanity check
5866		case "$VX_KERNEL" in
5867		 '')
5868		    as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
5869		esac
5870		ntp_os_cflags="-DSYS_VXWORKS"
5871	    esac
5872	    ;;
5873	esac
5874    esac
5875    case "$ntp_os_cflags" in
5876     '')
5877	ntp_os_cflags_msg="none needed"
5878	;;
5879     *)
5880	ntp_os_cflags_msg="$ntp_os_cflags"
5881    esac
5882    CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
5883    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
5884$as_echo "$ntp_os_cflags_msg" >&6; }
5885    { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
5886    ###
5887    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
5888$as_echo_n "checking additional linker flags... " >&6; }
5889    # HMS: The following might still need tweaking
5890    # allow ntp_os_ldflags to be preset to skip this stuff
5891    case "${ntp_os_ldflags+set}" in
5892     set)
5893	;;
5894     *)
5895	ntp_os_ldflags=
5896	case "$host_os" in
5897	 hpux*)
5898	    case "$GCC" in
5899	     yes)
5900		ntp_os_ldflags="-Wl,+allowdups"
5901		;;
5902	    esac
5903	    ;;
5904	esac
5905	;;
5906    esac
5907    case "$ntp_os_ldflags" in
5908     '')
5909	ntp_os_ldflags_msg="none needed"
5910	;;
5911     *)
5912	ntp_os_ldflags_msg="$ntp_os_ldflags"
5913    esac
5914    LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
5915    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
5916$as_echo "$ntp_os_ldflags_msg" >&6; }
5917    { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
5918
5919
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5921$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5922if ${ac_cv_c_bigendian+:} false; then :
5923  $as_echo_n "(cached) " >&6
5924else
5925  ac_cv_c_bigendian=unknown
5926    # See if we're dealing with a universal compiler.
5927    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928/* end confdefs.h.  */
5929#ifndef __APPLE_CC__
5930	       not a universal capable compiler
5931	     #endif
5932	     typedef int dummy;
5933
5934_ACEOF
5935if ac_fn_c_try_compile "$LINENO"; then :
5936
5937	# Check for potential -arch flags.  It is not universal unless
5938	# there are at least two -arch flags with different values.
5939	ac_arch=
5940	ac_prev=
5941	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5942	 if test -n "$ac_prev"; then
5943	   case $ac_word in
5944	     i?86 | x86_64 | ppc | ppc64)
5945	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5946		 ac_arch=$ac_word
5947	       else
5948		 ac_cv_c_bigendian=universal
5949		 break
5950	       fi
5951	       ;;
5952	   esac
5953	   ac_prev=
5954	 elif test "x$ac_word" = "x-arch"; then
5955	   ac_prev=arch
5956	 fi
5957       done
5958fi
5959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960    if test $ac_cv_c_bigendian = unknown; then
5961      # See if sys/param.h defines the BYTE_ORDER macro.
5962      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963/* end confdefs.h.  */
5964#include <sys/types.h>
5965	     #include <sys/param.h>
5966
5967int
5968main ()
5969{
5970#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5971		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5972		     && LITTLE_ENDIAN)
5973	      bogus endian macros
5974	     #endif
5975
5976  ;
5977  return 0;
5978}
5979_ACEOF
5980if ac_fn_c_try_compile "$LINENO"; then :
5981  # It does; now see whether it defined to BIG_ENDIAN or not.
5982	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983/* end confdefs.h.  */
5984#include <sys/types.h>
5985		#include <sys/param.h>
5986
5987int
5988main ()
5989{
5990#if BYTE_ORDER != BIG_ENDIAN
5991		 not big endian
5992		#endif
5993
5994  ;
5995  return 0;
5996}
5997_ACEOF
5998if ac_fn_c_try_compile "$LINENO"; then :
5999  ac_cv_c_bigendian=yes
6000else
6001  ac_cv_c_bigendian=no
6002fi
6003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004fi
6005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6006    fi
6007    if test $ac_cv_c_bigendian = unknown; then
6008      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6009      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010/* end confdefs.h.  */
6011#include <limits.h>
6012
6013int
6014main ()
6015{
6016#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6017	      bogus endian macros
6018	     #endif
6019
6020  ;
6021  return 0;
6022}
6023_ACEOF
6024if ac_fn_c_try_compile "$LINENO"; then :
6025  # It does; now see whether it defined to _BIG_ENDIAN or not.
6026	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027/* end confdefs.h.  */
6028#include <limits.h>
6029
6030int
6031main ()
6032{
6033#ifndef _BIG_ENDIAN
6034		 not big endian
6035		#endif
6036
6037  ;
6038  return 0;
6039}
6040_ACEOF
6041if ac_fn_c_try_compile "$LINENO"; then :
6042  ac_cv_c_bigendian=yes
6043else
6044  ac_cv_c_bigendian=no
6045fi
6046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047fi
6048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049    fi
6050    if test $ac_cv_c_bigendian = unknown; then
6051      # Compile a test program.
6052      if test "$cross_compiling" = yes; then :
6053  # Try to guess by grepping values from an object file.
6054	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055/* end confdefs.h.  */
6056short int ascii_mm[] =
6057		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6058		short int ascii_ii[] =
6059		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6060		int use_ascii (int i) {
6061		  return ascii_mm[i] + ascii_ii[i];
6062		}
6063		short int ebcdic_ii[] =
6064		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6065		short int ebcdic_mm[] =
6066		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6067		int use_ebcdic (int i) {
6068		  return ebcdic_mm[i] + ebcdic_ii[i];
6069		}
6070		extern int foo;
6071
6072int
6073main ()
6074{
6075return use_ascii (foo) == use_ebcdic (foo);
6076  ;
6077  return 0;
6078}
6079_ACEOF
6080if ac_fn_c_try_compile "$LINENO"; then :
6081  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6082	      ac_cv_c_bigendian=yes
6083	    fi
6084	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6085	      if test "$ac_cv_c_bigendian" = unknown; then
6086		ac_cv_c_bigendian=no
6087	      else
6088		# finding both strings is unlikely to happen, but who knows?
6089		ac_cv_c_bigendian=unknown
6090	      fi
6091	    fi
6092fi
6093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094else
6095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096/* end confdefs.h.  */
6097$ac_includes_default
6098int
6099main ()
6100{
6101
6102	     /* Are we little or big endian?  From Harbison&Steele.  */
6103	     union
6104	     {
6105	       long int l;
6106	       char c[sizeof (long int)];
6107	     } u;
6108	     u.l = 1;
6109	     return u.c[sizeof (long int) - 1] == 1;
6110
6111  ;
6112  return 0;
6113}
6114_ACEOF
6115if ac_fn_c_try_run "$LINENO"; then :
6116  ac_cv_c_bigendian=no
6117else
6118  ac_cv_c_bigendian=yes
6119fi
6120rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6121  conftest.$ac_objext conftest.beam conftest.$ac_ext
6122fi
6123
6124    fi
6125fi
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6127$as_echo "$ac_cv_c_bigendian" >&6; }
6128 case $ac_cv_c_bigendian in #(
6129   yes)
6130     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6131;; #(
6132   no)
6133      ;; #(
6134   universal)
6135
6136$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6137
6138     ;; #(
6139   *)
6140     as_fn_error $? "unknown endianness
6141 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6142 esac
6143
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6145$as_echo_n "checking for working volatile... " >&6; }
6146if ${ac_cv_c_volatile+:} false; then :
6147  $as_echo_n "(cached) " >&6
6148else
6149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150/* end confdefs.h.  */
6151
6152int
6153main ()
6154{
6155
6156volatile int x;
6157int * volatile y = (int *) 0;
6158return !x && !y;
6159  ;
6160  return 0;
6161}
6162_ACEOF
6163if ac_fn_c_try_compile "$LINENO"; then :
6164  ac_cv_c_volatile=yes
6165else
6166  ac_cv_c_volatile=no
6167fi
6168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169fi
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6171$as_echo "$ac_cv_c_volatile" >&6; }
6172if test $ac_cv_c_volatile = no; then
6173
6174$as_echo "#define volatile /**/" >>confdefs.h
6175
6176fi
6177
6178ac_ext=c
6179ac_cpp='$CPP $CPPFLAGS'
6180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6182ac_compiler_gnu=$ac_cv_c_compiler_gnu
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6184$as_echo_n "checking how to run the C preprocessor... " >&6; }
6185# On Suns, sometimes $CPP names a directory.
6186if test -n "$CPP" && test -d "$CPP"; then
6187  CPP=
6188fi
6189if test -z "$CPP"; then
6190  if ${ac_cv_prog_CPP+:} false; then :
6191  $as_echo_n "(cached) " >&6
6192else
6193      # Double quotes because CPP needs to be expanded
6194    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6195    do
6196      ac_preproc_ok=false
6197for ac_c_preproc_warn_flag in '' yes
6198do
6199  # Use a header file that comes with gcc, so configuring glibc
6200  # with a fresh cross-compiler works.
6201  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6202  # <limits.h> exists even on freestanding compilers.
6203  # On the NeXT, cc -E runs the code through the compiler's parser,
6204  # not just through cpp. "Syntax error" is here to catch this case.
6205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206/* end confdefs.h.  */
6207#ifdef __STDC__
6208# include <limits.h>
6209#else
6210# include <assert.h>
6211#endif
6212		     Syntax error
6213_ACEOF
6214if ac_fn_c_try_cpp "$LINENO"; then :
6215
6216else
6217  # Broken: fails on valid input.
6218continue
6219fi
6220rm -f conftest.err conftest.i conftest.$ac_ext
6221
6222  # OK, works on sane cases.  Now check whether nonexistent headers
6223  # can be detected and how.
6224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225/* end confdefs.h.  */
6226#include <ac_nonexistent.h>
6227_ACEOF
6228if ac_fn_c_try_cpp "$LINENO"; then :
6229  # Broken: success on invalid input.
6230continue
6231else
6232  # Passes both tests.
6233ac_preproc_ok=:
6234break
6235fi
6236rm -f conftest.err conftest.i conftest.$ac_ext
6237
6238done
6239# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6240rm -f conftest.i conftest.err conftest.$ac_ext
6241if $ac_preproc_ok; then :
6242  break
6243fi
6244
6245    done
6246    ac_cv_prog_CPP=$CPP
6247
6248fi
6249  CPP=$ac_cv_prog_CPP
6250else
6251  ac_cv_prog_CPP=$CPP
6252fi
6253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6254$as_echo "$CPP" >&6; }
6255ac_preproc_ok=false
6256for ac_c_preproc_warn_flag in '' yes
6257do
6258  # Use a header file that comes with gcc, so configuring glibc
6259  # with a fresh cross-compiler works.
6260  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6261  # <limits.h> exists even on freestanding compilers.
6262  # On the NeXT, cc -E runs the code through the compiler's parser,
6263  # not just through cpp. "Syntax error" is here to catch this case.
6264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265/* end confdefs.h.  */
6266#ifdef __STDC__
6267# include <limits.h>
6268#else
6269# include <assert.h>
6270#endif
6271		     Syntax error
6272_ACEOF
6273if ac_fn_c_try_cpp "$LINENO"; then :
6274
6275else
6276  # Broken: fails on valid input.
6277continue
6278fi
6279rm -f conftest.err conftest.i conftest.$ac_ext
6280
6281  # OK, works on sane cases.  Now check whether nonexistent headers
6282  # can be detected and how.
6283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284/* end confdefs.h.  */
6285#include <ac_nonexistent.h>
6286_ACEOF
6287if ac_fn_c_try_cpp "$LINENO"; then :
6288  # Broken: success on invalid input.
6289continue
6290else
6291  # Passes both tests.
6292ac_preproc_ok=:
6293break
6294fi
6295rm -f conftest.err conftest.i conftest.$ac_ext
6296
6297done
6298# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6299rm -f conftest.i conftest.err conftest.$ac_ext
6300if $ac_preproc_ok; then :
6301
6302else
6303  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6305as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6306See \`config.log' for more details" "$LINENO" 5; }
6307fi
6308
6309ac_ext=c
6310ac_cpp='$CPP $CPPFLAGS'
6311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6313ac_compiler_gnu=$ac_cv_c_compiler_gnu
6314
6315
6316
6317
6318for ac_prog in 'bison -y' byacc
6319do
6320  # Extract the first word of "$ac_prog", so it can be a program name with args.
6321set dummy $ac_prog; ac_word=$2
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323$as_echo_n "checking for $ac_word... " >&6; }
6324if ${ac_cv_prog_YACC+:} false; then :
6325  $as_echo_n "(cached) " >&6
6326else
6327  if test -n "$YACC"; then
6328  ac_cv_prog_YACC="$YACC" # Let the user override the test.
6329else
6330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331for as_dir in $PATH
6332do
6333  IFS=$as_save_IFS
6334  test -z "$as_dir" && as_dir=.
6335    for ac_exec_ext in '' $ac_executable_extensions; do
6336  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6337    ac_cv_prog_YACC="$ac_prog"
6338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339    break 2
6340  fi
6341done
6342  done
6343IFS=$as_save_IFS
6344
6345fi
6346fi
6347YACC=$ac_cv_prog_YACC
6348if test -n "$YACC"; then
6349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6350$as_echo "$YACC" >&6; }
6351else
6352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353$as_echo "no" >&6; }
6354fi
6355
6356
6357  test -n "$YACC" && break
6358done
6359test -n "$YACC" || YACC="yacc"
6360
6361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6362$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6363if ${ac_cv_prog_cc_c99+:} false; then :
6364  $as_echo_n "(cached) " >&6
6365else
6366  ac_cv_prog_cc_c99=no
6367ac_save_CC=$CC
6368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369/* end confdefs.h.  */
6370#include <stdarg.h>
6371#include <stdbool.h>
6372#include <stdlib.h>
6373#include <wchar.h>
6374#include <stdio.h>
6375
6376// Check varargs macros.  These examples are taken from C99 6.10.3.5.
6377#define debug(...) fprintf (stderr, __VA_ARGS__)
6378#define showlist(...) puts (#__VA_ARGS__)
6379#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6380static void
6381test_varargs_macros (void)
6382{
6383  int x = 1234;
6384  int y = 5678;
6385  debug ("Flag");
6386  debug ("X = %d\n", x);
6387  showlist (The first, second, and third items.);
6388  report (x>y, "x is %d but y is %d", x, y);
6389}
6390
6391// Check long long types.
6392#define BIG64 18446744073709551615ull
6393#define BIG32 4294967295ul
6394#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6395#if !BIG_OK
6396  your preprocessor is broken;
6397#endif
6398#if BIG_OK
6399#else
6400  your preprocessor is broken;
6401#endif
6402static long long int bignum = -9223372036854775807LL;
6403static unsigned long long int ubignum = BIG64;
6404
6405struct incomplete_array
6406{
6407  int datasize;
6408  double data[];
6409};
6410
6411struct named_init {
6412  int number;
6413  const wchar_t *name;
6414  double average;
6415};
6416
6417typedef const char *ccp;
6418
6419static inline int
6420test_restrict (ccp restrict text)
6421{
6422  // See if C++-style comments work.
6423  // Iterate through items via the restricted pointer.
6424  // Also check for declarations in for loops.
6425  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6426    continue;
6427  return 0;
6428}
6429
6430// Check varargs and va_copy.
6431static void
6432test_varargs (const char *format, ...)
6433{
6434  va_list args;
6435  va_start (args, format);
6436  va_list args_copy;
6437  va_copy (args_copy, args);
6438
6439  const char *str;
6440  int number;
6441  float fnumber;
6442
6443  while (*format)
6444    {
6445      switch (*format++)
6446	{
6447	case 's': // string
6448	  str = va_arg (args_copy, const char *);
6449	  break;
6450	case 'd': // int
6451	  number = va_arg (args_copy, int);
6452	  break;
6453	case 'f': // float
6454	  fnumber = va_arg (args_copy, double);
6455	  break;
6456	default:
6457	  break;
6458	}
6459    }
6460  va_end (args_copy);
6461  va_end (args);
6462}
6463
6464int
6465main ()
6466{
6467
6468  // Check bool.
6469  _Bool success = false;
6470
6471  // Check restrict.
6472  if (test_restrict ("String literal") == 0)
6473    success = true;
6474  char *restrict newvar = "Another string";
6475
6476  // Check varargs.
6477  test_varargs ("s, d' f .", "string", 65, 34.234);
6478  test_varargs_macros ();
6479
6480  // Check flexible array members.
6481  struct incomplete_array *ia =
6482    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6483  ia->datasize = 10;
6484  for (int i = 0; i < ia->datasize; ++i)
6485    ia->data[i] = i * 1.234;
6486
6487  // Check named initializers.
6488  struct named_init ni = {
6489    .number = 34,
6490    .name = L"Test wide string",
6491    .average = 543.34343,
6492  };
6493
6494  ni.number = 58;
6495
6496  int dynamic_array[ni.number];
6497  dynamic_array[ni.number - 1] = 543;
6498
6499  // work around unused variable warnings
6500  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6501	  || dynamic_array[ni.number - 1] != 543);
6502
6503  ;
6504  return 0;
6505}
6506_ACEOF
6507for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
6508do
6509  CC="$ac_save_CC $ac_arg"
6510  if ac_fn_c_try_compile "$LINENO"; then :
6511  ac_cv_prog_cc_c99=$ac_arg
6512fi
6513rm -f core conftest.err conftest.$ac_objext
6514  test "x$ac_cv_prog_cc_c99" != "xno" && break
6515done
6516rm -f conftest.$ac_ext
6517CC=$ac_save_CC
6518
6519fi
6520# AC_CACHE_VAL
6521case "x$ac_cv_prog_cc_c99" in
6522  x)
6523    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6524$as_echo "none needed" >&6; } ;;
6525  xno)
6526    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6527$as_echo "unsupported" >&6; } ;;
6528  *)
6529    CC="$CC $ac_cv_prog_cc_c99"
6530    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6531$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6532esac
6533if test "x$ac_cv_prog_cc_c99" != xno; then :
6534
6535fi
6536
6537
6538
6539	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
6540$as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }
6541
6542
6543	ac_ext=c
6544ac_cpp='$CPP $CPPFLAGS'
6545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6547ac_compiler_gnu=$ac_cv_c_compiler_gnu
6548
6549
6550		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551/* end confdefs.h.  */
6552
6553			struct foo_s {int i1; int i2;};
6554			int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }
6555
6556_ACEOF
6557if ac_fn_c_try_compile "$LINENO"; then :
6558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6559$as_echo "yes" >&6; }
6560else
6561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562$as_echo "no" >&6; }
6563
6564$as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
6565
6566fi
6567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568
6569	ac_ext=c
6570ac_cpp='$CPP $CPPFLAGS'
6571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6573ac_compiler_gnu=$ac_cv_c_compiler_gnu
6574
6575
6576
6577
6578
6579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5
6580$as_echo_n "checking for compile/link hardening flags... " >&6; }
6581
6582
6583# Check whether --with-hardenfile was given.
6584if test "${with_hardenfile+set}" = set; then :
6585  withval=$with_hardenfile;
6586else
6587  with_hardenfile=no
6588
6589fi
6590
6591
6592(									\
6593    SENTINEL_DIR="$PWD" &&						\
6594    cd $srcdir/sntp &&							\
6595    case "$with_hardenfile" in						\
6596     yes|no|'')								\
6597	scripts/genHardFlags -d "$SENTINEL_DIR"				\
6598	;;								\
6599     *)									\
6600	scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_hardenfile"	\
6601	;;								\
6602    esac								\
6603) > genHardFlags.i 2> genHardFlags.err
6604. ./genHardFlags.i
6605
6606case "$GENHARDFLAG" in
6607 OK)
6608    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5
6609$as_echo "in file $GENHARDFLAGFILE" >&6; }
6610    rm genHardFlags.err genHardFlags.i
6611    ;;
6612 *)
6613    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6614$as_echo "failed." >&6; }
6615    as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5
6616    ;;
6617esac
6618
6619
6620
6621
6622
6623
6624
6625
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
6627$as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
6628ntp_vpath_hack="no"
6629case "$srcdir::${force_ntp_vpath_hack-no}" in
6630 .::*)
6631    ;; # VPATH_HACK path is for VPATH builds only.
6632 *::yes)
6633    ntp_vpath_hack="yes"
6634    ;;
6635 *::*)
6636    case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
6637     '')
6638	ntp_vpath_hack="yes"
6639    esac
6640esac
6641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
6642$as_echo "$ntp_vpath_hack" >&6; }
6643 if test x$ntp_vpath_hack = xyes; then
6644  VPATH_HACK_TRUE=
6645  VPATH_HACK_FALSE='#'
6646else
6647  VPATH_HACK_TRUE='#'
6648  VPATH_HACK_FALSE=
6649fi
6650
6651
6652
6653
6654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
6655$as_echo_n "checking for install dir and man conventions... " >&6; }
6656
6657
6658# Check whether --with-locfile was given.
6659if test "${with_locfile+set}" = set; then :
6660  withval=$with_locfile;
6661else
6662  with_locfile=no
6663
6664fi
6665
6666
6667(									\
6668    SENTINEL_DIR="$PWD" &&						\
6669    cd $srcdir/sntp &&							\
6670    case "$with_locfile" in						\
6671     yes|no|'')								\
6672	scripts/genLocInfo -d "$SENTINEL_DIR"				\
6673	;;								\
6674     *)									\
6675	scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile"	\
6676	;;								\
6677    esac								\
6678) > genLocInfo.i 2> genLocInfo.err
6679. ./genLocInfo.i
6680
6681case "$GENLOCINFO" in
6682 OK)
6683    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
6684$as_echo "in file $GENLOCINFOFILE" >&6; }
6685    rm genLocInfo.err genLocInfo.i
6686    ;;
6687 *)
6688    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6689$as_echo "failed." >&6; }
6690    as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
6691    ;;
6692esac
6693
6694 if test "$CALC_TICKADJ_MS" ; then
6695  WANT_CALC_TICKADJ_MS_TRUE=
6696  WANT_CALC_TICKADJ_MS_FALSE='#'
6697else
6698  WANT_CALC_TICKADJ_MS_TRUE='#'
6699  WANT_CALC_TICKADJ_MS_FALSE=
6700fi
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744 if test -z "$NTPSWEEP_NI" ; then
6745  INSTALL_NTPSWEEP_TRUE=
6746  INSTALL_NTPSWEEP_FALSE='#'
6747else
6748  INSTALL_NTPSWEEP_TRUE='#'
6749  INSTALL_NTPSWEEP_FALSE=
6750fi
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792 if test -z "$UPDATE_LEAP_NI" ; then
6793  INSTALL_UPDATE_LEAP_TRUE=
6794  INSTALL_UPDATE_LEAP_FALSE='#'
6795else
6796  INSTALL_UPDATE_LEAP_TRUE='#'
6797  INSTALL_UPDATE_LEAP_FALSE=
6798fi
6799
6800
6801
6802if test -n "$ac_tool_prefix"; then
6803  for ac_prog in ar lib "link -lib"
6804  do
6805    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6806set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808$as_echo_n "checking for $ac_word... " >&6; }
6809if ${ac_cv_prog_AR+:} false; then :
6810  $as_echo_n "(cached) " >&6
6811else
6812  if test -n "$AR"; then
6813  ac_cv_prog_AR="$AR" # Let the user override the test.
6814else
6815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816for as_dir in $PATH
6817do
6818  IFS=$as_save_IFS
6819  test -z "$as_dir" && as_dir=.
6820    for ac_exec_ext in '' $ac_executable_extensions; do
6821  if