xref: /freebsd/contrib/ntp/configure (revision f1951fd745b894fe6586c298874af98544a5e272)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ntp 4.2.8p11.
4#
5# Report bugs to <http://bugs.ntp.org./>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://bugs.ntp.org./ about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='ntp'
592PACKAGE_TARNAME='ntp'
593PACKAGE_VERSION='4.2.8p11'
594PACKAGE_STRING='ntp 4.2.8p11'
595PACKAGE_BUGREPORT='http://bugs.ntp.org./'
596PACKAGE_URL='http://www.ntp.org./'
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_header_list=
635enable_option_checking=no
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639subdirs
640PERLLIBDIR
641NTP_KEYSDIR
642BUILD_TEST_NTP_SIGND_FALSE
643BUILD_TEST_NTP_SIGND_TRUE
644BUILD_TEST_NTP_SCANNER_FALSE
645BUILD_TEST_NTP_SCANNER_TRUE
646BUILD_TEST_NTP_RESTRICT_FALSE
647BUILD_TEST_NTP_RESTRICT_TRUE
648GTEST_AVAILABLE_FALSE
649GTEST_AVAILABLE_TRUE
650GTEST_CPPFLAGS
651GTEST_CXXFLAGS
652GTEST_LIBS
653GTEST_LDFLAGS
654GTEST_CONFIG
655UNITYBUILD_AVAILABLE_FALSE
656UNITYBUILD_AVAILABLE_TRUE
657PATH_RUBY
658HAVE_LEAPSMEARINTERVAL
659SAVECONFIG_ENABLED_FALSE
660SAVECONFIG_ENABLED_TRUE
661LSCF
662MAKE_NTPSNMPD
663SNMP_CFLAGS
664SNMP_CPPFLAGS
665SNMP_LIBS
666BUILD_SNTP_FALSE
667BUILD_SNTP_TRUE
668SNTP
669MAKE_NTPDSIM
670MAKE_LIBNTPSIM
671MAKE_TIMETRIM
672MAKE_TICKADJ
673MAKE_NTPTIME
674MAKE_ADJTIMED
675CHUTEST
676PROPDELAY
677MAKE_PARSEKMODULE
678DCFD
679TESTDCF
680MAKE_CHECK_LAYOUT
681VER_SUFFIX
682MAKE_CHECK_Y2K
683MAKE_LIBPARSE_KERNEL
684MAKE_LIBPARSE
685LIBPARSE
686HAVE_RLIMIT_STACK
687HAVE_RLIMIT_MEMLOCK
688LDADD_NLIST
689PATH_NET_SNMP_CONFIG
690CONFIG_SHELL
691PATH_TEST
692PATH_PERL
693LIBOBJS
694PTHREADS_FALSE
695PTHREADS_TRUE
696LIBISC_PTHREADS_NOTHREADS
697PTHREAD_LIBS
698LTHREAD_LIBS
699BUILD_THREAD
700HAVE_INLINE
701LDADD_LIBUTIL
702ALLOCA
703LIBM
704EDITLINE_LIBS
705LDADD_LIBNTP
706NTP_CROSSCOMPILE_FALSE
707NTP_CROSSCOMPILE_TRUE
708BUILD_LIBEVENT_FALSE
709BUILD_LIBEVENT_TRUE
710LDADD_LIBEVENT
711CPPFLAGS_LIBEVENT
712CFLAGS_LIBEVENT
713PKG_CONFIG
714LIBOPTS_DIR
715LIBOPTS_CFLAGS
716LIBOPTS_LDADD
717NEED_LIBOPTS_FALSE
718NEED_LIBOPTS_TRUE
719INSTALL_LIBOPTS_FALSE
720INSTALL_LIBOPTS_TRUE
721POSIX_SHELL
722GL_GENERATE_STDNORETURN_H_FALSE
723GL_GENERATE_STDNORETURN_H_TRUE
724STDNORETURN_H
725LIBTOOL_DEPS
726LT_SYS_LIBRARY_PATH
727OTOOL64
728OTOOL
729LIPO
730NMEDIT
731DSYMUTIL
732MANIFEST_TOOL
733RANLIB
734DLLTOOL
735OBJDUMP
736LN_S
737NM
738ac_ct_DUMPBIN
739DUMPBIN
740LD
741FGREP
742SED
743LIBTOOL
744ac_ct_AR
745AR
746INSTALL_UPDATE_LEAP_FALSE
747INSTALL_UPDATE_LEAP_TRUE
748UPDATE_LEAP_NI
749UPDATE_LEAP_MS
750UPDATE_LEAP_DS
751UPDATE_LEAP_DL
752UPDATE_LEAP_DB
753TIMETRIM_NI
754TIMETRIM_MS
755TIMETRIM_DS
756TIMETRIM_DL
757TIMETRIM_DB
758TICKADJ_NI
759TICKADJ_MS
760TICKADJ_DS
761TICKADJ_DL
762TICKADJ_DB
763SNTP_NI
764SNTP_MS
765SNTP_DS
766SNTP_DL
767SNTP_DB
768NTP_WAIT_NI
769NTP_WAIT_MS
770NTP_WAIT_DS
771NTP_WAIT_DL
772NTP_WAIT_DB
773NTP_KEYGEN_NI
774NTP_KEYGEN_MS
775NTP_KEYGEN_DS
776NTP_KEYGEN_DL
777NTP_KEYGEN_DB
778NTPTRACE_NI
779NTPTRACE_MS
780NTPTRACE_DS
781NTPTRACE_DL
782NTPTRACE_DB
783NTPTIME_NI
784NTPTIME_MS
785NTPTIME_DS
786NTPTIME_DL
787NTPTIME_DB
788INSTALL_NTPSWEEP_FALSE
789INSTALL_NTPSWEEP_TRUE
790NTPSWEEP_NI
791NTPSWEEP_MS
792NTPSWEEP_DS
793NTPSWEEP_DL
794NTPSWEEP_DB
795NTPSNMPD_NI
796NTPSNMPD_MS
797NTPSNMPD_DS
798NTPSNMPD_DL
799NTPSNMPD_DB
800NTPQ_NI
801NTPQ_MS
802NTPQ_DS
803NTPQ_DL
804NTPQ_DB
805NTPD_NI
806NTPD_MS
807NTPD_DS
808NTPD_DL
809NTPD_DB
810NTPDSIM_NI
811NTPDSIM_MS
812NTPDSIM_DS
813NTPDSIM_DL
814NTPDSIM_DB
815NTPDC_NI
816NTPDC_MS
817NTPDC_DS
818NTPDC_DL
819NTPDC_DB
820NTPDATE_NI
821NTPDATE_MS
822NTPDATE_DS
823NTPDATE_DL
824NTPDATE_DB
825MANTAGFMT
826CALC_TICKADJ_NI
827CALC_TICKADJ_MS
828CALC_TICKADJ_DS
829CALC_TICKADJ_DL
830CALC_TICKADJ_DB
831WANT_CALC_TICKADJ_MS_FALSE
832WANT_CALC_TICKADJ_MS_TRUE
833VPATH_HACK_FALSE
834VPATH_HACK_TRUE
835NTP_HARD_LDFLAGS
836NTP_HARD_CPPFLAGS
837NTP_HARD_CFLAGS
838YFLAGS
839YACC
840LDFLAGS_NTP
841LDADD_NTP
842CPPFLAGS_NTP
843CFLAGS_NTP
844EGREP
845GREP
846CPP
847am__fastdepCC_FALSE
848am__fastdepCC_TRUE
849CCDEPMODE
850am__nodep
851AMDEPBACKSLASH
852AMDEP_FALSE
853AMDEP_TRUE
854am__quote
855am__include
856DEPDIR
857OBJEXT
858EXEEXT
859ac_ct_CC
860CPPFLAGS
861LDFLAGS
862CFLAGS
863CC
864host_os
865host_vendor
866host_cpu
867host
868build_os
869build_vendor
870build_cpu
871build
872AM_BACKSLASH
873AM_DEFAULT_VERBOSITY
874AM_DEFAULT_V
875AM_V
876am__untar
877am__tar
878AMTAR
879am__leading_dot
880SET_MAKE
881AWK
882mkdir_p
883MKDIR_P
884INSTALL_STRIP_PROGRAM
885STRIP
886install_sh
887MAKEINFO
888AUTOHEADER
889AUTOMAKE
890AUTOCONF
891ACLOCAL
892VERSION
893PACKAGE
894CYGPATH_W
895am__isrc
896INSTALL_DATA
897INSTALL_SCRIPT
898INSTALL_PROGRAM
899target_alias
900host_alias
901build_alias
902LIBS
903ECHO_T
904ECHO_N
905ECHO_C
906DEFS
907mandir
908localedir
909libdir
910psdir
911pdfdir
912dvidir
913htmldir
914infodir
915docdir
916oldincludedir
917includedir
918localstatedir
919sharedstatedir
920sysconfdir
921datadir
922datarootdir
923libexecdir
924sbindir
925bindir
926program_transform_name
927prefix
928exec_prefix
929PACKAGE_URL
930PACKAGE_BUGREPORT
931PACKAGE_STRING
932PACKAGE_VERSION
933PACKAGE_TARNAME
934PACKAGE_NAME
935PATH_SEPARATOR
936SHELL'
937ac_subst_files='calc_tickadj_opts
938ntp_wait_opts
939ntpsweep_opts
940ntptrace_opts
941summary_opts
942plot_summary_opts'
943ac_user_opts='
944enable_option_checking
945enable_silent_rules
946enable_dependency_tracking
947with_hardenfile
948with_locfile
949enable_shared
950enable_static
951with_pic
952enable_fast_install
953with_aix_soname
954with_gnu_ld
955with_sysroot
956enable_libtool_lock
957enable_nls
958enable_local_libopts
959enable_libopts_install
960with_autoopts_config
961enable_local_libevent
962with_lineeditlibs
963enable_debugging
964enable_thread_support
965with_threads
966with_yielding_select
967enable_c99_snprintf
968enable_clockctl
969enable_linuxcaps
970enable_solarisprivs
971with_arlib
972with_net_snmp_config
973enable_libseccomp
974with_stack_limit
975with_memlock
976enable_debug_timing
977enable_dst_minutes
978enable_ignore_dns_errors
979enable_BANCOMM
980enable_GPSVME
981enable_all_clocks
982enable_ACTS
983enable_ARBITER
984enable_ARCRON_MSF
985enable_AS2201
986enable_ATOM
987enable_CHRONOLOG
988enable_CHU
989enable_AUDIO_CHU
990enable_DATUM
991enable_DUMBCLOCK
992enable_FG
993enable_HEATH
994enable_HOPFSERIAL
995enable_HOPFPCI
996enable_HPGPS
997enable_IRIG
998enable_JJY
999enable_JUPITER
1000enable_LEITCH
1001enable_LOCAL_CLOCK
1002enable_MX4200
1003enable_NEOCLOCK4X
1004enable_NMEA
1005enable_GPSD
1006enable_ONCORE
1007enable_PALISADE
1008enable_PCF
1009enable_PST
1010enable_RIPENCC
1011enable_SHM
1012enable_SPECTRACOM
1013enable_TPRO
1014enable_TRUETIME
1015enable_TT560
1016enable_ULINK
1017enable_TSYNCPCI
1018enable_WWV
1019enable_ZYFER
1020enable_parse_clocks
1021enable_COMPUTIME
1022enable_DCF7000
1023enable_HOPF6021
1024enable_MEINBERG
1025enable_RAWDCF
1026enable_RCC8000
1027enable_SCHMID
1028enable_TRIMTAIP
1029enable_TRIMTSIP
1030enable_WHARTON
1031enable_VARITEXT
1032enable_SEL240X
1033with_crypto
1034with_openssl_libdir
1035with_openssl_incdir
1036with_rpath
1037enable_openssl_random
1038enable_autokey
1039enable_kmem
1040enable_accurate_adjtime
1041enable_tick
1042enable_tickadj
1043enable_simulator
1044with_sntp
1045with_ntpsnmpd
1046enable_slew_always
1047enable_step_slew
1048enable_ntpdate_step
1049enable_hourly_todr_sync
1050enable_kernel_fll_bug
1051enable_bug1243_fix
1052enable_bug3020_fix
1053enable_irig_sawtooth
1054enable_nist
1055enable_ntp_signd
1056enable_ipv6
1057with_kame
1058enable_getifaddrs
1059enable_saveconfig
1060enable_leap_smear
1061enable_dynamic_interleave
1062with_gtest
1063enable_problem_tests
1064'
1065      ac_precious_vars='build_alias
1066host_alias
1067target_alias
1068CC
1069CFLAGS
1070LDFLAGS
1071LIBS
1072CPPFLAGS
1073CPP
1074YACC
1075YFLAGS
1076LT_SYS_LIBRARY_PATH'
1077ac_subdirs_all='sntp'
1078
1079# Initialize some variables set by options.
1080ac_init_help=
1081ac_init_version=false
1082ac_unrecognized_opts=
1083ac_unrecognized_sep=
1084# The variables have the same names as the options, with
1085# dashes changed to underlines.
1086cache_file=/dev/null
1087exec_prefix=NONE
1088no_create=
1089no_recursion=
1090prefix=NONE
1091program_prefix=NONE
1092program_suffix=NONE
1093program_transform_name=s,x,x,
1094silent=
1095site=
1096srcdir=
1097verbose=
1098x_includes=NONE
1099x_libraries=NONE
1100
1101# Installation directory options.
1102# These are left unexpanded so users can "make install exec_prefix=/foo"
1103# and all the variables that are supposed to be based on exec_prefix
1104# by default will actually change.
1105# Use braces instead of parens because sh, perl, etc. also accept them.
1106# (The list follows the same order as the GNU Coding Standards.)
1107bindir='${exec_prefix}/bin'
1108sbindir='${exec_prefix}/sbin'
1109libexecdir='${exec_prefix}/libexec'
1110datarootdir='${prefix}/share'
1111datadir='${datarootdir}'
1112sysconfdir='${prefix}/etc'
1113sharedstatedir='${prefix}/com'
1114localstatedir='${prefix}/var'
1115includedir='${prefix}/include'
1116oldincludedir='/usr/include'
1117docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1118infodir='${datarootdir}/info'
1119htmldir='${docdir}'
1120dvidir='${docdir}'
1121pdfdir='${docdir}'
1122psdir='${docdir}'
1123libdir='${exec_prefix}/lib'
1124localedir='${datarootdir}/locale'
1125mandir='${datarootdir}/man'
1126
1127ac_prev=
1128ac_dashdash=
1129for ac_option
1130do
1131  # If the previous option needs an argument, assign it.
1132  if test -n "$ac_prev"; then
1133    eval $ac_prev=\$ac_option
1134    ac_prev=
1135    continue
1136  fi
1137
1138  case $ac_option in
1139  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1140  *=)   ac_optarg= ;;
1141  *)    ac_optarg=yes ;;
1142  esac
1143
1144  # Accept the important Cygnus configure options, so we can diagnose typos.
1145
1146  case $ac_dashdash$ac_option in
1147  --)
1148    ac_dashdash=yes ;;
1149
1150  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1151    ac_prev=bindir ;;
1152  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1153    bindir=$ac_optarg ;;
1154
1155  -build | --build | --buil | --bui | --bu)
1156    ac_prev=build_alias ;;
1157  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1158    build_alias=$ac_optarg ;;
1159
1160  -cache-file | --cache-file | --cache-fil | --cache-fi \
1161  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1162    ac_prev=cache_file ;;
1163  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1164  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1165    cache_file=$ac_optarg ;;
1166
1167  --config-cache | -C)
1168    cache_file=config.cache ;;
1169
1170  -datadir | --datadir | --datadi | --datad)
1171    ac_prev=datadir ;;
1172  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1173    datadir=$ac_optarg ;;
1174
1175  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1176  | --dataroo | --dataro | --datar)
1177    ac_prev=datarootdir ;;
1178  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1179  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1180    datarootdir=$ac_optarg ;;
1181
1182  -disable-* | --disable-*)
1183    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1184    # Reject names that are not valid shell variable names.
1185    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186      as_fn_error $? "invalid feature name: $ac_useropt"
1187    ac_useropt_orig=$ac_useropt
1188    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189    case $ac_user_opts in
1190      *"
1191"enable_$ac_useropt"
1192"*) ;;
1193      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1194	 ac_unrecognized_sep=', ';;
1195    esac
1196    eval enable_$ac_useropt=no ;;
1197
1198  -docdir | --docdir | --docdi | --doc | --do)
1199    ac_prev=docdir ;;
1200  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1201    docdir=$ac_optarg ;;
1202
1203  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1204    ac_prev=dvidir ;;
1205  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1206    dvidir=$ac_optarg ;;
1207
1208  -enable-* | --enable-*)
1209    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1210    # Reject names that are not valid shell variable names.
1211    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212      as_fn_error $? "invalid feature name: $ac_useropt"
1213    ac_useropt_orig=$ac_useropt
1214    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215    case $ac_user_opts in
1216      *"
1217"enable_$ac_useropt"
1218"*) ;;
1219      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1220	 ac_unrecognized_sep=', ';;
1221    esac
1222    eval enable_$ac_useropt=\$ac_optarg ;;
1223
1224  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1225  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1226  | --exec | --exe | --ex)
1227    ac_prev=exec_prefix ;;
1228  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1229  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1230  | --exec=* | --exe=* | --ex=*)
1231    exec_prefix=$ac_optarg ;;
1232
1233  -gas | --gas | --ga | --g)
1234    # Obsolete; use --with-gas.
1235    with_gas=yes ;;
1236
1237  -help | --help | --hel | --he | -h)
1238    ac_init_help=long ;;
1239  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1240    ac_init_help=recursive ;;
1241  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1242    ac_init_help=short ;;
1243
1244  -host | --host | --hos | --ho)
1245    ac_prev=host_alias ;;
1246  -host=* | --host=* | --hos=* | --ho=*)
1247    host_alias=$ac_optarg ;;
1248
1249  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1250    ac_prev=htmldir ;;
1251  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1252  | --ht=*)
1253    htmldir=$ac_optarg ;;
1254
1255  -includedir | --includedir | --includedi | --included | --include \
1256  | --includ | --inclu | --incl | --inc)
1257    ac_prev=includedir ;;
1258  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1259  | --includ=* | --inclu=* | --incl=* | --inc=*)
1260    includedir=$ac_optarg ;;
1261
1262  -infodir | --infodir | --infodi | --infod | --info | --inf)
1263    ac_prev=infodir ;;
1264  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1265    infodir=$ac_optarg ;;
1266
1267  -libdir | --libdir | --libdi | --libd)
1268    ac_prev=libdir ;;
1269  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1270    libdir=$ac_optarg ;;
1271
1272  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1273  | --libexe | --libex | --libe)
1274    ac_prev=libexecdir ;;
1275  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1276  | --libexe=* | --libex=* | --libe=*)
1277    libexecdir=$ac_optarg ;;
1278
1279  -localedir | --localedir | --localedi | --localed | --locale)
1280    ac_prev=localedir ;;
1281  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1282    localedir=$ac_optarg ;;
1283
1284  -localstatedir | --localstatedir | --localstatedi | --localstated \
1285  | --localstate | --localstat | --localsta | --localst | --locals)
1286    ac_prev=localstatedir ;;
1287  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1288  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1289    localstatedir=$ac_optarg ;;
1290
1291  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1292    ac_prev=mandir ;;
1293  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1294    mandir=$ac_optarg ;;
1295
1296  -nfp | --nfp | --nf)
1297    # Obsolete; use --without-fp.
1298    with_fp=no ;;
1299
1300  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1301  | --no-cr | --no-c | -n)
1302    no_create=yes ;;
1303
1304  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1305  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1306    no_recursion=yes ;;
1307
1308  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1309  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1310  | --oldin | --oldi | --old | --ol | --o)
1311    ac_prev=oldincludedir ;;
1312  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1313  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1314  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1315    oldincludedir=$ac_optarg ;;
1316
1317  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1318    ac_prev=prefix ;;
1319  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1320    prefix=$ac_optarg ;;
1321
1322  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1323  | --program-pre | --program-pr | --program-p)
1324    ac_prev=program_prefix ;;
1325  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1326  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1327    program_prefix=$ac_optarg ;;
1328
1329  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1330  | --program-suf | --program-su | --program-s)
1331    ac_prev=program_suffix ;;
1332  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1333  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1334    program_suffix=$ac_optarg ;;
1335
1336  -program-transform-name | --program-transform-name \
1337  | --program-transform-nam | --program-transform-na \
1338  | --program-transform-n | --program-transform- \
1339  | --program-transform | --program-transfor \
1340  | --program-transfo | --program-transf \
1341  | --program-trans | --program-tran \
1342  | --progr-tra | --program-tr | --program-t)
1343    ac_prev=program_transform_name ;;
1344  -program-transform-name=* | --program-transform-name=* \
1345  | --program-transform-nam=* | --program-transform-na=* \
1346  | --program-transform-n=* | --program-transform-=* \
1347  | --program-transform=* | --program-transfor=* \
1348  | --program-transfo=* | --program-transf=* \
1349  | --program-trans=* | --program-tran=* \
1350  | --progr-tra=* | --program-tr=* | --program-t=*)
1351    program_transform_name=$ac_optarg ;;
1352
1353  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1354    ac_prev=pdfdir ;;
1355  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1356    pdfdir=$ac_optarg ;;
1357
1358  -psdir | --psdir | --psdi | --psd | --ps)
1359    ac_prev=psdir ;;
1360  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1361    psdir=$ac_optarg ;;
1362
1363  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1364  | -silent | --silent | --silen | --sile | --sil)
1365    silent=yes ;;
1366
1367  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1368    ac_prev=sbindir ;;
1369  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1370  | --sbi=* | --sb=*)
1371    sbindir=$ac_optarg ;;
1372
1373  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1374  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1375  | --sharedst | --shareds | --shared | --share | --shar \
1376  | --sha | --sh)
1377    ac_prev=sharedstatedir ;;
1378  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1379  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1380  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1381  | --sha=* | --sh=*)
1382    sharedstatedir=$ac_optarg ;;
1383
1384  -site | --site | --sit)
1385    ac_prev=site ;;
1386  -site=* | --site=* | --sit=*)
1387    site=$ac_optarg ;;
1388
1389  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1390    ac_prev=srcdir ;;
1391  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1392    srcdir=$ac_optarg ;;
1393
1394  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1395  | --syscon | --sysco | --sysc | --sys | --sy)
1396    ac_prev=sysconfdir ;;
1397  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1398  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1399    sysconfdir=$ac_optarg ;;
1400
1401  -target | --target | --targe | --targ | --tar | --ta | --t)
1402    ac_prev=target_alias ;;
1403  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1404    target_alias=$ac_optarg ;;
1405
1406  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1407    verbose=yes ;;
1408
1409  -version | --version | --versio | --versi | --vers | -V)
1410    ac_init_version=: ;;
1411
1412  -with-* | --with-*)
1413    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1414    # Reject names that are not valid shell variable names.
1415    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1416      as_fn_error $? "invalid package name: $ac_useropt"
1417    ac_useropt_orig=$ac_useropt
1418    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1419    case $ac_user_opts in
1420      *"
1421"with_$ac_useropt"
1422"*) ;;
1423      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1424	 ac_unrecognized_sep=', ';;
1425    esac
1426    eval with_$ac_useropt=\$ac_optarg ;;
1427
1428  -without-* | --without-*)
1429    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1430    # Reject names that are not valid shell variable names.
1431    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1432      as_fn_error $? "invalid package name: $ac_useropt"
1433    ac_useropt_orig=$ac_useropt
1434    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1435    case $ac_user_opts in
1436      *"
1437"with_$ac_useropt"
1438"*) ;;
1439      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1440	 ac_unrecognized_sep=', ';;
1441    esac
1442    eval with_$ac_useropt=no ;;
1443
1444  --x)
1445    # Obsolete; use --with-x.
1446    with_x=yes ;;
1447
1448  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1449  | --x-incl | --x-inc | --x-in | --x-i)
1450    ac_prev=x_includes ;;
1451  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1452  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1453    x_includes=$ac_optarg ;;
1454
1455  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1456  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1457    ac_prev=x_libraries ;;
1458  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1459  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1460    x_libraries=$ac_optarg ;;
1461
1462  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1463Try \`$0 --help' for more information"
1464    ;;
1465
1466  *=*)
1467    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1468    # Reject names that are not valid shell variable names.
1469    case $ac_envvar in #(
1470      '' | [0-9]* | *[!_$as_cr_alnum]* )
1471      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1472    esac
1473    eval $ac_envvar=\$ac_optarg
1474    export $ac_envvar ;;
1475
1476  *)
1477    # FIXME: should be removed in autoconf 3.0.
1478    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1479    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1480      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1481    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1482    ;;
1483
1484  esac
1485done
1486
1487if test -n "$ac_prev"; then
1488  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1489  as_fn_error $? "missing argument to $ac_option"
1490fi
1491
1492if test -n "$ac_unrecognized_opts"; then
1493  case $enable_option_checking in
1494    no) ;;
1495    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1496    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1497  esac
1498fi
1499
1500# Check all directory arguments for consistency.
1501for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1502		datadir sysconfdir sharedstatedir localstatedir includedir \
1503		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1504		libdir localedir mandir
1505do
1506  eval ac_val=\$$ac_var
1507  # Remove trailing slashes.
1508  case $ac_val in
1509    */ )
1510      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1511      eval $ac_var=\$ac_val;;
1512  esac
1513  # Be sure to have absolute directory names.
1514  case $ac_val in
1515    [\\/$]* | ?:[\\/]* )  continue;;
1516    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1517  esac
1518  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1519done
1520
1521# There might be people who depend on the old broken behavior: `$host'
1522# used to hold the argument of --host etc.
1523# FIXME: To remove some day.
1524build=$build_alias
1525host=$host_alias
1526target=$target_alias
1527
1528# FIXME: To remove some day.
1529if test "x$host_alias" != x; then
1530  if test "x$build_alias" = x; then
1531    cross_compiling=maybe
1532  elif test "x$build_alias" != "x$host_alias"; then
1533    cross_compiling=yes
1534  fi
1535fi
1536
1537ac_tool_prefix=
1538test -n "$host_alias" && ac_tool_prefix=$host_alias-
1539
1540test "$silent" = yes && exec 6>/dev/null
1541
1542
1543ac_pwd=`pwd` && test -n "$ac_pwd" &&
1544ac_ls_di=`ls -di .` &&
1545ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1546  as_fn_error $? "working directory cannot be determined"
1547test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1548  as_fn_error $? "pwd does not report name of working directory"
1549
1550
1551# Find the source files, if location was not specified.
1552if test -z "$srcdir"; then
1553  ac_srcdir_defaulted=yes
1554  # Try the directory containing this script, then the parent directory.
1555  ac_confdir=`$as_dirname -- "$as_myself" ||
1556$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1557	 X"$as_myself" : 'X\(//\)[^/]' \| \
1558	 X"$as_myself" : 'X\(//\)$' \| \
1559	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1560$as_echo X"$as_myself" |
1561    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1562	    s//\1/
1563	    q
1564	  }
1565	  /^X\(\/\/\)[^/].*/{
1566	    s//\1/
1567	    q
1568	  }
1569	  /^X\(\/\/\)$/{
1570	    s//\1/
1571	    q
1572	  }
1573	  /^X\(\/\).*/{
1574	    s//\1/
1575	    q
1576	  }
1577	  s/.*/./; q'`
1578  srcdir=$ac_confdir
1579  if test ! -r "$srcdir/$ac_unique_file"; then
1580    srcdir=..
1581  fi
1582else
1583  ac_srcdir_defaulted=no
1584fi
1585if test ! -r "$srcdir/$ac_unique_file"; then
1586  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1587  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1588fi
1589ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1590ac_abs_confdir=`(
1591	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1592	pwd)`
1593# When building in place, set srcdir=.
1594if test "$ac_abs_confdir" = "$ac_pwd"; then
1595  srcdir=.
1596fi
1597# Remove unnecessary trailing slashes from srcdir.
1598# Double slashes in file names in object file debugging info
1599# mess up M-x gdb in Emacs.
1600case $srcdir in
1601*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1602esac
1603for ac_var in $ac_precious_vars; do
1604  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1605  eval ac_env_${ac_var}_value=\$${ac_var}
1606  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1607  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1608done
1609
1610#
1611# Report the --help message.
1612#
1613if test "$ac_init_help" = "long"; then
1614  # Omit some internal or obsolete options to make the list less imposing.
1615  # This message is too long to be a string in the A/UX 3.1 sh.
1616  cat <<_ACEOF
1617\`configure' configures ntp 4.2.8p11 to adapt to many kinds of systems.
1618
1619Usage: $0 [OPTION]... [VAR=VALUE]...
1620
1621To assign environment variables (e.g., CC, CFLAGS...), specify them as
1622VAR=VALUE.  See below for descriptions of some of the useful variables.
1623
1624Defaults for the options are specified in brackets.
1625
1626Configuration:
1627  -h, --help              display this help and exit
1628      --help=short        display options specific to this package
1629      --help=recursive    display the short help of all the included packages
1630  -V, --version           display version information and exit
1631  -q, --quiet, --silent   do not print \`checking ...' messages
1632      --cache-file=FILE   cache test results in FILE [disabled]
1633  -C, --config-cache      alias for \`--cache-file=config.cache'
1634  -n, --no-create         do not create output files
1635      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1636
1637Installation directories:
1638  --prefix=PREFIX         install architecture-independent files in PREFIX
1639                          [$ac_default_prefix]
1640  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1641                          [PREFIX]
1642
1643By default, \`make install' will install all the files in
1644\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1645an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1646for instance \`--prefix=\$HOME'.
1647
1648For better control, use the options below.
1649
1650Fine tuning of the installation directories:
1651  --bindir=DIR            user executables [EPREFIX/bin]
1652  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1653  --libexecdir=DIR        program executables [EPREFIX/libexec]
1654  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1655  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1656  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1657  --libdir=DIR            object code libraries [EPREFIX/lib]
1658  --includedir=DIR        C header files [PREFIX/include]
1659  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1660  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1661  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1662  --infodir=DIR           info documentation [DATAROOTDIR/info]
1663  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1664  --mandir=DIR            man documentation [DATAROOTDIR/man]
1665  --docdir=DIR            documentation root [DATAROOTDIR/doc/ntp]
1666  --htmldir=DIR           html documentation [DOCDIR]
1667  --dvidir=DIR            dvi documentation [DOCDIR]
1668  --pdfdir=DIR            pdf documentation [DOCDIR]
1669  --psdir=DIR             ps documentation [DOCDIR]
1670_ACEOF
1671
1672  cat <<\_ACEOF
1673
1674Program names:
1675  --program-prefix=PREFIX            prepend PREFIX to installed program names
1676  --program-suffix=SUFFIX            append SUFFIX to installed program names
1677  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1678
1679System types:
1680  --build=BUILD     configure for building on BUILD [guessed]
1681  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1682_ACEOF
1683fi
1684
1685if test -n "$ac_init_help"; then
1686  case $ac_init_help in
1687     short | recursive ) echo "Configuration of ntp 4.2.8p11:";;
1688   esac
1689  cat <<\_ACEOF
1690
1691Optional Features and Packages:
1692  --disable-option-checking  ignore unrecognized --enable/--with options
1693  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1694  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1695  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1696  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1697  --enable-silent-rules   less verbose build output (undo: "make V=1")
1698  --disable-silent-rules  verbose build output (undo: "make V=0")
1699  --enable-dependency-tracking
1700                          do not reject slow dependency extractors
1701  --disable-dependency-tracking
1702                          speeds up one-time build
1703  --with-hardenfile=XXX   os-specific or "/dev/null"
1704  --with-locfile=XXX      os-specific or "legacy"
1705  --enable-shared[=PKGS]  build shared libraries [default=no]
1706  --enable-static[=PKGS]  build static libraries [default=yes]
1707  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1708                          both]
1709  --enable-fast-install[=PKGS]
1710                          optimize for fast installation [default=yes]
1711  --with-aix-soname=aix|svr4|both
1712                          shared library versioning (aka "SONAME") variant to
1713                          provide on AIX, [default=aix].
1714  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1715  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1716                          compiler's sysroot if not specified).
1717  --disable-libtool-lock  avoid locking (might break parallel builds)
1718  --disable-nls           disable nls support in libopts
1719  --enable-local-libopts  Use the supplied libopts tearoff code
1720  --enable-libopts-install
1721                          Install libopts with client installation
1722  --with-autoopts-config  specify the config-info script
1723  --enable-local-libevent Force using the supplied libevent tearoff code
1724  --with-lineeditlibs     edit,editline (readline may be specified if desired)
1725  defaults:               + yes, - no, s system-specific
1726  --enable-debugging      + include ntpd debugging code
1727  --enable-thread-support s use threads (+ if available)
1728  --with-threads	  with threads [auto]
1729  --with-yielding-select  with yielding select [auto]
1730  --enable-c99-snprintf   s force replacement
1731  --enable-clockctl       s Use /dev/clockctl for non-root clock control
1732  --enable-linuxcaps      + Use Linux capabilities for non-root clock control
1733  --enable-solarisprivs   + Use Solaris privileges for non-root clock control
1734  --with-arlib            - deprecated, arlib not distributed
1735  --with-net-snmp-config  + =net-snmp-config
1736  --enable-libseccomp     EXPERIMENTAL: enable support for libseccomp
1737                          sandboxing (default is no)
1738  --with-stack-limit      ? =50 (200 for openbsd) 4k pages
1739  --with-memlock          ? =32 (-1 on linux) megabytes
1740  --enable-debug-timing   - include processing time debugging code (costs
1741                          performance)
1742  --enable-dst-minutes    =60 minutes per DST adjustment
1743  --enable-ignore-dns-errors
1744                          - retry DNS queries on any error
1745  --enable-BANCOMM        - Datum/Bancomm bc635/VME interface
1746  --enable-GPSVME         - TrueTime GPS receiver/VME interface
1747  --enable-all-clocks     + include all suitable non-PARSE clocks:
1748  --enable-ACTS           s ACTS modem service
1749  --enable-ARBITER        + Arbiter 1088A/B GPS receiver
1750  --enable-ARCRON-MSF     + Arcron MSF receiver
1751  --enable-AS2201         + Austron 2200A/2201A GPS receiver
1752  --enable-ATOM           s ATOM PPS interface
1753  --enable-CHRONOLOG      + Chrono-log K-series WWVB receiver
1754  --enable-CHU            + CHU modem/decoder
1755  --enable-AUDIO-CHU      s CHU audio/decoder
1756  --enable-DATUM          s Datum Programmable Time System
1757  --enable-DUMBCLOCK      + Dumb generic hh:mm:ss local clock
1758  --enable-FG             + Forum Graphic GPS
1759  --enable-HEATH          s Heath GC-1000 WWV/WWVH receiver
1760  --enable-HOPFSERIAL     + hopf serial clock device
1761  --enable-HOPFPCI        + hopf 6039 PCI board
1762  --enable-HPGPS          + HP 58503A GPS receiver
1763  --enable-IRIG           s IRIG audio decoder
1764  --enable-JJY            + JJY receiver
1765  --enable-JUPITER        s Rockwell Jupiter GPS receiver
1766  --enable-LEITCH         + Leitch CSD 5300 Master Clock System Driver
1767  --enable-LOCAL-CLOCK    + local clock reference
1768  --enable-MX4200         s Magnavox MX4200 GPS receiver
1769  --enable-NEOCLOCK4X     + NeoClock4X DCF77 / TDF receiver
1770  --enable-NMEA           + NMEA GPS receiver
1771  --enable-GPSD           + GPSD JSON receiver
1772  --enable-ONCORE         s Motorola VP/UT Oncore GPS receiver
1773  --enable-PALISADE       s Palisade clock
1774  --enable-PCF            + Conrad parallel port radio clock
1775  --enable-PST            + PST/Traconex 1020 WWV/WWVH receiver
1776  --enable-RIPENCC        - RIPENCC specific Trimble driver
1777  --enable-SHM            s SHM clock attached thru shared memory
1778  --enable-SPECTRACOM     + Spectracom 8170/Netclock/2 WWVB receiver
1779  --enable-TPRO           s KSI/Odetics TPRO/S GPS receiver/IRIG interface
1780  --enable-TRUETIME       s Kinemetrics/TrueTime receivers
1781  --enable-TT560          - TrueTime 560 IRIG-B decoder
1782  --enable-ULINK          + Ultralink WWVB receiver
1783  --enable-TSYNCPCI       s Spectracom TSYNC timing board
1784  --enable-WWV            s WWV Audio receiver
1785  --enable-ZYFER          + Zyfer GPStarplus receiver
1786  --enable-parse-clocks   - include all suitable PARSE clocks:
1787  --enable-COMPUTIME      s Diem Computime Radio Clock
1788  --enable-DCF7000        s ELV/DCF7000 clock
1789  --enable-HOPF6021       s HOPF 6021 clock
1790  --enable-MEINBERG       s Meinberg clocks
1791  --enable-RAWDCF         s DCF77 raw time code
1792  --enable-RCC8000        s RCC 8000 clock
1793  --enable-SCHMID         s Schmid DCF77 clock
1794  --enable-TRIMTAIP       s Trimble GPS receiver/TAIP protocol
1795  --enable-TRIMTSIP       s Trimble GPS receiver/TSIP protocol
1796  --enable-WHARTON        s WHARTON 400A Series clock
1797  --enable-VARITEXT       s VARITEXT clock
1798  --enable-SEL240X        s SEL240X clock
1799  --with-crypto           + =openssl,libcrypto
1800
1801  --with-openssl-libdir   + =/something/reasonable
1802
1803  --with-openssl-incdir   + =/something/reasonable
1804
1805  --without-rpath         s Disable auto-added -R linker paths
1806
1807  --enable-openssl-random Use OpenSSL's crypto random number functions, if
1808                          available (default is yes)
1809  --enable-autokey        + support NTP Autokey protocol
1810  --enable-kmem           s read /dev/kmem for tick and/or tickadj
1811  --enable-accurate-adjtime
1812                          s the adjtime() call is accurate
1813  --enable-tick=VALUE     s force a value for 'tick'
1814  --enable-tickadj=VALUE  s force a value for 'tickadj'
1815  --enable-simulator      - build/install the NTPD simulator?
1816  --without-sntp          - disable building sntp and sntp/tests
1817  --with-ntpsnmpd         s Build ntpsnmpd MIB agent?
1818  --enable-slew-always    s always slew the time
1819  --enable-step-slew      s step and slew the time
1820  --enable-ntpdate-step   s if ntpdate should step the time
1821  --enable-hourly-todr-sync
1822                          s if we should sync TODR hourly
1823  --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
1824  --enable-bug1243-fix    + use unmodified autokey session keys
1825  --enable-bug3020-fix    + Provide the explicit 127.0.0.0/8 martian filter
1826  --enable-irig-sawtooth  s if we should enable the IRIG sawtooth filter
1827  --enable-nist           - if we should enable the NIST lockclock scheme
1828  --enable-ntp-signd      - Provide support for Samba's signing daemon,
1829                          =/var/run/ntp_signd
1830  --enable-ipv6           s use IPv6?
1831
1832  --with-kame             - =/usr/local/v6
1833  --enable-getifaddrs     + Enable the use of getifaddrs() [[yes|no]].
1834  --enable-saveconfig     + saveconfig mechanism
1835  --enable-leap-smear     - experimental leap smear code
1836  --enable-dynamic-interleave
1837                          - dynamic interleave support
1838  --with-gtest            Use the gtest framework (Default: if it's available)
1839  --enable-problem-tests  + enable tests with undiagnosed problems
1840
1841Some influential environment variables:
1842  CC          C compiler command
1843  CFLAGS      C compiler flags
1844  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1845              nonstandard directory <lib dir>
1846  LIBS        libraries to pass to the linker, e.g. -l<library>
1847  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1848              you have headers in a nonstandard directory <include dir>
1849  CPP         C preprocessor
1850  YACC        The `Yet Another Compiler Compiler' implementation to use.
1851              Defaults to the first program found out of: `bison -y', `byacc',
1852              `yacc'.
1853  YFLAGS      The list of arguments that will be passed by default to $YACC.
1854              This script will default YFLAGS to the empty string to avoid a
1855              default value of `-d' given by some make applications.
1856  LT_SYS_LIBRARY_PATH
1857              User-defined run-time library search path.
1858
1859Use these variables to override the choices made by `configure' or to help
1860it to find libraries and programs with nonstandard names/locations.
1861
1862Report bugs to <http://bugs.ntp.org./>.
1863ntp home page: <http://www.ntp.org./>.
1864_ACEOF
1865ac_status=$?
1866fi
1867
1868if test "$ac_init_help" = "recursive"; then
1869  # If there are subdirs, report their specific --help.
1870  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1871    test -d "$ac_dir" ||
1872      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1873      continue
1874    ac_builddir=.
1875
1876case "$ac_dir" in
1877.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1878*)
1879  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1880  # A ".." for each directory in $ac_dir_suffix.
1881  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1882  case $ac_top_builddir_sub in
1883  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1884  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1885  esac ;;
1886esac
1887ac_abs_top_builddir=$ac_pwd
1888ac_abs_builddir=$ac_pwd$ac_dir_suffix
1889# for backward compatibility:
1890ac_top_builddir=$ac_top_build_prefix
1891
1892case $srcdir in
1893  .)  # We are building in place.
1894    ac_srcdir=.
1895    ac_top_srcdir=$ac_top_builddir_sub
1896    ac_abs_top_srcdir=$ac_pwd ;;
1897  [\\/]* | ?:[\\/]* )  # Absolute name.
1898    ac_srcdir=$srcdir$ac_dir_suffix;
1899    ac_top_srcdir=$srcdir
1900    ac_abs_top_srcdir=$srcdir ;;
1901  *) # Relative name.
1902    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1903    ac_top_srcdir=$ac_top_build_prefix$srcdir
1904    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1905esac
1906ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1907
1908    cd "$ac_dir" || { ac_status=$?; continue; }
1909    # Check for guested configure.
1910    if test -f "$ac_srcdir/configure.gnu"; then
1911      echo &&
1912      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1913    elif test -f "$ac_srcdir/configure"; then
1914      echo &&
1915      $SHELL "$ac_srcdir/configure" --help=recursive
1916    else
1917      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1918    fi || ac_status=$?
1919    cd "$ac_pwd" || { ac_status=$?; break; }
1920  done
1921fi
1922
1923test -n "$ac_init_help" && exit $ac_status
1924if $ac_init_version; then
1925  cat <<\_ACEOF
1926ntp configure 4.2.8p11
1927generated by GNU Autoconf 2.69
1928
1929Copyright (C) 2012 Free Software Foundation, Inc.
1930This configure script is free software; the Free Software Foundation
1931gives unlimited permission to copy, distribute and modify it.
1932_ACEOF
1933  exit
1934fi
1935
1936## ------------------------ ##
1937## Autoconf initialization. ##
1938## ------------------------ ##
1939
1940# ac_fn_c_try_compile LINENO
1941# --------------------------
1942# Try to compile conftest.$ac_ext, and return whether this succeeded.
1943ac_fn_c_try_compile ()
1944{
1945  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946  rm -f conftest.$ac_objext
1947  if { { ac_try="$ac_compile"
1948case "(($ac_try" in
1949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950  *) ac_try_echo=$ac_try;;
1951esac
1952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953$as_echo "$ac_try_echo"; } >&5
1954  (eval "$ac_compile") 2>conftest.err
1955  ac_status=$?
1956  if test -s conftest.err; then
1957    grep -v '^ *+' conftest.err >conftest.er1
1958    cat conftest.er1 >&5
1959    mv -f conftest.er1 conftest.err
1960  fi
1961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962  test $ac_status = 0; } && {
1963	 test -z "$ac_c_werror_flag" ||
1964	 test ! -s conftest.err
1965       } && test -s conftest.$ac_objext; then :
1966  ac_retval=0
1967else
1968  $as_echo "$as_me: failed program was:" >&5
1969sed 's/^/| /' conftest.$ac_ext >&5
1970
1971	ac_retval=1
1972fi
1973  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974  as_fn_set_status $ac_retval
1975
1976} # ac_fn_c_try_compile
1977
1978# ac_fn_c_try_cpp LINENO
1979# ----------------------
1980# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1981ac_fn_c_try_cpp ()
1982{
1983  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984  if { { ac_try="$ac_cpp conftest.$ac_ext"
1985case "(($ac_try" in
1986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987  *) ac_try_echo=$ac_try;;
1988esac
1989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990$as_echo "$ac_try_echo"; } >&5
1991  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1992  ac_status=$?
1993  if test -s conftest.err; then
1994    grep -v '^ *+' conftest.err >conftest.er1
1995    cat conftest.er1 >&5
1996    mv -f conftest.er1 conftest.err
1997  fi
1998  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999  test $ac_status = 0; } > conftest.i && {
2000	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2001	 test ! -s conftest.err
2002       }; then :
2003  ac_retval=0
2004else
2005  $as_echo "$as_me: failed program was:" >&5
2006sed 's/^/| /' conftest.$ac_ext >&5
2007
2008    ac_retval=1
2009fi
2010  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011  as_fn_set_status $ac_retval
2012
2013} # ac_fn_c_try_cpp
2014
2015# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2016# -------------------------------------------------------
2017# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2018# the include files in INCLUDES and setting the cache variable VAR
2019# accordingly.
2020ac_fn_c_check_header_mongrel ()
2021{
2022  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023  if eval \${$3+:} false; then :
2024  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2025$as_echo_n "checking for $2... " >&6; }
2026if eval \${$3+:} false; then :
2027  $as_echo_n "(cached) " >&6
2028fi
2029eval ac_res=\$$3
2030	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2031$as_echo "$ac_res" >&6; }
2032else
2033  # Is the header compilable?
2034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2035$as_echo_n "checking $2 usability... " >&6; }
2036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037/* end confdefs.h.  */
2038$4
2039#include <$2>
2040_ACEOF
2041if ac_fn_c_try_compile "$LINENO"; then :
2042  ac_header_compiler=yes
2043else
2044  ac_header_compiler=no
2045fi
2046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2048$as_echo "$ac_header_compiler" >&6; }
2049
2050# Is the header present?
2051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2052$as_echo_n "checking $2 presence... " >&6; }
2053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054/* end confdefs.h.  */
2055#include <$2>
2056_ACEOF
2057if ac_fn_c_try_cpp "$LINENO"; then :
2058  ac_header_preproc=yes
2059else
2060  ac_header_preproc=no
2061fi
2062rm -f conftest.err conftest.i conftest.$ac_ext
2063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2064$as_echo "$ac_header_preproc" >&6; }
2065
2066# So?  What about this header?
2067case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2068  yes:no: )
2069    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2070$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2071    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2072$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2073    ;;
2074  no:yes:* )
2075    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2076$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2077    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2078$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2079    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2080$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2081    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2082$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2083    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2084$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2085( $as_echo "## ------------------------------------ ##
2086## Report this to http://bugs.ntp.org./ ##
2087## ------------------------------------ ##"
2088     ) | sed "s/^/$as_me: WARNING:     /" >&2
2089    ;;
2090esac
2091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092$as_echo_n "checking for $2... " >&6; }
2093if eval \${$3+:} false; then :
2094  $as_echo_n "(cached) " >&6
2095else
2096  eval "$3=\$ac_header_compiler"
2097fi
2098eval ac_res=\$$3
2099	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100$as_echo "$ac_res" >&6; }
2101fi
2102  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103
2104} # ac_fn_c_check_header_mongrel
2105
2106# ac_fn_c_try_run LINENO
2107# ----------------------
2108# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2109# that executables *can* be run.
2110ac_fn_c_try_run ()
2111{
2112  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113  if { { ac_try="$ac_link"
2114case "(($ac_try" in
2115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116  *) ac_try_echo=$ac_try;;
2117esac
2118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2119$as_echo "$ac_try_echo"; } >&5
2120  (eval "$ac_link") 2>&5
2121  ac_status=$?
2122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2123  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2124  { { case "(($ac_try" in
2125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126  *) ac_try_echo=$ac_try;;
2127esac
2128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2129$as_echo "$ac_try_echo"; } >&5
2130  (eval "$ac_try") 2>&5
2131  ac_status=$?
2132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2133  test $ac_status = 0; }; }; then :
2134  ac_retval=0
2135else
2136  $as_echo "$as_me: program exited with status $ac_status" >&5
2137       $as_echo "$as_me: failed program was:" >&5
2138sed 's/^/| /' conftest.$ac_ext >&5
2139
2140       ac_retval=$ac_status
2141fi
2142  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2143  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2144  as_fn_set_status $ac_retval
2145
2146} # ac_fn_c_try_run
2147
2148# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2149# -------------------------------------------------------
2150# Tests whether HEADER exists and can be compiled using the include files in
2151# INCLUDES, setting the cache variable VAR accordingly.
2152ac_fn_c_check_header_compile ()
2153{
2154  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156$as_echo_n "checking for $2... " >&6; }
2157if eval \${$3+:} false; then :
2158  $as_echo_n "(cached) " >&6
2159else
2160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161/* end confdefs.h.  */
2162$4
2163#include <$2>
2164_ACEOF
2165if ac_fn_c_try_compile "$LINENO"; then :
2166  eval "$3=yes"
2167else
2168  eval "$3=no"
2169fi
2170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171fi
2172eval ac_res=\$$3
2173	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2174$as_echo "$ac_res" >&6; }
2175  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176
2177} # ac_fn_c_check_header_compile
2178
2179# ac_fn_c_try_link LINENO
2180# -----------------------
2181# Try to link conftest.$ac_ext, and return whether this succeeded.
2182ac_fn_c_try_link ()
2183{
2184  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185  rm -f conftest.$ac_objext conftest$ac_exeext
2186  if { { ac_try="$ac_link"
2187case "(($ac_try" in
2188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189  *) ac_try_echo=$ac_try;;
2190esac
2191eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2192$as_echo "$ac_try_echo"; } >&5
2193  (eval "$ac_link") 2>conftest.err
2194  ac_status=$?
2195  if test -s conftest.err; then
2196    grep -v '^ *+' conftest.err >conftest.er1
2197    cat conftest.er1 >&5
2198    mv -f conftest.er1 conftest.err
2199  fi
2200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201  test $ac_status = 0; } && {
2202	 test -z "$ac_c_werror_flag" ||
2203	 test ! -s conftest.err
2204       } && test -s conftest$ac_exeext && {
2205	 test "$cross_compiling" = yes ||
2206	 test -x conftest$ac_exeext
2207       }; then :
2208  ac_retval=0
2209else
2210  $as_echo "$as_me: failed program was:" >&5
2211sed 's/^/| /' conftest.$ac_ext >&5
2212
2213	ac_retval=1
2214fi
2215  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2216  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2217  # interfere with the next link command; also delete a directory that is
2218  # left behind by Apple's compiler.  We do this before executing the actions.
2219  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2220  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221  as_fn_set_status $ac_retval
2222
2223} # ac_fn_c_try_link
2224
2225# ac_fn_c_check_func LINENO FUNC VAR
2226# ----------------------------------
2227# Tests whether FUNC exists, setting the cache variable VAR accordingly
2228ac_fn_c_check_func ()
2229{
2230  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232$as_echo_n "checking for $2... " >&6; }
2233if eval \${$3+:} false; then :
2234  $as_echo_n "(cached) " >&6
2235else
2236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237/* end confdefs.h.  */
2238/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2239   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2240#define $2 innocuous_$2
2241
2242/* System header to define __stub macros and hopefully few prototypes,
2243    which can conflict with char $2 (); below.
2244    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2245    <limits.h> exists even on freestanding compilers.  */
2246
2247#ifdef __STDC__
2248# include <limits.h>
2249#else
2250# include <assert.h>
2251#endif
2252
2253#undef $2
2254
2255/* Override any GCC internal prototype to avoid an error.
2256   Use char because int might match the return type of a GCC
2257   builtin and then its argument prototype would still apply.  */
2258#ifdef __cplusplus
2259extern "C"
2260#endif
2261char $2 ();
2262/* The GNU C library defines this for functions which it implements
2263    to always fail with ENOSYS.  Some functions are actually named
2264    something starting with __ and the normal name is an alias.  */
2265#if defined __stub_$2 || defined __stub___$2
2266choke me
2267#endif
2268
2269int
2270main ()
2271{
2272return $2 ();
2273  ;
2274  return 0;
2275}
2276_ACEOF
2277if ac_fn_c_try_link "$LINENO"; then :
2278  eval "$3=yes"
2279else
2280  eval "$3=no"
2281fi
2282rm -f core conftest.err conftest.$ac_objext \
2283    conftest$ac_exeext conftest.$ac_ext
2284fi
2285eval ac_res=\$$3
2286	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287$as_echo "$ac_res" >&6; }
2288  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2289
2290} # ac_fn_c_check_func
2291
2292# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2293# -------------------------------------------
2294# Tests whether TYPE exists after having included INCLUDES, setting cache
2295# variable VAR accordingly.
2296ac_fn_c_check_type ()
2297{
2298  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2300$as_echo_n "checking for $2... " >&6; }
2301if eval \${$3+:} false; then :
2302  $as_echo_n "(cached) " >&6
2303else
2304  eval "$3=no"
2305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306/* end confdefs.h.  */
2307$4
2308int
2309main ()
2310{
2311if (sizeof ($2))
2312	 return 0;
2313  ;
2314  return 0;
2315}
2316_ACEOF
2317if ac_fn_c_try_compile "$LINENO"; then :
2318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319/* end confdefs.h.  */
2320$4
2321int
2322main ()
2323{
2324if (sizeof (($2)))
2325	    return 0;
2326  ;
2327  return 0;
2328}
2329_ACEOF
2330if ac_fn_c_try_compile "$LINENO"; then :
2331
2332else
2333  eval "$3=yes"
2334fi
2335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336fi
2337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338fi
2339eval ac_res=\$$3
2340	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2341$as_echo "$ac_res" >&6; }
2342  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2343
2344} # ac_fn_c_check_type
2345
2346# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2347# --------------------------------------------
2348# Tries to find the compile-time value of EXPR in a program that includes
2349# INCLUDES, setting VAR accordingly. Returns whether the value could be
2350# computed
2351ac_fn_c_compute_int ()
2352{
2353  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2354  if test "$cross_compiling" = yes; then
2355    # Depending upon the size, compute the lo and hi bounds.
2356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2357/* end confdefs.h.  */
2358$4
2359int
2360main ()
2361{
2362static int test_array [1 - 2 * !(($2) >= 0)];
2363test_array [0] = 0;
2364return test_array [0];
2365
2366  ;
2367  return 0;
2368}
2369_ACEOF
2370if ac_fn_c_try_compile "$LINENO"; then :
2371  ac_lo=0 ac_mid=0
2372  while :; do
2373    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374/* end confdefs.h.  */
2375$4
2376int
2377main ()
2378{
2379static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2380test_array [0] = 0;
2381return test_array [0];
2382
2383  ;
2384  return 0;
2385}
2386_ACEOF
2387if ac_fn_c_try_compile "$LINENO"; then :
2388  ac_hi=$ac_mid; break
2389else
2390  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2391			if test $ac_lo -le $ac_mid; then
2392			  ac_lo= ac_hi=
2393			  break
2394			fi
2395			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2396fi
2397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2398  done
2399else
2400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401/* end confdefs.h.  */
2402$4
2403int
2404main ()
2405{
2406static int test_array [1 - 2 * !(($2) < 0)];
2407test_array [0] = 0;
2408return test_array [0];
2409
2410  ;
2411  return 0;
2412}
2413_ACEOF
2414if ac_fn_c_try_compile "$LINENO"; then :
2415  ac_hi=-1 ac_mid=-1
2416  while :; do
2417    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418/* end confdefs.h.  */
2419$4
2420int
2421main ()
2422{
2423static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2424test_array [0] = 0;
2425return test_array [0];
2426
2427  ;
2428  return 0;
2429}
2430_ACEOF
2431if ac_fn_c_try_compile "$LINENO"; then :
2432  ac_lo=$ac_mid; break
2433else
2434  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2435			if test $ac_mid -le $ac_hi; then
2436			  ac_lo= ac_hi=
2437			  break
2438			fi
2439			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2440fi
2441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442  done
2443else
2444  ac_lo= ac_hi=
2445fi
2446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447fi
2448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449# Binary search between lo and hi bounds.
2450while test "x$ac_lo" != "x$ac_hi"; do
2451  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453/* end confdefs.h.  */
2454$4
2455int
2456main ()
2457{
2458static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2459test_array [0] = 0;
2460return test_array [0];
2461
2462  ;
2463  return 0;
2464}
2465_ACEOF
2466if ac_fn_c_try_compile "$LINENO"; then :
2467  ac_hi=$ac_mid
2468else
2469  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2470fi
2471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2472done
2473case $ac_lo in #((
2474?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2475'') ac_retval=1 ;;
2476esac
2477  else
2478    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479/* end confdefs.h.  */
2480$4
2481static long int longval () { return $2; }
2482static unsigned long int ulongval () { return $2; }
2483#include <stdio.h>
2484#include <stdlib.h>
2485int
2486main ()
2487{
2488
2489  FILE *f = fopen ("conftest.val", "w");
2490  if (! f)
2491    return 1;
2492  if (($2) < 0)
2493    {
2494      long int i = longval ();
2495      if (i != ($2))
2496	return 1;
2497      fprintf (f, "%ld", i);
2498    }
2499  else
2500    {
2501      unsigned long int i = ulongval ();
2502      if (i != ($2))
2503	return 1;
2504      fprintf (f, "%lu", i);
2505    }
2506  /* Do not output a trailing newline, as this causes \r\n confusion
2507     on some platforms.  */
2508  return ferror (f) || fclose (f) != 0;
2509
2510  ;
2511  return 0;
2512}
2513_ACEOF
2514if ac_fn_c_try_run "$LINENO"; then :
2515  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2516else
2517  ac_retval=1
2518fi
2519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2520  conftest.$ac_objext conftest.beam conftest.$ac_ext
2521rm -f conftest.val
2522
2523  fi
2524  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2525  as_fn_set_status $ac_retval
2526
2527} # ac_fn_c_compute_int
2528
2529# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2530# ---------------------------------------------
2531# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2532# accordingly.
2533ac_fn_c_check_decl ()
2534{
2535  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2536  as_decl_name=`echo $2|sed 's/ *(.*//'`
2537  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2538  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2539$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2540if eval \${$3+:} false; then :
2541  $as_echo_n "(cached) " >&6
2542else
2543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544/* end confdefs.h.  */
2545$4
2546int
2547main ()
2548{
2549#ifndef $as_decl_name
2550#ifdef __cplusplus
2551  (void) $as_decl_use;
2552#else
2553  (void) $as_decl_name;
2554#endif
2555#endif
2556
2557  ;
2558  return 0;
2559}
2560_ACEOF
2561if ac_fn_c_try_compile "$LINENO"; then :
2562  eval "$3=yes"
2563else
2564  eval "$3=no"
2565fi
2566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2567fi
2568eval ac_res=\$$3
2569	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2570$as_echo "$ac_res" >&6; }
2571  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2572
2573} # ac_fn_c_check_decl
2574
2575# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2576# ----------------------------------------------------
2577# Tries to find if the field MEMBER exists in type AGGR, after including
2578# INCLUDES, setting cache variable VAR accordingly.
2579ac_fn_c_check_member ()
2580{
2581  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2583$as_echo_n "checking for $2.$3... " >&6; }
2584if eval \${$4+:} false; then :
2585  $as_echo_n "(cached) " >&6
2586else
2587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588/* end confdefs.h.  */
2589$5
2590int
2591main ()
2592{
2593static $2 ac_aggr;
2594if (ac_aggr.$3)
2595return 0;
2596  ;
2597  return 0;
2598}
2599_ACEOF
2600if ac_fn_c_try_compile "$LINENO"; then :
2601  eval "$4=yes"
2602else
2603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604/* end confdefs.h.  */
2605$5
2606int
2607main ()
2608{
2609static $2 ac_aggr;
2610if (sizeof ac_aggr.$3)
2611return 0;
2612  ;
2613  return 0;
2614}
2615_ACEOF
2616if ac_fn_c_try_compile "$LINENO"; then :
2617  eval "$4=yes"
2618else
2619  eval "$4=no"
2620fi
2621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2622fi
2623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2624fi
2625eval ac_res=\$$4
2626	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2627$as_echo "$ac_res" >&6; }
2628  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2629
2630} # ac_fn_c_check_member
2631cat >config.log <<_ACEOF
2632This file contains any messages produced by compilers while
2633running configure, to aid debugging if configure makes a mistake.
2634
2635It was created by ntp $as_me 4.2.8p11, which was
2636generated by GNU Autoconf 2.69.  Invocation command line was
2637
2638  $ $0 $@
2639
2640_ACEOF
2641exec 5>>config.log
2642{
2643cat <<_ASUNAME
2644## --------- ##
2645## Platform. ##
2646## --------- ##
2647
2648hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2649uname -m = `(uname -m) 2>/dev/null || echo unknown`
2650uname -r = `(uname -r) 2>/dev/null || echo unknown`
2651uname -s = `(uname -s) 2>/dev/null || echo unknown`
2652uname -v = `(uname -v) 2>/dev/null || echo unknown`
2653
2654/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2655/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2656
2657/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2658/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2659/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2660/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2661/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2662/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2663/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2664
2665_ASUNAME
2666
2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668for as_dir in $PATH
2669do
2670  IFS=$as_save_IFS
2671  test -z "$as_dir" && as_dir=.
2672    $as_echo "PATH: $as_dir"
2673  done
2674IFS=$as_save_IFS
2675
2676} >&5
2677
2678cat >&5 <<_ACEOF
2679
2680
2681## ----------- ##
2682## Core tests. ##
2683## ----------- ##
2684
2685_ACEOF
2686
2687
2688# Keep a trace of the command line.
2689# Strip out --no-create and --no-recursion so they do not pile up.
2690# Strip out --silent because we don't want to record it for future runs.
2691# Also quote any args containing shell meta-characters.
2692# Make two passes to allow for proper duplicate-argument suppression.
2693ac_configure_args=
2694ac_configure_args0=
2695ac_configure_args1=
2696ac_must_keep_next=false
2697for ac_pass in 1 2
2698do
2699  for ac_arg
2700  do
2701    case $ac_arg in
2702    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2703    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2704    | -silent | --silent | --silen | --sile | --sil)
2705      continue ;;
2706    *\'*)
2707      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2708    esac
2709    case $ac_pass in
2710    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2711    2)
2712      as_fn_append ac_configure_args1 " '$ac_arg'"
2713      if test $ac_must_keep_next = true; then
2714	ac_must_keep_next=false # Got value, back to normal.
2715      else
2716	case $ac_arg in
2717	  *=* | --config-cache | -C | -disable-* | --disable-* \
2718	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2719	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2720	  | -with-* | --with-* | -without-* | --without-* | --x)
2721	    case "$ac_configure_args0 " in
2722	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2723	    esac
2724	    ;;
2725	  -* ) ac_must_keep_next=true ;;
2726	esac
2727      fi
2728      as_fn_append ac_configure_args " '$ac_arg'"
2729      ;;
2730    esac
2731  done
2732done
2733{ ac_configure_args0=; unset ac_configure_args0;}
2734{ ac_configure_args1=; unset ac_configure_args1;}
2735
2736# When interrupted or exit'd, cleanup temporary files, and complete
2737# config.log.  We remove comments because anyway the quotes in there
2738# would cause problems or look ugly.
2739# WARNING: Use '\'' to represent an apostrophe within the trap.
2740# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2741trap 'exit_status=$?
2742  # Save into config.log some information that might help in debugging.
2743  {
2744    echo
2745
2746    $as_echo "## ---------------- ##
2747## Cache variables. ##
2748## ---------------- ##"
2749    echo
2750    # The following way of writing the cache mishandles newlines in values,
2751(
2752  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2753    eval ac_val=\$$ac_var
2754    case $ac_val in #(
2755    *${as_nl}*)
2756      case $ac_var in #(
2757      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2758$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2759      esac
2760      case $ac_var in #(
2761      _ | IFS | as_nl) ;; #(
2762      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2763      *) { eval $ac_var=; unset $ac_var;} ;;
2764      esac ;;
2765    esac
2766  done
2767  (set) 2>&1 |
2768    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2769    *${as_nl}ac_space=\ *)
2770      sed -n \
2771	"s/'\''/'\''\\\\'\'''\''/g;
2772	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2773      ;; #(
2774    *)
2775      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2776      ;;
2777    esac |
2778    sort
2779)
2780    echo
2781
2782    $as_echo "## ----------------- ##
2783## Output variables. ##
2784## ----------------- ##"
2785    echo
2786    for ac_var in $ac_subst_vars
2787    do
2788      eval ac_val=\$$ac_var
2789      case $ac_val in
2790      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2791      esac
2792      $as_echo "$ac_var='\''$ac_val'\''"
2793    done | sort
2794    echo
2795
2796    if test -n "$ac_subst_files"; then
2797      $as_echo "## ------------------- ##
2798## File substitutions. ##
2799## ------------------- ##"
2800      echo
2801      for ac_var in $ac_subst_files
2802      do
2803	eval ac_val=\$$ac_var
2804	case $ac_val in
2805	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2806	esac
2807	$as_echo "$ac_var='\''$ac_val'\''"
2808      done | sort
2809      echo
2810    fi
2811
2812    if test -s confdefs.h; then
2813      $as_echo "## ----------- ##
2814## confdefs.h. ##
2815## ----------- ##"
2816      echo
2817      cat confdefs.h
2818      echo
2819    fi
2820    test "$ac_signal" != 0 &&
2821      $as_echo "$as_me: caught signal $ac_signal"
2822    $as_echo "$as_me: exit $exit_status"
2823  } >&5
2824  rm -f core *.core core.conftest.* &&
2825    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2826    exit $exit_status
2827' 0
2828for ac_signal in 1 2 13 15; do
2829  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2830done
2831ac_signal=0
2832
2833# confdefs.h avoids OS command line length limits that DEFS can exceed.
2834rm -f -r conftest* confdefs.h
2835
2836$as_echo "/* confdefs.h */" > confdefs.h
2837
2838# Predefined preprocessor variables.
2839
2840cat >>confdefs.h <<_ACEOF
2841#define PACKAGE_NAME "$PACKAGE_NAME"
2842_ACEOF
2843
2844cat >>confdefs.h <<_ACEOF
2845#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2846_ACEOF
2847
2848cat >>confdefs.h <<_ACEOF
2849#define PACKAGE_VERSION "$PACKAGE_VERSION"
2850_ACEOF
2851
2852cat >>confdefs.h <<_ACEOF
2853#define PACKAGE_STRING "$PACKAGE_STRING"
2854_ACEOF
2855
2856cat >>confdefs.h <<_ACEOF
2857#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2858_ACEOF
2859
2860cat >>confdefs.h <<_ACEOF
2861#define PACKAGE_URL "$PACKAGE_URL"
2862_ACEOF
2863
2864
2865# Let the site file select an alternate cache file if it wants to.
2866# Prefer an explicitly selected file to automatically selected ones.
2867ac_site_file1=NONE
2868ac_site_file2=NONE
2869if test -n "$CONFIG_SITE"; then
2870  # We do not want a PATH search for config.site.
2871  case $CONFIG_SITE in #((
2872    -*)  ac_site_file1=./$CONFIG_SITE;;
2873    */*) ac_site_file1=$CONFIG_SITE;;
2874    *)   ac_site_file1=./$CONFIG_SITE;;
2875  esac
2876elif test "x$prefix" != xNONE; then
2877  ac_site_file1=$prefix/share/config.site
2878  ac_site_file2=$prefix/etc/config.site
2879else
2880  ac_site_file1=$ac_default_prefix/share/config.site
2881  ac_site_file2=$ac_default_prefix/etc/config.site
2882fi
2883for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2884do
2885  test "x$ac_site_file" = xNONE && continue
2886  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2887    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2888$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2889    sed 's/^/| /' "$ac_site_file" >&5
2890    . "$ac_site_file" \
2891      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2893as_fn_error $? "failed to load site script $ac_site_file
2894See \`config.log' for more details" "$LINENO" 5; }
2895  fi
2896done
2897
2898if test -r "$cache_file"; then
2899  # Some versions of bash will fail to source /dev/null (special files
2900  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2901  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2902    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2903$as_echo "$as_me: loading cache $cache_file" >&6;}
2904    case $cache_file in
2905      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2906      *)                      . "./$cache_file";;
2907    esac
2908  fi
2909else
2910  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2911$as_echo "$as_me: creating cache $cache_file" >&6;}
2912  >$cache_file
2913fi
2914
2915as_fn_append ac_header_list " stdarg.h"
2916# Check that the precious variables saved in the cache have kept the same
2917# value.
2918ac_cache_corrupted=false
2919for ac_var in $ac_precious_vars; do
2920  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2921  eval ac_new_set=\$ac_env_${ac_var}_set
2922  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2923  eval ac_new_val=\$ac_env_${ac_var}_value
2924  case $ac_old_set,$ac_new_set in
2925    set,)
2926      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2927$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2928      ac_cache_corrupted=: ;;
2929    ,set)
2930      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2931$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2932      ac_cache_corrupted=: ;;
2933    ,);;
2934    *)
2935      if test "x$ac_old_val" != "x$ac_new_val"; then
2936	# differences in whitespace do not lead to failure.
2937	ac_old_val_w=`echo x $ac_old_val`
2938	ac_new_val_w=`echo x $ac_new_val`
2939	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2940	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2941$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2942	  ac_cache_corrupted=:
2943	else
2944	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2945$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2946	  eval $ac_var=\$ac_old_val
2947	fi
2948	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2949$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2950	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2951$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2952      fi;;
2953  esac
2954  # Pass precious variables to config.status.
2955  if test "$ac_new_set" = set; then
2956    case $ac_new_val in
2957    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2958    *) ac_arg=$ac_var=$ac_new_val ;;
2959    esac
2960    case " $ac_configure_args " in
2961      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2962      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2963    esac
2964  fi
2965done
2966if $ac_cache_corrupted; then
2967  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2970$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2971  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2972fi
2973## -------------------- ##
2974## Main body of script. ##
2975## -------------------- ##
2976
2977ac_ext=c
2978ac_cpp='$CPP $CPPFLAGS'
2979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982
2983
2984
2985ac_aux_dir=
2986for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
2987  if test -f "$ac_dir/install-sh"; then
2988    ac_aux_dir=$ac_dir
2989    ac_install_sh="$ac_aux_dir/install-sh -c"
2990    break
2991  elif test -f "$ac_dir/install.sh"; then
2992    ac_aux_dir=$ac_dir
2993    ac_install_sh="$ac_aux_dir/install.sh -c"
2994    break
2995  elif test -f "$ac_dir/shtool"; then
2996    ac_aux_dir=$ac_dir
2997    ac_install_sh="$ac_aux_dir/shtool install -c"
2998    break
2999  fi
3000done
3001if test -z "$ac_aux_dir"; then
3002  as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
3003fi
3004
3005# These three variables are undocumented and unsupported,
3006# and are intended to be withdrawn in a future Autoconf release.
3007# They can cause serious problems if a builder's source tree is in a directory
3008# whose full name contains unusual characters.
3009ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3010ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3011ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3012
3013
3014ac_ext=c
3015ac_cpp='$CPP $CPPFLAGS'
3016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018ac_compiler_gnu=$ac_cv_c_compiler_gnu
3019
3020
3021
3022
3023
3024
3025# Bump ntp_configure_cache_version for each change to configure.ac or
3026# .m4 files which invalidates cached values from previous configure
3027# runs.
3028#
3029# If the change affects cache variables used only by the main NTP
3030# configure.ac, then only its version number should be bumped, while
3031# the subdir configure.ac version numbers should be unchanged.  The
3032# same is true for a test/variable that is used only by one subdir
3033# being changed incompatibly; only that subdir's cache version needs
3034# bumping.
3035#
3036# If a change affects variables shared by all NTP configure scripts,
3037# please bump the version numbers of each.  If you are not sure, the
3038# safe choice is to bump all on any cache-invalidating change.
3039#
3040# In order to avoid the risk of version stamp collision between -stable
3041# and -dev branches, do not simply increment the version, instead use
3042# the date YYYYMMDD optionally with -HHMM if there is more than one
3043# bump in a day.
3044
3045ntp_configure_cache_version=20120806
3046
3047# When the cache version of config.cache and configure do not
3048# match, NTP_CACHEVERSION will flush the cache.
3049
3050
3051
3052    ntp_cache_flush=1
3053
3054    case "$ntp_cv_main_cache_version" in
3055     $ntp_configure_cache_version)
3056	# same version, good
3057	ntp_cache_flush=0
3058	;;
3059     '')
3060	# No cache, predates ntp_cv_main_cache_version, or is empty.
3061	case "$cache_file" in
3062	 /dev/null)
3063	    ntp_cache_flush=0
3064	    ;;
3065	 *)
3066	    case "$NTP_CACHEVERSION_PARENT" in
3067	     '')
3068		# Do not clear the cache immediately after it is created
3069		# empty as it is noisy.  Differentiate a newly-created
3070		# config.cache from one predating the cache version
3071		# mechanism by looking for the first cached variable set
3072		# by Autoconf
3073		case "$ac_cv_path_install" in
3074		 '')
3075		    # empty config.cache file
3076		    ntp_cache_flush=0
3077		esac
3078		;;
3079	     *)
3080		# Parent configure just created cache from empty,
3081		# flushing would be counterproductive.
3082		ntp_cache_flush=0;
3083		;;
3084	    esac
3085	esac
3086	;;
3087     *)
3088	# configure cache version mismatches config.cache version
3089	;;
3090    esac
3091
3092    case "$ntp_cache_flush" in
3093     1)
3094	c_version="${ntp_cv_main_cache_version:-(no version found)}"
3095
3096	# Do we flush all variables or exclude others' version stamps?
3097
3098	case "$NTP_CACHEVERSION_PARENT" in
3099	 '')
3100	    # Clear all *_cv_* variables including our child subdirs'
3101	    # ntp_cv_*_cache_version variables.  This prevents subdir
3102	    # configure scripts from noticing a version mismatch just
3103	    # after the top configure in the invocation cleared and
3104	    # recreated the cache.
3105
3106	    c_varname_list=`set |
3107			    sed -n -e 's/=.*$//' \
3108				   -e '/_cv_/p'
3109			   `
3110	    ;;
3111	 *)
3112	    # This is not the top configure this particular invocation.
3113	    # Clear all *_cv_* variables sparing the version stamps
3114	    # of other configure scripts, so we don't trigger
3115	    # useless repeated clearings.
3116
3117	    c_varname_list=`set |
3118			    sed -n -e 's/=.*$//' \
3119				   -e '/ntp_cv_.*_cache_version/d' \
3120				   -e '/_cv_/p'
3121			   `
3122	esac
3123
3124	for c_varname in $c_varname_list
3125	do
3126	    	    	    	    	    	    { eval $c_varname=; unset $c_varname; }
3127	done
3128
3129	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
3130$as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
3131	{ $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
3132$as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
3133	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
3134$as_echo "$as_me: $cache_file version: $c_version" >&6;}
3135	{ c_varname=; unset c_varname;}
3136	{ c_varname_list=; unset c_varname_list;}
3137	{ c_version=; unset c_version;}
3138    esac
3139
3140    { ntp_cache_flush=; unset ntp_cache_flush;}
3141
3142    # save configure version in config.cache for next time
3143    ntp_cv_main_cache_version="$ntp_configure_cache_version"
3144
3145    # let any subdir configure.ac NTP_CACHEVERSION invocations
3146    # know they are not the top level.
3147    NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT
3148
3149
3150am__api_version='1.15'
3151
3152# Find a good install program.  We prefer a C program (faster),
3153# so one script is as good as another.  But avoid the broken or
3154# incompatible versions:
3155# SysV /etc/install, /usr/sbin/install
3156# SunOS /usr/etc/install
3157# IRIX /sbin/install
3158# AIX /bin/install
3159# AmigaOS /C/install, which installs bootblocks on floppy discs
3160# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3161# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3162# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3163# OS/2's system install, which has a completely different semantic
3164# ./install, which can be erroneously created by make from ./install.sh.
3165# Reject install programs that cannot install multiple files.
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3167$as_echo_n "checking for a BSD-compatible install... " >&6; }
3168if test -z "$INSTALL"; then
3169if ${ac_cv_path_install+:} false; then :
3170  $as_echo_n "(cached) " >&6
3171else
3172  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH
3174do
3175  IFS=$as_save_IFS
3176  test -z "$as_dir" && as_dir=.
3177    # Account for people who put trailing slashes in PATH elements.
3178case $as_dir/ in #((
3179  ./ | .// | /[cC]/* | \
3180  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3181  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3182  /usr/ucb/* ) ;;
3183  *)
3184    # OSF1 and SCO ODT 3.0 have their own names for install.
3185    # Don't use installbsd from OSF since it installs stuff as root
3186    # by default.
3187    for ac_prog in ginstall scoinst install; do
3188      for ac_exec_ext in '' $ac_executable_extensions; do
3189	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3190	  if test $ac_prog = install &&
3191	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3192	    # AIX install.  It has an incompatible calling convention.
3193	    :
3194	  elif test $ac_prog = install &&
3195	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3196	    # program-specific install script used by HP pwplus--don't use.
3197	    :
3198	  else
3199	    rm -rf conftest.one conftest.two conftest.dir
3200	    echo one > conftest.one
3201	    echo two > conftest.two
3202	    mkdir conftest.dir
3203	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3204	      test -s conftest.one && test -s conftest.two &&
3205	      test -s conftest.dir/conftest.one &&
3206	      test -s conftest.dir/conftest.two
3207	    then
3208	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3209	      break 3
3210	    fi
3211	  fi
3212	fi
3213      done
3214    done
3215    ;;
3216esac
3217
3218  done
3219IFS=$as_save_IFS
3220
3221rm -rf conftest.one conftest.two conftest.dir
3222
3223fi
3224  if test "${ac_cv_path_install+set}" = set; then
3225    INSTALL=$ac_cv_path_install
3226  else
3227    # As a last resort, use the slow shell script.  Don't cache a
3228    # value for INSTALL within a source directory, because that will
3229    # break other packages using the cache if that directory is
3230    # removed, or if the value is a relative name.
3231    INSTALL=$ac_install_sh
3232  fi
3233fi
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3235$as_echo "$INSTALL" >&6; }
3236
3237# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3238# It thinks the first close brace ends the variable substitution.
3239test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3240
3241test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3242
3243test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3244
3245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3246$as_echo_n "checking whether build environment is sane... " >&6; }
3247# Reject unsafe characters in $srcdir or the absolute working directory
3248# name.  Accept space and tab only in the latter.
3249am_lf='
3250'
3251case `pwd` in
3252  *[\\\"\#\$\&\'\`$am_lf]*)
3253    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3254esac
3255case $srcdir in
3256  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3257    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3258esac
3259
3260# Do 'set' in a subshell so we don't clobber the current shell's
3261# arguments.  Must try -L first in case configure is actually a
3262# symlink; some systems play weird games with the mod time of symlinks
3263# (eg FreeBSD returns the mod time of the symlink's containing
3264# directory).
3265if (
3266   am_has_slept=no
3267   for am_try in 1 2; do
3268     echo "timestamp, slept: $am_has_slept" > conftest.file
3269     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3270     if test "$*" = "X"; then
3271	# -L didn't work.
3272	set X `ls -t "$srcdir/configure" conftest.file`
3273     fi
3274     if test "$*" != "X $srcdir/configure conftest.file" \
3275	&& test "$*" != "X conftest.file $srcdir/configure"; then
3276
3277	# If neither matched, then we have a broken ls.  This can happen
3278	# if, for instance, CONFIG_SHELL is bash and it inherits a
3279	# broken ls alias from the environment.  This has actually
3280	# happened.  Such a system could not be considered "sane".
3281	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3282  alias in your environment" "$LINENO" 5
3283     fi
3284     if test "$2" = conftest.file || test $am_try -eq 2; then
3285       break
3286     fi
3287     # Just in case.
3288     sleep 1
3289     am_has_slept=yes
3290   done
3291   test "$2" = conftest.file
3292   )
3293then
3294   # Ok.
3295   :
3296else
3297   as_fn_error $? "newly created file is older than distributed files!
3298Check your system clock" "$LINENO" 5
3299fi
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3301$as_echo "yes" >&6; }
3302# If we didn't sleep, we still need to ensure time stamps of config.status and
3303# generated files are strictly newer.
3304am_sleep_pid=
3305if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3306  ( sleep 1 ) &
3307  am_sleep_pid=$!
3308fi
3309
3310rm -f conftest.file
3311
3312test "$program_prefix" != NONE &&
3313  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3314# Use a double $ so make ignores it.
3315test "$program_suffix" != NONE &&
3316  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3317# Double any \ or $.
3318# By default was `s,x,x', remove it if useless.
3319ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3320program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3321
3322# Expand $ac_aux_dir to an absolute path.
3323am_aux_dir=`cd "$ac_aux_dir" && pwd`
3324
3325if test x"${MISSING+set}" != xset; then
3326  case $am_aux_dir in
3327  *\ * | *\	*)
3328    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3329  *)
3330    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3331  esac
3332fi
3333# Use eval to expand $SHELL
3334if eval "$MISSING --is-lightweight"; then
3335  am_missing_run="$MISSING "
3336else
3337  am_missing_run=
3338  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3339$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3340fi
3341
3342if test x"${install_sh+set}" != xset; then
3343  case $am_aux_dir in
3344  *\ * | *\	*)
3345    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3346  *)
3347    install_sh="\${SHELL} $am_aux_dir/install-sh"
3348  esac
3349fi
3350
3351# Installed binaries are usually stripped using 'strip' when the user
3352# run "make install-strip".  However 'strip' might not be the right
3353# tool to use in cross-compilation environments, therefore Automake
3354# will honor the 'STRIP' environment variable to overrule this program.
3355if test "$cross_compiling" != no; then
3356  if test -n "$ac_tool_prefix"; then
3357  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3358set dummy ${ac_tool_prefix}strip; ac_word=$2
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360$as_echo_n "checking for $ac_word... " >&6; }
3361if ${ac_cv_prog_STRIP+:} false; then :
3362  $as_echo_n "(cached) " >&6
3363else
3364  if test -n "$STRIP"; then
3365  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3366else
3367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368for as_dir in $PATH
3369do
3370  IFS=$as_save_IFS
3371  test -z "$as_dir" && as_dir=.
3372    for ac_exec_ext in '' $ac_executable_extensions; do
3373  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3375    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376    break 2
3377  fi
3378done
3379  done
3380IFS=$as_save_IFS
3381
3382fi
3383fi
3384STRIP=$ac_cv_prog_STRIP
3385if test -n "$STRIP"; then
3386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3387$as_echo "$STRIP" >&6; }
3388else
3389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390$as_echo "no" >&6; }
3391fi
3392
3393
3394fi
3395if test -z "$ac_cv_prog_STRIP"; then
3396  ac_ct_STRIP=$STRIP
3397  # Extract the first word of "strip", so it can be a program name with args.
3398set dummy strip; ac_word=$2
3399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400$as_echo_n "checking for $ac_word... " >&6; }
3401if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3402  $as_echo_n "(cached) " >&6
3403else
3404  if test -n "$ac_ct_STRIP"; then
3405  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3406else
3407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408for as_dir in $PATH
3409do
3410  IFS=$as_save_IFS
3411  test -z "$as_dir" && as_dir=.
3412    for ac_exec_ext in '' $ac_executable_extensions; do
3413  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3414    ac_cv_prog_ac_ct_STRIP="strip"
3415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416    break 2
3417  fi
3418done
3419  done
3420IFS=$as_save_IFS
3421
3422fi
3423fi
3424ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3425if test -n "$ac_ct_STRIP"; then
3426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3427$as_echo "$ac_ct_STRIP" >&6; }
3428else
3429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430$as_echo "no" >&6; }
3431fi
3432
3433  if test "x$ac_ct_STRIP" = x; then
3434    STRIP=":"
3435  else
3436    case $cross_compiling:$ac_tool_warned in
3437yes:)
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3440ac_tool_warned=yes ;;
3441esac
3442    STRIP=$ac_ct_STRIP
3443  fi
3444else
3445  STRIP="$ac_cv_prog_STRIP"
3446fi
3447
3448fi
3449INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3450
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3452$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3453if test -z "$MKDIR_P"; then
3454  if ${ac_cv_path_mkdir+:} false; then :
3455  $as_echo_n "(cached) " >&6
3456else
3457  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3459do
3460  IFS=$as_save_IFS
3461  test -z "$as_dir" && as_dir=.
3462    for ac_prog in mkdir gmkdir; do
3463	 for ac_exec_ext in '' $ac_executable_extensions; do
3464	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3465	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3466	     'mkdir (GNU coreutils) '* | \
3467	     'mkdir (coreutils) '* | \
3468	     'mkdir (fileutils) '4.1*)
3469	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3470	       break 3;;
3471	   esac
3472	 done
3473       done
3474  done
3475IFS=$as_save_IFS
3476
3477fi
3478
3479  test -d ./--version && rmdir ./--version
3480  if test "${ac_cv_path_mkdir+set}" = set; then
3481    MKDIR_P="$ac_cv_path_mkdir -p"
3482  else
3483    # As a last resort, use the slow shell script.  Don't cache a
3484    # value for MKDIR_P within a source directory, because that will
3485    # break other packages using the cache if that directory is
3486    # removed, or if the value is a relative name.
3487    MKDIR_P="$ac_install_sh -d"
3488  fi
3489fi
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3491$as_echo "$MKDIR_P" >&6; }
3492
3493for ac_prog in gawk mawk nawk awk
3494do
3495  # Extract the first word of "$ac_prog", so it can be a program name with args.
3496set dummy $ac_prog; ac_word=$2
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498$as_echo_n "checking for $ac_word... " >&6; }
3499if ${ac_cv_prog_AWK+:} false; then :
3500  $as_echo_n "(cached) " >&6
3501else
3502  if test -n "$AWK"; then
3503  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3504else
3505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506for as_dir in $PATH
3507do
3508  IFS=$as_save_IFS
3509  test -z "$as_dir" && as_dir=.
3510    for ac_exec_ext in '' $ac_executable_extensions; do
3511  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512    ac_cv_prog_AWK="$ac_prog"
3513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514    break 2
3515  fi
3516done
3517  done
3518IFS=$as_save_IFS
3519
3520fi
3521fi
3522AWK=$ac_cv_prog_AWK
3523if test -n "$AWK"; then
3524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3525$as_echo "$AWK" >&6; }
3526else
3527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528$as_echo "no" >&6; }
3529fi
3530
3531
3532  test -n "$AWK" && break
3533done
3534
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3536$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3537set x ${MAKE-make}
3538ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3539if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3540  $as_echo_n "(cached) " >&6
3541else
3542  cat >conftest.make <<\_ACEOF
3543SHELL = /bin/sh
3544all:
3545	@echo '@@@%%%=$(MAKE)=@@@%%%'
3546_ACEOF
3547# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3548case `${MAKE-make} -f conftest.make 2>/dev/null` in
3549  *@@@%%%=?*=@@@%%%*)
3550    eval ac_cv_prog_make_${ac_make}_set=yes;;
3551  *)
3552    eval ac_cv_prog_make_${ac_make}_set=no;;
3553esac
3554rm -f conftest.make
3555fi
3556if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3558$as_echo "yes" >&6; }
3559  SET_MAKE=
3560else
3561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562$as_echo "no" >&6; }
3563  SET_MAKE="MAKE=${MAKE-make}"
3564fi
3565
3566rm -rf .tst 2>/dev/null
3567mkdir .tst 2>/dev/null
3568if test -d .tst; then
3569  am__leading_dot=.
3570else
3571  am__leading_dot=_
3572fi
3573rmdir .tst 2>/dev/null
3574
3575# Check whether --enable-silent-rules was given.
3576if test "${enable_silent_rules+set}" = set; then :
3577  enableval=$enable_silent_rules;
3578fi
3579
3580case $enable_silent_rules in # (((
3581  yes) AM_DEFAULT_VERBOSITY=0;;
3582   no) AM_DEFAULT_VERBOSITY=1;;
3583    *) AM_DEFAULT_VERBOSITY=1;;
3584esac
3585am_make=${MAKE-make}
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3587$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3588if ${am_cv_make_support_nested_variables+:} false; then :
3589  $as_echo_n "(cached) " >&6
3590else
3591  if $as_echo 'TRUE=$(BAR$(V))
3592BAR0=false
3593BAR1=true
3594V=1
3595am__doit:
3596	@$(TRUE)
3597.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3598  am_cv_make_support_nested_variables=yes
3599else
3600  am_cv_make_support_nested_variables=no
3601fi
3602fi
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3604$as_echo "$am_cv_make_support_nested_variables" >&6; }
3605if test $am_cv_make_support_nested_variables = yes; then
3606    AM_V='$(V)'
3607  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3608else
3609  AM_V=$AM_DEFAULT_VERBOSITY
3610  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3611fi
3612AM_BACKSLASH='\'
3613
3614if test "`cd $srcdir && pwd`" != "`pwd`"; then
3615  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3616  # is not polluted with repeated "-I."
3617  am__isrc=' -I$(srcdir)'
3618  # test to see if srcdir already configured
3619  if test -f $srcdir/config.status; then
3620    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3621  fi
3622fi
3623
3624# test whether we have cygpath
3625if test -z "$CYGPATH_W"; then
3626  if (cygpath --version) >/dev/null 2>/dev/null; then
3627    CYGPATH_W='cygpath -w'
3628  else
3629    CYGPATH_W=echo
3630  fi
3631fi
3632
3633
3634# Define the identity of the package.
3635 PACKAGE='ntp'
3636 VERSION='4.2.8p11'
3637
3638
3639cat >>confdefs.h <<_ACEOF
3640#define PACKAGE "$PACKAGE"
3641_ACEOF
3642
3643
3644cat >>confdefs.h <<_ACEOF
3645#define VERSION "$VERSION"
3646_ACEOF
3647
3648# Some tools Automake needs.
3649
3650ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3651
3652
3653AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3654
3655
3656AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3657
3658
3659AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3660
3661
3662MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3663
3664# For better backward compatibility.  To be removed once Automake 1.9.x
3665# dies out for good.  For more background, see:
3666# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3667# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3668mkdir_p='$(MKDIR_P)'
3669
3670# We need awk for the "check" target (and possibly the TAP driver).  The
3671# system "awk" is bad on some platforms.
3672# Always define AMTAR for backward compatibility.  Yes, it's still used
3673# in the wild :-(  We should find a proper way to deprecate it ...
3674AMTAR='$${TAR-tar}'
3675
3676
3677# We'll loop over all known methods to create a tar archive until one works.
3678_am_tools='gnutar  pax cpio none'
3679
3680am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3681
3682
3683
3684
3685
3686
3687# POSIX will say in a future version that running "rm -f" with no argument
3688# is OK; and we want to be able to make that assumption in our Makefile
3689# recipes.  So use an aggressive probe to check that the usage we want is
3690# actually supported "in the wild" to an acceptable degree.
3691# See automake bug#10828.
3692# To make any issue more visible, cause the running configure to be aborted
3693# by default if the 'rm' program in use doesn't match our expectations; the
3694# user can still override this though.
3695if rm -f && rm -fr && rm -rf; then : OK; else
3696  cat >&2 <<'END'
3697Oops!
3698
3699Your 'rm' program seems unable to run without file operands specified
3700on the command line, even when the '-f' option is present.  This is contrary
3701to the behaviour of most rm programs out there, and not conforming with
3702the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3703
3704Please tell bug-automake@gnu.org about your system, including the value
3705of your $PATH and any error possibly output before this message.  This
3706can help us improve future automake versions.
3707
3708END
3709  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3710    echo 'Configuration will proceed anyway, since you have set the' >&2
3711    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3712    echo >&2
3713  else
3714    cat >&2 <<'END'
3715Aborting the configuration process, to ensure you take notice of the issue.
3716
3717You can download and install GNU coreutils to get an 'rm' implementation
3718that behaves properly: <http://www.gnu.org/software/coreutils/>.
3719
3720If you want to complete the configuration process using your problematic
3721'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3722to "yes", and re-run configure.
3723
3724END
3725    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3726  fi
3727fi
3728
3729
3730# Check whether --enable-silent-rules was given.
3731if test "${enable_silent_rules+set}" = set; then :
3732  enableval=$enable_silent_rules;
3733fi
3734
3735case $enable_silent_rules in # (((
3736  yes) AM_DEFAULT_VERBOSITY=0;;
3737   no) AM_DEFAULT_VERBOSITY=1;;
3738    *) AM_DEFAULT_VERBOSITY=0;;
3739esac
3740am_make=${MAKE-make}
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3742$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3743if ${am_cv_make_support_nested_variables+:} false; then :
3744  $as_echo_n "(cached) " >&6
3745else
3746  if $as_echo 'TRUE=$(BAR$(V))
3747BAR0=false
3748BAR1=true
3749V=1
3750am__doit:
3751	@$(TRUE)
3752.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3753  am_cv_make_support_nested_variables=yes
3754else
3755  am_cv_make_support_nested_variables=no
3756fi
3757fi
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3759$as_echo "$am_cv_make_support_nested_variables" >&6; }
3760if test $am_cv_make_support_nested_variables = yes; then
3761    AM_V='$(V)'
3762  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3763else
3764  AM_V=$AM_DEFAULT_VERBOSITY
3765  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3766fi
3767AM_BACKSLASH='\'
3768
3769
3770# Make sure we can run config.sub.
3771$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3772  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3773
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3775$as_echo_n "checking build system type... " >&6; }
3776if ${ac_cv_build+:} false; then :
3777  $as_echo_n "(cached) " >&6
3778else
3779  ac_build_alias=$build_alias
3780test "x$ac_build_alias" = x &&
3781  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3782test "x$ac_build_alias" = x &&
3783  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3784ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3785  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3786
3787fi
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3789$as_echo "$ac_cv_build" >&6; }
3790case $ac_cv_build in
3791*-*-*) ;;
3792*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3793esac
3794build=$ac_cv_build
3795ac_save_IFS=$IFS; IFS='-'
3796set x $ac_cv_build
3797shift
3798build_cpu=$1
3799build_vendor=$2
3800shift; shift
3801# Remember, the first character of IFS is used to create $*,
3802# except with old shells:
3803build_os=$*
3804IFS=$ac_save_IFS
3805case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3806
3807
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3809$as_echo_n "checking host system type... " >&6; }
3810if ${ac_cv_host+:} false; then :
3811  $as_echo_n "(cached) " >&6
3812else
3813  if test "x$host_alias" = x; then
3814  ac_cv_host=$ac_cv_build
3815else
3816  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3817    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3818fi
3819
3820fi
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3822$as_echo "$ac_cv_host" >&6; }
3823case $ac_cv_host in
3824*-*-*) ;;
3825*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3826esac
3827host=$ac_cv_host
3828ac_save_IFS=$IFS; IFS='-'
3829set x $ac_cv_host
3830shift
3831host_cpu=$1
3832host_vendor=$2
3833shift; shift
3834# Remember, the first character of IFS is used to create $*,
3835# except with old shells:
3836host_os=$*
3837IFS=$ac_save_IFS
3838case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3839
3840
3841
3842cat >>confdefs.h <<_ACEOF
3843#define STR_SYSTEM "$host"
3844_ACEOF
3845
3846ac_config_headers="$ac_config_headers config.h"
3847
3848
3849ntp_atom_ok=${ntp_atom_ok=no}
3850ntp_oncore_ok=${ntp_oncore_ok=no}
3851ntp_parse_ok=${ntp_parse_ok=no}
3852ntp_ripe_ncc_ok=${ntp_parse_ok=no}
3853ntp_jupiter_ok=${ntp_jupiter_ok=no}
3854
3855DEPDIR="${am__leading_dot}deps"
3856
3857ac_config_commands="$ac_config_commands depfiles"
3858
3859
3860am_make=${MAKE-make}
3861cat > confinc << 'END'
3862am__doit:
3863	@echo this is the am__doit target
3864.PHONY: am__doit
3865END
3866# If we don't find an include directive, just comment out the code.
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3868$as_echo_n "checking for style of include used by $am_make... " >&6; }
3869am__include="#"
3870am__quote=
3871_am_result=none
3872# First try GNU make style include.
3873echo "include confinc" > confmf
3874# Ignore all kinds of additional output from 'make'.
3875case `$am_make -s -f confmf 2> /dev/null` in #(
3876*the\ am__doit\ target*)
3877  am__include=include
3878  am__quote=
3879  _am_result=GNU
3880  ;;
3881esac
3882# Now try BSD make style include.
3883if test "$am__include" = "#"; then
3884   echo '.include "confinc"' > confmf
3885   case `$am_make -s -f confmf 2> /dev/null` in #(
3886   *the\ am__doit\ target*)
3887     am__include=.include
3888     am__quote="\""
3889     _am_result=BSD
3890     ;;
3891   esac
3892fi
3893
3894
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3896$as_echo "$_am_result" >&6; }
3897rm -f confinc confmf
3898
3899# Check whether --enable-dependency-tracking was given.
3900if test "${enable_dependency_tracking+set}" = set; then :
3901  enableval=$enable_dependency_tracking;
3902fi
3903
3904if test "x$enable_dependency_tracking" != xno; then
3905  am_depcomp="$ac_aux_dir/depcomp"
3906  AMDEPBACKSLASH='\'
3907  am__nodep='_no'
3908fi
3909 if test "x$enable_dependency_tracking" != xno; then
3910  AMDEP_TRUE=
3911  AMDEP_FALSE='#'
3912else
3913  AMDEP_TRUE='#'
3914  AMDEP_FALSE=
3915fi
3916
3917
3918
3919case "$build" in
3920 *-*-freebsd1?.*)
3921    cclist=cc
3922    ;;
3923 *)
3924    cclist="cc gcc"
3925    ;;
3926esac
3927
3928
3929#AC_USE_SYSTEM_EXTENSIONS
3930
3931ac_ext=c
3932ac_cpp='$CPP $CPPFLAGS'
3933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935ac_compiler_gnu=$ac_cv_c_compiler_gnu
3936if test -n "$ac_tool_prefix"; then
3937  for ac_prog in $cclist
3938  do
3939    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3940set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942$as_echo_n "checking for $ac_word... " >&6; }
3943if ${ac_cv_prog_CC+:} false; then :
3944  $as_echo_n "(cached) " >&6
3945else
3946  if test -n "$CC"; then
3947  ac_cv_prog_CC="$CC" # Let the user override the test.
3948else
3949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950for as_dir in $PATH
3951do
3952  IFS=$as_save_IFS
3953  test -z "$as_dir" && as_dir=.
3954    for ac_exec_ext in '' $ac_executable_extensions; do
3955  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3956    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3958    break 2
3959  fi
3960done
3961  done
3962IFS=$as_save_IFS
3963
3964fi
3965fi
3966CC=$ac_cv_prog_CC
3967if test -n "$CC"; then
3968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3969$as_echo "$CC" >&6; }
3970else
3971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972$as_echo "no" >&6; }
3973fi
3974
3975
3976    test -n "$CC" && break
3977  done
3978fi
3979if test -z "$CC"; then
3980  ac_ct_CC=$CC
3981  for ac_prog in $cclist
3982do
3983  # Extract the first word of "$ac_prog", so it can be a program name with args.
3984set dummy $ac_prog; ac_word=$2
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986$as_echo_n "checking for $ac_word... " >&6; }
3987if ${ac_cv_prog_ac_ct_CC+:} false; then :
3988  $as_echo_n "(cached) " >&6
3989else
3990  if test -n "$ac_ct_CC"; then
3991  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3992else
3993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994for as_dir in $PATH
3995do
3996  IFS=$as_save_IFS
3997  test -z "$as_dir" && as_dir=.
3998    for ac_exec_ext in '' $ac_executable_extensions; do
3999  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4000    ac_cv_prog_ac_ct_CC="$ac_prog"
4001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002    break 2
4003  fi
4004done
4005  done
4006IFS=$as_save_IFS
4007
4008fi
4009fi
4010ac_ct_CC=$ac_cv_prog_ac_ct_CC
4011if test -n "$ac_ct_CC"; then
4012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4013$as_echo "$ac_ct_CC" >&6; }
4014else
4015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016$as_echo "no" >&6; }
4017fi
4018
4019
4020  test -n "$ac_ct_CC" && break
4021done
4022
4023  if test "x$ac_ct_CC" = x; then
4024    CC=""
4025  else
4026    case $cross_compiling:$ac_tool_warned in
4027yes:)
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4030ac_tool_warned=yes ;;
4031esac
4032    CC=$ac_ct_CC
4033  fi
4034fi
4035
4036
4037test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4039as_fn_error $? "no acceptable C compiler found in \$PATH
4040See \`config.log' for more details" "$LINENO" 5; }
4041
4042# Provide some information about the compiler.
4043$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4044set X $ac_compile
4045ac_compiler=$2
4046for ac_option in --version -v -V -qversion; do
4047  { { ac_try="$ac_compiler $ac_option >&5"
4048case "(($ac_try" in
4049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050  *) ac_try_echo=$ac_try;;
4051esac
4052eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4053$as_echo "$ac_try_echo"; } >&5
4054  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4055  ac_status=$?
4056  if test -s conftest.err; then
4057    sed '10a\
4058... rest of stderr output deleted ...
4059         10q' conftest.err >conftest.er1
4060    cat conftest.er1 >&5
4061  fi
4062  rm -f conftest.er1 conftest.err
4063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4064  test $ac_status = 0; }
4065done
4066
4067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068/* end confdefs.h.  */
4069
4070int
4071main ()
4072{
4073
4074  ;
4075  return 0;
4076}
4077_ACEOF
4078ac_clean_files_save=$ac_clean_files
4079ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4080# Try to create an executable without -o first, disregard a.out.
4081# It will help us diagnose broken compilers, and finding out an intuition
4082# of exeext.
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4084$as_echo_n "checking whether the C compiler works... " >&6; }
4085ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4086
4087# The possible output files:
4088ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4089
4090ac_rmfiles=
4091for ac_file in $ac_files
4092do
4093  case $ac_file in
4094    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4095    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4096  esac
4097done
4098rm -f $ac_rmfiles
4099
4100if { { ac_try="$ac_link_default"
4101case "(($ac_try" in
4102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103  *) ac_try_echo=$ac_try;;
4104esac
4105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106$as_echo "$ac_try_echo"; } >&5
4107  (eval "$ac_link_default") 2>&5
4108  ac_status=$?
4109  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110  test $ac_status = 0; }; then :
4111  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4112# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4113# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4114# so that the user can short-circuit this test for compilers unknown to
4115# Autoconf.
4116for ac_file in $ac_files ''
4117do
4118  test -f "$ac_file" || continue
4119  case $ac_file in
4120    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4121	;;
4122    [ab].out )
4123	# We found the default executable, but exeext='' is most
4124	# certainly right.
4125	break;;
4126    *.* )
4127	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4128	then :; else
4129	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4130	fi
4131	# We set ac_cv_exeext here because the later test for it is not
4132	# safe: cross compilers may not add the suffix if given an `-o'
4133	# argument, so we may need to know it at that point already.
4134	# Even if this section looks crufty: it has the advantage of
4135	# actually working.
4136	break;;
4137    * )
4138	break;;
4139  esac
4140done
4141test "$ac_cv_exeext" = no && ac_cv_exeext=
4142
4143else
4144  ac_file=''
4145fi
4146if test -z "$ac_file"; then :
4147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148$as_echo "no" >&6; }
4149$as_echo "$as_me: failed program was:" >&5
4150sed 's/^/| /' conftest.$ac_ext >&5
4151
4152{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4154as_fn_error 77 "C compiler cannot create executables
4155See \`config.log' for more details" "$LINENO" 5; }
4156else
4157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4158$as_echo "yes" >&6; }
4159fi
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4161$as_echo_n "checking for C compiler default output file name... " >&6; }
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4163$as_echo "$ac_file" >&6; }
4164ac_exeext=$ac_cv_exeext
4165
4166rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4167ac_clean_files=$ac_clean_files_save
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4169$as_echo_n "checking for suffix of executables... " >&6; }
4170if { { ac_try="$ac_link"
4171case "(($ac_try" in
4172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173  *) ac_try_echo=$ac_try;;
4174esac
4175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4176$as_echo "$ac_try_echo"; } >&5
4177  (eval "$ac_link") 2>&5
4178  ac_status=$?
4179  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4180  test $ac_status = 0; }; then :
4181  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4182# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4183# work properly (i.e., refer to `conftest.exe'), while it won't with
4184# `rm'.
4185for ac_file in conftest.exe conftest conftest.*; do
4186  test -f "$ac_file" || continue
4187  case $ac_file in
4188    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4189    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4190	  break;;
4191    * ) break;;
4192  esac
4193done
4194else
4195  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4197as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4198See \`config.log' for more details" "$LINENO" 5; }
4199fi
4200rm -f conftest conftest$ac_cv_exeext
4201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4202$as_echo "$ac_cv_exeext" >&6; }
4203
4204rm -f conftest.$ac_ext
4205EXEEXT=$ac_cv_exeext
4206ac_exeext=$EXEEXT
4207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208/* end confdefs.h.  */
4209#include <stdio.h>
4210int
4211main ()
4212{
4213FILE *f = fopen ("conftest.out", "w");
4214 return ferror (f) || fclose (f) != 0;
4215
4216  ;
4217  return 0;
4218}
4219_ACEOF
4220ac_clean_files="$ac_clean_files conftest.out"
4221# Check that the compiler produces executables we can run.  If not, either
4222# the compiler is broken, or we cross compile.
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4224$as_echo_n "checking whether we are cross compiling... " >&6; }
4225if test "$cross_compiling" != yes; then
4226  { { ac_try="$ac_link"
4227case "(($ac_try" in
4228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229  *) ac_try_echo=$ac_try;;
4230esac
4231eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4232$as_echo "$ac_try_echo"; } >&5
4233  (eval "$ac_link") 2>&5
4234  ac_status=$?
4235  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4236  test $ac_status = 0; }
4237  if { ac_try='./conftest$ac_cv_exeext'
4238  { { case "(($ac_try" in
4239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240  *) ac_try_echo=$ac_try;;
4241esac
4242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4243$as_echo "$ac_try_echo"; } >&5
4244  (eval "$ac_try") 2>&5
4245  ac_status=$?
4246  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4247  test $ac_status = 0; }; }; then
4248    cross_compiling=no
4249  else
4250    if test "$cross_compiling" = maybe; then
4251	cross_compiling=yes
4252    else
4253	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4255as_fn_error $? "cannot run C compiled programs.
4256If you meant to cross compile, use \`--host'.
4257See \`config.log' for more details" "$LINENO" 5; }
4258    fi
4259  fi
4260fi
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4262$as_echo "$cross_compiling" >&6; }
4263
4264rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4265ac_clean_files=$ac_clean_files_save
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4267$as_echo_n "checking for suffix of object files... " >&6; }
4268if ${ac_cv_objext+:} false; then :
4269  $as_echo_n "(cached) " >&6
4270else
4271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272/* end confdefs.h.  */
4273
4274int
4275main ()
4276{
4277
4278  ;
4279  return 0;
4280}
4281_ACEOF
4282rm -f conftest.o conftest.obj
4283if { { ac_try="$ac_compile"
4284case "(($ac_try" in
4285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286  *) ac_try_echo=$ac_try;;
4287esac
4288eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289$as_echo "$ac_try_echo"; } >&5
4290  (eval "$ac_compile") 2>&5
4291  ac_status=$?
4292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293  test $ac_status = 0; }; then :
4294  for ac_file in conftest.o conftest.obj conftest.*; do
4295  test -f "$ac_file" || continue;
4296  case $ac_file in
4297    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4298    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4299       break;;
4300  esac
4301done
4302else
4303  $as_echo "$as_me: failed program was:" >&5
4304sed 's/^/| /' conftest.$ac_ext >&5
4305
4306{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4308as_fn_error $? "cannot compute suffix of object files: cannot compile
4309See \`config.log' for more details" "$LINENO" 5; }
4310fi
4311rm -f conftest.$ac_cv_objext conftest.$ac_ext
4312fi
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4314$as_echo "$ac_cv_objext" >&6; }
4315OBJEXT=$ac_cv_objext
4316ac_objext=$OBJEXT
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4318$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4319if ${ac_cv_c_compiler_gnu+:} false; then :
4320  $as_echo_n "(cached) " >&6
4321else
4322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323/* end confdefs.h.  */
4324
4325int
4326main ()
4327{
4328#ifndef __GNUC__
4329       choke me
4330#endif
4331
4332  ;
4333  return 0;
4334}
4335_ACEOF
4336if ac_fn_c_try_compile "$LINENO"; then :
4337  ac_compiler_gnu=yes
4338else
4339  ac_compiler_gnu=no
4340fi
4341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342ac_cv_c_compiler_gnu=$ac_compiler_gnu
4343
4344fi
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4346$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4347if test $ac_compiler_gnu = yes; then
4348  GCC=yes
4349else
4350  GCC=
4351fi
4352ac_test_CFLAGS=${CFLAGS+set}
4353ac_save_CFLAGS=$CFLAGS
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4355$as_echo_n "checking whether $CC accepts -g... " >&6; }
4356if ${ac_cv_prog_cc_g+:} false; then :
4357  $as_echo_n "(cached) " >&6
4358else
4359  ac_save_c_werror_flag=$ac_c_werror_flag
4360   ac_c_werror_flag=yes
4361   ac_cv_prog_cc_g=no
4362   CFLAGS="-g"
4363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364/* end confdefs.h.  */
4365
4366int
4367main ()
4368{
4369
4370  ;
4371  return 0;
4372}
4373_ACEOF
4374if ac_fn_c_try_compile "$LINENO"; then :
4375  ac_cv_prog_cc_g=yes
4376else
4377  CFLAGS=""
4378      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379/* end confdefs.h.  */
4380
4381int
4382main ()
4383{
4384
4385  ;
4386  return 0;
4387}
4388_ACEOF
4389if ac_fn_c_try_compile "$LINENO"; then :
4390
4391else
4392  ac_c_werror_flag=$ac_save_c_werror_flag
4393	 CFLAGS="-g"
4394	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395/* end confdefs.h.  */
4396
4397int
4398main ()
4399{
4400
4401  ;
4402  return 0;
4403}
4404_ACEOF
4405if ac_fn_c_try_compile "$LINENO"; then :
4406  ac_cv_prog_cc_g=yes
4407fi
4408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409fi
4410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4411fi
4412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413   ac_c_werror_flag=$ac_save_c_werror_flag
4414fi
4415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4416$as_echo "$ac_cv_prog_cc_g" >&6; }
4417if test "$ac_test_CFLAGS" = set; then
4418  CFLAGS=$ac_save_CFLAGS
4419elif test $ac_cv_prog_cc_g = yes; then
4420  if test "$GCC" = yes; then
4421    CFLAGS="-g -O2"
4422  else
4423    CFLAGS="-g"
4424  fi
4425else
4426  if test "$GCC" = yes; then
4427    CFLAGS="-O2"
4428  else
4429    CFLAGS=
4430  fi
4431fi
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4433$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4434if ${ac_cv_prog_cc_c89+:} false; then :
4435  $as_echo_n "(cached) " >&6
4436else
4437  ac_cv_prog_cc_c89=no
4438ac_save_CC=$CC
4439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440/* end confdefs.h.  */
4441#include <stdarg.h>
4442#include <stdio.h>
4443struct stat;
4444/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4445struct buf { int x; };
4446FILE * (*rcsopen) (struct buf *, struct stat *, int);
4447static char *e (p, i)
4448     char **p;
4449     int i;
4450{
4451  return p[i];
4452}
4453static char *f (char * (*g) (char **, int), char **p, ...)
4454{
4455  char *s;
4456  va_list v;
4457  va_start (v,p);
4458  s = g (p, va_arg (v,int));
4459  va_end (v);
4460  return s;
4461}
4462
4463/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4464   function prototypes and stuff, but not '\xHH' hex character constants.
4465   These don't provoke an error unfortunately, instead are silently treated
4466   as 'x'.  The following induces an error, until -std is added to get
4467   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4468   array size at least.  It's necessary to write '\x00'==0 to get something
4469   that's true only with -std.  */
4470int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4471
4472/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4473   inside strings and character constants.  */
4474#define FOO(x) 'x'
4475int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4476
4477int test (int i, double x);
4478struct s1 {int (*f) (int a);};
4479struct s2 {int (*f) (double a);};
4480int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4481int argc;
4482char **argv;
4483int
4484main ()
4485{
4486return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4487  ;
4488  return 0;
4489}
4490_ACEOF
4491for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4492	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4493do
4494  CC="$ac_save_CC $ac_arg"
4495  if ac_fn_c_try_compile "$LINENO"; then :
4496  ac_cv_prog_cc_c89=$ac_arg
4497fi
4498rm -f core conftest.err conftest.$ac_objext
4499  test "x$ac_cv_prog_cc_c89" != "xno" && break
4500done
4501rm -f conftest.$ac_ext
4502CC=$ac_save_CC
4503
4504fi
4505# AC_CACHE_VAL
4506case "x$ac_cv_prog_cc_c89" in
4507  x)
4508    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4509$as_echo "none needed" >&6; } ;;
4510  xno)
4511    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4512$as_echo "unsupported" >&6; } ;;
4513  *)
4514    CC="$CC $ac_cv_prog_cc_c89"
4515    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4516$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4517esac
4518if test "x$ac_cv_prog_cc_c89" != xno; then :
4519
4520fi
4521
4522ac_ext=c
4523ac_cpp='$CPP $CPPFLAGS'
4524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4526ac_compiler_gnu=$ac_cv_c_compiler_gnu
4527
4528ac_ext=c
4529ac_cpp='$CPP $CPPFLAGS'
4530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4534$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4535if ${am_cv_prog_cc_c_o+:} false; then :
4536  $as_echo_n "(cached) " >&6
4537else
4538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539/* end confdefs.h.  */
4540
4541int
4542main ()
4543{
4544
4545  ;
4546  return 0;
4547}
4548_ACEOF
4549  # Make sure it works both with $CC and with simple cc.
4550  # Following AC_PROG_CC_C_O, we do the test twice because some
4551  # compilers refuse to overwrite an existing .o file with -o,
4552  # though they will create one.
4553  am_cv_prog_cc_c_o=yes
4554  for am_i in 1 2; do
4555    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4556   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4557   ac_status=$?
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); } \
4560         && test -f conftest2.$ac_objext; then
4561      : OK
4562    else
4563      am_cv_prog_cc_c_o=no
4564      break
4565    fi
4566  done
4567  rm -f core conftest*
4568  unset am_i
4569fi
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4571$as_echo "$am_cv_prog_cc_c_o" >&6; }
4572if test "$am_cv_prog_cc_c_o" != yes; then
4573   # Losing compiler, so override with the script.
4574   # FIXME: It is wrong to rewrite CC.
4575   # But if we don't then we get into trouble of one sort or another.
4576   # A longer-term fix would be to have automake use am__CC in this case,
4577   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4578   CC="$am_aux_dir/compile $CC"
4579fi
4580ac_ext=c
4581ac_cpp='$CPP $CPPFLAGS'
4582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585
4586
4587depcc="$CC"   am_compiler_list=
4588
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4590$as_echo_n "checking dependency style of $depcc... " >&6; }
4591if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4592  $as_echo_n "(cached) " >&6
4593else
4594  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4595  # We make a subdir and do the tests there.  Otherwise we can end up
4596  # making bogus files that we don't know about and never remove.  For
4597  # instance it was reported that on HP-UX the gcc test will end up
4598  # making a dummy file named 'D' -- because '-MD' means "put the output
4599  # in D".
4600  rm -rf conftest.dir
4601  mkdir conftest.dir
4602  # Copy depcomp to subdir because otherwise we won't find it if we're
4603  # using a relative directory.
4604  cp "$am_depcomp" conftest.dir
4605  cd conftest.dir
4606  # We will build objects and dependencies in a subdirectory because
4607  # it helps to detect inapplicable dependency modes.  For instance
4608  # both Tru64's cc and ICC support -MD to output dependencies as a
4609  # side effect of compilation, but ICC will put the dependencies in
4610  # the current directory while Tru64 will put them in the object
4611  # directory.
4612  mkdir sub
4613
4614  am_cv_CC_dependencies_compiler_type=none
4615  if test "$am_compiler_list" = ""; then
4616     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4617  fi
4618  am__universal=false
4619  case " $depcc " in #(
4620     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4621     esac
4622
4623  for depmode in $am_compiler_list; do
4624    # Setup a source with many dependencies, because some compilers
4625    # like to wrap large dependency lists on column 80 (with \), and
4626    # we should not choose a depcomp mode which is confused by this.
4627    #
4628    # We need to recreate these files for each test, as the compiler may
4629    # overwrite some of them when testing with obscure command lines.
4630    # This happens at least with the AIX C compiler.
4631    : > sub/conftest.c
4632    for i in 1 2 3 4 5 6; do
4633      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4634      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4635      # Solaris 10 /bin/sh.
4636      echo '/* dummy */' > sub/conftst$i.h
4637    done
4638    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4639
4640    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4641    # mode.  It turns out that the SunPro C++ compiler does not properly
4642    # handle '-M -o', and we need to detect this.  Also, some Intel
4643    # versions had trouble with output in subdirs.
4644    am__obj=sub/conftest.${OBJEXT-o}
4645    am__minus_obj="-o $am__obj"
4646    case $depmode in
4647    gcc)
4648      # This depmode causes a compiler race in universal mode.
4649      test "$am__universal" = false || continue
4650      ;;
4651    nosideeffect)
4652      # After this tag, mechanisms are not by side-effect, so they'll
4653      # only be used when explicitly requested.
4654      if test "x$enable_dependency_tracking" = xyes; then
4655	continue
4656      else
4657	break
4658      fi
4659      ;;
4660    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4661      # This compiler won't grok '-c -o', but also, the minuso test has
4662      # not run yet.  These depmodes are late enough in the game, and
4663      # so weak that their functioning should not be impacted.
4664      am__obj=conftest.${OBJEXT-o}
4665      am__minus_obj=
4666      ;;
4667    none) break ;;
4668    esac
4669    if depmode=$depmode \
4670       source=sub/conftest.c object=$am__obj \
4671       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4672       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4673         >/dev/null 2>conftest.err &&
4674       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4675       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4676       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4677       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4678      # icc doesn't choke on unknown options, it will just issue warnings
4679      # or remarks (even with -Werror).  So we grep stderr for any message
4680      # that says an option was ignored or not supported.
4681      # When given -MP, icc 7.0 and 7.1 complain thusly:
4682      #   icc: Command line warning: ignoring option '-M'; no argument required
4683      # The diagnosis changed in icc 8.0:
4684      #   icc: Command line remark: option '-MP' not supported
4685      if (grep 'ignoring option' conftest.err ||
4686          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4687        am_cv_CC_dependencies_compiler_type=$depmode
4688        break
4689      fi
4690    fi
4691  done
4692
4693  cd ..
4694  rm -rf conftest.dir
4695else
4696  am_cv_CC_dependencies_compiler_type=none
4697fi
4698
4699fi
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4701$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4702CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4703
4704 if
4705  test "x$enable_dependency_tracking" != xno \
4706  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4707  am__fastdepCC_TRUE=
4708  am__fastdepCC_FALSE='#'
4709else
4710  am__fastdepCC_TRUE='#'
4711  am__fastdepCC_FALSE=
4712fi
4713
4714
4715
4716
4717
4718ac_ext=c
4719ac_cpp='$CPP $CPPFLAGS'
4720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4722ac_compiler_gnu=$ac_cv_c_compiler_gnu
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4724$as_echo_n "checking how to run the C preprocessor... " >&6; }
4725# On Suns, sometimes $CPP names a directory.
4726if test -n "$CPP" && test -d "$CPP"; then
4727  CPP=
4728fi
4729if test -z "$CPP"; then
4730  if ${ac_cv_prog_CPP+:} false; then :
4731  $as_echo_n "(cached) " >&6
4732else
4733      # Double quotes because CPP needs to be expanded
4734    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4735    do
4736      ac_preproc_ok=false
4737for ac_c_preproc_warn_flag in '' yes
4738do
4739  # Use a header file that comes with gcc, so configuring glibc
4740  # with a fresh cross-compiler works.
4741  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4742  # <limits.h> exists even on freestanding compilers.
4743  # On the NeXT, cc -E runs the code through the compiler's parser,
4744  # not just through cpp. "Syntax error" is here to catch this case.
4745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746/* end confdefs.h.  */
4747#ifdef __STDC__
4748# include <limits.h>
4749#else
4750# include <assert.h>
4751#endif
4752		     Syntax error
4753_ACEOF
4754if ac_fn_c_try_cpp "$LINENO"; then :
4755
4756else
4757  # Broken: fails on valid input.
4758continue
4759fi
4760rm -f conftest.err conftest.i conftest.$ac_ext
4761
4762  # OK, works on sane cases.  Now check whether nonexistent headers
4763  # can be detected and how.
4764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765/* end confdefs.h.  */
4766#include <ac_nonexistent.h>
4767_ACEOF
4768if ac_fn_c_try_cpp "$LINENO"; then :
4769  # Broken: success on invalid input.
4770continue
4771else
4772  # Passes both tests.
4773ac_preproc_ok=:
4774break
4775fi
4776rm -f conftest.err conftest.i conftest.$ac_ext
4777
4778done
4779# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4780rm -f conftest.i conftest.err conftest.$ac_ext
4781if $ac_preproc_ok; then :
4782  break
4783fi
4784
4785    done
4786    ac_cv_prog_CPP=$CPP
4787
4788fi
4789  CPP=$ac_cv_prog_CPP
4790else
4791  ac_cv_prog_CPP=$CPP
4792fi
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4794$as_echo "$CPP" >&6; }
4795ac_preproc_ok=false
4796for ac_c_preproc_warn_flag in '' yes
4797do
4798  # Use a header file that comes with gcc, so configuring glibc
4799  # with a fresh cross-compiler works.
4800  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4801  # <limits.h> exists even on freestanding compilers.
4802  # On the NeXT, cc -E runs the code through the compiler's parser,
4803  # not just through cpp. "Syntax error" is here to catch this case.
4804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4805/* end confdefs.h.  */
4806#ifdef __STDC__
4807# include <limits.h>
4808#else
4809# include <assert.h>
4810#endif
4811		     Syntax error
4812_ACEOF
4813if ac_fn_c_try_cpp "$LINENO"; then :
4814
4815else
4816  # Broken: fails on valid input.
4817continue
4818fi
4819rm -f conftest.err conftest.i conftest.$ac_ext
4820
4821  # OK, works on sane cases.  Now check whether nonexistent headers
4822  # can be detected and how.
4823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824/* end confdefs.h.  */
4825#include <ac_nonexistent.h>
4826_ACEOF
4827if ac_fn_c_try_cpp "$LINENO"; then :
4828  # Broken: success on invalid input.
4829continue
4830else
4831  # Passes both tests.
4832ac_preproc_ok=:
4833break
4834fi
4835rm -f conftest.err conftest.i conftest.$ac_ext
4836
4837done
4838# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4839rm -f conftest.i conftest.err conftest.$ac_ext
4840if $ac_preproc_ok; then :
4841
4842else
4843  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4844$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4845as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4846See \`config.log' for more details" "$LINENO" 5; }
4847fi
4848
4849ac_ext=c
4850ac_cpp='$CPP $CPPFLAGS'
4851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4853ac_compiler_gnu=$ac_cv_c_compiler_gnu
4854
4855
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4857$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4858if ${ac_cv_path_GREP+:} false; then :
4859  $as_echo_n "(cached) " >&6
4860else
4861  if test -z "$GREP"; then
4862  ac_path_GREP_found=false
4863  # Loop through the user's path and test for each of PROGNAME-LIST
4864  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4866do
4867  IFS=$as_save_IFS
4868  test -z "$as_dir" && as_dir=.
4869    for ac_prog in grep ggrep; do
4870    for ac_exec_ext in '' $ac_executable_extensions; do
4871      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4872      as_fn_executable_p "$ac_path_GREP" || continue
4873# Check for GNU ac_path_GREP and select it if it is found.
4874  # Check for GNU $ac_path_GREP
4875case `"$ac_path_GREP" --version 2>&1` in
4876*GNU*)
4877  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4878*)
4879  ac_count=0
4880  $as_echo_n 0123456789 >"conftest.in"
4881  while :
4882  do
4883    cat "conftest.in" "conftest.in" >"conftest.tmp"
4884    mv "conftest.tmp" "conftest.in"
4885    cp "conftest.in" "conftest.nl"
4886    $as_echo 'GREP' >> "conftest.nl"
4887    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4888    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4889    as_fn_arith $ac_count + 1 && ac_count=$as_val
4890    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4891      # Best one so far, save it but keep looking for a better one
4892      ac_cv_path_GREP="$ac_path_GREP"
4893      ac_path_GREP_max=$ac_count
4894    fi
4895    # 10*(2^10) chars as input seems more than enough
4896    test $ac_count -gt 10 && break
4897  done
4898  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4899esac
4900
4901      $ac_path_GREP_found && break 3
4902    done
4903  done
4904  done
4905IFS=$as_save_IFS
4906  if test -z "$ac_cv_path_GREP"; then
4907    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4908  fi
4909else
4910  ac_cv_path_GREP=$GREP
4911fi
4912
4913fi
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4915$as_echo "$ac_cv_path_GREP" >&6; }
4916 GREP="$ac_cv_path_GREP"
4917
4918
4919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4920$as_echo_n "checking for egrep... " >&6; }
4921if ${ac_cv_path_EGREP+:} false; then :
4922  $as_echo_n "(cached) " >&6
4923else
4924  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4925   then ac_cv_path_EGREP="$GREP -E"
4926   else
4927     if test -z "$EGREP"; then
4928  ac_path_EGREP_found=false
4929  # Loop through the user's path and test for each of PROGNAME-LIST
4930  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4932do
4933  IFS=$as_save_IFS
4934  test -z "$as_dir" && as_dir=.
4935    for ac_prog in egrep; do
4936    for ac_exec_ext in '' $ac_executable_extensions; do
4937      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4938      as_fn_executable_p "$ac_path_EGREP" || continue
4939# Check for GNU ac_path_EGREP and select it if it is found.
4940  # Check for GNU $ac_path_EGREP
4941case `"$ac_path_EGREP" --version 2>&1` in
4942*GNU*)
4943  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4944*)
4945  ac_count=0
4946  $as_echo_n 0123456789 >"conftest.in"
4947  while :
4948  do
4949    cat "conftest.in" "conftest.in" >"conftest.tmp"
4950    mv "conftest.tmp" "conftest.in"
4951    cp "conftest.in" "conftest.nl"
4952    $as_echo 'EGREP' >> "conftest.nl"
4953    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4954    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4955    as_fn_arith $ac_count + 1 && ac_count=$as_val
4956    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4957      # Best one so far, save it but keep looking for a better one
4958      ac_cv_path_EGREP="$ac_path_EGREP"
4959      ac_path_EGREP_max=$ac_count
4960    fi
4961    # 10*(2^10) chars as input seems more than enough
4962    test $ac_count -gt 10 && break
4963  done
4964  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4965esac
4966
4967      $ac_path_EGREP_found && break 3
4968    done
4969  done
4970  done
4971IFS=$as_save_IFS
4972  if test -z "$ac_cv_path_EGREP"; then
4973    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4974  fi
4975else
4976  ac_cv_path_EGREP=$EGREP
4977fi
4978
4979   fi
4980fi
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4982$as_echo "$ac_cv_path_EGREP" >&6; }
4983 EGREP="$ac_cv_path_EGREP"
4984
4985
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4987$as_echo_n "checking for ANSI C header files... " >&6; }
4988if ${ac_cv_header_stdc+:} false; then :
4989  $as_echo_n "(cached) " >&6
4990else
4991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992/* end confdefs.h.  */
4993#include <stdlib.h>
4994#include <stdarg.h>
4995#include <string.h>
4996#include <float.h>
4997
4998int
4999main ()
5000{
5001
5002  ;
5003  return 0;
5004}
5005_ACEOF
5006if ac_fn_c_try_compile "$LINENO"; then :
5007  ac_cv_header_stdc=yes
5008else
5009  ac_cv_header_stdc=no
5010fi
5011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5012
5013if test $ac_cv_header_stdc = yes; then
5014  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016/* end confdefs.h.  */
5017#include <string.h>
5018
5019_ACEOF
5020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5021  $EGREP "memchr" >/dev/null 2>&1; then :
5022
5023else
5024  ac_cv_header_stdc=no
5025fi
5026rm -f conftest*
5027
5028fi
5029
5030if test $ac_cv_header_stdc = yes; then
5031  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033/* end confdefs.h.  */
5034#include <stdlib.h>
5035
5036_ACEOF
5037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5038  $EGREP "free" >/dev/null 2>&1; then :
5039
5040else
5041  ac_cv_header_stdc=no
5042fi
5043rm -f conftest*
5044
5045fi
5046
5047if test $ac_cv_header_stdc = yes; then
5048  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5049  if test "$cross_compiling" = yes; then :
5050  :
5051else
5052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053/* end confdefs.h.  */
5054#include <ctype.h>
5055#include <stdlib.h>
5056#if ((' ' & 0x0FF) == 0x020)
5057# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5058# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5059#else
5060# define ISLOWER(c) \
5061		   (('a' <= (c) && (c) <= 'i') \
5062		     || ('j' <= (c) && (c) <= 'r') \
5063		     || ('s' <= (c) && (c) <= 'z'))
5064# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5065#endif
5066
5067#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5068int
5069main ()
5070{
5071  int i;
5072  for (i = 0; i < 256; i++)
5073    if (XOR (islower (i), ISLOWER (i))
5074	|| toupper (i) != TOUPPER (i))
5075      return 2;
5076  return 0;
5077}
5078_ACEOF
5079if ac_fn_c_try_run "$LINENO"; then :
5080
5081else
5082  ac_cv_header_stdc=no
5083fi
5084rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5085  conftest.$ac_objext conftest.beam conftest.$ac_ext
5086fi
5087
5088fi
5089fi
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5091$as_echo "$ac_cv_header_stdc" >&6; }
5092if test $ac_cv_header_stdc = yes; then
5093
5094$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5095
5096fi
5097
5098# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5099for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5100		  inttypes.h stdint.h unistd.h
5101do :
5102  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5103ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5104"
5105if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5106  cat >>confdefs.h <<_ACEOF
5107#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5108_ACEOF
5109
5110fi
5111
5112done
5113
5114
5115
5116
5117
5118  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5119if test "x$ac_cv_header_minix_config_h" = xyes; then :
5120  MINIX=yes
5121else
5122  MINIX=
5123fi
5124
5125
5126  if test "$MINIX" = yes; then
5127
5128$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5129
5130
5131$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5132
5133
5134$as_echo "#define _MINIX 1" >>confdefs.h
5135
5136  fi
5137
5138        case "$host_os" in
5139    hpux*)
5140
5141$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5142
5143      ;;
5144  esac
5145
5146
5147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5148$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5149if ${ac_cv_safe_to_define___extensions__+:} false; then :
5150  $as_echo_n "(cached) " >&6
5151else
5152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153/* end confdefs.h.  */
5154
5155#         define __EXTENSIONS__ 1
5156          $ac_includes_default
5157int
5158main ()
5159{
5160
5161  ;
5162  return 0;
5163}
5164_ACEOF
5165if ac_fn_c_try_compile "$LINENO"; then :
5166  ac_cv_safe_to_define___extensions__=yes
5167else
5168  ac_cv_safe_to_define___extensions__=no
5169fi
5170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171fi
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5173$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5174  test $ac_cv_safe_to_define___extensions__ = yes &&
5175    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5176
5177  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5178
5179  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5180
5181  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5182
5183  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5184
5185
5186
5187   case $ac_cv_prog_cc_stdc in #(
5188  no) :
5189    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5190  *) :
5191    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5192$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5193if ${ac_cv_prog_cc_c99+:} false; then :
5194  $as_echo_n "(cached) " >&6
5195else
5196  ac_cv_prog_cc_c99=no
5197ac_save_CC=$CC
5198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199/* end confdefs.h.  */
5200#include <stdarg.h>
5201#include <stdbool.h>
5202#include <stdlib.h>
5203#include <wchar.h>
5204#include <stdio.h>
5205
5206// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5207#define debug(...) fprintf (stderr, __VA_ARGS__)
5208#define showlist(...) puts (#__VA_ARGS__)
5209#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5210static void
5211test_varargs_macros (void)
5212{
5213  int x = 1234;
5214  int y = 5678;
5215  debug ("Flag");
5216  debug ("X = %d\n", x);
5217  showlist (The first, second, and third items.);
5218  report (x>y, "x is %d but y is %d", x, y);
5219}
5220
5221// Check long long types.
5222#define BIG64 18446744073709551615ull
5223#define BIG32 4294967295ul
5224#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5225#if !BIG_OK
5226  your preprocessor is broken;
5227#endif
5228#if BIG_OK
5229#else
5230  your preprocessor is broken;
5231#endif
5232static long long int bignum = -9223372036854775807LL;
5233static unsigned long long int ubignum = BIG64;
5234
5235struct incomplete_array
5236{
5237  int datasize;
5238  double data[];
5239};
5240
5241struct named_init {
5242  int number;
5243  const wchar_t *name;
5244  double average;
5245};
5246
5247typedef const char *ccp;
5248
5249static inline int
5250test_restrict (ccp restrict text)
5251{
5252  // See if C++-style comments work.
5253  // Iterate through items via the restricted pointer.
5254  // Also check for declarations in for loops.
5255  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5256    continue;
5257  return 0;
5258}
5259
5260// Check varargs and va_copy.
5261static void
5262test_varargs (const char *format, ...)
5263{
5264  va_list args;
5265  va_start (args, format);
5266  va_list args_copy;
5267  va_copy (args_copy, args);
5268
5269  const char *str;
5270  int number;
5271  float fnumber;
5272
5273  while (*format)
5274    {
5275      switch (*format++)
5276	{
5277	case 's': // string
5278	  str = va_arg (args_copy, const char *);
5279	  break;
5280	case 'd': // int
5281	  number = va_arg (args_copy, int);
5282	  break;
5283	case 'f': // float
5284	  fnumber = va_arg (args_copy, double);
5285	  break;
5286	default:
5287	  break;
5288	}
5289    }
5290  va_end (args_copy);
5291  va_end (args);
5292}
5293
5294int
5295main ()
5296{
5297
5298  // Check bool.
5299  _Bool success = false;
5300
5301  // Check restrict.
5302  if (test_restrict ("String literal") == 0)
5303    success = true;
5304  char *restrict newvar = "Another string";
5305
5306  // Check varargs.
5307  test_varargs ("s, d' f .", "string", 65, 34.234);
5308  test_varargs_macros ();
5309
5310  // Check flexible array members.
5311  struct incomplete_array *ia =
5312    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5313  ia->datasize = 10;
5314  for (int i = 0; i < ia->datasize; ++i)
5315    ia->data[i] = i * 1.234;
5316
5317  // Check named initializers.
5318  struct named_init ni = {
5319    .number = 34,
5320    .name = L"Test wide string",
5321    .average = 543.34343,
5322  };
5323
5324  ni.number = 58;
5325
5326  int dynamic_array[ni.number];
5327  dynamic_array[ni.number - 1] = 543;
5328
5329  // work around unused variable warnings
5330  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5331	  || dynamic_array[ni.number - 1] != 543);
5332
5333  ;
5334  return 0;
5335}
5336_ACEOF
5337for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5338do
5339  CC="$ac_save_CC $ac_arg"
5340  if ac_fn_c_try_compile "$LINENO"; then :
5341  ac_cv_prog_cc_c99=$ac_arg
5342fi
5343rm -f core conftest.err conftest.$ac_objext
5344  test "x$ac_cv_prog_cc_c99" != "xno" && break
5345done
5346rm -f conftest.$ac_ext
5347CC=$ac_save_CC
5348
5349fi
5350# AC_CACHE_VAL
5351case "x$ac_cv_prog_cc_c99" in
5352  x)
5353    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5354$as_echo "none needed" >&6; } ;;
5355  xno)
5356    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5357$as_echo "unsupported" >&6; } ;;
5358  *)
5359    CC="$CC $ac_cv_prog_cc_c99"
5360    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5361$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5362esac
5363if test "x$ac_cv_prog_cc_c99" != xno; then :
5364  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5365else
5366  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5367$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5368if ${ac_cv_prog_cc_c89+:} false; then :
5369  $as_echo_n "(cached) " >&6
5370else
5371  ac_cv_prog_cc_c89=no
5372ac_save_CC=$CC
5373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374/* end confdefs.h.  */
5375#include <stdarg.h>
5376#include <stdio.h>
5377struct stat;
5378/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5379struct buf { int x; };
5380FILE * (*rcsopen) (struct buf *, struct stat *, int);
5381static char *e (p, i)
5382     char **p;
5383     int i;
5384{
5385  return p[i];
5386}
5387static char *f (char * (*g) (char **, int), char **p, ...)
5388{
5389  char *s;
5390  va_list v;
5391  va_start (v,p);
5392  s = g (p, va_arg (v,int));
5393  va_end (v);
5394  return s;
5395}
5396
5397/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5398   function prototypes and stuff, but not '\xHH' hex character constants.
5399   These don't provoke an error unfortunately, instead are silently treated
5400   as 'x'.  The following induces an error, until -std is added to get
5401   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5402   array size at least.  It's necessary to write '\x00'==0 to get something
5403   that's true only with -std.  */
5404int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5405
5406/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5407   inside strings and character constants.  */
5408#define FOO(x) 'x'
5409int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5410
5411int test (int i, double x);
5412struct s1 {int (*f) (int a);};
5413struct s2 {int (*f) (double a);};
5414int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5415int argc;
5416char **argv;
5417int
5418main ()
5419{
5420return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5421  ;
5422  return 0;
5423}
5424_ACEOF
5425for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5426	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5427do
5428  CC="$ac_save_CC $ac_arg"
5429  if ac_fn_c_try_compile "$LINENO"; then :
5430  ac_cv_prog_cc_c89=$ac_arg
5431fi
5432rm -f core conftest.err conftest.$ac_objext
5433  test "x$ac_cv_prog_cc_c89" != "xno" && break
5434done
5435rm -f conftest.$ac_ext
5436CC=$ac_save_CC
5437
5438fi
5439# AC_CACHE_VAL
5440case "x$ac_cv_prog_cc_c89" in
5441  x)
5442    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5443$as_echo "none needed" >&6; } ;;
5444  xno)
5445    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5446$as_echo "unsupported" >&6; } ;;
5447  *)
5448    CC="$CC $ac_cv_prog_cc_c89"
5449    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5450$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5451esac
5452if test "x$ac_cv_prog_cc_c89" != xno; then :
5453  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5454else
5455  ac_cv_prog_cc_stdc=no
5456fi
5457
5458fi
5459 ;;
5460esac
5461  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5462$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5463  if ${ac_cv_prog_cc_stdc+:} false; then :
5464  $as_echo_n "(cached) " >&6
5465fi
5466
5467  case $ac_cv_prog_cc_stdc in #(
5468  no) :
5469    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5470$as_echo "unsupported" >&6; } ;; #(
5471  '') :
5472    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5473$as_echo "none needed" >&6; } ;; #(
5474  *) :
5475    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5476$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5477esac
5478
5479
5480
5481
5482
5483# Ralf Wildenhues: With per-target flags we need CC_C_O
5484# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
5485
5486if test $ac_cv_c_compiler_gnu = yes; then
5487    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5488$as_echo_n "checking whether $CC needs -traditional... " >&6; }
5489if ${ac_cv_prog_gcc_traditional+:} false; then :
5490  $as_echo_n "(cached) " >&6
5491else
5492    ac_pattern="Autoconf.*'x'"
5493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494/* end confdefs.h.  */
5495#include <sgtty.h>
5496Autoconf TIOCGETP
5497_ACEOF
5498if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5499  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5500  ac_cv_prog_gcc_traditional=yes
5501else
5502  ac_cv_prog_gcc_traditional=no
5503fi
5504rm -f conftest*
5505
5506
5507  if test $ac_cv_prog_gcc_traditional = no; then
5508    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509/* end confdefs.h.  */
5510#include <termio.h>
5511Autoconf TCGETA
5512_ACEOF
5513if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5514  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5515  ac_cv_prog_gcc_traditional=yes
5516fi
5517rm -f conftest*
5518
5519  fi
5520fi
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5522$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5523  if test $ac_cv_prog_gcc_traditional = yes; then
5524    CC="$CC -traditional"
5525  fi
5526fi
5527
5528
5529
5530CFLAGS_NTP=
5531CPPFLAGS_NTP=
5532LDADD_NTP=
5533LDFLAGS_NTP=
5534
5535
5536
5537
5538
5539case "$ac_cv_prog_cc_c89" in
5540 no)
5541    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5542		 version 4.2.5 and higher." >&5
5543$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5544		 version 4.2.5 and higher." >&2;}
5545    ;;
5546esac
5547
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
5549$as_echo_n "checking if $CC can handle #warning... " >&6; }
5550if ${ntp_cv_cpp_warning+:} false; then :
5551  $as_echo_n "(cached) " >&6
5552else
5553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554/* end confdefs.h.  */
5555
5556int
5557main ()
5558{
5559#warning foo
5560  ;
5561  return 0;
5562}
5563_ACEOF
5564if ac_fn_c_try_compile "$LINENO"; then :
5565  ntp_cv_cpp_warning=yes
5566else
5567  ntp_cv_cpp_warning=no
5568
5569fi
5570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571
5572fi
5573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
5574$as_echo "$ntp_cv_cpp_warning" >&6; }
5575case "$ntp_cv_cpp_warning" in
5576 no)
5577
5578$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
5579
5580esac
5581
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
5583$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
5584if ${ntp_cv_cc_attribute+:} false; then :
5585  $as_echo_n "(cached) " >&6
5586else
5587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588/* end confdefs.h.  */
5589
5590int
5591main ()
5592{
5593void foo(void) __attribute__((__noreturn__));
5594
5595  ;
5596  return 0;
5597}
5598_ACEOF
5599if ac_fn_c_try_compile "$LINENO"; then :
5600  ntp_cv_cc_attribute=yes
5601else
5602  ntp_cv_cc_attribute=no
5603
5604fi
5605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606
5607fi
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
5609$as_echo "$ntp_cv_cc_attribute" >&6; }
5610case "$ntp_cv_cc_attribute" in
5611 yes)
5612
5613$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
5614
5615esac
5616
5617
5618case "$GCC" in
5619 yes)
5620    SAVED_CFLAGS="$CFLAGS"
5621    CFLAGS="$CFLAGS -Wstrict-overflow"
5622    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
5623$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
5624if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
5625  $as_echo_n "(cached) " >&6
5626else
5627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628/* end confdefs.h.  */
5629
5630int
5631main ()
5632{
5633
5634  ;
5635  return 0;
5636}
5637_ACEOF
5638if ac_fn_c_try_compile "$LINENO"; then :
5639  ntp_cv_gcc_Wstrict_overflow=yes
5640else
5641  ntp_cv_gcc_Wstrict_overflow=no
5642
5643fi
5644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645
5646fi
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
5648$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
5649    #
5650    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
5651    # flag to CFLAGS.
5652    #
5653    CFLAGS="$SAVED_CFLAGS -Winit-self"
5654    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
5655$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
5656if ${ntp_cv_gcc_Winit_self+:} false; then :
5657  $as_echo_n "(cached) " >&6
5658else
5659
5660	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661/* end confdefs.h.  */
5662
5663int
5664main ()
5665{
5666
5667  ;
5668  return 0;
5669}
5670_ACEOF
5671if ac_fn_c_try_compile "$LINENO"; then :
5672  ntp_cv_gcc_Winit_self=yes
5673else
5674  ntp_cv_gcc_Winit_self=no
5675
5676fi
5677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678
5679
5680fi
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
5682$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
5683    CFLAGS="$SAVED_CFLAGS"
5684    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
5685    #
5686    # $ntp_cv_gcc_Winit_self is tested later to add the
5687    # flag to CFLAGS_NTP.
5688    #
5689    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
5690$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
5691if ${ntp_cv_gc_sections_runs+:} false; then :
5692  $as_echo_n "(cached) " >&6
5693else
5694
5695	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
5696	    CFLAGS="$CFLAGS -Wl,--gc-sections"
5697	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698/* end confdefs.h.  */
5699
5700			#include <stdlib.h>
5701			#include <stdio.h>
5702
5703int
5704main ()
5705{
5706
5707			FILE *	fpC;
5708			char	buf[32];
5709			size_t	cch;
5710			int	read_success_once;
5711
5712			fpC = fopen("conftest.c", "r");
5713			if (NULL == fpC)
5714				exit(1);
5715			do {
5716				cch = fread(buf, sizeof(buf), 1, fpC);
5717				read_success_once |= (0 != cch);
5718			} while (0 != cch);
5719			if (!read_success_once)
5720				exit(2);
5721			if (!feof(fpC))
5722				exit(3);
5723			if (0 != fclose(fpC))
5724				exit(4);
5725
5726			exit(EXIT_SUCCESS);
5727
5728
5729  ;
5730  return 0;
5731}
5732_ACEOF
5733if ac_fn_c_try_link "$LINENO"; then :
5734
5735		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
5736			ntp_cv_gc_sections_runs=no
5737		    else
5738			ntp_cv_gc_sections_runs=no
5739			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
5740		    fi
5741
5742else
5743  ntp_cv_gc_sections_runs=no
5744
5745fi
5746rm -f core conftest.err conftest.$ac_objext \
5747    conftest$ac_exeext conftest.$ac_ext
5748	    CFLAGS="$origCFLAGS"
5749	    { origCFLAGS=; unset origCFLAGS;}
5750
5751
5752fi
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
5754$as_echo "$ntp_cv_gc_sections_runs" >&6; }
5755    case "$ntp_cv_gc_sections_runs" in
5756     yes)
5757	LDADD_LIBNTP="-Wl,--gc-sections"
5758	CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
5759	;;
5760     no)
5761	LDADD_LIBNTP=
5762	;;
5763    esac
5764    CFLAGS_NTP="$CFLAGS_NTP -Wall"
5765    CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
5766    CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
5767    # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
5768    # CFLAGS_NTP="$CFLAGS_NTP -Werror"
5769    # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
5770    # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
5771    CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
5772    CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
5773    CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
5774    # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
5775    # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
5776    case "$ntp_cv_gcc_Winit_self" in
5777     yes)
5778	CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
5779    esac
5780    case "$ntp_cv_gcc_Wstrict_overflow" in
5781     yes)
5782	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
5783    esac
5784    # -W[no-]strict-prototypes might be added by NTP_OPENSSL
5785esac
5786
5787
5788    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
5789$as_echo_n "checking additional compiler flags... " >&6; }
5790    # allow ntp_os_cflags to be preset to skip this stuff
5791    case "${ntp_os_cflags+set}" in
5792     set)
5793	;;
5794     *)
5795	ntp_os_cflags=
5796	case "$host_os" in
5797	 aix[1-3]*)
5798	    ;;
5799	 aix4.[0-2]*)
5800	    # turn on additional headers
5801	    ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
5802	    ;;
5803	 aix5.3*)
5804	    # avoid circular dependencies in yp headers, and more
5805	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
5806	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
5807	    ;;
5808	 aix*)
5809	    # XXX Only verified thru AIX6.
5810	    # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
5811	    # avoid circular dependencies in yp headers
5812	    # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
5813	    # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
5814	    # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
5815	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
5816	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
5817	    ;;
5818	 amigaos)
5819	    ntp_os_cflags="-DSYS_AMIGA"
5820	    ;;
5821	 darwin*|macosx*|rhapsody*)
5822	    ntp_os_cflags="-D_P1003_1B_VISIBLE"
5823	    ;;
5824	 hpux10.*)		# at least for hppa2.0-hp-hpux10.20
5825	    case "$GCC" in
5826	     yes)
5827		;;
5828	     *)
5829		# use Ansi compiler on HPUX, and some -Wp magic
5830		ntp_os_cflags="-Ae -Wp,-H18816"
5831		;;
5832	    esac
5833	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
5834	    ;;
5835	 hpux*)
5836	    case "$GCC" in
5837	     yes)
5838		;;
5839	     *)
5840		# use Ansi compiler on HPUX
5841		ntp_os_cflags="-Ae"
5842	    esac
5843	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
5844	    ;;
5845	 irix6*)
5846	    case "$CC" in
5847	     cc)
5848		# do not use 64-bit compiler
5849		ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
5850	    esac
5851	    ;;
5852	 nextstep3)
5853	    ntp_os_cflags="-posix"
5854	    ;;
5855	 solaris1*|solaris2.[0-5]|solaris2.5.*)
5856	    ;;
5857	 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
5858	    ;;
5859	 solaris2*|sunos5*)
5860	    # turn on 64-bit file offset interface
5861	    ntp_os_cflags="-D_LARGEFILE64_SOURCE"
5862	    ;;
5863	 vxworks*)
5864	    case "$build" in
5865	     $host)
5866		;;
5867	     *)
5868		# Quick and dirty sanity check
5869		case "$VX_KERNEL" in
5870		 '')
5871		    as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
5872		esac
5873		ntp_os_cflags="-DSYS_VXWORKS"
5874	    esac
5875	    ;;
5876	esac
5877    esac
5878    case "$ntp_os_cflags" in
5879     '')
5880	ntp_os_cflags_msg="none needed"
5881	;;
5882     *)
5883	ntp_os_cflags_msg="$ntp_os_cflags"
5884    esac
5885    CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
5886    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
5887$as_echo "$ntp_os_cflags_msg" >&6; }
5888    { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
5889    ###
5890    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
5891$as_echo_n "checking additional linker flags... " >&6; }
5892    # HMS: The following might still need tweaking
5893    # allow ntp_os_ldflags to be preset to skip this stuff
5894    case "${ntp_os_ldflags+set}" in
5895     set)
5896	;;
5897     *)
5898	ntp_os_ldflags=
5899	case "$host_os" in
5900	 hpux*)
5901	    case "$GCC" in
5902	     yes)
5903		ntp_os_ldflags="-Wl,+allowdups"
5904		;;
5905	    esac
5906	    ;;
5907	esac
5908	;;
5909    esac
5910    case "$ntp_os_ldflags" in
5911     '')
5912	ntp_os_ldflags_msg="none needed"
5913	;;
5914     *)
5915	ntp_os_ldflags_msg="$ntp_os_ldflags"
5916    esac
5917    LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
5918    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
5919$as_echo "$ntp_os_ldflags_msg" >&6; }
5920    { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
5921
5922
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5924$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5925if ${ac_cv_c_bigendian+:} false; then :
5926  $as_echo_n "(cached) " >&6
5927else
5928  ac_cv_c_bigendian=unknown
5929    # See if we're dealing with a universal compiler.
5930    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931/* end confdefs.h.  */
5932#ifndef __APPLE_CC__
5933	       not a universal capable compiler
5934	     #endif
5935	     typedef int dummy;
5936
5937_ACEOF
5938if ac_fn_c_try_compile "$LINENO"; then :
5939
5940	# Check for potential -arch flags.  It is not universal unless
5941	# there are at least two -arch flags with different values.
5942	ac_arch=
5943	ac_prev=
5944	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5945	 if test -n "$ac_prev"; then
5946	   case $ac_word in
5947	     i?86 | x86_64 | ppc | ppc64)
5948	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5949		 ac_arch=$ac_word
5950	       else
5951		 ac_cv_c_bigendian=universal
5952		 break
5953	       fi
5954	       ;;
5955	   esac
5956	   ac_prev=
5957	 elif test "x$ac_word" = "x-arch"; then
5958	   ac_prev=arch
5959	 fi
5960       done
5961fi
5962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5963    if test $ac_cv_c_bigendian = unknown; then
5964      # See if sys/param.h defines the BYTE_ORDER macro.
5965      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966/* end confdefs.h.  */
5967#include <sys/types.h>
5968	     #include <sys/param.h>
5969
5970int
5971main ()
5972{
5973#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5974		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5975		     && LITTLE_ENDIAN)
5976	      bogus endian macros
5977	     #endif
5978
5979  ;
5980  return 0;
5981}
5982_ACEOF
5983if ac_fn_c_try_compile "$LINENO"; then :
5984  # It does; now see whether it defined to BIG_ENDIAN or not.
5985	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986/* end confdefs.h.  */
5987#include <sys/types.h>
5988		#include <sys/param.h>
5989
5990int
5991main ()
5992{
5993#if BYTE_ORDER != BIG_ENDIAN
5994		 not big endian
5995		#endif
5996
5997  ;
5998  return 0;
5999}
6000_ACEOF
6001if ac_fn_c_try_compile "$LINENO"; then :
6002  ac_cv_c_bigendian=yes
6003else
6004  ac_cv_c_bigendian=no
6005fi
6006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007fi
6008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6009    fi
6010    if test $ac_cv_c_bigendian = unknown; then
6011      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6012      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013/* end confdefs.h.  */
6014#include <limits.h>
6015
6016int
6017main ()
6018{
6019#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6020	      bogus endian macros
6021	     #endif
6022
6023  ;
6024  return 0;
6025}
6026_ACEOF
6027if ac_fn_c_try_compile "$LINENO"; then :
6028  # It does; now see whether it defined to _BIG_ENDIAN or not.
6029	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030/* end confdefs.h.  */
6031#include <limits.h>
6032
6033int
6034main ()
6035{
6036#ifndef _BIG_ENDIAN
6037		 not big endian
6038		#endif
6039
6040  ;
6041  return 0;
6042}
6043_ACEOF
6044if ac_fn_c_try_compile "$LINENO"; then :
6045  ac_cv_c_bigendian=yes
6046else
6047  ac_cv_c_bigendian=no
6048fi
6049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050fi
6051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052    fi
6053    if test $ac_cv_c_bigendian = unknown; then
6054      # Compile a test program.
6055      if test "$cross_compiling" = yes; then :
6056  # Try to guess by grepping values from an object file.
6057	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058/* end confdefs.h.  */
6059short int ascii_mm[] =
6060		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6061		short int ascii_ii[] =
6062		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6063		int use_ascii (int i) {
6064		  return ascii_mm[i] + ascii_ii[i];
6065		}
6066		short int ebcdic_ii[] =
6067		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6068		short int ebcdic_mm[] =
6069		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6070		int use_ebcdic (int i) {
6071		  return ebcdic_mm[i] + ebcdic_ii[i];
6072		}
6073		extern int foo;
6074
6075int
6076main ()
6077{
6078return use_ascii (foo) == use_ebcdic (foo);
6079  ;
6080  return 0;
6081}
6082_ACEOF
6083if ac_fn_c_try_compile "$LINENO"; then :
6084  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6085	      ac_cv_c_bigendian=yes
6086	    fi
6087	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6088	      if test "$ac_cv_c_bigendian" = unknown; then
6089		ac_cv_c_bigendian=no
6090	      else
6091		# finding both strings is unlikely to happen, but who knows?
6092		ac_cv_c_bigendian=unknown
6093	      fi
6094	    fi
6095fi
6096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097else
6098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099/* end confdefs.h.  */
6100$ac_includes_default
6101int
6102main ()
6103{
6104
6105	     /* Are we little or big endian?  From Harbison&Steele.  */
6106	     union
6107	     {
6108	       long int l;
6109	       char c[sizeof (long int)];
6110	     } u;
6111	     u.l = 1;
6112	     return u.c[sizeof (long int) - 1] == 1;
6113
6114  ;
6115  return 0;
6116}
6117_ACEOF
6118if ac_fn_c_try_run "$LINENO"; then :
6119  ac_cv_c_bigendian=no
6120else
6121  ac_cv_c_bigendian=yes
6122fi
6123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6124  conftest.$ac_objext conftest.beam conftest.$ac_ext
6125fi
6126
6127    fi
6128fi
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6130$as_echo "$ac_cv_c_bigendian" >&6; }
6131 case $ac_cv_c_bigendian in #(
6132   yes)
6133     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6134;; #(
6135   no)
6136      ;; #(
6137   universal)
6138
6139$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6140
6141     ;; #(
6142   *)
6143     as_fn_error $? "unknown endianness
6144 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6145 esac
6146
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6148$as_echo_n "checking for working volatile... " >&6; }
6149if ${ac_cv_c_volatile+:} false; then :
6150  $as_echo_n "(cached) " >&6
6151else
6152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153/* end confdefs.h.  */
6154
6155int
6156main ()
6157{
6158
6159volatile int x;
6160int * volatile y = (int *) 0;
6161return !x && !y;
6162  ;
6163  return 0;
6164}
6165_ACEOF
6166if ac_fn_c_try_compile "$LINENO"; then :
6167  ac_cv_c_volatile=yes
6168else
6169  ac_cv_c_volatile=no
6170fi
6171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172fi
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6174$as_echo "$ac_cv_c_volatile" >&6; }
6175if test $ac_cv_c_volatile = no; then
6176
6177$as_echo "#define volatile /**/" >>confdefs.h
6178
6179fi
6180
6181ac_ext=c
6182ac_cpp='$CPP $CPPFLAGS'
6183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6185ac_compiler_gnu=$ac_cv_c_compiler_gnu
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6187$as_echo_n "checking how to run the C preprocessor... " >&6; }
6188# On Suns, sometimes $CPP names a directory.
6189if test -n "$CPP" && test -d "$CPP"; then
6190  CPP=
6191fi
6192if test -z "$CPP"; then
6193  if ${ac_cv_prog_CPP+:} false; then :
6194  $as_echo_n "(cached) " >&6
6195else
6196      # Double quotes because CPP needs to be expanded
6197    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6198    do
6199      ac_preproc_ok=false
6200for ac_c_preproc_warn_flag in '' yes
6201do
6202  # Use a header file that comes with gcc, so configuring glibc
6203  # with a fresh cross-compiler works.
6204  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6205  # <limits.h> exists even on freestanding compilers.
6206  # On the NeXT, cc -E runs the code through the compiler's parser,
6207  # not just through cpp. "Syntax error" is here to catch this case.
6208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209/* end confdefs.h.  */
6210#ifdef __STDC__
6211# include <limits.h>
6212#else
6213# include <assert.h>
6214#endif
6215		     Syntax error
6216_ACEOF
6217if ac_fn_c_try_cpp "$LINENO"; then :
6218
6219else
6220  # Broken: fails on valid input.
6221continue
6222fi
6223rm -f conftest.err conftest.i conftest.$ac_ext
6224
6225  # OK, works on sane cases.  Now check whether nonexistent headers
6226  # can be detected and how.
6227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228/* end confdefs.h.  */
6229#include <ac_nonexistent.h>
6230_ACEOF
6231if ac_fn_c_try_cpp "$LINENO"; then :
6232  # Broken: success on invalid input.
6233continue
6234else
6235  # Passes both tests.
6236ac_preproc_ok=:
6237break
6238fi
6239rm -f conftest.err conftest.i conftest.$ac_ext
6240
6241done
6242# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6243rm -f conftest.i conftest.err conftest.$ac_ext
6244if $ac_preproc_ok; then :
6245  break
6246fi
6247
6248    done
6249    ac_cv_prog_CPP=$CPP
6250
6251fi
6252  CPP=$ac_cv_prog_CPP
6253else
6254  ac_cv_prog_CPP=$CPP
6255fi
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6257$as_echo "$CPP" >&6; }
6258ac_preproc_ok=false
6259for ac_c_preproc_warn_flag in '' yes
6260do
6261  # Use a header file that comes with gcc, so configuring glibc
6262  # with a fresh cross-compiler works.
6263  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6264  # <limits.h> exists even on freestanding compilers.
6265  # On the NeXT, cc -E runs the code through the compiler's parser,
6266  # not just through cpp. "Syntax error" is here to catch this case.
6267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268/* end confdefs.h.  */
6269#ifdef __STDC__
6270# include <limits.h>
6271#else
6272# include <assert.h>
6273#endif
6274		     Syntax error
6275_ACEOF
6276if ac_fn_c_try_cpp "$LINENO"; then :
6277
6278else
6279  # Broken: fails on valid input.
6280continue
6281fi
6282rm -f conftest.err conftest.i conftest.$ac_ext
6283
6284  # OK, works on sane cases.  Now check whether nonexistent headers
6285  # can be detected and how.
6286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287/* end confdefs.h.  */
6288#include <ac_nonexistent.h>
6289_ACEOF
6290if ac_fn_c_try_cpp "$LINENO"; then :
6291  # Broken: success on invalid input.
6292continue
6293else
6294  # Passes both tests.
6295ac_preproc_ok=:
6296break
6297fi
6298rm -f conftest.err conftest.i conftest.$ac_ext
6299
6300done
6301# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6302rm -f conftest.i conftest.err conftest.$ac_ext
6303if $ac_preproc_ok; then :
6304
6305else
6306  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6308as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6309See \`config.log' for more details" "$LINENO" 5; }
6310fi
6311
6312ac_ext=c
6313ac_cpp='$CPP $CPPFLAGS'
6314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6316ac_compiler_gnu=$ac_cv_c_compiler_gnu
6317
6318
6319
6320
6321for ac_prog in 'bison -y' byacc
6322do
6323  # Extract the first word of "$ac_prog", so it can be a program name with args.
6324set dummy $ac_prog; ac_word=$2
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326$as_echo_n "checking for $ac_word... " >&6; }
6327if ${ac_cv_prog_YACC+:} false; then :
6328  $as_echo_n "(cached) " >&6
6329else
6330  if test -n "$YACC"; then
6331  ac_cv_prog_YACC="$YACC" # Let the user override the test.
6332else
6333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334for as_dir in $PATH
6335do
6336  IFS=$as_save_IFS
6337  test -z "$as_dir" && as_dir=.
6338    for ac_exec_ext in '' $ac_executable_extensions; do
6339  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6340    ac_cv_prog_YACC="$ac_prog"
6341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342    break 2
6343  fi
6344done
6345  done
6346IFS=$as_save_IFS
6347
6348fi
6349fi
6350YACC=$ac_cv_prog_YACC
6351if test -n "$YACC"; then
6352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6353$as_echo "$YACC" >&6; }
6354else
6355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356$as_echo "no" >&6; }
6357fi
6358
6359
6360  test -n "$YACC" && break
6361done
6362test -n "$YACC" || YACC="yacc"
6363
6364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6365$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6366if ${ac_cv_prog_cc_c99+:} false; then :
6367  $as_echo_n "(cached) " >&6
6368else
6369  ac_cv_prog_cc_c99=no
6370ac_save_CC=$CC
6371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372/* end confdefs.h.  */
6373#include <stdarg.h>
6374#include <stdbool.h>
6375#include <stdlib.h>
6376#include <wchar.h>
6377#include <stdio.h>
6378
6379// Check varargs macros.  These examples are taken from C99 6.10.3.5.
6380#define debug(...) fprintf (stderr, __VA_ARGS__)
6381#define showlist(...) puts (#__VA_ARGS__)
6382#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6383static void
6384test_varargs_macros (void)
6385{
6386  int x = 1234;
6387  int y = 5678;
6388  debug ("Flag");
6389  debug ("X = %d\n", x);
6390  showlist (The first, second, and third items.);
6391  report (x>y, "x is %d but y is %d", x, y);
6392}
6393
6394// Check long long types.
6395#define BIG64 18446744073709551615ull
6396#define BIG32 4294967295ul
6397#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6398#if !BIG_OK
6399  your preprocessor is broken;
6400#endif
6401#if BIG_OK
6402#else
6403  your preprocessor is broken;
6404#endif
6405static long long int bignum = -9223372036854775807LL;
6406static unsigned long long int ubignum = BIG64;
6407
6408struct incomplete_array
6409{
6410  int datasize;
6411  double data[];
6412};
6413
6414struct named_init {
6415  int number;
6416  const wchar_t *name;
6417  double average;
6418};
6419
6420typedef const char *ccp;
6421
6422static inline int
6423test_restrict (ccp restrict text)
6424{
6425  // See if C++-style comments work.
6426  // Iterate through items via the restricted pointer.
6427  // Also check for declarations in for loops.
6428  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6429    continue;
6430  return 0;
6431}
6432
6433// Check varargs and va_copy.
6434static void
6435test_varargs (const char *format, ...)
6436{
6437  va_list args;
6438  va_start (args, format);
6439  va_list args_copy;
6440  va_copy (args_copy, args);
6441
6442  const char *str;
6443  int number;
6444  float fnumber;
6445
6446  while (*format)
6447    {
6448      switch (*format++)
6449	{
6450	case 's': // string
6451	  str = va_arg (args_copy, const char *);
6452	  break;
6453	case 'd': // int
6454	  number = va_arg (args_copy, int);
6455	  break;
6456	case 'f': // float
6457	  fnumber = va_arg (args_copy, double);
6458	  break;
6459	default:
6460	  break;
6461	}
6462    }
6463  va_end (args_copy);
6464  va_end (args);
6465}
6466
6467int
6468main ()
6469{
6470
6471  // Check bool.
6472  _Bool success = false;
6473
6474  // Check restrict.
6475  if (test_restrict ("String literal") == 0)
6476    success = true;
6477  char *restrict newvar = "Another string";
6478
6479  // Check varargs.
6480  test_varargs ("s, d' f .", "string", 65, 34.234);
6481  test_varargs_macros ();
6482
6483  // Check flexible array members.
6484  struct incomplete_array *ia =
6485    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6486  ia->datasize = 10;
6487  for (int i = 0; i < ia->datasize; ++i)
6488    ia->data[i] = i * 1.234;
6489
6490  // Check named initializers.
6491  struct named_init ni = {
6492    .number = 34,
6493    .name = L"Test wide string",
6494    .average = 543.34343,
6495  };
6496
6497  ni.number = 58;
6498
6499  int dynamic_array[ni.number];
6500  dynamic_array[ni.number - 1] = 543;
6501
6502  // work around unused variable warnings
6503  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6504	  || dynamic_array[ni.number - 1] != 543);
6505
6506  ;
6507  return 0;
6508}
6509_ACEOF
6510for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
6511do
6512  CC="$ac_save_CC $ac_arg"
6513  if ac_fn_c_try_compile "$LINENO"; then :
6514  ac_cv_prog_cc_c99=$ac_arg
6515fi
6516rm -f core conftest.err conftest.$ac_objext
6517  test "x$ac_cv_prog_cc_c99" != "xno" && break
6518done
6519rm -f conftest.$ac_ext
6520CC=$ac_save_CC
6521
6522fi
6523# AC_CACHE_VAL
6524case "x$ac_cv_prog_cc_c99" in
6525  x)
6526    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6527$as_echo "none needed" >&6; } ;;
6528  xno)
6529    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6530$as_echo "unsupported" >&6; } ;;
6531  *)
6532    CC="$CC $ac_cv_prog_cc_c99"
6533    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6534$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6535esac
6536if test "x$ac_cv_prog_cc_c99" != xno; then :
6537
6538fi
6539
6540
6541
6542	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
6543$as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }
6544
6545
6546	ac_ext=c
6547ac_cpp='$CPP $CPPFLAGS'
6548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6550ac_compiler_gnu=$ac_cv_c_compiler_gnu
6551
6552
6553		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554/* end confdefs.h.  */
6555
6556			struct foo_s {int i1; int i2;};
6557			int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }
6558
6559_ACEOF
6560if ac_fn_c_try_compile "$LINENO"; then :
6561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6562$as_echo "yes" >&6; }
6563else
6564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565$as_echo "no" >&6; }
6566
6567$as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
6568
6569fi
6570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571
6572	ac_ext=c
6573ac_cpp='$CPP $CPPFLAGS'
6574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6576ac_compiler_gnu=$ac_cv_c_compiler_gnu
6577
6578
6579
6580
6581
6582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5
6583$as_echo_n "checking for compile/link hardening flags... " >&6; }
6584
6585
6586# Check whether --with-hardenfile was given.
6587if test "${with_hardenfile+set}" = set; then :
6588  withval=$with_hardenfile;
6589else
6590  with_hardenfile=no
6591
6592fi
6593
6594
6595(									\
6596    SENTINEL_DIR="$PWD" &&						\
6597    cd $srcdir/sntp &&							\
6598    case "$with_hardenfile" in						\
6599     yes|no|'')								\
6600	scripts/genHardFlags -d "$SENTINEL_DIR"				\
6601	;;								\
6602     *)									\
6603	scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_hardenfile"	\
6604	;;								\
6605    esac								\
6606) > genHardFlags.i 2> genHardFlags.err
6607. ./genHardFlags.i
6608
6609case "$GENHARDFLAG" in
6610 OK)
6611    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5
6612$as_echo "in file $GENHARDFLAGFILE" >&6; }
6613    rm genHardFlags.err genHardFlags.i
6614    ;;
6615 *)
6616    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6617$as_echo "failed." >&6; }
6618    as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5
6619    ;;
6620esac
6621
6622
6623
6624
6625
6626
6627
6628
6629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
6630$as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
6631ntp_vpath_hack="no"
6632case "$srcdir::${force_ntp_vpath_hack-no}" in
6633 .::*)
6634    ;; # VPATH_HACK path is for VPATH builds only.
6635 *::yes)
6636    ntp_vpath_hack="yes"
6637    ;;
6638 *::*)
6639    case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
6640     '')
6641	ntp_vpath_hack="yes"
6642    esac
6643esac
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
6645$as_echo "$ntp_vpath_hack" >&6; }
6646 if test x$ntp_vpath_hack = xyes; then
6647  VPATH_HACK_TRUE=
6648  VPATH_HACK_FALSE='#'
6649else
6650  VPATH_HACK_TRUE='#'
6651  VPATH_HACK_FALSE=
6652fi
6653
6654
6655
6656
6657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
6658$as_echo_n "checking for install dir and man conventions... " >&6; }
6659
6660
6661# Check whether --with-locfile was given.
6662if test "${with_locfile+set}" = set; then :
6663  withval=$with_locfile;
6664else
6665  with_locfile=no
6666
6667fi
6668
6669
6670(									\
6671    SENTINEL_DIR="$PWD" &&						\
6672    cd $srcdir/sntp &&							\
6673    case "$with_locfile" in						\
6674     yes|no|'')								\
6675	scripts/genLocInfo -d "$SENTINEL_DIR"				\
6676	;;								\
6677     *)									\
6678	scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile"	\
6679	;;								\
6680    esac								\
6681) > genLocInfo.i 2> genLocInfo.err
6682. ./genLocInfo.i
6683
6684case "$GENLOCINFO" in
6685 OK)
6686    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
6687$as_echo "in file $GENLOCINFOFILE" >&6; }
6688    rm genLocInfo.err genLocInfo.i
6689    ;;
6690 *)
6691    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6692$as_echo "failed." >&6; }
6693    as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
6694    ;;
6695esac
6696
6697 if test "$CALC_TICKADJ_MS" ; then
6698  WANT_CALC_TICKADJ_MS_TRUE=
6699  WANT_CALC_TICKADJ_MS_FALSE='#'
6700else
6701  WANT_CALC_TICKADJ_MS_TRUE='#'
6702  WANT_CALC_TICKADJ_MS_FALSE=
6703fi
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747 if test -z "$NTPSWEEP_NI" ; then
6748  INSTALL_NTPSWEEP_TRUE=
6749  INSTALL_NTPSWEEP_FALSE='#'
6750else
6751  INSTALL_NTPSWEEP_TRUE='#'
6752  INSTALL_NTPSWEEP_FALSE=
6753fi
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795 if test -z "$UPDATE_LEAP_NI" ; then
6796  INSTALL_UPDATE_LEAP_TRUE=
6797  INSTALL_UPDATE_LEAP_FALSE='#'
6798else
6799  INSTALL_UPDATE_LEAP_TRUE='#'
6800  INSTALL_UPDATE_LEAP_FALSE=
6801fi
6802
6803
6804
6805if test -n "$ac_tool_prefix"; then
6806  for ac_prog in ar lib "link -lib"
6807  do
6808    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6809set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811$as_echo_n "checking for $ac_word... " >&6; }
6812if ${ac_cv_prog_AR+:} false; then :
6813  $as_echo_n "(cached) " >&6
6814else
6815  if test -n "$AR"; then
6816  ac_cv_prog_AR="$AR" # Let the user override the test.
6817else
6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821  IFS=$as_save_IFS
6822  test -z "$as_dir" && as_dir=.
6823    for ac_exec_ext in '' $ac_executable_extensions; do
6824  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827    break 2
6828  fi
6829done
6830  done
6831IFS=$as_save_IFS
6832
6833fi
6834fi
6835AR=$ac_cv_prog_AR
6836if test -n "$AR"; then
6837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6838$as_echo "$AR" >&6; }
6839else
6840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841$as_echo "no" >&6; }
6842fi
6843
6844
6845    test -n "$AR" && break
6846  done
6847fi
6848if test -z "$AR"; then
6849  ac_ct_AR=$AR
6850  for ac_prog in ar lib "link -lib"
6851do
6852  # Extract the first word of "$ac_prog", so it can be a program name with args.
6853set dummy $ac_prog; ac_word=$2
6854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855$as_echo_n "checking for $ac_word... " >&6; }
6856if ${ac_cv_prog_ac_ct_AR+:} false; then :
6857  $as_echo_n "(cached) " >&6
6858else
6859  if test -n "$ac_ct_AR"; then
6860  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6861else
6862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863for as_dir in $PATH
6864do
6865  IFS=$as_save_IFS
6866  test -z "$as_dir" && as_dir=.
6867    for ac_exec_ext in '' $ac_executable_extensions; do
6868  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869    ac_cv_prog_ac_ct_AR="$ac_prog"
6870    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6871    break 2
6872  fi
6873done
6874  done
6875IFS=$as_save_IFS
6876
6877fi
6878fi
6879ac_ct_AR=$ac_cv_prog_ac_ct_AR
6880if test -n "$ac_ct_AR"; then
6881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6882$as_echo "$ac_ct_AR" >&6; }
6883else
6884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885$as_echo "no" >&6; }
6886fi
6887
6888
6889  test -n "$ac_ct_AR" && break
6890done
6891
6892  if test "x$ac_ct_AR" = x; then
6893    AR="false"
6894  else
6895    case $cross_compiling:$ac_tool_warned in
6896yes:)
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6899ac_tool_warned=yes ;;
6900esac
6901    AR=$ac_ct_AR
6902  fi
6903fi
6904
6905: ${AR=ar}
6906
6907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6908$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6909if ${am_cv_ar_interface+:} false; then :
6910  $as_echo_n "(cached) " >&6
6911else
6912  ac_ext=c
6913ac_cpp='$CPP $CPPFLAGS'
6914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6916ac_compiler_gnu=$ac_cv_c_compiler_gnu
6917
6918   am_cv_ar_interface=ar
6919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920/* end confdefs.h.  */
6921int some_variable = 0;
6922_ACEOF
6923if ac_fn_c_try_compile "$LINENO"; then :
6924  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6925      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6926  (eval $am_ar_try) 2>&5
6927  ac_status=$?
6928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6929  test $ac_status = 0; }
6930      if test "$ac_status" -eq 0; then
6931        am_cv_ar_interface=ar
6932      else
6933        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6934        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6935  (eval $am_ar_try) 2>&5
6936  ac_status=$?
6937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6938  test $ac_status = 0; }
6939        if test "$ac_status" -eq 0; then
6940          am_cv_ar_interface=lib
6941        else
6942          am_cv_ar_interface=unknown
6943        fi
6944      fi
6945      rm -f conftest.lib libconftest.a
6946
6947fi
6948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6949   ac_ext=c
6950ac_cpp='$CPP $CPPFLAGS'
6951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6953ac_compiler_gnu=$ac_cv_c_compiler_gnu
6954
6955fi
6956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6957$as_echo "$am_cv_ar_interface" >&6; }
6958
6959case $am_cv_ar_interface in
6960ar)
6961  ;;
6962lib)
6963  # Microsoft lib, so override with the ar-lib wrapper script.
6964  # FIXME: It is wrong to rewrite AR.
6965  # But if we don't then we get into trouble of one sort or another.
6966  # A longer-term fix would be to have automake use am__AR in this case,
6967  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6968  # similar.
6969  AR="$am_aux_dir/ar-lib $AR"
6970  ;;
6971unknown)
6972  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6973  ;;
6974esac
6975
6976
6977
6978# So far, the only shared library we might use is libopts.
6979# It's a small library - we might as well use a static version of it.
6980# Check whether --enable-shared was given.
6981if test "${enable_shared+set}" = set; then :
6982  enableval=$enable_shared; p=${PACKAGE-default}
6983    case $enableval in
6984    yes) enable_shared=yes ;;
6985    no) enable_shared=no ;;
6986    *)
6987      enable_shared=no
6988      # Look at the argument we got.  We use all the common list separators.
6989      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
6990      for pkg in $enableval; do
6991	IFS=$lt_save_ifs
6992	if test "X$pkg" = "X$p"; then
6993	  enable_shared=yes
6994	fi
6995      done
6996      IFS=$lt_save_ifs
6997      ;;
6998    esac
6999else
7000  enable_shared=no
7001fi
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011case `pwd` in
7012  *\ * | *\	*)
7013    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7014$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7015esac
7016
7017
7018
7019macro_version='2.4.6'
7020macro_revision='2.4.6'
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034ltmain=$ac_aux_dir/ltmain.sh
7035
7036# Backslashify metacharacters that are still active within
7037# double-quoted strings.
7038sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7039
7040# Same as above, but do not quote variable references.
7041double_quote_subst='s/\(["`\\]\)/\\\1/g'
7042
7043# Sed substitution to delay expansion of an escaped shell variable in a
7044# double_quote_subst'ed string.
7045delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7046
7047# Sed substitution to delay expansion of an escaped single quote.
7048delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7049
7050# Sed substitution to avoid accidental globbing in evaled expressions
7051no_glob_subst='s/\*/\\\*/g'
7052
7053ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7054ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7055ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7056
7057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7058$as_echo_n "checking how to print strings... " >&6; }
7059# Test print first, because it will be a builtin if present.
7060if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7061   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7062  ECHO='print -r --'
7063elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7064  ECHO='printf %s\n'
7065else
7066  # Use this function as a fallback that always works.
7067  func_fallback_echo ()
7068  {
7069    eval 'cat <<_LTECHO_EOF
7070$1
7071_LTECHO_EOF'
7072  }
7073  ECHO='func_fallback_echo'
7074fi
7075
7076# func_echo_all arg...
7077# Invoke $ECHO with all args, space-separated.
7078func_echo_all ()
7079{
7080    $ECHO ""
7081}
7082
7083case $ECHO in
7084  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7085$as_echo "printf" >&6; } ;;
7086  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7087$as_echo "print -r" >&6; } ;;
7088  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7089$as_echo "cat" >&6; } ;;
7090esac
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7106$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7107if ${ac_cv_path_SED+:} false; then :
7108  $as_echo_n "(cached) " >&6
7109else
7110            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7111     for ac_i in 1 2 3 4 5 6 7; do
7112       ac_script="$ac_script$as_nl$ac_script"
7113     done
7114     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7115     { ac_script=; unset ac_script;}
7116     if test -z "$SED"; then
7117  ac_path_SED_found=false
7118  # Loop through the user's path and test for each of PROGNAME-LIST
7119  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120for as_dir in $PATH
7121do
7122  IFS=$as_save_IFS
7123  test -z "$as_dir" && as_dir=.
7124    for ac_prog in sed gsed; do
7125    for ac_exec_ext in '' $ac_executable_extensions; do
7126      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7127      as_fn_executable_p "$ac_path_SED" || continue
7128# Check for GNU ac_path_SED and select it if it is found.
7129  # Check for GNU $ac_path_SED
7130case `"$ac_path_SED" --version 2>&1` in
7131*GNU*)
7132  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7133*)
7134  ac_count=0
7135  $as_echo_n 0123456789 >"conftest.in"
7136  while :
7137  do
7138    cat "conftest.in" "conftest.in" >"conftest.tmp"
7139    mv "conftest.tmp" "conftest.in"
7140    cp "conftest.in" "conftest.nl"
7141    $as_echo '' >> "conftest.nl"
7142    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7143    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7144    as_fn_arith $ac_count + 1 && ac_count=$as_val
7145    if test $ac_count -gt ${ac_path_SED_max-0}; then
7146      # Best one so far, save it but keep looking for a better one
7147      ac_cv_path_SED="$ac_path_SED"
7148      ac_path_SED_max=$ac_count
7149    fi
7150    # 10*(2^10) chars as input seems more than enough
7151    test $ac_count -gt 10 && break
7152  done
7153  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7154esac
7155
7156      $ac_path_SED_found && break 3
7157    done
7158  done
7159  done
7160IFS=$as_save_IFS
7161  if test -z "$ac_cv_path_SED"; then
7162    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7163  fi
7164else
7165  ac_cv_path_SED=$SED
7166fi
7167
7168fi
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7170$as_echo "$ac_cv_path_SED" >&6; }
7171 SED="$ac_cv_path_SED"
7172  rm -f conftest.sed
7173
7174test -z "$SED" && SED=sed
7175Xsed="$SED -e 1s/^X//"
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7188$as_echo_n "checking for fgrep... " >&6; }
7189if ${ac_cv_path_FGREP+:} false; then :
7190  $as_echo_n "(cached) " >&6
7191else
7192  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7193   then ac_cv_path_FGREP="$GREP -F"
7194   else
7195     if test -z "$FGREP"; then
7196  ac_path_FGREP_found=false
7197  # Loop through the user's path and test for each of PROGNAME-LIST
7198  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7200do
7201  IFS=$as_save_IFS
7202  test -z "$as_dir" && as_dir=.
7203    for ac_prog in fgrep; do
7204    for ac_exec_ext in '' $ac_executable_extensions; do
7205      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7206      as_fn_executable_p "$ac_path_FGREP" || continue
7207# Check for GNU ac_path_FGREP and select it if it is found.
7208  # Check for GNU $ac_path_FGREP
7209case `"$ac_path_FGREP" --version 2>&1` in
7210*GNU*)
7211  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7212*)
7213  ac_count=0
7214  $as_echo_n 0123456789 >"conftest.in"
7215  while :
7216  do
7217    cat "conftest.in" "conftest.in" >"conftest.tmp"
7218    mv "conftest.tmp" "conftest.in"
7219    cp "conftest.in" "conftest.nl"
7220    $as_echo 'FGREP' >> "conftest.nl"
7221    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7222    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7223    as_fn_arith $ac_count + 1 && ac_count=$as_val
7224    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7225      # Best one so far, save it but keep looking for a better one
7226      ac_cv_path_FGREP="$ac_path_FGREP"
7227      ac_path_FGREP_max=$ac_count
7228    fi
7229    # 10*(2^10) chars as input seems more than enough
7230    test $ac_count -gt 10 && break
7231  done
7232  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7233esac
7234
7235      $ac_path_FGREP_found && break 3
7236    done
7237  done
7238  done
7239IFS=$as_save_IFS
7240  if test -z "$ac_cv_path_FGREP"; then
7241    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7242  fi
7243else
7244  ac_cv_path_FGREP=$FGREP
7245fi
7246
7247   fi
7248fi
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7250$as_echo "$ac_cv_path_FGREP" >&6; }
7251 FGREP="$ac_cv_path_FGREP"
7252
7253
7254test -z "$GREP" && GREP=grep
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274# Check whether --with-gnu-ld was given.
7275if test "${with_gnu_ld+set}" = set; then :
7276  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7277else
7278  with_gnu_ld=no
7279fi
7280
7281ac_prog=ld
7282if test yes = "$GCC"; then
7283  # Check if gcc -print-prog-name=ld gives a path.
7284  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7285$as_echo_n "checking for ld used by $CC... " >&6; }
7286  case $host in
7287  *-*-mingw*)
7288    # gcc leaves a trailing carriage return, which upsets mingw
7289    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7290  *)
7291    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7292  esac
7293  case $ac_prog in
7294    # Accept absolute paths.
7295    [\\/]* | ?:[\\/]*)
7296      re_direlt='/[^/][^/]*/\.\./'
7297      # Canonicalize the pathname of ld
7298      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7299      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7300	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7301      done
7302      test -z "$LD" && LD=$ac_prog
7303      ;;
7304  "")
7305    # If it fails, then pretend we aren't using GCC.
7306    ac_prog=ld
7307    ;;
7308  *)
7309    # If it is relative, then search for the first ld in PATH.
7310    with_gnu_ld=unknown
7311    ;;
7312  esac
7313elif test yes = "$with_gnu_ld"; then
7314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7315$as_echo_n "checking for GNU ld... " >&6; }
7316else
7317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7318$as_echo_n "checking for non-GNU ld... " >&6; }
7319fi
7320if ${lt_cv_path_LD+:} false; then :
7321  $as_echo_n "(cached) " >&6
7322else
7323  if test -z "$LD"; then
7324  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7325  for ac_dir in $PATH; do
7326    IFS=$lt_save_ifs
7327    test -z "$ac_dir" && ac_dir=.
7328    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7329      lt_cv_path_LD=$ac_dir/$ac_prog
7330      # Check to see if the program is GNU ld.  I'd rather use --version,
7331      # but apparently some variants of GNU ld only accept -v.
7332      # Break only if it was the GNU/non-GNU ld that we prefer.
7333      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7334      *GNU* | *'with BFD'*)
7335	test no != "$with_gnu_ld" && break
7336	;;
7337      *)
7338	test yes != "$with_gnu_ld" && break
7339	;;
7340      esac
7341    fi
7342  done
7343  IFS=$lt_save_ifs
7344else
7345  lt_cv_path_LD=$LD # Let the user override the test with a path.
7346fi
7347fi
7348
7349LD=$lt_cv_path_LD
7350if test -n "$LD"; then
7351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7352$as_echo "$LD" >&6; }
7353else
7354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355$as_echo "no" >&6; }
7356fi
7357test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7359$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7360if ${lt_cv_prog_gnu_ld+:} false; then :
7361  $as_echo_n "(cached) " >&6
7362else
7363  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7364case `$LD -v 2>&1 </dev/null` in
7365*GNU* | *'with BFD'*)
7366  lt_cv_prog_gnu_ld=yes
7367  ;;
7368*)
7369  lt_cv_prog_gnu_ld=no
7370  ;;
7371esac
7372fi
7373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7374$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7375with_gnu_ld=$lt_cv_prog_gnu_ld
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7386$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7387if ${lt_cv_path_NM+:} false; then :
7388  $as_echo_n "(cached) " >&6
7389else
7390  if test -n "$NM"; then
7391  # Let the user override the test.
7392  lt_cv_path_NM=$NM
7393else
7394  lt_nm_to_check=${ac_tool_prefix}nm
7395  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7396    lt_nm_to_check="$lt_nm_to_check nm"
7397  fi
7398  for lt_tmp_nm in $lt_nm_to_check; do
7399    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7400    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7401      IFS=$lt_save_ifs
7402      test -z "$ac_dir" && ac_dir=.
7403      tmp_nm=$ac_dir/$lt_tmp_nm
7404      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7405	# Check to see if the nm accepts a BSD-compat flag.
7406	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7407	#   nm: unknown option "B" ignored
7408	# Tru64's nm complains that /dev/null is an invalid object file
7409	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7410	case $build_os in
7411	mingw*) lt_bad_file=conftest.nm/nofile ;;
7412	*) lt_bad_file=/dev/null ;;
7413	esac
7414	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7415	*$lt_bad_file* | *'Invalid file or object type'*)
7416	  lt_cv_path_NM="$tmp_nm -B"
7417	  break 2
7418	  ;;
7419	*)
7420	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7421	  */dev/null*)
7422	    lt_cv_path_NM="$tmp_nm -p"
7423	    break 2
7424	    ;;
7425	  *)
7426	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7427	    continue # so that we can try to find one that supports BSD flags
7428	    ;;
7429	  esac
7430	  ;;
7431	esac
7432      fi
7433    done
7434    IFS=$lt_save_ifs
7435  done
7436  : ${lt_cv_path_NM=no}
7437fi
7438fi
7439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7440$as_echo "$lt_cv_path_NM" >&6; }
7441if test no != "$lt_cv_path_NM"; then
7442  NM=$lt_cv_path_NM
7443else
7444  # Didn't find any BSD compatible name lister, look for dumpbin.
7445  if test -n "$DUMPBIN"; then :
7446    # Let the user override the test.
7447  else
7448    if test -n "$ac_tool_prefix"; then
7449  for ac_prog in dumpbin "link -dump"
7450  do
7451    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7452set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454$as_echo_n "checking for $ac_word... " >&6; }
7455if ${ac_cv_prog_DUMPBIN+:} false; then :
7456  $as_echo_n "(cached) " >&6
7457else
7458  if test -n "$DUMPBIN"; then
7459  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7460else
7461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462for as_dir in $PATH
7463do
7464  IFS=$as_save_IFS
7465  test -z "$as_dir" && as_dir=.
7466    for ac_exec_ext in '' $ac_executable_extensions; do
7467  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470    break 2
7471  fi
7472done
7473  done
7474IFS=$as_save_IFS
7475
7476fi
7477fi
7478DUMPBIN=$ac_cv_prog_DUMPBIN
7479if test -n "$DUMPBIN"; then
7480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7481$as_echo "$DUMPBIN" >&6; }
7482else
7483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484$as_echo "no" >&6; }
7485fi
7486
7487
7488    test -n "$DUMPBIN" && break
7489  done
7490fi
7491if test -z "$DUMPBIN"; then
7492  ac_ct_DUMPBIN=$DUMPBIN
7493  for ac_prog in dumpbin "link -dump"
7494do
7495  # Extract the first word of "$ac_prog", so it can be a program name with args.
7496set dummy $ac_prog; ac_word=$2
7497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498$as_echo_n "checking for $ac_word... " >&6; }
7499if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7500  $as_echo_n "(cached) " >&6
7501else
7502  if test -n "$ac_ct_DUMPBIN"; then
7503  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7504else
7505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506for as_dir in $PATH
7507do
7508  IFS=$as_save_IFS
7509  test -z "$as_dir" && as_dir=.
7510    for ac_exec_ext in '' $ac_executable_extensions; do
7511  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7512    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514    break 2
7515  fi
7516done
7517  done
7518IFS=$as_save_IFS
7519
7520fi
7521fi
7522ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7523if test -n "$ac_ct_DUMPBIN"; then
7524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7525$as_echo "$ac_ct_DUMPBIN" >&6; }
7526else
7527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528$as_echo "no" >&6; }
7529fi
7530
7531
7532  test -n "$ac_ct_DUMPBIN" && break
7533done
7534
7535  if test "x$ac_ct_DUMPBIN" = x; then
7536    DUMPBIN=":"
7537  else
7538    case $cross_compiling:$ac_tool_warned in
7539yes:)
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7542ac_tool_warned=yes ;;
7543esac
7544    DUMPBIN=$ac_ct_DUMPBIN
7545  fi
7546fi
7547
7548    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7549    *COFF*)
7550      DUMPBIN="$DUMPBIN -symbols -headers"
7551      ;;
7552    *)
7553      DUMPBIN=:
7554      ;;
7555    esac
7556  fi
7557
7558  if test : != "$DUMPBIN"; then
7559    NM=$DUMPBIN
7560  fi
7561fi
7562test -z "$NM" && NM=nm
7563
7564
7565
7566
7567
7568
7569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7570$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7571if ${lt_cv_nm_interface+:} false; then :
7572  $as_echo_n "(cached) " >&6
7573else
7574  lt_cv_nm_interface="BSD nm"
7575  echo "int some_variable = 0;" > conftest.$ac_ext
7576  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7577  (eval "$ac_compile" 2>conftest.err)
7578  cat conftest.err >&5
7579  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7580  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7581  cat conftest.err >&5
7582  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7583  cat conftest.out >&5
7584  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7585    lt_cv_nm_interface="MS dumpbin"
7586  fi
7587  rm -f conftest*
7588fi
7589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7590$as_echo "$lt_cv_nm_interface" >&6; }
7591
7592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7593$as_echo_n "checking whether ln -s works... " >&6; }
7594LN_S=$as_ln_s
7595if test "$LN_S" = "ln -s"; then
7596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7597$as_echo "yes" >&6; }
7598else
7599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7600$as_echo "no, using $LN_S" >&6; }
7601fi
7602
7603# find the maximum length of command line arguments
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7605$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7606if ${lt_cv_sys_max_cmd_len+:} false; then :
7607  $as_echo_n "(cached) " >&6
7608else
7609    i=0
7610  teststring=ABCD
7611
7612  case $build_os in
7613  msdosdjgpp*)
7614    # On DJGPP, this test can blow up pretty badly due to problems in libc
7615    # (any single argument exceeding 2000 bytes causes a buffer overrun
7616    # during glob expansion).  Even if it were fixed, the result of this
7617    # check would be larger than it should be.
7618    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7619    ;;
7620
7621  gnu*)
7622    # Under GNU Hurd, this test is not required because there is
7623    # no limit to the length of command line arguments.
7624    # Libtool will interpret -1 as no limit whatsoever
7625    lt_cv_sys_max_cmd_len=-1;
7626    ;;
7627
7628  cygwin* | mingw* | cegcc*)
7629    # On Win9x/ME, this test blows up -- it succeeds, but takes
7630    # about 5 minutes as the teststring grows exponentially.
7631    # Worse, since 9x/ME are not pre-emptively multitasking,
7632    # you end up with a "frozen" computer, even though with patience
7633    # the test eventually succeeds (with a max line length of 256k).
7634    # Instead, let's just punt: use the minimum linelength reported by
7635    # all of the supported platforms: 8192 (on NT/2K/XP).
7636    lt_cv_sys_max_cmd_len=8192;
7637    ;;
7638
7639  mint*)
7640    # On MiNT this can take a long time and run out of memory.
7641    lt_cv_sys_max_cmd_len=8192;
7642    ;;
7643
7644  amigaos*)
7645    # On AmigaOS with pdksh, this test takes hours, literally.
7646    # So we just punt and use a minimum line length of 8192.
7647    lt_cv_sys_max_cmd_len=8192;
7648    ;;
7649
7650  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7651    # This has been around since 386BSD, at least.  Likely further.
7652    if test -x /sbin/sysctl; then
7653      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7654    elif test -x /usr/sbin/sysctl; then
7655      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7656    else
7657      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7658    fi
7659    # And add a safety zone
7660    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7661    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7662    ;;
7663
7664  interix*)
7665    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7666    lt_cv_sys_max_cmd_len=196608
7667    ;;
7668
7669  os2*)
7670    # The test takes a long time on OS/2.
7671    lt_cv_sys_max_cmd_len=8192
7672    ;;
7673
7674  osf*)
7675    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7676    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7677    # nice to cause kernel panics so lets avoid the loop below.
7678    # First set a reasonable default.
7679    lt_cv_sys_max_cmd_len=16384
7680    #
7681    if test -x /sbin/sysconfig; then
7682      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7683        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7684      esac
7685    fi
7686    ;;
7687  sco3.2v5*)
7688    lt_cv_sys_max_cmd_len=102400
7689    ;;
7690  sysv5* | sco5v6* | sysv4.2uw2*)
7691    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7692    if test -n "$kargmax"; then
7693      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7694    else
7695      lt_cv_sys_max_cmd_len=32768
7696    fi
7697    ;;
7698  *)
7699    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7700    if test -n "$lt_cv_sys_max_cmd_len" && \
7701       test undefined != "$lt_cv_sys_max_cmd_len"; then
7702      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7703      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7704    else
7705      # Make teststring a little bigger before we do anything with it.
7706      # a 1K string should be a reasonable start.
7707      for i in 1 2 3 4 5 6 7 8; do
7708        teststring=$teststring$teststring
7709      done
7710      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7711      # If test is not a shell built-in, we'll probably end up computing a
7712      # maximum length that is only half of the actual maximum length, but
7713      # we can't tell.
7714      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7715	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7716	      test 17 != "$i" # 1/2 MB should be enough
7717      do
7718        i=`expr $i + 1`
7719        teststring=$teststring$teststring
7720      done
7721      # Only check the string length outside the loop.
7722      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7723      teststring=
7724      # Add a significant safety factor because C++ compilers can tack on
7725      # massive amounts of additional arguments before passing them to the
7726      # linker.  It appears as though 1/2 is a usable value.
7727      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7728    fi
7729    ;;
7730  esac
7731
7732fi
7733
7734if test -n "$lt_cv_sys_max_cmd_len"; then
7735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7736$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7737else
7738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7739$as_echo "none" >&6; }
7740fi
7741max_cmd_len=$lt_cv_sys_max_cmd_len
7742
7743
7744
7745
7746
7747
7748: ${CP="cp -f"}
7749: ${MV="mv -f"}
7750: ${RM="rm -f"}
7751
7752if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7753  lt_unset=unset
7754else
7755  lt_unset=false
7756fi
7757
7758
7759
7760
7761
7762# test EBCDIC or ASCII
7763case `echo X|tr X '\101'` in
7764 A) # ASCII based system
7765    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7766  lt_SP2NL='tr \040 \012'
7767  lt_NL2SP='tr \015\012 \040\040'
7768  ;;
7769 *) # EBCDIC based system
7770  lt_SP2NL='tr \100 \n'
7771  lt_NL2SP='tr \r\n \100\100'
7772  ;;
7773esac
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7784$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7785if ${lt_cv_to_host_file_cmd+:} false; then :
7786  $as_echo_n "(cached) " >&6
7787else
7788  case $host in
7789  *-*-mingw* )
7790    case $build in
7791      *-*-mingw* ) # actually msys
7792        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7793        ;;
7794      *-*-cygwin* )
7795        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7796        ;;
7797      * ) # otherwise, assume *nix
7798        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7799        ;;
7800    esac
7801    ;;
7802  *-*-cygwin* )
7803    case $build in
7804      *-*-mingw* ) # actually msys
7805        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7806        ;;
7807      *-*-cygwin* )
7808        lt_cv_to_host_file_cmd=func_convert_file_noop
7809        ;;
7810      * ) # otherwise, assume *nix
7811        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7812        ;;
7813    esac
7814    ;;
7815  * ) # unhandled hosts (and "normal" native builds)
7816    lt_cv_to_host_file_cmd=func_convert_file_noop
7817    ;;
7818esac
7819
7820fi
7821
7822to_host_file_cmd=$lt_cv_to_host_file_cmd
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7824$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7825
7826
7827
7828
7829
7830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7831$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7832if ${lt_cv_to_tool_file_cmd+:} false; then :
7833  $as_echo_n "(cached) " >&6
7834else
7835  #assume ordinary cross tools, or native build.
7836lt_cv_to_tool_file_cmd=func_convert_file_noop
7837case $host in
7838  *-*-mingw* )
7839    case $build in
7840      *-*-mingw* ) # actually msys
7841        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7842        ;;
7843    esac
7844    ;;
7845esac
7846
7847fi
7848
7849to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7851$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7852
7853
7854
7855
7856
7857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7858$as_echo_n "checking for $LD option to reload object files... " >&6; }
7859if ${lt_cv_ld_reload_flag+:} false; then :
7860  $as_echo_n "(cached) " >&6
7861else
7862  lt_cv_ld_reload_flag='-r'
7863fi
7864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7865$as_echo "$lt_cv_ld_reload_flag" >&6; }
7866reload_flag=$lt_cv_ld_reload_flag
7867case $reload_flag in
7868"" | " "*) ;;
7869*) reload_flag=" $reload_flag" ;;
7870esac
7871reload_cmds='$LD$reload_flag -o $output$reload_objs'
7872case $host_os in
7873  cygwin* | mingw* | pw32* | cegcc*)
7874    if test yes != "$GCC"; then
7875      reload_cmds=false
7876    fi
7877    ;;
7878  darwin*)
7879    if test yes = "$GCC"; then
7880      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7881    else
7882      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7883    fi
7884    ;;
7885esac
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895if test -n "$ac_tool_prefix"; then
7896  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7897set dummy ${ac_tool_prefix}objdump; ac_word=$2
7898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899$as_echo_n "checking for $ac_word... " >&6; }
7900if ${ac_cv_prog_OBJDUMP+:} false; then :
7901  $as_echo_n "(cached) " >&6
7902else
7903  if test -n "$OBJDUMP"; then
7904  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7905else
7906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907for as_dir in $PATH
7908do
7909  IFS=$as_save_IFS
7910  test -z "$as_dir" && as_dir=.
7911    for ac_exec_ext in '' $ac_executable_extensions; do
7912  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7913    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915    break 2
7916  fi
7917done
7918  done
7919IFS=$as_save_IFS
7920
7921fi
7922fi
7923OBJDUMP=$ac_cv_prog_OBJDUMP
7924if test -n "$OBJDUMP"; then
7925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7926$as_echo "$OBJDUMP" >&6; }
7927else
7928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929$as_echo "no" >&6; }
7930fi
7931
7932
7933fi
7934if test -z "$ac_cv_prog_OBJDUMP"; then
7935  ac_ct_OBJDUMP=$OBJDUMP
7936  # Extract the first word of "objdump", so it can be a program name with args.
7937set dummy objdump; ac_word=$2
7938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7939$as_echo_n "checking for $ac_word... " >&6; }
7940if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7941  $as_echo_n "(cached) " >&6
7942else
7943  if test -n "$ac_ct_OBJDUMP"; then
7944  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7945else
7946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947for as_dir in $PATH
7948do
7949  IFS=$as_save_IFS
7950  test -z "$as_dir" && as_dir=.
7951    for ac_exec_ext in '' $ac_executable_extensions; do
7952  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7953    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955    break 2
7956  fi
7957done
7958  done
7959IFS=$as_save_IFS
7960
7961fi
7962fi
7963ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7964if test -n "$ac_ct_OBJDUMP"; then
7965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7966$as_echo "$ac_ct_OBJDUMP" >&6; }
7967else
7968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969$as_echo "no" >&6; }
7970fi
7971
7972  if test "x$ac_ct_OBJDUMP" = x; then
7973    OBJDUMP="false"
7974  else
7975    case $cross_compiling:$ac_tool_warned in
7976yes:)
7977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7979ac_tool_warned=yes ;;
7980esac
7981    OBJDUMP=$ac_ct_OBJDUMP
7982  fi
7983else
7984  OBJDUMP="$ac_cv_prog_OBJDUMP"
7985fi
7986
7987test -z "$OBJDUMP" && OBJDUMP=objdump
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7998$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7999if ${lt_cv_deplibs_check_method+:} false; then :
8000  $as_echo_n "(cached) " >&6
8001else
8002  lt_cv_file_magic_cmd='$MAGIC_CMD'
8003lt_cv_file_magic_test_file=
8004lt_cv_deplibs_check_method='unknown'
8005# Need to set the preceding variable on all platforms that support
8006# interlibrary dependencies.
8007# 'none' -- dependencies not supported.
8008# 'unknown' -- same as none, but documents that we really don't know.
8009# 'pass_all' -- all dependencies passed with no checks.
8010# 'test_compile' -- check by making test program.
8011# 'file_magic [[regex]]' -- check by looking for files in library path
8012# that responds to the $file_magic_cmd with a given extended regex.
8013# If you have 'file' or equivalent on your system and you're not sure
8014# whether 'pass_all' will *always* work, you probably want this one.
8015
8016case $host_os in
8017aix[4-9]*)
8018  lt_cv_deplibs_check_method=pass_all
8019  ;;
8020
8021beos*)
8022  lt_cv_deplibs_check_method=pass_all
8023  ;;
8024
8025bsdi[45]*)
8026  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8027  lt_cv_file_magic_cmd='/usr/bin/file -L'
8028  lt_cv_file_magic_test_file=/shlib/libc.so
8029  ;;
8030
8031cygwin*)
8032  # func_win32_libid is a shell function defined in ltmain.sh
8033  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8034  lt_cv_file_magic_cmd='func_win32_libid'
8035  ;;
8036
8037mingw* | pw32*)
8038  # Base MSYS/MinGW do not provide the 'file' command needed by
8039  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8040  # unless we find 'file', for example because we are cross-compiling.
8041  if ( file / ) >/dev/null 2>&1; then
8042    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8043    lt_cv_file_magic_cmd='func_win32_libid'
8044  else
8045    # Keep this pattern in sync with the one in func_win32_libid.
8046    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8047    lt_cv_file_magic_cmd='$OBJDUMP -f'
8048  fi
8049  ;;
8050
8051cegcc*)
8052  # use the weaker test based on 'objdump'. See mingw*.
8053  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8054  lt_cv_file_magic_cmd='$OBJDUMP -f'
8055  ;;
8056
8057darwin* | rhapsody*)
8058  lt_cv_deplibs_check_method=pass_all
8059  ;;
8060
8061freebsd* | dragonfly*)
8062  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8063    case $host_cpu in
8064    i*86 )
8065      # Not sure whether the presence of OpenBSD here was a mistake.
8066      # Let's accept both of them until this is cleared up.
8067      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8068      lt_cv_file_magic_cmd=/usr/bin/file
8069      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8070      ;;
8071    esac
8072  else
8073    lt_cv_deplibs_check_method=pass_all
8074  fi
8075  ;;
8076
8077haiku*)
8078  lt_cv_deplibs_check_method=pass_all
8079  ;;
8080
8081hpux10.20* | hpux11*)
8082  lt_cv_file_magic_cmd=/usr/bin/file
8083  case $host_cpu in
8084  ia64*)
8085    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8086    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8087    ;;
8088  hppa*64*)
8089    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8090    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8091    ;;
8092  *)
8093    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8094    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8095    ;;
8096  esac
8097  ;;
8098
8099interix[3-9]*)
8100  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8101  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8102  ;;
8103
8104irix5* | irix6* | nonstopux*)
8105  case $LD in
8106  *-32|*"-32 ") libmagic=32-bit;;
8107  *-n32|*"-n32 ") libmagic=N32;;
8108  *-64|*"-64 ") libmagic=64-bit;;
8109  *) libmagic=never-match;;
8110  esac
8111  lt_cv_deplibs_check_method=pass_all
8112  ;;
8113
8114# This must be glibc/ELF.
8115linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8116  lt_cv_deplibs_check_method=pass_all
8117  ;;
8118
8119netbsd*)
8120  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8121    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8122  else
8123    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8124  fi
8125  ;;
8126
8127newos6*)
8128  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8129  lt_cv_file_magic_cmd=/usr/bin/file
8130  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8131  ;;
8132
8133*nto* | *qnx*)
8134  lt_cv_deplibs_check_method=pass_all
8135  ;;
8136
8137openbsd* | bitrig*)
8138  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8139    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8140  else
8141    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8142  fi
8143  ;;
8144
8145osf3* | osf4* | osf5*)
8146  lt_cv_deplibs_check_method=pass_all
8147  ;;
8148
8149rdos*)
8150  lt_cv_deplibs_check_method=pass_all
8151  ;;
8152
8153solaris*)
8154  lt_cv_deplibs_check_method=pass_all
8155  ;;
8156
8157sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8158  lt_cv_deplibs_check_method=pass_all
8159  ;;
8160
8161sysv4 | sysv4.3*)
8162  case $host_vendor in
8163  motorola)
8164    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
8165    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8166    ;;
8167  ncr)
8168    lt_cv_deplibs_check_method=pass_all
8169    ;;
8170  sequent)
8171    lt_cv_file_magic_cmd='/bin/file'
8172    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8173    ;;
8174  sni)
8175    lt_cv_file_magic_cmd='/bin/file'
8176    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8177    lt_cv_file_magic_test_file=/lib/libc.so
8178    ;;
8179  siemens)
8180    lt_cv_deplibs_check_method=pass_all
8181    ;;
8182  pc)
8183    lt_cv_deplibs_check_method=pass_all
8184    ;;
8185  esac
8186  ;;
8187
8188tpf*)
8189  lt_cv_deplibs_check_method=pass_all
8190  ;;
8191os2*)
8192  lt_cv_deplibs_check_method=pass_all
8193  ;;
8194esac
8195
8196fi
8197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8198$as_echo "$lt_cv_deplibs_check_method" >&6; }
8199
8200file_magic_glob=
8201want_nocaseglob=no
8202if test "$build" = "$host"; then
8203  case $host_os in
8204  mingw* | pw32*)
8205    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8206      want_nocaseglob=yes
8207    else
8208      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8209    fi
8210    ;;
8211  esac
8212fi
8213
8214file_magic_cmd=$lt_cv_file_magic_cmd
8215deplibs_check_method=$lt_cv_deplibs_check_method
8216test -z "$deplibs_check_method" && deplibs_check_method=unknown
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239if test -n "$ac_tool_prefix"; then
8240  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8241set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8243$as_echo_n "checking for $ac_word... " >&6; }
8244if ${ac_cv_prog_DLLTOOL+:} false; then :
8245  $as_echo_n "(cached) " >&6
8246else
8247  if test -n "$DLLTOOL"; then
8248  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8249else
8250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251for as_dir in $PATH
8252do
8253  IFS=$as_save_IFS
8254  test -z "$as_dir" && as_dir=.
8255    for ac_exec_ext in '' $ac_executable_extensions; do
8256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8257    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8259    break 2
8260  fi
8261done
8262  done
8263IFS=$as_save_IFS
8264
8265fi
8266fi
8267DLLTOOL=$ac_cv_prog_DLLTOOL
8268if test -n "$DLLTOOL"; then
8269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8270$as_echo "$DLLTOOL" >&6; }
8271else
8272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273$as_echo "no" >&6; }
8274fi
8275
8276
8277fi
8278if test -z "$ac_cv_prog_DLLTOOL"; then
8279  ac_ct_DLLTOOL=$DLLTOOL
8280  # Extract the first word of "dlltool", so it can be a program name with args.
8281set dummy dlltool; ac_word=$2
8282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283$as_echo_n "checking for $ac_word... " >&6; }
8284if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8285  $as_echo_n "(cached) " >&6
8286else
8287  if test -n "$ac_ct_DLLTOOL"; then
8288  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8289else
8290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291for as_dir in $PATH
8292do
8293  IFS=$as_save_IFS
8294  test -z "$as_dir" && as_dir=.
8295    for ac_exec_ext in '' $ac_executable_extensions; do
8296  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8297    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8299    break 2
8300  fi
8301done
8302  done
8303IFS=$as_save_IFS
8304
8305fi
8306fi
8307ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8308if test -n "$ac_ct_DLLTOOL"; then
8309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8310$as_echo "$ac_ct_DLLTOOL" >&6; }
8311else
8312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313$as_echo "no" >&6; }
8314fi
8315
8316  if test "x$ac_ct_DLLTOOL" = x; then
8317    DLLTOOL="false"
8318  else
8319    case $cross_compiling:$ac_tool_warned in
8320yes:)
8321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8323ac_tool_warned=yes ;;
8324esac
8325    DLLTOOL=$ac_ct_DLLTOOL
8326  fi
8327else
8328  DLLTOOL="$ac_cv_prog_DLLTOOL"
8329fi
8330
8331test -z "$DLLTOOL" && DLLTOOL=dlltool
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8343$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8344if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8345  $as_echo_n "(cached) " >&6
8346else
8347  lt_cv_sharedlib_from_linklib_cmd='unknown'
8348
8349case $host_os in
8350cygwin* | mingw* | pw32* | cegcc*)
8351  # two different shell functions defined in ltmain.sh;
8352  # decide which one to use based on capabilities of $DLLTOOL
8353  case `$DLLTOOL --help 2>&1` in
8354  *--identify-strict*)
8355    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8356    ;;
8357  *)
8358    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8359    ;;
8360  esac
8361  ;;
8362*)
8363  # fallback: assume linklib IS sharedlib
8364  lt_cv_sharedlib_from_linklib_cmd=$ECHO
8365  ;;
8366esac
8367
8368fi
8369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8370$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8371sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8372test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8373
8374
8375
8376
8377
8378
8379
8380if test -n "$ac_tool_prefix"; then
8381  for ac_prog in ar
8382  do
8383    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8384set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8386$as_echo_n "checking for $ac_word... " >&6; }
8387if ${ac_cv_prog_AR+:} false; then :
8388  $as_echo_n "(cached) " >&6
8389else
8390  if test -n "$AR"; then
8391  ac_cv_prog_AR="$AR" # Let the user override the test.
8392else
8393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394for as_dir in $PATH
8395do
8396  IFS=$as_save_IFS
8397  test -z "$as_dir" && as_dir=.
8398    for ac_exec_ext in '' $ac_executable_extensions; do
8399  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8400    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8402    break 2
8403  fi
8404done
8405  done
8406IFS=$as_save_IFS
8407
8408fi
8409fi
8410AR=$ac_cv_prog_AR
8411if test -n "$AR"; then
8412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8413$as_echo "$AR" >&6; }
8414else
8415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416$as_echo "no" >&6; }
8417fi
8418
8419
8420    test -n "$AR" && break
8421  done
8422fi
8423if test -z "$AR"; then
8424  ac_ct_AR=$AR
8425  for ac_prog in ar
8426do
8427  # Extract the first word of "$ac_prog", so it can be a program name with args.
8428set dummy $ac_prog; ac_word=$2
8429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430$as_echo_n "checking for $ac_word... " >&6; }
8431if ${ac_cv_prog_ac_ct_AR+:} false; then :
8432  $as_echo_n "(cached) " >&6
8433else
8434  if test -n "$ac_ct_AR"; then
8435  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8436else
8437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438for as_dir in $PATH
8439do
8440  IFS=$as_save_IFS
8441  test -z "$as_dir" && as_dir=.
8442    for ac_exec_ext in '' $ac_executable_extensions; do
8443  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8444    ac_cv_prog_ac_ct_AR="$ac_prog"
8445    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8446    break 2
8447  fi
8448done
8449  done
8450IFS=$as_save_IFS
8451
8452fi
8453fi
8454ac_ct_AR=$ac_cv_prog_ac_ct_AR
8455if test -n "$ac_ct_AR"; then
8456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8457$as_echo "$ac_ct_AR" >&6; }
8458else
8459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460$as_echo "no" >&6; }
8461fi
8462
8463
8464  test -n "$ac_ct_AR" && break
8465done
8466
8467  if test "x$ac_ct_AR" = x; then
8468    AR="false"
8469  else
8470    case $cross_compiling:$ac_tool_warned in
8471yes:)
8472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8474ac_tool_warned=yes ;;
8475esac
8476    AR=$ac_ct_AR
8477  fi
8478fi
8479
8480: ${AR=ar}
8481: ${AR_FLAGS=cru}
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8494$as_echo_n "checking for archiver @FILE support... " >&6; }
8495if ${lt_cv_ar_at_file+:} false; then :
8496  $as_echo_n "(cached) " >&6
8497else
8498  lt_cv_ar_at_file=no
8499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500/* end confdefs.h.  */
8501
8502int
8503main ()
8504{
8505
8506  ;
8507  return 0;
8508}
8509_ACEOF
8510if ac_fn_c_try_compile "$LINENO"; then :
8511  echo conftest.$ac_objext > conftest.lst
8512      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8513      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8514  (eval $lt_ar_try) 2>&5
8515  ac_status=$?
8516  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8517  test $ac_status = 0; }
8518      if test 0 -eq "$ac_status"; then
8519	# Ensure the archiver fails upon bogus file names.
8520	rm -f conftest.$ac_objext libconftest.a
8521	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8522  (eval $lt_ar_try) 2>&5
8523  ac_status=$?
8524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8525  test $ac_status = 0; }
8526	if test 0 -ne "$ac_status"; then
8527          lt_cv_ar_at_file=@
8528        fi
8529      fi
8530      rm -f conftest.* libconftest.a
8531
8532fi
8533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8534
8535fi
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8537$as_echo "$lt_cv_ar_at_file" >&6; }
8538
8539if test no = "$lt_cv_ar_at_file"; then
8540  archiver_list_spec=
8541else
8542  archiver_list_spec=$lt_cv_ar_at_file
8543fi
8544
8545
8546
8547
8548
8549
8550
8551if test -n "$ac_tool_prefix"; then
8552  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8553set dummy ${ac_tool_prefix}strip; ac_word=$2
8554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555$as_echo_n "checking for $ac_word... " >&6; }
8556if ${ac_cv_prog_STRIP+:} false; then :
8557  $as_echo_n "(cached) " >&6
8558else
8559  if test -n "$STRIP"; then
8560  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8561else
8562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563for as_dir in $PATH
8564do
8565  IFS=$as_save_IFS
8566  test -z "$as_dir" && as_dir=.
8567    for ac_exec_ext in '' $ac_executable_extensions; do
8568  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8569    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8571    break 2
8572  fi
8573done
8574  done
8575IFS=$as_save_IFS
8576
8577fi
8578fi
8579STRIP=$ac_cv_prog_STRIP
8580if test -n "$STRIP"; then
8581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8582$as_echo "$STRIP" >&6; }
8583else
8584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585$as_echo "no" >&6; }
8586fi
8587
8588
8589fi
8590if test -z "$ac_cv_prog_STRIP"; then
8591  ac_ct_STRIP=$STRIP
8592  # Extract the first word of "strip", so it can be a program name with args.
8593set dummy strip; ac_word=$2
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595$as_echo_n "checking for $ac_word... " >&6; }
8596if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8597  $as_echo_n "(cached) " >&6
8598else
8599  if test -n "$ac_ct_STRIP"; then
8600  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8601else
8602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603for as_dir in $PATH
8604do
8605  IFS=$as_save_IFS
8606  test -z "$as_dir" && as_dir=.
8607    for ac_exec_ext in '' $ac_executable_extensions; do
8608  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8609    ac_cv_prog_ac_ct_STRIP="strip"
8610    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611    break 2
8612  fi
8613done
8614  done
8615IFS=$as_save_IFS
8616
8617fi
8618fi
8619ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8620if test -n "$ac_ct_STRIP"; then
8621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8622$as_echo "$ac_ct_STRIP" >&6; }
8623else
8624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625$as_echo "no" >&6; }
8626fi
8627
8628  if test "x$ac_ct_STRIP" = x; then
8629    STRIP=":"
8630  else
8631    case $cross_compiling:$ac_tool_warned in
8632yes:)
8633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8635ac_tool_warned=yes ;;
8636esac
8637    STRIP=$ac_ct_STRIP
8638  fi
8639else
8640  STRIP="$ac_cv_prog_STRIP"
8641fi
8642
8643test -z "$STRIP" && STRIP=:
8644
8645
8646
8647
8648
8649
8650if test -n "$ac_tool_prefix"; then
8651  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8652set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8654$as_echo_n "checking for $ac_word... " >&6; }
8655if ${ac_cv_prog_RANLIB+:} false; then :
8656  $as_echo_n "(cached) " >&6
8657else
8658  if test -n "$RANLIB"; then
8659  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8660else
8661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662for as_dir in $PATH
8663do
8664  IFS=$as_save_IFS
8665  test -z "$as_dir" && as_dir=.
8666    for ac_exec_ext in '' $ac_executable_extensions; do
8667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8668    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8670    break 2
8671  fi
8672done
8673  done
8674IFS=$as_save_IFS
8675
8676fi
8677fi
8678RANLIB=$ac_cv_prog_RANLIB
8679if test -n "$RANLIB"; then
8680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8681$as_echo "$RANLIB" >&6; }
8682else
8683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684$as_echo "no" >&6; }
8685fi
8686
8687
8688fi
8689if test -z "$ac_cv_prog_RANLIB"; then
8690  ac_ct_RANLIB=$RANLIB
8691  # Extract the first word of "ranlib", so it can be a program name with args.
8692set dummy ranlib; ac_word=$2
8693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8694$as_echo_n "checking for $ac_word... " >&6; }
8695if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8696  $as_echo_n "(cached) " >&6
8697else
8698  if test -n "$ac_ct_RANLIB"; then
8699  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8700else
8701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702for as_dir in $PATH
8703do
8704  IFS=$as_save_IFS
8705  test -z "$as_dir" && as_dir=.
8706    for ac_exec_ext in '' $ac_executable_extensions; do
8707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8708    ac_cv_prog_ac_ct_RANLIB="ranlib"
8709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8710    break 2
8711  fi
8712done
8713  done
8714IFS=$as_save_IFS
8715
8716fi
8717fi
8718ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8719if test -n "$ac_ct_RANLIB"; then
8720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8721$as_echo "$ac_ct_RANLIB" >&6; }
8722else
8723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724$as_echo "no" >&6; }
8725fi
8726
8727  if test "x$ac_ct_RANLIB" = x; then
8728    RANLIB=":"
8729  else
8730    case $cross_compiling:$ac_tool_warned in
8731yes:)
8732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8734ac_tool_warned=yes ;;
8735esac
8736    RANLIB=$ac_ct_RANLIB
8737  fi
8738else
8739  RANLIB="$ac_cv_prog_RANLIB"
8740fi
8741
8742test -z "$RANLIB" && RANLIB=:
8743
8744
8745
8746
8747
8748
8749# Determine commands to create old-style static archives.
8750old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8751old_postinstall_cmds='chmod 644 $oldlib'
8752old_postuninstall_cmds=
8753
8754if test -n "$RANLIB"; then
8755  case $host_os in
8756  bitrig* | openbsd*)
8757    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8758    ;;
8759  *)
8760    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8761    ;;
8762  esac
8763  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8764fi
8765
8766case $host_os in
8767  darwin*)
8768    lock_old_archive_extraction=yes ;;
8769  *)
8770    lock_old_archive_extraction=no ;;
8771esac
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811# If no C compiler was specified, use CC.
8812LTCC=${LTCC-"$CC"}
8813
8814# If no C compiler flags were specified, use CFLAGS.
8815LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8816
8817# Allow CC to be a program name with arguments.
8818compiler=$CC
8819
8820
8821# Check for command to grab the raw symbol name followed by C symbol from nm.
8822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8823$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8824if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8825  $as_echo_n "(cached) " >&6
8826else
8827
8828# These are sane defaults that work on at least a few old systems.
8829# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8830
8831# Character class describing NM global symbol codes.
8832symcode='[BCDEGRST]'
8833
8834# Regexp to match symbols that can be accessed directly from C.
8835sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8836
8837# Define system-specific variables.
8838case $host_os in
8839aix*)
8840  symcode='[BCDT]'
8841  ;;
8842cygwin* | mingw* | pw32* | cegcc*)
8843  symcode='[ABCDGISTW]'
8844  ;;
8845hpux*)
8846  if test ia64 = "$host_cpu"; then
8847    symcode='[ABCDEGRST]'
8848  fi
8849  ;;
8850irix* | nonstopux*)
8851  symcode='[BCDEGRST]'
8852  ;;
8853osf*)
8854  symcode='[BCDEGQRST]'
8855  ;;
8856solaris*)
8857  symcode='[BDRT]'
8858  ;;
8859sco3.2v5*)
8860  symcode='[DT]'
8861  ;;
8862sysv4.2uw2*)
8863  symcode='[DT]'
8864  ;;
8865sysv5* | sco5v6* | unixware* | OpenUNIX*)
8866  symcode='[ABDT]'
8867  ;;
8868sysv4)
8869  symcode='[DFNSTU]'
8870  ;;
8871esac
8872
8873# If we're using GNU nm, then use its standard symbol codes.
8874case `$NM -V 2>&1` in
8875*GNU* | *'with BFD'*)
8876  symcode='[ABCDGIRSTW]' ;;
8877esac
8878
8879if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8880  # Gets list of data symbols to import.
8881  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8882  # Adjust the below global symbol transforms to fixup imported variables.
8883  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8884  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8885  lt_c_name_lib_hook="\
8886  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8887  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8888else
8889  # Disable hooks by default.
8890  lt_cv_sys_global_symbol_to_import=
8891  lt_cdecl_hook=
8892  lt_c_name_hook=
8893  lt_c_name_lib_hook=
8894fi
8895
8896# Transform an extracted symbol line into a proper C declaration.
8897# Some systems (esp. on ia64) link data and code symbols differently,
8898# so use this general approach.
8899lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8900$lt_cdecl_hook\
8901" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8902" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8903
8904# Transform an extracted symbol line into symbol name and symbol address
8905lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8906$lt_c_name_hook\
8907" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8908" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8909
8910# Transform an extracted symbol line into symbol name with lib prefix and
8911# symbol address.
8912lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8913$lt_c_name_lib_hook\
8914" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8915" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8916" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8917
8918# Handle CRLF in mingw tool chain
8919opt_cr=
8920case $build_os in
8921mingw*)
8922  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8923  ;;
8924esac
8925
8926# Try without a prefix underscore, then with it.
8927for ac_symprfx in "" "_"; do
8928
8929  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8930  symxfrm="\\1 $ac_symprfx\\2 \\2"
8931
8932  # Write the raw and C identifiers.
8933  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8934    # Fake it for dumpbin and say T for any non-static function,
8935    # D for any global variable and I for any imported variable.
8936    # Also find C++ and __fastcall symbols from MSVC++,
8937    # which start with @ or ?.
8938    lt_cv_sys_global_symbol_pipe="$AWK '"\
8939"     {last_section=section; section=\$ 3};"\
8940"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8941"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8942"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8943"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8944"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8945"     \$ 0!~/External *\|/{next};"\
8946"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8947"     {if(hide[section]) next};"\
8948"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8949"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8950"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8951"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8952"     ' prfx=^$ac_symprfx"
8953  else
8954    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8955  fi
8956  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8957
8958  # Check to see that the pipe works correctly.
8959  pipe_works=no
8960
8961  rm -f conftest*
8962  cat > conftest.$ac_ext <<_LT_EOF
8963#ifdef __cplusplus
8964extern "C" {
8965#endif
8966char nm_test_var;
8967void nm_test_func(void);
8968void nm_test_func(void){}
8969#ifdef __cplusplus
8970}
8971#endif
8972int main(){nm_test_var='a';nm_test_func();return(0);}
8973_LT_EOF
8974
8975  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8976  (eval $ac_compile) 2>&5
8977  ac_status=$?
8978  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8979  test $ac_status = 0; }; then
8980    # Now try to grab the symbols.
8981    nlist=conftest.nm
8982    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8983  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8984  ac_status=$?
8985  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8986  test $ac_status = 0; } && test -s "$nlist"; then
8987      # Try sorting and uniquifying the output.
8988      if sort "$nlist" | uniq > "$nlist"T; then
8989	mv -f "$nlist"T "$nlist"
8990      else
8991	rm -f "$nlist"T
8992      fi
8993
8994      # Make sure that we snagged all the symbols we need.
8995      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8996	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8997	  cat <<_LT_EOF > conftest.$ac_ext
8998/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8999#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9000/* DATA imports from DLLs on WIN32 can't be const, because runtime
9001   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9002# define LT_DLSYM_CONST
9003#elif defined __osf__
9004/* This system does not cope well with relocations in const data.  */
9005# define LT_DLSYM_CONST
9006#else
9007# define LT_DLSYM_CONST const
9008#endif
9009
9010#ifdef __cplusplus
9011extern "C" {
9012#endif
9013
9014_LT_EOF
9015	  # Now generate the symbol file.
9016	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9017
9018	  cat <<_LT_EOF >> conftest.$ac_ext
9019
9020/* The mapping between symbol names and symbols.  */
9021LT_DLSYM_CONST struct {
9022  const char *name;
9023  void       *address;
9024}
9025lt__PROGRAM__LTX_preloaded_symbols[] =
9026{
9027  { "@PROGRAM@", (void *) 0 },
9028_LT_EOF
9029	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9030	  cat <<\_LT_EOF >> conftest.$ac_ext
9031  {0, (void *) 0}
9032};
9033
9034/* This works around a problem in FreeBSD linker */
9035#ifdef FREEBSD_WORKAROUND
9036static const void *lt_preloaded_setup() {
9037  return lt__PROGRAM__LTX_preloaded_symbols;
9038}
9039#endif
9040
9041#ifdef __cplusplus
9042}
9043#endif
9044_LT_EOF
9045	  # Now try linking the two files.
9046	  mv conftest.$ac_objext conftstm.$ac_objext
9047	  lt_globsym_save_LIBS=$LIBS
9048	  lt_globsym_save_CFLAGS=$CFLAGS
9049	  LIBS=conftstm.$ac_objext
9050	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9051	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9052  (eval $ac_link) 2>&5
9053  ac_status=$?
9054  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9055  test $ac_status = 0; } && test -s conftest$ac_exeext; then
9056	    pipe_works=yes
9057	  fi
9058	  LIBS=$lt_globsym_save_LIBS
9059	  CFLAGS=$lt_globsym_save_CFLAGS
9060	else
9061	  echo "cannot find nm_test_func in $nlist" >&5
9062	fi
9063      else
9064	echo "cannot find nm_test_var in $nlist" >&5
9065      fi
9066    else
9067      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9068    fi
9069  else
9070    echo "$progname: failed program was:" >&5
9071    cat conftest.$ac_ext >&5
9072  fi
9073  rm -rf conftest* conftst*
9074
9075  # Do not use the global_symbol_pipe unless it works.
9076  if test yes = "$pipe_works"; then
9077    break
9078  else
9079    lt_cv_sys_global_symbol_pipe=
9080  fi
9081done
9082
9083fi
9084
9085if test -z "$lt_cv_sys_global_symbol_pipe"; then
9086  lt_cv_sys_global_symbol_to_cdecl=
9087fi
9088if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9090$as_echo "failed" >&6; }
9091else
9092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9093$as_echo "ok" >&6; }
9094fi
9095
9096# Response file support.
9097if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9098  nm_file_list_spec='@'
9099elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9100  nm_file_list_spec='@'
9101fi
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9140$as_echo_n "checking for sysroot... " >&6; }
9141
9142# Check whether --with-sysroot was given.
9143if test "${with_sysroot+set}" = set; then :
9144  withval=$with_sysroot;
9145else
9146  with_sysroot=no
9147fi
9148
9149
9150lt_sysroot=
9151case $with_sysroot in #(
9152 yes)
9153   if test yes = "$GCC"; then
9154     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9155   fi
9156   ;; #(
9157 /*)
9158   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9159   ;; #(
9160 no|'')
9161   ;; #(
9162 *)
9163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9164$as_echo "$with_sysroot" >&6; }
9165   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9166   ;;
9167esac
9168
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9170$as_echo "${lt_sysroot:-no}" >&6; }
9171
9172
9173
9174
9175
9176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9177$as_echo_n "checking for a working dd... " >&6; }
9178if ${ac_cv_path_lt_DD+:} false; then :
9179  $as_echo_n "(cached) " >&6
9180else
9181  printf 0123456789abcdef0123456789abcdef >conftest.i
9182cat conftest.i conftest.i >conftest2.i
9183: ${lt_DD:=$DD}
9184if test -z "$lt_DD"; then
9185  ac_path_lt_DD_found=false
9186  # Loop through the user's path and test for each of PROGNAME-LIST
9187  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188for as_dir in $PATH
9189do
9190  IFS=$as_save_IFS
9191  test -z "$as_dir" && as_dir=.
9192    for ac_prog in dd; do
9193    for ac_exec_ext in '' $ac_executable_extensions; do
9194      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9195      as_fn_executable_p "$ac_path_lt_DD" || continue
9196if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9197  cmp -s conftest.i conftest.out \
9198  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9199fi
9200      $ac_path_lt_DD_found && break 3
9201    done
9202  done
9203  done
9204IFS=$as_save_IFS
9205  if test -z "$ac_cv_path_lt_DD"; then
9206    :
9207  fi
9208else
9209  ac_cv_path_lt_DD=$lt_DD
9210fi
9211
9212rm -f conftest.i conftest2.i conftest.out
9213fi
9214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9215$as_echo "$ac_cv_path_lt_DD" >&6; }
9216
9217
9218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9219$as_echo_n "checking how to truncate binary pipes... " >&6; }
9220if ${lt_cv_truncate_bin+:} false; then :
9221  $as_echo_n "(cached) " >&6
9222else
9223  printf 0123456789abcdef0123456789abcdef >conftest.i
9224cat conftest.i conftest.i >conftest2.i
9225lt_cv_truncate_bin=
9226if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9227  cmp -s conftest.i conftest.out \
9228  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9229fi
9230rm -f conftest.i conftest2.i conftest.out
9231test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9232fi
9233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9234$as_echo "$lt_cv_truncate_bin" >&6; }
9235
9236
9237
9238
9239
9240
9241
9242# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9243func_cc_basename ()
9244{
9245    for cc_temp in $*""; do
9246      case $cc_temp in
9247        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9248        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9249        \-*) ;;
9250        *) break;;
9251      esac
9252    done
9253    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9254}
9255
9256# Check whether --enable-libtool-lock was given.
9257if test "${enable_libtool_lock+set}" = set; then :
9258  enableval=$enable_libtool_lock;
9259fi
9260
9261test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9262
9263# Some flags need to be propagated to the compiler or linker for good
9264# libtool support.
9265case $host in
9266ia64-*-hpux*)
9267  # Find out what ABI is being produced by ac_compile, and set mode
9268  # options accordingly.
9269  echo 'int i;' > conftest.$ac_ext
9270  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9271  (eval $ac_compile) 2>&5
9272  ac_status=$?
9273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9274  test $ac_status = 0; }; then
9275    case `/usr/bin/file conftest.$ac_objext` in
9276      *ELF-32*)
9277	HPUX_IA64_MODE=32
9278	;;
9279      *ELF-64*)
9280	HPUX_IA64_MODE=64
9281	;;
9282    esac
9283  fi
9284  rm -rf conftest*
9285  ;;
9286*-*-irix6*)
9287  # Find out what ABI is being produced by ac_compile, and set linker
9288  # options accordingly.
9289  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9290  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9291  (eval $ac_compile) 2>&5
9292  ac_status=$?
9293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9294  test $ac_status = 0; }; then
9295    if test yes = "$lt_cv_prog_gnu_ld"; then
9296      case `/usr/bin/file conftest.$ac_objext` in
9297	*32-bit*)
9298	  LD="${LD-ld} -melf32bsmip"
9299	  ;;
9300	*N32*)
9301	  LD="${LD-ld} -melf32bmipn32"
9302	  ;;
9303	*64-bit*)
9304	  LD="${LD-ld} -melf64bmip"
9305	;;
9306      esac
9307    else
9308      case `/usr/bin/file conftest.$ac_objext` in
9309	*32-bit*)
9310	  LD="${LD-ld} -32"
9311	  ;;
9312	*N32*)
9313	  LD="${LD-ld} -n32"
9314	  ;;
9315	*64-bit*)
9316	  LD="${LD-ld} -64"
9317	  ;;
9318      esac
9319    fi
9320  fi
9321  rm -rf conftest*
9322  ;;
9323
9324mips64*-*linux*)
9325  # Find out what ABI is being produced by ac_compile, and set linker
9326  # options accordingly.
9327  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9328  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9329  (eval $ac_compile) 2>&5
9330  ac_status=$?
9331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9332  test $ac_status = 0; }; then
9333    emul=elf
9334    case `/usr/bin/file conftest.$ac_objext` in
9335      *32-bit*)
9336	emul="${emul}32"
9337	;;
9338      *64-bit*)
9339	emul="${emul}64"
9340	;;
9341    esac
9342    case `/usr/bin/file conftest.$ac_objext` in
9343      *MSB*)
9344	emul="${emul}btsmip"
9345	;;
9346      *LSB*)
9347	emul="${emul}ltsmip"
9348	;;
9349    esac
9350    case `/usr/bin/file conftest.$ac_objext` in
9351      *N32*)
9352	emul="${emul}n32"
9353	;;
9354    esac
9355    LD="${LD-ld} -m $emul"
9356  fi
9357  rm -rf conftest*
9358  ;;
9359
9360x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9361s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9362  # Find out what ABI is being produced by ac_compile, and set linker
9363  # options accordingly.  Note that the listed cases only cover the
9364  # situations where additional linker options are needed (such as when
9365  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9366  # vice versa); the common cases where no linker options are needed do
9367  # not appear in the list.
9368  echo 'int i;' > conftest.$ac_ext
9369  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9370  (eval $ac_compile) 2>&5
9371  ac_status=$?
9372  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9373  test $ac_status = 0; }; then
9374    case `/usr/bin/file conftest.o` in
9375      *32-bit*)
9376	case $host in
9377	  x86_64-*kfreebsd*-gnu)
9378	    LD="${LD-ld} -m elf_i386_fbsd"
9379	    ;;
9380	  x86_64-*linux*)
9381	    case `/usr/bin/file conftest.o` in
9382	      *x86-64*)
9383		LD="${LD-ld} -m elf32_x86_64"
9384		;;
9385	      *)
9386		LD="${LD-ld} -m elf_i386"
9387		;;
9388	    esac
9389	    ;;
9390	  powerpc64le-*linux*)
9391	    LD="${LD-ld} -m elf32lppclinux"
9392	    ;;
9393	  powerpc64-*linux*)
9394	    LD="${LD-ld} -m elf32ppclinux"
9395	    ;;
9396	  s390x-*linux*)
9397	    LD="${LD-ld} -m elf_s390"
9398	    ;;
9399	  sparc64-*linux*)
9400	    LD="${LD-ld} -m elf32_sparc"
9401	    ;;
9402	esac
9403	;;
9404      *64-bit*)
9405	case $host in
9406	  x86_64-*kfreebsd*-gnu)
9407	    LD="${LD-ld} -m elf_x86_64_fbsd"
9408	    ;;
9409	  x86_64-*linux*)
9410	    LD="${LD-ld} -m elf_x86_64"
9411	    ;;
9412	  powerpcle-*linux*)
9413	    LD="${LD-ld} -m elf64lppc"
9414	    ;;
9415	  powerpc-*linux*)
9416	    LD="${LD-ld} -m elf64ppc"
9417	    ;;
9418	  s390*-*linux*|s390*-*tpf*)
9419	    LD="${LD-ld} -m elf64_s390"
9420	    ;;
9421	  sparc*-*linux*)
9422	    LD="${LD-ld} -m elf64_sparc"
9423	    ;;
9424	esac
9425	;;
9426    esac
9427  fi
9428  rm -rf conftest*
9429  ;;
9430
9431*-*-sco3.2v5*)
9432  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9433  SAVE_CFLAGS=$CFLAGS
9434  CFLAGS="$CFLAGS -belf"
9435  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9436$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9437if ${lt_cv_cc_needs_belf+:} false; then :
9438  $as_echo_n "(cached) " >&6
9439else
9440  ac_ext=c
9441ac_cpp='$CPP $CPPFLAGS'
9442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9444ac_compiler_gnu=$ac_cv_c_compiler_gnu
9445
9446     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9447/* end confdefs.h.  */
9448
9449int
9450main ()
9451{
9452
9453  ;
9454  return 0;
9455}
9456_ACEOF
9457if ac_fn_c_try_link "$LINENO"; then :
9458  lt_cv_cc_needs_belf=yes
9459else
9460  lt_cv_cc_needs_belf=no
9461fi
9462rm -f core conftest.err conftest.$ac_objext \
9463    conftest$ac_exeext conftest.$ac_ext
9464     ac_ext=c
9465ac_cpp='$CPP $CPPFLAGS'
9466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9468ac_compiler_gnu=$ac_cv_c_compiler_gnu
9469
9470fi
9471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9472$as_echo "$lt_cv_cc_needs_belf" >&6; }
9473  if test yes != "$lt_cv_cc_needs_belf"; then
9474    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9475    CFLAGS=$SAVE_CFLAGS
9476  fi
9477  ;;
9478*-*solaris*)
9479  # Find out what ABI is being produced by ac_compile, and set linker
9480  # options accordingly.
9481  echo 'int i;' > conftest.$ac_ext
9482  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9483  (eval $ac_compile) 2>&5
9484  ac_status=$?
9485  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9486  test $ac_status = 0; }; then
9487    case `/usr/bin/file conftest.o` in
9488    *64-bit*)
9489      case $lt_cv_prog_gnu_ld in
9490      yes*)
9491        case $host in
9492        i?86-*-solaris*|x86_64-*-solaris*)
9493          LD="${LD-ld} -m elf_x86_64"
9494          ;;
9495        sparc*-*-solaris*)
9496          LD="${LD-ld} -m elf64_sparc"
9497          ;;
9498        esac
9499        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9500        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9501          LD=${LD-ld}_sol2
9502        fi
9503        ;;
9504      *)
9505	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9506	  LD="${LD-ld} -64"
9507	fi
9508	;;
9509      esac
9510      ;;
9511    esac
9512  fi
9513  rm -rf conftest*
9514  ;;
9515esac
9516
9517need_locks=$enable_libtool_lock
9518
9519if test -n "$ac_tool_prefix"; then
9520  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9521set dummy ${ac_tool_prefix}mt; ac_word=$2
9522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523$as_echo_n "checking for $ac_word... " >&6; }
9524if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9525  $as_echo_n "(cached) " >&6
9526else
9527  if test -n "$MANIFEST_TOOL"; then
9528  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9529else
9530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9531for as_dir in $PATH
9532do
9533  IFS=$as_save_IFS
9534  test -z "$as_dir" && as_dir=.
9535    for ac_exec_ext in '' $ac_executable_extensions; do
9536  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9537    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9539    break 2
9540  fi
9541done
9542  done
9543IFS=$as_save_IFS
9544
9545fi
9546fi
9547MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9548if test -n "$MANIFEST_TOOL"; then
9549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9550$as_echo "$MANIFEST_TOOL" >&6; }
9551else
9552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553$as_echo "no" >&6; }
9554fi
9555
9556
9557fi
9558if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9559  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9560  # Extract the first word of "mt", so it can be a program name with args.
9561set dummy mt; ac_word=$2
9562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9563$as_echo_n "checking for $ac_word... " >&6; }
9564if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9565  $as_echo_n "(cached) " >&6
9566else
9567  if test -n "$ac_ct_MANIFEST_TOOL"; then
9568  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9569else
9570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9571for as_dir in $PATH
9572do
9573  IFS=$as_save_IFS
9574  test -z "$as_dir" && as_dir=.
9575    for ac_exec_ext in '' $ac_executable_extensions; do
9576  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9577    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9578    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9579    break 2
9580  fi
9581done
9582  done
9583IFS=$as_save_IFS
9584
9585fi
9586fi
9587ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9588if test -n "$ac_ct_MANIFEST_TOOL"; then
9589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9590$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9591else
9592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9593$as_echo "no" >&6; }
9594fi
9595
9596  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9597    MANIFEST_TOOL=":"
9598  else
9599    case $cross_compiling:$ac_tool_warned in
9600yes:)
9601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9603ac_tool_warned=yes ;;
9604esac
9605    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9606  fi
9607else
9608  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9609fi
9610
9611test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9613$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9614if ${lt_cv_path_mainfest_tool+:} false; then :
9615  $as_echo_n "(cached) " >&6
9616else
9617  lt_cv_path_mainfest_tool=no
9618  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9619  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9620  cat conftest.err >&5
9621  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9622    lt_cv_path_mainfest_tool=yes
9623  fi
9624  rm -f conftest*
9625fi
9626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9627$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9628if test yes != "$lt_cv_path_mainfest_tool"; then
9629  MANIFEST_TOOL=:
9630fi
9631
9632
9633
9634
9635
9636
9637  case $host_os in
9638    rhapsody* | darwin*)
9639    if test -n "$ac_tool_prefix"; then
9640  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9641set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9643$as_echo_n "checking for $ac_word... " >&6; }
9644if ${ac_cv_prog_DSYMUTIL+:} false; then :
9645  $as_echo_n "(cached) " >&6
9646else
9647  if test -n "$DSYMUTIL"; then
9648  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9649else
9650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9651for as_dir in $PATH
9652do
9653  IFS=$as_save_IFS
9654  test -z "$as_dir" && as_dir=.
9655    for ac_exec_ext in '' $ac_executable_extensions; do
9656  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9657    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9659    break 2
9660  fi
9661done
9662  done
9663IFS=$as_save_IFS
9664
9665fi
9666fi
9667DSYMUTIL=$ac_cv_prog_DSYMUTIL
9668if test -n "$DSYMUTIL"; then
9669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9670$as_echo "$DSYMUTIL" >&6; }
9671else
9672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9673$as_echo "no" >&6; }
9674fi
9675
9676
9677fi
9678if test -z "$ac_cv_prog_DSYMUTIL"; then
9679  ac_ct_DSYMUTIL=$DSYMUTIL
9680  # Extract the first word of "dsymutil", so it can be a program name with args.
9681set dummy dsymutil; ac_word=$2
9682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9683$as_echo_n "checking for $ac_word... " >&6; }
9684if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9685  $as_echo_n "(cached) " >&6
9686else
9687  if test -n "$ac_ct_DSYMUTIL"; then
9688  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9689else
9690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9691for as_dir in $PATH
9692do
9693  IFS=$as_save_IFS
9694  test -z "$as_dir" && as_dir=.
9695    for ac_exec_ext in '' $ac_executable_extensions; do
9696  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9697    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9699    break 2
9700  fi
9701done
9702  done
9703IFS=$as_save_IFS
9704
9705fi
9706fi
9707ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9708if test -n "$ac_ct_DSYMUTIL"; then
9709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9710$as_echo "$ac_ct_DSYMUTIL" >&6; }
9711else
9712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9713$as_echo "no" >&6; }
9714fi
9715
9716  if test "x$ac_ct_DSYMUTIL" = x; then
9717    DSYMUTIL=":"
9718  else
9719    case $cross_compiling:$ac_tool_warned in
9720yes:)
9721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9723ac_tool_warned=yes ;;
9724esac
9725    DSYMUTIL=$ac_ct_DSYMUTIL
9726  fi
9727else
9728  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9729fi
9730
9731    if test -n "$ac_tool_prefix"; then
9732  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9733set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9735$as_echo_n "checking for $ac_word... " >&6; }
9736if ${ac_cv_prog_NMEDIT+:} false; then :
9737  $as_echo_n "(cached) " >&6
9738else
9739  if test -n "$NMEDIT"; then
9740  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9741else
9742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9743for as_dir in $PATH
9744do
9745  IFS=$as_save_IFS
9746  test -z "$as_dir" && as_dir=.
9747    for ac_exec_ext in '' $ac_executable_extensions; do
9748  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9749    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9751    break 2
9752  fi
9753done
9754  done
9755IFS=$as_save_IFS
9756
9757fi
9758fi
9759NMEDIT=$ac_cv_prog_NMEDIT
9760if test -n "$NMEDIT"; then
9761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9762$as_echo "$NMEDIT" >&6; }
9763else
9764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9765$as_echo "no" >&6; }
9766fi
9767
9768
9769fi
9770if test -z "$ac_cv_prog_NMEDIT"; then
9771  ac_ct_NMEDIT=$NMEDIT
9772  # Extract the first word of "nmedit", so it can be a program name with args.
9773set dummy nmedit; ac_word=$2
9774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9775$as_echo_n "checking for $ac_word... " >&6; }
9776if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9777  $as_echo_n "(cached) " >&6
9778else
9779  if test -n "$ac_ct_NMEDIT"; then
9780  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9781else
9782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9783for as_dir in $PATH
9784do
9785  IFS=$as_save_IFS
9786  test -z "$as_dir" && as_dir=.
9787    for ac_exec_ext in '' $ac_executable_extensions; do
9788  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9789    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9791    break 2
9792  fi
9793done
9794  done
9795IFS=$as_save_IFS
9796
9797fi
9798fi
9799ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9800if test -n "$ac_ct_NMEDIT"; then
9801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9802$as_echo "$ac_ct_NMEDIT" >&6; }
9803else
9804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805$as_echo "no" >&6; }
9806fi
9807
9808  if test "x$ac_ct_NMEDIT" = x; then
9809    NMEDIT=":"
9810  else
9811    case $cross_compiling:$ac_tool_warned in
9812yes:)
9813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9815ac_tool_warned=yes ;;
9816esac
9817    NMEDIT=$ac_ct_NMEDIT
9818  fi
9819else
9820  NMEDIT="$ac_cv_prog_NMEDIT"
9821fi
9822
9823    if test -n "$ac_tool_prefix"; then
9824  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9825set dummy ${ac_tool_prefix}lipo; ac_word=$2
9826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9827$as_echo_n "checking for $ac_word... " >&6; }
9828if ${ac_cv_prog_LIPO+:} false; then :
9829  $as_echo_n "(cached) " >&6
9830else
9831  if test -n "$LIPO"; then
9832  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9833else
9834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835for as_dir in $PATH
9836do
9837  IFS=$as_save_IFS
9838  test -z "$as_dir" && as_dir=.
9839    for ac_exec_ext in '' $ac_executable_extensions; do
9840  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9841    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9842    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9843    break 2
9844  fi
9845done
9846  done
9847IFS=$as_save_IFS
9848
9849fi
9850fi
9851LIPO=$ac_cv_prog_LIPO
9852if test -n "$LIPO"; then
9853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9854$as_echo "$LIPO" >&6; }
9855else
9856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9857$as_echo "no" >&6; }
9858fi
9859
9860
9861fi
9862if test -z "$ac_cv_prog_LIPO"; then
9863  ac_ct_LIPO=$LIPO
9864  # Extract the first word of "lipo", so it can be a program name with args.
9865set dummy lipo; ac_word=$2
9866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9867$as_echo_n "checking for $ac_word... " >&6; }
9868if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9869  $as_echo_n "(cached) " >&6
9870else
9871  if test -n "$ac_ct_LIPO"; then
9872  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9873else
9874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9875for as_dir in $PATH
9876do
9877  IFS=$as_save_IFS
9878  test -z "$as_dir" && as_dir=.
9879    for ac_exec_ext in '' $ac_executable_extensions; do
9880  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9881    ac_cv_prog_ac_ct_LIPO="lipo"
9882    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9883    break 2
9884  fi
9885done
9886  done
9887IFS=$as_save_IFS
9888
9889fi
9890fi
9891ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9892if test -n "$ac_ct_LIPO"; then
9893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9894$as_echo "$ac_ct_LIPO" >&6; }
9895else
9896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897$as_echo "no" >&6; }
9898fi
9899
9900  if test "x$ac_ct_LIPO" = x; then
9901    LIPO=":"
9902  else
9903    case $cross_compiling:$ac_tool_warned in
9904yes:)
9905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9907ac_tool_warned=yes ;;
9908esac
9909    LIPO=$ac_ct_LIPO
9910  fi
9911else
9912  LIPO="$ac_cv_prog_LIPO"
9913fi
9914
9915    if test -n "$ac_tool_prefix"; then
9916  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9917set dummy ${ac_tool_prefix}otool; ac_word=$2
9918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9919$as_echo_n "checking for $ac_word... " >&6; }
9920if ${ac_cv_prog_OTOOL+:} false; then :
9921  $as_echo_n "(cached) " >&6
9922else
9923  if test -n "$OTOOL"; then
9924  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9925else
9926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927for as_dir in $PATH
9928do
9929  IFS=$as_save_IFS
9930  test -z "$as_dir" && as_dir=.
9931    for ac_exec_ext in '' $ac_executable_extensions; do
9932  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9933    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9935    break 2
9936  fi
9937done
9938  done
9939IFS=$as_save_IFS
9940
9941fi
9942fi
9943OTOOL=$ac_cv_prog_OTOOL
9944if test -n "$OTOOL"; then
9945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9946$as_echo "$OTOOL" >&6; }
9947else
9948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9949$as_echo "no" >&6; }
9950fi
9951
9952
9953fi
9954if test -z "$ac_cv_prog_OTOOL"; then
9955  ac_ct_OTOOL=$OTOOL
9956  # Extract the first word of "otool", so it can be a program name with args.
9957set dummy otool; ac_word=$2
9958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9959$as_echo_n "checking for $ac_word... " >&6; }
9960if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9961  $as_echo_n "(cached) " >&6
9962else
9963  if test -n "$ac_ct_OTOOL"; then
9964  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9965else
9966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9967for as_dir in $PATH
9968do
9969  IFS=$as_save_IFS
9970  test -z "$as_dir" && as_dir=.
9971    for ac_exec_ext in '' $ac_executable_extensions; do
9972  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9973    ac_cv_prog_ac_ct_OTOOL="otool"
9974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9975    break 2
9976  fi
9977done
9978  done
9979IFS=$as_save_IFS
9980
9981fi
9982fi
9983ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9984if test -n "$ac_ct_OTOOL"; then
9985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9986$as_echo "$ac_ct_OTOOL" >&6; }
9987else
9988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9989$as_echo "no" >&6; }
9990fi
9991
9992  if test "x$ac_ct_OTOOL" = x; then
9993    OTOOL=":"
9994  else
9995    case $cross_compiling:$ac_tool_warned in
9996yes:)
9997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9999ac_tool_warned=yes ;;
10000esac
10001    OTOOL=$ac_ct_OTOOL
10002  fi
10003else
10004  OTOOL="$ac_cv_prog_OTOOL"
10005fi
10006
10007    if test -n "$ac_tool_prefix"; then
10008  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10009set dummy ${ac_tool_prefix}otool64; ac_word=$2
10010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10011$as_echo_n "checking for $ac_word... " >&6; }
10012if ${ac_cv_prog_OTOOL64+:} false; then :
10013  $as_echo_n "(cached) " >&6
10014else
10015  if test -n "$OTOOL64"; then
10016  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10017else
10018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019for as_dir in $PATH
10020do
10021  IFS=$as_save_IFS
10022  test -z "$as_dir" && as_dir=.
10023    for ac_exec_ext in '' $ac_executable_extensions; do
10024  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10025    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10027    break 2
10028  fi
10029done
10030  done
10031IFS=$as_save_IFS
10032
10033fi
10034fi
10035OTOOL64=$ac_cv_prog_OTOOL64
10036if test -n "$OTOOL64"; then
10037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10038$as_echo "$OTOOL64" >&6; }
10039else
10040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041$as_echo "no" >&6; }
10042fi
10043
10044
10045fi
10046if test -z "$ac_cv_prog_OTOOL64"; then
10047  ac_ct_OTOOL64=$OTOOL64
10048  # Extract the first word of "otool64", so it can be a program name with args.
10049set dummy otool64; ac_word=$2
10050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10051$as_echo_n "checking for $ac_word... " >&6; }
10052if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10053  $as_echo_n "(cached) " >&6
10054else
10055  if test -n "$ac_ct_OTOOL64"; then
10056  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10057else
10058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059for as_dir in $PATH
10060do
10061  IFS=$as_save_IFS
10062  test -z "$as_dir" && as_dir=.
10063    for ac_exec_ext in '' $ac_executable_extensions; do
10064  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10065    ac_cv_prog_ac_ct_OTOOL64="otool64"
10066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10067    break 2
10068  fi
10069done
10070  done
10071IFS=$as_save_IFS
10072
10073fi
10074fi
10075ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10076if test -n "$ac_ct_OTOOL64"; then
10077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10078$as_echo "$ac_ct_OTOOL64" >&6; }
10079else
10080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10081$as_echo "no" >&6; }
10082fi
10083
10084  if test "x$ac_ct_OTOOL64" = x; then
10085    OTOOL64=":"
10086  else
10087    case $cross_compiling:$ac_tool_warned in
10088yes:)
10089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10091ac_tool_warned=yes ;;
10092esac
10093    OTOOL64=$ac_ct_OTOOL64
10094  fi
10095else
10096  OTOOL64="$ac_cv_prog_OTOOL64"
10097fi
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10126$as_echo_n "checking for -single_module linker flag... " >&6; }
10127if ${lt_cv_apple_cc_single_mod+:} false; then :
10128  $as_echo_n "(cached) " >&6
10129else
10130  lt_cv_apple_cc_single_mod=no
10131      if test -z "$LT_MULTI_MODULE"; then
10132	# By default we will add the -single_module flag. You can override
10133	# by either setting the environment variable LT_MULTI_MODULE
10134	# non-empty at configure time, or by adding -multi_module to the
10135	# link flags.
10136	rm -rf libconftest.dylib*
10137	echo "int foo(void){return 1;}" > conftest.c
10138	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10139-dynamiclib -Wl,-single_module conftest.c" >&5
10140	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10141	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10142        _lt_result=$?
10143	# If there is a non-empty error log, and "single_module"
10144	# appears in it, assume the flag caused a linker warning
10145        if test -s conftest.err && $GREP single_module conftest.err; then
10146	  cat conftest.err >&5
10147	# Otherwise, if the output was created with a 0 exit code from
10148	# the compiler, it worked.
10149	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10150	  lt_cv_apple_cc_single_mod=yes
10151	else
10152	  cat conftest.err >&5
10153	fi
10154	rm -rf libconftest.dylib*
10155	rm -f conftest.*
10156      fi
10157fi
10158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10159$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10160
10161    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10162$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10163if ${lt_cv_ld_exported_symbols_list+:} false; then :
10164  $as_echo_n "(cached) " >&6
10165else
10166  lt_cv_ld_exported_symbols_list=no
10167      save_LDFLAGS=$LDFLAGS
10168      echo "_main" > conftest.sym
10169      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10170      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10171/* end confdefs.h.  */
10172
10173int
10174main ()
10175{
10176
10177  ;
10178  return 0;
10179}
10180_ACEOF
10181if ac_fn_c_try_link "$LINENO"; then :
10182  lt_cv_ld_exported_symbols_list=yes
10183else
10184  lt_cv_ld_exported_symbols_list=no
10185fi
10186rm -f core conftest.err conftest.$ac_objext \
10187    conftest$ac_exeext conftest.$ac_ext
10188	LDFLAGS=$save_LDFLAGS
10189
10190fi
10191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10192$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10193
10194    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10195$as_echo_n "checking for -force_load linker flag... " >&6; }
10196if ${lt_cv_ld_force_load+:} false; then :
10197  $as_echo_n "(cached) " >&6
10198else
10199  lt_cv_ld_force_load=no
10200      cat > conftest.c << _LT_EOF
10201int forced_loaded() { return 2;}
10202_LT_EOF
10203      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10204      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10205      echo "$AR cru libconftest.a conftest.o" >&5
10206      $AR cru libconftest.a conftest.o 2>&5
10207      echo "$RANLIB libconftest.a" >&5
10208      $RANLIB libconftest.a 2>&5
10209      cat > conftest.c << _LT_EOF
10210int main() { return 0;}
10211_LT_EOF
10212      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10213      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10214      _lt_result=$?
10215      if test -s conftest.err && $GREP force_load conftest.err; then
10216	cat conftest.err >&5
10217      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10218	lt_cv_ld_force_load=yes
10219      else
10220	cat conftest.err >&5
10221      fi
10222        rm -f conftest.err libconftest.a conftest conftest.c
10223        rm -rf conftest.dSYM
10224
10225fi
10226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10227$as_echo "$lt_cv_ld_force_load" >&6; }
10228    case $host_os in
10229    rhapsody* | darwin1.[012])
10230      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10231    darwin1.*)
10232      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10233    darwin*) # darwin 5.x on
10234      # if running on 10.5 or later, the deployment target defaults
10235      # to the OS version, if on x86, and 10.4, the deployment
10236      # target defaults to 10.4. Don't you love it?
10237      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10238	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10239	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10240	10.[012][,.]*)
10241	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10242	10.*)
10243	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10244      esac
10245    ;;
10246  esac
10247    if test yes = "$lt_cv_apple_cc_single_mod"; then
10248      _lt_dar_single_mod='$single_module'
10249    fi
10250    if test yes = "$lt_cv_ld_exported_symbols_list"; then
10251      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10252    else
10253      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10254    fi
10255    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10256      _lt_dsymutil='~$DSYMUTIL $lib || :'
10257    else
10258      _lt_dsymutil=
10259    fi
10260    ;;
10261  esac
10262
10263# func_munge_path_list VARIABLE PATH
10264# -----------------------------------
10265# VARIABLE is name of variable containing _space_ separated list of
10266# directories to be munged by the contents of PATH, which is string
10267# having a format:
10268# "DIR[:DIR]:"
10269#       string "DIR[ DIR]" will be prepended to VARIABLE
10270# ":DIR[:DIR]"
10271#       string "DIR[ DIR]" will be appended to VARIABLE
10272# "DIRP[:DIRP]::[DIRA:]DIRA"
10273#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10274#       "DIRA[ DIRA]" will be appended to VARIABLE
10275# "DIR[:DIR]"
10276#       VARIABLE will be replaced by "DIR[ DIR]"
10277func_munge_path_list ()
10278{
10279    case x$2 in
10280    x)
10281        ;;
10282    *:)
10283        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10284        ;;
10285    x:*)
10286        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10287        ;;
10288    *::*)
10289        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10290        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10291        ;;
10292    *)
10293        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10294        ;;
10295    esac
10296}
10297
10298for ac_header in dlfcn.h
10299do :
10300  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10301"
10302if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10303  cat >>confdefs.h <<_ACEOF
10304#define HAVE_DLFCN_H 1
10305_ACEOF
10306
10307fi
10308
10309done
10310
10311
10312
10313
10314
10315# Set options
10316
10317
10318
10319        enable_dlopen=no
10320
10321
10322  enable_win32_dll=no
10323
10324
10325
10326  # Check whether --enable-static was given.
10327if test "${enable_static+set}" = set; then :
10328  enableval=$enable_static; p=${PACKAGE-default}
10329    case $enableval in
10330    yes) enable_static=yes ;;
10331    no) enable_static=no ;;
10332    *)
10333     enable_static=no
10334      # Look at the argument we got.  We use all the common list separators.
10335      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10336      for pkg in $enableval; do
10337	IFS=$lt_save_ifs
10338	if test "X$pkg" = "X$p"; then
10339	  enable_static=yes
10340	fi
10341      done
10342      IFS=$lt_save_ifs
10343      ;;
10344    esac
10345else
10346  enable_static=yes
10347fi
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358# Check whether --with-pic was given.
10359if test "${with_pic+set}" = set; then :
10360  withval=$with_pic; lt_p=${PACKAGE-default}
10361    case $withval in
10362    yes|no) pic_mode=$withval ;;
10363    *)
10364      pic_mode=default
10365      # Look at the argument we got.  We use all the common list separators.
10366      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10367      for lt_pkg in $withval; do
10368	IFS=$lt_save_ifs
10369	if test "X$lt_pkg" = "X$lt_p"; then
10370	  pic_mode=yes
10371	fi
10372      done
10373      IFS=$lt_save_ifs
10374      ;;
10375    esac
10376else
10377  pic_mode=default
10378fi
10379
10380
10381
10382
10383
10384
10385
10386
10387  # Check whether --enable-fast-install was given.
10388if test "${enable_fast_install+set}" = set; then :
10389  enableval=$enable_fast_install; p=${PACKAGE-default}
10390    case $enableval in
10391    yes) enable_fast_install=yes ;;
10392    no) enable_fast_install=no ;;
10393    *)
10394      enable_fast_install=no
10395      # Look at the argument we got.  We use all the common list separators.
10396      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10397      for pkg in $enableval; do
10398	IFS=$lt_save_ifs
10399	if test "X$pkg" = "X$p"; then
10400	  enable_fast_install=yes
10401	fi
10402      done
10403      IFS=$lt_save_ifs
10404      ;;
10405    esac
10406else
10407  enable_fast_install=yes
10408fi
10409
10410
10411
10412
10413
10414
10415
10416
10417  shared_archive_member_spec=
10418case $host,$enable_shared in
10419power*-*-aix[5-9]*,yes)
10420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10421$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10422
10423# Check whether --with-aix-soname was given.
10424if test "${with_aix_soname+set}" = set; then :
10425  withval=$with_aix_soname; case $withval in
10426    aix|svr4|both)
10427      ;;
10428    *)
10429      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10430      ;;
10431    esac
10432    lt_cv_with_aix_soname=$with_aix_soname
10433else
10434  if ${lt_cv_with_aix_soname+:} false; then :
10435  $as_echo_n "(cached) " >&6
10436else
10437  lt_cv_with_aix_soname=aix
10438fi
10439
10440    with_aix_soname=$lt_cv_with_aix_soname
10441fi
10442
10443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10444$as_echo "$with_aix_soname" >&6; }
10445  if test aix != "$with_aix_soname"; then
10446    # For the AIX way of multilib, we name the shared archive member
10447    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10448    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10449    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10450    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10451    if test 64 = "${OBJECT_MODE-32}"; then
10452      shared_archive_member_spec=shr_64
10453    else
10454      shared_archive_member_spec=shr
10455    fi
10456  fi
10457  ;;
10458*)
10459  with_aix_soname=aix
10460  ;;
10461esac
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472# This can be used to rebuild libtool when needed
10473LIBTOOL_DEPS=$ltmain
10474
10475# Always use our own libtool.
10476LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507test -z "$LN_S" && LN_S="ln -s"
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522if test -n "${ZSH_VERSION+set}"; then
10523   setopt NO_GLOB_SUBST
10524fi
10525
10526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10527$as_echo_n "checking for objdir... " >&6; }
10528if ${lt_cv_objdir+:} false; then :
10529  $as_echo_n "(cached) " >&6
10530else
10531  rm -f .libs 2>/dev/null
10532mkdir .libs 2>/dev/null
10533if test -d .libs; then
10534  lt_cv_objdir=.libs
10535else
10536  # MS-DOS does not allow filenames that begin with a dot.
10537  lt_cv_objdir=_libs
10538fi
10539rmdir .libs 2>/dev/null
10540fi
10541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10542$as_echo "$lt_cv_objdir" >&6; }
10543objdir=$lt_cv_objdir
10544
10545
10546
10547
10548
10549cat >>confdefs.h <<_ACEOF
10550#define LT_OBJDIR "$lt_cv_objdir/"
10551_ACEOF
10552
10553
10554
10555
10556case $host_os in
10557aix3*)
10558  # AIX sometimes has problems with the GCC collect2 program.  For some
10559  # reason, if we set the COLLECT_NAMES environment variable, the problems
10560  # vanish in a puff of smoke.
10561  if test set != "${COLLECT_NAMES+set}"; then
10562    COLLECT_NAMES=
10563    export COLLECT_NAMES
10564  fi
10565  ;;
10566esac
10567
10568# Global variables:
10569ofile=libtool
10570can_build_shared=yes
10571
10572# All known linkers require a '.a' archive for static linking (except MSVC,
10573# which needs '.lib').
10574libext=a
10575
10576with_gnu_ld=$lt_cv_prog_gnu_ld
10577
10578old_CC=$CC
10579old_CFLAGS=$CFLAGS
10580
10581# Set sane defaults for various variables
10582test -z "$CC" && CC=cc
10583test -z "$LTCC" && LTCC=$CC
10584test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10585test -z "$LD" && LD=ld
10586test -z "$ac_objext" && ac_objext=o
10587
10588func_cc_basename $compiler
10589cc_basename=$func_cc_basename_result
10590
10591
10592# Only perform the check for file, if the check method requires it
10593test -z "$MAGIC_CMD" && MAGIC_CMD=file
10594case $deplibs_check_method in
10595file_magic*)
10596  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10597    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10598$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10599if ${lt_cv_path_MAGIC_CMD+:} false; then :
10600  $as_echo_n "(cached) " >&6
10601else
10602  case $MAGIC_CMD in
10603[\\/*] |  ?:[\\/]*)
10604  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10605  ;;
10606*)
10607  lt_save_MAGIC_CMD=$MAGIC_CMD
10608  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10609  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10610  for ac_dir in $ac_dummy; do
10611    IFS=$lt_save_ifs
10612    test -z "$ac_dir" && ac_dir=.
10613    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10614      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10615      if test -n "$file_magic_test_file"; then
10616	case $deplibs_check_method in
10617	"file_magic "*)
10618	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10619	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10620	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10621	    $EGREP "$file_magic_regex" > /dev/null; then
10622	    :
10623	  else
10624	    cat <<_LT_EOF 1>&2
10625
10626*** Warning: the command libtool uses to detect shared libraries,
10627*** $file_magic_cmd, produces output that libtool cannot recognize.
10628*** The result is that libtool may fail to recognize shared libraries
10629*** as such.  This will affect the creation of libtool libraries that
10630*** depend on shared libraries, but programs linked with such libtool
10631*** libraries will work regardless of this problem.  Nevertheless, you
10632*** may want to report the problem to your system manager and/or to
10633*** bug-libtool@gnu.org
10634
10635_LT_EOF
10636	  fi ;;
10637	esac
10638      fi
10639      break
10640    fi
10641  done
10642  IFS=$lt_save_ifs
10643  MAGIC_CMD=$lt_save_MAGIC_CMD
10644  ;;
10645esac
10646fi
10647
10648MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10649if test -n "$MAGIC_CMD"; then
10650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10651$as_echo "$MAGIC_CMD" >&6; }
10652else
10653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10654$as_echo "no" >&6; }
10655fi
10656
10657
10658
10659
10660
10661if test -z "$lt_cv_path_MAGIC_CMD"; then
10662  if test -n "$ac_tool_prefix"; then
10663    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10664$as_echo_n "checking for file... " >&6; }
10665if ${lt_cv_path_MAGIC_CMD+:} false; then :
10666  $as_echo_n "(cached) " >&6
10667else
10668  case $MAGIC_CMD in
10669[\\/*] |  ?:[\\/]*)
10670  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10671  ;;
10672*)
10673  lt_save_MAGIC_CMD=$MAGIC_CMD
10674  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10675  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10676  for ac_dir in $ac_dummy; do
10677    IFS=$lt_save_ifs
10678    test -z "$ac_dir" && ac_dir=.
10679    if test -f "$ac_dir/file"; then
10680      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10681      if test -n "$file_magic_test_file"; then
10682	case $deplibs_check_method in
10683	"file_magic "*)
10684	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10685	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10686	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10687	    $EGREP "$file_magic_regex" > /dev/null; then
10688	    :
10689	  else
10690	    cat <<_LT_EOF 1>&2
10691
10692*** Warning: the command libtool uses to detect shared libraries,
10693*** $file_magic_cmd, produces output that libtool cannot recognize.
10694*** The result is that libtool may fail to recognize shared libraries
10695*** as such.  This will affect the creation of libtool libraries that
10696*** depend on shared libraries, but programs linked with such libtool
10697*** libraries will work regardless of this problem.  Nevertheless, you
10698*** may want to report the problem to your system manager and/or to
10699*** bug-libtool@gnu.org
10700
10701_LT_EOF
10702	  fi ;;
10703	esac
10704      fi
10705      break
10706    fi
10707  done
10708  IFS=$lt_save_ifs
10709  MAGIC_CMD=$lt_save_MAGIC_CMD
10710  ;;
10711esac
10712fi
10713
10714MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10715if test -n "$MAGIC_CMD"; then
10716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10717$as_echo "$MAGIC_CMD" >&6; }
10718else
10719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10720$as_echo "no" >&6; }
10721fi
10722
10723
10724  else
10725    MAGIC_CMD=:
10726  fi
10727fi
10728
10729  fi
10730  ;;
10731esac
10732
10733# Use C for the default configuration in the libtool script
10734
10735lt_save_CC=$CC
10736ac_ext=c
10737ac_cpp='$CPP $CPPFLAGS'
10738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10740ac_compiler_gnu=$ac_cv_c_compiler_gnu
10741
10742
10743# Source file extension for C test sources.
10744ac_ext=c
10745
10746# Object file extension for compiled C test sources.
10747objext=o
10748objext=$objext
10749
10750# Code to be used in simple compile tests
10751lt_simple_compile_test_code="int some_variable = 0;"
10752
10753# Code to be used in simple link tests
10754lt_simple_link_test_code='int main(){return(0);}'
10755
10756
10757
10758
10759
10760
10761
10762# If no C compiler was specified, use CC.
10763LTCC=${LTCC-"$CC"}
10764
10765# If no C compiler flags were specified, use CFLAGS.
10766LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10767
10768# Allow CC to be a program name with arguments.
10769compiler=$CC
10770
10771# Save the default compiler, since it gets overwritten when the other
10772# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10773compiler_DEFAULT=$CC
10774
10775# save warnings/boilerplate of simple test code
10776ac_outfile=conftest.$ac_objext
10777echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10778eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10779_lt_compiler_boilerplate=`cat conftest.err`
10780$RM conftest*
10781
10782ac_outfile=conftest.$ac_objext
10783echo "$lt_simple_link_test_code" >conftest.$ac_ext
10784eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10785_lt_linker_boilerplate=`cat conftest.err`
10786$RM -r conftest*
10787
10788
10789## CAVEAT EMPTOR:
10790## There is no encapsulation within the following macros, do not change
10791## the running order or otherwise move them around unless you know exactly
10792## what you are doing...
10793if test -n "$compiler"; then
10794
10795lt_prog_compiler_no_builtin_flag=
10796
10797if test yes = "$GCC"; then
10798  case $cc_basename in
10799  nvcc*)
10800    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10801  *)
10802    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10803  esac
10804
10805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10806$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10807if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10808  $as_echo_n "(cached) " >&6
10809else
10810  lt_cv_prog_compiler_rtti_exceptions=no
10811   ac_outfile=conftest.$ac_objext
10812   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10813   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10814   # Insert the option either (1) after the last *FLAGS variable, or
10815   # (2) before a word containing "conftest.", or (3) at the end.
10816   # Note that $ac_compile itself does not contain backslashes and begins
10817   # with a dollar sign (not a hyphen), so the echo should work correctly.
10818   # The option is referenced via a variable to avoid confusing sed.
10819   lt_compile=`echo "$ac_compile" | $SED \
10820   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10821   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10822   -e 's:$: $lt_compiler_flag:'`
10823   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10824   (eval "$lt_compile" 2>conftest.err)
10825   ac_status=$?
10826   cat conftest.err >&5
10827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828   if (exit $ac_status) && test -s "$ac_outfile"; then
10829     # The compiler can only warn and ignore the option if not recognized
10830     # So say no if there are warnings other than the usual output.
10831     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10832     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10833     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10834       lt_cv_prog_compiler_rtti_exceptions=yes
10835     fi
10836   fi
10837   $RM conftest*
10838
10839fi
10840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10841$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10842
10843if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10844    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10845else
10846    :
10847fi
10848
10849fi
10850
10851
10852
10853
10854
10855
10856  lt_prog_compiler_wl=
10857lt_prog_compiler_pic=
10858lt_prog_compiler_static=
10859
10860
10861  if test yes = "$GCC"; then
10862    lt_prog_compiler_wl='-Wl,'
10863    lt_prog_compiler_static='-static'
10864
10865    case $host_os in
10866      aix*)
10867      # All AIX code is PIC.
10868      if test ia64 = "$host_cpu"; then
10869	# AIX 5 now supports IA64 processor
10870	lt_prog_compiler_static='-Bstatic'
10871      fi
10872      lt_prog_compiler_pic='-fPIC'
10873      ;;
10874
10875    amigaos*)
10876      case $host_cpu in
10877      powerpc)
10878            # see comment about AmigaOS4 .so support
10879            lt_prog_compiler_pic='-fPIC'
10880        ;;
10881      m68k)
10882            # FIXME: we need at least 68020 code to build shared libraries, but
10883            # adding the '-m68020' flag to GCC prevents building anything better,
10884            # like '-m68040'.
10885            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10886        ;;
10887      esac
10888      ;;
10889
10890    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10891      # PIC is the default for these OSes.
10892      ;;
10893
10894    mingw* | cygwin* | pw32* | os2* | cegcc*)
10895      # This hack is so that the source file can tell whether it is being
10896      # built for inclusion in a dll (and should export symbols for example).
10897      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10898      # (--disable-auto-import) libraries
10899      lt_prog_compiler_pic='-DDLL_EXPORT'
10900      case $host_os in
10901      os2*)
10902	lt_prog_compiler_static='$wl-static'
10903	;;
10904      esac
10905      ;;
10906
10907    darwin* | rhapsody*)
10908      # PIC is the default on this platform
10909      # Common symbols not allowed in MH_DYLIB files
10910      lt_prog_compiler_pic='-fno-common'
10911      ;;
10912
10913    haiku*)
10914      # PIC is the default for Haiku.
10915      # The "-static" flag exists, but is broken.
10916      lt_prog_compiler_static=
10917      ;;
10918
10919    hpux*)
10920      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10921      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10922      # sets the default TLS model and affects inlining.
10923      case $host_cpu in
10924      hppa*64*)
10925	# +Z the default
10926	;;
10927      *)
10928	lt_prog_compiler_pic='-fPIC'
10929	;;
10930      esac
10931      ;;
10932
10933    interix[3-9]*)
10934      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10935      # Instead, we relocate shared libraries at runtime.
10936      ;;
10937
10938    msdosdjgpp*)
10939      # Just because we use GCC doesn't mean we suddenly get shared libraries
10940      # on systems that don't support them.
10941      lt_prog_compiler_can_build_shared=no
10942      enable_shared=no
10943      ;;
10944
10945    *nto* | *qnx*)
10946      # QNX uses GNU C++, but need to define -shared option too, otherwise
10947      # it will coredump.
10948      lt_prog_compiler_pic='-fPIC -shared'
10949      ;;
10950
10951    sysv4*MP*)
10952      if test -d /usr/nec; then
10953	lt_prog_compiler_pic=-Kconform_pic
10954      fi
10955      ;;
10956
10957    *)
10958      lt_prog_compiler_pic='-fPIC'
10959      ;;
10960    esac
10961
10962    case $cc_basename in
10963    nvcc*) # Cuda Compiler Driver 2.2
10964      lt_prog_compiler_wl='-Xlinker '
10965      if test -n "$lt_prog_compiler_pic"; then
10966        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10967      fi
10968      ;;
10969    esac
10970  else
10971    # PORTME Check for flag to pass linker flags through the system compiler.
10972    case $host_os in
10973    aix*)
10974      lt_prog_compiler_wl='-Wl,'
10975      if test ia64 = "$host_cpu"; then
10976	# AIX 5 now supports IA64 processor
10977	lt_prog_compiler_static='-Bstatic'
10978      else
10979	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10980      fi
10981      ;;
10982
10983    darwin* | rhapsody*)
10984      # PIC is the default on this platform
10985      # Common symbols not allowed in MH_DYLIB files
10986      lt_prog_compiler_pic='-fno-common'
10987      case $cc_basename in
10988      nagfor*)
10989        # NAG Fortran compiler
10990        lt_prog_compiler_wl='-Wl,-Wl,,'
10991        lt_prog_compiler_pic='-PIC'
10992        lt_prog_compiler_static='-Bstatic'
10993        ;;
10994      esac
10995      ;;
10996
10997    mingw* | cygwin* | pw32* | os2* | cegcc*)
10998      # This hack is so that the source file can tell whether it is being
10999      # built for inclusion in a dll (and should export symbols for example).
11000      lt_prog_compiler_pic='-DDLL_EXPORT'
11001      case $host_os in
11002      os2*)
11003	lt_prog_compiler_static='$wl-static'
11004	;;
11005      esac
11006      ;;
11007
11008    hpux9* | hpux10* | hpux11*)
11009      lt_prog_compiler_wl='-Wl,'
11010      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11011      # not for PA HP-UX.
11012      case $host_cpu in
11013      hppa*64*|ia64*)
11014	# +Z the default
11015	;;
11016      *)
11017	lt_prog_compiler_pic='+Z'
11018	;;
11019      esac
11020      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11021      lt_prog_compiler_static='$wl-a ${wl}archive'
11022      ;;
11023
11024    irix5* | irix6* | nonstopux*)
11025      lt_prog_compiler_wl='-Wl,'
11026      # PIC (with -KPIC) is the default.
11027      lt_prog_compiler_static='-non_shared'
11028      ;;
11029
11030    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11031      case $cc_basename in
11032      # old Intel for x86_64, which still supported -KPIC.
11033      ecc*)
11034	lt_prog_compiler_wl='-Wl,'
11035	lt_prog_compiler_pic='-KPIC'
11036	lt_prog_compiler_static='-static'
11037        ;;
11038      # icc used to be incompatible with GCC.
11039      # ICC 10 doesn't accept -KPIC any more.
11040      icc* | ifort*)
11041	lt_prog_compiler_wl='-Wl,'
11042	lt_prog_compiler_pic='-fPIC'
11043	lt_prog_compiler_static='-static'
11044        ;;
11045      # Lahey Fortran 8.1.
11046      lf95*)
11047	lt_prog_compiler_wl='-Wl,'
11048	lt_prog_compiler_pic='--shared'
11049	lt_prog_compiler_static='--static'
11050	;;
11051      nagfor*)
11052	# NAG Fortran compiler
11053	lt_prog_compiler_wl='-Wl,-Wl,,'
11054	lt_prog_compiler_pic='-PIC'
11055	lt_prog_compiler_static='-Bstatic'
11056	;;
11057      tcc*)
11058	# Fabrice Bellard et al's Tiny C Compiler
11059	lt_prog_compiler_wl='-Wl,'
11060	lt_prog_compiler_pic='-fPIC'
11061	lt_prog_compiler_static='-static'
11062	;;
11063      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11064        # Portland Group compilers (*not* the Pentium gcc compiler,
11065	# which looks to be a dead project)
11066	lt_prog_compiler_wl='-Wl,'
11067	lt_prog_compiler_pic='-fpic'
11068	lt_prog_compiler_static='-Bstatic'
11069        ;;
11070      ccc*)
11071        lt_prog_compiler_wl='-Wl,'
11072        # All Alpha code is PIC.
11073        lt_prog_compiler_static='-non_shared'
11074        ;;
11075      xl* | bgxl* | bgf* | mpixl*)
11076	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11077	lt_prog_compiler_wl='-Wl,'
11078	lt_prog_compiler_pic='-qpic'
11079	lt_prog_compiler_static='-qstaticlink'
11080	;;
11081      *)
11082	case `$CC -V 2>&1 | sed 5q` in
11083	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11084	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11085	  lt_prog_compiler_pic='-KPIC'
11086	  lt_prog_compiler_static='-Bstatic'
11087	  lt_prog_compiler_wl=''
11088	  ;;
11089	*Sun\ F* | *Sun*Fortran*)
11090	  lt_prog_compiler_pic='-KPIC'
11091	  lt_prog_compiler_static='-Bstatic'
11092	  lt_prog_compiler_wl='-Qoption ld '
11093	  ;;
11094	*Sun\ C*)
11095	  # Sun C 5.9
11096	  lt_prog_compiler_pic='-KPIC'
11097	  lt_prog_compiler_static='-Bstatic'
11098	  lt_prog_compiler_wl='-Wl,'
11099	  ;;
11100        *Intel*\ [CF]*Compiler*)
11101	  lt_prog_compiler_wl='-Wl,'
11102	  lt_prog_compiler_pic='-fPIC'
11103	  lt_prog_compiler_static='-static'
11104	  ;;
11105	*Portland\ Group*)
11106	  lt_prog_compiler_wl='-Wl,'
11107	  lt_prog_compiler_pic='-fpic'
11108	  lt_prog_compiler_static='-Bstatic'
11109	  ;;
11110	esac
11111	;;
11112      esac
11113      ;;
11114
11115    newsos6)
11116      lt_prog_compiler_pic='-KPIC'
11117      lt_prog_compiler_static='-Bstatic'
11118      ;;
11119
11120    *nto* | *qnx*)
11121      # QNX uses GNU C++, but need to define -shared option too, otherwise
11122      # it will coredump.
11123      lt_prog_compiler_pic='-fPIC -shared'
11124      ;;
11125
11126    osf3* | osf4* | osf5*)
11127      lt_prog_compiler_wl='-Wl,'
11128      # All OSF/1 code is PIC.
11129      lt_prog_compiler_static='-non_shared'
11130      ;;
11131
11132    rdos*)
11133      lt_prog_compiler_static='-non_shared'
11134      ;;
11135
11136    solaris*)
11137      lt_prog_compiler_pic='-KPIC'
11138      lt_prog_compiler_static='-Bstatic'
11139      case $cc_basename in
11140      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11141	lt_prog_compiler_wl='-Qoption ld ';;
11142      *)
11143	lt_prog_compiler_wl='-Wl,';;
11144      esac
11145      ;;
11146
11147    sunos4*)
11148      lt_prog_compiler_wl='-Qoption ld '
11149      lt_prog_compiler_pic='-PIC'
11150      lt_prog_compiler_static='-Bstatic'
11151      ;;
11152
11153    sysv4 | sysv4.2uw2* | sysv4.3*)
11154      lt_prog_compiler_wl='-Wl,'
11155      lt_prog_compiler_pic='-KPIC'
11156      lt_prog_compiler_static='-Bstatic'
11157      ;;
11158
11159    sysv4*MP*)
11160      if test -d /usr/nec; then
11161	lt_prog_compiler_pic='-Kconform_pic'
11162	lt_prog_compiler_static='-Bstatic'
11163      fi
11164      ;;
11165
11166    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11167      lt_prog_compiler_wl='-Wl,'
11168      lt_prog_compiler_pic='-KPIC'
11169      lt_prog_compiler_static='-Bstatic'
11170      ;;
11171
11172    unicos*)
11173      lt_prog_compiler_wl='-Wl,'
11174      lt_prog_compiler_can_build_shared=no
11175      ;;
11176
11177    uts4*)
11178      lt_prog_compiler_pic='-pic'
11179      lt_prog_compiler_static='-Bstatic'
11180      ;;
11181
11182    *)
11183      lt_prog_compiler_can_build_shared=no
11184      ;;
11185    esac
11186  fi
11187
11188case $host_os in
11189  # For platforms that do not support PIC, -DPIC is meaningless:
11190  *djgpp*)
11191    lt_prog_compiler_pic=
11192    ;;
11193  *)
11194    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11195    ;;
11196esac
11197
11198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11199$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11200if ${lt_cv_prog_compiler_pic+:} false; then :
11201  $as_echo_n "(cached) " >&6
11202else
11203  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11204fi
11205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11206$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11207lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11208
11209#
11210# Check to make sure the PIC flag actually works.
11211#
11212if test -n "$lt_prog_compiler_pic"; then
11213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11214$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11215if ${lt_cv_prog_compiler_pic_works+:} false; then :
11216  $as_echo_n "(cached) " >&6
11217else
11218  lt_cv_prog_compiler_pic_works=no
11219   ac_outfile=conftest.$ac_objext
11220   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11221   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11222   # Insert the option either (1) after the last *FLAGS variable, or
11223   # (2) before a word containing "conftest.", or (3) at the end.
11224   # Note that $ac_compile itself does not contain backslashes and begins
11225   # with a dollar sign (not a hyphen), so the echo should work correctly.
11226   # The option is referenced via a variable to avoid confusing sed.
11227   lt_compile=`echo "$ac_compile" | $SED \
11228   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11229   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11230   -e 's:$: $lt_compiler_flag:'`
11231   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11232   (eval "$lt_compile" 2>conftest.err)
11233   ac_status=$?
11234   cat conftest.err >&5
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   if (exit $ac_status) && test -s "$ac_outfile"; then
11237     # The compiler can only warn and ignore the option if not recognized
11238     # So say no if there are warnings other than the usual output.
11239     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11240     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11241     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11242       lt_cv_prog_compiler_pic_works=yes
11243     fi
11244   fi
11245   $RM conftest*
11246
11247fi
11248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11249$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11250
11251if test yes = "$lt_cv_prog_compiler_pic_works"; then
11252    case $lt_prog_compiler_pic in
11253     "" | " "*) ;;
11254     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11255     esac
11256else
11257    lt_prog_compiler_pic=
11258     lt_prog_compiler_can_build_shared=no
11259fi
11260
11261fi
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273#
11274# Check to make sure the static flag actually works.
11275#
11276wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11278$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11279if ${lt_cv_prog_compiler_static_works+:} false; then :
11280  $as_echo_n "(cached) " >&6
11281else
11282  lt_cv_prog_compiler_static_works=no
11283   save_LDFLAGS=$LDFLAGS
11284   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11285   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11286   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11287     # The linker can only warn and ignore the option if not recognized
11288     # So say no if there are warnings
11289     if test -s conftest.err; then
11290       # Append any errors to the config.log.
11291       cat conftest.err 1>&5
11292       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11293       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11294       if diff conftest.exp conftest.er2 >/dev/null; then
11295         lt_cv_prog_compiler_static_works=yes
11296       fi
11297     else
11298       lt_cv_prog_compiler_static_works=yes
11299     fi
11300   fi
11301   $RM -r conftest*
11302   LDFLAGS=$save_LDFLAGS
11303
11304fi
11305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11306$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11307
11308if test yes = "$lt_cv_prog_compiler_static_works"; then
11309    :
11310else
11311    lt_prog_compiler_static=
11312fi
11313
11314
11315
11316
11317
11318
11319
11320  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11321$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11322if ${lt_cv_prog_compiler_c_o+:} false; then :
11323  $as_echo_n "(cached) " >&6
11324else
11325  lt_cv_prog_compiler_c_o=no
11326   $RM -r conftest 2>/dev/null
11327   mkdir conftest
11328   cd conftest
11329   mkdir out
11330   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11331
11332   lt_compiler_flag="-o out/conftest2.$ac_objext"
11333   # Insert the option either (1) after the last *FLAGS variable, or
11334   # (2) before a word containing "conftest.", or (3) at the end.
11335   # Note that $ac_compile itself does not contain backslashes and begins
11336   # with a dollar sign (not a hyphen), so the echo should work correctly.
11337   lt_compile=`echo "$ac_compile" | $SED \
11338   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11339   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11340   -e 's:$: $lt_compiler_flag:'`
11341   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11342   (eval "$lt_compile" 2>out/conftest.err)
11343   ac_status=$?
11344   cat out/conftest.err >&5
11345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11347   then
11348     # The compiler can only warn and ignore the option if not recognized
11349     # So say no if there are warnings
11350     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11351     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11352     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11353       lt_cv_prog_compiler_c_o=yes
11354     fi
11355   fi
11356   chmod u+w . 2>&5
11357   $RM conftest*
11358   # SGI C++ compiler will create directory out/ii_files/ for
11359   # template instantiation
11360   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11361   $RM out/* && rmdir out
11362   cd ..
11363   $RM -r conftest
11364   $RM conftest*
11365
11366fi
11367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11368$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11369
11370
11371
11372
11373
11374
11375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11376$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11377if ${lt_cv_prog_compiler_c_o+:} false; then :
11378  $as_echo_n "(cached) " >&6
11379else
11380  lt_cv_prog_compiler_c_o=no
11381   $RM -r conftest 2>/dev/null
11382   mkdir conftest
11383   cd conftest
11384   mkdir out
11385   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11386
11387   lt_compiler_flag="-o out/conftest2.$ac_objext"
11388   # Insert the option either (1) after the last *FLAGS variable, or
11389   # (2) before a word containing "conftest.", or (3) at the end.
11390   # Note that $ac_compile itself does not contain backslashes and begins
11391   # with a dollar sign (not a hyphen), so the echo should work correctly.
11392   lt_compile=`echo "$ac_compile" | $SED \
11393   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11394   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11395   -e 's:$: $lt_compiler_flag:'`
11396   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11397   (eval "$lt_compile" 2>out/conftest.err)
11398   ac_status=$?
11399   cat out/conftest.err >&5
11400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11402   then
11403     # The compiler can only warn and ignore the option if not recognized
11404     # So say no if there are warnings
11405     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11406     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11407     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11408       lt_cv_prog_compiler_c_o=yes
11409     fi
11410   fi
11411   chmod u+w . 2>&5
11412   $RM conftest*
11413   # SGI C++ compiler will create directory out/ii_files/ for
11414   # template instantiation
11415   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11416   $RM out/* && rmdir out
11417   cd ..
11418   $RM -r conftest
11419   $RM conftest*
11420
11421fi
11422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11423$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11424
11425
11426
11427
11428hard_links=nottested
11429if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11430  # do not overwrite the value of need_locks provided by the user
11431  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11432$as_echo_n "checking if we can lock with hard links... " >&6; }
11433  hard_links=yes
11434  $RM conftest*
11435  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11436  touch conftest.a
11437  ln conftest.a conftest.b 2>&5 || hard_links=no
11438  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11440$as_echo "$hard_links" >&6; }
11441  if test no = "$hard_links"; then
11442    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11443$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11444    need_locks=warn
11445  fi
11446else
11447  need_locks=no
11448fi
11449
11450
11451
11452
11453
11454
11455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11456$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11457
11458  runpath_var=
11459  allow_undefined_flag=
11460  always_export_symbols=no
11461  archive_cmds=
11462  archive_expsym_cmds=
11463  compiler_needs_object=no
11464  enable_shared_with_static_runtimes=no
11465  export_dynamic_flag_spec=
11466  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11467  hardcode_automatic=no
11468  hardcode_direct=no
11469  hardcode_direct_absolute=no
11470  hardcode_libdir_flag_spec=
11471  hardcode_libdir_separator=
11472  hardcode_minus_L=no
11473  hardcode_shlibpath_var=unsupported
11474  inherit_rpath=no
11475  link_all_deplibs=unknown
11476  module_cmds=
11477  module_expsym_cmds=
11478  old_archive_from_new_cmds=
11479  old_archive_from_expsyms_cmds=
11480  thread_safe_flag_spec=
11481  whole_archive_flag_spec=
11482  # include_expsyms should be a list of space-separated symbols to be *always*
11483  # included in the symbol list
11484  include_expsyms=
11485  # exclude_expsyms can be an extended regexp of symbols to exclude
11486  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11487  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11488  # as well as any symbol that contains 'd'.
11489  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11490  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11491  # platforms (ab)use it in PIC code, but their linkers get confused if
11492  # the symbol is explicitly referenced.  Since portable code cannot
11493  # rely on this symbol name, it's probably fine to never include it in
11494  # preloaded symbol tables.
11495  # Exclude shared library initialization/finalization symbols.
11496  extract_expsyms_cmds=
11497
11498  case $host_os in
11499  cygwin* | mingw* | pw32* | cegcc*)
11500    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11501    # When not using gcc, we currently assume that we are using
11502    # Microsoft Visual C++.
11503    if test yes != "$GCC"; then
11504      with_gnu_ld=no
11505    fi
11506    ;;
11507  interix*)
11508    # we just hope/assume this is gcc and not c89 (= MSVC++)
11509    with_gnu_ld=yes
11510    ;;
11511  openbsd* | bitrig*)
11512    with_gnu_ld=no
11513    ;;
11514  esac
11515
11516  ld_shlibs=yes
11517
11518  # On some targets, GNU ld is compatible enough with the native linker
11519  # that we're better off using the native interface for both.
11520  lt_use_gnu_ld_interface=no
11521  if test yes = "$with_gnu_ld"; then
11522    case $host_os in
11523      aix*)
11524	# The AIX port of GNU ld has always aspired to compatibility
11525	# with the native linker.  However, as the warning in the GNU ld
11526	# block says, versions before 2.19.5* couldn't really create working
11527	# shared libraries, regardless of the interface used.
11528	case `$LD -v 2>&1` in
11529	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11530	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11531	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11532	  *)
11533	    lt_use_gnu_ld_interface=yes
11534	    ;;
11535	esac
11536	;;
11537      *)
11538	lt_use_gnu_ld_interface=yes
11539	;;
11540    esac
11541  fi
11542
11543  if test yes = "$lt_use_gnu_ld_interface"; then
11544    # If archive_cmds runs LD, not CC, wlarc should be empty
11545    wlarc='$wl'
11546
11547    # Set some defaults for GNU ld with shared library support. These
11548    # are reset later if shared libraries are not supported. Putting them
11549    # here allows them to be overridden if necessary.
11550    runpath_var=LD_RUN_PATH
11551    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11552    export_dynamic_flag_spec='$wl--export-dynamic'
11553    # ancient GNU ld didn't support --whole-archive et. al.
11554    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11555      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11556    else
11557      whole_archive_flag_spec=
11558    fi
11559    supports_anon_versioning=no
11560    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11561      *GNU\ gold*) supports_anon_versioning=yes ;;
11562      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11563      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11564      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11565      *\ 2.11.*) ;; # other 2.11 versions
11566      *) supports_anon_versioning=yes ;;
11567    esac
11568
11569    # See if GNU ld supports shared libraries.
11570    case $host_os in
11571    aix[3-9]*)
11572      # On AIX/PPC, the GNU linker is very broken
11573      if test ia64 != "$host_cpu"; then
11574	ld_shlibs=no
11575	cat <<_LT_EOF 1>&2
11576
11577*** Warning: the GNU linker, at least up to release 2.19, is reported
11578*** to be unable to reliably create shared libraries on AIX.
11579*** Therefore, libtool is disabling shared libraries support.  If you
11580*** really care for shared libraries, you may want to install binutils
11581*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11582*** You will then need to restart the configuration process.
11583
11584_LT_EOF
11585      fi
11586      ;;
11587
11588    amigaos*)
11589      case $host_cpu in
11590      powerpc)
11591            # see comment about AmigaOS4 .so support
11592            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11593            archive_expsym_cmds=''
11594        ;;
11595      m68k)
11596            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11597            hardcode_libdir_flag_spec='-L$libdir'
11598            hardcode_minus_L=yes
11599        ;;
11600      esac
11601      ;;
11602
11603    beos*)
11604      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11605	allow_undefined_flag=unsupported
11606	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11607	# support --undefined.  This deserves some investigation.  FIXME
11608	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11609      else
11610	ld_shlibs=no
11611      fi
11612      ;;
11613
11614    cygwin* | mingw* | pw32* | cegcc*)
11615      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11616      # as there is no search path for DLLs.
11617      hardcode_libdir_flag_spec='-L$libdir'
11618      export_dynamic_flag_spec='$wl--export-all-symbols'
11619      allow_undefined_flag=unsupported
11620      always_export_symbols=no
11621      enable_shared_with_static_runtimes=yes
11622      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11623      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11624
11625      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11626        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11627	# If the export-symbols file already is a .def file, use it as
11628	# is; otherwise, prepend EXPORTS...
11629	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11630          cp $export_symbols $output_objdir/$soname.def;
11631        else
11632          echo EXPORTS > $output_objdir/$soname.def;
11633          cat $export_symbols >> $output_objdir/$soname.def;
11634        fi~
11635        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11636      else
11637	ld_shlibs=no
11638      fi
11639      ;;
11640
11641    haiku*)
11642      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11643      link_all_deplibs=yes
11644      ;;
11645
11646    os2*)
11647      hardcode_libdir_flag_spec='-L$libdir'
11648      hardcode_minus_L=yes
11649      allow_undefined_flag=unsupported
11650      shrext_cmds=.dll
11651      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11652	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11653	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11654	$ECHO EXPORTS >> $output_objdir/$libname.def~
11655	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11656	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11657	emximp -o $lib $output_objdir/$libname.def'
11658      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11659	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11660	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11661	$ECHO EXPORTS >> $output_objdir/$libname.def~
11662	prefix_cmds="$SED"~
11663	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11664	  prefix_cmds="$prefix_cmds -e 1d";
11665	fi~
11666	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11667	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11668	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11669	emximp -o $lib $output_objdir/$libname.def'
11670      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11671      enable_shared_with_static_runtimes=yes
11672      ;;
11673
11674    interix[3-9]*)
11675      hardcode_direct=no
11676      hardcode_shlibpath_var=no
11677      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11678      export_dynamic_flag_spec='$wl-E'
11679      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11680      # Instead, shared libraries are loaded at an image base (0x10000000 by
11681      # default) and relocated if they conflict, which is a slow very memory
11682      # consuming and fragmenting process.  To avoid this, we pick a random,
11683      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11684      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11685      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11686      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11687      ;;
11688
11689    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11690      tmp_diet=no
11691      if test linux-dietlibc = "$host_os"; then
11692	case $cc_basename in
11693	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11694	esac
11695      fi
11696      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11697	 && test no = "$tmp_diet"
11698      then
11699	tmp_addflag=' $pic_flag'
11700	tmp_sharedflag='-shared'
11701	case $cc_basename,$host_cpu in
11702        pgcc*)				# Portland Group C compiler
11703	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11704	  tmp_addflag=' $pic_flag'
11705	  ;;
11706	pgf77* | pgf90* | pgf95* | pgfortran*)
11707					# Portland Group f77 and f90 compilers
11708	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11709	  tmp_addflag=' $pic_flag -Mnomain' ;;
11710	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11711	  tmp_addflag=' -i_dynamic' ;;
11712	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11713	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11714	ifc* | ifort*)			# Intel Fortran compiler
11715	  tmp_addflag=' -nofor_main' ;;
11716	lf95*)				# Lahey Fortran 8.1
11717	  whole_archive_flag_spec=
11718	  tmp_sharedflag='--shared' ;;
11719        nagfor*)                        # NAGFOR 5.3
11720          tmp_sharedflag='-Wl,-shared' ;;
11721	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11722	  tmp_sharedflag='-qmkshrobj'
11723	  tmp_addflag= ;;
11724	nvcc*)	# Cuda Compiler Driver 2.2
11725	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11726	  compiler_needs_object=yes
11727	  ;;
11728	esac
11729	case `$CC -V 2>&1 | sed 5q` in
11730	*Sun\ C*)			# Sun C 5.9
11731	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11732	  compiler_needs_object=yes
11733	  tmp_sharedflag='-G' ;;
11734	*Sun\ F*)			# Sun Fortran 8.3
11735	  tmp_sharedflag='-G' ;;
11736	esac
11737	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11738
11739        if test yes = "$supports_anon_versioning"; then
11740          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11741            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11742            echo "local: *; };" >> $output_objdir/$libname.ver~
11743            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11744        fi
11745
11746	case $cc_basename in
11747	tcc*)
11748	  export_dynamic_flag_spec='-rdynamic'
11749	  ;;
11750	xlf* | bgf* | bgxlf* | mpixlf*)
11751	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11752	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11753	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11754	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11755	  if test yes = "$supports_anon_versioning"; then
11756	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11757              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11758              echo "local: *; };" >> $output_objdir/$libname.ver~
11759              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11760	  fi
11761	  ;;
11762	esac
11763      else
11764        ld_shlibs=no
11765      fi
11766      ;;
11767
11768    netbsd*)
11769      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11770	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11771	wlarc=
11772      else
11773	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11774	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11775      fi
11776      ;;
11777
11778    solaris*)
11779      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11780	ld_shlibs=no
11781	cat <<_LT_EOF 1>&2
11782
11783*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11784*** create shared libraries on Solaris systems.  Therefore, libtool
11785*** is disabling shared libraries support.  We urge you to upgrade GNU
11786*** binutils to release 2.9.1 or newer.  Another option is to modify
11787*** your PATH or compiler configuration so that the native linker is
11788*** used, and then restart.
11789
11790_LT_EOF
11791      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11792	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11793	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11794      else
11795	ld_shlibs=no
11796      fi
11797      ;;
11798
11799    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11800      case `$LD -v 2>&1` in
11801        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11802	ld_shlibs=no
11803	cat <<_LT_EOF 1>&2
11804
11805*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11806*** reliably create shared libraries on SCO systems.  Therefore, libtool
11807*** is disabling shared libraries support.  We urge you to upgrade GNU
11808*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11809*** your PATH or compiler configuration so that the native linker is
11810*** used, and then restart.
11811
11812_LT_EOF
11813	;;
11814	*)
11815	  # For security reasons, it is highly recommended that you always
11816	  # use absolute paths for naming shared libraries, and exclude the
11817	  # DT_RUNPATH tag from executables and libraries.  But doing so
11818	  # requires that you compile everything twice, which is a pain.
11819	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11820	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11821	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11822	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11823	  else
11824	    ld_shlibs=no
11825	  fi
11826	;;
11827      esac
11828      ;;
11829
11830    sunos4*)
11831      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11832      wlarc=
11833      hardcode_direct=yes
11834      hardcode_shlibpath_var=no
11835      ;;
11836
11837    *)
11838      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11839	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11840	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11841      else
11842	ld_shlibs=no
11843      fi
11844      ;;
11845    esac
11846
11847    if test no = "$ld_shlibs"; then
11848      runpath_var=
11849      hardcode_libdir_flag_spec=
11850      export_dynamic_flag_spec=
11851      whole_archive_flag_spec=
11852    fi
11853  else
11854    # PORTME fill in a description of your system's linker (not GNU ld)
11855    case $host_os in
11856    aix3*)
11857      allow_undefined_flag=unsupported
11858      always_export_symbols=yes
11859      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11860      # Note: this linker hardcodes the directories in LIBPATH if there
11861      # are no directories specified by -L.
11862      hardcode_minus_L=yes
11863      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11864	# Neither direct hardcoding nor static linking is supported with a
11865	# broken collect2.
11866	hardcode_direct=unsupported
11867      fi
11868      ;;
11869
11870    aix[4-9]*)
11871      if test ia64 = "$host_cpu"; then
11872	# On IA64, the linker does run time linking by default, so we don't
11873	# have to do anything special.
11874	aix_use_runtimelinking=no
11875	exp_sym_flag='-Bexport'
11876	no_entry_flag=
11877      else
11878	# If we're using GNU nm, then we don't want the "-C" option.
11879	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11880	# Without the "-l" option, or with the "-B" option, AIX nm treats
11881	# weak defined symbols like other global defined symbols, whereas
11882	# GNU nm marks them as "W".
11883	# While the 'weak' keyword is ignored in the Export File, we need
11884	# it in the Import File for the 'aix-soname' feature, so we have
11885	# to replace the "-B" option with "-P" for AIX nm.
11886	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11887	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11888	else
11889	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11890	fi
11891	aix_use_runtimelinking=no
11892
11893	# Test if we are trying to use run time linking or normal
11894	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11895	# have runtime linking enabled, and use it for executables.
11896	# For shared libraries, we enable/disable runtime linking
11897	# depending on the kind of the shared library created -
11898	# when "with_aix_soname,aix_use_runtimelinking" is:
11899	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11900	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11901	#            lib.a           static archive
11902	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11903	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11904	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11905	#            lib.a(lib.so.V) shared, rtl:no
11906	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11907	#            lib.a           static archive
11908	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11909	  for ld_flag in $LDFLAGS; do
11910	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11911	    aix_use_runtimelinking=yes
11912	    break
11913	  fi
11914	  done
11915	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11916	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11917	    # so we don't have lib.a shared libs to link our executables.
11918	    # We have to force runtime linking in this case.
11919	    aix_use_runtimelinking=yes
11920	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11921	  fi
11922	  ;;
11923	esac
11924
11925	exp_sym_flag='-bexport'
11926	no_entry_flag='-bnoentry'
11927      fi
11928
11929      # When large executables or shared objects are built, AIX ld can
11930      # have problems creating the table of contents.  If linking a library
11931      # or program results in "error TOC overflow" add -mminimal-toc to
11932      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11933      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11934
11935      archive_cmds=''
11936      hardcode_direct=yes
11937      hardcode_direct_absolute=yes
11938      hardcode_libdir_separator=':'
11939      link_all_deplibs=yes
11940      file_list_spec='$wl-f,'
11941      case $with_aix_soname,$aix_use_runtimelinking in
11942      aix,*) ;; # traditional, no import file
11943      svr4,* | *,yes) # use import file
11944	# The Import File defines what to hardcode.
11945	hardcode_direct=no
11946	hardcode_direct_absolute=no
11947	;;
11948      esac
11949
11950      if test yes = "$GCC"; then
11951	case $host_os in aix4.[012]|aix4.[012].*)
11952	# We only want to do this on AIX 4.2 and lower, the check
11953	# below for broken collect2 doesn't work under 4.3+
11954	  collect2name=`$CC -print-prog-name=collect2`
11955	  if test -f "$collect2name" &&
11956	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11957	  then
11958	  # We have reworked collect2
11959	  :
11960	  else
11961	  # We have old collect2
11962	  hardcode_direct=unsupported
11963	  # It fails to find uninstalled libraries when the uninstalled
11964	  # path is not listed in the libpath.  Setting hardcode_minus_L
11965	  # to unsupported forces relinking
11966	  hardcode_minus_L=yes
11967	  hardcode_libdir_flag_spec='-L$libdir'
11968	  hardcode_libdir_separator=
11969	  fi
11970	  ;;
11971	esac
11972	shared_flag='-shared'
11973	if test yes = "$aix_use_runtimelinking"; then
11974	  shared_flag="$shared_flag "'$wl-G'
11975	fi
11976	# Need to ensure runtime linking is disabled for the traditional
11977	# shared library, or the linker may eventually find shared libraries
11978	# /with/ Import File - we do not want to mix them.
11979	shared_flag_aix='-shared'
11980	shared_flag_svr4='-shared $wl-G'
11981      else
11982	# not using gcc
11983	if test ia64 = "$host_cpu"; then
11984	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11985	# chokes on -Wl,-G. The following line is correct:
11986	  shared_flag='-G'
11987	else
11988	  if test yes = "$aix_use_runtimelinking"; then
11989	    shared_flag='$wl-G'
11990	  else
11991	    shared_flag='$wl-bM:SRE'
11992	  fi
11993	  shared_flag_aix='$wl-bM:SRE'
11994	  shared_flag_svr4='$wl-G'
11995	fi
11996      fi
11997
11998      export_dynamic_flag_spec='$wl-bexpall'
11999      # It seems that -bexpall does not export symbols beginning with
12000      # underscore (_), so it is better to generate a list of symbols to export.
12001      always_export_symbols=yes
12002      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12003	# Warning - without using the other runtime loading flags (-brtl),
12004	# -berok will link without error, but may produce a broken library.
12005	allow_undefined_flag='-berok'
12006        # Determine the default libpath from the value encoded in an
12007        # empty executable.
12008        if test set = "${lt_cv_aix_libpath+set}"; then
12009  aix_libpath=$lt_cv_aix_libpath
12010else
12011  if ${lt_cv_aix_libpath_+:} false; then :
12012  $as_echo_n "(cached) " >&6
12013else
12014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12015/* end confdefs.h.  */
12016
12017int
12018main ()
12019{
12020
12021  ;
12022  return 0;
12023}
12024_ACEOF
12025if ac_fn_c_try_link "$LINENO"; then :
12026
12027  lt_aix_libpath_sed='
12028      /Import File Strings/,/^$/ {
12029	  /^0/ {
12030	      s/^0  *\([^ ]*\) *$/\1/
12031	      p
12032	  }
12033      }'
12034  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12035  # Check for a 64-bit object if we didn't find anything.
12036  if test -z "$lt_cv_aix_libpath_"; then
12037    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12038  fi
12039fi
12040rm -f core conftest.err conftest.$ac_objext \
12041    conftest$ac_exeext conftest.$ac_ext
12042  if test -z "$lt_cv_aix_libpath_"; then
12043    lt_cv_aix_libpath_=/usr/lib:/lib
12044  fi
12045
12046fi
12047
12048  aix_libpath=$lt_cv_aix_libpath_
12049fi
12050
12051        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12052        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12053      else
12054	if test ia64 = "$host_cpu"; then
12055	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12056	  allow_undefined_flag="-z nodefs"
12057	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
12058	else
12059	 # Determine the default libpath from the value encoded in an
12060	 # empty executable.
12061	 if test set = "${lt_cv_aix_libpath+set}"; then
12062  aix_libpath=$lt_cv_aix_libpath
12063else
12064  if ${lt_cv_aix_libpath_+:} false; then :
12065  $as_echo_n "(cached) " >&6
12066else
12067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068/* end confdefs.h.  */
12069
12070int
12071main ()
12072{
12073
12074  ;
12075  return 0;
12076}
12077_ACEOF
12078if ac_fn_c_try_link "$LINENO"; then :
12079
12080  lt_aix_libpath_sed='
12081      /Import File Strings/,/^$/ {
12082	  /^0/ {
12083	      s/^0  *\([^ ]*\) *$/\1/
12084	      p
12085	  }
12086      }'
12087  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12088  # Check for a 64-bit object if we didn't find anything.
12089  if test -z "$lt_cv_aix_libpath_"; then
12090    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12091  fi
12092fi
12093rm -f core conftest.err conftest.$ac_objext \
12094    conftest$ac_exeext conftest.$ac_ext
12095  if test -z "$lt_cv_aix_libpath_"; then
12096    lt_cv_aix_libpath_=/usr/lib:/lib
12097  fi
12098
12099fi
12100
12101  aix_libpath=$lt_cv_aix_libpath_
12102fi
12103
12104	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12105	  # Warning - without using the other run time loading flags,
12106	  # -berok will link without error, but may produce a broken library.
12107	  no_undefined_flag=' $wl-bernotok'
12108	  allow_undefined_flag=' $wl-berok'
12109	  if test yes = "$with_gnu_ld"; then
12110	    # We only use this code for GNU lds that support --whole-archive.
12111	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12112	  else
12113	    # Exported symbols can be pulled into shared objects from archives
12114	    whole_archive_flag_spec='$convenience'
12115	  fi
12116	  archive_cmds_need_lc=yes
12117	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12118	  # -brtl affects multiple linker settings, -berok does not and is overridden later
12119	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12120	  if test svr4 != "$with_aix_soname"; then
12121	    # This is similar to how AIX traditionally builds its shared libraries.
12122	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12123	  fi
12124	  if test aix != "$with_aix_soname"; then
12125	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12126	  else
12127	    # used by -dlpreopen to get the symbols
12128	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12129	  fi
12130	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12131	fi
12132      fi
12133      ;;
12134
12135    amigaos*)
12136      case $host_cpu in
12137      powerpc)
12138            # see comment about AmigaOS4 .so support
12139            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12140            archive_expsym_cmds=''
12141        ;;
12142      m68k)
12143            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12144            hardcode_libdir_flag_spec='-L$libdir'
12145            hardcode_minus_L=yes
12146        ;;
12147      esac
12148      ;;
12149
12150    bsdi[45]*)
12151      export_dynamic_flag_spec=-rdynamic
12152      ;;
12153
12154    cygwin* | mingw* | pw32* | cegcc*)
12155      # When not using gcc, we currently assume that we are using
12156      # Microsoft Visual C++.
12157      # hardcode_libdir_flag_spec is actually meaningless, as there is
12158      # no search path for DLLs.
12159      case $cc_basename in
12160      cl*)
12161	# Native MSVC
12162	hardcode_libdir_flag_spec=' '
12163	allow_undefined_flag=unsupported
12164	always_export_symbols=yes
12165	file_list_spec='@'
12166	# Tell ltmain to make .lib files, not .a files.
12167	libext=lib
12168	# Tell ltmain to make .dll files, not .so files.
12169	shrext_cmds=.dll
12170	# FIXME: Setting linknames here is a bad hack.
12171	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12172	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12173            cp "$export_symbols" "$output_objdir/$soname.def";
12174            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12175          else
12176            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12177          fi~
12178          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12179          linknames='
12180	# The linker will not automatically build a static lib if we build a DLL.
12181	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12182	enable_shared_with_static_runtimes=yes
12183	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12184	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12185	# Don't use ranlib
12186	old_postinstall_cmds='chmod 644 $oldlib'
12187	postlink_cmds='lt_outputfile="@OUTPUT@"~
12188          lt_tool_outputfile="@TOOL_OUTPUT@"~
12189          case $lt_outputfile in
12190            *.exe|*.EXE) ;;
12191            *)
12192              lt_outputfile=$lt_outputfile.exe
12193              lt_tool_outputfile=$lt_tool_outputfile.exe
12194              ;;
12195          esac~
12196          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12197            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12198            $RM "$lt_outputfile.manifest";
12199          fi'
12200	;;
12201      *)
12202	# Assume MSVC wrapper
12203	hardcode_libdir_flag_spec=' '
12204	allow_undefined_flag=unsupported
12205	# Tell ltmain to make .lib files, not .a files.
12206	libext=lib
12207	# Tell ltmain to make .dll files, not .so files.
12208	shrext_cmds=.dll
12209	# FIXME: Setting linknames here is a bad hack.
12210	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12211	# The linker will automatically build a .lib file if we build a DLL.
12212	old_archive_from_new_cmds='true'
12213	# FIXME: Should let the user specify the lib program.
12214	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12215	enable_shared_with_static_runtimes=yes
12216	;;
12217      esac
12218      ;;
12219
12220    darwin* | rhapsody*)
12221
12222
12223  archive_cmds_need_lc=no
12224  hardcode_direct=no
12225  hardcode_automatic=yes
12226  hardcode_shlibpath_var=unsupported
12227  if test yes = "$lt_cv_ld_force_load"; then
12228    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12229
12230  else
12231    whole_archive_flag_spec=''
12232  fi
12233  link_all_deplibs=yes
12234  allow_undefined_flag=$_lt_dar_allow_undefined
12235  case $cc_basename in
12236     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12237     *) _lt_dar_can_shared=$GCC ;;
12238  esac
12239  if test yes = "$_lt_dar_can_shared"; then
12240    output_verbose_link_cmd=func_echo_all
12241    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12242    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12243    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
12244    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
12245
12246  else
12247  ld_shlibs=no
12248  fi
12249
12250      ;;
12251
12252    dgux*)
12253      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12254      hardcode_libdir_flag_spec='-L$libdir'
12255      hardcode_shlibpath_var=no
12256      ;;
12257
12258    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12259    # support.  Future versions do this automatically, but an explicit c++rt0.o
12260    # does not break anything, and helps significantly (at the cost of a little
12261    # extra space).
12262    freebsd2.2*)
12263      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12264      hardcode_libdir_flag_spec='-R$libdir'
12265      hardcode_direct=yes
12266      hardcode_shlibpath_var=no
12267      ;;
12268
12269    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12270    freebsd2.*)
12271      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12272      hardcode_direct=yes
12273      hardcode_minus_L=yes
12274      hardcode_shlibpath_var=no
12275      ;;
12276
12277    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12278    freebsd* | dragonfly*)
12279      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12280      hardcode_libdir_flag_spec='-R$libdir'
12281      hardcode_direct=yes
12282      hardcode_shlibpath_var=no
12283      ;;
12284
12285    hpux9*)
12286      if test yes = "$GCC"; then
12287	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12288      else
12289	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12290      fi
12291      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12292      hardcode_libdir_separator=:
12293      hardcode_direct=yes
12294
12295      # hardcode_minus_L: Not really in the search PATH,
12296      # but as the default location of the library.
12297      hardcode_minus_L=yes
12298      export_dynamic_flag_spec='$wl-E'
12299      ;;
12300
12301    hpux10*)
12302      if test yes,no = "$GCC,$with_gnu_ld"; then
12303	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12304      else
12305	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12306      fi
12307      if test no = "$with_gnu_ld"; then
12308	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12309	hardcode_libdir_separator=:
12310	hardcode_direct=yes
12311	hardcode_direct_absolute=yes
12312	export_dynamic_flag_spec='$wl-E'
12313	# hardcode_minus_L: Not really in the search PATH,
12314	# but as the default location of the library.
12315	hardcode_minus_L=yes
12316      fi
12317      ;;
12318
12319    hpux11*)
12320      if test yes,no = "$GCC,$with_gnu_ld"; then
12321	case $host_cpu in
12322	hppa*64*)
12323	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12324	  ;;
12325	ia64*)
12326	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12327	  ;;
12328	*)
12329	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12330	  ;;
12331	esac
12332      else
12333	case $host_cpu in
12334	hppa*64*)
12335	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12336	  ;;
12337	ia64*)
12338	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12339	  ;;
12340	*)
12341
12342	  # Older versions of the 11.00 compiler do not understand -b yet
12343	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12344	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12345$as_echo_n "checking if $CC understands -b... " >&6; }
12346if ${lt_cv_prog_compiler__b+:} false; then :
12347  $as_echo_n "(cached) " >&6
12348else
12349  lt_cv_prog_compiler__b=no
12350   save_LDFLAGS=$LDFLAGS
12351   LDFLAGS="$LDFLAGS -b"
12352   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12353   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12354     # The linker can only warn and ignore the option if not recognized
12355     # So say no if there are warnings
12356     if test -s conftest.err; then
12357       # Append any errors to the config.log.
12358       cat conftest.err 1>&5
12359       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12360       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12361       if diff conftest.exp conftest.er2 >/dev/null; then
12362         lt_cv_prog_compiler__b=yes
12363       fi
12364     else
12365       lt_cv_prog_compiler__b=yes
12366     fi
12367   fi
12368   $RM -r conftest*
12369   LDFLAGS=$save_LDFLAGS
12370
12371fi
12372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12373$as_echo "$lt_cv_prog_compiler__b" >&6; }
12374
12375if test yes = "$lt_cv_prog_compiler__b"; then
12376    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12377else
12378    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12379fi
12380
12381	  ;;
12382	esac
12383      fi
12384      if test no = "$with_gnu_ld"; then
12385	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12386	hardcode_libdir_separator=:
12387
12388	case $host_cpu in
12389	hppa*64*|ia64*)
12390	  hardcode_direct=no
12391	  hardcode_shlibpath_var=no
12392	  ;;
12393	*)
12394	  hardcode_direct=yes
12395	  hardcode_direct_absolute=yes
12396	  export_dynamic_flag_spec='$wl-E'
12397
12398	  # hardcode_minus_L: Not really in the search PATH,
12399	  # but as the default location of the library.
12400	  hardcode_minus_L=yes
12401	  ;;
12402	esac
12403      fi
12404      ;;
12405
12406    irix5* | irix6* | nonstopux*)
12407      if test yes = "$GCC"; then
12408	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12409	# Try to use the -exported_symbol ld option, if it does not
12410	# work, assume that -exports_file does not work either and
12411	# implicitly export all symbols.
12412	# This should be the same for all languages, so no per-tag cache variable.
12413	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12414$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12415if ${lt_cv_irix_exported_symbol+:} false; then :
12416  $as_echo_n "(cached) " >&6
12417else
12418  save_LDFLAGS=$LDFLAGS
12419	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12420	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421/* end confdefs.h.  */
12422int foo (void) { return 0; }
12423_ACEOF
12424if ac_fn_c_try_link "$LINENO"; then :
12425  lt_cv_irix_exported_symbol=yes
12426else
12427  lt_cv_irix_exported_symbol=no
12428fi
12429rm -f core conftest.err conftest.$ac_objext \
12430    conftest$ac_exeext conftest.$ac_ext
12431           LDFLAGS=$save_LDFLAGS
12432fi
12433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12434$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12435	if test yes = "$lt_cv_irix_exported_symbol"; then
12436          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
12437	fi
12438      else
12439	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12440	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
12441      fi
12442      archive_cmds_need_lc='no'
12443      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12444      hardcode_libdir_separator=:
12445      inherit_rpath=yes
12446      link_all_deplibs=yes
12447      ;;
12448
12449    linux*)
12450      case $cc_basename in
12451      tcc*)
12452	# Fabrice Bellard et al's Tiny C Compiler
12453	ld_shlibs=yes
12454	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12455	;;
12456      esac
12457      ;;
12458
12459    netbsd*)
12460      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12461	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12462      else
12463	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12464      fi
12465      hardcode_libdir_flag_spec='-R$libdir'
12466      hardcode_direct=yes
12467      hardcode_shlibpath_var=no
12468      ;;
12469
12470    newsos6)
12471      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12472      hardcode_direct=yes
12473      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12474      hardcode_libdir_separator=:
12475      hardcode_shlibpath_var=no
12476      ;;
12477
12478    *nto* | *qnx*)
12479      ;;
12480
12481    openbsd* | bitrig*)
12482      if test -f /usr/libexec/ld.so; then
12483	hardcode_direct=yes
12484	hardcode_shlibpath_var=no
12485	hardcode_direct_absolute=yes
12486	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12487	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12488	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12489	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12490	  export_dynamic_flag_spec='$wl-E'
12491	else
12492	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12493	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12494	fi
12495      else
12496	ld_shlibs=no
12497      fi
12498      ;;
12499
12500    os2*)
12501      hardcode_libdir_flag_spec='-L$libdir'
12502      hardcode_minus_L=yes
12503      allow_undefined_flag=unsupported
12504      shrext_cmds=.dll
12505      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12506	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12507	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12508	$ECHO EXPORTS >> $output_objdir/$libname.def~
12509	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12510	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12511	emximp -o $lib $output_objdir/$libname.def'
12512      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12513	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12514	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12515	$ECHO EXPORTS >> $output_objdir/$libname.def~
12516	prefix_cmds="$SED"~
12517	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12518	  prefix_cmds="$prefix_cmds -e 1d";
12519	fi~
12520	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12521	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12522	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12523	emximp -o $lib $output_objdir/$libname.def'
12524      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12525      enable_shared_with_static_runtimes=yes
12526      ;;
12527
12528    osf3*)
12529      if test yes = "$GCC"; then
12530	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12531	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12532      else
12533	allow_undefined_flag=' -expect_unresolved \*'
12534	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12535      fi
12536      archive_cmds_need_lc='no'
12537      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12538      hardcode_libdir_separator=:
12539      ;;
12540
12541    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12542      if test yes = "$GCC"; then
12543	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12544	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12545	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12546      else
12547	allow_undefined_flag=' -expect_unresolved \*'
12548	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12549	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12550          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
12551
12552	# Both c and cxx compiler support -rpath directly
12553	hardcode_libdir_flag_spec='-rpath $libdir'
12554      fi
12555      archive_cmds_need_lc='no'
12556      hardcode_libdir_separator=:
12557      ;;
12558
12559    solaris*)
12560      no_undefined_flag=' -z defs'
12561      if test yes = "$GCC"; then
12562	wlarc='$wl'
12563	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12564	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12565          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12566      else
12567	case `$CC -V 2>&1` in
12568	*"Compilers 5.0"*)
12569	  wlarc=''
12570	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12571	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12572            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12573	  ;;
12574	*)
12575	  wlarc='$wl'
12576	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12577	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12578            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12579	  ;;
12580	esac
12581      fi
12582      hardcode_libdir_flag_spec='-R$libdir'
12583      hardcode_shlibpath_var=no
12584      case $host_os in
12585      solaris2.[0-5] | solaris2.[0-5].*) ;;
12586      *)
12587	# The compiler driver will combine and reorder linker options,
12588	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12589	# but is careful enough not to reorder.
12590	# Supported since Solaris 2.6 (maybe 2.5.1?)
12591	if test yes = "$GCC"; then
12592	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12593	else
12594	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12595	fi
12596	;;
12597      esac
12598      link_all_deplibs=yes
12599      ;;
12600
12601    sunos4*)
12602      if test sequent = "$host_vendor"; then
12603	# Use $CC to link under sequent, because it throws in some extra .o
12604	# files that make .init and .fini sections work.
12605	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12606      else
12607	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12608      fi
12609      hardcode_libdir_flag_spec='-L$libdir'
12610      hardcode_direct=yes
12611      hardcode_minus_L=yes
12612      hardcode_shlibpath_var=no
12613      ;;
12614
12615    sysv4)
12616      case $host_vendor in
12617	sni)
12618	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12619	  hardcode_direct=yes # is this really true???
12620	;;
12621	siemens)
12622	  ## LD is ld it makes a PLAMLIB
12623	  ## CC just makes a GrossModule.
12624	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12625	  reload_cmds='$CC -r -o $output$reload_objs'
12626	  hardcode_direct=no
12627        ;;
12628	motorola)
12629	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12630	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12631	;;
12632      esac
12633      runpath_var='LD_RUN_PATH'
12634      hardcode_shlibpath_var=no
12635      ;;
12636
12637    sysv4.3*)
12638      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12639      hardcode_shlibpath_var=no
12640      export_dynamic_flag_spec='-Bexport'
12641      ;;
12642
12643    sysv4*MP*)
12644      if test -d /usr/nec; then
12645	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12646	hardcode_shlibpath_var=no
12647	runpath_var=LD_RUN_PATH
12648	hardcode_runpath_var=yes
12649	ld_shlibs=yes
12650      fi
12651      ;;
12652
12653    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12654      no_undefined_flag='$wl-z,text'
12655      archive_cmds_need_lc=no
12656      hardcode_shlibpath_var=no
12657      runpath_var='LD_RUN_PATH'
12658
12659      if test yes = "$GCC"; then
12660	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12661	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12662      else
12663	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12664	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12665      fi
12666      ;;
12667
12668    sysv5* | sco3.2v5* | sco5v6*)
12669      # Note: We CANNOT use -z defs as we might desire, because we do not
12670      # link with -lc, and that would cause any symbols used from libc to
12671      # always be unresolved, which means just about no library would
12672      # ever link correctly.  If we're not using GNU ld we use -z text
12673      # though, which does catch some bad symbols but isn't as heavy-handed
12674      # as -z defs.
12675      no_undefined_flag='$wl-z,text'
12676      allow_undefined_flag='$wl-z,nodefs'
12677      archive_cmds_need_lc=no
12678      hardcode_shlibpath_var=no
12679      hardcode_libdir_flag_spec='$wl-R,$libdir'
12680      hardcode_libdir_separator=':'
12681      link_all_deplibs=yes
12682      export_dynamic_flag_spec='$wl-Bexport'
12683      runpath_var='LD_RUN_PATH'
12684
12685      if test yes = "$GCC"; then
12686	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12687	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12688      else
12689	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12690	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12691      fi
12692      ;;
12693
12694    uts4*)
12695      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12696      hardcode_libdir_flag_spec='-L$libdir'
12697      hardcode_shlibpath_var=no
12698      ;;
12699
12700    *)
12701      ld_shlibs=no
12702      ;;
12703    esac
12704
12705    if test sni = "$host_vendor"; then
12706      case $host in
12707      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12708	export_dynamic_flag_spec='$wl-Blargedynsym'
12709	;;
12710      esac
12711    fi
12712  fi
12713
12714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12715$as_echo "$ld_shlibs" >&6; }
12716test no = "$ld_shlibs" && can_build_shared=no
12717
12718with_gnu_ld=$with_gnu_ld
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734#
12735# Do we need to explicitly link libc?
12736#
12737case "x$archive_cmds_need_lc" in
12738x|xyes)
12739  # Assume -lc should be added
12740  archive_cmds_need_lc=yes
12741
12742  if test yes,yes = "$GCC,$enable_shared"; then
12743    case $archive_cmds in
12744    *'~'*)
12745      # FIXME: we may have to deal with multi-command sequences.
12746      ;;
12747    '$CC '*)
12748      # Test whether the compiler implicitly links with -lc since on some
12749      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12750      # to ld, don't add -lc before -lgcc.
12751      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12752$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12753if ${lt_cv_archive_cmds_need_lc+:} false; then :
12754  $as_echo_n "(cached) " >&6
12755else
12756  $RM conftest*
12757	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12758
12759	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12760  (eval $ac_compile) 2>&5
12761  ac_status=$?
12762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12763  test $ac_status = 0; } 2>conftest.err; then
12764	  soname=conftest
12765	  lib=conftest
12766	  libobjs=conftest.$ac_objext
12767	  deplibs=
12768	  wl=$lt_prog_compiler_wl
12769	  pic_flag=$lt_prog_compiler_pic
12770	  compiler_flags=-v
12771	  linker_flags=-v
12772	  verstring=
12773	  output_objdir=.
12774	  libname=conftest
12775	  lt_save_allow_undefined_flag=$allow_undefined_flag
12776	  allow_undefined_flag=
12777	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12778  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12779  ac_status=$?
12780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12781  test $ac_status = 0; }
12782	  then
12783	    lt_cv_archive_cmds_need_lc=no
12784	  else
12785	    lt_cv_archive_cmds_need_lc=yes
12786	  fi
12787	  allow_undefined_flag=$lt_save_allow_undefined_flag
12788	else
12789	  cat conftest.err 1>&5
12790	fi
12791	$RM conftest*
12792
12793fi
12794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12795$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12796      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12797      ;;
12798    esac
12799  fi
12800  ;;
12801esac
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12955$as_echo_n "checking dynamic linker characteristics... " >&6; }
12956
12957if test yes = "$GCC"; then
12958  case $host_os in
12959    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12960    *) lt_awk_arg='/^libraries:/' ;;
12961  esac
12962  case $host_os in
12963    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12964    *) lt_sed_strip_eq='s|=/|/|g' ;;
12965  esac
12966  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12967  case $lt_search_path_spec in
12968  *\;*)
12969    # if the path contains ";" then we assume it to be the separator
12970    # otherwise default to the standard path separator (i.e. ":") - it is
12971    # assumed that no part of a normal pathname contains ";" but that should
12972    # okay in the real world where ";" in dirpaths is itself problematic.
12973    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12974    ;;
12975  *)
12976    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12977    ;;
12978  esac
12979  # Ok, now we have the path, separated by spaces, we can step through it
12980  # and add multilib dir if necessary...
12981  lt_tmp_lt_search_path_spec=
12982  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12983  # ...but if some path component already ends with the multilib dir we assume
12984  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12985  case "$lt_multi_os_dir; $lt_search_path_spec " in
12986  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12987    lt_multi_os_dir=
12988    ;;
12989  esac
12990  for lt_sys_path in $lt_search_path_spec; do
12991    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12992      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12993    elif test -n "$lt_multi_os_dir"; then
12994      test -d "$lt_sys_path" && \
12995	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12996    fi
12997  done
12998  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12999BEGIN {RS = " "; FS = "/|\n";} {
13000  lt_foo = "";
13001  lt_count = 0;
13002  for (lt_i = NF; lt_i > 0; lt_i--) {
13003    if ($lt_i != "" && $lt_i != ".") {
13004      if ($lt_i == "..") {
13005        lt_count++;
13006      } else {
13007        if (lt_count == 0) {
13008          lt_foo = "/" $lt_i lt_foo;
13009        } else {
13010          lt_count--;
13011        }
13012      }
13013    }
13014  }
13015  if (lt_foo != "") { lt_freq[lt_foo]++; }
13016  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13017}'`
13018  # AWK program above erroneously prepends '/' to C:/dos/paths
13019  # for these hosts.
13020  case $host_os in
13021    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13022      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13023  esac
13024  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13025else
13026  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13027fi
13028library_names_spec=
13029libname_spec='lib$name'
13030soname_spec=
13031shrext_cmds=.so
13032postinstall_cmds=
13033postuninstall_cmds=
13034finish_cmds=
13035finish_eval=
13036shlibpath_var=
13037shlibpath_overrides_runpath=unknown
13038version_type=none
13039dynamic_linker="$host_os ld.so"
13040sys_lib_dlsearch_path_spec="/lib /usr/lib"
13041need_lib_prefix=unknown
13042hardcode_into_libs=no
13043
13044# when you set need_version to no, make sure it does not cause -set_version
13045# flags to be left without arguments
13046need_version=unknown
13047
13048
13049
13050case $host_os in
13051aix3*)
13052  version_type=linux # correct to gnu/linux during the next big refactor
13053  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13054  shlibpath_var=LIBPATH
13055
13056  # AIX 3 has no versioning support, so we append a major version to the name.
13057  soname_spec='$libname$release$shared_ext$major'
13058  ;;
13059
13060aix[4-9]*)
13061  version_type=linux # correct to gnu/linux during the next big refactor
13062  need_lib_prefix=no
13063  need_version=no
13064  hardcode_into_libs=yes
13065  if test ia64 = "$host_cpu"; then
13066    # AIX 5 supports IA64
13067    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13068    shlibpath_var=LD_LIBRARY_PATH
13069  else
13070    # With GCC up to 2.95.x, collect2 would create an import file
13071    # for dependence libraries.  The import file would start with
13072    # the line '#! .'.  This would cause the generated library to
13073    # depend on '.', always an invalid library.  This was fixed in
13074    # development snapshots of GCC prior to 3.0.
13075    case $host_os in
13076      aix4 | aix4.[01] | aix4.[01].*)
13077      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13078	   echo ' yes '
13079	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13080	:
13081      else
13082	can_build_shared=no
13083      fi
13084      ;;
13085    esac
13086    # Using Import Files as archive members, it is possible to support
13087    # filename-based versioning of shared library archives on AIX. While
13088    # this would work for both with and without runtime linking, it will
13089    # prevent static linking of such archives. So we do filename-based
13090    # shared library versioning with .so extension only, which is used
13091    # when both runtime linking and shared linking is enabled.
13092    # Unfortunately, runtime linking may impact performance, so we do
13093    # not want this to be the default eventually. Also, we use the
13094    # versioned .so libs for executables only if there is the -brtl
13095    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13096    # To allow for filename-based versioning support, we need to create
13097    # libNAME.so.V as an archive file, containing:
13098    # *) an Import File, referring to the versioned filename of the
13099    #    archive as well as the shared archive member, telling the
13100    #    bitwidth (32 or 64) of that shared object, and providing the
13101    #    list of exported symbols of that shared object, eventually
13102    #    decorated with the 'weak' keyword
13103    # *) the shared object with the F_LOADONLY flag set, to really avoid
13104    #    it being seen by the linker.
13105    # At run time we better use the real file rather than another symlink,
13106    # but for link time we create the symlink libNAME.so -> libNAME.so.V
13107
13108    case $with_aix_soname,$aix_use_runtimelinking in
13109    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13110    # soname into executable. Probably we can add versioning support to
13111    # collect2, so additional links can be useful in future.
13112    aix,yes) # traditional libtool
13113      dynamic_linker='AIX unversionable lib.so'
13114      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13115      # instead of lib<name>.a to let people know that these are not
13116      # typical AIX shared libraries.
13117      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13118      ;;
13119    aix,no) # traditional AIX only
13120      dynamic_linker='AIX lib.a(lib.so.V)'
13121      # We preserve .a as extension for shared libraries through AIX4.2
13122      # and later when we are not doing run time linking.
13123      library_names_spec='$libname$release.a $libname.a'
13124      soname_spec='$libname$release$shared_ext$major'
13125      ;;
13126    svr4,*) # full svr4 only
13127      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13128      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13129      # We do not specify a path in Import Files, so LIBPATH fires.
13130      shlibpath_overrides_runpath=yes
13131      ;;
13132    *,yes) # both, prefer svr4
13133      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13134      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13135      # unpreferred sharedlib libNAME.a needs extra handling
13136      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13137      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13138      # We do not specify a path in Import Files, so LIBPATH fires.
13139      shlibpath_overrides_runpath=yes
13140      ;;
13141    *,no) # both, prefer aix
13142      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13143      library_names_spec='$libname$release.a $libname.a'
13144      soname_spec='$libname$release$shared_ext$major'
13145      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13146      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13147      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13148      ;;
13149    esac
13150    shlibpath_var=LIBPATH
13151  fi
13152  ;;
13153
13154amigaos*)
13155  case $host_cpu in
13156  powerpc)
13157    # Since July 2007 AmigaOS4 officially supports .so libraries.
13158    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13159    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13160    ;;
13161  m68k)
13162    library_names_spec='$libname.ixlibrary $libname.a'
13163    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13164    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13165    ;;
13166  esac
13167  ;;
13168
13169beos*)
13170  library_names_spec='$libname$shared_ext'
13171  dynamic_linker="$host_os ld.so"
13172  shlibpath_var=LIBRARY_PATH
13173  ;;
13174
13175bsdi[45]*)
13176  version_type=linux # correct to gnu/linux during the next big refactor
13177  need_version=no
13178  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13179  soname_spec='$libname$release$shared_ext$major'
13180  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13181  shlibpath_var=LD_LIBRARY_PATH
13182  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13183  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13184  # the default ld.so.conf also contains /usr/contrib/lib and
13185  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13186  # libtool to hard-code these into programs
13187  ;;
13188
13189cygwin* | mingw* | pw32* | cegcc*)
13190  version_type=windows
13191  shrext_cmds=.dll
13192  need_version=no
13193  need_lib_prefix=no
13194
13195  case $GCC,$cc_basename in
13196  yes,*)
13197    # gcc
13198    library_names_spec='$libname.dll.a'
13199    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13200    postinstall_cmds='base_file=`basename \$file`~
13201      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13202      dldir=$destdir/`dirname \$dlpath`~
13203      test -d \$dldir || mkdir -p \$dldir~
13204      $install_prog $dir/$dlname \$dldir/$dlname~
13205      chmod a+x \$dldir/$dlname~
13206      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13207        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13208      fi'
13209    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13210      dlpath=$dir/\$dldll~
13211       $RM \$dlpath'
13212    shlibpath_overrides_runpath=yes
13213
13214    case $host_os in
13215    cygwin*)
13216      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13217      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13218
13219      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13220      ;;
13221    mingw* | cegcc*)
13222      # MinGW DLLs use traditional 'lib' prefix
13223      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13224      ;;
13225    pw32*)
13226      # pw32 DLLs use 'pw' prefix rather than 'lib'
13227      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13228      ;;
13229    esac
13230    dynamic_linker='Win32 ld.exe'
13231    ;;
13232
13233  *,cl*)
13234    # Native MSVC
13235    libname_spec='$name'
13236    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13237    library_names_spec='$libname.dll.lib'
13238
13239    case $build_os in
13240    mingw*)
13241      sys_lib_search_path_spec=
13242      lt_save_ifs=$IFS
13243      IFS=';'
13244      for lt_path in $LIB
13245      do
13246        IFS=$lt_save_ifs
13247        # Let DOS variable expansion print the short 8.3 style file name.
13248        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13249        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13250      done
13251      IFS=$lt_save_ifs
13252      # Convert to MSYS style.
13253      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13254      ;;
13255    cygwin*)
13256      # Convert to unix form, then to dos form, then back to unix form
13257      # but this time dos style (no spaces!) so that the unix form looks
13258      # like /cygdrive/c/PROGRA~1:/cygdr...
13259      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13260      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13261      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13262      ;;
13263    *)
13264      sys_lib_search_path_spec=$LIB
13265      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13266        # It is most probably a Windows format PATH.
13267        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13268      else
13269        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13270      fi
13271      # FIXME: find the short name or the path components, as spaces are
13272      # common. (e.g. "Program Files" -> "PROGRA~1")
13273      ;;
13274    esac
13275
13276    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13277    postinstall_cmds='base_file=`basename \$file`~
13278      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13279      dldir=$destdir/`dirname \$dlpath`~
13280      test -d \$dldir || mkdir -p \$dldir~
13281      $install_prog $dir/$dlname \$dldir/$dlname'
13282    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13283      dlpath=$dir/\$dldll~
13284       $RM \$dlpath'
13285    shlibpath_overrides_runpath=yes
13286    dynamic_linker='Win32 link.exe'
13287    ;;
13288
13289  *)
13290    # Assume MSVC wrapper
13291    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13292    dynamic_linker='Win32 ld.exe'
13293    ;;
13294  esac
13295  # FIXME: first we should search . and the directory the executable is in
13296  shlibpath_var=PATH
13297  ;;
13298
13299darwin* | rhapsody*)
13300  dynamic_linker="$host_os dyld"
13301  version_type=darwin
13302  need_lib_prefix=no
13303  need_version=no
13304  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13305  soname_spec='$libname$release$major$shared_ext'
13306  shlibpath_overrides_runpath=yes
13307  shlibpath_var=DYLD_LIBRARY_PATH
13308  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13309
13310  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13311  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13312  ;;
13313
13314dgux*)
13315  version_type=linux # correct to gnu/linux during the next big refactor
13316  need_lib_prefix=no
13317  need_version=no
13318  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13319  soname_spec='$libname$release$shared_ext$major'
13320  shlibpath_var=LD_LIBRARY_PATH
13321  ;;
13322
13323freebsd* | dragonfly*)
13324  # DragonFly does not have aout.  When/if they implement a new
13325  # versioning mechanism, adjust this.
13326  if test -x /usr/bin/objformat; then
13327    objformat=`/usr/bin/objformat`
13328  else
13329    case $host_os in
13330    freebsd[23].*) objformat=aout ;;
13331    *) objformat=elf ;;
13332    esac
13333  fi
13334  version_type=freebsd-$objformat
13335  case $version_type in
13336    freebsd-elf*)
13337      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13338      soname_spec='$libname$release$shared_ext$major'
13339      need_version=no
13340      need_lib_prefix=no
13341      ;;
13342    freebsd-*)
13343      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13344      need_version=yes
13345      ;;
13346  esac
13347  shlibpath_var=LD_LIBRARY_PATH
13348  case $host_os in
13349  freebsd2.*)
13350    shlibpath_overrides_runpath=yes
13351    ;;
13352  freebsd3.[01]* | freebsdelf3.[01]*)
13353    shlibpath_overrides_runpath=yes
13354    hardcode_into_libs=yes
13355    ;;
13356  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13357  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13358    shlibpath_overrides_runpath=no
13359    hardcode_into_libs=yes
13360    ;;
13361  *) # from 4.6 on, and DragonFly
13362    shlibpath_overrides_runpath=yes
13363    hardcode_into_libs=yes
13364    ;;
13365  esac
13366  ;;
13367
13368haiku*)
13369  version_type=linux # correct to gnu/linux during the next big refactor
13370  need_lib_prefix=no
13371  need_version=no
13372  dynamic_linker="$host_os runtime_loader"
13373  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13374  soname_spec='$libname$release$shared_ext$major'
13375  shlibpath_var=LIBRARY_PATH
13376  shlibpath_overrides_runpath=no
13377  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13378  hardcode_into_libs=yes
13379  ;;
13380
13381hpux9* | hpux10* | hpux11*)
13382  # Give a soname corresponding to the major version so that dld.sl refuses to
13383  # link against other versions.
13384  version_type=sunos
13385  need_lib_prefix=no
13386  need_version=no
13387  case $host_cpu in
13388  ia64*)
13389    shrext_cmds='.so'
13390    hardcode_into_libs=yes
13391    dynamic_linker="$host_os dld.so"
13392    shlibpath_var=LD_LIBRARY_PATH
13393    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13394    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13395    soname_spec='$libname$release$shared_ext$major'
13396    if test 32 = "$HPUX_IA64_MODE"; then
13397      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13398      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13399    else
13400      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13401      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13402    fi
13403    ;;
13404  hppa*64*)
13405    shrext_cmds='.sl'
13406    hardcode_into_libs=yes
13407    dynamic_linker="$host_os dld.sl"
13408    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13409    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13410    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13411    soname_spec='$libname$release$shared_ext$major'
13412    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13413    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13414    ;;
13415  *)
13416    shrext_cmds='.sl'
13417    dynamic_linker="$host_os dld.sl"
13418    shlibpath_var=SHLIB_PATH
13419    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13420    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13421    soname_spec='$libname$release$shared_ext$major'
13422    ;;
13423  esac
13424  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13425  postinstall_cmds='chmod 555 $lib'
13426  # or fails outright, so override atomically:
13427  install_override_mode=555
13428  ;;
13429
13430interix[3-9]*)
13431  version_type=linux # correct to gnu/linux during the next big refactor
13432  need_lib_prefix=no
13433  need_version=no
13434  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13435  soname_spec='$libname$release$shared_ext$major'
13436  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13437  shlibpath_var=LD_LIBRARY_PATH
13438  shlibpath_overrides_runpath=no
13439  hardcode_into_libs=yes
13440  ;;
13441
13442irix5* | irix6* | nonstopux*)
13443  case $host_os in
13444    nonstopux*) version_type=nonstopux ;;
13445    *)
13446	if test yes = "$lt_cv_prog_gnu_ld"; then
13447		version_type=linux # correct to gnu/linux during the next big refactor
13448	else
13449		version_type=irix
13450	fi ;;
13451  esac
13452  need_lib_prefix=no
13453  need_version=no
13454  soname_spec='$libname$release$shared_ext$major'
13455  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13456  case $host_os in
13457  irix5* | nonstopux*)
13458    libsuff= shlibsuff=
13459    ;;
13460  *)
13461    case $LD in # libtool.m4 will add one of these switches to LD
13462    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13463      libsuff= shlibsuff= libmagic=32-bit;;
13464    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13465      libsuff=32 shlibsuff=N32 libmagic=N32;;
13466    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13467      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13468    *) libsuff= shlibsuff= libmagic=never-match;;
13469    esac
13470    ;;
13471  esac
13472  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13473  shlibpath_overrides_runpath=no
13474  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13475  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13476  hardcode_into_libs=yes
13477  ;;
13478
13479# No shared lib support for Linux oldld, aout, or coff.
13480linux*oldld* | linux*aout* | linux*coff*)
13481  dynamic_linker=no
13482  ;;
13483
13484linux*android*)
13485  version_type=none # Android doesn't support versioned libraries.
13486  need_lib_prefix=no
13487  need_version=no
13488  library_names_spec='$libname$release$shared_ext'
13489  soname_spec='$libname$release$shared_ext'
13490  finish_cmds=
13491  shlibpath_var=LD_LIBRARY_PATH
13492  shlibpath_overrides_runpath=yes
13493
13494  # This implies no fast_install, which is unacceptable.
13495  # Some rework will be needed to allow for fast_install
13496  # before this can be enabled.
13497  hardcode_into_libs=yes
13498
13499  dynamic_linker='Android linker'
13500  # Don't embed -rpath directories since the linker doesn't support them.
13501  hardcode_libdir_flag_spec='-L$libdir'
13502  ;;
13503
13504# This must be glibc/ELF.
13505linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13506  version_type=linux # correct to gnu/linux during the next big refactor
13507  need_lib_prefix=no
13508  need_version=no
13509  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13510  soname_spec='$libname$release$shared_ext$major'
13511  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13512  shlibpath_var=LD_LIBRARY_PATH
13513  shlibpath_overrides_runpath=no
13514
13515  # Some binutils ld are patched to set DT_RUNPATH
13516  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13517  $as_echo_n "(cached) " >&6
13518else
13519  lt_cv_shlibpath_overrides_runpath=no
13520    save_LDFLAGS=$LDFLAGS
13521    save_libdir=$libdir
13522    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13523	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13524    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525/* end confdefs.h.  */
13526
13527int
13528main ()
13529{
13530
13531  ;
13532  return 0;
13533}
13534_ACEOF
13535if ac_fn_c_try_link "$LINENO"; then :
13536  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13537  lt_cv_shlibpath_overrides_runpath=yes
13538fi
13539fi
13540rm -f core conftest.err conftest.$ac_objext \
13541    conftest$ac_exeext conftest.$ac_ext
13542    LDFLAGS=$save_LDFLAGS
13543    libdir=$save_libdir
13544
13545fi
13546
13547  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13548
13549  # This implies no fast_install, which is unacceptable.
13550  # Some rework will be needed to allow for fast_install
13551  # before this can be enabled.
13552  hardcode_into_libs=yes
13553
13554  # Ideally, we could use ldconfig to report *all* directores which are
13555  # searched for libraries, however this is still not possible.  Aside from not
13556  # being certain /sbin/ldconfig is available, command
13557  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13558  # even though it is searched at run-time.  Try to do the best guess by
13559  # appending ld.so.conf contents (and includes) to the search path.
13560  if test -f /etc/ld.so.conf; then
13561    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
13562    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13563  fi
13564
13565  # We used to test for /lib/ld.so.1 and disable shared libraries on
13566  # powerpc, because MkLinux only supported shared libraries with the
13567  # GNU dynamic linker.  Since this was broken with cross compilers,
13568  # most powerpc-linux boxes support dynamic linking these days and
13569  # people can always --disable-shared, the test was removed, and we
13570  # assume the GNU/Linux dynamic linker is in use.
13571  dynamic_linker='GNU/Linux ld.so'
13572  ;;
13573
13574netbsd*)
13575  version_type=sunos
13576  need_lib_prefix=no
13577  need_version=no
13578  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13579    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13580    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13581    dynamic_linker='NetBSD (a.out) ld.so'
13582  else
13583    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13584    soname_spec='$libname$release$shared_ext$major'
13585    dynamic_linker='NetBSD ld.elf_so'
13586  fi
13587  shlibpath_var=LD_LIBRARY_PATH
13588  shlibpath_overrides_runpath=yes
13589  hardcode_into_libs=yes
13590  ;;
13591
13592newsos6)
13593  version_type=linux # correct to gnu/linux during the next big refactor
13594  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13595  shlibpath_var=LD_LIBRARY_PATH
13596  shlibpath_overrides_runpath=yes
13597  ;;
13598
13599*nto* | *qnx*)
13600  version_type=qnx
13601  need_lib_prefix=no
13602  need_version=no
13603  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13604  soname_spec='$libname$release$shared_ext$major'
13605  shlibpath_var=LD_LIBRARY_PATH
13606  shlibpath_overrides_runpath=no
13607  hardcode_into_libs=yes
13608  dynamic_linker='ldqnx.so'
13609  ;;
13610
13611openbsd* | bitrig*)
13612  version_type=sunos
13613  sys_lib_dlsearch_path_spec=/usr/lib
13614  need_lib_prefix=no
13615  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13616    need_version=no
13617  else
13618    need_version=yes
13619  fi
13620  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13621  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13622  shlibpath_var=LD_LIBRARY_PATH
13623  shlibpath_overrides_runpath=yes
13624  ;;
13625
13626os2*)
13627  libname_spec='$name'
13628  version_type=windows
13629  shrext_cmds=.dll
13630  need_version=no
13631  need_lib_prefix=no
13632  # OS/2 can only load a DLL with a base name of 8 characters or less.
13633  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13634    v=$($ECHO $release$versuffix | tr -d .-);
13635    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13636    $ECHO $n$v`$shared_ext'
13637  library_names_spec='${libname}_dll.$libext'
13638  dynamic_linker='OS/2 ld.exe'
13639  shlibpath_var=BEGINLIBPATH
13640  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13641  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13642  postinstall_cmds='base_file=`basename \$file`~
13643    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13644    dldir=$destdir/`dirname \$dlpath`~
13645    test -d \$dldir || mkdir -p \$dldir~
13646    $install_prog $dir/$dlname \$dldir/$dlname~
13647    chmod a+x \$dldir/$dlname~
13648    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13649      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13650    fi'
13651  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13652    dlpath=$dir/\$dldll~
13653    $RM \$dlpath'
13654  ;;
13655
13656osf3* | osf4* | osf5*)
13657  version_type=osf
13658  need_lib_prefix=no
13659  need_version=no
13660  soname_spec='$libname$release$shared_ext$major'
13661  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13662  shlibpath_var=LD_LIBRARY_PATH
13663  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13664  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13665  ;;
13666
13667rdos*)
13668  dynamic_linker=no
13669  ;;
13670
13671solaris*)
13672  version_type=linux # correct to gnu/linux during the next big refactor
13673  need_lib_prefix=no
13674  need_version=no
13675  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13676  soname_spec='$libname$release$shared_ext$major'
13677  shlibpath_var=LD_LIBRARY_PATH
13678  shlibpath_overrides_runpath=yes
13679  hardcode_into_libs=yes
13680  # ldd complains unless libraries are executable
13681  postinstall_cmds='chmod +x $lib'
13682  ;;
13683
13684sunos4*)
13685  version_type=sunos
13686  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13687  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13688  shlibpath_var=LD_LIBRARY_PATH
13689  shlibpath_overrides_runpath=yes
13690  if test yes = "$with_gnu_ld"; then
13691    need_lib_prefix=no
13692  fi
13693  need_version=yes
13694  ;;
13695
13696sysv4 | sysv4.3*)
13697  version_type=linux # correct to gnu/linux during the next big refactor
13698  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13699  soname_spec='$libname$release$shared_ext$major'
13700  shlibpath_var=LD_LIBRARY_PATH
13701  case $host_vendor in
13702    sni)
13703      shlibpath_overrides_runpath=no
13704      need_lib_prefix=no
13705      runpath_var=LD_RUN_PATH
13706      ;;
13707    siemens)
13708      need_lib_prefix=no
13709      ;;
13710    motorola)
13711      need_lib_prefix=no
13712      need_version=no
13713      shlibpath_overrides_runpath=no
13714      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13715      ;;
13716  esac
13717  ;;
13718
13719sysv4*MP*)
13720  if test -d /usr/nec; then
13721    version_type=linux # correct to gnu/linux during the next big refactor
13722    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13723    soname_spec='$libname$shared_ext.$major'
13724    shlibpath_var=LD_LIBRARY_PATH
13725  fi
13726  ;;
13727
13728sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13729  version_type=sco
13730  need_lib_prefix=no
13731  need_version=no
13732  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13733  soname_spec='$libname$release$shared_ext$major'
13734  shlibpath_var=LD_LIBRARY_PATH
13735  shlibpath_overrides_runpath=yes
13736  hardcode_into_libs=yes
13737  if test yes = "$with_gnu_ld"; then
13738    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13739  else
13740    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13741    case $host_os in
13742      sco3.2v5*)
13743        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13744	;;
13745    esac
13746  fi
13747  sys_lib_dlsearch_path_spec='/usr/lib'
13748  ;;
13749
13750tpf*)
13751  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13752  version_type=linux # correct to gnu/linux during the next big refactor
13753  need_lib_prefix=no
13754  need_version=no
13755  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13756  shlibpath_var=LD_LIBRARY_PATH
13757  shlibpath_overrides_runpath=no
13758  hardcode_into_libs=yes
13759  ;;
13760
13761uts4*)
13762  version_type=linux # correct to gnu/linux during the next big refactor
13763  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13764  soname_spec='$libname$release$shared_ext$major'
13765  shlibpath_var=LD_LIBRARY_PATH
13766  ;;
13767
13768*)
13769  dynamic_linker=no
13770  ;;
13771esac
13772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13773$as_echo "$dynamic_linker" >&6; }
13774test no = "$dynamic_linker" && can_build_shared=no
13775
13776variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13777if test yes = "$GCC"; then
13778  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13779fi
13780
13781if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13782  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13783fi
13784
13785if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13786  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13787fi
13788
13789# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13790configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13791
13792# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13793func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13794
13795# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13796configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13895$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13896hardcode_action=
13897if test -n "$hardcode_libdir_flag_spec" ||
13898   test -n "$runpath_var" ||
13899   test yes = "$hardcode_automatic"; then
13900
13901  # We can hardcode non-existent directories.
13902  if test no != "$hardcode_direct" &&
13903     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13904     # have to relink, otherwise we might link with an installed library
13905     # when we should be linking with a yet-to-be-installed one
13906     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13907     test no != "$hardcode_minus_L"; then
13908    # Linking always hardcodes the temporary library directory.
13909    hardcode_action=relink
13910  else
13911    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13912    hardcode_action=immediate
13913  fi
13914else
13915  # We cannot hardcode anything, or else we can only hardcode existing
13916  # directories.
13917  hardcode_action=unsupported
13918fi
13919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13920$as_echo "$hardcode_action" >&6; }
13921
13922if test relink = "$hardcode_action" ||
13923   test yes = "$inherit_rpath"; then
13924  # Fast installation is not supported
13925  enable_fast_install=no
13926elif test yes = "$shlibpath_overrides_runpath" ||
13927     test no = "$enable_shared"; then
13928  # Fast installation is not necessary
13929  enable_fast_install=needless
13930fi
13931
13932
13933
13934
13935
13936
13937  if test yes != "$enable_dlopen"; then
13938  enable_dlopen=unknown
13939  enable_dlopen_self=unknown
13940  enable_dlopen_self_static=unknown
13941else
13942  lt_cv_dlopen=no
13943  lt_cv_dlopen_libs=
13944
13945  case $host_os in
13946  beos*)
13947    lt_cv_dlopen=load_add_on
13948    lt_cv_dlopen_libs=
13949    lt_cv_dlopen_self=yes
13950    ;;
13951
13952  mingw* | pw32* | cegcc*)
13953    lt_cv_dlopen=LoadLibrary
13954    lt_cv_dlopen_libs=
13955    ;;
13956
13957  cygwin*)
13958    lt_cv_dlopen=dlopen
13959    lt_cv_dlopen_libs=
13960    ;;
13961
13962  darwin*)
13963    # if libdl is installed we need to link against it
13964    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13965$as_echo_n "checking for dlopen in -ldl... " >&6; }
13966if ${ac_cv_lib_dl_dlopen+:} false; then :
13967  $as_echo_n "(cached) " >&6
13968else
13969  ac_check_lib_save_LIBS=$LIBS
13970LIBS="-ldl  $LIBS"
13971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13972/* end confdefs.h.  */
13973
13974/* Override any GCC internal prototype to avoid an error.
13975   Use char because int might match the return type of a GCC
13976   builtin and then its argument prototype would still apply.  */
13977#ifdef __cplusplus
13978extern "C"
13979#endif
13980char dlopen ();
13981int
13982main ()
13983{
13984return dlopen ();
13985  ;
13986  return 0;
13987}
13988_ACEOF
13989if ac_fn_c_try_link "$LINENO"; then :
13990  ac_cv_lib_dl_dlopen=yes
13991else
13992  ac_cv_lib_dl_dlopen=no
13993fi
13994rm -f core conftest.err conftest.$ac_objext \
13995    conftest$ac_exeext conftest.$ac_ext
13996LIBS=$ac_check_lib_save_LIBS
13997fi
13998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13999$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14000if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14001  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14002else
14003
14004    lt_cv_dlopen=dyld
14005    lt_cv_dlopen_libs=
14006    lt_cv_dlopen_self=yes
14007
14008fi
14009
14010    ;;
14011
14012  tpf*)
14013    # Don't try to run any link tests for TPF.  We know it's impossible
14014    # because TPF is a cross-compiler, and we know how we open DSOs.
14015    lt_cv_dlopen=dlopen
14016    lt_cv_dlopen_libs=
14017    lt_cv_dlopen_self=no
14018    ;;
14019
14020  *)
14021    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14022if test "x$ac_cv_func_shl_load" = xyes; then :
14023  lt_cv_dlopen=shl_load
14024else
14025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14026$as_echo_n "checking for shl_load in -ldld... " >&6; }
14027if ${ac_cv_lib_dld_shl_load+:} false; then :
14028  $as_echo_n "(cached) " >&6
14029else
14030  ac_check_lib_save_LIBS=$LIBS
14031LIBS="-ldld  $LIBS"
14032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14033/* end confdefs.h.  */
14034
14035/* Override any GCC internal prototype to avoid an error.
14036   Use char because int might match the return type of a GCC
14037   builtin and then its argument prototype would still apply.  */
14038#ifdef __cplusplus
14039extern "C"
14040#endif
14041char shl_load ();
14042int
14043main ()
14044{
14045return shl_load ();
14046  ;
14047  return 0;
14048}
14049_ACEOF
14050if ac_fn_c_try_link "$LINENO"; then :
14051  ac_cv_lib_dld_shl_load=yes
14052else
14053  ac_cv_lib_dld_shl_load=no
14054fi
14055rm -f core conftest.err conftest.$ac_objext \
14056    conftest$ac_exeext conftest.$ac_ext
14057LIBS=$ac_check_lib_save_LIBS
14058fi
14059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14060$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14061if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14062  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14063else
14064  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14065if test "x$ac_cv_func_dlopen" = xyes; then :
14066  lt_cv_dlopen=dlopen
14067else
14068  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14069$as_echo_n "checking for dlopen in -ldl... " >&6; }
14070if ${ac_cv_lib_dl_dlopen+:} false; then :
14071  $as_echo_n "(cached) " >&6
14072else
14073  ac_check_lib_save_LIBS=$LIBS
14074LIBS="-ldl  $LIBS"
14075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14076/* end confdefs.h.  */
14077
14078/* Override any GCC internal prototype to avoid an error.
14079   Use char because int might match the return type of a GCC
14080   builtin and then its argument prototype would still apply.  */
14081#ifdef __cplusplus
14082extern "C"
14083#endif
14084char dlopen ();
14085int
14086main ()
14087{
14088return dlopen ();
14089  ;
14090  return 0;
14091}
14092_ACEOF
14093if ac_fn_c_try_link "$LINENO"; then :
14094  ac_cv_lib_dl_dlopen=yes
14095else
14096  ac_cv_lib_dl_dlopen=no
14097fi
14098rm -f core conftest.err conftest.$ac_objext \
14099    conftest$ac_exeext conftest.$ac_ext
14100LIBS=$ac_check_lib_save_LIBS
14101fi
14102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14103$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14104if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14105  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14106else
14107  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14108$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14109if ${ac_cv_lib_svld_dlopen+:} false; then :
14110  $as_echo_n "(cached) " >&6
14111else
14112  ac_check_lib_save_LIBS=$LIBS
14113LIBS="-lsvld  $LIBS"
14114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115/* end confdefs.h.  */
14116
14117/* Override any GCC internal prototype to avoid an error.
14118   Use char because int might match the return type of a GCC
14119   builtin and then its argument prototype would still apply.  */
14120#ifdef __cplusplus
14121extern "C"
14122#endif
14123char dlopen ();
14124int
14125main ()
14126{
14127return dlopen ();
14128  ;
14129  return 0;
14130}
14131_ACEOF
14132if ac_fn_c_try_link "$LINENO"; then :
14133  ac_cv_lib_svld_dlopen=yes
14134else
14135  ac_cv_lib_svld_dlopen=no
14136fi
14137rm -f core conftest.err conftest.$ac_objext \
14138    conftest$ac_exeext conftest.$ac_ext
14139LIBS=$ac_check_lib_save_LIBS
14140fi
14141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14142$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14143if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14144  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14145else
14146  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14147$as_echo_n "checking for dld_link in -ldld... " >&6; }
14148if ${ac_cv_lib_dld_dld_link+:} false; then :
14149  $as_echo_n "(cached) " >&6
14150else
14151  ac_check_lib_save_LIBS=$LIBS
14152LIBS="-ldld  $LIBS"
14153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14154/* end confdefs.h.  */
14155
14156/* Override any GCC internal prototype to avoid an error.
14157   Use char because int might match the return type of a GCC
14158   builtin and then its argument prototype would still apply.  */
14159#ifdef __cplusplus
14160extern "C"
14161#endif
14162char dld_link ();
14163int
14164main ()
14165{
14166return dld_link ();
14167  ;
14168  return 0;
14169}
14170_ACEOF
14171if ac_fn_c_try_link "$LINENO"; then :
14172  ac_cv_lib_dld_dld_link=yes
14173else
14174  ac_cv_lib_dld_dld_link=no
14175fi
14176rm -f core conftest.err conftest.$ac_objext \
14177    conftest$ac_exeext conftest.$ac_ext
14178LIBS=$ac_check_lib_save_LIBS
14179fi
14180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14181$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14182if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14183  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14184fi
14185
14186
14187fi
14188
14189
14190fi
14191
14192
14193fi
14194
14195
14196fi
14197
14198
14199fi
14200
14201    ;;
14202  esac
14203
14204  if test no = "$lt_cv_dlopen"; then
14205    enable_dlopen=no
14206  else
14207    enable_dlopen=yes
14208  fi
14209
14210  case $lt_cv_dlopen in
14211  dlopen)
14212    save_CPPFLAGS=$CPPFLAGS
14213    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14214
14215    save_LDFLAGS=$LDFLAGS
14216    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14217
14218    save_LIBS=$LIBS
14219    LIBS="$lt_cv_dlopen_libs $LIBS"
14220
14221    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14222$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14223if ${lt_cv_dlopen_self+:} false; then :
14224  $as_echo_n "(cached) " >&6
14225else
14226  	  if test yes = "$cross_compiling"; then :
14227  lt_cv_dlopen_self=cross
14228else
14229  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14230  lt_status=$lt_dlunknown
14231  cat > conftest.$ac_ext <<_LT_EOF
14232#line $LINENO "configure"
14233#include "confdefs.h"
14234
14235#if HAVE_DLFCN_H
14236#include <dlfcn.h>
14237#endif
14238
14239#include <stdio.h>
14240
14241#ifdef RTLD_GLOBAL
14242#  define LT_DLGLOBAL		RTLD_GLOBAL
14243#else
14244#  ifdef DL_GLOBAL
14245#    define LT_DLGLOBAL		DL_GLOBAL
14246#  else
14247#    define LT_DLGLOBAL		0
14248#  endif
14249#endif
14250
14251/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14252   find out it does not work in some platform. */
14253#ifndef LT_DLLAZY_OR_NOW
14254#  ifdef RTLD_LAZY
14255#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14256#  else
14257#    ifdef DL_LAZY
14258#      define LT_DLLAZY_OR_NOW		DL_LAZY
14259#    else
14260#      ifdef RTLD_NOW
14261#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14262#      else
14263#        ifdef DL_NOW
14264#          define LT_DLLAZY_OR_NOW	DL_NOW
14265#        else
14266#          define LT_DLLAZY_OR_NOW	0
14267#        endif
14268#      endif
14269#    endif
14270#  endif
14271#endif
14272
14273/* When -fvisibility=hidden is used, assume the code has been annotated
14274   correspondingly for the symbols needed.  */
14275#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14276int fnord () __attribute__((visibility("default")));
14277#endif
14278
14279int fnord () { return 42; }
14280int main ()
14281{
14282  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14283  int status = $lt_dlunknown;
14284
14285  if (self)
14286    {
14287      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14288      else
14289        {
14290	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14291          else puts (dlerror ());
14292	}
14293      /* dlclose (self); */
14294    }
14295  else
14296    puts (dlerror ());
14297
14298  return status;
14299}
14300_LT_EOF
14301  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14302  (eval $ac_link) 2>&5
14303  ac_status=$?
14304  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14305  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14306    (./conftest; exit; ) >&5 2>/dev/null
14307    lt_status=$?
14308    case x$lt_status in
14309      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14310      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14311      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14312    esac
14313  else :
14314    # compilation failed
14315    lt_cv_dlopen_self=no
14316  fi
14317fi
14318rm -fr conftest*
14319
14320
14321fi
14322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14323$as_echo "$lt_cv_dlopen_self" >&6; }
14324
14325    if test yes = "$lt_cv_dlopen_self"; then
14326      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14327      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14328$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14329if ${lt_cv_dlopen_self_static+:} false; then :
14330  $as_echo_n "(cached) " >&6
14331else
14332  	  if test yes = "$cross_compiling"; then :
14333  lt_cv_dlopen_self_static=cross
14334else
14335  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14336  lt_status=$lt_dlunknown
14337  cat > conftest.$ac_ext <<_LT_EOF
14338#line $LINENO "configure"
14339#include "confdefs.h"
14340
14341#if HAVE_DLFCN_H
14342#include <dlfcn.h>
14343#endif
14344
14345#include <stdio.h>
14346
14347#ifdef RTLD_GLOBAL
14348#  define LT_DLGLOBAL		RTLD_GLOBAL
14349#else
14350#  ifdef DL_GLOBAL
14351#    define LT_DLGLOBAL		DL_GLOBAL
14352#  else
14353#    define LT_DLGLOBAL		0
14354#  endif
14355#endif
14356
14357/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14358   find out it does not work in some platform. */
14359#ifndef LT_DLLAZY_OR_NOW
14360#  ifdef RTLD_LAZY
14361#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14362#  else
14363#    ifdef DL_LAZY
14364#      define LT_DLLAZY_OR_NOW		DL_LAZY
14365#    else
14366#      ifdef RTLD_NOW
14367#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14368#      else
14369#        ifdef DL_NOW
14370#          define LT_DLLAZY_OR_NOW	DL_NOW
14371#        else
14372#          define LT_DLLAZY_OR_NOW	0
14373#        endif
14374#      endif
14375#    endif
14376#  endif
14377#endif
14378
14379/* When -fvisibility=hidden is used, assume the code has been annotated
14380   correspondingly for the symbols needed.  */
14381#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14382int fnord () __attribute__((visibility("default")));
14383#endif
14384
14385int fnord () { return 42; }
14386int main ()
14387{
14388  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14389  int status = $lt_dlunknown;
14390
14391  if (self)
14392    {
14393      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14394      else
14395        {
14396	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14397          else puts (dlerror ());
14398	}
14399      /* dlclose (self); */
14400    }
14401  else
14402    puts (dlerror ());
14403
14404  return status;
14405}
14406_LT_EOF
14407  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14408  (eval $ac_link) 2>&5
14409  ac_status=$?
14410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14411  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14412    (./conftest; exit; ) >&5 2>/dev/null
14413    lt_status=$?
14414    case x$lt_status in
14415      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14416      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14417      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14418    esac
14419  else :
14420    # compilation failed
14421    lt_cv_dlopen_self_static=no
14422  fi
14423fi
14424rm -fr conftest*
14425
14426
14427fi
14428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14429$as_echo "$lt_cv_dlopen_self_static" >&6; }
14430    fi
14431
14432    CPPFLAGS=$save_CPPFLAGS
14433    LDFLAGS=$save_LDFLAGS
14434    LIBS=$save_LIBS
14435    ;;
14436  esac
14437
14438  case $lt_cv_dlopen_self in
14439  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14440  *) enable_dlopen_self=unknown ;;
14441  esac
14442
14443  case $lt_cv_dlopen_self_static in
14444  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14445  *) enable_dlopen_self_static=unknown ;;
14446  esac
14447fi
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465striplib=
14466old_striplib=
14467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14468$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14469if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14470  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14471  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14473$as_echo "yes" >&6; }
14474else
14475# FIXME - insert some real tests, host_os isn't really good enough
14476  case $host_os in
14477  darwin*)
14478    if test -n "$STRIP"; then
14479      striplib="$STRIP -x"
14480      old_striplib="$STRIP -S"
14481      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14482$as_echo "yes" >&6; }
14483    else
14484      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14485$as_echo "no" >&6; }
14486    fi
14487    ;;
14488  *)
14489    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14490$as_echo "no" >&6; }
14491    ;;
14492  esac
14493fi
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506  # Report what library types will actually be built
14507  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14508$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14510$as_echo "$can_build_shared" >&6; }
14511
14512  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14513$as_echo_n "checking whether to build shared libraries... " >&6; }
14514  test no = "$can_build_shared" && enable_shared=no
14515
14516  # On AIX, shared libraries and static libraries use the same namespace, and
14517  # are all built from PIC.
14518  case $host_os in
14519  aix3*)
14520    test yes = "$enable_shared" && enable_static=no
14521    if test -n "$RANLIB"; then
14522      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14523      postinstall_cmds='$RANLIB $lib'
14524    fi
14525    ;;
14526
14527  aix[4-9]*)
14528    if test ia64 != "$host_cpu"; then
14529      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14530      yes,aix,yes) ;;			# shared object as lib.so file only
14531      yes,svr4,*) ;;			# shared object as lib.so archive member only
14532      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14533      esac
14534    fi
14535    ;;
14536  esac
14537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14538$as_echo "$enable_shared" >&6; }
14539
14540  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14541$as_echo_n "checking whether to build static libraries... " >&6; }
14542  # Make sure either enable_shared or enable_static is yes.
14543  test yes = "$enable_shared" || enable_static=yes
14544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14545$as_echo "$enable_static" >&6; }
14546
14547
14548
14549
14550fi
14551ac_ext=c
14552ac_cpp='$CPP $CPPFLAGS'
14553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14555ac_compiler_gnu=$ac_cv_c_compiler_gnu
14556
14557CC=$lt_save_CC
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573        ac_config_commands="$ac_config_commands libtool"
14574
14575
14576
14577
14578# Only expand once:
14579
14580
14581
14582
14583# NTP has (so far) been relying on leading-edge autogen, which
14584# means we need the appropriate corresponding libopts as well.
14585# Therefore, by default:
14586# - use the version of libopts we ship with
14587# - do not install it
14588# - build a static copy (AC_DISABLE_SHARED - done earlier)
14589case "${enable_local_libopts+set}" in
14590 set) ;;
14591 *) enable_local_libopts=yes ;;
14592esac
14593case "${enable_libopts_install+set}" in
14594 set) ;;
14595 *) enable_libopts_install=no ;;
14596esac
14597enable_nls=no
14598ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14599if test "x$ac_cv_type_pid_t" = xyes; then :
14600
14601else
14602
14603cat >>confdefs.h <<_ACEOF
14604#define pid_t int
14605_ACEOF
14606
14607fi
14608
14609
14610
14611  ac_header_dirent=no
14612for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14613  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14615$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
14616if eval \${$as_ac_Header+:} false; then :
14617  $as_echo_n "(cached) " >&6
14618else
14619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14620/* end confdefs.h.  */
14621#include <sys/types.h>
14622#include <$ac_hdr>
14623
14624int
14625main ()
14626{
14627if ((DIR *) 0)
14628return 0;
14629  ;
14630  return 0;
14631}
14632_ACEOF
14633if ac_fn_c_try_compile "$LINENO"; then :
14634  eval "$as_ac_Header=yes"
14635else
14636  eval "$as_ac_Header=no"
14637fi
14638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14639fi
14640eval ac_res=\$$as_ac_Header
14641	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14642$as_echo "$ac_res" >&6; }
14643if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14644  cat >>confdefs.h <<_ACEOF
14645#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14646_ACEOF
14647
14648ac_header_dirent=$ac_hdr; break
14649fi
14650
14651done
14652# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14653if test $ac_header_dirent = dirent.h; then
14654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14655$as_echo_n "checking for library containing opendir... " >&6; }
14656if ${ac_cv_search_opendir+:} false; then :
14657  $as_echo_n "(cached) " >&6
14658else
14659  ac_func_search_save_LIBS=$LIBS
14660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14661/* end confdefs.h.  */
14662
14663/* Override any GCC internal prototype to avoid an error.
14664   Use char because int might match the return type of a GCC
14665   builtin and then its argument prototype would still apply.  */
14666#ifdef __cplusplus
14667extern "C"
14668#endif
14669char opendir ();
14670int
14671main ()
14672{
14673return opendir ();
14674  ;
14675  return 0;
14676}
14677_ACEOF
14678for ac_lib in '' dir; do
14679  if test -z "$ac_lib"; then
14680    ac_res="none required"
14681  else
14682    ac_res=-l$ac_lib
14683    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14684  fi
14685  if ac_fn_c_try_link "$LINENO"; then :
14686  ac_cv_search_opendir=$ac_res
14687fi
14688rm -f core conftest.err conftest.$ac_objext \
14689    conftest$ac_exeext
14690  if ${ac_cv_search_opendir+:} false; then :
14691  break
14692fi
14693done
14694if ${ac_cv_search_opendir+:} false; then :
14695
14696else
14697  ac_cv_search_opendir=no
14698fi
14699rm conftest.$ac_ext
14700LIBS=$ac_func_search_save_LIBS
14701fi
14702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14703$as_echo "$ac_cv_search_opendir" >&6; }
14704ac_res=$ac_cv_search_opendir
14705if test "$ac_res" != no; then :
14706  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14707
14708fi
14709
14710else
14711  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14712$as_echo_n "checking for library containing opendir... " >&6; }
14713if ${ac_cv_search_opendir+:} false; then :
14714  $as_echo_n "(cached) " >&6
14715else
14716  ac_func_search_save_LIBS=$LIBS
14717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14718/* end confdefs.h.  */
14719
14720/* Override any GCC internal prototype to avoid an error.
14721   Use char because int might match the return type of a GCC
14722   builtin and then its argument prototype would still apply.  */
14723#ifdef __cplusplus
14724extern "C"
14725#endif
14726char opendir ();
14727int
14728main ()
14729{
14730return opendir ();
14731  ;
14732  return 0;
14733}
14734_ACEOF
14735for ac_lib in '' x; do
14736  if test -z "$ac_lib"; then
14737    ac_res="none required"
14738  else
14739    ac_res=-l$ac_lib
14740    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14741  fi
14742  if ac_fn_c_try_link "$LINENO"; then :
14743  ac_cv_search_opendir=$ac_res
14744fi
14745rm -f core conftest.err conftest.$ac_objext \
14746    conftest$ac_exeext
14747  if ${ac_cv_search_opendir+:} false; then :
14748  break
14749fi
14750done
14751if ${ac_cv_search_opendir+:} false; then :
14752
14753else
14754  ac_cv_search_opendir=no
14755fi
14756rm conftest.$ac_ext
14757LIBS=$ac_func_search_save_LIBS
14758fi
14759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14760$as_echo "$ac_cv_search_opendir" >&6; }
14761ac_res=$ac_cv_search_opendir
14762if test "$ac_res" != no; then :
14763  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14764
14765fi
14766
14767fi
14768
14769
14770  # =================
14771  # AC_CHECK_HEADERS
14772  # =================
14773  for ac_header in  \
14774      sys/mman.h    sys/param.h   sys/poll.h    sys/procset.h \
14775      sys/select.h  sys/socket.h  sys/stropts.h sys/time.h \
14776      sys/un.h      sys/wait.h    dlfcn.h       errno.h \
14777      fcntl.h       libgen.h      libintl.h     memory.h \
14778      netinet/in.h  setjmp.h      stdbool.h     sysexits.h \
14779      unistd.h      utime.h
14780do :
14781  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14782ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14783if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14784  cat >>confdefs.h <<_ACEOF
14785#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14786_ACEOF
14787
14788fi
14789
14790done
14791
14792
14793  for ac_header in stdarg.h     varargs.h
14794do :
14795  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14796ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14797if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14798  cat >>confdefs.h <<_ACEOF
14799#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14800_ACEOF
14801 lo_have_arg_hdr=true;break
14802else
14803  lo_have_arg_hdr=false
14804fi
14805
14806done
14807
14808
14809  for ac_header in string.h     strings.h
14810do :
14811  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14812ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14813if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14814  cat >>confdefs.h <<_ACEOF
14815#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14816_ACEOF
14817 lo_have_str_hdr=true;break
14818else
14819  lo_have_str_hdr=false
14820fi
14821
14822done
14823
14824
14825  for ac_header in limits.h     sys/limits.h  values.h
14826do :
14827  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14828ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14829if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14830  cat >>confdefs.h <<_ACEOF
14831#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14832_ACEOF
14833 lo_have_lim_hdr=true;break
14834else
14835  lo_have_lim_hdr=false
14836fi
14837
14838done
14839
14840
14841  for ac_header in inttypes.h   stdint.h
14842do :
14843  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14844ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14845if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14846  cat >>confdefs.h <<_ACEOF
14847#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14848_ACEOF
14849 lo_have_typ_hdr=true;break
14850else
14851  lo_have_typ_hdr=false
14852fi
14853
14854done
14855
14856
14857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
14858$as_echo_n "checking for working stdnoreturn.h... " >&6; }
14859if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
14860  $as_echo_n "(cached) " >&6
14861else
14862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863/* end confdefs.h.  */
14864#include <stdlib.h>
14865            #include <stdnoreturn.h>
14866            /* Do not check for 'noreturn' after the return type.
14867               C11 allows it, but it's rarely done that way
14868               and circa-2012 bleeding-edge GCC rejects it when given
14869               -Werror=old-style-declaration.  */
14870            noreturn void foo1 (void) { exit (0); }
14871            _Noreturn void foo2 (void) { exit (0); }
14872            int testit (int argc, char **argv) {
14873              if (argc & 1)
14874                return 0;
14875              (argv[0][0] ? foo1 : foo2) ();
14876            }
14877
14878int
14879main ()
14880{
14881
14882  ;
14883  return 0;
14884}
14885_ACEOF
14886if ac_fn_c_try_compile "$LINENO"; then :
14887  gl_cv_header_working_stdnoreturn_h=yes
14888else
14889  gl_cv_header_working_stdnoreturn_h=no
14890fi
14891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14892fi
14893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
14894$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
14895
14896  if test $gl_cv_header_working_stdnoreturn_h = yes; then
14897    STDNORETURN_H=''
14898  else
14899    STDNORETURN_H='stdnoreturn.h'
14900  fi
14901
14902
14903   if test -n "$STDNORETURN_H"; then
14904  GL_GENERATE_STDNORETURN_H_TRUE=
14905  GL_GENERATE_STDNORETURN_H_FALSE='#'
14906else
14907  GL_GENERATE_STDNORETURN_H_TRUE='#'
14908  GL_GENERATE_STDNORETURN_H_FALSE=
14909fi
14910
14911
14912
14913  # ----------------------------------------------------------------------
14914  # check for various programs used during the build.
14915  # On OS/X, "wchar.h" needs "runetype.h" to work properly.
14916  # ----------------------------------------------------------------------
14917  for ac_header in runetype.h wchar.h
14918do :
14919  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14920ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
14921  $ac_includes_default
14922  #if HAVE_RUNETYPE_H
14923  # include <runetype.h>
14924  #endif
14925
14926"
14927if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14928  cat >>confdefs.h <<_ACEOF
14929#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14930_ACEOF
14931
14932fi
14933
14934done
14935
14936
14937  # Check whether --enable-nls was given.
14938if test "${enable_nls+set}" = set; then :
14939  enableval=$enable_nls;
14940fi
14941
14942  if test "x$enable_nls" != "xno" && \
14943  test "X${ac_cv_header_libintl_h}" = Xyes; then :
14944
14945
14946$as_echo "#define ENABLE_NLS 1" >>confdefs.h
14947
14948fi
14949
14950  # --------------------------------------------
14951  # Verify certain entries from AC_CHECK_HEADERS
14952  # --------------------------------------------
14953  ${lo_have_arg_hdr} || \
14954    as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
14955
14956  ${lo_have_str_hdr} || \
14957    as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
14958
14959  ${lo_have_lim_hdr} || \
14960    as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
14961
14962  ${lo_have_typ_hdr} || \
14963    as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
14964
14965  for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
14966  do eval as_ac_var=\${ac_cv_header_${f}_h}
14967     test "X${as_ac_var}" = Xyes || {
14968       as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
14969     }
14970  done
14971  test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
14972    echo '#include <stdint.h>' > inttypes.h
14973
14974  # ----------------------------------------------------------------------
14975  # Checks for typedefs
14976  # ----------------------------------------------------------------------
14977  ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
14978if test "x$ac_cv_type_wchar_t" = xyes; then :
14979
14980cat >>confdefs.h <<_ACEOF
14981#define HAVE_WCHAR_T 1
14982_ACEOF
14983
14984
14985fi
14986
14987  ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
14988    $ac_includes_default
14989    #if HAVE_RUNETYPE_H
14990    # include <runetype.h>
14991    #endif
14992    #if HAVE_WCHAR_H
14993    # include <wchar.h>
14994    #endif
14995
14996"
14997if test "x$ac_cv_type_wint_t" = xyes; then :
14998
14999cat >>confdefs.h <<_ACEOF
15000#define HAVE_WINT_T 1
15001_ACEOF
15002
15003
15004fi
15005
15006  ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
15007if test "x$ac_cv_type_int8_t" = xyes; then :
15008
15009cat >>confdefs.h <<_ACEOF
15010#define HAVE_INT8_T 1
15011_ACEOF
15012
15013
15014fi
15015ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
15016if test "x$ac_cv_type_uint8_t" = xyes; then :
15017
15018cat >>confdefs.h <<_ACEOF
15019#define HAVE_UINT8_T 1
15020_ACEOF
15021
15022
15023fi
15024ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
15025if test "x$ac_cv_type_int16_t" = xyes; then :
15026
15027cat >>confdefs.h <<_ACEOF
15028#define HAVE_INT16_T 1
15029_ACEOF
15030
15031
15032fi
15033ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
15034if test "x$ac_cv_type_uint16_t" = xyes; then :
15035
15036cat >>confdefs.h <<_ACEOF
15037#define HAVE_UINT16_T 1
15038_ACEOF
15039
15040
15041fi
15042ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
15043if test "x$ac_cv_type_int32_t" = xyes; then :
15044
15045cat >>confdefs.h <<_ACEOF
15046#define HAVE_INT32_T 1
15047_ACEOF
15048
15049
15050fi
15051ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
15052if test "x$ac_cv_type_uint32_t" = xyes; then :
15053
15054cat >>confdefs.h <<_ACEOF
15055#define HAVE_UINT32_T 1
15056_ACEOF
15057
15058
15059fi
15060ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15061if test "x$ac_cv_type_intptr_t" = xyes; then :
15062
15063cat >>confdefs.h <<_ACEOF
15064#define HAVE_INTPTR_T 1
15065_ACEOF
15066
15067
15068fi
15069ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15070if test "x$ac_cv_type_uintptr_t" = xyes; then :
15071
15072cat >>confdefs.h <<_ACEOF
15073#define HAVE_UINTPTR_T 1
15074_ACEOF
15075
15076
15077fi
15078ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
15079if test "x$ac_cv_type_uint_t" = xyes; then :
15080
15081cat >>confdefs.h <<_ACEOF
15082#define HAVE_UINT_T 1
15083_ACEOF
15084
15085
15086fi
15087ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15088if test "x$ac_cv_type_pid_t" = xyes; then :
15089
15090cat >>confdefs.h <<_ACEOF
15091#define HAVE_PID_T 1
15092_ACEOF
15093
15094
15095fi
15096ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15097if test "x$ac_cv_type_size_t" = xyes; then :
15098
15099cat >>confdefs.h <<_ACEOF
15100#define HAVE_SIZE_T 1
15101_ACEOF
15102
15103
15104fi
15105ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15106if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
15107
15108cat >>confdefs.h <<_ACEOF
15109#define HAVE_PTRDIFF_T 1
15110_ACEOF
15111
15112
15113fi
15114
15115  # The cast to long int works around a bug in the HP C Compiler
15116# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15117# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15118# This bug is HP SR number 8606223364.
15119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
15120$as_echo_n "checking size of char *... " >&6; }
15121if ${ac_cv_sizeof_char_p+:} false; then :
15122  $as_echo_n "(cached) " >&6
15123else
15124  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p"        "$ac_includes_default"; then :
15125
15126else
15127  if test "$ac_cv_type_char_p" = yes; then
15128     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15130as_fn_error 77 "cannot compute sizeof (char *)
15131See \`config.log' for more details" "$LINENO" 5; }
15132   else
15133     ac_cv_sizeof_char_p=0
15134   fi
15135fi
15136
15137fi
15138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
15139$as_echo "$ac_cv_sizeof_char_p" >&6; }
15140
15141
15142
15143cat >>confdefs.h <<_ACEOF
15144#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
15145_ACEOF
15146
15147
15148  # The cast to long int works around a bug in the HP C Compiler
15149# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15150# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15151# This bug is HP SR number 8606223364.
15152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15153$as_echo_n "checking size of int... " >&6; }
15154if ${ac_cv_sizeof_int+:} false; then :
15155  $as_echo_n "(cached) " >&6
15156else
15157  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
15158
15159else
15160  if test "$ac_cv_type_int" = yes; then
15161     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15163as_fn_error 77 "cannot compute sizeof (int)
15164See \`config.log' for more details" "$LINENO" 5; }
15165   else
15166     ac_cv_sizeof_int=0
15167   fi
15168fi
15169
15170fi
15171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15172$as_echo "$ac_cv_sizeof_int" >&6; }
15173
15174
15175
15176cat >>confdefs.h <<_ACEOF
15177#define SIZEOF_INT $ac_cv_sizeof_int
15178_ACEOF
15179
15180
15181  # The cast to long int works around a bug in the HP C Compiler
15182# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15183# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15184# This bug is HP SR number 8606223364.
15185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15186$as_echo_n "checking size of long... " >&6; }
15187if ${ac_cv_sizeof_long+:} false; then :
15188  $as_echo_n "(cached) " >&6
15189else
15190  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
15191
15192else
15193  if test "$ac_cv_type_long" = yes; then
15194     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15195$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15196as_fn_error 77 "cannot compute sizeof (long)
15197See \`config.log' for more details" "$LINENO" 5; }
15198   else
15199     ac_cv_sizeof_long=0
15200   fi
15201fi
15202
15203fi
15204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15205$as_echo "$ac_cv_sizeof_long" >&6; }
15206
15207
15208
15209cat >>confdefs.h <<_ACEOF
15210#define SIZEOF_LONG $ac_cv_sizeof_long
15211_ACEOF
15212
15213
15214  # The cast to long int works around a bug in the HP C Compiler
15215# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15216# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15217# This bug is HP SR number 8606223364.
15218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15219$as_echo_n "checking size of short... " >&6; }
15220if ${ac_cv_sizeof_short+:} false; then :
15221  $as_echo_n "(cached) " >&6
15222else
15223  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
15224
15225else
15226  if test "$ac_cv_type_short" = yes; then
15227     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15229as_fn_error 77 "cannot compute sizeof (short)
15230See \`config.log' for more details" "$LINENO" 5; }
15231   else
15232     ac_cv_sizeof_short=0
15233   fi
15234fi
15235
15236fi
15237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15238$as_echo "$ac_cv_sizeof_short" >&6; }
15239
15240
15241
15242cat >>confdefs.h <<_ACEOF
15243#define SIZEOF_SHORT $ac_cv_sizeof_short
15244_ACEOF
15245
15246
15247
15248  # ------------
15249  # AC_CHECK_LIB
15250  # ------------
15251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
15252$as_echo_n "checking for pathfind in -lgen... " >&6; }
15253if ${ac_cv_lib_gen_pathfind+:} false; then :
15254  $as_echo_n "(cached) " >&6
15255else
15256  ac_check_lib_save_LIBS=$LIBS
15257LIBS="-lgen  $LIBS"
15258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15259/* end confdefs.h.  */
15260
15261/* Override any GCC internal prototype to avoid an error.
15262   Use char because int might match the return type of a GCC
15263   builtin and then its argument prototype would still apply.  */
15264#ifdef __cplusplus
15265extern "C"
15266#endif
15267char pathfind ();
15268int
15269main ()
15270{
15271return pathfind ();
15272  ;
15273  return 0;
15274}
15275_ACEOF
15276if ac_fn_c_try_link "$LINENO"; then :
15277  ac_cv_lib_gen_pathfind=yes
15278else
15279  ac_cv_lib_gen_pathfind=no
15280fi
15281rm -f core conftest.err conftest.$ac_objext \
15282    conftest$ac_exeext conftest.$ac_ext
15283LIBS=$ac_check_lib_save_LIBS
15284fi
15285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
15286$as_echo "$ac_cv_lib_gen_pathfind" >&6; }
15287if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
15288  cat >>confdefs.h <<_ACEOF
15289#define HAVE_LIBGEN 1
15290_ACEOF
15291
15292  LIBS="-lgen $LIBS"
15293
15294fi
15295
15296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
15297$as_echo_n "checking for gettext in -lintl... " >&6; }
15298if ${ac_cv_lib_intl_gettext+:} false; then :
15299  $as_echo_n "(cached) " >&6
15300else
15301  ac_check_lib_save_LIBS=$LIBS
15302LIBS="-lintl  $LIBS"
15303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15304/* end confdefs.h.  */
15305
15306/* Override any GCC internal prototype to avoid an error.
15307   Use char because int might match the return type of a GCC
15308   builtin and then its argument prototype would still apply.  */
15309#ifdef __cplusplus
15310extern "C"
15311#endif
15312char gettext ();
15313int
15314main ()
15315{
15316return gettext ();
15317  ;
15318  return 0;
15319}
15320_ACEOF
15321if ac_fn_c_try_link "$LINENO"; then :
15322  ac_cv_lib_intl_gettext=yes
15323else
15324  ac_cv_lib_intl_gettext=no
15325fi
15326rm -f core conftest.err conftest.$ac_objext \
15327    conftest$ac_exeext conftest.$ac_ext
15328LIBS=$ac_check_lib_save_LIBS
15329fi
15330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
15331$as_echo "$ac_cv_lib_intl_gettext" >&6; }
15332if test "x$ac_cv_lib_intl_gettext" = xyes; then :
15333  cat >>confdefs.h <<_ACEOF
15334#define HAVE_LIBINTL 1
15335_ACEOF
15336
15337  LIBS="-lintl $LIBS"
15338
15339fi
15340
15341  for ac_func in vprintf
15342do :
15343  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
15344if test "x$ac_cv_func_vprintf" = xyes; then :
15345  cat >>confdefs.h <<_ACEOF
15346#define HAVE_VPRINTF 1
15347_ACEOF
15348
15349ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
15350if test "x$ac_cv_func__doprnt" = xyes; then :
15351
15352$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
15353
15354fi
15355
15356fi
15357done
15358
15359
15360  for ac_header in vfork.h
15361do :
15362  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15363if test "x$ac_cv_header_vfork_h" = xyes; then :
15364  cat >>confdefs.h <<_ACEOF
15365#define HAVE_VFORK_H 1
15366_ACEOF
15367
15368fi
15369
15370done
15371
15372for ac_func in fork vfork
15373do :
15374  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15375ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15376if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15377  cat >>confdefs.h <<_ACEOF
15378#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15379_ACEOF
15380
15381fi
15382done
15383
15384if test "x$ac_cv_func_fork" = xyes; then
15385  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15386$as_echo_n "checking for working fork... " >&6; }
15387if ${ac_cv_func_fork_works+:} false; then :
15388  $as_echo_n "(cached) " >&6
15389else
15390  if test "$cross_compiling" = yes; then :
15391  ac_cv_func_fork_works=cross
15392else
15393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15394/* end confdefs.h.  */
15395$ac_includes_default
15396int
15397main ()
15398{
15399
15400	  /* By Ruediger Kuhlmann. */
15401	  return fork () < 0;
15402
15403  ;
15404  return 0;
15405}
15406_ACEOF
15407if ac_fn_c_try_run "$LINENO"; then :
15408  ac_cv_func_fork_works=yes
15409else
15410  ac_cv_func_fork_works=no
15411fi
15412rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15413  conftest.$ac_objext conftest.beam conftest.$ac_ext
15414fi
15415
15416fi
15417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15418$as_echo "$ac_cv_func_fork_works" >&6; }
15419
15420else
15421  ac_cv_func_fork_works=$ac_cv_func_fork
15422fi
15423if test "x$ac_cv_func_fork_works" = xcross; then
15424  case $host in
15425    *-*-amigaos* | *-*-msdosdjgpp*)
15426      # Override, as these systems have only a dummy fork() stub
15427      ac_cv_func_fork_works=no
15428      ;;
15429    *)
15430      ac_cv_func_fork_works=yes
15431      ;;
15432  esac
15433  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15434$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15435fi
15436ac_cv_func_vfork_works=$ac_cv_func_vfork
15437if test "x$ac_cv_func_vfork" = xyes; then
15438  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15439$as_echo_n "checking for working vfork... " >&6; }
15440if ${ac_cv_func_vfork_works+:} false; then :
15441  $as_echo_n "(cached) " >&6
15442else
15443  if test "$cross_compiling" = yes; then :
15444  ac_cv_func_vfork_works=cross
15445else
15446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15447/* end confdefs.h.  */
15448/* Thanks to Paul Eggert for this test.  */
15449$ac_includes_default
15450#include <sys/wait.h>
15451#ifdef HAVE_VFORK_H
15452# include <vfork.h>
15453#endif
15454/* On some sparc systems, changes by the child to local and incoming
15455   argument registers are propagated back to the parent.  The compiler
15456   is told about this with #include <vfork.h>, but some compilers
15457   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
15458   static variable whose address is put into a register that is
15459   clobbered by the vfork.  */
15460static void
15461#ifdef __cplusplus
15462sparc_address_test (int arg)
15463# else
15464sparc_address_test (arg) int arg;
15465#endif
15466{
15467  static pid_t child;
15468  if (!child) {
15469    child = vfork ();
15470    if (child < 0) {
15471      perror ("vfork");
15472      _exit(2);
15473    }
15474    if (!child) {
15475      arg = getpid();
15476      write(-1, "", 0);
15477      _exit (arg);
15478    }
15479  }
15480}
15481
15482int
15483main ()
15484{
15485  pid_t parent = getpid ();
15486  pid_t child;
15487
15488  sparc_address_test (0);
15489
15490  child = vfork ();
15491
15492  if (child == 0) {
15493    /* Here is another test for sparc vfork register problems.  This
15494       test uses lots of local variables, at least as many local
15495       variables as main has allocated so far including compiler
15496       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
15497       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
15498       reuse the register of parent for one of the local variables,
15499       since it will think that parent can't possibly be used any more
15500       in this routine.  Assigning to the local variable will thus
15501       munge parent in the parent process.  */
15502    pid_t
15503      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15504      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15505    /* Convince the compiler that p..p7 are live; otherwise, it might
15506       use the same hardware register for all 8 local variables.  */
15507    if (p != p1 || p != p2 || p != p3 || p != p4
15508	|| p != p5 || p != p6 || p != p7)
15509      _exit(1);
15510
15511    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15512       from child file descriptors.  If the child closes a descriptor
15513       before it execs or exits, this munges the parent's descriptor
15514       as well.  Test for this by closing stdout in the child.  */
15515    _exit(close(fileno(stdout)) != 0);
15516  } else {
15517    int status;
15518    struct stat st;
15519
15520    while (wait(&status) != child)
15521      ;
15522    return (
15523	 /* Was there some problem with vforking?  */
15524	 child < 0
15525
15526	 /* Did the child fail?  (This shouldn't happen.)  */
15527	 || status
15528
15529	 /* Did the vfork/compiler bug occur?  */
15530	 || parent != getpid()
15531
15532	 /* Did the file descriptor bug occur?  */
15533	 || fstat(fileno(stdout), &st) != 0
15534	 );
15535  }
15536}
15537_ACEOF
15538if ac_fn_c_try_run "$LINENO"; then :
15539  ac_cv_func_vfork_works=yes
15540else
15541  ac_cv_func_vfork_works=no
15542fi
15543rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15544  conftest.$ac_objext conftest.beam conftest.$ac_ext
15545fi
15546
15547fi
15548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15549$as_echo "$ac_cv_func_vfork_works" >&6; }
15550
15551fi;
15552if test "x$ac_cv_func_fork_works" = xcross; then
15553  ac_cv_func_vfork_works=$ac_cv_func_vfork
15554  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15555$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15556fi
15557
15558if test "x$ac_cv_func_vfork_works" = xyes; then
15559
15560$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15561
15562else
15563
15564$as_echo "#define vfork fork" >>confdefs.h
15565
15566fi
15567if test "x$ac_cv_func_fork_works" = xyes; then
15568
15569$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15570
15571fi
15572
15573  for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
15574                 strrchr strsignal fchmod fstat chmod
15575do :
15576  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15577ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15578if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15579  cat >>confdefs.h <<_ACEOF
15580#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15581_ACEOF
15582
15583fi
15584done
15585
15586  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
15587$as_echo_n "checking for a sed that does not truncate output... " >&6; }
15588if ${ac_cv_path_SED+:} false; then :
15589  $as_echo_n "(cached) " >&6
15590else
15591            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
15592     for ac_i in 1 2 3 4 5 6 7; do
15593       ac_script="$ac_script$as_nl$ac_script"
15594     done
15595     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
15596     { ac_script=; unset ac_script;}
15597     if test -z "$SED"; then
15598  ac_path_SED_found=false
15599  # Loop through the user's path and test for each of PROGNAME-LIST
15600  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15601for as_dir in $PATH
15602do
15603  IFS=$as_save_IFS
15604  test -z "$as_dir" && as_dir=.
15605    for ac_prog in sed gsed; do
15606    for ac_exec_ext in '' $ac_executable_extensions; do
15607      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
15608      as_fn_executable_p "$ac_path_SED" || continue
15609# Check for GNU ac_path_SED and select it if it is found.
15610  # Check for GNU $ac_path_SED
15611case `"$ac_path_SED" --version 2>&1` in
15612*GNU*)
15613  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
15614*)
15615  ac_count=0
15616  $as_echo_n 0123456789 >"conftest.in"
15617  while :
15618  do
15619    cat "conftest.in" "conftest.in" >"conftest.tmp"
15620    mv "conftest.tmp" "conftest.in"
15621    cp "conftest.in" "conftest.nl"
15622    $as_echo '' >> "conftest.nl"
15623    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
15624    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15625    as_fn_arith $ac_count + 1 && ac_count=$as_val
15626    if test $ac_count -gt ${ac_path_SED_max-0}; then
15627      # Best one so far, save it but keep looking for a better one
15628      ac_cv_path_SED="$ac_path_SED"
15629      ac_path_SED_max=$ac_count
15630    fi
15631    # 10*(2^10) chars as input seems more than enough
15632    test $ac_count -gt 10 && break
15633  done
15634  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15635esac
15636
15637      $ac_path_SED_found && break 3
15638    done
15639  done
15640  done
15641IFS=$as_save_IFS
15642  if test -z "$ac_cv_path_SED"; then
15643    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
15644  fi
15645else
15646  ac_cv_path_SED=$SED
15647fi
15648
15649fi
15650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
15651$as_echo "$ac_cv_path_SED" >&6; }
15652 SED="$ac_cv_path_SED"
15653  rm -f conftest.sed
15654
15655  while :
15656  do
15657      POSIX_SHELL=`which bash`
15658      test -x "$POSIX_SHELL" && break
15659      POSIX_SHELL=`which dash`
15660      test -x "$POSIX_SHELL" && break
15661      POSIX_SHELL=/usr/xpg4/bin/sh
15662      test -x "$POSIX_SHELL" && break
15663      POSIX_SHELL=`/bin/sh -c '
15664          exec 2>/dev/null
15665          if ! true ; then exit 1 ; fi
15666          echo /bin/sh'`
15667      test -x "$POSIX_SHELL" && break
15668      as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
15669  done
15670
15671cat >>confdefs.h <<_ACEOF
15672#define POSIX_SHELL "${POSIX_SHELL}"
15673_ACEOF
15674
15675
15676
15677
15678
15679  LIBOPTS_BUILD_BLOCKED=true
15680
15681
15682  NEED_LIBOPTS_DIR=''
15683
15684  # Check whether --enable-local-libopts was given.
15685if test "${enable_local_libopts+set}" = set; then :
15686  enableval=$enable_local_libopts;
15687    if test x$enableval = xyes ; then
15688       { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
15689$as_echo "$as_me: Using supplied libopts tearoff" >&6;}
15690       LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
15691       NEED_LIBOPTS_DIR=true
15692       LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
15693    fi
15694fi
15695
15696
15697  # Check whether --enable-libopts-install was given.
15698if test "${enable_libopts_install+set}" = set; then :
15699  enableval=$enable_libopts_install;
15700fi
15701
15702   if test "X${enable_libopts_install}" = Xyes; then
15703  INSTALL_LIBOPTS_TRUE=
15704  INSTALL_LIBOPTS_FALSE='#'
15705else
15706  INSTALL_LIBOPTS_TRUE='#'
15707  INSTALL_LIBOPTS_FALSE=
15708fi
15709
15710
15711  if test -z "${NEED_LIBOPTS_DIR}" ; then
15712     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
15713$as_echo_n "checking whether autoopts-config can be found... " >&6; }
15714
15715# Check whether --with-autoopts-config was given.
15716if test "${with_autoopts_config+set}" = set; then :
15717  withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
15718else
15719  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
15720$as_echo_n "checking whether autoopts-config is specified... " >&6; }
15721if ${lo_cv_with_autoopts_config+:} false; then :
15722  $as_echo_n "(cached) " >&6
15723else
15724  if autoopts-config --help 2>/dev/null 1>&2
15725        then lo_cv_with_autoopts_config=autoopts-config
15726        elif libopts-config --help 2>/dev/null 1>&2
15727        then lo_cv_with_autoopts_config=libopts-config
15728        else lo_cv_with_autoopts_config=no ; fi
15729fi
15730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
15731$as_echo "$lo_cv_with_autoopts_config" >&6; }
15732
15733fi
15734 # end of AC_ARG_WITH
15735
15736     if ${lo_cv_test_autoopts+:} false; then :
15737  $as_echo_n "(cached) " >&6
15738else
15739
15740        if test -z "${lo_cv_with_autoopts_config}" \
15741                -o X"${lo_cv_with_autoopts_config}" = Xno
15742        then
15743           if autoopts-config --help 2>/dev/null 1>&2
15744           then lo_cv_with_autoopts_config=autoopts-config
15745           elif libopts-config --help 2>/dev/null 1>&2
15746           then lo_cv_with_autoopts_config=libopts-config
15747           else lo_cv_with_autoopts_config=false ; fi
15748        fi
15749        lo_cv_test_autoopts=`
15750            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
15751        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
15752        then lo_cv_test_autoopts=no ; fi
15753
15754fi
15755 # end of CACHE_VAL
15756     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
15757$as_echo "${lo_cv_test_autoopts}" >&6; }
15758
15759     if test "X${lo_cv_test_autoopts}" != Xno
15760     then
15761        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
15762        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
15763     else
15764        LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
15765        LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
15766        NEED_LIBOPTS_DIR=true
15767     fi
15768  fi # end of if test -z "${NEED_LIBOPTS_DIR}"
15769  if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
15770    NEED_LIBOPTS_DIR=''
15771  fi
15772   if test -n "${NEED_LIBOPTS_DIR}"; then
15773  NEED_LIBOPTS_TRUE=
15774  NEED_LIBOPTS_FALSE='#'
15775else
15776  NEED_LIBOPTS_TRUE='#'
15777  NEED_LIBOPTS_FALSE=
15778fi
15779
15780
15781
15782  LIBOPTS_DIR=sntp/libopts
15783
15784
15785# end of AC_DEFUN of LIBOPTS_CHECK_COMMON
15786
15787  # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD
15788
15789
15790
15791
15792ntp_pkgconfig_min_version='0.15.0'
15793if test -n "$ac_tool_prefix"; then
15794  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15795set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15797$as_echo_n "checking for $ac_word... " >&6; }
15798if ${ac_cv_path_PKG_CONFIG+:} false; then :
15799  $as_echo_n "(cached) " >&6
15800else
15801  case $PKG_CONFIG in
15802  [\\/]* | ?:[\\/]*)
15803  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15804  ;;
15805  *)
15806  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15807for as_dir in $PATH
15808do
15809  IFS=$as_save_IFS
15810  test -z "$as_dir" && as_dir=.
15811    for ac_exec_ext in '' $ac_executable_extensions; do
15812  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15813    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15815    break 2
15816  fi
15817done
15818  done
15819IFS=$as_save_IFS
15820
15821  ;;
15822esac
15823fi
15824PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15825if test -n "$PKG_CONFIG"; then
15826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15827$as_echo "$PKG_CONFIG" >&6; }
15828else
15829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15830$as_echo "no" >&6; }
15831fi
15832
15833
15834fi
15835if test -z "$ac_cv_path_PKG_CONFIG"; then
15836  ac_pt_PKG_CONFIG=$PKG_CONFIG
15837  # Extract the first word of "pkg-config", so it can be a program name with args.
15838set dummy pkg-config; ac_word=$2
15839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15840$as_echo_n "checking for $ac_word... " >&6; }
15841if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15842  $as_echo_n "(cached) " >&6
15843else
15844  case $ac_pt_PKG_CONFIG in
15845  [\\/]* | ?:[\\/]*)
15846  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15847  ;;
15848  *)
15849  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15850for as_dir in $PATH
15851do
15852  IFS=$as_save_IFS
15853  test -z "$as_dir" && as_dir=.
15854    for ac_exec_ext in '' $ac_executable_extensions; do
15855  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15856    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15858    break 2
15859  fi
15860done
15861  done
15862IFS=$as_save_IFS
15863
15864  ;;
15865esac
15866fi
15867ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15868if test -n "$ac_pt_PKG_CONFIG"; then
15869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15870$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15871else
15872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15873$as_echo "no" >&6; }
15874fi
15875
15876  if test "x$ac_pt_PKG_CONFIG" = x; then
15877    PKG_CONFIG=""
15878  else
15879    case $cross_compiling:$ac_tool_warned in
15880yes:)
15881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15883ac_tool_warned=yes ;;
15884esac
15885    PKG_CONFIG=$ac_pt_PKG_CONFIG
15886  fi
15887else
15888  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15889fi
15890
15891{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
15892{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
15893
15894case "$PKG_CONFIG" in
15895 /*)
15896    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
15897$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
15898    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
15899	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15900$as_echo "yes" >&6; }
15901    else
15902	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15903$as_echo "no" >&6; }
15904	PKG_CONFIG=""
15905    fi
15906    ;;
15907esac
15908
15909
15910
15911
15912# Check whether --enable-local-libevent was given.
15913if test "${enable_local_libevent+set}" = set; then :
15914  enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
15915else
15916  ntp_use_local_libevent=${ntp_use_local_libevent-detect}
15917
15918fi
15919
15920
15921
15922
15923
15924ntp_libevent_min_version=2
15925ntp_libevent_tearoff=sntp/libevent
15926
15927
15928
15929
15930
15931case "$ntp_use_local_libevent" in
15932 yes)
15933    ;;
15934 *) # If we have (a good enough) pkg-config, see if it can find libevent
15935    case "$PKG_CONFIG" in
15936     /*)
15937	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
15938$as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
15939	if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
15940	then
15941	    ntp_use_local_libevent=no
15942	    ntp_libevent_version="`$PKG_CONFIG --modversion libevent`"
15943	    case "$ntp_libevent_version" in
15944	     *.*) ;;
15945	     *) ntp_libevent_version='(unknown)' ;;
15946	    esac
15947	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_libevent_version" >&5
15948$as_echo "yes, version $ntp_libevent_version" >&6; }
15949	    CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
15950	    CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
15951	    # HMS: I hope the following is accurate.
15952	    # We don't need -levent, we only need  -levent_core.
15953	    # While we could grab only the -L stuff, there *might* be
15954	    # other flags there we want.  Originally we just removed -levent
15955	    # but then somebody decided to install -levent-2.0
15956	    # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
15957	    # So now we dance...
15958	    LDADD_LIBEVENT=
15959	    for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
15960	    do
15961		case "$i" in
15962		 -D*) ;;
15963		 -levent*) ;;
15964		 *) case "$LDADD_LIBEVENT" in
15965		     '') LDADD_LIBEVENT="$i" ;;
15966		     *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
15967		    esac
15968		    ;;
15969		esac
15970	    done
15971	    case "$LIBISC_PTHREADS_NOTHREADS" in
15972	     pthreads)
15973		LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
15974	    esac
15975	    LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
15976	else
15977	    ntp_use_local_libevent=yes
15978	    # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
15979	    # is "pthreads"?
15980	    CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
15981	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15982$as_echo "no" >&6; }
15983	fi
15984	;;
15985     *)
15986	ntp_use_local_libevent=yes
15987	;;
15988    esac
15989    ;;
15990esac
15991
15992case "$ntp_use_local_libevent" in
15993 yes)
15994    { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
15995$as_echo "$as_me: Using libevent tearoff" >&6;}
15996    CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
15997    case "$LIBISC_PTHREADS_NOTHREADS" in
15998     pthreads)
15999	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
16000	;;
16001     *)
16002	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
16003    esac
16004esac
16005
16006
16007 if test "x$ntp_use_local_libevent" = "xyes"; then
16008  BUILD_LIBEVENT_TRUE=
16009  BUILD_LIBEVENT_FALSE='#'
16010else
16011  BUILD_LIBEVENT_TRUE='#'
16012  BUILD_LIBEVENT_FALSE=
16013fi
16014
16015
16016
16017
16018
16019
16020# Expose a cross-compilation indicator to makefiles
16021 if test $build != $host; then
16022  NTP_CROSSCOMPILE_TRUE=
16023  NTP_CROSSCOMPILE_FALSE='#'
16024else
16025  NTP_CROSSCOMPILE_TRUE='#'
16026  NTP_CROSSCOMPILE_FALSE=
16027fi
16028
16029
16030
16031ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16032if test "x$ac_cv_type_size_t" = xyes; then :
16033
16034else
16035
16036cat >>confdefs.h <<_ACEOF
16037#define size_t unsigned int
16038_ACEOF
16039
16040fi
16041
16042
16043            # Check whether --enable-c99-snprintf was given.
16044if test "${enable_c99_snprintf+set}" = set; then :
16045  enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
16046else
16047  force_c99_snprintf=no
16048
16049fi
16050
16051    case "$force_c99_snprintf" in
16052     yes)
16053	hw_force_rpl_snprintf=yes
16054	hw_force_rpl_vsnprintf=yes
16055    esac
16056
16057
16058
16059
16060
16061
16062  for ac_header in $ac_header_list
16063do :
16064  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16065ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16066"
16067if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16068  cat >>confdefs.h <<_ACEOF
16069#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16070_ACEOF
16071
16072fi
16073
16074done
16075
16076
16077
16078
16079
16080
16081
16082  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16083$as_echo_n "checking for unsigned long long int... " >&6; }
16084if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16085  $as_echo_n "(cached) " >&6
16086else
16087  ac_cv_type_unsigned_long_long_int=yes
16088     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16089       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090/* end confdefs.h.  */
16091
16092  /* For now, do not test the preprocessor; as of 2007 there are too many
16093	 implementations with broken preprocessors.  Perhaps this can
16094	 be revisited in 2012.  In the meantime, code should not expect
16095	 #if to work with literals wider than 32 bits.  */
16096      /* Test literals.  */
16097      long long int ll = 9223372036854775807ll;
16098      long long int nll = -9223372036854775807LL;
16099      unsigned long long int ull = 18446744073709551615ULL;
16100      /* Test constant expressions.   */
16101      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16102		     ? 1 : -1)];
16103      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16104		     ? 1 : -1)];
16105      int i = 63;
16106int
16107main ()
16108{
16109/* Test availability of runtime routines for shift and division.  */
16110      long long int llmax = 9223372036854775807ll;
16111      unsigned long long int ullmax = 18446744073709551615ull;
16112      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16113	      | (llmax / ll) | (llmax % ll)
16114	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16115	      | (ullmax / ull) | (ullmax % ull));
16116  ;
16117  return 0;
16118}
16119
16120_ACEOF
16121if ac_fn_c_try_link "$LINENO"; then :
16122
16123else
16124  ac_cv_type_unsigned_long_long_int=no
16125fi
16126rm -f core conftest.err conftest.$ac_objext \
16127    conftest$ac_exeext conftest.$ac_ext
16128     fi
16129fi
16130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16131$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16132  if test $ac_cv_type_unsigned_long_long_int = yes; then
16133
16134$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16135
16136  fi
16137
16138
16139      ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
16140if test "x$ac_cv_func_vsnprintf" = xyes; then :
16141  hw_cv_func_vsnprintf=yes
16142else
16143  hw_cv_func_vsnprintf=no
16144fi
16145
16146  if test "$hw_cv_func_vsnprintf" = yes; then :
16147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
16148$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
16149if ${hw_cv_func_vsnprintf_c99+:} false; then :
16150  $as_echo_n "(cached) " >&6
16151else
16152  if test "$cross_compiling" = yes; then :
16153  hw_cv_func_vsnprintf_c99=no
16154else
16155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16156/* end confdefs.h.  */
16157#if HAVE_STDARG_H
16158          #include <stdarg.h>
16159          #endif
16160          #include <stdio.h>
16161          static int testprintf(char *buf, size_t size, const char *format, ...)
16162          {
16163            int result;
16164            va_list ap;
16165            va_start(ap, format);
16166            result = vsnprintf(buf, size, format, ap);
16167            va_end(ap);
16168            return result;
16169          }
16170int
16171main ()
16172{
16173char buf[43];
16174          if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
16175              testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
16176              buf[0] != 'T' || buf[3] != '\0')
16177            return 1;
16178  ;
16179  return 0;
16180}
16181_ACEOF
16182if ac_fn_c_try_run "$LINENO"; then :
16183  hw_cv_func_vsnprintf_c99=yes
16184else
16185  hw_cv_func_vsnprintf_c99=no
16186fi
16187rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16188  conftest.$ac_objext conftest.beam conftest.$ac_ext
16189fi
16190
16191fi
16192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
16193$as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
16194else
16195  hw_cv_func_vsnprintf_c99=no
16196fi
16197
16198$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16199
16200  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
16201$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
16202  if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
16203  hw_use_rpl_vsnprintf=yes
16204else
16205  hw_use_rpl_vsnprintf=no
16206fi
16207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
16208$as_echo "$hw_use_rpl_vsnprintf" >&6; }
16209  if test "$hw_use_rpl_vsnprintf" = yes; then :
16210
16211$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
16212
16213    if test ${hw_nodef_vsnprintf=no} = no; then :
16214
16215$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
16216
16217fi
16218    for ac_header in inttypes.h locale.h stddef.h stdint.h
16219do :
16220  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16221ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16222if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16223  cat >>confdefs.h <<_ACEOF
16224#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16225_ACEOF
16226
16227fi
16228
16229done
16230
16231    ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
16232"
16233if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
16234
16235cat >>confdefs.h <<_ACEOF
16236#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
16237_ACEOF
16238
16239
16240fi
16241ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
16242"
16243if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
16244
16245cat >>confdefs.h <<_ACEOF
16246#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
16247_ACEOF
16248
16249
16250fi
16251
16252
16253  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
16254$as_echo_n "checking for long double... " >&6; }
16255if ${ac_cv_type_long_double+:} false; then :
16256  $as_echo_n "(cached) " >&6
16257else
16258  if test "$GCC" = yes; then
16259       ac_cv_type_long_double=yes
16260     else
16261       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16262/* end confdefs.h.  */
16263/* The Stardent Vistra knows sizeof (long double), but does
16264		 not support it.  */
16265	      long double foo = 0.0L;
16266int
16267main ()
16268{
16269static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
16270	      sizeof (double) <= sizeof (long double))];
16271test_array [0] = 0;
16272return test_array [0];
16273
16274  ;
16275  return 0;
16276}
16277_ACEOF
16278if ac_fn_c_try_compile "$LINENO"; then :
16279  ac_cv_type_long_double=yes
16280else
16281  ac_cv_type_long_double=no
16282fi
16283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16284     fi
16285fi
16286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
16287$as_echo "$ac_cv_type_long_double" >&6; }
16288  if test $ac_cv_type_long_double = yes; then
16289
16290$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
16291
16292  fi
16293
16294
16295
16296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16297$as_echo_n "checking for long long int... " >&6; }
16298if ${ac_cv_type_long_long_int+:} false; then :
16299  $as_echo_n "(cached) " >&6
16300else
16301  ac_cv_type_long_long_int=yes
16302      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16303	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16304	if test $ac_cv_type_long_long_int = yes; then
16305	  	  	  	  if test "$cross_compiling" = yes; then :
16306  :
16307else
16308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16309/* end confdefs.h.  */
16310#include <limits.h>
16311		 #ifndef LLONG_MAX
16312		 # define HALF \
16313			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16314		 # define LLONG_MAX (HALF - 1 + HALF)
16315		 #endif
16316int
16317main ()
16318{
16319long long int n = 1;
16320		 int i;
16321		 for (i = 0; ; i++)
16322		   {
16323		     long long int m = n << i;
16324		     if (m >> i != n)
16325		       return 1;
16326		     if (LLONG_MAX / 2 < m)
16327		       break;
16328		   }
16329		 return 0;
16330  ;
16331  return 0;
16332}
16333_ACEOF
16334if ac_fn_c_try_run "$LINENO"; then :
16335
16336else
16337  ac_cv_type_long_long_int=no
16338fi
16339rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16340  conftest.$ac_objext conftest.beam conftest.$ac_ext
16341fi
16342
16343	fi
16344      fi
16345fi
16346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16347$as_echo "$ac_cv_type_long_long_int" >&6; }
16348  if test $ac_cv_type_long_long_int = yes; then
16349
16350$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16351
16352  fi
16353
16354
16355  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16356$as_echo_n "checking for unsigned long long int... " >&6; }
16357if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16358  $as_echo_n "(cached) " >&6
16359else
16360  ac_cv_type_unsigned_long_long_int=yes
16361     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16362       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363/* end confdefs.h.  */
16364
16365  /* For now, do not test the preprocessor; as of 2007 there are too many
16366	 implementations with broken preprocessors.  Perhaps this can
16367	 be revisited in 2012.  In the meantime, code should not expect
16368	 #if to work with literals wider than 32 bits.  */
16369      /* Test literals.  */
16370      long long int ll = 9223372036854775807ll;
16371      long long int nll = -9223372036854775807LL;
16372      unsigned long long int ull = 18446744073709551615ULL;
16373      /* Test constant expressions.   */
16374      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16375		     ? 1 : -1)];
16376      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16377		     ? 1 : -1)];
16378      int i = 63;
16379int
16380main ()
16381{
16382/* Test availability of runtime routines for shift and division.  */
16383      long long int llmax = 9223372036854775807ll;
16384      unsigned long long int ullmax = 18446744073709551615ull;
16385      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16386	      | (llmax / ll) | (llmax % ll)
16387	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16388	      | (ullmax / ull) | (ullmax % ull));
16389  ;
16390  return 0;
16391}
16392
16393_ACEOF
16394if ac_fn_c_try_link "$LINENO"; then :
16395
16396else
16397  ac_cv_type_unsigned_long_long_int=no
16398fi
16399rm -f core conftest.err conftest.$ac_objext \
16400    conftest$ac_exeext conftest.$ac_ext
16401     fi
16402fi
16403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16404$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16405  if test $ac_cv_type_unsigned_long_long_int = yes; then
16406
16407$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16408
16409  fi
16410
16411    ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16412if test "x$ac_cv_type_size_t" = xyes; then :
16413
16414else
16415
16416cat >>confdefs.h <<_ACEOF
16417#define size_t unsigned int
16418_ACEOF
16419
16420fi
16421
16422
16423
16424  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
16425if test "x$ac_cv_type_intmax_t" = xyes; then :
16426
16427$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
16428
16429else
16430  test $ac_cv_type_long_long_int = yes \
16431       && ac_type='long long int' \
16432       || ac_type='long int'
16433
16434cat >>confdefs.h <<_ACEOF
16435#define intmax_t $ac_type
16436_ACEOF
16437
16438fi
16439
16440
16441
16442
16443  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
16444if test "x$ac_cv_type_uintmax_t" = xyes; then :
16445
16446$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
16447
16448else
16449  test $ac_cv_type_unsigned_long_long_int = yes \
16450       && ac_type='unsigned long long int' \
16451       || ac_type='unsigned long int'
16452
16453cat >>confdefs.h <<_ACEOF
16454#define uintmax_t $ac_type
16455_ACEOF
16456
16457fi
16458
16459
16460
16461  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16462if test "x$ac_cv_type_uintptr_t" = xyes; then :
16463
16464$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16465
16466else
16467  for ac_type in 'unsigned int' 'unsigned long int' \
16468	'unsigned long long int'; do
16469       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16470/* end confdefs.h.  */
16471$ac_includes_default
16472int
16473main ()
16474{
16475static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16476test_array [0] = 0;
16477return test_array [0];
16478
16479  ;
16480  return 0;
16481}
16482_ACEOF
16483if ac_fn_c_try_compile "$LINENO"; then :
16484
16485cat >>confdefs.h <<_ACEOF
16486#define uintptr_t $ac_type
16487_ACEOF
16488
16489	  ac_type=
16490fi
16491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16492       test -z "$ac_type" && break
16493     done
16494fi
16495
16496
16497    ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16498if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
16499
16500cat >>confdefs.h <<_ACEOF
16501#define HAVE_PTRDIFF_T 1
16502_ACEOF
16503
16504
16505fi
16506
16507    for ac_func in localeconv
16508do :
16509  ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
16510if test "x$ac_cv_func_localeconv" = xyes; then :
16511  cat >>confdefs.h <<_ACEOF
16512#define HAVE_LOCALECONV 1
16513_ACEOF
16514
16515fi
16516done
16517
16518
16519  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
16520  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16521$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16522if ${ac_cv_c_const+:} false; then :
16523  $as_echo_n "(cached) " >&6
16524else
16525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16526/* end confdefs.h.  */
16527
16528int
16529main ()
16530{
16531
16532#ifndef __cplusplus
16533  /* Ultrix mips cc rejects this sort of thing.  */
16534  typedef int charset[2];
16535  const charset cs = { 0, 0 };
16536  /* SunOS 4.1.1 cc rejects this.  */
16537  char const *const *pcpcc;
16538  char **ppc;
16539  /* NEC SVR4.0.2 mips cc rejects this.  */
16540  struct point {int x, y;};
16541  static struct point const zero = {0,0};
16542  /* AIX XL C 1.02.0.0 rejects this.
16543     It does not let you subtract one const X* pointer from another in
16544     an arm of an if-expression whose if-part is not a constant
16545     expression */
16546  const char *g = "string";
16547  pcpcc = &g + (g ? g-g : 0);
16548  /* HPUX 7.0 cc rejects these. */
16549  ++pcpcc;
16550  ppc = (char**) pcpcc;
16551  pcpcc = (char const *const *) ppc;
16552  { /* SCO 3.2v4 cc rejects this sort of thing.  */
16553    char tx;
16554    char *t = &tx;
16555    char const *s = 0 ? (char *) 0 : (char const *) 0;
16556
16557    *t++ = 0;
16558    if (s) return 0;
16559  }
16560  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16561    int x[] = {25, 17};
16562    const int *foo = &x[0];
16563    ++foo;
16564  }
16565  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16566    typedef const int *iptr;
16567    iptr p = 0;
16568    ++p;
16569  }
16570  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16571       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16572    struct s { int j; const int *ap[3]; } bx;
16573    struct s *b = &bx; b->j = 5;
16574  }
16575  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16576    const int foo = 10;
16577    if (!foo) return 0;
16578  }
16579  return !cs[0] && !zero.x;
16580#endif
16581
16582  ;
16583  return 0;
16584}
16585_ACEOF
16586if ac_fn_c_try_compile "$LINENO"; then :
16587  ac_cv_c_const=yes
16588else
16589  ac_cv_c_const=no
16590fi
16591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16592fi
16593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16594$as_echo "$ac_cv_c_const" >&6; }
16595if test $ac_cv_c_const = no; then
16596
16597$as_echo "#define const /**/" >>confdefs.h
16598
16599fi
16600
16601
16602
16603
16604    case " $LIBOBJS " in
16605  *" snprintf.$ac_objext "* ) ;;
16606  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
16607 ;;
16608esac
16609
16610    _hw_cv_func_xprintf_replace_done=yes
16611fi
16612
16613fi
16614
16615
16616    ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16617if test "x$ac_cv_func_snprintf" = xyes; then :
16618  hw_cv_func_snprintf=yes
16619else
16620  hw_cv_func_snprintf=no
16621fi
16622
16623  if test "$hw_cv_func_snprintf" = yes; then :
16624  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
16625$as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
16626if ${hw_cv_func_snprintf_c99+:} false; then :
16627  $as_echo_n "(cached) " >&6
16628else
16629  if test "$cross_compiling" = yes; then :
16630  hw_cv_func_snprintf_c99=no
16631else
16632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16633/* end confdefs.h.  */
16634#include <stdio.h>
16635int
16636main ()
16637{
16638char buf[43];
16639          if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
16640              snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
16641              buf[0] != 'T' || buf[3] != '\0')
16642            return 1;
16643  ;
16644  return 0;
16645}
16646_ACEOF
16647if ac_fn_c_try_run "$LINENO"; then :
16648  hw_cv_func_snprintf_c99=yes
16649else
16650  hw_cv_func_snprintf_c99=no
16651fi
16652rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16653  conftest.$ac_objext conftest.beam conftest.$ac_ext
16654fi
16655
16656fi
16657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
16658$as_echo "$hw_cv_func_snprintf_c99" >&6; }
16659else
16660  hw_cv_func_snprintf_c99=no
16661fi
16662
16663$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16664
16665  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
16666$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
16667  if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
16668  hw_use_rpl_snprintf=yes
16669else
16670  hw_use_rpl_snprintf=no
16671fi
16672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
16673$as_echo "$hw_use_rpl_snprintf" >&6; }
16674  if test "$hw_use_rpl_snprintf" = yes; then :
16675
16676$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
16677
16678    if test ${hw_nodef_snprintf=no} = no; then :
16679
16680$as_echo "#define snprintf rpl_snprintf" >>confdefs.h
16681
16682fi
16683
16684  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
16685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16686$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16687if ${ac_cv_c_const+:} false; then :
16688  $as_echo_n "(cached) " >&6
16689else
16690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16691/* end confdefs.h.  */
16692
16693int
16694main ()
16695{
16696
16697#ifndef __cplusplus
16698  /* Ultrix mips cc rejects this sort of thing.  */
16699  typedef int charset[2];
16700  const charset cs = { 0, 0 };
16701  /* SunOS 4.1.1 cc rejects this.  */
16702  char const *const *pcpcc;
16703  char **ppc;
16704  /* NEC SVR4.0.2 mips cc rejects this.  */
16705  struct point {int x, y;};
16706  static struct point const zero = {0,0};
16707  /* AIX XL C 1.02.0.0 rejects this.
16708     It does not let you subtract one const X* pointer from another in
16709     an arm of an if-expression whose if-part is not a constant
16710     expression */
16711  const char *g = "string";
16712  pcpcc = &g + (g ? g-g : 0);
16713  /* HPUX 7.0 cc rejects these. */
16714  ++pcpcc;
16715  ppc = (char**) pcpcc;
16716  pcpcc = (char const *const *) ppc;
16717  { /* SCO 3.2v4 cc rejects this sort of thing.  */
16718    char tx;
16719    char *t = &tx;
16720    char const *s = 0 ? (char *) 0 : (char const *) 0;
16721
16722    *t++ = 0;
16723    if (s) return 0;
16724  }
16725  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16726    int x[] = {25, 17};
16727    const int *foo = &x[0];
16728    ++foo;
16729  }
16730  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16731    typedef const int *iptr;
16732    iptr p = 0;
16733    ++p;
16734  }
16735  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16736       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16737    struct s { int j; const int *ap[3]; } bx;
16738    struct s *b = &bx; b->j = 5;
16739  }
16740  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16741    const int foo = 10;
16742    if (!foo) return 0;
16743  }
16744  return !cs[0] && !zero.x;
16745#endif
16746
16747  ;
16748  return 0;
16749}
16750_ACEOF
16751if ac_fn_c_try_compile "$LINENO"; then :
16752  ac_cv_c_const=yes
16753else
16754  ac_cv_c_const=no
16755fi
16756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16757fi
16758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16759$as_echo "$ac_cv_c_const" >&6; }
16760if test $ac_cv_c_const = no; then
16761
16762$as_echo "#define const /**/" >>confdefs.h
16763
16764fi
16765
16766
16767
16768
16769    case " $LIBOBJS " in
16770  *" snprintf.$ac_objext "* ) ;;
16771  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
16772 ;;
16773esac
16774
16775    _hw_cv_func_xprintf_replace_done=yes
16776fi
16777
16778fi
16779
16780
16781
16782
16783
16784# HMS: Save $LIBS and empty it.
16785# any LIBS we add here should go in to LDADD_LIBNTP
16786
16787__LIBS=$LIBS
16788LIBS=
16789
16790
16791
16792# [Bug 2332] because we need to know if we are using GNU ld...
16793
16794
16795# Check whether --with-gnu-ld was given.
16796if test "${with_gnu_ld+set}" = set; then :
16797  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16798else
16799  with_gnu_ld=no
16800fi
16801
16802ac_prog=ld
16803if test yes = "$GCC"; then
16804  # Check if gcc -print-prog-name=ld gives a path.
16805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16806$as_echo_n "checking for ld used by $CC... " >&6; }
16807  case $host in
16808  *-*-mingw*)
16809    # gcc leaves a trailing carriage return, which upsets mingw
16810    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16811  *)
16812    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16813  esac
16814  case $ac_prog in
16815    # Accept absolute paths.
16816    [\\/]* | ?:[\\/]*)
16817      re_direlt='/[^/][^/]*/\.\./'
16818      # Canonicalize the pathname of ld
16819      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16820      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16821	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16822      done
16823      test -z "$LD" && LD=$ac_prog
16824      ;;
16825  "")
16826    # If it fails, then pretend we aren't using GCC.
16827    ac_prog=ld
16828    ;;
16829  *)
16830    # If it is relative, then search for the first ld in PATH.
16831    with_gnu_ld=unknown
16832    ;;
16833  esac
16834elif test yes = "$with_gnu_ld"; then
16835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16836$as_echo_n "checking for GNU ld... " >&6; }
16837else
16838  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16839$as_echo_n "checking for non-GNU ld... " >&6; }
16840fi
16841if ${lt_cv_path_LD+:} false; then :
16842  $as_echo_n "(cached) " >&6
16843else
16844  if test -z "$LD"; then
16845  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16846  for ac_dir in $PATH; do
16847    IFS=$lt_save_ifs
16848    test -z "$ac_dir" && ac_dir=.
16849    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16850      lt_cv_path_LD=$ac_dir/$ac_prog
16851      # Check to see if the program is GNU ld.  I'd rather use --version,
16852      # but apparently some variants of GNU ld only accept -v.
16853      # Break only if it was the GNU/non-GNU ld that we prefer.
16854      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16855      *GNU* | *'with BFD'*)
16856	test no != "$with_gnu_ld" && break
16857	;;
16858      *)
16859	test yes != "$with_gnu_ld" && break
16860	;;
16861      esac
16862    fi
16863  done
16864  IFS=$lt_save_ifs
16865else
16866  lt_cv_path_LD=$LD # Let the user override the test with a path.
16867fi
16868fi
16869
16870LD=$lt_cv_path_LD
16871if test -n "$LD"; then
16872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16873$as_echo "$LD" >&6; }
16874else
16875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16876$as_echo "no" >&6; }
16877fi
16878test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16880$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16881if ${lt_cv_prog_gnu_ld+:} false; then :
16882  $as_echo_n "(cached) " >&6
16883else
16884  # I'd rather use --version here, but apparently some GNU lds only accept -v.
16885case `$LD -v 2>&1 </dev/null` in
16886*GNU* | *'with BFD'*)
16887  lt_cv_prog_gnu_ld=yes
16888  ;;
16889*)
16890  lt_cv_prog_gnu_ld=no
16891  ;;
16892esac
16893fi
16894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16895$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16896with_gnu_ld=$lt_cv_prog_gnu_ld
16897
16898
16899
16900
16901
16902
16903
16904
16905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
16906$as_echo_n "checking for directory path separator... " >&6; }
16907if ${ntp_cv_dir_sep+:} false; then :
16908  $as_echo_n "(cached) " >&6
16909else
16910
16911	case "$ntp_cv_dir_sep" in
16912	 '')
16913	    case "$host_os" in
16914	     *djgpp | *mingw32* | *emx*)
16915		ntp_cv_dir_sep="'\\'"
16916		;;
16917	     *)
16918		ntp_cv_dir_sep="'/'"
16919		;;
16920	    esac
16921	esac
16922
16923
16924fi
16925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
16926$as_echo "$ntp_cv_dir_sep" >&6; }
16927
16928cat >>confdefs.h <<_ACEOF
16929#define DIR_SEP $ntp_cv_dir_sep
16930_ACEOF
16931
16932
16933
16934    NTP_ORIG_LIBS="$LIBS"
16935
16936# Check whether --with-lineeditlibs was given.
16937if test "${with_lineeditlibs+set}" = set; then :
16938  withval=$with_lineeditlibs; use_lineeditlibs="$withval"
16939else
16940  use_lineeditlibs="edit,editline"
16941
16942fi
16943
16944    { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
16945$as_echo_n "checking line editing libraries... " >&6; }
16946    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
16947$as_echo "$use_lineeditlibs" >&6; }
16948    case "$use_lineeditlibs" in
16949     no)
16950	ntp_lib_lineedit=no
16951	;;
16952     *)
16953	for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
16954	    for term_lib in "" termcap curses ncurses; do
16955		case "$term_lib" in
16956		 '')
16957		    TRY_LIB="-l$lineedit_lib"
16958		    ;;
16959		 *)
16960		    TRY_LIB="-l$lineedit_lib -l$term_lib"
16961		    ;;
16962		esac
16963		LIBS="$NTP_ORIG_LIBS $TRY_LIB"
16964		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
16965$as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
16966		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16967/* end confdefs.h.  */
16968
16969/* Override any GCC internal prototype to avoid an error.
16970   Use char because int might match the return type of a GCC
16971   builtin and then its argument prototype would still apply.  */
16972#ifdef __cplusplus
16973extern "C"
16974#endif
16975char readline ();
16976int
16977main ()
16978{
16979return readline ();
16980  ;
16981  return 0;
16982}
16983_ACEOF
16984if ac_fn_c_try_link "$LINENO"; then :
16985  ntp_lib_lineedit="$TRY_LIB"
16986fi
16987rm -f core conftest.err conftest.$ac_objext \
16988    conftest$ac_exeext conftest.$ac_ext
16989		case "$ntp_lib_lineedit" in
16990		 '')
16991		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16992$as_echo "no" >&6; }
16993		    ;;
16994		 *)
16995		    # Use readline()
16996		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16997$as_echo "yes" >&6; }
16998		    break
16999		esac
17000		case "$term_lib" in
17001		 '')
17002		    # do not try el_gets without a terminal library
17003		    ;;
17004		 *)
17005		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
17006$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
17007		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17008/* end confdefs.h.  */
17009
17010/* Override any GCC internal prototype to avoid an error.
17011   Use char because int might match the return type of a GCC
17012   builtin and then its argument prototype would still apply.  */
17013#ifdef __cplusplus
17014extern "C"
17015#endif
17016char el_gets ();
17017int
17018main ()
17019{
17020return el_gets ();
17021  ;
17022  return 0;
17023}
17024_ACEOF
17025if ac_fn_c_try_link "$LINENO"; then :
17026  ntp_lib_lineedit="$TRY_LIB"
17027fi
17028rm -f core conftest.err conftest.$ac_objext \
17029    conftest$ac_exeext conftest.$ac_ext
17030		    case "$ntp_lib_lineedit" in
17031		     '')
17032			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17033$as_echo "no" >&6; }
17034			;;
17035		     *) # Use el_gets()
17036			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17037$as_echo "yes" >&6; }
17038			break
17039			;;
17040		    esac	# $ntp_lib_lineedit
17041		esac		# $term_lib
17042	    done
17043	    case "$ntp_lib_lineedit" in
17044	     '')
17045		;;
17046	     *)
17047		break
17048		;;
17049	    esac
17050	done
17051	LIBS="$NTP_ORIG_LIBS"
17052	;;
17053    esac	# $use_lineeditlibs
17054
17055    case "$ntp_lib_lineedit" in
17056     '')
17057	ntp_lib_lineedit="no"
17058	;;
17059     no)
17060	;;
17061     *)
17062	EDITLINE_LIBS="$ntp_lib_lineedit"
17063
17064	;;
17065    esac	# $ntp_lib_lineedit
17066
17067    case "$ntp_lib_lineedit" in
17068     no)
17069	;;
17070     *)
17071	for ac_header in readline.h readline/readline.h histedit.h
17072do :
17073  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17074ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17075if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17076  cat >>confdefs.h <<_ACEOF
17077#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17078_ACEOF
17079
17080fi
17081
17082done
17083
17084	for ac_header in history.h readline/history.h
17085do :
17086  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17087ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17088if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17089  cat >>confdefs.h <<_ACEOF
17090#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17091_ACEOF
17092
17093fi
17094
17095done
17096
17097
17098	case "$ac_cv_header_histedit_h" in
17099	 yes)
17100	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
17101$as_echo_n "checking number of arguments to el_init()... " >&6; }
17102if ${ntp_cv_el_init_args+:} false; then :
17103  $as_echo_n "(cached) " >&6
17104else
17105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17106/* end confdefs.h.  */
17107
17108			    #include <stdio.h>
17109			    #include <histedit.h>
17110
17111int
17112main ()
17113{
17114
17115			    el_init("conftest", stdin, stdout, stderr);
17116
17117
17118  ;
17119  return 0;
17120}
17121_ACEOF
17122if ac_fn_c_try_compile "$LINENO"; then :
17123  ntp_cv_el_init_args=4
17124else
17125  ntp_cv_el_init_args=3
17126
17127fi
17128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17129
17130fi
17131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
17132$as_echo "$ntp_cv_el_init_args" >&6; }
17133
17134cat >>confdefs.h <<_ACEOF
17135#define EL_INIT_ARGS $ntp_cv_el_init_args
17136_ACEOF
17137
17138	esac
17139
17140	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
17141$as_echo_n "checking whether readline supports history... " >&6; }
17142
17143	ntp_lib_lineedit_history="no"
17144	ORIG_LIBS="$LIBS"
17145	LIBS="$ORIG_LIBS $ntp_lib_lineedit"
17146	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17147/* end confdefs.h.  */
17148
17149/* Override any GCC internal prototype to avoid an error.
17150   Use char because int might match the return type of a GCC
17151   builtin and then its argument prototype would still apply.  */
17152#ifdef __cplusplus
17153extern "C"
17154#endif
17155char add_history ();
17156int
17157main ()
17158{
17159return add_history ();
17160  ;
17161  return 0;
17162}
17163_ACEOF
17164if ac_fn_c_try_link "$LINENO"; then :
17165  ntp_lib_lineedit_history="yes"
17166fi
17167rm -f core conftest.err conftest.$ac_objext \
17168    conftest$ac_exeext conftest.$ac_ext
17169	LIBS="$ORIG_LIBS"
17170
17171	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
17172$as_echo "$ntp_lib_lineedit_history" >&6; }
17173
17174	case "$ntp_lib_lineedit_history" in
17175	 yes)
17176
17177$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
17178
17179	esac
17180    esac	# $ntp_lib_lineedit
17181    { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
17182    { ORIG_LIBS=; unset ORIG_LIBS;}
17183    { TRY_LIB=; unset TRY_LIB;}
17184    { use_lineeditlibs=; unset use_lineeditlibs;}
17185
17186
17187LIBM=
17188case "$host" in
17189 *-*-darwin*)
17190    ;;
17191 *)
17192    _libs=$LIBS
17193    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
17194$as_echo_n "checking for library containing cos... " >&6; }
17195if ${ac_cv_search_cos+:} false; then :
17196  $as_echo_n "(cached) " >&6
17197else
17198  ac_func_search_save_LIBS=$LIBS
17199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17200/* end confdefs.h.  */
17201
17202/* Override any GCC internal prototype to avoid an error.
17203   Use char because int might match the return type of a GCC
17204   builtin and then its argument prototype would still apply.  */
17205#ifdef __cplusplus
17206extern "C"
17207#endif
17208char cos ();
17209int
17210main ()
17211{
17212return cos ();
17213  ;
17214  return 0;
17215}
17216_ACEOF
17217for ac_lib in '' m; do
17218  if test -z "$ac_lib"; then
17219    ac_res="none required"
17220  else
17221    ac_res=-l$ac_lib
17222    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17223  fi
17224  if ac_fn_c_try_link "$LINENO"; then :
17225  ac_cv_search_cos=$ac_res
17226fi
17227rm -f core conftest.err conftest.$ac_objext \
17228    conftest$ac_exeext
17229  if ${ac_cv_search_cos+:} false; then :
17230  break
17231fi
17232done
17233if ${ac_cv_search_cos+:} false; then :
17234
17235else
17236  ac_cv_search_cos=no
17237fi
17238rm conftest.$ac_ext
17239LIBS=$ac_func_search_save_LIBS
17240fi
17241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
17242$as_echo "$ac_cv_search_cos" >&6; }
17243ac_res=$ac_cv_search_cos
17244if test "$ac_res" != no; then :
17245  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17246  LIBM="-lm"
17247fi
17248
17249    LIBS=$_libs
17250    ;;
17251esac
17252
17253{ _libs=; unset _libs;}
17254
17255
17256for ac_header in vfork.h
17257do :
17258  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
17259if test "x$ac_cv_header_vfork_h" = xyes; then :
17260  cat >>confdefs.h <<_ACEOF
17261#define HAVE_VFORK_H 1
17262_ACEOF
17263
17264fi
17265
17266done
17267
17268for ac_func in fork vfork
17269do :
17270  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17271ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17272if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17273  cat >>confdefs.h <<_ACEOF
17274#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17275_ACEOF
17276
17277fi
17278done
17279
17280if test "x$ac_cv_func_fork" = xyes; then
17281  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
17282$as_echo_n "checking for working fork... " >&6; }
17283if ${ac_cv_func_fork_works+:} false; then :
17284  $as_echo_n "(cached) " >&6
17285else
17286  if test "$cross_compiling" = yes; then :
17287  ac_cv_func_fork_works=cross
17288else
17289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17290/* end confdefs.h.  */
17291$ac_includes_default
17292int
17293main ()
17294{
17295
17296	  /* By Ruediger Kuhlmann. */
17297	  return fork () < 0;
17298
17299  ;
17300  return 0;
17301}
17302_ACEOF
17303if ac_fn_c_try_run "$LINENO"; then :
17304  ac_cv_func_fork_works=yes
17305else
17306  ac_cv_func_fork_works=no
17307fi
17308rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17309  conftest.$ac_objext conftest.beam conftest.$ac_ext
17310fi
17311
17312fi
17313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
17314$as_echo "$ac_cv_func_fork_works" >&6; }
17315
17316else
17317  ac_cv_func_fork_works=$ac_cv_func_fork
17318fi
17319if test "x$ac_cv_func_fork_works" = xcross; then
17320  case $host in
17321    *-*-amigaos* | *-*-msdosdjgpp*)
17322      # Override, as these systems have only a dummy fork() stub
17323      ac_cv_func_fork_works=no
17324      ;;
17325    *)
17326      ac_cv_func_fork_works=yes
17327      ;;
17328  esac
17329  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17330$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17331fi
17332ac_cv_func_vfork_works=$ac_cv_func_vfork
17333if test "x$ac_cv_func_vfork" = xyes; then
17334  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
17335$as_echo_n "checking for working vfork... " >&6; }
17336if ${ac_cv_func_vfork_works+:} false; then :
17337  $as_echo_n "(cached) " >&6
17338else
17339  if test "$cross_compiling" = yes; then :
17340  ac_cv_func_vfork_works=cross
17341else
17342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17343/* end confdefs.h.  */
17344/* Thanks to Paul Eggert for this test.  */
17345$ac_includes_default
17346#include <sys/wait.h>
17347#ifdef HAVE_VFORK_H
17348# include <vfork.h>
17349#endif
17350/* On some sparc systems, changes by the child to local and incoming
17351   argument registers are propagated back to the parent.  The compiler
17352   is told about this with #include <vfork.h>, but some compilers
17353   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
17354   static variable whose address is put into a register that is
17355   clobbered by the vfork.  */
17356static void
17357#ifdef __cplusplus
17358sparc_address_test (int arg)
17359# else
17360sparc_address_test (arg) int arg;
17361#endif
17362{
17363  static pid_t child;
17364  if (!child) {
17365    child = vfork ();
17366    if (child < 0) {
17367      perror ("vfork");
17368      _exit(2);
17369    }
17370    if (!child) {
17371      arg = getpid();
17372      write(-1, "", 0);
17373      _exit (arg);
17374    }
17375  }
17376}
17377
17378int
17379main ()
17380{
17381  pid_t parent = getpid ();
17382  pid_t child;
17383
17384  sparc_address_test (0);
17385
17386  child = vfork ();
17387
17388  if (child == 0) {
17389    /* Here is another test for sparc vfork register problems.  This
17390       test uses lots of local variables, at least as many local
17391       variables as main has allocated so far including compiler
17392       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
17393       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
17394       reuse the register of parent for one of the local variables,
17395       since it will think that parent can't possibly be used any more
17396       in this routine.  Assigning to the local variable will thus
17397       munge parent in the parent process.  */
17398    pid_t
17399      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17400      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17401    /* Convince the compiler that p..p7 are live; otherwise, it might
17402       use the same hardware register for all 8 local variables.  */
17403    if (p != p1 || p != p2 || p != p3 || p != p4
17404	|| p != p5 || p != p6 || p != p7)
17405      _exit(1);
17406
17407    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17408       from child file descriptors.  If the child closes a descriptor
17409       before it execs or exits, this munges the parent's descriptor
17410       as well.  Test for this by closing stdout in the child.  */
17411    _exit(close(fileno(stdout)) != 0);
17412  } else {
17413    int status;
17414    struct stat st;
17415
17416    while (wait(&status) != child)
17417      ;
17418    return (
17419	 /* Was there some problem with vforking?  */
17420	 child < 0
17421
17422	 /* Did the child fail?  (This shouldn't happen.)  */
17423	 || status
17424
17425	 /* Did the vfork/compiler bug occur?  */
17426	 || parent != getpid()
17427
17428	 /* Did the file descriptor bug occur?  */
17429	 || fstat(fileno(stdout), &st) != 0
17430	 );
17431  }
17432}
17433_ACEOF
17434if ac_fn_c_try_run "$LINENO"; then :
17435  ac_cv_func_vfork_works=yes
17436else
17437  ac_cv_func_vfork_works=no
17438fi
17439rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17440  conftest.$ac_objext conftest.beam conftest.$ac_ext
17441fi
17442
17443fi
17444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
17445$as_echo "$ac_cv_func_vfork_works" >&6; }
17446
17447fi;
17448if test "x$ac_cv_func_fork_works" = xcross; then
17449  ac_cv_func_vfork_works=$ac_cv_func_vfork
17450  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17451$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17452fi
17453
17454if test "x$ac_cv_func_vfork_works" = xyes; then
17455
17456$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
17457
17458else
17459
17460$as_echo "#define vfork fork" >>confdefs.h
17461
17462fi
17463if test "x$ac_cv_func_fork_works" = xyes; then
17464
17465$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
17466
17467fi
17468
17469# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17470# for constant arguments.  Useless!
17471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17472$as_echo_n "checking for working alloca.h... " >&6; }
17473if ${ac_cv_working_alloca_h+:} false; then :
17474  $as_echo_n "(cached) " >&6
17475else
17476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17477/* end confdefs.h.  */
17478#include <alloca.h>
17479int
17480main ()
17481{
17482char *p = (char *) alloca (2 * sizeof (int));
17483			  if (p) return 0;
17484  ;
17485  return 0;
17486}
17487_ACEOF
17488if ac_fn_c_try_link "$LINENO"; then :
17489  ac_cv_working_alloca_h=yes
17490else
17491  ac_cv_working_alloca_h=no
17492fi
17493rm -f core conftest.err conftest.$ac_objext \
17494    conftest$ac_exeext conftest.$ac_ext
17495fi
17496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17497$as_echo "$ac_cv_working_alloca_h" >&6; }
17498if test $ac_cv_working_alloca_h = yes; then
17499
17500$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17501
17502fi
17503
17504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17505$as_echo_n "checking for alloca... " >&6; }
17506if ${ac_cv_func_alloca_works+:} false; then :
17507  $as_echo_n "(cached) " >&6
17508else
17509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17510/* end confdefs.h.  */
17511#ifdef __GNUC__
17512# define alloca __builtin_alloca
17513#else
17514# ifdef _MSC_VER
17515#  include <malloc.h>
17516#  define alloca _alloca
17517# else
17518#  ifdef HAVE_ALLOCA_H
17519#   include <alloca.h>
17520#  else
17521#   ifdef _AIX
17522 #pragma alloca
17523#   else
17524#    ifndef alloca /* predefined by HP cc +Olibcalls */
17525void *alloca (size_t);
17526#    endif
17527#   endif
17528#  endif
17529# endif
17530#endif
17531
17532int
17533main ()
17534{
17535char *p = (char *) alloca (1);
17536				    if (p) return 0;
17537  ;
17538  return 0;
17539}
17540_ACEOF
17541if ac_fn_c_try_link "$LINENO"; then :
17542  ac_cv_func_alloca_works=yes
17543else
17544  ac_cv_func_alloca_works=no
17545fi
17546rm -f core conftest.err conftest.$ac_objext \
17547    conftest$ac_exeext conftest.$ac_ext
17548fi
17549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17550$as_echo "$ac_cv_func_alloca_works" >&6; }
17551
17552if test $ac_cv_func_alloca_works = yes; then
17553
17554$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17555
17556else
17557  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17558# that cause trouble.  Some versions do not even contain alloca or
17559# contain a buggy version.  If you still want to use their alloca,
17560# use ar to extract alloca.o from them instead of compiling alloca.c.
17561
17562ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17563
17564$as_echo "#define C_ALLOCA 1" >>confdefs.h
17565
17566
17567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
17568$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
17569if ${ac_cv_os_cray+:} false; then :
17570  $as_echo_n "(cached) " >&6
17571else
17572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17573/* end confdefs.h.  */
17574#if defined CRAY && ! defined CRAY2
17575webecray
17576#else
17577wenotbecray
17578#endif
17579
17580_ACEOF
17581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17582  $EGREP "webecray" >/dev/null 2>&1; then :
17583  ac_cv_os_cray=yes
17584else
17585  ac_cv_os_cray=no
17586fi
17587rm -f conftest*
17588
17589fi
17590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17591$as_echo "$ac_cv_os_cray" >&6; }
17592if test $ac_cv_os_cray = yes; then
17593  for ac_func in _getb67 GETB67 getb67; do
17594    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17595ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17596if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17597
17598cat >>confdefs.h <<_ACEOF
17599#define CRAY_STACKSEG_END $ac_func
17600_ACEOF
17601
17602    break
17603fi
17604
17605  done
17606fi
17607
17608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17609$as_echo_n "checking stack direction for C alloca... " >&6; }
17610if ${ac_cv_c_stack_direction+:} false; then :
17611  $as_echo_n "(cached) " >&6
17612else
17613  if test "$cross_compiling" = yes; then :
17614  ac_cv_c_stack_direction=0
17615else
17616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17617/* end confdefs.h.  */
17618$ac_includes_default
17619int
17620find_stack_direction (int *addr, int depth)
17621{
17622  int dir, dummy = 0;
17623  if (! addr)
17624    addr = &dummy;
17625  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17626  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17627  return dir + dummy;
17628}
17629
17630int
17631main (int argc, char **argv)
17632{
17633  return find_stack_direction (0, argc + !argv + 20) < 0;
17634}
17635_ACEOF
17636if ac_fn_c_try_run "$LINENO"; then :
17637  ac_cv_c_stack_direction=1
17638else
17639  ac_cv_c_stack_direction=-1
17640fi
17641rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17642  conftest.$ac_objext conftest.beam conftest.$ac_ext
17643fi
17644
17645fi
17646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17647$as_echo "$ac_cv_c_stack_direction" >&6; }
17648cat >>confdefs.h <<_ACEOF
17649#define STACK_DIRECTION $ac_cv_c_stack_direction
17650_ACEOF
17651
17652
17653fi
17654
17655ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
17656if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
17657  ac_have_decl=1
17658else
17659  ac_have_decl=0
17660fi
17661
17662cat >>confdefs.h <<_ACEOF
17663#define HAVE_DECL_STRERROR_R $ac_have_decl
17664_ACEOF
17665
17666for ac_func in strerror_r
17667do :
17668  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
17669if test "x$ac_cv_func_strerror_r" = xyes; then :
17670  cat >>confdefs.h <<_ACEOF
17671#define HAVE_STRERROR_R 1
17672_ACEOF
17673
17674fi
17675done
17676
17677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
17678$as_echo_n "checking whether strerror_r returns char *... " >&6; }
17679if ${ac_cv_func_strerror_r_char_p+:} false; then :
17680  $as_echo_n "(cached) " >&6
17681else
17682
17683    ac_cv_func_strerror_r_char_p=no
17684    if test $ac_cv_have_decl_strerror_r = yes; then
17685      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686/* end confdefs.h.  */
17687$ac_includes_default
17688int
17689main ()
17690{
17691
17692	  char buf[100];
17693	  char x = *strerror_r (0, buf, sizeof buf);
17694	  char *p = strerror_r (0, buf, sizeof buf);
17695	  return !p || x;
17696
17697  ;
17698  return 0;
17699}
17700_ACEOF
17701if ac_fn_c_try_compile "$LINENO"; then :
17702  ac_cv_func_strerror_r_char_p=yes
17703fi
17704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17705    else
17706      # strerror_r is not declared.  Choose between
17707      # systems that have relatively inaccessible declarations for the
17708      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
17709      # former has a strerror_r that returns char*, while the latter
17710      # has a strerror_r that returns `int'.
17711      # This test should segfault on the DEC system.
17712      if test "$cross_compiling" = yes; then :
17713  :
17714else
17715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17716/* end confdefs.h.  */
17717$ac_includes_default
17718	extern char *strerror_r ();
17719int
17720main ()
17721{
17722char buf[100];
17723	  char x = *strerror_r (0, buf, sizeof buf);
17724	  return ! isalpha (x);
17725  ;
17726  return 0;
17727}
17728_ACEOF
17729if ac_fn_c_try_run "$LINENO"; then :
17730  ac_cv_func_strerror_r_char_p=yes
17731fi
17732rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17733  conftest.$ac_objext conftest.beam conftest.$ac_ext
17734fi
17735
17736    fi
17737
17738fi
17739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
17740$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
17741if test $ac_cv_func_strerror_r_char_p = yes; then
17742
17743$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
17744
17745fi
17746
17747
17748ac_busted_vpath_in_make=no
17749case "$build" in
17750 *-*-irix6.1*)	# 64 bit only
17751    # busted vpath?
17752    ;;
17753 *-*-irix6*)	# 6.2 (and later?)
17754    ac_busted_vpath_in_make=yes
17755    ;;
17756 *-*-solaris2.5.1)
17757    ac_busted_vpath_in_make=yes
17758    ;;
17759 *-*-unicosmp*)
17760    ac_busted_vpath_in_make=yes
17761    ;;
17762esac
17763
17764case "$ac_busted_vpath_in_make$srcdir" in
17765 yes.|no*)
17766    ;;
17767 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
17768     '')
17769	as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
17770    esac
17771    ;;
17772esac
17773
17774case "$host" in
17775 *-*-aix4*)
17776	# Bug 2516:
17777	# Was *-*-aix[[4-9]]*
17778	# XXX only verified thru AIX6.  But...
17779	# Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
17780	# that this support would be in 5.3, removed in 6, and added back.
17781	#
17782	# (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
17783	# (returning ENOSYS).  I didn't check 4.2.  If, in the future,
17784	# IBM pulls its thumbs out long enough to implement clock_settime,
17785	# this conditional will need to change.  Maybe use AC_TRY_RUN
17786	# instead to try to set the time to itself and check errno.
17787    ;;
17788 *)
17789    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17790$as_echo_n "checking for library containing clock_gettime... " >&6; }
17791if ${ac_cv_search_clock_gettime+:} false; then :
17792  $as_echo_n "(cached) " >&6
17793else
17794  ac_func_search_save_LIBS=$LIBS
17795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17796/* end confdefs.h.  */
17797
17798/* Override any GCC internal prototype to avoid an error.
17799   Use char because int might match the return type of a GCC
17800   builtin and then its argument prototype would still apply.  */
17801#ifdef __cplusplus
17802extern "C"
17803#endif
17804char clock_gettime ();
17805int
17806main ()
17807{
17808return clock_gettime ();
17809  ;
17810  return 0;
17811}
17812_ACEOF
17813for ac_lib in '' rt; do
17814  if test -z "$ac_lib"; then
17815    ac_res="none required"
17816  else
17817    ac_res=-l$ac_lib
17818    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17819  fi
17820  if ac_fn_c_try_link "$LINENO"; then :
17821  ac_cv_search_clock_gettime=$ac_res
17822fi
17823rm -f core conftest.err conftest.$ac_objext \
17824    conftest$ac_exeext
17825  if ${ac_cv_search_clock_gettime+:} false; then :
17826  break
17827fi
17828done
17829if ${ac_cv_search_clock_gettime+:} false; then :
17830
17831else
17832  ac_cv_search_clock_gettime=no
17833fi
17834rm conftest.$ac_ext
17835LIBS=$ac_func_search_save_LIBS
17836fi
17837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17838$as_echo "$ac_cv_search_clock_gettime" >&6; }
17839ac_res=$ac_cv_search_clock_gettime
17840if test "$ac_res" != no; then :
17841  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17842  case "$ac_cv_search_clock_gettime" in
17843 'none required') ;;
17844 no) ;;
17845 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
17846 esac
17847
17848fi
17849
17850    for ac_func in clock_getres clock_gettime clock_settime
17851do :
17852  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17853ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17854if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17855  cat >>confdefs.h <<_ACEOF
17856#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17857_ACEOF
17858
17859fi
17860done
17861
17862    ;;
17863esac
17864
17865for ac_func in getclock stime timegm strlcpy strlcat
17866do :
17867  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17868ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17869if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17870  cat >>confdefs.h <<_ACEOF
17871#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17872_ACEOF
17873
17874fi
17875done
17876
17877
17878# Bug 2713
17879LDADD_LIBUTIL=
17880
17881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
17882$as_echo_n "checking for library containing snprintb... " >&6; }
17883if ${ac_cv_search_snprintb+:} false; then :
17884  $as_echo_n "(cached) " >&6
17885else
17886  ac_func_search_save_LIBS=$LIBS
17887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17888/* end confdefs.h.  */
17889
17890/* Override any GCC internal prototype to avoid an error.
17891   Use char because int might match the return type of a GCC
17892   builtin and then its argument prototype would still apply.  */
17893#ifdef __cplusplus
17894extern "C"
17895#endif
17896char snprintb ();
17897int
17898main ()
17899{
17900return snprintb ();
17901  ;
17902  return 0;
17903}
17904_ACEOF
17905for ac_lib in '' util; do
17906  if test -z "$ac_lib"; then
17907    ac_res="none required"
17908  else
17909    ac_res=-l$ac_lib
17910    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17911  fi
17912  if ac_fn_c_try_link "$LINENO"; then :
17913  ac_cv_search_snprintb=$ac_res
17914fi
17915rm -f core conftest.err conftest.$ac_objext \
17916    conftest$ac_exeext
17917  if ${ac_cv_search_snprintb+:} false; then :
17918  break
17919fi
17920done
17921if ${ac_cv_search_snprintb+:} false; then :
17922
17923else
17924  ac_cv_search_snprintb=no
17925fi
17926rm conftest.$ac_ext
17927LIBS=$ac_func_search_save_LIBS
17928fi
17929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
17930$as_echo "$ac_cv_search_snprintb" >&6; }
17931ac_res=$ac_cv_search_snprintb
17932if test "$ac_res" != no; then :
17933  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17934  case "$ac_cv_search_snprintb" in
17935 'none required') ;;
17936 no) ;;
17937 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
17938 esac
17939
17940$as_echo "#define USE_SNPRINTB 1" >>confdefs.h
17941
17942fi
17943
17944
17945#
17946for ac_header in errno.h sys/socket.h sys/types.h time.h
17947do :
17948  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17949ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17950if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17951  cat >>confdefs.h <<_ACEOF
17952#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17953_ACEOF
17954
17955fi
17956
17957done
17958
17959for ac_header in net/if.h
17960do :
17961  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
17962    #ifdef HAVE_SYS_SOCKET_H
17963    # include <sys/socket.h>
17964    #endif
17965
17966"
17967if test "x$ac_cv_header_net_if_h" = xyes; then :
17968  cat >>confdefs.h <<_ACEOF
17969#define HAVE_NET_IF_H 1
17970_ACEOF
17971
17972fi
17973
17974done
17975
17976case "$host" in
17977 *-hp-hpux*)
17978    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
17979$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
17980if ${ntp_cv_predecl_mpinfou+:} false; then :
17981  $as_echo_n "(cached) " >&6
17982else
17983
17984	    np_cv_predecl_mpinfou=no
17985	    case "$ac_cv_header_net_if_h" in
17986	     no)
17987		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17988/* end confdefs.h.  */
17989
17990			    typedef union mpinfou {
17991				    struct pdk_mpinfo *pdkptr;
17992				    struct mpinfo *pikptr;
17993			    } mpinfou_t;
17994			    #ifdef HAVE_SYS_SOCKET_H
17995			    # include <sys/socket.h>
17996			    #endif
17997			    #include <net/if.h>
17998
17999int
18000main ()
18001{
18002
18003
18004
18005  ;
18006  return 0;
18007}
18008_ACEOF
18009if ac_fn_c_try_compile "$LINENO"; then :
18010
18011			ntp_cv_predecl_mpinfou=yes
18012			ac_cv_header_net_if_h=yes
18013
18014
18015fi
18016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18017	    esac
18018
18019
18020fi
18021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
18022$as_echo "$ntp_cv_predecl_mpinfou" >&6; }
18023    case "$ntp_cv_predecl_mpinfou" in
18024     yes)
18025	cat >>confdefs.h <<_ACEOF
18026#ifndef MPINFOU_PREDECLARED
18027# define MPINFOU_PREDECLARED
18028typedef union mpinfou {
18029	struct pdk_mpinfo *pdkptr;
18030	struct mpinfo *pikptr;
18031} mpinfou_t;
18032#endif
18033_ACEOF
18034
18035    esac
18036esac
18037
18038case "$host" in
18039 *-linux*)
18040    for ac_header in linux/if_addr.h
18041do :
18042  ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
18043	#ifdef HAVE_SYS_SOCKET_H
18044	# include <sys/socket.h>
18045	#endif
18046
18047"
18048if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
18049  cat >>confdefs.h <<_ACEOF
18050#define HAVE_LINUX_IF_ADDR_H 1
18051_ACEOF
18052
18053fi
18054
18055done
18056
18057
18058$as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h
18059
18060esac
18061
18062for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
18063do :
18064  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18065ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18066if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18067  cat >>confdefs.h <<_ACEOF
18068#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18069_ACEOF
18070
18071fi
18072
18073done
18074
18075# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
18076for ac_header in sys/sysctl.h
18077do :
18078  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
18079    #if defined HAVE_SYS_PARAM_H
18080    # include <sys/param.h>
18081    #endif
18082
18083"
18084if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
18085  cat >>confdefs.h <<_ACEOF
18086#define HAVE_SYS_SYSCTL_H 1
18087_ACEOF
18088
18089fi
18090
18091done
18092
18093for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
18094do :
18095  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18096ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18097if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18098  cat >>confdefs.h <<_ACEOF
18099#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18100_ACEOF
18101
18102fi
18103
18104done
18105
18106
18107for ac_header in resolv.h
18108do :
18109  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
18110    #ifdef HAVE_SYS_TYPES_H
18111    # include <sys/types.h>
18112    #endif
18113    #ifdef HAVE_NETINET_IN_H
18114    # include <netinet/in.h>
18115    #endif
18116    #ifdef HAVE_ARPA_NAMESER_H
18117    # include <arpa/nameser.h>
18118    #endif
18119
18120"
18121if test "x$ac_cv_header_resolv_h" = xyes; then :
18122  cat >>confdefs.h <<_ACEOF
18123#define HAVE_RESOLV_H 1
18124_ACEOF
18125
18126fi
18127
18128done
18129
18130
18131for ac_header in net/if_var.h
18132do :
18133  ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
18134    #if HAVE_SYS_TYPES_H
18135    # include <sys/types.h>
18136    #endif
18137    #ifdef HAVE_SYS_SOCKET_H
18138    # include <sys/socket.h>
18139    #endif
18140    #ifdef HAVE_NETINET_IN_H
18141    # include <netinet/in.h>
18142    #endif
18143    #ifdef HAVE_NET_IF_H
18144    # include <net/if.h>
18145    #endif
18146
18147"
18148if test "x$ac_cv_header_net_if_var_h" = xyes; then :
18149  cat >>confdefs.h <<_ACEOF
18150#define HAVE_NET_IF_VAR_H 1
18151_ACEOF
18152
18153fi
18154
18155done
18156
18157
18158for ac_header in netinet/ip.h netinet/in_var.h
18159do :
18160  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18161ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
18162    #ifdef HAVE_SYS_TYPES_H
18163    # include <sys/types.h>
18164    #endif
18165    #ifdef HAVE_SYS_SOCKET_H
18166    # include <sys/socket.h>
18167    #endif
18168    #ifdef HAVE_NET_IF_H
18169    # include <net/if.h>
18170    #endif
18171    #ifdef HAVE_NETINET_IN_H
18172    # include <netinet/in.h>
18173    #endif
18174    #ifdef HAVE_NET_IF_VAR_H
18175    # include <net/if_var.h>
18176    #endif
18177    #ifdef HAVE_NETINET_IN_SYSTM_H
18178    # include <netinet/in_systm.h>
18179    #endif
18180
18181"
18182if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18183  cat >>confdefs.h <<_ACEOF
18184#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18185_ACEOF
18186
18187fi
18188
18189done
18190
18191
18192# HMS: Do we need to check for -lsocket before or after these tests?
18193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
18194$as_echo_n "checking for library containing inet_pton... " >&6; }
18195if ${ac_cv_search_inet_pton+:} false; then :
18196  $as_echo_n "(cached) " >&6
18197else
18198  ac_func_search_save_LIBS=$LIBS
18199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18200/* end confdefs.h.  */
18201
18202/* Override any GCC internal prototype to avoid an error.
18203   Use char because int might match the return type of a GCC
18204   builtin and then its argument prototype would still apply.  */
18205#ifdef __cplusplus
18206extern "C"
18207#endif
18208char inet_pton ();
18209int
18210main ()
18211{
18212return inet_pton ();
18213  ;
18214  return 0;
18215}
18216_ACEOF
18217for ac_lib in '' nsl; do
18218  if test -z "$ac_lib"; then
18219    ac_res="none required"
18220  else
18221    ac_res=-l$ac_lib
18222    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18223  fi
18224  if ac_fn_c_try_link "$LINENO"; then :
18225  ac_cv_search_inet_pton=$ac_res
18226fi
18227rm -f core conftest.err conftest.$ac_objext \
18228    conftest$ac_exeext
18229  if ${ac_cv_search_inet_pton+:} false; then :
18230  break
18231fi
18232done
18233if ${ac_cv_search_inet_pton+:} false; then :
18234
18235else
18236  ac_cv_search_inet_pton=no
18237fi
18238rm conftest.$ac_ext
18239LIBS=$ac_func_search_save_LIBS
18240fi
18241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
18242$as_echo "$ac_cv_search_inet_pton" >&6; }
18243ac_res=$ac_cv_search_inet_pton
18244if test "$ac_res" != no; then :
18245  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18246  case "$ac_cv_search_inet_pton" in
18247 'none required') ;;
18248 no) ;;
18249 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
18250 esac
18251
18252fi
18253
18254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
18255$as_echo_n "checking for library containing inet_ntop... " >&6; }
18256if ${ac_cv_search_inet_ntop+:} false; then :
18257  $as_echo_n "(cached) " >&6
18258else
18259  ac_func_search_save_LIBS=$LIBS
18260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18261/* end confdefs.h.  */
18262
18263/* Override any GCC internal prototype to avoid an error.
18264   Use char because int might match the return type of a GCC
18265   builtin and then its argument prototype would still apply.  */
18266#ifdef __cplusplus
18267extern "C"
18268#endif
18269char inet_ntop ();
18270int
18271main ()
18272{
18273return inet_ntop ();
18274  ;
18275  return 0;
18276}
18277_ACEOF
18278for ac_lib in '' resolv; do
18279  if test -z "$ac_lib"; then
18280    ac_res="none required"
18281  else
18282    ac_res=-l$ac_lib
18283    LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
18284  fi
18285  if ac_fn_c_try_link "$LINENO"; then :
18286  ac_cv_search_inet_ntop=$ac_res
18287fi
18288rm -f core conftest.err conftest.$ac_objext \
18289    conftest$ac_exeext
18290  if ${ac_cv_search_inet_ntop+:} false; then :
18291  break
18292fi
18293done
18294if ${ac_cv_search_inet_ntop+:} false; then :
18295
18296else
18297  ac_cv_search_inet_ntop=no
18298fi
18299rm conftest.$ac_ext
18300LIBS=$ac_func_search_save_LIBS
18301fi
18302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
18303$as_echo "$ac_cv_search_inet_ntop" >&6; }
18304ac_res=$ac_cv_search_inet_ntop
18305if test "$ac_res" != no; then :
18306  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18307  case "$ac_cv_search_inet_ntop" in
18308 'none required') ;;
18309 no) ;;
18310 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
18311 esac
18312
18313fi
18314
18315
18316# [Bug 1628] On Solaris, we need -lxnet -lsocket.  Generalize this to
18317# avoid keying on the OS name:  If we find socket functions in
18318# libsocket, next try for them in libxnet without libsocket, if found,
18319# list both.  If we simply tested libxnet first, we would find the
18320# functions there and never add libsocket.  See also [Bug 660]
18321# http://bugs.ntp.org/show_bug.cgi?id=660#c9
18322saved_LIBS=$LIBS
18323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
18324$as_echo_n "checking for library containing setsockopt... " >&6; }
18325if ${ac_cv_search_setsockopt+:} false; then :
18326  $as_echo_n "(cached) " >&6
18327else
18328  ac_func_search_save_LIBS=$LIBS
18329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18330/* end confdefs.h.  */
18331
18332/* Override any GCC internal prototype to avoid an error.
18333   Use char because int might match the return type of a GCC
18334   builtin and then its argument prototype would still apply.  */
18335#ifdef __cplusplus
18336extern "C"
18337#endif
18338char setsockopt ();
18339int
18340main ()
18341{
18342return setsockopt ();
18343  ;
18344  return 0;
18345}
18346_ACEOF
18347for ac_lib in '' socket; do
18348  if test -z "$ac_lib"; then
18349    ac_res="none required"
18350  else
18351    ac_res=-l$ac_lib
18352    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18353  fi
18354  if ac_fn_c_try_link "$LINENO"; then :
18355  ac_cv_search_setsockopt=$ac_res
18356fi
18357rm -f core conftest.err conftest.$ac_objext \
18358    conftest$ac_exeext
18359  if ${ac_cv_search_setsockopt+:} false; then :
18360  break
18361fi
18362done
18363if ${ac_cv_search_setsockopt+:} false; then :
18364
18365else
18366  ac_cv_search_setsockopt=no
18367fi
18368rm conftest.$ac_ext
18369LIBS=$ac_func_search_save_LIBS
18370fi
18371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
18372$as_echo "$ac_cv_search_setsockopt" >&6; }
18373ac_res=$ac_cv_search_setsockopt
18374if test "$ac_res" != no; then :
18375  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18376  case "$ac_cv_search_setsockopt" in
18377 'none required') ;;
18378 no) ;;
18379 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
18380 esac
18381
18382fi
18383
18384case "$ac_cv_search_setsockopt" in
18385 -lsocket)
18386    LIBS="$saved_LIBS"
18387    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
18388$as_echo_n "checking for library containing getsockopt... " >&6; }
18389if ${ac_cv_search_getsockopt+:} false; then :
18390  $as_echo_n "(cached) " >&6
18391else
18392  ac_func_search_save_LIBS=$LIBS
18393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18394/* end confdefs.h.  */
18395
18396/* Override any GCC internal prototype to avoid an error.
18397   Use char because int might match the return type of a GCC
18398   builtin and then its argument prototype would still apply.  */
18399#ifdef __cplusplus
18400extern "C"
18401#endif
18402char getsockopt ();
18403int
18404main ()
18405{
18406return getsockopt ();
18407  ;
18408  return 0;
18409}
18410_ACEOF
18411for ac_lib in '' xnet; do
18412  if test -z "$ac_lib"; then
18413    ac_res="none required"
18414  else
18415    ac_res=-l$ac_lib
18416    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18417  fi
18418  if ac_fn_c_try_link "$LINENO"; then :
18419  ac_cv_search_getsockopt=$ac_res
18420fi
18421rm -f core conftest.err conftest.$ac_objext \
18422    conftest$ac_exeext
18423  if ${ac_cv_search_getsockopt+:} false; then :
18424  break
18425fi
18426done
18427if ${ac_cv_search_getsockopt+:} false; then :
18428
18429else
18430  ac_cv_search_getsockopt=no
18431fi
18432rm conftest.$ac_ext
18433LIBS=$ac_func_search_save_LIBS
18434fi
18435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
18436$as_echo "$ac_cv_search_getsockopt" >&6; }
18437ac_res=$ac_cv_search_getsockopt
18438if test "$ac_res" != no; then :
18439  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18440  case "$ac_cv_search_getsockopt" in
18441 'none required') ;;
18442 no) ;;
18443 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
18444 esac
18445
18446fi
18447
18448    # XXX Possible trouble here - reading the comments above and looking at the
18449    # code below I wonder if we'll add -lxnet when we don't need it.
18450    # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
18451    # there when it is not needed?
18452    case "$ac_cv_search_getsockopt" in
18453     -lxnet)
18454	LIBS="-lxnet -lsocket $saved_LIBS"
18455	;;
18456     *) LIBS="-lsocket $saved_LIBS"
18457	;;
18458    esac
18459    ;;
18460esac
18461{ saved_LIBS=; unset saved_LIBS;}
18462
18463# Bug 2427 - look for recvmsg here.
18464for ac_func in recvmsg
18465do :
18466  ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
18467if test "x$ac_cv_func_recvmsg" = xyes; then :
18468  cat >>confdefs.h <<_ACEOF
18469#define HAVE_RECVMSG 1
18470_ACEOF
18471
18472fi
18473done
18474
18475
18476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18477$as_echo_n "checking for inline... " >&6; }
18478if ${ac_cv_c_inline+:} false; then :
18479  $as_echo_n "(cached) " >&6
18480else
18481  ac_cv_c_inline=no
18482for ac_kw in inline __inline__ __inline; do
18483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18484/* end confdefs.h.  */
18485#ifndef __cplusplus
18486typedef int foo_t;
18487static $ac_kw foo_t static_foo () {return 0; }
18488$ac_kw foo_t foo () {return 0; }
18489#endif
18490
18491_ACEOF
18492if ac_fn_c_try_compile "$LINENO"; then :
18493  ac_cv_c_inline=$ac_kw
18494fi
18495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18496  test "$ac_cv_c_inline" != no && break
18497done
18498
18499fi
18500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18501$as_echo "$ac_cv_c_inline" >&6; }
18502
18503case $ac_cv_c_inline in
18504  inline | yes) ;;
18505  *)
18506    case $ac_cv_c_inline in
18507      no) ac_val=;;
18508      *) ac_val=$ac_cv_c_inline;;
18509    esac
18510    cat >>confdefs.h <<_ACEOF
18511#ifndef __cplusplus
18512#define inline $ac_val
18513#endif
18514_ACEOF
18515    ;;
18516esac
18517
18518
18519case "$ac_cv_c_inline" in
18520 '')
18521    ;;
18522 *)
18523
18524$as_echo "#define HAVE_INLINE 1" >>confdefs.h
18525
18526
18527esac
18528
18529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18530$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18531if ${ac_cv_header_time+:} false; then :
18532  $as_echo_n "(cached) " >&6
18533else
18534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18535/* end confdefs.h.  */
18536#include <sys/types.h>
18537#include <sys/time.h>
18538#include <time.h>
18539
18540int
18541main ()
18542{
18543if ((struct tm *) 0)
18544return 0;
18545  ;
18546  return 0;
18547}
18548_ACEOF
18549if ac_fn_c_try_compile "$LINENO"; then :
18550  ac_cv_header_time=yes
18551else
18552  ac_cv_header_time=no
18553fi
18554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18555fi
18556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18557$as_echo "$ac_cv_header_time" >&6; }
18558if test $ac_cv_header_time = yes; then
18559
18560$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
18561
18562fi
18563
18564# The cast to long int works around a bug in the HP C Compiler
18565# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18566# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18567# This bug is HP SR number 8606223364.
18568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
18569$as_echo_n "checking size of time_t... " >&6; }
18570if ${ac_cv_sizeof_time_t+:} false; then :
18571  $as_echo_n "(cached) " >&6
18572else
18573  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
18574
18575else
18576  if test "$ac_cv_type_time_t" = yes; then
18577     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18579as_fn_error 77 "cannot compute sizeof (time_t)
18580See \`config.log' for more details" "$LINENO" 5; }
18581   else
18582     ac_cv_sizeof_time_t=0
18583   fi
18584fi
18585
18586fi
18587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
18588$as_echo "$ac_cv_sizeof_time_t" >&6; }
18589
18590
18591
18592cat >>confdefs.h <<_ACEOF
18593#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
18594_ACEOF
18595
18596
18597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
18598$as_echo_n "checking whether char is unsigned... " >&6; }
18599if ${ac_cv_c_char_unsigned+:} false; then :
18600  $as_echo_n "(cached) " >&6
18601else
18602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18603/* end confdefs.h.  */
18604$ac_includes_default
18605int
18606main ()
18607{
18608static int test_array [1 - 2 * !(((char) -1) < 0)];
18609test_array [0] = 0;
18610return test_array [0];
18611
18612  ;
18613  return 0;
18614}
18615_ACEOF
18616if ac_fn_c_try_compile "$LINENO"; then :
18617  ac_cv_c_char_unsigned=no
18618else
18619  ac_cv_c_char_unsigned=yes
18620fi
18621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18622fi
18623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
18624$as_echo "$ac_cv_c_char_unsigned" >&6; }
18625if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18626  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
18627
18628fi
18629		# The cast to long int works around a bug in the HP C Compiler
18630# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18631# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18632# This bug is HP SR number 8606223364.
18633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
18634$as_echo_n "checking size of signed char... " >&6; }
18635if ${ac_cv_sizeof_signed_char+:} false; then :
18636  $as_echo_n "(cached) " >&6
18637else
18638  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"; then :
18639
18640else
18641  if test "$ac_cv_type_signed_char" = yes; then
18642     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18644as_fn_error 77 "cannot compute sizeof (signed char)
18645See \`config.log' for more details" "$LINENO" 5; }
18646   else
18647     ac_cv_sizeof_signed_char=0
18648   fi
18649fi
18650
18651fi
18652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
18653$as_echo "$ac_cv_sizeof_signed_char" >&6; }
18654
18655
18656
18657cat >>confdefs.h <<_ACEOF
18658#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
18659_ACEOF
18660
18661
18662ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
18663if test "x$ac_cv_type_s_char" = xyes; then :
18664
18665cat >>confdefs.h <<_ACEOF
18666#define HAVE_S_CHAR 1
18667_ACEOF
18668
18669
18670fi
18671ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
18672if test "x$ac_cv_type_long_long" = xyes; then :
18673
18674cat >>confdefs.h <<_ACEOF
18675#define HAVE_LONG_LONG 1
18676_ACEOF
18677
18678
18679fi
18680
18681# The cast to long int works around a bug in the HP C Compiler
18682# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18683# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18684# This bug is HP SR number 8606223364.
18685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
18686$as_echo_n "checking size of short... " >&6; }
18687if ${ac_cv_sizeof_short+:} false; then :
18688  $as_echo_n "(cached) " >&6
18689else
18690  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
18691
18692else
18693  if test "$ac_cv_type_short" = yes; then
18694     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18695$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18696as_fn_error 77 "cannot compute sizeof (short)
18697See \`config.log' for more details" "$LINENO" 5; }
18698   else
18699     ac_cv_sizeof_short=0
18700   fi
18701fi
18702
18703fi
18704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
18705$as_echo "$ac_cv_sizeof_short" >&6; }
18706
18707
18708
18709cat >>confdefs.h <<_ACEOF
18710#define SIZEOF_SHORT $ac_cv_sizeof_short
18711_ACEOF
18712
18713
18714# The cast to long int works around a bug in the HP C Compiler
18715# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18716# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18717# This bug is HP SR number 8606223364.
18718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
18719$as_echo_n "checking size of int... " >&6; }
18720if ${ac_cv_sizeof_int+:} false; then :
18721  $as_echo_n "(cached) " >&6
18722else
18723  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
18724
18725else
18726  if test "$ac_cv_type_int" = yes; then
18727     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18728$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18729as_fn_error 77 "cannot compute sizeof (int)
18730See \`config.log' for more details" "$LINENO" 5; }
18731   else
18732     ac_cv_sizeof_int=0
18733   fi
18734fi
18735
18736fi
18737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
18738$as_echo "$ac_cv_sizeof_int" >&6; }
18739
18740
18741
18742cat >>confdefs.h <<_ACEOF
18743#define SIZEOF_INT $ac_cv_sizeof_int
18744_ACEOF
18745
18746
18747# The cast to long int works around a bug in the HP C Compiler
18748# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18749# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18750# This bug is HP SR number 8606223364.
18751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
18752$as_echo_n "checking size of long... " >&6; }
18753if ${ac_cv_sizeof_long+:} false; then :
18754  $as_echo_n "(cached) " >&6
18755else
18756  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
18757
18758else
18759  if test "$ac_cv_type_long" = yes; then
18760     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18762as_fn_error 77 "cannot compute sizeof (long)
18763See \`config.log' for more details" "$LINENO" 5; }
18764   else
18765     ac_cv_sizeof_long=0
18766   fi
18767fi
18768
18769fi
18770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
18771$as_echo "$ac_cv_sizeof_long" >&6; }
18772
18773
18774
18775cat >>confdefs.h <<_ACEOF
18776#define SIZEOF_LONG $ac_cv_sizeof_long
18777_ACEOF
18778
18779
18780
18781case "$ac_cv_type_long_long" in
18782 no)
18783    ;;
18784 *)
18785    # The cast to long int works around a bug in the HP C Compiler
18786# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18787# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18788# This bug is HP SR number 8606223364.
18789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
18790$as_echo_n "checking size of long long... " >&6; }
18791if ${ac_cv_sizeof_long_long+:} false; then :
18792  $as_echo_n "(cached) " >&6
18793else
18794  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
18795
18796else
18797  if test "$ac_cv_type_long_long" = yes; then
18798     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18800as_fn_error 77 "cannot compute sizeof (long long)
18801See \`config.log' for more details" "$LINENO" 5; }
18802   else
18803     ac_cv_sizeof_long_long=0
18804   fi
18805fi
18806
18807fi
18808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
18809$as_echo "$ac_cv_sizeof_long_long" >&6; }
18810
18811
18812
18813cat >>confdefs.h <<_ACEOF
18814#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18815_ACEOF
18816
18817
18818    ;;
18819esac
18820
18821case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
18822 *yes)
18823    # We have a typedef for s_char.  Might as well believe it...
18824    ;;
18825 no0no)
18826    # We have signed chars, can't say 'signed char', no s_char typedef.
18827
18828$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
18829
18830    ;;
18831 no1no)
18832    # We have signed chars, can say 'signed char', no s_char typedef.
18833
18834$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
18835
18836    ;;
18837 yes0no)
18838    # We have unsigned chars, can't say 'signed char', no s_char typedef.
18839    as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
18840    ;;
18841 yes1no)
18842    # We have unsigned chars, can say 'signed char', no s_char typedef.
18843
18844$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
18845
18846    ;;
18847esac
18848
18849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
18850$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18851if ${ac_cv_type_uid_t+:} false; then :
18852  $as_echo_n "(cached) " >&6
18853else
18854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18855/* end confdefs.h.  */
18856#include <sys/types.h>
18857
18858_ACEOF
18859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18860  $EGREP "uid_t" >/dev/null 2>&1; then :
18861  ac_cv_type_uid_t=yes
18862else
18863  ac_cv_type_uid_t=no
18864fi
18865rm -f conftest*
18866
18867fi
18868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
18869$as_echo "$ac_cv_type_uid_t" >&6; }
18870if test $ac_cv_type_uid_t = no; then
18871
18872$as_echo "#define uid_t int" >>confdefs.h
18873
18874
18875$as_echo "#define gid_t int" >>confdefs.h
18876
18877fi
18878
18879
18880
18881
18882
18883
18884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
18885$as_echo_n "checking if we're including debugging code... " >&6; }
18886# Check whether --enable-debugging was given.
18887if test "${enable_debugging+set}" = set; then :
18888  enableval=$enable_debugging; ntp_ok=$enableval
18889else
18890  ntp_ok=yes
18891
18892fi
18893
18894case "$ntp_ok" in
18895 yes)
18896
18897$as_echo "#define DEBUG 1" >>confdefs.h
18898
18899esac
18900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
18901$as_echo "$ntp_ok" >&6; }
18902
18903
18904
18905# check if we can compile with pthreads
18906for ac_header in semaphore.h
18907do :
18908  ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
18909if test "x$ac_cv_header_semaphore_h" = xyes; then :
18910  cat >>confdefs.h <<_ACEOF
18911#define HAVE_SEMAPHORE_H 1
18912_ACEOF
18913
18914fi
18915
18916done
18917
18918for ac_func in socketpair
18919do :
18920  ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
18921if test "x$ac_cv_func_socketpair" = xyes; then :
18922  cat >>confdefs.h <<_ACEOF
18923#define HAVE_SOCKETPAIR 1
18924_ACEOF
18925
18926fi
18927done
18928
18929# Check whether --enable-thread-support was given.
18930if test "${enable_thread_support+set}" = set; then :
18931  enableval=$enable_thread_support;
18932else
18933  enable_thread_support=yes
18934
18935fi
18936
18937have_pthreads=no
18938case "$enable_thread_support" in
18939 no) ;;
18940 *)
18941    ol_found_pthreads=no
18942
18943
18944
18945ac_ext=c
18946ac_cpp='$CPP $CPPFLAGS'
18947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18949ac_compiler_gnu=$ac_cv_c_compiler_gnu
18950
18951# OpenLDAP --with-threads
18952
18953# Check whether --with-threads was given.
18954if test "${with_threads+set}" = set; then :
18955  withval=$with_threads;
18956	ol_arg=invalid
18957	for ol_val in auto nt posix mach pth lwp yes no manual  ; do
18958		if test "$withval" = "$ol_val" ; then
18959			ol_arg="$ol_val"
18960		fi
18961	done
18962	if test "$ol_arg" = "invalid" ; then
18963		as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
18964	fi
18965	ol_with_threads="$ol_arg"
18966
18967else
18968  	ol_with_threads="auto"
18969fi
18970# end --with-threads
18971
18972
18973case "$ol_with_threads$host" in
18974 auto*-*-solaris2.[0-6])
18975        ol_with_threads=no
18976    ;;
18977esac
18978
18979
18980ol_aix_threads=no
18981case "$host" in
18982*-*-aix*) 	if test -z "$CC" ; then
18983		case "$ol_with_threads" in
18984		auto | yes |  posix) ol_aix_threads=yes ;;
18985		esac
18986	fi
18987;;
18988esac
18989
18990if test $ol_aix_threads = yes ; then
18991	if test -z "${CC}" ; then
18992		for ac_prog in cc_r xlc_r cc
18993do
18994  # Extract the first word of "$ac_prog", so it can be a program name with args.
18995set dummy $ac_prog; ac_word=$2
18996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18997$as_echo_n "checking for $ac_word... " >&6; }
18998if ${ac_cv_prog_CC+:} false; then :
18999  $as_echo_n "(cached) " >&6
19000else
19001  if test -n "$CC"; then
19002  ac_cv_prog_CC="$CC" # Let the user override the test.
19003else
19004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19005for as_dir in $PATH
19006do
19007  IFS=$as_save_IFS
19008  test -z "$as_dir" && as_dir=.
19009    for ac_exec_ext in '' $ac_executable_extensions; do
19010  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19011    ac_cv_prog_CC="$ac_prog"
19012    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19013    break 2
19014  fi
19015done
19016  done
19017IFS=$as_save_IFS
19018
19019fi
19020fi
19021CC=$ac_cv_prog_CC
19022if test -n "$CC"; then
19023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19024$as_echo "$CC" >&6; }
19025else
19026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19027$as_echo "no" >&6; }
19028fi
19029
19030
19031  test -n "$CC" && break
19032done
19033
19034
19035		if test "$CC" = cc ; then
19036						if test $ol_with_threads != auto ; then
19037				as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
19038			else
19039				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
19040$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
19041			fi
19042			ol_with_threads=no
19043  		fi
19044	fi
19045
19046	case ${CC} in cc_r | xlc_r)
19047		ol_with_threads=posix
19048		ol_cv_pthread_create=yes
19049		;;
19050	esac
19051fi
19052
19053ol_link_threads=no
19054# OpenLDAP --with-yielding_select
19055
19056# Check whether --with-yielding_select was given.
19057if test "${with_yielding_select+set}" = set; then :
19058  withval=$with_yielding_select;
19059	ol_arg=invalid
19060	for ol_val in auto yes no manual  ; do
19061		if test "$withval" = "$ol_val" ; then
19062			ol_arg="$ol_val"
19063		fi
19064	done
19065	if test "$ol_arg" = "invalid" ; then
19066		as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
19067	fi
19068	ol_with_yielding_select="$ol_arg"
19069
19070else
19071  	ol_with_yielding_select="auto"
19072fi
19073# end --with-yielding_select
19074
19075
19076case $ol_with_threads in auto | yes | nt)
19077
19078
19079	ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
19080if test "x$ac_cv_func__beginthread" = xyes; then :
19081
19082fi
19083
19084
19085	if test $ac_cv_func__beginthread = yes ; then
19086
19087$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
19088
19089		ol_cv_nt_threads=yes
19090	fi
19091
19092
19093	if test "$ol_cv_nt_threads" = yes ; then
19094		ol_link_threads=nt
19095		ol_with_threads=found
19096		ol_with_yielding_select=yes
19097
19098
19099$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
19100
19101
19102$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
19103
19104	fi
19105
19106	if test $ol_with_threads = nt ; then
19107		as_fn_error $? "could not locate NT Threads" "$LINENO" 5
19108	fi
19109	;;
19110esac
19111
19112case $ol_with_threads in auto | yes | posix)
19113
19114	for ac_header in pthread.h
19115do :
19116  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19117if test "x$ac_cv_header_pthread_h" = xyes; then :
19118  cat >>confdefs.h <<_ACEOF
19119#define HAVE_PTHREAD_H 1
19120_ACEOF
19121
19122fi
19123
19124done
19125
19126
19127	if test $ac_cv_header_pthread_h = yes ; then
19128		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
19129$as_echo_n "checking POSIX thread version... " >&6; }
19130if ${ol_cv_pthread_version+:} false; then :
19131  $as_echo_n "(cached) " >&6
19132else
19133
19134	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19135/* end confdefs.h.  */
19136
19137#		include <pthread.h>
19138
19139int
19140main ()
19141{
19142
19143		int i = PTHREAD_CREATE_JOINABLE;
19144
19145  ;
19146  return 0;
19147}
19148_ACEOF
19149if ac_fn_c_try_compile "$LINENO"; then :
19150
19151	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19152/* end confdefs.h.  */
19153#include <pthread.h>
19154
19155_ACEOF
19156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19157  $EGREP "pthread_detach" >/dev/null 2>&1; then :
19158  ol_cv_pthread_version=10
19159else
19160  ol_cv_pthread_version=8
19161fi
19162rm -f conftest*
19163
19164else
19165
19166	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19167/* end confdefs.h.  */
19168
19169#		include <pthread.h>
19170#		ifdef PTHREAD_CREATE_UNDETACHED
19171		draft7
19172#		endif
19173
19174_ACEOF
19175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19176  $EGREP "draft7" >/dev/null 2>&1; then :
19177  ol_cv_pthread_version=7
19178else
19179
19180	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19181/* end confdefs.h.  */
19182#include <pthread.h>
19183
19184_ACEOF
19185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19186  $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
19187  ol_cv_pthread_version=6
19188else
19189
19190	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19191/* end confdefs.h.  */
19192
19193#		include <pthread.h>
19194#ifdef		PTHREAD_MUTEX_INITIALIZER
19195		draft5
19196#endif
19197
19198_ACEOF
19199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19200  $EGREP "draft5" >/dev/null 2>&1; then :
19201  ol_cv_pthread_version=5
19202else
19203  ol_cv_pthread_version=4
19204fi
19205rm -f conftest*
19206
19207fi
19208rm -f conftest*
19209
19210fi
19211rm -f conftest*
19212
19213fi
19214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19215
19216fi
19217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
19218$as_echo "$ol_cv_pthread_version" >&6; }
19219
19220
19221		if test $ol_cv_pthread_version != 0 ; then
19222
19223cat >>confdefs.h <<_ACEOF
19224#define HAVE_PTHREADS $ol_cv_pthread_version
19225_ACEOF
19226
19227		else
19228			as_fn_error $? "unknown pthread version" "$LINENO" 5
19229		fi
19230
19231		# consider threads found
19232		ol_with_threads=found
19233
19234
19235	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
19236$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
19237if ${ol_cv_header_linux_threads+:} false; then :
19238  $as_echo_n "(cached) " >&6
19239else
19240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19241/* end confdefs.h.  */
19242#include <pthread.h>
19243_ACEOF
19244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19245  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
19246  ol_cv_header_linux_threads=yes
19247else
19248  ol_cv_header_linux_threads=no
19249fi
19250rm -f conftest*
19251
19252
19253fi
19254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
19255$as_echo "$ol_cv_header_linux_threads" >&6; }
19256	if test $ol_cv_header_linux_threads = yes; then
19257
19258$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
19259
19260	fi
19261
19262
19263	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
19264$as_echo_n "checking for GNU Pth pthread.h... " >&6; }
19265if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
19266  $as_echo_n "(cached) " >&6
19267else
19268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19269/* end confdefs.h.  */
19270#include <pthread.h>
19271#ifdef _POSIX_THREAD_IS_GNU_PTH
19272	__gnu_pth__;
19273#endif
19274
19275_ACEOF
19276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19277  $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
19278  ol_cv_header_gnu_pth_pthread_h=yes
19279else
19280  ol_cv_header_gnu_pth_pthread_h=no
19281fi
19282rm -f conftest*
19283
19284
19285fi
19286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
19287$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
19288
19289
19290		if test $ol_cv_header_gnu_pth_pthread_h = no ; then
19291			for ac_header in sched.h
19292do :
19293  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19294if test "x$ac_cv_header_sched_h" = xyes; then :
19295  cat >>confdefs.h <<_ACEOF
19296#define HAVE_SCHED_H 1
19297_ACEOF
19298
19299fi
19300
19301done
19302
19303		fi
19304
19305
19306				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
19307$as_echo_n "checking for pthread_create in default libraries... " >&6; }
19308if ${ol_cv_pthread_create+:} false; then :
19309  $as_echo_n "(cached) " >&6
19310else
19311
19312			if test "$cross_compiling" = yes; then :
19313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19314/* end confdefs.h.  */
19315
19316/* pthread test headers */
19317#include <pthread.h>
19318#if HAVE_PTHREADS < 7
19319#include <errno.h>
19320#endif
19321#ifndef NULL
19322#define NULL (void*)0
19323#endif
19324
19325static void *task(p)
19326	void *p;
19327{
19328	return (void *) (p == NULL);
19329}
19330
19331int
19332main ()
19333{
19334
19335	/* pthread test function */
19336#ifndef PTHREAD_CREATE_DETACHED
19337#define	PTHREAD_CREATE_DETACHED	1
19338#endif
19339	pthread_t t;
19340	int status;
19341	int detach = PTHREAD_CREATE_DETACHED;
19342
19343#if HAVE_PTHREADS > 4
19344	/* Final pthreads */
19345	pthread_attr_t attr;
19346
19347	status = pthread_attr_init(&attr);
19348	if( status ) return status;
19349
19350#if HAVE_PTHREADS < 7
19351	status = pthread_attr_setdetachstate(&attr, &detach);
19352	if( status < 0 ) status = errno;
19353#else
19354	status = pthread_attr_setdetachstate(&attr, detach);
19355#endif
19356	if( status ) return status;
19357	status = pthread_create( &t, &attr, task, NULL );
19358#if HAVE_PTHREADS < 7
19359	if( status < 0 ) status = errno;
19360#endif
19361	if( status ) return status;
19362#else
19363	/* Draft 4 pthreads */
19364	status = pthread_create( &t, pthread_attr_default, task, NULL );
19365	if( status ) return errno;
19366
19367	/* give thread a chance to complete */
19368	/* it should remain joinable and hence detachable */
19369	sleep( 1 );
19370
19371	status = pthread_detach( &t );
19372	if( status ) return errno;
19373#endif
19374
19375#ifdef HAVE_LINUX_THREADS
19376	pthread_kill_other_threads_np();
19377#endif
19378
19379	return 0;
19380
19381  ;
19382  return 0;
19383}
19384_ACEOF
19385if ac_fn_c_try_link "$LINENO"; then :
19386  ol_cv_pthread_create=yes
19387else
19388  ol_cv_pthread_create=no
19389fi
19390rm -f core conftest.err conftest.$ac_objext \
19391    conftest$ac_exeext conftest.$ac_ext
19392else
19393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19394/* end confdefs.h.  */
19395
19396
19397/* pthread test headers */
19398#include <pthread.h>
19399#if HAVE_PTHREADS < 7
19400#include <errno.h>
19401#endif
19402#ifndef NULL
19403#define NULL (void*)0
19404#endif
19405
19406static void *task(p)
19407	void *p;
19408{
19409	return (void *) (p == NULL);
19410}
19411
19412
19413int main(argc, argv)
19414	int argc;
19415	char **argv;
19416{
19417
19418	/* pthread test function */
19419#ifndef PTHREAD_CREATE_DETACHED
19420#define	PTHREAD_CREATE_DETACHED	1
19421#endif
19422	pthread_t t;
19423	int status;
19424	int detach = PTHREAD_CREATE_DETACHED;
19425
19426#if HAVE_PTHREADS > 4
19427	/* Final pthreads */
19428	pthread_attr_t attr;
19429
19430	status = pthread_attr_init(&attr);
19431	if( status ) return status;
19432
19433#if HAVE_PTHREADS < 7
19434	status = pthread_attr_setdetachstate(&attr, &detach);
19435	if( status < 0 ) status = errno;
19436#else
19437	status = pthread_attr_setdetachstate(&attr, detach);
19438#endif
19439	if( status ) return status;
19440	status = pthread_create( &t, &attr, task, NULL );
19441#if HAVE_PTHREADS < 7
19442	if( status < 0 ) status = errno;
19443#endif
19444	if( status ) return status;
19445#else
19446	/* Draft 4 pthreads */
19447	status = pthread_create( &t, pthread_attr_default, task, NULL );
19448	if( status ) return errno;
19449
19450	/* give thread a chance to complete */
19451	/* it should remain joinable and hence detachable */
19452	sleep( 1 );
19453
19454	status = pthread_detach( &t );
19455	if( status ) return errno;
19456#endif
19457
19458#ifdef HAVE_LINUX_THREADS
19459	pthread_kill_other_threads_np();
19460#endif
19461
19462	return 0;
19463
19464}
19465
19466_ACEOF
19467if ac_fn_c_try_run "$LINENO"; then :
19468  ol_cv_pthread_create=yes
19469else
19470  ol_cv_pthread_create=no
19471fi
19472rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19473  conftest.$ac_objext conftest.beam conftest.$ac_ext
19474fi
19475
19476fi
19477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
19478$as_echo "$ol_cv_pthread_create" >&6; }
19479
19480		if test $ol_cv_pthread_create != no ; then
19481			ol_link_threads=posix
19482			ol_link_pthreads=""
19483		fi
19484
19485		# Pthread try link: -kthread (ol_cv_pthread_kthread)
19486if test "$ol_link_threads" = no ; then
19487	# try -kthread
19488	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
19489$as_echo_n "checking for pthread link with -kthread... " >&6; }
19490if ${ol_cv_pthread_kthread+:} false; then :
19491  $as_echo_n "(cached) " >&6
19492else
19493
19494		# save the flags
19495		ol_LIBS="$LIBS"
19496		LIBS="-kthread $LIBS"
19497
19498		if test "$cross_compiling" = yes; then :
19499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19500/* end confdefs.h.  */
19501
19502/* pthread test headers */
19503#include <pthread.h>
19504#if HAVE_PTHREADS < 7
19505#include <errno.h>
19506#endif
19507#ifndef NULL
19508#define NULL (void*)0
19509#endif
19510
19511static void *task(p)
19512	void *p;
19513{
19514	return (void *) (p == NULL);
19515}
19516
19517int
19518main ()
19519{
19520
19521	/* pthread test function */
19522#ifndef PTHREAD_CREATE_DETACHED
19523#define	PTHREAD_CREATE_DETACHED	1
19524#endif
19525	pthread_t t;
19526	int status;
19527	int detach = PTHREAD_CREATE_DETACHED;
19528
19529#if HAVE_PTHREADS > 4
19530	/* Final pthreads */
19531	pthread_attr_t attr;
19532
19533	status = pthread_attr_init(&attr);
19534	if( status ) return status;
19535
19536#if HAVE_PTHREADS < 7
19537	status = pthread_attr_setdetachstate(&attr, &detach);
19538	if( status < 0 ) status = errno;
19539#else
19540	status = pthread_attr_setdetachstate(&attr, detach);
19541#endif
19542	if( status ) return status;
19543	status = pthread_create( &t, &attr, task, NULL );
19544#if HAVE_PTHREADS < 7
19545	if( status < 0 ) status = errno;
19546#endif
19547	if( status ) return status;
19548#else
19549	/* Draft 4 pthreads */
19550	status = pthread_create( &t, pthread_attr_default, task, NULL );
19551	if( status ) return errno;
19552
19553	/* give thread a chance to complete */
19554	/* it should remain joinable and hence detachable */
19555	sleep( 1 );
19556
19557	status = pthread_detach( &t );
19558	if( status ) return errno;
19559#endif
19560
19561#ifdef HAVE_LINUX_THREADS
19562	pthread_kill_other_threads_np();
19563#endif
19564
19565	return 0;
19566
19567  ;
19568  return 0;
19569}
19570_ACEOF
19571if ac_fn_c_try_link "$LINENO"; then :
19572  ol_cv_pthread_kthread=yes
19573else
19574  ol_cv_pthread_kthread=no
19575fi
19576rm -f core conftest.err conftest.$ac_objext \
19577    conftest$ac_exeext conftest.$ac_ext
19578else
19579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19580/* end confdefs.h.  */
19581
19582
19583/* pthread test headers */
19584#include <pthread.h>
19585#if HAVE_PTHREADS < 7
19586#include <errno.h>
19587#endif
19588#ifndef NULL
19589#define NULL (void*)0
19590#endif
19591
19592static void *task(p)
19593	void *p;
19594{
19595	return (void *) (p == NULL);
19596}
19597
19598
19599int main(argc, argv)
19600	int argc;
19601	char **argv;
19602{
19603
19604	/* pthread test function */
19605#ifndef PTHREAD_CREATE_DETACHED
19606#define	PTHREAD_CREATE_DETACHED	1
19607#endif
19608	pthread_t t;
19609	int status;
19610	int detach = PTHREAD_CREATE_DETACHED;
19611
19612#if HAVE_PTHREADS > 4
19613	/* Final pthreads */
19614	pthread_attr_t attr;
19615
19616	status = pthread_attr_init(&attr);
19617	if( status ) return status;
19618
19619#if HAVE_PTHREADS < 7
19620	status = pthread_attr_setdetachstate(&attr, &detach);
19621	if( status < 0 ) status = errno;
19622#else
19623	status = pthread_attr_setdetachstate(&attr, detach);
19624#endif
19625	if( status ) return status;
19626	status = pthread_create( &t, &attr, task, NULL );
19627#if HAVE_PTHREADS < 7
19628	if( status < 0 ) status = errno;
19629#endif
19630	if( status ) return status;
19631#else
19632	/* Draft 4 pthreads */
19633	status = pthread_create( &t, pthread_attr_default, task, NULL );
19634	if( status ) return errno;
19635
19636	/* give thread a chance to complete */
19637	/* it should remain joinable and hence detachable */
19638	sleep( 1 );
19639
19640	status = pthread_detach( &t );
19641	if( status ) return errno;
19642#endif
19643
19644#ifdef HAVE_LINUX_THREADS
19645	pthread_kill_other_threads_np();
19646#endif
19647
19648	return 0;
19649
19650}
19651
19652_ACEOF
19653if ac_fn_c_try_run "$LINENO"; then :
19654  ol_cv_pthread_kthread=yes
19655else
19656  ol_cv_pthread_kthread=no
19657fi
19658rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19659  conftest.$ac_objext conftest.beam conftest.$ac_ext
19660fi
19661
19662
19663		# restore the LIBS
19664		LIBS="$ol_LIBS"
19665
19666fi
19667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
19668$as_echo "$ol_cv_pthread_kthread" >&6; }
19669
19670	if test $ol_cv_pthread_kthread = yes ; then
19671		ol_link_pthreads="-kthread"
19672		ol_link_threads=posix
19673	fi
19674fi
19675
19676		# Pthread try link: -pthread (ol_cv_pthread_pthread)
19677if test "$ol_link_threads" = no ; then
19678	# try -pthread
19679	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
19680$as_echo_n "checking for pthread link with -pthread... " >&6; }
19681if ${ol_cv_pthread_pthread+:} false; then :
19682  $as_echo_n "(cached) " >&6
19683else
19684
19685		# save the flags
19686		ol_LIBS="$LIBS"
19687		LIBS="-pthread $LIBS"
19688
19689		if test "$cross_compiling" = yes; then :
19690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19691/* end confdefs.h.  */
19692
19693/* pthread test headers */
19694#include <pthread.h>
19695#if HAVE_PTHREADS < 7
19696#include <errno.h>
19697#endif
19698#ifndef NULL
19699#define NULL (void*)0
19700#endif
19701
19702static void *task(p)
19703	void *p;
19704{
19705	return (void *) (p == NULL);
19706}
19707
19708int
19709main ()
19710{
19711
19712	/* pthread test function */
19713#ifndef PTHREAD_CREATE_DETACHED
19714#define	PTHREAD_CREATE_DETACHED	1
19715#endif
19716	pthread_t t;
19717	int status;
19718	int detach = PTHREAD_CREATE_DETACHED;
19719
19720#if HAVE_PTHREADS > 4
19721	/* Final pthreads */
19722	pthread_attr_t attr;
19723
19724	status = pthread_attr_init(&attr);
19725	if( status ) return status;
19726
19727#if HAVE_PTHREADS < 7
19728	status = pthread_attr_setdetachstate(&attr, &detach);
19729	if( status < 0 ) status = errno;
19730#else
19731	status = pthread_attr_setdetachstate(&attr, detach);
19732#endif
19733	if( status ) return status;
19734	status = pthread_create( &t, &attr, task, NULL );
19735#if HAVE_PTHREADS < 7
19736	if( status < 0 ) status = errno;
19737#endif
19738	if( status ) return status;
19739#else
19740	/* Draft 4 pthreads */
19741	status = pthread_create( &t, pthread_attr_default, task, NULL );
19742	if( status ) return errno;
19743
19744	/* give thread a chance to complete */
19745	/* it should remain joinable and hence detachable */
19746	sleep( 1 );
19747
19748	status = pthread_detach( &t );
19749	if( status ) return errno;
19750#endif
19751
19752#ifdef HAVE_LINUX_THREADS
19753	pthread_kill_other_threads_np();
19754#endif
19755
19756	return 0;
19757
19758  ;
19759  return 0;
19760}
19761_ACEOF
19762if ac_fn_c_try_link "$LINENO"; then :
19763  ol_cv_pthread_pthread=yes
19764else
19765  ol_cv_pthread_pthread=no
19766fi
19767rm -f core conftest.err conftest.$ac_objext \
19768    conftest$ac_exeext conftest.$ac_ext
19769else
19770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19771/* end confdefs.h.  */
19772
19773
19774/* pthread test headers */
19775#include <pthread.h>
19776#if HAVE_PTHREADS < 7
19777#include <errno.h>
19778#endif
19779#ifndef NULL
19780#define NULL (void*)0
19781#endif
19782
19783static void *task(p)
19784	void *p;
19785{
19786	return (void *) (p == NULL);
19787}
19788
19789
19790int main(argc, argv)
19791	int argc;
19792	char **argv;
19793{
19794
19795	/* pthread test function */
19796#ifndef PTHREAD_CREATE_DETACHED
19797#define	PTHREAD_CREATE_DETACHED	1
19798#endif
19799	pthread_t t;
19800	int status;
19801	int detach = PTHREAD_CREATE_DETACHED;
19802
19803#if HAVE_PTHREADS > 4
19804	/* Final pthreads */
19805	pthread_attr_t attr;
19806
19807	status = pthread_attr_init(&attr);
19808	if( status ) return status;
19809
19810#if HAVE_PTHREADS < 7
19811	status = pthread_attr_setdetachstate(&attr, &detach);
19812	if( status < 0 ) status = errno;
19813#else
19814	status = pthread_attr_setdetachstate(&attr, detach);
19815#endif
19816	if( status ) return status;
19817	status = pthread_create( &t, &attr, task, NULL );
19818#if HAVE_PTHREADS < 7
19819	if( status < 0 ) status = errno;
19820#endif
19821	if( status ) return status;
19822#else
19823	/* Draft 4 pthreads */
19824	status = pthread_create( &t, pthread_attr_default, task, NULL );
19825	if( status ) return errno;
19826
19827	/* give thread a chance to complete */
19828	/* it should remain joinable and hence detachable */
19829	sleep( 1 );
19830
19831	status = pthread_detach( &t );
19832	if( status ) return errno;
19833#endif
19834
19835#ifdef HAVE_LINUX_THREADS
19836	pthread_kill_other_threads_np();
19837#endif
19838
19839	return 0;
19840
19841}
19842
19843_ACEOF
19844if ac_fn_c_try_run "$LINENO"; then :
19845  ol_cv_pthread_pthread=yes
19846else
19847  ol_cv_pthread_pthread=no
19848fi
19849rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19850  conftest.$ac_objext conftest.beam conftest.$ac_ext
19851fi
19852
19853
19854		# restore the LIBS
19855		LIBS="$ol_LIBS"
19856
19857fi
19858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
19859$as_echo "$ol_cv_pthread_pthread" >&6; }
19860
19861	if test $ol_cv_pthread_pthread = yes ; then
19862		ol_link_pthreads="-pthread"
19863		ol_link_threads=posix
19864	fi
19865fi
19866
19867		# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
19868if test "$ol_link_threads" = no ; then
19869	# try -pthreads
19870	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
19871$as_echo_n "checking for pthread link with -pthreads... " >&6; }
19872if ${ol_cv_pthread_pthreads+:} false; then :
19873  $as_echo_n "(cached) " >&6
19874else
19875
19876		# save the flags
19877		ol_LIBS="$LIBS"
19878		LIBS="-pthreads $LIBS"
19879
19880		if test "$cross_compiling" = yes; then :
19881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19882/* end confdefs.h.  */
19883
19884/* pthread test headers */
19885#include <pthread.h>
19886#if HAVE_PTHREADS < 7
19887#include <errno.h>
19888#endif
19889#ifndef NULL
19890#define NULL (void*)0
19891#endif
19892
19893static void *task(p)
19894	void *p;
19895{
19896	return (void *) (p == NULL);
19897}
19898
19899int
19900main ()
19901{
19902
19903	/* pthread test function */
19904#ifndef PTHREAD_CREATE_DETACHED
19905#define	PTHREAD_CREATE_DETACHED	1
19906#endif
19907	pthread_t t;
19908	int status;
19909	int detach = PTHREAD_CREATE_DETACHED;
19910
19911#if HAVE_PTHREADS > 4
19912	/* Final pthreads */
19913	pthread_attr_t attr;
19914
19915	status = pthread_attr_init(&attr);
19916	if( status ) return status;
19917
19918#if HAVE_PTHREADS < 7
19919	status = pthread_attr_setdetachstate(&attr, &detach);
19920	if( status < 0 ) status = errno;
19921#else
19922	status = pthread_attr_setdetachstate(&attr, detach);
19923#endif
19924	if( status ) return status;
19925	status = pthread_create( &t, &attr, task, NULL );
19926#if HAVE_PTHREADS < 7
19927	if( status < 0 ) status = errno;
19928#endif
19929	if( status ) return status;
19930#else
19931	/* Draft 4 pthreads */
19932	status = pthread_create( &t, pthread_attr_default, task, NULL );
19933	if( status ) return errno;
19934
19935	/* give thread a chance to complete */
19936	/* it should remain joinable and hence detachable */
19937	sleep( 1 );
19938
19939	status = pthread_detach( &t );
19940	if( status ) return errno;
19941#endif
19942
19943#ifdef HAVE_LINUX_THREADS
19944	pthread_kill_other_threads_np();
19945#endif
19946
19947	return 0;
19948
19949  ;
19950  return 0;
19951}
19952_ACEOF
19953if ac_fn_c_try_link "$LINENO"; then :
19954  ol_cv_pthread_pthreads=yes
19955else
19956  ol_cv_pthread_pthreads=no
19957fi
19958rm -f core conftest.err conftest.$ac_objext \
19959    conftest$ac_exeext conftest.$ac_ext
19960else
19961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19962/* end confdefs.h.  */
19963
19964
19965/* pthread test headers */
19966#include <pthread.h>
19967#if HAVE_PTHREADS < 7
19968#include <errno.h>
19969#endif
19970#ifndef NULL
19971#define NULL (void*)0
19972#endif
19973
19974static void *task(p)
19975	void *p;
19976{
19977	return (void *) (p == NULL);
19978}
19979
19980
19981int main(argc, argv)
19982	int argc;
19983	char **argv;
19984{
19985
19986	/* pthread test function */
19987#ifndef PTHREAD_CREATE_DETACHED
19988#define	PTHREAD_CREATE_DETACHED	1
19989#endif
19990	pthread_t t;
19991	int status;
19992	int detach = PTHREAD_CREATE_DETACHED;
19993
19994#if HAVE_PTHREADS > 4
19995	/* Final pthreads */
19996	pthread_attr_t attr;
19997
19998	status = pthread_attr_init(&attr);
19999	if( status ) return status;
20000
20001#if HAVE_PTHREADS < 7
20002	status = pthread_attr_setdetachstate(&attr, &detach);
20003	if( status < 0 ) status = errno;
20004#else
20005	status = pthread_attr_setdetachstate(&attr, detach);
20006#endif
20007	if( status ) return status;
20008	status = pthread_create( &t, &attr, task, NULL );
20009#if HAVE_PTHREADS < 7
20010	if( status < 0 ) status = errno;
20011#endif
20012	if( status ) return status;
20013#else
20014	/* Draft 4 pthreads */
20015	status = pthread_create( &t, pthread_attr_default, task, NULL );
20016	if( status ) return errno;
20017
20018	/* give thread a chance to complete */
20019	/* it should remain joinable and hence detachable */
20020	sleep( 1 );
20021
20022	status = pthread_detach( &t );
20023	if( status ) return errno;
20024#endif
20025
20026#ifdef HAVE_LINUX_THREADS
20027	pthread_kill_other_threads_np();
20028#endif
20029
20030	return 0;
20031
20032}
20033
20034_ACEOF
20035if ac_fn_c_try_run "$LINENO"; then :
20036  ol_cv_pthread_pthreads=yes
20037else
20038  ol_cv_pthread_pthreads=no
20039fi
20040rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20041  conftest.$ac_objext conftest.beam conftest.$ac_ext
20042fi
20043
20044
20045		# restore the LIBS
20046		LIBS="$ol_LIBS"
20047
20048fi
20049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
20050$as_echo "$ol_cv_pthread_pthreads" >&6; }
20051
20052	if test $ol_cv_pthread_pthreads = yes ; then
20053		ol_link_pthreads="-pthreads"
20054		ol_link_threads=posix
20055	fi
20056fi
20057
20058		# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
20059if test "$ol_link_threads" = no ; then
20060	# try -mthreads
20061	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
20062$as_echo_n "checking for pthread link with -mthreads... " >&6; }
20063if ${ol_cv_pthread_mthreads+:} false; then :
20064  $as_echo_n "(cached) " >&6
20065else
20066
20067		# save the flags
20068		ol_LIBS="$LIBS"
20069		LIBS="-mthreads $LIBS"
20070
20071		if test "$cross_compiling" = yes; then :
20072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20073/* end confdefs.h.  */
20074
20075/* pthread test headers */
20076#include <pthread.h>
20077#if HAVE_PTHREADS < 7
20078#include <errno.h>
20079#endif
20080#ifndef NULL
20081#define NULL (void*)0
20082#endif
20083
20084static void *task(p)
20085	void *p;
20086{
20087	return (void *) (p == NULL);
20088}
20089
20090int
20091main ()
20092{
20093
20094	/* pthread test function */
20095#ifndef PTHREAD_CREATE_DETACHED
20096#define	PTHREAD_CREATE_DETACHED	1
20097#endif
20098	pthread_t t;
20099	int status;
20100	int detach = PTHREAD_CREATE_DETACHED;
20101
20102#if HAVE_PTHREADS > 4
20103	/* Final pthreads */
20104	pthread_attr_t attr;
20105
20106	status = pthread_attr_init(&attr);
20107	if( status ) return status;
20108
20109#if HAVE_PTHREADS < 7
20110	status = pthread_attr_setdetachstate(&attr, &detach);
20111	if( status < 0 ) status = errno;
20112#else
20113	status = pthread_attr_setdetachstate(&attr, detach);
20114#endif
20115	if( status ) return status;
20116	status = pthread_create( &t, &attr, task, NULL );
20117#if HAVE_PTHREADS < 7
20118	if( status < 0 ) status = errno;
20119#endif
20120	if( status ) return status;
20121#else
20122	/* Draft 4 pthreads */
20123	status = pthread_create( &t, pthread_attr_default, task, NULL );
20124	if( status ) return errno;
20125
20126	/* give thread a chance to complete */
20127	/* it should remain joinable and hence detachable */
20128	sleep( 1 );
20129
20130	status = pthread_detach( &t );
20131	if( status ) return errno;
20132#endif
20133
20134#ifdef HAVE_LINUX_THREADS
20135	pthread_kill_other_threads_np();
20136#endif
20137
20138	return 0;
20139
20140  ;
20141  return 0;
20142}
20143_ACEOF
20144if ac_fn_c_try_link "$LINENO"; then :
20145  ol_cv_pthread_mthreads=yes
20146else
20147  ol_cv_pthread_mthreads=no
20148fi
20149rm -f core conftest.err conftest.$ac_objext \
20150    conftest$ac_exeext conftest.$ac_ext
20151else
20152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20153/* end confdefs.h.  */
20154
20155
20156/* pthread test headers */
20157#include <pthread.h>
20158#if HAVE_PTHREADS < 7
20159#include <errno.h>
20160#endif
20161#ifndef NULL
20162#define NULL (void*)0
20163#endif
20164
20165static void *task(p)
20166	void *p;
20167{
20168	return (void *) (p == NULL);
20169}
20170
20171
20172int main(argc, argv)
20173	int argc;
20174	char **argv;
20175{
20176
20177	/* pthread test function */
20178#ifndef PTHREAD_CREATE_DETACHED
20179#define	PTHREAD_CREATE_DETACHED	1
20180#endif
20181	pthread_t t;
20182	int status;
20183	int detach = PTHREAD_CREATE_DETACHED;
20184
20185#if HAVE_PTHREADS > 4
20186	/* Final pthreads */
20187	pthread_attr_t attr;
20188
20189	status = pthread_attr_init(&attr);
20190	if( status ) return status;
20191
20192#if HAVE_PTHREADS < 7
20193	status = pthread_attr_setdetachstate(&attr, &detach);
20194	if( status < 0 ) status = errno;
20195#else
20196	status = pthread_attr_setdetachstate(&attr, detach);
20197#endif
20198	if( status ) return status;
20199	status = pthread_create( &t, &attr, task, NULL );
20200#if HAVE_PTHREADS < 7
20201	if( status < 0 ) status = errno;
20202#endif
20203	if( status ) return status;
20204#else
20205	/* Draft 4 pthreads */
20206	status = pthread_create( &t, pthread_attr_default, task, NULL );
20207	if( status ) return errno;
20208
20209	/* give thread a chance to complete */
20210	/* it should remain joinable and hence detachable */
20211	sleep( 1 );
20212
20213	status = pthread_detach( &t );
20214	if( status ) return errno;
20215#endif
20216
20217#ifdef HAVE_LINUX_THREADS
20218	pthread_kill_other_threads_np();
20219#endif
20220
20221	return 0;
20222
20223}
20224
20225_ACEOF
20226if ac_fn_c_try_run "$LINENO"; then :
20227  ol_cv_pthread_mthreads=yes
20228else
20229  ol_cv_pthread_mthreads=no
20230fi
20231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20232  conftest.$ac_objext conftest.beam conftest.$ac_ext
20233fi
20234
20235
20236		# restore the LIBS
20237		LIBS="$ol_LIBS"
20238
20239fi
20240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
20241$as_echo "$ol_cv_pthread_mthreads" >&6; }
20242
20243	if test $ol_cv_pthread_mthreads = yes ; then
20244		ol_link_pthreads="-mthreads"
20245		ol_link_threads=posix
20246	fi
20247fi
20248
20249		# Pthread try link: -thread (ol_cv_pthread_thread)
20250if test "$ol_link_threads" = no ; then
20251	# try -thread
20252	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
20253$as_echo_n "checking for pthread link with -thread... " >&6; }
20254if ${ol_cv_pthread_thread+:} false; then :
20255  $as_echo_n "(cached) " >&6
20256else
20257
20258		# save the flags
20259		ol_LIBS="$LIBS"
20260		LIBS="-thread $LIBS"
20261
20262		if test "$cross_compiling" = yes; then :
20263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20264/* end confdefs.h.  */
20265
20266/* pthread test headers */
20267#include <pthread.h>
20268#if HAVE_PTHREADS < 7
20269#include <errno.h>
20270#endif
20271#ifndef NULL
20272#define NULL (void*)0
20273#endif
20274
20275static void *task(p)
20276	void *p;
20277{
20278	return (void *) (p == NULL);
20279}
20280
20281int
20282main ()
20283{
20284
20285	/* pthread test function */
20286#ifndef PTHREAD_CREATE_DETACHED
20287#define	PTHREAD_CREATE_DETACHED	1
20288#endif
20289	pthread_t t;
20290	int status;
20291	int detach = PTHREAD_CREATE_DETACHED;
20292
20293#if HAVE_PTHREADS > 4
20294	/* Final pthreads */
20295	pthread_attr_t attr;
20296
20297	status = pthread_attr_init(&attr);
20298	if( status ) return status;
20299
20300#if HAVE_PTHREADS < 7
20301	status = pthread_attr_setdetachstate(&attr, &detach);
20302	if( status < 0 ) status = errno;
20303#else
20304	status = pthread_attr_setdetachstate(&attr, detach);
20305#endif
20306	if( status ) return status;
20307	status = pthread_create( &t, &attr, task, NULL );
20308#if HAVE_PTHREADS < 7
20309	if( status < 0 ) status = errno;
20310#endif
20311	if( status ) return status;
20312#else
20313	/* Draft 4 pthreads */
20314	status = pthread_create( &t, pthread_attr_default, task, NULL );
20315	if( status ) return errno;
20316
20317	/* give thread a chance to complete */
20318	/* it should remain joinable and hence detachable */
20319	sleep( 1 );
20320
20321	status = pthread_detach( &t );
20322	if( status ) return errno;
20323#endif
20324
20325#ifdef HAVE_LINUX_THREADS
20326	pthread_kill_other_threads_np();
20327#endif
20328
20329	return 0;
20330
20331  ;
20332  return 0;
20333}
20334_ACEOF
20335if ac_fn_c_try_link "$LINENO"; then :
20336  ol_cv_pthread_thread=yes
20337else
20338  ol_cv_pthread_thread=no
20339fi
20340rm -f core conftest.err conftest.$ac_objext \
20341    conftest$ac_exeext conftest.$ac_ext
20342else
20343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20344/* end confdefs.h.  */
20345
20346
20347/* pthread test headers */
20348#include <pthread.h>
20349#if HAVE_PTHREADS < 7
20350#include <errno.h>
20351#endif
20352#ifndef NULL
20353#define NULL (void*)0
20354#endif
20355
20356static void *task(p)
20357	void *p;
20358{
20359	return (void *) (p == NULL);
20360}
20361
20362
20363int main(argc, argv)
20364	int argc;
20365	char **argv;
20366{
20367
20368	/* pthread test function */
20369#ifndef PTHREAD_CREATE_DETACHED
20370#define	PTHREAD_CREATE_DETACHED	1
20371#endif
20372	pthread_t t;
20373	int status;
20374	int detach = PTHREAD_CREATE_DETACHED;
20375
20376#if HAVE_PTHREADS > 4
20377	/* Final pthreads */
20378	pthread_attr_t attr;
20379
20380	status = pthread_attr_init(&attr);
20381	if( status ) return status;
20382
20383#if HAVE_PTHREADS < 7
20384	status = pthread_attr_setdetachstate(&attr, &detach);
20385	if( status < 0 ) status = errno;
20386#else
20387	status = pthread_attr_setdetachstate(&attr, detach);
20388#endif
20389	if( status ) return status;
20390	status = pthread_create( &t, &attr, task, NULL );
20391#if HAVE_PTHREADS < 7
20392	if( status < 0 ) status = errno;
20393#endif
20394	if( status ) return status;
20395#else
20396	/* Draft 4 pthreads */
20397	status = pthread_create( &t, pthread_attr_default, task, NULL );
20398	if( status ) return errno;
20399
20400	/* give thread a chance to complete */
20401	/* it should remain joinable and hence detachable */
20402	sleep( 1 );
20403
20404	status = pthread_detach( &t );
20405	if( status ) return errno;
20406#endif
20407
20408#ifdef HAVE_LINUX_THREADS
20409	pthread_kill_other_threads_np();
20410#endif
20411
20412	return 0;
20413
20414}
20415
20416_ACEOF
20417if ac_fn_c_try_run "$LINENO"; then :
20418  ol_cv_pthread_thread=yes
20419else
20420  ol_cv_pthread_thread=no
20421fi
20422rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20423  conftest.$ac_objext conftest.beam conftest.$ac_ext
20424fi
20425
20426
20427		# restore the LIBS
20428		LIBS="$ol_LIBS"
20429
20430fi
20431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
20432$as_echo "$ol_cv_pthread_thread" >&6; }
20433
20434	if test $ol_cv_pthread_thread = yes ; then
20435		ol_link_pthreads="-thread"
20436		ol_link_threads=posix
20437	fi
20438fi
20439
20440
20441		# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
20442if test "$ol_link_threads" = no ; then
20443	# try -lpthread -lmach -lexc -lc_r
20444	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
20445$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
20446if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
20447  $as_echo_n "(cached) " >&6
20448else
20449
20450		# save the flags
20451		ol_LIBS="$LIBS"
20452		LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
20453
20454		if test "$cross_compiling" = yes; then :
20455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20456/* end confdefs.h.  */
20457
20458/* pthread test headers */
20459#include <pthread.h>
20460#if HAVE_PTHREADS < 7
20461#include <errno.h>
20462#endif
20463#ifndef NULL
20464#define NULL (void*)0
20465#endif
20466
20467static void *task(p)
20468	void *p;
20469{
20470	return (void *) (p == NULL);
20471}
20472
20473int
20474main ()
20475{
20476
20477	/* pthread test function */
20478#ifndef PTHREAD_CREATE_DETACHED
20479#define	PTHREAD_CREATE_DETACHED	1
20480#endif
20481	pthread_t t;
20482	int status;
20483	int detach = PTHREAD_CREATE_DETACHED;
20484
20485#if HAVE_PTHREADS > 4
20486	/* Final pthreads */
20487	pthread_attr_t attr;
20488
20489	status = pthread_attr_init(&attr);
20490	if( status ) return status;
20491
20492#if HAVE_PTHREADS < 7
20493	status = pthread_attr_setdetachstate(&attr, &detach);
20494	if( status < 0 ) status = errno;
20495#else
20496	status = pthread_attr_setdetachstate(&attr, detach);
20497#endif
20498	if( status ) return status;
20499	status = pthread_create( &t, &attr, task, NULL );
20500#if HAVE_PTHREADS < 7
20501	if( status < 0 ) status = errno;
20502#endif
20503	if( status ) return status;
20504#else
20505	/* Draft 4 pthreads */
20506	status = pthread_create( &t, pthread_attr_default, task, NULL );
20507	if( status ) return errno;
20508
20509	/* give thread a chance to complete */
20510	/* it should remain joinable and hence detachable */
20511	sleep( 1 );
20512
20513	status = pthread_detach( &t );
20514	if( status ) return errno;
20515#endif
20516
20517#ifdef HAVE_LINUX_THREADS
20518	pthread_kill_other_threads_np();
20519#endif
20520
20521	return 0;
20522
20523  ;
20524  return 0;
20525}
20526_ACEOF
20527if ac_fn_c_try_link "$LINENO"; then :
20528  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
20529else
20530  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
20531fi
20532rm -f core conftest.err conftest.$ac_objext \
20533    conftest$ac_exeext conftest.$ac_ext
20534else
20535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20536/* end confdefs.h.  */
20537
20538
20539/* pthread test headers */
20540#include <pthread.h>
20541#if HAVE_PTHREADS < 7
20542#include <errno.h>
20543#endif
20544#ifndef NULL
20545#define NULL (void*)0
20546#endif
20547
20548static void *task(p)
20549	void *p;
20550{
20551	return (void *) (p == NULL);
20552}
20553
20554
20555int main(argc, argv)
20556	int argc;
20557	char **argv;
20558{
20559
20560	/* pthread test function */
20561#ifndef PTHREAD_CREATE_DETACHED
20562#define	PTHREAD_CREATE_DETACHED	1
20563#endif
20564	pthread_t t;
20565	int status;
20566	int detach = PTHREAD_CREATE_DETACHED;
20567
20568#if HAVE_PTHREADS > 4
20569	/* Final pthreads */
20570	pthread_attr_t attr;
20571
20572	status = pthread_attr_init(&attr);
20573	if( status ) return status;
20574
20575#if HAVE_PTHREADS < 7
20576	status = pthread_attr_setdetachstate(&attr, &detach);
20577	if( status < 0 ) status = errno;
20578#else
20579	status = pthread_attr_setdetachstate(&attr, detach);
20580#endif
20581	if( status ) return status;
20582	status = pthread_create( &t, &attr, task, NULL );
20583#if HAVE_PTHREADS < 7
20584	if( status < 0 ) status = errno;
20585#endif
20586	if( status ) return status;
20587#else
20588	/* Draft 4 pthreads */
20589	status = pthread_create( &t, pthread_attr_default, task, NULL );
20590	if( status ) return errno;
20591
20592	/* give thread a chance to complete */
20593	/* it should remain joinable and hence detachable */
20594	sleep( 1 );
20595
20596	status = pthread_detach( &t );
20597	if( status ) return errno;
20598#endif
20599
20600#ifdef HAVE_LINUX_THREADS
20601	pthread_kill_other_threads_np();
20602#endif
20603
20604	return 0;
20605
20606}
20607
20608_ACEOF
20609if ac_fn_c_try_run "$LINENO"; then :
20610  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
20611else
20612  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
20613fi
20614rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20615  conftest.$ac_objext conftest.beam conftest.$ac_ext
20616fi
20617
20618
20619		# restore the LIBS
20620		LIBS="$ol_LIBS"
20621
20622fi
20623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
20624$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
20625
20626	if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
20627		ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
20628		ol_link_threads=posix
20629	fi
20630fi
20631
20632		# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
20633if test "$ol_link_threads" = no ; then
20634	# try -lpthread -lmach -lexc
20635	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
20636$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
20637if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
20638  $as_echo_n "(cached) " >&6
20639else
20640
20641		# save the flags
20642		ol_LIBS="$LIBS"
20643		LIBS="-lpthread -lmach -lexc $LIBS"
20644
20645		if test "$cross_compiling" = yes; then :
20646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20647/* end confdefs.h.  */
20648
20649/* pthread test headers */
20650#include <pthread.h>
20651#if HAVE_PTHREADS < 7
20652#include <errno.h>
20653#endif
20654#ifndef NULL
20655#define NULL (void*)0
20656#endif
20657
20658static void *task(p)
20659	void *p;
20660{
20661	return (void *) (p == NULL);
20662}
20663
20664int
20665main ()
20666{
20667
20668	/* pthread test function */
20669#ifndef PTHREAD_CREATE_DETACHED
20670#define	PTHREAD_CREATE_DETACHED	1
20671#endif
20672	pthread_t t;
20673	int status;
20674	int detach = PTHREAD_CREATE_DETACHED;
20675
20676#if HAVE_PTHREADS > 4
20677	/* Final pthreads */
20678	pthread_attr_t attr;
20679
20680	status = pthread_attr_init(&attr);
20681	if( status ) return status;
20682
20683#if HAVE_PTHREADS < 7
20684	status = pthread_attr_setdetachstate(&attr, &detach);
20685	if( status < 0 ) status = errno;
20686#else
20687	status = pthread_attr_setdetachstate(&attr, detach);
20688#endif
20689	if( status ) return status;
20690	status = pthread_create( &t, &attr, task, NULL );
20691#if HAVE_PTHREADS < 7
20692	if( status < 0 ) status = errno;
20693#endif
20694	if( status ) return status;
20695#else
20696	/* Draft 4 pthreads */
20697	status = pthread_create( &t, pthread_attr_default, task, NULL );
20698	if( status ) return errno;
20699
20700	/* give thread a chance to complete */
20701	/* it should remain joinable and hence detachable */
20702	sleep( 1 );
20703
20704	status = pthread_detach( &t );
20705	if( status ) return errno;
20706#endif
20707
20708#ifdef HAVE_LINUX_THREADS
20709	pthread_kill_other_threads_np();
20710#endif
20711
20712	return 0;
20713
20714  ;
20715  return 0;
20716}
20717_ACEOF
20718if ac_fn_c_try_link "$LINENO"; then :
20719  ol_cv_pthread_lpthread_lmach_lexc=yes
20720else
20721  ol_cv_pthread_lpthread_lmach_lexc=no
20722fi
20723rm -f core conftest.err conftest.$ac_objext \
20724    conftest$ac_exeext conftest.$ac_ext
20725else
20726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20727/* end confdefs.h.  */
20728
20729
20730/* pthread test headers */
20731#include <pthread.h>
20732#if HAVE_PTHREADS < 7
20733#include <errno.h>
20734#endif
20735#ifndef NULL
20736#define NULL (void*)0
20737#endif
20738
20739static void *task(p)
20740	void *p;
20741{
20742	return (void *) (p == NULL);
20743}
20744
20745
20746int main(argc, argv)
20747	int argc;
20748	char **argv;
20749{
20750
20751	/* pthread test function */
20752#ifndef PTHREAD_CREATE_DETACHED
20753#define	PTHREAD_CREATE_DETACHED	1
20754#endif
20755	pthread_t t;
20756	int status;
20757	int detach = PTHREAD_CREATE_DETACHED;
20758
20759#if HAVE_PTHREADS > 4
20760	/* Final pthreads */
20761	pthread_attr_t attr;
20762
20763	status = pthread_attr_init(&attr);
20764	if( status ) return status;
20765
20766#if HAVE_PTHREADS < 7
20767	status = pthread_attr_setdetachstate(&attr, &detach);
20768	if( status < 0 ) status = errno;
20769#else
20770	status = pthread_attr_setdetachstate(&attr, detach);
20771#endif
20772	if( status ) return status;
20773	status = pthread_create( &t, &attr, task, NULL );
20774#if HAVE_PTHREADS < 7
20775	if( status < 0 ) status = errno;
20776#endif
20777	if( status ) return status;
20778#else
20779	/* Draft 4 pthreads */
20780	status = pthread_create( &t, pthread_attr_default, task, NULL );
20781	if( status ) return errno;
20782
20783	/* give thread a chance to complete */
20784	/* it should remain joinable and hence detachable */
20785	sleep( 1 );
20786
20787	status = pthread_detach( &t );
20788	if( status ) return errno;
20789#endif
20790
20791#ifdef HAVE_LINUX_THREADS
20792	pthread_kill_other_threads_np();
20793#endif
20794
20795	return 0;
20796
20797}
20798
20799_ACEOF
20800if ac_fn_c_try_run "$LINENO"; then :
20801  ol_cv_pthread_lpthread_lmach_lexc=yes
20802else
20803  ol_cv_pthread_lpthread_lmach_lexc=no
20804fi
20805rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20806  conftest.$ac_objext conftest.beam conftest.$ac_ext
20807fi
20808
20809
20810		# restore the LIBS
20811		LIBS="$ol_LIBS"
20812
20813fi
20814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
20815$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
20816
20817	if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
20818		ol_link_pthreads="-lpthread -lmach -lexc"
20819		ol_link_threads=posix
20820	fi
20821fi
20822
20823
20824		# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
20825if test "$ol_link_threads" = no ; then
20826	# try -lpthread -Wl,-woff,85
20827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
20828$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
20829if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
20830  $as_echo_n "(cached) " >&6
20831else
20832
20833		# save the flags
20834		ol_LIBS="$LIBS"
20835		LIBS="-lpthread -Wl,-woff,85 $LIBS"
20836
20837		if test "$cross_compiling" = yes; then :
20838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20839/* end confdefs.h.  */
20840
20841/* pthread test headers */
20842#include <pthread.h>
20843#if HAVE_PTHREADS < 7
20844#include <errno.h>
20845#endif
20846#ifndef NULL
20847#define NULL (void*)0
20848#endif
20849
20850static void *task(p)
20851	void *p;
20852{
20853	return (void *) (p == NULL);
20854}
20855
20856int
20857main ()
20858{
20859
20860	/* pthread test function */
20861#ifndef PTHREAD_CREATE_DETACHED
20862#define	PTHREAD_CREATE_DETACHED	1
20863#endif
20864	pthread_t t;
20865	int status;
20866	int detach = PTHREAD_CREATE_DETACHED;
20867
20868#if HAVE_PTHREADS > 4
20869	/* Final pthreads */
20870	pthread_attr_t attr;
20871
20872	status = pthread_attr_init(&attr);
20873	if( status ) return status;
20874
20875#if HAVE_PTHREADS < 7
20876	status = pthread_attr_setdetachstate(&attr, &detach);
20877	if( status < 0 ) status = errno;
20878#else
20879	status = pthread_attr_setdetachstate(&attr, detach);
20880#endif
20881	if( status ) return status;
20882	status = pthread_create( &t, &attr, task, NULL );
20883#if HAVE_PTHREADS < 7
20884	if( status < 0 ) status = errno;
20885#endif
20886	if( status ) return status;
20887#else
20888	/* Draft 4 pthreads */
20889	status = pthread_create( &t, pthread_attr_default, task, NULL );
20890	if( status ) return errno;
20891
20892	/* give thread a chance to complete */
20893	/* it should remain joinable and hence detachable */
20894	sleep( 1 );
20895
20896	status = pthread_detach( &t );
20897	if( status ) return errno;
20898#endif
20899
20900#ifdef HAVE_LINUX_THREADS
20901	pthread_kill_other_threads_np();
20902#endif
20903
20904	return 0;
20905
20906  ;
20907  return 0;
20908}
20909_ACEOF
20910if ac_fn_c_try_link "$LINENO"; then :
20911  ol_cv_pthread_lib_lpthread_woff=yes
20912else
20913  ol_cv_pthread_lib_lpthread_woff=no
20914fi
20915rm -f core conftest.err conftest.$ac_objext \
20916    conftest$ac_exeext conftest.$ac_ext
20917else
20918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20919/* end confdefs.h.  */
20920
20921
20922/* pthread test headers */
20923#include <pthread.h>
20924#if HAVE_PTHREADS < 7
20925#include <errno.h>
20926#endif
20927#ifndef NULL
20928#define NULL (void*)0
20929#endif
20930
20931static void *task(p)
20932	void *p;
20933{
20934	return (void *) (p == NULL);
20935}
20936
20937
20938int main(argc, argv)
20939	int argc;
20940	char **argv;
20941{
20942
20943	/* pthread test function */
20944#ifndef PTHREAD_CREATE_DETACHED
20945#define	PTHREAD_CREATE_DETACHED	1
20946#endif
20947	pthread_t t;
20948	int status;
20949	int detach = PTHREAD_CREATE_DETACHED;
20950
20951#if HAVE_PTHREADS > 4
20952	/* Final pthreads */
20953	pthread_attr_t attr;
20954
20955	status = pthread_attr_init(&attr);
20956	if( status ) return status;
20957
20958#if HAVE_PTHREADS < 7
20959	status = pthread_attr_setdetachstate(&attr, &detach);
20960	if( status < 0 ) status = errno;
20961#else
20962	status = pthread_attr_setdetachstate(&attr, detach);
20963#endif
20964	if( status ) return status;
20965	status = pthread_create( &t, &attr, task, NULL );
20966#if HAVE_PTHREADS < 7
20967	if( status < 0 ) status = errno;
20968#endif
20969	if( status ) return status;
20970#else
20971	/* Draft 4 pthreads */
20972	status = pthread_create( &t, pthread_attr_default, task, NULL );
20973	if( status ) return errno;
20974
20975	/* give thread a chance to complete */
20976	/* it should remain joinable and hence detachable */
20977	sleep( 1 );
20978
20979	status = pthread_detach( &t );
20980	if( status ) return errno;
20981#endif
20982
20983#ifdef HAVE_LINUX_THREADS
20984	pthread_kill_other_threads_np();
20985#endif
20986
20987	return 0;
20988
20989}
20990
20991_ACEOF
20992if ac_fn_c_try_run "$LINENO"; then :
20993  ol_cv_pthread_lib_lpthread_woff=yes
20994else
20995  ol_cv_pthread_lib_lpthread_woff=no
20996fi
20997rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20998  conftest.$ac_objext conftest.beam conftest.$ac_ext
20999fi
21000
21001
21002		# restore the LIBS
21003		LIBS="$ol_LIBS"
21004
21005fi
21006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
21007$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
21008
21009	if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
21010		ol_link_pthreads="-lpthread -Wl,-woff,85"
21011		ol_link_threads=posix
21012	fi
21013fi
21014
21015
21016		# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
21017if test "$ol_link_threads" = no ; then
21018	# try -lpthread
21019	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
21020$as_echo_n "checking for pthread link with -lpthread... " >&6; }
21021if ${ol_cv_pthread_lpthread+:} false; then :
21022  $as_echo_n "(cached) " >&6
21023else
21024
21025		# save the flags
21026		ol_LIBS="$LIBS"
21027		LIBS="-lpthread $LIBS"
21028
21029		if test "$cross_compiling" = yes; then :
21030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21031/* end confdefs.h.  */
21032
21033/* pthread test headers */
21034#include <pthread.h>
21035#if HAVE_PTHREADS < 7
21036#include <errno.h>
21037#endif
21038#ifndef NULL
21039#define NULL (void*)0
21040#endif
21041
21042static void *task(p)
21043	void *p;
21044{
21045	return (void *) (p == NULL);
21046}
21047
21048int
21049main ()
21050{
21051
21052	/* pthread test function */
21053#ifndef PTHREAD_CREATE_DETACHED
21054#define	PTHREAD_CREATE_DETACHED	1
21055#endif
21056	pthread_t t;
21057	int status;
21058	int detach = PTHREAD_CREATE_DETACHED;
21059
21060#if HAVE_PTHREADS > 4
21061	/* Final pthreads */
21062	pthread_attr_t attr;
21063
21064	status = pthread_attr_init(&attr);
21065	if( status ) return status;
21066
21067#if HAVE_PTHREADS < 7
21068	status = pthread_attr_setdetachstate(&attr, &detach);
21069	if( status < 0 ) status = errno;
21070#else
21071	status = pthread_attr_setdetachstate(&attr, detach);
21072#endif
21073	if( status ) return status;
21074	status = pthread_create( &t, &attr, task, NULL );
21075#if HAVE_PTHREADS < 7
21076	if( status < 0 ) status = errno;
21077#endif
21078	if( status ) return status;
21079#else
21080	/* Draft 4 pthreads */
21081	status = pthread_create( &t, pthread_attr_default, task, NULL );
21082	if( status ) return errno;
21083
21084	/* give thread a chance to complete */
21085	/* it should remain joinable and hence detachable */
21086	sleep( 1 );
21087
21088	status = pthread_detach( &t );
21089	if( status ) return errno;
21090#endif
21091
21092#ifdef HAVE_LINUX_THREADS
21093	pthread_kill_other_threads_np();
21094#endif
21095
21096	return 0;
21097
21098  ;
21099  return 0;
21100}
21101_ACEOF
21102if ac_fn_c_try_link "$LINENO"; then :
21103  ol_cv_pthread_lpthread=yes
21104else
21105  ol_cv_pthread_lpthread=no
21106fi
21107rm -f core conftest.err conftest.$ac_objext \
21108    conftest$ac_exeext conftest.$ac_ext
21109else
21110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21111/* end confdefs.h.  */
21112
21113
21114/* pthread test headers */
21115#include <pthread.h>
21116#if HAVE_PTHREADS < 7
21117#include <errno.h>
21118#endif
21119#ifndef NULL
21120#define NULL (void*)0
21121#endif
21122
21123static void *task(p)
21124	void *p;
21125{
21126	return (void *) (p == NULL);
21127}
21128
21129
21130int main(argc, argv)
21131	int argc;
21132	char **argv;
21133{
21134
21135	/* pthread test function */
21136#ifndef PTHREAD_CREATE_DETACHED
21137#define	PTHREAD_CREATE_DETACHED	1
21138#endif
21139	pthread_t t;
21140	int status;
21141	int detach = PTHREAD_CREATE_DETACHED;
21142
21143#if HAVE_PTHREADS > 4
21144	/* Final pthreads */
21145	pthread_attr_t attr;
21146
21147	status = pthread_attr_init(&attr);
21148	if( status ) return status;
21149
21150#if HAVE_PTHREADS < 7
21151	status = pthread_attr_setdetachstate(&attr, &detach);
21152	if( status < 0 ) status = errno;
21153#else
21154	status = pthread_attr_setdetachstate(&attr, detach);
21155#endif
21156	if( status ) return status;
21157	status = pthread_create( &t, &attr, task, NULL );
21158#if HAVE_PTHREADS < 7
21159	if( status < 0 ) status = errno;
21160#endif
21161	if( status ) return status;
21162#else
21163	/* Draft 4 pthreads */
21164	status = pthread_create( &t, pthread_attr_default, task, NULL );
21165	if( status ) return errno;
21166
21167	/* give thread a chance to complete */
21168	/* it should remain joinable and hence detachable */
21169	sleep( 1 );
21170
21171	status = pthread_detach( &t );
21172	if( status ) return errno;
21173#endif
21174
21175#ifdef HAVE_LINUX_THREADS
21176	pthread_kill_other_threads_np();
21177#endif
21178
21179	return 0;
21180
21181}
21182
21183_ACEOF
21184if ac_fn_c_try_run "$LINENO"; then :
21185  ol_cv_pthread_lpthread=yes
21186else
21187  ol_cv_pthread_lpthread=no
21188fi
21189rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21190  conftest.$ac_objext conftest.beam conftest.$ac_ext
21191fi
21192
21193
21194		# restore the LIBS
21195		LIBS="$ol_LIBS"
21196
21197fi
21198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
21199$as_echo "$ol_cv_pthread_lpthread" >&6; }
21200
21201	if test $ol_cv_pthread_lpthread = yes ; then
21202		ol_link_pthreads="-lpthread"
21203		ol_link_threads=posix
21204	fi
21205fi
21206
21207		# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
21208if test "$ol_link_threads" = no ; then
21209	# try -lc_r
21210	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
21211$as_echo_n "checking for pthread link with -lc_r... " >&6; }
21212if ${ol_cv_pthread_lc_r+:} false; then :
21213  $as_echo_n "(cached) " >&6
21214else
21215
21216		# save the flags
21217		ol_LIBS="$LIBS"
21218		LIBS="-lc_r $LIBS"
21219
21220		if test "$cross_compiling" = yes; then :
21221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21222/* end confdefs.h.  */
21223
21224/* pthread test headers */
21225#include <pthread.h>
21226#if HAVE_PTHREADS < 7
21227#include <errno.h>
21228#endif
21229#ifndef NULL
21230#define NULL (void*)0
21231#endif
21232
21233static void *task(p)
21234	void *p;
21235{
21236	return (void *) (p == NULL);
21237}
21238
21239int
21240main ()
21241{
21242
21243	/* pthread test function */
21244#ifndef PTHREAD_CREATE_DETACHED
21245#define	PTHREAD_CREATE_DETACHED	1
21246#endif
21247	pthread_t t;
21248	int status;
21249	int detach = PTHREAD_CREATE_DETACHED;
21250
21251#if HAVE_PTHREADS > 4
21252	/* Final pthreads */
21253	pthread_attr_t attr;
21254
21255	status = pthread_attr_init(&attr);
21256	if( status ) return status;
21257
21258#if HAVE_PTHREADS < 7
21259	status = pthread_attr_setdetachstate(&attr, &detach);
21260	if( status < 0 ) status = errno;
21261#else
21262	status = pthread_attr_setdetachstate(&attr, detach);
21263#endif
21264	if( status ) return status;
21265	status = pthread_create( &t, &attr, task, NULL );
21266#if HAVE_PTHREADS < 7
21267	if( status < 0 ) status = errno;
21268#endif
21269	if( status ) return status;
21270#else
21271	/* Draft 4 pthreads */
21272	status = pthread_create( &t, pthread_attr_default, task, NULL );
21273	if( status ) return errno;
21274
21275	/* give thread a chance to complete */
21276	/* it should remain joinable and hence detachable */
21277	sleep( 1 );
21278
21279	status = pthread_detach( &t );
21280	if( status ) return errno;
21281#endif
21282
21283#ifdef HAVE_LINUX_THREADS
21284	pthread_kill_other_threads_np();
21285#endif
21286
21287	return 0;
21288
21289  ;
21290  return 0;
21291}
21292_ACEOF
21293if ac_fn_c_try_link "$LINENO"; then :
21294  ol_cv_pthread_lc_r=yes
21295else
21296  ol_cv_pthread_lc_r=no
21297fi
21298rm -f core conftest.err conftest.$ac_objext \
21299    conftest$ac_exeext conftest.$ac_ext
21300else
21301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21302/* end confdefs.h.  */
21303
21304
21305/* pthread test headers */
21306#include <pthread.h>
21307#if HAVE_PTHREADS < 7
21308#include <errno.h>
21309#endif
21310#ifndef NULL
21311#define NULL (void*)0
21312#endif
21313
21314static void *task(p)
21315	void *p;
21316{
21317	return (void *) (p == NULL);
21318}
21319
21320
21321int main(argc, argv)
21322	int argc;
21323	char **argv;
21324{
21325
21326	/* pthread test function */
21327#ifndef PTHREAD_CREATE_DETACHED
21328#define	PTHREAD_CREATE_DETACHED	1
21329#endif
21330	pthread_t t;
21331	int status;
21332	int detach = PTHREAD_CREATE_DETACHED;
21333
21334#if HAVE_PTHREADS > 4
21335	/* Final pthreads */
21336	pthread_attr_t attr;
21337
21338	status = pthread_attr_init(&attr);
21339	if( status ) return status;
21340
21341#if HAVE_PTHREADS < 7
21342	status = pthread_attr_setdetachstate(&attr, &detach);
21343	if( status < 0 ) status = errno;
21344#else
21345	status = pthread_attr_setdetachstate(&attr, detach);
21346#endif
21347	if( status ) return status;
21348	status = pthread_create( &t, &attr, task, NULL );
21349#if HAVE_PTHREADS < 7
21350	if( status < 0 ) status = errno;
21351#endif
21352	if( status ) return status;
21353#else
21354	/* Draft 4 pthreads */
21355	status = pthread_create( &t, pthread_attr_default, task, NULL );
21356	if( status ) return errno;
21357
21358	/* give thread a chance to complete */
21359	/* it should remain joinable and hence detachable */
21360	sleep( 1 );
21361
21362	status = pthread_detach( &t );
21363	if( status ) return errno;
21364#endif
21365
21366#ifdef HAVE_LINUX_THREADS
21367	pthread_kill_other_threads_np();
21368#endif
21369
21370	return 0;
21371
21372}
21373
21374_ACEOF
21375if ac_fn_c_try_run "$LINENO"; then :
21376  ol_cv_pthread_lc_r=yes
21377else
21378  ol_cv_pthread_lc_r=no
21379fi
21380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21381  conftest.$ac_objext conftest.beam conftest.$ac_ext
21382fi
21383
21384
21385		# restore the LIBS
21386		LIBS="$ol_LIBS"
21387
21388fi
21389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
21390$as_echo "$ol_cv_pthread_lc_r" >&6; }
21391
21392	if test $ol_cv_pthread_lc_r = yes ; then
21393		ol_link_pthreads="-lc_r"
21394		ol_link_threads=posix
21395	fi
21396fi
21397
21398
21399		# Pthread try link: -threads (ol_cv_pthread_threads)
21400if test "$ol_link_threads" = no ; then
21401	# try -threads
21402	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
21403$as_echo_n "checking for pthread link with -threads... " >&6; }
21404if ${ol_cv_pthread_threads+:} false; then :
21405  $as_echo_n "(cached) " >&6
21406else
21407
21408		# save the flags
21409		ol_LIBS="$LIBS"
21410		LIBS="-threads $LIBS"
21411
21412		if test "$cross_compiling" = yes; then :
21413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21414/* end confdefs.h.  */
21415
21416/* pthread test headers */
21417#include <pthread.h>
21418#if HAVE_PTHREADS < 7
21419#include <errno.h>
21420#endif
21421#ifndef NULL
21422#define NULL (void*)0
21423#endif
21424
21425static void *task(p)
21426	void *p;
21427{
21428	return (void *) (p == NULL);
21429}
21430
21431int
21432main ()
21433{
21434
21435	/* pthread test function */
21436#ifndef PTHREAD_CREATE_DETACHED
21437#define	PTHREAD_CREATE_DETACHED	1
21438#endif
21439	pthread_t t;
21440	int status;
21441	int detach = PTHREAD_CREATE_DETACHED;
21442
21443#if HAVE_PTHREADS > 4
21444	/* Final pthreads */
21445	pthread_attr_t attr;
21446
21447	status = pthread_attr_init(&attr);
21448	if( status ) return status;
21449
21450#if HAVE_PTHREADS < 7
21451	status = pthread_attr_setdetachstate(&attr, &detach);
21452	if( status < 0 ) status = errno;
21453#else
21454	status = pthread_attr_setdetachstate(&attr, detach);
21455#endif
21456	if( status ) return status;
21457	status = pthread_create( &t, &attr, task, NULL );
21458#if HAVE_PTHREADS < 7
21459	if( status < 0 ) status = errno;
21460#endif
21461	if( status ) return status;
21462#else
21463	/* Draft 4 pthreads */
21464	status = pthread_create( &t, pthread_attr_default, task, NULL );
21465	if( status ) return errno;
21466
21467	/* give thread a chance to complete */
21468	/* it should remain joinable and hence detachable */
21469	sleep( 1 );
21470
21471	status = pthread_detach( &t );
21472	if( status ) return errno;
21473#endif
21474
21475#ifdef HAVE_LINUX_THREADS
21476	pthread_kill_other_threads_np();
21477#endif
21478
21479	return 0;
21480
21481  ;
21482  return 0;
21483}
21484_ACEOF
21485if ac_fn_c_try_link "$LINENO"; then :
21486  ol_cv_pthread_threads=yes
21487else
21488  ol_cv_pthread_threads=no
21489fi
21490rm -f core conftest.err conftest.$ac_objext \
21491    conftest$ac_exeext conftest.$ac_ext
21492else
21493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21494/* end confdefs.h.  */
21495
21496
21497/* pthread test headers */
21498#include <pthread.h>
21499#if HAVE_PTHREADS < 7
21500#include <errno.h>
21501#endif
21502#ifndef NULL
21503#define NULL (void*)0
21504#endif
21505
21506static void *task(p)
21507	void *p;
21508{
21509	return (void *) (p == NULL);
21510}
21511
21512
21513int main(argc, argv)
21514	int argc;
21515	char **argv;
21516{
21517
21518	/* pthread test function */
21519#ifndef PTHREAD_CREATE_DETACHED
21520#define	PTHREAD_CREATE_DETACHED	1
21521#endif
21522	pthread_t t;
21523	int status;
21524	int detach = PTHREAD_CREATE_DETACHED;
21525
21526#if HAVE_PTHREADS > 4
21527	/* Final pthreads */
21528	pthread_attr_t attr;
21529
21530	status = pthread_attr_init(&attr);
21531	if( status ) return status;
21532
21533#if HAVE_PTHREADS < 7
21534	status = pthread_attr_setdetachstate(&attr, &detach);
21535	if( status < 0 ) status = errno;
21536#else
21537	status = pthread_attr_setdetachstate(&attr, detach);
21538#endif
21539	if( status ) return status;
21540	status = pthread_create( &t, &attr, task, NULL );
21541#if HAVE_PTHREADS < 7
21542	if( status < 0 ) status = errno;
21543#endif
21544	if( status ) return status;
21545#else
21546	/* Draft 4 pthreads */
21547	status = pthread_create( &t, pthread_attr_default, task, NULL );
21548	if( status ) return errno;
21549
21550	/* give thread a chance to complete */
21551	/* it should remain joinable and hence detachable */
21552	sleep( 1 );
21553
21554	status = pthread_detach( &t );
21555	if( status ) return errno;
21556#endif
21557
21558#ifdef HAVE_LINUX_THREADS
21559	pthread_kill_other_threads_np();
21560#endif
21561
21562	return 0;
21563
21564}
21565
21566_ACEOF
21567if ac_fn_c_try_run "$LINENO"; then :
21568  ol_cv_pthread_threads=yes
21569else
21570  ol_cv_pthread_threads=no
21571fi
21572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21573  conftest.$ac_objext conftest.beam conftest.$ac_ext
21574fi
21575
21576
21577		# restore the LIBS
21578		LIBS="$ol_LIBS"
21579
21580fi
21581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
21582$as_echo "$ol_cv_pthread_threads" >&6; }
21583
21584	if test $ol_cv_pthread_threads = yes ; then
21585		ol_link_pthreads="-threads"
21586		ol_link_threads=posix
21587	fi
21588fi
21589
21590
21591		# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
21592if test "$ol_link_threads" = no ; then
21593	# try -lpthreads -lmach -lexc -lc_r
21594	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
21595$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
21596if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
21597  $as_echo_n "(cached) " >&6
21598else
21599
21600		# save the flags
21601		ol_LIBS="$LIBS"
21602		LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
21603
21604		if test "$cross_compiling" = yes; then :
21605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21606/* end confdefs.h.  */
21607
21608/* pthread test headers */
21609#include <pthread.h>
21610#if HAVE_PTHREADS < 7
21611#include <errno.h>
21612#endif
21613#ifndef NULL
21614#define NULL (void*)0
21615#endif
21616
21617static void *task(p)
21618	void *p;
21619{
21620	return (void *) (p == NULL);
21621}
21622
21623int
21624main ()
21625{
21626
21627	/* pthread test function */
21628#ifndef PTHREAD_CREATE_DETACHED
21629#define	PTHREAD_CREATE_DETACHED	1
21630#endif
21631	pthread_t t;
21632	int status;
21633	int detach = PTHREAD_CREATE_DETACHED;
21634
21635#if HAVE_PTHREADS > 4
21636	/* Final pthreads */
21637	pthread_attr_t attr;
21638
21639	status = pthread_attr_init(&attr);
21640	if( status ) return status;
21641
21642#if HAVE_PTHREADS < 7
21643	status = pthread_attr_setdetachstate(&attr, &detach);
21644	if( status < 0 ) status = errno;
21645#else
21646	status = pthread_attr_setdetachstate(&attr, detach);
21647#endif
21648	if( status ) return status;
21649	status = pthread_create( &t, &attr, task, NULL );
21650#if HAVE_PTHREADS < 7
21651	if( status < 0 ) status = errno;
21652#endif
21653	if( status ) return status;
21654#else
21655	/* Draft 4 pthreads */
21656	status = pthread_create( &t, pthread_attr_default, task, NULL );
21657	if( status ) return errno;
21658
21659	/* give thread a chance to complete */
21660	/* it should remain joinable and hence detachable */
21661	sleep( 1 );
21662
21663	status = pthread_detach( &t );
21664	if( status ) return errno;
21665#endif
21666
21667#ifdef HAVE_LINUX_THREADS
21668	pthread_kill_other_threads_np();
21669#endif
21670
21671	return 0;
21672
21673  ;
21674  return 0;
21675}
21676_ACEOF
21677if ac_fn_c_try_link "$LINENO"; then :
21678  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
21679else
21680  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
21681fi
21682rm -f core conftest.err conftest.$ac_objext \
21683    conftest$ac_exeext conftest.$ac_ext
21684else
21685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21686/* end confdefs.h.  */
21687
21688
21689/* pthread test headers */
21690#include <pthread.h>
21691#if HAVE_PTHREADS < 7
21692#include <errno.h>
21693#endif
21694#ifndef NULL
21695#define NULL (void*)0
21696#endif
21697
21698static void *task(p)
21699	void *p;
21700{
21701	return (void *) (p == NULL);
21702}
21703
21704
21705int main(argc, argv)
21706	int argc;
21707	char **argv;
21708{
21709
21710	/* pthread test function */
21711#ifndef PTHREAD_CREATE_DETACHED
21712#define	PTHREAD_CREATE_DETACHED	1
21713#endif
21714	pthread_t t;
21715	int status;
21716	int detach = PTHREAD_CREATE_DETACHED;
21717
21718#if HAVE_PTHREADS > 4
21719	/* Final pthreads */
21720	pthread_attr_t attr;
21721
21722	status = pthread_attr_init(&attr);
21723	if( status ) return status;
21724
21725#if HAVE_PTHREADS < 7
21726	status = pthread_attr_setdetachstate(&attr, &detach);
21727	if( status < 0 ) status = errno;
21728#else
21729	status = pthread_attr_setdetachstate(&attr, detach);
21730#endif
21731	if( status ) return status;
21732	status = pthread_create( &t, &attr, task, NULL );
21733#if HAVE_PTHREADS < 7
21734	if( status < 0 ) status = errno;
21735#endif
21736	if( status ) return status;
21737#else
21738	/* Draft 4 pthreads */
21739	status = pthread_create( &t, pthread_attr_default, task, NULL );
21740	if( status ) return errno;
21741
21742	/* give thread a chance to complete */
21743	/* it should remain joinable and hence detachable */
21744	sleep( 1 );
21745
21746	status = pthread_detach( &t );
21747	if( status ) return errno;
21748#endif
21749
21750#ifdef HAVE_LINUX_THREADS
21751	pthread_kill_other_threads_np();
21752#endif
21753
21754	return 0;
21755
21756}
21757
21758_ACEOF
21759if ac_fn_c_try_run "$LINENO"; then :
21760  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
21761else
21762  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
21763fi
21764rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21765  conftest.$ac_objext conftest.beam conftest.$ac_ext
21766fi
21767
21768
21769		# restore the LIBS
21770		LIBS="$ol_LIBS"
21771
21772fi
21773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
21774$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
21775
21776	if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
21777		ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
21778		ol_link_threads=posix
21779	fi
21780fi
21781
21782		# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
21783if test "$ol_link_threads" = no ; then
21784	# try -lpthreads -lmach -lexc
21785	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
21786$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
21787if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
21788  $as_echo_n "(cached) " >&6
21789else
21790
21791		# save the flags
21792		ol_LIBS="$LIBS"
21793		LIBS="-lpthreads -lmach -lexc $LIBS"
21794
21795		if test "$cross_compiling" = yes; then :
21796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21797/* end confdefs.h.  */
21798
21799/* pthread test headers */
21800#include <pthread.h>
21801#if HAVE_PTHREADS < 7
21802#include <errno.h>
21803#endif
21804#ifndef NULL
21805#define NULL (void*)0
21806#endif
21807
21808static void *task(p)
21809	void *p;
21810{
21811	return (void *) (p == NULL);
21812}
21813
21814int
21815main ()
21816{
21817
21818	/* pthread test function */
21819#ifndef PTHREAD_CREATE_DETACHED
21820#define	PTHREAD_CREATE_DETACHED	1
21821#endif
21822	pthread_t t;
21823	int status;
21824	int detach = PTHREAD_CREATE_DETACHED;
21825
21826#if HAVE_PTHREADS > 4
21827	/* Final pthreads */
21828	pthread_attr_t attr;
21829
21830	status = pthread_attr_init(&attr);
21831	if( status ) return status;
21832
21833#if HAVE_PTHREADS < 7
21834	status = pthread_attr_setdetachstate(&attr, &detach);
21835	if( status < 0 ) status = errno;
21836#else
21837	status = pthread_attr_setdetachstate(&attr, detach);
21838#endif
21839	if( status ) return status;
21840	status = pthread_create( &t, &attr, task, NULL );
21841#if HAVE_PTHREADS < 7
21842	if( status < 0 ) status = errno;
21843#endif
21844	if( status ) return status;
21845#else
21846	/* Draft 4 pthreads */
21847	status = pthread_create( &t, pthread_attr_default, task, NULL );
21848	if( status ) return errno;
21849
21850	/* give thread a chance to complete */
21851	/* it should remain joinable and hence detachable */
21852	sleep( 1 );
21853
21854	status = pthread_detach( &t );
21855	if( status ) return errno;
21856#endif
21857
21858#ifdef HAVE_LINUX_THREADS
21859	pthread_kill_other_threads_np();
21860#endif
21861
21862	return 0;
21863
21864  ;
21865  return 0;
21866}
21867_ACEOF
21868if ac_fn_c_try_link "$LINENO"; then :
21869  ol_cv_pthread_lpthreads_lmach_lexc=yes
21870else
21871  ol_cv_pthread_lpthreads_lmach_lexc=no
21872fi
21873rm -f core conftest.err conftest.$ac_objext \
21874    conftest$ac_exeext conftest.$ac_ext
21875else
21876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21877/* end confdefs.h.  */
21878
21879
21880/* pthread test headers */
21881#include <pthread.h>
21882#if HAVE_PTHREADS < 7
21883#include <errno.h>
21884#endif
21885#ifndef NULL
21886#define NULL (void*)0
21887#endif
21888
21889static void *task(p)
21890	void *p;
21891{
21892	return (void *) (p == NULL);
21893}
21894
21895
21896int main(argc, argv)
21897	int argc;
21898	char **argv;
21899{
21900
21901	/* pthread test function */
21902#ifndef PTHREAD_CREATE_DETACHED
21903#define	PTHREAD_CREATE_DETACHED	1
21904#endif
21905	pthread_t t;
21906	int status;
21907	int detach = PTHREAD_CREATE_DETACHED;
21908
21909#if HAVE_PTHREADS > 4
21910	/* Final pthreads */
21911	pthread_attr_t attr;
21912
21913	status = pthread_attr_init(&attr);
21914	if( status ) return status;
21915
21916#if HAVE_PTHREADS < 7
21917	status = pthread_attr_setdetachstate(&attr, &detach);
21918	if( status < 0 ) status = errno;
21919#else
21920	status = pthread_attr_setdetachstate(&attr, detach);
21921#endif
21922	if( status ) return status;
21923	status = pthread_create( &t, &attr, task, NULL );
21924#if HAVE_PTHREADS < 7
21925	if( status < 0 ) status = errno;
21926#endif
21927	if( status ) return status;
21928#else
21929	/* Draft 4 pthreads */
21930	status = pthread_create( &t, pthread_attr_default, task, NULL );
21931	if( status ) return errno;
21932
21933	/* give thread a chance to complete */
21934	/* it should remain joinable and hence detachable */
21935	sleep( 1 );
21936
21937	status = pthread_detach( &t );
21938	if( status ) return errno;
21939#endif
21940
21941#ifdef HAVE_LINUX_THREADS
21942	pthread_kill_other_threads_np();
21943#endif
21944
21945	return 0;
21946
21947}
21948
21949_ACEOF
21950if ac_fn_c_try_run "$LINENO"; then :
21951  ol_cv_pthread_lpthreads_lmach_lexc=yes
21952else
21953  ol_cv_pthread_lpthreads_lmach_lexc=no
21954fi
21955rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21956  conftest.$ac_objext conftest.beam conftest.$ac_ext
21957fi
21958
21959
21960		# restore the LIBS
21961		LIBS="$ol_LIBS"
21962
21963fi
21964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
21965$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
21966
21967	if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
21968		ol_link_pthreads="-lpthreads -lmach -lexc"
21969		ol_link_threads=posix
21970	fi
21971fi
21972
21973		# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
21974if test "$ol_link_threads" = no ; then
21975	# try -lpthreads -lexc
21976	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
21977$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
21978if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
21979  $as_echo_n "(cached) " >&6
21980else
21981
21982		# save the flags
21983		ol_LIBS="$LIBS"
21984		LIBS="-lpthreads -lexc $LIBS"
21985
21986		if test "$cross_compiling" = yes; then :
21987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21988/* end confdefs.h.  */
21989
21990/* pthread test headers */
21991#include <pthread.h>
21992#if HAVE_PTHREADS < 7
21993#include <errno.h>
21994#endif
21995#ifndef NULL
21996#define NULL (void*)0
21997#endif
21998
21999static void *task(p)
22000	void *p;
22001{
22002	return (void *) (p == NULL);
22003}
22004
22005int
22006main ()
22007{
22008
22009	/* pthread test function */
22010#ifndef PTHREAD_CREATE_DETACHED
22011#define	PTHREAD_CREATE_DETACHED	1
22012#endif
22013	pthread_t t;
22014	int status;
22015	int detach = PTHREAD_CREATE_DETACHED;
22016
22017#if HAVE_PTHREADS > 4
22018	/* Final pthreads */
22019	pthread_attr_t attr;
22020
22021	status = pthread_attr_init(&attr);
22022	if( status ) return status;
22023
22024#if HAVE_PTHREADS < 7
22025	status = pthread_attr_setdetachstate(&attr, &detach);
22026	if( status < 0 ) status = errno;
22027#else
22028	status = pthread_attr_setdetachstate(&attr, detach);
22029#endif
22030	if( status ) return status;
22031	status = pthread_create( &t, &attr, task, NULL );
22032#if HAVE_PTHREADS < 7
22033	if( status < 0 ) status = errno;
22034#endif
22035	if( status ) return status;
22036#else
22037	/* Draft 4 pthreads */
22038	status = pthread_create( &t, pthread_attr_default, task, NULL );
22039	if( status ) return errno;
22040
22041	/* give thread a chance to complete */
22042	/* it should remain joinable and hence detachable */
22043	sleep( 1 );
22044
22045	status = pthread_detach( &t );
22046	if( status ) return errno;
22047#endif
22048
22049#ifdef HAVE_LINUX_THREADS
22050	pthread_kill_other_threads_np();
22051#endif
22052
22053	return 0;
22054
22055  ;
22056  return 0;
22057}
22058_ACEOF
22059if ac_fn_c_try_link "$LINENO"; then :
22060  ol_cv_pthread_lpthreads_lexc=yes
22061else
22062  ol_cv_pthread_lpthreads_lexc=no
22063fi
22064rm -f core conftest.err conftest.$ac_objext \
22065    conftest$ac_exeext conftest.$ac_ext
22066else
22067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22068/* end confdefs.h.  */
22069
22070
22071/* pthread test headers */
22072#include <pthread.h>
22073#if HAVE_PTHREADS < 7
22074#include <errno.h>
22075#endif
22076#ifndef NULL
22077#define NULL (void*)0
22078#endif
22079
22080static void *task(p)
22081	void *p;
22082{
22083	return (void *) (p == NULL);
22084}
22085
22086
22087int main(argc, argv)
22088	int argc;
22089	char **argv;
22090{
22091
22092	/* pthread test function */
22093#ifndef PTHREAD_CREATE_DETACHED
22094#define	PTHREAD_CREATE_DETACHED	1
22095#endif
22096	pthread_t t;
22097	int status;
22098	int detach = PTHREAD_CREATE_DETACHED;
22099
22100#if HAVE_PTHREADS > 4
22101	/* Final pthreads */
22102	pthread_attr_t attr;
22103
22104	status = pthread_attr_init(&attr);
22105	if( status ) return status;
22106
22107#if HAVE_PTHREADS < 7
22108	status = pthread_attr_setdetachstate(&attr, &detach);
22109	if( status < 0 ) status = errno;
22110#else
22111	status = pthread_attr_setdetachstate(&attr, detach);
22112#endif
22113	if( status ) return status;
22114	status = pthread_create( &t, &attr, task, NULL );
22115#if HAVE_PTHREADS < 7
22116	if( status < 0 ) status = errno;
22117#endif
22118	if( status ) return status;
22119#else
22120	/* Draft 4 pthreads */
22121	status = pthread_create( &t, pthread_attr_default, task, NULL );
22122	if( status ) return errno;
22123
22124	/* give thread a chance to complete */
22125	/* it should remain joinable and hence detachable */
22126	sleep( 1 );
22127
22128	status = pthread_detach( &t );
22129	if( status ) return errno;
22130#endif
22131
22132#ifdef HAVE_LINUX_THREADS
22133	pthread_kill_other_threads_np();
22134#endif
22135
22136	return 0;
22137
22138}
22139
22140_ACEOF
22141if ac_fn_c_try_run "$LINENO"; then :
22142  ol_cv_pthread_lpthreads_lexc=yes
22143else
22144  ol_cv_pthread_lpthreads_lexc=no
22145fi
22146rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22147  conftest.$ac_objext conftest.beam conftest.$ac_ext
22148fi
22149
22150
22151		# restore the LIBS
22152		LIBS="$ol_LIBS"
22153
22154fi
22155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
22156$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
22157
22158	if test $ol_cv_pthread_lpthreads_lexc = yes ; then
22159		ol_link_pthreads="-lpthreads -lexc"
22160		ol_link_threads=posix
22161	fi
22162fi
22163
22164
22165		# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
22166if test "$ol_link_threads" = no ; then
22167	# try -lpthreads
22168	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
22169$as_echo_n "checking for pthread link with -lpthreads... " >&6; }
22170if ${ol_cv_pthread_lib_lpthreads+:} false; then :
22171  $as_echo_n "(cached) " >&6
22172else
22173
22174		# save the flags
22175		ol_LIBS="$LIBS"
22176		LIBS="-lpthreads $LIBS"
22177
22178		if test "$cross_compiling" = yes; then :
22179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22180/* end confdefs.h.  */
22181
22182/* pthread test headers */
22183#include <pthread.h>
22184#if HAVE_PTHREADS < 7
22185#include <errno.h>
22186#endif
22187#ifndef NULL
22188#define NULL (void*)0
22189#endif
22190
22191static void *task(p)
22192	void *p;
22193{
22194	return (void *) (p == NULL);
22195}
22196
22197int
22198main ()
22199{
22200
22201	/* pthread test function */
22202#ifndef PTHREAD_CREATE_DETACHED
22203#define	PTHREAD_CREATE_DETACHED	1
22204#endif
22205	pthread_t t;
22206	int status;
22207	int detach = PTHREAD_CREATE_DETACHED;
22208
22209#if HAVE_PTHREADS > 4
22210	/* Final pthreads */
22211	pthread_attr_t attr;
22212
22213	status = pthread_attr_init(&attr);
22214	if( status ) return status;
22215
22216#if HAVE_PTHREADS < 7
22217	status = pthread_attr_setdetachstate(&attr, &detach);
22218	if( status < 0 ) status = errno;
22219#else
22220	status = pthread_attr_setdetachstate(&attr, detach);
22221#endif
22222	if( status ) return status;
22223	status = pthread_create( &t, &attr, task, NULL );
22224#if HAVE_PTHREADS < 7
22225	if( status < 0 ) status = errno;
22226#endif
22227	if( status ) return status;
22228#else
22229	/* Draft 4 pthreads */
22230	status = pthread_create( &t, pthread_attr_default, task, NULL );
22231	if( status ) return errno;
22232
22233	/* give thread a chance to complete */
22234	/* it should remain joinable and hence detachable */
22235	sleep( 1 );
22236
22237	status = pthread_detach( &t );
22238	if( status ) return errno;
22239#endif
22240
22241#ifdef HAVE_LINUX_THREADS
22242	pthread_kill_other_threads_np();
22243#endif
22244
22245	return 0;
22246
22247  ;
22248  return 0;
22249}
22250_ACEOF
22251if ac_fn_c_try_link "$LINENO"; then :
22252  ol_cv_pthread_lib_lpthreads=yes
22253else
22254  ol_cv_pthread_lib_lpthreads=no
22255fi
22256rm -f core conftest.err conftest.$ac_objext \
22257    conftest$ac_exeext conftest.$ac_ext
22258else
22259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22260/* end confdefs.h.  */
22261
22262
22263/* pthread test headers */
22264#include <pthread.h>
22265#if HAVE_PTHREADS < 7
22266#include <errno.h>
22267#endif
22268#ifndef NULL
22269#define NULL (void*)0
22270#endif
22271
22272static void *task(p)
22273	void *p;
22274{
22275	return (void *) (p == NULL);
22276}
22277
22278
22279int main(argc, argv)
22280	int argc;
22281	char **argv;
22282{
22283
22284	/* pthread test function */
22285#ifndef PTHREAD_CREATE_DETACHED
22286#define	PTHREAD_CREATE_DETACHED	1
22287#endif
22288	pthread_t t;
22289	int status;
22290	int detach = PTHREAD_CREATE_DETACHED;
22291
22292#if HAVE_PTHREADS > 4
22293	/* Final pthreads */
22294	pthread_attr_t attr;
22295
22296	status = pthread_attr_init(&attr);
22297	if( status ) return status;
22298
22299#if HAVE_PTHREADS < 7
22300	status = pthread_attr_setdetachstate(&attr, &detach);
22301	if( status < 0 ) status = errno;
22302#else
22303	status = pthread_attr_setdetachstate(&attr, detach);
22304#endif
22305	if( status ) return status;
22306	status = pthread_create( &t, &attr, task, NULL );
22307#if HAVE_PTHREADS < 7
22308	if( status < 0 ) status = errno;
22309#endif
22310	if( status ) return status;
22311#else
22312	/* Draft 4 pthreads */
22313	status = pthread_create( &t, pthread_attr_default, task, NULL );
22314	if( status ) return errno;
22315
22316	/* give thread a chance to complete */
22317	/* it should remain joinable and hence detachable */
22318	sleep( 1 );
22319
22320	status = pthread_detach( &t );
22321	if( status ) return errno;
22322#endif
22323
22324#ifdef HAVE_LINUX_THREADS
22325	pthread_kill_other_threads_np();
22326#endif
22327
22328	return 0;
22329
22330}
22331
22332_ACEOF
22333if ac_fn_c_try_run "$LINENO"; then :
22334  ol_cv_pthread_lib_lpthreads=yes
22335else
22336  ol_cv_pthread_lib_lpthreads=no
22337fi
22338rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22339  conftest.$ac_objext conftest.beam conftest.$ac_ext
22340fi
22341
22342
22343		# restore the LIBS
22344		LIBS="$ol_LIBS"
22345
22346fi
22347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
22348$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
22349
22350	if test $ol_cv_pthread_lib_lpthreads = yes ; then
22351		ol_link_pthreads="-lpthreads"
22352		ol_link_threads=posix
22353	fi
22354fi
22355
22356
22357{ $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
22358$as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}
22359
22360		if test $ol_link_threads != no ; then
22361			LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
22362
22363						save_CPPFLAGS="$CPPFLAGS"
22364			save_LIBS="$LIBS"
22365			LIBS="$LTHREAD_LIBS $LIBS"
22366
22367												for ac_func in sched_yield pthread_yield thr_yield
22368do :
22369  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22370ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22371if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22372  cat >>confdefs.h <<_ACEOF
22373#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22374_ACEOF
22375
22376fi
22377done
22378
22379
22380			if test $ac_cv_func_sched_yield = no &&
22381			   test $ac_cv_func_pthread_yield = no &&
22382			   test $ac_cv_func_thr_yield = no ; then
22383								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22384$as_echo_n "checking for sched_yield in -lrt... " >&6; }
22385if ${ac_cv_lib_rt_sched_yield+:} false; then :
22386  $as_echo_n "(cached) " >&6
22387else
22388  ac_check_lib_save_LIBS=$LIBS
22389LIBS="-lrt  $LIBS"
22390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22391/* end confdefs.h.  */
22392
22393/* Override any GCC internal prototype to avoid an error.
22394   Use char because int might match the return type of a GCC
22395   builtin and then its argument prototype would still apply.  */
22396#ifdef __cplusplus
22397extern "C"
22398#endif
22399char sched_yield ();
22400int
22401main ()
22402{
22403return sched_yield ();
22404  ;
22405  return 0;
22406}
22407_ACEOF
22408if ac_fn_c_try_link "$LINENO"; then :
22409  ac_cv_lib_rt_sched_yield=yes
22410else
22411  ac_cv_lib_rt_sched_yield=no
22412fi
22413rm -f core conftest.err conftest.$ac_objext \
22414    conftest$ac_exeext conftest.$ac_ext
22415LIBS=$ac_check_lib_save_LIBS
22416fi
22417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22418$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22419if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
22420  LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
22421
22422$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22423
22424					ac_cv_func_sched_yield=yes
22425else
22426  ac_cv_func_sched_yield=no
22427fi
22428
22429			fi
22430			if test $ac_cv_func_sched_yield = no &&
22431			   test $ac_cv_func_pthread_yield = no &&
22432			   test "$ac_cv_func_thr_yield" = no ; then
22433				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
22434$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
22435			fi
22436
22437						for ac_func in pthread_kill
22438do :
22439  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
22440if test "x$ac_cv_func_pthread_kill" = xyes; then :
22441  cat >>confdefs.h <<_ACEOF
22442#define HAVE_PTHREAD_KILL 1
22443_ACEOF
22444
22445fi
22446done
22447
22448
22449									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
22450$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
22451if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
22452  $as_echo_n "(cached) " >&6
22453else
22454
22455								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22456/* end confdefs.h.  */
22457
22458#include <pthread.h>
22459pthread_rwlock_t rwlock;
22460
22461int
22462main ()
22463{
22464pthread_rwlock_destroy(&rwlock);
22465  ;
22466  return 0;
22467}
22468_ACEOF
22469if ac_fn_c_try_link "$LINENO"; then :
22470  ol_cv_func_pthread_rwlock_destroy=yes
22471else
22472  ol_cv_func_pthread_rwlock_destroy=no
22473fi
22474rm -f core conftest.err conftest.$ac_objext \
22475    conftest$ac_exeext conftest.$ac_ext
22476
22477fi
22478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
22479$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
22480			if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
22481
22482$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
22483
22484			fi
22485
22486									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
22487$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
22488if ${ol_cv_func_pthread_detach+:} false; then :
22489  $as_echo_n "(cached) " >&6
22490else
22491
22492								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22493/* end confdefs.h.  */
22494
22495#include <pthread.h>
22496#ifndef NULL
22497#define NULL (void*)0
22498#endif
22499
22500int
22501main ()
22502{
22503pthread_detach(NULL);
22504  ;
22505  return 0;
22506}
22507_ACEOF
22508if ac_fn_c_try_link "$LINENO"; then :
22509  ol_cv_func_pthread_detach=yes
22510else
22511  ol_cv_func_pthread_detach=no
22512fi
22513rm -f core conftest.err conftest.$ac_objext \
22514    conftest$ac_exeext conftest.$ac_ext
22515
22516fi
22517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
22518$as_echo "$ol_cv_func_pthread_detach" >&6; }
22519
22520			if test $ol_cv_func_pthread_detach = no ; then
22521				as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
22522			fi
22523
22524
22525$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
22526
22527
22528						for ac_func in \
22529				pthread_setconcurrency \
22530				pthread_getconcurrency \
22531				thr_setconcurrency \
22532				thr_getconcurrency \
22533
22534do :
22535  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22536ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22537if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22538  cat >>confdefs.h <<_ACEOF
22539#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22540_ACEOF
22541
22542fi
22543done
22544
22545
22546
22547	for ac_func in pthread_kill_other_threads_np
22548do :
22549  ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
22550if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
22551  cat >>confdefs.h <<_ACEOF
22552#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
22553_ACEOF
22554
22555fi
22556done
22557
22558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
22559$as_echo_n "checking for LinuxThreads implementation... " >&6; }
22560if ${ol_cv_sys_linux_threads+:} false; then :
22561  $as_echo_n "(cached) " >&6
22562else
22563  ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
22564fi
22565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
22566$as_echo "$ol_cv_sys_linux_threads" >&6; }
22567
22568
22569
22570
22571	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
22572$as_echo_n "checking for LinuxThreads consistency... " >&6; }
22573if ${ol_cv_linux_threads+:} false; then :
22574  $as_echo_n "(cached) " >&6
22575else
22576
22577		if test $ol_cv_header_linux_threads = yes &&
22578		   test $ol_cv_sys_linux_threads = yes; then
22579			ol_cv_linux_threads=yes
22580		elif test $ol_cv_header_linux_threads = no &&
22581		     test $ol_cv_sys_linux_threads = no; then
22582			ol_cv_linux_threads=no
22583		else
22584			ol_cv_linux_threads=error
22585		fi
22586
22587fi
22588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
22589$as_echo "$ol_cv_linux_threads" >&6; }
22590
22591
22592			if test $ol_cv_linux_threads = error; then
22593				as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
22594			fi
22595
22596			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
22597$as_echo_n "checking if pthread_create() works... " >&6; }
22598if ${ol_cv_pthread_create_works+:} false; then :
22599  $as_echo_n "(cached) " >&6
22600else
22601
22602			if test "$cross_compiling" = yes; then :
22603  				ol_cv_pthread_create_works=yes
22604else
22605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22606/* end confdefs.h.  */
22607
22608
22609/* pthread test headers */
22610#include <pthread.h>
22611#if HAVE_PTHREADS < 7
22612#include <errno.h>
22613#endif
22614#ifndef NULL
22615#define NULL (void*)0
22616#endif
22617
22618static void *task(p)
22619	void *p;
22620{
22621	return (void *) (p == NULL);
22622}
22623
22624
22625int main(argc, argv)
22626	int argc;
22627	char **argv;
22628{
22629
22630	/* pthread test function */
22631#ifndef PTHREAD_CREATE_DETACHED
22632#define	PTHREAD_CREATE_DETACHED	1
22633#endif
22634	pthread_t t;
22635	int status;
22636	int detach = PTHREAD_CREATE_DETACHED;
22637
22638#if HAVE_PTHREADS > 4
22639	/* Final pthreads */
22640	pthread_attr_t attr;
22641
22642	status = pthread_attr_init(&attr);
22643	if( status ) return status;
22644
22645#if HAVE_PTHREADS < 7
22646	status = pthread_attr_setdetachstate(&attr, &detach);
22647	if( status < 0 ) status = errno;
22648#else
22649	status = pthread_attr_setdetachstate(&attr, detach);
22650#endif
22651	if( status ) return status;
22652	status = pthread_create( &t, &attr, task, NULL );
22653#if HAVE_PTHREADS < 7
22654	if( status < 0 ) status = errno;
22655#endif
22656	if( status ) return status;
22657#else
22658	/* Draft 4 pthreads */
22659	status = pthread_create( &t, pthread_attr_default, task, NULL );
22660	if( status ) return errno;
22661
22662	/* give thread a chance to complete */
22663	/* it should remain joinable and hence detachable */
22664	sleep( 1 );
22665
22666	status = pthread_detach( &t );
22667	if( status ) return errno;
22668#endif
22669
22670#ifdef HAVE_LINUX_THREADS
22671	pthread_kill_other_threads_np();
22672#endif
22673
22674	return 0;
22675
22676}
22677
22678_ACEOF
22679if ac_fn_c_try_run "$LINENO"; then :
22680  ol_cv_pthread_create_works=yes
22681else
22682  ol_cv_pthread_create_works=no
22683fi
22684rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22685  conftest.$ac_objext conftest.beam conftest.$ac_ext
22686fi
22687
22688fi
22689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
22690$as_echo "$ol_cv_pthread_create_works" >&6; }
22691
22692			if test $ol_cv_pthread_create_works = no ; then
22693				as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
22694			fi
22695
22696			ol_replace_broken_yield=no
22697
22698			if test $ol_replace_broken_yield = yes ; then
22699
22700$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
22701
22702			fi
22703
22704						if test x$ol_with_yielding_select = xauto ; then
22705				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
22706$as_echo_n "checking if select yields when using pthreads... " >&6; }
22707if ${ol_cv_pthread_select_yields+:} false; then :
22708  $as_echo_n "(cached) " >&6
22709else
22710
22711				if test "$cross_compiling" = yes; then :
22712  ol_cv_pthread_select_yields=cross
22713else
22714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22715/* end confdefs.h.  */
22716
22717#include <sys/types.h>
22718#include <sys/time.h>
22719#include <unistd.h>
22720#include <pthread.h>
22721#ifndef NULL
22722#define NULL (void*) 0
22723#endif
22724
22725static int fildes[2];
22726
22727static void *task(p)
22728	void *p;
22729{
22730	int i;
22731	struct timeval tv;
22732
22733	fd_set rfds;
22734
22735	tv.tv_sec=10;
22736	tv.tv_usec=0;
22737
22738	FD_ZERO(&rfds);
22739	FD_SET(fildes[0], &rfds);
22740
22741	/* we're not interested in any fds */
22742	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
22743
22744	if(i < 0) {
22745		perror("select");
22746		exit(10);
22747	}
22748
22749	exit(0); /* if we exit here, the select blocked the whole process */
22750}
22751
22752int main(argc, argv)
22753	int argc;
22754	char **argv;
22755{
22756	pthread_t t;
22757
22758	/* create a pipe to select */
22759	if(pipe(&fildes[0])) {
22760		perror("select");
22761		exit(1);
22762	}
22763
22764#ifdef HAVE_PTHREAD_SETCONCURRENCY
22765	(void) pthread_setconcurrency(2);
22766#else
22767#ifdef HAVE_THR_SETCONCURRENCY
22768	/* Set Solaris LWP concurrency to 2 */
22769	thr_setconcurrency(2);
22770#endif
22771#endif
22772
22773#if HAVE_PTHREADS < 6
22774	pthread_create(&t, pthread_attr_default, task, NULL);
22775#else
22776	pthread_create(&t, NULL, task, NULL);
22777#endif
22778
22779	/* make sure task runs first */
22780#ifdef HAVE_THR_YIELD
22781	thr_yield();
22782#elif defined( HAVE_SCHED_YIELD )
22783	sched_yield();
22784#elif defined( HAVE_PTHREAD_YIELD )
22785	pthread_yield();
22786#endif
22787
22788	exit(2);
22789}
22790_ACEOF
22791if ac_fn_c_try_run "$LINENO"; then :
22792  ol_cv_pthread_select_yields=no
22793else
22794  ol_cv_pthread_select_yields=yes
22795fi
22796rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22797  conftest.$ac_objext conftest.beam conftest.$ac_ext
22798fi
22799
22800fi
22801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
22802$as_echo "$ol_cv_pthread_select_yields" >&6; }
22803
22804				if test $ol_cv_pthread_select_yields = cross ; then
22805					as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
22806				fi
22807
22808				if test $ol_cv_pthread_select_yields = yes ; then
22809					ol_with_yielding_select=yes
22810				fi
22811			fi
22812
22813						CPPFLAGS="$save_CPPFLAGS"
22814			LIBS="$save_LIBS"
22815		else
22816			as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
22817		fi
22818	fi
22819
22820	if test $ol_with_threads = posix ; then
22821		as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
22822	fi
22823	;;
22824esac
22825
22826case $ol_with_threads in auto | yes | mach)
22827
22828		for ac_header in mach/cthreads.h cthreads.h
22829do :
22830  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22831ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22832if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22833  cat >>confdefs.h <<_ACEOF
22834#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22835_ACEOF
22836
22837fi
22838
22839done
22840
22841	if test $ac_cv_header_mach_cthreads_h = yes ; then
22842		ol_with_threads=found
22843
22844				ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
22845if test "x$ac_cv_func_cthread_fork" = xyes; then :
22846  ol_link_threads=yes
22847fi
22848
22849
22850		if test $ol_link_threads = no ; then
22851									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
22852$as_echo_n "checking for cthread_fork with -all_load... " >&6; }
22853if ${ol_cv_cthread_all_load+:} false; then :
22854  $as_echo_n "(cached) " >&6
22855else
22856
22857								save_LIBS="$LIBS"
22858				LIBS="-all_load $LIBS"
22859				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22860/* end confdefs.h.  */
22861#include <mach/cthreads.h>
22862int
22863main ()
22864{
22865
22866					cthread_fork((void *)0, (void *)0);
22867
22868  ;
22869  return 0;
22870}
22871_ACEOF
22872if ac_fn_c_try_link "$LINENO"; then :
22873  ol_cv_cthread_all_load=yes
22874else
22875  ol_cv_cthread_all_load=no
22876fi
22877rm -f core conftest.err conftest.$ac_objext \
22878    conftest$ac_exeext conftest.$ac_ext
22879								LIBS="$save_LIBS"
22880
22881fi
22882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
22883$as_echo "$ol_cv_cthread_all_load" >&6; }
22884
22885			if test $ol_cv_cthread_all_load = yes ; then
22886				LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
22887				ol_link_threads=mach
22888				ol_with_threads=found
22889			fi
22890		fi
22891
22892	elif test $ac_cv_header_cthreads_h = yes ; then
22893
22894		ol_with_threads=found
22895
22896				save_LIBS="$LIBS"
22897		LIBS="$LIBS -lthreads"
22898		ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
22899if test "x$ac_cv_func_cthread_fork" = xyes; then :
22900  ol_link_threads=yes
22901fi
22902
22903		LIBS="$save_LIBS"
22904
22905		if test $ol_link_threads = yes ; then
22906			LTHREAD_LIBS="-lthreads"
22907			ol_link_threads=mach
22908			ol_with_threads=found
22909		else
22910			as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
22911		fi
22912
22913	elif test $ol_with_threads = mach ; then
22914		as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
22915	fi
22916
22917	if test $ol_link_threads = mach ; then
22918
22919$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
22920
22921	elif test $ol_with_threads = found ; then
22922		as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
22923	fi
22924	;;
22925esac
22926
22927case $ol_with_threads in auto | yes | pth)
22928
22929	for ac_header in pth.h
22930do :
22931  ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
22932if test "x$ac_cv_header_pth_h" = xyes; then :
22933  cat >>confdefs.h <<_ACEOF
22934#define HAVE_PTH_H 1
22935_ACEOF
22936
22937fi
22938
22939done
22940
22941
22942	if test $ac_cv_header_pth_h = yes ; then
22943		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
22944$as_echo_n "checking for pth_version in -lpth... " >&6; }
22945if ${ac_cv_lib_pth_pth_version+:} false; then :
22946  $as_echo_n "(cached) " >&6
22947else
22948  ac_check_lib_save_LIBS=$LIBS
22949LIBS="-lpth  $LIBS"
22950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22951/* end confdefs.h.  */
22952
22953/* Override any GCC internal prototype to avoid an error.
22954   Use char because int might match the return type of a GCC
22955   builtin and then its argument prototype would still apply.  */
22956#ifdef __cplusplus
22957extern "C"
22958#endif
22959char pth_version ();
22960int
22961main ()
22962{
22963return pth_version ();
22964  ;
22965  return 0;
22966}
22967_ACEOF
22968if ac_fn_c_try_link "$LINENO"; then :
22969  ac_cv_lib_pth_pth_version=yes
22970else
22971  ac_cv_lib_pth_pth_version=no
22972fi
22973rm -f core conftest.err conftest.$ac_objext \
22974    conftest$ac_exeext conftest.$ac_ext
22975LIBS=$ac_check_lib_save_LIBS
22976fi
22977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
22978$as_echo "$ac_cv_lib_pth_pth_version" >&6; }
22979if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
22980  have_pth=yes
22981else
22982  have_pth=no
22983fi
22984
22985
22986		if test $have_pth = yes ; then
22987
22988$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
22989
22990			LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
22991			ol_link_threads=pth
22992			ol_with_threads=found
22993
22994			if test x$ol_with_yielding_select = xauto ; then
22995				ol_with_yielding_select=yes
22996			fi
22997		fi
22998	fi
22999	;;
23000esac
23001
23002case $ol_with_threads in auto | yes | lwp)
23003
23004		for ac_header in thread.h synch.h
23005do :
23006  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23007ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23008if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23009  cat >>confdefs.h <<_ACEOF
23010#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23011_ACEOF
23012
23013fi
23014
23015done
23016
23017	if test $ac_cv_header_thread_h = yes &&
23018	   test $ac_cv_header_synch_h = yes ; then
23019		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
23020$as_echo_n "checking for thr_create in -lthread... " >&6; }
23021if ${ac_cv_lib_thread_thr_create+:} false; then :
23022  $as_echo_n "(cached) " >&6
23023else
23024  ac_check_lib_save_LIBS=$LIBS
23025LIBS="-lthread  $LIBS"
23026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23027/* end confdefs.h.  */
23028
23029/* Override any GCC internal prototype to avoid an error.
23030   Use char because int might match the return type of a GCC
23031   builtin and then its argument prototype would still apply.  */
23032#ifdef __cplusplus
23033extern "C"
23034#endif
23035char thr_create ();
23036int
23037main ()
23038{
23039return thr_create ();
23040  ;
23041  return 0;
23042}
23043_ACEOF
23044if ac_fn_c_try_link "$LINENO"; then :
23045  ac_cv_lib_thread_thr_create=yes
23046else
23047  ac_cv_lib_thread_thr_create=no
23048fi
23049rm -f core conftest.err conftest.$ac_objext \
23050    conftest$ac_exeext conftest.$ac_ext
23051LIBS=$ac_check_lib_save_LIBS
23052fi
23053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
23054$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
23055if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
23056  have_thr=yes
23057else
23058  have_thr=no
23059fi
23060
23061
23062		if test $have_thr = yes ; then
23063
23064$as_echo "#define HAVE_THR 1" >>confdefs.h
23065
23066			LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
23067			ol_link_threads=thr
23068
23069			if test x$ol_with_yielding_select = xauto ; then
23070				ol_with_yielding_select=yes
23071			fi
23072
23073						for ac_func in \
23074				thr_setconcurrency \
23075				thr_getconcurrency \
23076
23077do :
23078  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23079ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23080if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23081  cat >>confdefs.h <<_ACEOF
23082#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23083_ACEOF
23084
23085fi
23086done
23087
23088		fi
23089	fi
23090
23091		for ac_header in lwp/lwp.h
23092do :
23093  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
23094if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
23095  cat >>confdefs.h <<_ACEOF
23096#define HAVE_LWP_LWP_H 1
23097_ACEOF
23098
23099fi
23100
23101done
23102
23103	if test $ac_cv_header_lwp_lwp_h = yes ; then
23104		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
23105$as_echo_n "checking for lwp_create in -llwp... " >&6; }
23106if ${ac_cv_lib_lwp_lwp_create+:} false; then :
23107  $as_echo_n "(cached) " >&6
23108else
23109  ac_check_lib_save_LIBS=$LIBS
23110LIBS="-llwp  $LIBS"
23111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23112/* end confdefs.h.  */
23113
23114/* Override any GCC internal prototype to avoid an error.
23115   Use char because int might match the return type of a GCC
23116   builtin and then its argument prototype would still apply.  */
23117#ifdef __cplusplus
23118extern "C"
23119#endif
23120char lwp_create ();
23121int
23122main ()
23123{
23124return lwp_create ();
23125  ;
23126  return 0;
23127}
23128_ACEOF
23129if ac_fn_c_try_link "$LINENO"; then :
23130  ac_cv_lib_lwp_lwp_create=yes
23131else
23132  ac_cv_lib_lwp_lwp_create=no
23133fi
23134rm -f core conftest.err conftest.$ac_objext \
23135    conftest$ac_exeext conftest.$ac_ext
23136LIBS=$ac_check_lib_save_LIBS
23137fi
23138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
23139$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
23140if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
23141  have_lwp=yes
23142else
23143  have_lwp=no
23144fi
23145
23146
23147		if test $have_lwp = yes ; then
23148
23149$as_echo "#define HAVE_LWP 1" >>confdefs.h
23150
23151			LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
23152			ol_link_threads=lwp
23153
23154			if test x$ol_with_yielding_select = xauto ; then
23155				ol_with_yielding_select=no
23156			fi
23157		fi
23158	fi
23159	;;
23160esac
23161
23162if test $ol_with_yielding_select = yes ; then
23163
23164$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
23165
23166fi
23167
23168if test $ol_with_threads = manual ; then
23169		ol_link_threads=yes
23170
23171	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
23172$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
23173
23174	for ac_header in pthread.h sched.h
23175do :
23176  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23177ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23178if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23179  cat >>confdefs.h <<_ACEOF
23180#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23181_ACEOF
23182
23183fi
23184
23185done
23186
23187	for ac_func in sched_yield pthread_yield
23188do :
23189  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23190ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23191if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23192  cat >>confdefs.h <<_ACEOF
23193#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23194_ACEOF
23195
23196fi
23197done
23198
23199
23200	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
23201$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
23202if ${ol_cv_header_linux_threads+:} false; then :
23203  $as_echo_n "(cached) " >&6
23204else
23205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23206/* end confdefs.h.  */
23207#include <pthread.h>
23208_ACEOF
23209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23210  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
23211  ol_cv_header_linux_threads=yes
23212else
23213  ol_cv_header_linux_threads=no
23214fi
23215rm -f conftest*
23216
23217
23218fi
23219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
23220$as_echo "$ol_cv_header_linux_threads" >&6; }
23221	if test $ol_cv_header_linux_threads = yes; then
23222
23223$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
23224
23225	fi
23226
23227
23228	for ac_header in mach/cthreads.h
23229do :
23230  ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
23231if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
23232  cat >>confdefs.h <<_ACEOF
23233#define HAVE_MACH_CTHREADS_H 1
23234_ACEOF
23235
23236fi
23237
23238done
23239
23240	for ac_header in lwp/lwp.h
23241do :
23242  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
23243if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
23244  cat >>confdefs.h <<_ACEOF
23245#define HAVE_LWP_LWP_H 1
23246_ACEOF
23247
23248fi
23249
23250done
23251
23252	for ac_header in thread.h synch.h
23253do :
23254  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23255ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23256if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23257  cat >>confdefs.h <<_ACEOF
23258#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23259_ACEOF
23260
23261fi
23262
23263done
23264
23265fi
23266
23267if test $ol_link_threads != no && test $ol_link_threads != nt ; then
23268
23269$as_echo "#define REENTRANT 1" >>confdefs.h
23270
23271
23272$as_echo "#define _REENTRANT 1" >>confdefs.h
23273
23274
23275$as_echo "#define THREAD_SAFE 1" >>confdefs.h
23276
23277
23278$as_echo "#define _THREAD_SAFE 1" >>confdefs.h
23279
23280
23281$as_echo "#define THREADSAFE 1" >>confdefs.h
23282
23283
23284$as_echo "#define _THREADSAFE 1" >>confdefs.h
23285
23286
23287$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
23288
23289
23290			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
23291$as_echo_n "checking for thread specific errno... " >&6; }
23292if ${ol_cv_errno_thread_specific+:} false; then :
23293  $as_echo_n "(cached) " >&6
23294else
23295
23296		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23297/* end confdefs.h.  */
23298#include <errno.h>
23299int
23300main ()
23301{
23302errno = 0;
23303  ;
23304  return 0;
23305}
23306_ACEOF
23307if ac_fn_c_try_link "$LINENO"; then :
23308  ol_cv_errno_thread_specific=yes
23309else
23310  ol_cv_errno_thread_specific=no
23311fi
23312rm -f core conftest.err conftest.$ac_objext \
23313    conftest$ac_exeext conftest.$ac_ext
23314
23315fi
23316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
23317$as_echo "$ol_cv_errno_thread_specific" >&6; }
23318
23319			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
23320$as_echo_n "checking for thread specific h_errno... " >&6; }
23321if ${ol_cv_h_errno_thread_specific+:} false; then :
23322  $as_echo_n "(cached) " >&6
23323else
23324
23325		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23326/* end confdefs.h.  */
23327#include <netdb.h>
23328int
23329main ()
23330{
23331h_errno = 0;
23332  ;
23333  return 0;
23334}
23335_ACEOF
23336if ac_fn_c_try_link "$LINENO"; then :
23337  ol_cv_h_errno_thread_specific=yes
23338else
23339  ol_cv_h_errno_thread_specific=no
23340fi
23341rm -f core conftest.err conftest.$ac_objext \
23342    conftest$ac_exeext conftest.$ac_ext
23343
23344fi
23345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
23346$as_echo "$ol_cv_h_errno_thread_specific" >&6; }
23347
23348	if test $ol_cv_errno_thread_specific != yes ||
23349	   test $ol_cv_h_errno_thread_specific != yes ; then
23350		LIBS="$LTHREAD_LIBS $LIBS"
23351		LTHREAD_LIBS=""
23352	fi
23353
23354fi
23355
23356if test $ol_link_threads = no ; then
23357	if test $ol_with_threads = yes ; then
23358		as_fn_error $? "no suitable thread support" "$LINENO" 5
23359	fi
23360
23361	if test $ol_with_threads = auto ; then
23362		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
23363$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
23364		ol_with_threads=no
23365	fi
23366
23367
23368$as_echo "#define NO_THREADS 1" >>confdefs.h
23369
23370	LTHREAD_LIBS=""
23371	BUILD_THREAD=no
23372else
23373	BUILD_THREAD=yes
23374fi
23375
23376if test $ol_link_threads != no ; then
23377
23378$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
23379
23380fi
23381
23382# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23383case "$ol_with_threads" in
23384 no)
23385    ol_pthread_ok=no
23386
23387    ;;
23388 *)
23389    ol_found_pthreads=yes
23390    ;;
23391esac
23392
23393ac_ext=c
23394ac_cpp='$CPP $CPPFLAGS'
23395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23397ac_compiler_gnu=$ac_cv_c_compiler_gnu
23398
23399
23400
23401
23402
23403
23404    case "$ol_found_pthreads" in
23405     yes)
23406	saved_LIBS="$LIBS"
23407	LIBS="$LTHREAD_LIBS $LIBS"
23408	saved_CFLAGS="$CFLAGS"
23409	CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
23410	for ac_func in sem_timedwait
23411do :
23412  ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
23413if test "x$ac_cv_func_sem_timedwait" = xyes; then :
23414  cat >>confdefs.h <<_ACEOF
23415#define HAVE_SEM_TIMEDWAIT 1
23416_ACEOF
23417
23418fi
23419done
23420
23421	LIBS="$saved_LIBS"
23422	{ saved_LIBS=; unset saved_LIBS;}
23423	CFLAGS="$saved_CFLAGS"
23424	{ saved_CFLAGS=; unset saved_CFLAGS;}
23425	case "$ac_cv_func_sem_timedwait" in
23426	 yes)
23427	    PTHREAD_LIBS="$LTHREAD_LIBS"
23428	    have_pthreads=yes
23429	esac
23430    esac
23431esac
23432
23433case "$have_pthreads" in
23434 yes)
23435    CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
23436    saved_LIBS="$LIBS"
23437    LIBS="$LTHREAD_LIBS $LIBS"
23438    saved_CFLAGS="$CFLAGS"
23439    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
23440    # The cast to long int works around a bug in the HP C Compiler
23441# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23442# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23443# This bug is HP SR number 8606223364.
23444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
23445$as_echo_n "checking size of pthread_t... " >&6; }
23446if ${ac_cv_sizeof_pthread_t+:} false; then :
23447  $as_echo_n "(cached) " >&6
23448else
23449  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
23450	    $ac_includes_default
23451	    #include <pthread.h>
23452
23453
23454"; then :
23455
23456else
23457  if test "$ac_cv_type_pthread_t" = yes; then
23458     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23460as_fn_error 77 "cannot compute sizeof (pthread_t)
23461See \`config.log' for more details" "$LINENO" 5; }
23462   else
23463     ac_cv_sizeof_pthread_t=0
23464   fi
23465fi
23466
23467fi
23468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
23469$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
23470
23471
23472
23473cat >>confdefs.h <<_ACEOF
23474#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
23475_ACEOF
23476
23477
23478    LIBISC_PTHREADS_NOTHREADS=pthreads
23479
23480$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
23481
23482    #
23483    # We'd like to use sigwait() too
23484    #
23485    ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
23486if test "x$ac_cv_func_sigwait" = xyes; then :
23487  have_sigwait=yes
23488else
23489  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
23490$as_echo_n "checking for sigwait in -lc... " >&6; }
23491if ${ac_cv_lib_c_sigwait+:} false; then :
23492  $as_echo_n "(cached) " >&6
23493else
23494  ac_check_lib_save_LIBS=$LIBS
23495LIBS="-lc  $LIBS"
23496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23497/* end confdefs.h.  */
23498
23499/* Override any GCC internal prototype to avoid an error.
23500   Use char because int might match the return type of a GCC
23501   builtin and then its argument prototype would still apply.  */
23502#ifdef __cplusplus
23503extern "C"
23504#endif
23505char sigwait ();
23506int
23507main ()
23508{
23509return sigwait ();
23510  ;
23511  return 0;
23512}
23513_ACEOF
23514if ac_fn_c_try_link "$LINENO"; then :
23515  ac_cv_lib_c_sigwait=yes
23516else
23517  ac_cv_lib_c_sigwait=no
23518fi
23519rm -f core conftest.err conftest.$ac_objext \
23520    conftest$ac_exeext conftest.$ac_ext
23521LIBS=$ac_check_lib_save_LIBS
23522fi
23523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
23524$as_echo "$ac_cv_lib_c_sigwait" >&6; }
23525if test "x$ac_cv_lib_c_sigwait" = xyes; then :
23526  have_sigwait=yes
23527else
23528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
23529$as_echo_n "checking for sigwait in -lpthread... " >&6; }
23530if ${ac_cv_lib_pthread_sigwait+:} false; then :
23531  $as_echo_n "(cached) " >&6
23532else
23533  ac_check_lib_save_LIBS=$LIBS
23534LIBS="-lpthread  $LIBS"
23535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23536/* end confdefs.h.  */
23537
23538/* Override any GCC internal prototype to avoid an error.
23539   Use char because int might match the return type of a GCC
23540   builtin and then its argument prototype would still apply.  */
23541#ifdef __cplusplus
23542extern "C"
23543#endif
23544char sigwait ();
23545int
23546main ()
23547{
23548return sigwait ();
23549  ;
23550  return 0;
23551}
23552_ACEOF
23553if ac_fn_c_try_link "$LINENO"; then :
23554  ac_cv_lib_pthread_sigwait=yes
23555else
23556  ac_cv_lib_pthread_sigwait=no
23557fi
23558rm -f core conftest.err conftest.$ac_objext \
23559    conftest$ac_exeext conftest.$ac_ext
23560LIBS=$ac_check_lib_save_LIBS
23561fi
23562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
23563$as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
23564if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
23565  have_sigwait=yes
23566else
23567  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
23568$as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
23569if ${ac_cv_lib_pthread__Psigwait+:} false; then :
23570  $as_echo_n "(cached) " >&6
23571else
23572  ac_check_lib_save_LIBS=$LIBS
23573LIBS="-lpthread  $LIBS"
23574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23575/* end confdefs.h.  */
23576
23577/* Override any GCC internal prototype to avoid an error.
23578   Use char because int might match the return type of a GCC
23579   builtin and then its argument prototype would still apply.  */
23580#ifdef __cplusplus
23581extern "C"
23582#endif
23583char _Psigwait ();
23584int
23585main ()
23586{
23587return _Psigwait ();
23588  ;
23589  return 0;
23590}
23591_ACEOF
23592if ac_fn_c_try_link "$LINENO"; then :
23593  ac_cv_lib_pthread__Psigwait=yes
23594else
23595  ac_cv_lib_pthread__Psigwait=no
23596fi
23597rm -f core conftest.err conftest.$ac_objext \
23598    conftest$ac_exeext conftest.$ac_ext
23599LIBS=$ac_check_lib_save_LIBS
23600fi
23601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
23602$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
23603if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
23604  have_sigwait=yes
23605else
23606  have_sigwait=no
23607
23608fi
23609
23610
23611fi
23612
23613
23614fi
23615
23616
23617fi
23618
23619    case "$host:$have_sigwait" in
23620     *-freebsd*:no)
23621	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
23622$as_echo_n "checking for sigwait in -lc_r... " >&6; }
23623if ${ac_cv_lib_c_r_sigwait+:} false; then :
23624  $as_echo_n "(cached) " >&6
23625else
23626  ac_check_lib_save_LIBS=$LIBS
23627LIBS="-lc_r  $LIBS"
23628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23629/* end confdefs.h.  */
23630
23631/* Override any GCC internal prototype to avoid an error.
23632   Use char because int might match the return type of a GCC
23633   builtin and then its argument prototype would still apply.  */
23634#ifdef __cplusplus
23635extern "C"
23636#endif
23637char sigwait ();
23638int
23639main ()
23640{
23641return sigwait ();
23642  ;
23643  return 0;
23644}
23645_ACEOF
23646if ac_fn_c_try_link "$LINENO"; then :
23647  ac_cv_lib_c_r_sigwait=yes
23648else
23649  ac_cv_lib_c_r_sigwait=no
23650fi
23651rm -f core conftest.err conftest.$ac_objext \
23652    conftest$ac_exeext conftest.$ac_ext
23653LIBS=$ac_check_lib_save_LIBS
23654fi
23655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
23656$as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
23657if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
23658  have_sigwait=yes
23659
23660fi
23661
23662    esac
23663    case "$have_sigwait" in
23664     yes)
23665	ac_cv_func_sigwait=yes
23666
23667$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
23668
23669    esac
23670
23671    for ac_func in pthread_attr_getstacksize
23672do :
23673  ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
23674if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
23675  cat >>confdefs.h <<_ACEOF
23676#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
23677_ACEOF
23678
23679fi
23680done
23681
23682    for ac_func in pthread_attr_setstacksize sysconf
23683do :
23684  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23685ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23686if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23687  cat >>confdefs.h <<_ACEOF
23688#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23689_ACEOF
23690
23691fi
23692done
23693
23694
23695    case "$host" in
23696     *-freebsd5.[012]|*-freebsd5.[012].*)
23697	;;
23698     *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
23699
23700$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
23701
23702	;;
23703     *-bsdi3.*|*-bsdi4.0*)
23704
23705$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
23706
23707	;;
23708     *-linux*)
23709
23710$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
23711
23712	;;
23713     *-solaris*)
23714	$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
23715
23716	for ac_func in pthread_setconcurrency
23717do :
23718  ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
23719if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
23720  cat >>confdefs.h <<_ACEOF
23721#define HAVE_PTHREAD_SETCONCURRENCY 1
23722_ACEOF
23723
23724fi
23725done
23726
23727	case "$ac_cv_func_pthread_setconcurrency" in
23728	 yes)
23729
23730$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
23731
23732	esac
23733	;;
23734     *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
23735
23736$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
23737
23738	;;
23739    esac
23740    hack_shutup_pthreadonceinit=no
23741    case "$host" in
23742     *-aix5.[123].*)
23743	hack_shutup_pthreadonceinit=yes
23744	;;
23745     *-solaris2.[89])
23746	hack_shutup_pthreadonceinit=yes
23747	;;
23748     *-solaris2.1[0-9])
23749	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
23750$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
23751if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
23752  $as_echo_n "(cached) " >&6
23753else
23754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23755/* end confdefs.h.  */
23756
23757			#include <pthread.h>
23758
23759int
23760main ()
23761{
23762
23763		        static pthread_once_t once_test =
23764						PTHREAD_ONCE_INIT;
23765
23766
23767  ;
23768  return 0;
23769}
23770_ACEOF
23771if ac_fn_c_try_compile "$LINENO"; then :
23772  ntp_cv_braces_around_pthread_once_init=no
23773else
23774  ntp_cv_braces_around_pthread_once_init=yes
23775
23776fi
23777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23778
23779fi
23780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
23781$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
23782	case "$ntp_cv_braces_around_pthread_once_init" in
23783	 yes)
23784	    hack_shutup_pthreadonceinit=yes
23785	esac
23786	;;
23787    esac
23788    case "$hack_shutup_pthreadonceinit" in
23789     yes)
23790
23791$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
23792
23793    esac
23794    LIBS="$saved_LIBS"
23795    { saved_LIBS=; unset saved_LIBS;}
23796    CFLAGS="$saved_CFLAGS"
23797    { saved_CFLAGS=; unset saved_CFLAGS;}
23798    ;;
23799 *)
23800    LIBISC_PTHREADS_NOTHREADS=nothreads
23801    ;;
23802esac
23803
23804 if test "$have_pthreads" != "no"; then
23805  PTHREADS_TRUE=
23806  PTHREADS_FALSE='#'
23807else
23808  PTHREADS_TRUE='#'
23809  PTHREADS_FALSE=
23810fi
23811
23812
23813
23814
23815
23816
23817
23818case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
23819 no:yes)
23820    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
23821$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
23822if ${ntp_cv_vsnprintf_percent_m+:} false; then :
23823  $as_echo_n "(cached) " >&6
23824else
23825  if test "$cross_compiling" = yes; then :
23826  ntp_cv_vsnprintf_percent_m=no
23827
23828else
23829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23830/* end confdefs.h.  */
23831
23832		    #include <stdarg.h>
23833		    #include <errno.h>
23834		    #include <stdio.h>
23835		    #include <string.h>
23836
23837		    int call_vsnprintf(
23838			    char *	dst,
23839			    size_t	sz,
23840			    const char *fmt,
23841			    ...
23842			    );
23843
23844		    int call_vsnprintf(
23845			    char *	dst,
23846			    size_t	sz,
23847			    const char *fmt,
23848			    ...
23849			    )
23850		    {
23851			    va_list	ap;
23852			    int		rc;
23853
23854			    va_start(ap, fmt);
23855			    rc = vsnprintf(dst, sz, fmt, ap);
23856			    va_end(ap);
23857
23858			    return rc;
23859		    }
23860
23861int
23862main ()
23863{
23864
23865		    char	sbuf[512];
23866		    char	pbuf[512];
23867		    int		slen;
23868
23869		    strcpy(sbuf, strerror(ENOENT));
23870		    errno = ENOENT;
23871		    slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
23872					  "wrong");
23873		    return strcmp(sbuf, pbuf);
23874
23875
23876  ;
23877  return 0;
23878}
23879_ACEOF
23880if ac_fn_c_try_run "$LINENO"; then :
23881  ntp_cv_vsnprintf_percent_m=yes
23882else
23883  ntp_cv_vsnprintf_percent_m=no
23884fi
23885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23886  conftest.$ac_objext conftest.beam conftest.$ac_ext
23887fi
23888
23889
23890fi
23891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
23892$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
23893    case "$ntp_cv_vsnprintf_percent_m" in
23894     yes)
23895
23896$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
23897
23898    esac
23899esac
23900
23901for ac_header in sys/clockctl.h
23902do :
23903  ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
23904if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
23905  cat >>confdefs.h <<_ACEOF
23906#define HAVE_SYS_CLOCKCTL_H 1
23907_ACEOF
23908
23909fi
23910
23911done
23912
23913
23914# Check whether --enable-clockctl was given.
23915if test "${enable_clockctl+set}" = set; then :
23916  enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
23917else
23918  ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
23919
23920fi
23921
23922
23923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
23924$as_echo_n "checking if we should use /dev/clockctl... " >&6; }
23925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
23926$as_echo "$ntp_use_dev_clockctl" >&6; }
23927
23928
23929for ac_header in sys/capability.h sys/prctl.h
23930do :
23931  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23932ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23933if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23934  cat >>confdefs.h <<_ACEOF
23935#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23936_ACEOF
23937
23938fi
23939
23940done
23941
23942
23943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
23944$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
23945
23946case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
23947 yesyes)
23948    case "$host" in
23949     mips-sgi-irix*)
23950	ntp_have_linuxcaps=no
23951	;;
23952     *) ntp_have_linuxcaps=yes
23953	;;
23954    esac
23955    ;;
23956 *)
23957    ntp_have_linuxcaps=no
23958    ;;
23959esac
23960
23961# Check whether --enable-linuxcaps was given.
23962if test "${enable_linuxcaps+set}" = set; then :
23963  enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
23964
23965fi
23966
23967
23968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
23969$as_echo "$ntp_have_linuxcaps" >&6; }
23970
23971case "$ntp_have_linuxcaps" in
23972 yes)
23973
23974$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
23975
23976    LIBS="$LIBS -lcap"
23977    ;;
23978esac
23979
23980
23981for ac_header in priv.h
23982do :
23983  ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
23984if test "x$ac_cv_header_priv_h" = xyes; then :
23985  cat >>confdefs.h <<_ACEOF
23986#define HAVE_PRIV_H 1
23987_ACEOF
23988
23989fi
23990
23991done
23992
23993case "$ac_cv_header_priv_h" in
23994 yes)
23995    case "$host" in
23996     *-solaris*)
23997	ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
23998if test "x$ac_cv_func_setppriv" = xyes; then :
23999  ntp_have_solarisprivs=yes
24000else
24001  ntp_have_solarisprivs=no
24002
24003fi
24004
24005	;;
24006    esac
24007esac
24008
24009# Check whether --enable-solarisprivs was given.
24010if test "${enable_solarisprivs+set}" = set; then :
24011  enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
24012
24013fi
24014
24015
24016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
24017$as_echo_n "checking if we have solaris privileges... " >&6; }
24018
24019case "$ntp_have_solarisprivs" in
24020 yes)
24021
24022$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
24023
24024esac
24025
24026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
24027$as_echo "$ntp_have_solarisprivs" >&6; }
24028
24029case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
24030 *yes*)
24031
24032$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h
24033
24034esac
24035
24036case "$host" in
24037 *-*-darwin*)
24038    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
24039$as_echo_n "checking for library containing res_9_init... " >&6; }
24040if ${ac_cv_search_res_9_init+:} false; then :
24041  $as_echo_n "(cached) " >&6
24042else
24043  ac_func_search_save_LIBS=$LIBS
24044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24045/* end confdefs.h.  */
24046
24047/* Override any GCC internal prototype to avoid an error.
24048   Use char because int might match the return type of a GCC
24049   builtin and then its argument prototype would still apply.  */
24050#ifdef __cplusplus
24051extern "C"
24052#endif
24053char res_9_init ();
24054int
24055main ()
24056{
24057return res_9_init ();
24058  ;
24059  return 0;
24060}
24061_ACEOF
24062for ac_lib in '' resolv; do
24063  if test -z "$ac_lib"; then
24064    ac_res="none required"
24065  else
24066    ac_res=-l$ac_lib
24067    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24068  fi
24069  if ac_fn_c_try_link "$LINENO"; then :
24070  ac_cv_search_res_9_init=$ac_res
24071fi
24072rm -f core conftest.err conftest.$ac_objext \
24073    conftest$ac_exeext
24074  if ${ac_cv_search_res_9_init+:} false; then :
24075  break
24076fi
24077done
24078if ${ac_cv_search_res_9_init+:} false; then :
24079
24080else
24081  ac_cv_search_res_9_init=no
24082fi
24083rm conftest.$ac_ext
24084LIBS=$ac_func_search_save_LIBS
24085fi
24086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
24087$as_echo "$ac_cv_search_res_9_init" >&6; }
24088ac_res=$ac_cv_search_res_9_init
24089if test "$ac_res" != no; then :
24090  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24091
24092fi
24093
24094    ;;
24095 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
24096$as_echo_n "checking for library containing res_init... " >&6; }
24097if ${ac_cv_search_res_init+:} false; then :
24098  $as_echo_n "(cached) " >&6
24099else
24100  ac_func_search_save_LIBS=$LIBS
24101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24102/* end confdefs.h.  */
24103
24104/* Override any GCC internal prototype to avoid an error.
24105   Use char because int might match the return type of a GCC
24106   builtin and then its argument prototype would still apply.  */
24107#ifdef __cplusplus
24108extern "C"
24109#endif
24110char res_init ();
24111int
24112main ()
24113{
24114return res_init ();
24115  ;
24116  return 0;
24117}
24118_ACEOF
24119for ac_lib in '' resolv; do
24120  if test -z "$ac_lib"; then
24121    ac_res="none required"
24122  else
24123    ac_res=-l$ac_lib
24124    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24125  fi
24126  if ac_fn_c_try_link "$LINENO"; then :
24127  ac_cv_search_res_init=$ac_res
24128fi
24129rm -f core conftest.err conftest.$ac_objext \
24130    conftest$ac_exeext
24131  if ${ac_cv_search_res_init+:} false; then :
24132  break
24133fi
24134done
24135if ${ac_cv_search_res_init+:} false; then :
24136
24137else
24138  ac_cv_search_res_init=no
24139fi
24140rm conftest.$ac_ext
24141LIBS=$ac_func_search_save_LIBS
24142fi
24143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
24144$as_echo "$ac_cv_search_res_init" >&6; }
24145ac_res=$ac_cv_search_res_init
24146if test "$ac_res" != no; then :
24147  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24148
24149fi
24150
24151    ;;
24152esac
24153for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
24154do :
24155  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24156ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
24157#  include <sys/types.h>
24158#endif
24159#ifdef HAVE_NETINET_IN_H
24160#  include <netinet/in.h>   /* inet_ functions / structs */
24161#endif
24162#ifdef HAVE_ARPA_NAMESER_H
24163#  include <arpa/nameser.h> /* DNS HEADER struct */
24164#endif
24165#ifdef HAVE_NETDB_H
24166#  include <netdb.h>
24167#endif
24168"
24169if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24170  cat >>confdefs.h <<_ACEOF
24171#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24172_ACEOF
24173
24174fi
24175
24176done
24177
24178
24179#HMS: Why do we do this check so "early"?
24180for ac_func in res_init
24181do :
24182  ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
24183if test "x$ac_cv_func_res_init" = xyes; then :
24184  cat >>confdefs.h <<_ACEOF
24185#define HAVE_RES_INIT 1
24186_ACEOF
24187
24188else
24189  for ac_func in __res_init
24190do :
24191  ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
24192if test "x$ac_cv_func___res_init" = xyes; then :
24193  cat >>confdefs.h <<_ACEOF
24194#define HAVE___RES_INIT 1
24195_ACEOF
24196
24197fi
24198done
24199
24200fi
24201done
24202
24203
24204# We also need -lsocket, but we have tested for that already.
24205ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
24206if test "x$ac_cv_func_inet_ntop" = xyes; then :
24207
24208else
24209
24210$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
24211
24212fi
24213
24214ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
24215if test "x$ac_cv_func_inet_pton" = xyes; then :
24216
24217else
24218
24219$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
24220
24221fi
24222
24223
24224ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
24225if test "x$ac_cv_type_uintptr_t" = xyes; then :
24226
24227cat >>confdefs.h <<_ACEOF
24228#define HAVE_UINTPTR_T 1
24229_ACEOF
24230
24231
24232fi
24233ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
24234if test "x$ac_cv_type_int32" = xyes; then :
24235
24236cat >>confdefs.h <<_ACEOF
24237#define HAVE_INT32 1
24238_ACEOF
24239
24240
24241fi
24242ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
24243if test "x$ac_cv_type_u_int32" = xyes; then :
24244
24245cat >>confdefs.h <<_ACEOF
24246#define HAVE_U_INT32 1
24247_ACEOF
24248
24249
24250fi
24251
24252
24253
24254
24255case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
24256 no::yes)
24257    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
24258$as_echo_n "checking for int32 with DNS headers included... " >&6; }
24259if ${ntp_cv_type_int32_with_dns+:} false; then :
24260  $as_echo_n "(cached) " >&6
24261else
24262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24263/* end confdefs.h.  */
24264
24265		    #ifdef HAVE_ARPA_NAMESER_H
24266		    # include <arpa/nameser.h>
24267		    #endif
24268		    #include <resolv.h>
24269
24270int
24271main ()
24272{
24273
24274		    size_t cb = sizeof(int32);
24275
24276
24277  ;
24278  return 0;
24279}
24280_ACEOF
24281if ac_fn_c_try_compile "$LINENO"; then :
24282  ntp_cv_type_int32_with_dns=yes
24283else
24284  ntp_cv_type_int32_with_dns=no
24285
24286fi
24287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24288
24289fi
24290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
24291$as_echo "$ntp_cv_type_int32_with_dns" >&6; }
24292    case "$ntp_cv_type_int32_with_dns" in
24293     yes)
24294
24295$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
24296
24297    esac
24298esac
24299
24300case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
24301 no::yes)
24302    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
24303$as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
24304if ${ntp_cv_type_u_int32_with_dns+:} false; then :
24305  $as_echo_n "(cached) " >&6
24306else
24307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24308/* end confdefs.h.  */
24309
24310		    #ifdef HAVE_ARPA_NAMESER_H
24311		    # include <arpa/nameser.h>
24312		    #endif
24313		    #include <resolv.h>
24314
24315int
24316main ()
24317{
24318
24319		    size_t cb = sizeof(u_int32);
24320
24321
24322  ;
24323  return 0;
24324}
24325_ACEOF
24326if ac_fn_c_try_compile "$LINENO"; then :
24327  ntp_cv_type_u_int32_with_dns=yes
24328else
24329  ntp_cv_type_u_int32_with_dns=no
24330
24331fi
24332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24333
24334fi
24335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
24336$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
24337    case "$ntp_cv_type_u_int32_with_dns" in
24338     yes)
24339
24340$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
24341
24342    esac
24343esac
24344
24345for ac_header in sys/timepps.h
24346do :
24347  ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
24348	#ifdef HAVE_SYS_TIME_H
24349	# include <sys/time.h>
24350	#endif
24351	#ifdef HAVE_ERRNO_H
24352	# include <errno.h>
24353	#endif
24354
24355
24356"
24357if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
24358  cat >>confdefs.h <<_ACEOF
24359#define HAVE_SYS_TIMEPPS_H 1
24360_ACEOF
24361
24362fi
24363
24364done
24365
24366
24367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
24368$as_echo_n "checking for struct timespec... " >&6; }
24369if ${ntp_cv_struct_timespec+:} false; then :
24370  $as_echo_n "(cached) " >&6
24371else
24372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24373/* end confdefs.h.  */
24374
24375		#include <sys/time.h>
24376		/* Under SunOS, timespec is in sys/timepps.h,
24377		   which needs errno.h and FRAC */
24378		#ifdef HAVE_ERRNO_H
24379		# include <errno.h>
24380		#endif
24381		#ifdef HAVE_SYS_TIMEPPS_H
24382		# define FRAC 4294967296
24383		# include <sys/timepps.h>
24384		#endif
24385
24386int
24387main ()
24388{
24389
24390		struct timespec n;
24391
24392
24393  ;
24394  return 0;
24395}
24396_ACEOF
24397if ac_fn_c_try_compile "$LINENO"; then :
24398  ntp_cv_struct_timespec=yes
24399else
24400  ntp_cv_struct_timespec=no
24401
24402fi
24403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24404
24405fi
24406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
24407$as_echo "$ntp_cv_struct_timespec" >&6; }
24408case "$ntp_cv_struct_timespec" in
24409 yes)
24410
24411$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
24412
24413esac
24414
24415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
24416$as_echo_n "checking for struct ntptimeval... " >&6; }
24417if ${ntp_cv_struct_ntptimeval+:} false; then :
24418  $as_echo_n "(cached) " >&6
24419else
24420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24421/* end confdefs.h.  */
24422
24423		#include <sys/time.h>
24424		#include <sys/timex.h>
24425
24426int
24427main ()
24428{
24429
24430		struct ntptimeval n;
24431
24432
24433  ;
24434  return 0;
24435}
24436_ACEOF
24437if ac_fn_c_try_compile "$LINENO"; then :
24438  ntp_cv_struct_ntptimeval=yes
24439else
24440  ntp_cv_struct_ntptimeval=no
24441
24442fi
24443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24444
24445fi
24446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
24447$as_echo "$ntp_cv_struct_ntptimeval" >&6; }
24448case "$ntp_cv_struct_ntptimeval" in
24449 yes)
24450
24451$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
24452
24453esac
24454
24455for ac_header in md5.h
24456do :
24457  ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
24458	#ifdef HAVE_SYS_TYPES_H
24459	# include <sys/types.h>
24460	#endif
24461
24462
24463"
24464if test "x$ac_cv_header_md5_h" = xyes; then :
24465  cat >>confdefs.h <<_ACEOF
24466#define HAVE_MD5_H 1
24467_ACEOF
24468
24469fi
24470
24471done
24472
24473
24474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
24475$as_echo_n "checking for library containing MD5Init... " >&6; }
24476if ${ac_cv_search_MD5Init+:} false; then :
24477  $as_echo_n "(cached) " >&6
24478else
24479  ac_func_search_save_LIBS=$LIBS
24480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24481/* end confdefs.h.  */
24482
24483/* Override any GCC internal prototype to avoid an error.
24484   Use char because int might match the return type of a GCC
24485   builtin and then its argument prototype would still apply.  */
24486#ifdef __cplusplus
24487extern "C"
24488#endif
24489char MD5Init ();
24490int
24491main ()
24492{
24493return MD5Init ();
24494  ;
24495  return 0;
24496}
24497_ACEOF
24498for ac_lib in '' md5 md; do
24499  if test -z "$ac_lib"; then
24500    ac_res="none required"
24501  else
24502    ac_res=-l$ac_lib
24503    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24504  fi
24505  if ac_fn_c_try_link "$LINENO"; then :
24506  ac_cv_search_MD5Init=$ac_res
24507fi
24508rm -f core conftest.err conftest.$ac_objext \
24509    conftest$ac_exeext
24510  if ${ac_cv_search_MD5Init+:} false; then :
24511  break
24512fi
24513done
24514if ${ac_cv_search_MD5Init+:} false; then :
24515
24516else
24517  ac_cv_search_MD5Init=no
24518fi
24519rm conftest.$ac_ext
24520LIBS=$ac_func_search_save_LIBS
24521fi
24522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
24523$as_echo "$ac_cv_search_MD5Init" >&6; }
24524ac_res=$ac_cv_search_MD5Init
24525if test "$ac_res" != no; then :
24526  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24527
24528fi
24529
24530for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
24531do :
24532  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24533ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24534if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24535  cat >>confdefs.h <<_ACEOF
24536#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24537_ACEOF
24538
24539fi
24540done
24541
24542
24543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
24544$as_echo_n "checking for SIGIO... " >&6; }
24545if ${ntp_cv_hdr_def_sigio+:} false; then :
24546  $as_echo_n "(cached) " >&6
24547else
24548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24549/* end confdefs.h.  */
24550
24551	    #include <signal.h>
24552
24553	    #ifndef SIGIO
24554	    # error
24555	    #endif
24556
24557_ACEOF
24558if ac_fn_c_try_cpp "$LINENO"; then :
24559  ntp_cv_hdr_def_sigio=yes
24560else
24561  ntp_cv_hdr_def_sigio=no
24562
24563fi
24564rm -f conftest.err conftest.i conftest.$ac_ext
24565
24566fi
24567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
24568$as_echo "$ntp_cv_hdr_def_sigio" >&6; }
24569
24570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
24571$as_echo_n "checking if we want to use SIGIO... " >&6; }
24572ans=no
24573case "$ntp_cv_hdr_def_sigio" in
24574 yes)
24575    ans=yes
24576    case "$host" in
24577     alpha*-dec-osf4*|alpha*-dec-osf5*)
24578	ans=no
24579	;;
24580     *-convex-*)
24581	ans=no
24582	;;
24583     *-dec-*)
24584	ans=no
24585	;;
24586     *-pc-cygwin*)
24587	ans=no
24588	;;
24589     *-sni-sysv*)
24590	ans=no
24591	;;
24592     *-stratus-vos)
24593	ans=no
24594	;;
24595     *-univel-sysv*)
24596	ans=no
24597	;;
24598     *-*-irix6*)
24599	ans=no
24600	;;
24601     *-*-freebsd*)
24602	ans=no
24603	;;
24604     *-*-*linux*)
24605	ans=no
24606	;;
24607     *-*-unicosmp*)
24608	ans=no
24609	;;
24610     *-*-kfreebsd*)
24611	ans=no
24612	;;
24613     m68k-*-mint*)
24614	ans=no
24615	;;
24616    esac
24617    ;;
24618esac
24619case "$ans" in
24620 yes)
24621
24622$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
24623
24624esac
24625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24626$as_echo "$ans" >&6; }
24627
24628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
24629$as_echo_n "checking for SIGPOLL... " >&6; }
24630if ${ntp_cv_hdr_def_sigpoll+:} false; then :
24631  $as_echo_n "(cached) " >&6
24632else
24633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24634/* end confdefs.h.  */
24635
24636	    #include <signal.h>
24637
24638	    #ifndef SIGPOLL
24639	    # error
24640	    #endif
24641
24642_ACEOF
24643if ac_fn_c_try_cpp "$LINENO"; then :
24644  ntp_cv_hdr_def_sigpoll=yes
24645else
24646  ntp_cv_hdr_def_sigpoll=no
24647
24648fi
24649rm -f conftest.err conftest.i conftest.$ac_ext
24650
24651fi
24652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
24653$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
24654
24655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
24656$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
24657ans=no
24658case "$ntp_cv_hdr_def_sigpoll" in
24659 yes)
24660    case "$host" in
24661     mips-sgi-irix*)
24662	ans=no
24663	;;
24664     vax-dec-bsd)
24665	ans=no
24666	;;
24667     *-pc-cygwin*)
24668	ans=no
24669	;;
24670     *-sni-sysv*)
24671	ans=no
24672	;;
24673     *-stratus-vos)
24674	ans=no
24675	;;
24676     *-*-aix[4-9]*)
24677	# XXX Only verified thru AIX6
24678	ans=no
24679	;;
24680     *-*-hpux*)
24681	ans=no
24682	;;
24683     *-*-*linux*)
24684	ans=no
24685	;;
24686     *-*-osf*)
24687	ans=no
24688	;;
24689     *-*-qnx*)
24690	ans=no
24691	;;
24692     *-*-sunos*)
24693	ans=no
24694	;;
24695     *-*-solaris*)
24696	ans=no
24697	;;
24698     *-*-ultrix*)
24699	ans=no
24700	;;
24701     *-*-unicosmp*)
24702	ans=no
24703	;;
24704     *-*-kfreebsd*)
24705	ans=no
24706	;;
24707     *) ans=yes
24708	;;
24709    esac
24710    ;;
24711esac
24712case "$ans" in
24713 yes)
24714
24715$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
24716
24717esac
24718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24719$as_echo "$ans" >&6; }
24720
24721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
24722$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
24723ans=no
24724case "$ntp_cv_hdr_def_sigpoll" in
24725 yes)
24726    case "$host" in
24727     mips-sgi-irix*)
24728	ans=no
24729	;;
24730     vax-dec-bsd)
24731	ans=no
24732	;;
24733     *-pc-cygwin*)
24734	ans=no
24735	;;
24736     *-sni-sysv*)
24737	ans=no
24738	;;
24739     *-stratus-vos)
24740	ans=no
24741	;;
24742     *-*-aix[4-9]*)
24743	# XXX Only verified thru AIX6
24744	ans=no
24745	;;
24746     *-*-hpux*)
24747	ans=no
24748	;;
24749     *-*-*linux*)
24750	ans=no
24751	;;
24752     *-*-osf*)
24753	ans=no
24754	;;
24755     *-*-sunos*)
24756	ans=no
24757	;;
24758     *-*-ultrix*)
24759	ans=no
24760	;;
24761     *-*-qnx*)
24762	ans=no
24763	;;
24764     *-*-unicosmp*)
24765	ans=no
24766	;;
24767     *-*-kfreebsd*)
24768	ans=no
24769	;;
24770     *) ans=yes
24771	;;
24772    esac
24773    ;;
24774esac
24775case "$ans" in
24776 yes)
24777
24778$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
24779
24780esac
24781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24782$as_echo "$ans" >&6; }
24783
24784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
24785$as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
24786if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
24787  $as_echo_n "(cached) " >&6
24788else
24789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24790/* end confdefs.h.  */
24791
24792		#include <sys/time.h>
24793
24794int
24795main ()
24796{
24797
24798		gettimeofday(0, 0);
24799		settimeofday(0, 0);
24800
24801
24802  ;
24803  return 0;
24804}
24805_ACEOF
24806if ac_fn_c_try_compile "$LINENO"; then :
24807  ntp_cv_func_Xettimeofday_nargs=2
24808else
24809  ntp_cv_func_Xettimeofday_nargs=1
24810
24811fi
24812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24813
24814fi
24815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
24816$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
24817case "$ntp_cv_func_Xettimeofday_nargs" in
24818 1)
24819
24820$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
24821
24822esac
24823
24824for ac_func in settimeofday
24825do :
24826  ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
24827if test "x$ac_cv_func_settimeofday" = xyes; then :
24828  cat >>confdefs.h <<_ACEOF
24829#define HAVE_SETTIMEOFDAY 1
24830_ACEOF
24831
24832else
24833
24834    case "$host" in
24835     *-*-mpeix*) ac_cv_func_settimeofday=yes
24836    esac
24837
24838fi
24839done
24840
24841
24842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
24843$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
24844ntp_warning='GRONK'
24845ans=none
24846case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
24847 yes*)
24848    ntp_warning=''
24849    ans='clock_settime()'
24850    ;;
24851 noyes*)
24852    ntp_warning='But clock_settime() would be better (if we had it)'
24853    ans='settimeofday()'
24854    ;;
24855 nonoyes)
24856    ntp_warning='Which is the worst of the three'
24857    ans='stime()'
24858    ;;
24859 *)
24860    case "$build" in
24861     $host)
24862	ntp_warning='Which leaves us with nothing to use!'
24863    esac
24864esac
24865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24866$as_echo "$ans" >&6; }
24867case "$ntp_warning" in
24868 '')
24869    ;;
24870 *)
24871    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
24872$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
24873    ;;
24874esac
24875
24876
24877LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
24878LIBS=$__LIBS
24879{ __LIBS=; unset __LIBS;}
24880
24881
24882
24883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
24884$as_echo_n "checking for deprecated --with-arlib... " >&6; }
24885
24886# Check whether --with-arlib was given.
24887if test "${with_arlib+set}" = set; then :
24888  withval=$with_arlib; ans=$withval
24889else
24890  ans=no
24891fi
24892
24893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24894$as_echo "$ans" >&6; }
24895
24896case "$ans" in
24897 yes)
24898    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&5
24899$as_echo "$as_me: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&2;}
24900    ;;
24901esac
24902
24903for ac_prog in gawk mawk nawk awk
24904do
24905  # Extract the first word of "$ac_prog", so it can be a program name with args.
24906set dummy $ac_prog; ac_word=$2
24907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24908$as_echo_n "checking for $ac_word... " >&6; }
24909if ${ac_cv_prog_AWK+:} false; then :
24910  $as_echo_n "(cached) " >&6
24911else
24912  if test -n "$AWK"; then
24913  ac_cv_prog_AWK="$AWK" # Let the user override the test.
24914else
24915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24916for as_dir in $PATH
24917do
24918  IFS=$as_save_IFS
24919  test -z "$as_dir" && as_dir=.
24920    for ac_exec_ext in '' $ac_executable_extensions; do
24921  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24922    ac_cv_prog_AWK="$ac_prog"
24923    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24924    break 2
24925  fi
24926done
24927  done
24928IFS=$as_save_IFS
24929
24930fi
24931fi
24932AWK=$ac_cv_prog_AWK
24933if test -n "$AWK"; then
24934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
24935$as_echo "$AWK" >&6; }
24936else
24937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24938$as_echo "no" >&6; }
24939fi
24940
24941
24942  test -n "$AWK" && break
24943done
24944
24945{ ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
24946				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
24947$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
24948set x ${MAKE-make}
24949ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
24950if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
24951  $as_echo_n "(cached) " >&6
24952else
24953  cat >conftest.make <<\_ACEOF
24954SHELL = /bin/sh
24955all:
24956	@echo '@@@%%%=$(MAKE)=@@@%%%'
24957_ACEOF
24958# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24959case `${MAKE-make} -f conftest.make 2>/dev/null` in
24960  *@@@%%%=?*=@@@%%%*)
24961    eval ac_cv_prog_make_${ac_make}_set=yes;;
24962  *)
24963    eval ac_cv_prog_make_${ac_make}_set=no;;
24964esac
24965rm -f conftest.make
24966fi
24967if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
24968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24969$as_echo "yes" >&6; }
24970  SET_MAKE=
24971else
24972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24973$as_echo "no" >&6; }
24974  SET_MAKE="MAKE=${MAKE-make}"
24975fi
24976
24977
24978
24979
24980
24981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
24982$as_echo_n "checking whether ln -s works... " >&6; }
24983LN_S=$as_ln_s
24984if test "$LN_S" = "ln -s"; then
24985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24986$as_echo "yes" >&6; }
24987else
24988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
24989$as_echo "no, using $LN_S" >&6; }
24990fi
24991
24992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
24993$as_echo_n "checking for library containing strerror... " >&6; }
24994if ${ac_cv_search_strerror+:} false; then :
24995  $as_echo_n "(cached) " >&6
24996else
24997  ac_func_search_save_LIBS=$LIBS
24998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24999/* end confdefs.h.  */
25000
25001/* Override any GCC internal prototype to avoid an error.
25002   Use char because int might match the return type of a GCC
25003   builtin and then its argument prototype would still apply.  */
25004#ifdef __cplusplus
25005extern "C"
25006#endif
25007char strerror ();
25008int
25009main ()
25010{
25011return strerror ();
25012  ;
25013  return 0;
25014}
25015_ACEOF
25016for ac_lib in '' cposix; do
25017  if test -z "$ac_lib"; then
25018    ac_res="none required"
25019  else
25020    ac_res=-l$ac_lib
25021    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25022  fi
25023  if ac_fn_c_try_link "$LINENO"; then :
25024  ac_cv_search_strerror=$ac_res
25025fi
25026rm -f core conftest.err conftest.$ac_objext \
25027    conftest$ac_exeext
25028  if ${ac_cv_search_strerror+:} false; then :
25029  break
25030fi
25031done
25032if ${ac_cv_search_strerror+:} false; then :
25033
25034else
25035  ac_cv_search_strerror=no
25036fi
25037rm conftest.$ac_ext
25038LIBS=$ac_func_search_save_LIBS
25039fi
25040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
25041$as_echo "$ac_cv_search_strerror" >&6; }
25042ac_res=$ac_cv_search_strerror
25043if test "$ac_res" != no; then :
25044  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25045
25046fi
25047
25048
25049
25050# Extract the first word of "perl", so it can be a program name with args.
25051set dummy perl; ac_word=$2
25052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25053$as_echo_n "checking for $ac_word... " >&6; }
25054if ${ac_cv_path_PATH_PERL+:} false; then :
25055  $as_echo_n "(cached) " >&6
25056else
25057  case $PATH_PERL in
25058  [\\/]* | ?:[\\/]*)
25059  ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
25060  ;;
25061  *)
25062  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25063for as_dir in $PATH
25064do
25065  IFS=$as_save_IFS
25066  test -z "$as_dir" && as_dir=.
25067    for ac_exec_ext in '' $ac_executable_extensions; do
25068  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25069    ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
25070    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25071    break 2
25072  fi
25073done
25074  done
25075IFS=$as_save_IFS
25076
25077  ;;
25078esac
25079fi
25080PATH_PERL=$ac_cv_path_PATH_PERL
25081if test -n "$PATH_PERL"; then
25082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
25083$as_echo "$PATH_PERL" >&6; }
25084else
25085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25086$as_echo "no" >&6; }
25087fi
25088
25089
25090{ ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
25091# Extract the first word of "test", so it can be a program name with args.
25092set dummy test; ac_word=$2
25093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25094$as_echo_n "checking for $ac_word... " >&6; }
25095if ${ac_cv_path_PATH_TEST+:} false; then :
25096  $as_echo_n "(cached) " >&6
25097else
25098  case $PATH_TEST in
25099  [\\/]* | ?:[\\/]*)
25100  ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
25101  ;;
25102  *)
25103  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25104for as_dir in $PATH
25105do
25106  IFS=$as_save_IFS
25107  test -z "$as_dir" && as_dir=.
25108    for ac_exec_ext in '' $ac_executable_extensions; do
25109  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25110    ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
25111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25112    break 2
25113  fi
25114done
25115  done
25116IFS=$as_save_IFS
25117
25118  ;;
25119esac
25120fi
25121PATH_TEST=$ac_cv_path_PATH_TEST
25122if test -n "$PATH_TEST"; then
25123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
25124$as_echo "$PATH_TEST" >&6; }
25125else
25126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25127$as_echo "no" >&6; }
25128fi
25129
25130
25131{ ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
25132test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh
25133
25134
25135# Check whether --with-net-snmp-config was given.
25136if test "${with_net_snmp_config+set}" = set; then :
25137  withval=$with_net_snmp_config; ans=$withval
25138else
25139  ans=yes
25140
25141fi
25142
25143case "$ans" in
25144 no)
25145    ;;
25146 yes)
25147    ans=net-snmp-config
25148    ;;
25149 /*)
25150    ;;
25151 */*)
25152    as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
25153    ;;
25154 *)
25155    ;;
25156esac
25157PROG_NET_SNMP_CONFIG=$ans
25158case "$PROG_NET_SNMP_CONFIG" in
25159 no) ;;
25160 /*)
25161    PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
25162    ;;
25163 *)
25164    # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
25165set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
25166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25167$as_echo_n "checking for $ac_word... " >&6; }
25168if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
25169  $as_echo_n "(cached) " >&6
25170else
25171  case $PATH_NET_SNMP_CONFIG in
25172  [\\/]* | ?:[\\/]*)
25173  ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
25174  ;;
25175  *)
25176  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25177for as_dir in $PATH
25178do
25179  IFS=$as_save_IFS
25180  test -z "$as_dir" && as_dir=.
25181    for ac_exec_ext in '' $ac_executable_extensions; do
25182  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25183    ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25185    break 2
25186  fi
25187done
25188  done
25189IFS=$as_save_IFS
25190
25191  ;;
25192esac
25193fi
25194PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
25195if test -n "$PATH_NET_SNMP_CONFIG"; then
25196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
25197$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
25198else
25199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25200$as_echo "no" >&6; }
25201fi
25202
25203
25204    { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
25205;;
25206esac
25207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
25208$as_echo_n "checking for net-snmp-config path... " >&6; }
25209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
25210$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
25211
25212case "$PATH_NET_SNMP_CONFIG" in
25213 /*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp version" >&5
25214$as_echo_n "checking for net-snmp version... " >&6; }
25215if ${ntp_cv_net_snmp_version+:} false; then :
25216  $as_echo_n "(cached) " >&6
25217else
25218  ntp_cv_net_snmp_version=`$PATH_NET_SNMP_CONFIG --version`
25219
25220fi
25221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_net_snmp_version" >&5
25222$as_echo "$ntp_cv_net_snmp_version" >&6; }
25223	;;
25224esac
25225
25226case "$host" in
25227 *-*-vxworks*)
25228    ac_link="$ac_link $VX_KERNEL"
25229    ;;
25230esac
25231
25232# HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
25233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
25234$as_echo_n "checking for library containing openlog... " >&6; }
25235if ${ac_cv_search_openlog+:} false; then :
25236  $as_echo_n "(cached) " >&6
25237else
25238  ac_func_search_save_LIBS=$LIBS
25239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25240/* end confdefs.h.  */
25241
25242/* Override any GCC internal prototype to avoid an error.
25243   Use char because int might match the return type of a GCC
25244   builtin and then its argument prototype would still apply.  */
25245#ifdef __cplusplus
25246extern "C"
25247#endif
25248char openlog ();
25249int
25250main ()
25251{
25252return openlog ();
25253  ;
25254  return 0;
25255}
25256_ACEOF
25257for ac_lib in '' gen syslog; do
25258  if test -z "$ac_lib"; then
25259    ac_res="none required"
25260  else
25261    ac_res=-l$ac_lib
25262    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25263  fi
25264  if ac_fn_c_try_link "$LINENO"; then :
25265  ac_cv_search_openlog=$ac_res
25266fi
25267rm -f core conftest.err conftest.$ac_objext \
25268    conftest$ac_exeext
25269  if ${ac_cv_search_openlog+:} false; then :
25270  break
25271fi
25272done
25273if ${ac_cv_search_openlog+:} false; then :
25274
25275else
25276  ac_cv_search_openlog=no
25277fi
25278rm conftest.$ac_ext
25279LIBS=$ac_func_search_save_LIBS
25280fi
25281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
25282$as_echo "$ac_cv_search_openlog" >&6; }
25283ac_res=$ac_cv_search_openlog
25284if test "$ac_res" != no; then :
25285  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25286
25287fi
25288
25289# XXX library list will be in ac_cv_search_openlog
25290
25291# LIBSECCOMP is off by default -- needs testing with all the features
25292# Please send bug reports to loganaden@gmail.com
25293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
25294$as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
25295# Check whether --enable-libseccomp was given.
25296if test "${enable_libseccomp+set}" = set; then :
25297  enableval=$enable_libseccomp; ntp_ok=$enableval
25298else
25299  ntp_ok=no
25300
25301fi
25302
25303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
25304$as_echo "$ntp_ok" >&6; }
25305case "$ntp_ok" in
25306 yes)
25307    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
25308$as_echo_n "checking for library containing seccomp_init... " >&6; }
25309if ${ac_cv_search_seccomp_init+:} false; then :
25310  $as_echo_n "(cached) " >&6
25311else
25312  ac_func_search_save_LIBS=$LIBS
25313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25314/* end confdefs.h.  */
25315
25316/* Override any GCC internal prototype to avoid an error.
25317   Use char because int might match the return type of a GCC
25318   builtin and then its argument prototype would still apply.  */
25319#ifdef __cplusplus
25320extern "C"
25321#endif
25322char seccomp_init ();
25323int
25324main ()
25325{
25326return seccomp_init ();
25327  ;
25328  return 0;
25329}
25330_ACEOF
25331for ac_lib in '' seccomp; do
25332  if test -z "$ac_lib"; then
25333    ac_res="none required"
25334  else
25335    ac_res=-l$ac_lib
25336    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25337  fi
25338  if ac_fn_c_try_link "$LINENO"; then :
25339  ac_cv_search_seccomp_init=$ac_res
25340fi
25341rm -f core conftest.err conftest.$ac_objext \
25342    conftest$ac_exeext
25343  if ${ac_cv_search_seccomp_init+:} false; then :
25344  break
25345fi
25346done
25347if ${ac_cv_search_seccomp_init+:} false; then :
25348
25349else
25350  ac_cv_search_seccomp_init=no
25351fi
25352rm conftest.$ac_ext
25353LIBS=$ac_func_search_save_LIBS
25354fi
25355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
25356$as_echo "$ac_cv_search_seccomp_init" >&6; }
25357ac_res=$ac_cv_search_seccomp_init
25358if test "$ac_res" != no; then :
25359  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25360
25361$as_echo "#define LIBSECCOMP 1" >>confdefs.h
25362
25363
25364fi
25365
25366    if test "$cross_compiling" = yes; then :
25367  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25369as_fn_error $? "cannot run test program while cross compiling
25370See \`config.log' for more details" "$LINENO" 5; }
25371else
25372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25373/* end confdefs.h.  */
25374
25375	#include <stdio.h>
25376	#include <stdlib.h>
25377	#include <errno.h>
25378	#include <sys/prctl.h>
25379	#include <linux/seccomp.h>
25380
25381	int main(void)
25382	{
25383		int ret;
25384		ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
25385		if (ret < 0) {
25386			switch (errno) {
25387			case ENOSYS:
25388				return 1;
25389			case EINVAL:
25390				return 1;
25391			default:
25392				return 1;
25393			}
25394		}
25395		ret =
25396		prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
25397		if (ret < 0) {
25398			switch (errno) {
25399			case EINVAL:
25400				return 1;
25401			case EFAULT:
25402				return 0;
25403			default:
25404				return 1;
25405		}
25406	}
25407return 1;
25408}
25409
25410
25411_ACEOF
25412if ac_fn_c_try_run "$LINENO"; then :
25413
25414$as_echo "#define KERN_SECCOMP 1" >>confdefs.h
25415
25416
25417fi
25418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25419  conftest.$ac_objext conftest.beam conftest.$ac_ext
25420fi
25421
25422    ;;
25423esac
25424
25425
25426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
25427$as_echo_n "checking for facilitynames in syslog.h... " >&6; }
25428if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
25429  $as_echo_n "(cached) " >&6
25430else
25431
25432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25433/* end confdefs.h.  */
25434
25435#define SYSLOG_NAMES
25436#include <stdlib.h>
25437#include <syslog.h>
25438
25439int
25440main ()
25441{
25442 void *fnames; fnames = facilitynames;
25443  ;
25444  return 0;
25445}
25446_ACEOF
25447if ac_fn_c_try_compile "$LINENO"; then :
25448  ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
25449else
25450  ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
25451fi
25452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25453fi
25454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
25455$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
25456case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
25457 yes)
25458
25459$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
25460
25461    ;;
25462 no)
25463    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
25464$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
25465    ;;
25466 cross)
25467    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
25468$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
25469    ;;
25470esac
25471
25472
25473
25474case "$host" in
25475 *-*-*linux*) ;;
25476 *-*-osf4*) ;;
25477 *-*-osf5*) ;;
25478 *)
25479    # HMS: Make sure we check for -lrt for clock_* before this...
25480    case "$ac_cv_search_clock_gettime" in
25481     '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
25482    esac
25483    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
25484$as_echo_n "checking for library containing sched_setscheduler... " >&6; }
25485if ${ac_cv_search_sched_setscheduler+:} false; then :
25486  $as_echo_n "(cached) " >&6
25487else
25488  ac_func_search_save_LIBS=$LIBS
25489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25490/* end confdefs.h.  */
25491
25492/* Override any GCC internal prototype to avoid an error.
25493   Use char because int might match the return type of a GCC
25494   builtin and then its argument prototype would still apply.  */
25495#ifdef __cplusplus
25496extern "C"
25497#endif
25498char sched_setscheduler ();
25499int
25500main ()
25501{
25502return sched_setscheduler ();
25503  ;
25504  return 0;
25505}
25506_ACEOF
25507for ac_lib in '' rt posix4; do
25508  if test -z "$ac_lib"; then
25509    ac_res="none required"
25510  else
25511    ac_res=-l$ac_lib
25512    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25513  fi
25514  if ac_fn_c_try_link "$LINENO"; then :
25515  ac_cv_search_sched_setscheduler=$ac_res
25516fi
25517rm -f core conftest.err conftest.$ac_objext \
25518    conftest$ac_exeext
25519  if ${ac_cv_search_sched_setscheduler+:} false; then :
25520  break
25521fi
25522done
25523if ${ac_cv_search_sched_setscheduler+:} false; then :
25524
25525else
25526  ac_cv_search_sched_setscheduler=no
25527fi
25528rm conftest.$ac_ext
25529LIBS=$ac_func_search_save_LIBS
25530fi
25531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
25532$as_echo "$ac_cv_search_sched_setscheduler" >&6; }
25533ac_res=$ac_cv_search_sched_setscheduler
25534if test "$ac_res" != no; then :
25535  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25536
25537fi
25538
25539    ;;
25540esac
25541
25542for ac_header in bstring.h
25543do :
25544  ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
25545if test "x$ac_cv_header_bstring_h" = xyes; then :
25546  cat >>confdefs.h <<_ACEOF
25547#define HAVE_BSTRING_H 1
25548_ACEOF
25549
25550fi
25551
25552done
25553
25554ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
25555if test "x$ac_cv_header_dns_sd_h" = xyes; then :
25556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
25557$as_echo_n "checking for library containing DNSServiceRegister... " >&6; }
25558if ${ac_cv_search_DNSServiceRegister+:} false; then :
25559  $as_echo_n "(cached) " >&6
25560else
25561  ac_func_search_save_LIBS=$LIBS
25562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25563/* end confdefs.h.  */
25564
25565/* Override any GCC internal prototype to avoid an error.
25566   Use char because int might match the return type of a GCC
25567   builtin and then its argument prototype would still apply.  */
25568#ifdef __cplusplus
25569extern "C"
25570#endif
25571char DNSServiceRegister ();
25572int
25573main ()
25574{
25575return DNSServiceRegister ();
25576  ;
25577  return 0;
25578}
25579_ACEOF
25580for ac_lib in '' dns_sd; do
25581  if test -z "$ac_lib"; then
25582    ac_res="none required"
25583  else
25584    ac_res=-l$ac_lib
25585    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25586  fi
25587  if ac_fn_c_try_link "$LINENO"; then :
25588  ac_cv_search_DNSServiceRegister=$ac_res
25589fi
25590rm -f core conftest.err conftest.$ac_objext \
25591    conftest$ac_exeext
25592  if ${ac_cv_search_DNSServiceRegister+:} false; then :
25593  break
25594fi
25595done
25596if ${ac_cv_search_DNSServiceRegister+:} false; then :
25597
25598else
25599  ac_cv_search_DNSServiceRegister=no
25600fi
25601rm conftest.$ac_ext
25602LIBS=$ac_func_search_save_LIBS
25603fi
25604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
25605$as_echo "$ac_cv_search_DNSServiceRegister" >&6; }
25606ac_res=$ac_cv_search_DNSServiceRegister
25607if test "$ac_res" != no; then :
25608  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25609
25610$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
25611
25612
25613fi
25614
25615
25616fi
25617
25618
25619for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h
25620do :
25621  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25622ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25623if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25624  cat >>confdefs.h <<_ACEOF
25625#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25626_ACEOF
25627
25628fi
25629
25630done
25631
25632
25633for ac_header in memory.h netdb.h poll.h
25634do :
25635  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25636ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25637if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25638  cat >>confdefs.h <<_ACEOF
25639#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25640_ACEOF
25641
25642fi
25643
25644done
25645
25646for ac_header in sgtty.h stdatomic.h
25647do :
25648  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25649ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25650if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25651  cat >>confdefs.h <<_ACEOF
25652#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25653_ACEOF
25654
25655fi
25656
25657done
25658
25659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
25660$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
25661if ${ac_cv_header_stdbool_h+:} false; then :
25662  $as_echo_n "(cached) " >&6
25663else
25664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25665/* end confdefs.h.  */
25666
25667             #include <stdbool.h>
25668             #ifndef bool
25669              "error: bool is not defined"
25670             #endif
25671             #ifndef false
25672              "error: false is not defined"
25673             #endif
25674             #if false
25675              "error: false is not 0"
25676             #endif
25677             #ifndef true
25678              "error: true is not defined"
25679             #endif
25680             #if true != 1
25681              "error: true is not 1"
25682             #endif
25683             #ifndef __bool_true_false_are_defined
25684              "error: __bool_true_false_are_defined is not defined"
25685             #endif
25686
25687             struct s { _Bool s: 1; _Bool t; } s;
25688
25689             char a[true == 1 ? 1 : -1];
25690             char b[false == 0 ? 1 : -1];
25691             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
25692             char d[(bool) 0.5 == true ? 1 : -1];
25693             /* See body of main program for 'e'.  */
25694             char f[(_Bool) 0.0 == false ? 1 : -1];
25695             char g[true];
25696             char h[sizeof (_Bool)];
25697             char i[sizeof s.t];
25698             enum { j = false, k = true, l = false * true, m = true * 256 };
25699             /* The following fails for
25700                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
25701             _Bool n[m];
25702             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
25703             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
25704             /* Catch a bug in an HP-UX C compiler.  See
25705                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
25706                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
25707              */
25708             _Bool q = true;
25709             _Bool *pq = &q;
25710
25711int
25712main ()
25713{
25714
25715             bool e = &s;
25716             *pq |= q;
25717             *pq |= ! q;
25718             /* Refer to every declared value, to avoid compiler optimizations.  */
25719             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
25720                     + !m + !n + !o + !p + !q + !pq);
25721
25722  ;
25723  return 0;
25724}
25725_ACEOF
25726if ac_fn_c_try_compile "$LINENO"; then :
25727  ac_cv_header_stdbool_h=yes
25728else
25729  ac_cv_header_stdbool_h=no
25730fi
25731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25732fi
25733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
25734$as_echo "$ac_cv_header_stdbool_h" >&6; }
25735   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
25736if test "x$ac_cv_type__Bool" = xyes; then :
25737
25738cat >>confdefs.h <<_ACEOF
25739#define HAVE__BOOL 1
25740_ACEOF
25741
25742
25743fi
25744
25745
25746if test $ac_cv_header_stdbool_h = yes; then
25747
25748$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
25749
25750fi
25751
25752for ac_header in stdlib.h string.h termio.h
25753do :
25754  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25755ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25756if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25757  cat >>confdefs.h <<_ACEOF
25758#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25759_ACEOF
25760
25761fi
25762
25763done
25764
25765for ac_header in termios.h timepps.h timex.h unistd.h
25766do :
25767  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25768ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25769if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25770  cat >>confdefs.h <<_ACEOF
25771#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25772_ACEOF
25773
25774fi
25775
25776done
25777
25778
25779case "$host" in
25780 *-*-aix*)
25781    for ac_header in utmpx.h
25782do :
25783  ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
25784if test "x$ac_cv_header_utmpx_h" = xyes; then :
25785  cat >>confdefs.h <<_ACEOF
25786#define HAVE_UTMPX_H 1
25787_ACEOF
25788
25789fi
25790
25791done
25792
25793    case "$ac_cv_header_utmpx_h" in
25794     yes)
25795	;;
25796     *)
25797	for ac_header in utmp.h
25798do :
25799  ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
25800if test "x$ac_cv_header_utmp_h" = xyes; then :
25801  cat >>confdefs.h <<_ACEOF
25802#define HAVE_UTMP_H 1
25803_ACEOF
25804
25805fi
25806
25807done
25808
25809	;;
25810    esac
25811    ;;
25812 *)
25813    for ac_header in utmp.h utmpx.h
25814do :
25815  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25816ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25817if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25818  cat >>confdefs.h <<_ACEOF
25819#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25820_ACEOF
25821
25822fi
25823
25824done
25825
25826    ;;
25827esac
25828
25829#
25830# On Suns only (so far) getpass() truncates the typed password to 8
25831# characters, but getpassphrase() allows up to 257.  Most systems'
25832# getpass() does not truncate, at least not so as to affect ntpq and
25833# ntpdc password prompts.
25834#
25835# So check for getpassphrase(), but only on Sun operating systems.
25836#
25837case "$host" in
25838 *-*-sunos*|*-*-solaris*)
25839    for ac_func in getpassphrase
25840do :
25841  ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
25842if test "x$ac_cv_func_getpassphrase" = xyes; then :
25843  cat >>confdefs.h <<_ACEOF
25844#define HAVE_GETPASSPHRASE 1
25845_ACEOF
25846
25847fi
25848done
25849
25850esac
25851
25852
25853for ac_header in net/if6.h
25854do :
25855  ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
25856if test "x$ac_cv_header_net_if6_h" = xyes; then :
25857  cat >>confdefs.h <<_ACEOF
25858#define HAVE_NET_IF6_H 1
25859_ACEOF
25860
25861fi
25862
25863done
25864
25865for ac_header in net/route.h
25866do :
25867  ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
25868    #include <sys/types.h>
25869    #include <sys/socket.h>
25870    #include <net/if.h>
25871
25872"
25873if test "x$ac_cv_header_net_route_h" = xyes; then :
25874  cat >>confdefs.h <<_ACEOF
25875#define HAVE_NET_ROUTE_H 1
25876_ACEOF
25877
25878fi
25879
25880done
25881
25882
25883for ac_header in netinfo/ni.h
25884do :
25885  ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
25886if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
25887  cat >>confdefs.h <<_ACEOF
25888#define HAVE_NETINFO_NI_H 1
25889_ACEOF
25890
25891fi
25892
25893done
25894
25895case "$ac_cv_header_netinfo_ni_h" in
25896 yes)
25897
25898$as_echo "#define HAVE_NETINFO 1" >>confdefs.h
25899
25900esac
25901for ac_header in sun/audioio.h sys/audioio.h sys/file.h
25902do :
25903  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25904ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25905if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25906  cat >>confdefs.h <<_ACEOF
25907#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25908_ACEOF
25909
25910fi
25911
25912done
25913
25914case "$host" in
25915 *-*-sunos4*)
25916    ;;
25917 *)
25918    for ac_header in sys/ioctl.h
25919do :
25920  ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
25921if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
25922  cat >>confdefs.h <<_ACEOF
25923#define HAVE_SYS_IOCTL_H 1
25924_ACEOF
25925
25926fi
25927
25928done
25929
25930    ;;
25931esac
25932for ac_header in sys/ipc.h sys/lock.h sys/mman.h
25933do :
25934  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25935ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25936if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25937  cat >>confdefs.h <<_ACEOF
25938#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25939_ACEOF
25940
25941fi
25942
25943done
25944
25945# HMS: Check sys/proc.h and sys/resource.h after some others
25946for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h
25947do :
25948  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25949ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25950if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25951  cat >>confdefs.h <<_ACEOF
25952#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25953_ACEOF
25954
25955fi
25956
25957done
25958
25959case "$ac_cv_header_sched_h" in
25960 yes)
25961    ;;
25962 *)
25963    for ac_header in sys/sched.h
25964do :
25965  ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
25966if test "x$ac_cv_header_sys_sched_h" = xyes; then :
25967  cat >>confdefs.h <<_ACEOF
25968#define HAVE_SYS_SCHED_H 1
25969_ACEOF
25970
25971fi
25972
25973done
25974
25975    ;;
25976esac
25977# HMS: Check sys/shm.h after some others
25978for ac_header in sys/select.h sys/signal.h sys/sockio.h
25979do :
25980  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25981ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25982if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25983  cat >>confdefs.h <<_ACEOF
25984#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25985_ACEOF
25986
25987fi
25988
25989done
25990
25991# HMS: Checked sys/socket.h earlier
25992case "$host" in
25993 *-*-netbsd*)
25994    ;;
25995 *)
25996    for ac_header in machine/soundcard.h sys/soundcard.h
25997do :
25998  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25999ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26000if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26001  cat >>confdefs.h <<_ACEOF
26002#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26003_ACEOF
26004
26005fi
26006
26007done
26008
26009    ;;
26010esac
26011for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h
26012do :
26013  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26014ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26015if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26016  cat >>confdefs.h <<_ACEOF
26017#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26018_ACEOF
26019
26020fi
26021
26022done
26023
26024for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h
26025do :
26026  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26027ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26028if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26029  cat >>confdefs.h <<_ACEOF
26030#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26031_ACEOF
26032
26033fi
26034
26035done
26036
26037case "$host" in
26038*-convex-*)
26039    for ac_header in /sys/sync/queue.h /sys/sync/sema.h
26040do :
26041  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26042ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26043if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26044  cat >>confdefs.h <<_ACEOF
26045#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26046_ACEOF
26047
26048fi
26049
26050done
26051
26052    ;;
26053*-*-bsdi*)
26054    for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
26055do :
26056  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26057ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26058if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26059  cat >>confdefs.h <<_ACEOF
26060#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26061_ACEOF
26062
26063fi
26064
26065done
26066
26067    ;;
26068esac
26069
26070case "$ac_cv_header_stdatomic_h" in
26071 yes)
26072	for ac_func in atomic_thread_fence
26073do :
26074  ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence"
26075if test "x$ac_cv_func_atomic_thread_fence" = xyes; then :
26076  cat >>confdefs.h <<_ACEOF
26077#define HAVE_ATOMIC_THREAD_FENCE 1
26078_ACEOF
26079
26080fi
26081done
26082
26083	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5
26084$as_echo_n "checking for atomic_thread_fence()... " >&6; }
26085if ${ntp_cv_func_atomic_thread_fence+:} false; then :
26086  $as_echo_n "(cached) " >&6
26087else
26088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26089/* end confdefs.h.  */
26090
26091			#include <stdatomic.h>
26092
26093int
26094main ()
26095{
26096
26097			atomic_thread_fence(memory_order_seq_cst);
26098
26099
26100  ;
26101  return 0;
26102}
26103		ntp_cv_func_atomic_thread_fence=yes
26104_ACEOF
26105if ac_fn_c_try_compile "$LINENO"; then :
26106  ntp_cv_func_atomic_thread_fence=no
26107
26108fi
26109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26110
26111fi
26112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5
26113$as_echo "$ntp_cv_func_atomic_thread_fence" >&6; }
26114    ;;
26115esac
26116
26117case "$host" in
26118 *-*-solaris2.6)
26119    # Broken...
26120    ;;
26121 *)
26122    for ac_func in ntp_adjtime ntp_gettime
26123do :
26124  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26125ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26126if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26127  cat >>confdefs.h <<_ACEOF
26128#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26129_ACEOF
26130
26131fi
26132done
26133
26134    ;;
26135esac
26136
26137case "$host" in
26138 *-*-*linux*)
26139    case "$ac_cv_func_ntp_gettime" in
26140     yes)
26141	;;
26142     *)
26143	for ac_func in __ntp_gettime
26144do :
26145  ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
26146if test "x$ac_cv_func___ntp_gettime" = xyes; then :
26147  cat >>confdefs.h <<_ACEOF
26148#define HAVE___NTP_GETTIME 1
26149_ACEOF
26150
26151fi
26152done
26153
26154	case "$ac_cv_func___ntp_gettime" in
26155	 yes)
26156
26157$as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h
26158
26159
26160$as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h
26161
26162	esac
26163	;;
26164    esac
26165    for ac_func in adjtimex
26166do :
26167  ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
26168if test "x$ac_cv_func_adjtimex" = xyes; then :
26169  cat >>confdefs.h <<_ACEOF
26170#define HAVE_ADJTIMEX 1
26171_ACEOF
26172
26173fi
26174done
26175
26176    case "$ac_cv_func_adjtimex" in
26177     yes)
26178
26179$as_echo "#define ntp_adjtime adjtimex" >>confdefs.h
26180
26181
26182$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
26183
26184	have_adjtimex=1
26185	;;
26186     *)
26187	for ac_func in __adjtimex
26188do :
26189  ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
26190if test "x$ac_cv_func___adjtimex" = xyes; then :
26191  cat >>confdefs.h <<_ACEOF
26192#define HAVE___ADJTIMEX 1
26193_ACEOF
26194
26195fi
26196done
26197
26198	case "$ac_cv_func___adjtimex" in
26199	 yes)
26200
26201$as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h
26202
26203
26204$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
26205
26206
26207$as_echo "#define adjtimex __adjtimex" >>confdefs.h
26208
26209
26210$as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h
26211
26212	    have_adjtimex=1
26213	esac
26214	;;
26215    esac
26216esac
26217case "$have_adjtimex" in
26218 '')
26219    # nlist stuff is only needed for tickadj.
26220    saved_LIBS="$LIBS"
26221    LIBS=
26222    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
26223$as_echo_n "checking for library containing nlist... " >&6; }
26224if ${ac_cv_search_nlist+:} false; then :
26225  $as_echo_n "(cached) " >&6
26226else
26227  ac_func_search_save_LIBS=$LIBS
26228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26229/* end confdefs.h.  */
26230
26231/* Override any GCC internal prototype to avoid an error.
26232   Use char because int might match the return type of a GCC
26233   builtin and then its argument prototype would still apply.  */
26234#ifdef __cplusplus
26235extern "C"
26236#endif
26237char nlist ();
26238int
26239main ()
26240{
26241return nlist ();
26242  ;
26243  return 0;
26244}
26245_ACEOF
26246for ac_lib in '' elf ld mld; do
26247  if test -z "$ac_lib"; then
26248    ac_res="none required"
26249  else
26250    ac_res=-l$ac_lib
26251    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26252  fi
26253  if ac_fn_c_try_link "$LINENO"; then :
26254  ac_cv_search_nlist=$ac_res
26255fi
26256rm -f core conftest.err conftest.$ac_objext \
26257    conftest$ac_exeext
26258  if ${ac_cv_search_nlist+:} false; then :
26259  break
26260fi
26261done
26262if ${ac_cv_search_nlist+:} false; then :
26263
26264else
26265  ac_cv_search_nlist=no
26266fi
26267rm conftest.$ac_ext
26268LIBS=$ac_func_search_save_LIBS
26269fi
26270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
26271$as_echo "$ac_cv_search_nlist" >&6; }
26272ac_res=$ac_cv_search_nlist
26273if test "$ac_res" != no; then :
26274  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26275
26276fi
26277
26278    # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
26279    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
26280$as_echo_n "checking for library containing kvm_open... " >&6; }
26281if ${ac_cv_search_kvm_open+:} false; then :
26282  $as_echo_n "(cached) " >&6
26283else
26284  ac_func_search_save_LIBS=$LIBS
26285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26286/* end confdefs.h.  */
26287
26288/* Override any GCC internal prototype to avoid an error.
26289   Use char because int might match the return type of a GCC
26290   builtin and then its argument prototype would still apply.  */
26291#ifdef __cplusplus
26292extern "C"
26293#endif
26294char kvm_open ();
26295int
26296main ()
26297{
26298return kvm_open ();
26299  ;
26300  return 0;
26301}
26302_ACEOF
26303for ac_lib in '' kvm; do
26304  if test -z "$ac_lib"; then
26305    ac_res="none required"
26306  else
26307    ac_res=-l$ac_lib
26308    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26309  fi
26310  if ac_fn_c_try_link "$LINENO"; then :
26311  ac_cv_search_kvm_open=$ac_res
26312fi
26313rm -f core conftest.err conftest.$ac_objext \
26314    conftest$ac_exeext
26315  if ${ac_cv_search_kvm_open+:} false; then :
26316  break
26317fi
26318done
26319if ${ac_cv_search_kvm_open+:} false; then :
26320
26321else
26322  ac_cv_search_kvm_open=no
26323fi
26324rm conftest.$ac_ext
26325LIBS=$ac_func_search_save_LIBS
26326fi
26327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
26328$as_echo "$ac_cv_search_kvm_open" >&6; }
26329ac_res=$ac_cv_search_kvm_open
26330if test "$ac_res" != no; then :
26331  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26332
26333fi
26334	    # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
26335    for ac_header in nlist.h sys/var.h
26336do :
26337  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26338ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26339if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26340  cat >>confdefs.h <<_ACEOF
26341#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26342_ACEOF
26343
26344fi
26345
26346done
26347
26348    case "$ac_cv_header_nlist_h" in
26349     yes)
26350
26351$as_echo "#define NLIST_STRUCT 1" >>confdefs.h
26352
26353	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
26354$as_echo_n "checking for n_un in struct nlist... " >&6; }
26355if ${ntp_cv_struct_nlist_n_un+:} false; then :
26356  $as_echo_n "(cached) " >&6
26357else
26358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26359/* end confdefs.h.  */
26360
26361			#include <nlist.h>
26362
26363int
26364main ()
26365{
26366
26367			struct nlist n;
26368			n.n_un.n_name = 0;
26369
26370
26371  ;
26372  return 0;
26373}
26374		ntp_cv_struct_nlist_n_un=yes
26375_ACEOF
26376if ac_fn_c_try_compile "$LINENO"; then :
26377  ntp_cv_struct_nlist_n_un=no
26378
26379fi
26380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26381
26382fi
26383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
26384$as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
26385	case "$ntp_cv_struct_nlist_n_un" in
26386	 yes)
26387
26388$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
26389
26390	esac
26391    esac
26392
26393    LDADD_NLIST="$LIBS"
26394    LIBS="$saved_LIBS"
26395    { saved_LIBS=; unset saved_LIBS;}
26396esac
26397
26398for ac_header in sys/proc.h
26399do :
26400  ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
26401    #ifdef HAVE_SYS_TYPES_H
26402    # include <sys/types.h>
26403    #endif
26404    #ifdef HAVE_SYS_TIME_H
26405    # include <sys/time.h>
26406    #endif
26407
26408"
26409if test "x$ac_cv_header_sys_proc_h" = xyes; then :
26410  cat >>confdefs.h <<_ACEOF
26411#define HAVE_SYS_PROC_H 1
26412_ACEOF
26413
26414fi
26415
26416done
26417
26418
26419for ac_header in sys/resource.h
26420do :
26421  ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
26422    #ifdef HAVE_SYS_TIME_H
26423    # include <sys/time.h>
26424    #endif
26425
26426"
26427if test "x$ac_cv_header_sys_resource_h" = xyes; then :
26428  cat >>confdefs.h <<_ACEOF
26429#define HAVE_SYS_RESOURCE_H 1
26430_ACEOF
26431
26432fi
26433
26434done
26435
26436
26437for ac_header in sys/shm.h
26438do :
26439  ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
26440    #ifdef HAVE_SYS_TYPES_H
26441    # include <sys/types.h>
26442    #endif
26443    #ifdef HAVE_SYS_IPC_H
26444    # include <sys/ipc.h>
26445    #endif
26446
26447"
26448if test "x$ac_cv_header_sys_shm_h" = xyes; then :
26449  cat >>confdefs.h <<_ACEOF
26450#define HAVE_SYS_SHM_H 1
26451_ACEOF
26452
26453fi
26454
26455done
26456
26457
26458for ac_header in sys/timex.h
26459do :
26460  ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
26461    #ifdef HAVE_SYS_TIME_H
26462    # include <sys/time.h>
26463    #endif
26464
26465"
26466if test "x$ac_cv_header_sys_timex_h" = xyes; then :
26467  cat >>confdefs.h <<_ACEOF
26468#define HAVE_SYS_TIMEX_H 1
26469_ACEOF
26470
26471fi
26472
26473done
26474
26475
26476
26477
26478# We could do a cv check here, but is it worth it?
26479
26480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26481/* end confdefs.h.  */
26482
26483    	#include <sys/socket.h>
26484	#ifndef AF_UNSPEC
26485	#include "Bletch: AF_UNSPEC is undefined!"
26486	#endif
26487	#if AF_UNSPEC != 0
26488	#include "Bletch: AF_UNSPEC != 0"
26489	#endif
26490
26491int
26492main ()
26493{
26494{ $as_echo "$as_me:${as_lineno-$LINENO}: AF_UNSPEC is zero, as expected." >&5
26495$as_echo "$as_me: AF_UNSPEC is zero, as expected." >&6;}
26496  ;
26497  return 0;
26498}
26499
26500_ACEOF
26501if ac_fn_c_try_compile "$LINENO"; then :
26502
26503fi
26504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26505
26506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26507$as_echo_n "checking return type of signal handlers... " >&6; }
26508if ${ac_cv_type_signal+:} false; then :
26509  $as_echo_n "(cached) " >&6
26510else
26511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26512/* end confdefs.h.  */
26513#include <sys/types.h>
26514#include <signal.h>
26515
26516int
26517main ()
26518{
26519return *(signal (0, 0)) (0) == 1;
26520  ;
26521  return 0;
26522}
26523_ACEOF
26524if ac_fn_c_try_compile "$LINENO"; then :
26525  ac_cv_type_signal=int
26526else
26527  ac_cv_type_signal=void
26528fi
26529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26530fi
26531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26532$as_echo "$ac_cv_type_signal" >&6; }
26533
26534cat >>confdefs.h <<_ACEOF
26535#define RETSIGTYPE $ac_cv_type_signal
26536_ACEOF
26537
26538
26539ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26540if test "x$ac_cv_type_off_t" = xyes; then :
26541
26542else
26543
26544cat >>confdefs.h <<_ACEOF
26545#define off_t long int
26546_ACEOF
26547
26548fi
26549
26550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26551$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26552if ${ac_cv_struct_tm+:} false; then :
26553  $as_echo_n "(cached) " >&6
26554else
26555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26556/* end confdefs.h.  */
26557#include <sys/types.h>
26558#include <time.h>
26559
26560int
26561main ()
26562{
26563struct tm tm;
26564				     int *p = &tm.tm_sec;
26565				     return !p;
26566  ;
26567  return 0;
26568}
26569_ACEOF
26570if ac_fn_c_try_compile "$LINENO"; then :
26571  ac_cv_struct_tm=time.h
26572else
26573  ac_cv_struct_tm=sys/time.h
26574fi
26575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26576fi
26577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26578$as_echo "$ac_cv_struct_tm" >&6; }
26579if test $ac_cv_struct_tm = sys/time.h; then
26580
26581$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26582
26583fi
26584
26585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
26586$as_echo_n "checking for a fallback value for HZ... " >&6; }
26587if ${ntp_cv_default_hz+:} false; then :
26588  $as_echo_n "(cached) " >&6
26589else
26590
26591	ntp_cv_default_hz=100
26592	case "$host" in
26593	 alpha*-dec-osf4*|alpha*-dec-osf5*)
26594	    ntp_cv_default_hz=1024
26595	    ;;
26596	 mips-dec-ultrix4*)
26597	    ntp_cv_default_hz=256
26598	    ;;
26599	esac
26600
26601
26602fi
26603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
26604$as_echo "$ntp_cv_default_hz" >&6; }
26605
26606cat >>confdefs.h <<_ACEOF
26607#define DEFAULT_HZ $ntp_cv_default_hz
26608_ACEOF
26609
26610
26611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
26612$as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
26613if ${ntp_cv_override_hz+:} false; then :
26614  $as_echo_n "(cached) " >&6
26615else
26616
26617	ntp_cv_override_hz=no
26618	case "$host" in
26619	 alpha*-dec-osf4*|alpha*-dec-osf5*)
26620	    ntp_cv_override_hz=yes
26621	    ;;
26622	 mips-dec-ultrix4*)
26623	    ntp_cv_override_hz=yes
26624	    ;;
26625	 *-*-freebsd*)
26626	    ntp_cv_override_hz=yes
26627	    ;;
26628	 *-*-sunos4*)
26629	    ntp_cv_override_hz=yes
26630	    ;;
26631	 *-*-kfreebsd*)
26632	    ntp_cv_override_hz=yes
26633	    ;;
26634	esac
26635
26636
26637fi
26638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
26639$as_echo "$ntp_cv_override_hz" >&6; }
26640case "$ntp_cv_override_hz" in
26641 yes)
26642
26643$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
26644
26645esac
26646
26647
26648
26649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
26650$as_echo_n "checking for struct rt_msghdr... " >&6; }
26651if ${ntp_cv_struct_rt_msghdr+:} false; then :
26652  $as_echo_n "(cached) " >&6
26653else
26654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26655/* end confdefs.h.  */
26656
26657		#include <sys/types.h>
26658		#include <sys/socket.h>
26659		#include <net/if.h>
26660		#include <net/route.h>
26661
26662int
26663main ()
26664{
26665
26666		struct rt_msghdr p;
26667
26668
26669  ;
26670  return 0;
26671}
26672_ACEOF
26673if ac_fn_c_try_compile "$LINENO"; then :
26674  ntp_cv_struct_rt_msghdr=yes
26675else
26676  ntp_cv_struct_rt_msghdr=no
26677
26678fi
26679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26680
26681fi
26682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
26683$as_echo "$ntp_cv_struct_rt_msghdr" >&6; }
26684
26685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
26686$as_echo_n "checking for struct rtattr... " >&6; }
26687if ${ntp_cv_rtattr+:} false; then :
26688  $as_echo_n "(cached) " >&6
26689else
26690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26691/* end confdefs.h.  */
26692
26693		#include <stddef.h>
26694		#include <sys/socket.h>
26695		#include <linux/rtnetlink.h>
26696
26697int
26698main ()
26699{
26700
26701		struct rtattr p;
26702
26703
26704  ;
26705  return 0;
26706}
26707_ACEOF
26708if ac_fn_c_try_compile "$LINENO"; then :
26709  ntp_cv_rtattr=yes
26710else
26711  ntp_cv_rtattr=no
26712
26713fi
26714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26715
26716fi
26717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
26718$as_echo "$ntp_cv_rtattr" >&6; }
26719
26720case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
26721 *yes*)
26722
26723$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
26724
26725    case "$ntp_cv_rtattr" in
26726     yes)
26727
26728$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
26729
26730    esac
26731esac
26732
26733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
26734$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
26735if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
26736  $as_echo_n "(cached) " >&6
26737else
26738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26739/* end confdefs.h.  */
26740
26741		#include <signal.h>
26742
26743int
26744main ()
26745{
26746
26747		struct sigaction act;
26748		act.sa_sigaction = 0;
26749
26750
26751  ;
26752  return 0;
26753}
26754_ACEOF
26755if ac_fn_c_try_compile "$LINENO"; then :
26756  ntp_cv_struct_sigaction_has_sa_sigaction=yes
26757else
26758  ntp_cv_struct_sigaction_has_sa_sigaction=no
26759
26760fi
26761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26762
26763fi
26764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
26765$as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
26766case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
26767 yes)
26768
26769$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
26770
26771esac
26772
26773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
26774$as_echo_n "checking for struct ppsclockev... " >&6; }
26775if ${ntp_cv_struct_ppsclockev+:} false; then :
26776  $as_echo_n "(cached) " >&6
26777else
26778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26779/* end confdefs.h.  */
26780
26781		#ifdef HAVE_SYS_TYPES_H
26782		# include <sys/types.h>
26783		#endif
26784		#ifdef HAVE_SYS_TERMIOS_H
26785		# include <sys/termios.h>
26786		#endif
26787		#ifdef HAVE_SYS_TIME_H
26788		# include <sys/time.h>
26789		#endif
26790		#ifdef HAVE_SYS_PPSCLOCK_H
26791		# include <sys/ppsclock.h>
26792		#endif
26793
26794int
26795main ()
26796{
26797
26798		extern struct ppsclockev *pce;
26799		return pce->serial;
26800
26801
26802  ;
26803  return 0;
26804}
26805_ACEOF
26806if ac_fn_c_try_compile "$LINENO"; then :
26807  ntp_cv_struct_ppsclockev=yes
26808else
26809  ntp_cv_struct_ppsclockev=no
26810
26811fi
26812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26813
26814fi
26815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
26816$as_echo "$ntp_cv_struct_ppsclockev" >&6; }
26817case "$ntp_cv_struct_ppsclockev" in
26818 yes)
26819
26820$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
26821
26822esac
26823
26824case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
26825  *yes*)
26826    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
26827$as_echo_n "checking for struct snd_size... " >&6; }
26828if ${ntp_cv_struct_snd_size+:} false; then :
26829  $as_echo_n "(cached) " >&6
26830else
26831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26832/* end confdefs.h.  */
26833
26834		    #ifdef HAVE_MACHINE_SOUNDCARD_H
26835		    # include <machine/soundcard.h>
26836		    #endif
26837		    #ifdef HAVE_SYS_SOUNDCARD_H
26838		    # include <sys/soundcard.h>
26839		    #endif
26840
26841int
26842main ()
26843{
26844
26845		    extern struct snd_size *ss;
26846		    return ss->rec_size;
26847
26848
26849  ;
26850  return 0;
26851}
26852_ACEOF
26853if ac_fn_c_try_compile "$LINENO"; then :
26854  ntp_cv_struct_snd_size=yes
26855else
26856  ntp_cv_struct_snd_size=no
26857
26858fi
26859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26860
26861fi
26862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
26863$as_echo "$ntp_cv_struct_snd_size" >&6; }
26864    case "$ntp_cv_struct_snd_size" in
26865     yes)
26866
26867$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
26868
26869    esac
26870esac
26871
26872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
26873$as_echo_n "checking struct clockinfo for hz... " >&6; }
26874if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
26875  $as_echo_n "(cached) " >&6
26876else
26877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26878/* end confdefs.h.  */
26879
26880		#include <sys/time.h>
26881
26882int
26883main ()
26884{
26885
26886		extern struct clockinfo *pc;
26887		return pc->hz;
26888
26889
26890  ;
26891  return 0;
26892}
26893_ACEOF
26894if ac_fn_c_try_compile "$LINENO"; then :
26895  ntp_cv_struct_clockinfo_has_hz=yes
26896else
26897  ntp_cv_struct_clockinfo_has_hz=no
26898
26899fi
26900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26901
26902fi
26903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
26904$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
26905case "$ntp_cv_struct_clockinfo_has_hz" in
26906 yes)
26907
26908$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
26909
26910esac
26911
26912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
26913$as_echo_n "checking struct clockinfo for tickadj... " >&6; }
26914if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
26915  $as_echo_n "(cached) " >&6
26916else
26917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26918/* end confdefs.h.  */
26919
26920		#include <sys/time.h>
26921
26922int
26923main ()
26924{
26925
26926		extern struct clockinfo *pc;
26927		return pc->tickadj;
26928
26929
26930  ;
26931  return 0;
26932}
26933_ACEOF
26934if ac_fn_c_try_compile "$LINENO"; then :
26935  ntp_cv_struct_clockinfo_has_hz=yes
26936else
26937  ntp_cv_struct_clockinfo_has_hz=no
26938
26939fi
26940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26941
26942fi
26943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
26944$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
26945case "$ntp_cv_struct_clockinfo_has_hz" in
26946 yes)
26947
26948$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
26949
26950esac
26951
26952case "$ntp_cv_struct_ntptimeval" in
26953 yes)
26954    ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
26955	    #ifdef HAVE_SYS_TIME_H
26956	    # include <sys/time.h>
26957	    #else
26958	    # ifdef HAVE_TIME_H
26959	    #  include <time.h>
26960	    # endif
26961	    #endif
26962	    #ifdef HAVE_SYS_TIMEX_H
26963	    # include <sys/timex.h>
26964	    #else
26965	    # ifdef HAVE_TIMEX_H
26966	    #  include <timex.h>
26967	    # endif
26968	    #endif
26969
26970
26971"
26972if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :
26973
26974cat >>confdefs.h <<_ACEOF
26975#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
26976_ACEOF
26977
26978
26979fi
26980
26981esac
26982
26983####
26984
26985for ac_func in arc4random_buf
26986do :
26987  ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
26988if test "x$ac_cv_func_arc4random_buf" = xyes; then :
26989  cat >>confdefs.h <<_ACEOF
26990#define HAVE_ARC4RANDOM_BUF 1
26991_ACEOF
26992
26993fi
26994done
26995
26996
26997####
26998
26999saved_LIBS="$LIBS"
27000LIBS="$LIBS $LDADD_LIBNTP"
27001for ac_func in daemon
27002do :
27003  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
27004if test "x$ac_cv_func_daemon" = xyes; then :
27005  cat >>confdefs.h <<_ACEOF
27006#define HAVE_DAEMON 1
27007_ACEOF
27008
27009fi
27010done
27011
27012# XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
27013LIBS="$saved_LIBS"
27014{ saved_LIBS=; unset saved_LIBS;}
27015
27016for ac_func in finite
27017do :
27018  ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
27019if test "x$ac_cv_func_finite" = xyes; then :
27020  cat >>confdefs.h <<_ACEOF
27021#define HAVE_FINITE 1
27022_ACEOF
27023
27024else
27025  for ac_func in isfinite
27026do :
27027  ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
27028if test "x$ac_cv_func_isfinite" = xyes; then :
27029  cat >>confdefs.h <<_ACEOF
27030#define HAVE_ISFINITE 1
27031_ACEOF
27032
27033else
27034
27035	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
27036$as_echo_n "checking for isfinite with <math.h>... " >&6; }
27037	    _libs=$LIBS
27038	    # XXX
27039	    LIBS="$LIBS -lm"
27040	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27041/* end confdefs.h.  */
27042
27043			#include <math.h>
27044
27045int
27046main ()
27047{
27048
27049			float f = 0.0;
27050			isfinite(f);
27051
27052
27053  ;
27054  return 0;
27055}
27056_ACEOF
27057if ac_fn_c_try_link "$LINENO"; then :
27058  ans=yes
27059else
27060  ans=no
27061
27062fi
27063rm -f core conftest.err conftest.$ac_objext \
27064    conftest$ac_exeext conftest.$ac_ext
27065	    LIBS=$_libs
27066	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
27067$as_echo "$ans" >&6; }
27068	    case "$ans" in
27069	     yes)
27070		$as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
27071
27072	    esac
27073
27074
27075fi
27076done
27077
27078
27079fi
27080done
27081
27082
27083for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal
27084do :
27085  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27086ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27087if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27088  cat >>confdefs.h <<_ACEOF
27089#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27090_ACEOF
27091
27092fi
27093done
27094
27095
27096# kvm_open() is only used by tickadj.  Also see above.
27097case "$ac_cv_header_kvm_h" in
27098 yes)
27099    for ac_func in kvm_open
27100do :
27101  ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
27102if test "x$ac_cv_func_kvm_open" = xyes; then :
27103  cat >>confdefs.h <<_ACEOF
27104#define HAVE_KVM_OPEN 1
27105_ACEOF
27106
27107fi
27108done
27109
27110    ;;
27111esac
27112
27113case "$host" in
27114 *-*-sco3.2v5.0.*)
27115    # Just stubs.  Sigh.
27116    ;;
27117 *) for ac_func in mkstemp
27118do :
27119  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
27120if test "x$ac_cv_func_mkstemp" = xyes; then :
27121  cat >>confdefs.h <<_ACEOF
27122#define HAVE_MKSTEMP 1
27123_ACEOF
27124
27125fi
27126done
27127
27128    ;;
27129esac
27130for ac_func in mktime
27131do :
27132  ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
27133if test "x$ac_cv_func_mktime" = xyes; then :
27134  cat >>confdefs.h <<_ACEOF
27135#define HAVE_MKTIME 1
27136_ACEOF
27137
27138fi
27139done
27140
27141case "$host" in
27142 *-*-aix[4-9]*)
27143    # XXX only verified thru AIX6.
27144    # Just a stub.  Sigh.
27145    ;;
27146 *-*-irix[45]*)
27147    # Just a stub in "old" Irix.  Sigh.
27148    ;;
27149# In the belief that the fix for bug 1223 fixes mlockall() under linux...
27150# *-*-*linux*)
27151#    # there, but more trouble than it is worth for now (resolver problems)
27152#    ;;
27153 *-*-qnx*)
27154    # Apparently there but not working in QNX.  Sigh?
27155    ;;
27156 *-*-sco3.2v5.0.*)
27157    # Just a stub.  Sigh.
27158    ;;
27159 alpha*-dec-osf4*|alpha*-dec-osf5*)
27160    # mlockall is there, as a #define calling memlk via <sys/mman.h>
27161    # Not easy to test for - cheat.
27162    for ac_func in memlk
27163do :
27164  ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
27165if test "x$ac_cv_func_memlk" = xyes; then :
27166  cat >>confdefs.h <<_ACEOF
27167#define HAVE_MEMLK 1
27168_ACEOF
27169 ac_cv_func_mlockall=yes
27170fi
27171done
27172
27173    for ac_func in mlockall
27174do :
27175  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
27176if test "x$ac_cv_func_mlockall" = xyes; then :
27177  cat >>confdefs.h <<_ACEOF
27178#define HAVE_MLOCKALL 1
27179_ACEOF
27180
27181fi
27182done
27183
27184    ;;
27185 *) for ac_func in mlockall
27186do :
27187  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
27188if test "x$ac_cv_func_mlockall" = xyes; then :
27189  cat >>confdefs.h <<_ACEOF
27190#define HAVE_MLOCKALL 1
27191_ACEOF
27192
27193fi
27194done
27195
27196    ;;
27197esac
27198for ac_func in nice plock pututline pututxline readlink rtprio
27199do :
27200  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27201ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27202if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27203  cat >>confdefs.h <<_ACEOF
27204#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27205_ACEOF
27206
27207fi
27208done
27209
27210case "$host" in
27211 *-*-aix[4-9]*)
27212    # XXX only verified thru AIX6.
27213    # Just a stub in AIX 4.  Sigh.
27214    ;;
27215 *-*-solaris2.5*)
27216    # Just stubs in solaris2.5.  Sigh.
27217    ;;
27218 *) for ac_func in sched_setscheduler
27219do :
27220  ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
27221if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
27222  cat >>confdefs.h <<_ACEOF
27223#define HAVE_SCHED_SETSCHEDULER 1
27224_ACEOF
27225
27226fi
27227done
27228
27229    ;;
27230esac
27231for ac_func in setlinebuf setpgid setpriority setsid setvbuf
27232do :
27233  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27234ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27235if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27236  cat >>confdefs.h <<_ACEOF
27237#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27238_ACEOF
27239
27240fi
27241done
27242
27243for ac_func in strdup strerror setrlimit strchr
27244do :
27245  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27246ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27247if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27248  cat >>confdefs.h <<_ACEOF
27249#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27250_ACEOF
27251
27252fi
27253done
27254
27255case "$host" in
27256 *-*-aix[4-9]*)
27257    # XXX only verified thru AIX6.
27258    # Just stubs.  Sigh.
27259    ;;
27260 *-*-netbsd1*)
27261    # Just stubs.  Sigh.
27262    ;;
27263 *-*-netbsdelf1*)
27264    # Just stubs.  Sigh.
27265    ;;
27266 *-*-openbsd*)
27267    # Just stubs.  Sigh.
27268    ;;
27269 *)
27270    for ac_func in timer_create
27271do :
27272  ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
27273if test "x$ac_cv_func_timer_create" = xyes; then :
27274  cat >>confdefs.h <<_ACEOF
27275#define HAVE_TIMER_CREATE 1
27276_ACEOF
27277
27278fi
27279done
27280
27281    ;;
27282esac
27283
27284
27285
27286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
27287$as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; }
27288if ${ntp_cv_rlimit_memlock+:} false; then :
27289  $as_echo_n "(cached) " >&6
27290else
27291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27292/* end confdefs.h.  */
27293
27294		#ifdef HAVE_SYS_TYPES_H
27295		# include <sys/types.h>
27296		#endif
27297		#ifdef HAVE_SYS_TIME_H
27298		# include <sys/time.h>
27299		#endif
27300		#ifdef HAVE_SYS_RESOURCE_H
27301		# include <sys/resource.h>
27302		#endif
27303
27304int
27305main ()
27306{
27307
27308		getrlimit(RLIMIT_MEMLOCK, 0);
27309
27310
27311  ;
27312  return 0;
27313}
27314_ACEOF
27315if ac_fn_c_try_compile "$LINENO"; then :
27316  ntp_cv_rlimit_memlock=yes
27317else
27318  ntp_cv_rlimit_memlock=no
27319
27320fi
27321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27322
27323fi
27324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
27325$as_echo "$ntp_cv_rlimit_memlock" >&6; }
27326case "$host" in
27327 *-*-*linux*)
27328    ntp_dflt_rlimit_memlock="-1" ;;
27329 *) ntp_dflt_rlimit_memlock="32" ;;
27330esac
27331case "$ntp_cv_rlimit_memlock" in
27332 yes)
27333
27334    HAVE_RLIMIT_MEMLOCK=" memlock $ntp_dflt_rlimit_memlock"  ;;
27335esac
27336
27337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
27338$as_echo_n "checking for RLIMIT_STACK... " >&6; }
27339if ${ntp_cv_rlimit_stack+:} false; then :
27340  $as_echo_n "(cached) " >&6
27341else
27342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27343/* end confdefs.h.  */
27344
27345		#ifdef HAVE_SYS_TYPES_H
27346		# include <sys/types.h>
27347		#endif
27348		#ifdef HAVE_SYS_TIME_H
27349		# include <sys/time.h>
27350		#endif
27351		#ifdef HAVE_SYS_RESOURCE_H
27352		# include <sys/resource.h>
27353		#endif
27354
27355int
27356main ()
27357{
27358
27359		getrlimit(RLIMIT_STACK, 0);
27360
27361
27362  ;
27363  return 0;
27364}
27365_ACEOF
27366if ac_fn_c_try_compile "$LINENO"; then :
27367  ntp_cv_rlimit_stack=yes
27368else
27369  ntp_cv_rlimit_stack=no
27370
27371fi
27372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27373
27374fi
27375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
27376$as_echo "$ntp_cv_rlimit_stack" >&6; }
27377case "$ntp_cv_rlimit_stack" in
27378 yes)
27379
27380    HAVE_RLIMIT_STACK=" stacksize 50"
27381esac
27382
27383# HMS: Only if we are doing the MLOCKALL stuff...
27384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
27385$as_echo_n "checking for the default number of 4k stack pages... " >&6; }
27386
27387# Check whether --with-stack-limit was given.
27388if test "${with_stack_limit+set}" = set; then :
27389  withval=$with_stack_limit; ans=$withval
27390else
27391  ans=yes
27392
27393fi
27394
27395case "$ans" in
27396 yes | no)
27397    case "$host" in
27398     *-*-openbsd*)
27399	ans=200
27400	;;
27401     *) ans=50
27402        ;;
27403    esac
27404    ;;
27405 [1-9][0-9]*)
27406    ;;
27407 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
27408    ;;
27409esac
27410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
27411$as_echo "$ans" >&6; }
27412
27413cat >>confdefs.h <<_ACEOF
27414#define DFLT_RLIMIT_STACK $ans
27415_ACEOF
27416
27417
27418# HMS: only if we have RLIMIT_MEMLOCK
27419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
27420$as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; }
27421
27422# Check whether --with-memlock was given.
27423if test "${with_memlock+set}" = set; then :
27424  withval=$with_memlock; ans=$withval
27425else
27426  ans=yes
27427
27428fi
27429
27430case "$ans" in
27431 yes | no)
27432    ans=$ntp_dflt_rlimit_memlock
27433    ;;
27434 [1-9][0-9]*) ;;
27435 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
27436     ;;
27437esac
27438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
27439$as_echo "$ans" >&6; }
27440
27441cat >>confdefs.h <<_ACEOF
27442#define DFLT_RLIMIT_MEMLOCK $ans
27443_ACEOF
27444
27445
27446
27447
27448# some OSes prefer _exit() in forked children to exit()
27449for ac_func in _exit
27450do :
27451  ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
27452if test "x$ac_cv_func__exit" = xyes; then :
27453  cat >>confdefs.h <<_ACEOF
27454#define HAVE__EXIT 1
27455_ACEOF
27456
27457fi
27458done
27459
27460ntp_worker_child_exit=exit
27461case "$ac_cv_func__exit::$host_os" in
27462 yes::netbsd*)
27463    ntp_worker_child_exit=_exit
27464    ;;
27465 yes::openbsd*)
27466    ntp_worker_child_exit=_exit
27467    ;;
27468esac
27469
27470cat >>confdefs.h <<_ACEOF
27471#define WORKER_CHILD_EXIT $ntp_worker_child_exit
27472_ACEOF
27473
27474
27475for ac_func in umask uname updwtmp updwtmpx
27476do :
27477  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27478ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27479if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27480  cat >>confdefs.h <<_ACEOF
27481#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27482_ACEOF
27483
27484fi
27485done
27486
27487
27488###
27489
27490# http://bugs.ntp.org/737
27491case "$ac_cv_func_recvmsg" in
27492 yes)
27493    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
27494$as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
27495if ${ntp_cv_struct_iovec_help+:} false; then :
27496  $as_echo_n "(cached) " >&6
27497else
27498
27499	    compiled=no
27500	    for ntp_cv_struct_iovec_help in '0' '1'; do
27501		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27502/* end confdefs.h.  */
27503
27504			    #ifdef HAVE_SYS_TYPES_H
27505			    # include <sys/types.h>
27506			    #endif
27507			    #ifdef HAVE_SYS_SOCKET_H
27508			    # include <sys/socket.h>
27509			    #endif
27510			    #if $ntp_cv_struct_iovec_help
27511			    # include <sys/uio.h>
27512			    #endif
27513
27514int
27515main ()
27516{
27517
27518			    void foo(void) {
27519				ssize_t x;
27520				int s = 0;
27521				struct iovec iov;
27522				struct msghdr mh;
27523				int flags = 0;
27524
27525				mh.msg_iov = &iov;
27526				x = recvmsg(s, &mh, flags);
27527			    }
27528
27529
27530  ;
27531  return 0;
27532}
27533_ACEOF
27534if ac_fn_c_try_compile "$LINENO"; then :
27535  compiled=yes ; break 1
27536fi
27537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27538	    done
27539	    case "$compiled" in
27540	     no)
27541		ntp_cv_struct_iovec_help=0
27542	    esac
27543	    { compiled=; unset compiled;}
27544
27545
27546fi
27547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
27548$as_echo "$ntp_cv_struct_iovec_help" >&6; }
27549    case "$ntp_cv_struct_iovec_help" in
27550     1)
27551
27552$as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
27553
27554    esac
27555esac
27556
27557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
27558$as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
27559if ${ntp_cv_func_setpgrp_nargs+:} false; then :
27560  $as_echo_n "(cached) " >&6
27561else
27562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27563/* end confdefs.h.  */
27564
27565		#ifdef HAVE_SYS_TYPES_H
27566		# include <sys/types.h>
27567		#endif
27568		#ifdef HAVE_UNISTD_H
27569		# include <unistd.h>
27570		#endif
27571
27572int
27573main ()
27574{
27575
27576		setpgrp(0, 0);
27577
27578
27579  ;
27580  return 0;
27581}
27582_ACEOF
27583if ac_fn_c_try_compile "$LINENO"; then :
27584  ntp_cv_func_setpgrp_nargs=2
27585else
27586  ntp_cv_func_setpgrp_nargs=0
27587
27588fi
27589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27590
27591fi
27592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5
27593$as_echo "$ntp_cv_func_setpgrp_nargs" >&6; }
27594case "$ntp_cv_func_setpgrp_nargs" in
27595 0)
27596
27597$as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h
27598
27599esac
27600
27601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
27602$as_echo_n "checking if we need to declare 'errno'... " >&6; }
27603if ${ntp_cv_decl_errno+:} false; then :
27604  $as_echo_n "(cached) " >&6
27605else
27606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27607/* end confdefs.h.  */
27608
27609		#ifdef HAVE_ERRNO_H
27610		# include <errno.h>
27611		#endif
27612
27613int
27614main ()
27615{
27616
27617		errno = 0;
27618
27619
27620  ;
27621  return 0;
27622}
27623_ACEOF
27624if ac_fn_c_try_compile "$LINENO"; then :
27625  ntp_cv_decl_errno=no
27626else
27627  ntp_cv_decl_errno=yes
27628
27629fi
27630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27631
27632fi
27633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5
27634$as_echo "$ntp_cv_decl_errno" >&6; }
27635case "$ntp_cv_decl_errno" in
27636 yes)
27637
27638$as_echo "#define DECL_ERRNO 1" >>confdefs.h
27639
27640esac
27641
27642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
27643$as_echo_n "checking if we may declare 'h_errno'... " >&6; }
27644if ${ntp_cv_decl_h_errno+:} false; then :
27645  $as_echo_n "(cached) " >&6
27646else
27647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27648/* end confdefs.h.  */
27649
27650		#include <sys/types.h>
27651		#ifdef HAVE_NETINET_IN_H
27652		# include <netinet/in.h>
27653		#endif
27654		#ifdef HAVE_ARPA_NAMESER_H
27655		# include <arpa/nameser.h>
27656		#endif
27657		#ifdef HAVE_NETDB_H
27658		# include <netdb.h>
27659		#endif
27660		#ifdef HAVE_RESOLV_H
27661		# include <resolv.h>
27662		#endif
27663
27664int
27665main ()
27666{
27667
27668		extern int h_errno;
27669
27670
27671  ;
27672  return 0;
27673}
27674_ACEOF
27675if ac_fn_c_try_compile "$LINENO"; then :
27676  ntp_cv_decl_h_errno=yes
27677else
27678  ntp_cv_decl_h_errno=no
27679
27680fi
27681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27682
27683fi
27684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5
27685$as_echo "$ntp_cv_decl_h_errno" >&6; }
27686case "$ntp_cv_decl_h_errno" in
27687 yes)
27688
27689$as_echo "#define DECL_H_ERRNO 1" >>confdefs.h
27690
27691esac
27692
27693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
27694$as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
27695if ${ntp_cv_decl_syscall+:} false; then :
27696  $as_echo_n "(cached) " >&6
27697else
27698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27699/* end confdefs.h.  */
27700
27701		#ifdef HAVE_SYS_TYPES_H
27702		# include <sys/types.h>
27703		#endif
27704		#ifdef HAVE_UNISTD_H
27705		# include <unistd.h>
27706		#endif
27707
27708int
27709main ()
27710{
27711
27712		extern int syscall (int, ...);
27713
27714
27715  ;
27716  return 0;
27717}
27718	ntp_cv_decl_syscall=yes
27719_ACEOF
27720if ac_fn_c_try_compile "$LINENO"; then :
27721  ntp_cv_decl_syscall=no
27722
27723fi
27724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27725
27726fi
27727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5
27728$as_echo "$ntp_cv_decl_syscall" >&6; }
27729case "$ntp_cv_decl_syscall" in
27730 yes)
27731
27732$as_echo "#define DECL_SYSCALL 1" >>confdefs.h
27733
27734esac
27735
27736case "$host" in
27737 *-*-aix4.3.*)
27738
27739$as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
27740		# Needed for XLC under AIX 4.3.2
27741    ;;
27742 *-*-mpeix*)
27743
27744$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
27745
27746
27747$as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h
27748
27749
27750$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
27751
27752
27753$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
27754
27755
27756$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
27757
27758
27759$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
27760
27761
27762$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
27763
27764    ;;
27765 *-*-osf[45]*)
27766
27767$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
27768
27769
27770$as_echo "#define DECL_STIME_1 1" >>confdefs.h
27771
27772    ;;
27773 *-*-qnx*)
27774
27775$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
27776
27777    ;;
27778 *-*-riscos4*)
27779
27780$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
27781
27782
27783$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
27784
27785
27786$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
27787
27788
27789$as_echo "#define DECL_IPC_0 1" >>confdefs.h
27790
27791
27792$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
27793
27794
27795$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
27796
27797
27798$as_echo "#define DECL_RENAME_0 1" >>confdefs.h
27799
27800
27801$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
27802
27803
27804$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
27805
27806
27807$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
27808
27809
27810$as_echo "#define DECL_STDIO_0 1" >>confdefs.h
27811
27812
27813$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
27814
27815
27816$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
27817
27818
27819$as_echo "#define DECL_TIME_0 1" >>confdefs.h
27820
27821
27822$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
27823
27824
27825$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
27826
27827    ;;
27828 *-*-solaris2*)
27829
27830$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
27831
27832
27833$as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h
27834
27835    case "$host" in
27836     *-*-solaris2.4)
27837
27838$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
27839
27840	;;
27841    esac
27842    ;;
27843 *-*-sunos4*)
27844
27845$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
27846
27847
27848$as_echo "#define DECL_BCOPY_0 1" >>confdefs.h
27849
27850
27851$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
27852
27853
27854$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
27855
27856
27857$as_echo "#define DECL_IPC_0 1" >>confdefs.h
27858
27859
27860$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
27861
27862
27863$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
27864
27865
27866$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
27867
27868
27869$as_echo "#define DECL_RENAME_0 1" >>confdefs.h
27870
27871
27872$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
27873
27874
27875$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
27876
27877
27878$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
27879
27880
27881$as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h
27882
27883    case "`basename $ac_cv_prog_CC`" in
27884     acc*) ;;
27885     *)
27886$as_echo "#define DECL_STDIO_0 1" >>confdefs.h
27887
27888	;;
27889    esac
27890
27891$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
27892
27893
27894$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
27895
27896
27897$as_echo "#define DECL_TIME_0 1" >>confdefs.h
27898
27899
27900$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
27901
27902
27903$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
27904
27905
27906$as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h
27907
27908
27909$as_echo "#define DECL_STRERROR_0 1" >>confdefs.h
27910
27911    ;;
27912 *-*-ultrix4*)
27913
27914$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
27915
27916
27917$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
27918
27919
27920$as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h
27921
27922
27923$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
27924
27925
27926$as_echo "#define DECL_IPC_0 1" >>confdefs.h
27927
27928
27929$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
27930
27931
27932$as_echo "#define DECL_NLIST_0 1" >>confdefs.h
27933
27934
27935$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
27936
27937
27938$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
27939
27940
27941$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
27942
27943
27944$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
27945
27946
27947$as_echo "#define DECL_STIME_0 1" >>confdefs.h
27948
27949
27950$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
27951
27952
27953$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
27954
27955    ;;
27956esac
27957
27958case "$host" in
27959 *-*-sco3.2*)
27960
27961$as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
27962
27963    ;;
27964esac
27965
27966case "$host" in
27967 *-*-hpux[567]*)
27968
27969$as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
27970
27971esac
27972
27973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
27974$as_echo_n "checking if we will open the broadcast socket... " >&6; }
27975if ${ntp_cv_var_open_bcast_socket+:} false; then :
27976  $as_echo_n "(cached) " >&6
27977else
27978
27979	ans=yes
27980	case "$host" in
27981	 *-*-domainos)
27982	    ans=no
27983	esac
27984	ntp_cv_var_open_bcast_socket=$ans
27985
27986
27987fi
27988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5
27989$as_echo "$ntp_cv_var_open_bcast_socket" >&6; }
27990case "$ntp_cv_var_open_bcast_socket" in
27991 yes)
27992
27993$as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
27994
27995esac
27996
27997case "$host" in
27998 *-*-hpux*)
27999
28000$as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
28001
28002esac
28003
28004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
28005$as_echo_n "checking if process groups are set with -pid... " >&6; }
28006if ${ntp_cv_arg_setpgrp_negpid+:} false; then :
28007  $as_echo_n "(cached) " >&6
28008else
28009
28010	case "$host" in
28011	 *-*-hpux[567]*)
28012	    ans=no
28013	    ;;
28014	 *-*-hpux*)
28015	    ans=yes
28016	    ;;
28017	 *-*-*linux*)
28018	    ans=yes
28019	    ;;
28020	 *-*-sunos3*)
28021	    ans=yes
28022	    ;;
28023	 *-*-ultrix2*)
28024	    ans=yes
28025	    ;;
28026	 *)
28027	    ans=no
28028	    ;;
28029	esac
28030	ntp_cv_arg_setpgrp_negpid=$ans
28031
28032
28033fi
28034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5
28035$as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; }
28036case "$ntp_cv_arg_setpgrp_negpid" in
28037 yes)
28038
28039$as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
28040
28041esac
28042
28043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
28044$as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
28045if ${ntp_cv_func_ctty_for_f_setown+:} false; then :
28046  $as_echo_n "(cached) " >&6
28047else
28048
28049	case "$host" in
28050	 *-*-bsdi[23]*)
28051	    ans=yes
28052	    ;;
28053	 *-*-freebsd*)
28054	    ans=yes
28055	    ;;
28056	# NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
28057	# while later versions will fail a ioctl(TIOCSCTTY, 0) call in
28058	# some cases and so should not have USE_FSETOWNCTTY.  "netbsd"
28059	# in $host may be followed by "aout", "ecoff", or "elf".
28060	 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
28061	    ans=yes
28062	    ;;
28063	 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
28064	    ans=yes
28065	    ;;
28066	 *-*-openbsd*)
28067	    ans=yes
28068	    ;;
28069	 *-*-osf*)
28070	    ans=yes
28071	    ;;
28072	 *-*-darwin*)
28073	    ans=yes
28074	    ;;
28075	 *)
28076	    ans=no
28077	    ;;
28078	esac
28079	ntp_cv_func_ctty_for_f_setown=$ans
28080
28081
28082fi
28083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
28084$as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
28085case "$ntp_cv_func_ctty_for_f_setown" in
28086 yes)
28087
28088$as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h
28089
28090esac
28091
28092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
28093$as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
28094if ${ntp_cv_os_routeupdates+:} false; then :
28095  $as_echo_n "(cached) " >&6
28096else
28097
28098	case "$host" in
28099	 *-*-netbsd*)
28100	    ans=yes
28101	    ;;
28102	 *)
28103	    ans=no
28104	    ;;
28105	esac
28106	ntp_cv_os_routeupdates=$ans
28107
28108
28109fi
28110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
28111$as_echo "$ntp_cv_os_routeupdates" >&6; }
28112case "$ntp_cv_os_routeupdates" in
28113 yes)
28114
28115$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
28116
28117esac
28118
28119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
28120$as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
28121if ${ntp_cv_os_wildcardreuse+:} false; then :
28122  $as_echo_n "(cached) " >&6
28123else
28124
28125	case "$host" in
28126	 *-*-*linux*)
28127	    ans=yes
28128	    ;;
28129	 *) ans=no
28130	    ;;
28131	esac
28132	ntp_cv_os_wildcardreuse=$ans
28133
28134
28135fi
28136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
28137$as_echo "$ntp_cv_os_wildcardreuse" >&6; }
28138case "$ntp_cv_os_wildcardreuse" in
28139 yes)
28140
28141$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
28142
28143esac
28144
28145case "$host" in
28146 *-*-aix*)
28147
28148$as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
28149
28150esac
28151
28152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
28153$as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
28154if ${ntp_cv_var_min_rec_tickadj+:} false; then :
28155  $as_echo_n "(cached) " >&6
28156else
28157
28158	ans=no
28159	case "$host" in
28160	 *-*-aix*)
28161	    ans=40
28162	    ;;
28163	esac
28164	ntp_cv_var_min_rec_tickadj=$ans
28165
28166
28167fi
28168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5
28169$as_echo "$ntp_cv_var_min_rec_tickadj" >&6; }
28170case "$ntp_cv_var_min_rec_tickadj" in
28171 ''|no)
28172    ;;
28173 *)
28174
28175cat >>confdefs.h <<_ACEOF
28176#define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj
28177_ACEOF
28178
28179esac
28180
28181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
28182$as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
28183if ${ntp_cv_no_parenb_ignpar+:} false; then :
28184  $as_echo_n "(cached) " >&6
28185else
28186
28187	ans=no
28188	case "$host" in
28189	 i?86-*-*linux*)
28190	    ans=yes
28191	    ;;
28192	 mips-sgi-irix*)
28193	    ans=yes
28194	    ;;
28195	 i?86-*-freebsd[123].*)
28196	    ;;
28197	 i?86-*-freebsd*)
28198	    ans=yes
28199	    ;;
28200	 *-*-unicosmp*)
28201	    ans=yes
28202	    ;;
28203	esac
28204	ntp_cv_no_parenb_ignpar=$ans
28205
28206
28207fi
28208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5
28209$as_echo "$ntp_cv_no_parenb_ignpar" >&6; }
28210case "$ntp_cv_no_parenb_ignpar" in
28211 yes)
28212
28213$as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h
28214
28215esac
28216
28217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5
28218$as_echo_n "checking if we're including processing time debugging code... " >&6; }
28219# Check whether --enable-debug-timing was given.
28220if test "${enable_debug_timing+set}" = set; then :
28221  enableval=$enable_debug_timing; ntp_ok=$enableval
28222else
28223  ntp_ok=no
28224
28225fi
28226
28227case "$ntp_ok" in
28228 yes)
28229
28230$as_echo "#define DEBUG_TIMING 1" >>confdefs.h
28231
28232esac
28233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28234$as_echo "$ntp_ok" >&6; }
28235
28236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
28237$as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
28238# Check whether --enable-dst-minutes was given.
28239if test "${enable_dst_minutes+set}" = set; then :
28240  enableval=$enable_dst_minutes; ans=$enableval
28241else
28242  ans=60
28243
28244fi
28245
28246
28247cat >>confdefs.h <<_ACEOF
28248#define DSTMINUTES $ans
28249_ACEOF
28250
28251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28252$as_echo "$ans" >&6; }
28253
28254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
28255$as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; }
28256# Check whether --enable-ignore-dns-errors was given.
28257if test "${enable_ignore_dns_errors+set}" = set; then :
28258  enableval=$enable_ignore_dns_errors; ans=$enableval
28259else
28260  ans=no
28261
28262fi
28263
28264case "$ans" in
28265 yes)
28266
28267$as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
28268
28269esac
28270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28271$as_echo "$ans" >&6; }
28272
28273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
28274$as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
28275if ${ntp_cv_var_ntp_syscalls+:} false; then :
28276  $as_echo_n "(cached) " >&6
28277else
28278
28279	ntp_cv_var_ntp_syscalls=no
28280	case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
28281	 yesyes*)
28282	    ntp_cv_var_ntp_syscalls=libc
28283	    ;;
28284	 *yes)
28285	    ntp_cv_var_ntp_syscalls=inline
28286	    ;;
28287	 *)
28288	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28289/* end confdefs.h.  */
28290
28291			#include <sys/syscall.h>
28292			#if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
28293			# error
28294			#endif
28295
28296_ACEOF
28297if ac_fn_c_try_cpp "$LINENO"; then :
28298  ntp_cv_var_ntp_syscalls=kernel
28299
28300fi
28301rm -f conftest.err conftest.i conftest.$ac_ext
28302	    ;;
28303	 esac
28304
28305
28306fi
28307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5
28308$as_echo "$ntp_cv_var_ntp_syscalls" >&6; }
28309case "$ntp_cv_var_ntp_syscalls" in
28310 libc)
28311
28312$as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
28313
28314    ;;
28315 kernel)
28316
28317$as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h
28318
28319    ;;
28320esac
28321
28322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
28323$as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
28324if ${ntp_cv_var_sta_fll+:} false; then :
28325  $as_echo_n "(cached) " >&6
28326else
28327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28328/* end confdefs.h.  */
28329
28330		#include <sys/timex.h>
28331		#ifndef STA_FLL
28332		# error
28333		#endif
28334
28335_ACEOF
28336if ac_fn_c_try_cpp "$LINENO"; then :
28337  ntp_cv_var_sta_fll=yes
28338else
28339  ntp_cv_var_sta_fll=no
28340
28341fi
28342rm -f conftest.err conftest.i conftest.$ac_ext
28343
28344fi
28345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5
28346$as_echo "$ntp_cv_var_sta_fll" >&6; }
28347
28348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
28349$as_echo_n "checking if we have kernel PLL support... " >&6; }
28350if ${ntp_cv_var_kernel_pll+:} false; then :
28351  $as_echo_n "(cached) " >&6
28352else
28353  	case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in
28354	 *no*)
28355	    ntp_cv_var_kernel_pll=no
28356	    ;;
28357	 *) ntp_cv_var_kernel_pll=yes
28358	    ;;
28359	esac
28360
28361
28362fi
28363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5
28364$as_echo "$ntp_cv_var_kernel_pll" >&6; }
28365case "$ntp_cv_var_kernel_pll" in
28366 yes)
28367
28368$as_echo "#define KERNEL_PLL 1" >>confdefs.h
28369
28370esac
28371
28372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
28373$as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
28374if ${ntp_cv_size_returned_in_buffer+:} false; then :
28375  $as_echo_n "(cached) " >&6
28376else
28377
28378	ans=no
28379	case "$host" in
28380	 *-fujitsu-uxp*)
28381	    ans=yes
28382	    ;;
28383	 *-ncr-sysv4*)
28384	    ans=yes
28385	    ;;
28386	 *-univel-sysv*)
28387	    ans=yes
28388	    ;;
28389	esac
28390	ntp_cv_size_returned_in_buffer=$ans
28391
28392
28393fi
28394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5
28395$as_echo "$ntp_cv_size_returned_in_buffer" >&6; }
28396case "$ntp_cv_size_returned_in_buffer" in
28397 yes)
28398
28399$as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
28400
28401esac
28402
28403# Check for ioctls TIOCGPPSEV
28404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5
28405$as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; }
28406case "$ac_cv_header_termios_h" in
28407 yes)
28408    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28409/* end confdefs.h.  */
28410
28411	    #include <termios.h>
28412	    #ifndef TIOCGPPSEV
28413	    # error
28414	    #endif
28415
28416_ACEOF
28417if ac_fn_c_try_cpp "$LINENO"; then :
28418  ntp_ok=yes
28419else
28420  ntp_ok=no
28421
28422fi
28423rm -f conftest.err conftest.i conftest.$ac_ext
28424    ;;
28425 *)
28426    ntp_ok=no
28427    ;;
28428esac
28429case "$ntp_ok" in
28430 yes)
28431
28432$as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
28433
28434esac
28435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28436$as_echo "$ntp_ok" >&6; }
28437
28438# Check for ioctls TIOCSPPS
28439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5
28440$as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; }
28441case "$ac_cv_header_termios_h" in
28442 yes)
28443    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28444/* end confdefs.h.  */
28445
28446	    #include <termios.h>
28447	    #ifndef TIOCSPPS
28448	    # error
28449	    #endif
28450
28451_ACEOF
28452if ac_fn_c_try_cpp "$LINENO"; then :
28453  ntp_ok=yes
28454else
28455  ntp_ok=no
28456
28457fi
28458rm -f conftest.err conftest.i conftest.$ac_ext
28459    ;;
28460 *)
28461    ntp_ok=no
28462    ;;
28463esac
28464case "$ntp_ok" in
28465 yes)
28466
28467$as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h
28468
28469esac
28470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28471$as_echo "$ntp_ok" >&6; }
28472
28473# Check for ioctls CIOGETEV
28474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5
28475$as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; }
28476case "$ac_cv_header_sys_ppsclock_h" in
28477 yes)
28478    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28479/* end confdefs.h.  */
28480
28481	    #include <sys/ppsclock.h>
28482	    #ifndef CIOGETEV
28483	    # error
28484	    #endif
28485
28486_ACEOF
28487if ac_fn_c_try_cpp "$LINENO"; then :
28488  ntp_ok=yes
28489else
28490  ntp_ok=no
28491
28492fi
28493rm -f conftest.err conftest.i conftest.$ac_ext
28494    ;;
28495 *)
28496    ntp_ok=no
28497    ;;
28498esac
28499case "$ntp_ok" in
28500 yes)
28501
28502$as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h
28503
28504esac
28505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28506$as_echo "$ntp_ok" >&6; }
28507
28508# ATOM/PPSAPI stuff.
28509
28510ntp_atom_ok=yes
28511
28512# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
28513
28514# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
28515# The PPSAPI needs struct timespec.
28516# The PPSAPI also needs a timepps header.
28517
28518case "$ac_cv_c_inline$ntp_cv_struct_timespec" in
28519 inlineyes)
28520    case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
28521     *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
28522
28523$as_echo "#define HAVE_PPSAPI 1" >>confdefs.h
28524
28525	ntp_jupiter_ok=yes
28526	ntp_oncore_ok=yes
28527	ntp_parse_ok=yes
28528	ntp_ripe_ncc_ok=yes
28529	;;
28530    esac
28531    ;;
28532esac
28533
28534# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
28535ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
28536if test "x$ac_cv_header_linux_serial_h" = xyes; then :
28537
28538fi
28539
28540
28541case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
28542  yesyes)
28543    { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
28544$as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
28545    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28546/* end confdefs.h.  */
28547
28548	    #include <sys/time.h>
28549	    typedef int u_int;
28550	    #include <sys/ppsclock.h>
28551	    #include <linux/serial.h>
28552
28553	    #ifndef TIOCGSERIAL
28554	    # error
28555	    #endif
28556	    #ifndef TIOCSSERIAL
28557	    # error
28558	    #endif
28559	    #ifndef ASYNC_PPS_CD_POS
28560	    # error
28561	    #endif
28562	    #ifndef ASYNC_PPS_CD_NEG
28563	    # error
28564	    #endif
28565	    #ifndef CIOGETEV
28566	    # error
28567	    #endif
28568
28569_ACEOF
28570if ac_fn_c_try_cpp "$LINENO"; then :
28571  ntp_ok=yes
28572else
28573  ntp_ok=no
28574
28575fi
28576rm -f conftest.err conftest.i conftest.$ac_ext
28577    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28578$as_echo "$ntp_ok" >&6; }
28579    ;;
28580  *)
28581    ntp_ok=no
28582    ;;
28583esac
28584case "$ntp_ok" in
28585 yes)
28586
28587$as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
28588
28589esac
28590
28591# Check for SHMEM_STATUS support
28592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
28593$as_echo_n "checking SHMEM_STATUS support... " >&6; }
28594case "$ac_cv_header_sys_mman_h" in
28595 yes)
28596    ntp_ok=yes
28597    ;;
28598 *)
28599    ntp_ok=no
28600    ;;
28601esac
28602case "$ntp_ok" in
28603 yes)
28604
28605$as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h
28606
28607esac
28608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28609$as_echo "$ntp_ok" >&6; }
28610
28611ntp_refclock=no
28612
28613# HPUX only, and by explicit request
28614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
28615$as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
28616# Check whether --enable-BANCOMM was given.
28617if test "${enable_BANCOMM+set}" = set; then :
28618  enableval=$enable_BANCOMM; ntp_ok=$enableval
28619else
28620  ntp_ok=no
28621
28622fi
28623
28624case "$ntp_ok" in
28625 yes)
28626    ntp_refclock=yes
28627
28628$as_echo "#define CLOCK_BANC 1" >>confdefs.h
28629
28630    ;;
28631esac
28632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28633$as_echo "$ntp_ok" >&6; }
28634case "$ntp_ok$host" in
28635 yes*-*-hpux*) ;;
28636 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
28637$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
28638esac
28639
28640#HPUX only, and only by explicit request
28641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
28642$as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
28643# Check whether --enable-GPSVME was given.
28644if test "${enable_GPSVME+set}" = set; then :
28645  enableval=$enable_GPSVME; ntp_ok=$enableval
28646else
28647  ntp_ok=no
28648
28649fi
28650
28651case "$ntp_ok" in
28652 yes)
28653    ntp_refclock=yes
28654
28655$as_echo "#define CLOCK_GPSVME 1" >>confdefs.h
28656
28657    ;;
28658esac
28659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28660$as_echo "$ntp_ok" >&6; }
28661case "$ntp_ok$host" in
28662 yes*-*-hpux*) ;;
28663 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
28664$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
28665esac
28666
28667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
28668$as_echo_n "checking for PCL720 clock support... " >&6; }
28669case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
28670 yesyesyes)
28671
28672$as_echo "#define CLOCK_PPS720 1" >>confdefs.h
28673
28674    ans=yes
28675    ;;
28676 *)
28677    ans=no
28678    ;;
28679esac
28680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28681$as_echo "$ans" >&6; }
28682
28683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
28684$as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
28685# Check whether --enable-all-clocks was given.
28686if test "${enable_all_clocks+set}" = set; then :
28687  enableval=$enable_all_clocks; ntp_eac=$enableval
28688else
28689  ntp_eac=yes
28690
28691fi
28692
28693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
28694$as_echo "$ntp_eac" >&6; }
28695
28696# HMS: Should we also require ntp_parse_ok?
28697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
28698$as_echo_n "checking if we have support for PARSE clocks... " >&6; }
28699case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
28700 yes*yes*)
28701    ntp_canparse=yes
28702    ;;
28703 *) ntp_canparse=no
28704    ;;
28705esac
28706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
28707$as_echo "$ntp_canparse" >&6; }
28708
28709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
28710$as_echo_n "checking if we have support for audio clocks... " >&6; }
28711case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
28712 *yes*)
28713    ntp_canaudio=yes
28714
28715$as_echo "#define HAVE_AUDIO /**/" >>confdefs.h
28716
28717    ;;
28718 *) ntp_canaudio=no ;;
28719esac
28720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
28721$as_echo "$ntp_canaudio" >&6; }
28722
28723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
28724$as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
28725case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
28726 yesyes)
28727    ntp_canshm=yes
28728    ;;
28729 *) ntp_canshm=no ;;
28730esac
28731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
28732$as_echo "$ntp_canshm" >&6; }
28733
28734# Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade)
28735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5
28736$as_echo_n "checking for termios modem control... " >&6; }
28737if ${ntp_cv_modem_control+:} false; then :
28738  $as_echo_n "(cached) " >&6
28739else
28740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28741/* end confdefs.h.  */
28742
28743		#ifdef HAVE_UNISTD_H
28744		# include <unistd.h>
28745		#endif
28746		#ifdef HAVE_TERMIOS_H
28747		# include <termios.h>
28748		#endif
28749		#ifdef HAVE_SYS_IOCTL_H
28750		# include <sys/ioctl.h>
28751		#endif
28752
28753int
28754main ()
28755{
28756
28757		int	dtr = TIOCM_DTR;
28758
28759		ioctl(1, TIOCMBIS, (char *)&dtr);
28760
28761
28762  ;
28763  return 0;
28764}
28765_ACEOF
28766if ac_fn_c_try_compile "$LINENO"; then :
28767  ntp_cv_modem_control=yes
28768else
28769  ntp_cv_modem_control=no
28770
28771fi
28772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28773
28774fi
28775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5
28776$as_echo "$ntp_cv_modem_control" >&6; }
28777case "$ntp_eac::$ntp_cv_modem_control" in
28778 yes::yes)
28779    ntp_enable_all_modem_control_clocks=yes
28780    ;;
28781 *)
28782    ntp_enable_all_modem_control_clocks=no
28783    ;;
28784esac
28785
28786# Requires modem control
28787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
28788$as_echo_n "checking ACTS modem service... " >&6; }
28789# Check whether --enable-ACTS was given.
28790if test "${enable_ACTS+set}" = set; then :
28791  enableval=$enable_ACTS; ntp_ok=$enableval
28792else
28793  ntp_ok=$ntp_enable_all_modem_control_clocks
28794
28795fi
28796
28797case "$ntp_ok" in
28798 yes)
28799    ntp_refclock=yes
28800
28801$as_echo "#define CLOCK_ACTS 1" >>confdefs.h
28802
28803    ;;
28804esac
28805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28806$as_echo "$ntp_ok" >&6; }
28807
28808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
28809$as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
28810# Check whether --enable-ARBITER was given.
28811if test "${enable_ARBITER+set}" = set; then :
28812  enableval=$enable_ARBITER; ntp_ok=$enableval
28813else
28814  ntp_ok=$ntp_eac
28815
28816fi
28817
28818case "$ntp_ok" in
28819 yes)
28820    ntp_refclock=yes
28821
28822$as_echo "#define CLOCK_ARBITER 1" >>confdefs.h
28823
28824    ;;
28825esac
28826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28827$as_echo "$ntp_ok" >&6; }
28828
28829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
28830$as_echo_n "checking Arcron MSF receiver... " >&6; }
28831# Check whether --enable-ARCRON_MSF was given.
28832if test "${enable_ARCRON_MSF+set}" = set; then :
28833  enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
28834else
28835  ntp_ok=$ntp_eac
28836
28837fi
28838
28839case "$ntp_ok" in
28840 yes)
28841    ntp_refclock=yes
28842
28843$as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
28844
28845    ;;
28846esac
28847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28848$as_echo "$ntp_ok" >&6; }
28849
28850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
28851$as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
28852# Check whether --enable-AS2201 was given.
28853if test "${enable_AS2201+set}" = set; then :
28854  enableval=$enable_AS2201; ntp_ok=$enableval
28855else
28856  ntp_ok=$ntp_eac
28857
28858fi
28859
28860case "$ntp_ok" in
28861 yes)
28862    ntp_refclock=yes
28863
28864$as_echo "#define CLOCK_AS2201 1" >>confdefs.h
28865
28866    ;;
28867esac
28868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28869$as_echo "$ntp_ok" >&6; }
28870
28871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
28872$as_echo_n "checking ATOM PPS interface... " >&6; }
28873# Check whether --enable-ATOM was given.
28874if test "${enable_ATOM+set}" = set; then :
28875  enableval=$enable_ATOM; ntp_ok=$enableval
28876else
28877  ntp_ok=$ntp_eac
28878
28879fi
28880
28881case "$ntp_atom_ok" in
28882 no) ntp_ok=no ;;
28883esac
28884case "$ntp_ok" in
28885 yes)
28886    ntp_refclock=yes
28887
28888$as_echo "#define CLOCK_ATOM 1" >>confdefs.h
28889
28890    ;;
28891esac
28892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28893$as_echo "$ntp_ok" >&6; }
28894
28895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
28896$as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
28897# Check whether --enable-CHRONOLOG was given.
28898if test "${enable_CHRONOLOG+set}" = set; then :
28899  enableval=$enable_CHRONOLOG; ntp_ok=$enableval
28900else
28901  ntp_ok=$ntp_eac
28902
28903fi
28904
28905case "$ntp_ok" in
28906 yes)
28907    ntp_refclock=yes
28908
28909$as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h
28910
28911    ;;
28912esac
28913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28914$as_echo "$ntp_ok" >&6; }
28915
28916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
28917$as_echo_n "checking CHU modem/decoder... " >&6; }
28918# Check whether --enable-CHU was given.
28919if test "${enable_CHU+set}" = set; then :
28920  enableval=$enable_CHU; ntp_ok=$enableval
28921else
28922  ntp_ok=$ntp_eac
28923
28924fi
28925
28926case "$ntp_ok" in
28927 yes)
28928    ntp_refclock=yes
28929
28930$as_echo "#define CLOCK_CHU 1" >>confdefs.h
28931
28932    ;;
28933esac
28934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28935$as_echo "$ntp_ok" >&6; }
28936ntp_refclock_chu=$ntp_ok
28937
28938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
28939$as_echo_n "checking CHU audio/decoder... " >&6; }
28940# Check whether --enable-AUDIO-CHU was given.
28941if test "${enable_AUDIO_CHU+set}" = set; then :
28942  enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
28943else
28944
28945	case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in
28946	 *no*)	ntp_ok=no  ;;
28947	 *)	ntp_ok=yes ;;
28948	esac
28949
28950
28951fi
28952
28953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28954$as_echo "$ntp_ok" >&6; }
28955# We used to check for sunos/solaris target...
28956case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in
28957 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
28958$as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;}
28959esac
28960
28961# Not under HP-UX
28962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
28963$as_echo_n "checking Datum Programmable Time System... " >&6; }
28964# Check whether --enable-DATUM was given.
28965if test "${enable_DATUM+set}" = set; then :
28966  enableval=$enable_DATUM; ntp_ok=$enableval
28967else
28968
28969	case "$ac_cv_header_termios_h" in
28970	 yes)
28971	    ntp_ok=$ntp_eac
28972	    ;;
28973	 *) ntp_ok=no
28974	    ;;
28975	esac
28976
28977
28978fi
28979
28980case "$ntp_ok" in
28981 yes)
28982    ntp_refclock=yes
28983
28984$as_echo "#define CLOCK_DATUM 1" >>confdefs.h
28985
28986    ;;
28987esac
28988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28989$as_echo "$ntp_ok" >&6; }
28990
28991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
28992$as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
28993# Check whether --enable-DUMBCLOCK was given.
28994if test "${enable_DUMBCLOCK+set}" = set; then :
28995  enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
28996else
28997  ntp_ok=$ntp_eac
28998
28999fi
29000
29001case "$ntp_ok" in
29002 yes)
29003    ntp_refclock=yes
29004
29005$as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
29006
29007    ;;
29008esac
29009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29010$as_echo "$ntp_ok" >&6; }
29011
29012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
29013$as_echo_n "checking Forum Graphic GPS... " >&6; }
29014# Check whether --enable-FG was given.
29015if test "${enable_FG+set}" = set; then :
29016  enableval=$enable_FG; ntp_ok=$enableval
29017else
29018  ntp_ok=$ntp_eac
29019
29020fi
29021
29022case "$ntp_ok" in
29023 yes)
29024    ntp_refclock=yes
29025
29026$as_echo "#define CLOCK_FG 1" >>confdefs.h
29027
29028    ;;
29029esac
29030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29031$as_echo "$ntp_ok" >&6; }
29032
29033# Requires modem control
29034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
29035$as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
29036# Check whether --enable-HEATH was given.
29037if test "${enable_HEATH+set}" = set; then :
29038  enableval=$enable_HEATH; ntp_ok=$enableval
29039else
29040  ntp_ok=$ntp_enable_all_modem_control_clocks
29041
29042fi
29043
29044case "$ntp_ok" in
29045 yes)
29046    ntp_refclock=yes
29047
29048$as_echo "#define CLOCK_HEATH 1" >>confdefs.h
29049
29050    ;;
29051esac
29052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29053$as_echo "$ntp_ok" >&6; }
29054
29055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
29056$as_echo_n "checking for hopf serial clock device... " >&6; }
29057# Check whether --enable-HOPFSERIAL was given.
29058if test "${enable_HOPFSERIAL+set}" = set; then :
29059  enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
29060else
29061  ntp_ok=$ntp_eac
29062
29063fi
29064
29065case "$ntp_ok" in
29066 yes)
29067    ntp_refclock=yes
29068
29069$as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
29070
29071    ;;
29072esac
29073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29074$as_echo "$ntp_ok" >&6; }
29075
29076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
29077$as_echo_n "checking for hopf PCI clock 6039... " >&6; }
29078# Check whether --enable-HOPFPCI was given.
29079if test "${enable_HOPFPCI+set}" = set; then :
29080  enableval=$enable_HOPFPCI; ntp_ok=$enableval
29081else
29082  ntp_ok=$ntp_eac
29083
29084fi
29085
29086case "$ntp_ok" in
29087 yes)
29088    ntp_refclock=yes
29089
29090$as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h
29091
29092    ;;
29093esac
29094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29095$as_echo "$ntp_ok" >&6; }
29096
29097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
29098$as_echo_n "checking HP 58503A GPS receiver... " >&6; }
29099# Check whether --enable-HPGPS was given.
29100if test "${enable_HPGPS+set}" = set; then :
29101  enableval=$enable_HPGPS; ntp_ok=$enableval
29102else
29103  ntp_ok=$ntp_eac
29104
29105fi
29106
29107case "$ntp_ok" in
29108 yes)
29109    ntp_refclock=yes
29110
29111$as_echo "#define CLOCK_HPGPS 1" >>confdefs.h
29112
29113    ;;
29114esac
29115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29116$as_echo "$ntp_ok" >&6; }
29117
29118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
29119$as_echo_n "checking IRIG audio decoder... " >&6; }
29120# Check whether --enable-IRIG was given.
29121if test "${enable_IRIG+set}" = set; then :
29122  enableval=$enable_IRIG; ntp_ok=$enableval
29123else
29124
29125	case "$ntp_eac$ntp_canaudio" in
29126	 *no*)	ntp_ok=no  ;;
29127	 *)	ntp_ok=yes ;;
29128	esac
29129
29130
29131fi
29132
29133case "$ntp_ok" in
29134 yes)
29135    ntp_refclock=yes
29136
29137$as_echo "#define CLOCK_IRIG 1" >>confdefs.h
29138
29139    ;;
29140esac
29141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29142$as_echo "$ntp_ok" >&6; }
29143case "$ntp_ok$ntp_canaudio" in
29144 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
29145$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
29146esac
29147
29148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
29149$as_echo_n "checking for JJY receiver... " >&6; }
29150# Check whether --enable-JJY was given.
29151if test "${enable_JJY+set}" = set; then :
29152  enableval=$enable_JJY; ntp_ok=$enableval
29153else
29154  ntp_ok=$ntp_eac
29155
29156fi
29157
29158case "$ntp_ok" in
29159 yes)
29160    ntp_refclock=yes
29161
29162$as_echo "#define CLOCK_JJY 1" >>confdefs.h
29163
29164    ;;
29165esac
29166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29167$as_echo "$ntp_ok" >&6; }
29168
29169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
29170$as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
29171# Check whether --enable-JUPITER was given.
29172if test "${enable_JUPITER+set}" = set; then :
29173  enableval=$enable_JUPITER; ntp_ok=$enableval
29174else
29175  ntp_ok=$ntp_eac
29176fi
29177
29178case "$ntp_jupiter_ok" in
29179 no) ntp_ok=no ;;
29180esac
29181case "$ntp_ok" in
29182 yes)
29183    ntp_refclock=yes
29184
29185$as_echo "#define CLOCK_JUPITER 1" >>confdefs.h
29186
29187    ;;
29188esac
29189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29190$as_echo "$ntp_ok" >&6; }
29191
29192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
29193$as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
29194# Check whether --enable-LEITCH was given.
29195if test "${enable_LEITCH+set}" = set; then :
29196  enableval=$enable_LEITCH; ntp_ok=$enableval
29197else
29198  ntp_ok=$ntp_eac
29199
29200fi
29201
29202case "$ntp_ok" in
29203 yes)
29204    ntp_refclock=yes
29205
29206$as_echo "#define CLOCK_LEITCH 1" >>confdefs.h
29207
29208    ;;
29209esac
29210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29211$as_echo "$ntp_ok" >&6; }
29212
29213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
29214$as_echo_n "checking local clock reference... " >&6; }
29215# Check whether --enable-LOCAL-CLOCK was given.
29216if test "${enable_LOCAL_CLOCK+set}" = set; then :
29217  enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
29218else
29219  ntp_ok=$ntp_eac
29220
29221fi
29222
29223case "$ntp_ok" in
29224 yes)
29225    ntp_refclock=yes
29226
29227$as_echo "#define CLOCK_LOCAL 1" >>confdefs.h
29228
29229    ;;
29230esac
29231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29232$as_echo "$ntp_ok" >&6; }
29233
29234
29235# Not Ultrix
29236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
29237$as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
29238# Check whether --enable-MX4200 was given.
29239if test "${enable_MX4200+set}" = set; then :
29240  enableval=$enable_MX4200; ntp_ok=$enableval
29241else
29242
29243	case "$ac_cv_var_ppsclock" in
29244	 yes)
29245	    ntp_ok=$ntp_eac
29246	    ;;
29247	 *)
29248	    ntp_ok=no
29249	    ;;
29250	esac
29251
29252
29253fi
29254
29255case "$ntp_ok" in
29256 yes)
29257    ntp_refclock=yes
29258
29259$as_echo "#define CLOCK_MX4200 1" >>confdefs.h
29260
29261    ;;
29262esac
29263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29264$as_echo "$ntp_ok" >&6; }
29265case "$ntp_ok$host" in
29266 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
29267$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
29268esac
29269
29270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
29271$as_echo_n "checking for NeoClock4X receiver... " >&6; }
29272# Check whether --enable-NEOCLOCK4X was given.
29273if test "${enable_NEOCLOCK4X+set}" = set; then :
29274  enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
29275else
29276  ntp_ok=$ntp_eac
29277
29278fi
29279
29280case "$ntp_ok" in
29281 yes)
29282    ntp_refclock=yes
29283
29284$as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h
29285
29286    ;;
29287esac
29288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29289$as_echo "$ntp_ok" >&6; }
29290
29291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
29292$as_echo_n "checking NMEA GPS receiver... " >&6; }
29293# Check whether --enable-NMEA was given.
29294if test "${enable_NMEA+set}" = set; then :
29295  enableval=$enable_NMEA; ntp_ok=$enableval
29296else
29297  ntp_ok=$ntp_eac
29298
29299fi
29300
29301case "$ntp_ok" in
29302 yes)
29303    ntp_refclock=yes
29304
29305$as_echo "#define CLOCK_NMEA 1" >>confdefs.h
29306
29307    ;;
29308esac
29309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29310$as_echo "$ntp_ok" >&6; }
29311
29312for ac_func in strtoll
29313do :
29314  ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
29315if test "x$ac_cv_func_strtoll" = xyes; then :
29316  cat >>confdefs.h <<_ACEOF
29317#define HAVE_STRTOLL 1
29318_ACEOF
29319
29320fi
29321done
29322
29323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
29324$as_echo_n "checking for GPSD JSON receiver... " >&6; }
29325# Check whether --enable-GPSD was given.
29326if test "${enable_GPSD+set}" = set; then :
29327  enableval=$enable_GPSD; ntp_ok=$enableval
29328else
29329  case "$ac_cv_func_strtoll" in
29330     yes) ntp_ok=$ntp_eac ;;
29331     *)   ntp_ok="no" ;;
29332    esac
29333
29334fi
29335
29336case "$ntp_ok" in
29337 yes)
29338    ntp_refclock=yes
29339
29340$as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h
29341
29342    ;;
29343esac
29344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29345$as_echo "$ntp_ok" >&6; }
29346
29347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
29348$as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
29349# Check whether --enable-ONCORE was given.
29350if test "${enable_ONCORE+set}" = set; then :
29351  enableval=$enable_ONCORE; ntp_ok=$enableval
29352else
29353  ntp_ok=$ntp_eac
29354
29355fi
29356
29357case "$ntp_oncore_ok" in
29358 no) ntp_ok=no ;;
29359esac
29360case "$ntp_ok" in
29361 yes)
29362    ntp_refclock=yes
29363
29364$as_echo "#define CLOCK_ONCORE 1" >>confdefs.h
29365
29366    ;;
29367esac
29368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29369$as_echo "$ntp_ok" >&6; }
29370
29371# Requires modem control
29372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
29373$as_echo_n "checking for Palisade clock... " >&6; }
29374# Check whether --enable-PALISADE was given.
29375if test "${enable_PALISADE+set}" = set; then :
29376  enableval=$enable_PALISADE; ntp_ok=$enableval
29377else
29378  ntp_ok=$ntp_enable_all_modem_control_clocks
29379
29380fi
29381
29382case "$ntp_ok" in
29383 yes)
29384    ntp_refclock=yes
29385
29386$as_echo "#define CLOCK_PALISADE 1" >>confdefs.h
29387
29388    ;;
29389esac
29390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29391$as_echo "$ntp_ok" >&6; }
29392
29393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
29394$as_echo_n "checking Conrad parallel port radio clock... " >&6; }
29395# Check whether --enable-PCF was given.
29396if test "${enable_PCF+set}" = set; then :
29397  enableval=$enable_PCF; ntp_ok=$enableval
29398else
29399  ntp_ok=$ntp_eac
29400
29401fi
29402
29403case "$ntp_ok" in
29404 yes)
29405    ntp_refclock=yes
29406
29407$as_echo "#define CLOCK_PCF 1" >>confdefs.h
29408
29409    ;;
29410esac
29411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29412$as_echo "$ntp_ok" >&6; }
29413
29414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
29415$as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
29416# Check whether --enable-PST was given.
29417if test "${enable_PST+set}" = set; then :
29418  enableval=$enable_PST; ntp_ok=$enableval
29419else
29420  ntp_ok=$ntp_eac
29421
29422fi
29423
29424case "$ntp_ok" in
29425 yes)
29426    ntp_refclock=yes
29427
29428$as_echo "#define CLOCK_PST 1" >>confdefs.h
29429
29430    ;;
29431esac
29432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29433$as_echo "$ntp_ok" >&6; }
29434
29435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
29436$as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
29437# Check whether --enable-RIPENCC was given.
29438if test "${enable_RIPENCC+set}" = set; then :
29439  enableval=$enable_RIPENCC; ntp_ok=$enableval
29440else
29441  ntp_ok=no
29442
29443fi
29444
29445# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
29446case "$ntp_ripe_ncc_ok" in
29447 no) ntp_ok=no ;;
29448esac
29449case "$ntp_ok" in
29450 yes)
29451    ntp_refclock=yes
29452
29453$as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h
29454
29455    ;;
29456esac
29457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29458$as_echo "$ntp_ok" >&6; }
29459
29460# Danny Meyer says SHM compiles (with a few warnings) under Win32.
29461# For *IX, we need sys/ipc.h and sys/shm.h.
29462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
29463$as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
29464# Check whether --enable-SHM was given.
29465if test "${enable_SHM+set}" = set; then :
29466  enableval=$enable_SHM; ntp_ok=$enableval
29467else
29468
29469	case "$ntp_eac$ntp_canshm" in
29470	 *no*)	ntp_ok=no  ;;
29471	 *)	ntp_ok=yes ;;
29472	esac
29473
29474
29475fi
29476
29477case "$ntp_ok" in
29478 yes)
29479    ntp_refclock=yes
29480
29481$as_echo "#define CLOCK_SHM 1" >>confdefs.h
29482
29483    ;;
29484esac
29485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29486$as_echo "$ntp_ok" >&6; }
29487
29488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
29489$as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
29490# Check whether --enable-SPECTRACOM was given.
29491if test "${enable_SPECTRACOM+set}" = set; then :
29492  enableval=$enable_SPECTRACOM; ntp_ok=$enableval
29493else
29494  ntp_ok=$ntp_eac
29495
29496fi
29497
29498case "$ntp_ok" in
29499 yes)
29500    ntp_refclock=yes
29501
29502$as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h
29503
29504    ;;
29505esac
29506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29507$as_echo "$ntp_ok" >&6; }
29508
29509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
29510$as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
29511# Check whether --enable-TPRO was given.
29512if test "${enable_TPRO+set}" = set; then :
29513  enableval=$enable_TPRO; ntp_ok=$enableval
29514else
29515
29516	case "$ac_cv_header_sys_tpro_h" in
29517	 yes)
29518	    ntp_ok=$ntp_eac
29519	    ;;
29520	 *)
29521	    ntp_ok=no
29522	    ;;
29523	esac
29524
29525
29526fi
29527
29528case "$ntp_ok" in
29529 yes)
29530    ntp_refclock=yes
29531
29532$as_echo "#define CLOCK_TPRO 1" >>confdefs.h
29533
29534    ;;
29535esac
29536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29537$as_echo "$ntp_ok" >&6; }
29538case "$ntp_ok$ac_cv_header_sys_tpro" in
29539 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
29540$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
29541esac
29542
29543# Not on a vax-dec-bsd
29544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
29545$as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
29546# Check whether --enable-TRUETIME was given.
29547if test "${enable_TRUETIME+set}" = set; then :
29548  enableval=$enable_TRUETIME; ntp_ok=$enableval
29549else
29550
29551	case "$host" in
29552	 vax-dec-bsd)
29553	    ntp_ok=no
29554	    ;;
29555	 *)
29556	    ntp_ok=$ntp_eac
29557	    ;;
29558	esac
29559
29560
29561fi
29562
29563case "$ntp_ok" in
29564 yes)
29565    ntp_refclock=yes
29566
29567$as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h
29568
29569    ;;
29570esac
29571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29572$as_echo "$ntp_ok" >&6; }
29573case "$ntp_ok$host" in
29574 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
29575$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
29576esac
29577
29578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
29579$as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
29580# Check whether --enable-TT560 was given.
29581if test "${enable_TT560+set}" = set; then :
29582  enableval=$enable_TT560; ntp_ok=$enableval
29583else
29584  ntp_ok=no
29585
29586fi
29587
29588case "$ntp_ok" in
29589 yes)
29590    ntp_refclock=yes
29591
29592$as_echo "#define CLOCK_TT560 /**/" >>confdefs.h
29593
29594    ;;
29595esac
29596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29597$as_echo "$ntp_ok" >&6; }
29598
29599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
29600$as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
29601# Check whether --enable-ULINK was given.
29602if test "${enable_ULINK+set}" = set; then :
29603  enableval=$enable_ULINK; ntp_ok=$enableval
29604else
29605  ntp_ok=$ntp_eac
29606
29607fi
29608
29609case "$ntp_ok" in
29610 yes)
29611    ntp_refclock=yes
29612
29613$as_echo "#define CLOCK_ULINK 1" >>confdefs.h
29614
29615    ;;
29616esac
29617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29618$as_echo "$ntp_ok" >&6; }
29619
29620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
29621$as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; }
29622# Check whether --enable-TSYNCPCI was given.
29623if test "${enable_TSYNCPCI+set}" = set; then :
29624  enableval=$enable_TSYNCPCI; ntp_ok=$enableval
29625else
29626
29627	case "$host" in
29628	 *-*-*linux*)
29629	    ntp_ok=$ntp_eac
29630	    ;;
29631	 *)
29632	    ntp_ok=no
29633	esac
29634
29635
29636fi
29637
29638case "$ntp_ok" in
29639 yes)
29640    ntp_refclock=yes
29641
29642$as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h
29643
29644    ;;
29645esac
29646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29647$as_echo "$ntp_ok" >&6; }
29648
29649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
29650$as_echo_n "checking WWV receiver... " >&6; }
29651# Check whether --enable-WWV was given.
29652if test "${enable_WWV+set}" = set; then :
29653  enableval=$enable_WWV; ntp_ok=$enableval
29654else
29655
29656	case "$ntp_eac$ntp_canaudio" in
29657	 *no*)	ntp_ok=no  ;;
29658	 *)	ntp_ok=yes ;;
29659	esac
29660
29661
29662fi
29663
29664case "$ntp_ok" in
29665 yes)
29666    ntp_refclock=yes
29667
29668$as_echo "#define CLOCK_WWV 1" >>confdefs.h
29669
29670    ;;
29671esac
29672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29673$as_echo "$ntp_ok" >&6; }
29674case "$ntp_ok$ntp_canaudio" in
29675 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
29676$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
29677esac
29678
29679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
29680$as_echo_n "checking for Zyfer receiver... " >&6; }
29681# Check whether --enable-ZYFER was given.
29682if test "${enable_ZYFER+set}" = set; then :
29683  enableval=$enable_ZYFER; ntp_ok=$enableval
29684else
29685  ntp_ok=$ntp_eac
29686
29687fi
29688
29689case "$ntp_ok" in
29690 yes)
29691    ntp_refclock=yes
29692
29693$as_echo "#define CLOCK_ZYFER 1" >>confdefs.h
29694
29695    ;;
29696esac
29697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29698$as_echo "$ntp_ok" >&6; }
29699
29700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
29701$as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
29702# Check whether --enable-parse-clocks was given.
29703if test "${enable_parse_clocks+set}" = set; then :
29704  enableval=$enable_parse_clocks; ntp_eapc=$enableval
29705else
29706
29707	case "$ntp_eac" in
29708	 yes)	ntp_eapc=$ntp_canparse ;;
29709	 *)	ntp_eapc=no ;;
29710	esac
29711	# Delete the next line one of these days
29712	ntp_eapc=no
29713
29714
29715fi
29716
29717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
29718$as_echo "$ntp_eapc" >&6; }
29719
29720case "$ntp_eac$ntp_eapc$ntp_canparse" in
29721 noyes*)
29722    as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
29723    ;;
29724 yesyesno)
29725    as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
29726    ;;
29727esac
29728
29729ntp_libparse=no
29730ntp_parseutil=no
29731ntp_rawdcf=no
29732
29733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
29734$as_echo_n "checking Diem Computime Radio Clock... " >&6; }
29735# Check whether --enable-COMPUTIME was given.
29736if test "${enable_COMPUTIME+set}" = set; then :
29737  enableval=$enable_COMPUTIME; ntp_ok=$enableval
29738else
29739  ntp_ok=$ntp_eapc
29740
29741fi
29742
29743case "$ntp_ok" in
29744 yes)
29745    ntp_libparse=yes
29746    ntp_refclock=yes
29747
29748$as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h
29749
29750    ;;
29751esac
29752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29753$as_echo "$ntp_ok" >&6; }
29754case "$ntp_ok$ntp_canparse" in
29755 yesno)
29756    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29757esac
29758
29759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
29760$as_echo_n "checking ELV/DCF7000 clock... " >&6; }
29761# Check whether --enable-DCF7000 was given.
29762if test "${enable_DCF7000+set}" = set; then :
29763  enableval=$enable_DCF7000; ntp_ok=$enableval
29764else
29765  ntp_ok=$ntp_eapc
29766
29767fi
29768
29769case "$ntp_ok" in
29770 yes)
29771    ntp_libparse=yes
29772    ntp_refclock=yes
29773
29774$as_echo "#define CLOCK_DCF7000 1" >>confdefs.h
29775
29776    ;;
29777esac
29778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29779$as_echo "$ntp_ok" >&6; }
29780case "$ntp_ok$ntp_canparse" in
29781 yesno)
29782    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29783esac
29784
29785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
29786$as_echo_n "checking HOPF 6021 clock... " >&6; }
29787# Check whether --enable-HOPF6021 was given.
29788if test "${enable_HOPF6021+set}" = set; then :
29789  enableval=$enable_HOPF6021; ntp_ok=$enableval
29790else
29791  ntp_ok=$ntp_eapc
29792
29793fi
29794
29795case "$ntp_ok" in
29796 yes)
29797    ntp_libparse=yes
29798    ntp_refclock=yes
29799
29800$as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h
29801
29802    ;;
29803esac
29804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29805$as_echo "$ntp_ok" >&6; }
29806case "$ntp_ok$ntp_canparse" in
29807 yesno)
29808    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29809esac
29810
29811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
29812$as_echo_n "checking Meinberg clocks... " >&6; }
29813# Check whether --enable-MEINBERG was given.
29814if test "${enable_MEINBERG+set}" = set; then :
29815  enableval=$enable_MEINBERG; ntp_ok=$enableval
29816else
29817  ntp_ok=$ntp_eapc
29818
29819fi
29820
29821case "$ntp_ok" in
29822 yes)
29823    ntp_libparse=yes
29824    ntp_refclock=yes
29825
29826$as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h
29827
29828    ;;
29829esac
29830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29831$as_echo "$ntp_ok" >&6; }
29832case "$ntp_ok$ntp_canparse" in
29833 yesno)
29834    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29835esac
29836
29837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
29838$as_echo_n "checking DCF77 raw time code... " >&6; }
29839# Check whether --enable-RAWDCF was given.
29840if test "${enable_RAWDCF+set}" = set; then :
29841  enableval=$enable_RAWDCF; ntp_ok=$enableval
29842else
29843  ntp_ok=$ntp_eapc
29844
29845fi
29846
29847case "$ntp_ok" in
29848 yes)
29849    ntp_libparse=yes
29850    ntp_parseutil=yes
29851    ntp_refclock=yes
29852    ntp_rawdcf=yes
29853
29854$as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h
29855
29856    ;;
29857esac
29858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29859$as_echo "$ntp_ok" >&6; }
29860case "$ntp_ok$ntp_canparse" in
29861 yesno)
29862    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29863esac
29864
29865case "$ntp_rawdcf" in
29866 yes)
29867    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
29868$as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
29869if ${ntp_cv_rawdcf_parity+:} false; then :
29870  $as_echo_n "(cached) " >&6
29871else
29872
29873	    ans=no
29874	    case "$host" in
29875	     *-*-*linux*)
29876		ans=yes
29877		;;
29878	    esac
29879	    ntp_cv_rawdcf_parity=$ans
29880
29881
29882fi
29883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5
29884$as_echo "$ntp_cv_rawdcf_parity" >&6; }
29885    case "$ntp_cv_rawdcf_parity" in
29886     yes)
29887
29888$as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
29889 ;;
29890    esac
29891esac
29892
29893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
29894$as_echo_n "checking RCC 8000 clock... " >&6; }
29895# Check whether --enable-RCC8000 was given.
29896if test "${enable_RCC8000+set}" = set; then :
29897  enableval=$enable_RCC8000; ntp_ok=$enableval
29898else
29899  ntp_ok=$ntp_eapc
29900
29901fi
29902
29903case "$ntp_ok" in
29904 yes)
29905    ntp_libparse=yes
29906    ntp_refclock=yes
29907
29908$as_echo "#define CLOCK_RCC8000 1" >>confdefs.h
29909
29910    ;;
29911esac
29912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29913$as_echo "$ntp_ok" >&6; }
29914case "$ntp_ok$ntp_canparse" in
29915 yesno)
29916    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29917esac
29918
29919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
29920$as_echo_n "checking Schmid DCF77 clock... " >&6; }
29921# Check whether --enable-SCHMID was given.
29922if test "${enable_SCHMID+set}" = set; then :
29923  enableval=$enable_SCHMID; ntp_ok=$enableval
29924else
29925  ntp_ok=$ntp_eapc
29926
29927fi
29928
29929case "$ntp_ok" in
29930 yes)
29931    ntp_libparse=yes
29932    ntp_refclock=yes
29933
29934$as_echo "#define CLOCK_SCHMID 1" >>confdefs.h
29935
29936    ;;
29937esac
29938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29939$as_echo "$ntp_ok" >&6; }
29940case "$ntp_ok$ntp_canparse" in
29941 yesno)
29942    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29943esac
29944
29945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
29946$as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
29947# Check whether --enable-TRIMTAIP was given.
29948if test "${enable_TRIMTAIP+set}" = set; then :
29949  enableval=$enable_TRIMTAIP; ntp_ok=$enableval
29950else
29951  ntp_ok=$ntp_eapc
29952
29953fi
29954
29955case "$ntp_ok" in
29956 yes)
29957    ntp_libparse=yes
29958    ntp_refclock=yes
29959
29960$as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h
29961
29962    ;;
29963esac
29964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29965$as_echo "$ntp_ok" >&6; }
29966case "$ntp_ok$ntp_canparse" in
29967 yesno)
29968    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29969esac
29970
29971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
29972$as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
29973# Check whether --enable-TRIMTSIP was given.
29974if test "${enable_TRIMTSIP+set}" = set; then :
29975  enableval=$enable_TRIMTSIP; ntp_ok=$enableval
29976else
29977  ntp_ok=$ntp_eapc
29978
29979fi
29980
29981case "$ntp_ok" in
29982 yes)
29983    ntp_libparse=yes
29984    ntp_refclock=yes
29985
29986$as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h
29987
29988    ;;
29989esac
29990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29991$as_echo "$ntp_ok" >&6; }
29992case "$ntp_ok$ntp_canparse" in
29993 yesno)
29994    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29995esac
29996
29997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
29998$as_echo_n "checking WHARTON 400A Series clock... " >&6; }
29999# Check whether --enable-WHARTON was given.
30000if test "${enable_WHARTON+set}" = set; then :
30001  enableval=$enable_WHARTON; ntp_ok=$enableval
30002else
30003  ntp_ok=$ntp_eapc
30004
30005fi
30006
30007case "$ntp_ok" in
30008 yes)
30009    ntp_libparse=yes
30010    ntp_refclock=yes
30011
30012$as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h
30013
30014    ;;
30015esac
30016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30017$as_echo "$ntp_ok" >&6; }
30018case "$ntp_ok$ntp_canparse" in
30019 yesno)
30020    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
30021esac
30022
30023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
30024$as_echo_n "checking VARITEXT clock... " >&6; }
30025# Check whether --enable-VARITEXT was given.
30026if test "${enable_VARITEXT+set}" = set; then :
30027  enableval=$enable_VARITEXT; ntp_ok=$enableval
30028else
30029  ntp_ok=$ntp_eapc
30030
30031fi
30032
30033case "$ntp_ok" in
30034 yes)
30035    ntp_libparse=yes
30036    ntp_refclock=yes
30037
30038$as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h
30039
30040    ;;
30041esac
30042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30043$as_echo "$ntp_ok" >&6; }
30044case "$ntp_ok$ntp_canparse" in
30045 yesno)
30046    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
30047esac
30048
30049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
30050$as_echo_n "checking SEL240X clock... " >&6; }
30051# Check whether --enable-SEL240X was given.
30052if test "${enable_SEL240X+set}" = set; then :
30053  enableval=$enable_SEL240X; ntp_ok=$enableval
30054else
30055  ntp_ok=$ntp_eapc
30056fi
30057
30058if test "$ntp_ok" = "yes"; then
30059    ntp_libparse=yes
30060    ntp_refclock=yes
30061
30062$as_echo "#define CLOCK_SEL240X 1" >>confdefs.h
30063
30064fi
30065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30066$as_echo "$ntp_ok" >&6; }
30067case "$ntp_ok$ntp_canparse" in
30068 yesno)
30069    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
30070    ;;
30071esac
30072
30073
30074
30075
30076
30077
30078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
30079$as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
30080ans=no
30081case "$ntp_libparse" in
30082 yes)
30083    ans=yes
30084
30085$as_echo "#define CLOCK_PARSE 1" >>confdefs.h
30086
30087    LIBPARSE=../libparse/libparse.a
30088    MAKE_LIBPARSE=libparse.a
30089    # HMS: check_y2k trips the 34 year problem now...
30090    false && MAKE_CHECK_Y2K=check_y2k
30091esac
30092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30093$as_echo "$ans" >&6; }
30094
30095
30096
30097
30098VER_SUFFIX=
30099
30100
30101
30102
30103# Check whether --with-crypto was given.
30104if test "${with_crypto+set}" = set; then :
30105  withval=$with_crypto;
30106fi
30107
30108
30109# Check whether --with-openssl-libdir was given.
30110if test "${with_openssl_libdir+set}" = set; then :
30111  withval=$with_openssl_libdir;
30112fi
30113
30114
30115# Check whether --with-openssl-incdir was given.
30116if test "${with_openssl_incdir+set}" = set; then :
30117  withval=$with_openssl_incdir;
30118fi
30119
30120
30121# Check whether --with-rpath was given.
30122if test "${with_rpath+set}" = set; then :
30123  withval=$with_rpath;
30124fi
30125
30126
30127ntp_openssl=no
30128ntp_openssl_from_pkg_config=no
30129
30130with_crypto=${with_crypto:-openssl,libcrypto}
30131case "$with_crypto" in
30132 yes)
30133    with_crypto=openssl,libcrypto
30134esac
30135
30136
30137case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
30138 no:*) ;;
30139 *:notempty:notgiven:notgiven)
30140    for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
30141	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
30142$as_echo_n "checking pkg-config for $pkg... " >&6; }
30143	if $PKG_CONFIG --exists $pkg ; then
30144	    CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
30145	    CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
30146	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
30147	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`"
30148	    LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
30149	    VER_SUFFIX=o
30150	    ntp_openssl=yes
30151	    ntp_openssl_from_pkg_config=yes
30152	    ntp_openssl_version="`$PKG_CONFIG --modversion $pkg`"
30153	    case "$ntp_openssl_version" in
30154	     *.*) ;;
30155	     *) ntp_openssl_version='(unknown)' ;;
30156	    esac
30157	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_openssl_version" >&5
30158$as_echo "yes, version $ntp_openssl_version" >&6; }
30159
30160	    break
30161	fi
30162	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30163$as_echo "no" >&6; }
30164    done
30165esac
30166case "$with_crypto:$ntp_openssl" in
30167 no:*) ;;
30168 *:no)
30169    need_dash_r=
30170    need_dash_Wlrpath=
30171    case "${with_rpath-notgiven}" in
30172     yes)
30173	# Lame - what to do if we need -Wl... but not -R?
30174	need_dash_r=1
30175	;;
30176     notgiven)
30177	case "$host" in
30178	 *-*-linux*)
30179	    # This may really only be true for gcc
30180	    need_dash_Wlrpath=1
30181	    ;;
30182	 *-*-netbsd*)
30183	    need_dash_r=1
30184	    ;;
30185	 *-*-solaris*)
30186	    need_dash_r=1
30187	    ;;
30188	esac
30189	;;
30190    esac
30191
30192    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
30193$as_echo_n "checking for openssl library directory... " >&6; }
30194    with_openssl_libdir=${with_openssl_libdir-notgiven}
30195    case "$with_openssl_libdir" in
30196     notgiven)
30197	case "$build" in
30198	 $host)
30199	    with_openssl_libdir=default
30200	    ;;
30201	 *)
30202	    with_openssl_libdir=no
30203	    ;;
30204	esac
30205    esac
30206    case "$with_openssl_libdir" in
30207     default)
30208	# Look in:
30209	with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
30210	with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
30211	with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
30212    esac
30213    case "$with_openssl_libdir" in
30214     no)
30215	;;
30216     *) # Look for libcrypto.a and libssl.a:
30217	for i in $with_openssl_libdir no
30218	do
30219	    case "$host" in
30220	     *-*-darwin*)
30221		test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
30222		;;
30223	     *)
30224		test -f $i/libcrypto.so -a -f $i/libssl.so && break
30225		test -f $i/libcrypto.a -a -f $i/libssl.a && break
30226		;;
30227	    esac
30228	done
30229	openssl_libdir=$i
30230	;;
30231    esac
30232    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
30233$as_echo "$openssl_libdir" >&6; }
30234    case "$openssl_libdir" in
30235     no)
30236	openssl_libdir=
30237	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
30238$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
30239    esac
30240
30241    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
30242$as_echo_n "checking for openssl include directory... " >&6; }
30243    with_openssl_incdir=${with_openssl_incdir-notgiven}
30244    case "$with_openssl_incdir" in
30245     notgiven)
30246	# Look in:
30247	with_openssl_incdir="/usr/include /usr/sfw/include"
30248	with_openssl_incdir="$with_openssl_incdir /usr/local/include"
30249	with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
30250    esac
30251    case "$with_openssl_incdir" in
30252     no)
30253	;;
30254     *) # look for openssl/evp.h:
30255	for i in $with_openssl_incdir no
30256	do
30257	    test -f $i/openssl/evp.h && break
30258	done
30259	openssl_incdir=$i
30260	;;
30261    esac
30262    { i=; unset i;}
30263    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
30264$as_echo "$openssl_incdir" >&6; }
30265    case "$openssl_incdir" in
30266     no)
30267	openssl_incdir=
30268	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
30269$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
30270    esac
30271    if test -z "$openssl_libdir" -o -z "$openssl_incdir"
30272    then
30273	ntp_openssl=no
30274    else
30275	ntp_openssl=yes
30276	VER_SUFFIX=o
30277    fi
30278    case "$ntp_openssl" in
30279     yes)
30280	# We have OpenSSL inc/lib dirs - use them.
30281	case "$openssl_incdir" in
30282	 /usr/include)
30283	    ;;
30284	 *)
30285	    CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
30286	    ;;
30287	esac
30288	case "$openssl_libdir" in
30289	 /usr/lib)
30290	    ;;
30291	 *)
30292	    LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
30293	    case "$need_dash_r" in
30294	     1)
30295		LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
30296	    esac
30297	    case "$need_dash_Wlrpath" in
30298	     1)
30299		LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
30300	    esac
30301	    ;;
30302	esac
30303	LDADD_NTP="$LDADD_NTP -lcrypto"
30304    esac
30305esac
30306
30307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
30308$as_echo_n "checking if we will use crypto... " >&6; }
30309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
30310$as_echo "$ntp_openssl" >&6; }
30311
30312case "$ntp_openssl" in
30313 yes)
30314
30315$as_echo "#define OPENSSL /**/" >>confdefs.h
30316
30317    case "$VER_SUFFIX" in
30318     *o*) ;;
30319     *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
30320    esac
30321    ;;
30322esac
30323
30324NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
30325CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
30326NTPO_SAVED_LIBS="$LIBS"
30327
30328#
30329# check for linking with -lcrypto failure, and try -lcrypto -lz.
30330# Helps m68k-atari-mint
30331#
30332case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
30333 yes:no)
30334    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
30335    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
30336$as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
30337if ${ntp_cv_bare_lcrypto+:} false; then :
30338  $as_echo_n "(cached) " >&6
30339else
30340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30341/* end confdefs.h.  */
30342
30343		    #include "openssl/err.h"
30344		    #include "openssl/evp.h"
30345
30346int
30347main ()
30348{
30349
30350		    ERR_load_crypto_strings();
30351		    OpenSSL_add_all_algorithms();
30352
30353
30354  ;
30355  return 0;
30356}
30357_ACEOF
30358if ac_fn_c_try_link "$LINENO"; then :
30359  ntp_cv_bare_lcrypto=yes
30360else
30361  ntp_cv_bare_lcrypto=no
30362
30363fi
30364rm -f core conftest.err conftest.$ac_objext \
30365    conftest$ac_exeext conftest.$ac_ext
30366
30367fi
30368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
30369$as_echo "$ntp_cv_bare_lcrypto" >&6; }
30370    case "$ntp_cv_bare_lcrypto" in
30371     no)
30372	LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
30373	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
30374$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
30375if ${ntp_cv_lcrypto_lz+:} false; then :
30376  $as_echo_n "(cached) " >&6
30377else
30378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30379/* end confdefs.h.  */
30380
30381			#include "openssl/err.h"
30382			#include "openssl/evp.h"
30383
30384int
30385main ()
30386{
30387
30388			ERR_load_crypto_strings();
30389			OpenSSL_add_all_algorithms();
30390
30391
30392  ;
30393  return 0;
30394}
30395_ACEOF
30396if ac_fn_c_try_link "$LINENO"; then :
30397  ntp_cv_lcrypto_lz=yes
30398else
30399  ntp_cv_lcrypto_lz=no
30400
30401fi
30402rm -f core conftest.err conftest.$ac_objext \
30403    conftest$ac_exeext conftest.$ac_ext
30404
30405fi
30406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
30407$as_echo "$ntp_cv_lcrypto_lz" >&6; }
30408	case "$ntp_cv_lcrypto_lz" in
30409	 yes)
30410	     LDADD_NTP="$LDADD_NTP -lz"
30411	esac
30412    esac
30413esac
30414
30415#
30416# Older OpenSSL headers have a number of callback prototypes inside
30417# other function prototypes which trigger copious warnings with gcc's
30418# -Wstrict-prototypes, which is included in -Wall.
30419#
30420# An example:
30421#
30422# int i2d_RSA_NET(const RSA *a, unsigned char **pp,
30423#		  int (*cb)(), int sgckey);
30424#		  ^^^^^^^^^^^
30425#
30426#
30427#
30428openssl_triggers_warnings=unknown
30429NTPO_SAVED_CFLAGS="$CFLAGS"
30430
30431case "$ntp_openssl:$GCC" in
30432 yes:yes)
30433    CFLAGS="$CFLAGS -Werror"
30434    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30435/* end confdefs.h.  */
30436
30437
30438int
30439main ()
30440{
30441
30442		/* see if -Werror breaks gcc */
30443
30444
30445  ;
30446  return 0;
30447}
30448_ACEOF
30449if ac_fn_c_try_compile "$LINENO"; then :
30450  gcc_handles_Werror=yes
30451else
30452  gcc_handles_Werror=no
30453
30454fi
30455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30456    case "$gcc_handles_Werror" in
30457     no)
30458	# if this gcc doesn't do -Werror go ahead and use
30459	# -Wstrict-prototypes.
30460	openssl_triggers_warnings=yes
30461	;;
30462     yes)
30463	CFLAGS="$CFLAGS -Wstrict-prototypes"
30464	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30465/* end confdefs.h.  */
30466
30467		    #include "openssl/asn1_mac.h"
30468		    #include "openssl/bn.h"
30469		    #include "openssl/err.h"
30470		    #include "openssl/evp.h"
30471		    #include "openssl/pem.h"
30472		    #include "openssl/rand.h"
30473		    #include "openssl/x509v3.h"
30474
30475int
30476main ()
30477{
30478
30479		    /* empty body */
30480
30481
30482  ;
30483  return 0;
30484}
30485_ACEOF
30486if ac_fn_c_try_compile "$LINENO"; then :
30487  openssl_triggers_warnings=no
30488else
30489  openssl_triggers_warnings=yes
30490
30491fi
30492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30493    esac
30494    case "$openssl_triggers_warnings" in
30495     yes)
30496	CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
30497	;;
30498     *)
30499	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
30500    esac
30501    ;;
30502 no:yes)
30503    # gcc without OpenSSL
30504    CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
30505esac
30506
30507# Because we don't want -Werror for the EVP_MD_do_all_sorted check
30508CFLAGS="$NTPO_SAVED_CFLAGS"
30509
30510case "$ntp_openssl" in
30511 yes)
30512    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
30513    for ac_func in EVP_MD_do_all_sorted
30514do :
30515  ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
30516if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
30517  cat >>confdefs.h <<_ACEOF
30518#define HAVE_EVP_MD_DO_ALL_SORTED 1
30519_ACEOF
30520
30521fi
30522done
30523
30524    ;;
30525esac
30526
30527
30528CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
30529LIBS="$NTPO_SAVED_LIBS"
30530{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
30531{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
30532{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
30533{ openssl_triggers_warnings=; unset openssl_triggers_warnings;}
30534{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
30535
30536
30537
30538
30539
30540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5
30541$as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; }
30542# Check whether --enable-openssl-random was given.
30543if test "${enable_openssl_random+set}" = set; then :
30544  enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval
30545else
30546  ntp_use_openssl_random=yes
30547
30548fi
30549
30550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
30551$as_echo "$ntp_use_openssl_random" >&6; }
30552
30553# The following might need extra libraries
30554NTPO_SAVED_LIBS="$LIBS"
30555LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
30556for ac_func in RAND_bytes RAND_poll
30557do :
30558  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30559ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30560if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30561  cat >>confdefs.h <<_ACEOF
30562#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30563_ACEOF
30564
30565fi
30566done
30567
30568LIBS="$NTPO_SAVED_LIBS"
30569case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
30570 yesyesyes)
30571
30572$as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h
30573
30574     ;;
30575 *) ntp_use_openssl_random=no ;;
30576esac
30577
30578
30579
30580# if we are using OpenSSL (--with-crypto), by default Autokey is enabled
30581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
30582$as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; }
30583# Check whether --enable-autokey was given.
30584if test "${enable_autokey+set}" = set; then :
30585  enableval=$enable_autokey; ntp_autokey=$enableval
30586else
30587  ntp_autokey=$ntp_openssl
30588
30589fi
30590
30591case "$ntp_autokey" in
30592 no)
30593    ;;
30594 *)
30595    case "$ntp_openssl" in
30596     no)
30597	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
30598$as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
30599	ntp_autokey=no
30600	;;
30601     *)
30602
30603$as_echo "#define AUTOKEY 1" >>confdefs.h
30604
30605	ntp_autokey=yes
30606	;;
30607    esac
30608    ;;
30609esac
30610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
30611$as_echo "$ntp_autokey" >&6; }
30612
30613
30614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
30615$as_echo_n "checking if we want to run check-layout... " >&6; }
30616case "$cross_compiling$PATH_PERL" in
30617 no/*)
30618    MAKE_CHECK_LAYOUT=check-layout
30619    ans=yes
30620    ;;
30621 *)
30622    ans=no
30623    ;;
30624esac
30625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30626$as_echo "$ans" >&6; }
30627
30628
30629
30630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
30631$as_echo_n "checking if we can make dcf parse utilities... " >&6; }
30632ans=no
30633case "$ntp_parseutil" in
30634 yes)
30635    case "$host" in
30636     *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
30637	ans="dcfd testdcf"
30638	DCFD=dcfd
30639	TESTDCF=testdcf
30640    esac
30641    ;;
30642esac
30643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30644$as_echo "$ans" >&6; }
30645
30646
30647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
30648$as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
30649ans=no
30650case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
30651 yesyes)
30652    case "$host" in
30653     sparc-*-sunos4*)
30654        case "$ntp_cv_var_kernel_pll" in
30655	yes)
30656
30657$as_echo "#define PPS_SYNC 1" >>confdefs.h
30658
30659	    ;;
30660	esac
30661	ans=parsestreams
30662	MAKE_PARSEKMODULE=parsestreams.loadable_module.o
30663	;;
30664     sparc-*-solaris2*)
30665	ans=parsesolaris
30666	MAKE_PARSEKMODULE=parse
30667	for ac_header in strings.h
30668do :
30669  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
30670if test "x$ac_cv_header_strings_h" = xyes; then :
30671  cat >>confdefs.h <<_ACEOF
30672#define HAVE_STRINGS_H 1
30673_ACEOF
30674
30675fi
30676
30677done
30678
30679	;;
30680    esac
30681    ;;
30682esac
30683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30684$as_echo "$ans" >&6; }
30685
30686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
30687$as_echo_n "checking if we need basic refclock support... " >&6; }
30688case "$ntp_refclock" in
30689 yes)
30690
30691$as_echo "#define REFCLOCK 1" >>confdefs.h
30692
30693    ;;
30694esac
30695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
30696$as_echo "$ntp_refclock" >&6; }
30697
30698PROPDELAY=propdelay
30699
30700
30701
30702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
30703$as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
30704case "$host" in
30705 *-*-hpux[56789]*)
30706    ans=yes
30707    ;;
30708 *) ans=no
30709    ;;
30710esac
30711case "$ans" in
30712 yes)
30713    MAKE_ADJTIMED=adjtimed
30714
30715$as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
30716
30717    ;;
30718 *) ADJTIMED_DB=
30719    ADJTIMED_DL=
30720    ADJTIMED_DS=
30721    ADJTIMED_MS=
30722    ;;
30723esac
30724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30725$as_echo "$ans" >&6; }
30726
30727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
30728$as_echo_n "checking if we want QNX adjtime support... " >&6; }
30729case "$host" in
30730 *-*-qnx*)
30731    ans=yes
30732    ;;
30733 *) ans=no
30734    ;;
30735esac
30736case "$ans" in
30737 yes)
30738
30739$as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h
30740
30741    ;;
30742esac
30743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30744$as_echo "$ans" >&6; }
30745
30746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
30747$as_echo_n "checking if we can read kmem... " >&6; }
30748
30749#  the default is to enable it if the system has the capability
30750
30751case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
30752 *yes*)
30753    ans=yes
30754    ;;
30755 *) ans=no
30756    ;;
30757esac
30758
30759case "$host" in
30760 *-*-domainos)	# Won't be found...
30761    ans=no
30762    ;;
30763 *-*-hpux*)
30764    #ans=no
30765    ;;
30766 *-*-irix[456]*)
30767    ans=no
30768    ;;
30769 *-*-*linux*)
30770    ans=no
30771    ;;
30772 *-*-winnt3.5)
30773    ans=no
30774    ;;
30775 *-*-unicosmp*)
30776    ans=no
30777    ;;
30778esac
30779
30780# --enable-kmem / --disable-kmem controls if present
30781# Check whether --enable-kmem was given.
30782if test "${enable_kmem+set}" = set; then :
30783  enableval=$enable_kmem; ans=$enableval
30784
30785fi
30786
30787
30788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30789$as_echo "$ans" >&6; }
30790
30791case "$ans" in
30792 yes)
30793    can_kmem=yes
30794    ;;
30795 *)
30796    can_kmem=no
30797
30798$as_echo "#define NOKMEM 1" >>confdefs.h
30799
30800esac
30801
30802
30803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
30804$as_echo_n "checking if adjtime is accurate... " >&6; }
30805
30806# target-dependent defaults
30807
30808case "$host" in
30809 i386-sequent-ptx*)
30810    ans=no
30811    ;;
30812 i386-unknown-osf1*)
30813    ans=yes
30814    ;;
30815 mips-sgi-irix[456]*)
30816    ans=yes
30817    ;;
30818 *-fujitsu-uxp*)
30819    ans=yes
30820    ;;
30821 *-ibm-aix[4-9]*)
30822    # XXX only verified thru AIX6.
30823    ans=yes
30824    ;;
30825 *-*-*linux*)
30826    ans=yes
30827    ;;
30828 *-*-solaris2.[01])
30829    ans=no
30830    ;;
30831 *-*-solaris2*)
30832    ans=yes
30833    ;;
30834 *-*-unicosmp*)
30835    ans=yes
30836    ;;
30837 *) ans=no
30838    ;;
30839esac
30840
30841# --enable-accurate-adjtime / --disable-accurate-adjtime
30842# override the default
30843# Check whether --enable-accurate-adjtime was given.
30844if test "${enable_accurate_adjtime+set}" = set; then :
30845  enableval=$enable_accurate_adjtime; ans=$enableval
30846
30847fi
30848
30849
30850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30851$as_echo "$ans" >&6; }
30852
30853case "$ans" in
30854 yes)
30855
30856$as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
30857
30858    adjtime_is_accurate=yes
30859    ;;
30860 *)
30861    adjtime_is_accurate=no
30862    ;;
30863esac
30864
30865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
30866$as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
30867if ${ntp_cv_nlist_tick+:} false; then :
30868  $as_echo_n "(cached) " >&6
30869else
30870
30871	ans=_tick
30872	case "$host" in
30873	 m68*-hp-hpux*) # HP9000/300?
30874	    ans=_old_tick
30875	    ;;
30876	 *-apple-aux[23]*)
30877	    ans=tick
30878	    ;;
30879	 *-hp-hpux*)
30880	    ans=old_tick
30881	    ;;
30882	 *-ibm-aix[3-9]*)
30883	    # XXX only verified thru AIX6.
30884	    ans=no
30885	    ;;
30886	 *-*-mpeix*)
30887	    ans=no
30888	    ;;
30889	 *-*-ptx*)
30890	    ans=tick
30891	    ;;
30892	 *-*-sco3.2v[45]*)
30893	    ans=no
30894	    ;;
30895	 *-*-solaris2*)
30896	    ans=nsec_per_tick
30897	    ;;
30898	 *-*-sysv4*)
30899	    ans=tick
30900	    ;;
30901	esac
30902	ntp_cv_nlist_tick=$ans
30903
30904
30905fi
30906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5
30907$as_echo "$ntp_cv_nlist_tick" >&6; }
30908case "$ntp_cv_nlist_tick" in
30909 ''|no)
30910    ;;	# HMS: I think we can only get 'no' here...
30911 *)
30912
30913cat >>confdefs.h <<_ACEOF
30914#define K_TICK_NAME "$ntp_cv_nlist_tick"
30915_ACEOF
30916
30917esac
30918
30919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
30920$as_echo_n "checking for the units of 'tick'... " >&6; }
30921if ${ntp_cv_tick_nano+:} false; then :
30922  $as_echo_n "(cached) " >&6
30923else
30924
30925	ans=usec
30926	case "$host" in
30927	 *-*-solaris2*)
30928	    ans=nsec
30929	    ;;
30930	esac
30931	ntp_cv_tick_nano=$ans
30932
30933
30934fi
30935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5
30936$as_echo "$ntp_cv_tick_nano" >&6; }
30937case "$ntp_cv_tick_nano" in
30938 nsec)
30939
30940$as_echo "#define TICK_NANO 1" >>confdefs.h
30941
30942esac
30943
30944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
30945$as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
30946if ${ntp_cv_nlist_tickadj+:} false; then :
30947  $as_echo_n "(cached) " >&6
30948else
30949
30950	ans=_tickadj
30951	case "$host" in
30952	 m68*-hp-hpux*) # HP9000/300?
30953	    ans=_tickadj
30954	    ;;
30955	 *-apple-aux[23]*)
30956	    ans=tickadj
30957	    ;;
30958	 *-hp-hpux10*)
30959	    ans=no
30960	    ;;
30961	 *-hp-hpux9*)
30962	    ans=no
30963	    ;;
30964	 *-hp-hpux*)
30965	    ans=tickadj
30966	    ;;
30967	 *-*-aix*)
30968	    ans=tickadj
30969	    ;;
30970	 *-*-mpeix*)
30971	    ans=no
30972	    ;;
30973	 *-*-ptx*)
30974	    ans=tickadj
30975	    ;;
30976	 *-*-sco3.2v4*)
30977	    ans=no
30978	    ;;
30979	 *-*-sco3.2v5.0*)
30980	    ans=clock_drift
30981	    ;;
30982	 *-*-solaris2*)
30983	    ans=no	# hrestime_adj
30984	    ;;
30985	 *-*-sysv4*)
30986	    ans=tickadj
30987	    ;;
30988	esac
30989	ntp_cv_nlist_tickadj=$ans
30990
30991
30992fi
30993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5
30994$as_echo "$ntp_cv_nlist_tickadj" >&6; }
30995case "$ntp_cv_nlist_tickadj" in
30996 ''|no)
30997    ;;	# HMS: I think we can only get 'no' here...
30998 *)
30999
31000cat >>confdefs.h <<_ACEOF
31001#define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj"
31002_ACEOF
31003
31004esac
31005
31006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
31007$as_echo_n "checking for the units of 'tickadj'... " >&6; }
31008if ${ntp_cv_tickadj_nano+:} false; then :
31009  $as_echo_n "(cached) " >&6
31010else
31011
31012	ans=usec
31013	case "$host" in
31014	 *-*-solaris2*)
31015	    ans=nsec
31016	    ;;
31017	esac
31018	ntp_cv_tickadj_nano=$ans
31019
31020
31021fi
31022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5
31023$as_echo "$ntp_cv_tickadj_nano" >&6; }
31024case "$ntp_cv_tickadj_nano" in
31025 nsec)
31026
31027$as_echo "#define TICKADJ_NANO 1" >>confdefs.h
31028
31029esac
31030
31031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
31032$as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
31033if ${ntp_cv_nlist_dosynctodr+:} false; then :
31034  $as_echo_n "(cached) " >&6
31035else
31036
31037	case "$host" in
31038	 *-apple-aux[23]*)
31039	    ans=no
31040	    ;;
31041	 *-sni-sysv*)
31042	    ans=dosynctodr
31043	    ;;
31044	 *-stratus-vos)
31045	    ans=no
31046	    ;;
31047	 *-*-aix*)
31048	    ans=dosynctodr
31049	    ;;
31050	 *-*-hpux*)
31051	    ans=no
31052	    ;;
31053	 *-*-mpeix*)
31054	    ans=no
31055	    ;;
31056	 *-*-nextstep*)
31057	    ans=_dosynctodr
31058	    ;;
31059	 *-*-ptx*)
31060	    ans=doresettodr
31061	    ;;
31062	 *-*-sco3.2v4*)
31063	    ans=no
31064	    ;;
31065	 *-*-sco3.2v5*)
31066	    ans=track_rtc
31067	    ;;
31068	 *-*-solaris2*)
31069	    ans=dosynctodr
31070	    ;;
31071	 *-*-sysv4*)
31072	    ans=doresettodr
31073	    ;;
31074	 *)
31075	    ans=_dosynctodr
31076	    ;;
31077	esac
31078	ntp_cv_nlist_dosynctodr=$ans
31079
31080
31081fi
31082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5
31083$as_echo "$ntp_cv_nlist_dosynctodr" >&6; }
31084case "$ntp_cv_nlist_dosynctodr" in
31085 no)
31086    ;;
31087 *)
31088
31089cat >>confdefs.h <<_ACEOF
31090#define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr"
31091_ACEOF
31092
31093    ;;
31094esac
31095
31096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
31097$as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
31098if ${ntp_cv_nlist_noprintf+:} false; then :
31099  $as_echo_n "(cached) " >&6
31100else
31101
31102	case "$host" in
31103	 *-apple-aux[23]*)
31104	    ans=no
31105	    ;;
31106	 *-sni-sysv*)
31107	    ans=noprintf
31108	    ;;
31109	 *-stratus-vos)
31110	    ans=no
31111	    ;;
31112	 *-*-aix*)
31113	    ans=noprintf
31114	    ;;
31115	 *-*-hpux*)
31116	    ans=no
31117	    ;;
31118	 *-*-mpeix*)
31119	    ans=no
31120	    ;;
31121	 *-*-ptx*)
31122	    ans=noprintf
31123	    ;;
31124	 *-*-nextstep*)
31125	    ans=_noprintf
31126	    ;;
31127	 *-*-solaris2*)
31128	    ans=noprintf
31129	    ;;
31130	 *-*-sysv4*)
31131	    ans=noprintf
31132	    ;;
31133	 *)
31134	    ans=_noprintf
31135	    ;;
31136	esac
31137	ntp_cv_nlist_noprintf=$ans
31138
31139
31140fi
31141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5
31142$as_echo "$ntp_cv_nlist_noprintf" >&6; }
31143case "$ntp_cv_nlist_noprintf" in
31144 no)
31145    ;;
31146 *)
31147
31148cat >>confdefs.h <<_ACEOF
31149#define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf"
31150_ACEOF
31151
31152    ;;
31153esac
31154
31155
31156
31157
31158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
31159$as_echo_n "checking for a default value for 'tick'... " >&6; }
31160
31161# target-dependent default for tick
31162
31163case "$host" in
31164 *-*-pc-cygwin*)
31165    as_fn_error $? "tick needs work for cygwin" "$LINENO" 5
31166    ;;
31167 *-univel-sysv*)
31168    ans=10000
31169    ;;
31170 *-*-irix*)
31171    ans=10000
31172    ;;
31173 *-*-*linux*)
31174    ans=txc.tick
31175    ;;
31176 *-*-mpeix*)
31177    ans=no
31178    ;;
31179 *-*-winnt3.5)
31180    ans='(every / 10)'
31181    ;;
31182 *-*-unicosmp*)
31183    ans=10000
31184    ;;
31185 *)
31186    ans='1000000L/hz'
31187    ;;
31188esac
31189
31190# Check whether --enable-tick was given.
31191if test "${enable_tick+set}" = set; then :
31192  enableval=$enable_tick; ans=$enableval
31193
31194fi
31195
31196
31197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31198$as_echo "$ans" >&6; }
31199
31200case "$ans" in
31201 ''|no)
31202    ;;	# HMS: I think we can only get 'no' here...
31203 *)
31204
31205cat >>confdefs.h <<_ACEOF
31206#define PRESET_TICK $ans
31207_ACEOF
31208
31209esac
31210
31211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
31212$as_echo_n "checking for a default value for 'tickadj'... " >&6; }
31213
31214# target-specific default
31215ans='500/hz'
31216case "$host" in
31217 *-fujitsu-uxp*)
31218    case "$adjtime_is_accurate" in
31219     yes)
31220	ans='tick/16'
31221    esac
31222    ;;
31223 *-univel-sysv*)
31224    ans=80
31225    ;;
31226 *-*-aix*)
31227    case "$can_kmem" in
31228     no)
31229	ans=1000
31230	;;
31231    esac
31232    ;;
31233 *-*-domainos)	# Skippy: won't be found...
31234    case "$can_kmem" in
31235     no)
31236	ans=668
31237	;;
31238    esac
31239    ;;
31240 *-*-hpux*)
31241    case "$adjtime_is_accurate" in
31242     yes)
31243	ans='tick/16'
31244	;;
31245    esac
31246    ;;
31247 *-*-irix*)
31248    ans=150
31249    ;;
31250 *-*-mpeix*)
31251    ans=no
31252    ;;
31253 *-*-sco3.2v5.0*)
31254    ans=10000L/hz
31255    ;;
31256 *-*-winnt3.5)
31257    ans=50
31258    ;;
31259 *-*-unicosmp*)
31260    ans=150
31261    ;;
31262esac
31263
31264# Check whether --enable-tickadj was given.
31265if test "${enable_tickadj+set}" = set; then :
31266  enableval=$enable_tickadj; ans=$enableval
31267
31268fi
31269
31270
31271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31272$as_echo "$ans" >&6; }
31273
31274default_tickadj=$ans
31275
31276case "$default_tickadj" in
31277 ''|no)
31278    ;;	# HMS: I think we can only get 'no' here...
31279 *)
31280
31281cat >>confdefs.h <<_ACEOF
31282#define PRESET_TICKADJ $default_tickadj
31283_ACEOF
31284 ;;
31285esac
31286
31287# Newer versions of ReliantUNIX round adjtime() values down to
31288# 1/100s (system tick). Sigh ...
31289# Unfortunately, there is no easy way to know if particular release
31290# has this "feature" or any obvious way to test for it.
31291case "$host" in
31292 mips-sni-sysv4*)
31293
31294$as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
31295
31296esac
31297
31298case "$host" in
31299 *-*-sco3.2v5*)
31300
31301$as_echo "#define SCO5_CLOCK 1" >>confdefs.h
31302
31303esac
31304
31305ntp_cv_make_tickadj=yes
31306case "$can_kmem$ac_cv_var_tick$default_tickadj" in
31307 nonono)	# Don't read KMEM, no presets.  Bogus.
31308    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&5
31309$as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&2;}
31310    ntp_cv_make_tickadj=no
31311    ;;
31312 nono*)		# Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
31313    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&5
31314$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&2;}
31315    ntp_cv_make_tickadj=no
31316    ;;
31317 no*no)		# Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Bogus.
31318    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&5
31319$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&2;}
31320    ntp_cv_make_tickadj=no
31321    ;;
31322 no*)		# Don't read KMEM, PRESET_TICK and PRESET_TICKADJ.  Cool.
31323    ;;
31324 yesnono)	# Read KMEM, no presets.  Cool.
31325    ;;
31326 yesno*)	# Read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
31327    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&5
31328$as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&2;}
31329    ;;
31330 yes*no)	# Read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Cool.
31331    ;;
31332 yes*)		# READ KMEM, PRESET_TICK and PRESET_TICKADJ.
31333    ;;
31334 *)		# Generally bogus.
31335    as_fn_error $? "This shouldn't happen." "$LINENO" 5
31336    ;;
31337esac
31338
31339
31340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
31341$as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
31342if ${ac_cv_make_ntptime+:} false; then :
31343  $as_echo_n "(cached) " >&6
31344else
31345  case "$host" in
31346 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in
31347     yesyes)
31348	ans=yes
31349	;;
31350     *)
31351	ans=no
31352	;;
31353    esac
31354    ;;
31355esac
31356ac_cv_make_ntptime=$ans
31357fi
31358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
31359$as_echo "$ac_cv_make_ntptime" >&6; }
31360case "$ac_cv_make_ntptime" in
31361 yes)
31362    MAKE_NTPTIME=ntptime
31363    ;;
31364 *)
31365    NTPTIME_DB=
31366    NTPTIME_DL=
31367    NTPTIME_DS=
31368    NTPTIME_MS=
31369    ;;
31370esac
31371
31372
31373case "$host" in
31374 mips-sni-sysv4*)
31375    # tickadj is pretty useless on newer versions of ReliantUNIX
31376    # Do not bother
31377    ntp_cv_make_tickadj=no
31378    ;;
31379 *-*-irix*)
31380    ntp_cv_make_tickadj=no
31381    ;;
31382 *-*-solaris2*)
31383    # DLM says tickadj is a no-no starting with solaris2.5
31384    case "$host" in
31385     *-*-solaris2.1[0-9]*)
31386	ntp_cv_make_tickadj=no
31387	;;
31388     *-*-solaris2.[0-4]*) ;;
31389     *) ntp_cv_make_tickadj=no ;;
31390    esac
31391    ;;
31392 *-*-unicosmp*)
31393    ntp_cv_make_tickadj=no
31394    ;;
31395esac
31396
31397#
31398# Despite all the above, we always make tickadj.  Setting
31399# ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false
31400# report that the configuration variable was cached.  It may
31401# be better to simply remove the hunk above, I did not want
31402# to remove it if there is hope it will be used again.
31403#
31404{ ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;}
31405
31406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
31407$as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
31408if ${ntp_cv_make_tickadj+:} false; then :
31409  $as_echo_n "(cached) " >&6
31410else
31411  ntp_cv_make_tickadj=yes
31412
31413fi
31414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5
31415$as_echo "$ntp_cv_make_tickadj" >&6; }
31416case "$ntp_cv_make_tickadj" in
31417 yes)
31418    MAKE_TICKADJ=tickadj
31419    ;;
31420 *)
31421    CALC_TICKADJ_DB=
31422    CALC_TICKADJ_DL=
31423    CALC_TICKADJ_DS=
31424    CALC_TICKADJ_MS=
31425    TICKADJ_DB=
31426    TICKADJ_DL=
31427    TICKADJ_DS=
31428    TICKADJ_MS=
31429    ;;
31430esac
31431
31432
31433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
31434$as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
31435if ${ntp_cv_make_timetrim+:} false; then :
31436  $as_echo_n "(cached) " >&6
31437else
31438
31439	case "$host" in
31440	 *-*-irix*)
31441	    ntp_cv_make_timetrim=yes
31442	    ;;
31443	 *-*-unicosmp*)
31444	    ntp_cv_make_timetrim=yes
31445	    ;;
31446	 *)
31447	    ntp_cv_make_timetrim=no
31448	    ;;
31449	esac
31450
31451
31452fi
31453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5
31454$as_echo "$ntp_cv_make_timetrim" >&6; }
31455case "$ntp_cv_make_timetrim" in
31456 yes)
31457    MAKE_TIMETRIM=timetrim
31458    ;;
31459 *) TIMETRIM_DB=
31460    TIMETRIM_DL=
31461    TIMETRIM_DS=
31462    TIMETRIM_MS=
31463    ;;
31464esac
31465
31466
31467
31468
31469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
31470$as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
31471# Check whether --enable-simulator was given.
31472if test "${enable_simulator+set}" = set; then :
31473  enableval=$enable_simulator; ans=$enableval
31474else
31475  ans=no
31476
31477fi
31478
31479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31480$as_echo "$ans" >&6; }
31481case "$ans" in
31482 yes)
31483    MAKE_NTPDSIM=ntpdsim
31484    MAKE_LIBNTPSIM=libntpsim.a
31485    ;;
31486 *)
31487    NTPDSIM_DB=
31488    NTPDSIM_DL=
31489    NTPDSIM_DS=
31490    NTPDSIM_MS=
31491    ;;
31492esac
31493
31494case "$build" in
31495 $host)
31496    ;;
31497 *) case "$host" in
31498     *-*-vxworks*)
31499	LDFLAGS="$LDFLAGS -r"
31500	;;
31501    esac
31502    ;;
31503esac
31504
31505
31506
31507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
31508$as_echo_n "checking if sntp will be built... " >&6; }
31509
31510# Check whether --with-sntp was given.
31511if test "${with_sntp+set}" = set; then :
31512  withval=$with_sntp;
31513else
31514  with_sntp="${withsntp=yes}"
31515
31516fi
31517
31518case "$with_sntp" in
31519 no)
31520    SNTP=
31521    ;;
31522 *)
31523    SNTP=sntp
31524    ;;
31525esac
31526
31527 if test -n "$SNTP"; then
31528  BUILD_SNTP_TRUE=
31529  BUILD_SNTP_FALSE='#'
31530else
31531  BUILD_SNTP_TRUE='#'
31532  BUILD_SNTP_FALSE=
31533fi
31534
31535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
31536$as_echo "$with_sntp" >&6; }
31537
31538
31539
31540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
31541$as_echo_n "checking if we want to build ntpsnmpd... " >&6; }
31542
31543# Check whether --with-ntpsnmpd was given.
31544if test "${with_ntpsnmpd+set}" = set; then :
31545  withval=$with_ntpsnmpd; ans=$withval
31546else
31547
31548	case "$PATH_NET_SNMP_CONFIG" in
31549	 /*)	ans=yes ;;
31550	 *)	ans=no  ;;
31551	esac
31552
31553
31554fi
31555
31556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31557$as_echo "$ans" >&6; }
31558case "$ans" in
31559 yes)
31560    case "$PATH_NET_SNMP_CONFIG" in
31561     /*)
31562	SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs`
31563	# Bug 2815.  This is a bit of a hack, but it works...
31564	case "$ntp_cv_net_snmp_version" in
31565	 5.3*)	SNMP_LIBS=`echo $SNMP_LIBS | $SED -e 's/-lnetsnmpagent/-lnetsnmpagent -lnetsnmpmibs/'`
31566		;;
31567	esac
31568
31569	# HMS: we really want to separate CPPFLAGS and CFLAGS
31570	foo=`$PATH_NET_SNMP_CONFIG --cflags`
31571	SNMP_CPPFLAGS=
31572	SNMP_CFLAGS=
31573	for i in $foo; do
31574	    case "$i" in
31575	     -D*|-U*|-I*)
31576		SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i"
31577		;;
31578	    *)	SNMP_CFLAGS="$SNMP_CFLAGS $i"
31579		;;
31580	    esac
31581	done
31582
31583
31584
31585	save_CFLAGS=$CFLAGS
31586	save_CPPFLAGS=$CPPFLAGS
31587	save_LIBS=$LIBS
31588	CFLAGS=$SNMP_CFLAGS
31589	CPPFLAGS=$SNMP_CPPFLAGS
31590
31591	ac_fn_c_check_header_mongrel "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default"
31592if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
31593  MAKE_NTPSNMPD=ntpsnmpd
31594else
31595  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
31596$as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}
31597
31598fi
31599
31600
31601
31602	# Do this last, as we're messing up LIBS.
31603	# check -lnetsnmp for netsnmp_daemonize
31604	LIBS=`$PATH_NET_SNMP_CONFIG --libs`
31605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
31606$as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
31607if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then :
31608  $as_echo_n "(cached) " >&6
31609else
31610  ac_check_lib_save_LIBS=$LIBS
31611LIBS="-lnetsnmp  $LIBS"
31612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31613/* end confdefs.h.  */
31614
31615/* Override any GCC internal prototype to avoid an error.
31616   Use char because int might match the return type of a GCC
31617   builtin and then its argument prototype would still apply.  */
31618#ifdef __cplusplus
31619extern "C"
31620#endif
31621char netsnmp_daemonize ();
31622int
31623main ()
31624{
31625return netsnmp_daemonize ();
31626  ;
31627  return 0;
31628}
31629_ACEOF
31630if ac_fn_c_try_link "$LINENO"; then :
31631  ac_cv_lib_netsnmp_netsnmp_daemonize=yes
31632else
31633  ac_cv_lib_netsnmp_netsnmp_daemonize=no
31634fi
31635rm -f core conftest.err conftest.$ac_objext \
31636    conftest$ac_exeext conftest.$ac_ext
31637LIBS=$ac_check_lib_save_LIBS
31638fi
31639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
31640$as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
31641if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then :
31642  ans=yes
31643else
31644  ans=no
31645
31646fi
31647
31648	case "$ans" in
31649	 no)
31650
31651$as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h
31652
31653	esac
31654
31655	CFLAGS=$save_CFLAGS
31656	{ save_CFLAGS=; unset save_CFLAGS;}
31657	CPPFLAGS=$save_CPPFLAGS
31658	{ save_CPPFLAGS=; unset save_CPPFLAGS;}
31659	LIBS=$save_LIBS
31660	{ save_LIBS=; unset save_LIBS;}
31661	;;
31662     *)
31663	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5
31664$as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;}
31665	;;
31666    esac
31667    ;;
31668esac
31669
31670
31671case "$MAKE_NTPSNMPD" in
31672 '')
31673    NTPSNMPD_DB=
31674    NTPSNMPD_DL=
31675    NTPSNMPD_DS=
31676    NTPSNMPD_MS=
31677    ;;
31678esac
31679
31680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
31681$as_echo_n "checking if we should always slew the time... " >&6; }
31682
31683# target-specific defaults
31684
31685case "$host" in
31686 *-apple-aux[23]*)
31687    ans=yes
31688    ;;
31689 *-*-bsdi[012]*)
31690    ans=no
31691    ;;
31692 *-*-bsdi*)
31693    ans=yes
31694    ;;
31695 *-*-openvms*)	# HMS: won't be found
31696    ans=yes
31697    ;;
31698 *) ans=no
31699    ;;
31700esac
31701
31702# --enable-slew-always / --disable-slew-always overrides default
31703
31704# Check whether --enable-slew-always was given.
31705if test "${enable_slew_always+set}" = set; then :
31706  enableval=$enable_slew_always; ans=$enableval
31707
31708fi
31709
31710
31711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31712$as_echo "$ans" >&6; }
31713
31714case "$ans" in
31715 yes)
31716
31717$as_echo "#define SLEWALWAYS 1" >>confdefs.h
31718
31719esac
31720
31721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
31722$as_echo_n "checking if we should step and slew the time... " >&6; }
31723
31724case "$host" in
31725 *-sni-sysv*)
31726    ans=yes
31727    ;;
31728 *-stratus-vos)
31729    ans=no
31730    ;;
31731 *-univel-sysv*)
31732    ans=no
31733    ;;
31734 *-*-ptx*)
31735    ans=yes
31736    ;;
31737 *-*-solaris2.1[0-9]*)
31738    ans=no
31739    ;;
31740 *-*-solaris2.[012]*)
31741    ans=yes
31742    ;;
31743 *-*-sysv4*)	# HMS: Does this catch Fujitsu UXP?
31744    ans=yes
31745    ;;
31746 *) ans=no
31747    ;;
31748esac
31749
31750# Check whether --enable-step-slew was given.
31751if test "${enable_step_slew+set}" = set; then :
31752  enableval=$enable_step_slew; ans=$enableval
31753
31754fi
31755
31756
31757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31758$as_echo "$ans" >&6; }
31759
31760case "$ans" in
31761 yes)
31762
31763$as_echo "#define STEP_SLEW 1" >>confdefs.h
31764
31765esac
31766
31767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
31768$as_echo_n "checking if ntpdate should step the time... " >&6; }
31769
31770case "$host" in
31771 *-apple-aux[23]*)
31772    ans=yes
31773    ;;
31774 *) ans=no
31775    ;;
31776esac
31777
31778# Check whether --enable-ntpdate-step was given.
31779if test "${enable_ntpdate_step+set}" = set; then :
31780  enableval=$enable_ntpdate_step; ans=$enableval
31781
31782fi
31783
31784
31785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31786$as_echo "$ans" >&6; }
31787
31788case "$ans" in
31789 yes)
31790
31791$as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
31792
31793esac
31794
31795
31796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
31797$as_echo_n "checking if we should sync TODR clock every hour... " >&6; }
31798
31799case "$host" in
31800 *-*-nextstep*)
31801    ans=yes
31802    ;;
31803 *-*-openvms*)	# HMS: won't be found
31804    ans=yes
31805    ;;
31806 *)
31807    ans=no
31808    ;;
31809esac
31810
31811# Check whether --enable-hourly-todr-sync was given.
31812if test "${enable_hourly_todr_sync+set}" = set; then :
31813  enableval=$enable_hourly_todr_sync; ans=$enableval
31814
31815fi
31816
31817
31818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31819$as_echo "$ans" >&6; }
31820
31821case "$ac_cv_var_sync_todr" in
31822 yes)
31823
31824$as_echo "#define DOSYNCTODR 1" >>confdefs.h
31825 ;;
31826esac
31827
31828
31829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
31830$as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }
31831
31832case "$host" in
31833 *-*-solaris2.6)
31834    unamev=`uname -v`
31835    case "$unamev" in
31836     Generic_105181-*)
31837	old_IFS="$IFS"
31838	IFS="-"
31839	set $unamev
31840	IFS="$old_IFS"
31841	if test "$2" -ge 17
31842	then
31843	    # Generic_105181-17 and higher
31844	    ans=no
31845	else
31846	    ans=yes
31847	fi
31848	;;
31849     *)
31850	ans=yes
31851	;;
31852    esac
31853    ;;
31854 *-*-solaris2.7)
31855    unamev=`uname -v`
31856    case "$unamev" in
31857     Generic_106541-*)
31858	old_IFS="$IFS"
31859	IFS="-"
31860	set $unamev
31861	IFS="$old_IFS"
31862	if test "$2" -ge 07
31863	then
31864	    # Generic_106541-07 and higher
31865	    ans=no
31866	else
31867	    ans=yes
31868	fi
31869	;;
31870     *)
31871	ans=yes
31872	;;
31873    esac
31874    ;;
31875 *)
31876    ans=no
31877    ;;
31878esac
31879
31880# Check whether --enable-kernel-fll-bug was given.
31881if test "${enable_kernel_fll_bug+set}" = set; then :
31882  enableval=$enable_kernel_fll_bug; ans=$enableval
31883
31884fi
31885
31886
31887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31888$as_echo "$ans" >&6; }
31889
31890case "$ans" in
31891 yes)
31892
31893$as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h
31894
31895esac
31896
31897
31898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
31899$as_echo_n "checking if we want new session key behavior... " >&6; }
31900# Check whether --enable-bug1243-fix was given.
31901if test "${enable_bug1243_fix+set}" = set; then :
31902  enableval=$enable_bug1243_fix; ans=$enableval
31903else
31904  ans=yes
31905
31906fi
31907
31908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31909$as_echo "$ans" >&6; }
31910case "$ans" in
31911 no)
31912
31913$as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h
31914
31915esac
31916
31917
31918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the explicit 127.0.0.0/8 martian filter" >&5
31919$as_echo_n "checking if we want the explicit 127.0.0.0/8 martian filter... " >&6; }
31920# Check whether --enable-bug3020-fix was given.
31921if test "${enable_bug3020_fix+set}" = set; then :
31922  enableval=$enable_bug3020_fix; ans=$enableval
31923else
31924  ans=yes
31925
31926fi
31927
31928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31929$as_echo "$ans" >&6; }
31930case "$ans" in
31931 yes)
31932
31933$as_echo "#define ENABLE_BUG3020_FIX 1" >>confdefs.h
31934
31935esac
31936
31937
31938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
31939$as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }
31940
31941case "$host" in
31942 *-*-solaris2.[89])
31943    ans=yes
31944    ;;
31945 *-*-solaris2.1[0-9]*)
31946    ans=yes
31947    ;;
31948 *) ans=no
31949    ;;
31950esac
31951
31952# Check whether --enable-irig-sawtooth was given.
31953if test "${enable_irig_sawtooth+set}" = set; then :
31954  enableval=$enable_irig_sawtooth; ans=$enableval
31955
31956fi
31957
31958
31959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31960$as_echo "$ans" >&6; }
31961
31962case "$ans" in
31963 yes)
31964
31965$as_echo "#define IRIG_SUCKS 1" >>confdefs.h
31966
31967esac
31968
31969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
31970$as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }
31971# Check whether --enable-nist was given.
31972if test "${enable_nist+set}" = set; then :
31973  enableval=$enable_nist; ans=$enableval
31974else
31975  ans=no
31976
31977fi
31978
31979
31980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31981$as_echo "$ans" >&6; }
31982
31983case "$ans" in
31984 yes)
31985
31986$as_echo "#define LOCKCLOCK 1" >>confdefs.h
31987 ;;
31988esac
31989
31990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
31991$as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }
31992# Check whether --enable-ntp-signd was given.
31993if test "${enable_ntp_signd+set}" = set; then :
31994  enableval=$enable_ntp_signd; ans=$enableval
31995else
31996  ans=no
31997
31998fi
31999
32000
32001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32002$as_echo "$ans" >&6; }
32003
32004case "$ans" in
32005 no)
32006    ntp_signd_path=
32007    ;;
32008 yes)
32009    ntp_signd_path=/var/run/ntp_signd
32010    ;;
32011 *)
32012    ntp_signd_path="$ans"
32013esac
32014
32015case "$ntp_signd_path" in
32016 '')
32017    ;;
32018 *)
32019
32020$as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h
32021
32022
32023cat >>confdefs.h <<_ACEOF
32024#define NTP_SIGND_PATH "$ntp_signd_path"
32025_ACEOF
32026
32027    ;;
32028esac
32029
32030for ac_header in libscf.h
32031do :
32032  ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
32033if test "x$ac_cv_header_libscf_h" = xyes; then :
32034  cat >>confdefs.h <<_ACEOF
32035#define HAVE_LIBSCF_H 1
32036_ACEOF
32037
32038fi
32039
32040done
32041
32042LSCF=
32043case "$ac_cv_header_libscf_h" in
32044 yes)
32045    LSCF='-lscf'
32046esac
32047
32048
32049
32050
32051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
32052$as_echo_n "checking for struct sockaddr_storage... " >&6; }
32053if ${ntp_cv_sockaddr_storage+:} false; then :
32054  $as_echo_n "(cached) " >&6
32055else
32056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32057/* end confdefs.h.  */
32058
32059		#ifdef HAVE_SYS_TYPES_H
32060		# include <sys/types.h>
32061		#endif
32062		#ifdef HAVE_SYS_SOCKET_H
32063		# include <sys/socket.h>
32064		#endif
32065		#ifdef HAVE_NETINET_IN_H
32066		# include <netinet/in.h>
32067		#endif
32068
32069int
32070main ()
32071{
32072
32073		struct sockaddr_storage n;
32074
32075
32076  ;
32077  return 0;
32078}
32079_ACEOF
32080if ac_fn_c_try_compile "$LINENO"; then :
32081  ntp_cv_sockaddr_storage=yes
32082else
32083  ntp_cv_sockaddr_storage=no
32084
32085fi
32086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32087
32088fi
32089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
32090$as_echo "$ntp_cv_sockaddr_storage" >&6; }
32091case "$ntp_cv_sockaddr_storage" in
32092 yes)
32093
32094$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
32095
32096    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
32097$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
32098if ${ntp_cv_have___ss_family+:} false; then :
32099  $as_echo_n "(cached) " >&6
32100else
32101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32102/* end confdefs.h.  */
32103
32104		    #ifdef HAVE_SYS_TYPES_H
32105		    # include <sys/types.h>
32106		    #endif
32107		    #ifdef HAVE_SYS_SOCKET_H
32108		    # include <sys/socket.h>
32109		    #endif
32110		    #ifdef HAVE_NETINET_IN_H
32111		    # include <netinet/in.h>
32112		    #endif
32113
32114int
32115main ()
32116{
32117
32118		    struct sockaddr_storage s;
32119		    s.__ss_family = 1;
32120
32121
32122  ;
32123  return 0;
32124}
32125_ACEOF
32126if ac_fn_c_try_compile "$LINENO"; then :
32127  ntp_cv_have___ss_family=yes
32128else
32129  ntp_cv_have___ss_family=no
32130
32131fi
32132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32133
32134fi
32135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
32136$as_echo "$ntp_cv_have___ss_family" >&6; }
32137    case "$ntp_cv_have___ss_family" in
32138     yes)
32139
32140$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
32141
32142    esac
32143
32144esac
32145
32146
32147#
32148# Look for in_port_t.
32149#
32150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
32151$as_echo_n "checking for in_port_t... " >&6; }
32152if ${isc_cv_have_in_port_t+:} false; then :
32153  $as_echo_n "(cached) " >&6
32154else
32155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32156/* end confdefs.h.  */
32157
32158		#include <sys/types.h>
32159		#include <netinet/in.h>
32160
32161int
32162main ()
32163{
32164
32165		in_port_t port = 25;
32166		return (0);
32167
32168
32169  ;
32170  return 0;
32171}
32172_ACEOF
32173if ac_fn_c_try_compile "$LINENO"; then :
32174  isc_cv_have_in_port_t=yes
32175else
32176  isc_cv_have_in_port_t=no
32177
32178fi
32179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32180
32181fi
32182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
32183$as_echo "$isc_cv_have_in_port_t" >&6; }
32184case "$isc_cv_have_in_port_t" in
32185 no)
32186
32187$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
32188
32189esac
32190
32191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
32192$as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
32193if ${ntp_cv_getsockname_socklen_type+:} false; then :
32194  $as_echo_n "(cached) " >&6
32195else
32196
32197    getsockname_socklen_type_found=no
32198    for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
32199	for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
32200	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32201/* end confdefs.h.  */
32202
32203			#ifdef HAVE_SYS_TYPES_H
32204			# include <sys/types.h>
32205			#endif
32206			#ifdef HAVE_SYS_SOCKET_H
32207			# include <sys/socket.h>
32208			#endif
32209
32210int
32211main ()
32212{
32213
32214			extern
32215			getsockname(int, $getsockname_arg2,
32216				$ntp_cv_getsockname_socklen_type *);
32217
32218
32219  ;
32220  return 0;
32221}
32222_ACEOF
32223if ac_fn_c_try_compile "$LINENO"; then :
32224  getsockname_socklen_type_found=yes ; break 2
32225fi
32226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32227	done
32228    done
32229    case "$getsockname_socklen_type_found" in
32230     no)
32231	ntp_cv_getsockname_socklen_type='socklen_t'
32232    esac
32233    { getsockname_arg2=; unset getsockname_arg2;}
32234    { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
32235
32236
32237fi
32238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
32239$as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
32240
32241cat >>confdefs.h <<_ACEOF
32242#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
32243_ACEOF
32244
32245
32246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
32247$as_echo_n "checking struct sockaddr for sa_len... " >&6; }
32248if ${isc_cv_platform_havesalen+:} false; then :
32249  $as_echo_n "(cached) " >&6
32250else
32251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32252/* end confdefs.h.  */
32253
32254		#include <sys/types.h>
32255		#include <sys/socket.h>
32256
32257int
32258main ()
32259{
32260
32261		extern struct sockaddr *ps;
32262		return ps->sa_len;
32263
32264
32265  ;
32266  return 0;
32267}
32268_ACEOF
32269if ac_fn_c_try_compile "$LINENO"; then :
32270  isc_cv_platform_havesalen=yes
32271else
32272  isc_cv_platform_havesalen=no
32273
32274fi
32275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32276
32277fi
32278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
32279$as_echo "$isc_cv_platform_havesalen" >&6; }
32280case "$isc_cv_platform_havesalen" in
32281 yes)
32282
32283$as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
32284
32285esac
32286
32287# Check whether --enable-ipv6 was given.
32288if test "${enable_ipv6+set}" = set; then :
32289  enableval=$enable_ipv6;
32290fi
32291
32292
32293case "$enable_ipv6" in
32294 yes|''|autodetect)
32295    case "$host" in
32296     powerpc-ibm-aix4*)
32297	;;
32298     *)
32299
32300$as_echo "#define WANT_IPV6 1" >>confdefs.h
32301
32302	;;
32303    esac
32304    ;;
32305 no)
32306    ;;
32307esac
32308
32309
32310case "$host" in
32311 *-*-darwin*)
32312
32313$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
32314
32315esac
32316
32317
32318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
32319$as_echo_n "checking for IPv6 structures... " >&6; }
32320if ${isc_cv_found_ipv6+:} false; then :
32321  $as_echo_n "(cached) " >&6
32322else
32323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32324/* end confdefs.h.  */
32325
32326		#include <sys/types.h>
32327		#include <sys/socket.h>
32328		#include <netinet/in.h>
32329
32330int
32331main ()
32332{
32333
32334		struct sockaddr_in6 sin6;
32335
32336
32337  ;
32338  return 0;
32339}
32340_ACEOF
32341if ac_fn_c_try_compile "$LINENO"; then :
32342  isc_cv_found_ipv6=yes
32343else
32344  isc_cv_found_ipv6=no
32345
32346fi
32347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32348
32349fi
32350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
32351$as_echo "$isc_cv_found_ipv6" >&6; }
32352
32353#
32354# See whether IPv6 support is provided via a Kame add-on.
32355# This is done before other IPv6 linking tests so LIBS is properly set.
32356#
32357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
32358$as_echo_n "checking for Kame IPv6 support... " >&6; }
32359
32360# Check whether --with-kame was given.
32361if test "${with_kame+set}" = set; then :
32362  withval=$with_kame; use_kame="$withval"
32363else
32364  use_kame="no"
32365
32366fi
32367
32368case "$use_kame" in
32369 no)
32370    ;;
32371 yes)
32372    kame_path=/usr/local/v6
32373    ;;
32374 *)
32375    kame_path="$use_kame"
32376    ;;
32377esac
32378case "$use_kame" in
32379 no)
32380    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32381$as_echo "no" >&6; }
32382    ;;
32383 *)
32384    if test -f $kame_path/lib/libinet6.a; then
32385	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
32386$as_echo "$kame_path/lib/libinet6.a" >&6; }
32387	LIBS="-L$kame_path/lib -linet6 $LIBS"
32388    else
32389	as_fn_error $? "$kame_path/lib/libinet6.a not found.
32390
32391Please choose the proper path with the following command:
32392
32393    configure --with-kame=PATH
32394" "$LINENO" 5
32395    fi
32396    ;;
32397esac
32398
32399#
32400# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
32401# Including it on Kame-using platforms is very bad, though, because
32402# Kame uses #error against direct inclusion.   So include it on only
32403# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
32404# This is done before the in6_pktinfo check because that's what
32405# netinet6/in6.h is needed for.
32406#
32407case "$host" in
32408 *-bsdi4.[01]*)
32409
32410$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
32411
32412    isc_netinet6in6_hack="#include <netinet6/in6.h>"
32413    ;;
32414 *)
32415    isc_netinet6in6_hack=""
32416    ;;
32417esac
32418
32419#
32420# This is similar to the netinet6/in6.h issue.
32421#
32422case "$host" in
32423 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
32424
32425$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
32426
32427    isc_netinetin6_hack="#include <netinet/in6.h>"
32428    ;;
32429 *)
32430    isc_netinetin6_hack=""
32431    ;;
32432esac
32433
32434
32435case "$isc_cv_found_ipv6" in
32436 yes)
32437
32438$as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
32439
32440    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
32441$as_echo_n "checking for in6_pktinfo... " >&6; }
32442if ${isc_cv_have_in6_pktinfo+:} false; then :
32443  $as_echo_n "(cached) " >&6
32444else
32445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32446/* end confdefs.h.  */
32447
32448		    #include <sys/types.h>
32449		    #include <sys/socket.h>
32450		    #include <netinet/in.h>
32451		    $isc_netinetin6_hack
32452		    $isc_netinet6in6_hack
32453
32454int
32455main ()
32456{
32457
32458		    struct in6_pktinfo xyzzy;
32459
32460
32461  ;
32462  return 0;
32463}
32464_ACEOF
32465if ac_fn_c_try_compile "$LINENO"; then :
32466  isc_cv_have_in6_pktinfo=yes
32467else
32468  isc_cv_have_in6_pktinfo=no
32469
32470fi
32471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32472
32473fi
32474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
32475$as_echo "$isc_cv_have_in6_pktinfo" >&6; }
32476    case "$isc_cv_have_in6_pktinfo" in
32477     yes)
32478
32479$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
32480
32481    esac
32482
32483
32484    # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
32485    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
32486$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
32487if ${isc_cv_have_sin6_scope_id+:} false; then :
32488  $as_echo_n "(cached) " >&6
32489else
32490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32491/* end confdefs.h.  */
32492
32493		    #include <sys/types.h>
32494		    #include <sys/socket.h>
32495		    #include <netinet/in.h>
32496		    $isc_netinetin6_hack
32497		    $isc_netinet6in6_hack
32498
32499int
32500main ()
32501{
32502
32503		    struct sockaddr_in6 xyzzy;
32504		    xyzzy.sin6_scope_id = 0;
32505
32506
32507  ;
32508  return 0;
32509}
32510_ACEOF
32511if ac_fn_c_try_compile "$LINENO"; then :
32512  isc_cv_have_sin6_scope_id=yes
32513else
32514  isc_cv_have_sin6_scope_id=no
32515
32516fi
32517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32518
32519fi
32520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
32521$as_echo "$isc_cv_have_sin6_scope_id" >&6; }
32522
32523    case "$isc_cv_have_sin6_scope_id" in
32524     yes)
32525
32526$as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
32527
32528    esac
32529esac
32530
32531
32532# We need this check run even without isc_cv_found_ipv6=yes
32533
32534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
32535$as_echo_n "checking for in6addr_any... " >&6; }
32536if ${isc_cv_in6addr_any_links+:} false; then :
32537  $as_echo_n "(cached) " >&6
32538else
32539
32540	SAVED_LIBS="$LIBS"
32541	LIBS="$LDADD_LIBNTP $LIBS"
32542	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32543/* end confdefs.h.  */
32544$ac_includes_default
32545		    #include <sys/socket.h>
32546		    #include <netinet/in.h>
32547		    $isc_netinetin6_hack
32548		    $isc_netinet6in6_hack
32549
32550int
32551main ()
32552{
32553
32554		    printf("%x", in6addr_any.s6_addr[15]);
32555
32556
32557  ;
32558  return 0;
32559}
32560_ACEOF
32561if ac_fn_c_try_link "$LINENO"; then :
32562  isc_cv_in6addr_any_links=yes
32563else
32564  isc_cv_in6addr_any_links=no
32565
32566fi
32567rm -f core conftest.err conftest.$ac_objext \
32568    conftest$ac_exeext conftest.$ac_ext
32569	LIBS="$SAVED_LIBS"
32570	{ SAVED_LIBS=; unset SAVED_LIBS;}
32571
32572
32573fi
32574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
32575$as_echo "$isc_cv_in6addr_any_links" >&6; }
32576
32577case "$isc_cv_in6addr_any_links" in
32578 no)
32579
32580$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
32581
32582esac
32583
32584
32585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
32586$as_echo_n "checking for struct if_laddrconf... " >&6; }
32587if ${isc_cv_struct_if_laddrconf+:} false; then :
32588  $as_echo_n "(cached) " >&6
32589else
32590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32591/* end confdefs.h.  */
32592
32593		#include <sys/types.h>
32594		#include <net/if6.h>
32595
32596int
32597main ()
32598{
32599
32600		struct if_laddrconf a;
32601
32602
32603  ;
32604  return 0;
32605}
32606_ACEOF
32607if ac_fn_c_try_compile "$LINENO"; then :
32608  isc_cv_struct_if_laddrconf=yes
32609else
32610  isc_cv_struct_if_laddrconf=no
32611
32612fi
32613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32614
32615fi
32616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
32617$as_echo "$isc_cv_struct_if_laddrconf" >&6; }
32618
32619case "$isc_cv_struct_if_laddrconf" in
32620 yes)
32621
32622$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
32623
32624esac
32625
32626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
32627$as_echo_n "checking for struct if_laddrreq... " >&6; }
32628if ${isc_cv_struct_if_laddrreq+:} false; then :
32629  $as_echo_n "(cached) " >&6
32630else
32631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32632/* end confdefs.h.  */
32633
32634		#include <sys/types.h>
32635		#include <net/if6.h>
32636
32637int
32638main ()
32639{
32640
32641		struct if_laddrreq a;
32642
32643
32644  ;
32645  return 0;
32646}
32647_ACEOF
32648if ac_fn_c_try_compile "$LINENO"; then :
32649  isc_cv_struct_if_laddrreq=yes
32650else
32651  isc_cv_struct_if_laddrreq=no
32652
32653fi
32654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32655
32656fi
32657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
32658$as_echo "$isc_cv_struct_if_laddrreq" >&6; }
32659
32660case "$isc_cv_struct_if_laddrreq" in
32661 yes)
32662
32663$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
32664
32665esac
32666
32667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
32668$as_echo_n "checking for multicast IP support... " >&6; }
32669if ${ntp_cv_multicast+:} false; then :
32670  $as_echo_n "(cached) " >&6
32671else
32672
32673	ntp_cv_multicast=no
32674	case "$host" in
32675	 i386-sequent-sysv4)
32676	    ;;
32677	 *)
32678	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32679/* end confdefs.h.  */
32680
32681			#ifdef HAVE_NETINET_IN_H
32682			# include <netinet/in.h>
32683			#endif
32684
32685int
32686main ()
32687{
32688
32689			struct ip_mreq ipmr;
32690			ipmr.imr_interface.s_addr = 0;
32691
32692
32693  ;
32694  return 0;
32695}
32696_ACEOF
32697if ac_fn_c_try_compile "$LINENO"; then :
32698  ntp_cv_multicast=yes
32699fi
32700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32701	    ;;
32702	esac
32703
32704
32705fi
32706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
32707$as_echo "$ntp_cv_multicast" >&6; }
32708case "$ntp_cv_multicast" in
32709 yes)
32710
32711$as_echo "#define MCAST 1" >>confdefs.h
32712
32713    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
32714$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
32715if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
32716  $as_echo_n "(cached) " >&6
32717else
32718
32719	    case "$host" in
32720	     *-*-netbsd*|*-*-*linux*)
32721		ntp_cv_typeof_ip_multicast_loop=u_int
32722		;;
32723	     *)
32724		ntp_cv_typeof_ip_multicast_loop=u_char
32725		;;
32726	    esac
32727
32728
32729fi
32730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
32731$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
32732
32733cat >>confdefs.h <<_ACEOF
32734#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
32735_ACEOF
32736
32737esac
32738
32739# Check whether --enable-getifaddrs was given.
32740if test "${enable_getifaddrs+set}" = set; then :
32741  enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
32742else
32743  want_getifaddrs="yes"
32744
32745fi
32746
32747
32748case $want_getifaddrs in
32749 glibc)
32750    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
32751$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
32752esac
32753case $want_getifaddrs in
32754 no)
32755    ;;
32756 *)
32757    SAVED_LIBS="$LIBS"
32758    LIBS="$LDADD_LIBNTP $LIBS"
32759    for ac_func in getifaddrs
32760do :
32761  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
32762if test "x$ac_cv_func_getifaddrs" = xyes; then :
32763  cat >>confdefs.h <<_ACEOF
32764#define HAVE_GETIFADDRS 1
32765_ACEOF
32766
32767fi
32768done
32769
32770    LIBS="$SAVED_LIBS"
32771    { SAVED_LIBS=; unset SAVED_LIBS;}
32772    ;;
32773esac
32774
32775#
32776# Check for if_nametoindex() for IPv6 scoped addresses support
32777#
32778case "$host" in
32779 *-hp-hpux*)
32780    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
32781$as_echo_n "checking for library containing if_nametoindex... " >&6; }
32782if ${ac_cv_search_if_nametoindex+:} false; then :
32783  $as_echo_n "(cached) " >&6
32784else
32785  ac_func_search_save_LIBS=$LIBS
32786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32787/* end confdefs.h.  */
32788
32789/* Override any GCC internal prototype to avoid an error.
32790   Use char because int might match the return type of a GCC
32791   builtin and then its argument prototype would still apply.  */
32792#ifdef __cplusplus
32793extern "C"
32794#endif
32795char if_nametoindex ();
32796int
32797main ()
32798{
32799return if_nametoindex ();
32800  ;
32801  return 0;
32802}
32803_ACEOF
32804for ac_lib in '' ipv6; do
32805  if test -z "$ac_lib"; then
32806    ac_res="none required"
32807  else
32808    ac_res=-l$ac_lib
32809    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32810  fi
32811  if ac_fn_c_try_link "$LINENO"; then :
32812  ac_cv_search_if_nametoindex=$ac_res
32813fi
32814rm -f core conftest.err conftest.$ac_objext \
32815    conftest$ac_exeext
32816  if ${ac_cv_search_if_nametoindex+:} false; then :
32817  break
32818fi
32819done
32820if ${ac_cv_search_if_nametoindex+:} false; then :
32821
32822else
32823  ac_cv_search_if_nametoindex=no
32824fi
32825rm conftest.$ac_ext
32826LIBS=$ac_func_search_save_LIBS
32827fi
32828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
32829$as_echo "$ac_cv_search_if_nametoindex" >&6; }
32830ac_res=$ac_cv_search_if_nametoindex
32831if test "$ac_res" != no; then :
32832  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32833
32834fi
32835
32836esac
32837SAVED_LIBS="$LIBS"
32838LIBS="$LDADD_LIBNTP $LIBS"
32839for ac_func in if_nametoindex
32840do :
32841  ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
32842if test "x$ac_cv_func_if_nametoindex" = xyes; then :
32843  cat >>confdefs.h <<_ACEOF
32844#define HAVE_IF_NAMETOINDEX 1
32845_ACEOF
32846
32847fi
32848done
32849
32850LIBS="$SAVED_LIBS"
32851{ SAVED_LIBS=; unset SAVED_LIBS;}
32852case "$ac_cv_func_if_nametoindex" in
32853 yes)
32854
32855$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
32856
32857esac
32858
32859
32860
32861
32862#
32863# Look for a sysctl call to get the list of network interfaces.
32864#
32865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
32866$as_echo_n "checking for interface list sysctl... " >&6; }
32867if ${ntp_cv_iflist_sysctl+:} false; then :
32868  $as_echo_n "(cached) " >&6
32869else
32870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32871/* end confdefs.h.  */
32872
32873	    #include <sys/param.h>
32874	    #include <sys/sysctl.h>
32875	    #include <sys/socket.h>
32876	    #ifndef NET_RT_IFLIST
32877	    # error
32878	    #endif
32879
32880_ACEOF
32881if ac_fn_c_try_cpp "$LINENO"; then :
32882  ntp_cv_iflist_sysctl=yes
32883else
32884  ntp_cv_iflist_sysctl=no
32885
32886fi
32887rm -f conftest.err conftest.i conftest.$ac_ext
32888
32889fi
32890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5
32891$as_echo "$ntp_cv_iflist_sysctl" >&6; }
32892case "$ntp_cv_iflist_sysctl" in
32893 yes)
32894
32895$as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
32896
32897esac
32898
32899###
32900
32901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
32902$as_echo_n "checking if we want the saveconfig mechanism... " >&6; }
32903# Check whether --enable-saveconfig was given.
32904if test "${enable_saveconfig+set}" = set; then :
32905  enableval=$enable_saveconfig; ntp_ok=$enableval
32906else
32907  ntp_ok=yes
32908
32909fi
32910
32911ntp_saveconfig_enabled=0
32912case "$ntp_ok" in
32913 yes)
32914    ntp_saveconfig_enabled=1
32915
32916$as_echo "#define SAVECONFIG 1" >>confdefs.h
32917
32918    ;;
32919esac
32920 if test x$ntp_saveconfig_enabled = x1; then
32921  SAVECONFIG_ENABLED_TRUE=
32922  SAVECONFIG_ENABLED_FALSE='#'
32923else
32924  SAVECONFIG_ENABLED_TRUE='#'
32925  SAVECONFIG_ENABLED_FALSE=
32926fi
32927
32928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32929$as_echo "$ntp_ok" >&6; }
32930
32931###
32932
32933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5
32934$as_echo_n "checking if we want the experimental leap smear code... " >&6; }
32935# Check whether --enable-leap-smear was given.
32936if test "${enable_leap_smear+set}" = set; then :
32937  enableval=$enable_leap_smear; ntp_ok=$enableval
32938else
32939  ntp_ok=no
32940
32941fi
32942
32943ntp_leap_smear_enabled=0
32944case "$ntp_ok" in
32945 yes)
32946    ntp_leap_smear_enabled=1
32947
32948$as_echo "#define LEAP_SMEAR 1" >>confdefs.h
32949
32950
32951    HAVE_LEAPSMEARINTERVAL="leapsmearinterval 0"
32952    ;;
32953esac
32954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32955$as_echo "$ntp_ok" >&6; }
32956
32957###
32958
32959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want dynamic interleave support" >&5
32960$as_echo_n "checking if we want dynamic interleave support... " >&6; }
32961# Check whether --enable-dynamic-interleave was given.
32962if test "${enable_dynamic_interleave+set}" = set; then :
32963  enableval=$enable_dynamic_interleave; ntp_ok=$enableval
32964else
32965  ntp_ok=no
32966
32967fi
32968
32969ntp_dynamic_interleave=0
32970case "$ntp_ok" in
32971 yes)
32972    ntp_dynamic_interleave=1
32973    ;;
32974esac
32975
32976cat >>confdefs.h <<_ACEOF
32977#define DYNAMIC_INTERLEAVE $ntp_dynamic_interleave
32978_ACEOF
32979
32980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32981$as_echo "$ntp_ok" >&6; }
32982
32983
32984# We may not need have_unity
32985have_unity=false
32986# Extract the first word of "ruby", so it can be a program name with args.
32987set dummy ruby; ac_word=$2
32988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32989$as_echo_n "checking for $ac_word... " >&6; }
32990if ${ac_cv_path_PATH_RUBY+:} false; then :
32991  $as_echo_n "(cached) " >&6
32992else
32993  case $PATH_RUBY in
32994  [\\/]* | ?:[\\/]*)
32995  ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
32996  ;;
32997  *)
32998  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32999for as_dir in $PATH
33000do
33001  IFS=$as_save_IFS
33002  test -z "$as_dir" && as_dir=.
33003    for ac_exec_ext in '' $ac_executable_extensions; do
33004  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33005    ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
33006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33007    break 2
33008  fi
33009done
33010  done
33011IFS=$as_save_IFS
33012
33013  ;;
33014esac
33015fi
33016PATH_RUBY=$ac_cv_path_PATH_RUBY
33017if test -n "$PATH_RUBY"; then
33018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
33019$as_echo "$PATH_RUBY" >&6; }
33020else
33021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33022$as_echo "no" >&6; }
33023fi
33024
33025
33026case "$PATH_RUBY" in
33027 /*)
33028    have_unity=true
33029    ;;
33030 *) PATH_RUBY="false"
33031    ;;
33032esac
33033# We may not need UNITYBUILD_AVAILABLE
33034 if $have_unity; then
33035  UNITYBUILD_AVAILABLE_TRUE=
33036  UNITYBUILD_AVAILABLE_FALSE='#'
33037else
33038  UNITYBUILD_AVAILABLE_TRUE='#'
33039  UNITYBUILD_AVAILABLE_FALSE=
33040fi
33041
33042
33043
33044
33045
33046gta=false
33047
33048# Check whether --with-gtest was given.
33049if test "${with_gtest+set}" = set; then :
33050  withval=$with_gtest; try_gtest=$withval
33051else
33052  try_gtest=yes
33053
33054fi
33055
33056case "$try_gtest" in
33057 yes)
33058    # Extract the first word of "gtest-config", so it can be a program name with args.
33059set dummy gtest-config; ac_word=$2
33060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33061$as_echo_n "checking for $ac_word... " >&6; }
33062if ${ac_cv_path_GTEST_CONFIG+:} false; then :
33063  $as_echo_n "(cached) " >&6
33064else
33065  case $GTEST_CONFIG in
33066  [\\/]* | ?:[\\/]*)
33067  ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
33068  ;;
33069  *)
33070  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33071for as_dir in $PATH
33072do
33073  IFS=$as_save_IFS
33074  test -z "$as_dir" && as_dir=.
33075    for ac_exec_ext in '' $ac_executable_extensions; do
33076  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33077    ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33079    break 2
33080  fi
33081done
33082  done
33083IFS=$as_save_IFS
33084
33085  ;;
33086esac
33087fi
33088GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
33089if test -n "$GTEST_CONFIG"; then
33090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
33091$as_echo "$GTEST_CONFIG" >&6; }
33092else
33093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33094$as_echo "no" >&6; }
33095fi
33096
33097
33098    { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
33099    case x${GTEST_CONFIG} in
33100     x) ;;
33101     *)
33102	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
33103$as_echo_n "checking gtest version... " >&6; }
33104	gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
33105	case "$gtest_version_test" in
33106	 toolow*)
33107	    ;;
33108	 *)
33109	    GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
33110	    GTEST_LIBS=`$GTEST_CONFIG --libs`
33111	    GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
33112	    GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`
33113
33114
33115
33116
33117	    gta=true
33118	    ;;
33119	esac
33120	gtest_version=`$GTEST_CONFIG --version`
33121	case "$gta" in
33122	 true)
33123	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
33124$as_echo "($gtest_version) ok" >&6; }
33125	    ;;
33126	 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
33127$as_echo "($gtest_version) not ok" >&6; }
33128	    ;;
33129	esac
33130	{ gtest_version_test=; unset gtest_version_test;}
33131	{ gtest_version=; unset gtest_version;}
33132    esac
33133esac
33134 if $gta; then
33135  GTEST_AVAILABLE_TRUE=
33136  GTEST_AVAILABLE_FALSE='#'
33137else
33138  GTEST_AVAILABLE_TRUE='#'
33139  GTEST_AVAILABLE_FALSE=
33140fi
33141
33142
33143
33144
33145
33146case "$build" in
33147 $host)	cross=0 ;;
33148 *)	cross=1 ;;
33149esac
33150
33151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
33152$as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; }
33153# Check whether --enable-problem-tests was given.
33154if test "${enable_problem_tests+set}" = set; then :
33155  enableval=$enable_problem_tests; ntp_ept=$enableval
33156else
33157  ntp_ept=yes
33158
33159fi
33160
33161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ept" >&5
33162$as_echo "$ntp_ept" >&6; }
33163
33164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_restrict" >&5
33165$as_echo_n "checking if we can run test-ntp_restrict... " >&6; }
33166ntp_test_ntp_restrict="no"
33167case "$ntp_ept:$cross:$host" in
33168 no:0:*-*-freebsd6.4) ;;
33169 no:0:*-*-hpux11.23*) ;;
33170 no:0:*-*-solaris*) ;;
33171 *) ntp_test_ntp_restrict="yes" ;;
33172esac
33173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_restrict" >&5
33174$as_echo "$ntp_test_ntp_restrict" >&6; }
33175 if test x$ntp_test_ntp_restrict = xyes; then
33176  BUILD_TEST_NTP_RESTRICT_TRUE=
33177  BUILD_TEST_NTP_RESTRICT_FALSE='#'
33178else
33179  BUILD_TEST_NTP_RESTRICT_TRUE='#'
33180  BUILD_TEST_NTP_RESTRICT_FALSE=
33181fi
33182
33183
33184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_scanner" >&5
33185$as_echo_n "checking if we can run test-ntp_scanner... " >&6; }
33186ntp_test_ntp_scanner="no"
33187case "$ntp_ept:$cross:$host" in
33188 no:0:*-*-freebsd6.4) ;;
33189 no:0:*-*-solaris*) ;;
33190 *) ntp_test_ntp_scanner="yes" ;;
33191esac
33192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_scanner" >&5
33193$as_echo "$ntp_test_ntp_scanner" >&6; }
33194 if test x$ntp_test_ntp_scanner = xyes; then
33195  BUILD_TEST_NTP_SCANNER_TRUE=
33196  BUILD_TEST_NTP_SCANNER_FALSE='#'
33197else
33198  BUILD_TEST_NTP_SCANNER_TRUE='#'
33199  BUILD_TEST_NTP_SCANNER_FALSE=
33200fi
33201
33202
33203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_signd" >&5
33204$as_echo_n "checking if we can run test-ntp_signd... " >&6; }
33205ntp_test_ntp_signd="no"
33206case "$ntp_ept:$cross:$host" in
33207 no:0:*-*-freebsd6.4) ;;
33208 no:0:*-*-solaris*) ;;
33209 *) ntp_test_ntp_signd="yes" ;;
33210esac
33211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_signd" >&5
33212$as_echo "$ntp_test_ntp_signd" >&6; }
33213 if test x$ntp_test_ntp_signd = xyes; then
33214  BUILD_TEST_NTP_SIGND_TRUE=
33215  BUILD_TEST_NTP_SIGND_FALSE='#'
33216else
33217  BUILD_TEST_NTP_SIGND_TRUE='#'
33218  BUILD_TEST_NTP_SIGND_FALSE=
33219fi
33220
33221
33222
33223
33224###
33225
33226
33227  prefix_NONE=
33228  exec_prefix_NONE=
33229  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33230  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33231  eval ac_define_dir="\"$sysconfdir\""
33232  eval ac_define_dir="\"$ac_define_dir\""
33233  NTP_KEYSDIR="$ac_define_dir"
33234
33235
33236cat >>confdefs.h <<_ACEOF
33237#define NTP_KEYSDIR "$ac_define_dir"
33238_ACEOF
33239
33240  test "$prefix_NONE" && prefix=NONE
33241  test "$exec_prefix_NONE" && exec_prefix=NONE
33242
33243
33244ac_config_files="$ac_config_files Makefile"
33245
33246ac_config_files="$ac_config_files adjtimed/Makefile"
33247
33248ac_config_files="$ac_config_files clockstuff/Makefile"
33249
33250ac_config_files="$ac_config_files include/Makefile"
33251
33252ac_config_files="$ac_config_files include/isc/Makefile"
33253
33254ac_config_files="$ac_config_files kernel/Makefile"
33255
33256ac_config_files="$ac_config_files kernel/sys/Makefile"
33257
33258ac_config_files="$ac_config_files libntp/Makefile"
33259
33260ac_config_files="$ac_config_files libparse/Makefile"
33261
33262ac_config_files="$ac_config_files ntpd/Makefile"
33263
33264ac_config_files="$ac_config_files ntpd/complete.conf"
33265
33266ac_config_files="$ac_config_files ntpdate/Makefile"
33267
33268ac_config_files="$ac_config_files ntpdc/Makefile"
33269
33270ac_config_files="$ac_config_files ntpdc/nl.pl"
33271
33272ac_config_files="$ac_config_files ntpq/Makefile"
33273
33274ac_config_files="$ac_config_files ntpsnmpd/Makefile"
33275
33276ac_config_files="$ac_config_files parseutil/Makefile"
33277
33278ac_config_files="$ac_config_files scripts/Makefile"
33279
33280ac_config_files="$ac_config_files scripts/build/Makefile"
33281
33282ac_config_files="$ac_config_files scripts/build/genAuthors"
33283
33284ac_config_files="$ac_config_files scripts/build/mkver"
33285
33286ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"
33287
33288ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"
33289
33290ac_config_files="$ac_config_files scripts/lib/Makefile"
33291
33292ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"
33293
33294ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
33295
33296ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"
33297
33298ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
33299
33300ac_config_files="$ac_config_files scripts/ntptrace/Makefile"
33301
33302ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"
33303
33304ac_config_files="$ac_config_files scripts/ntpver"
33305
33306ac_config_files="$ac_config_files scripts/plot_summary"
33307
33308ac_config_files="$ac_config_files scripts/summary"
33309
33310ac_config_files="$ac_config_files scripts/update-leap/Makefile"
33311
33312ac_config_files="$ac_config_files scripts/update-leap/update-leap"
33313
33314ac_config_files="$ac_config_files tests/Makefile"
33315
33316ac_config_files="$ac_config_files tests/bug-2803/Makefile"
33317
33318ac_config_files="$ac_config_files tests/libntp/Makefile"
33319
33320ac_config_files="$ac_config_files tests/ntpd/Makefile"
33321
33322ac_config_files="$ac_config_files tests/ntpq/Makefile"
33323
33324ac_config_files="$ac_config_files tests/sandbox/Makefile"
33325
33326ac_config_files="$ac_config_files tests/sec-2853/Makefile"
33327
33328ac_config_files="$ac_config_files util/Makefile"
33329
33330
33331perllibdir="${datadir}/ntp/lib"
33332
33333  prefix_NONE=
33334  exec_prefix_NONE=
33335  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33336  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33337  eval ac_define_dir="\"$perllibdir\""
33338  eval ac_define_dir="\"$ac_define_dir\""
33339  PERLLIBDIR="$ac_define_dir"
33340
33341
33342cat >>confdefs.h <<_ACEOF
33343#define PERLLIBDIR "$ac_define_dir"
33344_ACEOF
33345
33346  test "$prefix_NONE" && prefix=NONE
33347  test "$exec_prefix_NONE" && exec_prefix=NONE
33348
33349
33350calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"
33351
33352ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"
33353
33354ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"
33355
33356ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"
33357
33358summary_opts="$srcdir/scripts/summary-opts"
33359
33360plot_summary_opts="$srcdir/scripts/plot_summary-opts"
33361
33362
33363
33364
33365subdirs="$subdirs sntp"
33366
33367
33368cat >confcache <<\_ACEOF
33369# This file is a shell script that caches the results of configure
33370# tests run on this system so they can be shared between configure
33371# scripts and configure runs, see configure's option --config-cache.
33372# It is not useful on other systems.  If it contains results you don't
33373# want to keep, you may remove or edit it.
33374#
33375# config.status only pays attention to the cache file if you give it
33376# the --recheck option to rerun configure.
33377#
33378# `ac_cv_env_foo' variables (set or unset) will be overridden when
33379# loading this file, other *unset* `ac_cv_foo' will be assigned the
33380# following values.
33381
33382_ACEOF
33383
33384# The following way of writing the cache mishandles newlines in values,
33385# but we know of no workaround that is simple, portable, and efficient.
33386# So, we kill variables containing newlines.
33387# Ultrix sh set writes to stderr and can't be redirected directly,
33388# and sets the high bit in the cache file unless we assign to the vars.
33389(
33390  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33391    eval ac_val=\$$ac_var
33392    case $ac_val in #(
33393    *${as_nl}*)
33394      case $ac_var in #(
33395      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33396$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33397      esac
33398      case $ac_var in #(
33399      _ | IFS | as_nl) ;; #(
33400      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
33401      *) { eval $ac_var=; unset $ac_var;} ;;
33402      esac ;;
33403    esac
33404  done
33405
33406  (set) 2>&1 |
33407    case $as_nl`(ac_space=' '; set) 2>&1` in #(
33408    *${as_nl}ac_space=\ *)
33409      # `set' does not quote correctly, so add quotes: double-quote
33410      # substitution turns \\\\ into \\, and sed turns \\ into \.
33411      sed -n \
33412	"s/'/'\\\\''/g;
33413	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33414      ;; #(
33415    *)
33416      # `set' quotes correctly as required by POSIX, so do not add quotes.
33417      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33418      ;;
33419    esac |
33420    sort
33421) |
33422  sed '
33423     /^ac_cv_env_/b end
33424     t clear
33425     :clear
33426     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33427     t end
33428     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33429     :end' >>confcache
33430if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33431  if test -w "$cache_file"; then
33432    if test "x$cache_file" != "x/dev/null"; then
33433      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33434$as_echo "$as_me: updating cache $cache_file" >&6;}
33435      if test ! -f "$cache_file" || test -h "$cache_file"; then
33436	cat confcache >"$cache_file"
33437      else
33438        case $cache_file in #(
33439        */* | ?:*)
33440	  mv -f confcache "$cache_file"$$ &&
33441	  mv -f "$cache_file"$$ "$cache_file" ;; #(
33442        *)
33443	  mv -f confcache "$cache_file" ;;
33444	esac
33445      fi
33446    fi
33447  else
33448    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33449$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33450  fi
33451fi
33452rm -f confcache
33453
33454test "x$prefix" = xNONE && prefix=$ac_default_prefix
33455# Let make expand exec_prefix.
33456test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33457
33458DEFS=-DHAVE_CONFIG_H
33459
33460ac_libobjs=
33461ac_ltlibobjs=
33462U=
33463for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33464  # 1. Remove the extension, and $U if already installed.
33465  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33466  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33467  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33468  #    will be set to the directory where LIBOBJS objects are built.
33469  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33470  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33471done
33472LIBOBJS=$ac_libobjs
33473
33474LTLIBOBJS=$ac_ltlibobjs
33475
33476
33477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
33478$as_echo_n "checking that generated files are newer than configure... " >&6; }
33479   if test -n "$am_sleep_pid"; then
33480     # Hide warnings about reused PIDs.
33481     wait $am_sleep_pid 2>/dev/null
33482   fi
33483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
33484$as_echo "done" >&6; }
33485 if test -n "$EXEEXT"; then
33486  am__EXEEXT_TRUE=
33487  am__EXEEXT_FALSE='#'
33488else
33489  am__EXEEXT_TRUE='#'
33490  am__EXEEXT_FALSE=
33491fi
33492
33493if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
33494  as_fn_error $? "conditional \"AMDEP\" was never defined.
33495Usually this means the macro was only invoked conditionally." "$LINENO" 5
33496fi
33497if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33498  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
33499Usually this means the macro was only invoked conditionally." "$LINENO" 5
33500fi
33501
33502if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
33503  as_fn_error $? "conditional \"VPATH_HACK\" was never defined.
33504Usually this means the macro was only invoked conditionally." "$LINENO" 5
33505fi
33506if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
33507  as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
33508Usually this means the macro was only invoked conditionally." "$LINENO" 5
33509fi
33510if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
33511  as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
33512Usually this means the macro was only invoked conditionally." "$LINENO" 5
33513fi
33514if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
33515  as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
33516Usually this means the macro was only invoked conditionally." "$LINENO" 5
33517fi
33518if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
33519  as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
33520Usually this means the macro was only invoked conditionally." "$LINENO" 5
33521fi
33522if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
33523  as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
33524Usually this means the macro was only invoked conditionally." "$LINENO" 5
33525fi
33526if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
33527  as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
33528Usually this means the macro was only invoked conditionally." "$LINENO" 5
33529fi
33530if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
33531  as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
33532Usually this means the macro was only invoked conditionally." "$LINENO" 5
33533fi
33534if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
33535  as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
33536Usually this means the macro was only invoked conditionally." "$LINENO" 5
33537fi
33538if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
33539  as_fn_error $? "conditional \"PTHREADS\" was never defined.
33540Usually this means the macro was only invoked conditionally." "$LINENO" 5
33541fi
33542if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
33543  as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
33544Usually this means the macro was only invoked conditionally." "$LINENO" 5
33545fi
33546if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
33547  as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined.
33548Usually this means the macro was only invoked conditionally." "$LINENO" 5
33549fi
33550if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
33551  as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
33552Usually this means the macro was only invoked conditionally." "$LINENO" 5
33553fi
33554if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
33555  as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
33556Usually this means the macro was only invoked conditionally." "$LINENO" 5
33557fi
33558if test -z "${BUILD_TEST_NTP_RESTRICT_TRUE}" && test -z "${BUILD_TEST_NTP_RESTRICT_FALSE}"; then
33559  as_fn_error $? "conditional \"BUILD_TEST_NTP_RESTRICT\" was never defined.
33560Usually this means the macro was only invoked conditionally." "$LINENO" 5
33561fi
33562if test -z "${BUILD_TEST_NTP_SCANNER_TRUE}" && test -z "${BUILD_TEST_NTP_SCANNER_FALSE}"; then
33563  as_fn_error $? "conditional \"BUILD_TEST_NTP_SCANNER\" was never defined.
33564Usually this means the macro was only invoked conditionally." "$LINENO" 5
33565fi
33566if test -z "${BUILD_TEST_NTP_SIGND_TRUE}" && test -z "${BUILD_TEST_NTP_SIGND_FALSE}"; then
33567  as_fn_error $? "conditional \"BUILD_TEST_NTP_SIGND\" was never defined.
33568Usually this means the macro was only invoked conditionally." "$LINENO" 5
33569fi
33570
33571: "${CONFIG_STATUS=./config.status}"
33572ac_write_fail=0
33573ac_clean_files_save=$ac_clean_files
33574ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33575{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33576$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33577as_write_fail=0
33578cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33579#! $SHELL
33580# Generated by $as_me.
33581# Run this file to recreate the current configuration.
33582# Compiler output produced by configure, useful for debugging
33583# configure, is in config.log if it exists.
33584
33585debug=false
33586ac_cs_recheck=false
33587ac_cs_silent=false
33588
33589SHELL=\${CONFIG_SHELL-$SHELL}
33590export SHELL
33591_ASEOF
33592cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33593## -------------------- ##
33594## M4sh Initialization. ##
33595## -------------------- ##
33596
33597# Be more Bourne compatible
33598DUALCASE=1; export DUALCASE # for MKS sh
33599if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33600  emulate sh
33601  NULLCMD=:
33602  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33603  # is contrary to our usage.  Disable this feature.
33604  alias -g '${1+"$@"}'='"$@"'
33605  setopt NO_GLOB_SUBST
33606else
33607  case `(set -o) 2>/dev/null` in #(
33608  *posix*) :
33609    set -o posix ;; #(
33610  *) :
33611     ;;
33612esac
33613fi
33614
33615
33616as_nl='
33617'
33618export as_nl
33619# Printing a long string crashes Solaris 7 /usr/bin/printf.
33620as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33621as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33622as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33623# Prefer a ksh shell builtin over an external printf program on Solaris,
33624# but without wasting forks for bash or zsh.
33625if test -z "$BASH_VERSION$ZSH_VERSION" \
33626    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33627  as_echo='print -r --'
33628  as_echo_n='print -rn --'
33629elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33630  as_echo='printf %s\n'
33631  as_echo_n='printf %s'
33632else
33633  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33634    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33635    as_echo_n='/usr/ucb/echo -n'
33636  else
33637    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33638    as_echo_n_body='eval
33639      arg=$1;
33640      case $arg in #(
33641      *"$as_nl"*)
33642	expr "X$arg" : "X\\(.*\\)$as_nl";
33643	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33644      esac;
33645      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33646    '
33647    export as_echo_n_body
33648    as_echo_n='sh -c $as_echo_n_body as_echo'
33649  fi
33650  export as_echo_body
33651  as_echo='sh -c $as_echo_body as_echo'
33652fi
33653
33654# The user is always right.
33655if test "${PATH_SEPARATOR+set}" != set; then
33656  PATH_SEPARATOR=:
33657  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33658    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33659      PATH_SEPARATOR=';'
33660  }
33661fi
33662
33663
33664# IFS
33665# We need space, tab and new line, in precisely that order.  Quoting is
33666# there to prevent editors from complaining about space-tab.
33667# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33668# splitting by setting IFS to empty value.)
33669IFS=" ""	$as_nl"
33670
33671# Find who we are.  Look in the path if we contain no directory separator.
33672as_myself=
33673case $0 in #((
33674  *[\\/]* ) as_myself=$0 ;;
33675  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33676for as_dir in $PATH
33677do
33678  IFS=$as_save_IFS
33679  test -z "$as_dir" && as_dir=.
33680    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33681  done
33682IFS=$as_save_IFS
33683
33684     ;;
33685esac
33686# We did not find ourselves, most probably we were run as `sh COMMAND'
33687# in which case we are not to be found in the path.
33688if test "x$as_myself" = x; then
33689  as_myself=$0
33690fi
33691if test ! -f "$as_myself"; then
33692  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33693  exit 1
33694fi
33695
33696# Unset variables that we do not need and which cause bugs (e.g. in
33697# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
33698# suppresses any "Segmentation fault" message there.  '((' could
33699# trigger a bug in pdksh 5.2.14.
33700for as_var in BASH_ENV ENV MAIL MAILPATH
33701do eval test x\${$as_var+set} = xset \
33702  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33703done
33704PS1='$ '
33705PS2='> '
33706PS4='+ '
33707
33708# NLS nuisances.
33709LC_ALL=C
33710export LC_ALL
33711LANGUAGE=C
33712export LANGUAGE
33713
33714# CDPATH.
33715(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33716
33717
33718# as_fn_error STATUS ERROR [LINENO LOG_FD]
33719# ----------------------------------------
33720# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33721# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33722# script with STATUS, using 1 if that was 0.
33723as_fn_error ()
33724{
33725  as_status=$1; test $as_status -eq 0 && as_status=1
33726  if test "$4"; then
33727    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33728    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33729  fi
33730  $as_echo "$as_me: error: $2" >&2
33731  as_fn_exit $as_status
33732} # as_fn_error
33733
33734
33735# as_fn_set_status STATUS
33736# -----------------------
33737# Set $? to STATUS, without forking.
33738as_fn_set_status ()
33739{
33740  return $1
33741} # as_fn_set_status
33742
33743# as_fn_exit STATUS
33744# -----------------
33745# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33746as_fn_exit ()
33747{
33748  set +e
33749  as_fn_set_status $1
33750  exit $1
33751} # as_fn_exit
33752
33753# as_fn_unset VAR
33754# ---------------
33755# Portably unset VAR.
33756as_fn_unset ()
33757{
33758  { eval $1=; unset $1;}
33759}
33760as_unset=as_fn_unset
33761# as_fn_append VAR VALUE
33762# ----------------------
33763# Append the text in VALUE to the end of the definition contained in VAR. Take
33764# advantage of any shell optimizations that allow amortized linear growth over
33765# repeated appends, instead of the typical quadratic growth present in naive
33766# implementations.
33767if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33768  eval 'as_fn_append ()
33769  {
33770    eval $1+=\$2
33771  }'
33772else
33773  as_fn_append ()
33774  {
33775    eval $1=\$$1\$2
33776  }
33777fi # as_fn_append
33778
33779# as_fn_arith ARG...
33780# ------------------
33781# Perform arithmetic evaluation on the ARGs, and store the result in the
33782# global $as_val. Take advantage of shells that can avoid forks. The arguments
33783# must be portable across $(()) and expr.
33784if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33785  eval 'as_fn_arith ()
33786  {
33787    as_val=$(( $* ))
33788  }'
33789else
33790  as_fn_arith ()
33791  {
33792    as_val=`expr "$@" || test $? -eq 1`
33793  }
33794fi # as_fn_arith
33795
33796
33797if expr a : '\(a\)' >/dev/null 2>&1 &&
33798   test "X`expr 00001 : '.*\(...\)'`" = X001; then
33799  as_expr=expr
33800else
33801  as_expr=false
33802fi
33803
33804if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33805  as_basename=basename
33806else
33807  as_basename=false
33808fi
33809
33810if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33811  as_dirname=dirname
33812else
33813  as_dirname=false
33814fi
33815
33816as_me=`$as_basename -- "$0" ||
33817$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33818	 X"$0" : 'X\(//\)$' \| \
33819	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33820$as_echo X/"$0" |
33821    sed '/^.*\/\([^/][^/]*\)\/*$/{
33822	    s//\1/
33823	    q
33824	  }
33825	  /^X\/\(\/\/\)$/{
33826	    s//\1/
33827	    q
33828	  }
33829	  /^X\/\(\/\).*/{
33830	    s//\1/
33831	    q
33832	  }
33833	  s/.*/./; q'`
33834
33835# Avoid depending upon Character Ranges.
33836as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33837as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33838as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33839as_cr_digits='0123456789'
33840as_cr_alnum=$as_cr_Letters$as_cr_digits
33841
33842ECHO_C= ECHO_N= ECHO_T=
33843case `echo -n x` in #(((((
33844-n*)
33845  case `echo 'xy\c'` in
33846  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
33847  xy)  ECHO_C='\c';;
33848  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
33849       ECHO_T='	';;
33850  esac;;
33851*)
33852  ECHO_N='-n';;
33853esac
33854
33855rm -f conf$$ conf$$.exe conf$$.file
33856if test -d conf$$.dir; then
33857  rm -f conf$$.dir/conf$$.file
33858else
33859  rm -f conf$$.dir
33860  mkdir conf$$.dir 2>/dev/null
33861fi
33862if (echo >conf$$.file) 2>/dev/null; then
33863  if ln -s conf$$.file conf$$ 2>/dev/null; then
33864    as_ln_s='ln -s'
33865    # ... but there are two gotchas:
33866    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33867    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33868    # In both cases, we have to default to `cp -pR'.
33869    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33870      as_ln_s='cp -pR'
33871  elif ln conf$$.file conf$$ 2>/dev/null; then
33872    as_ln_s=ln
33873  else
33874    as_ln_s='cp -pR'
33875  fi
33876else
33877  as_ln_s='cp -pR'
33878fi
33879rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33880rmdir conf$$.dir 2>/dev/null
33881
33882
33883# as_fn_mkdir_p
33884# -------------
33885# Create "$as_dir" as a directory, including parents if necessary.
33886as_fn_mkdir_p ()
33887{
33888
33889  case $as_dir in #(
33890  -*) as_dir=./$as_dir;;
33891  esac
33892  test -d "$as_dir" || eval $as_mkdir_p || {
33893    as_dirs=
33894    while :; do
33895      case $as_dir in #(
33896      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33897      *) as_qdir=$as_dir;;
33898      esac
33899      as_dirs="'$as_qdir' $as_dirs"
33900      as_dir=`$as_dirname -- "$as_dir" ||
33901$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33902	 X"$as_dir" : 'X\(//\)[^/]' \| \
33903	 X"$as_dir" : 'X\(//\)$' \| \
33904	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33905$as_echo X"$as_dir" |
33906    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33907	    s//\1/
33908	    q
33909	  }
33910	  /^X\(\/\/\)[^/].*/{
33911	    s//\1/
33912	    q
33913	  }
33914	  /^X\(\/\/\)$/{
33915	    s//\1/
33916	    q
33917	  }
33918	  /^X\(\/\).*/{
33919	    s//\1/
33920	    q
33921	  }
33922	  s/.*/./; q'`
33923      test -d "$as_dir" && break
33924    done
33925    test -z "$as_dirs" || eval "mkdir $as_dirs"
33926  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33927
33928
33929} # as_fn_mkdir_p
33930if mkdir -p . 2>/dev/null; then
33931  as_mkdir_p='mkdir -p "$as_dir"'
33932else
33933  test -d ./-p && rmdir ./-p
33934  as_mkdir_p=false
33935fi
33936
33937
33938# as_fn_executable_p FILE
33939# -----------------------
33940# Test if FILE is an executable regular file.
33941as_fn_executable_p ()
33942{
33943  test -f "$1" && test -x "$1"
33944} # as_fn_executable_p
33945as_test_x='test -x'
33946as_executable_p=as_fn_executable_p
33947
33948# Sed expression to map a string onto a valid CPP name.
33949as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33950
33951# Sed expression to map a string onto a valid variable name.
33952as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33953
33954
33955exec 6>&1
33956## ----------------------------------- ##
33957## Main body of $CONFIG_STATUS script. ##
33958## ----------------------------------- ##
33959_ASEOF
33960test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33961
33962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33963# Save the log message, to keep $0 and so on meaningful, and to
33964# report actual input values of CONFIG_FILES etc. instead of their
33965# values after options handling.
33966ac_log="
33967This file was extended by ntp $as_me 4.2.8p11, which was
33968generated by GNU Autoconf 2.69.  Invocation command line was
33969
33970  CONFIG_FILES    = $CONFIG_FILES
33971  CONFIG_HEADERS  = $CONFIG_HEADERS
33972  CONFIG_LINKS    = $CONFIG_LINKS
33973  CONFIG_COMMANDS = $CONFIG_COMMANDS
33974  $ $0 $@
33975
33976on `(hostname || uname -n) 2>/dev/null | sed 1q`
33977"
33978
33979_ACEOF
33980
33981case $ac_config_files in *"
33982"*) set x $ac_config_files; shift; ac_config_files=$*;;
33983esac
33984
33985case $ac_config_headers in *"
33986"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33987esac
33988
33989
33990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33991# Files that config.status was made for.
33992config_files="$ac_config_files"
33993config_headers="$ac_config_headers"
33994config_commands="$ac_config_commands"
33995
33996_ACEOF
33997
33998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33999ac_cs_usage="\
34000\`$as_me' instantiates files and other configuration actions
34001from templates according to the current configuration.  Unless the files
34002and actions are specified as TAGs, all are instantiated by default.
34003
34004Usage: $0 [OPTION]... [TAG]...
34005
34006  -h, --help       print this help, then exit
34007  -V, --version    print version number and configuration settings, then exit
34008      --config     print configuration, then exit
34009  -q, --quiet, --silent
34010                   do not print progress messages
34011  -d, --debug      don't remove temporary files
34012      --recheck    update $as_me by reconfiguring in the same conditions
34013      --file=FILE[:TEMPLATE]
34014                   instantiate the configuration file FILE
34015      --header=FILE[:TEMPLATE]
34016                   instantiate the configuration header FILE
34017
34018Configuration files:
34019$config_files
34020
34021Configuration headers:
34022$config_headers
34023
34024Configuration commands:
34025$config_commands
34026
34027Report bugs to <http://bugs.ntp.org./>.
34028ntp home page: <http://www.ntp.org./>."
34029
34030_ACEOF
34031cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34032ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
34033ac_cs_version="\\
34034ntp config.status 4.2.8p11
34035configured by $0, generated by GNU Autoconf 2.69,
34036  with options \\"\$ac_cs_config\\"
34037
34038Copyright (C) 2012 Free Software Foundation, Inc.
34039This config.status script is free software; the Free Software Foundation
34040gives unlimited permission to copy, distribute and modify it."
34041
34042ac_pwd='$ac_pwd'
34043srcdir='$srcdir'
34044INSTALL='$INSTALL'
34045MKDIR_P='$MKDIR_P'
34046AWK='$AWK'
34047test -n "\$AWK" || AWK=awk
34048_ACEOF
34049
34050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34051# The default lists apply if the user does not specify any file.
34052ac_need_defaults=:
34053while test $# != 0
34054do
34055  case $1 in
34056  --*=?*)
34057    ac_option=`expr "X$1" : 'X\([^=]*\)='`
34058    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34059    ac_shift=:
34060    ;;
34061  --*=)
34062    ac_option=`expr "X$1" : 'X\([^=]*\)='`
34063    ac_optarg=
34064    ac_shift=:
34065    ;;
34066  *)
34067    ac_option=$1
34068    ac_optarg=$2
34069    ac_shift=shift
34070    ;;
34071  esac
34072
34073  case $ac_option in
34074  # Handling of the options.
34075  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34076    ac_cs_recheck=: ;;
34077  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34078    $as_echo "$ac_cs_version"; exit ;;
34079  --config | --confi | --conf | --con | --co | --c )
34080    $as_echo "$ac_cs_config"; exit ;;
34081  --debug | --debu | --deb | --de | --d | -d )
34082    debug=: ;;
34083  --file | --fil | --fi | --f )
34084    $ac_shift
34085    case $ac_optarg in
34086    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34087    '') as_fn_error $? "missing file argument" ;;
34088    esac
34089    as_fn_append CONFIG_FILES " '$ac_optarg'"
34090    ac_need_defaults=false;;
34091  --header | --heade | --head | --hea )
34092    $ac_shift
34093    case $ac_optarg in
34094    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34095    esac
34096    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
34097    ac_need_defaults=false;;
34098  --he | --h)
34099    # Conflict between --help and --header
34100    as_fn_error $? "ambiguous option: \`$1'
34101Try \`$0 --help' for more information.";;
34102  --help | --hel | -h )
34103    $as_echo "$ac_cs_usage"; exit ;;
34104  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34105  | -silent | --silent | --silen | --sile | --sil | --si | --s)
34106    ac_cs_silent=: ;;
34107
34108  # This is an error.
34109  -*) as_fn_error $? "unrecognized option: \`$1'
34110Try \`$0 --help' for more information." ;;
34111
34112  *) as_fn_append ac_config_targets " $1"
34113     ac_need_defaults=false ;;
34114
34115  esac
34116  shift
34117done
34118
34119ac_configure_extra_args=
34120
34121if $ac_cs_silent; then
34122  exec 6>/dev/null
34123  ac_configure_extra_args="$ac_configure_extra_args --silent"
34124fi
34125
34126_ACEOF
34127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34128if \$ac_cs_recheck; then
34129  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34130  shift
34131  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34132  CONFIG_SHELL='$SHELL'
34133  export CONFIG_SHELL
34134  exec "\$@"
34135fi
34136
34137_ACEOF
34138cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34139exec 5>>config.log
34140{
34141  echo
34142  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34143## Running $as_me. ##
34144_ASBOX
34145  $as_echo "$ac_log"
34146} >&5
34147
34148_ACEOF
34149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34150#
34151# INIT-COMMANDS
34152#
34153AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34154
34155
34156# The HP-UX ksh and POSIX shell print the target directory to stdout
34157# if CDPATH is set.
34158(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34159
34160sed_quote_subst='$sed_quote_subst'
34161double_quote_subst='$double_quote_subst'
34162delay_variable_subst='$delay_variable_subst'
34163enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34164macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34165macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34166enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34167pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34168enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34169shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
34170SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34171ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34172PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
34173host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34174host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34175host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34176build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34177build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34178build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34179SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34180Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34181GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34182EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34183FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34184LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34185NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34186LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34187max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34188ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34189exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34190lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34191lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34192lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
34193lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
34194lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
34195reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34196reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34197OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34198deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34199file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
34200file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34201want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34202DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
34203sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
34204AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34205AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
34206archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
34207STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34208RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34209old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34210old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34211old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34212lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34213CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34214CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34215compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34216GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34217lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34218lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34219lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
34220lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34221lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
34222lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
34223nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34224lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
34225lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
34226objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34227MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34228lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
34229lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
34230lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
34231lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34232lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34233need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
34234MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
34235DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34236NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34237LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34238OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34239OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34240libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34241shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34242extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34243archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34244enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34245export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34246whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34247compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34248old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34249old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34250archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34251archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34252module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34253module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34254with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34255allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34256no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34257hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34258hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34259hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34260hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34261hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34262hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34263hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34264inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34265link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
34266always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34267export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34268exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34269include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34270prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
34271postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
34272file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34273variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34274need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34275need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34276version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34277runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34278shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34279shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34280libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34281library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34282soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34283install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34284postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34285postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34286finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34287finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34288hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34289sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34290configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
34291configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
34292hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34293enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34294enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34295enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34296old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34297striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34298
34299LTCC='$LTCC'
34300LTCFLAGS='$LTCFLAGS'
34301compiler='$compiler_DEFAULT'
34302
34303# A function that is used when there is no print builtin or printf.
34304func_fallback_echo ()
34305{
34306  eval 'cat <<_LTECHO_EOF
34307\$1
34308_LTECHO_EOF'
34309}
34310
34311# Quote evaled strings.
34312for var in SHELL \
34313ECHO \
34314PATH_SEPARATOR \
34315SED \
34316GREP \
34317EGREP \
34318FGREP \
34319LD \
34320NM \
34321LN_S \
34322lt_SP2NL \
34323lt_NL2SP \
34324reload_flag \
34325OBJDUMP \
34326deplibs_check_method \
34327file_magic_cmd \
34328file_magic_glob \
34329want_nocaseglob \
34330DLLTOOL \
34331sharedlib_from_linklib_cmd \
34332AR \
34333AR_FLAGS \
34334archiver_list_spec \
34335STRIP \
34336RANLIB \
34337CC \
34338CFLAGS \
34339compiler \
34340lt_cv_sys_global_symbol_pipe \
34341lt_cv_sys_global_symbol_to_cdecl \
34342lt_cv_sys_global_symbol_to_import \
34343lt_cv_sys_global_symbol_to_c_name_address \
34344lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34345lt_cv_nm_interface \
34346nm_file_list_spec \
34347lt_cv_truncate_bin \
34348lt_prog_compiler_no_builtin_flag \
34349lt_prog_compiler_pic \
34350lt_prog_compiler_wl \
34351lt_prog_compiler_static \
34352lt_cv_prog_compiler_c_o \
34353need_locks \
34354MANIFEST_TOOL \
34355DSYMUTIL \
34356NMEDIT \
34357LIPO \
34358OTOOL \
34359OTOOL64 \
34360shrext_cmds \
34361export_dynamic_flag_spec \
34362whole_archive_flag_spec \
34363compiler_needs_object \
34364with_gnu_ld \
34365allow_undefined_flag \
34366no_undefined_flag \
34367hardcode_libdir_flag_spec \
34368hardcode_libdir_separator \
34369exclude_expsyms \
34370include_expsyms \
34371file_list_spec \
34372variables_saved_for_relink \
34373libname_spec \
34374library_names_spec \
34375soname_spec \
34376install_override_mode \
34377finish_eval \
34378old_striplib \
34379striplib; do
34380    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34381    *[\\\\\\\`\\"\\\$]*)
34382      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34383      ;;
34384    *)
34385      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34386      ;;
34387    esac
34388done
34389
34390# Double-quote double-evaled strings.
34391for var in reload_cmds \
34392old_postinstall_cmds \
34393old_postuninstall_cmds \
34394old_archive_cmds \
34395extract_expsyms_cmds \
34396old_archive_from_new_cmds \
34397old_archive_from_expsyms_cmds \
34398archive_cmds \
34399archive_expsym_cmds \
34400module_cmds \
34401module_expsym_cmds \
34402export_symbols_cmds \
34403prelink_cmds \
34404postlink_cmds \
34405postinstall_cmds \
34406postuninstall_cmds \
34407finish_cmds \
34408sys_lib_search_path_spec \
34409configure_time_dlsearch_path \
34410configure_time_lt_sys_library_path; do
34411    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34412    *[\\\\\\\`\\"\\\$]*)
34413      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34414      ;;
34415    *)
34416      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34417      ;;
34418    esac
34419done
34420
34421ac_aux_dir='$ac_aux_dir'
34422
34423# See if we are running on zsh, and set the options that allow our
34424# commands through without removal of \ escapes INIT.
34425if test -n "\${ZSH_VERSION+set}"; then
34426   setopt NO_GLOB_SUBST
34427fi
34428
34429
34430    PACKAGE='$PACKAGE'
34431    VERSION='$VERSION'
34432    RM='$RM'
34433    ofile='$ofile'
34434
34435
34436
34437
34438_ACEOF
34439
34440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34441
34442# Handling of arguments.
34443for ac_config_target in $ac_config_targets
34444do
34445  case $ac_config_target in
34446    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
34447    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34448    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34449    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34450    "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
34451    "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
34452    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
34453    "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
34454    "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
34455    "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
34456    "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
34457    "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
34458    "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
34459    "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
34460    "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
34461    "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
34462    "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
34463    "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
34464    "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;;
34465    "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
34466    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
34467    "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
34468    "scripts/build/genAuthors") CONFIG_FILES="$CONFIG_FILES scripts/build/genAuthors" ;;
34469    "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
34470    "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
34471    "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
34472    "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
34473    "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
34474    "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
34475    "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
34476    "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
34477    "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
34478    "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
34479    "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
34480    "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
34481    "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
34482    "scripts/update-leap/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/Makefile" ;;
34483    "scripts/update-leap/update-leap") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/update-leap" ;;
34484    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
34485    "tests/bug-2803/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bug-2803/Makefile" ;;
34486    "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
34487    "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
34488    "tests/ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpq/Makefile" ;;
34489    "tests/sandbox/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sandbox/Makefile" ;;
34490    "tests/sec-2853/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sec-2853/Makefile" ;;
34491    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
34492
34493  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34494  esac
34495done
34496
34497
34498# If the user did not use the arguments to specify the items to instantiate,
34499# then the envvar interface is used.  Set only those that are not.
34500# We use the long form for the default assignment because of an extremely
34501# bizarre bug on SunOS 4.1.3.
34502if $ac_need_defaults; then
34503  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34504  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34505  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34506fi
34507
34508# Have a temporary directory for convenience.  Make it in the build tree
34509# simply because there is no reason against having it here, and in addition,
34510# creating and moving files from /tmp can sometimes cause problems.
34511# Hook for its removal unless debugging.
34512# Note that there is a small window in which the directory will not be cleaned:
34513# after its creation but before its name has been assigned to `$tmp'.
34514$debug ||
34515{
34516  tmp= ac_tmp=
34517  trap 'exit_status=$?
34518  : "${ac_tmp:=$tmp}"
34519  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34520' 0
34521  trap 'as_fn_exit 1' 1 2 13 15
34522}
34523# Create a (secure) tmp directory for tmp files.
34524
34525{
34526  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34527  test -d "$tmp"
34528}  ||
34529{
34530  tmp=./conf$$-$RANDOM
34531  (umask 077 && mkdir "$tmp")
34532} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34533ac_tmp=$tmp
34534
34535# Set up the scripts for CONFIG_FILES section.
34536# No need to generate them if there are no CONFIG_FILES.
34537# This happens for instance with `./config.status config.h'.
34538if test -n "$CONFIG_FILES"; then
34539
34540if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
34541  ac_cs_awk_getline=:
34542  ac_cs_awk_pipe_init=
34543  ac_cs_awk_read_file='
34544      while ((getline aline < (F[key])) > 0)
34545	print(aline)
34546      close(F[key])'
34547  ac_cs_awk_pipe_fini=
34548else
34549  ac_cs_awk_getline=false
34550  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
34551  ac_cs_awk_read_file='
34552      print "|#_!!_#|"
34553      print "cat " F[key] " &&"
34554      '$ac_cs_awk_pipe_init
34555  # The final `:' finishes the AND list.
34556  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
34557fi
34558ac_cr=`echo X | tr X '\015'`
34559# On cygwin, bash can eat \r inside `` if the user requested igncr.
34560# But we know of no other shell where ac_cr would be empty at this
34561# point, so we can use a bashism as a fallback.
34562if test "x$ac_cr" = x; then
34563  eval ac_cr=\$\'\\r\'
34564fi
34565ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34566if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34567  ac_cs_awk_cr='\\r'
34568else
34569  ac_cs_awk_cr=$ac_cr
34570fi
34571
34572echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34573_ACEOF
34574
34575# Create commands to substitute file output variables.
34576{
34577  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
34578  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
34579  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
34580  echo "_ACAWK" &&
34581  echo "_ACEOF"
34582} >conf$$files.sh &&
34583. ./conf$$files.sh ||
34584  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34585rm -f conf$$files.sh
34586
34587{
34588  echo "cat >conf$$subs.awk <<_ACEOF" &&
34589  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34590  echo "_ACEOF"
34591} >conf$$subs.sh ||
34592  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34593ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34594ac_delim='%!_!# '
34595for ac_last_try in false false false false false :; do
34596  . ./conf$$subs.sh ||
34597    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34598
34599  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34600  if test $ac_delim_n = $ac_delim_num; then
34601    break
34602  elif $ac_last_try; then
34603    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34604  else
34605    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34606  fi
34607done
34608rm -f conf$$subs.sh
34609
34610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34611cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
34612_ACEOF
34613sed -n '
34614h
34615s/^/S["/; s/!.*/"]=/
34616p
34617g
34618s/^[^!]*!//
34619:repl
34620t repl
34621s/'"$ac_delim"'$//
34622t delim
34623:nl
34624h
34625s/\(.\{148\}\)..*/\1/
34626t more1
34627s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34628p
34629n
34630b repl
34631:more1
34632s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34633p
34634g
34635s/.\{148\}//
34636t nl
34637:delim
34638h
34639s/\(.\{148\}\)..*/\1/
34640t more2
34641s/["\\]/\\&/g; s/^/"/; s/$/"/
34642p
34643b
34644:more2
34645s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34646p
34647g
34648s/.\{148\}//
34649t delim
34650' <conf$$subs.awk | sed '
34651/^[^""]/{
34652  N
34653  s/\n//
34654}
34655' >>$CONFIG_STATUS || ac_write_fail=1
34656rm -f conf$$subs.awk
34657cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34658_ACAWK
34659cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
34660  for (key in S) S_is_set[key] = 1
34661  FS = ""
34662  \$ac_cs_awk_pipe_init
34663}
34664{
34665  line = $ 0
34666  nfields = split(line, field, "@")
34667  substed = 0
34668  len = length(field[1])
34669  for (i = 2; i < nfields; i++) {
34670    key = field[i]
34671    keylen = length(key)
34672    if (S_is_set[key]) {
34673      value = S[key]
34674      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34675      len += length(value) + length(field[++i])
34676      substed = 1
34677    } else
34678      len += 1 + keylen
34679  }
34680  if (nfields == 3 && !substed) {
34681    key = field[2]
34682    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
34683      \$ac_cs_awk_read_file
34684      next
34685    }
34686  }
34687  print line
34688}
34689\$ac_cs_awk_pipe_fini
34690_ACAWK
34691_ACEOF
34692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34693if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34694  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34695else
34696  cat
34697fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
34698  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34699_ACEOF
34700
34701# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34702# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34703# trailing colons and then remove the whole line if VPATH becomes empty
34704# (actually we leave an empty line to preserve line numbers).
34705if test "x$srcdir" = x.; then
34706  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
34707h
34708s///
34709s/^/:/
34710s/[	 ]*$/:/
34711s/:\$(srcdir):/:/g
34712s/:\${srcdir}:/:/g
34713s/:@srcdir@:/:/g
34714s/^:*//
34715s/:*$//
34716x
34717s/\(=[	 ]*\).*/\1/
34718G
34719s/\n//
34720s/^[^=]*=[	 ]*$//
34721}'
34722fi
34723
34724cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34725fi # test -n "$CONFIG_FILES"
34726
34727# Set up the scripts for CONFIG_HEADERS section.
34728# No need to generate them if there are no CONFIG_HEADERS.
34729# This happens for instance with `./config.status Makefile'.
34730if test -n "$CONFIG_HEADERS"; then
34731cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
34732BEGIN {
34733_ACEOF
34734
34735# Transform confdefs.h into an awk script `defines.awk', embedded as
34736# here-document in config.status, that substitutes the proper values into
34737# config.h.in to produce config.h.
34738
34739# Create a delimiter string that does not exist in confdefs.h, to ease
34740# handling of long lines.
34741ac_delim='%!_!# '
34742for ac_last_try in false false :; do
34743  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
34744  if test -z "$ac_tt"; then
34745    break
34746  elif $ac_last_try; then
34747    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34748  else
34749    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34750  fi
34751done
34752
34753# For the awk script, D is an array of macro values keyed by name,
34754# likewise P contains macro parameters if any.  Preserve backslash
34755# newline sequences.
34756
34757ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34758sed -n '
34759s/.\{148\}/&'"$ac_delim"'/g
34760t rset
34761:rset
34762s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
34763t def
34764d
34765:def
34766s/\\$//
34767t bsnl
34768s/["\\]/\\&/g
34769s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
34770D["\1"]=" \3"/p
34771s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
34772d
34773:bsnl
34774s/["\\]/\\&/g
34775s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
34776D["\1"]=" \3\\\\\\n"\\/p
34777t cont
34778s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34779t cont
34780d
34781:cont
34782n
34783s/.\{148\}/&'"$ac_delim"'/g
34784t clear
34785:clear
34786s/\\$//
34787t bsnlc
34788s/["\\]/\\&/g; s/^/"/; s/$/"/p
34789d
34790:bsnlc
34791s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34792b cont
34793' <confdefs.h | sed '
34794s/'"$ac_delim"'/"\\\
34795"/g' >>$CONFIG_STATUS || ac_write_fail=1
34796
34797cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34798  for (key in D) D_is_set[key] = 1
34799  FS = ""
34800}
34801/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34802  line = \$ 0
34803  split(line, arg, " ")
34804  if (arg[1] == "#") {
34805    defundef = arg[2]
34806    mac1 = arg[3]
34807  } else {
34808    defundef = substr(arg[1], 2)
34809    mac1 = arg[2]
34810  }
34811  split(mac1, mac2, "(") #)
34812  macro = mac2[1]
34813  prefix = substr(line, 1, index(line, defundef) - 1)
34814  if (D_is_set[macro]) {
34815    # Preserve the white space surrounding the "#".
34816    print prefix "define", macro P[macro] D[macro]
34817    next
34818  } else {
34819    # Replace #undef with comments.  This is necessary, for example,
34820    # in the case of _POSIX_SOURCE, which is predefined and required
34821    # on some systems where configure will not decide to define it.
34822    if (defundef == "undef") {
34823      print "/*", prefix defundef, macro, "*/"
34824      next
34825    }
34826  }
34827}
34828{ print }
34829_ACAWK
34830_ACEOF
34831cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34832  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34833fi # test -n "$CONFIG_HEADERS"
34834
34835
34836eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
34837shift
34838for ac_tag
34839do
34840  case $ac_tag in
34841  :[FHLC]) ac_mode=$ac_tag; continue;;
34842  esac
34843  case $ac_mode$ac_tag in
34844  :[FHL]*:*);;
34845  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34846  :[FH]-) ac_tag=-:-;;
34847  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34848  esac
34849  ac_save_IFS=$IFS
34850  IFS=:
34851  set x $ac_tag
34852  IFS=$ac_save_IFS
34853  shift
34854  ac_file=$1
34855  shift
34856
34857  case $ac_mode in
34858  :L) ac_source=$1;;
34859  :[FH])
34860    ac_file_inputs=
34861    for ac_f
34862    do
34863      case $ac_f in
34864      -) ac_f="$ac_tmp/stdin";;
34865      *) # Look for the file first in the build tree, then in the source tree
34866	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
34867	 # because $ac_f cannot contain `:'.
34868	 test -f "$ac_f" ||
34869	   case $ac_f in
34870	   [\\/$]*) false;;
34871	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34872	   esac ||
34873	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34874      esac
34875      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34876      as_fn_append ac_file_inputs " '$ac_f'"
34877    done
34878
34879    # Let's still pretend it is `configure' which instantiates (i.e., don't
34880    # use $as_me), people would be surprised to read:
34881    #    /* config.h.  Generated by config.status.  */
34882    configure_input='Generated from '`
34883	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34884	`' by configure.'
34885    if test x"$ac_file" != x-; then
34886      configure_input="$ac_file.  $configure_input"
34887      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34888$as_echo "$as_me: creating $ac_file" >&6;}
34889    fi
34890    # Neutralize special characters interpreted by sed in replacement strings.
34891    case $configure_input in #(
34892    *\&* | *\|* | *\\* )
34893       ac_sed_conf_input=`$as_echo "$configure_input" |
34894       sed 's/[\\\\&|]/\\\\&/g'`;; #(
34895    *) ac_sed_conf_input=$configure_input;;
34896    esac
34897
34898    case $ac_tag in
34899    *:-:* | *:-) cat >"$ac_tmp/stdin" \
34900      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34901    esac
34902    ;;
34903  esac
34904
34905  ac_dir=`$as_dirname -- "$ac_file" ||
34906$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34907	 X"$ac_file" : 'X\(//\)[^/]' \| \
34908	 X"$ac_file" : 'X\(//\)$' \| \
34909	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34910$as_echo X"$ac_file" |
34911    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34912	    s//\1/
34913	    q
34914	  }
34915	  /^X\(\/\/\)[^/].*/{
34916	    s//\1/
34917	    q
34918	  }
34919	  /^X\(\/\/\)$/{
34920	    s//\1/
34921	    q
34922	  }
34923	  /^X\(\/\).*/{
34924	    s//\1/
34925	    q
34926	  }
34927	  s/.*/./; q'`
34928  as_dir="$ac_dir"; as_fn_mkdir_p
34929  ac_builddir=.
34930
34931case "$ac_dir" in
34932.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34933*)
34934  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34935  # A ".." for each directory in $ac_dir_suffix.
34936  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34937  case $ac_top_builddir_sub in
34938  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34939  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34940  esac ;;
34941esac
34942ac_abs_top_builddir=$ac_pwd
34943ac_abs_builddir=$ac_pwd$ac_dir_suffix
34944# for backward compatibility:
34945ac_top_builddir=$ac_top_build_prefix
34946
34947case $srcdir in
34948  .)  # We are building in place.
34949    ac_srcdir=.
34950    ac_top_srcdir=$ac_top_builddir_sub
34951    ac_abs_top_srcdir=$ac_pwd ;;
34952  [\\/]* | ?:[\\/]* )  # Absolute name.
34953    ac_srcdir=$srcdir$ac_dir_suffix;
34954    ac_top_srcdir=$srcdir
34955    ac_abs_top_srcdir=$srcdir ;;
34956  *) # Relative name.
34957    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34958    ac_top_srcdir=$ac_top_build_prefix$srcdir
34959    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34960esac
34961ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34962
34963
34964  case $ac_mode in
34965  :F)
34966  #
34967  # CONFIG_FILE
34968  #
34969
34970  case $INSTALL in
34971  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34972  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34973  esac
34974  ac_MKDIR_P=$MKDIR_P
34975  case $MKDIR_P in
34976  [\\/$]* | ?:[\\/]* ) ;;
34977  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34978  esac
34979_ACEOF
34980
34981cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34982# If the template does not know about datarootdir, expand it.
34983# FIXME: This hack should be removed a few years after 2.60.
34984ac_datarootdir_hack=; ac_datarootdir_seen=
34985ac_sed_dataroot='
34986/datarootdir/ {
34987  p
34988  q
34989}
34990/@datadir@/p
34991/@docdir@/p
34992/@infodir@/p
34993/@localedir@/p
34994/@mandir@/p'
34995case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34996*datarootdir*) ac_datarootdir_seen=yes;;
34997*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34998  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34999$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35000_ACEOF
35001cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35002  ac_datarootdir_hack='
35003  s&@datadir@&$datadir&g
35004  s&@docdir@&$docdir&g
35005  s&@infodir@&$infodir&g
35006  s&@localedir@&$localedir&g
35007  s&@mandir@&$mandir&g
35008  s&\\\${datarootdir}&$datarootdir&g' ;;
35009esac
35010_ACEOF
35011
35012# Neutralize VPATH when `$srcdir' = `.'.
35013# Shell code in configure.ac might set extrasub.
35014# FIXME: do we really want to maintain this feature?
35015cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35016ac_sed_extra="$ac_vpsub
35017$extrasub
35018_ACEOF
35019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35020:t
35021/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35022s|@configure_input@|$ac_sed_conf_input|;t t
35023s&@top_builddir@&$ac_top_builddir_sub&;t t
35024s&@top_build_prefix@&$ac_top_build_prefix&;t t
35025s&@srcdir@&$ac_srcdir&;t t
35026s&@abs_srcdir@&$ac_abs_srcdir&;t t
35027s&@top_srcdir@&$ac_top_srcdir&;t t
35028s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35029s&@builddir@&$ac_builddir&;t t
35030s&@abs_builddir@&$ac_abs_builddir&;t t
35031s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35032s&@INSTALL@&$ac_INSTALL&;t t
35033s&@MKDIR_P@&$ac_MKDIR_P&;t t
35034$ac_datarootdir_hack
35035"
35036eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
35037if $ac_cs_awk_getline; then
35038  $AWK -f "$ac_tmp/subs.awk"
35039else
35040  $AWK -f "$ac_tmp/subs.awk" | $SHELL
35041fi \
35042  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35043
35044test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35045  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35046  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
35047      "$ac_tmp/out"`; test -z "$ac_out"; } &&
35048  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35049which seems to be undefined.  Please make sure it is defined" >&5
35050$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35051which seems to be undefined.  Please make sure it is defined" >&2;}
35052
35053  rm -f "$ac_tmp/stdin"
35054  case $ac_file in
35055  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35056  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
35057  esac \
35058  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35059 ;;
35060  :H)
35061  #
35062  # CONFIG_HEADER
35063  #
35064  if test x"$ac_file" != x-; then
35065    {
35066      $as_echo "/* $configure_input  */" \
35067      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35068    } >"$ac_tmp/config.h" \
35069      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35070    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
35071      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
35072$as_echo "$as_me: $ac_file is unchanged" >&6;}
35073    else
35074      rm -f "$ac_file"
35075      mv "$ac_tmp/config.h" "$ac_file" \
35076	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
35077    fi
35078  else
35079    $as_echo "/* $configure_input  */" \
35080      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
35081      || as_fn_error $? "could not create -" "$LINENO" 5
35082  fi
35083# Compute "$ac_file"'s index in $config_headers.
35084_am_arg="$ac_file"
35085_am_stamp_count=1
35086for _am_header in $config_headers :; do
35087  case $_am_header in
35088    $_am_arg | $_am_arg:* )
35089      break ;;
35090    * )
35091      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35092  esac
35093done
35094echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
35095$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35096	 X"$_am_arg" : 'X\(//\)[^/]' \| \
35097	 X"$_am_arg" : 'X\(//\)$' \| \
35098	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
35099$as_echo X"$_am_arg" |
35100    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35101	    s//\1/
35102	    q
35103	  }
35104	  /^X\(\/\/\)[^/].*/{
35105	    s//\1/
35106	    q
35107	  }
35108	  /^X\(\/\/\)$/{
35109	    s//\1/
35110	    q
35111	  }
35112	  /^X\(\/\).*/{
35113	    s//\1/
35114	    q
35115	  }
35116	  s/.*/./; q'`/stamp-h$_am_stamp_count
35117 ;;
35118
35119  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
35120$as_echo "$as_me: executing $ac_file commands" >&6;}
35121 ;;
35122  esac
35123
35124
35125  case $ac_file$ac_mode in
35126    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
35127  # Older Autoconf quotes --file arguments for eval, but not when files
35128  # are listed without --file.  Let's play safe and only enable the eval
35129  # if we detect the quoting.
35130  case $CONFIG_FILES in
35131  *\'*) eval set x "$CONFIG_FILES" ;;
35132  *)   set x $CONFIG_FILES ;;
35133  esac
35134  shift
35135  for mf
35136  do
35137    # Strip MF so we end up with the name of the file.
35138    mf=`echo "$mf" | sed -e 's/:.*$//'`
35139    # Check whether this is an Automake generated Makefile or not.
35140    # We used to match only the files named 'Makefile.in', but
35141    # some people rename them; so instead we look at the file content.
35142    # Grep'ing the first line is not enough: some people post-process
35143    # each Makefile.in and add a new line on top of each file to say so.
35144    # Grep'ing the whole file is not good either: AIX grep has a line
35145    # limit of 2048, but all sed's we know have understand at least 4000.
35146    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
35147      dirpart=`$as_dirname -- "$mf" ||
35148$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35149	 X"$mf" : 'X\(//\)[^/]' \| \
35150	 X"$mf" : 'X\(//\)$' \| \
35151	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35152$as_echo X"$mf" |
35153    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35154	    s//\1/
35155	    q
35156	  }
35157	  /^X\(\/\/\)[^/].*/{
35158	    s//\1/
35159	    q
35160	  }
35161	  /^X\(\/\/\)$/{
35162	    s//\1/
35163	    q
35164	  }
35165	  /^X\(\/\).*/{
35166	    s//\1/
35167	    q
35168	  }
35169	  s/.*/./; q'`
35170    else
35171      continue
35172    fi
35173    # Extract the definition of DEPDIR, am__include, and am__quote
35174    # from the Makefile without running 'make'.
35175    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35176    test -z "$DEPDIR" && continue
35177    am__include=`sed -n 's/^am__include = //p' < "$mf"`
35178    test -z "$am__include" && continue
35179    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35180    # Find all dependency output files, they are included files with
35181    # $(DEPDIR) in their names.  We invoke sed twice because it is the
35182    # simplest approach to changing $(DEPDIR) to its actual value in the
35183    # expansion.
35184    for file in `sed -n "
35185      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35186	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
35187      # Make sure the directory exists.
35188      test -f "$dirpart/$file" && continue
35189      fdir=`$as_dirname -- "$file" ||
35190$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35191	 X"$file" : 'X\(//\)[^/]' \| \
35192	 X"$file" : 'X\(//\)$' \| \
35193	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35194$as_echo X"$file" |
35195    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35196	    s//\1/
35197	    q
35198	  }
35199	  /^X\(\/\/\)[^/].*/{
35200	    s//\1/
35201	    q
35202	  }
35203	  /^X\(\/\/\)$/{
35204	    s//\1/
35205	    q
35206	  }
35207	  /^X\(\/\).*/{
35208	    s//\1/
35209	    q
35210	  }
35211	  s/.*/./; q'`
35212      as_dir=$dirpart/$fdir; as_fn_mkdir_p
35213      # echo "creating $dirpart/$file"
35214      echo '# dummy' > "$dirpart/$file"
35215    done
35216  done
35217}
35218 ;;
35219    "libtool":C)
35220
35221    # See if we are running on zsh, and set the options that allow our
35222    # commands through without removal of \ escapes.
35223    if test -n "${ZSH_VERSION+set}"; then
35224      setopt NO_GLOB_SUBST
35225    fi
35226
35227    cfgfile=${ofile}T
35228    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35229    $RM "$cfgfile"
35230
35231    cat <<_LT_EOF >> "$cfgfile"
35232#! $SHELL
35233# Generated automatically by $as_me ($PACKAGE) $VERSION
35234# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35235# NOTE: Changes made to this file will be lost: look at ltmain.sh.
35236
35237# Provide generalized library-building support services.
35238# Written by Gordon Matzigkeit, 1996
35239
35240# Copyright (C) 2014 Free Software Foundation, Inc.
35241# This is free software; see the source for copying conditions.  There is NO
35242# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
35243
35244# GNU Libtool is free software; you can redistribute it and/or modify
35245# it under the terms of the GNU General Public License as published by
35246# the Free Software Foundation; either version 2 of of the License, or
35247# (at your option) any later version.
35248#
35249# As a special exception to the GNU General Public License, if you
35250# distribute this file as part of a program or library that is built
35251# using GNU Libtool, you may include this file under the  same
35252# distribution terms that you use for the rest of that program.
35253#
35254# GNU Libtool is distributed in the hope that it will be useful, but
35255# WITHOUT ANY WARRANTY; without even the implied warranty of
35256# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35257# GNU General Public License for more details.
35258#
35259# You should have received a copy of the GNU General Public License
35260# along with this program.  If not, see <http://www.gnu.org/licenses/>.
35261
35262
35263# The names of the tagged configurations supported by this script.
35264available_tags=''
35265
35266# Configured defaults for sys_lib_dlsearch_path munging.
35267: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
35268
35269# ### BEGIN LIBTOOL CONFIG
35270
35271# Whether or not to build shared libraries.
35272build_libtool_libs=$enable_shared
35273
35274# Which release of libtool.m4 was used?
35275macro_version=$macro_version
35276macro_revision=$macro_revision
35277
35278# Whether or not to build static libraries.
35279build_old_libs=$enable_static
35280
35281# What type of objects to build.
35282pic_mode=$pic_mode
35283
35284# Whether or not to optimize for fast installation.
35285fast_install=$enable_fast_install
35286
35287# Shared archive member basename,for filename based shared library versioning on AIX.
35288shared_archive_member_spec=$shared_archive_member_spec
35289
35290# Shell to use when invoking shell scripts.
35291SHELL=$lt_SHELL
35292
35293# An echo program that protects backslashes.
35294ECHO=$lt_ECHO
35295
35296# The PATH separator for the build system.
35297PATH_SEPARATOR=$lt_PATH_SEPARATOR
35298
35299# The host system.
35300host_alias=$host_alias
35301host=$host
35302host_os=$host_os
35303
35304# The build system.
35305build_alias=$build_alias
35306build=$build
35307build_os=$build_os
35308
35309# A sed program that does not truncate output.
35310SED=$lt_SED
35311
35312# Sed that helps us avoid accidentally triggering echo(1) options like -n.
35313Xsed="\$SED -e 1s/^X//"
35314
35315# A grep program that handles long lines.
35316GREP=$lt_GREP
35317
35318# An ERE matcher.
35319EGREP=$lt_EGREP
35320
35321# A literal string matcher.
35322FGREP=$lt_FGREP
35323
35324# A BSD- or MS-compatible name lister.
35325NM=$lt_NM
35326
35327# Whether we need soft or hard links.
35328LN_S=$lt_LN_S
35329
35330# What is the maximum length of a command?
35331max_cmd_len=$max_cmd_len
35332
35333# Object file suffix (normally "o").
35334objext=$ac_objext
35335
35336# Executable file suffix (normally "").
35337exeext=$exeext
35338
35339# whether the shell understands "unset".
35340lt_unset=$lt_unset
35341
35342# turn spaces into newlines.
35343SP2NL=$lt_lt_SP2NL
35344
35345# turn newlines into spaces.
35346NL2SP=$lt_lt_NL2SP
35347
35348# convert \$build file names to \$host format.
35349to_host_file_cmd=$lt_cv_to_host_file_cmd
35350
35351# convert \$build files to toolchain format.
35352to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35353
35354# An object symbol dumper.
35355OBJDUMP=$lt_OBJDUMP
35356
35357# Method to check whether dependent libraries are shared objects.
35358deplibs_check_method=$lt_deplibs_check_method
35359
35360# Command to use when deplibs_check_method = "file_magic".
35361file_magic_cmd=$lt_file_magic_cmd
35362
35363# How to find potential files when deplibs_check_method = "file_magic".
35364file_magic_glob=$lt_file_magic_glob
35365
35366# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
35367want_nocaseglob=$lt_want_nocaseglob
35368
35369# DLL creation program.
35370DLLTOOL=$lt_DLLTOOL
35371
35372# Command to associate shared and link libraries.
35373sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
35374
35375# The archiver.
35376AR=$lt_AR
35377
35378# Flags to create an archive.
35379AR_FLAGS=$lt_AR_FLAGS
35380
35381# How to feed a file listing to the archiver.
35382archiver_list_spec=$lt_archiver_list_spec
35383
35384# A symbol stripping program.
35385STRIP=$lt_STRIP
35386
35387# Commands used to install an old-style archive.
35388RANLIB=$lt_RANLIB
35389old_postinstall_cmds=$lt_old_postinstall_cmds
35390old_postuninstall_cmds=$lt_old_postuninstall_cmds
35391
35392# Whether to use a lock for old archive extraction.
35393lock_old_archive_extraction=$lock_old_archive_extraction
35394
35395# A C compiler.
35396LTCC=$lt_CC
35397
35398# LTCC compiler flags.
35399LTCFLAGS=$lt_CFLAGS
35400
35401# Take the output of nm and produce a listing of raw symbols and C names.
35402global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35403
35404# Transform the output of nm in a proper C declaration.
35405global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35406
35407# Transform the output of nm into a list of symbols to manually relocate.
35408global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
35409
35410# Transform the output of nm in a C name address pair.
35411global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35412
35413# Transform the output of nm in a C name address pair when lib prefix is needed.
35414global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35415
35416# The name lister interface.
35417nm_interface=$lt_lt_cv_nm_interface
35418
35419# Specify filename containing input files for \$NM.
35420nm_file_list_spec=$lt_nm_file_list_spec
35421
35422# The root where to search for dependent libraries,and where our libraries should be installed.
35423lt_sysroot=$lt_sysroot
35424
35425# Command to truncate a binary pipe.
35426lt_truncate_bin=$lt_lt_cv_truncate_bin
35427
35428# The name of the directory that contains temporary libtool files.
35429objdir=$objdir
35430
35431# Used to examine libraries when file_magic_cmd begins with "file".
35432MAGIC_CMD=$MAGIC_CMD
35433
35434# Must we lock files when doing compilation?
35435need_locks=$lt_need_locks
35436
35437# Manifest tool.
35438MANIFEST_TOOL=$lt_MANIFEST_TOOL
35439
35440# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35441DSYMUTIL=$lt_DSYMUTIL
35442
35443# Tool to change global to local symbols on Mac OS X.
35444NMEDIT=$lt_NMEDIT
35445
35446# Tool to manipulate fat objects and archives on Mac OS X.
35447LIPO=$lt_LIPO
35448
35449# ldd/readelf like tool for Mach-O binaries on Mac OS X.
35450OTOOL=$lt_OTOOL
35451
35452# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35453OTOOL64=$lt_OTOOL64
35454
35455# Old archive suffix (normally "a").
35456libext=$libext
35457
35458# Shared library suffix (normally ".so").
35459shrext_cmds=$lt_shrext_cmds
35460
35461# The commands to extract the exported symbol list from a shared archive.
35462extract_expsyms_cmds=$lt_extract_expsyms_cmds
35463
35464# Variables whose values should be saved in libtool wrapper scripts and
35465# restored at link time.
35466variables_saved_for_relink=$lt_variables_saved_for_relink
35467
35468# Do we need the "lib" prefix for modules?
35469need_lib_prefix=$need_lib_prefix
35470
35471# Do we need a version for libraries?
35472need_version=$need_version
35473
35474# Library versioning type.
35475version_type=$version_type
35476
35477# Shared library runtime path variable.
35478runpath_var=$runpath_var
35479
35480# Shared library path variable.
35481shlibpath_var=$shlibpath_var
35482
35483# Is shlibpath searched before the hard-coded library search path?
35484shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35485
35486# Format of library name prefix.
35487libname_spec=$lt_libname_spec
35488
35489# List of archive names.  First name is the real one, the rest are links.
35490# The last name is the one that the linker finds with -lNAME
35491library_names_spec=$lt_library_names_spec
35492
35493# The coded name of the library, if different from the real name.
35494soname_spec=$lt_soname_spec
35495
35496# Permission mode override for installation of shared libraries.
35497install_override_mode=$lt_install_override_mode
35498
35499# Command to use after installation of a shared archive.
35500postinstall_cmds=$lt_postinstall_cmds
35501
35502# Command to use after uninstallation of a shared archive.
35503postuninstall_cmds=$lt_postuninstall_cmds
35504
35505# Commands used to finish a libtool library installation in a directory.
35506finish_cmds=$lt_finish_cmds
35507
35508# As "finish_cmds", except a single script fragment to be evaled but
35509# not shown.
35510finish_eval=$lt_finish_eval
35511
35512# Whether we should hardcode library paths into libraries.
35513hardcode_into_libs=$hardcode_into_libs
35514
35515# Compile-time system search path for libraries.
35516sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35517
35518# Detected run-time system search path for libraries.
35519sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
35520
35521# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
35522configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
35523
35524# Whether dlopen is supported.
35525dlopen_support=$enable_dlopen
35526
35527# Whether dlopen of programs is supported.
35528dlopen_self=$enable_dlopen_self
35529
35530# Whether dlopen of statically linked programs is supported.
35531dlopen_self_static=$enable_dlopen_self_static
35532
35533# Commands to strip libraries.
35534old_striplib=$lt_old_striplib
35535striplib=$lt_striplib
35536
35537
35538# The linker used to build libraries.
35539LD=$lt_LD
35540
35541# How to create reloadable object files.
35542reload_flag=$lt_reload_flag
35543reload_cmds=$lt_reload_cmds
35544
35545# Commands used to build an old-style archive.
35546old_archive_cmds=$lt_old_archive_cmds
35547
35548# A language specific compiler.
35549CC=$lt_compiler
35550
35551# Is the compiler the GNU compiler?
35552with_gcc=$GCC
35553
35554# Compiler flag to turn off builtin functions.
35555no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35556
35557# Additional compiler flags for building library objects.
35558pic_flag=$lt_lt_prog_compiler_pic
35559
35560# How to pass a linker flag through the compiler.
35561wl=$lt_lt_prog_compiler_wl
35562
35563# Compiler flag to prevent dynamic linking.
35564link_static_flag=$lt_lt_prog_compiler_static
35565
35566# Does compiler simultaneously support -c and -o options?
35567compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35568
35569# Whether or not to add -lc for building shared libraries.
35570build_libtool_need_lc=$archive_cmds_need_lc
35571
35572# Whether or not to disallow shared libs when runtime libs are static.
35573allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35574
35575# Compiler flag to allow reflexive dlopens.
35576export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35577
35578# Compiler flag to generate shared objects directly from archives.
35579whole_archive_flag_spec=$lt_whole_archive_flag_spec
35580
35581# Whether the compiler copes with passing no objects directly.
35582compiler_needs_object=$lt_compiler_needs_object
35583
35584# Create an old-style archive from a shared archive.
35585old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35586
35587# Create a temporary old-style archive to link instead of a shared archive.
35588old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35589
35590# Commands used to build a shared archive.
35591archive_cmds=$lt_archive_cmds
35592archive_expsym_cmds=$lt_archive_expsym_cmds
35593
35594# Commands used to build a loadable module if different from building
35595# a shared archive.
35596module_cmds=$lt_module_cmds
35597module_expsym_cmds=$lt_module_expsym_cmds
35598
35599# Whether we are building with GNU ld or not.
35600with_gnu_ld=$lt_with_gnu_ld
35601
35602# Flag that allows shared libraries with undefined symbols to be built.
35603allow_undefined_flag=$lt_allow_undefined_flag
35604
35605# Flag that enforces no undefined symbols.
35606no_undefined_flag=$lt_no_undefined_flag
35607
35608# Flag to hardcode \$libdir into a binary during linking.
35609# This must work even if \$libdir does not exist
35610hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35611
35612# Whether we need a single "-rpath" flag with a separated argument.
35613hardcode_libdir_separator=$lt_hardcode_libdir_separator
35614
35615# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35616# DIR into the resulting binary.
35617hardcode_direct=$hardcode_direct
35618
35619# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35620# DIR into the resulting binary and the resulting library dependency is
35621# "absolute",i.e impossible to change by setting \$shlibpath_var if the
35622# library is relocated.
35623hardcode_direct_absolute=$hardcode_direct_absolute
35624
35625# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35626# into the resulting binary.
35627hardcode_minus_L=$hardcode_minus_L
35628
35629# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35630# into the resulting binary.
35631hardcode_shlibpath_var=$hardcode_shlibpath_var
35632
35633# Set to "yes" if building a shared library automatically hardcodes DIR
35634# into the library and all subsequent libraries and executables linked
35635# against it.
35636hardcode_automatic=$hardcode_automatic
35637
35638# Set to yes if linker adds runtime paths of dependent libraries
35639# to runtime path list.
35640inherit_rpath=$inherit_rpath
35641
35642# Whether libtool must link a program against all its dependency libraries.
35643link_all_deplibs=$link_all_deplibs
35644
35645# Set to "yes" if exported symbols are required.
35646always_export_symbols=$always_export_symbols
35647
35648# The commands to list exported symbols.
35649export_symbols_cmds=$lt_export_symbols_cmds
35650
35651# Symbols that should not be listed in the preloaded symbols.
35652exclude_expsyms=$lt_exclude_expsyms
35653
35654# Symbols that must always be exported.
35655include_expsyms=$lt_include_expsyms
35656
35657# Commands necessary for linking programs (against libraries) with templates.
35658prelink_cmds=$lt_prelink_cmds
35659
35660# Commands necessary for finishing linking programs.
35661postlink_cmds=$lt_postlink_cmds
35662
35663# Specify filename containing input files.
35664file_list_spec=$lt_file_list_spec
35665
35666# How to hardcode a shared library path into an executable.
35667hardcode_action=$hardcode_action
35668
35669# ### END LIBTOOL CONFIG
35670
35671_LT_EOF
35672
35673    cat <<'_LT_EOF' >> "$cfgfile"
35674
35675# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
35676
35677# func_munge_path_list VARIABLE PATH
35678# -----------------------------------
35679# VARIABLE is name of variable containing _space_ separated list of
35680# directories to be munged by the contents of PATH, which is string
35681# having a format:
35682# "DIR[:DIR]:"
35683#       string "DIR[ DIR]" will be prepended to VARIABLE
35684# ":DIR[:DIR]"
35685#       string "DIR[ DIR]" will be appended to VARIABLE
35686# "DIRP[:DIRP]::[DIRA:]DIRA"
35687#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
35688#       "DIRA[ DIRA]" will be appended to VARIABLE
35689# "DIR[:DIR]"
35690#       VARIABLE will be replaced by "DIR[ DIR]"
35691func_munge_path_list ()
35692{
35693    case x$2 in
35694    x)
35695        ;;
35696    *:)
35697        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
35698        ;;
35699    x:*)
35700        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
35701        ;;
35702    *::*)
35703        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
35704        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
35705        ;;
35706    *)
35707        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
35708        ;;
35709    esac
35710}
35711
35712
35713# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
35714func_cc_basename ()
35715{
35716    for cc_temp in $*""; do
35717      case $cc_temp in
35718        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
35719        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
35720        \-*) ;;
35721        *) break;;
35722      esac
35723    done
35724    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
35725}
35726
35727
35728# ### END FUNCTIONS SHARED WITH CONFIGURE
35729
35730_LT_EOF
35731
35732  case $host_os in
35733  aix3*)
35734    cat <<\_LT_EOF >> "$cfgfile"
35735# AIX sometimes has problems with the GCC collect2 program.  For some
35736# reason, if we set the COLLECT_NAMES environment variable, the problems
35737# vanish in a puff of smoke.
35738if test set != "${COLLECT_NAMES+set}"; then
35739  COLLECT_NAMES=
35740  export COLLECT_NAMES
35741fi
35742_LT_EOF
35743    ;;
35744  esac
35745
35746
35747ltmain=$ac_aux_dir/ltmain.sh
35748
35749
35750  # We use sed instead of cat because bash on DJGPP gets confused if
35751  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
35752  # text mode, it properly converts lines to CR/LF.  This bash problem
35753  # is reportedly fixed, but why not run on old versions too?
35754  sed '$q' "$ltmain" >> "$cfgfile" \
35755     || (rm -f "$cfgfile"; exit 1)
35756
35757   mv -f "$cfgfile" "$ofile" ||
35758    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35759  chmod +x "$ofile"
35760
35761 ;;
35762    "ntpd/complete.conf":F) sed -e '/^rlimit$/d' -e '/^$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
35763    "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;;
35764    "scripts/build/genAuthors":F) chmod +x scripts/build/genAuthors ;;
35765    "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
35766    "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
35767    "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
35768    "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
35769    "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
35770    "scripts/ntpver":F) chmod +x scripts/ntpver ;;
35771    "scripts/plot_summary":F) chmod +x scripts/plot_summary ;;
35772    "scripts/summary":F) chmod +x scripts/summary ;;
35773    "scripts/update-leap/update-leap":F) chmod +x scripts/update-leap/update-leap ;;
35774
35775  esac
35776done # for ac_tag
35777
35778
35779as_fn_exit 0
35780_ACEOF
35781ac_clean_files=$ac_clean_files_save
35782
35783test $ac_write_fail = 0 ||
35784  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35785
35786
35787# configure is writing to config.log, and then calls config.status.
35788# config.status does its own redirection, appending to config.log.
35789# Unfortunately, on DOS this fails, as config.log is still kept open
35790# by configure, so config.status won't be able to write to it; its
35791# output is simply discarded.  So we exec the FD to /dev/null,
35792# effectively closing config.log, so it can be properly (re)opened and
35793# appended to by config.status.  When coming back to configure, we
35794# need to make the FD available again.
35795if test "$no_create" != yes; then
35796  ac_cs_success=:
35797  ac_config_status_args=
35798  test "$silent" = yes &&
35799    ac_config_status_args="$ac_config_status_args --quiet"
35800  exec 5>/dev/null
35801  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35802  exec 5>>config.log
35803  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35804  # would make configure fail if this is the last instruction.
35805  $ac_cs_success || as_fn_exit 1
35806fi
35807
35808#
35809# CONFIG_SUBDIRS section.
35810#
35811if test "$no_recursion" != yes; then
35812
35813  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
35814  # so they do not pile up.
35815  ac_sub_configure_args=
35816  ac_prev=
35817  eval "set x $ac_configure_args"
35818  shift
35819  for ac_arg
35820  do
35821    if test -n "$ac_prev"; then
35822      ac_prev=
35823      continue
35824    fi
35825    case $ac_arg in
35826    -cache-file | --cache-file | --cache-fil | --cache-fi \
35827    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35828      ac_prev=cache_file ;;
35829    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35830    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35831    | --c=*)
35832      ;;
35833    --config-cache | -C)
35834      ;;
35835    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35836      ac_prev=srcdir ;;
35837    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35838      ;;
35839    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35840      ac_prev=prefix ;;
35841    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35842      ;;
35843    --disable-option-checking)
35844      ;;
35845    *)
35846      case $ac_arg in
35847      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35848      esac
35849      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
35850    esac
35851  done
35852
35853  # Always prepend --prefix to ensure using the same prefix
35854  # in subdir configurations.
35855  ac_arg="--prefix=$prefix"
35856  case $ac_arg in
35857  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35858  esac
35859  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
35860
35861  # Pass --silent
35862  if test "$silent" = yes; then
35863    ac_sub_configure_args="--silent $ac_sub_configure_args"
35864  fi
35865
35866  # Always prepend --disable-option-checking to silence warnings, since
35867  # different subdirs can have different --enable and --with options.
35868  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
35869
35870  ac_popdir=`pwd`
35871  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35872
35873    # Do not complain, so a configure script can configure whichever
35874    # parts of a large source tree are present.
35875    test -d "$srcdir/$ac_dir" || continue
35876
35877    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35878    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
35879    $as_echo "$ac_msg" >&6
35880    as_dir="$ac_dir"; as_fn_mkdir_p
35881    ac_builddir=.
35882
35883case "$ac_dir" in
35884.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35885*)
35886  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35887  # A ".." for each directory in $ac_dir_suffix.
35888  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35889  case $ac_top_builddir_sub in
35890  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35891  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35892  esac ;;
35893esac
35894ac_abs_top_builddir=$ac_pwd
35895ac_abs_builddir=$ac_pwd$ac_dir_suffix
35896# for backward compatibility:
35897ac_top_builddir=$ac_top_build_prefix
35898
35899case $srcdir in
35900  .)  # We are building in place.
35901    ac_srcdir=.
35902    ac_top_srcdir=$ac_top_builddir_sub
35903    ac_abs_top_srcdir=$ac_pwd ;;
35904  [\\/]* | ?:[\\/]* )  # Absolute name.
35905    ac_srcdir=$srcdir$ac_dir_suffix;
35906    ac_top_srcdir=$srcdir
35907    ac_abs_top_srcdir=$srcdir ;;
35908  *) # Relative name.
35909    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35910    ac_top_srcdir=$ac_top_build_prefix$srcdir
35911    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35912esac
35913ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35914
35915
35916    cd "$ac_dir"
35917
35918    # Check for guested configure; otherwise get Cygnus style configure.
35919    if test -f "$ac_srcdir/configure.gnu"; then
35920      ac_sub_configure=$ac_srcdir/configure.gnu
35921    elif test -f "$ac_srcdir/configure"; then
35922      ac_sub_configure=$ac_srcdir/configure
35923    elif test -f "$ac_srcdir/configure.in"; then
35924      # This should be Cygnus configure.
35925      ac_sub_configure=$ac_aux_dir/configure
35926    else
35927      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
35928$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35929      ac_sub_configure=
35930    fi
35931
35932    # The recursion is here.
35933    if test -n "$ac_sub_configure"; then
35934      # Make the cache file name correct relative to the subdirectory.
35935      case $cache_file in
35936      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35937      *) # Relative name.
35938	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35939      esac
35940
35941      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35942$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35943      # The eval makes quoting arguments work.
35944      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35945	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35946	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
35947    fi
35948
35949    cd "$ac_popdir"
35950  done
35951fi
35952if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35953  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35954$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35955fi
35956
35957