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