xref: /freebsd/contrib/ntp/configure (revision 1f4bcc459a76b7aa664f3fd557684cd0ba6da352)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ntp 4.2.8p6.
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.8p6'
594PACKAGE_STRING='ntp 4.2.8p6'
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
726CXXCPP
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
835YFLAGS
836YACC
837am__fastdepCXX_FALSE
838am__fastdepCXX_TRUE
839CXXDEPMODE
840ac_ct_CXX
841CXXFLAGS
842CXX
843LDFLAGS_NTP
844LDADD_NTP
845CPPFLAGS_NTP
846CFLAGS_NTP
847EGREP
848GREP
849CPP
850am__fastdepCC_FALSE
851am__fastdepCC_TRUE
852CCDEPMODE
853am__nodep
854AMDEPBACKSLASH
855AMDEP_FALSE
856AMDEP_TRUE
857am__quote
858am__include
859DEPDIR
860OBJEXT
861EXEEXT
862ac_ct_CC
863CPPFLAGS
864LDFLAGS
865CFLAGS
866CC
867host_os
868host_vendor
869host_cpu
870host
871build_os
872build_vendor
873build_cpu
874build
875AM_BACKSLASH
876AM_DEFAULT_VERBOSITY
877AM_DEFAULT_V
878AM_V
879am__untar
880am__tar
881AMTAR
882am__leading_dot
883SET_MAKE
884AWK
885mkdir_p
886MKDIR_P
887INSTALL_STRIP_PROGRAM
888STRIP
889install_sh
890MAKEINFO
891AUTOHEADER
892AUTOMAKE
893AUTOCONF
894ACLOCAL
895VERSION
896PACKAGE
897CYGPATH_W
898am__isrc
899INSTALL_DATA
900INSTALL_SCRIPT
901INSTALL_PROGRAM
902target_alias
903host_alias
904build_alias
905LIBS
906ECHO_T
907ECHO_N
908ECHO_C
909DEFS
910mandir
911localedir
912libdir
913psdir
914pdfdir
915dvidir
916htmldir
917infodir
918docdir
919oldincludedir
920includedir
921localstatedir
922sharedstatedir
923sysconfdir
924datadir
925datarootdir
926libexecdir
927sbindir
928bindir
929program_transform_name
930prefix
931exec_prefix
932PACKAGE_URL
933PACKAGE_BUGREPORT
934PACKAGE_STRING
935PACKAGE_VERSION
936PACKAGE_TARNAME
937PACKAGE_NAME
938PATH_SEPARATOR
939SHELL'
940ac_subst_files='calc_tickadj_opts
941ntp_wait_opts
942ntpsweep_opts
943ntptrace_opts
944summary_opts
945plot_summary_opts'
946ac_user_opts='
947enable_option_checking
948enable_silent_rules
949enable_dependency_tracking
950with_locfile
951enable_shared
952enable_static
953with_pic
954enable_fast_install
955with_gnu_ld
956with_sysroot
957enable_libtool_lock
958enable_nls
959enable_local_libopts
960enable_libopts_install
961with_autoopts_config
962enable_local_libevent
963with_lineeditlibs
964enable_debugging
965enable_thread_support
966with_threads
967with_yielding_select
968enable_c99_snprintf
969enable_clockctl
970enable_linuxcaps
971enable_solarisprivs
972with_arlib
973with_net_snmp_config
974enable_libseccomp
975with_stack_limit
976with_memlock
977enable_debug_timing
978enable_dst_minutes
979enable_ignore_dns_errors
980enable_BANCOMM
981enable_GPSVME
982enable_all_clocks
983enable_ACTS
984enable_ARBITER
985enable_ARCRON_MSF
986enable_AS2201
987enable_ATOM
988enable_CHRONOLOG
989enable_CHU
990enable_AUDIO_CHU
991enable_DATUM
992enable_DUMBCLOCK
993enable_FG
994enable_HEATH
995enable_HOPFSERIAL
996enable_HOPFPCI
997enable_HPGPS
998enable_IRIG
999enable_JJY
1000enable_JUPITER
1001enable_LEITCH
1002enable_LOCAL_CLOCK
1003enable_MX4200
1004enable_NEOCLOCK4X
1005enable_NMEA
1006enable_GPSD
1007enable_ONCORE
1008enable_PALISADE
1009enable_PCF
1010enable_PST
1011enable_RIPENCC
1012enable_SHM
1013enable_SPECTRACOM
1014enable_TPRO
1015enable_TRUETIME
1016enable_TT560
1017enable_ULINK
1018enable_TSYNCPCI
1019enable_WWV
1020enable_ZYFER
1021enable_parse_clocks
1022enable_COMPUTIME
1023enable_DCF7000
1024enable_HOPF6021
1025enable_MEINBERG
1026enable_RAWDCF
1027enable_RCC8000
1028enable_SCHMID
1029enable_TRIMTAIP
1030enable_TRIMTSIP
1031enable_WHARTON
1032enable_VARITEXT
1033enable_SEL240X
1034with_crypto
1035with_openssl_libdir
1036with_openssl_incdir
1037with_rpath
1038enable_openssl_random
1039enable_autokey
1040enable_kmem
1041enable_accurate_adjtime
1042enable_tick
1043enable_tickadj
1044enable_simulator
1045with_sntp
1046with_ntpsnmpd
1047enable_slew_always
1048enable_step_slew
1049enable_ntpdate_step
1050enable_hourly_todr_sync
1051enable_kernel_fll_bug
1052enable_bug1243_fix
1053enable_irig_sawtooth
1054enable_nist
1055enable_ntp_signd
1056enable_ipv6
1057with_kame
1058enable_getifaddrs
1059enable_saveconfig
1060enable_leap_smear
1061with_gtest
1062enable_problem_tests
1063'
1064      ac_precious_vars='build_alias
1065host_alias
1066target_alias
1067CC
1068CFLAGS
1069LDFLAGS
1070LIBS
1071CPPFLAGS
1072CPP
1073CXX
1074CXXFLAGS
1075CCC
1076YACC
1077YFLAGS
1078CXXCPP'
1079ac_subdirs_all='sntp'
1080
1081# Initialize some variables set by options.
1082ac_init_help=
1083ac_init_version=false
1084ac_unrecognized_opts=
1085ac_unrecognized_sep=
1086# The variables have the same names as the options, with
1087# dashes changed to underlines.
1088cache_file=/dev/null
1089exec_prefix=NONE
1090no_create=
1091no_recursion=
1092prefix=NONE
1093program_prefix=NONE
1094program_suffix=NONE
1095program_transform_name=s,x,x,
1096silent=
1097site=
1098srcdir=
1099verbose=
1100x_includes=NONE
1101x_libraries=NONE
1102
1103# Installation directory options.
1104# These are left unexpanded so users can "make install exec_prefix=/foo"
1105# and all the variables that are supposed to be based on exec_prefix
1106# by default will actually change.
1107# Use braces instead of parens because sh, perl, etc. also accept them.
1108# (The list follows the same order as the GNU Coding Standards.)
1109bindir='${exec_prefix}/bin'
1110sbindir='${exec_prefix}/sbin'
1111libexecdir='${exec_prefix}/libexec'
1112datarootdir='${prefix}/share'
1113datadir='${datarootdir}'
1114sysconfdir='${prefix}/etc'
1115sharedstatedir='${prefix}/com'
1116localstatedir='${prefix}/var'
1117includedir='${prefix}/include'
1118oldincludedir='/usr/include'
1119docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1120infodir='${datarootdir}/info'
1121htmldir='${docdir}'
1122dvidir='${docdir}'
1123pdfdir='${docdir}'
1124psdir='${docdir}'
1125libdir='${exec_prefix}/lib'
1126localedir='${datarootdir}/locale'
1127mandir='${datarootdir}/man'
1128
1129ac_prev=
1130ac_dashdash=
1131for ac_option
1132do
1133  # If the previous option needs an argument, assign it.
1134  if test -n "$ac_prev"; then
1135    eval $ac_prev=\$ac_option
1136    ac_prev=
1137    continue
1138  fi
1139
1140  case $ac_option in
1141  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1142  *=)   ac_optarg= ;;
1143  *)    ac_optarg=yes ;;
1144  esac
1145
1146  # Accept the important Cygnus configure options, so we can diagnose typos.
1147
1148  case $ac_dashdash$ac_option in
1149  --)
1150    ac_dashdash=yes ;;
1151
1152  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1153    ac_prev=bindir ;;
1154  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1155    bindir=$ac_optarg ;;
1156
1157  -build | --build | --buil | --bui | --bu)
1158    ac_prev=build_alias ;;
1159  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1160    build_alias=$ac_optarg ;;
1161
1162  -cache-file | --cache-file | --cache-fil | --cache-fi \
1163  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1164    ac_prev=cache_file ;;
1165  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1166  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1167    cache_file=$ac_optarg ;;
1168
1169  --config-cache | -C)
1170    cache_file=config.cache ;;
1171
1172  -datadir | --datadir | --datadi | --datad)
1173    ac_prev=datadir ;;
1174  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1175    datadir=$ac_optarg ;;
1176
1177  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1178  | --dataroo | --dataro | --datar)
1179    ac_prev=datarootdir ;;
1180  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1181  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1182    datarootdir=$ac_optarg ;;
1183
1184  -disable-* | --disable-*)
1185    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1186    # Reject names that are not valid shell variable names.
1187    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188      as_fn_error $? "invalid feature name: $ac_useropt"
1189    ac_useropt_orig=$ac_useropt
1190    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191    case $ac_user_opts in
1192      *"
1193"enable_$ac_useropt"
1194"*) ;;
1195      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1196	 ac_unrecognized_sep=', ';;
1197    esac
1198    eval enable_$ac_useropt=no ;;
1199
1200  -docdir | --docdir | --docdi | --doc | --do)
1201    ac_prev=docdir ;;
1202  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1203    docdir=$ac_optarg ;;
1204
1205  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1206    ac_prev=dvidir ;;
1207  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1208    dvidir=$ac_optarg ;;
1209
1210  -enable-* | --enable-*)
1211    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1212    # Reject names that are not valid shell variable names.
1213    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214      as_fn_error $? "invalid feature name: $ac_useropt"
1215    ac_useropt_orig=$ac_useropt
1216    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217    case $ac_user_opts in
1218      *"
1219"enable_$ac_useropt"
1220"*) ;;
1221      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1222	 ac_unrecognized_sep=', ';;
1223    esac
1224    eval enable_$ac_useropt=\$ac_optarg ;;
1225
1226  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1227  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1228  | --exec | --exe | --ex)
1229    ac_prev=exec_prefix ;;
1230  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1231  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1232  | --exec=* | --exe=* | --ex=*)
1233    exec_prefix=$ac_optarg ;;
1234
1235  -gas | --gas | --ga | --g)
1236    # Obsolete; use --with-gas.
1237    with_gas=yes ;;
1238
1239  -help | --help | --hel | --he | -h)
1240    ac_init_help=long ;;
1241  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1242    ac_init_help=recursive ;;
1243  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1244    ac_init_help=short ;;
1245
1246  -host | --host | --hos | --ho)
1247    ac_prev=host_alias ;;
1248  -host=* | --host=* | --hos=* | --ho=*)
1249    host_alias=$ac_optarg ;;
1250
1251  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1252    ac_prev=htmldir ;;
1253  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1254  | --ht=*)
1255    htmldir=$ac_optarg ;;
1256
1257  -includedir | --includedir | --includedi | --included | --include \
1258  | --includ | --inclu | --incl | --inc)
1259    ac_prev=includedir ;;
1260  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1261  | --includ=* | --inclu=* | --incl=* | --inc=*)
1262    includedir=$ac_optarg ;;
1263
1264  -infodir | --infodir | --infodi | --infod | --info | --inf)
1265    ac_prev=infodir ;;
1266  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1267    infodir=$ac_optarg ;;
1268
1269  -libdir | --libdir | --libdi | --libd)
1270    ac_prev=libdir ;;
1271  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1272    libdir=$ac_optarg ;;
1273
1274  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1275  | --libexe | --libex | --libe)
1276    ac_prev=libexecdir ;;
1277  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1278  | --libexe=* | --libex=* | --libe=*)
1279    libexecdir=$ac_optarg ;;
1280
1281  -localedir | --localedir | --localedi | --localed | --locale)
1282    ac_prev=localedir ;;
1283  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1284    localedir=$ac_optarg ;;
1285
1286  -localstatedir | --localstatedir | --localstatedi | --localstated \
1287  | --localstate | --localstat | --localsta | --localst | --locals)
1288    ac_prev=localstatedir ;;
1289  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1290  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1291    localstatedir=$ac_optarg ;;
1292
1293  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1294    ac_prev=mandir ;;
1295  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1296    mandir=$ac_optarg ;;
1297
1298  -nfp | --nfp | --nf)
1299    # Obsolete; use --without-fp.
1300    with_fp=no ;;
1301
1302  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1303  | --no-cr | --no-c | -n)
1304    no_create=yes ;;
1305
1306  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1307  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1308    no_recursion=yes ;;
1309
1310  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1311  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1312  | --oldin | --oldi | --old | --ol | --o)
1313    ac_prev=oldincludedir ;;
1314  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1315  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1316  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1317    oldincludedir=$ac_optarg ;;
1318
1319  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1320    ac_prev=prefix ;;
1321  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1322    prefix=$ac_optarg ;;
1323
1324  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1325  | --program-pre | --program-pr | --program-p)
1326    ac_prev=program_prefix ;;
1327  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1328  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1329    program_prefix=$ac_optarg ;;
1330
1331  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1332  | --program-suf | --program-su | --program-s)
1333    ac_prev=program_suffix ;;
1334  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1335  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1336    program_suffix=$ac_optarg ;;
1337
1338  -program-transform-name | --program-transform-name \
1339  | --program-transform-nam | --program-transform-na \
1340  | --program-transform-n | --program-transform- \
1341  | --program-transform | --program-transfor \
1342  | --program-transfo | --program-transf \
1343  | --program-trans | --program-tran \
1344  | --progr-tra | --program-tr | --program-t)
1345    ac_prev=program_transform_name ;;
1346  -program-transform-name=* | --program-transform-name=* \
1347  | --program-transform-nam=* | --program-transform-na=* \
1348  | --program-transform-n=* | --program-transform-=* \
1349  | --program-transform=* | --program-transfor=* \
1350  | --program-transfo=* | --program-transf=* \
1351  | --program-trans=* | --program-tran=* \
1352  | --progr-tra=* | --program-tr=* | --program-t=*)
1353    program_transform_name=$ac_optarg ;;
1354
1355  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1356    ac_prev=pdfdir ;;
1357  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1358    pdfdir=$ac_optarg ;;
1359
1360  -psdir | --psdir | --psdi | --psd | --ps)
1361    ac_prev=psdir ;;
1362  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1363    psdir=$ac_optarg ;;
1364
1365  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1366  | -silent | --silent | --silen | --sile | --sil)
1367    silent=yes ;;
1368
1369  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1370    ac_prev=sbindir ;;
1371  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1372  | --sbi=* | --sb=*)
1373    sbindir=$ac_optarg ;;
1374
1375  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1376  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1377  | --sharedst | --shareds | --shared | --share | --shar \
1378  | --sha | --sh)
1379    ac_prev=sharedstatedir ;;
1380  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1381  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1382  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1383  | --sha=* | --sh=*)
1384    sharedstatedir=$ac_optarg ;;
1385
1386  -site | --site | --sit)
1387    ac_prev=site ;;
1388  -site=* | --site=* | --sit=*)
1389    site=$ac_optarg ;;
1390
1391  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1392    ac_prev=srcdir ;;
1393  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1394    srcdir=$ac_optarg ;;
1395
1396  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1397  | --syscon | --sysco | --sysc | --sys | --sy)
1398    ac_prev=sysconfdir ;;
1399  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1400  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1401    sysconfdir=$ac_optarg ;;
1402
1403  -target | --target | --targe | --targ | --tar | --ta | --t)
1404    ac_prev=target_alias ;;
1405  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1406    target_alias=$ac_optarg ;;
1407
1408  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1409    verbose=yes ;;
1410
1411  -version | --version | --versio | --versi | --vers | -V)
1412    ac_init_version=: ;;
1413
1414  -with-* | --with-*)
1415    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1416    # Reject names that are not valid shell variable names.
1417    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1418      as_fn_error $? "invalid package name: $ac_useropt"
1419    ac_useropt_orig=$ac_useropt
1420    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1421    case $ac_user_opts in
1422      *"
1423"with_$ac_useropt"
1424"*) ;;
1425      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1426	 ac_unrecognized_sep=', ';;
1427    esac
1428    eval with_$ac_useropt=\$ac_optarg ;;
1429
1430  -without-* | --without-*)
1431    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1432    # Reject names that are not valid shell variable names.
1433    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1434      as_fn_error $? "invalid package name: $ac_useropt"
1435    ac_useropt_orig=$ac_useropt
1436    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1437    case $ac_user_opts in
1438      *"
1439"with_$ac_useropt"
1440"*) ;;
1441      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1442	 ac_unrecognized_sep=', ';;
1443    esac
1444    eval with_$ac_useropt=no ;;
1445
1446  --x)
1447    # Obsolete; use --with-x.
1448    with_x=yes ;;
1449
1450  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1451  | --x-incl | --x-inc | --x-in | --x-i)
1452    ac_prev=x_includes ;;
1453  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1454  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1455    x_includes=$ac_optarg ;;
1456
1457  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1458  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1459    ac_prev=x_libraries ;;
1460  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1461  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1462    x_libraries=$ac_optarg ;;
1463
1464  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1465Try \`$0 --help' for more information"
1466    ;;
1467
1468  *=*)
1469    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1470    # Reject names that are not valid shell variable names.
1471    case $ac_envvar in #(
1472      '' | [0-9]* | *[!_$as_cr_alnum]* )
1473      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1474    esac
1475    eval $ac_envvar=\$ac_optarg
1476    export $ac_envvar ;;
1477
1478  *)
1479    # FIXME: should be removed in autoconf 3.0.
1480    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1481    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1482      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1483    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1484    ;;
1485
1486  esac
1487done
1488
1489if test -n "$ac_prev"; then
1490  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1491  as_fn_error $? "missing argument to $ac_option"
1492fi
1493
1494if test -n "$ac_unrecognized_opts"; then
1495  case $enable_option_checking in
1496    no) ;;
1497    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1498    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1499  esac
1500fi
1501
1502# Check all directory arguments for consistency.
1503for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1504		datadir sysconfdir sharedstatedir localstatedir includedir \
1505		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1506		libdir localedir mandir
1507do
1508  eval ac_val=\$$ac_var
1509  # Remove trailing slashes.
1510  case $ac_val in
1511    */ )
1512      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1513      eval $ac_var=\$ac_val;;
1514  esac
1515  # Be sure to have absolute directory names.
1516  case $ac_val in
1517    [\\/$]* | ?:[\\/]* )  continue;;
1518    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1519  esac
1520  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1521done
1522
1523# There might be people who depend on the old broken behavior: `$host'
1524# used to hold the argument of --host etc.
1525# FIXME: To remove some day.
1526build=$build_alias
1527host=$host_alias
1528target=$target_alias
1529
1530# FIXME: To remove some day.
1531if test "x$host_alias" != x; then
1532  if test "x$build_alias" = x; then
1533    cross_compiling=maybe
1534  elif test "x$build_alias" != "x$host_alias"; then
1535    cross_compiling=yes
1536  fi
1537fi
1538
1539ac_tool_prefix=
1540test -n "$host_alias" && ac_tool_prefix=$host_alias-
1541
1542test "$silent" = yes && exec 6>/dev/null
1543
1544
1545ac_pwd=`pwd` && test -n "$ac_pwd" &&
1546ac_ls_di=`ls -di .` &&
1547ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1548  as_fn_error $? "working directory cannot be determined"
1549test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1550  as_fn_error $? "pwd does not report name of working directory"
1551
1552
1553# Find the source files, if location was not specified.
1554if test -z "$srcdir"; then
1555  ac_srcdir_defaulted=yes
1556  # Try the directory containing this script, then the parent directory.
1557  ac_confdir=`$as_dirname -- "$as_myself" ||
1558$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1559	 X"$as_myself" : 'X\(//\)[^/]' \| \
1560	 X"$as_myself" : 'X\(//\)$' \| \
1561	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1562$as_echo X"$as_myself" |
1563    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1564	    s//\1/
1565	    q
1566	  }
1567	  /^X\(\/\/\)[^/].*/{
1568	    s//\1/
1569	    q
1570	  }
1571	  /^X\(\/\/\)$/{
1572	    s//\1/
1573	    q
1574	  }
1575	  /^X\(\/\).*/{
1576	    s//\1/
1577	    q
1578	  }
1579	  s/.*/./; q'`
1580  srcdir=$ac_confdir
1581  if test ! -r "$srcdir/$ac_unique_file"; then
1582    srcdir=..
1583  fi
1584else
1585  ac_srcdir_defaulted=no
1586fi
1587if test ! -r "$srcdir/$ac_unique_file"; then
1588  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1589  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1590fi
1591ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1592ac_abs_confdir=`(
1593	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1594	pwd)`
1595# When building in place, set srcdir=.
1596if test "$ac_abs_confdir" = "$ac_pwd"; then
1597  srcdir=.
1598fi
1599# Remove unnecessary trailing slashes from srcdir.
1600# Double slashes in file names in object file debugging info
1601# mess up M-x gdb in Emacs.
1602case $srcdir in
1603*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1604esac
1605for ac_var in $ac_precious_vars; do
1606  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1607  eval ac_env_${ac_var}_value=\$${ac_var}
1608  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1609  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1610done
1611
1612#
1613# Report the --help message.
1614#
1615if test "$ac_init_help" = "long"; then
1616  # Omit some internal or obsolete options to make the list less imposing.
1617  # This message is too long to be a string in the A/UX 3.1 sh.
1618  cat <<_ACEOF
1619\`configure' configures ntp 4.2.8p6 to adapt to many kinds of systems.
1620
1621Usage: $0 [OPTION]... [VAR=VALUE]...
1622
1623To assign environment variables (e.g., CC, CFLAGS...), specify them as
1624VAR=VALUE.  See below for descriptions of some of the useful variables.
1625
1626Defaults for the options are specified in brackets.
1627
1628Configuration:
1629  -h, --help              display this help and exit
1630      --help=short        display options specific to this package
1631      --help=recursive    display the short help of all the included packages
1632  -V, --version           display version information and exit
1633  -q, --quiet, --silent   do not print \`checking ...' messages
1634      --cache-file=FILE   cache test results in FILE [disabled]
1635  -C, --config-cache      alias for \`--cache-file=config.cache'
1636  -n, --no-create         do not create output files
1637      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1638
1639Installation directories:
1640  --prefix=PREFIX         install architecture-independent files in PREFIX
1641                          [$ac_default_prefix]
1642  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1643                          [PREFIX]
1644
1645By default, \`make install' will install all the files in
1646\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1647an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1648for instance \`--prefix=\$HOME'.
1649
1650For better control, use the options below.
1651
1652Fine tuning of the installation directories:
1653  --bindir=DIR            user executables [EPREFIX/bin]
1654  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1655  --libexecdir=DIR        program executables [EPREFIX/libexec]
1656  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1657  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1658  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1659  --libdir=DIR            object code libraries [EPREFIX/lib]
1660  --includedir=DIR        C header files [PREFIX/include]
1661  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1662  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1663  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1664  --infodir=DIR           info documentation [DATAROOTDIR/info]
1665  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1666  --mandir=DIR            man documentation [DATAROOTDIR/man]
1667  --docdir=DIR            documentation root [DATAROOTDIR/doc/ntp]
1668  --htmldir=DIR           html documentation [DOCDIR]
1669  --dvidir=DIR            dvi documentation [DOCDIR]
1670  --pdfdir=DIR            pdf documentation [DOCDIR]
1671  --psdir=DIR             ps documentation [DOCDIR]
1672_ACEOF
1673
1674  cat <<\_ACEOF
1675
1676Program names:
1677  --program-prefix=PREFIX            prepend PREFIX to installed program names
1678  --program-suffix=SUFFIX            append SUFFIX to installed program names
1679  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1680
1681System types:
1682  --build=BUILD     configure for building on BUILD [guessed]
1683  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1684_ACEOF
1685fi
1686
1687if test -n "$ac_init_help"; then
1688  case $ac_init_help in
1689     short | recursive ) echo "Configuration of ntp 4.2.8p6:";;
1690   esac
1691  cat <<\_ACEOF
1692
1693Optional Features and Packages:
1694  --disable-option-checking  ignore unrecognized --enable/--with options
1695  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1696  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1697  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1698  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1699  --enable-silent-rules   less verbose build output (undo: "make V=1")
1700  --disable-silent-rules  verbose build output (undo: "make V=0")
1701  --enable-dependency-tracking
1702                          do not reject slow dependency extractors
1703  --disable-dependency-tracking
1704                          speeds up one-time build
1705  --with-locfile=XXX      os-specific or "legacy"
1706  --enable-shared[=PKGS]  build shared libraries [default=no]
1707  --enable-static[=PKGS]  build static libraries [default=yes]
1708  --with-pic              try to use only PIC/non-PIC objects [default=use
1709                          both]
1710  --enable-fast-install[=PKGS]
1711                          optimize for fast installation [default=yes]
1712  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1713  --with-sysroot=DIR Search for dependent libraries within DIR
1714                        (or the compiler's sysroot if not specified).
1715  --disable-libtool-lock  avoid locking (might break parallel builds)
1716  --disable-nls           disable nls support in libopts
1717  --enable-local-libopts  Use the supplied libopts tearoff code
1718  --enable-libopts-install
1719                          Install libopts with client installation
1720  --with-autoopts-config  specify the config-info script
1721  --enable-local-libevent Force using the supplied libevent tearoff code
1722  --with-lineeditlibs     edit,editline (readline may be specified if desired)
1723  defaults:               + yes, - no, s system-specific
1724  --enable-debugging      + include ntpd debugging code
1725  --enable-thread-support s use threads (+ if available)
1726  --with-threads	  with threads [auto]
1727  --with-yielding-select  with yielding select [auto]
1728  --enable-c99-snprintf   s force replacement
1729  --enable-clockctl       s Use /dev/clockctl for non-root clock control
1730  --enable-linuxcaps      + Use Linux capabilities for non-root clock control
1731  --enable-solarisprivs   + Use Solaris privileges for non-root clock control
1732  --with-arlib            - deprecated, arlib not distributed
1733  --with-net-snmp-config  + =net-snmp-config
1734  --enable-libseccomp     EXPERIMENTAL: enable support for libseccomp
1735                          sandboxing (default is no)
1736  --with-stack-limit      ? =50 (200 for openbsd) 4k pages
1737  --with-memlock          ? =32 (-1 on linux) megabytes
1738  --enable-debug-timing   - include processing time debugging code (costs
1739                          performance)
1740  --enable-dst-minutes    =60 minutes per DST adjustment
1741  --enable-ignore-dns-errors
1742                          - retry DNS queries on any error
1743  --enable-BANCOMM        - Datum/Bancomm bc635/VME interface
1744  --enable-GPSVME         - TrueTime GPS receiver/VME interface
1745  --enable-all-clocks     + include all suitable non-PARSE clocks:
1746  --enable-ACTS           s ACTS modem service
1747  --enable-ARBITER        + Arbiter 1088A/B GPS receiver
1748  --enable-ARCRON-MSF     + Arcron MSF receiver
1749  --enable-AS2201         + Austron 2200A/2201A GPS receiver
1750  --enable-ATOM           s ATOM PPS interface
1751  --enable-CHRONOLOG      + Chrono-log K-series WWVB receiver
1752  --enable-CHU            + CHU modem/decoder
1753  --enable-AUDIO-CHU      s CHU audio/decoder
1754  --enable-DATUM          s Datum Programmable Time System
1755  --enable-DUMBCLOCK      + Dumb generic hh:mm:ss local clock
1756  --enable-FG             + Forum Graphic GPS
1757  --enable-HEATH          s Heath GC-1000 WWV/WWVH receiver
1758  --enable-HOPFSERIAL     + hopf serial clock device
1759  --enable-HOPFPCI        + hopf 6039 PCI board
1760  --enable-HPGPS          + HP 58503A GPS receiver
1761  --enable-IRIG           s IRIG audio decoder
1762  --enable-JJY            + JJY receiver
1763  --enable-JUPITER        s Rockwell Jupiter GPS receiver
1764  --enable-LEITCH         + Leitch CSD 5300 Master Clock System Driver
1765  --enable-LOCAL-CLOCK    + local clock reference
1766  --enable-MX4200         s Magnavox MX4200 GPS receiver
1767  --enable-NEOCLOCK4X     + NeoClock4X DCF77 / TDF receiver
1768  --enable-NMEA           + NMEA GPS receiver
1769  --enable-GPSD           + GPSD JSON receiver
1770  --enable-ONCORE         s Motorola VP/UT Oncore GPS receiver
1771  --enable-PALISADE       s Palisade clock
1772  --enable-PCF            + Conrad parallel port radio clock
1773  --enable-PST            + PST/Traconex 1020 WWV/WWVH receiver
1774  --enable-RIPENCC        - RIPENCC specific Trimble driver
1775  --enable-SHM            s SHM clock attached thru shared memory
1776  --enable-SPECTRACOM     + Spectracom 8170/Netclock/2 WWVB receiver
1777  --enable-TPRO           s KSI/Odetics TPRO/S GPS receiver/IRIG interface
1778  --enable-TRUETIME       s Kinemetrics/TrueTime receivers
1779  --enable-TT560          - TrueTime 560 IRIG-B decoder
1780  --enable-ULINK          + Ultralink WWVB receiver
1781  --enable-TSYNCPCI       s Spectracom TSYNC timing board
1782  --enable-WWV            s WWV Audio receiver
1783  --enable-ZYFER          + Zyfer GPStarplus receiver
1784  --enable-parse-clocks   - include all suitable PARSE clocks:
1785  --enable-COMPUTIME      s Diem Computime Radio Clock
1786  --enable-DCF7000        s ELV/DCF7000 clock
1787  --enable-HOPF6021       s HOPF 6021 clock
1788  --enable-MEINBERG       s Meinberg clocks
1789  --enable-RAWDCF         s DCF77 raw time code
1790  --enable-RCC8000        s RCC 8000 clock
1791  --enable-SCHMID         s Schmid DCF77 clock
1792  --enable-TRIMTAIP       s Trimble GPS receiver/TAIP protocol
1793  --enable-TRIMTSIP       s Trimble GPS receiver/TSIP protocol
1794  --enable-WHARTON        s WHARTON 400A Series clock
1795  --enable-VARITEXT       s VARITEXT clock
1796  --enable-SEL240X        s SEL240X clock
1797  --with-crypto           + =openssl,libcrypto
1798
1799  --with-openssl-libdir   + =/something/reasonable
1800
1801  --with-openssl-incdir   + =/something/reasonable
1802
1803  --without-rpath         s Disable auto-added -R linker paths
1804
1805  --enable-openssl-random Use OpenSSL's crypto random number functions, if
1806                          available (default is yes)
1807  --enable-autokey        + support NTP Autokey protocol
1808  --enable-kmem           s read /dev/kmem for tick and/or tickadj
1809  --enable-accurate-adjtime
1810                          s the adjtime() call is accurate
1811  --enable-tick=VALUE     s force a value for 'tick'
1812  --enable-tickadj=VALUE  s force a value for 'tickadj'
1813  --enable-simulator      - build/install the NTPD simulator?
1814  --without-sntp          - disable building sntp and sntp/tests
1815  --with-ntpsnmpd         s Build ntpsnmpd MIB agent?
1816  --enable-slew-always    s always slew the time
1817  --enable-step-slew      s step and slew the time
1818  --enable-ntpdate-step   s if ntpdate should step the time
1819  --enable-hourly-todr-sync
1820                          s if we should sync TODR hourly
1821  --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
1822  --enable-bug1243-fix    + use unmodified autokey session keys
1823  --enable-irig-sawtooth  s if we should enable the IRIG sawtooth filter
1824  --enable-nist           - if we should enable the NIST lockclock scheme
1825  --enable-ntp-signd      - Provide support for Samba's signing daemon,
1826                          =/var/run/ntp_signd
1827  --enable-ipv6           s use IPv6?
1828
1829  --with-kame             - =/usr/local/v6
1830  --enable-getifaddrs     + Enable the use of getifaddrs() [[yes|no]].
1831  --enable-saveconfig     + saveconfig mechanism
1832  --enable-leap-smear     - experimental leap smear code
1833  --with-gtest            Use the gtest framework (Default: if it's available)
1834  --enable-problem-tests  + enable tests with undiagnosed problems
1835
1836Some influential environment variables:
1837  CC          C compiler command
1838  CFLAGS      C compiler flags
1839  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1840              nonstandard directory <lib dir>
1841  LIBS        libraries to pass to the linker, e.g. -l<library>
1842  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1843              you have headers in a nonstandard directory <include dir>
1844  CPP         C preprocessor
1845  CXX         C++ compiler command
1846  CXXFLAGS    C++ compiler flags
1847  YACC        The `Yet Another Compiler Compiler' implementation to use.
1848              Defaults to the first program found out of: `bison -y', `byacc',
1849              `yacc'.
1850  YFLAGS      The list of arguments that will be passed by default to $YACC.
1851              This script will default YFLAGS to the empty string to avoid a
1852              default value of `-d' given by some make applications.
1853  CXXCPP      C++ preprocessor
1854
1855Use these variables to override the choices made by `configure' or to help
1856it to find libraries and programs with nonstandard names/locations.
1857
1858Report bugs to <http://bugs.ntp.org./>.
1859ntp home page: <http://www.ntp.org./>.
1860_ACEOF
1861ac_status=$?
1862fi
1863
1864if test "$ac_init_help" = "recursive"; then
1865  # If there are subdirs, report their specific --help.
1866  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1867    test -d "$ac_dir" ||
1868      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1869      continue
1870    ac_builddir=.
1871
1872case "$ac_dir" in
1873.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1874*)
1875  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1876  # A ".." for each directory in $ac_dir_suffix.
1877  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1878  case $ac_top_builddir_sub in
1879  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1880  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1881  esac ;;
1882esac
1883ac_abs_top_builddir=$ac_pwd
1884ac_abs_builddir=$ac_pwd$ac_dir_suffix
1885# for backward compatibility:
1886ac_top_builddir=$ac_top_build_prefix
1887
1888case $srcdir in
1889  .)  # We are building in place.
1890    ac_srcdir=.
1891    ac_top_srcdir=$ac_top_builddir_sub
1892    ac_abs_top_srcdir=$ac_pwd ;;
1893  [\\/]* | ?:[\\/]* )  # Absolute name.
1894    ac_srcdir=$srcdir$ac_dir_suffix;
1895    ac_top_srcdir=$srcdir
1896    ac_abs_top_srcdir=$srcdir ;;
1897  *) # Relative name.
1898    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1899    ac_top_srcdir=$ac_top_build_prefix$srcdir
1900    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1901esac
1902ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1903
1904    cd "$ac_dir" || { ac_status=$?; continue; }
1905    # Check for guested configure.
1906    if test -f "$ac_srcdir/configure.gnu"; then
1907      echo &&
1908      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1909    elif test -f "$ac_srcdir/configure"; then
1910      echo &&
1911      $SHELL "$ac_srcdir/configure" --help=recursive
1912    else
1913      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1914    fi || ac_status=$?
1915    cd "$ac_pwd" || { ac_status=$?; break; }
1916  done
1917fi
1918
1919test -n "$ac_init_help" && exit $ac_status
1920if $ac_init_version; then
1921  cat <<\_ACEOF
1922ntp configure 4.2.8p6
1923generated by GNU Autoconf 2.69
1924
1925Copyright (C) 2012 Free Software Foundation, Inc.
1926This configure script is free software; the Free Software Foundation
1927gives unlimited permission to copy, distribute and modify it.
1928_ACEOF
1929  exit
1930fi
1931
1932## ------------------------ ##
1933## Autoconf initialization. ##
1934## ------------------------ ##
1935
1936# ac_fn_c_try_compile LINENO
1937# --------------------------
1938# Try to compile conftest.$ac_ext, and return whether this succeeded.
1939ac_fn_c_try_compile ()
1940{
1941  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942  rm -f conftest.$ac_objext
1943  if { { ac_try="$ac_compile"
1944case "(($ac_try" in
1945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946  *) ac_try_echo=$ac_try;;
1947esac
1948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949$as_echo "$ac_try_echo"; } >&5
1950  (eval "$ac_compile") 2>conftest.err
1951  ac_status=$?
1952  if test -s conftest.err; then
1953    grep -v '^ *+' conftest.err >conftest.er1
1954    cat conftest.er1 >&5
1955    mv -f conftest.er1 conftest.err
1956  fi
1957  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958  test $ac_status = 0; } && {
1959	 test -z "$ac_c_werror_flag" ||
1960	 test ! -s conftest.err
1961       } && test -s conftest.$ac_objext; then :
1962  ac_retval=0
1963else
1964  $as_echo "$as_me: failed program was:" >&5
1965sed 's/^/| /' conftest.$ac_ext >&5
1966
1967	ac_retval=1
1968fi
1969  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970  as_fn_set_status $ac_retval
1971
1972} # ac_fn_c_try_compile
1973
1974# ac_fn_c_try_cpp LINENO
1975# ----------------------
1976# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1977ac_fn_c_try_cpp ()
1978{
1979  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980  if { { ac_try="$ac_cpp conftest.$ac_ext"
1981case "(($ac_try" in
1982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983  *) ac_try_echo=$ac_try;;
1984esac
1985eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986$as_echo "$ac_try_echo"; } >&5
1987  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1988  ac_status=$?
1989  if test -s conftest.err; then
1990    grep -v '^ *+' conftest.err >conftest.er1
1991    cat conftest.er1 >&5
1992    mv -f conftest.er1 conftest.err
1993  fi
1994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995  test $ac_status = 0; } > conftest.i && {
1996	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1997	 test ! -s conftest.err
1998       }; then :
1999  ac_retval=0
2000else
2001  $as_echo "$as_me: failed program was:" >&5
2002sed 's/^/| /' conftest.$ac_ext >&5
2003
2004    ac_retval=1
2005fi
2006  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007  as_fn_set_status $ac_retval
2008
2009} # ac_fn_c_try_cpp
2010
2011# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2012# -------------------------------------------------------
2013# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2014# the include files in INCLUDES and setting the cache variable VAR
2015# accordingly.
2016ac_fn_c_check_header_mongrel ()
2017{
2018  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019  if eval \${$3+:} false; then :
2020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021$as_echo_n "checking for $2... " >&6; }
2022if eval \${$3+:} false; then :
2023  $as_echo_n "(cached) " >&6
2024fi
2025eval ac_res=\$$3
2026	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027$as_echo "$ac_res" >&6; }
2028else
2029  # Is the header compilable?
2030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2031$as_echo_n "checking $2 usability... " >&6; }
2032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033/* end confdefs.h.  */
2034$4
2035#include <$2>
2036_ACEOF
2037if ac_fn_c_try_compile "$LINENO"; then :
2038  ac_header_compiler=yes
2039else
2040  ac_header_compiler=no
2041fi
2042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2044$as_echo "$ac_header_compiler" >&6; }
2045
2046# Is the header present?
2047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2048$as_echo_n "checking $2 presence... " >&6; }
2049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050/* end confdefs.h.  */
2051#include <$2>
2052_ACEOF
2053if ac_fn_c_try_cpp "$LINENO"; then :
2054  ac_header_preproc=yes
2055else
2056  ac_header_preproc=no
2057fi
2058rm -f conftest.err conftest.i conftest.$ac_ext
2059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2060$as_echo "$ac_header_preproc" >&6; }
2061
2062# So?  What about this header?
2063case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2064  yes:no: )
2065    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2066$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2067    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2068$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2069    ;;
2070  no:yes:* )
2071    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2072$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2073    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2074$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2075    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2076$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2077    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2078$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2079    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2080$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2081( $as_echo "## ------------------------------------ ##
2082## Report this to http://bugs.ntp.org./ ##
2083## ------------------------------------ ##"
2084     ) | sed "s/^/$as_me: WARNING:     /" >&2
2085    ;;
2086esac
2087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2088$as_echo_n "checking for $2... " >&6; }
2089if eval \${$3+:} false; then :
2090  $as_echo_n "(cached) " >&6
2091else
2092  eval "$3=\$ac_header_compiler"
2093fi
2094eval ac_res=\$$3
2095	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096$as_echo "$ac_res" >&6; }
2097fi
2098  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099
2100} # ac_fn_c_check_header_mongrel
2101
2102# ac_fn_c_try_run LINENO
2103# ----------------------
2104# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2105# that executables *can* be run.
2106ac_fn_c_try_run ()
2107{
2108  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109  if { { ac_try="$ac_link"
2110case "(($ac_try" in
2111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112  *) ac_try_echo=$ac_try;;
2113esac
2114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2115$as_echo "$ac_try_echo"; } >&5
2116  (eval "$ac_link") 2>&5
2117  ac_status=$?
2118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2119  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2120  { { case "(($ac_try" in
2121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122  *) ac_try_echo=$ac_try;;
2123esac
2124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125$as_echo "$ac_try_echo"; } >&5
2126  (eval "$ac_try") 2>&5
2127  ac_status=$?
2128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2129  test $ac_status = 0; }; }; then :
2130  ac_retval=0
2131else
2132  $as_echo "$as_me: program exited with status $ac_status" >&5
2133       $as_echo "$as_me: failed program was:" >&5
2134sed 's/^/| /' conftest.$ac_ext >&5
2135
2136       ac_retval=$ac_status
2137fi
2138  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2139  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140  as_fn_set_status $ac_retval
2141
2142} # ac_fn_c_try_run
2143
2144# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2145# -------------------------------------------------------
2146# Tests whether HEADER exists and can be compiled using the include files in
2147# INCLUDES, setting the cache variable VAR accordingly.
2148ac_fn_c_check_header_compile ()
2149{
2150  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2152$as_echo_n "checking for $2... " >&6; }
2153if eval \${$3+:} false; then :
2154  $as_echo_n "(cached) " >&6
2155else
2156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157/* end confdefs.h.  */
2158$4
2159#include <$2>
2160_ACEOF
2161if ac_fn_c_try_compile "$LINENO"; then :
2162  eval "$3=yes"
2163else
2164  eval "$3=no"
2165fi
2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167fi
2168eval ac_res=\$$3
2169	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170$as_echo "$ac_res" >&6; }
2171  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172
2173} # ac_fn_c_check_header_compile
2174
2175# ac_fn_c_try_link LINENO
2176# -----------------------
2177# Try to link conftest.$ac_ext, and return whether this succeeded.
2178ac_fn_c_try_link ()
2179{
2180  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181  rm -f conftest.$ac_objext conftest$ac_exeext
2182  if { { ac_try="$ac_link"
2183case "(($ac_try" in
2184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185  *) ac_try_echo=$ac_try;;
2186esac
2187eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2188$as_echo "$ac_try_echo"; } >&5
2189  (eval "$ac_link") 2>conftest.err
2190  ac_status=$?
2191  if test -s conftest.err; then
2192    grep -v '^ *+' conftest.err >conftest.er1
2193    cat conftest.er1 >&5
2194    mv -f conftest.er1 conftest.err
2195  fi
2196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2197  test $ac_status = 0; } && {
2198	 test -z "$ac_c_werror_flag" ||
2199	 test ! -s conftest.err
2200       } && test -s conftest$ac_exeext && {
2201	 test "$cross_compiling" = yes ||
2202	 test -x conftest$ac_exeext
2203       }; then :
2204  ac_retval=0
2205else
2206  $as_echo "$as_me: failed program was:" >&5
2207sed 's/^/| /' conftest.$ac_ext >&5
2208
2209	ac_retval=1
2210fi
2211  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2212  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2213  # interfere with the next link command; also delete a directory that is
2214  # left behind by Apple's compiler.  We do this before executing the actions.
2215  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2216  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217  as_fn_set_status $ac_retval
2218
2219} # ac_fn_c_try_link
2220
2221# ac_fn_cxx_try_compile LINENO
2222# ----------------------------
2223# Try to compile conftest.$ac_ext, and return whether this succeeded.
2224ac_fn_cxx_try_compile ()
2225{
2226  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227  rm -f conftest.$ac_objext
2228  if { { ac_try="$ac_compile"
2229case "(($ac_try" in
2230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231  *) ac_try_echo=$ac_try;;
2232esac
2233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234$as_echo "$ac_try_echo"; } >&5
2235  (eval "$ac_compile") 2>conftest.err
2236  ac_status=$?
2237  if test -s conftest.err; then
2238    grep -v '^ *+' conftest.err >conftest.er1
2239    cat conftest.er1 >&5
2240    mv -f conftest.er1 conftest.err
2241  fi
2242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2243  test $ac_status = 0; } && {
2244	 test -z "$ac_cxx_werror_flag" ||
2245	 test ! -s conftest.err
2246       } && test -s conftest.$ac_objext; then :
2247  ac_retval=0
2248else
2249  $as_echo "$as_me: failed program was:" >&5
2250sed 's/^/| /' conftest.$ac_ext >&5
2251
2252	ac_retval=1
2253fi
2254  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2255  as_fn_set_status $ac_retval
2256
2257} # ac_fn_cxx_try_compile
2258
2259# ac_fn_c_check_func LINENO FUNC VAR
2260# ----------------------------------
2261# Tests whether FUNC exists, setting the cache variable VAR accordingly
2262ac_fn_c_check_func ()
2263{
2264  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2266$as_echo_n "checking for $2... " >&6; }
2267if eval \${$3+:} false; then :
2268  $as_echo_n "(cached) " >&6
2269else
2270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271/* end confdefs.h.  */
2272/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2273   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2274#define $2 innocuous_$2
2275
2276/* System header to define __stub macros and hopefully few prototypes,
2277    which can conflict with char $2 (); below.
2278    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2279    <limits.h> exists even on freestanding compilers.  */
2280
2281#ifdef __STDC__
2282# include <limits.h>
2283#else
2284# include <assert.h>
2285#endif
2286
2287#undef $2
2288
2289/* Override any GCC internal prototype to avoid an error.
2290   Use char because int might match the return type of a GCC
2291   builtin and then its argument prototype would still apply.  */
2292#ifdef __cplusplus
2293extern "C"
2294#endif
2295char $2 ();
2296/* The GNU C library defines this for functions which it implements
2297    to always fail with ENOSYS.  Some functions are actually named
2298    something starting with __ and the normal name is an alias.  */
2299#if defined __stub_$2 || defined __stub___$2
2300choke me
2301#endif
2302
2303int
2304main ()
2305{
2306return $2 ();
2307  ;
2308  return 0;
2309}
2310_ACEOF
2311if ac_fn_c_try_link "$LINENO"; then :
2312  eval "$3=yes"
2313else
2314  eval "$3=no"
2315fi
2316rm -f core conftest.err conftest.$ac_objext \
2317    conftest$ac_exeext conftest.$ac_ext
2318fi
2319eval ac_res=\$$3
2320	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2321$as_echo "$ac_res" >&6; }
2322  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2323
2324} # ac_fn_c_check_func
2325
2326# ac_fn_cxx_try_cpp LINENO
2327# ------------------------
2328# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2329ac_fn_cxx_try_cpp ()
2330{
2331  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2332  if { { ac_try="$ac_cpp conftest.$ac_ext"
2333case "(($ac_try" in
2334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2335  *) ac_try_echo=$ac_try;;
2336esac
2337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2338$as_echo "$ac_try_echo"; } >&5
2339  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2340  ac_status=$?
2341  if test -s conftest.err; then
2342    grep -v '^ *+' conftest.err >conftest.er1
2343    cat conftest.er1 >&5
2344    mv -f conftest.er1 conftest.err
2345  fi
2346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2347  test $ac_status = 0; } > conftest.i && {
2348	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2349	 test ! -s conftest.err
2350       }; then :
2351  ac_retval=0
2352else
2353  $as_echo "$as_me: failed program was:" >&5
2354sed 's/^/| /' conftest.$ac_ext >&5
2355
2356    ac_retval=1
2357fi
2358  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2359  as_fn_set_status $ac_retval
2360
2361} # ac_fn_cxx_try_cpp
2362
2363# ac_fn_cxx_try_link LINENO
2364# -------------------------
2365# Try to link conftest.$ac_ext, and return whether this succeeded.
2366ac_fn_cxx_try_link ()
2367{
2368  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369  rm -f conftest.$ac_objext conftest$ac_exeext
2370  if { { ac_try="$ac_link"
2371case "(($ac_try" in
2372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2373  *) ac_try_echo=$ac_try;;
2374esac
2375eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2376$as_echo "$ac_try_echo"; } >&5
2377  (eval "$ac_link") 2>conftest.err
2378  ac_status=$?
2379  if test -s conftest.err; then
2380    grep -v '^ *+' conftest.err >conftest.er1
2381    cat conftest.er1 >&5
2382    mv -f conftest.er1 conftest.err
2383  fi
2384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2385  test $ac_status = 0; } && {
2386	 test -z "$ac_cxx_werror_flag" ||
2387	 test ! -s conftest.err
2388       } && test -s conftest$ac_exeext && {
2389	 test "$cross_compiling" = yes ||
2390	 test -x conftest$ac_exeext
2391       }; then :
2392  ac_retval=0
2393else
2394  $as_echo "$as_me: failed program was:" >&5
2395sed 's/^/| /' conftest.$ac_ext >&5
2396
2397	ac_retval=1
2398fi
2399  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2400  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2401  # interfere with the next link command; also delete a directory that is
2402  # left behind by Apple's compiler.  We do this before executing the actions.
2403  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2404  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2405  as_fn_set_status $ac_retval
2406
2407} # ac_fn_cxx_try_link
2408
2409# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2410# -------------------------------------------
2411# Tests whether TYPE exists after having included INCLUDES, setting cache
2412# variable VAR accordingly.
2413ac_fn_c_check_type ()
2414{
2415  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2417$as_echo_n "checking for $2... " >&6; }
2418if eval \${$3+:} false; then :
2419  $as_echo_n "(cached) " >&6
2420else
2421  eval "$3=no"
2422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423/* end confdefs.h.  */
2424$4
2425int
2426main ()
2427{
2428if (sizeof ($2))
2429	 return 0;
2430  ;
2431  return 0;
2432}
2433_ACEOF
2434if ac_fn_c_try_compile "$LINENO"; then :
2435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2436/* end confdefs.h.  */
2437$4
2438int
2439main ()
2440{
2441if (sizeof (($2)))
2442	    return 0;
2443  ;
2444  return 0;
2445}
2446_ACEOF
2447if ac_fn_c_try_compile "$LINENO"; then :
2448
2449else
2450  eval "$3=yes"
2451fi
2452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453fi
2454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455fi
2456eval ac_res=\$$3
2457	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2458$as_echo "$ac_res" >&6; }
2459  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2460
2461} # ac_fn_c_check_type
2462
2463# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2464# --------------------------------------------
2465# Tries to find the compile-time value of EXPR in a program that includes
2466# INCLUDES, setting VAR accordingly. Returns whether the value could be
2467# computed
2468ac_fn_c_compute_int ()
2469{
2470  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471  if test "$cross_compiling" = yes; then
2472    # Depending upon the size, compute the lo and hi bounds.
2473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474/* end confdefs.h.  */
2475$4
2476int
2477main ()
2478{
2479static int test_array [1 - 2 * !(($2) >= 0)];
2480test_array [0] = 0;
2481return test_array [0];
2482
2483  ;
2484  return 0;
2485}
2486_ACEOF
2487if ac_fn_c_try_compile "$LINENO"; then :
2488  ac_lo=0 ac_mid=0
2489  while :; do
2490    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491/* end confdefs.h.  */
2492$4
2493int
2494main ()
2495{
2496static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2497test_array [0] = 0;
2498return test_array [0];
2499
2500  ;
2501  return 0;
2502}
2503_ACEOF
2504if ac_fn_c_try_compile "$LINENO"; then :
2505  ac_hi=$ac_mid; break
2506else
2507  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2508			if test $ac_lo -le $ac_mid; then
2509			  ac_lo= ac_hi=
2510			  break
2511			fi
2512			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2513fi
2514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515  done
2516else
2517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518/* end confdefs.h.  */
2519$4
2520int
2521main ()
2522{
2523static int test_array [1 - 2 * !(($2) < 0)];
2524test_array [0] = 0;
2525return test_array [0];
2526
2527  ;
2528  return 0;
2529}
2530_ACEOF
2531if ac_fn_c_try_compile "$LINENO"; then :
2532  ac_hi=-1 ac_mid=-1
2533  while :; do
2534    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2535/* end confdefs.h.  */
2536$4
2537int
2538main ()
2539{
2540static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2541test_array [0] = 0;
2542return test_array [0];
2543
2544  ;
2545  return 0;
2546}
2547_ACEOF
2548if ac_fn_c_try_compile "$LINENO"; then :
2549  ac_lo=$ac_mid; break
2550else
2551  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2552			if test $ac_mid -le $ac_hi; then
2553			  ac_lo= ac_hi=
2554			  break
2555			fi
2556			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2557fi
2558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559  done
2560else
2561  ac_lo= ac_hi=
2562fi
2563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2564fi
2565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2566# Binary search between lo and hi bounds.
2567while test "x$ac_lo" != "x$ac_hi"; do
2568  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570/* end confdefs.h.  */
2571$4
2572int
2573main ()
2574{
2575static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2576test_array [0] = 0;
2577return test_array [0];
2578
2579  ;
2580  return 0;
2581}
2582_ACEOF
2583if ac_fn_c_try_compile "$LINENO"; then :
2584  ac_hi=$ac_mid
2585else
2586  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2587fi
2588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2589done
2590case $ac_lo in #((
2591?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2592'') ac_retval=1 ;;
2593esac
2594  else
2595    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596/* end confdefs.h.  */
2597$4
2598static long int longval () { return $2; }
2599static unsigned long int ulongval () { return $2; }
2600#include <stdio.h>
2601#include <stdlib.h>
2602int
2603main ()
2604{
2605
2606  FILE *f = fopen ("conftest.val", "w");
2607  if (! f)
2608    return 1;
2609  if (($2) < 0)
2610    {
2611      long int i = longval ();
2612      if (i != ($2))
2613	return 1;
2614      fprintf (f, "%ld", i);
2615    }
2616  else
2617    {
2618      unsigned long int i = ulongval ();
2619      if (i != ($2))
2620	return 1;
2621      fprintf (f, "%lu", i);
2622    }
2623  /* Do not output a trailing newline, as this causes \r\n confusion
2624     on some platforms.  */
2625  return ferror (f) || fclose (f) != 0;
2626
2627  ;
2628  return 0;
2629}
2630_ACEOF
2631if ac_fn_c_try_run "$LINENO"; then :
2632  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2633else
2634  ac_retval=1
2635fi
2636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2637  conftest.$ac_objext conftest.beam conftest.$ac_ext
2638rm -f conftest.val
2639
2640  fi
2641  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2642  as_fn_set_status $ac_retval
2643
2644} # ac_fn_c_compute_int
2645
2646# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2647# ---------------------------------------------
2648# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2649# accordingly.
2650ac_fn_c_check_decl ()
2651{
2652  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653  as_decl_name=`echo $2|sed 's/ *(.*//'`
2654  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2655  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2656$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2657if eval \${$3+:} false; then :
2658  $as_echo_n "(cached) " >&6
2659else
2660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661/* end confdefs.h.  */
2662$4
2663int
2664main ()
2665{
2666#ifndef $as_decl_name
2667#ifdef __cplusplus
2668  (void) $as_decl_use;
2669#else
2670  (void) $as_decl_name;
2671#endif
2672#endif
2673
2674  ;
2675  return 0;
2676}
2677_ACEOF
2678if ac_fn_c_try_compile "$LINENO"; then :
2679  eval "$3=yes"
2680else
2681  eval "$3=no"
2682fi
2683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684fi
2685eval ac_res=\$$3
2686	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687$as_echo "$ac_res" >&6; }
2688  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2689
2690} # ac_fn_c_check_decl
2691
2692# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2693# ----------------------------------------------------
2694# Tries to find if the field MEMBER exists in type AGGR, after including
2695# INCLUDES, setting cache variable VAR accordingly.
2696ac_fn_c_check_member ()
2697{
2698  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2700$as_echo_n "checking for $2.$3... " >&6; }
2701if eval \${$4+:} false; then :
2702  $as_echo_n "(cached) " >&6
2703else
2704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2705/* end confdefs.h.  */
2706$5
2707int
2708main ()
2709{
2710static $2 ac_aggr;
2711if (ac_aggr.$3)
2712return 0;
2713  ;
2714  return 0;
2715}
2716_ACEOF
2717if ac_fn_c_try_compile "$LINENO"; then :
2718  eval "$4=yes"
2719else
2720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2721/* end confdefs.h.  */
2722$5
2723int
2724main ()
2725{
2726static $2 ac_aggr;
2727if (sizeof ac_aggr.$3)
2728return 0;
2729  ;
2730  return 0;
2731}
2732_ACEOF
2733if ac_fn_c_try_compile "$LINENO"; then :
2734  eval "$4=yes"
2735else
2736  eval "$4=no"
2737fi
2738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739fi
2740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741fi
2742eval ac_res=\$$4
2743	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2744$as_echo "$ac_res" >&6; }
2745  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2746
2747} # ac_fn_c_check_member
2748cat >config.log <<_ACEOF
2749This file contains any messages produced by compilers while
2750running configure, to aid debugging if configure makes a mistake.
2751
2752It was created by ntp $as_me 4.2.8p6, which was
2753generated by GNU Autoconf 2.69.  Invocation command line was
2754
2755  $ $0 $@
2756
2757_ACEOF
2758exec 5>>config.log
2759{
2760cat <<_ASUNAME
2761## --------- ##
2762## Platform. ##
2763## --------- ##
2764
2765hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2766uname -m = `(uname -m) 2>/dev/null || echo unknown`
2767uname -r = `(uname -r) 2>/dev/null || echo unknown`
2768uname -s = `(uname -s) 2>/dev/null || echo unknown`
2769uname -v = `(uname -v) 2>/dev/null || echo unknown`
2770
2771/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2772/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2773
2774/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2775/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2776/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2777/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2778/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2779/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2780/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2781
2782_ASUNAME
2783
2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785for as_dir in $PATH
2786do
2787  IFS=$as_save_IFS
2788  test -z "$as_dir" && as_dir=.
2789    $as_echo "PATH: $as_dir"
2790  done
2791IFS=$as_save_IFS
2792
2793} >&5
2794
2795cat >&5 <<_ACEOF
2796
2797
2798## ----------- ##
2799## Core tests. ##
2800## ----------- ##
2801
2802_ACEOF
2803
2804
2805# Keep a trace of the command line.
2806# Strip out --no-create and --no-recursion so they do not pile up.
2807# Strip out --silent because we don't want to record it for future runs.
2808# Also quote any args containing shell meta-characters.
2809# Make two passes to allow for proper duplicate-argument suppression.
2810ac_configure_args=
2811ac_configure_args0=
2812ac_configure_args1=
2813ac_must_keep_next=false
2814for ac_pass in 1 2
2815do
2816  for ac_arg
2817  do
2818    case $ac_arg in
2819    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2820    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2821    | -silent | --silent | --silen | --sile | --sil)
2822      continue ;;
2823    *\'*)
2824      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2825    esac
2826    case $ac_pass in
2827    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2828    2)
2829      as_fn_append ac_configure_args1 " '$ac_arg'"
2830      if test $ac_must_keep_next = true; then
2831	ac_must_keep_next=false # Got value, back to normal.
2832      else
2833	case $ac_arg in
2834	  *=* | --config-cache | -C | -disable-* | --disable-* \
2835	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2836	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2837	  | -with-* | --with-* | -without-* | --without-* | --x)
2838	    case "$ac_configure_args0 " in
2839	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2840	    esac
2841	    ;;
2842	  -* ) ac_must_keep_next=true ;;
2843	esac
2844      fi
2845      as_fn_append ac_configure_args " '$ac_arg'"
2846      ;;
2847    esac
2848  done
2849done
2850{ ac_configure_args0=; unset ac_configure_args0;}
2851{ ac_configure_args1=; unset ac_configure_args1;}
2852
2853# When interrupted or exit'd, cleanup temporary files, and complete
2854# config.log.  We remove comments because anyway the quotes in there
2855# would cause problems or look ugly.
2856# WARNING: Use '\'' to represent an apostrophe within the trap.
2857# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2858trap 'exit_status=$?
2859  # Save into config.log some information that might help in debugging.
2860  {
2861    echo
2862
2863    $as_echo "## ---------------- ##
2864## Cache variables. ##
2865## ---------------- ##"
2866    echo
2867    # The following way of writing the cache mishandles newlines in values,
2868(
2869  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2870    eval ac_val=\$$ac_var
2871    case $ac_val in #(
2872    *${as_nl}*)
2873      case $ac_var in #(
2874      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2875$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2876      esac
2877      case $ac_var in #(
2878      _ | IFS | as_nl) ;; #(
2879      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2880      *) { eval $ac_var=; unset $ac_var;} ;;
2881      esac ;;
2882    esac
2883  done
2884  (set) 2>&1 |
2885    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2886    *${as_nl}ac_space=\ *)
2887      sed -n \
2888	"s/'\''/'\''\\\\'\'''\''/g;
2889	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2890      ;; #(
2891    *)
2892      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2893      ;;
2894    esac |
2895    sort
2896)
2897    echo
2898
2899    $as_echo "## ----------------- ##
2900## Output variables. ##
2901## ----------------- ##"
2902    echo
2903    for ac_var in $ac_subst_vars
2904    do
2905      eval ac_val=\$$ac_var
2906      case $ac_val in
2907      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2908      esac
2909      $as_echo "$ac_var='\''$ac_val'\''"
2910    done | sort
2911    echo
2912
2913    if test -n "$ac_subst_files"; then
2914      $as_echo "## ------------------- ##
2915## File substitutions. ##
2916## ------------------- ##"
2917      echo
2918      for ac_var in $ac_subst_files
2919      do
2920	eval ac_val=\$$ac_var
2921	case $ac_val in
2922	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2923	esac
2924	$as_echo "$ac_var='\''$ac_val'\''"
2925      done | sort
2926      echo
2927    fi
2928
2929    if test -s confdefs.h; then
2930      $as_echo "## ----------- ##
2931## confdefs.h. ##
2932## ----------- ##"
2933      echo
2934      cat confdefs.h
2935      echo
2936    fi
2937    test "$ac_signal" != 0 &&
2938      $as_echo "$as_me: caught signal $ac_signal"
2939    $as_echo "$as_me: exit $exit_status"
2940  } >&5
2941  rm -f core *.core core.conftest.* &&
2942    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2943    exit $exit_status
2944' 0
2945for ac_signal in 1 2 13 15; do
2946  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2947done
2948ac_signal=0
2949
2950# confdefs.h avoids OS command line length limits that DEFS can exceed.
2951rm -f -r conftest* confdefs.h
2952
2953$as_echo "/* confdefs.h */" > confdefs.h
2954
2955# Predefined preprocessor variables.
2956
2957cat >>confdefs.h <<_ACEOF
2958#define PACKAGE_NAME "$PACKAGE_NAME"
2959_ACEOF
2960
2961cat >>confdefs.h <<_ACEOF
2962#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2963_ACEOF
2964
2965cat >>confdefs.h <<_ACEOF
2966#define PACKAGE_VERSION "$PACKAGE_VERSION"
2967_ACEOF
2968
2969cat >>confdefs.h <<_ACEOF
2970#define PACKAGE_STRING "$PACKAGE_STRING"
2971_ACEOF
2972
2973cat >>confdefs.h <<_ACEOF
2974#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2975_ACEOF
2976
2977cat >>confdefs.h <<_ACEOF
2978#define PACKAGE_URL "$PACKAGE_URL"
2979_ACEOF
2980
2981
2982# Let the site file select an alternate cache file if it wants to.
2983# Prefer an explicitly selected file to automatically selected ones.
2984ac_site_file1=NONE
2985ac_site_file2=NONE
2986if test -n "$CONFIG_SITE"; then
2987  # We do not want a PATH search for config.site.
2988  case $CONFIG_SITE in #((
2989    -*)  ac_site_file1=./$CONFIG_SITE;;
2990    */*) ac_site_file1=$CONFIG_SITE;;
2991    *)   ac_site_file1=./$CONFIG_SITE;;
2992  esac
2993elif test "x$prefix" != xNONE; then
2994  ac_site_file1=$prefix/share/config.site
2995  ac_site_file2=$prefix/etc/config.site
2996else
2997  ac_site_file1=$ac_default_prefix/share/config.site
2998  ac_site_file2=$ac_default_prefix/etc/config.site
2999fi
3000for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3001do
3002  test "x$ac_site_file" = xNONE && continue
3003  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3004    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3005$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3006    sed 's/^/| /' "$ac_site_file" >&5
3007    . "$ac_site_file" \
3008      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3009$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3010as_fn_error $? "failed to load site script $ac_site_file
3011See \`config.log' for more details" "$LINENO" 5; }
3012  fi
3013done
3014
3015if test -r "$cache_file"; then
3016  # Some versions of bash will fail to source /dev/null (special files
3017  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3018  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3019    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3020$as_echo "$as_me: loading cache $cache_file" >&6;}
3021    case $cache_file in
3022      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3023      *)                      . "./$cache_file";;
3024    esac
3025  fi
3026else
3027  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3028$as_echo "$as_me: creating cache $cache_file" >&6;}
3029  >$cache_file
3030fi
3031
3032as_fn_append ac_header_list " stdarg.h"
3033# Check that the precious variables saved in the cache have kept the same
3034# value.
3035ac_cache_corrupted=false
3036for ac_var in $ac_precious_vars; do
3037  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3038  eval ac_new_set=\$ac_env_${ac_var}_set
3039  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3040  eval ac_new_val=\$ac_env_${ac_var}_value
3041  case $ac_old_set,$ac_new_set in
3042    set,)
3043      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3044$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3045      ac_cache_corrupted=: ;;
3046    ,set)
3047      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3048$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3049      ac_cache_corrupted=: ;;
3050    ,);;
3051    *)
3052      if test "x$ac_old_val" != "x$ac_new_val"; then
3053	# differences in whitespace do not lead to failure.
3054	ac_old_val_w=`echo x $ac_old_val`
3055	ac_new_val_w=`echo x $ac_new_val`
3056	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3057	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3058$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3059	  ac_cache_corrupted=:
3060	else
3061	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3062$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3063	  eval $ac_var=\$ac_old_val
3064	fi
3065	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3066$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3067	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3068$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3069      fi;;
3070  esac
3071  # Pass precious variables to config.status.
3072  if test "$ac_new_set" = set; then
3073    case $ac_new_val in
3074    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3075    *) ac_arg=$ac_var=$ac_new_val ;;
3076    esac
3077    case " $ac_configure_args " in
3078      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3079      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3080    esac
3081  fi
3082done
3083if $ac_cache_corrupted; then
3084  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3087$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3088  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3089fi
3090## -------------------- ##
3091## Main body of script. ##
3092## -------------------- ##
3093
3094ac_ext=c
3095ac_cpp='$CPP $CPPFLAGS'
3096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098ac_compiler_gnu=$ac_cv_c_compiler_gnu
3099
3100
3101
3102ac_aux_dir=
3103for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
3104  if test -f "$ac_dir/install-sh"; then
3105    ac_aux_dir=$ac_dir
3106    ac_install_sh="$ac_aux_dir/install-sh -c"
3107    break
3108  elif test -f "$ac_dir/install.sh"; then
3109    ac_aux_dir=$ac_dir
3110    ac_install_sh="$ac_aux_dir/install.sh -c"
3111    break
3112  elif test -f "$ac_dir/shtool"; then
3113    ac_aux_dir=$ac_dir
3114    ac_install_sh="$ac_aux_dir/shtool install -c"
3115    break
3116  fi
3117done
3118if test -z "$ac_aux_dir"; then
3119  as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
3120fi
3121
3122# These three variables are undocumented and unsupported,
3123# and are intended to be withdrawn in a future Autoconf release.
3124# They can cause serious problems if a builder's source tree is in a directory
3125# whose full name contains unusual characters.
3126ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3127ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3128ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3129
3130
3131ac_ext=c
3132ac_cpp='$CPP $CPPFLAGS'
3133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3135ac_compiler_gnu=$ac_cv_c_compiler_gnu
3136
3137
3138
3139
3140
3141
3142# Bump ntp_configure_cache_version for each change to configure.ac or
3143# .m4 files which invalidates cached values from previous configure
3144# runs.
3145#
3146# If the change affects cache variables used only by the main NTP
3147# configure.ac, then only its version number should be bumped, while
3148# the subdir configure.ac version numbers should be unchanged.  The
3149# same is true for a test/variable that is used only by one subdir
3150# being changed incompatibly; only that subdir's cache version needs
3151# bumping.
3152#
3153# If a change affects variables shared by all NTP configure scripts,
3154# please bump the version numbers of each.  If you are not sure, the
3155# safe choice is to bump all on any cache-invalidating change.
3156#
3157# In order to avoid the risk of version stamp collision between -stable
3158# and -dev branches, do not simply increment the version, instead use
3159# the date YYYYMMDD optionally with -HHMM if there is more than one
3160# bump in a day.
3161
3162ntp_configure_cache_version=20120806
3163
3164# When the cache version of config.cache and configure do not
3165# match, NTP_CACHEVERSION will flush the cache.
3166
3167
3168
3169    ntp_cache_flush=1
3170
3171    case "$ntp_cv_main_cache_version" in
3172     $ntp_configure_cache_version)
3173	# same version, good
3174	ntp_cache_flush=0
3175	;;
3176     '')
3177	# No cache, predates ntp_cv_main_cache_version, or is empty.
3178	case "$cache_file" in
3179	 /dev/null)
3180	    ntp_cache_flush=0
3181	    ;;
3182	 *)
3183	    case "$NTP_CACHEVERSION_PARENT" in
3184	     '')
3185		# Do not clear the cache immediately after it is created
3186		# empty as it is noisy.  Differentiate a newly-created
3187		# config.cache from one predating the cache version
3188		# mechanism by looking for the first cached variable set
3189		# by Autoconf
3190		case "$ac_cv_path_install" in
3191		 '')
3192		    # empty config.cache file
3193		    ntp_cache_flush=0
3194		esac
3195		;;
3196	     *)
3197		# Parent configure just created cache from empty,
3198		# flushing would be counterproductive.
3199		ntp_cache_flush=0;
3200		;;
3201	    esac
3202	esac
3203	;;
3204     *)
3205	# configure cache version mismatches config.cache version
3206	;;
3207    esac
3208
3209    case "$ntp_cache_flush" in
3210     1)
3211	c_version="${ntp_cv_main_cache_version:-(no version found)}"
3212
3213	# Do we flush all variables or exclude others' version stamps?
3214
3215	case "$NTP_CACHEVERSION_PARENT" in
3216	 '')
3217	    # Clear all *_cv_* variables including our child subdirs'
3218	    # ntp_cv_*_cache_version variables.  This prevents subdir
3219	    # configure scripts from noticing a version mismatch just
3220	    # after the top configure in the invocation cleared and
3221	    # recreated the cache.
3222
3223	    c_varname_list=`set |
3224			    sed -n -e 's/=.*$//' \
3225				   -e '/_cv_/p'
3226			   `
3227	    ;;
3228	 *)
3229	    # This is not the top configure this particular invocation.
3230	    # Clear all *_cv_* variables sparing the version stamps
3231	    # of other configure scripts, so we don't trigger
3232	    # useless repeated clearings.
3233
3234	    c_varname_list=`set |
3235			    sed -n -e 's/=.*$//' \
3236				   -e '/ntp_cv_.*_cache_version/d' \
3237				   -e '/_cv_/p'
3238			   `
3239	esac
3240
3241	for c_varname in $c_varname_list
3242	do
3243	    	    	    	    	    	    { eval $c_varname=; unset $c_varname; }
3244	done
3245
3246	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
3247$as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
3248	{ $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
3249$as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
3250	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
3251$as_echo "$as_me: $cache_file version: $c_version" >&6;}
3252	{ c_varname=; unset c_varname;}
3253	{ c_varname_list=; unset c_varname_list;}
3254	{ c_version=; unset c_version;}
3255    esac
3256
3257    { ntp_cache_flush=; unset ntp_cache_flush;}
3258
3259    # save configure version in config.cache for next time
3260    ntp_cv_main_cache_version="$ntp_configure_cache_version"
3261
3262    # let any subdir configure.ac NTP_CACHEVERSION invocations
3263    # know they are not the top level.
3264    NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT
3265
3266
3267am__api_version='1.15'
3268
3269# Find a good install program.  We prefer a C program (faster),
3270# so one script is as good as another.  But avoid the broken or
3271# incompatible versions:
3272# SysV /etc/install, /usr/sbin/install
3273# SunOS /usr/etc/install
3274# IRIX /sbin/install
3275# AIX /bin/install
3276# AmigaOS /C/install, which installs bootblocks on floppy discs
3277# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3278# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3279# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3280# OS/2's system install, which has a completely different semantic
3281# ./install, which can be erroneously created by make from ./install.sh.
3282# Reject install programs that cannot install multiple files.
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3284$as_echo_n "checking for a BSD-compatible install... " >&6; }
3285if test -z "$INSTALL"; then
3286if ${ac_cv_path_install+:} false; then :
3287  $as_echo_n "(cached) " >&6
3288else
3289  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290for as_dir in $PATH
3291do
3292  IFS=$as_save_IFS
3293  test -z "$as_dir" && as_dir=.
3294    # Account for people who put trailing slashes in PATH elements.
3295case $as_dir/ in #((
3296  ./ | .// | /[cC]/* | \
3297  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3298  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3299  /usr/ucb/* ) ;;
3300  *)
3301    # OSF1 and SCO ODT 3.0 have their own names for install.
3302    # Don't use installbsd from OSF since it installs stuff as root
3303    # by default.
3304    for ac_prog in ginstall scoinst install; do
3305      for ac_exec_ext in '' $ac_executable_extensions; do
3306	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3307	  if test $ac_prog = install &&
3308	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3309	    # AIX install.  It has an incompatible calling convention.
3310	    :
3311	  elif test $ac_prog = install &&
3312	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3313	    # program-specific install script used by HP pwplus--don't use.
3314	    :
3315	  else
3316	    rm -rf conftest.one conftest.two conftest.dir
3317	    echo one > conftest.one
3318	    echo two > conftest.two
3319	    mkdir conftest.dir
3320	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3321	      test -s conftest.one && test -s conftest.two &&
3322	      test -s conftest.dir/conftest.one &&
3323	      test -s conftest.dir/conftest.two
3324	    then
3325	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3326	      break 3
3327	    fi
3328	  fi
3329	fi
3330      done
3331    done
3332    ;;
3333esac
3334
3335  done
3336IFS=$as_save_IFS
3337
3338rm -rf conftest.one conftest.two conftest.dir
3339
3340fi
3341  if test "${ac_cv_path_install+set}" = set; then
3342    INSTALL=$ac_cv_path_install
3343  else
3344    # As a last resort, use the slow shell script.  Don't cache a
3345    # value for INSTALL within a source directory, because that will
3346    # break other packages using the cache if that directory is
3347    # removed, or if the value is a relative name.
3348    INSTALL=$ac_install_sh
3349  fi
3350fi
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3352$as_echo "$INSTALL" >&6; }
3353
3354# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3355# It thinks the first close brace ends the variable substitution.
3356test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3357
3358test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3359
3360test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3361
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3363$as_echo_n "checking whether build environment is sane... " >&6; }
3364# Reject unsafe characters in $srcdir or the absolute working directory
3365# name.  Accept space and tab only in the latter.
3366am_lf='
3367'
3368case `pwd` in
3369  *[\\\"\#\$\&\'\`$am_lf]*)
3370    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3371esac
3372case $srcdir in
3373  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3374    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3375esac
3376
3377# Do 'set' in a subshell so we don't clobber the current shell's
3378# arguments.  Must try -L first in case configure is actually a
3379# symlink; some systems play weird games with the mod time of symlinks
3380# (eg FreeBSD returns the mod time of the symlink's containing
3381# directory).
3382if (
3383   am_has_slept=no
3384   for am_try in 1 2; do
3385     echo "timestamp, slept: $am_has_slept" > conftest.file
3386     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3387     if test "$*" = "X"; then
3388	# -L didn't work.
3389	set X `ls -t "$srcdir/configure" conftest.file`
3390     fi
3391     if test "$*" != "X $srcdir/configure conftest.file" \
3392	&& test "$*" != "X conftest.file $srcdir/configure"; then
3393
3394	# If neither matched, then we have a broken ls.  This can happen
3395	# if, for instance, CONFIG_SHELL is bash and it inherits a
3396	# broken ls alias from the environment.  This has actually
3397	# happened.  Such a system could not be considered "sane".
3398	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3399  alias in your environment" "$LINENO" 5
3400     fi
3401     if test "$2" = conftest.file || test $am_try -eq 2; then
3402       break
3403     fi
3404     # Just in case.
3405     sleep 1
3406     am_has_slept=yes
3407   done
3408   test "$2" = conftest.file
3409   )
3410then
3411   # Ok.
3412   :
3413else
3414   as_fn_error $? "newly created file is older than distributed files!
3415Check your system clock" "$LINENO" 5
3416fi
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3418$as_echo "yes" >&6; }
3419# If we didn't sleep, we still need to ensure time stamps of config.status and
3420# generated files are strictly newer.
3421am_sleep_pid=
3422if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3423  ( sleep 1 ) &
3424  am_sleep_pid=$!
3425fi
3426
3427rm -f conftest.file
3428
3429test "$program_prefix" != NONE &&
3430  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3431# Use a double $ so make ignores it.
3432test "$program_suffix" != NONE &&
3433  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3434# Double any \ or $.
3435# By default was `s,x,x', remove it if useless.
3436ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3437program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3438
3439# Expand $ac_aux_dir to an absolute path.
3440am_aux_dir=`cd "$ac_aux_dir" && pwd`
3441
3442if test x"${MISSING+set}" != xset; then
3443  case $am_aux_dir in
3444  *\ * | *\	*)
3445    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3446  *)
3447    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3448  esac
3449fi
3450# Use eval to expand $SHELL
3451if eval "$MISSING --is-lightweight"; then
3452  am_missing_run="$MISSING "
3453else
3454  am_missing_run=
3455  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3456$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3457fi
3458
3459if test x"${install_sh+set}" != xset; then
3460  case $am_aux_dir in
3461  *\ * | *\	*)
3462    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3463  *)
3464    install_sh="\${SHELL} $am_aux_dir/install-sh"
3465  esac
3466fi
3467
3468# Installed binaries are usually stripped using 'strip' when the user
3469# run "make install-strip".  However 'strip' might not be the right
3470# tool to use in cross-compilation environments, therefore Automake
3471# will honor the 'STRIP' environment variable to overrule this program.
3472if test "$cross_compiling" != no; then
3473  if test -n "$ac_tool_prefix"; then
3474  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3475set dummy ${ac_tool_prefix}strip; ac_word=$2
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3477$as_echo_n "checking for $ac_word... " >&6; }
3478if ${ac_cv_prog_STRIP+:} false; then :
3479  $as_echo_n "(cached) " >&6
3480else
3481  if test -n "$STRIP"; then
3482  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3483else
3484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485for as_dir in $PATH
3486do
3487  IFS=$as_save_IFS
3488  test -z "$as_dir" && as_dir=.
3489    for ac_exec_ext in '' $ac_executable_extensions; do
3490  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3491    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3493    break 2
3494  fi
3495done
3496  done
3497IFS=$as_save_IFS
3498
3499fi
3500fi
3501STRIP=$ac_cv_prog_STRIP
3502if test -n "$STRIP"; then
3503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3504$as_echo "$STRIP" >&6; }
3505else
3506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507$as_echo "no" >&6; }
3508fi
3509
3510
3511fi
3512if test -z "$ac_cv_prog_STRIP"; then
3513  ac_ct_STRIP=$STRIP
3514  # Extract the first word of "strip", so it can be a program name with args.
3515set dummy strip; ac_word=$2
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517$as_echo_n "checking for $ac_word... " >&6; }
3518if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3519  $as_echo_n "(cached) " >&6
3520else
3521  if test -n "$ac_ct_STRIP"; then
3522  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3523else
3524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525for as_dir in $PATH
3526do
3527  IFS=$as_save_IFS
3528  test -z "$as_dir" && as_dir=.
3529    for ac_exec_ext in '' $ac_executable_extensions; do
3530  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3531    ac_cv_prog_ac_ct_STRIP="strip"
3532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3533    break 2
3534  fi
3535done
3536  done
3537IFS=$as_save_IFS
3538
3539fi
3540fi
3541ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3542if test -n "$ac_ct_STRIP"; then
3543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3544$as_echo "$ac_ct_STRIP" >&6; }
3545else
3546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547$as_echo "no" >&6; }
3548fi
3549
3550  if test "x$ac_ct_STRIP" = x; then
3551    STRIP=":"
3552  else
3553    case $cross_compiling:$ac_tool_warned in
3554yes:)
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3557ac_tool_warned=yes ;;
3558esac
3559    STRIP=$ac_ct_STRIP
3560  fi
3561else
3562  STRIP="$ac_cv_prog_STRIP"
3563fi
3564
3565fi
3566INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3567
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3569$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3570if test -z "$MKDIR_P"; then
3571  if ${ac_cv_path_mkdir+:} false; then :
3572  $as_echo_n "(cached) " >&6
3573else
3574  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3576do
3577  IFS=$as_save_IFS
3578  test -z "$as_dir" && as_dir=.
3579    for ac_prog in mkdir gmkdir; do
3580	 for ac_exec_ext in '' $ac_executable_extensions; do
3581	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3582	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3583	     'mkdir (GNU coreutils) '* | \
3584	     'mkdir (coreutils) '* | \
3585	     'mkdir (fileutils) '4.1*)
3586	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3587	       break 3;;
3588	   esac
3589	 done
3590       done
3591  done
3592IFS=$as_save_IFS
3593
3594fi
3595
3596  test -d ./--version && rmdir ./--version
3597  if test "${ac_cv_path_mkdir+set}" = set; then
3598    MKDIR_P="$ac_cv_path_mkdir -p"
3599  else
3600    # As a last resort, use the slow shell script.  Don't cache a
3601    # value for MKDIR_P within a source directory, because that will
3602    # break other packages using the cache if that directory is
3603    # removed, or if the value is a relative name.
3604    MKDIR_P="$ac_install_sh -d"
3605  fi
3606fi
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3608$as_echo "$MKDIR_P" >&6; }
3609
3610for ac_prog in gawk mawk nawk awk
3611do
3612  # Extract the first word of "$ac_prog", so it can be a program name with args.
3613set dummy $ac_prog; ac_word=$2
3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3615$as_echo_n "checking for $ac_word... " >&6; }
3616if ${ac_cv_prog_AWK+:} false; then :
3617  $as_echo_n "(cached) " >&6
3618else
3619  if test -n "$AWK"; then
3620  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3621else
3622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623for as_dir in $PATH
3624do
3625  IFS=$as_save_IFS
3626  test -z "$as_dir" && as_dir=.
3627    for ac_exec_ext in '' $ac_executable_extensions; do
3628  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3629    ac_cv_prog_AWK="$ac_prog"
3630    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3631    break 2
3632  fi
3633done
3634  done
3635IFS=$as_save_IFS
3636
3637fi
3638fi
3639AWK=$ac_cv_prog_AWK
3640if test -n "$AWK"; then
3641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3642$as_echo "$AWK" >&6; }
3643else
3644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645$as_echo "no" >&6; }
3646fi
3647
3648
3649  test -n "$AWK" && break
3650done
3651
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3653$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3654set x ${MAKE-make}
3655ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3656if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3657  $as_echo_n "(cached) " >&6
3658else
3659  cat >conftest.make <<\_ACEOF
3660SHELL = /bin/sh
3661all:
3662	@echo '@@@%%%=$(MAKE)=@@@%%%'
3663_ACEOF
3664# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3665case `${MAKE-make} -f conftest.make 2>/dev/null` in
3666  *@@@%%%=?*=@@@%%%*)
3667    eval ac_cv_prog_make_${ac_make}_set=yes;;
3668  *)
3669    eval ac_cv_prog_make_${ac_make}_set=no;;
3670esac
3671rm -f conftest.make
3672fi
3673if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3675$as_echo "yes" >&6; }
3676  SET_MAKE=
3677else
3678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679$as_echo "no" >&6; }
3680  SET_MAKE="MAKE=${MAKE-make}"
3681fi
3682
3683rm -rf .tst 2>/dev/null
3684mkdir .tst 2>/dev/null
3685if test -d .tst; then
3686  am__leading_dot=.
3687else
3688  am__leading_dot=_
3689fi
3690rmdir .tst 2>/dev/null
3691
3692# Check whether --enable-silent-rules was given.
3693if test "${enable_silent_rules+set}" = set; then :
3694  enableval=$enable_silent_rules;
3695fi
3696
3697case $enable_silent_rules in # (((
3698  yes) AM_DEFAULT_VERBOSITY=0;;
3699   no) AM_DEFAULT_VERBOSITY=1;;
3700    *) AM_DEFAULT_VERBOSITY=1;;
3701esac
3702am_make=${MAKE-make}
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3704$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3705if ${am_cv_make_support_nested_variables+:} false; then :
3706  $as_echo_n "(cached) " >&6
3707else
3708  if $as_echo 'TRUE=$(BAR$(V))
3709BAR0=false
3710BAR1=true
3711V=1
3712am__doit:
3713	@$(TRUE)
3714.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3715  am_cv_make_support_nested_variables=yes
3716else
3717  am_cv_make_support_nested_variables=no
3718fi
3719fi
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3721$as_echo "$am_cv_make_support_nested_variables" >&6; }
3722if test $am_cv_make_support_nested_variables = yes; then
3723    AM_V='$(V)'
3724  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3725else
3726  AM_V=$AM_DEFAULT_VERBOSITY
3727  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3728fi
3729AM_BACKSLASH='\'
3730
3731if test "`cd $srcdir && pwd`" != "`pwd`"; then
3732  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3733  # is not polluted with repeated "-I."
3734  am__isrc=' -I$(srcdir)'
3735  # test to see if srcdir already configured
3736  if test -f $srcdir/config.status; then
3737    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3738  fi
3739fi
3740
3741# test whether we have cygpath
3742if test -z "$CYGPATH_W"; then
3743  if (cygpath --version) >/dev/null 2>/dev/null; then
3744    CYGPATH_W='cygpath -w'
3745  else
3746    CYGPATH_W=echo
3747  fi
3748fi
3749
3750
3751# Define the identity of the package.
3752 PACKAGE='ntp'
3753 VERSION='4.2.8p6'
3754
3755
3756cat >>confdefs.h <<_ACEOF
3757#define PACKAGE "$PACKAGE"
3758_ACEOF
3759
3760
3761cat >>confdefs.h <<_ACEOF
3762#define VERSION "$VERSION"
3763_ACEOF
3764
3765# Some tools Automake needs.
3766
3767ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3768
3769
3770AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3771
3772
3773AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3774
3775
3776AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3777
3778
3779MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3780
3781# For better backward compatibility.  To be removed once Automake 1.9.x
3782# dies out for good.  For more background, see:
3783# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3784# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3785mkdir_p='$(MKDIR_P)'
3786
3787# We need awk for the "check" target (and possibly the TAP driver).  The
3788# system "awk" is bad on some platforms.
3789# Always define AMTAR for backward compatibility.  Yes, it's still used
3790# in the wild :-(  We should find a proper way to deprecate it ...
3791AMTAR='$${TAR-tar}'
3792
3793
3794# We'll loop over all known methods to create a tar archive until one works.
3795_am_tools='gnutar  pax cpio none'
3796
3797am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3798
3799
3800
3801
3802
3803
3804# POSIX will say in a future version that running "rm -f" with no argument
3805# is OK; and we want to be able to make that assumption in our Makefile
3806# recipes.  So use an aggressive probe to check that the usage we want is
3807# actually supported "in the wild" to an acceptable degree.
3808# See automake bug#10828.
3809# To make any issue more visible, cause the running configure to be aborted
3810# by default if the 'rm' program in use doesn't match our expectations; the
3811# user can still override this though.
3812if rm -f && rm -fr && rm -rf; then : OK; else
3813  cat >&2 <<'END'
3814Oops!
3815
3816Your 'rm' program seems unable to run without file operands specified
3817on the command line, even when the '-f' option is present.  This is contrary
3818to the behaviour of most rm programs out there, and not conforming with
3819the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3820
3821Please tell bug-automake@gnu.org about your system, including the value
3822of your $PATH and any error possibly output before this message.  This
3823can help us improve future automake versions.
3824
3825END
3826  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3827    echo 'Configuration will proceed anyway, since you have set the' >&2
3828    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3829    echo >&2
3830  else
3831    cat >&2 <<'END'
3832Aborting the configuration process, to ensure you take notice of the issue.
3833
3834You can download and install GNU coreutils to get an 'rm' implementation
3835that behaves properly: <http://www.gnu.org/software/coreutils/>.
3836
3837If you want to complete the configuration process using your problematic
3838'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3839to "yes", and re-run configure.
3840
3841END
3842    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3843  fi
3844fi
3845
3846
3847# Check whether --enable-silent-rules was given.
3848if test "${enable_silent_rules+set}" = set; then :
3849  enableval=$enable_silent_rules;
3850fi
3851
3852case $enable_silent_rules in # (((
3853  yes) AM_DEFAULT_VERBOSITY=0;;
3854   no) AM_DEFAULT_VERBOSITY=1;;
3855    *) AM_DEFAULT_VERBOSITY=0;;
3856esac
3857am_make=${MAKE-make}
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3859$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3860if ${am_cv_make_support_nested_variables+:} false; then :
3861  $as_echo_n "(cached) " >&6
3862else
3863  if $as_echo 'TRUE=$(BAR$(V))
3864BAR0=false
3865BAR1=true
3866V=1
3867am__doit:
3868	@$(TRUE)
3869.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3870  am_cv_make_support_nested_variables=yes
3871else
3872  am_cv_make_support_nested_variables=no
3873fi
3874fi
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3876$as_echo "$am_cv_make_support_nested_variables" >&6; }
3877if test $am_cv_make_support_nested_variables = yes; then
3878    AM_V='$(V)'
3879  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3880else
3881  AM_V=$AM_DEFAULT_VERBOSITY
3882  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3883fi
3884AM_BACKSLASH='\'
3885
3886
3887# Make sure we can run config.sub.
3888$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3889  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3890
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3892$as_echo_n "checking build system type... " >&6; }
3893if ${ac_cv_build+:} false; then :
3894  $as_echo_n "(cached) " >&6
3895else
3896  ac_build_alias=$build_alias
3897test "x$ac_build_alias" = x &&
3898  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3899test "x$ac_build_alias" = x &&
3900  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3901ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3902  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3903
3904fi
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3906$as_echo "$ac_cv_build" >&6; }
3907case $ac_cv_build in
3908*-*-*) ;;
3909*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3910esac
3911build=$ac_cv_build
3912ac_save_IFS=$IFS; IFS='-'
3913set x $ac_cv_build
3914shift
3915build_cpu=$1
3916build_vendor=$2
3917shift; shift
3918# Remember, the first character of IFS is used to create $*,
3919# except with old shells:
3920build_os=$*
3921IFS=$ac_save_IFS
3922case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3923
3924
3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3926$as_echo_n "checking host system type... " >&6; }
3927if ${ac_cv_host+:} false; then :
3928  $as_echo_n "(cached) " >&6
3929else
3930  if test "x$host_alias" = x; then
3931  ac_cv_host=$ac_cv_build
3932else
3933  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3934    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3935fi
3936
3937fi
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3939$as_echo "$ac_cv_host" >&6; }
3940case $ac_cv_host in
3941*-*-*) ;;
3942*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3943esac
3944host=$ac_cv_host
3945ac_save_IFS=$IFS; IFS='-'
3946set x $ac_cv_host
3947shift
3948host_cpu=$1
3949host_vendor=$2
3950shift; shift
3951# Remember, the first character of IFS is used to create $*,
3952# except with old shells:
3953host_os=$*
3954IFS=$ac_save_IFS
3955case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3956
3957
3958
3959cat >>confdefs.h <<_ACEOF
3960#define STR_SYSTEM "$host"
3961_ACEOF
3962
3963ac_config_headers="$ac_config_headers config.h"
3964
3965
3966ntp_atom_ok=${ntp_atom_ok=no}
3967ntp_oncore_ok=${ntp_oncore_ok=no}
3968ntp_parse_ok=${ntp_parse_ok=no}
3969ntp_ripe_ncc_ok=${ntp_parse_ok=no}
3970ntp_jupiter_ok=${ntp_jupiter_ok=no}
3971
3972DEPDIR="${am__leading_dot}deps"
3973
3974ac_config_commands="$ac_config_commands depfiles"
3975
3976
3977am_make=${MAKE-make}
3978cat > confinc << 'END'
3979am__doit:
3980	@echo this is the am__doit target
3981.PHONY: am__doit
3982END
3983# If we don't find an include directive, just comment out the code.
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3985$as_echo_n "checking for style of include used by $am_make... " >&6; }
3986am__include="#"
3987am__quote=
3988_am_result=none
3989# First try GNU make style include.
3990echo "include confinc" > confmf
3991# Ignore all kinds of additional output from 'make'.
3992case `$am_make -s -f confmf 2> /dev/null` in #(
3993*the\ am__doit\ target*)
3994  am__include=include
3995  am__quote=
3996  _am_result=GNU
3997  ;;
3998esac
3999# Now try BSD make style include.
4000if test "$am__include" = "#"; then
4001   echo '.include "confinc"' > confmf
4002   case `$am_make -s -f confmf 2> /dev/null` in #(
4003   *the\ am__doit\ target*)
4004     am__include=.include
4005     am__quote="\""
4006     _am_result=BSD
4007     ;;
4008   esac
4009fi
4010
4011
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4013$as_echo "$_am_result" >&6; }
4014rm -f confinc confmf
4015
4016# Check whether --enable-dependency-tracking was given.
4017if test "${enable_dependency_tracking+set}" = set; then :
4018  enableval=$enable_dependency_tracking;
4019fi
4020
4021if test "x$enable_dependency_tracking" != xno; then
4022  am_depcomp="$ac_aux_dir/depcomp"
4023  AMDEPBACKSLASH='\'
4024  am__nodep='_no'
4025fi
4026 if test "x$enable_dependency_tracking" != xno; then
4027  AMDEP_TRUE=
4028  AMDEP_FALSE='#'
4029else
4030  AMDEP_TRUE='#'
4031  AMDEP_FALSE=
4032fi
4033
4034
4035ac_ext=c
4036ac_cpp='$CPP $CPPFLAGS'
4037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040if test -n "$ac_tool_prefix"; then
4041  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4042set dummy ${ac_tool_prefix}gcc; ac_word=$2
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044$as_echo_n "checking for $ac_word... " >&6; }
4045if ${ac_cv_prog_CC+:} false; then :
4046  $as_echo_n "(cached) " >&6
4047else
4048  if test -n "$CC"; then
4049  ac_cv_prog_CC="$CC" # Let the user override the test.
4050else
4051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052for as_dir in $PATH
4053do
4054  IFS=$as_save_IFS
4055  test -z "$as_dir" && as_dir=.
4056    for ac_exec_ext in '' $ac_executable_extensions; do
4057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4060    break 2
4061  fi
4062done
4063  done
4064IFS=$as_save_IFS
4065
4066fi
4067fi
4068CC=$ac_cv_prog_CC
4069if test -n "$CC"; then
4070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4071$as_echo "$CC" >&6; }
4072else
4073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4074$as_echo "no" >&6; }
4075fi
4076
4077
4078fi
4079if test -z "$ac_cv_prog_CC"; then
4080  ac_ct_CC=$CC
4081  # Extract the first word of "gcc", so it can be a program name with args.
4082set dummy gcc; ac_word=$2
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4084$as_echo_n "checking for $ac_word... " >&6; }
4085if ${ac_cv_prog_ac_ct_CC+:} false; then :
4086  $as_echo_n "(cached) " >&6
4087else
4088  if test -n "$ac_ct_CC"; then
4089  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4090else
4091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092for as_dir in $PATH
4093do
4094  IFS=$as_save_IFS
4095  test -z "$as_dir" && as_dir=.
4096    for ac_exec_ext in '' $ac_executable_extensions; do
4097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4098    ac_cv_prog_ac_ct_CC="gcc"
4099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4100    break 2
4101  fi
4102done
4103  done
4104IFS=$as_save_IFS
4105
4106fi
4107fi
4108ac_ct_CC=$ac_cv_prog_ac_ct_CC
4109if test -n "$ac_ct_CC"; then
4110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4111$as_echo "$ac_ct_CC" >&6; }
4112else
4113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114$as_echo "no" >&6; }
4115fi
4116
4117  if test "x$ac_ct_CC" = x; then
4118    CC=""
4119  else
4120    case $cross_compiling:$ac_tool_warned in
4121yes:)
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4124ac_tool_warned=yes ;;
4125esac
4126    CC=$ac_ct_CC
4127  fi
4128else
4129  CC="$ac_cv_prog_CC"
4130fi
4131
4132if test -z "$CC"; then
4133          if test -n "$ac_tool_prefix"; then
4134    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4135set dummy ${ac_tool_prefix}cc; ac_word=$2
4136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137$as_echo_n "checking for $ac_word... " >&6; }
4138if ${ac_cv_prog_CC+:} false; then :
4139  $as_echo_n "(cached) " >&6
4140else
4141  if test -n "$CC"; then
4142  ac_cv_prog_CC="$CC" # Let the user override the test.
4143else
4144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145for as_dir in $PATH
4146do
4147  IFS=$as_save_IFS
4148  test -z "$as_dir" && as_dir=.
4149    for ac_exec_ext in '' $ac_executable_extensions; do
4150  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151    ac_cv_prog_CC="${ac_tool_prefix}cc"
4152    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4153    break 2
4154  fi
4155done
4156  done
4157IFS=$as_save_IFS
4158
4159fi
4160fi
4161CC=$ac_cv_prog_CC
4162if test -n "$CC"; then
4163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4164$as_echo "$CC" >&6; }
4165else
4166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167$as_echo "no" >&6; }
4168fi
4169
4170
4171  fi
4172fi
4173if test -z "$CC"; then
4174  # Extract the first word of "cc", so it can be a program name with args.
4175set dummy cc; ac_word=$2
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177$as_echo_n "checking for $ac_word... " >&6; }
4178if ${ac_cv_prog_CC+:} false; then :
4179  $as_echo_n "(cached) " >&6
4180else
4181  if test -n "$CC"; then
4182  ac_cv_prog_CC="$CC" # Let the user override the test.
4183else
4184  ac_prog_rejected=no
4185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186for as_dir in $PATH
4187do
4188  IFS=$as_save_IFS
4189  test -z "$as_dir" && as_dir=.
4190    for ac_exec_ext in '' $ac_executable_extensions; do
4191  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4192    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4193       ac_prog_rejected=yes
4194       continue
4195     fi
4196    ac_cv_prog_CC="cc"
4197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198    break 2
4199  fi
4200done
4201  done
4202IFS=$as_save_IFS
4203
4204if test $ac_prog_rejected = yes; then
4205  # We found a bogon in the path, so make sure we never use it.
4206  set dummy $ac_cv_prog_CC
4207  shift
4208  if test $# != 0; then
4209    # We chose a different compiler from the bogus one.
4210    # However, it has the same basename, so the bogon will be chosen
4211    # first if we set CC to just the basename; use the full file name.
4212    shift
4213    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4214  fi
4215fi
4216fi
4217fi
4218CC=$ac_cv_prog_CC
4219if test -n "$CC"; then
4220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4221$as_echo "$CC" >&6; }
4222else
4223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224$as_echo "no" >&6; }
4225fi
4226
4227
4228fi
4229if test -z "$CC"; then
4230  if test -n "$ac_tool_prefix"; then
4231  for ac_prog in cl.exe
4232  do
4233    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4234set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236$as_echo_n "checking for $ac_word... " >&6; }
4237if ${ac_cv_prog_CC+:} false; then :
4238  $as_echo_n "(cached) " >&6
4239else
4240  if test -n "$CC"; then
4241  ac_cv_prog_CC="$CC" # Let the user override the test.
4242else
4243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244for as_dir in $PATH
4245do
4246  IFS=$as_save_IFS
4247  test -z "$as_dir" && as_dir=.
4248    for ac_exec_ext in '' $ac_executable_extensions; do
4249  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4250    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4251    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4252    break 2
4253  fi
4254done
4255  done
4256IFS=$as_save_IFS
4257
4258fi
4259fi
4260CC=$ac_cv_prog_CC
4261if test -n "$CC"; then
4262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4263$as_echo "$CC" >&6; }
4264else
4265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266$as_echo "no" >&6; }
4267fi
4268
4269
4270    test -n "$CC" && break
4271  done
4272fi
4273if test -z "$CC"; then
4274  ac_ct_CC=$CC
4275  for ac_prog in cl.exe
4276do
4277  # Extract the first word of "$ac_prog", so it can be a program name with args.
4278set dummy $ac_prog; ac_word=$2
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280$as_echo_n "checking for $ac_word... " >&6; }
4281if ${ac_cv_prog_ac_ct_CC+:} false; then :
4282  $as_echo_n "(cached) " >&6
4283else
4284  if test -n "$ac_ct_CC"; then
4285  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4286else
4287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288for as_dir in $PATH
4289do
4290  IFS=$as_save_IFS
4291  test -z "$as_dir" && as_dir=.
4292    for ac_exec_ext in '' $ac_executable_extensions; do
4293  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294    ac_cv_prog_ac_ct_CC="$ac_prog"
4295    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296    break 2
4297  fi
4298done
4299  done
4300IFS=$as_save_IFS
4301
4302fi
4303fi
4304ac_ct_CC=$ac_cv_prog_ac_ct_CC
4305if test -n "$ac_ct_CC"; then
4306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4307$as_echo "$ac_ct_CC" >&6; }
4308else
4309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310$as_echo "no" >&6; }
4311fi
4312
4313
4314  test -n "$ac_ct_CC" && break
4315done
4316
4317  if test "x$ac_ct_CC" = x; then
4318    CC=""
4319  else
4320    case $cross_compiling:$ac_tool_warned in
4321yes:)
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4324ac_tool_warned=yes ;;
4325esac
4326    CC=$ac_ct_CC
4327  fi
4328fi
4329
4330fi
4331
4332
4333test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4335as_fn_error $? "no acceptable C compiler found in \$PATH
4336See \`config.log' for more details" "$LINENO" 5; }
4337
4338# Provide some information about the compiler.
4339$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4340set X $ac_compile
4341ac_compiler=$2
4342for ac_option in --version -v -V -qversion; do
4343  { { ac_try="$ac_compiler $ac_option >&5"
4344case "(($ac_try" in
4345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346  *) ac_try_echo=$ac_try;;
4347esac
4348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4349$as_echo "$ac_try_echo"; } >&5
4350  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4351  ac_status=$?
4352  if test -s conftest.err; then
4353    sed '10a\
4354... rest of stderr output deleted ...
4355         10q' conftest.err >conftest.er1
4356    cat conftest.er1 >&5
4357  fi
4358  rm -f conftest.er1 conftest.err
4359  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4360  test $ac_status = 0; }
4361done
4362
4363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364/* end confdefs.h.  */
4365
4366int
4367main ()
4368{
4369
4370  ;
4371  return 0;
4372}
4373_ACEOF
4374ac_clean_files_save=$ac_clean_files
4375ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4376# Try to create an executable without -o first, disregard a.out.
4377# It will help us diagnose broken compilers, and finding out an intuition
4378# of exeext.
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4380$as_echo_n "checking whether the C compiler works... " >&6; }
4381ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4382
4383# The possible output files:
4384ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4385
4386ac_rmfiles=
4387for ac_file in $ac_files
4388do
4389  case $ac_file in
4390    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4391    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4392  esac
4393done
4394rm -f $ac_rmfiles
4395
4396if { { ac_try="$ac_link_default"
4397case "(($ac_try" in
4398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399  *) ac_try_echo=$ac_try;;
4400esac
4401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402$as_echo "$ac_try_echo"; } >&5
4403  (eval "$ac_link_default") 2>&5
4404  ac_status=$?
4405  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4406  test $ac_status = 0; }; then :
4407  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4408# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4409# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4410# so that the user can short-circuit this test for compilers unknown to
4411# Autoconf.
4412for ac_file in $ac_files ''
4413do
4414  test -f "$ac_file" || continue
4415  case $ac_file in
4416    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4417	;;
4418    [ab].out )
4419	# We found the default executable, but exeext='' is most
4420	# certainly right.
4421	break;;
4422    *.* )
4423	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4424	then :; else
4425	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4426	fi
4427	# We set ac_cv_exeext here because the later test for it is not
4428	# safe: cross compilers may not add the suffix if given an `-o'
4429	# argument, so we may need to know it at that point already.
4430	# Even if this section looks crufty: it has the advantage of
4431	# actually working.
4432	break;;
4433    * )
4434	break;;
4435  esac
4436done
4437test "$ac_cv_exeext" = no && ac_cv_exeext=
4438
4439else
4440  ac_file=''
4441fi
4442if test -z "$ac_file"; then :
4443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444$as_echo "no" >&6; }
4445$as_echo "$as_me: failed program was:" >&5
4446sed 's/^/| /' conftest.$ac_ext >&5
4447
4448{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4450as_fn_error 77 "C compiler cannot create executables
4451See \`config.log' for more details" "$LINENO" 5; }
4452else
4453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4454$as_echo "yes" >&6; }
4455fi
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4457$as_echo_n "checking for C compiler default output file name... " >&6; }
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4459$as_echo "$ac_file" >&6; }
4460ac_exeext=$ac_cv_exeext
4461
4462rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4463ac_clean_files=$ac_clean_files_save
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4465$as_echo_n "checking for suffix of executables... " >&6; }
4466if { { ac_try="$ac_link"
4467case "(($ac_try" in
4468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469  *) ac_try_echo=$ac_try;;
4470esac
4471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4472$as_echo "$ac_try_echo"; } >&5
4473  (eval "$ac_link") 2>&5
4474  ac_status=$?
4475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4476  test $ac_status = 0; }; then :
4477  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4478# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4479# work properly (i.e., refer to `conftest.exe'), while it won't with
4480# `rm'.
4481for ac_file in conftest.exe conftest conftest.*; do
4482  test -f "$ac_file" || continue
4483  case $ac_file in
4484    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4485    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4486	  break;;
4487    * ) break;;
4488  esac
4489done
4490else
4491  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4493as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4494See \`config.log' for more details" "$LINENO" 5; }
4495fi
4496rm -f conftest conftest$ac_cv_exeext
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4498$as_echo "$ac_cv_exeext" >&6; }
4499
4500rm -f conftest.$ac_ext
4501EXEEXT=$ac_cv_exeext
4502ac_exeext=$EXEEXT
4503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504/* end confdefs.h.  */
4505#include <stdio.h>
4506int
4507main ()
4508{
4509FILE *f = fopen ("conftest.out", "w");
4510 return ferror (f) || fclose (f) != 0;
4511
4512  ;
4513  return 0;
4514}
4515_ACEOF
4516ac_clean_files="$ac_clean_files conftest.out"
4517# Check that the compiler produces executables we can run.  If not, either
4518# the compiler is broken, or we cross compile.
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4520$as_echo_n "checking whether we are cross compiling... " >&6; }
4521if test "$cross_compiling" != yes; then
4522  { { ac_try="$ac_link"
4523case "(($ac_try" in
4524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525  *) ac_try_echo=$ac_try;;
4526esac
4527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4528$as_echo "$ac_try_echo"; } >&5
4529  (eval "$ac_link") 2>&5
4530  ac_status=$?
4531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532  test $ac_status = 0; }
4533  if { ac_try='./conftest$ac_cv_exeext'
4534  { { case "(($ac_try" in
4535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536  *) ac_try_echo=$ac_try;;
4537esac
4538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4539$as_echo "$ac_try_echo"; } >&5
4540  (eval "$ac_try") 2>&5
4541  ac_status=$?
4542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4543  test $ac_status = 0; }; }; then
4544    cross_compiling=no
4545  else
4546    if test "$cross_compiling" = maybe; then
4547	cross_compiling=yes
4548    else
4549	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4551as_fn_error $? "cannot run C compiled programs.
4552If you meant to cross compile, use \`--host'.
4553See \`config.log' for more details" "$LINENO" 5; }
4554    fi
4555  fi
4556fi
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4558$as_echo "$cross_compiling" >&6; }
4559
4560rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4561ac_clean_files=$ac_clean_files_save
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4563$as_echo_n "checking for suffix of object files... " >&6; }
4564if ${ac_cv_objext+:} false; then :
4565  $as_echo_n "(cached) " >&6
4566else
4567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568/* end confdefs.h.  */
4569
4570int
4571main ()
4572{
4573
4574  ;
4575  return 0;
4576}
4577_ACEOF
4578rm -f conftest.o conftest.obj
4579if { { ac_try="$ac_compile"
4580case "(($ac_try" in
4581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582  *) ac_try_echo=$ac_try;;
4583esac
4584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4585$as_echo "$ac_try_echo"; } >&5
4586  (eval "$ac_compile") 2>&5
4587  ac_status=$?
4588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4589  test $ac_status = 0; }; then :
4590  for ac_file in conftest.o conftest.obj conftest.*; do
4591  test -f "$ac_file" || continue;
4592  case $ac_file in
4593    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4594    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4595       break;;
4596  esac
4597done
4598else
4599  $as_echo "$as_me: failed program was:" >&5
4600sed 's/^/| /' conftest.$ac_ext >&5
4601
4602{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4604as_fn_error $? "cannot compute suffix of object files: cannot compile
4605See \`config.log' for more details" "$LINENO" 5; }
4606fi
4607rm -f conftest.$ac_cv_objext conftest.$ac_ext
4608fi
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4610$as_echo "$ac_cv_objext" >&6; }
4611OBJEXT=$ac_cv_objext
4612ac_objext=$OBJEXT
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4614$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4615if ${ac_cv_c_compiler_gnu+:} false; then :
4616  $as_echo_n "(cached) " >&6
4617else
4618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619/* end confdefs.h.  */
4620
4621int
4622main ()
4623{
4624#ifndef __GNUC__
4625       choke me
4626#endif
4627
4628  ;
4629  return 0;
4630}
4631_ACEOF
4632if ac_fn_c_try_compile "$LINENO"; then :
4633  ac_compiler_gnu=yes
4634else
4635  ac_compiler_gnu=no
4636fi
4637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638ac_cv_c_compiler_gnu=$ac_compiler_gnu
4639
4640fi
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4642$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4643if test $ac_compiler_gnu = yes; then
4644  GCC=yes
4645else
4646  GCC=
4647fi
4648ac_test_CFLAGS=${CFLAGS+set}
4649ac_save_CFLAGS=$CFLAGS
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4651$as_echo_n "checking whether $CC accepts -g... " >&6; }
4652if ${ac_cv_prog_cc_g+:} false; then :
4653  $as_echo_n "(cached) " >&6
4654else
4655  ac_save_c_werror_flag=$ac_c_werror_flag
4656   ac_c_werror_flag=yes
4657   ac_cv_prog_cc_g=no
4658   CFLAGS="-g"
4659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660/* end confdefs.h.  */
4661
4662int
4663main ()
4664{
4665
4666  ;
4667  return 0;
4668}
4669_ACEOF
4670if ac_fn_c_try_compile "$LINENO"; then :
4671  ac_cv_prog_cc_g=yes
4672else
4673  CFLAGS=""
4674      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675/* end confdefs.h.  */
4676
4677int
4678main ()
4679{
4680
4681  ;
4682  return 0;
4683}
4684_ACEOF
4685if ac_fn_c_try_compile "$LINENO"; then :
4686
4687else
4688  ac_c_werror_flag=$ac_save_c_werror_flag
4689	 CFLAGS="-g"
4690	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691/* end confdefs.h.  */
4692
4693int
4694main ()
4695{
4696
4697  ;
4698  return 0;
4699}
4700_ACEOF
4701if ac_fn_c_try_compile "$LINENO"; then :
4702  ac_cv_prog_cc_g=yes
4703fi
4704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705fi
4706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707fi
4708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709   ac_c_werror_flag=$ac_save_c_werror_flag
4710fi
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4712$as_echo "$ac_cv_prog_cc_g" >&6; }
4713if test "$ac_test_CFLAGS" = set; then
4714  CFLAGS=$ac_save_CFLAGS
4715elif test $ac_cv_prog_cc_g = yes; then
4716  if test "$GCC" = yes; then
4717    CFLAGS="-g -O2"
4718  else
4719    CFLAGS="-g"
4720  fi
4721else
4722  if test "$GCC" = yes; then
4723    CFLAGS="-O2"
4724  else
4725    CFLAGS=
4726  fi
4727fi
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4729$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4730if ${ac_cv_prog_cc_c89+:} false; then :
4731  $as_echo_n "(cached) " >&6
4732else
4733  ac_cv_prog_cc_c89=no
4734ac_save_CC=$CC
4735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736/* end confdefs.h.  */
4737#include <stdarg.h>
4738#include <stdio.h>
4739struct stat;
4740/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4741struct buf { int x; };
4742FILE * (*rcsopen) (struct buf *, struct stat *, int);
4743static char *e (p, i)
4744     char **p;
4745     int i;
4746{
4747  return p[i];
4748}
4749static char *f (char * (*g) (char **, int), char **p, ...)
4750{
4751  char *s;
4752  va_list v;
4753  va_start (v,p);
4754  s = g (p, va_arg (v,int));
4755  va_end (v);
4756  return s;
4757}
4758
4759/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4760   function prototypes and stuff, but not '\xHH' hex character constants.
4761   These don't provoke an error unfortunately, instead are silently treated
4762   as 'x'.  The following induces an error, until -std is added to get
4763   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4764   array size at least.  It's necessary to write '\x00'==0 to get something
4765   that's true only with -std.  */
4766int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4767
4768/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4769   inside strings and character constants.  */
4770#define FOO(x) 'x'
4771int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4772
4773int test (int i, double x);
4774struct s1 {int (*f) (int a);};
4775struct s2 {int (*f) (double a);};
4776int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4777int argc;
4778char **argv;
4779int
4780main ()
4781{
4782return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4783  ;
4784  return 0;
4785}
4786_ACEOF
4787for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4788	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4789do
4790  CC="$ac_save_CC $ac_arg"
4791  if ac_fn_c_try_compile "$LINENO"; then :
4792  ac_cv_prog_cc_c89=$ac_arg
4793fi
4794rm -f core conftest.err conftest.$ac_objext
4795  test "x$ac_cv_prog_cc_c89" != "xno" && break
4796done
4797rm -f conftest.$ac_ext
4798CC=$ac_save_CC
4799
4800fi
4801# AC_CACHE_VAL
4802case "x$ac_cv_prog_cc_c89" in
4803  x)
4804    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4805$as_echo "none needed" >&6; } ;;
4806  xno)
4807    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4808$as_echo "unsupported" >&6; } ;;
4809  *)
4810    CC="$CC $ac_cv_prog_cc_c89"
4811    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4812$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4813esac
4814if test "x$ac_cv_prog_cc_c89" != xno; then :
4815
4816fi
4817
4818ac_ext=c
4819ac_cpp='$CPP $CPPFLAGS'
4820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822ac_compiler_gnu=$ac_cv_c_compiler_gnu
4823
4824ac_ext=c
4825ac_cpp='$CPP $CPPFLAGS'
4826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4828ac_compiler_gnu=$ac_cv_c_compiler_gnu
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4830$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4831if ${am_cv_prog_cc_c_o+:} false; then :
4832  $as_echo_n "(cached) " >&6
4833else
4834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835/* end confdefs.h.  */
4836
4837int
4838main ()
4839{
4840
4841  ;
4842  return 0;
4843}
4844_ACEOF
4845  # Make sure it works both with $CC and with simple cc.
4846  # Following AC_PROG_CC_C_O, we do the test twice because some
4847  # compilers refuse to overwrite an existing .o file with -o,
4848  # though they will create one.
4849  am_cv_prog_cc_c_o=yes
4850  for am_i in 1 2; do
4851    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4852   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4853   ac_status=$?
4854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855   (exit $ac_status); } \
4856         && test -f conftest2.$ac_objext; then
4857      : OK
4858    else
4859      am_cv_prog_cc_c_o=no
4860      break
4861    fi
4862  done
4863  rm -f core conftest*
4864  unset am_i
4865fi
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4867$as_echo "$am_cv_prog_cc_c_o" >&6; }
4868if test "$am_cv_prog_cc_c_o" != yes; then
4869   # Losing compiler, so override with the script.
4870   # FIXME: It is wrong to rewrite CC.
4871   # But if we don't then we get into trouble of one sort or another.
4872   # A longer-term fix would be to have automake use am__CC in this case,
4873   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4874   CC="$am_aux_dir/compile $CC"
4875fi
4876ac_ext=c
4877ac_cpp='$CPP $CPPFLAGS'
4878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880ac_compiler_gnu=$ac_cv_c_compiler_gnu
4881
4882
4883depcc="$CC"   am_compiler_list=
4884
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4886$as_echo_n "checking dependency style of $depcc... " >&6; }
4887if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4888  $as_echo_n "(cached) " >&6
4889else
4890  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4891  # We make a subdir and do the tests there.  Otherwise we can end up
4892  # making bogus files that we don't know about and never remove.  For
4893  # instance it was reported that on HP-UX the gcc test will end up
4894  # making a dummy file named 'D' -- because '-MD' means "put the output
4895  # in D".
4896  rm -rf conftest.dir
4897  mkdir conftest.dir
4898  # Copy depcomp to subdir because otherwise we won't find it if we're
4899  # using a relative directory.
4900  cp "$am_depcomp" conftest.dir
4901  cd conftest.dir
4902  # We will build objects and dependencies in a subdirectory because
4903  # it helps to detect inapplicable dependency modes.  For instance
4904  # both Tru64's cc and ICC support -MD to output dependencies as a
4905  # side effect of compilation, but ICC will put the dependencies in
4906  # the current directory while Tru64 will put them in the object
4907  # directory.
4908  mkdir sub
4909
4910  am_cv_CC_dependencies_compiler_type=none
4911  if test "$am_compiler_list" = ""; then
4912     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4913  fi
4914  am__universal=false
4915  case " $depcc " in #(
4916     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4917     esac
4918
4919  for depmode in $am_compiler_list; do
4920    # Setup a source with many dependencies, because some compilers
4921    # like to wrap large dependency lists on column 80 (with \), and
4922    # we should not choose a depcomp mode which is confused by this.
4923    #
4924    # We need to recreate these files for each test, as the compiler may
4925    # overwrite some of them when testing with obscure command lines.
4926    # This happens at least with the AIX C compiler.
4927    : > sub/conftest.c
4928    for i in 1 2 3 4 5 6; do
4929      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4930      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4931      # Solaris 10 /bin/sh.
4932      echo '/* dummy */' > sub/conftst$i.h
4933    done
4934    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4935
4936    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4937    # mode.  It turns out that the SunPro C++ compiler does not properly
4938    # handle '-M -o', and we need to detect this.  Also, some Intel
4939    # versions had trouble with output in subdirs.
4940    am__obj=sub/conftest.${OBJEXT-o}
4941    am__minus_obj="-o $am__obj"
4942    case $depmode in
4943    gcc)
4944      # This depmode causes a compiler race in universal mode.
4945      test "$am__universal" = false || continue
4946      ;;
4947    nosideeffect)
4948      # After this tag, mechanisms are not by side-effect, so they'll
4949      # only be used when explicitly requested.
4950      if test "x$enable_dependency_tracking" = xyes; then
4951	continue
4952      else
4953	break
4954      fi
4955      ;;
4956    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4957      # This compiler won't grok '-c -o', but also, the minuso test has
4958      # not run yet.  These depmodes are late enough in the game, and
4959      # so weak that their functioning should not be impacted.
4960      am__obj=conftest.${OBJEXT-o}
4961      am__minus_obj=
4962      ;;
4963    none) break ;;
4964    esac
4965    if depmode=$depmode \
4966       source=sub/conftest.c object=$am__obj \
4967       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4968       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4969         >/dev/null 2>conftest.err &&
4970       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4971       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4972       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4973       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4974      # icc doesn't choke on unknown options, it will just issue warnings
4975      # or remarks (even with -Werror).  So we grep stderr for any message
4976      # that says an option was ignored or not supported.
4977      # When given -MP, icc 7.0 and 7.1 complain thusly:
4978      #   icc: Command line warning: ignoring option '-M'; no argument required
4979      # The diagnosis changed in icc 8.0:
4980      #   icc: Command line remark: option '-MP' not supported
4981      if (grep 'ignoring option' conftest.err ||
4982          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4983        am_cv_CC_dependencies_compiler_type=$depmode
4984        break
4985      fi
4986    fi
4987  done
4988
4989  cd ..
4990  rm -rf conftest.dir
4991else
4992  am_cv_CC_dependencies_compiler_type=none
4993fi
4994
4995fi
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4997$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4998CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4999
5000 if
5001  test "x$enable_dependency_tracking" != xno \
5002  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5003  am__fastdepCC_TRUE=
5004  am__fastdepCC_FALSE='#'
5005else
5006  am__fastdepCC_TRUE='#'
5007  am__fastdepCC_FALSE=
5008fi
5009
5010
5011
5012ac_ext=c
5013ac_cpp='$CPP $CPPFLAGS'
5014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5016ac_compiler_gnu=$ac_cv_c_compiler_gnu
5017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5018$as_echo_n "checking how to run the C preprocessor... " >&6; }
5019# On Suns, sometimes $CPP names a directory.
5020if test -n "$CPP" && test -d "$CPP"; then
5021  CPP=
5022fi
5023if test -z "$CPP"; then
5024  if ${ac_cv_prog_CPP+:} false; then :
5025  $as_echo_n "(cached) " >&6
5026else
5027      # Double quotes because CPP needs to be expanded
5028    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5029    do
5030      ac_preproc_ok=false
5031for ac_c_preproc_warn_flag in '' yes
5032do
5033  # Use a header file that comes with gcc, so configuring glibc
5034  # with a fresh cross-compiler works.
5035  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5036  # <limits.h> exists even on freestanding compilers.
5037  # On the NeXT, cc -E runs the code through the compiler's parser,
5038  # not just through cpp. "Syntax error" is here to catch this case.
5039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040/* end confdefs.h.  */
5041#ifdef __STDC__
5042# include <limits.h>
5043#else
5044# include <assert.h>
5045#endif
5046		     Syntax error
5047_ACEOF
5048if ac_fn_c_try_cpp "$LINENO"; then :
5049
5050else
5051  # Broken: fails on valid input.
5052continue
5053fi
5054rm -f conftest.err conftest.i conftest.$ac_ext
5055
5056  # OK, works on sane cases.  Now check whether nonexistent headers
5057  # can be detected and how.
5058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059/* end confdefs.h.  */
5060#include <ac_nonexistent.h>
5061_ACEOF
5062if ac_fn_c_try_cpp "$LINENO"; then :
5063  # Broken: success on invalid input.
5064continue
5065else
5066  # Passes both tests.
5067ac_preproc_ok=:
5068break
5069fi
5070rm -f conftest.err conftest.i conftest.$ac_ext
5071
5072done
5073# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5074rm -f conftest.i conftest.err conftest.$ac_ext
5075if $ac_preproc_ok; then :
5076  break
5077fi
5078
5079    done
5080    ac_cv_prog_CPP=$CPP
5081
5082fi
5083  CPP=$ac_cv_prog_CPP
5084else
5085  ac_cv_prog_CPP=$CPP
5086fi
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5088$as_echo "$CPP" >&6; }
5089ac_preproc_ok=false
5090for ac_c_preproc_warn_flag in '' yes
5091do
5092  # Use a header file that comes with gcc, so configuring glibc
5093  # with a fresh cross-compiler works.
5094  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5095  # <limits.h> exists even on freestanding compilers.
5096  # On the NeXT, cc -E runs the code through the compiler's parser,
5097  # not just through cpp. "Syntax error" is here to catch this case.
5098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099/* end confdefs.h.  */
5100#ifdef __STDC__
5101# include <limits.h>
5102#else
5103# include <assert.h>
5104#endif
5105		     Syntax error
5106_ACEOF
5107if ac_fn_c_try_cpp "$LINENO"; then :
5108
5109else
5110  # Broken: fails on valid input.
5111continue
5112fi
5113rm -f conftest.err conftest.i conftest.$ac_ext
5114
5115  # OK, works on sane cases.  Now check whether nonexistent headers
5116  # can be detected and how.
5117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118/* end confdefs.h.  */
5119#include <ac_nonexistent.h>
5120_ACEOF
5121if ac_fn_c_try_cpp "$LINENO"; then :
5122  # Broken: success on invalid input.
5123continue
5124else
5125  # Passes both tests.
5126ac_preproc_ok=:
5127break
5128fi
5129rm -f conftest.err conftest.i conftest.$ac_ext
5130
5131done
5132# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5133rm -f conftest.i conftest.err conftest.$ac_ext
5134if $ac_preproc_ok; then :
5135
5136else
5137  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5139as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5140See \`config.log' for more details" "$LINENO" 5; }
5141fi
5142
5143ac_ext=c
5144ac_cpp='$CPP $CPPFLAGS'
5145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5147ac_compiler_gnu=$ac_cv_c_compiler_gnu
5148
5149
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5151$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5152if ${ac_cv_path_GREP+:} false; then :
5153  $as_echo_n "(cached) " >&6
5154else
5155  if test -z "$GREP"; then
5156  ac_path_GREP_found=false
5157  # Loop through the user's path and test for each of PROGNAME-LIST
5158  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5160do
5161  IFS=$as_save_IFS
5162  test -z "$as_dir" && as_dir=.
5163    for ac_prog in grep ggrep; do
5164    for ac_exec_ext in '' $ac_executable_extensions; do
5165      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5166      as_fn_executable_p "$ac_path_GREP" || continue
5167# Check for GNU ac_path_GREP and select it if it is found.
5168  # Check for GNU $ac_path_GREP
5169case `"$ac_path_GREP" --version 2>&1` in
5170*GNU*)
5171  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5172*)
5173  ac_count=0
5174  $as_echo_n 0123456789 >"conftest.in"
5175  while :
5176  do
5177    cat "conftest.in" "conftest.in" >"conftest.tmp"
5178    mv "conftest.tmp" "conftest.in"
5179    cp "conftest.in" "conftest.nl"
5180    $as_echo 'GREP' >> "conftest.nl"
5181    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5182    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5183    as_fn_arith $ac_count + 1 && ac_count=$as_val
5184    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5185      # Best one so far, save it but keep looking for a better one
5186      ac_cv_path_GREP="$ac_path_GREP"
5187      ac_path_GREP_max=$ac_count
5188    fi
5189    # 10*(2^10) chars as input seems more than enough
5190    test $ac_count -gt 10 && break
5191  done
5192  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5193esac
5194
5195      $ac_path_GREP_found && break 3
5196    done
5197  done
5198  done
5199IFS=$as_save_IFS
5200  if test -z "$ac_cv_path_GREP"; then
5201    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5202  fi
5203else
5204  ac_cv_path_GREP=$GREP
5205fi
5206
5207fi
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5209$as_echo "$ac_cv_path_GREP" >&6; }
5210 GREP="$ac_cv_path_GREP"
5211
5212
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5214$as_echo_n "checking for egrep... " >&6; }
5215if ${ac_cv_path_EGREP+:} false; then :
5216  $as_echo_n "(cached) " >&6
5217else
5218  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5219   then ac_cv_path_EGREP="$GREP -E"
5220   else
5221     if test -z "$EGREP"; then
5222  ac_path_EGREP_found=false
5223  # Loop through the user's path and test for each of PROGNAME-LIST
5224  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5226do
5227  IFS=$as_save_IFS
5228  test -z "$as_dir" && as_dir=.
5229    for ac_prog in egrep; do
5230    for ac_exec_ext in '' $ac_executable_extensions; do
5231      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5232      as_fn_executable_p "$ac_path_EGREP" || continue
5233# Check for GNU ac_path_EGREP and select it if it is found.
5234  # Check for GNU $ac_path_EGREP
5235case `"$ac_path_EGREP" --version 2>&1` in
5236*GNU*)
5237  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5238*)
5239  ac_count=0
5240  $as_echo_n 0123456789 >"conftest.in"
5241  while :
5242  do
5243    cat "conftest.in" "conftest.in" >"conftest.tmp"
5244    mv "conftest.tmp" "conftest.in"
5245    cp "conftest.in" "conftest.nl"
5246    $as_echo 'EGREP' >> "conftest.nl"
5247    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5248    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5249    as_fn_arith $ac_count + 1 && ac_count=$as_val
5250    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5251      # Best one so far, save it but keep looking for a better one
5252      ac_cv_path_EGREP="$ac_path_EGREP"
5253      ac_path_EGREP_max=$ac_count
5254    fi
5255    # 10*(2^10) chars as input seems more than enough
5256    test $ac_count -gt 10 && break
5257  done
5258  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5259esac
5260
5261      $ac_path_EGREP_found && break 3
5262    done
5263  done
5264  done
5265IFS=$as_save_IFS
5266  if test -z "$ac_cv_path_EGREP"; then
5267    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5268  fi
5269else
5270  ac_cv_path_EGREP=$EGREP
5271fi
5272
5273   fi
5274fi
5275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5276$as_echo "$ac_cv_path_EGREP" >&6; }
5277 EGREP="$ac_cv_path_EGREP"
5278
5279
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5281$as_echo_n "checking for ANSI C header files... " >&6; }
5282if ${ac_cv_header_stdc+:} false; then :
5283  $as_echo_n "(cached) " >&6
5284else
5285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286/* end confdefs.h.  */
5287#include <stdlib.h>
5288#include <stdarg.h>
5289#include <string.h>
5290#include <float.h>
5291
5292int
5293main ()
5294{
5295
5296  ;
5297  return 0;
5298}
5299_ACEOF
5300if ac_fn_c_try_compile "$LINENO"; then :
5301  ac_cv_header_stdc=yes
5302else
5303  ac_cv_header_stdc=no
5304fi
5305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306
5307if test $ac_cv_header_stdc = yes; then
5308  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310/* end confdefs.h.  */
5311#include <string.h>
5312
5313_ACEOF
5314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5315  $EGREP "memchr" >/dev/null 2>&1; then :
5316
5317else
5318  ac_cv_header_stdc=no
5319fi
5320rm -f conftest*
5321
5322fi
5323
5324if test $ac_cv_header_stdc = yes; then
5325  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327/* end confdefs.h.  */
5328#include <stdlib.h>
5329
5330_ACEOF
5331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5332  $EGREP "free" >/dev/null 2>&1; then :
5333
5334else
5335  ac_cv_header_stdc=no
5336fi
5337rm -f conftest*
5338
5339fi
5340
5341if test $ac_cv_header_stdc = yes; then
5342  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5343  if test "$cross_compiling" = yes; then :
5344  :
5345else
5346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347/* end confdefs.h.  */
5348#include <ctype.h>
5349#include <stdlib.h>
5350#if ((' ' & 0x0FF) == 0x020)
5351# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5352# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5353#else
5354# define ISLOWER(c) \
5355		   (('a' <= (c) && (c) <= 'i') \
5356		     || ('j' <= (c) && (c) <= 'r') \
5357		     || ('s' <= (c) && (c) <= 'z'))
5358# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5359#endif
5360
5361#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5362int
5363main ()
5364{
5365  int i;
5366  for (i = 0; i < 256; i++)
5367    if (XOR (islower (i), ISLOWER (i))
5368	|| toupper (i) != TOUPPER (i))
5369      return 2;
5370  return 0;
5371}
5372_ACEOF
5373if ac_fn_c_try_run "$LINENO"; then :
5374
5375else
5376  ac_cv_header_stdc=no
5377fi
5378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5379  conftest.$ac_objext conftest.beam conftest.$ac_ext
5380fi
5381
5382fi
5383fi
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5385$as_echo "$ac_cv_header_stdc" >&6; }
5386if test $ac_cv_header_stdc = yes; then
5387
5388$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5389
5390fi
5391
5392# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5393for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5394		  inttypes.h stdint.h unistd.h
5395do :
5396  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5397ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5398"
5399if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5400  cat >>confdefs.h <<_ACEOF
5401#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5402_ACEOF
5403
5404fi
5405
5406done
5407
5408
5409
5410
5411
5412  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5413if test "x$ac_cv_header_minix_config_h" = xyes; then :
5414  MINIX=yes
5415else
5416  MINIX=
5417fi
5418
5419
5420  if test "$MINIX" = yes; then
5421
5422$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5423
5424
5425$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5426
5427
5428$as_echo "#define _MINIX 1" >>confdefs.h
5429
5430  fi
5431
5432        case "$host_os" in
5433    hpux*)
5434
5435$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5436
5437      ;;
5438  esac
5439
5440
5441  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5442$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5443if ${ac_cv_safe_to_define___extensions__+:} false; then :
5444  $as_echo_n "(cached) " >&6
5445else
5446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447/* end confdefs.h.  */
5448
5449#         define __EXTENSIONS__ 1
5450          $ac_includes_default
5451int
5452main ()
5453{
5454
5455  ;
5456  return 0;
5457}
5458_ACEOF
5459if ac_fn_c_try_compile "$LINENO"; then :
5460  ac_cv_safe_to_define___extensions__=yes
5461else
5462  ac_cv_safe_to_define___extensions__=no
5463fi
5464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465fi
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5467$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5468  test $ac_cv_safe_to_define___extensions__ = yes &&
5469    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5470
5471  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5472
5473  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5474
5475  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5476
5477  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5478
5479
5480
5481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5482$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5483if ${ac_cv_prog_cc_c89+:} false; then :
5484  $as_echo_n "(cached) " >&6
5485else
5486  ac_cv_prog_cc_c89=no
5487ac_save_CC=$CC
5488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489/* end confdefs.h.  */
5490#include <stdarg.h>
5491#include <stdio.h>
5492struct stat;
5493/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5494struct buf { int x; };
5495FILE * (*rcsopen) (struct buf *, struct stat *, int);
5496static char *e (p, i)
5497     char **p;
5498     int i;
5499{
5500  return p[i];
5501}
5502static char *f (char * (*g) (char **, int), char **p, ...)
5503{
5504  char *s;
5505  va_list v;
5506  va_start (v,p);
5507  s = g (p, va_arg (v,int));
5508  va_end (v);
5509  return s;
5510}
5511
5512/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5513   function prototypes and stuff, but not '\xHH' hex character constants.
5514   These don't provoke an error unfortunately, instead are silently treated
5515   as 'x'.  The following induces an error, until -std is added to get
5516   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5517   array size at least.  It's necessary to write '\x00'==0 to get something
5518   that's true only with -std.  */
5519int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5520
5521/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5522   inside strings and character constants.  */
5523#define FOO(x) 'x'
5524int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5525
5526int test (int i, double x);
5527struct s1 {int (*f) (int a);};
5528struct s2 {int (*f) (double a);};
5529int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5530int argc;
5531char **argv;
5532int
5533main ()
5534{
5535return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5536  ;
5537  return 0;
5538}
5539_ACEOF
5540for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5541	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5542do
5543  CC="$ac_save_CC $ac_arg"
5544  if ac_fn_c_try_compile "$LINENO"; then :
5545  ac_cv_prog_cc_c89=$ac_arg
5546fi
5547rm -f core conftest.err conftest.$ac_objext
5548  test "x$ac_cv_prog_cc_c89" != "xno" && break
5549done
5550rm -f conftest.$ac_ext
5551CC=$ac_save_CC
5552
5553fi
5554# AC_CACHE_VAL
5555case "x$ac_cv_prog_cc_c89" in
5556  x)
5557    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5558$as_echo "none needed" >&6; } ;;
5559  xno)
5560    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5561$as_echo "unsupported" >&6; } ;;
5562  *)
5563    CC="$CC $ac_cv_prog_cc_c89"
5564    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5565$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5566esac
5567if test "x$ac_cv_prog_cc_c89" != xno; then :
5568
5569fi
5570
5571
5572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5573$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5574if ${ac_cv_prog_cc_c99+:} false; then :
5575  $as_echo_n "(cached) " >&6
5576else
5577  ac_cv_prog_cc_c99=no
5578ac_save_CC=$CC
5579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580/* end confdefs.h.  */
5581#include <stdarg.h>
5582#include <stdbool.h>
5583#include <stdlib.h>
5584#include <wchar.h>
5585#include <stdio.h>
5586
5587// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5588#define debug(...) fprintf (stderr, __VA_ARGS__)
5589#define showlist(...) puts (#__VA_ARGS__)
5590#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5591static void
5592test_varargs_macros (void)
5593{
5594  int x = 1234;
5595  int y = 5678;
5596  debug ("Flag");
5597  debug ("X = %d\n", x);
5598  showlist (The first, second, and third items.);
5599  report (x>y, "x is %d but y is %d", x, y);
5600}
5601
5602// Check long long types.
5603#define BIG64 18446744073709551615ull
5604#define BIG32 4294967295ul
5605#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5606#if !BIG_OK
5607  your preprocessor is broken;
5608#endif
5609#if BIG_OK
5610#else
5611  your preprocessor is broken;
5612#endif
5613static long long int bignum = -9223372036854775807LL;
5614static unsigned long long int ubignum = BIG64;
5615
5616struct incomplete_array
5617{
5618  int datasize;
5619  double data[];
5620};
5621
5622struct named_init {
5623  int number;
5624  const wchar_t *name;
5625  double average;
5626};
5627
5628typedef const char *ccp;
5629
5630static inline int
5631test_restrict (ccp restrict text)
5632{
5633  // See if C++-style comments work.
5634  // Iterate through items via the restricted pointer.
5635  // Also check for declarations in for loops.
5636  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5637    continue;
5638  return 0;
5639}
5640
5641// Check varargs and va_copy.
5642static void
5643test_varargs (const char *format, ...)
5644{
5645  va_list args;
5646  va_start (args, format);
5647  va_list args_copy;
5648  va_copy (args_copy, args);
5649
5650  const char *str;
5651  int number;
5652  float fnumber;
5653
5654  while (*format)
5655    {
5656      switch (*format++)
5657	{
5658	case 's': // string
5659	  str = va_arg (args_copy, const char *);
5660	  break;
5661	case 'd': // int
5662	  number = va_arg (args_copy, int);
5663	  break;
5664	case 'f': // float
5665	  fnumber = va_arg (args_copy, double);
5666	  break;
5667	default:
5668	  break;
5669	}
5670    }
5671  va_end (args_copy);
5672  va_end (args);
5673}
5674
5675int
5676main ()
5677{
5678
5679  // Check bool.
5680  _Bool success = false;
5681
5682  // Check restrict.
5683  if (test_restrict ("String literal") == 0)
5684    success = true;
5685  char *restrict newvar = "Another string";
5686
5687  // Check varargs.
5688  test_varargs ("s, d' f .", "string", 65, 34.234);
5689  test_varargs_macros ();
5690
5691  // Check flexible array members.
5692  struct incomplete_array *ia =
5693    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5694  ia->datasize = 10;
5695  for (int i = 0; i < ia->datasize; ++i)
5696    ia->data[i] = i * 1.234;
5697
5698  // Check named initializers.
5699  struct named_init ni = {
5700    .number = 34,
5701    .name = L"Test wide string",
5702    .average = 543.34343,
5703  };
5704
5705  ni.number = 58;
5706
5707  int dynamic_array[ni.number];
5708  dynamic_array[ni.number - 1] = 543;
5709
5710  // work around unused variable warnings
5711  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5712	  || dynamic_array[ni.number - 1] != 543);
5713
5714  ;
5715  return 0;
5716}
5717_ACEOF
5718for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5719do
5720  CC="$ac_save_CC $ac_arg"
5721  if ac_fn_c_try_compile "$LINENO"; then :
5722  ac_cv_prog_cc_c99=$ac_arg
5723fi
5724rm -f core conftest.err conftest.$ac_objext
5725  test "x$ac_cv_prog_cc_c99" != "xno" && break
5726done
5727rm -f conftest.$ac_ext
5728CC=$ac_save_CC
5729
5730fi
5731# AC_CACHE_VAL
5732case "x$ac_cv_prog_cc_c99" in
5733  x)
5734    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5735$as_echo "none needed" >&6; } ;;
5736  xno)
5737    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5738$as_echo "unsupported" >&6; } ;;
5739  *)
5740    CC="$CC $ac_cv_prog_cc_c99"
5741    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5742$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5743esac
5744if test "x$ac_cv_prog_cc_c99" != xno; then :
5745
5746fi
5747
5748
5749
5750
5751
5752
5753ac_ext=c
5754ac_cpp='$CPP $CPPFLAGS'
5755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5757ac_compiler_gnu=$ac_cv_c_compiler_gnu
5758if test -n "$ac_tool_prefix"; then
5759  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5760set dummy ${ac_tool_prefix}gcc; ac_word=$2
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762$as_echo_n "checking for $ac_word... " >&6; }
5763if ${ac_cv_prog_CC+:} false; then :
5764  $as_echo_n "(cached) " >&6
5765else
5766  if test -n "$CC"; then
5767  ac_cv_prog_CC="$CC" # Let the user override the test.
5768else
5769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770for as_dir in $PATH
5771do
5772  IFS=$as_save_IFS
5773  test -z "$as_dir" && as_dir=.
5774    for ac_exec_ext in '' $ac_executable_extensions; do
5775  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778    break 2
5779  fi
5780done
5781  done
5782IFS=$as_save_IFS
5783
5784fi
5785fi
5786CC=$ac_cv_prog_CC
5787if test -n "$CC"; then
5788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5789$as_echo "$CC" >&6; }
5790else
5791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792$as_echo "no" >&6; }
5793fi
5794
5795
5796fi
5797if test -z "$ac_cv_prog_CC"; then
5798  ac_ct_CC=$CC
5799  # Extract the first word of "gcc", so it can be a program name with args.
5800set dummy gcc; ac_word=$2
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802$as_echo_n "checking for $ac_word... " >&6; }
5803if ${ac_cv_prog_ac_ct_CC+:} false; then :
5804  $as_echo_n "(cached) " >&6
5805else
5806  if test -n "$ac_ct_CC"; then
5807  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5808else
5809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810for as_dir in $PATH
5811do
5812  IFS=$as_save_IFS
5813  test -z "$as_dir" && as_dir=.
5814    for ac_exec_ext in '' $ac_executable_extensions; do
5815  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816    ac_cv_prog_ac_ct_CC="gcc"
5817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818    break 2
5819  fi
5820done
5821  done
5822IFS=$as_save_IFS
5823
5824fi
5825fi
5826ac_ct_CC=$ac_cv_prog_ac_ct_CC
5827if test -n "$ac_ct_CC"; then
5828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5829$as_echo "$ac_ct_CC" >&6; }
5830else
5831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832$as_echo "no" >&6; }
5833fi
5834
5835  if test "x$ac_ct_CC" = x; then
5836    CC=""
5837  else
5838    case $cross_compiling:$ac_tool_warned in
5839yes:)
5840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5842ac_tool_warned=yes ;;
5843esac
5844    CC=$ac_ct_CC
5845  fi
5846else
5847  CC="$ac_cv_prog_CC"
5848fi
5849
5850if test -z "$CC"; then
5851          if test -n "$ac_tool_prefix"; then
5852    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5853set dummy ${ac_tool_prefix}cc; ac_word=$2
5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5855$as_echo_n "checking for $ac_word... " >&6; }
5856if ${ac_cv_prog_CC+:} false; then :
5857  $as_echo_n "(cached) " >&6
5858else
5859  if test -n "$CC"; then
5860  ac_cv_prog_CC="$CC" # Let the user override the test.
5861else
5862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863for as_dir in $PATH
5864do
5865  IFS=$as_save_IFS
5866  test -z "$as_dir" && as_dir=.
5867    for ac_exec_ext in '' $ac_executable_extensions; do
5868  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5869    ac_cv_prog_CC="${ac_tool_prefix}cc"
5870    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5871    break 2
5872  fi
5873done
5874  done
5875IFS=$as_save_IFS
5876
5877fi
5878fi
5879CC=$ac_cv_prog_CC
5880if test -n "$CC"; then
5881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5882$as_echo "$CC" >&6; }
5883else
5884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885$as_echo "no" >&6; }
5886fi
5887
5888
5889  fi
5890fi
5891if test -z "$CC"; then
5892  # Extract the first word of "cc", so it can be a program name with args.
5893set dummy cc; ac_word=$2
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895$as_echo_n "checking for $ac_word... " >&6; }
5896if ${ac_cv_prog_CC+:} false; then :
5897  $as_echo_n "(cached) " >&6
5898else
5899  if test -n "$CC"; then
5900  ac_cv_prog_CC="$CC" # Let the user override the test.
5901else
5902  ac_prog_rejected=no
5903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904for as_dir in $PATH
5905do
5906  IFS=$as_save_IFS
5907  test -z "$as_dir" && as_dir=.
5908    for ac_exec_ext in '' $ac_executable_extensions; do
5909  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5911       ac_prog_rejected=yes
5912       continue
5913     fi
5914    ac_cv_prog_CC="cc"
5915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916    break 2
5917  fi
5918done
5919  done
5920IFS=$as_save_IFS
5921
5922if test $ac_prog_rejected = yes; then
5923  # We found a bogon in the path, so make sure we never use it.
5924  set dummy $ac_cv_prog_CC
5925  shift
5926  if test $# != 0; then
5927    # We chose a different compiler from the bogus one.
5928    # However, it has the same basename, so the bogon will be chosen
5929    # first if we set CC to just the basename; use the full file name.
5930    shift
5931    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5932  fi
5933fi
5934fi
5935fi
5936CC=$ac_cv_prog_CC
5937if test -n "$CC"; then
5938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5939$as_echo "$CC" >&6; }
5940else
5941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942$as_echo "no" >&6; }
5943fi
5944
5945
5946fi
5947if test -z "$CC"; then
5948  if test -n "$ac_tool_prefix"; then
5949  for ac_prog in cl.exe
5950  do
5951    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5952set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5954$as_echo_n "checking for $ac_word... " >&6; }
5955if ${ac_cv_prog_CC+:} false; then :
5956  $as_echo_n "(cached) " >&6
5957else
5958  if test -n "$CC"; then
5959  ac_cv_prog_CC="$CC" # Let the user override the test.
5960else
5961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962for as_dir in $PATH
5963do
5964  IFS=$as_save_IFS
5965  test -z "$as_dir" && as_dir=.
5966    for ac_exec_ext in '' $ac_executable_extensions; do
5967  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5968    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5970    break 2
5971  fi
5972done
5973  done
5974IFS=$as_save_IFS
5975
5976fi
5977fi
5978CC=$ac_cv_prog_CC
5979if test -n "$CC"; then
5980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5981$as_echo "$CC" >&6; }
5982else
5983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984$as_echo "no" >&6; }
5985fi
5986
5987
5988    test -n "$CC" && break
5989  done
5990fi
5991if test -z "$CC"; then
5992  ac_ct_CC=$CC
5993  for ac_prog in cl.exe
5994do
5995  # Extract the first word of "$ac_prog", so it can be a program name with args.
5996set dummy $ac_prog; ac_word=$2
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5998$as_echo_n "checking for $ac_word... " >&6; }
5999if ${ac_cv_prog_ac_ct_CC+:} false; then :
6000  $as_echo_n "(cached) " >&6
6001else
6002  if test -n "$ac_ct_CC"; then
6003  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6004else
6005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006for as_dir in $PATH
6007do
6008  IFS=$as_save_IFS
6009  test -z "$as_dir" && as_dir=.
6010    for ac_exec_ext in '' $ac_executable_extensions; do
6011  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6012    ac_cv_prog_ac_ct_CC="$ac_prog"
6013    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6014    break 2
6015  fi
6016done
6017  done
6018IFS=$as_save_IFS
6019
6020fi
6021fi
6022ac_ct_CC=$ac_cv_prog_ac_ct_CC
6023if test -n "$ac_ct_CC"; then
6024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6025$as_echo "$ac_ct_CC" >&6; }
6026else
6027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028$as_echo "no" >&6; }
6029fi
6030
6031
6032  test -n "$ac_ct_CC" && break
6033done
6034
6035  if test "x$ac_ct_CC" = x; then
6036    CC=""
6037  else
6038    case $cross_compiling:$ac_tool_warned in
6039yes:)
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6042ac_tool_warned=yes ;;
6043esac
6044    CC=$ac_ct_CC
6045  fi
6046fi
6047
6048fi
6049
6050
6051test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6053as_fn_error $? "no acceptable C compiler found in \$PATH
6054See \`config.log' for more details" "$LINENO" 5; }
6055
6056# Provide some information about the compiler.
6057$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6058set X $ac_compile
6059ac_compiler=$2
6060for ac_option in --version -v -V -qversion; do
6061  { { ac_try="$ac_compiler $ac_option >&5"
6062case "(($ac_try" in
6063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064  *) ac_try_echo=$ac_try;;
6065esac
6066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6067$as_echo "$ac_try_echo"; } >&5
6068  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6069  ac_status=$?
6070  if test -s conftest.err; then
6071    sed '10a\
6072... rest of stderr output deleted ...
6073         10q' conftest.err >conftest.er1
6074    cat conftest.er1 >&5
6075  fi
6076  rm -f conftest.er1 conftest.err
6077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6078  test $ac_status = 0; }
6079done
6080
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6082$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6083if ${ac_cv_c_compiler_gnu+:} false; then :
6084  $as_echo_n "(cached) " >&6
6085else
6086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087/* end confdefs.h.  */
6088
6089int
6090main ()
6091{
6092#ifndef __GNUC__
6093       choke me
6094#endif
6095
6096  ;
6097  return 0;
6098}
6099_ACEOF
6100if ac_fn_c_try_compile "$LINENO"; then :
6101  ac_compiler_gnu=yes
6102else
6103  ac_compiler_gnu=no
6104fi
6105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106ac_cv_c_compiler_gnu=$ac_compiler_gnu
6107
6108fi
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6110$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6111if test $ac_compiler_gnu = yes; then
6112  GCC=yes
6113else
6114  GCC=
6115fi
6116ac_test_CFLAGS=${CFLAGS+set}
6117ac_save_CFLAGS=$CFLAGS
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6119$as_echo_n "checking whether $CC accepts -g... " >&6; }
6120if ${ac_cv_prog_cc_g+:} false; then :
6121  $as_echo_n "(cached) " >&6
6122else
6123  ac_save_c_werror_flag=$ac_c_werror_flag
6124   ac_c_werror_flag=yes
6125   ac_cv_prog_cc_g=no
6126   CFLAGS="-g"
6127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128/* end confdefs.h.  */
6129
6130int
6131main ()
6132{
6133
6134  ;
6135  return 0;
6136}
6137_ACEOF
6138if ac_fn_c_try_compile "$LINENO"; then :
6139  ac_cv_prog_cc_g=yes
6140else
6141  CFLAGS=""
6142      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143/* end confdefs.h.  */
6144
6145int
6146main ()
6147{
6148
6149  ;
6150  return 0;
6151}
6152_ACEOF
6153if ac_fn_c_try_compile "$LINENO"; then :
6154
6155else
6156  ac_c_werror_flag=$ac_save_c_werror_flag
6157	 CFLAGS="-g"
6158	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159/* end confdefs.h.  */
6160
6161int
6162main ()
6163{
6164
6165  ;
6166  return 0;
6167}
6168_ACEOF
6169if ac_fn_c_try_compile "$LINENO"; then :
6170  ac_cv_prog_cc_g=yes
6171fi
6172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173fi
6174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175fi
6176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6177   ac_c_werror_flag=$ac_save_c_werror_flag
6178fi
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6180$as_echo "$ac_cv_prog_cc_g" >&6; }
6181if test "$ac_test_CFLAGS" = set; then
6182  CFLAGS=$ac_save_CFLAGS
6183elif test $ac_cv_prog_cc_g = yes; then
6184  if test "$GCC" = yes; then
6185    CFLAGS="-g -O2"
6186  else
6187    CFLAGS="-g"
6188  fi
6189else
6190  if test "$GCC" = yes; then
6191    CFLAGS="-O2"
6192  else
6193    CFLAGS=
6194  fi
6195fi
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6197$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6198if ${ac_cv_prog_cc_c89+:} false; then :
6199  $as_echo_n "(cached) " >&6
6200else
6201  ac_cv_prog_cc_c89=no
6202ac_save_CC=$CC
6203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204/* end confdefs.h.  */
6205#include <stdarg.h>
6206#include <stdio.h>
6207struct stat;
6208/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6209struct buf { int x; };
6210FILE * (*rcsopen) (struct buf *, struct stat *, int);
6211static char *e (p, i)
6212     char **p;
6213     int i;
6214{
6215  return p[i];
6216}
6217static char *f (char * (*g) (char **, int), char **p, ...)
6218{
6219  char *s;
6220  va_list v;
6221  va_start (v,p);
6222  s = g (p, va_arg (v,int));
6223  va_end (v);
6224  return s;
6225}
6226
6227/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6228   function prototypes and stuff, but not '\xHH' hex character constants.
6229   These don't provoke an error unfortunately, instead are silently treated
6230   as 'x'.  The following induces an error, until -std is added to get
6231   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6232   array size at least.  It's necessary to write '\x00'==0 to get something
6233   that's true only with -std.  */
6234int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6235
6236/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6237   inside strings and character constants.  */
6238#define FOO(x) 'x'
6239int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6240
6241int test (int i, double x);
6242struct s1 {int (*f) (int a);};
6243struct s2 {int (*f) (double a);};
6244int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6245int argc;
6246char **argv;
6247int
6248main ()
6249{
6250return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6251  ;
6252  return 0;
6253}
6254_ACEOF
6255for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6256	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6257do
6258  CC="$ac_save_CC $ac_arg"
6259  if ac_fn_c_try_compile "$LINENO"; then :
6260  ac_cv_prog_cc_c89=$ac_arg
6261fi
6262rm -f core conftest.err conftest.$ac_objext
6263  test "x$ac_cv_prog_cc_c89" != "xno" && break
6264done
6265rm -f conftest.$ac_ext
6266CC=$ac_save_CC
6267
6268fi
6269# AC_CACHE_VAL
6270case "x$ac_cv_prog_cc_c89" in
6271  x)
6272    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6273$as_echo "none needed" >&6; } ;;
6274  xno)
6275    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6276$as_echo "unsupported" >&6; } ;;
6277  *)
6278    CC="$CC $ac_cv_prog_cc_c89"
6279    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6280$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6281esac
6282if test "x$ac_cv_prog_cc_c89" != xno; then :
6283
6284fi
6285
6286ac_ext=c
6287ac_cpp='$CPP $CPPFLAGS'
6288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6290ac_compiler_gnu=$ac_cv_c_compiler_gnu
6291
6292ac_ext=c
6293ac_cpp='$CPP $CPPFLAGS'
6294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6296ac_compiler_gnu=$ac_cv_c_compiler_gnu
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6298$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6299if ${am_cv_prog_cc_c_o+:} false; then :
6300  $as_echo_n "(cached) " >&6
6301else
6302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303/* end confdefs.h.  */
6304
6305int
6306main ()
6307{
6308
6309  ;
6310  return 0;
6311}
6312_ACEOF
6313  # Make sure it works both with $CC and with simple cc.
6314  # Following AC_PROG_CC_C_O, we do the test twice because some
6315  # compilers refuse to overwrite an existing .o file with -o,
6316  # though they will create one.
6317  am_cv_prog_cc_c_o=yes
6318  for am_i in 1 2; do
6319    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6320   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6321   ac_status=$?
6322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323   (exit $ac_status); } \
6324         && test -f conftest2.$ac_objext; then
6325      : OK
6326    else
6327      am_cv_prog_cc_c_o=no
6328      break
6329    fi
6330  done
6331  rm -f core conftest*
6332  unset am_i
6333fi
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6335$as_echo "$am_cv_prog_cc_c_o" >&6; }
6336if test "$am_cv_prog_cc_c_o" != yes; then
6337   # Losing compiler, so override with the script.
6338   # FIXME: It is wrong to rewrite CC.
6339   # But if we don't then we get into trouble of one sort or another.
6340   # A longer-term fix would be to have automake use am__CC in this case,
6341   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6342   CC="$am_aux_dir/compile $CC"
6343fi
6344ac_ext=c
6345ac_cpp='$CPP $CPPFLAGS'
6346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6348ac_compiler_gnu=$ac_cv_c_compiler_gnu
6349
6350
6351depcc="$CC"   am_compiler_list=
6352
6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6354$as_echo_n "checking dependency style of $depcc... " >&6; }
6355if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6356  $as_echo_n "(cached) " >&6
6357else
6358  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6359  # We make a subdir and do the tests there.  Otherwise we can end up
6360  # making bogus files that we don't know about and never remove.  For
6361  # instance it was reported that on HP-UX the gcc test will end up
6362  # making a dummy file named 'D' -- because '-MD' means "put the output
6363  # in D".
6364  rm -rf conftest.dir
6365  mkdir conftest.dir
6366  # Copy depcomp to subdir because otherwise we won't find it if we're
6367  # using a relative directory.
6368  cp "$am_depcomp" conftest.dir
6369  cd conftest.dir
6370  # We will build objects and dependencies in a subdirectory because
6371  # it helps to detect inapplicable dependency modes.  For instance
6372  # both Tru64's cc and ICC support -MD to output dependencies as a
6373  # side effect of compilation, but ICC will put the dependencies in
6374  # the current directory while Tru64 will put them in the object
6375  # directory.
6376  mkdir sub
6377
6378  am_cv_CC_dependencies_compiler_type=none
6379  if test "$am_compiler_list" = ""; then
6380     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6381  fi
6382  am__universal=false
6383  case " $depcc " in #(
6384     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6385     esac
6386
6387  for depmode in $am_compiler_list; do
6388    # Setup a source with many dependencies, because some compilers
6389    # like to wrap large dependency lists on column 80 (with \), and
6390    # we should not choose a depcomp mode which is confused by this.
6391    #
6392    # We need to recreate these files for each test, as the compiler may
6393    # overwrite some of them when testing with obscure command lines.
6394    # This happens at least with the AIX C compiler.
6395    : > sub/conftest.c
6396    for i in 1 2 3 4 5 6; do
6397      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6398      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6399      # Solaris 10 /bin/sh.
6400      echo '/* dummy */' > sub/conftst$i.h
6401    done
6402    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6403
6404    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6405    # mode.  It turns out that the SunPro C++ compiler does not properly
6406    # handle '-M -o', and we need to detect this.  Also, some Intel
6407    # versions had trouble with output in subdirs.
6408    am__obj=sub/conftest.${OBJEXT-o}
6409    am__minus_obj="-o $am__obj"
6410    case $depmode in
6411    gcc)
6412      # This depmode causes a compiler race in universal mode.
6413      test "$am__universal" = false || continue
6414      ;;
6415    nosideeffect)
6416      # After this tag, mechanisms are not by side-effect, so they'll
6417      # only be used when explicitly requested.
6418      if test "x$enable_dependency_tracking" = xyes; then
6419	continue
6420      else
6421	break
6422      fi
6423      ;;
6424    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6425      # This compiler won't grok '-c -o', but also, the minuso test has
6426      # not run yet.  These depmodes are late enough in the game, and
6427      # so weak that their functioning should not be impacted.
6428      am__obj=conftest.${OBJEXT-o}
6429      am__minus_obj=
6430      ;;
6431    none) break ;;
6432    esac
6433    if depmode=$depmode \
6434       source=sub/conftest.c object=$am__obj \
6435       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6436       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6437         >/dev/null 2>conftest.err &&
6438       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6439       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6440       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6441       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6442      # icc doesn't choke on unknown options, it will just issue warnings
6443      # or remarks (even with -Werror).  So we grep stderr for any message
6444      # that says an option was ignored or not supported.
6445      # When given -MP, icc 7.0 and 7.1 complain thusly:
6446      #   icc: Command line warning: ignoring option '-M'; no argument required
6447      # The diagnosis changed in icc 8.0:
6448      #   icc: Command line remark: option '-MP' not supported
6449      if (grep 'ignoring option' conftest.err ||
6450          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6451        am_cv_CC_dependencies_compiler_type=$depmode
6452        break
6453      fi
6454    fi
6455  done
6456
6457  cd ..
6458  rm -rf conftest.dir
6459else
6460  am_cv_CC_dependencies_compiler_type=none
6461fi
6462
6463fi
6464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6465$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6466CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6467
6468 if
6469  test "x$enable_dependency_tracking" != xno \
6470  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6471  am__fastdepCC_TRUE=
6472  am__fastdepCC_FALSE='#'
6473else
6474  am__fastdepCC_TRUE='#'
6475  am__fastdepCC_FALSE=
6476fi
6477
6478
6479# Ralf Wildenhues: With per-target flags we need CC_C_O
6480# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
6481
6482if test $ac_cv_c_compiler_gnu = yes; then
6483    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6484$as_echo_n "checking whether $CC needs -traditional... " >&6; }
6485if ${ac_cv_prog_gcc_traditional+:} false; then :
6486  $as_echo_n "(cached) " >&6
6487else
6488    ac_pattern="Autoconf.*'x'"
6489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490/* end confdefs.h.  */
6491#include <sgtty.h>
6492Autoconf TIOCGETP
6493_ACEOF
6494if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6495  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6496  ac_cv_prog_gcc_traditional=yes
6497else
6498  ac_cv_prog_gcc_traditional=no
6499fi
6500rm -f conftest*
6501
6502
6503  if test $ac_cv_prog_gcc_traditional = no; then
6504    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505/* end confdefs.h.  */
6506#include <termio.h>
6507Autoconf TCGETA
6508_ACEOF
6509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6510  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6511  ac_cv_prog_gcc_traditional=yes
6512fi
6513rm -f conftest*
6514
6515  fi
6516fi
6517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6518$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6519  if test $ac_cv_prog_gcc_traditional = yes; then
6520    CC="$CC -traditional"
6521  fi
6522fi
6523
6524
6525
6526
6527
6528CFLAGS_NTP=
6529CPPFLAGS_NTP=
6530LDADD_NTP=
6531LDFLAGS_NTP=
6532
6533
6534
6535
6536
6537case "$ac_cv_prog_cc_c89" in
6538 no)
6539    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6540		 version 4.2.5 and higher." >&5
6541$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6542		 version 4.2.5 and higher." >&2;}
6543    ;;
6544esac
6545
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
6547$as_echo_n "checking if $CC can handle #warning... " >&6; }
6548if ${ntp_cv_cpp_warning+:} false; then :
6549  $as_echo_n "(cached) " >&6
6550else
6551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552/* end confdefs.h.  */
6553
6554int
6555main ()
6556{
6557#warning foo
6558  ;
6559  return 0;
6560}
6561_ACEOF
6562if ac_fn_c_try_compile "$LINENO"; then :
6563  ntp_cv_cpp_warning=yes
6564else
6565  ntp_cv_cpp_warning=no
6566
6567fi
6568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569
6570fi
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
6572$as_echo "$ntp_cv_cpp_warning" >&6; }
6573case "$ntp_cv_cpp_warning" in
6574 no)
6575
6576$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
6577
6578esac
6579
6580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
6581$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
6582if ${ntp_cv_cc_attribute+:} false; then :
6583  $as_echo_n "(cached) " >&6
6584else
6585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586/* end confdefs.h.  */
6587
6588int
6589main ()
6590{
6591void foo(void) __attribute__((__noreturn__));
6592
6593  ;
6594  return 0;
6595}
6596_ACEOF
6597if ac_fn_c_try_compile "$LINENO"; then :
6598  ntp_cv_cc_attribute=yes
6599else
6600  ntp_cv_cc_attribute=no
6601
6602fi
6603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604
6605fi
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
6607$as_echo "$ntp_cv_cc_attribute" >&6; }
6608case "$ntp_cv_cc_attribute" in
6609 yes)
6610
6611$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
6612
6613esac
6614
6615
6616case "$GCC" in
6617 yes)
6618    SAVED_CFLAGS="$CFLAGS"
6619    CFLAGS="$CFLAGS -Wstrict-overflow"
6620    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
6621$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
6622if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
6623  $as_echo_n "(cached) " >&6
6624else
6625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626/* end confdefs.h.  */
6627
6628int
6629main ()
6630{
6631
6632  ;
6633  return 0;
6634}
6635_ACEOF
6636if ac_fn_c_try_compile "$LINENO"; then :
6637  ntp_cv_gcc_Wstrict_overflow=yes
6638else
6639  ntp_cv_gcc_Wstrict_overflow=no
6640
6641fi
6642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643
6644fi
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
6646$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
6647    #
6648    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
6649    # flag to CFLAGS.
6650    #
6651    CFLAGS="$SAVED_CFLAGS -Winit-self"
6652    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
6653$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
6654if ${ntp_cv_gcc_Winit_self+:} false; then :
6655  $as_echo_n "(cached) " >&6
6656else
6657
6658	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659/* end confdefs.h.  */
6660
6661int
6662main ()
6663{
6664
6665  ;
6666  return 0;
6667}
6668_ACEOF
6669if ac_fn_c_try_compile "$LINENO"; then :
6670  ntp_cv_gcc_Winit_self=yes
6671else
6672  ntp_cv_gcc_Winit_self=no
6673
6674fi
6675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6676
6677
6678fi
6679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
6680$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
6681    CFLAGS="$SAVED_CFLAGS"
6682    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
6683    #
6684    # $ntp_cv_gcc_Winit_self is tested later to add the
6685    # flag to CFLAGS_NTP.
6686    #
6687    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
6688$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
6689if ${ntp_cv_gc_sections_runs+:} false; then :
6690  $as_echo_n "(cached) " >&6
6691else
6692
6693	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
6694	    CFLAGS="$CFLAGS -Wl,--gc-sections"
6695	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696/* end confdefs.h.  */
6697
6698			#include <stdlib.h>
6699			#include <stdio.h>
6700
6701int
6702main ()
6703{
6704
6705			FILE *	fpC;
6706			char	buf[32];
6707			size_t	cch;
6708			int	read_success_once;
6709
6710			fpC = fopen("conftest.c", "r");
6711			if (NULL == fpC)
6712				exit(1);
6713			do {
6714				cch = fread(buf, sizeof(buf), 1, fpC);
6715				read_success_once |= (0 != cch);
6716			} while (0 != cch);
6717			if (!read_success_once)
6718				exit(2);
6719			if (!feof(fpC))
6720				exit(3);
6721			if (0 != fclose(fpC))
6722				exit(4);
6723
6724			exit(EXIT_SUCCESS);
6725
6726
6727  ;
6728  return 0;
6729}
6730_ACEOF
6731if ac_fn_c_try_link "$LINENO"; then :
6732
6733		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
6734			ntp_cv_gc_sections_runs=no
6735		    else
6736			ntp_cv_gc_sections_runs=no
6737			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
6738		    fi
6739
6740else
6741  ntp_cv_gc_sections_runs=no
6742
6743fi
6744rm -f core conftest.err conftest.$ac_objext \
6745    conftest$ac_exeext conftest.$ac_ext
6746	    CFLAGS="$origCFLAGS"
6747	    { origCFLAGS=; unset origCFLAGS;}
6748
6749
6750fi
6751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
6752$as_echo "$ntp_cv_gc_sections_runs" >&6; }
6753    case "$ntp_cv_gc_sections_runs" in
6754     yes)
6755	LDADD_LIBNTP="-Wl,--gc-sections"
6756	CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
6757	;;
6758     no)
6759	LDADD_LIBNTP=
6760	;;
6761    esac
6762    CFLAGS_NTP="$CFLAGS_NTP -Wall"
6763    CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
6764    CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
6765    # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
6766    # CFLAGS_NTP="$CFLAGS_NTP -Werror"
6767    # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
6768    # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
6769    CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
6770    CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
6771    CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
6772    # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
6773    # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
6774    case "$ntp_cv_gcc_Winit_self" in
6775     yes)
6776	CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
6777    esac
6778    case "$ntp_cv_gcc_Wstrict_overflow" in
6779     yes)
6780	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
6781    esac
6782    # -W[no-]strict-prototypes might be added by NTP_OPENSSL
6783esac
6784
6785
6786    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
6787$as_echo_n "checking additional compiler flags... " >&6; }
6788    # allow ntp_os_cflags to be preset to skip this stuff
6789    case "${ntp_os_cflags+set}" in
6790     set)
6791	;;
6792     *)
6793	ntp_os_cflags=
6794	case "$host_os" in
6795	 aix[1-3]*)
6796	    ;;
6797	 aix4.[0-2]*)
6798	    # turn on additional headers
6799	    ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
6800	    ;;
6801	 aix5.3*)
6802	    # avoid circular dependencies in yp headers, and more
6803	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
6804	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
6805	    ;;
6806	 aix*)
6807	    # XXX Only verified thru AIX6.
6808	    # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
6809	    # avoid circular dependencies in yp headers
6810	    # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
6811	    # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
6812	    # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
6813	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
6814	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
6815	    ;;
6816	 amigaos)
6817	    ntp_os_cflags="-DSYS_AMIGA"
6818	    ;;
6819	 darwin*|macosx*|rhapsody*)
6820	    ntp_os_cflags="-D_P1003_1B_VISIBLE"
6821	    ;;
6822	 hpux10.*)		# at least for hppa2.0-hp-hpux10.20
6823	    case "$GCC" in
6824	     yes)
6825		;;
6826	     *)
6827		# use Ansi compiler on HPUX, and some -Wp magic
6828		ntp_os_cflags="-Ae -Wp,-H18816"
6829		;;
6830	    esac
6831	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6832	    ;;
6833	 hpux*)
6834	    case "$GCC" in
6835	     yes)
6836		;;
6837	     *)
6838		# use Ansi compiler on HPUX
6839		ntp_os_cflags="-Ae"
6840	    esac
6841	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6842	    ;;
6843	 irix6*)
6844	    case "$CC" in
6845	     cc)
6846		# do not use 64-bit compiler
6847		ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
6848	    esac
6849	    ;;
6850	 nextstep3)
6851	    ntp_os_cflags="-posix"
6852	    ;;
6853	 solaris1*|solaris2.[0-5]|solaris2.5.*)
6854	    ;;
6855	 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
6856	    ;;
6857	 solaris2*|sunos5*)
6858	    # turn on 64-bit file offset interface
6859	    ntp_os_cflags="-D_LARGEFILE64_SOURCE"
6860	    ;;
6861	 vxworks*)
6862	    case "$build" in
6863	     $host)
6864		;;
6865	     *)
6866		# Quick and dirty sanity check
6867		case "$VX_KERNEL" in
6868		 '')
6869		    as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
6870		esac
6871		ntp_os_cflags="-DSYS_VXWORKS"
6872	    esac
6873	    ;;
6874	esac
6875    esac
6876    case "$ntp_os_cflags" in
6877     '')
6878	ntp_os_cflags_msg="none needed"
6879	;;
6880     *)
6881	ntp_os_cflags_msg="$ntp_os_cflags"
6882    esac
6883    CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
6884    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
6885$as_echo "$ntp_os_cflags_msg" >&6; }
6886    { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
6887    ###
6888    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
6889$as_echo_n "checking additional linker flags... " >&6; }
6890    # HMS: The following might still need tweaking
6891    # allow ntp_os_ldflags to be preset to skip this stuff
6892    case "${ntp_os_ldflags+set}" in
6893     set)
6894	;;
6895     *)
6896	ntp_os_ldflags=
6897	case "$host_os" in
6898	 hpux*)
6899	    case "$GCC" in
6900	     yes)
6901		ntp_os_ldflags="-Wl,+allowdups"
6902		;;
6903	    esac
6904	    ;;
6905	esac
6906	;;
6907    esac
6908    case "$ntp_os_ldflags" in
6909     '')
6910	ntp_os_ldflags_msg="none needed"
6911	;;
6912     *)
6913	ntp_os_ldflags_msg="$ntp_os_ldflags"
6914    esac
6915    LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
6916    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
6917$as_echo "$ntp_os_ldflags_msg" >&6; }
6918    { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
6919
6920
6921
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6923$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6924if ${ac_cv_c_bigendian+:} false; then :
6925  $as_echo_n "(cached) " >&6
6926else
6927  ac_cv_c_bigendian=unknown
6928    # See if we're dealing with a universal compiler.
6929    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930/* end confdefs.h.  */
6931#ifndef __APPLE_CC__
6932	       not a universal capable compiler
6933	     #endif
6934	     typedef int dummy;
6935
6936_ACEOF
6937if ac_fn_c_try_compile "$LINENO"; then :
6938
6939	# Check for potential -arch flags.  It is not universal unless
6940	# there are at least two -arch flags with different values.
6941	ac_arch=
6942	ac_prev=
6943	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6944	 if test -n "$ac_prev"; then
6945	   case $ac_word in
6946	     i?86 | x86_64 | ppc | ppc64)
6947	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6948		 ac_arch=$ac_word
6949	       else
6950		 ac_cv_c_bigendian=universal
6951		 break
6952	       fi
6953	       ;;
6954	   esac
6955	   ac_prev=
6956	 elif test "x$ac_word" = "x-arch"; then
6957	   ac_prev=arch
6958	 fi
6959       done
6960fi
6961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6962    if test $ac_cv_c_bigendian = unknown; then
6963      # See if sys/param.h defines the BYTE_ORDER macro.
6964      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965/* end confdefs.h.  */
6966#include <sys/types.h>
6967	     #include <sys/param.h>
6968
6969int
6970main ()
6971{
6972#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6973		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6974		     && LITTLE_ENDIAN)
6975	      bogus endian macros
6976	     #endif
6977
6978  ;
6979  return 0;
6980}
6981_ACEOF
6982if ac_fn_c_try_compile "$LINENO"; then :
6983  # It does; now see whether it defined to BIG_ENDIAN or not.
6984	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985/* end confdefs.h.  */
6986#include <sys/types.h>
6987		#include <sys/param.h>
6988
6989int
6990main ()
6991{
6992#if BYTE_ORDER != BIG_ENDIAN
6993		 not big endian
6994		#endif
6995
6996  ;
6997  return 0;
6998}
6999_ACEOF
7000if ac_fn_c_try_compile "$LINENO"; then :
7001  ac_cv_c_bigendian=yes
7002else
7003  ac_cv_c_bigendian=no
7004fi
7005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006fi
7007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7008    fi
7009    if test $ac_cv_c_bigendian = unknown; then
7010      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7011      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012/* end confdefs.h.  */
7013#include <limits.h>
7014
7015int
7016main ()
7017{
7018#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7019	      bogus endian macros
7020	     #endif
7021
7022  ;
7023  return 0;
7024}
7025_ACEOF
7026if ac_fn_c_try_compile "$LINENO"; then :
7027  # It does; now see whether it defined to _BIG_ENDIAN or not.
7028	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029/* end confdefs.h.  */
7030#include <limits.h>
7031
7032int
7033main ()
7034{
7035#ifndef _BIG_ENDIAN
7036		 not big endian
7037		#endif
7038
7039  ;
7040  return 0;
7041}
7042_ACEOF
7043if ac_fn_c_try_compile "$LINENO"; then :
7044  ac_cv_c_bigendian=yes
7045else
7046  ac_cv_c_bigendian=no
7047fi
7048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049fi
7050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7051    fi
7052    if test $ac_cv_c_bigendian = unknown; then
7053      # Compile a test program.
7054      if test "$cross_compiling" = yes; then :
7055  # Try to guess by grepping values from an object file.
7056	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057/* end confdefs.h.  */
7058short int ascii_mm[] =
7059		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7060		short int ascii_ii[] =
7061		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7062		int use_ascii (int i) {
7063		  return ascii_mm[i] + ascii_ii[i];
7064		}
7065		short int ebcdic_ii[] =
7066		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7067		short int ebcdic_mm[] =
7068		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7069		int use_ebcdic (int i) {
7070		  return ebcdic_mm[i] + ebcdic_ii[i];
7071		}
7072		extern int foo;
7073
7074int
7075main ()
7076{
7077return use_ascii (foo) == use_ebcdic (foo);
7078  ;
7079  return 0;
7080}
7081_ACEOF
7082if ac_fn_c_try_compile "$LINENO"; then :
7083  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7084	      ac_cv_c_bigendian=yes
7085	    fi
7086	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7087	      if test "$ac_cv_c_bigendian" = unknown; then
7088		ac_cv_c_bigendian=no
7089	      else
7090		# finding both strings is unlikely to happen, but who knows?
7091		ac_cv_c_bigendian=unknown
7092	      fi
7093	    fi
7094fi
7095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7096else
7097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098/* end confdefs.h.  */
7099$ac_includes_default
7100int
7101main ()
7102{
7103
7104	     /* Are we little or big endian?  From Harbison&Steele.  */
7105	     union
7106	     {
7107	       long int l;
7108	       char c[sizeof (long int)];
7109	     } u;
7110	     u.l = 1;
7111	     return u.c[sizeof (long int) - 1] == 1;
7112
7113  ;
7114  return 0;
7115}
7116_ACEOF
7117if ac_fn_c_try_run "$LINENO"; then :
7118  ac_cv_c_bigendian=no
7119else
7120  ac_cv_c_bigendian=yes
7121fi
7122rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7123  conftest.$ac_objext conftest.beam conftest.$ac_ext
7124fi
7125
7126    fi
7127fi
7128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7129$as_echo "$ac_cv_c_bigendian" >&6; }
7130 case $ac_cv_c_bigendian in #(
7131   yes)
7132     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7133;; #(
7134   no)
7135      ;; #(
7136   universal)
7137
7138$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7139
7140     ;; #(
7141   *)
7142     as_fn_error $? "unknown endianness
7143 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7144 esac
7145
7146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7147$as_echo_n "checking for working volatile... " >&6; }
7148if ${ac_cv_c_volatile+:} false; then :
7149  $as_echo_n "(cached) " >&6
7150else
7151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152/* end confdefs.h.  */
7153
7154int
7155main ()
7156{
7157
7158volatile int x;
7159int * volatile y = (int *) 0;
7160return !x && !y;
7161  ;
7162  return 0;
7163}
7164_ACEOF
7165if ac_fn_c_try_compile "$LINENO"; then :
7166  ac_cv_c_volatile=yes
7167else
7168  ac_cv_c_volatile=no
7169fi
7170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171fi
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7173$as_echo "$ac_cv_c_volatile" >&6; }
7174if test $ac_cv_c_volatile = no; then
7175
7176$as_echo "#define volatile /**/" >>confdefs.h
7177
7178fi
7179
7180ac_ext=c
7181ac_cpp='$CPP $CPPFLAGS'
7182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7184ac_compiler_gnu=$ac_cv_c_compiler_gnu
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7186$as_echo_n "checking how to run the C preprocessor... " >&6; }
7187# On Suns, sometimes $CPP names a directory.
7188if test -n "$CPP" && test -d "$CPP"; then
7189  CPP=
7190fi
7191if test -z "$CPP"; then
7192  if ${ac_cv_prog_CPP+:} false; then :
7193  $as_echo_n "(cached) " >&6
7194else
7195      # Double quotes because CPP needs to be expanded
7196    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7197    do
7198      ac_preproc_ok=false
7199for ac_c_preproc_warn_flag in '' yes
7200do
7201  # Use a header file that comes with gcc, so configuring glibc
7202  # with a fresh cross-compiler works.
7203  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7204  # <limits.h> exists even on freestanding compilers.
7205  # On the NeXT, cc -E runs the code through the compiler's parser,
7206  # not just through cpp. "Syntax error" is here to catch this case.
7207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208/* end confdefs.h.  */
7209#ifdef __STDC__
7210# include <limits.h>
7211#else
7212# include <assert.h>
7213#endif
7214		     Syntax error
7215_ACEOF
7216if ac_fn_c_try_cpp "$LINENO"; then :
7217
7218else
7219  # Broken: fails on valid input.
7220continue
7221fi
7222rm -f conftest.err conftest.i conftest.$ac_ext
7223
7224  # OK, works on sane cases.  Now check whether nonexistent headers
7225  # can be detected and how.
7226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227/* end confdefs.h.  */
7228#include <ac_nonexistent.h>
7229_ACEOF
7230if ac_fn_c_try_cpp "$LINENO"; then :
7231  # Broken: success on invalid input.
7232continue
7233else
7234  # Passes both tests.
7235ac_preproc_ok=:
7236break
7237fi
7238rm -f conftest.err conftest.i conftest.$ac_ext
7239
7240done
7241# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7242rm -f conftest.i conftest.err conftest.$ac_ext
7243if $ac_preproc_ok; then :
7244  break
7245fi
7246
7247    done
7248    ac_cv_prog_CPP=$CPP
7249
7250fi
7251  CPP=$ac_cv_prog_CPP
7252else
7253  ac_cv_prog_CPP=$CPP
7254fi
7255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7256$as_echo "$CPP" >&6; }
7257ac_preproc_ok=false
7258for ac_c_preproc_warn_flag in '' yes
7259do
7260  # Use a header file that comes with gcc, so configuring glibc
7261  # with a fresh cross-compiler works.
7262  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7263  # <limits.h> exists even on freestanding compilers.
7264  # On the NeXT, cc -E runs the code through the compiler's parser,
7265  # not just through cpp. "Syntax error" is here to catch this case.
7266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7267/* end confdefs.h.  */
7268#ifdef __STDC__
7269# include <limits.h>
7270#else
7271# include <assert.h>
7272#endif
7273		     Syntax error
7274_ACEOF
7275if ac_fn_c_try_cpp "$LINENO"; then :
7276
7277else
7278  # Broken: fails on valid input.
7279continue
7280fi
7281rm -f conftest.err conftest.i conftest.$ac_ext
7282
7283  # OK, works on sane cases.  Now check whether nonexistent headers
7284  # can be detected and how.
7285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286/* end confdefs.h.  */
7287#include <ac_nonexistent.h>
7288_ACEOF
7289if ac_fn_c_try_cpp "$LINENO"; then :
7290  # Broken: success on invalid input.
7291continue
7292else
7293  # Passes both tests.
7294ac_preproc_ok=:
7295break
7296fi
7297rm -f conftest.err conftest.i conftest.$ac_ext
7298
7299done
7300# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7301rm -f conftest.i conftest.err conftest.$ac_ext
7302if $ac_preproc_ok; then :
7303
7304else
7305  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7307as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7308See \`config.log' for more details" "$LINENO" 5; }
7309fi
7310
7311ac_ext=c
7312ac_cpp='$CPP $CPPFLAGS'
7313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7315ac_compiler_gnu=$ac_cv_c_compiler_gnu
7316
7317
7318
7319ac_ext=c
7320ac_cpp='$CPP $CPPFLAGS'
7321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7323ac_compiler_gnu=$ac_cv_c_compiler_gnu
7324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7325$as_echo_n "checking how to run the C preprocessor... " >&6; }
7326# On Suns, sometimes $CPP names a directory.
7327if test -n "$CPP" && test -d "$CPP"; then
7328  CPP=
7329fi
7330if test -z "$CPP"; then
7331  if ${ac_cv_prog_CPP+:} false; then :
7332  $as_echo_n "(cached) " >&6
7333else
7334      # Double quotes because CPP needs to be expanded
7335    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7336    do
7337      ac_preproc_ok=false
7338for ac_c_preproc_warn_flag in '' yes
7339do
7340  # Use a header file that comes with gcc, so configuring glibc
7341  # with a fresh cross-compiler works.
7342  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7343  # <limits.h> exists even on freestanding compilers.
7344  # On the NeXT, cc -E runs the code through the compiler's parser,
7345  # not just through cpp. "Syntax error" is here to catch this case.
7346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347/* end confdefs.h.  */
7348#ifdef __STDC__
7349# include <limits.h>
7350#else
7351# include <assert.h>
7352#endif
7353		     Syntax error
7354_ACEOF
7355if ac_fn_c_try_cpp "$LINENO"; then :
7356
7357else
7358  # Broken: fails on valid input.
7359continue
7360fi
7361rm -f conftest.err conftest.i conftest.$ac_ext
7362
7363  # OK, works on sane cases.  Now check whether nonexistent headers
7364  # can be detected and how.
7365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366/* end confdefs.h.  */
7367#include <ac_nonexistent.h>
7368_ACEOF
7369if ac_fn_c_try_cpp "$LINENO"; then :
7370  # Broken: success on invalid input.
7371continue
7372else
7373  # Passes both tests.
7374ac_preproc_ok=:
7375break
7376fi
7377rm -f conftest.err conftest.i conftest.$ac_ext
7378
7379done
7380# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7381rm -f conftest.i conftest.err conftest.$ac_ext
7382if $ac_preproc_ok; then :
7383  break
7384fi
7385
7386    done
7387    ac_cv_prog_CPP=$CPP
7388
7389fi
7390  CPP=$ac_cv_prog_CPP
7391else
7392  ac_cv_prog_CPP=$CPP
7393fi
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7395$as_echo "$CPP" >&6; }
7396ac_preproc_ok=false
7397for ac_c_preproc_warn_flag in '' yes
7398do
7399  # Use a header file that comes with gcc, so configuring glibc
7400  # with a fresh cross-compiler works.
7401  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7402  # <limits.h> exists even on freestanding compilers.
7403  # On the NeXT, cc -E runs the code through the compiler's parser,
7404  # not just through cpp. "Syntax error" is here to catch this case.
7405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7406/* end confdefs.h.  */
7407#ifdef __STDC__
7408# include <limits.h>
7409#else
7410# include <assert.h>
7411#endif
7412		     Syntax error
7413_ACEOF
7414if ac_fn_c_try_cpp "$LINENO"; then :
7415
7416else
7417  # Broken: fails on valid input.
7418continue
7419fi
7420rm -f conftest.err conftest.i conftest.$ac_ext
7421
7422  # OK, works on sane cases.  Now check whether nonexistent headers
7423  # can be detected and how.
7424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425/* end confdefs.h.  */
7426#include <ac_nonexistent.h>
7427_ACEOF
7428if ac_fn_c_try_cpp "$LINENO"; then :
7429  # Broken: success on invalid input.
7430continue
7431else
7432  # Passes both tests.
7433ac_preproc_ok=:
7434break
7435fi
7436rm -f conftest.err conftest.i conftest.$ac_ext
7437
7438done
7439# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7440rm -f conftest.i conftest.err conftest.$ac_ext
7441if $ac_preproc_ok; then :
7442
7443else
7444  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7446as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7447See \`config.log' for more details" "$LINENO" 5; }
7448fi
7449
7450ac_ext=c
7451ac_cpp='$CPP $CPPFLAGS'
7452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7454ac_compiler_gnu=$ac_cv_c_compiler_gnu
7455
7456# Do we need CXX for anything besides google test?
7457ac_ext=cpp
7458ac_cpp='$CXXCPP $CPPFLAGS'
7459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7462if test -z "$CXX"; then
7463  if test -n "$CCC"; then
7464    CXX=$CCC
7465  else
7466    if test -n "$ac_tool_prefix"; then
7467  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7468  do
7469    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7470set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472$as_echo_n "checking for $ac_word... " >&6; }
7473if ${ac_cv_prog_CXX+:} false; then :
7474  $as_echo_n "(cached) " >&6
7475else
7476  if test -n "$CXX"; then
7477  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7478else
7479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480for as_dir in $PATH
7481do
7482  IFS=$as_save_IFS
7483  test -z "$as_dir" && as_dir=.
7484    for ac_exec_ext in '' $ac_executable_extensions; do
7485  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7486    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488    break 2
7489  fi
7490done
7491  done
7492IFS=$as_save_IFS
7493
7494fi
7495fi
7496CXX=$ac_cv_prog_CXX
7497if test -n "$CXX"; then
7498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7499$as_echo "$CXX" >&6; }
7500else
7501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502$as_echo "no" >&6; }
7503fi
7504
7505
7506    test -n "$CXX" && break
7507  done
7508fi
7509if test -z "$CXX"; then
7510  ac_ct_CXX=$CXX
7511  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7512do
7513  # Extract the first word of "$ac_prog", so it can be a program name with args.
7514set dummy $ac_prog; ac_word=$2
7515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7516$as_echo_n "checking for $ac_word... " >&6; }
7517if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7518  $as_echo_n "(cached) " >&6
7519else
7520  if test -n "$ac_ct_CXX"; then
7521  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7522else
7523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524for as_dir in $PATH
7525do
7526  IFS=$as_save_IFS
7527  test -z "$as_dir" && as_dir=.
7528    for ac_exec_ext in '' $ac_executable_extensions; do
7529  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7530    ac_cv_prog_ac_ct_CXX="$ac_prog"
7531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7532    break 2
7533  fi
7534done
7535  done
7536IFS=$as_save_IFS
7537
7538fi
7539fi
7540ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7541if test -n "$ac_ct_CXX"; then
7542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7543$as_echo "$ac_ct_CXX" >&6; }
7544else
7545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7546$as_echo "no" >&6; }
7547fi
7548
7549
7550  test -n "$ac_ct_CXX" && break
7551done
7552
7553  if test "x$ac_ct_CXX" = x; then
7554    CXX="g++"
7555  else
7556    case $cross_compiling:$ac_tool_warned in
7557yes:)
7558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7560ac_tool_warned=yes ;;
7561esac
7562    CXX=$ac_ct_CXX
7563  fi
7564fi
7565
7566  fi
7567fi
7568# Provide some information about the compiler.
7569$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7570set X $ac_compile
7571ac_compiler=$2
7572for ac_option in --version -v -V -qversion; do
7573  { { ac_try="$ac_compiler $ac_option >&5"
7574case "(($ac_try" in
7575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576  *) ac_try_echo=$ac_try;;
7577esac
7578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7579$as_echo "$ac_try_echo"; } >&5
7580  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7581  ac_status=$?
7582  if test -s conftest.err; then
7583    sed '10a\
7584... rest of stderr output deleted ...
7585         10q' conftest.err >conftest.er1
7586    cat conftest.er1 >&5
7587  fi
7588  rm -f conftest.er1 conftest.err
7589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7590  test $ac_status = 0; }
7591done
7592
7593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7594$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7595if ${ac_cv_cxx_compiler_gnu+:} false; then :
7596  $as_echo_n "(cached) " >&6
7597else
7598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599/* end confdefs.h.  */
7600
7601int
7602main ()
7603{
7604#ifndef __GNUC__
7605       choke me
7606#endif
7607
7608  ;
7609  return 0;
7610}
7611_ACEOF
7612if ac_fn_cxx_try_compile "$LINENO"; then :
7613  ac_compiler_gnu=yes
7614else
7615  ac_compiler_gnu=no
7616fi
7617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7619
7620fi
7621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7622$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7623if test $ac_compiler_gnu = yes; then
7624  GXX=yes
7625else
7626  GXX=
7627fi
7628ac_test_CXXFLAGS=${CXXFLAGS+set}
7629ac_save_CXXFLAGS=$CXXFLAGS
7630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7631$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7632if ${ac_cv_prog_cxx_g+:} false; then :
7633  $as_echo_n "(cached) " >&6
7634else
7635  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7636   ac_cxx_werror_flag=yes
7637   ac_cv_prog_cxx_g=no
7638   CXXFLAGS="-g"
7639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640/* end confdefs.h.  */
7641
7642int
7643main ()
7644{
7645
7646  ;
7647  return 0;
7648}
7649_ACEOF
7650if ac_fn_cxx_try_compile "$LINENO"; then :
7651  ac_cv_prog_cxx_g=yes
7652else
7653  CXXFLAGS=""
7654      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655/* end confdefs.h.  */
7656
7657int
7658main ()
7659{
7660
7661  ;
7662  return 0;
7663}
7664_ACEOF
7665if ac_fn_cxx_try_compile "$LINENO"; then :
7666
7667else
7668  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7669	 CXXFLAGS="-g"
7670	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671/* end confdefs.h.  */
7672
7673int
7674main ()
7675{
7676
7677  ;
7678  return 0;
7679}
7680_ACEOF
7681if ac_fn_cxx_try_compile "$LINENO"; then :
7682  ac_cv_prog_cxx_g=yes
7683fi
7684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7685fi
7686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7687fi
7688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7690fi
7691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7692$as_echo "$ac_cv_prog_cxx_g" >&6; }
7693if test "$ac_test_CXXFLAGS" = set; then
7694  CXXFLAGS=$ac_save_CXXFLAGS
7695elif test $ac_cv_prog_cxx_g = yes; then
7696  if test "$GXX" = yes; then
7697    CXXFLAGS="-g -O2"
7698  else
7699    CXXFLAGS="-g"
7700  fi
7701else
7702  if test "$GXX" = yes; then
7703    CXXFLAGS="-O2"
7704  else
7705    CXXFLAGS=
7706  fi
7707fi
7708ac_ext=c
7709ac_cpp='$CPP $CPPFLAGS'
7710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712ac_compiler_gnu=$ac_cv_c_compiler_gnu
7713
7714depcc="$CXX"  am_compiler_list=
7715
7716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7717$as_echo_n "checking dependency style of $depcc... " >&6; }
7718if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7719  $as_echo_n "(cached) " >&6
7720else
7721  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7722  # We make a subdir and do the tests there.  Otherwise we can end up
7723  # making bogus files that we don't know about and never remove.  For
7724  # instance it was reported that on HP-UX the gcc test will end up
7725  # making a dummy file named 'D' -- because '-MD' means "put the output
7726  # in D".
7727  rm -rf conftest.dir
7728  mkdir conftest.dir
7729  # Copy depcomp to subdir because otherwise we won't find it if we're
7730  # using a relative directory.
7731  cp "$am_depcomp" conftest.dir
7732  cd conftest.dir
7733  # We will build objects and dependencies in a subdirectory because
7734  # it helps to detect inapplicable dependency modes.  For instance
7735  # both Tru64's cc and ICC support -MD to output dependencies as a
7736  # side effect of compilation, but ICC will put the dependencies in
7737  # the current directory while Tru64 will put them in the object
7738  # directory.
7739  mkdir sub
7740
7741  am_cv_CXX_dependencies_compiler_type=none
7742  if test "$am_compiler_list" = ""; then
7743     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7744  fi
7745  am__universal=false
7746  case " $depcc " in #(
7747     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7748     esac
7749
7750  for depmode in $am_compiler_list; do
7751    # Setup a source with many dependencies, because some compilers
7752    # like to wrap large dependency lists on column 80 (with \), and
7753    # we should not choose a depcomp mode which is confused by this.
7754    #
7755    # We need to recreate these files for each test, as the compiler may
7756    # overwrite some of them when testing with obscure command lines.
7757    # This happens at least with the AIX C compiler.
7758    : > sub/conftest.c
7759    for i in 1 2 3 4 5 6; do
7760      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7761      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7762      # Solaris 10 /bin/sh.
7763      echo '/* dummy */' > sub/conftst$i.h
7764    done
7765    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7766
7767    # We check with '-c' and '-o' for the sake of the "dashmstdout"
7768    # mode.  It turns out that the SunPro C++ compiler does not properly
7769    # handle '-M -o', and we need to detect this.  Also, some Intel
7770    # versions had trouble with output in subdirs.
7771    am__obj=sub/conftest.${OBJEXT-o}
7772    am__minus_obj="-o $am__obj"
7773    case $depmode in
7774    gcc)
7775      # This depmode causes a compiler race in universal mode.
7776      test "$am__universal" = false || continue
7777      ;;
7778    nosideeffect)
7779      # After this tag, mechanisms are not by side-effect, so they'll
7780      # only be used when explicitly requested.
7781      if test "x$enable_dependency_tracking" = xyes; then
7782	continue
7783      else
7784	break
7785      fi
7786      ;;
7787    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7788      # This compiler won't grok '-c -o', but also, the minuso test has
7789      # not run yet.  These depmodes are late enough in the game, and
7790      # so weak that their functioning should not be impacted.
7791      am__obj=conftest.${OBJEXT-o}
7792      am__minus_obj=
7793      ;;
7794    none) break ;;
7795    esac
7796    if depmode=$depmode \
7797       source=sub/conftest.c object=$am__obj \
7798       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7799       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7800         >/dev/null 2>conftest.err &&
7801       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7802       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7803       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7804       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7805      # icc doesn't choke on unknown options, it will just issue warnings
7806      # or remarks (even with -Werror).  So we grep stderr for any message
7807      # that says an option was ignored or not supported.
7808      # When given -MP, icc 7.0 and 7.1 complain thusly:
7809      #   icc: Command line warning: ignoring option '-M'; no argument required
7810      # The diagnosis changed in icc 8.0:
7811      #   icc: Command line remark: option '-MP' not supported
7812      if (grep 'ignoring option' conftest.err ||
7813          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7814        am_cv_CXX_dependencies_compiler_type=$depmode
7815        break
7816      fi
7817    fi
7818  done
7819
7820  cd ..
7821  rm -rf conftest.dir
7822else
7823  am_cv_CXX_dependencies_compiler_type=none
7824fi
7825
7826fi
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7828$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7829CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7830
7831 if
7832  test "x$enable_dependency_tracking" != xno \
7833  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7834  am__fastdepCXX_TRUE=
7835  am__fastdepCXX_FALSE='#'
7836else
7837  am__fastdepCXX_TRUE='#'
7838  am__fastdepCXX_FALSE=
7839fi
7840
7841
7842for ac_prog in 'bison -y' byacc
7843do
7844  # Extract the first word of "$ac_prog", so it can be a program name with args.
7845set dummy $ac_prog; ac_word=$2
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847$as_echo_n "checking for $ac_word... " >&6; }
7848if ${ac_cv_prog_YACC+:} false; then :
7849  $as_echo_n "(cached) " >&6
7850else
7851  if test -n "$YACC"; then
7852  ac_cv_prog_YACC="$YACC" # Let the user override the test.
7853else
7854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855for as_dir in $PATH
7856do
7857  IFS=$as_save_IFS
7858  test -z "$as_dir" && as_dir=.
7859    for ac_exec_ext in '' $ac_executable_extensions; do
7860  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7861    ac_cv_prog_YACC="$ac_prog"
7862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863    break 2
7864  fi
7865done
7866  done
7867IFS=$as_save_IFS
7868
7869fi
7870fi
7871YACC=$ac_cv_prog_YACC
7872if test -n "$YACC"; then
7873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7874$as_echo "$YACC" >&6; }
7875else
7876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877$as_echo "no" >&6; }
7878fi
7879
7880
7881  test -n "$YACC" && break
7882done
7883test -n "$YACC" || YACC="yacc"
7884
7885if test "x$CC" != xcc; then
7886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7887$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7888else
7889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7890$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7891fi
7892set dummy $CC; ac_cc=`$as_echo "$2" |
7893		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7894if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7895  $as_echo_n "(cached) " >&6
7896else
7897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898/* end confdefs.h.  */
7899
7900int
7901main ()
7902{
7903
7904  ;
7905  return 0;
7906}
7907_ACEOF
7908# Make sure it works both with $CC and with simple cc.
7909# We do the test twice because some compilers refuse to overwrite an
7910# existing .o file with -o, though they will create one.
7911ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7912rm -f conftest2.*
7913if { { case "(($ac_try" in
7914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7915  *) ac_try_echo=$ac_try;;
7916esac
7917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7918$as_echo "$ac_try_echo"; } >&5
7919  (eval "$ac_try") 2>&5
7920  ac_status=$?
7921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7922  test $ac_status = 0; } &&
7923   test -f conftest2.$ac_objext && { { case "(($ac_try" in
7924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925  *) ac_try_echo=$ac_try;;
7926esac
7927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7928$as_echo "$ac_try_echo"; } >&5
7929  (eval "$ac_try") 2>&5
7930  ac_status=$?
7931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7932  test $ac_status = 0; };
7933then
7934  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7935  if test "x$CC" != xcc; then
7936    # Test first that cc exists at all.
7937    if { ac_try='cc -c conftest.$ac_ext >&5'
7938  { { case "(($ac_try" in
7939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940  *) ac_try_echo=$ac_try;;
7941esac
7942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7943$as_echo "$ac_try_echo"; } >&5
7944  (eval "$ac_try") 2>&5
7945  ac_status=$?
7946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7947  test $ac_status = 0; }; }; then
7948      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7949      rm -f conftest2.*
7950      if { { case "(($ac_try" in
7951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7952  *) ac_try_echo=$ac_try;;
7953esac
7954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7955$as_echo "$ac_try_echo"; } >&5
7956  (eval "$ac_try") 2>&5
7957  ac_status=$?
7958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7959  test $ac_status = 0; } &&
7960	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7962  *) ac_try_echo=$ac_try;;
7963esac
7964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7965$as_echo "$ac_try_echo"; } >&5
7966  (eval "$ac_try") 2>&5
7967  ac_status=$?
7968  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7969  test $ac_status = 0; };
7970      then
7971	# cc works too.
7972	:
7973      else
7974	# cc exists but doesn't like -o.
7975	eval ac_cv_prog_cc_${ac_cc}_c_o=no
7976      fi
7977    fi
7978  fi
7979else
7980  eval ac_cv_prog_cc_${ac_cc}_c_o=no
7981fi
7982rm -f core conftest*
7983
7984fi
7985if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7987$as_echo "yes" >&6; }
7988else
7989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990$as_echo "no" >&6; }
7991
7992$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7993
7994fi
7995
7996
7997	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
7998$as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }
7999
8000
8001	ac_ext=c
8002ac_cpp='$CPP $CPPFLAGS'
8003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8005ac_compiler_gnu=$ac_cv_c_compiler_gnu
8006
8007
8008		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009/* end confdefs.h.  */
8010
8011			struct foo_s {int i1; int i2;};
8012			int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }
8013
8014_ACEOF
8015if ac_fn_c_try_compile "$LINENO"; then :
8016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8017$as_echo "yes" >&6; }
8018else
8019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020$as_echo "no" >&6; }
8021
8022$as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
8023
8024fi
8025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8026
8027	ac_ext=c
8028ac_cpp='$CPP $CPPFLAGS'
8029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8031ac_compiler_gnu=$ac_cv_c_compiler_gnu
8032
8033
8034
8035
8036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
8037$as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
8038ntp_vpath_hack="no"
8039case "$srcdir::${force_ntp_vpath_hack-no}" in
8040 .::*)
8041    ;; # VPATH_HACK path is for VPATH builds only.
8042 *::yes)
8043    ntp_vpath_hack="yes"
8044    ;;
8045 *::*)
8046    case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
8047     '')
8048	ntp_vpath_hack="yes"
8049    esac
8050esac
8051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
8052$as_echo "$ntp_vpath_hack" >&6; }
8053 if test x$ntp_vpath_hack = xyes; then
8054  VPATH_HACK_TRUE=
8055  VPATH_HACK_FALSE='#'
8056else
8057  VPATH_HACK_TRUE='#'
8058  VPATH_HACK_FALSE=
8059fi
8060
8061
8062
8063
8064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
8065$as_echo_n "checking for install dir and man conventions... " >&6; }
8066
8067
8068# Check whether --with-locfile was given.
8069if test "${with_locfile+set}" = set; then :
8070  withval=$with_locfile;
8071else
8072  with_locfile=no
8073
8074fi
8075
8076
8077(									\
8078    SENTINEL_DIR="$PWD" &&						\
8079    cd $srcdir/sntp &&							\
8080    case "$with_locfile" in						\
8081     yes|no|'')								\
8082	scripts/genLocInfo -d "$SENTINEL_DIR"				\
8083	;;								\
8084     *)									\
8085	scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile"	\
8086	;;								\
8087    esac								\
8088) > genLocInfo.i 2> genLocInfo.err
8089. ./genLocInfo.i
8090
8091case "$GENLOCINFO" in
8092 OK)
8093    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
8094$as_echo "in file $GENLOCINFOFILE" >&6; }
8095    rm genLocInfo.err genLocInfo.i
8096    ;;
8097 *)
8098    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
8099$as_echo "failed." >&6; }
8100    as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
8101    ;;
8102esac
8103
8104 if test "$CALC_TICKADJ_MS" ; then
8105  WANT_CALC_TICKADJ_MS_TRUE=
8106  WANT_CALC_TICKADJ_MS_FALSE='#'
8107else
8108  WANT_CALC_TICKADJ_MS_TRUE='#'
8109  WANT_CALC_TICKADJ_MS_FALSE=
8110fi
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154 if test -z "$NTPSWEEP_NI" ; then
8155  INSTALL_NTPSWEEP_TRUE=
8156  INSTALL_NTPSWEEP_FALSE='#'
8157else
8158  INSTALL_NTPSWEEP_TRUE='#'
8159  INSTALL_NTPSWEEP_FALSE=
8160fi
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202 if test -z "$UPDATE_LEAP_NI" ; then
8203  INSTALL_UPDATE_LEAP_TRUE=
8204  INSTALL_UPDATE_LEAP_FALSE='#'
8205else
8206  INSTALL_UPDATE_LEAP_TRUE='#'
8207  INSTALL_UPDATE_LEAP_FALSE=
8208fi
8209
8210
8211
8212if test -n "$ac_tool_prefix"; then
8213  for ac_prog in ar lib "link -lib"
8214  do
8215    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8216set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218$as_echo_n "checking for $ac_word... " >&6; }
8219if ${ac_cv_prog_AR+:} false; then :
8220  $as_echo_n "(cached) " >&6
8221else
8222  if test -n "$AR"; then
8223  ac_cv_prog_AR="$AR" # Let the user override the test.
8224else
8225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226for as_dir in $PATH
8227do
8228  IFS=$as_save_IFS
8229  test -z "$as_dir" && as_dir=.
8230    for ac_exec_ext in '' $ac_executable_extensions; do
8231  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8232    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8233    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234    break 2
8235  fi
8236done
8237  done
8238IFS=$as_save_IFS
8239
8240fi
8241fi
8242AR=$ac_cv_prog_AR
8243if test -n "$AR"; then
8244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8245$as_echo "$AR" >&6; }
8246else
8247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248$as_echo "no" >&6; }
8249fi
8250
8251
8252    test -n "$AR" && break
8253  done
8254fi
8255if test -z "$AR"; then
8256  ac_ct_AR=$AR
8257  for ac_prog in ar lib "link -lib"
8258do
8259  # Extract the first word of "$ac_prog", so it can be a program name with args.
8260set dummy $ac_prog; ac_word=$2
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262$as_echo_n "checking for $ac_word... " >&6; }
8263if ${ac_cv_prog_ac_ct_AR+:} false; then :
8264  $as_echo_n "(cached) " >&6
8265else
8266  if test -n "$ac_ct_AR"; then
8267  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8268else
8269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270for as_dir in $PATH
8271do
8272  IFS=$as_save_IFS
8273  test -z "$as_dir" && as_dir=.
8274    for ac_exec_ext in '' $ac_executable_extensions; do
8275  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8276    ac_cv_prog_ac_ct_AR="$ac_prog"
8277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278    break 2
8279  fi
8280done
8281  done
8282IFS=$as_save_IFS
8283
8284fi
8285fi
8286ac_ct_AR=$ac_cv_prog_ac_ct_AR
8287if test -n "$ac_ct_AR"; then
8288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8289$as_echo "$ac_ct_AR" >&6; }
8290else
8291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292$as_echo "no" >&6; }
8293fi
8294
8295
8296  test -n "$ac_ct_AR" && break
8297done
8298
8299  if test "x$ac_ct_AR" = x; then
8300    AR="false"
8301  else
8302    case $cross_compiling:$ac_tool_warned in
8303yes:)
8304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8306ac_tool_warned=yes ;;
8307esac
8308    AR=$ac_ct_AR
8309  fi
8310fi
8311
8312: ${AR=ar}
8313
8314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
8315$as_echo_n "checking the archiver ($AR) interface... " >&6; }
8316if ${am_cv_ar_interface+:} false; then :
8317  $as_echo_n "(cached) " >&6
8318else
8319  ac_ext=c
8320ac_cpp='$CPP $CPPFLAGS'
8321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8323ac_compiler_gnu=$ac_cv_c_compiler_gnu
8324
8325   am_cv_ar_interface=ar
8326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327/* end confdefs.h.  */
8328int some_variable = 0;
8329_ACEOF
8330if ac_fn_c_try_compile "$LINENO"; then :
8331  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
8332      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8333  (eval $am_ar_try) 2>&5
8334  ac_status=$?
8335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8336  test $ac_status = 0; }
8337      if test "$ac_status" -eq 0; then
8338        am_cv_ar_interface=ar
8339      else
8340        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
8341        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8342  (eval $am_ar_try) 2>&5
8343  ac_status=$?
8344  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8345  test $ac_status = 0; }
8346        if test "$ac_status" -eq 0; then
8347          am_cv_ar_interface=lib
8348        else
8349          am_cv_ar_interface=unknown
8350        fi
8351      fi
8352      rm -f conftest.lib libconftest.a
8353
8354fi
8355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8356   ac_ext=c
8357ac_cpp='$CPP $CPPFLAGS'
8358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8360ac_compiler_gnu=$ac_cv_c_compiler_gnu
8361
8362fi
8363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
8364$as_echo "$am_cv_ar_interface" >&6; }
8365
8366case $am_cv_ar_interface in
8367ar)
8368  ;;
8369lib)
8370  # Microsoft lib, so override with the ar-lib wrapper script.
8371  # FIXME: It is wrong to rewrite AR.
8372  # But if we don't then we get into trouble of one sort or another.
8373  # A longer-term fix would be to have automake use am__AR in this case,
8374  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
8375  # similar.
8376  AR="$am_aux_dir/ar-lib $AR"
8377  ;;
8378unknown)
8379  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
8380  ;;
8381esac
8382
8383
8384
8385# So far, the only shared library we might use is libopts.
8386# It's a small library - we might as well use a static version of it.
8387# Check whether --enable-shared was given.
8388if test "${enable_shared+set}" = set; then :
8389  enableval=$enable_shared; p=${PACKAGE-default}
8390    case $enableval in
8391    yes) enable_shared=yes ;;
8392    no) enable_shared=no ;;
8393    *)
8394      enable_shared=no
8395      # Look at the argument we got.  We use all the common list separators.
8396      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8397      for pkg in $enableval; do
8398	IFS="$lt_save_ifs"
8399	if test "X$pkg" = "X$p"; then
8400	  enable_shared=yes
8401	fi
8402      done
8403      IFS="$lt_save_ifs"
8404      ;;
8405    esac
8406else
8407  enable_shared=no
8408fi
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418case `pwd` in
8419  *\ * | *\	*)
8420    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8421$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8422esac
8423
8424
8425
8426macro_version='2.4.2'
8427macro_revision='1.3337'
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441ltmain="$ac_aux_dir/ltmain.sh"
8442
8443# Backslashify metacharacters that are still active within
8444# double-quoted strings.
8445sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8446
8447# Same as above, but do not quote variable references.
8448double_quote_subst='s/\(["`\\]\)/\\\1/g'
8449
8450# Sed substitution to delay expansion of an escaped shell variable in a
8451# double_quote_subst'ed string.
8452delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8453
8454# Sed substitution to delay expansion of an escaped single quote.
8455delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8456
8457# Sed substitution to avoid accidental globbing in evaled expressions
8458no_glob_subst='s/\*/\\\*/g'
8459
8460ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8461ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8462ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8463
8464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8465$as_echo_n "checking how to print strings... " >&6; }
8466# Test print first, because it will be a builtin if present.
8467if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8468   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8469  ECHO='print -r --'
8470elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8471  ECHO='printf %s\n'
8472else
8473  # Use this function as a fallback that always works.
8474  func_fallback_echo ()
8475  {
8476    eval 'cat <<_LTECHO_EOF
8477$1
8478_LTECHO_EOF'
8479  }
8480  ECHO='func_fallback_echo'
8481fi
8482
8483# func_echo_all arg...
8484# Invoke $ECHO with all args, space-separated.
8485func_echo_all ()
8486{
8487    $ECHO ""
8488}
8489
8490case "$ECHO" in
8491  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8492$as_echo "printf" >&6; } ;;
8493  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8494$as_echo "print -r" >&6; } ;;
8495  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8496$as_echo "cat" >&6; } ;;
8497esac
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8513$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8514if ${ac_cv_path_SED+:} false; then :
8515  $as_echo_n "(cached) " >&6
8516else
8517            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8518     for ac_i in 1 2 3 4 5 6 7; do
8519       ac_script="$ac_script$as_nl$ac_script"
8520     done
8521     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8522     { ac_script=; unset ac_script;}
8523     if test -z "$SED"; then
8524  ac_path_SED_found=false
8525  # Loop through the user's path and test for each of PROGNAME-LIST
8526  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8527for as_dir in $PATH
8528do
8529  IFS=$as_save_IFS
8530  test -z "$as_dir" && as_dir=.
8531    for ac_prog in sed gsed; do
8532    for ac_exec_ext in '' $ac_executable_extensions; do
8533      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8534      as_fn_executable_p "$ac_path_SED" || continue
8535# Check for GNU ac_path_SED and select it if it is found.
8536  # Check for GNU $ac_path_SED
8537case `"$ac_path_SED" --version 2>&1` in
8538*GNU*)
8539  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8540*)
8541  ac_count=0
8542  $as_echo_n 0123456789 >"conftest.in"
8543  while :
8544  do
8545    cat "conftest.in" "conftest.in" >"conftest.tmp"
8546    mv "conftest.tmp" "conftest.in"
8547    cp "conftest.in" "conftest.nl"
8548    $as_echo '' >> "conftest.nl"
8549    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8550    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8551    as_fn_arith $ac_count + 1 && ac_count=$as_val
8552    if test $ac_count -gt ${ac_path_SED_max-0}; then
8553      # Best one so far, save it but keep looking for a better one
8554      ac_cv_path_SED="$ac_path_SED"
8555      ac_path_SED_max=$ac_count
8556    fi
8557    # 10*(2^10) chars as input seems more than enough
8558    test $ac_count -gt 10 && break
8559  done
8560  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8561esac
8562
8563      $ac_path_SED_found && break 3
8564    done
8565  done
8566  done
8567IFS=$as_save_IFS
8568  if test -z "$ac_cv_path_SED"; then
8569    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8570  fi
8571else
8572  ac_cv_path_SED=$SED
8573fi
8574
8575fi
8576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8577$as_echo "$ac_cv_path_SED" >&6; }
8578 SED="$ac_cv_path_SED"
8579  rm -f conftest.sed
8580
8581test -z "$SED" && SED=sed
8582Xsed="$SED -e 1s/^X//"
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8595$as_echo_n "checking for fgrep... " >&6; }
8596if ${ac_cv_path_FGREP+:} false; then :
8597  $as_echo_n "(cached) " >&6
8598else
8599  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8600   then ac_cv_path_FGREP="$GREP -F"
8601   else
8602     if test -z "$FGREP"; then
8603  ac_path_FGREP_found=false
8604  # Loop through the user's path and test for each of PROGNAME-LIST
8605  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8607do
8608  IFS=$as_save_IFS
8609  test -z "$as_dir" && as_dir=.
8610    for ac_prog in fgrep; do
8611    for ac_exec_ext in '' $ac_executable_extensions; do
8612      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8613      as_fn_executable_p "$ac_path_FGREP" || continue
8614# Check for GNU ac_path_FGREP and select it if it is found.
8615  # Check for GNU $ac_path_FGREP
8616case `"$ac_path_FGREP" --version 2>&1` in
8617*GNU*)
8618  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8619*)
8620  ac_count=0
8621  $as_echo_n 0123456789 >"conftest.in"
8622  while :
8623  do
8624    cat "conftest.in" "conftest.in" >"conftest.tmp"
8625    mv "conftest.tmp" "conftest.in"
8626    cp "conftest.in" "conftest.nl"
8627    $as_echo 'FGREP' >> "conftest.nl"
8628    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8629    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8630    as_fn_arith $ac_count + 1 && ac_count=$as_val
8631    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8632      # Best one so far, save it but keep looking for a better one
8633      ac_cv_path_FGREP="$ac_path_FGREP"
8634      ac_path_FGREP_max=$ac_count
8635    fi
8636    # 10*(2^10) chars as input seems more than enough
8637    test $ac_count -gt 10 && break
8638  done
8639  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8640esac
8641
8642      $ac_path_FGREP_found && break 3
8643    done
8644  done
8645  done
8646IFS=$as_save_IFS
8647  if test -z "$ac_cv_path_FGREP"; then
8648    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8649  fi
8650else
8651  ac_cv_path_FGREP=$FGREP
8652fi
8653
8654   fi
8655fi
8656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8657$as_echo "$ac_cv_path_FGREP" >&6; }
8658 FGREP="$ac_cv_path_FGREP"
8659
8660
8661test -z "$GREP" && GREP=grep
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681# Check whether --with-gnu-ld was given.
8682if test "${with_gnu_ld+set}" = set; then :
8683  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8684else
8685  with_gnu_ld=no
8686fi
8687
8688ac_prog=ld
8689if test "$GCC" = yes; then
8690  # Check if gcc -print-prog-name=ld gives a path.
8691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8692$as_echo_n "checking for ld used by $CC... " >&6; }
8693  case $host in
8694  *-*-mingw*)
8695    # gcc leaves a trailing carriage return which upsets mingw
8696    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8697  *)
8698    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8699  esac
8700  case $ac_prog in
8701    # Accept absolute paths.
8702    [\\/]* | ?:[\\/]*)
8703      re_direlt='/[^/][^/]*/\.\./'
8704      # Canonicalize the pathname of ld
8705      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8706      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8707	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8708      done
8709      test -z "$LD" && LD="$ac_prog"
8710      ;;
8711  "")
8712    # If it fails, then pretend we aren't using GCC.
8713    ac_prog=ld
8714    ;;
8715  *)
8716    # If it is relative, then search for the first ld in PATH.
8717    with_gnu_ld=unknown
8718    ;;
8719  esac
8720elif test "$with_gnu_ld" = yes; then
8721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8722$as_echo_n "checking for GNU ld... " >&6; }
8723else
8724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8725$as_echo_n "checking for non-GNU ld... " >&6; }
8726fi
8727if ${lt_cv_path_LD+:} false; then :
8728  $as_echo_n "(cached) " >&6
8729else
8730  if test -z "$LD"; then
8731  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8732  for ac_dir in $PATH; do
8733    IFS="$lt_save_ifs"
8734    test -z "$ac_dir" && ac_dir=.
8735    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8736      lt_cv_path_LD="$ac_dir/$ac_prog"
8737      # Check to see if the program is GNU ld.  I'd rather use --version,
8738      # but apparently some variants of GNU ld only accept -v.
8739      # Break only if it was the GNU/non-GNU ld that we prefer.
8740      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8741      *GNU* | *'with BFD'*)
8742	test "$with_gnu_ld" != no && break
8743	;;
8744      *)
8745	test "$with_gnu_ld" != yes && break
8746	;;
8747      esac
8748    fi
8749  done
8750  IFS="$lt_save_ifs"
8751else
8752  lt_cv_path_LD="$LD" # Let the user override the test with a path.
8753fi
8754fi
8755
8756LD="$lt_cv_path_LD"
8757if test -n "$LD"; then
8758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8759$as_echo "$LD" >&6; }
8760else
8761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762$as_echo "no" >&6; }
8763fi
8764test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8766$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8767if ${lt_cv_prog_gnu_ld+:} false; then :
8768  $as_echo_n "(cached) " >&6
8769else
8770  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8771case `$LD -v 2>&1 </dev/null` in
8772*GNU* | *'with BFD'*)
8773  lt_cv_prog_gnu_ld=yes
8774  ;;
8775*)
8776  lt_cv_prog_gnu_ld=no
8777  ;;
8778esac
8779fi
8780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8781$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8782with_gnu_ld=$lt_cv_prog_gnu_ld
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8793$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8794if ${lt_cv_path_NM+:} false; then :
8795  $as_echo_n "(cached) " >&6
8796else
8797  if test -n "$NM"; then
8798  # Let the user override the test.
8799  lt_cv_path_NM="$NM"
8800else
8801  lt_nm_to_check="${ac_tool_prefix}nm"
8802  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8803    lt_nm_to_check="$lt_nm_to_check nm"
8804  fi
8805  for lt_tmp_nm in $lt_nm_to_check; do
8806    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8807    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8808      IFS="$lt_save_ifs"
8809      test -z "$ac_dir" && ac_dir=.
8810      tmp_nm="$ac_dir/$lt_tmp_nm"
8811      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8812	# Check to see if the nm accepts a BSD-compat flag.
8813	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
8814	#   nm: unknown option "B" ignored
8815	# Tru64's nm complains that /dev/null is an invalid object file
8816	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8817	*/dev/null* | *'Invalid file or object type'*)
8818	  lt_cv_path_NM="$tmp_nm -B"
8819	  break
8820	  ;;
8821	*)
8822	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8823	  */dev/null*)
8824	    lt_cv_path_NM="$tmp_nm -p"
8825	    break
8826	    ;;
8827	  *)
8828	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8829	    continue # so that we can try to find one that supports BSD flags
8830	    ;;
8831	  esac
8832	  ;;
8833	esac
8834      fi
8835    done
8836    IFS="$lt_save_ifs"
8837  done
8838  : ${lt_cv_path_NM=no}
8839fi
8840fi
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8842$as_echo "$lt_cv_path_NM" >&6; }
8843if test "$lt_cv_path_NM" != "no"; then
8844  NM="$lt_cv_path_NM"
8845else
8846  # Didn't find any BSD compatible name lister, look for dumpbin.
8847  if test -n "$DUMPBIN"; then :
8848    # Let the user override the test.
8849  else
8850    if test -n "$ac_tool_prefix"; then
8851  for ac_prog in dumpbin "link -dump"
8852  do
8853    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8854set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8856$as_echo_n "checking for $ac_word... " >&6; }
8857if ${ac_cv_prog_DUMPBIN+:} false; then :
8858  $as_echo_n "(cached) " >&6
8859else
8860  if test -n "$DUMPBIN"; then
8861  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8862else
8863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8864for as_dir in $PATH
8865do
8866  IFS=$as_save_IFS
8867  test -z "$as_dir" && as_dir=.
8868    for ac_exec_ext in '' $ac_executable_extensions; do
8869  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8870    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8871    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8872    break 2
8873  fi
8874done
8875  done
8876IFS=$as_save_IFS
8877
8878fi
8879fi
8880DUMPBIN=$ac_cv_prog_DUMPBIN
8881if test -n "$DUMPBIN"; then
8882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8883$as_echo "$DUMPBIN" >&6; }
8884else
8885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8886$as_echo "no" >&6; }
8887fi
8888
8889
8890    test -n "$DUMPBIN" && break
8891  done
8892fi
8893if test -z "$DUMPBIN"; then
8894  ac_ct_DUMPBIN=$DUMPBIN
8895  for ac_prog in dumpbin "link -dump"
8896do
8897  # Extract the first word of "$ac_prog", so it can be a program name with args.
8898set dummy $ac_prog; ac_word=$2
8899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8900$as_echo_n "checking for $ac_word... " >&6; }
8901if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8902  $as_echo_n "(cached) " >&6
8903else
8904  if test -n "$ac_ct_DUMPBIN"; then
8905  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8906else
8907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8908for as_dir in $PATH
8909do
8910  IFS=$as_save_IFS
8911  test -z "$as_dir" && as_dir=.
8912    for ac_exec_ext in '' $ac_executable_extensions; do
8913  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8914    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8916    break 2
8917  fi
8918done
8919  done
8920IFS=$as_save_IFS
8921
8922fi
8923fi
8924ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8925if test -n "$ac_ct_DUMPBIN"; then
8926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8927$as_echo "$ac_ct_DUMPBIN" >&6; }
8928else
8929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8930$as_echo "no" >&6; }
8931fi
8932
8933
8934  test -n "$ac_ct_DUMPBIN" && break
8935done
8936
8937  if test "x$ac_ct_DUMPBIN" = x; then
8938    DUMPBIN=":"
8939  else
8940    case $cross_compiling:$ac_tool_warned in
8941yes:)
8942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8944ac_tool_warned=yes ;;
8945esac
8946    DUMPBIN=$ac_ct_DUMPBIN
8947  fi
8948fi
8949
8950    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8951    *COFF*)
8952      DUMPBIN="$DUMPBIN -symbols"
8953      ;;
8954    *)
8955      DUMPBIN=:
8956      ;;
8957    esac
8958  fi
8959
8960  if test "$DUMPBIN" != ":"; then
8961    NM="$DUMPBIN"
8962  fi
8963fi
8964test -z "$NM" && NM=nm
8965
8966
8967
8968
8969
8970
8971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8972$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8973if ${lt_cv_nm_interface+:} false; then :
8974  $as_echo_n "(cached) " >&6
8975else
8976  lt_cv_nm_interface="BSD nm"
8977  echo "int some_variable = 0;" > conftest.$ac_ext
8978  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8979  (eval "$ac_compile" 2>conftest.err)
8980  cat conftest.err >&5
8981  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8982  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8983  cat conftest.err >&5
8984  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8985  cat conftest.out >&5
8986  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8987    lt_cv_nm_interface="MS dumpbin"
8988  fi
8989  rm -f conftest*
8990fi
8991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8992$as_echo "$lt_cv_nm_interface" >&6; }
8993
8994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8995$as_echo_n "checking whether ln -s works... " >&6; }
8996LN_S=$as_ln_s
8997if test "$LN_S" = "ln -s"; then
8998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8999$as_echo "yes" >&6; }
9000else
9001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9002$as_echo "no, using $LN_S" >&6; }
9003fi
9004
9005# find the maximum length of command line arguments
9006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9007$as_echo_n "checking the maximum length of command line arguments... " >&6; }
9008if ${lt_cv_sys_max_cmd_len+:} false; then :
9009  $as_echo_n "(cached) " >&6
9010else
9011    i=0
9012  teststring="ABCD"
9013
9014  case $build_os in
9015  msdosdjgpp*)
9016    # On DJGPP, this test can blow up pretty badly due to problems in libc
9017    # (any single argument exceeding 2000 bytes causes a buffer overrun
9018    # during glob expansion).  Even if it were fixed, the result of this
9019    # check would be larger than it should be.
9020    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9021    ;;
9022
9023  gnu*)
9024    # Under GNU Hurd, this test is not required because there is
9025    # no limit to the length of command line arguments.
9026    # Libtool will interpret -1 as no limit whatsoever
9027    lt_cv_sys_max_cmd_len=-1;
9028    ;;
9029
9030  cygwin* | mingw* | cegcc*)
9031    # On Win9x/ME, this test blows up -- it succeeds, but takes
9032    # about 5 minutes as the teststring grows exponentially.
9033    # Worse, since 9x/ME are not pre-emptively multitasking,
9034    # you end up with a "frozen" computer, even though with patience
9035    # the test eventually succeeds (with a max line length of 256k).
9036    # Instead, let's just punt: use the minimum linelength reported by
9037    # all of the supported platforms: 8192 (on NT/2K/XP).
9038    lt_cv_sys_max_cmd_len=8192;
9039    ;;
9040
9041  mint*)
9042    # On MiNT this can take a long time and run out of memory.
9043    lt_cv_sys_max_cmd_len=8192;
9044    ;;
9045
9046  amigaos*)
9047    # On AmigaOS with pdksh, this test takes hours, literally.
9048    # So we just punt and use a minimum line length of 8192.
9049    lt_cv_sys_max_cmd_len=8192;
9050    ;;
9051
9052  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9053    # This has been around since 386BSD, at least.  Likely further.
9054    if test -x /sbin/sysctl; then
9055      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9056    elif test -x /usr/sbin/sysctl; then
9057      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9058    else
9059      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
9060    fi
9061    # And add a safety zone
9062    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9063    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9064    ;;
9065
9066  interix*)
9067    # We know the value 262144 and hardcode it with a safety zone (like BSD)
9068    lt_cv_sys_max_cmd_len=196608
9069    ;;
9070
9071  osf*)
9072    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9073    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9074    # nice to cause kernel panics so lets avoid the loop below.
9075    # First set a reasonable default.
9076    lt_cv_sys_max_cmd_len=16384
9077    #
9078    if test -x /sbin/sysconfig; then
9079      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9080        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9081      esac
9082    fi
9083    ;;
9084  sco3.2v5*)
9085    lt_cv_sys_max_cmd_len=102400
9086    ;;
9087  sysv5* | sco5v6* | sysv4.2uw2*)
9088    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9089    if test -n "$kargmax"; then
9090      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
9091    else
9092      lt_cv_sys_max_cmd_len=32768
9093    fi
9094    ;;
9095  *)
9096    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9097    if test -n "$lt_cv_sys_max_cmd_len"; then
9098      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9099      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9100    else
9101      # Make teststring a little bigger before we do anything with it.
9102      # a 1K string should be a reasonable start.
9103      for i in 1 2 3 4 5 6 7 8 ; do
9104        teststring=$teststring$teststring
9105      done
9106      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9107      # If test is not a shell built-in, we'll probably end up computing a
9108      # maximum length that is only half of the actual maximum length, but
9109      # we can't tell.
9110      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9111	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9112	      test $i != 17 # 1/2 MB should be enough
9113      do
9114        i=`expr $i + 1`
9115        teststring=$teststring$teststring
9116      done
9117      # Only check the string length outside the loop.
9118      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9119      teststring=
9120      # Add a significant safety factor because C++ compilers can tack on
9121      # massive amounts of additional arguments before passing them to the
9122      # linker.  It appears as though 1/2 is a usable value.
9123      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9124    fi
9125    ;;
9126  esac
9127
9128fi
9129
9130if test -n $lt_cv_sys_max_cmd_len ; then
9131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9132$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9133else
9134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9135$as_echo "none" >&6; }
9136fi
9137max_cmd_len=$lt_cv_sys_max_cmd_len
9138
9139
9140
9141
9142
9143
9144: ${CP="cp -f"}
9145: ${MV="mv -f"}
9146: ${RM="rm -f"}
9147
9148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9149$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9150# Try some XSI features
9151xsi_shell=no
9152( _lt_dummy="a/b/c"
9153  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9154      = c,a/b,b/c, \
9155    && eval 'test $(( 1 + 1 )) -eq 2 \
9156    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9157  && xsi_shell=yes
9158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9159$as_echo "$xsi_shell" >&6; }
9160
9161
9162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9163$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9164lt_shell_append=no
9165( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9166    >/dev/null 2>&1 \
9167  && lt_shell_append=yes
9168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9169$as_echo "$lt_shell_append" >&6; }
9170
9171
9172if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9173  lt_unset=unset
9174else
9175  lt_unset=false
9176fi
9177
9178
9179
9180
9181
9182# test EBCDIC or ASCII
9183case `echo X|tr X '\101'` in
9184 A) # ASCII based system
9185    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9186  lt_SP2NL='tr \040 \012'
9187  lt_NL2SP='tr \015\012 \040\040'
9188  ;;
9189 *) # EBCDIC based system
9190  lt_SP2NL='tr \100 \n'
9191  lt_NL2SP='tr \r\n \100\100'
9192  ;;
9193esac
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9204$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9205if ${lt_cv_to_host_file_cmd+:} false; then :
9206  $as_echo_n "(cached) " >&6
9207else
9208  case $host in
9209  *-*-mingw* )
9210    case $build in
9211      *-*-mingw* ) # actually msys
9212        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9213        ;;
9214      *-*-cygwin* )
9215        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9216        ;;
9217      * ) # otherwise, assume *nix
9218        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9219        ;;
9220    esac
9221    ;;
9222  *-*-cygwin* )
9223    case $build in
9224      *-*-mingw* ) # actually msys
9225        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9226        ;;
9227      *-*-cygwin* )
9228        lt_cv_to_host_file_cmd=func_convert_file_noop
9229        ;;
9230      * ) # otherwise, assume *nix
9231        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9232        ;;
9233    esac
9234    ;;
9235  * ) # unhandled hosts (and "normal" native builds)
9236    lt_cv_to_host_file_cmd=func_convert_file_noop
9237    ;;
9238esac
9239
9240fi
9241
9242to_host_file_cmd=$lt_cv_to_host_file_cmd
9243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9244$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9245
9246
9247
9248
9249
9250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9251$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9252if ${lt_cv_to_tool_file_cmd+:} false; then :
9253  $as_echo_n "(cached) " >&6
9254else
9255  #assume ordinary cross tools, or native build.
9256lt_cv_to_tool_file_cmd=func_convert_file_noop
9257case $host in
9258  *-*-mingw* )
9259    case $build in
9260      *-*-mingw* ) # actually msys
9261        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9262        ;;
9263    esac
9264    ;;
9265esac
9266
9267fi
9268
9269to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9271$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9272
9273
9274
9275
9276
9277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9278$as_echo_n "checking for $LD option to reload object files... " >&6; }
9279if ${lt_cv_ld_reload_flag+:} false; then :
9280  $as_echo_n "(cached) " >&6
9281else
9282  lt_cv_ld_reload_flag='-r'
9283fi
9284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9285$as_echo "$lt_cv_ld_reload_flag" >&6; }
9286reload_flag=$lt_cv_ld_reload_flag
9287case $reload_flag in
9288"" | " "*) ;;
9289*) reload_flag=" $reload_flag" ;;
9290esac
9291reload_cmds='$LD$reload_flag -o $output$reload_objs'
9292case $host_os in
9293  cygwin* | mingw* | pw32* | cegcc*)
9294    if test "$GCC" != yes; then
9295      reload_cmds=false
9296    fi
9297    ;;
9298  darwin*)
9299    if test "$GCC" = yes; then
9300      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9301    else
9302      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9303    fi
9304    ;;
9305esac
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315if test -n "$ac_tool_prefix"; then
9316  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9317set dummy ${ac_tool_prefix}objdump; ac_word=$2
9318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9319$as_echo_n "checking for $ac_word... " >&6; }
9320if ${ac_cv_prog_OBJDUMP+:} false; then :
9321  $as_echo_n "(cached) " >&6
9322else
9323  if test -n "$OBJDUMP"; then
9324  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9325else
9326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9327for as_dir in $PATH
9328do
9329  IFS=$as_save_IFS
9330  test -z "$as_dir" && as_dir=.
9331    for ac_exec_ext in '' $ac_executable_extensions; do
9332  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9333    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9335    break 2
9336  fi
9337done
9338  done
9339IFS=$as_save_IFS
9340
9341fi
9342fi
9343OBJDUMP=$ac_cv_prog_OBJDUMP
9344if test -n "$OBJDUMP"; then
9345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9346$as_echo "$OBJDUMP" >&6; }
9347else
9348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9349$as_echo "no" >&6; }
9350fi
9351
9352
9353fi
9354if test -z "$ac_cv_prog_OBJDUMP"; then
9355  ac_ct_OBJDUMP=$OBJDUMP
9356  # Extract the first word of "objdump", so it can be a program name with args.
9357set dummy objdump; ac_word=$2
9358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9359$as_echo_n "checking for $ac_word... " >&6; }
9360if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9361  $as_echo_n "(cached) " >&6
9362else
9363  if test -n "$ac_ct_OBJDUMP"; then
9364  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9365else
9366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9367for as_dir in $PATH
9368do
9369  IFS=$as_save_IFS
9370  test -z "$as_dir" && as_dir=.
9371    for ac_exec_ext in '' $ac_executable_extensions; do
9372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9373    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9375    break 2
9376  fi
9377done
9378  done
9379IFS=$as_save_IFS
9380
9381fi
9382fi
9383ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9384if test -n "$ac_ct_OBJDUMP"; then
9385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9386$as_echo "$ac_ct_OBJDUMP" >&6; }
9387else
9388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9389$as_echo "no" >&6; }
9390fi
9391
9392  if test "x$ac_ct_OBJDUMP" = x; then
9393    OBJDUMP="false"
9394  else
9395    case $cross_compiling:$ac_tool_warned in
9396yes:)
9397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9399ac_tool_warned=yes ;;
9400esac
9401    OBJDUMP=$ac_ct_OBJDUMP
9402  fi
9403else
9404  OBJDUMP="$ac_cv_prog_OBJDUMP"
9405fi
9406
9407test -z "$OBJDUMP" && OBJDUMP=objdump
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9418$as_echo_n "checking how to recognize dependent libraries... " >&6; }
9419if ${lt_cv_deplibs_check_method+:} false; then :
9420  $as_echo_n "(cached) " >&6
9421else
9422  lt_cv_file_magic_cmd='$MAGIC_CMD'
9423lt_cv_file_magic_test_file=
9424lt_cv_deplibs_check_method='unknown'
9425# Need to set the preceding variable on all platforms that support
9426# interlibrary dependencies.
9427# 'none' -- dependencies not supported.
9428# `unknown' -- same as none, but documents that we really don't know.
9429# 'pass_all' -- all dependencies passed with no checks.
9430# 'test_compile' -- check by making test program.
9431# 'file_magic [[regex]]' -- check by looking for files in library path
9432# which responds to the $file_magic_cmd with a given extended regex.
9433# If you have `file' or equivalent on your system and you're not sure
9434# whether `pass_all' will *always* work, you probably want this one.
9435
9436case $host_os in
9437aix[4-9]*)
9438  lt_cv_deplibs_check_method=pass_all
9439  ;;
9440
9441beos*)
9442  lt_cv_deplibs_check_method=pass_all
9443  ;;
9444
9445bsdi[45]*)
9446  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9447  lt_cv_file_magic_cmd='/usr/bin/file -L'
9448  lt_cv_file_magic_test_file=/shlib/libc.so
9449  ;;
9450
9451cygwin*)
9452  # func_win32_libid is a shell function defined in ltmain.sh
9453  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9454  lt_cv_file_magic_cmd='func_win32_libid'
9455  ;;
9456
9457mingw* | pw32*)
9458  # Base MSYS/MinGW do not provide the 'file' command needed by
9459  # func_win32_libid shell function, so use a weaker test based on 'objdump',
9460  # unless we find 'file', for example because we are cross-compiling.
9461  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
9462  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
9463    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9464    lt_cv_file_magic_cmd='func_win32_libid'
9465  else
9466    # Keep this pattern in sync with the one in func_win32_libid.
9467    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9468    lt_cv_file_magic_cmd='$OBJDUMP -f'
9469  fi
9470  ;;
9471
9472cegcc*)
9473  # use the weaker test based on 'objdump'. See mingw*.
9474  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9475  lt_cv_file_magic_cmd='$OBJDUMP -f'
9476  ;;
9477
9478darwin* | rhapsody*)
9479  lt_cv_deplibs_check_method=pass_all
9480  ;;
9481
9482freebsd* | dragonfly*)
9483  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9484    case $host_cpu in
9485    i*86 )
9486      # Not sure whether the presence of OpenBSD here was a mistake.
9487      # Let's accept both of them until this is cleared up.
9488      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9489      lt_cv_file_magic_cmd=/usr/bin/file
9490      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9491      ;;
9492    esac
9493  else
9494    lt_cv_deplibs_check_method=pass_all
9495  fi
9496  ;;
9497
9498gnu*)
9499  lt_cv_deplibs_check_method=pass_all
9500  ;;
9501
9502haiku*)
9503  lt_cv_deplibs_check_method=pass_all
9504  ;;
9505
9506hpux10.20* | hpux11*)
9507  lt_cv_file_magic_cmd=/usr/bin/file
9508  case $host_cpu in
9509  ia64*)
9510    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9511    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9512    ;;
9513  hppa*64*)
9514    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]'
9515    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9516    ;;
9517  *)
9518    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9519    lt_cv_file_magic_test_file=/usr/lib/libc.sl
9520    ;;
9521  esac
9522  ;;
9523
9524interix[3-9]*)
9525  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9526  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9527  ;;
9528
9529irix5* | irix6* | nonstopux*)
9530  case $LD in
9531  *-32|*"-32 ") libmagic=32-bit;;
9532  *-n32|*"-n32 ") libmagic=N32;;
9533  *-64|*"-64 ") libmagic=64-bit;;
9534  *) libmagic=never-match;;
9535  esac
9536  lt_cv_deplibs_check_method=pass_all
9537  ;;
9538
9539# This must be Linux ELF.
9540linux* | k*bsd*-gnu | kopensolaris*-gnu)
9541  lt_cv_deplibs_check_method=pass_all
9542  ;;
9543
9544netbsd*)
9545  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9546    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9547  else
9548    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9549  fi
9550  ;;
9551
9552newos6*)
9553  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9554  lt_cv_file_magic_cmd=/usr/bin/file
9555  lt_cv_file_magic_test_file=/usr/lib/libnls.so
9556  ;;
9557
9558*nto* | *qnx*)
9559  lt_cv_deplibs_check_method=pass_all
9560  ;;
9561
9562openbsd*)
9563  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9564    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9565  else
9566    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9567  fi
9568  ;;
9569
9570osf3* | osf4* | osf5*)
9571  lt_cv_deplibs_check_method=pass_all
9572  ;;
9573
9574rdos*)
9575  lt_cv_deplibs_check_method=pass_all
9576  ;;
9577
9578solaris*)
9579  lt_cv_deplibs_check_method=pass_all
9580  ;;
9581
9582sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9583  lt_cv_deplibs_check_method=pass_all
9584  ;;
9585
9586sysv4 | sysv4.3*)
9587  case $host_vendor in
9588  motorola)
9589    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]'
9590    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9591    ;;
9592  ncr)
9593    lt_cv_deplibs_check_method=pass_all
9594    ;;
9595  sequent)
9596    lt_cv_file_magic_cmd='/bin/file'
9597    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9598    ;;
9599  sni)
9600    lt_cv_file_magic_cmd='/bin/file'
9601    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9602    lt_cv_file_magic_test_file=/lib/libc.so
9603    ;;
9604  siemens)
9605    lt_cv_deplibs_check_method=pass_all
9606    ;;
9607  pc)
9608    lt_cv_deplibs_check_method=pass_all
9609    ;;
9610  esac
9611  ;;
9612
9613tpf*)
9614  lt_cv_deplibs_check_method=pass_all
9615  ;;
9616esac
9617
9618fi
9619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9620$as_echo "$lt_cv_deplibs_check_method" >&6; }
9621
9622file_magic_glob=
9623want_nocaseglob=no
9624if test "$build" = "$host"; then
9625  case $host_os in
9626  mingw* | pw32*)
9627    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9628      want_nocaseglob=yes
9629    else
9630      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9631    fi
9632    ;;
9633  esac
9634fi
9635
9636file_magic_cmd=$lt_cv_file_magic_cmd
9637deplibs_check_method=$lt_cv_deplibs_check_method
9638test -z "$deplibs_check_method" && deplibs_check_method=unknown
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661if test -n "$ac_tool_prefix"; then
9662  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9663set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9665$as_echo_n "checking for $ac_word... " >&6; }
9666if ${ac_cv_prog_DLLTOOL+:} false; then :
9667  $as_echo_n "(cached) " >&6
9668else
9669  if test -n "$DLLTOOL"; then
9670  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9671else
9672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9673for as_dir in $PATH
9674do
9675  IFS=$as_save_IFS
9676  test -z "$as_dir" && as_dir=.
9677    for ac_exec_ext in '' $ac_executable_extensions; do
9678  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9679    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9681    break 2
9682  fi
9683done
9684  done
9685IFS=$as_save_IFS
9686
9687fi
9688fi
9689DLLTOOL=$ac_cv_prog_DLLTOOL
9690if test -n "$DLLTOOL"; then
9691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9692$as_echo "$DLLTOOL" >&6; }
9693else
9694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9695$as_echo "no" >&6; }
9696fi
9697
9698
9699fi
9700if test -z "$ac_cv_prog_DLLTOOL"; then
9701  ac_ct_DLLTOOL=$DLLTOOL
9702  # Extract the first word of "dlltool", so it can be a program name with args.
9703set dummy dlltool; ac_word=$2
9704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9705$as_echo_n "checking for $ac_word... " >&6; }
9706if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9707  $as_echo_n "(cached) " >&6
9708else
9709  if test -n "$ac_ct_DLLTOOL"; then
9710  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9711else
9712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9713for as_dir in $PATH
9714do
9715  IFS=$as_save_IFS
9716  test -z "$as_dir" && as_dir=.
9717    for ac_exec_ext in '' $ac_executable_extensions; do
9718  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9719    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9720    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9721    break 2
9722  fi
9723done
9724  done
9725IFS=$as_save_IFS
9726
9727fi
9728fi
9729ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9730if test -n "$ac_ct_DLLTOOL"; then
9731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9732$as_echo "$ac_ct_DLLTOOL" >&6; }
9733else
9734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735$as_echo "no" >&6; }
9736fi
9737
9738  if test "x$ac_ct_DLLTOOL" = x; then
9739    DLLTOOL="false"
9740  else
9741    case $cross_compiling:$ac_tool_warned in
9742yes:)
9743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9745ac_tool_warned=yes ;;
9746esac
9747    DLLTOOL=$ac_ct_DLLTOOL
9748  fi
9749else
9750  DLLTOOL="$ac_cv_prog_DLLTOOL"
9751fi
9752
9753test -z "$DLLTOOL" && DLLTOOL=dlltool
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9765$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9766if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9767  $as_echo_n "(cached) " >&6
9768else
9769  lt_cv_sharedlib_from_linklib_cmd='unknown'
9770
9771case $host_os in
9772cygwin* | mingw* | pw32* | cegcc*)
9773  # two different shell functions defined in ltmain.sh
9774  # decide which to use based on capabilities of $DLLTOOL
9775  case `$DLLTOOL --help 2>&1` in
9776  *--identify-strict*)
9777    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9778    ;;
9779  *)
9780    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9781    ;;
9782  esac
9783  ;;
9784*)
9785  # fallback: assume linklib IS sharedlib
9786  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9787  ;;
9788esac
9789
9790fi
9791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9792$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9793sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9794test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9795
9796
9797
9798
9799
9800
9801
9802if test -n "$ac_tool_prefix"; then
9803  for ac_prog in ar
9804  do
9805    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9806set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9808$as_echo_n "checking for $ac_word... " >&6; }
9809if ${ac_cv_prog_AR+:} false; then :
9810  $as_echo_n "(cached) " >&6
9811else
9812  if test -n "$AR"; then
9813  ac_cv_prog_AR="$AR" # Let the user override the test.
9814else
9815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816for as_dir in $PATH
9817do
9818  IFS=$as_save_IFS
9819  test -z "$as_dir" && as_dir=.
9820    for ac_exec_ext in '' $ac_executable_extensions; do
9821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9822    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9824    break 2
9825  fi
9826done
9827  done
9828IFS=$as_save_IFS
9829
9830fi
9831fi
9832AR=$ac_cv_prog_AR
9833if test -n "$AR"; then
9834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9835$as_echo "$AR" >&6; }
9836else
9837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838$as_echo "no" >&6; }
9839fi
9840
9841
9842    test -n "$AR" && break
9843  done
9844fi
9845if test -z "$AR"; then
9846  ac_ct_AR=$AR
9847  for ac_prog in ar
9848do
9849  # Extract the first word of "$ac_prog", so it can be a program name with args.
9850set dummy $ac_prog; ac_word=$2
9851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9852$as_echo_n "checking for $ac_word... " >&6; }
9853if ${ac_cv_prog_ac_ct_AR+:} false; then :
9854  $as_echo_n "(cached) " >&6
9855else
9856  if test -n "$ac_ct_AR"; then
9857  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9858else
9859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9860for as_dir in $PATH
9861do
9862  IFS=$as_save_IFS
9863  test -z "$as_dir" && as_dir=.
9864    for ac_exec_ext in '' $ac_executable_extensions; do
9865  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9866    ac_cv_prog_ac_ct_AR="$ac_prog"
9867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9868    break 2
9869  fi
9870done
9871  done
9872IFS=$as_save_IFS
9873
9874fi
9875fi
9876ac_ct_AR=$ac_cv_prog_ac_ct_AR
9877if test -n "$ac_ct_AR"; then
9878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9879$as_echo "$ac_ct_AR" >&6; }
9880else
9881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9882$as_echo "no" >&6; }
9883fi
9884
9885
9886  test -n "$ac_ct_AR" && break
9887done
9888
9889  if test "x$ac_ct_AR" = x; then
9890    AR="false"
9891  else
9892    case $cross_compiling:$ac_tool_warned in
9893yes:)
9894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9896ac_tool_warned=yes ;;
9897esac
9898    AR=$ac_ct_AR
9899  fi
9900fi
9901
9902: ${AR=ar}
9903: ${AR_FLAGS=cru}
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9916$as_echo_n "checking for archiver @FILE support... " >&6; }
9917if ${lt_cv_ar_at_file+:} false; then :
9918  $as_echo_n "(cached) " >&6
9919else
9920  lt_cv_ar_at_file=no
9921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9922/* end confdefs.h.  */
9923
9924int
9925main ()
9926{
9927
9928  ;
9929  return 0;
9930}
9931_ACEOF
9932if ac_fn_c_try_compile "$LINENO"; then :
9933  echo conftest.$ac_objext > conftest.lst
9934      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9935      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9936  (eval $lt_ar_try) 2>&5
9937  ac_status=$?
9938  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9939  test $ac_status = 0; }
9940      if test "$ac_status" -eq 0; then
9941	# Ensure the archiver fails upon bogus file names.
9942	rm -f conftest.$ac_objext libconftest.a
9943	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9944  (eval $lt_ar_try) 2>&5
9945  ac_status=$?
9946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9947  test $ac_status = 0; }
9948	if test "$ac_status" -ne 0; then
9949          lt_cv_ar_at_file=@
9950        fi
9951      fi
9952      rm -f conftest.* libconftest.a
9953
9954fi
9955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9956
9957fi
9958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9959$as_echo "$lt_cv_ar_at_file" >&6; }
9960
9961if test "x$lt_cv_ar_at_file" = xno; then
9962  archiver_list_spec=
9963else
9964  archiver_list_spec=$lt_cv_ar_at_file
9965fi
9966
9967
9968
9969
9970
9971
9972
9973if test -n "$ac_tool_prefix"; then
9974  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9975set dummy ${ac_tool_prefix}strip; ac_word=$2
9976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9977$as_echo_n "checking for $ac_word... " >&6; }
9978if ${ac_cv_prog_STRIP+:} false; then :
9979  $as_echo_n "(cached) " >&6
9980else
9981  if test -n "$STRIP"; then
9982  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9983else
9984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985for as_dir in $PATH
9986do
9987  IFS=$as_save_IFS
9988  test -z "$as_dir" && as_dir=.
9989    for ac_exec_ext in '' $ac_executable_extensions; do
9990  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9991    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9993    break 2
9994  fi
9995done
9996  done
9997IFS=$as_save_IFS
9998
9999fi
10000fi
10001STRIP=$ac_cv_prog_STRIP
10002if test -n "$STRIP"; then
10003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10004$as_echo "$STRIP" >&6; }
10005else
10006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10007$as_echo "no" >&6; }
10008fi
10009
10010
10011fi
10012if test -z "$ac_cv_prog_STRIP"; then
10013  ac_ct_STRIP=$STRIP
10014  # Extract the first word of "strip", so it can be a program name with args.
10015set dummy strip; ac_word=$2
10016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10017$as_echo_n "checking for $ac_word... " >&6; }
10018if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10019  $as_echo_n "(cached) " >&6
10020else
10021  if test -n "$ac_ct_STRIP"; then
10022  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10023else
10024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10025for as_dir in $PATH
10026do
10027  IFS=$as_save_IFS
10028  test -z "$as_dir" && as_dir=.
10029    for ac_exec_ext in '' $ac_executable_extensions; do
10030  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10031    ac_cv_prog_ac_ct_STRIP="strip"
10032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10033    break 2
10034  fi
10035done
10036  done
10037IFS=$as_save_IFS
10038
10039fi
10040fi
10041ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10042if test -n "$ac_ct_STRIP"; then
10043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10044$as_echo "$ac_ct_STRIP" >&6; }
10045else
10046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10047$as_echo "no" >&6; }
10048fi
10049
10050  if test "x$ac_ct_STRIP" = x; then
10051    STRIP=":"
10052  else
10053    case $cross_compiling:$ac_tool_warned in
10054yes:)
10055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10057ac_tool_warned=yes ;;
10058esac
10059    STRIP=$ac_ct_STRIP
10060  fi
10061else
10062  STRIP="$ac_cv_prog_STRIP"
10063fi
10064
10065test -z "$STRIP" && STRIP=:
10066
10067
10068
10069
10070
10071
10072if test -n "$ac_tool_prefix"; then
10073  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10074set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076$as_echo_n "checking for $ac_word... " >&6; }
10077if ${ac_cv_prog_RANLIB+:} false; then :
10078  $as_echo_n "(cached) " >&6
10079else
10080  if test -n "$RANLIB"; then
10081  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10082else
10083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084for as_dir in $PATH
10085do
10086  IFS=$as_save_IFS
10087  test -z "$as_dir" && as_dir=.
10088    for ac_exec_ext in '' $ac_executable_extensions; do
10089  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10090    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10091    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10092    break 2
10093  fi
10094done
10095  done
10096IFS=$as_save_IFS
10097
10098fi
10099fi
10100RANLIB=$ac_cv_prog_RANLIB
10101if test -n "$RANLIB"; then
10102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10103$as_echo "$RANLIB" >&6; }
10104else
10105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10106$as_echo "no" >&6; }
10107fi
10108
10109
10110fi
10111if test -z "$ac_cv_prog_RANLIB"; then
10112  ac_ct_RANLIB=$RANLIB
10113  # Extract the first word of "ranlib", so it can be a program name with args.
10114set dummy ranlib; ac_word=$2
10115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10116$as_echo_n "checking for $ac_word... " >&6; }
10117if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10118  $as_echo_n "(cached) " >&6
10119else
10120  if test -n "$ac_ct_RANLIB"; then
10121  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10122else
10123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10124for as_dir in $PATH
10125do
10126  IFS=$as_save_IFS
10127  test -z "$as_dir" && as_dir=.
10128    for ac_exec_ext in '' $ac_executable_extensions; do
10129  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10130    ac_cv_prog_ac_ct_RANLIB="ranlib"
10131    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10132    break 2
10133  fi
10134done
10135  done
10136IFS=$as_save_IFS
10137
10138fi
10139fi
10140ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10141if test -n "$ac_ct_RANLIB"; then
10142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10143$as_echo "$ac_ct_RANLIB" >&6; }
10144else
10145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10146$as_echo "no" >&6; }
10147fi
10148
10149  if test "x$ac_ct_RANLIB" = x; then
10150    RANLIB=":"
10151  else
10152    case $cross_compiling:$ac_tool_warned in
10153yes:)
10154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10156ac_tool_warned=yes ;;
10157esac
10158    RANLIB=$ac_ct_RANLIB
10159  fi
10160else
10161  RANLIB="$ac_cv_prog_RANLIB"
10162fi
10163
10164test -z "$RANLIB" && RANLIB=:
10165
10166
10167
10168
10169
10170
10171# Determine commands to create old-style static archives.
10172old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10173old_postinstall_cmds='chmod 644 $oldlib'
10174old_postuninstall_cmds=
10175
10176if test -n "$RANLIB"; then
10177  case $host_os in
10178  openbsd*)
10179    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10180    ;;
10181  *)
10182    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10183    ;;
10184  esac
10185  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10186fi
10187
10188case $host_os in
10189  darwin*)
10190    lock_old_archive_extraction=yes ;;
10191  *)
10192    lock_old_archive_extraction=no ;;
10193esac
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233# If no C compiler was specified, use CC.
10234LTCC=${LTCC-"$CC"}
10235
10236# If no C compiler flags were specified, use CFLAGS.
10237LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10238
10239# Allow CC to be a program name with arguments.
10240compiler=$CC
10241
10242
10243# Check for command to grab the raw symbol name followed by C symbol from nm.
10244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10245$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10246if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10247  $as_echo_n "(cached) " >&6
10248else
10249
10250# These are sane defaults that work on at least a few old systems.
10251# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10252
10253# Character class describing NM global symbol codes.
10254symcode='[BCDEGRST]'
10255
10256# Regexp to match symbols that can be accessed directly from C.
10257sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10258
10259# Define system-specific variables.
10260case $host_os in
10261aix*)
10262  symcode='[BCDT]'
10263  ;;
10264cygwin* | mingw* | pw32* | cegcc*)
10265  symcode='[ABCDGISTW]'
10266  ;;
10267hpux*)
10268  if test "$host_cpu" = ia64; then
10269    symcode='[ABCDEGRST]'
10270  fi
10271  ;;
10272irix* | nonstopux*)
10273  symcode='[BCDEGRST]'
10274  ;;
10275osf*)
10276  symcode='[BCDEGQRST]'
10277  ;;
10278solaris*)
10279  symcode='[BDRT]'
10280  ;;
10281sco3.2v5*)
10282  symcode='[DT]'
10283  ;;
10284sysv4.2uw2*)
10285  symcode='[DT]'
10286  ;;
10287sysv5* | sco5v6* | unixware* | OpenUNIX*)
10288  symcode='[ABDT]'
10289  ;;
10290sysv4)
10291  symcode='[DFNSTU]'
10292  ;;
10293esac
10294
10295# If we're using GNU nm, then use its standard symbol codes.
10296case `$NM -V 2>&1` in
10297*GNU* | *'with BFD'*)
10298  symcode='[ABCDGIRSTW]' ;;
10299esac
10300
10301# Transform an extracted symbol line into a proper C declaration.
10302# Some systems (esp. on ia64) link data and code symbols differently,
10303# so use this general approach.
10304lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10305
10306# Transform an extracted symbol line into symbol name and symbol address
10307lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
10308lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
10309
10310# Handle CRLF in mingw tool chain
10311opt_cr=
10312case $build_os in
10313mingw*)
10314  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10315  ;;
10316esac
10317
10318# Try without a prefix underscore, then with it.
10319for ac_symprfx in "" "_"; do
10320
10321  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10322  symxfrm="\\1 $ac_symprfx\\2 \\2"
10323
10324  # Write the raw and C identifiers.
10325  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10326    # Fake it for dumpbin and say T for any non-static function
10327    # and D for any global variable.
10328    # Also find C++ and __fastcall symbols from MSVC++,
10329    # which start with @ or ?.
10330    lt_cv_sys_global_symbol_pipe="$AWK '"\
10331"     {last_section=section; section=\$ 3};"\
10332"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10333"     \$ 0!~/External *\|/{next};"\
10334"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10335"     {if(hide[section]) next};"\
10336"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10337"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10338"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
10339"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10340"     ' prfx=^$ac_symprfx"
10341  else
10342    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10343  fi
10344  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10345
10346  # Check to see that the pipe works correctly.
10347  pipe_works=no
10348
10349  rm -f conftest*
10350  cat > conftest.$ac_ext <<_LT_EOF
10351#ifdef __cplusplus
10352extern "C" {
10353#endif
10354char nm_test_var;
10355void nm_test_func(void);
10356void nm_test_func(void){}
10357#ifdef __cplusplus
10358}
10359#endif
10360int main(){nm_test_var='a';nm_test_func();return(0);}
10361_LT_EOF
10362
10363  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10364  (eval $ac_compile) 2>&5
10365  ac_status=$?
10366  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10367  test $ac_status = 0; }; then
10368    # Now try to grab the symbols.
10369    nlist=conftest.nm
10370    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10371  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10372  ac_status=$?
10373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10374  test $ac_status = 0; } && test -s "$nlist"; then
10375      # Try sorting and uniquifying the output.
10376      if sort "$nlist" | uniq > "$nlist"T; then
10377	mv -f "$nlist"T "$nlist"
10378      else
10379	rm -f "$nlist"T
10380      fi
10381
10382      # Make sure that we snagged all the symbols we need.
10383      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10384	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10385	  cat <<_LT_EOF > conftest.$ac_ext
10386/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10387#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
10388/* DATA imports from DLLs on WIN32 con't be const, because runtime
10389   relocations are performed -- see ld's documentation on pseudo-relocs.  */
10390# define LT_DLSYM_CONST
10391#elif defined(__osf__)
10392/* This system does not cope well with relocations in const data.  */
10393# define LT_DLSYM_CONST
10394#else
10395# define LT_DLSYM_CONST const
10396#endif
10397
10398#ifdef __cplusplus
10399extern "C" {
10400#endif
10401
10402_LT_EOF
10403	  # Now generate the symbol file.
10404	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10405
10406	  cat <<_LT_EOF >> conftest.$ac_ext
10407
10408/* The mapping between symbol names and symbols.  */
10409LT_DLSYM_CONST struct {
10410  const char *name;
10411  void       *address;
10412}
10413lt__PROGRAM__LTX_preloaded_symbols[] =
10414{
10415  { "@PROGRAM@", (void *) 0 },
10416_LT_EOF
10417	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10418	  cat <<\_LT_EOF >> conftest.$ac_ext
10419  {0, (void *) 0}
10420};
10421
10422/* This works around a problem in FreeBSD linker */
10423#ifdef FREEBSD_WORKAROUND
10424static const void *lt_preloaded_setup() {
10425  return lt__PROGRAM__LTX_preloaded_symbols;
10426}
10427#endif
10428
10429#ifdef __cplusplus
10430}
10431#endif
10432_LT_EOF
10433	  # Now try linking the two files.
10434	  mv conftest.$ac_objext conftstm.$ac_objext
10435	  lt_globsym_save_LIBS=$LIBS
10436	  lt_globsym_save_CFLAGS=$CFLAGS
10437	  LIBS="conftstm.$ac_objext"
10438	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10439	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10440  (eval $ac_link) 2>&5
10441  ac_status=$?
10442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10443  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10444	    pipe_works=yes
10445	  fi
10446	  LIBS=$lt_globsym_save_LIBS
10447	  CFLAGS=$lt_globsym_save_CFLAGS
10448	else
10449	  echo "cannot find nm_test_func in $nlist" >&5
10450	fi
10451      else
10452	echo "cannot find nm_test_var in $nlist" >&5
10453      fi
10454    else
10455      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10456    fi
10457  else
10458    echo "$progname: failed program was:" >&5
10459    cat conftest.$ac_ext >&5
10460  fi
10461  rm -rf conftest* conftst*
10462
10463  # Do not use the global_symbol_pipe unless it works.
10464  if test "$pipe_works" = yes; then
10465    break
10466  else
10467    lt_cv_sys_global_symbol_pipe=
10468  fi
10469done
10470
10471fi
10472
10473if test -z "$lt_cv_sys_global_symbol_pipe"; then
10474  lt_cv_sys_global_symbol_to_cdecl=
10475fi
10476if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10478$as_echo "failed" >&6; }
10479else
10480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10481$as_echo "ok" >&6; }
10482fi
10483
10484# Response file support.
10485if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10486  nm_file_list_spec='@'
10487elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10488  nm_file_list_spec='@'
10489fi
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10518$as_echo_n "checking for sysroot... " >&6; }
10519
10520# Check whether --with-sysroot was given.
10521if test "${with_sysroot+set}" = set; then :
10522  withval=$with_sysroot;
10523else
10524  with_sysroot=no
10525fi
10526
10527
10528lt_sysroot=
10529case ${with_sysroot} in #(
10530 yes)
10531   if test "$GCC" = yes; then
10532     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10533   fi
10534   ;; #(
10535 /*)
10536   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10537   ;; #(
10538 no|'')
10539   ;; #(
10540 *)
10541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
10542$as_echo "${with_sysroot}" >&6; }
10543   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10544   ;;
10545esac
10546
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10548$as_echo "${lt_sysroot:-no}" >&6; }
10549
10550
10551
10552
10553
10554# Check whether --enable-libtool-lock was given.
10555if test "${enable_libtool_lock+set}" = set; then :
10556  enableval=$enable_libtool_lock;
10557fi
10558
10559test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10560
10561# Some flags need to be propagated to the compiler or linker for good
10562# libtool support.
10563case $host in
10564ia64-*-hpux*)
10565  # Find out which ABI we are using.
10566  echo 'int i;' > conftest.$ac_ext
10567  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10568  (eval $ac_compile) 2>&5
10569  ac_status=$?
10570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10571  test $ac_status = 0; }; then
10572    case `/usr/bin/file conftest.$ac_objext` in
10573      *ELF-32*)
10574	HPUX_IA64_MODE="32"
10575	;;
10576      *ELF-64*)
10577	HPUX_IA64_MODE="64"
10578	;;
10579    esac
10580  fi
10581  rm -rf conftest*
10582  ;;
10583*-*-irix6*)
10584  # Find out which ABI we are using.
10585  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10586  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10587  (eval $ac_compile) 2>&5
10588  ac_status=$?
10589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10590  test $ac_status = 0; }; then
10591    if test "$lt_cv_prog_gnu_ld" = yes; then
10592      case `/usr/bin/file conftest.$ac_objext` in
10593	*32-bit*)
10594	  LD="${LD-ld} -melf32bsmip"
10595	  ;;
10596	*N32*)
10597	  LD="${LD-ld} -melf32bmipn32"
10598	  ;;
10599	*64-bit*)
10600	  LD="${LD-ld} -melf64bmip"
10601	;;
10602      esac
10603    else
10604      case `/usr/bin/file conftest.$ac_objext` in
10605	*32-bit*)
10606	  LD="${LD-ld} -32"
10607	  ;;
10608	*N32*)
10609	  LD="${LD-ld} -n32"
10610	  ;;
10611	*64-bit*)
10612	  LD="${LD-ld} -64"
10613	  ;;
10614      esac
10615    fi
10616  fi
10617  rm -rf conftest*
10618  ;;
10619
10620x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10621s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10622  # Find out which ABI we are using.
10623  echo 'int i;' > conftest.$ac_ext
10624  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10625  (eval $ac_compile) 2>&5
10626  ac_status=$?
10627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10628  test $ac_status = 0; }; then
10629    case `/usr/bin/file conftest.o` in
10630      *32-bit*)
10631	case $host in
10632	  x86_64-*kfreebsd*-gnu)
10633	    LD="${LD-ld} -m elf_i386_fbsd"
10634	    ;;
10635	  x86_64-*linux*)
10636	    LD="${LD-ld} -m elf_i386"
10637	    ;;
10638	  ppc64-*linux*|powerpc64-*linux*)
10639	    LD="${LD-ld} -m elf32ppclinux"
10640	    ;;
10641	  s390x-*linux*)
10642	    LD="${LD-ld} -m elf_s390"
10643	    ;;
10644	  sparc64-*linux*)
10645	    LD="${LD-ld} -m elf32_sparc"
10646	    ;;
10647	esac
10648	;;
10649      *64-bit*)
10650	case $host in
10651	  x86_64-*kfreebsd*-gnu)
10652	    LD="${LD-ld} -m elf_x86_64_fbsd"
10653	    ;;
10654	  x86_64-*linux*)
10655	    LD="${LD-ld} -m elf_x86_64"
10656	    ;;
10657	  ppc*-*linux*|powerpc*-*linux*)
10658	    LD="${LD-ld} -m elf64ppc"
10659	    ;;
10660	  s390*-*linux*|s390*-*tpf*)
10661	    LD="${LD-ld} -m elf64_s390"
10662	    ;;
10663	  sparc*-*linux*)
10664	    LD="${LD-ld} -m elf64_sparc"
10665	    ;;
10666	esac
10667	;;
10668    esac
10669  fi
10670  rm -rf conftest*
10671  ;;
10672
10673*-*-sco3.2v5*)
10674  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10675  SAVE_CFLAGS="$CFLAGS"
10676  CFLAGS="$CFLAGS -belf"
10677  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10678$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10679if ${lt_cv_cc_needs_belf+:} false; then :
10680  $as_echo_n "(cached) " >&6
10681else
10682  ac_ext=c
10683ac_cpp='$CPP $CPPFLAGS'
10684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10686ac_compiler_gnu=$ac_cv_c_compiler_gnu
10687
10688     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10689/* end confdefs.h.  */
10690
10691int
10692main ()
10693{
10694
10695  ;
10696  return 0;
10697}
10698_ACEOF
10699if ac_fn_c_try_link "$LINENO"; then :
10700  lt_cv_cc_needs_belf=yes
10701else
10702  lt_cv_cc_needs_belf=no
10703fi
10704rm -f core conftest.err conftest.$ac_objext \
10705    conftest$ac_exeext conftest.$ac_ext
10706     ac_ext=c
10707ac_cpp='$CPP $CPPFLAGS'
10708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10710ac_compiler_gnu=$ac_cv_c_compiler_gnu
10711
10712fi
10713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10714$as_echo "$lt_cv_cc_needs_belf" >&6; }
10715  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10716    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10717    CFLAGS="$SAVE_CFLAGS"
10718  fi
10719  ;;
10720sparc*-*solaris*)
10721  # Find out which ABI we are using.
10722  echo 'int i;' > conftest.$ac_ext
10723  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10724  (eval $ac_compile) 2>&5
10725  ac_status=$?
10726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10727  test $ac_status = 0; }; then
10728    case `/usr/bin/file conftest.o` in
10729    *64-bit*)
10730      case $lt_cv_prog_gnu_ld in
10731      yes*) LD="${LD-ld} -m elf64_sparc" ;;
10732      *)
10733	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10734	  LD="${LD-ld} -64"
10735	fi
10736	;;
10737      esac
10738      ;;
10739    esac
10740  fi
10741  rm -rf conftest*
10742  ;;
10743esac
10744
10745need_locks="$enable_libtool_lock"
10746
10747if test -n "$ac_tool_prefix"; then
10748  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10749set dummy ${ac_tool_prefix}mt; ac_word=$2
10750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10751$as_echo_n "checking for $ac_word... " >&6; }
10752if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10753  $as_echo_n "(cached) " >&6
10754else
10755  if test -n "$MANIFEST_TOOL"; then
10756  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10757else
10758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759for as_dir in $PATH
10760do
10761  IFS=$as_save_IFS
10762  test -z "$as_dir" && as_dir=.
10763    for ac_exec_ext in '' $ac_executable_extensions; do
10764  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10765    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10766    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10767    break 2
10768  fi
10769done
10770  done
10771IFS=$as_save_IFS
10772
10773fi
10774fi
10775MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10776if test -n "$MANIFEST_TOOL"; then
10777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10778$as_echo "$MANIFEST_TOOL" >&6; }
10779else
10780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10781$as_echo "no" >&6; }
10782fi
10783
10784
10785fi
10786if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10787  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10788  # Extract the first word of "mt", so it can be a program name with args.
10789set dummy mt; ac_word=$2
10790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10791$as_echo_n "checking for $ac_word... " >&6; }
10792if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10793  $as_echo_n "(cached) " >&6
10794else
10795  if test -n "$ac_ct_MANIFEST_TOOL"; then
10796  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10797else
10798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799for as_dir in $PATH
10800do
10801  IFS=$as_save_IFS
10802  test -z "$as_dir" && as_dir=.
10803    for ac_exec_ext in '' $ac_executable_extensions; do
10804  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10805    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10806    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10807    break 2
10808  fi
10809done
10810  done
10811IFS=$as_save_IFS
10812
10813fi
10814fi
10815ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10816if test -n "$ac_ct_MANIFEST_TOOL"; then
10817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10818$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10819else
10820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821$as_echo "no" >&6; }
10822fi
10823
10824  if test "x$ac_ct_MANIFEST_TOOL" = x; then
10825    MANIFEST_TOOL=":"
10826  else
10827    case $cross_compiling:$ac_tool_warned in
10828yes:)
10829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10831ac_tool_warned=yes ;;
10832esac
10833    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10834  fi
10835else
10836  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10837fi
10838
10839test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10841$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10842if ${lt_cv_path_mainfest_tool+:} false; then :
10843  $as_echo_n "(cached) " >&6
10844else
10845  lt_cv_path_mainfest_tool=no
10846  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10847  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10848  cat conftest.err >&5
10849  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10850    lt_cv_path_mainfest_tool=yes
10851  fi
10852  rm -f conftest*
10853fi
10854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10855$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10856if test "x$lt_cv_path_mainfest_tool" != xyes; then
10857  MANIFEST_TOOL=:
10858fi
10859
10860
10861
10862
10863
10864
10865  case $host_os in
10866    rhapsody* | darwin*)
10867    if test -n "$ac_tool_prefix"; then
10868  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10869set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10871$as_echo_n "checking for $ac_word... " >&6; }
10872if ${ac_cv_prog_DSYMUTIL+:} false; then :
10873  $as_echo_n "(cached) " >&6
10874else
10875  if test -n "$DSYMUTIL"; then
10876  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10877else
10878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10879for as_dir in $PATH
10880do
10881  IFS=$as_save_IFS
10882  test -z "$as_dir" && as_dir=.
10883    for ac_exec_ext in '' $ac_executable_extensions; do
10884  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10885    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10886    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10887    break 2
10888  fi
10889done
10890  done
10891IFS=$as_save_IFS
10892
10893fi
10894fi
10895DSYMUTIL=$ac_cv_prog_DSYMUTIL
10896if test -n "$DSYMUTIL"; then
10897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10898$as_echo "$DSYMUTIL" >&6; }
10899else
10900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901$as_echo "no" >&6; }
10902fi
10903
10904
10905fi
10906if test -z "$ac_cv_prog_DSYMUTIL"; then
10907  ac_ct_DSYMUTIL=$DSYMUTIL
10908  # Extract the first word of "dsymutil", so it can be a program name with args.
10909set dummy dsymutil; ac_word=$2
10910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10911$as_echo_n "checking for $ac_word... " >&6; }
10912if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10913  $as_echo_n "(cached) " >&6
10914else
10915  if test -n "$ac_ct_DSYMUTIL"; then
10916  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10917else
10918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919for as_dir in $PATH
10920do
10921  IFS=$as_save_IFS
10922  test -z "$as_dir" && as_dir=.
10923    for ac_exec_ext in '' $ac_executable_extensions; do
10924  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10925    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10927    break 2
10928  fi
10929done
10930  done
10931IFS=$as_save_IFS
10932
10933fi
10934fi
10935ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10936if test -n "$ac_ct_DSYMUTIL"; then
10937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10938$as_echo "$ac_ct_DSYMUTIL" >&6; }
10939else
10940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10941$as_echo "no" >&6; }
10942fi
10943
10944  if test "x$ac_ct_DSYMUTIL" = x; then
10945    DSYMUTIL=":"
10946  else
10947    case $cross_compiling:$ac_tool_warned in
10948yes:)
10949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10951ac_tool_warned=yes ;;
10952esac
10953    DSYMUTIL=$ac_ct_DSYMUTIL
10954  fi
10955else
10956  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10957fi
10958
10959    if test -n "$ac_tool_prefix"; then
10960  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10961set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10963$as_echo_n "checking for $ac_word... " >&6; }
10964if ${ac_cv_prog_NMEDIT+:} false; then :
10965  $as_echo_n "(cached) " >&6
10966else
10967  if test -n "$NMEDIT"; then
10968  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10969else
10970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10971for as_dir in $PATH
10972do
10973  IFS=$as_save_IFS
10974  test -z "$as_dir" && as_dir=.
10975    for ac_exec_ext in '' $ac_executable_extensions; do
10976  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10977    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10978    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10979    break 2
10980  fi
10981done
10982  done
10983IFS=$as_save_IFS
10984
10985fi
10986fi
10987NMEDIT=$ac_cv_prog_NMEDIT
10988if test -n "$NMEDIT"; then
10989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10990$as_echo "$NMEDIT" >&6; }
10991else
10992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993$as_echo "no" >&6; }
10994fi
10995
10996
10997fi
10998if test -z "$ac_cv_prog_NMEDIT"; then
10999  ac_ct_NMEDIT=$NMEDIT
11000  # Extract the first word of "nmedit", so it can be a program name with args.
11001set dummy nmedit; ac_word=$2
11002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11003$as_echo_n "checking for $ac_word... " >&6; }
11004if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11005  $as_echo_n "(cached) " >&6
11006else
11007  if test -n "$ac_ct_NMEDIT"; then
11008  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11009else
11010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11011for as_dir in $PATH
11012do
11013  IFS=$as_save_IFS
11014  test -z "$as_dir" && as_dir=.
11015    for ac_exec_ext in '' $ac_executable_extensions; do
11016  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11017    ac_cv_prog_ac_ct_NMEDIT="nmedit"
11018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11019    break 2
11020  fi
11021done
11022  done
11023IFS=$as_save_IFS
11024
11025fi
11026fi
11027ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11028if test -n "$ac_ct_NMEDIT"; then
11029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11030$as_echo "$ac_ct_NMEDIT" >&6; }
11031else
11032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033$as_echo "no" >&6; }
11034fi
11035
11036  if test "x$ac_ct_NMEDIT" = x; then
11037    NMEDIT=":"
11038  else
11039    case $cross_compiling:$ac_tool_warned in
11040yes:)
11041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11043ac_tool_warned=yes ;;
11044esac
11045    NMEDIT=$ac_ct_NMEDIT
11046  fi
11047else
11048  NMEDIT="$ac_cv_prog_NMEDIT"
11049fi
11050
11051    if test -n "$ac_tool_prefix"; then
11052  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11053set dummy ${ac_tool_prefix}lipo; ac_word=$2
11054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11055$as_echo_n "checking for $ac_word... " >&6; }
11056if ${ac_cv_prog_LIPO+:} false; then :
11057  $as_echo_n "(cached) " >&6
11058else
11059  if test -n "$LIPO"; then
11060  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11061else
11062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11063for as_dir in $PATH
11064do
11065  IFS=$as_save_IFS
11066  test -z "$as_dir" && as_dir=.
11067    for ac_exec_ext in '' $ac_executable_extensions; do
11068  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11069    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11070    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11071    break 2
11072  fi
11073done
11074  done
11075IFS=$as_save_IFS
11076
11077fi
11078fi
11079LIPO=$ac_cv_prog_LIPO
11080if test -n "$LIPO"; then
11081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11082$as_echo "$LIPO" >&6; }
11083else
11084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11085$as_echo "no" >&6; }
11086fi
11087
11088
11089fi
11090if test -z "$ac_cv_prog_LIPO"; then
11091  ac_ct_LIPO=$LIPO
11092  # Extract the first word of "lipo", so it can be a program name with args.
11093set dummy lipo; ac_word=$2
11094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11095$as_echo_n "checking for $ac_word... " >&6; }
11096if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11097  $as_echo_n "(cached) " >&6
11098else
11099  if test -n "$ac_ct_LIPO"; then
11100  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11101else
11102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103for as_dir in $PATH
11104do
11105  IFS=$as_save_IFS
11106  test -z "$as_dir" && as_dir=.
11107    for ac_exec_ext in '' $ac_executable_extensions; do
11108  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11109    ac_cv_prog_ac_ct_LIPO="lipo"
11110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11111    break 2
11112  fi
11113done
11114  done
11115IFS=$as_save_IFS
11116
11117fi
11118fi
11119ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11120if test -n "$ac_ct_LIPO"; then
11121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11122$as_echo "$ac_ct_LIPO" >&6; }
11123else
11124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125$as_echo "no" >&6; }
11126fi
11127
11128  if test "x$ac_ct_LIPO" = x; then
11129    LIPO=":"
11130  else
11131    case $cross_compiling:$ac_tool_warned in
11132yes:)
11133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11135ac_tool_warned=yes ;;
11136esac
11137    LIPO=$ac_ct_LIPO
11138  fi
11139else
11140  LIPO="$ac_cv_prog_LIPO"
11141fi
11142
11143    if test -n "$ac_tool_prefix"; then
11144  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11145set dummy ${ac_tool_prefix}otool; ac_word=$2
11146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11147$as_echo_n "checking for $ac_word... " >&6; }
11148if ${ac_cv_prog_OTOOL+:} false; then :
11149  $as_echo_n "(cached) " >&6
11150else
11151  if test -n "$OTOOL"; then
11152  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11153else
11154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11155for as_dir in $PATH
11156do
11157  IFS=$as_save_IFS
11158  test -z "$as_dir" && as_dir=.
11159    for ac_exec_ext in '' $ac_executable_extensions; do
11160  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11161    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11163    break 2
11164  fi
11165done
11166  done
11167IFS=$as_save_IFS
11168
11169fi
11170fi
11171OTOOL=$ac_cv_prog_OTOOL
11172if test -n "$OTOOL"; then
11173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11174$as_echo "$OTOOL" >&6; }
11175else
11176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177$as_echo "no" >&6; }
11178fi
11179
11180
11181fi
11182if test -z "$ac_cv_prog_OTOOL"; then
11183  ac_ct_OTOOL=$OTOOL
11184  # Extract the first word of "otool", so it can be a program name with args.
11185set dummy otool; ac_word=$2
11186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11187$as_echo_n "checking for $ac_word... " >&6; }
11188if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11189  $as_echo_n "(cached) " >&6
11190else
11191  if test -n "$ac_ct_OTOOL"; then
11192  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11193else
11194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195for as_dir in $PATH
11196do
11197  IFS=$as_save_IFS
11198  test -z "$as_dir" && as_dir=.
11199    for ac_exec_ext in '' $ac_executable_extensions; do
11200  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11201    ac_cv_prog_ac_ct_OTOOL="otool"
11202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11203    break 2
11204  fi
11205done
11206  done
11207IFS=$as_save_IFS
11208
11209fi
11210fi
11211ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11212if test -n "$ac_ct_OTOOL"; then
11213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11214$as_echo "$ac_ct_OTOOL" >&6; }
11215else
11216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11217$as_echo "no" >&6; }
11218fi
11219
11220  if test "x$ac_ct_OTOOL" = x; then
11221    OTOOL=":"
11222  else
11223    case $cross_compiling:$ac_tool_warned in
11224yes:)
11225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11227ac_tool_warned=yes ;;
11228esac
11229    OTOOL=$ac_ct_OTOOL
11230  fi
11231else
11232  OTOOL="$ac_cv_prog_OTOOL"
11233fi
11234
11235    if test -n "$ac_tool_prefix"; then
11236  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11237set dummy ${ac_tool_prefix}otool64; ac_word=$2
11238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11239$as_echo_n "checking for $ac_word... " >&6; }
11240if ${ac_cv_prog_OTOOL64+:} false; then :
11241  $as_echo_n "(cached) " >&6
11242else
11243  if test -n "$OTOOL64"; then
11244  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11245else
11246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11247for as_dir in $PATH
11248do
11249  IFS=$as_save_IFS
11250  test -z "$as_dir" && as_dir=.
11251    for ac_exec_ext in '' $ac_executable_extensions; do
11252  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11253    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11255    break 2
11256  fi
11257done
11258  done
11259IFS=$as_save_IFS
11260
11261fi
11262fi
11263OTOOL64=$ac_cv_prog_OTOOL64
11264if test -n "$OTOOL64"; then
11265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11266$as_echo "$OTOOL64" >&6; }
11267else
11268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269$as_echo "no" >&6; }
11270fi
11271
11272
11273fi
11274if test -z "$ac_cv_prog_OTOOL64"; then
11275  ac_ct_OTOOL64=$OTOOL64
11276  # Extract the first word of "otool64", so it can be a program name with args.
11277set dummy otool64; ac_word=$2
11278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11279$as_echo_n "checking for $ac_word... " >&6; }
11280if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11281  $as_echo_n "(cached) " >&6
11282else
11283  if test -n "$ac_ct_OTOOL64"; then
11284  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11285else
11286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287for as_dir in $PATH
11288do
11289  IFS=$as_save_IFS
11290  test -z "$as_dir" && as_dir=.
11291    for ac_exec_ext in '' $ac_executable_extensions; do
11292  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11293    ac_cv_prog_ac_ct_OTOOL64="otool64"
11294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11295    break 2
11296  fi
11297done
11298  done
11299IFS=$as_save_IFS
11300
11301fi
11302fi
11303ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11304if test -n "$ac_ct_OTOOL64"; then
11305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11306$as_echo "$ac_ct_OTOOL64" >&6; }
11307else
11308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309$as_echo "no" >&6; }
11310fi
11311
11312  if test "x$ac_ct_OTOOL64" = x; then
11313    OTOOL64=":"
11314  else
11315    case $cross_compiling:$ac_tool_warned in
11316yes:)
11317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11319ac_tool_warned=yes ;;
11320esac
11321    OTOOL64=$ac_ct_OTOOL64
11322  fi
11323else
11324  OTOOL64="$ac_cv_prog_OTOOL64"
11325fi
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11354$as_echo_n "checking for -single_module linker flag... " >&6; }
11355if ${lt_cv_apple_cc_single_mod+:} false; then :
11356  $as_echo_n "(cached) " >&6
11357else
11358  lt_cv_apple_cc_single_mod=no
11359      if test -z "${LT_MULTI_MODULE}"; then
11360	# By default we will add the -single_module flag. You can override
11361	# by either setting the environment variable LT_MULTI_MODULE
11362	# non-empty at configure time, or by adding -multi_module to the
11363	# link flags.
11364	rm -rf libconftest.dylib*
11365	echo "int foo(void){return 1;}" > conftest.c
11366	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11367-dynamiclib -Wl,-single_module conftest.c" >&5
11368	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11369	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11370        _lt_result=$?
11371	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11372	  lt_cv_apple_cc_single_mod=yes
11373	else
11374	  cat conftest.err >&5
11375	fi
11376	rm -rf libconftest.dylib*
11377	rm -f conftest.*
11378      fi
11379fi
11380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11381$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11382    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11383$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11384if ${lt_cv_ld_exported_symbols_list+:} false; then :
11385  $as_echo_n "(cached) " >&6
11386else
11387  lt_cv_ld_exported_symbols_list=no
11388      save_LDFLAGS=$LDFLAGS
11389      echo "_main" > conftest.sym
11390      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11391      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392/* end confdefs.h.  */
11393
11394int
11395main ()
11396{
11397
11398  ;
11399  return 0;
11400}
11401_ACEOF
11402if ac_fn_c_try_link "$LINENO"; then :
11403  lt_cv_ld_exported_symbols_list=yes
11404else
11405  lt_cv_ld_exported_symbols_list=no
11406fi
11407rm -f core conftest.err conftest.$ac_objext \
11408    conftest$ac_exeext conftest.$ac_ext
11409	LDFLAGS="$save_LDFLAGS"
11410
11411fi
11412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11413$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11414    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11415$as_echo_n "checking for -force_load linker flag... " >&6; }
11416if ${lt_cv_ld_force_load+:} false; then :
11417  $as_echo_n "(cached) " >&6
11418else
11419  lt_cv_ld_force_load=no
11420      cat > conftest.c << _LT_EOF
11421int forced_loaded() { return 2;}
11422_LT_EOF
11423      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11424      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11425      echo "$AR cru libconftest.a conftest.o" >&5
11426      $AR cru libconftest.a conftest.o 2>&5
11427      echo "$RANLIB libconftest.a" >&5
11428      $RANLIB libconftest.a 2>&5
11429      cat > conftest.c << _LT_EOF
11430int main() { return 0;}
11431_LT_EOF
11432      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11433      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11434      _lt_result=$?
11435      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11436	lt_cv_ld_force_load=yes
11437      else
11438	cat conftest.err >&5
11439      fi
11440        rm -f conftest.err libconftest.a conftest conftest.c
11441        rm -rf conftest.dSYM
11442
11443fi
11444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11445$as_echo "$lt_cv_ld_force_load" >&6; }
11446    case $host_os in
11447    rhapsody* | darwin1.[012])
11448      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11449    darwin1.*)
11450      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11451    darwin*) # darwin 5.x on
11452      # if running on 10.5 or later, the deployment target defaults
11453      # to the OS version, if on x86, and 10.4, the deployment
11454      # target defaults to 10.4. Don't you love it?
11455      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11456	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11457	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11458	10.[012]*)
11459	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11460	10.*)
11461	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11462      esac
11463    ;;
11464  esac
11465    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11466      _lt_dar_single_mod='$single_module'
11467    fi
11468    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11469      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11470    else
11471      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11472    fi
11473    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
11474      _lt_dsymutil='~$DSYMUTIL $lib || :'
11475    else
11476      _lt_dsymutil=
11477    fi
11478    ;;
11479  esac
11480
11481for ac_header in dlfcn.h
11482do :
11483  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11484"
11485if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11486  cat >>confdefs.h <<_ACEOF
11487#define HAVE_DLFCN_H 1
11488_ACEOF
11489
11490fi
11491
11492done
11493
11494
11495
11496
11497func_stripname_cnf ()
11498{
11499  case ${2} in
11500  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11501  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11502  esac
11503} # func_stripname_cnf
11504
11505
11506
11507
11508
11509# Set options
11510
11511
11512
11513        enable_dlopen=no
11514
11515
11516  enable_win32_dll=no
11517
11518
11519
11520  # Check whether --enable-static was given.
11521if test "${enable_static+set}" = set; then :
11522  enableval=$enable_static; p=${PACKAGE-default}
11523    case $enableval in
11524    yes) enable_static=yes ;;
11525    no) enable_static=no ;;
11526    *)
11527     enable_static=no
11528      # Look at the argument we got.  We use all the common list separators.
11529      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11530      for pkg in $enableval; do
11531	IFS="$lt_save_ifs"
11532	if test "X$pkg" = "X$p"; then
11533	  enable_static=yes
11534	fi
11535      done
11536      IFS="$lt_save_ifs"
11537      ;;
11538    esac
11539else
11540  enable_static=yes
11541fi
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552# Check whether --with-pic was given.
11553if test "${with_pic+set}" = set; then :
11554  withval=$with_pic; pic_mode="$withval"
11555else
11556  pic_mode=default
11557fi
11558
11559
11560test -z "$pic_mode" && pic_mode=default
11561
11562
11563
11564
11565
11566
11567
11568  # Check whether --enable-fast-install was given.
11569if test "${enable_fast_install+set}" = set; then :
11570  enableval=$enable_fast_install; p=${PACKAGE-default}
11571    case $enableval in
11572    yes) enable_fast_install=yes ;;
11573    no) enable_fast_install=no ;;
11574    *)
11575      enable_fast_install=no
11576      # Look at the argument we got.  We use all the common list separators.
11577      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11578      for pkg in $enableval; do
11579	IFS="$lt_save_ifs"
11580	if test "X$pkg" = "X$p"; then
11581	  enable_fast_install=yes
11582	fi
11583      done
11584      IFS="$lt_save_ifs"
11585      ;;
11586    esac
11587else
11588  enable_fast_install=yes
11589fi
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601# This can be used to rebuild libtool when needed
11602LIBTOOL_DEPS="$ltmain"
11603
11604# Always use our own libtool.
11605LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632test -z "$LN_S" && LN_S="ln -s"
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647if test -n "${ZSH_VERSION+set}" ; then
11648   setopt NO_GLOB_SUBST
11649fi
11650
11651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11652$as_echo_n "checking for objdir... " >&6; }
11653if ${lt_cv_objdir+:} false; then :
11654  $as_echo_n "(cached) " >&6
11655else
11656  rm -f .libs 2>/dev/null
11657mkdir .libs 2>/dev/null
11658if test -d .libs; then
11659  lt_cv_objdir=.libs
11660else
11661  # MS-DOS does not allow filenames that begin with a dot.
11662  lt_cv_objdir=_libs
11663fi
11664rmdir .libs 2>/dev/null
11665fi
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11667$as_echo "$lt_cv_objdir" >&6; }
11668objdir=$lt_cv_objdir
11669
11670
11671
11672
11673
11674cat >>confdefs.h <<_ACEOF
11675#define LT_OBJDIR "$lt_cv_objdir/"
11676_ACEOF
11677
11678
11679
11680
11681case $host_os in
11682aix3*)
11683  # AIX sometimes has problems with the GCC collect2 program.  For some
11684  # reason, if we set the COLLECT_NAMES environment variable, the problems
11685  # vanish in a puff of smoke.
11686  if test "X${COLLECT_NAMES+set}" != Xset; then
11687    COLLECT_NAMES=
11688    export COLLECT_NAMES
11689  fi
11690  ;;
11691esac
11692
11693# Global variables:
11694ofile=libtool
11695can_build_shared=yes
11696
11697# All known linkers require a `.a' archive for static linking (except MSVC,
11698# which needs '.lib').
11699libext=a
11700
11701with_gnu_ld="$lt_cv_prog_gnu_ld"
11702
11703old_CC="$CC"
11704old_CFLAGS="$CFLAGS"
11705
11706# Set sane defaults for various variables
11707test -z "$CC" && CC=cc
11708test -z "$LTCC" && LTCC=$CC
11709test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11710test -z "$LD" && LD=ld
11711test -z "$ac_objext" && ac_objext=o
11712
11713for cc_temp in $compiler""; do
11714  case $cc_temp in
11715    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11716    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11717    \-*) ;;
11718    *) break;;
11719  esac
11720done
11721cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11722
11723
11724# Only perform the check for file, if the check method requires it
11725test -z "$MAGIC_CMD" && MAGIC_CMD=file
11726case $deplibs_check_method in
11727file_magic*)
11728  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11729    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11730$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11731if ${lt_cv_path_MAGIC_CMD+:} false; then :
11732  $as_echo_n "(cached) " >&6
11733else
11734  case $MAGIC_CMD in
11735[\\/*] |  ?:[\\/]*)
11736  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11737  ;;
11738*)
11739  lt_save_MAGIC_CMD="$MAGIC_CMD"
11740  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11741  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11742  for ac_dir in $ac_dummy; do
11743    IFS="$lt_save_ifs"
11744    test -z "$ac_dir" && ac_dir=.
11745    if test -f $ac_dir/${ac_tool_prefix}file; then
11746      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11747      if test -n "$file_magic_test_file"; then
11748	case $deplibs_check_method in
11749	"file_magic "*)
11750	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11751	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11752	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11753	    $EGREP "$file_magic_regex" > /dev/null; then
11754	    :
11755	  else
11756	    cat <<_LT_EOF 1>&2
11757
11758*** Warning: the command libtool uses to detect shared libraries,
11759*** $file_magic_cmd, produces output that libtool cannot recognize.
11760*** The result is that libtool may fail to recognize shared libraries
11761*** as such.  This will affect the creation of libtool libraries that
11762*** depend on shared libraries, but programs linked with such libtool
11763*** libraries will work regardless of this problem.  Nevertheless, you
11764*** may want to report the problem to your system manager and/or to
11765*** bug-libtool@gnu.org
11766
11767_LT_EOF
11768	  fi ;;
11769	esac
11770      fi
11771      break
11772    fi
11773  done
11774  IFS="$lt_save_ifs"
11775  MAGIC_CMD="$lt_save_MAGIC_CMD"
11776  ;;
11777esac
11778fi
11779
11780MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11781if test -n "$MAGIC_CMD"; then
11782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11783$as_echo "$MAGIC_CMD" >&6; }
11784else
11785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786$as_echo "no" >&6; }
11787fi
11788
11789
11790
11791
11792
11793if test -z "$lt_cv_path_MAGIC_CMD"; then
11794  if test -n "$ac_tool_prefix"; then
11795    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11796$as_echo_n "checking for file... " >&6; }
11797if ${lt_cv_path_MAGIC_CMD+:} false; then :
11798  $as_echo_n "(cached) " >&6
11799else
11800  case $MAGIC_CMD in
11801[\\/*] |  ?:[\\/]*)
11802  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11803  ;;
11804*)
11805  lt_save_MAGIC_CMD="$MAGIC_CMD"
11806  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11807  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11808  for ac_dir in $ac_dummy; do
11809    IFS="$lt_save_ifs"
11810    test -z "$ac_dir" && ac_dir=.
11811    if test -f $ac_dir/file; then
11812      lt_cv_path_MAGIC_CMD="$ac_dir/file"
11813      if test -n "$file_magic_test_file"; then
11814	case $deplibs_check_method in
11815	"file_magic "*)
11816	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11817	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11818	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11819	    $EGREP "$file_magic_regex" > /dev/null; then
11820	    :
11821	  else
11822	    cat <<_LT_EOF 1>&2
11823
11824*** Warning: the command libtool uses to detect shared libraries,
11825*** $file_magic_cmd, produces output that libtool cannot recognize.
11826*** The result is that libtool may fail to recognize shared libraries
11827*** as such.  This will affect the creation of libtool libraries that
11828*** depend on shared libraries, but programs linked with such libtool
11829*** libraries will work regardless of this problem.  Nevertheless, you
11830*** may want to report the problem to your system manager and/or to
11831*** bug-libtool@gnu.org
11832
11833_LT_EOF
11834	  fi ;;
11835	esac
11836      fi
11837      break
11838    fi
11839  done
11840  IFS="$lt_save_ifs"
11841  MAGIC_CMD="$lt_save_MAGIC_CMD"
11842  ;;
11843esac
11844fi
11845
11846MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11847if test -n "$MAGIC_CMD"; then
11848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11849$as_echo "$MAGIC_CMD" >&6; }
11850else
11851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11852$as_echo "no" >&6; }
11853fi
11854
11855
11856  else
11857    MAGIC_CMD=:
11858  fi
11859fi
11860
11861  fi
11862  ;;
11863esac
11864
11865# Use C for the default configuration in the libtool script
11866
11867lt_save_CC="$CC"
11868ac_ext=c
11869ac_cpp='$CPP $CPPFLAGS'
11870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11872ac_compiler_gnu=$ac_cv_c_compiler_gnu
11873
11874
11875# Source file extension for C test sources.
11876ac_ext=c
11877
11878# Object file extension for compiled C test sources.
11879objext=o
11880objext=$objext
11881
11882# Code to be used in simple compile tests
11883lt_simple_compile_test_code="int some_variable = 0;"
11884
11885# Code to be used in simple link tests
11886lt_simple_link_test_code='int main(){return(0);}'
11887
11888
11889
11890
11891
11892
11893
11894# If no C compiler was specified, use CC.
11895LTCC=${LTCC-"$CC"}
11896
11897# If no C compiler flags were specified, use CFLAGS.
11898LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11899
11900# Allow CC to be a program name with arguments.
11901compiler=$CC
11902
11903# Save the default compiler, since it gets overwritten when the other
11904# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11905compiler_DEFAULT=$CC
11906
11907# save warnings/boilerplate of simple test code
11908ac_outfile=conftest.$ac_objext
11909echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11910eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11911_lt_compiler_boilerplate=`cat conftest.err`
11912$RM conftest*
11913
11914ac_outfile=conftest.$ac_objext
11915echo "$lt_simple_link_test_code" >conftest.$ac_ext
11916eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11917_lt_linker_boilerplate=`cat conftest.err`
11918$RM -r conftest*
11919
11920
11921## CAVEAT EMPTOR:
11922## There is no encapsulation within the following macros, do not change
11923## the running order or otherwise move them around unless you know exactly
11924## what you are doing...
11925if test -n "$compiler"; then
11926
11927lt_prog_compiler_no_builtin_flag=
11928
11929if test "$GCC" = yes; then
11930  case $cc_basename in
11931  nvcc*)
11932    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11933  *)
11934    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11935  esac
11936
11937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11938$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11939if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11940  $as_echo_n "(cached) " >&6
11941else
11942  lt_cv_prog_compiler_rtti_exceptions=no
11943   ac_outfile=conftest.$ac_objext
11944   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11945   lt_compiler_flag="-fno-rtti -fno-exceptions"
11946   # Insert the option either (1) after the last *FLAGS variable, or
11947   # (2) before a word containing "conftest.", or (3) at the end.
11948   # Note that $ac_compile itself does not contain backslashes and begins
11949   # with a dollar sign (not a hyphen), so the echo should work correctly.
11950   # The option is referenced via a variable to avoid confusing sed.
11951   lt_compile=`echo "$ac_compile" | $SED \
11952   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11953   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11954   -e 's:$: $lt_compiler_flag:'`
11955   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11956   (eval "$lt_compile" 2>conftest.err)
11957   ac_status=$?
11958   cat conftest.err >&5
11959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960   if (exit $ac_status) && test -s "$ac_outfile"; then
11961     # The compiler can only warn and ignore the option if not recognized
11962     # So say no if there are warnings other than the usual output.
11963     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11964     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11965     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11966       lt_cv_prog_compiler_rtti_exceptions=yes
11967     fi
11968   fi
11969   $RM conftest*
11970
11971fi
11972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11973$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11974
11975if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11976    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11977else
11978    :
11979fi
11980
11981fi
11982
11983
11984
11985
11986
11987
11988  lt_prog_compiler_wl=
11989lt_prog_compiler_pic=
11990lt_prog_compiler_static=
11991
11992
11993  if test "$GCC" = yes; then
11994    lt_prog_compiler_wl='-Wl,'
11995    lt_prog_compiler_static='-static'
11996
11997    case $host_os in
11998      aix*)
11999      # All AIX code is PIC.
12000      if test "$host_cpu" = ia64; then
12001	# AIX 5 now supports IA64 processor
12002	lt_prog_compiler_static='-Bstatic'
12003      fi
12004      ;;
12005
12006    amigaos*)
12007      case $host_cpu in
12008      powerpc)
12009            # see comment about AmigaOS4 .so support
12010            lt_prog_compiler_pic='-fPIC'
12011        ;;
12012      m68k)
12013            # FIXME: we need at least 68020 code to build shared libraries, but
12014            # adding the `-m68020' flag to GCC prevents building anything better,
12015            # like `-m68040'.
12016            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12017        ;;
12018      esac
12019      ;;
12020
12021    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12022      # PIC is the default for these OSes.
12023      ;;
12024
12025    mingw* | cygwin* | pw32* | os2* | cegcc*)
12026      # This hack is so that the source file can tell whether it is being
12027      # built for inclusion in a dll (and should export symbols for example).
12028      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12029      # (--disable-auto-import) libraries
12030      lt_prog_compiler_pic='-DDLL_EXPORT'
12031      ;;
12032
12033    darwin* | rhapsody*)
12034      # PIC is the default on this platform
12035      # Common symbols not allowed in MH_DYLIB files
12036      lt_prog_compiler_pic='-fno-common'
12037      ;;
12038
12039    haiku*)
12040      # PIC is the default for Haiku.
12041      # The "-static" flag exists, but is broken.
12042      lt_prog_compiler_static=
12043      ;;
12044
12045    hpux*)
12046      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12047      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12048      # sets the default TLS model and affects inlining.
12049      case $host_cpu in
12050      hppa*64*)
12051	# +Z the default
12052	;;
12053      *)
12054	lt_prog_compiler_pic='-fPIC'
12055	;;
12056      esac
12057      ;;
12058
12059    interix[3-9]*)
12060      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12061      # Instead, we relocate shared libraries at runtime.
12062      ;;
12063
12064    msdosdjgpp*)
12065      # Just because we use GCC doesn't mean we suddenly get shared libraries
12066      # on systems that don't support them.
12067      lt_prog_compiler_can_build_shared=no
12068      enable_shared=no
12069      ;;
12070
12071    *nto* | *qnx*)
12072      # QNX uses GNU C++, but need to define -shared option too, otherwise
12073      # it will coredump.
12074      lt_prog_compiler_pic='-fPIC -shared'
12075      ;;
12076
12077    sysv4*MP*)
12078      if test -d /usr/nec; then
12079	lt_prog_compiler_pic=-Kconform_pic
12080      fi
12081      ;;
12082
12083    *)
12084      lt_prog_compiler_pic='-fPIC'
12085      ;;
12086    esac
12087
12088    case $cc_basename in
12089    nvcc*) # Cuda Compiler Driver 2.2
12090      lt_prog_compiler_wl='-Xlinker '
12091      lt_prog_compiler_pic='-Xcompiler -fPIC'
12092      ;;
12093    esac
12094  else
12095    # PORTME Check for flag to pass linker flags through the system compiler.
12096    case $host_os in
12097    aix*)
12098      lt_prog_compiler_wl='-Wl,'
12099      if test "$host_cpu" = ia64; then
12100	# AIX 5 now supports IA64 processor
12101	lt_prog_compiler_static='-Bstatic'
12102      else
12103	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12104      fi
12105      ;;
12106
12107    mingw* | cygwin* | pw32* | os2* | cegcc*)
12108      # This hack is so that the source file can tell whether it is being
12109      # built for inclusion in a dll (and should export symbols for example).
12110      lt_prog_compiler_pic='-DDLL_EXPORT'
12111      ;;
12112
12113    hpux9* | hpux10* | hpux11*)
12114      lt_prog_compiler_wl='-Wl,'
12115      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12116      # not for PA HP-UX.
12117      case $host_cpu in
12118      hppa*64*|ia64*)
12119	# +Z the default
12120	;;
12121      *)
12122	lt_prog_compiler_pic='+Z'
12123	;;
12124      esac
12125      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12126      lt_prog_compiler_static='${wl}-a ${wl}archive'
12127      ;;
12128
12129    irix5* | irix6* | nonstopux*)
12130      lt_prog_compiler_wl='-Wl,'
12131      # PIC (with -KPIC) is the default.
12132      lt_prog_compiler_static='-non_shared'
12133      ;;
12134
12135    linux* | k*bsd*-gnu | kopensolaris*-gnu)
12136      case $cc_basename in
12137      # old Intel for x86_64 which still supported -KPIC.
12138      ecc*)
12139	lt_prog_compiler_wl='-Wl,'
12140	lt_prog_compiler_pic='-KPIC'
12141	lt_prog_compiler_static='-static'
12142        ;;
12143      # icc used to be incompatible with GCC.
12144      # ICC 10 doesn't accept -KPIC any more.
12145      icc* | ifort*)
12146	lt_prog_compiler_wl='-Wl,'
12147	lt_prog_compiler_pic='-fPIC'
12148	lt_prog_compiler_static='-static'
12149        ;;
12150      # Lahey Fortran 8.1.
12151      lf95*)
12152	lt_prog_compiler_wl='-Wl,'
12153	lt_prog_compiler_pic='--shared'
12154	lt_prog_compiler_static='--static'
12155	;;
12156      nagfor*)
12157	# NAG Fortran compiler
12158	lt_prog_compiler_wl='-Wl,-Wl,,'
12159	lt_prog_compiler_pic='-PIC'
12160	lt_prog_compiler_static='-Bstatic'
12161	;;
12162      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12163        # Portland Group compilers (*not* the Pentium gcc compiler,
12164	# which looks to be a dead project)
12165	lt_prog_compiler_wl='-Wl,'
12166	lt_prog_compiler_pic='-fpic'
12167	lt_prog_compiler_static='-Bstatic'
12168        ;;
12169      ccc*)
12170        lt_prog_compiler_wl='-Wl,'
12171        # All Alpha code is PIC.
12172        lt_prog_compiler_static='-non_shared'
12173        ;;
12174      xl* | bgxl* | bgf* | mpixl*)
12175	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12176	lt_prog_compiler_wl='-Wl,'
12177	lt_prog_compiler_pic='-qpic'
12178	lt_prog_compiler_static='-qstaticlink'
12179	;;
12180      *)
12181	case `$CC -V 2>&1 | sed 5q` in
12182	*Sun\ F* | *Sun*Fortran*)
12183	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
12184	  lt_prog_compiler_pic='-KPIC'
12185	  lt_prog_compiler_static='-Bstatic'
12186	  lt_prog_compiler_wl=''
12187	  ;;
12188	*Sun\ C*)
12189	  # Sun C 5.9
12190	  lt_prog_compiler_pic='-KPIC'
12191	  lt_prog_compiler_static='-Bstatic'
12192	  lt_prog_compiler_wl='-Wl,'
12193	  ;;
12194	esac
12195	;;
12196      esac
12197      ;;
12198
12199    newsos6)
12200      lt_prog_compiler_pic='-KPIC'
12201      lt_prog_compiler_static='-Bstatic'
12202      ;;
12203
12204    *nto* | *qnx*)
12205      # QNX uses GNU C++, but need to define -shared option too, otherwise
12206      # it will coredump.
12207      lt_prog_compiler_pic='-fPIC -shared'
12208      ;;
12209
12210    osf3* | osf4* | osf5*)
12211      lt_prog_compiler_wl='-Wl,'
12212      # All OSF/1 code is PIC.
12213      lt_prog_compiler_static='-non_shared'
12214      ;;
12215
12216    rdos*)
12217      lt_prog_compiler_static='-non_shared'
12218      ;;
12219
12220    solaris*)
12221      lt_prog_compiler_pic='-KPIC'
12222      lt_prog_compiler_static='-Bstatic'
12223      case $cc_basename in
12224      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12225	lt_prog_compiler_wl='-Qoption ld ';;
12226      *)
12227	lt_prog_compiler_wl='-Wl,';;
12228      esac
12229      ;;
12230
12231    sunos4*)
12232      lt_prog_compiler_wl='-Qoption ld '
12233      lt_prog_compiler_pic='-PIC'
12234      lt_prog_compiler_static='-Bstatic'
12235      ;;
12236
12237    sysv4 | sysv4.2uw2* | sysv4.3*)
12238      lt_prog_compiler_wl='-Wl,'
12239      lt_prog_compiler_pic='-KPIC'
12240      lt_prog_compiler_static='-Bstatic'
12241      ;;
12242
12243    sysv4*MP*)
12244      if test -d /usr/nec ;then
12245	lt_prog_compiler_pic='-Kconform_pic'
12246	lt_prog_compiler_static='-Bstatic'
12247      fi
12248      ;;
12249
12250    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12251      lt_prog_compiler_wl='-Wl,'
12252      lt_prog_compiler_pic='-KPIC'
12253      lt_prog_compiler_static='-Bstatic'
12254      ;;
12255
12256    unicos*)
12257      lt_prog_compiler_wl='-Wl,'
12258      lt_prog_compiler_can_build_shared=no
12259      ;;
12260
12261    uts4*)
12262      lt_prog_compiler_pic='-pic'
12263      lt_prog_compiler_static='-Bstatic'
12264      ;;
12265
12266    *)
12267      lt_prog_compiler_can_build_shared=no
12268      ;;
12269    esac
12270  fi
12271
12272case $host_os in
12273  # For platforms which do not support PIC, -DPIC is meaningless:
12274  *djgpp*)
12275    lt_prog_compiler_pic=
12276    ;;
12277  *)
12278    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12279    ;;
12280esac
12281
12282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12283$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12284if ${lt_cv_prog_compiler_pic+:} false; then :
12285  $as_echo_n "(cached) " >&6
12286else
12287  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12288fi
12289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12290$as_echo "$lt_cv_prog_compiler_pic" >&6; }
12291lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12292
12293#
12294# Check to make sure the PIC flag actually works.
12295#
12296if test -n "$lt_prog_compiler_pic"; then
12297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12298$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12299if ${lt_cv_prog_compiler_pic_works+:} false; then :
12300  $as_echo_n "(cached) " >&6
12301else
12302  lt_cv_prog_compiler_pic_works=no
12303   ac_outfile=conftest.$ac_objext
12304   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12305   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12306   # Insert the option either (1) after the last *FLAGS variable, or
12307   # (2) before a word containing "conftest.", or (3) at the end.
12308   # Note that $ac_compile itself does not contain backslashes and begins
12309   # with a dollar sign (not a hyphen), so the echo should work correctly.
12310   # The option is referenced via a variable to avoid confusing sed.
12311   lt_compile=`echo "$ac_compile" | $SED \
12312   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12313   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12314   -e 's:$: $lt_compiler_flag:'`
12315   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12316   (eval "$lt_compile" 2>conftest.err)
12317   ac_status=$?
12318   cat conftest.err >&5
12319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320   if (exit $ac_status) && test -s "$ac_outfile"; then
12321     # The compiler can only warn and ignore the option if not recognized
12322     # So say no if there are warnings other than the usual output.
12323     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12324     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12325     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12326       lt_cv_prog_compiler_pic_works=yes
12327     fi
12328   fi
12329   $RM conftest*
12330
12331fi
12332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12333$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12334
12335if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12336    case $lt_prog_compiler_pic in
12337     "" | " "*) ;;
12338     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12339     esac
12340else
12341    lt_prog_compiler_pic=
12342     lt_prog_compiler_can_build_shared=no
12343fi
12344
12345fi
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357#
12358# Check to make sure the static flag actually works.
12359#
12360wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12362$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12363if ${lt_cv_prog_compiler_static_works+:} false; then :
12364  $as_echo_n "(cached) " >&6
12365else
12366  lt_cv_prog_compiler_static_works=no
12367   save_LDFLAGS="$LDFLAGS"
12368   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12369   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12370   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12371     # The linker can only warn and ignore the option if not recognized
12372     # So say no if there are warnings
12373     if test -s conftest.err; then
12374       # Append any errors to the config.log.
12375       cat conftest.err 1>&5
12376       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12377       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12378       if diff conftest.exp conftest.er2 >/dev/null; then
12379         lt_cv_prog_compiler_static_works=yes
12380       fi
12381     else
12382       lt_cv_prog_compiler_static_works=yes
12383     fi
12384   fi
12385   $RM -r conftest*
12386   LDFLAGS="$save_LDFLAGS"
12387
12388fi
12389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12390$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12391
12392if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12393    :
12394else
12395    lt_prog_compiler_static=
12396fi
12397
12398
12399
12400
12401
12402
12403
12404  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12405$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12406if ${lt_cv_prog_compiler_c_o+:} false; then :
12407  $as_echo_n "(cached) " >&6
12408else
12409  lt_cv_prog_compiler_c_o=no
12410   $RM -r conftest 2>/dev/null
12411   mkdir conftest
12412   cd conftest
12413   mkdir out
12414   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12415
12416   lt_compiler_flag="-o out/conftest2.$ac_objext"
12417   # Insert the option either (1) after the last *FLAGS variable, or
12418   # (2) before a word containing "conftest.", or (3) at the end.
12419   # Note that $ac_compile itself does not contain backslashes and begins
12420   # with a dollar sign (not a hyphen), so the echo should work correctly.
12421   lt_compile=`echo "$ac_compile" | $SED \
12422   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12423   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12424   -e 's:$: $lt_compiler_flag:'`
12425   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12426   (eval "$lt_compile" 2>out/conftest.err)
12427   ac_status=$?
12428   cat out/conftest.err >&5
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12431   then
12432     # The compiler can only warn and ignore the option if not recognized
12433     # So say no if there are warnings
12434     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12435     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12436     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12437       lt_cv_prog_compiler_c_o=yes
12438     fi
12439   fi
12440   chmod u+w . 2>&5
12441   $RM conftest*
12442   # SGI C++ compiler will create directory out/ii_files/ for
12443   # template instantiation
12444   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12445   $RM out/* && rmdir out
12446   cd ..
12447   $RM -r conftest
12448   $RM conftest*
12449
12450fi
12451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12452$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12453
12454
12455
12456
12457
12458
12459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12460$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12461if ${lt_cv_prog_compiler_c_o+:} false; then :
12462  $as_echo_n "(cached) " >&6
12463else
12464  lt_cv_prog_compiler_c_o=no
12465   $RM -r conftest 2>/dev/null
12466   mkdir conftest
12467   cd conftest
12468   mkdir out
12469   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12470
12471   lt_compiler_flag="-o out/conftest2.$ac_objext"
12472   # Insert the option either (1) after the last *FLAGS variable, or
12473   # (2) before a word containing "conftest.", or (3) at the end.
12474   # Note that $ac_compile itself does not contain backslashes and begins
12475   # with a dollar sign (not a hyphen), so the echo should work correctly.
12476   lt_compile=`echo "$ac_compile" | $SED \
12477   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12478   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12479   -e 's:$: $lt_compiler_flag:'`
12480   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12481   (eval "$lt_compile" 2>out/conftest.err)
12482   ac_status=$?
12483   cat out/conftest.err >&5
12484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12486   then
12487     # The compiler can only warn and ignore the option if not recognized
12488     # So say no if there are warnings
12489     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12490     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12491     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12492       lt_cv_prog_compiler_c_o=yes
12493     fi
12494   fi
12495   chmod u+w . 2>&5
12496   $RM conftest*
12497   # SGI C++ compiler will create directory out/ii_files/ for
12498   # template instantiation
12499   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12500   $RM out/* && rmdir out
12501   cd ..
12502   $RM -r conftest
12503   $RM conftest*
12504
12505fi
12506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12507$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12508
12509
12510
12511
12512hard_links="nottested"
12513if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12514  # do not overwrite the value of need_locks provided by the user
12515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12516$as_echo_n "checking if we can lock with hard links... " >&6; }
12517  hard_links=yes
12518  $RM conftest*
12519  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12520  touch conftest.a
12521  ln conftest.a conftest.b 2>&5 || hard_links=no
12522  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12524$as_echo "$hard_links" >&6; }
12525  if test "$hard_links" = no; then
12526    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12527$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12528    need_locks=warn
12529  fi
12530else
12531  need_locks=no
12532fi
12533
12534
12535
12536
12537
12538
12539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12540$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12541
12542  runpath_var=
12543  allow_undefined_flag=
12544  always_export_symbols=no
12545  archive_cmds=
12546  archive_expsym_cmds=
12547  compiler_needs_object=no
12548  enable_shared_with_static_runtimes=no
12549  export_dynamic_flag_spec=
12550  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12551  hardcode_automatic=no
12552  hardcode_direct=no
12553  hardcode_direct_absolute=no
12554  hardcode_libdir_flag_spec=
12555  hardcode_libdir_flag_spec_ld=
12556  hardcode_libdir_separator=
12557  hardcode_minus_L=no
12558  hardcode_shlibpath_var=unsupported
12559  inherit_rpath=no
12560  link_all_deplibs=unknown
12561  module_cmds=
12562  module_expsym_cmds=
12563  old_archive_from_new_cmds=
12564  old_archive_from_expsyms_cmds=
12565  thread_safe_flag_spec=
12566  whole_archive_flag_spec=
12567  # include_expsyms should be a list of space-separated symbols to be *always*
12568  # included in the symbol list
12569  include_expsyms=
12570  # exclude_expsyms can be an extended regexp of symbols to exclude
12571  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12572  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12573  # as well as any symbol that contains `d'.
12574  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12575  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12576  # platforms (ab)use it in PIC code, but their linkers get confused if
12577  # the symbol is explicitly referenced.  Since portable code cannot
12578  # rely on this symbol name, it's probably fine to never include it in
12579  # preloaded symbol tables.
12580  # Exclude shared library initialization/finalization symbols.
12581  extract_expsyms_cmds=
12582
12583  case $host_os in
12584  cygwin* | mingw* | pw32* | cegcc*)
12585    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12586    # When not using gcc, we currently assume that we are using
12587    # Microsoft Visual C++.
12588    if test "$GCC" != yes; then
12589      with_gnu_ld=no
12590    fi
12591    ;;
12592  interix*)
12593    # we just hope/assume this is gcc and not c89 (= MSVC++)
12594    with_gnu_ld=yes
12595    ;;
12596  openbsd*)
12597    with_gnu_ld=no
12598    ;;
12599  esac
12600
12601  ld_shlibs=yes
12602
12603  # On some targets, GNU ld is compatible enough with the native linker
12604  # that we're better off using the native interface for both.
12605  lt_use_gnu_ld_interface=no
12606  if test "$with_gnu_ld" = yes; then
12607    case $host_os in
12608      aix*)
12609	# The AIX port of GNU ld has always aspired to compatibility
12610	# with the native linker.  However, as the warning in the GNU ld
12611	# block says, versions before 2.19.5* couldn't really create working
12612	# shared libraries, regardless of the interface used.
12613	case `$LD -v 2>&1` in
12614	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12615	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12616	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12617	  *)
12618	    lt_use_gnu_ld_interface=yes
12619	    ;;
12620	esac
12621	;;
12622      *)
12623	lt_use_gnu_ld_interface=yes
12624	;;
12625    esac
12626  fi
12627
12628  if test "$lt_use_gnu_ld_interface" = yes; then
12629    # If archive_cmds runs LD, not CC, wlarc should be empty
12630    wlarc='${wl}'
12631
12632    # Set some defaults for GNU ld with shared library support. These
12633    # are reset later if shared libraries are not supported. Putting them
12634    # here allows them to be overridden if necessary.
12635    runpath_var=LD_RUN_PATH
12636    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12637    export_dynamic_flag_spec='${wl}--export-dynamic'
12638    # ancient GNU ld didn't support --whole-archive et. al.
12639    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12640      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12641    else
12642      whole_archive_flag_spec=
12643    fi
12644    supports_anon_versioning=no
12645    case `$LD -v 2>&1` in
12646      *GNU\ gold*) supports_anon_versioning=yes ;;
12647      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12648      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12649      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12650      *\ 2.11.*) ;; # other 2.11 versions
12651      *) supports_anon_versioning=yes ;;
12652    esac
12653
12654    # See if GNU ld supports shared libraries.
12655    case $host_os in
12656    aix[3-9]*)
12657      # On AIX/PPC, the GNU linker is very broken
12658      if test "$host_cpu" != ia64; then
12659	ld_shlibs=no
12660	cat <<_LT_EOF 1>&2
12661
12662*** Warning: the GNU linker, at least up to release 2.19, is reported
12663*** to be unable to reliably create shared libraries on AIX.
12664*** Therefore, libtool is disabling shared libraries support.  If you
12665*** really care for shared libraries, you may want to install binutils
12666*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12667*** You will then need to restart the configuration process.
12668
12669_LT_EOF
12670      fi
12671      ;;
12672
12673    amigaos*)
12674      case $host_cpu in
12675      powerpc)
12676            # see comment about AmigaOS4 .so support
12677            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12678            archive_expsym_cmds=''
12679        ;;
12680      m68k)
12681            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)'
12682            hardcode_libdir_flag_spec='-L$libdir'
12683            hardcode_minus_L=yes
12684        ;;
12685      esac
12686      ;;
12687
12688    beos*)
12689      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12690	allow_undefined_flag=unsupported
12691	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12692	# support --undefined.  This deserves some investigation.  FIXME
12693	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12694      else
12695	ld_shlibs=no
12696      fi
12697      ;;
12698
12699    cygwin* | mingw* | pw32* | cegcc*)
12700      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12701      # as there is no search path for DLLs.
12702      hardcode_libdir_flag_spec='-L$libdir'
12703      export_dynamic_flag_spec='${wl}--export-all-symbols'
12704      allow_undefined_flag=unsupported
12705      always_export_symbols=no
12706      enable_shared_with_static_runtimes=yes
12707      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'
12708      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12709
12710      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12711        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12712	# If the export-symbols file already is a .def file (1st line
12713	# is EXPORTS), use it as is; otherwise, prepend...
12714	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12715	  cp $export_symbols $output_objdir/$soname.def;
12716	else
12717	  echo EXPORTS > $output_objdir/$soname.def;
12718	  cat $export_symbols >> $output_objdir/$soname.def;
12719	fi~
12720	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12721      else
12722	ld_shlibs=no
12723      fi
12724      ;;
12725
12726    haiku*)
12727      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12728      link_all_deplibs=yes
12729      ;;
12730
12731    interix[3-9]*)
12732      hardcode_direct=no
12733      hardcode_shlibpath_var=no
12734      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12735      export_dynamic_flag_spec='${wl}-E'
12736      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12737      # Instead, shared libraries are loaded at an image base (0x10000000 by
12738      # default) and relocated if they conflict, which is a slow very memory
12739      # consuming and fragmenting process.  To avoid this, we pick a random,
12740      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12741      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12742      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12743      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'
12744      ;;
12745
12746    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12747      tmp_diet=no
12748      if test "$host_os" = linux-dietlibc; then
12749	case $cc_basename in
12750	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12751	esac
12752      fi
12753      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12754	 && test "$tmp_diet" = no
12755      then
12756	tmp_addflag=' $pic_flag'
12757	tmp_sharedflag='-shared'
12758	case $cc_basename,$host_cpu in
12759        pgcc*)				# Portland Group C compiler
12760	  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'
12761	  tmp_addflag=' $pic_flag'
12762	  ;;
12763	pgf77* | pgf90* | pgf95* | pgfortran*)
12764					# Portland Group f77 and f90 compilers
12765	  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'
12766	  tmp_addflag=' $pic_flag -Mnomain' ;;
12767	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12768	  tmp_addflag=' -i_dynamic' ;;
12769	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12770	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12771	ifc* | ifort*)			# Intel Fortran compiler
12772	  tmp_addflag=' -nofor_main' ;;
12773	lf95*)				# Lahey Fortran 8.1
12774	  whole_archive_flag_spec=
12775	  tmp_sharedflag='--shared' ;;
12776	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12777	  tmp_sharedflag='-qmkshrobj'
12778	  tmp_addflag= ;;
12779	nvcc*)	# Cuda Compiler Driver 2.2
12780	  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'
12781	  compiler_needs_object=yes
12782	  ;;
12783	esac
12784	case `$CC -V 2>&1 | sed 5q` in
12785	*Sun\ C*)			# Sun C 5.9
12786	  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'
12787	  compiler_needs_object=yes
12788	  tmp_sharedflag='-G' ;;
12789	*Sun\ F*)			# Sun Fortran 8.3
12790	  tmp_sharedflag='-G' ;;
12791	esac
12792	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12793
12794        if test "x$supports_anon_versioning" = xyes; then
12795          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12796	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12797	    echo "local: *; };" >> $output_objdir/$libname.ver~
12798	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12799        fi
12800
12801	case $cc_basename in
12802	xlf* | bgf* | bgxlf* | mpixlf*)
12803	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12804	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12805	  hardcode_libdir_flag_spec=
12806	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
12807	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12808	  if test "x$supports_anon_versioning" = xyes; then
12809	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12810	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12811	      echo "local: *; };" >> $output_objdir/$libname.ver~
12812	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12813	  fi
12814	  ;;
12815	esac
12816      else
12817        ld_shlibs=no
12818      fi
12819      ;;
12820
12821    netbsd*)
12822      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12823	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12824	wlarc=
12825      else
12826	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12827	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12828      fi
12829      ;;
12830
12831    solaris*)
12832      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12833	ld_shlibs=no
12834	cat <<_LT_EOF 1>&2
12835
12836*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12837*** create shared libraries on Solaris systems.  Therefore, libtool
12838*** is disabling shared libraries support.  We urge you to upgrade GNU
12839*** binutils to release 2.9.1 or newer.  Another option is to modify
12840*** your PATH or compiler configuration so that the native linker is
12841*** used, and then restart.
12842
12843_LT_EOF
12844      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12845	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12846	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12847      else
12848	ld_shlibs=no
12849      fi
12850      ;;
12851
12852    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12853      case `$LD -v 2>&1` in
12854        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12855	ld_shlibs=no
12856	cat <<_LT_EOF 1>&2
12857
12858*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12859*** reliably create shared libraries on SCO systems.  Therefore, libtool
12860*** is disabling shared libraries support.  We urge you to upgrade GNU
12861*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12862*** your PATH or compiler configuration so that the native linker is
12863*** used, and then restart.
12864
12865_LT_EOF
12866	;;
12867	*)
12868	  # For security reasons, it is highly recommended that you always
12869	  # use absolute paths for naming shared libraries, and exclude the
12870	  # DT_RUNPATH tag from executables and libraries.  But doing so
12871	  # requires that you compile everything twice, which is a pain.
12872	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12873	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12874	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12875	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12876	  else
12877	    ld_shlibs=no
12878	  fi
12879	;;
12880      esac
12881      ;;
12882
12883    sunos4*)
12884      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12885      wlarc=
12886      hardcode_direct=yes
12887      hardcode_shlibpath_var=no
12888      ;;
12889
12890    *)
12891      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12892	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12893	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12894      else
12895	ld_shlibs=no
12896      fi
12897      ;;
12898    esac
12899
12900    if test "$ld_shlibs" = no; then
12901      runpath_var=
12902      hardcode_libdir_flag_spec=
12903      export_dynamic_flag_spec=
12904      whole_archive_flag_spec=
12905    fi
12906  else
12907    # PORTME fill in a description of your system's linker (not GNU ld)
12908    case $host_os in
12909    aix3*)
12910      allow_undefined_flag=unsupported
12911      always_export_symbols=yes
12912      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'
12913      # Note: this linker hardcodes the directories in LIBPATH if there
12914      # are no directories specified by -L.
12915      hardcode_minus_L=yes
12916      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12917	# Neither direct hardcoding nor static linking is supported with a
12918	# broken collect2.
12919	hardcode_direct=unsupported
12920      fi
12921      ;;
12922
12923    aix[4-9]*)
12924      if test "$host_cpu" = ia64; then
12925	# On IA64, the linker does run time linking by default, so we don't
12926	# have to do anything special.
12927	aix_use_runtimelinking=no
12928	exp_sym_flag='-Bexport'
12929	no_entry_flag=""
12930      else
12931	# If we're using GNU nm, then we don't want the "-C" option.
12932	# -C means demangle to AIX nm, but means don't demangle with GNU nm
12933	# Also, AIX nm treats weak defined symbols like other global
12934	# defined symbols, whereas GNU nm marks them as "W".
12935	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12936	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12937	else
12938	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12939	fi
12940	aix_use_runtimelinking=no
12941
12942	# Test if we are trying to use run time linking or normal
12943	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12944	# need to do runtime linking.
12945	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12946	  for ld_flag in $LDFLAGS; do
12947	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12948	    aix_use_runtimelinking=yes
12949	    break
12950	  fi
12951	  done
12952	  ;;
12953	esac
12954
12955	exp_sym_flag='-bexport'
12956	no_entry_flag='-bnoentry'
12957      fi
12958
12959      # When large executables or shared objects are built, AIX ld can
12960      # have problems creating the table of contents.  If linking a library
12961      # or program results in "error TOC overflow" add -mminimal-toc to
12962      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12963      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12964
12965      archive_cmds=''
12966      hardcode_direct=yes
12967      hardcode_direct_absolute=yes
12968      hardcode_libdir_separator=':'
12969      link_all_deplibs=yes
12970      file_list_spec='${wl}-f,'
12971
12972      if test "$GCC" = yes; then
12973	case $host_os in aix4.[012]|aix4.[012].*)
12974	# We only want to do this on AIX 4.2 and lower, the check
12975	# below for broken collect2 doesn't work under 4.3+
12976	  collect2name=`${CC} -print-prog-name=collect2`
12977	  if test -f "$collect2name" &&
12978	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12979	  then
12980	  # We have reworked collect2
12981	  :
12982	  else
12983	  # We have old collect2
12984	  hardcode_direct=unsupported
12985	  # It fails to find uninstalled libraries when the uninstalled
12986	  # path is not listed in the libpath.  Setting hardcode_minus_L
12987	  # to unsupported forces relinking
12988	  hardcode_minus_L=yes
12989	  hardcode_libdir_flag_spec='-L$libdir'
12990	  hardcode_libdir_separator=
12991	  fi
12992	  ;;
12993	esac
12994	shared_flag='-shared'
12995	if test "$aix_use_runtimelinking" = yes; then
12996	  shared_flag="$shared_flag "'${wl}-G'
12997	fi
12998      else
12999	# not using gcc
13000	if test "$host_cpu" = ia64; then
13001	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13002	# chokes on -Wl,-G. The following line is correct:
13003	  shared_flag='-G'
13004	else
13005	  if test "$aix_use_runtimelinking" = yes; then
13006	    shared_flag='${wl}-G'
13007	  else
13008	    shared_flag='${wl}-bM:SRE'
13009	  fi
13010	fi
13011      fi
13012
13013      export_dynamic_flag_spec='${wl}-bexpall'
13014      # It seems that -bexpall does not export symbols beginning with
13015      # underscore (_), so it is better to generate a list of symbols to export.
13016      always_export_symbols=yes
13017      if test "$aix_use_runtimelinking" = yes; then
13018	# Warning - without using the other runtime loading flags (-brtl),
13019	# -berok will link without error, but may produce a broken library.
13020	allow_undefined_flag='-berok'
13021        # Determine the default libpath from the value encoded in an
13022        # empty executable.
13023        if test "${lt_cv_aix_libpath+set}" = set; then
13024  aix_libpath=$lt_cv_aix_libpath
13025else
13026  if ${lt_cv_aix_libpath_+:} false; then :
13027  $as_echo_n "(cached) " >&6
13028else
13029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13030/* end confdefs.h.  */
13031
13032int
13033main ()
13034{
13035
13036  ;
13037  return 0;
13038}
13039_ACEOF
13040if ac_fn_c_try_link "$LINENO"; then :
13041
13042  lt_aix_libpath_sed='
13043      /Import File Strings/,/^$/ {
13044	  /^0/ {
13045	      s/^0  *\([^ ]*\) *$/\1/
13046	      p
13047	  }
13048      }'
13049  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13050  # Check for a 64-bit object if we didn't find anything.
13051  if test -z "$lt_cv_aix_libpath_"; then
13052    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13053  fi
13054fi
13055rm -f core conftest.err conftest.$ac_objext \
13056    conftest$ac_exeext conftest.$ac_ext
13057  if test -z "$lt_cv_aix_libpath_"; then
13058    lt_cv_aix_libpath_="/usr/lib:/lib"
13059  fi
13060
13061fi
13062
13063  aix_libpath=$lt_cv_aix_libpath_
13064fi
13065
13066        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13067        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13068      else
13069	if test "$host_cpu" = ia64; then
13070	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13071	  allow_undefined_flag="-z nodefs"
13072	  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"
13073	else
13074	 # Determine the default libpath from the value encoded in an
13075	 # empty executable.
13076	 if test "${lt_cv_aix_libpath+set}" = set; then
13077  aix_libpath=$lt_cv_aix_libpath
13078else
13079  if ${lt_cv_aix_libpath_+:} false; then :
13080  $as_echo_n "(cached) " >&6
13081else
13082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083/* end confdefs.h.  */
13084
13085int
13086main ()
13087{
13088
13089  ;
13090  return 0;
13091}
13092_ACEOF
13093if ac_fn_c_try_link "$LINENO"; then :
13094
13095  lt_aix_libpath_sed='
13096      /Import File Strings/,/^$/ {
13097	  /^0/ {
13098	      s/^0  *\([^ ]*\) *$/\1/
13099	      p
13100	  }
13101      }'
13102  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13103  # Check for a 64-bit object if we didn't find anything.
13104  if test -z "$lt_cv_aix_libpath_"; then
13105    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13106  fi
13107fi
13108rm -f core conftest.err conftest.$ac_objext \
13109    conftest$ac_exeext conftest.$ac_ext
13110  if test -z "$lt_cv_aix_libpath_"; then
13111    lt_cv_aix_libpath_="/usr/lib:/lib"
13112  fi
13113
13114fi
13115
13116  aix_libpath=$lt_cv_aix_libpath_
13117fi
13118
13119	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13120	  # Warning - without using the other run time loading flags,
13121	  # -berok will link without error, but may produce a broken library.
13122	  no_undefined_flag=' ${wl}-bernotok'
13123	  allow_undefined_flag=' ${wl}-berok'
13124	  if test "$with_gnu_ld" = yes; then
13125	    # We only use this code for GNU lds that support --whole-archive.
13126	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13127	  else
13128	    # Exported symbols can be pulled into shared objects from archives
13129	    whole_archive_flag_spec='$convenience'
13130	  fi
13131	  archive_cmds_need_lc=yes
13132	  # This is similar to how AIX traditionally builds its shared libraries.
13133	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13134	fi
13135      fi
13136      ;;
13137
13138    amigaos*)
13139      case $host_cpu in
13140      powerpc)
13141            # see comment about AmigaOS4 .so support
13142            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13143            archive_expsym_cmds=''
13144        ;;
13145      m68k)
13146            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)'
13147            hardcode_libdir_flag_spec='-L$libdir'
13148            hardcode_minus_L=yes
13149        ;;
13150      esac
13151      ;;
13152
13153    bsdi[45]*)
13154      export_dynamic_flag_spec=-rdynamic
13155      ;;
13156
13157    cygwin* | mingw* | pw32* | cegcc*)
13158      # When not using gcc, we currently assume that we are using
13159      # Microsoft Visual C++.
13160      # hardcode_libdir_flag_spec is actually meaningless, as there is
13161      # no search path for DLLs.
13162      case $cc_basename in
13163      cl*)
13164	# Native MSVC
13165	hardcode_libdir_flag_spec=' '
13166	allow_undefined_flag=unsupported
13167	always_export_symbols=yes
13168	file_list_spec='@'
13169	# Tell ltmain to make .lib files, not .a files.
13170	libext=lib
13171	# Tell ltmain to make .dll files, not .so files.
13172	shrext_cmds=".dll"
13173	# FIXME: Setting linknames here is a bad hack.
13174	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13175	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13176	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13177	  else
13178	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13179	  fi~
13180	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13181	  linknames='
13182	# The linker will not automatically build a static lib if we build a DLL.
13183	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13184	enable_shared_with_static_runtimes=yes
13185	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13186	# Don't use ranlib
13187	old_postinstall_cmds='chmod 644 $oldlib'
13188	postlink_cmds='lt_outputfile="@OUTPUT@"~
13189	  lt_tool_outputfile="@TOOL_OUTPUT@"~
13190	  case $lt_outputfile in
13191	    *.exe|*.EXE) ;;
13192	    *)
13193	      lt_outputfile="$lt_outputfile.exe"
13194	      lt_tool_outputfile="$lt_tool_outputfile.exe"
13195	      ;;
13196	  esac~
13197	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13198	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13199	    $RM "$lt_outputfile.manifest";
13200	  fi'
13201	;;
13202      *)
13203	# Assume MSVC wrapper
13204	hardcode_libdir_flag_spec=' '
13205	allow_undefined_flag=unsupported
13206	# Tell ltmain to make .lib files, not .a files.
13207	libext=lib
13208	# Tell ltmain to make .dll files, not .so files.
13209	shrext_cmds=".dll"
13210	# FIXME: Setting linknames here is a bad hack.
13211	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13212	# The linker will automatically build a .lib file if we build a DLL.
13213	old_archive_from_new_cmds='true'
13214	# FIXME: Should let the user specify the lib program.
13215	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13216	enable_shared_with_static_runtimes=yes
13217	;;
13218      esac
13219      ;;
13220
13221    darwin* | rhapsody*)
13222
13223
13224  archive_cmds_need_lc=no
13225  hardcode_direct=no
13226  hardcode_automatic=yes
13227  hardcode_shlibpath_var=unsupported
13228  if test "$lt_cv_ld_force_load" = "yes"; then
13229    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\"`'
13230  else
13231    whole_archive_flag_spec=''
13232  fi
13233  link_all_deplibs=yes
13234  allow_undefined_flag="$_lt_dar_allow_undefined"
13235  case $cc_basename in
13236     ifort*) _lt_dar_can_shared=yes ;;
13237     *) _lt_dar_can_shared=$GCC ;;
13238  esac
13239  if test "$_lt_dar_can_shared" = "yes"; then
13240    output_verbose_link_cmd=func_echo_all
13241    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13242    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13243    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}"
13244    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}"
13245
13246  else
13247  ld_shlibs=no
13248  fi
13249
13250      ;;
13251
13252    dgux*)
13253      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13254      hardcode_libdir_flag_spec='-L$libdir'
13255      hardcode_shlibpath_var=no
13256      ;;
13257
13258    freebsd1*)
13259      ld_shlibs=no
13260      ;;
13261
13262    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13263    # support.  Future versions do this automatically, but an explicit c++rt0.o
13264    # does not break anything, and helps significantly (at the cost of a little
13265    # extra space).
13266    freebsd2.2*)
13267      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13268      hardcode_libdir_flag_spec='-R$libdir'
13269      hardcode_direct=yes
13270      hardcode_shlibpath_var=no
13271      ;;
13272
13273    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13274    freebsd2*)
13275      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13276      hardcode_direct=yes
13277      hardcode_minus_L=yes
13278      hardcode_shlibpath_var=no
13279      ;;
13280
13281    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13282    freebsd* | dragonfly*)
13283      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13284      hardcode_libdir_flag_spec='-R$libdir'
13285      hardcode_direct=yes
13286      hardcode_shlibpath_var=no
13287      ;;
13288
13289    hpux9*)
13290      if test "$GCC" = yes; then
13291	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13292      else
13293	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13294      fi
13295      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13296      hardcode_libdir_separator=:
13297      hardcode_direct=yes
13298
13299      # hardcode_minus_L: Not really in the search PATH,
13300      # but as the default location of the library.
13301      hardcode_minus_L=yes
13302      export_dynamic_flag_spec='${wl}-E'
13303      ;;
13304
13305    hpux10*)
13306      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13307	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13308      else
13309	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13310      fi
13311      if test "$with_gnu_ld" = no; then
13312	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13313	hardcode_libdir_flag_spec_ld='+b $libdir'
13314	hardcode_libdir_separator=:
13315	hardcode_direct=yes
13316	hardcode_direct_absolute=yes
13317	export_dynamic_flag_spec='${wl}-E'
13318	# hardcode_minus_L: Not really in the search PATH,
13319	# but as the default location of the library.
13320	hardcode_minus_L=yes
13321      fi
13322      ;;
13323
13324    hpux11*)
13325      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13326	case $host_cpu in
13327	hppa*64*)
13328	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13329	  ;;
13330	ia64*)
13331	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13332	  ;;
13333	*)
13334	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13335	  ;;
13336	esac
13337      else
13338	case $host_cpu in
13339	hppa*64*)
13340	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13341	  ;;
13342	ia64*)
13343	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13344	  ;;
13345	*)
13346
13347	  # Older versions of the 11.00 compiler do not understand -b yet
13348	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13349	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13350$as_echo_n "checking if $CC understands -b... " >&6; }
13351if ${lt_cv_prog_compiler__b+:} false; then :
13352  $as_echo_n "(cached) " >&6
13353else
13354  lt_cv_prog_compiler__b=no
13355   save_LDFLAGS="$LDFLAGS"
13356   LDFLAGS="$LDFLAGS -b"
13357   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13358   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13359     # The linker can only warn and ignore the option if not recognized
13360     # So say no if there are warnings
13361     if test -s conftest.err; then
13362       # Append any errors to the config.log.
13363       cat conftest.err 1>&5
13364       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13365       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13366       if diff conftest.exp conftest.er2 >/dev/null; then
13367         lt_cv_prog_compiler__b=yes
13368       fi
13369     else
13370       lt_cv_prog_compiler__b=yes
13371     fi
13372   fi
13373   $RM -r conftest*
13374   LDFLAGS="$save_LDFLAGS"
13375
13376fi
13377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13378$as_echo "$lt_cv_prog_compiler__b" >&6; }
13379
13380if test x"$lt_cv_prog_compiler__b" = xyes; then
13381    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13382else
13383    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13384fi
13385
13386	  ;;
13387	esac
13388      fi
13389      if test "$with_gnu_ld" = no; then
13390	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13391	hardcode_libdir_separator=:
13392
13393	case $host_cpu in
13394	hppa*64*|ia64*)
13395	  hardcode_direct=no
13396	  hardcode_shlibpath_var=no
13397	  ;;
13398	*)
13399	  hardcode_direct=yes
13400	  hardcode_direct_absolute=yes
13401	  export_dynamic_flag_spec='${wl}-E'
13402
13403	  # hardcode_minus_L: Not really in the search PATH,
13404	  # but as the default location of the library.
13405	  hardcode_minus_L=yes
13406	  ;;
13407	esac
13408      fi
13409      ;;
13410
13411    irix5* | irix6* | nonstopux*)
13412      if test "$GCC" = yes; then
13413	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'
13414	# Try to use the -exported_symbol ld option, if it does not
13415	# work, assume that -exports_file does not work either and
13416	# implicitly export all symbols.
13417	# This should be the same for all languages, so no per-tag cache variable.
13418	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13419$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13420if ${lt_cv_irix_exported_symbol+:} false; then :
13421  $as_echo_n "(cached) " >&6
13422else
13423  save_LDFLAGS="$LDFLAGS"
13424	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13425	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426/* end confdefs.h.  */
13427int foo (void) { return 0; }
13428_ACEOF
13429if ac_fn_c_try_link "$LINENO"; then :
13430  lt_cv_irix_exported_symbol=yes
13431else
13432  lt_cv_irix_exported_symbol=no
13433fi
13434rm -f core conftest.err conftest.$ac_objext \
13435    conftest$ac_exeext conftest.$ac_ext
13436           LDFLAGS="$save_LDFLAGS"
13437fi
13438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13439$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13440	if test "$lt_cv_irix_exported_symbol" = yes; then
13441          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'
13442	fi
13443      else
13444	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'
13445	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'
13446      fi
13447      archive_cmds_need_lc='no'
13448      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13449      hardcode_libdir_separator=:
13450      inherit_rpath=yes
13451      link_all_deplibs=yes
13452      ;;
13453
13454    netbsd*)
13455      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13456	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13457      else
13458	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13459      fi
13460      hardcode_libdir_flag_spec='-R$libdir'
13461      hardcode_direct=yes
13462      hardcode_shlibpath_var=no
13463      ;;
13464
13465    newsos6)
13466      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13467      hardcode_direct=yes
13468      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13469      hardcode_libdir_separator=:
13470      hardcode_shlibpath_var=no
13471      ;;
13472
13473    *nto* | *qnx*)
13474      ;;
13475
13476    openbsd*)
13477      if test -f /usr/libexec/ld.so; then
13478	hardcode_direct=yes
13479	hardcode_shlibpath_var=no
13480	hardcode_direct_absolute=yes
13481	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13482	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13483	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13484	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13485	  export_dynamic_flag_spec='${wl}-E'
13486	else
13487	  case $host_os in
13488	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13489	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13490	     hardcode_libdir_flag_spec='-R$libdir'
13491	     ;;
13492	   *)
13493	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13494	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13495	     ;;
13496	  esac
13497	fi
13498      else
13499	ld_shlibs=no
13500      fi
13501      ;;
13502
13503    os2*)
13504      hardcode_libdir_flag_spec='-L$libdir'
13505      hardcode_minus_L=yes
13506      allow_undefined_flag=unsupported
13507      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13508      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13509      ;;
13510
13511    osf3*)
13512      if test "$GCC" = yes; then
13513	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13514	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'
13515      else
13516	allow_undefined_flag=' -expect_unresolved \*'
13517	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'
13518      fi
13519      archive_cmds_need_lc='no'
13520      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13521      hardcode_libdir_separator=:
13522      ;;
13523
13524    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13525      if test "$GCC" = yes; then
13526	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13527	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'
13528	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13529      else
13530	allow_undefined_flag=' -expect_unresolved \*'
13531	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'
13532	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~
13533	$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'
13534
13535	# Both c and cxx compiler support -rpath directly
13536	hardcode_libdir_flag_spec='-rpath $libdir'
13537      fi
13538      archive_cmds_need_lc='no'
13539      hardcode_libdir_separator=:
13540      ;;
13541
13542    solaris*)
13543      no_undefined_flag=' -z defs'
13544      if test "$GCC" = yes; then
13545	wlarc='${wl}'
13546	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13547	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13548	  $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'
13549      else
13550	case `$CC -V 2>&1` in
13551	*"Compilers 5.0"*)
13552	  wlarc=''
13553	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13554	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13555	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13556	  ;;
13557	*)
13558	  wlarc='${wl}'
13559	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13560	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13561	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13562	  ;;
13563	esac
13564      fi
13565      hardcode_libdir_flag_spec='-R$libdir'
13566      hardcode_shlibpath_var=no
13567      case $host_os in
13568      solaris2.[0-5] | solaris2.[0-5].*) ;;
13569      *)
13570	# The compiler driver will combine and reorder linker options,
13571	# but understands `-z linker_flag'.  GCC discards it without `$wl',
13572	# but is careful enough not to reorder.
13573	# Supported since Solaris 2.6 (maybe 2.5.1?)
13574	if test "$GCC" = yes; then
13575	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13576	else
13577	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13578	fi
13579	;;
13580      esac
13581      link_all_deplibs=yes
13582      ;;
13583
13584    sunos4*)
13585      if test "x$host_vendor" = xsequent; then
13586	# Use $CC to link under sequent, because it throws in some extra .o
13587	# files that make .init and .fini sections work.
13588	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13589      else
13590	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13591      fi
13592      hardcode_libdir_flag_spec='-L$libdir'
13593      hardcode_direct=yes
13594      hardcode_minus_L=yes
13595      hardcode_shlibpath_var=no
13596      ;;
13597
13598    sysv4)
13599      case $host_vendor in
13600	sni)
13601	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13602	  hardcode_direct=yes # is this really true???
13603	;;
13604	siemens)
13605	  ## LD is ld it makes a PLAMLIB
13606	  ## CC just makes a GrossModule.
13607	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13608	  reload_cmds='$CC -r -o $output$reload_objs'
13609	  hardcode_direct=no
13610        ;;
13611	motorola)
13612	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13613	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13614	;;
13615      esac
13616      runpath_var='LD_RUN_PATH'
13617      hardcode_shlibpath_var=no
13618      ;;
13619
13620    sysv4.3*)
13621      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13622      hardcode_shlibpath_var=no
13623      export_dynamic_flag_spec='-Bexport'
13624      ;;
13625
13626    sysv4*MP*)
13627      if test -d /usr/nec; then
13628	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13629	hardcode_shlibpath_var=no
13630	runpath_var=LD_RUN_PATH
13631	hardcode_runpath_var=yes
13632	ld_shlibs=yes
13633      fi
13634      ;;
13635
13636    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13637      no_undefined_flag='${wl}-z,text'
13638      archive_cmds_need_lc=no
13639      hardcode_shlibpath_var=no
13640      runpath_var='LD_RUN_PATH'
13641
13642      if test "$GCC" = yes; then
13643	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13644	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13645      else
13646	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13647	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13648      fi
13649      ;;
13650
13651    sysv5* | sco3.2v5* | sco5v6*)
13652      # Note: We can NOT use -z defs as we might desire, because we do not
13653      # link with -lc, and that would cause any symbols used from libc to
13654      # always be unresolved, which means just about no library would
13655      # ever link correctly.  If we're not using GNU ld we use -z text
13656      # though, which does catch some bad symbols but isn't as heavy-handed
13657      # as -z defs.
13658      no_undefined_flag='${wl}-z,text'
13659      allow_undefined_flag='${wl}-z,nodefs'
13660      archive_cmds_need_lc=no
13661      hardcode_shlibpath_var=no
13662      hardcode_libdir_flag_spec='${wl}-R,$libdir'
13663      hardcode_libdir_separator=':'
13664      link_all_deplibs=yes
13665      export_dynamic_flag_spec='${wl}-Bexport'
13666      runpath_var='LD_RUN_PATH'
13667
13668      if test "$GCC" = yes; then
13669	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13670	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13671      else
13672	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13673	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13674      fi
13675      ;;
13676
13677    uts4*)
13678      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13679      hardcode_libdir_flag_spec='-L$libdir'
13680      hardcode_shlibpath_var=no
13681      ;;
13682
13683    *)
13684      ld_shlibs=no
13685      ;;
13686    esac
13687
13688    if test x$host_vendor = xsni; then
13689      case $host in
13690      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13691	export_dynamic_flag_spec='${wl}-Blargedynsym'
13692	;;
13693      esac
13694    fi
13695  fi
13696
13697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13698$as_echo "$ld_shlibs" >&6; }
13699test "$ld_shlibs" = no && can_build_shared=no
13700
13701with_gnu_ld=$with_gnu_ld
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717#
13718# Do we need to explicitly link libc?
13719#
13720case "x$archive_cmds_need_lc" in
13721x|xyes)
13722  # Assume -lc should be added
13723  archive_cmds_need_lc=yes
13724
13725  if test "$enable_shared" = yes && test "$GCC" = yes; then
13726    case $archive_cmds in
13727    *'~'*)
13728      # FIXME: we may have to deal with multi-command sequences.
13729      ;;
13730    '$CC '*)
13731      # Test whether the compiler implicitly links with -lc since on some
13732      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13733      # to ld, don't add -lc before -lgcc.
13734      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13735$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13736if ${lt_cv_archive_cmds_need_lc+:} false; then :
13737  $as_echo_n "(cached) " >&6
13738else
13739  $RM conftest*
13740	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13741
13742	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13743  (eval $ac_compile) 2>&5
13744  ac_status=$?
13745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13746  test $ac_status = 0; } 2>conftest.err; then
13747	  soname=conftest
13748	  lib=conftest
13749	  libobjs=conftest.$ac_objext
13750	  deplibs=
13751	  wl=$lt_prog_compiler_wl
13752	  pic_flag=$lt_prog_compiler_pic
13753	  compiler_flags=-v
13754	  linker_flags=-v
13755	  verstring=
13756	  output_objdir=.
13757	  libname=conftest
13758	  lt_save_allow_undefined_flag=$allow_undefined_flag
13759	  allow_undefined_flag=
13760	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13761  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13762  ac_status=$?
13763  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13764  test $ac_status = 0; }
13765	  then
13766	    lt_cv_archive_cmds_need_lc=no
13767	  else
13768	    lt_cv_archive_cmds_need_lc=yes
13769	  fi
13770	  allow_undefined_flag=$lt_save_allow_undefined_flag
13771	else
13772	  cat conftest.err 1>&5
13773	fi
13774	$RM conftest*
13775
13776fi
13777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13778$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13779      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13780      ;;
13781    esac
13782  fi
13783  ;;
13784esac
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
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
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13943$as_echo_n "checking dynamic linker characteristics... " >&6; }
13944
13945if test "$GCC" = yes; then
13946  case $host_os in
13947    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13948    *) lt_awk_arg="/^libraries:/" ;;
13949  esac
13950  case $host_os in
13951    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13952    *) lt_sed_strip_eq="s,=/,/,g" ;;
13953  esac
13954  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13955  case $lt_search_path_spec in
13956  *\;*)
13957    # if the path contains ";" then we assume it to be the separator
13958    # otherwise default to the standard path separator (i.e. ":") - it is
13959    # assumed that no part of a normal pathname contains ";" but that should
13960    # okay in the real world where ";" in dirpaths is itself problematic.
13961    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13962    ;;
13963  *)
13964    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13965    ;;
13966  esac
13967  # Ok, now we have the path, separated by spaces, we can step through it
13968  # and add multilib dir if necessary.
13969  lt_tmp_lt_search_path_spec=
13970  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13971  for lt_sys_path in $lt_search_path_spec; do
13972    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13973      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13974    else
13975      test -d "$lt_sys_path" && \
13976	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13977    fi
13978  done
13979  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13980BEGIN {RS=" "; FS="/|\n";} {
13981  lt_foo="";
13982  lt_count=0;
13983  for (lt_i = NF; lt_i > 0; lt_i--) {
13984    if ($lt_i != "" && $lt_i != ".") {
13985      if ($lt_i == "..") {
13986        lt_count++;
13987      } else {
13988        if (lt_count == 0) {
13989          lt_foo="/" $lt_i lt_foo;
13990        } else {
13991          lt_count--;
13992        }
13993      }
13994    }
13995  }
13996  if (lt_foo != "") { lt_freq[lt_foo]++; }
13997  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13998}'`
13999  # AWK program above erroneously prepends '/' to C:/dos/paths
14000  # for these hosts.
14001  case $host_os in
14002    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14003      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14004  esac
14005  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14006else
14007  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14008fi
14009library_names_spec=
14010libname_spec='lib$name'
14011soname_spec=
14012shrext_cmds=".so"
14013postinstall_cmds=
14014postuninstall_cmds=
14015finish_cmds=
14016finish_eval=
14017shlibpath_var=
14018shlibpath_overrides_runpath=unknown
14019version_type=none
14020dynamic_linker="$host_os ld.so"
14021sys_lib_dlsearch_path_spec="/lib /usr/lib"
14022need_lib_prefix=unknown
14023hardcode_into_libs=no
14024
14025# when you set need_version to no, make sure it does not cause -set_version
14026# flags to be left without arguments
14027need_version=unknown
14028
14029case $host_os in
14030aix3*)
14031  version_type=linux
14032  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14033  shlibpath_var=LIBPATH
14034
14035  # AIX 3 has no versioning support, so we append a major version to the name.
14036  soname_spec='${libname}${release}${shared_ext}$major'
14037  ;;
14038
14039aix[4-9]*)
14040  version_type=linux
14041  need_lib_prefix=no
14042  need_version=no
14043  hardcode_into_libs=yes
14044  if test "$host_cpu" = ia64; then
14045    # AIX 5 supports IA64
14046    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14047    shlibpath_var=LD_LIBRARY_PATH
14048  else
14049    # With GCC up to 2.95.x, collect2 would create an import file
14050    # for dependence libraries.  The import file would start with
14051    # the line `#! .'.  This would cause the generated library to
14052    # depend on `.', always an invalid library.  This was fixed in
14053    # development snapshots of GCC prior to 3.0.
14054    case $host_os in
14055      aix4 | aix4.[01] | aix4.[01].*)
14056      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14057	   echo ' yes '
14058	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14059	:
14060      else
14061	can_build_shared=no
14062      fi
14063      ;;
14064    esac
14065    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14066    # soname into executable. Probably we can add versioning support to
14067    # collect2, so additional links can be useful in future.
14068    if test "$aix_use_runtimelinking" = yes; then
14069      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14070      # instead of lib<name>.a to let people know that these are not
14071      # typical AIX shared libraries.
14072      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14073    else
14074      # We preserve .a as extension for shared libraries through AIX4.2
14075      # and later when we are not doing run time linking.
14076      library_names_spec='${libname}${release}.a $libname.a'
14077      soname_spec='${libname}${release}${shared_ext}$major'
14078    fi
14079    shlibpath_var=LIBPATH
14080  fi
14081  ;;
14082
14083amigaos*)
14084  case $host_cpu in
14085  powerpc)
14086    # Since July 2007 AmigaOS4 officially supports .so libraries.
14087    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14088    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14089    ;;
14090  m68k)
14091    library_names_spec='$libname.ixlibrary $libname.a'
14092    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14093    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
14094    ;;
14095  esac
14096  ;;
14097
14098beos*)
14099  library_names_spec='${libname}${shared_ext}'
14100  dynamic_linker="$host_os ld.so"
14101  shlibpath_var=LIBRARY_PATH
14102  ;;
14103
14104bsdi[45]*)
14105  version_type=linux
14106  need_version=no
14107  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14108  soname_spec='${libname}${release}${shared_ext}$major'
14109  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14110  shlibpath_var=LD_LIBRARY_PATH
14111  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14112  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14113  # the default ld.so.conf also contains /usr/contrib/lib and
14114  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14115  # libtool to hard-code these into programs
14116  ;;
14117
14118cygwin* | mingw* | pw32* | cegcc*)
14119  version_type=windows
14120  shrext_cmds=".dll"
14121  need_version=no
14122  need_lib_prefix=no
14123
14124  case $GCC,$cc_basename in
14125  yes,*)
14126    # gcc
14127    library_names_spec='$libname.dll.a'
14128    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14129    postinstall_cmds='base_file=`basename \${file}`~
14130      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14131      dldir=$destdir/`dirname \$dlpath`~
14132      test -d \$dldir || mkdir -p \$dldir~
14133      $install_prog $dir/$dlname \$dldir/$dlname~
14134      chmod a+x \$dldir/$dlname~
14135      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14136        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14137      fi'
14138    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14139      dlpath=$dir/\$dldll~
14140       $RM \$dlpath'
14141    shlibpath_overrides_runpath=yes
14142
14143    case $host_os in
14144    cygwin*)
14145      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14146      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14147
14148      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14149      ;;
14150    mingw* | cegcc*)
14151      # MinGW DLLs use traditional 'lib' prefix
14152      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14153      ;;
14154    pw32*)
14155      # pw32 DLLs use 'pw' prefix rather than 'lib'
14156      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14157      ;;
14158    esac
14159    dynamic_linker='Win32 ld.exe'
14160    ;;
14161
14162  *,cl*)
14163    # Native MSVC
14164    libname_spec='$name'
14165    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14166    library_names_spec='${libname}.dll.lib'
14167
14168    case $build_os in
14169    mingw*)
14170      sys_lib_search_path_spec=
14171      lt_save_ifs=$IFS
14172      IFS=';'
14173      for lt_path in $LIB
14174      do
14175        IFS=$lt_save_ifs
14176        # Let DOS variable expansion print the short 8.3 style file name.
14177        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14178        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14179      done
14180      IFS=$lt_save_ifs
14181      # Convert to MSYS style.
14182      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14183      ;;
14184    cygwin*)
14185      # Convert to unix form, then to dos form, then back to unix form
14186      # but this time dos style (no spaces!) so that the unix form looks
14187      # like /cygdrive/c/PROGRA~1:/cygdr...
14188      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14189      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14190      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14191      ;;
14192    *)
14193      sys_lib_search_path_spec="$LIB"
14194      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14195        # It is most probably a Windows format PATH.
14196        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14197      else
14198        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14199      fi
14200      # FIXME: find the short name or the path components, as spaces are
14201      # common. (e.g. "Program Files" -> "PROGRA~1")
14202      ;;
14203    esac
14204
14205    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14206    postinstall_cmds='base_file=`basename \${file}`~
14207      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14208      dldir=$destdir/`dirname \$dlpath`~
14209      test -d \$dldir || mkdir -p \$dldir~
14210      $install_prog $dir/$dlname \$dldir/$dlname'
14211    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14212      dlpath=$dir/\$dldll~
14213       $RM \$dlpath'
14214    shlibpath_overrides_runpath=yes
14215    dynamic_linker='Win32 link.exe'
14216    ;;
14217
14218  *)
14219    # Assume MSVC wrapper
14220    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14221    dynamic_linker='Win32 ld.exe'
14222    ;;
14223  esac
14224  # FIXME: first we should search . and the directory the executable is in
14225  shlibpath_var=PATH
14226  ;;
14227
14228darwin* | rhapsody*)
14229  dynamic_linker="$host_os dyld"
14230  version_type=darwin
14231  need_lib_prefix=no
14232  need_version=no
14233  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14234  soname_spec='${libname}${release}${major}$shared_ext'
14235  shlibpath_overrides_runpath=yes
14236  shlibpath_var=DYLD_LIBRARY_PATH
14237  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14238
14239  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14240  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14241  ;;
14242
14243dgux*)
14244  version_type=linux
14245  need_lib_prefix=no
14246  need_version=no
14247  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14248  soname_spec='${libname}${release}${shared_ext}$major'
14249  shlibpath_var=LD_LIBRARY_PATH
14250  ;;
14251
14252freebsd1*)
14253  dynamic_linker=no
14254  ;;
14255
14256freebsd* | dragonfly*)
14257  # DragonFly does not have aout.  When/if they implement a new
14258  # versioning mechanism, adjust this.
14259  if test -x /usr/bin/objformat; then
14260    objformat=`/usr/bin/objformat`
14261  else
14262    case $host_os in
14263    freebsd[123]*) objformat=aout ;;
14264    *) objformat=elf ;;
14265    esac
14266  fi
14267  version_type=freebsd-$objformat
14268  case $version_type in
14269    freebsd-elf*)
14270      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14271      need_version=no
14272      need_lib_prefix=no
14273      ;;
14274    freebsd-*)
14275      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14276      need_version=yes
14277      ;;
14278  esac
14279  shlibpath_var=LD_LIBRARY_PATH
14280  case $host_os in
14281  freebsd2*)
14282    shlibpath_overrides_runpath=yes
14283    ;;
14284  freebsd3.[01]* | freebsdelf3.[01]*)
14285    shlibpath_overrides_runpath=yes
14286    hardcode_into_libs=yes
14287    ;;
14288  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14289  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14290    shlibpath_overrides_runpath=no
14291    hardcode_into_libs=yes
14292    ;;
14293  *) # from 4.6 on, and DragonFly
14294    shlibpath_overrides_runpath=yes
14295    hardcode_into_libs=yes
14296    ;;
14297  esac
14298  ;;
14299
14300gnu*)
14301  version_type=linux
14302  need_lib_prefix=no
14303  need_version=no
14304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14305  soname_spec='${libname}${release}${shared_ext}$major'
14306  shlibpath_var=LD_LIBRARY_PATH
14307  hardcode_into_libs=yes
14308  ;;
14309
14310haiku*)
14311  version_type=linux
14312  need_lib_prefix=no
14313  need_version=no
14314  dynamic_linker="$host_os runtime_loader"
14315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14316  soname_spec='${libname}${release}${shared_ext}$major'
14317  shlibpath_var=LIBRARY_PATH
14318  shlibpath_overrides_runpath=yes
14319  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14320  hardcode_into_libs=yes
14321  ;;
14322
14323hpux9* | hpux10* | hpux11*)
14324  # Give a soname corresponding to the major version so that dld.sl refuses to
14325  # link against other versions.
14326  version_type=sunos
14327  need_lib_prefix=no
14328  need_version=no
14329  case $host_cpu in
14330  ia64*)
14331    shrext_cmds='.so'
14332    hardcode_into_libs=yes
14333    dynamic_linker="$host_os dld.so"
14334    shlibpath_var=LD_LIBRARY_PATH
14335    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14336    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14337    soname_spec='${libname}${release}${shared_ext}$major'
14338    if test "X$HPUX_IA64_MODE" = X32; then
14339      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14340    else
14341      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14342    fi
14343    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14344    ;;
14345  hppa*64*)
14346    shrext_cmds='.sl'
14347    hardcode_into_libs=yes
14348    dynamic_linker="$host_os dld.sl"
14349    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14350    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14351    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14352    soname_spec='${libname}${release}${shared_ext}$major'
14353    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14354    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14355    ;;
14356  *)
14357    shrext_cmds='.sl'
14358    dynamic_linker="$host_os dld.sl"
14359    shlibpath_var=SHLIB_PATH
14360    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14361    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14362    soname_spec='${libname}${release}${shared_ext}$major'
14363    ;;
14364  esac
14365  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14366  postinstall_cmds='chmod 555 $lib'
14367  # or fails outright, so override atomically:
14368  install_override_mode=555
14369  ;;
14370
14371interix[3-9]*)
14372  version_type=linux
14373  need_lib_prefix=no
14374  need_version=no
14375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14376  soname_spec='${libname}${release}${shared_ext}$major'
14377  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14378  shlibpath_var=LD_LIBRARY_PATH
14379  shlibpath_overrides_runpath=no
14380  hardcode_into_libs=yes
14381  ;;
14382
14383irix5* | irix6* | nonstopux*)
14384  case $host_os in
14385    nonstopux*) version_type=nonstopux ;;
14386    *)
14387	if test "$lt_cv_prog_gnu_ld" = yes; then
14388		version_type=linux
14389	else
14390		version_type=irix
14391	fi ;;
14392  esac
14393  need_lib_prefix=no
14394  need_version=no
14395  soname_spec='${libname}${release}${shared_ext}$major'
14396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14397  case $host_os in
14398  irix5* | nonstopux*)
14399    libsuff= shlibsuff=
14400    ;;
14401  *)
14402    case $LD in # libtool.m4 will add one of these switches to LD
14403    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14404      libsuff= shlibsuff= libmagic=32-bit;;
14405    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14406      libsuff=32 shlibsuff=N32 libmagic=N32;;
14407    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14408      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14409    *) libsuff= shlibsuff= libmagic=never-match;;
14410    esac
14411    ;;
14412  esac
14413  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14414  shlibpath_overrides_runpath=no
14415  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14416  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14417  hardcode_into_libs=yes
14418  ;;
14419
14420# No shared lib support for Linux oldld, aout, or coff.
14421linux*oldld* | linux*aout* | linux*coff*)
14422  dynamic_linker=no
14423  ;;
14424
14425# This must be Linux ELF.
14426linux* | k*bsd*-gnu | kopensolaris*-gnu)
14427  version_type=linux
14428  need_lib_prefix=no
14429  need_version=no
14430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14431  soname_spec='${libname}${release}${shared_ext}$major'
14432  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14433  shlibpath_var=LD_LIBRARY_PATH
14434  shlibpath_overrides_runpath=no
14435
14436  # Some binutils ld are patched to set DT_RUNPATH
14437  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14438  $as_echo_n "(cached) " >&6
14439else
14440  lt_cv_shlibpath_overrides_runpath=no
14441    save_LDFLAGS=$LDFLAGS
14442    save_libdir=$libdir
14443    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14444	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14445    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14446/* end confdefs.h.  */
14447
14448int
14449main ()
14450{
14451
14452  ;
14453  return 0;
14454}
14455_ACEOF
14456if ac_fn_c_try_link "$LINENO"; then :
14457  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14458  lt_cv_shlibpath_overrides_runpath=yes
14459fi
14460fi
14461rm -f core conftest.err conftest.$ac_objext \
14462    conftest$ac_exeext conftest.$ac_ext
14463    LDFLAGS=$save_LDFLAGS
14464    libdir=$save_libdir
14465
14466fi
14467
14468  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14469
14470  # This implies no fast_install, which is unacceptable.
14471  # Some rework will be needed to allow for fast_install
14472  # before this can be enabled.
14473  hardcode_into_libs=yes
14474
14475  # Append ld.so.conf contents to the search path
14476  if test -f /etc/ld.so.conf; then
14477    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' ' '`
14478    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14479  fi
14480
14481  # We used to test for /lib/ld.so.1 and disable shared libraries on
14482  # powerpc, because MkLinux only supported shared libraries with the
14483  # GNU dynamic linker.  Since this was broken with cross compilers,
14484  # most powerpc-linux boxes support dynamic linking these days and
14485  # people can always --disable-shared, the test was removed, and we
14486  # assume the GNU/Linux dynamic linker is in use.
14487  dynamic_linker='GNU/Linux ld.so'
14488  ;;
14489
14490netbsd*)
14491  version_type=sunos
14492  need_lib_prefix=no
14493  need_version=no
14494  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14495    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14496    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14497    dynamic_linker='NetBSD (a.out) ld.so'
14498  else
14499    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14500    soname_spec='${libname}${release}${shared_ext}$major'
14501    dynamic_linker='NetBSD ld.elf_so'
14502  fi
14503  shlibpath_var=LD_LIBRARY_PATH
14504  shlibpath_overrides_runpath=yes
14505  hardcode_into_libs=yes
14506  ;;
14507
14508newsos6)
14509  version_type=linux
14510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14511  shlibpath_var=LD_LIBRARY_PATH
14512  shlibpath_overrides_runpath=yes
14513  ;;
14514
14515*nto* | *qnx*)
14516  version_type=qnx
14517  need_lib_prefix=no
14518  need_version=no
14519  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14520  soname_spec='${libname}${release}${shared_ext}$major'
14521  shlibpath_var=LD_LIBRARY_PATH
14522  shlibpath_overrides_runpath=no
14523  hardcode_into_libs=yes
14524  dynamic_linker='ldqnx.so'
14525  ;;
14526
14527openbsd*)
14528  version_type=sunos
14529  sys_lib_dlsearch_path_spec="/usr/lib"
14530  need_lib_prefix=no
14531  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14532  case $host_os in
14533    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14534    *)				need_version=no  ;;
14535  esac
14536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14537  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14538  shlibpath_var=LD_LIBRARY_PATH
14539  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14540    case $host_os in
14541      openbsd2.[89] | openbsd2.[89].*)
14542	shlibpath_overrides_runpath=no
14543	;;
14544      *)
14545	shlibpath_overrides_runpath=yes
14546	;;
14547      esac
14548  else
14549    shlibpath_overrides_runpath=yes
14550  fi
14551  ;;
14552
14553os2*)
14554  libname_spec='$name'
14555  shrext_cmds=".dll"
14556  need_lib_prefix=no
14557  library_names_spec='$libname${shared_ext} $libname.a'
14558  dynamic_linker='OS/2 ld.exe'
14559  shlibpath_var=LIBPATH
14560  ;;
14561
14562osf3* | osf4* | osf5*)
14563  version_type=osf
14564  need_lib_prefix=no
14565  need_version=no
14566  soname_spec='${libname}${release}${shared_ext}$major'
14567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14568  shlibpath_var=LD_LIBRARY_PATH
14569  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14570  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14571  ;;
14572
14573rdos*)
14574  dynamic_linker=no
14575  ;;
14576
14577solaris*)
14578  version_type=linux
14579  need_lib_prefix=no
14580  need_version=no
14581  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14582  soname_spec='${libname}${release}${shared_ext}$major'
14583  shlibpath_var=LD_LIBRARY_PATH
14584  shlibpath_overrides_runpath=yes
14585  hardcode_into_libs=yes
14586  # ldd complains unless libraries are executable
14587  postinstall_cmds='chmod +x $lib'
14588  ;;
14589
14590sunos4*)
14591  version_type=sunos
14592  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14593  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14594  shlibpath_var=LD_LIBRARY_PATH
14595  shlibpath_overrides_runpath=yes
14596  if test "$with_gnu_ld" = yes; then
14597    need_lib_prefix=no
14598  fi
14599  need_version=yes
14600  ;;
14601
14602sysv4 | sysv4.3*)
14603  version_type=linux
14604  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14605  soname_spec='${libname}${release}${shared_ext}$major'
14606  shlibpath_var=LD_LIBRARY_PATH
14607  case $host_vendor in
14608    sni)
14609      shlibpath_overrides_runpath=no
14610      need_lib_prefix=no
14611      runpath_var=LD_RUN_PATH
14612      ;;
14613    siemens)
14614      need_lib_prefix=no
14615      ;;
14616    motorola)
14617      need_lib_prefix=no
14618      need_version=no
14619      shlibpath_overrides_runpath=no
14620      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14621      ;;
14622  esac
14623  ;;
14624
14625sysv4*MP*)
14626  if test -d /usr/nec ;then
14627    version_type=linux
14628    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14629    soname_spec='$libname${shared_ext}.$major'
14630    shlibpath_var=LD_LIBRARY_PATH
14631  fi
14632  ;;
14633
14634sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14635  version_type=freebsd-elf
14636  need_lib_prefix=no
14637  need_version=no
14638  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14639  soname_spec='${libname}${release}${shared_ext}$major'
14640  shlibpath_var=LD_LIBRARY_PATH
14641  shlibpath_overrides_runpath=yes
14642  hardcode_into_libs=yes
14643  if test "$with_gnu_ld" = yes; then
14644    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14645  else
14646    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14647    case $host_os in
14648      sco3.2v5*)
14649        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14650	;;
14651    esac
14652  fi
14653  sys_lib_dlsearch_path_spec='/usr/lib'
14654  ;;
14655
14656tpf*)
14657  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14658  version_type=linux
14659  need_lib_prefix=no
14660  need_version=no
14661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662  shlibpath_var=LD_LIBRARY_PATH
14663  shlibpath_overrides_runpath=no
14664  hardcode_into_libs=yes
14665  ;;
14666
14667uts4*)
14668  version_type=linux
14669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14670  soname_spec='${libname}${release}${shared_ext}$major'
14671  shlibpath_var=LD_LIBRARY_PATH
14672  ;;
14673
14674*)
14675  dynamic_linker=no
14676  ;;
14677esac
14678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14679$as_echo "$dynamic_linker" >&6; }
14680test "$dynamic_linker" = no && can_build_shared=no
14681
14682variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14683if test "$GCC" = yes; then
14684  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14685fi
14686
14687if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14688  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14689fi
14690if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14691  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14692fi
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14786$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14787hardcode_action=
14788if test -n "$hardcode_libdir_flag_spec" ||
14789   test -n "$runpath_var" ||
14790   test "X$hardcode_automatic" = "Xyes" ; then
14791
14792  # We can hardcode non-existent directories.
14793  if test "$hardcode_direct" != no &&
14794     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14795     # have to relink, otherwise we might link with an installed library
14796     # when we should be linking with a yet-to-be-installed one
14797     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14798     test "$hardcode_minus_L" != no; then
14799    # Linking always hardcodes the temporary library directory.
14800    hardcode_action=relink
14801  else
14802    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14803    hardcode_action=immediate
14804  fi
14805else
14806  # We cannot hardcode anything, or else we can only hardcode existing
14807  # directories.
14808  hardcode_action=unsupported
14809fi
14810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14811$as_echo "$hardcode_action" >&6; }
14812
14813if test "$hardcode_action" = relink ||
14814   test "$inherit_rpath" = yes; then
14815  # Fast installation is not supported
14816  enable_fast_install=no
14817elif test "$shlibpath_overrides_runpath" = yes ||
14818     test "$enable_shared" = no; then
14819  # Fast installation is not necessary
14820  enable_fast_install=needless
14821fi
14822
14823
14824
14825
14826
14827
14828  if test "x$enable_dlopen" != xyes; then
14829  enable_dlopen=unknown
14830  enable_dlopen_self=unknown
14831  enable_dlopen_self_static=unknown
14832else
14833  lt_cv_dlopen=no
14834  lt_cv_dlopen_libs=
14835
14836  case $host_os in
14837  beos*)
14838    lt_cv_dlopen="load_add_on"
14839    lt_cv_dlopen_libs=
14840    lt_cv_dlopen_self=yes
14841    ;;
14842
14843  mingw* | pw32* | cegcc*)
14844    lt_cv_dlopen="LoadLibrary"
14845    lt_cv_dlopen_libs=
14846    ;;
14847
14848  cygwin*)
14849    lt_cv_dlopen="dlopen"
14850    lt_cv_dlopen_libs=
14851    ;;
14852
14853  darwin*)
14854  # if libdl is installed we need to link against it
14855    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14856$as_echo_n "checking for dlopen in -ldl... " >&6; }
14857if ${ac_cv_lib_dl_dlopen+:} false; then :
14858  $as_echo_n "(cached) " >&6
14859else
14860  ac_check_lib_save_LIBS=$LIBS
14861LIBS="-ldl  $LIBS"
14862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863/* end confdefs.h.  */
14864
14865/* Override any GCC internal prototype to avoid an error.
14866   Use char because int might match the return type of a GCC
14867   builtin and then its argument prototype would still apply.  */
14868#ifdef __cplusplus
14869extern "C"
14870#endif
14871char dlopen ();
14872int
14873main ()
14874{
14875return dlopen ();
14876  ;
14877  return 0;
14878}
14879_ACEOF
14880if ac_fn_c_try_link "$LINENO"; then :
14881  ac_cv_lib_dl_dlopen=yes
14882else
14883  ac_cv_lib_dl_dlopen=no
14884fi
14885rm -f core conftest.err conftest.$ac_objext \
14886    conftest$ac_exeext conftest.$ac_ext
14887LIBS=$ac_check_lib_save_LIBS
14888fi
14889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14890$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14891if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14892  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14893else
14894
14895    lt_cv_dlopen="dyld"
14896    lt_cv_dlopen_libs=
14897    lt_cv_dlopen_self=yes
14898
14899fi
14900
14901    ;;
14902
14903  *)
14904    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14905if test "x$ac_cv_func_shl_load" = xyes; then :
14906  lt_cv_dlopen="shl_load"
14907else
14908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14909$as_echo_n "checking for shl_load in -ldld... " >&6; }
14910if ${ac_cv_lib_dld_shl_load+:} false; then :
14911  $as_echo_n "(cached) " >&6
14912else
14913  ac_check_lib_save_LIBS=$LIBS
14914LIBS="-ldld  $LIBS"
14915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14916/* end confdefs.h.  */
14917
14918/* Override any GCC internal prototype to avoid an error.
14919   Use char because int might match the return type of a GCC
14920   builtin and then its argument prototype would still apply.  */
14921#ifdef __cplusplus
14922extern "C"
14923#endif
14924char shl_load ();
14925int
14926main ()
14927{
14928return shl_load ();
14929  ;
14930  return 0;
14931}
14932_ACEOF
14933if ac_fn_c_try_link "$LINENO"; then :
14934  ac_cv_lib_dld_shl_load=yes
14935else
14936  ac_cv_lib_dld_shl_load=no
14937fi
14938rm -f core conftest.err conftest.$ac_objext \
14939    conftest$ac_exeext conftest.$ac_ext
14940LIBS=$ac_check_lib_save_LIBS
14941fi
14942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14943$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14944if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14945  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14946else
14947  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14948if test "x$ac_cv_func_dlopen" = xyes; then :
14949  lt_cv_dlopen="dlopen"
14950else
14951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14952$as_echo_n "checking for dlopen in -ldl... " >&6; }
14953if ${ac_cv_lib_dl_dlopen+:} false; then :
14954  $as_echo_n "(cached) " >&6
14955else
14956  ac_check_lib_save_LIBS=$LIBS
14957LIBS="-ldl  $LIBS"
14958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14959/* end confdefs.h.  */
14960
14961/* Override any GCC internal prototype to avoid an error.
14962   Use char because int might match the return type of a GCC
14963   builtin and then its argument prototype would still apply.  */
14964#ifdef __cplusplus
14965extern "C"
14966#endif
14967char dlopen ();
14968int
14969main ()
14970{
14971return dlopen ();
14972  ;
14973  return 0;
14974}
14975_ACEOF
14976if ac_fn_c_try_link "$LINENO"; then :
14977  ac_cv_lib_dl_dlopen=yes
14978else
14979  ac_cv_lib_dl_dlopen=no
14980fi
14981rm -f core conftest.err conftest.$ac_objext \
14982    conftest$ac_exeext conftest.$ac_ext
14983LIBS=$ac_check_lib_save_LIBS
14984fi
14985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14986$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14987if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14988  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14989else
14990  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14991$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14992if ${ac_cv_lib_svld_dlopen+:} false; then :
14993  $as_echo_n "(cached) " >&6
14994else
14995  ac_check_lib_save_LIBS=$LIBS
14996LIBS="-lsvld  $LIBS"
14997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998/* end confdefs.h.  */
14999
15000/* Override any GCC internal prototype to avoid an error.
15001   Use char because int might match the return type of a GCC
15002   builtin and then its argument prototype would still apply.  */
15003#ifdef __cplusplus
15004extern "C"
15005#endif
15006char dlopen ();
15007int
15008main ()
15009{
15010return dlopen ();
15011  ;
15012  return 0;
15013}
15014_ACEOF
15015if ac_fn_c_try_link "$LINENO"; then :
15016  ac_cv_lib_svld_dlopen=yes
15017else
15018  ac_cv_lib_svld_dlopen=no
15019fi
15020rm -f core conftest.err conftest.$ac_objext \
15021    conftest$ac_exeext conftest.$ac_ext
15022LIBS=$ac_check_lib_save_LIBS
15023fi
15024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15025$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15026if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15027  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15028else
15029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15030$as_echo_n "checking for dld_link in -ldld... " >&6; }
15031if ${ac_cv_lib_dld_dld_link+:} false; then :
15032  $as_echo_n "(cached) " >&6
15033else
15034  ac_check_lib_save_LIBS=$LIBS
15035LIBS="-ldld  $LIBS"
15036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15037/* end confdefs.h.  */
15038
15039/* Override any GCC internal prototype to avoid an error.
15040   Use char because int might match the return type of a GCC
15041   builtin and then its argument prototype would still apply.  */
15042#ifdef __cplusplus
15043extern "C"
15044#endif
15045char dld_link ();
15046int
15047main ()
15048{
15049return dld_link ();
15050  ;
15051  return 0;
15052}
15053_ACEOF
15054if ac_fn_c_try_link "$LINENO"; then :
15055  ac_cv_lib_dld_dld_link=yes
15056else
15057  ac_cv_lib_dld_dld_link=no
15058fi
15059rm -f core conftest.err conftest.$ac_objext \
15060    conftest$ac_exeext conftest.$ac_ext
15061LIBS=$ac_check_lib_save_LIBS
15062fi
15063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15064$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15065if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15066  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15067fi
15068
15069
15070fi
15071
15072
15073fi
15074
15075
15076fi
15077
15078
15079fi
15080
15081
15082fi
15083
15084    ;;
15085  esac
15086
15087  if test "x$lt_cv_dlopen" != xno; then
15088    enable_dlopen=yes
15089  else
15090    enable_dlopen=no
15091  fi
15092
15093  case $lt_cv_dlopen in
15094  dlopen)
15095    save_CPPFLAGS="$CPPFLAGS"
15096    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15097
15098    save_LDFLAGS="$LDFLAGS"
15099    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15100
15101    save_LIBS="$LIBS"
15102    LIBS="$lt_cv_dlopen_libs $LIBS"
15103
15104    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15105$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15106if ${lt_cv_dlopen_self+:} false; then :
15107  $as_echo_n "(cached) " >&6
15108else
15109  	  if test "$cross_compiling" = yes; then :
15110  lt_cv_dlopen_self=cross
15111else
15112  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15113  lt_status=$lt_dlunknown
15114  cat > conftest.$ac_ext <<_LT_EOF
15115#line $LINENO "configure"
15116#include "confdefs.h"
15117
15118#if HAVE_DLFCN_H
15119#include <dlfcn.h>
15120#endif
15121
15122#include <stdio.h>
15123
15124#ifdef RTLD_GLOBAL
15125#  define LT_DLGLOBAL		RTLD_GLOBAL
15126#else
15127#  ifdef DL_GLOBAL
15128#    define LT_DLGLOBAL		DL_GLOBAL
15129#  else
15130#    define LT_DLGLOBAL		0
15131#  endif
15132#endif
15133
15134/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15135   find out it does not work in some platform. */
15136#ifndef LT_DLLAZY_OR_NOW
15137#  ifdef RTLD_LAZY
15138#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15139#  else
15140#    ifdef DL_LAZY
15141#      define LT_DLLAZY_OR_NOW		DL_LAZY
15142#    else
15143#      ifdef RTLD_NOW
15144#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15145#      else
15146#        ifdef DL_NOW
15147#          define LT_DLLAZY_OR_NOW	DL_NOW
15148#        else
15149#          define LT_DLLAZY_OR_NOW	0
15150#        endif
15151#      endif
15152#    endif
15153#  endif
15154#endif
15155
15156/* When -fvisbility=hidden is used, assume the code has been annotated
15157   correspondingly for the symbols needed.  */
15158#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15159int fnord () __attribute__((visibility("default")));
15160#endif
15161
15162int fnord () { return 42; }
15163int main ()
15164{
15165  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15166  int status = $lt_dlunknown;
15167
15168  if (self)
15169    {
15170      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15171      else
15172        {
15173	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15174          else puts (dlerror ());
15175	}
15176      /* dlclose (self); */
15177    }
15178  else
15179    puts (dlerror ());
15180
15181  return status;
15182}
15183_LT_EOF
15184  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15185  (eval $ac_link) 2>&5
15186  ac_status=$?
15187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15188  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15189    (./conftest; exit; ) >&5 2>/dev/null
15190    lt_status=$?
15191    case x$lt_status in
15192      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15193      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15194      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15195    esac
15196  else :
15197    # compilation failed
15198    lt_cv_dlopen_self=no
15199  fi
15200fi
15201rm -fr conftest*
15202
15203
15204fi
15205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15206$as_echo "$lt_cv_dlopen_self" >&6; }
15207
15208    if test "x$lt_cv_dlopen_self" = xyes; then
15209      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15210      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15211$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15212if ${lt_cv_dlopen_self_static+:} false; then :
15213  $as_echo_n "(cached) " >&6
15214else
15215  	  if test "$cross_compiling" = yes; then :
15216  lt_cv_dlopen_self_static=cross
15217else
15218  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15219  lt_status=$lt_dlunknown
15220  cat > conftest.$ac_ext <<_LT_EOF
15221#line $LINENO "configure"
15222#include "confdefs.h"
15223
15224#if HAVE_DLFCN_H
15225#include <dlfcn.h>
15226#endif
15227
15228#include <stdio.h>
15229
15230#ifdef RTLD_GLOBAL
15231#  define LT_DLGLOBAL		RTLD_GLOBAL
15232#else
15233#  ifdef DL_GLOBAL
15234#    define LT_DLGLOBAL		DL_GLOBAL
15235#  else
15236#    define LT_DLGLOBAL		0
15237#  endif
15238#endif
15239
15240/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15241   find out it does not work in some platform. */
15242#ifndef LT_DLLAZY_OR_NOW
15243#  ifdef RTLD_LAZY
15244#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15245#  else
15246#    ifdef DL_LAZY
15247#      define LT_DLLAZY_OR_NOW		DL_LAZY
15248#    else
15249#      ifdef RTLD_NOW
15250#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15251#      else
15252#        ifdef DL_NOW
15253#          define LT_DLLAZY_OR_NOW	DL_NOW
15254#        else
15255#          define LT_DLLAZY_OR_NOW	0
15256#        endif
15257#      endif
15258#    endif
15259#  endif
15260#endif
15261
15262/* When -fvisbility=hidden is used, assume the code has been annotated
15263   correspondingly for the symbols needed.  */
15264#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15265int fnord () __attribute__((visibility("default")));
15266#endif
15267
15268int fnord () { return 42; }
15269int main ()
15270{
15271  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15272  int status = $lt_dlunknown;
15273
15274  if (self)
15275    {
15276      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15277      else
15278        {
15279	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15280          else puts (dlerror ());
15281	}
15282      /* dlclose (self); */
15283    }
15284  else
15285    puts (dlerror ());
15286
15287  return status;
15288}
15289_LT_EOF
15290  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15291  (eval $ac_link) 2>&5
15292  ac_status=$?
15293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15294  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15295    (./conftest; exit; ) >&5 2>/dev/null
15296    lt_status=$?
15297    case x$lt_status in
15298      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15299      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15300      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15301    esac
15302  else :
15303    # compilation failed
15304    lt_cv_dlopen_self_static=no
15305  fi
15306fi
15307rm -fr conftest*
15308
15309
15310fi
15311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15312$as_echo "$lt_cv_dlopen_self_static" >&6; }
15313    fi
15314
15315    CPPFLAGS="$save_CPPFLAGS"
15316    LDFLAGS="$save_LDFLAGS"
15317    LIBS="$save_LIBS"
15318    ;;
15319  esac
15320
15321  case $lt_cv_dlopen_self in
15322  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15323  *) enable_dlopen_self=unknown ;;
15324  esac
15325
15326  case $lt_cv_dlopen_self_static in
15327  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15328  *) enable_dlopen_self_static=unknown ;;
15329  esac
15330fi
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348striplib=
15349old_striplib=
15350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15351$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15352if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15353  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15354  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15356$as_echo "yes" >&6; }
15357else
15358# FIXME - insert some real tests, host_os isn't really good enough
15359  case $host_os in
15360  darwin*)
15361    if test -n "$STRIP" ; then
15362      striplib="$STRIP -x"
15363      old_striplib="$STRIP -S"
15364      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15365$as_echo "yes" >&6; }
15366    else
15367      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15368$as_echo "no" >&6; }
15369    fi
15370    ;;
15371  *)
15372    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15373$as_echo "no" >&6; }
15374    ;;
15375  esac
15376fi
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389  # Report which library types will actually be built
15390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15391$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15393$as_echo "$can_build_shared" >&6; }
15394
15395  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15396$as_echo_n "checking whether to build shared libraries... " >&6; }
15397  test "$can_build_shared" = "no" && enable_shared=no
15398
15399  # On AIX, shared libraries and static libraries use the same namespace, and
15400  # are all built from PIC.
15401  case $host_os in
15402  aix3*)
15403    test "$enable_shared" = yes && enable_static=no
15404    if test -n "$RANLIB"; then
15405      archive_cmds="$archive_cmds~\$RANLIB \$lib"
15406      postinstall_cmds='$RANLIB $lib'
15407    fi
15408    ;;
15409
15410  aix[4-9]*)
15411    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15412      test "$enable_shared" = yes && enable_static=no
15413    fi
15414    ;;
15415  esac
15416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15417$as_echo "$enable_shared" >&6; }
15418
15419  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15420$as_echo_n "checking whether to build static libraries... " >&6; }
15421  # Make sure either enable_shared or enable_static is yes.
15422  test "$enable_shared" = yes || enable_static=yes
15423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15424$as_echo "$enable_static" >&6; }
15425
15426
15427
15428
15429fi
15430ac_ext=c
15431ac_cpp='$CPP $CPPFLAGS'
15432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15434ac_compiler_gnu=$ac_cv_c_compiler_gnu
15435
15436CC="$lt_save_CC"
15437
15438      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15439    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15440    (test "X$CXX" != "Xg++"))) ; then
15441  ac_ext=cpp
15442ac_cpp='$CXXCPP $CPPFLAGS'
15443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15447$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15448if test -z "$CXXCPP"; then
15449  if ${ac_cv_prog_CXXCPP+:} false; then :
15450  $as_echo_n "(cached) " >&6
15451else
15452      # Double quotes because CXXCPP needs to be expanded
15453    for CXXCPP in "$CXX -E" "/lib/cpp"
15454    do
15455      ac_preproc_ok=false
15456for ac_cxx_preproc_warn_flag in '' yes
15457do
15458  # Use a header file that comes with gcc, so configuring glibc
15459  # with a fresh cross-compiler works.
15460  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15461  # <limits.h> exists even on freestanding compilers.
15462  # On the NeXT, cc -E runs the code through the compiler's parser,
15463  # not just through cpp. "Syntax error" is here to catch this case.
15464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15465/* end confdefs.h.  */
15466#ifdef __STDC__
15467# include <limits.h>
15468#else
15469# include <assert.h>
15470#endif
15471		     Syntax error
15472_ACEOF
15473if ac_fn_cxx_try_cpp "$LINENO"; then :
15474
15475else
15476  # Broken: fails on valid input.
15477continue
15478fi
15479rm -f conftest.err conftest.i conftest.$ac_ext
15480
15481  # OK, works on sane cases.  Now check whether nonexistent headers
15482  # can be detected and how.
15483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15484/* end confdefs.h.  */
15485#include <ac_nonexistent.h>
15486_ACEOF
15487if ac_fn_cxx_try_cpp "$LINENO"; then :
15488  # Broken: success on invalid input.
15489continue
15490else
15491  # Passes both tests.
15492ac_preproc_ok=:
15493break
15494fi
15495rm -f conftest.err conftest.i conftest.$ac_ext
15496
15497done
15498# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15499rm -f conftest.i conftest.err conftest.$ac_ext
15500if $ac_preproc_ok; then :
15501  break
15502fi
15503
15504    done
15505    ac_cv_prog_CXXCPP=$CXXCPP
15506
15507fi
15508  CXXCPP=$ac_cv_prog_CXXCPP
15509else
15510  ac_cv_prog_CXXCPP=$CXXCPP
15511fi
15512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15513$as_echo "$CXXCPP" >&6; }
15514ac_preproc_ok=false
15515for ac_cxx_preproc_warn_flag in '' yes
15516do
15517  # Use a header file that comes with gcc, so configuring glibc
15518  # with a fresh cross-compiler works.
15519  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15520  # <limits.h> exists even on freestanding compilers.
15521  # On the NeXT, cc -E runs the code through the compiler's parser,
15522  # not just through cpp. "Syntax error" is here to catch this case.
15523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15524/* end confdefs.h.  */
15525#ifdef __STDC__
15526# include <limits.h>
15527#else
15528# include <assert.h>
15529#endif
15530		     Syntax error
15531_ACEOF
15532if ac_fn_cxx_try_cpp "$LINENO"; then :
15533
15534else
15535  # Broken: fails on valid input.
15536continue
15537fi
15538rm -f conftest.err conftest.i conftest.$ac_ext
15539
15540  # OK, works on sane cases.  Now check whether nonexistent headers
15541  # can be detected and how.
15542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15543/* end confdefs.h.  */
15544#include <ac_nonexistent.h>
15545_ACEOF
15546if ac_fn_cxx_try_cpp "$LINENO"; then :
15547  # Broken: success on invalid input.
15548continue
15549else
15550  # Passes both tests.
15551ac_preproc_ok=:
15552break
15553fi
15554rm -f conftest.err conftest.i conftest.$ac_ext
15555
15556done
15557# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15558rm -f conftest.i conftest.err conftest.$ac_ext
15559if $ac_preproc_ok; then :
15560
15561else
15562  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15564as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15565See \`config.log' for more details" "$LINENO" 5; }
15566fi
15567
15568ac_ext=c
15569ac_cpp='$CPP $CPPFLAGS'
15570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15572ac_compiler_gnu=$ac_cv_c_compiler_gnu
15573
15574else
15575  _lt_caught_CXX_error=yes
15576fi
15577
15578ac_ext=cpp
15579ac_cpp='$CXXCPP $CPPFLAGS'
15580ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15581ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15582ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15583
15584archive_cmds_need_lc_CXX=no
15585allow_undefined_flag_CXX=
15586always_export_symbols_CXX=no
15587archive_expsym_cmds_CXX=
15588compiler_needs_object_CXX=no
15589export_dynamic_flag_spec_CXX=
15590hardcode_direct_CXX=no
15591hardcode_direct_absolute_CXX=no
15592hardcode_libdir_flag_spec_CXX=
15593hardcode_libdir_flag_spec_ld_CXX=
15594hardcode_libdir_separator_CXX=
15595hardcode_minus_L_CXX=no
15596hardcode_shlibpath_var_CXX=unsupported
15597hardcode_automatic_CXX=no
15598inherit_rpath_CXX=no
15599module_cmds_CXX=
15600module_expsym_cmds_CXX=
15601link_all_deplibs_CXX=unknown
15602old_archive_cmds_CXX=$old_archive_cmds
15603reload_flag_CXX=$reload_flag
15604reload_cmds_CXX=$reload_cmds
15605no_undefined_flag_CXX=
15606whole_archive_flag_spec_CXX=
15607enable_shared_with_static_runtimes_CXX=no
15608
15609# Source file extension for C++ test sources.
15610ac_ext=cpp
15611
15612# Object file extension for compiled C++ test sources.
15613objext=o
15614objext_CXX=$objext
15615
15616# No sense in running all these tests if we already determined that
15617# the CXX compiler isn't working.  Some variables (like enable_shared)
15618# are currently assumed to apply to all compilers on this platform,
15619# and will be corrupted by setting them based on a non-working compiler.
15620if test "$_lt_caught_CXX_error" != yes; then
15621  # Code to be used in simple compile tests
15622  lt_simple_compile_test_code="int some_variable = 0;"
15623
15624  # Code to be used in simple link tests
15625  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15626
15627  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15628
15629
15630
15631
15632
15633
15634# If no C compiler was specified, use CC.
15635LTCC=${LTCC-"$CC"}
15636
15637# If no C compiler flags were specified, use CFLAGS.
15638LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15639
15640# Allow CC to be a program name with arguments.
15641compiler=$CC
15642
15643
15644  # save warnings/boilerplate of simple test code
15645  ac_outfile=conftest.$ac_objext
15646echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15647eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15648_lt_compiler_boilerplate=`cat conftest.err`
15649$RM conftest*
15650
15651  ac_outfile=conftest.$ac_objext
15652echo "$lt_simple_link_test_code" >conftest.$ac_ext
15653eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15654_lt_linker_boilerplate=`cat conftest.err`
15655$RM -r conftest*
15656
15657
15658  # Allow CC to be a program name with arguments.
15659  lt_save_CC=$CC
15660  lt_save_CFLAGS=$CFLAGS
15661  lt_save_LD=$LD
15662  lt_save_GCC=$GCC
15663  GCC=$GXX
15664  lt_save_with_gnu_ld=$with_gnu_ld
15665  lt_save_path_LD=$lt_cv_path_LD
15666  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15667    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15668  else
15669    $as_unset lt_cv_prog_gnu_ld
15670  fi
15671  if test -n "${lt_cv_path_LDCXX+set}"; then
15672    lt_cv_path_LD=$lt_cv_path_LDCXX
15673  else
15674    $as_unset lt_cv_path_LD
15675  fi
15676  test -z "${LDCXX+set}" || LD=$LDCXX
15677  CC=${CXX-"c++"}
15678  CFLAGS=$CXXFLAGS
15679  compiler=$CC
15680  compiler_CXX=$CC
15681  for cc_temp in $compiler""; do
15682  case $cc_temp in
15683    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15684    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15685    \-*) ;;
15686    *) break;;
15687  esac
15688done
15689cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15690
15691
15692  if test -n "$compiler"; then
15693    # We don't want -fno-exception when compiling C++ code, so set the
15694    # no_builtin_flag separately
15695    if test "$GXX" = yes; then
15696      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15697    else
15698      lt_prog_compiler_no_builtin_flag_CXX=
15699    fi
15700
15701    if test "$GXX" = yes; then
15702      # Set up default GNU C++ configuration
15703
15704
15705
15706# Check whether --with-gnu-ld was given.
15707if test "${with_gnu_ld+set}" = set; then :
15708  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15709else
15710  with_gnu_ld=no
15711fi
15712
15713ac_prog=ld
15714if test "$GCC" = yes; then
15715  # Check if gcc -print-prog-name=ld gives a path.
15716  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15717$as_echo_n "checking for ld used by $CC... " >&6; }
15718  case $host in
15719  *-*-mingw*)
15720    # gcc leaves a trailing carriage return which upsets mingw
15721    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15722  *)
15723    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15724  esac
15725  case $ac_prog in
15726    # Accept absolute paths.
15727    [\\/]* | ?:[\\/]*)
15728      re_direlt='/[^/][^/]*/\.\./'
15729      # Canonicalize the pathname of ld
15730      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15731      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15732	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15733      done
15734      test -z "$LD" && LD="$ac_prog"
15735      ;;
15736  "")
15737    # If it fails, then pretend we aren't using GCC.
15738    ac_prog=ld
15739    ;;
15740  *)
15741    # If it is relative, then search for the first ld in PATH.
15742    with_gnu_ld=unknown
15743    ;;
15744  esac
15745elif test "$with_gnu_ld" = yes; then
15746  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15747$as_echo_n "checking for GNU ld... " >&6; }
15748else
15749  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15750$as_echo_n "checking for non-GNU ld... " >&6; }
15751fi
15752if ${lt_cv_path_LD+:} false; then :
15753  $as_echo_n "(cached) " >&6
15754else
15755  if test -z "$LD"; then
15756  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15757  for ac_dir in $PATH; do
15758    IFS="$lt_save_ifs"
15759    test -z "$ac_dir" && ac_dir=.
15760    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15761      lt_cv_path_LD="$ac_dir/$ac_prog"
15762      # Check to see if the program is GNU ld.  I'd rather use --version,
15763      # but apparently some variants of GNU ld only accept -v.
15764      # Break only if it was the GNU/non-GNU ld that we prefer.
15765      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15766      *GNU* | *'with BFD'*)
15767	test "$with_gnu_ld" != no && break
15768	;;
15769      *)
15770	test "$with_gnu_ld" != yes && break
15771	;;
15772      esac
15773    fi
15774  done
15775  IFS="$lt_save_ifs"
15776else
15777  lt_cv_path_LD="$LD" # Let the user override the test with a path.
15778fi
15779fi
15780
15781LD="$lt_cv_path_LD"
15782if test -n "$LD"; then
15783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15784$as_echo "$LD" >&6; }
15785else
15786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15787$as_echo "no" >&6; }
15788fi
15789test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15791$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15792if ${lt_cv_prog_gnu_ld+:} false; then :
15793  $as_echo_n "(cached) " >&6
15794else
15795  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15796case `$LD -v 2>&1 </dev/null` in
15797*GNU* | *'with BFD'*)
15798  lt_cv_prog_gnu_ld=yes
15799  ;;
15800*)
15801  lt_cv_prog_gnu_ld=no
15802  ;;
15803esac
15804fi
15805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15806$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15807with_gnu_ld=$lt_cv_prog_gnu_ld
15808
15809
15810
15811
15812
15813
15814
15815      # Check if GNU C++ uses GNU ld as the underlying linker, since the
15816      # archiving commands below assume that GNU ld is being used.
15817      if test "$with_gnu_ld" = yes; then
15818        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15819        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15820
15821        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15822        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15823
15824        # If archive_cmds runs LD, not CC, wlarc should be empty
15825        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15826        #     investigate it a little bit more. (MM)
15827        wlarc='${wl}'
15828
15829        # ancient GNU ld didn't support --whole-archive et. al.
15830        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15831	  $GREP 'no-whole-archive' > /dev/null; then
15832          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15833        else
15834          whole_archive_flag_spec_CXX=
15835        fi
15836      else
15837        with_gnu_ld=no
15838        wlarc=
15839
15840        # A generic and very simple default shared library creation
15841        # command for GNU C++ for the case where it uses the native
15842        # linker, instead of GNU ld.  If possible, this setting should
15843        # overridden to take advantage of the native linker features on
15844        # the platform it is being used on.
15845        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15846      fi
15847
15848      # Commands to make compiler produce verbose output that lists
15849      # what "hidden" libraries, object files and flags are used when
15850      # linking a shared library.
15851      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15852
15853    else
15854      GXX=no
15855      with_gnu_ld=no
15856      wlarc=
15857    fi
15858
15859    # PORTME: fill in a description of your system's C++ link characteristics
15860    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15861$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15862    ld_shlibs_CXX=yes
15863    case $host_os in
15864      aix3*)
15865        # FIXME: insert proper C++ library support
15866        ld_shlibs_CXX=no
15867        ;;
15868      aix[4-9]*)
15869        if test "$host_cpu" = ia64; then
15870          # On IA64, the linker does run time linking by default, so we don't
15871          # have to do anything special.
15872          aix_use_runtimelinking=no
15873          exp_sym_flag='-Bexport'
15874          no_entry_flag=""
15875        else
15876          aix_use_runtimelinking=no
15877
15878          # Test if we are trying to use run time linking or normal
15879          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15880          # need to do runtime linking.
15881          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15882	    for ld_flag in $LDFLAGS; do
15883	      case $ld_flag in
15884	      *-brtl*)
15885	        aix_use_runtimelinking=yes
15886	        break
15887	        ;;
15888	      esac
15889	    done
15890	    ;;
15891          esac
15892
15893          exp_sym_flag='-bexport'
15894          no_entry_flag='-bnoentry'
15895        fi
15896
15897        # When large executables or shared objects are built, AIX ld can
15898        # have problems creating the table of contents.  If linking a library
15899        # or program results in "error TOC overflow" add -mminimal-toc to
15900        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15901        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15902
15903        archive_cmds_CXX=''
15904        hardcode_direct_CXX=yes
15905        hardcode_direct_absolute_CXX=yes
15906        hardcode_libdir_separator_CXX=':'
15907        link_all_deplibs_CXX=yes
15908        file_list_spec_CXX='${wl}-f,'
15909
15910        if test "$GXX" = yes; then
15911          case $host_os in aix4.[012]|aix4.[012].*)
15912          # We only want to do this on AIX 4.2 and lower, the check
15913          # below for broken collect2 doesn't work under 4.3+
15914	  collect2name=`${CC} -print-prog-name=collect2`
15915	  if test -f "$collect2name" &&
15916	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15917	  then
15918	    # We have reworked collect2
15919	    :
15920	  else
15921	    # We have old collect2
15922	    hardcode_direct_CXX=unsupported
15923	    # It fails to find uninstalled libraries when the uninstalled
15924	    # path is not listed in the libpath.  Setting hardcode_minus_L
15925	    # to unsupported forces relinking
15926	    hardcode_minus_L_CXX=yes
15927	    hardcode_libdir_flag_spec_CXX='-L$libdir'
15928	    hardcode_libdir_separator_CXX=
15929	  fi
15930          esac
15931          shared_flag='-shared'
15932	  if test "$aix_use_runtimelinking" = yes; then
15933	    shared_flag="$shared_flag "'${wl}-G'
15934	  fi
15935        else
15936          # not using gcc
15937          if test "$host_cpu" = ia64; then
15938	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15939	  # chokes on -Wl,-G. The following line is correct:
15940	  shared_flag='-G'
15941          else
15942	    if test "$aix_use_runtimelinking" = yes; then
15943	      shared_flag='${wl}-G'
15944	    else
15945	      shared_flag='${wl}-bM:SRE'
15946	    fi
15947          fi
15948        fi
15949
15950        export_dynamic_flag_spec_CXX='${wl}-bexpall'
15951        # It seems that -bexpall does not export symbols beginning with
15952        # underscore (_), so it is better to generate a list of symbols to
15953	# export.
15954        always_export_symbols_CXX=yes
15955        if test "$aix_use_runtimelinking" = yes; then
15956          # Warning - without using the other runtime loading flags (-brtl),
15957          # -berok will link without error, but may produce a broken library.
15958          allow_undefined_flag_CXX='-berok'
15959          # Determine the default libpath from the value encoded in an empty
15960          # executable.
15961          if test "${lt_cv_aix_libpath+set}" = set; then
15962  aix_libpath=$lt_cv_aix_libpath
15963else
15964  if ${lt_cv_aix_libpath__CXX+:} false; then :
15965  $as_echo_n "(cached) " >&6
15966else
15967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968/* end confdefs.h.  */
15969
15970int
15971main ()
15972{
15973
15974  ;
15975  return 0;
15976}
15977_ACEOF
15978if ac_fn_cxx_try_link "$LINENO"; then :
15979
15980  lt_aix_libpath_sed='
15981      /Import File Strings/,/^$/ {
15982	  /^0/ {
15983	      s/^0  *\([^ ]*\) *$/\1/
15984	      p
15985	  }
15986      }'
15987  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15988  # Check for a 64-bit object if we didn't find anything.
15989  if test -z "$lt_cv_aix_libpath__CXX"; then
15990    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15991  fi
15992fi
15993rm -f core conftest.err conftest.$ac_objext \
15994    conftest$ac_exeext conftest.$ac_ext
15995  if test -z "$lt_cv_aix_libpath__CXX"; then
15996    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15997  fi
15998
15999fi
16000
16001  aix_libpath=$lt_cv_aix_libpath__CXX
16002fi
16003
16004          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16005
16006          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16007        else
16008          if test "$host_cpu" = ia64; then
16009	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16010	    allow_undefined_flag_CXX="-z nodefs"
16011	    archive_expsym_cmds_CXX="\$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"
16012          else
16013	    # Determine the default libpath from the value encoded in an
16014	    # empty executable.
16015	    if test "${lt_cv_aix_libpath+set}" = set; then
16016  aix_libpath=$lt_cv_aix_libpath
16017else
16018  if ${lt_cv_aix_libpath__CXX+:} false; then :
16019  $as_echo_n "(cached) " >&6
16020else
16021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16022/* end confdefs.h.  */
16023
16024int
16025main ()
16026{
16027
16028  ;
16029  return 0;
16030}
16031_ACEOF
16032if ac_fn_cxx_try_link "$LINENO"; then :
16033
16034  lt_aix_libpath_sed='
16035      /Import File Strings/,/^$/ {
16036	  /^0/ {
16037	      s/^0  *\([^ ]*\) *$/\1/
16038	      p
16039	  }
16040      }'
16041  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16042  # Check for a 64-bit object if we didn't find anything.
16043  if test -z "$lt_cv_aix_libpath__CXX"; then
16044    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16045  fi
16046fi
16047rm -f core conftest.err conftest.$ac_objext \
16048    conftest$ac_exeext conftest.$ac_ext
16049  if test -z "$lt_cv_aix_libpath__CXX"; then
16050    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
16051  fi
16052
16053fi
16054
16055  aix_libpath=$lt_cv_aix_libpath__CXX
16056fi
16057
16058	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16059	    # Warning - without using the other run time loading flags,
16060	    # -berok will link without error, but may produce a broken library.
16061	    no_undefined_flag_CXX=' ${wl}-bernotok'
16062	    allow_undefined_flag_CXX=' ${wl}-berok'
16063	    if test "$with_gnu_ld" = yes; then
16064	      # We only use this code for GNU lds that support --whole-archive.
16065	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16066	    else
16067	      # Exported symbols can be pulled into shared objects from archives
16068	      whole_archive_flag_spec_CXX='$convenience'
16069	    fi
16070	    archive_cmds_need_lc_CXX=yes
16071	    # This is similar to how AIX traditionally builds its shared
16072	    # libraries.
16073	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16074          fi
16075        fi
16076        ;;
16077
16078      beos*)
16079	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16080	  allow_undefined_flag_CXX=unsupported
16081	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16082	  # support --undefined.  This deserves some investigation.  FIXME
16083	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16084	else
16085	  ld_shlibs_CXX=no
16086	fi
16087	;;
16088
16089      chorus*)
16090        case $cc_basename in
16091          *)
16092	  # FIXME: insert proper C++ library support
16093	  ld_shlibs_CXX=no
16094	  ;;
16095        esac
16096        ;;
16097
16098      cygwin* | mingw* | pw32* | cegcc*)
16099	case $GXX,$cc_basename in
16100	,cl* | no,cl*)
16101	  # Native MSVC
16102	  # hardcode_libdir_flag_spec is actually meaningless, as there is
16103	  # no search path for DLLs.
16104	  hardcode_libdir_flag_spec_CXX=' '
16105	  allow_undefined_flag_CXX=unsupported
16106	  always_export_symbols_CXX=yes
16107	  file_list_spec_CXX='@'
16108	  # Tell ltmain to make .lib files, not .a files.
16109	  libext=lib
16110	  # Tell ltmain to make .dll files, not .so files.
16111	  shrext_cmds=".dll"
16112	  # FIXME: Setting linknames here is a bad hack.
16113	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16114	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16115	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16116	    else
16117	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16118	    fi~
16119	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16120	    linknames='
16121	  # The linker will not automatically build a static lib if we build a DLL.
16122	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16123	  enable_shared_with_static_runtimes_CXX=yes
16124	  # Don't use ranlib
16125	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
16126	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16127	    lt_tool_outputfile="@TOOL_OUTPUT@"~
16128	    case $lt_outputfile in
16129	      *.exe|*.EXE) ;;
16130	      *)
16131		lt_outputfile="$lt_outputfile.exe"
16132		lt_tool_outputfile="$lt_tool_outputfile.exe"
16133		;;
16134	    esac~
16135	    func_to_tool_file "$lt_outputfile"~
16136	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16137	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16138	      $RM "$lt_outputfile.manifest";
16139	    fi'
16140	  ;;
16141	*)
16142	  # g++
16143	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16144	  # as there is no search path for DLLs.
16145	  hardcode_libdir_flag_spec_CXX='-L$libdir'
16146	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
16147	  allow_undefined_flag_CXX=unsupported
16148	  always_export_symbols_CXX=no
16149	  enable_shared_with_static_runtimes_CXX=yes
16150
16151	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16152	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16153	    # If the export-symbols file already is a .def file (1st line
16154	    # is EXPORTS), use it as is; otherwise, prepend...
16155	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16156	      cp $export_symbols $output_objdir/$soname.def;
16157	    else
16158	      echo EXPORTS > $output_objdir/$soname.def;
16159	      cat $export_symbols >> $output_objdir/$soname.def;
16160	    fi~
16161	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16162	  else
16163	    ld_shlibs_CXX=no
16164	  fi
16165	  ;;
16166	esac
16167	;;
16168      darwin* | rhapsody*)
16169
16170
16171  archive_cmds_need_lc_CXX=no
16172  hardcode_direct_CXX=no
16173  hardcode_automatic_CXX=yes
16174  hardcode_shlibpath_var_CXX=unsupported
16175  if test "$lt_cv_ld_force_load" = "yes"; then
16176    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16177  else
16178    whole_archive_flag_spec_CXX=''
16179  fi
16180  link_all_deplibs_CXX=yes
16181  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16182  case $cc_basename in
16183     ifort*) _lt_dar_can_shared=yes ;;
16184     *) _lt_dar_can_shared=$GCC ;;
16185  esac
16186  if test "$_lt_dar_can_shared" = "yes"; then
16187    output_verbose_link_cmd=func_echo_all
16188    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16189    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16190    archive_expsym_cmds_CXX="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}"
16191    module_expsym_cmds_CXX="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}"
16192       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16193      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
16194      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
16195    fi
16196
16197  else
16198  ld_shlibs_CXX=no
16199  fi
16200
16201	;;
16202
16203      dgux*)
16204        case $cc_basename in
16205          ec++*)
16206	    # FIXME: insert proper C++ library support
16207	    ld_shlibs_CXX=no
16208	    ;;
16209          ghcx*)
16210	    # Green Hills C++ Compiler
16211	    # FIXME: insert proper C++ library support
16212	    ld_shlibs_CXX=no
16213	    ;;
16214          *)
16215	    # FIXME: insert proper C++ library support
16216	    ld_shlibs_CXX=no
16217	    ;;
16218        esac
16219        ;;
16220
16221      freebsd[12]*)
16222        # C++ shared libraries reported to be fairly broken before
16223	# switch to ELF
16224        ld_shlibs_CXX=no
16225        ;;
16226
16227      freebsd-elf*)
16228        archive_cmds_need_lc_CXX=no
16229        ;;
16230
16231      freebsd* | dragonfly*)
16232        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16233        # conventions
16234        ld_shlibs_CXX=yes
16235        ;;
16236
16237      gnu*)
16238        ;;
16239
16240      haiku*)
16241        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16242        link_all_deplibs_CXX=yes
16243        ;;
16244
16245      hpux9*)
16246        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16247        hardcode_libdir_separator_CXX=:
16248        export_dynamic_flag_spec_CXX='${wl}-E'
16249        hardcode_direct_CXX=yes
16250        hardcode_minus_L_CXX=yes # Not in the search PATH,
16251				             # but as the default
16252				             # location of the library.
16253
16254        case $cc_basename in
16255          CC*)
16256            # FIXME: insert proper C++ library support
16257            ld_shlibs_CXX=no
16258            ;;
16259          aCC*)
16260            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16261            # Commands to make compiler produce verbose output that lists
16262            # what "hidden" libraries, object files and flags are used when
16263            # linking a shared library.
16264            #
16265            # There doesn't appear to be a way to prevent this compiler from
16266            # explicitly linking system object files so we need to strip them
16267            # from the output so that they don't get included in the library
16268            # dependencies.
16269            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16270            ;;
16271          *)
16272            if test "$GXX" = yes; then
16273              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16274            else
16275              # FIXME: insert proper C++ library support
16276              ld_shlibs_CXX=no
16277            fi
16278            ;;
16279        esac
16280        ;;
16281
16282      hpux10*|hpux11*)
16283        if test $with_gnu_ld = no; then
16284	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16285	  hardcode_libdir_separator_CXX=:
16286
16287          case $host_cpu in
16288            hppa*64*|ia64*)
16289              ;;
16290            *)
16291	      export_dynamic_flag_spec_CXX='${wl}-E'
16292              ;;
16293          esac
16294        fi
16295        case $host_cpu in
16296          hppa*64*|ia64*)
16297            hardcode_direct_CXX=no
16298            hardcode_shlibpath_var_CXX=no
16299            ;;
16300          *)
16301            hardcode_direct_CXX=yes
16302            hardcode_direct_absolute_CXX=yes
16303            hardcode_minus_L_CXX=yes # Not in the search PATH,
16304					         # but as the default
16305					         # location of the library.
16306            ;;
16307        esac
16308
16309        case $cc_basename in
16310          CC*)
16311	    # FIXME: insert proper C++ library support
16312	    ld_shlibs_CXX=no
16313	    ;;
16314          aCC*)
16315	    case $host_cpu in
16316	      hppa*64*)
16317	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16318	        ;;
16319	      ia64*)
16320	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16321	        ;;
16322	      *)
16323	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16324	        ;;
16325	    esac
16326	    # Commands to make compiler produce verbose output that lists
16327	    # what "hidden" libraries, object files and flags are used when
16328	    # linking a shared library.
16329	    #
16330	    # There doesn't appear to be a way to prevent this compiler from
16331	    # explicitly linking system object files so we need to strip them
16332	    # from the output so that they don't get included in the library
16333	    # dependencies.
16334	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16335	    ;;
16336          *)
16337	    if test "$GXX" = yes; then
16338	      if test $with_gnu_ld = no; then
16339	        case $host_cpu in
16340	          hppa*64*)
16341	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16342	            ;;
16343	          ia64*)
16344	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16345	            ;;
16346	          *)
16347	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16348	            ;;
16349	        esac
16350	      fi
16351	    else
16352	      # FIXME: insert proper C++ library support
16353	      ld_shlibs_CXX=no
16354	    fi
16355	    ;;
16356        esac
16357        ;;
16358
16359      interix[3-9]*)
16360	hardcode_direct_CXX=no
16361	hardcode_shlibpath_var_CXX=no
16362	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16363	export_dynamic_flag_spec_CXX='${wl}-E'
16364	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16365	# Instead, shared libraries are loaded at an image base (0x10000000 by
16366	# default) and relocated if they conflict, which is a slow very memory
16367	# consuming and fragmenting process.  To avoid this, we pick a random,
16368	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16369	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16370	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16371	archive_expsym_cmds_CXX='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'
16372	;;
16373      irix5* | irix6*)
16374        case $cc_basename in
16375          CC*)
16376	    # SGI C++
16377	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16378
16379	    # Archives containing C++ object files must be created using
16380	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16381	    # necessary to make sure instantiated templates are included
16382	    # in the archive.
16383	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16384	    ;;
16385          *)
16386	    if test "$GXX" = yes; then
16387	      if test "$with_gnu_ld" = no; then
16388	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
16389	      else
16390	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
16391	      fi
16392	    fi
16393	    link_all_deplibs_CXX=yes
16394	    ;;
16395        esac
16396        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16397        hardcode_libdir_separator_CXX=:
16398        inherit_rpath_CXX=yes
16399        ;;
16400
16401      linux* | k*bsd*-gnu | kopensolaris*-gnu)
16402        case $cc_basename in
16403          KCC*)
16404	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16405
16406	    # KCC will only create a shared library if the output file
16407	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16408	    # to its proper name (with version) after linking.
16409	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16410	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
16411	    # Commands to make compiler produce verbose output that lists
16412	    # what "hidden" libraries, object files and flags are used when
16413	    # linking a shared library.
16414	    #
16415	    # There doesn't appear to be a way to prevent this compiler from
16416	    # explicitly linking system object files so we need to strip them
16417	    # from the output so that they don't get included in the library
16418	    # dependencies.
16419	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16420
16421	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16422	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16423
16424	    # Archives containing C++ object files must be created using
16425	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16426	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16427	    ;;
16428	  icpc* | ecpc* )
16429	    # Intel C++
16430	    with_gnu_ld=yes
16431	    # version 8.0 and above of icpc choke on multiply defined symbols
16432	    # if we add $predep_objects and $postdep_objects, however 7.1 and
16433	    # earlier do not add the objects themselves.
16434	    case `$CC -V 2>&1` in
16435	      *"Version 7."*)
16436	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16437		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16438		;;
16439	      *)  # Version 8.0 or newer
16440	        tmp_idyn=
16441	        case $host_cpu in
16442		  ia64*) tmp_idyn=' -i_dynamic';;
16443		esac
16444	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16445		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16446		;;
16447	    esac
16448	    archive_cmds_need_lc_CXX=no
16449	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16450	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16451	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16452	    ;;
16453          pgCC* | pgcpp*)
16454            # Portland Group C++ compiler
16455	    case `$CC -V` in
16456	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16457	      prelink_cmds_CXX='tpldir=Template.dir~
16458		rm -rf $tpldir~
16459		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16460		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16461	      old_archive_cmds_CXX='tpldir=Template.dir~
16462		rm -rf $tpldir~
16463		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16464		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16465		$RANLIB $oldlib'
16466	      archive_cmds_CXX='tpldir=Template.dir~
16467		rm -rf $tpldir~
16468		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16469		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16470	      archive_expsym_cmds_CXX='tpldir=Template.dir~
16471		rm -rf $tpldir~
16472		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16473		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16474	      ;;
16475	    *) # Version 6 and above use weak symbols
16476	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16477	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16478	      ;;
16479	    esac
16480
16481	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16482	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16483	    whole_archive_flag_spec_CXX='${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'
16484            ;;
16485	  cxx*)
16486	    # Compaq C++
16487	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16488	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
16489
16490	    runpath_var=LD_RUN_PATH
16491	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16492	    hardcode_libdir_separator_CXX=:
16493
16494	    # Commands to make compiler produce verbose output that lists
16495	    # what "hidden" libraries, object files and flags are used when
16496	    # linking a shared library.
16497	    #
16498	    # There doesn't appear to be a way to prevent this compiler from
16499	    # explicitly linking system object files so we need to strip them
16500	    # from the output so that they don't get included in the library
16501	    # dependencies.
16502	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
16503	    ;;
16504	  xl* | mpixl* | bgxl*)
16505	    # IBM XL 8.0 on PPC, with GNU ld
16506	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16507	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16508	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16509	    if test "x$supports_anon_versioning" = xyes; then
16510	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16511		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16512		echo "local: *; };" >> $output_objdir/$libname.ver~
16513		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16514	    fi
16515	    ;;
16516	  *)
16517	    case `$CC -V 2>&1 | sed 5q` in
16518	    *Sun\ C*)
16519	      # Sun C++ 5.9
16520	      no_undefined_flag_CXX=' -zdefs'
16521	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16522	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
16523	      hardcode_libdir_flag_spec_CXX='-R$libdir'
16524	      whole_archive_flag_spec_CXX='${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'
16525	      compiler_needs_object_CXX=yes
16526
16527	      # Not sure whether something based on
16528	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16529	      # would be better.
16530	      output_verbose_link_cmd='func_echo_all'
16531
16532	      # Archives containing C++ object files must be created using
16533	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16534	      # necessary to make sure instantiated templates are included
16535	      # in the archive.
16536	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16537	      ;;
16538	    esac
16539	    ;;
16540	esac
16541	;;
16542
16543      lynxos*)
16544        # FIXME: insert proper C++ library support
16545	ld_shlibs_CXX=no
16546	;;
16547
16548      m88k*)
16549        # FIXME: insert proper C++ library support
16550        ld_shlibs_CXX=no
16551	;;
16552
16553      mvs*)
16554        case $cc_basename in
16555          cxx*)
16556	    # FIXME: insert proper C++ library support
16557	    ld_shlibs_CXX=no
16558	    ;;
16559	  *)
16560	    # FIXME: insert proper C++ library support
16561	    ld_shlibs_CXX=no
16562	    ;;
16563	esac
16564	;;
16565
16566      netbsd*)
16567        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16568	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16569	  wlarc=
16570	  hardcode_libdir_flag_spec_CXX='-R$libdir'
16571	  hardcode_direct_CXX=yes
16572	  hardcode_shlibpath_var_CXX=no
16573	fi
16574	# Workaround some broken pre-1.5 toolchains
16575	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16576	;;
16577
16578      *nto* | *qnx*)
16579        ld_shlibs_CXX=yes
16580	;;
16581
16582      openbsd2*)
16583        # C++ shared libraries are fairly broken
16584	ld_shlibs_CXX=no
16585	;;
16586
16587      openbsd*)
16588	if test -f /usr/libexec/ld.so; then
16589	  hardcode_direct_CXX=yes
16590	  hardcode_shlibpath_var_CXX=no
16591	  hardcode_direct_absolute_CXX=yes
16592	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16593	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16594	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16595	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16596	    export_dynamic_flag_spec_CXX='${wl}-E'
16597	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16598	  fi
16599	  output_verbose_link_cmd=func_echo_all
16600	else
16601	  ld_shlibs_CXX=no
16602	fi
16603	;;
16604
16605      osf3* | osf4* | osf5*)
16606        case $cc_basename in
16607          KCC*)
16608	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16609
16610	    # KCC will only create a shared library if the output file
16611	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16612	    # to its proper name (with version) after linking.
16613	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16614
16615	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16616	    hardcode_libdir_separator_CXX=:
16617
16618	    # Archives containing C++ object files must be created using
16619	    # the KAI C++ compiler.
16620	    case $host in
16621	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16622	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16623	    esac
16624	    ;;
16625          RCC*)
16626	    # Rational C++ 2.4.1
16627	    # FIXME: insert proper C++ library support
16628	    ld_shlibs_CXX=no
16629	    ;;
16630          cxx*)
16631	    case $host in
16632	      osf3*)
16633	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16634	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16635	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16636		;;
16637	      *)
16638	        allow_undefined_flag_CXX=' -expect_unresolved \*'
16639	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16640	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16641	          echo "-hidden">> $lib.exp~
16642	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
16643	          $RM $lib.exp'
16644	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16645		;;
16646	    esac
16647
16648	    hardcode_libdir_separator_CXX=:
16649
16650	    # Commands to make compiler produce verbose output that lists
16651	    # what "hidden" libraries, object files and flags are used when
16652	    # linking a shared library.
16653	    #
16654	    # There doesn't appear to be a way to prevent this compiler from
16655	    # explicitly linking system object files so we need to strip them
16656	    # from the output so that they don't get included in the library
16657	    # dependencies.
16658	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16659	    ;;
16660	  *)
16661	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16662	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16663	      case $host in
16664	        osf3*)
16665	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
16666		  ;;
16667	        *)
16668	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
16669		  ;;
16670	      esac
16671
16672	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16673	      hardcode_libdir_separator_CXX=:
16674
16675	      # Commands to make compiler produce verbose output that lists
16676	      # what "hidden" libraries, object files and flags are used when
16677	      # linking a shared library.
16678	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16679
16680	    else
16681	      # FIXME: insert proper C++ library support
16682	      ld_shlibs_CXX=no
16683	    fi
16684	    ;;
16685        esac
16686        ;;
16687
16688      psos*)
16689        # FIXME: insert proper C++ library support
16690        ld_shlibs_CXX=no
16691        ;;
16692
16693      sunos4*)
16694        case $cc_basename in
16695          CC*)
16696	    # Sun C++ 4.x
16697	    # FIXME: insert proper C++ library support
16698	    ld_shlibs_CXX=no
16699	    ;;
16700          lcc*)
16701	    # Lucid
16702	    # FIXME: insert proper C++ library support
16703	    ld_shlibs_CXX=no
16704	    ;;
16705          *)
16706	    # FIXME: insert proper C++ library support
16707	    ld_shlibs_CXX=no
16708	    ;;
16709        esac
16710        ;;
16711
16712      solaris*)
16713        case $cc_basename in
16714          CC* | sunCC*)
16715	    # Sun C++ 4.2, 5.x and Centerline C++
16716            archive_cmds_need_lc_CXX=yes
16717	    no_undefined_flag_CXX=' -zdefs'
16718	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16719	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16720	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16721
16722	    hardcode_libdir_flag_spec_CXX='-R$libdir'
16723	    hardcode_shlibpath_var_CXX=no
16724	    case $host_os in
16725	      solaris2.[0-5] | solaris2.[0-5].*) ;;
16726	      *)
16727		# The compiler driver will combine and reorder linker options,
16728		# but understands `-z linker_flag'.
16729	        # Supported since Solaris 2.6 (maybe 2.5.1?)
16730		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16731	        ;;
16732	    esac
16733	    link_all_deplibs_CXX=yes
16734
16735	    output_verbose_link_cmd='func_echo_all'
16736
16737	    # Archives containing C++ object files must be created using
16738	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16739	    # necessary to make sure instantiated templates are included
16740	    # in the archive.
16741	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16742	    ;;
16743          gcx*)
16744	    # Green Hills C++ Compiler
16745	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16746
16747	    # The C++ compiler must be used to create the archive.
16748	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16749	    ;;
16750          *)
16751	    # GNU C++ compiler with Solaris linker
16752	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16753	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16754	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16755	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16756	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16757		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16758
16759	        # Commands to make compiler produce verbose output that lists
16760	        # what "hidden" libraries, object files and flags are used when
16761	        # linking a shared library.
16762	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16763	      else
16764	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
16765	        # platform.
16766	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16767	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16768		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16769
16770	        # Commands to make compiler produce verbose output that lists
16771	        # what "hidden" libraries, object files and flags are used when
16772	        # linking a shared library.
16773	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16774	      fi
16775
16776	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16777	      case $host_os in
16778		solaris2.[0-5] | solaris2.[0-5].*) ;;
16779		*)
16780		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16781		  ;;
16782	      esac
16783	    fi
16784	    ;;
16785        esac
16786        ;;
16787
16788    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16789      no_undefined_flag_CXX='${wl}-z,text'
16790      archive_cmds_need_lc_CXX=no
16791      hardcode_shlibpath_var_CXX=no
16792      runpath_var='LD_RUN_PATH'
16793
16794      case $cc_basename in
16795        CC*)
16796	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16797	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16798	  ;;
16799	*)
16800	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16801	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16802	  ;;
16803      esac
16804      ;;
16805
16806      sysv5* | sco3.2v5* | sco5v6*)
16807	# Note: We can NOT use -z defs as we might desire, because we do not
16808	# link with -lc, and that would cause any symbols used from libc to
16809	# always be unresolved, which means just about no library would
16810	# ever link correctly.  If we're not using GNU ld we use -z text
16811	# though, which does catch some bad symbols but isn't as heavy-handed
16812	# as -z defs.
16813	no_undefined_flag_CXX='${wl}-z,text'
16814	allow_undefined_flag_CXX='${wl}-z,nodefs'
16815	archive_cmds_need_lc_CXX=no
16816	hardcode_shlibpath_var_CXX=no
16817	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16818	hardcode_libdir_separator_CXX=':'
16819	link_all_deplibs_CXX=yes
16820	export_dynamic_flag_spec_CXX='${wl}-Bexport'
16821	runpath_var='LD_RUN_PATH'
16822
16823	case $cc_basename in
16824          CC*)
16825	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16826	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16827	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16828	      '"$old_archive_cmds_CXX"
16829	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16830	      '"$reload_cmds_CXX"
16831	    ;;
16832	  *)
16833	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16834	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16835	    ;;
16836	esac
16837      ;;
16838
16839      tandem*)
16840        case $cc_basename in
16841          NCC*)
16842	    # NonStop-UX NCC 3.20
16843	    # FIXME: insert proper C++ library support
16844	    ld_shlibs_CXX=no
16845	    ;;
16846          *)
16847	    # FIXME: insert proper C++ library support
16848	    ld_shlibs_CXX=no
16849	    ;;
16850        esac
16851        ;;
16852
16853      vxworks*)
16854        # FIXME: insert proper C++ library support
16855        ld_shlibs_CXX=no
16856        ;;
16857
16858      *)
16859        # FIXME: insert proper C++ library support
16860        ld_shlibs_CXX=no
16861        ;;
16862    esac
16863
16864    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16865$as_echo "$ld_shlibs_CXX" >&6; }
16866    test "$ld_shlibs_CXX" = no && can_build_shared=no
16867
16868    GCC_CXX="$GXX"
16869    LD_CXX="$LD"
16870
16871    ## CAVEAT EMPTOR:
16872    ## There is no encapsulation within the following macros, do not change
16873    ## the running order or otherwise move them around unless you know exactly
16874    ## what you are doing...
16875    # Dependencies to place before and after the object being linked:
16876predep_objects_CXX=
16877postdep_objects_CXX=
16878predeps_CXX=
16879postdeps_CXX=
16880compiler_lib_search_path_CXX=
16881
16882cat > conftest.$ac_ext <<_LT_EOF
16883class Foo
16884{
16885public:
16886  Foo (void) { a = 0; }
16887private:
16888  int a;
16889};
16890_LT_EOF
16891
16892
16893_lt_libdeps_save_CFLAGS=$CFLAGS
16894case "$CC $CFLAGS " in #(
16895*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16896*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16897esac
16898
16899if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16900  (eval $ac_compile) 2>&5
16901  ac_status=$?
16902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16903  test $ac_status = 0; }; then
16904  # Parse the compiler output and extract the necessary
16905  # objects, libraries and library flags.
16906
16907  # Sentinel used to keep track of whether or not we are before
16908  # the conftest object file.
16909  pre_test_object_deps_done=no
16910
16911  for p in `eval "$output_verbose_link_cmd"`; do
16912    case ${prev}${p} in
16913
16914    -L* | -R* | -l*)
16915       # Some compilers place space between "-{L,R}" and the path.
16916       # Remove the space.
16917       if test $p = "-L" ||
16918          test $p = "-R"; then
16919	 prev=$p
16920	 continue
16921       fi
16922
16923       # Expand the sysroot to ease extracting the directories later.
16924       if test -z "$prev"; then
16925         case $p in
16926         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16927         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16928         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16929         esac
16930       fi
16931       case $p in
16932       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16933       esac
16934       if test "$pre_test_object_deps_done" = no; then
16935	 case ${prev} in
16936	 -L | -R)
16937	   # Internal compiler library paths should come after those
16938	   # provided the user.  The postdeps already come after the
16939	   # user supplied libs so there is no need to process them.
16940	   if test -z "$compiler_lib_search_path_CXX"; then
16941	     compiler_lib_search_path_CXX="${prev}${p}"
16942	   else
16943	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16944	   fi
16945	   ;;
16946	 # The "-l" case would never come before the object being
16947	 # linked, so don't bother handling this case.
16948	 esac
16949       else
16950	 if test -z "$postdeps_CXX"; then
16951	   postdeps_CXX="${prev}${p}"
16952	 else
16953	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16954	 fi
16955       fi
16956       prev=
16957       ;;
16958
16959    *.lto.$objext) ;; # Ignore GCC LTO objects
16960    *.$objext)
16961       # This assumes that the test object file only shows up
16962       # once in the compiler output.
16963       if test "$p" = "conftest.$objext"; then
16964	 pre_test_object_deps_done=yes
16965	 continue
16966       fi
16967
16968       if test "$pre_test_object_deps_done" = no; then
16969	 if test -z "$predep_objects_CXX"; then
16970	   predep_objects_CXX="$p"
16971	 else
16972	   predep_objects_CXX="$predep_objects_CXX $p"
16973	 fi
16974       else
16975	 if test -z "$postdep_objects_CXX"; then
16976	   postdep_objects_CXX="$p"
16977	 else
16978	   postdep_objects_CXX="$postdep_objects_CXX $p"
16979	 fi
16980       fi
16981       ;;
16982
16983    *) ;; # Ignore the rest.
16984
16985    esac
16986  done
16987
16988  # Clean up.
16989  rm -f a.out a.exe
16990else
16991  echo "libtool.m4: error: problem compiling CXX test program"
16992fi
16993
16994$RM -f confest.$objext
16995CFLAGS=$_lt_libdeps_save_CFLAGS
16996
16997# PORTME: override above test on systems where it is broken
16998case $host_os in
16999interix[3-9]*)
17000  # Interix 3.5 installs completely hosed .la files for C++, so rather than
17001  # hack all around it, let's just trust "g++" to DTRT.
17002  predep_objects_CXX=
17003  postdep_objects_CXX=
17004  postdeps_CXX=
17005  ;;
17006
17007linux*)
17008  case `$CC -V 2>&1 | sed 5q` in
17009  *Sun\ C*)
17010    # Sun C++ 5.9
17011
17012    # The more standards-conforming stlport4 library is
17013    # incompatible with the Cstd library. Avoid specifying
17014    # it if it's in CXXFLAGS. Ignore libCrun as
17015    # -library=stlport4 depends on it.
17016    case " $CXX $CXXFLAGS " in
17017    *" -library=stlport4 "*)
17018      solaris_use_stlport4=yes
17019      ;;
17020    esac
17021
17022    if test "$solaris_use_stlport4" != yes; then
17023      postdeps_CXX='-library=Cstd -library=Crun'
17024    fi
17025    ;;
17026  esac
17027  ;;
17028
17029solaris*)
17030  case $cc_basename in
17031  CC* | sunCC*)
17032    # The more standards-conforming stlport4 library is
17033    # incompatible with the Cstd library. Avoid specifying
17034    # it if it's in CXXFLAGS. Ignore libCrun as
17035    # -library=stlport4 depends on it.
17036    case " $CXX $CXXFLAGS " in
17037    *" -library=stlport4 "*)
17038      solaris_use_stlport4=yes
17039      ;;
17040    esac
17041
17042    # Adding this requires a known-good setup of shared libraries for
17043    # Sun compiler versions before 5.6, else PIC objects from an old
17044    # archive will be linked into the output, leading to subtle bugs.
17045    if test "$solaris_use_stlport4" != yes; then
17046      postdeps_CXX='-library=Cstd -library=Crun'
17047    fi
17048    ;;
17049  esac
17050  ;;
17051esac
17052
17053
17054case " $postdeps_CXX " in
17055*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17056esac
17057 compiler_lib_search_dirs_CXX=
17058if test -n "${compiler_lib_search_path_CXX}"; then
17059 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17060fi
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092    lt_prog_compiler_wl_CXX=
17093lt_prog_compiler_pic_CXX=
17094lt_prog_compiler_static_CXX=
17095
17096
17097  # C++ specific cases for pic, static, wl, etc.
17098  if test "$GXX" = yes; then
17099    lt_prog_compiler_wl_CXX='-Wl,'
17100    lt_prog_compiler_static_CXX='-static'
17101
17102    case $host_os in
17103    aix*)
17104      # All AIX code is PIC.
17105      if test "$host_cpu" = ia64; then
17106	# AIX 5 now supports IA64 processor
17107	lt_prog_compiler_static_CXX='-Bstatic'
17108      fi
17109      ;;
17110
17111    amigaos*)
17112      case $host_cpu in
17113      powerpc)
17114            # see comment about AmigaOS4 .so support
17115            lt_prog_compiler_pic_CXX='-fPIC'
17116        ;;
17117      m68k)
17118            # FIXME: we need at least 68020 code to build shared libraries, but
17119            # adding the `-m68020' flag to GCC prevents building anything better,
17120            # like `-m68040'.
17121            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17122        ;;
17123      esac
17124      ;;
17125
17126    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17127      # PIC is the default for these OSes.
17128      ;;
17129    mingw* | cygwin* | os2* | pw32* | cegcc*)
17130      # This hack is so that the source file can tell whether it is being
17131      # built for inclusion in a dll (and should export symbols for example).
17132      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17133      # (--disable-auto-import) libraries
17134      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17135      ;;
17136    darwin* | rhapsody*)
17137      # PIC is the default on this platform
17138      # Common symbols not allowed in MH_DYLIB files
17139      lt_prog_compiler_pic_CXX='-fno-common'
17140      ;;
17141    *djgpp*)
17142      # DJGPP does not support shared libraries at all
17143      lt_prog_compiler_pic_CXX=
17144      ;;
17145    haiku*)
17146      # PIC is the default for Haiku.
17147      # The "-static" flag exists, but is broken.
17148      lt_prog_compiler_static_CXX=
17149      ;;
17150    interix[3-9]*)
17151      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17152      # Instead, we relocate shared libraries at runtime.
17153      ;;
17154    sysv4*MP*)
17155      if test -d /usr/nec; then
17156	lt_prog_compiler_pic_CXX=-Kconform_pic
17157      fi
17158      ;;
17159    hpux*)
17160      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17161      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17162      # sets the default TLS model and affects inlining.
17163      case $host_cpu in
17164      hppa*64*)
17165	;;
17166      *)
17167	lt_prog_compiler_pic_CXX='-fPIC'
17168	;;
17169      esac
17170      ;;
17171    *qnx* | *nto*)
17172      # QNX uses GNU C++, but need to define -shared option too, otherwise
17173      # it will coredump.
17174      lt_prog_compiler_pic_CXX='-fPIC -shared'
17175      ;;
17176    *)
17177      lt_prog_compiler_pic_CXX='-fPIC'
17178      ;;
17179    esac
17180  else
17181    case $host_os in
17182      aix[4-9]*)
17183	# All AIX code is PIC.
17184	if test "$host_cpu" = ia64; then
17185	  # AIX 5 now supports IA64 processor
17186	  lt_prog_compiler_static_CXX='-Bstatic'
17187	else
17188	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17189	fi
17190	;;
17191      chorus*)
17192	case $cc_basename in
17193	cxch68*)
17194	  # Green Hills C++ Compiler
17195	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
17196	  ;;
17197	esac
17198	;;
17199      mingw* | cygwin* | os2* | pw32* | cegcc*)
17200	# This hack is so that the source file can tell whether it is being
17201	# built for inclusion in a dll (and should export symbols for example).
17202	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17203	;;
17204      dgux*)
17205	case $cc_basename in
17206	  ec++*)
17207	    lt_prog_compiler_pic_CXX='-KPIC'
17208	    ;;
17209	  ghcx*)
17210	    # Green Hills C++ Compiler
17211	    lt_prog_compiler_pic_CXX='-pic'
17212	    ;;
17213	  *)
17214	    ;;
17215	esac
17216	;;
17217      freebsd* | dragonfly*)
17218	# FreeBSD uses GNU C++
17219	;;
17220      hpux9* | hpux10* | hpux11*)
17221	case $cc_basename in
17222	  CC*)
17223	    lt_prog_compiler_wl_CXX='-Wl,'
17224	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17225	    if test "$host_cpu" != ia64; then
17226	      lt_prog_compiler_pic_CXX='+Z'
17227	    fi
17228	    ;;
17229	  aCC*)
17230	    lt_prog_compiler_wl_CXX='-Wl,'
17231	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17232	    case $host_cpu in
17233	    hppa*64*|ia64*)
17234	      # +Z the default
17235	      ;;
17236	    *)
17237	      lt_prog_compiler_pic_CXX='+Z'
17238	      ;;
17239	    esac
17240	    ;;
17241	  *)
17242	    ;;
17243	esac
17244	;;
17245      interix*)
17246	# This is c89, which is MS Visual C++ (no shared libs)
17247	# Anyone wants to do a port?
17248	;;
17249      irix5* | irix6* | nonstopux*)
17250	case $cc_basename in
17251	  CC*)
17252	    lt_prog_compiler_wl_CXX='-Wl,'
17253	    lt_prog_compiler_static_CXX='-non_shared'
17254	    # CC pic flag -KPIC is the default.
17255	    ;;
17256	  *)
17257	    ;;
17258	esac
17259	;;
17260      linux* | k*bsd*-gnu | kopensolaris*-gnu)
17261	case $cc_basename in
17262	  KCC*)
17263	    # KAI C++ Compiler
17264	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17265	    lt_prog_compiler_pic_CXX='-fPIC'
17266	    ;;
17267	  ecpc* )
17268	    # old Intel C++ for x86_64 which still supported -KPIC.
17269	    lt_prog_compiler_wl_CXX='-Wl,'
17270	    lt_prog_compiler_pic_CXX='-KPIC'
17271	    lt_prog_compiler_static_CXX='-static'
17272	    ;;
17273	  icpc* )
17274	    # Intel C++, used to be incompatible with GCC.
17275	    # ICC 10 doesn't accept -KPIC any more.
17276	    lt_prog_compiler_wl_CXX='-Wl,'
17277	    lt_prog_compiler_pic_CXX='-fPIC'
17278	    lt_prog_compiler_static_CXX='-static'
17279	    ;;
17280	  pgCC* | pgcpp*)
17281	    # Portland Group C++ compiler
17282	    lt_prog_compiler_wl_CXX='-Wl,'
17283	    lt_prog_compiler_pic_CXX='-fpic'
17284	    lt_prog_compiler_static_CXX='-Bstatic'
17285	    ;;
17286	  cxx*)
17287	    # Compaq C++
17288	    # Make sure the PIC flag is empty.  It appears that all Alpha
17289	    # Linux and Compaq Tru64 Unix objects are PIC.
17290	    lt_prog_compiler_pic_CXX=
17291	    lt_prog_compiler_static_CXX='-non_shared'
17292	    ;;
17293	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17294	    # IBM XL 8.0, 9.0 on PPC and BlueGene
17295	    lt_prog_compiler_wl_CXX='-Wl,'
17296	    lt_prog_compiler_pic_CXX='-qpic'
17297	    lt_prog_compiler_static_CXX='-qstaticlink'
17298	    ;;
17299	  *)
17300	    case `$CC -V 2>&1 | sed 5q` in
17301	    *Sun\ C*)
17302	      # Sun C++ 5.9
17303	      lt_prog_compiler_pic_CXX='-KPIC'
17304	      lt_prog_compiler_static_CXX='-Bstatic'
17305	      lt_prog_compiler_wl_CXX='-Qoption ld '
17306	      ;;
17307	    esac
17308	    ;;
17309	esac
17310	;;
17311      lynxos*)
17312	;;
17313      m88k*)
17314	;;
17315      mvs*)
17316	case $cc_basename in
17317	  cxx*)
17318	    lt_prog_compiler_pic_CXX='-W c,exportall'
17319	    ;;
17320	  *)
17321	    ;;
17322	esac
17323	;;
17324      netbsd*)
17325	;;
17326      *qnx* | *nto*)
17327        # QNX uses GNU C++, but need to define -shared option too, otherwise
17328        # it will coredump.
17329        lt_prog_compiler_pic_CXX='-fPIC -shared'
17330        ;;
17331      osf3* | osf4* | osf5*)
17332	case $cc_basename in
17333	  KCC*)
17334	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17335	    ;;
17336	  RCC*)
17337	    # Rational C++ 2.4.1
17338	    lt_prog_compiler_pic_CXX='-pic'
17339	    ;;
17340	  cxx*)
17341	    # Digital/Compaq C++
17342	    lt_prog_compiler_wl_CXX='-Wl,'
17343	    # Make sure the PIC flag is empty.  It appears that all Alpha
17344	    # Linux and Compaq Tru64 Unix objects are PIC.
17345	    lt_prog_compiler_pic_CXX=
17346	    lt_prog_compiler_static_CXX='-non_shared'
17347	    ;;
17348	  *)
17349	    ;;
17350	esac
17351	;;
17352      psos*)
17353	;;
17354      solaris*)
17355	case $cc_basename in
17356	  CC* | sunCC*)
17357	    # Sun C++ 4.2, 5.x and Centerline C++
17358	    lt_prog_compiler_pic_CXX='-KPIC'
17359	    lt_prog_compiler_static_CXX='-Bstatic'
17360	    lt_prog_compiler_wl_CXX='-Qoption ld '
17361	    ;;
17362	  gcx*)
17363	    # Green Hills C++ Compiler
17364	    lt_prog_compiler_pic_CXX='-PIC'
17365	    ;;
17366	  *)
17367	    ;;
17368	esac
17369	;;
17370      sunos4*)
17371	case $cc_basename in
17372	  CC*)
17373	    # Sun C++ 4.x
17374	    lt_prog_compiler_pic_CXX='-pic'
17375	    lt_prog_compiler_static_CXX='-Bstatic'
17376	    ;;
17377	  lcc*)
17378	    # Lucid
17379	    lt_prog_compiler_pic_CXX='-pic'
17380	    ;;
17381	  *)
17382	    ;;
17383	esac
17384	;;
17385      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17386	case $cc_basename in
17387	  CC*)
17388	    lt_prog_compiler_wl_CXX='-Wl,'
17389	    lt_prog_compiler_pic_CXX='-KPIC'
17390	    lt_prog_compiler_static_CXX='-Bstatic'
17391	    ;;
17392	esac
17393	;;
17394      tandem*)
17395	case $cc_basename in
17396	  NCC*)
17397	    # NonStop-UX NCC 3.20
17398	    lt_prog_compiler_pic_CXX='-KPIC'
17399	    ;;
17400	  *)
17401	    ;;
17402	esac
17403	;;
17404      vxworks*)
17405	;;
17406      *)
17407	lt_prog_compiler_can_build_shared_CXX=no
17408	;;
17409    esac
17410  fi
17411
17412case $host_os in
17413  # For platforms which do not support PIC, -DPIC is meaningless:
17414  *djgpp*)
17415    lt_prog_compiler_pic_CXX=
17416    ;;
17417  *)
17418    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17419    ;;
17420esac
17421
17422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17423$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17424if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17425  $as_echo_n "(cached) " >&6
17426else
17427  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17428fi
17429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17430$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17431lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17432
17433#
17434# Check to make sure the PIC flag actually works.
17435#
17436if test -n "$lt_prog_compiler_pic_CXX"; then
17437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17438$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17439if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17440  $as_echo_n "(cached) " >&6
17441else
17442  lt_cv_prog_compiler_pic_works_CXX=no
17443   ac_outfile=conftest.$ac_objext
17444   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17445   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17446   # Insert the option either (1) after the last *FLAGS variable, or
17447   # (2) before a word containing "conftest.", or (3) at the end.
17448   # Note that $ac_compile itself does not contain backslashes and begins
17449   # with a dollar sign (not a hyphen), so the echo should work correctly.
17450   # The option is referenced via a variable to avoid confusing sed.
17451   lt_compile=`echo "$ac_compile" | $SED \
17452   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17453   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17454   -e 's:$: $lt_compiler_flag:'`
17455   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17456   (eval "$lt_compile" 2>conftest.err)
17457   ac_status=$?
17458   cat conftest.err >&5
17459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460   if (exit $ac_status) && test -s "$ac_outfile"; then
17461     # The compiler can only warn and ignore the option if not recognized
17462     # So say no if there are warnings other than the usual output.
17463     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17464     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17465     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17466       lt_cv_prog_compiler_pic_works_CXX=yes
17467     fi
17468   fi
17469   $RM conftest*
17470
17471fi
17472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17473$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17474
17475if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17476    case $lt_prog_compiler_pic_CXX in
17477     "" | " "*) ;;
17478     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17479     esac
17480else
17481    lt_prog_compiler_pic_CXX=
17482     lt_prog_compiler_can_build_shared_CXX=no
17483fi
17484
17485fi
17486
17487
17488
17489
17490
17491#
17492# Check to make sure the static flag actually works.
17493#
17494wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17496$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17497if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17498  $as_echo_n "(cached) " >&6
17499else
17500  lt_cv_prog_compiler_static_works_CXX=no
17501   save_LDFLAGS="$LDFLAGS"
17502   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17503   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17504   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17505     # The linker can only warn and ignore the option if not recognized
17506     # So say no if there are warnings
17507     if test -s conftest.err; then
17508       # Append any errors to the config.log.
17509       cat conftest.err 1>&5
17510       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17511       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17512       if diff conftest.exp conftest.er2 >/dev/null; then
17513         lt_cv_prog_compiler_static_works_CXX=yes
17514       fi
17515     else
17516       lt_cv_prog_compiler_static_works_CXX=yes
17517     fi
17518   fi
17519   $RM -r conftest*
17520   LDFLAGS="$save_LDFLAGS"
17521
17522fi
17523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17524$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17525
17526if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17527    :
17528else
17529    lt_prog_compiler_static_CXX=
17530fi
17531
17532
17533
17534
17535    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17536$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17537if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17538  $as_echo_n "(cached) " >&6
17539else
17540  lt_cv_prog_compiler_c_o_CXX=no
17541   $RM -r conftest 2>/dev/null
17542   mkdir conftest
17543   cd conftest
17544   mkdir out
17545   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17546
17547   lt_compiler_flag="-o out/conftest2.$ac_objext"
17548   # Insert the option either (1) after the last *FLAGS variable, or
17549   # (2) before a word containing "conftest.", or (3) at the end.
17550   # Note that $ac_compile itself does not contain backslashes and begins
17551   # with a dollar sign (not a hyphen), so the echo should work correctly.
17552   lt_compile=`echo "$ac_compile" | $SED \
17553   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17554   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17555   -e 's:$: $lt_compiler_flag:'`
17556   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17557   (eval "$lt_compile" 2>out/conftest.err)
17558   ac_status=$?
17559   cat out/conftest.err >&5
17560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17562   then
17563     # The compiler can only warn and ignore the option if not recognized
17564     # So say no if there are warnings
17565     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17566     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17567     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17568       lt_cv_prog_compiler_c_o_CXX=yes
17569     fi
17570   fi
17571   chmod u+w . 2>&5
17572   $RM conftest*
17573   # SGI C++ compiler will create directory out/ii_files/ for
17574   # template instantiation
17575   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17576   $RM out/* && rmdir out
17577   cd ..
17578   $RM -r conftest
17579   $RM conftest*
17580
17581fi
17582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17583$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17584
17585
17586
17587    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17588$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17589if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17590  $as_echo_n "(cached) " >&6
17591else
17592  lt_cv_prog_compiler_c_o_CXX=no
17593   $RM -r conftest 2>/dev/null
17594   mkdir conftest
17595   cd conftest
17596   mkdir out
17597   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17598
17599   lt_compiler_flag="-o out/conftest2.$ac_objext"
17600   # Insert the option either (1) after the last *FLAGS variable, or
17601   # (2) before a word containing "conftest.", or (3) at the end.
17602   # Note that $ac_compile itself does not contain backslashes and begins
17603   # with a dollar sign (not a hyphen), so the echo should work correctly.
17604   lt_compile=`echo "$ac_compile" | $SED \
17605   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17606   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17607   -e 's:$: $lt_compiler_flag:'`
17608   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17609   (eval "$lt_compile" 2>out/conftest.err)
17610   ac_status=$?
17611   cat out/conftest.err >&5
17612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17614   then
17615     # The compiler can only warn and ignore the option if not recognized
17616     # So say no if there are warnings
17617     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17618     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17619     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17620       lt_cv_prog_compiler_c_o_CXX=yes
17621     fi
17622   fi
17623   chmod u+w . 2>&5
17624   $RM conftest*
17625   # SGI C++ compiler will create directory out/ii_files/ for
17626   # template instantiation
17627   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17628   $RM out/* && rmdir out
17629   cd ..
17630   $RM -r conftest
17631   $RM conftest*
17632
17633fi
17634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17635$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17636
17637
17638
17639
17640hard_links="nottested"
17641if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17642  # do not overwrite the value of need_locks provided by the user
17643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17644$as_echo_n "checking if we can lock with hard links... " >&6; }
17645  hard_links=yes
17646  $RM conftest*
17647  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17648  touch conftest.a
17649  ln conftest.a conftest.b 2>&5 || hard_links=no
17650  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17652$as_echo "$hard_links" >&6; }
17653  if test "$hard_links" = no; then
17654    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17655$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17656    need_locks=warn
17657  fi
17658else
17659  need_locks=no
17660fi
17661
17662
17663
17664    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17665$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17666
17667  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17668  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17669  case $host_os in
17670  aix[4-9]*)
17671    # If we're using GNU nm, then we don't want the "-C" option.
17672    # -C means demangle to AIX nm, but means don't demangle with GNU nm
17673    # Also, AIX nm treats weak defined symbols like other global defined
17674    # symbols, whereas GNU nm marks them as "W".
17675    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17676      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17677    else
17678      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17679    fi
17680    ;;
17681  pw32*)
17682    export_symbols_cmds_CXX="$ltdll_cmds"
17683    ;;
17684  cygwin* | mingw* | cegcc*)
17685    case $cc_basename in
17686    cl*) ;;
17687    *)
17688      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17689      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17690      ;;
17691    esac
17692    ;;
17693  *)
17694    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17695    ;;
17696  esac
17697
17698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17699$as_echo "$ld_shlibs_CXX" >&6; }
17700test "$ld_shlibs_CXX" = no && can_build_shared=no
17701
17702with_gnu_ld_CXX=$with_gnu_ld
17703
17704
17705
17706
17707
17708
17709#
17710# Do we need to explicitly link libc?
17711#
17712case "x$archive_cmds_need_lc_CXX" in
17713x|xyes)
17714  # Assume -lc should be added
17715  archive_cmds_need_lc_CXX=yes
17716
17717  if test "$enable_shared" = yes && test "$GCC" = yes; then
17718    case $archive_cmds_CXX in
17719    *'~'*)
17720      # FIXME: we may have to deal with multi-command sequences.
17721      ;;
17722    '$CC '*)
17723      # Test whether the compiler implicitly links with -lc since on some
17724      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17725      # to ld, don't add -lc before -lgcc.
17726      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17727$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17728if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17729  $as_echo_n "(cached) " >&6
17730else
17731  $RM conftest*
17732	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17733
17734	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17735  (eval $ac_compile) 2>&5
17736  ac_status=$?
17737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17738  test $ac_status = 0; } 2>conftest.err; then
17739	  soname=conftest
17740	  lib=conftest
17741	  libobjs=conftest.$ac_objext
17742	  deplibs=
17743	  wl=$lt_prog_compiler_wl_CXX
17744	  pic_flag=$lt_prog_compiler_pic_CXX
17745	  compiler_flags=-v
17746	  linker_flags=-v
17747	  verstring=
17748	  output_objdir=.
17749	  libname=conftest
17750	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17751	  allow_undefined_flag_CXX=
17752	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17753  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17754  ac_status=$?
17755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17756  test $ac_status = 0; }
17757	  then
17758	    lt_cv_archive_cmds_need_lc_CXX=no
17759	  else
17760	    lt_cv_archive_cmds_need_lc_CXX=yes
17761	  fi
17762	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17763	else
17764	  cat conftest.err 1>&5
17765	fi
17766	$RM conftest*
17767
17768fi
17769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17770$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17771      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17772      ;;
17773    esac
17774  fi
17775  ;;
17776esac
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17842$as_echo_n "checking dynamic linker characteristics... " >&6; }
17843
17844library_names_spec=
17845libname_spec='lib$name'
17846soname_spec=
17847shrext_cmds=".so"
17848postinstall_cmds=
17849postuninstall_cmds=
17850finish_cmds=
17851finish_eval=
17852shlibpath_var=
17853shlibpath_overrides_runpath=unknown
17854version_type=none
17855dynamic_linker="$host_os ld.so"
17856sys_lib_dlsearch_path_spec="/lib /usr/lib"
17857need_lib_prefix=unknown
17858hardcode_into_libs=no
17859
17860# when you set need_version to no, make sure it does not cause -set_version
17861# flags to be left without arguments
17862need_version=unknown
17863
17864case $host_os in
17865aix3*)
17866  version_type=linux
17867  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17868  shlibpath_var=LIBPATH
17869
17870  # AIX 3 has no versioning support, so we append a major version to the name.
17871  soname_spec='${libname}${release}${shared_ext}$major'
17872  ;;
17873
17874aix[4-9]*)
17875  version_type=linux
17876  need_lib_prefix=no
17877  need_version=no
17878  hardcode_into_libs=yes
17879  if test "$host_cpu" = ia64; then
17880    # AIX 5 supports IA64
17881    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17882    shlibpath_var=LD_LIBRARY_PATH
17883  else
17884    # With GCC up to 2.95.x, collect2 would create an import file
17885    # for dependence libraries.  The import file would start with
17886    # the line `#! .'.  This would cause the generated library to
17887    # depend on `.', always an invalid library.  This was fixed in
17888    # development snapshots of GCC prior to 3.0.
17889    case $host_os in
17890      aix4 | aix4.[01] | aix4.[01].*)
17891      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17892	   echo ' yes '
17893	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17894	:
17895      else
17896	can_build_shared=no
17897      fi
17898      ;;
17899    esac
17900    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17901    # soname into executable. Probably we can add versioning support to
17902    # collect2, so additional links can be useful in future.
17903    if test "$aix_use_runtimelinking" = yes; then
17904      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17905      # instead of lib<name>.a to let people know that these are not
17906      # typical AIX shared libraries.
17907      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17908    else
17909      # We preserve .a as extension for shared libraries through AIX4.2
17910      # and later when we are not doing run time linking.
17911      library_names_spec='${libname}${release}.a $libname.a'
17912      soname_spec='${libname}${release}${shared_ext}$major'
17913    fi
17914    shlibpath_var=LIBPATH
17915  fi
17916  ;;
17917
17918amigaos*)
17919  case $host_cpu in
17920  powerpc)
17921    # Since July 2007 AmigaOS4 officially supports .so libraries.
17922    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17923    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17924    ;;
17925  m68k)
17926    library_names_spec='$libname.ixlibrary $libname.a'
17927    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17928    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
17929    ;;
17930  esac
17931  ;;
17932
17933beos*)
17934  library_names_spec='${libname}${shared_ext}'
17935  dynamic_linker="$host_os ld.so"
17936  shlibpath_var=LIBRARY_PATH
17937  ;;
17938
17939bsdi[45]*)
17940  version_type=linux
17941  need_version=no
17942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17943  soname_spec='${libname}${release}${shared_ext}$major'
17944  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17945  shlibpath_var=LD_LIBRARY_PATH
17946  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17947  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17948  # the default ld.so.conf also contains /usr/contrib/lib and
17949  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17950  # libtool to hard-code these into programs
17951  ;;
17952
17953cygwin* | mingw* | pw32* | cegcc*)
17954  version_type=windows
17955  shrext_cmds=".dll"
17956  need_version=no
17957  need_lib_prefix=no
17958
17959  case $GCC,$cc_basename in
17960  yes,*)
17961    # gcc
17962    library_names_spec='$libname.dll.a'
17963    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17964    postinstall_cmds='base_file=`basename \${file}`~
17965      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17966      dldir=$destdir/`dirname \$dlpath`~
17967      test -d \$dldir || mkdir -p \$dldir~
17968      $install_prog $dir/$dlname \$dldir/$dlname~
17969      chmod a+x \$dldir/$dlname~
17970      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17971        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17972      fi'
17973    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17974      dlpath=$dir/\$dldll~
17975       $RM \$dlpath'
17976    shlibpath_overrides_runpath=yes
17977
17978    case $host_os in
17979    cygwin*)
17980      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17981      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17982
17983      ;;
17984    mingw* | cegcc*)
17985      # MinGW DLLs use traditional 'lib' prefix
17986      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17987      ;;
17988    pw32*)
17989      # pw32 DLLs use 'pw' prefix rather than 'lib'
17990      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17991      ;;
17992    esac
17993    dynamic_linker='Win32 ld.exe'
17994    ;;
17995
17996  *,cl*)
17997    # Native MSVC
17998    libname_spec='$name'
17999    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18000    library_names_spec='${libname}.dll.lib'
18001
18002    case $build_os in
18003    mingw*)
18004      sys_lib_search_path_spec=
18005      lt_save_ifs=$IFS
18006      IFS=';'
18007      for lt_path in $LIB
18008      do
18009        IFS=$lt_save_ifs
18010        # Let DOS variable expansion print the short 8.3 style file name.
18011        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18012        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18013      done
18014      IFS=$lt_save_ifs
18015      # Convert to MSYS style.
18016      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18017      ;;
18018    cygwin*)
18019      # Convert to unix form, then to dos form, then back to unix form
18020      # but this time dos style (no spaces!) so that the unix form looks
18021      # like /cygdrive/c/PROGRA~1:/cygdr...
18022      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18023      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18024      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18025      ;;
18026    *)
18027      sys_lib_search_path_spec="$LIB"
18028      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18029        # It is most probably a Windows format PATH.
18030        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18031      else
18032        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18033      fi
18034      # FIXME: find the short name or the path components, as spaces are
18035      # common. (e.g. "Program Files" -> "PROGRA~1")
18036      ;;
18037    esac
18038
18039    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18040    postinstall_cmds='base_file=`basename \${file}`~
18041      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18042      dldir=$destdir/`dirname \$dlpath`~
18043      test -d \$dldir || mkdir -p \$dldir~
18044      $install_prog $dir/$dlname \$dldir/$dlname'
18045    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18046      dlpath=$dir/\$dldll~
18047       $RM \$dlpath'
18048    shlibpath_overrides_runpath=yes
18049    dynamic_linker='Win32 link.exe'
18050    ;;
18051
18052  *)
18053    # Assume MSVC wrapper
18054    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18055    dynamic_linker='Win32 ld.exe'
18056    ;;
18057  esac
18058  # FIXME: first we should search . and the directory the executable is in
18059  shlibpath_var=PATH
18060  ;;
18061
18062darwin* | rhapsody*)
18063  dynamic_linker="$host_os dyld"
18064  version_type=darwin
18065  need_lib_prefix=no
18066  need_version=no
18067  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18068  soname_spec='${libname}${release}${major}$shared_ext'
18069  shlibpath_overrides_runpath=yes
18070  shlibpath_var=DYLD_LIBRARY_PATH
18071  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18072
18073  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18074  ;;
18075
18076dgux*)
18077  version_type=linux
18078  need_lib_prefix=no
18079  need_version=no
18080  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18081  soname_spec='${libname}${release}${shared_ext}$major'
18082  shlibpath_var=LD_LIBRARY_PATH
18083  ;;
18084
18085freebsd1*)
18086  dynamic_linker=no
18087  ;;
18088
18089freebsd* | dragonfly*)
18090  # DragonFly does not have aout.  When/if they implement a new
18091  # versioning mechanism, adjust this.
18092  if test -x /usr/bin/objformat; then
18093    objformat=`/usr/bin/objformat`
18094  else
18095    case $host_os in
18096    freebsd[123]*) objformat=aout ;;
18097    *) objformat=elf ;;
18098    esac
18099  fi
18100  version_type=freebsd-$objformat
18101  case $version_type in
18102    freebsd-elf*)
18103      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18104      need_version=no
18105      need_lib_prefix=no
18106      ;;
18107    freebsd-*)
18108      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18109      need_version=yes
18110      ;;
18111  esac
18112  shlibpath_var=LD_LIBRARY_PATH
18113  case $host_os in
18114  freebsd2*)
18115    shlibpath_overrides_runpath=yes
18116    ;;
18117  freebsd3.[01]* | freebsdelf3.[01]*)
18118    shlibpath_overrides_runpath=yes
18119    hardcode_into_libs=yes
18120    ;;
18121  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18122  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18123    shlibpath_overrides_runpath=no
18124    hardcode_into_libs=yes
18125    ;;
18126  *) # from 4.6 on, and DragonFly
18127    shlibpath_overrides_runpath=yes
18128    hardcode_into_libs=yes
18129    ;;
18130  esac
18131  ;;
18132
18133gnu*)
18134  version_type=linux
18135  need_lib_prefix=no
18136  need_version=no
18137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18138  soname_spec='${libname}${release}${shared_ext}$major'
18139  shlibpath_var=LD_LIBRARY_PATH
18140  hardcode_into_libs=yes
18141  ;;
18142
18143haiku*)
18144  version_type=linux
18145  need_lib_prefix=no
18146  need_version=no
18147  dynamic_linker="$host_os runtime_loader"
18148  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18149  soname_spec='${libname}${release}${shared_ext}$major'
18150  shlibpath_var=LIBRARY_PATH
18151  shlibpath_overrides_runpath=yes
18152  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18153  hardcode_into_libs=yes
18154  ;;
18155
18156hpux9* | hpux10* | hpux11*)
18157  # Give a soname corresponding to the major version so that dld.sl refuses to
18158  # link against other versions.
18159  version_type=sunos
18160  need_lib_prefix=no
18161  need_version=no
18162  case $host_cpu in
18163  ia64*)
18164    shrext_cmds='.so'
18165    hardcode_into_libs=yes
18166    dynamic_linker="$host_os dld.so"
18167    shlibpath_var=LD_LIBRARY_PATH
18168    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18169    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18170    soname_spec='${libname}${release}${shared_ext}$major'
18171    if test "X$HPUX_IA64_MODE" = X32; then
18172      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18173    else
18174      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18175    fi
18176    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18177    ;;
18178  hppa*64*)
18179    shrext_cmds='.sl'
18180    hardcode_into_libs=yes
18181    dynamic_linker="$host_os dld.sl"
18182    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18183    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18184    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18185    soname_spec='${libname}${release}${shared_ext}$major'
18186    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18187    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18188    ;;
18189  *)
18190    shrext_cmds='.sl'
18191    dynamic_linker="$host_os dld.sl"
18192    shlibpath_var=SHLIB_PATH
18193    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18194    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18195    soname_spec='${libname}${release}${shared_ext}$major'
18196    ;;
18197  esac
18198  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18199  postinstall_cmds='chmod 555 $lib'
18200  # or fails outright, so override atomically:
18201  install_override_mode=555
18202  ;;
18203
18204interix[3-9]*)
18205  version_type=linux
18206  need_lib_prefix=no
18207  need_version=no
18208  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18209  soname_spec='${libname}${release}${shared_ext}$major'
18210  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18211  shlibpath_var=LD_LIBRARY_PATH
18212  shlibpath_overrides_runpath=no
18213  hardcode_into_libs=yes
18214  ;;
18215
18216irix5* | irix6* | nonstopux*)
18217  case $host_os in
18218    nonstopux*) version_type=nonstopux ;;
18219    *)
18220	if test "$lt_cv_prog_gnu_ld" = yes; then
18221		version_type=linux
18222	else
18223		version_type=irix
18224	fi ;;
18225  esac
18226  need_lib_prefix=no
18227  need_version=no
18228  soname_spec='${libname}${release}${shared_ext}$major'
18229  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18230  case $host_os in
18231  irix5* | nonstopux*)
18232    libsuff= shlibsuff=
18233    ;;
18234  *)
18235    case $LD in # libtool.m4 will add one of these switches to LD
18236    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18237      libsuff= shlibsuff= libmagic=32-bit;;
18238    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18239      libsuff=32 shlibsuff=N32 libmagic=N32;;
18240    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18241      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18242    *) libsuff= shlibsuff= libmagic=never-match;;
18243    esac
18244    ;;
18245  esac
18246  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18247  shlibpath_overrides_runpath=no
18248  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18249  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18250  hardcode_into_libs=yes
18251  ;;
18252
18253# No shared lib support for Linux oldld, aout, or coff.
18254linux*oldld* | linux*aout* | linux*coff*)
18255  dynamic_linker=no
18256  ;;
18257
18258# This must be Linux ELF.
18259linux* | k*bsd*-gnu | kopensolaris*-gnu)
18260  version_type=linux
18261  need_lib_prefix=no
18262  need_version=no
18263  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18264  soname_spec='${libname}${release}${shared_ext}$major'
18265  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18266  shlibpath_var=LD_LIBRARY_PATH
18267  shlibpath_overrides_runpath=no
18268
18269  # Some binutils ld are patched to set DT_RUNPATH
18270  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18271  $as_echo_n "(cached) " >&6
18272else
18273  lt_cv_shlibpath_overrides_runpath=no
18274    save_LDFLAGS=$LDFLAGS
18275    save_libdir=$libdir
18276    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18277	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18278    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18279/* end confdefs.h.  */
18280
18281int
18282main ()
18283{
18284
18285  ;
18286  return 0;
18287}
18288_ACEOF
18289if ac_fn_cxx_try_link "$LINENO"; then :
18290  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18291  lt_cv_shlibpath_overrides_runpath=yes
18292fi
18293fi
18294rm -f core conftest.err conftest.$ac_objext \
18295    conftest$ac_exeext conftest.$ac_ext
18296    LDFLAGS=$save_LDFLAGS
18297    libdir=$save_libdir
18298
18299fi
18300
18301  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18302
18303  # This implies no fast_install, which is unacceptable.
18304  # Some rework will be needed to allow for fast_install
18305  # before this can be enabled.
18306  hardcode_into_libs=yes
18307
18308  # Append ld.so.conf contents to the search path
18309  if test -f /etc/ld.so.conf; then
18310    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' ' '`
18311    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18312  fi
18313
18314  # We used to test for /lib/ld.so.1 and disable shared libraries on
18315  # powerpc, because MkLinux only supported shared libraries with the
18316  # GNU dynamic linker.  Since this was broken with cross compilers,
18317  # most powerpc-linux boxes support dynamic linking these days and
18318  # people can always --disable-shared, the test was removed, and we
18319  # assume the GNU/Linux dynamic linker is in use.
18320  dynamic_linker='GNU/Linux ld.so'
18321  ;;
18322
18323netbsd*)
18324  version_type=sunos
18325  need_lib_prefix=no
18326  need_version=no
18327  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18328    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18329    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18330    dynamic_linker='NetBSD (a.out) ld.so'
18331  else
18332    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18333    soname_spec='${libname}${release}${shared_ext}$major'
18334    dynamic_linker='NetBSD ld.elf_so'
18335  fi
18336  shlibpath_var=LD_LIBRARY_PATH
18337  shlibpath_overrides_runpath=yes
18338  hardcode_into_libs=yes
18339  ;;
18340
18341newsos6)
18342  version_type=linux
18343  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18344  shlibpath_var=LD_LIBRARY_PATH
18345  shlibpath_overrides_runpath=yes
18346  ;;
18347
18348*nto* | *qnx*)
18349  version_type=qnx
18350  need_lib_prefix=no
18351  need_version=no
18352  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18353  soname_spec='${libname}${release}${shared_ext}$major'
18354  shlibpath_var=LD_LIBRARY_PATH
18355  shlibpath_overrides_runpath=no
18356  hardcode_into_libs=yes
18357  dynamic_linker='ldqnx.so'
18358  ;;
18359
18360openbsd*)
18361  version_type=sunos
18362  sys_lib_dlsearch_path_spec="/usr/lib"
18363  need_lib_prefix=no
18364  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18365  case $host_os in
18366    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
18367    *)				need_version=no  ;;
18368  esac
18369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18370  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18371  shlibpath_var=LD_LIBRARY_PATH
18372  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18373    case $host_os in
18374      openbsd2.[89] | openbsd2.[89].*)
18375	shlibpath_overrides_runpath=no
18376	;;
18377      *)
18378	shlibpath_overrides_runpath=yes
18379	;;
18380      esac
18381  else
18382    shlibpath_overrides_runpath=yes
18383  fi
18384  ;;
18385
18386os2*)
18387  libname_spec='$name'
18388  shrext_cmds=".dll"
18389  need_lib_prefix=no
18390  library_names_spec='$libname${shared_ext} $libname.a'
18391  dynamic_linker='OS/2 ld.exe'
18392  shlibpath_var=LIBPATH
18393  ;;
18394
18395osf3* | osf4* | osf5*)
18396  version_type=osf
18397  need_lib_prefix=no
18398  need_version=no
18399  soname_spec='${libname}${release}${shared_ext}$major'
18400  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18401  shlibpath_var=LD_LIBRARY_PATH
18402  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18403  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18404  ;;
18405
18406rdos*)
18407  dynamic_linker=no
18408  ;;
18409
18410solaris*)
18411  version_type=linux
18412  need_lib_prefix=no
18413  need_version=no
18414  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18415  soname_spec='${libname}${release}${shared_ext}$major'
18416  shlibpath_var=LD_LIBRARY_PATH
18417  shlibpath_overrides_runpath=yes
18418  hardcode_into_libs=yes
18419  # ldd complains unless libraries are executable
18420  postinstall_cmds='chmod +x $lib'
18421  ;;
18422
18423sunos4*)
18424  version_type=sunos
18425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18426  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18427  shlibpath_var=LD_LIBRARY_PATH
18428  shlibpath_overrides_runpath=yes
18429  if test "$with_gnu_ld" = yes; then
18430    need_lib_prefix=no
18431  fi
18432  need_version=yes
18433  ;;
18434
18435sysv4 | sysv4.3*)
18436  version_type=linux
18437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18438  soname_spec='${libname}${release}${shared_ext}$major'
18439  shlibpath_var=LD_LIBRARY_PATH
18440  case $host_vendor in
18441    sni)
18442      shlibpath_overrides_runpath=no
18443      need_lib_prefix=no
18444      runpath_var=LD_RUN_PATH
18445      ;;
18446    siemens)
18447      need_lib_prefix=no
18448      ;;
18449    motorola)
18450      need_lib_prefix=no
18451      need_version=no
18452      shlibpath_overrides_runpath=no
18453      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18454      ;;
18455  esac
18456  ;;
18457
18458sysv4*MP*)
18459  if test -d /usr/nec ;then
18460    version_type=linux
18461    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18462    soname_spec='$libname${shared_ext}.$major'
18463    shlibpath_var=LD_LIBRARY_PATH
18464  fi
18465  ;;
18466
18467sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18468  version_type=freebsd-elf
18469  need_lib_prefix=no
18470  need_version=no
18471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18472  soname_spec='${libname}${release}${shared_ext}$major'
18473  shlibpath_var=LD_LIBRARY_PATH
18474  shlibpath_overrides_runpath=yes
18475  hardcode_into_libs=yes
18476  if test "$with_gnu_ld" = yes; then
18477    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18478  else
18479    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18480    case $host_os in
18481      sco3.2v5*)
18482        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18483	;;
18484    esac
18485  fi
18486  sys_lib_dlsearch_path_spec='/usr/lib'
18487  ;;
18488
18489tpf*)
18490  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18491  version_type=linux
18492  need_lib_prefix=no
18493  need_version=no
18494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18495  shlibpath_var=LD_LIBRARY_PATH
18496  shlibpath_overrides_runpath=no
18497  hardcode_into_libs=yes
18498  ;;
18499
18500uts4*)
18501  version_type=linux
18502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18503  soname_spec='${libname}${release}${shared_ext}$major'
18504  shlibpath_var=LD_LIBRARY_PATH
18505  ;;
18506
18507*)
18508  dynamic_linker=no
18509  ;;
18510esac
18511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18512$as_echo "$dynamic_linker" >&6; }
18513test "$dynamic_linker" = no && can_build_shared=no
18514
18515variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18516if test "$GCC" = yes; then
18517  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18518fi
18519
18520if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18521  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18522fi
18523if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18524  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18525fi
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18565$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18566hardcode_action_CXX=
18567if test -n "$hardcode_libdir_flag_spec_CXX" ||
18568   test -n "$runpath_var_CXX" ||
18569   test "X$hardcode_automatic_CXX" = "Xyes" ; then
18570
18571  # We can hardcode non-existent directories.
18572  if test "$hardcode_direct_CXX" != no &&
18573     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18574     # have to relink, otherwise we might link with an installed library
18575     # when we should be linking with a yet-to-be-installed one
18576     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18577     test "$hardcode_minus_L_CXX" != no; then
18578    # Linking always hardcodes the temporary library directory.
18579    hardcode_action_CXX=relink
18580  else
18581    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18582    hardcode_action_CXX=immediate
18583  fi
18584else
18585  # We cannot hardcode anything, or else we can only hardcode existing
18586  # directories.
18587  hardcode_action_CXX=unsupported
18588fi
18589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18590$as_echo "$hardcode_action_CXX" >&6; }
18591
18592if test "$hardcode_action_CXX" = relink ||
18593   test "$inherit_rpath_CXX" = yes; then
18594  # Fast installation is not supported
18595  enable_fast_install=no
18596elif test "$shlibpath_overrides_runpath" = yes ||
18597     test "$enable_shared" = no; then
18598  # Fast installation is not necessary
18599  enable_fast_install=needless
18600fi
18601
18602
18603
18604
18605
18606
18607
18608  fi # test -n "$compiler"
18609
18610  CC=$lt_save_CC
18611  CFLAGS=$lt_save_CFLAGS
18612  LDCXX=$LD
18613  LD=$lt_save_LD
18614  GCC=$lt_save_GCC
18615  with_gnu_ld=$lt_save_with_gnu_ld
18616  lt_cv_path_LDCXX=$lt_cv_path_LD
18617  lt_cv_path_LD=$lt_save_path_LD
18618  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18619  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18620fi # test "$_lt_caught_CXX_error" != yes
18621
18622ac_ext=c
18623ac_cpp='$CPP $CPPFLAGS'
18624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18626ac_compiler_gnu=$ac_cv_c_compiler_gnu
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640        ac_config_commands="$ac_config_commands libtool"
18641
18642
18643
18644
18645# Only expand once:
18646
18647
18648
18649
18650# NTP has (so far) been relying on leading-edge autogen, which
18651# means we need the appropriate corresponding libopts as well.
18652# Therefore, by default:
18653# - use the version of libopts we ship with
18654# - do not install it
18655# - build a static copy (AC_DISABLE_SHARED - done earlier)
18656case "${enable_local_libopts+set}" in
18657 set) ;;
18658 *) enable_local_libopts=yes ;;
18659esac
18660case "${enable_libopts_install+set}" in
18661 set) ;;
18662 *) enable_libopts_install=no ;;
18663esac
18664enable_nls=no
18665ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18666if test "x$ac_cv_type_pid_t" = xyes; then :
18667
18668else
18669
18670cat >>confdefs.h <<_ACEOF
18671#define pid_t int
18672_ACEOF
18673
18674fi
18675
18676
18677
18678  ac_header_dirent=no
18679for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18680  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
18682$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
18683if eval \${$as_ac_Header+:} false; then :
18684  $as_echo_n "(cached) " >&6
18685else
18686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18687/* end confdefs.h.  */
18688#include <sys/types.h>
18689#include <$ac_hdr>
18690
18691int
18692main ()
18693{
18694if ((DIR *) 0)
18695return 0;
18696  ;
18697  return 0;
18698}
18699_ACEOF
18700if ac_fn_c_try_compile "$LINENO"; then :
18701  eval "$as_ac_Header=yes"
18702else
18703  eval "$as_ac_Header=no"
18704fi
18705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18706fi
18707eval ac_res=\$$as_ac_Header
18708	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18709$as_echo "$ac_res" >&6; }
18710if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18711  cat >>confdefs.h <<_ACEOF
18712#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18713_ACEOF
18714
18715ac_header_dirent=$ac_hdr; break
18716fi
18717
18718done
18719# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18720if test $ac_header_dirent = dirent.h; then
18721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18722$as_echo_n "checking for library containing opendir... " >&6; }
18723if ${ac_cv_search_opendir+:} false; then :
18724  $as_echo_n "(cached) " >&6
18725else
18726  ac_func_search_save_LIBS=$LIBS
18727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18728/* end confdefs.h.  */
18729
18730/* Override any GCC internal prototype to avoid an error.
18731   Use char because int might match the return type of a GCC
18732   builtin and then its argument prototype would still apply.  */
18733#ifdef __cplusplus
18734extern "C"
18735#endif
18736char opendir ();
18737int
18738main ()
18739{
18740return opendir ();
18741  ;
18742  return 0;
18743}
18744_ACEOF
18745for ac_lib in '' dir; do
18746  if test -z "$ac_lib"; then
18747    ac_res="none required"
18748  else
18749    ac_res=-l$ac_lib
18750    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18751  fi
18752  if ac_fn_c_try_link "$LINENO"; then :
18753  ac_cv_search_opendir=$ac_res
18754fi
18755rm -f core conftest.err conftest.$ac_objext \
18756    conftest$ac_exeext
18757  if ${ac_cv_search_opendir+:} false; then :
18758  break
18759fi
18760done
18761if ${ac_cv_search_opendir+:} false; then :
18762
18763else
18764  ac_cv_search_opendir=no
18765fi
18766rm conftest.$ac_ext
18767LIBS=$ac_func_search_save_LIBS
18768fi
18769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18770$as_echo "$ac_cv_search_opendir" >&6; }
18771ac_res=$ac_cv_search_opendir
18772if test "$ac_res" != no; then :
18773  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18774
18775fi
18776
18777else
18778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18779$as_echo_n "checking for library containing opendir... " >&6; }
18780if ${ac_cv_search_opendir+:} false; then :
18781  $as_echo_n "(cached) " >&6
18782else
18783  ac_func_search_save_LIBS=$LIBS
18784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18785/* end confdefs.h.  */
18786
18787/* Override any GCC internal prototype to avoid an error.
18788   Use char because int might match the return type of a GCC
18789   builtin and then its argument prototype would still apply.  */
18790#ifdef __cplusplus
18791extern "C"
18792#endif
18793char opendir ();
18794int
18795main ()
18796{
18797return opendir ();
18798  ;
18799  return 0;
18800}
18801_ACEOF
18802for ac_lib in '' x; do
18803  if test -z "$ac_lib"; then
18804    ac_res="none required"
18805  else
18806    ac_res=-l$ac_lib
18807    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18808  fi
18809  if ac_fn_c_try_link "$LINENO"; then :
18810  ac_cv_search_opendir=$ac_res
18811fi
18812rm -f core conftest.err conftest.$ac_objext \
18813    conftest$ac_exeext
18814  if ${ac_cv_search_opendir+:} false; then :
18815  break
18816fi
18817done
18818if ${ac_cv_search_opendir+:} false; then :
18819
18820else
18821  ac_cv_search_opendir=no
18822fi
18823rm conftest.$ac_ext
18824LIBS=$ac_func_search_save_LIBS
18825fi
18826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18827$as_echo "$ac_cv_search_opendir" >&6; }
18828ac_res=$ac_cv_search_opendir
18829if test "$ac_res" != no; then :
18830  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18831
18832fi
18833
18834fi
18835
18836
18837  # =================
18838  # AC_CHECK_HEADERS
18839  # =================
18840  for ac_header in  \
18841      sys/mman.h    sys/param.h   sys/poll.h    sys/procset.h \
18842      sys/select.h  sys/socket.h  sys/stropts.h sys/time.h \
18843      sys/un.h      sys/wait.h    dlfcn.h       errno.h \
18844      fcntl.h       libgen.h      libintl.h     memory.h \
18845      netinet/in.h  setjmp.h      stdbool.h     sysexits.h \
18846      unistd.h      utime.h
18847do :
18848  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18849ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18850if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18851  cat >>confdefs.h <<_ACEOF
18852#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18853_ACEOF
18854
18855fi
18856
18857done
18858
18859
18860  for ac_header in stdarg.h     varargs.h
18861do :
18862  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18863ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18864if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18865  cat >>confdefs.h <<_ACEOF
18866#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18867_ACEOF
18868 lo_have_arg_hdr=true;break
18869else
18870  lo_have_arg_hdr=false
18871fi
18872
18873done
18874
18875
18876  for ac_header in string.h     strings.h
18877do :
18878  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18879ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18880if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18881  cat >>confdefs.h <<_ACEOF
18882#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18883_ACEOF
18884 lo_have_str_hdr=true;break
18885else
18886  lo_have_str_hdr=false
18887fi
18888
18889done
18890
18891
18892  for ac_header in limits.h     sys/limits.h  values.h
18893do :
18894  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18895ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18896if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18897  cat >>confdefs.h <<_ACEOF
18898#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18899_ACEOF
18900 lo_have_lim_hdr=true;break
18901else
18902  lo_have_lim_hdr=false
18903fi
18904
18905done
18906
18907
18908  for ac_header in inttypes.h   stdint.h
18909do :
18910  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18911ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18912if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18913  cat >>confdefs.h <<_ACEOF
18914#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18915_ACEOF
18916 lo_have_typ_hdr=true;break
18917else
18918  lo_have_typ_hdr=false
18919fi
18920
18921done
18922
18923
18924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
18925$as_echo_n "checking for working stdnoreturn.h... " >&6; }
18926if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
18927  $as_echo_n "(cached) " >&6
18928else
18929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18930/* end confdefs.h.  */
18931#include <stdlib.h>
18932            #include <stdnoreturn.h>
18933            /* Do not check for 'noreturn' after the return type.
18934               C11 allows it, but it's rarely done that way
18935               and circa-2012 bleeding-edge GCC rejects it when given
18936               -Werror=old-style-declaration.  */
18937            noreturn void foo1 (void) { exit (0); }
18938            _Noreturn void foo2 (void) { exit (0); }
18939            int testit (int argc, char **argv) {
18940              if (argc & 1)
18941                return 0;
18942              (argv[0][0] ? foo1 : foo2) ();
18943            }
18944
18945int
18946main ()
18947{
18948
18949  ;
18950  return 0;
18951}
18952_ACEOF
18953if ac_fn_c_try_compile "$LINENO"; then :
18954  gl_cv_header_working_stdnoreturn_h=yes
18955else
18956  gl_cv_header_working_stdnoreturn_h=no
18957fi
18958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18959fi
18960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
18961$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
18962
18963  if test $gl_cv_header_working_stdnoreturn_h = yes; then
18964    STDNORETURN_H=''
18965  else
18966    STDNORETURN_H='stdnoreturn.h'
18967  fi
18968
18969
18970   if test -n "$STDNORETURN_H"; then
18971  GL_GENERATE_STDNORETURN_H_TRUE=
18972  GL_GENERATE_STDNORETURN_H_FALSE='#'
18973else
18974  GL_GENERATE_STDNORETURN_H_TRUE='#'
18975  GL_GENERATE_STDNORETURN_H_FALSE=
18976fi
18977
18978
18979
18980  # ----------------------------------------------------------------------
18981  # check for various programs used during the build.
18982  # On OS/X, "wchar.h" needs "runetype.h" to work properly.
18983  # ----------------------------------------------------------------------
18984  for ac_header in runetype.h wchar.h
18985do :
18986  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18987ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
18988  $ac_includes_default
18989  #if HAVE_RUNETYPE_H
18990  # include <runetype.h>
18991  #endif
18992
18993"
18994if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18995  cat >>confdefs.h <<_ACEOF
18996#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18997_ACEOF
18998
18999fi
19000
19001done
19002
19003
19004  # Check whether --enable-nls was given.
19005if test "${enable_nls+set}" = set; then :
19006  enableval=$enable_nls;
19007fi
19008
19009  if test "x$enable_nls" != "xno" && \
19010  test "X${ac_cv_header_libintl_h}" = Xyes; then :
19011
19012
19013$as_echo "#define ENABLE_NLS 1" >>confdefs.h
19014
19015fi
19016
19017  # --------------------------------------------
19018  # Verify certain entries from AC_CHECK_HEADERS
19019  # --------------------------------------------
19020  ${lo_have_arg_hdr} || \
19021    as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
19022
19023  ${lo_have_str_hdr} || \
19024    as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
19025
19026  ${lo_have_lim_hdr} || \
19027    as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
19028
19029  ${lo_have_typ_hdr} || \
19030    as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
19031
19032  for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
19033  do eval as_ac_var=\${ac_cv_header_${f}_h}
19034     test "X${as_ac_var}" = Xyes || {
19035       as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
19036     }
19037  done
19038  test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
19039    echo '#include <stdint.h>' > inttypes.h
19040
19041  # ----------------------------------------------------------------------
19042  # Checks for typedefs
19043  # ----------------------------------------------------------------------
19044  ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
19045if test "x$ac_cv_type_wchar_t" = xyes; then :
19046
19047cat >>confdefs.h <<_ACEOF
19048#define HAVE_WCHAR_T 1
19049_ACEOF
19050
19051
19052fi
19053
19054  ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
19055    $ac_includes_default
19056    #if HAVE_RUNETYPE_H
19057    # include <runetype.h>
19058    #endif
19059    #if HAVE_WCHAR_H
19060    # include <wchar.h>
19061    #endif
19062
19063"
19064if test "x$ac_cv_type_wint_t" = xyes; then :
19065
19066cat >>confdefs.h <<_ACEOF
19067#define HAVE_WINT_T 1
19068_ACEOF
19069
19070
19071fi
19072
19073  ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
19074if test "x$ac_cv_type_int8_t" = xyes; then :
19075
19076cat >>confdefs.h <<_ACEOF
19077#define HAVE_INT8_T 1
19078_ACEOF
19079
19080
19081fi
19082ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
19083if test "x$ac_cv_type_uint8_t" = xyes; then :
19084
19085cat >>confdefs.h <<_ACEOF
19086#define HAVE_UINT8_T 1
19087_ACEOF
19088
19089
19090fi
19091ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
19092if test "x$ac_cv_type_int16_t" = xyes; then :
19093
19094cat >>confdefs.h <<_ACEOF
19095#define HAVE_INT16_T 1
19096_ACEOF
19097
19098
19099fi
19100ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
19101if test "x$ac_cv_type_uint16_t" = xyes; then :
19102
19103cat >>confdefs.h <<_ACEOF
19104#define HAVE_UINT16_T 1
19105_ACEOF
19106
19107
19108fi
19109ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
19110if test "x$ac_cv_type_int32_t" = xyes; then :
19111
19112cat >>confdefs.h <<_ACEOF
19113#define HAVE_INT32_T 1
19114_ACEOF
19115
19116
19117fi
19118ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
19119if test "x$ac_cv_type_uint32_t" = xyes; then :
19120
19121cat >>confdefs.h <<_ACEOF
19122#define HAVE_UINT32_T 1
19123_ACEOF
19124
19125
19126fi
19127ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
19128if test "x$ac_cv_type_intptr_t" = xyes; then :
19129
19130cat >>confdefs.h <<_ACEOF
19131#define HAVE_INTPTR_T 1
19132_ACEOF
19133
19134
19135fi
19136ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
19137if test "x$ac_cv_type_uintptr_t" = xyes; then :
19138
19139cat >>confdefs.h <<_ACEOF
19140#define HAVE_UINTPTR_T 1
19141_ACEOF
19142
19143
19144fi
19145ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
19146if test "x$ac_cv_type_uint_t" = xyes; then :
19147
19148cat >>confdefs.h <<_ACEOF
19149#define HAVE_UINT_T 1
19150_ACEOF
19151
19152
19153fi
19154ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19155if test "x$ac_cv_type_pid_t" = xyes; then :
19156
19157cat >>confdefs.h <<_ACEOF
19158#define HAVE_PID_T 1
19159_ACEOF
19160
19161
19162fi
19163ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19164if test "x$ac_cv_type_size_t" = xyes; then :
19165
19166cat >>confdefs.h <<_ACEOF
19167#define HAVE_SIZE_T 1
19168_ACEOF
19169
19170
19171fi
19172ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19173if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19174
19175cat >>confdefs.h <<_ACEOF
19176#define HAVE_PTRDIFF_T 1
19177_ACEOF
19178
19179
19180fi
19181
19182  # The cast to long int works around a bug in the HP C Compiler
19183# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19184# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19185# This bug is HP SR number 8606223364.
19186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
19187$as_echo_n "checking size of char *... " >&6; }
19188if ${ac_cv_sizeof_char_p+:} false; then :
19189  $as_echo_n "(cached) " >&6
19190else
19191  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p"        "$ac_includes_default"; then :
19192
19193else
19194  if test "$ac_cv_type_char_p" = yes; then
19195     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19197as_fn_error 77 "cannot compute sizeof (char *)
19198See \`config.log' for more details" "$LINENO" 5; }
19199   else
19200     ac_cv_sizeof_char_p=0
19201   fi
19202fi
19203
19204fi
19205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
19206$as_echo "$ac_cv_sizeof_char_p" >&6; }
19207
19208
19209
19210cat >>confdefs.h <<_ACEOF
19211#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
19212_ACEOF
19213
19214
19215  # The cast to long int works around a bug in the HP C Compiler
19216# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19217# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19218# This bug is HP SR number 8606223364.
19219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
19220$as_echo_n "checking size of int... " >&6; }
19221if ${ac_cv_sizeof_int+:} false; then :
19222  $as_echo_n "(cached) " >&6
19223else
19224  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
19225
19226else
19227  if test "$ac_cv_type_int" = yes; then
19228     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19230as_fn_error 77 "cannot compute sizeof (int)
19231See \`config.log' for more details" "$LINENO" 5; }
19232   else
19233     ac_cv_sizeof_int=0
19234   fi
19235fi
19236
19237fi
19238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
19239$as_echo "$ac_cv_sizeof_int" >&6; }
19240
19241
19242
19243cat >>confdefs.h <<_ACEOF
19244#define SIZEOF_INT $ac_cv_sizeof_int
19245_ACEOF
19246
19247
19248  # The cast to long int works around a bug in the HP C Compiler
19249# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19250# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19251# This bug is HP SR number 8606223364.
19252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
19253$as_echo_n "checking size of long... " >&6; }
19254if ${ac_cv_sizeof_long+:} false; then :
19255  $as_echo_n "(cached) " >&6
19256else
19257  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
19258
19259else
19260  if test "$ac_cv_type_long" = yes; then
19261     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19263as_fn_error 77 "cannot compute sizeof (long)
19264See \`config.log' for more details" "$LINENO" 5; }
19265   else
19266     ac_cv_sizeof_long=0
19267   fi
19268fi
19269
19270fi
19271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
19272$as_echo "$ac_cv_sizeof_long" >&6; }
19273
19274
19275
19276cat >>confdefs.h <<_ACEOF
19277#define SIZEOF_LONG $ac_cv_sizeof_long
19278_ACEOF
19279
19280
19281  # The cast to long int works around a bug in the HP C Compiler
19282# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19283# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19284# This bug is HP SR number 8606223364.
19285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
19286$as_echo_n "checking size of short... " >&6; }
19287if ${ac_cv_sizeof_short+:} false; then :
19288  $as_echo_n "(cached) " >&6
19289else
19290  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
19291
19292else
19293  if test "$ac_cv_type_short" = yes; then
19294     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19296as_fn_error 77 "cannot compute sizeof (short)
19297See \`config.log' for more details" "$LINENO" 5; }
19298   else
19299     ac_cv_sizeof_short=0
19300   fi
19301fi
19302
19303fi
19304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
19305$as_echo "$ac_cv_sizeof_short" >&6; }
19306
19307
19308
19309cat >>confdefs.h <<_ACEOF
19310#define SIZEOF_SHORT $ac_cv_sizeof_short
19311_ACEOF
19312
19313
19314
19315  # ------------
19316  # AC_CHECK_LIB
19317  # ------------
19318  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
19319$as_echo_n "checking for pathfind in -lgen... " >&6; }
19320if ${ac_cv_lib_gen_pathfind+:} false; then :
19321  $as_echo_n "(cached) " >&6
19322else
19323  ac_check_lib_save_LIBS=$LIBS
19324LIBS="-lgen  $LIBS"
19325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19326/* end confdefs.h.  */
19327
19328/* Override any GCC internal prototype to avoid an error.
19329   Use char because int might match the return type of a GCC
19330   builtin and then its argument prototype would still apply.  */
19331#ifdef __cplusplus
19332extern "C"
19333#endif
19334char pathfind ();
19335int
19336main ()
19337{
19338return pathfind ();
19339  ;
19340  return 0;
19341}
19342_ACEOF
19343if ac_fn_c_try_link "$LINENO"; then :
19344  ac_cv_lib_gen_pathfind=yes
19345else
19346  ac_cv_lib_gen_pathfind=no
19347fi
19348rm -f core conftest.err conftest.$ac_objext \
19349    conftest$ac_exeext conftest.$ac_ext
19350LIBS=$ac_check_lib_save_LIBS
19351fi
19352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
19353$as_echo "$ac_cv_lib_gen_pathfind" >&6; }
19354if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
19355  cat >>confdefs.h <<_ACEOF
19356#define HAVE_LIBGEN 1
19357_ACEOF
19358
19359  LIBS="-lgen $LIBS"
19360
19361fi
19362
19363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
19364$as_echo_n "checking for gettext in -lintl... " >&6; }
19365if ${ac_cv_lib_intl_gettext+:} false; then :
19366  $as_echo_n "(cached) " >&6
19367else
19368  ac_check_lib_save_LIBS=$LIBS
19369LIBS="-lintl  $LIBS"
19370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19371/* end confdefs.h.  */
19372
19373/* Override any GCC internal prototype to avoid an error.
19374   Use char because int might match the return type of a GCC
19375   builtin and then its argument prototype would still apply.  */
19376#ifdef __cplusplus
19377extern "C"
19378#endif
19379char gettext ();
19380int
19381main ()
19382{
19383return gettext ();
19384  ;
19385  return 0;
19386}
19387_ACEOF
19388if ac_fn_c_try_link "$LINENO"; then :
19389  ac_cv_lib_intl_gettext=yes
19390else
19391  ac_cv_lib_intl_gettext=no
19392fi
19393rm -f core conftest.err conftest.$ac_objext \
19394    conftest$ac_exeext conftest.$ac_ext
19395LIBS=$ac_check_lib_save_LIBS
19396fi
19397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
19398$as_echo "$ac_cv_lib_intl_gettext" >&6; }
19399if test "x$ac_cv_lib_intl_gettext" = xyes; then :
19400  cat >>confdefs.h <<_ACEOF
19401#define HAVE_LIBINTL 1
19402_ACEOF
19403
19404  LIBS="-lintl $LIBS"
19405
19406fi
19407
19408  for ac_func in vprintf
19409do :
19410  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
19411if test "x$ac_cv_func_vprintf" = xyes; then :
19412  cat >>confdefs.h <<_ACEOF
19413#define HAVE_VPRINTF 1
19414_ACEOF
19415
19416ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
19417if test "x$ac_cv_func__doprnt" = xyes; then :
19418
19419$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
19420
19421fi
19422
19423fi
19424done
19425
19426
19427  for ac_header in vfork.h
19428do :
19429  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19430if test "x$ac_cv_header_vfork_h" = xyes; then :
19431  cat >>confdefs.h <<_ACEOF
19432#define HAVE_VFORK_H 1
19433_ACEOF
19434
19435fi
19436
19437done
19438
19439for ac_func in fork vfork
19440do :
19441  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19442ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19443if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19444  cat >>confdefs.h <<_ACEOF
19445#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19446_ACEOF
19447
19448fi
19449done
19450
19451if test "x$ac_cv_func_fork" = xyes; then
19452  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19453$as_echo_n "checking for working fork... " >&6; }
19454if ${ac_cv_func_fork_works+:} false; then :
19455  $as_echo_n "(cached) " >&6
19456else
19457  if test "$cross_compiling" = yes; then :
19458  ac_cv_func_fork_works=cross
19459else
19460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19461/* end confdefs.h.  */
19462$ac_includes_default
19463int
19464main ()
19465{
19466
19467	  /* By Ruediger Kuhlmann. */
19468	  return fork () < 0;
19469
19470  ;
19471  return 0;
19472}
19473_ACEOF
19474if ac_fn_c_try_run "$LINENO"; then :
19475  ac_cv_func_fork_works=yes
19476else
19477  ac_cv_func_fork_works=no
19478fi
19479rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19480  conftest.$ac_objext conftest.beam conftest.$ac_ext
19481fi
19482
19483fi
19484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19485$as_echo "$ac_cv_func_fork_works" >&6; }
19486
19487else
19488  ac_cv_func_fork_works=$ac_cv_func_fork
19489fi
19490if test "x$ac_cv_func_fork_works" = xcross; then
19491  case $host in
19492    *-*-amigaos* | *-*-msdosdjgpp*)
19493      # Override, as these systems have only a dummy fork() stub
19494      ac_cv_func_fork_works=no
19495      ;;
19496    *)
19497      ac_cv_func_fork_works=yes
19498      ;;
19499  esac
19500  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19501$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19502fi
19503ac_cv_func_vfork_works=$ac_cv_func_vfork
19504if test "x$ac_cv_func_vfork" = xyes; then
19505  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19506$as_echo_n "checking for working vfork... " >&6; }
19507if ${ac_cv_func_vfork_works+:} false; then :
19508  $as_echo_n "(cached) " >&6
19509else
19510  if test "$cross_compiling" = yes; then :
19511  ac_cv_func_vfork_works=cross
19512else
19513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19514/* end confdefs.h.  */
19515/* Thanks to Paul Eggert for this test.  */
19516$ac_includes_default
19517#include <sys/wait.h>
19518#ifdef HAVE_VFORK_H
19519# include <vfork.h>
19520#endif
19521/* On some sparc systems, changes by the child to local and incoming
19522   argument registers are propagated back to the parent.  The compiler
19523   is told about this with #include <vfork.h>, but some compilers
19524   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
19525   static variable whose address is put into a register that is
19526   clobbered by the vfork.  */
19527static void
19528#ifdef __cplusplus
19529sparc_address_test (int arg)
19530# else
19531sparc_address_test (arg) int arg;
19532#endif
19533{
19534  static pid_t child;
19535  if (!child) {
19536    child = vfork ();
19537    if (child < 0) {
19538      perror ("vfork");
19539      _exit(2);
19540    }
19541    if (!child) {
19542      arg = getpid();
19543      write(-1, "", 0);
19544      _exit (arg);
19545    }
19546  }
19547}
19548
19549int
19550main ()
19551{
19552  pid_t parent = getpid ();
19553  pid_t child;
19554
19555  sparc_address_test (0);
19556
19557  child = vfork ();
19558
19559  if (child == 0) {
19560    /* Here is another test for sparc vfork register problems.  This
19561       test uses lots of local variables, at least as many local
19562       variables as main has allocated so far including compiler
19563       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
19564       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
19565       reuse the register of parent for one of the local variables,
19566       since it will think that parent can't possibly be used any more
19567       in this routine.  Assigning to the local variable will thus
19568       munge parent in the parent process.  */
19569    pid_t
19570      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19571      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19572    /* Convince the compiler that p..p7 are live; otherwise, it might
19573       use the same hardware register for all 8 local variables.  */
19574    if (p != p1 || p != p2 || p != p3 || p != p4
19575	|| p != p5 || p != p6 || p != p7)
19576      _exit(1);
19577
19578    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19579       from child file descriptors.  If the child closes a descriptor
19580       before it execs or exits, this munges the parent's descriptor
19581       as well.  Test for this by closing stdout in the child.  */
19582    _exit(close(fileno(stdout)) != 0);
19583  } else {
19584    int status;
19585    struct stat st;
19586
19587    while (wait(&status) != child)
19588      ;
19589    return (
19590	 /* Was there some problem with vforking?  */
19591	 child < 0
19592
19593	 /* Did the child fail?  (This shouldn't happen.)  */
19594	 || status
19595
19596	 /* Did the vfork/compiler bug occur?  */
19597	 || parent != getpid()
19598
19599	 /* Did the file descriptor bug occur?  */
19600	 || fstat(fileno(stdout), &st) != 0
19601	 );
19602  }
19603}
19604_ACEOF
19605if ac_fn_c_try_run "$LINENO"; then :
19606  ac_cv_func_vfork_works=yes
19607else
19608  ac_cv_func_vfork_works=no
19609fi
19610rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19611  conftest.$ac_objext conftest.beam conftest.$ac_ext
19612fi
19613
19614fi
19615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19616$as_echo "$ac_cv_func_vfork_works" >&6; }
19617
19618fi;
19619if test "x$ac_cv_func_fork_works" = xcross; then
19620  ac_cv_func_vfork_works=$ac_cv_func_vfork
19621  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19622$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19623fi
19624
19625if test "x$ac_cv_func_vfork_works" = xyes; then
19626
19627$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19628
19629else
19630
19631$as_echo "#define vfork fork" >>confdefs.h
19632
19633fi
19634if test "x$ac_cv_func_fork_works" = xyes; then
19635
19636$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19637
19638fi
19639
19640  for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
19641                 strrchr strsignal fchmod fstat chmod
19642do :
19643  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19644ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19645if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19646  cat >>confdefs.h <<_ACEOF
19647#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19648_ACEOF
19649
19650fi
19651done
19652
19653  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
19654$as_echo_n "checking for a sed that does not truncate output... " >&6; }
19655if ${ac_cv_path_SED+:} false; then :
19656  $as_echo_n "(cached) " >&6
19657else
19658            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
19659     for ac_i in 1 2 3 4 5 6 7; do
19660       ac_script="$ac_script$as_nl$ac_script"
19661     done
19662     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
19663     { ac_script=; unset ac_script;}
19664     if test -z "$SED"; then
19665  ac_path_SED_found=false
19666  # Loop through the user's path and test for each of PROGNAME-LIST
19667  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19668for as_dir in $PATH
19669do
19670  IFS=$as_save_IFS
19671  test -z "$as_dir" && as_dir=.
19672    for ac_prog in sed gsed; do
19673    for ac_exec_ext in '' $ac_executable_extensions; do
19674      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
19675      as_fn_executable_p "$ac_path_SED" || continue
19676# Check for GNU ac_path_SED and select it if it is found.
19677  # Check for GNU $ac_path_SED
19678case `"$ac_path_SED" --version 2>&1` in
19679*GNU*)
19680  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
19681*)
19682  ac_count=0
19683  $as_echo_n 0123456789 >"conftest.in"
19684  while :
19685  do
19686    cat "conftest.in" "conftest.in" >"conftest.tmp"
19687    mv "conftest.tmp" "conftest.in"
19688    cp "conftest.in" "conftest.nl"
19689    $as_echo '' >> "conftest.nl"
19690    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
19691    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
19692    as_fn_arith $ac_count + 1 && ac_count=$as_val
19693    if test $ac_count -gt ${ac_path_SED_max-0}; then
19694      # Best one so far, save it but keep looking for a better one
19695      ac_cv_path_SED="$ac_path_SED"
19696      ac_path_SED_max=$ac_count
19697    fi
19698    # 10*(2^10) chars as input seems more than enough
19699    test $ac_count -gt 10 && break
19700  done
19701  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
19702esac
19703
19704      $ac_path_SED_found && break 3
19705    done
19706  done
19707  done
19708IFS=$as_save_IFS
19709  if test -z "$ac_cv_path_SED"; then
19710    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
19711  fi
19712else
19713  ac_cv_path_SED=$SED
19714fi
19715
19716fi
19717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
19718$as_echo "$ac_cv_path_SED" >&6; }
19719 SED="$ac_cv_path_SED"
19720  rm -f conftest.sed
19721
19722  while :
19723  do
19724      POSIX_SHELL=`which bash`
19725      test -x "$POSIX_SHELL" && break
19726      POSIX_SHELL=`which dash`
19727      test -x "$POSIX_SHELL" && break
19728      POSIX_SHELL=/usr/xpg4/bin/sh
19729      test -x "$POSIX_SHELL" && break
19730      POSIX_SHELL=`/bin/sh -c '
19731          exec 2>/dev/null
19732          if ! true ; then exit 1 ; fi
19733          echo /bin/sh'`
19734      test -x "$POSIX_SHELL" && break
19735      as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
19736  done
19737
19738cat >>confdefs.h <<_ACEOF
19739#define POSIX_SHELL "${POSIX_SHELL}"
19740_ACEOF
19741
19742
19743
19744
19745
19746  LIBOPTS_BUILD_BLOCKED=true
19747
19748
19749  NEED_LIBOPTS_DIR=''
19750
19751  # Check whether --enable-local-libopts was given.
19752if test "${enable_local_libopts+set}" = set; then :
19753  enableval=$enable_local_libopts;
19754    if test x$enableval = xyes ; then
19755       { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
19756$as_echo "$as_me: Using supplied libopts tearoff" >&6;}
19757       LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
19758       NEED_LIBOPTS_DIR=true
19759       LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
19760    fi
19761fi
19762
19763
19764  # Check whether --enable-libopts-install was given.
19765if test "${enable_libopts_install+set}" = set; then :
19766  enableval=$enable_libopts_install;
19767fi
19768
19769   if test "X${enable_libopts_install}" = Xyes; then
19770  INSTALL_LIBOPTS_TRUE=
19771  INSTALL_LIBOPTS_FALSE='#'
19772else
19773  INSTALL_LIBOPTS_TRUE='#'
19774  INSTALL_LIBOPTS_FALSE=
19775fi
19776
19777
19778  if test -z "${NEED_LIBOPTS_DIR}" ; then
19779     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
19780$as_echo_n "checking whether autoopts-config can be found... " >&6; }
19781
19782# Check whether --with-autoopts-config was given.
19783if test "${with_autoopts_config+set}" = set; then :
19784  withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
19785else
19786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
19787$as_echo_n "checking whether autoopts-config is specified... " >&6; }
19788if ${lo_cv_with_autoopts_config+:} false; then :
19789  $as_echo_n "(cached) " >&6
19790else
19791  if autoopts-config --help 2>/dev/null 1>&2
19792        then lo_cv_with_autoopts_config=autoopts-config
19793        elif libopts-config --help 2>/dev/null 1>&2
19794        then lo_cv_with_autoopts_config=libopts-config
19795        else lo_cv_with_autoopts_config=no ; fi
19796fi
19797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
19798$as_echo "$lo_cv_with_autoopts_config" >&6; }
19799
19800fi
19801 # end of AC_ARG_WITH
19802
19803     if ${lo_cv_test_autoopts+:} false; then :
19804  $as_echo_n "(cached) " >&6
19805else
19806
19807        if test -z "${lo_cv_with_autoopts_config}" \
19808                -o X"${lo_cv_with_autoopts_config}" = Xno
19809        then
19810           if autoopts-config --help 2>/dev/null 1>&2
19811           then lo_cv_with_autoopts_config=autoopts-config
19812           elif libopts-config --help 2>/dev/null 1>&2
19813           then lo_cv_with_autoopts_config=libopts-config
19814           else lo_cv_with_autoopts_config=false ; fi
19815        fi
19816        lo_cv_test_autoopts=`
19817            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
19818        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
19819        then lo_cv_test_autoopts=no ; fi
19820
19821fi
19822 # end of CACHE_VAL
19823     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
19824$as_echo "${lo_cv_test_autoopts}" >&6; }
19825
19826     if test "X${lo_cv_test_autoopts}" != Xno
19827     then
19828        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
19829        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
19830     else
19831        LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
19832        LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
19833        NEED_LIBOPTS_DIR=true
19834     fi
19835  fi # end of if test -z "${NEED_LIBOPTS_DIR}"
19836  if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
19837    NEED_LIBOPTS_DIR=''
19838  fi
19839   if test -n "${NEED_LIBOPTS_DIR}"; then
19840  NEED_LIBOPTS_TRUE=
19841  NEED_LIBOPTS_FALSE='#'
19842else
19843  NEED_LIBOPTS_TRUE='#'
19844  NEED_LIBOPTS_FALSE=
19845fi
19846
19847
19848
19849  LIBOPTS_DIR=sntp/libopts
19850
19851
19852# end of AC_DEFUN of LIBOPTS_CHECK_COMMON
19853
19854  # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD
19855
19856
19857
19858
19859ntp_pkgconfig_min_version='0.15.0'
19860if test -n "$ac_tool_prefix"; then
19861  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19862set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19864$as_echo_n "checking for $ac_word... " >&6; }
19865if ${ac_cv_path_PKG_CONFIG+:} false; then :
19866  $as_echo_n "(cached) " >&6
19867else
19868  case $PKG_CONFIG in
19869  [\\/]* | ?:[\\/]*)
19870  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19871  ;;
19872  *)
19873  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19874for as_dir in $PATH
19875do
19876  IFS=$as_save_IFS
19877  test -z "$as_dir" && as_dir=.
19878    for ac_exec_ext in '' $ac_executable_extensions; do
19879  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19880    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19881    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19882    break 2
19883  fi
19884done
19885  done
19886IFS=$as_save_IFS
19887
19888  ;;
19889esac
19890fi
19891PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19892if test -n "$PKG_CONFIG"; then
19893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19894$as_echo "$PKG_CONFIG" >&6; }
19895else
19896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19897$as_echo "no" >&6; }
19898fi
19899
19900
19901fi
19902if test -z "$ac_cv_path_PKG_CONFIG"; then
19903  ac_pt_PKG_CONFIG=$PKG_CONFIG
19904  # Extract the first word of "pkg-config", so it can be a program name with args.
19905set dummy pkg-config; ac_word=$2
19906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19907$as_echo_n "checking for $ac_word... " >&6; }
19908if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19909  $as_echo_n "(cached) " >&6
19910else
19911  case $ac_pt_PKG_CONFIG in
19912  [\\/]* | ?:[\\/]*)
19913  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19914  ;;
19915  *)
19916  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19917for as_dir in $PATH
19918do
19919  IFS=$as_save_IFS
19920  test -z "$as_dir" && as_dir=.
19921    for ac_exec_ext in '' $ac_executable_extensions; do
19922  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19923    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19924    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19925    break 2
19926  fi
19927done
19928  done
19929IFS=$as_save_IFS
19930
19931  ;;
19932esac
19933fi
19934ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19935if test -n "$ac_pt_PKG_CONFIG"; then
19936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19937$as_echo "$ac_pt_PKG_CONFIG" >&6; }
19938else
19939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19940$as_echo "no" >&6; }
19941fi
19942
19943  if test "x$ac_pt_PKG_CONFIG" = x; then
19944    PKG_CONFIG=""
19945  else
19946    case $cross_compiling:$ac_tool_warned in
19947yes:)
19948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19950ac_tool_warned=yes ;;
19951esac
19952    PKG_CONFIG=$ac_pt_PKG_CONFIG
19953  fi
19954else
19955  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19956fi
19957
19958{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
19959{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
19960
19961case "$PKG_CONFIG" in
19962 /*)
19963    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
19964$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
19965    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
19966	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19967$as_echo "yes" >&6; }
19968    else
19969	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19970$as_echo "no" >&6; }
19971	PKG_CONFIG=""
19972    fi
19973    ;;
19974esac
19975
19976
19977
19978
19979# Check whether --enable-local-libevent was given.
19980if test "${enable_local_libevent+set}" = set; then :
19981  enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
19982else
19983  ntp_use_local_libevent=${ntp_use_local_libevent-detect}
19984
19985fi
19986
19987
19988
19989
19990
19991ntp_libevent_min_version=2
19992ntp_libevent_tearoff=sntp/libevent
19993
19994
19995
19996
19997
19998case "$ntp_use_local_libevent" in
19999 yes)
20000    ;;
20001 *) # If we have (a good enough) pkg-config, see if it can find libevent
20002    case "$PKG_CONFIG" in
20003     /*)
20004	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
20005$as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
20006	if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
20007	then
20008	    ntp_use_local_libevent=no
20009	    { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5
20010$as_echo "$as_me: Using the installed libevent" >&6;}
20011	    CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
20012	    CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
20013	    # HMS: I hope the following is accurate.
20014	    # We don't need -levent, we only need  -levent_core.
20015	    # While we could grab only the -L stuff, there *might* be
20016	    # other flags there we want.  Originally we just removed -levent
20017	    # but then somebody decided to install -levent-2.0
20018	    # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
20019	    # So now we dance...
20020	    LDADD_LIBEVENT=
20021	    for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
20022	    do
20023		case "$i" in
20024		 -D*) ;;
20025		 -levent*) ;;
20026		 *) case "$LDADD_LIBEVENT" in
20027		     '') LDADD_LIBEVENT="$i" ;;
20028		     *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
20029		    esac
20030		    ;;
20031		esac
20032	    done
20033	    case "$LIBISC_PTHREADS_NOTHREADS" in
20034	     pthreads)
20035		LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
20036	    esac
20037	    LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
20038	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20039$as_echo "yes" >&6; }
20040	else
20041	    ntp_use_local_libevent=yes
20042	    # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
20043	    # is "pthreads"?
20044	    CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
20045	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20046$as_echo "no" >&6; }
20047	fi
20048	;;
20049     *)
20050	ntp_use_local_libevent=yes
20051	;;
20052    esac
20053    ;;
20054esac
20055
20056case "$ntp_use_local_libevent" in
20057 yes)
20058    { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
20059$as_echo "$as_me: Using libevent tearoff" >&6;}
20060    CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
20061    case "$LIBISC_PTHREADS_NOTHREADS" in
20062     pthreads)
20063	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
20064	;;
20065     *)
20066	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
20067    esac
20068esac
20069
20070
20071 if test "x$ntp_use_local_libevent" = "xyes"; then
20072  BUILD_LIBEVENT_TRUE=
20073  BUILD_LIBEVENT_FALSE='#'
20074else
20075  BUILD_LIBEVENT_TRUE='#'
20076  BUILD_LIBEVENT_FALSE=
20077fi
20078
20079
20080
20081
20082
20083
20084# Expose a cross-compilation indicator to makefiles
20085 if test $build != $host; then
20086  NTP_CROSSCOMPILE_TRUE=
20087  NTP_CROSSCOMPILE_FALSE='#'
20088else
20089  NTP_CROSSCOMPILE_TRUE='#'
20090  NTP_CROSSCOMPILE_FALSE=
20091fi
20092
20093
20094
20095ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20096if test "x$ac_cv_type_size_t" = xyes; then :
20097
20098else
20099
20100cat >>confdefs.h <<_ACEOF
20101#define size_t unsigned int
20102_ACEOF
20103
20104fi
20105
20106
20107            # Check whether --enable-c99-snprintf was given.
20108if test "${enable_c99_snprintf+set}" = set; then :
20109  enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
20110else
20111  force_c99_snprintf=no
20112
20113fi
20114
20115    case "$force_c99_snprintf" in
20116     yes)
20117	hw_force_rpl_snprintf=yes
20118	hw_force_rpl_vsnprintf=yes
20119    esac
20120
20121
20122
20123
20124
20125
20126  for ac_header in $ac_header_list
20127do :
20128  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20129ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20130"
20131if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20132  cat >>confdefs.h <<_ACEOF
20133#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20134_ACEOF
20135
20136fi
20137
20138done
20139
20140
20141
20142
20143
20144
20145
20146  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
20147$as_echo_n "checking for unsigned long long int... " >&6; }
20148if ${ac_cv_type_unsigned_long_long_int+:} false; then :
20149  $as_echo_n "(cached) " >&6
20150else
20151  ac_cv_type_unsigned_long_long_int=yes
20152     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20153       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20154/* end confdefs.h.  */
20155
20156  /* For now, do not test the preprocessor; as of 2007 there are too many
20157	 implementations with broken preprocessors.  Perhaps this can
20158	 be revisited in 2012.  In the meantime, code should not expect
20159	 #if to work with literals wider than 32 bits.  */
20160      /* Test literals.  */
20161      long long int ll = 9223372036854775807ll;
20162      long long int nll = -9223372036854775807LL;
20163      unsigned long long int ull = 18446744073709551615ULL;
20164      /* Test constant expressions.   */
20165      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20166		     ? 1 : -1)];
20167      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20168		     ? 1 : -1)];
20169      int i = 63;
20170int
20171main ()
20172{
20173/* Test availability of runtime routines for shift and division.  */
20174      long long int llmax = 9223372036854775807ll;
20175      unsigned long long int ullmax = 18446744073709551615ull;
20176      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20177	      | (llmax / ll) | (llmax % ll)
20178	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20179	      | (ullmax / ull) | (ullmax % ull));
20180  ;
20181  return 0;
20182}
20183
20184_ACEOF
20185if ac_fn_c_try_link "$LINENO"; then :
20186
20187else
20188  ac_cv_type_unsigned_long_long_int=no
20189fi
20190rm -f core conftest.err conftest.$ac_objext \
20191    conftest$ac_exeext conftest.$ac_ext
20192     fi
20193fi
20194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
20195$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
20196  if test $ac_cv_type_unsigned_long_long_int = yes; then
20197
20198$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
20199
20200  fi
20201
20202
20203      ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
20204if test "x$ac_cv_func_vsnprintf" = xyes; then :
20205  hw_cv_func_vsnprintf=yes
20206else
20207  hw_cv_func_vsnprintf=no
20208fi
20209
20210  if test "$hw_cv_func_vsnprintf" = yes; then :
20211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
20212$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
20213if ${hw_cv_func_vsnprintf_c99+:} false; then :
20214  $as_echo_n "(cached) " >&6
20215else
20216  if test "$cross_compiling" = yes; then :
20217  hw_cv_func_vsnprintf_c99=no
20218else
20219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20220/* end confdefs.h.  */
20221#if HAVE_STDARG_H
20222          #include <stdarg.h>
20223          #endif
20224          #include <stdio.h>
20225          static int testprintf(char *buf, size_t size, const char *format, ...)
20226          {
20227            int result;
20228            va_list ap;
20229            va_start(ap, format);
20230            result = vsnprintf(buf, size, format, ap);
20231            va_end(ap);
20232            return result;
20233          }
20234int
20235main ()
20236{
20237char buf[43];
20238          if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
20239              testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
20240              buf[0] != 'T' || buf[3] != '\0')
20241            return 1;
20242  ;
20243  return 0;
20244}
20245_ACEOF
20246if ac_fn_c_try_run "$LINENO"; then :
20247  hw_cv_func_vsnprintf_c99=yes
20248else
20249  hw_cv_func_vsnprintf_c99=no
20250fi
20251rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20252  conftest.$ac_objext conftest.beam conftest.$ac_ext
20253fi
20254
20255fi
20256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
20257$as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
20258else
20259  hw_cv_func_vsnprintf_c99=no
20260fi
20261
20262$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
20263
20264  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
20265$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
20266  if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
20267  hw_use_rpl_vsnprintf=yes
20268else
20269  hw_use_rpl_vsnprintf=no
20270fi
20271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
20272$as_echo "$hw_use_rpl_vsnprintf" >&6; }
20273  if test "$hw_use_rpl_vsnprintf" = yes; then :
20274
20275$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
20276
20277    if test ${hw_nodef_vsnprintf=no} = no; then :
20278
20279$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
20280
20281fi
20282    for ac_header in inttypes.h locale.h stddef.h stdint.h
20283do :
20284  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20285ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20286if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20287  cat >>confdefs.h <<_ACEOF
20288#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20289_ACEOF
20290
20291fi
20292
20293done
20294
20295    ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
20296"
20297if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
20298
20299cat >>confdefs.h <<_ACEOF
20300#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
20301_ACEOF
20302
20303
20304fi
20305ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
20306"
20307if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
20308
20309cat >>confdefs.h <<_ACEOF
20310#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
20311_ACEOF
20312
20313
20314fi
20315
20316
20317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
20318$as_echo_n "checking for long double... " >&6; }
20319if ${ac_cv_type_long_double+:} false; then :
20320  $as_echo_n "(cached) " >&6
20321else
20322  if test "$GCC" = yes; then
20323       ac_cv_type_long_double=yes
20324     else
20325       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20326/* end confdefs.h.  */
20327/* The Stardent Vistra knows sizeof (long double), but does
20328		 not support it.  */
20329	      long double foo = 0.0L;
20330int
20331main ()
20332{
20333static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
20334	      sizeof (double) <= sizeof (long double))];
20335test_array [0] = 0;
20336return test_array [0];
20337
20338  ;
20339  return 0;
20340}
20341_ACEOF
20342if ac_fn_c_try_compile "$LINENO"; then :
20343  ac_cv_type_long_double=yes
20344else
20345  ac_cv_type_long_double=no
20346fi
20347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20348     fi
20349fi
20350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
20351$as_echo "$ac_cv_type_long_double" >&6; }
20352  if test $ac_cv_type_long_double = yes; then
20353
20354$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
20355
20356  fi
20357
20358
20359
20360  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
20361$as_echo_n "checking for long long int... " >&6; }
20362if ${ac_cv_type_long_long_int+:} false; then :
20363  $as_echo_n "(cached) " >&6
20364else
20365  ac_cv_type_long_long_int=yes
20366      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20367	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
20368	if test $ac_cv_type_long_long_int = yes; then
20369	  	  	  	  if test "$cross_compiling" = yes; then :
20370  :
20371else
20372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20373/* end confdefs.h.  */
20374#include <limits.h>
20375		 #ifndef LLONG_MAX
20376		 # define HALF \
20377			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
20378		 # define LLONG_MAX (HALF - 1 + HALF)
20379		 #endif
20380int
20381main ()
20382{
20383long long int n = 1;
20384		 int i;
20385		 for (i = 0; ; i++)
20386		   {
20387		     long long int m = n << i;
20388		     if (m >> i != n)
20389		       return 1;
20390		     if (LLONG_MAX / 2 < m)
20391		       break;
20392		   }
20393		 return 0;
20394  ;
20395  return 0;
20396}
20397_ACEOF
20398if ac_fn_c_try_run "$LINENO"; then :
20399
20400else
20401  ac_cv_type_long_long_int=no
20402fi
20403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20404  conftest.$ac_objext conftest.beam conftest.$ac_ext
20405fi
20406
20407	fi
20408      fi
20409fi
20410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
20411$as_echo "$ac_cv_type_long_long_int" >&6; }
20412  if test $ac_cv_type_long_long_int = yes; then
20413
20414$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
20415
20416  fi
20417
20418
20419  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
20420$as_echo_n "checking for unsigned long long int... " >&6; }
20421if ${ac_cv_type_unsigned_long_long_int+:} false; then :
20422  $as_echo_n "(cached) " >&6
20423else
20424  ac_cv_type_unsigned_long_long_int=yes
20425     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20426       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20427/* end confdefs.h.  */
20428
20429  /* For now, do not test the preprocessor; as of 2007 there are too many
20430	 implementations with broken preprocessors.  Perhaps this can
20431	 be revisited in 2012.  In the meantime, code should not expect
20432	 #if to work with literals wider than 32 bits.  */
20433      /* Test literals.  */
20434      long long int ll = 9223372036854775807ll;
20435      long long int nll = -9223372036854775807LL;
20436      unsigned long long int ull = 18446744073709551615ULL;
20437      /* Test constant expressions.   */
20438      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20439		     ? 1 : -1)];
20440      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20441		     ? 1 : -1)];
20442      int i = 63;
20443int
20444main ()
20445{
20446/* Test availability of runtime routines for shift and division.  */
20447      long long int llmax = 9223372036854775807ll;
20448      unsigned long long int ullmax = 18446744073709551615ull;
20449      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20450	      | (llmax / ll) | (llmax % ll)
20451	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20452	      | (ullmax / ull) | (ullmax % ull));
20453  ;
20454  return 0;
20455}
20456
20457_ACEOF
20458if ac_fn_c_try_link "$LINENO"; then :
20459
20460else
20461  ac_cv_type_unsigned_long_long_int=no
20462fi
20463rm -f core conftest.err conftest.$ac_objext \
20464    conftest$ac_exeext conftest.$ac_ext
20465     fi
20466fi
20467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
20468$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
20469  if test $ac_cv_type_unsigned_long_long_int = yes; then
20470
20471$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
20472
20473  fi
20474
20475    ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20476if test "x$ac_cv_type_size_t" = xyes; then :
20477
20478else
20479
20480cat >>confdefs.h <<_ACEOF
20481#define size_t unsigned int
20482_ACEOF
20483
20484fi
20485
20486
20487
20488  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
20489if test "x$ac_cv_type_intmax_t" = xyes; then :
20490
20491$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
20492
20493else
20494  test $ac_cv_type_long_long_int = yes \
20495       && ac_type='long long int' \
20496       || ac_type='long int'
20497
20498cat >>confdefs.h <<_ACEOF
20499#define intmax_t $ac_type
20500_ACEOF
20501
20502fi
20503
20504
20505
20506
20507  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
20508if test "x$ac_cv_type_uintmax_t" = xyes; then :
20509
20510$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20511
20512else
20513  test $ac_cv_type_unsigned_long_long_int = yes \
20514       && ac_type='unsigned long long int' \
20515       || ac_type='unsigned long int'
20516
20517cat >>confdefs.h <<_ACEOF
20518#define uintmax_t $ac_type
20519_ACEOF
20520
20521fi
20522
20523
20524
20525  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
20526if test "x$ac_cv_type_uintptr_t" = xyes; then :
20527
20528$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
20529
20530else
20531  for ac_type in 'unsigned int' 'unsigned long int' \
20532	'unsigned long long int'; do
20533       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20534/* end confdefs.h.  */
20535$ac_includes_default
20536int
20537main ()
20538{
20539static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
20540test_array [0] = 0;
20541return test_array [0];
20542
20543  ;
20544  return 0;
20545}
20546_ACEOF
20547if ac_fn_c_try_compile "$LINENO"; then :
20548
20549cat >>confdefs.h <<_ACEOF
20550#define uintptr_t $ac_type
20551_ACEOF
20552
20553	  ac_type=
20554fi
20555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20556       test -z "$ac_type" && break
20557     done
20558fi
20559
20560
20561    ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20562if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20563
20564cat >>confdefs.h <<_ACEOF
20565#define HAVE_PTRDIFF_T 1
20566_ACEOF
20567
20568
20569fi
20570
20571    for ac_func in localeconv
20572do :
20573  ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
20574if test "x$ac_cv_func_localeconv" = xyes; then :
20575  cat >>confdefs.h <<_ACEOF
20576#define HAVE_LOCALECONV 1
20577_ACEOF
20578
20579fi
20580done
20581
20582
20583  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
20584  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20585$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20586if ${ac_cv_c_const+:} false; then :
20587  $as_echo_n "(cached) " >&6
20588else
20589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20590/* end confdefs.h.  */
20591
20592int
20593main ()
20594{
20595
20596#ifndef __cplusplus
20597  /* Ultrix mips cc rejects this sort of thing.  */
20598  typedef int charset[2];
20599  const charset cs = { 0, 0 };
20600  /* SunOS 4.1.1 cc rejects this.  */
20601  char const *const *pcpcc;
20602  char **ppc;
20603  /* NEC SVR4.0.2 mips cc rejects this.  */
20604  struct point {int x, y;};
20605  static struct point const zero = {0,0};
20606  /* AIX XL C 1.02.0.0 rejects this.
20607     It does not let you subtract one const X* pointer from another in
20608     an arm of an if-expression whose if-part is not a constant
20609     expression */
20610  const char *g = "string";
20611  pcpcc = &g + (g ? g-g : 0);
20612  /* HPUX 7.0 cc rejects these. */
20613  ++pcpcc;
20614  ppc = (char**) pcpcc;
20615  pcpcc = (char const *const *) ppc;
20616  { /* SCO 3.2v4 cc rejects this sort of thing.  */
20617    char tx;
20618    char *t = &tx;
20619    char const *s = 0 ? (char *) 0 : (char const *) 0;
20620
20621    *t++ = 0;
20622    if (s) return 0;
20623  }
20624  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20625    int x[] = {25, 17};
20626    const int *foo = &x[0];
20627    ++foo;
20628  }
20629  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20630    typedef const int *iptr;
20631    iptr p = 0;
20632    ++p;
20633  }
20634  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20635       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20636    struct s { int j; const int *ap[3]; } bx;
20637    struct s *b = &bx; b->j = 5;
20638  }
20639  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20640    const int foo = 10;
20641    if (!foo) return 0;
20642  }
20643  return !cs[0] && !zero.x;
20644#endif
20645
20646  ;
20647  return 0;
20648}
20649_ACEOF
20650if ac_fn_c_try_compile "$LINENO"; then :
20651  ac_cv_c_const=yes
20652else
20653  ac_cv_c_const=no
20654fi
20655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20656fi
20657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20658$as_echo "$ac_cv_c_const" >&6; }
20659if test $ac_cv_c_const = no; then
20660
20661$as_echo "#define const /**/" >>confdefs.h
20662
20663fi
20664
20665
20666
20667
20668    case " $LIBOBJS " in
20669  *" snprintf.$ac_objext "* ) ;;
20670  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20671 ;;
20672esac
20673
20674    _hw_cv_func_xprintf_replace_done=yes
20675fi
20676
20677fi
20678
20679
20680    ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20681if test "x$ac_cv_func_snprintf" = xyes; then :
20682  hw_cv_func_snprintf=yes
20683else
20684  hw_cv_func_snprintf=no
20685fi
20686
20687  if test "$hw_cv_func_snprintf" = yes; then :
20688  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
20689$as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
20690if ${hw_cv_func_snprintf_c99+:} false; then :
20691  $as_echo_n "(cached) " >&6
20692else
20693  if test "$cross_compiling" = yes; then :
20694  hw_cv_func_snprintf_c99=no
20695else
20696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20697/* end confdefs.h.  */
20698#include <stdio.h>
20699int
20700main ()
20701{
20702char buf[43];
20703          if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
20704              snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
20705              buf[0] != 'T' || buf[3] != '\0')
20706            return 1;
20707  ;
20708  return 0;
20709}
20710_ACEOF
20711if ac_fn_c_try_run "$LINENO"; then :
20712  hw_cv_func_snprintf_c99=yes
20713else
20714  hw_cv_func_snprintf_c99=no
20715fi
20716rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20717  conftest.$ac_objext conftest.beam conftest.$ac_ext
20718fi
20719
20720fi
20721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
20722$as_echo "$hw_cv_func_snprintf_c99" >&6; }
20723else
20724  hw_cv_func_snprintf_c99=no
20725fi
20726
20727$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20728
20729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
20730$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
20731  if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
20732  hw_use_rpl_snprintf=yes
20733else
20734  hw_use_rpl_snprintf=no
20735fi
20736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
20737$as_echo "$hw_use_rpl_snprintf" >&6; }
20738  if test "$hw_use_rpl_snprintf" = yes; then :
20739
20740$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
20741
20742    if test ${hw_nodef_snprintf=no} = no; then :
20743
20744$as_echo "#define snprintf rpl_snprintf" >>confdefs.h
20745
20746fi
20747
20748  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
20749  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20750$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20751if ${ac_cv_c_const+:} false; then :
20752  $as_echo_n "(cached) " >&6
20753else
20754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20755/* end confdefs.h.  */
20756
20757int
20758main ()
20759{
20760
20761#ifndef __cplusplus
20762  /* Ultrix mips cc rejects this sort of thing.  */
20763  typedef int charset[2];
20764  const charset cs = { 0, 0 };
20765  /* SunOS 4.1.1 cc rejects this.  */
20766  char const *const *pcpcc;
20767  char **ppc;
20768  /* NEC SVR4.0.2 mips cc rejects this.  */
20769  struct point {int x, y;};
20770  static struct point const zero = {0,0};
20771  /* AIX XL C 1.02.0.0 rejects this.
20772     It does not let you subtract one const X* pointer from another in
20773     an arm of an if-expression whose if-part is not a constant
20774     expression */
20775  const char *g = "string";
20776  pcpcc = &g + (g ? g-g : 0);
20777  /* HPUX 7.0 cc rejects these. */
20778  ++pcpcc;
20779  ppc = (char**) pcpcc;
20780  pcpcc = (char const *const *) ppc;
20781  { /* SCO 3.2v4 cc rejects this sort of thing.  */
20782    char tx;
20783    char *t = &tx;
20784    char const *s = 0 ? (char *) 0 : (char const *) 0;
20785
20786    *t++ = 0;
20787    if (s) return 0;
20788  }
20789  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20790    int x[] = {25, 17};
20791    const int *foo = &x[0];
20792    ++foo;
20793  }
20794  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20795    typedef const int *iptr;
20796    iptr p = 0;
20797    ++p;
20798  }
20799  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20800       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20801    struct s { int j; const int *ap[3]; } bx;
20802    struct s *b = &bx; b->j = 5;
20803  }
20804  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20805    const int foo = 10;
20806    if (!foo) return 0;
20807  }
20808  return !cs[0] && !zero.x;
20809#endif
20810
20811  ;
20812  return 0;
20813}
20814_ACEOF
20815if ac_fn_c_try_compile "$LINENO"; then :
20816  ac_cv_c_const=yes
20817else
20818  ac_cv_c_const=no
20819fi
20820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20821fi
20822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20823$as_echo "$ac_cv_c_const" >&6; }
20824if test $ac_cv_c_const = no; then
20825
20826$as_echo "#define const /**/" >>confdefs.h
20827
20828fi
20829
20830
20831
20832
20833    case " $LIBOBJS " in
20834  *" snprintf.$ac_objext "* ) ;;
20835  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20836 ;;
20837esac
20838
20839    _hw_cv_func_xprintf_replace_done=yes
20840fi
20841
20842fi
20843
20844
20845
20846
20847
20848# HMS: Save $LIBS and empty it.
20849# any LIBS we add here should go in to LDADD_LIBNTP
20850
20851__LIBS=$LIBS
20852LIBS=
20853
20854
20855
20856# [Bug 2332] because we need to know if we are using GNU ld...
20857
20858
20859# Check whether --with-gnu-ld was given.
20860if test "${with_gnu_ld+set}" = set; then :
20861  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20862else
20863  with_gnu_ld=no
20864fi
20865
20866ac_prog=ld
20867if test "$GCC" = yes; then
20868  # Check if gcc -print-prog-name=ld gives a path.
20869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20870$as_echo_n "checking for ld used by $CC... " >&6; }
20871  case $host in
20872  *-*-mingw*)
20873    # gcc leaves a trailing carriage return which upsets mingw
20874    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20875  *)
20876    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20877  esac
20878  case $ac_prog in
20879    # Accept absolute paths.
20880    [\\/]* | ?:[\\/]*)
20881      re_direlt='/[^/][^/]*/\.\./'
20882      # Canonicalize the pathname of ld
20883      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20884      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20885	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20886      done
20887      test -z "$LD" && LD="$ac_prog"
20888      ;;
20889  "")
20890    # If it fails, then pretend we aren't using GCC.
20891    ac_prog=ld
20892    ;;
20893  *)
20894    # If it is relative, then search for the first ld in PATH.
20895    with_gnu_ld=unknown
20896    ;;
20897  esac
20898elif test "$with_gnu_ld" = yes; then
20899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20900$as_echo_n "checking for GNU ld... " >&6; }
20901else
20902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20903$as_echo_n "checking for non-GNU ld... " >&6; }
20904fi
20905if ${lt_cv_path_LD+:} false; then :
20906  $as_echo_n "(cached) " >&6
20907else
20908  if test -z "$LD"; then
20909  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20910  for ac_dir in $PATH; do
20911    IFS="$lt_save_ifs"
20912    test -z "$ac_dir" && ac_dir=.
20913    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20914      lt_cv_path_LD="$ac_dir/$ac_prog"
20915      # Check to see if the program is GNU ld.  I'd rather use --version,
20916      # but apparently some variants of GNU ld only accept -v.
20917      # Break only if it was the GNU/non-GNU ld that we prefer.
20918      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20919      *GNU* | *'with BFD'*)
20920	test "$with_gnu_ld" != no && break
20921	;;
20922      *)
20923	test "$with_gnu_ld" != yes && break
20924	;;
20925      esac
20926    fi
20927  done
20928  IFS="$lt_save_ifs"
20929else
20930  lt_cv_path_LD="$LD" # Let the user override the test with a path.
20931fi
20932fi
20933
20934LD="$lt_cv_path_LD"
20935if test -n "$LD"; then
20936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20937$as_echo "$LD" >&6; }
20938else
20939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20940$as_echo "no" >&6; }
20941fi
20942test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20944$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20945if ${lt_cv_prog_gnu_ld+:} false; then :
20946  $as_echo_n "(cached) " >&6
20947else
20948  # I'd rather use --version here, but apparently some GNU lds only accept -v.
20949case `$LD -v 2>&1 </dev/null` in
20950*GNU* | *'with BFD'*)
20951  lt_cv_prog_gnu_ld=yes
20952  ;;
20953*)
20954  lt_cv_prog_gnu_ld=no
20955  ;;
20956esac
20957fi
20958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20959$as_echo "$lt_cv_prog_gnu_ld" >&6; }
20960with_gnu_ld=$lt_cv_prog_gnu_ld
20961
20962
20963
20964
20965
20966
20967
20968
20969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
20970$as_echo_n "checking for directory path separator... " >&6; }
20971if ${ntp_cv_dir_sep+:} false; then :
20972  $as_echo_n "(cached) " >&6
20973else
20974
20975	case "$ntp_cv_dir_sep" in
20976	 '')
20977	    case "$host_os" in
20978	     *djgpp | *mingw32* | *emx*)
20979		ntp_cv_dir_sep="'\\'"
20980		;;
20981	     *)
20982		ntp_cv_dir_sep="'/'"
20983		;;
20984	    esac
20985	esac
20986
20987
20988fi
20989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
20990$as_echo "$ntp_cv_dir_sep" >&6; }
20991
20992cat >>confdefs.h <<_ACEOF
20993#define DIR_SEP $ntp_cv_dir_sep
20994_ACEOF
20995
20996
20997
20998    NTP_ORIG_LIBS="$LIBS"
20999
21000# Check whether --with-lineeditlibs was given.
21001if test "${with_lineeditlibs+set}" = set; then :
21002  withval=$with_lineeditlibs; use_lineeditlibs="$withval"
21003else
21004  use_lineeditlibs="edit,editline"
21005
21006fi
21007
21008    { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
21009$as_echo_n "checking line editing libraries... " >&6; }
21010    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
21011$as_echo "$use_lineeditlibs" >&6; }
21012    case "$use_lineeditlibs" in
21013     no)
21014	ntp_lib_lineedit=no
21015	;;
21016     *)
21017	for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
21018	    for term_lib in "" termcap curses ncurses; do
21019		case "$term_lib" in
21020		 '')
21021		    TRY_LIB="-l$lineedit_lib"
21022		    ;;
21023		 *)
21024		    TRY_LIB="-l$lineedit_lib -l$term_lib"
21025		    ;;
21026		esac
21027		LIBS="$NTP_ORIG_LIBS $TRY_LIB"
21028		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
21029$as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
21030		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21031/* end confdefs.h.  */
21032
21033/* Override any GCC internal prototype to avoid an error.
21034   Use char because int might match the return type of a GCC
21035   builtin and then its argument prototype would still apply.  */
21036#ifdef __cplusplus
21037extern "C"
21038#endif
21039char readline ();
21040int
21041main ()
21042{
21043return readline ();
21044  ;
21045  return 0;
21046}
21047_ACEOF
21048if ac_fn_c_try_link "$LINENO"; then :
21049  ntp_lib_lineedit="$TRY_LIB"
21050fi
21051rm -f core conftest.err conftest.$ac_objext \
21052    conftest$ac_exeext conftest.$ac_ext
21053		case "$ntp_lib_lineedit" in
21054		 '')
21055		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21056$as_echo "no" >&6; }
21057		    ;;
21058		 *)
21059		    # Use readline()
21060		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21061$as_echo "yes" >&6; }
21062		    break
21063		esac
21064		case "$term_lib" in
21065		 '')
21066		    # do not try el_gets without a terminal library
21067		    ;;
21068		 *)
21069		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
21070$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
21071		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21072/* end confdefs.h.  */
21073
21074/* Override any GCC internal prototype to avoid an error.
21075   Use char because int might match the return type of a GCC
21076   builtin and then its argument prototype would still apply.  */
21077#ifdef __cplusplus
21078extern "C"
21079#endif
21080char el_gets ();
21081int
21082main ()
21083{
21084return el_gets ();
21085  ;
21086  return 0;
21087}
21088_ACEOF
21089if ac_fn_c_try_link "$LINENO"; then :
21090  ntp_lib_lineedit="$TRY_LIB"
21091fi
21092rm -f core conftest.err conftest.$ac_objext \
21093    conftest$ac_exeext conftest.$ac_ext
21094		    case "$ntp_lib_lineedit" in
21095		     '')
21096			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21097$as_echo "no" >&6; }
21098			;;
21099		     *) # Use el_gets()
21100			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21101$as_echo "yes" >&6; }
21102			break
21103			;;
21104		    esac	# $ntp_lib_lineedit
21105		esac		# $term_lib
21106	    done
21107	    case "$ntp_lib_lineedit" in
21108	     '')
21109		;;
21110	     *)
21111		break
21112		;;
21113	    esac
21114	done
21115	LIBS="$NTP_ORIG_LIBS"
21116	;;
21117    esac	# $use_lineeditlibs
21118
21119    case "$ntp_lib_lineedit" in
21120     '')
21121	ntp_lib_lineedit="no"
21122	;;
21123     no)
21124	;;
21125     *)
21126	EDITLINE_LIBS="$ntp_lib_lineedit"
21127
21128	;;
21129    esac	# $ntp_lib_lineedit
21130
21131    case "$ntp_lib_lineedit" in
21132     no)
21133	;;
21134     *)
21135	for ac_header in readline.h readline/readline.h histedit.h
21136do :
21137  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21138ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21139if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21140  cat >>confdefs.h <<_ACEOF
21141#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21142_ACEOF
21143
21144fi
21145
21146done
21147
21148	for ac_header in history.h readline/history.h
21149do :
21150  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21151ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21152if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21153  cat >>confdefs.h <<_ACEOF
21154#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21155_ACEOF
21156
21157fi
21158
21159done
21160
21161
21162	case "$ac_cv_header_histedit_h" in
21163	 yes)
21164	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
21165$as_echo_n "checking number of arguments to el_init()... " >&6; }
21166if ${ntp_cv_el_init_args+:} false; then :
21167  $as_echo_n "(cached) " >&6
21168else
21169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21170/* end confdefs.h.  */
21171
21172			    #include <stdio.h>
21173			    #include <histedit.h>
21174
21175int
21176main ()
21177{
21178
21179			    el_init("conftest", stdin, stdout, stderr);
21180
21181
21182  ;
21183  return 0;
21184}
21185_ACEOF
21186if ac_fn_c_try_compile "$LINENO"; then :
21187  ntp_cv_el_init_args=4
21188else
21189  ntp_cv_el_init_args=3
21190
21191fi
21192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21193
21194fi
21195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
21196$as_echo "$ntp_cv_el_init_args" >&6; }
21197
21198cat >>confdefs.h <<_ACEOF
21199#define EL_INIT_ARGS $ntp_cv_el_init_args
21200_ACEOF
21201
21202	esac
21203
21204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
21205$as_echo_n "checking whether readline supports history... " >&6; }
21206
21207	ntp_lib_lineedit_history="no"
21208	ORIG_LIBS="$LIBS"
21209	LIBS="$ORIG_LIBS $ntp_lib_lineedit"
21210	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21211/* end confdefs.h.  */
21212
21213/* Override any GCC internal prototype to avoid an error.
21214   Use char because int might match the return type of a GCC
21215   builtin and then its argument prototype would still apply.  */
21216#ifdef __cplusplus
21217extern "C"
21218#endif
21219char add_history ();
21220int
21221main ()
21222{
21223return add_history ();
21224  ;
21225  return 0;
21226}
21227_ACEOF
21228if ac_fn_c_try_link "$LINENO"; then :
21229  ntp_lib_lineedit_history="yes"
21230fi
21231rm -f core conftest.err conftest.$ac_objext \
21232    conftest$ac_exeext conftest.$ac_ext
21233	LIBS="$ORIG_LIBS"
21234
21235	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
21236$as_echo "$ntp_lib_lineedit_history" >&6; }
21237
21238	case "$ntp_lib_lineedit_history" in
21239	 yes)
21240
21241$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
21242
21243	esac
21244    esac	# $ntp_lib_lineedit
21245    { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
21246    { ORIG_LIBS=; unset ORIG_LIBS;}
21247    { TRY_LIB=; unset TRY_LIB;}
21248    { use_lineeditlibs=; unset use_lineeditlibs;}
21249
21250
21251LIBM=
21252case "$host" in
21253 *-*-darwin*)
21254    ;;
21255 *)
21256    _libs=$LIBS
21257    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
21258$as_echo_n "checking for library containing cos... " >&6; }
21259if ${ac_cv_search_cos+:} false; then :
21260  $as_echo_n "(cached) " >&6
21261else
21262  ac_func_search_save_LIBS=$LIBS
21263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21264/* end confdefs.h.  */
21265
21266/* Override any GCC internal prototype to avoid an error.
21267   Use char because int might match the return type of a GCC
21268   builtin and then its argument prototype would still apply.  */
21269#ifdef __cplusplus
21270extern "C"
21271#endif
21272char cos ();
21273int
21274main ()
21275{
21276return cos ();
21277  ;
21278  return 0;
21279}
21280_ACEOF
21281for ac_lib in '' m; do
21282  if test -z "$ac_lib"; then
21283    ac_res="none required"
21284  else
21285    ac_res=-l$ac_lib
21286    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21287  fi
21288  if ac_fn_c_try_link "$LINENO"; then :
21289  ac_cv_search_cos=$ac_res
21290fi
21291rm -f core conftest.err conftest.$ac_objext \
21292    conftest$ac_exeext
21293  if ${ac_cv_search_cos+:} false; then :
21294  break
21295fi
21296done
21297if ${ac_cv_search_cos+:} false; then :
21298
21299else
21300  ac_cv_search_cos=no
21301fi
21302rm conftest.$ac_ext
21303LIBS=$ac_func_search_save_LIBS
21304fi
21305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
21306$as_echo "$ac_cv_search_cos" >&6; }
21307ac_res=$ac_cv_search_cos
21308if test "$ac_res" != no; then :
21309  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21310  LIBM="-lm"
21311fi
21312
21313    LIBS=$_libs
21314    ;;
21315esac
21316
21317{ _libs=; unset _libs;}
21318
21319
21320for ac_header in vfork.h
21321do :
21322  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21323if test "x$ac_cv_header_vfork_h" = xyes; then :
21324  cat >>confdefs.h <<_ACEOF
21325#define HAVE_VFORK_H 1
21326_ACEOF
21327
21328fi
21329
21330done
21331
21332for ac_func in fork vfork
21333do :
21334  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21335ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21336if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21337  cat >>confdefs.h <<_ACEOF
21338#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21339_ACEOF
21340
21341fi
21342done
21343
21344if test "x$ac_cv_func_fork" = xyes; then
21345  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21346$as_echo_n "checking for working fork... " >&6; }
21347if ${ac_cv_func_fork_works+:} false; then :
21348  $as_echo_n "(cached) " >&6
21349else
21350  if test "$cross_compiling" = yes; then :
21351  ac_cv_func_fork_works=cross
21352else
21353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21354/* end confdefs.h.  */
21355$ac_includes_default
21356int
21357main ()
21358{
21359
21360	  /* By Ruediger Kuhlmann. */
21361	  return fork () < 0;
21362
21363  ;
21364  return 0;
21365}
21366_ACEOF
21367if ac_fn_c_try_run "$LINENO"; then :
21368  ac_cv_func_fork_works=yes
21369else
21370  ac_cv_func_fork_works=no
21371fi
21372rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21373  conftest.$ac_objext conftest.beam conftest.$ac_ext
21374fi
21375
21376fi
21377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21378$as_echo "$ac_cv_func_fork_works" >&6; }
21379
21380else
21381  ac_cv_func_fork_works=$ac_cv_func_fork
21382fi
21383if test "x$ac_cv_func_fork_works" = xcross; then
21384  case $host in
21385    *-*-amigaos* | *-*-msdosdjgpp*)
21386      # Override, as these systems have only a dummy fork() stub
21387      ac_cv_func_fork_works=no
21388      ;;
21389    *)
21390      ac_cv_func_fork_works=yes
21391      ;;
21392  esac
21393  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21394$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21395fi
21396ac_cv_func_vfork_works=$ac_cv_func_vfork
21397if test "x$ac_cv_func_vfork" = xyes; then
21398  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21399$as_echo_n "checking for working vfork... " >&6; }
21400if ${ac_cv_func_vfork_works+:} false; then :
21401  $as_echo_n "(cached) " >&6
21402else
21403  if test "$cross_compiling" = yes; then :
21404  ac_cv_func_vfork_works=cross
21405else
21406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21407/* end confdefs.h.  */
21408/* Thanks to Paul Eggert for this test.  */
21409$ac_includes_default
21410#include <sys/wait.h>
21411#ifdef HAVE_VFORK_H
21412# include <vfork.h>
21413#endif
21414/* On some sparc systems, changes by the child to local and incoming
21415   argument registers are propagated back to the parent.  The compiler
21416   is told about this with #include <vfork.h>, but some compilers
21417   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
21418   static variable whose address is put into a register that is
21419   clobbered by the vfork.  */
21420static void
21421#ifdef __cplusplus
21422sparc_address_test (int arg)
21423# else
21424sparc_address_test (arg) int arg;
21425#endif
21426{
21427  static pid_t child;
21428  if (!child) {
21429    child = vfork ();
21430    if (child < 0) {
21431      perror ("vfork");
21432      _exit(2);
21433    }
21434    if (!child) {
21435      arg = getpid();
21436      write(-1, "", 0);
21437      _exit (arg);
21438    }
21439  }
21440}
21441
21442int
21443main ()
21444{
21445  pid_t parent = getpid ();
21446  pid_t child;
21447
21448  sparc_address_test (0);
21449
21450  child = vfork ();
21451
21452  if (child == 0) {
21453    /* Here is another test for sparc vfork register problems.  This
21454       test uses lots of local variables, at least as many local
21455       variables as main has allocated so far including compiler
21456       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
21457       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
21458       reuse the register of parent for one of the local variables,
21459       since it will think that parent can't possibly be used any more
21460       in this routine.  Assigning to the local variable will thus
21461       munge parent in the parent process.  */
21462    pid_t
21463      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21464      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21465    /* Convince the compiler that p..p7 are live; otherwise, it might
21466       use the same hardware register for all 8 local variables.  */
21467    if (p != p1 || p != p2 || p != p3 || p != p4
21468	|| p != p5 || p != p6 || p != p7)
21469      _exit(1);
21470
21471    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21472       from child file descriptors.  If the child closes a descriptor
21473       before it execs or exits, this munges the parent's descriptor
21474       as well.  Test for this by closing stdout in the child.  */
21475    _exit(close(fileno(stdout)) != 0);
21476  } else {
21477    int status;
21478    struct stat st;
21479
21480    while (wait(&status) != child)
21481      ;
21482    return (
21483	 /* Was there some problem with vforking?  */
21484	 child < 0
21485
21486	 /* Did the child fail?  (This shouldn't happen.)  */
21487	 || status
21488
21489	 /* Did the vfork/compiler bug occur?  */
21490	 || parent != getpid()
21491
21492	 /* Did the file descriptor bug occur?  */
21493	 || fstat(fileno(stdout), &st) != 0
21494	 );
21495  }
21496}
21497_ACEOF
21498if ac_fn_c_try_run "$LINENO"; then :
21499  ac_cv_func_vfork_works=yes
21500else
21501  ac_cv_func_vfork_works=no
21502fi
21503rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21504  conftest.$ac_objext conftest.beam conftest.$ac_ext
21505fi
21506
21507fi
21508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21509$as_echo "$ac_cv_func_vfork_works" >&6; }
21510
21511fi;
21512if test "x$ac_cv_func_fork_works" = xcross; then
21513  ac_cv_func_vfork_works=$ac_cv_func_vfork
21514  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21515$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21516fi
21517
21518if test "x$ac_cv_func_vfork_works" = xyes; then
21519
21520$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21521
21522else
21523
21524$as_echo "#define vfork fork" >>confdefs.h
21525
21526fi
21527if test "x$ac_cv_func_fork_works" = xyes; then
21528
21529$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21530
21531fi
21532
21533# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21534# for constant arguments.  Useless!
21535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21536$as_echo_n "checking for working alloca.h... " >&6; }
21537if ${ac_cv_working_alloca_h+:} false; then :
21538  $as_echo_n "(cached) " >&6
21539else
21540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21541/* end confdefs.h.  */
21542#include <alloca.h>
21543int
21544main ()
21545{
21546char *p = (char *) alloca (2 * sizeof (int));
21547			  if (p) return 0;
21548  ;
21549  return 0;
21550}
21551_ACEOF
21552if ac_fn_c_try_link "$LINENO"; then :
21553  ac_cv_working_alloca_h=yes
21554else
21555  ac_cv_working_alloca_h=no
21556fi
21557rm -f core conftest.err conftest.$ac_objext \
21558    conftest$ac_exeext conftest.$ac_ext
21559fi
21560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21561$as_echo "$ac_cv_working_alloca_h" >&6; }
21562if test $ac_cv_working_alloca_h = yes; then
21563
21564$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21565
21566fi
21567
21568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21569$as_echo_n "checking for alloca... " >&6; }
21570if ${ac_cv_func_alloca_works+:} false; then :
21571  $as_echo_n "(cached) " >&6
21572else
21573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21574/* end confdefs.h.  */
21575#ifdef __GNUC__
21576# define alloca __builtin_alloca
21577#else
21578# ifdef _MSC_VER
21579#  include <malloc.h>
21580#  define alloca _alloca
21581# else
21582#  ifdef HAVE_ALLOCA_H
21583#   include <alloca.h>
21584#  else
21585#   ifdef _AIX
21586 #pragma alloca
21587#   else
21588#    ifndef alloca /* predefined by HP cc +Olibcalls */
21589void *alloca (size_t);
21590#    endif
21591#   endif
21592#  endif
21593# endif
21594#endif
21595
21596int
21597main ()
21598{
21599char *p = (char *) alloca (1);
21600				    if (p) return 0;
21601  ;
21602  return 0;
21603}
21604_ACEOF
21605if ac_fn_c_try_link "$LINENO"; then :
21606  ac_cv_func_alloca_works=yes
21607else
21608  ac_cv_func_alloca_works=no
21609fi
21610rm -f core conftest.err conftest.$ac_objext \
21611    conftest$ac_exeext conftest.$ac_ext
21612fi
21613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21614$as_echo "$ac_cv_func_alloca_works" >&6; }
21615
21616if test $ac_cv_func_alloca_works = yes; then
21617
21618$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21619
21620else
21621  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21622# that cause trouble.  Some versions do not even contain alloca or
21623# contain a buggy version.  If you still want to use their alloca,
21624# use ar to extract alloca.o from them instead of compiling alloca.c.
21625
21626ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21627
21628$as_echo "#define C_ALLOCA 1" >>confdefs.h
21629
21630
21631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21632$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21633if ${ac_cv_os_cray+:} false; then :
21634  $as_echo_n "(cached) " >&6
21635else
21636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21637/* end confdefs.h.  */
21638#if defined CRAY && ! defined CRAY2
21639webecray
21640#else
21641wenotbecray
21642#endif
21643
21644_ACEOF
21645if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21646  $EGREP "webecray" >/dev/null 2>&1; then :
21647  ac_cv_os_cray=yes
21648else
21649  ac_cv_os_cray=no
21650fi
21651rm -f conftest*
21652
21653fi
21654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21655$as_echo "$ac_cv_os_cray" >&6; }
21656if test $ac_cv_os_cray = yes; then
21657  for ac_func in _getb67 GETB67 getb67; do
21658    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21659ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21660if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21661
21662cat >>confdefs.h <<_ACEOF
21663#define CRAY_STACKSEG_END $ac_func
21664_ACEOF
21665
21666    break
21667fi
21668
21669  done
21670fi
21671
21672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21673$as_echo_n "checking stack direction for C alloca... " >&6; }
21674if ${ac_cv_c_stack_direction+:} false; then :
21675  $as_echo_n "(cached) " >&6
21676else
21677  if test "$cross_compiling" = yes; then :
21678  ac_cv_c_stack_direction=0
21679else
21680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21681/* end confdefs.h.  */
21682$ac_includes_default
21683int
21684find_stack_direction (int *addr, int depth)
21685{
21686  int dir, dummy = 0;
21687  if (! addr)
21688    addr = &dummy;
21689  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
21690  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
21691  return dir + dummy;
21692}
21693
21694int
21695main (int argc, char **argv)
21696{
21697  return find_stack_direction (0, argc + !argv + 20) < 0;
21698}
21699_ACEOF
21700if ac_fn_c_try_run "$LINENO"; then :
21701  ac_cv_c_stack_direction=1
21702else
21703  ac_cv_c_stack_direction=-1
21704fi
21705rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21706  conftest.$ac_objext conftest.beam conftest.$ac_ext
21707fi
21708
21709fi
21710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21711$as_echo "$ac_cv_c_stack_direction" >&6; }
21712cat >>confdefs.h <<_ACEOF
21713#define STACK_DIRECTION $ac_cv_c_stack_direction
21714_ACEOF
21715
21716
21717fi
21718
21719ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
21720if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
21721  ac_have_decl=1
21722else
21723  ac_have_decl=0
21724fi
21725
21726cat >>confdefs.h <<_ACEOF
21727#define HAVE_DECL_STRERROR_R $ac_have_decl
21728_ACEOF
21729
21730for ac_func in strerror_r
21731do :
21732  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
21733if test "x$ac_cv_func_strerror_r" = xyes; then :
21734  cat >>confdefs.h <<_ACEOF
21735#define HAVE_STRERROR_R 1
21736_ACEOF
21737
21738fi
21739done
21740
21741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
21742$as_echo_n "checking whether strerror_r returns char *... " >&6; }
21743if ${ac_cv_func_strerror_r_char_p+:} false; then :
21744  $as_echo_n "(cached) " >&6
21745else
21746
21747    ac_cv_func_strerror_r_char_p=no
21748    if test $ac_cv_have_decl_strerror_r = yes; then
21749      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21750/* end confdefs.h.  */
21751$ac_includes_default
21752int
21753main ()
21754{
21755
21756	  char buf[100];
21757	  char x = *strerror_r (0, buf, sizeof buf);
21758	  char *p = strerror_r (0, buf, sizeof buf);
21759	  return !p || x;
21760
21761  ;
21762  return 0;
21763}
21764_ACEOF
21765if ac_fn_c_try_compile "$LINENO"; then :
21766  ac_cv_func_strerror_r_char_p=yes
21767fi
21768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21769    else
21770      # strerror_r is not declared.  Choose between
21771      # systems that have relatively inaccessible declarations for the
21772      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
21773      # former has a strerror_r that returns char*, while the latter
21774      # has a strerror_r that returns `int'.
21775      # This test should segfault on the DEC system.
21776      if test "$cross_compiling" = yes; then :
21777  :
21778else
21779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21780/* end confdefs.h.  */
21781$ac_includes_default
21782	extern char *strerror_r ();
21783int
21784main ()
21785{
21786char buf[100];
21787	  char x = *strerror_r (0, buf, sizeof buf);
21788	  return ! isalpha (x);
21789  ;
21790  return 0;
21791}
21792_ACEOF
21793if ac_fn_c_try_run "$LINENO"; then :
21794  ac_cv_func_strerror_r_char_p=yes
21795fi
21796rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21797  conftest.$ac_objext conftest.beam conftest.$ac_ext
21798fi
21799
21800    fi
21801
21802fi
21803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
21804$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
21805if test $ac_cv_func_strerror_r_char_p = yes; then
21806
21807$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
21808
21809fi
21810
21811
21812ac_busted_vpath_in_make=no
21813case "$build" in
21814 *-*-irix6.1*)	# 64 bit only
21815    # busted vpath?
21816    ;;
21817 *-*-irix6*)	# 6.2 (and later?)
21818    ac_busted_vpath_in_make=yes
21819    ;;
21820 *-*-solaris2.5.1)
21821    ac_busted_vpath_in_make=yes
21822    ;;
21823 *-*-unicosmp*)
21824    ac_busted_vpath_in_make=yes
21825    ;;
21826esac
21827
21828case "$ac_busted_vpath_in_make$srcdir" in
21829 yes.|no*)
21830    ;;
21831 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
21832     '')
21833	as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
21834    esac
21835    ;;
21836esac
21837
21838case "$host" in
21839 *-*-aix4*)
21840	# Bug 2516:
21841	# Was *-*-aix[[4-9]]*
21842	# XXX only verified thru AIX6.  But...
21843	# Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
21844	# that this support would be in 5.3, removed in 6, and added back.
21845	#
21846	# (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
21847	# (returning ENOSYS).  I didn't check 4.2.  If, in the future,
21848	# IBM pulls its thumbs out long enough to implement clock_settime,
21849	# this conditional will need to change.  Maybe use AC_TRY_RUN
21850	# instead to try to set the time to itself and check errno.
21851    ;;
21852 *)
21853    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21854$as_echo_n "checking for library containing clock_gettime... " >&6; }
21855if ${ac_cv_search_clock_gettime+:} false; then :
21856  $as_echo_n "(cached) " >&6
21857else
21858  ac_func_search_save_LIBS=$LIBS
21859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21860/* end confdefs.h.  */
21861
21862/* Override any GCC internal prototype to avoid an error.
21863   Use char because int might match the return type of a GCC
21864   builtin and then its argument prototype would still apply.  */
21865#ifdef __cplusplus
21866extern "C"
21867#endif
21868char clock_gettime ();
21869int
21870main ()
21871{
21872return clock_gettime ();
21873  ;
21874  return 0;
21875}
21876_ACEOF
21877for ac_lib in '' rt; do
21878  if test -z "$ac_lib"; then
21879    ac_res="none required"
21880  else
21881    ac_res=-l$ac_lib
21882    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21883  fi
21884  if ac_fn_c_try_link "$LINENO"; then :
21885  ac_cv_search_clock_gettime=$ac_res
21886fi
21887rm -f core conftest.err conftest.$ac_objext \
21888    conftest$ac_exeext
21889  if ${ac_cv_search_clock_gettime+:} false; then :
21890  break
21891fi
21892done
21893if ${ac_cv_search_clock_gettime+:} false; then :
21894
21895else
21896  ac_cv_search_clock_gettime=no
21897fi
21898rm conftest.$ac_ext
21899LIBS=$ac_func_search_save_LIBS
21900fi
21901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21902$as_echo "$ac_cv_search_clock_gettime" >&6; }
21903ac_res=$ac_cv_search_clock_gettime
21904if test "$ac_res" != no; then :
21905  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21906  case "$ac_cv_search_clock_gettime" in
21907 'none required') ;;
21908 no) ;;
21909 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
21910 esac
21911
21912fi
21913
21914    for ac_func in clock_getres clock_gettime clock_settime
21915do :
21916  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21917ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21918if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21919  cat >>confdefs.h <<_ACEOF
21920#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21921_ACEOF
21922
21923fi
21924done
21925
21926    ;;
21927esac
21928
21929for ac_func in getclock stime timegm strlcpy strlcat
21930do :
21931  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21932ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21933if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21934  cat >>confdefs.h <<_ACEOF
21935#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21936_ACEOF
21937
21938fi
21939done
21940
21941
21942# Bug 2713
21943LDADD_LIBUTIL=
21944
21945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
21946$as_echo_n "checking for library containing snprintb... " >&6; }
21947if ${ac_cv_search_snprintb+:} false; then :
21948  $as_echo_n "(cached) " >&6
21949else
21950  ac_func_search_save_LIBS=$LIBS
21951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21952/* end confdefs.h.  */
21953
21954/* Override any GCC internal prototype to avoid an error.
21955   Use char because int might match the return type of a GCC
21956   builtin and then its argument prototype would still apply.  */
21957#ifdef __cplusplus
21958extern "C"
21959#endif
21960char snprintb ();
21961int
21962main ()
21963{
21964return snprintb ();
21965  ;
21966  return 0;
21967}
21968_ACEOF
21969for ac_lib in '' util; do
21970  if test -z "$ac_lib"; then
21971    ac_res="none required"
21972  else
21973    ac_res=-l$ac_lib
21974    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21975  fi
21976  if ac_fn_c_try_link "$LINENO"; then :
21977  ac_cv_search_snprintb=$ac_res
21978fi
21979rm -f core conftest.err conftest.$ac_objext \
21980    conftest$ac_exeext
21981  if ${ac_cv_search_snprintb+:} false; then :
21982  break
21983fi
21984done
21985if ${ac_cv_search_snprintb+:} false; then :
21986
21987else
21988  ac_cv_search_snprintb=no
21989fi
21990rm conftest.$ac_ext
21991LIBS=$ac_func_search_save_LIBS
21992fi
21993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
21994$as_echo "$ac_cv_search_snprintb" >&6; }
21995ac_res=$ac_cv_search_snprintb
21996if test "$ac_res" != no; then :
21997  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21998  case "$ac_cv_search_snprintb" in
21999 'none required') ;;
22000 no) ;;
22001 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
22002 esac
22003
22004$as_echo "#define USE_SNPRINTB 1" >>confdefs.h
22005
22006fi
22007
22008
22009#
22010for ac_header in errno.h sys/socket.h sys/types.h time.h
22011do :
22012  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22013ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22014if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22015  cat >>confdefs.h <<_ACEOF
22016#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22017_ACEOF
22018
22019fi
22020
22021done
22022
22023for ac_header in net/if.h
22024do :
22025  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
22026    #ifdef HAVE_SYS_SOCKET_H
22027    # include <sys/socket.h>
22028    #endif
22029
22030"
22031if test "x$ac_cv_header_net_if_h" = xyes; then :
22032  cat >>confdefs.h <<_ACEOF
22033#define HAVE_NET_IF_H 1
22034_ACEOF
22035
22036fi
22037
22038done
22039
22040case "$host" in
22041 *-hp-hpux*)
22042    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
22043$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
22044if ${ntp_cv_predecl_mpinfou+:} false; then :
22045  $as_echo_n "(cached) " >&6
22046else
22047
22048	    np_cv_predecl_mpinfou=no
22049	    case "$ac_cv_header_net_if_h" in
22050	     no)
22051		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22052/* end confdefs.h.  */
22053
22054			    typedef union mpinfou {
22055				    struct pdk_mpinfo *pdkptr;
22056				    struct mpinfo *pikptr;
22057			    } mpinfou_t;
22058			    #ifdef HAVE_SYS_SOCKET_H
22059			    # include <sys/socket.h>
22060			    #endif
22061			    #include <net/if.h>
22062
22063int
22064main ()
22065{
22066
22067
22068
22069  ;
22070  return 0;
22071}
22072_ACEOF
22073if ac_fn_c_try_compile "$LINENO"; then :
22074
22075			ntp_cv_predecl_mpinfou=yes
22076			ac_cv_header_net_if_h=yes
22077
22078
22079fi
22080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22081	    esac
22082
22083
22084fi
22085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
22086$as_echo "$ntp_cv_predecl_mpinfou" >&6; }
22087    case "$ntp_cv_predecl_mpinfou" in
22088     yes)
22089	cat >>confdefs.h <<_ACEOF
22090#ifndef MPINFOU_PREDECLARED
22091# define MPINFOU_PREDECLARED
22092typedef union mpinfou {
22093	struct pdk_mpinfo *pdkptr;
22094	struct mpinfo *pikptr;
22095} mpinfou_t;
22096#endif
22097_ACEOF
22098
22099    esac
22100esac
22101
22102case "$host" in
22103 *-linux*)
22104    for ac_header in linux/if_addr.h
22105do :
22106  ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
22107	#ifdef HAVE_SYS_SOCKET_H
22108	# include <sys/socket.h>
22109	#endif
22110
22111"
22112if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
22113  cat >>confdefs.h <<_ACEOF
22114#define HAVE_LINUX_IF_ADDR_H 1
22115_ACEOF
22116
22117fi
22118
22119done
22120
22121esac
22122
22123for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
22124do :
22125  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22126ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22127if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22128  cat >>confdefs.h <<_ACEOF
22129#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22130_ACEOF
22131
22132fi
22133
22134done
22135
22136# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
22137for ac_header in sys/sysctl.h
22138do :
22139  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
22140    #if defined HAVE_SYS_PARAM_H
22141    # include <sys/param.h>
22142    #endif
22143
22144"
22145if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
22146  cat >>confdefs.h <<_ACEOF
22147#define HAVE_SYS_SYSCTL_H 1
22148_ACEOF
22149
22150fi
22151
22152done
22153
22154for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
22155do :
22156  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22157ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22158if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22159  cat >>confdefs.h <<_ACEOF
22160#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22161_ACEOF
22162
22163fi
22164
22165done
22166
22167
22168for ac_header in resolv.h
22169do :
22170  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
22171    #ifdef HAVE_SYS_TYPES_H
22172    # include <sys/types.h>
22173    #endif
22174    #ifdef HAVE_NETINET_IN_H
22175    # include <netinet/in.h>
22176    #endif
22177    #ifdef HAVE_ARPA_NAMESER_H
22178    # include <arpa/nameser.h>
22179    #endif
22180
22181"
22182if test "x$ac_cv_header_resolv_h" = xyes; then :
22183  cat >>confdefs.h <<_ACEOF
22184#define HAVE_RESOLV_H 1
22185_ACEOF
22186
22187fi
22188
22189done
22190
22191
22192for ac_header in net/if_var.h
22193do :
22194  ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
22195    #if HAVE_SYS_TYPES_H
22196    # include <sys/types.h>
22197    #endif
22198    #ifdef HAVE_SYS_SOCKET_H
22199    # include <sys/socket.h>
22200    #endif
22201    #ifdef HAVE_NETINET_IN_H
22202    # include <netinet/in.h>
22203    #endif
22204    #ifdef HAVE_NET_IF_H
22205    # include <net/if.h>
22206    #endif
22207
22208"
22209if test "x$ac_cv_header_net_if_var_h" = xyes; then :
22210  cat >>confdefs.h <<_ACEOF
22211#define HAVE_NET_IF_VAR_H 1
22212_ACEOF
22213
22214fi
22215
22216done
22217
22218
22219for ac_header in netinet/ip.h netinet/in_var.h
22220do :
22221  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22222ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22223    #ifdef HAVE_SYS_TYPES_H
22224    # include <sys/types.h>
22225    #endif
22226    #ifdef HAVE_SYS_SOCKET_H
22227    # include <sys/socket.h>
22228    #endif
22229    #ifdef HAVE_NET_IF_H
22230    # include <net/if.h>
22231    #endif
22232    #ifdef HAVE_NETINET_IN_H
22233    # include <netinet/in.h>
22234    #endif
22235    #ifdef HAVE_NET_IF_VAR_H
22236    # include <net/if_var.h>
22237    #endif
22238    #ifdef HAVE_NETINET_IN_SYSTM_H
22239    # include <netinet/in_systm.h>
22240    #endif
22241
22242"
22243if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22244  cat >>confdefs.h <<_ACEOF
22245#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22246_ACEOF
22247
22248fi
22249
22250done
22251
22252
22253# HMS: Do we need to check for -lsocket before or after these tests?
22254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
22255$as_echo_n "checking for library containing inet_pton... " >&6; }
22256if ${ac_cv_search_inet_pton+:} false; then :
22257  $as_echo_n "(cached) " >&6
22258else
22259  ac_func_search_save_LIBS=$LIBS
22260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22261/* end confdefs.h.  */
22262
22263/* Override any GCC internal prototype to avoid an error.
22264   Use char because int might match the return type of a GCC
22265   builtin and then its argument prototype would still apply.  */
22266#ifdef __cplusplus
22267extern "C"
22268#endif
22269char inet_pton ();
22270int
22271main ()
22272{
22273return inet_pton ();
22274  ;
22275  return 0;
22276}
22277_ACEOF
22278for ac_lib in '' nsl; do
22279  if test -z "$ac_lib"; then
22280    ac_res="none required"
22281  else
22282    ac_res=-l$ac_lib
22283    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22284  fi
22285  if ac_fn_c_try_link "$LINENO"; then :
22286  ac_cv_search_inet_pton=$ac_res
22287fi
22288rm -f core conftest.err conftest.$ac_objext \
22289    conftest$ac_exeext
22290  if ${ac_cv_search_inet_pton+:} false; then :
22291  break
22292fi
22293done
22294if ${ac_cv_search_inet_pton+:} false; then :
22295
22296else
22297  ac_cv_search_inet_pton=no
22298fi
22299rm conftest.$ac_ext
22300LIBS=$ac_func_search_save_LIBS
22301fi
22302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
22303$as_echo "$ac_cv_search_inet_pton" >&6; }
22304ac_res=$ac_cv_search_inet_pton
22305if test "$ac_res" != no; then :
22306  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22307  case "$ac_cv_search_inet_pton" in
22308 'none required') ;;
22309 no) ;;
22310 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
22311 esac
22312
22313fi
22314
22315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
22316$as_echo_n "checking for library containing inet_ntop... " >&6; }
22317if ${ac_cv_search_inet_ntop+:} false; then :
22318  $as_echo_n "(cached) " >&6
22319else
22320  ac_func_search_save_LIBS=$LIBS
22321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22322/* end confdefs.h.  */
22323
22324/* Override any GCC internal prototype to avoid an error.
22325   Use char because int might match the return type of a GCC
22326   builtin and then its argument prototype would still apply.  */
22327#ifdef __cplusplus
22328extern "C"
22329#endif
22330char inet_ntop ();
22331int
22332main ()
22333{
22334return inet_ntop ();
22335  ;
22336  return 0;
22337}
22338_ACEOF
22339for ac_lib in '' resolv; do
22340  if test -z "$ac_lib"; then
22341    ac_res="none required"
22342  else
22343    ac_res=-l$ac_lib
22344    LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
22345  fi
22346  if ac_fn_c_try_link "$LINENO"; then :
22347  ac_cv_search_inet_ntop=$ac_res
22348fi
22349rm -f core conftest.err conftest.$ac_objext \
22350    conftest$ac_exeext
22351  if ${ac_cv_search_inet_ntop+:} false; then :
22352  break
22353fi
22354done
22355if ${ac_cv_search_inet_ntop+:} false; then :
22356
22357else
22358  ac_cv_search_inet_ntop=no
22359fi
22360rm conftest.$ac_ext
22361LIBS=$ac_func_search_save_LIBS
22362fi
22363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
22364$as_echo "$ac_cv_search_inet_ntop" >&6; }
22365ac_res=$ac_cv_search_inet_ntop
22366if test "$ac_res" != no; then :
22367  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22368  case "$ac_cv_search_inet_ntop" in
22369 'none required') ;;
22370 no) ;;
22371 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
22372 esac
22373
22374fi
22375
22376
22377# [Bug 1628] On Solaris, we need -lxnet -lsocket.  Generalize this to
22378# avoid keying on the OS name:  If we find socket functions in
22379# libsocket, next try for them in libxnet without libsocket, if found,
22380# list both.  If we simply tested libxnet first, we would find the
22381# functions there and never add libsocket.  See also [Bug 660]
22382# http://bugs.ntp.org/show_bug.cgi?id=660#c9
22383saved_LIBS=$LIBS
22384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
22385$as_echo_n "checking for library containing setsockopt... " >&6; }
22386if ${ac_cv_search_setsockopt+:} false; then :
22387  $as_echo_n "(cached) " >&6
22388else
22389  ac_func_search_save_LIBS=$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 setsockopt ();
22400int
22401main ()
22402{
22403return setsockopt ();
22404  ;
22405  return 0;
22406}
22407_ACEOF
22408for ac_lib in '' socket; do
22409  if test -z "$ac_lib"; then
22410    ac_res="none required"
22411  else
22412    ac_res=-l$ac_lib
22413    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22414  fi
22415  if ac_fn_c_try_link "$LINENO"; then :
22416  ac_cv_search_setsockopt=$ac_res
22417fi
22418rm -f core conftest.err conftest.$ac_objext \
22419    conftest$ac_exeext
22420  if ${ac_cv_search_setsockopt+:} false; then :
22421  break
22422fi
22423done
22424if ${ac_cv_search_setsockopt+:} false; then :
22425
22426else
22427  ac_cv_search_setsockopt=no
22428fi
22429rm conftest.$ac_ext
22430LIBS=$ac_func_search_save_LIBS
22431fi
22432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
22433$as_echo "$ac_cv_search_setsockopt" >&6; }
22434ac_res=$ac_cv_search_setsockopt
22435if test "$ac_res" != no; then :
22436  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22437  case "$ac_cv_search_setsockopt" in
22438 'none required') ;;
22439 no) ;;
22440 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
22441 esac
22442
22443fi
22444
22445case "$ac_cv_search_setsockopt" in
22446 -lsocket)
22447    LIBS="$saved_LIBS"
22448    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
22449$as_echo_n "checking for library containing getsockopt... " >&6; }
22450if ${ac_cv_search_getsockopt+:} false; then :
22451  $as_echo_n "(cached) " >&6
22452else
22453  ac_func_search_save_LIBS=$LIBS
22454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22455/* end confdefs.h.  */
22456
22457/* Override any GCC internal prototype to avoid an error.
22458   Use char because int might match the return type of a GCC
22459   builtin and then its argument prototype would still apply.  */
22460#ifdef __cplusplus
22461extern "C"
22462#endif
22463char getsockopt ();
22464int
22465main ()
22466{
22467return getsockopt ();
22468  ;
22469  return 0;
22470}
22471_ACEOF
22472for ac_lib in '' xnet; do
22473  if test -z "$ac_lib"; then
22474    ac_res="none required"
22475  else
22476    ac_res=-l$ac_lib
22477    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22478  fi
22479  if ac_fn_c_try_link "$LINENO"; then :
22480  ac_cv_search_getsockopt=$ac_res
22481fi
22482rm -f core conftest.err conftest.$ac_objext \
22483    conftest$ac_exeext
22484  if ${ac_cv_search_getsockopt+:} false; then :
22485  break
22486fi
22487done
22488if ${ac_cv_search_getsockopt+:} false; then :
22489
22490else
22491  ac_cv_search_getsockopt=no
22492fi
22493rm conftest.$ac_ext
22494LIBS=$ac_func_search_save_LIBS
22495fi
22496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
22497$as_echo "$ac_cv_search_getsockopt" >&6; }
22498ac_res=$ac_cv_search_getsockopt
22499if test "$ac_res" != no; then :
22500  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22501  case "$ac_cv_search_getsockopt" in
22502 'none required') ;;
22503 no) ;;
22504 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
22505 esac
22506
22507fi
22508
22509    # XXX Possible trouble here - reading the comments above and looking at the
22510    # code below I wonder if we'll add -lxnet when we don't need it.
22511    # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
22512    # there when it is not needed?
22513    case "$ac_cv_search_getsockopt" in
22514     -lxnet)
22515	LIBS="-lxnet -lsocket $saved_LIBS"
22516	;;
22517     *) LIBS="-lsocket $saved_LIBS"
22518	;;
22519    esac
22520    ;;
22521esac
22522{ saved_LIBS=; unset saved_LIBS;}
22523
22524# Bug 2427 - look for recvmsg here.
22525for ac_func in recvmsg
22526do :
22527  ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
22528if test "x$ac_cv_func_recvmsg" = xyes; then :
22529  cat >>confdefs.h <<_ACEOF
22530#define HAVE_RECVMSG 1
22531_ACEOF
22532
22533fi
22534done
22535
22536
22537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22538$as_echo_n "checking for inline... " >&6; }
22539if ${ac_cv_c_inline+:} false; then :
22540  $as_echo_n "(cached) " >&6
22541else
22542  ac_cv_c_inline=no
22543for ac_kw in inline __inline__ __inline; do
22544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22545/* end confdefs.h.  */
22546#ifndef __cplusplus
22547typedef int foo_t;
22548static $ac_kw foo_t static_foo () {return 0; }
22549$ac_kw foo_t foo () {return 0; }
22550#endif
22551
22552_ACEOF
22553if ac_fn_c_try_compile "$LINENO"; then :
22554  ac_cv_c_inline=$ac_kw
22555fi
22556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22557  test "$ac_cv_c_inline" != no && break
22558done
22559
22560fi
22561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22562$as_echo "$ac_cv_c_inline" >&6; }
22563
22564case $ac_cv_c_inline in
22565  inline | yes) ;;
22566  *)
22567    case $ac_cv_c_inline in
22568      no) ac_val=;;
22569      *) ac_val=$ac_cv_c_inline;;
22570    esac
22571    cat >>confdefs.h <<_ACEOF
22572#ifndef __cplusplus
22573#define inline $ac_val
22574#endif
22575_ACEOF
22576    ;;
22577esac
22578
22579
22580case "$ac_cv_c_inline" in
22581 '')
22582    ;;
22583 *)
22584
22585$as_echo "#define HAVE_INLINE 1" >>confdefs.h
22586
22587
22588esac
22589
22590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22591$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22592if ${ac_cv_header_time+:} false; then :
22593  $as_echo_n "(cached) " >&6
22594else
22595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22596/* end confdefs.h.  */
22597#include <sys/types.h>
22598#include <sys/time.h>
22599#include <time.h>
22600
22601int
22602main ()
22603{
22604if ((struct tm *) 0)
22605return 0;
22606  ;
22607  return 0;
22608}
22609_ACEOF
22610if ac_fn_c_try_compile "$LINENO"; then :
22611  ac_cv_header_time=yes
22612else
22613  ac_cv_header_time=no
22614fi
22615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22616fi
22617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22618$as_echo "$ac_cv_header_time" >&6; }
22619if test $ac_cv_header_time = yes; then
22620
22621$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22622
22623fi
22624
22625# The cast to long int works around a bug in the HP C Compiler
22626# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22627# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22628# This bug is HP SR number 8606223364.
22629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
22630$as_echo_n "checking size of time_t... " >&6; }
22631if ${ac_cv_sizeof_time_t+:} false; then :
22632  $as_echo_n "(cached) " >&6
22633else
22634  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
22635
22636else
22637  if test "$ac_cv_type_time_t" = yes; then
22638     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22640as_fn_error 77 "cannot compute sizeof (time_t)
22641See \`config.log' for more details" "$LINENO" 5; }
22642   else
22643     ac_cv_sizeof_time_t=0
22644   fi
22645fi
22646
22647fi
22648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
22649$as_echo "$ac_cv_sizeof_time_t" >&6; }
22650
22651
22652
22653cat >>confdefs.h <<_ACEOF
22654#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
22655_ACEOF
22656
22657
22658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22659$as_echo_n "checking whether char is unsigned... " >&6; }
22660if ${ac_cv_c_char_unsigned+:} false; then :
22661  $as_echo_n "(cached) " >&6
22662else
22663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22664/* end confdefs.h.  */
22665$ac_includes_default
22666int
22667main ()
22668{
22669static int test_array [1 - 2 * !(((char) -1) < 0)];
22670test_array [0] = 0;
22671return test_array [0];
22672
22673  ;
22674  return 0;
22675}
22676_ACEOF
22677if ac_fn_c_try_compile "$LINENO"; then :
22678  ac_cv_c_char_unsigned=no
22679else
22680  ac_cv_c_char_unsigned=yes
22681fi
22682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22683fi
22684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22685$as_echo "$ac_cv_c_char_unsigned" >&6; }
22686if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22687  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22688
22689fi
22690		# The cast to long int works around a bug in the HP C Compiler
22691# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22692# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22693# This bug is HP SR number 8606223364.
22694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
22695$as_echo_n "checking size of signed char... " >&6; }
22696if ${ac_cv_sizeof_signed_char+:} false; then :
22697  $as_echo_n "(cached) " >&6
22698else
22699  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"; then :
22700
22701else
22702  if test "$ac_cv_type_signed_char" = yes; then
22703     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22705as_fn_error 77 "cannot compute sizeof (signed char)
22706See \`config.log' for more details" "$LINENO" 5; }
22707   else
22708     ac_cv_sizeof_signed_char=0
22709   fi
22710fi
22711
22712fi
22713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
22714$as_echo "$ac_cv_sizeof_signed_char" >&6; }
22715
22716
22717
22718cat >>confdefs.h <<_ACEOF
22719#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
22720_ACEOF
22721
22722
22723ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
22724if test "x$ac_cv_type_s_char" = xyes; then :
22725
22726cat >>confdefs.h <<_ACEOF
22727#define HAVE_S_CHAR 1
22728_ACEOF
22729
22730
22731fi
22732ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22733if test "x$ac_cv_type_long_long" = xyes; then :
22734
22735cat >>confdefs.h <<_ACEOF
22736#define HAVE_LONG_LONG 1
22737_ACEOF
22738
22739
22740fi
22741
22742# The cast to long int works around a bug in the HP C Compiler
22743# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22744# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22745# This bug is HP SR number 8606223364.
22746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
22747$as_echo_n "checking size of short... " >&6; }
22748if ${ac_cv_sizeof_short+:} false; then :
22749  $as_echo_n "(cached) " >&6
22750else
22751  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
22752
22753else
22754  if test "$ac_cv_type_short" = yes; then
22755     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22757as_fn_error 77 "cannot compute sizeof (short)
22758See \`config.log' for more details" "$LINENO" 5; }
22759   else
22760     ac_cv_sizeof_short=0
22761   fi
22762fi
22763
22764fi
22765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
22766$as_echo "$ac_cv_sizeof_short" >&6; }
22767
22768
22769
22770cat >>confdefs.h <<_ACEOF
22771#define SIZEOF_SHORT $ac_cv_sizeof_short
22772_ACEOF
22773
22774
22775# The cast to long int works around a bug in the HP C Compiler
22776# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22777# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22778# This bug is HP SR number 8606223364.
22779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
22780$as_echo_n "checking size of int... " >&6; }
22781if ${ac_cv_sizeof_int+:} false; then :
22782  $as_echo_n "(cached) " >&6
22783else
22784  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
22785
22786else
22787  if test "$ac_cv_type_int" = yes; then
22788     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22789$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22790as_fn_error 77 "cannot compute sizeof (int)
22791See \`config.log' for more details" "$LINENO" 5; }
22792   else
22793     ac_cv_sizeof_int=0
22794   fi
22795fi
22796
22797fi
22798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
22799$as_echo "$ac_cv_sizeof_int" >&6; }
22800
22801
22802
22803cat >>confdefs.h <<_ACEOF
22804#define SIZEOF_INT $ac_cv_sizeof_int
22805_ACEOF
22806
22807
22808# The cast to long int works around a bug in the HP C Compiler
22809# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22810# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22811# This bug is HP SR number 8606223364.
22812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
22813$as_echo_n "checking size of long... " >&6; }
22814if ${ac_cv_sizeof_long+:} false; then :
22815  $as_echo_n "(cached) " >&6
22816else
22817  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
22818
22819else
22820  if test "$ac_cv_type_long" = yes; then
22821     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22823as_fn_error 77 "cannot compute sizeof (long)
22824See \`config.log' for more details" "$LINENO" 5; }
22825   else
22826     ac_cv_sizeof_long=0
22827   fi
22828fi
22829
22830fi
22831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
22832$as_echo "$ac_cv_sizeof_long" >&6; }
22833
22834
22835
22836cat >>confdefs.h <<_ACEOF
22837#define SIZEOF_LONG $ac_cv_sizeof_long
22838_ACEOF
22839
22840
22841
22842case "$ac_cv_type_long_long" in
22843 no)
22844    ;;
22845 *)
22846    # The cast to long int works around a bug in the HP C Compiler
22847# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22848# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22849# This bug is HP SR number 8606223364.
22850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
22851$as_echo_n "checking size of long long... " >&6; }
22852if ${ac_cv_sizeof_long_long+:} false; then :
22853  $as_echo_n "(cached) " >&6
22854else
22855  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
22856
22857else
22858  if test "$ac_cv_type_long_long" = yes; then
22859     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22861as_fn_error 77 "cannot compute sizeof (long long)
22862See \`config.log' for more details" "$LINENO" 5; }
22863   else
22864     ac_cv_sizeof_long_long=0
22865   fi
22866fi
22867
22868fi
22869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
22870$as_echo "$ac_cv_sizeof_long_long" >&6; }
22871
22872
22873
22874cat >>confdefs.h <<_ACEOF
22875#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22876_ACEOF
22877
22878
22879    ;;
22880esac
22881
22882case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
22883 *yes)
22884    # We have a typedef for s_char.  Might as well believe it...
22885    ;;
22886 no0no)
22887    # We have signed chars, can't say 'signed char', no s_char typedef.
22888
22889$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22890
22891    ;;
22892 no1no)
22893    # We have signed chars, can say 'signed char', no s_char typedef.
22894
22895$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22896
22897    ;;
22898 yes0no)
22899    # We have unsigned chars, can't say 'signed char', no s_char typedef.
22900    as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
22901    ;;
22902 yes1no)
22903    # We have unsigned chars, can say 'signed char', no s_char typedef.
22904
22905$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22906
22907    ;;
22908esac
22909
22910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22911$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22912if ${ac_cv_type_uid_t+:} false; then :
22913  $as_echo_n "(cached) " >&6
22914else
22915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22916/* end confdefs.h.  */
22917#include <sys/types.h>
22918
22919_ACEOF
22920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22921  $EGREP "uid_t" >/dev/null 2>&1; then :
22922  ac_cv_type_uid_t=yes
22923else
22924  ac_cv_type_uid_t=no
22925fi
22926rm -f conftest*
22927
22928fi
22929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22930$as_echo "$ac_cv_type_uid_t" >&6; }
22931if test $ac_cv_type_uid_t = no; then
22932
22933$as_echo "#define uid_t int" >>confdefs.h
22934
22935
22936$as_echo "#define gid_t int" >>confdefs.h
22937
22938fi
22939
22940
22941
22942
22943
22944
22945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
22946$as_echo_n "checking if we're including debugging code... " >&6; }
22947# Check whether --enable-debugging was given.
22948if test "${enable_debugging+set}" = set; then :
22949  enableval=$enable_debugging; ntp_ok=$enableval
22950else
22951  ntp_ok=yes
22952
22953fi
22954
22955case "$ntp_ok" in
22956 yes)
22957
22958$as_echo "#define DEBUG 1" >>confdefs.h
22959
22960esac
22961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22962$as_echo "$ntp_ok" >&6; }
22963
22964
22965
22966# check if we can compile with pthreads
22967for ac_header in semaphore.h
22968do :
22969  ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
22970if test "x$ac_cv_header_semaphore_h" = xyes; then :
22971  cat >>confdefs.h <<_ACEOF
22972#define HAVE_SEMAPHORE_H 1
22973_ACEOF
22974
22975fi
22976
22977done
22978
22979for ac_func in socketpair
22980do :
22981  ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
22982if test "x$ac_cv_func_socketpair" = xyes; then :
22983  cat >>confdefs.h <<_ACEOF
22984#define HAVE_SOCKETPAIR 1
22985_ACEOF
22986
22987fi
22988done
22989
22990# Check whether --enable-thread-support was given.
22991if test "${enable_thread_support+set}" = set; then :
22992  enableval=$enable_thread_support;
22993else
22994  enable_thread_support=yes
22995
22996fi
22997
22998have_pthreads=no
22999case "$enable_thread_support" in
23000 no) ;;
23001 *)
23002    ol_found_pthreads=no
23003
23004
23005
23006ac_ext=c
23007ac_cpp='$CPP $CPPFLAGS'
23008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23010ac_compiler_gnu=$ac_cv_c_compiler_gnu
23011
23012# OpenLDAP --with-threads
23013
23014# Check whether --with-threads was given.
23015if test "${with_threads+set}" = set; then :
23016  withval=$with_threads;
23017	ol_arg=invalid
23018	for ol_val in auto nt posix mach pth lwp yes no manual  ; do
23019		if test "$withval" = "$ol_val" ; then
23020			ol_arg="$ol_val"
23021		fi
23022	done
23023	if test "$ol_arg" = "invalid" ; then
23024		as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
23025	fi
23026	ol_with_threads="$ol_arg"
23027
23028else
23029  	ol_with_threads="auto"
23030fi
23031# end --with-threads
23032
23033
23034case "$ol_with_threads$host" in
23035 auto*-*-solaris2.[0-6])
23036        ol_with_threads=no
23037    ;;
23038esac
23039
23040
23041ol_aix_threads=no
23042case "$host" in
23043*-*-aix*) 	if test -z "$CC" ; then
23044		case "$ol_with_threads" in
23045		auto | yes |  posix) ol_aix_threads=yes ;;
23046		esac
23047	fi
23048;;
23049esac
23050
23051if test $ol_aix_threads = yes ; then
23052	if test -z "${CC}" ; then
23053		for ac_prog in cc_r xlc_r cc
23054do
23055  # Extract the first word of "$ac_prog", so it can be a program name with args.
23056set dummy $ac_prog; ac_word=$2
23057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23058$as_echo_n "checking for $ac_word... " >&6; }
23059if ${ac_cv_prog_CC+:} false; then :
23060  $as_echo_n "(cached) " >&6
23061else
23062  if test -n "$CC"; then
23063  ac_cv_prog_CC="$CC" # Let the user override the test.
23064else
23065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23066for as_dir in $PATH
23067do
23068  IFS=$as_save_IFS
23069  test -z "$as_dir" && as_dir=.
23070    for ac_exec_ext in '' $ac_executable_extensions; do
23071  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23072    ac_cv_prog_CC="$ac_prog"
23073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23074    break 2
23075  fi
23076done
23077  done
23078IFS=$as_save_IFS
23079
23080fi
23081fi
23082CC=$ac_cv_prog_CC
23083if test -n "$CC"; then
23084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
23085$as_echo "$CC" >&6; }
23086else
23087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23088$as_echo "no" >&6; }
23089fi
23090
23091
23092  test -n "$CC" && break
23093done
23094
23095
23096		if test "$CC" = cc ; then
23097						if test $ol_with_threads != auto ; then
23098				as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
23099			else
23100				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
23101$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
23102			fi
23103			ol_with_threads=no
23104  		fi
23105	fi
23106
23107	case ${CC} in cc_r | xlc_r)
23108		ol_with_threads=posix
23109		ol_cv_pthread_create=yes
23110		;;
23111	esac
23112fi
23113
23114ol_link_threads=no
23115# OpenLDAP --with-yielding_select
23116
23117# Check whether --with-yielding_select was given.
23118if test "${with_yielding_select+set}" = set; then :
23119  withval=$with_yielding_select;
23120	ol_arg=invalid
23121	for ol_val in auto yes no manual  ; do
23122		if test "$withval" = "$ol_val" ; then
23123			ol_arg="$ol_val"
23124		fi
23125	done
23126	if test "$ol_arg" = "invalid" ; then
23127		as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
23128	fi
23129	ol_with_yielding_select="$ol_arg"
23130
23131else
23132  	ol_with_yielding_select="auto"
23133fi
23134# end --with-yielding_select
23135
23136
23137case $ol_with_threads in auto | yes | nt)
23138
23139
23140	ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
23141if test "x$ac_cv_func__beginthread" = xyes; then :
23142
23143fi
23144
23145
23146	if test $ac_cv_func__beginthread = yes ; then
23147
23148$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
23149
23150		ol_cv_nt_threads=yes
23151	fi
23152
23153
23154	if test "$ol_cv_nt_threads" = yes ; then
23155		ol_link_threads=nt
23156		ol_with_threads=found
23157		ol_with_yielding_select=yes
23158
23159
23160$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
23161
23162
23163$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
23164
23165	fi
23166
23167	if test $ol_with_threads = nt ; then
23168		as_fn_error $? "could not locate NT Threads" "$LINENO" 5
23169	fi
23170	;;
23171esac
23172
23173case $ol_with_threads in auto | yes | posix)
23174
23175	for ac_header in pthread.h
23176do :
23177  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
23178if test "x$ac_cv_header_pthread_h" = xyes; then :
23179  cat >>confdefs.h <<_ACEOF
23180#define HAVE_PTHREAD_H 1
23181_ACEOF
23182
23183fi
23184
23185done
23186
23187
23188	if test $ac_cv_header_pthread_h = yes ; then
23189		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
23190$as_echo_n "checking POSIX thread version... " >&6; }
23191if ${ol_cv_pthread_version+:} false; then :
23192  $as_echo_n "(cached) " >&6
23193else
23194
23195	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23196/* end confdefs.h.  */
23197
23198#		include <pthread.h>
23199
23200int
23201main ()
23202{
23203
23204		int i = PTHREAD_CREATE_JOINABLE;
23205
23206  ;
23207  return 0;
23208}
23209_ACEOF
23210if ac_fn_c_try_compile "$LINENO"; then :
23211
23212	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23213/* end confdefs.h.  */
23214#include <pthread.h>
23215
23216_ACEOF
23217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23218  $EGREP "pthread_detach" >/dev/null 2>&1; then :
23219  ol_cv_pthread_version=10
23220else
23221  ol_cv_pthread_version=8
23222fi
23223rm -f conftest*
23224
23225else
23226
23227	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23228/* end confdefs.h.  */
23229
23230#		include <pthread.h>
23231#		ifdef PTHREAD_CREATE_UNDETACHED
23232		draft7
23233#		endif
23234
23235_ACEOF
23236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23237  $EGREP "draft7" >/dev/null 2>&1; then :
23238  ol_cv_pthread_version=7
23239else
23240
23241	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23242/* end confdefs.h.  */
23243#include <pthread.h>
23244
23245_ACEOF
23246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23247  $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
23248  ol_cv_pthread_version=6
23249else
23250
23251	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23252/* end confdefs.h.  */
23253
23254#		include <pthread.h>
23255#ifdef		PTHREAD_MUTEX_INITIALIZER
23256		draft5
23257#endif
23258
23259_ACEOF
23260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23261  $EGREP "draft5" >/dev/null 2>&1; then :
23262  ol_cv_pthread_version=5
23263else
23264  ol_cv_pthread_version=4
23265fi
23266rm -f conftest*
23267
23268fi
23269rm -f conftest*
23270
23271fi
23272rm -f conftest*
23273
23274fi
23275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23276
23277fi
23278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
23279$as_echo "$ol_cv_pthread_version" >&6; }
23280
23281
23282		if test $ol_cv_pthread_version != 0 ; then
23283
23284cat >>confdefs.h <<_ACEOF
23285#define HAVE_PTHREADS $ol_cv_pthread_version
23286_ACEOF
23287
23288		else
23289			as_fn_error $? "unknown pthread version" "$LINENO" 5
23290		fi
23291
23292		# consider threads found
23293		ol_with_threads=found
23294
23295
23296	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
23297$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
23298if ${ol_cv_header_linux_threads+:} false; then :
23299  $as_echo_n "(cached) " >&6
23300else
23301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23302/* end confdefs.h.  */
23303#include <pthread.h>
23304_ACEOF
23305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23306  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
23307  ol_cv_header_linux_threads=yes
23308else
23309  ol_cv_header_linux_threads=no
23310fi
23311rm -f conftest*
23312
23313
23314fi
23315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
23316$as_echo "$ol_cv_header_linux_threads" >&6; }
23317	if test $ol_cv_header_linux_threads = yes; then
23318
23319$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
23320
23321	fi
23322
23323
23324	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
23325$as_echo_n "checking for GNU Pth pthread.h... " >&6; }
23326if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
23327  $as_echo_n "(cached) " >&6
23328else
23329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23330/* end confdefs.h.  */
23331#include <pthread.h>
23332#ifdef _POSIX_THREAD_IS_GNU_PTH
23333	__gnu_pth__;
23334#endif
23335
23336_ACEOF
23337if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23338  $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
23339  ol_cv_header_gnu_pth_pthread_h=yes
23340else
23341  ol_cv_header_gnu_pth_pthread_h=no
23342fi
23343rm -f conftest*
23344
23345
23346fi
23347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
23348$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
23349
23350
23351		if test $ol_cv_header_gnu_pth_pthread_h = no ; then
23352			for ac_header in sched.h
23353do :
23354  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
23355if test "x$ac_cv_header_sched_h" = xyes; then :
23356  cat >>confdefs.h <<_ACEOF
23357#define HAVE_SCHED_H 1
23358_ACEOF
23359
23360fi
23361
23362done
23363
23364		fi
23365
23366
23367				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
23368$as_echo_n "checking for pthread_create in default libraries... " >&6; }
23369if ${ol_cv_pthread_create+:} false; then :
23370  $as_echo_n "(cached) " >&6
23371else
23372
23373			if test "$cross_compiling" = yes; then :
23374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23375/* end confdefs.h.  */
23376
23377/* pthread test headers */
23378#include <pthread.h>
23379#if HAVE_PTHREADS < 7
23380#include <errno.h>
23381#endif
23382#ifndef NULL
23383#define NULL (void*)0
23384#endif
23385
23386static void *task(p)
23387	void *p;
23388{
23389	return (void *) (p == NULL);
23390}
23391
23392int
23393main ()
23394{
23395
23396	/* pthread test function */
23397#ifndef PTHREAD_CREATE_DETACHED
23398#define	PTHREAD_CREATE_DETACHED	1
23399#endif
23400	pthread_t t;
23401	int status;
23402	int detach = PTHREAD_CREATE_DETACHED;
23403
23404#if HAVE_PTHREADS > 4
23405	/* Final pthreads */
23406	pthread_attr_t attr;
23407
23408	status = pthread_attr_init(&attr);
23409	if( status ) return status;
23410
23411#if HAVE_PTHREADS < 7
23412	status = pthread_attr_setdetachstate(&attr, &detach);
23413	if( status < 0 ) status = errno;
23414#else
23415	status = pthread_attr_setdetachstate(&attr, detach);
23416#endif
23417	if( status ) return status;
23418	status = pthread_create( &t, &attr, task, NULL );
23419#if HAVE_PTHREADS < 7
23420	if( status < 0 ) status = errno;
23421#endif
23422	if( status ) return status;
23423#else
23424	/* Draft 4 pthreads */
23425	status = pthread_create( &t, pthread_attr_default, task, NULL );
23426	if( status ) return errno;
23427
23428	/* give thread a chance to complete */
23429	/* it should remain joinable and hence detachable */
23430	sleep( 1 );
23431
23432	status = pthread_detach( &t );
23433	if( status ) return errno;
23434#endif
23435
23436#ifdef HAVE_LINUX_THREADS
23437	pthread_kill_other_threads_np();
23438#endif
23439
23440	return 0;
23441
23442  ;
23443  return 0;
23444}
23445_ACEOF
23446if ac_fn_c_try_link "$LINENO"; then :
23447  ol_cv_pthread_create=yes
23448else
23449  ol_cv_pthread_create=no
23450fi
23451rm -f core conftest.err conftest.$ac_objext \
23452    conftest$ac_exeext conftest.$ac_ext
23453else
23454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23455/* end confdefs.h.  */
23456
23457
23458/* pthread test headers */
23459#include <pthread.h>
23460#if HAVE_PTHREADS < 7
23461#include <errno.h>
23462#endif
23463#ifndef NULL
23464#define NULL (void*)0
23465#endif
23466
23467static void *task(p)
23468	void *p;
23469{
23470	return (void *) (p == NULL);
23471}
23472
23473
23474int main(argc, argv)
23475	int argc;
23476	char **argv;
23477{
23478
23479	/* pthread test function */
23480#ifndef PTHREAD_CREATE_DETACHED
23481#define	PTHREAD_CREATE_DETACHED	1
23482#endif
23483	pthread_t t;
23484	int status;
23485	int detach = PTHREAD_CREATE_DETACHED;
23486
23487#if HAVE_PTHREADS > 4
23488	/* Final pthreads */
23489	pthread_attr_t attr;
23490
23491	status = pthread_attr_init(&attr);
23492	if( status ) return status;
23493
23494#if HAVE_PTHREADS < 7
23495	status = pthread_attr_setdetachstate(&attr, &detach);
23496	if( status < 0 ) status = errno;
23497#else
23498	status = pthread_attr_setdetachstate(&attr, detach);
23499#endif
23500	if( status ) return status;
23501	status = pthread_create( &t, &attr, task, NULL );
23502#if HAVE_PTHREADS < 7
23503	if( status < 0 ) status = errno;
23504#endif
23505	if( status ) return status;
23506#else
23507	/* Draft 4 pthreads */
23508	status = pthread_create( &t, pthread_attr_default, task, NULL );
23509	if( status ) return errno;
23510
23511	/* give thread a chance to complete */
23512	/* it should remain joinable and hence detachable */
23513	sleep( 1 );
23514
23515	status = pthread_detach( &t );
23516	if( status ) return errno;
23517#endif
23518
23519#ifdef HAVE_LINUX_THREADS
23520	pthread_kill_other_threads_np();
23521#endif
23522
23523	return 0;
23524
23525}
23526
23527_ACEOF
23528if ac_fn_c_try_run "$LINENO"; then :
23529  ol_cv_pthread_create=yes
23530else
23531  ol_cv_pthread_create=no
23532fi
23533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23534  conftest.$ac_objext conftest.beam conftest.$ac_ext
23535fi
23536
23537fi
23538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
23539$as_echo "$ol_cv_pthread_create" >&6; }
23540
23541		if test $ol_cv_pthread_create != no ; then
23542			ol_link_threads=posix
23543			ol_link_pthreads=""
23544		fi
23545
23546		# Pthread try link: -kthread (ol_cv_pthread_kthread)
23547if test "$ol_link_threads" = no ; then
23548	# try -kthread
23549	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
23550$as_echo_n "checking for pthread link with -kthread... " >&6; }
23551if ${ol_cv_pthread_kthread+:} false; then :
23552  $as_echo_n "(cached) " >&6
23553else
23554
23555		# save the flags
23556		ol_LIBS="$LIBS"
23557		LIBS="-kthread $LIBS"
23558
23559		if test "$cross_compiling" = yes; then :
23560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23561/* end confdefs.h.  */
23562
23563/* pthread test headers */
23564#include <pthread.h>
23565#if HAVE_PTHREADS < 7
23566#include <errno.h>
23567#endif
23568#ifndef NULL
23569#define NULL (void*)0
23570#endif
23571
23572static void *task(p)
23573	void *p;
23574{
23575	return (void *) (p == NULL);
23576}
23577
23578int
23579main ()
23580{
23581
23582	/* pthread test function */
23583#ifndef PTHREAD_CREATE_DETACHED
23584#define	PTHREAD_CREATE_DETACHED	1
23585#endif
23586	pthread_t t;
23587	int status;
23588	int detach = PTHREAD_CREATE_DETACHED;
23589
23590#if HAVE_PTHREADS > 4
23591	/* Final pthreads */
23592	pthread_attr_t attr;
23593
23594	status = pthread_attr_init(&attr);
23595	if( status ) return status;
23596
23597#if HAVE_PTHREADS < 7
23598	status = pthread_attr_setdetachstate(&attr, &detach);
23599	if( status < 0 ) status = errno;
23600#else
23601	status = pthread_attr_setdetachstate(&attr, detach);
23602#endif
23603	if( status ) return status;
23604	status = pthread_create( &t, &attr, task, NULL );
23605#if HAVE_PTHREADS < 7
23606	if( status < 0 ) status = errno;
23607#endif
23608	if( status ) return status;
23609#else
23610	/* Draft 4 pthreads */
23611	status = pthread_create( &t, pthread_attr_default, task, NULL );
23612	if( status ) return errno;
23613
23614	/* give thread a chance to complete */
23615	/* it should remain joinable and hence detachable */
23616	sleep( 1 );
23617
23618	status = pthread_detach( &t );
23619	if( status ) return errno;
23620#endif
23621
23622#ifdef HAVE_LINUX_THREADS
23623	pthread_kill_other_threads_np();
23624#endif
23625
23626	return 0;
23627
23628  ;
23629  return 0;
23630}
23631_ACEOF
23632if ac_fn_c_try_link "$LINENO"; then :
23633  ol_cv_pthread_kthread=yes
23634else
23635  ol_cv_pthread_kthread=no
23636fi
23637rm -f core conftest.err conftest.$ac_objext \
23638    conftest$ac_exeext conftest.$ac_ext
23639else
23640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23641/* end confdefs.h.  */
23642
23643
23644/* pthread test headers */
23645#include <pthread.h>
23646#if HAVE_PTHREADS < 7
23647#include <errno.h>
23648#endif
23649#ifndef NULL
23650#define NULL (void*)0
23651#endif
23652
23653static void *task(p)
23654	void *p;
23655{
23656	return (void *) (p == NULL);
23657}
23658
23659
23660int main(argc, argv)
23661	int argc;
23662	char **argv;
23663{
23664
23665	/* pthread test function */
23666#ifndef PTHREAD_CREATE_DETACHED
23667#define	PTHREAD_CREATE_DETACHED	1
23668#endif
23669	pthread_t t;
23670	int status;
23671	int detach = PTHREAD_CREATE_DETACHED;
23672
23673#if HAVE_PTHREADS > 4
23674	/* Final pthreads */
23675	pthread_attr_t attr;
23676
23677	status = pthread_attr_init(&attr);
23678	if( status ) return status;
23679
23680#if HAVE_PTHREADS < 7
23681	status = pthread_attr_setdetachstate(&attr, &detach);
23682	if( status < 0 ) status = errno;
23683#else
23684	status = pthread_attr_setdetachstate(&attr, detach);
23685#endif
23686	if( status ) return status;
23687	status = pthread_create( &t, &attr, task, NULL );
23688#if HAVE_PTHREADS < 7
23689	if( status < 0 ) status = errno;
23690#endif
23691	if( status ) return status;
23692#else
23693	/* Draft 4 pthreads */
23694	status = pthread_create( &t, pthread_attr_default, task, NULL );
23695	if( status ) return errno;
23696
23697	/* give thread a chance to complete */
23698	/* it should remain joinable and hence detachable */
23699	sleep( 1 );
23700
23701	status = pthread_detach( &t );
23702	if( status ) return errno;
23703#endif
23704
23705#ifdef HAVE_LINUX_THREADS
23706	pthread_kill_other_threads_np();
23707#endif
23708
23709	return 0;
23710
23711}
23712
23713_ACEOF
23714if ac_fn_c_try_run "$LINENO"; then :
23715  ol_cv_pthread_kthread=yes
23716else
23717  ol_cv_pthread_kthread=no
23718fi
23719rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23720  conftest.$ac_objext conftest.beam conftest.$ac_ext
23721fi
23722
23723
23724		# restore the LIBS
23725		LIBS="$ol_LIBS"
23726
23727fi
23728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
23729$as_echo "$ol_cv_pthread_kthread" >&6; }
23730
23731	if test $ol_cv_pthread_kthread = yes ; then
23732		ol_link_pthreads="-kthread"
23733		ol_link_threads=posix
23734	fi
23735fi
23736
23737		# Pthread try link: -pthread (ol_cv_pthread_pthread)
23738if test "$ol_link_threads" = no ; then
23739	# try -pthread
23740	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
23741$as_echo_n "checking for pthread link with -pthread... " >&6; }
23742if ${ol_cv_pthread_pthread+:} false; then :
23743  $as_echo_n "(cached) " >&6
23744else
23745
23746		# save the flags
23747		ol_LIBS="$LIBS"
23748		LIBS="-pthread $LIBS"
23749
23750		if test "$cross_compiling" = yes; then :
23751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23752/* end confdefs.h.  */
23753
23754/* pthread test headers */
23755#include <pthread.h>
23756#if HAVE_PTHREADS < 7
23757#include <errno.h>
23758#endif
23759#ifndef NULL
23760#define NULL (void*)0
23761#endif
23762
23763static void *task(p)
23764	void *p;
23765{
23766	return (void *) (p == NULL);
23767}
23768
23769int
23770main ()
23771{
23772
23773	/* pthread test function */
23774#ifndef PTHREAD_CREATE_DETACHED
23775#define	PTHREAD_CREATE_DETACHED	1
23776#endif
23777	pthread_t t;
23778	int status;
23779	int detach = PTHREAD_CREATE_DETACHED;
23780
23781#if HAVE_PTHREADS > 4
23782	/* Final pthreads */
23783	pthread_attr_t attr;
23784
23785	status = pthread_attr_init(&attr);
23786	if( status ) return status;
23787
23788#if HAVE_PTHREADS < 7
23789	status = pthread_attr_setdetachstate(&attr, &detach);
23790	if( status < 0 ) status = errno;
23791#else
23792	status = pthread_attr_setdetachstate(&attr, detach);
23793#endif
23794	if( status ) return status;
23795	status = pthread_create( &t, &attr, task, NULL );
23796#if HAVE_PTHREADS < 7
23797	if( status < 0 ) status = errno;
23798#endif
23799	if( status ) return status;
23800#else
23801	/* Draft 4 pthreads */
23802	status = pthread_create( &t, pthread_attr_default, task, NULL );
23803	if( status ) return errno;
23804
23805	/* give thread a chance to complete */
23806	/* it should remain joinable and hence detachable */
23807	sleep( 1 );
23808
23809	status = pthread_detach( &t );
23810	if( status ) return errno;
23811#endif
23812
23813#ifdef HAVE_LINUX_THREADS
23814	pthread_kill_other_threads_np();
23815#endif
23816
23817	return 0;
23818
23819  ;
23820  return 0;
23821}
23822_ACEOF
23823if ac_fn_c_try_link "$LINENO"; then :
23824  ol_cv_pthread_pthread=yes
23825else
23826  ol_cv_pthread_pthread=no
23827fi
23828rm -f core conftest.err conftest.$ac_objext \
23829    conftest$ac_exeext conftest.$ac_ext
23830else
23831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23832/* end confdefs.h.  */
23833
23834
23835/* pthread test headers */
23836#include <pthread.h>
23837#if HAVE_PTHREADS < 7
23838#include <errno.h>
23839#endif
23840#ifndef NULL
23841#define NULL (void*)0
23842#endif
23843
23844static void *task(p)
23845	void *p;
23846{
23847	return (void *) (p == NULL);
23848}
23849
23850
23851int main(argc, argv)
23852	int argc;
23853	char **argv;
23854{
23855
23856	/* pthread test function */
23857#ifndef PTHREAD_CREATE_DETACHED
23858#define	PTHREAD_CREATE_DETACHED	1
23859#endif
23860	pthread_t t;
23861	int status;
23862	int detach = PTHREAD_CREATE_DETACHED;
23863
23864#if HAVE_PTHREADS > 4
23865	/* Final pthreads */
23866	pthread_attr_t attr;
23867
23868	status = pthread_attr_init(&attr);
23869	if( status ) return status;
23870
23871#if HAVE_PTHREADS < 7
23872	status = pthread_attr_setdetachstate(&attr, &detach);
23873	if( status < 0 ) status = errno;
23874#else
23875	status = pthread_attr_setdetachstate(&attr, detach);
23876#endif
23877	if( status ) return status;
23878	status = pthread_create( &t, &attr, task, NULL );
23879#if HAVE_PTHREADS < 7
23880	if( status < 0 ) status = errno;
23881#endif
23882	if( status ) return status;
23883#else
23884	/* Draft 4 pthreads */
23885	status = pthread_create( &t, pthread_attr_default, task, NULL );
23886	if( status ) return errno;
23887
23888	/* give thread a chance to complete */
23889	/* it should remain joinable and hence detachable */
23890	sleep( 1 );
23891
23892	status = pthread_detach( &t );
23893	if( status ) return errno;
23894#endif
23895
23896#ifdef HAVE_LINUX_THREADS
23897	pthread_kill_other_threads_np();
23898#endif
23899
23900	return 0;
23901
23902}
23903
23904_ACEOF
23905if ac_fn_c_try_run "$LINENO"; then :
23906  ol_cv_pthread_pthread=yes
23907else
23908  ol_cv_pthread_pthread=no
23909fi
23910rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23911  conftest.$ac_objext conftest.beam conftest.$ac_ext
23912fi
23913
23914
23915		# restore the LIBS
23916		LIBS="$ol_LIBS"
23917
23918fi
23919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
23920$as_echo "$ol_cv_pthread_pthread" >&6; }
23921
23922	if test $ol_cv_pthread_pthread = yes ; then
23923		ol_link_pthreads="-pthread"
23924		ol_link_threads=posix
23925	fi
23926fi
23927
23928		# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
23929if test "$ol_link_threads" = no ; then
23930	# try -pthreads
23931	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
23932$as_echo_n "checking for pthread link with -pthreads... " >&6; }
23933if ${ol_cv_pthread_pthreads+:} false; then :
23934  $as_echo_n "(cached) " >&6
23935else
23936
23937		# save the flags
23938		ol_LIBS="$LIBS"
23939		LIBS="-pthreads $LIBS"
23940
23941		if test "$cross_compiling" = yes; then :
23942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23943/* end confdefs.h.  */
23944
23945/* pthread test headers */
23946#include <pthread.h>
23947#if HAVE_PTHREADS < 7
23948#include <errno.h>
23949#endif
23950#ifndef NULL
23951#define NULL (void*)0
23952#endif
23953
23954static void *task(p)
23955	void *p;
23956{
23957	return (void *) (p == NULL);
23958}
23959
23960int
23961main ()
23962{
23963
23964	/* pthread test function */
23965#ifndef PTHREAD_CREATE_DETACHED
23966#define	PTHREAD_CREATE_DETACHED	1
23967#endif
23968	pthread_t t;
23969	int status;
23970	int detach = PTHREAD_CREATE_DETACHED;
23971
23972#if HAVE_PTHREADS > 4
23973	/* Final pthreads */
23974	pthread_attr_t attr;
23975
23976	status = pthread_attr_init(&attr);
23977	if( status ) return status;
23978
23979#if HAVE_PTHREADS < 7
23980	status = pthread_attr_setdetachstate(&attr, &detach);
23981	if( status < 0 ) status = errno;
23982#else
23983	status = pthread_attr_setdetachstate(&attr, detach);
23984#endif
23985	if( status ) return status;
23986	status = pthread_create( &t, &attr, task, NULL );
23987#if HAVE_PTHREADS < 7
23988	if( status < 0 ) status = errno;
23989#endif
23990	if( status ) return status;
23991#else
23992	/* Draft 4 pthreads */
23993	status = pthread_create( &t, pthread_attr_default, task, NULL );
23994	if( status ) return errno;
23995
23996	/* give thread a chance to complete */
23997	/* it should remain joinable and hence detachable */
23998	sleep( 1 );
23999
24000	status = pthread_detach( &t );
24001	if( status ) return errno;
24002#endif
24003
24004#ifdef HAVE_LINUX_THREADS
24005	pthread_kill_other_threads_np();
24006#endif
24007
24008	return 0;
24009
24010  ;
24011  return 0;
24012}
24013_ACEOF
24014if ac_fn_c_try_link "$LINENO"; then :
24015  ol_cv_pthread_pthreads=yes
24016else
24017  ol_cv_pthread_pthreads=no
24018fi
24019rm -f core conftest.err conftest.$ac_objext \
24020    conftest$ac_exeext conftest.$ac_ext
24021else
24022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24023/* end confdefs.h.  */
24024
24025
24026/* pthread test headers */
24027#include <pthread.h>
24028#if HAVE_PTHREADS < 7
24029#include <errno.h>
24030#endif
24031#ifndef NULL
24032#define NULL (void*)0
24033#endif
24034
24035static void *task(p)
24036	void *p;
24037{
24038	return (void *) (p == NULL);
24039}
24040
24041
24042int main(argc, argv)
24043	int argc;
24044	char **argv;
24045{
24046
24047	/* pthread test function */
24048#ifndef PTHREAD_CREATE_DETACHED
24049#define	PTHREAD_CREATE_DETACHED	1
24050#endif
24051	pthread_t t;
24052	int status;
24053	int detach = PTHREAD_CREATE_DETACHED;
24054
24055#if HAVE_PTHREADS > 4
24056	/* Final pthreads */
24057	pthread_attr_t attr;
24058
24059	status = pthread_attr_init(&attr);
24060	if( status ) return status;
24061
24062#if HAVE_PTHREADS < 7
24063	status = pthread_attr_setdetachstate(&attr, &detach);
24064	if( status < 0 ) status = errno;
24065#else
24066	status = pthread_attr_setdetachstate(&attr, detach);
24067#endif
24068	if( status ) return status;
24069	status = pthread_create( &t, &attr, task, NULL );
24070#if HAVE_PTHREADS < 7
24071	if( status < 0 ) status = errno;
24072#endif
24073	if( status ) return status;
24074#else
24075	/* Draft 4 pthreads */
24076	status = pthread_create( &t, pthread_attr_default, task, NULL );
24077	if( status ) return errno;
24078
24079	/* give thread a chance to complete */
24080	/* it should remain joinable and hence detachable */
24081	sleep( 1 );
24082
24083	status = pthread_detach( &t );
24084	if( status ) return errno;
24085#endif
24086
24087#ifdef HAVE_LINUX_THREADS
24088	pthread_kill_other_threads_np();
24089#endif
24090
24091	return 0;
24092
24093}
24094
24095_ACEOF
24096if ac_fn_c_try_run "$LINENO"; then :
24097  ol_cv_pthread_pthreads=yes
24098else
24099  ol_cv_pthread_pthreads=no
24100fi
24101rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24102  conftest.$ac_objext conftest.beam conftest.$ac_ext
24103fi
24104
24105
24106		# restore the LIBS
24107		LIBS="$ol_LIBS"
24108
24109fi
24110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
24111$as_echo "$ol_cv_pthread_pthreads" >&6; }
24112
24113	if test $ol_cv_pthread_pthreads = yes ; then
24114		ol_link_pthreads="-pthreads"
24115		ol_link_threads=posix
24116	fi
24117fi
24118
24119		# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
24120if test "$ol_link_threads" = no ; then
24121	# try -mthreads
24122	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
24123$as_echo_n "checking for pthread link with -mthreads... " >&6; }
24124if ${ol_cv_pthread_mthreads+:} false; then :
24125  $as_echo_n "(cached) " >&6
24126else
24127
24128		# save the flags
24129		ol_LIBS="$LIBS"
24130		LIBS="-mthreads $LIBS"
24131
24132		if test "$cross_compiling" = yes; then :
24133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24134/* end confdefs.h.  */
24135
24136/* pthread test headers */
24137#include <pthread.h>
24138#if HAVE_PTHREADS < 7
24139#include <errno.h>
24140#endif
24141#ifndef NULL
24142#define NULL (void*)0
24143#endif
24144
24145static void *task(p)
24146	void *p;
24147{
24148	return (void *) (p == NULL);
24149}
24150
24151int
24152main ()
24153{
24154
24155	/* pthread test function */
24156#ifndef PTHREAD_CREATE_DETACHED
24157#define	PTHREAD_CREATE_DETACHED	1
24158#endif
24159	pthread_t t;
24160	int status;
24161	int detach = PTHREAD_CREATE_DETACHED;
24162
24163#if HAVE_PTHREADS > 4
24164	/* Final pthreads */
24165	pthread_attr_t attr;
24166
24167	status = pthread_attr_init(&attr);
24168	if( status ) return status;
24169
24170#if HAVE_PTHREADS < 7
24171	status = pthread_attr_setdetachstate(&attr, &detach);
24172	if( status < 0 ) status = errno;
24173#else
24174	status = pthread_attr_setdetachstate(&attr, detach);
24175#endif
24176	if( status ) return status;
24177	status = pthread_create( &t, &attr, task, NULL );
24178#if HAVE_PTHREADS < 7
24179	if( status < 0 ) status = errno;
24180#endif
24181	if( status ) return status;
24182#else
24183	/* Draft 4 pthreads */
24184	status = pthread_create( &t, pthread_attr_default, task, NULL );
24185	if( status ) return errno;
24186
24187	/* give thread a chance to complete */
24188	/* it should remain joinable and hence detachable */
24189	sleep( 1 );
24190
24191	status = pthread_detach( &t );
24192	if( status ) return errno;
24193#endif
24194
24195#ifdef HAVE_LINUX_THREADS
24196	pthread_kill_other_threads_np();
24197#endif
24198
24199	return 0;
24200
24201  ;
24202  return 0;
24203}
24204_ACEOF
24205if ac_fn_c_try_link "$LINENO"; then :
24206  ol_cv_pthread_mthreads=yes
24207else
24208  ol_cv_pthread_mthreads=no
24209fi
24210rm -f core conftest.err conftest.$ac_objext \
24211    conftest$ac_exeext conftest.$ac_ext
24212else
24213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24214/* end confdefs.h.  */
24215
24216
24217/* pthread test headers */
24218#include <pthread.h>
24219#if HAVE_PTHREADS < 7
24220#include <errno.h>
24221#endif
24222#ifndef NULL
24223#define NULL (void*)0
24224#endif
24225
24226static void *task(p)
24227	void *p;
24228{
24229	return (void *) (p == NULL);
24230}
24231
24232
24233int main(argc, argv)
24234	int argc;
24235	char **argv;
24236{
24237
24238	/* pthread test function */
24239#ifndef PTHREAD_CREATE_DETACHED
24240#define	PTHREAD_CREATE_DETACHED	1
24241#endif
24242	pthread_t t;
24243	int status;
24244	int detach = PTHREAD_CREATE_DETACHED;
24245
24246#if HAVE_PTHREADS > 4
24247	/* Final pthreads */
24248	pthread_attr_t attr;
24249
24250	status = pthread_attr_init(&attr);
24251	if( status ) return status;
24252
24253#if HAVE_PTHREADS < 7
24254	status = pthread_attr_setdetachstate(&attr, &detach);
24255	if( status < 0 ) status = errno;
24256#else
24257	status = pthread_attr_setdetachstate(&attr, detach);
24258#endif
24259	if( status ) return status;
24260	status = pthread_create( &t, &attr, task, NULL );
24261#if HAVE_PTHREADS < 7
24262	if( status < 0 ) status = errno;
24263#endif
24264	if( status ) return status;
24265#else
24266	/* Draft 4 pthreads */
24267	status = pthread_create( &t, pthread_attr_default, task, NULL );
24268	if( status ) return errno;
24269
24270	/* give thread a chance to complete */
24271	/* it should remain joinable and hence detachable */
24272	sleep( 1 );
24273
24274	status = pthread_detach( &t );
24275	if( status ) return errno;
24276#endif
24277
24278#ifdef HAVE_LINUX_THREADS
24279	pthread_kill_other_threads_np();
24280#endif
24281
24282	return 0;
24283
24284}
24285
24286_ACEOF
24287if ac_fn_c_try_run "$LINENO"; then :
24288  ol_cv_pthread_mthreads=yes
24289else
24290  ol_cv_pthread_mthreads=no
24291fi
24292rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24293  conftest.$ac_objext conftest.beam conftest.$ac_ext
24294fi
24295
24296
24297		# restore the LIBS
24298		LIBS="$ol_LIBS"
24299
24300fi
24301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
24302$as_echo "$ol_cv_pthread_mthreads" >&6; }
24303
24304	if test $ol_cv_pthread_mthreads = yes ; then
24305		ol_link_pthreads="-mthreads"
24306		ol_link_threads=posix
24307	fi
24308fi
24309
24310		# Pthread try link: -thread (ol_cv_pthread_thread)
24311if test "$ol_link_threads" = no ; then
24312	# try -thread
24313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
24314$as_echo_n "checking for pthread link with -thread... " >&6; }
24315if ${ol_cv_pthread_thread+:} false; then :
24316  $as_echo_n "(cached) " >&6
24317else
24318
24319		# save the flags
24320		ol_LIBS="$LIBS"
24321		LIBS="-thread $LIBS"
24322
24323		if test "$cross_compiling" = yes; then :
24324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24325/* end confdefs.h.  */
24326
24327/* pthread test headers */
24328#include <pthread.h>
24329#if HAVE_PTHREADS < 7
24330#include <errno.h>
24331#endif
24332#ifndef NULL
24333#define NULL (void*)0
24334#endif
24335
24336static void *task(p)
24337	void *p;
24338{
24339	return (void *) (p == NULL);
24340}
24341
24342int
24343main ()
24344{
24345
24346	/* pthread test function */
24347#ifndef PTHREAD_CREATE_DETACHED
24348#define	PTHREAD_CREATE_DETACHED	1
24349#endif
24350	pthread_t t;
24351	int status;
24352	int detach = PTHREAD_CREATE_DETACHED;
24353
24354#if HAVE_PTHREADS > 4
24355	/* Final pthreads */
24356	pthread_attr_t attr;
24357
24358	status = pthread_attr_init(&attr);
24359	if( status ) return status;
24360
24361#if HAVE_PTHREADS < 7
24362	status = pthread_attr_setdetachstate(&attr, &detach);
24363	if( status < 0 ) status = errno;
24364#else
24365	status = pthread_attr_setdetachstate(&attr, detach);
24366#endif
24367	if( status ) return status;
24368	status = pthread_create( &t, &attr, task, NULL );
24369#if HAVE_PTHREADS < 7
24370	if( status < 0 ) status = errno;
24371#endif
24372	if( status ) return status;
24373#else
24374	/* Draft 4 pthreads */
24375	status = pthread_create( &t, pthread_attr_default, task, NULL );
24376	if( status ) return errno;
24377
24378	/* give thread a chance to complete */
24379	/* it should remain joinable and hence detachable */
24380	sleep( 1 );
24381
24382	status = pthread_detach( &t );
24383	if( status ) return errno;
24384#endif
24385
24386#ifdef HAVE_LINUX_THREADS
24387	pthread_kill_other_threads_np();
24388#endif
24389
24390	return 0;
24391
24392  ;
24393  return 0;
24394}
24395_ACEOF
24396if ac_fn_c_try_link "$LINENO"; then :
24397  ol_cv_pthread_thread=yes
24398else
24399  ol_cv_pthread_thread=no
24400fi
24401rm -f core conftest.err conftest.$ac_objext \
24402    conftest$ac_exeext conftest.$ac_ext
24403else
24404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24405/* end confdefs.h.  */
24406
24407
24408/* pthread test headers */
24409#include <pthread.h>
24410#if HAVE_PTHREADS < 7
24411#include <errno.h>
24412#endif
24413#ifndef NULL
24414#define NULL (void*)0
24415#endif
24416
24417static void *task(p)
24418	void *p;
24419{
24420	return (void *) (p == NULL);
24421}
24422
24423
24424int main(argc, argv)
24425	int argc;
24426	char **argv;
24427{
24428
24429	/* pthread test function */
24430#ifndef PTHREAD_CREATE_DETACHED
24431#define	PTHREAD_CREATE_DETACHED	1
24432#endif
24433	pthread_t t;
24434	int status;
24435	int detach = PTHREAD_CREATE_DETACHED;
24436
24437#if HAVE_PTHREADS > 4
24438	/* Final pthreads */
24439	pthread_attr_t attr;
24440
24441	status = pthread_attr_init(&attr);
24442	if( status ) return status;
24443
24444#if HAVE_PTHREADS < 7
24445	status = pthread_attr_setdetachstate(&attr, &detach);
24446	if( status < 0 ) status = errno;
24447#else
24448	status = pthread_attr_setdetachstate(&attr, detach);
24449#endif
24450	if( status ) return status;
24451	status = pthread_create( &t, &attr, task, NULL );
24452#if HAVE_PTHREADS < 7
24453	if( status < 0 ) status = errno;
24454#endif
24455	if( status ) return status;
24456#else
24457	/* Draft 4 pthreads */
24458	status = pthread_create( &t, pthread_attr_default, task, NULL );
24459	if( status ) return errno;
24460
24461	/* give thread a chance to complete */
24462	/* it should remain joinable and hence detachable */
24463	sleep( 1 );
24464
24465	status = pthread_detach( &t );
24466	if( status ) return errno;
24467#endif
24468
24469#ifdef HAVE_LINUX_THREADS
24470	pthread_kill_other_threads_np();
24471#endif
24472
24473	return 0;
24474
24475}
24476
24477_ACEOF
24478if ac_fn_c_try_run "$LINENO"; then :
24479  ol_cv_pthread_thread=yes
24480else
24481  ol_cv_pthread_thread=no
24482fi
24483rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24484  conftest.$ac_objext conftest.beam conftest.$ac_ext
24485fi
24486
24487
24488		# restore the LIBS
24489		LIBS="$ol_LIBS"
24490
24491fi
24492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
24493$as_echo "$ol_cv_pthread_thread" >&6; }
24494
24495	if test $ol_cv_pthread_thread = yes ; then
24496		ol_link_pthreads="-thread"
24497		ol_link_threads=posix
24498	fi
24499fi
24500
24501
24502		# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
24503if test "$ol_link_threads" = no ; then
24504	# try -lpthread -lmach -lexc -lc_r
24505	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
24506$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
24507if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
24508  $as_echo_n "(cached) " >&6
24509else
24510
24511		# save the flags
24512		ol_LIBS="$LIBS"
24513		LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
24514
24515		if test "$cross_compiling" = yes; then :
24516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24517/* end confdefs.h.  */
24518
24519/* pthread test headers */
24520#include <pthread.h>
24521#if HAVE_PTHREADS < 7
24522#include <errno.h>
24523#endif
24524#ifndef NULL
24525#define NULL (void*)0
24526#endif
24527
24528static void *task(p)
24529	void *p;
24530{
24531	return (void *) (p == NULL);
24532}
24533
24534int
24535main ()
24536{
24537
24538	/* pthread test function */
24539#ifndef PTHREAD_CREATE_DETACHED
24540#define	PTHREAD_CREATE_DETACHED	1
24541#endif
24542	pthread_t t;
24543	int status;
24544	int detach = PTHREAD_CREATE_DETACHED;
24545
24546#if HAVE_PTHREADS > 4
24547	/* Final pthreads */
24548	pthread_attr_t attr;
24549
24550	status = pthread_attr_init(&attr);
24551	if( status ) return status;
24552
24553#if HAVE_PTHREADS < 7
24554	status = pthread_attr_setdetachstate(&attr, &detach);
24555	if( status < 0 ) status = errno;
24556#else
24557	status = pthread_attr_setdetachstate(&attr, detach);
24558#endif
24559	if( status ) return status;
24560	status = pthread_create( &t, &attr, task, NULL );
24561#if HAVE_PTHREADS < 7
24562	if( status < 0 ) status = errno;
24563#endif
24564	if( status ) return status;
24565#else
24566	/* Draft 4 pthreads */
24567	status = pthread_create( &t, pthread_attr_default, task, NULL );
24568	if( status ) return errno;
24569
24570	/* give thread a chance to complete */
24571	/* it should remain joinable and hence detachable */
24572	sleep( 1 );
24573
24574	status = pthread_detach( &t );
24575	if( status ) return errno;
24576#endif
24577
24578#ifdef HAVE_LINUX_THREADS
24579	pthread_kill_other_threads_np();
24580#endif
24581
24582	return 0;
24583
24584  ;
24585  return 0;
24586}
24587_ACEOF
24588if ac_fn_c_try_link "$LINENO"; then :
24589  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
24590else
24591  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
24592fi
24593rm -f core conftest.err conftest.$ac_objext \
24594    conftest$ac_exeext conftest.$ac_ext
24595else
24596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24597/* end confdefs.h.  */
24598
24599
24600/* pthread test headers */
24601#include <pthread.h>
24602#if HAVE_PTHREADS < 7
24603#include <errno.h>
24604#endif
24605#ifndef NULL
24606#define NULL (void*)0
24607#endif
24608
24609static void *task(p)
24610	void *p;
24611{
24612	return (void *) (p == NULL);
24613}
24614
24615
24616int main(argc, argv)
24617	int argc;
24618	char **argv;
24619{
24620
24621	/* pthread test function */
24622#ifndef PTHREAD_CREATE_DETACHED
24623#define	PTHREAD_CREATE_DETACHED	1
24624#endif
24625	pthread_t t;
24626	int status;
24627	int detach = PTHREAD_CREATE_DETACHED;
24628
24629#if HAVE_PTHREADS > 4
24630	/* Final pthreads */
24631	pthread_attr_t attr;
24632
24633	status = pthread_attr_init(&attr);
24634	if( status ) return status;
24635
24636#if HAVE_PTHREADS < 7
24637	status = pthread_attr_setdetachstate(&attr, &detach);
24638	if( status < 0 ) status = errno;
24639#else
24640	status = pthread_attr_setdetachstate(&attr, detach);
24641#endif
24642	if( status ) return status;
24643	status = pthread_create( &t, &attr, task, NULL );
24644#if HAVE_PTHREADS < 7
24645	if( status < 0 ) status = errno;
24646#endif
24647	if( status ) return status;
24648#else
24649	/* Draft 4 pthreads */
24650	status = pthread_create( &t, pthread_attr_default, task, NULL );
24651	if( status ) return errno;
24652
24653	/* give thread a chance to complete */
24654	/* it should remain joinable and hence detachable */
24655	sleep( 1 );
24656
24657	status = pthread_detach( &t );
24658	if( status ) return errno;
24659#endif
24660
24661#ifdef HAVE_LINUX_THREADS
24662	pthread_kill_other_threads_np();
24663#endif
24664
24665	return 0;
24666
24667}
24668
24669_ACEOF
24670if ac_fn_c_try_run "$LINENO"; then :
24671  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
24672else
24673  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
24674fi
24675rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24676  conftest.$ac_objext conftest.beam conftest.$ac_ext
24677fi
24678
24679
24680		# restore the LIBS
24681		LIBS="$ol_LIBS"
24682
24683fi
24684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
24685$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
24686
24687	if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
24688		ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
24689		ol_link_threads=posix
24690	fi
24691fi
24692
24693		# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
24694if test "$ol_link_threads" = no ; then
24695	# try -lpthread -lmach -lexc
24696	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
24697$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
24698if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
24699  $as_echo_n "(cached) " >&6
24700else
24701
24702		# save the flags
24703		ol_LIBS="$LIBS"
24704		LIBS="-lpthread -lmach -lexc $LIBS"
24705
24706		if test "$cross_compiling" = yes; then :
24707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24708/* end confdefs.h.  */
24709
24710/* pthread test headers */
24711#include <pthread.h>
24712#if HAVE_PTHREADS < 7
24713#include <errno.h>
24714#endif
24715#ifndef NULL
24716#define NULL (void*)0
24717#endif
24718
24719static void *task(p)
24720	void *p;
24721{
24722	return (void *) (p == NULL);
24723}
24724
24725int
24726main ()
24727{
24728
24729	/* pthread test function */
24730#ifndef PTHREAD_CREATE_DETACHED
24731#define	PTHREAD_CREATE_DETACHED	1
24732#endif
24733	pthread_t t;
24734	int status;
24735	int detach = PTHREAD_CREATE_DETACHED;
24736
24737#if HAVE_PTHREADS > 4
24738	/* Final pthreads */
24739	pthread_attr_t attr;
24740
24741	status = pthread_attr_init(&attr);
24742	if( status ) return status;
24743
24744#if HAVE_PTHREADS < 7
24745	status = pthread_attr_setdetachstate(&attr, &detach);
24746	if( status < 0 ) status = errno;
24747#else
24748	status = pthread_attr_setdetachstate(&attr, detach);
24749#endif
24750	if( status ) return status;
24751	status = pthread_create( &t, &attr, task, NULL );
24752#if HAVE_PTHREADS < 7
24753	if( status < 0 ) status = errno;
24754#endif
24755	if( status ) return status;
24756#else
24757	/* Draft 4 pthreads */
24758	status = pthread_create( &t, pthread_attr_default, task, NULL );
24759	if( status ) return errno;
24760
24761	/* give thread a chance to complete */
24762	/* it should remain joinable and hence detachable */
24763	sleep( 1 );
24764
24765	status = pthread_detach( &t );
24766	if( status ) return errno;
24767#endif
24768
24769#ifdef HAVE_LINUX_THREADS
24770	pthread_kill_other_threads_np();
24771#endif
24772
24773	return 0;
24774
24775  ;
24776  return 0;
24777}
24778_ACEOF
24779if ac_fn_c_try_link "$LINENO"; then :
24780  ol_cv_pthread_lpthread_lmach_lexc=yes
24781else
24782  ol_cv_pthread_lpthread_lmach_lexc=no
24783fi
24784rm -f core conftest.err conftest.$ac_objext \
24785    conftest$ac_exeext conftest.$ac_ext
24786else
24787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24788/* end confdefs.h.  */
24789
24790
24791/* pthread test headers */
24792#include <pthread.h>
24793#if HAVE_PTHREADS < 7
24794#include <errno.h>
24795#endif
24796#ifndef NULL
24797#define NULL (void*)0
24798#endif
24799
24800static void *task(p)
24801	void *p;
24802{
24803	return (void *) (p == NULL);
24804}
24805
24806
24807int main(argc, argv)
24808	int argc;
24809	char **argv;
24810{
24811
24812	/* pthread test function */
24813#ifndef PTHREAD_CREATE_DETACHED
24814#define	PTHREAD_CREATE_DETACHED	1
24815#endif
24816	pthread_t t;
24817	int status;
24818	int detach = PTHREAD_CREATE_DETACHED;
24819
24820#if HAVE_PTHREADS > 4
24821	/* Final pthreads */
24822	pthread_attr_t attr;
24823
24824	status = pthread_attr_init(&attr);
24825	if( status ) return status;
24826
24827#if HAVE_PTHREADS < 7
24828	status = pthread_attr_setdetachstate(&attr, &detach);
24829	if( status < 0 ) status = errno;
24830#else
24831	status = pthread_attr_setdetachstate(&attr, detach);
24832#endif
24833	if( status ) return status;
24834	status = pthread_create( &t, &attr, task, NULL );
24835#if HAVE_PTHREADS < 7
24836	if( status < 0 ) status = errno;
24837#endif
24838	if( status ) return status;
24839#else
24840	/* Draft 4 pthreads */
24841	status = pthread_create( &t, pthread_attr_default, task, NULL );
24842	if( status ) return errno;
24843
24844	/* give thread a chance to complete */
24845	/* it should remain joinable and hence detachable */
24846	sleep( 1 );
24847
24848	status = pthread_detach( &t );
24849	if( status ) return errno;
24850#endif
24851
24852#ifdef HAVE_LINUX_THREADS
24853	pthread_kill_other_threads_np();
24854#endif
24855
24856	return 0;
24857
24858}
24859
24860_ACEOF
24861if ac_fn_c_try_run "$LINENO"; then :
24862  ol_cv_pthread_lpthread_lmach_lexc=yes
24863else
24864  ol_cv_pthread_lpthread_lmach_lexc=no
24865fi
24866rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24867  conftest.$ac_objext conftest.beam conftest.$ac_ext
24868fi
24869
24870
24871		# restore the LIBS
24872		LIBS="$ol_LIBS"
24873
24874fi
24875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
24876$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
24877
24878	if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
24879		ol_link_pthreads="-lpthread -lmach -lexc"
24880		ol_link_threads=posix
24881	fi
24882fi
24883
24884
24885		# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
24886if test "$ol_link_threads" = no ; then
24887	# try -lpthread -Wl,-woff,85
24888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
24889$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
24890if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
24891  $as_echo_n "(cached) " >&6
24892else
24893
24894		# save the flags
24895		ol_LIBS="$LIBS"
24896		LIBS="-lpthread -Wl,-woff,85 $LIBS"
24897
24898		if test "$cross_compiling" = yes; then :
24899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24900/* end confdefs.h.  */
24901
24902/* pthread test headers */
24903#include <pthread.h>
24904#if HAVE_PTHREADS < 7
24905#include <errno.h>
24906#endif
24907#ifndef NULL
24908#define NULL (void*)0
24909#endif
24910
24911static void *task(p)
24912	void *p;
24913{
24914	return (void *) (p == NULL);
24915}
24916
24917int
24918main ()
24919{
24920
24921	/* pthread test function */
24922#ifndef PTHREAD_CREATE_DETACHED
24923#define	PTHREAD_CREATE_DETACHED	1
24924#endif
24925	pthread_t t;
24926	int status;
24927	int detach = PTHREAD_CREATE_DETACHED;
24928
24929#if HAVE_PTHREADS > 4
24930	/* Final pthreads */
24931	pthread_attr_t attr;
24932
24933	status = pthread_attr_init(&attr);
24934	if( status ) return status;
24935
24936#if HAVE_PTHREADS < 7
24937	status = pthread_attr_setdetachstate(&attr, &detach);
24938	if( status < 0 ) status = errno;
24939#else
24940	status = pthread_attr_setdetachstate(&attr, detach);
24941#endif
24942	if( status ) return status;
24943	status = pthread_create( &t, &attr, task, NULL );
24944#if HAVE_PTHREADS < 7
24945	if( status < 0 ) status = errno;
24946#endif
24947	if( status ) return status;
24948#else
24949	/* Draft 4 pthreads */
24950	status = pthread_create( &t, pthread_attr_default, task, NULL );
24951	if( status ) return errno;
24952
24953	/* give thread a chance to complete */
24954	/* it should remain joinable and hence detachable */
24955	sleep( 1 );
24956
24957	status = pthread_detach( &t );
24958	if( status ) return errno;
24959#endif
24960
24961#ifdef HAVE_LINUX_THREADS
24962	pthread_kill_other_threads_np();
24963#endif
24964
24965	return 0;
24966
24967  ;
24968  return 0;
24969}
24970_ACEOF
24971if ac_fn_c_try_link "$LINENO"; then :
24972  ol_cv_pthread_lib_lpthread_woff=yes
24973else
24974  ol_cv_pthread_lib_lpthread_woff=no
24975fi
24976rm -f core conftest.err conftest.$ac_objext \
24977    conftest$ac_exeext conftest.$ac_ext
24978else
24979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24980/* end confdefs.h.  */
24981
24982
24983/* pthread test headers */
24984#include <pthread.h>
24985#if HAVE_PTHREADS < 7
24986#include <errno.h>
24987#endif
24988#ifndef NULL
24989#define NULL (void*)0
24990#endif
24991
24992static void *task(p)
24993	void *p;
24994{
24995	return (void *) (p == NULL);
24996}
24997
24998
24999int main(argc, argv)
25000	int argc;
25001	char **argv;
25002{
25003
25004	/* pthread test function */
25005#ifndef PTHREAD_CREATE_DETACHED
25006#define	PTHREAD_CREATE_DETACHED	1
25007#endif
25008	pthread_t t;
25009	int status;
25010	int detach = PTHREAD_CREATE_DETACHED;
25011
25012#if HAVE_PTHREADS > 4
25013	/* Final pthreads */
25014	pthread_attr_t attr;
25015
25016	status = pthread_attr_init(&attr);
25017	if( status ) return status;
25018
25019#if HAVE_PTHREADS < 7
25020	status = pthread_attr_setdetachstate(&attr, &detach);
25021	if( status < 0 ) status = errno;
25022#else
25023	status = pthread_attr_setdetachstate(&attr, detach);
25024#endif
25025	if( status ) return status;
25026	status = pthread_create( &t, &attr, task, NULL );
25027#if HAVE_PTHREADS < 7
25028	if( status < 0 ) status = errno;
25029#endif
25030	if( status ) return status;
25031#else
25032	/* Draft 4 pthreads */
25033	status = pthread_create( &t, pthread_attr_default, task, NULL );
25034	if( status ) return errno;
25035
25036	/* give thread a chance to complete */
25037	/* it should remain joinable and hence detachable */
25038	sleep( 1 );
25039
25040	status = pthread_detach( &t );
25041	if( status ) return errno;
25042#endif
25043
25044#ifdef HAVE_LINUX_THREADS
25045	pthread_kill_other_threads_np();
25046#endif
25047
25048	return 0;
25049
25050}
25051
25052_ACEOF
25053if ac_fn_c_try_run "$LINENO"; then :
25054  ol_cv_pthread_lib_lpthread_woff=yes
25055else
25056  ol_cv_pthread_lib_lpthread_woff=no
25057fi
25058rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25059  conftest.$ac_objext conftest.beam conftest.$ac_ext
25060fi
25061
25062
25063		# restore the LIBS
25064		LIBS="$ol_LIBS"
25065
25066fi
25067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
25068$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
25069
25070	if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
25071		ol_link_pthreads="-lpthread -Wl,-woff,85"
25072		ol_link_threads=posix
25073	fi
25074fi
25075
25076
25077		# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
25078if test "$ol_link_threads" = no ; then
25079	# try -lpthread
25080	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
25081$as_echo_n "checking for pthread link with -lpthread... " >&6; }
25082if ${ol_cv_pthread_lpthread+:} false; then :
25083  $as_echo_n "(cached) " >&6
25084else
25085
25086		# save the flags
25087		ol_LIBS="$LIBS"
25088		LIBS="-lpthread $LIBS"
25089
25090		if test "$cross_compiling" = yes; then :
25091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25092/* end confdefs.h.  */
25093
25094/* pthread test headers */
25095#include <pthread.h>
25096#if HAVE_PTHREADS < 7
25097#include <errno.h>
25098#endif
25099#ifndef NULL
25100#define NULL (void*)0
25101#endif
25102
25103static void *task(p)
25104	void *p;
25105{
25106	return (void *) (p == NULL);
25107}
25108
25109int
25110main ()
25111{
25112
25113	/* pthread test function */
25114#ifndef PTHREAD_CREATE_DETACHED
25115#define	PTHREAD_CREATE_DETACHED	1
25116#endif
25117	pthread_t t;
25118	int status;
25119	int detach = PTHREAD_CREATE_DETACHED;
25120
25121#if HAVE_PTHREADS > 4
25122	/* Final pthreads */
25123	pthread_attr_t attr;
25124
25125	status = pthread_attr_init(&attr);
25126	if( status ) return status;
25127
25128#if HAVE_PTHREADS < 7
25129	status = pthread_attr_setdetachstate(&attr, &detach);
25130	if( status < 0 ) status = errno;
25131#else
25132	status = pthread_attr_setdetachstate(&attr, detach);
25133#endif
25134	if( status ) return status;
25135	status = pthread_create( &t, &attr, task, NULL );
25136#if HAVE_PTHREADS < 7
25137	if( status < 0 ) status = errno;
25138#endif
25139	if( status ) return status;
25140#else
25141	/* Draft 4 pthreads */
25142	status = pthread_create( &t, pthread_attr_default, task, NULL );
25143	if( status ) return errno;
25144
25145	/* give thread a chance to complete */
25146	/* it should remain joinable and hence detachable */
25147	sleep( 1 );
25148
25149	status = pthread_detach( &t );
25150	if( status ) return errno;
25151#endif
25152
25153#ifdef HAVE_LINUX_THREADS
25154	pthread_kill_other_threads_np();
25155#endif
25156
25157	return 0;
25158
25159  ;
25160  return 0;
25161}
25162_ACEOF
25163if ac_fn_c_try_link "$LINENO"; then :
25164  ol_cv_pthread_lpthread=yes
25165else
25166  ol_cv_pthread_lpthread=no
25167fi
25168rm -f core conftest.err conftest.$ac_objext \
25169    conftest$ac_exeext conftest.$ac_ext
25170else
25171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25172/* end confdefs.h.  */
25173
25174
25175/* pthread test headers */
25176#include <pthread.h>
25177#if HAVE_PTHREADS < 7
25178#include <errno.h>
25179#endif
25180#ifndef NULL
25181#define NULL (void*)0
25182#endif
25183
25184static void *task(p)
25185	void *p;
25186{
25187	return (void *) (p == NULL);
25188}
25189
25190
25191int main(argc, argv)
25192	int argc;
25193	char **argv;
25194{
25195
25196	/* pthread test function */
25197#ifndef PTHREAD_CREATE_DETACHED
25198#define	PTHREAD_CREATE_DETACHED	1
25199#endif
25200	pthread_t t;
25201	int status;
25202	int detach = PTHREAD_CREATE_DETACHED;
25203
25204#if HAVE_PTHREADS > 4
25205	/* Final pthreads */
25206	pthread_attr_t attr;
25207
25208	status = pthread_attr_init(&attr);
25209	if( status ) return status;
25210
25211#if HAVE_PTHREADS < 7
25212	status = pthread_attr_setdetachstate(&attr, &detach);
25213	if( status < 0 ) status = errno;
25214#else
25215	status = pthread_attr_setdetachstate(&attr, detach);
25216#endif
25217	if( status ) return status;
25218	status = pthread_create( &t, &attr, task, NULL );
25219#if HAVE_PTHREADS < 7
25220	if( status < 0 ) status = errno;
25221#endif
25222	if( status ) return status;
25223#else
25224	/* Draft 4 pthreads */
25225	status = pthread_create( &t, pthread_attr_default, task, NULL );
25226	if( status ) return errno;
25227
25228	/* give thread a chance to complete */
25229	/* it should remain joinable and hence detachable */
25230	sleep( 1 );
25231
25232	status = pthread_detach( &t );
25233	if( status ) return errno;
25234#endif
25235
25236#ifdef HAVE_LINUX_THREADS
25237	pthread_kill_other_threads_np();
25238#endif
25239
25240	return 0;
25241
25242}
25243
25244_ACEOF
25245if ac_fn_c_try_run "$LINENO"; then :
25246  ol_cv_pthread_lpthread=yes
25247else
25248  ol_cv_pthread_lpthread=no
25249fi
25250rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25251  conftest.$ac_objext conftest.beam conftest.$ac_ext
25252fi
25253
25254
25255		# restore the LIBS
25256		LIBS="$ol_LIBS"
25257
25258fi
25259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
25260$as_echo "$ol_cv_pthread_lpthread" >&6; }
25261
25262	if test $ol_cv_pthread_lpthread = yes ; then
25263		ol_link_pthreads="-lpthread"
25264		ol_link_threads=posix
25265	fi
25266fi
25267
25268		# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
25269if test "$ol_link_threads" = no ; then
25270	# try -lc_r
25271	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
25272$as_echo_n "checking for pthread link with -lc_r... " >&6; }
25273if ${ol_cv_pthread_lc_r+:} false; then :
25274  $as_echo_n "(cached) " >&6
25275else
25276
25277		# save the flags
25278		ol_LIBS="$LIBS"
25279		LIBS="-lc_r $LIBS"
25280
25281		if test "$cross_compiling" = yes; then :
25282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25283/* end confdefs.h.  */
25284
25285/* pthread test headers */
25286#include <pthread.h>
25287#if HAVE_PTHREADS < 7
25288#include <errno.h>
25289#endif
25290#ifndef NULL
25291#define NULL (void*)0
25292#endif
25293
25294static void *task(p)
25295	void *p;
25296{
25297	return (void *) (p == NULL);
25298}
25299
25300int
25301main ()
25302{
25303
25304	/* pthread test function */
25305#ifndef PTHREAD_CREATE_DETACHED
25306#define	PTHREAD_CREATE_DETACHED	1
25307#endif
25308	pthread_t t;
25309	int status;
25310	int detach = PTHREAD_CREATE_DETACHED;
25311
25312#if HAVE_PTHREADS > 4
25313	/* Final pthreads */
25314	pthread_attr_t attr;
25315
25316	status = pthread_attr_init(&attr);
25317	if( status ) return status;
25318
25319#if HAVE_PTHREADS < 7
25320	status = pthread_attr_setdetachstate(&attr, &detach);
25321	if( status < 0 ) status = errno;
25322#else
25323	status = pthread_attr_setdetachstate(&attr, detach);
25324#endif
25325	if( status ) return status;
25326	status = pthread_create( &t, &attr, task, NULL );
25327#if HAVE_PTHREADS < 7
25328	if( status < 0 ) status = errno;
25329#endif
25330	if( status ) return status;
25331#else
25332	/* Draft 4 pthreads */
25333	status = pthread_create( &t, pthread_attr_default, task, NULL );
25334	if( status ) return errno;
25335
25336	/* give thread a chance to complete */
25337	/* it should remain joinable and hence detachable */
25338	sleep( 1 );
25339
25340	status = pthread_detach( &t );
25341	if( status ) return errno;
25342#endif
25343
25344#ifdef HAVE_LINUX_THREADS
25345	pthread_kill_other_threads_np();
25346#endif
25347
25348	return 0;
25349
25350  ;
25351  return 0;
25352}
25353_ACEOF
25354if ac_fn_c_try_link "$LINENO"; then :
25355  ol_cv_pthread_lc_r=yes
25356else
25357  ol_cv_pthread_lc_r=no
25358fi
25359rm -f core conftest.err conftest.$ac_objext \
25360    conftest$ac_exeext conftest.$ac_ext
25361else
25362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25363/* end confdefs.h.  */
25364
25365
25366/* pthread test headers */
25367#include <pthread.h>
25368#if HAVE_PTHREADS < 7
25369#include <errno.h>
25370#endif
25371#ifndef NULL
25372#define NULL (void*)0
25373#endif
25374
25375static void *task(p)
25376	void *p;
25377{
25378	return (void *) (p == NULL);
25379}
25380
25381
25382int main(argc, argv)
25383	int argc;
25384	char **argv;
25385{
25386
25387	/* pthread test function */
25388#ifndef PTHREAD_CREATE_DETACHED
25389#define	PTHREAD_CREATE_DETACHED	1
25390#endif
25391	pthread_t t;
25392	int status;
25393	int detach = PTHREAD_CREATE_DETACHED;
25394
25395#if HAVE_PTHREADS > 4
25396	/* Final pthreads */
25397	pthread_attr_t attr;
25398
25399	status = pthread_attr_init(&attr);
25400	if( status ) return status;
25401
25402#if HAVE_PTHREADS < 7
25403	status = pthread_attr_setdetachstate(&attr, &detach);
25404	if( status < 0 ) status = errno;
25405#else
25406	status = pthread_attr_setdetachstate(&attr, detach);
25407#endif
25408	if( status ) return status;
25409	status = pthread_create( &t, &attr, task, NULL );
25410#if HAVE_PTHREADS < 7
25411	if( status < 0 ) status = errno;
25412#endif
25413	if( status ) return status;
25414#else
25415	/* Draft 4 pthreads */
25416	status = pthread_create( &t, pthread_attr_default, task, NULL );
25417	if( status ) return errno;
25418
25419	/* give thread a chance to complete */
25420	/* it should remain joinable and hence detachable */
25421	sleep( 1 );
25422
25423	status = pthread_detach( &t );
25424	if( status ) return errno;
25425#endif
25426
25427#ifdef HAVE_LINUX_THREADS
25428	pthread_kill_other_threads_np();
25429#endif
25430
25431	return 0;
25432
25433}
25434
25435_ACEOF
25436if ac_fn_c_try_run "$LINENO"; then :
25437  ol_cv_pthread_lc_r=yes
25438else
25439  ol_cv_pthread_lc_r=no
25440fi
25441rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25442  conftest.$ac_objext conftest.beam conftest.$ac_ext
25443fi
25444
25445
25446		# restore the LIBS
25447		LIBS="$ol_LIBS"
25448
25449fi
25450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
25451$as_echo "$ol_cv_pthread_lc_r" >&6; }
25452
25453	if test $ol_cv_pthread_lc_r = yes ; then
25454		ol_link_pthreads="-lc_r"
25455		ol_link_threads=posix
25456	fi
25457fi
25458
25459
25460		# Pthread try link: -threads (ol_cv_pthread_threads)
25461if test "$ol_link_threads" = no ; then
25462	# try -threads
25463	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
25464$as_echo_n "checking for pthread link with -threads... " >&6; }
25465if ${ol_cv_pthread_threads+:} false; then :
25466  $as_echo_n "(cached) " >&6
25467else
25468
25469		# save the flags
25470		ol_LIBS="$LIBS"
25471		LIBS="-threads $LIBS"
25472
25473		if test "$cross_compiling" = yes; then :
25474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25475/* end confdefs.h.  */
25476
25477/* pthread test headers */
25478#include <pthread.h>
25479#if HAVE_PTHREADS < 7
25480#include <errno.h>
25481#endif
25482#ifndef NULL
25483#define NULL (void*)0
25484#endif
25485
25486static void *task(p)
25487	void *p;
25488{
25489	return (void *) (p == NULL);
25490}
25491
25492int
25493main ()
25494{
25495
25496	/* pthread test function */
25497#ifndef PTHREAD_CREATE_DETACHED
25498#define	PTHREAD_CREATE_DETACHED	1
25499#endif
25500	pthread_t t;
25501	int status;
25502	int detach = PTHREAD_CREATE_DETACHED;
25503
25504#if HAVE_PTHREADS > 4
25505	/* Final pthreads */
25506	pthread_attr_t attr;
25507
25508	status = pthread_attr_init(&attr);
25509	if( status ) return status;
25510
25511#if HAVE_PTHREADS < 7
25512	status = pthread_attr_setdetachstate(&attr, &detach);
25513	if( status < 0 ) status = errno;
25514#else
25515	status = pthread_attr_setdetachstate(&attr, detach);
25516#endif
25517	if( status ) return status;
25518	status = pthread_create( &t, &attr, task, NULL );
25519#if HAVE_PTHREADS < 7
25520	if( status < 0 ) status = errno;
25521#endif
25522	if( status ) return status;
25523#else
25524	/* Draft 4 pthreads */
25525	status = pthread_create( &t, pthread_attr_default, task, NULL );
25526	if( status ) return errno;
25527
25528	/* give thread a chance to complete */
25529	/* it should remain joinable and hence detachable */
25530	sleep( 1 );
25531
25532	status = pthread_detach( &t );
25533	if( status ) return errno;
25534#endif
25535
25536#ifdef HAVE_LINUX_THREADS
25537	pthread_kill_other_threads_np();
25538#endif
25539
25540	return 0;
25541
25542  ;
25543  return 0;
25544}
25545_ACEOF
25546if ac_fn_c_try_link "$LINENO"; then :
25547  ol_cv_pthread_threads=yes
25548else
25549  ol_cv_pthread_threads=no
25550fi
25551rm -f core conftest.err conftest.$ac_objext \
25552    conftest$ac_exeext conftest.$ac_ext
25553else
25554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25555/* end confdefs.h.  */
25556
25557
25558/* pthread test headers */
25559#include <pthread.h>
25560#if HAVE_PTHREADS < 7
25561#include <errno.h>
25562#endif
25563#ifndef NULL
25564#define NULL (void*)0
25565#endif
25566
25567static void *task(p)
25568	void *p;
25569{
25570	return (void *) (p == NULL);
25571}
25572
25573
25574int main(argc, argv)
25575	int argc;
25576	char **argv;
25577{
25578
25579	/* pthread test function */
25580#ifndef PTHREAD_CREATE_DETACHED
25581#define	PTHREAD_CREATE_DETACHED	1
25582#endif
25583	pthread_t t;
25584	int status;
25585	int detach = PTHREAD_CREATE_DETACHED;
25586
25587#if HAVE_PTHREADS > 4
25588	/* Final pthreads */
25589	pthread_attr_t attr;
25590
25591	status = pthread_attr_init(&attr);
25592	if( status ) return status;
25593
25594#if HAVE_PTHREADS < 7
25595	status = pthread_attr_setdetachstate(&attr, &detach);
25596	if( status < 0 ) status = errno;
25597#else
25598	status = pthread_attr_setdetachstate(&attr, detach);
25599#endif
25600	if( status ) return status;
25601	status = pthread_create( &t, &attr, task, NULL );
25602#if HAVE_PTHREADS < 7
25603	if( status < 0 ) status = errno;
25604#endif
25605	if( status ) return status;
25606#else
25607	/* Draft 4 pthreads */
25608	status = pthread_create( &t, pthread_attr_default, task, NULL );
25609	if( status ) return errno;
25610
25611	/* give thread a chance to complete */
25612	/* it should remain joinable and hence detachable */
25613	sleep( 1 );
25614
25615	status = pthread_detach( &t );
25616	if( status ) return errno;
25617#endif
25618
25619#ifdef HAVE_LINUX_THREADS
25620	pthread_kill_other_threads_np();
25621#endif
25622
25623	return 0;
25624
25625}
25626
25627_ACEOF
25628if ac_fn_c_try_run "$LINENO"; then :
25629  ol_cv_pthread_threads=yes
25630else
25631  ol_cv_pthread_threads=no
25632fi
25633rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25634  conftest.$ac_objext conftest.beam conftest.$ac_ext
25635fi
25636
25637
25638		# restore the LIBS
25639		LIBS="$ol_LIBS"
25640
25641fi
25642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
25643$as_echo "$ol_cv_pthread_threads" >&6; }
25644
25645	if test $ol_cv_pthread_threads = yes ; then
25646		ol_link_pthreads="-threads"
25647		ol_link_threads=posix
25648	fi
25649fi
25650
25651
25652		# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
25653if test "$ol_link_threads" = no ; then
25654	# try -lpthreads -lmach -lexc -lc_r
25655	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
25656$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
25657if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
25658  $as_echo_n "(cached) " >&6
25659else
25660
25661		# save the flags
25662		ol_LIBS="$LIBS"
25663		LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
25664
25665		if test "$cross_compiling" = yes; then :
25666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25667/* end confdefs.h.  */
25668
25669/* pthread test headers */
25670#include <pthread.h>
25671#if HAVE_PTHREADS < 7
25672#include <errno.h>
25673#endif
25674#ifndef NULL
25675#define NULL (void*)0
25676#endif
25677
25678static void *task(p)
25679	void *p;
25680{
25681	return (void *) (p == NULL);
25682}
25683
25684int
25685main ()
25686{
25687
25688	/* pthread test function */
25689#ifndef PTHREAD_CREATE_DETACHED
25690#define	PTHREAD_CREATE_DETACHED	1
25691#endif
25692	pthread_t t;
25693	int status;
25694	int detach = PTHREAD_CREATE_DETACHED;
25695
25696#if HAVE_PTHREADS > 4
25697	/* Final pthreads */
25698	pthread_attr_t attr;
25699
25700	status = pthread_attr_init(&attr);
25701	if( status ) return status;
25702
25703#if HAVE_PTHREADS < 7
25704	status = pthread_attr_setdetachstate(&attr, &detach);
25705	if( status < 0 ) status = errno;
25706#else
25707	status = pthread_attr_setdetachstate(&attr, detach);
25708#endif
25709	if( status ) return status;
25710	status = pthread_create( &t, &attr, task, NULL );
25711#if HAVE_PTHREADS < 7
25712	if( status < 0 ) status = errno;
25713#endif
25714	if( status ) return status;
25715#else
25716	/* Draft 4 pthreads */
25717	status = pthread_create( &t, pthread_attr_default, task, NULL );
25718	if( status ) return errno;
25719
25720	/* give thread a chance to complete */
25721	/* it should remain joinable and hence detachable */
25722	sleep( 1 );
25723
25724	status = pthread_detach( &t );
25725	if( status ) return errno;
25726#endif
25727
25728#ifdef HAVE_LINUX_THREADS
25729	pthread_kill_other_threads_np();
25730#endif
25731
25732	return 0;
25733
25734  ;
25735  return 0;
25736}
25737_ACEOF
25738if ac_fn_c_try_link "$LINENO"; then :
25739  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
25740else
25741  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
25742fi
25743rm -f core conftest.err conftest.$ac_objext \
25744    conftest$ac_exeext conftest.$ac_ext
25745else
25746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25747/* end confdefs.h.  */
25748
25749
25750/* pthread test headers */
25751#include <pthread.h>
25752#if HAVE_PTHREADS < 7
25753#include <errno.h>
25754#endif
25755#ifndef NULL
25756#define NULL (void*)0
25757#endif
25758
25759static void *task(p)
25760	void *p;
25761{
25762	return (void *) (p == NULL);
25763}
25764
25765
25766int main(argc, argv)
25767	int argc;
25768	char **argv;
25769{
25770
25771	/* pthread test function */
25772#ifndef PTHREAD_CREATE_DETACHED
25773#define	PTHREAD_CREATE_DETACHED	1
25774#endif
25775	pthread_t t;
25776	int status;
25777	int detach = PTHREAD_CREATE_DETACHED;
25778
25779#if HAVE_PTHREADS > 4
25780	/* Final pthreads */
25781	pthread_attr_t attr;
25782
25783	status = pthread_attr_init(&attr);
25784	if( status ) return status;
25785
25786#if HAVE_PTHREADS < 7
25787	status = pthread_attr_setdetachstate(&attr, &detach);
25788	if( status < 0 ) status = errno;
25789#else
25790	status = pthread_attr_setdetachstate(&attr, detach);
25791#endif
25792	if( status ) return status;
25793	status = pthread_create( &t, &attr, task, NULL );
25794#if HAVE_PTHREADS < 7
25795	if( status < 0 ) status = errno;
25796#endif
25797	if( status ) return status;
25798#else
25799	/* Draft 4 pthreads */
25800	status = pthread_create( &t, pthread_attr_default, task, NULL );
25801	if( status ) return errno;
25802
25803	/* give thread a chance to complete */
25804	/* it should remain joinable and hence detachable */
25805	sleep( 1 );
25806
25807	status = pthread_detach( &t );
25808	if( status ) return errno;
25809#endif
25810
25811#ifdef HAVE_LINUX_THREADS
25812	pthread_kill_other_threads_np();
25813#endif
25814
25815	return 0;
25816
25817}
25818
25819_ACEOF
25820if ac_fn_c_try_run "$LINENO"; then :
25821  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
25822else
25823  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
25824fi
25825rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25826  conftest.$ac_objext conftest.beam conftest.$ac_ext
25827fi
25828
25829
25830		# restore the LIBS
25831		LIBS="$ol_LIBS"
25832
25833fi
25834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
25835$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
25836
25837	if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
25838		ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
25839		ol_link_threads=posix
25840	fi
25841fi
25842
25843		# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
25844if test "$ol_link_threads" = no ; then
25845	# try -lpthreads -lmach -lexc
25846	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
25847$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
25848if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
25849  $as_echo_n "(cached) " >&6
25850else
25851
25852		# save the flags
25853		ol_LIBS="$LIBS"
25854		LIBS="-lpthreads -lmach -lexc $LIBS"
25855
25856		if test "$cross_compiling" = yes; then :
25857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25858/* end confdefs.h.  */
25859
25860/* pthread test headers */
25861#include <pthread.h>
25862#if HAVE_PTHREADS < 7
25863#include <errno.h>
25864#endif
25865#ifndef NULL
25866#define NULL (void*)0
25867#endif
25868
25869static void *task(p)
25870	void *p;
25871{
25872	return (void *) (p == NULL);
25873}
25874
25875int
25876main ()
25877{
25878
25879	/* pthread test function */
25880#ifndef PTHREAD_CREATE_DETACHED
25881#define	PTHREAD_CREATE_DETACHED	1
25882#endif
25883	pthread_t t;
25884	int status;
25885	int detach = PTHREAD_CREATE_DETACHED;
25886
25887#if HAVE_PTHREADS > 4
25888	/* Final pthreads */
25889	pthread_attr_t attr;
25890
25891	status = pthread_attr_init(&attr);
25892	if( status ) return status;
25893
25894#if HAVE_PTHREADS < 7
25895	status = pthread_attr_setdetachstate(&attr, &detach);
25896	if( status < 0 ) status = errno;
25897#else
25898	status = pthread_attr_setdetachstate(&attr, detach);
25899#endif
25900	if( status ) return status;
25901	status = pthread_create( &t, &attr, task, NULL );
25902#if HAVE_PTHREADS < 7
25903	if( status < 0 ) status = errno;
25904#endif
25905	if( status ) return status;
25906#else
25907	/* Draft 4 pthreads */
25908	status = pthread_create( &t, pthread_attr_default, task, NULL );
25909	if( status ) return errno;
25910
25911	/* give thread a chance to complete */
25912	/* it should remain joinable and hence detachable */
25913	sleep( 1 );
25914
25915	status = pthread_detach( &t );
25916	if( status ) return errno;
25917#endif
25918
25919#ifdef HAVE_LINUX_THREADS
25920	pthread_kill_other_threads_np();
25921#endif
25922
25923	return 0;
25924
25925  ;
25926  return 0;
25927}
25928_ACEOF
25929if ac_fn_c_try_link "$LINENO"; then :
25930  ol_cv_pthread_lpthreads_lmach_lexc=yes
25931else
25932  ol_cv_pthread_lpthreads_lmach_lexc=no
25933fi
25934rm -f core conftest.err conftest.$ac_objext \
25935    conftest$ac_exeext conftest.$ac_ext
25936else
25937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25938/* end confdefs.h.  */
25939
25940
25941/* pthread test headers */
25942#include <pthread.h>
25943#if HAVE_PTHREADS < 7
25944#include <errno.h>
25945#endif
25946#ifndef NULL
25947#define NULL (void*)0
25948#endif
25949
25950static void *task(p)
25951	void *p;
25952{
25953	return (void *) (p == NULL);
25954}
25955
25956
25957int main(argc, argv)
25958	int argc;
25959	char **argv;
25960{
25961
25962	/* pthread test function */
25963#ifndef PTHREAD_CREATE_DETACHED
25964#define	PTHREAD_CREATE_DETACHED	1
25965#endif
25966	pthread_t t;
25967	int status;
25968	int detach = PTHREAD_CREATE_DETACHED;
25969
25970#if HAVE_PTHREADS > 4
25971	/* Final pthreads */
25972	pthread_attr_t attr;
25973
25974	status = pthread_attr_init(&attr);
25975	if( status ) return status;
25976
25977#if HAVE_PTHREADS < 7
25978	status = pthread_attr_setdetachstate(&attr, &detach);
25979	if( status < 0 ) status = errno;
25980#else
25981	status = pthread_attr_setdetachstate(&attr, detach);
25982#endif
25983	if( status ) return status;
25984	status = pthread_create( &t, &attr, task, NULL );
25985#if HAVE_PTHREADS < 7
25986	if( status < 0 ) status = errno;
25987#endif
25988	if( status ) return status;
25989#else
25990	/* Draft 4 pthreads */
25991	status = pthread_create( &t, pthread_attr_default, task, NULL );
25992	if( status ) return errno;
25993
25994	/* give thread a chance to complete */
25995	/* it should remain joinable and hence detachable */
25996	sleep( 1 );
25997
25998	status = pthread_detach( &t );
25999	if( status ) return errno;
26000#endif
26001
26002#ifdef HAVE_LINUX_THREADS
26003	pthread_kill_other_threads_np();
26004#endif
26005
26006	return 0;
26007
26008}
26009
26010_ACEOF
26011if ac_fn_c_try_run "$LINENO"; then :
26012  ol_cv_pthread_lpthreads_lmach_lexc=yes
26013else
26014  ol_cv_pthread_lpthreads_lmach_lexc=no
26015fi
26016rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26017  conftest.$ac_objext conftest.beam conftest.$ac_ext
26018fi
26019
26020
26021		# restore the LIBS
26022		LIBS="$ol_LIBS"
26023
26024fi
26025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
26026$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
26027
26028	if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
26029		ol_link_pthreads="-lpthreads -lmach -lexc"
26030		ol_link_threads=posix
26031	fi
26032fi
26033
26034		# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
26035if test "$ol_link_threads" = no ; then
26036	# try -lpthreads -lexc
26037	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
26038$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
26039if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
26040  $as_echo_n "(cached) " >&6
26041else
26042
26043		# save the flags
26044		ol_LIBS="$LIBS"
26045		LIBS="-lpthreads -lexc $LIBS"
26046
26047		if test "$cross_compiling" = yes; then :
26048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26049/* end confdefs.h.  */
26050
26051/* pthread test headers */
26052#include <pthread.h>
26053#if HAVE_PTHREADS < 7
26054#include <errno.h>
26055#endif
26056#ifndef NULL
26057#define NULL (void*)0
26058#endif
26059
26060static void *task(p)
26061	void *p;
26062{
26063	return (void *) (p == NULL);
26064}
26065
26066int
26067main ()
26068{
26069
26070	/* pthread test function */
26071#ifndef PTHREAD_CREATE_DETACHED
26072#define	PTHREAD_CREATE_DETACHED	1
26073#endif
26074	pthread_t t;
26075	int status;
26076	int detach = PTHREAD_CREATE_DETACHED;
26077
26078#if HAVE_PTHREADS > 4
26079	/* Final pthreads */
26080	pthread_attr_t attr;
26081
26082	status = pthread_attr_init(&attr);
26083	if( status ) return status;
26084
26085#if HAVE_PTHREADS < 7
26086	status = pthread_attr_setdetachstate(&attr, &detach);
26087	if( status < 0 ) status = errno;
26088#else
26089	status = pthread_attr_setdetachstate(&attr, detach);
26090#endif
26091	if( status ) return status;
26092	status = pthread_create( &t, &attr, task, NULL );
26093#if HAVE_PTHREADS < 7
26094	if( status < 0 ) status = errno;
26095#endif
26096	if( status ) return status;
26097#else
26098	/* Draft 4 pthreads */
26099	status = pthread_create( &t, pthread_attr_default, task, NULL );
26100	if( status ) return errno;
26101
26102	/* give thread a chance to complete */
26103	/* it should remain joinable and hence detachable */
26104	sleep( 1 );
26105
26106	status = pthread_detach( &t );
26107	if( status ) return errno;
26108#endif
26109
26110#ifdef HAVE_LINUX_THREADS
26111	pthread_kill_other_threads_np();
26112#endif
26113
26114	return 0;
26115
26116  ;
26117  return 0;
26118}
26119_ACEOF
26120if ac_fn_c_try_link "$LINENO"; then :
26121  ol_cv_pthread_lpthreads_lexc=yes
26122else
26123  ol_cv_pthread_lpthreads_lexc=no
26124fi
26125rm -f core conftest.err conftest.$ac_objext \
26126    conftest$ac_exeext conftest.$ac_ext
26127else
26128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26129/* end confdefs.h.  */
26130
26131
26132/* pthread test headers */
26133#include <pthread.h>
26134#if HAVE_PTHREADS < 7
26135#include <errno.h>
26136#endif
26137#ifndef NULL
26138#define NULL (void*)0
26139#endif
26140
26141static void *task(p)
26142	void *p;
26143{
26144	return (void *) (p == NULL);
26145}
26146
26147
26148int main(argc, argv)
26149	int argc;
26150	char **argv;
26151{
26152
26153	/* pthread test function */
26154#ifndef PTHREAD_CREATE_DETACHED
26155#define	PTHREAD_CREATE_DETACHED	1
26156#endif
26157	pthread_t t;
26158	int status;
26159	int detach = PTHREAD_CREATE_DETACHED;
26160
26161#if HAVE_PTHREADS > 4
26162	/* Final pthreads */
26163	pthread_attr_t attr;
26164
26165	status = pthread_attr_init(&attr);
26166	if( status ) return status;
26167
26168#if HAVE_PTHREADS < 7
26169	status = pthread_attr_setdetachstate(&attr, &detach);
26170	if( status < 0 ) status = errno;
26171#else
26172	status = pthread_attr_setdetachstate(&attr, detach);
26173#endif
26174	if( status ) return status;
26175	status = pthread_create( &t, &attr, task, NULL );
26176#if HAVE_PTHREADS < 7
26177	if( status < 0 ) status = errno;
26178#endif
26179	if( status ) return status;
26180#else
26181	/* Draft 4 pthreads */
26182	status = pthread_create( &t, pthread_attr_default, task, NULL );
26183	if( status ) return errno;
26184
26185	/* give thread a chance to complete */
26186	/* it should remain joinable and hence detachable */
26187	sleep( 1 );
26188
26189	status = pthread_detach( &t );
26190	if( status ) return errno;
26191#endif
26192
26193#ifdef HAVE_LINUX_THREADS
26194	pthread_kill_other_threads_np();
26195#endif
26196
26197	return 0;
26198
26199}
26200
26201_ACEOF
26202if ac_fn_c_try_run "$LINENO"; then :
26203  ol_cv_pthread_lpthreads_lexc=yes
26204else
26205  ol_cv_pthread_lpthreads_lexc=no
26206fi
26207rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26208  conftest.$ac_objext conftest.beam conftest.$ac_ext
26209fi
26210
26211
26212		# restore the LIBS
26213		LIBS="$ol_LIBS"
26214
26215fi
26216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
26217$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
26218
26219	if test $ol_cv_pthread_lpthreads_lexc = yes ; then
26220		ol_link_pthreads="-lpthreads -lexc"
26221		ol_link_threads=posix
26222	fi
26223fi
26224
26225
26226		# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
26227if test "$ol_link_threads" = no ; then
26228	# try -lpthreads
26229	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
26230$as_echo_n "checking for pthread link with -lpthreads... " >&6; }
26231if ${ol_cv_pthread_lib_lpthreads+:} false; then :
26232  $as_echo_n "(cached) " >&6
26233else
26234
26235		# save the flags
26236		ol_LIBS="$LIBS"
26237		LIBS="-lpthreads $LIBS"
26238
26239		if test "$cross_compiling" = yes; then :
26240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26241/* end confdefs.h.  */
26242
26243/* pthread test headers */
26244#include <pthread.h>
26245#if HAVE_PTHREADS < 7
26246#include <errno.h>
26247#endif
26248#ifndef NULL
26249#define NULL (void*)0
26250#endif
26251
26252static void *task(p)
26253	void *p;
26254{
26255	return (void *) (p == NULL);
26256}
26257
26258int
26259main ()
26260{
26261
26262	/* pthread test function */
26263#ifndef PTHREAD_CREATE_DETACHED
26264#define	PTHREAD_CREATE_DETACHED	1
26265#endif
26266	pthread_t t;
26267	int status;
26268	int detach = PTHREAD_CREATE_DETACHED;
26269
26270#if HAVE_PTHREADS > 4
26271	/* Final pthreads */
26272	pthread_attr_t attr;
26273
26274	status = pthread_attr_init(&attr);
26275	if( status ) return status;
26276
26277#if HAVE_PTHREADS < 7
26278	status = pthread_attr_setdetachstate(&attr, &detach);
26279	if( status < 0 ) status = errno;
26280#else
26281	status = pthread_attr_setdetachstate(&attr, detach);
26282#endif
26283	if( status ) return status;
26284	status = pthread_create( &t, &attr, task, NULL );
26285#if HAVE_PTHREADS < 7
26286	if( status < 0 ) status = errno;
26287#endif
26288	if( status ) return status;
26289#else
26290	/* Draft 4 pthreads */
26291	status = pthread_create( &t, pthread_attr_default, task, NULL );
26292	if( status ) return errno;
26293
26294	/* give thread a chance to complete */
26295	/* it should remain joinable and hence detachable */
26296	sleep( 1 );
26297
26298	status = pthread_detach( &t );
26299	if( status ) return errno;
26300#endif
26301
26302#ifdef HAVE_LINUX_THREADS
26303	pthread_kill_other_threads_np();
26304#endif
26305
26306	return 0;
26307
26308  ;
26309  return 0;
26310}
26311_ACEOF
26312if ac_fn_c_try_link "$LINENO"; then :
26313  ol_cv_pthread_lib_lpthreads=yes
26314else
26315  ol_cv_pthread_lib_lpthreads=no
26316fi
26317rm -f core conftest.err conftest.$ac_objext \
26318    conftest$ac_exeext conftest.$ac_ext
26319else
26320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26321/* end confdefs.h.  */
26322
26323
26324/* pthread test headers */
26325#include <pthread.h>
26326#if HAVE_PTHREADS < 7
26327#include <errno.h>
26328#endif
26329#ifndef NULL
26330#define NULL (void*)0
26331#endif
26332
26333static void *task(p)
26334	void *p;
26335{
26336	return (void *) (p == NULL);
26337}
26338
26339
26340int main(argc, argv)
26341	int argc;
26342	char **argv;
26343{
26344
26345	/* pthread test function */
26346#ifndef PTHREAD_CREATE_DETACHED
26347#define	PTHREAD_CREATE_DETACHED	1
26348#endif
26349	pthread_t t;
26350	int status;
26351	int detach = PTHREAD_CREATE_DETACHED;
26352
26353#if HAVE_PTHREADS > 4
26354	/* Final pthreads */
26355	pthread_attr_t attr;
26356
26357	status = pthread_attr_init(&attr);
26358	if( status ) return status;
26359
26360#if HAVE_PTHREADS < 7
26361	status = pthread_attr_setdetachstate(&attr, &detach);
26362	if( status < 0 ) status = errno;
26363#else
26364	status = pthread_attr_setdetachstate(&attr, detach);
26365#endif
26366	if( status ) return status;
26367	status = pthread_create( &t, &attr, task, NULL );
26368#if HAVE_PTHREADS < 7
26369	if( status < 0 ) status = errno;
26370#endif
26371	if( status ) return status;
26372#else
26373	/* Draft 4 pthreads */
26374	status = pthread_create( &t, pthread_attr_default, task, NULL );
26375	if( status ) return errno;
26376
26377	/* give thread a chance to complete */
26378	/* it should remain joinable and hence detachable */
26379	sleep( 1 );
26380
26381	status = pthread_detach( &t );
26382	if( status ) return errno;
26383#endif
26384
26385#ifdef HAVE_LINUX_THREADS
26386	pthread_kill_other_threads_np();
26387#endif
26388
26389	return 0;
26390
26391}
26392
26393_ACEOF
26394if ac_fn_c_try_run "$LINENO"; then :
26395  ol_cv_pthread_lib_lpthreads=yes
26396else
26397  ol_cv_pthread_lib_lpthreads=no
26398fi
26399rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26400  conftest.$ac_objext conftest.beam conftest.$ac_ext
26401fi
26402
26403
26404		# restore the LIBS
26405		LIBS="$ol_LIBS"
26406
26407fi
26408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
26409$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
26410
26411	if test $ol_cv_pthread_lib_lpthreads = yes ; then
26412		ol_link_pthreads="-lpthreads"
26413		ol_link_threads=posix
26414	fi
26415fi
26416
26417
26418{ $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
26419$as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}
26420
26421		if test $ol_link_threads != no ; then
26422			LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
26423
26424						save_CPPFLAGS="$CPPFLAGS"
26425			save_LIBS="$LIBS"
26426			LIBS="$LTHREAD_LIBS $LIBS"
26427
26428												for ac_func in sched_yield pthread_yield thr_yield
26429do :
26430  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26431ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26432if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26433  cat >>confdefs.h <<_ACEOF
26434#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26435_ACEOF
26436
26437fi
26438done
26439
26440
26441			if test $ac_cv_func_sched_yield = no &&
26442			   test $ac_cv_func_pthread_yield = no &&
26443			   test $ac_cv_func_thr_yield = no ; then
26444								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
26445$as_echo_n "checking for sched_yield in -lrt... " >&6; }
26446if ${ac_cv_lib_rt_sched_yield+:} false; then :
26447  $as_echo_n "(cached) " >&6
26448else
26449  ac_check_lib_save_LIBS=$LIBS
26450LIBS="-lrt  $LIBS"
26451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26452/* end confdefs.h.  */
26453
26454/* Override any GCC internal prototype to avoid an error.
26455   Use char because int might match the return type of a GCC
26456   builtin and then its argument prototype would still apply.  */
26457#ifdef __cplusplus
26458extern "C"
26459#endif
26460char sched_yield ();
26461int
26462main ()
26463{
26464return sched_yield ();
26465  ;
26466  return 0;
26467}
26468_ACEOF
26469if ac_fn_c_try_link "$LINENO"; then :
26470  ac_cv_lib_rt_sched_yield=yes
26471else
26472  ac_cv_lib_rt_sched_yield=no
26473fi
26474rm -f core conftest.err conftest.$ac_objext \
26475    conftest$ac_exeext conftest.$ac_ext
26476LIBS=$ac_check_lib_save_LIBS
26477fi
26478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
26479$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
26480if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
26481  LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
26482
26483$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
26484
26485					ac_cv_func_sched_yield=yes
26486else
26487  ac_cv_func_sched_yield=no
26488fi
26489
26490			fi
26491			if test $ac_cv_func_sched_yield = no &&
26492			   test $ac_cv_func_pthread_yield = no &&
26493			   test "$ac_cv_func_thr_yield" = no ; then
26494				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
26495$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
26496			fi
26497
26498						for ac_func in pthread_kill
26499do :
26500  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
26501if test "x$ac_cv_func_pthread_kill" = xyes; then :
26502  cat >>confdefs.h <<_ACEOF
26503#define HAVE_PTHREAD_KILL 1
26504_ACEOF
26505
26506fi
26507done
26508
26509
26510									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
26511$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
26512if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
26513  $as_echo_n "(cached) " >&6
26514else
26515
26516								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26517/* end confdefs.h.  */
26518
26519#include <pthread.h>
26520pthread_rwlock_t rwlock;
26521
26522int
26523main ()
26524{
26525pthread_rwlock_destroy(&rwlock);
26526  ;
26527  return 0;
26528}
26529_ACEOF
26530if ac_fn_c_try_link "$LINENO"; then :
26531  ol_cv_func_pthread_rwlock_destroy=yes
26532else
26533  ol_cv_func_pthread_rwlock_destroy=no
26534fi
26535rm -f core conftest.err conftest.$ac_objext \
26536    conftest$ac_exeext conftest.$ac_ext
26537
26538fi
26539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
26540$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
26541			if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
26542
26543$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
26544
26545			fi
26546
26547									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
26548$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
26549if ${ol_cv_func_pthread_detach+:} false; then :
26550  $as_echo_n "(cached) " >&6
26551else
26552
26553								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26554/* end confdefs.h.  */
26555
26556#include <pthread.h>
26557#ifndef NULL
26558#define NULL (void*)0
26559#endif
26560
26561int
26562main ()
26563{
26564pthread_detach(NULL);
26565  ;
26566  return 0;
26567}
26568_ACEOF
26569if ac_fn_c_try_link "$LINENO"; then :
26570  ol_cv_func_pthread_detach=yes
26571else
26572  ol_cv_func_pthread_detach=no
26573fi
26574rm -f core conftest.err conftest.$ac_objext \
26575    conftest$ac_exeext conftest.$ac_ext
26576
26577fi
26578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
26579$as_echo "$ol_cv_func_pthread_detach" >&6; }
26580
26581			if test $ol_cv_func_pthread_detach = no ; then
26582				as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
26583			fi
26584
26585
26586$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
26587
26588
26589						for ac_func in \
26590				pthread_setconcurrency \
26591				pthread_getconcurrency \
26592				thr_setconcurrency \
26593				thr_getconcurrency \
26594
26595do :
26596  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26597ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26598if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26599  cat >>confdefs.h <<_ACEOF
26600#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26601_ACEOF
26602
26603fi
26604done
26605
26606
26607
26608	for ac_func in pthread_kill_other_threads_np
26609do :
26610  ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
26611if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
26612  cat >>confdefs.h <<_ACEOF
26613#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
26614_ACEOF
26615
26616fi
26617done
26618
26619	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
26620$as_echo_n "checking for LinuxThreads implementation... " >&6; }
26621if ${ol_cv_sys_linux_threads+:} false; then :
26622  $as_echo_n "(cached) " >&6
26623else
26624  ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
26625fi
26626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
26627$as_echo "$ol_cv_sys_linux_threads" >&6; }
26628
26629
26630
26631
26632	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
26633$as_echo_n "checking for LinuxThreads consistency... " >&6; }
26634if ${ol_cv_linux_threads+:} false; then :
26635  $as_echo_n "(cached) " >&6
26636else
26637
26638		if test $ol_cv_header_linux_threads = yes &&
26639		   test $ol_cv_sys_linux_threads = yes; then
26640			ol_cv_linux_threads=yes
26641		elif test $ol_cv_header_linux_threads = no &&
26642		     test $ol_cv_sys_linux_threads = no; then
26643			ol_cv_linux_threads=no
26644		else
26645			ol_cv_linux_threads=error
26646		fi
26647
26648fi
26649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
26650$as_echo "$ol_cv_linux_threads" >&6; }
26651
26652
26653			if test $ol_cv_linux_threads = error; then
26654				as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
26655			fi
26656
26657			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
26658$as_echo_n "checking if pthread_create() works... " >&6; }
26659if ${ol_cv_pthread_create_works+:} false; then :
26660  $as_echo_n "(cached) " >&6
26661else
26662
26663			if test "$cross_compiling" = yes; then :
26664  				ol_cv_pthread_create_works=yes
26665else
26666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26667/* end confdefs.h.  */
26668
26669
26670/* pthread test headers */
26671#include <pthread.h>
26672#if HAVE_PTHREADS < 7
26673#include <errno.h>
26674#endif
26675#ifndef NULL
26676#define NULL (void*)0
26677#endif
26678
26679static void *task(p)
26680	void *p;
26681{
26682	return (void *) (p == NULL);
26683}
26684
26685
26686int main(argc, argv)
26687	int argc;
26688	char **argv;
26689{
26690
26691	/* pthread test function */
26692#ifndef PTHREAD_CREATE_DETACHED
26693#define	PTHREAD_CREATE_DETACHED	1
26694#endif
26695	pthread_t t;
26696	int status;
26697	int detach = PTHREAD_CREATE_DETACHED;
26698
26699#if HAVE_PTHREADS > 4
26700	/* Final pthreads */
26701	pthread_attr_t attr;
26702
26703	status = pthread_attr_init(&attr);
26704	if( status ) return status;
26705
26706#if HAVE_PTHREADS < 7
26707	status = pthread_attr_setdetachstate(&attr, &detach);
26708	if( status < 0 ) status = errno;
26709#else
26710	status = pthread_attr_setdetachstate(&attr, detach);
26711#endif
26712	if( status ) return status;
26713	status = pthread_create( &t, &attr, task, NULL );
26714#if HAVE_PTHREADS < 7
26715	if( status < 0 ) status = errno;
26716#endif
26717	if( status ) return status;
26718#else
26719	/* Draft 4 pthreads */
26720	status = pthread_create( &t, pthread_attr_default, task, NULL );
26721	if( status ) return errno;
26722
26723	/* give thread a chance to complete */
26724	/* it should remain joinable and hence detachable */
26725	sleep( 1 );
26726
26727	status = pthread_detach( &t );
26728	if( status ) return errno;
26729#endif
26730
26731#ifdef HAVE_LINUX_THREADS
26732	pthread_kill_other_threads_np();
26733#endif
26734
26735	return 0;
26736
26737}
26738
26739_ACEOF
26740if ac_fn_c_try_run "$LINENO"; then :
26741  ol_cv_pthread_create_works=yes
26742else
26743  ol_cv_pthread_create_works=no
26744fi
26745rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26746  conftest.$ac_objext conftest.beam conftest.$ac_ext
26747fi
26748
26749fi
26750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
26751$as_echo "$ol_cv_pthread_create_works" >&6; }
26752
26753			if test $ol_cv_pthread_create_works = no ; then
26754				as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
26755			fi
26756
26757			ol_replace_broken_yield=no
26758
26759			if test $ol_replace_broken_yield = yes ; then
26760
26761$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
26762
26763			fi
26764
26765						if test x$ol_with_yielding_select = xauto ; then
26766				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
26767$as_echo_n "checking if select yields when using pthreads... " >&6; }
26768if ${ol_cv_pthread_select_yields+:} false; then :
26769  $as_echo_n "(cached) " >&6
26770else
26771
26772				if test "$cross_compiling" = yes; then :
26773  ol_cv_pthread_select_yields=cross
26774else
26775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26776/* end confdefs.h.  */
26777
26778#include <sys/types.h>
26779#include <sys/time.h>
26780#include <unistd.h>
26781#include <pthread.h>
26782#ifndef NULL
26783#define NULL (void*) 0
26784#endif
26785
26786static int fildes[2];
26787
26788static void *task(p)
26789	void *p;
26790{
26791	int i;
26792	struct timeval tv;
26793
26794	fd_set rfds;
26795
26796	tv.tv_sec=10;
26797	tv.tv_usec=0;
26798
26799	FD_ZERO(&rfds);
26800	FD_SET(fildes[0], &rfds);
26801
26802	/* we're not interested in any fds */
26803	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
26804
26805	if(i < 0) {
26806		perror("select");
26807		exit(10);
26808	}
26809
26810	exit(0); /* if we exit here, the select blocked the whole process */
26811}
26812
26813int main(argc, argv)
26814	int argc;
26815	char **argv;
26816{
26817	pthread_t t;
26818
26819	/* create a pipe to select */
26820	if(pipe(&fildes[0])) {
26821		perror("select");
26822		exit(1);
26823	}
26824
26825#ifdef HAVE_PTHREAD_SETCONCURRENCY
26826	(void) pthread_setconcurrency(2);
26827#else
26828#ifdef HAVE_THR_SETCONCURRENCY
26829	/* Set Solaris LWP concurrency to 2 */
26830	thr_setconcurrency(2);
26831#endif
26832#endif
26833
26834#if HAVE_PTHREADS < 6
26835	pthread_create(&t, pthread_attr_default, task, NULL);
26836#else
26837	pthread_create(&t, NULL, task, NULL);
26838#endif
26839
26840	/* make sure task runs first */
26841#ifdef HAVE_THR_YIELD
26842	thr_yield();
26843#elif defined( HAVE_SCHED_YIELD )
26844	sched_yield();
26845#elif defined( HAVE_PTHREAD_YIELD )
26846	pthread_yield();
26847#endif
26848
26849	exit(2);
26850}
26851_ACEOF
26852if ac_fn_c_try_run "$LINENO"; then :
26853  ol_cv_pthread_select_yields=no
26854else
26855  ol_cv_pthread_select_yields=yes
26856fi
26857rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26858  conftest.$ac_objext conftest.beam conftest.$ac_ext
26859fi
26860
26861fi
26862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
26863$as_echo "$ol_cv_pthread_select_yields" >&6; }
26864
26865				if test $ol_cv_pthread_select_yields = cross ; then
26866					as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
26867				fi
26868
26869				if test $ol_cv_pthread_select_yields = yes ; then
26870					ol_with_yielding_select=yes
26871				fi
26872			fi
26873
26874						CPPFLAGS="$save_CPPFLAGS"
26875			LIBS="$save_LIBS"
26876		else
26877			as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
26878		fi
26879	fi
26880
26881	if test $ol_with_threads = posix ; then
26882		as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
26883	fi
26884	;;
26885esac
26886
26887case $ol_with_threads in auto | yes | mach)
26888
26889		for ac_header in mach/cthreads.h cthreads.h
26890do :
26891  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26892ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26893if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26894  cat >>confdefs.h <<_ACEOF
26895#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26896_ACEOF
26897
26898fi
26899
26900done
26901
26902	if test $ac_cv_header_mach_cthreads_h = yes ; then
26903		ol_with_threads=found
26904
26905				ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
26906if test "x$ac_cv_func_cthread_fork" = xyes; then :
26907  ol_link_threads=yes
26908fi
26909
26910
26911		if test $ol_link_threads = no ; then
26912									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
26913$as_echo_n "checking for cthread_fork with -all_load... " >&6; }
26914if ${ol_cv_cthread_all_load+:} false; then :
26915  $as_echo_n "(cached) " >&6
26916else
26917
26918								save_LIBS="$LIBS"
26919				LIBS="-all_load $LIBS"
26920				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26921/* end confdefs.h.  */
26922#include <mach/cthreads.h>
26923int
26924main ()
26925{
26926
26927					cthread_fork((void *)0, (void *)0);
26928
26929  ;
26930  return 0;
26931}
26932_ACEOF
26933if ac_fn_c_try_link "$LINENO"; then :
26934  ol_cv_cthread_all_load=yes
26935else
26936  ol_cv_cthread_all_load=no
26937fi
26938rm -f core conftest.err conftest.$ac_objext \
26939    conftest$ac_exeext conftest.$ac_ext
26940								LIBS="$save_LIBS"
26941
26942fi
26943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
26944$as_echo "$ol_cv_cthread_all_load" >&6; }
26945
26946			if test $ol_cv_cthread_all_load = yes ; then
26947				LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
26948				ol_link_threads=mach
26949				ol_with_threads=found
26950			fi
26951		fi
26952
26953	elif test $ac_cv_header_cthreads_h = yes ; then
26954
26955		ol_with_threads=found
26956
26957				save_LIBS="$LIBS"
26958		LIBS="$LIBS -lthreads"
26959		ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
26960if test "x$ac_cv_func_cthread_fork" = xyes; then :
26961  ol_link_threads=yes
26962fi
26963
26964		LIBS="$save_LIBS"
26965
26966		if test $ol_link_threads = yes ; then
26967			LTHREAD_LIBS="-lthreads"
26968			ol_link_threads=mach
26969			ol_with_threads=found
26970		else
26971			as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
26972		fi
26973
26974	elif test $ol_with_threads = mach ; then
26975		as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
26976	fi
26977
26978	if test $ol_link_threads = mach ; then
26979
26980$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
26981
26982	elif test $ol_with_threads = found ; then
26983		as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
26984	fi
26985	;;
26986esac
26987
26988case $ol_with_threads in auto | yes | pth)
26989
26990	for ac_header in pth.h
26991do :
26992  ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
26993if test "x$ac_cv_header_pth_h" = xyes; then :
26994  cat >>confdefs.h <<_ACEOF
26995#define HAVE_PTH_H 1
26996_ACEOF
26997
26998fi
26999
27000done
27001
27002
27003	if test $ac_cv_header_pth_h = yes ; then
27004		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
27005$as_echo_n "checking for pth_version in -lpth... " >&6; }
27006if ${ac_cv_lib_pth_pth_version+:} false; then :
27007  $as_echo_n "(cached) " >&6
27008else
27009  ac_check_lib_save_LIBS=$LIBS
27010LIBS="-lpth  $LIBS"
27011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27012/* end confdefs.h.  */
27013
27014/* Override any GCC internal prototype to avoid an error.
27015   Use char because int might match the return type of a GCC
27016   builtin and then its argument prototype would still apply.  */
27017#ifdef __cplusplus
27018extern "C"
27019#endif
27020char pth_version ();
27021int
27022main ()
27023{
27024return pth_version ();
27025  ;
27026  return 0;
27027}
27028_ACEOF
27029if ac_fn_c_try_link "$LINENO"; then :
27030  ac_cv_lib_pth_pth_version=yes
27031else
27032  ac_cv_lib_pth_pth_version=no
27033fi
27034rm -f core conftest.err conftest.$ac_objext \
27035    conftest$ac_exeext conftest.$ac_ext
27036LIBS=$ac_check_lib_save_LIBS
27037fi
27038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
27039$as_echo "$ac_cv_lib_pth_pth_version" >&6; }
27040if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
27041  have_pth=yes
27042else
27043  have_pth=no
27044fi
27045
27046
27047		if test $have_pth = yes ; then
27048
27049$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
27050
27051			LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
27052			ol_link_threads=pth
27053			ol_with_threads=found
27054
27055			if test x$ol_with_yielding_select = xauto ; then
27056				ol_with_yielding_select=yes
27057			fi
27058		fi
27059	fi
27060	;;
27061esac
27062
27063case $ol_with_threads in auto | yes | lwp)
27064
27065		for ac_header in thread.h synch.h
27066do :
27067  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27068ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27069if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27070  cat >>confdefs.h <<_ACEOF
27071#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27072_ACEOF
27073
27074fi
27075
27076done
27077
27078	if test $ac_cv_header_thread_h = yes &&
27079	   test $ac_cv_header_synch_h = yes ; then
27080		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
27081$as_echo_n "checking for thr_create in -lthread... " >&6; }
27082if ${ac_cv_lib_thread_thr_create+:} false; then :
27083  $as_echo_n "(cached) " >&6
27084else
27085  ac_check_lib_save_LIBS=$LIBS
27086LIBS="-lthread  $LIBS"
27087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27088/* end confdefs.h.  */
27089
27090/* Override any GCC internal prototype to avoid an error.
27091   Use char because int might match the return type of a GCC
27092   builtin and then its argument prototype would still apply.  */
27093#ifdef __cplusplus
27094extern "C"
27095#endif
27096char thr_create ();
27097int
27098main ()
27099{
27100return thr_create ();
27101  ;
27102  return 0;
27103}
27104_ACEOF
27105if ac_fn_c_try_link "$LINENO"; then :
27106  ac_cv_lib_thread_thr_create=yes
27107else
27108  ac_cv_lib_thread_thr_create=no
27109fi
27110rm -f core conftest.err conftest.$ac_objext \
27111    conftest$ac_exeext conftest.$ac_ext
27112LIBS=$ac_check_lib_save_LIBS
27113fi
27114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
27115$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
27116if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
27117  have_thr=yes
27118else
27119  have_thr=no
27120fi
27121
27122
27123		if test $have_thr = yes ; then
27124
27125$as_echo "#define HAVE_THR 1" >>confdefs.h
27126
27127			LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
27128			ol_link_threads=thr
27129
27130			if test x$ol_with_yielding_select = xauto ; then
27131				ol_with_yielding_select=yes
27132			fi
27133
27134						for ac_func in \
27135				thr_setconcurrency \
27136				thr_getconcurrency \
27137
27138do :
27139  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27140ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27141if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27142  cat >>confdefs.h <<_ACEOF
27143#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27144_ACEOF
27145
27146fi
27147done
27148
27149		fi
27150	fi
27151
27152		for ac_header in lwp/lwp.h
27153do :
27154  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
27155if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
27156  cat >>confdefs.h <<_ACEOF
27157#define HAVE_LWP_LWP_H 1
27158_ACEOF
27159
27160fi
27161
27162done
27163
27164	if test $ac_cv_header_lwp_lwp_h = yes ; then
27165		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
27166$as_echo_n "checking for lwp_create in -llwp... " >&6; }
27167if ${ac_cv_lib_lwp_lwp_create+:} false; then :
27168  $as_echo_n "(cached) " >&6
27169else
27170  ac_check_lib_save_LIBS=$LIBS
27171LIBS="-llwp  $LIBS"
27172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27173/* end confdefs.h.  */
27174
27175/* Override any GCC internal prototype to avoid an error.
27176   Use char because int might match the return type of a GCC
27177   builtin and then its argument prototype would still apply.  */
27178#ifdef __cplusplus
27179extern "C"
27180#endif
27181char lwp_create ();
27182int
27183main ()
27184{
27185return lwp_create ();
27186  ;
27187  return 0;
27188}
27189_ACEOF
27190if ac_fn_c_try_link "$LINENO"; then :
27191  ac_cv_lib_lwp_lwp_create=yes
27192else
27193  ac_cv_lib_lwp_lwp_create=no
27194fi
27195rm -f core conftest.err conftest.$ac_objext \
27196    conftest$ac_exeext conftest.$ac_ext
27197LIBS=$ac_check_lib_save_LIBS
27198fi
27199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
27200$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
27201if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
27202  have_lwp=yes
27203else
27204  have_lwp=no
27205fi
27206
27207
27208		if test $have_lwp = yes ; then
27209
27210$as_echo "#define HAVE_LWP 1" >>confdefs.h
27211
27212			LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
27213			ol_link_threads=lwp
27214
27215			if test x$ol_with_yielding_select = xauto ; then
27216				ol_with_yielding_select=no
27217			fi
27218		fi
27219	fi
27220	;;
27221esac
27222
27223if test $ol_with_yielding_select = yes ; then
27224
27225$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
27226
27227fi
27228
27229if test $ol_with_threads = manual ; then
27230		ol_link_threads=yes
27231
27232	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
27233$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
27234
27235	for ac_header in pthread.h sched.h
27236do :
27237  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27238ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27239if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27240  cat >>confdefs.h <<_ACEOF
27241#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27242_ACEOF
27243
27244fi
27245
27246done
27247
27248	for ac_func in sched_yield pthread_yield
27249do :
27250  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27251ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27252if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27253  cat >>confdefs.h <<_ACEOF
27254#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27255_ACEOF
27256
27257fi
27258done
27259
27260
27261	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
27262$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
27263if ${ol_cv_header_linux_threads+:} false; then :
27264  $as_echo_n "(cached) " >&6
27265else
27266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27267/* end confdefs.h.  */
27268#include <pthread.h>
27269_ACEOF
27270if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27271  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
27272  ol_cv_header_linux_threads=yes
27273else
27274  ol_cv_header_linux_threads=no
27275fi
27276rm -f conftest*
27277
27278
27279fi
27280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
27281$as_echo "$ol_cv_header_linux_threads" >&6; }
27282	if test $ol_cv_header_linux_threads = yes; then
27283
27284$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
27285
27286	fi
27287
27288
27289	for ac_header in mach/cthreads.h
27290do :
27291  ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
27292if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
27293  cat >>confdefs.h <<_ACEOF
27294#define HAVE_MACH_CTHREADS_H 1
27295_ACEOF
27296
27297fi
27298
27299done
27300
27301	for ac_header in lwp/lwp.h
27302do :
27303  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
27304if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
27305  cat >>confdefs.h <<_ACEOF
27306#define HAVE_LWP_LWP_H 1
27307_ACEOF
27308
27309fi
27310
27311done
27312
27313	for ac_header in thread.h synch.h
27314do :
27315  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27316ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27317if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27318  cat >>confdefs.h <<_ACEOF
27319#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27320_ACEOF
27321
27322fi
27323
27324done
27325
27326fi
27327
27328if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27329
27330$as_echo "#define REENTRANT 1" >>confdefs.h
27331
27332
27333$as_echo "#define _REENTRANT 1" >>confdefs.h
27334
27335
27336$as_echo "#define THREAD_SAFE 1" >>confdefs.h
27337
27338
27339$as_echo "#define _THREAD_SAFE 1" >>confdefs.h
27340
27341
27342$as_echo "#define THREADSAFE 1" >>confdefs.h
27343
27344
27345$as_echo "#define _THREADSAFE 1" >>confdefs.h
27346
27347
27348$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
27349
27350
27351			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
27352$as_echo_n "checking for thread specific errno... " >&6; }
27353if ${ol_cv_errno_thread_specific+:} false; then :
27354  $as_echo_n "(cached) " >&6
27355else
27356
27357		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27358/* end confdefs.h.  */
27359#include <errno.h>
27360int
27361main ()
27362{
27363errno = 0;
27364  ;
27365  return 0;
27366}
27367_ACEOF
27368if ac_fn_c_try_link "$LINENO"; then :
27369  ol_cv_errno_thread_specific=yes
27370else
27371  ol_cv_errno_thread_specific=no
27372fi
27373rm -f core conftest.err conftest.$ac_objext \
27374    conftest$ac_exeext conftest.$ac_ext
27375
27376fi
27377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
27378$as_echo "$ol_cv_errno_thread_specific" >&6; }
27379
27380			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
27381$as_echo_n "checking for thread specific h_errno... " >&6; }
27382if ${ol_cv_h_errno_thread_specific+:} false; then :
27383  $as_echo_n "(cached) " >&6
27384else
27385
27386		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27387/* end confdefs.h.  */
27388#include <netdb.h>
27389int
27390main ()
27391{
27392h_errno = 0;
27393  ;
27394  return 0;
27395}
27396_ACEOF
27397if ac_fn_c_try_link "$LINENO"; then :
27398  ol_cv_h_errno_thread_specific=yes
27399else
27400  ol_cv_h_errno_thread_specific=no
27401fi
27402rm -f core conftest.err conftest.$ac_objext \
27403    conftest$ac_exeext conftest.$ac_ext
27404
27405fi
27406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
27407$as_echo "$ol_cv_h_errno_thread_specific" >&6; }
27408
27409	if test $ol_cv_errno_thread_specific != yes ||
27410	   test $ol_cv_h_errno_thread_specific != yes ; then
27411		LIBS="$LTHREAD_LIBS $LIBS"
27412		LTHREAD_LIBS=""
27413	fi
27414
27415fi
27416
27417if test $ol_link_threads = no ; then
27418	if test $ol_with_threads = yes ; then
27419		as_fn_error $? "no suitable thread support" "$LINENO" 5
27420	fi
27421
27422	if test $ol_with_threads = auto ; then
27423		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
27424$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27425		ol_with_threads=no
27426	fi
27427
27428
27429$as_echo "#define NO_THREADS 1" >>confdefs.h
27430
27431	LTHREAD_LIBS=""
27432	BUILD_THREAD=no
27433else
27434	BUILD_THREAD=yes
27435fi
27436
27437if test $ol_link_threads != no ; then
27438
27439$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
27440
27441fi
27442
27443# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
27444case "$ol_with_threads" in
27445 no)
27446    ol_pthread_ok=no
27447
27448    ;;
27449 *)
27450    ol_found_pthreads=yes
27451    ;;
27452esac
27453
27454ac_ext=c
27455ac_cpp='$CPP $CPPFLAGS'
27456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27458ac_compiler_gnu=$ac_cv_c_compiler_gnu
27459
27460
27461
27462
27463
27464
27465    case "$ol_found_pthreads" in
27466     yes)
27467	saved_LIBS="$LIBS"
27468	LIBS="$LTHREAD_LIBS $LIBS"
27469	saved_CFLAGS="$CFLAGS"
27470	CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
27471	for ac_func in sem_timedwait
27472do :
27473  ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
27474if test "x$ac_cv_func_sem_timedwait" = xyes; then :
27475  cat >>confdefs.h <<_ACEOF
27476#define HAVE_SEM_TIMEDWAIT 1
27477_ACEOF
27478
27479fi
27480done
27481
27482	LIBS="$saved_LIBS"
27483	{ saved_LIBS=; unset saved_LIBS;}
27484	CFLAGS="$saved_CFLAGS"
27485	{ saved_CFLAGS=; unset saved_CFLAGS;}
27486	case "$ac_cv_func_sem_timedwait" in
27487	 yes)
27488	    PTHREAD_LIBS="$LTHREAD_LIBS"
27489	    have_pthreads=yes
27490	esac
27491    esac
27492esac
27493
27494case "$have_pthreads" in
27495 yes)
27496    CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
27497    saved_LIBS="$LIBS"
27498    LIBS="$LTHREAD_LIBS $LIBS"
27499    saved_CFLAGS="$CFLAGS"
27500    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
27501    # The cast to long int works around a bug in the HP C Compiler
27502# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27503# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27504# This bug is HP SR number 8606223364.
27505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
27506$as_echo_n "checking size of pthread_t... " >&6; }
27507if ${ac_cv_sizeof_pthread_t+:} false; then :
27508  $as_echo_n "(cached) " >&6
27509else
27510  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
27511	    $ac_includes_default
27512	    #include <pthread.h>
27513
27514
27515"; then :
27516
27517else
27518  if test "$ac_cv_type_pthread_t" = yes; then
27519     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27521as_fn_error 77 "cannot compute sizeof (pthread_t)
27522See \`config.log' for more details" "$LINENO" 5; }
27523   else
27524     ac_cv_sizeof_pthread_t=0
27525   fi
27526fi
27527
27528fi
27529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
27530$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
27531
27532
27533
27534cat >>confdefs.h <<_ACEOF
27535#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
27536_ACEOF
27537
27538
27539    LIBISC_PTHREADS_NOTHREADS=pthreads
27540
27541$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
27542
27543    #
27544    # We'd like to use sigwait() too
27545    #
27546    ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
27547if test "x$ac_cv_func_sigwait" = xyes; then :
27548  have_sigwait=yes
27549else
27550  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
27551$as_echo_n "checking for sigwait in -lc... " >&6; }
27552if ${ac_cv_lib_c_sigwait+:} false; then :
27553  $as_echo_n "(cached) " >&6
27554else
27555  ac_check_lib_save_LIBS=$LIBS
27556LIBS="-lc  $LIBS"
27557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27558/* end confdefs.h.  */
27559
27560/* Override any GCC internal prototype to avoid an error.
27561   Use char because int might match the return type of a GCC
27562   builtin and then its argument prototype would still apply.  */
27563#ifdef __cplusplus
27564extern "C"
27565#endif
27566char sigwait ();
27567int
27568main ()
27569{
27570return sigwait ();
27571  ;
27572  return 0;
27573}
27574_ACEOF
27575if ac_fn_c_try_link "$LINENO"; then :
27576  ac_cv_lib_c_sigwait=yes
27577else
27578  ac_cv_lib_c_sigwait=no
27579fi
27580rm -f core conftest.err conftest.$ac_objext \
27581    conftest$ac_exeext conftest.$ac_ext
27582LIBS=$ac_check_lib_save_LIBS
27583fi
27584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
27585$as_echo "$ac_cv_lib_c_sigwait" >&6; }
27586if test "x$ac_cv_lib_c_sigwait" = xyes; then :
27587  have_sigwait=yes
27588else
27589  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
27590$as_echo_n "checking for sigwait in -lpthread... " >&6; }
27591if ${ac_cv_lib_pthread_sigwait+:} false; then :
27592  $as_echo_n "(cached) " >&6
27593else
27594  ac_check_lib_save_LIBS=$LIBS
27595LIBS="-lpthread  $LIBS"
27596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27597/* end confdefs.h.  */
27598
27599/* Override any GCC internal prototype to avoid an error.
27600   Use char because int might match the return type of a GCC
27601   builtin and then its argument prototype would still apply.  */
27602#ifdef __cplusplus
27603extern "C"
27604#endif
27605char sigwait ();
27606int
27607main ()
27608{
27609return sigwait ();
27610  ;
27611  return 0;
27612}
27613_ACEOF
27614if ac_fn_c_try_link "$LINENO"; then :
27615  ac_cv_lib_pthread_sigwait=yes
27616else
27617  ac_cv_lib_pthread_sigwait=no
27618fi
27619rm -f core conftest.err conftest.$ac_objext \
27620    conftest$ac_exeext conftest.$ac_ext
27621LIBS=$ac_check_lib_save_LIBS
27622fi
27623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
27624$as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
27625if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
27626  have_sigwait=yes
27627else
27628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
27629$as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
27630if ${ac_cv_lib_pthread__Psigwait+:} false; then :
27631  $as_echo_n "(cached) " >&6
27632else
27633  ac_check_lib_save_LIBS=$LIBS
27634LIBS="-lpthread  $LIBS"
27635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27636/* end confdefs.h.  */
27637
27638/* Override any GCC internal prototype to avoid an error.
27639   Use char because int might match the return type of a GCC
27640   builtin and then its argument prototype would still apply.  */
27641#ifdef __cplusplus
27642extern "C"
27643#endif
27644char _Psigwait ();
27645int
27646main ()
27647{
27648return _Psigwait ();
27649  ;
27650  return 0;
27651}
27652_ACEOF
27653if ac_fn_c_try_link "$LINENO"; then :
27654  ac_cv_lib_pthread__Psigwait=yes
27655else
27656  ac_cv_lib_pthread__Psigwait=no
27657fi
27658rm -f core conftest.err conftest.$ac_objext \
27659    conftest$ac_exeext conftest.$ac_ext
27660LIBS=$ac_check_lib_save_LIBS
27661fi
27662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
27663$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
27664if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
27665  have_sigwait=yes
27666else
27667  have_sigwait=no
27668
27669fi
27670
27671
27672fi
27673
27674
27675fi
27676
27677
27678fi
27679
27680    case "$host:$have_sigwait" in
27681     *-freebsd*:no)
27682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
27683$as_echo_n "checking for sigwait in -lc_r... " >&6; }
27684if ${ac_cv_lib_c_r_sigwait+:} false; then :
27685  $as_echo_n "(cached) " >&6
27686else
27687  ac_check_lib_save_LIBS=$LIBS
27688LIBS="-lc_r  $LIBS"
27689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27690/* end confdefs.h.  */
27691
27692/* Override any GCC internal prototype to avoid an error.
27693   Use char because int might match the return type of a GCC
27694   builtin and then its argument prototype would still apply.  */
27695#ifdef __cplusplus
27696extern "C"
27697#endif
27698char sigwait ();
27699int
27700main ()
27701{
27702return sigwait ();
27703  ;
27704  return 0;
27705}
27706_ACEOF
27707if ac_fn_c_try_link "$LINENO"; then :
27708  ac_cv_lib_c_r_sigwait=yes
27709else
27710  ac_cv_lib_c_r_sigwait=no
27711fi
27712rm -f core conftest.err conftest.$ac_objext \
27713    conftest$ac_exeext conftest.$ac_ext
27714LIBS=$ac_check_lib_save_LIBS
27715fi
27716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
27717$as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
27718if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
27719  have_sigwait=yes
27720
27721fi
27722
27723    esac
27724    case "$have_sigwait" in
27725     yes)
27726	ac_cv_func_sigwait=yes
27727
27728$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
27729
27730    esac
27731
27732    for ac_func in pthread_attr_getstacksize
27733do :
27734  ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
27735if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
27736  cat >>confdefs.h <<_ACEOF
27737#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
27738_ACEOF
27739
27740fi
27741done
27742
27743    for ac_func in pthread_attr_setstacksize sysconf
27744do :
27745  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27746ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27747if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27748  cat >>confdefs.h <<_ACEOF
27749#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27750_ACEOF
27751
27752fi
27753done
27754
27755
27756    case "$host" in
27757     *-freebsd5.[012]|*-freebsd5.[012].*)
27758	;;
27759     *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
27760
27761$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
27762
27763	;;
27764     *-bsdi3.*|*-bsdi4.0*)
27765
27766$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
27767
27768	;;
27769     *-linux*)
27770
27771$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
27772
27773	;;
27774     *-solaris*)
27775	$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
27776
27777	for ac_func in pthread_setconcurrency
27778do :
27779  ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
27780if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
27781  cat >>confdefs.h <<_ACEOF
27782#define HAVE_PTHREAD_SETCONCURRENCY 1
27783_ACEOF
27784
27785fi
27786done
27787
27788	case "$ac_cv_func_pthread_setconcurrency" in
27789	 yes)
27790
27791$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
27792
27793	esac
27794	;;
27795     *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
27796
27797$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
27798
27799	;;
27800    esac
27801    hack_shutup_pthreadonceinit=no
27802    case "$host" in
27803     *-aix5.[123].*)
27804	hack_shutup_pthreadonceinit=yes
27805	;;
27806     *-solaris2.[89])
27807	hack_shutup_pthreadonceinit=yes
27808	;;
27809     *-solaris2.1[0-9])
27810	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
27811$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
27812if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
27813  $as_echo_n "(cached) " >&6
27814else
27815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27816/* end confdefs.h.  */
27817
27818			#include <pthread.h>
27819
27820int
27821main ()
27822{
27823
27824		        static pthread_once_t once_test =
27825						PTHREAD_ONCE_INIT;
27826
27827
27828  ;
27829  return 0;
27830}
27831_ACEOF
27832if ac_fn_c_try_compile "$LINENO"; then :
27833  ntp_cv_braces_around_pthread_once_init=no
27834else
27835  ntp_cv_braces_around_pthread_once_init=yes
27836
27837fi
27838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27839
27840fi
27841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
27842$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
27843	case "$ntp_cv_braces_around_pthread_once_init" in
27844	 yes)
27845	    hack_shutup_pthreadonceinit=yes
27846	esac
27847	;;
27848    esac
27849    case "$hack_shutup_pthreadonceinit" in
27850     yes)
27851
27852$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
27853
27854    esac
27855    LIBS="$saved_LIBS"
27856    { saved_LIBS=; unset saved_LIBS;}
27857    CFLAGS="$saved_CFLAGS"
27858    { saved_CFLAGS=; unset saved_CFLAGS;}
27859    ;;
27860 *)
27861    LIBISC_PTHREADS_NOTHREADS=nothreads
27862    ;;
27863esac
27864
27865 if test "$have_pthreads" != "no"; then
27866  PTHREADS_TRUE=
27867  PTHREADS_FALSE='#'
27868else
27869  PTHREADS_TRUE='#'
27870  PTHREADS_FALSE=
27871fi
27872
27873
27874
27875
27876
27877
27878
27879case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
27880 no:yes)
27881    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
27882$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
27883if ${ntp_cv_vsnprintf_percent_m+:} false; then :
27884  $as_echo_n "(cached) " >&6
27885else
27886  if test "$cross_compiling" = yes; then :
27887  ntp_cv_vsnprintf_percent_m=no
27888
27889else
27890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27891/* end confdefs.h.  */
27892
27893		    #include <stdarg.h>
27894		    #include <errno.h>
27895		    #include <stdio.h>
27896		    #include <string.h>
27897
27898		    int call_vsnprintf(
27899			    char *	dst,
27900			    size_t	sz,
27901			    const char *fmt,
27902			    ...
27903			    );
27904
27905		    int call_vsnprintf(
27906			    char *	dst,
27907			    size_t	sz,
27908			    const char *fmt,
27909			    ...
27910			    )
27911		    {
27912			    va_list	ap;
27913			    int		rc;
27914
27915			    va_start(ap, fmt);
27916			    rc = vsnprintf(dst, sz, fmt, ap);
27917			    va_end(ap);
27918
27919			    return rc;
27920		    }
27921
27922int
27923main ()
27924{
27925
27926		    char	sbuf[512];
27927		    char	pbuf[512];
27928		    int		slen;
27929
27930		    strcpy(sbuf, strerror(ENOENT));
27931		    errno = ENOENT;
27932		    slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
27933					  "wrong");
27934		    return strcmp(sbuf, pbuf);
27935
27936
27937  ;
27938  return 0;
27939}
27940_ACEOF
27941if ac_fn_c_try_run "$LINENO"; then :
27942  ntp_cv_vsnprintf_percent_m=yes
27943else
27944  ntp_cv_vsnprintf_percent_m=no
27945fi
27946rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27947  conftest.$ac_objext conftest.beam conftest.$ac_ext
27948fi
27949
27950
27951fi
27952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
27953$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
27954    case "$ntp_cv_vsnprintf_percent_m" in
27955     yes)
27956
27957$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
27958
27959    esac
27960esac
27961
27962for ac_header in sys/clockctl.h
27963do :
27964  ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
27965if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
27966  cat >>confdefs.h <<_ACEOF
27967#define HAVE_SYS_CLOCKCTL_H 1
27968_ACEOF
27969
27970fi
27971
27972done
27973
27974
27975# Check whether --enable-clockctl was given.
27976if test "${enable_clockctl+set}" = set; then :
27977  enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
27978else
27979  ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
27980
27981fi
27982
27983
27984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
27985$as_echo_n "checking if we should use /dev/clockctl... " >&6; }
27986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
27987$as_echo "$ntp_use_dev_clockctl" >&6; }
27988
27989
27990for ac_header in sys/capability.h sys/prctl.h
27991do :
27992  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27993ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27994if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27995  cat >>confdefs.h <<_ACEOF
27996#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27997_ACEOF
27998
27999fi
28000
28001done
28002
28003
28004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
28005$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
28006
28007case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
28008 yesyes)
28009    case "$host" in
28010     mips-sgi-irix*)
28011	ntp_have_linuxcaps=no
28012	;;
28013     *) ntp_have_linuxcaps=yes
28014	;;
28015    esac
28016    ;;
28017 *)
28018    ntp_have_linuxcaps=no
28019    ;;
28020esac
28021
28022# Check whether --enable-linuxcaps was given.
28023if test "${enable_linuxcaps+set}" = set; then :
28024  enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
28025
28026fi
28027
28028
28029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
28030$as_echo "$ntp_have_linuxcaps" >&6; }
28031
28032case "$ntp_have_linuxcaps" in
28033 yes)
28034
28035$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
28036
28037    LIBS="$LIBS -lcap"
28038    ;;
28039esac
28040
28041
28042for ac_header in priv.h
28043do :
28044  ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
28045if test "x$ac_cv_header_priv_h" = xyes; then :
28046  cat >>confdefs.h <<_ACEOF
28047#define HAVE_PRIV_H 1
28048_ACEOF
28049
28050fi
28051
28052done
28053
28054
28055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
28056$as_echo_n "checking if we have solaris privileges... " >&6; }
28057
28058case "$ac_cv_header_priv_h" in
28059 yes)
28060    case "$host" in
28061     *-solaris*)
28062	ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
28063if test "x$ac_cv_func_setppriv" = xyes; then :
28064  ntp_have_solarisprivs=yes
28065else
28066  ntp_have_solarisprivs=no
28067
28068fi
28069
28070	;;
28071    esac
28072esac
28073
28074# Check whether --enable-solarisprivs was given.
28075if test "${enable_solarisprivs+set}" = set; then :
28076  enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
28077
28078fi
28079
28080
28081
28082case "$ntp_have_solarisprivs" in
28083 yes)
28084
28085$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
28086
28087esac
28088
28089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
28090$as_echo "$ntp_have_solarisprivs" >&6; }
28091
28092case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
28093 *yes*)
28094
28095$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h
28096
28097esac
28098
28099case "$host" in
28100 *-*-darwin*)
28101    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
28102$as_echo_n "checking for library containing res_9_init... " >&6; }
28103if ${ac_cv_search_res_9_init+:} false; then :
28104  $as_echo_n "(cached) " >&6
28105else
28106  ac_func_search_save_LIBS=$LIBS
28107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28108/* end confdefs.h.  */
28109
28110/* Override any GCC internal prototype to avoid an error.
28111   Use char because int might match the return type of a GCC
28112   builtin and then its argument prototype would still apply.  */
28113#ifdef __cplusplus
28114extern "C"
28115#endif
28116char res_9_init ();
28117int
28118main ()
28119{
28120return res_9_init ();
28121  ;
28122  return 0;
28123}
28124_ACEOF
28125for ac_lib in '' resolv; do
28126  if test -z "$ac_lib"; then
28127    ac_res="none required"
28128  else
28129    ac_res=-l$ac_lib
28130    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28131  fi
28132  if ac_fn_c_try_link "$LINENO"; then :
28133  ac_cv_search_res_9_init=$ac_res
28134fi
28135rm -f core conftest.err conftest.$ac_objext \
28136    conftest$ac_exeext
28137  if ${ac_cv_search_res_9_init+:} false; then :
28138  break
28139fi
28140done
28141if ${ac_cv_search_res_9_init+:} false; then :
28142
28143else
28144  ac_cv_search_res_9_init=no
28145fi
28146rm conftest.$ac_ext
28147LIBS=$ac_func_search_save_LIBS
28148fi
28149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
28150$as_echo "$ac_cv_search_res_9_init" >&6; }
28151ac_res=$ac_cv_search_res_9_init
28152if test "$ac_res" != no; then :
28153  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28154
28155fi
28156
28157    ;;
28158 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
28159$as_echo_n "checking for library containing res_init... " >&6; }
28160if ${ac_cv_search_res_init+:} false; then :
28161  $as_echo_n "(cached) " >&6
28162else
28163  ac_func_search_save_LIBS=$LIBS
28164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28165/* end confdefs.h.  */
28166
28167/* Override any GCC internal prototype to avoid an error.
28168   Use char because int might match the return type of a GCC
28169   builtin and then its argument prototype would still apply.  */
28170#ifdef __cplusplus
28171extern "C"
28172#endif
28173char res_init ();
28174int
28175main ()
28176{
28177return res_init ();
28178  ;
28179  return 0;
28180}
28181_ACEOF
28182for ac_lib in '' resolv; do
28183  if test -z "$ac_lib"; then
28184    ac_res="none required"
28185  else
28186    ac_res=-l$ac_lib
28187    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28188  fi
28189  if ac_fn_c_try_link "$LINENO"; then :
28190  ac_cv_search_res_init=$ac_res
28191fi
28192rm -f core conftest.err conftest.$ac_objext \
28193    conftest$ac_exeext
28194  if ${ac_cv_search_res_init+:} false; then :
28195  break
28196fi
28197done
28198if ${ac_cv_search_res_init+:} false; then :
28199
28200else
28201  ac_cv_search_res_init=no
28202fi
28203rm conftest.$ac_ext
28204LIBS=$ac_func_search_save_LIBS
28205fi
28206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
28207$as_echo "$ac_cv_search_res_init" >&6; }
28208ac_res=$ac_cv_search_res_init
28209if test "$ac_res" != no; then :
28210  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28211
28212fi
28213
28214    ;;
28215esac
28216for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
28217do :
28218  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28219ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
28220#  include <sys/types.h>
28221#endif
28222#ifdef HAVE_NETINET_IN_H
28223#  include <netinet/in.h>   /* inet_ functions / structs */
28224#endif
28225#ifdef HAVE_ARPA_NAMESER_H
28226#  include <arpa/nameser.h> /* DNS HEADER struct */
28227#endif
28228#ifdef HAVE_NETDB_H
28229#  include <netdb.h>
28230#endif
28231"
28232if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28233  cat >>confdefs.h <<_ACEOF
28234#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28235_ACEOF
28236
28237fi
28238
28239done
28240
28241
28242#HMS: Why do we do this check so "early"?
28243for ac_func in res_init
28244do :
28245  ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
28246if test "x$ac_cv_func_res_init" = xyes; then :
28247  cat >>confdefs.h <<_ACEOF
28248#define HAVE_RES_INIT 1
28249_ACEOF
28250
28251else
28252  for ac_func in __res_init
28253do :
28254  ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
28255if test "x$ac_cv_func___res_init" = xyes; then :
28256  cat >>confdefs.h <<_ACEOF
28257#define HAVE___RES_INIT 1
28258_ACEOF
28259
28260fi
28261done
28262
28263fi
28264done
28265
28266
28267# We also need -lsocket, but we have tested for that already.
28268ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28269if test "x$ac_cv_func_inet_ntop" = xyes; then :
28270
28271else
28272
28273$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
28274
28275fi
28276
28277ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28278if test "x$ac_cv_func_inet_pton" = xyes; then :
28279
28280else
28281
28282$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
28283
28284fi
28285
28286
28287ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
28288if test "x$ac_cv_type_uintptr_t" = xyes; then :
28289
28290cat >>confdefs.h <<_ACEOF
28291#define HAVE_UINTPTR_T 1
28292_ACEOF
28293
28294
28295fi
28296ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
28297if test "x$ac_cv_type_int32" = xyes; then :
28298
28299cat >>confdefs.h <<_ACEOF
28300#define HAVE_INT32 1
28301_ACEOF
28302
28303
28304fi
28305ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
28306if test "x$ac_cv_type_u_int32" = xyes; then :
28307
28308cat >>confdefs.h <<_ACEOF
28309#define HAVE_U_INT32 1
28310_ACEOF
28311
28312
28313fi
28314
28315
28316
28317
28318case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
28319 no::yes)
28320    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
28321$as_echo_n "checking for int32 with DNS headers included... " >&6; }
28322if ${ntp_cv_type_int32_with_dns+:} false; then :
28323  $as_echo_n "(cached) " >&6
28324else
28325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28326/* end confdefs.h.  */
28327
28328		    #ifdef HAVE_ARPA_NAMESER_H
28329		    # include <arpa/nameser.h>
28330		    #endif
28331		    #include <resolv.h>
28332
28333int
28334main ()
28335{
28336
28337		    size_t cb = sizeof(int32);
28338
28339
28340  ;
28341  return 0;
28342}
28343_ACEOF
28344if ac_fn_c_try_compile "$LINENO"; then :
28345  ntp_cv_type_int32_with_dns=yes
28346else
28347  ntp_cv_type_int32_with_dns=no
28348
28349fi
28350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28351
28352fi
28353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
28354$as_echo "$ntp_cv_type_int32_with_dns" >&6; }
28355    case "$ntp_cv_type_int32_with_dns" in
28356     yes)
28357
28358$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
28359
28360    esac
28361esac
28362
28363case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
28364 no::yes)
28365    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
28366$as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
28367if ${ntp_cv_type_u_int32_with_dns+:} false; then :
28368  $as_echo_n "(cached) " >&6
28369else
28370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28371/* end confdefs.h.  */
28372
28373		    #ifdef HAVE_ARPA_NAMESER_H
28374		    # include <arpa/nameser.h>
28375		    #endif
28376		    #include <resolv.h>
28377
28378int
28379main ()
28380{
28381
28382		    size_t cb = sizeof(u_int32);
28383
28384
28385  ;
28386  return 0;
28387}
28388_ACEOF
28389if ac_fn_c_try_compile "$LINENO"; then :
28390  ntp_cv_type_u_int32_with_dns=yes
28391else
28392  ntp_cv_type_u_int32_with_dns=no
28393
28394fi
28395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28396
28397fi
28398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
28399$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
28400    case "$ntp_cv_type_u_int32_with_dns" in
28401     yes)
28402
28403$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
28404
28405    esac
28406esac
28407
28408for ac_header in sys/timepps.h
28409do :
28410  ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
28411	#ifdef HAVE_SYS_TIME_H
28412	# include <sys/time.h>
28413	#endif
28414	#ifdef HAVE_ERRNO_H
28415	# include <errno.h>
28416	#endif
28417
28418
28419"
28420if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
28421  cat >>confdefs.h <<_ACEOF
28422#define HAVE_SYS_TIMEPPS_H 1
28423_ACEOF
28424
28425fi
28426
28427done
28428
28429
28430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
28431$as_echo_n "checking for struct timespec... " >&6; }
28432if ${ntp_cv_struct_timespec+:} false; then :
28433  $as_echo_n "(cached) " >&6
28434else
28435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28436/* end confdefs.h.  */
28437
28438		#include <sys/time.h>
28439		/* Under SunOS, timespec is in sys/timepps.h,
28440		   which needs errno.h and FRAC */
28441		#ifdef HAVE_ERRNO_H
28442		# include <errno.h>
28443		#endif
28444		#ifdef HAVE_SYS_TIMEPPS_H
28445		# define FRAC 4294967296
28446		# include <sys/timepps.h>
28447		#endif
28448
28449int
28450main ()
28451{
28452
28453		struct timespec n;
28454
28455
28456  ;
28457  return 0;
28458}
28459_ACEOF
28460if ac_fn_c_try_compile "$LINENO"; then :
28461  ntp_cv_struct_timespec=yes
28462else
28463  ntp_cv_struct_timespec=no
28464
28465fi
28466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28467
28468fi
28469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
28470$as_echo "$ntp_cv_struct_timespec" >&6; }
28471case "$ntp_cv_struct_timespec" in
28472 yes)
28473
28474$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
28475
28476esac
28477
28478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
28479$as_echo_n "checking for struct ntptimeval... " >&6; }
28480if ${ntp_cv_struct_ntptimeval+:} false; then :
28481  $as_echo_n "(cached) " >&6
28482else
28483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28484/* end confdefs.h.  */
28485
28486		#include <sys/time.h>
28487		#include <sys/timex.h>
28488
28489int
28490main ()
28491{
28492
28493		struct ntptimeval n;
28494
28495
28496  ;
28497  return 0;
28498}
28499_ACEOF
28500if ac_fn_c_try_compile "$LINENO"; then :
28501  ntp_cv_struct_ntptimeval=yes
28502else
28503  ntp_cv_struct_ntptimeval=no
28504
28505fi
28506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28507
28508fi
28509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
28510$as_echo "$ntp_cv_struct_ntptimeval" >&6; }
28511case "$ntp_cv_struct_ntptimeval" in
28512 yes)
28513
28514$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
28515
28516esac
28517
28518for ac_header in md5.h
28519do :
28520  ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
28521	#ifdef HAVE_SYS_TYPES_H
28522	# include <sys/types.h>
28523	#endif
28524
28525
28526"
28527if test "x$ac_cv_header_md5_h" = xyes; then :
28528  cat >>confdefs.h <<_ACEOF
28529#define HAVE_MD5_H 1
28530_ACEOF
28531
28532fi
28533
28534done
28535
28536
28537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
28538$as_echo_n "checking for library containing MD5Init... " >&6; }
28539if ${ac_cv_search_MD5Init+:} false; then :
28540  $as_echo_n "(cached) " >&6
28541else
28542  ac_func_search_save_LIBS=$LIBS
28543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28544/* end confdefs.h.  */
28545
28546/* Override any GCC internal prototype to avoid an error.
28547   Use char because int might match the return type of a GCC
28548   builtin and then its argument prototype would still apply.  */
28549#ifdef __cplusplus
28550extern "C"
28551#endif
28552char MD5Init ();
28553int
28554main ()
28555{
28556return MD5Init ();
28557  ;
28558  return 0;
28559}
28560_ACEOF
28561for ac_lib in '' md5 md; do
28562  if test -z "$ac_lib"; then
28563    ac_res="none required"
28564  else
28565    ac_res=-l$ac_lib
28566    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28567  fi
28568  if ac_fn_c_try_link "$LINENO"; then :
28569  ac_cv_search_MD5Init=$ac_res
28570fi
28571rm -f core conftest.err conftest.$ac_objext \
28572    conftest$ac_exeext
28573  if ${ac_cv_search_MD5Init+:} false; then :
28574  break
28575fi
28576done
28577if ${ac_cv_search_MD5Init+:} false; then :
28578
28579else
28580  ac_cv_search_MD5Init=no
28581fi
28582rm conftest.$ac_ext
28583LIBS=$ac_func_search_save_LIBS
28584fi
28585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
28586$as_echo "$ac_cv_search_MD5Init" >&6; }
28587ac_res=$ac_cv_search_MD5Init
28588if test "$ac_res" != no; then :
28589  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28590
28591fi
28592
28593for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
28594do :
28595  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28596ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28597if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28598  cat >>confdefs.h <<_ACEOF
28599#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28600_ACEOF
28601
28602fi
28603done
28604
28605
28606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
28607$as_echo_n "checking for SIGIO... " >&6; }
28608if ${ntp_cv_hdr_def_sigio+:} false; then :
28609  $as_echo_n "(cached) " >&6
28610else
28611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28612/* end confdefs.h.  */
28613
28614	    #include <signal.h>
28615
28616	    #ifndef SIGIO
28617	    # error
28618	    #endif
28619
28620_ACEOF
28621if ac_fn_c_try_cpp "$LINENO"; then :
28622  ntp_cv_hdr_def_sigio=yes
28623else
28624  ntp_cv_hdr_def_sigio=no
28625
28626fi
28627rm -f conftest.err conftest.i conftest.$ac_ext
28628
28629fi
28630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
28631$as_echo "$ntp_cv_hdr_def_sigio" >&6; }
28632
28633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
28634$as_echo_n "checking if we want to use SIGIO... " >&6; }
28635ans=no
28636case "$ntp_cv_hdr_def_sigio" in
28637 yes)
28638    ans=yes
28639    case "$host" in
28640     alpha*-dec-osf4*|alpha*-dec-osf5*)
28641	ans=no
28642	;;
28643     *-convex-*)
28644	ans=no
28645	;;
28646     *-dec-*)
28647	ans=no
28648	;;
28649     *-pc-cygwin*)
28650	ans=no
28651	;;
28652     *-sni-sysv*)
28653	ans=no
28654	;;
28655     *-stratus-vos)
28656	ans=no
28657	;;
28658     *-univel-sysv*)
28659	ans=no
28660	;;
28661     *-*-irix6*)
28662	ans=no
28663	;;
28664     *-*-freebsd*)
28665	ans=no
28666	;;
28667     *-*-*linux*)
28668	ans=no
28669	;;
28670     *-*-unicosmp*)
28671	ans=no
28672	;;
28673     *-*-kfreebsd*)
28674	ans=no
28675	;;
28676     m68k-*-mint*)
28677	ans=no
28678	;;
28679    esac
28680    ;;
28681esac
28682case "$ans" in
28683 yes)
28684
28685$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
28686
28687esac
28688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28689$as_echo "$ans" >&6; }
28690
28691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
28692$as_echo_n "checking for SIGPOLL... " >&6; }
28693if ${ntp_cv_hdr_def_sigpoll+:} false; then :
28694  $as_echo_n "(cached) " >&6
28695else
28696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28697/* end confdefs.h.  */
28698
28699	    #include <signal.h>
28700
28701	    #ifndef SIGPOLL
28702	    # error
28703	    #endif
28704
28705_ACEOF
28706if ac_fn_c_try_cpp "$LINENO"; then :
28707  ntp_cv_hdr_def_sigpoll=yes
28708else
28709  ntp_cv_hdr_def_sigpoll=no
28710
28711fi
28712rm -f conftest.err conftest.i conftest.$ac_ext
28713
28714fi
28715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
28716$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
28717
28718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
28719$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
28720ans=no
28721case "$ntp_cv_hdr_def_sigpoll" in
28722 yes)
28723    case "$host" in
28724     mips-sgi-irix*)
28725	ans=no
28726	;;
28727     vax-dec-bsd)
28728	ans=no
28729	;;
28730     *-pc-cygwin*)
28731	ans=no
28732	;;
28733     *-sni-sysv*)
28734	ans=no
28735	;;
28736     *-stratus-vos)
28737	ans=no
28738	;;
28739     *-*-aix[4-9]*)
28740	# XXX Only verified thru AIX6
28741	ans=no
28742	;;
28743     *-*-hpux*)
28744	ans=no
28745	;;
28746     *-*-*linux*)
28747	ans=no
28748	;;
28749     *-*-osf*)
28750	ans=no
28751	;;
28752     *-*-qnx*)
28753	ans=no
28754	;;
28755     *-*-sunos*)
28756	ans=no
28757	;;
28758     *-*-solaris*)
28759	ans=no
28760	;;
28761     *-*-ultrix*)
28762	ans=no
28763	;;
28764     *-*-unicosmp*)
28765	ans=no
28766	;;
28767     *-*-kfreebsd*)
28768	ans=no
28769	;;
28770     *) ans=yes
28771	;;
28772    esac
28773    ;;
28774esac
28775case "$ans" in
28776 yes)
28777
28778$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
28779
28780esac
28781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28782$as_echo "$ans" >&6; }
28783
28784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
28785$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
28786ans=no
28787case "$ntp_cv_hdr_def_sigpoll" in
28788 yes)
28789    case "$host" in
28790     mips-sgi-irix*)
28791	ans=no
28792	;;
28793     vax-dec-bsd)
28794	ans=no
28795	;;
28796     *-pc-cygwin*)
28797	ans=no
28798	;;
28799     *-sni-sysv*)
28800	ans=no
28801	;;
28802     *-stratus-vos)
28803	ans=no
28804	;;
28805     *-*-aix[4-9]*)
28806	# XXX Only verified thru AIX6
28807	ans=no
28808	;;
28809     *-*-hpux*)
28810	ans=no
28811	;;
28812     *-*-*linux*)
28813	ans=no
28814	;;
28815     *-*-osf*)
28816	ans=no
28817	;;
28818     *-*-sunos*)
28819	ans=no
28820	;;
28821     *-*-ultrix*)
28822	ans=no
28823	;;
28824     *-*-qnx*)
28825	ans=no
28826	;;
28827     *-*-unicosmp*)
28828	ans=no
28829	;;
28830     *-*-kfreebsd*)
28831	ans=no
28832	;;
28833     *) ans=yes
28834	;;
28835    esac
28836    ;;
28837esac
28838case "$ans" in
28839 yes)
28840
28841$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
28842
28843esac
28844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28845$as_echo "$ans" >&6; }
28846
28847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
28848$as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
28849if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
28850  $as_echo_n "(cached) " >&6
28851else
28852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28853/* end confdefs.h.  */
28854
28855		#include <sys/time.h>
28856
28857int
28858main ()
28859{
28860
28861		gettimeofday(0, 0);
28862		settimeofday(0, 0);
28863
28864
28865  ;
28866  return 0;
28867}
28868_ACEOF
28869if ac_fn_c_try_compile "$LINENO"; then :
28870  ntp_cv_func_Xettimeofday_nargs=2
28871else
28872  ntp_cv_func_Xettimeofday_nargs=1
28873
28874fi
28875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28876
28877fi
28878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
28879$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
28880case "$ntp_cv_func_Xettimeofday_nargs" in
28881 1)
28882
28883$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
28884
28885esac
28886
28887for ac_func in settimeofday
28888do :
28889  ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
28890if test "x$ac_cv_func_settimeofday" = xyes; then :
28891  cat >>confdefs.h <<_ACEOF
28892#define HAVE_SETTIMEOFDAY 1
28893_ACEOF
28894
28895else
28896
28897    case "$host" in
28898     *-*-mpeix*) ac_cv_func_settimeofday=yes
28899    esac
28900
28901fi
28902done
28903
28904
28905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
28906$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
28907ntp_warning='GRONK'
28908ans=none
28909case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
28910 yes*)
28911    ntp_warning=''
28912    ans='clock_settime()'
28913    ;;
28914 noyes*)
28915    ntp_warning='But clock_settime() would be better (if we had it)'
28916    ans='settimeofday()'
28917    ;;
28918 nonoyes)
28919    ntp_warning='Which is the worst of the three'
28920    ans='stime()'
28921    ;;
28922 *)
28923    case "$build" in
28924     $host)
28925	ntp_warning='Which leaves us with nothing to use!'
28926    esac
28927esac
28928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28929$as_echo "$ans" >&6; }
28930case "$ntp_warning" in
28931 '')
28932    ;;
28933 *)
28934    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
28935$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
28936    ;;
28937esac
28938
28939
28940LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
28941LIBS=$__LIBS
28942{ __LIBS=; unset __LIBS;}
28943
28944
28945
28946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
28947$as_echo_n "checking for deprecated --with-arlib... " >&6; }
28948
28949# Check whether --with-arlib was given.
28950if test "${with_arlib+set}" = set; then :
28951  withval=$with_arlib; ans=$withval
28952else
28953  ans=no
28954fi
28955
28956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28957$as_echo "$ans" >&6; }
28958
28959case "$ans" in
28960 yes)
28961    { $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
28962$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;}
28963    ;;
28964esac
28965
28966for ac_prog in gawk mawk nawk awk
28967do
28968  # Extract the first word of "$ac_prog", so it can be a program name with args.
28969set dummy $ac_prog; ac_word=$2
28970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28971$as_echo_n "checking for $ac_word... " >&6; }
28972if ${ac_cv_prog_AWK+:} false; then :
28973  $as_echo_n "(cached) " >&6
28974else
28975  if test -n "$AWK"; then
28976  ac_cv_prog_AWK="$AWK" # Let the user override the test.
28977else
28978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28979for as_dir in $PATH
28980do
28981  IFS=$as_save_IFS
28982  test -z "$as_dir" && as_dir=.
28983    for ac_exec_ext in '' $ac_executable_extensions; do
28984  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28985    ac_cv_prog_AWK="$ac_prog"
28986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28987    break 2
28988  fi
28989done
28990  done
28991IFS=$as_save_IFS
28992
28993fi
28994fi
28995AWK=$ac_cv_prog_AWK
28996if test -n "$AWK"; then
28997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
28998$as_echo "$AWK" >&6; }
28999else
29000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29001$as_echo "no" >&6; }
29002fi
29003
29004
29005  test -n "$AWK" && break
29006done
29007
29008{ ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
29009				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
29010$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
29011set x ${MAKE-make}
29012ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
29013if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
29014  $as_echo_n "(cached) " >&6
29015else
29016  cat >conftest.make <<\_ACEOF
29017SHELL = /bin/sh
29018all:
29019	@echo '@@@%%%=$(MAKE)=@@@%%%'
29020_ACEOF
29021# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
29022case `${MAKE-make} -f conftest.make 2>/dev/null` in
29023  *@@@%%%=?*=@@@%%%*)
29024    eval ac_cv_prog_make_${ac_make}_set=yes;;
29025  *)
29026    eval ac_cv_prog_make_${ac_make}_set=no;;
29027esac
29028rm -f conftest.make
29029fi
29030if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
29031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29032$as_echo "yes" >&6; }
29033  SET_MAKE=
29034else
29035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29036$as_echo "no" >&6; }
29037  SET_MAKE="MAKE=${MAKE-make}"
29038fi
29039
29040
29041
29042
29043
29044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
29045$as_echo_n "checking whether ln -s works... " >&6; }
29046LN_S=$as_ln_s
29047if test "$LN_S" = "ln -s"; then
29048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29049$as_echo "yes" >&6; }
29050else
29051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
29052$as_echo "no, using $LN_S" >&6; }
29053fi
29054
29055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
29056$as_echo_n "checking for library containing strerror... " >&6; }
29057if ${ac_cv_search_strerror+:} false; then :
29058  $as_echo_n "(cached) " >&6
29059else
29060  ac_func_search_save_LIBS=$LIBS
29061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29062/* end confdefs.h.  */
29063
29064/* Override any GCC internal prototype to avoid an error.
29065   Use char because int might match the return type of a GCC
29066   builtin and then its argument prototype would still apply.  */
29067#ifdef __cplusplus
29068extern "C"
29069#endif
29070char strerror ();
29071int
29072main ()
29073{
29074return strerror ();
29075  ;
29076  return 0;
29077}
29078_ACEOF
29079for ac_lib in '' cposix; do
29080  if test -z "$ac_lib"; then
29081    ac_res="none required"
29082  else
29083    ac_res=-l$ac_lib
29084    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29085  fi
29086  if ac_fn_c_try_link "$LINENO"; then :
29087  ac_cv_search_strerror=$ac_res
29088fi
29089rm -f core conftest.err conftest.$ac_objext \
29090    conftest$ac_exeext
29091  if ${ac_cv_search_strerror+:} false; then :
29092  break
29093fi
29094done
29095if ${ac_cv_search_strerror+:} false; then :
29096
29097else
29098  ac_cv_search_strerror=no
29099fi
29100rm conftest.$ac_ext
29101LIBS=$ac_func_search_save_LIBS
29102fi
29103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
29104$as_echo "$ac_cv_search_strerror" >&6; }
29105ac_res=$ac_cv_search_strerror
29106if test "$ac_res" != no; then :
29107  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29108
29109fi
29110
29111
29112
29113# Extract the first word of "perl", so it can be a program name with args.
29114set dummy perl; ac_word=$2
29115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29116$as_echo_n "checking for $ac_word... " >&6; }
29117if ${ac_cv_path_PATH_PERL+:} false; then :
29118  $as_echo_n "(cached) " >&6
29119else
29120  case $PATH_PERL in
29121  [\\/]* | ?:[\\/]*)
29122  ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
29123  ;;
29124  *)
29125  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29126for as_dir in $PATH
29127do
29128  IFS=$as_save_IFS
29129  test -z "$as_dir" && as_dir=.
29130    for ac_exec_ext in '' $ac_executable_extensions; do
29131  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29132    ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
29133    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29134    break 2
29135  fi
29136done
29137  done
29138IFS=$as_save_IFS
29139
29140  ;;
29141esac
29142fi
29143PATH_PERL=$ac_cv_path_PATH_PERL
29144if test -n "$PATH_PERL"; then
29145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
29146$as_echo "$PATH_PERL" >&6; }
29147else
29148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29149$as_echo "no" >&6; }
29150fi
29151
29152
29153{ ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
29154# Extract the first word of "test", so it can be a program name with args.
29155set dummy test; ac_word=$2
29156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29157$as_echo_n "checking for $ac_word... " >&6; }
29158if ${ac_cv_path_PATH_TEST+:} false; then :
29159  $as_echo_n "(cached) " >&6
29160else
29161  case $PATH_TEST in
29162  [\\/]* | ?:[\\/]*)
29163  ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
29164  ;;
29165  *)
29166  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29167for as_dir in $PATH
29168do
29169  IFS=$as_save_IFS
29170  test -z "$as_dir" && as_dir=.
29171    for ac_exec_ext in '' $ac_executable_extensions; do
29172  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29173    ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
29174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29175    break 2
29176  fi
29177done
29178  done
29179IFS=$as_save_IFS
29180
29181  ;;
29182esac
29183fi
29184PATH_TEST=$ac_cv_path_PATH_TEST
29185if test -n "$PATH_TEST"; then
29186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
29187$as_echo "$PATH_TEST" >&6; }
29188else
29189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29190$as_echo "no" >&6; }
29191fi
29192
29193
29194{ ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
29195test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh
29196
29197
29198# Check whether --with-net-snmp-config was given.
29199if test "${with_net_snmp_config+set}" = set; then :
29200  withval=$with_net_snmp_config; ans=$withval
29201else
29202  ans=yes
29203
29204fi
29205
29206case "$ans" in
29207 no)
29208    ;;
29209 yes)
29210    ans=net-snmp-config
29211    ;;
29212 /*)
29213    ;;
29214 */*)
29215    as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
29216    ;;
29217 *)
29218    ;;
29219esac
29220PROG_NET_SNMP_CONFIG=$ans
29221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
29222$as_echo_n "checking for net-snmp-config path... " >&6; }
29223case "$PROG_NET_SNMP_CONFIG" in
29224 no) ;;
29225 /*)
29226    PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
29227    ;;
29228 *)
29229    # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
29230set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
29231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29232$as_echo_n "checking for $ac_word... " >&6; }
29233if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
29234  $as_echo_n "(cached) " >&6
29235else
29236  case $PATH_NET_SNMP_CONFIG in
29237  [\\/]* | ?:[\\/]*)
29238  ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
29239  ;;
29240  *)
29241  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29242for as_dir in $PATH
29243do
29244  IFS=$as_save_IFS
29245  test -z "$as_dir" && as_dir=.
29246    for ac_exec_ext in '' $ac_executable_extensions; do
29247  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29248    ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29250    break 2
29251  fi
29252done
29253  done
29254IFS=$as_save_IFS
29255
29256  ;;
29257esac
29258fi
29259PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
29260if test -n "$PATH_NET_SNMP_CONFIG"; then
29261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
29262$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
29263else
29264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29265$as_echo "no" >&6; }
29266fi
29267
29268
29269    { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
29270;;
29271esac
29272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
29273$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
29274
29275case "$PATH_NET_SNMP_CONFIG" in
29276 /*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp version" >&5
29277$as_echo_n "checking for net-snmp version... " >&6; }
29278if ${ntp_cv_net_snmp_version+:} false; then :
29279  $as_echo_n "(cached) " >&6
29280else
29281  ntp_cv_net_snmp_version=`$PATH_NET_SNMP_CONFIG --version`
29282
29283fi
29284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_net_snmp_version" >&5
29285$as_echo "$ntp_cv_net_snmp_version" >&6; }
29286	;;
29287esac
29288
29289case "$host" in
29290 *-*-vxworks*)
29291    ac_link="$ac_link $VX_KERNEL"
29292    ;;
29293esac
29294
29295# HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
29296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
29297$as_echo_n "checking for library containing openlog... " >&6; }
29298if ${ac_cv_search_openlog+:} false; then :
29299  $as_echo_n "(cached) " >&6
29300else
29301  ac_func_search_save_LIBS=$LIBS
29302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29303/* end confdefs.h.  */
29304
29305/* Override any GCC internal prototype to avoid an error.
29306   Use char because int might match the return type of a GCC
29307   builtin and then its argument prototype would still apply.  */
29308#ifdef __cplusplus
29309extern "C"
29310#endif
29311char openlog ();
29312int
29313main ()
29314{
29315return openlog ();
29316  ;
29317  return 0;
29318}
29319_ACEOF
29320for ac_lib in '' gen syslog; do
29321  if test -z "$ac_lib"; then
29322    ac_res="none required"
29323  else
29324    ac_res=-l$ac_lib
29325    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29326  fi
29327  if ac_fn_c_try_link "$LINENO"; then :
29328  ac_cv_search_openlog=$ac_res
29329fi
29330rm -f core conftest.err conftest.$ac_objext \
29331    conftest$ac_exeext
29332  if ${ac_cv_search_openlog+:} false; then :
29333  break
29334fi
29335done
29336if ${ac_cv_search_openlog+:} false; then :
29337
29338else
29339  ac_cv_search_openlog=no
29340fi
29341rm conftest.$ac_ext
29342LIBS=$ac_func_search_save_LIBS
29343fi
29344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
29345$as_echo "$ac_cv_search_openlog" >&6; }
29346ac_res=$ac_cv_search_openlog
29347if test "$ac_res" != no; then :
29348  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29349
29350fi
29351
29352# XXX library list will be in ac_cv_search_openlog
29353
29354# LIBSECCOMP is off by default -- needs testing with all the features
29355# Please send bug reports to loganaden@gmail.com
29356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
29357$as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
29358# Check whether --enable-libseccomp was given.
29359if test "${enable_libseccomp+set}" = set; then :
29360  enableval=$enable_libseccomp; ntp_ok=$enableval
29361else
29362  ntp_ok=no
29363
29364fi
29365
29366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29367$as_echo "$ntp_ok" >&6; }
29368case "$ntp_ok" in
29369 yes)
29370    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
29371$as_echo_n "checking for library containing seccomp_init... " >&6; }
29372if ${ac_cv_search_seccomp_init+:} false; then :
29373  $as_echo_n "(cached) " >&6
29374else
29375  ac_func_search_save_LIBS=$LIBS
29376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29377/* end confdefs.h.  */
29378
29379/* Override any GCC internal prototype to avoid an error.
29380   Use char because int might match the return type of a GCC
29381   builtin and then its argument prototype would still apply.  */
29382#ifdef __cplusplus
29383extern "C"
29384#endif
29385char seccomp_init ();
29386int
29387main ()
29388{
29389return seccomp_init ();
29390  ;
29391  return 0;
29392}
29393_ACEOF
29394for ac_lib in '' seccomp; do
29395  if test -z "$ac_lib"; then
29396    ac_res="none required"
29397  else
29398    ac_res=-l$ac_lib
29399    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29400  fi
29401  if ac_fn_c_try_link "$LINENO"; then :
29402  ac_cv_search_seccomp_init=$ac_res
29403fi
29404rm -f core conftest.err conftest.$ac_objext \
29405    conftest$ac_exeext
29406  if ${ac_cv_search_seccomp_init+:} false; then :
29407  break
29408fi
29409done
29410if ${ac_cv_search_seccomp_init+:} false; then :
29411
29412else
29413  ac_cv_search_seccomp_init=no
29414fi
29415rm conftest.$ac_ext
29416LIBS=$ac_func_search_save_LIBS
29417fi
29418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
29419$as_echo "$ac_cv_search_seccomp_init" >&6; }
29420ac_res=$ac_cv_search_seccomp_init
29421if test "$ac_res" != no; then :
29422  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29423
29424$as_echo "#define LIBSECCOMP 1" >>confdefs.h
29425
29426
29427fi
29428
29429    if test "$cross_compiling" = yes; then :
29430  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29432as_fn_error $? "cannot run test program while cross compiling
29433See \`config.log' for more details" "$LINENO" 5; }
29434else
29435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29436/* end confdefs.h.  */
29437
29438	#include <stdio.h>
29439	#include <stdlib.h>
29440	#include <errno.h>
29441	#include <sys/prctl.h>
29442	#include <linux/seccomp.h>
29443
29444	int main(void)
29445	{
29446		int ret;
29447		ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
29448		if (ret < 0) {
29449			switch (errno) {
29450			case ENOSYS:
29451				return 1;
29452			case EINVAL:
29453				return 1;
29454			default:
29455				return 1;
29456			}
29457		}
29458		ret =
29459		prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
29460		if (ret < 0) {
29461			switch (errno) {
29462			case EINVAL:
29463				return 1;
29464			case EFAULT:
29465				return 0;
29466			default:
29467				return 1;
29468		}
29469	}
29470return 1;
29471}
29472
29473
29474_ACEOF
29475if ac_fn_c_try_run "$LINENO"; then :
29476
29477$as_echo "#define KERN_SECCOMP 1" >>confdefs.h
29478
29479
29480fi
29481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29482  conftest.$ac_objext conftest.beam conftest.$ac_ext
29483fi
29484
29485    ;;
29486esac
29487
29488
29489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
29490$as_echo_n "checking for facilitynames in syslog.h... " >&6; }
29491if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
29492  $as_echo_n "(cached) " >&6
29493else
29494
29495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29496/* end confdefs.h.  */
29497
29498#define SYSLOG_NAMES
29499#include <stdlib.h>
29500#include <syslog.h>
29501
29502int
29503main ()
29504{
29505 void *fnames; fnames = facilitynames;
29506  ;
29507  return 0;
29508}
29509_ACEOF
29510if ac_fn_c_try_compile "$LINENO"; then :
29511  ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
29512else
29513  ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
29514fi
29515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29516fi
29517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
29518$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
29519case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
29520 yes)
29521
29522$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
29523
29524    ;;
29525 no)
29526    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
29527$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
29528    ;;
29529 cross)
29530    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
29531$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
29532    ;;
29533esac
29534
29535
29536
29537case "$host" in
29538 *-*-*linux*) ;;
29539 *-*-osf4*) ;;
29540 *-*-osf5*) ;;
29541 *)
29542    # HMS: Make sure we check for -lrt for clock_* before this...
29543    case "$ac_cv_search_clock_gettime" in
29544     '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
29545    esac
29546    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
29547$as_echo_n "checking for library containing sched_setscheduler... " >&6; }
29548if ${ac_cv_search_sched_setscheduler+:} false; then :
29549  $as_echo_n "(cached) " >&6
29550else
29551  ac_func_search_save_LIBS=$LIBS
29552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29553/* end confdefs.h.  */
29554
29555/* Override any GCC internal prototype to avoid an error.
29556   Use char because int might match the return type of a GCC
29557   builtin and then its argument prototype would still apply.  */
29558#ifdef __cplusplus
29559extern "C"
29560#endif
29561char sched_setscheduler ();
29562int
29563main ()
29564{
29565return sched_setscheduler ();
29566  ;
29567  return 0;
29568}
29569_ACEOF
29570for ac_lib in '' rt posix4; do
29571  if test -z "$ac_lib"; then
29572    ac_res="none required"
29573  else
29574    ac_res=-l$ac_lib
29575    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29576  fi
29577  if ac_fn_c_try_link "$LINENO"; then :
29578  ac_cv_search_sched_setscheduler=$ac_res
29579fi
29580rm -f core conftest.err conftest.$ac_objext \
29581    conftest$ac_exeext
29582  if ${ac_cv_search_sched_setscheduler+:} false; then :
29583  break
29584fi
29585done
29586if ${ac_cv_search_sched_setscheduler+:} false; then :
29587
29588else
29589  ac_cv_search_sched_setscheduler=no
29590fi
29591rm conftest.$ac_ext
29592LIBS=$ac_func_search_save_LIBS
29593fi
29594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
29595$as_echo "$ac_cv_search_sched_setscheduler" >&6; }
29596ac_res=$ac_cv_search_sched_setscheduler
29597if test "$ac_res" != no; then :
29598  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29599
29600fi
29601
29602    ;;
29603esac
29604
29605for ac_header in bstring.h
29606do :
29607  ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
29608if test "x$ac_cv_header_bstring_h" = xyes; then :
29609  cat >>confdefs.h <<_ACEOF
29610#define HAVE_BSTRING_H 1
29611_ACEOF
29612
29613fi
29614
29615done
29616
29617ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
29618if test "x$ac_cv_header_dns_sd_h" = xyes; then :
29619  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
29620$as_echo_n "checking for library containing DNSServiceRegister... " >&6; }
29621if ${ac_cv_search_DNSServiceRegister+:} false; then :
29622  $as_echo_n "(cached) " >&6
29623else
29624  ac_func_search_save_LIBS=$LIBS
29625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29626/* end confdefs.h.  */
29627
29628/* Override any GCC internal prototype to avoid an error.
29629   Use char because int might match the return type of a GCC
29630   builtin and then its argument prototype would still apply.  */
29631#ifdef __cplusplus
29632extern "C"
29633#endif
29634char DNSServiceRegister ();
29635int
29636main ()
29637{
29638return DNSServiceRegister ();
29639  ;
29640  return 0;
29641}
29642_ACEOF
29643for ac_lib in '' dns_sd; do
29644  if test -z "$ac_lib"; then
29645    ac_res="none required"
29646  else
29647    ac_res=-l$ac_lib
29648    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29649  fi
29650  if ac_fn_c_try_link "$LINENO"; then :
29651  ac_cv_search_DNSServiceRegister=$ac_res
29652fi
29653rm -f core conftest.err conftest.$ac_objext \
29654    conftest$ac_exeext
29655  if ${ac_cv_search_DNSServiceRegister+:} false; then :
29656  break
29657fi
29658done
29659if ${ac_cv_search_DNSServiceRegister+:} false; then :
29660
29661else
29662  ac_cv_search_DNSServiceRegister=no
29663fi
29664rm conftest.$ac_ext
29665LIBS=$ac_func_search_save_LIBS
29666fi
29667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
29668$as_echo "$ac_cv_search_DNSServiceRegister" >&6; }
29669ac_res=$ac_cv_search_DNSServiceRegister
29670if test "$ac_res" != no; then :
29671  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29672
29673$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
29674
29675
29676fi
29677
29678
29679fi
29680
29681
29682for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h
29683do :
29684  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29685ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29686if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29687  cat >>confdefs.h <<_ACEOF
29688#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29689_ACEOF
29690
29691fi
29692
29693done
29694
29695
29696for ac_header in memory.h netdb.h poll.h
29697do :
29698  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29699ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29700if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29701  cat >>confdefs.h <<_ACEOF
29702#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29703_ACEOF
29704
29705fi
29706
29707done
29708
29709for ac_header in sgtty.h stdatomic.h stdlib.h string.h termio.h
29710do :
29711  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29712ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29713if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29714  cat >>confdefs.h <<_ACEOF
29715#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29716_ACEOF
29717
29718fi
29719
29720done
29721
29722for ac_header in termios.h timepps.h timex.h unistd.h
29723do :
29724  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29725ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29726if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29727  cat >>confdefs.h <<_ACEOF
29728#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29729_ACEOF
29730
29731fi
29732
29733done
29734
29735
29736case "$host" in
29737 *-*-aix*)
29738    for ac_header in utmpx.h
29739do :
29740  ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
29741if test "x$ac_cv_header_utmpx_h" = xyes; then :
29742  cat >>confdefs.h <<_ACEOF
29743#define HAVE_UTMPX_H 1
29744_ACEOF
29745
29746fi
29747
29748done
29749
29750    case "$ac_cv_header_utmpx_h" in
29751     yes)
29752	;;
29753     *)
29754	for ac_header in utmp.h
29755do :
29756  ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
29757if test "x$ac_cv_header_utmp_h" = xyes; then :
29758  cat >>confdefs.h <<_ACEOF
29759#define HAVE_UTMP_H 1
29760_ACEOF
29761
29762fi
29763
29764done
29765
29766	;;
29767    esac
29768    ;;
29769 *)
29770    for ac_header in utmp.h utmpx.h
29771do :
29772  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29773ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29774if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29775  cat >>confdefs.h <<_ACEOF
29776#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29777_ACEOF
29778
29779fi
29780
29781done
29782
29783    ;;
29784esac
29785
29786#
29787# On Suns only (so far) getpass() truncates the typed password to 8
29788# characters, but getpassphrase() allows up to 257.  Most systems'
29789# getpass() does not truncate, at least not so as to affect ntpq and
29790# ntpdc password prompts.
29791#
29792# So check for getpassphrase(), but only on Sun operating systems.
29793#
29794case "$host" in
29795 *-*-sunos*|*-*-solaris*)
29796    for ac_func in getpassphrase
29797do :
29798  ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
29799if test "x$ac_cv_func_getpassphrase" = xyes; then :
29800  cat >>confdefs.h <<_ACEOF
29801#define HAVE_GETPASSPHRASE 1
29802_ACEOF
29803
29804fi
29805done
29806
29807esac
29808
29809
29810for ac_header in net/if6.h
29811do :
29812  ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
29813if test "x$ac_cv_header_net_if6_h" = xyes; then :
29814  cat >>confdefs.h <<_ACEOF
29815#define HAVE_NET_IF6_H 1
29816_ACEOF
29817
29818fi
29819
29820done
29821
29822for ac_header in net/route.h
29823do :
29824  ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
29825    #include <sys/types.h>
29826    #include <sys/socket.h>
29827    #include <net/if.h>
29828
29829"
29830if test "x$ac_cv_header_net_route_h" = xyes; then :
29831  cat >>confdefs.h <<_ACEOF
29832#define HAVE_NET_ROUTE_H 1
29833_ACEOF
29834
29835fi
29836
29837done
29838
29839
29840for ac_header in netinfo/ni.h
29841do :
29842  ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
29843if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
29844  cat >>confdefs.h <<_ACEOF
29845#define HAVE_NETINFO_NI_H 1
29846_ACEOF
29847
29848fi
29849
29850done
29851
29852case "$ac_cv_header_netinfo_ni_h" in
29853 yes)
29854
29855$as_echo "#define HAVE_NETINFO 1" >>confdefs.h
29856
29857esac
29858for ac_header in sun/audioio.h sys/audioio.h sys/file.h
29859do :
29860  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29861ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29862if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29863  cat >>confdefs.h <<_ACEOF
29864#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29865_ACEOF
29866
29867fi
29868
29869done
29870
29871case "$host" in
29872 *-*-sunos4*)
29873    ;;
29874 *)
29875    for ac_header in sys/ioctl.h
29876do :
29877  ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
29878if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
29879  cat >>confdefs.h <<_ACEOF
29880#define HAVE_SYS_IOCTL_H 1
29881_ACEOF
29882
29883fi
29884
29885done
29886
29887    ;;
29888esac
29889for ac_header in sys/ipc.h sys/lock.h sys/mman.h
29890do :
29891  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29892ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29893if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29894  cat >>confdefs.h <<_ACEOF
29895#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29896_ACEOF
29897
29898fi
29899
29900done
29901
29902# HMS: Check sys/proc.h and sys/resource.h after some others
29903for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h
29904do :
29905  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29906ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29907if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29908  cat >>confdefs.h <<_ACEOF
29909#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29910_ACEOF
29911
29912fi
29913
29914done
29915
29916case "$ac_cv_header_sched_h" in
29917 yes)
29918    ;;
29919 *)
29920    for ac_header in sys/sched.h
29921do :
29922  ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
29923if test "x$ac_cv_header_sys_sched_h" = xyes; then :
29924  cat >>confdefs.h <<_ACEOF
29925#define HAVE_SYS_SCHED_H 1
29926_ACEOF
29927
29928fi
29929
29930done
29931
29932    ;;
29933esac
29934# HMS: Check sys/shm.h after some others
29935for ac_header in sys/select.h sys/signal.h sys/sockio.h
29936do :
29937  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29938ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29939if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29940  cat >>confdefs.h <<_ACEOF
29941#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29942_ACEOF
29943
29944fi
29945
29946done
29947
29948# HMS: Checked sys/socket.h earlier
29949case "$host" in
29950 *-*-netbsd*)
29951    ;;
29952 *)
29953    for ac_header in machine/soundcard.h sys/soundcard.h
29954do :
29955  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29956ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29957if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29958  cat >>confdefs.h <<_ACEOF
29959#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29960_ACEOF
29961
29962fi
29963
29964done
29965
29966    ;;
29967esac
29968for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h
29969do :
29970  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29971ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29972if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29973  cat >>confdefs.h <<_ACEOF
29974#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29975_ACEOF
29976
29977fi
29978
29979done
29980
29981for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h
29982do :
29983  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29984ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29985if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29986  cat >>confdefs.h <<_ACEOF
29987#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29988_ACEOF
29989
29990fi
29991
29992done
29993
29994case "$host" in
29995*-convex-*)
29996    for ac_header in /sys/sync/queue.h /sys/sync/sema.h
29997do :
29998  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29999ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30000if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30001  cat >>confdefs.h <<_ACEOF
30002#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30003_ACEOF
30004
30005fi
30006
30007done
30008
30009    ;;
30010*-*-bsdi*)
30011    for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
30012do :
30013  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30014ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30015if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30016  cat >>confdefs.h <<_ACEOF
30017#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30018_ACEOF
30019
30020fi
30021
30022done
30023
30024    ;;
30025esac
30026
30027case "$ac_cv_header_stdatomic_h" in
30028 yes)
30029	for ac_func in atomic_thread_fence
30030do :
30031  ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence"
30032if test "x$ac_cv_func_atomic_thread_fence" = xyes; then :
30033  cat >>confdefs.h <<_ACEOF
30034#define HAVE_ATOMIC_THREAD_FENCE 1
30035_ACEOF
30036
30037fi
30038done
30039
30040	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5
30041$as_echo_n "checking for atomic_thread_fence()... " >&6; }
30042if ${ntp_cv_func_atomic_thread_fence+:} false; then :
30043  $as_echo_n "(cached) " >&6
30044else
30045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30046/* end confdefs.h.  */
30047
30048			#include <stdatomic.h>
30049
30050int
30051main ()
30052{
30053
30054			atomic_thread_fence(memory_order_seq_cst);
30055
30056
30057  ;
30058  return 0;
30059}
30060		ntp_cv_func_atomic_thread_fence=yes
30061_ACEOF
30062if ac_fn_c_try_compile "$LINENO"; then :
30063  ntp_cv_func_atomic_thread_fence=no
30064
30065fi
30066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30067
30068fi
30069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5
30070$as_echo "$ntp_cv_func_atomic_thread_fence" >&6; }
30071    ;;
30072esac
30073
30074case "$host" in
30075 *-*-solaris2.6)
30076    # Broken...
30077    ;;
30078 *)
30079    for ac_func in ntp_adjtime ntp_gettime
30080do :
30081  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30082ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30083if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30084  cat >>confdefs.h <<_ACEOF
30085#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30086_ACEOF
30087
30088fi
30089done
30090
30091    ;;
30092esac
30093
30094case "$host" in
30095 *-*-*linux*)
30096    case "$ac_cv_func_ntp_gettime" in
30097     yes)
30098	;;
30099     *)
30100	for ac_func in __ntp_gettime
30101do :
30102  ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
30103if test "x$ac_cv_func___ntp_gettime" = xyes; then :
30104  cat >>confdefs.h <<_ACEOF
30105#define HAVE___NTP_GETTIME 1
30106_ACEOF
30107
30108fi
30109done
30110
30111	case "$ac_cv_func___ntp_gettime" in
30112	 yes)
30113
30114$as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h
30115
30116
30117$as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h
30118
30119	esac
30120	;;
30121    esac
30122    for ac_func in adjtimex
30123do :
30124  ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
30125if test "x$ac_cv_func_adjtimex" = xyes; then :
30126  cat >>confdefs.h <<_ACEOF
30127#define HAVE_ADJTIMEX 1
30128_ACEOF
30129
30130fi
30131done
30132
30133    case "$ac_cv_func_adjtimex" in
30134     yes)
30135
30136$as_echo "#define ntp_adjtime adjtimex" >>confdefs.h
30137
30138
30139$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
30140
30141	have_adjtimex=1
30142	;;
30143     *)
30144	for ac_func in __adjtimex
30145do :
30146  ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
30147if test "x$ac_cv_func___adjtimex" = xyes; then :
30148  cat >>confdefs.h <<_ACEOF
30149#define HAVE___ADJTIMEX 1
30150_ACEOF
30151
30152fi
30153done
30154
30155	case "$ac_cv_func___adjtimex" in
30156	 yes)
30157
30158$as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h
30159
30160
30161$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
30162
30163
30164$as_echo "#define adjtimex __adjtimex" >>confdefs.h
30165
30166
30167$as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h
30168
30169	    have_adjtimex=1
30170	esac
30171	;;
30172    esac
30173esac
30174case "$have_adjtimex" in
30175 '')
30176    # nlist stuff is only needed for tickadj.
30177    saved_LIBS="$LIBS"
30178    LIBS=
30179    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
30180$as_echo_n "checking for library containing nlist... " >&6; }
30181if ${ac_cv_search_nlist+:} false; then :
30182  $as_echo_n "(cached) " >&6
30183else
30184  ac_func_search_save_LIBS=$LIBS
30185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30186/* end confdefs.h.  */
30187
30188/* Override any GCC internal prototype to avoid an error.
30189   Use char because int might match the return type of a GCC
30190   builtin and then its argument prototype would still apply.  */
30191#ifdef __cplusplus
30192extern "C"
30193#endif
30194char nlist ();
30195int
30196main ()
30197{
30198return nlist ();
30199  ;
30200  return 0;
30201}
30202_ACEOF
30203for ac_lib in '' elf ld mld; do
30204  if test -z "$ac_lib"; then
30205    ac_res="none required"
30206  else
30207    ac_res=-l$ac_lib
30208    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30209  fi
30210  if ac_fn_c_try_link "$LINENO"; then :
30211  ac_cv_search_nlist=$ac_res
30212fi
30213rm -f core conftest.err conftest.$ac_objext \
30214    conftest$ac_exeext
30215  if ${ac_cv_search_nlist+:} false; then :
30216  break
30217fi
30218done
30219if ${ac_cv_search_nlist+:} false; then :
30220
30221else
30222  ac_cv_search_nlist=no
30223fi
30224rm conftest.$ac_ext
30225LIBS=$ac_func_search_save_LIBS
30226fi
30227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
30228$as_echo "$ac_cv_search_nlist" >&6; }
30229ac_res=$ac_cv_search_nlist
30230if test "$ac_res" != no; then :
30231  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30232
30233fi
30234
30235    # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
30236    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
30237$as_echo_n "checking for library containing kvm_open... " >&6; }
30238if ${ac_cv_search_kvm_open+:} false; then :
30239  $as_echo_n "(cached) " >&6
30240else
30241  ac_func_search_save_LIBS=$LIBS
30242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30243/* end confdefs.h.  */
30244
30245/* Override any GCC internal prototype to avoid an error.
30246   Use char because int might match the return type of a GCC
30247   builtin and then its argument prototype would still apply.  */
30248#ifdef __cplusplus
30249extern "C"
30250#endif
30251char kvm_open ();
30252int
30253main ()
30254{
30255return kvm_open ();
30256  ;
30257  return 0;
30258}
30259_ACEOF
30260for ac_lib in '' kvm; do
30261  if test -z "$ac_lib"; then
30262    ac_res="none required"
30263  else
30264    ac_res=-l$ac_lib
30265    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30266  fi
30267  if ac_fn_c_try_link "$LINENO"; then :
30268  ac_cv_search_kvm_open=$ac_res
30269fi
30270rm -f core conftest.err conftest.$ac_objext \
30271    conftest$ac_exeext
30272  if ${ac_cv_search_kvm_open+:} false; then :
30273  break
30274fi
30275done
30276if ${ac_cv_search_kvm_open+:} false; then :
30277
30278else
30279  ac_cv_search_kvm_open=no
30280fi
30281rm conftest.$ac_ext
30282LIBS=$ac_func_search_save_LIBS
30283fi
30284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
30285$as_echo "$ac_cv_search_kvm_open" >&6; }
30286ac_res=$ac_cv_search_kvm_open
30287if test "$ac_res" != no; then :
30288  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30289
30290fi
30291	    # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
30292    for ac_header in nlist.h sys/var.h
30293do :
30294  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30295ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30296if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30297  cat >>confdefs.h <<_ACEOF
30298#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30299_ACEOF
30300
30301fi
30302
30303done
30304
30305    case "$ac_cv_header_nlist_h" in
30306     yes)
30307
30308$as_echo "#define NLIST_STRUCT 1" >>confdefs.h
30309
30310	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
30311$as_echo_n "checking for n_un in struct nlist... " >&6; }
30312if ${ntp_cv_struct_nlist_n_un+:} false; then :
30313  $as_echo_n "(cached) " >&6
30314else
30315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30316/* end confdefs.h.  */
30317
30318			#include <nlist.h>
30319
30320int
30321main ()
30322{
30323
30324			struct nlist n;
30325			n.n_un.n_name = 0;
30326
30327
30328  ;
30329  return 0;
30330}
30331		ntp_cv_struct_nlist_n_un=yes
30332_ACEOF
30333if ac_fn_c_try_compile "$LINENO"; then :
30334  ntp_cv_struct_nlist_n_un=no
30335
30336fi
30337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30338
30339fi
30340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
30341$as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
30342	case "$ntp_cv_struct_nlist_n_un" in
30343	 yes)
30344
30345$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
30346
30347	esac
30348    esac
30349
30350    LDADD_NLIST="$LIBS"
30351    LIBS="$saved_LIBS"
30352    { saved_LIBS=; unset saved_LIBS;}
30353esac
30354
30355for ac_header in sys/proc.h
30356do :
30357  ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
30358    #ifdef HAVE_SYS_TYPES_H
30359    # include <sys/types.h>
30360    #endif
30361    #ifdef HAVE_SYS_TIME_H
30362    # include <sys/time.h>
30363    #endif
30364
30365"
30366if test "x$ac_cv_header_sys_proc_h" = xyes; then :
30367  cat >>confdefs.h <<_ACEOF
30368#define HAVE_SYS_PROC_H 1
30369_ACEOF
30370
30371fi
30372
30373done
30374
30375
30376for ac_header in sys/resource.h
30377do :
30378  ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
30379    #ifdef HAVE_SYS_TIME_H
30380    # include <sys/time.h>
30381    #endif
30382
30383"
30384if test "x$ac_cv_header_sys_resource_h" = xyes; then :
30385  cat >>confdefs.h <<_ACEOF
30386#define HAVE_SYS_RESOURCE_H 1
30387_ACEOF
30388
30389fi
30390
30391done
30392
30393
30394for ac_header in sys/shm.h
30395do :
30396  ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
30397    #ifdef HAVE_SYS_TYPES_H
30398    # include <sys/types.h>
30399    #endif
30400    #ifdef HAVE_SYS_IPC_H
30401    # include <sys/ipc.h>
30402    #endif
30403
30404"
30405if test "x$ac_cv_header_sys_shm_h" = xyes; then :
30406  cat >>confdefs.h <<_ACEOF
30407#define HAVE_SYS_SHM_H 1
30408_ACEOF
30409
30410fi
30411
30412done
30413
30414
30415for ac_header in sys/timex.h
30416do :
30417  ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
30418    #ifdef HAVE_SYS_TIME_H
30419    # include <sys/time.h>
30420    #endif
30421
30422"
30423if test "x$ac_cv_header_sys_timex_h" = xyes; then :
30424  cat >>confdefs.h <<_ACEOF
30425#define HAVE_SYS_TIMEX_H 1
30426_ACEOF
30427
30428fi
30429
30430done
30431
30432
30433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
30434$as_echo_n "checking return type of signal handlers... " >&6; }
30435if ${ac_cv_type_signal+:} false; then :
30436  $as_echo_n "(cached) " >&6
30437else
30438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30439/* end confdefs.h.  */
30440#include <sys/types.h>
30441#include <signal.h>
30442
30443int
30444main ()
30445{
30446return *(signal (0, 0)) (0) == 1;
30447  ;
30448  return 0;
30449}
30450_ACEOF
30451if ac_fn_c_try_compile "$LINENO"; then :
30452  ac_cv_type_signal=int
30453else
30454  ac_cv_type_signal=void
30455fi
30456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30457fi
30458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
30459$as_echo "$ac_cv_type_signal" >&6; }
30460
30461cat >>confdefs.h <<_ACEOF
30462#define RETSIGTYPE $ac_cv_type_signal
30463_ACEOF
30464
30465
30466ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
30467if test "x$ac_cv_type_off_t" = xyes; then :
30468
30469else
30470
30471cat >>confdefs.h <<_ACEOF
30472#define off_t long int
30473_ACEOF
30474
30475fi
30476
30477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
30478$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
30479if ${ac_cv_struct_tm+:} false; then :
30480  $as_echo_n "(cached) " >&6
30481else
30482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30483/* end confdefs.h.  */
30484#include <sys/types.h>
30485#include <time.h>
30486
30487int
30488main ()
30489{
30490struct tm tm;
30491				     int *p = &tm.tm_sec;
30492				     return !p;
30493  ;
30494  return 0;
30495}
30496_ACEOF
30497if ac_fn_c_try_compile "$LINENO"; then :
30498  ac_cv_struct_tm=time.h
30499else
30500  ac_cv_struct_tm=sys/time.h
30501fi
30502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30503fi
30504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
30505$as_echo "$ac_cv_struct_tm" >&6; }
30506if test $ac_cv_struct_tm = sys/time.h; then
30507
30508$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
30509
30510fi
30511
30512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
30513$as_echo_n "checking for a fallback value for HZ... " >&6; }
30514if ${ntp_cv_default_hz+:} false; then :
30515  $as_echo_n "(cached) " >&6
30516else
30517
30518	ntp_cv_default_hz=100
30519	case "$host" in
30520	 alpha*-dec-osf4*|alpha*-dec-osf5*)
30521	    ntp_cv_default_hz=1024
30522	    ;;
30523	 mips-dec-ultrix4*)
30524	    ntp_cv_default_hz=256
30525	    ;;
30526	esac
30527
30528
30529fi
30530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
30531$as_echo "$ntp_cv_default_hz" >&6; }
30532
30533cat >>confdefs.h <<_ACEOF
30534#define DEFAULT_HZ $ntp_cv_default_hz
30535_ACEOF
30536
30537
30538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
30539$as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
30540if ${ntp_cv_override_hz+:} false; then :
30541  $as_echo_n "(cached) " >&6
30542else
30543
30544	ntp_cv_override_hz=no
30545	case "$host" in
30546	 alpha*-dec-osf4*|alpha*-dec-osf5*)
30547	    ntp_cv_override_hz=yes
30548	    ;;
30549	 mips-dec-ultrix4*)
30550	    ntp_cv_override_hz=yes
30551	    ;;
30552	 *-*-freebsd*)
30553	    ntp_cv_override_hz=yes
30554	    ;;
30555	 *-*-sunos4*)
30556	    ntp_cv_override_hz=yes
30557	    ;;
30558	 *-*-kfreebsd*)
30559	    ntp_cv_override_hz=yes
30560	    ;;
30561	esac
30562
30563
30564fi
30565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
30566$as_echo "$ntp_cv_override_hz" >&6; }
30567case "$ntp_cv_override_hz" in
30568 yes)
30569
30570$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
30571
30572esac
30573
30574
30575
30576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
30577$as_echo_n "checking for struct rt_msghdr... " >&6; }
30578if ${ntp_cv_struct_rt_msghdr+:} false; then :
30579  $as_echo_n "(cached) " >&6
30580else
30581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30582/* end confdefs.h.  */
30583
30584		#include <sys/types.h>
30585		#include <sys/socket.h>
30586		#include <net/if.h>
30587		#include <net/route.h>
30588
30589int
30590main ()
30591{
30592
30593		struct rt_msghdr p;
30594
30595
30596  ;
30597  return 0;
30598}
30599_ACEOF
30600if ac_fn_c_try_compile "$LINENO"; then :
30601  ntp_cv_struct_rt_msghdr=yes
30602else
30603  ntp_cv_struct_rt_msghdr=no
30604
30605fi
30606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30607
30608fi
30609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
30610$as_echo "$ntp_cv_struct_rt_msghdr" >&6; }
30611
30612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
30613$as_echo_n "checking for struct rtattr... " >&6; }
30614if ${ntp_cv_rtattr+:} false; then :
30615  $as_echo_n "(cached) " >&6
30616else
30617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30618/* end confdefs.h.  */
30619
30620		#include <stddef.h>
30621		#include <sys/socket.h>
30622		#include <linux/rtnetlink.h>
30623
30624int
30625main ()
30626{
30627
30628		struct rtattr p;
30629
30630
30631  ;
30632  return 0;
30633}
30634_ACEOF
30635if ac_fn_c_try_compile "$LINENO"; then :
30636  ntp_cv_rtattr=yes
30637else
30638  ntp_cv_rtattr=no
30639
30640fi
30641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30642
30643fi
30644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
30645$as_echo "$ntp_cv_rtattr" >&6; }
30646
30647case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
30648 *yes*)
30649
30650$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
30651
30652    case "$ntp_cv_rtattr" in
30653     yes)
30654
30655$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
30656
30657    esac
30658esac
30659
30660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
30661$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
30662if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
30663  $as_echo_n "(cached) " >&6
30664else
30665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30666/* end confdefs.h.  */
30667
30668		#include <signal.h>
30669
30670int
30671main ()
30672{
30673
30674		struct sigaction act;
30675		act.sa_sigaction = 0;
30676
30677
30678  ;
30679  return 0;
30680}
30681_ACEOF
30682if ac_fn_c_try_compile "$LINENO"; then :
30683  ntp_cv_struct_sigaction_has_sa_sigaction=yes
30684else
30685  ntp_cv_struct_sigaction_has_sa_sigaction=no
30686
30687fi
30688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30689
30690fi
30691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
30692$as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
30693case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
30694 yes)
30695
30696$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
30697
30698esac
30699
30700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
30701$as_echo_n "checking for struct ppsclockev... " >&6; }
30702if ${ntp_cv_struct_ppsclockev+:} false; then :
30703  $as_echo_n "(cached) " >&6
30704else
30705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30706/* end confdefs.h.  */
30707
30708		#ifdef HAVE_SYS_TYPES_H
30709		# include <sys/types.h>
30710		#endif
30711		#ifdef HAVE_SYS_TERMIOS_H
30712		# include <sys/termios.h>
30713		#endif
30714		#ifdef HAVE_SYS_TIME_H
30715		# include <sys/time.h>
30716		#endif
30717		#ifdef HAVE_SYS_PPSCLOCK_H
30718		# include <sys/ppsclock.h>
30719		#endif
30720
30721int
30722main ()
30723{
30724
30725		extern struct ppsclockev *pce;
30726		return pce->serial;
30727
30728
30729  ;
30730  return 0;
30731}
30732_ACEOF
30733if ac_fn_c_try_compile "$LINENO"; then :
30734  ntp_cv_struct_ppsclockev=yes
30735else
30736  ntp_cv_struct_ppsclockev=no
30737
30738fi
30739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30740
30741fi
30742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
30743$as_echo "$ntp_cv_struct_ppsclockev" >&6; }
30744case "$ntp_cv_struct_ppsclockev" in
30745 yes)
30746
30747$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
30748
30749esac
30750
30751case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
30752  *yes*)
30753    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
30754$as_echo_n "checking for struct snd_size... " >&6; }
30755if ${ntp_cv_struct_snd_size+:} false; then :
30756  $as_echo_n "(cached) " >&6
30757else
30758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30759/* end confdefs.h.  */
30760
30761		    #ifdef HAVE_MACHINE_SOUNDCARD_H
30762		    # include <machine/soundcard.h>
30763		    #endif
30764		    #ifdef HAVE_SYS_SOUNDCARD_H
30765		    # include <sys/soundcard.h>
30766		    #endif
30767
30768int
30769main ()
30770{
30771
30772		    extern struct snd_size *ss;
30773		    return ss->rec_size;
30774
30775
30776  ;
30777  return 0;
30778}
30779_ACEOF
30780if ac_fn_c_try_compile "$LINENO"; then :
30781  ntp_cv_struct_snd_size=yes
30782else
30783  ntp_cv_struct_snd_size=no
30784
30785fi
30786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30787
30788fi
30789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
30790$as_echo "$ntp_cv_struct_snd_size" >&6; }
30791    case "$ntp_cv_struct_snd_size" in
30792     yes)
30793
30794$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
30795
30796    esac
30797esac
30798
30799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
30800$as_echo_n "checking struct clockinfo for hz... " >&6; }
30801if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
30802  $as_echo_n "(cached) " >&6
30803else
30804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30805/* end confdefs.h.  */
30806
30807		#include <sys/time.h>
30808
30809int
30810main ()
30811{
30812
30813		extern struct clockinfo *pc;
30814		return pc->hz;
30815
30816
30817  ;
30818  return 0;
30819}
30820_ACEOF
30821if ac_fn_c_try_compile "$LINENO"; then :
30822  ntp_cv_struct_clockinfo_has_hz=yes
30823else
30824  ntp_cv_struct_clockinfo_has_hz=no
30825
30826fi
30827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30828
30829fi
30830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
30831$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
30832case "$ntp_cv_struct_clockinfo_has_hz" in
30833 yes)
30834
30835$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
30836
30837esac
30838
30839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
30840$as_echo_n "checking struct clockinfo for tickadj... " >&6; }
30841if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
30842  $as_echo_n "(cached) " >&6
30843else
30844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30845/* end confdefs.h.  */
30846
30847		#include <sys/time.h>
30848
30849int
30850main ()
30851{
30852
30853		extern struct clockinfo *pc;
30854		return pc->tickadj;
30855
30856
30857  ;
30858  return 0;
30859}
30860_ACEOF
30861if ac_fn_c_try_compile "$LINENO"; then :
30862  ntp_cv_struct_clockinfo_has_hz=yes
30863else
30864  ntp_cv_struct_clockinfo_has_hz=no
30865
30866fi
30867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30868
30869fi
30870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
30871$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
30872case "$ntp_cv_struct_clockinfo_has_hz" in
30873 yes)
30874
30875$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
30876
30877esac
30878
30879case "$ntp_cv_struct_ntptimeval" in
30880 yes)
30881    ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
30882	    #ifdef HAVE_SYS_TIME_H
30883	    # include <sys/time.h>
30884	    #else
30885	    # ifdef HAVE_TIME_H
30886	    #  include <time.h>
30887	    # endif
30888	    #endif
30889	    #ifdef HAVE_SYS_TIMEX_H
30890	    # include <sys/timex.h>
30891	    #else
30892	    # ifdef HAVE_TIMEX_H
30893	    #  include <timex.h>
30894	    # endif
30895	    #endif
30896
30897
30898"
30899if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :
30900
30901cat >>confdefs.h <<_ACEOF
30902#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
30903_ACEOF
30904
30905
30906fi
30907
30908esac
30909
30910####
30911
30912for ac_func in arc4random_buf
30913do :
30914  ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
30915if test "x$ac_cv_func_arc4random_buf" = xyes; then :
30916  cat >>confdefs.h <<_ACEOF
30917#define HAVE_ARC4RANDOM_BUF 1
30918_ACEOF
30919
30920fi
30921done
30922
30923
30924####
30925
30926saved_LIBS="$LIBS"
30927LIBS="$LIBS $LDADD_LIBNTP"
30928for ac_func in daemon
30929do :
30930  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
30931if test "x$ac_cv_func_daemon" = xyes; then :
30932  cat >>confdefs.h <<_ACEOF
30933#define HAVE_DAEMON 1
30934_ACEOF
30935
30936fi
30937done
30938
30939# XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
30940LIBS="$saved_LIBS"
30941{ saved_LIBS=; unset saved_LIBS;}
30942
30943for ac_func in finite
30944do :
30945  ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
30946if test "x$ac_cv_func_finite" = xyes; then :
30947  cat >>confdefs.h <<_ACEOF
30948#define HAVE_FINITE 1
30949_ACEOF
30950
30951else
30952  for ac_func in isfinite
30953do :
30954  ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
30955if test "x$ac_cv_func_isfinite" = xyes; then :
30956  cat >>confdefs.h <<_ACEOF
30957#define HAVE_ISFINITE 1
30958_ACEOF
30959
30960else
30961
30962	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
30963$as_echo_n "checking for isfinite with <math.h>... " >&6; }
30964	    _libs=$LIBS
30965	    # XXX
30966	    LIBS="$LIBS -lm"
30967	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30968/* end confdefs.h.  */
30969
30970			#include <math.h>
30971
30972int
30973main ()
30974{
30975
30976			float f = 0.0;
30977			isfinite(f);
30978
30979
30980  ;
30981  return 0;
30982}
30983_ACEOF
30984if ac_fn_c_try_link "$LINENO"; then :
30985  ans=yes
30986else
30987  ans=no
30988
30989fi
30990rm -f core conftest.err conftest.$ac_objext \
30991    conftest$ac_exeext conftest.$ac_ext
30992	    LIBS=$_libs
30993	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30994$as_echo "$ans" >&6; }
30995	    case "$ans" in
30996	     yes)
30997		$as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
30998
30999	    esac
31000
31001
31002fi
31003done
31004
31005
31006fi
31007done
31008
31009
31010for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal
31011do :
31012  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31013ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31014if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31015  cat >>confdefs.h <<_ACEOF
31016#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31017_ACEOF
31018
31019fi
31020done
31021
31022
31023# kvm_open() is only used by tickadj.  Also see above.
31024case "$ac_cv_header_kvm_h" in
31025 yes)
31026    for ac_func in kvm_open
31027do :
31028  ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
31029if test "x$ac_cv_func_kvm_open" = xyes; then :
31030  cat >>confdefs.h <<_ACEOF
31031#define HAVE_KVM_OPEN 1
31032_ACEOF
31033
31034fi
31035done
31036
31037    ;;
31038esac
31039
31040case "$host" in
31041 *-*-sco3.2v5.0.*)
31042    # Just stubs.  Sigh.
31043    ;;
31044 *) for ac_func in mkstemp
31045do :
31046  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
31047if test "x$ac_cv_func_mkstemp" = xyes; then :
31048  cat >>confdefs.h <<_ACEOF
31049#define HAVE_MKSTEMP 1
31050_ACEOF
31051
31052fi
31053done
31054
31055    ;;
31056esac
31057for ac_func in mktime
31058do :
31059  ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
31060if test "x$ac_cv_func_mktime" = xyes; then :
31061  cat >>confdefs.h <<_ACEOF
31062#define HAVE_MKTIME 1
31063_ACEOF
31064
31065fi
31066done
31067
31068case "$host" in
31069 *-*-aix[4-9]*)
31070    # XXX only verified thru AIX6.
31071    # Just a stub.  Sigh.
31072    ;;
31073 *-*-irix[45]*)
31074    # Just a stub in "old" Irix.  Sigh.
31075    ;;
31076# In the belief that the fix for bug 1223 fixes mlockall() under linux...
31077# *-*-*linux*)
31078#    # there, but more trouble than it is worth for now (resolver problems)
31079#    ;;
31080 *-*-qnx*)
31081    # Apparently there but not working in QNX.  Sigh?
31082    ;;
31083 *-*-sco3.2v5.0.*)
31084    # Just a stub.  Sigh.
31085    ;;
31086 alpha*-dec-osf4*|alpha*-dec-osf5*)
31087    # mlockall is there, as a #define calling memlk via <sys/mman.h>
31088    # Not easy to test for - cheat.
31089    for ac_func in memlk
31090do :
31091  ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
31092if test "x$ac_cv_func_memlk" = xyes; then :
31093  cat >>confdefs.h <<_ACEOF
31094#define HAVE_MEMLK 1
31095_ACEOF
31096 ac_cv_func_mlockall=yes
31097fi
31098done
31099
31100    for ac_func in mlockall
31101do :
31102  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
31103if test "x$ac_cv_func_mlockall" = xyes; then :
31104  cat >>confdefs.h <<_ACEOF
31105#define HAVE_MLOCKALL 1
31106_ACEOF
31107
31108fi
31109done
31110
31111    ;;
31112 *) for ac_func in mlockall
31113do :
31114  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
31115if test "x$ac_cv_func_mlockall" = xyes; then :
31116  cat >>confdefs.h <<_ACEOF
31117#define HAVE_MLOCKALL 1
31118_ACEOF
31119
31120fi
31121done
31122
31123    ;;
31124esac
31125for ac_func in nice plock pututline pututxline readlink rtprio
31126do :
31127  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31128ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31129if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31130  cat >>confdefs.h <<_ACEOF
31131#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31132_ACEOF
31133
31134fi
31135done
31136
31137case "$host" in
31138 *-*-aix[4-9]*)
31139    # XXX only verified thru AIX6.
31140    # Just a stub in AIX 4.  Sigh.
31141    ;;
31142 *-*-solaris2.5*)
31143    # Just stubs in solaris2.5.  Sigh.
31144    ;;
31145 *) for ac_func in sched_setscheduler
31146do :
31147  ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
31148if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
31149  cat >>confdefs.h <<_ACEOF
31150#define HAVE_SCHED_SETSCHEDULER 1
31151_ACEOF
31152
31153fi
31154done
31155
31156    ;;
31157esac
31158for ac_func in setlinebuf setpgid setpriority setsid setvbuf
31159do :
31160  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31161ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31162if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31163  cat >>confdefs.h <<_ACEOF
31164#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31165_ACEOF
31166
31167fi
31168done
31169
31170for ac_func in strdup strerror setrlimit strchr
31171do :
31172  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31173ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31174if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31175  cat >>confdefs.h <<_ACEOF
31176#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31177_ACEOF
31178
31179fi
31180done
31181
31182case "$host" in
31183 *-*-aix[4-9]*)
31184    # XXX only verified thru AIX6.
31185    # Just stubs.  Sigh.
31186    ;;
31187 *-*-netbsd1*)
31188    # Just stubs.  Sigh.
31189    ;;
31190 *-*-netbsdelf1*)
31191    # Just stubs.  Sigh.
31192    ;;
31193 *-*-openbsd*)
31194    # Just stubs.  Sigh.
31195    ;;
31196 *)
31197    for ac_func in timer_create
31198do :
31199  ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
31200if test "x$ac_cv_func_timer_create" = xyes; then :
31201  cat >>confdefs.h <<_ACEOF
31202#define HAVE_TIMER_CREATE 1
31203_ACEOF
31204
31205fi
31206done
31207
31208    ;;
31209esac
31210
31211
31212
31213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
31214$as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; }
31215if ${ntp_cv_rlimit_memlock+:} false; then :
31216  $as_echo_n "(cached) " >&6
31217else
31218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31219/* end confdefs.h.  */
31220
31221		#ifdef HAVE_SYS_TYPES_H
31222		# include <sys/types.h>
31223		#endif
31224		#ifdef HAVE_SYS_TIME_H
31225		# include <sys/time.h>
31226		#endif
31227		#ifdef HAVE_SYS_RESOURCE_H
31228		# include <sys/resource.h>
31229		#endif
31230
31231int
31232main ()
31233{
31234
31235		getrlimit(RLIMIT_MEMLOCK, 0);
31236
31237
31238  ;
31239  return 0;
31240}
31241_ACEOF
31242if ac_fn_c_try_compile "$LINENO"; then :
31243  ntp_cv_rlimit_memlock=yes
31244else
31245  ntp_cv_rlimit_memlock=no
31246
31247fi
31248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31249
31250fi
31251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
31252$as_echo "$ntp_cv_rlimit_memlock" >&6; }
31253case "$host" in
31254 *-*-*linux*)
31255    ntp_dflt_rlimit_memlock="-1" ;;
31256 *) ntp_dflt_rlimit_memlock="32" ;;
31257esac
31258case "$ntp_cv_rlimit_memlock" in
31259 yes)
31260
31261    HAVE_RLIMIT_MEMLOCK=" memlock $ntp_dflt_rlimit_memlock"  ;;
31262esac
31263
31264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
31265$as_echo_n "checking for RLIMIT_STACK... " >&6; }
31266if ${ntp_cv_rlimit_stack+:} false; then :
31267  $as_echo_n "(cached) " >&6
31268else
31269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31270/* end confdefs.h.  */
31271
31272		#ifdef HAVE_SYS_TYPES_H
31273		# include <sys/types.h>
31274		#endif
31275		#ifdef HAVE_SYS_TIME_H
31276		# include <sys/time.h>
31277		#endif
31278		#ifdef HAVE_SYS_RESOURCE_H
31279		# include <sys/resource.h>
31280		#endif
31281
31282int
31283main ()
31284{
31285
31286		getrlimit(RLIMIT_STACK, 0);
31287
31288
31289  ;
31290  return 0;
31291}
31292_ACEOF
31293if ac_fn_c_try_compile "$LINENO"; then :
31294  ntp_cv_rlimit_stack=yes
31295else
31296  ntp_cv_rlimit_stack=no
31297
31298fi
31299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31300
31301fi
31302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
31303$as_echo "$ntp_cv_rlimit_stack" >&6; }
31304case "$ntp_cv_rlimit_stack" in
31305 yes)
31306
31307    HAVE_RLIMIT_STACK=" stacksize 50"
31308esac
31309
31310# HMS: Only if we are doing the MLOCKALL stuff...
31311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
31312$as_echo_n "checking for the default number of 4k stack pages... " >&6; }
31313
31314# Check whether --with-stack-limit was given.
31315if test "${with_stack_limit+set}" = set; then :
31316  withval=$with_stack_limit; ans=$withval
31317else
31318  ans=yes
31319
31320fi
31321
31322case "$ans" in
31323 yes | no)
31324    case "$host" in
31325     *-*-openbsd*)
31326	ans=200
31327	;;
31328     *) ans=50
31329        ;;
31330    esac
31331    ;;
31332 [1-9][0-9]*)
31333    ;;
31334 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
31335    ;;
31336esac
31337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31338$as_echo "$ans" >&6; }
31339
31340cat >>confdefs.h <<_ACEOF
31341#define DFLT_RLIMIT_STACK $ans
31342_ACEOF
31343
31344
31345# HMS: only if we have RLIMIT_MEMLOCK
31346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
31347$as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; }
31348
31349# Check whether --with-memlock was given.
31350if test "${with_memlock+set}" = set; then :
31351  withval=$with_memlock; ans=$withval
31352else
31353  ans=yes
31354
31355fi
31356
31357case "$ans" in
31358 yes | no)
31359    ans=$ntp_dflt_rlimit_memlock
31360    ;;
31361 [1-9][0-9]*) ;;
31362 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
31363     ;;
31364esac
31365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31366$as_echo "$ans" >&6; }
31367
31368cat >>confdefs.h <<_ACEOF
31369#define DFLT_RLIMIT_MEMLOCK $ans
31370_ACEOF
31371
31372
31373
31374
31375# some OSes prefer _exit() in forked children to exit()
31376for ac_func in _exit
31377do :
31378  ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
31379if test "x$ac_cv_func__exit" = xyes; then :
31380  cat >>confdefs.h <<_ACEOF
31381#define HAVE__EXIT 1
31382_ACEOF
31383
31384fi
31385done
31386
31387ntp_worker_child_exit=exit
31388case "$ac_cv_func__exit::$host_os" in
31389 yes::netbsd*)
31390    ntp_worker_child_exit=_exit
31391    ;;
31392 yes::openbsd*)
31393    ntp_worker_child_exit=_exit
31394    ;;
31395esac
31396
31397cat >>confdefs.h <<_ACEOF
31398#define WORKER_CHILD_EXIT $ntp_worker_child_exit
31399_ACEOF
31400
31401
31402for ac_func in umask uname updwtmp updwtmpx
31403do :
31404  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31405ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31406if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31407  cat >>confdefs.h <<_ACEOF
31408#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31409_ACEOF
31410
31411fi
31412done
31413
31414
31415###
31416
31417# http://bugs.ntp.org/737
31418case "$ac_cv_func_recvmsg" in
31419 yes)
31420    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
31421$as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
31422if ${ntp_cv_struct_iovec_help+:} false; then :
31423  $as_echo_n "(cached) " >&6
31424else
31425
31426	    compiled=no
31427	    for ntp_cv_struct_iovec_help in '0' '1'; do
31428		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31429/* end confdefs.h.  */
31430
31431			    #ifdef HAVE_SYS_TYPES_H
31432			    # include <sys/types.h>
31433			    #endif
31434			    #ifdef HAVE_SYS_SOCKET_H
31435			    # include <sys/socket.h>
31436			    #endif
31437			    #if $ntp_cv_struct_iovec_help
31438			    # include <sys/uio.h>
31439			    #endif
31440
31441int
31442main ()
31443{
31444
31445			    void foo(void) {
31446				ssize_t x;
31447				int s = 0;
31448				struct iovec iov;
31449				struct msghdr mh;
31450				int flags = 0;
31451
31452				mh.msg_iov = &iov;
31453				x = recvmsg(s, &mh, flags);
31454			    }
31455
31456
31457  ;
31458  return 0;
31459}
31460_ACEOF
31461if ac_fn_c_try_compile "$LINENO"; then :
31462  compiled=yes ; break 1
31463fi
31464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31465	    done
31466	    case "$compiled" in
31467	     no)
31468		ntp_cv_struct_iovec_help=0
31469	    esac
31470	    { compiled=; unset compiled;}
31471
31472
31473fi
31474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
31475$as_echo "$ntp_cv_struct_iovec_help" >&6; }
31476    case "$ntp_cv_struct_iovec_help" in
31477     1)
31478
31479$as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
31480
31481    esac
31482esac
31483
31484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
31485$as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
31486if ${ntp_cv_func_setpgrp_nargs+:} false; then :
31487  $as_echo_n "(cached) " >&6
31488else
31489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31490/* end confdefs.h.  */
31491
31492		#ifdef HAVE_SYS_TYPES_H
31493		# include <sys/types.h>
31494		#endif
31495		#ifdef HAVE_UNISTD_H
31496		# include <unistd.h>
31497		#endif
31498
31499int
31500main ()
31501{
31502
31503		setpgrp(0, 0);
31504
31505
31506  ;
31507  return 0;
31508}
31509_ACEOF
31510if ac_fn_c_try_compile "$LINENO"; then :
31511  ntp_cv_func_setpgrp_nargs=2
31512else
31513  ntp_cv_func_setpgrp_nargs=0
31514
31515fi
31516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31517
31518fi
31519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5
31520$as_echo "$ntp_cv_func_setpgrp_nargs" >&6; }
31521case "$ntp_cv_func_setpgrp_nargs" in
31522 0)
31523
31524$as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h
31525
31526esac
31527
31528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
31529$as_echo_n "checking if we need to declare 'errno'... " >&6; }
31530if ${ntp_cv_decl_errno+:} false; then :
31531  $as_echo_n "(cached) " >&6
31532else
31533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31534/* end confdefs.h.  */
31535
31536		#ifdef HAVE_ERRNO_H
31537		# include <errno.h>
31538		#endif
31539
31540int
31541main ()
31542{
31543
31544		errno = 0;
31545
31546
31547  ;
31548  return 0;
31549}
31550_ACEOF
31551if ac_fn_c_try_compile "$LINENO"; then :
31552  ntp_cv_decl_errno=no
31553else
31554  ntp_cv_decl_errno=yes
31555
31556fi
31557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31558
31559fi
31560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5
31561$as_echo "$ntp_cv_decl_errno" >&6; }
31562case "$ntp_cv_decl_errno" in
31563 yes)
31564
31565$as_echo "#define DECL_ERRNO 1" >>confdefs.h
31566
31567esac
31568
31569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
31570$as_echo_n "checking if we may declare 'h_errno'... " >&6; }
31571if ${ntp_cv_decl_h_errno+:} false; then :
31572  $as_echo_n "(cached) " >&6
31573else
31574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31575/* end confdefs.h.  */
31576
31577		#include <sys/types.h>
31578		#ifdef HAVE_NETINET_IN_H
31579		# include <netinet/in.h>
31580		#endif
31581		#ifdef HAVE_ARPA_NAMESER_H
31582		# include <arpa/nameser.h>
31583		#endif
31584		#ifdef HAVE_NETDB_H
31585		# include <netdb.h>
31586		#endif
31587		#ifdef HAVE_RESOLV_H
31588		# include <resolv.h>
31589		#endif
31590
31591int
31592main ()
31593{
31594
31595		extern int h_errno;
31596
31597
31598  ;
31599  return 0;
31600}
31601_ACEOF
31602if ac_fn_c_try_compile "$LINENO"; then :
31603  ntp_cv_decl_h_errno=yes
31604else
31605  ntp_cv_decl_h_errno=no
31606
31607fi
31608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31609
31610fi
31611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5
31612$as_echo "$ntp_cv_decl_h_errno" >&6; }
31613case "$ntp_cv_decl_h_errno" in
31614 yes)
31615
31616$as_echo "#define DECL_H_ERRNO 1" >>confdefs.h
31617
31618esac
31619
31620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
31621$as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
31622if ${ntp_cv_decl_syscall+:} false; then :
31623  $as_echo_n "(cached) " >&6
31624else
31625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31626/* end confdefs.h.  */
31627
31628		#ifdef HAVE_SYS_TYPES_H
31629		# include <sys/types.h>
31630		#endif
31631		#ifdef HAVE_UNISTD_H
31632		# include <unistd.h>
31633		#endif
31634
31635int
31636main ()
31637{
31638
31639		extern int syscall (int, ...);
31640
31641
31642  ;
31643  return 0;
31644}
31645	ntp_cv_decl_syscall=yes
31646_ACEOF
31647if ac_fn_c_try_compile "$LINENO"; then :
31648  ntp_cv_decl_syscall=no
31649
31650fi
31651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31652
31653fi
31654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5
31655$as_echo "$ntp_cv_decl_syscall" >&6; }
31656case "$ntp_cv_decl_syscall" in
31657 yes)
31658
31659$as_echo "#define DECL_SYSCALL 1" >>confdefs.h
31660
31661esac
31662
31663case "$host" in
31664 *-*-aix4.3.*)
31665
31666$as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
31667		# Needed for XLC under AIX 4.3.2
31668    ;;
31669 *-*-mpeix*)
31670
31671$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31672
31673
31674$as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h
31675
31676
31677$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31678
31679
31680$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31681
31682
31683$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31684
31685
31686$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31687
31688
31689$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31690
31691    ;;
31692 *-*-osf[45]*)
31693
31694$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
31695
31696
31697$as_echo "#define DECL_STIME_1 1" >>confdefs.h
31698
31699    ;;
31700 *-*-qnx*)
31701
31702$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31703
31704    ;;
31705 *-*-riscos4*)
31706
31707$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31708
31709
31710$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31711
31712
31713$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31714
31715
31716$as_echo "#define DECL_IPC_0 1" >>confdefs.h
31717
31718
31719$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
31720
31721
31722$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31723
31724
31725$as_echo "#define DECL_RENAME_0 1" >>confdefs.h
31726
31727
31728$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31729
31730
31731$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31732
31733
31734$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31735
31736
31737$as_echo "#define DECL_STDIO_0 1" >>confdefs.h
31738
31739
31740$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
31741
31742
31743$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31744
31745
31746$as_echo "#define DECL_TIME_0 1" >>confdefs.h
31747
31748
31749$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31750
31751
31752$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
31753
31754    ;;
31755 *-*-solaris2*)
31756
31757$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
31758
31759
31760$as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h
31761
31762    case "$host" in
31763     *-*-solaris2.4)
31764
31765$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31766
31767	;;
31768    esac
31769    ;;
31770 *-*-sunos4*)
31771
31772$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31773
31774
31775$as_echo "#define DECL_BCOPY_0 1" >>confdefs.h
31776
31777
31778$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31779
31780
31781$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31782
31783
31784$as_echo "#define DECL_IPC_0 1" >>confdefs.h
31785
31786
31787$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
31788
31789
31790$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31791
31792
31793$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
31794
31795
31796$as_echo "#define DECL_RENAME_0 1" >>confdefs.h
31797
31798
31799$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31800
31801
31802$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31803
31804
31805$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31806
31807
31808$as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h
31809
31810    case "`basename $ac_cv_prog_CC`" in
31811     acc*) ;;
31812     *)
31813$as_echo "#define DECL_STDIO_0 1" >>confdefs.h
31814
31815	;;
31816    esac
31817
31818$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
31819
31820
31821$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31822
31823
31824$as_echo "#define DECL_TIME_0 1" >>confdefs.h
31825
31826
31827$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31828
31829
31830$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
31831
31832
31833$as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h
31834
31835
31836$as_echo "#define DECL_STRERROR_0 1" >>confdefs.h
31837
31838    ;;
31839 *-*-ultrix4*)
31840
31841$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31842
31843
31844$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31845
31846
31847$as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h
31848
31849
31850$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31851
31852
31853$as_echo "#define DECL_IPC_0 1" >>confdefs.h
31854
31855
31856$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31857
31858
31859$as_echo "#define DECL_NLIST_0 1" >>confdefs.h
31860
31861
31862$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
31863
31864
31865$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31866
31867
31868$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31869
31870
31871$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31872
31873
31874$as_echo "#define DECL_STIME_0 1" >>confdefs.h
31875
31876
31877$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31878
31879
31880$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31881
31882    ;;
31883esac
31884
31885case "$host" in
31886 *-*-sco3.2*)
31887
31888$as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
31889
31890    ;;
31891esac
31892
31893case "$host" in
31894 *-*-hpux[567]*)
31895
31896$as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
31897
31898esac
31899
31900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
31901$as_echo_n "checking if we will open the broadcast socket... " >&6; }
31902if ${ntp_cv_var_open_bcast_socket+:} false; then :
31903  $as_echo_n "(cached) " >&6
31904else
31905
31906	ans=yes
31907	case "$host" in
31908	 *-*-domainos)
31909	    ans=no
31910	esac
31911	ntp_cv_var_open_bcast_socket=$ans
31912
31913
31914fi
31915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5
31916$as_echo "$ntp_cv_var_open_bcast_socket" >&6; }
31917case "$ntp_cv_var_open_bcast_socket" in
31918 yes)
31919
31920$as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
31921
31922esac
31923
31924case "$host" in
31925 *-*-hpux*)
31926
31927$as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
31928
31929esac
31930
31931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
31932$as_echo_n "checking if process groups are set with -pid... " >&6; }
31933if ${ntp_cv_arg_setpgrp_negpid+:} false; then :
31934  $as_echo_n "(cached) " >&6
31935else
31936
31937	case "$host" in
31938	 *-*-hpux[567]*)
31939	    ans=no
31940	    ;;
31941	 *-*-hpux*)
31942	    ans=yes
31943	    ;;
31944	 *-*-*linux*)
31945	    ans=yes
31946	    ;;
31947	 *-*-sunos3*)
31948	    ans=yes
31949	    ;;
31950	 *-*-ultrix2*)
31951	    ans=yes
31952	    ;;
31953	 *)
31954	    ans=no
31955	    ;;
31956	esac
31957	ntp_cv_arg_setpgrp_negpid=$ans
31958
31959
31960fi
31961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5
31962$as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; }
31963case "$ntp_cv_arg_setpgrp_negpid" in
31964 yes)
31965
31966$as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
31967
31968esac
31969
31970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
31971$as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
31972if ${ntp_cv_func_ctty_for_f_setown+:} false; then :
31973  $as_echo_n "(cached) " >&6
31974else
31975
31976	case "$host" in
31977	 *-*-bsdi[23]*)
31978	    ans=yes
31979	    ;;
31980	 *-*-freebsd*)
31981	    ans=yes
31982	    ;;
31983	# NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
31984	# while later versions will fail a ioctl(TIOCSCTTY, 0) call in
31985	# some cases and so should not have USE_FSETOWNCTTY.  "netbsd"
31986	# in $host may be followed by "aout", "ecoff", or "elf".
31987	 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
31988	    ans=yes
31989	    ;;
31990	 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
31991	    ans=yes
31992	    ;;
31993	 *-*-openbsd*)
31994	    ans=yes
31995	    ;;
31996	 *-*-osf*)
31997	    ans=yes
31998	    ;;
31999	 *-*-darwin*)
32000	    ans=yes
32001	    ;;
32002	 *)
32003	    ans=no
32004	    ;;
32005	esac
32006	ntp_cv_func_ctty_for_f_setown=$ans
32007
32008
32009fi
32010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
32011$as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
32012case "$ntp_cv_func_ctty_for_f_setown" in
32013 yes)
32014
32015$as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h
32016
32017esac
32018
32019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
32020$as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
32021if ${ntp_cv_os_routeupdates+:} false; then :
32022  $as_echo_n "(cached) " >&6
32023else
32024
32025	case "$host" in
32026	 *-*-netbsd*)
32027	    ans=yes
32028	    ;;
32029	 *)
32030	    ans=no
32031	    ;;
32032	esac
32033	ntp_cv_os_routeupdates=$ans
32034
32035
32036fi
32037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
32038$as_echo "$ntp_cv_os_routeupdates" >&6; }
32039case "$ntp_cv_os_routeupdates" in
32040 yes)
32041
32042$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
32043
32044esac
32045
32046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
32047$as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
32048if ${ntp_cv_os_wildcardreuse+:} false; then :
32049  $as_echo_n "(cached) " >&6
32050else
32051
32052	case "$host" in
32053	 *-*-*linux*)
32054	    ans=yes
32055	    ;;
32056	 *) ans=no
32057	    ;;
32058	esac
32059	ntp_cv_os_wildcardreuse=$ans
32060
32061
32062fi
32063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
32064$as_echo "$ntp_cv_os_wildcardreuse" >&6; }
32065case "$ntp_cv_os_wildcardreuse" in
32066 yes)
32067
32068$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
32069
32070esac
32071
32072case "$host" in
32073 *-*-aix*)
32074
32075$as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
32076
32077esac
32078
32079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
32080$as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
32081if ${ntp_cv_var_min_rec_tickadj+:} false; then :
32082  $as_echo_n "(cached) " >&6
32083else
32084
32085	ans=no
32086	case "$host" in
32087	 *-*-aix*)
32088	    ans=40
32089	    ;;
32090	esac
32091	ntp_cv_var_min_rec_tickadj=$ans
32092
32093
32094fi
32095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5
32096$as_echo "$ntp_cv_var_min_rec_tickadj" >&6; }
32097case "$ntp_cv_var_min_rec_tickadj" in
32098 ''|no)
32099    ;;
32100 *)
32101
32102cat >>confdefs.h <<_ACEOF
32103#define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj
32104_ACEOF
32105
32106esac
32107
32108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
32109$as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
32110if ${ntp_cv_no_parenb_ignpar+:} false; then :
32111  $as_echo_n "(cached) " >&6
32112else
32113
32114	ans=no
32115	case "$host" in
32116	 i?86-*-*linux*)
32117	    ans=yes
32118	    ;;
32119	 mips-sgi-irix*)
32120	    ans=yes
32121	    ;;
32122	 i?86-*-freebsd[123].*)
32123	    ;;
32124	 i?86-*-freebsd*)
32125	    ans=yes
32126	    ;;
32127	 *-*-unicosmp*)
32128	    ans=yes
32129	    ;;
32130	esac
32131	ntp_cv_no_parenb_ignpar=$ans
32132
32133
32134fi
32135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5
32136$as_echo "$ntp_cv_no_parenb_ignpar" >&6; }
32137case "$ntp_cv_no_parenb_ignpar" in
32138 yes)
32139
32140$as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h
32141
32142esac
32143
32144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5
32145$as_echo_n "checking if we're including processing time debugging code... " >&6; }
32146# Check whether --enable-debug-timing was given.
32147if test "${enable_debug_timing+set}" = set; then :
32148  enableval=$enable_debug_timing; ntp_ok=$enableval
32149else
32150  ntp_ok=no
32151
32152fi
32153
32154case "$ntp_ok" in
32155 yes)
32156
32157$as_echo "#define DEBUG_TIMING 1" >>confdefs.h
32158
32159esac
32160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32161$as_echo "$ntp_ok" >&6; }
32162
32163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
32164$as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
32165# Check whether --enable-dst-minutes was given.
32166if test "${enable_dst_minutes+set}" = set; then :
32167  enableval=$enable_dst_minutes; ans=$enableval
32168else
32169  ans=60
32170
32171fi
32172
32173
32174cat >>confdefs.h <<_ACEOF
32175#define DSTMINUTES $ans
32176_ACEOF
32177
32178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32179$as_echo "$ans" >&6; }
32180
32181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
32182$as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; }
32183# Check whether --enable-ignore-dns-errors was given.
32184if test "${enable_ignore_dns_errors+set}" = set; then :
32185  enableval=$enable_ignore_dns_errors; ans=$enableval
32186else
32187  ans=no
32188
32189fi
32190
32191case "$ans" in
32192 yes)
32193
32194$as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
32195
32196esac
32197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32198$as_echo "$ans" >&6; }
32199
32200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
32201$as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
32202if ${ntp_cv_var_ntp_syscalls+:} false; then :
32203  $as_echo_n "(cached) " >&6
32204else
32205
32206	ntp_cv_var_ntp_syscalls=no
32207	case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
32208	 yesyes*)
32209	    ntp_cv_var_ntp_syscalls=libc
32210	    ;;
32211	 *yes)
32212	    ntp_cv_var_ntp_syscalls=inline
32213	    ;;
32214	 *)
32215	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32216/* end confdefs.h.  */
32217
32218			#include <sys/syscall.h>
32219			#if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
32220			# error
32221			#endif
32222
32223_ACEOF
32224if ac_fn_c_try_cpp "$LINENO"; then :
32225  ntp_cv_var_ntp_syscalls=kernel
32226
32227fi
32228rm -f conftest.err conftest.i conftest.$ac_ext
32229	    ;;
32230	 esac
32231
32232
32233fi
32234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5
32235$as_echo "$ntp_cv_var_ntp_syscalls" >&6; }
32236case "$ntp_cv_var_ntp_syscalls" in
32237 libc)
32238
32239$as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
32240
32241    ;;
32242 kernel)
32243
32244$as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h
32245
32246    ;;
32247esac
32248
32249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
32250$as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
32251if ${ntp_cv_var_sta_fll+:} false; then :
32252  $as_echo_n "(cached) " >&6
32253else
32254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32255/* end confdefs.h.  */
32256
32257		#include <sys/timex.h>
32258		#ifndef STA_FLL
32259		# error
32260		#endif
32261
32262_ACEOF
32263if ac_fn_c_try_cpp "$LINENO"; then :
32264  ntp_cv_var_sta_fll=yes
32265else
32266  ntp_cv_var_sta_fll=no
32267
32268fi
32269rm -f conftest.err conftest.i conftest.$ac_ext
32270
32271fi
32272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5
32273$as_echo "$ntp_cv_var_sta_fll" >&6; }
32274
32275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
32276$as_echo_n "checking if we have kernel PLL support... " >&6; }
32277if ${ntp_cv_var_kernel_pll+:} false; then :
32278  $as_echo_n "(cached) " >&6
32279else
32280  	case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in
32281	 *no*)
32282	    ntp_cv_var_kernel_pll=no
32283	    ;;
32284	 *) ntp_cv_var_kernel_pll=yes
32285	    ;;
32286	esac
32287
32288
32289fi
32290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5
32291$as_echo "$ntp_cv_var_kernel_pll" >&6; }
32292case "$ntp_cv_var_kernel_pll" in
32293 yes)
32294
32295$as_echo "#define KERNEL_PLL 1" >>confdefs.h
32296
32297esac
32298
32299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
32300$as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
32301if ${ntp_cv_size_returned_in_buffer+:} false; then :
32302  $as_echo_n "(cached) " >&6
32303else
32304
32305	ans=no
32306	case "$host" in
32307	 *-fujitsu-uxp*)
32308	    ans=yes
32309	    ;;
32310	 *-ncr-sysv4*)
32311	    ans=yes
32312	    ;;
32313	 *-univel-sysv*)
32314	    ans=yes
32315	    ;;
32316	esac
32317	ntp_cv_size_returned_in_buffer=$ans
32318
32319
32320fi
32321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5
32322$as_echo "$ntp_cv_size_returned_in_buffer" >&6; }
32323case "$ntp_cv_size_returned_in_buffer" in
32324 yes)
32325
32326$as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
32327
32328esac
32329
32330# Check for ioctls TIOCGPPSEV
32331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5
32332$as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; }
32333case "$ac_cv_header_termios_h" in
32334 yes)
32335    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32336/* end confdefs.h.  */
32337
32338	    #include <termios.h>
32339	    #ifndef TIOCGPPSEV
32340	    # error
32341	    #endif
32342
32343_ACEOF
32344if ac_fn_c_try_cpp "$LINENO"; then :
32345  ntp_ok=yes
32346else
32347  ntp_ok=no
32348
32349fi
32350rm -f conftest.err conftest.i conftest.$ac_ext
32351    ;;
32352 *)
32353    ntp_ok=no
32354    ;;
32355esac
32356case "$ntp_ok" in
32357 yes)
32358
32359$as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
32360
32361esac
32362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32363$as_echo "$ntp_ok" >&6; }
32364
32365# Check for ioctls TIOCSPPS
32366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5
32367$as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; }
32368case "$ac_cv_header_termios_h" in
32369 yes)
32370    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32371/* end confdefs.h.  */
32372
32373	    #include <termios.h>
32374	    #ifndef TIOCSPPS
32375	    # error
32376	    #endif
32377
32378_ACEOF
32379if ac_fn_c_try_cpp "$LINENO"; then :
32380  ntp_ok=yes
32381else
32382  ntp_ok=no
32383
32384fi
32385rm -f conftest.err conftest.i conftest.$ac_ext
32386    ;;
32387 *)
32388    ntp_ok=no
32389    ;;
32390esac
32391case "$ntp_ok" in
32392 yes)
32393
32394$as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h
32395
32396esac
32397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32398$as_echo "$ntp_ok" >&6; }
32399
32400# Check for ioctls CIOGETEV
32401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5
32402$as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; }
32403case "$ac_cv_header_sys_ppsclock_h" in
32404 yes)
32405    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32406/* end confdefs.h.  */
32407
32408	    #include <sys/ppsclock.h>
32409	    #ifndef CIOGETEV
32410	    # error
32411	    #endif
32412
32413_ACEOF
32414if ac_fn_c_try_cpp "$LINENO"; then :
32415  ntp_ok=yes
32416else
32417  ntp_ok=no
32418
32419fi
32420rm -f conftest.err conftest.i conftest.$ac_ext
32421    ;;
32422 *)
32423    ntp_ok=no
32424    ;;
32425esac
32426case "$ntp_ok" in
32427 yes)
32428
32429$as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h
32430
32431esac
32432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32433$as_echo "$ntp_ok" >&6; }
32434
32435# ATOM/PPSAPI stuff.
32436
32437ntp_atom_ok=yes
32438
32439# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
32440
32441# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
32442# The PPSAPI needs struct timespec.
32443# The PPSAPI also needs a timepps header.
32444
32445case "$ac_cv_c_inline$ntp_cv_struct_timespec" in
32446 inlineyes)
32447    case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
32448     *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
32449
32450$as_echo "#define HAVE_PPSAPI 1" >>confdefs.h
32451
32452	ntp_jupiter_ok=yes
32453	ntp_oncore_ok=yes
32454	ntp_parse_ok=yes
32455	ntp_ripe_ncc_ok=yes
32456	;;
32457    esac
32458    ;;
32459esac
32460
32461# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
32462ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
32463if test "x$ac_cv_header_linux_serial_h" = xyes; then :
32464
32465fi
32466
32467
32468case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
32469  yesyes)
32470    { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
32471$as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
32472    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32473/* end confdefs.h.  */
32474
32475	    #include <sys/time.h>
32476	    typedef int u_int;
32477	    #include <sys/ppsclock.h>
32478	    #include <linux/serial.h>
32479
32480	    #ifndef TIOCGSERIAL
32481	    # error
32482	    #endif
32483	    #ifndef TIOCSSERIAL
32484	    # error
32485	    #endif
32486	    #ifndef ASYNC_PPS_CD_POS
32487	    # error
32488	    #endif
32489	    #ifndef ASYNC_PPS_CD_NEG
32490	    # error
32491	    #endif
32492	    #ifndef CIOGETEV
32493	    # error
32494	    #endif
32495
32496_ACEOF
32497if ac_fn_c_try_cpp "$LINENO"; then :
32498  ntp_ok=yes
32499else
32500  ntp_ok=no
32501
32502fi
32503rm -f conftest.err conftest.i conftest.$ac_ext
32504    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32505$as_echo "$ntp_ok" >&6; }
32506    ;;
32507  *)
32508    ntp_ok=no
32509    ;;
32510esac
32511case "$ntp_ok" in
32512 yes)
32513
32514$as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
32515
32516esac
32517
32518# Check for SHMEM_STATUS support
32519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
32520$as_echo_n "checking SHMEM_STATUS support... " >&6; }
32521case "$ac_cv_header_sys_mman_h" in
32522 yes)
32523    ntp_ok=yes
32524    ;;
32525 *)
32526    ntp_ok=no
32527    ;;
32528esac
32529case "$ntp_ok" in
32530 yes)
32531
32532$as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h
32533
32534esac
32535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32536$as_echo "$ntp_ok" >&6; }
32537
32538ntp_refclock=no
32539
32540# HPUX only, and by explicit request
32541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
32542$as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
32543# Check whether --enable-BANCOMM was given.
32544if test "${enable_BANCOMM+set}" = set; then :
32545  enableval=$enable_BANCOMM; ntp_ok=$enableval
32546else
32547  ntp_ok=no
32548
32549fi
32550
32551case "$ntp_ok" in
32552 yes)
32553    ntp_refclock=yes
32554
32555$as_echo "#define CLOCK_BANC 1" >>confdefs.h
32556
32557    ;;
32558esac
32559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32560$as_echo "$ntp_ok" >&6; }
32561case "$ntp_ok$host" in
32562 yes*-*-hpux*) ;;
32563 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32564$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
32565esac
32566
32567#HPUX only, and only by explicit request
32568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
32569$as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
32570# Check whether --enable-GPSVME was given.
32571if test "${enable_GPSVME+set}" = set; then :
32572  enableval=$enable_GPSVME; ntp_ok=$enableval
32573else
32574  ntp_ok=no
32575
32576fi
32577
32578case "$ntp_ok" in
32579 yes)
32580    ntp_refclock=yes
32581
32582$as_echo "#define CLOCK_GPSVME 1" >>confdefs.h
32583
32584    ;;
32585esac
32586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32587$as_echo "$ntp_ok" >&6; }
32588case "$ntp_ok$host" in
32589 yes*-*-hpux*) ;;
32590 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32591$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
32592esac
32593
32594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
32595$as_echo_n "checking for PCL720 clock support... " >&6; }
32596case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
32597 yesyesyes)
32598
32599$as_echo "#define CLOCK_PPS720 1" >>confdefs.h
32600
32601    ans=yes
32602    ;;
32603 *)
32604    ans=no
32605    ;;
32606esac
32607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32608$as_echo "$ans" >&6; }
32609
32610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
32611$as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
32612# Check whether --enable-all-clocks was given.
32613if test "${enable_all_clocks+set}" = set; then :
32614  enableval=$enable_all_clocks; ntp_eac=$enableval
32615else
32616  ntp_eac=yes
32617
32618fi
32619
32620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
32621$as_echo "$ntp_eac" >&6; }
32622
32623# HMS: Should we also require ntp_parse_ok?
32624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
32625$as_echo_n "checking if we have support for PARSE clocks... " >&6; }
32626case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
32627 yes*yes*)
32628    ntp_canparse=yes
32629    ;;
32630 *) ntp_canparse=no
32631    ;;
32632esac
32633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
32634$as_echo "$ntp_canparse" >&6; }
32635
32636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
32637$as_echo_n "checking if we have support for audio clocks... " >&6; }
32638case "$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
32639 *yes*)
32640    ntp_canaudio=yes
32641
32642$as_echo "#define HAVE_AUDIO /**/" >>confdefs.h
32643
32644    ;;
32645 *) ntp_canaudio=no ;;
32646esac
32647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
32648$as_echo "$ntp_canaudio" >&6; }
32649
32650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
32651$as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
32652case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
32653 yesyes)
32654    ntp_canshm=yes
32655    ;;
32656 *) ntp_canshm=no ;;
32657esac
32658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
32659$as_echo "$ntp_canshm" >&6; }
32660
32661# Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade)
32662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5
32663$as_echo_n "checking for termios modem control... " >&6; }
32664if ${ntp_cv_modem_control+:} false; then :
32665  $as_echo_n "(cached) " >&6
32666else
32667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32668/* end confdefs.h.  */
32669
32670		#ifdef HAVE_UNISTD_H
32671		# include <unistd.h>
32672		#endif
32673		#ifdef HAVE_TERMIOS_H
32674		# include <termios.h>
32675		#endif
32676		#ifdef HAVE_SYS_IOCTL_H
32677		# include <sys/ioctl.h>
32678		#endif
32679
32680int
32681main ()
32682{
32683
32684		int	dtr = TIOCM_DTR;
32685
32686		ioctl(1, TIOCMBIS, (char *)&dtr);
32687
32688
32689  ;
32690  return 0;
32691}
32692_ACEOF
32693if ac_fn_c_try_compile "$LINENO"; then :
32694  ntp_cv_modem_control=yes
32695else
32696  ntp_cv_modem_control=no
32697
32698fi
32699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32700
32701fi
32702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5
32703$as_echo "$ntp_cv_modem_control" >&6; }
32704case "$ntp_eac::$ntp_cv_modem_control" in
32705 yes::yes)
32706    ntp_enable_all_modem_control_clocks=yes
32707    ;;
32708 *)
32709    ntp_enable_all_modem_control_clocks=no
32710    ;;
32711esac
32712
32713# Requires modem control
32714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
32715$as_echo_n "checking ACTS modem service... " >&6; }
32716# Check whether --enable-ACTS was given.
32717if test "${enable_ACTS+set}" = set; then :
32718  enableval=$enable_ACTS; ntp_ok=$enableval
32719else
32720  ntp_ok=$ntp_enable_all_modem_control_clocks
32721
32722fi
32723
32724case "$ntp_ok" in
32725 yes)
32726    ntp_refclock=yes
32727
32728$as_echo "#define CLOCK_ACTS 1" >>confdefs.h
32729
32730    ;;
32731esac
32732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32733$as_echo "$ntp_ok" >&6; }
32734
32735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
32736$as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
32737# Check whether --enable-ARBITER was given.
32738if test "${enable_ARBITER+set}" = set; then :
32739  enableval=$enable_ARBITER; ntp_ok=$enableval
32740else
32741  ntp_ok=$ntp_eac
32742
32743fi
32744
32745case "$ntp_ok" in
32746 yes)
32747    ntp_refclock=yes
32748
32749$as_echo "#define CLOCK_ARBITER 1" >>confdefs.h
32750
32751    ;;
32752esac
32753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32754$as_echo "$ntp_ok" >&6; }
32755
32756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
32757$as_echo_n "checking Arcron MSF receiver... " >&6; }
32758# Check whether --enable-ARCRON_MSF was given.
32759if test "${enable_ARCRON_MSF+set}" = set; then :
32760  enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
32761else
32762  ntp_ok=$ntp_eac
32763
32764fi
32765
32766case "$ntp_ok" in
32767 yes)
32768    ntp_refclock=yes
32769
32770$as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
32771
32772    ;;
32773esac
32774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32775$as_echo "$ntp_ok" >&6; }
32776
32777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
32778$as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
32779# Check whether --enable-AS2201 was given.
32780if test "${enable_AS2201+set}" = set; then :
32781  enableval=$enable_AS2201; ntp_ok=$enableval
32782else
32783  ntp_ok=$ntp_eac
32784
32785fi
32786
32787case "$ntp_ok" in
32788 yes)
32789    ntp_refclock=yes
32790
32791$as_echo "#define CLOCK_AS2201 1" >>confdefs.h
32792
32793    ;;
32794esac
32795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32796$as_echo "$ntp_ok" >&6; }
32797
32798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
32799$as_echo_n "checking ATOM PPS interface... " >&6; }
32800# Check whether --enable-ATOM was given.
32801if test "${enable_ATOM+set}" = set; then :
32802  enableval=$enable_ATOM; ntp_ok=$enableval
32803else
32804  ntp_ok=$ntp_eac
32805
32806fi
32807
32808case "$ntp_atom_ok" in
32809 no) ntp_ok=no ;;
32810esac
32811case "$ntp_ok" in
32812 yes)
32813    ntp_refclock=yes
32814
32815$as_echo "#define CLOCK_ATOM 1" >>confdefs.h
32816
32817    ;;
32818esac
32819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32820$as_echo "$ntp_ok" >&6; }
32821
32822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
32823$as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
32824# Check whether --enable-CHRONOLOG was given.
32825if test "${enable_CHRONOLOG+set}" = set; then :
32826  enableval=$enable_CHRONOLOG; ntp_ok=$enableval
32827else
32828  ntp_ok=$ntp_eac
32829
32830fi
32831
32832case "$ntp_ok" in
32833 yes)
32834    ntp_refclock=yes
32835
32836$as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h
32837
32838    ;;
32839esac
32840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32841$as_echo "$ntp_ok" >&6; }
32842
32843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
32844$as_echo_n "checking CHU modem/decoder... " >&6; }
32845# Check whether --enable-CHU was given.
32846if test "${enable_CHU+set}" = set; then :
32847  enableval=$enable_CHU; ntp_ok=$enableval
32848else
32849  ntp_ok=$ntp_eac
32850
32851fi
32852
32853case "$ntp_ok" in
32854 yes)
32855    ntp_refclock=yes
32856
32857$as_echo "#define CLOCK_CHU 1" >>confdefs.h
32858
32859    ;;
32860esac
32861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32862$as_echo "$ntp_ok" >&6; }
32863ntp_refclock_chu=$ntp_ok
32864
32865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
32866$as_echo_n "checking CHU audio/decoder... " >&6; }
32867# Check whether --enable-AUDIO-CHU was given.
32868if test "${enable_AUDIO_CHU+set}" = set; then :
32869  enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
32870else
32871
32872	case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in
32873	 *no*)	ntp_ok=no  ;;
32874	 *)	ntp_ok=yes ;;
32875	esac
32876
32877
32878fi
32879
32880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32881$as_echo "$ntp_ok" >&6; }
32882# We used to check for sunos/solaris target...
32883case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in
32884 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
32885$as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;}
32886esac
32887
32888# Not under HP-UX
32889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
32890$as_echo_n "checking Datum Programmable Time System... " >&6; }
32891# Check whether --enable-DATUM was given.
32892if test "${enable_DATUM+set}" = set; then :
32893  enableval=$enable_DATUM; ntp_ok=$enableval
32894else
32895
32896	case "$ac_cv_header_termios_h" in
32897	 yes)
32898	    ntp_ok=$ntp_eac
32899	    ;;
32900	 *) ntp_ok=no
32901	    ;;
32902	esac
32903
32904
32905fi
32906
32907case "$ntp_ok" in
32908 yes)
32909    ntp_refclock=yes
32910
32911$as_echo "#define CLOCK_DATUM 1" >>confdefs.h
32912
32913    ;;
32914esac
32915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32916$as_echo "$ntp_ok" >&6; }
32917
32918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
32919$as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
32920# Check whether --enable-DUMBCLOCK was given.
32921if test "${enable_DUMBCLOCK+set}" = set; then :
32922  enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
32923else
32924  ntp_ok=$ntp_eac
32925
32926fi
32927
32928case "$ntp_ok" in
32929 yes)
32930    ntp_refclock=yes
32931
32932$as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
32933
32934    ;;
32935esac
32936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32937$as_echo "$ntp_ok" >&6; }
32938
32939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
32940$as_echo_n "checking Forum Graphic GPS... " >&6; }
32941# Check whether --enable-FG was given.
32942if test "${enable_FG+set}" = set; then :
32943  enableval=$enable_FG; ntp_ok=$enableval
32944else
32945  ntp_ok=$ntp_eac
32946
32947fi
32948
32949case "$ntp_ok" in
32950 yes)
32951    ntp_refclock=yes
32952
32953$as_echo "#define CLOCK_FG 1" >>confdefs.h
32954
32955    ;;
32956esac
32957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32958$as_echo "$ntp_ok" >&6; }
32959
32960# Requires modem control
32961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
32962$as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
32963# Check whether --enable-HEATH was given.
32964if test "${enable_HEATH+set}" = set; then :
32965  enableval=$enable_HEATH; ntp_ok=$enableval
32966else
32967  ntp_ok=$ntp_enable_all_modem_control_clocks
32968
32969fi
32970
32971case "$ntp_ok" in
32972 yes)
32973    ntp_refclock=yes
32974
32975$as_echo "#define CLOCK_HEATH 1" >>confdefs.h
32976
32977    ;;
32978esac
32979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32980$as_echo "$ntp_ok" >&6; }
32981
32982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
32983$as_echo_n "checking for hopf serial clock device... " >&6; }
32984# Check whether --enable-HOPFSERIAL was given.
32985if test "${enable_HOPFSERIAL+set}" = set; then :
32986  enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
32987else
32988  ntp_ok=$ntp_eac
32989
32990fi
32991
32992case "$ntp_ok" in
32993 yes)
32994    ntp_refclock=yes
32995
32996$as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
32997
32998    ;;
32999esac
33000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33001$as_echo "$ntp_ok" >&6; }
33002
33003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
33004$as_echo_n "checking for hopf PCI clock 6039... " >&6; }
33005# Check whether --enable-HOPFPCI was given.
33006if test "${enable_HOPFPCI+set}" = set; then :
33007  enableval=$enable_HOPFPCI; ntp_ok=$enableval
33008else
33009  ntp_ok=$ntp_eac
33010
33011fi
33012
33013case "$ntp_ok" in
33014 yes)
33015    ntp_refclock=yes
33016
33017$as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h
33018
33019    ;;
33020esac
33021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33022$as_echo "$ntp_ok" >&6; }
33023
33024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
33025$as_echo_n "checking HP 58503A GPS receiver... " >&6; }
33026# Check whether --enable-HPGPS was given.
33027if test "${enable_HPGPS+set}" = set; then :
33028  enableval=$enable_HPGPS; ntp_ok=$enableval
33029else
33030  ntp_ok=$ntp_eac
33031
33032fi
33033
33034case "$ntp_ok" in
33035 yes)
33036    ntp_refclock=yes
33037
33038$as_echo "#define CLOCK_HPGPS 1" >>confdefs.h
33039
33040    ;;
33041esac
33042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33043$as_echo "$ntp_ok" >&6; }
33044
33045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
33046$as_echo_n "checking IRIG audio decoder... " >&6; }
33047# Check whether --enable-IRIG was given.
33048if test "${enable_IRIG+set}" = set; then :
33049  enableval=$enable_IRIG; ntp_ok=$enableval
33050else
33051
33052	case "$ntp_eac$ntp_canaudio" in
33053	 *no*)	ntp_ok=no  ;;
33054	 *)	ntp_ok=yes ;;
33055	esac
33056
33057
33058fi
33059
33060case "$ntp_ok" in
33061 yes)
33062    ntp_refclock=yes
33063
33064$as_echo "#define CLOCK_IRIG 1" >>confdefs.h
33065
33066    ;;
33067esac
33068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33069$as_echo "$ntp_ok" >&6; }
33070case "$ntp_ok$ntp_canaudio" in
33071 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33072$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33073esac
33074
33075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
33076$as_echo_n "checking for JJY receiver... " >&6; }
33077# Check whether --enable-JJY was given.
33078if test "${enable_JJY+set}" = set; then :
33079  enableval=$enable_JJY; ntp_ok=$enableval
33080else
33081  ntp_ok=$ntp_eac
33082
33083fi
33084
33085case "$ntp_ok" in
33086 yes)
33087    ntp_refclock=yes
33088
33089$as_echo "#define CLOCK_JJY 1" >>confdefs.h
33090
33091    ;;
33092esac
33093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33094$as_echo "$ntp_ok" >&6; }
33095
33096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
33097$as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
33098# Check whether --enable-JUPITER was given.
33099if test "${enable_JUPITER+set}" = set; then :
33100  enableval=$enable_JUPITER; ntp_ok=$enableval
33101else
33102  ntp_ok=$ntp_eac
33103fi
33104
33105case "$ntp_jupiter_ok" in
33106 no) ntp_ok=no ;;
33107esac
33108case "$ntp_ok" in
33109 yes)
33110    ntp_refclock=yes
33111
33112$as_echo "#define CLOCK_JUPITER 1" >>confdefs.h
33113
33114    ;;
33115esac
33116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33117$as_echo "$ntp_ok" >&6; }
33118
33119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
33120$as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
33121# Check whether --enable-LEITCH was given.
33122if test "${enable_LEITCH+set}" = set; then :
33123  enableval=$enable_LEITCH; ntp_ok=$enableval
33124else
33125  ntp_ok=$ntp_eac
33126
33127fi
33128
33129case "$ntp_ok" in
33130 yes)
33131    ntp_refclock=yes
33132
33133$as_echo "#define CLOCK_LEITCH 1" >>confdefs.h
33134
33135    ;;
33136esac
33137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33138$as_echo "$ntp_ok" >&6; }
33139
33140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
33141$as_echo_n "checking local clock reference... " >&6; }
33142# Check whether --enable-LOCAL-CLOCK was given.
33143if test "${enable_LOCAL_CLOCK+set}" = set; then :
33144  enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
33145else
33146  ntp_ok=$ntp_eac
33147
33148fi
33149
33150case "$ntp_ok" in
33151 yes)
33152    ntp_refclock=yes
33153
33154$as_echo "#define CLOCK_LOCAL 1" >>confdefs.h
33155
33156    ;;
33157esac
33158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33159$as_echo "$ntp_ok" >&6; }
33160
33161
33162# Not Ultrix
33163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
33164$as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
33165# Check whether --enable-MX4200 was given.
33166if test "${enable_MX4200+set}" = set; then :
33167  enableval=$enable_MX4200; ntp_ok=$enableval
33168else
33169
33170	case "$ac_cv_var_ppsclock" in
33171	 yes)
33172	    ntp_ok=$ntp_eac
33173	    ;;
33174	 *)
33175	    ntp_ok=no
33176	    ;;
33177	esac
33178
33179
33180fi
33181
33182case "$ntp_ok" in
33183 yes)
33184    ntp_refclock=yes
33185
33186$as_echo "#define CLOCK_MX4200 1" >>confdefs.h
33187
33188    ;;
33189esac
33190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33191$as_echo "$ntp_ok" >&6; }
33192case "$ntp_ok$host" in
33193 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33194$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33195esac
33196
33197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
33198$as_echo_n "checking for NeoClock4X receiver... " >&6; }
33199# Check whether --enable-NEOCLOCK4X was given.
33200if test "${enable_NEOCLOCK4X+set}" = set; then :
33201  enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
33202else
33203  ntp_ok=$ntp_eac
33204
33205fi
33206
33207case "$ntp_ok" in
33208 yes)
33209    ntp_refclock=yes
33210
33211$as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h
33212
33213    ;;
33214esac
33215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33216$as_echo "$ntp_ok" >&6; }
33217
33218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
33219$as_echo_n "checking NMEA GPS receiver... " >&6; }
33220# Check whether --enable-NMEA was given.
33221if test "${enable_NMEA+set}" = set; then :
33222  enableval=$enable_NMEA; ntp_ok=$enableval
33223else
33224  ntp_ok=$ntp_eac
33225
33226fi
33227
33228case "$ntp_ok" in
33229 yes)
33230    ntp_refclock=yes
33231
33232$as_echo "#define CLOCK_NMEA 1" >>confdefs.h
33233
33234    ;;
33235esac
33236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33237$as_echo "$ntp_ok" >&6; }
33238
33239for ac_func in strtoll
33240do :
33241  ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
33242if test "x$ac_cv_func_strtoll" = xyes; then :
33243  cat >>confdefs.h <<_ACEOF
33244#define HAVE_STRTOLL 1
33245_ACEOF
33246
33247fi
33248done
33249
33250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
33251$as_echo_n "checking for GPSD JSON receiver... " >&6; }
33252# Check whether --enable-GPSD was given.
33253if test "${enable_GPSD+set}" = set; then :
33254  enableval=$enable_GPSD; ntp_ok=$enableval
33255else
33256  case "$ac_cv_func_strtoll" in
33257     yes) ntp_ok=$ntp_eac ;;
33258     *)   ntp_ok="no" ;;
33259    esac
33260
33261fi
33262
33263case "$ntp_ok" in
33264 yes)
33265    ntp_refclock=yes
33266
33267$as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h
33268
33269    ;;
33270esac
33271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33272$as_echo "$ntp_ok" >&6; }
33273
33274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
33275$as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
33276# Check whether --enable-ONCORE was given.
33277if test "${enable_ONCORE+set}" = set; then :
33278  enableval=$enable_ONCORE; ntp_ok=$enableval
33279else
33280  ntp_ok=$ntp_eac
33281
33282fi
33283
33284case "$ntp_oncore_ok" in
33285 no) ntp_ok=no ;;
33286esac
33287case "$ntp_ok" in
33288 yes)
33289    ntp_refclock=yes
33290
33291$as_echo "#define CLOCK_ONCORE 1" >>confdefs.h
33292
33293    ;;
33294esac
33295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33296$as_echo "$ntp_ok" >&6; }
33297
33298# Requires modem control
33299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
33300$as_echo_n "checking for Palisade clock... " >&6; }
33301# Check whether --enable-PALISADE was given.
33302if test "${enable_PALISADE+set}" = set; then :
33303  enableval=$enable_PALISADE; ntp_ok=$enableval
33304else
33305  ntp_ok=$ntp_enable_all_modem_control_clocks
33306
33307fi
33308
33309case "$ntp_ok" in
33310 yes)
33311    ntp_refclock=yes
33312
33313$as_echo "#define CLOCK_PALISADE 1" >>confdefs.h
33314
33315    ;;
33316esac
33317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33318$as_echo "$ntp_ok" >&6; }
33319
33320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
33321$as_echo_n "checking Conrad parallel port radio clock... " >&6; }
33322# Check whether --enable-PCF was given.
33323if test "${enable_PCF+set}" = set; then :
33324  enableval=$enable_PCF; ntp_ok=$enableval
33325else
33326  ntp_ok=$ntp_eac
33327
33328fi
33329
33330case "$ntp_ok" in
33331 yes)
33332    ntp_refclock=yes
33333
33334$as_echo "#define CLOCK_PCF 1" >>confdefs.h
33335
33336    ;;
33337esac
33338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33339$as_echo "$ntp_ok" >&6; }
33340
33341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
33342$as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
33343# Check whether --enable-PST was given.
33344if test "${enable_PST+set}" = set; then :
33345  enableval=$enable_PST; ntp_ok=$enableval
33346else
33347  ntp_ok=$ntp_eac
33348
33349fi
33350
33351case "$ntp_ok" in
33352 yes)
33353    ntp_refclock=yes
33354
33355$as_echo "#define CLOCK_PST 1" >>confdefs.h
33356
33357    ;;
33358esac
33359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33360$as_echo "$ntp_ok" >&6; }
33361
33362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
33363$as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
33364# Check whether --enable-RIPENCC was given.
33365if test "${enable_RIPENCC+set}" = set; then :
33366  enableval=$enable_RIPENCC; ntp_ok=$enableval
33367else
33368  ntp_ok=no
33369
33370fi
33371
33372# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
33373case "$ntp_ripe_ncc_ok" in
33374 no) ntp_ok=no ;;
33375esac
33376case "$ntp_ok" in
33377 yes)
33378    ntp_refclock=yes
33379
33380$as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h
33381
33382    ;;
33383esac
33384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33385$as_echo "$ntp_ok" >&6; }
33386
33387# Danny Meyer says SHM compiles (with a few warnings) under Win32.
33388# For *IX, we need sys/ipc.h and sys/shm.h.
33389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
33390$as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
33391# Check whether --enable-SHM was given.
33392if test "${enable_SHM+set}" = set; then :
33393  enableval=$enable_SHM; ntp_ok=$enableval
33394else
33395
33396	case "$ntp_eac$ntp_canshm" in
33397	 *no*)	ntp_ok=no  ;;
33398	 *)	ntp_ok=yes ;;
33399	esac
33400
33401
33402fi
33403
33404case "$ntp_ok" in
33405 yes)
33406    ntp_refclock=yes
33407
33408$as_echo "#define CLOCK_SHM 1" >>confdefs.h
33409
33410    ;;
33411esac
33412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33413$as_echo "$ntp_ok" >&6; }
33414
33415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
33416$as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
33417# Check whether --enable-SPECTRACOM was given.
33418if test "${enable_SPECTRACOM+set}" = set; then :
33419  enableval=$enable_SPECTRACOM; ntp_ok=$enableval
33420else
33421  ntp_ok=$ntp_eac
33422
33423fi
33424
33425case "$ntp_ok" in
33426 yes)
33427    ntp_refclock=yes
33428
33429$as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h
33430
33431    ;;
33432esac
33433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33434$as_echo "$ntp_ok" >&6; }
33435
33436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
33437$as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
33438# Check whether --enable-TPRO was given.
33439if test "${enable_TPRO+set}" = set; then :
33440  enableval=$enable_TPRO; ntp_ok=$enableval
33441else
33442
33443	case "$ac_cv_header_sys_tpro_h" in
33444	 yes)
33445	    ntp_ok=$ntp_eac
33446	    ;;
33447	 *)
33448	    ntp_ok=no
33449	    ;;
33450	esac
33451
33452
33453fi
33454
33455case "$ntp_ok" in
33456 yes)
33457    ntp_refclock=yes
33458
33459$as_echo "#define CLOCK_TPRO 1" >>confdefs.h
33460
33461    ;;
33462esac
33463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33464$as_echo "$ntp_ok" >&6; }
33465case "$ntp_ok$ac_cv_header_sys_tpro" in
33466 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33467$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33468esac
33469
33470# Not on a vax-dec-bsd
33471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
33472$as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
33473# Check whether --enable-TRUETIME was given.
33474if test "${enable_TRUETIME+set}" = set; then :
33475  enableval=$enable_TRUETIME; ntp_ok=$enableval
33476else
33477
33478	case "$host" in
33479	 vax-dec-bsd)
33480	    ntp_ok=no
33481	    ;;
33482	 *)
33483	    ntp_ok=$ntp_eac
33484	    ;;
33485	esac
33486
33487
33488fi
33489
33490case "$ntp_ok" in
33491 yes)
33492    ntp_refclock=yes
33493
33494$as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h
33495
33496    ;;
33497esac
33498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33499$as_echo "$ntp_ok" >&6; }
33500case "$ntp_ok$host" in
33501 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33502$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33503esac
33504
33505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
33506$as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
33507# Check whether --enable-TT560 was given.
33508if test "${enable_TT560+set}" = set; then :
33509  enableval=$enable_TT560; ntp_ok=$enableval
33510else
33511  ntp_ok=no
33512
33513fi
33514
33515case "$ntp_ok" in
33516 yes)
33517    ntp_refclock=yes
33518
33519$as_echo "#define CLOCK_TT560 /**/" >>confdefs.h
33520
33521    ;;
33522esac
33523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33524$as_echo "$ntp_ok" >&6; }
33525
33526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
33527$as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
33528# Check whether --enable-ULINK was given.
33529if test "${enable_ULINK+set}" = set; then :
33530  enableval=$enable_ULINK; ntp_ok=$enableval
33531else
33532  ntp_ok=$ntp_eac
33533
33534fi
33535
33536case "$ntp_ok" in
33537 yes)
33538    ntp_refclock=yes
33539
33540$as_echo "#define CLOCK_ULINK 1" >>confdefs.h
33541
33542    ;;
33543esac
33544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33545$as_echo "$ntp_ok" >&6; }
33546
33547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
33548$as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; }
33549# Check whether --enable-TSYNCPCI was given.
33550if test "${enable_TSYNCPCI+set}" = set; then :
33551  enableval=$enable_TSYNCPCI; ntp_ok=$enableval
33552else
33553
33554	case "$host" in
33555	 *-*-*linux*)
33556	    ntp_ok=$ntp_eac
33557	    ;;
33558	 *)
33559	    ntp_ok=no
33560	esac
33561
33562
33563fi
33564
33565case "$ntp_ok" in
33566 yes)
33567    ntp_refclock=yes
33568
33569$as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h
33570
33571    ;;
33572esac
33573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33574$as_echo "$ntp_ok" >&6; }
33575
33576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
33577$as_echo_n "checking WWV receiver... " >&6; }
33578# Check whether --enable-WWV was given.
33579if test "${enable_WWV+set}" = set; then :
33580  enableval=$enable_WWV; ntp_ok=$enableval
33581else
33582
33583	case "$ntp_eac$ntp_canaudio" in
33584	 *no*)	ntp_ok=no  ;;
33585	 *)	ntp_ok=yes ;;
33586	esac
33587
33588
33589fi
33590
33591case "$ntp_ok" in
33592 yes)
33593    ntp_refclock=yes
33594
33595$as_echo "#define CLOCK_WWV 1" >>confdefs.h
33596
33597    ;;
33598esac
33599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33600$as_echo "$ntp_ok" >&6; }
33601case "$ntp_ok$ntp_canaudio" in
33602 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33603$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33604esac
33605
33606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
33607$as_echo_n "checking for Zyfer receiver... " >&6; }
33608# Check whether --enable-ZYFER was given.
33609if test "${enable_ZYFER+set}" = set; then :
33610  enableval=$enable_ZYFER; ntp_ok=$enableval
33611else
33612  ntp_ok=$ntp_eac
33613
33614fi
33615
33616case "$ntp_ok" in
33617 yes)
33618    ntp_refclock=yes
33619
33620$as_echo "#define CLOCK_ZYFER 1" >>confdefs.h
33621
33622    ;;
33623esac
33624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33625$as_echo "$ntp_ok" >&6; }
33626
33627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
33628$as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
33629# Check whether --enable-parse-clocks was given.
33630if test "${enable_parse_clocks+set}" = set; then :
33631  enableval=$enable_parse_clocks; ntp_eapc=$enableval
33632else
33633
33634	case "$ntp_eac" in
33635	 yes)	ntp_eapc=$ntp_canparse ;;
33636	 *)	ntp_eapc=no ;;
33637	esac
33638	# Delete the next line one of these days
33639	ntp_eapc=no
33640
33641
33642fi
33643
33644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
33645$as_echo "$ntp_eapc" >&6; }
33646
33647case "$ntp_eac$ntp_eapc$ntp_canparse" in
33648 noyes*)
33649    as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
33650    ;;
33651 yesyesno)
33652    as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
33653    ;;
33654esac
33655
33656ntp_libparse=no
33657ntp_parseutil=no
33658ntp_rawdcf=no
33659
33660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
33661$as_echo_n "checking Diem Computime Radio Clock... " >&6; }
33662# Check whether --enable-COMPUTIME was given.
33663if test "${enable_COMPUTIME+set}" = set; then :
33664  enableval=$enable_COMPUTIME; ntp_ok=$enableval
33665else
33666  ntp_ok=$ntp_eapc
33667
33668fi
33669
33670case "$ntp_ok" in
33671 yes)
33672    ntp_libparse=yes
33673    ntp_refclock=yes
33674
33675$as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h
33676
33677    ;;
33678esac
33679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33680$as_echo "$ntp_ok" >&6; }
33681case "$ntp_ok$ntp_canparse" in
33682 yesno)
33683    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33684esac
33685
33686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
33687$as_echo_n "checking ELV/DCF7000 clock... " >&6; }
33688# Check whether --enable-DCF7000 was given.
33689if test "${enable_DCF7000+set}" = set; then :
33690  enableval=$enable_DCF7000; ntp_ok=$enableval
33691else
33692  ntp_ok=$ntp_eapc
33693
33694fi
33695
33696case "$ntp_ok" in
33697 yes)
33698    ntp_libparse=yes
33699    ntp_refclock=yes
33700
33701$as_echo "#define CLOCK_DCF7000 1" >>confdefs.h
33702
33703    ;;
33704esac
33705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33706$as_echo "$ntp_ok" >&6; }
33707case "$ntp_ok$ntp_canparse" in
33708 yesno)
33709    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33710esac
33711
33712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
33713$as_echo_n "checking HOPF 6021 clock... " >&6; }
33714# Check whether --enable-HOPF6021 was given.
33715if test "${enable_HOPF6021+set}" = set; then :
33716  enableval=$enable_HOPF6021; ntp_ok=$enableval
33717else
33718  ntp_ok=$ntp_eapc
33719
33720fi
33721
33722case "$ntp_ok" in
33723 yes)
33724    ntp_libparse=yes
33725    ntp_refclock=yes
33726
33727$as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h
33728
33729    ;;
33730esac
33731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33732$as_echo "$ntp_ok" >&6; }
33733case "$ntp_ok$ntp_canparse" in
33734 yesno)
33735    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33736esac
33737
33738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
33739$as_echo_n "checking Meinberg clocks... " >&6; }
33740# Check whether --enable-MEINBERG was given.
33741if test "${enable_MEINBERG+set}" = set; then :
33742  enableval=$enable_MEINBERG; ntp_ok=$enableval
33743else
33744  ntp_ok=$ntp_eapc
33745
33746fi
33747
33748case "$ntp_ok" in
33749 yes)
33750    ntp_libparse=yes
33751    ntp_refclock=yes
33752
33753$as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h
33754
33755    ;;
33756esac
33757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33758$as_echo "$ntp_ok" >&6; }
33759case "$ntp_ok$ntp_canparse" in
33760 yesno)
33761    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33762esac
33763
33764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
33765$as_echo_n "checking DCF77 raw time code... " >&6; }
33766# Check whether --enable-RAWDCF was given.
33767if test "${enable_RAWDCF+set}" = set; then :
33768  enableval=$enable_RAWDCF; ntp_ok=$enableval
33769else
33770  ntp_ok=$ntp_eapc
33771
33772fi
33773
33774case "$ntp_ok" in
33775 yes)
33776    ntp_libparse=yes
33777    ntp_parseutil=yes
33778    ntp_refclock=yes
33779    ntp_rawdcf=yes
33780
33781$as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h
33782
33783    ;;
33784esac
33785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33786$as_echo "$ntp_ok" >&6; }
33787case "$ntp_ok$ntp_canparse" in
33788 yesno)
33789    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33790esac
33791
33792case "$ntp_rawdcf" in
33793 yes)
33794    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
33795$as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
33796if ${ntp_cv_rawdcf_parity+:} false; then :
33797  $as_echo_n "(cached) " >&6
33798else
33799
33800	    ans=no
33801	    case "$host" in
33802	     *-*-*linux*)
33803		ans=yes
33804		;;
33805	    esac
33806	    ntp_cv_rawdcf_parity=$ans
33807
33808
33809fi
33810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5
33811$as_echo "$ntp_cv_rawdcf_parity" >&6; }
33812    case "$ntp_cv_rawdcf_parity" in
33813     yes)
33814
33815$as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
33816 ;;
33817    esac
33818esac
33819
33820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
33821$as_echo_n "checking RCC 8000 clock... " >&6; }
33822# Check whether --enable-RCC8000 was given.
33823if test "${enable_RCC8000+set}" = set; then :
33824  enableval=$enable_RCC8000; ntp_ok=$enableval
33825else
33826  ntp_ok=$ntp_eapc
33827
33828fi
33829
33830case "$ntp_ok" in
33831 yes)
33832    ntp_libparse=yes
33833    ntp_refclock=yes
33834
33835$as_echo "#define CLOCK_RCC8000 1" >>confdefs.h
33836
33837    ;;
33838esac
33839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33840$as_echo "$ntp_ok" >&6; }
33841case "$ntp_ok$ntp_canparse" in
33842 yesno)
33843    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33844esac
33845
33846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
33847$as_echo_n "checking Schmid DCF77 clock... " >&6; }
33848# Check whether --enable-SCHMID was given.
33849if test "${enable_SCHMID+set}" = set; then :
33850  enableval=$enable_SCHMID; ntp_ok=$enableval
33851else
33852  ntp_ok=$ntp_eapc
33853
33854fi
33855
33856case "$ntp_ok" in
33857 yes)
33858    ntp_libparse=yes
33859    ntp_refclock=yes
33860
33861$as_echo "#define CLOCK_SCHMID 1" >>confdefs.h
33862
33863    ;;
33864esac
33865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33866$as_echo "$ntp_ok" >&6; }
33867case "$ntp_ok$ntp_canparse" in
33868 yesno)
33869    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33870esac
33871
33872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
33873$as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
33874# Check whether --enable-TRIMTAIP was given.
33875if test "${enable_TRIMTAIP+set}" = set; then :
33876  enableval=$enable_TRIMTAIP; ntp_ok=$enableval
33877else
33878  ntp_ok=$ntp_eapc
33879
33880fi
33881
33882case "$ntp_ok" in
33883 yes)
33884    ntp_libparse=yes
33885    ntp_refclock=yes
33886
33887$as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h
33888
33889    ;;
33890esac
33891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33892$as_echo "$ntp_ok" >&6; }
33893case "$ntp_ok$ntp_canparse" in
33894 yesno)
33895    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33896esac
33897
33898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
33899$as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
33900# Check whether --enable-TRIMTSIP was given.
33901if test "${enable_TRIMTSIP+set}" = set; then :
33902  enableval=$enable_TRIMTSIP; ntp_ok=$enableval
33903else
33904  ntp_ok=$ntp_eapc
33905
33906fi
33907
33908case "$ntp_ok" in
33909 yes)
33910    ntp_libparse=yes
33911    ntp_refclock=yes
33912
33913$as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h
33914
33915    ;;
33916esac
33917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33918$as_echo "$ntp_ok" >&6; }
33919case "$ntp_ok$ntp_canparse" in
33920 yesno)
33921    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33922esac
33923
33924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
33925$as_echo_n "checking WHARTON 400A Series clock... " >&6; }
33926# Check whether --enable-WHARTON was given.
33927if test "${enable_WHARTON+set}" = set; then :
33928  enableval=$enable_WHARTON; ntp_ok=$enableval
33929else
33930  ntp_ok=$ntp_eapc
33931
33932fi
33933
33934case "$ntp_ok" in
33935 yes)
33936    ntp_libparse=yes
33937    ntp_refclock=yes
33938
33939$as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h
33940
33941    ;;
33942esac
33943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33944$as_echo "$ntp_ok" >&6; }
33945case "$ntp_ok$ntp_canparse" in
33946 yesno)
33947    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33948esac
33949
33950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
33951$as_echo_n "checking VARITEXT clock... " >&6; }
33952# Check whether --enable-VARITEXT was given.
33953if test "${enable_VARITEXT+set}" = set; then :
33954  enableval=$enable_VARITEXT; ntp_ok=$enableval
33955else
33956  ntp_ok=$ntp_eapc
33957
33958fi
33959
33960case "$ntp_ok" in
33961 yes)
33962    ntp_libparse=yes
33963    ntp_refclock=yes
33964
33965$as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h
33966
33967    ;;
33968esac
33969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33970$as_echo "$ntp_ok" >&6; }
33971case "$ntp_ok$ntp_canparse" in
33972 yesno)
33973    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33974esac
33975
33976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
33977$as_echo_n "checking SEL240X clock... " >&6; }
33978# Check whether --enable-SEL240X was given.
33979if test "${enable_SEL240X+set}" = set; then :
33980  enableval=$enable_SEL240X; ntp_ok=$enableval
33981else
33982  ntp_ok=$ntp_eapc
33983fi
33984
33985if test "$ntp_ok" = "yes"; then
33986    ntp_libparse=yes
33987    ntp_refclock=yes
33988
33989$as_echo "#define CLOCK_SEL240X 1" >>confdefs.h
33990
33991fi
33992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33993$as_echo "$ntp_ok" >&6; }
33994case "$ntp_ok$ntp_canparse" in
33995 yesno)
33996    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33997    ;;
33998esac
33999
34000
34001
34002
34003
34004
34005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
34006$as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
34007ans=no
34008case "$ntp_libparse" in
34009 yes)
34010    ans=yes
34011
34012$as_echo "#define CLOCK_PARSE 1" >>confdefs.h
34013
34014    LIBPARSE=../libparse/libparse.a
34015    MAKE_LIBPARSE=libparse.a
34016    # HMS: check_y2k trips the 34 year problem now...
34017    false && MAKE_CHECK_Y2K=check_y2k
34018esac
34019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34020$as_echo "$ans" >&6; }
34021
34022
34023
34024
34025VER_SUFFIX=
34026
34027
34028
34029
34030# Check whether --with-crypto was given.
34031if test "${with_crypto+set}" = set; then :
34032  withval=$with_crypto;
34033fi
34034
34035
34036# Check whether --with-openssl-libdir was given.
34037if test "${with_openssl_libdir+set}" = set; then :
34038  withval=$with_openssl_libdir;
34039fi
34040
34041
34042# Check whether --with-openssl-incdir was given.
34043if test "${with_openssl_incdir+set}" = set; then :
34044  withval=$with_openssl_incdir;
34045fi
34046
34047
34048# Check whether --with-rpath was given.
34049if test "${with_rpath+set}" = set; then :
34050  withval=$with_rpath;
34051fi
34052
34053ntp_openssl=no
34054ntp_openssl_from_pkg_config=no
34055with_crypto=${with_crypto:-openssl,libcrypto}
34056case "$with_crypto" in
34057 yes)
34058    with_crypto=openssl,libcrypto
34059esac
34060case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
34061 no:*) ;;
34062 *:notempty:notgiven:notgiven)
34063    for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
34064	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
34065$as_echo_n "checking pkg-config for $pkg... " >&6; }
34066	if $PKG_CONFIG --exists $pkg ; then
34067	    CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
34068	    CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
34069	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
34070	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
34071	    LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
34072	    VER_SUFFIX=o
34073	    ntp_openssl=yes
34074	    ntp_openssl_from_pkg_config=yes
34075	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34076$as_echo "yes" >&6; }
34077
34078	    break
34079	fi
34080	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34081$as_echo "no" >&6; }
34082    done
34083esac
34084case "$with_crypto:$ntp_openssl" in
34085 no:*) ;;
34086 *:no)
34087    need_dash_r=
34088    need_dash_Wlrpath=
34089    case "${with_rpath-notgiven}" in
34090     yes)
34091	# Lame - what to do if we need -Wl... but not -R?
34092	need_dash_r=1
34093	;;
34094     notgiven)
34095	case "$host" in
34096	 *-*-linux*)
34097	    # This may really only be true for gcc
34098	    need_dash_Wlrpath=1
34099	    ;;
34100	 *-*-netbsd*)
34101	    need_dash_r=1
34102	    ;;
34103	 *-*-solaris*)
34104	    need_dash_r=1
34105	    ;;
34106	esac
34107	;;
34108    esac
34109
34110    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
34111$as_echo_n "checking for openssl library directory... " >&6; }
34112    with_openssl_libdir=${with_openssl_libdir-notgiven}
34113    case "$with_openssl_libdir" in
34114     notgiven)
34115	case "$build" in
34116	 $host)
34117	    with_openssl_libdir=default
34118	    ;;
34119	 *)
34120	    with_openssl_libdir=no
34121	    ;;
34122	esac
34123    esac
34124    case "$with_openssl_libdir" in
34125     default)
34126	# Look in:
34127	with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
34128	with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
34129	with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
34130    esac
34131    case "$with_openssl_libdir" in
34132     no)
34133	;;
34134     *) # Look for libcrypto.a and libssl.a:
34135	for i in $with_openssl_libdir no
34136	do
34137	    case "$host" in
34138	     *-*-darwin*)
34139		test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
34140		;;
34141	     *)
34142		test -f $i/libcrypto.so -a -f $i/libssl.so && break
34143		test -f $i/libcrypto.a -a -f $i/libssl.a && break
34144		;;
34145	    esac
34146	done
34147	openssl_libdir=$i
34148	;;
34149    esac
34150    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
34151$as_echo "$openssl_libdir" >&6; }
34152    case "$openssl_libdir" in
34153     no)
34154	openssl_libdir=
34155	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
34156$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
34157    esac
34158
34159    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
34160$as_echo_n "checking for openssl include directory... " >&6; }
34161    with_openssl_incdir=${with_openssl_incdir-notgiven}
34162    case "$with_openssl_incdir" in
34163     notgiven)
34164	# Look in:
34165	with_openssl_incdir="/usr/include /usr/sfw/include"
34166	with_openssl_incdir="$with_openssl_incdir /usr/local/include"
34167	with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
34168    esac
34169    case "$with_openssl_incdir" in
34170     no)
34171	;;
34172     *) # look for openssl/evp.h:
34173	for i in $with_openssl_incdir no
34174	do
34175	    test -f $i/openssl/evp.h && break
34176	done
34177	openssl_incdir=$i
34178	;;
34179    esac
34180    { i=; unset i;}
34181    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
34182$as_echo "$openssl_incdir" >&6; }
34183    case "$openssl_incdir" in
34184     no)
34185	openssl_incdir=
34186	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
34187$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
34188    esac
34189    if test -z "$openssl_libdir" -o -z "$openssl_incdir"
34190    then
34191	ntp_openssl=no
34192    else
34193	ntp_openssl=yes
34194	VER_SUFFIX=o
34195    fi
34196    case "$ntp_openssl" in
34197     yes)
34198	# We have OpenSSL inc/lib dirs - use them.
34199	case "$openssl_incdir" in
34200	 /usr/include)
34201	    ;;
34202	 *)
34203	    CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
34204	    ;;
34205	esac
34206	case "$openssl_libdir" in
34207	 /usr/lib)
34208	    ;;
34209	 *)
34210	    LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
34211	    case "$need_dash_r" in
34212	     1)
34213		LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
34214	    esac
34215	    case "$need_dash_Wlrpath" in
34216	     1)
34217		LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
34218	    esac
34219	    ;;
34220	esac
34221	LDADD_NTP="$LDADD_NTP -lcrypto"
34222    esac
34223esac
34224
34225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
34226$as_echo_n "checking if we will use crypto... " >&6; }
34227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
34228$as_echo "$ntp_openssl" >&6; }
34229
34230case "$ntp_openssl" in
34231 yes)
34232
34233$as_echo "#define OPENSSL /**/" >>confdefs.h
34234
34235    case "$VER_SUFFIX" in
34236     *o*) ;;
34237     *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
34238    esac
34239    ;;
34240esac
34241
34242NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
34243CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
34244NTPO_SAVED_LIBS="$LIBS"
34245
34246#
34247# check for linking with -lcrypto failure, and try -lcrypto -lz.
34248# Helps m68k-atari-mint
34249#
34250case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
34251 yes:no)
34252    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
34253    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
34254$as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
34255if ${ntp_cv_bare_lcrypto+:} false; then :
34256  $as_echo_n "(cached) " >&6
34257else
34258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34259/* end confdefs.h.  */
34260
34261		    #include "openssl/err.h"
34262		    #include "openssl/evp.h"
34263
34264int
34265main ()
34266{
34267
34268		    ERR_load_crypto_strings();
34269		    OpenSSL_add_all_algorithms();
34270
34271
34272  ;
34273  return 0;
34274}
34275_ACEOF
34276if ac_fn_c_try_link "$LINENO"; then :
34277  ntp_cv_bare_lcrypto=yes
34278else
34279  ntp_cv_bare_lcrypto=no
34280
34281fi
34282rm -f core conftest.err conftest.$ac_objext \
34283    conftest$ac_exeext conftest.$ac_ext
34284
34285fi
34286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
34287$as_echo "$ntp_cv_bare_lcrypto" >&6; }
34288    case "$ntp_cv_bare_lcrypto" in
34289     no)
34290	LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
34291	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
34292$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
34293if ${ntp_cv_lcrypto_lz+:} false; then :
34294  $as_echo_n "(cached) " >&6
34295else
34296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34297/* end confdefs.h.  */
34298
34299			#include "openssl/err.h"
34300			#include "openssl/evp.h"
34301
34302int
34303main ()
34304{
34305
34306			ERR_load_crypto_strings();
34307			OpenSSL_add_all_algorithms();
34308
34309
34310  ;
34311  return 0;
34312}
34313_ACEOF
34314if ac_fn_c_try_link "$LINENO"; then :
34315  ntp_cv_lcrypto_lz=yes
34316else
34317  ntp_cv_lcrypto_lz=no
34318
34319fi
34320rm -f core conftest.err conftest.$ac_objext \
34321    conftest$ac_exeext conftest.$ac_ext
34322
34323fi
34324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
34325$as_echo "$ntp_cv_lcrypto_lz" >&6; }
34326	case "$ntp_cv_lcrypto_lz" in
34327	 yes)
34328	     LDADD_NTP="$LDADD_NTP -lz"
34329	esac
34330    esac
34331esac
34332
34333#
34334# Older OpenSSL headers have a number of callback prototypes inside
34335# other function prototypes which trigger copious warnings with gcc's
34336# -Wstrict-prototypes, which is included in -Wall.
34337#
34338# An example:
34339#
34340# int i2d_RSA_NET(const RSA *a, unsigned char **pp,
34341#		  int (*cb)(), int sgckey);
34342#		  ^^^^^^^^^^^
34343#
34344#
34345#
34346openssl_triggers_warnings=unknown
34347NTPO_SAVED_CFLAGS="$CFLAGS"
34348
34349case "$ntp_openssl:$GCC" in
34350 yes:yes)
34351    CFLAGS="$CFLAGS -Werror"
34352    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34353/* end confdefs.h.  */
34354
34355
34356int
34357main ()
34358{
34359
34360		/* see if -Werror breaks gcc */
34361
34362
34363  ;
34364  return 0;
34365}
34366_ACEOF
34367if ac_fn_c_try_compile "$LINENO"; then :
34368  gcc_handles_Werror=yes
34369else
34370  gcc_handles_Werror=no
34371
34372fi
34373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34374    case "$gcc_handles_Werror" in
34375     no)
34376	# if this gcc doesn't do -Werror go ahead and use
34377	# -Wstrict-prototypes.
34378	openssl_triggers_warnings=yes
34379	;;
34380     yes)
34381	CFLAGS="$CFLAGS -Wstrict-prototypes"
34382	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34383/* end confdefs.h.  */
34384
34385		    #include "openssl/asn1_mac.h"
34386		    #include "openssl/bn.h"
34387		    #include "openssl/err.h"
34388		    #include "openssl/evp.h"
34389		    #include "openssl/pem.h"
34390		    #include "openssl/rand.h"
34391		    #include "openssl/x509v3.h"
34392
34393int
34394main ()
34395{
34396
34397		    /* empty body */
34398
34399
34400  ;
34401  return 0;
34402}
34403_ACEOF
34404if ac_fn_c_try_compile "$LINENO"; then :
34405  openssl_triggers_warnings=no
34406else
34407  openssl_triggers_warnings=yes
34408
34409fi
34410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34411    esac
34412    case "$openssl_triggers_warnings" in
34413     yes)
34414	CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
34415	;;
34416     *)
34417	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
34418    esac
34419    ;;
34420 no:yes)
34421    # gcc without OpenSSL
34422    CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
34423esac
34424
34425# Because we don't want -Werror for the EVP_MD_do_all_sorted check
34426CFLAGS="$NTPO_SAVED_CFLAGS"
34427
34428case "$ntp_openssl" in
34429 yes)
34430    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
34431    for ac_func in EVP_MD_do_all_sorted
34432do :
34433  ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
34434if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
34435  cat >>confdefs.h <<_ACEOF
34436#define HAVE_EVP_MD_DO_ALL_SORTED 1
34437_ACEOF
34438
34439fi
34440done
34441
34442    ;;
34443esac
34444
34445CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
34446LIBS="$NTPO_SAVED_LIBS"
34447{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
34448{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
34449{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
34450{ openssl_triggers_warnings=; unset openssl_triggers_warnings;}
34451{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
34452
34453
34454
34455
34456
34457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5
34458$as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; }
34459# Check whether --enable-openssl-random was given.
34460if test "${enable_openssl_random+set}" = set; then :
34461  enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval
34462else
34463  ntp_use_openssl_random=yes
34464
34465fi
34466
34467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
34468$as_echo "$ntp_use_openssl_random" >&6; }
34469
34470# The following might need extra libraries
34471NTPO_SAVED_LIBS="$LIBS"
34472LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
34473for ac_func in RAND_bytes RAND_poll
34474do :
34475  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34476ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
34477if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
34478  cat >>confdefs.h <<_ACEOF
34479#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34480_ACEOF
34481
34482fi
34483done
34484
34485LIBS="$NTPO_SAVED_LIBS"
34486case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
34487 yesyesyes)
34488
34489$as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h
34490
34491     ;;
34492 *) ntp_use_openssl_random=no ;;
34493esac
34494
34495
34496
34497# if we are using OpenSSL (--with-crypto), by default Autokey is enabled
34498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
34499$as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; }
34500# Check whether --enable-autokey was given.
34501if test "${enable_autokey+set}" = set; then :
34502  enableval=$enable_autokey; ntp_autokey=$enableval
34503else
34504  ntp_autokey=$ntp_openssl
34505
34506fi
34507
34508case "$ntp_autokey" in
34509 no)
34510    ;;
34511 *)
34512    case "$ntp_openssl" in
34513     no)
34514	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
34515$as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
34516	ntp_autokey=no
34517	;;
34518     *)
34519
34520$as_echo "#define AUTOKEY 1" >>confdefs.h
34521
34522	ntp_autokey=yes
34523	;;
34524    esac
34525    ;;
34526esac
34527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
34528$as_echo "$ntp_autokey" >&6; }
34529
34530
34531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
34532$as_echo_n "checking if we want to run check-layout... " >&6; }
34533case "$cross_compiling$PATH_PERL" in
34534 no/*)
34535    MAKE_CHECK_LAYOUT=check-layout
34536    ans=yes
34537    ;;
34538 *)
34539    ans=no
34540    ;;
34541esac
34542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34543$as_echo "$ans" >&6; }
34544
34545
34546
34547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
34548$as_echo_n "checking if we can make dcf parse utilities... " >&6; }
34549ans=no
34550case "$ntp_parseutil" in
34551 yes)
34552    case "$host" in
34553     *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
34554	ans="dcfd testdcf"
34555	DCFD=dcfd
34556	TESTDCF=testdcf
34557    esac
34558    ;;
34559esac
34560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34561$as_echo "$ans" >&6; }
34562
34563
34564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
34565$as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
34566ans=no
34567case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
34568 yesyes)
34569    case "$host" in
34570     sparc-*-sunos4*)
34571        case "$ntp_cv_var_kernel_pll" in
34572	yes)
34573
34574$as_echo "#define PPS_SYNC 1" >>confdefs.h
34575
34576	    ;;
34577	esac
34578	ans=parsestreams
34579	MAKE_PARSEKMODULE=parsestreams.loadable_module.o
34580	;;
34581     sparc-*-solaris2*)
34582	ans=parsesolaris
34583	MAKE_PARSEKMODULE=parse
34584	for ac_header in strings.h
34585do :
34586  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
34587if test "x$ac_cv_header_strings_h" = xyes; then :
34588  cat >>confdefs.h <<_ACEOF
34589#define HAVE_STRINGS_H 1
34590_ACEOF
34591
34592fi
34593
34594done
34595
34596	;;
34597    esac
34598    ;;
34599esac
34600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34601$as_echo "$ans" >&6; }
34602
34603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
34604$as_echo_n "checking if we need basic refclock support... " >&6; }
34605case "$ntp_refclock" in
34606 yes)
34607
34608$as_echo "#define REFCLOCK 1" >>confdefs.h
34609
34610    ;;
34611esac
34612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
34613$as_echo "$ntp_refclock" >&6; }
34614
34615PROPDELAY=propdelay
34616
34617
34618
34619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
34620$as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
34621case "$host" in
34622 *-*-hpux[56789]*)
34623    ans=yes
34624    ;;
34625 *) ans=no
34626    ;;
34627esac
34628case "$ans" in
34629 yes)
34630    MAKE_ADJTIMED=adjtimed
34631
34632$as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
34633
34634    ;;
34635 *) ADJTIMED_DB=
34636    ADJTIMED_DL=
34637    ADJTIMED_DS=
34638    ADJTIMED_MS=
34639    ;;
34640esac
34641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34642$as_echo "$ans" >&6; }
34643
34644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
34645$as_echo_n "checking if we want QNX adjtime support... " >&6; }
34646case "$host" in
34647 *-*-qnx*)
34648    ans=yes
34649    ;;
34650 *) ans=no
34651    ;;
34652esac
34653case "$ans" in
34654 yes)
34655
34656$as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h
34657
34658    ;;
34659esac
34660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34661$as_echo "$ans" >&6; }
34662
34663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
34664$as_echo_n "checking if we can read kmem... " >&6; }
34665
34666#  the default is to enable it if the system has the capability
34667
34668case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
34669 *yes*)
34670    ans=yes
34671    ;;
34672 *) ans=no
34673    ;;
34674esac
34675
34676case "$host" in
34677 *-*-domainos)	# Won't be found...
34678    ans=no
34679    ;;
34680 *-*-hpux*)
34681    #ans=no
34682    ;;
34683 *-*-irix[456]*)
34684    ans=no
34685    ;;
34686 *-*-*linux*)
34687    ans=no
34688    ;;
34689 *-*-winnt3.5)
34690    ans=no
34691    ;;
34692 *-*-unicosmp*)
34693    ans=no
34694    ;;
34695esac
34696
34697# --enable-kmem / --disable-kmem controls if present
34698# Check whether --enable-kmem was given.
34699if test "${enable_kmem+set}" = set; then :
34700  enableval=$enable_kmem; ans=$enableval
34701
34702fi
34703
34704
34705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34706$as_echo "$ans" >&6; }
34707
34708case "$ans" in
34709 yes)
34710    can_kmem=yes
34711    ;;
34712 *)
34713    can_kmem=no
34714
34715$as_echo "#define NOKMEM 1" >>confdefs.h
34716
34717esac
34718
34719
34720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
34721$as_echo_n "checking if adjtime is accurate... " >&6; }
34722
34723# target-dependent defaults
34724
34725case "$host" in
34726 i386-sequent-ptx*)
34727    ans=no
34728    ;;
34729 i386-unknown-osf1*)
34730    ans=yes
34731    ;;
34732 mips-sgi-irix[456]*)
34733    ans=yes
34734    ;;
34735 *-fujitsu-uxp*)
34736    ans=yes
34737    ;;
34738 *-ibm-aix[4-9]*)
34739    # XXX only verified thru AIX6.
34740    ans=yes
34741    ;;
34742 *-*-*linux*)
34743    ans=yes
34744    ;;
34745 *-*-solaris2.[01])
34746    ans=no
34747    ;;
34748 *-*-solaris2*)
34749    ans=yes
34750    ;;
34751 *-*-unicosmp*)
34752    ans=yes
34753    ;;
34754 *) ans=no
34755    ;;
34756esac
34757
34758# --enable-accurate-adjtime / --disable-accurate-adjtime
34759# override the default
34760# Check whether --enable-accurate-adjtime was given.
34761if test "${enable_accurate_adjtime+set}" = set; then :
34762  enableval=$enable_accurate_adjtime; ans=$enableval
34763
34764fi
34765
34766
34767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34768$as_echo "$ans" >&6; }
34769
34770case "$ans" in
34771 yes)
34772
34773$as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
34774
34775    adjtime_is_accurate=yes
34776    ;;
34777 *)
34778    adjtime_is_accurate=no
34779    ;;
34780esac
34781
34782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
34783$as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
34784if ${ntp_cv_nlist_tick+:} false; then :
34785  $as_echo_n "(cached) " >&6
34786else
34787
34788	ans=_tick
34789	case "$host" in
34790	 m68*-hp-hpux*) # HP9000/300?
34791	    ans=_old_tick
34792	    ;;
34793	 *-apple-aux[23]*)
34794	    ans=tick
34795	    ;;
34796	 *-hp-hpux*)
34797	    ans=old_tick
34798	    ;;
34799	 *-ibm-aix[3-9]*)
34800	    # XXX only verified thru AIX6.
34801	    ans=no
34802	    ;;
34803	 *-*-mpeix*)
34804	    ans=no
34805	    ;;
34806	 *-*-ptx*)
34807	    ans=tick
34808	    ;;
34809	 *-*-sco3.2v[45]*)
34810	    ans=no
34811	    ;;
34812	 *-*-solaris2*)
34813	    ans=nsec_per_tick
34814	    ;;
34815	 *-*-sysv4*)
34816	    ans=tick
34817	    ;;
34818	esac
34819	ntp_cv_nlist_tick=$ans
34820
34821
34822fi
34823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5
34824$as_echo "$ntp_cv_nlist_tick" >&6; }
34825case "$ntp_cv_nlist_tick" in
34826 ''|no)
34827    ;;	# HMS: I think we can only get 'no' here...
34828 *)
34829
34830cat >>confdefs.h <<_ACEOF
34831#define K_TICK_NAME "$ntp_cv_nlist_tick"
34832_ACEOF
34833
34834esac
34835
34836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
34837$as_echo_n "checking for the units of 'tick'... " >&6; }
34838if ${ntp_cv_tick_nano+:} false; then :
34839  $as_echo_n "(cached) " >&6
34840else
34841
34842	ans=usec
34843	case "$host" in
34844	 *-*-solaris2*)
34845	    ans=nsec
34846	    ;;
34847	esac
34848	ntp_cv_tick_nano=$ans
34849
34850
34851fi
34852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5
34853$as_echo "$ntp_cv_tick_nano" >&6; }
34854case "$ntp_cv_tick_nano" in
34855 nsec)
34856
34857$as_echo "#define TICK_NANO 1" >>confdefs.h
34858
34859esac
34860
34861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
34862$as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
34863if ${ntp_cv_nlist_tickadj+:} false; then :
34864  $as_echo_n "(cached) " >&6
34865else
34866
34867	ans=_tickadj
34868	case "$host" in
34869	 m68*-hp-hpux*) # HP9000/300?
34870	    ans=_tickadj
34871	    ;;
34872	 *-apple-aux[23]*)
34873	    ans=tickadj
34874	    ;;
34875	 *-hp-hpux10*)
34876	    ans=no
34877	    ;;
34878	 *-hp-hpux9*)
34879	    ans=no
34880	    ;;
34881	 *-hp-hpux*)
34882	    ans=tickadj
34883	    ;;
34884	 *-*-aix*)
34885	    ans=tickadj
34886	    ;;
34887	 *-*-mpeix*)
34888	    ans=no
34889	    ;;
34890	 *-*-ptx*)
34891	    ans=tickadj
34892	    ;;
34893	 *-*-sco3.2v4*)
34894	    ans=no
34895	    ;;
34896	 *-*-sco3.2v5.0*)
34897	    ans=clock_drift
34898	    ;;
34899	 *-*-solaris2*)
34900	    ans=no	# hrestime_adj
34901	    ;;
34902	 *-*-sysv4*)
34903	    ans=tickadj
34904	    ;;
34905	esac
34906	ntp_cv_nlist_tickadj=$ans
34907
34908
34909fi
34910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5
34911$as_echo "$ntp_cv_nlist_tickadj" >&6; }
34912case "$ntp_cv_nlist_tickadj" in
34913 ''|no)
34914    ;;	# HMS: I think we can only get 'no' here...
34915 *)
34916
34917cat >>confdefs.h <<_ACEOF
34918#define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj"
34919_ACEOF
34920
34921esac
34922
34923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
34924$as_echo_n "checking for the units of 'tickadj'... " >&6; }
34925if ${ntp_cv_tickadj_nano+:} false; then :
34926  $as_echo_n "(cached) " >&6
34927else
34928
34929	ans=usec
34930	case "$host" in
34931	 *-*-solaris2*)
34932	    ans=nsec
34933	    ;;
34934	esac
34935	ntp_cv_tickadj_nano=$ans
34936
34937
34938fi
34939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5
34940$as_echo "$ntp_cv_tickadj_nano" >&6; }
34941case "$ntp_cv_tickadj_nano" in
34942 nsec)
34943
34944$as_echo "#define TICKADJ_NANO 1" >>confdefs.h
34945
34946esac
34947
34948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
34949$as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
34950if ${ntp_cv_nlist_dosynctodr+:} false; then :
34951  $as_echo_n "(cached) " >&6
34952else
34953
34954	case "$host" in
34955	 *-apple-aux[23]*)
34956	    ans=no
34957	    ;;
34958	 *-sni-sysv*)
34959	    ans=dosynctodr
34960	    ;;
34961	 *-stratus-vos)
34962	    ans=no
34963	    ;;
34964	 *-*-aix*)
34965	    ans=dosynctodr
34966	    ;;
34967	 *-*-hpux*)
34968	    ans=no
34969	    ;;
34970	 *-*-mpeix*)
34971	    ans=no
34972	    ;;
34973	 *-*-nextstep*)
34974	    ans=_dosynctodr
34975	    ;;
34976	 *-*-ptx*)
34977	    ans=doresettodr
34978	    ;;
34979	 *-*-sco3.2v4*)
34980	    ans=no
34981	    ;;
34982	 *-*-sco3.2v5*)
34983	    ans=track_rtc
34984	    ;;
34985	 *-*-solaris2*)
34986	    ans=dosynctodr
34987	    ;;
34988	 *-*-sysv4*)
34989	    ans=doresettodr
34990	    ;;
34991	 *)
34992	    ans=_dosynctodr
34993	    ;;
34994	esac
34995	ntp_cv_nlist_dosynctodr=$ans
34996
34997
34998fi
34999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5
35000$as_echo "$ntp_cv_nlist_dosynctodr" >&6; }
35001case "$ntp_cv_nlist_dosynctodr" in
35002 no)
35003    ;;
35004 *)
35005
35006cat >>confdefs.h <<_ACEOF
35007#define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr"
35008_ACEOF
35009
35010    ;;
35011esac
35012
35013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
35014$as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
35015if ${ntp_cv_nlist_noprintf+:} false; then :
35016  $as_echo_n "(cached) " >&6
35017else
35018
35019	case "$host" in
35020	 *-apple-aux[23]*)
35021	    ans=no
35022	    ;;
35023	 *-sni-sysv*)
35024	    ans=noprintf
35025	    ;;
35026	 *-stratus-vos)
35027	    ans=no
35028	    ;;
35029	 *-*-aix*)
35030	    ans=noprintf
35031	    ;;
35032	 *-*-hpux*)
35033	    ans=no
35034	    ;;
35035	 *-*-mpeix*)
35036	    ans=no
35037	    ;;
35038	 *-*-ptx*)
35039	    ans=noprintf
35040	    ;;
35041	 *-*-nextstep*)
35042	    ans=_noprintf
35043	    ;;
35044	 *-*-solaris2*)
35045	    ans=noprintf
35046	    ;;
35047	 *-*-sysv4*)
35048	    ans=noprintf
35049	    ;;
35050	 *)
35051	    ans=_noprintf
35052	    ;;
35053	esac
35054	ntp_cv_nlist_noprintf=$ans
35055
35056
35057fi
35058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5
35059$as_echo "$ntp_cv_nlist_noprintf" >&6; }
35060case "$ntp_cv_nlist_noprintf" in
35061 no)
35062    ;;
35063 *)
35064
35065cat >>confdefs.h <<_ACEOF
35066#define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf"
35067_ACEOF
35068
35069    ;;
35070esac
35071
35072
35073
35074
35075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
35076$as_echo_n "checking for a default value for 'tick'... " >&6; }
35077
35078# target-dependent default for tick
35079
35080case "$host" in
35081 *-*-pc-cygwin*)
35082    as_fn_error $? "tick needs work for cygwin" "$LINENO" 5
35083    ;;
35084 *-univel-sysv*)
35085    ans=10000
35086    ;;
35087 *-*-irix*)
35088    ans=10000
35089    ;;
35090 *-*-*linux*)
35091    ans=txc.tick
35092    ;;
35093 *-*-mpeix*)
35094    ans=no
35095    ;;
35096 *-*-winnt3.5)
35097    ans='(every / 10)'
35098    ;;
35099 *-*-unicosmp*)
35100    ans=10000
35101    ;;
35102 *)
35103    ans='1000000L/hz'
35104    ;;
35105esac
35106
35107# Check whether --enable-tick was given.
35108if test "${enable_tick+set}" = set; then :
35109  enableval=$enable_tick; ans=$enableval
35110
35111fi
35112
35113
35114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35115$as_echo "$ans" >&6; }
35116
35117case "$ans" in
35118 ''|no)
35119    ;;	# HMS: I think we can only get 'no' here...
35120 *)
35121
35122cat >>confdefs.h <<_ACEOF
35123#define PRESET_TICK $ans
35124_ACEOF
35125
35126esac
35127
35128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
35129$as_echo_n "checking for a default value for 'tickadj'... " >&6; }
35130
35131# target-specific default
35132ans='500/hz'
35133case "$host" in
35134 *-fujitsu-uxp*)
35135    case "$adjtime_is_accurate" in
35136     yes)
35137	ans='tick/16'
35138    esac
35139    ;;
35140 *-univel-sysv*)
35141    ans=80
35142    ;;
35143 *-*-aix*)
35144    case "$can_kmem" in
35145     no)
35146	ans=1000
35147	;;
35148    esac
35149    ;;
35150 *-*-domainos)	# Skippy: won't be found...
35151    case "$can_kmem" in
35152     no)
35153	ans=668
35154	;;
35155    esac
35156    ;;
35157 *-*-hpux*)
35158    case "$adjtime_is_accurate" in
35159     yes)
35160	ans='tick/16'
35161	;;
35162    esac
35163    ;;
35164 *-*-irix*)
35165    ans=150
35166    ;;
35167 *-*-mpeix*)
35168    ans=no
35169    ;;
35170 *-*-sco3.2v5.0*)
35171    ans=10000L/hz
35172    ;;
35173 *-*-winnt3.5)
35174    ans=50
35175    ;;
35176 *-*-unicosmp*)
35177    ans=150
35178    ;;
35179esac
35180
35181# Check whether --enable-tickadj was given.
35182if test "${enable_tickadj+set}" = set; then :
35183  enableval=$enable_tickadj; ans=$enableval
35184
35185fi
35186
35187
35188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35189$as_echo "$ans" >&6; }
35190
35191default_tickadj=$ans
35192
35193case "$default_tickadj" in
35194 ''|no)
35195    ;;	# HMS: I think we can only get 'no' here...
35196 *)
35197
35198cat >>confdefs.h <<_ACEOF
35199#define PRESET_TICKADJ $default_tickadj
35200_ACEOF
35201 ;;
35202esac
35203
35204# Newer versions of ReliantUNIX round adjtime() values down to
35205# 1/100s (system tick). Sigh ...
35206# Unfortunately, there is no easy way to know if particular release
35207# has this "feature" or any obvious way to test for it.
35208case "$host" in
35209 mips-sni-sysv4*)
35210
35211$as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
35212
35213esac
35214
35215case "$host" in
35216 *-*-sco3.2v5*)
35217
35218$as_echo "#define SCO5_CLOCK 1" >>confdefs.h
35219
35220esac
35221
35222ntp_cv_make_tickadj=yes
35223case "$can_kmem$ac_cv_var_tick$default_tickadj" in
35224 nonono)	# Don't read KMEM, no presets.  Bogus.
35225    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&5
35226$as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&2;}
35227    ntp_cv_make_tickadj=no
35228    ;;
35229 nono*)		# Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
35230    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&5
35231$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&2;}
35232    ntp_cv_make_tickadj=no
35233    ;;
35234 no*no)		# Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Bogus.
35235    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&5
35236$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&2;}
35237    ntp_cv_make_tickadj=no
35238    ;;
35239 no*)		# Don't read KMEM, PRESET_TICK and PRESET_TICKADJ.  Cool.
35240    ;;
35241 yesnono)	# Read KMEM, no presets.  Cool.
35242    ;;
35243 yesno*)	# Read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
35244    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&5
35245$as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&2;}
35246    ;;
35247 yes*no)	# Read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Cool.
35248    ;;
35249 yes*)		# READ KMEM, PRESET_TICK and PRESET_TICKADJ.
35250    ;;
35251 *)		# Generally bogus.
35252    as_fn_error $? "This shouldn't happen." "$LINENO" 5
35253    ;;
35254esac
35255
35256
35257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
35258$as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
35259if ${ac_cv_make_ntptime+:} false; then :
35260  $as_echo_n "(cached) " >&6
35261else
35262  case "$host" in
35263 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in
35264     yesyes)
35265	ans=yes
35266	;;
35267     *)
35268	ans=no
35269	;;
35270    esac
35271    ;;
35272esac
35273ac_cv_make_ntptime=$ans
35274fi
35275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
35276$as_echo "$ac_cv_make_ntptime" >&6; }
35277case "$ac_cv_make_ntptime" in
35278 yes)
35279    MAKE_NTPTIME=ntptime
35280    ;;
35281 *)
35282    NTPTIME_DB=
35283    NTPTIME_DL=
35284    NTPTIME_DS=
35285    NTPTIME_MS=
35286    ;;
35287esac
35288
35289
35290case "$host" in
35291 mips-sni-sysv4*)
35292    # tickadj is pretty useless on newer versions of ReliantUNIX
35293    # Do not bother
35294    ntp_cv_make_tickadj=no
35295    ;;
35296 *-*-irix*)
35297    ntp_cv_make_tickadj=no
35298    ;;
35299 *-*-solaris2*)
35300    # DLM says tickadj is a no-no starting with solaris2.5
35301    case "$host" in
35302     *-*-solaris2.1[0-9]*)
35303	ntp_cv_make_tickadj=no
35304	;;
35305     *-*-solaris2.[0-4]*) ;;
35306     *) ntp_cv_make_tickadj=no ;;
35307    esac
35308    ;;
35309 *-*-unicosmp*)
35310    ntp_cv_make_tickadj=no
35311    ;;
35312esac
35313
35314#
35315# Despite all the above, we always make tickadj.  Setting
35316# ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false
35317# report that the configuration variable was cached.  It may
35318# be better to simply remove the hunk above, I did not want
35319# to remove it if there is hope it will be used again.
35320#
35321{ ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;}
35322
35323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
35324$as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
35325if ${ntp_cv_make_tickadj+:} false; then :
35326  $as_echo_n "(cached) " >&6
35327else
35328  ntp_cv_make_tickadj=yes
35329
35330fi
35331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5
35332$as_echo "$ntp_cv_make_tickadj" >&6; }
35333case "$ntp_cv_make_tickadj" in
35334 yes)
35335    MAKE_TICKADJ=tickadj
35336    ;;
35337 *)
35338    CALC_TICKADJ_DB=
35339    CALC_TICKADJ_DL=
35340    CALC_TICKADJ_DS=
35341    CALC_TICKADJ_MS=
35342    TICKADJ_DB=
35343    TICKADJ_DL=
35344    TICKADJ_DS=
35345    TICKADJ_MS=
35346    ;;
35347esac
35348
35349
35350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
35351$as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
35352if ${ntp_cv_make_timetrim+:} false; then :
35353  $as_echo_n "(cached) " >&6
35354else
35355
35356	case "$host" in
35357	 *-*-irix*)
35358	    ntp_cv_make_timetrim=yes
35359	    ;;
35360	 *-*-unicosmp*)
35361	    ntp_cv_make_timetrim=yes
35362	    ;;
35363	 *)
35364	    ntp_cv_make_timetrim=no
35365	    ;;
35366	esac
35367
35368
35369fi
35370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5
35371$as_echo "$ntp_cv_make_timetrim" >&6; }
35372case "$ntp_cv_make_timetrim" in
35373 yes)
35374    MAKE_TIMETRIM=timetrim
35375    ;;
35376 *) TIMETRIM_DB=
35377    TIMETRIM_DL=
35378    TIMETRIM_DS=
35379    TIMETRIM_MS=
35380    ;;
35381esac
35382
35383
35384
35385
35386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
35387$as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
35388# Check whether --enable-simulator was given.
35389if test "${enable_simulator+set}" = set; then :
35390  enableval=$enable_simulator; ans=$enableval
35391else
35392  ans=no
35393
35394fi
35395
35396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35397$as_echo "$ans" >&6; }
35398case "$ans" in
35399 yes)
35400    MAKE_NTPDSIM=ntpdsim
35401    MAKE_LIBNTPSIM=libntpsim.a
35402    ;;
35403 *)
35404    NTPDSIM_DB=
35405    NTPDSIM_DL=
35406    NTPDSIM_DS=
35407    NTPDSIM_MS=
35408    ;;
35409esac
35410
35411case "$build" in
35412 $host)
35413    ;;
35414 *) case "$host" in
35415     *-*-vxworks*)
35416	LDFLAGS="$LDFLAGS -r"
35417	;;
35418    esac
35419    ;;
35420esac
35421
35422
35423
35424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
35425$as_echo_n "checking if sntp will be built... " >&6; }
35426
35427# Check whether --with-sntp was given.
35428if test "${with_sntp+set}" = set; then :
35429  withval=$with_sntp;
35430else
35431  with_sntp="${withsntp=yes}"
35432
35433fi
35434
35435case "$with_sntp" in
35436 no)
35437    SNTP=
35438    ;;
35439 *)
35440    SNTP=sntp
35441    ;;
35442esac
35443
35444 if test -n "$SNTP"; then
35445  BUILD_SNTP_TRUE=
35446  BUILD_SNTP_FALSE='#'
35447else
35448  BUILD_SNTP_TRUE='#'
35449  BUILD_SNTP_FALSE=
35450fi
35451
35452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
35453$as_echo "$with_sntp" >&6; }
35454
35455
35456
35457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
35458$as_echo_n "checking if we want to build ntpsnmpd... " >&6; }
35459
35460# Check whether --with-ntpsnmpd was given.
35461if test "${with_ntpsnmpd+set}" = set; then :
35462  withval=$with_ntpsnmpd; ans=$withval
35463else
35464
35465	case "$PATH_NET_SNMP_CONFIG" in
35466	 /*)	ans=yes ;;
35467	 *)	ans=no  ;;
35468	esac
35469
35470
35471fi
35472
35473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35474$as_echo "$ans" >&6; }
35475case "$ans" in
35476 yes)
35477    case "$PATH_NET_SNMP_CONFIG" in
35478     /*)
35479	SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs`
35480	# Bug 2815.  This is a bit of a hack, but it works...
35481	case "$ntp_cv_net_snmp_version" in
35482	 5.3*)	SNMP_LIBS=`echo $SNMP_LIBS | $SED -e 's/-lnetsnmpagent/-lnetsnmpagent -lnetsnmpmibs/'`
35483		;;
35484	esac
35485
35486	# HMS: we really want to separate CPPFLAGS and CFLAGS
35487	foo=`$PATH_NET_SNMP_CONFIG --cflags`
35488	SNMP_CPPFLAGS=
35489	SNMP_CFLAGS=
35490	for i in $foo; do
35491	    case "$i" in
35492	     -D*|-U*|-I*)
35493		SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i"
35494		;;
35495	    *)	SNMP_CFLAGS="$SNMP_CFLAGS $i"
35496		;;
35497	    esac
35498	done
35499
35500
35501
35502	save_CFLAGS=$CFLAGS
35503	save_CPPFLAGS=$CPPFLAGS
35504	save_LIBS=$LIBS
35505	CFLAGS=$SNMP_CFLAGS
35506	CPPFLAGS=$SNMP_CPPFLAGS
35507
35508	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"
35509if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
35510  MAKE_NTPSNMPD=ntpsnmpd
35511else
35512  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
35513$as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}
35514
35515fi
35516
35517
35518
35519	# Do this last, as we're messing up LIBS.
35520	# check -lnetsnmp for netsnmp_daemonize
35521	LIBS=`$PATH_NET_SNMP_CONFIG --libs`
35522	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
35523$as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
35524if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then :
35525  $as_echo_n "(cached) " >&6
35526else
35527  ac_check_lib_save_LIBS=$LIBS
35528LIBS="-lnetsnmp  $LIBS"
35529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35530/* end confdefs.h.  */
35531
35532/* Override any GCC internal prototype to avoid an error.
35533   Use char because int might match the return type of a GCC
35534   builtin and then its argument prototype would still apply.  */
35535#ifdef __cplusplus
35536extern "C"
35537#endif
35538char netsnmp_daemonize ();
35539int
35540main ()
35541{
35542return netsnmp_daemonize ();
35543  ;
35544  return 0;
35545}
35546_ACEOF
35547if ac_fn_c_try_link "$LINENO"; then :
35548  ac_cv_lib_netsnmp_netsnmp_daemonize=yes
35549else
35550  ac_cv_lib_netsnmp_netsnmp_daemonize=no
35551fi
35552rm -f core conftest.err conftest.$ac_objext \
35553    conftest$ac_exeext conftest.$ac_ext
35554LIBS=$ac_check_lib_save_LIBS
35555fi
35556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
35557$as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
35558if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then :
35559  ans=yes
35560else
35561  ans=no
35562
35563fi
35564
35565	case "$ans" in
35566	 no)
35567
35568$as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h
35569
35570	esac
35571
35572	CFLAGS=$save_CFLAGS
35573	{ save_CFLAGS=; unset save_CFLAGS;}
35574	CPPFLAGS=$save_CPPFLAGS
35575	{ save_CPPFLAGS=; unset save_CPPFLAGS;}
35576	LIBS=$save_LIBS
35577	{ save_LIBS=; unset save_LIBS;}
35578	;;
35579     *)
35580	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5
35581$as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;}
35582	;;
35583    esac
35584    ;;
35585esac
35586
35587
35588case "$MAKE_NTPSNMPD" in
35589 '')
35590    NTPSNMPD_DB=
35591    NTPSNMPD_DL=
35592    NTPSNMPD_DS=
35593    NTPSNMPD_MS=
35594    ;;
35595esac
35596
35597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
35598$as_echo_n "checking if we should always slew the time... " >&6; }
35599
35600# target-specific defaults
35601
35602case "$host" in
35603 *-apple-aux[23]*)
35604    ans=yes
35605    ;;
35606 *-*-bsdi[012]*)
35607    ans=no
35608    ;;
35609 *-*-bsdi*)
35610    ans=yes
35611    ;;
35612 *-*-openvms*)	# HMS: won't be found
35613    ans=yes
35614    ;;
35615 *) ans=no
35616    ;;
35617esac
35618
35619# --enable-slew-always / --disable-slew-always overrides default
35620
35621# Check whether --enable-slew-always was given.
35622if test "${enable_slew_always+set}" = set; then :
35623  enableval=$enable_slew_always; ans=$enableval
35624
35625fi
35626
35627
35628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35629$as_echo "$ans" >&6; }
35630
35631case "$ans" in
35632 yes)
35633
35634$as_echo "#define SLEWALWAYS 1" >>confdefs.h
35635
35636esac
35637
35638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
35639$as_echo_n "checking if we should step and slew the time... " >&6; }
35640
35641case "$host" in
35642 *-sni-sysv*)
35643    ans=yes
35644    ;;
35645 *-stratus-vos)
35646    ans=no
35647    ;;
35648 *-univel-sysv*)
35649    ans=no
35650    ;;
35651 *-*-ptx*)
35652    ans=yes
35653    ;;
35654 *-*-solaris2.1[0-9]*)
35655    ans=no
35656    ;;
35657 *-*-solaris2.[012]*)
35658    ans=yes
35659    ;;
35660 *-*-sysv4*)	# HMS: Does this catch Fujitsu UXP?
35661    ans=yes
35662    ;;
35663 *) ans=no
35664    ;;
35665esac
35666
35667# Check whether --enable-step-slew was given.
35668if test "${enable_step_slew+set}" = set; then :
35669  enableval=$enable_step_slew; ans=$enableval
35670
35671fi
35672
35673
35674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35675$as_echo "$ans" >&6; }
35676
35677case "$ans" in
35678 yes)
35679
35680$as_echo "#define STEP_SLEW 1" >>confdefs.h
35681
35682esac
35683
35684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
35685$as_echo_n "checking if ntpdate should step the time... " >&6; }
35686
35687case "$host" in
35688 *-apple-aux[23]*)
35689    ans=yes
35690    ;;
35691 *) ans=no
35692    ;;
35693esac
35694
35695# Check whether --enable-ntpdate-step was given.
35696if test "${enable_ntpdate_step+set}" = set; then :
35697  enableval=$enable_ntpdate_step; ans=$enableval
35698
35699fi
35700
35701
35702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35703$as_echo "$ans" >&6; }
35704
35705case "$ans" in
35706 yes)
35707
35708$as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
35709
35710esac
35711
35712
35713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
35714$as_echo_n "checking if we should sync TODR clock every hour... " >&6; }
35715
35716case "$host" in
35717 *-*-nextstep*)
35718    ans=yes
35719    ;;
35720 *-*-openvms*)	# HMS: won't be found
35721    ans=yes
35722    ;;
35723 *)
35724    ans=no
35725    ;;
35726esac
35727
35728# Check whether --enable-hourly-todr-sync was given.
35729if test "${enable_hourly_todr_sync+set}" = set; then :
35730  enableval=$enable_hourly_todr_sync; ans=$enableval
35731
35732fi
35733
35734
35735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35736$as_echo "$ans" >&6; }
35737
35738case "$ac_cv_var_sync_todr" in
35739 yes)
35740
35741$as_echo "#define DOSYNCTODR 1" >>confdefs.h
35742 ;;
35743esac
35744
35745
35746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
35747$as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }
35748
35749case "$host" in
35750 *-*-solaris2.6)
35751    unamev=`uname -v`
35752    case "$unamev" in
35753     Generic_105181-*)
35754	old_IFS="$IFS"
35755	IFS="-"
35756	set $unamev
35757	IFS="$old_IFS"
35758	if test "$2" -ge 17
35759	then
35760	    # Generic_105181-17 and higher
35761	    ans=no
35762	else
35763	    ans=yes
35764	fi
35765	;;
35766     *)
35767	ans=yes
35768	;;
35769    esac
35770    ;;
35771 *-*-solaris2.7)
35772    unamev=`uname -v`
35773    case "$unamev" in
35774     Generic_106541-*)
35775	old_IFS="$IFS"
35776	IFS="-"
35777	set $unamev
35778	IFS="$old_IFS"
35779	if test "$2" -ge 07
35780	then
35781	    # Generic_106541-07 and higher
35782	    ans=no
35783	else
35784	    ans=yes
35785	fi
35786	;;
35787     *)
35788	ans=yes
35789	;;
35790    esac
35791    ;;
35792 *)
35793    ans=no
35794    ;;
35795esac
35796
35797# Check whether --enable-kernel-fll-bug was given.
35798if test "${enable_kernel_fll_bug+set}" = set; then :
35799  enableval=$enable_kernel_fll_bug; ans=$enableval
35800
35801fi
35802
35803
35804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35805$as_echo "$ans" >&6; }
35806
35807case "$ans" in
35808 yes)
35809
35810$as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h
35811
35812esac
35813
35814
35815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
35816$as_echo_n "checking if we want new session key behavior... " >&6; }
35817# Check whether --enable-bug1243-fix was given.
35818if test "${enable_bug1243_fix+set}" = set; then :
35819  enableval=$enable_bug1243_fix; ans=$enableval
35820else
35821  ans=yes
35822
35823fi
35824
35825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35826$as_echo "$ans" >&6; }
35827case "$ans" in
35828 no)
35829
35830$as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h
35831
35832esac
35833
35834
35835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
35836$as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }
35837
35838case "$host" in
35839 *-*-solaris2.[89])
35840    ans=yes
35841    ;;
35842 *-*-solaris2.1[0-9]*)
35843    ans=yes
35844    ;;
35845 *) ans=no
35846    ;;
35847esac
35848
35849# Check whether --enable-irig-sawtooth was given.
35850if test "${enable_irig_sawtooth+set}" = set; then :
35851  enableval=$enable_irig_sawtooth; ans=$enableval
35852
35853fi
35854
35855
35856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35857$as_echo "$ans" >&6; }
35858
35859case "$ans" in
35860 yes)
35861
35862$as_echo "#define IRIG_SUCKS 1" >>confdefs.h
35863
35864esac
35865
35866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
35867$as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }
35868# Check whether --enable-nist was given.
35869if test "${enable_nist+set}" = set; then :
35870  enableval=$enable_nist; ans=$enableval
35871else
35872  ans=no
35873
35874fi
35875
35876
35877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35878$as_echo "$ans" >&6; }
35879
35880case "$ans" in
35881 yes)
35882
35883$as_echo "#define LOCKCLOCK 1" >>confdefs.h
35884 ;;
35885esac
35886
35887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
35888$as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }
35889# Check whether --enable-ntp-signd was given.
35890if test "${enable_ntp_signd+set}" = set; then :
35891  enableval=$enable_ntp_signd; ans=$enableval
35892else
35893  ans=no
35894
35895fi
35896
35897
35898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35899$as_echo "$ans" >&6; }
35900
35901case "$ans" in
35902 no)
35903    ntp_signd_path=
35904    ;;
35905 yes)
35906    ntp_signd_path=/var/run/ntp_signd
35907    ;;
35908 *)
35909    ntp_signd_path="$ans"
35910esac
35911
35912case "$ntp_signd_path" in
35913 '')
35914    ;;
35915 *)
35916
35917$as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h
35918
35919
35920cat >>confdefs.h <<_ACEOF
35921#define NTP_SIGND_PATH "$ntp_signd_path"
35922_ACEOF
35923
35924    ;;
35925esac
35926
35927for ac_header in libscf.h
35928do :
35929  ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
35930if test "x$ac_cv_header_libscf_h" = xyes; then :
35931  cat >>confdefs.h <<_ACEOF
35932#define HAVE_LIBSCF_H 1
35933_ACEOF
35934
35935fi
35936
35937done
35938
35939LSCF=
35940case "$ac_cv_header_libscf_h" in
35941 yes)
35942    LSCF='-lscf'
35943esac
35944
35945
35946
35947
35948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
35949$as_echo_n "checking for struct sockaddr_storage... " >&6; }
35950if ${ntp_cv_sockaddr_storage+:} false; then :
35951  $as_echo_n "(cached) " >&6
35952else
35953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35954/* end confdefs.h.  */
35955
35956		#ifdef HAVE_SYS_TYPES_H
35957		# include <sys/types.h>
35958		#endif
35959		#ifdef HAVE_SYS_SOCKET_H
35960		# include <sys/socket.h>
35961		#endif
35962		#ifdef HAVE_NETINET_IN_H
35963		# include <netinet/in.h>
35964		#endif
35965
35966int
35967main ()
35968{
35969
35970		struct sockaddr_storage n;
35971
35972
35973  ;
35974  return 0;
35975}
35976_ACEOF
35977if ac_fn_c_try_compile "$LINENO"; then :
35978  ntp_cv_sockaddr_storage=yes
35979else
35980  ntp_cv_sockaddr_storage=no
35981
35982fi
35983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35984
35985fi
35986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
35987$as_echo "$ntp_cv_sockaddr_storage" >&6; }
35988case "$ntp_cv_sockaddr_storage" in
35989 yes)
35990
35991$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
35992
35993    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
35994$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
35995if ${ntp_cv_have___ss_family+:} false; then :
35996  $as_echo_n "(cached) " >&6
35997else
35998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35999/* end confdefs.h.  */
36000
36001		    #ifdef HAVE_SYS_TYPES_H
36002		    # include <sys/types.h>
36003		    #endif
36004		    #ifdef HAVE_SYS_SOCKET_H
36005		    # include <sys/socket.h>
36006		    #endif
36007		    #ifdef HAVE_NETINET_IN_H
36008		    # include <netinet/in.h>
36009		    #endif
36010
36011int
36012main ()
36013{
36014
36015		    struct sockaddr_storage s;
36016		    s.__ss_family = 1;
36017
36018
36019  ;
36020  return 0;
36021}
36022_ACEOF
36023if ac_fn_c_try_compile "$LINENO"; then :
36024  ntp_cv_have___ss_family=yes
36025else
36026  ntp_cv_have___ss_family=no
36027
36028fi
36029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36030
36031fi
36032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
36033$as_echo "$ntp_cv_have___ss_family" >&6; }
36034    case "$ntp_cv_have___ss_family" in
36035     yes)
36036
36037$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
36038
36039    esac
36040
36041esac
36042
36043
36044#
36045# Look for in_port_t.
36046#
36047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
36048$as_echo_n "checking for in_port_t... " >&6; }
36049if ${isc_cv_have_in_port_t+:} false; then :
36050  $as_echo_n "(cached) " >&6
36051else
36052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36053/* end confdefs.h.  */
36054
36055		#include <sys/types.h>
36056		#include <netinet/in.h>
36057
36058int
36059main ()
36060{
36061
36062		in_port_t port = 25;
36063		return (0);
36064
36065
36066  ;
36067  return 0;
36068}
36069_ACEOF
36070if ac_fn_c_try_compile "$LINENO"; then :
36071  isc_cv_have_in_port_t=yes
36072else
36073  isc_cv_have_in_port_t=no
36074
36075fi
36076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36077
36078fi
36079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
36080$as_echo "$isc_cv_have_in_port_t" >&6; }
36081case "$isc_cv_have_in_port_t" in
36082 no)
36083
36084$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
36085
36086esac
36087
36088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
36089$as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
36090if ${ntp_cv_getsockname_socklen_type+:} false; then :
36091  $as_echo_n "(cached) " >&6
36092else
36093
36094    getsockname_socklen_type_found=no
36095    for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
36096	for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
36097	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36098/* end confdefs.h.  */
36099
36100			#ifdef HAVE_SYS_TYPES_H
36101			# include <sys/types.h>
36102			#endif
36103			#ifdef HAVE_SYS_SOCKET_H
36104			# include <sys/socket.h>
36105			#endif
36106
36107int
36108main ()
36109{
36110
36111			extern
36112			getsockname(int, $getsockname_arg2,
36113				$ntp_cv_getsockname_socklen_type *);
36114
36115
36116  ;
36117  return 0;
36118}
36119_ACEOF
36120if ac_fn_c_try_compile "$LINENO"; then :
36121  getsockname_socklen_type_found=yes ; break 2
36122fi
36123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36124	done
36125    done
36126    case "$getsockname_socklen_type_found" in
36127     no)
36128	ntp_cv_getsockname_socklen_type='socklen_t'
36129    esac
36130    { getsockname_arg2=; unset getsockname_arg2;}
36131    { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
36132
36133
36134fi
36135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
36136$as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
36137
36138cat >>confdefs.h <<_ACEOF
36139#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
36140_ACEOF
36141
36142
36143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
36144$as_echo_n "checking struct sockaddr for sa_len... " >&6; }
36145if ${isc_cv_platform_havesalen+:} false; then :
36146  $as_echo_n "(cached) " >&6
36147else
36148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36149/* end confdefs.h.  */
36150
36151		#include <sys/types.h>
36152		#include <sys/socket.h>
36153
36154int
36155main ()
36156{
36157
36158		extern struct sockaddr *ps;
36159		return ps->sa_len;
36160
36161
36162  ;
36163  return 0;
36164}
36165_ACEOF
36166if ac_fn_c_try_compile "$LINENO"; then :
36167  isc_cv_platform_havesalen=yes
36168else
36169  isc_cv_platform_havesalen=no
36170
36171fi
36172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36173
36174fi
36175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
36176$as_echo "$isc_cv_platform_havesalen" >&6; }
36177case "$isc_cv_platform_havesalen" in
36178 yes)
36179
36180$as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
36181
36182esac
36183
36184# Check whether --enable-ipv6 was given.
36185if test "${enable_ipv6+set}" = set; then :
36186  enableval=$enable_ipv6;
36187fi
36188
36189
36190case "$enable_ipv6" in
36191 yes|''|autodetect)
36192    case "$host" in
36193     powerpc-ibm-aix4*)
36194	;;
36195     *)
36196
36197$as_echo "#define WANT_IPV6 1" >>confdefs.h
36198
36199	;;
36200    esac
36201    ;;
36202 no)
36203    ;;
36204esac
36205
36206
36207case "$host" in
36208 *-*-darwin*)
36209
36210$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
36211
36212esac
36213
36214
36215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
36216$as_echo_n "checking for IPv6 structures... " >&6; }
36217if ${isc_cv_found_ipv6+:} false; then :
36218  $as_echo_n "(cached) " >&6
36219else
36220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36221/* end confdefs.h.  */
36222
36223		#include <sys/types.h>
36224		#include <sys/socket.h>
36225		#include <netinet/in.h>
36226
36227int
36228main ()
36229{
36230
36231		struct sockaddr_in6 sin6;
36232
36233
36234  ;
36235  return 0;
36236}
36237_ACEOF
36238if ac_fn_c_try_compile "$LINENO"; then :
36239  isc_cv_found_ipv6=yes
36240else
36241  isc_cv_found_ipv6=no
36242
36243fi
36244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36245
36246fi
36247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
36248$as_echo "$isc_cv_found_ipv6" >&6; }
36249
36250#
36251# See whether IPv6 support is provided via a Kame add-on.
36252# This is done before other IPv6 linking tests so LIBS is properly set.
36253#
36254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
36255$as_echo_n "checking for Kame IPv6 support... " >&6; }
36256
36257# Check whether --with-kame was given.
36258if test "${with_kame+set}" = set; then :
36259  withval=$with_kame; use_kame="$withval"
36260else
36261  use_kame="no"
36262
36263fi
36264
36265case "$use_kame" in
36266 no)
36267    ;;
36268 yes)
36269    kame_path=/usr/local/v6
36270    ;;
36271 *)
36272    kame_path="$use_kame"
36273    ;;
36274esac
36275case "$use_kame" in
36276 no)
36277    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36278$as_echo "no" >&6; }
36279    ;;
36280 *)
36281    if test -f $kame_path/lib/libinet6.a; then
36282	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
36283$as_echo "$kame_path/lib/libinet6.a" >&6; }
36284	LIBS="-L$kame_path/lib -linet6 $LIBS"
36285    else
36286	as_fn_error $? "$kame_path/lib/libinet6.a not found.
36287
36288Please choose the proper path with the following command:
36289
36290    configure --with-kame=PATH
36291" "$LINENO" 5
36292    fi
36293    ;;
36294esac
36295
36296#
36297# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
36298# Including it on Kame-using platforms is very bad, though, because
36299# Kame uses #error against direct inclusion.   So include it on only
36300# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
36301# This is done before the in6_pktinfo check because that's what
36302# netinet6/in6.h is needed for.
36303#
36304case "$host" in
36305 *-bsdi4.[01]*)
36306
36307$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
36308
36309    isc_netinet6in6_hack="#include <netinet6/in6.h>"
36310    ;;
36311 *)
36312    isc_netinet6in6_hack=""
36313    ;;
36314esac
36315
36316#
36317# This is similar to the netinet6/in6.h issue.
36318#
36319case "$host" in
36320 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
36321
36322$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
36323
36324    isc_netinetin6_hack="#include <netinet/in6.h>"
36325    ;;
36326 *)
36327    isc_netinetin6_hack=""
36328    ;;
36329esac
36330
36331
36332case "$isc_cv_found_ipv6" in
36333 yes)
36334
36335$as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
36336
36337    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
36338$as_echo_n "checking for in6_pktinfo... " >&6; }
36339if ${isc_cv_have_in6_pktinfo+:} false; then :
36340  $as_echo_n "(cached) " >&6
36341else
36342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36343/* end confdefs.h.  */
36344
36345		    #include <sys/types.h>
36346		    #include <sys/socket.h>
36347		    #include <netinet/in.h>
36348		    $isc_netinetin6_hack
36349		    $isc_netinet6in6_hack
36350
36351int
36352main ()
36353{
36354
36355		    struct in6_pktinfo xyzzy;
36356
36357
36358  ;
36359  return 0;
36360}
36361_ACEOF
36362if ac_fn_c_try_compile "$LINENO"; then :
36363  isc_cv_have_in6_pktinfo=yes
36364else
36365  isc_cv_have_in6_pktinfo=no
36366
36367fi
36368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36369
36370fi
36371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
36372$as_echo "$isc_cv_have_in6_pktinfo" >&6; }
36373    case "$isc_cv_have_in6_pktinfo" in
36374     yes)
36375
36376$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
36377
36378    esac
36379
36380
36381    # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
36382    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
36383$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
36384if ${isc_cv_have_sin6_scope_id+:} false; then :
36385  $as_echo_n "(cached) " >&6
36386else
36387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36388/* end confdefs.h.  */
36389
36390		    #include <sys/types.h>
36391		    #include <sys/socket.h>
36392		    #include <netinet/in.h>
36393		    $isc_netinetin6_hack
36394		    $isc_netinet6in6_hack
36395
36396int
36397main ()
36398{
36399
36400		    struct sockaddr_in6 xyzzy;
36401		    xyzzy.sin6_scope_id = 0;
36402
36403
36404  ;
36405  return 0;
36406}
36407_ACEOF
36408if ac_fn_c_try_compile "$LINENO"; then :
36409  isc_cv_have_sin6_scope_id=yes
36410else
36411  isc_cv_have_sin6_scope_id=no
36412
36413fi
36414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36415
36416fi
36417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
36418$as_echo "$isc_cv_have_sin6_scope_id" >&6; }
36419
36420    case "$isc_cv_have_sin6_scope_id" in
36421     yes)
36422
36423$as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
36424
36425    esac
36426esac
36427
36428
36429# We need this check run even without isc_cv_found_ipv6=yes
36430
36431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
36432$as_echo_n "checking for in6addr_any... " >&6; }
36433if ${isc_cv_in6addr_any_links+:} false; then :
36434  $as_echo_n "(cached) " >&6
36435else
36436
36437	SAVED_LIBS="$LIBS"
36438	LIBS="$LDADD_LIBNTP $LIBS"
36439	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36440/* end confdefs.h.  */
36441$ac_includes_default
36442		    #include <sys/socket.h>
36443		    #include <netinet/in.h>
36444		    $isc_netinetin6_hack
36445		    $isc_netinet6in6_hack
36446
36447int
36448main ()
36449{
36450
36451		    printf("%x", in6addr_any.s6_addr[15]);
36452
36453
36454  ;
36455  return 0;
36456}
36457_ACEOF
36458if ac_fn_c_try_link "$LINENO"; then :
36459  isc_cv_in6addr_any_links=yes
36460else
36461  isc_cv_in6addr_any_links=no
36462
36463fi
36464rm -f core conftest.err conftest.$ac_objext \
36465    conftest$ac_exeext conftest.$ac_ext
36466	LIBS="$SAVED_LIBS"
36467	{ SAVED_LIBS=; unset SAVED_LIBS;}
36468
36469
36470fi
36471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
36472$as_echo "$isc_cv_in6addr_any_links" >&6; }
36473
36474case "$isc_cv_in6addr_any_links" in
36475 no)
36476
36477$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
36478
36479esac
36480
36481
36482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
36483$as_echo_n "checking for struct if_laddrconf... " >&6; }
36484if ${isc_cv_struct_if_laddrconf+:} false; then :
36485  $as_echo_n "(cached) " >&6
36486else
36487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36488/* end confdefs.h.  */
36489
36490		#include <sys/types.h>
36491		#include <net/if6.h>
36492
36493int
36494main ()
36495{
36496
36497		struct if_laddrconf a;
36498
36499
36500  ;
36501  return 0;
36502}
36503_ACEOF
36504if ac_fn_c_try_compile "$LINENO"; then :
36505  isc_cv_struct_if_laddrconf=yes
36506else
36507  isc_cv_struct_if_laddrconf=no
36508
36509fi
36510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36511
36512fi
36513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
36514$as_echo "$isc_cv_struct_if_laddrconf" >&6; }
36515
36516case "$isc_cv_struct_if_laddrconf" in
36517 yes)
36518
36519$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
36520
36521esac
36522
36523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
36524$as_echo_n "checking for struct if_laddrreq... " >&6; }
36525if ${isc_cv_struct_if_laddrreq+:} false; then :
36526  $as_echo_n "(cached) " >&6
36527else
36528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36529/* end confdefs.h.  */
36530
36531		#include <sys/types.h>
36532		#include <net/if6.h>
36533
36534int
36535main ()
36536{
36537
36538		struct if_laddrreq a;
36539
36540
36541  ;
36542  return 0;
36543}
36544_ACEOF
36545if ac_fn_c_try_compile "$LINENO"; then :
36546  isc_cv_struct_if_laddrreq=yes
36547else
36548  isc_cv_struct_if_laddrreq=no
36549
36550fi
36551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36552
36553fi
36554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
36555$as_echo "$isc_cv_struct_if_laddrreq" >&6; }
36556
36557case "$isc_cv_struct_if_laddrreq" in
36558 yes)
36559
36560$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
36561
36562esac
36563
36564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
36565$as_echo_n "checking for multicast IP support... " >&6; }
36566if ${ntp_cv_multicast+:} false; then :
36567  $as_echo_n "(cached) " >&6
36568else
36569
36570	ntp_cv_multicast=no
36571	case "$host" in
36572	 i386-sequent-sysv4)
36573	    ;;
36574	 *)
36575	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36576/* end confdefs.h.  */
36577
36578			#ifdef HAVE_NETINET_IN_H
36579			# include <netinet/in.h>
36580			#endif
36581
36582int
36583main ()
36584{
36585
36586			struct ip_mreq ipmr;
36587			ipmr.imr_interface.s_addr = 0;
36588
36589
36590  ;
36591  return 0;
36592}
36593_ACEOF
36594if ac_fn_c_try_compile "$LINENO"; then :
36595  ntp_cv_multicast=yes
36596fi
36597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36598	    ;;
36599	esac
36600
36601
36602fi
36603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
36604$as_echo "$ntp_cv_multicast" >&6; }
36605case "$ntp_cv_multicast" in
36606 yes)
36607
36608$as_echo "#define MCAST 1" >>confdefs.h
36609
36610    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
36611$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
36612if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
36613  $as_echo_n "(cached) " >&6
36614else
36615
36616	    case "$host" in
36617	     *-*-netbsd*|*-*-*linux*)
36618		ntp_cv_typeof_ip_multicast_loop=u_int
36619		;;
36620	     *)
36621		ntp_cv_typeof_ip_multicast_loop=u_char
36622		;;
36623	    esac
36624
36625
36626fi
36627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
36628$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
36629
36630cat >>confdefs.h <<_ACEOF
36631#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
36632_ACEOF
36633
36634esac
36635
36636# Check whether --enable-getifaddrs was given.
36637if test "${enable_getifaddrs+set}" = set; then :
36638  enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
36639else
36640  want_getifaddrs="yes"
36641
36642fi
36643
36644
36645case $want_getifaddrs in
36646 glibc)
36647    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
36648$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
36649esac
36650case $want_getifaddrs in
36651 no)
36652    ;;
36653 *)
36654    SAVED_LIBS="$LIBS"
36655    LIBS="$LDADD_LIBNTP $LIBS"
36656    for ac_func in getifaddrs
36657do :
36658  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
36659if test "x$ac_cv_func_getifaddrs" = xyes; then :
36660  cat >>confdefs.h <<_ACEOF
36661#define HAVE_GETIFADDRS 1
36662_ACEOF
36663
36664fi
36665done
36666
36667    LIBS="$SAVED_LIBS"
36668    { SAVED_LIBS=; unset SAVED_LIBS;}
36669    ;;
36670esac
36671
36672#
36673# Check for if_nametoindex() for IPv6 scoped addresses support
36674#
36675case "$host" in
36676 *-hp-hpux*)
36677    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
36678$as_echo_n "checking for library containing if_nametoindex... " >&6; }
36679if ${ac_cv_search_if_nametoindex+:} false; then :
36680  $as_echo_n "(cached) " >&6
36681else
36682  ac_func_search_save_LIBS=$LIBS
36683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36684/* end confdefs.h.  */
36685
36686/* Override any GCC internal prototype to avoid an error.
36687   Use char because int might match the return type of a GCC
36688   builtin and then its argument prototype would still apply.  */
36689#ifdef __cplusplus
36690extern "C"
36691#endif
36692char if_nametoindex ();
36693int
36694main ()
36695{
36696return if_nametoindex ();
36697  ;
36698  return 0;
36699}
36700_ACEOF
36701for ac_lib in '' ipv6; do
36702  if test -z "$ac_lib"; then
36703    ac_res="none required"
36704  else
36705    ac_res=-l$ac_lib
36706    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36707  fi
36708  if ac_fn_c_try_link "$LINENO"; then :
36709  ac_cv_search_if_nametoindex=$ac_res
36710fi
36711rm -f core conftest.err conftest.$ac_objext \
36712    conftest$ac_exeext
36713  if ${ac_cv_search_if_nametoindex+:} false; then :
36714  break
36715fi
36716done
36717if ${ac_cv_search_if_nametoindex+:} false; then :
36718
36719else
36720  ac_cv_search_if_nametoindex=no
36721fi
36722rm conftest.$ac_ext
36723LIBS=$ac_func_search_save_LIBS
36724fi
36725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
36726$as_echo "$ac_cv_search_if_nametoindex" >&6; }
36727ac_res=$ac_cv_search_if_nametoindex
36728if test "$ac_res" != no; then :
36729  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36730
36731fi
36732
36733esac
36734SAVED_LIBS="$LIBS"
36735LIBS="$LDADD_LIBNTP $LIBS"
36736for ac_func in if_nametoindex
36737do :
36738  ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
36739if test "x$ac_cv_func_if_nametoindex" = xyes; then :
36740  cat >>confdefs.h <<_ACEOF
36741#define HAVE_IF_NAMETOINDEX 1
36742_ACEOF
36743
36744fi
36745done
36746
36747LIBS="$SAVED_LIBS"
36748{ SAVED_LIBS=; unset SAVED_LIBS;}
36749case "$ac_cv_func_if_nametoindex" in
36750 yes)
36751
36752$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
36753
36754esac
36755
36756
36757
36758
36759#
36760# Look for a sysctl call to get the list of network interfaces.
36761#
36762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
36763$as_echo_n "checking for interface list sysctl... " >&6; }
36764if ${ntp_cv_iflist_sysctl+:} false; then :
36765  $as_echo_n "(cached) " >&6
36766else
36767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36768/* end confdefs.h.  */
36769
36770	    #include <sys/param.h>
36771	    #include <sys/sysctl.h>
36772	    #include <sys/socket.h>
36773	    #ifndef NET_RT_IFLIST
36774	    # error
36775	    #endif
36776
36777_ACEOF
36778if ac_fn_c_try_cpp "$LINENO"; then :
36779  ntp_cv_iflist_sysctl=yes
36780else
36781  ntp_cv_iflist_sysctl=no
36782
36783fi
36784rm -f conftest.err conftest.i conftest.$ac_ext
36785
36786fi
36787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5
36788$as_echo "$ntp_cv_iflist_sysctl" >&6; }
36789case "$ntp_cv_iflist_sysctl" in
36790 yes)
36791
36792$as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
36793
36794esac
36795
36796###
36797
36798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
36799$as_echo_n "checking if we want the saveconfig mechanism... " >&6; }
36800# Check whether --enable-saveconfig was given.
36801if test "${enable_saveconfig+set}" = set; then :
36802  enableval=$enable_saveconfig; ntp_ok=$enableval
36803else
36804  ntp_ok=yes
36805
36806fi
36807
36808ntp_saveconfig_enabled=0
36809case "$ntp_ok" in
36810 yes)
36811    ntp_saveconfig_enabled=1
36812
36813$as_echo "#define SAVECONFIG 1" >>confdefs.h
36814
36815    ;;
36816esac
36817 if test x$ntp_saveconfig_enabled = x1; then
36818  SAVECONFIG_ENABLED_TRUE=
36819  SAVECONFIG_ENABLED_FALSE='#'
36820else
36821  SAVECONFIG_ENABLED_TRUE='#'
36822  SAVECONFIG_ENABLED_FALSE=
36823fi
36824
36825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
36826$as_echo "$ntp_ok" >&6; }
36827
36828###
36829
36830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5
36831$as_echo_n "checking if we want the experimental leap smear code... " >&6; }
36832# Check whether --enable-leap-smear was given.
36833if test "${enable_leap_smear+set}" = set; then :
36834  enableval=$enable_leap_smear; ntp_ok=$enableval
36835else
36836  ntp_ok=no
36837
36838fi
36839
36840ntp_leap_smear_enabled=0
36841case "$ntp_ok" in
36842 yes)
36843    ntp_leap_smear_enabled=1
36844
36845$as_echo "#define LEAP_SMEAR 1" >>confdefs.h
36846
36847
36848    HAVE_LEAPSMEARINTERVAL="leapsmearinterval 0"
36849    ;;
36850esac
36851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
36852$as_echo "$ntp_ok" >&6; }
36853
36854
36855# We may not need have_unity
36856have_unity=false
36857# Extract the first word of "ruby", so it can be a program name with args.
36858set dummy ruby; ac_word=$2
36859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36860$as_echo_n "checking for $ac_word... " >&6; }
36861if ${ac_cv_path_PATH_RUBY+:} false; then :
36862  $as_echo_n "(cached) " >&6
36863else
36864  case $PATH_RUBY in
36865  [\\/]* | ?:[\\/]*)
36866  ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
36867  ;;
36868  *)
36869  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36870for as_dir in $PATH
36871do
36872  IFS=$as_save_IFS
36873  test -z "$as_dir" && as_dir=.
36874    for ac_exec_ext in '' $ac_executable_extensions; do
36875  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36876    ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
36877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36878    break 2
36879  fi
36880done
36881  done
36882IFS=$as_save_IFS
36883
36884  ;;
36885esac
36886fi
36887PATH_RUBY=$ac_cv_path_PATH_RUBY
36888if test -n "$PATH_RUBY"; then
36889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
36890$as_echo "$PATH_RUBY" >&6; }
36891else
36892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36893$as_echo "no" >&6; }
36894fi
36895
36896
36897case "$PATH_RUBY" in
36898 /*)
36899    have_unity=true
36900    ;;
36901 *) PATH_RUBY="false"
36902    ;;
36903esac
36904# We may not need UNITYBUILD_AVAILABLE
36905 if $have_unity; then
36906  UNITYBUILD_AVAILABLE_TRUE=
36907  UNITYBUILD_AVAILABLE_FALSE='#'
36908else
36909  UNITYBUILD_AVAILABLE_TRUE='#'
36910  UNITYBUILD_AVAILABLE_FALSE=
36911fi
36912
36913
36914
36915
36916
36917gta=false
36918
36919# Check whether --with-gtest was given.
36920if test "${with_gtest+set}" = set; then :
36921  withval=$with_gtest; try_gtest=$withval
36922else
36923  try_gtest=yes
36924
36925fi
36926
36927case "$try_gtest" in
36928 yes)
36929    # Extract the first word of "gtest-config", so it can be a program name with args.
36930set dummy gtest-config; ac_word=$2
36931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36932$as_echo_n "checking for $ac_word... " >&6; }
36933if ${ac_cv_path_GTEST_CONFIG+:} false; then :
36934  $as_echo_n "(cached) " >&6
36935else
36936  case $GTEST_CONFIG in
36937  [\\/]* | ?:[\\/]*)
36938  ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
36939  ;;
36940  *)
36941  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36942for as_dir in $PATH
36943do
36944  IFS=$as_save_IFS
36945  test -z "$as_dir" && as_dir=.
36946    for ac_exec_ext in '' $ac_executable_extensions; do
36947  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36948    ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36950    break 2
36951  fi
36952done
36953  done
36954IFS=$as_save_IFS
36955
36956  ;;
36957esac
36958fi
36959GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
36960if test -n "$GTEST_CONFIG"; then
36961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
36962$as_echo "$GTEST_CONFIG" >&6; }
36963else
36964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36965$as_echo "no" >&6; }
36966fi
36967
36968
36969    { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
36970    case x${GTEST_CONFIG} in
36971     x) ;;
36972     *)
36973	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
36974$as_echo_n "checking gtest version... " >&6; }
36975	gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
36976	case "$gtest_version_test" in
36977	 toolow*)
36978	    ;;
36979	 *)
36980	    GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
36981	    GTEST_LIBS=`$GTEST_CONFIG --libs`
36982	    GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
36983	    GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`
36984
36985
36986
36987
36988	    gta=true
36989	    ;;
36990	esac
36991	gtest_version=`$GTEST_CONFIG --version`
36992	case "$gta" in
36993	 true)
36994	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
36995$as_echo "($gtest_version) ok" >&6; }
36996	    ;;
36997	 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
36998$as_echo "($gtest_version) not ok" >&6; }
36999	    ;;
37000	esac
37001	{ gtest_version_test=; unset gtest_version_test;}
37002	{ gtest_version=; unset gtest_version;}
37003    esac
37004esac
37005 if $gta; then
37006  GTEST_AVAILABLE_TRUE=
37007  GTEST_AVAILABLE_FALSE='#'
37008else
37009  GTEST_AVAILABLE_TRUE='#'
37010  GTEST_AVAILABLE_FALSE=
37011fi
37012
37013
37014
37015
37016
37017case "$build" in
37018 $host)	cross=0 ;;
37019 *)	cross=1 ;;
37020esac
37021
37022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
37023$as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; }
37024# Check whether --enable-problem-tests was given.
37025if test "${enable_problem_tests+set}" = set; then :
37026  enableval=$enable_problem_tests; ntp_ept=$enableval
37027else
37028  ntp_ept=yes
37029
37030fi
37031
37032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ept" >&5
37033$as_echo "$ntp_ept" >&6; }
37034
37035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_restrict" >&5
37036$as_echo_n "checking if we can run test-ntp_restrict... " >&6; }
37037ntp_test_ntp_restrict="no"
37038case "$ntp_ept:$cross:$host" in
37039 no:0:*-*-freebsd6.4) ;;
37040 no:0:*-*-hpux11.23*) ;;
37041 no:0:*-*-solaris*) ;;
37042 *) ntp_test_ntp_restrict="yes" ;;
37043esac
37044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_restrict" >&5
37045$as_echo "$ntp_test_ntp_restrict" >&6; }
37046 if test x$ntp_test_ntp_restrict = xyes; then
37047  BUILD_TEST_NTP_RESTRICT_TRUE=
37048  BUILD_TEST_NTP_RESTRICT_FALSE='#'
37049else
37050  BUILD_TEST_NTP_RESTRICT_TRUE='#'
37051  BUILD_TEST_NTP_RESTRICT_FALSE=
37052fi
37053
37054
37055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_scanner" >&5
37056$as_echo_n "checking if we can run test-ntp_scanner... " >&6; }
37057ntp_test_ntp_scanner="no"
37058case "$ntp_ept:$cross:$host" in
37059 no:0:*-*-freebsd6.4) ;;
37060 no:0:*-*-solaris*) ;;
37061 *) ntp_test_ntp_scanner="yes" ;;
37062esac
37063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_scanner" >&5
37064$as_echo "$ntp_test_ntp_scanner" >&6; }
37065 if test x$ntp_test_ntp_scanner = xyes; then
37066  BUILD_TEST_NTP_SCANNER_TRUE=
37067  BUILD_TEST_NTP_SCANNER_FALSE='#'
37068else
37069  BUILD_TEST_NTP_SCANNER_TRUE='#'
37070  BUILD_TEST_NTP_SCANNER_FALSE=
37071fi
37072
37073
37074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_signd" >&5
37075$as_echo_n "checking if we can run test-ntp_signd... " >&6; }
37076ntp_test_ntp_signd="no"
37077case "$ntp_ept:$cross:$host" in
37078 no:0:*-*-freebsd6.4) ;;
37079 no:0:*-*-solaris*) ;;
37080 *) ntp_test_ntp_signd="yes" ;;
37081esac
37082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_signd" >&5
37083$as_echo "$ntp_test_ntp_signd" >&6; }
37084 if test x$ntp_test_ntp_signd = xyes; then
37085  BUILD_TEST_NTP_SIGND_TRUE=
37086  BUILD_TEST_NTP_SIGND_FALSE='#'
37087else
37088  BUILD_TEST_NTP_SIGND_TRUE='#'
37089  BUILD_TEST_NTP_SIGND_FALSE=
37090fi
37091
37092
37093
37094###
37095
37096
37097  prefix_NONE=
37098  exec_prefix_NONE=
37099  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
37100  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
37101  eval ac_define_dir="\"$sysconfdir\""
37102  eval ac_define_dir="\"$ac_define_dir\""
37103  NTP_KEYSDIR="$ac_define_dir"
37104
37105
37106cat >>confdefs.h <<_ACEOF
37107#define NTP_KEYSDIR "$ac_define_dir"
37108_ACEOF
37109
37110  test "$prefix_NONE" && prefix=NONE
37111  test "$exec_prefix_NONE" && exec_prefix=NONE
37112
37113
37114ac_config_files="$ac_config_files Makefile"
37115
37116ac_config_files="$ac_config_files adjtimed/Makefile"
37117
37118ac_config_files="$ac_config_files clockstuff/Makefile"
37119
37120ac_config_files="$ac_config_files include/Makefile"
37121
37122ac_config_files="$ac_config_files include/isc/Makefile"
37123
37124ac_config_files="$ac_config_files kernel/Makefile"
37125
37126ac_config_files="$ac_config_files kernel/sys/Makefile"
37127
37128ac_config_files="$ac_config_files libntp/Makefile"
37129
37130ac_config_files="$ac_config_files libparse/Makefile"
37131
37132ac_config_files="$ac_config_files ntpd/Makefile"
37133
37134ac_config_files="$ac_config_files ntpd/complete.conf"
37135
37136ac_config_files="$ac_config_files ntpdate/Makefile"
37137
37138ac_config_files="$ac_config_files ntpdc/Makefile"
37139
37140ac_config_files="$ac_config_files ntpdc/nl.pl"
37141
37142ac_config_files="$ac_config_files ntpq/Makefile"
37143
37144ac_config_files="$ac_config_files ntpsnmpd/Makefile"
37145
37146ac_config_files="$ac_config_files parseutil/Makefile"
37147
37148ac_config_files="$ac_config_files scripts/Makefile"
37149
37150ac_config_files="$ac_config_files scripts/build/Makefile"
37151
37152ac_config_files="$ac_config_files scripts/build/mkver"
37153
37154ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"
37155
37156ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"
37157
37158ac_config_files="$ac_config_files scripts/lib/Makefile"
37159
37160ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"
37161
37162ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
37163
37164ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"
37165
37166ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
37167
37168ac_config_files="$ac_config_files scripts/ntptrace/Makefile"
37169
37170ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"
37171
37172ac_config_files="$ac_config_files scripts/ntpver"
37173
37174ac_config_files="$ac_config_files scripts/plot_summary"
37175
37176ac_config_files="$ac_config_files scripts/summary"
37177
37178ac_config_files="$ac_config_files scripts/update-leap/Makefile"
37179
37180ac_config_files="$ac_config_files scripts/update-leap/update-leap"
37181
37182ac_config_files="$ac_config_files tests/Makefile"
37183
37184ac_config_files="$ac_config_files tests/bug-2803/Makefile"
37185
37186ac_config_files="$ac_config_files tests/libntp/Makefile"
37187
37188ac_config_files="$ac_config_files tests/ntpd/Makefile"
37189
37190ac_config_files="$ac_config_files tests/ntpq/Makefile"
37191
37192ac_config_files="$ac_config_files tests/sandbox/Makefile"
37193
37194ac_config_files="$ac_config_files tests/sec-2853/Makefile"
37195
37196ac_config_files="$ac_config_files util/Makefile"
37197
37198
37199perllibdir="${datadir}/ntp/lib"
37200
37201  prefix_NONE=
37202  exec_prefix_NONE=
37203  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
37204  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
37205  eval ac_define_dir="\"$perllibdir\""
37206  eval ac_define_dir="\"$ac_define_dir\""
37207  PERLLIBDIR="$ac_define_dir"
37208
37209
37210cat >>confdefs.h <<_ACEOF
37211#define PERLLIBDIR "$ac_define_dir"
37212_ACEOF
37213
37214  test "$prefix_NONE" && prefix=NONE
37215  test "$exec_prefix_NONE" && exec_prefix=NONE
37216
37217
37218calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"
37219
37220ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"
37221
37222ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"
37223
37224ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"
37225
37226summary_opts="$srcdir/scripts/summary-opts"
37227
37228plot_summary_opts="$srcdir/scripts/plot_summary-opts"
37229
37230
37231
37232
37233subdirs="$subdirs sntp"
37234
37235
37236cat >confcache <<\_ACEOF
37237# This file is a shell script that caches the results of configure
37238# tests run on this system so they can be shared between configure
37239# scripts and configure runs, see configure's option --config-cache.
37240# It is not useful on other systems.  If it contains results you don't
37241# want to keep, you may remove or edit it.
37242#
37243# config.status only pays attention to the cache file if you give it
37244# the --recheck option to rerun configure.
37245#
37246# `ac_cv_env_foo' variables (set or unset) will be overridden when
37247# loading this file, other *unset* `ac_cv_foo' will be assigned the
37248# following values.
37249
37250_ACEOF
37251
37252# The following way of writing the cache mishandles newlines in values,
37253# but we know of no workaround that is simple, portable, and efficient.
37254# So, we kill variables containing newlines.
37255# Ultrix sh set writes to stderr and can't be redirected directly,
37256# and sets the high bit in the cache file unless we assign to the vars.
37257(
37258  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
37259    eval ac_val=\$$ac_var
37260    case $ac_val in #(
37261    *${as_nl}*)
37262      case $ac_var in #(
37263      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
37264$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
37265      esac
37266      case $ac_var in #(
37267      _ | IFS | as_nl) ;; #(
37268      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
37269      *) { eval $ac_var=; unset $ac_var;} ;;
37270      esac ;;
37271    esac
37272  done
37273
37274  (set) 2>&1 |
37275    case $as_nl`(ac_space=' '; set) 2>&1` in #(
37276    *${as_nl}ac_space=\ *)
37277      # `set' does not quote correctly, so add quotes: double-quote
37278      # substitution turns \\\\ into \\, and sed turns \\ into \.
37279      sed -n \
37280	"s/'/'\\\\''/g;
37281	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37282      ;; #(
37283    *)
37284      # `set' quotes correctly as required by POSIX, so do not add quotes.
37285      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
37286      ;;
37287    esac |
37288    sort
37289) |
37290  sed '
37291     /^ac_cv_env_/b end
37292     t clear
37293     :clear
37294     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37295     t end
37296     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37297     :end' >>confcache
37298if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
37299  if test -w "$cache_file"; then
37300    if test "x$cache_file" != "x/dev/null"; then
37301      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
37302$as_echo "$as_me: updating cache $cache_file" >&6;}
37303      if test ! -f "$cache_file" || test -h "$cache_file"; then
37304	cat confcache >"$cache_file"
37305      else
37306        case $cache_file in #(
37307        */* | ?:*)
37308	  mv -f confcache "$cache_file"$$ &&
37309	  mv -f "$cache_file"$$ "$cache_file" ;; #(
37310        *)
37311	  mv -f confcache "$cache_file" ;;
37312	esac
37313      fi
37314    fi
37315  else
37316    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
37317$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
37318  fi
37319fi
37320rm -f confcache
37321
37322test "x$prefix" = xNONE && prefix=$ac_default_prefix
37323# Let make expand exec_prefix.
37324test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37325
37326DEFS=-DHAVE_CONFIG_H
37327
37328ac_libobjs=
37329ac_ltlibobjs=
37330U=
37331for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37332  # 1. Remove the extension, and $U if already installed.
37333  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
37334  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
37335  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
37336  #    will be set to the directory where LIBOBJS objects are built.
37337  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
37338  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
37339done
37340LIBOBJS=$ac_libobjs
37341
37342LTLIBOBJS=$ac_ltlibobjs
37343
37344
37345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
37346$as_echo_n "checking that generated files are newer than configure... " >&6; }
37347   if test -n "$am_sleep_pid"; then
37348     # Hide warnings about reused PIDs.
37349     wait $am_sleep_pid 2>/dev/null
37350   fi
37351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
37352$as_echo "done" >&6; }
37353 if test -n "$EXEEXT"; then
37354  am__EXEEXT_TRUE=
37355  am__EXEEXT_FALSE='#'
37356else
37357  am__EXEEXT_TRUE='#'
37358  am__EXEEXT_FALSE=
37359fi
37360
37361if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
37362  as_fn_error $? "conditional \"AMDEP\" was never defined.
37363Usually this means the macro was only invoked conditionally." "$LINENO" 5
37364fi
37365if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37366  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
37367Usually this means the macro was only invoked conditionally." "$LINENO" 5
37368fi
37369if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37370  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
37371Usually this means the macro was only invoked conditionally." "$LINENO" 5
37372fi
37373
37374if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
37375  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
37376Usually this means the macro was only invoked conditionally." "$LINENO" 5
37377fi
37378if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
37379  as_fn_error $? "conditional \"VPATH_HACK\" was never defined.
37380Usually this means the macro was only invoked conditionally." "$LINENO" 5
37381fi
37382if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
37383  as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
37384Usually this means the macro was only invoked conditionally." "$LINENO" 5
37385fi
37386if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
37387  as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
37388Usually this means the macro was only invoked conditionally." "$LINENO" 5
37389fi
37390if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
37391  as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
37392Usually this means the macro was only invoked conditionally." "$LINENO" 5
37393fi
37394if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
37395  as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
37396Usually this means the macro was only invoked conditionally." "$LINENO" 5
37397fi
37398if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
37399  as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
37400Usually this means the macro was only invoked conditionally." "$LINENO" 5
37401fi
37402if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
37403  as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
37404Usually this means the macro was only invoked conditionally." "$LINENO" 5
37405fi
37406if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
37407  as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
37408Usually this means the macro was only invoked conditionally." "$LINENO" 5
37409fi
37410if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
37411  as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
37412Usually this means the macro was only invoked conditionally." "$LINENO" 5
37413fi
37414if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
37415  as_fn_error $? "conditional \"PTHREADS\" was never defined.
37416Usually this means the macro was only invoked conditionally." "$LINENO" 5
37417fi
37418if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
37419  as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
37420Usually this means the macro was only invoked conditionally." "$LINENO" 5
37421fi
37422if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
37423  as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined.
37424Usually this means the macro was only invoked conditionally." "$LINENO" 5
37425fi
37426if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
37427  as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
37428Usually this means the macro was only invoked conditionally." "$LINENO" 5
37429fi
37430if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
37431  as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
37432Usually this means the macro was only invoked conditionally." "$LINENO" 5
37433fi
37434if test -z "${BUILD_TEST_NTP_RESTRICT_TRUE}" && test -z "${BUILD_TEST_NTP_RESTRICT_FALSE}"; then
37435  as_fn_error $? "conditional \"BUILD_TEST_NTP_RESTRICT\" was never defined.
37436Usually this means the macro was only invoked conditionally." "$LINENO" 5
37437fi
37438if test -z "${BUILD_TEST_NTP_SCANNER_TRUE}" && test -z "${BUILD_TEST_NTP_SCANNER_FALSE}"; then
37439  as_fn_error $? "conditional \"BUILD_TEST_NTP_SCANNER\" was never defined.
37440Usually this means the macro was only invoked conditionally." "$LINENO" 5
37441fi
37442if test -z "${BUILD_TEST_NTP_SIGND_TRUE}" && test -z "${BUILD_TEST_NTP_SIGND_FALSE}"; then
37443  as_fn_error $? "conditional \"BUILD_TEST_NTP_SIGND\" was never defined.
37444Usually this means the macro was only invoked conditionally." "$LINENO" 5
37445fi
37446
37447: "${CONFIG_STATUS=./config.status}"
37448ac_write_fail=0
37449ac_clean_files_save=$ac_clean_files
37450ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37451{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
37452$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
37453as_write_fail=0
37454cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
37455#! $SHELL
37456# Generated by $as_me.
37457# Run this file to recreate the current configuration.
37458# Compiler output produced by configure, useful for debugging
37459# configure, is in config.log if it exists.
37460
37461debug=false
37462ac_cs_recheck=false
37463ac_cs_silent=false
37464
37465SHELL=\${CONFIG_SHELL-$SHELL}
37466export SHELL
37467_ASEOF
37468cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
37469## -------------------- ##
37470## M4sh Initialization. ##
37471## -------------------- ##
37472
37473# Be more Bourne compatible
37474DUALCASE=1; export DUALCASE # for MKS sh
37475if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
37476  emulate sh
37477  NULLCMD=:
37478  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
37479  # is contrary to our usage.  Disable this feature.
37480  alias -g '${1+"$@"}'='"$@"'
37481  setopt NO_GLOB_SUBST
37482else
37483  case `(set -o) 2>/dev/null` in #(
37484  *posix*) :
37485    set -o posix ;; #(
37486  *) :
37487     ;;
37488esac
37489fi
37490
37491
37492as_nl='
37493'
37494export as_nl
37495# Printing a long string crashes Solaris 7 /usr/bin/printf.
37496as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
37497as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37498as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
37499# Prefer a ksh shell builtin over an external printf program on Solaris,
37500# but without wasting forks for bash or zsh.
37501if test -z "$BASH_VERSION$ZSH_VERSION" \
37502    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
37503  as_echo='print -r --'
37504  as_echo_n='print -rn --'
37505elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
37506  as_echo='printf %s\n'
37507  as_echo_n='printf %s'
37508else
37509  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
37510    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
37511    as_echo_n='/usr/ucb/echo -n'
37512  else
37513    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
37514    as_echo_n_body='eval
37515      arg=$1;
37516      case $arg in #(
37517      *"$as_nl"*)
37518	expr "X$arg" : "X\\(.*\\)$as_nl";
37519	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
37520      esac;
37521      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
37522    '
37523    export as_echo_n_body
37524    as_echo_n='sh -c $as_echo_n_body as_echo'
37525  fi
37526  export as_echo_body
37527  as_echo='sh -c $as_echo_body as_echo'
37528fi
37529
37530# The user is always right.
37531if test "${PATH_SEPARATOR+set}" != set; then
37532  PATH_SEPARATOR=:
37533  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
37534    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
37535      PATH_SEPARATOR=';'
37536  }
37537fi
37538
37539
37540# IFS
37541# We need space, tab and new line, in precisely that order.  Quoting is
37542# there to prevent editors from complaining about space-tab.
37543# (If _AS_PATH_WALK were called with IFS unset, it would disable word
37544# splitting by setting IFS to empty value.)
37545IFS=" ""	$as_nl"
37546
37547# Find who we are.  Look in the path if we contain no directory separator.
37548as_myself=
37549case $0 in #((
37550  *[\\/]* ) as_myself=$0 ;;
37551  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37552for as_dir in $PATH
37553do
37554  IFS=$as_save_IFS
37555  test -z "$as_dir" && as_dir=.
37556    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37557  done
37558IFS=$as_save_IFS
37559
37560     ;;
37561esac
37562# We did not find ourselves, most probably we were run as `sh COMMAND'
37563# in which case we are not to be found in the path.
37564if test "x$as_myself" = x; then
37565  as_myself=$0
37566fi
37567if test ! -f "$as_myself"; then
37568  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
37569  exit 1
37570fi
37571
37572# Unset variables that we do not need and which cause bugs (e.g. in
37573# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
37574# suppresses any "Segmentation fault" message there.  '((' could
37575# trigger a bug in pdksh 5.2.14.
37576for as_var in BASH_ENV ENV MAIL MAILPATH
37577do eval test x\${$as_var+set} = xset \
37578  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
37579done
37580PS1='$ '
37581PS2='> '
37582PS4='+ '
37583
37584# NLS nuisances.
37585LC_ALL=C
37586export LC_ALL
37587LANGUAGE=C
37588export LANGUAGE
37589
37590# CDPATH.
37591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37592
37593
37594# as_fn_error STATUS ERROR [LINENO LOG_FD]
37595# ----------------------------------------
37596# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37597# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
37598# script with STATUS, using 1 if that was 0.
37599as_fn_error ()
37600{
37601  as_status=$1; test $as_status -eq 0 && as_status=1
37602  if test "$4"; then
37603    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37604    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
37605  fi
37606  $as_echo "$as_me: error: $2" >&2
37607  as_fn_exit $as_status
37608} # as_fn_error
37609
37610
37611# as_fn_set_status STATUS
37612# -----------------------
37613# Set $? to STATUS, without forking.
37614as_fn_set_status ()
37615{
37616  return $1
37617} # as_fn_set_status
37618
37619# as_fn_exit STATUS
37620# -----------------
37621# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
37622as_fn_exit ()
37623{
37624  set +e
37625  as_fn_set_status $1
37626  exit $1
37627} # as_fn_exit
37628
37629# as_fn_unset VAR
37630# ---------------
37631# Portably unset VAR.
37632as_fn_unset ()
37633{
37634  { eval $1=; unset $1;}
37635}
37636as_unset=as_fn_unset
37637# as_fn_append VAR VALUE
37638# ----------------------
37639# Append the text in VALUE to the end of the definition contained in VAR. Take
37640# advantage of any shell optimizations that allow amortized linear growth over
37641# repeated appends, instead of the typical quadratic growth present in naive
37642# implementations.
37643if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37644  eval 'as_fn_append ()
37645  {
37646    eval $1+=\$2
37647  }'
37648else
37649  as_fn_append ()
37650  {
37651    eval $1=\$$1\$2
37652  }
37653fi # as_fn_append
37654
37655# as_fn_arith ARG...
37656# ------------------
37657# Perform arithmetic evaluation on the ARGs, and store the result in the
37658# global $as_val. Take advantage of shells that can avoid forks. The arguments
37659# must be portable across $(()) and expr.
37660if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
37661  eval 'as_fn_arith ()
37662  {
37663    as_val=$(( $* ))
37664  }'
37665else
37666  as_fn_arith ()
37667  {
37668    as_val=`expr "$@" || test $? -eq 1`
37669  }
37670fi # as_fn_arith
37671
37672
37673if expr a : '\(a\)' >/dev/null 2>&1 &&
37674   test "X`expr 00001 : '.*\(...\)'`" = X001; then
37675  as_expr=expr
37676else
37677  as_expr=false
37678fi
37679
37680if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37681  as_basename=basename
37682else
37683  as_basename=false
37684fi
37685
37686if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37687  as_dirname=dirname
37688else
37689  as_dirname=false
37690fi
37691
37692as_me=`$as_basename -- "$0" ||
37693$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37694	 X"$0" : 'X\(//\)$' \| \
37695	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37696$as_echo X/"$0" |
37697    sed '/^.*\/\([^/][^/]*\)\/*$/{
37698	    s//\1/
37699	    q
37700	  }
37701	  /^X\/\(\/\/\)$/{
37702	    s//\1/
37703	    q
37704	  }
37705	  /^X\/\(\/\).*/{
37706	    s//\1/
37707	    q
37708	  }
37709	  s/.*/./; q'`
37710
37711# Avoid depending upon Character Ranges.
37712as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37713as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37714as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37715as_cr_digits='0123456789'
37716as_cr_alnum=$as_cr_Letters$as_cr_digits
37717
37718ECHO_C= ECHO_N= ECHO_T=
37719case `echo -n x` in #(((((
37720-n*)
37721  case `echo 'xy\c'` in
37722  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
37723  xy)  ECHO_C='\c';;
37724  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
37725       ECHO_T='	';;
37726  esac;;
37727*)
37728  ECHO_N='-n';;
37729esac
37730
37731rm -f conf$$ conf$$.exe conf$$.file
37732if test -d conf$$.dir; then
37733  rm -f conf$$.dir/conf$$.file
37734else
37735  rm -f conf$$.dir
37736  mkdir conf$$.dir 2>/dev/null
37737fi
37738if (echo >conf$$.file) 2>/dev/null; then
37739  if ln -s conf$$.file conf$$ 2>/dev/null; then
37740    as_ln_s='ln -s'
37741    # ... but there are two gotchas:
37742    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37743    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
37744    # In both cases, we have to default to `cp -pR'.
37745    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
37746      as_ln_s='cp -pR'
37747  elif ln conf$$.file conf$$ 2>/dev/null; then
37748    as_ln_s=ln
37749  else
37750    as_ln_s='cp -pR'
37751  fi
37752else
37753  as_ln_s='cp -pR'
37754fi
37755rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37756rmdir conf$$.dir 2>/dev/null
37757
37758
37759# as_fn_mkdir_p
37760# -------------
37761# Create "$as_dir" as a directory, including parents if necessary.
37762as_fn_mkdir_p ()
37763{
37764
37765  case $as_dir in #(
37766  -*) as_dir=./$as_dir;;
37767  esac
37768  test -d "$as_dir" || eval $as_mkdir_p || {
37769    as_dirs=
37770    while :; do
37771      case $as_dir in #(
37772      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37773      *) as_qdir=$as_dir;;
37774      esac
37775      as_dirs="'$as_qdir' $as_dirs"
37776      as_dir=`$as_dirname -- "$as_dir" ||
37777$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37778	 X"$as_dir" : 'X\(//\)[^/]' \| \
37779	 X"$as_dir" : 'X\(//\)$' \| \
37780	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37781$as_echo X"$as_dir" |
37782    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37783	    s//\1/
37784	    q
37785	  }
37786	  /^X\(\/\/\)[^/].*/{
37787	    s//\1/
37788	    q
37789	  }
37790	  /^X\(\/\/\)$/{
37791	    s//\1/
37792	    q
37793	  }
37794	  /^X\(\/\).*/{
37795	    s//\1/
37796	    q
37797	  }
37798	  s/.*/./; q'`
37799      test -d "$as_dir" && break
37800    done
37801    test -z "$as_dirs" || eval "mkdir $as_dirs"
37802  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
37803
37804
37805} # as_fn_mkdir_p
37806if mkdir -p . 2>/dev/null; then
37807  as_mkdir_p='mkdir -p "$as_dir"'
37808else
37809  test -d ./-p && rmdir ./-p
37810  as_mkdir_p=false
37811fi
37812
37813
37814# as_fn_executable_p FILE
37815# -----------------------
37816# Test if FILE is an executable regular file.
37817as_fn_executable_p ()
37818{
37819  test -f "$1" && test -x "$1"
37820} # as_fn_executable_p
37821as_test_x='test -x'
37822as_executable_p=as_fn_executable_p
37823
37824# Sed expression to map a string onto a valid CPP name.
37825as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37826
37827# Sed expression to map a string onto a valid variable name.
37828as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37829
37830
37831exec 6>&1
37832## ----------------------------------- ##
37833## Main body of $CONFIG_STATUS script. ##
37834## ----------------------------------- ##
37835_ASEOF
37836test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
37837
37838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37839# Save the log message, to keep $0 and so on meaningful, and to
37840# report actual input values of CONFIG_FILES etc. instead of their
37841# values after options handling.
37842ac_log="
37843This file was extended by ntp $as_me 4.2.8p6, which was
37844generated by GNU Autoconf 2.69.  Invocation command line was
37845
37846  CONFIG_FILES    = $CONFIG_FILES
37847  CONFIG_HEADERS  = $CONFIG_HEADERS
37848  CONFIG_LINKS    = $CONFIG_LINKS
37849  CONFIG_COMMANDS = $CONFIG_COMMANDS
37850  $ $0 $@
37851
37852on `(hostname || uname -n) 2>/dev/null | sed 1q`
37853"
37854
37855_ACEOF
37856
37857case $ac_config_files in *"
37858"*) set x $ac_config_files; shift; ac_config_files=$*;;
37859esac
37860
37861case $ac_config_headers in *"
37862"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37863esac
37864
37865
37866cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37867# Files that config.status was made for.
37868config_files="$ac_config_files"
37869config_headers="$ac_config_headers"
37870config_commands="$ac_config_commands"
37871
37872_ACEOF
37873
37874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37875ac_cs_usage="\
37876\`$as_me' instantiates files and other configuration actions
37877from templates according to the current configuration.  Unless the files
37878and actions are specified as TAGs, all are instantiated by default.
37879
37880Usage: $0 [OPTION]... [TAG]...
37881
37882  -h, --help       print this help, then exit
37883  -V, --version    print version number and configuration settings, then exit
37884      --config     print configuration, then exit
37885  -q, --quiet, --silent
37886                   do not print progress messages
37887  -d, --debug      don't remove temporary files
37888      --recheck    update $as_me by reconfiguring in the same conditions
37889      --file=FILE[:TEMPLATE]
37890                   instantiate the configuration file FILE
37891      --header=FILE[:TEMPLATE]
37892                   instantiate the configuration header FILE
37893
37894Configuration files:
37895$config_files
37896
37897Configuration headers:
37898$config_headers
37899
37900Configuration commands:
37901$config_commands
37902
37903Report bugs to <http://bugs.ntp.org./>.
37904ntp home page: <http://www.ntp.org./>."
37905
37906_ACEOF
37907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37908ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
37909ac_cs_version="\\
37910ntp config.status 4.2.8p6
37911configured by $0, generated by GNU Autoconf 2.69,
37912  with options \\"\$ac_cs_config\\"
37913
37914Copyright (C) 2012 Free Software Foundation, Inc.
37915This config.status script is free software; the Free Software Foundation
37916gives unlimited permission to copy, distribute and modify it."
37917
37918ac_pwd='$ac_pwd'
37919srcdir='$srcdir'
37920INSTALL='$INSTALL'
37921MKDIR_P='$MKDIR_P'
37922AWK='$AWK'
37923test -n "\$AWK" || AWK=awk
37924_ACEOF
37925
37926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37927# The default lists apply if the user does not specify any file.
37928ac_need_defaults=:
37929while test $# != 0
37930do
37931  case $1 in
37932  --*=?*)
37933    ac_option=`expr "X$1" : 'X\([^=]*\)='`
37934    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37935    ac_shift=:
37936    ;;
37937  --*=)
37938    ac_option=`expr "X$1" : 'X\([^=]*\)='`
37939    ac_optarg=
37940    ac_shift=:
37941    ;;
37942  *)
37943    ac_option=$1
37944    ac_optarg=$2
37945    ac_shift=shift
37946    ;;
37947  esac
37948
37949  case $ac_option in
37950  # Handling of the options.
37951  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37952    ac_cs_recheck=: ;;
37953  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37954    $as_echo "$ac_cs_version"; exit ;;
37955  --config | --confi | --conf | --con | --co | --c )
37956    $as_echo "$ac_cs_config"; exit ;;
37957  --debug | --debu | --deb | --de | --d | -d )
37958    debug=: ;;
37959  --file | --fil | --fi | --f )
37960    $ac_shift
37961    case $ac_optarg in
37962    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37963    '') as_fn_error $? "missing file argument" ;;
37964    esac
37965    as_fn_append CONFIG_FILES " '$ac_optarg'"
37966    ac_need_defaults=false;;
37967  --header | --heade | --head | --hea )
37968    $ac_shift
37969    case $ac_optarg in
37970    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37971    esac
37972    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
37973    ac_need_defaults=false;;
37974  --he | --h)
37975    # Conflict between --help and --header
37976    as_fn_error $? "ambiguous option: \`$1'
37977Try \`$0 --help' for more information.";;
37978  --help | --hel | -h )
37979    $as_echo "$ac_cs_usage"; exit ;;
37980  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37981  | -silent | --silent | --silen | --sile | --sil | --si | --s)
37982    ac_cs_silent=: ;;
37983
37984  # This is an error.
37985  -*) as_fn_error $? "unrecognized option: \`$1'
37986Try \`$0 --help' for more information." ;;
37987
37988  *) as_fn_append ac_config_targets " $1"
37989     ac_need_defaults=false ;;
37990
37991  esac
37992  shift
37993done
37994
37995ac_configure_extra_args=
37996
37997if $ac_cs_silent; then
37998  exec 6>/dev/null
37999  ac_configure_extra_args="$ac_configure_extra_args --silent"
38000fi
38001
38002_ACEOF
38003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38004if \$ac_cs_recheck; then
38005  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
38006  shift
38007  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
38008  CONFIG_SHELL='$SHELL'
38009  export CONFIG_SHELL
38010  exec "\$@"
38011fi
38012
38013_ACEOF
38014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38015exec 5>>config.log
38016{
38017  echo
38018  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
38019## Running $as_me. ##
38020_ASBOX
38021  $as_echo "$ac_log"
38022} >&5
38023
38024_ACEOF
38025cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38026#
38027# INIT-COMMANDS
38028#
38029AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
38030
38031
38032# The HP-UX ksh and POSIX shell print the target directory to stdout
38033# if CDPATH is set.
38034(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
38035
38036sed_quote_subst='$sed_quote_subst'
38037double_quote_subst='$double_quote_subst'
38038delay_variable_subst='$delay_variable_subst'
38039enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
38040macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
38041macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
38042enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
38043pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
38044enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
38045SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
38046ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
38047host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
38048host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
38049host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
38050build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
38051build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
38052build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
38053SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
38054Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
38055GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
38056EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
38057FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
38058LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
38059NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
38060LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
38061max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
38062ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
38063exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
38064lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
38065lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
38066lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
38067lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
38068lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
38069reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
38070reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
38071OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
38072deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
38073file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
38074file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
38075want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
38076DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
38077sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
38078AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
38079AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
38080archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
38081STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
38082RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
38083old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38084old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38085old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
38086lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
38087CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
38088CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
38089compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
38090GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
38091lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
38092lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
38093lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
38094lt_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"`'
38095nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
38096lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
38097objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
38098MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
38099lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
38100lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
38101lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
38102lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
38103lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
38104need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
38105MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
38106DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
38107NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
38108LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
38109OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
38110OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
38111libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
38112shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
38113extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38114archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
38115enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
38116export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
38117whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
38118compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
38119old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
38120old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38121archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
38122archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38123module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
38124module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38125with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
38126allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
38127no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
38128hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
38129hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
38130hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
38131hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
38132hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
38133hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
38134hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
38135hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
38136inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
38137link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
38138always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
38139export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
38140exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
38141include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
38142prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
38143postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
38144file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
38145variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
38146need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
38147need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
38148version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
38149runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
38150shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
38151shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
38152libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
38153library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
38154soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
38155install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
38156postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38157postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38158finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
38159finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
38160hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
38161sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
38162sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
38163hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
38164enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
38165enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
38166enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
38167old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
38168striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
38169compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
38170predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
38171postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
38172predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
38173postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
38174compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
38175LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
38176reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
38177reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38178old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38179compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
38180GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
38181lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
38182lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
38183lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
38184lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
38185lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
38186archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
38187enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
38188export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38189whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38190compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
38191old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38192old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38193archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38194archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38195module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38196module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38197with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
38198allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
38199no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
38200hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38201hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
38202hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
38203hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
38204hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
38205hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
38206hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
38207hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
38208inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
38209link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
38210always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
38211export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38212exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
38213include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
38214prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38215postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38216file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
38217hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
38218compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
38219predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
38220postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
38221predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
38222postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
38223compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
38224
38225LTCC='$LTCC'
38226LTCFLAGS='$LTCFLAGS'
38227compiler='$compiler_DEFAULT'
38228
38229# A function that is used when there is no print builtin or printf.
38230func_fallback_echo ()
38231{
38232  eval 'cat <<_LTECHO_EOF
38233\$1
38234_LTECHO_EOF'
38235}
38236
38237# Quote evaled strings.
38238for var in SHELL \
38239ECHO \
38240SED \
38241GREP \
38242EGREP \
38243FGREP \
38244LD \
38245NM \
38246LN_S \
38247lt_SP2NL \
38248lt_NL2SP \
38249reload_flag \
38250OBJDUMP \
38251deplibs_check_method \
38252file_magic_cmd \
38253file_magic_glob \
38254want_nocaseglob \
38255DLLTOOL \
38256sharedlib_from_linklib_cmd \
38257AR \
38258AR_FLAGS \
38259archiver_list_spec \
38260STRIP \
38261RANLIB \
38262CC \
38263CFLAGS \
38264compiler \
38265lt_cv_sys_global_symbol_pipe \
38266lt_cv_sys_global_symbol_to_cdecl \
38267lt_cv_sys_global_symbol_to_c_name_address \
38268lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
38269nm_file_list_spec \
38270lt_prog_compiler_no_builtin_flag \
38271lt_prog_compiler_pic \
38272lt_prog_compiler_wl \
38273lt_prog_compiler_static \
38274lt_cv_prog_compiler_c_o \
38275need_locks \
38276MANIFEST_TOOL \
38277DSYMUTIL \
38278NMEDIT \
38279LIPO \
38280OTOOL \
38281OTOOL64 \
38282shrext_cmds \
38283export_dynamic_flag_spec \
38284whole_archive_flag_spec \
38285compiler_needs_object \
38286with_gnu_ld \
38287allow_undefined_flag \
38288no_undefined_flag \
38289hardcode_libdir_flag_spec \
38290hardcode_libdir_flag_spec_ld \
38291hardcode_libdir_separator \
38292exclude_expsyms \
38293include_expsyms \
38294file_list_spec \
38295variables_saved_for_relink \
38296libname_spec \
38297library_names_spec \
38298soname_spec \
38299install_override_mode \
38300finish_eval \
38301old_striplib \
38302striplib \
38303compiler_lib_search_dirs \
38304predep_objects \
38305postdep_objects \
38306predeps \
38307postdeps \
38308compiler_lib_search_path \
38309LD_CXX \
38310reload_flag_CXX \
38311compiler_CXX \
38312lt_prog_compiler_no_builtin_flag_CXX \
38313lt_prog_compiler_pic_CXX \
38314lt_prog_compiler_wl_CXX \
38315lt_prog_compiler_static_CXX \
38316lt_cv_prog_compiler_c_o_CXX \
38317export_dynamic_flag_spec_CXX \
38318whole_archive_flag_spec_CXX \
38319compiler_needs_object_CXX \
38320with_gnu_ld_CXX \
38321allow_undefined_flag_CXX \
38322no_undefined_flag_CXX \
38323hardcode_libdir_flag_spec_CXX \
38324hardcode_libdir_flag_spec_ld_CXX \
38325hardcode_libdir_separator_CXX \
38326exclude_expsyms_CXX \
38327include_expsyms_CXX \
38328file_list_spec_CXX \
38329compiler_lib_search_dirs_CXX \
38330predep_objects_CXX \
38331postdep_objects_CXX \
38332predeps_CXX \
38333postdeps_CXX \
38334compiler_lib_search_path_CXX; do
38335    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38336    *[\\\\\\\`\\"\\\$]*)
38337      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
38338      ;;
38339    *)
38340      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38341      ;;
38342    esac
38343done
38344
38345# Double-quote double-evaled strings.
38346for var in reload_cmds \
38347old_postinstall_cmds \
38348old_postuninstall_cmds \
38349old_archive_cmds \
38350extract_expsyms_cmds \
38351old_archive_from_new_cmds \
38352old_archive_from_expsyms_cmds \
38353archive_cmds \
38354archive_expsym_cmds \
38355module_cmds \
38356module_expsym_cmds \
38357export_symbols_cmds \
38358prelink_cmds \
38359postlink_cmds \
38360postinstall_cmds \
38361postuninstall_cmds \
38362finish_cmds \
38363sys_lib_search_path_spec \
38364sys_lib_dlsearch_path_spec \
38365reload_cmds_CXX \
38366old_archive_cmds_CXX \
38367old_archive_from_new_cmds_CXX \
38368old_archive_from_expsyms_cmds_CXX \
38369archive_cmds_CXX \
38370archive_expsym_cmds_CXX \
38371module_cmds_CXX \
38372module_expsym_cmds_CXX \
38373export_symbols_cmds_CXX \
38374prelink_cmds_CXX \
38375postlink_cmds_CXX; do
38376    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38377    *[\\\\\\\`\\"\\\$]*)
38378      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
38379      ;;
38380    *)
38381      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38382      ;;
38383    esac
38384done
38385
38386ac_aux_dir='$ac_aux_dir'
38387xsi_shell='$xsi_shell'
38388lt_shell_append='$lt_shell_append'
38389
38390# See if we are running on zsh, and set the options which allow our
38391# commands through without removal of \ escapes INIT.
38392if test -n "\${ZSH_VERSION+set}" ; then
38393   setopt NO_GLOB_SUBST
38394fi
38395
38396
38397    PACKAGE='$PACKAGE'
38398    VERSION='$VERSION'
38399    TIMESTAMP='$TIMESTAMP'
38400    RM='$RM'
38401    ofile='$ofile'
38402
38403
38404
38405
38406
38407
38408_ACEOF
38409
38410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38411
38412# Handling of arguments.
38413for ac_config_target in $ac_config_targets
38414do
38415  case $ac_config_target in
38416    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
38417    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
38418    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
38419    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
38420    "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
38421    "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
38422    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
38423    "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
38424    "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
38425    "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
38426    "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
38427    "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
38428    "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
38429    "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
38430    "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
38431    "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
38432    "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
38433    "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
38434    "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;;
38435    "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
38436    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
38437    "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
38438    "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
38439    "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
38440    "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
38441    "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
38442    "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
38443    "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
38444    "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
38445    "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
38446    "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
38447    "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
38448    "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
38449    "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
38450    "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
38451    "scripts/update-leap/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/Makefile" ;;
38452    "scripts/update-leap/update-leap") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/update-leap" ;;
38453    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
38454    "tests/bug-2803/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bug-2803/Makefile" ;;
38455    "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
38456    "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
38457    "tests/ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpq/Makefile" ;;
38458    "tests/sandbox/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sandbox/Makefile" ;;
38459    "tests/sec-2853/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sec-2853/Makefile" ;;
38460    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
38461
38462  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
38463  esac
38464done
38465
38466
38467# If the user did not use the arguments to specify the items to instantiate,
38468# then the envvar interface is used.  Set only those that are not.
38469# We use the long form for the default assignment because of an extremely
38470# bizarre bug on SunOS 4.1.3.
38471if $ac_need_defaults; then
38472  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38473  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38474  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38475fi
38476
38477# Have a temporary directory for convenience.  Make it in the build tree
38478# simply because there is no reason against having it here, and in addition,
38479# creating and moving files from /tmp can sometimes cause problems.
38480# Hook for its removal unless debugging.
38481# Note that there is a small window in which the directory will not be cleaned:
38482# after its creation but before its name has been assigned to `$tmp'.
38483$debug ||
38484{
38485  tmp= ac_tmp=
38486  trap 'exit_status=$?
38487  : "${ac_tmp:=$tmp}"
38488  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
38489' 0
38490  trap 'as_fn_exit 1' 1 2 13 15
38491}
38492# Create a (secure) tmp directory for tmp files.
38493
38494{
38495  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
38496  test -d "$tmp"
38497}  ||
38498{
38499  tmp=./conf$$-$RANDOM
38500  (umask 077 && mkdir "$tmp")
38501} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
38502ac_tmp=$tmp
38503
38504# Set up the scripts for CONFIG_FILES section.
38505# No need to generate them if there are no CONFIG_FILES.
38506# This happens for instance with `./config.status config.h'.
38507if test -n "$CONFIG_FILES"; then
38508
38509if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
38510  ac_cs_awk_getline=:
38511  ac_cs_awk_pipe_init=
38512  ac_cs_awk_read_file='
38513      while ((getline aline < (F[key])) > 0)
38514	print(aline)
38515      close(F[key])'
38516  ac_cs_awk_pipe_fini=
38517else
38518  ac_cs_awk_getline=false
38519  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
38520  ac_cs_awk_read_file='
38521      print "|#_!!_#|"
38522      print "cat " F[key] " &&"
38523      '$ac_cs_awk_pipe_init
38524  # The final `:' finishes the AND list.
38525  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
38526fi
38527ac_cr=`echo X | tr X '\015'`
38528# On cygwin, bash can eat \r inside `` if the user requested igncr.
38529# But we know of no other shell where ac_cr would be empty at this
38530# point, so we can use a bashism as a fallback.
38531if test "x$ac_cr" = x; then
38532  eval ac_cr=\$\'\\r\'
38533fi
38534ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
38535if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
38536  ac_cs_awk_cr='\\r'
38537else
38538  ac_cs_awk_cr=$ac_cr
38539fi
38540
38541echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
38542_ACEOF
38543
38544# Create commands to substitute file output variables.
38545{
38546  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
38547  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
38548  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
38549  echo "_ACAWK" &&
38550  echo "_ACEOF"
38551} >conf$$files.sh &&
38552. ./conf$$files.sh ||
38553  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38554rm -f conf$$files.sh
38555
38556{
38557  echo "cat >conf$$subs.awk <<_ACEOF" &&
38558  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
38559  echo "_ACEOF"
38560} >conf$$subs.sh ||
38561  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38562ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
38563ac_delim='%!_!# '
38564for ac_last_try in false false false false false :; do
38565  . ./conf$$subs.sh ||
38566    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38567
38568  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
38569  if test $ac_delim_n = $ac_delim_num; then
38570    break
38571  elif $ac_last_try; then
38572    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38573  else
38574    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38575  fi
38576done
38577rm -f conf$$subs.sh
38578
38579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38580cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
38581_ACEOF
38582sed -n '
38583h
38584s/^/S["/; s/!.*/"]=/
38585p
38586g
38587s/^[^!]*!//
38588:repl
38589t repl
38590s/'"$ac_delim"'$//
38591t delim
38592:nl
38593h
38594s/\(.\{148\}\)..*/\1/
38595t more1
38596s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
38597p
38598n
38599b repl
38600:more1
38601s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38602p
38603g
38604s/.\{148\}//
38605t nl
38606:delim
38607h
38608s/\(.\{148\}\)..*/\1/
38609t more2
38610s/["\\]/\\&/g; s/^/"/; s/$/"/
38611p
38612b
38613:more2
38614s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38615p
38616g
38617s/.\{148\}//
38618t delim
38619' <conf$$subs.awk | sed '
38620/^[^""]/{
38621  N
38622  s/\n//
38623}
38624' >>$CONFIG_STATUS || ac_write_fail=1
38625rm -f conf$$subs.awk
38626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38627_ACAWK
38628cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
38629  for (key in S) S_is_set[key] = 1
38630  FS = ""
38631  \$ac_cs_awk_pipe_init
38632}
38633{
38634  line = $ 0
38635  nfields = split(line, field, "@")
38636  substed = 0
38637  len = length(field[1])
38638  for (i = 2; i < nfields; i++) {
38639    key = field[i]
38640    keylen = length(key)
38641    if (S_is_set[key]) {
38642      value = S[key]
38643      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38644      len += length(value) + length(field[++i])
38645      substed = 1
38646    } else
38647      len += 1 + keylen
38648  }
38649  if (nfields == 3 && !substed) {
38650    key = field[2]
38651    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
38652      \$ac_cs_awk_read_file
38653      next
38654    }
38655  }
38656  print line
38657}
38658\$ac_cs_awk_pipe_fini
38659_ACAWK
38660_ACEOF
38661cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38662if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38663  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38664else
38665  cat
38666fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
38667  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
38668_ACEOF
38669
38670# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38671# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
38672# trailing colons and then remove the whole line if VPATH becomes empty
38673# (actually we leave an empty line to preserve line numbers).
38674if test "x$srcdir" = x.; then
38675  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
38676h
38677s///
38678s/^/:/
38679s/[	 ]*$/:/
38680s/:\$(srcdir):/:/g
38681s/:\${srcdir}:/:/g
38682s/:@srcdir@:/:/g
38683s/^:*//
38684s/:*$//
38685x
38686s/\(=[	 ]*\).*/\1/
38687G
38688s/\n//
38689s/^[^=]*=[	 ]*$//
38690}'
38691fi
38692
38693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38694fi # test -n "$CONFIG_FILES"
38695
38696# Set up the scripts for CONFIG_HEADERS section.
38697# No need to generate them if there are no CONFIG_HEADERS.
38698# This happens for instance with `./config.status Makefile'.
38699if test -n "$CONFIG_HEADERS"; then
38700cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
38701BEGIN {
38702_ACEOF
38703
38704# Transform confdefs.h into an awk script `defines.awk', embedded as
38705# here-document in config.status, that substitutes the proper values into
38706# config.h.in to produce config.h.
38707
38708# Create a delimiter string that does not exist in confdefs.h, to ease
38709# handling of long lines.
38710ac_delim='%!_!# '
38711for ac_last_try in false false :; do
38712  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
38713  if test -z "$ac_tt"; then
38714    break
38715  elif $ac_last_try; then
38716    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
38717  else
38718    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38719  fi
38720done
38721
38722# For the awk script, D is an array of macro values keyed by name,
38723# likewise P contains macro parameters if any.  Preserve backslash
38724# newline sequences.
38725
38726ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38727sed -n '
38728s/.\{148\}/&'"$ac_delim"'/g
38729t rset
38730:rset
38731s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
38732t def
38733d
38734:def
38735s/\\$//
38736t bsnl
38737s/["\\]/\\&/g
38738s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
38739D["\1"]=" \3"/p
38740s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
38741d
38742:bsnl
38743s/["\\]/\\&/g
38744s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
38745D["\1"]=" \3\\\\\\n"\\/p
38746t cont
38747s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38748t cont
38749d
38750:cont
38751n
38752s/.\{148\}/&'"$ac_delim"'/g
38753t clear
38754:clear
38755s/\\$//
38756t bsnlc
38757s/["\\]/\\&/g; s/^/"/; s/$/"/p
38758d
38759:bsnlc
38760s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38761b cont
38762' <confdefs.h | sed '
38763s/'"$ac_delim"'/"\\\
38764"/g' >>$CONFIG_STATUS || ac_write_fail=1
38765
38766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38767  for (key in D) D_is_set[key] = 1
38768  FS = ""
38769}
38770/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38771  line = \$ 0
38772  split(line, arg, " ")
38773  if (arg[1] == "#") {
38774    defundef = arg[2]
38775    mac1 = arg[3]
38776  } else {
38777    defundef = substr(arg[1], 2)
38778    mac1 = arg[2]
38779  }
38780  split(mac1, mac2, "(") #)
38781  macro = mac2[1]
38782  prefix = substr(line, 1, index(line, defundef) - 1)
38783  if (D_is_set[macro]) {
38784    # Preserve the white space surrounding the "#".
38785    print prefix "define", macro P[macro] D[macro]
38786    next
38787  } else {
38788    # Replace #undef with comments.  This is necessary, for example,
38789    # in the case of _POSIX_SOURCE, which is predefined and required
38790    # on some systems where configure will not decide to define it.
38791    if (defundef == "undef") {
38792      print "/*", prefix defundef, macro, "*/"
38793      next
38794    }
38795  }
38796}
38797{ print }
38798_ACAWK
38799_ACEOF
38800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38801  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
38802fi # test -n "$CONFIG_HEADERS"
38803
38804
38805eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
38806shift
38807for ac_tag
38808do
38809  case $ac_tag in
38810  :[FHLC]) ac_mode=$ac_tag; continue;;
38811  esac
38812  case $ac_mode$ac_tag in
38813  :[FHL]*:*);;
38814  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
38815  :[FH]-) ac_tag=-:-;;
38816  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38817  esac
38818  ac_save_IFS=$IFS
38819  IFS=:
38820  set x $ac_tag
38821  IFS=$ac_save_IFS
38822  shift
38823  ac_file=$1
38824  shift
38825
38826  case $ac_mode in
38827  :L) ac_source=$1;;
38828  :[FH])
38829    ac_file_inputs=
38830    for ac_f
38831    do
38832      case $ac_f in
38833      -) ac_f="$ac_tmp/stdin";;
38834      *) # Look for the file first in the build tree, then in the source tree
38835	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
38836	 # because $ac_f cannot contain `:'.
38837	 test -f "$ac_f" ||
38838	   case $ac_f in
38839	   [\\/$]*) false;;
38840	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38841	   esac ||
38842	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
38843      esac
38844      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
38845      as_fn_append ac_file_inputs " '$ac_f'"
38846    done
38847
38848    # Let's still pretend it is `configure' which instantiates (i.e., don't
38849    # use $as_me), people would be surprised to read:
38850    #    /* config.h.  Generated by config.status.  */
38851    configure_input='Generated from '`
38852	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
38853	`' by configure.'
38854    if test x"$ac_file" != x-; then
38855      configure_input="$ac_file.  $configure_input"
38856      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
38857$as_echo "$as_me: creating $ac_file" >&6;}
38858    fi
38859    # Neutralize special characters interpreted by sed in replacement strings.
38860    case $configure_input in #(
38861    *\&* | *\|* | *\\* )
38862       ac_sed_conf_input=`$as_echo "$configure_input" |
38863       sed 's/[\\\\&|]/\\\\&/g'`;; #(
38864    *) ac_sed_conf_input=$configure_input;;
38865    esac
38866
38867    case $ac_tag in
38868    *:-:* | *:-) cat >"$ac_tmp/stdin" \
38869      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
38870    esac
38871    ;;
38872  esac
38873
38874  ac_dir=`$as_dirname -- "$ac_file" ||
38875$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38876	 X"$ac_file" : 'X\(//\)[^/]' \| \
38877	 X"$ac_file" : 'X\(//\)$' \| \
38878	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38879$as_echo X"$ac_file" |
38880    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38881	    s//\1/
38882	    q
38883	  }
38884	  /^X\(\/\/\)[^/].*/{
38885	    s//\1/
38886	    q
38887	  }
38888	  /^X\(\/\/\)$/{
38889	    s//\1/
38890	    q
38891	  }
38892	  /^X\(\/\).*/{
38893	    s//\1/
38894	    q
38895	  }
38896	  s/.*/./; q'`
38897  as_dir="$ac_dir"; as_fn_mkdir_p
38898  ac_builddir=.
38899
38900case "$ac_dir" in
38901.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38902*)
38903  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38904  # A ".." for each directory in $ac_dir_suffix.
38905  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38906  case $ac_top_builddir_sub in
38907  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38908  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38909  esac ;;
38910esac
38911ac_abs_top_builddir=$ac_pwd
38912ac_abs_builddir=$ac_pwd$ac_dir_suffix
38913# for backward compatibility:
38914ac_top_builddir=$ac_top_build_prefix
38915
38916case $srcdir in
38917  .)  # We are building in place.
38918    ac_srcdir=.
38919    ac_top_srcdir=$ac_top_builddir_sub
38920    ac_abs_top_srcdir=$ac_pwd ;;
38921  [\\/]* | ?:[\\/]* )  # Absolute name.
38922    ac_srcdir=$srcdir$ac_dir_suffix;
38923    ac_top_srcdir=$srcdir
38924    ac_abs_top_srcdir=$srcdir ;;
38925  *) # Relative name.
38926    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38927    ac_top_srcdir=$ac_top_build_prefix$srcdir
38928    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38929esac
38930ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38931
38932
38933  case $ac_mode in
38934  :F)
38935  #
38936  # CONFIG_FILE
38937  #
38938
38939  case $INSTALL in
38940  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38941  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38942  esac
38943  ac_MKDIR_P=$MKDIR_P
38944  case $MKDIR_P in
38945  [\\/$]* | ?:[\\/]* ) ;;
38946  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38947  esac
38948_ACEOF
38949
38950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38951# If the template does not know about datarootdir, expand it.
38952# FIXME: This hack should be removed a few years after 2.60.
38953ac_datarootdir_hack=; ac_datarootdir_seen=
38954ac_sed_dataroot='
38955/datarootdir/ {
38956  p
38957  q
38958}
38959/@datadir@/p
38960/@docdir@/p
38961/@infodir@/p
38962/@localedir@/p
38963/@mandir@/p'
38964case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38965*datarootdir*) ac_datarootdir_seen=yes;;
38966*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
38967  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
38968$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38969_ACEOF
38970cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38971  ac_datarootdir_hack='
38972  s&@datadir@&$datadir&g
38973  s&@docdir@&$docdir&g
38974  s&@infodir@&$infodir&g
38975  s&@localedir@&$localedir&g
38976  s&@mandir@&$mandir&g
38977  s&\\\${datarootdir}&$datarootdir&g' ;;
38978esac
38979_ACEOF
38980
38981# Neutralize VPATH when `$srcdir' = `.'.
38982# Shell code in configure.ac might set extrasub.
38983# FIXME: do we really want to maintain this feature?
38984cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38985ac_sed_extra="$ac_vpsub
38986$extrasub
38987_ACEOF
38988cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38989:t
38990/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38991s|@configure_input@|$ac_sed_conf_input|;t t
38992s&@top_builddir@&$ac_top_builddir_sub&;t t
38993s&@top_build_prefix@&$ac_top_build_prefix&;t t
38994s&@srcdir@&$ac_srcdir&;t t
38995s&@abs_srcdir@&$ac_abs_srcdir&;t t
38996s&@top_srcdir@&$ac_top_srcdir&;t t
38997s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38998s&@builddir@&$ac_builddir&;t t
38999s&@abs_builddir@&$ac_abs_builddir&;t t
39000s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39001s&@INSTALL@&$ac_INSTALL&;t t
39002s&@MKDIR_P@&$ac_MKDIR_P&;t t
39003$ac_datarootdir_hack
39004"
39005eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
39006if $ac_cs_awk_getline; then
39007  $AWK -f "$ac_tmp/subs.awk"
39008else
39009  $AWK -f "$ac_tmp/subs.awk" | $SHELL
39010fi \
39011  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39012
39013test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39014  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
39015  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
39016      "$ac_tmp/out"`; test -z "$ac_out"; } &&
39017  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39018which seems to be undefined.  Please make sure it is defined" >&5
39019$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39020which seems to be undefined.  Please make sure it is defined" >&2;}
39021
39022  rm -f "$ac_tmp/stdin"
39023  case $ac_file in
39024  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
39025  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
39026  esac \
39027  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39028 ;;
39029  :H)
39030  #
39031  # CONFIG_HEADER
39032  #
39033  if test x"$ac_file" != x-; then
39034    {
39035      $as_echo "/* $configure_input  */" \
39036      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
39037    } >"$ac_tmp/config.h" \
39038      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39039    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
39040      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
39041$as_echo "$as_me: $ac_file is unchanged" >&6;}
39042    else
39043      rm -f "$ac_file"
39044      mv "$ac_tmp/config.h" "$ac_file" \
39045	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
39046    fi
39047  else
39048    $as_echo "/* $configure_input  */" \
39049      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
39050      || as_fn_error $? "could not create -" "$LINENO" 5
39051  fi
39052# Compute "$ac_file"'s index in $config_headers.
39053_am_arg="$ac_file"
39054_am_stamp_count=1
39055for _am_header in $config_headers :; do
39056  case $_am_header in
39057    $_am_arg | $_am_arg:* )
39058      break ;;
39059    * )
39060      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39061  esac
39062done
39063echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
39064$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39065	 X"$_am_arg" : 'X\(//\)[^/]' \| \
39066	 X"$_am_arg" : 'X\(//\)$' \| \
39067	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
39068$as_echo X"$_am_arg" |
39069    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39070	    s//\1/
39071	    q
39072	  }
39073	  /^X\(\/\/\)[^/].*/{
39074	    s//\1/
39075	    q
39076	  }
39077	  /^X\(\/\/\)$/{
39078	    s//\1/
39079	    q
39080	  }
39081	  /^X\(\/\).*/{
39082	    s//\1/
39083	    q
39084	  }
39085	  s/.*/./; q'`/stamp-h$_am_stamp_count
39086 ;;
39087
39088  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
39089$as_echo "$as_me: executing $ac_file commands" >&6;}
39090 ;;
39091  esac
39092
39093
39094  case $ac_file$ac_mode in
39095    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
39096  # Older Autoconf quotes --file arguments for eval, but not when files
39097  # are listed without --file.  Let's play safe and only enable the eval
39098  # if we detect the quoting.
39099  case $CONFIG_FILES in
39100  *\'*) eval set x "$CONFIG_FILES" ;;
39101  *)   set x $CONFIG_FILES ;;
39102  esac
39103  shift
39104  for mf
39105  do
39106    # Strip MF so we end up with the name of the file.
39107    mf=`echo "$mf" | sed -e 's/:.*$//'`
39108    # Check whether this is an Automake generated Makefile or not.
39109    # We used to match only the files named 'Makefile.in', but
39110    # some people rename them; so instead we look at the file content.
39111    # Grep'ing the first line is not enough: some people post-process
39112    # each Makefile.in and add a new line on top of each file to say so.
39113    # Grep'ing the whole file is not good either: AIX grep has a line
39114    # limit of 2048, but all sed's we know have understand at least 4000.
39115    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
39116      dirpart=`$as_dirname -- "$mf" ||
39117$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39118	 X"$mf" : 'X\(//\)[^/]' \| \
39119	 X"$mf" : 'X\(//\)$' \| \
39120	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39121$as_echo X"$mf" |
39122    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39123	    s//\1/
39124	    q
39125	  }
39126	  /^X\(\/\/\)[^/].*/{
39127	    s//\1/
39128	    q
39129	  }
39130	  /^X\(\/\/\)$/{
39131	    s//\1/
39132	    q
39133	  }
39134	  /^X\(\/\).*/{
39135	    s//\1/
39136	    q
39137	  }
39138	  s/.*/./; q'`
39139    else
39140      continue
39141    fi
39142    # Extract the definition of DEPDIR, am__include, and am__quote
39143    # from the Makefile without running 'make'.
39144    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
39145    test -z "$DEPDIR" && continue
39146    am__include=`sed -n 's/^am__include = //p' < "$mf"`
39147    test -z "$am__include" && continue
39148    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
39149    # Find all dependency output files, they are included files with
39150    # $(DEPDIR) in their names.  We invoke sed twice because it is the
39151    # simplest approach to changing $(DEPDIR) to its actual value in the
39152    # expansion.
39153    for file in `sed -n "
39154      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39155	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
39156      # Make sure the directory exists.
39157      test -f "$dirpart/$file" && continue
39158      fdir=`$as_dirname -- "$file" ||
39159$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39160	 X"$file" : 'X\(//\)[^/]' \| \
39161	 X"$file" : 'X\(//\)$' \| \
39162	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39163$as_echo X"$file" |
39164    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39165	    s//\1/
39166	    q
39167	  }
39168	  /^X\(\/\/\)[^/].*/{
39169	    s//\1/
39170	    q
39171	  }
39172	  /^X\(\/\/\)$/{
39173	    s//\1/
39174	    q
39175	  }
39176	  /^X\(\/\).*/{
39177	    s//\1/
39178	    q
39179	  }
39180	  s/.*/./; q'`
39181      as_dir=$dirpart/$fdir; as_fn_mkdir_p
39182      # echo "creating $dirpart/$file"
39183      echo '# dummy' > "$dirpart/$file"
39184    done
39185  done
39186}
39187 ;;
39188    "libtool":C)
39189
39190    # See if we are running on zsh, and set the options which allow our
39191    # commands through without removal of \ escapes.
39192    if test -n "${ZSH_VERSION+set}" ; then
39193      setopt NO_GLOB_SUBST
39194    fi
39195
39196    cfgfile="${ofile}T"
39197    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
39198    $RM "$cfgfile"
39199
39200    cat <<_LT_EOF >> "$cfgfile"
39201#! $SHELL
39202
39203# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
39204# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
39205# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
39206# NOTE: Changes made to this file will be lost: look at ltmain.sh.
39207#
39208#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
39209#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
39210#                 Inc.
39211#   Written by Gordon Matzigkeit, 1996
39212#
39213#   This file is part of GNU Libtool.
39214#
39215# GNU Libtool is free software; you can redistribute it and/or
39216# modify it under the terms of the GNU General Public License as
39217# published by the Free Software Foundation; either version 2 of
39218# the License, or (at your option) any later version.
39219#
39220# As a special exception to the GNU General Public License,
39221# if you distribute this file as part of a program or library that
39222# is built using GNU Libtool, you may include this file under the
39223# same distribution terms that you use for the rest of that program.
39224#
39225# GNU Libtool is distributed in the hope that it will be useful,
39226# but WITHOUT ANY WARRANTY; without even the implied warranty of
39227# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
39228# GNU General Public License for more details.
39229#
39230# You should have received a copy of the GNU General Public License
39231# along with GNU Libtool; see the file COPYING.  If not, a copy
39232# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
39233# obtained by writing to the Free Software Foundation, Inc.,
39234# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
39235
39236
39237# The names of the tagged configurations supported by this script.
39238available_tags="CXX "
39239
39240# ### BEGIN LIBTOOL CONFIG
39241
39242# Whether or not to build shared libraries.
39243build_libtool_libs=$enable_shared
39244
39245# Which release of libtool.m4 was used?
39246macro_version=$macro_version
39247macro_revision=$macro_revision
39248
39249# Whether or not to build static libraries.
39250build_old_libs=$enable_static
39251
39252# What type of objects to build.
39253pic_mode=$pic_mode
39254
39255# Whether or not to optimize for fast installation.
39256fast_install=$enable_fast_install
39257
39258# Shell to use when invoking shell scripts.
39259SHELL=$lt_SHELL
39260
39261# An echo program that protects backslashes.
39262ECHO=$lt_ECHO
39263
39264# The host system.
39265host_alias=$host_alias
39266host=$host
39267host_os=$host_os
39268
39269# The build system.
39270build_alias=$build_alias
39271build=$build
39272build_os=$build_os
39273
39274# A sed program that does not truncate output.
39275SED=$lt_SED
39276
39277# Sed that helps us avoid accidentally triggering echo(1) options like -n.
39278Xsed="\$SED -e 1s/^X//"
39279
39280# A grep program that handles long lines.
39281GREP=$lt_GREP
39282
39283# An ERE matcher.
39284EGREP=$lt_EGREP
39285
39286# A literal string matcher.
39287FGREP=$lt_FGREP
39288
39289# A BSD- or MS-compatible name lister.
39290NM=$lt_NM
39291
39292# Whether we need soft or hard links.
39293LN_S=$lt_LN_S
39294
39295# What is the maximum length of a command?
39296max_cmd_len=$max_cmd_len
39297
39298# Object file suffix (normally "o").
39299objext=$ac_objext
39300
39301# Executable file suffix (normally "").
39302exeext=$exeext
39303
39304# whether the shell understands "unset".
39305lt_unset=$lt_unset
39306
39307# turn spaces into newlines.
39308SP2NL=$lt_lt_SP2NL
39309
39310# turn newlines into spaces.
39311NL2SP=$lt_lt_NL2SP
39312
39313# convert \$build file names to \$host format.
39314to_host_file_cmd=$lt_cv_to_host_file_cmd
39315
39316# convert \$build files to toolchain format.
39317to_tool_file_cmd=$lt_cv_to_tool_file_cmd
39318
39319# An object symbol dumper.
39320OBJDUMP=$lt_OBJDUMP
39321
39322# Method to check whether dependent libraries are shared objects.
39323deplibs_check_method=$lt_deplibs_check_method
39324
39325# Command to use when deplibs_check_method = "file_magic".
39326file_magic_cmd=$lt_file_magic_cmd
39327
39328# How to find potential files when deplibs_check_method = "file_magic".
39329file_magic_glob=$lt_file_magic_glob
39330
39331# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
39332want_nocaseglob=$lt_want_nocaseglob
39333
39334# DLL creation program.
39335DLLTOOL=$lt_DLLTOOL
39336
39337# Command to associate shared and link libraries.
39338sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
39339
39340# The archiver.
39341AR=$lt_AR
39342
39343# Flags to create an archive.
39344AR_FLAGS=$lt_AR_FLAGS
39345
39346# How to feed a file listing to the archiver.
39347archiver_list_spec=$lt_archiver_list_spec
39348
39349# A symbol stripping program.
39350STRIP=$lt_STRIP
39351
39352# Commands used to install an old-style archive.
39353RANLIB=$lt_RANLIB
39354old_postinstall_cmds=$lt_old_postinstall_cmds
39355old_postuninstall_cmds=$lt_old_postuninstall_cmds
39356
39357# Whether to use a lock for old archive extraction.
39358lock_old_archive_extraction=$lock_old_archive_extraction
39359
39360# A C compiler.
39361LTCC=$lt_CC
39362
39363# LTCC compiler flags.
39364LTCFLAGS=$lt_CFLAGS
39365
39366# Take the output of nm and produce a listing of raw symbols and C names.
39367global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
39368
39369# Transform the output of nm in a proper C declaration.
39370global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
39371
39372# Transform the output of nm in a C name address pair.
39373global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
39374
39375# Transform the output of nm in a C name address pair when lib prefix is needed.
39376global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
39377
39378# Specify filename containing input files for \$NM.
39379nm_file_list_spec=$lt_nm_file_list_spec
39380
39381# The root where to search for dependent libraries,and in which our libraries should be installed.
39382lt_sysroot=$lt_sysroot
39383
39384# The name of the directory that contains temporary libtool files.
39385objdir=$objdir
39386
39387# Used to examine libraries when file_magic_cmd begins with "file".
39388MAGIC_CMD=$MAGIC_CMD
39389
39390# Must we lock files when doing compilation?
39391need_locks=$lt_need_locks
39392
39393# Manifest tool.
39394MANIFEST_TOOL=$lt_MANIFEST_TOOL
39395
39396# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
39397DSYMUTIL=$lt_DSYMUTIL
39398
39399# Tool to change global to local symbols on Mac OS X.
39400NMEDIT=$lt_NMEDIT
39401
39402# Tool to manipulate fat objects and archives on Mac OS X.
39403LIPO=$lt_LIPO
39404
39405# ldd/readelf like tool for Mach-O binaries on Mac OS X.
39406OTOOL=$lt_OTOOL
39407
39408# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
39409OTOOL64=$lt_OTOOL64
39410
39411# Old archive suffix (normally "a").
39412libext=$libext
39413
39414# Shared library suffix (normally ".so").
39415shrext_cmds=$lt_shrext_cmds
39416
39417# The commands to extract the exported symbol list from a shared archive.
39418extract_expsyms_cmds=$lt_extract_expsyms_cmds
39419
39420# Variables whose values should be saved in libtool wrapper scripts and
39421# restored at link time.
39422variables_saved_for_relink=$lt_variables_saved_for_relink
39423
39424# Do we need the "lib" prefix for modules?
39425need_lib_prefix=$need_lib_prefix
39426
39427# Do we need a version for libraries?
39428need_version=$need_version
39429
39430# Library versioning type.
39431version_type=$version_type
39432
39433# Shared library runtime path variable.
39434runpath_var=$runpath_var
39435
39436# Shared library path variable.
39437shlibpath_var=$shlibpath_var
39438
39439# Is shlibpath searched before the hard-coded library search path?
39440shlibpath_overrides_runpath=$shlibpath_overrides_runpath
39441
39442# Format of library name prefix.
39443libname_spec=$lt_libname_spec
39444
39445# List of archive names.  First name is the real one, the rest are links.
39446# The last name is the one that the linker finds with -lNAME
39447library_names_spec=$lt_library_names_spec
39448
39449# The coded name of the library, if different from the real name.
39450soname_spec=$lt_soname_spec
39451
39452# Permission mode override for installation of shared libraries.
39453install_override_mode=$lt_install_override_mode
39454
39455# Command to use after installation of a shared archive.
39456postinstall_cmds=$lt_postinstall_cmds
39457
39458# Command to use after uninstallation of a shared archive.
39459postuninstall_cmds=$lt_postuninstall_cmds
39460
39461# Commands used to finish a libtool library installation in a directory.
39462finish_cmds=$lt_finish_cmds
39463
39464# As "finish_cmds", except a single script fragment to be evaled but
39465# not shown.
39466finish_eval=$lt_finish_eval
39467
39468# Whether we should hardcode library paths into libraries.
39469hardcode_into_libs=$hardcode_into_libs
39470
39471# Compile-time system search path for libraries.
39472sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
39473
39474# Run-time system search path for libraries.
39475sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
39476
39477# Whether dlopen is supported.
39478dlopen_support=$enable_dlopen
39479
39480# Whether dlopen of programs is supported.
39481dlopen_self=$enable_dlopen_self
39482
39483# Whether dlopen of statically linked programs is supported.
39484dlopen_self_static=$enable_dlopen_self_static
39485
39486# Commands to strip libraries.
39487old_striplib=$lt_old_striplib
39488striplib=$lt_striplib
39489
39490
39491# The linker used to build libraries.
39492LD=$lt_LD
39493
39494# How to create reloadable object files.
39495reload_flag=$lt_reload_flag
39496reload_cmds=$lt_reload_cmds
39497
39498# Commands used to build an old-style archive.
39499old_archive_cmds=$lt_old_archive_cmds
39500
39501# A language specific compiler.
39502CC=$lt_compiler
39503
39504# Is the compiler the GNU compiler?
39505with_gcc=$GCC
39506
39507# Compiler flag to turn off builtin functions.
39508no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
39509
39510# Additional compiler flags for building library objects.
39511pic_flag=$lt_lt_prog_compiler_pic
39512
39513# How to pass a linker flag through the compiler.
39514wl=$lt_lt_prog_compiler_wl
39515
39516# Compiler flag to prevent dynamic linking.
39517link_static_flag=$lt_lt_prog_compiler_static
39518
39519# Does compiler simultaneously support -c and -o options?
39520compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39521
39522# Whether or not to add -lc for building shared libraries.
39523build_libtool_need_lc=$archive_cmds_need_lc
39524
39525# Whether or not to disallow shared libs when runtime libs are static.
39526allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39527
39528# Compiler flag to allow reflexive dlopens.
39529export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39530
39531# Compiler flag to generate shared objects directly from archives.
39532whole_archive_flag_spec=$lt_whole_archive_flag_spec
39533
39534# Whether the compiler copes with passing no objects directly.
39535compiler_needs_object=$lt_compiler_needs_object
39536
39537# Create an old-style archive from a shared archive.
39538old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39539
39540# Create a temporary old-style archive to link instead of a shared archive.
39541old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39542
39543# Commands used to build a shared archive.
39544archive_cmds=$lt_archive_cmds
39545archive_expsym_cmds=$lt_archive_expsym_cmds
39546
39547# Commands used to build a loadable module if different from building
39548# a shared archive.
39549module_cmds=$lt_module_cmds
39550module_expsym_cmds=$lt_module_expsym_cmds
39551
39552# Whether we are building with GNU ld or not.
39553with_gnu_ld=$lt_with_gnu_ld
39554
39555# Flag that allows shared libraries with undefined symbols to be built.
39556allow_undefined_flag=$lt_allow_undefined_flag
39557
39558# Flag that enforces no undefined symbols.
39559no_undefined_flag=$lt_no_undefined_flag
39560
39561# Flag to hardcode \$libdir into a binary during linking.
39562# This must work even if \$libdir does not exist
39563hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39564
39565# If ld is used when linking, flag to hardcode \$libdir into a binary
39566# during linking.  This must work even if \$libdir does not exist.
39567hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
39568
39569# Whether we need a single "-rpath" flag with a separated argument.
39570hardcode_libdir_separator=$lt_hardcode_libdir_separator
39571
39572# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39573# DIR into the resulting binary.
39574hardcode_direct=$hardcode_direct
39575
39576# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39577# DIR into the resulting binary and the resulting library dependency is
39578# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39579# library is relocated.
39580hardcode_direct_absolute=$hardcode_direct_absolute
39581
39582# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39583# into the resulting binary.
39584hardcode_minus_L=$hardcode_minus_L
39585
39586# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39587# into the resulting binary.
39588hardcode_shlibpath_var=$hardcode_shlibpath_var
39589
39590# Set to "yes" if building a shared library automatically hardcodes DIR
39591# into the library and all subsequent libraries and executables linked
39592# against it.
39593hardcode_automatic=$hardcode_automatic
39594
39595# Set to yes if linker adds runtime paths of dependent libraries
39596# to runtime path list.
39597inherit_rpath=$inherit_rpath
39598
39599# Whether libtool must link a program against all its dependency libraries.
39600link_all_deplibs=$link_all_deplibs
39601
39602# Set to "yes" if exported symbols are required.
39603always_export_symbols=$always_export_symbols
39604
39605# The commands to list exported symbols.
39606export_symbols_cmds=$lt_export_symbols_cmds
39607
39608# Symbols that should not be listed in the preloaded symbols.
39609exclude_expsyms=$lt_exclude_expsyms
39610
39611# Symbols that must always be exported.
39612include_expsyms=$lt_include_expsyms
39613
39614# Commands necessary for linking programs (against libraries) with templates.
39615prelink_cmds=$lt_prelink_cmds
39616
39617# Commands necessary for finishing linking programs.
39618postlink_cmds=$lt_postlink_cmds
39619
39620# Specify filename containing input files.
39621file_list_spec=$lt_file_list_spec
39622
39623# How to hardcode a shared library path into an executable.
39624hardcode_action=$hardcode_action
39625
39626# The directories searched by this compiler when creating a shared library.
39627compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
39628
39629# Dependencies to place before and after the objects being linked to
39630# create a shared library.
39631predep_objects=$lt_predep_objects
39632postdep_objects=$lt_postdep_objects
39633predeps=$lt_predeps
39634postdeps=$lt_postdeps
39635
39636# The library search path used internally by the compiler when linking
39637# a shared library.
39638compiler_lib_search_path=$lt_compiler_lib_search_path
39639
39640# ### END LIBTOOL CONFIG
39641
39642_LT_EOF
39643
39644  case $host_os in
39645  aix3*)
39646    cat <<\_LT_EOF >> "$cfgfile"
39647# AIX sometimes has problems with the GCC collect2 program.  For some
39648# reason, if we set the COLLECT_NAMES environment variable, the problems
39649# vanish in a puff of smoke.
39650if test "X${COLLECT_NAMES+set}" != Xset; then
39651  COLLECT_NAMES=
39652  export COLLECT_NAMES
39653fi
39654_LT_EOF
39655    ;;
39656  esac
39657
39658
39659ltmain="$ac_aux_dir/ltmain.sh"
39660
39661
39662  # We use sed instead of cat because bash on DJGPP gets confused if
39663  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
39664  # text mode, it properly converts lines to CR/LF.  This bash problem
39665  # is reportedly fixed, but why not run on old versions too?
39666  sed '$q' "$ltmain" >> "$cfgfile" \
39667     || (rm -f "$cfgfile"; exit 1)
39668
39669  if test x"$xsi_shell" = xyes; then
39670  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
39671func_dirname ()\
39672{\
39673\    case ${1} in\
39674\      */*) func_dirname_result="${1%/*}${2}" ;;\
39675\      *  ) func_dirname_result="${3}" ;;\
39676\    esac\
39677} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
39678  && mv -f "$cfgfile.tmp" "$cfgfile" \
39679    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39680test 0 -eq $? || _lt_function_replace_fail=:
39681
39682
39683  sed -e '/^func_basename ()$/,/^} # func_basename /c\
39684func_basename ()\
39685{\
39686\    func_basename_result="${1##*/}"\
39687} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
39688  && mv -f "$cfgfile.tmp" "$cfgfile" \
39689    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39690test 0 -eq $? || _lt_function_replace_fail=:
39691
39692
39693  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
39694func_dirname_and_basename ()\
39695{\
39696\    case ${1} in\
39697\      */*) func_dirname_result="${1%/*}${2}" ;;\
39698\      *  ) func_dirname_result="${3}" ;;\
39699\    esac\
39700\    func_basename_result="${1##*/}"\
39701} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
39702  && mv -f "$cfgfile.tmp" "$cfgfile" \
39703    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39704test 0 -eq $? || _lt_function_replace_fail=:
39705
39706
39707  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
39708func_stripname ()\
39709{\
39710\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
39711\    # positional parameters, so assign one to ordinary parameter first.\
39712\    func_stripname_result=${3}\
39713\    func_stripname_result=${func_stripname_result#"${1}"}\
39714\    func_stripname_result=${func_stripname_result%"${2}"}\
39715} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
39716  && mv -f "$cfgfile.tmp" "$cfgfile" \
39717    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39718test 0 -eq $? || _lt_function_replace_fail=:
39719
39720
39721  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
39722func_split_long_opt ()\
39723{\
39724\    func_split_long_opt_name=${1%%=*}\
39725\    func_split_long_opt_arg=${1#*=}\
39726} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
39727  && mv -f "$cfgfile.tmp" "$cfgfile" \
39728    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39729test 0 -eq $? || _lt_function_replace_fail=:
39730
39731
39732  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
39733func_split_short_opt ()\
39734{\
39735\    func_split_short_opt_arg=${1#??}\
39736\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
39737} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
39738  && mv -f "$cfgfile.tmp" "$cfgfile" \
39739    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39740test 0 -eq $? || _lt_function_replace_fail=:
39741
39742
39743  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
39744func_lo2o ()\
39745{\
39746\    case ${1} in\
39747\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
39748\      *)    func_lo2o_result=${1} ;;\
39749\    esac\
39750} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
39751  && mv -f "$cfgfile.tmp" "$cfgfile" \
39752    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39753test 0 -eq $? || _lt_function_replace_fail=:
39754
39755
39756  sed -e '/^func_xform ()$/,/^} # func_xform /c\
39757func_xform ()\
39758{\
39759    func_xform_result=${1%.*}.lo\
39760} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
39761  && mv -f "$cfgfile.tmp" "$cfgfile" \
39762    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39763test 0 -eq $? || _lt_function_replace_fail=:
39764
39765
39766  sed -e '/^func_arith ()$/,/^} # func_arith /c\
39767func_arith ()\
39768{\
39769    func_arith_result=$(( $* ))\
39770} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
39771  && mv -f "$cfgfile.tmp" "$cfgfile" \
39772    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39773test 0 -eq $? || _lt_function_replace_fail=:
39774
39775
39776  sed -e '/^func_len ()$/,/^} # func_len /c\
39777func_len ()\
39778{\
39779    func_len_result=${#1}\
39780} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
39781  && mv -f "$cfgfile.tmp" "$cfgfile" \
39782    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39783test 0 -eq $? || _lt_function_replace_fail=:
39784
39785fi
39786
39787if test x"$lt_shell_append" = xyes; then
39788  sed -e '/^func_append ()$/,/^} # func_append /c\
39789func_append ()\
39790{\
39791    eval "${1}+=\\${2}"\
39792} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
39793  && mv -f "$cfgfile.tmp" "$cfgfile" \
39794    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39795test 0 -eq $? || _lt_function_replace_fail=:
39796
39797
39798  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
39799func_append_quoted ()\
39800{\
39801\    func_quote_for_eval "${2}"\
39802\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
39803} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
39804  && mv -f "$cfgfile.tmp" "$cfgfile" \
39805    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39806test 0 -eq $? || _lt_function_replace_fail=:
39807
39808
39809  # Save a `func_append' function call where possible by direct use of '+='
39810  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
39811    && mv -f "$cfgfile.tmp" "$cfgfile" \
39812      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39813  test 0 -eq $? || _lt_function_replace_fail=:
39814else
39815  # Save a `func_append' function call even when '+=' is not available
39816  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
39817    && mv -f "$cfgfile.tmp" "$cfgfile" \
39818      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39819  test 0 -eq $? || _lt_function_replace_fail=:
39820fi
39821
39822if test x"$_lt_function_replace_fail" = x":"; then
39823  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
39824$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
39825fi
39826
39827
39828   mv -f "$cfgfile" "$ofile" ||
39829    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39830  chmod +x "$ofile"
39831
39832
39833    cat <<_LT_EOF >> "$ofile"
39834
39835# ### BEGIN LIBTOOL TAG CONFIG: CXX
39836
39837# The linker used to build libraries.
39838LD=$lt_LD_CXX
39839
39840# How to create reloadable object files.
39841reload_flag=$lt_reload_flag_CXX
39842reload_cmds=$lt_reload_cmds_CXX
39843
39844# Commands used to build an old-style archive.
39845old_archive_cmds=$lt_old_archive_cmds_CXX
39846
39847# A language specific compiler.
39848CC=$lt_compiler_CXX
39849
39850# Is the compiler the GNU compiler?
39851with_gcc=$GCC_CXX
39852
39853# Compiler flag to turn off builtin functions.
39854no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
39855
39856# Additional compiler flags for building library objects.
39857pic_flag=$lt_lt_prog_compiler_pic_CXX
39858
39859# How to pass a linker flag through the compiler.
39860wl=$lt_lt_prog_compiler_wl_CXX
39861
39862# Compiler flag to prevent dynamic linking.
39863link_static_flag=$lt_lt_prog_compiler_static_CXX
39864
39865# Does compiler simultaneously support -c and -o options?
39866compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
39867
39868# Whether or not to add -lc for building shared libraries.
39869build_libtool_need_lc=$archive_cmds_need_lc_CXX
39870
39871# Whether or not to disallow shared libs when runtime libs are static.
39872allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
39873
39874# Compiler flag to allow reflexive dlopens.
39875export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
39876
39877# Compiler flag to generate shared objects directly from archives.
39878whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
39879
39880# Whether the compiler copes with passing no objects directly.
39881compiler_needs_object=$lt_compiler_needs_object_CXX
39882
39883# Create an old-style archive from a shared archive.
39884old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
39885
39886# Create a temporary old-style archive to link instead of a shared archive.
39887old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
39888
39889# Commands used to build a shared archive.
39890archive_cmds=$lt_archive_cmds_CXX
39891archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
39892
39893# Commands used to build a loadable module if different from building
39894# a shared archive.
39895module_cmds=$lt_module_cmds_CXX
39896module_expsym_cmds=$lt_module_expsym_cmds_CXX
39897
39898# Whether we are building with GNU ld or not.
39899with_gnu_ld=$lt_with_gnu_ld_CXX
39900
39901# Flag that allows shared libraries with undefined symbols to be built.
39902allow_undefined_flag=$lt_allow_undefined_flag_CXX
39903
39904# Flag that enforces no undefined symbols.
39905no_undefined_flag=$lt_no_undefined_flag_CXX
39906
39907# Flag to hardcode \$libdir into a binary during linking.
39908# This must work even if \$libdir does not exist
39909hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39910
39911# If ld is used when linking, flag to hardcode \$libdir into a binary
39912# during linking.  This must work even if \$libdir does not exist.
39913hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
39914
39915# Whether we need a single "-rpath" flag with a separated argument.
39916hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39917
39918# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39919# DIR into the resulting binary.
39920hardcode_direct=$hardcode_direct_CXX
39921
39922# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39923# DIR into the resulting binary and the resulting library dependency is
39924# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39925# library is relocated.
39926hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39927
39928# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39929# into the resulting binary.
39930hardcode_minus_L=$hardcode_minus_L_CXX
39931
39932# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39933# into the resulting binary.
39934hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39935
39936# Set to "yes" if building a shared library automatically hardcodes DIR
39937# into the library and all subsequent libraries and executables linked
39938# against it.
39939hardcode_automatic=$hardcode_automatic_CXX
39940
39941# Set to yes if linker adds runtime paths of dependent libraries
39942# to runtime path list.
39943inherit_rpath=$inherit_rpath_CXX
39944
39945# Whether libtool must link a program against all its dependency libraries.
39946link_all_deplibs=$link_all_deplibs_CXX
39947
39948# Set to "yes" if exported symbols are required.
39949always_export_symbols=$always_export_symbols_CXX
39950
39951# The commands to list exported symbols.
39952export_symbols_cmds=$lt_export_symbols_cmds_CXX
39953
39954# Symbols that should not be listed in the preloaded symbols.
39955exclude_expsyms=$lt_exclude_expsyms_CXX
39956
39957# Symbols that must always be exported.
39958include_expsyms=$lt_include_expsyms_CXX
39959
39960# Commands necessary for linking programs (against libraries) with templates.
39961prelink_cmds=$lt_prelink_cmds_CXX
39962
39963# Commands necessary for finishing linking programs.
39964postlink_cmds=$lt_postlink_cmds_CXX
39965
39966# Specify filename containing input files.
39967file_list_spec=$lt_file_list_spec_CXX
39968
39969# How to hardcode a shared library path into an executable.
39970hardcode_action=$hardcode_action_CXX
39971
39972# The directories searched by this compiler when creating a shared library.
39973compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39974
39975# Dependencies to place before and after the objects being linked to
39976# create a shared library.
39977predep_objects=$lt_predep_objects_CXX
39978postdep_objects=$lt_postdep_objects_CXX
39979predeps=$lt_predeps_CXX
39980postdeps=$lt_postdeps_CXX
39981
39982# The library search path used internally by the compiler when linking
39983# a shared library.
39984compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39985
39986# ### END LIBTOOL TAG CONFIG: CXX
39987_LT_EOF
39988
39989 ;;
39990    "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 ;;
39991    "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;;
39992    "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
39993    "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
39994    "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
39995    "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
39996    "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
39997    "scripts/ntpver":F) chmod +x scripts/ntpver ;;
39998    "scripts/plot_summary":F) chmod +x scripts/plot_summary ;;
39999    "scripts/summary":F) chmod +x scripts/summary ;;
40000    "scripts/update-leap/update-leap":F) chmod +x scripts/update-leap/update-leap ;;
40001
40002  esac
40003done # for ac_tag
40004
40005
40006as_fn_exit 0
40007_ACEOF
40008ac_clean_files=$ac_clean_files_save
40009
40010test $ac_write_fail = 0 ||
40011  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
40012
40013
40014# configure is writing to config.log, and then calls config.status.
40015# config.status does its own redirection, appending to config.log.
40016# Unfortunately, on DOS this fails, as config.log is still kept open
40017# by configure, so config.status won't be able to write to it; its
40018# output is simply discarded.  So we exec the FD to /dev/null,
40019# effectively closing config.log, so it can be properly (re)opened and
40020# appended to by config.status.  When coming back to configure, we
40021# need to make the FD available again.
40022if test "$no_create" != yes; then
40023  ac_cs_success=:
40024  ac_config_status_args=
40025  test "$silent" = yes &&
40026    ac_config_status_args="$ac_config_status_args --quiet"
40027  exec 5>/dev/null
40028  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40029  exec 5>>config.log
40030  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40031  # would make configure fail if this is the last instruction.
40032  $ac_cs_success || as_fn_exit 1
40033fi
40034
40035#
40036# CONFIG_SUBDIRS section.
40037#
40038if test "$no_recursion" != yes; then
40039
40040  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
40041  # so they do not pile up.
40042  ac_sub_configure_args=
40043  ac_prev=
40044  eval "set x $ac_configure_args"
40045  shift
40046  for ac_arg
40047  do
40048    if test -n "$ac_prev"; then
40049      ac_prev=
40050      continue
40051    fi
40052    case $ac_arg in
40053    -cache-file | --cache-file | --cache-fil | --cache-fi \
40054    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
40055      ac_prev=cache_file ;;
40056    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
40057    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
40058    | --c=*)
40059      ;;
40060    --config-cache | -C)
40061      ;;
40062    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
40063      ac_prev=srcdir ;;
40064    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
40065      ;;
40066    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
40067      ac_prev=prefix ;;
40068    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
40069      ;;
40070    --disable-option-checking)
40071      ;;
40072    *)
40073      case $ac_arg in
40074      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
40075      esac
40076      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
40077    esac
40078  done
40079
40080  # Always prepend --prefix to ensure using the same prefix
40081  # in subdir configurations.
40082  ac_arg="--prefix=$prefix"
40083  case $ac_arg in
40084  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
40085  esac
40086  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
40087
40088  # Pass --silent
40089  if test "$silent" = yes; then
40090    ac_sub_configure_args="--silent $ac_sub_configure_args"
40091  fi
40092
40093  # Always prepend --disable-option-checking to silence warnings, since
40094  # different subdirs can have different --enable and --with options.
40095  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
40096
40097  ac_popdir=`pwd`
40098  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
40099
40100    # Do not complain, so a configure script can configure whichever
40101    # parts of a large source tree are present.
40102    test -d "$srcdir/$ac_dir" || continue
40103
40104    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
40105    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
40106    $as_echo "$ac_msg" >&6
40107    as_dir="$ac_dir"; as_fn_mkdir_p
40108    ac_builddir=.
40109
40110case "$ac_dir" in
40111.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40112*)
40113  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
40114  # A ".." for each directory in $ac_dir_suffix.
40115  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
40116  case $ac_top_builddir_sub in
40117  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40118  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40119  esac ;;
40120esac
40121ac_abs_top_builddir=$ac_pwd
40122ac_abs_builddir=$ac_pwd$ac_dir_suffix
40123# for backward compatibility:
40124ac_top_builddir=$ac_top_build_prefix
40125
40126case $srcdir in
40127  .)  # We are building in place.
40128    ac_srcdir=.
40129    ac_top_srcdir=$ac_top_builddir_sub
40130    ac_abs_top_srcdir=$ac_pwd ;;
40131  [\\/]* | ?:[\\/]* )  # Absolute name.
40132    ac_srcdir=$srcdir$ac_dir_suffix;
40133    ac_top_srcdir=$srcdir
40134    ac_abs_top_srcdir=$srcdir ;;
40135  *) # Relative name.
40136    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40137    ac_top_srcdir=$ac_top_build_prefix$srcdir
40138    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40139esac
40140ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40141
40142
40143    cd "$ac_dir"
40144
40145    # Check for guested configure; otherwise get Cygnus style configure.
40146    if test -f "$ac_srcdir/configure.gnu"; then
40147      ac_sub_configure=$ac_srcdir/configure.gnu
40148    elif test -f "$ac_srcdir/configure"; then
40149      ac_sub_configure=$ac_srcdir/configure
40150    elif test -f "$ac_srcdir/configure.in"; then
40151      # This should be Cygnus configure.
40152      ac_sub_configure=$ac_aux_dir/configure
40153    else
40154      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
40155$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
40156      ac_sub_configure=
40157    fi
40158
40159    # The recursion is here.
40160    if test -n "$ac_sub_configure"; then
40161      # Make the cache file name correct relative to the subdirectory.
40162      case $cache_file in
40163      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
40164      *) # Relative name.
40165	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
40166      esac
40167
40168      { $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
40169$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
40170      # The eval makes quoting arguments work.
40171      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
40172	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
40173	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
40174    fi
40175
40176    cd "$ac_popdir"
40177  done
40178fi
40179if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
40180  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
40181$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
40182fi
40183
40184