xref: /freebsd/contrib/ntp/configure (revision 788ca347b816afd83b2885e0c79aeeb88649b2ab)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for ntp 4.2.8p1.
4#
5# Report bugs to <http://bugs.ntp.org./>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1
178
179  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183    PATH=/empty FPATH=/empty; export PATH FPATH
184    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: http://bugs.ntp.org./ about your system, including any
251$0: error possibly output before this message. Then install
252$0: a modern shell, or manually run the script under such a
253$0: shell if you do have one."
254  fi
255  exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273  { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282  return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290  set +e
291  as_fn_set_status $1
292  exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301  case $as_dir in #(
302  -*) as_dir=./$as_dir;;
303  esac
304  test -d "$as_dir" || eval $as_mkdir_p || {
305    as_dirs=
306    while :; do
307      case $as_dir in #(
308      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309      *) as_qdir=$as_dir;;
310      esac
311      as_dirs="'$as_qdir' $as_dirs"
312      as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314	 X"$as_dir" : 'X\(//\)[^/]' \| \
315	 X"$as_dir" : 'X\(//\)$' \| \
316	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\/\)[^/].*/{
323	    s//\1/
324	    q
325	  }
326	  /^X\(\/\/\)$/{
327	    s//\1/
328	    q
329	  }
330	  /^X\(\/\).*/{
331	    s//\1/
332	    q
333	  }
334	  s/.*/./; q'`
335      test -d "$as_dir" && break
336    done
337    test -z "$as_dirs" || eval "mkdir $as_dirs"
338  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349  eval 'as_fn_append ()
350  {
351    eval $1+=\$2
352  }'
353else
354  as_fn_append ()
355  {
356    eval $1=\$$1\$2
357  }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366  eval 'as_fn_arith ()
367  {
368    as_val=$(( $* ))
369  }'
370else
371  as_fn_arith ()
372  {
373    as_val=`expr "$@" || test $? -eq 1`
374  }
375fi # as_fn_arith
376
377
378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382# script with STATUS, using 1 if that was 0.
383as_fn_error ()
384{
385  as_status=$1; test $as_status -eq 0 && as_status=1
386  if test "$4"; then
387    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389  fi
390  $as_echo "$as_me: error: $2" >&2
391  as_fn_exit $as_status
392} # as_fn_error
393
394if expr a : '\(a\)' >/dev/null 2>&1 &&
395   test "X`expr 00001 : '.*\(...\)'`" = X001; then
396  as_expr=expr
397else
398  as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402  as_basename=basename
403else
404  as_basename=false
405fi
406
407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408  as_dirname=dirname
409else
410  as_dirname=false
411fi
412
413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415	 X"$0" : 'X\(//\)$' \| \
416	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418    sed '/^.*\/\([^/][^/]*\)\/*$/{
419	    s//\1/
420	    q
421	  }
422	  /^X\/\(\/\/\)$/{
423	    s//\1/
424	    q
425	  }
426	  /^X\/\(\/\).*/{
427	    s//\1/
428	    q
429	  }
430	  s/.*/./; q'`
431
432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440  as_lineno_1=$LINENO as_lineno_1a=$LINENO
441  as_lineno_2=$LINENO as_lineno_2a=$LINENO
442  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445  sed -n '
446    p
447    /[$]LINENO/=
448  ' <$as_myself |
449    sed '
450      s/[$]LINENO.*/&-/
451      t lineno
452      b
453      :lineno
454      N
455      :loop
456      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457      t loop
458      s/-\n.*//
459    ' >$as_me.lineno &&
460  chmod +x "$as_me.lineno" ||
461    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463  # Don't try to exec as it changes $[0], causing all sort of problems
464  # (the dirname of $[0] is not the place where we might find the
465  # original and so on.  Autoconf is especially sensitive to this).
466  . "./$as_me.lineno"
467  # Exit status is that of the last command.
468  exit
469}
470
471ECHO_C= ECHO_N= ECHO_T=
472case `echo -n x` in #(((((
473-n*)
474  case `echo 'xy\c'` in
475  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
476  xy)  ECHO_C='\c';;
477  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478       ECHO_T='	';;
479  esac;;
480*)
481  ECHO_N='-n';;
482esac
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486  rm -f conf$$.dir/conf$$.file
487else
488  rm -f conf$$.dir
489  mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492  if ln -s conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s='ln -s'
494    # ... but there are two gotchas:
495    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497    # In both cases, we have to default to `cp -p'.
498    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499      as_ln_s='cp -p'
500  elif ln conf$$.file conf$$ 2>/dev/null; then
501    as_ln_s=ln
502  else
503    as_ln_s='cp -p'
504  fi
505else
506  as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
512  as_mkdir_p='mkdir -p "$as_dir"'
513else
514  test -d ./-p && rmdir ./-p
515  as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519  as_test_x='test -x'
520else
521  if ls -dL / >/dev/null 2>&1; then
522    as_ls_L_option=L
523  else
524    as_ls_L_option=
525  fi
526  as_test_x='
527    eval sh -c '\''
528      if test -d "$1"; then
529	test -d "$1/.";
530      else
531	case $1 in #(
532	-*)set "./$1";;
533	esac;
534	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535	???[sx]*):;;*)false;;esac;fi
536    '\'' sh
537  '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550test -n "$DJDIR" || exec 7<&0 </dev/null
551exec 6>&1
552
553# Name of the host.
554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555# so uname gets run too.
556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558#
559# Initializations.
560#
561ac_default_prefix=/usr/local
562ac_clean_files=
563ac_config_libobj_dir=.
564LIBOBJS=
565cross_compiling=no
566subdirs=
567MFLAGS=
568MAKEFLAGS=
569
570# Identity of this package.
571PACKAGE_NAME='ntp'
572PACKAGE_TARNAME='ntp'
573PACKAGE_VERSION='4.2.8p1'
574PACKAGE_STRING='ntp 4.2.8p1'
575PACKAGE_BUGREPORT='http://bugs.ntp.org./'
576PACKAGE_URL='http://www.ntp.org./'
577
578# Factoring default headers for most tests.
579ac_includes_default="\
580#include <stdio.h>
581#ifdef HAVE_SYS_TYPES_H
582# include <sys/types.h>
583#endif
584#ifdef HAVE_SYS_STAT_H
585# include <sys/stat.h>
586#endif
587#ifdef STDC_HEADERS
588# include <stdlib.h>
589# include <stddef.h>
590#else
591# ifdef HAVE_STDLIB_H
592#  include <stdlib.h>
593# endif
594#endif
595#ifdef HAVE_STRING_H
596# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597#  include <memory.h>
598# endif
599# include <string.h>
600#endif
601#ifdef HAVE_STRINGS_H
602# include <strings.h>
603#endif
604#ifdef HAVE_INTTYPES_H
605# include <inttypes.h>
606#endif
607#ifdef HAVE_STDINT_H
608# include <stdint.h>
609#endif
610#ifdef HAVE_UNISTD_H
611# include <unistd.h>
612#endif"
613
614ac_header_list=
615enable_option_checking=no
616ac_subst_vars='am__EXEEXT_FALSE
617am__EXEEXT_TRUE
618LTLIBOBJS
619subdirs
620PERLLIBDIR
621NTP_KEYSDIR
622GTEST_AVAILABLE_FALSE
623GTEST_AVAILABLE_TRUE
624GTEST_CPPFLAGS
625GTEST_CXXFLAGS
626GTEST_LIBS
627GTEST_LDFLAGS
628GTEST_CONFIG
629SAVECONFIG_ENABLED_FALSE
630SAVECONFIG_ENABLED_TRUE
631LSCF
632MAKE_NTPSNMPD
633SNMP_CFLAGS
634SNMP_CPPFLAGS
635SNMP_LIBS
636BUILD_SNTP_FALSE
637BUILD_SNTP_TRUE
638SNTP
639MAKE_NTPDSIM
640MAKE_LIBNTPSIM
641MAKE_TIMETRIM
642MAKE_TICKADJ
643MAKE_NTPTIME
644MAKE_ADJTIMED
645CHUTEST
646PROPDELAY
647MAKE_PARSEKMODULE
648DCFD
649TESTDCF
650MAKE_CHECK_LAYOUT
651VER_SUFFIX
652MAKE_CHECK_Y2K
653MAKE_LIBPARSE_KERNEL
654MAKE_LIBPARSE
655LIBPARSE
656HAVE_RLIMIT_STACK
657HAVE_RLIMIT_MEMLOCK
658LDADD_NLIST
659PATH_NET_SNMP_CONFIG
660CONFIG_SHELL
661PATH_TEST
662PATH_PERL
663LIBOBJS
664PTHREADS_FALSE
665PTHREADS_TRUE
666LIBISC_PTHREADS_NOTHREADS
667PTHREAD_LIBS
668HAVE_INLINE
669LDADD_LIBUTIL
670ALLOCA
671LIBM
672EDITLINE_LIBS
673LDADD_LIBNTP
674NTP_CROSSCOMPILE_FALSE
675NTP_CROSSCOMPILE_TRUE
676BUILD_LIBEVENT_FALSE
677BUILD_LIBEVENT_TRUE
678LDADD_LIBEVENT
679CPPFLAGS_LIBEVENT
680PKG_CONFIG
681LIBOPTS_DIR
682LIBOPTS_CFLAGS
683LIBOPTS_LDADD
684NEED_LIBOPTS_FALSE
685NEED_LIBOPTS_TRUE
686INSTALL_LIBOPTS_FALSE
687INSTALL_LIBOPTS_TRUE
688POSIX_SHELL
689GL_GENERATE_STDNORETURN_H_FALSE
690GL_GENERATE_STDNORETURN_H_TRUE
691STDNORETURN_H
692LIBTOOL_DEPS
693CXXCPP
694OTOOL64
695OTOOL
696LIPO
697NMEDIT
698DSYMUTIL
699MANIFEST_TOOL
700RANLIB
701ac_ct_AR
702AR
703DLLTOOL
704OBJDUMP
705LN_S
706NM
707ac_ct_DUMPBIN
708DUMPBIN
709LD
710FGREP
711SED
712LIBTOOL
713TIMETRIM_NI
714TIMETRIM_MS
715TIMETRIM_DS
716TIMETRIM_DL
717TIMETRIM_DB
718TICKADJ_NI
719TICKADJ_MS
720TICKADJ_DS
721TICKADJ_DL
722TICKADJ_DB
723SNTP_NI
724SNTP_MS
725SNTP_DS
726SNTP_DL
727SNTP_DB
728NTP_WAIT_NI
729NTP_WAIT_MS
730NTP_WAIT_DS
731NTP_WAIT_DL
732NTP_WAIT_DB
733NTP_KEYGEN_NI
734NTP_KEYGEN_MS
735NTP_KEYGEN_DS
736NTP_KEYGEN_DL
737NTP_KEYGEN_DB
738NTPTRACE_NI
739NTPTRACE_MS
740NTPTRACE_DS
741NTPTRACE_DL
742NTPTRACE_DB
743NTPTIME_NI
744NTPTIME_MS
745NTPTIME_DS
746NTPTIME_DL
747NTPTIME_DB
748INSTALL_NTPSWEEP_FALSE
749INSTALL_NTPSWEEP_TRUE
750NTPSWEEP_NI
751NTPSWEEP_MS
752NTPSWEEP_DS
753NTPSWEEP_DL
754NTPSWEEP_DB
755NTPSNMPD_NI
756NTPSNMPD_MS
757NTPSNMPD_DS
758NTPSNMPD_DL
759NTPSNMPD_DB
760NTPQ_NI
761NTPQ_MS
762NTPQ_DS
763NTPQ_DL
764NTPQ_DB
765NTPD_NI
766NTPD_MS
767NTPD_DS
768NTPD_DL
769NTPD_DB
770NTPDSIM_NI
771NTPDSIM_MS
772NTPDSIM_DS
773NTPDSIM_DL
774NTPDSIM_DB
775NTPDC_NI
776NTPDC_MS
777NTPDC_DS
778NTPDC_DL
779NTPDC_DB
780NTPDATE_NI
781NTPDATE_MS
782NTPDATE_DS
783NTPDATE_DL
784NTPDATE_DB
785MANTAGFMT
786CALC_TICKADJ_NI
787CALC_TICKADJ_MS
788CALC_TICKADJ_DS
789CALC_TICKADJ_DL
790CALC_TICKADJ_DB
791WANT_CALC_TICKADJ_MS_FALSE
792WANT_CALC_TICKADJ_MS_TRUE
793VPATH_HACK_FALSE
794VPATH_HACK_TRUE
795YFLAGS
796YACC
797am__fastdepCXX_FALSE
798am__fastdepCXX_TRUE
799CXXDEPMODE
800ac_ct_CXX
801CXXFLAGS
802CXX
803LDFLAGS_NTP
804LDADD_NTP
805CPPFLAGS_NTP
806CFLAGS_NTP
807EGREP
808GREP
809CPP
810am__fastdepCC_FALSE
811am__fastdepCC_TRUE
812CCDEPMODE
813AMDEPBACKSLASH
814AMDEP_FALSE
815AMDEP_TRUE
816am__quote
817am__include
818DEPDIR
819OBJEXT
820EXEEXT
821ac_ct_CC
822CPPFLAGS
823LDFLAGS
824CFLAGS
825CC
826host_os
827host_vendor
828host_cpu
829host
830build_os
831build_vendor
832build_cpu
833build
834AM_BACKSLASH
835AM_DEFAULT_VERBOSITY
836am__untar
837am__tar
838AMTAR
839am__leading_dot
840SET_MAKE
841AWK
842mkdir_p
843MKDIR_P
844INSTALL_STRIP_PROGRAM
845STRIP
846install_sh
847MAKEINFO
848AUTOHEADER
849AUTOMAKE
850AUTOCONF
851ACLOCAL
852VERSION
853PACKAGE
854CYGPATH_W
855am__isrc
856INSTALL_DATA
857INSTALL_SCRIPT
858INSTALL_PROGRAM
859target_alias
860host_alias
861build_alias
862LIBS
863ECHO_T
864ECHO_N
865ECHO_C
866DEFS
867mandir
868localedir
869libdir
870psdir
871pdfdir
872dvidir
873htmldir
874infodir
875docdir
876oldincludedir
877includedir
878localstatedir
879sharedstatedir
880sysconfdir
881datadir
882datarootdir
883libexecdir
884sbindir
885bindir
886program_transform_name
887prefix
888exec_prefix
889PACKAGE_URL
890PACKAGE_BUGREPORT
891PACKAGE_STRING
892PACKAGE_VERSION
893PACKAGE_TARNAME
894PACKAGE_NAME
895PATH_SEPARATOR
896SHELL'
897ac_subst_files='calc_tickadj_opts
898ntp_wait_opts
899ntpsweep_opts
900ntptrace_opts
901summary_opts
902plot_summary_opts'
903ac_user_opts='
904enable_option_checking
905enable_silent_rules
906enable_dependency_tracking
907with_locfile
908enable_shared
909enable_static
910with_pic
911enable_fast_install
912with_gnu_ld
913with_sysroot
914enable_libtool_lock
915enable_nls
916enable_local_libopts
917enable_libopts_install
918with_autoopts_config
919enable_local_libevent
920with_lineeditlibs
921enable_debugging
922enable_thread_support
923with_threads
924with_yielding_select
925enable_c99_snprintf
926enable_clockctl
927enable_linuxcaps
928enable_solarisprivs
929with_arlib
930with_net_snmp_config
931enable_libseccomp
932with_stack_limit
933with_memlock
934enable_debug_timing
935enable_dst_minutes
936enable_ignore_dns_errors
937enable_BANCOMM
938enable_GPSVME
939enable_all_clocks
940enable_ACTS
941enable_ARBITER
942enable_ARCRON_MSF
943enable_AS2201
944enable_ATOM
945enable_CHRONOLOG
946enable_CHU
947enable_AUDIO_CHU
948enable_DATUM
949enable_DUMBCLOCK
950enable_FG
951enable_HEATH
952enable_HOPFSERIAL
953enable_HOPFPCI
954enable_HPGPS
955enable_IRIG
956enable_JJY
957enable_JUPITER
958enable_LEITCH
959enable_LOCAL_CLOCK
960enable_MX4200
961enable_NEOCLOCK4X
962enable_NMEA
963enable_GPSD
964enable_ONCORE
965enable_PALISADE
966enable_PCF
967enable_PST
968enable_RIPENCC
969enable_SHM
970enable_SPECTRACOM
971enable_TPRO
972enable_TRUETIME
973enable_TT560
974enable_ULINK
975enable_TSYNCPCI
976enable_WWV
977enable_ZYFER
978enable_parse_clocks
979enable_COMPUTIME
980enable_DCF7000
981enable_HOPF6021
982enable_MEINBERG
983enable_RAWDCF
984enable_RCC8000
985enable_SCHMID
986enable_TRIMTAIP
987enable_TRIMTSIP
988enable_WHARTON
989enable_VARITEXT
990enable_SEL240X
991with_crypto
992with_openssl_libdir
993with_openssl_incdir
994with_rpath
995enable_openssl_random
996enable_autokey
997enable_kmem
998enable_accurate_adjtime
999enable_tick
1000enable_tickadj
1001enable_simulator
1002with_sntp
1003with_ntpsnmpd
1004enable_slew_always
1005enable_step_slew
1006enable_ntpdate_step
1007enable_hourly_todr_sync
1008enable_kernel_fll_bug
1009enable_bug1243_fix
1010enable_irig_sawtooth
1011enable_nist
1012enable_ntp_signd
1013enable_ipv6
1014with_kame
1015enable_getifaddrs
1016enable_saveconfig
1017with_gtest
1018'
1019      ac_precious_vars='build_alias
1020host_alias
1021target_alias
1022CC
1023CFLAGS
1024LDFLAGS
1025LIBS
1026CPPFLAGS
1027CPP
1028CXX
1029CXXFLAGS
1030CCC
1031YACC
1032YFLAGS
1033CXXCPP'
1034ac_subdirs_all='sntp'
1035
1036# Initialize some variables set by options.
1037ac_init_help=
1038ac_init_version=false
1039ac_unrecognized_opts=
1040ac_unrecognized_sep=
1041# The variables have the same names as the options, with
1042# dashes changed to underlines.
1043cache_file=/dev/null
1044exec_prefix=NONE
1045no_create=
1046no_recursion=
1047prefix=NONE
1048program_prefix=NONE
1049program_suffix=NONE
1050program_transform_name=s,x,x,
1051silent=
1052site=
1053srcdir=
1054verbose=
1055x_includes=NONE
1056x_libraries=NONE
1057
1058# Installation directory options.
1059# These are left unexpanded so users can "make install exec_prefix=/foo"
1060# and all the variables that are supposed to be based on exec_prefix
1061# by default will actually change.
1062# Use braces instead of parens because sh, perl, etc. also accept them.
1063# (The list follows the same order as the GNU Coding Standards.)
1064bindir='${exec_prefix}/bin'
1065sbindir='${exec_prefix}/sbin'
1066libexecdir='${exec_prefix}/libexec'
1067datarootdir='${prefix}/share'
1068datadir='${datarootdir}'
1069sysconfdir='${prefix}/etc'
1070sharedstatedir='${prefix}/com'
1071localstatedir='${prefix}/var'
1072includedir='${prefix}/include'
1073oldincludedir='/usr/include'
1074docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1075infodir='${datarootdir}/info'
1076htmldir='${docdir}'
1077dvidir='${docdir}'
1078pdfdir='${docdir}'
1079psdir='${docdir}'
1080libdir='${exec_prefix}/lib'
1081localedir='${datarootdir}/locale'
1082mandir='${datarootdir}/man'
1083
1084ac_prev=
1085ac_dashdash=
1086for ac_option
1087do
1088  # If the previous option needs an argument, assign it.
1089  if test -n "$ac_prev"; then
1090    eval $ac_prev=\$ac_option
1091    ac_prev=
1092    continue
1093  fi
1094
1095  case $ac_option in
1096  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1097  *=)   ac_optarg= ;;
1098  *)    ac_optarg=yes ;;
1099  esac
1100
1101  # Accept the important Cygnus configure options, so we can diagnose typos.
1102
1103  case $ac_dashdash$ac_option in
1104  --)
1105    ac_dashdash=yes ;;
1106
1107  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1108    ac_prev=bindir ;;
1109  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1110    bindir=$ac_optarg ;;
1111
1112  -build | --build | --buil | --bui | --bu)
1113    ac_prev=build_alias ;;
1114  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1115    build_alias=$ac_optarg ;;
1116
1117  -cache-file | --cache-file | --cache-fil | --cache-fi \
1118  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1119    ac_prev=cache_file ;;
1120  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1121  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1122    cache_file=$ac_optarg ;;
1123
1124  --config-cache | -C)
1125    cache_file=config.cache ;;
1126
1127  -datadir | --datadir | --datadi | --datad)
1128    ac_prev=datadir ;;
1129  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1130    datadir=$ac_optarg ;;
1131
1132  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1133  | --dataroo | --dataro | --datar)
1134    ac_prev=datarootdir ;;
1135  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1136  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1137    datarootdir=$ac_optarg ;;
1138
1139  -disable-* | --disable-*)
1140    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1141    # Reject names that are not valid shell variable names.
1142    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143      as_fn_error $? "invalid feature name: $ac_useropt"
1144    ac_useropt_orig=$ac_useropt
1145    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146    case $ac_user_opts in
1147      *"
1148"enable_$ac_useropt"
1149"*) ;;
1150      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1151	 ac_unrecognized_sep=', ';;
1152    esac
1153    eval enable_$ac_useropt=no ;;
1154
1155  -docdir | --docdir | --docdi | --doc | --do)
1156    ac_prev=docdir ;;
1157  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1158    docdir=$ac_optarg ;;
1159
1160  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1161    ac_prev=dvidir ;;
1162  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1163    dvidir=$ac_optarg ;;
1164
1165  -enable-* | --enable-*)
1166    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1167    # Reject names that are not valid shell variable names.
1168    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169      as_fn_error $? "invalid feature name: $ac_useropt"
1170    ac_useropt_orig=$ac_useropt
1171    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172    case $ac_user_opts in
1173      *"
1174"enable_$ac_useropt"
1175"*) ;;
1176      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1177	 ac_unrecognized_sep=', ';;
1178    esac
1179    eval enable_$ac_useropt=\$ac_optarg ;;
1180
1181  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1182  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1183  | --exec | --exe | --ex)
1184    ac_prev=exec_prefix ;;
1185  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1186  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1187  | --exec=* | --exe=* | --ex=*)
1188    exec_prefix=$ac_optarg ;;
1189
1190  -gas | --gas | --ga | --g)
1191    # Obsolete; use --with-gas.
1192    with_gas=yes ;;
1193
1194  -help | --help | --hel | --he | -h)
1195    ac_init_help=long ;;
1196  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1197    ac_init_help=recursive ;;
1198  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1199    ac_init_help=short ;;
1200
1201  -host | --host | --hos | --ho)
1202    ac_prev=host_alias ;;
1203  -host=* | --host=* | --hos=* | --ho=*)
1204    host_alias=$ac_optarg ;;
1205
1206  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1207    ac_prev=htmldir ;;
1208  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1209  | --ht=*)
1210    htmldir=$ac_optarg ;;
1211
1212  -includedir | --includedir | --includedi | --included | --include \
1213  | --includ | --inclu | --incl | --inc)
1214    ac_prev=includedir ;;
1215  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1216  | --includ=* | --inclu=* | --incl=* | --inc=*)
1217    includedir=$ac_optarg ;;
1218
1219  -infodir | --infodir | --infodi | --infod | --info | --inf)
1220    ac_prev=infodir ;;
1221  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1222    infodir=$ac_optarg ;;
1223
1224  -libdir | --libdir | --libdi | --libd)
1225    ac_prev=libdir ;;
1226  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1227    libdir=$ac_optarg ;;
1228
1229  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1230  | --libexe | --libex | --libe)
1231    ac_prev=libexecdir ;;
1232  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1233  | --libexe=* | --libex=* | --libe=*)
1234    libexecdir=$ac_optarg ;;
1235
1236  -localedir | --localedir | --localedi | --localed | --locale)
1237    ac_prev=localedir ;;
1238  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1239    localedir=$ac_optarg ;;
1240
1241  -localstatedir | --localstatedir | --localstatedi | --localstated \
1242  | --localstate | --localstat | --localsta | --localst | --locals)
1243    ac_prev=localstatedir ;;
1244  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1245  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1246    localstatedir=$ac_optarg ;;
1247
1248  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1249    ac_prev=mandir ;;
1250  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1251    mandir=$ac_optarg ;;
1252
1253  -nfp | --nfp | --nf)
1254    # Obsolete; use --without-fp.
1255    with_fp=no ;;
1256
1257  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1258  | --no-cr | --no-c | -n)
1259    no_create=yes ;;
1260
1261  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1262  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1263    no_recursion=yes ;;
1264
1265  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1266  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1267  | --oldin | --oldi | --old | --ol | --o)
1268    ac_prev=oldincludedir ;;
1269  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1270  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1271  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1272    oldincludedir=$ac_optarg ;;
1273
1274  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1275    ac_prev=prefix ;;
1276  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1277    prefix=$ac_optarg ;;
1278
1279  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1280  | --program-pre | --program-pr | --program-p)
1281    ac_prev=program_prefix ;;
1282  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1283  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1284    program_prefix=$ac_optarg ;;
1285
1286  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1287  | --program-suf | --program-su | --program-s)
1288    ac_prev=program_suffix ;;
1289  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1290  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1291    program_suffix=$ac_optarg ;;
1292
1293  -program-transform-name | --program-transform-name \
1294  | --program-transform-nam | --program-transform-na \
1295  | --program-transform-n | --program-transform- \
1296  | --program-transform | --program-transfor \
1297  | --program-transfo | --program-transf \
1298  | --program-trans | --program-tran \
1299  | --progr-tra | --program-tr | --program-t)
1300    ac_prev=program_transform_name ;;
1301  -program-transform-name=* | --program-transform-name=* \
1302  | --program-transform-nam=* | --program-transform-na=* \
1303  | --program-transform-n=* | --program-transform-=* \
1304  | --program-transform=* | --program-transfor=* \
1305  | --program-transfo=* | --program-transf=* \
1306  | --program-trans=* | --program-tran=* \
1307  | --progr-tra=* | --program-tr=* | --program-t=*)
1308    program_transform_name=$ac_optarg ;;
1309
1310  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1311    ac_prev=pdfdir ;;
1312  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1313    pdfdir=$ac_optarg ;;
1314
1315  -psdir | --psdir | --psdi | --psd | --ps)
1316    ac_prev=psdir ;;
1317  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1318    psdir=$ac_optarg ;;
1319
1320  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1321  | -silent | --silent | --silen | --sile | --sil)
1322    silent=yes ;;
1323
1324  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1325    ac_prev=sbindir ;;
1326  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1327  | --sbi=* | --sb=*)
1328    sbindir=$ac_optarg ;;
1329
1330  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1331  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1332  | --sharedst | --shareds | --shared | --share | --shar \
1333  | --sha | --sh)
1334    ac_prev=sharedstatedir ;;
1335  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1336  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1337  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1338  | --sha=* | --sh=*)
1339    sharedstatedir=$ac_optarg ;;
1340
1341  -site | --site | --sit)
1342    ac_prev=site ;;
1343  -site=* | --site=* | --sit=*)
1344    site=$ac_optarg ;;
1345
1346  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1347    ac_prev=srcdir ;;
1348  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1349    srcdir=$ac_optarg ;;
1350
1351  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1352  | --syscon | --sysco | --sysc | --sys | --sy)
1353    ac_prev=sysconfdir ;;
1354  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1355  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1356    sysconfdir=$ac_optarg ;;
1357
1358  -target | --target | --targe | --targ | --tar | --ta | --t)
1359    ac_prev=target_alias ;;
1360  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1361    target_alias=$ac_optarg ;;
1362
1363  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1364    verbose=yes ;;
1365
1366  -version | --version | --versio | --versi | --vers | -V)
1367    ac_init_version=: ;;
1368
1369  -with-* | --with-*)
1370    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1371    # Reject names that are not valid shell variable names.
1372    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1373      as_fn_error $? "invalid package name: $ac_useropt"
1374    ac_useropt_orig=$ac_useropt
1375    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1376    case $ac_user_opts in
1377      *"
1378"with_$ac_useropt"
1379"*) ;;
1380      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1381	 ac_unrecognized_sep=', ';;
1382    esac
1383    eval with_$ac_useropt=\$ac_optarg ;;
1384
1385  -without-* | --without-*)
1386    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1387    # Reject names that are not valid shell variable names.
1388    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1389      as_fn_error $? "invalid package name: $ac_useropt"
1390    ac_useropt_orig=$ac_useropt
1391    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1392    case $ac_user_opts in
1393      *"
1394"with_$ac_useropt"
1395"*) ;;
1396      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1397	 ac_unrecognized_sep=', ';;
1398    esac
1399    eval with_$ac_useropt=no ;;
1400
1401  --x)
1402    # Obsolete; use --with-x.
1403    with_x=yes ;;
1404
1405  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1406  | --x-incl | --x-inc | --x-in | --x-i)
1407    ac_prev=x_includes ;;
1408  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1409  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1410    x_includes=$ac_optarg ;;
1411
1412  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1413  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1414    ac_prev=x_libraries ;;
1415  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1416  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1417    x_libraries=$ac_optarg ;;
1418
1419  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1420Try \`$0 --help' for more information"
1421    ;;
1422
1423  *=*)
1424    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1425    # Reject names that are not valid shell variable names.
1426    case $ac_envvar in #(
1427      '' | [0-9]* | *[!_$as_cr_alnum]* )
1428      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1429    esac
1430    eval $ac_envvar=\$ac_optarg
1431    export $ac_envvar ;;
1432
1433  *)
1434    # FIXME: should be removed in autoconf 3.0.
1435    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1436    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1437      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1438    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1439    ;;
1440
1441  esac
1442done
1443
1444if test -n "$ac_prev"; then
1445  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1446  as_fn_error $? "missing argument to $ac_option"
1447fi
1448
1449if test -n "$ac_unrecognized_opts"; then
1450  case $enable_option_checking in
1451    no) ;;
1452    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1453    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1454  esac
1455fi
1456
1457# Check all directory arguments for consistency.
1458for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1459		datadir sysconfdir sharedstatedir localstatedir includedir \
1460		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1461		libdir localedir mandir
1462do
1463  eval ac_val=\$$ac_var
1464  # Remove trailing slashes.
1465  case $ac_val in
1466    */ )
1467      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1468      eval $ac_var=\$ac_val;;
1469  esac
1470  # Be sure to have absolute directory names.
1471  case $ac_val in
1472    [\\/$]* | ?:[\\/]* )  continue;;
1473    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1474  esac
1475  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1476done
1477
1478# There might be people who depend on the old broken behavior: `$host'
1479# used to hold the argument of --host etc.
1480# FIXME: To remove some day.
1481build=$build_alias
1482host=$host_alias
1483target=$target_alias
1484
1485# FIXME: To remove some day.
1486if test "x$host_alias" != x; then
1487  if test "x$build_alias" = x; then
1488    cross_compiling=maybe
1489    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1490    If a cross compiler is detected then cross compile mode will be used" >&2
1491  elif test "x$build_alias" != "x$host_alias"; then
1492    cross_compiling=yes
1493  fi
1494fi
1495
1496ac_tool_prefix=
1497test -n "$host_alias" && ac_tool_prefix=$host_alias-
1498
1499test "$silent" = yes && exec 6>/dev/null
1500
1501
1502ac_pwd=`pwd` && test -n "$ac_pwd" &&
1503ac_ls_di=`ls -di .` &&
1504ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1505  as_fn_error $? "working directory cannot be determined"
1506test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1507  as_fn_error $? "pwd does not report name of working directory"
1508
1509
1510# Find the source files, if location was not specified.
1511if test -z "$srcdir"; then
1512  ac_srcdir_defaulted=yes
1513  # Try the directory containing this script, then the parent directory.
1514  ac_confdir=`$as_dirname -- "$as_myself" ||
1515$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1516	 X"$as_myself" : 'X\(//\)[^/]' \| \
1517	 X"$as_myself" : 'X\(//\)$' \| \
1518	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1519$as_echo X"$as_myself" |
1520    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1521	    s//\1/
1522	    q
1523	  }
1524	  /^X\(\/\/\)[^/].*/{
1525	    s//\1/
1526	    q
1527	  }
1528	  /^X\(\/\/\)$/{
1529	    s//\1/
1530	    q
1531	  }
1532	  /^X\(\/\).*/{
1533	    s//\1/
1534	    q
1535	  }
1536	  s/.*/./; q'`
1537  srcdir=$ac_confdir
1538  if test ! -r "$srcdir/$ac_unique_file"; then
1539    srcdir=..
1540  fi
1541else
1542  ac_srcdir_defaulted=no
1543fi
1544if test ! -r "$srcdir/$ac_unique_file"; then
1545  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1546  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1547fi
1548ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1549ac_abs_confdir=`(
1550	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1551	pwd)`
1552# When building in place, set srcdir=.
1553if test "$ac_abs_confdir" = "$ac_pwd"; then
1554  srcdir=.
1555fi
1556# Remove unnecessary trailing slashes from srcdir.
1557# Double slashes in file names in object file debugging info
1558# mess up M-x gdb in Emacs.
1559case $srcdir in
1560*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1561esac
1562for ac_var in $ac_precious_vars; do
1563  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1564  eval ac_env_${ac_var}_value=\$${ac_var}
1565  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1566  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1567done
1568
1569#
1570# Report the --help message.
1571#
1572if test "$ac_init_help" = "long"; then
1573  # Omit some internal or obsolete options to make the list less imposing.
1574  # This message is too long to be a string in the A/UX 3.1 sh.
1575  cat <<_ACEOF
1576\`configure' configures ntp 4.2.8p1 to adapt to many kinds of systems.
1577
1578Usage: $0 [OPTION]... [VAR=VALUE]...
1579
1580To assign environment variables (e.g., CC, CFLAGS...), specify them as
1581VAR=VALUE.  See below for descriptions of some of the useful variables.
1582
1583Defaults for the options are specified in brackets.
1584
1585Configuration:
1586  -h, --help              display this help and exit
1587      --help=short        display options specific to this package
1588      --help=recursive    display the short help of all the included packages
1589  -V, --version           display version information and exit
1590  -q, --quiet, --silent   do not print \`checking ...' messages
1591      --cache-file=FILE   cache test results in FILE [disabled]
1592  -C, --config-cache      alias for \`--cache-file=config.cache'
1593  -n, --no-create         do not create output files
1594      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1595
1596Installation directories:
1597  --prefix=PREFIX         install architecture-independent files in PREFIX
1598                          [$ac_default_prefix]
1599  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1600                          [PREFIX]
1601
1602By default, \`make install' will install all the files in
1603\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1604an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1605for instance \`--prefix=\$HOME'.
1606
1607For better control, use the options below.
1608
1609Fine tuning of the installation directories:
1610  --bindir=DIR            user executables [EPREFIX/bin]
1611  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1612  --libexecdir=DIR        program executables [EPREFIX/libexec]
1613  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1614  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1615  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1616  --libdir=DIR            object code libraries [EPREFIX/lib]
1617  --includedir=DIR        C header files [PREFIX/include]
1618  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1619  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1620  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1621  --infodir=DIR           info documentation [DATAROOTDIR/info]
1622  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1623  --mandir=DIR            man documentation [DATAROOTDIR/man]
1624  --docdir=DIR            documentation root [DATAROOTDIR/doc/ntp]
1625  --htmldir=DIR           html documentation [DOCDIR]
1626  --dvidir=DIR            dvi documentation [DOCDIR]
1627  --pdfdir=DIR            pdf documentation [DOCDIR]
1628  --psdir=DIR             ps documentation [DOCDIR]
1629_ACEOF
1630
1631  cat <<\_ACEOF
1632
1633Program names:
1634  --program-prefix=PREFIX            prepend PREFIX to installed program names
1635  --program-suffix=SUFFIX            append SUFFIX to installed program names
1636  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1637
1638System types:
1639  --build=BUILD     configure for building on BUILD [guessed]
1640  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1641_ACEOF
1642fi
1643
1644if test -n "$ac_init_help"; then
1645  case $ac_init_help in
1646     short | recursive ) echo "Configuration of ntp 4.2.8p1:";;
1647   esac
1648  cat <<\_ACEOF
1649
1650Optional Features and Packages:
1651  --disable-option-checking  ignore unrecognized --enable/--with options
1652  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1653  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1654  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1655  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1656  --enable-silent-rules          less verbose build output (undo: `make V=1')
1657  --disable-silent-rules         verbose build output (undo: `make V=0')
1658  --disable-dependency-tracking  speeds up one-time build
1659  --enable-dependency-tracking   do not reject slow dependency extractors
1660  --with-locfile=XXX      os-specific or "legacy"
1661  --enable-shared[=PKGS]  build shared libraries [default=no]
1662  --enable-static[=PKGS]  build static libraries [default=yes]
1663  --with-pic              try to use only PIC/non-PIC objects [default=use
1664                          both]
1665  --enable-fast-install[=PKGS]
1666                          optimize for fast installation [default=yes]
1667  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1668  --with-sysroot=DIR Search for dependent libraries within DIR
1669                        (or the compiler's sysroot if not specified).
1670  --disable-libtool-lock  avoid locking (might break parallel builds)
1671  --disable-nls           disable nls support in libopts
1672  --enable-local-libopts  Use the supplied libopts tearoff code
1673  --enable-libopts-install
1674                          Install libopts with client installation
1675  --with-autoopts-config  specify the config-info script
1676  --enable-local-libevent Force using the supplied libevent tearoff code
1677  --with-lineeditlibs     edit,editline (readline may be specified if desired)
1678  defaults:               + yes, - no, s system-specific
1679  --enable-debugging      + include ntpd debugging code
1680  --enable-thread-support s use threads (+ if available)
1681  --with-threads	  with threads [auto]
1682  --with-yielding-select  with yielding select [auto]
1683  --enable-c99-snprintf   s force replacement
1684  --enable-clockctl       s Use /dev/clockctl for non-root clock control
1685  --enable-linuxcaps      + Use Linux capabilities for non-root clock control
1686  --enable-solarisprivs   + Use Solaris privileges for non-root clock control
1687  --with-arlib            - deprecated, arlib not distributed
1688  --with-net-snmp-config  + =net-snmp-config
1689  --enable-libseccomp     EXPERIMENTAL: enable support for libseccomp
1690                          sandboxing (default is no)
1691  --with-stack-limit      ? =50 (200 for openbsd) 4k pages
1692  --with-memlock          ? =32 (megabytes)
1693  --enable-debug-timing   - include processing time debugging code (costs
1694                          performance)
1695  --enable-dst-minutes    =60 minutes per DST adjustment
1696  --enable-ignore-dns-errors
1697                          - retry DNS queries on any error
1698  --enable-BANCOMM        - Datum/Bancomm bc635/VME interface
1699  --enable-GPSVME         - TrueTime GPS receiver/VME interface
1700  --enable-all-clocks     + include all suitable non-PARSE clocks:
1701  --enable-ACTS           s ACTS modem service
1702  --enable-ARBITER        + Arbiter 1088A/B GPS receiver
1703  --enable-ARCRON-MSF     + Arcron MSF receiver
1704  --enable-AS2201         + Austron 2200A/2201A GPS receiver
1705  --enable-ATOM           s ATOM PPS interface
1706  --enable-CHRONOLOG      + Chrono-log K-series WWVB receiver
1707  --enable-CHU            + CHU modem/decoder
1708  --enable-AUDIO-CHU      s CHU audio/decoder
1709  --enable-DATUM          s Datum Programmable Time System
1710  --enable-DUMBCLOCK      + Dumb generic hh:mm:ss local clock
1711  --enable-FG             + Forum Graphic GPS
1712  --enable-HEATH          s Heath GC-1000 WWV/WWVH receiver
1713  --enable-HOPFSERIAL     + hopf serial clock device
1714  --enable-HOPFPCI        + hopf 6039 PCI board
1715  --enable-HPGPS          + HP 58503A GPS receiver
1716  --enable-IRIG           s IRIG audio decoder
1717  --enable-JJY            + JJY receiver
1718  --enable-JUPITER        s Rockwell Jupiter GPS receiver
1719  --enable-LEITCH         + Leitch CSD 5300 Master Clock System Driver
1720  --enable-LOCAL-CLOCK    + local clock reference
1721  --enable-MX4200         s Magnavox MX4200 GPS receiver
1722  --enable-NEOCLOCK4X     + NeoClock4X DCF77 / TDF receiver
1723  --enable-NMEA           + NMEA GPS receiver
1724  --enable-GPSD           + GPSD JSON receiver
1725  --enable-ONCORE         s Motorola VP/UT Oncore GPS receiver
1726  --enable-PALISADE       s Palisade clock
1727  --enable-PCF            + Conrad parallel port radio clock
1728  --enable-PST            + PST/Traconex 1020 WWV/WWVH receiver
1729  --enable-RIPENCC        - RIPENCC specific Trimble driver
1730  --enable-SHM            s SHM clock attached thru shared memory
1731  --enable-SPECTRACOM     + Spectracom 8170/Netclock/2 WWVB receiver
1732  --enable-TPRO           s KSI/Odetics TPRO/S GPS receiver/IRIG interface
1733  --enable-TRUETIME       s Kinemetrics/TrueTime receivers
1734  --enable-TT560          - TrueTime 560 IRIG-B decoder
1735  --enable-ULINK          + Ultralink WWVB receiver
1736  --enable-TSYNCPCI       s Spectracom TSYNC timing board
1737  --enable-WWV            s WWV Audio receiver
1738  --enable-ZYFER          + Zyfer GPStarplus receiver
1739  --enable-parse-clocks   - include all suitable PARSE clocks:
1740  --enable-COMPUTIME      s Diem Computime Radio Clock
1741  --enable-DCF7000        s ELV/DCF7000 clock
1742  --enable-HOPF6021       s HOPF 6021 clock
1743  --enable-MEINBERG       s Meinberg clocks
1744  --enable-RAWDCF         s DCF77 raw time code
1745  --enable-RCC8000        s RCC 8000 clock
1746  --enable-SCHMID         s Schmid DCF77 clock
1747  --enable-TRIMTAIP       s Trimble GPS receiver/TAIP protocol
1748  --enable-TRIMTSIP       s Trimble GPS receiver/TSIP protocol
1749  --enable-WHARTON        s WHARTON 400A Series clock
1750  --enable-VARITEXT       s VARITEXT clock
1751  --enable-SEL240X        s SEL240X clock
1752  --with-crypto           + =openssl,libcrypto
1753
1754  --with-openssl-libdir   + =/something/reasonable
1755
1756  --with-openssl-incdir   + =/something/reasonable
1757
1758  --without-rpath         s Disable auto-added -R linker paths
1759
1760  --enable-openssl-random Use OpenSSL's crypto random number functions, if
1761                          available (default is yes)
1762  --enable-autokey        + support NTP Autokey protocol
1763  --enable-kmem           s read /dev/kmem for tick and/or tickadj
1764  --enable-accurate-adjtime
1765                          s the adjtime() call is accurate
1766  --enable-tick=VALUE     s force a value for 'tick'
1767  --enable-tickadj=VALUE  s force a value for 'tickadj'
1768  --enable-simulator      - build/install the NTPD simulator?
1769  --without-sntp          - disable building sntp and sntp/tests
1770  --with-ntpsnmpd         s Build ntpsnmpd MIB agent?
1771  --enable-slew-always    s always slew the time
1772  --enable-step-slew      s step and slew the time
1773  --enable-ntpdate-step   s if ntpdate should step the time
1774  --enable-hourly-todr-sync
1775                          s if we should sync TODR hourly
1776  --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
1777  --enable-bug1243-fix    + use unmodified autokey session keys
1778  --enable-irig-sawtooth  s if we should enable the IRIG sawtooth filter
1779  --enable-nist           - if we should enable the NIST lockclock scheme
1780  --enable-ntp-signd      - Provide support for Samba's signing daemon,
1781                          =/var/run/ntp_signd
1782  --enable-ipv6           s use IPv6?
1783
1784  --with-kame             - =/usr/local/v6
1785  --enable-getifaddrs     + Enable the use of getifaddrs() [[yes|no]].
1786  --enable-saveconfig     + saveconfig mechanism
1787  --with-gtest            Use the gtest framework (Default: if it's available)
1788
1789Some influential environment variables:
1790  CC          C compiler command
1791  CFLAGS      C compiler flags
1792  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1793              nonstandard directory <lib dir>
1794  LIBS        libraries to pass to the linker, e.g. -l<library>
1795  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1796              you have headers in a nonstandard directory <include dir>
1797  CPP         C preprocessor
1798  CXX         C++ compiler command
1799  CXXFLAGS    C++ compiler flags
1800  YACC        The `Yet Another Compiler Compiler' implementation to use.
1801              Defaults to the first program found out of: `bison -y', `byacc',
1802              `yacc'.
1803  YFLAGS      The list of arguments that will be passed by default to $YACC.
1804              This script will default YFLAGS to the empty string to avoid a
1805              default value of `-d' given by some make applications.
1806  CXXCPP      C++ preprocessor
1807
1808Use these variables to override the choices made by `configure' or to help
1809it to find libraries and programs with nonstandard names/locations.
1810
1811Report bugs to <http://bugs.ntp.org./>.
1812ntp home page: <http://www.ntp.org./>.
1813_ACEOF
1814ac_status=$?
1815fi
1816
1817if test "$ac_init_help" = "recursive"; then
1818  # If there are subdirs, report their specific --help.
1819  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1820    test -d "$ac_dir" ||
1821      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1822      continue
1823    ac_builddir=.
1824
1825case "$ac_dir" in
1826.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1827*)
1828  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1829  # A ".." for each directory in $ac_dir_suffix.
1830  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1831  case $ac_top_builddir_sub in
1832  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1833  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1834  esac ;;
1835esac
1836ac_abs_top_builddir=$ac_pwd
1837ac_abs_builddir=$ac_pwd$ac_dir_suffix
1838# for backward compatibility:
1839ac_top_builddir=$ac_top_build_prefix
1840
1841case $srcdir in
1842  .)  # We are building in place.
1843    ac_srcdir=.
1844    ac_top_srcdir=$ac_top_builddir_sub
1845    ac_abs_top_srcdir=$ac_pwd ;;
1846  [\\/]* | ?:[\\/]* )  # Absolute name.
1847    ac_srcdir=$srcdir$ac_dir_suffix;
1848    ac_top_srcdir=$srcdir
1849    ac_abs_top_srcdir=$srcdir ;;
1850  *) # Relative name.
1851    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1852    ac_top_srcdir=$ac_top_build_prefix$srcdir
1853    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1854esac
1855ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1856
1857    cd "$ac_dir" || { ac_status=$?; continue; }
1858    # Check for guested configure.
1859    if test -f "$ac_srcdir/configure.gnu"; then
1860      echo &&
1861      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1862    elif test -f "$ac_srcdir/configure"; then
1863      echo &&
1864      $SHELL "$ac_srcdir/configure" --help=recursive
1865    else
1866      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1867    fi || ac_status=$?
1868    cd "$ac_pwd" || { ac_status=$?; break; }
1869  done
1870fi
1871
1872test -n "$ac_init_help" && exit $ac_status
1873if $ac_init_version; then
1874  cat <<\_ACEOF
1875ntp configure 4.2.8p1
1876generated by GNU Autoconf 2.68
1877
1878Copyright (C) 2010 Free Software Foundation, Inc.
1879This configure script is free software; the Free Software Foundation
1880gives unlimited permission to copy, distribute and modify it.
1881_ACEOF
1882  exit
1883fi
1884
1885## ------------------------ ##
1886## Autoconf initialization. ##
1887## ------------------------ ##
1888
1889# ac_fn_c_try_compile LINENO
1890# --------------------------
1891# Try to compile conftest.$ac_ext, and return whether this succeeded.
1892ac_fn_c_try_compile ()
1893{
1894  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895  rm -f conftest.$ac_objext
1896  if { { ac_try="$ac_compile"
1897case "(($ac_try" in
1898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899  *) ac_try_echo=$ac_try;;
1900esac
1901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902$as_echo "$ac_try_echo"; } >&5
1903  (eval "$ac_compile") 2>conftest.err
1904  ac_status=$?
1905  if test -s conftest.err; then
1906    grep -v '^ *+' conftest.err >conftest.er1
1907    cat conftest.er1 >&5
1908    mv -f conftest.er1 conftest.err
1909  fi
1910  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911  test $ac_status = 0; } && {
1912	 test -z "$ac_c_werror_flag" ||
1913	 test ! -s conftest.err
1914       } && test -s conftest.$ac_objext; then :
1915  ac_retval=0
1916else
1917  $as_echo "$as_me: failed program was:" >&5
1918sed 's/^/| /' conftest.$ac_ext >&5
1919
1920	ac_retval=1
1921fi
1922  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923  as_fn_set_status $ac_retval
1924
1925} # ac_fn_c_try_compile
1926
1927# ac_fn_c_try_cpp LINENO
1928# ----------------------
1929# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1930ac_fn_c_try_cpp ()
1931{
1932  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933  if { { ac_try="$ac_cpp conftest.$ac_ext"
1934case "(($ac_try" in
1935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1936  *) ac_try_echo=$ac_try;;
1937esac
1938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939$as_echo "$ac_try_echo"; } >&5
1940  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1941  ac_status=$?
1942  if test -s conftest.err; then
1943    grep -v '^ *+' conftest.err >conftest.er1
1944    cat conftest.er1 >&5
1945    mv -f conftest.er1 conftest.err
1946  fi
1947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1948  test $ac_status = 0; } > conftest.i && {
1949	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1950	 test ! -s conftest.err
1951       }; then :
1952  ac_retval=0
1953else
1954  $as_echo "$as_me: failed program was:" >&5
1955sed 's/^/| /' conftest.$ac_ext >&5
1956
1957    ac_retval=1
1958fi
1959  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960  as_fn_set_status $ac_retval
1961
1962} # ac_fn_c_try_cpp
1963
1964# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1965# -------------------------------------------------------
1966# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1967# the include files in INCLUDES and setting the cache variable VAR
1968# accordingly.
1969ac_fn_c_check_header_mongrel ()
1970{
1971  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972  if eval \${$3+:} false; then :
1973  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974$as_echo_n "checking for $2... " >&6; }
1975if eval \${$3+:} false; then :
1976  $as_echo_n "(cached) " >&6
1977fi
1978eval ac_res=\$$3
1979	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980$as_echo "$ac_res" >&6; }
1981else
1982  # Is the header compilable?
1983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1984$as_echo_n "checking $2 usability... " >&6; }
1985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986/* end confdefs.h.  */
1987$4
1988#include <$2>
1989_ACEOF
1990if ac_fn_c_try_compile "$LINENO"; then :
1991  ac_header_compiler=yes
1992else
1993  ac_header_compiler=no
1994fi
1995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1997$as_echo "$ac_header_compiler" >&6; }
1998
1999# Is the header present?
2000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2001$as_echo_n "checking $2 presence... " >&6; }
2002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003/* end confdefs.h.  */
2004#include <$2>
2005_ACEOF
2006if ac_fn_c_try_cpp "$LINENO"; then :
2007  ac_header_preproc=yes
2008else
2009  ac_header_preproc=no
2010fi
2011rm -f conftest.err conftest.i conftest.$ac_ext
2012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2013$as_echo "$ac_header_preproc" >&6; }
2014
2015# So?  What about this header?
2016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2017  yes:no: )
2018    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2019$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2020    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2021$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2022    ;;
2023  no:yes:* )
2024    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2025$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2026    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2027$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2028    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2029$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2030    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2031$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2032    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2033$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2034( $as_echo "## ------------------------------------ ##
2035## Report this to http://bugs.ntp.org./ ##
2036## ------------------------------------ ##"
2037     ) | sed "s/^/$as_me: WARNING:     /" >&2
2038    ;;
2039esac
2040  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041$as_echo_n "checking for $2... " >&6; }
2042if eval \${$3+:} false; then :
2043  $as_echo_n "(cached) " >&6
2044else
2045  eval "$3=\$ac_header_compiler"
2046fi
2047eval ac_res=\$$3
2048	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049$as_echo "$ac_res" >&6; }
2050fi
2051  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052
2053} # ac_fn_c_check_header_mongrel
2054
2055# ac_fn_c_try_run LINENO
2056# ----------------------
2057# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2058# that executables *can* be run.
2059ac_fn_c_try_run ()
2060{
2061  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062  if { { ac_try="$ac_link"
2063case "(($ac_try" in
2064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065  *) ac_try_echo=$ac_try;;
2066esac
2067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068$as_echo "$ac_try_echo"; } >&5
2069  (eval "$ac_link") 2>&5
2070  ac_status=$?
2071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2072  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2073  { { case "(($ac_try" in
2074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2075  *) ac_try_echo=$ac_try;;
2076esac
2077eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078$as_echo "$ac_try_echo"; } >&5
2079  (eval "$ac_try") 2>&5
2080  ac_status=$?
2081  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2082  test $ac_status = 0; }; }; then :
2083  ac_retval=0
2084else
2085  $as_echo "$as_me: program exited with status $ac_status" >&5
2086       $as_echo "$as_me: failed program was:" >&5
2087sed 's/^/| /' conftest.$ac_ext >&5
2088
2089       ac_retval=$ac_status
2090fi
2091  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2092  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093  as_fn_set_status $ac_retval
2094
2095} # ac_fn_c_try_run
2096
2097# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2098# -------------------------------------------------------
2099# Tests whether HEADER exists and can be compiled using the include files in
2100# INCLUDES, setting the cache variable VAR accordingly.
2101ac_fn_c_check_header_compile ()
2102{
2103  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2105$as_echo_n "checking for $2... " >&6; }
2106if eval \${$3+:} false; then :
2107  $as_echo_n "(cached) " >&6
2108else
2109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110/* end confdefs.h.  */
2111$4
2112#include <$2>
2113_ACEOF
2114if ac_fn_c_try_compile "$LINENO"; then :
2115  eval "$3=yes"
2116else
2117  eval "$3=no"
2118fi
2119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120fi
2121eval ac_res=\$$3
2122	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123$as_echo "$ac_res" >&6; }
2124  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125
2126} # ac_fn_c_check_header_compile
2127
2128# ac_fn_c_try_link LINENO
2129# -----------------------
2130# Try to link conftest.$ac_ext, and return whether this succeeded.
2131ac_fn_c_try_link ()
2132{
2133  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134  rm -f conftest.$ac_objext conftest$ac_exeext
2135  if { { ac_try="$ac_link"
2136case "(($ac_try" in
2137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2138  *) ac_try_echo=$ac_try;;
2139esac
2140eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2141$as_echo "$ac_try_echo"; } >&5
2142  (eval "$ac_link") 2>conftest.err
2143  ac_status=$?
2144  if test -s conftest.err; then
2145    grep -v '^ *+' conftest.err >conftest.er1
2146    cat conftest.er1 >&5
2147    mv -f conftest.er1 conftest.err
2148  fi
2149  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2150  test $ac_status = 0; } && {
2151	 test -z "$ac_c_werror_flag" ||
2152	 test ! -s conftest.err
2153       } && test -s conftest$ac_exeext && {
2154	 test "$cross_compiling" = yes ||
2155	 $as_test_x conftest$ac_exeext
2156       }; then :
2157  ac_retval=0
2158else
2159  $as_echo "$as_me: failed program was:" >&5
2160sed 's/^/| /' conftest.$ac_ext >&5
2161
2162	ac_retval=1
2163fi
2164  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2165  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2166  # interfere with the next link command; also delete a directory that is
2167  # left behind by Apple's compiler.  We do this before executing the actions.
2168  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2169  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170  as_fn_set_status $ac_retval
2171
2172} # ac_fn_c_try_link
2173
2174# ac_fn_cxx_try_compile LINENO
2175# ----------------------------
2176# Try to compile conftest.$ac_ext, and return whether this succeeded.
2177ac_fn_cxx_try_compile ()
2178{
2179  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180  rm -f conftest.$ac_objext
2181  if { { ac_try="$ac_compile"
2182case "(($ac_try" in
2183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2184  *) ac_try_echo=$ac_try;;
2185esac
2186eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2187$as_echo "$ac_try_echo"; } >&5
2188  (eval "$ac_compile") 2>conftest.err
2189  ac_status=$?
2190  if test -s conftest.err; then
2191    grep -v '^ *+' conftest.err >conftest.er1
2192    cat conftest.er1 >&5
2193    mv -f conftest.er1 conftest.err
2194  fi
2195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2196  test $ac_status = 0; } && {
2197	 test -z "$ac_cxx_werror_flag" ||
2198	 test ! -s conftest.err
2199       } && test -s conftest.$ac_objext; then :
2200  ac_retval=0
2201else
2202  $as_echo "$as_me: failed program was:" >&5
2203sed 's/^/| /' conftest.$ac_ext >&5
2204
2205	ac_retval=1
2206fi
2207  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2208  as_fn_set_status $ac_retval
2209
2210} # ac_fn_cxx_try_compile
2211
2212# ac_fn_c_check_func LINENO FUNC VAR
2213# ----------------------------------
2214# Tests whether FUNC exists, setting the cache variable VAR accordingly
2215ac_fn_c_check_func ()
2216{
2217  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2219$as_echo_n "checking for $2... " >&6; }
2220if eval \${$3+:} false; then :
2221  $as_echo_n "(cached) " >&6
2222else
2223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224/* end confdefs.h.  */
2225/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2226   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2227#define $2 innocuous_$2
2228
2229/* System header to define __stub macros and hopefully few prototypes,
2230    which can conflict with char $2 (); below.
2231    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2232    <limits.h> exists even on freestanding compilers.  */
2233
2234#ifdef __STDC__
2235# include <limits.h>
2236#else
2237# include <assert.h>
2238#endif
2239
2240#undef $2
2241
2242/* Override any GCC internal prototype to avoid an error.
2243   Use char because int might match the return type of a GCC
2244   builtin and then its argument prototype would still apply.  */
2245#ifdef __cplusplus
2246extern "C"
2247#endif
2248char $2 ();
2249/* The GNU C library defines this for functions which it implements
2250    to always fail with ENOSYS.  Some functions are actually named
2251    something starting with __ and the normal name is an alias.  */
2252#if defined __stub_$2 || defined __stub___$2
2253choke me
2254#endif
2255
2256int
2257main ()
2258{
2259return $2 ();
2260  ;
2261  return 0;
2262}
2263_ACEOF
2264if ac_fn_c_try_link "$LINENO"; then :
2265  eval "$3=yes"
2266else
2267  eval "$3=no"
2268fi
2269rm -f core conftest.err conftest.$ac_objext \
2270    conftest$ac_exeext conftest.$ac_ext
2271fi
2272eval ac_res=\$$3
2273	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274$as_echo "$ac_res" >&6; }
2275  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2276
2277} # ac_fn_c_check_func
2278
2279# ac_fn_cxx_try_cpp LINENO
2280# ------------------------
2281# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2282ac_fn_cxx_try_cpp ()
2283{
2284  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285  if { { ac_try="$ac_cpp conftest.$ac_ext"
2286case "(($ac_try" in
2287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288  *) ac_try_echo=$ac_try;;
2289esac
2290eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2291$as_echo "$ac_try_echo"; } >&5
2292  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2293  ac_status=$?
2294  if test -s conftest.err; then
2295    grep -v '^ *+' conftest.err >conftest.er1
2296    cat conftest.er1 >&5
2297    mv -f conftest.er1 conftest.err
2298  fi
2299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2300  test $ac_status = 0; } > conftest.i && {
2301	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2302	 test ! -s conftest.err
2303       }; then :
2304  ac_retval=0
2305else
2306  $as_echo "$as_me: failed program was:" >&5
2307sed 's/^/| /' conftest.$ac_ext >&5
2308
2309    ac_retval=1
2310fi
2311  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312  as_fn_set_status $ac_retval
2313
2314} # ac_fn_cxx_try_cpp
2315
2316# ac_fn_cxx_try_link LINENO
2317# -------------------------
2318# Try to link conftest.$ac_ext, and return whether this succeeded.
2319ac_fn_cxx_try_link ()
2320{
2321  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2322  rm -f conftest.$ac_objext conftest$ac_exeext
2323  if { { ac_try="$ac_link"
2324case "(($ac_try" in
2325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326  *) ac_try_echo=$ac_try;;
2327esac
2328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2329$as_echo "$ac_try_echo"; } >&5
2330  (eval "$ac_link") 2>conftest.err
2331  ac_status=$?
2332  if test -s conftest.err; then
2333    grep -v '^ *+' conftest.err >conftest.er1
2334    cat conftest.er1 >&5
2335    mv -f conftest.er1 conftest.err
2336  fi
2337  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2338  test $ac_status = 0; } && {
2339	 test -z "$ac_cxx_werror_flag" ||
2340	 test ! -s conftest.err
2341       } && test -s conftest$ac_exeext && {
2342	 test "$cross_compiling" = yes ||
2343	 $as_test_x conftest$ac_exeext
2344       }; then :
2345  ac_retval=0
2346else
2347  $as_echo "$as_me: failed program was:" >&5
2348sed 's/^/| /' conftest.$ac_ext >&5
2349
2350	ac_retval=1
2351fi
2352  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2353  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2354  # interfere with the next link command; also delete a directory that is
2355  # left behind by Apple's compiler.  We do this before executing the actions.
2356  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2357  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2358  as_fn_set_status $ac_retval
2359
2360} # ac_fn_cxx_try_link
2361
2362# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2363# -------------------------------------------
2364# Tests whether TYPE exists after having included INCLUDES, setting cache
2365# variable VAR accordingly.
2366ac_fn_c_check_type ()
2367{
2368  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2370$as_echo_n "checking for $2... " >&6; }
2371if eval \${$3+:} false; then :
2372  $as_echo_n "(cached) " >&6
2373else
2374  eval "$3=no"
2375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2376/* end confdefs.h.  */
2377$4
2378int
2379main ()
2380{
2381if (sizeof ($2))
2382	 return 0;
2383  ;
2384  return 0;
2385}
2386_ACEOF
2387if ac_fn_c_try_compile "$LINENO"; then :
2388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2389/* end confdefs.h.  */
2390$4
2391int
2392main ()
2393{
2394if (sizeof (($2)))
2395	    return 0;
2396  ;
2397  return 0;
2398}
2399_ACEOF
2400if ac_fn_c_try_compile "$LINENO"; then :
2401
2402else
2403  eval "$3=yes"
2404fi
2405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406fi
2407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2408fi
2409eval ac_res=\$$3
2410	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2411$as_echo "$ac_res" >&6; }
2412  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2413
2414} # ac_fn_c_check_type
2415
2416# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2417# --------------------------------------------
2418# Tries to find the compile-time value of EXPR in a program that includes
2419# INCLUDES, setting VAR accordingly. Returns whether the value could be
2420# computed
2421ac_fn_c_compute_int ()
2422{
2423  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2424  if test "$cross_compiling" = yes; then
2425    # Depending upon the size, compute the lo and hi bounds.
2426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427/* end confdefs.h.  */
2428$4
2429int
2430main ()
2431{
2432static int test_array [1 - 2 * !(($2) >= 0)];
2433test_array [0] = 0
2434
2435  ;
2436  return 0;
2437}
2438_ACEOF
2439if ac_fn_c_try_compile "$LINENO"; then :
2440  ac_lo=0 ac_mid=0
2441  while :; do
2442    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2443/* end confdefs.h.  */
2444$4
2445int
2446main ()
2447{
2448static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2449test_array [0] = 0
2450
2451  ;
2452  return 0;
2453}
2454_ACEOF
2455if ac_fn_c_try_compile "$LINENO"; then :
2456  ac_hi=$ac_mid; break
2457else
2458  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2459			if test $ac_lo -le $ac_mid; then
2460			  ac_lo= ac_hi=
2461			  break
2462			fi
2463			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2464fi
2465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466  done
2467else
2468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469/* end confdefs.h.  */
2470$4
2471int
2472main ()
2473{
2474static int test_array [1 - 2 * !(($2) < 0)];
2475test_array [0] = 0
2476
2477  ;
2478  return 0;
2479}
2480_ACEOF
2481if ac_fn_c_try_compile "$LINENO"; then :
2482  ac_hi=-1 ac_mid=-1
2483  while :; do
2484    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485/* end confdefs.h.  */
2486$4
2487int
2488main ()
2489{
2490static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2491test_array [0] = 0
2492
2493  ;
2494  return 0;
2495}
2496_ACEOF
2497if ac_fn_c_try_compile "$LINENO"; then :
2498  ac_lo=$ac_mid; break
2499else
2500  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2501			if test $ac_mid -le $ac_hi; then
2502			  ac_lo= ac_hi=
2503			  break
2504			fi
2505			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2506fi
2507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2508  done
2509else
2510  ac_lo= ac_hi=
2511fi
2512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2513fi
2514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515# Binary search between lo and hi bounds.
2516while test "x$ac_lo" != "x$ac_hi"; do
2517  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2519/* end confdefs.h.  */
2520$4
2521int
2522main ()
2523{
2524static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2525test_array [0] = 0
2526
2527  ;
2528  return 0;
2529}
2530_ACEOF
2531if ac_fn_c_try_compile "$LINENO"; then :
2532  ac_hi=$ac_mid
2533else
2534  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2535fi
2536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2537done
2538case $ac_lo in #((
2539?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2540'') ac_retval=1 ;;
2541esac
2542  else
2543    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544/* end confdefs.h.  */
2545$4
2546static long int longval () { return $2; }
2547static unsigned long int ulongval () { return $2; }
2548#include <stdio.h>
2549#include <stdlib.h>
2550int
2551main ()
2552{
2553
2554  FILE *f = fopen ("conftest.val", "w");
2555  if (! f)
2556    return 1;
2557  if (($2) < 0)
2558    {
2559      long int i = longval ();
2560      if (i != ($2))
2561	return 1;
2562      fprintf (f, "%ld", i);
2563    }
2564  else
2565    {
2566      unsigned long int i = ulongval ();
2567      if (i != ($2))
2568	return 1;
2569      fprintf (f, "%lu", i);
2570    }
2571  /* Do not output a trailing newline, as this causes \r\n confusion
2572     on some platforms.  */
2573  return ferror (f) || fclose (f) != 0;
2574
2575  ;
2576  return 0;
2577}
2578_ACEOF
2579if ac_fn_c_try_run "$LINENO"; then :
2580  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2581else
2582  ac_retval=1
2583fi
2584rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2585  conftest.$ac_objext conftest.beam conftest.$ac_ext
2586rm -f conftest.val
2587
2588  fi
2589  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2590  as_fn_set_status $ac_retval
2591
2592} # ac_fn_c_compute_int
2593
2594# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2595# ---------------------------------------------
2596# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2597# accordingly.
2598ac_fn_c_check_decl ()
2599{
2600  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2601  as_decl_name=`echo $2|sed 's/ *(.*//'`
2602  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2604$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2605if eval \${$3+:} false; then :
2606  $as_echo_n "(cached) " >&6
2607else
2608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609/* end confdefs.h.  */
2610$4
2611int
2612main ()
2613{
2614#ifndef $as_decl_name
2615#ifdef __cplusplus
2616  (void) $as_decl_use;
2617#else
2618  (void) $as_decl_name;
2619#endif
2620#endif
2621
2622  ;
2623  return 0;
2624}
2625_ACEOF
2626if ac_fn_c_try_compile "$LINENO"; then :
2627  eval "$3=yes"
2628else
2629  eval "$3=no"
2630fi
2631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2632fi
2633eval ac_res=\$$3
2634	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2635$as_echo "$ac_res" >&6; }
2636  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2637
2638} # ac_fn_c_check_decl
2639
2640# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2641# ----------------------------------------------------
2642# Tries to find if the field MEMBER exists in type AGGR, after including
2643# INCLUDES, setting cache variable VAR accordingly.
2644ac_fn_c_check_member ()
2645{
2646  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2648$as_echo_n "checking for $2.$3... " >&6; }
2649if eval \${$4+:} false; then :
2650  $as_echo_n "(cached) " >&6
2651else
2652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653/* end confdefs.h.  */
2654$5
2655int
2656main ()
2657{
2658static $2 ac_aggr;
2659if (ac_aggr.$3)
2660return 0;
2661  ;
2662  return 0;
2663}
2664_ACEOF
2665if ac_fn_c_try_compile "$LINENO"; then :
2666  eval "$4=yes"
2667else
2668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669/* end confdefs.h.  */
2670$5
2671int
2672main ()
2673{
2674static $2 ac_aggr;
2675if (sizeof ac_aggr.$3)
2676return 0;
2677  ;
2678  return 0;
2679}
2680_ACEOF
2681if ac_fn_c_try_compile "$LINENO"; then :
2682  eval "$4=yes"
2683else
2684  eval "$4=no"
2685fi
2686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687fi
2688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2689fi
2690eval ac_res=\$$4
2691	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692$as_echo "$ac_res" >&6; }
2693  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2694
2695} # ac_fn_c_check_member
2696cat >config.log <<_ACEOF
2697This file contains any messages produced by compilers while
2698running configure, to aid debugging if configure makes a mistake.
2699
2700It was created by ntp $as_me 4.2.8p1, which was
2701generated by GNU Autoconf 2.68.  Invocation command line was
2702
2703  $ $0 $@
2704
2705_ACEOF
2706exec 5>>config.log
2707{
2708cat <<_ASUNAME
2709## --------- ##
2710## Platform. ##
2711## --------- ##
2712
2713hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2714uname -m = `(uname -m) 2>/dev/null || echo unknown`
2715uname -r = `(uname -r) 2>/dev/null || echo unknown`
2716uname -s = `(uname -s) 2>/dev/null || echo unknown`
2717uname -v = `(uname -v) 2>/dev/null || echo unknown`
2718
2719/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2720/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2721
2722/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2723/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2724/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2725/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2726/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2727/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2728/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2729
2730_ASUNAME
2731
2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733for as_dir in $PATH
2734do
2735  IFS=$as_save_IFS
2736  test -z "$as_dir" && as_dir=.
2737    $as_echo "PATH: $as_dir"
2738  done
2739IFS=$as_save_IFS
2740
2741} >&5
2742
2743cat >&5 <<_ACEOF
2744
2745
2746## ----------- ##
2747## Core tests. ##
2748## ----------- ##
2749
2750_ACEOF
2751
2752
2753# Keep a trace of the command line.
2754# Strip out --no-create and --no-recursion so they do not pile up.
2755# Strip out --silent because we don't want to record it for future runs.
2756# Also quote any args containing shell meta-characters.
2757# Make two passes to allow for proper duplicate-argument suppression.
2758ac_configure_args=
2759ac_configure_args0=
2760ac_configure_args1=
2761ac_must_keep_next=false
2762for ac_pass in 1 2
2763do
2764  for ac_arg
2765  do
2766    case $ac_arg in
2767    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2768    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2769    | -silent | --silent | --silen | --sile | --sil)
2770      continue ;;
2771    *\'*)
2772      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2773    esac
2774    case $ac_pass in
2775    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2776    2)
2777      as_fn_append ac_configure_args1 " '$ac_arg'"
2778      if test $ac_must_keep_next = true; then
2779	ac_must_keep_next=false # Got value, back to normal.
2780      else
2781	case $ac_arg in
2782	  *=* | --config-cache | -C | -disable-* | --disable-* \
2783	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2784	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2785	  | -with-* | --with-* | -without-* | --without-* | --x)
2786	    case "$ac_configure_args0 " in
2787	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2788	    esac
2789	    ;;
2790	  -* ) ac_must_keep_next=true ;;
2791	esac
2792      fi
2793      as_fn_append ac_configure_args " '$ac_arg'"
2794      ;;
2795    esac
2796  done
2797done
2798{ ac_configure_args0=; unset ac_configure_args0;}
2799{ ac_configure_args1=; unset ac_configure_args1;}
2800
2801# When interrupted or exit'd, cleanup temporary files, and complete
2802# config.log.  We remove comments because anyway the quotes in there
2803# would cause problems or look ugly.
2804# WARNING: Use '\'' to represent an apostrophe within the trap.
2805# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2806trap 'exit_status=$?
2807  # Save into config.log some information that might help in debugging.
2808  {
2809    echo
2810
2811    $as_echo "## ---------------- ##
2812## Cache variables. ##
2813## ---------------- ##"
2814    echo
2815    # The following way of writing the cache mishandles newlines in values,
2816(
2817  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2818    eval ac_val=\$$ac_var
2819    case $ac_val in #(
2820    *${as_nl}*)
2821      case $ac_var in #(
2822      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2823$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2824      esac
2825      case $ac_var in #(
2826      _ | IFS | as_nl) ;; #(
2827      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2828      *) { eval $ac_var=; unset $ac_var;} ;;
2829      esac ;;
2830    esac
2831  done
2832  (set) 2>&1 |
2833    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2834    *${as_nl}ac_space=\ *)
2835      sed -n \
2836	"s/'\''/'\''\\\\'\'''\''/g;
2837	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2838      ;; #(
2839    *)
2840      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2841      ;;
2842    esac |
2843    sort
2844)
2845    echo
2846
2847    $as_echo "## ----------------- ##
2848## Output variables. ##
2849## ----------------- ##"
2850    echo
2851    for ac_var in $ac_subst_vars
2852    do
2853      eval ac_val=\$$ac_var
2854      case $ac_val in
2855      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2856      esac
2857      $as_echo "$ac_var='\''$ac_val'\''"
2858    done | sort
2859    echo
2860
2861    if test -n "$ac_subst_files"; then
2862      $as_echo "## ------------------- ##
2863## File substitutions. ##
2864## ------------------- ##"
2865      echo
2866      for ac_var in $ac_subst_files
2867      do
2868	eval ac_val=\$$ac_var
2869	case $ac_val in
2870	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2871	esac
2872	$as_echo "$ac_var='\''$ac_val'\''"
2873      done | sort
2874      echo
2875    fi
2876
2877    if test -s confdefs.h; then
2878      $as_echo "## ----------- ##
2879## confdefs.h. ##
2880## ----------- ##"
2881      echo
2882      cat confdefs.h
2883      echo
2884    fi
2885    test "$ac_signal" != 0 &&
2886      $as_echo "$as_me: caught signal $ac_signal"
2887    $as_echo "$as_me: exit $exit_status"
2888  } >&5
2889  rm -f core *.core core.conftest.* &&
2890    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2891    exit $exit_status
2892' 0
2893for ac_signal in 1 2 13 15; do
2894  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2895done
2896ac_signal=0
2897
2898# confdefs.h avoids OS command line length limits that DEFS can exceed.
2899rm -f -r conftest* confdefs.h
2900
2901$as_echo "/* confdefs.h */" > confdefs.h
2902
2903# Predefined preprocessor variables.
2904
2905cat >>confdefs.h <<_ACEOF
2906#define PACKAGE_NAME "$PACKAGE_NAME"
2907_ACEOF
2908
2909cat >>confdefs.h <<_ACEOF
2910#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2911_ACEOF
2912
2913cat >>confdefs.h <<_ACEOF
2914#define PACKAGE_VERSION "$PACKAGE_VERSION"
2915_ACEOF
2916
2917cat >>confdefs.h <<_ACEOF
2918#define PACKAGE_STRING "$PACKAGE_STRING"
2919_ACEOF
2920
2921cat >>confdefs.h <<_ACEOF
2922#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2923_ACEOF
2924
2925cat >>confdefs.h <<_ACEOF
2926#define PACKAGE_URL "$PACKAGE_URL"
2927_ACEOF
2928
2929
2930# Let the site file select an alternate cache file if it wants to.
2931# Prefer an explicitly selected file to automatically selected ones.
2932ac_site_file1=NONE
2933ac_site_file2=NONE
2934if test -n "$CONFIG_SITE"; then
2935  # We do not want a PATH search for config.site.
2936  case $CONFIG_SITE in #((
2937    -*)  ac_site_file1=./$CONFIG_SITE;;
2938    */*) ac_site_file1=$CONFIG_SITE;;
2939    *)   ac_site_file1=./$CONFIG_SITE;;
2940  esac
2941elif test "x$prefix" != xNONE; then
2942  ac_site_file1=$prefix/share/config.site
2943  ac_site_file2=$prefix/etc/config.site
2944else
2945  ac_site_file1=$ac_default_prefix/share/config.site
2946  ac_site_file2=$ac_default_prefix/etc/config.site
2947fi
2948for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2949do
2950  test "x$ac_site_file" = xNONE && continue
2951  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2952    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2953$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2954    sed 's/^/| /' "$ac_site_file" >&5
2955    . "$ac_site_file" \
2956      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2958as_fn_error $? "failed to load site script $ac_site_file
2959See \`config.log' for more details" "$LINENO" 5; }
2960  fi
2961done
2962
2963if test -r "$cache_file"; then
2964  # Some versions of bash will fail to source /dev/null (special files
2965  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2966  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2967    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2968$as_echo "$as_me: loading cache $cache_file" >&6;}
2969    case $cache_file in
2970      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2971      *)                      . "./$cache_file";;
2972    esac
2973  fi
2974else
2975  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2976$as_echo "$as_me: creating cache $cache_file" >&6;}
2977  >$cache_file
2978fi
2979
2980as_fn_append ac_header_list " stdarg.h"
2981# Check that the precious variables saved in the cache have kept the same
2982# value.
2983ac_cache_corrupted=false
2984for ac_var in $ac_precious_vars; do
2985  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2986  eval ac_new_set=\$ac_env_${ac_var}_set
2987  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2988  eval ac_new_val=\$ac_env_${ac_var}_value
2989  case $ac_old_set,$ac_new_set in
2990    set,)
2991      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2992$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2993      ac_cache_corrupted=: ;;
2994    ,set)
2995      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2996$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2997      ac_cache_corrupted=: ;;
2998    ,);;
2999    *)
3000      if test "x$ac_old_val" != "x$ac_new_val"; then
3001	# differences in whitespace do not lead to failure.
3002	ac_old_val_w=`echo x $ac_old_val`
3003	ac_new_val_w=`echo x $ac_new_val`
3004	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3005	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3006$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3007	  ac_cache_corrupted=:
3008	else
3009	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3010$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3011	  eval $ac_var=\$ac_old_val
3012	fi
3013	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3014$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3015	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3016$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3017      fi;;
3018  esac
3019  # Pass precious variables to config.status.
3020  if test "$ac_new_set" = set; then
3021    case $ac_new_val in
3022    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3023    *) ac_arg=$ac_var=$ac_new_val ;;
3024    esac
3025    case " $ac_configure_args " in
3026      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3027      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3028    esac
3029  fi
3030done
3031if $ac_cache_corrupted; then
3032  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3033$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3034  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3035$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3036  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3037fi
3038## -------------------- ##
3039## Main body of script. ##
3040## -------------------- ##
3041
3042ac_ext=c
3043ac_cpp='$CPP $CPPFLAGS'
3044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047
3048
3049
3050ac_aux_dir=
3051for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
3052  if test -f "$ac_dir/install-sh"; then
3053    ac_aux_dir=$ac_dir
3054    ac_install_sh="$ac_aux_dir/install-sh -c"
3055    break
3056  elif test -f "$ac_dir/install.sh"; then
3057    ac_aux_dir=$ac_dir
3058    ac_install_sh="$ac_aux_dir/install.sh -c"
3059    break
3060  elif test -f "$ac_dir/shtool"; then
3061    ac_aux_dir=$ac_dir
3062    ac_install_sh="$ac_aux_dir/shtool install -c"
3063    break
3064  fi
3065done
3066if test -z "$ac_aux_dir"; then
3067  as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
3068fi
3069
3070# These three variables are undocumented and unsupported,
3071# and are intended to be withdrawn in a future Autoconf release.
3072# They can cause serious problems if a builder's source tree is in a directory
3073# whose full name contains unusual characters.
3074ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3075ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3076ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3077
3078
3079
3080
3081
3082
3083
3084# Bump ntp_configure_cache_version for each change to configure.ac or
3085# .m4 files which invalidates cached values from previous configure
3086# runs.
3087#
3088# If the change affects cache variables used only by the main NTP
3089# configure.ac, then only its version number should be bumped, while
3090# the subdir configure.ac version numbers should be unchanged.  The
3091# same is true for a test/variable that is used only by one subdir
3092# being changed incompatibly; only that subdir's cache version needs
3093# bumping.
3094#
3095# If a change affects variables shared by all NTP configure scripts,
3096# please bump the version numbers of each.  If you are not sure, the
3097# safe choice is to bump all on any cache-invalidating change.
3098#
3099# In order to avoid the risk of version stamp collision between -stable
3100# and -dev branches, do not simply increment the version, instead use
3101# the date YYYYMMDD optionally with -HHMM if there is more than one
3102# bump in a day.
3103
3104ntp_configure_cache_version=20120806
3105
3106# When the cache version of config.cache and configure do not
3107# match, NTP_CACHEVERSION will flush the cache.
3108
3109
3110
3111    ntp_cache_flush=1
3112
3113    case "$ntp_cv_main_cache_version" in
3114     $ntp_configure_cache_version)
3115	# same version, good
3116	ntp_cache_flush=0
3117	;;
3118     '')
3119	# No cache, predates ntp_cv_main_cache_version, or is empty.
3120	case "$cache_file" in
3121	 /dev/null)
3122	    ntp_cache_flush=0
3123	    ;;
3124	 *)
3125	    case "$NTP_CACHEVERSION_PARENT" in
3126	     '')
3127		# Do not clear the cache immediately after it is created
3128		# empty as it is noisy.  Differentiate a newly-created
3129		# config.cache from one predating the cache version
3130		# mechanism by looking for the first cached variable set
3131		# by Autoconf
3132		case "$ac_cv_path_install" in
3133		 '')
3134		    # empty config.cache file
3135		    ntp_cache_flush=0
3136		esac
3137		;;
3138	     *)
3139		# Parent configure just created cache from empty,
3140		# flushing would be counterproductive.
3141		ntp_cache_flush=0;
3142		;;
3143	    esac
3144	esac
3145	;;
3146     *)
3147	# configure cache version mismatches config.cache version
3148	;;
3149    esac
3150
3151    case "$ntp_cache_flush" in
3152     1)
3153	c_version="${ntp_cv_main_cache_version:-(no version found)}"
3154
3155	# Do we flush all variables or exclude others' version stamps?
3156
3157	case "$NTP_CACHEVERSION_PARENT" in
3158	 '')
3159	    # Clear all *_cv_* variables including our child subdirs'
3160	    # ntp_cv_*_cache_version variables.  This prevents subdir
3161	    # configure scripts from noticing a version mismatch just
3162	    # after the top configure in the invocation cleared and
3163	    # recreated the cache.
3164
3165	    c_varname_list=`set |
3166			    sed -n -e 's/=.*$//' \
3167				   -e '/_cv_/p'
3168			   `
3169	    ;;
3170	 *)
3171	    # This is not the top configure this particular invocation.
3172	    # Clear all *_cv_* variables sparing the version stamps
3173	    # of other configure scripts, so we don't trigger
3174	    # useless repeated clearings.
3175
3176	    c_varname_list=`set |
3177			    sed -n -e 's/=.*$//' \
3178				   -e '/ntp_cv_.*_cache_version/d' \
3179				   -e '/_cv_/p'
3180			   `
3181	esac
3182
3183	for c_varname in $c_varname_list
3184	do
3185	    	    	    	    	    	    { eval $c_varname=; unset $c_varname; }
3186	done
3187
3188	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
3189$as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
3190	{ $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
3191$as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
3192	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
3193$as_echo "$as_me: $cache_file version: $c_version" >&6;}
3194	{ c_varname=; unset c_varname;}
3195	{ c_varname_list=; unset c_varname_list;}
3196	{ c_version=; unset c_version;}
3197    esac
3198
3199    { ntp_cache_flush=; unset ntp_cache_flush;}
3200
3201    # save configure version in config.cache for next time
3202    ntp_cv_main_cache_version="$ntp_configure_cache_version"
3203
3204    # let any subdir configure.ac NTP_CACHEVERSION invocations
3205    # know they are not the top level.
3206    NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT
3207
3208
3209am__api_version='1.11'
3210
3211# Find a good install program.  We prefer a C program (faster),
3212# so one script is as good as another.  But avoid the broken or
3213# incompatible versions:
3214# SysV /etc/install, /usr/sbin/install
3215# SunOS /usr/etc/install
3216# IRIX /sbin/install
3217# AIX /bin/install
3218# AmigaOS /C/install, which installs bootblocks on floppy discs
3219# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3220# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3221# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3222# OS/2's system install, which has a completely different semantic
3223# ./install, which can be erroneously created by make from ./install.sh.
3224# Reject install programs that cannot install multiple files.
3225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3226$as_echo_n "checking for a BSD-compatible install... " >&6; }
3227if test -z "$INSTALL"; then
3228if ${ac_cv_path_install+:} false; then :
3229  $as_echo_n "(cached) " >&6
3230else
3231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232for as_dir in $PATH
3233do
3234  IFS=$as_save_IFS
3235  test -z "$as_dir" && as_dir=.
3236    # Account for people who put trailing slashes in PATH elements.
3237case $as_dir/ in #((
3238  ./ | .// | /[cC]/* | \
3239  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3240  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3241  /usr/ucb/* ) ;;
3242  *)
3243    # OSF1 and SCO ODT 3.0 have their own names for install.
3244    # Don't use installbsd from OSF since it installs stuff as root
3245    # by default.
3246    for ac_prog in ginstall scoinst install; do
3247      for ac_exec_ext in '' $ac_executable_extensions; do
3248	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3249	  if test $ac_prog = install &&
3250	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3251	    # AIX install.  It has an incompatible calling convention.
3252	    :
3253	  elif test $ac_prog = install &&
3254	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3255	    # program-specific install script used by HP pwplus--don't use.
3256	    :
3257	  else
3258	    rm -rf conftest.one conftest.two conftest.dir
3259	    echo one > conftest.one
3260	    echo two > conftest.two
3261	    mkdir conftest.dir
3262	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3263	      test -s conftest.one && test -s conftest.two &&
3264	      test -s conftest.dir/conftest.one &&
3265	      test -s conftest.dir/conftest.two
3266	    then
3267	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3268	      break 3
3269	    fi
3270	  fi
3271	fi
3272      done
3273    done
3274    ;;
3275esac
3276
3277  done
3278IFS=$as_save_IFS
3279
3280rm -rf conftest.one conftest.two conftest.dir
3281
3282fi
3283  if test "${ac_cv_path_install+set}" = set; then
3284    INSTALL=$ac_cv_path_install
3285  else
3286    # As a last resort, use the slow shell script.  Don't cache a
3287    # value for INSTALL within a source directory, because that will
3288    # break other packages using the cache if that directory is
3289    # removed, or if the value is a relative name.
3290    INSTALL=$ac_install_sh
3291  fi
3292fi
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3294$as_echo "$INSTALL" >&6; }
3295
3296# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3297# It thinks the first close brace ends the variable substitution.
3298test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3299
3300test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3301
3302test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3303
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3305$as_echo_n "checking whether build environment is sane... " >&6; }
3306# Just in case
3307sleep 1
3308echo timestamp > conftest.file
3309# Reject unsafe characters in $srcdir or the absolute working directory
3310# name.  Accept space and tab only in the latter.
3311am_lf='
3312'
3313case `pwd` in
3314  *[\\\"\#\$\&\'\`$am_lf]*)
3315    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3316esac
3317case $srcdir in
3318  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3319    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3320esac
3321
3322# Do `set' in a subshell so we don't clobber the current shell's
3323# arguments.  Must try -L first in case configure is actually a
3324# symlink; some systems play weird games with the mod time of symlinks
3325# (eg FreeBSD returns the mod time of the symlink's containing
3326# directory).
3327if (
3328   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3329   if test "$*" = "X"; then
3330      # -L didn't work.
3331      set X `ls -t "$srcdir/configure" conftest.file`
3332   fi
3333   rm -f conftest.file
3334   if test "$*" != "X $srcdir/configure conftest.file" \
3335      && test "$*" != "X conftest.file $srcdir/configure"; then
3336
3337      # If neither matched, then we have a broken ls.  This can happen
3338      # if, for instance, CONFIG_SHELL is bash and it inherits a
3339      # broken ls alias from the environment.  This has actually
3340      # happened.  Such a system could not be considered "sane".
3341      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3342alias in your environment" "$LINENO" 5
3343   fi
3344
3345   test "$2" = conftest.file
3346   )
3347then
3348   # Ok.
3349   :
3350else
3351   as_fn_error $? "newly created file is older than distributed files!
3352Check your system clock" "$LINENO" 5
3353fi
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3355$as_echo "yes" >&6; }
3356test "$program_prefix" != NONE &&
3357  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3358# Use a double $ so make ignores it.
3359test "$program_suffix" != NONE &&
3360  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3361# Double any \ or $.
3362# By default was `s,x,x', remove it if useless.
3363ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3364program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3365
3366# expand $ac_aux_dir to an absolute path
3367am_aux_dir=`cd $ac_aux_dir && pwd`
3368
3369if test x"${MISSING+set}" != xset; then
3370  case $am_aux_dir in
3371  *\ * | *\	*)
3372    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3373  *)
3374    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3375  esac
3376fi
3377# Use eval to expand $SHELL
3378if eval "$MISSING --run true"; then
3379  am_missing_run="$MISSING --run "
3380else
3381  am_missing_run=
3382  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3383$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3384fi
3385
3386if test x"${install_sh}" != xset; then
3387  case $am_aux_dir in
3388  *\ * | *\	*)
3389    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3390  *)
3391    install_sh="\${SHELL} $am_aux_dir/install-sh"
3392  esac
3393fi
3394
3395# Installed binaries are usually stripped using `strip' when the user
3396# run `make install-strip'.  However `strip' might not be the right
3397# tool to use in cross-compilation environments, therefore Automake
3398# will honor the `STRIP' environment variable to overrule this program.
3399if test "$cross_compiling" != no; then
3400  if test -n "$ac_tool_prefix"; then
3401  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3402set dummy ${ac_tool_prefix}strip; ac_word=$2
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3404$as_echo_n "checking for $ac_word... " >&6; }
3405if ${ac_cv_prog_STRIP+:} false; then :
3406  $as_echo_n "(cached) " >&6
3407else
3408  if test -n "$STRIP"; then
3409  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3410else
3411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412for as_dir in $PATH
3413do
3414  IFS=$as_save_IFS
3415  test -z "$as_dir" && as_dir=.
3416    for ac_exec_ext in '' $ac_executable_extensions; do
3417  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3418    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3419    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420    break 2
3421  fi
3422done
3423  done
3424IFS=$as_save_IFS
3425
3426fi
3427fi
3428STRIP=$ac_cv_prog_STRIP
3429if test -n "$STRIP"; then
3430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3431$as_echo "$STRIP" >&6; }
3432else
3433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434$as_echo "no" >&6; }
3435fi
3436
3437
3438fi
3439if test -z "$ac_cv_prog_STRIP"; then
3440  ac_ct_STRIP=$STRIP
3441  # Extract the first word of "strip", so it can be a program name with args.
3442set dummy strip; ac_word=$2
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3444$as_echo_n "checking for $ac_word... " >&6; }
3445if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3446  $as_echo_n "(cached) " >&6
3447else
3448  if test -n "$ac_ct_STRIP"; then
3449  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3450else
3451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452for as_dir in $PATH
3453do
3454  IFS=$as_save_IFS
3455  test -z "$as_dir" && as_dir=.
3456    for ac_exec_ext in '' $ac_executable_extensions; do
3457  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3458    ac_cv_prog_ac_ct_STRIP="strip"
3459    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460    break 2
3461  fi
3462done
3463  done
3464IFS=$as_save_IFS
3465
3466fi
3467fi
3468ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3469if test -n "$ac_ct_STRIP"; then
3470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3471$as_echo "$ac_ct_STRIP" >&6; }
3472else
3473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474$as_echo "no" >&6; }
3475fi
3476
3477  if test "x$ac_ct_STRIP" = x; then
3478    STRIP=":"
3479  else
3480    case $cross_compiling:$ac_tool_warned in
3481yes:)
3482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3484ac_tool_warned=yes ;;
3485esac
3486    STRIP=$ac_ct_STRIP
3487  fi
3488else
3489  STRIP="$ac_cv_prog_STRIP"
3490fi
3491
3492fi
3493INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3494
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3496$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3497if test -z "$MKDIR_P"; then
3498  if ${ac_cv_path_mkdir+:} false; then :
3499  $as_echo_n "(cached) " >&6
3500else
3501  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3503do
3504  IFS=$as_save_IFS
3505  test -z "$as_dir" && as_dir=.
3506    for ac_prog in mkdir gmkdir; do
3507	 for ac_exec_ext in '' $ac_executable_extensions; do
3508	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3509	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3510	     'mkdir (GNU coreutils) '* | \
3511	     'mkdir (coreutils) '* | \
3512	     'mkdir (fileutils) '4.1*)
3513	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3514	       break 3;;
3515	   esac
3516	 done
3517       done
3518  done
3519IFS=$as_save_IFS
3520
3521fi
3522
3523  test -d ./--version && rmdir ./--version
3524  if test "${ac_cv_path_mkdir+set}" = set; then
3525    MKDIR_P="$ac_cv_path_mkdir -p"
3526  else
3527    # As a last resort, use the slow shell script.  Don't cache a
3528    # value for MKDIR_P within a source directory, because that will
3529    # break other packages using the cache if that directory is
3530    # removed, or if the value is a relative name.
3531    MKDIR_P="$ac_install_sh -d"
3532  fi
3533fi
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3535$as_echo "$MKDIR_P" >&6; }
3536
3537mkdir_p="$MKDIR_P"
3538case $mkdir_p in
3539  [\\/$]* | ?:[\\/]*) ;;
3540  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3541esac
3542
3543for ac_prog in gawk mawk nawk awk
3544do
3545  # Extract the first word of "$ac_prog", so it can be a program name with args.
3546set dummy $ac_prog; ac_word=$2
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548$as_echo_n "checking for $ac_word... " >&6; }
3549if ${ac_cv_prog_AWK+:} false; then :
3550  $as_echo_n "(cached) " >&6
3551else
3552  if test -n "$AWK"; then
3553  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3554else
3555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556for as_dir in $PATH
3557do
3558  IFS=$as_save_IFS
3559  test -z "$as_dir" && as_dir=.
3560    for ac_exec_ext in '' $ac_executable_extensions; do
3561  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3562    ac_cv_prog_AWK="$ac_prog"
3563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3564    break 2
3565  fi
3566done
3567  done
3568IFS=$as_save_IFS
3569
3570fi
3571fi
3572AWK=$ac_cv_prog_AWK
3573if test -n "$AWK"; then
3574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3575$as_echo "$AWK" >&6; }
3576else
3577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578$as_echo "no" >&6; }
3579fi
3580
3581
3582  test -n "$AWK" && break
3583done
3584
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3586$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3587set x ${MAKE-make}
3588ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3589if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3590  $as_echo_n "(cached) " >&6
3591else
3592  cat >conftest.make <<\_ACEOF
3593SHELL = /bin/sh
3594all:
3595	@echo '@@@%%%=$(MAKE)=@@@%%%'
3596_ACEOF
3597# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3598case `${MAKE-make} -f conftest.make 2>/dev/null` in
3599  *@@@%%%=?*=@@@%%%*)
3600    eval ac_cv_prog_make_${ac_make}_set=yes;;
3601  *)
3602    eval ac_cv_prog_make_${ac_make}_set=no;;
3603esac
3604rm -f conftest.make
3605fi
3606if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3608$as_echo "yes" >&6; }
3609  SET_MAKE=
3610else
3611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612$as_echo "no" >&6; }
3613  SET_MAKE="MAKE=${MAKE-make}"
3614fi
3615
3616rm -rf .tst 2>/dev/null
3617mkdir .tst 2>/dev/null
3618if test -d .tst; then
3619  am__leading_dot=.
3620else
3621  am__leading_dot=_
3622fi
3623rmdir .tst 2>/dev/null
3624
3625if test "`cd $srcdir && pwd`" != "`pwd`"; then
3626  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3627  # is not polluted with repeated "-I."
3628  am__isrc=' -I$(srcdir)'
3629  # test to see if srcdir already configured
3630  if test -f $srcdir/config.status; then
3631    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3632  fi
3633fi
3634
3635# test whether we have cygpath
3636if test -z "$CYGPATH_W"; then
3637  if (cygpath --version) >/dev/null 2>/dev/null; then
3638    CYGPATH_W='cygpath -w'
3639  else
3640    CYGPATH_W=echo
3641  fi
3642fi
3643
3644
3645# Define the identity of the package.
3646 PACKAGE='ntp'
3647 VERSION='4.2.8p1'
3648
3649
3650cat >>confdefs.h <<_ACEOF
3651#define PACKAGE "$PACKAGE"
3652_ACEOF
3653
3654
3655cat >>confdefs.h <<_ACEOF
3656#define VERSION "$VERSION"
3657_ACEOF
3658
3659# Some tools Automake needs.
3660
3661ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3662
3663
3664AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3665
3666
3667AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3668
3669
3670AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3671
3672
3673MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3674
3675# We need awk for the "check" target.  The system "awk" is bad on
3676# some platforms.
3677# Always define AMTAR for backward compatibility.
3678
3679AMTAR=${AMTAR-"${am_missing_run}tar"}
3680
3681am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3682
3683
3684
3685
3686
3687
3688# Check whether --enable-silent-rules was given.
3689if test "${enable_silent_rules+set}" = set; then :
3690  enableval=$enable_silent_rules;
3691fi
3692
3693case $enable_silent_rules in
3694yes) AM_DEFAULT_VERBOSITY=0;;
3695no)  AM_DEFAULT_VERBOSITY=1;;
3696*)   AM_DEFAULT_VERBOSITY=0;;
3697esac
3698AM_BACKSLASH='\'
3699
3700
3701# Make sure we can run config.sub.
3702$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3703  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3704
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3706$as_echo_n "checking build system type... " >&6; }
3707if ${ac_cv_build+:} false; then :
3708  $as_echo_n "(cached) " >&6
3709else
3710  ac_build_alias=$build_alias
3711test "x$ac_build_alias" = x &&
3712  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3713test "x$ac_build_alias" = x &&
3714  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3715ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3716  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3717
3718fi
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3720$as_echo "$ac_cv_build" >&6; }
3721case $ac_cv_build in
3722*-*-*) ;;
3723*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3724esac
3725build=$ac_cv_build
3726ac_save_IFS=$IFS; IFS='-'
3727set x $ac_cv_build
3728shift
3729build_cpu=$1
3730build_vendor=$2
3731shift; shift
3732# Remember, the first character of IFS is used to create $*,
3733# except with old shells:
3734build_os=$*
3735IFS=$ac_save_IFS
3736case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3737
3738
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3740$as_echo_n "checking host system type... " >&6; }
3741if ${ac_cv_host+:} false; then :
3742  $as_echo_n "(cached) " >&6
3743else
3744  if test "x$host_alias" = x; then
3745  ac_cv_host=$ac_cv_build
3746else
3747  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3748    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3749fi
3750
3751fi
3752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3753$as_echo "$ac_cv_host" >&6; }
3754case $ac_cv_host in
3755*-*-*) ;;
3756*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3757esac
3758host=$ac_cv_host
3759ac_save_IFS=$IFS; IFS='-'
3760set x $ac_cv_host
3761shift
3762host_cpu=$1
3763host_vendor=$2
3764shift; shift
3765# Remember, the first character of IFS is used to create $*,
3766# except with old shells:
3767host_os=$*
3768IFS=$ac_save_IFS
3769case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3770
3771
3772
3773cat >>confdefs.h <<_ACEOF
3774#define STR_SYSTEM "$host"
3775_ACEOF
3776
3777ac_config_headers="$ac_config_headers config.h"
3778
3779
3780ntp_atom_ok=${ntp_atom_ok=no}
3781ntp_oncore_ok=${ntp_oncore_ok=no}
3782ntp_parse_ok=${ntp_parse_ok=no}
3783ntp_ripe_ncc_ok=${ntp_parse_ok=no}
3784ntp_jupiter_ok=${ntp_jupiter_ok=no}
3785
3786DEPDIR="${am__leading_dot}deps"
3787
3788ac_config_commands="$ac_config_commands depfiles"
3789
3790
3791am_make=${MAKE-make}
3792cat > confinc << 'END'
3793am__doit:
3794	@echo this is the am__doit target
3795.PHONY: am__doit
3796END
3797# If we don't find an include directive, just comment out the code.
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3799$as_echo_n "checking for style of include used by $am_make... " >&6; }
3800am__include="#"
3801am__quote=
3802_am_result=none
3803# First try GNU make style include.
3804echo "include confinc" > confmf
3805# Ignore all kinds of additional output from `make'.
3806case `$am_make -s -f confmf 2> /dev/null` in #(
3807*the\ am__doit\ target*)
3808  am__include=include
3809  am__quote=
3810  _am_result=GNU
3811  ;;
3812esac
3813# Now try BSD make style include.
3814if test "$am__include" = "#"; then
3815   echo '.include "confinc"' > confmf
3816   case `$am_make -s -f confmf 2> /dev/null` in #(
3817   *the\ am__doit\ target*)
3818     am__include=.include
3819     am__quote="\""
3820     _am_result=BSD
3821     ;;
3822   esac
3823fi
3824
3825
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3827$as_echo "$_am_result" >&6; }
3828rm -f confinc confmf
3829
3830# Check whether --enable-dependency-tracking was given.
3831if test "${enable_dependency_tracking+set}" = set; then :
3832  enableval=$enable_dependency_tracking;
3833fi
3834
3835if test "x$enable_dependency_tracking" != xno; then
3836  am_depcomp="$ac_aux_dir/depcomp"
3837  AMDEPBACKSLASH='\'
3838fi
3839 if test "x$enable_dependency_tracking" != xno; then
3840  AMDEP_TRUE=
3841  AMDEP_FALSE='#'
3842else
3843  AMDEP_TRUE='#'
3844  AMDEP_FALSE=
3845fi
3846
3847
3848ac_ext=c
3849ac_cpp='$CPP $CPPFLAGS'
3850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853if test -n "$ac_tool_prefix"; then
3854  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3855set dummy ${ac_tool_prefix}gcc; ac_word=$2
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857$as_echo_n "checking for $ac_word... " >&6; }
3858if ${ac_cv_prog_CC+:} false; then :
3859  $as_echo_n "(cached) " >&6
3860else
3861  if test -n "$CC"; then
3862  ac_cv_prog_CC="$CC" # Let the user override the test.
3863else
3864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865for as_dir in $PATH
3866do
3867  IFS=$as_save_IFS
3868  test -z "$as_dir" && as_dir=.
3869    for ac_exec_ext in '' $ac_executable_extensions; do
3870  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3871    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3872    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3873    break 2
3874  fi
3875done
3876  done
3877IFS=$as_save_IFS
3878
3879fi
3880fi
3881CC=$ac_cv_prog_CC
3882if test -n "$CC"; then
3883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3884$as_echo "$CC" >&6; }
3885else
3886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887$as_echo "no" >&6; }
3888fi
3889
3890
3891fi
3892if test -z "$ac_cv_prog_CC"; then
3893  ac_ct_CC=$CC
3894  # Extract the first word of "gcc", so it can be a program name with args.
3895set dummy gcc; ac_word=$2
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3897$as_echo_n "checking for $ac_word... " >&6; }
3898if ${ac_cv_prog_ac_ct_CC+:} false; then :
3899  $as_echo_n "(cached) " >&6
3900else
3901  if test -n "$ac_ct_CC"; then
3902  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3903else
3904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905for as_dir in $PATH
3906do
3907  IFS=$as_save_IFS
3908  test -z "$as_dir" && as_dir=.
3909    for ac_exec_ext in '' $ac_executable_extensions; do
3910  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3911    ac_cv_prog_ac_ct_CC="gcc"
3912    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3913    break 2
3914  fi
3915done
3916  done
3917IFS=$as_save_IFS
3918
3919fi
3920fi
3921ac_ct_CC=$ac_cv_prog_ac_ct_CC
3922if test -n "$ac_ct_CC"; then
3923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3924$as_echo "$ac_ct_CC" >&6; }
3925else
3926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927$as_echo "no" >&6; }
3928fi
3929
3930  if test "x$ac_ct_CC" = x; then
3931    CC=""
3932  else
3933    case $cross_compiling:$ac_tool_warned in
3934yes:)
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3937ac_tool_warned=yes ;;
3938esac
3939    CC=$ac_ct_CC
3940  fi
3941else
3942  CC="$ac_cv_prog_CC"
3943fi
3944
3945if test -z "$CC"; then
3946          if test -n "$ac_tool_prefix"; then
3947    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3948set dummy ${ac_tool_prefix}cc; ac_word=$2
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3950$as_echo_n "checking for $ac_word... " >&6; }
3951if ${ac_cv_prog_CC+:} false; then :
3952  $as_echo_n "(cached) " >&6
3953else
3954  if test -n "$CC"; then
3955  ac_cv_prog_CC="$CC" # Let the user override the test.
3956else
3957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958for as_dir in $PATH
3959do
3960  IFS=$as_save_IFS
3961  test -z "$as_dir" && as_dir=.
3962    for ac_exec_ext in '' $ac_executable_extensions; do
3963  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3964    ac_cv_prog_CC="${ac_tool_prefix}cc"
3965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3966    break 2
3967  fi
3968done
3969  done
3970IFS=$as_save_IFS
3971
3972fi
3973fi
3974CC=$ac_cv_prog_CC
3975if test -n "$CC"; then
3976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3977$as_echo "$CC" >&6; }
3978else
3979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980$as_echo "no" >&6; }
3981fi
3982
3983
3984  fi
3985fi
3986if test -z "$CC"; then
3987  # Extract the first word of "cc", so it can be a program name with args.
3988set dummy cc; ac_word=$2
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990$as_echo_n "checking for $ac_word... " >&6; }
3991if ${ac_cv_prog_CC+:} false; then :
3992  $as_echo_n "(cached) " >&6
3993else
3994  if test -n "$CC"; then
3995  ac_cv_prog_CC="$CC" # Let the user override the test.
3996else
3997  ac_prog_rejected=no
3998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999for as_dir in $PATH
4000do
4001  IFS=$as_save_IFS
4002  test -z "$as_dir" && as_dir=.
4003    for ac_exec_ext in '' $ac_executable_extensions; do
4004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4005    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4006       ac_prog_rejected=yes
4007       continue
4008     fi
4009    ac_cv_prog_CC="cc"
4010    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4011    break 2
4012  fi
4013done
4014  done
4015IFS=$as_save_IFS
4016
4017if test $ac_prog_rejected = yes; then
4018  # We found a bogon in the path, so make sure we never use it.
4019  set dummy $ac_cv_prog_CC
4020  shift
4021  if test $# != 0; then
4022    # We chose a different compiler from the bogus one.
4023    # However, it has the same basename, so the bogon will be chosen
4024    # first if we set CC to just the basename; use the full file name.
4025    shift
4026    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4027  fi
4028fi
4029fi
4030fi
4031CC=$ac_cv_prog_CC
4032if test -n "$CC"; then
4033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4034$as_echo "$CC" >&6; }
4035else
4036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037$as_echo "no" >&6; }
4038fi
4039
4040
4041fi
4042if test -z "$CC"; then
4043  if test -n "$ac_tool_prefix"; then
4044  for ac_prog in cl.exe
4045  do
4046    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4047set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049$as_echo_n "checking for $ac_word... " >&6; }
4050if ${ac_cv_prog_CC+:} false; then :
4051  $as_echo_n "(cached) " >&6
4052else
4053  if test -n "$CC"; then
4054  ac_cv_prog_CC="$CC" # Let the user override the test.
4055else
4056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057for as_dir in $PATH
4058do
4059  IFS=$as_save_IFS
4060  test -z "$as_dir" && as_dir=.
4061    for ac_exec_ext in '' $ac_executable_extensions; do
4062  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4063    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4065    break 2
4066  fi
4067done
4068  done
4069IFS=$as_save_IFS
4070
4071fi
4072fi
4073CC=$ac_cv_prog_CC
4074if test -n "$CC"; then
4075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4076$as_echo "$CC" >&6; }
4077else
4078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079$as_echo "no" >&6; }
4080fi
4081
4082
4083    test -n "$CC" && break
4084  done
4085fi
4086if test -z "$CC"; then
4087  ac_ct_CC=$CC
4088  for ac_prog in cl.exe
4089do
4090  # Extract the first word of "$ac_prog", so it can be a program name with args.
4091set dummy $ac_prog; ac_word=$2
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093$as_echo_n "checking for $ac_word... " >&6; }
4094if ${ac_cv_prog_ac_ct_CC+:} false; then :
4095  $as_echo_n "(cached) " >&6
4096else
4097  if test -n "$ac_ct_CC"; then
4098  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4099else
4100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101for as_dir in $PATH
4102do
4103  IFS=$as_save_IFS
4104  test -z "$as_dir" && as_dir=.
4105    for ac_exec_ext in '' $ac_executable_extensions; do
4106  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4107    ac_cv_prog_ac_ct_CC="$ac_prog"
4108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4109    break 2
4110  fi
4111done
4112  done
4113IFS=$as_save_IFS
4114
4115fi
4116fi
4117ac_ct_CC=$ac_cv_prog_ac_ct_CC
4118if test -n "$ac_ct_CC"; then
4119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4120$as_echo "$ac_ct_CC" >&6; }
4121else
4122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123$as_echo "no" >&6; }
4124fi
4125
4126
4127  test -n "$ac_ct_CC" && break
4128done
4129
4130  if test "x$ac_ct_CC" = x; then
4131    CC=""
4132  else
4133    case $cross_compiling:$ac_tool_warned in
4134yes:)
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4137ac_tool_warned=yes ;;
4138esac
4139    CC=$ac_ct_CC
4140  fi
4141fi
4142
4143fi
4144
4145
4146test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4148as_fn_error $? "no acceptable C compiler found in \$PATH
4149See \`config.log' for more details" "$LINENO" 5; }
4150
4151# Provide some information about the compiler.
4152$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4153set X $ac_compile
4154ac_compiler=$2
4155for ac_option in --version -v -V -qversion; do
4156  { { ac_try="$ac_compiler $ac_option >&5"
4157case "(($ac_try" in
4158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159  *) ac_try_echo=$ac_try;;
4160esac
4161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4162$as_echo "$ac_try_echo"; } >&5
4163  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4164  ac_status=$?
4165  if test -s conftest.err; then
4166    sed '10a\
4167... rest of stderr output deleted ...
4168         10q' conftest.err >conftest.er1
4169    cat conftest.er1 >&5
4170  fi
4171  rm -f conftest.er1 conftest.err
4172  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4173  test $ac_status = 0; }
4174done
4175
4176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177/* end confdefs.h.  */
4178
4179int
4180main ()
4181{
4182
4183  ;
4184  return 0;
4185}
4186_ACEOF
4187ac_clean_files_save=$ac_clean_files
4188ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4189# Try to create an executable without -o first, disregard a.out.
4190# It will help us diagnose broken compilers, and finding out an intuition
4191# of exeext.
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4193$as_echo_n "checking whether the C compiler works... " >&6; }
4194ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4195
4196# The possible output files:
4197ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4198
4199ac_rmfiles=
4200for ac_file in $ac_files
4201do
4202  case $ac_file in
4203    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4204    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4205  esac
4206done
4207rm -f $ac_rmfiles
4208
4209if { { ac_try="$ac_link_default"
4210case "(($ac_try" in
4211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212  *) ac_try_echo=$ac_try;;
4213esac
4214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4215$as_echo "$ac_try_echo"; } >&5
4216  (eval "$ac_link_default") 2>&5
4217  ac_status=$?
4218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4219  test $ac_status = 0; }; then :
4220  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4221# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4222# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4223# so that the user can short-circuit this test for compilers unknown to
4224# Autoconf.
4225for ac_file in $ac_files ''
4226do
4227  test -f "$ac_file" || continue
4228  case $ac_file in
4229    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4230	;;
4231    [ab].out )
4232	# We found the default executable, but exeext='' is most
4233	# certainly right.
4234	break;;
4235    *.* )
4236	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4237	then :; else
4238	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4239	fi
4240	# We set ac_cv_exeext here because the later test for it is not
4241	# safe: cross compilers may not add the suffix if given an `-o'
4242	# argument, so we may need to know it at that point already.
4243	# Even if this section looks crufty: it has the advantage of
4244	# actually working.
4245	break;;
4246    * )
4247	break;;
4248  esac
4249done
4250test "$ac_cv_exeext" = no && ac_cv_exeext=
4251
4252else
4253  ac_file=''
4254fi
4255if test -z "$ac_file"; then :
4256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257$as_echo "no" >&6; }
4258$as_echo "$as_me: failed program was:" >&5
4259sed 's/^/| /' conftest.$ac_ext >&5
4260
4261{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4263as_fn_error 77 "C compiler cannot create executables
4264See \`config.log' for more details" "$LINENO" 5; }
4265else
4266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4267$as_echo "yes" >&6; }
4268fi
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4270$as_echo_n "checking for C compiler default output file name... " >&6; }
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4272$as_echo "$ac_file" >&6; }
4273ac_exeext=$ac_cv_exeext
4274
4275rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4276ac_clean_files=$ac_clean_files_save
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4278$as_echo_n "checking for suffix of executables... " >&6; }
4279if { { ac_try="$ac_link"
4280case "(($ac_try" in
4281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282  *) ac_try_echo=$ac_try;;
4283esac
4284eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4285$as_echo "$ac_try_echo"; } >&5
4286  (eval "$ac_link") 2>&5
4287  ac_status=$?
4288  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4289  test $ac_status = 0; }; then :
4290  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4291# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4292# work properly (i.e., refer to `conftest.exe'), while it won't with
4293# `rm'.
4294for ac_file in conftest.exe conftest conftest.*; do
4295  test -f "$ac_file" || continue
4296  case $ac_file in
4297    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4298    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4299	  break;;
4300    * ) break;;
4301  esac
4302done
4303else
4304  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4306as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4307See \`config.log' for more details" "$LINENO" 5; }
4308fi
4309rm -f conftest conftest$ac_cv_exeext
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4311$as_echo "$ac_cv_exeext" >&6; }
4312
4313rm -f conftest.$ac_ext
4314EXEEXT=$ac_cv_exeext
4315ac_exeext=$EXEEXT
4316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317/* end confdefs.h.  */
4318#include <stdio.h>
4319int
4320main ()
4321{
4322FILE *f = fopen ("conftest.out", "w");
4323 return ferror (f) || fclose (f) != 0;
4324
4325  ;
4326  return 0;
4327}
4328_ACEOF
4329ac_clean_files="$ac_clean_files conftest.out"
4330# Check that the compiler produces executables we can run.  If not, either
4331# the compiler is broken, or we cross compile.
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4333$as_echo_n "checking whether we are cross compiling... " >&6; }
4334if test "$cross_compiling" != yes; then
4335  { { ac_try="$ac_link"
4336case "(($ac_try" in
4337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338  *) ac_try_echo=$ac_try;;
4339esac
4340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4341$as_echo "$ac_try_echo"; } >&5
4342  (eval "$ac_link") 2>&5
4343  ac_status=$?
4344  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4345  test $ac_status = 0; }
4346  if { ac_try='./conftest$ac_cv_exeext'
4347  { { case "(($ac_try" in
4348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349  *) ac_try_echo=$ac_try;;
4350esac
4351eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4352$as_echo "$ac_try_echo"; } >&5
4353  (eval "$ac_try") 2>&5
4354  ac_status=$?
4355  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4356  test $ac_status = 0; }; }; then
4357    cross_compiling=no
4358  else
4359    if test "$cross_compiling" = maybe; then
4360	cross_compiling=yes
4361    else
4362	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364as_fn_error $? "cannot run C compiled programs.
4365If you meant to cross compile, use \`--host'.
4366See \`config.log' for more details" "$LINENO" 5; }
4367    fi
4368  fi
4369fi
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4371$as_echo "$cross_compiling" >&6; }
4372
4373rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4374ac_clean_files=$ac_clean_files_save
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4376$as_echo_n "checking for suffix of object files... " >&6; }
4377if ${ac_cv_objext+:} false; then :
4378  $as_echo_n "(cached) " >&6
4379else
4380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381/* end confdefs.h.  */
4382
4383int
4384main ()
4385{
4386
4387  ;
4388  return 0;
4389}
4390_ACEOF
4391rm -f conftest.o conftest.obj
4392if { { ac_try="$ac_compile"
4393case "(($ac_try" in
4394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395  *) ac_try_echo=$ac_try;;
4396esac
4397eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4398$as_echo "$ac_try_echo"; } >&5
4399  (eval "$ac_compile") 2>&5
4400  ac_status=$?
4401  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4402  test $ac_status = 0; }; then :
4403  for ac_file in conftest.o conftest.obj conftest.*; do
4404  test -f "$ac_file" || continue;
4405  case $ac_file in
4406    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4407    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4408       break;;
4409  esac
4410done
4411else
4412  $as_echo "$as_me: failed program was:" >&5
4413sed 's/^/| /' conftest.$ac_ext >&5
4414
4415{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4417as_fn_error $? "cannot compute suffix of object files: cannot compile
4418See \`config.log' for more details" "$LINENO" 5; }
4419fi
4420rm -f conftest.$ac_cv_objext conftest.$ac_ext
4421fi
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4423$as_echo "$ac_cv_objext" >&6; }
4424OBJEXT=$ac_cv_objext
4425ac_objext=$OBJEXT
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4427$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4428if ${ac_cv_c_compiler_gnu+:} false; then :
4429  $as_echo_n "(cached) " >&6
4430else
4431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432/* end confdefs.h.  */
4433
4434int
4435main ()
4436{
4437#ifndef __GNUC__
4438       choke me
4439#endif
4440
4441  ;
4442  return 0;
4443}
4444_ACEOF
4445if ac_fn_c_try_compile "$LINENO"; then :
4446  ac_compiler_gnu=yes
4447else
4448  ac_compiler_gnu=no
4449fi
4450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4451ac_cv_c_compiler_gnu=$ac_compiler_gnu
4452
4453fi
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4455$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4456if test $ac_compiler_gnu = yes; then
4457  GCC=yes
4458else
4459  GCC=
4460fi
4461ac_test_CFLAGS=${CFLAGS+set}
4462ac_save_CFLAGS=$CFLAGS
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4464$as_echo_n "checking whether $CC accepts -g... " >&6; }
4465if ${ac_cv_prog_cc_g+:} false; then :
4466  $as_echo_n "(cached) " >&6
4467else
4468  ac_save_c_werror_flag=$ac_c_werror_flag
4469   ac_c_werror_flag=yes
4470   ac_cv_prog_cc_g=no
4471   CFLAGS="-g"
4472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473/* end confdefs.h.  */
4474
4475int
4476main ()
4477{
4478
4479  ;
4480  return 0;
4481}
4482_ACEOF
4483if ac_fn_c_try_compile "$LINENO"; then :
4484  ac_cv_prog_cc_g=yes
4485else
4486  CFLAGS=""
4487      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488/* end confdefs.h.  */
4489
4490int
4491main ()
4492{
4493
4494  ;
4495  return 0;
4496}
4497_ACEOF
4498if ac_fn_c_try_compile "$LINENO"; then :
4499
4500else
4501  ac_c_werror_flag=$ac_save_c_werror_flag
4502	 CFLAGS="-g"
4503	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504/* end confdefs.h.  */
4505
4506int
4507main ()
4508{
4509
4510  ;
4511  return 0;
4512}
4513_ACEOF
4514if ac_fn_c_try_compile "$LINENO"; then :
4515  ac_cv_prog_cc_g=yes
4516fi
4517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518fi
4519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520fi
4521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522   ac_c_werror_flag=$ac_save_c_werror_flag
4523fi
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4525$as_echo "$ac_cv_prog_cc_g" >&6; }
4526if test "$ac_test_CFLAGS" = set; then
4527  CFLAGS=$ac_save_CFLAGS
4528elif test $ac_cv_prog_cc_g = yes; then
4529  if test "$GCC" = yes; then
4530    CFLAGS="-g -O2"
4531  else
4532    CFLAGS="-g"
4533  fi
4534else
4535  if test "$GCC" = yes; then
4536    CFLAGS="-O2"
4537  else
4538    CFLAGS=
4539  fi
4540fi
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4542$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4543if ${ac_cv_prog_cc_c89+:} false; then :
4544  $as_echo_n "(cached) " >&6
4545else
4546  ac_cv_prog_cc_c89=no
4547ac_save_CC=$CC
4548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549/* end confdefs.h.  */
4550#include <stdarg.h>
4551#include <stdio.h>
4552#include <sys/types.h>
4553#include <sys/stat.h>
4554/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4555struct buf { int x; };
4556FILE * (*rcsopen) (struct buf *, struct stat *, int);
4557static char *e (p, i)
4558     char **p;
4559     int i;
4560{
4561  return p[i];
4562}
4563static char *f (char * (*g) (char **, int), char **p, ...)
4564{
4565  char *s;
4566  va_list v;
4567  va_start (v,p);
4568  s = g (p, va_arg (v,int));
4569  va_end (v);
4570  return s;
4571}
4572
4573/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4574   function prototypes and stuff, but not '\xHH' hex character constants.
4575   These don't provoke an error unfortunately, instead are silently treated
4576   as 'x'.  The following induces an error, until -std is added to get
4577   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4578   array size at least.  It's necessary to write '\x00'==0 to get something
4579   that's true only with -std.  */
4580int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4581
4582/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4583   inside strings and character constants.  */
4584#define FOO(x) 'x'
4585int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4586
4587int test (int i, double x);
4588struct s1 {int (*f) (int a);};
4589struct s2 {int (*f) (double a);};
4590int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4591int argc;
4592char **argv;
4593int
4594main ()
4595{
4596return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4597  ;
4598  return 0;
4599}
4600_ACEOF
4601for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4602	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4603do
4604  CC="$ac_save_CC $ac_arg"
4605  if ac_fn_c_try_compile "$LINENO"; then :
4606  ac_cv_prog_cc_c89=$ac_arg
4607fi
4608rm -f core conftest.err conftest.$ac_objext
4609  test "x$ac_cv_prog_cc_c89" != "xno" && break
4610done
4611rm -f conftest.$ac_ext
4612CC=$ac_save_CC
4613
4614fi
4615# AC_CACHE_VAL
4616case "x$ac_cv_prog_cc_c89" in
4617  x)
4618    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4619$as_echo "none needed" >&6; } ;;
4620  xno)
4621    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4622$as_echo "unsupported" >&6; } ;;
4623  *)
4624    CC="$CC $ac_cv_prog_cc_c89"
4625    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4626$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4627esac
4628if test "x$ac_cv_prog_cc_c89" != xno; then :
4629
4630fi
4631
4632ac_ext=c
4633ac_cpp='$CPP $CPPFLAGS'
4634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636ac_compiler_gnu=$ac_cv_c_compiler_gnu
4637
4638depcc="$CC"   am_compiler_list=
4639
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4641$as_echo_n "checking dependency style of $depcc... " >&6; }
4642if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4643  $as_echo_n "(cached) " >&6
4644else
4645  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4646  # We make a subdir and do the tests there.  Otherwise we can end up
4647  # making bogus files that we don't know about and never remove.  For
4648  # instance it was reported that on HP-UX the gcc test will end up
4649  # making a dummy file named `D' -- because `-MD' means `put the output
4650  # in D'.
4651  mkdir conftest.dir
4652  # Copy depcomp to subdir because otherwise we won't find it if we're
4653  # using a relative directory.
4654  cp "$am_depcomp" conftest.dir
4655  cd conftest.dir
4656  # We will build objects and dependencies in a subdirectory because
4657  # it helps to detect inapplicable dependency modes.  For instance
4658  # both Tru64's cc and ICC support -MD to output dependencies as a
4659  # side effect of compilation, but ICC will put the dependencies in
4660  # the current directory while Tru64 will put them in the object
4661  # directory.
4662  mkdir sub
4663
4664  am_cv_CC_dependencies_compiler_type=none
4665  if test "$am_compiler_list" = ""; then
4666     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4667  fi
4668  am__universal=false
4669  case " $depcc " in #(
4670     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4671     esac
4672
4673  for depmode in $am_compiler_list; do
4674    # Setup a source with many dependencies, because some compilers
4675    # like to wrap large dependency lists on column 80 (with \), and
4676    # we should not choose a depcomp mode which is confused by this.
4677    #
4678    # We need to recreate these files for each test, as the compiler may
4679    # overwrite some of them when testing with obscure command lines.
4680    # This happens at least with the AIX C compiler.
4681    : > sub/conftest.c
4682    for i in 1 2 3 4 5 6; do
4683      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4684      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4685      # Solaris 8's {/usr,}/bin/sh.
4686      touch sub/conftst$i.h
4687    done
4688    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4689
4690    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4691    # mode.  It turns out that the SunPro C++ compiler does not properly
4692    # handle `-M -o', and we need to detect this.  Also, some Intel
4693    # versions had trouble with output in subdirs
4694    am__obj=sub/conftest.${OBJEXT-o}
4695    am__minus_obj="-o $am__obj"
4696    case $depmode in
4697    gcc)
4698      # This depmode causes a compiler race in universal mode.
4699      test "$am__universal" = false || continue
4700      ;;
4701    nosideeffect)
4702      # after this tag, mechanisms are not by side-effect, so they'll
4703      # only be used when explicitly requested
4704      if test "x$enable_dependency_tracking" = xyes; then
4705	continue
4706      else
4707	break
4708      fi
4709      ;;
4710    msvisualcpp | msvcmsys)
4711      # This compiler won't grok `-c -o', but also, the minuso test has
4712      # not run yet.  These depmodes are late enough in the game, and
4713      # so weak that their functioning should not be impacted.
4714      am__obj=conftest.${OBJEXT-o}
4715      am__minus_obj=
4716      ;;
4717    none) break ;;
4718    esac
4719    if depmode=$depmode \
4720       source=sub/conftest.c object=$am__obj \
4721       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4722       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4723         >/dev/null 2>conftest.err &&
4724       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4725       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4726       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4727       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4728      # icc doesn't choke on unknown options, it will just issue warnings
4729      # or remarks (even with -Werror).  So we grep stderr for any message
4730      # that says an option was ignored or not supported.
4731      # When given -MP, icc 7.0 and 7.1 complain thusly:
4732      #   icc: Command line warning: ignoring option '-M'; no argument required
4733      # The diagnosis changed in icc 8.0:
4734      #   icc: Command line remark: option '-MP' not supported
4735      if (grep 'ignoring option' conftest.err ||
4736          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4737        am_cv_CC_dependencies_compiler_type=$depmode
4738        break
4739      fi
4740    fi
4741  done
4742
4743  cd ..
4744  rm -rf conftest.dir
4745else
4746  am_cv_CC_dependencies_compiler_type=none
4747fi
4748
4749fi
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4751$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4752CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4753
4754 if
4755  test "x$enable_dependency_tracking" != xno \
4756  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4757  am__fastdepCC_TRUE=
4758  am__fastdepCC_FALSE='#'
4759else
4760  am__fastdepCC_TRUE='#'
4761  am__fastdepCC_FALSE=
4762fi
4763
4764
4765
4766ac_ext=c
4767ac_cpp='$CPP $CPPFLAGS'
4768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4770ac_compiler_gnu=$ac_cv_c_compiler_gnu
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4772$as_echo_n "checking how to run the C preprocessor... " >&6; }
4773# On Suns, sometimes $CPP names a directory.
4774if test -n "$CPP" && test -d "$CPP"; then
4775  CPP=
4776fi
4777if test -z "$CPP"; then
4778  if ${ac_cv_prog_CPP+:} false; then :
4779  $as_echo_n "(cached) " >&6
4780else
4781      # Double quotes because CPP needs to be expanded
4782    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4783    do
4784      ac_preproc_ok=false
4785for ac_c_preproc_warn_flag in '' yes
4786do
4787  # Use a header file that comes with gcc, so configuring glibc
4788  # with a fresh cross-compiler works.
4789  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4790  # <limits.h> exists even on freestanding compilers.
4791  # On the NeXT, cc -E runs the code through the compiler's parser,
4792  # not just through cpp. "Syntax error" is here to catch this case.
4793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794/* end confdefs.h.  */
4795#ifdef __STDC__
4796# include <limits.h>
4797#else
4798# include <assert.h>
4799#endif
4800		     Syntax error
4801_ACEOF
4802if ac_fn_c_try_cpp "$LINENO"; then :
4803
4804else
4805  # Broken: fails on valid input.
4806continue
4807fi
4808rm -f conftest.err conftest.i conftest.$ac_ext
4809
4810  # OK, works on sane cases.  Now check whether nonexistent headers
4811  # can be detected and how.
4812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813/* end confdefs.h.  */
4814#include <ac_nonexistent.h>
4815_ACEOF
4816if ac_fn_c_try_cpp "$LINENO"; then :
4817  # Broken: success on invalid input.
4818continue
4819else
4820  # Passes both tests.
4821ac_preproc_ok=:
4822break
4823fi
4824rm -f conftest.err conftest.i conftest.$ac_ext
4825
4826done
4827# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4828rm -f conftest.i conftest.err conftest.$ac_ext
4829if $ac_preproc_ok; then :
4830  break
4831fi
4832
4833    done
4834    ac_cv_prog_CPP=$CPP
4835
4836fi
4837  CPP=$ac_cv_prog_CPP
4838else
4839  ac_cv_prog_CPP=$CPP
4840fi
4841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4842$as_echo "$CPP" >&6; }
4843ac_preproc_ok=false
4844for ac_c_preproc_warn_flag in '' yes
4845do
4846  # Use a header file that comes with gcc, so configuring glibc
4847  # with a fresh cross-compiler works.
4848  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4849  # <limits.h> exists even on freestanding compilers.
4850  # On the NeXT, cc -E runs the code through the compiler's parser,
4851  # not just through cpp. "Syntax error" is here to catch this case.
4852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853/* end confdefs.h.  */
4854#ifdef __STDC__
4855# include <limits.h>
4856#else
4857# include <assert.h>
4858#endif
4859		     Syntax error
4860_ACEOF
4861if ac_fn_c_try_cpp "$LINENO"; then :
4862
4863else
4864  # Broken: fails on valid input.
4865continue
4866fi
4867rm -f conftest.err conftest.i conftest.$ac_ext
4868
4869  # OK, works on sane cases.  Now check whether nonexistent headers
4870  # can be detected and how.
4871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872/* end confdefs.h.  */
4873#include <ac_nonexistent.h>
4874_ACEOF
4875if ac_fn_c_try_cpp "$LINENO"; then :
4876  # Broken: success on invalid input.
4877continue
4878else
4879  # Passes both tests.
4880ac_preproc_ok=:
4881break
4882fi
4883rm -f conftest.err conftest.i conftest.$ac_ext
4884
4885done
4886# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4887rm -f conftest.i conftest.err conftest.$ac_ext
4888if $ac_preproc_ok; then :
4889
4890else
4891  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4893as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4894See \`config.log' for more details" "$LINENO" 5; }
4895fi
4896
4897ac_ext=c
4898ac_cpp='$CPP $CPPFLAGS'
4899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4901ac_compiler_gnu=$ac_cv_c_compiler_gnu
4902
4903
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4905$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4906if ${ac_cv_path_GREP+:} false; then :
4907  $as_echo_n "(cached) " >&6
4908else
4909  if test -z "$GREP"; then
4910  ac_path_GREP_found=false
4911  # Loop through the user's path and test for each of PROGNAME-LIST
4912  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4914do
4915  IFS=$as_save_IFS
4916  test -z "$as_dir" && as_dir=.
4917    for ac_prog in grep ggrep; do
4918    for ac_exec_ext in '' $ac_executable_extensions; do
4919      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4920      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4921# Check for GNU ac_path_GREP and select it if it is found.
4922  # Check for GNU $ac_path_GREP
4923case `"$ac_path_GREP" --version 2>&1` in
4924*GNU*)
4925  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4926*)
4927  ac_count=0
4928  $as_echo_n 0123456789 >"conftest.in"
4929  while :
4930  do
4931    cat "conftest.in" "conftest.in" >"conftest.tmp"
4932    mv "conftest.tmp" "conftest.in"
4933    cp "conftest.in" "conftest.nl"
4934    $as_echo 'GREP' >> "conftest.nl"
4935    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4936    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4937    as_fn_arith $ac_count + 1 && ac_count=$as_val
4938    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4939      # Best one so far, save it but keep looking for a better one
4940      ac_cv_path_GREP="$ac_path_GREP"
4941      ac_path_GREP_max=$ac_count
4942    fi
4943    # 10*(2^10) chars as input seems more than enough
4944    test $ac_count -gt 10 && break
4945  done
4946  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4947esac
4948
4949      $ac_path_GREP_found && break 3
4950    done
4951  done
4952  done
4953IFS=$as_save_IFS
4954  if test -z "$ac_cv_path_GREP"; then
4955    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4956  fi
4957else
4958  ac_cv_path_GREP=$GREP
4959fi
4960
4961fi
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4963$as_echo "$ac_cv_path_GREP" >&6; }
4964 GREP="$ac_cv_path_GREP"
4965
4966
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4968$as_echo_n "checking for egrep... " >&6; }
4969if ${ac_cv_path_EGREP+:} false; then :
4970  $as_echo_n "(cached) " >&6
4971else
4972  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4973   then ac_cv_path_EGREP="$GREP -E"
4974   else
4975     if test -z "$EGREP"; then
4976  ac_path_EGREP_found=false
4977  # Loop through the user's path and test for each of PROGNAME-LIST
4978  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4980do
4981  IFS=$as_save_IFS
4982  test -z "$as_dir" && as_dir=.
4983    for ac_prog in egrep; do
4984    for ac_exec_ext in '' $ac_executable_extensions; do
4985      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4986      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4987# Check for GNU ac_path_EGREP and select it if it is found.
4988  # Check for GNU $ac_path_EGREP
4989case `"$ac_path_EGREP" --version 2>&1` in
4990*GNU*)
4991  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4992*)
4993  ac_count=0
4994  $as_echo_n 0123456789 >"conftest.in"
4995  while :
4996  do
4997    cat "conftest.in" "conftest.in" >"conftest.tmp"
4998    mv "conftest.tmp" "conftest.in"
4999    cp "conftest.in" "conftest.nl"
5000    $as_echo 'EGREP' >> "conftest.nl"
5001    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5002    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5003    as_fn_arith $ac_count + 1 && ac_count=$as_val
5004    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5005      # Best one so far, save it but keep looking for a better one
5006      ac_cv_path_EGREP="$ac_path_EGREP"
5007      ac_path_EGREP_max=$ac_count
5008    fi
5009    # 10*(2^10) chars as input seems more than enough
5010    test $ac_count -gt 10 && break
5011  done
5012  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5013esac
5014
5015      $ac_path_EGREP_found && break 3
5016    done
5017  done
5018  done
5019IFS=$as_save_IFS
5020  if test -z "$ac_cv_path_EGREP"; then
5021    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5022  fi
5023else
5024  ac_cv_path_EGREP=$EGREP
5025fi
5026
5027   fi
5028fi
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5030$as_echo "$ac_cv_path_EGREP" >&6; }
5031 EGREP="$ac_cv_path_EGREP"
5032
5033
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5035$as_echo_n "checking for ANSI C header files... " >&6; }
5036if ${ac_cv_header_stdc+:} false; then :
5037  $as_echo_n "(cached) " >&6
5038else
5039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040/* end confdefs.h.  */
5041#include <stdlib.h>
5042#include <stdarg.h>
5043#include <string.h>
5044#include <float.h>
5045
5046int
5047main ()
5048{
5049
5050  ;
5051  return 0;
5052}
5053_ACEOF
5054if ac_fn_c_try_compile "$LINENO"; then :
5055  ac_cv_header_stdc=yes
5056else
5057  ac_cv_header_stdc=no
5058fi
5059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5060
5061if test $ac_cv_header_stdc = yes; then
5062  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064/* end confdefs.h.  */
5065#include <string.h>
5066
5067_ACEOF
5068if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5069  $EGREP "memchr" >/dev/null 2>&1; then :
5070
5071else
5072  ac_cv_header_stdc=no
5073fi
5074rm -f conftest*
5075
5076fi
5077
5078if test $ac_cv_header_stdc = yes; then
5079  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081/* end confdefs.h.  */
5082#include <stdlib.h>
5083
5084_ACEOF
5085if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5086  $EGREP "free" >/dev/null 2>&1; then :
5087
5088else
5089  ac_cv_header_stdc=no
5090fi
5091rm -f conftest*
5092
5093fi
5094
5095if test $ac_cv_header_stdc = yes; then
5096  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5097  if test "$cross_compiling" = yes; then :
5098  :
5099else
5100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101/* end confdefs.h.  */
5102#include <ctype.h>
5103#include <stdlib.h>
5104#if ((' ' & 0x0FF) == 0x020)
5105# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5106# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5107#else
5108# define ISLOWER(c) \
5109		   (('a' <= (c) && (c) <= 'i') \
5110		     || ('j' <= (c) && (c) <= 'r') \
5111		     || ('s' <= (c) && (c) <= 'z'))
5112# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5113#endif
5114
5115#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5116int
5117main ()
5118{
5119  int i;
5120  for (i = 0; i < 256; i++)
5121    if (XOR (islower (i), ISLOWER (i))
5122	|| toupper (i) != TOUPPER (i))
5123      return 2;
5124  return 0;
5125}
5126_ACEOF
5127if ac_fn_c_try_run "$LINENO"; then :
5128
5129else
5130  ac_cv_header_stdc=no
5131fi
5132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5133  conftest.$ac_objext conftest.beam conftest.$ac_ext
5134fi
5135
5136fi
5137fi
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5139$as_echo "$ac_cv_header_stdc" >&6; }
5140if test $ac_cv_header_stdc = yes; then
5141
5142$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5143
5144fi
5145
5146# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5147for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5148		  inttypes.h stdint.h unistd.h
5149do :
5150  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5151ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5152"
5153if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5154  cat >>confdefs.h <<_ACEOF
5155#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5156_ACEOF
5157
5158fi
5159
5160done
5161
5162
5163
5164
5165
5166  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5167if test "x$ac_cv_header_minix_config_h" = xyes; then :
5168  MINIX=yes
5169else
5170  MINIX=
5171fi
5172
5173
5174  if test "$MINIX" = yes; then
5175
5176$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5177
5178
5179$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5180
5181
5182$as_echo "#define _MINIX 1" >>confdefs.h
5183
5184  fi
5185
5186        case "$host_os" in
5187    hpux*)
5188
5189$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5190
5191      ;;
5192  esac
5193
5194
5195  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5196$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5197if ${ac_cv_safe_to_define___extensions__+:} false; then :
5198  $as_echo_n "(cached) " >&6
5199else
5200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201/* end confdefs.h.  */
5202
5203#         define __EXTENSIONS__ 1
5204          $ac_includes_default
5205int
5206main ()
5207{
5208
5209  ;
5210  return 0;
5211}
5212_ACEOF
5213if ac_fn_c_try_compile "$LINENO"; then :
5214  ac_cv_safe_to_define___extensions__=yes
5215else
5216  ac_cv_safe_to_define___extensions__=no
5217fi
5218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5219fi
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5221$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5222  test $ac_cv_safe_to_define___extensions__ = yes &&
5223    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5224
5225  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5226
5227  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5228
5229  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5230
5231  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5232
5233
5234if test "x$CC" != xcc; then
5235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5236$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5237else
5238  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5239$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5240fi
5241set dummy $CC; ac_cc=`$as_echo "$2" |
5242		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5243if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5244  $as_echo_n "(cached) " >&6
5245else
5246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247/* end confdefs.h.  */
5248
5249int
5250main ()
5251{
5252
5253  ;
5254  return 0;
5255}
5256_ACEOF
5257# Make sure it works both with $CC and with simple cc.
5258# We do the test twice because some compilers refuse to overwrite an
5259# existing .o file with -o, though they will create one.
5260ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5261rm -f conftest2.*
5262if { { case "(($ac_try" in
5263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5264  *) ac_try_echo=$ac_try;;
5265esac
5266eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5267$as_echo "$ac_try_echo"; } >&5
5268  (eval "$ac_try") 2>&5
5269  ac_status=$?
5270  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5271  test $ac_status = 0; } &&
5272   test -f conftest2.$ac_objext && { { case "(($ac_try" in
5273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274  *) ac_try_echo=$ac_try;;
5275esac
5276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5277$as_echo "$ac_try_echo"; } >&5
5278  (eval "$ac_try") 2>&5
5279  ac_status=$?
5280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5281  test $ac_status = 0; };
5282then
5283  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5284  if test "x$CC" != xcc; then
5285    # Test first that cc exists at all.
5286    if { ac_try='cc -c conftest.$ac_ext >&5'
5287  { { case "(($ac_try" in
5288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289  *) ac_try_echo=$ac_try;;
5290esac
5291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5292$as_echo "$ac_try_echo"; } >&5
5293  (eval "$ac_try") 2>&5
5294  ac_status=$?
5295  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5296  test $ac_status = 0; }; }; then
5297      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5298      rm -f conftest2.*
5299      if { { case "(($ac_try" in
5300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5301  *) ac_try_echo=$ac_try;;
5302esac
5303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5304$as_echo "$ac_try_echo"; } >&5
5305  (eval "$ac_try") 2>&5
5306  ac_status=$?
5307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5308  test $ac_status = 0; } &&
5309	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5311  *) ac_try_echo=$ac_try;;
5312esac
5313eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5314$as_echo "$ac_try_echo"; } >&5
5315  (eval "$ac_try") 2>&5
5316  ac_status=$?
5317  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5318  test $ac_status = 0; };
5319      then
5320	# cc works too.
5321	:
5322      else
5323	# cc exists but doesn't like -o.
5324	eval ac_cv_prog_cc_${ac_cc}_c_o=no
5325      fi
5326    fi
5327  fi
5328else
5329  eval ac_cv_prog_cc_${ac_cc}_c_o=no
5330fi
5331rm -f core conftest*
5332
5333fi
5334if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5336$as_echo "yes" >&6; }
5337else
5338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339$as_echo "no" >&6; }
5340
5341$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5342
5343fi
5344
5345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5346$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5347if ${ac_cv_prog_cc_c89+:} false; then :
5348  $as_echo_n "(cached) " >&6
5349else
5350  ac_cv_prog_cc_c89=no
5351ac_save_CC=$CC
5352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353/* end confdefs.h.  */
5354#include <stdarg.h>
5355#include <stdio.h>
5356#include <sys/types.h>
5357#include <sys/stat.h>
5358/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5359struct buf { int x; };
5360FILE * (*rcsopen) (struct buf *, struct stat *, int);
5361static char *e (p, i)
5362     char **p;
5363     int i;
5364{
5365  return p[i];
5366}
5367static char *f (char * (*g) (char **, int), char **p, ...)
5368{
5369  char *s;
5370  va_list v;
5371  va_start (v,p);
5372  s = g (p, va_arg (v,int));
5373  va_end (v);
5374  return s;
5375}
5376
5377/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5378   function prototypes and stuff, but not '\xHH' hex character constants.
5379   These don't provoke an error unfortunately, instead are silently treated
5380   as 'x'.  The following induces an error, until -std is added to get
5381   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5382   array size at least.  It's necessary to write '\x00'==0 to get something
5383   that's true only with -std.  */
5384int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5385
5386/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5387   inside strings and character constants.  */
5388#define FOO(x) 'x'
5389int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5390
5391int test (int i, double x);
5392struct s1 {int (*f) (int a);};
5393struct s2 {int (*f) (double a);};
5394int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5395int argc;
5396char **argv;
5397int
5398main ()
5399{
5400return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5401  ;
5402  return 0;
5403}
5404_ACEOF
5405for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5406	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5407do
5408  CC="$ac_save_CC $ac_arg"
5409  if ac_fn_c_try_compile "$LINENO"; then :
5410  ac_cv_prog_cc_c89=$ac_arg
5411fi
5412rm -f core conftest.err conftest.$ac_objext
5413  test "x$ac_cv_prog_cc_c89" != "xno" && break
5414done
5415rm -f conftest.$ac_ext
5416CC=$ac_save_CC
5417
5418fi
5419# AC_CACHE_VAL
5420case "x$ac_cv_prog_cc_c89" in
5421  x)
5422    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5423$as_echo "none needed" >&6; } ;;
5424  xno)
5425    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5426$as_echo "unsupported" >&6; } ;;
5427  *)
5428    CC="$CC $ac_cv_prog_cc_c89"
5429    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5430$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5431esac
5432if test "x$ac_cv_prog_cc_c89" != xno; then :
5433
5434fi
5435
5436
5437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5438$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5439if ${ac_cv_prog_cc_c99+:} false; then :
5440  $as_echo_n "(cached) " >&6
5441else
5442  ac_cv_prog_cc_c99=no
5443ac_save_CC=$CC
5444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445/* end confdefs.h.  */
5446#include <stdarg.h>
5447#include <stdbool.h>
5448#include <stdlib.h>
5449#include <wchar.h>
5450#include <stdio.h>
5451
5452// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5453#define debug(...) fprintf (stderr, __VA_ARGS__)
5454#define showlist(...) puts (#__VA_ARGS__)
5455#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5456static void
5457test_varargs_macros (void)
5458{
5459  int x = 1234;
5460  int y = 5678;
5461  debug ("Flag");
5462  debug ("X = %d\n", x);
5463  showlist (The first, second, and third items.);
5464  report (x>y, "x is %d but y is %d", x, y);
5465}
5466
5467// Check long long types.
5468#define BIG64 18446744073709551615ull
5469#define BIG32 4294967295ul
5470#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5471#if !BIG_OK
5472  your preprocessor is broken;
5473#endif
5474#if BIG_OK
5475#else
5476  your preprocessor is broken;
5477#endif
5478static long long int bignum = -9223372036854775807LL;
5479static unsigned long long int ubignum = BIG64;
5480
5481struct incomplete_array
5482{
5483  int datasize;
5484  double data[];
5485};
5486
5487struct named_init {
5488  int number;
5489  const wchar_t *name;
5490  double average;
5491};
5492
5493typedef const char *ccp;
5494
5495static inline int
5496test_restrict (ccp restrict text)
5497{
5498  // See if C++-style comments work.
5499  // Iterate through items via the restricted pointer.
5500  // Also check for declarations in for loops.
5501  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5502    continue;
5503  return 0;
5504}
5505
5506// Check varargs and va_copy.
5507static void
5508test_varargs (const char *format, ...)
5509{
5510  va_list args;
5511  va_start (args, format);
5512  va_list args_copy;
5513  va_copy (args_copy, args);
5514
5515  const char *str;
5516  int number;
5517  float fnumber;
5518
5519  while (*format)
5520    {
5521      switch (*format++)
5522	{
5523	case 's': // string
5524	  str = va_arg (args_copy, const char *);
5525	  break;
5526	case 'd': // int
5527	  number = va_arg (args_copy, int);
5528	  break;
5529	case 'f': // float
5530	  fnumber = va_arg (args_copy, double);
5531	  break;
5532	default:
5533	  break;
5534	}
5535    }
5536  va_end (args_copy);
5537  va_end (args);
5538}
5539
5540int
5541main ()
5542{
5543
5544  // Check bool.
5545  _Bool success = false;
5546
5547  // Check restrict.
5548  if (test_restrict ("String literal") == 0)
5549    success = true;
5550  char *restrict newvar = "Another string";
5551
5552  // Check varargs.
5553  test_varargs ("s, d' f .", "string", 65, 34.234);
5554  test_varargs_macros ();
5555
5556  // Check flexible array members.
5557  struct incomplete_array *ia =
5558    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5559  ia->datasize = 10;
5560  for (int i = 0; i < ia->datasize; ++i)
5561    ia->data[i] = i * 1.234;
5562
5563  // Check named initializers.
5564  struct named_init ni = {
5565    .number = 34,
5566    .name = L"Test wide string",
5567    .average = 543.34343,
5568  };
5569
5570  ni.number = 58;
5571
5572  int dynamic_array[ni.number];
5573  dynamic_array[ni.number - 1] = 543;
5574
5575  // work around unused variable warnings
5576  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5577	  || dynamic_array[ni.number - 1] != 543);
5578
5579  ;
5580  return 0;
5581}
5582_ACEOF
5583for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5584do
5585  CC="$ac_save_CC $ac_arg"
5586  if ac_fn_c_try_compile "$LINENO"; then :
5587  ac_cv_prog_cc_c99=$ac_arg
5588fi
5589rm -f core conftest.err conftest.$ac_objext
5590  test "x$ac_cv_prog_cc_c99" != "xno" && break
5591done
5592rm -f conftest.$ac_ext
5593CC=$ac_save_CC
5594
5595fi
5596# AC_CACHE_VAL
5597case "x$ac_cv_prog_cc_c99" in
5598  x)
5599    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5600$as_echo "none needed" >&6; } ;;
5601  xno)
5602    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5603$as_echo "unsupported" >&6; } ;;
5604  *)
5605    CC="$CC $ac_cv_prog_cc_c99"
5606    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5607$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5608esac
5609if test "x$ac_cv_prog_cc_c99" != xno; then :
5610
5611fi
5612
5613
5614
5615
5616
5617
5618ac_ext=c
5619ac_cpp='$CPP $CPPFLAGS'
5620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5622ac_compiler_gnu=$ac_cv_c_compiler_gnu
5623if test -n "$ac_tool_prefix"; then
5624  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5625set dummy ${ac_tool_prefix}gcc; ac_word=$2
5626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5627$as_echo_n "checking for $ac_word... " >&6; }
5628if ${ac_cv_prog_CC+:} false; then :
5629  $as_echo_n "(cached) " >&6
5630else
5631  if test -n "$CC"; then
5632  ac_cv_prog_CC="$CC" # Let the user override the test.
5633else
5634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635for as_dir in $PATH
5636do
5637  IFS=$as_save_IFS
5638  test -z "$as_dir" && as_dir=.
5639    for ac_exec_ext in '' $ac_executable_extensions; do
5640  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5641    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5642    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5643    break 2
5644  fi
5645done
5646  done
5647IFS=$as_save_IFS
5648
5649fi
5650fi
5651CC=$ac_cv_prog_CC
5652if test -n "$CC"; then
5653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5654$as_echo "$CC" >&6; }
5655else
5656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657$as_echo "no" >&6; }
5658fi
5659
5660
5661fi
5662if test -z "$ac_cv_prog_CC"; then
5663  ac_ct_CC=$CC
5664  # Extract the first word of "gcc", so it can be a program name with args.
5665set dummy gcc; ac_word=$2
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667$as_echo_n "checking for $ac_word... " >&6; }
5668if ${ac_cv_prog_ac_ct_CC+:} false; then :
5669  $as_echo_n "(cached) " >&6
5670else
5671  if test -n "$ac_ct_CC"; then
5672  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5673else
5674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675for as_dir in $PATH
5676do
5677  IFS=$as_save_IFS
5678  test -z "$as_dir" && as_dir=.
5679    for ac_exec_ext in '' $ac_executable_extensions; do
5680  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5681    ac_cv_prog_ac_ct_CC="gcc"
5682    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683    break 2
5684  fi
5685done
5686  done
5687IFS=$as_save_IFS
5688
5689fi
5690fi
5691ac_ct_CC=$ac_cv_prog_ac_ct_CC
5692if test -n "$ac_ct_CC"; then
5693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5694$as_echo "$ac_ct_CC" >&6; }
5695else
5696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697$as_echo "no" >&6; }
5698fi
5699
5700  if test "x$ac_ct_CC" = x; then
5701    CC=""
5702  else
5703    case $cross_compiling:$ac_tool_warned in
5704yes:)
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5707ac_tool_warned=yes ;;
5708esac
5709    CC=$ac_ct_CC
5710  fi
5711else
5712  CC="$ac_cv_prog_CC"
5713fi
5714
5715if test -z "$CC"; then
5716          if test -n "$ac_tool_prefix"; then
5717    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5718set dummy ${ac_tool_prefix}cc; ac_word=$2
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720$as_echo_n "checking for $ac_word... " >&6; }
5721if ${ac_cv_prog_CC+:} false; then :
5722  $as_echo_n "(cached) " >&6
5723else
5724  if test -n "$CC"; then
5725  ac_cv_prog_CC="$CC" # Let the user override the test.
5726else
5727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728for as_dir in $PATH
5729do
5730  IFS=$as_save_IFS
5731  test -z "$as_dir" && as_dir=.
5732    for ac_exec_ext in '' $ac_executable_extensions; do
5733  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5734    ac_cv_prog_CC="${ac_tool_prefix}cc"
5735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736    break 2
5737  fi
5738done
5739  done
5740IFS=$as_save_IFS
5741
5742fi
5743fi
5744CC=$ac_cv_prog_CC
5745if test -n "$CC"; then
5746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5747$as_echo "$CC" >&6; }
5748else
5749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750$as_echo "no" >&6; }
5751fi
5752
5753
5754  fi
5755fi
5756if test -z "$CC"; then
5757  # Extract the first word of "cc", so it can be a program name with args.
5758set dummy cc; ac_word=$2
5759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760$as_echo_n "checking for $ac_word... " >&6; }
5761if ${ac_cv_prog_CC+:} false; then :
5762  $as_echo_n "(cached) " >&6
5763else
5764  if test -n "$CC"; then
5765  ac_cv_prog_CC="$CC" # Let the user override the test.
5766else
5767  ac_prog_rejected=no
5768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769for as_dir in $PATH
5770do
5771  IFS=$as_save_IFS
5772  test -z "$as_dir" && as_dir=.
5773    for ac_exec_ext in '' $ac_executable_extensions; do
5774  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5775    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5776       ac_prog_rejected=yes
5777       continue
5778     fi
5779    ac_cv_prog_CC="cc"
5780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781    break 2
5782  fi
5783done
5784  done
5785IFS=$as_save_IFS
5786
5787if test $ac_prog_rejected = yes; then
5788  # We found a bogon in the path, so make sure we never use it.
5789  set dummy $ac_cv_prog_CC
5790  shift
5791  if test $# != 0; then
5792    # We chose a different compiler from the bogus one.
5793    # However, it has the same basename, so the bogon will be chosen
5794    # first if we set CC to just the basename; use the full file name.
5795    shift
5796    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5797  fi
5798fi
5799fi
5800fi
5801CC=$ac_cv_prog_CC
5802if test -n "$CC"; then
5803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5804$as_echo "$CC" >&6; }
5805else
5806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807$as_echo "no" >&6; }
5808fi
5809
5810
5811fi
5812if test -z "$CC"; then
5813  if test -n "$ac_tool_prefix"; then
5814  for ac_prog in cl.exe
5815  do
5816    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5817set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5819$as_echo_n "checking for $ac_word... " >&6; }
5820if ${ac_cv_prog_CC+:} false; then :
5821  $as_echo_n "(cached) " >&6
5822else
5823  if test -n "$CC"; then
5824  ac_cv_prog_CC="$CC" # Let the user override the test.
5825else
5826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827for as_dir in $PATH
5828do
5829  IFS=$as_save_IFS
5830  test -z "$as_dir" && as_dir=.
5831    for ac_exec_ext in '' $ac_executable_extensions; do
5832  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5833    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5834    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5835    break 2
5836  fi
5837done
5838  done
5839IFS=$as_save_IFS
5840
5841fi
5842fi
5843CC=$ac_cv_prog_CC
5844if test -n "$CC"; then
5845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5846$as_echo "$CC" >&6; }
5847else
5848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849$as_echo "no" >&6; }
5850fi
5851
5852
5853    test -n "$CC" && break
5854  done
5855fi
5856if test -z "$CC"; then
5857  ac_ct_CC=$CC
5858  for ac_prog in cl.exe
5859do
5860  # Extract the first word of "$ac_prog", so it can be a program name with args.
5861set dummy $ac_prog; ac_word=$2
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5863$as_echo_n "checking for $ac_word... " >&6; }
5864if ${ac_cv_prog_ac_ct_CC+:} false; then :
5865  $as_echo_n "(cached) " >&6
5866else
5867  if test -n "$ac_ct_CC"; then
5868  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5869else
5870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871for as_dir in $PATH
5872do
5873  IFS=$as_save_IFS
5874  test -z "$as_dir" && as_dir=.
5875    for ac_exec_ext in '' $ac_executable_extensions; do
5876  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5877    ac_cv_prog_ac_ct_CC="$ac_prog"
5878    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5879    break 2
5880  fi
5881done
5882  done
5883IFS=$as_save_IFS
5884
5885fi
5886fi
5887ac_ct_CC=$ac_cv_prog_ac_ct_CC
5888if test -n "$ac_ct_CC"; then
5889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5890$as_echo "$ac_ct_CC" >&6; }
5891else
5892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893$as_echo "no" >&6; }
5894fi
5895
5896
5897  test -n "$ac_ct_CC" && break
5898done
5899
5900  if test "x$ac_ct_CC" = x; then
5901    CC=""
5902  else
5903    case $cross_compiling:$ac_tool_warned in
5904yes:)
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5907ac_tool_warned=yes ;;
5908esac
5909    CC=$ac_ct_CC
5910  fi
5911fi
5912
5913fi
5914
5915
5916test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5918as_fn_error $? "no acceptable C compiler found in \$PATH
5919See \`config.log' for more details" "$LINENO" 5; }
5920
5921# Provide some information about the compiler.
5922$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5923set X $ac_compile
5924ac_compiler=$2
5925for ac_option in --version -v -V -qversion; do
5926  { { ac_try="$ac_compiler $ac_option >&5"
5927case "(($ac_try" in
5928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929  *) ac_try_echo=$ac_try;;
5930esac
5931eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5932$as_echo "$ac_try_echo"; } >&5
5933  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5934  ac_status=$?
5935  if test -s conftest.err; then
5936    sed '10a\
5937... rest of stderr output deleted ...
5938         10q' conftest.err >conftest.er1
5939    cat conftest.er1 >&5
5940  fi
5941  rm -f conftest.er1 conftest.err
5942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5943  test $ac_status = 0; }
5944done
5945
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5947$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5948if ${ac_cv_c_compiler_gnu+:} false; then :
5949  $as_echo_n "(cached) " >&6
5950else
5951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952/* end confdefs.h.  */
5953
5954int
5955main ()
5956{
5957#ifndef __GNUC__
5958       choke me
5959#endif
5960
5961  ;
5962  return 0;
5963}
5964_ACEOF
5965if ac_fn_c_try_compile "$LINENO"; then :
5966  ac_compiler_gnu=yes
5967else
5968  ac_compiler_gnu=no
5969fi
5970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971ac_cv_c_compiler_gnu=$ac_compiler_gnu
5972
5973fi
5974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5975$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5976if test $ac_compiler_gnu = yes; then
5977  GCC=yes
5978else
5979  GCC=
5980fi
5981ac_test_CFLAGS=${CFLAGS+set}
5982ac_save_CFLAGS=$CFLAGS
5983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5984$as_echo_n "checking whether $CC accepts -g... " >&6; }
5985if ${ac_cv_prog_cc_g+:} false; then :
5986  $as_echo_n "(cached) " >&6
5987else
5988  ac_save_c_werror_flag=$ac_c_werror_flag
5989   ac_c_werror_flag=yes
5990   ac_cv_prog_cc_g=no
5991   CFLAGS="-g"
5992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993/* end confdefs.h.  */
5994
5995int
5996main ()
5997{
5998
5999  ;
6000  return 0;
6001}
6002_ACEOF
6003if ac_fn_c_try_compile "$LINENO"; then :
6004  ac_cv_prog_cc_g=yes
6005else
6006  CFLAGS=""
6007      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008/* end confdefs.h.  */
6009
6010int
6011main ()
6012{
6013
6014  ;
6015  return 0;
6016}
6017_ACEOF
6018if ac_fn_c_try_compile "$LINENO"; then :
6019
6020else
6021  ac_c_werror_flag=$ac_save_c_werror_flag
6022	 CFLAGS="-g"
6023	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024/* end confdefs.h.  */
6025
6026int
6027main ()
6028{
6029
6030  ;
6031  return 0;
6032}
6033_ACEOF
6034if ac_fn_c_try_compile "$LINENO"; then :
6035  ac_cv_prog_cc_g=yes
6036fi
6037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038fi
6039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6040fi
6041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042   ac_c_werror_flag=$ac_save_c_werror_flag
6043fi
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6045$as_echo "$ac_cv_prog_cc_g" >&6; }
6046if test "$ac_test_CFLAGS" = set; then
6047  CFLAGS=$ac_save_CFLAGS
6048elif test $ac_cv_prog_cc_g = yes; then
6049  if test "$GCC" = yes; then
6050    CFLAGS="-g -O2"
6051  else
6052    CFLAGS="-g"
6053  fi
6054else
6055  if test "$GCC" = yes; then
6056    CFLAGS="-O2"
6057  else
6058    CFLAGS=
6059  fi
6060fi
6061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6062$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6063if ${ac_cv_prog_cc_c89+:} false; then :
6064  $as_echo_n "(cached) " >&6
6065else
6066  ac_cv_prog_cc_c89=no
6067ac_save_CC=$CC
6068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069/* end confdefs.h.  */
6070#include <stdarg.h>
6071#include <stdio.h>
6072#include <sys/types.h>
6073#include <sys/stat.h>
6074/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6075struct buf { int x; };
6076FILE * (*rcsopen) (struct buf *, struct stat *, int);
6077static char *e (p, i)
6078     char **p;
6079     int i;
6080{
6081  return p[i];
6082}
6083static char *f (char * (*g) (char **, int), char **p, ...)
6084{
6085  char *s;
6086  va_list v;
6087  va_start (v,p);
6088  s = g (p, va_arg (v,int));
6089  va_end (v);
6090  return s;
6091}
6092
6093/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6094   function prototypes and stuff, but not '\xHH' hex character constants.
6095   These don't provoke an error unfortunately, instead are silently treated
6096   as 'x'.  The following induces an error, until -std is added to get
6097   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6098   array size at least.  It's necessary to write '\x00'==0 to get something
6099   that's true only with -std.  */
6100int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6101
6102/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6103   inside strings and character constants.  */
6104#define FOO(x) 'x'
6105int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6106
6107int test (int i, double x);
6108struct s1 {int (*f) (int a);};
6109struct s2 {int (*f) (double a);};
6110int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6111int argc;
6112char **argv;
6113int
6114main ()
6115{
6116return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6117  ;
6118  return 0;
6119}
6120_ACEOF
6121for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6122	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6123do
6124  CC="$ac_save_CC $ac_arg"
6125  if ac_fn_c_try_compile "$LINENO"; then :
6126  ac_cv_prog_cc_c89=$ac_arg
6127fi
6128rm -f core conftest.err conftest.$ac_objext
6129  test "x$ac_cv_prog_cc_c89" != "xno" && break
6130done
6131rm -f conftest.$ac_ext
6132CC=$ac_save_CC
6133
6134fi
6135# AC_CACHE_VAL
6136case "x$ac_cv_prog_cc_c89" in
6137  x)
6138    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6139$as_echo "none needed" >&6; } ;;
6140  xno)
6141    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6142$as_echo "unsupported" >&6; } ;;
6143  *)
6144    CC="$CC $ac_cv_prog_cc_c89"
6145    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6146$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6147esac
6148if test "x$ac_cv_prog_cc_c89" != xno; then :
6149
6150fi
6151
6152ac_ext=c
6153ac_cpp='$CPP $CPPFLAGS'
6154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156ac_compiler_gnu=$ac_cv_c_compiler_gnu
6157
6158depcc="$CC"   am_compiler_list=
6159
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6161$as_echo_n "checking dependency style of $depcc... " >&6; }
6162if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6163  $as_echo_n "(cached) " >&6
6164else
6165  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6166  # We make a subdir and do the tests there.  Otherwise we can end up
6167  # making bogus files that we don't know about and never remove.  For
6168  # instance it was reported that on HP-UX the gcc test will end up
6169  # making a dummy file named `D' -- because `-MD' means `put the output
6170  # in D'.
6171  mkdir conftest.dir
6172  # Copy depcomp to subdir because otherwise we won't find it if we're
6173  # using a relative directory.
6174  cp "$am_depcomp" conftest.dir
6175  cd conftest.dir
6176  # We will build objects and dependencies in a subdirectory because
6177  # it helps to detect inapplicable dependency modes.  For instance
6178  # both Tru64's cc and ICC support -MD to output dependencies as a
6179  # side effect of compilation, but ICC will put the dependencies in
6180  # the current directory while Tru64 will put them in the object
6181  # directory.
6182  mkdir sub
6183
6184  am_cv_CC_dependencies_compiler_type=none
6185  if test "$am_compiler_list" = ""; then
6186     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6187  fi
6188  am__universal=false
6189  case " $depcc " in #(
6190     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6191     esac
6192
6193  for depmode in $am_compiler_list; do
6194    # Setup a source with many dependencies, because some compilers
6195    # like to wrap large dependency lists on column 80 (with \), and
6196    # we should not choose a depcomp mode which is confused by this.
6197    #
6198    # We need to recreate these files for each test, as the compiler may
6199    # overwrite some of them when testing with obscure command lines.
6200    # This happens at least with the AIX C compiler.
6201    : > sub/conftest.c
6202    for i in 1 2 3 4 5 6; do
6203      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6204      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6205      # Solaris 8's {/usr,}/bin/sh.
6206      touch sub/conftst$i.h
6207    done
6208    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6209
6210    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6211    # mode.  It turns out that the SunPro C++ compiler does not properly
6212    # handle `-M -o', and we need to detect this.  Also, some Intel
6213    # versions had trouble with output in subdirs
6214    am__obj=sub/conftest.${OBJEXT-o}
6215    am__minus_obj="-o $am__obj"
6216    case $depmode in
6217    gcc)
6218      # This depmode causes a compiler race in universal mode.
6219      test "$am__universal" = false || continue
6220      ;;
6221    nosideeffect)
6222      # after this tag, mechanisms are not by side-effect, so they'll
6223      # only be used when explicitly requested
6224      if test "x$enable_dependency_tracking" = xyes; then
6225	continue
6226      else
6227	break
6228      fi
6229      ;;
6230    msvisualcpp | msvcmsys)
6231      # This compiler won't grok `-c -o', but also, the minuso test has
6232      # not run yet.  These depmodes are late enough in the game, and
6233      # so weak that their functioning should not be impacted.
6234      am__obj=conftest.${OBJEXT-o}
6235      am__minus_obj=
6236      ;;
6237    none) break ;;
6238    esac
6239    if depmode=$depmode \
6240       source=sub/conftest.c object=$am__obj \
6241       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6242       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6243         >/dev/null 2>conftest.err &&
6244       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6245       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6246       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6247       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6248      # icc doesn't choke on unknown options, it will just issue warnings
6249      # or remarks (even with -Werror).  So we grep stderr for any message
6250      # that says an option was ignored or not supported.
6251      # When given -MP, icc 7.0 and 7.1 complain thusly:
6252      #   icc: Command line warning: ignoring option '-M'; no argument required
6253      # The diagnosis changed in icc 8.0:
6254      #   icc: Command line remark: option '-MP' not supported
6255      if (grep 'ignoring option' conftest.err ||
6256          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6257        am_cv_CC_dependencies_compiler_type=$depmode
6258        break
6259      fi
6260    fi
6261  done
6262
6263  cd ..
6264  rm -rf conftest.dir
6265else
6266  am_cv_CC_dependencies_compiler_type=none
6267fi
6268
6269fi
6270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6271$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6272CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6273
6274 if
6275  test "x$enable_dependency_tracking" != xno \
6276  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6277  am__fastdepCC_TRUE=
6278  am__fastdepCC_FALSE='#'
6279else
6280  am__fastdepCC_TRUE='#'
6281  am__fastdepCC_FALSE=
6282fi
6283
6284
6285# Ralf Wildenhues: With per-target flags we need CC_C_O
6286# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
6287# FIXME: we rely on the cache variable name because
6288# there is no other way.
6289set dummy $CC
6290am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6291eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6292if test "$am_t" != yes; then
6293   # Losing compiler, so override with the script.
6294   # FIXME: It is wrong to rewrite CC.
6295   # But if we don't then we get into trouble of one sort or another.
6296   # A longer-term fix would be to have automake use am__CC in this case,
6297   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6298   CC="$am_aux_dir/compile $CC"
6299fi
6300
6301
6302if test $ac_cv_c_compiler_gnu = yes; then
6303    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6304$as_echo_n "checking whether $CC needs -traditional... " >&6; }
6305if ${ac_cv_prog_gcc_traditional+:} false; then :
6306  $as_echo_n "(cached) " >&6
6307else
6308    ac_pattern="Autoconf.*'x'"
6309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310/* end confdefs.h.  */
6311#include <sgtty.h>
6312Autoconf TIOCGETP
6313_ACEOF
6314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6315  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6316  ac_cv_prog_gcc_traditional=yes
6317else
6318  ac_cv_prog_gcc_traditional=no
6319fi
6320rm -f conftest*
6321
6322
6323  if test $ac_cv_prog_gcc_traditional = no; then
6324    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325/* end confdefs.h.  */
6326#include <termio.h>
6327Autoconf TCGETA
6328_ACEOF
6329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6330  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6331  ac_cv_prog_gcc_traditional=yes
6332fi
6333rm -f conftest*
6334
6335  fi
6336fi
6337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6338$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6339  if test $ac_cv_prog_gcc_traditional = yes; then
6340    CC="$CC -traditional"
6341  fi
6342fi
6343
6344
6345
6346
6347
6348CFLAGS_NTP=
6349CPPFLAGS_NTP=
6350LDADD_NTP=
6351LDFLAGS_NTP=
6352
6353
6354
6355
6356
6357case "$ac_cv_prog_cc_c89" in
6358 no)
6359    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6360		 version 4.2.5 and higher." >&5
6361$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6362		 version 4.2.5 and higher." >&2;}
6363    ;;
6364esac
6365
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
6367$as_echo_n "checking if $CC can handle #warning... " >&6; }
6368if ${ntp_cv_cpp_warning+:} false; then :
6369  $as_echo_n "(cached) " >&6
6370else
6371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372/* end confdefs.h.  */
6373
6374int
6375main ()
6376{
6377#warning foo
6378  ;
6379  return 0;
6380}
6381_ACEOF
6382if ac_fn_c_try_compile "$LINENO"; then :
6383  ntp_cv_cpp_warning=yes
6384else
6385  ntp_cv_cpp_warning=no
6386
6387fi
6388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6389
6390fi
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
6392$as_echo "$ntp_cv_cpp_warning" >&6; }
6393case "$ntp_cv_cpp_warning" in
6394 no)
6395
6396$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
6397
6398esac
6399
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
6401$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
6402if ${ntp_cv_cc_attribute+:} false; then :
6403  $as_echo_n "(cached) " >&6
6404else
6405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406/* end confdefs.h.  */
6407
6408int
6409main ()
6410{
6411void foo(void) __attribute__((__noreturn__));
6412
6413  ;
6414  return 0;
6415}
6416_ACEOF
6417if ac_fn_c_try_compile "$LINENO"; then :
6418  ntp_cv_cc_attribute=yes
6419else
6420  ntp_cv_cc_attribute=no
6421
6422fi
6423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6424
6425fi
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
6427$as_echo "$ntp_cv_cc_attribute" >&6; }
6428case "$ntp_cv_cc_attribute" in
6429 yes)
6430
6431$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
6432
6433esac
6434
6435
6436case "$GCC" in
6437 yes)
6438    SAVED_CFLAGS="$CFLAGS"
6439    CFLAGS="$CFLAGS -Wstrict-overflow"
6440    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
6441$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
6442if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
6443  $as_echo_n "(cached) " >&6
6444else
6445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446/* end confdefs.h.  */
6447
6448int
6449main ()
6450{
6451
6452  ;
6453  return 0;
6454}
6455_ACEOF
6456if ac_fn_c_try_compile "$LINENO"; then :
6457  ntp_cv_gcc_Wstrict_overflow=yes
6458else
6459  ntp_cv_gcc_Wstrict_overflow=no
6460
6461fi
6462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6463
6464fi
6465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
6466$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
6467    #
6468    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
6469    # flag to CFLAGS.
6470    #
6471    CFLAGS="$SAVED_CFLAGS -Winit-self"
6472    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
6473$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
6474if ${ntp_cv_gcc_Winit_self+:} false; then :
6475  $as_echo_n "(cached) " >&6
6476else
6477
6478	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479/* end confdefs.h.  */
6480
6481int
6482main ()
6483{
6484
6485  ;
6486  return 0;
6487}
6488_ACEOF
6489if ac_fn_c_try_compile "$LINENO"; then :
6490  ntp_cv_gcc_Winit_self=yes
6491else
6492  ntp_cv_gcc_Winit_self=no
6493
6494fi
6495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6496
6497
6498fi
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
6500$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
6501    CFLAGS="$SAVED_CFLAGS"
6502    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
6503    #
6504    # $ntp_cv_gcc_Winit_self is tested later to add the
6505    # flag to CFLAGS_NTP.
6506    #
6507    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
6508$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
6509if ${ntp_cv_gc_sections_runs+:} false; then :
6510  $as_echo_n "(cached) " >&6
6511else
6512
6513	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
6514	    CFLAGS="$CFLAGS -Wl,--gc-sections"
6515	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516/* end confdefs.h.  */
6517
6518			#include <stdlib.h>
6519			#include <stdio.h>
6520
6521int
6522main ()
6523{
6524
6525			FILE *	fpC;
6526			char	buf[32];
6527			size_t	cch;
6528			int	read_success_once;
6529
6530			fpC = fopen("conftest.c", "r");
6531			if (NULL == fpC)
6532				exit(1);
6533			do {
6534				cch = fread(buf, sizeof(buf), 1, fpC);
6535				read_success_once |= (0 != cch);
6536			} while (0 != cch);
6537			if (!read_success_once)
6538				exit(2);
6539			if (!feof(fpC))
6540				exit(3);
6541			if (0 != fclose(fpC))
6542				exit(4);
6543
6544			exit(EXIT_SUCCESS);
6545
6546
6547  ;
6548  return 0;
6549}
6550_ACEOF
6551if ac_fn_c_try_link "$LINENO"; then :
6552
6553		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
6554			ntp_cv_gc_sections_runs=no
6555		    else
6556			ntp_cv_gc_sections_runs=no
6557			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
6558		    fi
6559
6560else
6561  ntp_cv_gc_sections_runs=no
6562
6563fi
6564rm -f core conftest.err conftest.$ac_objext \
6565    conftest$ac_exeext conftest.$ac_ext
6566	    CFLAGS="$origCFLAGS"
6567	    { origCFLAGS=; unset origCFLAGS;}
6568
6569
6570fi
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
6572$as_echo "$ntp_cv_gc_sections_runs" >&6; }
6573    case "$ntp_cv_gc_sections_runs" in
6574     yes)
6575	LDADD_LIBNTP="-Wl,--gc-sections"
6576	CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
6577	;;
6578     no)
6579	LDADD_LIBNTP=
6580	;;
6581    esac
6582    CFLAGS_NTP="$CFLAGS_NTP -Wall"
6583    CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
6584    CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
6585    # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
6586    # CFLAGS_NTP="$CFLAGS_NTP -Werror"
6587    # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
6588    # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
6589    CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
6590    CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
6591    CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
6592    # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
6593    # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
6594    case "$ntp_cv_gcc_Winit_self" in
6595     yes)
6596	CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
6597    esac
6598    case "$ntp_cv_gcc_Wstrict_overflow" in
6599     yes)
6600	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
6601    esac
6602    # -W[no-]strict-prototypes might be added by NTP_OPENSSL
6603esac
6604
6605
6606    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
6607$as_echo_n "checking additional compiler flags... " >&6; }
6608    # allow ntp_os_flags to be preset to skip this stuff
6609    case "${ntp_os_cflags+set}" in
6610     set)
6611	;;
6612     *)
6613	ntp_os_cflags=
6614	case "$host_os" in
6615	 aix[1-3]*)
6616	    ;;
6617	 aix4.[0-2]*)
6618	    # turn on additional headers
6619	    ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
6620	    ;;
6621	 aix5.3*)
6622	    # avoid circular dependencies in yp headers, and more
6623	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
6624	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
6625	    ;;
6626	 aix*)
6627	    # XXX Only verified thru AIX6.
6628	    # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
6629	    # avoid circular dependencies in yp headers
6630	    # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
6631	    # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
6632	    # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
6633	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
6634	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
6635	    ;;
6636	 amigaos)
6637	    ntp_os_cflags="-DSYS_AMIGA"
6638	    ;;
6639	 darwin*|macosx*|rhapsody*)
6640	    ntp_os_cflags="-D_P1003_1B_VISIBLE"
6641	    ;;
6642	 hpux10.*)		# at least for hppa2.0-hp-hpux10.20
6643	    case "$GCC" in
6644	     yes)
6645		;;
6646	     *)
6647		# use Ansi compiler on HPUX, and some -Wp magic
6648		ntp_os_cflags="-Ae -Wp,-H18816"
6649		;;
6650	    esac
6651	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
6652	    ;;
6653	 hpux*)
6654	    case "$GCC" in
6655	     yes)
6656		;;
6657	     *)
6658		# use Ansi compiler on HPUX
6659		ntp_os_cflags="-Ae"
6660	    esac
6661	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
6662	    ;;
6663	 irix6*)
6664	    case "$CC" in
6665	     cc)
6666		# do not use 64-bit compiler
6667		ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
6668	    esac
6669	    ;;
6670	 nextstep3)
6671	    ntp_os_cflags="-posix"
6672	    ;;
6673	 solaris1*|solaris2.[0-5]|solaris2.5.*)
6674	    ;;
6675	 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
6676	    ;;
6677	 solaris2*|sunos5*)
6678	    # turn on 64-bit file offset interface
6679	    ntp_os_cflags="-D_LARGEFILE64_SOURCE"
6680	    ;;
6681	 vxworks*)
6682	    case "$build" in
6683	     $host)
6684		;;
6685	     *)
6686		# Quick and dirty sanity check
6687		case "$VX_KERNEL" in
6688		 '')
6689		    as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
6690		esac
6691		ntp_os_cflags="-DSYS_VXWORKS"
6692	    esac
6693	    ;;
6694	esac
6695    esac
6696    case "$ntp_os_flags" in
6697     '')
6698	ntp_os_cflags_msg="none needed"
6699	;;
6700     *)
6701	ntp_os_cflags_msg="$ntp_os_cflags"
6702    esac
6703    CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
6704    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
6705$as_echo "$ntp_os_cflags_msg" >&6; }
6706    { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
6707
6708
6709
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6711$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6712if ${ac_cv_c_bigendian+:} false; then :
6713  $as_echo_n "(cached) " >&6
6714else
6715  ac_cv_c_bigendian=unknown
6716    # See if we're dealing with a universal compiler.
6717    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718/* end confdefs.h.  */
6719#ifndef __APPLE_CC__
6720	       not a universal capable compiler
6721	     #endif
6722	     typedef int dummy;
6723
6724_ACEOF
6725if ac_fn_c_try_compile "$LINENO"; then :
6726
6727	# Check for potential -arch flags.  It is not universal unless
6728	# there are at least two -arch flags with different values.
6729	ac_arch=
6730	ac_prev=
6731	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6732	 if test -n "$ac_prev"; then
6733	   case $ac_word in
6734	     i?86 | x86_64 | ppc | ppc64)
6735	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6736		 ac_arch=$ac_word
6737	       else
6738		 ac_cv_c_bigendian=universal
6739		 break
6740	       fi
6741	       ;;
6742	   esac
6743	   ac_prev=
6744	 elif test "x$ac_word" = "x-arch"; then
6745	   ac_prev=arch
6746	 fi
6747       done
6748fi
6749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6750    if test $ac_cv_c_bigendian = unknown; then
6751      # See if sys/param.h defines the BYTE_ORDER macro.
6752      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753/* end confdefs.h.  */
6754#include <sys/types.h>
6755	     #include <sys/param.h>
6756
6757int
6758main ()
6759{
6760#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6761		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6762		     && LITTLE_ENDIAN)
6763	      bogus endian macros
6764	     #endif
6765
6766  ;
6767  return 0;
6768}
6769_ACEOF
6770if ac_fn_c_try_compile "$LINENO"; then :
6771  # It does; now see whether it defined to BIG_ENDIAN or not.
6772	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773/* end confdefs.h.  */
6774#include <sys/types.h>
6775		#include <sys/param.h>
6776
6777int
6778main ()
6779{
6780#if BYTE_ORDER != BIG_ENDIAN
6781		 not big endian
6782		#endif
6783
6784  ;
6785  return 0;
6786}
6787_ACEOF
6788if ac_fn_c_try_compile "$LINENO"; then :
6789  ac_cv_c_bigendian=yes
6790else
6791  ac_cv_c_bigendian=no
6792fi
6793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6794fi
6795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796    fi
6797    if test $ac_cv_c_bigendian = unknown; then
6798      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6799      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800/* end confdefs.h.  */
6801#include <limits.h>
6802
6803int
6804main ()
6805{
6806#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6807	      bogus endian macros
6808	     #endif
6809
6810  ;
6811  return 0;
6812}
6813_ACEOF
6814if ac_fn_c_try_compile "$LINENO"; then :
6815  # It does; now see whether it defined to _BIG_ENDIAN or not.
6816	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817/* end confdefs.h.  */
6818#include <limits.h>
6819
6820int
6821main ()
6822{
6823#ifndef _BIG_ENDIAN
6824		 not big endian
6825		#endif
6826
6827  ;
6828  return 0;
6829}
6830_ACEOF
6831if ac_fn_c_try_compile "$LINENO"; then :
6832  ac_cv_c_bigendian=yes
6833else
6834  ac_cv_c_bigendian=no
6835fi
6836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837fi
6838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839    fi
6840    if test $ac_cv_c_bigendian = unknown; then
6841      # Compile a test program.
6842      if test "$cross_compiling" = yes; then :
6843  # Try to guess by grepping values from an object file.
6844	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845/* end confdefs.h.  */
6846short int ascii_mm[] =
6847		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6848		short int ascii_ii[] =
6849		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6850		int use_ascii (int i) {
6851		  return ascii_mm[i] + ascii_ii[i];
6852		}
6853		short int ebcdic_ii[] =
6854		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6855		short int ebcdic_mm[] =
6856		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6857		int use_ebcdic (int i) {
6858		  return ebcdic_mm[i] + ebcdic_ii[i];
6859		}
6860		extern int foo;
6861
6862int
6863main ()
6864{
6865return use_ascii (foo) == use_ebcdic (foo);
6866  ;
6867  return 0;
6868}
6869_ACEOF
6870if ac_fn_c_try_compile "$LINENO"; then :
6871  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6872	      ac_cv_c_bigendian=yes
6873	    fi
6874	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6875	      if test "$ac_cv_c_bigendian" = unknown; then
6876		ac_cv_c_bigendian=no
6877	      else
6878		# finding both strings is unlikely to happen, but who knows?
6879		ac_cv_c_bigendian=unknown
6880	      fi
6881	    fi
6882fi
6883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6884else
6885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886/* end confdefs.h.  */
6887$ac_includes_default
6888int
6889main ()
6890{
6891
6892	     /* Are we little or big endian?  From Harbison&Steele.  */
6893	     union
6894	     {
6895	       long int l;
6896	       char c[sizeof (long int)];
6897	     } u;
6898	     u.l = 1;
6899	     return u.c[sizeof (long int) - 1] == 1;
6900
6901  ;
6902  return 0;
6903}
6904_ACEOF
6905if ac_fn_c_try_run "$LINENO"; then :
6906  ac_cv_c_bigendian=no
6907else
6908  ac_cv_c_bigendian=yes
6909fi
6910rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6911  conftest.$ac_objext conftest.beam conftest.$ac_ext
6912fi
6913
6914    fi
6915fi
6916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6917$as_echo "$ac_cv_c_bigendian" >&6; }
6918 case $ac_cv_c_bigendian in #(
6919   yes)
6920     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6921;; #(
6922   no)
6923      ;; #(
6924   universal)
6925
6926$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6927
6928     ;; #(
6929   *)
6930     as_fn_error $? "unknown endianness
6931 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6932 esac
6933
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6935$as_echo_n "checking for working volatile... " >&6; }
6936if ${ac_cv_c_volatile+:} false; then :
6937  $as_echo_n "(cached) " >&6
6938else
6939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6940/* end confdefs.h.  */
6941
6942int
6943main ()
6944{
6945
6946volatile int x;
6947int * volatile y = (int *) 0;
6948return !x && !y;
6949  ;
6950  return 0;
6951}
6952_ACEOF
6953if ac_fn_c_try_compile "$LINENO"; then :
6954  ac_cv_c_volatile=yes
6955else
6956  ac_cv_c_volatile=no
6957fi
6958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6959fi
6960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6961$as_echo "$ac_cv_c_volatile" >&6; }
6962if test $ac_cv_c_volatile = no; then
6963
6964$as_echo "#define volatile /**/" >>confdefs.h
6965
6966fi
6967
6968ac_ext=c
6969ac_cpp='$CPP $CPPFLAGS'
6970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6972ac_compiler_gnu=$ac_cv_c_compiler_gnu
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6974$as_echo_n "checking how to run the C preprocessor... " >&6; }
6975# On Suns, sometimes $CPP names a directory.
6976if test -n "$CPP" && test -d "$CPP"; then
6977  CPP=
6978fi
6979if test -z "$CPP"; then
6980  if ${ac_cv_prog_CPP+:} false; then :
6981  $as_echo_n "(cached) " >&6
6982else
6983      # Double quotes because CPP needs to be expanded
6984    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6985    do
6986      ac_preproc_ok=false
6987for ac_c_preproc_warn_flag in '' yes
6988do
6989  # Use a header file that comes with gcc, so configuring glibc
6990  # with a fresh cross-compiler works.
6991  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6992  # <limits.h> exists even on freestanding compilers.
6993  # On the NeXT, cc -E runs the code through the compiler's parser,
6994  # not just through cpp. "Syntax error" is here to catch this case.
6995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996/* end confdefs.h.  */
6997#ifdef __STDC__
6998# include <limits.h>
6999#else
7000# include <assert.h>
7001#endif
7002		     Syntax error
7003_ACEOF
7004if ac_fn_c_try_cpp "$LINENO"; then :
7005
7006else
7007  # Broken: fails on valid input.
7008continue
7009fi
7010rm -f conftest.err conftest.i conftest.$ac_ext
7011
7012  # OK, works on sane cases.  Now check whether nonexistent headers
7013  # can be detected and how.
7014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015/* end confdefs.h.  */
7016#include <ac_nonexistent.h>
7017_ACEOF
7018if ac_fn_c_try_cpp "$LINENO"; then :
7019  # Broken: success on invalid input.
7020continue
7021else
7022  # Passes both tests.
7023ac_preproc_ok=:
7024break
7025fi
7026rm -f conftest.err conftest.i conftest.$ac_ext
7027
7028done
7029# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7030rm -f conftest.i conftest.err conftest.$ac_ext
7031if $ac_preproc_ok; then :
7032  break
7033fi
7034
7035    done
7036    ac_cv_prog_CPP=$CPP
7037
7038fi
7039  CPP=$ac_cv_prog_CPP
7040else
7041  ac_cv_prog_CPP=$CPP
7042fi
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7044$as_echo "$CPP" >&6; }
7045ac_preproc_ok=false
7046for ac_c_preproc_warn_flag in '' yes
7047do
7048  # Use a header file that comes with gcc, so configuring glibc
7049  # with a fresh cross-compiler works.
7050  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7051  # <limits.h> exists even on freestanding compilers.
7052  # On the NeXT, cc -E runs the code through the compiler's parser,
7053  # not just through cpp. "Syntax error" is here to catch this case.
7054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055/* end confdefs.h.  */
7056#ifdef __STDC__
7057# include <limits.h>
7058#else
7059# include <assert.h>
7060#endif
7061		     Syntax error
7062_ACEOF
7063if ac_fn_c_try_cpp "$LINENO"; then :
7064
7065else
7066  # Broken: fails on valid input.
7067continue
7068fi
7069rm -f conftest.err conftest.i conftest.$ac_ext
7070
7071  # OK, works on sane cases.  Now check whether nonexistent headers
7072  # can be detected and how.
7073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074/* end confdefs.h.  */
7075#include <ac_nonexistent.h>
7076_ACEOF
7077if ac_fn_c_try_cpp "$LINENO"; then :
7078  # Broken: success on invalid input.
7079continue
7080else
7081  # Passes both tests.
7082ac_preproc_ok=:
7083break
7084fi
7085rm -f conftest.err conftest.i conftest.$ac_ext
7086
7087done
7088# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7089rm -f conftest.i conftest.err conftest.$ac_ext
7090if $ac_preproc_ok; then :
7091
7092else
7093  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7095as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7096See \`config.log' for more details" "$LINENO" 5; }
7097fi
7098
7099ac_ext=c
7100ac_cpp='$CPP $CPPFLAGS'
7101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7103ac_compiler_gnu=$ac_cv_c_compiler_gnu
7104
7105
7106
7107ac_ext=c
7108ac_cpp='$CPP $CPPFLAGS'
7109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7111ac_compiler_gnu=$ac_cv_c_compiler_gnu
7112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7113$as_echo_n "checking how to run the C preprocessor... " >&6; }
7114# On Suns, sometimes $CPP names a directory.
7115if test -n "$CPP" && test -d "$CPP"; then
7116  CPP=
7117fi
7118if test -z "$CPP"; then
7119  if ${ac_cv_prog_CPP+:} false; then :
7120  $as_echo_n "(cached) " >&6
7121else
7122      # Double quotes because CPP needs to be expanded
7123    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7124    do
7125      ac_preproc_ok=false
7126for ac_c_preproc_warn_flag in '' yes
7127do
7128  # Use a header file that comes with gcc, so configuring glibc
7129  # with a fresh cross-compiler works.
7130  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7131  # <limits.h> exists even on freestanding compilers.
7132  # On the NeXT, cc -E runs the code through the compiler's parser,
7133  # not just through cpp. "Syntax error" is here to catch this case.
7134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135/* end confdefs.h.  */
7136#ifdef __STDC__
7137# include <limits.h>
7138#else
7139# include <assert.h>
7140#endif
7141		     Syntax error
7142_ACEOF
7143if ac_fn_c_try_cpp "$LINENO"; then :
7144
7145else
7146  # Broken: fails on valid input.
7147continue
7148fi
7149rm -f conftest.err conftest.i conftest.$ac_ext
7150
7151  # OK, works on sane cases.  Now check whether nonexistent headers
7152  # can be detected and how.
7153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154/* end confdefs.h.  */
7155#include <ac_nonexistent.h>
7156_ACEOF
7157if ac_fn_c_try_cpp "$LINENO"; then :
7158  # Broken: success on invalid input.
7159continue
7160else
7161  # Passes both tests.
7162ac_preproc_ok=:
7163break
7164fi
7165rm -f conftest.err conftest.i conftest.$ac_ext
7166
7167done
7168# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7169rm -f conftest.i conftest.err conftest.$ac_ext
7170if $ac_preproc_ok; then :
7171  break
7172fi
7173
7174    done
7175    ac_cv_prog_CPP=$CPP
7176
7177fi
7178  CPP=$ac_cv_prog_CPP
7179else
7180  ac_cv_prog_CPP=$CPP
7181fi
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7183$as_echo "$CPP" >&6; }
7184ac_preproc_ok=false
7185for ac_c_preproc_warn_flag in '' yes
7186do
7187  # Use a header file that comes with gcc, so configuring glibc
7188  # with a fresh cross-compiler works.
7189  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7190  # <limits.h> exists even on freestanding compilers.
7191  # On the NeXT, cc -E runs the code through the compiler's parser,
7192  # not just through cpp. "Syntax error" is here to catch this case.
7193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194/* end confdefs.h.  */
7195#ifdef __STDC__
7196# include <limits.h>
7197#else
7198# include <assert.h>
7199#endif
7200		     Syntax error
7201_ACEOF
7202if ac_fn_c_try_cpp "$LINENO"; then :
7203
7204else
7205  # Broken: fails on valid input.
7206continue
7207fi
7208rm -f conftest.err conftest.i conftest.$ac_ext
7209
7210  # OK, works on sane cases.  Now check whether nonexistent headers
7211  # can be detected and how.
7212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213/* end confdefs.h.  */
7214#include <ac_nonexistent.h>
7215_ACEOF
7216if ac_fn_c_try_cpp "$LINENO"; then :
7217  # Broken: success on invalid input.
7218continue
7219else
7220  # Passes both tests.
7221ac_preproc_ok=:
7222break
7223fi
7224rm -f conftest.err conftest.i conftest.$ac_ext
7225
7226done
7227# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7228rm -f conftest.i conftest.err conftest.$ac_ext
7229if $ac_preproc_ok; then :
7230
7231else
7232  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7234as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7235See \`config.log' for more details" "$LINENO" 5; }
7236fi
7237
7238ac_ext=c
7239ac_cpp='$CPP $CPPFLAGS'
7240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7242ac_compiler_gnu=$ac_cv_c_compiler_gnu
7243
7244ac_ext=cpp
7245ac_cpp='$CXXCPP $CPPFLAGS'
7246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7249if test -z "$CXX"; then
7250  if test -n "$CCC"; then
7251    CXX=$CCC
7252  else
7253    if test -n "$ac_tool_prefix"; then
7254  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7255  do
7256    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7257set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259$as_echo_n "checking for $ac_word... " >&6; }
7260if ${ac_cv_prog_CXX+:} false; then :
7261  $as_echo_n "(cached) " >&6
7262else
7263  if test -n "$CXX"; then
7264  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7265else
7266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267for as_dir in $PATH
7268do
7269  IFS=$as_save_IFS
7270  test -z "$as_dir" && as_dir=.
7271    for ac_exec_ext in '' $ac_executable_extensions; do
7272  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7273    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275    break 2
7276  fi
7277done
7278  done
7279IFS=$as_save_IFS
7280
7281fi
7282fi
7283CXX=$ac_cv_prog_CXX
7284if test -n "$CXX"; then
7285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7286$as_echo "$CXX" >&6; }
7287else
7288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289$as_echo "no" >&6; }
7290fi
7291
7292
7293    test -n "$CXX" && break
7294  done
7295fi
7296if test -z "$CXX"; then
7297  ac_ct_CXX=$CXX
7298  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7299do
7300  # Extract the first word of "$ac_prog", so it can be a program name with args.
7301set dummy $ac_prog; ac_word=$2
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303$as_echo_n "checking for $ac_word... " >&6; }
7304if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7305  $as_echo_n "(cached) " >&6
7306else
7307  if test -n "$ac_ct_CXX"; then
7308  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7309else
7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313  IFS=$as_save_IFS
7314  test -z "$as_dir" && as_dir=.
7315    for ac_exec_ext in '' $ac_executable_extensions; do
7316  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7317    ac_cv_prog_ac_ct_CXX="$ac_prog"
7318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319    break 2
7320  fi
7321done
7322  done
7323IFS=$as_save_IFS
7324
7325fi
7326fi
7327ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7328if test -n "$ac_ct_CXX"; then
7329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7330$as_echo "$ac_ct_CXX" >&6; }
7331else
7332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333$as_echo "no" >&6; }
7334fi
7335
7336
7337  test -n "$ac_ct_CXX" && break
7338done
7339
7340  if test "x$ac_ct_CXX" = x; then
7341    CXX="g++"
7342  else
7343    case $cross_compiling:$ac_tool_warned in
7344yes:)
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7347ac_tool_warned=yes ;;
7348esac
7349    CXX=$ac_ct_CXX
7350  fi
7351fi
7352
7353  fi
7354fi
7355# Provide some information about the compiler.
7356$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7357set X $ac_compile
7358ac_compiler=$2
7359for ac_option in --version -v -V -qversion; do
7360  { { ac_try="$ac_compiler $ac_option >&5"
7361case "(($ac_try" in
7362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7363  *) ac_try_echo=$ac_try;;
7364esac
7365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7366$as_echo "$ac_try_echo"; } >&5
7367  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7368  ac_status=$?
7369  if test -s conftest.err; then
7370    sed '10a\
7371... rest of stderr output deleted ...
7372         10q' conftest.err >conftest.er1
7373    cat conftest.er1 >&5
7374  fi
7375  rm -f conftest.er1 conftest.err
7376  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7377  test $ac_status = 0; }
7378done
7379
7380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7381$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7382if ${ac_cv_cxx_compiler_gnu+:} false; then :
7383  $as_echo_n "(cached) " >&6
7384else
7385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386/* end confdefs.h.  */
7387
7388int
7389main ()
7390{
7391#ifndef __GNUC__
7392       choke me
7393#endif
7394
7395  ;
7396  return 0;
7397}
7398_ACEOF
7399if ac_fn_cxx_try_compile "$LINENO"; then :
7400  ac_compiler_gnu=yes
7401else
7402  ac_compiler_gnu=no
7403fi
7404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7405ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7406
7407fi
7408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7409$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7410if test $ac_compiler_gnu = yes; then
7411  GXX=yes
7412else
7413  GXX=
7414fi
7415ac_test_CXXFLAGS=${CXXFLAGS+set}
7416ac_save_CXXFLAGS=$CXXFLAGS
7417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7418$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7419if ${ac_cv_prog_cxx_g+:} false; then :
7420  $as_echo_n "(cached) " >&6
7421else
7422  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7423   ac_cxx_werror_flag=yes
7424   ac_cv_prog_cxx_g=no
7425   CXXFLAGS="-g"
7426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427/* end confdefs.h.  */
7428
7429int
7430main ()
7431{
7432
7433  ;
7434  return 0;
7435}
7436_ACEOF
7437if ac_fn_cxx_try_compile "$LINENO"; then :
7438  ac_cv_prog_cxx_g=yes
7439else
7440  CXXFLAGS=""
7441      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442/* end confdefs.h.  */
7443
7444int
7445main ()
7446{
7447
7448  ;
7449  return 0;
7450}
7451_ACEOF
7452if ac_fn_cxx_try_compile "$LINENO"; then :
7453
7454else
7455  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7456	 CXXFLAGS="-g"
7457	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458/* end confdefs.h.  */
7459
7460int
7461main ()
7462{
7463
7464  ;
7465  return 0;
7466}
7467_ACEOF
7468if ac_fn_cxx_try_compile "$LINENO"; then :
7469  ac_cv_prog_cxx_g=yes
7470fi
7471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7472fi
7473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7474fi
7475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7476   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7477fi
7478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7479$as_echo "$ac_cv_prog_cxx_g" >&6; }
7480if test "$ac_test_CXXFLAGS" = set; then
7481  CXXFLAGS=$ac_save_CXXFLAGS
7482elif test $ac_cv_prog_cxx_g = yes; then
7483  if test "$GXX" = yes; then
7484    CXXFLAGS="-g -O2"
7485  else
7486    CXXFLAGS="-g"
7487  fi
7488else
7489  if test "$GXX" = yes; then
7490    CXXFLAGS="-O2"
7491  else
7492    CXXFLAGS=
7493  fi
7494fi
7495ac_ext=c
7496ac_cpp='$CPP $CPPFLAGS'
7497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7499ac_compiler_gnu=$ac_cv_c_compiler_gnu
7500
7501depcc="$CXX"  am_compiler_list=
7502
7503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7504$as_echo_n "checking dependency style of $depcc... " >&6; }
7505if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7506  $as_echo_n "(cached) " >&6
7507else
7508  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7509  # We make a subdir and do the tests there.  Otherwise we can end up
7510  # making bogus files that we don't know about and never remove.  For
7511  # instance it was reported that on HP-UX the gcc test will end up
7512  # making a dummy file named `D' -- because `-MD' means `put the output
7513  # in D'.
7514  mkdir conftest.dir
7515  # Copy depcomp to subdir because otherwise we won't find it if we're
7516  # using a relative directory.
7517  cp "$am_depcomp" conftest.dir
7518  cd conftest.dir
7519  # We will build objects and dependencies in a subdirectory because
7520  # it helps to detect inapplicable dependency modes.  For instance
7521  # both Tru64's cc and ICC support -MD to output dependencies as a
7522  # side effect of compilation, but ICC will put the dependencies in
7523  # the current directory while Tru64 will put them in the object
7524  # directory.
7525  mkdir sub
7526
7527  am_cv_CXX_dependencies_compiler_type=none
7528  if test "$am_compiler_list" = ""; then
7529     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7530  fi
7531  am__universal=false
7532  case " $depcc " in #(
7533     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7534     esac
7535
7536  for depmode in $am_compiler_list; do
7537    # Setup a source with many dependencies, because some compilers
7538    # like to wrap large dependency lists on column 80 (with \), and
7539    # we should not choose a depcomp mode which is confused by this.
7540    #
7541    # We need to recreate these files for each test, as the compiler may
7542    # overwrite some of them when testing with obscure command lines.
7543    # This happens at least with the AIX C compiler.
7544    : > sub/conftest.c
7545    for i in 1 2 3 4 5 6; do
7546      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7547      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7548      # Solaris 8's {/usr,}/bin/sh.
7549      touch sub/conftst$i.h
7550    done
7551    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7552
7553    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7554    # mode.  It turns out that the SunPro C++ compiler does not properly
7555    # handle `-M -o', and we need to detect this.  Also, some Intel
7556    # versions had trouble with output in subdirs
7557    am__obj=sub/conftest.${OBJEXT-o}
7558    am__minus_obj="-o $am__obj"
7559    case $depmode in
7560    gcc)
7561      # This depmode causes a compiler race in universal mode.
7562      test "$am__universal" = false || continue
7563      ;;
7564    nosideeffect)
7565      # after this tag, mechanisms are not by side-effect, so they'll
7566      # only be used when explicitly requested
7567      if test "x$enable_dependency_tracking" = xyes; then
7568	continue
7569      else
7570	break
7571      fi
7572      ;;
7573    msvisualcpp | msvcmsys)
7574      # This compiler won't grok `-c -o', but also, the minuso test has
7575      # not run yet.  These depmodes are late enough in the game, and
7576      # so weak that their functioning should not be impacted.
7577      am__obj=conftest.${OBJEXT-o}
7578      am__minus_obj=
7579      ;;
7580    none) break ;;
7581    esac
7582    if depmode=$depmode \
7583       source=sub/conftest.c object=$am__obj \
7584       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7585       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7586         >/dev/null 2>conftest.err &&
7587       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7588       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7589       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7590       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7591      # icc doesn't choke on unknown options, it will just issue warnings
7592      # or remarks (even with -Werror).  So we grep stderr for any message
7593      # that says an option was ignored or not supported.
7594      # When given -MP, icc 7.0 and 7.1 complain thusly:
7595      #   icc: Command line warning: ignoring option '-M'; no argument required
7596      # The diagnosis changed in icc 8.0:
7597      #   icc: Command line remark: option '-MP' not supported
7598      if (grep 'ignoring option' conftest.err ||
7599          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7600        am_cv_CXX_dependencies_compiler_type=$depmode
7601        break
7602      fi
7603    fi
7604  done
7605
7606  cd ..
7607  rm -rf conftest.dir
7608else
7609  am_cv_CXX_dependencies_compiler_type=none
7610fi
7611
7612fi
7613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7614$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7615CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7616
7617 if
7618  test "x$enable_dependency_tracking" != xno \
7619  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7620  am__fastdepCXX_TRUE=
7621  am__fastdepCXX_FALSE='#'
7622else
7623  am__fastdepCXX_TRUE='#'
7624  am__fastdepCXX_FALSE=
7625fi
7626
7627
7628for ac_prog in 'bison -y' byacc
7629do
7630  # Extract the first word of "$ac_prog", so it can be a program name with args.
7631set dummy $ac_prog; ac_word=$2
7632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7633$as_echo_n "checking for $ac_word... " >&6; }
7634if ${ac_cv_prog_YACC+:} false; then :
7635  $as_echo_n "(cached) " >&6
7636else
7637  if test -n "$YACC"; then
7638  ac_cv_prog_YACC="$YACC" # Let the user override the test.
7639else
7640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641for as_dir in $PATH
7642do
7643  IFS=$as_save_IFS
7644  test -z "$as_dir" && as_dir=.
7645    for ac_exec_ext in '' $ac_executable_extensions; do
7646  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7647    ac_cv_prog_YACC="$ac_prog"
7648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7649    break 2
7650  fi
7651done
7652  done
7653IFS=$as_save_IFS
7654
7655fi
7656fi
7657YACC=$ac_cv_prog_YACC
7658if test -n "$YACC"; then
7659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7660$as_echo "$YACC" >&6; }
7661else
7662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663$as_echo "no" >&6; }
7664fi
7665
7666
7667  test -n "$YACC" && break
7668done
7669test -n "$YACC" || YACC="yacc"
7670
7671if test "x$CC" != xcc; then
7672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7673$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7674else
7675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7676$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7677fi
7678set dummy $CC; ac_cc=`$as_echo "$2" |
7679		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7680if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7681  $as_echo_n "(cached) " >&6
7682else
7683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684/* end confdefs.h.  */
7685
7686int
7687main ()
7688{
7689
7690  ;
7691  return 0;
7692}
7693_ACEOF
7694# Make sure it works both with $CC and with simple cc.
7695# We do the test twice because some compilers refuse to overwrite an
7696# existing .o file with -o, though they will create one.
7697ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7698rm -f conftest2.*
7699if { { case "(($ac_try" in
7700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7701  *) ac_try_echo=$ac_try;;
7702esac
7703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7704$as_echo "$ac_try_echo"; } >&5
7705  (eval "$ac_try") 2>&5
7706  ac_status=$?
7707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7708  test $ac_status = 0; } &&
7709   test -f conftest2.$ac_objext && { { case "(($ac_try" in
7710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7711  *) ac_try_echo=$ac_try;;
7712esac
7713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7714$as_echo "$ac_try_echo"; } >&5
7715  (eval "$ac_try") 2>&5
7716  ac_status=$?
7717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7718  test $ac_status = 0; };
7719then
7720  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7721  if test "x$CC" != xcc; then
7722    # Test first that cc exists at all.
7723    if { ac_try='cc -c conftest.$ac_ext >&5'
7724  { { case "(($ac_try" in
7725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7726  *) ac_try_echo=$ac_try;;
7727esac
7728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7729$as_echo "$ac_try_echo"; } >&5
7730  (eval "$ac_try") 2>&5
7731  ac_status=$?
7732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7733  test $ac_status = 0; }; }; then
7734      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7735      rm -f conftest2.*
7736      if { { case "(($ac_try" in
7737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738  *) ac_try_echo=$ac_try;;
7739esac
7740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7741$as_echo "$ac_try_echo"; } >&5
7742  (eval "$ac_try") 2>&5
7743  ac_status=$?
7744  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7745  test $ac_status = 0; } &&
7746	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748  *) ac_try_echo=$ac_try;;
7749esac
7750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7751$as_echo "$ac_try_echo"; } >&5
7752  (eval "$ac_try") 2>&5
7753  ac_status=$?
7754  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7755  test $ac_status = 0; };
7756      then
7757	# cc works too.
7758	:
7759      else
7760	# cc exists but doesn't like -o.
7761	eval ac_cv_prog_cc_${ac_cc}_c_o=no
7762      fi
7763    fi
7764  fi
7765else
7766  eval ac_cv_prog_cc_${ac_cc}_c_o=no
7767fi
7768rm -f core conftest*
7769
7770fi
7771if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7773$as_echo "yes" >&6; }
7774else
7775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776$as_echo "no" >&6; }
7777
7778$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7779
7780fi
7781
7782
7783
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
7785$as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
7786ntp_vpath_hack="no"
7787case "$srcdir::${force_ntp_vpath_hack-no}" in
7788 .::*)
7789    ;; # VPATH_HACK path is for VPATH builds only.
7790 *::yes)
7791    ntp_vpath_hack="yes"
7792    ;;
7793 *::*)
7794    case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
7795     '')
7796	ntp_vpath_hack="yes"
7797    esac
7798esac
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
7800$as_echo "$ntp_vpath_hack" >&6; }
7801 if test x$ntp_vpath_hack = xyes; then
7802  VPATH_HACK_TRUE=
7803  VPATH_HACK_FALSE='#'
7804else
7805  VPATH_HACK_TRUE='#'
7806  VPATH_HACK_FALSE=
7807fi
7808
7809
7810
7811
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
7813$as_echo_n "checking for install dir and man conventions... " >&6; }
7814
7815
7816# Check whether --with-locfile was given.
7817if test "${with_locfile+set}" = set; then :
7818  withval=$with_locfile;
7819else
7820  with_locfile=no
7821
7822fi
7823
7824
7825(									\
7826    SENTINEL_DIR="$PWD" &&						\
7827    cd $srcdir/sntp &&							\
7828    case "$with_locfile" in						\
7829     yes|no|'')								\
7830	scripts/genLocInfo -d "$SENTINEL_DIR"				\
7831	;;								\
7832     *)									\
7833	scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile"	\
7834	;;								\
7835    esac								\
7836) > genLocInfo.i 2> genLocInfo.err
7837. ./genLocInfo.i
7838
7839case "$GENLOCINFO" in
7840 OK)
7841    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
7842$as_echo "in file $GENLOCINFOFILE" >&6; }
7843    rm genLocInfo.err genLocInfo.i
7844    ;;
7845 *)
7846    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
7847$as_echo "failed." >&6; }
7848    as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
7849    ;;
7850esac
7851
7852 if test "$CALC_TICKADJ_MS" ; then
7853  WANT_CALC_TICKADJ_MS_TRUE=
7854  WANT_CALC_TICKADJ_MS_FALSE='#'
7855else
7856  WANT_CALC_TICKADJ_MS_TRUE='#'
7857  WANT_CALC_TICKADJ_MS_FALSE=
7858fi
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902 if test -z "$NTPSWEEP_NI" ; then
7903  INSTALL_NTPSWEEP_TRUE=
7904  INSTALL_NTPSWEEP_FALSE='#'
7905else
7906  INSTALL_NTPSWEEP_TRUE='#'
7907  INSTALL_NTPSWEEP_FALSE=
7908fi
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949# So far, the only shared library we might use is libopts.
7950# It's a small library - we might as well use a static version of it.
7951# Check whether --enable-shared was given.
7952if test "${enable_shared+set}" = set; then :
7953  enableval=$enable_shared; p=${PACKAGE-default}
7954    case $enableval in
7955    yes) enable_shared=yes ;;
7956    no) enable_shared=no ;;
7957    *)
7958      enable_shared=no
7959      # Look at the argument we got.  We use all the common list separators.
7960      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7961      for pkg in $enableval; do
7962	IFS="$lt_save_ifs"
7963	if test "X$pkg" = "X$p"; then
7964	  enable_shared=yes
7965	fi
7966      done
7967      IFS="$lt_save_ifs"
7968      ;;
7969    esac
7970else
7971  enable_shared=no
7972fi
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982case `pwd` in
7983  *\ * | *\	*)
7984    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7985$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7986esac
7987
7988
7989
7990macro_version='2.4'
7991macro_revision='1.3293'
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005ltmain="$ac_aux_dir/ltmain.sh"
8006
8007# Backslashify metacharacters that are still active within
8008# double-quoted strings.
8009sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8010
8011# Same as above, but do not quote variable references.
8012double_quote_subst='s/\(["`\\]\)/\\\1/g'
8013
8014# Sed substitution to delay expansion of an escaped shell variable in a
8015# double_quote_subst'ed string.
8016delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8017
8018# Sed substitution to delay expansion of an escaped single quote.
8019delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8020
8021# Sed substitution to avoid accidental globbing in evaled expressions
8022no_glob_subst='s/\*/\\\*/g'
8023
8024ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8025ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8026ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8027
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8029$as_echo_n "checking how to print strings... " >&6; }
8030# Test print first, because it will be a builtin if present.
8031if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8032   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8033  ECHO='print -r --'
8034elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8035  ECHO='printf %s\n'
8036else
8037  # Use this function as a fallback that always works.
8038  func_fallback_echo ()
8039  {
8040    eval 'cat <<_LTECHO_EOF
8041$1
8042_LTECHO_EOF'
8043  }
8044  ECHO='func_fallback_echo'
8045fi
8046
8047# func_echo_all arg...
8048# Invoke $ECHO with all args, space-separated.
8049func_echo_all ()
8050{
8051    $ECHO ""
8052}
8053
8054case "$ECHO" in
8055  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8056$as_echo "printf" >&6; } ;;
8057  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8058$as_echo "print -r" >&6; } ;;
8059  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8060$as_echo "cat" >&6; } ;;
8061esac
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8077$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8078if ${ac_cv_path_SED+:} false; then :
8079  $as_echo_n "(cached) " >&6
8080else
8081            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8082     for ac_i in 1 2 3 4 5 6 7; do
8083       ac_script="$ac_script$as_nl$ac_script"
8084     done
8085     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8086     { ac_script=; unset ac_script;}
8087     if test -z "$SED"; then
8088  ac_path_SED_found=false
8089  # Loop through the user's path and test for each of PROGNAME-LIST
8090  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091for as_dir in $PATH
8092do
8093  IFS=$as_save_IFS
8094  test -z "$as_dir" && as_dir=.
8095    for ac_prog in sed gsed; do
8096    for ac_exec_ext in '' $ac_executable_extensions; do
8097      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8098      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
8099# Check for GNU ac_path_SED and select it if it is found.
8100  # Check for GNU $ac_path_SED
8101case `"$ac_path_SED" --version 2>&1` in
8102*GNU*)
8103  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8104*)
8105  ac_count=0
8106  $as_echo_n 0123456789 >"conftest.in"
8107  while :
8108  do
8109    cat "conftest.in" "conftest.in" >"conftest.tmp"
8110    mv "conftest.tmp" "conftest.in"
8111    cp "conftest.in" "conftest.nl"
8112    $as_echo '' >> "conftest.nl"
8113    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8114    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8115    as_fn_arith $ac_count + 1 && ac_count=$as_val
8116    if test $ac_count -gt ${ac_path_SED_max-0}; then
8117      # Best one so far, save it but keep looking for a better one
8118      ac_cv_path_SED="$ac_path_SED"
8119      ac_path_SED_max=$ac_count
8120    fi
8121    # 10*(2^10) chars as input seems more than enough
8122    test $ac_count -gt 10 && break
8123  done
8124  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8125esac
8126
8127      $ac_path_SED_found && break 3
8128    done
8129  done
8130  done
8131IFS=$as_save_IFS
8132  if test -z "$ac_cv_path_SED"; then
8133    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8134  fi
8135else
8136  ac_cv_path_SED=$SED
8137fi
8138
8139fi
8140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8141$as_echo "$ac_cv_path_SED" >&6; }
8142 SED="$ac_cv_path_SED"
8143  rm -f conftest.sed
8144
8145test -z "$SED" && SED=sed
8146Xsed="$SED -e 1s/^X//"
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8159$as_echo_n "checking for fgrep... " >&6; }
8160if ${ac_cv_path_FGREP+:} false; then :
8161  $as_echo_n "(cached) " >&6
8162else
8163  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8164   then ac_cv_path_FGREP="$GREP -F"
8165   else
8166     if test -z "$FGREP"; then
8167  ac_path_FGREP_found=false
8168  # Loop through the user's path and test for each of PROGNAME-LIST
8169  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8171do
8172  IFS=$as_save_IFS
8173  test -z "$as_dir" && as_dir=.
8174    for ac_prog in fgrep; do
8175    for ac_exec_ext in '' $ac_executable_extensions; do
8176      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8177      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
8178# Check for GNU ac_path_FGREP and select it if it is found.
8179  # Check for GNU $ac_path_FGREP
8180case `"$ac_path_FGREP" --version 2>&1` in
8181*GNU*)
8182  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8183*)
8184  ac_count=0
8185  $as_echo_n 0123456789 >"conftest.in"
8186  while :
8187  do
8188    cat "conftest.in" "conftest.in" >"conftest.tmp"
8189    mv "conftest.tmp" "conftest.in"
8190    cp "conftest.in" "conftest.nl"
8191    $as_echo 'FGREP' >> "conftest.nl"
8192    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8193    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8194    as_fn_arith $ac_count + 1 && ac_count=$as_val
8195    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8196      # Best one so far, save it but keep looking for a better one
8197      ac_cv_path_FGREP="$ac_path_FGREP"
8198      ac_path_FGREP_max=$ac_count
8199    fi
8200    # 10*(2^10) chars as input seems more than enough
8201    test $ac_count -gt 10 && break
8202  done
8203  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8204esac
8205
8206      $ac_path_FGREP_found && break 3
8207    done
8208  done
8209  done
8210IFS=$as_save_IFS
8211  if test -z "$ac_cv_path_FGREP"; then
8212    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8213  fi
8214else
8215  ac_cv_path_FGREP=$FGREP
8216fi
8217
8218   fi
8219fi
8220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8221$as_echo "$ac_cv_path_FGREP" >&6; }
8222 FGREP="$ac_cv_path_FGREP"
8223
8224
8225test -z "$GREP" && GREP=grep
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245# Check whether --with-gnu-ld was given.
8246if test "${with_gnu_ld+set}" = set; then :
8247  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8248else
8249  with_gnu_ld=no
8250fi
8251
8252ac_prog=ld
8253if test "$GCC" = yes; then
8254  # Check if gcc -print-prog-name=ld gives a path.
8255  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8256$as_echo_n "checking for ld used by $CC... " >&6; }
8257  case $host in
8258  *-*-mingw*)
8259    # gcc leaves a trailing carriage return which upsets mingw
8260    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8261  *)
8262    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8263  esac
8264  case $ac_prog in
8265    # Accept absolute paths.
8266    [\\/]* | ?:[\\/]*)
8267      re_direlt='/[^/][^/]*/\.\./'
8268      # Canonicalize the pathname of ld
8269      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8270      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8271	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8272      done
8273      test -z "$LD" && LD="$ac_prog"
8274      ;;
8275  "")
8276    # If it fails, then pretend we aren't using GCC.
8277    ac_prog=ld
8278    ;;
8279  *)
8280    # If it is relative, then search for the first ld in PATH.
8281    with_gnu_ld=unknown
8282    ;;
8283  esac
8284elif test "$with_gnu_ld" = yes; then
8285  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8286$as_echo_n "checking for GNU ld... " >&6; }
8287else
8288  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8289$as_echo_n "checking for non-GNU ld... " >&6; }
8290fi
8291if ${lt_cv_path_LD+:} false; then :
8292  $as_echo_n "(cached) " >&6
8293else
8294  if test -z "$LD"; then
8295  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8296  for ac_dir in $PATH; do
8297    IFS="$lt_save_ifs"
8298    test -z "$ac_dir" && ac_dir=.
8299    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8300      lt_cv_path_LD="$ac_dir/$ac_prog"
8301      # Check to see if the program is GNU ld.  I'd rather use --version,
8302      # but apparently some variants of GNU ld only accept -v.
8303      # Break only if it was the GNU/non-GNU ld that we prefer.
8304      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8305      *GNU* | *'with BFD'*)
8306	test "$with_gnu_ld" != no && break
8307	;;
8308      *)
8309	test "$with_gnu_ld" != yes && break
8310	;;
8311      esac
8312    fi
8313  done
8314  IFS="$lt_save_ifs"
8315else
8316  lt_cv_path_LD="$LD" # Let the user override the test with a path.
8317fi
8318fi
8319
8320LD="$lt_cv_path_LD"
8321if test -n "$LD"; then
8322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8323$as_echo "$LD" >&6; }
8324else
8325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326$as_echo "no" >&6; }
8327fi
8328test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8330$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8331if ${lt_cv_prog_gnu_ld+:} false; then :
8332  $as_echo_n "(cached) " >&6
8333else
8334  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8335case `$LD -v 2>&1 </dev/null` in
8336*GNU* | *'with BFD'*)
8337  lt_cv_prog_gnu_ld=yes
8338  ;;
8339*)
8340  lt_cv_prog_gnu_ld=no
8341  ;;
8342esac
8343fi
8344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8345$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8346with_gnu_ld=$lt_cv_prog_gnu_ld
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8357$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8358if ${lt_cv_path_NM+:} false; then :
8359  $as_echo_n "(cached) " >&6
8360else
8361  if test -n "$NM"; then
8362  # Let the user override the test.
8363  lt_cv_path_NM="$NM"
8364else
8365  lt_nm_to_check="${ac_tool_prefix}nm"
8366  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8367    lt_nm_to_check="$lt_nm_to_check nm"
8368  fi
8369  for lt_tmp_nm in $lt_nm_to_check; do
8370    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8371    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8372      IFS="$lt_save_ifs"
8373      test -z "$ac_dir" && ac_dir=.
8374      tmp_nm="$ac_dir/$lt_tmp_nm"
8375      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8376	# Check to see if the nm accepts a BSD-compat flag.
8377	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
8378	#   nm: unknown option "B" ignored
8379	# Tru64's nm complains that /dev/null is an invalid object file
8380	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8381	*/dev/null* | *'Invalid file or object type'*)
8382	  lt_cv_path_NM="$tmp_nm -B"
8383	  break
8384	  ;;
8385	*)
8386	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8387	  */dev/null*)
8388	    lt_cv_path_NM="$tmp_nm -p"
8389	    break
8390	    ;;
8391	  *)
8392	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8393	    continue # so that we can try to find one that supports BSD flags
8394	    ;;
8395	  esac
8396	  ;;
8397	esac
8398      fi
8399    done
8400    IFS="$lt_save_ifs"
8401  done
8402  : ${lt_cv_path_NM=no}
8403fi
8404fi
8405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8406$as_echo "$lt_cv_path_NM" >&6; }
8407if test "$lt_cv_path_NM" != "no"; then
8408  NM="$lt_cv_path_NM"
8409else
8410  # Didn't find any BSD compatible name lister, look for dumpbin.
8411  if test -n "$DUMPBIN"; then :
8412    # Let the user override the test.
8413  else
8414    if test -n "$ac_tool_prefix"; then
8415  for ac_prog in dumpbin "link -dump"
8416  do
8417    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8418set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420$as_echo_n "checking for $ac_word... " >&6; }
8421if ${ac_cv_prog_DUMPBIN+:} false; then :
8422  $as_echo_n "(cached) " >&6
8423else
8424  if test -n "$DUMPBIN"; then
8425  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8426else
8427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8428for as_dir in $PATH
8429do
8430  IFS=$as_save_IFS
8431  test -z "$as_dir" && as_dir=.
8432    for ac_exec_ext in '' $ac_executable_extensions; do
8433  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8434    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8436    break 2
8437  fi
8438done
8439  done
8440IFS=$as_save_IFS
8441
8442fi
8443fi
8444DUMPBIN=$ac_cv_prog_DUMPBIN
8445if test -n "$DUMPBIN"; then
8446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8447$as_echo "$DUMPBIN" >&6; }
8448else
8449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450$as_echo "no" >&6; }
8451fi
8452
8453
8454    test -n "$DUMPBIN" && break
8455  done
8456fi
8457if test -z "$DUMPBIN"; then
8458  ac_ct_DUMPBIN=$DUMPBIN
8459  for ac_prog in dumpbin "link -dump"
8460do
8461  # Extract the first word of "$ac_prog", so it can be a program name with args.
8462set dummy $ac_prog; ac_word=$2
8463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8464$as_echo_n "checking for $ac_word... " >&6; }
8465if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8466  $as_echo_n "(cached) " >&6
8467else
8468  if test -n "$ac_ct_DUMPBIN"; then
8469  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8470else
8471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472for as_dir in $PATH
8473do
8474  IFS=$as_save_IFS
8475  test -z "$as_dir" && as_dir=.
8476    for ac_exec_ext in '' $ac_executable_extensions; do
8477  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8478    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8479    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8480    break 2
8481  fi
8482done
8483  done
8484IFS=$as_save_IFS
8485
8486fi
8487fi
8488ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8489if test -n "$ac_ct_DUMPBIN"; then
8490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8491$as_echo "$ac_ct_DUMPBIN" >&6; }
8492else
8493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8494$as_echo "no" >&6; }
8495fi
8496
8497
8498  test -n "$ac_ct_DUMPBIN" && break
8499done
8500
8501  if test "x$ac_ct_DUMPBIN" = x; then
8502    DUMPBIN=":"
8503  else
8504    case $cross_compiling:$ac_tool_warned in
8505yes:)
8506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8508ac_tool_warned=yes ;;
8509esac
8510    DUMPBIN=$ac_ct_DUMPBIN
8511  fi
8512fi
8513
8514    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8515    *COFF*)
8516      DUMPBIN="$DUMPBIN -symbols"
8517      ;;
8518    *)
8519      DUMPBIN=:
8520      ;;
8521    esac
8522  fi
8523
8524  if test "$DUMPBIN" != ":"; then
8525    NM="$DUMPBIN"
8526  fi
8527fi
8528test -z "$NM" && NM=nm
8529
8530
8531
8532
8533
8534
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8536$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8537if ${lt_cv_nm_interface+:} false; then :
8538  $as_echo_n "(cached) " >&6
8539else
8540  lt_cv_nm_interface="BSD nm"
8541  echo "int some_variable = 0;" > conftest.$ac_ext
8542  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8543  (eval "$ac_compile" 2>conftest.err)
8544  cat conftest.err >&5
8545  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8546  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8547  cat conftest.err >&5
8548  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8549  cat conftest.out >&5
8550  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8551    lt_cv_nm_interface="MS dumpbin"
8552  fi
8553  rm -f conftest*
8554fi
8555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8556$as_echo "$lt_cv_nm_interface" >&6; }
8557
8558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8559$as_echo_n "checking whether ln -s works... " >&6; }
8560LN_S=$as_ln_s
8561if test "$LN_S" = "ln -s"; then
8562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8563$as_echo "yes" >&6; }
8564else
8565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8566$as_echo "no, using $LN_S" >&6; }
8567fi
8568
8569# find the maximum length of command line arguments
8570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8571$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8572if ${lt_cv_sys_max_cmd_len+:} false; then :
8573  $as_echo_n "(cached) " >&6
8574else
8575    i=0
8576  teststring="ABCD"
8577
8578  case $build_os in
8579  msdosdjgpp*)
8580    # On DJGPP, this test can blow up pretty badly due to problems in libc
8581    # (any single argument exceeding 2000 bytes causes a buffer overrun
8582    # during glob expansion).  Even if it were fixed, the result of this
8583    # check would be larger than it should be.
8584    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8585    ;;
8586
8587  gnu*)
8588    # Under GNU Hurd, this test is not required because there is
8589    # no limit to the length of command line arguments.
8590    # Libtool will interpret -1 as no limit whatsoever
8591    lt_cv_sys_max_cmd_len=-1;
8592    ;;
8593
8594  cygwin* | mingw* | cegcc*)
8595    # On Win9x/ME, this test blows up -- it succeeds, but takes
8596    # about 5 minutes as the teststring grows exponentially.
8597    # Worse, since 9x/ME are not pre-emptively multitasking,
8598    # you end up with a "frozen" computer, even though with patience
8599    # the test eventually succeeds (with a max line length of 256k).
8600    # Instead, let's just punt: use the minimum linelength reported by
8601    # all of the supported platforms: 8192 (on NT/2K/XP).
8602    lt_cv_sys_max_cmd_len=8192;
8603    ;;
8604
8605  mint*)
8606    # On MiNT this can take a long time and run out of memory.
8607    lt_cv_sys_max_cmd_len=8192;
8608    ;;
8609
8610  amigaos*)
8611    # On AmigaOS with pdksh, this test takes hours, literally.
8612    # So we just punt and use a minimum line length of 8192.
8613    lt_cv_sys_max_cmd_len=8192;
8614    ;;
8615
8616  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8617    # This has been around since 386BSD, at least.  Likely further.
8618    if test -x /sbin/sysctl; then
8619      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8620    elif test -x /usr/sbin/sysctl; then
8621      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8622    else
8623      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8624    fi
8625    # And add a safety zone
8626    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8627    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8628    ;;
8629
8630  interix*)
8631    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8632    lt_cv_sys_max_cmd_len=196608
8633    ;;
8634
8635  osf*)
8636    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8637    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8638    # nice to cause kernel panics so lets avoid the loop below.
8639    # First set a reasonable default.
8640    lt_cv_sys_max_cmd_len=16384
8641    #
8642    if test -x /sbin/sysconfig; then
8643      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8644        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8645      esac
8646    fi
8647    ;;
8648  sco3.2v5*)
8649    lt_cv_sys_max_cmd_len=102400
8650    ;;
8651  sysv5* | sco5v6* | sysv4.2uw2*)
8652    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8653    if test -n "$kargmax"; then
8654      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8655    else
8656      lt_cv_sys_max_cmd_len=32768
8657    fi
8658    ;;
8659  *)
8660    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8661    if test -n "$lt_cv_sys_max_cmd_len"; then
8662      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8663      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8664    else
8665      # Make teststring a little bigger before we do anything with it.
8666      # a 1K string should be a reasonable start.
8667      for i in 1 2 3 4 5 6 7 8 ; do
8668        teststring=$teststring$teststring
8669      done
8670      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8671      # If test is not a shell built-in, we'll probably end up computing a
8672      # maximum length that is only half of the actual maximum length, but
8673      # we can't tell.
8674      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
8675	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8676	      test $i != 17 # 1/2 MB should be enough
8677      do
8678        i=`expr $i + 1`
8679        teststring=$teststring$teststring
8680      done
8681      # Only check the string length outside the loop.
8682      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8683      teststring=
8684      # Add a significant safety factor because C++ compilers can tack on
8685      # massive amounts of additional arguments before passing them to the
8686      # linker.  It appears as though 1/2 is a usable value.
8687      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8688    fi
8689    ;;
8690  esac
8691
8692fi
8693
8694if test -n $lt_cv_sys_max_cmd_len ; then
8695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8696$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8697else
8698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8699$as_echo "none" >&6; }
8700fi
8701max_cmd_len=$lt_cv_sys_max_cmd_len
8702
8703
8704
8705
8706
8707
8708: ${CP="cp -f"}
8709: ${MV="mv -f"}
8710: ${RM="rm -f"}
8711
8712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8713$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8714# Try some XSI features
8715xsi_shell=no
8716( _lt_dummy="a/b/c"
8717  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8718      = c,a/b,b/c, \
8719    && eval 'test $(( 1 + 1 )) -eq 2 \
8720    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8721  && xsi_shell=yes
8722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8723$as_echo "$xsi_shell" >&6; }
8724
8725
8726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8727$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8728lt_shell_append=no
8729( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8730    >/dev/null 2>&1 \
8731  && lt_shell_append=yes
8732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8733$as_echo "$lt_shell_append" >&6; }
8734
8735
8736if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8737  lt_unset=unset
8738else
8739  lt_unset=false
8740fi
8741
8742
8743
8744
8745
8746# test EBCDIC or ASCII
8747case `echo X|tr X '\101'` in
8748 A) # ASCII based system
8749    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8750  lt_SP2NL='tr \040 \012'
8751  lt_NL2SP='tr \015\012 \040\040'
8752  ;;
8753 *) # EBCDIC based system
8754  lt_SP2NL='tr \100 \n'
8755  lt_NL2SP='tr \r\n \100\100'
8756  ;;
8757esac
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8768$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8769if ${lt_cv_to_host_file_cmd+:} false; then :
8770  $as_echo_n "(cached) " >&6
8771else
8772  case $host in
8773  *-*-mingw* )
8774    case $build in
8775      *-*-mingw* ) # actually msys
8776        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8777        ;;
8778      *-*-cygwin* )
8779        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8780        ;;
8781      * ) # otherwise, assume *nix
8782        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8783        ;;
8784    esac
8785    ;;
8786  *-*-cygwin* )
8787    case $build in
8788      *-*-mingw* ) # actually msys
8789        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8790        ;;
8791      *-*-cygwin* )
8792        lt_cv_to_host_file_cmd=func_convert_file_noop
8793        ;;
8794      * ) # otherwise, assume *nix
8795        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8796        ;;
8797    esac
8798    ;;
8799  * ) # unhandled hosts (and "normal" native builds)
8800    lt_cv_to_host_file_cmd=func_convert_file_noop
8801    ;;
8802esac
8803
8804fi
8805
8806to_host_file_cmd=$lt_cv_to_host_file_cmd
8807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8808$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8809
8810
8811
8812
8813
8814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8815$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8816if ${lt_cv_to_tool_file_cmd+:} false; then :
8817  $as_echo_n "(cached) " >&6
8818else
8819  #assume ordinary cross tools, or native build.
8820lt_cv_to_tool_file_cmd=func_convert_file_noop
8821case $host in
8822  *-*-mingw* )
8823    case $build in
8824      *-*-mingw* ) # actually msys
8825        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8826        ;;
8827    esac
8828    ;;
8829esac
8830
8831fi
8832
8833to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8835$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8836
8837
8838
8839
8840
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8842$as_echo_n "checking for $LD option to reload object files... " >&6; }
8843if ${lt_cv_ld_reload_flag+:} false; then :
8844  $as_echo_n "(cached) " >&6
8845else
8846  lt_cv_ld_reload_flag='-r'
8847fi
8848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8849$as_echo "$lt_cv_ld_reload_flag" >&6; }
8850reload_flag=$lt_cv_ld_reload_flag
8851case $reload_flag in
8852"" | " "*) ;;
8853*) reload_flag=" $reload_flag" ;;
8854esac
8855reload_cmds='$LD$reload_flag -o $output$reload_objs'
8856case $host_os in
8857  cygwin* | mingw* | pw32* | cegcc*)
8858    if test "$GCC" != yes; then
8859      reload_cmds=false
8860    fi
8861    ;;
8862  darwin*)
8863    if test "$GCC" = yes; then
8864      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8865    else
8866      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8867    fi
8868    ;;
8869esac
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879if test -n "$ac_tool_prefix"; then
8880  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8881set dummy ${ac_tool_prefix}objdump; ac_word=$2
8882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8883$as_echo_n "checking for $ac_word... " >&6; }
8884if ${ac_cv_prog_OBJDUMP+:} false; then :
8885  $as_echo_n "(cached) " >&6
8886else
8887  if test -n "$OBJDUMP"; then
8888  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8889else
8890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8891for as_dir in $PATH
8892do
8893  IFS=$as_save_IFS
8894  test -z "$as_dir" && as_dir=.
8895    for ac_exec_ext in '' $ac_executable_extensions; do
8896  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8897    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8898    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8899    break 2
8900  fi
8901done
8902  done
8903IFS=$as_save_IFS
8904
8905fi
8906fi
8907OBJDUMP=$ac_cv_prog_OBJDUMP
8908if test -n "$OBJDUMP"; then
8909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8910$as_echo "$OBJDUMP" >&6; }
8911else
8912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8913$as_echo "no" >&6; }
8914fi
8915
8916
8917fi
8918if test -z "$ac_cv_prog_OBJDUMP"; then
8919  ac_ct_OBJDUMP=$OBJDUMP
8920  # Extract the first word of "objdump", so it can be a program name with args.
8921set dummy objdump; ac_word=$2
8922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8923$as_echo_n "checking for $ac_word... " >&6; }
8924if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8925  $as_echo_n "(cached) " >&6
8926else
8927  if test -n "$ac_ct_OBJDUMP"; then
8928  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8929else
8930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931for as_dir in $PATH
8932do
8933  IFS=$as_save_IFS
8934  test -z "$as_dir" && as_dir=.
8935    for ac_exec_ext in '' $ac_executable_extensions; do
8936  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8937    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8939    break 2
8940  fi
8941done
8942  done
8943IFS=$as_save_IFS
8944
8945fi
8946fi
8947ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8948if test -n "$ac_ct_OBJDUMP"; then
8949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8950$as_echo "$ac_ct_OBJDUMP" >&6; }
8951else
8952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953$as_echo "no" >&6; }
8954fi
8955
8956  if test "x$ac_ct_OBJDUMP" = x; then
8957    OBJDUMP="false"
8958  else
8959    case $cross_compiling:$ac_tool_warned in
8960yes:)
8961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8963ac_tool_warned=yes ;;
8964esac
8965    OBJDUMP=$ac_ct_OBJDUMP
8966  fi
8967else
8968  OBJDUMP="$ac_cv_prog_OBJDUMP"
8969fi
8970
8971test -z "$OBJDUMP" && OBJDUMP=objdump
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8982$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8983if ${lt_cv_deplibs_check_method+:} false; then :
8984  $as_echo_n "(cached) " >&6
8985else
8986  lt_cv_file_magic_cmd='$MAGIC_CMD'
8987lt_cv_file_magic_test_file=
8988lt_cv_deplibs_check_method='unknown'
8989# Need to set the preceding variable on all platforms that support
8990# interlibrary dependencies.
8991# 'none' -- dependencies not supported.
8992# `unknown' -- same as none, but documents that we really don't know.
8993# 'pass_all' -- all dependencies passed with no checks.
8994# 'test_compile' -- check by making test program.
8995# 'file_magic [[regex]]' -- check by looking for files in library path
8996# which responds to the $file_magic_cmd with a given extended regex.
8997# If you have `file' or equivalent on your system and you're not sure
8998# whether `pass_all' will *always* work, you probably want this one.
8999
9000case $host_os in
9001aix[4-9]*)
9002  lt_cv_deplibs_check_method=pass_all
9003  ;;
9004
9005beos*)
9006  lt_cv_deplibs_check_method=pass_all
9007  ;;
9008
9009bsdi[45]*)
9010  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9011  lt_cv_file_magic_cmd='/usr/bin/file -L'
9012  lt_cv_file_magic_test_file=/shlib/libc.so
9013  ;;
9014
9015cygwin*)
9016  # func_win32_libid is a shell function defined in ltmain.sh
9017  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9018  lt_cv_file_magic_cmd='func_win32_libid'
9019  ;;
9020
9021mingw* | pw32*)
9022  # Base MSYS/MinGW do not provide the 'file' command needed by
9023  # func_win32_libid shell function, so use a weaker test based on 'objdump',
9024  # unless we find 'file', for example because we are cross-compiling.
9025  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
9026  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
9027    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9028    lt_cv_file_magic_cmd='func_win32_libid'
9029  else
9030    # Keep this pattern in sync with the one in func_win32_libid.
9031    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9032    lt_cv_file_magic_cmd='$OBJDUMP -f'
9033  fi
9034  ;;
9035
9036cegcc*)
9037  # use the weaker test based on 'objdump'. See mingw*.
9038  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9039  lt_cv_file_magic_cmd='$OBJDUMP -f'
9040  ;;
9041
9042darwin* | rhapsody*)
9043  lt_cv_deplibs_check_method=pass_all
9044  ;;
9045
9046freebsd* | dragonfly*)
9047  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9048    case $host_cpu in
9049    i*86 )
9050      # Not sure whether the presence of OpenBSD here was a mistake.
9051      # Let's accept both of them until this is cleared up.
9052      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9053      lt_cv_file_magic_cmd=/usr/bin/file
9054      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9055      ;;
9056    esac
9057  else
9058    lt_cv_deplibs_check_method=pass_all
9059  fi
9060  ;;
9061
9062gnu*)
9063  lt_cv_deplibs_check_method=pass_all
9064  ;;
9065
9066haiku*)
9067  lt_cv_deplibs_check_method=pass_all
9068  ;;
9069
9070hpux10.20* | hpux11*)
9071  lt_cv_file_magic_cmd=/usr/bin/file
9072  case $host_cpu in
9073  ia64*)
9074    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9075    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9076    ;;
9077  hppa*64*)
9078    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]'
9079    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9080    ;;
9081  *)
9082    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9083    lt_cv_file_magic_test_file=/usr/lib/libc.sl
9084    ;;
9085  esac
9086  ;;
9087
9088interix[3-9]*)
9089  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9090  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9091  ;;
9092
9093irix5* | irix6* | nonstopux*)
9094  case $LD in
9095  *-32|*"-32 ") libmagic=32-bit;;
9096  *-n32|*"-n32 ") libmagic=N32;;
9097  *-64|*"-64 ") libmagic=64-bit;;
9098  *) libmagic=never-match;;
9099  esac
9100  lt_cv_deplibs_check_method=pass_all
9101  ;;
9102
9103# This must be Linux ELF.
9104linux* | k*bsd*-gnu | kopensolaris*-gnu)
9105  lt_cv_deplibs_check_method=pass_all
9106  ;;
9107
9108netbsd*)
9109  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9110    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9111  else
9112    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9113  fi
9114  ;;
9115
9116newos6*)
9117  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9118  lt_cv_file_magic_cmd=/usr/bin/file
9119  lt_cv_file_magic_test_file=/usr/lib/libnls.so
9120  ;;
9121
9122*nto* | *qnx*)
9123  lt_cv_deplibs_check_method=pass_all
9124  ;;
9125
9126openbsd*)
9127  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9128    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9129  else
9130    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9131  fi
9132  ;;
9133
9134osf3* | osf4* | osf5*)
9135  lt_cv_deplibs_check_method=pass_all
9136  ;;
9137
9138rdos*)
9139  lt_cv_deplibs_check_method=pass_all
9140  ;;
9141
9142solaris*)
9143  lt_cv_deplibs_check_method=pass_all
9144  ;;
9145
9146sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9147  lt_cv_deplibs_check_method=pass_all
9148  ;;
9149
9150sysv4 | sysv4.3*)
9151  case $host_vendor in
9152  motorola)
9153    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]'
9154    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9155    ;;
9156  ncr)
9157    lt_cv_deplibs_check_method=pass_all
9158    ;;
9159  sequent)
9160    lt_cv_file_magic_cmd='/bin/file'
9161    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9162    ;;
9163  sni)
9164    lt_cv_file_magic_cmd='/bin/file'
9165    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9166    lt_cv_file_magic_test_file=/lib/libc.so
9167    ;;
9168  siemens)
9169    lt_cv_deplibs_check_method=pass_all
9170    ;;
9171  pc)
9172    lt_cv_deplibs_check_method=pass_all
9173    ;;
9174  esac
9175  ;;
9176
9177tpf*)
9178  lt_cv_deplibs_check_method=pass_all
9179  ;;
9180esac
9181
9182fi
9183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9184$as_echo "$lt_cv_deplibs_check_method" >&6; }
9185
9186file_magic_glob=
9187want_nocaseglob=no
9188if test "$build" = "$host"; then
9189  case $host_os in
9190  mingw* | pw32*)
9191    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9192      want_nocaseglob=yes
9193    else
9194      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9195    fi
9196    ;;
9197  esac
9198fi
9199
9200file_magic_cmd=$lt_cv_file_magic_cmd
9201deplibs_check_method=$lt_cv_deplibs_check_method
9202test -z "$deplibs_check_method" && deplibs_check_method=unknown
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225if test -n "$ac_tool_prefix"; then
9226  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9227set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9229$as_echo_n "checking for $ac_word... " >&6; }
9230if ${ac_cv_prog_DLLTOOL+:} false; then :
9231  $as_echo_n "(cached) " >&6
9232else
9233  if test -n "$DLLTOOL"; then
9234  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9235else
9236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9237for as_dir in $PATH
9238do
9239  IFS=$as_save_IFS
9240  test -z "$as_dir" && as_dir=.
9241    for ac_exec_ext in '' $ac_executable_extensions; do
9242  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9243    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9244    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9245    break 2
9246  fi
9247done
9248  done
9249IFS=$as_save_IFS
9250
9251fi
9252fi
9253DLLTOOL=$ac_cv_prog_DLLTOOL
9254if test -n "$DLLTOOL"; then
9255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9256$as_echo "$DLLTOOL" >&6; }
9257else
9258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259$as_echo "no" >&6; }
9260fi
9261
9262
9263fi
9264if test -z "$ac_cv_prog_DLLTOOL"; then
9265  ac_ct_DLLTOOL=$DLLTOOL
9266  # Extract the first word of "dlltool", so it can be a program name with args.
9267set dummy dlltool; ac_word=$2
9268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9269$as_echo_n "checking for $ac_word... " >&6; }
9270if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9271  $as_echo_n "(cached) " >&6
9272else
9273  if test -n "$ac_ct_DLLTOOL"; then
9274  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9275else
9276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277for as_dir in $PATH
9278do
9279  IFS=$as_save_IFS
9280  test -z "$as_dir" && as_dir=.
9281    for ac_exec_ext in '' $ac_executable_extensions; do
9282  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9283    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9285    break 2
9286  fi
9287done
9288  done
9289IFS=$as_save_IFS
9290
9291fi
9292fi
9293ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9294if test -n "$ac_ct_DLLTOOL"; then
9295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9296$as_echo "$ac_ct_DLLTOOL" >&6; }
9297else
9298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299$as_echo "no" >&6; }
9300fi
9301
9302  if test "x$ac_ct_DLLTOOL" = x; then
9303    DLLTOOL="false"
9304  else
9305    case $cross_compiling:$ac_tool_warned in
9306yes:)
9307{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9309ac_tool_warned=yes ;;
9310esac
9311    DLLTOOL=$ac_ct_DLLTOOL
9312  fi
9313else
9314  DLLTOOL="$ac_cv_prog_DLLTOOL"
9315fi
9316
9317test -z "$DLLTOOL" && DLLTOOL=dlltool
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9329$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9330if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9331  $as_echo_n "(cached) " >&6
9332else
9333  lt_cv_sharedlib_from_linklib_cmd='unknown'
9334
9335case $host_os in
9336cygwin* | mingw* | pw32* | cegcc*)
9337  # two different shell functions defined in ltmain.sh
9338  # decide which to use based on capabilities of $DLLTOOL
9339  case `$DLLTOOL --help 2>&1` in
9340  *--identify-strict*)
9341    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9342    ;;
9343  *)
9344    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9345    ;;
9346  esac
9347  ;;
9348*)
9349  # fallback: assume linklib IS sharedlib
9350  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9351  ;;
9352esac
9353
9354fi
9355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9356$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9357sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9358test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9359
9360
9361
9362
9363
9364
9365
9366if test -n "$ac_tool_prefix"; then
9367  for ac_prog in ar
9368  do
9369    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9370set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9372$as_echo_n "checking for $ac_word... " >&6; }
9373if ${ac_cv_prog_AR+:} false; then :
9374  $as_echo_n "(cached) " >&6
9375else
9376  if test -n "$AR"; then
9377  ac_cv_prog_AR="$AR" # Let the user override the test.
9378else
9379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9380for as_dir in $PATH
9381do
9382  IFS=$as_save_IFS
9383  test -z "$as_dir" && as_dir=.
9384    for ac_exec_ext in '' $ac_executable_extensions; do
9385  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9386    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9387    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9388    break 2
9389  fi
9390done
9391  done
9392IFS=$as_save_IFS
9393
9394fi
9395fi
9396AR=$ac_cv_prog_AR
9397if test -n "$AR"; then
9398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9399$as_echo "$AR" >&6; }
9400else
9401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9402$as_echo "no" >&6; }
9403fi
9404
9405
9406    test -n "$AR" && break
9407  done
9408fi
9409if test -z "$AR"; then
9410  ac_ct_AR=$AR
9411  for ac_prog in ar
9412do
9413  # Extract the first word of "$ac_prog", so it can be a program name with args.
9414set dummy $ac_prog; ac_word=$2
9415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9416$as_echo_n "checking for $ac_word... " >&6; }
9417if ${ac_cv_prog_ac_ct_AR+:} false; then :
9418  $as_echo_n "(cached) " >&6
9419else
9420  if test -n "$ac_ct_AR"; then
9421  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9422else
9423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9424for as_dir in $PATH
9425do
9426  IFS=$as_save_IFS
9427  test -z "$as_dir" && as_dir=.
9428    for ac_exec_ext in '' $ac_executable_extensions; do
9429  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9430    ac_cv_prog_ac_ct_AR="$ac_prog"
9431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9432    break 2
9433  fi
9434done
9435  done
9436IFS=$as_save_IFS
9437
9438fi
9439fi
9440ac_ct_AR=$ac_cv_prog_ac_ct_AR
9441if test -n "$ac_ct_AR"; then
9442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9443$as_echo "$ac_ct_AR" >&6; }
9444else
9445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9446$as_echo "no" >&6; }
9447fi
9448
9449
9450  test -n "$ac_ct_AR" && break
9451done
9452
9453  if test "x$ac_ct_AR" = x; then
9454    AR="false"
9455  else
9456    case $cross_compiling:$ac_tool_warned in
9457yes:)
9458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9460ac_tool_warned=yes ;;
9461esac
9462    AR=$ac_ct_AR
9463  fi
9464fi
9465
9466: ${AR=ar}
9467: ${AR_FLAGS=cru}
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9480$as_echo_n "checking for archiver @FILE support... " >&6; }
9481if ${lt_cv_ar_at_file+:} false; then :
9482  $as_echo_n "(cached) " >&6
9483else
9484  lt_cv_ar_at_file=no
9485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486/* end confdefs.h.  */
9487
9488int
9489main ()
9490{
9491
9492  ;
9493  return 0;
9494}
9495_ACEOF
9496if ac_fn_c_try_compile "$LINENO"; then :
9497  echo conftest.$ac_objext > conftest.lst
9498      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9499      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9500  (eval $lt_ar_try) 2>&5
9501  ac_status=$?
9502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9503  test $ac_status = 0; }
9504      if test "$ac_status" -eq 0; then
9505	# Ensure the archiver fails upon bogus file names.
9506	rm -f conftest.$ac_objext libconftest.a
9507	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9508  (eval $lt_ar_try) 2>&5
9509  ac_status=$?
9510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9511  test $ac_status = 0; }
9512	if test "$ac_status" -ne 0; then
9513          lt_cv_ar_at_file=@
9514        fi
9515      fi
9516      rm -f conftest.* libconftest.a
9517
9518fi
9519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9520
9521fi
9522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9523$as_echo "$lt_cv_ar_at_file" >&6; }
9524
9525if test "x$lt_cv_ar_at_file" = xno; then
9526  archiver_list_spec=
9527else
9528  archiver_list_spec=$lt_cv_ar_at_file
9529fi
9530
9531
9532
9533
9534
9535
9536
9537if test -n "$ac_tool_prefix"; then
9538  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9539set dummy ${ac_tool_prefix}strip; ac_word=$2
9540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9541$as_echo_n "checking for $ac_word... " >&6; }
9542if ${ac_cv_prog_STRIP+:} false; then :
9543  $as_echo_n "(cached) " >&6
9544else
9545  if test -n "$STRIP"; then
9546  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9547else
9548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9549for as_dir in $PATH
9550do
9551  IFS=$as_save_IFS
9552  test -z "$as_dir" && as_dir=.
9553    for ac_exec_ext in '' $ac_executable_extensions; do
9554  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9555    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9557    break 2
9558  fi
9559done
9560  done
9561IFS=$as_save_IFS
9562
9563fi
9564fi
9565STRIP=$ac_cv_prog_STRIP
9566if test -n "$STRIP"; then
9567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9568$as_echo "$STRIP" >&6; }
9569else
9570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9571$as_echo "no" >&6; }
9572fi
9573
9574
9575fi
9576if test -z "$ac_cv_prog_STRIP"; then
9577  ac_ct_STRIP=$STRIP
9578  # Extract the first word of "strip", so it can be a program name with args.
9579set dummy strip; ac_word=$2
9580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581$as_echo_n "checking for $ac_word... " >&6; }
9582if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9583  $as_echo_n "(cached) " >&6
9584else
9585  if test -n "$ac_ct_STRIP"; then
9586  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9587else
9588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589for as_dir in $PATH
9590do
9591  IFS=$as_save_IFS
9592  test -z "$as_dir" && as_dir=.
9593    for ac_exec_ext in '' $ac_executable_extensions; do
9594  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9595    ac_cv_prog_ac_ct_STRIP="strip"
9596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9597    break 2
9598  fi
9599done
9600  done
9601IFS=$as_save_IFS
9602
9603fi
9604fi
9605ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9606if test -n "$ac_ct_STRIP"; then
9607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9608$as_echo "$ac_ct_STRIP" >&6; }
9609else
9610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611$as_echo "no" >&6; }
9612fi
9613
9614  if test "x$ac_ct_STRIP" = x; then
9615    STRIP=":"
9616  else
9617    case $cross_compiling:$ac_tool_warned in
9618yes:)
9619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9621ac_tool_warned=yes ;;
9622esac
9623    STRIP=$ac_ct_STRIP
9624  fi
9625else
9626  STRIP="$ac_cv_prog_STRIP"
9627fi
9628
9629test -z "$STRIP" && STRIP=:
9630
9631
9632
9633
9634
9635
9636if test -n "$ac_tool_prefix"; then
9637  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9638set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640$as_echo_n "checking for $ac_word... " >&6; }
9641if ${ac_cv_prog_RANLIB+:} false; then :
9642  $as_echo_n "(cached) " >&6
9643else
9644  if test -n "$RANLIB"; then
9645  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9646else
9647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648for as_dir in $PATH
9649do
9650  IFS=$as_save_IFS
9651  test -z "$as_dir" && as_dir=.
9652    for ac_exec_ext in '' $ac_executable_extensions; do
9653  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9654    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9655    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9656    break 2
9657  fi
9658done
9659  done
9660IFS=$as_save_IFS
9661
9662fi
9663fi
9664RANLIB=$ac_cv_prog_RANLIB
9665if test -n "$RANLIB"; then
9666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9667$as_echo "$RANLIB" >&6; }
9668else
9669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9670$as_echo "no" >&6; }
9671fi
9672
9673
9674fi
9675if test -z "$ac_cv_prog_RANLIB"; then
9676  ac_ct_RANLIB=$RANLIB
9677  # Extract the first word of "ranlib", so it can be a program name with args.
9678set dummy ranlib; ac_word=$2
9679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9680$as_echo_n "checking for $ac_word... " >&6; }
9681if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9682  $as_echo_n "(cached) " >&6
9683else
9684  if test -n "$ac_ct_RANLIB"; then
9685  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9686else
9687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9688for as_dir in $PATH
9689do
9690  IFS=$as_save_IFS
9691  test -z "$as_dir" && as_dir=.
9692    for ac_exec_ext in '' $ac_executable_extensions; do
9693  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9694    ac_cv_prog_ac_ct_RANLIB="ranlib"
9695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9696    break 2
9697  fi
9698done
9699  done
9700IFS=$as_save_IFS
9701
9702fi
9703fi
9704ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9705if test -n "$ac_ct_RANLIB"; then
9706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9707$as_echo "$ac_ct_RANLIB" >&6; }
9708else
9709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710$as_echo "no" >&6; }
9711fi
9712
9713  if test "x$ac_ct_RANLIB" = x; then
9714    RANLIB=":"
9715  else
9716    case $cross_compiling:$ac_tool_warned in
9717yes:)
9718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9720ac_tool_warned=yes ;;
9721esac
9722    RANLIB=$ac_ct_RANLIB
9723  fi
9724else
9725  RANLIB="$ac_cv_prog_RANLIB"
9726fi
9727
9728test -z "$RANLIB" && RANLIB=:
9729
9730
9731
9732
9733
9734
9735# Determine commands to create old-style static archives.
9736old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9737old_postinstall_cmds='chmod 644 $oldlib'
9738old_postuninstall_cmds=
9739
9740if test -n "$RANLIB"; then
9741  case $host_os in
9742  openbsd*)
9743    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9744    ;;
9745  *)
9746    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9747    ;;
9748  esac
9749  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9750fi
9751
9752case $host_os in
9753  darwin*)
9754    lock_old_archive_extraction=yes ;;
9755  *)
9756    lock_old_archive_extraction=no ;;
9757esac
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797# If no C compiler was specified, use CC.
9798LTCC=${LTCC-"$CC"}
9799
9800# If no C compiler flags were specified, use CFLAGS.
9801LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9802
9803# Allow CC to be a program name with arguments.
9804compiler=$CC
9805
9806
9807# Check for command to grab the raw symbol name followed by C symbol from nm.
9808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9809$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9810if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9811  $as_echo_n "(cached) " >&6
9812else
9813
9814# These are sane defaults that work on at least a few old systems.
9815# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9816
9817# Character class describing NM global symbol codes.
9818symcode='[BCDEGRST]'
9819
9820# Regexp to match symbols that can be accessed directly from C.
9821sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9822
9823# Define system-specific variables.
9824case $host_os in
9825aix*)
9826  symcode='[BCDT]'
9827  ;;
9828cygwin* | mingw* | pw32* | cegcc*)
9829  symcode='[ABCDGISTW]'
9830  ;;
9831hpux*)
9832  if test "$host_cpu" = ia64; then
9833    symcode='[ABCDEGRST]'
9834  fi
9835  ;;
9836irix* | nonstopux*)
9837  symcode='[BCDEGRST]'
9838  ;;
9839osf*)
9840  symcode='[BCDEGQRST]'
9841  ;;
9842solaris*)
9843  symcode='[BDRT]'
9844  ;;
9845sco3.2v5*)
9846  symcode='[DT]'
9847  ;;
9848sysv4.2uw2*)
9849  symcode='[DT]'
9850  ;;
9851sysv5* | sco5v6* | unixware* | OpenUNIX*)
9852  symcode='[ABDT]'
9853  ;;
9854sysv4)
9855  symcode='[DFNSTU]'
9856  ;;
9857esac
9858
9859# If we're using GNU nm, then use its standard symbol codes.
9860case `$NM -V 2>&1` in
9861*GNU* | *'with BFD'*)
9862  symcode='[ABCDGIRSTW]' ;;
9863esac
9864
9865# Transform an extracted symbol line into a proper C declaration.
9866# Some systems (esp. on ia64) link data and code symbols differently,
9867# so use this general approach.
9868lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9869
9870# Transform an extracted symbol line into symbol name and symbol address
9871lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9872lt_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'"
9873
9874# Handle CRLF in mingw tool chain
9875opt_cr=
9876case $build_os in
9877mingw*)
9878  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9879  ;;
9880esac
9881
9882# Try without a prefix underscore, then with it.
9883for ac_symprfx in "" "_"; do
9884
9885  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9886  symxfrm="\\1 $ac_symprfx\\2 \\2"
9887
9888  # Write the raw and C identifiers.
9889  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9890    # Fake it for dumpbin and say T for any non-static function
9891    # and D for any global variable.
9892    # Also find C++ and __fastcall symbols from MSVC++,
9893    # which start with @ or ?.
9894    lt_cv_sys_global_symbol_pipe="$AWK '"\
9895"     {last_section=section; section=\$ 3};"\
9896"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9897"     \$ 0!~/External *\|/{next};"\
9898"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9899"     {if(hide[section]) next};"\
9900"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9901"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9902"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9903"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9904"     ' prfx=^$ac_symprfx"
9905  else
9906    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9907  fi
9908  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9909
9910  # Check to see that the pipe works correctly.
9911  pipe_works=no
9912
9913  rm -f conftest*
9914  cat > conftest.$ac_ext <<_LT_EOF
9915#ifdef __cplusplus
9916extern "C" {
9917#endif
9918char nm_test_var;
9919void nm_test_func(void);
9920void nm_test_func(void){}
9921#ifdef __cplusplus
9922}
9923#endif
9924int main(){nm_test_var='a';nm_test_func();return(0);}
9925_LT_EOF
9926
9927  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9928  (eval $ac_compile) 2>&5
9929  ac_status=$?
9930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9931  test $ac_status = 0; }; then
9932    # Now try to grab the symbols.
9933    nlist=conftest.nm
9934    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9935  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9936  ac_status=$?
9937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9938  test $ac_status = 0; } && test -s "$nlist"; then
9939      # Try sorting and uniquifying the output.
9940      if sort "$nlist" | uniq > "$nlist"T; then
9941	mv -f "$nlist"T "$nlist"
9942      else
9943	rm -f "$nlist"T
9944      fi
9945
9946      # Make sure that we snagged all the symbols we need.
9947      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9948	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9949	  cat <<_LT_EOF > conftest.$ac_ext
9950/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9951#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9952/* DATA imports from DLLs on WIN32 con't be const, because runtime
9953   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9954# define LT_DLSYM_CONST
9955#elif defined(__osf__)
9956/* This system does not cope well with relocations in const data.  */
9957# define LT_DLSYM_CONST
9958#else
9959# define LT_DLSYM_CONST const
9960#endif
9961
9962#ifdef __cplusplus
9963extern "C" {
9964#endif
9965
9966_LT_EOF
9967	  # Now generate the symbol file.
9968	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9969
9970	  cat <<_LT_EOF >> conftest.$ac_ext
9971
9972/* The mapping between symbol names and symbols.  */
9973LT_DLSYM_CONST struct {
9974  const char *name;
9975  void       *address;
9976}
9977lt__PROGRAM__LTX_preloaded_symbols[] =
9978{
9979  { "@PROGRAM@", (void *) 0 },
9980_LT_EOF
9981	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9982	  cat <<\_LT_EOF >> conftest.$ac_ext
9983  {0, (void *) 0}
9984};
9985
9986/* This works around a problem in FreeBSD linker */
9987#ifdef FREEBSD_WORKAROUND
9988static const void *lt_preloaded_setup() {
9989  return lt__PROGRAM__LTX_preloaded_symbols;
9990}
9991#endif
9992
9993#ifdef __cplusplus
9994}
9995#endif
9996_LT_EOF
9997	  # Now try linking the two files.
9998	  mv conftest.$ac_objext conftstm.$ac_objext
9999	  lt_globsym_save_LIBS=$LIBS
10000	  lt_globsym_save_CFLAGS=$CFLAGS
10001	  LIBS="conftstm.$ac_objext"
10002	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10003	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10004  (eval $ac_link) 2>&5
10005  ac_status=$?
10006  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10007  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10008	    pipe_works=yes
10009	  fi
10010	  LIBS=$lt_globsym_save_LIBS
10011	  CFLAGS=$lt_globsym_save_CFLAGS
10012	else
10013	  echo "cannot find nm_test_func in $nlist" >&5
10014	fi
10015      else
10016	echo "cannot find nm_test_var in $nlist" >&5
10017      fi
10018    else
10019      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10020    fi
10021  else
10022    echo "$progname: failed program was:" >&5
10023    cat conftest.$ac_ext >&5
10024  fi
10025  rm -rf conftest* conftst*
10026
10027  # Do not use the global_symbol_pipe unless it works.
10028  if test "$pipe_works" = yes; then
10029    break
10030  else
10031    lt_cv_sys_global_symbol_pipe=
10032  fi
10033done
10034
10035fi
10036
10037if test -z "$lt_cv_sys_global_symbol_pipe"; then
10038  lt_cv_sys_global_symbol_to_cdecl=
10039fi
10040if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10042$as_echo "failed" >&6; }
10043else
10044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10045$as_echo "ok" >&6; }
10046fi
10047
10048# Response file support.
10049if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10050  nm_file_list_spec='@'
10051elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10052  nm_file_list_spec='@'
10053fi
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10082$as_echo_n "checking for sysroot... " >&6; }
10083
10084# Check whether --with-sysroot was given.
10085if test "${with_sysroot+set}" = set; then :
10086  withval=$with_sysroot;
10087else
10088  with_sysroot=no
10089fi
10090
10091
10092lt_sysroot=
10093case ${with_sysroot} in #(
10094 yes)
10095   if test "$GCC" = yes; then
10096     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10097   fi
10098   ;; #(
10099 /*)
10100   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10101   ;; #(
10102 no|'')
10103   ;; #(
10104 *)
10105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
10106$as_echo "${with_sysroot}" >&6; }
10107   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10108   ;;
10109esac
10110
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10112$as_echo "${lt_sysroot:-no}" >&6; }
10113
10114
10115
10116
10117
10118# Check whether --enable-libtool-lock was given.
10119if test "${enable_libtool_lock+set}" = set; then :
10120  enableval=$enable_libtool_lock;
10121fi
10122
10123test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10124
10125# Some flags need to be propagated to the compiler or linker for good
10126# libtool support.
10127case $host in
10128ia64-*-hpux*)
10129  # Find out which ABI we are using.
10130  echo 'int i;' > conftest.$ac_ext
10131  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10132  (eval $ac_compile) 2>&5
10133  ac_status=$?
10134  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10135  test $ac_status = 0; }; then
10136    case `/usr/bin/file conftest.$ac_objext` in
10137      *ELF-32*)
10138	HPUX_IA64_MODE="32"
10139	;;
10140      *ELF-64*)
10141	HPUX_IA64_MODE="64"
10142	;;
10143    esac
10144  fi
10145  rm -rf conftest*
10146  ;;
10147*-*-irix6*)
10148  # Find out which ABI we are using.
10149  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10150  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10151  (eval $ac_compile) 2>&5
10152  ac_status=$?
10153  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10154  test $ac_status = 0; }; then
10155    if test "$lt_cv_prog_gnu_ld" = yes; then
10156      case `/usr/bin/file conftest.$ac_objext` in
10157	*32-bit*)
10158	  LD="${LD-ld} -melf32bsmip"
10159	  ;;
10160	*N32*)
10161	  LD="${LD-ld} -melf32bmipn32"
10162	  ;;
10163	*64-bit*)
10164	  LD="${LD-ld} -melf64bmip"
10165	;;
10166      esac
10167    else
10168      case `/usr/bin/file conftest.$ac_objext` in
10169	*32-bit*)
10170	  LD="${LD-ld} -32"
10171	  ;;
10172	*N32*)
10173	  LD="${LD-ld} -n32"
10174	  ;;
10175	*64-bit*)
10176	  LD="${LD-ld} -64"
10177	  ;;
10178      esac
10179    fi
10180  fi
10181  rm -rf conftest*
10182  ;;
10183
10184x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10185s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10186  # Find out which ABI we are using.
10187  echo 'int i;' > conftest.$ac_ext
10188  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10189  (eval $ac_compile) 2>&5
10190  ac_status=$?
10191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10192  test $ac_status = 0; }; then
10193    case `/usr/bin/file conftest.o` in
10194      *32-bit*)
10195	case $host in
10196	  x86_64-*kfreebsd*-gnu)
10197	    LD="${LD-ld} -m elf_i386_fbsd"
10198	    ;;
10199	  x86_64-*linux*)
10200	    LD="${LD-ld} -m elf_i386"
10201	    ;;
10202	  ppc64-*linux*|powerpc64-*linux*)
10203	    LD="${LD-ld} -m elf32ppclinux"
10204	    ;;
10205	  s390x-*linux*)
10206	    LD="${LD-ld} -m elf_s390"
10207	    ;;
10208	  sparc64-*linux*)
10209	    LD="${LD-ld} -m elf32_sparc"
10210	    ;;
10211	esac
10212	;;
10213      *64-bit*)
10214	case $host in
10215	  x86_64-*kfreebsd*-gnu)
10216	    LD="${LD-ld} -m elf_x86_64_fbsd"
10217	    ;;
10218	  x86_64-*linux*)
10219	    LD="${LD-ld} -m elf_x86_64"
10220	    ;;
10221	  ppc*-*linux*|powerpc*-*linux*)
10222	    LD="${LD-ld} -m elf64ppc"
10223	    ;;
10224	  s390*-*linux*|s390*-*tpf*)
10225	    LD="${LD-ld} -m elf64_s390"
10226	    ;;
10227	  sparc*-*linux*)
10228	    LD="${LD-ld} -m elf64_sparc"
10229	    ;;
10230	esac
10231	;;
10232    esac
10233  fi
10234  rm -rf conftest*
10235  ;;
10236
10237*-*-sco3.2v5*)
10238  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10239  SAVE_CFLAGS="$CFLAGS"
10240  CFLAGS="$CFLAGS -belf"
10241  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10242$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10243if ${lt_cv_cc_needs_belf+:} false; then :
10244  $as_echo_n "(cached) " >&6
10245else
10246  ac_ext=c
10247ac_cpp='$CPP $CPPFLAGS'
10248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10250ac_compiler_gnu=$ac_cv_c_compiler_gnu
10251
10252     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253/* end confdefs.h.  */
10254
10255int
10256main ()
10257{
10258
10259  ;
10260  return 0;
10261}
10262_ACEOF
10263if ac_fn_c_try_link "$LINENO"; then :
10264  lt_cv_cc_needs_belf=yes
10265else
10266  lt_cv_cc_needs_belf=no
10267fi
10268rm -f core conftest.err conftest.$ac_objext \
10269    conftest$ac_exeext conftest.$ac_ext
10270     ac_ext=c
10271ac_cpp='$CPP $CPPFLAGS'
10272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10274ac_compiler_gnu=$ac_cv_c_compiler_gnu
10275
10276fi
10277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10278$as_echo "$lt_cv_cc_needs_belf" >&6; }
10279  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10280    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10281    CFLAGS="$SAVE_CFLAGS"
10282  fi
10283  ;;
10284sparc*-*solaris*)
10285  # Find out which ABI we are using.
10286  echo 'int i;' > conftest.$ac_ext
10287  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10288  (eval $ac_compile) 2>&5
10289  ac_status=$?
10290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10291  test $ac_status = 0; }; then
10292    case `/usr/bin/file conftest.o` in
10293    *64-bit*)
10294      case $lt_cv_prog_gnu_ld in
10295      yes*) LD="${LD-ld} -m elf64_sparc" ;;
10296      *)
10297	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10298	  LD="${LD-ld} -64"
10299	fi
10300	;;
10301      esac
10302      ;;
10303    esac
10304  fi
10305  rm -rf conftest*
10306  ;;
10307esac
10308
10309need_locks="$enable_libtool_lock"
10310
10311if test -n "$ac_tool_prefix"; then
10312  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10313set dummy ${ac_tool_prefix}mt; ac_word=$2
10314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10315$as_echo_n "checking for $ac_word... " >&6; }
10316if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10317  $as_echo_n "(cached) " >&6
10318else
10319  if test -n "$MANIFEST_TOOL"; then
10320  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10321else
10322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10323for as_dir in $PATH
10324do
10325  IFS=$as_save_IFS
10326  test -z "$as_dir" && as_dir=.
10327    for ac_exec_ext in '' $ac_executable_extensions; do
10328  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10329    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10331    break 2
10332  fi
10333done
10334  done
10335IFS=$as_save_IFS
10336
10337fi
10338fi
10339MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10340if test -n "$MANIFEST_TOOL"; then
10341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10342$as_echo "$MANIFEST_TOOL" >&6; }
10343else
10344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345$as_echo "no" >&6; }
10346fi
10347
10348
10349fi
10350if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10351  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10352  # Extract the first word of "mt", so it can be a program name with args.
10353set dummy mt; ac_word=$2
10354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10355$as_echo_n "checking for $ac_word... " >&6; }
10356if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10357  $as_echo_n "(cached) " >&6
10358else
10359  if test -n "$ac_ct_MANIFEST_TOOL"; then
10360  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10361else
10362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363for as_dir in $PATH
10364do
10365  IFS=$as_save_IFS
10366  test -z "$as_dir" && as_dir=.
10367    for ac_exec_ext in '' $ac_executable_extensions; do
10368  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10369    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10371    break 2
10372  fi
10373done
10374  done
10375IFS=$as_save_IFS
10376
10377fi
10378fi
10379ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10380if test -n "$ac_ct_MANIFEST_TOOL"; then
10381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10382$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10383else
10384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10385$as_echo "no" >&6; }
10386fi
10387
10388  if test "x$ac_ct_MANIFEST_TOOL" = x; then
10389    MANIFEST_TOOL=":"
10390  else
10391    case $cross_compiling:$ac_tool_warned in
10392yes:)
10393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10395ac_tool_warned=yes ;;
10396esac
10397    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10398  fi
10399else
10400  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10401fi
10402
10403test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10405$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10406if ${lt_cv_path_mainfest_tool+:} false; then :
10407  $as_echo_n "(cached) " >&6
10408else
10409  lt_cv_path_mainfest_tool=no
10410  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10411  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10412  cat conftest.err >&5
10413  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10414    lt_cv_path_mainfest_tool=yes
10415  fi
10416  rm -f conftest*
10417fi
10418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10419$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10420if test "x$lt_cv_path_mainfest_tool" != xyes; then
10421  MANIFEST_TOOL=:
10422fi
10423
10424
10425
10426
10427
10428
10429  case $host_os in
10430    rhapsody* | darwin*)
10431    if test -n "$ac_tool_prefix"; then
10432  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10433set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10435$as_echo_n "checking for $ac_word... " >&6; }
10436if ${ac_cv_prog_DSYMUTIL+:} false; then :
10437  $as_echo_n "(cached) " >&6
10438else
10439  if test -n "$DSYMUTIL"; then
10440  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10441else
10442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10443for as_dir in $PATH
10444do
10445  IFS=$as_save_IFS
10446  test -z "$as_dir" && as_dir=.
10447    for ac_exec_ext in '' $ac_executable_extensions; do
10448  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10449    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10450    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10451    break 2
10452  fi
10453done
10454  done
10455IFS=$as_save_IFS
10456
10457fi
10458fi
10459DSYMUTIL=$ac_cv_prog_DSYMUTIL
10460if test -n "$DSYMUTIL"; then
10461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10462$as_echo "$DSYMUTIL" >&6; }
10463else
10464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10465$as_echo "no" >&6; }
10466fi
10467
10468
10469fi
10470if test -z "$ac_cv_prog_DSYMUTIL"; then
10471  ac_ct_DSYMUTIL=$DSYMUTIL
10472  # Extract the first word of "dsymutil", so it can be a program name with args.
10473set dummy dsymutil; ac_word=$2
10474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10475$as_echo_n "checking for $ac_word... " >&6; }
10476if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10477  $as_echo_n "(cached) " >&6
10478else
10479  if test -n "$ac_ct_DSYMUTIL"; then
10480  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10481else
10482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10483for as_dir in $PATH
10484do
10485  IFS=$as_save_IFS
10486  test -z "$as_dir" && as_dir=.
10487    for ac_exec_ext in '' $ac_executable_extensions; do
10488  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10489    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10490    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10491    break 2
10492  fi
10493done
10494  done
10495IFS=$as_save_IFS
10496
10497fi
10498fi
10499ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10500if test -n "$ac_ct_DSYMUTIL"; then
10501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10502$as_echo "$ac_ct_DSYMUTIL" >&6; }
10503else
10504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505$as_echo "no" >&6; }
10506fi
10507
10508  if test "x$ac_ct_DSYMUTIL" = x; then
10509    DSYMUTIL=":"
10510  else
10511    case $cross_compiling:$ac_tool_warned in
10512yes:)
10513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10515ac_tool_warned=yes ;;
10516esac
10517    DSYMUTIL=$ac_ct_DSYMUTIL
10518  fi
10519else
10520  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10521fi
10522
10523    if test -n "$ac_tool_prefix"; then
10524  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10525set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10527$as_echo_n "checking for $ac_word... " >&6; }
10528if ${ac_cv_prog_NMEDIT+:} false; then :
10529  $as_echo_n "(cached) " >&6
10530else
10531  if test -n "$NMEDIT"; then
10532  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10533else
10534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10535for as_dir in $PATH
10536do
10537  IFS=$as_save_IFS
10538  test -z "$as_dir" && as_dir=.
10539    for ac_exec_ext in '' $ac_executable_extensions; do
10540  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10541    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10543    break 2
10544  fi
10545done
10546  done
10547IFS=$as_save_IFS
10548
10549fi
10550fi
10551NMEDIT=$ac_cv_prog_NMEDIT
10552if test -n "$NMEDIT"; then
10553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10554$as_echo "$NMEDIT" >&6; }
10555else
10556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10557$as_echo "no" >&6; }
10558fi
10559
10560
10561fi
10562if test -z "$ac_cv_prog_NMEDIT"; then
10563  ac_ct_NMEDIT=$NMEDIT
10564  # Extract the first word of "nmedit", so it can be a program name with args.
10565set dummy nmedit; ac_word=$2
10566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10567$as_echo_n "checking for $ac_word... " >&6; }
10568if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10569  $as_echo_n "(cached) " >&6
10570else
10571  if test -n "$ac_ct_NMEDIT"; then
10572  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10573else
10574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575for as_dir in $PATH
10576do
10577  IFS=$as_save_IFS
10578  test -z "$as_dir" && as_dir=.
10579    for ac_exec_ext in '' $ac_executable_extensions; do
10580  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10581    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10582    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10583    break 2
10584  fi
10585done
10586  done
10587IFS=$as_save_IFS
10588
10589fi
10590fi
10591ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10592if test -n "$ac_ct_NMEDIT"; then
10593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10594$as_echo "$ac_ct_NMEDIT" >&6; }
10595else
10596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10597$as_echo "no" >&6; }
10598fi
10599
10600  if test "x$ac_ct_NMEDIT" = x; then
10601    NMEDIT=":"
10602  else
10603    case $cross_compiling:$ac_tool_warned in
10604yes:)
10605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10607ac_tool_warned=yes ;;
10608esac
10609    NMEDIT=$ac_ct_NMEDIT
10610  fi
10611else
10612  NMEDIT="$ac_cv_prog_NMEDIT"
10613fi
10614
10615    if test -n "$ac_tool_prefix"; then
10616  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10617set dummy ${ac_tool_prefix}lipo; ac_word=$2
10618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10619$as_echo_n "checking for $ac_word... " >&6; }
10620if ${ac_cv_prog_LIPO+:} false; then :
10621  $as_echo_n "(cached) " >&6
10622else
10623  if test -n "$LIPO"; then
10624  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10625else
10626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10627for as_dir in $PATH
10628do
10629  IFS=$as_save_IFS
10630  test -z "$as_dir" && as_dir=.
10631    for ac_exec_ext in '' $ac_executable_extensions; do
10632  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10633    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10635    break 2
10636  fi
10637done
10638  done
10639IFS=$as_save_IFS
10640
10641fi
10642fi
10643LIPO=$ac_cv_prog_LIPO
10644if test -n "$LIPO"; then
10645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10646$as_echo "$LIPO" >&6; }
10647else
10648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10649$as_echo "no" >&6; }
10650fi
10651
10652
10653fi
10654if test -z "$ac_cv_prog_LIPO"; then
10655  ac_ct_LIPO=$LIPO
10656  # Extract the first word of "lipo", so it can be a program name with args.
10657set dummy lipo; ac_word=$2
10658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10659$as_echo_n "checking for $ac_word... " >&6; }
10660if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10661  $as_echo_n "(cached) " >&6
10662else
10663  if test -n "$ac_ct_LIPO"; then
10664  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10665else
10666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10667for as_dir in $PATH
10668do
10669  IFS=$as_save_IFS
10670  test -z "$as_dir" && as_dir=.
10671    for ac_exec_ext in '' $ac_executable_extensions; do
10672  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10673    ac_cv_prog_ac_ct_LIPO="lipo"
10674    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10675    break 2
10676  fi
10677done
10678  done
10679IFS=$as_save_IFS
10680
10681fi
10682fi
10683ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10684if test -n "$ac_ct_LIPO"; then
10685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10686$as_echo "$ac_ct_LIPO" >&6; }
10687else
10688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10689$as_echo "no" >&6; }
10690fi
10691
10692  if test "x$ac_ct_LIPO" = x; then
10693    LIPO=":"
10694  else
10695    case $cross_compiling:$ac_tool_warned in
10696yes:)
10697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10699ac_tool_warned=yes ;;
10700esac
10701    LIPO=$ac_ct_LIPO
10702  fi
10703else
10704  LIPO="$ac_cv_prog_LIPO"
10705fi
10706
10707    if test -n "$ac_tool_prefix"; then
10708  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10709set dummy ${ac_tool_prefix}otool; ac_word=$2
10710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10711$as_echo_n "checking for $ac_word... " >&6; }
10712if ${ac_cv_prog_OTOOL+:} false; then :
10713  $as_echo_n "(cached) " >&6
10714else
10715  if test -n "$OTOOL"; then
10716  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10717else
10718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719for as_dir in $PATH
10720do
10721  IFS=$as_save_IFS
10722  test -z "$as_dir" && as_dir=.
10723    for ac_exec_ext in '' $ac_executable_extensions; do
10724  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10725    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10726    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10727    break 2
10728  fi
10729done
10730  done
10731IFS=$as_save_IFS
10732
10733fi
10734fi
10735OTOOL=$ac_cv_prog_OTOOL
10736if test -n "$OTOOL"; then
10737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10738$as_echo "$OTOOL" >&6; }
10739else
10740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741$as_echo "no" >&6; }
10742fi
10743
10744
10745fi
10746if test -z "$ac_cv_prog_OTOOL"; then
10747  ac_ct_OTOOL=$OTOOL
10748  # Extract the first word of "otool", so it can be a program name with args.
10749set dummy otool; 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_ac_ct_OTOOL+:} false; then :
10753  $as_echo_n "(cached) " >&6
10754else
10755  if test -n "$ac_ct_OTOOL"; then
10756  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10765    ac_cv_prog_ac_ct_OTOOL="otool"
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
10775ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10776if test -n "$ac_ct_OTOOL"; then
10777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10778$as_echo "$ac_ct_OTOOL" >&6; }
10779else
10780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10781$as_echo "no" >&6; }
10782fi
10783
10784  if test "x$ac_ct_OTOOL" = x; then
10785    OTOOL=":"
10786  else
10787    case $cross_compiling:$ac_tool_warned in
10788yes:)
10789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10791ac_tool_warned=yes ;;
10792esac
10793    OTOOL=$ac_ct_OTOOL
10794  fi
10795else
10796  OTOOL="$ac_cv_prog_OTOOL"
10797fi
10798
10799    if test -n "$ac_tool_prefix"; then
10800  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10801set dummy ${ac_tool_prefix}otool64; ac_word=$2
10802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10803$as_echo_n "checking for $ac_word... " >&6; }
10804if ${ac_cv_prog_OTOOL64+:} false; then :
10805  $as_echo_n "(cached) " >&6
10806else
10807  if test -n "$OTOOL64"; then
10808  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10809else
10810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10811for as_dir in $PATH
10812do
10813  IFS=$as_save_IFS
10814  test -z "$as_dir" && as_dir=.
10815    for ac_exec_ext in '' $ac_executable_extensions; do
10816  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10817    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10819    break 2
10820  fi
10821done
10822  done
10823IFS=$as_save_IFS
10824
10825fi
10826fi
10827OTOOL64=$ac_cv_prog_OTOOL64
10828if test -n "$OTOOL64"; then
10829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10830$as_echo "$OTOOL64" >&6; }
10831else
10832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10833$as_echo "no" >&6; }
10834fi
10835
10836
10837fi
10838if test -z "$ac_cv_prog_OTOOL64"; then
10839  ac_ct_OTOOL64=$OTOOL64
10840  # Extract the first word of "otool64", so it can be a program name with args.
10841set dummy otool64; ac_word=$2
10842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10843$as_echo_n "checking for $ac_word... " >&6; }
10844if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10845  $as_echo_n "(cached) " >&6
10846else
10847  if test -n "$ac_ct_OTOOL64"; then
10848  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10849else
10850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10851for as_dir in $PATH
10852do
10853  IFS=$as_save_IFS
10854  test -z "$as_dir" && as_dir=.
10855    for ac_exec_ext in '' $ac_executable_extensions; do
10856  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10857    ac_cv_prog_ac_ct_OTOOL64="otool64"
10858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10859    break 2
10860  fi
10861done
10862  done
10863IFS=$as_save_IFS
10864
10865fi
10866fi
10867ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10868if test -n "$ac_ct_OTOOL64"; then
10869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10870$as_echo "$ac_ct_OTOOL64" >&6; }
10871else
10872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10873$as_echo "no" >&6; }
10874fi
10875
10876  if test "x$ac_ct_OTOOL64" = x; then
10877    OTOOL64=":"
10878  else
10879    case $cross_compiling:$ac_tool_warned in
10880yes:)
10881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10883ac_tool_warned=yes ;;
10884esac
10885    OTOOL64=$ac_ct_OTOOL64
10886  fi
10887else
10888  OTOOL64="$ac_cv_prog_OTOOL64"
10889fi
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10918$as_echo_n "checking for -single_module linker flag... " >&6; }
10919if ${lt_cv_apple_cc_single_mod+:} false; then :
10920  $as_echo_n "(cached) " >&6
10921else
10922  lt_cv_apple_cc_single_mod=no
10923      if test -z "${LT_MULTI_MODULE}"; then
10924	# By default we will add the -single_module flag. You can override
10925	# by either setting the environment variable LT_MULTI_MODULE
10926	# non-empty at configure time, or by adding -multi_module to the
10927	# link flags.
10928	rm -rf libconftest.dylib*
10929	echo "int foo(void){return 1;}" > conftest.c
10930	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10931-dynamiclib -Wl,-single_module conftest.c" >&5
10932	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10933	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10934        _lt_result=$?
10935	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10936	  lt_cv_apple_cc_single_mod=yes
10937	else
10938	  cat conftest.err >&5
10939	fi
10940	rm -rf libconftest.dylib*
10941	rm -f conftest.*
10942      fi
10943fi
10944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10945$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10946    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10947$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10948if ${lt_cv_ld_exported_symbols_list+:} false; then :
10949  $as_echo_n "(cached) " >&6
10950else
10951  lt_cv_ld_exported_symbols_list=no
10952      save_LDFLAGS=$LDFLAGS
10953      echo "_main" > conftest.sym
10954      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10955      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956/* end confdefs.h.  */
10957
10958int
10959main ()
10960{
10961
10962  ;
10963  return 0;
10964}
10965_ACEOF
10966if ac_fn_c_try_link "$LINENO"; then :
10967  lt_cv_ld_exported_symbols_list=yes
10968else
10969  lt_cv_ld_exported_symbols_list=no
10970fi
10971rm -f core conftest.err conftest.$ac_objext \
10972    conftest$ac_exeext conftest.$ac_ext
10973	LDFLAGS="$save_LDFLAGS"
10974
10975fi
10976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10977$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10978    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10979$as_echo_n "checking for -force_load linker flag... " >&6; }
10980if ${lt_cv_ld_force_load+:} false; then :
10981  $as_echo_n "(cached) " >&6
10982else
10983  lt_cv_ld_force_load=no
10984      cat > conftest.c << _LT_EOF
10985int forced_loaded() { return 2;}
10986_LT_EOF
10987      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10988      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10989      echo "$AR cru libconftest.a conftest.o" >&5
10990      $AR cru libconftest.a conftest.o 2>&5
10991      echo "$RANLIB libconftest.a" >&5
10992      $RANLIB libconftest.a 2>&5
10993      cat > conftest.c << _LT_EOF
10994int main() { return 0;}
10995_LT_EOF
10996      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10997      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10998      _lt_result=$?
10999      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11000	lt_cv_ld_force_load=yes
11001      else
11002	cat conftest.err >&5
11003      fi
11004        rm -f conftest.err libconftest.a conftest conftest.c
11005        rm -rf conftest.dSYM
11006
11007fi
11008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11009$as_echo "$lt_cv_ld_force_load" >&6; }
11010    case $host_os in
11011    rhapsody* | darwin1.[012])
11012      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11013    darwin1.*)
11014      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11015    darwin*) # darwin 5.x on
11016      # if running on 10.5 or later, the deployment target defaults
11017      # to the OS version, if on x86, and 10.4, the deployment
11018      # target defaults to 10.4. Don't you love it?
11019      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11020	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11021	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11022	10.[012]*)
11023	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11024	10.*)
11025	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11026      esac
11027    ;;
11028  esac
11029    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11030      _lt_dar_single_mod='$single_module'
11031    fi
11032    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11033      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11034    else
11035      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11036    fi
11037    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
11038      _lt_dsymutil='~$DSYMUTIL $lib || :'
11039    else
11040      _lt_dsymutil=
11041    fi
11042    ;;
11043  esac
11044
11045for ac_header in dlfcn.h
11046do :
11047  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11048"
11049if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11050  cat >>confdefs.h <<_ACEOF
11051#define HAVE_DLFCN_H 1
11052_ACEOF
11053
11054fi
11055
11056done
11057
11058
11059
11060
11061func_stripname_cnf ()
11062{
11063  case ${2} in
11064  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11065  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11066  esac
11067} # func_stripname_cnf
11068
11069
11070
11071
11072
11073# Set options
11074
11075
11076
11077        enable_dlopen=no
11078
11079
11080  enable_win32_dll=no
11081
11082
11083
11084  # Check whether --enable-static was given.
11085if test "${enable_static+set}" = set; then :
11086  enableval=$enable_static; p=${PACKAGE-default}
11087    case $enableval in
11088    yes) enable_static=yes ;;
11089    no) enable_static=no ;;
11090    *)
11091     enable_static=no
11092      # Look at the argument we got.  We use all the common list separators.
11093      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11094      for pkg in $enableval; do
11095	IFS="$lt_save_ifs"
11096	if test "X$pkg" = "X$p"; then
11097	  enable_static=yes
11098	fi
11099      done
11100      IFS="$lt_save_ifs"
11101      ;;
11102    esac
11103else
11104  enable_static=yes
11105fi
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116# Check whether --with-pic was given.
11117if test "${with_pic+set}" = set; then :
11118  withval=$with_pic; pic_mode="$withval"
11119else
11120  pic_mode=default
11121fi
11122
11123
11124test -z "$pic_mode" && pic_mode=default
11125
11126
11127
11128
11129
11130
11131
11132  # Check whether --enable-fast-install was given.
11133if test "${enable_fast_install+set}" = set; then :
11134  enableval=$enable_fast_install; p=${PACKAGE-default}
11135    case $enableval in
11136    yes) enable_fast_install=yes ;;
11137    no) enable_fast_install=no ;;
11138    *)
11139      enable_fast_install=no
11140      # Look at the argument we got.  We use all the common list separators.
11141      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11142      for pkg in $enableval; do
11143	IFS="$lt_save_ifs"
11144	if test "X$pkg" = "X$p"; then
11145	  enable_fast_install=yes
11146	fi
11147      done
11148      IFS="$lt_save_ifs"
11149      ;;
11150    esac
11151else
11152  enable_fast_install=yes
11153fi
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165# This can be used to rebuild libtool when needed
11166LIBTOOL_DEPS="$ltmain"
11167
11168# Always use our own libtool.
11169LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196test -z "$LN_S" && LN_S="ln -s"
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211if test -n "${ZSH_VERSION+set}" ; then
11212   setopt NO_GLOB_SUBST
11213fi
11214
11215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11216$as_echo_n "checking for objdir... " >&6; }
11217if ${lt_cv_objdir+:} false; then :
11218  $as_echo_n "(cached) " >&6
11219else
11220  rm -f .libs 2>/dev/null
11221mkdir .libs 2>/dev/null
11222if test -d .libs; then
11223  lt_cv_objdir=.libs
11224else
11225  # MS-DOS does not allow filenames that begin with a dot.
11226  lt_cv_objdir=_libs
11227fi
11228rmdir .libs 2>/dev/null
11229fi
11230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11231$as_echo "$lt_cv_objdir" >&6; }
11232objdir=$lt_cv_objdir
11233
11234
11235
11236
11237
11238cat >>confdefs.h <<_ACEOF
11239#define LT_OBJDIR "$lt_cv_objdir/"
11240_ACEOF
11241
11242
11243
11244
11245case $host_os in
11246aix3*)
11247  # AIX sometimes has problems with the GCC collect2 program.  For some
11248  # reason, if we set the COLLECT_NAMES environment variable, the problems
11249  # vanish in a puff of smoke.
11250  if test "X${COLLECT_NAMES+set}" != Xset; then
11251    COLLECT_NAMES=
11252    export COLLECT_NAMES
11253  fi
11254  ;;
11255esac
11256
11257# Global variables:
11258ofile=libtool
11259can_build_shared=yes
11260
11261# All known linkers require a `.a' archive for static linking (except MSVC,
11262# which needs '.lib').
11263libext=a
11264
11265with_gnu_ld="$lt_cv_prog_gnu_ld"
11266
11267old_CC="$CC"
11268old_CFLAGS="$CFLAGS"
11269
11270# Set sane defaults for various variables
11271test -z "$CC" && CC=cc
11272test -z "$LTCC" && LTCC=$CC
11273test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11274test -z "$LD" && LD=ld
11275test -z "$ac_objext" && ac_objext=o
11276
11277for cc_temp in $compiler""; do
11278  case $cc_temp in
11279    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11280    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11281    \-*) ;;
11282    *) break;;
11283  esac
11284done
11285cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11286
11287
11288# Only perform the check for file, if the check method requires it
11289test -z "$MAGIC_CMD" && MAGIC_CMD=file
11290case $deplibs_check_method in
11291file_magic*)
11292  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11293    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11294$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11295if ${lt_cv_path_MAGIC_CMD+:} false; then :
11296  $as_echo_n "(cached) " >&6
11297else
11298  case $MAGIC_CMD in
11299[\\/*] |  ?:[\\/]*)
11300  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11301  ;;
11302*)
11303  lt_save_MAGIC_CMD="$MAGIC_CMD"
11304  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11305  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11306  for ac_dir in $ac_dummy; do
11307    IFS="$lt_save_ifs"
11308    test -z "$ac_dir" && ac_dir=.
11309    if test -f $ac_dir/${ac_tool_prefix}file; then
11310      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11311      if test -n "$file_magic_test_file"; then
11312	case $deplibs_check_method in
11313	"file_magic "*)
11314	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11315	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11316	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11317	    $EGREP "$file_magic_regex" > /dev/null; then
11318	    :
11319	  else
11320	    cat <<_LT_EOF 1>&2
11321
11322*** Warning: the command libtool uses to detect shared libraries,
11323*** $file_magic_cmd, produces output that libtool cannot recognize.
11324*** The result is that libtool may fail to recognize shared libraries
11325*** as such.  This will affect the creation of libtool libraries that
11326*** depend on shared libraries, but programs linked with such libtool
11327*** libraries will work regardless of this problem.  Nevertheless, you
11328*** may want to report the problem to your system manager and/or to
11329*** bug-libtool@gnu.org
11330
11331_LT_EOF
11332	  fi ;;
11333	esac
11334      fi
11335      break
11336    fi
11337  done
11338  IFS="$lt_save_ifs"
11339  MAGIC_CMD="$lt_save_MAGIC_CMD"
11340  ;;
11341esac
11342fi
11343
11344MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11345if test -n "$MAGIC_CMD"; then
11346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11347$as_echo "$MAGIC_CMD" >&6; }
11348else
11349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350$as_echo "no" >&6; }
11351fi
11352
11353
11354
11355
11356
11357if test -z "$lt_cv_path_MAGIC_CMD"; then
11358  if test -n "$ac_tool_prefix"; then
11359    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11360$as_echo_n "checking for file... " >&6; }
11361if ${lt_cv_path_MAGIC_CMD+:} false; then :
11362  $as_echo_n "(cached) " >&6
11363else
11364  case $MAGIC_CMD in
11365[\\/*] |  ?:[\\/]*)
11366  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11367  ;;
11368*)
11369  lt_save_MAGIC_CMD="$MAGIC_CMD"
11370  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11371  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11372  for ac_dir in $ac_dummy; do
11373    IFS="$lt_save_ifs"
11374    test -z "$ac_dir" && ac_dir=.
11375    if test -f $ac_dir/file; then
11376      lt_cv_path_MAGIC_CMD="$ac_dir/file"
11377      if test -n "$file_magic_test_file"; then
11378	case $deplibs_check_method in
11379	"file_magic "*)
11380	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11381	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11382	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11383	    $EGREP "$file_magic_regex" > /dev/null; then
11384	    :
11385	  else
11386	    cat <<_LT_EOF 1>&2
11387
11388*** Warning: the command libtool uses to detect shared libraries,
11389*** $file_magic_cmd, produces output that libtool cannot recognize.
11390*** The result is that libtool may fail to recognize shared libraries
11391*** as such.  This will affect the creation of libtool libraries that
11392*** depend on shared libraries, but programs linked with such libtool
11393*** libraries will work regardless of this problem.  Nevertheless, you
11394*** may want to report the problem to your system manager and/or to
11395*** bug-libtool@gnu.org
11396
11397_LT_EOF
11398	  fi ;;
11399	esac
11400      fi
11401      break
11402    fi
11403  done
11404  IFS="$lt_save_ifs"
11405  MAGIC_CMD="$lt_save_MAGIC_CMD"
11406  ;;
11407esac
11408fi
11409
11410MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11411if test -n "$MAGIC_CMD"; then
11412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11413$as_echo "$MAGIC_CMD" >&6; }
11414else
11415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416$as_echo "no" >&6; }
11417fi
11418
11419
11420  else
11421    MAGIC_CMD=:
11422  fi
11423fi
11424
11425  fi
11426  ;;
11427esac
11428
11429# Use C for the default configuration in the libtool script
11430
11431lt_save_CC="$CC"
11432ac_ext=c
11433ac_cpp='$CPP $CPPFLAGS'
11434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11436ac_compiler_gnu=$ac_cv_c_compiler_gnu
11437
11438
11439# Source file extension for C test sources.
11440ac_ext=c
11441
11442# Object file extension for compiled C test sources.
11443objext=o
11444objext=$objext
11445
11446# Code to be used in simple compile tests
11447lt_simple_compile_test_code="int some_variable = 0;"
11448
11449# Code to be used in simple link tests
11450lt_simple_link_test_code='int main(){return(0);}'
11451
11452
11453
11454
11455
11456
11457
11458# If no C compiler was specified, use CC.
11459LTCC=${LTCC-"$CC"}
11460
11461# If no C compiler flags were specified, use CFLAGS.
11462LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11463
11464# Allow CC to be a program name with arguments.
11465compiler=$CC
11466
11467# Save the default compiler, since it gets overwritten when the other
11468# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11469compiler_DEFAULT=$CC
11470
11471# save warnings/boilerplate of simple test code
11472ac_outfile=conftest.$ac_objext
11473echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11474eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11475_lt_compiler_boilerplate=`cat conftest.err`
11476$RM conftest*
11477
11478ac_outfile=conftest.$ac_objext
11479echo "$lt_simple_link_test_code" >conftest.$ac_ext
11480eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11481_lt_linker_boilerplate=`cat conftest.err`
11482$RM -r conftest*
11483
11484
11485## CAVEAT EMPTOR:
11486## There is no encapsulation within the following macros, do not change
11487## the running order or otherwise move them around unless you know exactly
11488## what you are doing...
11489if test -n "$compiler"; then
11490
11491lt_prog_compiler_no_builtin_flag=
11492
11493if test "$GCC" = yes; then
11494  case $cc_basename in
11495  nvcc*)
11496    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11497  *)
11498    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11499  esac
11500
11501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11502$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11503if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11504  $as_echo_n "(cached) " >&6
11505else
11506  lt_cv_prog_compiler_rtti_exceptions=no
11507   ac_outfile=conftest.$ac_objext
11508   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11509   lt_compiler_flag="-fno-rtti -fno-exceptions"
11510   # Insert the option either (1) after the last *FLAGS variable, or
11511   # (2) before a word containing "conftest.", or (3) at the end.
11512   # Note that $ac_compile itself does not contain backslashes and begins
11513   # with a dollar sign (not a hyphen), so the echo should work correctly.
11514   # The option is referenced via a variable to avoid confusing sed.
11515   lt_compile=`echo "$ac_compile" | $SED \
11516   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11517   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11518   -e 's:$: $lt_compiler_flag:'`
11519   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11520   (eval "$lt_compile" 2>conftest.err)
11521   ac_status=$?
11522   cat conftest.err >&5
11523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524   if (exit $ac_status) && test -s "$ac_outfile"; then
11525     # The compiler can only warn and ignore the option if not recognized
11526     # So say no if there are warnings other than the usual output.
11527     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11528     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11529     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11530       lt_cv_prog_compiler_rtti_exceptions=yes
11531     fi
11532   fi
11533   $RM conftest*
11534
11535fi
11536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11537$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11538
11539if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11540    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11541else
11542    :
11543fi
11544
11545fi
11546
11547
11548
11549
11550
11551
11552  lt_prog_compiler_wl=
11553lt_prog_compiler_pic=
11554lt_prog_compiler_static=
11555
11556
11557  if test "$GCC" = yes; then
11558    lt_prog_compiler_wl='-Wl,'
11559    lt_prog_compiler_static='-static'
11560
11561    case $host_os in
11562      aix*)
11563      # All AIX code is PIC.
11564      if test "$host_cpu" = ia64; then
11565	# AIX 5 now supports IA64 processor
11566	lt_prog_compiler_static='-Bstatic'
11567      fi
11568      ;;
11569
11570    amigaos*)
11571      case $host_cpu in
11572      powerpc)
11573            # see comment about AmigaOS4 .so support
11574            lt_prog_compiler_pic='-fPIC'
11575        ;;
11576      m68k)
11577            # FIXME: we need at least 68020 code to build shared libraries, but
11578            # adding the `-m68020' flag to GCC prevents building anything better,
11579            # like `-m68040'.
11580            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11581        ;;
11582      esac
11583      ;;
11584
11585    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11586      # PIC is the default for these OSes.
11587      ;;
11588
11589    mingw* | cygwin* | pw32* | os2* | cegcc*)
11590      # This hack is so that the source file can tell whether it is being
11591      # built for inclusion in a dll (and should export symbols for example).
11592      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11593      # (--disable-auto-import) libraries
11594      lt_prog_compiler_pic='-DDLL_EXPORT'
11595      ;;
11596
11597    darwin* | rhapsody*)
11598      # PIC is the default on this platform
11599      # Common symbols not allowed in MH_DYLIB files
11600      lt_prog_compiler_pic='-fno-common'
11601      ;;
11602
11603    haiku*)
11604      # PIC is the default for Haiku.
11605      # The "-static" flag exists, but is broken.
11606      lt_prog_compiler_static=
11607      ;;
11608
11609    hpux*)
11610      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11611      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11612      # sets the default TLS model and affects inlining.
11613      case $host_cpu in
11614      hppa*64*)
11615	# +Z the default
11616	;;
11617      *)
11618	lt_prog_compiler_pic='-fPIC'
11619	;;
11620      esac
11621      ;;
11622
11623    interix[3-9]*)
11624      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11625      # Instead, we relocate shared libraries at runtime.
11626      ;;
11627
11628    msdosdjgpp*)
11629      # Just because we use GCC doesn't mean we suddenly get shared libraries
11630      # on systems that don't support them.
11631      lt_prog_compiler_can_build_shared=no
11632      enable_shared=no
11633      ;;
11634
11635    *nto* | *qnx*)
11636      # QNX uses GNU C++, but need to define -shared option too, otherwise
11637      # it will coredump.
11638      lt_prog_compiler_pic='-fPIC -shared'
11639      ;;
11640
11641    sysv4*MP*)
11642      if test -d /usr/nec; then
11643	lt_prog_compiler_pic=-Kconform_pic
11644      fi
11645      ;;
11646
11647    *)
11648      lt_prog_compiler_pic='-fPIC'
11649      ;;
11650    esac
11651
11652    case $cc_basename in
11653    nvcc*) # Cuda Compiler Driver 2.2
11654      lt_prog_compiler_wl='-Xlinker '
11655      lt_prog_compiler_pic='-Xcompiler -fPIC'
11656      ;;
11657    esac
11658  else
11659    # PORTME Check for flag to pass linker flags through the system compiler.
11660    case $host_os in
11661    aix*)
11662      lt_prog_compiler_wl='-Wl,'
11663      if test "$host_cpu" = ia64; then
11664	# AIX 5 now supports IA64 processor
11665	lt_prog_compiler_static='-Bstatic'
11666      else
11667	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11668      fi
11669      ;;
11670
11671    mingw* | cygwin* | pw32* | os2* | cegcc*)
11672      # This hack is so that the source file can tell whether it is being
11673      # built for inclusion in a dll (and should export symbols for example).
11674      lt_prog_compiler_pic='-DDLL_EXPORT'
11675      ;;
11676
11677    hpux9* | hpux10* | hpux11*)
11678      lt_prog_compiler_wl='-Wl,'
11679      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11680      # not for PA HP-UX.
11681      case $host_cpu in
11682      hppa*64*|ia64*)
11683	# +Z the default
11684	;;
11685      *)
11686	lt_prog_compiler_pic='+Z'
11687	;;
11688      esac
11689      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11690      lt_prog_compiler_static='${wl}-a ${wl}archive'
11691      ;;
11692
11693    irix5* | irix6* | nonstopux*)
11694      lt_prog_compiler_wl='-Wl,'
11695      # PIC (with -KPIC) is the default.
11696      lt_prog_compiler_static='-non_shared'
11697      ;;
11698
11699    linux* | k*bsd*-gnu | kopensolaris*-gnu)
11700      case $cc_basename in
11701      # old Intel for x86_64 which still supported -KPIC.
11702      ecc*)
11703	lt_prog_compiler_wl='-Wl,'
11704	lt_prog_compiler_pic='-KPIC'
11705	lt_prog_compiler_static='-static'
11706        ;;
11707      # icc used to be incompatible with GCC.
11708      # ICC 10 doesn't accept -KPIC any more.
11709      icc* | ifort*)
11710	lt_prog_compiler_wl='-Wl,'
11711	lt_prog_compiler_pic='-fPIC'
11712	lt_prog_compiler_static='-static'
11713        ;;
11714      # Lahey Fortran 8.1.
11715      lf95*)
11716	lt_prog_compiler_wl='-Wl,'
11717	lt_prog_compiler_pic='--shared'
11718	lt_prog_compiler_static='--static'
11719	;;
11720      nagfor*)
11721	# NAG Fortran compiler
11722	lt_prog_compiler_wl='-Wl,-Wl,,'
11723	lt_prog_compiler_pic='-PIC'
11724	lt_prog_compiler_static='-Bstatic'
11725	;;
11726      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11727        # Portland Group compilers (*not* the Pentium gcc compiler,
11728	# which looks to be a dead project)
11729	lt_prog_compiler_wl='-Wl,'
11730	lt_prog_compiler_pic='-fpic'
11731	lt_prog_compiler_static='-Bstatic'
11732        ;;
11733      ccc*)
11734        lt_prog_compiler_wl='-Wl,'
11735        # All Alpha code is PIC.
11736        lt_prog_compiler_static='-non_shared'
11737        ;;
11738      xl* | bgxl* | bgf* | mpixl*)
11739	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11740	lt_prog_compiler_wl='-Wl,'
11741	lt_prog_compiler_pic='-qpic'
11742	lt_prog_compiler_static='-qstaticlink'
11743	;;
11744      *)
11745	case `$CC -V 2>&1 | sed 5q` in
11746	*Sun\ F* | *Sun*Fortran*)
11747	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11748	  lt_prog_compiler_pic='-KPIC'
11749	  lt_prog_compiler_static='-Bstatic'
11750	  lt_prog_compiler_wl=''
11751	  ;;
11752	*Sun\ C*)
11753	  # Sun C 5.9
11754	  lt_prog_compiler_pic='-KPIC'
11755	  lt_prog_compiler_static='-Bstatic'
11756	  lt_prog_compiler_wl='-Wl,'
11757	  ;;
11758	esac
11759	;;
11760      esac
11761      ;;
11762
11763    newsos6)
11764      lt_prog_compiler_pic='-KPIC'
11765      lt_prog_compiler_static='-Bstatic'
11766      ;;
11767
11768    *nto* | *qnx*)
11769      # QNX uses GNU C++, but need to define -shared option too, otherwise
11770      # it will coredump.
11771      lt_prog_compiler_pic='-fPIC -shared'
11772      ;;
11773
11774    osf3* | osf4* | osf5*)
11775      lt_prog_compiler_wl='-Wl,'
11776      # All OSF/1 code is PIC.
11777      lt_prog_compiler_static='-non_shared'
11778      ;;
11779
11780    rdos*)
11781      lt_prog_compiler_static='-non_shared'
11782      ;;
11783
11784    solaris*)
11785      lt_prog_compiler_pic='-KPIC'
11786      lt_prog_compiler_static='-Bstatic'
11787      case $cc_basename in
11788      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11789	lt_prog_compiler_wl='-Qoption ld ';;
11790      *)
11791	lt_prog_compiler_wl='-Wl,';;
11792      esac
11793      ;;
11794
11795    sunos4*)
11796      lt_prog_compiler_wl='-Qoption ld '
11797      lt_prog_compiler_pic='-PIC'
11798      lt_prog_compiler_static='-Bstatic'
11799      ;;
11800
11801    sysv4 | sysv4.2uw2* | sysv4.3*)
11802      lt_prog_compiler_wl='-Wl,'
11803      lt_prog_compiler_pic='-KPIC'
11804      lt_prog_compiler_static='-Bstatic'
11805      ;;
11806
11807    sysv4*MP*)
11808      if test -d /usr/nec ;then
11809	lt_prog_compiler_pic='-Kconform_pic'
11810	lt_prog_compiler_static='-Bstatic'
11811      fi
11812      ;;
11813
11814    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11815      lt_prog_compiler_wl='-Wl,'
11816      lt_prog_compiler_pic='-KPIC'
11817      lt_prog_compiler_static='-Bstatic'
11818      ;;
11819
11820    unicos*)
11821      lt_prog_compiler_wl='-Wl,'
11822      lt_prog_compiler_can_build_shared=no
11823      ;;
11824
11825    uts4*)
11826      lt_prog_compiler_pic='-pic'
11827      lt_prog_compiler_static='-Bstatic'
11828      ;;
11829
11830    *)
11831      lt_prog_compiler_can_build_shared=no
11832      ;;
11833    esac
11834  fi
11835
11836case $host_os in
11837  # For platforms which do not support PIC, -DPIC is meaningless:
11838  *djgpp*)
11839    lt_prog_compiler_pic=
11840    ;;
11841  *)
11842    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11843    ;;
11844esac
11845
11846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11847$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11848if ${lt_cv_prog_compiler_pic+:} false; then :
11849  $as_echo_n "(cached) " >&6
11850else
11851  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11852fi
11853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11854$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11855lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11856
11857#
11858# Check to make sure the PIC flag actually works.
11859#
11860if test -n "$lt_prog_compiler_pic"; then
11861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11862$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11863if ${lt_cv_prog_compiler_pic_works+:} false; then :
11864  $as_echo_n "(cached) " >&6
11865else
11866  lt_cv_prog_compiler_pic_works=no
11867   ac_outfile=conftest.$ac_objext
11868   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11869   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11870   # Insert the option either (1) after the last *FLAGS variable, or
11871   # (2) before a word containing "conftest.", or (3) at the end.
11872   # Note that $ac_compile itself does not contain backslashes and begins
11873   # with a dollar sign (not a hyphen), so the echo should work correctly.
11874   # The option is referenced via a variable to avoid confusing sed.
11875   lt_compile=`echo "$ac_compile" | $SED \
11876   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11877   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11878   -e 's:$: $lt_compiler_flag:'`
11879   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11880   (eval "$lt_compile" 2>conftest.err)
11881   ac_status=$?
11882   cat conftest.err >&5
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   if (exit $ac_status) && test -s "$ac_outfile"; then
11885     # The compiler can only warn and ignore the option if not recognized
11886     # So say no if there are warnings other than the usual output.
11887     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11888     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11889     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11890       lt_cv_prog_compiler_pic_works=yes
11891     fi
11892   fi
11893   $RM conftest*
11894
11895fi
11896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11897$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11898
11899if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11900    case $lt_prog_compiler_pic in
11901     "" | " "*) ;;
11902     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11903     esac
11904else
11905    lt_prog_compiler_pic=
11906     lt_prog_compiler_can_build_shared=no
11907fi
11908
11909fi
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921#
11922# Check to make sure the static flag actually works.
11923#
11924wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11926$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11927if ${lt_cv_prog_compiler_static_works+:} false; then :
11928  $as_echo_n "(cached) " >&6
11929else
11930  lt_cv_prog_compiler_static_works=no
11931   save_LDFLAGS="$LDFLAGS"
11932   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11933   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11934   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11935     # The linker can only warn and ignore the option if not recognized
11936     # So say no if there are warnings
11937     if test -s conftest.err; then
11938       # Append any errors to the config.log.
11939       cat conftest.err 1>&5
11940       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11941       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11942       if diff conftest.exp conftest.er2 >/dev/null; then
11943         lt_cv_prog_compiler_static_works=yes
11944       fi
11945     else
11946       lt_cv_prog_compiler_static_works=yes
11947     fi
11948   fi
11949   $RM -r conftest*
11950   LDFLAGS="$save_LDFLAGS"
11951
11952fi
11953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11954$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11955
11956if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11957    :
11958else
11959    lt_prog_compiler_static=
11960fi
11961
11962
11963
11964
11965
11966
11967
11968  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11969$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11970if ${lt_cv_prog_compiler_c_o+:} false; then :
11971  $as_echo_n "(cached) " >&6
11972else
11973  lt_cv_prog_compiler_c_o=no
11974   $RM -r conftest 2>/dev/null
11975   mkdir conftest
11976   cd conftest
11977   mkdir out
11978   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11979
11980   lt_compiler_flag="-o out/conftest2.$ac_objext"
11981   # Insert the option either (1) after the last *FLAGS variable, or
11982   # (2) before a word containing "conftest.", or (3) at the end.
11983   # Note that $ac_compile itself does not contain backslashes and begins
11984   # with a dollar sign (not a hyphen), so the echo should work correctly.
11985   lt_compile=`echo "$ac_compile" | $SED \
11986   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11987   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11988   -e 's:$: $lt_compiler_flag:'`
11989   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11990   (eval "$lt_compile" 2>out/conftest.err)
11991   ac_status=$?
11992   cat out/conftest.err >&5
11993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11995   then
11996     # The compiler can only warn and ignore the option if not recognized
11997     # So say no if there are warnings
11998     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11999     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12000     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12001       lt_cv_prog_compiler_c_o=yes
12002     fi
12003   fi
12004   chmod u+w . 2>&5
12005   $RM conftest*
12006   # SGI C++ compiler will create directory out/ii_files/ for
12007   # template instantiation
12008   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12009   $RM out/* && rmdir out
12010   cd ..
12011   $RM -r conftest
12012   $RM conftest*
12013
12014fi
12015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12016$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12017
12018
12019
12020
12021
12022
12023  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12024$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12025if ${lt_cv_prog_compiler_c_o+:} false; then :
12026  $as_echo_n "(cached) " >&6
12027else
12028  lt_cv_prog_compiler_c_o=no
12029   $RM -r conftest 2>/dev/null
12030   mkdir conftest
12031   cd conftest
12032   mkdir out
12033   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12034
12035   lt_compiler_flag="-o out/conftest2.$ac_objext"
12036   # Insert the option either (1) after the last *FLAGS variable, or
12037   # (2) before a word containing "conftest.", or (3) at the end.
12038   # Note that $ac_compile itself does not contain backslashes and begins
12039   # with a dollar sign (not a hyphen), so the echo should work correctly.
12040   lt_compile=`echo "$ac_compile" | $SED \
12041   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12042   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12043   -e 's:$: $lt_compiler_flag:'`
12044   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12045   (eval "$lt_compile" 2>out/conftest.err)
12046   ac_status=$?
12047   cat out/conftest.err >&5
12048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12050   then
12051     # The compiler can only warn and ignore the option if not recognized
12052     # So say no if there are warnings
12053     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12054     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12055     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12056       lt_cv_prog_compiler_c_o=yes
12057     fi
12058   fi
12059   chmod u+w . 2>&5
12060   $RM conftest*
12061   # SGI C++ compiler will create directory out/ii_files/ for
12062   # template instantiation
12063   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12064   $RM out/* && rmdir out
12065   cd ..
12066   $RM -r conftest
12067   $RM conftest*
12068
12069fi
12070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12071$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12072
12073
12074
12075
12076hard_links="nottested"
12077if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12078  # do not overwrite the value of need_locks provided by the user
12079  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12080$as_echo_n "checking if we can lock with hard links... " >&6; }
12081  hard_links=yes
12082  $RM conftest*
12083  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12084  touch conftest.a
12085  ln conftest.a conftest.b 2>&5 || hard_links=no
12086  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12088$as_echo "$hard_links" >&6; }
12089  if test "$hard_links" = no; then
12090    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12091$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12092    need_locks=warn
12093  fi
12094else
12095  need_locks=no
12096fi
12097
12098
12099
12100
12101
12102
12103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12104$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12105
12106  runpath_var=
12107  allow_undefined_flag=
12108  always_export_symbols=no
12109  archive_cmds=
12110  archive_expsym_cmds=
12111  compiler_needs_object=no
12112  enable_shared_with_static_runtimes=no
12113  export_dynamic_flag_spec=
12114  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12115  hardcode_automatic=no
12116  hardcode_direct=no
12117  hardcode_direct_absolute=no
12118  hardcode_libdir_flag_spec=
12119  hardcode_libdir_flag_spec_ld=
12120  hardcode_libdir_separator=
12121  hardcode_minus_L=no
12122  hardcode_shlibpath_var=unsupported
12123  inherit_rpath=no
12124  link_all_deplibs=unknown
12125  module_cmds=
12126  module_expsym_cmds=
12127  old_archive_from_new_cmds=
12128  old_archive_from_expsyms_cmds=
12129  thread_safe_flag_spec=
12130  whole_archive_flag_spec=
12131  # include_expsyms should be a list of space-separated symbols to be *always*
12132  # included in the symbol list
12133  include_expsyms=
12134  # exclude_expsyms can be an extended regexp of symbols to exclude
12135  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12136  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12137  # as well as any symbol that contains `d'.
12138  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12139  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12140  # platforms (ab)use it in PIC code, but their linkers get confused if
12141  # the symbol is explicitly referenced.  Since portable code cannot
12142  # rely on this symbol name, it's probably fine to never include it in
12143  # preloaded symbol tables.
12144  # Exclude shared library initialization/finalization symbols.
12145  extract_expsyms_cmds=
12146
12147  case $host_os in
12148  cygwin* | mingw* | pw32* | cegcc*)
12149    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12150    # When not using gcc, we currently assume that we are using
12151    # Microsoft Visual C++.
12152    if test "$GCC" != yes; then
12153      with_gnu_ld=no
12154    fi
12155    ;;
12156  interix*)
12157    # we just hope/assume this is gcc and not c89 (= MSVC++)
12158    with_gnu_ld=yes
12159    ;;
12160  openbsd*)
12161    with_gnu_ld=no
12162    ;;
12163  esac
12164
12165  ld_shlibs=yes
12166
12167  # On some targets, GNU ld is compatible enough with the native linker
12168  # that we're better off using the native interface for both.
12169  lt_use_gnu_ld_interface=no
12170  if test "$with_gnu_ld" = yes; then
12171    case $host_os in
12172      aix*)
12173	# The AIX port of GNU ld has always aspired to compatibility
12174	# with the native linker.  However, as the warning in the GNU ld
12175	# block says, versions before 2.19.5* couldn't really create working
12176	# shared libraries, regardless of the interface used.
12177	case `$LD -v 2>&1` in
12178	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12179	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12180	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12181	  *)
12182	    lt_use_gnu_ld_interface=yes
12183	    ;;
12184	esac
12185	;;
12186      *)
12187	lt_use_gnu_ld_interface=yes
12188	;;
12189    esac
12190  fi
12191
12192  if test "$lt_use_gnu_ld_interface" = yes; then
12193    # If archive_cmds runs LD, not CC, wlarc should be empty
12194    wlarc='${wl}'
12195
12196    # Set some defaults for GNU ld with shared library support. These
12197    # are reset later if shared libraries are not supported. Putting them
12198    # here allows them to be overridden if necessary.
12199    runpath_var=LD_RUN_PATH
12200    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12201    export_dynamic_flag_spec='${wl}--export-dynamic'
12202    # ancient GNU ld didn't support --whole-archive et. al.
12203    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12204      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12205    else
12206      whole_archive_flag_spec=
12207    fi
12208    supports_anon_versioning=no
12209    case `$LD -v 2>&1` in
12210      *GNU\ gold*) supports_anon_versioning=yes ;;
12211      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12212      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12213      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12214      *\ 2.11.*) ;; # other 2.11 versions
12215      *) supports_anon_versioning=yes ;;
12216    esac
12217
12218    # See if GNU ld supports shared libraries.
12219    case $host_os in
12220    aix[3-9]*)
12221      # On AIX/PPC, the GNU linker is very broken
12222      if test "$host_cpu" != ia64; then
12223	ld_shlibs=no
12224	cat <<_LT_EOF 1>&2
12225
12226*** Warning: the GNU linker, at least up to release 2.19, is reported
12227*** to be unable to reliably create shared libraries on AIX.
12228*** Therefore, libtool is disabling shared libraries support.  If you
12229*** really care for shared libraries, you may want to install binutils
12230*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12231*** You will then need to restart the configuration process.
12232
12233_LT_EOF
12234      fi
12235      ;;
12236
12237    amigaos*)
12238      case $host_cpu in
12239      powerpc)
12240            # see comment about AmigaOS4 .so support
12241            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12242            archive_expsym_cmds=''
12243        ;;
12244      m68k)
12245            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)'
12246            hardcode_libdir_flag_spec='-L$libdir'
12247            hardcode_minus_L=yes
12248        ;;
12249      esac
12250      ;;
12251
12252    beos*)
12253      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12254	allow_undefined_flag=unsupported
12255	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12256	# support --undefined.  This deserves some investigation.  FIXME
12257	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12258      else
12259	ld_shlibs=no
12260      fi
12261      ;;
12262
12263    cygwin* | mingw* | pw32* | cegcc*)
12264      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12265      # as there is no search path for DLLs.
12266      hardcode_libdir_flag_spec='-L$libdir'
12267      export_dynamic_flag_spec='${wl}--export-all-symbols'
12268      allow_undefined_flag=unsupported
12269      always_export_symbols=no
12270      enable_shared_with_static_runtimes=yes
12271      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'
12272      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12273
12274      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12275        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12276	# If the export-symbols file already is a .def file (1st line
12277	# is EXPORTS), use it as is; otherwise, prepend...
12278	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12279	  cp $export_symbols $output_objdir/$soname.def;
12280	else
12281	  echo EXPORTS > $output_objdir/$soname.def;
12282	  cat $export_symbols >> $output_objdir/$soname.def;
12283	fi~
12284	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12285      else
12286	ld_shlibs=no
12287      fi
12288      ;;
12289
12290    haiku*)
12291      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12292      link_all_deplibs=yes
12293      ;;
12294
12295    interix[3-9]*)
12296      hardcode_direct=no
12297      hardcode_shlibpath_var=no
12298      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12299      export_dynamic_flag_spec='${wl}-E'
12300      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12301      # Instead, shared libraries are loaded at an image base (0x10000000 by
12302      # default) and relocated if they conflict, which is a slow very memory
12303      # consuming and fragmenting process.  To avoid this, we pick a random,
12304      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12305      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12306      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12307      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'
12308      ;;
12309
12310    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12311      tmp_diet=no
12312      if test "$host_os" = linux-dietlibc; then
12313	case $cc_basename in
12314	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12315	esac
12316      fi
12317      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12318	 && test "$tmp_diet" = no
12319      then
12320	tmp_addflag=' $pic_flag'
12321	tmp_sharedflag='-shared'
12322	case $cc_basename,$host_cpu in
12323        pgcc*)				# Portland Group C compiler
12324	  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'
12325	  tmp_addflag=' $pic_flag'
12326	  ;;
12327	pgf77* | pgf90* | pgf95* | pgfortran*)
12328					# Portland Group f77 and f90 compilers
12329	  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'
12330	  tmp_addflag=' $pic_flag -Mnomain' ;;
12331	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12332	  tmp_addflag=' -i_dynamic' ;;
12333	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12334	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12335	ifc* | ifort*)			# Intel Fortran compiler
12336	  tmp_addflag=' -nofor_main' ;;
12337	lf95*)				# Lahey Fortran 8.1
12338	  whole_archive_flag_spec=
12339	  tmp_sharedflag='--shared' ;;
12340	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12341	  tmp_sharedflag='-qmkshrobj'
12342	  tmp_addflag= ;;
12343	nvcc*)	# Cuda Compiler Driver 2.2
12344	  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'
12345	  compiler_needs_object=yes
12346	  ;;
12347	esac
12348	case `$CC -V 2>&1 | sed 5q` in
12349	*Sun\ C*)			# Sun C 5.9
12350	  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'
12351	  compiler_needs_object=yes
12352	  tmp_sharedflag='-G' ;;
12353	*Sun\ F*)			# Sun Fortran 8.3
12354	  tmp_sharedflag='-G' ;;
12355	esac
12356	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12357
12358        if test "x$supports_anon_versioning" = xyes; then
12359          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12360	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12361	    echo "local: *; };" >> $output_objdir/$libname.ver~
12362	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12363        fi
12364
12365	case $cc_basename in
12366	xlf* | bgf* | bgxlf* | mpixlf*)
12367	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12368	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12369	  hardcode_libdir_flag_spec=
12370	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
12371	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12372	  if test "x$supports_anon_versioning" = xyes; then
12373	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12374	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12375	      echo "local: *; };" >> $output_objdir/$libname.ver~
12376	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12377	  fi
12378	  ;;
12379	esac
12380      else
12381        ld_shlibs=no
12382      fi
12383      ;;
12384
12385    netbsd*)
12386      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12387	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12388	wlarc=
12389      else
12390	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12391	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12392      fi
12393      ;;
12394
12395    solaris*)
12396      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12397	ld_shlibs=no
12398	cat <<_LT_EOF 1>&2
12399
12400*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12401*** create shared libraries on Solaris systems.  Therefore, libtool
12402*** is disabling shared libraries support.  We urge you to upgrade GNU
12403*** binutils to release 2.9.1 or newer.  Another option is to modify
12404*** your PATH or compiler configuration so that the native linker is
12405*** used, and then restart.
12406
12407_LT_EOF
12408      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12409	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12410	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12411      else
12412	ld_shlibs=no
12413      fi
12414      ;;
12415
12416    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12417      case `$LD -v 2>&1` in
12418        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12419	ld_shlibs=no
12420	cat <<_LT_EOF 1>&2
12421
12422*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12423*** reliably create shared libraries on SCO systems.  Therefore, libtool
12424*** is disabling shared libraries support.  We urge you to upgrade GNU
12425*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12426*** your PATH or compiler configuration so that the native linker is
12427*** used, and then restart.
12428
12429_LT_EOF
12430	;;
12431	*)
12432	  # For security reasons, it is highly recommended that you always
12433	  # use absolute paths for naming shared libraries, and exclude the
12434	  # DT_RUNPATH tag from executables and libraries.  But doing so
12435	  # requires that you compile everything twice, which is a pain.
12436	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12437	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12438	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12439	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12440	  else
12441	    ld_shlibs=no
12442	  fi
12443	;;
12444      esac
12445      ;;
12446
12447    sunos4*)
12448      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12449      wlarc=
12450      hardcode_direct=yes
12451      hardcode_shlibpath_var=no
12452      ;;
12453
12454    *)
12455      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12456	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12457	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12458      else
12459	ld_shlibs=no
12460      fi
12461      ;;
12462    esac
12463
12464    if test "$ld_shlibs" = no; then
12465      runpath_var=
12466      hardcode_libdir_flag_spec=
12467      export_dynamic_flag_spec=
12468      whole_archive_flag_spec=
12469    fi
12470  else
12471    # PORTME fill in a description of your system's linker (not GNU ld)
12472    case $host_os in
12473    aix3*)
12474      allow_undefined_flag=unsupported
12475      always_export_symbols=yes
12476      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'
12477      # Note: this linker hardcodes the directories in LIBPATH if there
12478      # are no directories specified by -L.
12479      hardcode_minus_L=yes
12480      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12481	# Neither direct hardcoding nor static linking is supported with a
12482	# broken collect2.
12483	hardcode_direct=unsupported
12484      fi
12485      ;;
12486
12487    aix[4-9]*)
12488      if test "$host_cpu" = ia64; then
12489	# On IA64, the linker does run time linking by default, so we don't
12490	# have to do anything special.
12491	aix_use_runtimelinking=no
12492	exp_sym_flag='-Bexport'
12493	no_entry_flag=""
12494      else
12495	# If we're using GNU nm, then we don't want the "-C" option.
12496	# -C means demangle to AIX nm, but means don't demangle with GNU nm
12497	# Also, AIX nm treats weak defined symbols like other global
12498	# defined symbols, whereas GNU nm marks them as "W".
12499	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12500	  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'
12501	else
12502	  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'
12503	fi
12504	aix_use_runtimelinking=no
12505
12506	# Test if we are trying to use run time linking or normal
12507	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12508	# need to do runtime linking.
12509	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12510	  for ld_flag in $LDFLAGS; do
12511	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12512	    aix_use_runtimelinking=yes
12513	    break
12514	  fi
12515	  done
12516	  ;;
12517	esac
12518
12519	exp_sym_flag='-bexport'
12520	no_entry_flag='-bnoentry'
12521      fi
12522
12523      # When large executables or shared objects are built, AIX ld can
12524      # have problems creating the table of contents.  If linking a library
12525      # or program results in "error TOC overflow" add -mminimal-toc to
12526      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12527      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12528
12529      archive_cmds=''
12530      hardcode_direct=yes
12531      hardcode_direct_absolute=yes
12532      hardcode_libdir_separator=':'
12533      link_all_deplibs=yes
12534      file_list_spec='${wl}-f,'
12535
12536      if test "$GCC" = yes; then
12537	case $host_os in aix4.[012]|aix4.[012].*)
12538	# We only want to do this on AIX 4.2 and lower, the check
12539	# below for broken collect2 doesn't work under 4.3+
12540	  collect2name=`${CC} -print-prog-name=collect2`
12541	  if test -f "$collect2name" &&
12542	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12543	  then
12544	  # We have reworked collect2
12545	  :
12546	  else
12547	  # We have old collect2
12548	  hardcode_direct=unsupported
12549	  # It fails to find uninstalled libraries when the uninstalled
12550	  # path is not listed in the libpath.  Setting hardcode_minus_L
12551	  # to unsupported forces relinking
12552	  hardcode_minus_L=yes
12553	  hardcode_libdir_flag_spec='-L$libdir'
12554	  hardcode_libdir_separator=
12555	  fi
12556	  ;;
12557	esac
12558	shared_flag='-shared'
12559	if test "$aix_use_runtimelinking" = yes; then
12560	  shared_flag="$shared_flag "'${wl}-G'
12561	fi
12562      else
12563	# not using gcc
12564	if test "$host_cpu" = ia64; then
12565	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12566	# chokes on -Wl,-G. The following line is correct:
12567	  shared_flag='-G'
12568	else
12569	  if test "$aix_use_runtimelinking" = yes; then
12570	    shared_flag='${wl}-G'
12571	  else
12572	    shared_flag='${wl}-bM:SRE'
12573	  fi
12574	fi
12575      fi
12576
12577      export_dynamic_flag_spec='${wl}-bexpall'
12578      # It seems that -bexpall does not export symbols beginning with
12579      # underscore (_), so it is better to generate a list of symbols to export.
12580      always_export_symbols=yes
12581      if test "$aix_use_runtimelinking" = yes; then
12582	# Warning - without using the other runtime loading flags (-brtl),
12583	# -berok will link without error, but may produce a broken library.
12584	allow_undefined_flag='-berok'
12585        # Determine the default libpath from the value encoded in an
12586        # empty executable.
12587        if test "${lt_cv_aix_libpath+set}" = set; then
12588  aix_libpath=$lt_cv_aix_libpath
12589else
12590  if ${lt_cv_aix_libpath_+:} false; then :
12591  $as_echo_n "(cached) " >&6
12592else
12593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594/* end confdefs.h.  */
12595
12596int
12597main ()
12598{
12599
12600  ;
12601  return 0;
12602}
12603_ACEOF
12604if ac_fn_c_try_link "$LINENO"; then :
12605
12606  lt_aix_libpath_sed='
12607      /Import File Strings/,/^$/ {
12608	  /^0/ {
12609	      s/^0  *\([^ ]*\) *$/\1/
12610	      p
12611	  }
12612      }'
12613  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12614  # Check for a 64-bit object if we didn't find anything.
12615  if test -z "$lt_cv_aix_libpath_"; then
12616    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12617  fi
12618fi
12619rm -f core conftest.err conftest.$ac_objext \
12620    conftest$ac_exeext conftest.$ac_ext
12621  if test -z "$lt_cv_aix_libpath_"; then
12622    lt_cv_aix_libpath_="/usr/lib:/lib"
12623  fi
12624
12625fi
12626
12627  aix_libpath=$lt_cv_aix_libpath_
12628fi
12629
12630        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12631        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"
12632      else
12633	if test "$host_cpu" = ia64; then
12634	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12635	  allow_undefined_flag="-z nodefs"
12636	  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"
12637	else
12638	 # Determine the default libpath from the value encoded in an
12639	 # empty executable.
12640	 if test "${lt_cv_aix_libpath+set}" = set; then
12641  aix_libpath=$lt_cv_aix_libpath
12642else
12643  if ${lt_cv_aix_libpath_+:} false; then :
12644  $as_echo_n "(cached) " >&6
12645else
12646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12647/* end confdefs.h.  */
12648
12649int
12650main ()
12651{
12652
12653  ;
12654  return 0;
12655}
12656_ACEOF
12657if ac_fn_c_try_link "$LINENO"; then :
12658
12659  lt_aix_libpath_sed='
12660      /Import File Strings/,/^$/ {
12661	  /^0/ {
12662	      s/^0  *\([^ ]*\) *$/\1/
12663	      p
12664	  }
12665      }'
12666  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12667  # Check for a 64-bit object if we didn't find anything.
12668  if test -z "$lt_cv_aix_libpath_"; then
12669    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12670  fi
12671fi
12672rm -f core conftest.err conftest.$ac_objext \
12673    conftest$ac_exeext conftest.$ac_ext
12674  if test -z "$lt_cv_aix_libpath_"; then
12675    lt_cv_aix_libpath_="/usr/lib:/lib"
12676  fi
12677
12678fi
12679
12680  aix_libpath=$lt_cv_aix_libpath_
12681fi
12682
12683	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12684	  # Warning - without using the other run time loading flags,
12685	  # -berok will link without error, but may produce a broken library.
12686	  no_undefined_flag=' ${wl}-bernotok'
12687	  allow_undefined_flag=' ${wl}-berok'
12688	  if test "$with_gnu_ld" = yes; then
12689	    # We only use this code for GNU lds that support --whole-archive.
12690	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12691	  else
12692	    # Exported symbols can be pulled into shared objects from archives
12693	    whole_archive_flag_spec='$convenience'
12694	  fi
12695	  archive_cmds_need_lc=yes
12696	  # This is similar to how AIX traditionally builds its shared libraries.
12697	  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'
12698	fi
12699      fi
12700      ;;
12701
12702    amigaos*)
12703      case $host_cpu in
12704      powerpc)
12705            # see comment about AmigaOS4 .so support
12706            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12707            archive_expsym_cmds=''
12708        ;;
12709      m68k)
12710            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)'
12711            hardcode_libdir_flag_spec='-L$libdir'
12712            hardcode_minus_L=yes
12713        ;;
12714      esac
12715      ;;
12716
12717    bsdi[45]*)
12718      export_dynamic_flag_spec=-rdynamic
12719      ;;
12720
12721    cygwin* | mingw* | pw32* | cegcc*)
12722      # When not using gcc, we currently assume that we are using
12723      # Microsoft Visual C++.
12724      # hardcode_libdir_flag_spec is actually meaningless, as there is
12725      # no search path for DLLs.
12726      case $cc_basename in
12727      cl*)
12728	# Native MSVC
12729	hardcode_libdir_flag_spec=' '
12730	allow_undefined_flag=unsupported
12731	always_export_symbols=yes
12732	file_list_spec='@'
12733	# Tell ltmain to make .lib files, not .a files.
12734	libext=lib
12735	# Tell ltmain to make .dll files, not .so files.
12736	shrext_cmds=".dll"
12737	# FIXME: Setting linknames here is a bad hack.
12738	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12739	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12740	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12741	  else
12742	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12743	  fi~
12744	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12745	  linknames='
12746	# The linker will not automatically build a static lib if we build a DLL.
12747	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12748	enable_shared_with_static_runtimes=yes
12749	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12750	# Don't use ranlib
12751	old_postinstall_cmds='chmod 644 $oldlib'
12752	postlink_cmds='lt_outputfile="@OUTPUT@"~
12753	  lt_tool_outputfile="@TOOL_OUTPUT@"~
12754	  case $lt_outputfile in
12755	    *.exe|*.EXE) ;;
12756	    *)
12757	      lt_outputfile="$lt_outputfile.exe"
12758	      lt_tool_outputfile="$lt_tool_outputfile.exe"
12759	      ;;
12760	  esac~
12761	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12762	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12763	    $RM "$lt_outputfile.manifest";
12764	  fi'
12765	;;
12766      *)
12767	# Assume MSVC wrapper
12768	hardcode_libdir_flag_spec=' '
12769	allow_undefined_flag=unsupported
12770	# Tell ltmain to make .lib files, not .a files.
12771	libext=lib
12772	# Tell ltmain to make .dll files, not .so files.
12773	shrext_cmds=".dll"
12774	# FIXME: Setting linknames here is a bad hack.
12775	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12776	# The linker will automatically build a .lib file if we build a DLL.
12777	old_archive_from_new_cmds='true'
12778	# FIXME: Should let the user specify the lib program.
12779	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12780	enable_shared_with_static_runtimes=yes
12781	;;
12782      esac
12783      ;;
12784
12785    darwin* | rhapsody*)
12786
12787
12788  archive_cmds_need_lc=no
12789  hardcode_direct=no
12790  hardcode_automatic=yes
12791  hardcode_shlibpath_var=unsupported
12792  if test "$lt_cv_ld_force_load" = "yes"; then
12793    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\"`'
12794  else
12795    whole_archive_flag_spec=''
12796  fi
12797  link_all_deplibs=yes
12798  allow_undefined_flag="$_lt_dar_allow_undefined"
12799  case $cc_basename in
12800     ifort*) _lt_dar_can_shared=yes ;;
12801     *) _lt_dar_can_shared=$GCC ;;
12802  esac
12803  if test "$_lt_dar_can_shared" = "yes"; then
12804    output_verbose_link_cmd=func_echo_all
12805    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12806    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12807    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}"
12808    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}"
12809
12810  else
12811  ld_shlibs=no
12812  fi
12813
12814      ;;
12815
12816    dgux*)
12817      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12818      hardcode_libdir_flag_spec='-L$libdir'
12819      hardcode_shlibpath_var=no
12820      ;;
12821
12822    freebsd1*)
12823      ld_shlibs=no
12824      ;;
12825
12826    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12827    # support.  Future versions do this automatically, but an explicit c++rt0.o
12828    # does not break anything, and helps significantly (at the cost of a little
12829    # extra space).
12830    freebsd2.2*)
12831      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12832      hardcode_libdir_flag_spec='-R$libdir'
12833      hardcode_direct=yes
12834      hardcode_shlibpath_var=no
12835      ;;
12836
12837    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12838    freebsd2*)
12839      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12840      hardcode_direct=yes
12841      hardcode_minus_L=yes
12842      hardcode_shlibpath_var=no
12843      ;;
12844
12845    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12846    freebsd* | dragonfly*)
12847      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12848      hardcode_libdir_flag_spec='-R$libdir'
12849      hardcode_direct=yes
12850      hardcode_shlibpath_var=no
12851      ;;
12852
12853    hpux9*)
12854      if test "$GCC" = yes; then
12855	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'
12856      else
12857	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'
12858      fi
12859      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12860      hardcode_libdir_separator=:
12861      hardcode_direct=yes
12862
12863      # hardcode_minus_L: Not really in the search PATH,
12864      # but as the default location of the library.
12865      hardcode_minus_L=yes
12866      export_dynamic_flag_spec='${wl}-E'
12867      ;;
12868
12869    hpux10*)
12870      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12871	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12872      else
12873	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12874      fi
12875      if test "$with_gnu_ld" = no; then
12876	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12877	hardcode_libdir_flag_spec_ld='+b $libdir'
12878	hardcode_libdir_separator=:
12879	hardcode_direct=yes
12880	hardcode_direct_absolute=yes
12881	export_dynamic_flag_spec='${wl}-E'
12882	# hardcode_minus_L: Not really in the search PATH,
12883	# but as the default location of the library.
12884	hardcode_minus_L=yes
12885      fi
12886      ;;
12887
12888    hpux11*)
12889      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12890	case $host_cpu in
12891	hppa*64*)
12892	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12893	  ;;
12894	ia64*)
12895	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12896	  ;;
12897	*)
12898	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12899	  ;;
12900	esac
12901      else
12902	case $host_cpu in
12903	hppa*64*)
12904	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12905	  ;;
12906	ia64*)
12907	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12908	  ;;
12909	*)
12910
12911	  # Older versions of the 11.00 compiler do not understand -b yet
12912	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12913	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12914$as_echo_n "checking if $CC understands -b... " >&6; }
12915if ${lt_cv_prog_compiler__b+:} false; then :
12916  $as_echo_n "(cached) " >&6
12917else
12918  lt_cv_prog_compiler__b=no
12919   save_LDFLAGS="$LDFLAGS"
12920   LDFLAGS="$LDFLAGS -b"
12921   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12922   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12923     # The linker can only warn and ignore the option if not recognized
12924     # So say no if there are warnings
12925     if test -s conftest.err; then
12926       # Append any errors to the config.log.
12927       cat conftest.err 1>&5
12928       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12929       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12930       if diff conftest.exp conftest.er2 >/dev/null; then
12931         lt_cv_prog_compiler__b=yes
12932       fi
12933     else
12934       lt_cv_prog_compiler__b=yes
12935     fi
12936   fi
12937   $RM -r conftest*
12938   LDFLAGS="$save_LDFLAGS"
12939
12940fi
12941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12942$as_echo "$lt_cv_prog_compiler__b" >&6; }
12943
12944if test x"$lt_cv_prog_compiler__b" = xyes; then
12945    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12946else
12947    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12948fi
12949
12950	  ;;
12951	esac
12952      fi
12953      if test "$with_gnu_ld" = no; then
12954	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12955	hardcode_libdir_separator=:
12956
12957	case $host_cpu in
12958	hppa*64*|ia64*)
12959	  hardcode_direct=no
12960	  hardcode_shlibpath_var=no
12961	  ;;
12962	*)
12963	  hardcode_direct=yes
12964	  hardcode_direct_absolute=yes
12965	  export_dynamic_flag_spec='${wl}-E'
12966
12967	  # hardcode_minus_L: Not really in the search PATH,
12968	  # but as the default location of the library.
12969	  hardcode_minus_L=yes
12970	  ;;
12971	esac
12972      fi
12973      ;;
12974
12975    irix5* | irix6* | nonstopux*)
12976      if test "$GCC" = yes; then
12977	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'
12978	# Try to use the -exported_symbol ld option, if it does not
12979	# work, assume that -exports_file does not work either and
12980	# implicitly export all symbols.
12981	# This should be the same for all languages, so no per-tag cache variable.
12982	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12983$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12984if ${lt_cv_irix_exported_symbol+:} false; then :
12985  $as_echo_n "(cached) " >&6
12986else
12987  save_LDFLAGS="$LDFLAGS"
12988	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12989	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12990/* end confdefs.h.  */
12991int foo (void) { return 0; }
12992_ACEOF
12993if ac_fn_c_try_link "$LINENO"; then :
12994  lt_cv_irix_exported_symbol=yes
12995else
12996  lt_cv_irix_exported_symbol=no
12997fi
12998rm -f core conftest.err conftest.$ac_objext \
12999    conftest$ac_exeext conftest.$ac_ext
13000           LDFLAGS="$save_LDFLAGS"
13001fi
13002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13003$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13004	if test "$lt_cv_irix_exported_symbol" = yes; then
13005          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'
13006	fi
13007      else
13008	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'
13009	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'
13010      fi
13011      archive_cmds_need_lc='no'
13012      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13013      hardcode_libdir_separator=:
13014      inherit_rpath=yes
13015      link_all_deplibs=yes
13016      ;;
13017
13018    netbsd*)
13019      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13020	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13021      else
13022	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13023      fi
13024      hardcode_libdir_flag_spec='-R$libdir'
13025      hardcode_direct=yes
13026      hardcode_shlibpath_var=no
13027      ;;
13028
13029    newsos6)
13030      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13031      hardcode_direct=yes
13032      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13033      hardcode_libdir_separator=:
13034      hardcode_shlibpath_var=no
13035      ;;
13036
13037    *nto* | *qnx*)
13038      ;;
13039
13040    openbsd*)
13041      if test -f /usr/libexec/ld.so; then
13042	hardcode_direct=yes
13043	hardcode_shlibpath_var=no
13044	hardcode_direct_absolute=yes
13045	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13046	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13047	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13048	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13049	  export_dynamic_flag_spec='${wl}-E'
13050	else
13051	  case $host_os in
13052	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13053	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13054	     hardcode_libdir_flag_spec='-R$libdir'
13055	     ;;
13056	   *)
13057	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13058	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13059	     ;;
13060	  esac
13061	fi
13062      else
13063	ld_shlibs=no
13064      fi
13065      ;;
13066
13067    os2*)
13068      hardcode_libdir_flag_spec='-L$libdir'
13069      hardcode_minus_L=yes
13070      allow_undefined_flag=unsupported
13071      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'
13072      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13073      ;;
13074
13075    osf3*)
13076      if test "$GCC" = yes; then
13077	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13078	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'
13079      else
13080	allow_undefined_flag=' -expect_unresolved \*'
13081	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'
13082      fi
13083      archive_cmds_need_lc='no'
13084      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13085      hardcode_libdir_separator=:
13086      ;;
13087
13088    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13089      if test "$GCC" = yes; then
13090	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13091	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'
13092	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13093      else
13094	allow_undefined_flag=' -expect_unresolved \*'
13095	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'
13096	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~
13097	$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'
13098
13099	# Both c and cxx compiler support -rpath directly
13100	hardcode_libdir_flag_spec='-rpath $libdir'
13101      fi
13102      archive_cmds_need_lc='no'
13103      hardcode_libdir_separator=:
13104      ;;
13105
13106    solaris*)
13107      no_undefined_flag=' -z defs'
13108      if test "$GCC" = yes; then
13109	wlarc='${wl}'
13110	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13111	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13112	  $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'
13113      else
13114	case `$CC -V 2>&1` in
13115	*"Compilers 5.0"*)
13116	  wlarc=''
13117	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13118	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13119	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13120	  ;;
13121	*)
13122	  wlarc='${wl}'
13123	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13124	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13125	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13126	  ;;
13127	esac
13128      fi
13129      hardcode_libdir_flag_spec='-R$libdir'
13130      hardcode_shlibpath_var=no
13131      case $host_os in
13132      solaris2.[0-5] | solaris2.[0-5].*) ;;
13133      *)
13134	# The compiler driver will combine and reorder linker options,
13135	# but understands `-z linker_flag'.  GCC discards it without `$wl',
13136	# but is careful enough not to reorder.
13137	# Supported since Solaris 2.6 (maybe 2.5.1?)
13138	if test "$GCC" = yes; then
13139	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13140	else
13141	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13142	fi
13143	;;
13144      esac
13145      link_all_deplibs=yes
13146      ;;
13147
13148    sunos4*)
13149      if test "x$host_vendor" = xsequent; then
13150	# Use $CC to link under sequent, because it throws in some extra .o
13151	# files that make .init and .fini sections work.
13152	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13153      else
13154	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13155      fi
13156      hardcode_libdir_flag_spec='-L$libdir'
13157      hardcode_direct=yes
13158      hardcode_minus_L=yes
13159      hardcode_shlibpath_var=no
13160      ;;
13161
13162    sysv4)
13163      case $host_vendor in
13164	sni)
13165	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13166	  hardcode_direct=yes # is this really true???
13167	;;
13168	siemens)
13169	  ## LD is ld it makes a PLAMLIB
13170	  ## CC just makes a GrossModule.
13171	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13172	  reload_cmds='$CC -r -o $output$reload_objs'
13173	  hardcode_direct=no
13174        ;;
13175	motorola)
13176	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13177	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13178	;;
13179      esac
13180      runpath_var='LD_RUN_PATH'
13181      hardcode_shlibpath_var=no
13182      ;;
13183
13184    sysv4.3*)
13185      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13186      hardcode_shlibpath_var=no
13187      export_dynamic_flag_spec='-Bexport'
13188      ;;
13189
13190    sysv4*MP*)
13191      if test -d /usr/nec; then
13192	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13193	hardcode_shlibpath_var=no
13194	runpath_var=LD_RUN_PATH
13195	hardcode_runpath_var=yes
13196	ld_shlibs=yes
13197      fi
13198      ;;
13199
13200    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13201      no_undefined_flag='${wl}-z,text'
13202      archive_cmds_need_lc=no
13203      hardcode_shlibpath_var=no
13204      runpath_var='LD_RUN_PATH'
13205
13206      if test "$GCC" = yes; then
13207	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13208	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13209      else
13210	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13211	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13212      fi
13213      ;;
13214
13215    sysv5* | sco3.2v5* | sco5v6*)
13216      # Note: We can NOT use -z defs as we might desire, because we do not
13217      # link with -lc, and that would cause any symbols used from libc to
13218      # always be unresolved, which means just about no library would
13219      # ever link correctly.  If we're not using GNU ld we use -z text
13220      # though, which does catch some bad symbols but isn't as heavy-handed
13221      # as -z defs.
13222      no_undefined_flag='${wl}-z,text'
13223      allow_undefined_flag='${wl}-z,nodefs'
13224      archive_cmds_need_lc=no
13225      hardcode_shlibpath_var=no
13226      hardcode_libdir_flag_spec='${wl}-R,$libdir'
13227      hardcode_libdir_separator=':'
13228      link_all_deplibs=yes
13229      export_dynamic_flag_spec='${wl}-Bexport'
13230      runpath_var='LD_RUN_PATH'
13231
13232      if test "$GCC" = yes; then
13233	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13234	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13235      else
13236	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13237	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13238      fi
13239      ;;
13240
13241    uts4*)
13242      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13243      hardcode_libdir_flag_spec='-L$libdir'
13244      hardcode_shlibpath_var=no
13245      ;;
13246
13247    *)
13248      ld_shlibs=no
13249      ;;
13250    esac
13251
13252    if test x$host_vendor = xsni; then
13253      case $host in
13254      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13255	export_dynamic_flag_spec='${wl}-Blargedynsym'
13256	;;
13257      esac
13258    fi
13259  fi
13260
13261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13262$as_echo "$ld_shlibs" >&6; }
13263test "$ld_shlibs" = no && can_build_shared=no
13264
13265with_gnu_ld=$with_gnu_ld
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281#
13282# Do we need to explicitly link libc?
13283#
13284case "x$archive_cmds_need_lc" in
13285x|xyes)
13286  # Assume -lc should be added
13287  archive_cmds_need_lc=yes
13288
13289  if test "$enable_shared" = yes && test "$GCC" = yes; then
13290    case $archive_cmds in
13291    *'~'*)
13292      # FIXME: we may have to deal with multi-command sequences.
13293      ;;
13294    '$CC '*)
13295      # Test whether the compiler implicitly links with -lc since on some
13296      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13297      # to ld, don't add -lc before -lgcc.
13298      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13299$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13300if ${lt_cv_archive_cmds_need_lc+:} false; then :
13301  $as_echo_n "(cached) " >&6
13302else
13303  $RM conftest*
13304	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13305
13306	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13307  (eval $ac_compile) 2>&5
13308  ac_status=$?
13309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13310  test $ac_status = 0; } 2>conftest.err; then
13311	  soname=conftest
13312	  lib=conftest
13313	  libobjs=conftest.$ac_objext
13314	  deplibs=
13315	  wl=$lt_prog_compiler_wl
13316	  pic_flag=$lt_prog_compiler_pic
13317	  compiler_flags=-v
13318	  linker_flags=-v
13319	  verstring=
13320	  output_objdir=.
13321	  libname=conftest
13322	  lt_save_allow_undefined_flag=$allow_undefined_flag
13323	  allow_undefined_flag=
13324	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13325  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13326  ac_status=$?
13327  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13328  test $ac_status = 0; }
13329	  then
13330	    lt_cv_archive_cmds_need_lc=no
13331	  else
13332	    lt_cv_archive_cmds_need_lc=yes
13333	  fi
13334	  allow_undefined_flag=$lt_save_allow_undefined_flag
13335	else
13336	  cat conftest.err 1>&5
13337	fi
13338	$RM conftest*
13339
13340fi
13341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13342$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13343      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13344      ;;
13345    esac
13346  fi
13347  ;;
13348esac
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13507$as_echo_n "checking dynamic linker characteristics... " >&6; }
13508
13509if test "$GCC" = yes; then
13510  case $host_os in
13511    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13512    *) lt_awk_arg="/^libraries:/" ;;
13513  esac
13514  case $host_os in
13515    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13516    *) lt_sed_strip_eq="s,=/,/,g" ;;
13517  esac
13518  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13519  case $lt_search_path_spec in
13520  *\;*)
13521    # if the path contains ";" then we assume it to be the separator
13522    # otherwise default to the standard path separator (i.e. ":") - it is
13523    # assumed that no part of a normal pathname contains ";" but that should
13524    # okay in the real world where ";" in dirpaths is itself problematic.
13525    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13526    ;;
13527  *)
13528    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13529    ;;
13530  esac
13531  # Ok, now we have the path, separated by spaces, we can step through it
13532  # and add multilib dir if necessary.
13533  lt_tmp_lt_search_path_spec=
13534  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13535  for lt_sys_path in $lt_search_path_spec; do
13536    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13537      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13538    else
13539      test -d "$lt_sys_path" && \
13540	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13541    fi
13542  done
13543  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13544BEGIN {RS=" "; FS="/|\n";} {
13545  lt_foo="";
13546  lt_count=0;
13547  for (lt_i = NF; lt_i > 0; lt_i--) {
13548    if ($lt_i != "" && $lt_i != ".") {
13549      if ($lt_i == "..") {
13550        lt_count++;
13551      } else {
13552        if (lt_count == 0) {
13553          lt_foo="/" $lt_i lt_foo;
13554        } else {
13555          lt_count--;
13556        }
13557      }
13558    }
13559  }
13560  if (lt_foo != "") { lt_freq[lt_foo]++; }
13561  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13562}'`
13563  # AWK program above erroneously prepends '/' to C:/dos/paths
13564  # for these hosts.
13565  case $host_os in
13566    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13567      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13568  esac
13569  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13570else
13571  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13572fi
13573library_names_spec=
13574libname_spec='lib$name'
13575soname_spec=
13576shrext_cmds=".so"
13577postinstall_cmds=
13578postuninstall_cmds=
13579finish_cmds=
13580finish_eval=
13581shlibpath_var=
13582shlibpath_overrides_runpath=unknown
13583version_type=none
13584dynamic_linker="$host_os ld.so"
13585sys_lib_dlsearch_path_spec="/lib /usr/lib"
13586need_lib_prefix=unknown
13587hardcode_into_libs=no
13588
13589# when you set need_version to no, make sure it does not cause -set_version
13590# flags to be left without arguments
13591need_version=unknown
13592
13593case $host_os in
13594aix3*)
13595  version_type=linux
13596  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13597  shlibpath_var=LIBPATH
13598
13599  # AIX 3 has no versioning support, so we append a major version to the name.
13600  soname_spec='${libname}${release}${shared_ext}$major'
13601  ;;
13602
13603aix[4-9]*)
13604  version_type=linux
13605  need_lib_prefix=no
13606  need_version=no
13607  hardcode_into_libs=yes
13608  if test "$host_cpu" = ia64; then
13609    # AIX 5 supports IA64
13610    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13611    shlibpath_var=LD_LIBRARY_PATH
13612  else
13613    # With GCC up to 2.95.x, collect2 would create an import file
13614    # for dependence libraries.  The import file would start with
13615    # the line `#! .'.  This would cause the generated library to
13616    # depend on `.', always an invalid library.  This was fixed in
13617    # development snapshots of GCC prior to 3.0.
13618    case $host_os in
13619      aix4 | aix4.[01] | aix4.[01].*)
13620      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13621	   echo ' yes '
13622	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13623	:
13624      else
13625	can_build_shared=no
13626      fi
13627      ;;
13628    esac
13629    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13630    # soname into executable. Probably we can add versioning support to
13631    # collect2, so additional links can be useful in future.
13632    if test "$aix_use_runtimelinking" = yes; then
13633      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13634      # instead of lib<name>.a to let people know that these are not
13635      # typical AIX shared libraries.
13636      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13637    else
13638      # We preserve .a as extension for shared libraries through AIX4.2
13639      # and later when we are not doing run time linking.
13640      library_names_spec='${libname}${release}.a $libname.a'
13641      soname_spec='${libname}${release}${shared_ext}$major'
13642    fi
13643    shlibpath_var=LIBPATH
13644  fi
13645  ;;
13646
13647amigaos*)
13648  case $host_cpu in
13649  powerpc)
13650    # Since July 2007 AmigaOS4 officially supports .so libraries.
13651    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13652    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13653    ;;
13654  m68k)
13655    library_names_spec='$libname.ixlibrary $libname.a'
13656    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13657    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'
13658    ;;
13659  esac
13660  ;;
13661
13662beos*)
13663  library_names_spec='${libname}${shared_ext}'
13664  dynamic_linker="$host_os ld.so"
13665  shlibpath_var=LIBRARY_PATH
13666  ;;
13667
13668bsdi[45]*)
13669  version_type=linux
13670  need_version=no
13671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13672  soname_spec='${libname}${release}${shared_ext}$major'
13673  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13674  shlibpath_var=LD_LIBRARY_PATH
13675  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13676  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13677  # the default ld.so.conf also contains /usr/contrib/lib and
13678  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13679  # libtool to hard-code these into programs
13680  ;;
13681
13682cygwin* | mingw* | pw32* | cegcc*)
13683  version_type=windows
13684  shrext_cmds=".dll"
13685  need_version=no
13686  need_lib_prefix=no
13687
13688  case $GCC,$cc_basename in
13689  yes,*)
13690    # gcc
13691    library_names_spec='$libname.dll.a'
13692    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13693    postinstall_cmds='base_file=`basename \${file}`~
13694      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13695      dldir=$destdir/`dirname \$dlpath`~
13696      test -d \$dldir || mkdir -p \$dldir~
13697      $install_prog $dir/$dlname \$dldir/$dlname~
13698      chmod a+x \$dldir/$dlname~
13699      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13700        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13701      fi'
13702    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13703      dlpath=$dir/\$dldll~
13704       $RM \$dlpath'
13705    shlibpath_overrides_runpath=yes
13706
13707    case $host_os in
13708    cygwin*)
13709      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13710      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13711
13712      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13713      ;;
13714    mingw* | cegcc*)
13715      # MinGW DLLs use traditional 'lib' prefix
13716      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13717      ;;
13718    pw32*)
13719      # pw32 DLLs use 'pw' prefix rather than 'lib'
13720      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13721      ;;
13722    esac
13723    dynamic_linker='Win32 ld.exe'
13724    ;;
13725
13726  *,cl*)
13727    # Native MSVC
13728    libname_spec='$name'
13729    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13730    library_names_spec='${libname}.dll.lib'
13731
13732    case $build_os in
13733    mingw*)
13734      sys_lib_search_path_spec=
13735      lt_save_ifs=$IFS
13736      IFS=';'
13737      for lt_path in $LIB
13738      do
13739        IFS=$lt_save_ifs
13740        # Let DOS variable expansion print the short 8.3 style file name.
13741        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13742        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13743      done
13744      IFS=$lt_save_ifs
13745      # Convert to MSYS style.
13746      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13747      ;;
13748    cygwin*)
13749      # Convert to unix form, then to dos form, then back to unix form
13750      # but this time dos style (no spaces!) so that the unix form looks
13751      # like /cygdrive/c/PROGRA~1:/cygdr...
13752      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13753      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13754      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13755      ;;
13756    *)
13757      sys_lib_search_path_spec="$LIB"
13758      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13759        # It is most probably a Windows format PATH.
13760        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13761      else
13762        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13763      fi
13764      # FIXME: find the short name or the path components, as spaces are
13765      # common. (e.g. "Program Files" -> "PROGRA~1")
13766      ;;
13767    esac
13768
13769    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13770    postinstall_cmds='base_file=`basename \${file}`~
13771      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13772      dldir=$destdir/`dirname \$dlpath`~
13773      test -d \$dldir || mkdir -p \$dldir~
13774      $install_prog $dir/$dlname \$dldir/$dlname'
13775    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13776      dlpath=$dir/\$dldll~
13777       $RM \$dlpath'
13778    shlibpath_overrides_runpath=yes
13779    dynamic_linker='Win32 link.exe'
13780    ;;
13781
13782  *)
13783    # Assume MSVC wrapper
13784    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13785    dynamic_linker='Win32 ld.exe'
13786    ;;
13787  esac
13788  # FIXME: first we should search . and the directory the executable is in
13789  shlibpath_var=PATH
13790  ;;
13791
13792darwin* | rhapsody*)
13793  dynamic_linker="$host_os dyld"
13794  version_type=darwin
13795  need_lib_prefix=no
13796  need_version=no
13797  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13798  soname_spec='${libname}${release}${major}$shared_ext'
13799  shlibpath_overrides_runpath=yes
13800  shlibpath_var=DYLD_LIBRARY_PATH
13801  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13802
13803  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13804  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13805  ;;
13806
13807dgux*)
13808  version_type=linux
13809  need_lib_prefix=no
13810  need_version=no
13811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13812  soname_spec='${libname}${release}${shared_ext}$major'
13813  shlibpath_var=LD_LIBRARY_PATH
13814  ;;
13815
13816freebsd1*)
13817  dynamic_linker=no
13818  ;;
13819
13820freebsd* | dragonfly*)
13821  # DragonFly does not have aout.  When/if they implement a new
13822  # versioning mechanism, adjust this.
13823  if test -x /usr/bin/objformat; then
13824    objformat=`/usr/bin/objformat`
13825  else
13826    case $host_os in
13827    freebsd[123]*) objformat=aout ;;
13828    *) objformat=elf ;;
13829    esac
13830  fi
13831  version_type=freebsd-$objformat
13832  case $version_type in
13833    freebsd-elf*)
13834      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13835      need_version=no
13836      need_lib_prefix=no
13837      ;;
13838    freebsd-*)
13839      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13840      need_version=yes
13841      ;;
13842  esac
13843  shlibpath_var=LD_LIBRARY_PATH
13844  case $host_os in
13845  freebsd2*)
13846    shlibpath_overrides_runpath=yes
13847    ;;
13848  freebsd3.[01]* | freebsdelf3.[01]*)
13849    shlibpath_overrides_runpath=yes
13850    hardcode_into_libs=yes
13851    ;;
13852  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13853  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13854    shlibpath_overrides_runpath=no
13855    hardcode_into_libs=yes
13856    ;;
13857  *) # from 4.6 on, and DragonFly
13858    shlibpath_overrides_runpath=yes
13859    hardcode_into_libs=yes
13860    ;;
13861  esac
13862  ;;
13863
13864gnu*)
13865  version_type=linux
13866  need_lib_prefix=no
13867  need_version=no
13868  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13869  soname_spec='${libname}${release}${shared_ext}$major'
13870  shlibpath_var=LD_LIBRARY_PATH
13871  hardcode_into_libs=yes
13872  ;;
13873
13874haiku*)
13875  version_type=linux
13876  need_lib_prefix=no
13877  need_version=no
13878  dynamic_linker="$host_os runtime_loader"
13879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13880  soname_spec='${libname}${release}${shared_ext}$major'
13881  shlibpath_var=LIBRARY_PATH
13882  shlibpath_overrides_runpath=yes
13883  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13884  hardcode_into_libs=yes
13885  ;;
13886
13887hpux9* | hpux10* | hpux11*)
13888  # Give a soname corresponding to the major version so that dld.sl refuses to
13889  # link against other versions.
13890  version_type=sunos
13891  need_lib_prefix=no
13892  need_version=no
13893  case $host_cpu in
13894  ia64*)
13895    shrext_cmds='.so'
13896    hardcode_into_libs=yes
13897    dynamic_linker="$host_os dld.so"
13898    shlibpath_var=LD_LIBRARY_PATH
13899    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13900    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13901    soname_spec='${libname}${release}${shared_ext}$major'
13902    if test "X$HPUX_IA64_MODE" = X32; then
13903      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13904    else
13905      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13906    fi
13907    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13908    ;;
13909  hppa*64*)
13910    shrext_cmds='.sl'
13911    hardcode_into_libs=yes
13912    dynamic_linker="$host_os dld.sl"
13913    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13914    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13915    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13916    soname_spec='${libname}${release}${shared_ext}$major'
13917    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13918    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13919    ;;
13920  *)
13921    shrext_cmds='.sl'
13922    dynamic_linker="$host_os dld.sl"
13923    shlibpath_var=SHLIB_PATH
13924    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13925    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13926    soname_spec='${libname}${release}${shared_ext}$major'
13927    ;;
13928  esac
13929  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13930  postinstall_cmds='chmod 555 $lib'
13931  # or fails outright, so override atomically:
13932  install_override_mode=555
13933  ;;
13934
13935interix[3-9]*)
13936  version_type=linux
13937  need_lib_prefix=no
13938  need_version=no
13939  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13940  soname_spec='${libname}${release}${shared_ext}$major'
13941  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13942  shlibpath_var=LD_LIBRARY_PATH
13943  shlibpath_overrides_runpath=no
13944  hardcode_into_libs=yes
13945  ;;
13946
13947irix5* | irix6* | nonstopux*)
13948  case $host_os in
13949    nonstopux*) version_type=nonstopux ;;
13950    *)
13951	if test "$lt_cv_prog_gnu_ld" = yes; then
13952		version_type=linux
13953	else
13954		version_type=irix
13955	fi ;;
13956  esac
13957  need_lib_prefix=no
13958  need_version=no
13959  soname_spec='${libname}${release}${shared_ext}$major'
13960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13961  case $host_os in
13962  irix5* | nonstopux*)
13963    libsuff= shlibsuff=
13964    ;;
13965  *)
13966    case $LD in # libtool.m4 will add one of these switches to LD
13967    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13968      libsuff= shlibsuff= libmagic=32-bit;;
13969    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13970      libsuff=32 shlibsuff=N32 libmagic=N32;;
13971    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13972      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13973    *) libsuff= shlibsuff= libmagic=never-match;;
13974    esac
13975    ;;
13976  esac
13977  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13978  shlibpath_overrides_runpath=no
13979  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13980  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13981  hardcode_into_libs=yes
13982  ;;
13983
13984# No shared lib support for Linux oldld, aout, or coff.
13985linux*oldld* | linux*aout* | linux*coff*)
13986  dynamic_linker=no
13987  ;;
13988
13989# This must be Linux ELF.
13990linux* | k*bsd*-gnu | kopensolaris*-gnu)
13991  version_type=linux
13992  need_lib_prefix=no
13993  need_version=no
13994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13995  soname_spec='${libname}${release}${shared_ext}$major'
13996  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13997  shlibpath_var=LD_LIBRARY_PATH
13998  shlibpath_overrides_runpath=no
13999
14000  # Some binutils ld are patched to set DT_RUNPATH
14001  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14002  $as_echo_n "(cached) " >&6
14003else
14004  lt_cv_shlibpath_overrides_runpath=no
14005    save_LDFLAGS=$LDFLAGS
14006    save_libdir=$libdir
14007    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14008	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14009    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14010/* end confdefs.h.  */
14011
14012int
14013main ()
14014{
14015
14016  ;
14017  return 0;
14018}
14019_ACEOF
14020if ac_fn_c_try_link "$LINENO"; then :
14021  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14022  lt_cv_shlibpath_overrides_runpath=yes
14023fi
14024fi
14025rm -f core conftest.err conftest.$ac_objext \
14026    conftest$ac_exeext conftest.$ac_ext
14027    LDFLAGS=$save_LDFLAGS
14028    libdir=$save_libdir
14029
14030fi
14031
14032  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14033
14034  # This implies no fast_install, which is unacceptable.
14035  # Some rework will be needed to allow for fast_install
14036  # before this can be enabled.
14037  hardcode_into_libs=yes
14038
14039  # Append ld.so.conf contents to the search path
14040  if test -f /etc/ld.so.conf; then
14041    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' ' '`
14042    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14043  fi
14044
14045  # We used to test for /lib/ld.so.1 and disable shared libraries on
14046  # powerpc, because MkLinux only supported shared libraries with the
14047  # GNU dynamic linker.  Since this was broken with cross compilers,
14048  # most powerpc-linux boxes support dynamic linking these days and
14049  # people can always --disable-shared, the test was removed, and we
14050  # assume the GNU/Linux dynamic linker is in use.
14051  dynamic_linker='GNU/Linux ld.so'
14052  ;;
14053
14054netbsd*)
14055  version_type=sunos
14056  need_lib_prefix=no
14057  need_version=no
14058  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14059    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14060    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14061    dynamic_linker='NetBSD (a.out) ld.so'
14062  else
14063    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14064    soname_spec='${libname}${release}${shared_ext}$major'
14065    dynamic_linker='NetBSD ld.elf_so'
14066  fi
14067  shlibpath_var=LD_LIBRARY_PATH
14068  shlibpath_overrides_runpath=yes
14069  hardcode_into_libs=yes
14070  ;;
14071
14072newsos6)
14073  version_type=linux
14074  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14075  shlibpath_var=LD_LIBRARY_PATH
14076  shlibpath_overrides_runpath=yes
14077  ;;
14078
14079*nto* | *qnx*)
14080  version_type=qnx
14081  need_lib_prefix=no
14082  need_version=no
14083  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14084  soname_spec='${libname}${release}${shared_ext}$major'
14085  shlibpath_var=LD_LIBRARY_PATH
14086  shlibpath_overrides_runpath=no
14087  hardcode_into_libs=yes
14088  dynamic_linker='ldqnx.so'
14089  ;;
14090
14091openbsd*)
14092  version_type=sunos
14093  sys_lib_dlsearch_path_spec="/usr/lib"
14094  need_lib_prefix=no
14095  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14096  case $host_os in
14097    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14098    *)				need_version=no  ;;
14099  esac
14100  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14101  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14102  shlibpath_var=LD_LIBRARY_PATH
14103  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14104    case $host_os in
14105      openbsd2.[89] | openbsd2.[89].*)
14106	shlibpath_overrides_runpath=no
14107	;;
14108      *)
14109	shlibpath_overrides_runpath=yes
14110	;;
14111      esac
14112  else
14113    shlibpath_overrides_runpath=yes
14114  fi
14115  ;;
14116
14117os2*)
14118  libname_spec='$name'
14119  shrext_cmds=".dll"
14120  need_lib_prefix=no
14121  library_names_spec='$libname${shared_ext} $libname.a'
14122  dynamic_linker='OS/2 ld.exe'
14123  shlibpath_var=LIBPATH
14124  ;;
14125
14126osf3* | osf4* | osf5*)
14127  version_type=osf
14128  need_lib_prefix=no
14129  need_version=no
14130  soname_spec='${libname}${release}${shared_ext}$major'
14131  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14132  shlibpath_var=LD_LIBRARY_PATH
14133  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14134  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14135  ;;
14136
14137rdos*)
14138  dynamic_linker=no
14139  ;;
14140
14141solaris*)
14142  version_type=linux
14143  need_lib_prefix=no
14144  need_version=no
14145  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14146  soname_spec='${libname}${release}${shared_ext}$major'
14147  shlibpath_var=LD_LIBRARY_PATH
14148  shlibpath_overrides_runpath=yes
14149  hardcode_into_libs=yes
14150  # ldd complains unless libraries are executable
14151  postinstall_cmds='chmod +x $lib'
14152  ;;
14153
14154sunos4*)
14155  version_type=sunos
14156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14157  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14158  shlibpath_var=LD_LIBRARY_PATH
14159  shlibpath_overrides_runpath=yes
14160  if test "$with_gnu_ld" = yes; then
14161    need_lib_prefix=no
14162  fi
14163  need_version=yes
14164  ;;
14165
14166sysv4 | sysv4.3*)
14167  version_type=linux
14168  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14169  soname_spec='${libname}${release}${shared_ext}$major'
14170  shlibpath_var=LD_LIBRARY_PATH
14171  case $host_vendor in
14172    sni)
14173      shlibpath_overrides_runpath=no
14174      need_lib_prefix=no
14175      runpath_var=LD_RUN_PATH
14176      ;;
14177    siemens)
14178      need_lib_prefix=no
14179      ;;
14180    motorola)
14181      need_lib_prefix=no
14182      need_version=no
14183      shlibpath_overrides_runpath=no
14184      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14185      ;;
14186  esac
14187  ;;
14188
14189sysv4*MP*)
14190  if test -d /usr/nec ;then
14191    version_type=linux
14192    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14193    soname_spec='$libname${shared_ext}.$major'
14194    shlibpath_var=LD_LIBRARY_PATH
14195  fi
14196  ;;
14197
14198sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14199  version_type=freebsd-elf
14200  need_lib_prefix=no
14201  need_version=no
14202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14203  soname_spec='${libname}${release}${shared_ext}$major'
14204  shlibpath_var=LD_LIBRARY_PATH
14205  shlibpath_overrides_runpath=yes
14206  hardcode_into_libs=yes
14207  if test "$with_gnu_ld" = yes; then
14208    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14209  else
14210    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14211    case $host_os in
14212      sco3.2v5*)
14213        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14214	;;
14215    esac
14216  fi
14217  sys_lib_dlsearch_path_spec='/usr/lib'
14218  ;;
14219
14220tpf*)
14221  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14222  version_type=linux
14223  need_lib_prefix=no
14224  need_version=no
14225  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14226  shlibpath_var=LD_LIBRARY_PATH
14227  shlibpath_overrides_runpath=no
14228  hardcode_into_libs=yes
14229  ;;
14230
14231uts4*)
14232  version_type=linux
14233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14234  soname_spec='${libname}${release}${shared_ext}$major'
14235  shlibpath_var=LD_LIBRARY_PATH
14236  ;;
14237
14238*)
14239  dynamic_linker=no
14240  ;;
14241esac
14242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14243$as_echo "$dynamic_linker" >&6; }
14244test "$dynamic_linker" = no && can_build_shared=no
14245
14246variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14247if test "$GCC" = yes; then
14248  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14249fi
14250
14251if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14252  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14253fi
14254if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14255  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14256fi
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14350$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14351hardcode_action=
14352if test -n "$hardcode_libdir_flag_spec" ||
14353   test -n "$runpath_var" ||
14354   test "X$hardcode_automatic" = "Xyes" ; then
14355
14356  # We can hardcode non-existent directories.
14357  if test "$hardcode_direct" != no &&
14358     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14359     # have to relink, otherwise we might link with an installed library
14360     # when we should be linking with a yet-to-be-installed one
14361     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14362     test "$hardcode_minus_L" != no; then
14363    # Linking always hardcodes the temporary library directory.
14364    hardcode_action=relink
14365  else
14366    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14367    hardcode_action=immediate
14368  fi
14369else
14370  # We cannot hardcode anything, or else we can only hardcode existing
14371  # directories.
14372  hardcode_action=unsupported
14373fi
14374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14375$as_echo "$hardcode_action" >&6; }
14376
14377if test "$hardcode_action" = relink ||
14378   test "$inherit_rpath" = yes; then
14379  # Fast installation is not supported
14380  enable_fast_install=no
14381elif test "$shlibpath_overrides_runpath" = yes ||
14382     test "$enable_shared" = no; then
14383  # Fast installation is not necessary
14384  enable_fast_install=needless
14385fi
14386
14387
14388
14389
14390
14391
14392  if test "x$enable_dlopen" != xyes; then
14393  enable_dlopen=unknown
14394  enable_dlopen_self=unknown
14395  enable_dlopen_self_static=unknown
14396else
14397  lt_cv_dlopen=no
14398  lt_cv_dlopen_libs=
14399
14400  case $host_os in
14401  beos*)
14402    lt_cv_dlopen="load_add_on"
14403    lt_cv_dlopen_libs=
14404    lt_cv_dlopen_self=yes
14405    ;;
14406
14407  mingw* | pw32* | cegcc*)
14408    lt_cv_dlopen="LoadLibrary"
14409    lt_cv_dlopen_libs=
14410    ;;
14411
14412  cygwin*)
14413    lt_cv_dlopen="dlopen"
14414    lt_cv_dlopen_libs=
14415    ;;
14416
14417  darwin*)
14418  # if libdl is installed we need to link against it
14419    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14420$as_echo_n "checking for dlopen in -ldl... " >&6; }
14421if ${ac_cv_lib_dl_dlopen+:} false; then :
14422  $as_echo_n "(cached) " >&6
14423else
14424  ac_check_lib_save_LIBS=$LIBS
14425LIBS="-ldl  $LIBS"
14426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427/* end confdefs.h.  */
14428
14429/* Override any GCC internal prototype to avoid an error.
14430   Use char because int might match the return type of a GCC
14431   builtin and then its argument prototype would still apply.  */
14432#ifdef __cplusplus
14433extern "C"
14434#endif
14435char dlopen ();
14436int
14437main ()
14438{
14439return dlopen ();
14440  ;
14441  return 0;
14442}
14443_ACEOF
14444if ac_fn_c_try_link "$LINENO"; then :
14445  ac_cv_lib_dl_dlopen=yes
14446else
14447  ac_cv_lib_dl_dlopen=no
14448fi
14449rm -f core conftest.err conftest.$ac_objext \
14450    conftest$ac_exeext conftest.$ac_ext
14451LIBS=$ac_check_lib_save_LIBS
14452fi
14453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14454$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14455if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14456  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14457else
14458
14459    lt_cv_dlopen="dyld"
14460    lt_cv_dlopen_libs=
14461    lt_cv_dlopen_self=yes
14462
14463fi
14464
14465    ;;
14466
14467  *)
14468    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14469if test "x$ac_cv_func_shl_load" = xyes; then :
14470  lt_cv_dlopen="shl_load"
14471else
14472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14473$as_echo_n "checking for shl_load in -ldld... " >&6; }
14474if ${ac_cv_lib_dld_shl_load+:} false; then :
14475  $as_echo_n "(cached) " >&6
14476else
14477  ac_check_lib_save_LIBS=$LIBS
14478LIBS="-ldld  $LIBS"
14479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480/* end confdefs.h.  */
14481
14482/* Override any GCC internal prototype to avoid an error.
14483   Use char because int might match the return type of a GCC
14484   builtin and then its argument prototype would still apply.  */
14485#ifdef __cplusplus
14486extern "C"
14487#endif
14488char shl_load ();
14489int
14490main ()
14491{
14492return shl_load ();
14493  ;
14494  return 0;
14495}
14496_ACEOF
14497if ac_fn_c_try_link "$LINENO"; then :
14498  ac_cv_lib_dld_shl_load=yes
14499else
14500  ac_cv_lib_dld_shl_load=no
14501fi
14502rm -f core conftest.err conftest.$ac_objext \
14503    conftest$ac_exeext conftest.$ac_ext
14504LIBS=$ac_check_lib_save_LIBS
14505fi
14506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14507$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14508if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14509  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14510else
14511  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14512if test "x$ac_cv_func_dlopen" = xyes; then :
14513  lt_cv_dlopen="dlopen"
14514else
14515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14516$as_echo_n "checking for dlopen in -ldl... " >&6; }
14517if ${ac_cv_lib_dl_dlopen+:} false; then :
14518  $as_echo_n "(cached) " >&6
14519else
14520  ac_check_lib_save_LIBS=$LIBS
14521LIBS="-ldl  $LIBS"
14522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523/* end confdefs.h.  */
14524
14525/* Override any GCC internal prototype to avoid an error.
14526   Use char because int might match the return type of a GCC
14527   builtin and then its argument prototype would still apply.  */
14528#ifdef __cplusplus
14529extern "C"
14530#endif
14531char dlopen ();
14532int
14533main ()
14534{
14535return dlopen ();
14536  ;
14537  return 0;
14538}
14539_ACEOF
14540if ac_fn_c_try_link "$LINENO"; then :
14541  ac_cv_lib_dl_dlopen=yes
14542else
14543  ac_cv_lib_dl_dlopen=no
14544fi
14545rm -f core conftest.err conftest.$ac_objext \
14546    conftest$ac_exeext conftest.$ac_ext
14547LIBS=$ac_check_lib_save_LIBS
14548fi
14549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14550$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14551if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14552  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14553else
14554  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14555$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14556if ${ac_cv_lib_svld_dlopen+:} false; then :
14557  $as_echo_n "(cached) " >&6
14558else
14559  ac_check_lib_save_LIBS=$LIBS
14560LIBS="-lsvld  $LIBS"
14561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14562/* end confdefs.h.  */
14563
14564/* Override any GCC internal prototype to avoid an error.
14565   Use char because int might match the return type of a GCC
14566   builtin and then its argument prototype would still apply.  */
14567#ifdef __cplusplus
14568extern "C"
14569#endif
14570char dlopen ();
14571int
14572main ()
14573{
14574return dlopen ();
14575  ;
14576  return 0;
14577}
14578_ACEOF
14579if ac_fn_c_try_link "$LINENO"; then :
14580  ac_cv_lib_svld_dlopen=yes
14581else
14582  ac_cv_lib_svld_dlopen=no
14583fi
14584rm -f core conftest.err conftest.$ac_objext \
14585    conftest$ac_exeext conftest.$ac_ext
14586LIBS=$ac_check_lib_save_LIBS
14587fi
14588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14589$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14590if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14591  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14592else
14593  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14594$as_echo_n "checking for dld_link in -ldld... " >&6; }
14595if ${ac_cv_lib_dld_dld_link+:} false; then :
14596  $as_echo_n "(cached) " >&6
14597else
14598  ac_check_lib_save_LIBS=$LIBS
14599LIBS="-ldld  $LIBS"
14600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14601/* end confdefs.h.  */
14602
14603/* Override any GCC internal prototype to avoid an error.
14604   Use char because int might match the return type of a GCC
14605   builtin and then its argument prototype would still apply.  */
14606#ifdef __cplusplus
14607extern "C"
14608#endif
14609char dld_link ();
14610int
14611main ()
14612{
14613return dld_link ();
14614  ;
14615  return 0;
14616}
14617_ACEOF
14618if ac_fn_c_try_link "$LINENO"; then :
14619  ac_cv_lib_dld_dld_link=yes
14620else
14621  ac_cv_lib_dld_dld_link=no
14622fi
14623rm -f core conftest.err conftest.$ac_objext \
14624    conftest$ac_exeext conftest.$ac_ext
14625LIBS=$ac_check_lib_save_LIBS
14626fi
14627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14628$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14629if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14630  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14631fi
14632
14633
14634fi
14635
14636
14637fi
14638
14639
14640fi
14641
14642
14643fi
14644
14645
14646fi
14647
14648    ;;
14649  esac
14650
14651  if test "x$lt_cv_dlopen" != xno; then
14652    enable_dlopen=yes
14653  else
14654    enable_dlopen=no
14655  fi
14656
14657  case $lt_cv_dlopen in
14658  dlopen)
14659    save_CPPFLAGS="$CPPFLAGS"
14660    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14661
14662    save_LDFLAGS="$LDFLAGS"
14663    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14664
14665    save_LIBS="$LIBS"
14666    LIBS="$lt_cv_dlopen_libs $LIBS"
14667
14668    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14669$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14670if ${lt_cv_dlopen_self+:} false; then :
14671  $as_echo_n "(cached) " >&6
14672else
14673  	  if test "$cross_compiling" = yes; then :
14674  lt_cv_dlopen_self=cross
14675else
14676  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14677  lt_status=$lt_dlunknown
14678  cat > conftest.$ac_ext <<_LT_EOF
14679#line $LINENO "configure"
14680#include "confdefs.h"
14681
14682#if HAVE_DLFCN_H
14683#include <dlfcn.h>
14684#endif
14685
14686#include <stdio.h>
14687
14688#ifdef RTLD_GLOBAL
14689#  define LT_DLGLOBAL		RTLD_GLOBAL
14690#else
14691#  ifdef DL_GLOBAL
14692#    define LT_DLGLOBAL		DL_GLOBAL
14693#  else
14694#    define LT_DLGLOBAL		0
14695#  endif
14696#endif
14697
14698/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14699   find out it does not work in some platform. */
14700#ifndef LT_DLLAZY_OR_NOW
14701#  ifdef RTLD_LAZY
14702#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14703#  else
14704#    ifdef DL_LAZY
14705#      define LT_DLLAZY_OR_NOW		DL_LAZY
14706#    else
14707#      ifdef RTLD_NOW
14708#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14709#      else
14710#        ifdef DL_NOW
14711#          define LT_DLLAZY_OR_NOW	DL_NOW
14712#        else
14713#          define LT_DLLAZY_OR_NOW	0
14714#        endif
14715#      endif
14716#    endif
14717#  endif
14718#endif
14719
14720/* When -fvisbility=hidden is used, assume the code has been annotated
14721   correspondingly for the symbols needed.  */
14722#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14723int fnord () __attribute__((visibility("default")));
14724#endif
14725
14726int fnord () { return 42; }
14727int main ()
14728{
14729  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14730  int status = $lt_dlunknown;
14731
14732  if (self)
14733    {
14734      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14735      else
14736        {
14737	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14738          else puts (dlerror ());
14739	}
14740      /* dlclose (self); */
14741    }
14742  else
14743    puts (dlerror ());
14744
14745  return status;
14746}
14747_LT_EOF
14748  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14749  (eval $ac_link) 2>&5
14750  ac_status=$?
14751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14752  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14753    (./conftest; exit; ) >&5 2>/dev/null
14754    lt_status=$?
14755    case x$lt_status in
14756      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14757      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14758      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14759    esac
14760  else :
14761    # compilation failed
14762    lt_cv_dlopen_self=no
14763  fi
14764fi
14765rm -fr conftest*
14766
14767
14768fi
14769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14770$as_echo "$lt_cv_dlopen_self" >&6; }
14771
14772    if test "x$lt_cv_dlopen_self" = xyes; then
14773      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14774      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14775$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14776if ${lt_cv_dlopen_self_static+:} false; then :
14777  $as_echo_n "(cached) " >&6
14778else
14779  	  if test "$cross_compiling" = yes; then :
14780  lt_cv_dlopen_self_static=cross
14781else
14782  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14783  lt_status=$lt_dlunknown
14784  cat > conftest.$ac_ext <<_LT_EOF
14785#line $LINENO "configure"
14786#include "confdefs.h"
14787
14788#if HAVE_DLFCN_H
14789#include <dlfcn.h>
14790#endif
14791
14792#include <stdio.h>
14793
14794#ifdef RTLD_GLOBAL
14795#  define LT_DLGLOBAL		RTLD_GLOBAL
14796#else
14797#  ifdef DL_GLOBAL
14798#    define LT_DLGLOBAL		DL_GLOBAL
14799#  else
14800#    define LT_DLGLOBAL		0
14801#  endif
14802#endif
14803
14804/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14805   find out it does not work in some platform. */
14806#ifndef LT_DLLAZY_OR_NOW
14807#  ifdef RTLD_LAZY
14808#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14809#  else
14810#    ifdef DL_LAZY
14811#      define LT_DLLAZY_OR_NOW		DL_LAZY
14812#    else
14813#      ifdef RTLD_NOW
14814#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14815#      else
14816#        ifdef DL_NOW
14817#          define LT_DLLAZY_OR_NOW	DL_NOW
14818#        else
14819#          define LT_DLLAZY_OR_NOW	0
14820#        endif
14821#      endif
14822#    endif
14823#  endif
14824#endif
14825
14826/* When -fvisbility=hidden is used, assume the code has been annotated
14827   correspondingly for the symbols needed.  */
14828#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14829int fnord () __attribute__((visibility("default")));
14830#endif
14831
14832int fnord () { return 42; }
14833int main ()
14834{
14835  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14836  int status = $lt_dlunknown;
14837
14838  if (self)
14839    {
14840      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14841      else
14842        {
14843	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14844          else puts (dlerror ());
14845	}
14846      /* dlclose (self); */
14847    }
14848  else
14849    puts (dlerror ());
14850
14851  return status;
14852}
14853_LT_EOF
14854  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14855  (eval $ac_link) 2>&5
14856  ac_status=$?
14857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14858  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14859    (./conftest; exit; ) >&5 2>/dev/null
14860    lt_status=$?
14861    case x$lt_status in
14862      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14863      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14864      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14865    esac
14866  else :
14867    # compilation failed
14868    lt_cv_dlopen_self_static=no
14869  fi
14870fi
14871rm -fr conftest*
14872
14873
14874fi
14875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14876$as_echo "$lt_cv_dlopen_self_static" >&6; }
14877    fi
14878
14879    CPPFLAGS="$save_CPPFLAGS"
14880    LDFLAGS="$save_LDFLAGS"
14881    LIBS="$save_LIBS"
14882    ;;
14883  esac
14884
14885  case $lt_cv_dlopen_self in
14886  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14887  *) enable_dlopen_self=unknown ;;
14888  esac
14889
14890  case $lt_cv_dlopen_self_static in
14891  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14892  *) enable_dlopen_self_static=unknown ;;
14893  esac
14894fi
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912striplib=
14913old_striplib=
14914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14915$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14916if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14917  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14918  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14920$as_echo "yes" >&6; }
14921else
14922# FIXME - insert some real tests, host_os isn't really good enough
14923  case $host_os in
14924  darwin*)
14925    if test -n "$STRIP" ; then
14926      striplib="$STRIP -x"
14927      old_striplib="$STRIP -S"
14928      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14929$as_echo "yes" >&6; }
14930    else
14931      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14932$as_echo "no" >&6; }
14933    fi
14934    ;;
14935  *)
14936    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14937$as_echo "no" >&6; }
14938    ;;
14939  esac
14940fi
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953  # Report which library types will actually be built
14954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14955$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14957$as_echo "$can_build_shared" >&6; }
14958
14959  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14960$as_echo_n "checking whether to build shared libraries... " >&6; }
14961  test "$can_build_shared" = "no" && enable_shared=no
14962
14963  # On AIX, shared libraries and static libraries use the same namespace, and
14964  # are all built from PIC.
14965  case $host_os in
14966  aix3*)
14967    test "$enable_shared" = yes && enable_static=no
14968    if test -n "$RANLIB"; then
14969      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14970      postinstall_cmds='$RANLIB $lib'
14971    fi
14972    ;;
14973
14974  aix[4-9]*)
14975    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14976      test "$enable_shared" = yes && enable_static=no
14977    fi
14978    ;;
14979  esac
14980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14981$as_echo "$enable_shared" >&6; }
14982
14983  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14984$as_echo_n "checking whether to build static libraries... " >&6; }
14985  # Make sure either enable_shared or enable_static is yes.
14986  test "$enable_shared" = yes || enable_static=yes
14987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14988$as_echo "$enable_static" >&6; }
14989
14990
14991
14992
14993fi
14994ac_ext=c
14995ac_cpp='$CPP $CPPFLAGS'
14996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14998ac_compiler_gnu=$ac_cv_c_compiler_gnu
14999
15000CC="$lt_save_CC"
15001
15002      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15003    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15004    (test "X$CXX" != "Xg++"))) ; then
15005  ac_ext=cpp
15006ac_cpp='$CXXCPP $CPPFLAGS'
15007ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15008ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15009ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15011$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15012if test -z "$CXXCPP"; then
15013  if ${ac_cv_prog_CXXCPP+:} false; then :
15014  $as_echo_n "(cached) " >&6
15015else
15016      # Double quotes because CXXCPP needs to be expanded
15017    for CXXCPP in "$CXX -E" "/lib/cpp"
15018    do
15019      ac_preproc_ok=false
15020for ac_cxx_preproc_warn_flag in '' yes
15021do
15022  # Use a header file that comes with gcc, so configuring glibc
15023  # with a fresh cross-compiler works.
15024  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15025  # <limits.h> exists even on freestanding compilers.
15026  # On the NeXT, cc -E runs the code through the compiler's parser,
15027  # not just through cpp. "Syntax error" is here to catch this case.
15028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029/* end confdefs.h.  */
15030#ifdef __STDC__
15031# include <limits.h>
15032#else
15033# include <assert.h>
15034#endif
15035		     Syntax error
15036_ACEOF
15037if ac_fn_cxx_try_cpp "$LINENO"; then :
15038
15039else
15040  # Broken: fails on valid input.
15041continue
15042fi
15043rm -f conftest.err conftest.i conftest.$ac_ext
15044
15045  # OK, works on sane cases.  Now check whether nonexistent headers
15046  # can be detected and how.
15047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15048/* end confdefs.h.  */
15049#include <ac_nonexistent.h>
15050_ACEOF
15051if ac_fn_cxx_try_cpp "$LINENO"; then :
15052  # Broken: success on invalid input.
15053continue
15054else
15055  # Passes both tests.
15056ac_preproc_ok=:
15057break
15058fi
15059rm -f conftest.err conftest.i conftest.$ac_ext
15060
15061done
15062# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15063rm -f conftest.i conftest.err conftest.$ac_ext
15064if $ac_preproc_ok; then :
15065  break
15066fi
15067
15068    done
15069    ac_cv_prog_CXXCPP=$CXXCPP
15070
15071fi
15072  CXXCPP=$ac_cv_prog_CXXCPP
15073else
15074  ac_cv_prog_CXXCPP=$CXXCPP
15075fi
15076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15077$as_echo "$CXXCPP" >&6; }
15078ac_preproc_ok=false
15079for ac_cxx_preproc_warn_flag in '' yes
15080do
15081  # Use a header file that comes with gcc, so configuring glibc
15082  # with a fresh cross-compiler works.
15083  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15084  # <limits.h> exists even on freestanding compilers.
15085  # On the NeXT, cc -E runs the code through the compiler's parser,
15086  # not just through cpp. "Syntax error" is here to catch this case.
15087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088/* end confdefs.h.  */
15089#ifdef __STDC__
15090# include <limits.h>
15091#else
15092# include <assert.h>
15093#endif
15094		     Syntax error
15095_ACEOF
15096if ac_fn_cxx_try_cpp "$LINENO"; then :
15097
15098else
15099  # Broken: fails on valid input.
15100continue
15101fi
15102rm -f conftest.err conftest.i conftest.$ac_ext
15103
15104  # OK, works on sane cases.  Now check whether nonexistent headers
15105  # can be detected and how.
15106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15107/* end confdefs.h.  */
15108#include <ac_nonexistent.h>
15109_ACEOF
15110if ac_fn_cxx_try_cpp "$LINENO"; then :
15111  # Broken: success on invalid input.
15112continue
15113else
15114  # Passes both tests.
15115ac_preproc_ok=:
15116break
15117fi
15118rm -f conftest.err conftest.i conftest.$ac_ext
15119
15120done
15121# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15122rm -f conftest.i conftest.err conftest.$ac_ext
15123if $ac_preproc_ok; then :
15124
15125else
15126  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15128as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15129See \`config.log' for more details" "$LINENO" 5; }
15130fi
15131
15132ac_ext=c
15133ac_cpp='$CPP $CPPFLAGS'
15134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15136ac_compiler_gnu=$ac_cv_c_compiler_gnu
15137
15138else
15139  _lt_caught_CXX_error=yes
15140fi
15141
15142ac_ext=cpp
15143ac_cpp='$CXXCPP $CPPFLAGS'
15144ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15145ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15146ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15147
15148archive_cmds_need_lc_CXX=no
15149allow_undefined_flag_CXX=
15150always_export_symbols_CXX=no
15151archive_expsym_cmds_CXX=
15152compiler_needs_object_CXX=no
15153export_dynamic_flag_spec_CXX=
15154hardcode_direct_CXX=no
15155hardcode_direct_absolute_CXX=no
15156hardcode_libdir_flag_spec_CXX=
15157hardcode_libdir_flag_spec_ld_CXX=
15158hardcode_libdir_separator_CXX=
15159hardcode_minus_L_CXX=no
15160hardcode_shlibpath_var_CXX=unsupported
15161hardcode_automatic_CXX=no
15162inherit_rpath_CXX=no
15163module_cmds_CXX=
15164module_expsym_cmds_CXX=
15165link_all_deplibs_CXX=unknown
15166old_archive_cmds_CXX=$old_archive_cmds
15167reload_flag_CXX=$reload_flag
15168reload_cmds_CXX=$reload_cmds
15169no_undefined_flag_CXX=
15170whole_archive_flag_spec_CXX=
15171enable_shared_with_static_runtimes_CXX=no
15172
15173# Source file extension for C++ test sources.
15174ac_ext=cpp
15175
15176# Object file extension for compiled C++ test sources.
15177objext=o
15178objext_CXX=$objext
15179
15180# No sense in running all these tests if we already determined that
15181# the CXX compiler isn't working.  Some variables (like enable_shared)
15182# are currently assumed to apply to all compilers on this platform,
15183# and will be corrupted by setting them based on a non-working compiler.
15184if test "$_lt_caught_CXX_error" != yes; then
15185  # Code to be used in simple compile tests
15186  lt_simple_compile_test_code="int some_variable = 0;"
15187
15188  # Code to be used in simple link tests
15189  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15190
15191  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15192
15193
15194
15195
15196
15197
15198# If no C compiler was specified, use CC.
15199LTCC=${LTCC-"$CC"}
15200
15201# If no C compiler flags were specified, use CFLAGS.
15202LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15203
15204# Allow CC to be a program name with arguments.
15205compiler=$CC
15206
15207
15208  # save warnings/boilerplate of simple test code
15209  ac_outfile=conftest.$ac_objext
15210echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15211eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15212_lt_compiler_boilerplate=`cat conftest.err`
15213$RM conftest*
15214
15215  ac_outfile=conftest.$ac_objext
15216echo "$lt_simple_link_test_code" >conftest.$ac_ext
15217eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15218_lt_linker_boilerplate=`cat conftest.err`
15219$RM -r conftest*
15220
15221
15222  # Allow CC to be a program name with arguments.
15223  lt_save_CC=$CC
15224  lt_save_CFLAGS=$CFLAGS
15225  lt_save_LD=$LD
15226  lt_save_GCC=$GCC
15227  GCC=$GXX
15228  lt_save_with_gnu_ld=$with_gnu_ld
15229  lt_save_path_LD=$lt_cv_path_LD
15230  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15231    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15232  else
15233    $as_unset lt_cv_prog_gnu_ld
15234  fi
15235  if test -n "${lt_cv_path_LDCXX+set}"; then
15236    lt_cv_path_LD=$lt_cv_path_LDCXX
15237  else
15238    $as_unset lt_cv_path_LD
15239  fi
15240  test -z "${LDCXX+set}" || LD=$LDCXX
15241  CC=${CXX-"c++"}
15242  CFLAGS=$CXXFLAGS
15243  compiler=$CC
15244  compiler_CXX=$CC
15245  for cc_temp in $compiler""; do
15246  case $cc_temp in
15247    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15248    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15249    \-*) ;;
15250    *) break;;
15251  esac
15252done
15253cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15254
15255
15256  if test -n "$compiler"; then
15257    # We don't want -fno-exception when compiling C++ code, so set the
15258    # no_builtin_flag separately
15259    if test "$GXX" = yes; then
15260      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15261    else
15262      lt_prog_compiler_no_builtin_flag_CXX=
15263    fi
15264
15265    if test "$GXX" = yes; then
15266      # Set up default GNU C++ configuration
15267
15268
15269
15270# Check whether --with-gnu-ld was given.
15271if test "${with_gnu_ld+set}" = set; then :
15272  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15273else
15274  with_gnu_ld=no
15275fi
15276
15277ac_prog=ld
15278if test "$GCC" = yes; then
15279  # Check if gcc -print-prog-name=ld gives a path.
15280  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15281$as_echo_n "checking for ld used by $CC... " >&6; }
15282  case $host in
15283  *-*-mingw*)
15284    # gcc leaves a trailing carriage return which upsets mingw
15285    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15286  *)
15287    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15288  esac
15289  case $ac_prog in
15290    # Accept absolute paths.
15291    [\\/]* | ?:[\\/]*)
15292      re_direlt='/[^/][^/]*/\.\./'
15293      # Canonicalize the pathname of ld
15294      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15295      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15296	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15297      done
15298      test -z "$LD" && LD="$ac_prog"
15299      ;;
15300  "")
15301    # If it fails, then pretend we aren't using GCC.
15302    ac_prog=ld
15303    ;;
15304  *)
15305    # If it is relative, then search for the first ld in PATH.
15306    with_gnu_ld=unknown
15307    ;;
15308  esac
15309elif test "$with_gnu_ld" = yes; then
15310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15311$as_echo_n "checking for GNU ld... " >&6; }
15312else
15313  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15314$as_echo_n "checking for non-GNU ld... " >&6; }
15315fi
15316if ${lt_cv_path_LD+:} false; then :
15317  $as_echo_n "(cached) " >&6
15318else
15319  if test -z "$LD"; then
15320  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15321  for ac_dir in $PATH; do
15322    IFS="$lt_save_ifs"
15323    test -z "$ac_dir" && ac_dir=.
15324    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15325      lt_cv_path_LD="$ac_dir/$ac_prog"
15326      # Check to see if the program is GNU ld.  I'd rather use --version,
15327      # but apparently some variants of GNU ld only accept -v.
15328      # Break only if it was the GNU/non-GNU ld that we prefer.
15329      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15330      *GNU* | *'with BFD'*)
15331	test "$with_gnu_ld" != no && break
15332	;;
15333      *)
15334	test "$with_gnu_ld" != yes && break
15335	;;
15336      esac
15337    fi
15338  done
15339  IFS="$lt_save_ifs"
15340else
15341  lt_cv_path_LD="$LD" # Let the user override the test with a path.
15342fi
15343fi
15344
15345LD="$lt_cv_path_LD"
15346if test -n "$LD"; then
15347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15348$as_echo "$LD" >&6; }
15349else
15350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15351$as_echo "no" >&6; }
15352fi
15353test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15355$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15356if ${lt_cv_prog_gnu_ld+:} false; then :
15357  $as_echo_n "(cached) " >&6
15358else
15359  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15360case `$LD -v 2>&1 </dev/null` in
15361*GNU* | *'with BFD'*)
15362  lt_cv_prog_gnu_ld=yes
15363  ;;
15364*)
15365  lt_cv_prog_gnu_ld=no
15366  ;;
15367esac
15368fi
15369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15370$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15371with_gnu_ld=$lt_cv_prog_gnu_ld
15372
15373
15374
15375
15376
15377
15378
15379      # Check if GNU C++ uses GNU ld as the underlying linker, since the
15380      # archiving commands below assume that GNU ld is being used.
15381      if test "$with_gnu_ld" = yes; then
15382        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15383        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'
15384
15385        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15386        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15387
15388        # If archive_cmds runs LD, not CC, wlarc should be empty
15389        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15390        #     investigate it a little bit more. (MM)
15391        wlarc='${wl}'
15392
15393        # ancient GNU ld didn't support --whole-archive et. al.
15394        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15395	  $GREP 'no-whole-archive' > /dev/null; then
15396          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15397        else
15398          whole_archive_flag_spec_CXX=
15399        fi
15400      else
15401        with_gnu_ld=no
15402        wlarc=
15403
15404        # A generic and very simple default shared library creation
15405        # command for GNU C++ for the case where it uses the native
15406        # linker, instead of GNU ld.  If possible, this setting should
15407        # overridden to take advantage of the native linker features on
15408        # the platform it is being used on.
15409        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15410      fi
15411
15412      # Commands to make compiler produce verbose output that lists
15413      # what "hidden" libraries, object files and flags are used when
15414      # linking a shared library.
15415      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15416
15417    else
15418      GXX=no
15419      with_gnu_ld=no
15420      wlarc=
15421    fi
15422
15423    # PORTME: fill in a description of your system's C++ link characteristics
15424    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15425$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15426    ld_shlibs_CXX=yes
15427    case $host_os in
15428      aix3*)
15429        # FIXME: insert proper C++ library support
15430        ld_shlibs_CXX=no
15431        ;;
15432      aix[4-9]*)
15433        if test "$host_cpu" = ia64; then
15434          # On IA64, the linker does run time linking by default, so we don't
15435          # have to do anything special.
15436          aix_use_runtimelinking=no
15437          exp_sym_flag='-Bexport'
15438          no_entry_flag=""
15439        else
15440          aix_use_runtimelinking=no
15441
15442          # Test if we are trying to use run time linking or normal
15443          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15444          # need to do runtime linking.
15445          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15446	    for ld_flag in $LDFLAGS; do
15447	      case $ld_flag in
15448	      *-brtl*)
15449	        aix_use_runtimelinking=yes
15450	        break
15451	        ;;
15452	      esac
15453	    done
15454	    ;;
15455          esac
15456
15457          exp_sym_flag='-bexport'
15458          no_entry_flag='-bnoentry'
15459        fi
15460
15461        # When large executables or shared objects are built, AIX ld can
15462        # have problems creating the table of contents.  If linking a library
15463        # or program results in "error TOC overflow" add -mminimal-toc to
15464        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15465        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15466
15467        archive_cmds_CXX=''
15468        hardcode_direct_CXX=yes
15469        hardcode_direct_absolute_CXX=yes
15470        hardcode_libdir_separator_CXX=':'
15471        link_all_deplibs_CXX=yes
15472        file_list_spec_CXX='${wl}-f,'
15473
15474        if test "$GXX" = yes; then
15475          case $host_os in aix4.[012]|aix4.[012].*)
15476          # We only want to do this on AIX 4.2 and lower, the check
15477          # below for broken collect2 doesn't work under 4.3+
15478	  collect2name=`${CC} -print-prog-name=collect2`
15479	  if test -f "$collect2name" &&
15480	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15481	  then
15482	    # We have reworked collect2
15483	    :
15484	  else
15485	    # We have old collect2
15486	    hardcode_direct_CXX=unsupported
15487	    # It fails to find uninstalled libraries when the uninstalled
15488	    # path is not listed in the libpath.  Setting hardcode_minus_L
15489	    # to unsupported forces relinking
15490	    hardcode_minus_L_CXX=yes
15491	    hardcode_libdir_flag_spec_CXX='-L$libdir'
15492	    hardcode_libdir_separator_CXX=
15493	  fi
15494          esac
15495          shared_flag='-shared'
15496	  if test "$aix_use_runtimelinking" = yes; then
15497	    shared_flag="$shared_flag "'${wl}-G'
15498	  fi
15499        else
15500          # not using gcc
15501          if test "$host_cpu" = ia64; then
15502	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15503	  # chokes on -Wl,-G. The following line is correct:
15504	  shared_flag='-G'
15505          else
15506	    if test "$aix_use_runtimelinking" = yes; then
15507	      shared_flag='${wl}-G'
15508	    else
15509	      shared_flag='${wl}-bM:SRE'
15510	    fi
15511          fi
15512        fi
15513
15514        export_dynamic_flag_spec_CXX='${wl}-bexpall'
15515        # It seems that -bexpall does not export symbols beginning with
15516        # underscore (_), so it is better to generate a list of symbols to
15517	# export.
15518        always_export_symbols_CXX=yes
15519        if test "$aix_use_runtimelinking" = yes; then
15520          # Warning - without using the other runtime loading flags (-brtl),
15521          # -berok will link without error, but may produce a broken library.
15522          allow_undefined_flag_CXX='-berok'
15523          # Determine the default libpath from the value encoded in an empty
15524          # executable.
15525          if test "${lt_cv_aix_libpath+set}" = set; then
15526  aix_libpath=$lt_cv_aix_libpath
15527else
15528  if ${lt_cv_aix_libpath__CXX+:} false; then :
15529  $as_echo_n "(cached) " >&6
15530else
15531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15532/* end confdefs.h.  */
15533
15534int
15535main ()
15536{
15537
15538  ;
15539  return 0;
15540}
15541_ACEOF
15542if ac_fn_cxx_try_link "$LINENO"; then :
15543
15544  lt_aix_libpath_sed='
15545      /Import File Strings/,/^$/ {
15546	  /^0/ {
15547	      s/^0  *\([^ ]*\) *$/\1/
15548	      p
15549	  }
15550      }'
15551  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15552  # Check for a 64-bit object if we didn't find anything.
15553  if test -z "$lt_cv_aix_libpath__CXX"; then
15554    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15555  fi
15556fi
15557rm -f core conftest.err conftest.$ac_objext \
15558    conftest$ac_exeext conftest.$ac_ext
15559  if test -z "$lt_cv_aix_libpath__CXX"; then
15560    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15561  fi
15562
15563fi
15564
15565  aix_libpath=$lt_cv_aix_libpath__CXX
15566fi
15567
15568          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15569
15570          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"
15571        else
15572          if test "$host_cpu" = ia64; then
15573	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15574	    allow_undefined_flag_CXX="-z nodefs"
15575	    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"
15576          else
15577	    # Determine the default libpath from the value encoded in an
15578	    # empty executable.
15579	    if test "${lt_cv_aix_libpath+set}" = set; then
15580  aix_libpath=$lt_cv_aix_libpath
15581else
15582  if ${lt_cv_aix_libpath__CXX+:} false; then :
15583  $as_echo_n "(cached) " >&6
15584else
15585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15586/* end confdefs.h.  */
15587
15588int
15589main ()
15590{
15591
15592  ;
15593  return 0;
15594}
15595_ACEOF
15596if ac_fn_cxx_try_link "$LINENO"; then :
15597
15598  lt_aix_libpath_sed='
15599      /Import File Strings/,/^$/ {
15600	  /^0/ {
15601	      s/^0  *\([^ ]*\) *$/\1/
15602	      p
15603	  }
15604      }'
15605  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15606  # Check for a 64-bit object if we didn't find anything.
15607  if test -z "$lt_cv_aix_libpath__CXX"; then
15608    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15609  fi
15610fi
15611rm -f core conftest.err conftest.$ac_objext \
15612    conftest$ac_exeext conftest.$ac_ext
15613  if test -z "$lt_cv_aix_libpath__CXX"; then
15614    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15615  fi
15616
15617fi
15618
15619  aix_libpath=$lt_cv_aix_libpath__CXX
15620fi
15621
15622	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15623	    # Warning - without using the other run time loading flags,
15624	    # -berok will link without error, but may produce a broken library.
15625	    no_undefined_flag_CXX=' ${wl}-bernotok'
15626	    allow_undefined_flag_CXX=' ${wl}-berok'
15627	    if test "$with_gnu_ld" = yes; then
15628	      # We only use this code for GNU lds that support --whole-archive.
15629	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15630	    else
15631	      # Exported symbols can be pulled into shared objects from archives
15632	      whole_archive_flag_spec_CXX='$convenience'
15633	    fi
15634	    archive_cmds_need_lc_CXX=yes
15635	    # This is similar to how AIX traditionally builds its shared
15636	    # libraries.
15637	    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'
15638          fi
15639        fi
15640        ;;
15641
15642      beos*)
15643	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15644	  allow_undefined_flag_CXX=unsupported
15645	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15646	  # support --undefined.  This deserves some investigation.  FIXME
15647	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15648	else
15649	  ld_shlibs_CXX=no
15650	fi
15651	;;
15652
15653      chorus*)
15654        case $cc_basename in
15655          *)
15656	  # FIXME: insert proper C++ library support
15657	  ld_shlibs_CXX=no
15658	  ;;
15659        esac
15660        ;;
15661
15662      cygwin* | mingw* | pw32* | cegcc*)
15663	case $GXX,$cc_basename in
15664	,cl* | no,cl*)
15665	  # Native MSVC
15666	  # hardcode_libdir_flag_spec is actually meaningless, as there is
15667	  # no search path for DLLs.
15668	  hardcode_libdir_flag_spec_CXX=' '
15669	  allow_undefined_flag_CXX=unsupported
15670	  always_export_symbols_CXX=yes
15671	  file_list_spec_CXX='@'
15672	  # Tell ltmain to make .lib files, not .a files.
15673	  libext=lib
15674	  # Tell ltmain to make .dll files, not .so files.
15675	  shrext_cmds=".dll"
15676	  # FIXME: Setting linknames here is a bad hack.
15677	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15678	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15679	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15680	    else
15681	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15682	    fi~
15683	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15684	    linknames='
15685	  # The linker will not automatically build a static lib if we build a DLL.
15686	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15687	  enable_shared_with_static_runtimes_CXX=yes
15688	  # Don't use ranlib
15689	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
15690	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15691	    lt_tool_outputfile="@TOOL_OUTPUT@"~
15692	    case $lt_outputfile in
15693	      *.exe|*.EXE) ;;
15694	      *)
15695		lt_outputfile="$lt_outputfile.exe"
15696		lt_tool_outputfile="$lt_tool_outputfile.exe"
15697		;;
15698	    esac~
15699	    func_to_tool_file "$lt_outputfile"~
15700	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15701	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15702	      $RM "$lt_outputfile.manifest";
15703	    fi'
15704	  ;;
15705	*)
15706	  # g++
15707	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15708	  # as there is no search path for DLLs.
15709	  hardcode_libdir_flag_spec_CXX='-L$libdir'
15710	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
15711	  allow_undefined_flag_CXX=unsupported
15712	  always_export_symbols_CXX=no
15713	  enable_shared_with_static_runtimes_CXX=yes
15714
15715	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15716	    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'
15717	    # If the export-symbols file already is a .def file (1st line
15718	    # is EXPORTS), use it as is; otherwise, prepend...
15719	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15720	      cp $export_symbols $output_objdir/$soname.def;
15721	    else
15722	      echo EXPORTS > $output_objdir/$soname.def;
15723	      cat $export_symbols >> $output_objdir/$soname.def;
15724	    fi~
15725	    $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'
15726	  else
15727	    ld_shlibs_CXX=no
15728	  fi
15729	  ;;
15730	esac
15731	;;
15732      darwin* | rhapsody*)
15733
15734
15735  archive_cmds_need_lc_CXX=no
15736  hardcode_direct_CXX=no
15737  hardcode_automatic_CXX=yes
15738  hardcode_shlibpath_var_CXX=unsupported
15739  if test "$lt_cv_ld_force_load" = "yes"; then
15740    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\"`'
15741  else
15742    whole_archive_flag_spec_CXX=''
15743  fi
15744  link_all_deplibs_CXX=yes
15745  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15746  case $cc_basename in
15747     ifort*) _lt_dar_can_shared=yes ;;
15748     *) _lt_dar_can_shared=$GCC ;;
15749  esac
15750  if test "$_lt_dar_can_shared" = "yes"; then
15751    output_verbose_link_cmd=func_echo_all
15752    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}"
15753    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15754    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}"
15755    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}"
15756       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15757      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}"
15758      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}"
15759    fi
15760
15761  else
15762  ld_shlibs_CXX=no
15763  fi
15764
15765	;;
15766
15767      dgux*)
15768        case $cc_basename in
15769          ec++*)
15770	    # FIXME: insert proper C++ library support
15771	    ld_shlibs_CXX=no
15772	    ;;
15773          ghcx*)
15774	    # Green Hills C++ Compiler
15775	    # FIXME: insert proper C++ library support
15776	    ld_shlibs_CXX=no
15777	    ;;
15778          *)
15779	    # FIXME: insert proper C++ library support
15780	    ld_shlibs_CXX=no
15781	    ;;
15782        esac
15783        ;;
15784
15785      freebsd[12]*)
15786        # C++ shared libraries reported to be fairly broken before
15787	# switch to ELF
15788        ld_shlibs_CXX=no
15789        ;;
15790
15791      freebsd-elf*)
15792        archive_cmds_need_lc_CXX=no
15793        ;;
15794
15795      freebsd* | dragonfly*)
15796        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15797        # conventions
15798        ld_shlibs_CXX=yes
15799        ;;
15800
15801      gnu*)
15802        ;;
15803
15804      haiku*)
15805        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15806        link_all_deplibs_CXX=yes
15807        ;;
15808
15809      hpux9*)
15810        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15811        hardcode_libdir_separator_CXX=:
15812        export_dynamic_flag_spec_CXX='${wl}-E'
15813        hardcode_direct_CXX=yes
15814        hardcode_minus_L_CXX=yes # Not in the search PATH,
15815				             # but as the default
15816				             # location of the library.
15817
15818        case $cc_basename in
15819          CC*)
15820            # FIXME: insert proper C++ library support
15821            ld_shlibs_CXX=no
15822            ;;
15823          aCC*)
15824            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'
15825            # Commands to make compiler produce verbose output that lists
15826            # what "hidden" libraries, object files and flags are used when
15827            # linking a shared library.
15828            #
15829            # There doesn't appear to be a way to prevent this compiler from
15830            # explicitly linking system object files so we need to strip them
15831            # from the output so that they don't get included in the library
15832            # dependencies.
15833            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"'
15834            ;;
15835          *)
15836            if test "$GXX" = yes; then
15837              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'
15838            else
15839              # FIXME: insert proper C++ library support
15840              ld_shlibs_CXX=no
15841            fi
15842            ;;
15843        esac
15844        ;;
15845
15846      hpux10*|hpux11*)
15847        if test $with_gnu_ld = no; then
15848	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15849	  hardcode_libdir_separator_CXX=:
15850
15851          case $host_cpu in
15852            hppa*64*|ia64*)
15853              ;;
15854            *)
15855	      export_dynamic_flag_spec_CXX='${wl}-E'
15856              ;;
15857          esac
15858        fi
15859        case $host_cpu in
15860          hppa*64*|ia64*)
15861            hardcode_direct_CXX=no
15862            hardcode_shlibpath_var_CXX=no
15863            ;;
15864          *)
15865            hardcode_direct_CXX=yes
15866            hardcode_direct_absolute_CXX=yes
15867            hardcode_minus_L_CXX=yes # Not in the search PATH,
15868					         # but as the default
15869					         # location of the library.
15870            ;;
15871        esac
15872
15873        case $cc_basename in
15874          CC*)
15875	    # FIXME: insert proper C++ library support
15876	    ld_shlibs_CXX=no
15877	    ;;
15878          aCC*)
15879	    case $host_cpu in
15880	      hppa*64*)
15881	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15882	        ;;
15883	      ia64*)
15884	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15885	        ;;
15886	      *)
15887	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15888	        ;;
15889	    esac
15890	    # Commands to make compiler produce verbose output that lists
15891	    # what "hidden" libraries, object files and flags are used when
15892	    # linking a shared library.
15893	    #
15894	    # There doesn't appear to be a way to prevent this compiler from
15895	    # explicitly linking system object files so we need to strip them
15896	    # from the output so that they don't get included in the library
15897	    # dependencies.
15898	    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"'
15899	    ;;
15900          *)
15901	    if test "$GXX" = yes; then
15902	      if test $with_gnu_ld = no; then
15903	        case $host_cpu in
15904	          hppa*64*)
15905	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15906	            ;;
15907	          ia64*)
15908	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15909	            ;;
15910	          *)
15911	            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'
15912	            ;;
15913	        esac
15914	      fi
15915	    else
15916	      # FIXME: insert proper C++ library support
15917	      ld_shlibs_CXX=no
15918	    fi
15919	    ;;
15920        esac
15921        ;;
15922
15923      interix[3-9]*)
15924	hardcode_direct_CXX=no
15925	hardcode_shlibpath_var_CXX=no
15926	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15927	export_dynamic_flag_spec_CXX='${wl}-E'
15928	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15929	# Instead, shared libraries are loaded at an image base (0x10000000 by
15930	# default) and relocated if they conflict, which is a slow very memory
15931	# consuming and fragmenting process.  To avoid this, we pick a random,
15932	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15933	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15934	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'
15935	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'
15936	;;
15937      irix5* | irix6*)
15938        case $cc_basename in
15939          CC*)
15940	    # SGI C++
15941	    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'
15942
15943	    # Archives containing C++ object files must be created using
15944	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15945	    # necessary to make sure instantiated templates are included
15946	    # in the archive.
15947	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15948	    ;;
15949          *)
15950	    if test "$GXX" = yes; then
15951	      if test "$with_gnu_ld" = no; then
15952	        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'
15953	      else
15954	        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'
15955	      fi
15956	    fi
15957	    link_all_deplibs_CXX=yes
15958	    ;;
15959        esac
15960        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15961        hardcode_libdir_separator_CXX=:
15962        inherit_rpath_CXX=yes
15963        ;;
15964
15965      linux* | k*bsd*-gnu | kopensolaris*-gnu)
15966        case $cc_basename in
15967          KCC*)
15968	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15969
15970	    # KCC will only create a shared library if the output file
15971	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15972	    # to its proper name (with version) after linking.
15973	    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'
15974	    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'
15975	    # Commands to make compiler produce verbose output that lists
15976	    # what "hidden" libraries, object files and flags are used when
15977	    # linking a shared library.
15978	    #
15979	    # There doesn't appear to be a way to prevent this compiler from
15980	    # explicitly linking system object files so we need to strip them
15981	    # from the output so that they don't get included in the library
15982	    # dependencies.
15983	    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"'
15984
15985	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15986	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15987
15988	    # Archives containing C++ object files must be created using
15989	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15990	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15991	    ;;
15992	  icpc* | ecpc* )
15993	    # Intel C++
15994	    with_gnu_ld=yes
15995	    # version 8.0 and above of icpc choke on multiply defined symbols
15996	    # if we add $predep_objects and $postdep_objects, however 7.1 and
15997	    # earlier do not add the objects themselves.
15998	    case `$CC -V 2>&1` in
15999	      *"Version 7."*)
16000	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16001		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'
16002		;;
16003	      *)  # Version 8.0 or newer
16004	        tmp_idyn=
16005	        case $host_cpu in
16006		  ia64*) tmp_idyn=' -i_dynamic';;
16007		esac
16008	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16009		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'
16010		;;
16011	    esac
16012	    archive_cmds_need_lc_CXX=no
16013	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16014	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16015	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16016	    ;;
16017          pgCC* | pgcpp*)
16018            # Portland Group C++ compiler
16019	    case `$CC -V` in
16020	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16021	      prelink_cmds_CXX='tpldir=Template.dir~
16022		rm -rf $tpldir~
16023		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16024		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16025	      old_archive_cmds_CXX='tpldir=Template.dir~
16026		rm -rf $tpldir~
16027		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16028		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16029		$RANLIB $oldlib'
16030	      archive_cmds_CXX='tpldir=Template.dir~
16031		rm -rf $tpldir~
16032		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16033		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16034	      archive_expsym_cmds_CXX='tpldir=Template.dir~
16035		rm -rf $tpldir~
16036		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16037		$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'
16038	      ;;
16039	    *) # Version 6 and above use weak symbols
16040	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16041	      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'
16042	      ;;
16043	    esac
16044
16045	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16046	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16047	    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'
16048            ;;
16049	  cxx*)
16050	    # Compaq C++
16051	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16052	    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'
16053
16054	    runpath_var=LD_RUN_PATH
16055	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16056	    hardcode_libdir_separator_CXX=:
16057
16058	    # Commands to make compiler produce verbose output that lists
16059	    # what "hidden" libraries, object files and flags are used when
16060	    # linking a shared library.
16061	    #
16062	    # There doesn't appear to be a way to prevent this compiler from
16063	    # explicitly linking system object files so we need to strip them
16064	    # from the output so that they don't get included in the library
16065	    # dependencies.
16066	    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'
16067	    ;;
16068	  xl* | mpixl* | bgxl*)
16069	    # IBM XL 8.0 on PPC, with GNU ld
16070	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16071	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16072	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16073	    if test "x$supports_anon_versioning" = xyes; then
16074	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16075		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16076		echo "local: *; };" >> $output_objdir/$libname.ver~
16077		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16078	    fi
16079	    ;;
16080	  *)
16081	    case `$CC -V 2>&1 | sed 5q` in
16082	    *Sun\ C*)
16083	      # Sun C++ 5.9
16084	      no_undefined_flag_CXX=' -zdefs'
16085	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16086	      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'
16087	      hardcode_libdir_flag_spec_CXX='-R$libdir'
16088	      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'
16089	      compiler_needs_object_CXX=yes
16090
16091	      # Not sure whether something based on
16092	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16093	      # would be better.
16094	      output_verbose_link_cmd='func_echo_all'
16095
16096	      # Archives containing C++ object files must be created using
16097	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16098	      # necessary to make sure instantiated templates are included
16099	      # in the archive.
16100	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16101	      ;;
16102	    esac
16103	    ;;
16104	esac
16105	;;
16106
16107      lynxos*)
16108        # FIXME: insert proper C++ library support
16109	ld_shlibs_CXX=no
16110	;;
16111
16112      m88k*)
16113        # FIXME: insert proper C++ library support
16114        ld_shlibs_CXX=no
16115	;;
16116
16117      mvs*)
16118        case $cc_basename in
16119          cxx*)
16120	    # FIXME: insert proper C++ library support
16121	    ld_shlibs_CXX=no
16122	    ;;
16123	  *)
16124	    # FIXME: insert proper C++ library support
16125	    ld_shlibs_CXX=no
16126	    ;;
16127	esac
16128	;;
16129
16130      netbsd*)
16131        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16132	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16133	  wlarc=
16134	  hardcode_libdir_flag_spec_CXX='-R$libdir'
16135	  hardcode_direct_CXX=yes
16136	  hardcode_shlibpath_var_CXX=no
16137	fi
16138	# Workaround some broken pre-1.5 toolchains
16139	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16140	;;
16141
16142      *nto* | *qnx*)
16143        ld_shlibs_CXX=yes
16144	;;
16145
16146      openbsd2*)
16147        # C++ shared libraries are fairly broken
16148	ld_shlibs_CXX=no
16149	;;
16150
16151      openbsd*)
16152	if test -f /usr/libexec/ld.so; then
16153	  hardcode_direct_CXX=yes
16154	  hardcode_shlibpath_var_CXX=no
16155	  hardcode_direct_absolute_CXX=yes
16156	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16157	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16158	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16159	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16160	    export_dynamic_flag_spec_CXX='${wl}-E'
16161	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16162	  fi
16163	  output_verbose_link_cmd=func_echo_all
16164	else
16165	  ld_shlibs_CXX=no
16166	fi
16167	;;
16168
16169      osf3* | osf4* | osf5*)
16170        case $cc_basename in
16171          KCC*)
16172	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16173
16174	    # KCC will only create a shared library if the output file
16175	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16176	    # to its proper name (with version) after linking.
16177	    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'
16178
16179	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16180	    hardcode_libdir_separator_CXX=:
16181
16182	    # Archives containing C++ object files must be created using
16183	    # the KAI C++ compiler.
16184	    case $host in
16185	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16186	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16187	    esac
16188	    ;;
16189          RCC*)
16190	    # Rational C++ 2.4.1
16191	    # FIXME: insert proper C++ library support
16192	    ld_shlibs_CXX=no
16193	    ;;
16194          cxx*)
16195	    case $host in
16196	      osf3*)
16197	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16198	        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'
16199	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16200		;;
16201	      *)
16202	        allow_undefined_flag_CXX=' -expect_unresolved \*'
16203	        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'
16204	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16205	          echo "-hidden">> $lib.exp~
16206	          $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~
16207	          $RM $lib.exp'
16208	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16209		;;
16210	    esac
16211
16212	    hardcode_libdir_separator_CXX=:
16213
16214	    # Commands to make compiler produce verbose output that lists
16215	    # what "hidden" libraries, object files and flags are used when
16216	    # linking a shared library.
16217	    #
16218	    # There doesn't appear to be a way to prevent this compiler from
16219	    # explicitly linking system object files so we need to strip them
16220	    # from the output so that they don't get included in the library
16221	    # dependencies.
16222	    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"'
16223	    ;;
16224	  *)
16225	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16226	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16227	      case $host in
16228	        osf3*)
16229	          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'
16230		  ;;
16231	        *)
16232	          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'
16233		  ;;
16234	      esac
16235
16236	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16237	      hardcode_libdir_separator_CXX=:
16238
16239	      # Commands to make compiler produce verbose output that lists
16240	      # what "hidden" libraries, object files and flags are used when
16241	      # linking a shared library.
16242	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16243
16244	    else
16245	      # FIXME: insert proper C++ library support
16246	      ld_shlibs_CXX=no
16247	    fi
16248	    ;;
16249        esac
16250        ;;
16251
16252      psos*)
16253        # FIXME: insert proper C++ library support
16254        ld_shlibs_CXX=no
16255        ;;
16256
16257      sunos4*)
16258        case $cc_basename in
16259          CC*)
16260	    # Sun C++ 4.x
16261	    # FIXME: insert proper C++ library support
16262	    ld_shlibs_CXX=no
16263	    ;;
16264          lcc*)
16265	    # Lucid
16266	    # FIXME: insert proper C++ library support
16267	    ld_shlibs_CXX=no
16268	    ;;
16269          *)
16270	    # FIXME: insert proper C++ library support
16271	    ld_shlibs_CXX=no
16272	    ;;
16273        esac
16274        ;;
16275
16276      solaris*)
16277        case $cc_basename in
16278          CC* | sunCC*)
16279	    # Sun C++ 4.2, 5.x and Centerline C++
16280            archive_cmds_need_lc_CXX=yes
16281	    no_undefined_flag_CXX=' -zdefs'
16282	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16283	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16284	      $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'
16285
16286	    hardcode_libdir_flag_spec_CXX='-R$libdir'
16287	    hardcode_shlibpath_var_CXX=no
16288	    case $host_os in
16289	      solaris2.[0-5] | solaris2.[0-5].*) ;;
16290	      *)
16291		# The compiler driver will combine and reorder linker options,
16292		# but understands `-z linker_flag'.
16293	        # Supported since Solaris 2.6 (maybe 2.5.1?)
16294		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16295	        ;;
16296	    esac
16297	    link_all_deplibs_CXX=yes
16298
16299	    output_verbose_link_cmd='func_echo_all'
16300
16301	    # Archives containing C++ object files must be created using
16302	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16303	    # necessary to make sure instantiated templates are included
16304	    # in the archive.
16305	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16306	    ;;
16307          gcx*)
16308	    # Green Hills C++ Compiler
16309	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16310
16311	    # The C++ compiler must be used to create the archive.
16312	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16313	    ;;
16314          *)
16315	    # GNU C++ compiler with Solaris linker
16316	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16317	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16318	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16319	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16320	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16321		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16322
16323	        # Commands to make compiler produce verbose output that lists
16324	        # what "hidden" libraries, object files and flags are used when
16325	        # linking a shared library.
16326	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16327	      else
16328	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
16329	        # platform.
16330	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16331	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16332		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16333
16334	        # Commands to make compiler produce verbose output that lists
16335	        # what "hidden" libraries, object files and flags are used when
16336	        # linking a shared library.
16337	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16338	      fi
16339
16340	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16341	      case $host_os in
16342		solaris2.[0-5] | solaris2.[0-5].*) ;;
16343		*)
16344		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16345		  ;;
16346	      esac
16347	    fi
16348	    ;;
16349        esac
16350        ;;
16351
16352    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16353      no_undefined_flag_CXX='${wl}-z,text'
16354      archive_cmds_need_lc_CXX=no
16355      hardcode_shlibpath_var_CXX=no
16356      runpath_var='LD_RUN_PATH'
16357
16358      case $cc_basename in
16359        CC*)
16360	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16361	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16362	  ;;
16363	*)
16364	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16365	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16366	  ;;
16367      esac
16368      ;;
16369
16370      sysv5* | sco3.2v5* | sco5v6*)
16371	# Note: We can NOT use -z defs as we might desire, because we do not
16372	# link with -lc, and that would cause any symbols used from libc to
16373	# always be unresolved, which means just about no library would
16374	# ever link correctly.  If we're not using GNU ld we use -z text
16375	# though, which does catch some bad symbols but isn't as heavy-handed
16376	# as -z defs.
16377	no_undefined_flag_CXX='${wl}-z,text'
16378	allow_undefined_flag_CXX='${wl}-z,nodefs'
16379	archive_cmds_need_lc_CXX=no
16380	hardcode_shlibpath_var_CXX=no
16381	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16382	hardcode_libdir_separator_CXX=':'
16383	link_all_deplibs_CXX=yes
16384	export_dynamic_flag_spec_CXX='${wl}-Bexport'
16385	runpath_var='LD_RUN_PATH'
16386
16387	case $cc_basename in
16388          CC*)
16389	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16390	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16391	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16392	      '"$old_archive_cmds_CXX"
16393	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16394	      '"$reload_cmds_CXX"
16395	    ;;
16396	  *)
16397	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16398	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16399	    ;;
16400	esac
16401      ;;
16402
16403      tandem*)
16404        case $cc_basename in
16405          NCC*)
16406	    # NonStop-UX NCC 3.20
16407	    # FIXME: insert proper C++ library support
16408	    ld_shlibs_CXX=no
16409	    ;;
16410          *)
16411	    # FIXME: insert proper C++ library support
16412	    ld_shlibs_CXX=no
16413	    ;;
16414        esac
16415        ;;
16416
16417      vxworks*)
16418        # FIXME: insert proper C++ library support
16419        ld_shlibs_CXX=no
16420        ;;
16421
16422      *)
16423        # FIXME: insert proper C++ library support
16424        ld_shlibs_CXX=no
16425        ;;
16426    esac
16427
16428    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16429$as_echo "$ld_shlibs_CXX" >&6; }
16430    test "$ld_shlibs_CXX" = no && can_build_shared=no
16431
16432    GCC_CXX="$GXX"
16433    LD_CXX="$LD"
16434
16435    ## CAVEAT EMPTOR:
16436    ## There is no encapsulation within the following macros, do not change
16437    ## the running order or otherwise move them around unless you know exactly
16438    ## what you are doing...
16439    # Dependencies to place before and after the object being linked:
16440predep_objects_CXX=
16441postdep_objects_CXX=
16442predeps_CXX=
16443postdeps_CXX=
16444compiler_lib_search_path_CXX=
16445
16446cat > conftest.$ac_ext <<_LT_EOF
16447class Foo
16448{
16449public:
16450  Foo (void) { a = 0; }
16451private:
16452  int a;
16453};
16454_LT_EOF
16455
16456
16457_lt_libdeps_save_CFLAGS=$CFLAGS
16458case "$CC $CFLAGS " in #(
16459*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16460*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16461esac
16462
16463if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16464  (eval $ac_compile) 2>&5
16465  ac_status=$?
16466  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16467  test $ac_status = 0; }; then
16468  # Parse the compiler output and extract the necessary
16469  # objects, libraries and library flags.
16470
16471  # Sentinel used to keep track of whether or not we are before
16472  # the conftest object file.
16473  pre_test_object_deps_done=no
16474
16475  for p in `eval "$output_verbose_link_cmd"`; do
16476    case ${prev}${p} in
16477
16478    -L* | -R* | -l*)
16479       # Some compilers place space between "-{L,R}" and the path.
16480       # Remove the space.
16481       if test $p = "-L" ||
16482          test $p = "-R"; then
16483	 prev=$p
16484	 continue
16485       fi
16486
16487       # Expand the sysroot to ease extracting the directories later.
16488       if test -z "$prev"; then
16489         case $p in
16490         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16491         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16492         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16493         esac
16494       fi
16495       case $p in
16496       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16497       esac
16498       if test "$pre_test_object_deps_done" = no; then
16499	 case ${prev} in
16500	 -L | -R)
16501	   # Internal compiler library paths should come after those
16502	   # provided the user.  The postdeps already come after the
16503	   # user supplied libs so there is no need to process them.
16504	   if test -z "$compiler_lib_search_path_CXX"; then
16505	     compiler_lib_search_path_CXX="${prev}${p}"
16506	   else
16507	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16508	   fi
16509	   ;;
16510	 # The "-l" case would never come before the object being
16511	 # linked, so don't bother handling this case.
16512	 esac
16513       else
16514	 if test -z "$postdeps_CXX"; then
16515	   postdeps_CXX="${prev}${p}"
16516	 else
16517	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16518	 fi
16519       fi
16520       prev=
16521       ;;
16522
16523    *.lto.$objext) ;; # Ignore GCC LTO objects
16524    *.$objext)
16525       # This assumes that the test object file only shows up
16526       # once in the compiler output.
16527       if test "$p" = "conftest.$objext"; then
16528	 pre_test_object_deps_done=yes
16529	 continue
16530       fi
16531
16532       if test "$pre_test_object_deps_done" = no; then
16533	 if test -z "$predep_objects_CXX"; then
16534	   predep_objects_CXX="$p"
16535	 else
16536	   predep_objects_CXX="$predep_objects_CXX $p"
16537	 fi
16538       else
16539	 if test -z "$postdep_objects_CXX"; then
16540	   postdep_objects_CXX="$p"
16541	 else
16542	   postdep_objects_CXX="$postdep_objects_CXX $p"
16543	 fi
16544       fi
16545       ;;
16546
16547    *) ;; # Ignore the rest.
16548
16549    esac
16550  done
16551
16552  # Clean up.
16553  rm -f a.out a.exe
16554else
16555  echo "libtool.m4: error: problem compiling CXX test program"
16556fi
16557
16558$RM -f confest.$objext
16559CFLAGS=$_lt_libdeps_save_CFLAGS
16560
16561# PORTME: override above test on systems where it is broken
16562case $host_os in
16563interix[3-9]*)
16564  # Interix 3.5 installs completely hosed .la files for C++, so rather than
16565  # hack all around it, let's just trust "g++" to DTRT.
16566  predep_objects_CXX=
16567  postdep_objects_CXX=
16568  postdeps_CXX=
16569  ;;
16570
16571linux*)
16572  case `$CC -V 2>&1 | sed 5q` in
16573  *Sun\ C*)
16574    # Sun C++ 5.9
16575
16576    # The more standards-conforming stlport4 library is
16577    # incompatible with the Cstd library. Avoid specifying
16578    # it if it's in CXXFLAGS. Ignore libCrun as
16579    # -library=stlport4 depends on it.
16580    case " $CXX $CXXFLAGS " in
16581    *" -library=stlport4 "*)
16582      solaris_use_stlport4=yes
16583      ;;
16584    esac
16585
16586    if test "$solaris_use_stlport4" != yes; then
16587      postdeps_CXX='-library=Cstd -library=Crun'
16588    fi
16589    ;;
16590  esac
16591  ;;
16592
16593solaris*)
16594  case $cc_basename in
16595  CC* | sunCC*)
16596    # The more standards-conforming stlport4 library is
16597    # incompatible with the Cstd library. Avoid specifying
16598    # it if it's in CXXFLAGS. Ignore libCrun as
16599    # -library=stlport4 depends on it.
16600    case " $CXX $CXXFLAGS " in
16601    *" -library=stlport4 "*)
16602      solaris_use_stlport4=yes
16603      ;;
16604    esac
16605
16606    # Adding this requires a known-good setup of shared libraries for
16607    # Sun compiler versions before 5.6, else PIC objects from an old
16608    # archive will be linked into the output, leading to subtle bugs.
16609    if test "$solaris_use_stlport4" != yes; then
16610      postdeps_CXX='-library=Cstd -library=Crun'
16611    fi
16612    ;;
16613  esac
16614  ;;
16615esac
16616
16617
16618case " $postdeps_CXX " in
16619*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16620esac
16621 compiler_lib_search_dirs_CXX=
16622if test -n "${compiler_lib_search_path_CXX}"; then
16623 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16624fi
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656    lt_prog_compiler_wl_CXX=
16657lt_prog_compiler_pic_CXX=
16658lt_prog_compiler_static_CXX=
16659
16660
16661  # C++ specific cases for pic, static, wl, etc.
16662  if test "$GXX" = yes; then
16663    lt_prog_compiler_wl_CXX='-Wl,'
16664    lt_prog_compiler_static_CXX='-static'
16665
16666    case $host_os in
16667    aix*)
16668      # All AIX code is PIC.
16669      if test "$host_cpu" = ia64; then
16670	# AIX 5 now supports IA64 processor
16671	lt_prog_compiler_static_CXX='-Bstatic'
16672      fi
16673      ;;
16674
16675    amigaos*)
16676      case $host_cpu in
16677      powerpc)
16678            # see comment about AmigaOS4 .so support
16679            lt_prog_compiler_pic_CXX='-fPIC'
16680        ;;
16681      m68k)
16682            # FIXME: we need at least 68020 code to build shared libraries, but
16683            # adding the `-m68020' flag to GCC prevents building anything better,
16684            # like `-m68040'.
16685            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16686        ;;
16687      esac
16688      ;;
16689
16690    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16691      # PIC is the default for these OSes.
16692      ;;
16693    mingw* | cygwin* | os2* | pw32* | cegcc*)
16694      # This hack is so that the source file can tell whether it is being
16695      # built for inclusion in a dll (and should export symbols for example).
16696      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16697      # (--disable-auto-import) libraries
16698      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16699      ;;
16700    darwin* | rhapsody*)
16701      # PIC is the default on this platform
16702      # Common symbols not allowed in MH_DYLIB files
16703      lt_prog_compiler_pic_CXX='-fno-common'
16704      ;;
16705    *djgpp*)
16706      # DJGPP does not support shared libraries at all
16707      lt_prog_compiler_pic_CXX=
16708      ;;
16709    haiku*)
16710      # PIC is the default for Haiku.
16711      # The "-static" flag exists, but is broken.
16712      lt_prog_compiler_static_CXX=
16713      ;;
16714    interix[3-9]*)
16715      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16716      # Instead, we relocate shared libraries at runtime.
16717      ;;
16718    sysv4*MP*)
16719      if test -d /usr/nec; then
16720	lt_prog_compiler_pic_CXX=-Kconform_pic
16721      fi
16722      ;;
16723    hpux*)
16724      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16725      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16726      # sets the default TLS model and affects inlining.
16727      case $host_cpu in
16728      hppa*64*)
16729	;;
16730      *)
16731	lt_prog_compiler_pic_CXX='-fPIC'
16732	;;
16733      esac
16734      ;;
16735    *qnx* | *nto*)
16736      # QNX uses GNU C++, but need to define -shared option too, otherwise
16737      # it will coredump.
16738      lt_prog_compiler_pic_CXX='-fPIC -shared'
16739      ;;
16740    *)
16741      lt_prog_compiler_pic_CXX='-fPIC'
16742      ;;
16743    esac
16744  else
16745    case $host_os in
16746      aix[4-9]*)
16747	# All AIX code is PIC.
16748	if test "$host_cpu" = ia64; then
16749	  # AIX 5 now supports IA64 processor
16750	  lt_prog_compiler_static_CXX='-Bstatic'
16751	else
16752	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16753	fi
16754	;;
16755      chorus*)
16756	case $cc_basename in
16757	cxch68*)
16758	  # Green Hills C++ Compiler
16759	  # _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"
16760	  ;;
16761	esac
16762	;;
16763      mingw* | cygwin* | os2* | pw32* | cegcc*)
16764	# This hack is so that the source file can tell whether it is being
16765	# built for inclusion in a dll (and should export symbols for example).
16766	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16767	;;
16768      dgux*)
16769	case $cc_basename in
16770	  ec++*)
16771	    lt_prog_compiler_pic_CXX='-KPIC'
16772	    ;;
16773	  ghcx*)
16774	    # Green Hills C++ Compiler
16775	    lt_prog_compiler_pic_CXX='-pic'
16776	    ;;
16777	  *)
16778	    ;;
16779	esac
16780	;;
16781      freebsd* | dragonfly*)
16782	# FreeBSD uses GNU C++
16783	;;
16784      hpux9* | hpux10* | hpux11*)
16785	case $cc_basename in
16786	  CC*)
16787	    lt_prog_compiler_wl_CXX='-Wl,'
16788	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16789	    if test "$host_cpu" != ia64; then
16790	      lt_prog_compiler_pic_CXX='+Z'
16791	    fi
16792	    ;;
16793	  aCC*)
16794	    lt_prog_compiler_wl_CXX='-Wl,'
16795	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16796	    case $host_cpu in
16797	    hppa*64*|ia64*)
16798	      # +Z the default
16799	      ;;
16800	    *)
16801	      lt_prog_compiler_pic_CXX='+Z'
16802	      ;;
16803	    esac
16804	    ;;
16805	  *)
16806	    ;;
16807	esac
16808	;;
16809      interix*)
16810	# This is c89, which is MS Visual C++ (no shared libs)
16811	# Anyone wants to do a port?
16812	;;
16813      irix5* | irix6* | nonstopux*)
16814	case $cc_basename in
16815	  CC*)
16816	    lt_prog_compiler_wl_CXX='-Wl,'
16817	    lt_prog_compiler_static_CXX='-non_shared'
16818	    # CC pic flag -KPIC is the default.
16819	    ;;
16820	  *)
16821	    ;;
16822	esac
16823	;;
16824      linux* | k*bsd*-gnu | kopensolaris*-gnu)
16825	case $cc_basename in
16826	  KCC*)
16827	    # KAI C++ Compiler
16828	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16829	    lt_prog_compiler_pic_CXX='-fPIC'
16830	    ;;
16831	  ecpc* )
16832	    # old Intel C++ for x86_64 which still supported -KPIC.
16833	    lt_prog_compiler_wl_CXX='-Wl,'
16834	    lt_prog_compiler_pic_CXX='-KPIC'
16835	    lt_prog_compiler_static_CXX='-static'
16836	    ;;
16837	  icpc* )
16838	    # Intel C++, used to be incompatible with GCC.
16839	    # ICC 10 doesn't accept -KPIC any more.
16840	    lt_prog_compiler_wl_CXX='-Wl,'
16841	    lt_prog_compiler_pic_CXX='-fPIC'
16842	    lt_prog_compiler_static_CXX='-static'
16843	    ;;
16844	  pgCC* | pgcpp*)
16845	    # Portland Group C++ compiler
16846	    lt_prog_compiler_wl_CXX='-Wl,'
16847	    lt_prog_compiler_pic_CXX='-fpic'
16848	    lt_prog_compiler_static_CXX='-Bstatic'
16849	    ;;
16850	  cxx*)
16851	    # Compaq C++
16852	    # Make sure the PIC flag is empty.  It appears that all Alpha
16853	    # Linux and Compaq Tru64 Unix objects are PIC.
16854	    lt_prog_compiler_pic_CXX=
16855	    lt_prog_compiler_static_CXX='-non_shared'
16856	    ;;
16857	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16858	    # IBM XL 8.0, 9.0 on PPC and BlueGene
16859	    lt_prog_compiler_wl_CXX='-Wl,'
16860	    lt_prog_compiler_pic_CXX='-qpic'
16861	    lt_prog_compiler_static_CXX='-qstaticlink'
16862	    ;;
16863	  *)
16864	    case `$CC -V 2>&1 | sed 5q` in
16865	    *Sun\ C*)
16866	      # Sun C++ 5.9
16867	      lt_prog_compiler_pic_CXX='-KPIC'
16868	      lt_prog_compiler_static_CXX='-Bstatic'
16869	      lt_prog_compiler_wl_CXX='-Qoption ld '
16870	      ;;
16871	    esac
16872	    ;;
16873	esac
16874	;;
16875      lynxos*)
16876	;;
16877      m88k*)
16878	;;
16879      mvs*)
16880	case $cc_basename in
16881	  cxx*)
16882	    lt_prog_compiler_pic_CXX='-W c,exportall'
16883	    ;;
16884	  *)
16885	    ;;
16886	esac
16887	;;
16888      netbsd*)
16889	;;
16890      *qnx* | *nto*)
16891        # QNX uses GNU C++, but need to define -shared option too, otherwise
16892        # it will coredump.
16893        lt_prog_compiler_pic_CXX='-fPIC -shared'
16894        ;;
16895      osf3* | osf4* | osf5*)
16896	case $cc_basename in
16897	  KCC*)
16898	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16899	    ;;
16900	  RCC*)
16901	    # Rational C++ 2.4.1
16902	    lt_prog_compiler_pic_CXX='-pic'
16903	    ;;
16904	  cxx*)
16905	    # Digital/Compaq C++
16906	    lt_prog_compiler_wl_CXX='-Wl,'
16907	    # Make sure the PIC flag is empty.  It appears that all Alpha
16908	    # Linux and Compaq Tru64 Unix objects are PIC.
16909	    lt_prog_compiler_pic_CXX=
16910	    lt_prog_compiler_static_CXX='-non_shared'
16911	    ;;
16912	  *)
16913	    ;;
16914	esac
16915	;;
16916      psos*)
16917	;;
16918      solaris*)
16919	case $cc_basename in
16920	  CC* | sunCC*)
16921	    # Sun C++ 4.2, 5.x and Centerline C++
16922	    lt_prog_compiler_pic_CXX='-KPIC'
16923	    lt_prog_compiler_static_CXX='-Bstatic'
16924	    lt_prog_compiler_wl_CXX='-Qoption ld '
16925	    ;;
16926	  gcx*)
16927	    # Green Hills C++ Compiler
16928	    lt_prog_compiler_pic_CXX='-PIC'
16929	    ;;
16930	  *)
16931	    ;;
16932	esac
16933	;;
16934      sunos4*)
16935	case $cc_basename in
16936	  CC*)
16937	    # Sun C++ 4.x
16938	    lt_prog_compiler_pic_CXX='-pic'
16939	    lt_prog_compiler_static_CXX='-Bstatic'
16940	    ;;
16941	  lcc*)
16942	    # Lucid
16943	    lt_prog_compiler_pic_CXX='-pic'
16944	    ;;
16945	  *)
16946	    ;;
16947	esac
16948	;;
16949      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16950	case $cc_basename in
16951	  CC*)
16952	    lt_prog_compiler_wl_CXX='-Wl,'
16953	    lt_prog_compiler_pic_CXX='-KPIC'
16954	    lt_prog_compiler_static_CXX='-Bstatic'
16955	    ;;
16956	esac
16957	;;
16958      tandem*)
16959	case $cc_basename in
16960	  NCC*)
16961	    # NonStop-UX NCC 3.20
16962	    lt_prog_compiler_pic_CXX='-KPIC'
16963	    ;;
16964	  *)
16965	    ;;
16966	esac
16967	;;
16968      vxworks*)
16969	;;
16970      *)
16971	lt_prog_compiler_can_build_shared_CXX=no
16972	;;
16973    esac
16974  fi
16975
16976case $host_os in
16977  # For platforms which do not support PIC, -DPIC is meaningless:
16978  *djgpp*)
16979    lt_prog_compiler_pic_CXX=
16980    ;;
16981  *)
16982    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16983    ;;
16984esac
16985
16986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16987$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16988if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16989  $as_echo_n "(cached) " >&6
16990else
16991  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16992fi
16993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16994$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16995lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16996
16997#
16998# Check to make sure the PIC flag actually works.
16999#
17000if test -n "$lt_prog_compiler_pic_CXX"; then
17001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17002$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17003if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17004  $as_echo_n "(cached) " >&6
17005else
17006  lt_cv_prog_compiler_pic_works_CXX=no
17007   ac_outfile=conftest.$ac_objext
17008   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17009   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17010   # Insert the option either (1) after the last *FLAGS variable, or
17011   # (2) before a word containing "conftest.", or (3) at the end.
17012   # Note that $ac_compile itself does not contain backslashes and begins
17013   # with a dollar sign (not a hyphen), so the echo should work correctly.
17014   # The option is referenced via a variable to avoid confusing sed.
17015   lt_compile=`echo "$ac_compile" | $SED \
17016   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17017   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17018   -e 's:$: $lt_compiler_flag:'`
17019   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17020   (eval "$lt_compile" 2>conftest.err)
17021   ac_status=$?
17022   cat conftest.err >&5
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   if (exit $ac_status) && test -s "$ac_outfile"; then
17025     # The compiler can only warn and ignore the option if not recognized
17026     # So say no if there are warnings other than the usual output.
17027     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17028     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17029     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17030       lt_cv_prog_compiler_pic_works_CXX=yes
17031     fi
17032   fi
17033   $RM conftest*
17034
17035fi
17036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17037$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17038
17039if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17040    case $lt_prog_compiler_pic_CXX in
17041     "" | " "*) ;;
17042     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17043     esac
17044else
17045    lt_prog_compiler_pic_CXX=
17046     lt_prog_compiler_can_build_shared_CXX=no
17047fi
17048
17049fi
17050
17051
17052
17053
17054
17055#
17056# Check to make sure the static flag actually works.
17057#
17058wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17060$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17061if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17062  $as_echo_n "(cached) " >&6
17063else
17064  lt_cv_prog_compiler_static_works_CXX=no
17065   save_LDFLAGS="$LDFLAGS"
17066   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17067   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17068   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17069     # The linker can only warn and ignore the option if not recognized
17070     # So say no if there are warnings
17071     if test -s conftest.err; then
17072       # Append any errors to the config.log.
17073       cat conftest.err 1>&5
17074       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17075       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17076       if diff conftest.exp conftest.er2 >/dev/null; then
17077         lt_cv_prog_compiler_static_works_CXX=yes
17078       fi
17079     else
17080       lt_cv_prog_compiler_static_works_CXX=yes
17081     fi
17082   fi
17083   $RM -r conftest*
17084   LDFLAGS="$save_LDFLAGS"
17085
17086fi
17087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17088$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17089
17090if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17091    :
17092else
17093    lt_prog_compiler_static_CXX=
17094fi
17095
17096
17097
17098
17099    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17100$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17101if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17102  $as_echo_n "(cached) " >&6
17103else
17104  lt_cv_prog_compiler_c_o_CXX=no
17105   $RM -r conftest 2>/dev/null
17106   mkdir conftest
17107   cd conftest
17108   mkdir out
17109   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17110
17111   lt_compiler_flag="-o out/conftest2.$ac_objext"
17112   # Insert the option either (1) after the last *FLAGS variable, or
17113   # (2) before a word containing "conftest.", or (3) at the end.
17114   # Note that $ac_compile itself does not contain backslashes and begins
17115   # with a dollar sign (not a hyphen), so the echo should work correctly.
17116   lt_compile=`echo "$ac_compile" | $SED \
17117   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17118   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17119   -e 's:$: $lt_compiler_flag:'`
17120   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17121   (eval "$lt_compile" 2>out/conftest.err)
17122   ac_status=$?
17123   cat out/conftest.err >&5
17124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17126   then
17127     # The compiler can only warn and ignore the option if not recognized
17128     # So say no if there are warnings
17129     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17130     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17131     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17132       lt_cv_prog_compiler_c_o_CXX=yes
17133     fi
17134   fi
17135   chmod u+w . 2>&5
17136   $RM conftest*
17137   # SGI C++ compiler will create directory out/ii_files/ for
17138   # template instantiation
17139   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17140   $RM out/* && rmdir out
17141   cd ..
17142   $RM -r conftest
17143   $RM conftest*
17144
17145fi
17146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17147$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17148
17149
17150
17151    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17152$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17153if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17154  $as_echo_n "(cached) " >&6
17155else
17156  lt_cv_prog_compiler_c_o_CXX=no
17157   $RM -r conftest 2>/dev/null
17158   mkdir conftest
17159   cd conftest
17160   mkdir out
17161   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17162
17163   lt_compiler_flag="-o out/conftest2.$ac_objext"
17164   # Insert the option either (1) after the last *FLAGS variable, or
17165   # (2) before a word containing "conftest.", or (3) at the end.
17166   # Note that $ac_compile itself does not contain backslashes and begins
17167   # with a dollar sign (not a hyphen), so the echo should work correctly.
17168   lt_compile=`echo "$ac_compile" | $SED \
17169   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17170   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17171   -e 's:$: $lt_compiler_flag:'`
17172   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17173   (eval "$lt_compile" 2>out/conftest.err)
17174   ac_status=$?
17175   cat out/conftest.err >&5
17176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17178   then
17179     # The compiler can only warn and ignore the option if not recognized
17180     # So say no if there are warnings
17181     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17182     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17183     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17184       lt_cv_prog_compiler_c_o_CXX=yes
17185     fi
17186   fi
17187   chmod u+w . 2>&5
17188   $RM conftest*
17189   # SGI C++ compiler will create directory out/ii_files/ for
17190   # template instantiation
17191   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17192   $RM out/* && rmdir out
17193   cd ..
17194   $RM -r conftest
17195   $RM conftest*
17196
17197fi
17198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17199$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17200
17201
17202
17203
17204hard_links="nottested"
17205if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17206  # do not overwrite the value of need_locks provided by the user
17207  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17208$as_echo_n "checking if we can lock with hard links... " >&6; }
17209  hard_links=yes
17210  $RM conftest*
17211  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17212  touch conftest.a
17213  ln conftest.a conftest.b 2>&5 || hard_links=no
17214  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17216$as_echo "$hard_links" >&6; }
17217  if test "$hard_links" = no; then
17218    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17219$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17220    need_locks=warn
17221  fi
17222else
17223  need_locks=no
17224fi
17225
17226
17227
17228    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17229$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17230
17231  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17232  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17233  case $host_os in
17234  aix[4-9]*)
17235    # If we're using GNU nm, then we don't want the "-C" option.
17236    # -C means demangle to AIX nm, but means don't demangle with GNU nm
17237    # Also, AIX nm treats weak defined symbols like other global defined
17238    # symbols, whereas GNU nm marks them as "W".
17239    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17240      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'
17241    else
17242      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'
17243    fi
17244    ;;
17245  pw32*)
17246    export_symbols_cmds_CXX="$ltdll_cmds"
17247    ;;
17248  cygwin* | mingw* | cegcc*)
17249    case $cc_basename in
17250    cl*) ;;
17251    *)
17252      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'
17253      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17254      ;;
17255    esac
17256    ;;
17257  *)
17258    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17259    ;;
17260  esac
17261
17262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17263$as_echo "$ld_shlibs_CXX" >&6; }
17264test "$ld_shlibs_CXX" = no && can_build_shared=no
17265
17266with_gnu_ld_CXX=$with_gnu_ld
17267
17268
17269
17270
17271
17272
17273#
17274# Do we need to explicitly link libc?
17275#
17276case "x$archive_cmds_need_lc_CXX" in
17277x|xyes)
17278  # Assume -lc should be added
17279  archive_cmds_need_lc_CXX=yes
17280
17281  if test "$enable_shared" = yes && test "$GCC" = yes; then
17282    case $archive_cmds_CXX in
17283    *'~'*)
17284      # FIXME: we may have to deal with multi-command sequences.
17285      ;;
17286    '$CC '*)
17287      # Test whether the compiler implicitly links with -lc since on some
17288      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17289      # to ld, don't add -lc before -lgcc.
17290      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17291$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17292if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17293  $as_echo_n "(cached) " >&6
17294else
17295  $RM conftest*
17296	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17297
17298	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17299  (eval $ac_compile) 2>&5
17300  ac_status=$?
17301  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17302  test $ac_status = 0; } 2>conftest.err; then
17303	  soname=conftest
17304	  lib=conftest
17305	  libobjs=conftest.$ac_objext
17306	  deplibs=
17307	  wl=$lt_prog_compiler_wl_CXX
17308	  pic_flag=$lt_prog_compiler_pic_CXX
17309	  compiler_flags=-v
17310	  linker_flags=-v
17311	  verstring=
17312	  output_objdir=.
17313	  libname=conftest
17314	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17315	  allow_undefined_flag_CXX=
17316	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17317  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17318  ac_status=$?
17319  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17320  test $ac_status = 0; }
17321	  then
17322	    lt_cv_archive_cmds_need_lc_CXX=no
17323	  else
17324	    lt_cv_archive_cmds_need_lc_CXX=yes
17325	  fi
17326	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17327	else
17328	  cat conftest.err 1>&5
17329	fi
17330	$RM conftest*
17331
17332fi
17333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17334$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17335      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17336      ;;
17337    esac
17338  fi
17339  ;;
17340esac
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17406$as_echo_n "checking dynamic linker characteristics... " >&6; }
17407
17408library_names_spec=
17409libname_spec='lib$name'
17410soname_spec=
17411shrext_cmds=".so"
17412postinstall_cmds=
17413postuninstall_cmds=
17414finish_cmds=
17415finish_eval=
17416shlibpath_var=
17417shlibpath_overrides_runpath=unknown
17418version_type=none
17419dynamic_linker="$host_os ld.so"
17420sys_lib_dlsearch_path_spec="/lib /usr/lib"
17421need_lib_prefix=unknown
17422hardcode_into_libs=no
17423
17424# when you set need_version to no, make sure it does not cause -set_version
17425# flags to be left without arguments
17426need_version=unknown
17427
17428case $host_os in
17429aix3*)
17430  version_type=linux
17431  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17432  shlibpath_var=LIBPATH
17433
17434  # AIX 3 has no versioning support, so we append a major version to the name.
17435  soname_spec='${libname}${release}${shared_ext}$major'
17436  ;;
17437
17438aix[4-9]*)
17439  version_type=linux
17440  need_lib_prefix=no
17441  need_version=no
17442  hardcode_into_libs=yes
17443  if test "$host_cpu" = ia64; then
17444    # AIX 5 supports IA64
17445    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17446    shlibpath_var=LD_LIBRARY_PATH
17447  else
17448    # With GCC up to 2.95.x, collect2 would create an import file
17449    # for dependence libraries.  The import file would start with
17450    # the line `#! .'.  This would cause the generated library to
17451    # depend on `.', always an invalid library.  This was fixed in
17452    # development snapshots of GCC prior to 3.0.
17453    case $host_os in
17454      aix4 | aix4.[01] | aix4.[01].*)
17455      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17456	   echo ' yes '
17457	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17458	:
17459      else
17460	can_build_shared=no
17461      fi
17462      ;;
17463    esac
17464    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17465    # soname into executable. Probably we can add versioning support to
17466    # collect2, so additional links can be useful in future.
17467    if test "$aix_use_runtimelinking" = yes; then
17468      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17469      # instead of lib<name>.a to let people know that these are not
17470      # typical AIX shared libraries.
17471      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17472    else
17473      # We preserve .a as extension for shared libraries through AIX4.2
17474      # and later when we are not doing run time linking.
17475      library_names_spec='${libname}${release}.a $libname.a'
17476      soname_spec='${libname}${release}${shared_ext}$major'
17477    fi
17478    shlibpath_var=LIBPATH
17479  fi
17480  ;;
17481
17482amigaos*)
17483  case $host_cpu in
17484  powerpc)
17485    # Since July 2007 AmigaOS4 officially supports .so libraries.
17486    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17487    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17488    ;;
17489  m68k)
17490    library_names_spec='$libname.ixlibrary $libname.a'
17491    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17492    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'
17493    ;;
17494  esac
17495  ;;
17496
17497beos*)
17498  library_names_spec='${libname}${shared_ext}'
17499  dynamic_linker="$host_os ld.so"
17500  shlibpath_var=LIBRARY_PATH
17501  ;;
17502
17503bsdi[45]*)
17504  version_type=linux
17505  need_version=no
17506  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17507  soname_spec='${libname}${release}${shared_ext}$major'
17508  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17509  shlibpath_var=LD_LIBRARY_PATH
17510  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17511  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17512  # the default ld.so.conf also contains /usr/contrib/lib and
17513  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17514  # libtool to hard-code these into programs
17515  ;;
17516
17517cygwin* | mingw* | pw32* | cegcc*)
17518  version_type=windows
17519  shrext_cmds=".dll"
17520  need_version=no
17521  need_lib_prefix=no
17522
17523  case $GCC,$cc_basename in
17524  yes,*)
17525    # gcc
17526    library_names_spec='$libname.dll.a'
17527    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17528    postinstall_cmds='base_file=`basename \${file}`~
17529      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17530      dldir=$destdir/`dirname \$dlpath`~
17531      test -d \$dldir || mkdir -p \$dldir~
17532      $install_prog $dir/$dlname \$dldir/$dlname~
17533      chmod a+x \$dldir/$dlname~
17534      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17535        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17536      fi'
17537    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17538      dlpath=$dir/\$dldll~
17539       $RM \$dlpath'
17540    shlibpath_overrides_runpath=yes
17541
17542    case $host_os in
17543    cygwin*)
17544      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17545      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17546
17547      ;;
17548    mingw* | cegcc*)
17549      # MinGW DLLs use traditional 'lib' prefix
17550      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17551      ;;
17552    pw32*)
17553      # pw32 DLLs use 'pw' prefix rather than 'lib'
17554      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17555      ;;
17556    esac
17557    dynamic_linker='Win32 ld.exe'
17558    ;;
17559
17560  *,cl*)
17561    # Native MSVC
17562    libname_spec='$name'
17563    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17564    library_names_spec='${libname}.dll.lib'
17565
17566    case $build_os in
17567    mingw*)
17568      sys_lib_search_path_spec=
17569      lt_save_ifs=$IFS
17570      IFS=';'
17571      for lt_path in $LIB
17572      do
17573        IFS=$lt_save_ifs
17574        # Let DOS variable expansion print the short 8.3 style file name.
17575        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17576        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17577      done
17578      IFS=$lt_save_ifs
17579      # Convert to MSYS style.
17580      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17581      ;;
17582    cygwin*)
17583      # Convert to unix form, then to dos form, then back to unix form
17584      # but this time dos style (no spaces!) so that the unix form looks
17585      # like /cygdrive/c/PROGRA~1:/cygdr...
17586      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17587      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17588      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17589      ;;
17590    *)
17591      sys_lib_search_path_spec="$LIB"
17592      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17593        # It is most probably a Windows format PATH.
17594        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17595      else
17596        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17597      fi
17598      # FIXME: find the short name or the path components, as spaces are
17599      # common. (e.g. "Program Files" -> "PROGRA~1")
17600      ;;
17601    esac
17602
17603    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17604    postinstall_cmds='base_file=`basename \${file}`~
17605      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17606      dldir=$destdir/`dirname \$dlpath`~
17607      test -d \$dldir || mkdir -p \$dldir~
17608      $install_prog $dir/$dlname \$dldir/$dlname'
17609    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17610      dlpath=$dir/\$dldll~
17611       $RM \$dlpath'
17612    shlibpath_overrides_runpath=yes
17613    dynamic_linker='Win32 link.exe'
17614    ;;
17615
17616  *)
17617    # Assume MSVC wrapper
17618    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17619    dynamic_linker='Win32 ld.exe'
17620    ;;
17621  esac
17622  # FIXME: first we should search . and the directory the executable is in
17623  shlibpath_var=PATH
17624  ;;
17625
17626darwin* | rhapsody*)
17627  dynamic_linker="$host_os dyld"
17628  version_type=darwin
17629  need_lib_prefix=no
17630  need_version=no
17631  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17632  soname_spec='${libname}${release}${major}$shared_ext'
17633  shlibpath_overrides_runpath=yes
17634  shlibpath_var=DYLD_LIBRARY_PATH
17635  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17636
17637  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17638  ;;
17639
17640dgux*)
17641  version_type=linux
17642  need_lib_prefix=no
17643  need_version=no
17644  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17645  soname_spec='${libname}${release}${shared_ext}$major'
17646  shlibpath_var=LD_LIBRARY_PATH
17647  ;;
17648
17649freebsd1*)
17650  dynamic_linker=no
17651  ;;
17652
17653freebsd* | dragonfly*)
17654  # DragonFly does not have aout.  When/if they implement a new
17655  # versioning mechanism, adjust this.
17656  if test -x /usr/bin/objformat; then
17657    objformat=`/usr/bin/objformat`
17658  else
17659    case $host_os in
17660    freebsd[123]*) objformat=aout ;;
17661    *) objformat=elf ;;
17662    esac
17663  fi
17664  version_type=freebsd-$objformat
17665  case $version_type in
17666    freebsd-elf*)
17667      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17668      need_version=no
17669      need_lib_prefix=no
17670      ;;
17671    freebsd-*)
17672      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17673      need_version=yes
17674      ;;
17675  esac
17676  shlibpath_var=LD_LIBRARY_PATH
17677  case $host_os in
17678  freebsd2*)
17679    shlibpath_overrides_runpath=yes
17680    ;;
17681  freebsd3.[01]* | freebsdelf3.[01]*)
17682    shlibpath_overrides_runpath=yes
17683    hardcode_into_libs=yes
17684    ;;
17685  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17686  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17687    shlibpath_overrides_runpath=no
17688    hardcode_into_libs=yes
17689    ;;
17690  *) # from 4.6 on, and DragonFly
17691    shlibpath_overrides_runpath=yes
17692    hardcode_into_libs=yes
17693    ;;
17694  esac
17695  ;;
17696
17697gnu*)
17698  version_type=linux
17699  need_lib_prefix=no
17700  need_version=no
17701  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17702  soname_spec='${libname}${release}${shared_ext}$major'
17703  shlibpath_var=LD_LIBRARY_PATH
17704  hardcode_into_libs=yes
17705  ;;
17706
17707haiku*)
17708  version_type=linux
17709  need_lib_prefix=no
17710  need_version=no
17711  dynamic_linker="$host_os runtime_loader"
17712  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17713  soname_spec='${libname}${release}${shared_ext}$major'
17714  shlibpath_var=LIBRARY_PATH
17715  shlibpath_overrides_runpath=yes
17716  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17717  hardcode_into_libs=yes
17718  ;;
17719
17720hpux9* | hpux10* | hpux11*)
17721  # Give a soname corresponding to the major version so that dld.sl refuses to
17722  # link against other versions.
17723  version_type=sunos
17724  need_lib_prefix=no
17725  need_version=no
17726  case $host_cpu in
17727  ia64*)
17728    shrext_cmds='.so'
17729    hardcode_into_libs=yes
17730    dynamic_linker="$host_os dld.so"
17731    shlibpath_var=LD_LIBRARY_PATH
17732    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17733    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17734    soname_spec='${libname}${release}${shared_ext}$major'
17735    if test "X$HPUX_IA64_MODE" = X32; then
17736      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17737    else
17738      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17739    fi
17740    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17741    ;;
17742  hppa*64*)
17743    shrext_cmds='.sl'
17744    hardcode_into_libs=yes
17745    dynamic_linker="$host_os dld.sl"
17746    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17747    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17748    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17749    soname_spec='${libname}${release}${shared_ext}$major'
17750    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17751    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17752    ;;
17753  *)
17754    shrext_cmds='.sl'
17755    dynamic_linker="$host_os dld.sl"
17756    shlibpath_var=SHLIB_PATH
17757    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17758    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17759    soname_spec='${libname}${release}${shared_ext}$major'
17760    ;;
17761  esac
17762  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17763  postinstall_cmds='chmod 555 $lib'
17764  # or fails outright, so override atomically:
17765  install_override_mode=555
17766  ;;
17767
17768interix[3-9]*)
17769  version_type=linux
17770  need_lib_prefix=no
17771  need_version=no
17772  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17773  soname_spec='${libname}${release}${shared_ext}$major'
17774  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17775  shlibpath_var=LD_LIBRARY_PATH
17776  shlibpath_overrides_runpath=no
17777  hardcode_into_libs=yes
17778  ;;
17779
17780irix5* | irix6* | nonstopux*)
17781  case $host_os in
17782    nonstopux*) version_type=nonstopux ;;
17783    *)
17784	if test "$lt_cv_prog_gnu_ld" = yes; then
17785		version_type=linux
17786	else
17787		version_type=irix
17788	fi ;;
17789  esac
17790  need_lib_prefix=no
17791  need_version=no
17792  soname_spec='${libname}${release}${shared_ext}$major'
17793  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17794  case $host_os in
17795  irix5* | nonstopux*)
17796    libsuff= shlibsuff=
17797    ;;
17798  *)
17799    case $LD in # libtool.m4 will add one of these switches to LD
17800    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17801      libsuff= shlibsuff= libmagic=32-bit;;
17802    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17803      libsuff=32 shlibsuff=N32 libmagic=N32;;
17804    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17805      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17806    *) libsuff= shlibsuff= libmagic=never-match;;
17807    esac
17808    ;;
17809  esac
17810  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17811  shlibpath_overrides_runpath=no
17812  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17813  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17814  hardcode_into_libs=yes
17815  ;;
17816
17817# No shared lib support for Linux oldld, aout, or coff.
17818linux*oldld* | linux*aout* | linux*coff*)
17819  dynamic_linker=no
17820  ;;
17821
17822# This must be Linux ELF.
17823linux* | k*bsd*-gnu | kopensolaris*-gnu)
17824  version_type=linux
17825  need_lib_prefix=no
17826  need_version=no
17827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17828  soname_spec='${libname}${release}${shared_ext}$major'
17829  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17830  shlibpath_var=LD_LIBRARY_PATH
17831  shlibpath_overrides_runpath=no
17832
17833  # Some binutils ld are patched to set DT_RUNPATH
17834  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17835  $as_echo_n "(cached) " >&6
17836else
17837  lt_cv_shlibpath_overrides_runpath=no
17838    save_LDFLAGS=$LDFLAGS
17839    save_libdir=$libdir
17840    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17841	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17842    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17843/* end confdefs.h.  */
17844
17845int
17846main ()
17847{
17848
17849  ;
17850  return 0;
17851}
17852_ACEOF
17853if ac_fn_cxx_try_link "$LINENO"; then :
17854  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17855  lt_cv_shlibpath_overrides_runpath=yes
17856fi
17857fi
17858rm -f core conftest.err conftest.$ac_objext \
17859    conftest$ac_exeext conftest.$ac_ext
17860    LDFLAGS=$save_LDFLAGS
17861    libdir=$save_libdir
17862
17863fi
17864
17865  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17866
17867  # This implies no fast_install, which is unacceptable.
17868  # Some rework will be needed to allow for fast_install
17869  # before this can be enabled.
17870  hardcode_into_libs=yes
17871
17872  # Append ld.so.conf contents to the search path
17873  if test -f /etc/ld.so.conf; then
17874    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' ' '`
17875    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17876  fi
17877
17878  # We used to test for /lib/ld.so.1 and disable shared libraries on
17879  # powerpc, because MkLinux only supported shared libraries with the
17880  # GNU dynamic linker.  Since this was broken with cross compilers,
17881  # most powerpc-linux boxes support dynamic linking these days and
17882  # people can always --disable-shared, the test was removed, and we
17883  # assume the GNU/Linux dynamic linker is in use.
17884  dynamic_linker='GNU/Linux ld.so'
17885  ;;
17886
17887netbsd*)
17888  version_type=sunos
17889  need_lib_prefix=no
17890  need_version=no
17891  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17892    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17893    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17894    dynamic_linker='NetBSD (a.out) ld.so'
17895  else
17896    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17897    soname_spec='${libname}${release}${shared_ext}$major'
17898    dynamic_linker='NetBSD ld.elf_so'
17899  fi
17900  shlibpath_var=LD_LIBRARY_PATH
17901  shlibpath_overrides_runpath=yes
17902  hardcode_into_libs=yes
17903  ;;
17904
17905newsos6)
17906  version_type=linux
17907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17908  shlibpath_var=LD_LIBRARY_PATH
17909  shlibpath_overrides_runpath=yes
17910  ;;
17911
17912*nto* | *qnx*)
17913  version_type=qnx
17914  need_lib_prefix=no
17915  need_version=no
17916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17917  soname_spec='${libname}${release}${shared_ext}$major'
17918  shlibpath_var=LD_LIBRARY_PATH
17919  shlibpath_overrides_runpath=no
17920  hardcode_into_libs=yes
17921  dynamic_linker='ldqnx.so'
17922  ;;
17923
17924openbsd*)
17925  version_type=sunos
17926  sys_lib_dlsearch_path_spec="/usr/lib"
17927  need_lib_prefix=no
17928  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17929  case $host_os in
17930    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
17931    *)				need_version=no  ;;
17932  esac
17933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17934  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17935  shlibpath_var=LD_LIBRARY_PATH
17936  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17937    case $host_os in
17938      openbsd2.[89] | openbsd2.[89].*)
17939	shlibpath_overrides_runpath=no
17940	;;
17941      *)
17942	shlibpath_overrides_runpath=yes
17943	;;
17944      esac
17945  else
17946    shlibpath_overrides_runpath=yes
17947  fi
17948  ;;
17949
17950os2*)
17951  libname_spec='$name'
17952  shrext_cmds=".dll"
17953  need_lib_prefix=no
17954  library_names_spec='$libname${shared_ext} $libname.a'
17955  dynamic_linker='OS/2 ld.exe'
17956  shlibpath_var=LIBPATH
17957  ;;
17958
17959osf3* | osf4* | osf5*)
17960  version_type=osf
17961  need_lib_prefix=no
17962  need_version=no
17963  soname_spec='${libname}${release}${shared_ext}$major'
17964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17965  shlibpath_var=LD_LIBRARY_PATH
17966  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17967  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17968  ;;
17969
17970rdos*)
17971  dynamic_linker=no
17972  ;;
17973
17974solaris*)
17975  version_type=linux
17976  need_lib_prefix=no
17977  need_version=no
17978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17979  soname_spec='${libname}${release}${shared_ext}$major'
17980  shlibpath_var=LD_LIBRARY_PATH
17981  shlibpath_overrides_runpath=yes
17982  hardcode_into_libs=yes
17983  # ldd complains unless libraries are executable
17984  postinstall_cmds='chmod +x $lib'
17985  ;;
17986
17987sunos4*)
17988  version_type=sunos
17989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17990  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17991  shlibpath_var=LD_LIBRARY_PATH
17992  shlibpath_overrides_runpath=yes
17993  if test "$with_gnu_ld" = yes; then
17994    need_lib_prefix=no
17995  fi
17996  need_version=yes
17997  ;;
17998
17999sysv4 | sysv4.3*)
18000  version_type=linux
18001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18002  soname_spec='${libname}${release}${shared_ext}$major'
18003  shlibpath_var=LD_LIBRARY_PATH
18004  case $host_vendor in
18005    sni)
18006      shlibpath_overrides_runpath=no
18007      need_lib_prefix=no
18008      runpath_var=LD_RUN_PATH
18009      ;;
18010    siemens)
18011      need_lib_prefix=no
18012      ;;
18013    motorola)
18014      need_lib_prefix=no
18015      need_version=no
18016      shlibpath_overrides_runpath=no
18017      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18018      ;;
18019  esac
18020  ;;
18021
18022sysv4*MP*)
18023  if test -d /usr/nec ;then
18024    version_type=linux
18025    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18026    soname_spec='$libname${shared_ext}.$major'
18027    shlibpath_var=LD_LIBRARY_PATH
18028  fi
18029  ;;
18030
18031sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18032  version_type=freebsd-elf
18033  need_lib_prefix=no
18034  need_version=no
18035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18036  soname_spec='${libname}${release}${shared_ext}$major'
18037  shlibpath_var=LD_LIBRARY_PATH
18038  shlibpath_overrides_runpath=yes
18039  hardcode_into_libs=yes
18040  if test "$with_gnu_ld" = yes; then
18041    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18042  else
18043    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18044    case $host_os in
18045      sco3.2v5*)
18046        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18047	;;
18048    esac
18049  fi
18050  sys_lib_dlsearch_path_spec='/usr/lib'
18051  ;;
18052
18053tpf*)
18054  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18055  version_type=linux
18056  need_lib_prefix=no
18057  need_version=no
18058  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18059  shlibpath_var=LD_LIBRARY_PATH
18060  shlibpath_overrides_runpath=no
18061  hardcode_into_libs=yes
18062  ;;
18063
18064uts4*)
18065  version_type=linux
18066  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18067  soname_spec='${libname}${release}${shared_ext}$major'
18068  shlibpath_var=LD_LIBRARY_PATH
18069  ;;
18070
18071*)
18072  dynamic_linker=no
18073  ;;
18074esac
18075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18076$as_echo "$dynamic_linker" >&6; }
18077test "$dynamic_linker" = no && can_build_shared=no
18078
18079variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18080if test "$GCC" = yes; then
18081  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18082fi
18083
18084if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18085  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18086fi
18087if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18088  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18089fi
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18129$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18130hardcode_action_CXX=
18131if test -n "$hardcode_libdir_flag_spec_CXX" ||
18132   test -n "$runpath_var_CXX" ||
18133   test "X$hardcode_automatic_CXX" = "Xyes" ; then
18134
18135  # We can hardcode non-existent directories.
18136  if test "$hardcode_direct_CXX" != no &&
18137     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18138     # have to relink, otherwise we might link with an installed library
18139     # when we should be linking with a yet-to-be-installed one
18140     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18141     test "$hardcode_minus_L_CXX" != no; then
18142    # Linking always hardcodes the temporary library directory.
18143    hardcode_action_CXX=relink
18144  else
18145    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18146    hardcode_action_CXX=immediate
18147  fi
18148else
18149  # We cannot hardcode anything, or else we can only hardcode existing
18150  # directories.
18151  hardcode_action_CXX=unsupported
18152fi
18153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18154$as_echo "$hardcode_action_CXX" >&6; }
18155
18156if test "$hardcode_action_CXX" = relink ||
18157   test "$inherit_rpath_CXX" = yes; then
18158  # Fast installation is not supported
18159  enable_fast_install=no
18160elif test "$shlibpath_overrides_runpath" = yes ||
18161     test "$enable_shared" = no; then
18162  # Fast installation is not necessary
18163  enable_fast_install=needless
18164fi
18165
18166
18167
18168
18169
18170
18171
18172  fi # test -n "$compiler"
18173
18174  CC=$lt_save_CC
18175  CFLAGS=$lt_save_CFLAGS
18176  LDCXX=$LD
18177  LD=$lt_save_LD
18178  GCC=$lt_save_GCC
18179  with_gnu_ld=$lt_save_with_gnu_ld
18180  lt_cv_path_LDCXX=$lt_cv_path_LD
18181  lt_cv_path_LD=$lt_save_path_LD
18182  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18183  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18184fi # test "$_lt_caught_CXX_error" != yes
18185
18186ac_ext=c
18187ac_cpp='$CPP $CPPFLAGS'
18188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18190ac_compiler_gnu=$ac_cv_c_compiler_gnu
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204        ac_config_commands="$ac_config_commands libtool"
18205
18206
18207
18208
18209# Only expand once:
18210
18211
18212
18213
18214# NTP has (so far) been relying on leading-edge autogen, which
18215# means we need the appropriate corresponding libopts as well.
18216# Therefore, by default:
18217# - use the version of libopts we ship with
18218# - do not install it
18219# - build a static copy (AC_DISABLE_SHARED - done earlier)
18220case "${enable_local_libopts+set}" in
18221 set) ;;
18222 *) enable_local_libopts=yes ;;
18223esac
18224case "${enable_libopts_install+set}" in
18225 set) ;;
18226 *) enable_libopts_install=no ;;
18227esac
18228enable_nls=no
18229ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18230if test "x$ac_cv_type_pid_t" = xyes; then :
18231
18232else
18233
18234cat >>confdefs.h <<_ACEOF
18235#define pid_t int
18236_ACEOF
18237
18238fi
18239
18240
18241
18242  ac_header_dirent=no
18243for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18244  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
18246$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
18247if eval \${$as_ac_Header+:} false; then :
18248  $as_echo_n "(cached) " >&6
18249else
18250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18251/* end confdefs.h.  */
18252#include <sys/types.h>
18253#include <$ac_hdr>
18254
18255int
18256main ()
18257{
18258if ((DIR *) 0)
18259return 0;
18260  ;
18261  return 0;
18262}
18263_ACEOF
18264if ac_fn_c_try_compile "$LINENO"; then :
18265  eval "$as_ac_Header=yes"
18266else
18267  eval "$as_ac_Header=no"
18268fi
18269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18270fi
18271eval ac_res=\$$as_ac_Header
18272	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18273$as_echo "$ac_res" >&6; }
18274if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18275  cat >>confdefs.h <<_ACEOF
18276#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18277_ACEOF
18278
18279ac_header_dirent=$ac_hdr; break
18280fi
18281
18282done
18283# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18284if test $ac_header_dirent = dirent.h; then
18285  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18286$as_echo_n "checking for library containing opendir... " >&6; }
18287if ${ac_cv_search_opendir+:} false; then :
18288  $as_echo_n "(cached) " >&6
18289else
18290  ac_func_search_save_LIBS=$LIBS
18291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18292/* end confdefs.h.  */
18293
18294/* Override any GCC internal prototype to avoid an error.
18295   Use char because int might match the return type of a GCC
18296   builtin and then its argument prototype would still apply.  */
18297#ifdef __cplusplus
18298extern "C"
18299#endif
18300char opendir ();
18301int
18302main ()
18303{
18304return opendir ();
18305  ;
18306  return 0;
18307}
18308_ACEOF
18309for ac_lib in '' dir; do
18310  if test -z "$ac_lib"; then
18311    ac_res="none required"
18312  else
18313    ac_res=-l$ac_lib
18314    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18315  fi
18316  if ac_fn_c_try_link "$LINENO"; then :
18317  ac_cv_search_opendir=$ac_res
18318fi
18319rm -f core conftest.err conftest.$ac_objext \
18320    conftest$ac_exeext
18321  if ${ac_cv_search_opendir+:} false; then :
18322  break
18323fi
18324done
18325if ${ac_cv_search_opendir+:} false; then :
18326
18327else
18328  ac_cv_search_opendir=no
18329fi
18330rm conftest.$ac_ext
18331LIBS=$ac_func_search_save_LIBS
18332fi
18333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18334$as_echo "$ac_cv_search_opendir" >&6; }
18335ac_res=$ac_cv_search_opendir
18336if test "$ac_res" != no; then :
18337  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18338
18339fi
18340
18341else
18342  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18343$as_echo_n "checking for library containing opendir... " >&6; }
18344if ${ac_cv_search_opendir+:} false; then :
18345  $as_echo_n "(cached) " >&6
18346else
18347  ac_func_search_save_LIBS=$LIBS
18348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18349/* end confdefs.h.  */
18350
18351/* Override any GCC internal prototype to avoid an error.
18352   Use char because int might match the return type of a GCC
18353   builtin and then its argument prototype would still apply.  */
18354#ifdef __cplusplus
18355extern "C"
18356#endif
18357char opendir ();
18358int
18359main ()
18360{
18361return opendir ();
18362  ;
18363  return 0;
18364}
18365_ACEOF
18366for ac_lib in '' x; do
18367  if test -z "$ac_lib"; then
18368    ac_res="none required"
18369  else
18370    ac_res=-l$ac_lib
18371    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18372  fi
18373  if ac_fn_c_try_link "$LINENO"; then :
18374  ac_cv_search_opendir=$ac_res
18375fi
18376rm -f core conftest.err conftest.$ac_objext \
18377    conftest$ac_exeext
18378  if ${ac_cv_search_opendir+:} false; then :
18379  break
18380fi
18381done
18382if ${ac_cv_search_opendir+:} false; then :
18383
18384else
18385  ac_cv_search_opendir=no
18386fi
18387rm conftest.$ac_ext
18388LIBS=$ac_func_search_save_LIBS
18389fi
18390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18391$as_echo "$ac_cv_search_opendir" >&6; }
18392ac_res=$ac_cv_search_opendir
18393if test "$ac_res" != no; then :
18394  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18395
18396fi
18397
18398fi
18399
18400
18401  # =================
18402  # AC_CHECK_HEADERS
18403  # =================
18404  for ac_header in  \
18405      sys/mman.h    sys/param.h   sys/poll.h    sys/procset.h \
18406      sys/select.h  sys/socket.h  sys/stropts.h sys/time.h \
18407      sys/un.h      sys/wait.h    dlfcn.h       errno.h \
18408      fcntl.h       libgen.h      libintl.h     memory.h \
18409      netinet/in.h  setjmp.h      stdbool.h     sysexits.h \
18410      unistd.h      utime.h
18411do :
18412  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18413ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18414if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18415  cat >>confdefs.h <<_ACEOF
18416#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18417_ACEOF
18418
18419fi
18420
18421done
18422
18423
18424  for ac_header in stdarg.h     varargs.h
18425do :
18426  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18427ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18428if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18429  cat >>confdefs.h <<_ACEOF
18430#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18431_ACEOF
18432 lo_have_arg_hdr=true;break
18433else
18434  lo_have_arg_hdr=false
18435fi
18436
18437done
18438
18439
18440  for ac_header in string.h     strings.h
18441do :
18442  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18443ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18444if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18445  cat >>confdefs.h <<_ACEOF
18446#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18447_ACEOF
18448 lo_have_str_hdr=true;break
18449else
18450  lo_have_str_hdr=false
18451fi
18452
18453done
18454
18455
18456  for ac_header in limits.h     sys/limits.h  values.h
18457do :
18458  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18459ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18460if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18461  cat >>confdefs.h <<_ACEOF
18462#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18463_ACEOF
18464 lo_have_lim_hdr=true;break
18465else
18466  lo_have_lim_hdr=false
18467fi
18468
18469done
18470
18471
18472  for ac_header in inttypes.h   stdint.h
18473do :
18474  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18475ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18476if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18477  cat >>confdefs.h <<_ACEOF
18478#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18479_ACEOF
18480 lo_have_typ_hdr=true;break
18481else
18482  lo_have_typ_hdr=false
18483fi
18484
18485done
18486
18487
18488  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
18489$as_echo_n "checking for working stdnoreturn.h... " >&6; }
18490if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
18491  $as_echo_n "(cached) " >&6
18492else
18493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18494/* end confdefs.h.  */
18495#include <stdlib.h>
18496            #include <stdnoreturn.h>
18497            /* Do not check for 'noreturn' after the return type.
18498               C11 allows it, but it's rarely done that way
18499               and circa-2012 bleeding-edge GCC rejects it when given
18500               -Werror=old-style-declaration.  */
18501            noreturn void foo1 (void) { exit (0); }
18502            _Noreturn void foo2 (void) { exit (0); }
18503            int testit (int argc, char **argv) {
18504              if (argc & 1)
18505                return 0;
18506              (argv[0][0] ? foo1 : foo2) ();
18507            }
18508
18509int
18510main ()
18511{
18512
18513  ;
18514  return 0;
18515}
18516_ACEOF
18517if ac_fn_c_try_compile "$LINENO"; then :
18518  gl_cv_header_working_stdnoreturn_h=yes
18519else
18520  gl_cv_header_working_stdnoreturn_h=no
18521fi
18522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18523fi
18524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
18525$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
18526
18527  if test $gl_cv_header_working_stdnoreturn_h = yes; then
18528    STDNORETURN_H=''
18529  else
18530    STDNORETURN_H='stdnoreturn.h'
18531  fi
18532
18533
18534   if test -n "$STDNORETURN_H"; then
18535  GL_GENERATE_STDNORETURN_H_TRUE=
18536  GL_GENERATE_STDNORETURN_H_FALSE='#'
18537else
18538  GL_GENERATE_STDNORETURN_H_TRUE='#'
18539  GL_GENERATE_STDNORETURN_H_FALSE=
18540fi
18541
18542
18543
18544  # ----------------------------------------------------------------------
18545  # check for various programs used during the build.
18546  # On OS/X, "wchar.h" needs "runetype.h" to work properly.
18547  # ----------------------------------------------------------------------
18548  for ac_header in runetype.h wchar.h
18549do :
18550  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18551ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
18552  $ac_includes_default
18553  #if HAVE_RUNETYPE_H
18554  # include <runetype.h>
18555  #endif
18556
18557"
18558if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18559  cat >>confdefs.h <<_ACEOF
18560#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18561_ACEOF
18562
18563fi
18564
18565done
18566
18567
18568  # Check whether --enable-nls was given.
18569if test "${enable_nls+set}" = set; then :
18570  enableval=$enable_nls;
18571fi
18572
18573  if test "x$enable_nls" != "xno" && \
18574  test "X${ac_cv_header_libintl_h}" = Xyes; then :
18575
18576
18577$as_echo "#define ENABLE_NLS 1" >>confdefs.h
18578
18579fi
18580
18581  # --------------------------------------------
18582  # Verify certain entries from AC_CHECK_HEADERS
18583  # --------------------------------------------
18584  ${lo_have_arg_hdr} || \
18585    as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
18586
18587  ${lo_have_str_hdr} || \
18588    as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
18589
18590  ${lo_have_lim_hdr} || \
18591    as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
18592
18593  ${lo_have_typ_hdr} || \
18594    as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
18595
18596  for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
18597  do eval as_ac_var=\${ac_cv_header_${f}_h}
18598     test "X${as_ac_var}" = Xyes || {
18599       as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
18600     }
18601  done
18602  test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
18603    echo '#include <stdint.h>' > inttypes.h
18604
18605  # ----------------------------------------------------------------------
18606  # Checks for typedefs
18607  # ----------------------------------------------------------------------
18608  ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
18609if test "x$ac_cv_type_wchar_t" = xyes; then :
18610
18611cat >>confdefs.h <<_ACEOF
18612#define HAVE_WCHAR_T 1
18613_ACEOF
18614
18615
18616fi
18617
18618  ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
18619    $ac_includes_default
18620    #if HAVE_RUNETYPE_H
18621    # include <runetype.h>
18622    #endif
18623    #if HAVE_WCHAR_H
18624    # include <wchar.h>
18625    #endif
18626
18627"
18628if test "x$ac_cv_type_wint_t" = xyes; then :
18629
18630cat >>confdefs.h <<_ACEOF
18631#define HAVE_WINT_T 1
18632_ACEOF
18633
18634
18635fi
18636
18637  ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
18638if test "x$ac_cv_type_int8_t" = xyes; then :
18639
18640cat >>confdefs.h <<_ACEOF
18641#define HAVE_INT8_T 1
18642_ACEOF
18643
18644
18645fi
18646ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
18647if test "x$ac_cv_type_uint8_t" = xyes; then :
18648
18649cat >>confdefs.h <<_ACEOF
18650#define HAVE_UINT8_T 1
18651_ACEOF
18652
18653
18654fi
18655ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
18656if test "x$ac_cv_type_int16_t" = xyes; then :
18657
18658cat >>confdefs.h <<_ACEOF
18659#define HAVE_INT16_T 1
18660_ACEOF
18661
18662
18663fi
18664ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
18665if test "x$ac_cv_type_uint16_t" = xyes; then :
18666
18667cat >>confdefs.h <<_ACEOF
18668#define HAVE_UINT16_T 1
18669_ACEOF
18670
18671
18672fi
18673ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
18674if test "x$ac_cv_type_int32_t" = xyes; then :
18675
18676cat >>confdefs.h <<_ACEOF
18677#define HAVE_INT32_T 1
18678_ACEOF
18679
18680
18681fi
18682ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
18683if test "x$ac_cv_type_uint32_t" = xyes; then :
18684
18685cat >>confdefs.h <<_ACEOF
18686#define HAVE_UINT32_T 1
18687_ACEOF
18688
18689
18690fi
18691ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
18692if test "x$ac_cv_type_intptr_t" = xyes; then :
18693
18694cat >>confdefs.h <<_ACEOF
18695#define HAVE_INTPTR_T 1
18696_ACEOF
18697
18698
18699fi
18700ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
18701if test "x$ac_cv_type_uintptr_t" = xyes; then :
18702
18703cat >>confdefs.h <<_ACEOF
18704#define HAVE_UINTPTR_T 1
18705_ACEOF
18706
18707
18708fi
18709ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
18710if test "x$ac_cv_type_uint_t" = xyes; then :
18711
18712cat >>confdefs.h <<_ACEOF
18713#define HAVE_UINT_T 1
18714_ACEOF
18715
18716
18717fi
18718ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18719if test "x$ac_cv_type_pid_t" = xyes; then :
18720
18721cat >>confdefs.h <<_ACEOF
18722#define HAVE_PID_T 1
18723_ACEOF
18724
18725
18726fi
18727ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18728if test "x$ac_cv_type_size_t" = xyes; then :
18729
18730cat >>confdefs.h <<_ACEOF
18731#define HAVE_SIZE_T 1
18732_ACEOF
18733
18734
18735fi
18736ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
18737if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
18738
18739cat >>confdefs.h <<_ACEOF
18740#define HAVE_PTRDIFF_T 1
18741_ACEOF
18742
18743
18744fi
18745
18746  # The cast to long int works around a bug in the HP C Compiler
18747# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18748# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18749# This bug is HP SR number 8606223364.
18750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
18751$as_echo_n "checking size of char*... " >&6; }
18752if ${ac_cv_sizeof_charp+:} false; then :
18753  $as_echo_n "(cached) " >&6
18754else
18755  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp"        "$ac_includes_default"; then :
18756
18757else
18758  if test "$ac_cv_type_charp" = yes; then
18759     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18761as_fn_error 77 "cannot compute sizeof (char*)
18762See \`config.log' for more details" "$LINENO" 5; }
18763   else
18764     ac_cv_sizeof_charp=0
18765   fi
18766fi
18767
18768fi
18769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
18770$as_echo "$ac_cv_sizeof_charp" >&6; }
18771
18772
18773
18774cat >>confdefs.h <<_ACEOF
18775#define SIZEOF_CHARP $ac_cv_sizeof_charp
18776_ACEOF
18777
18778
18779  # The cast to long int works around a bug in the HP C Compiler
18780# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18781# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18782# This bug is HP SR number 8606223364.
18783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
18784$as_echo_n "checking size of int... " >&6; }
18785if ${ac_cv_sizeof_int+:} false; then :
18786  $as_echo_n "(cached) " >&6
18787else
18788  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
18789
18790else
18791  if test "$ac_cv_type_int" = yes; then
18792     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18794as_fn_error 77 "cannot compute sizeof (int)
18795See \`config.log' for more details" "$LINENO" 5; }
18796   else
18797     ac_cv_sizeof_int=0
18798   fi
18799fi
18800
18801fi
18802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
18803$as_echo "$ac_cv_sizeof_int" >&6; }
18804
18805
18806
18807cat >>confdefs.h <<_ACEOF
18808#define SIZEOF_INT $ac_cv_sizeof_int
18809_ACEOF
18810
18811
18812  # The cast to long int works around a bug in the HP C Compiler
18813# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18814# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18815# This bug is HP SR number 8606223364.
18816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
18817$as_echo_n "checking size of long... " >&6; }
18818if ${ac_cv_sizeof_long+:} false; then :
18819  $as_echo_n "(cached) " >&6
18820else
18821  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
18822
18823else
18824  if test "$ac_cv_type_long" = yes; then
18825     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18827as_fn_error 77 "cannot compute sizeof (long)
18828See \`config.log' for more details" "$LINENO" 5; }
18829   else
18830     ac_cv_sizeof_long=0
18831   fi
18832fi
18833
18834fi
18835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
18836$as_echo "$ac_cv_sizeof_long" >&6; }
18837
18838
18839
18840cat >>confdefs.h <<_ACEOF
18841#define SIZEOF_LONG $ac_cv_sizeof_long
18842_ACEOF
18843
18844
18845  # The cast to long int works around a bug in the HP C Compiler
18846# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18847# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18848# This bug is HP SR number 8606223364.
18849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
18850$as_echo_n "checking size of short... " >&6; }
18851if ${ac_cv_sizeof_short+:} false; then :
18852  $as_echo_n "(cached) " >&6
18853else
18854  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
18855
18856else
18857  if test "$ac_cv_type_short" = yes; then
18858     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18860as_fn_error 77 "cannot compute sizeof (short)
18861See \`config.log' for more details" "$LINENO" 5; }
18862   else
18863     ac_cv_sizeof_short=0
18864   fi
18865fi
18866
18867fi
18868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
18869$as_echo "$ac_cv_sizeof_short" >&6; }
18870
18871
18872
18873cat >>confdefs.h <<_ACEOF
18874#define SIZEOF_SHORT $ac_cv_sizeof_short
18875_ACEOF
18876
18877
18878
18879  # ------------
18880  # AC_CHECK_LIB
18881  # ------------
18882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
18883$as_echo_n "checking for pathfind in -lgen... " >&6; }
18884if ${ac_cv_lib_gen_pathfind+:} false; then :
18885  $as_echo_n "(cached) " >&6
18886else
18887  ac_check_lib_save_LIBS=$LIBS
18888LIBS="-lgen  $LIBS"
18889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18890/* end confdefs.h.  */
18891
18892/* Override any GCC internal prototype to avoid an error.
18893   Use char because int might match the return type of a GCC
18894   builtin and then its argument prototype would still apply.  */
18895#ifdef __cplusplus
18896extern "C"
18897#endif
18898char pathfind ();
18899int
18900main ()
18901{
18902return pathfind ();
18903  ;
18904  return 0;
18905}
18906_ACEOF
18907if ac_fn_c_try_link "$LINENO"; then :
18908  ac_cv_lib_gen_pathfind=yes
18909else
18910  ac_cv_lib_gen_pathfind=no
18911fi
18912rm -f core conftest.err conftest.$ac_objext \
18913    conftest$ac_exeext conftest.$ac_ext
18914LIBS=$ac_check_lib_save_LIBS
18915fi
18916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
18917$as_echo "$ac_cv_lib_gen_pathfind" >&6; }
18918if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
18919  cat >>confdefs.h <<_ACEOF
18920#define HAVE_LIBGEN 1
18921_ACEOF
18922
18923  LIBS="-lgen $LIBS"
18924
18925fi
18926
18927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
18928$as_echo_n "checking for gettext in -lintl... " >&6; }
18929if ${ac_cv_lib_intl_gettext+:} false; then :
18930  $as_echo_n "(cached) " >&6
18931else
18932  ac_check_lib_save_LIBS=$LIBS
18933LIBS="-lintl  $LIBS"
18934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18935/* end confdefs.h.  */
18936
18937/* Override any GCC internal prototype to avoid an error.
18938   Use char because int might match the return type of a GCC
18939   builtin and then its argument prototype would still apply.  */
18940#ifdef __cplusplus
18941extern "C"
18942#endif
18943char gettext ();
18944int
18945main ()
18946{
18947return gettext ();
18948  ;
18949  return 0;
18950}
18951_ACEOF
18952if ac_fn_c_try_link "$LINENO"; then :
18953  ac_cv_lib_intl_gettext=yes
18954else
18955  ac_cv_lib_intl_gettext=no
18956fi
18957rm -f core conftest.err conftest.$ac_objext \
18958    conftest$ac_exeext conftest.$ac_ext
18959LIBS=$ac_check_lib_save_LIBS
18960fi
18961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
18962$as_echo "$ac_cv_lib_intl_gettext" >&6; }
18963if test "x$ac_cv_lib_intl_gettext" = xyes; then :
18964  cat >>confdefs.h <<_ACEOF
18965#define HAVE_LIBINTL 1
18966_ACEOF
18967
18968  LIBS="-lintl $LIBS"
18969
18970fi
18971
18972  for ac_func in vprintf
18973do :
18974  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
18975if test "x$ac_cv_func_vprintf" = xyes; then :
18976  cat >>confdefs.h <<_ACEOF
18977#define HAVE_VPRINTF 1
18978_ACEOF
18979
18980ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
18981if test "x$ac_cv_func__doprnt" = xyes; then :
18982
18983$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
18984
18985fi
18986
18987fi
18988done
18989
18990
18991  for ac_header in vfork.h
18992do :
18993  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
18994if test "x$ac_cv_header_vfork_h" = xyes; then :
18995  cat >>confdefs.h <<_ACEOF
18996#define HAVE_VFORK_H 1
18997_ACEOF
18998
18999fi
19000
19001done
19002
19003for ac_func in fork vfork
19004do :
19005  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19006ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19007if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19008  cat >>confdefs.h <<_ACEOF
19009#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19010_ACEOF
19011
19012fi
19013done
19014
19015if test "x$ac_cv_func_fork" = xyes; then
19016  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19017$as_echo_n "checking for working fork... " >&6; }
19018if ${ac_cv_func_fork_works+:} false; then :
19019  $as_echo_n "(cached) " >&6
19020else
19021  if test "$cross_compiling" = yes; then :
19022  ac_cv_func_fork_works=cross
19023else
19024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19025/* end confdefs.h.  */
19026$ac_includes_default
19027int
19028main ()
19029{
19030
19031	  /* By Ruediger Kuhlmann. */
19032	  return fork () < 0;
19033
19034  ;
19035  return 0;
19036}
19037_ACEOF
19038if ac_fn_c_try_run "$LINENO"; then :
19039  ac_cv_func_fork_works=yes
19040else
19041  ac_cv_func_fork_works=no
19042fi
19043rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19044  conftest.$ac_objext conftest.beam conftest.$ac_ext
19045fi
19046
19047fi
19048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19049$as_echo "$ac_cv_func_fork_works" >&6; }
19050
19051else
19052  ac_cv_func_fork_works=$ac_cv_func_fork
19053fi
19054if test "x$ac_cv_func_fork_works" = xcross; then
19055  case $host in
19056    *-*-amigaos* | *-*-msdosdjgpp*)
19057      # Override, as these systems have only a dummy fork() stub
19058      ac_cv_func_fork_works=no
19059      ;;
19060    *)
19061      ac_cv_func_fork_works=yes
19062      ;;
19063  esac
19064  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19065$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19066fi
19067ac_cv_func_vfork_works=$ac_cv_func_vfork
19068if test "x$ac_cv_func_vfork" = xyes; then
19069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19070$as_echo_n "checking for working vfork... " >&6; }
19071if ${ac_cv_func_vfork_works+:} false; then :
19072  $as_echo_n "(cached) " >&6
19073else
19074  if test "$cross_compiling" = yes; then :
19075  ac_cv_func_vfork_works=cross
19076else
19077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19078/* end confdefs.h.  */
19079/* Thanks to Paul Eggert for this test.  */
19080$ac_includes_default
19081#include <sys/wait.h>
19082#ifdef HAVE_VFORK_H
19083# include <vfork.h>
19084#endif
19085/* On some sparc systems, changes by the child to local and incoming
19086   argument registers are propagated back to the parent.  The compiler
19087   is told about this with #include <vfork.h>, but some compilers
19088   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
19089   static variable whose address is put into a register that is
19090   clobbered by the vfork.  */
19091static void
19092#ifdef __cplusplus
19093sparc_address_test (int arg)
19094# else
19095sparc_address_test (arg) int arg;
19096#endif
19097{
19098  static pid_t child;
19099  if (!child) {
19100    child = vfork ();
19101    if (child < 0) {
19102      perror ("vfork");
19103      _exit(2);
19104    }
19105    if (!child) {
19106      arg = getpid();
19107      write(-1, "", 0);
19108      _exit (arg);
19109    }
19110  }
19111}
19112
19113int
19114main ()
19115{
19116  pid_t parent = getpid ();
19117  pid_t child;
19118
19119  sparc_address_test (0);
19120
19121  child = vfork ();
19122
19123  if (child == 0) {
19124    /* Here is another test for sparc vfork register problems.  This
19125       test uses lots of local variables, at least as many local
19126       variables as main has allocated so far including compiler
19127       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
19128       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
19129       reuse the register of parent for one of the local variables,
19130       since it will think that parent can't possibly be used any more
19131       in this routine.  Assigning to the local variable will thus
19132       munge parent in the parent process.  */
19133    pid_t
19134      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19135      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19136    /* Convince the compiler that p..p7 are live; otherwise, it might
19137       use the same hardware register for all 8 local variables.  */
19138    if (p != p1 || p != p2 || p != p3 || p != p4
19139	|| p != p5 || p != p6 || p != p7)
19140      _exit(1);
19141
19142    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19143       from child file descriptors.  If the child closes a descriptor
19144       before it execs or exits, this munges the parent's descriptor
19145       as well.  Test for this by closing stdout in the child.  */
19146    _exit(close(fileno(stdout)) != 0);
19147  } else {
19148    int status;
19149    struct stat st;
19150
19151    while (wait(&status) != child)
19152      ;
19153    return (
19154	 /* Was there some problem with vforking?  */
19155	 child < 0
19156
19157	 /* Did the child fail?  (This shouldn't happen.)  */
19158	 || status
19159
19160	 /* Did the vfork/compiler bug occur?  */
19161	 || parent != getpid()
19162
19163	 /* Did the file descriptor bug occur?  */
19164	 || fstat(fileno(stdout), &st) != 0
19165	 );
19166  }
19167}
19168_ACEOF
19169if ac_fn_c_try_run "$LINENO"; then :
19170  ac_cv_func_vfork_works=yes
19171else
19172  ac_cv_func_vfork_works=no
19173fi
19174rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19175  conftest.$ac_objext conftest.beam conftest.$ac_ext
19176fi
19177
19178fi
19179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19180$as_echo "$ac_cv_func_vfork_works" >&6; }
19181
19182fi;
19183if test "x$ac_cv_func_fork_works" = xcross; then
19184  ac_cv_func_vfork_works=$ac_cv_func_vfork
19185  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19186$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19187fi
19188
19189if test "x$ac_cv_func_vfork_works" = xyes; then
19190
19191$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19192
19193else
19194
19195$as_echo "#define vfork fork" >>confdefs.h
19196
19197fi
19198if test "x$ac_cv_func_fork_works" = xyes; then
19199
19200$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19201
19202fi
19203
19204  for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
19205                 strrchr strsignal fchmod fstat chmod
19206do :
19207  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19208ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19209if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19210  cat >>confdefs.h <<_ACEOF
19211#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19212_ACEOF
19213
19214fi
19215done
19216
19217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
19218$as_echo_n "checking for a sed that does not truncate output... " >&6; }
19219if ${ac_cv_path_SED+:} false; then :
19220  $as_echo_n "(cached) " >&6
19221else
19222            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
19223     for ac_i in 1 2 3 4 5 6 7; do
19224       ac_script="$ac_script$as_nl$ac_script"
19225     done
19226     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
19227     { ac_script=; unset ac_script;}
19228     if test -z "$SED"; then
19229  ac_path_SED_found=false
19230  # Loop through the user's path and test for each of PROGNAME-LIST
19231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19232for as_dir in $PATH
19233do
19234  IFS=$as_save_IFS
19235  test -z "$as_dir" && as_dir=.
19236    for ac_prog in sed gsed; do
19237    for ac_exec_ext in '' $ac_executable_extensions; do
19238      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
19239      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
19240# Check for GNU ac_path_SED and select it if it is found.
19241  # Check for GNU $ac_path_SED
19242case `"$ac_path_SED" --version 2>&1` in
19243*GNU*)
19244  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
19245*)
19246  ac_count=0
19247  $as_echo_n 0123456789 >"conftest.in"
19248  while :
19249  do
19250    cat "conftest.in" "conftest.in" >"conftest.tmp"
19251    mv "conftest.tmp" "conftest.in"
19252    cp "conftest.in" "conftest.nl"
19253    $as_echo '' >> "conftest.nl"
19254    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
19255    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
19256    as_fn_arith $ac_count + 1 && ac_count=$as_val
19257    if test $ac_count -gt ${ac_path_SED_max-0}; then
19258      # Best one so far, save it but keep looking for a better one
19259      ac_cv_path_SED="$ac_path_SED"
19260      ac_path_SED_max=$ac_count
19261    fi
19262    # 10*(2^10) chars as input seems more than enough
19263    test $ac_count -gt 10 && break
19264  done
19265  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
19266esac
19267
19268      $ac_path_SED_found && break 3
19269    done
19270  done
19271  done
19272IFS=$as_save_IFS
19273  if test -z "$ac_cv_path_SED"; then
19274    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
19275  fi
19276else
19277  ac_cv_path_SED=$SED
19278fi
19279
19280fi
19281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
19282$as_echo "$ac_cv_path_SED" >&6; }
19283 SED="$ac_cv_path_SED"
19284  rm -f conftest.sed
19285
19286  while :
19287  do
19288      POSIX_SHELL=`which bash`
19289      test -x "$POSIX_SHELL" && break
19290      POSIX_SHELL=`which dash`
19291      test -x "$POSIX_SHELL" && break
19292      POSIX_SHELL=/usr/xpg4/bin/sh
19293      test -x "$POSIX_SHELL" && break
19294      POSIX_SHELL=`/bin/sh -c '
19295          exec 2>/dev/null
19296          if ! true ; then exit 1 ; fi
19297          echo /bin/sh'`
19298      test -x "$POSIX_SHELL" && break
19299      as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
19300  done
19301
19302cat >>confdefs.h <<_ACEOF
19303#define POSIX_SHELL "${POSIX_SHELL}"
19304_ACEOF
19305
19306
19307
19308
19309
19310  LIBOPTS_BUILD_BLOCKED=true
19311
19312
19313  NEED_LIBOPTS_DIR=''
19314
19315  # Check whether --enable-local-libopts was given.
19316if test "${enable_local_libopts+set}" = set; then :
19317  enableval=$enable_local_libopts;
19318    if test x$enableval = xyes ; then
19319       { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
19320$as_echo "$as_me: Using supplied libopts tearoff" >&6;}
19321       LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
19322       NEED_LIBOPTS_DIR=true
19323       LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
19324    fi
19325fi
19326
19327
19328  # Check whether --enable-libopts-install was given.
19329if test "${enable_libopts_install+set}" = set; then :
19330  enableval=$enable_libopts_install;
19331fi
19332
19333   if test "X${enable_libopts_install}" = Xyes; then
19334  INSTALL_LIBOPTS_TRUE=
19335  INSTALL_LIBOPTS_FALSE='#'
19336else
19337  INSTALL_LIBOPTS_TRUE='#'
19338  INSTALL_LIBOPTS_FALSE=
19339fi
19340
19341
19342  if test -z "${NEED_LIBOPTS_DIR}" ; then
19343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
19344$as_echo_n "checking whether autoopts-config can be found... " >&6; }
19345
19346# Check whether --with-autoopts-config was given.
19347if test "${with_autoopts_config+set}" = set; then :
19348  withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
19349else
19350  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
19351$as_echo_n "checking whether autoopts-config is specified... " >&6; }
19352if ${lo_cv_with_autoopts_config+:} false; then :
19353  $as_echo_n "(cached) " >&6
19354else
19355  if autoopts-config --help 2>/dev/null 1>&2
19356        then lo_cv_with_autoopts_config=autoopts-config
19357        elif libopts-config --help 2>/dev/null 1>&2
19358        then lo_cv_with_autoopts_config=libopts-config
19359        else lo_cv_with_autoopts_config=no ; fi
19360fi
19361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
19362$as_echo "$lo_cv_with_autoopts_config" >&6; }
19363
19364fi
19365 # end of AC_ARG_WITH
19366
19367     if ${lo_cv_test_autoopts+:} false; then :
19368  $as_echo_n "(cached) " >&6
19369else
19370
19371        if test -z "${lo_cv_with_autoopts_config}" \
19372                -o X"${lo_cv_with_autoopts_config}" = Xno
19373        then
19374           if autoopts-config --help 2>/dev/null 1>&2
19375           then lo_cv_with_autoopts_config=autoopts-config
19376           elif libopts-config --help 2>/dev/null 1>&2
19377           then lo_cv_with_autoopts_config=libopts-config
19378           else lo_cv_with_autoopts_config=false ; fi
19379        fi
19380        lo_cv_test_autoopts=`
19381            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
19382        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
19383        then lo_cv_test_autoopts=no ; fi
19384
19385fi
19386 # end of CACHE_VAL
19387     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
19388$as_echo "${lo_cv_test_autoopts}" >&6; }
19389
19390     if test "X${lo_cv_test_autoopts}" != Xno
19391     then
19392        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
19393        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
19394     else
19395        LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
19396        LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
19397        NEED_LIBOPTS_DIR=true
19398     fi
19399  fi # end of if test -z "${NEED_LIBOPTS_DIR}"
19400  if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
19401    NEED_LIBOPTS_DIR=''
19402  fi
19403   if test -n "${NEED_LIBOPTS_DIR}"; then
19404  NEED_LIBOPTS_TRUE=
19405  NEED_LIBOPTS_FALSE='#'
19406else
19407  NEED_LIBOPTS_TRUE='#'
19408  NEED_LIBOPTS_FALSE=
19409fi
19410
19411
19412
19413  LIBOPTS_DIR=sntp/libopts
19414
19415
19416# end of AC_DEFUN of LIBOPTS_CHECK_COMMON
19417
19418  # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD
19419
19420
19421
19422
19423ntp_pkgconfig_min_version='0.15.0'
19424if test -n "$ac_tool_prefix"; then
19425  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19426set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19428$as_echo_n "checking for $ac_word... " >&6; }
19429if ${ac_cv_path_PKG_CONFIG+:} false; then :
19430  $as_echo_n "(cached) " >&6
19431else
19432  case $PKG_CONFIG in
19433  [\\/]* | ?:[\\/]*)
19434  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19435  ;;
19436  *)
19437  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19438for as_dir in $PATH
19439do
19440  IFS=$as_save_IFS
19441  test -z "$as_dir" && as_dir=.
19442    for ac_exec_ext in '' $ac_executable_extensions; do
19443  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19444    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19445    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19446    break 2
19447  fi
19448done
19449  done
19450IFS=$as_save_IFS
19451
19452  ;;
19453esac
19454fi
19455PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19456if test -n "$PKG_CONFIG"; then
19457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19458$as_echo "$PKG_CONFIG" >&6; }
19459else
19460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19461$as_echo "no" >&6; }
19462fi
19463
19464
19465fi
19466if test -z "$ac_cv_path_PKG_CONFIG"; then
19467  ac_pt_PKG_CONFIG=$PKG_CONFIG
19468  # Extract the first word of "pkg-config", so it can be a program name with args.
19469set dummy pkg-config; ac_word=$2
19470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19471$as_echo_n "checking for $ac_word... " >&6; }
19472if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19473  $as_echo_n "(cached) " >&6
19474else
19475  case $ac_pt_PKG_CONFIG in
19476  [\\/]* | ?:[\\/]*)
19477  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19478  ;;
19479  *)
19480  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19481for as_dir in $PATH
19482do
19483  IFS=$as_save_IFS
19484  test -z "$as_dir" && as_dir=.
19485    for ac_exec_ext in '' $ac_executable_extensions; do
19486  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19487    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19489    break 2
19490  fi
19491done
19492  done
19493IFS=$as_save_IFS
19494
19495  ;;
19496esac
19497fi
19498ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19499if test -n "$ac_pt_PKG_CONFIG"; then
19500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19501$as_echo "$ac_pt_PKG_CONFIG" >&6; }
19502else
19503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19504$as_echo "no" >&6; }
19505fi
19506
19507  if test "x$ac_pt_PKG_CONFIG" = x; then
19508    PKG_CONFIG=""
19509  else
19510    case $cross_compiling:$ac_tool_warned in
19511yes:)
19512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19514ac_tool_warned=yes ;;
19515esac
19516    PKG_CONFIG=$ac_pt_PKG_CONFIG
19517  fi
19518else
19519  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19520fi
19521
19522{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
19523{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
19524
19525case "$PKG_CONFIG" in
19526 /*)
19527    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
19528$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
19529    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
19530	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19531$as_echo "yes" >&6; }
19532    else
19533	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19534$as_echo "no" >&6; }
19535	PKG_CONFIG=""
19536    fi
19537    ;;
19538esac
19539
19540
19541
19542
19543# Check whether --enable-local-libevent was given.
19544if test "${enable_local_libevent+set}" = set; then :
19545  enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
19546else
19547  ntp_use_local_libevent=${ntp_use_local_libevent-detect}
19548
19549fi
19550
19551
19552
19553
19554
19555ntp_libevent_min_version=2
19556ntp_libevent_tearoff=sntp/libevent
19557
19558
19559
19560
19561case "$ntp_use_local_libevent" in
19562 yes)
19563    ;;
19564 *) # If we have (a good enough) pkg-config, see if it can find libevent
19565    case "$PKG_CONFIG" in
19566     /*)
19567	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
19568$as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
19569	if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
19570	then
19571	    ntp_use_local_libevent=no
19572	    { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5
19573$as_echo "$as_me: Using the installed libevent" >&6;}
19574	    CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
19575	    # HMS: I hope the following is accurate.
19576	    # We don't need -levent, we only need  -levent_core.
19577	    # While we could grab only the -L stuff, there *might* be
19578	    # other flags there we want.  Originally we just removed -levent
19579	    # but then somebody decided to install -levent-2.0
19580	    # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
19581	    # So now we dance...
19582	    LDADD_LIBEVENT=
19583	    for i in `$PKG_CONFIG --libs libevent`
19584	    do
19585		case "$i" in
19586		 -levent*) ;;
19587		 *) case "$LDADD_LIBEVENT" in
19588		     '') LDADD_LIBEVENT="$i" ;;
19589		     *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
19590		    esac
19591		    ;;
19592		esac
19593	    done
19594	    case "$LIBISC_PTHREADS_NOTHREADS" in
19595	     pthreads)
19596		LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
19597	    esac
19598	    LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
19599	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19600$as_echo "yes" >&6; }
19601	else
19602	    ntp_use_local_libevent=yes
19603	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19604$as_echo "no" >&6; }
19605	fi
19606	;;
19607     *)
19608	ntp_use_local_libevent=yes
19609	;;
19610    esac
19611    ;;
19612esac
19613
19614case "$ntp_use_local_libevent" in
19615 yes)
19616    { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
19617$as_echo "$as_me: Using libevent tearoff" >&6;}
19618    CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
19619    case "$LIBISC_PTHREADS_NOTHREADS" in
19620     pthreads)
19621	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
19622	;;
19623     *)
19624	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
19625    esac
19626esac
19627
19628 if test "x$ntp_use_local_libevent" = "xyes"; then
19629  BUILD_LIBEVENT_TRUE=
19630  BUILD_LIBEVENT_FALSE='#'
19631else
19632  BUILD_LIBEVENT_TRUE='#'
19633  BUILD_LIBEVENT_FALSE=
19634fi
19635
19636
19637
19638
19639
19640
19641# Expose a cross-compilation indicator to makefiles
19642 if test $build != $host; then
19643  NTP_CROSSCOMPILE_TRUE=
19644  NTP_CROSSCOMPILE_FALSE='#'
19645else
19646  NTP_CROSSCOMPILE_TRUE='#'
19647  NTP_CROSSCOMPILE_FALSE=
19648fi
19649
19650
19651
19652ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19653if test "x$ac_cv_type_size_t" = xyes; then :
19654
19655else
19656
19657cat >>confdefs.h <<_ACEOF
19658#define size_t unsigned int
19659_ACEOF
19660
19661fi
19662
19663
19664            # Check whether --enable-c99-snprintf was given.
19665if test "${enable_c99_snprintf+set}" = set; then :
19666  enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
19667else
19668  force_c99_snprintf=no
19669
19670fi
19671
19672    case "$force_c99_snprintf" in
19673     yes)
19674	hw_force_rpl_snprintf=yes
19675	hw_force_rpl_vsnprintf=yes
19676    esac
19677
19678
19679
19680
19681
19682
19683  for ac_header in $ac_header_list
19684do :
19685  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19686ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19687"
19688if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19689  cat >>confdefs.h <<_ACEOF
19690#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19691_ACEOF
19692
19693fi
19694
19695done
19696
19697
19698
19699
19700
19701
19702
19703      ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
19704if test "x$ac_cv_func_vsnprintf" = xyes; then :
19705  hw_cv_func_vsnprintf=yes
19706else
19707  hw_cv_func_vsnprintf=no
19708fi
19709
19710  if test "$hw_cv_func_vsnprintf" = yes; then :
19711  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
19712$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
19713if ${hw_cv_func_vsnprintf_c99+:} false; then :
19714  $as_echo_n "(cached) " >&6
19715else
19716  if test "$cross_compiling" = yes; then :
19717  hw_cv_func_vsnprintf_c99=no
19718else
19719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19720/* end confdefs.h.  */
19721#if HAVE_STDARG_H
19722          #include <stdarg.h>
19723          #endif
19724          #include <stdio.h>
19725          static int testprintf(char *buf, size_t size, const char *format, ...)
19726          {
19727            int result;
19728            va_list ap;
19729            va_start(ap, format);
19730            result = vsnprintf(buf, size, format, ap);
19731            va_end(ap);
19732            return result;
19733          }
19734int
19735main ()
19736{
19737char buf[43];
19738          if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
19739              testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
19740              buf[0] != 'T' || buf[3] != '\0')
19741            return 1;
19742  ;
19743  return 0;
19744}
19745_ACEOF
19746if ac_fn_c_try_run "$LINENO"; then :
19747  hw_cv_func_vsnprintf_c99=yes
19748else
19749  hw_cv_func_vsnprintf_c99=no
19750fi
19751rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19752  conftest.$ac_objext conftest.beam conftest.$ac_ext
19753fi
19754
19755fi
19756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
19757$as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
19758else
19759  hw_cv_func_vsnprintf_c99=no
19760fi
19761
19762$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
19763
19764  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
19765$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
19766  if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
19767  hw_use_rpl_vsnprintf=yes
19768else
19769  hw_use_rpl_vsnprintf=no
19770fi
19771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
19772$as_echo "$hw_use_rpl_vsnprintf" >&6; }
19773  if test "$hw_use_rpl_vsnprintf" = yes; then :
19774
19775$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
19776
19777    if test ${hw_nodef_vsnprintf=no} = no; then :
19778
19779$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
19780
19781fi
19782    for ac_header in inttypes.h locale.h stddef.h stdint.h
19783do :
19784  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19785ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19786if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19787  cat >>confdefs.h <<_ACEOF
19788#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19789_ACEOF
19790
19791fi
19792
19793done
19794
19795    ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
19796"
19797if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
19798
19799cat >>confdefs.h <<_ACEOF
19800#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
19801_ACEOF
19802
19803
19804fi
19805ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
19806"
19807if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
19808
19809cat >>confdefs.h <<_ACEOF
19810#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
19811_ACEOF
19812
19813
19814fi
19815
19816
19817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19818$as_echo_n "checking for long double... " >&6; }
19819if ${ac_cv_type_long_double+:} false; then :
19820  $as_echo_n "(cached) " >&6
19821else
19822  if test "$GCC" = yes; then
19823       ac_cv_type_long_double=yes
19824     else
19825       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19826/* end confdefs.h.  */
19827/* The Stardent Vistra knows sizeof (long double), but does
19828		 not support it.  */
19829	      long double foo = 0.0L;
19830int
19831main ()
19832{
19833static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19834	      sizeof (double) <= sizeof (long double))];
19835test_array [0] = 0
19836
19837  ;
19838  return 0;
19839}
19840_ACEOF
19841if ac_fn_c_try_compile "$LINENO"; then :
19842  ac_cv_type_long_double=yes
19843else
19844  ac_cv_type_long_double=no
19845fi
19846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19847     fi
19848fi
19849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
19850$as_echo "$ac_cv_type_long_double" >&6; }
19851  if test $ac_cv_type_long_double = yes; then
19852
19853$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19854
19855  fi
19856
19857
19858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
19859$as_echo_n "checking for long long int... " >&6; }
19860if ${ac_cv_type_long_long_int+:} false; then :
19861  $as_echo_n "(cached) " >&6
19862else
19863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19864/* end confdefs.h.  */
19865
19866  /* For now, do not test the preprocessor; as of 2007 there are too many
19867	 implementations with broken preprocessors.  Perhaps this can
19868	 be revisited in 2012.  In the meantime, code should not expect
19869	 #if to work with literals wider than 32 bits.  */
19870      /* Test literals.  */
19871      long long int ll = 9223372036854775807ll;
19872      long long int nll = -9223372036854775807LL;
19873      unsigned long long int ull = 18446744073709551615ULL;
19874      /* Test constant expressions.   */
19875      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19876		     ? 1 : -1)];
19877      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
19878		     ? 1 : -1)];
19879      int i = 63;
19880int
19881main ()
19882{
19883/* Test availability of runtime routines for shift and division.  */
19884      long long int llmax = 9223372036854775807ll;
19885      unsigned long long int ullmax = 18446744073709551615ull;
19886      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
19887	      | (llmax / ll) | (llmax % ll)
19888	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
19889	      | (ullmax / ull) | (ullmax % ull));
19890  ;
19891  return 0;
19892}
19893
19894_ACEOF
19895if ac_fn_c_try_link "$LINENO"; then :
19896  			if test "$cross_compiling" = yes; then :
19897  ac_cv_type_long_long_int=yes
19898else
19899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19900/* end confdefs.h.  */
19901#include <limits.h>
19902	       #ifndef LLONG_MAX
19903	       # define HALF \
19904			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
19905	       # define LLONG_MAX (HALF - 1 + HALF)
19906	       #endif
19907int
19908main ()
19909{
19910long long int n = 1;
19911	       int i;
19912	       for (i = 0; ; i++)
19913		 {
19914		   long long int m = n << i;
19915		   if (m >> i != n)
19916		     return 1;
19917		   if (LLONG_MAX / 2 < m)
19918		     break;
19919		 }
19920	       return 0;
19921  ;
19922  return 0;
19923}
19924_ACEOF
19925if ac_fn_c_try_run "$LINENO"; then :
19926  ac_cv_type_long_long_int=yes
19927else
19928  ac_cv_type_long_long_int=no
19929fi
19930rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19931  conftest.$ac_objext conftest.beam conftest.$ac_ext
19932fi
19933
19934else
19935  ac_cv_type_long_long_int=no
19936fi
19937rm -f core conftest.err conftest.$ac_objext \
19938    conftest$ac_exeext conftest.$ac_ext
19939fi
19940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
19941$as_echo "$ac_cv_type_long_long_int" >&6; }
19942  if test $ac_cv_type_long_long_int = yes; then
19943
19944$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
19945
19946  fi
19947
19948
19949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
19950$as_echo_n "checking for unsigned long long int... " >&6; }
19951if ${ac_cv_type_unsigned_long_long_int+:} false; then :
19952  $as_echo_n "(cached) " >&6
19953else
19954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19955/* end confdefs.h.  */
19956
19957  /* For now, do not test the preprocessor; as of 2007 there are too many
19958	 implementations with broken preprocessors.  Perhaps this can
19959	 be revisited in 2012.  In the meantime, code should not expect
19960	 #if to work with literals wider than 32 bits.  */
19961      /* Test literals.  */
19962      long long int ll = 9223372036854775807ll;
19963      long long int nll = -9223372036854775807LL;
19964      unsigned long long int ull = 18446744073709551615ULL;
19965      /* Test constant expressions.   */
19966      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19967		     ? 1 : -1)];
19968      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
19969		     ? 1 : -1)];
19970      int i = 63;
19971int
19972main ()
19973{
19974/* Test availability of runtime routines for shift and division.  */
19975      long long int llmax = 9223372036854775807ll;
19976      unsigned long long int ullmax = 18446744073709551615ull;
19977      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
19978	      | (llmax / ll) | (llmax % ll)
19979	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
19980	      | (ullmax / ull) | (ullmax % ull));
19981  ;
19982  return 0;
19983}
19984
19985_ACEOF
19986if ac_fn_c_try_link "$LINENO"; then :
19987  ac_cv_type_unsigned_long_long_int=yes
19988else
19989  ac_cv_type_unsigned_long_long_int=no
19990fi
19991rm -f core conftest.err conftest.$ac_objext \
19992    conftest$ac_exeext conftest.$ac_ext
19993fi
19994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
19995$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
19996  if test $ac_cv_type_unsigned_long_long_int = yes; then
19997
19998$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
19999
20000  fi
20001
20002    ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20003if test "x$ac_cv_type_size_t" = xyes; then :
20004
20005else
20006
20007cat >>confdefs.h <<_ACEOF
20008#define size_t unsigned int
20009_ACEOF
20010
20011fi
20012
20013
20014
20015  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
20016if test "x$ac_cv_type_intmax_t" = xyes; then :
20017
20018$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
20019
20020else
20021  test $ac_cv_type_long_long_int = yes \
20022       && ac_type='long long int' \
20023       || ac_type='long int'
20024
20025cat >>confdefs.h <<_ACEOF
20026#define intmax_t $ac_type
20027_ACEOF
20028
20029fi
20030
20031
20032
20033
20034  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
20035if test "x$ac_cv_type_uintmax_t" = xyes; then :
20036
20037$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20038
20039else
20040  test $ac_cv_type_unsigned_long_long_int = yes \
20041       && ac_type='unsigned long long int' \
20042       || ac_type='unsigned long int'
20043
20044cat >>confdefs.h <<_ACEOF
20045#define uintmax_t $ac_type
20046_ACEOF
20047
20048fi
20049
20050
20051
20052  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
20053if test "x$ac_cv_type_uintptr_t" = xyes; then :
20054
20055$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
20056
20057else
20058  for ac_type in 'unsigned int' 'unsigned long int' \
20059	'unsigned long long int'; do
20060       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20061/* end confdefs.h.  */
20062$ac_includes_default
20063int
20064main ()
20065{
20066static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
20067test_array [0] = 0
20068
20069  ;
20070  return 0;
20071}
20072_ACEOF
20073if ac_fn_c_try_compile "$LINENO"; then :
20074
20075cat >>confdefs.h <<_ACEOF
20076#define uintptr_t $ac_type
20077_ACEOF
20078
20079	  ac_type=
20080fi
20081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20082       test -z "$ac_type" && break
20083     done
20084fi
20085
20086
20087    ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20088if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20089
20090cat >>confdefs.h <<_ACEOF
20091#define HAVE_PTRDIFF_T 1
20092_ACEOF
20093
20094
20095fi
20096
20097    for ac_func in localeconv
20098do :
20099  ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
20100if test "x$ac_cv_func_localeconv" = xyes; then :
20101  cat >>confdefs.h <<_ACEOF
20102#define HAVE_LOCALECONV 1
20103_ACEOF
20104
20105fi
20106done
20107
20108
20109  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
20110  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20111$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20112if ${ac_cv_c_const+:} false; then :
20113  $as_echo_n "(cached) " >&6
20114else
20115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20116/* end confdefs.h.  */
20117
20118int
20119main ()
20120{
20121/* FIXME: Include the comments suggested by Paul. */
20122#ifndef __cplusplus
20123  /* Ultrix mips cc rejects this.  */
20124  typedef int charset[2];
20125  const charset cs;
20126  /* SunOS 4.1.1 cc rejects this.  */
20127  char const *const *pcpcc;
20128  char **ppc;
20129  /* NEC SVR4.0.2 mips cc rejects this.  */
20130  struct point {int x, y;};
20131  static struct point const zero = {0,0};
20132  /* AIX XL C 1.02.0.0 rejects this.
20133     It does not let you subtract one const X* pointer from another in
20134     an arm of an if-expression whose if-part is not a constant
20135     expression */
20136  const char *g = "string";
20137  pcpcc = &g + (g ? g-g : 0);
20138  /* HPUX 7.0 cc rejects these. */
20139  ++pcpcc;
20140  ppc = (char**) pcpcc;
20141  pcpcc = (char const *const *) ppc;
20142  { /* SCO 3.2v4 cc rejects this.  */
20143    char *t;
20144    char const *s = 0 ? (char *) 0 : (char const *) 0;
20145
20146    *t++ = 0;
20147    if (s) return 0;
20148  }
20149  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20150    int x[] = {25, 17};
20151    const int *foo = &x[0];
20152    ++foo;
20153  }
20154  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20155    typedef const int *iptr;
20156    iptr p = 0;
20157    ++p;
20158  }
20159  { /* AIX XL C 1.02.0.0 rejects this saying
20160       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20161    struct s { int j; const int *ap[3]; };
20162    struct s *b; b->j = 5;
20163  }
20164  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20165    const int foo = 10;
20166    if (!foo) return 0;
20167  }
20168  return !cs[0] && !zero.x;
20169#endif
20170
20171  ;
20172  return 0;
20173}
20174_ACEOF
20175if ac_fn_c_try_compile "$LINENO"; then :
20176  ac_cv_c_const=yes
20177else
20178  ac_cv_c_const=no
20179fi
20180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20181fi
20182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20183$as_echo "$ac_cv_c_const" >&6; }
20184if test $ac_cv_c_const = no; then
20185
20186$as_echo "#define const /**/" >>confdefs.h
20187
20188fi
20189
20190
20191
20192
20193    case " $LIBOBJS " in
20194  *" snprintf.$ac_objext "* ) ;;
20195  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20196 ;;
20197esac
20198
20199    _hw_cv_func_xprintf_replace_done=yes
20200fi
20201
20202fi
20203
20204
20205    ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20206if test "x$ac_cv_func_snprintf" = xyes; then :
20207  hw_cv_func_snprintf=yes
20208else
20209  hw_cv_func_snprintf=no
20210fi
20211
20212  if test "$hw_cv_func_snprintf" = yes; then :
20213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
20214$as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
20215if ${hw_cv_func_snprintf_c99+:} false; then :
20216  $as_echo_n "(cached) " >&6
20217else
20218  if test "$cross_compiling" = yes; then :
20219  hw_cv_func_snprintf_c99=no
20220else
20221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20222/* end confdefs.h.  */
20223#include <stdio.h>
20224int
20225main ()
20226{
20227char buf[43];
20228          if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
20229              snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
20230              buf[0] != 'T' || buf[3] != '\0')
20231            return 1;
20232  ;
20233  return 0;
20234}
20235_ACEOF
20236if ac_fn_c_try_run "$LINENO"; then :
20237  hw_cv_func_snprintf_c99=yes
20238else
20239  hw_cv_func_snprintf_c99=no
20240fi
20241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20242  conftest.$ac_objext conftest.beam conftest.$ac_ext
20243fi
20244
20245fi
20246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
20247$as_echo "$hw_cv_func_snprintf_c99" >&6; }
20248else
20249  hw_cv_func_snprintf_c99=no
20250fi
20251
20252$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20253
20254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
20255$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
20256  if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
20257  hw_use_rpl_snprintf=yes
20258else
20259  hw_use_rpl_snprintf=no
20260fi
20261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
20262$as_echo "$hw_use_rpl_snprintf" >&6; }
20263  if test "$hw_use_rpl_snprintf" = yes; then :
20264
20265$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
20266
20267    if test ${hw_nodef_snprintf=no} = no; then :
20268
20269$as_echo "#define snprintf rpl_snprintf" >>confdefs.h
20270
20271fi
20272
20273  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
20274  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20275$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20276if ${ac_cv_c_const+:} false; then :
20277  $as_echo_n "(cached) " >&6
20278else
20279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20280/* end confdefs.h.  */
20281
20282int
20283main ()
20284{
20285/* FIXME: Include the comments suggested by Paul. */
20286#ifndef __cplusplus
20287  /* Ultrix mips cc rejects this.  */
20288  typedef int charset[2];
20289  const charset cs;
20290  /* SunOS 4.1.1 cc rejects this.  */
20291  char const *const *pcpcc;
20292  char **ppc;
20293  /* NEC SVR4.0.2 mips cc rejects this.  */
20294  struct point {int x, y;};
20295  static struct point const zero = {0,0};
20296  /* AIX XL C 1.02.0.0 rejects this.
20297     It does not let you subtract one const X* pointer from another in
20298     an arm of an if-expression whose if-part is not a constant
20299     expression */
20300  const char *g = "string";
20301  pcpcc = &g + (g ? g-g : 0);
20302  /* HPUX 7.0 cc rejects these. */
20303  ++pcpcc;
20304  ppc = (char**) pcpcc;
20305  pcpcc = (char const *const *) ppc;
20306  { /* SCO 3.2v4 cc rejects this.  */
20307    char *t;
20308    char const *s = 0 ? (char *) 0 : (char const *) 0;
20309
20310    *t++ = 0;
20311    if (s) return 0;
20312  }
20313  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20314    int x[] = {25, 17};
20315    const int *foo = &x[0];
20316    ++foo;
20317  }
20318  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20319    typedef const int *iptr;
20320    iptr p = 0;
20321    ++p;
20322  }
20323  { /* AIX XL C 1.02.0.0 rejects this saying
20324       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20325    struct s { int j; const int *ap[3]; };
20326    struct s *b; b->j = 5;
20327  }
20328  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20329    const int foo = 10;
20330    if (!foo) return 0;
20331  }
20332  return !cs[0] && !zero.x;
20333#endif
20334
20335  ;
20336  return 0;
20337}
20338_ACEOF
20339if ac_fn_c_try_compile "$LINENO"; then :
20340  ac_cv_c_const=yes
20341else
20342  ac_cv_c_const=no
20343fi
20344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20345fi
20346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20347$as_echo "$ac_cv_c_const" >&6; }
20348if test $ac_cv_c_const = no; then
20349
20350$as_echo "#define const /**/" >>confdefs.h
20351
20352fi
20353
20354
20355
20356
20357    case " $LIBOBJS " in
20358  *" snprintf.$ac_objext "* ) ;;
20359  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20360 ;;
20361esac
20362
20363    _hw_cv_func_xprintf_replace_done=yes
20364fi
20365
20366fi
20367
20368
20369
20370
20371
20372# HMS: Save $LIBS and empty it.
20373# any LIBS we add here should go in to LDADD_LIBNTP
20374
20375__LIBS=$LIBS
20376LIBS=
20377
20378
20379
20380# [Bug 2332] because we need to know if we are using GNU ld...
20381
20382
20383# Check whether --with-gnu-ld was given.
20384if test "${with_gnu_ld+set}" = set; then :
20385  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20386else
20387  with_gnu_ld=no
20388fi
20389
20390ac_prog=ld
20391if test "$GCC" = yes; then
20392  # Check if gcc -print-prog-name=ld gives a path.
20393  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20394$as_echo_n "checking for ld used by $CC... " >&6; }
20395  case $host in
20396  *-*-mingw*)
20397    # gcc leaves a trailing carriage return which upsets mingw
20398    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20399  *)
20400    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20401  esac
20402  case $ac_prog in
20403    # Accept absolute paths.
20404    [\\/]* | ?:[\\/]*)
20405      re_direlt='/[^/][^/]*/\.\./'
20406      # Canonicalize the pathname of ld
20407      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20408      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20409	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20410      done
20411      test -z "$LD" && LD="$ac_prog"
20412      ;;
20413  "")
20414    # If it fails, then pretend we aren't using GCC.
20415    ac_prog=ld
20416    ;;
20417  *)
20418    # If it is relative, then search for the first ld in PATH.
20419    with_gnu_ld=unknown
20420    ;;
20421  esac
20422elif test "$with_gnu_ld" = yes; then
20423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20424$as_echo_n "checking for GNU ld... " >&6; }
20425else
20426  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20427$as_echo_n "checking for non-GNU ld... " >&6; }
20428fi
20429if ${lt_cv_path_LD+:} false; then :
20430  $as_echo_n "(cached) " >&6
20431else
20432  if test -z "$LD"; then
20433  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20434  for ac_dir in $PATH; do
20435    IFS="$lt_save_ifs"
20436    test -z "$ac_dir" && ac_dir=.
20437    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20438      lt_cv_path_LD="$ac_dir/$ac_prog"
20439      # Check to see if the program is GNU ld.  I'd rather use --version,
20440      # but apparently some variants of GNU ld only accept -v.
20441      # Break only if it was the GNU/non-GNU ld that we prefer.
20442      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20443      *GNU* | *'with BFD'*)
20444	test "$with_gnu_ld" != no && break
20445	;;
20446      *)
20447	test "$with_gnu_ld" != yes && break
20448	;;
20449      esac
20450    fi
20451  done
20452  IFS="$lt_save_ifs"
20453else
20454  lt_cv_path_LD="$LD" # Let the user override the test with a path.
20455fi
20456fi
20457
20458LD="$lt_cv_path_LD"
20459if test -n "$LD"; then
20460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20461$as_echo "$LD" >&6; }
20462else
20463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20464$as_echo "no" >&6; }
20465fi
20466test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20468$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20469if ${lt_cv_prog_gnu_ld+:} false; then :
20470  $as_echo_n "(cached) " >&6
20471else
20472  # I'd rather use --version here, but apparently some GNU lds only accept -v.
20473case `$LD -v 2>&1 </dev/null` in
20474*GNU* | *'with BFD'*)
20475  lt_cv_prog_gnu_ld=yes
20476  ;;
20477*)
20478  lt_cv_prog_gnu_ld=no
20479  ;;
20480esac
20481fi
20482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20483$as_echo "$lt_cv_prog_gnu_ld" >&6; }
20484with_gnu_ld=$lt_cv_prog_gnu_ld
20485
20486
20487
20488
20489
20490
20491
20492
20493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
20494$as_echo_n "checking for directory path separator... " >&6; }
20495if ${ntp_cv_dir_sep+:} false; then :
20496  $as_echo_n "(cached) " >&6
20497else
20498
20499	case "$ntp_cv_dir_sep" in
20500	 '')
20501	    case "$host_os" in
20502	     *djgpp | *mingw32* | *emx*)
20503		ntp_cv_dir_sep="'\\'"
20504		;;
20505	     *)
20506		ntp_cv_dir_sep="'/'"
20507		;;
20508	    esac
20509	esac
20510
20511
20512fi
20513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
20514$as_echo "$ntp_cv_dir_sep" >&6; }
20515
20516cat >>confdefs.h <<_ACEOF
20517#define DIR_SEP $ntp_cv_dir_sep
20518_ACEOF
20519
20520
20521
20522    NTP_ORIG_LIBS="$LIBS"
20523
20524# Check whether --with-lineeditlibs was given.
20525if test "${with_lineeditlibs+set}" = set; then :
20526  withval=$with_lineeditlibs; use_lineeditlibs="$withval"
20527else
20528  use_lineeditlibs="edit,editline"
20529
20530fi
20531
20532    { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
20533$as_echo_n "checking line editing libraries... " >&6; }
20534    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
20535$as_echo "$use_lineeditlibs" >&6; }
20536    case "$use_lineeditlibs" in
20537     no)
20538	ntp_lib_lineedit=no
20539	;;
20540     *)
20541	for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
20542	    for term_lib in "" termcap curses ncurses; do
20543		case "$term_lib" in
20544		 '')
20545		    TRY_LIB="-l$lineedit_lib"
20546		    ;;
20547		 *)
20548		    TRY_LIB="-l$lineedit_lib -l$term_lib"
20549		    ;;
20550		esac
20551		LIBS="$NTP_ORIG_LIBS $TRY_LIB"
20552		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
20553$as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
20554		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20555/* end confdefs.h.  */
20556
20557/* Override any GCC internal prototype to avoid an error.
20558   Use char because int might match the return type of a GCC
20559   builtin and then its argument prototype would still apply.  */
20560#ifdef __cplusplus
20561extern "C"
20562#endif
20563char readline ();
20564int
20565main ()
20566{
20567return readline ();
20568  ;
20569  return 0;
20570}
20571_ACEOF
20572if ac_fn_c_try_link "$LINENO"; then :
20573  ntp_lib_lineedit="$TRY_LIB"
20574fi
20575rm -f core conftest.err conftest.$ac_objext \
20576    conftest$ac_exeext conftest.$ac_ext
20577		case "$ntp_lib_lineedit" in
20578		 '')
20579		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20580$as_echo "no" >&6; }
20581		    ;;
20582		 *)
20583		    # Use readline()
20584		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20585$as_echo "yes" >&6; }
20586		    break
20587		esac
20588		case "$term_lib" in
20589		 '')
20590		    # do not try el_gets without a terminal library
20591		    ;;
20592		 *)
20593		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
20594$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
20595		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20596/* end confdefs.h.  */
20597
20598/* Override any GCC internal prototype to avoid an error.
20599   Use char because int might match the return type of a GCC
20600   builtin and then its argument prototype would still apply.  */
20601#ifdef __cplusplus
20602extern "C"
20603#endif
20604char el_gets ();
20605int
20606main ()
20607{
20608return el_gets ();
20609  ;
20610  return 0;
20611}
20612_ACEOF
20613if ac_fn_c_try_link "$LINENO"; then :
20614  ntp_lib_lineedit="$TRY_LIB"
20615fi
20616rm -f core conftest.err conftest.$ac_objext \
20617    conftest$ac_exeext conftest.$ac_ext
20618		    case "$ntp_lib_lineedit" in
20619		     '')
20620			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20621$as_echo "no" >&6; }
20622			;;
20623		     *) # Use el_gets()
20624			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20625$as_echo "yes" >&6; }
20626			break
20627			;;
20628		    esac	# $ntp_lib_lineedit
20629		esac		# $term_lib
20630	    done
20631	    case "$ntp_lib_lineedit" in
20632	     '')
20633		;;
20634	     *)
20635		break
20636		;;
20637	    esac
20638	done
20639	LIBS="$NTP_ORIG_LIBS"
20640	;;
20641    esac	# $use_lineeditlibs
20642
20643    case "$ntp_lib_lineedit" in
20644     '')
20645	ntp_lib_lineedit="no"
20646	;;
20647     no)
20648	;;
20649     *)
20650	EDITLINE_LIBS="$ntp_lib_lineedit"
20651
20652	;;
20653    esac	# $ntp_lib_lineedit
20654
20655    case "$ntp_lib_lineedit" in
20656     no)
20657	;;
20658     *)
20659	for ac_header in readline.h readline/readline.h histedit.h
20660do :
20661  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20662ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20663if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20664  cat >>confdefs.h <<_ACEOF
20665#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20666_ACEOF
20667
20668fi
20669
20670done
20671
20672	for ac_header in history.h readline/history.h
20673do :
20674  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20675ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20676if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20677  cat >>confdefs.h <<_ACEOF
20678#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20679_ACEOF
20680
20681fi
20682
20683done
20684
20685
20686	case "$ac_cv_header_histedit_h" in
20687	 yes)
20688	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
20689$as_echo_n "checking number of arguments to el_init()... " >&6; }
20690if ${ntp_cv_el_init_args+:} false; then :
20691  $as_echo_n "(cached) " >&6
20692else
20693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20694/* end confdefs.h.  */
20695
20696			    #include <stdio.h>
20697			    #include <histedit.h>
20698
20699int
20700main ()
20701{
20702
20703			    el_init("conftest", stdin, stdout, stderr);
20704
20705
20706  ;
20707  return 0;
20708}
20709_ACEOF
20710if ac_fn_c_try_compile "$LINENO"; then :
20711  ntp_cv_el_init_args=4
20712else
20713  ntp_cv_el_init_args=3
20714
20715fi
20716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20717
20718fi
20719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
20720$as_echo "$ntp_cv_el_init_args" >&6; }
20721
20722cat >>confdefs.h <<_ACEOF
20723#define EL_INIT_ARGS $ntp_cv_el_init_args
20724_ACEOF
20725
20726	esac
20727
20728	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20729$as_echo_n "checking whether readline supports history... " >&6; }
20730
20731	ntp_lib_lineedit_history="no"
20732	ORIG_LIBS="$LIBS"
20733	LIBS="$ORIG_LIBS $ntp_lib_lineedit"
20734	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20735/* end confdefs.h.  */
20736
20737/* Override any GCC internal prototype to avoid an error.
20738   Use char because int might match the return type of a GCC
20739   builtin and then its argument prototype would still apply.  */
20740#ifdef __cplusplus
20741extern "C"
20742#endif
20743char add_history ();
20744int
20745main ()
20746{
20747return add_history ();
20748  ;
20749  return 0;
20750}
20751_ACEOF
20752if ac_fn_c_try_link "$LINENO"; then :
20753  ntp_lib_lineedit_history="yes"
20754fi
20755rm -f core conftest.err conftest.$ac_objext \
20756    conftest$ac_exeext conftest.$ac_ext
20757	LIBS="$ORIG_LIBS"
20758
20759	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
20760$as_echo "$ntp_lib_lineedit_history" >&6; }
20761
20762	case "$ntp_lib_lineedit_history" in
20763	 yes)
20764
20765$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
20766
20767	esac
20768    esac	# $ntp_lib_lineedit
20769    { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
20770    { ORIG_LIBS=; unset ORIG_LIBS;}
20771    { TRY_LIB=; unset TRY_LIB;}
20772    { use_lineeditlibs=; unset use_lineeditlibs;}
20773
20774
20775LIBM=
20776case "$host" in
20777 *-*-darwin*)
20778    ;;
20779 *)
20780    _libs=$LIBS
20781    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
20782$as_echo_n "checking for library containing cos... " >&6; }
20783if ${ac_cv_search_cos+:} false; then :
20784  $as_echo_n "(cached) " >&6
20785else
20786  ac_func_search_save_LIBS=$LIBS
20787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20788/* end confdefs.h.  */
20789
20790/* Override any GCC internal prototype to avoid an error.
20791   Use char because int might match the return type of a GCC
20792   builtin and then its argument prototype would still apply.  */
20793#ifdef __cplusplus
20794extern "C"
20795#endif
20796char cos ();
20797int
20798main ()
20799{
20800return cos ();
20801  ;
20802  return 0;
20803}
20804_ACEOF
20805for ac_lib in '' m; do
20806  if test -z "$ac_lib"; then
20807    ac_res="none required"
20808  else
20809    ac_res=-l$ac_lib
20810    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20811  fi
20812  if ac_fn_c_try_link "$LINENO"; then :
20813  ac_cv_search_cos=$ac_res
20814fi
20815rm -f core conftest.err conftest.$ac_objext \
20816    conftest$ac_exeext
20817  if ${ac_cv_search_cos+:} false; then :
20818  break
20819fi
20820done
20821if ${ac_cv_search_cos+:} false; then :
20822
20823else
20824  ac_cv_search_cos=no
20825fi
20826rm conftest.$ac_ext
20827LIBS=$ac_func_search_save_LIBS
20828fi
20829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
20830$as_echo "$ac_cv_search_cos" >&6; }
20831ac_res=$ac_cv_search_cos
20832if test "$ac_res" != no; then :
20833  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20834  LIBM="-lm"
20835fi
20836
20837    LIBS=$_libs
20838    ;;
20839esac
20840
20841{ _libs=; unset _libs;}
20842
20843
20844for ac_header in vfork.h
20845do :
20846  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
20847if test "x$ac_cv_header_vfork_h" = xyes; then :
20848  cat >>confdefs.h <<_ACEOF
20849#define HAVE_VFORK_H 1
20850_ACEOF
20851
20852fi
20853
20854done
20855
20856for ac_func in fork vfork
20857do :
20858  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20859ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20860if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20861  cat >>confdefs.h <<_ACEOF
20862#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20863_ACEOF
20864
20865fi
20866done
20867
20868if test "x$ac_cv_func_fork" = xyes; then
20869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20870$as_echo_n "checking for working fork... " >&6; }
20871if ${ac_cv_func_fork_works+:} false; then :
20872  $as_echo_n "(cached) " >&6
20873else
20874  if test "$cross_compiling" = yes; then :
20875  ac_cv_func_fork_works=cross
20876else
20877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20878/* end confdefs.h.  */
20879$ac_includes_default
20880int
20881main ()
20882{
20883
20884	  /* By Ruediger Kuhlmann. */
20885	  return fork () < 0;
20886
20887  ;
20888  return 0;
20889}
20890_ACEOF
20891if ac_fn_c_try_run "$LINENO"; then :
20892  ac_cv_func_fork_works=yes
20893else
20894  ac_cv_func_fork_works=no
20895fi
20896rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20897  conftest.$ac_objext conftest.beam conftest.$ac_ext
20898fi
20899
20900fi
20901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
20902$as_echo "$ac_cv_func_fork_works" >&6; }
20903
20904else
20905  ac_cv_func_fork_works=$ac_cv_func_fork
20906fi
20907if test "x$ac_cv_func_fork_works" = xcross; then
20908  case $host in
20909    *-*-amigaos* | *-*-msdosdjgpp*)
20910      # Override, as these systems have only a dummy fork() stub
20911      ac_cv_func_fork_works=no
20912      ;;
20913    *)
20914      ac_cv_func_fork_works=yes
20915      ;;
20916  esac
20917  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20918$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20919fi
20920ac_cv_func_vfork_works=$ac_cv_func_vfork
20921if test "x$ac_cv_func_vfork" = xyes; then
20922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
20923$as_echo_n "checking for working vfork... " >&6; }
20924if ${ac_cv_func_vfork_works+:} false; then :
20925  $as_echo_n "(cached) " >&6
20926else
20927  if test "$cross_compiling" = yes; then :
20928  ac_cv_func_vfork_works=cross
20929else
20930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20931/* end confdefs.h.  */
20932/* Thanks to Paul Eggert for this test.  */
20933$ac_includes_default
20934#include <sys/wait.h>
20935#ifdef HAVE_VFORK_H
20936# include <vfork.h>
20937#endif
20938/* On some sparc systems, changes by the child to local and incoming
20939   argument registers are propagated back to the parent.  The compiler
20940   is told about this with #include <vfork.h>, but some compilers
20941   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
20942   static variable whose address is put into a register that is
20943   clobbered by the vfork.  */
20944static void
20945#ifdef __cplusplus
20946sparc_address_test (int arg)
20947# else
20948sparc_address_test (arg) int arg;
20949#endif
20950{
20951  static pid_t child;
20952  if (!child) {
20953    child = vfork ();
20954    if (child < 0) {
20955      perror ("vfork");
20956      _exit(2);
20957    }
20958    if (!child) {
20959      arg = getpid();
20960      write(-1, "", 0);
20961      _exit (arg);
20962    }
20963  }
20964}
20965
20966int
20967main ()
20968{
20969  pid_t parent = getpid ();
20970  pid_t child;
20971
20972  sparc_address_test (0);
20973
20974  child = vfork ();
20975
20976  if (child == 0) {
20977    /* Here is another test for sparc vfork register problems.  This
20978       test uses lots of local variables, at least as many local
20979       variables as main has allocated so far including compiler
20980       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
20981       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
20982       reuse the register of parent for one of the local variables,
20983       since it will think that parent can't possibly be used any more
20984       in this routine.  Assigning to the local variable will thus
20985       munge parent in the parent process.  */
20986    pid_t
20987      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20988      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20989    /* Convince the compiler that p..p7 are live; otherwise, it might
20990       use the same hardware register for all 8 local variables.  */
20991    if (p != p1 || p != p2 || p != p3 || p != p4
20992	|| p != p5 || p != p6 || p != p7)
20993      _exit(1);
20994
20995    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20996       from child file descriptors.  If the child closes a descriptor
20997       before it execs or exits, this munges the parent's descriptor
20998       as well.  Test for this by closing stdout in the child.  */
20999    _exit(close(fileno(stdout)) != 0);
21000  } else {
21001    int status;
21002    struct stat st;
21003
21004    while (wait(&status) != child)
21005      ;
21006    return (
21007	 /* Was there some problem with vforking?  */
21008	 child < 0
21009
21010	 /* Did the child fail?  (This shouldn't happen.)  */
21011	 || status
21012
21013	 /* Did the vfork/compiler bug occur?  */
21014	 || parent != getpid()
21015
21016	 /* Did the file descriptor bug occur?  */
21017	 || fstat(fileno(stdout), &st) != 0
21018	 );
21019  }
21020}
21021_ACEOF
21022if ac_fn_c_try_run "$LINENO"; then :
21023  ac_cv_func_vfork_works=yes
21024else
21025  ac_cv_func_vfork_works=no
21026fi
21027rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21028  conftest.$ac_objext conftest.beam conftest.$ac_ext
21029fi
21030
21031fi
21032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21033$as_echo "$ac_cv_func_vfork_works" >&6; }
21034
21035fi;
21036if test "x$ac_cv_func_fork_works" = xcross; then
21037  ac_cv_func_vfork_works=$ac_cv_func_vfork
21038  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21039$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21040fi
21041
21042if test "x$ac_cv_func_vfork_works" = xyes; then
21043
21044$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21045
21046else
21047
21048$as_echo "#define vfork fork" >>confdefs.h
21049
21050fi
21051if test "x$ac_cv_func_fork_works" = xyes; then
21052
21053$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21054
21055fi
21056
21057# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21058# for constant arguments.  Useless!
21059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21060$as_echo_n "checking for working alloca.h... " >&6; }
21061if ${ac_cv_working_alloca_h+:} false; then :
21062  $as_echo_n "(cached) " >&6
21063else
21064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21065/* end confdefs.h.  */
21066#include <alloca.h>
21067int
21068main ()
21069{
21070char *p = (char *) alloca (2 * sizeof (int));
21071			  if (p) return 0;
21072  ;
21073  return 0;
21074}
21075_ACEOF
21076if ac_fn_c_try_link "$LINENO"; then :
21077  ac_cv_working_alloca_h=yes
21078else
21079  ac_cv_working_alloca_h=no
21080fi
21081rm -f core conftest.err conftest.$ac_objext \
21082    conftest$ac_exeext conftest.$ac_ext
21083fi
21084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21085$as_echo "$ac_cv_working_alloca_h" >&6; }
21086if test $ac_cv_working_alloca_h = yes; then
21087
21088$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21089
21090fi
21091
21092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21093$as_echo_n "checking for alloca... " >&6; }
21094if ${ac_cv_func_alloca_works+:} false; then :
21095  $as_echo_n "(cached) " >&6
21096else
21097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21098/* end confdefs.h.  */
21099#ifdef __GNUC__
21100# define alloca __builtin_alloca
21101#else
21102# ifdef _MSC_VER
21103#  include <malloc.h>
21104#  define alloca _alloca
21105# else
21106#  ifdef HAVE_ALLOCA_H
21107#   include <alloca.h>
21108#  else
21109#   ifdef _AIX
21110 #pragma alloca
21111#   else
21112#    ifndef alloca /* predefined by HP cc +Olibcalls */
21113void *alloca (size_t);
21114#    endif
21115#   endif
21116#  endif
21117# endif
21118#endif
21119
21120int
21121main ()
21122{
21123char *p = (char *) alloca (1);
21124				    if (p) return 0;
21125  ;
21126  return 0;
21127}
21128_ACEOF
21129if ac_fn_c_try_link "$LINENO"; then :
21130  ac_cv_func_alloca_works=yes
21131else
21132  ac_cv_func_alloca_works=no
21133fi
21134rm -f core conftest.err conftest.$ac_objext \
21135    conftest$ac_exeext conftest.$ac_ext
21136fi
21137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21138$as_echo "$ac_cv_func_alloca_works" >&6; }
21139
21140if test $ac_cv_func_alloca_works = yes; then
21141
21142$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21143
21144else
21145  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21146# that cause trouble.  Some versions do not even contain alloca or
21147# contain a buggy version.  If you still want to use their alloca,
21148# use ar to extract alloca.o from them instead of compiling alloca.c.
21149
21150ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21151
21152$as_echo "#define C_ALLOCA 1" >>confdefs.h
21153
21154
21155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21156$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21157if ${ac_cv_os_cray+:} false; then :
21158  $as_echo_n "(cached) " >&6
21159else
21160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21161/* end confdefs.h.  */
21162#if defined CRAY && ! defined CRAY2
21163webecray
21164#else
21165wenotbecray
21166#endif
21167
21168_ACEOF
21169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21170  $EGREP "webecray" >/dev/null 2>&1; then :
21171  ac_cv_os_cray=yes
21172else
21173  ac_cv_os_cray=no
21174fi
21175rm -f conftest*
21176
21177fi
21178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21179$as_echo "$ac_cv_os_cray" >&6; }
21180if test $ac_cv_os_cray = yes; then
21181  for ac_func in _getb67 GETB67 getb67; do
21182    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21183ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21184if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21185
21186cat >>confdefs.h <<_ACEOF
21187#define CRAY_STACKSEG_END $ac_func
21188_ACEOF
21189
21190    break
21191fi
21192
21193  done
21194fi
21195
21196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21197$as_echo_n "checking stack direction for C alloca... " >&6; }
21198if ${ac_cv_c_stack_direction+:} false; then :
21199  $as_echo_n "(cached) " >&6
21200else
21201  if test "$cross_compiling" = yes; then :
21202  ac_cv_c_stack_direction=0
21203else
21204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21205/* end confdefs.h.  */
21206$ac_includes_default
21207int
21208find_stack_direction ()
21209{
21210  static char *addr = 0;
21211  auto char dummy;
21212  if (addr == 0)
21213    {
21214      addr = &dummy;
21215      return find_stack_direction ();
21216    }
21217  else
21218    return (&dummy > addr) ? 1 : -1;
21219}
21220
21221int
21222main ()
21223{
21224  return find_stack_direction () < 0;
21225}
21226_ACEOF
21227if ac_fn_c_try_run "$LINENO"; then :
21228  ac_cv_c_stack_direction=1
21229else
21230  ac_cv_c_stack_direction=-1
21231fi
21232rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21233  conftest.$ac_objext conftest.beam conftest.$ac_ext
21234fi
21235
21236fi
21237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21238$as_echo "$ac_cv_c_stack_direction" >&6; }
21239cat >>confdefs.h <<_ACEOF
21240#define STACK_DIRECTION $ac_cv_c_stack_direction
21241_ACEOF
21242
21243
21244fi
21245
21246ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
21247if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
21248  ac_have_decl=1
21249else
21250  ac_have_decl=0
21251fi
21252
21253cat >>confdefs.h <<_ACEOF
21254#define HAVE_DECL_STRERROR_R $ac_have_decl
21255_ACEOF
21256
21257for ac_func in strerror_r
21258do :
21259  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
21260if test "x$ac_cv_func_strerror_r" = xyes; then :
21261  cat >>confdefs.h <<_ACEOF
21262#define HAVE_STRERROR_R 1
21263_ACEOF
21264
21265fi
21266done
21267
21268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
21269$as_echo_n "checking whether strerror_r returns char *... " >&6; }
21270if ${ac_cv_func_strerror_r_char_p+:} false; then :
21271  $as_echo_n "(cached) " >&6
21272else
21273
21274    ac_cv_func_strerror_r_char_p=no
21275    if test $ac_cv_have_decl_strerror_r = yes; then
21276      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21277/* end confdefs.h.  */
21278$ac_includes_default
21279int
21280main ()
21281{
21282
21283	  char buf[100];
21284	  char x = *strerror_r (0, buf, sizeof buf);
21285	  char *p = strerror_r (0, buf, sizeof buf);
21286	  return !p || x;
21287
21288  ;
21289  return 0;
21290}
21291_ACEOF
21292if ac_fn_c_try_compile "$LINENO"; then :
21293  ac_cv_func_strerror_r_char_p=yes
21294fi
21295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21296    else
21297      # strerror_r is not declared.  Choose between
21298      # systems that have relatively inaccessible declarations for the
21299      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
21300      # former has a strerror_r that returns char*, while the latter
21301      # has a strerror_r that returns `int'.
21302      # This test should segfault on the DEC system.
21303      if test "$cross_compiling" = yes; then :
21304  :
21305else
21306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21307/* end confdefs.h.  */
21308$ac_includes_default
21309	extern char *strerror_r ();
21310int
21311main ()
21312{
21313char buf[100];
21314	  char x = *strerror_r (0, buf, sizeof buf);
21315	  return ! isalpha (x);
21316  ;
21317  return 0;
21318}
21319_ACEOF
21320if ac_fn_c_try_run "$LINENO"; then :
21321  ac_cv_func_strerror_r_char_p=yes
21322fi
21323rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21324  conftest.$ac_objext conftest.beam conftest.$ac_ext
21325fi
21326
21327    fi
21328
21329fi
21330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
21331$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
21332if test $ac_cv_func_strerror_r_char_p = yes; then
21333
21334$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
21335
21336fi
21337
21338
21339ac_busted_vpath_in_make=no
21340case "$build" in
21341 *-*-irix6.1*)	# 64 bit only
21342    # busted vpath?
21343    ;;
21344 *-*-irix6*)	# 6.2 (and later?)
21345    ac_busted_vpath_in_make=yes
21346    ;;
21347 *-*-solaris2.5.1)
21348    ac_busted_vpath_in_make=yes
21349    ;;
21350 *-*-unicosmp*)
21351    ac_busted_vpath_in_make=yes
21352    ;;
21353esac
21354
21355case "$ac_busted_vpath_in_make$srcdir" in
21356 yes.|no*)
21357    ;;
21358 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
21359     '')
21360	as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
21361    esac
21362    ;;
21363esac
21364
21365case "$host" in
21366 *-*-aix4*)
21367	# Bug 2516:
21368	# Was *-*-aix[[4-9]]*
21369	# XXX only verified thru AIX6.  But...
21370	# Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
21371	# that this support would be in 5.3, removed in 6, and added back.
21372	#
21373	# (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
21374	# (returning ENOSYS).  I didn't check 4.2.  If, in the future,
21375	# IBM pulls its thumbs out long enough to implement clock_settime,
21376	# this conditional will need to change.  Maybe use AC_TRY_RUN
21377	# instead to try to set the time to itself and check errno.
21378    ;;
21379 *)
21380    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21381$as_echo_n "checking for library containing clock_gettime... " >&6; }
21382if ${ac_cv_search_clock_gettime+:} false; then :
21383  $as_echo_n "(cached) " >&6
21384else
21385  ac_func_search_save_LIBS=$LIBS
21386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21387/* end confdefs.h.  */
21388
21389/* Override any GCC internal prototype to avoid an error.
21390   Use char because int might match the return type of a GCC
21391   builtin and then its argument prototype would still apply.  */
21392#ifdef __cplusplus
21393extern "C"
21394#endif
21395char clock_gettime ();
21396int
21397main ()
21398{
21399return clock_gettime ();
21400  ;
21401  return 0;
21402}
21403_ACEOF
21404for ac_lib in '' rt; do
21405  if test -z "$ac_lib"; then
21406    ac_res="none required"
21407  else
21408    ac_res=-l$ac_lib
21409    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21410  fi
21411  if ac_fn_c_try_link "$LINENO"; then :
21412  ac_cv_search_clock_gettime=$ac_res
21413fi
21414rm -f core conftest.err conftest.$ac_objext \
21415    conftest$ac_exeext
21416  if ${ac_cv_search_clock_gettime+:} false; then :
21417  break
21418fi
21419done
21420if ${ac_cv_search_clock_gettime+:} false; then :
21421
21422else
21423  ac_cv_search_clock_gettime=no
21424fi
21425rm conftest.$ac_ext
21426LIBS=$ac_func_search_save_LIBS
21427fi
21428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21429$as_echo "$ac_cv_search_clock_gettime" >&6; }
21430ac_res=$ac_cv_search_clock_gettime
21431if test "$ac_res" != no; then :
21432  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21433  case "$ac_cv_search_clock_gettime" in
21434 'none required') ;;
21435 no) ;;
21436 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
21437 esac
21438
21439fi
21440
21441    for ac_func in clock_getres clock_gettime clock_settime
21442do :
21443  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21444ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21445if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21446  cat >>confdefs.h <<_ACEOF
21447#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21448_ACEOF
21449
21450fi
21451done
21452
21453    ;;
21454esac
21455
21456for ac_func in getclock stime timegm strlcpy strlcat
21457do :
21458  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21459ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21460if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21461  cat >>confdefs.h <<_ACEOF
21462#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21463_ACEOF
21464
21465fi
21466done
21467
21468
21469# Bug 2713
21470LDADD_LIBUTIL=
21471
21472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
21473$as_echo_n "checking for library containing snprintb... " >&6; }
21474if ${ac_cv_search_snprintb+:} false; then :
21475  $as_echo_n "(cached) " >&6
21476else
21477  ac_func_search_save_LIBS=$LIBS
21478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21479/* end confdefs.h.  */
21480
21481/* Override any GCC internal prototype to avoid an error.
21482   Use char because int might match the return type of a GCC
21483   builtin and then its argument prototype would still apply.  */
21484#ifdef __cplusplus
21485extern "C"
21486#endif
21487char snprintb ();
21488int
21489main ()
21490{
21491return snprintb ();
21492  ;
21493  return 0;
21494}
21495_ACEOF
21496for ac_lib in '' util; do
21497  if test -z "$ac_lib"; then
21498    ac_res="none required"
21499  else
21500    ac_res=-l$ac_lib
21501    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21502  fi
21503  if ac_fn_c_try_link "$LINENO"; then :
21504  ac_cv_search_snprintb=$ac_res
21505fi
21506rm -f core conftest.err conftest.$ac_objext \
21507    conftest$ac_exeext
21508  if ${ac_cv_search_snprintb+:} false; then :
21509  break
21510fi
21511done
21512if ${ac_cv_search_snprintb+:} false; then :
21513
21514else
21515  ac_cv_search_snprintb=no
21516fi
21517rm conftest.$ac_ext
21518LIBS=$ac_func_search_save_LIBS
21519fi
21520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
21521$as_echo "$ac_cv_search_snprintb" >&6; }
21522ac_res=$ac_cv_search_snprintb
21523if test "$ac_res" != no; then :
21524  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21525  case "$ac_cv_search_snprintb" in
21526 'none required') ;;
21527 no) ;;
21528 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
21529 esac
21530
21531$as_echo "#define USE_SNPRINTB 1" >>confdefs.h
21532
21533fi
21534
21535
21536#
21537for ac_header in errno.h sys/socket.h sys/types.h time.h
21538do :
21539  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21540ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21541if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21542  cat >>confdefs.h <<_ACEOF
21543#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21544_ACEOF
21545
21546fi
21547
21548done
21549
21550for ac_header in net/if.h
21551do :
21552  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
21553    #ifdef HAVE_SYS_SOCKET_H
21554    # include <sys/socket.h>
21555    #endif
21556
21557"
21558if test "x$ac_cv_header_net_if_h" = xyes; then :
21559  cat >>confdefs.h <<_ACEOF
21560#define HAVE_NET_IF_H 1
21561_ACEOF
21562
21563fi
21564
21565done
21566
21567case "$host" in
21568 *-hp-hpux*)
21569    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
21570$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
21571if ${ntp_cv_predecl_mpinfou+:} false; then :
21572  $as_echo_n "(cached) " >&6
21573else
21574
21575	    np_cv_predecl_mpinfou=no
21576	    case "$ac_cv_header_net_if_h" in
21577	     no)
21578		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21579/* end confdefs.h.  */
21580
21581			    typedef union mpinfou {
21582				    struct pdk_mpinfo *pdkptr;
21583				    struct mpinfo *pikptr;
21584			    } mpinfou_t;
21585			    #ifdef HAVE_SYS_SOCKET_H
21586			    # include <sys/socket.h>
21587			    #endif
21588			    #include <net/if.h>
21589
21590int
21591main ()
21592{
21593
21594
21595
21596  ;
21597  return 0;
21598}
21599_ACEOF
21600if ac_fn_c_try_compile "$LINENO"; then :
21601
21602			ntp_cv_predecl_mpinfou=yes
21603			ac_cv_header_net_if_h=yes
21604
21605
21606fi
21607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21608	    esac
21609
21610
21611fi
21612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
21613$as_echo "$ntp_cv_predecl_mpinfou" >&6; }
21614    case "$ntp_cv_predecl_mpinfou" in
21615     yes)
21616	cat >>confdefs.h <<_ACEOF
21617#ifndef MPINFOU_PREDECLARED
21618# define MPINFOU_PREDECLARED
21619typedef union mpinfou {
21620	struct pdk_mpinfo *pdkptr;
21621	struct mpinfo *pikptr;
21622} mpinfou_t;
21623#endif
21624_ACEOF
21625
21626    esac
21627esac
21628
21629case "$host" in
21630 *-linux*)
21631    for ac_header in linux/if_addr.h
21632do :
21633  ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
21634	#ifdef HAVE_SYS_SOCKET_H
21635	# include <sys/socket.h>
21636	#endif
21637
21638"
21639if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
21640  cat >>confdefs.h <<_ACEOF
21641#define HAVE_LINUX_IF_ADDR_H 1
21642_ACEOF
21643
21644fi
21645
21646done
21647
21648esac
21649
21650for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
21651do :
21652  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21653ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21654if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21655  cat >>confdefs.h <<_ACEOF
21656#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21657_ACEOF
21658
21659fi
21660
21661done
21662
21663# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
21664for ac_header in sys/sysctl.h
21665do :
21666  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
21667    #if defined HAVE_SYS_PARAM_H
21668    # include <sys/param.h>
21669    #endif
21670
21671"
21672if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
21673  cat >>confdefs.h <<_ACEOF
21674#define HAVE_SYS_SYSCTL_H 1
21675_ACEOF
21676
21677fi
21678
21679done
21680
21681for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
21682do :
21683  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21684ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21685if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21686  cat >>confdefs.h <<_ACEOF
21687#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21688_ACEOF
21689
21690fi
21691
21692done
21693
21694
21695for ac_header in resolv.h
21696do :
21697  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
21698    #ifdef HAVE_SYS_TYPES_H
21699    # include <sys/types.h>
21700    #endif
21701    #ifdef HAVE_NETINET_IN_H
21702    # include <netinet/in.h>
21703    #endif
21704    #ifdef HAVE_ARPA_NAMESER_H
21705    # include <arpa/nameser.h>
21706    #endif
21707
21708"
21709if test "x$ac_cv_header_resolv_h" = xyes; then :
21710  cat >>confdefs.h <<_ACEOF
21711#define HAVE_RESOLV_H 1
21712_ACEOF
21713
21714fi
21715
21716done
21717
21718
21719for ac_header in net/if_var.h
21720do :
21721  ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
21722    #if HAVE_SYS_TYPES_H
21723    # include <sys/types.h>
21724    #endif
21725    #ifdef HAVE_SYS_SOCKET_H
21726    # include <sys/socket.h>
21727    #endif
21728    #ifdef HAVE_NETINET_IN_H
21729    # include <netinet/in.h>
21730    #endif
21731    #ifdef HAVE_NET_IF_H
21732    # include <net/if.h>
21733    #endif
21734
21735"
21736if test "x$ac_cv_header_net_if_var_h" = xyes; then :
21737  cat >>confdefs.h <<_ACEOF
21738#define HAVE_NET_IF_VAR_H 1
21739_ACEOF
21740
21741fi
21742
21743done
21744
21745
21746for ac_header in netinet/ip.h netinet/in_var.h
21747do :
21748  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21749ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21750    #ifdef HAVE_SYS_TYPES_H
21751    # include <sys/types.h>
21752    #endif
21753    #ifdef HAVE_SYS_SOCKET_H
21754    # include <sys/socket.h>
21755    #endif
21756    #ifdef HAVE_NET_IF_H
21757    # include <net/if.h>
21758    #endif
21759    #ifdef HAVE_NETINET_IN_H
21760    # include <netinet/in.h>
21761    #endif
21762    #ifdef HAVE_NET_IF_VAR_H
21763    # include <net/if_var.h>
21764    #endif
21765    #ifdef HAVE_NETINET_IN_SYSTM_H
21766    # include <netinet/in_systm.h>
21767    #endif
21768
21769"
21770if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21771  cat >>confdefs.h <<_ACEOF
21772#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21773_ACEOF
21774
21775fi
21776
21777done
21778
21779
21780# HMS: Do we need to check for -lsocket before or after these tests?
21781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
21782$as_echo_n "checking for library containing inet_pton... " >&6; }
21783if ${ac_cv_search_inet_pton+:} false; then :
21784  $as_echo_n "(cached) " >&6
21785else
21786  ac_func_search_save_LIBS=$LIBS
21787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21788/* end confdefs.h.  */
21789
21790/* Override any GCC internal prototype to avoid an error.
21791   Use char because int might match the return type of a GCC
21792   builtin and then its argument prototype would still apply.  */
21793#ifdef __cplusplus
21794extern "C"
21795#endif
21796char inet_pton ();
21797int
21798main ()
21799{
21800return inet_pton ();
21801  ;
21802  return 0;
21803}
21804_ACEOF
21805for ac_lib in '' nsl; do
21806  if test -z "$ac_lib"; then
21807    ac_res="none required"
21808  else
21809    ac_res=-l$ac_lib
21810    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21811  fi
21812  if ac_fn_c_try_link "$LINENO"; then :
21813  ac_cv_search_inet_pton=$ac_res
21814fi
21815rm -f core conftest.err conftest.$ac_objext \
21816    conftest$ac_exeext
21817  if ${ac_cv_search_inet_pton+:} false; then :
21818  break
21819fi
21820done
21821if ${ac_cv_search_inet_pton+:} false; then :
21822
21823else
21824  ac_cv_search_inet_pton=no
21825fi
21826rm conftest.$ac_ext
21827LIBS=$ac_func_search_save_LIBS
21828fi
21829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
21830$as_echo "$ac_cv_search_inet_pton" >&6; }
21831ac_res=$ac_cv_search_inet_pton
21832if test "$ac_res" != no; then :
21833  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21834  case "$ac_cv_search_inet_pton" in
21835 'none required') ;;
21836 no) ;;
21837 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
21838 esac
21839
21840fi
21841
21842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
21843$as_echo_n "checking for library containing inet_ntop... " >&6; }
21844if ${ac_cv_search_inet_ntop+:} false; then :
21845  $as_echo_n "(cached) " >&6
21846else
21847  ac_func_search_save_LIBS=$LIBS
21848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21849/* end confdefs.h.  */
21850
21851/* Override any GCC internal prototype to avoid an error.
21852   Use char because int might match the return type of a GCC
21853   builtin and then its argument prototype would still apply.  */
21854#ifdef __cplusplus
21855extern "C"
21856#endif
21857char inet_ntop ();
21858int
21859main ()
21860{
21861return inet_ntop ();
21862  ;
21863  return 0;
21864}
21865_ACEOF
21866for ac_lib in '' resolv; do
21867  if test -z "$ac_lib"; then
21868    ac_res="none required"
21869  else
21870    ac_res=-l$ac_lib
21871    LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
21872  fi
21873  if ac_fn_c_try_link "$LINENO"; then :
21874  ac_cv_search_inet_ntop=$ac_res
21875fi
21876rm -f core conftest.err conftest.$ac_objext \
21877    conftest$ac_exeext
21878  if ${ac_cv_search_inet_ntop+:} false; then :
21879  break
21880fi
21881done
21882if ${ac_cv_search_inet_ntop+:} false; then :
21883
21884else
21885  ac_cv_search_inet_ntop=no
21886fi
21887rm conftest.$ac_ext
21888LIBS=$ac_func_search_save_LIBS
21889fi
21890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
21891$as_echo "$ac_cv_search_inet_ntop" >&6; }
21892ac_res=$ac_cv_search_inet_ntop
21893if test "$ac_res" != no; then :
21894  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21895  case "$ac_cv_search_inet_ntop" in
21896 'none required') ;;
21897 no) ;;
21898 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
21899 esac
21900
21901fi
21902
21903
21904# [Bug 1628] On Solaris, we need -lxnet -lsocket.  Generalize this to
21905# avoid keying on the OS name:  If we find socket functions in
21906# libsocket, next try for them in libxnet without libsocket, if found,
21907# list both.  If we simply tested libxnet first, we would find the
21908# functions there and never add libsocket.  See also [Bug 660]
21909# http://bugs.ntp.org/show_bug.cgi?id=660#c9
21910saved_LIBS=$LIBS
21911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
21912$as_echo_n "checking for library containing setsockopt... " >&6; }
21913if ${ac_cv_search_setsockopt+:} false; then :
21914  $as_echo_n "(cached) " >&6
21915else
21916  ac_func_search_save_LIBS=$LIBS
21917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21918/* end confdefs.h.  */
21919
21920/* Override any GCC internal prototype to avoid an error.
21921   Use char because int might match the return type of a GCC
21922   builtin and then its argument prototype would still apply.  */
21923#ifdef __cplusplus
21924extern "C"
21925#endif
21926char setsockopt ();
21927int
21928main ()
21929{
21930return setsockopt ();
21931  ;
21932  return 0;
21933}
21934_ACEOF
21935for ac_lib in '' socket; do
21936  if test -z "$ac_lib"; then
21937    ac_res="none required"
21938  else
21939    ac_res=-l$ac_lib
21940    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21941  fi
21942  if ac_fn_c_try_link "$LINENO"; then :
21943  ac_cv_search_setsockopt=$ac_res
21944fi
21945rm -f core conftest.err conftest.$ac_objext \
21946    conftest$ac_exeext
21947  if ${ac_cv_search_setsockopt+:} false; then :
21948  break
21949fi
21950done
21951if ${ac_cv_search_setsockopt+:} false; then :
21952
21953else
21954  ac_cv_search_setsockopt=no
21955fi
21956rm conftest.$ac_ext
21957LIBS=$ac_func_search_save_LIBS
21958fi
21959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
21960$as_echo "$ac_cv_search_setsockopt" >&6; }
21961ac_res=$ac_cv_search_setsockopt
21962if test "$ac_res" != no; then :
21963  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21964  case "$ac_cv_search_setsockopt" in
21965 'none required') ;;
21966 no) ;;
21967 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
21968 esac
21969
21970fi
21971
21972case "$ac_cv_search_setsockopt" in
21973 -lsocket)
21974    LIBS="$saved_LIBS"
21975    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
21976$as_echo_n "checking for library containing getsockopt... " >&6; }
21977if ${ac_cv_search_getsockopt+:} false; then :
21978  $as_echo_n "(cached) " >&6
21979else
21980  ac_func_search_save_LIBS=$LIBS
21981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21982/* end confdefs.h.  */
21983
21984/* Override any GCC internal prototype to avoid an error.
21985   Use char because int might match the return type of a GCC
21986   builtin and then its argument prototype would still apply.  */
21987#ifdef __cplusplus
21988extern "C"
21989#endif
21990char getsockopt ();
21991int
21992main ()
21993{
21994return getsockopt ();
21995  ;
21996  return 0;
21997}
21998_ACEOF
21999for ac_lib in '' xnet; do
22000  if test -z "$ac_lib"; then
22001    ac_res="none required"
22002  else
22003    ac_res=-l$ac_lib
22004    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22005  fi
22006  if ac_fn_c_try_link "$LINENO"; then :
22007  ac_cv_search_getsockopt=$ac_res
22008fi
22009rm -f core conftest.err conftest.$ac_objext \
22010    conftest$ac_exeext
22011  if ${ac_cv_search_getsockopt+:} false; then :
22012  break
22013fi
22014done
22015if ${ac_cv_search_getsockopt+:} false; then :
22016
22017else
22018  ac_cv_search_getsockopt=no
22019fi
22020rm conftest.$ac_ext
22021LIBS=$ac_func_search_save_LIBS
22022fi
22023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
22024$as_echo "$ac_cv_search_getsockopt" >&6; }
22025ac_res=$ac_cv_search_getsockopt
22026if test "$ac_res" != no; then :
22027  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22028  case "$ac_cv_search_getsockopt" in
22029 'none required') ;;
22030 no) ;;
22031 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
22032 esac
22033
22034fi
22035
22036    # XXX Possible trouble here - reading the comments above and looking at the
22037    # code below I wonder if we'll add -lxnet when we don't need it.
22038    # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
22039    # there when it is not needed?
22040    case "$ac_cv_search_getsockopt" in
22041     -lxnet)
22042	LIBS="-lxnet -lsocket $saved_LIBS"
22043	;;
22044     *) LIBS="-lsocket $saved_LIBS"
22045	;;
22046    esac
22047    ;;
22048esac
22049{ saved_LIBS=; unset saved_LIBS;}
22050
22051# Bug 2427 - look for recvmsg here.
22052for ac_func in recvmsg
22053do :
22054  ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
22055if test "x$ac_cv_func_recvmsg" = xyes; then :
22056  cat >>confdefs.h <<_ACEOF
22057#define HAVE_RECVMSG 1
22058_ACEOF
22059
22060fi
22061done
22062
22063
22064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22065$as_echo_n "checking for inline... " >&6; }
22066if ${ac_cv_c_inline+:} false; then :
22067  $as_echo_n "(cached) " >&6
22068else
22069  ac_cv_c_inline=no
22070for ac_kw in inline __inline__ __inline; do
22071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22072/* end confdefs.h.  */
22073#ifndef __cplusplus
22074typedef int foo_t;
22075static $ac_kw foo_t static_foo () {return 0; }
22076$ac_kw foo_t foo () {return 0; }
22077#endif
22078
22079_ACEOF
22080if ac_fn_c_try_compile "$LINENO"; then :
22081  ac_cv_c_inline=$ac_kw
22082fi
22083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22084  test "$ac_cv_c_inline" != no && break
22085done
22086
22087fi
22088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22089$as_echo "$ac_cv_c_inline" >&6; }
22090
22091case $ac_cv_c_inline in
22092  inline | yes) ;;
22093  *)
22094    case $ac_cv_c_inline in
22095      no) ac_val=;;
22096      *) ac_val=$ac_cv_c_inline;;
22097    esac
22098    cat >>confdefs.h <<_ACEOF
22099#ifndef __cplusplus
22100#define inline $ac_val
22101#endif
22102_ACEOF
22103    ;;
22104esac
22105
22106
22107case "$ac_cv_c_inline" in
22108 '')
22109    ;;
22110 *)
22111
22112$as_echo "#define HAVE_INLINE 1" >>confdefs.h
22113
22114
22115esac
22116
22117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22118$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22119if ${ac_cv_header_time+:} false; then :
22120  $as_echo_n "(cached) " >&6
22121else
22122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22123/* end confdefs.h.  */
22124#include <sys/types.h>
22125#include <sys/time.h>
22126#include <time.h>
22127
22128int
22129main ()
22130{
22131if ((struct tm *) 0)
22132return 0;
22133  ;
22134  return 0;
22135}
22136_ACEOF
22137if ac_fn_c_try_compile "$LINENO"; then :
22138  ac_cv_header_time=yes
22139else
22140  ac_cv_header_time=no
22141fi
22142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22143fi
22144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22145$as_echo "$ac_cv_header_time" >&6; }
22146if test $ac_cv_header_time = yes; then
22147
22148$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22149
22150fi
22151
22152# The cast to long int works around a bug in the HP C Compiler
22153# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22154# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22155# This bug is HP SR number 8606223364.
22156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
22157$as_echo_n "checking size of time_t... " >&6; }
22158if ${ac_cv_sizeof_time_t+:} false; then :
22159  $as_echo_n "(cached) " >&6
22160else
22161  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
22162
22163else
22164  if test "$ac_cv_type_time_t" = yes; then
22165     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22167as_fn_error 77 "cannot compute sizeof (time_t)
22168See \`config.log' for more details" "$LINENO" 5; }
22169   else
22170     ac_cv_sizeof_time_t=0
22171   fi
22172fi
22173
22174fi
22175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
22176$as_echo "$ac_cv_sizeof_time_t" >&6; }
22177
22178
22179
22180cat >>confdefs.h <<_ACEOF
22181#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
22182_ACEOF
22183
22184
22185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22186$as_echo_n "checking whether char is unsigned... " >&6; }
22187if ${ac_cv_c_char_unsigned+:} false; then :
22188  $as_echo_n "(cached) " >&6
22189else
22190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22191/* end confdefs.h.  */
22192$ac_includes_default
22193int
22194main ()
22195{
22196static int test_array [1 - 2 * !(((char) -1) < 0)];
22197test_array [0] = 0
22198
22199  ;
22200  return 0;
22201}
22202_ACEOF
22203if ac_fn_c_try_compile "$LINENO"; then :
22204  ac_cv_c_char_unsigned=no
22205else
22206  ac_cv_c_char_unsigned=yes
22207fi
22208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22209fi
22210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22211$as_echo "$ac_cv_c_char_unsigned" >&6; }
22212if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22213  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22214
22215fi
22216		# The cast to long int works around a bug in the HP C Compiler
22217# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22218# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22219# This bug is HP SR number 8606223364.
22220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
22221$as_echo_n "checking size of signed char... " >&6; }
22222if ${ac_cv_sizeof_signed_char+:} false; then :
22223  $as_echo_n "(cached) " >&6
22224else
22225  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"; then :
22226
22227else
22228  if test "$ac_cv_type_signed_char" = yes; then
22229     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22231as_fn_error 77 "cannot compute sizeof (signed char)
22232See \`config.log' for more details" "$LINENO" 5; }
22233   else
22234     ac_cv_sizeof_signed_char=0
22235   fi
22236fi
22237
22238fi
22239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
22240$as_echo "$ac_cv_sizeof_signed_char" >&6; }
22241
22242
22243
22244cat >>confdefs.h <<_ACEOF
22245#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
22246_ACEOF
22247
22248
22249ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
22250if test "x$ac_cv_type_s_char" = xyes; then :
22251
22252cat >>confdefs.h <<_ACEOF
22253#define HAVE_S_CHAR 1
22254_ACEOF
22255
22256
22257fi
22258ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22259if test "x$ac_cv_type_long_long" = xyes; then :
22260
22261cat >>confdefs.h <<_ACEOF
22262#define HAVE_LONG_LONG 1
22263_ACEOF
22264
22265
22266fi
22267
22268# The cast to long int works around a bug in the HP C Compiler
22269# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22270# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22271# This bug is HP SR number 8606223364.
22272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
22273$as_echo_n "checking size of short... " >&6; }
22274if ${ac_cv_sizeof_short+:} false; then :
22275  $as_echo_n "(cached) " >&6
22276else
22277  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
22278
22279else
22280  if test "$ac_cv_type_short" = yes; then
22281     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22283as_fn_error 77 "cannot compute sizeof (short)
22284See \`config.log' for more details" "$LINENO" 5; }
22285   else
22286     ac_cv_sizeof_short=0
22287   fi
22288fi
22289
22290fi
22291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
22292$as_echo "$ac_cv_sizeof_short" >&6; }
22293
22294
22295
22296cat >>confdefs.h <<_ACEOF
22297#define SIZEOF_SHORT $ac_cv_sizeof_short
22298_ACEOF
22299
22300
22301# The cast to long int works around a bug in the HP C Compiler
22302# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22303# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22304# This bug is HP SR number 8606223364.
22305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
22306$as_echo_n "checking size of int... " >&6; }
22307if ${ac_cv_sizeof_int+:} false; then :
22308  $as_echo_n "(cached) " >&6
22309else
22310  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
22311
22312else
22313  if test "$ac_cv_type_int" = yes; then
22314     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22316as_fn_error 77 "cannot compute sizeof (int)
22317See \`config.log' for more details" "$LINENO" 5; }
22318   else
22319     ac_cv_sizeof_int=0
22320   fi
22321fi
22322
22323fi
22324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
22325$as_echo "$ac_cv_sizeof_int" >&6; }
22326
22327
22328
22329cat >>confdefs.h <<_ACEOF
22330#define SIZEOF_INT $ac_cv_sizeof_int
22331_ACEOF
22332
22333
22334# The cast to long int works around a bug in the HP C Compiler
22335# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22336# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22337# This bug is HP SR number 8606223364.
22338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
22339$as_echo_n "checking size of long... " >&6; }
22340if ${ac_cv_sizeof_long+:} false; then :
22341  $as_echo_n "(cached) " >&6
22342else
22343  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
22344
22345else
22346  if test "$ac_cv_type_long" = yes; then
22347     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22349as_fn_error 77 "cannot compute sizeof (long)
22350See \`config.log' for more details" "$LINENO" 5; }
22351   else
22352     ac_cv_sizeof_long=0
22353   fi
22354fi
22355
22356fi
22357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
22358$as_echo "$ac_cv_sizeof_long" >&6; }
22359
22360
22361
22362cat >>confdefs.h <<_ACEOF
22363#define SIZEOF_LONG $ac_cv_sizeof_long
22364_ACEOF
22365
22366
22367
22368case "$ac_cv_type_long_long" in
22369 no)
22370    ;;
22371 *)
22372    # The cast to long int works around a bug in the HP C Compiler
22373# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22374# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22375# This bug is HP SR number 8606223364.
22376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
22377$as_echo_n "checking size of long long... " >&6; }
22378if ${ac_cv_sizeof_long_long+:} false; then :
22379  $as_echo_n "(cached) " >&6
22380else
22381  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
22382
22383else
22384  if test "$ac_cv_type_long_long" = yes; then
22385     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22387as_fn_error 77 "cannot compute sizeof (long long)
22388See \`config.log' for more details" "$LINENO" 5; }
22389   else
22390     ac_cv_sizeof_long_long=0
22391   fi
22392fi
22393
22394fi
22395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
22396$as_echo "$ac_cv_sizeof_long_long" >&6; }
22397
22398
22399
22400cat >>confdefs.h <<_ACEOF
22401#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22402_ACEOF
22403
22404
22405    ;;
22406esac
22407
22408case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
22409 *yes)
22410    # We have a typedef for s_char.  Might as well believe it...
22411    ;;
22412 no0no)
22413    # We have signed chars, can't say 'signed char', no s_char typedef.
22414
22415$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22416
22417    ;;
22418 no1no)
22419    # We have signed chars, can say 'signed char', no s_char typedef.
22420
22421$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22422
22423    ;;
22424 yes0no)
22425    # We have unsigned chars, can't say 'signed char', no s_char typedef.
22426    as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
22427    ;;
22428 yes1no)
22429    # We have unsigned chars, can say 'signed char', no s_char typedef.
22430
22431$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22432
22433    ;;
22434esac
22435
22436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22437$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22438if ${ac_cv_type_uid_t+:} false; then :
22439  $as_echo_n "(cached) " >&6
22440else
22441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22442/* end confdefs.h.  */
22443#include <sys/types.h>
22444
22445_ACEOF
22446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22447  $EGREP "uid_t" >/dev/null 2>&1; then :
22448  ac_cv_type_uid_t=yes
22449else
22450  ac_cv_type_uid_t=no
22451fi
22452rm -f conftest*
22453
22454fi
22455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22456$as_echo "$ac_cv_type_uid_t" >&6; }
22457if test $ac_cv_type_uid_t = no; then
22458
22459$as_echo "#define uid_t int" >>confdefs.h
22460
22461
22462$as_echo "#define gid_t int" >>confdefs.h
22463
22464fi
22465
22466
22467
22468
22469
22470
22471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
22472$as_echo_n "checking if we're including debugging code... " >&6; }
22473# Check whether --enable-debugging was given.
22474if test "${enable_debugging+set}" = set; then :
22475  enableval=$enable_debugging; ntp_ok=$enableval
22476else
22477  ntp_ok=yes
22478
22479fi
22480
22481case "$ntp_ok" in
22482 yes)
22483
22484$as_echo "#define DEBUG 1" >>confdefs.h
22485
22486esac
22487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22488$as_echo "$ntp_ok" >&6; }
22489
22490
22491
22492# check if we can compile with pthreads
22493for ac_header in semaphore.h
22494do :
22495  ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
22496if test "x$ac_cv_header_semaphore_h" = xyes; then :
22497  cat >>confdefs.h <<_ACEOF
22498#define HAVE_SEMAPHORE_H 1
22499_ACEOF
22500
22501fi
22502
22503done
22504
22505for ac_func in socketpair
22506do :
22507  ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
22508if test "x$ac_cv_func_socketpair" = xyes; then :
22509  cat >>confdefs.h <<_ACEOF
22510#define HAVE_SOCKETPAIR 1
22511_ACEOF
22512
22513fi
22514done
22515
22516# Check whether --enable-thread-support was given.
22517if test "${enable_thread_support+set}" = set; then :
22518  enableval=$enable_thread_support;
22519else
22520  enable_thread_support=yes
22521
22522fi
22523
22524have_pthreads=no
22525case "$enable_thread_support" in
22526 yes)
22527    ol_found_pthreads=no
22528
22529
22530
22531ac_ext=c
22532ac_cpp='$CPP $CPPFLAGS'
22533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22535ac_compiler_gnu=$ac_cv_c_compiler_gnu
22536
22537# OpenLDAP --with-threads
22538
22539# Check whether --with-threads was given.
22540if test "${with_threads+set}" = set; then :
22541  withval=$with_threads;
22542	ol_arg=invalid
22543	for ol_val in auto nt posix mach pth lwp yes no manual  ; do
22544		if test "$withval" = "$ol_val" ; then
22545			ol_arg="$ol_val"
22546		fi
22547	done
22548	if test "$ol_arg" = "invalid" ; then
22549		as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
22550	fi
22551	ol_with_threads="$ol_arg"
22552
22553else
22554  	ol_with_threads="auto"
22555fi
22556# end --with-threads
22557
22558
22559case "$ol_with_threads$host" in
22560 auto*-*-solaris2.[0-6])
22561        ol_with_threads=no
22562    ;;
22563esac
22564
22565
22566ol_aix_threads=no
22567case "$host" in
22568*-*-aix*) 	if test -z "$CC" ; then
22569		case "$ol_with_threads" in
22570		auto | yes |  posix) ol_aix_threads=yes ;;
22571		esac
22572	fi
22573;;
22574esac
22575
22576if test $ol_aix_threads = yes ; then
22577	if test -z "${CC}" ; then
22578		for ac_prog in cc_r xlc_r cc
22579do
22580  # Extract the first word of "$ac_prog", so it can be a program name with args.
22581set dummy $ac_prog; ac_word=$2
22582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22583$as_echo_n "checking for $ac_word... " >&6; }
22584if ${ac_cv_prog_CC+:} false; then :
22585  $as_echo_n "(cached) " >&6
22586else
22587  if test -n "$CC"; then
22588  ac_cv_prog_CC="$CC" # Let the user override the test.
22589else
22590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22591for as_dir in $PATH
22592do
22593  IFS=$as_save_IFS
22594  test -z "$as_dir" && as_dir=.
22595    for ac_exec_ext in '' $ac_executable_extensions; do
22596  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22597    ac_cv_prog_CC="$ac_prog"
22598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22599    break 2
22600  fi
22601done
22602  done
22603IFS=$as_save_IFS
22604
22605fi
22606fi
22607CC=$ac_cv_prog_CC
22608if test -n "$CC"; then
22609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
22610$as_echo "$CC" >&6; }
22611else
22612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22613$as_echo "no" >&6; }
22614fi
22615
22616
22617  test -n "$CC" && break
22618done
22619
22620
22621		if test "$CC" = cc ; then
22622						if test $ol_with_threads != auto ; then
22623				as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
22624			else
22625				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
22626$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
22627			fi
22628			ol_with_threads=no
22629  		fi
22630	fi
22631
22632	case ${CC} in cc_r | xlc_r)
22633		ol_with_threads=posix
22634		ol_cv_pthread_create=yes
22635		;;
22636	esac
22637fi
22638
22639ol_link_threads=no
22640# OpenLDAP --with-yielding_select
22641
22642# Check whether --with-yielding_select was given.
22643if test "${with_yielding_select+set}" = set; then :
22644  withval=$with_yielding_select;
22645	ol_arg=invalid
22646	for ol_val in auto yes no manual  ; do
22647		if test "$withval" = "$ol_val" ; then
22648			ol_arg="$ol_val"
22649		fi
22650	done
22651	if test "$ol_arg" = "invalid" ; then
22652		as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
22653	fi
22654	ol_with_yielding_select="$ol_arg"
22655
22656else
22657  	ol_with_yielding_select="auto"
22658fi
22659# end --with-yielding_select
22660
22661
22662case $ol_with_threads in auto | yes | nt)
22663
22664
22665	ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
22666if test "x$ac_cv_func__beginthread" = xyes; then :
22667
22668fi
22669
22670
22671	if test $ac_cv_func__beginthread = yes ; then
22672
22673$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
22674
22675		ol_cv_nt_threads=yes
22676	fi
22677
22678
22679	if test "$ol_cv_nt_threads" = yes ; then
22680		ol_link_threads=nt
22681		ol_with_threads=found
22682		ol_with_yielding_select=yes
22683
22684
22685$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
22686
22687
22688$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
22689
22690	fi
22691
22692	if test $ol_with_threads = nt ; then
22693		as_fn_error $? "could not locate NT Threads" "$LINENO" 5
22694	fi
22695	;;
22696esac
22697
22698case $ol_with_threads in auto | yes | posix)
22699
22700	for ac_header in pthread.h
22701do :
22702  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
22703if test "x$ac_cv_header_pthread_h" = xyes; then :
22704  cat >>confdefs.h <<_ACEOF
22705#define HAVE_PTHREAD_H 1
22706_ACEOF
22707
22708fi
22709
22710done
22711
22712
22713	if test $ac_cv_header_pthread_h = yes ; then
22714		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
22715$as_echo_n "checking POSIX thread version... " >&6; }
22716if ${ol_cv_pthread_version+:} false; then :
22717  $as_echo_n "(cached) " >&6
22718else
22719
22720	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22721/* end confdefs.h.  */
22722
22723#		include <pthread.h>
22724
22725int
22726main ()
22727{
22728
22729		int i = PTHREAD_CREATE_JOINABLE;
22730
22731  ;
22732  return 0;
22733}
22734_ACEOF
22735if ac_fn_c_try_compile "$LINENO"; then :
22736
22737	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22738/* end confdefs.h.  */
22739#include <pthread.h>
22740
22741_ACEOF
22742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22743  $EGREP "pthread_detach" >/dev/null 2>&1; then :
22744  ol_cv_pthread_version=10
22745else
22746  ol_cv_pthread_version=8
22747fi
22748rm -f conftest*
22749
22750else
22751
22752	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22753/* end confdefs.h.  */
22754
22755#		include <pthread.h>
22756#		ifdef PTHREAD_CREATE_UNDETACHED
22757		draft7
22758#		endif
22759
22760_ACEOF
22761if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22762  $EGREP "draft7" >/dev/null 2>&1; then :
22763  ol_cv_pthread_version=7
22764else
22765
22766	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22767/* end confdefs.h.  */
22768#include <pthread.h>
22769
22770_ACEOF
22771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22772  $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
22773  ol_cv_pthread_version=6
22774else
22775
22776	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22777/* end confdefs.h.  */
22778
22779#		include <pthread.h>
22780#ifdef		PTHREAD_MUTEX_INITIALIZER
22781		draft5
22782#endif
22783
22784_ACEOF
22785if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22786  $EGREP "draft5" >/dev/null 2>&1; then :
22787  ol_cv_pthread_version=5
22788else
22789  ol_cv_pthread_version=4
22790fi
22791rm -f conftest*
22792
22793fi
22794rm -f conftest*
22795
22796fi
22797rm -f conftest*
22798
22799fi
22800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22801
22802fi
22803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
22804$as_echo "$ol_cv_pthread_version" >&6; }
22805
22806
22807		if test $ol_cv_pthread_version != 0 ; then
22808
22809cat >>confdefs.h <<_ACEOF
22810#define HAVE_PTHREADS $ol_cv_pthread_version
22811_ACEOF
22812
22813		else
22814			as_fn_error $? "unknown pthread version" "$LINENO" 5
22815		fi
22816
22817		# consider threads found
22818		ol_with_threads=found
22819
22820
22821	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
22822$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
22823if ${ol_cv_header_linux_threads+:} false; then :
22824  $as_echo_n "(cached) " >&6
22825else
22826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22827/* end confdefs.h.  */
22828#include <pthread.h>
22829_ACEOF
22830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22831  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
22832  ol_cv_header_linux_threads=yes
22833else
22834  ol_cv_header_linux_threads=no
22835fi
22836rm -f conftest*
22837
22838
22839fi
22840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
22841$as_echo "$ol_cv_header_linux_threads" >&6; }
22842	if test $ol_cv_header_linux_threads = yes; then
22843
22844$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
22845
22846	fi
22847
22848
22849	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
22850$as_echo_n "checking for GNU Pth pthread.h... " >&6; }
22851if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
22852  $as_echo_n "(cached) " >&6
22853else
22854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22855/* end confdefs.h.  */
22856#include <pthread.h>
22857#ifdef _POSIX_THREAD_IS_GNU_PTH
22858	__gnu_pth__;
22859#endif
22860
22861_ACEOF
22862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22863  $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
22864  ol_cv_header_gnu_pth_pthread_h=yes
22865else
22866  ol_cv_header_gnu_pth_pthread_h=no
22867fi
22868rm -f conftest*
22869
22870
22871fi
22872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
22873$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
22874
22875
22876		if test $ol_cv_header_gnu_pth_pthread_h = no ; then
22877			for ac_header in sched.h
22878do :
22879  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
22880if test "x$ac_cv_header_sched_h" = xyes; then :
22881  cat >>confdefs.h <<_ACEOF
22882#define HAVE_SCHED_H 1
22883_ACEOF
22884
22885fi
22886
22887done
22888
22889		fi
22890
22891
22892				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
22893$as_echo_n "checking for pthread_create in default libraries... " >&6; }
22894if ${ol_cv_pthread_create+:} false; then :
22895  $as_echo_n "(cached) " >&6
22896else
22897
22898			if test "$cross_compiling" = yes; then :
22899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22900/* end confdefs.h.  */
22901
22902/* pthread test headers */
22903#include <pthread.h>
22904#if HAVE_PTHREADS < 7
22905#include <errno.h>
22906#endif
22907#ifndef NULL
22908#define NULL (void*)0
22909#endif
22910
22911static void *task(p)
22912	void *p;
22913{
22914	return (void *) (p == NULL);
22915}
22916
22917int
22918main ()
22919{
22920
22921	/* pthread test function */
22922#ifndef PTHREAD_CREATE_DETACHED
22923#define	PTHREAD_CREATE_DETACHED	1
22924#endif
22925	pthread_t t;
22926	int status;
22927	int detach = PTHREAD_CREATE_DETACHED;
22928
22929#if HAVE_PTHREADS > 4
22930	/* Final pthreads */
22931	pthread_attr_t attr;
22932
22933	status = pthread_attr_init(&attr);
22934	if( status ) return status;
22935
22936#if HAVE_PTHREADS < 7
22937	status = pthread_attr_setdetachstate(&attr, &detach);
22938	if( status < 0 ) status = errno;
22939#else
22940	status = pthread_attr_setdetachstate(&attr, detach);
22941#endif
22942	if( status ) return status;
22943	status = pthread_create( &t, &attr, task, NULL );
22944#if HAVE_PTHREADS < 7
22945	if( status < 0 ) status = errno;
22946#endif
22947	if( status ) return status;
22948#else
22949	/* Draft 4 pthreads */
22950	status = pthread_create( &t, pthread_attr_default, task, NULL );
22951	if( status ) return errno;
22952
22953	/* give thread a chance to complete */
22954	/* it should remain joinable and hence detachable */
22955	sleep( 1 );
22956
22957	status = pthread_detach( &t );
22958	if( status ) return errno;
22959#endif
22960
22961#ifdef HAVE_LINUX_THREADS
22962	pthread_kill_other_threads_np();
22963#endif
22964
22965	return 0;
22966
22967  ;
22968  return 0;
22969}
22970_ACEOF
22971if ac_fn_c_try_link "$LINENO"; then :
22972  ol_cv_pthread_create=yes
22973else
22974  ol_cv_pthread_create=no
22975fi
22976rm -f core conftest.err conftest.$ac_objext \
22977    conftest$ac_exeext conftest.$ac_ext
22978else
22979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22980/* end confdefs.h.  */
22981
22982
22983/* pthread test headers */
22984#include <pthread.h>
22985#if HAVE_PTHREADS < 7
22986#include <errno.h>
22987#endif
22988#ifndef NULL
22989#define NULL (void*)0
22990#endif
22991
22992static void *task(p)
22993	void *p;
22994{
22995	return (void *) (p == NULL);
22996}
22997
22998
22999int main(argc, argv)
23000	int argc;
23001	char **argv;
23002{
23003
23004	/* pthread test function */
23005#ifndef PTHREAD_CREATE_DETACHED
23006#define	PTHREAD_CREATE_DETACHED	1
23007#endif
23008	pthread_t t;
23009	int status;
23010	int detach = PTHREAD_CREATE_DETACHED;
23011
23012#if HAVE_PTHREADS > 4
23013	/* Final pthreads */
23014	pthread_attr_t attr;
23015
23016	status = pthread_attr_init(&attr);
23017	if( status ) return status;
23018
23019#if HAVE_PTHREADS < 7
23020	status = pthread_attr_setdetachstate(&attr, &detach);
23021	if( status < 0 ) status = errno;
23022#else
23023	status = pthread_attr_setdetachstate(&attr, detach);
23024#endif
23025	if( status ) return status;
23026	status = pthread_create( &t, &attr, task, NULL );
23027#if HAVE_PTHREADS < 7
23028	if( status < 0 ) status = errno;
23029#endif
23030	if( status ) return status;
23031#else
23032	/* Draft 4 pthreads */
23033	status = pthread_create( &t, pthread_attr_default, task, NULL );
23034	if( status ) return errno;
23035
23036	/* give thread a chance to complete */
23037	/* it should remain joinable and hence detachable */
23038	sleep( 1 );
23039
23040	status = pthread_detach( &t );
23041	if( status ) return errno;
23042#endif
23043
23044#ifdef HAVE_LINUX_THREADS
23045	pthread_kill_other_threads_np();
23046#endif
23047
23048	return 0;
23049
23050}
23051
23052_ACEOF
23053if ac_fn_c_try_run "$LINENO"; then :
23054  ol_cv_pthread_create=yes
23055else
23056  ol_cv_pthread_create=no
23057fi
23058rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23059  conftest.$ac_objext conftest.beam conftest.$ac_ext
23060fi
23061
23062fi
23063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
23064$as_echo "$ol_cv_pthread_create" >&6; }
23065
23066		if test $ol_cv_pthread_create != no ; then
23067			ol_link_threads=posix
23068			ol_link_pthreads=""
23069		fi
23070
23071		# Pthread try link: -kthread (ol_cv_pthread_kthread)
23072if test "$ol_link_threads" = no ; then
23073	# try -kthread
23074	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
23075$as_echo_n "checking for pthread link with -kthread... " >&6; }
23076if ${ol_cv_pthread_kthread+:} false; then :
23077  $as_echo_n "(cached) " >&6
23078else
23079
23080		# save the flags
23081		ol_LIBS="$LIBS"
23082		LIBS="-kthread $LIBS"
23083
23084		if test "$cross_compiling" = yes; then :
23085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23086/* end confdefs.h.  */
23087
23088/* pthread test headers */
23089#include <pthread.h>
23090#if HAVE_PTHREADS < 7
23091#include <errno.h>
23092#endif
23093#ifndef NULL
23094#define NULL (void*)0
23095#endif
23096
23097static void *task(p)
23098	void *p;
23099{
23100	return (void *) (p == NULL);
23101}
23102
23103int
23104main ()
23105{
23106
23107	/* pthread test function */
23108#ifndef PTHREAD_CREATE_DETACHED
23109#define	PTHREAD_CREATE_DETACHED	1
23110#endif
23111	pthread_t t;
23112	int status;
23113	int detach = PTHREAD_CREATE_DETACHED;
23114
23115#if HAVE_PTHREADS > 4
23116	/* Final pthreads */
23117	pthread_attr_t attr;
23118
23119	status = pthread_attr_init(&attr);
23120	if( status ) return status;
23121
23122#if HAVE_PTHREADS < 7
23123	status = pthread_attr_setdetachstate(&attr, &detach);
23124	if( status < 0 ) status = errno;
23125#else
23126	status = pthread_attr_setdetachstate(&attr, detach);
23127#endif
23128	if( status ) return status;
23129	status = pthread_create( &t, &attr, task, NULL );
23130#if HAVE_PTHREADS < 7
23131	if( status < 0 ) status = errno;
23132#endif
23133	if( status ) return status;
23134#else
23135	/* Draft 4 pthreads */
23136	status = pthread_create( &t, pthread_attr_default, task, NULL );
23137	if( status ) return errno;
23138
23139	/* give thread a chance to complete */
23140	/* it should remain joinable and hence detachable */
23141	sleep( 1 );
23142
23143	status = pthread_detach( &t );
23144	if( status ) return errno;
23145#endif
23146
23147#ifdef HAVE_LINUX_THREADS
23148	pthread_kill_other_threads_np();
23149#endif
23150
23151	return 0;
23152
23153  ;
23154  return 0;
23155}
23156_ACEOF
23157if ac_fn_c_try_link "$LINENO"; then :
23158  ol_cv_pthread_kthread=yes
23159else
23160  ol_cv_pthread_kthread=no
23161fi
23162rm -f core conftest.err conftest.$ac_objext \
23163    conftest$ac_exeext conftest.$ac_ext
23164else
23165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23166/* end confdefs.h.  */
23167
23168
23169/* pthread test headers */
23170#include <pthread.h>
23171#if HAVE_PTHREADS < 7
23172#include <errno.h>
23173#endif
23174#ifndef NULL
23175#define NULL (void*)0
23176#endif
23177
23178static void *task(p)
23179	void *p;
23180{
23181	return (void *) (p == NULL);
23182}
23183
23184
23185int main(argc, argv)
23186	int argc;
23187	char **argv;
23188{
23189
23190	/* pthread test function */
23191#ifndef PTHREAD_CREATE_DETACHED
23192#define	PTHREAD_CREATE_DETACHED	1
23193#endif
23194	pthread_t t;
23195	int status;
23196	int detach = PTHREAD_CREATE_DETACHED;
23197
23198#if HAVE_PTHREADS > 4
23199	/* Final pthreads */
23200	pthread_attr_t attr;
23201
23202	status = pthread_attr_init(&attr);
23203	if( status ) return status;
23204
23205#if HAVE_PTHREADS < 7
23206	status = pthread_attr_setdetachstate(&attr, &detach);
23207	if( status < 0 ) status = errno;
23208#else
23209	status = pthread_attr_setdetachstate(&attr, detach);
23210#endif
23211	if( status ) return status;
23212	status = pthread_create( &t, &attr, task, NULL );
23213#if HAVE_PTHREADS < 7
23214	if( status < 0 ) status = errno;
23215#endif
23216	if( status ) return status;
23217#else
23218	/* Draft 4 pthreads */
23219	status = pthread_create( &t, pthread_attr_default, task, NULL );
23220	if( status ) return errno;
23221
23222	/* give thread a chance to complete */
23223	/* it should remain joinable and hence detachable */
23224	sleep( 1 );
23225
23226	status = pthread_detach( &t );
23227	if( status ) return errno;
23228#endif
23229
23230#ifdef HAVE_LINUX_THREADS
23231	pthread_kill_other_threads_np();
23232#endif
23233
23234	return 0;
23235
23236}
23237
23238_ACEOF
23239if ac_fn_c_try_run "$LINENO"; then :
23240  ol_cv_pthread_kthread=yes
23241else
23242  ol_cv_pthread_kthread=no
23243fi
23244rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23245  conftest.$ac_objext conftest.beam conftest.$ac_ext
23246fi
23247
23248
23249		# restore the LIBS
23250		LIBS="$ol_LIBS"
23251
23252fi
23253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
23254$as_echo "$ol_cv_pthread_kthread" >&6; }
23255
23256	if test $ol_cv_pthread_kthread = yes ; then
23257		ol_link_pthreads="-kthread"
23258		ol_link_threads=posix
23259	fi
23260fi
23261
23262		# Pthread try link: -pthread (ol_cv_pthread_pthread)
23263if test "$ol_link_threads" = no ; then
23264	# try -pthread
23265	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
23266$as_echo_n "checking for pthread link with -pthread... " >&6; }
23267if ${ol_cv_pthread_pthread+:} false; then :
23268  $as_echo_n "(cached) " >&6
23269else
23270
23271		# save the flags
23272		ol_LIBS="$LIBS"
23273		LIBS="-pthread $LIBS"
23274
23275		if test "$cross_compiling" = yes; then :
23276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23277/* end confdefs.h.  */
23278
23279/* pthread test headers */
23280#include <pthread.h>
23281#if HAVE_PTHREADS < 7
23282#include <errno.h>
23283#endif
23284#ifndef NULL
23285#define NULL (void*)0
23286#endif
23287
23288static void *task(p)
23289	void *p;
23290{
23291	return (void *) (p == NULL);
23292}
23293
23294int
23295main ()
23296{
23297
23298	/* pthread test function */
23299#ifndef PTHREAD_CREATE_DETACHED
23300#define	PTHREAD_CREATE_DETACHED	1
23301#endif
23302	pthread_t t;
23303	int status;
23304	int detach = PTHREAD_CREATE_DETACHED;
23305
23306#if HAVE_PTHREADS > 4
23307	/* Final pthreads */
23308	pthread_attr_t attr;
23309
23310	status = pthread_attr_init(&attr);
23311	if( status ) return status;
23312
23313#if HAVE_PTHREADS < 7
23314	status = pthread_attr_setdetachstate(&attr, &detach);
23315	if( status < 0 ) status = errno;
23316#else
23317	status = pthread_attr_setdetachstate(&attr, detach);
23318#endif
23319	if( status ) return status;
23320	status = pthread_create( &t, &attr, task, NULL );
23321#if HAVE_PTHREADS < 7
23322	if( status < 0 ) status = errno;
23323#endif
23324	if( status ) return status;
23325#else
23326	/* Draft 4 pthreads */
23327	status = pthread_create( &t, pthread_attr_default, task, NULL );
23328	if( status ) return errno;
23329
23330	/* give thread a chance to complete */
23331	/* it should remain joinable and hence detachable */
23332	sleep( 1 );
23333
23334	status = pthread_detach( &t );
23335	if( status ) return errno;
23336#endif
23337
23338#ifdef HAVE_LINUX_THREADS
23339	pthread_kill_other_threads_np();
23340#endif
23341
23342	return 0;
23343
23344  ;
23345  return 0;
23346}
23347_ACEOF
23348if ac_fn_c_try_link "$LINENO"; then :
23349  ol_cv_pthread_pthread=yes
23350else
23351  ol_cv_pthread_pthread=no
23352fi
23353rm -f core conftest.err conftest.$ac_objext \
23354    conftest$ac_exeext conftest.$ac_ext
23355else
23356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23357/* end confdefs.h.  */
23358
23359
23360/* pthread test headers */
23361#include <pthread.h>
23362#if HAVE_PTHREADS < 7
23363#include <errno.h>
23364#endif
23365#ifndef NULL
23366#define NULL (void*)0
23367#endif
23368
23369static void *task(p)
23370	void *p;
23371{
23372	return (void *) (p == NULL);
23373}
23374
23375
23376int main(argc, argv)
23377	int argc;
23378	char **argv;
23379{
23380
23381	/* pthread test function */
23382#ifndef PTHREAD_CREATE_DETACHED
23383#define	PTHREAD_CREATE_DETACHED	1
23384#endif
23385	pthread_t t;
23386	int status;
23387	int detach = PTHREAD_CREATE_DETACHED;
23388
23389#if HAVE_PTHREADS > 4
23390	/* Final pthreads */
23391	pthread_attr_t attr;
23392
23393	status = pthread_attr_init(&attr);
23394	if( status ) return status;
23395
23396#if HAVE_PTHREADS < 7
23397	status = pthread_attr_setdetachstate(&attr, &detach);
23398	if( status < 0 ) status = errno;
23399#else
23400	status = pthread_attr_setdetachstate(&attr, detach);
23401#endif
23402	if( status ) return status;
23403	status = pthread_create( &t, &attr, task, NULL );
23404#if HAVE_PTHREADS < 7
23405	if( status < 0 ) status = errno;
23406#endif
23407	if( status ) return status;
23408#else
23409	/* Draft 4 pthreads */
23410	status = pthread_create( &t, pthread_attr_default, task, NULL );
23411	if( status ) return errno;
23412
23413	/* give thread a chance to complete */
23414	/* it should remain joinable and hence detachable */
23415	sleep( 1 );
23416
23417	status = pthread_detach( &t );
23418	if( status ) return errno;
23419#endif
23420
23421#ifdef HAVE_LINUX_THREADS
23422	pthread_kill_other_threads_np();
23423#endif
23424
23425	return 0;
23426
23427}
23428
23429_ACEOF
23430if ac_fn_c_try_run "$LINENO"; then :
23431  ol_cv_pthread_pthread=yes
23432else
23433  ol_cv_pthread_pthread=no
23434fi
23435rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23436  conftest.$ac_objext conftest.beam conftest.$ac_ext
23437fi
23438
23439
23440		# restore the LIBS
23441		LIBS="$ol_LIBS"
23442
23443fi
23444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
23445$as_echo "$ol_cv_pthread_pthread" >&6; }
23446
23447	if test $ol_cv_pthread_pthread = yes ; then
23448		ol_link_pthreads="-pthread"
23449		ol_link_threads=posix
23450	fi
23451fi
23452
23453		# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
23454if test "$ol_link_threads" = no ; then
23455	# try -pthreads
23456	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
23457$as_echo_n "checking for pthread link with -pthreads... " >&6; }
23458if ${ol_cv_pthread_pthreads+:} false; then :
23459  $as_echo_n "(cached) " >&6
23460else
23461
23462		# save the flags
23463		ol_LIBS="$LIBS"
23464		LIBS="-pthreads $LIBS"
23465
23466		if test "$cross_compiling" = yes; then :
23467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23468/* end confdefs.h.  */
23469
23470/* pthread test headers */
23471#include <pthread.h>
23472#if HAVE_PTHREADS < 7
23473#include <errno.h>
23474#endif
23475#ifndef NULL
23476#define NULL (void*)0
23477#endif
23478
23479static void *task(p)
23480	void *p;
23481{
23482	return (void *) (p == NULL);
23483}
23484
23485int
23486main ()
23487{
23488
23489	/* pthread test function */
23490#ifndef PTHREAD_CREATE_DETACHED
23491#define	PTHREAD_CREATE_DETACHED	1
23492#endif
23493	pthread_t t;
23494	int status;
23495	int detach = PTHREAD_CREATE_DETACHED;
23496
23497#if HAVE_PTHREADS > 4
23498	/* Final pthreads */
23499	pthread_attr_t attr;
23500
23501	status = pthread_attr_init(&attr);
23502	if( status ) return status;
23503
23504#if HAVE_PTHREADS < 7
23505	status = pthread_attr_setdetachstate(&attr, &detach);
23506	if( status < 0 ) status = errno;
23507#else
23508	status = pthread_attr_setdetachstate(&attr, detach);
23509#endif
23510	if( status ) return status;
23511	status = pthread_create( &t, &attr, task, NULL );
23512#if HAVE_PTHREADS < 7
23513	if( status < 0 ) status = errno;
23514#endif
23515	if( status ) return status;
23516#else
23517	/* Draft 4 pthreads */
23518	status = pthread_create( &t, pthread_attr_default, task, NULL );
23519	if( status ) return errno;
23520
23521	/* give thread a chance to complete */
23522	/* it should remain joinable and hence detachable */
23523	sleep( 1 );
23524
23525	status = pthread_detach( &t );
23526	if( status ) return errno;
23527#endif
23528
23529#ifdef HAVE_LINUX_THREADS
23530	pthread_kill_other_threads_np();
23531#endif
23532
23533	return 0;
23534
23535  ;
23536  return 0;
23537}
23538_ACEOF
23539if ac_fn_c_try_link "$LINENO"; then :
23540  ol_cv_pthread_pthreads=yes
23541else
23542  ol_cv_pthread_pthreads=no
23543fi
23544rm -f core conftest.err conftest.$ac_objext \
23545    conftest$ac_exeext conftest.$ac_ext
23546else
23547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23548/* end confdefs.h.  */
23549
23550
23551/* pthread test headers */
23552#include <pthread.h>
23553#if HAVE_PTHREADS < 7
23554#include <errno.h>
23555#endif
23556#ifndef NULL
23557#define NULL (void*)0
23558#endif
23559
23560static void *task(p)
23561	void *p;
23562{
23563	return (void *) (p == NULL);
23564}
23565
23566
23567int main(argc, argv)
23568	int argc;
23569	char **argv;
23570{
23571
23572	/* pthread test function */
23573#ifndef PTHREAD_CREATE_DETACHED
23574#define	PTHREAD_CREATE_DETACHED	1
23575#endif
23576	pthread_t t;
23577	int status;
23578	int detach = PTHREAD_CREATE_DETACHED;
23579
23580#if HAVE_PTHREADS > 4
23581	/* Final pthreads */
23582	pthread_attr_t attr;
23583
23584	status = pthread_attr_init(&attr);
23585	if( status ) return status;
23586
23587#if HAVE_PTHREADS < 7
23588	status = pthread_attr_setdetachstate(&attr, &detach);
23589	if( status < 0 ) status = errno;
23590#else
23591	status = pthread_attr_setdetachstate(&attr, detach);
23592#endif
23593	if( status ) return status;
23594	status = pthread_create( &t, &attr, task, NULL );
23595#if HAVE_PTHREADS < 7
23596	if( status < 0 ) status = errno;
23597#endif
23598	if( status ) return status;
23599#else
23600	/* Draft 4 pthreads */
23601	status = pthread_create( &t, pthread_attr_default, task, NULL );
23602	if( status ) return errno;
23603
23604	/* give thread a chance to complete */
23605	/* it should remain joinable and hence detachable */
23606	sleep( 1 );
23607
23608	status = pthread_detach( &t );
23609	if( status ) return errno;
23610#endif
23611
23612#ifdef HAVE_LINUX_THREADS
23613	pthread_kill_other_threads_np();
23614#endif
23615
23616	return 0;
23617
23618}
23619
23620_ACEOF
23621if ac_fn_c_try_run "$LINENO"; then :
23622  ol_cv_pthread_pthreads=yes
23623else
23624  ol_cv_pthread_pthreads=no
23625fi
23626rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23627  conftest.$ac_objext conftest.beam conftest.$ac_ext
23628fi
23629
23630
23631		# restore the LIBS
23632		LIBS="$ol_LIBS"
23633
23634fi
23635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
23636$as_echo "$ol_cv_pthread_pthreads" >&6; }
23637
23638	if test $ol_cv_pthread_pthreads = yes ; then
23639		ol_link_pthreads="-pthreads"
23640		ol_link_threads=posix
23641	fi
23642fi
23643
23644		# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
23645if test "$ol_link_threads" = no ; then
23646	# try -mthreads
23647	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
23648$as_echo_n "checking for pthread link with -mthreads... " >&6; }
23649if ${ol_cv_pthread_mthreads+:} false; then :
23650  $as_echo_n "(cached) " >&6
23651else
23652
23653		# save the flags
23654		ol_LIBS="$LIBS"
23655		LIBS="-mthreads $LIBS"
23656
23657		if test "$cross_compiling" = yes; then :
23658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23659/* end confdefs.h.  */
23660
23661/* pthread test headers */
23662#include <pthread.h>
23663#if HAVE_PTHREADS < 7
23664#include <errno.h>
23665#endif
23666#ifndef NULL
23667#define NULL (void*)0
23668#endif
23669
23670static void *task(p)
23671	void *p;
23672{
23673	return (void *) (p == NULL);
23674}
23675
23676int
23677main ()
23678{
23679
23680	/* pthread test function */
23681#ifndef PTHREAD_CREATE_DETACHED
23682#define	PTHREAD_CREATE_DETACHED	1
23683#endif
23684	pthread_t t;
23685	int status;
23686	int detach = PTHREAD_CREATE_DETACHED;
23687
23688#if HAVE_PTHREADS > 4
23689	/* Final pthreads */
23690	pthread_attr_t attr;
23691
23692	status = pthread_attr_init(&attr);
23693	if( status ) return status;
23694
23695#if HAVE_PTHREADS < 7
23696	status = pthread_attr_setdetachstate(&attr, &detach);
23697	if( status < 0 ) status = errno;
23698#else
23699	status = pthread_attr_setdetachstate(&attr, detach);
23700#endif
23701	if( status ) return status;
23702	status = pthread_create( &t, &attr, task, NULL );
23703#if HAVE_PTHREADS < 7
23704	if( status < 0 ) status = errno;
23705#endif
23706	if( status ) return status;
23707#else
23708	/* Draft 4 pthreads */
23709	status = pthread_create( &t, pthread_attr_default, task, NULL );
23710	if( status ) return errno;
23711
23712	/* give thread a chance to complete */
23713	/* it should remain joinable and hence detachable */
23714	sleep( 1 );
23715
23716	status = pthread_detach( &t );
23717	if( status ) return errno;
23718#endif
23719
23720#ifdef HAVE_LINUX_THREADS
23721	pthread_kill_other_threads_np();
23722#endif
23723
23724	return 0;
23725
23726  ;
23727  return 0;
23728}
23729_ACEOF
23730if ac_fn_c_try_link "$LINENO"; then :
23731  ol_cv_pthread_mthreads=yes
23732else
23733  ol_cv_pthread_mthreads=no
23734fi
23735rm -f core conftest.err conftest.$ac_objext \
23736    conftest$ac_exeext conftest.$ac_ext
23737else
23738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23739/* end confdefs.h.  */
23740
23741
23742/* pthread test headers */
23743#include <pthread.h>
23744#if HAVE_PTHREADS < 7
23745#include <errno.h>
23746#endif
23747#ifndef NULL
23748#define NULL (void*)0
23749#endif
23750
23751static void *task(p)
23752	void *p;
23753{
23754	return (void *) (p == NULL);
23755}
23756
23757
23758int main(argc, argv)
23759	int argc;
23760	char **argv;
23761{
23762
23763	/* pthread test function */
23764#ifndef PTHREAD_CREATE_DETACHED
23765#define	PTHREAD_CREATE_DETACHED	1
23766#endif
23767	pthread_t t;
23768	int status;
23769	int detach = PTHREAD_CREATE_DETACHED;
23770
23771#if HAVE_PTHREADS > 4
23772	/* Final pthreads */
23773	pthread_attr_t attr;
23774
23775	status = pthread_attr_init(&attr);
23776	if( status ) return status;
23777
23778#if HAVE_PTHREADS < 7
23779	status = pthread_attr_setdetachstate(&attr, &detach);
23780	if( status < 0 ) status = errno;
23781#else
23782	status = pthread_attr_setdetachstate(&attr, detach);
23783#endif
23784	if( status ) return status;
23785	status = pthread_create( &t, &attr, task, NULL );
23786#if HAVE_PTHREADS < 7
23787	if( status < 0 ) status = errno;
23788#endif
23789	if( status ) return status;
23790#else
23791	/* Draft 4 pthreads */
23792	status = pthread_create( &t, pthread_attr_default, task, NULL );
23793	if( status ) return errno;
23794
23795	/* give thread a chance to complete */
23796	/* it should remain joinable and hence detachable */
23797	sleep( 1 );
23798
23799	status = pthread_detach( &t );
23800	if( status ) return errno;
23801#endif
23802
23803#ifdef HAVE_LINUX_THREADS
23804	pthread_kill_other_threads_np();
23805#endif
23806
23807	return 0;
23808
23809}
23810
23811_ACEOF
23812if ac_fn_c_try_run "$LINENO"; then :
23813  ol_cv_pthread_mthreads=yes
23814else
23815  ol_cv_pthread_mthreads=no
23816fi
23817rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23818  conftest.$ac_objext conftest.beam conftest.$ac_ext
23819fi
23820
23821
23822		# restore the LIBS
23823		LIBS="$ol_LIBS"
23824
23825fi
23826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
23827$as_echo "$ol_cv_pthread_mthreads" >&6; }
23828
23829	if test $ol_cv_pthread_mthreads = yes ; then
23830		ol_link_pthreads="-mthreads"
23831		ol_link_threads=posix
23832	fi
23833fi
23834
23835		# Pthread try link: -thread (ol_cv_pthread_thread)
23836if test "$ol_link_threads" = no ; then
23837	# try -thread
23838	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
23839$as_echo_n "checking for pthread link with -thread... " >&6; }
23840if ${ol_cv_pthread_thread+:} false; then :
23841  $as_echo_n "(cached) " >&6
23842else
23843
23844		# save the flags
23845		ol_LIBS="$LIBS"
23846		LIBS="-thread $LIBS"
23847
23848		if test "$cross_compiling" = yes; then :
23849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23850/* end confdefs.h.  */
23851
23852/* pthread test headers */
23853#include <pthread.h>
23854#if HAVE_PTHREADS < 7
23855#include <errno.h>
23856#endif
23857#ifndef NULL
23858#define NULL (void*)0
23859#endif
23860
23861static void *task(p)
23862	void *p;
23863{
23864	return (void *) (p == NULL);
23865}
23866
23867int
23868main ()
23869{
23870
23871	/* pthread test function */
23872#ifndef PTHREAD_CREATE_DETACHED
23873#define	PTHREAD_CREATE_DETACHED	1
23874#endif
23875	pthread_t t;
23876	int status;
23877	int detach = PTHREAD_CREATE_DETACHED;
23878
23879#if HAVE_PTHREADS > 4
23880	/* Final pthreads */
23881	pthread_attr_t attr;
23882
23883	status = pthread_attr_init(&attr);
23884	if( status ) return status;
23885
23886#if HAVE_PTHREADS < 7
23887	status = pthread_attr_setdetachstate(&attr, &detach);
23888	if( status < 0 ) status = errno;
23889#else
23890	status = pthread_attr_setdetachstate(&attr, detach);
23891#endif
23892	if( status ) return status;
23893	status = pthread_create( &t, &attr, task, NULL );
23894#if HAVE_PTHREADS < 7
23895	if( status < 0 ) status = errno;
23896#endif
23897	if( status ) return status;
23898#else
23899	/* Draft 4 pthreads */
23900	status = pthread_create( &t, pthread_attr_default, task, NULL );
23901	if( status ) return errno;
23902
23903	/* give thread a chance to complete */
23904	/* it should remain joinable and hence detachable */
23905	sleep( 1 );
23906
23907	status = pthread_detach( &t );
23908	if( status ) return errno;
23909#endif
23910
23911#ifdef HAVE_LINUX_THREADS
23912	pthread_kill_other_threads_np();
23913#endif
23914
23915	return 0;
23916
23917  ;
23918  return 0;
23919}
23920_ACEOF
23921if ac_fn_c_try_link "$LINENO"; then :
23922  ol_cv_pthread_thread=yes
23923else
23924  ol_cv_pthread_thread=no
23925fi
23926rm -f core conftest.err conftest.$ac_objext \
23927    conftest$ac_exeext conftest.$ac_ext
23928else
23929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23930/* end confdefs.h.  */
23931
23932
23933/* pthread test headers */
23934#include <pthread.h>
23935#if HAVE_PTHREADS < 7
23936#include <errno.h>
23937#endif
23938#ifndef NULL
23939#define NULL (void*)0
23940#endif
23941
23942static void *task(p)
23943	void *p;
23944{
23945	return (void *) (p == NULL);
23946}
23947
23948
23949int main(argc, argv)
23950	int argc;
23951	char **argv;
23952{
23953
23954	/* pthread test function */
23955#ifndef PTHREAD_CREATE_DETACHED
23956#define	PTHREAD_CREATE_DETACHED	1
23957#endif
23958	pthread_t t;
23959	int status;
23960	int detach = PTHREAD_CREATE_DETACHED;
23961
23962#if HAVE_PTHREADS > 4
23963	/* Final pthreads */
23964	pthread_attr_t attr;
23965
23966	status = pthread_attr_init(&attr);
23967	if( status ) return status;
23968
23969#if HAVE_PTHREADS < 7
23970	status = pthread_attr_setdetachstate(&attr, &detach);
23971	if( status < 0 ) status = errno;
23972#else
23973	status = pthread_attr_setdetachstate(&attr, detach);
23974#endif
23975	if( status ) return status;
23976	status = pthread_create( &t, &attr, task, NULL );
23977#if HAVE_PTHREADS < 7
23978	if( status < 0 ) status = errno;
23979#endif
23980	if( status ) return status;
23981#else
23982	/* Draft 4 pthreads */
23983	status = pthread_create( &t, pthread_attr_default, task, NULL );
23984	if( status ) return errno;
23985
23986	/* give thread a chance to complete */
23987	/* it should remain joinable and hence detachable */
23988	sleep( 1 );
23989
23990	status = pthread_detach( &t );
23991	if( status ) return errno;
23992#endif
23993
23994#ifdef HAVE_LINUX_THREADS
23995	pthread_kill_other_threads_np();
23996#endif
23997
23998	return 0;
23999
24000}
24001
24002_ACEOF
24003if ac_fn_c_try_run "$LINENO"; then :
24004  ol_cv_pthread_thread=yes
24005else
24006  ol_cv_pthread_thread=no
24007fi
24008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24009  conftest.$ac_objext conftest.beam conftest.$ac_ext
24010fi
24011
24012
24013		# restore the LIBS
24014		LIBS="$ol_LIBS"
24015
24016fi
24017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
24018$as_echo "$ol_cv_pthread_thread" >&6; }
24019
24020	if test $ol_cv_pthread_thread = yes ; then
24021		ol_link_pthreads="-thread"
24022		ol_link_threads=posix
24023	fi
24024fi
24025
24026
24027		# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
24028if test "$ol_link_threads" = no ; then
24029	# try -lpthread -lmach -lexc -lc_r
24030	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
24031$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
24032if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
24033  $as_echo_n "(cached) " >&6
24034else
24035
24036		# save the flags
24037		ol_LIBS="$LIBS"
24038		LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
24039
24040		if test "$cross_compiling" = yes; then :
24041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24042/* end confdefs.h.  */
24043
24044/* pthread test headers */
24045#include <pthread.h>
24046#if HAVE_PTHREADS < 7
24047#include <errno.h>
24048#endif
24049#ifndef NULL
24050#define NULL (void*)0
24051#endif
24052
24053static void *task(p)
24054	void *p;
24055{
24056	return (void *) (p == NULL);
24057}
24058
24059int
24060main ()
24061{
24062
24063	/* pthread test function */
24064#ifndef PTHREAD_CREATE_DETACHED
24065#define	PTHREAD_CREATE_DETACHED	1
24066#endif
24067	pthread_t t;
24068	int status;
24069	int detach = PTHREAD_CREATE_DETACHED;
24070
24071#if HAVE_PTHREADS > 4
24072	/* Final pthreads */
24073	pthread_attr_t attr;
24074
24075	status = pthread_attr_init(&attr);
24076	if( status ) return status;
24077
24078#if HAVE_PTHREADS < 7
24079	status = pthread_attr_setdetachstate(&attr, &detach);
24080	if( status < 0 ) status = errno;
24081#else
24082	status = pthread_attr_setdetachstate(&attr, detach);
24083#endif
24084	if( status ) return status;
24085	status = pthread_create( &t, &attr, task, NULL );
24086#if HAVE_PTHREADS < 7
24087	if( status < 0 ) status = errno;
24088#endif
24089	if( status ) return status;
24090#else
24091	/* Draft 4 pthreads */
24092	status = pthread_create( &t, pthread_attr_default, task, NULL );
24093	if( status ) return errno;
24094
24095	/* give thread a chance to complete */
24096	/* it should remain joinable and hence detachable */
24097	sleep( 1 );
24098
24099	status = pthread_detach( &t );
24100	if( status ) return errno;
24101#endif
24102
24103#ifdef HAVE_LINUX_THREADS
24104	pthread_kill_other_threads_np();
24105#endif
24106
24107	return 0;
24108
24109  ;
24110  return 0;
24111}
24112_ACEOF
24113if ac_fn_c_try_link "$LINENO"; then :
24114  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
24115else
24116  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
24117fi
24118rm -f core conftest.err conftest.$ac_objext \
24119    conftest$ac_exeext conftest.$ac_ext
24120else
24121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24122/* end confdefs.h.  */
24123
24124
24125/* pthread test headers */
24126#include <pthread.h>
24127#if HAVE_PTHREADS < 7
24128#include <errno.h>
24129#endif
24130#ifndef NULL
24131#define NULL (void*)0
24132#endif
24133
24134static void *task(p)
24135	void *p;
24136{
24137	return (void *) (p == NULL);
24138}
24139
24140
24141int main(argc, argv)
24142	int argc;
24143	char **argv;
24144{
24145
24146	/* pthread test function */
24147#ifndef PTHREAD_CREATE_DETACHED
24148#define	PTHREAD_CREATE_DETACHED	1
24149#endif
24150	pthread_t t;
24151	int status;
24152	int detach = PTHREAD_CREATE_DETACHED;
24153
24154#if HAVE_PTHREADS > 4
24155	/* Final pthreads */
24156	pthread_attr_t attr;
24157
24158	status = pthread_attr_init(&attr);
24159	if( status ) return status;
24160
24161#if HAVE_PTHREADS < 7
24162	status = pthread_attr_setdetachstate(&attr, &detach);
24163	if( status < 0 ) status = errno;
24164#else
24165	status = pthread_attr_setdetachstate(&attr, detach);
24166#endif
24167	if( status ) return status;
24168	status = pthread_create( &t, &attr, task, NULL );
24169#if HAVE_PTHREADS < 7
24170	if( status < 0 ) status = errno;
24171#endif
24172	if( status ) return status;
24173#else
24174	/* Draft 4 pthreads */
24175	status = pthread_create( &t, pthread_attr_default, task, NULL );
24176	if( status ) return errno;
24177
24178	/* give thread a chance to complete */
24179	/* it should remain joinable and hence detachable */
24180	sleep( 1 );
24181
24182	status = pthread_detach( &t );
24183	if( status ) return errno;
24184#endif
24185
24186#ifdef HAVE_LINUX_THREADS
24187	pthread_kill_other_threads_np();
24188#endif
24189
24190	return 0;
24191
24192}
24193
24194_ACEOF
24195if ac_fn_c_try_run "$LINENO"; then :
24196  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
24197else
24198  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
24199fi
24200rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24201  conftest.$ac_objext conftest.beam conftest.$ac_ext
24202fi
24203
24204
24205		# restore the LIBS
24206		LIBS="$ol_LIBS"
24207
24208fi
24209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
24210$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
24211
24212	if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
24213		ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
24214		ol_link_threads=posix
24215	fi
24216fi
24217
24218		# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
24219if test "$ol_link_threads" = no ; then
24220	# try -lpthread -lmach -lexc
24221	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
24222$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
24223if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
24224  $as_echo_n "(cached) " >&6
24225else
24226
24227		# save the flags
24228		ol_LIBS="$LIBS"
24229		LIBS="-lpthread -lmach -lexc $LIBS"
24230
24231		if test "$cross_compiling" = yes; then :
24232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24233/* end confdefs.h.  */
24234
24235/* pthread test headers */
24236#include <pthread.h>
24237#if HAVE_PTHREADS < 7
24238#include <errno.h>
24239#endif
24240#ifndef NULL
24241#define NULL (void*)0
24242#endif
24243
24244static void *task(p)
24245	void *p;
24246{
24247	return (void *) (p == NULL);
24248}
24249
24250int
24251main ()
24252{
24253
24254	/* pthread test function */
24255#ifndef PTHREAD_CREATE_DETACHED
24256#define	PTHREAD_CREATE_DETACHED	1
24257#endif
24258	pthread_t t;
24259	int status;
24260	int detach = PTHREAD_CREATE_DETACHED;
24261
24262#if HAVE_PTHREADS > 4
24263	/* Final pthreads */
24264	pthread_attr_t attr;
24265
24266	status = pthread_attr_init(&attr);
24267	if( status ) return status;
24268
24269#if HAVE_PTHREADS < 7
24270	status = pthread_attr_setdetachstate(&attr, &detach);
24271	if( status < 0 ) status = errno;
24272#else
24273	status = pthread_attr_setdetachstate(&attr, detach);
24274#endif
24275	if( status ) return status;
24276	status = pthread_create( &t, &attr, task, NULL );
24277#if HAVE_PTHREADS < 7
24278	if( status < 0 ) status = errno;
24279#endif
24280	if( status ) return status;
24281#else
24282	/* Draft 4 pthreads */
24283	status = pthread_create( &t, pthread_attr_default, task, NULL );
24284	if( status ) return errno;
24285
24286	/* give thread a chance to complete */
24287	/* it should remain joinable and hence detachable */
24288	sleep( 1 );
24289
24290	status = pthread_detach( &t );
24291	if( status ) return errno;
24292#endif
24293
24294#ifdef HAVE_LINUX_THREADS
24295	pthread_kill_other_threads_np();
24296#endif
24297
24298	return 0;
24299
24300  ;
24301  return 0;
24302}
24303_ACEOF
24304if ac_fn_c_try_link "$LINENO"; then :
24305  ol_cv_pthread_lpthread_lmach_lexc=yes
24306else
24307  ol_cv_pthread_lpthread_lmach_lexc=no
24308fi
24309rm -f core conftest.err conftest.$ac_objext \
24310    conftest$ac_exeext conftest.$ac_ext
24311else
24312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24313/* end confdefs.h.  */
24314
24315
24316/* pthread test headers */
24317#include <pthread.h>
24318#if HAVE_PTHREADS < 7
24319#include <errno.h>
24320#endif
24321#ifndef NULL
24322#define NULL (void*)0
24323#endif
24324
24325static void *task(p)
24326	void *p;
24327{
24328	return (void *) (p == NULL);
24329}
24330
24331
24332int main(argc, argv)
24333	int argc;
24334	char **argv;
24335{
24336
24337	/* pthread test function */
24338#ifndef PTHREAD_CREATE_DETACHED
24339#define	PTHREAD_CREATE_DETACHED	1
24340#endif
24341	pthread_t t;
24342	int status;
24343	int detach = PTHREAD_CREATE_DETACHED;
24344
24345#if HAVE_PTHREADS > 4
24346	/* Final pthreads */
24347	pthread_attr_t attr;
24348
24349	status = pthread_attr_init(&attr);
24350	if( status ) return status;
24351
24352#if HAVE_PTHREADS < 7
24353	status = pthread_attr_setdetachstate(&attr, &detach);
24354	if( status < 0 ) status = errno;
24355#else
24356	status = pthread_attr_setdetachstate(&attr, detach);
24357#endif
24358	if( status ) return status;
24359	status = pthread_create( &t, &attr, task, NULL );
24360#if HAVE_PTHREADS < 7
24361	if( status < 0 ) status = errno;
24362#endif
24363	if( status ) return status;
24364#else
24365	/* Draft 4 pthreads */
24366	status = pthread_create( &t, pthread_attr_default, task, NULL );
24367	if( status ) return errno;
24368
24369	/* give thread a chance to complete */
24370	/* it should remain joinable and hence detachable */
24371	sleep( 1 );
24372
24373	status = pthread_detach( &t );
24374	if( status ) return errno;
24375#endif
24376
24377#ifdef HAVE_LINUX_THREADS
24378	pthread_kill_other_threads_np();
24379#endif
24380
24381	return 0;
24382
24383}
24384
24385_ACEOF
24386if ac_fn_c_try_run "$LINENO"; then :
24387  ol_cv_pthread_lpthread_lmach_lexc=yes
24388else
24389  ol_cv_pthread_lpthread_lmach_lexc=no
24390fi
24391rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24392  conftest.$ac_objext conftest.beam conftest.$ac_ext
24393fi
24394
24395
24396		# restore the LIBS
24397		LIBS="$ol_LIBS"
24398
24399fi
24400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
24401$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
24402
24403	if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
24404		ol_link_pthreads="-lpthread -lmach -lexc"
24405		ol_link_threads=posix
24406	fi
24407fi
24408
24409
24410		# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
24411if test "$ol_link_threads" = no ; then
24412	# try -lpthread -Wl,-woff,85
24413	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
24414$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
24415if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
24416  $as_echo_n "(cached) " >&6
24417else
24418
24419		# save the flags
24420		ol_LIBS="$LIBS"
24421		LIBS="-lpthread -Wl,-woff,85 $LIBS"
24422
24423		if test "$cross_compiling" = yes; then :
24424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24425/* end confdefs.h.  */
24426
24427/* pthread test headers */
24428#include <pthread.h>
24429#if HAVE_PTHREADS < 7
24430#include <errno.h>
24431#endif
24432#ifndef NULL
24433#define NULL (void*)0
24434#endif
24435
24436static void *task(p)
24437	void *p;
24438{
24439	return (void *) (p == NULL);
24440}
24441
24442int
24443main ()
24444{
24445
24446	/* pthread test function */
24447#ifndef PTHREAD_CREATE_DETACHED
24448#define	PTHREAD_CREATE_DETACHED	1
24449#endif
24450	pthread_t t;
24451	int status;
24452	int detach = PTHREAD_CREATE_DETACHED;
24453
24454#if HAVE_PTHREADS > 4
24455	/* Final pthreads */
24456	pthread_attr_t attr;
24457
24458	status = pthread_attr_init(&attr);
24459	if( status ) return status;
24460
24461#if HAVE_PTHREADS < 7
24462	status = pthread_attr_setdetachstate(&attr, &detach);
24463	if( status < 0 ) status = errno;
24464#else
24465	status = pthread_attr_setdetachstate(&attr, detach);
24466#endif
24467	if( status ) return status;
24468	status = pthread_create( &t, &attr, task, NULL );
24469#if HAVE_PTHREADS < 7
24470	if( status < 0 ) status = errno;
24471#endif
24472	if( status ) return status;
24473#else
24474	/* Draft 4 pthreads */
24475	status = pthread_create( &t, pthread_attr_default, task, NULL );
24476	if( status ) return errno;
24477
24478	/* give thread a chance to complete */
24479	/* it should remain joinable and hence detachable */
24480	sleep( 1 );
24481
24482	status = pthread_detach( &t );
24483	if( status ) return errno;
24484#endif
24485
24486#ifdef HAVE_LINUX_THREADS
24487	pthread_kill_other_threads_np();
24488#endif
24489
24490	return 0;
24491
24492  ;
24493  return 0;
24494}
24495_ACEOF
24496if ac_fn_c_try_link "$LINENO"; then :
24497  ol_cv_pthread_lib_lpthread_woff=yes
24498else
24499  ol_cv_pthread_lib_lpthread_woff=no
24500fi
24501rm -f core conftest.err conftest.$ac_objext \
24502    conftest$ac_exeext conftest.$ac_ext
24503else
24504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24505/* end confdefs.h.  */
24506
24507
24508/* pthread test headers */
24509#include <pthread.h>
24510#if HAVE_PTHREADS < 7
24511#include <errno.h>
24512#endif
24513#ifndef NULL
24514#define NULL (void*)0
24515#endif
24516
24517static void *task(p)
24518	void *p;
24519{
24520	return (void *) (p == NULL);
24521}
24522
24523
24524int main(argc, argv)
24525	int argc;
24526	char **argv;
24527{
24528
24529	/* pthread test function */
24530#ifndef PTHREAD_CREATE_DETACHED
24531#define	PTHREAD_CREATE_DETACHED	1
24532#endif
24533	pthread_t t;
24534	int status;
24535	int detach = PTHREAD_CREATE_DETACHED;
24536
24537#if HAVE_PTHREADS > 4
24538	/* Final pthreads */
24539	pthread_attr_t attr;
24540
24541	status = pthread_attr_init(&attr);
24542	if( status ) return status;
24543
24544#if HAVE_PTHREADS < 7
24545	status = pthread_attr_setdetachstate(&attr, &detach);
24546	if( status < 0 ) status = errno;
24547#else
24548	status = pthread_attr_setdetachstate(&attr, detach);
24549#endif
24550	if( status ) return status;
24551	status = pthread_create( &t, &attr, task, NULL );
24552#if HAVE_PTHREADS < 7
24553	if( status < 0 ) status = errno;
24554#endif
24555	if( status ) return status;
24556#else
24557	/* Draft 4 pthreads */
24558	status = pthread_create( &t, pthread_attr_default, task, NULL );
24559	if( status ) return errno;
24560
24561	/* give thread a chance to complete */
24562	/* it should remain joinable and hence detachable */
24563	sleep( 1 );
24564
24565	status = pthread_detach( &t );
24566	if( status ) return errno;
24567#endif
24568
24569#ifdef HAVE_LINUX_THREADS
24570	pthread_kill_other_threads_np();
24571#endif
24572
24573	return 0;
24574
24575}
24576
24577_ACEOF
24578if ac_fn_c_try_run "$LINENO"; then :
24579  ol_cv_pthread_lib_lpthread_woff=yes
24580else
24581  ol_cv_pthread_lib_lpthread_woff=no
24582fi
24583rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24584  conftest.$ac_objext conftest.beam conftest.$ac_ext
24585fi
24586
24587
24588		# restore the LIBS
24589		LIBS="$ol_LIBS"
24590
24591fi
24592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
24593$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
24594
24595	if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
24596		ol_link_pthreads="-lpthread -Wl,-woff,85"
24597		ol_link_threads=posix
24598	fi
24599fi
24600
24601
24602		# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
24603if test "$ol_link_threads" = no ; then
24604	# try -lpthread
24605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
24606$as_echo_n "checking for pthread link with -lpthread... " >&6; }
24607if ${ol_cv_pthread_lpthread+:} false; then :
24608  $as_echo_n "(cached) " >&6
24609else
24610
24611		# save the flags
24612		ol_LIBS="$LIBS"
24613		LIBS="-lpthread $LIBS"
24614
24615		if test "$cross_compiling" = yes; then :
24616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24617/* end confdefs.h.  */
24618
24619/* pthread test headers */
24620#include <pthread.h>
24621#if HAVE_PTHREADS < 7
24622#include <errno.h>
24623#endif
24624#ifndef NULL
24625#define NULL (void*)0
24626#endif
24627
24628static void *task(p)
24629	void *p;
24630{
24631	return (void *) (p == NULL);
24632}
24633
24634int
24635main ()
24636{
24637
24638	/* pthread test function */
24639#ifndef PTHREAD_CREATE_DETACHED
24640#define	PTHREAD_CREATE_DETACHED	1
24641#endif
24642	pthread_t t;
24643	int status;
24644	int detach = PTHREAD_CREATE_DETACHED;
24645
24646#if HAVE_PTHREADS > 4
24647	/* Final pthreads */
24648	pthread_attr_t attr;
24649
24650	status = pthread_attr_init(&attr);
24651	if( status ) return status;
24652
24653#if HAVE_PTHREADS < 7
24654	status = pthread_attr_setdetachstate(&attr, &detach);
24655	if( status < 0 ) status = errno;
24656#else
24657	status = pthread_attr_setdetachstate(&attr, detach);
24658#endif
24659	if( status ) return status;
24660	status = pthread_create( &t, &attr, task, NULL );
24661#if HAVE_PTHREADS < 7
24662	if( status < 0 ) status = errno;
24663#endif
24664	if( status ) return status;
24665#else
24666	/* Draft 4 pthreads */
24667	status = pthread_create( &t, pthread_attr_default, task, NULL );
24668	if( status ) return errno;
24669
24670	/* give thread a chance to complete */
24671	/* it should remain joinable and hence detachable */
24672	sleep( 1 );
24673
24674	status = pthread_detach( &t );
24675	if( status ) return errno;
24676#endif
24677
24678#ifdef HAVE_LINUX_THREADS
24679	pthread_kill_other_threads_np();
24680#endif
24681
24682	return 0;
24683
24684  ;
24685  return 0;
24686}
24687_ACEOF
24688if ac_fn_c_try_link "$LINENO"; then :
24689  ol_cv_pthread_lpthread=yes
24690else
24691  ol_cv_pthread_lpthread=no
24692fi
24693rm -f core conftest.err conftest.$ac_objext \
24694    conftest$ac_exeext conftest.$ac_ext
24695else
24696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24697/* end confdefs.h.  */
24698
24699
24700/* pthread test headers */
24701#include <pthread.h>
24702#if HAVE_PTHREADS < 7
24703#include <errno.h>
24704#endif
24705#ifndef NULL
24706#define NULL (void*)0
24707#endif
24708
24709static void *task(p)
24710	void *p;
24711{
24712	return (void *) (p == NULL);
24713}
24714
24715
24716int main(argc, argv)
24717	int argc;
24718	char **argv;
24719{
24720
24721	/* pthread test function */
24722#ifndef PTHREAD_CREATE_DETACHED
24723#define	PTHREAD_CREATE_DETACHED	1
24724#endif
24725	pthread_t t;
24726	int status;
24727	int detach = PTHREAD_CREATE_DETACHED;
24728
24729#if HAVE_PTHREADS > 4
24730	/* Final pthreads */
24731	pthread_attr_t attr;
24732
24733	status = pthread_attr_init(&attr);
24734	if( status ) return status;
24735
24736#if HAVE_PTHREADS < 7
24737	status = pthread_attr_setdetachstate(&attr, &detach);
24738	if( status < 0 ) status = errno;
24739#else
24740	status = pthread_attr_setdetachstate(&attr, detach);
24741#endif
24742	if( status ) return status;
24743	status = pthread_create( &t, &attr, task, NULL );
24744#if HAVE_PTHREADS < 7
24745	if( status < 0 ) status = errno;
24746#endif
24747	if( status ) return status;
24748#else
24749	/* Draft 4 pthreads */
24750	status = pthread_create( &t, pthread_attr_default, task, NULL );
24751	if( status ) return errno;
24752
24753	/* give thread a chance to complete */
24754	/* it should remain joinable and hence detachable */
24755	sleep( 1 );
24756
24757	status = pthread_detach( &t );
24758	if( status ) return errno;
24759#endif
24760
24761#ifdef HAVE_LINUX_THREADS
24762	pthread_kill_other_threads_np();
24763#endif
24764
24765	return 0;
24766
24767}
24768
24769_ACEOF
24770if ac_fn_c_try_run "$LINENO"; then :
24771  ol_cv_pthread_lpthread=yes
24772else
24773  ol_cv_pthread_lpthread=no
24774fi
24775rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24776  conftest.$ac_objext conftest.beam conftest.$ac_ext
24777fi
24778
24779
24780		# restore the LIBS
24781		LIBS="$ol_LIBS"
24782
24783fi
24784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
24785$as_echo "$ol_cv_pthread_lpthread" >&6; }
24786
24787	if test $ol_cv_pthread_lpthread = yes ; then
24788		ol_link_pthreads="-lpthread"
24789		ol_link_threads=posix
24790	fi
24791fi
24792
24793		# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
24794if test "$ol_link_threads" = no ; then
24795	# try -lc_r
24796	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
24797$as_echo_n "checking for pthread link with -lc_r... " >&6; }
24798if ${ol_cv_pthread_lc_r+:} false; then :
24799  $as_echo_n "(cached) " >&6
24800else
24801
24802		# save the flags
24803		ol_LIBS="$LIBS"
24804		LIBS="-lc_r $LIBS"
24805
24806		if test "$cross_compiling" = yes; then :
24807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24808/* end confdefs.h.  */
24809
24810/* pthread test headers */
24811#include <pthread.h>
24812#if HAVE_PTHREADS < 7
24813#include <errno.h>
24814#endif
24815#ifndef NULL
24816#define NULL (void*)0
24817#endif
24818
24819static void *task(p)
24820	void *p;
24821{
24822	return (void *) (p == NULL);
24823}
24824
24825int
24826main ()
24827{
24828
24829	/* pthread test function */
24830#ifndef PTHREAD_CREATE_DETACHED
24831#define	PTHREAD_CREATE_DETACHED	1
24832#endif
24833	pthread_t t;
24834	int status;
24835	int detach = PTHREAD_CREATE_DETACHED;
24836
24837#if HAVE_PTHREADS > 4
24838	/* Final pthreads */
24839	pthread_attr_t attr;
24840
24841	status = pthread_attr_init(&attr);
24842	if( status ) return status;
24843
24844#if HAVE_PTHREADS < 7
24845	status = pthread_attr_setdetachstate(&attr, &detach);
24846	if( status < 0 ) status = errno;
24847#else
24848	status = pthread_attr_setdetachstate(&attr, detach);
24849#endif
24850	if( status ) return status;
24851	status = pthread_create( &t, &attr, task, NULL );
24852#if HAVE_PTHREADS < 7
24853	if( status < 0 ) status = errno;
24854#endif
24855	if( status ) return status;
24856#else
24857	/* Draft 4 pthreads */
24858	status = pthread_create( &t, pthread_attr_default, task, NULL );
24859	if( status ) return errno;
24860
24861	/* give thread a chance to complete */
24862	/* it should remain joinable and hence detachable */
24863	sleep( 1 );
24864
24865	status = pthread_detach( &t );
24866	if( status ) return errno;
24867#endif
24868
24869#ifdef HAVE_LINUX_THREADS
24870	pthread_kill_other_threads_np();
24871#endif
24872
24873	return 0;
24874
24875  ;
24876  return 0;
24877}
24878_ACEOF
24879if ac_fn_c_try_link "$LINENO"; then :
24880  ol_cv_pthread_lc_r=yes
24881else
24882  ol_cv_pthread_lc_r=no
24883fi
24884rm -f core conftest.err conftest.$ac_objext \
24885    conftest$ac_exeext conftest.$ac_ext
24886else
24887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24888/* end confdefs.h.  */
24889
24890
24891/* pthread test headers */
24892#include <pthread.h>
24893#if HAVE_PTHREADS < 7
24894#include <errno.h>
24895#endif
24896#ifndef NULL
24897#define NULL (void*)0
24898#endif
24899
24900static void *task(p)
24901	void *p;
24902{
24903	return (void *) (p == NULL);
24904}
24905
24906
24907int main(argc, argv)
24908	int argc;
24909	char **argv;
24910{
24911
24912	/* pthread test function */
24913#ifndef PTHREAD_CREATE_DETACHED
24914#define	PTHREAD_CREATE_DETACHED	1
24915#endif
24916	pthread_t t;
24917	int status;
24918	int detach = PTHREAD_CREATE_DETACHED;
24919
24920#if HAVE_PTHREADS > 4
24921	/* Final pthreads */
24922	pthread_attr_t attr;
24923
24924	status = pthread_attr_init(&attr);
24925	if( status ) return status;
24926
24927#if HAVE_PTHREADS < 7
24928	status = pthread_attr_setdetachstate(&attr, &detach);
24929	if( status < 0 ) status = errno;
24930#else
24931	status = pthread_attr_setdetachstate(&attr, detach);
24932#endif
24933	if( status ) return status;
24934	status = pthread_create( &t, &attr, task, NULL );
24935#if HAVE_PTHREADS < 7
24936	if( status < 0 ) status = errno;
24937#endif
24938	if( status ) return status;
24939#else
24940	/* Draft 4 pthreads */
24941	status = pthread_create( &t, pthread_attr_default, task, NULL );
24942	if( status ) return errno;
24943
24944	/* give thread a chance to complete */
24945	/* it should remain joinable and hence detachable */
24946	sleep( 1 );
24947
24948	status = pthread_detach( &t );
24949	if( status ) return errno;
24950#endif
24951
24952#ifdef HAVE_LINUX_THREADS
24953	pthread_kill_other_threads_np();
24954#endif
24955
24956	return 0;
24957
24958}
24959
24960_ACEOF
24961if ac_fn_c_try_run "$LINENO"; then :
24962  ol_cv_pthread_lc_r=yes
24963else
24964  ol_cv_pthread_lc_r=no
24965fi
24966rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24967  conftest.$ac_objext conftest.beam conftest.$ac_ext
24968fi
24969
24970
24971		# restore the LIBS
24972		LIBS="$ol_LIBS"
24973
24974fi
24975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
24976$as_echo "$ol_cv_pthread_lc_r" >&6; }
24977
24978	if test $ol_cv_pthread_lc_r = yes ; then
24979		ol_link_pthreads="-lc_r"
24980		ol_link_threads=posix
24981	fi
24982fi
24983
24984
24985		# Pthread try link: -threads (ol_cv_pthread_threads)
24986if test "$ol_link_threads" = no ; then
24987	# try -threads
24988	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
24989$as_echo_n "checking for pthread link with -threads... " >&6; }
24990if ${ol_cv_pthread_threads+:} false; then :
24991  $as_echo_n "(cached) " >&6
24992else
24993
24994		# save the flags
24995		ol_LIBS="$LIBS"
24996		LIBS="-threads $LIBS"
24997
24998		if test "$cross_compiling" = yes; then :
24999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25000/* end confdefs.h.  */
25001
25002/* pthread test headers */
25003#include <pthread.h>
25004#if HAVE_PTHREADS < 7
25005#include <errno.h>
25006#endif
25007#ifndef NULL
25008#define NULL (void*)0
25009#endif
25010
25011static void *task(p)
25012	void *p;
25013{
25014	return (void *) (p == NULL);
25015}
25016
25017int
25018main ()
25019{
25020
25021	/* pthread test function */
25022#ifndef PTHREAD_CREATE_DETACHED
25023#define	PTHREAD_CREATE_DETACHED	1
25024#endif
25025	pthread_t t;
25026	int status;
25027	int detach = PTHREAD_CREATE_DETACHED;
25028
25029#if HAVE_PTHREADS > 4
25030	/* Final pthreads */
25031	pthread_attr_t attr;
25032
25033	status = pthread_attr_init(&attr);
25034	if( status ) return status;
25035
25036#if HAVE_PTHREADS < 7
25037	status = pthread_attr_setdetachstate(&attr, &detach);
25038	if( status < 0 ) status = errno;
25039#else
25040	status = pthread_attr_setdetachstate(&attr, detach);
25041#endif
25042	if( status ) return status;
25043	status = pthread_create( &t, &attr, task, NULL );
25044#if HAVE_PTHREADS < 7
25045	if( status < 0 ) status = errno;
25046#endif
25047	if( status ) return status;
25048#else
25049	/* Draft 4 pthreads */
25050	status = pthread_create( &t, pthread_attr_default, task, NULL );
25051	if( status ) return errno;
25052
25053	/* give thread a chance to complete */
25054	/* it should remain joinable and hence detachable */
25055	sleep( 1 );
25056
25057	status = pthread_detach( &t );
25058	if( status ) return errno;
25059#endif
25060
25061#ifdef HAVE_LINUX_THREADS
25062	pthread_kill_other_threads_np();
25063#endif
25064
25065	return 0;
25066
25067  ;
25068  return 0;
25069}
25070_ACEOF
25071if ac_fn_c_try_link "$LINENO"; then :
25072  ol_cv_pthread_threads=yes
25073else
25074  ol_cv_pthread_threads=no
25075fi
25076rm -f core conftest.err conftest.$ac_objext \
25077    conftest$ac_exeext conftest.$ac_ext
25078else
25079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25080/* end confdefs.h.  */
25081
25082
25083/* pthread test headers */
25084#include <pthread.h>
25085#if HAVE_PTHREADS < 7
25086#include <errno.h>
25087#endif
25088#ifndef NULL
25089#define NULL (void*)0
25090#endif
25091
25092static void *task(p)
25093	void *p;
25094{
25095	return (void *) (p == NULL);
25096}
25097
25098
25099int main(argc, argv)
25100	int argc;
25101	char **argv;
25102{
25103
25104	/* pthread test function */
25105#ifndef PTHREAD_CREATE_DETACHED
25106#define	PTHREAD_CREATE_DETACHED	1
25107#endif
25108	pthread_t t;
25109	int status;
25110	int detach = PTHREAD_CREATE_DETACHED;
25111
25112#if HAVE_PTHREADS > 4
25113	/* Final pthreads */
25114	pthread_attr_t attr;
25115
25116	status = pthread_attr_init(&attr);
25117	if( status ) return status;
25118
25119#if HAVE_PTHREADS < 7
25120	status = pthread_attr_setdetachstate(&attr, &detach);
25121	if( status < 0 ) status = errno;
25122#else
25123	status = pthread_attr_setdetachstate(&attr, detach);
25124#endif
25125	if( status ) return status;
25126	status = pthread_create( &t, &attr, task, NULL );
25127#if HAVE_PTHREADS < 7
25128	if( status < 0 ) status = errno;
25129#endif
25130	if( status ) return status;
25131#else
25132	/* Draft 4 pthreads */
25133	status = pthread_create( &t, pthread_attr_default, task, NULL );
25134	if( status ) return errno;
25135
25136	/* give thread a chance to complete */
25137	/* it should remain joinable and hence detachable */
25138	sleep( 1 );
25139
25140	status = pthread_detach( &t );
25141	if( status ) return errno;
25142#endif
25143
25144#ifdef HAVE_LINUX_THREADS
25145	pthread_kill_other_threads_np();
25146#endif
25147
25148	return 0;
25149
25150}
25151
25152_ACEOF
25153if ac_fn_c_try_run "$LINENO"; then :
25154  ol_cv_pthread_threads=yes
25155else
25156  ol_cv_pthread_threads=no
25157fi
25158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25159  conftest.$ac_objext conftest.beam conftest.$ac_ext
25160fi
25161
25162
25163		# restore the LIBS
25164		LIBS="$ol_LIBS"
25165
25166fi
25167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
25168$as_echo "$ol_cv_pthread_threads" >&6; }
25169
25170	if test $ol_cv_pthread_threads = yes ; then
25171		ol_link_pthreads="-threads"
25172		ol_link_threads=posix
25173	fi
25174fi
25175
25176
25177		# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
25178if test "$ol_link_threads" = no ; then
25179	# try -lpthreads -lmach -lexc -lc_r
25180	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
25181$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
25182if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
25183  $as_echo_n "(cached) " >&6
25184else
25185
25186		# save the flags
25187		ol_LIBS="$LIBS"
25188		LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
25189
25190		if test "$cross_compiling" = yes; then :
25191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25192/* end confdefs.h.  */
25193
25194/* pthread test headers */
25195#include <pthread.h>
25196#if HAVE_PTHREADS < 7
25197#include <errno.h>
25198#endif
25199#ifndef NULL
25200#define NULL (void*)0
25201#endif
25202
25203static void *task(p)
25204	void *p;
25205{
25206	return (void *) (p == NULL);
25207}
25208
25209int
25210main ()
25211{
25212
25213	/* pthread test function */
25214#ifndef PTHREAD_CREATE_DETACHED
25215#define	PTHREAD_CREATE_DETACHED	1
25216#endif
25217	pthread_t t;
25218	int status;
25219	int detach = PTHREAD_CREATE_DETACHED;
25220
25221#if HAVE_PTHREADS > 4
25222	/* Final pthreads */
25223	pthread_attr_t attr;
25224
25225	status = pthread_attr_init(&attr);
25226	if( status ) return status;
25227
25228#if HAVE_PTHREADS < 7
25229	status = pthread_attr_setdetachstate(&attr, &detach);
25230	if( status < 0 ) status = errno;
25231#else
25232	status = pthread_attr_setdetachstate(&attr, detach);
25233#endif
25234	if( status ) return status;
25235	status = pthread_create( &t, &attr, task, NULL );
25236#if HAVE_PTHREADS < 7
25237	if( status < 0 ) status = errno;
25238#endif
25239	if( status ) return status;
25240#else
25241	/* Draft 4 pthreads */
25242	status = pthread_create( &t, pthread_attr_default, task, NULL );
25243	if( status ) return errno;
25244
25245	/* give thread a chance to complete */
25246	/* it should remain joinable and hence detachable */
25247	sleep( 1 );
25248
25249	status = pthread_detach( &t );
25250	if( status ) return errno;
25251#endif
25252
25253#ifdef HAVE_LINUX_THREADS
25254	pthread_kill_other_threads_np();
25255#endif
25256
25257	return 0;
25258
25259  ;
25260  return 0;
25261}
25262_ACEOF
25263if ac_fn_c_try_link "$LINENO"; then :
25264  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
25265else
25266  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
25267fi
25268rm -f core conftest.err conftest.$ac_objext \
25269    conftest$ac_exeext conftest.$ac_ext
25270else
25271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25272/* end confdefs.h.  */
25273
25274
25275/* pthread test headers */
25276#include <pthread.h>
25277#if HAVE_PTHREADS < 7
25278#include <errno.h>
25279#endif
25280#ifndef NULL
25281#define NULL (void*)0
25282#endif
25283
25284static void *task(p)
25285	void *p;
25286{
25287	return (void *) (p == NULL);
25288}
25289
25290
25291int main(argc, argv)
25292	int argc;
25293	char **argv;
25294{
25295
25296	/* pthread test function */
25297#ifndef PTHREAD_CREATE_DETACHED
25298#define	PTHREAD_CREATE_DETACHED	1
25299#endif
25300	pthread_t t;
25301	int status;
25302	int detach = PTHREAD_CREATE_DETACHED;
25303
25304#if HAVE_PTHREADS > 4
25305	/* Final pthreads */
25306	pthread_attr_t attr;
25307
25308	status = pthread_attr_init(&attr);
25309	if( status ) return status;
25310
25311#if HAVE_PTHREADS < 7
25312	status = pthread_attr_setdetachstate(&attr, &detach);
25313	if( status < 0 ) status = errno;
25314#else
25315	status = pthread_attr_setdetachstate(&attr, detach);
25316#endif
25317	if( status ) return status;
25318	status = pthread_create( &t, &attr, task, NULL );
25319#if HAVE_PTHREADS < 7
25320	if( status < 0 ) status = errno;
25321#endif
25322	if( status ) return status;
25323#else
25324	/* Draft 4 pthreads */
25325	status = pthread_create( &t, pthread_attr_default, task, NULL );
25326	if( status ) return errno;
25327
25328	/* give thread a chance to complete */
25329	/* it should remain joinable and hence detachable */
25330	sleep( 1 );
25331
25332	status = pthread_detach( &t );
25333	if( status ) return errno;
25334#endif
25335
25336#ifdef HAVE_LINUX_THREADS
25337	pthread_kill_other_threads_np();
25338#endif
25339
25340	return 0;
25341
25342}
25343
25344_ACEOF
25345if ac_fn_c_try_run "$LINENO"; then :
25346  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
25347else
25348  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
25349fi
25350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25351  conftest.$ac_objext conftest.beam conftest.$ac_ext
25352fi
25353
25354
25355		# restore the LIBS
25356		LIBS="$ol_LIBS"
25357
25358fi
25359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
25360$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
25361
25362	if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
25363		ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
25364		ol_link_threads=posix
25365	fi
25366fi
25367
25368		# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
25369if test "$ol_link_threads" = no ; then
25370	# try -lpthreads -lmach -lexc
25371	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
25372$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
25373if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
25374  $as_echo_n "(cached) " >&6
25375else
25376
25377		# save the flags
25378		ol_LIBS="$LIBS"
25379		LIBS="-lpthreads -lmach -lexc $LIBS"
25380
25381		if test "$cross_compiling" = yes; then :
25382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25383/* end confdefs.h.  */
25384
25385/* pthread test headers */
25386#include <pthread.h>
25387#if HAVE_PTHREADS < 7
25388#include <errno.h>
25389#endif
25390#ifndef NULL
25391#define NULL (void*)0
25392#endif
25393
25394static void *task(p)
25395	void *p;
25396{
25397	return (void *) (p == NULL);
25398}
25399
25400int
25401main ()
25402{
25403
25404	/* pthread test function */
25405#ifndef PTHREAD_CREATE_DETACHED
25406#define	PTHREAD_CREATE_DETACHED	1
25407#endif
25408	pthread_t t;
25409	int status;
25410	int detach = PTHREAD_CREATE_DETACHED;
25411
25412#if HAVE_PTHREADS > 4
25413	/* Final pthreads */
25414	pthread_attr_t attr;
25415
25416	status = pthread_attr_init(&attr);
25417	if( status ) return status;
25418
25419#if HAVE_PTHREADS < 7
25420	status = pthread_attr_setdetachstate(&attr, &detach);
25421	if( status < 0 ) status = errno;
25422#else
25423	status = pthread_attr_setdetachstate(&attr, detach);
25424#endif
25425	if( status ) return status;
25426	status = pthread_create( &t, &attr, task, NULL );
25427#if HAVE_PTHREADS < 7
25428	if( status < 0 ) status = errno;
25429#endif
25430	if( status ) return status;
25431#else
25432	/* Draft 4 pthreads */
25433	status = pthread_create( &t, pthread_attr_default, task, NULL );
25434	if( status ) return errno;
25435
25436	/* give thread a chance to complete */
25437	/* it should remain joinable and hence detachable */
25438	sleep( 1 );
25439
25440	status = pthread_detach( &t );
25441	if( status ) return errno;
25442#endif
25443
25444#ifdef HAVE_LINUX_THREADS
25445	pthread_kill_other_threads_np();
25446#endif
25447
25448	return 0;
25449
25450  ;
25451  return 0;
25452}
25453_ACEOF
25454if ac_fn_c_try_link "$LINENO"; then :
25455  ol_cv_pthread_lpthreads_lmach_lexc=yes
25456else
25457  ol_cv_pthread_lpthreads_lmach_lexc=no
25458fi
25459rm -f core conftest.err conftest.$ac_objext \
25460    conftest$ac_exeext conftest.$ac_ext
25461else
25462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25463/* end confdefs.h.  */
25464
25465
25466/* pthread test headers */
25467#include <pthread.h>
25468#if HAVE_PTHREADS < 7
25469#include <errno.h>
25470#endif
25471#ifndef NULL
25472#define NULL (void*)0
25473#endif
25474
25475static void *task(p)
25476	void *p;
25477{
25478	return (void *) (p == NULL);
25479}
25480
25481
25482int main(argc, argv)
25483	int argc;
25484	char **argv;
25485{
25486
25487	/* pthread test function */
25488#ifndef PTHREAD_CREATE_DETACHED
25489#define	PTHREAD_CREATE_DETACHED	1
25490#endif
25491	pthread_t t;
25492	int status;
25493	int detach = PTHREAD_CREATE_DETACHED;
25494
25495#if HAVE_PTHREADS > 4
25496	/* Final pthreads */
25497	pthread_attr_t attr;
25498
25499	status = pthread_attr_init(&attr);
25500	if( status ) return status;
25501
25502#if HAVE_PTHREADS < 7
25503	status = pthread_attr_setdetachstate(&attr, &detach);
25504	if( status < 0 ) status = errno;
25505#else
25506	status = pthread_attr_setdetachstate(&attr, detach);
25507#endif
25508	if( status ) return status;
25509	status = pthread_create( &t, &attr, task, NULL );
25510#if HAVE_PTHREADS < 7
25511	if( status < 0 ) status = errno;
25512#endif
25513	if( status ) return status;
25514#else
25515	/* Draft 4 pthreads */
25516	status = pthread_create( &t, pthread_attr_default, task, NULL );
25517	if( status ) return errno;
25518
25519	/* give thread a chance to complete */
25520	/* it should remain joinable and hence detachable */
25521	sleep( 1 );
25522
25523	status = pthread_detach( &t );
25524	if( status ) return errno;
25525#endif
25526
25527#ifdef HAVE_LINUX_THREADS
25528	pthread_kill_other_threads_np();
25529#endif
25530
25531	return 0;
25532
25533}
25534
25535_ACEOF
25536if ac_fn_c_try_run "$LINENO"; then :
25537  ol_cv_pthread_lpthreads_lmach_lexc=yes
25538else
25539  ol_cv_pthread_lpthreads_lmach_lexc=no
25540fi
25541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25542  conftest.$ac_objext conftest.beam conftest.$ac_ext
25543fi
25544
25545
25546		# restore the LIBS
25547		LIBS="$ol_LIBS"
25548
25549fi
25550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
25551$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
25552
25553	if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
25554		ol_link_pthreads="-lpthreads -lmach -lexc"
25555		ol_link_threads=posix
25556	fi
25557fi
25558
25559		# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
25560if test "$ol_link_threads" = no ; then
25561	# try -lpthreads -lexc
25562	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
25563$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
25564if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
25565  $as_echo_n "(cached) " >&6
25566else
25567
25568		# save the flags
25569		ol_LIBS="$LIBS"
25570		LIBS="-lpthreads -lexc $LIBS"
25571
25572		if test "$cross_compiling" = yes; then :
25573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25574/* end confdefs.h.  */
25575
25576/* pthread test headers */
25577#include <pthread.h>
25578#if HAVE_PTHREADS < 7
25579#include <errno.h>
25580#endif
25581#ifndef NULL
25582#define NULL (void*)0
25583#endif
25584
25585static void *task(p)
25586	void *p;
25587{
25588	return (void *) (p == NULL);
25589}
25590
25591int
25592main ()
25593{
25594
25595	/* pthread test function */
25596#ifndef PTHREAD_CREATE_DETACHED
25597#define	PTHREAD_CREATE_DETACHED	1
25598#endif
25599	pthread_t t;
25600	int status;
25601	int detach = PTHREAD_CREATE_DETACHED;
25602
25603#if HAVE_PTHREADS > 4
25604	/* Final pthreads */
25605	pthread_attr_t attr;
25606
25607	status = pthread_attr_init(&attr);
25608	if( status ) return status;
25609
25610#if HAVE_PTHREADS < 7
25611	status = pthread_attr_setdetachstate(&attr, &detach);
25612	if( status < 0 ) status = errno;
25613#else
25614	status = pthread_attr_setdetachstate(&attr, detach);
25615#endif
25616	if( status ) return status;
25617	status = pthread_create( &t, &attr, task, NULL );
25618#if HAVE_PTHREADS < 7
25619	if( status < 0 ) status = errno;
25620#endif
25621	if( status ) return status;
25622#else
25623	/* Draft 4 pthreads */
25624	status = pthread_create( &t, pthread_attr_default, task, NULL );
25625	if( status ) return errno;
25626
25627	/* give thread a chance to complete */
25628	/* it should remain joinable and hence detachable */
25629	sleep( 1 );
25630
25631	status = pthread_detach( &t );
25632	if( status ) return errno;
25633#endif
25634
25635#ifdef HAVE_LINUX_THREADS
25636	pthread_kill_other_threads_np();
25637#endif
25638
25639	return 0;
25640
25641  ;
25642  return 0;
25643}
25644_ACEOF
25645if ac_fn_c_try_link "$LINENO"; then :
25646  ol_cv_pthread_lpthreads_lexc=yes
25647else
25648  ol_cv_pthread_lpthreads_lexc=no
25649fi
25650rm -f core conftest.err conftest.$ac_objext \
25651    conftest$ac_exeext conftest.$ac_ext
25652else
25653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25654/* end confdefs.h.  */
25655
25656
25657/* pthread test headers */
25658#include <pthread.h>
25659#if HAVE_PTHREADS < 7
25660#include <errno.h>
25661#endif
25662#ifndef NULL
25663#define NULL (void*)0
25664#endif
25665
25666static void *task(p)
25667	void *p;
25668{
25669	return (void *) (p == NULL);
25670}
25671
25672
25673int main(argc, argv)
25674	int argc;
25675	char **argv;
25676{
25677
25678	/* pthread test function */
25679#ifndef PTHREAD_CREATE_DETACHED
25680#define	PTHREAD_CREATE_DETACHED	1
25681#endif
25682	pthread_t t;
25683	int status;
25684	int detach = PTHREAD_CREATE_DETACHED;
25685
25686#if HAVE_PTHREADS > 4
25687	/* Final pthreads */
25688	pthread_attr_t attr;
25689
25690	status = pthread_attr_init(&attr);
25691	if( status ) return status;
25692
25693#if HAVE_PTHREADS < 7
25694	status = pthread_attr_setdetachstate(&attr, &detach);
25695	if( status < 0 ) status = errno;
25696#else
25697	status = pthread_attr_setdetachstate(&attr, detach);
25698#endif
25699	if( status ) return status;
25700	status = pthread_create( &t, &attr, task, NULL );
25701#if HAVE_PTHREADS < 7
25702	if( status < 0 ) status = errno;
25703#endif
25704	if( status ) return status;
25705#else
25706	/* Draft 4 pthreads */
25707	status = pthread_create( &t, pthread_attr_default, task, NULL );
25708	if( status ) return errno;
25709
25710	/* give thread a chance to complete */
25711	/* it should remain joinable and hence detachable */
25712	sleep( 1 );
25713
25714	status = pthread_detach( &t );
25715	if( status ) return errno;
25716#endif
25717
25718#ifdef HAVE_LINUX_THREADS
25719	pthread_kill_other_threads_np();
25720#endif
25721
25722	return 0;
25723
25724}
25725
25726_ACEOF
25727if ac_fn_c_try_run "$LINENO"; then :
25728  ol_cv_pthread_lpthreads_lexc=yes
25729else
25730  ol_cv_pthread_lpthreads_lexc=no
25731fi
25732rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25733  conftest.$ac_objext conftest.beam conftest.$ac_ext
25734fi
25735
25736
25737		# restore the LIBS
25738		LIBS="$ol_LIBS"
25739
25740fi
25741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
25742$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
25743
25744	if test $ol_cv_pthread_lpthreads_lexc = yes ; then
25745		ol_link_pthreads="-lpthreads -lexc"
25746		ol_link_threads=posix
25747	fi
25748fi
25749
25750
25751		# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
25752if test "$ol_link_threads" = no ; then
25753	# try -lpthreads
25754	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
25755$as_echo_n "checking for pthread link with -lpthreads... " >&6; }
25756if ${ol_cv_pthread_lib_lpthreads+:} false; then :
25757  $as_echo_n "(cached) " >&6
25758else
25759
25760		# save the flags
25761		ol_LIBS="$LIBS"
25762		LIBS="-lpthreads $LIBS"
25763
25764		if test "$cross_compiling" = yes; then :
25765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25766/* end confdefs.h.  */
25767
25768/* pthread test headers */
25769#include <pthread.h>
25770#if HAVE_PTHREADS < 7
25771#include <errno.h>
25772#endif
25773#ifndef NULL
25774#define NULL (void*)0
25775#endif
25776
25777static void *task(p)
25778	void *p;
25779{
25780	return (void *) (p == NULL);
25781}
25782
25783int
25784main ()
25785{
25786
25787	/* pthread test function */
25788#ifndef PTHREAD_CREATE_DETACHED
25789#define	PTHREAD_CREATE_DETACHED	1
25790#endif
25791	pthread_t t;
25792	int status;
25793	int detach = PTHREAD_CREATE_DETACHED;
25794
25795#if HAVE_PTHREADS > 4
25796	/* Final pthreads */
25797	pthread_attr_t attr;
25798
25799	status = pthread_attr_init(&attr);
25800	if( status ) return status;
25801
25802#if HAVE_PTHREADS < 7
25803	status = pthread_attr_setdetachstate(&attr, &detach);
25804	if( status < 0 ) status = errno;
25805#else
25806	status = pthread_attr_setdetachstate(&attr, detach);
25807#endif
25808	if( status ) return status;
25809	status = pthread_create( &t, &attr, task, NULL );
25810#if HAVE_PTHREADS < 7
25811	if( status < 0 ) status = errno;
25812#endif
25813	if( status ) return status;
25814#else
25815	/* Draft 4 pthreads */
25816	status = pthread_create( &t, pthread_attr_default, task, NULL );
25817	if( status ) return errno;
25818
25819	/* give thread a chance to complete */
25820	/* it should remain joinable and hence detachable */
25821	sleep( 1 );
25822
25823	status = pthread_detach( &t );
25824	if( status ) return errno;
25825#endif
25826
25827#ifdef HAVE_LINUX_THREADS
25828	pthread_kill_other_threads_np();
25829#endif
25830
25831	return 0;
25832
25833  ;
25834  return 0;
25835}
25836_ACEOF
25837if ac_fn_c_try_link "$LINENO"; then :
25838  ol_cv_pthread_lib_lpthreads=yes
25839else
25840  ol_cv_pthread_lib_lpthreads=no
25841fi
25842rm -f core conftest.err conftest.$ac_objext \
25843    conftest$ac_exeext conftest.$ac_ext
25844else
25845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25846/* end confdefs.h.  */
25847
25848
25849/* pthread test headers */
25850#include <pthread.h>
25851#if HAVE_PTHREADS < 7
25852#include <errno.h>
25853#endif
25854#ifndef NULL
25855#define NULL (void*)0
25856#endif
25857
25858static void *task(p)
25859	void *p;
25860{
25861	return (void *) (p == NULL);
25862}
25863
25864
25865int main(argc, argv)
25866	int argc;
25867	char **argv;
25868{
25869
25870	/* pthread test function */
25871#ifndef PTHREAD_CREATE_DETACHED
25872#define	PTHREAD_CREATE_DETACHED	1
25873#endif
25874	pthread_t t;
25875	int status;
25876	int detach = PTHREAD_CREATE_DETACHED;
25877
25878#if HAVE_PTHREADS > 4
25879	/* Final pthreads */
25880	pthread_attr_t attr;
25881
25882	status = pthread_attr_init(&attr);
25883	if( status ) return status;
25884
25885#if HAVE_PTHREADS < 7
25886	status = pthread_attr_setdetachstate(&attr, &detach);
25887	if( status < 0 ) status = errno;
25888#else
25889	status = pthread_attr_setdetachstate(&attr, detach);
25890#endif
25891	if( status ) return status;
25892	status = pthread_create( &t, &attr, task, NULL );
25893#if HAVE_PTHREADS < 7
25894	if( status < 0 ) status = errno;
25895#endif
25896	if( status ) return status;
25897#else
25898	/* Draft 4 pthreads */
25899	status = pthread_create( &t, pthread_attr_default, task, NULL );
25900	if( status ) return errno;
25901
25902	/* give thread a chance to complete */
25903	/* it should remain joinable and hence detachable */
25904	sleep( 1 );
25905
25906	status = pthread_detach( &t );
25907	if( status ) return errno;
25908#endif
25909
25910#ifdef HAVE_LINUX_THREADS
25911	pthread_kill_other_threads_np();
25912#endif
25913
25914	return 0;
25915
25916}
25917
25918_ACEOF
25919if ac_fn_c_try_run "$LINENO"; then :
25920  ol_cv_pthread_lib_lpthreads=yes
25921else
25922  ol_cv_pthread_lib_lpthreads=no
25923fi
25924rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25925  conftest.$ac_objext conftest.beam conftest.$ac_ext
25926fi
25927
25928
25929		# restore the LIBS
25930		LIBS="$ol_LIBS"
25931
25932fi
25933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
25934$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
25935
25936	if test $ol_cv_pthread_lib_lpthreads = yes ; then
25937		ol_link_pthreads="-lpthreads"
25938		ol_link_threads=posix
25939	fi
25940fi
25941
25942
25943		if test $ol_link_threads != no ; then
25944			LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
25945
25946						save_CPPFLAGS="$CPPFLAGS"
25947			save_LIBS="$LIBS"
25948			LIBS="$LTHREAD_LIBS $LIBS"
25949
25950												for ac_func in sched_yield pthread_yield thr_yield
25951do :
25952  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25953ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25954if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25955  cat >>confdefs.h <<_ACEOF
25956#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25957_ACEOF
25958
25959fi
25960done
25961
25962
25963			if test $ac_cv_func_sched_yield = no &&
25964			   test $ac_cv_func_pthread_yield = no &&
25965			   test $ac_cv_func_thr_yield = no ; then
25966								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
25967$as_echo_n "checking for sched_yield in -lrt... " >&6; }
25968if ${ac_cv_lib_rt_sched_yield+:} false; then :
25969  $as_echo_n "(cached) " >&6
25970else
25971  ac_check_lib_save_LIBS=$LIBS
25972LIBS="-lrt  $LIBS"
25973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25974/* end confdefs.h.  */
25975
25976/* Override any GCC internal prototype to avoid an error.
25977   Use char because int might match the return type of a GCC
25978   builtin and then its argument prototype would still apply.  */
25979#ifdef __cplusplus
25980extern "C"
25981#endif
25982char sched_yield ();
25983int
25984main ()
25985{
25986return sched_yield ();
25987  ;
25988  return 0;
25989}
25990_ACEOF
25991if ac_fn_c_try_link "$LINENO"; then :
25992  ac_cv_lib_rt_sched_yield=yes
25993else
25994  ac_cv_lib_rt_sched_yield=no
25995fi
25996rm -f core conftest.err conftest.$ac_objext \
25997    conftest$ac_exeext conftest.$ac_ext
25998LIBS=$ac_check_lib_save_LIBS
25999fi
26000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
26001$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
26002if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
26003  LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
26004
26005$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
26006
26007					ac_cv_func_sched_yield=yes
26008else
26009  ac_cv_func_sched_yield=no
26010fi
26011
26012			fi
26013			if test $ac_cv_func_sched_yield = no &&
26014			   test $ac_cv_func_pthread_yield = no &&
26015			   test "$ac_cv_func_thr_yield" = no ; then
26016				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
26017$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
26018			fi
26019
26020						for ac_func in pthread_kill
26021do :
26022  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
26023if test "x$ac_cv_func_pthread_kill" = xyes; then :
26024  cat >>confdefs.h <<_ACEOF
26025#define HAVE_PTHREAD_KILL 1
26026_ACEOF
26027
26028fi
26029done
26030
26031
26032									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
26033$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
26034if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
26035  $as_echo_n "(cached) " >&6
26036else
26037
26038								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26039/* end confdefs.h.  */
26040
26041#include <pthread.h>
26042pthread_rwlock_t rwlock;
26043
26044int
26045main ()
26046{
26047pthread_rwlock_destroy(&rwlock);
26048  ;
26049  return 0;
26050}
26051_ACEOF
26052if ac_fn_c_try_link "$LINENO"; then :
26053  ol_cv_func_pthread_rwlock_destroy=yes
26054else
26055  ol_cv_func_pthread_rwlock_destroy=no
26056fi
26057rm -f core conftest.err conftest.$ac_objext \
26058    conftest$ac_exeext conftest.$ac_ext
26059
26060fi
26061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
26062$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
26063			if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
26064
26065$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
26066
26067			fi
26068
26069									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
26070$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
26071if ${ol_cv_func_pthread_detach+:} false; then :
26072  $as_echo_n "(cached) " >&6
26073else
26074
26075								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26076/* end confdefs.h.  */
26077
26078#include <pthread.h>
26079#ifndef NULL
26080#define NULL (void*)0
26081#endif
26082
26083int
26084main ()
26085{
26086pthread_detach(NULL);
26087  ;
26088  return 0;
26089}
26090_ACEOF
26091if ac_fn_c_try_link "$LINENO"; then :
26092  ol_cv_func_pthread_detach=yes
26093else
26094  ol_cv_func_pthread_detach=no
26095fi
26096rm -f core conftest.err conftest.$ac_objext \
26097    conftest$ac_exeext conftest.$ac_ext
26098
26099fi
26100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
26101$as_echo "$ol_cv_func_pthread_detach" >&6; }
26102
26103			if test $ol_cv_func_pthread_detach = no ; then
26104				as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
26105			fi
26106
26107
26108$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
26109
26110
26111						for ac_func in \
26112				pthread_setconcurrency \
26113				pthread_getconcurrency \
26114				thr_setconcurrency \
26115				thr_getconcurrency \
26116
26117do :
26118  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26119ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26120if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26121  cat >>confdefs.h <<_ACEOF
26122#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26123_ACEOF
26124
26125fi
26126done
26127
26128
26129
26130	for ac_func in pthread_kill_other_threads_np
26131do :
26132  ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
26133if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
26134  cat >>confdefs.h <<_ACEOF
26135#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
26136_ACEOF
26137
26138fi
26139done
26140
26141	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
26142$as_echo_n "checking for LinuxThreads implementation... " >&6; }
26143if ${ol_cv_sys_linux_threads+:} false; then :
26144  $as_echo_n "(cached) " >&6
26145else
26146  ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
26147fi
26148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
26149$as_echo "$ol_cv_sys_linux_threads" >&6; }
26150
26151
26152
26153
26154	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
26155$as_echo_n "checking for LinuxThreads consistency... " >&6; }
26156if ${ol_cv_linux_threads+:} false; then :
26157  $as_echo_n "(cached) " >&6
26158else
26159
26160		if test $ol_cv_header_linux_threads = yes &&
26161		   test $ol_cv_sys_linux_threads = yes; then
26162			ol_cv_linux_threads=yes
26163		elif test $ol_cv_header_linux_threads = no &&
26164		     test $ol_cv_sys_linux_threads = no; then
26165			ol_cv_linux_threads=no
26166		else
26167			ol_cv_linux_threads=error
26168		fi
26169
26170fi
26171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
26172$as_echo "$ol_cv_linux_threads" >&6; }
26173
26174
26175			if test $ol_cv_linux_threads = error; then
26176				as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
26177			fi
26178
26179			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
26180$as_echo_n "checking if pthread_create() works... " >&6; }
26181if ${ol_cv_pthread_create_works+:} false; then :
26182  $as_echo_n "(cached) " >&6
26183else
26184
26185			if test "$cross_compiling" = yes; then :
26186  				ol_cv_pthread_create_works=yes
26187else
26188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26189/* end confdefs.h.  */
26190
26191
26192/* pthread test headers */
26193#include <pthread.h>
26194#if HAVE_PTHREADS < 7
26195#include <errno.h>
26196#endif
26197#ifndef NULL
26198#define NULL (void*)0
26199#endif
26200
26201static void *task(p)
26202	void *p;
26203{
26204	return (void *) (p == NULL);
26205}
26206
26207
26208int main(argc, argv)
26209	int argc;
26210	char **argv;
26211{
26212
26213	/* pthread test function */
26214#ifndef PTHREAD_CREATE_DETACHED
26215#define	PTHREAD_CREATE_DETACHED	1
26216#endif
26217	pthread_t t;
26218	int status;
26219	int detach = PTHREAD_CREATE_DETACHED;
26220
26221#if HAVE_PTHREADS > 4
26222	/* Final pthreads */
26223	pthread_attr_t attr;
26224
26225	status = pthread_attr_init(&attr);
26226	if( status ) return status;
26227
26228#if HAVE_PTHREADS < 7
26229	status = pthread_attr_setdetachstate(&attr, &detach);
26230	if( status < 0 ) status = errno;
26231#else
26232	status = pthread_attr_setdetachstate(&attr, detach);
26233#endif
26234	if( status ) return status;
26235	status = pthread_create( &t, &attr, task, NULL );
26236#if HAVE_PTHREADS < 7
26237	if( status < 0 ) status = errno;
26238#endif
26239	if( status ) return status;
26240#else
26241	/* Draft 4 pthreads */
26242	status = pthread_create( &t, pthread_attr_default, task, NULL );
26243	if( status ) return errno;
26244
26245	/* give thread a chance to complete */
26246	/* it should remain joinable and hence detachable */
26247	sleep( 1 );
26248
26249	status = pthread_detach( &t );
26250	if( status ) return errno;
26251#endif
26252
26253#ifdef HAVE_LINUX_THREADS
26254	pthread_kill_other_threads_np();
26255#endif
26256
26257	return 0;
26258
26259}
26260
26261_ACEOF
26262if ac_fn_c_try_run "$LINENO"; then :
26263  ol_cv_pthread_create_works=yes
26264else
26265  ol_cv_pthread_create_works=no
26266fi
26267rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26268  conftest.$ac_objext conftest.beam conftest.$ac_ext
26269fi
26270
26271fi
26272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
26273$as_echo "$ol_cv_pthread_create_works" >&6; }
26274
26275			if test $ol_cv_pthread_create_works = no ; then
26276				as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
26277			fi
26278
26279			ol_replace_broken_yield=no
26280
26281			if test $ol_replace_broken_yield = yes ; then
26282
26283$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
26284
26285			fi
26286
26287						if test x$ol_with_yielding_select = xauto ; then
26288				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
26289$as_echo_n "checking if select yields when using pthreads... " >&6; }
26290if ${ol_cv_pthread_select_yields+:} false; then :
26291  $as_echo_n "(cached) " >&6
26292else
26293
26294				if test "$cross_compiling" = yes; then :
26295  ol_cv_pthread_select_yields=cross
26296else
26297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26298/* end confdefs.h.  */
26299
26300#include <sys/types.h>
26301#include <sys/time.h>
26302#include <unistd.h>
26303#include <pthread.h>
26304#ifndef NULL
26305#define NULL (void*) 0
26306#endif
26307
26308static int fildes[2];
26309
26310static void *task(p)
26311	void *p;
26312{
26313	int i;
26314	struct timeval tv;
26315
26316	fd_set rfds;
26317
26318	tv.tv_sec=10;
26319	tv.tv_usec=0;
26320
26321	FD_ZERO(&rfds);
26322	FD_SET(fildes[0], &rfds);
26323
26324	/* we're not interested in any fds */
26325	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
26326
26327	if(i < 0) {
26328		perror("select");
26329		exit(10);
26330	}
26331
26332	exit(0); /* if we exit here, the select blocked the whole process */
26333}
26334
26335int main(argc, argv)
26336	int argc;
26337	char **argv;
26338{
26339	pthread_t t;
26340
26341	/* create a pipe to select */
26342	if(pipe(&fildes[0])) {
26343		perror("select");
26344		exit(1);
26345	}
26346
26347#ifdef HAVE_PTHREAD_SETCONCURRENCY
26348	(void) pthread_setconcurrency(2);
26349#else
26350#ifdef HAVE_THR_SETCONCURRENCY
26351	/* Set Solaris LWP concurrency to 2 */
26352	thr_setconcurrency(2);
26353#endif
26354#endif
26355
26356#if HAVE_PTHREADS < 6
26357	pthread_create(&t, pthread_attr_default, task, NULL);
26358#else
26359	pthread_create(&t, NULL, task, NULL);
26360#endif
26361
26362	/* make sure task runs first */
26363#ifdef HAVE_THR_YIELD
26364	thr_yield();
26365#elif defined( HAVE_SCHED_YIELD )
26366	sched_yield();
26367#elif defined( HAVE_PTHREAD_YIELD )
26368	pthread_yield();
26369#endif
26370
26371	exit(2);
26372}
26373_ACEOF
26374if ac_fn_c_try_run "$LINENO"; then :
26375  ol_cv_pthread_select_yields=no
26376else
26377  ol_cv_pthread_select_yields=yes
26378fi
26379rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26380  conftest.$ac_objext conftest.beam conftest.$ac_ext
26381fi
26382
26383fi
26384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
26385$as_echo "$ol_cv_pthread_select_yields" >&6; }
26386
26387				if test $ol_cv_pthread_select_yields = cross ; then
26388					as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
26389				fi
26390
26391				if test $ol_cv_pthread_select_yields = yes ; then
26392					ol_with_yielding_select=yes
26393				fi
26394			fi
26395
26396						CPPFLAGS="$save_CPPFLAGS"
26397			LIBS="$save_LIBS"
26398		else
26399			as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
26400		fi
26401	fi
26402
26403	if test $ol_with_threads = posix ; then
26404		as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
26405	fi
26406	;;
26407esac
26408
26409case $ol_with_threads in auto | yes | mach)
26410
26411		for ac_header in mach/cthreads.h cthreads.h
26412do :
26413  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26414ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26415if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26416  cat >>confdefs.h <<_ACEOF
26417#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26418_ACEOF
26419
26420fi
26421
26422done
26423
26424	if test $ac_cv_header_mach_cthreads_h = yes ; then
26425		ol_with_threads=found
26426
26427				ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
26428if test "x$ac_cv_func_cthread_fork" = xyes; then :
26429  ol_link_threads=yes
26430fi
26431
26432
26433		if test $ol_link_threads = no ; then
26434									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
26435$as_echo_n "checking for cthread_fork with -all_load... " >&6; }
26436if ${ol_cv_cthread_all_load+:} false; then :
26437  $as_echo_n "(cached) " >&6
26438else
26439
26440								save_LIBS="$LIBS"
26441				LIBS="-all_load $LIBS"
26442				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26443/* end confdefs.h.  */
26444#include <mach/cthreads.h>
26445int
26446main ()
26447{
26448
26449					cthread_fork((void *)0, (void *)0);
26450
26451  ;
26452  return 0;
26453}
26454_ACEOF
26455if ac_fn_c_try_link "$LINENO"; then :
26456  ol_cv_cthread_all_load=yes
26457else
26458  ol_cv_cthread_all_load=no
26459fi
26460rm -f core conftest.err conftest.$ac_objext \
26461    conftest$ac_exeext conftest.$ac_ext
26462								LIBS="$save_LIBS"
26463
26464fi
26465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
26466$as_echo "$ol_cv_cthread_all_load" >&6; }
26467
26468			if test $ol_cv_cthread_all_load = yes ; then
26469				LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
26470				ol_link_threads=mach
26471				ol_with_threads=found
26472			fi
26473		fi
26474
26475	elif test $ac_cv_header_cthreads_h = yes ; then
26476
26477		ol_with_threads=found
26478
26479				save_LIBS="$LIBS"
26480		LIBS="$LIBS -lthreads"
26481		ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
26482if test "x$ac_cv_func_cthread_fork" = xyes; then :
26483  ol_link_threads=yes
26484fi
26485
26486		LIBS="$save_LIBS"
26487
26488		if test $ol_link_threads = yes ; then
26489			LTHREAD_LIBS="-lthreads"
26490			ol_link_threads=mach
26491			ol_with_threads=found
26492		else
26493			as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
26494		fi
26495
26496	elif test $ol_with_threads = mach ; then
26497		as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
26498	fi
26499
26500	if test $ol_link_threads = mach ; then
26501
26502$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
26503
26504	elif test $ol_with_threads = found ; then
26505		as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
26506	fi
26507	;;
26508esac
26509
26510case $ol_with_threads in auto | yes | pth)
26511
26512	for ac_header in pth.h
26513do :
26514  ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
26515if test "x$ac_cv_header_pth_h" = xyes; then :
26516  cat >>confdefs.h <<_ACEOF
26517#define HAVE_PTH_H 1
26518_ACEOF
26519
26520fi
26521
26522done
26523
26524
26525	if test $ac_cv_header_pth_h = yes ; then
26526		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
26527$as_echo_n "checking for pth_version in -lpth... " >&6; }
26528if ${ac_cv_lib_pth_pth_version+:} false; then :
26529  $as_echo_n "(cached) " >&6
26530else
26531  ac_check_lib_save_LIBS=$LIBS
26532LIBS="-lpth  $LIBS"
26533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26534/* end confdefs.h.  */
26535
26536/* Override any GCC internal prototype to avoid an error.
26537   Use char because int might match the return type of a GCC
26538   builtin and then its argument prototype would still apply.  */
26539#ifdef __cplusplus
26540extern "C"
26541#endif
26542char pth_version ();
26543int
26544main ()
26545{
26546return pth_version ();
26547  ;
26548  return 0;
26549}
26550_ACEOF
26551if ac_fn_c_try_link "$LINENO"; then :
26552  ac_cv_lib_pth_pth_version=yes
26553else
26554  ac_cv_lib_pth_pth_version=no
26555fi
26556rm -f core conftest.err conftest.$ac_objext \
26557    conftest$ac_exeext conftest.$ac_ext
26558LIBS=$ac_check_lib_save_LIBS
26559fi
26560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
26561$as_echo "$ac_cv_lib_pth_pth_version" >&6; }
26562if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
26563  have_pth=yes
26564else
26565  have_pth=no
26566fi
26567
26568
26569		if test $have_pth = yes ; then
26570
26571$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
26572
26573			LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26574			ol_link_threads=pth
26575			ol_with_threads=found
26576
26577			if test x$ol_with_yielding_select = xauto ; then
26578				ol_with_yielding_select=yes
26579			fi
26580		fi
26581	fi
26582	;;
26583esac
26584
26585case $ol_with_threads in auto | yes | lwp)
26586
26587		for ac_header in thread.h synch.h
26588do :
26589  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26590ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26591if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26592  cat >>confdefs.h <<_ACEOF
26593#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26594_ACEOF
26595
26596fi
26597
26598done
26599
26600	if test $ac_cv_header_thread_h = yes &&
26601	   test $ac_cv_header_synch_h = yes ; then
26602		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
26603$as_echo_n "checking for thr_create in -lthread... " >&6; }
26604if ${ac_cv_lib_thread_thr_create+:} false; then :
26605  $as_echo_n "(cached) " >&6
26606else
26607  ac_check_lib_save_LIBS=$LIBS
26608LIBS="-lthread  $LIBS"
26609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26610/* end confdefs.h.  */
26611
26612/* Override any GCC internal prototype to avoid an error.
26613   Use char because int might match the return type of a GCC
26614   builtin and then its argument prototype would still apply.  */
26615#ifdef __cplusplus
26616extern "C"
26617#endif
26618char thr_create ();
26619int
26620main ()
26621{
26622return thr_create ();
26623  ;
26624  return 0;
26625}
26626_ACEOF
26627if ac_fn_c_try_link "$LINENO"; then :
26628  ac_cv_lib_thread_thr_create=yes
26629else
26630  ac_cv_lib_thread_thr_create=no
26631fi
26632rm -f core conftest.err conftest.$ac_objext \
26633    conftest$ac_exeext conftest.$ac_ext
26634LIBS=$ac_check_lib_save_LIBS
26635fi
26636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
26637$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
26638if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
26639  have_thr=yes
26640else
26641  have_thr=no
26642fi
26643
26644
26645		if test $have_thr = yes ; then
26646
26647$as_echo "#define HAVE_THR 1" >>confdefs.h
26648
26649			LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26650			ol_link_threads=thr
26651
26652			if test x$ol_with_yielding_select = xauto ; then
26653				ol_with_yielding_select=yes
26654			fi
26655
26656						for ac_func in \
26657				thr_setconcurrency \
26658				thr_getconcurrency \
26659
26660do :
26661  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26662ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26663if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26664  cat >>confdefs.h <<_ACEOF
26665#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26666_ACEOF
26667
26668fi
26669done
26670
26671		fi
26672	fi
26673
26674		for ac_header in lwp/lwp.h
26675do :
26676  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
26677if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
26678  cat >>confdefs.h <<_ACEOF
26679#define HAVE_LWP_LWP_H 1
26680_ACEOF
26681
26682fi
26683
26684done
26685
26686	if test $ac_cv_header_lwp_lwp_h = yes ; then
26687		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
26688$as_echo_n "checking for lwp_create in -llwp... " >&6; }
26689if ${ac_cv_lib_lwp_lwp_create+:} false; then :
26690  $as_echo_n "(cached) " >&6
26691else
26692  ac_check_lib_save_LIBS=$LIBS
26693LIBS="-llwp  $LIBS"
26694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26695/* end confdefs.h.  */
26696
26697/* Override any GCC internal prototype to avoid an error.
26698   Use char because int might match the return type of a GCC
26699   builtin and then its argument prototype would still apply.  */
26700#ifdef __cplusplus
26701extern "C"
26702#endif
26703char lwp_create ();
26704int
26705main ()
26706{
26707return lwp_create ();
26708  ;
26709  return 0;
26710}
26711_ACEOF
26712if ac_fn_c_try_link "$LINENO"; then :
26713  ac_cv_lib_lwp_lwp_create=yes
26714else
26715  ac_cv_lib_lwp_lwp_create=no
26716fi
26717rm -f core conftest.err conftest.$ac_objext \
26718    conftest$ac_exeext conftest.$ac_ext
26719LIBS=$ac_check_lib_save_LIBS
26720fi
26721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
26722$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
26723if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
26724  have_lwp=yes
26725else
26726  have_lwp=no
26727fi
26728
26729
26730		if test $have_lwp = yes ; then
26731
26732$as_echo "#define HAVE_LWP 1" >>confdefs.h
26733
26734			LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26735			ol_link_threads=lwp
26736
26737			if test x$ol_with_yielding_select = xauto ; then
26738				ol_with_yielding_select=no
26739			fi
26740		fi
26741	fi
26742	;;
26743esac
26744
26745if test $ol_with_yielding_select = yes ; then
26746
26747$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
26748
26749fi
26750
26751if test $ol_with_threads = manual ; then
26752		ol_link_threads=yes
26753
26754	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
26755$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26756
26757	for ac_header in pthread.h sched.h
26758do :
26759  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26760ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26761if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26762  cat >>confdefs.h <<_ACEOF
26763#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26764_ACEOF
26765
26766fi
26767
26768done
26769
26770	for ac_func in sched_yield pthread_yield
26771do :
26772  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26773ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26774if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26775  cat >>confdefs.h <<_ACEOF
26776#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26777_ACEOF
26778
26779fi
26780done
26781
26782
26783	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
26784$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
26785if ${ol_cv_header_linux_threads+:} false; then :
26786  $as_echo_n "(cached) " >&6
26787else
26788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26789/* end confdefs.h.  */
26790#include <pthread.h>
26791_ACEOF
26792if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26793  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
26794  ol_cv_header_linux_threads=yes
26795else
26796  ol_cv_header_linux_threads=no
26797fi
26798rm -f conftest*
26799
26800
26801fi
26802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
26803$as_echo "$ol_cv_header_linux_threads" >&6; }
26804	if test $ol_cv_header_linux_threads = yes; then
26805
26806$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
26807
26808	fi
26809
26810
26811	for ac_header in mach/cthreads.h
26812do :
26813  ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
26814if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
26815  cat >>confdefs.h <<_ACEOF
26816#define HAVE_MACH_CTHREADS_H 1
26817_ACEOF
26818
26819fi
26820
26821done
26822
26823	for ac_header in lwp/lwp.h
26824do :
26825  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
26826if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
26827  cat >>confdefs.h <<_ACEOF
26828#define HAVE_LWP_LWP_H 1
26829_ACEOF
26830
26831fi
26832
26833done
26834
26835	for ac_header in thread.h synch.h
26836do :
26837  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26838ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26839if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26840  cat >>confdefs.h <<_ACEOF
26841#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26842_ACEOF
26843
26844fi
26845
26846done
26847
26848fi
26849
26850if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26851
26852$as_echo "#define REENTRANT 1" >>confdefs.h
26853
26854
26855$as_echo "#define _REENTRANT 1" >>confdefs.h
26856
26857
26858$as_echo "#define THREAD_SAFE 1" >>confdefs.h
26859
26860
26861$as_echo "#define _THREAD_SAFE 1" >>confdefs.h
26862
26863
26864$as_echo "#define THREADSAFE 1" >>confdefs.h
26865
26866
26867$as_echo "#define _THREADSAFE 1" >>confdefs.h
26868
26869
26870$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
26871
26872
26873			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
26874$as_echo_n "checking for thread specific errno... " >&6; }
26875if ${ol_cv_errno_thread_specific+:} false; then :
26876  $as_echo_n "(cached) " >&6
26877else
26878
26879		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26880/* end confdefs.h.  */
26881#include <errno.h>
26882int
26883main ()
26884{
26885errno = 0;
26886  ;
26887  return 0;
26888}
26889_ACEOF
26890if ac_fn_c_try_link "$LINENO"; then :
26891  ol_cv_errno_thread_specific=yes
26892else
26893  ol_cv_errno_thread_specific=no
26894fi
26895rm -f core conftest.err conftest.$ac_objext \
26896    conftest$ac_exeext conftest.$ac_ext
26897
26898fi
26899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
26900$as_echo "$ol_cv_errno_thread_specific" >&6; }
26901
26902			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
26903$as_echo_n "checking for thread specific h_errno... " >&6; }
26904if ${ol_cv_h_errno_thread_specific+:} false; then :
26905  $as_echo_n "(cached) " >&6
26906else
26907
26908		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26909/* end confdefs.h.  */
26910#include <netdb.h>
26911int
26912main ()
26913{
26914h_errno = 0;
26915  ;
26916  return 0;
26917}
26918_ACEOF
26919if ac_fn_c_try_link "$LINENO"; then :
26920  ol_cv_h_errno_thread_specific=yes
26921else
26922  ol_cv_h_errno_thread_specific=no
26923fi
26924rm -f core conftest.err conftest.$ac_objext \
26925    conftest$ac_exeext conftest.$ac_ext
26926
26927fi
26928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
26929$as_echo "$ol_cv_h_errno_thread_specific" >&6; }
26930
26931	if test $ol_cv_errno_thread_specific != yes ||
26932	   test $ol_cv_h_errno_thread_specific != yes ; then
26933		LIBS="$LTHREAD_LIBS $LIBS"
26934		LTHREAD_LIBS=""
26935	fi
26936
26937fi
26938
26939if test $ol_link_threads = no ; then
26940	if test $ol_with_threads = yes ; then
26941		as_fn_error $? "no suitable thread support" "$LINENO" 5
26942	fi
26943
26944	if test $ol_with_threads = auto ; then
26945		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
26946$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
26947		ol_with_threads=no
26948	fi
26949
26950
26951$as_echo "#define NO_THREADS 1" >>confdefs.h
26952
26953	LTHREAD_LIBS=""
26954	BUILD_THREAD=no
26955else
26956	BUILD_THREAD=yes
26957fi
26958
26959if test $ol_link_threads != no ; then
26960
26961$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
26962
26963fi
26964
26965# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
26966case "$ol_with_threads" in
26967 no)
26968    ol_pthread_ok=no
26969
26970    ;;
26971 *)
26972    ol_found_pthreads=yes
26973    ;;
26974esac
26975
26976ac_ext=c
26977ac_cpp='$CPP $CPPFLAGS'
26978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26980ac_compiler_gnu=$ac_cv_c_compiler_gnu
26981
26982
26983    case "$ol_found_pthreads" in
26984     yes)
26985	saved_LIBS="$LIBS"
26986	LIBS="$LTHREAD_LIBS $LIBS"
26987	saved_CFLAGS="$CFLAGS"
26988	CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
26989	for ac_func in sem_timedwait
26990do :
26991  ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
26992if test "x$ac_cv_func_sem_timedwait" = xyes; then :
26993  cat >>confdefs.h <<_ACEOF
26994#define HAVE_SEM_TIMEDWAIT 1
26995_ACEOF
26996
26997fi
26998done
26999
27000	LIBS="$saved_LIBS"
27001	{ saved_LIBS=; unset saved_LIBS;}
27002	CFLAGS="$saved_CFLAGS"
27003	{ saved_CFLAGS=; unset saved_CFLAGS;}
27004	case "$ac_cv_func_sem_timedwait" in
27005	 yes)
27006	    PTHREAD_LIBS="$LTHREAD_LIBS"
27007	    have_pthreads=yes
27008	    # Bug 2332: With GCC we need to force a reference to libgcc_s
27009	    # (if libgcc_s exists) or the combination of
27010	    # threads + setuid + mlockall does not work on linux because
27011	    # thread cancellation fails to load libgcc_s with dlopen().
27012	    # We have to pass this all as linker options to avoid argument
27013	    # reordering by libtool.
27014	    case "$GCC$with_gnu_ld" in
27015	    yesyes)
27016		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lgcc_s" >&5
27017$as_echo_n "checking for exit in -lgcc_s... " >&6; }
27018if ${ac_cv_lib_gcc_s_exit+:} false; then :
27019  $as_echo_n "(cached) " >&6
27020else
27021  ac_check_lib_save_LIBS=$LIBS
27022LIBS="-lgcc_s  $LIBS"
27023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27024/* end confdefs.h.  */
27025
27026/* Override any GCC internal prototype to avoid an error.
27027   Use char because int might match the return type of a GCC
27028   builtin and then its argument prototype would still apply.  */
27029#ifdef __cplusplus
27030extern "C"
27031#endif
27032char exit ();
27033int
27034main ()
27035{
27036return exit ();
27037  ;
27038  return 0;
27039}
27040_ACEOF
27041if ac_fn_c_try_link "$LINENO"; then :
27042  ac_cv_lib_gcc_s_exit=yes
27043else
27044  ac_cv_lib_gcc_s_exit=no
27045fi
27046rm -f core conftest.err conftest.$ac_objext \
27047    conftest$ac_exeext conftest.$ac_ext
27048LIBS=$ac_check_lib_save_LIBS
27049fi
27050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc_s_exit" >&5
27051$as_echo "$ac_cv_lib_gcc_s_exit" >&6; }
27052if test "x$ac_cv_lib_gcc_s_exit" = xyes; then :
27053  PTHREAD_LIBS="$LTHREAD_LIBS -Wl,--no-as-needed,-lgcc_s,--as-needed"
27054fi
27055
27056		;;
27057	    esac
27058	esac
27059    esac
27060esac
27061
27062case "$have_pthreads" in
27063 yes)
27064    CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
27065    saved_LIBS="$LIBS"
27066    LIBS="$LTHREAD_LIBS $LIBS"
27067    saved_CFLAGS="$CFLAGS"
27068    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
27069    # The cast to long int works around a bug in the HP C Compiler
27070# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27071# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27072# This bug is HP SR number 8606223364.
27073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
27074$as_echo_n "checking size of pthread_t... " >&6; }
27075if ${ac_cv_sizeof_pthread_t+:} false; then :
27076  $as_echo_n "(cached) " >&6
27077else
27078  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
27079	    $ac_includes_default
27080	    #include <pthread.h>
27081
27082
27083"; then :
27084
27085else
27086  if test "$ac_cv_type_pthread_t" = yes; then
27087     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27089as_fn_error 77 "cannot compute sizeof (pthread_t)
27090See \`config.log' for more details" "$LINENO" 5; }
27091   else
27092     ac_cv_sizeof_pthread_t=0
27093   fi
27094fi
27095
27096fi
27097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
27098$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
27099
27100
27101
27102cat >>confdefs.h <<_ACEOF
27103#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
27104_ACEOF
27105
27106
27107    LIBISC_PTHREADS_NOTHREADS=pthreads
27108
27109$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
27110
27111    #
27112    # We'd like to use sigwait() too
27113    #
27114    ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
27115if test "x$ac_cv_func_sigwait" = xyes; then :
27116  have_sigwait=yes
27117else
27118  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
27119$as_echo_n "checking for sigwait in -lc... " >&6; }
27120if ${ac_cv_lib_c_sigwait+:} false; then :
27121  $as_echo_n "(cached) " >&6
27122else
27123  ac_check_lib_save_LIBS=$LIBS
27124LIBS="-lc  $LIBS"
27125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27126/* end confdefs.h.  */
27127
27128/* Override any GCC internal prototype to avoid an error.
27129   Use char because int might match the return type of a GCC
27130   builtin and then its argument prototype would still apply.  */
27131#ifdef __cplusplus
27132extern "C"
27133#endif
27134char sigwait ();
27135int
27136main ()
27137{
27138return sigwait ();
27139  ;
27140  return 0;
27141}
27142_ACEOF
27143if ac_fn_c_try_link "$LINENO"; then :
27144  ac_cv_lib_c_sigwait=yes
27145else
27146  ac_cv_lib_c_sigwait=no
27147fi
27148rm -f core conftest.err conftest.$ac_objext \
27149    conftest$ac_exeext conftest.$ac_ext
27150LIBS=$ac_check_lib_save_LIBS
27151fi
27152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
27153$as_echo "$ac_cv_lib_c_sigwait" >&6; }
27154if test "x$ac_cv_lib_c_sigwait" = xyes; then :
27155  have_sigwait=yes
27156else
27157  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
27158$as_echo_n "checking for sigwait in -lpthread... " >&6; }
27159if ${ac_cv_lib_pthread_sigwait+:} false; then :
27160  $as_echo_n "(cached) " >&6
27161else
27162  ac_check_lib_save_LIBS=$LIBS
27163LIBS="-lpthread  $LIBS"
27164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27165/* end confdefs.h.  */
27166
27167/* Override any GCC internal prototype to avoid an error.
27168   Use char because int might match the return type of a GCC
27169   builtin and then its argument prototype would still apply.  */
27170#ifdef __cplusplus
27171extern "C"
27172#endif
27173char sigwait ();
27174int
27175main ()
27176{
27177return sigwait ();
27178  ;
27179  return 0;
27180}
27181_ACEOF
27182if ac_fn_c_try_link "$LINENO"; then :
27183  ac_cv_lib_pthread_sigwait=yes
27184else
27185  ac_cv_lib_pthread_sigwait=no
27186fi
27187rm -f core conftest.err conftest.$ac_objext \
27188    conftest$ac_exeext conftest.$ac_ext
27189LIBS=$ac_check_lib_save_LIBS
27190fi
27191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
27192$as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
27193if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
27194  have_sigwait=yes
27195else
27196  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
27197$as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
27198if ${ac_cv_lib_pthread__Psigwait+:} false; then :
27199  $as_echo_n "(cached) " >&6
27200else
27201  ac_check_lib_save_LIBS=$LIBS
27202LIBS="-lpthread  $LIBS"
27203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27204/* end confdefs.h.  */
27205
27206/* Override any GCC internal prototype to avoid an error.
27207   Use char because int might match the return type of a GCC
27208   builtin and then its argument prototype would still apply.  */
27209#ifdef __cplusplus
27210extern "C"
27211#endif
27212char _Psigwait ();
27213int
27214main ()
27215{
27216return _Psigwait ();
27217  ;
27218  return 0;
27219}
27220_ACEOF
27221if ac_fn_c_try_link "$LINENO"; then :
27222  ac_cv_lib_pthread__Psigwait=yes
27223else
27224  ac_cv_lib_pthread__Psigwait=no
27225fi
27226rm -f core conftest.err conftest.$ac_objext \
27227    conftest$ac_exeext conftest.$ac_ext
27228LIBS=$ac_check_lib_save_LIBS
27229fi
27230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
27231$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
27232if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
27233  have_sigwait=yes
27234else
27235  have_sigwait=no
27236
27237fi
27238
27239
27240fi
27241
27242
27243fi
27244
27245
27246fi
27247
27248    case "$host:$have_sigwait" in
27249     *-freebsd*:no)
27250	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
27251$as_echo_n "checking for sigwait in -lc_r... " >&6; }
27252if ${ac_cv_lib_c_r_sigwait+:} false; then :
27253  $as_echo_n "(cached) " >&6
27254else
27255  ac_check_lib_save_LIBS=$LIBS
27256LIBS="-lc_r  $LIBS"
27257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27258/* end confdefs.h.  */
27259
27260/* Override any GCC internal prototype to avoid an error.
27261   Use char because int might match the return type of a GCC
27262   builtin and then its argument prototype would still apply.  */
27263#ifdef __cplusplus
27264extern "C"
27265#endif
27266char sigwait ();
27267int
27268main ()
27269{
27270return sigwait ();
27271  ;
27272  return 0;
27273}
27274_ACEOF
27275if ac_fn_c_try_link "$LINENO"; then :
27276  ac_cv_lib_c_r_sigwait=yes
27277else
27278  ac_cv_lib_c_r_sigwait=no
27279fi
27280rm -f core conftest.err conftest.$ac_objext \
27281    conftest$ac_exeext conftest.$ac_ext
27282LIBS=$ac_check_lib_save_LIBS
27283fi
27284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
27285$as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
27286if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
27287  have_sigwait=yes
27288
27289fi
27290
27291    esac
27292    case "$have_sigwait" in
27293     yes)
27294	ac_cv_func_sigwait=yes
27295
27296$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
27297
27298    esac
27299
27300    for ac_func in pthread_attr_getstacksize
27301do :
27302  ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
27303if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
27304  cat >>confdefs.h <<_ACEOF
27305#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
27306_ACEOF
27307
27308fi
27309done
27310
27311    for ac_func in pthread_attr_setstacksize sysconf
27312do :
27313  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27314ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27315if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27316  cat >>confdefs.h <<_ACEOF
27317#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27318_ACEOF
27319
27320fi
27321done
27322
27323
27324    case "$host" in
27325     *-freebsd5.[012]|*-freebsd5.[012].*)
27326	;;
27327     *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
27328
27329$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
27330
27331	;;
27332     *-bsdi3.*|*-bsdi4.0*)
27333
27334$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
27335
27336	;;
27337     *-linux*)
27338
27339$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
27340
27341	;;
27342     *-solaris*)
27343	$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
27344
27345	for ac_func in pthread_setconcurrency
27346do :
27347  ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
27348if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
27349  cat >>confdefs.h <<_ACEOF
27350#define HAVE_PTHREAD_SETCONCURRENCY 1
27351_ACEOF
27352
27353fi
27354done
27355
27356	case "$ac_cv_func_pthread_setconcurrency" in
27357	 yes)
27358
27359$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
27360
27361	esac
27362	;;
27363     *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
27364
27365$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
27366
27367	;;
27368    esac
27369    hack_shutup_pthreadonceinit=no
27370    case "$host" in
27371     *-aix5.[123].*)
27372	hack_shutup_pthreadonceinit=yes
27373	;;
27374     *-solaris2.[89])
27375	hack_shutup_pthreadonceinit=yes
27376	;;
27377     *-solaris2.1[0-9])
27378	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
27379$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
27380if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
27381  $as_echo_n "(cached) " >&6
27382else
27383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27384/* end confdefs.h.  */
27385
27386			#include <pthread.h>
27387
27388int
27389main ()
27390{
27391
27392		        static pthread_once_t once_test =
27393						PTHREAD_ONCE_INIT;
27394
27395
27396  ;
27397  return 0;
27398}
27399_ACEOF
27400if ac_fn_c_try_compile "$LINENO"; then :
27401  ntp_cv_braces_around_pthread_once_init=no
27402else
27403  ntp_cv_braces_around_pthread_once_init=yes
27404
27405fi
27406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27407
27408fi
27409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
27410$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
27411	case "$ntp_cv_braces_around_pthread_once_init" in
27412	 yes)
27413	    hack_shutup_pthreadonceinit=yes
27414	esac
27415	;;
27416    esac
27417    case "$hack_shutup_pthreadonceinit" in
27418     yes)
27419
27420$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
27421
27422    esac
27423    LIBS="$saved_LIBS"
27424    { saved_LIBS=; unset saved_LIBS;}
27425    CFLAGS="$saved_CFLAGS"
27426    { saved_CFLAGS=; unset saved_CFLAGS;}
27427    ;;
27428 *)
27429    LIBISC_PTHREADS_NOTHREADS=nothreads
27430    ;;
27431esac
27432
27433 if test "$have_pthreads" != "no"; then
27434  PTHREADS_TRUE=
27435  PTHREADS_FALSE='#'
27436else
27437  PTHREADS_TRUE='#'
27438  PTHREADS_FALSE=
27439fi
27440
27441
27442
27443
27444
27445
27446
27447case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
27448 no:yes)
27449    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
27450$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
27451if ${ntp_cv_vsnprintf_percent_m+:} false; then :
27452  $as_echo_n "(cached) " >&6
27453else
27454  if test "$cross_compiling" = yes; then :
27455  ntp_cv_vsnprintf_percent_m=no
27456
27457else
27458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27459/* end confdefs.h.  */
27460
27461		    #include <stdarg.h>
27462		    #include <errno.h>
27463		    #include <stdio.h>
27464		    #include <string.h>
27465
27466		    int call_vsnprintf(
27467			    char *	dst,
27468			    size_t	sz,
27469			    const char *fmt,
27470			    ...
27471			    );
27472
27473		    int call_vsnprintf(
27474			    char *	dst,
27475			    size_t	sz,
27476			    const char *fmt,
27477			    ...
27478			    )
27479		    {
27480			    va_list	ap;
27481			    int		rc;
27482
27483			    va_start(ap, fmt);
27484			    rc = vsnprintf(dst, sz, fmt, ap);
27485			    va_end(ap);
27486
27487			    return rc;
27488		    }
27489
27490int
27491main ()
27492{
27493
27494		    char	sbuf[512];
27495		    char	pbuf[512];
27496		    int		slen;
27497
27498		    strcpy(sbuf, strerror(ENOENT));
27499		    errno = ENOENT;
27500		    slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
27501					  "wrong");
27502		    return strcmp(sbuf, pbuf);
27503
27504
27505  ;
27506  return 0;
27507}
27508_ACEOF
27509if ac_fn_c_try_run "$LINENO"; then :
27510  ntp_cv_vsnprintf_percent_m=yes
27511else
27512  ntp_cv_vsnprintf_percent_m=no
27513fi
27514rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27515  conftest.$ac_objext conftest.beam conftest.$ac_ext
27516fi
27517
27518
27519fi
27520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
27521$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
27522    case "$ntp_cv_vsnprintf_percent_m" in
27523     yes)
27524
27525$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
27526
27527    esac
27528esac
27529
27530for ac_header in sys/clockctl.h
27531do :
27532  ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
27533if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
27534  cat >>confdefs.h <<_ACEOF
27535#define HAVE_SYS_CLOCKCTL_H 1
27536_ACEOF
27537
27538fi
27539
27540done
27541
27542
27543# Check whether --enable-clockctl was given.
27544if test "${enable_clockctl+set}" = set; then :
27545  enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
27546else
27547  ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
27548
27549fi
27550
27551
27552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
27553$as_echo_n "checking if we should use /dev/clockctl... " >&6; }
27554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
27555$as_echo "$ntp_use_dev_clockctl" >&6; }
27556
27557
27558for ac_header in sys/capability.h sys/prctl.h
27559do :
27560  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27561ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27562if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27563  cat >>confdefs.h <<_ACEOF
27564#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27565_ACEOF
27566
27567fi
27568
27569done
27570
27571
27572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
27573$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
27574
27575case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
27576 yesyes)
27577    case "$host" in
27578     mips-sgi-irix*)
27579	ntp_have_linuxcaps=no
27580	;;
27581     *) ntp_have_linuxcaps=yes
27582	;;
27583    esac
27584    ;;
27585 *)
27586    ntp_have_linuxcaps=no
27587    ;;
27588esac
27589
27590# Check whether --enable-linuxcaps was given.
27591if test "${enable_linuxcaps+set}" = set; then :
27592  enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
27593
27594fi
27595
27596
27597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
27598$as_echo "$ntp_have_linuxcaps" >&6; }
27599
27600case "$ntp_have_linuxcaps" in
27601 yes)
27602
27603$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
27604
27605    LIBS="$LIBS -lcap"
27606    ;;
27607esac
27608
27609
27610for ac_header in priv.h
27611do :
27612  ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
27613if test "x$ac_cv_header_priv_h" = xyes; then :
27614  cat >>confdefs.h <<_ACEOF
27615#define HAVE_PRIV_H 1
27616_ACEOF
27617
27618fi
27619
27620done
27621
27622
27623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
27624$as_echo_n "checking if we have solaris privileges... " >&6; }
27625
27626case "$ac_cv_header_priv_h" in
27627 yes)
27628    case "$host" in
27629     *-solaris*)
27630	ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
27631if test "x$ac_cv_func_setppriv" = xyes; then :
27632  ntp_have_solarisprivs=yes
27633else
27634  ntp_have_solarisprivs=no
27635
27636fi
27637
27638	;;
27639    esac
27640esac
27641
27642# Check whether --enable-solarisprivs was given.
27643if test "${enable_solarisprivs+set}" = set; then :
27644  enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
27645
27646fi
27647
27648
27649
27650case "$ntp_have_solarisprivs" in
27651 yes)
27652
27653$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
27654
27655esac
27656
27657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
27658$as_echo "$ntp_have_solarisprivs" >&6; }
27659
27660case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
27661 *yes*)
27662
27663$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h
27664
27665esac
27666
27667case "$host" in
27668 *-*-darwin*)
27669    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
27670$as_echo_n "checking for library containing res_9_init... " >&6; }
27671if ${ac_cv_search_res_9_init+:} false; then :
27672  $as_echo_n "(cached) " >&6
27673else
27674  ac_func_search_save_LIBS=$LIBS
27675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27676/* end confdefs.h.  */
27677
27678/* Override any GCC internal prototype to avoid an error.
27679   Use char because int might match the return type of a GCC
27680   builtin and then its argument prototype would still apply.  */
27681#ifdef __cplusplus
27682extern "C"
27683#endif
27684char res_9_init ();
27685int
27686main ()
27687{
27688return res_9_init ();
27689  ;
27690  return 0;
27691}
27692_ACEOF
27693for ac_lib in '' resolv; do
27694  if test -z "$ac_lib"; then
27695    ac_res="none required"
27696  else
27697    ac_res=-l$ac_lib
27698    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27699  fi
27700  if ac_fn_c_try_link "$LINENO"; then :
27701  ac_cv_search_res_9_init=$ac_res
27702fi
27703rm -f core conftest.err conftest.$ac_objext \
27704    conftest$ac_exeext
27705  if ${ac_cv_search_res_9_init+:} false; then :
27706  break
27707fi
27708done
27709if ${ac_cv_search_res_9_init+:} false; then :
27710
27711else
27712  ac_cv_search_res_9_init=no
27713fi
27714rm conftest.$ac_ext
27715LIBS=$ac_func_search_save_LIBS
27716fi
27717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
27718$as_echo "$ac_cv_search_res_9_init" >&6; }
27719ac_res=$ac_cv_search_res_9_init
27720if test "$ac_res" != no; then :
27721  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27722
27723fi
27724
27725    ;;
27726 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
27727$as_echo_n "checking for library containing res_init... " >&6; }
27728if ${ac_cv_search_res_init+:} false; then :
27729  $as_echo_n "(cached) " >&6
27730else
27731  ac_func_search_save_LIBS=$LIBS
27732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27733/* end confdefs.h.  */
27734
27735/* Override any GCC internal prototype to avoid an error.
27736   Use char because int might match the return type of a GCC
27737   builtin and then its argument prototype would still apply.  */
27738#ifdef __cplusplus
27739extern "C"
27740#endif
27741char res_init ();
27742int
27743main ()
27744{
27745return res_init ();
27746  ;
27747  return 0;
27748}
27749_ACEOF
27750for ac_lib in '' resolv; do
27751  if test -z "$ac_lib"; then
27752    ac_res="none required"
27753  else
27754    ac_res=-l$ac_lib
27755    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27756  fi
27757  if ac_fn_c_try_link "$LINENO"; then :
27758  ac_cv_search_res_init=$ac_res
27759fi
27760rm -f core conftest.err conftest.$ac_objext \
27761    conftest$ac_exeext
27762  if ${ac_cv_search_res_init+:} false; then :
27763  break
27764fi
27765done
27766if ${ac_cv_search_res_init+:} false; then :
27767
27768else
27769  ac_cv_search_res_init=no
27770fi
27771rm conftest.$ac_ext
27772LIBS=$ac_func_search_save_LIBS
27773fi
27774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
27775$as_echo "$ac_cv_search_res_init" >&6; }
27776ac_res=$ac_cv_search_res_init
27777if test "$ac_res" != no; then :
27778  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27779
27780fi
27781
27782    ;;
27783esac
27784for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
27785do :
27786  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27787ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
27788#  include <sys/types.h>
27789#endif
27790#ifdef HAVE_NETINET_IN_H
27791#  include <netinet/in.h>   /* inet_ functions / structs */
27792#endif
27793#ifdef HAVE_ARPA_NAMESER_H
27794#  include <arpa/nameser.h> /* DNS HEADER struct */
27795#endif
27796#ifdef HAVE_NETDB_H
27797#  include <netdb.h>
27798#endif
27799"
27800if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27801  cat >>confdefs.h <<_ACEOF
27802#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27803_ACEOF
27804
27805fi
27806
27807done
27808
27809
27810#HMS: Why do we do this check so "early"?
27811for ac_func in res_init
27812do :
27813  ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
27814if test "x$ac_cv_func_res_init" = xyes; then :
27815  cat >>confdefs.h <<_ACEOF
27816#define HAVE_RES_INIT 1
27817_ACEOF
27818
27819else
27820  for ac_func in __res_init
27821do :
27822  ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
27823if test "x$ac_cv_func___res_init" = xyes; then :
27824  cat >>confdefs.h <<_ACEOF
27825#define HAVE___RES_INIT 1
27826_ACEOF
27827
27828fi
27829done
27830
27831fi
27832done
27833
27834
27835# We also need -lsocket, but we have tested for that already.
27836ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27837if test "x$ac_cv_func_inet_ntop" = xyes; then :
27838
27839else
27840
27841$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
27842
27843fi
27844
27845ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27846if test "x$ac_cv_func_inet_pton" = xyes; then :
27847
27848else
27849
27850$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
27851
27852fi
27853
27854
27855ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27856if test "x$ac_cv_type_uintptr_t" = xyes; then :
27857
27858cat >>confdefs.h <<_ACEOF
27859#define HAVE_UINTPTR_T 1
27860_ACEOF
27861
27862
27863fi
27864ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
27865if test "x$ac_cv_type_int32" = xyes; then :
27866
27867cat >>confdefs.h <<_ACEOF
27868#define HAVE_INT32 1
27869_ACEOF
27870
27871
27872fi
27873ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
27874if test "x$ac_cv_type_u_int32" = xyes; then :
27875
27876cat >>confdefs.h <<_ACEOF
27877#define HAVE_U_INT32 1
27878_ACEOF
27879
27880
27881fi
27882
27883
27884
27885
27886case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
27887 no::yes)
27888    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
27889$as_echo_n "checking for int32 with DNS headers included... " >&6; }
27890if ${ntp_cv_type_int32_with_dns+:} false; then :
27891  $as_echo_n "(cached) " >&6
27892else
27893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27894/* end confdefs.h.  */
27895
27896		    #ifdef HAVE_ARPA_NAMESER_H
27897		    # include <arpa/nameser.h>
27898		    #endif
27899		    #include <resolv.h>
27900
27901int
27902main ()
27903{
27904
27905		    size_t cb = sizeof(int32);
27906
27907
27908  ;
27909  return 0;
27910}
27911_ACEOF
27912if ac_fn_c_try_compile "$LINENO"; then :
27913  ntp_cv_type_int32_with_dns=yes
27914else
27915  ntp_cv_type_int32_with_dns=no
27916
27917fi
27918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27919
27920fi
27921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
27922$as_echo "$ntp_cv_type_int32_with_dns" >&6; }
27923    case "$ntp_cv_type_int32_with_dns" in
27924     yes)
27925
27926$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
27927
27928    esac
27929esac
27930
27931case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
27932 no::yes)
27933    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
27934$as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
27935if ${ntp_cv_type_u_int32_with_dns+:} false; then :
27936  $as_echo_n "(cached) " >&6
27937else
27938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27939/* end confdefs.h.  */
27940
27941		    #ifdef HAVE_ARPA_NAMESER_H
27942		    # include <arpa/nameser.h>
27943		    #endif
27944		    #include <resolv.h>
27945
27946int
27947main ()
27948{
27949
27950		    size_t cb = sizeof(u_int32);
27951
27952
27953  ;
27954  return 0;
27955}
27956_ACEOF
27957if ac_fn_c_try_compile "$LINENO"; then :
27958  ntp_cv_type_u_int32_with_dns=yes
27959else
27960  ntp_cv_type_u_int32_with_dns=no
27961
27962fi
27963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27964
27965fi
27966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
27967$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
27968    case "$ntp_cv_type_u_int32_with_dns" in
27969     yes)
27970
27971$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
27972
27973    esac
27974esac
27975
27976for ac_header in sys/timepps.h
27977do :
27978  ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
27979	#ifdef HAVE_SYS_TIME_H
27980	# include <sys/time.h>
27981	#endif
27982	#ifdef HAVE_ERRNO_H
27983	# include <errno.h>
27984	#endif
27985
27986
27987"
27988if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
27989  cat >>confdefs.h <<_ACEOF
27990#define HAVE_SYS_TIMEPPS_H 1
27991_ACEOF
27992
27993fi
27994
27995done
27996
27997
27998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
27999$as_echo_n "checking for struct timespec... " >&6; }
28000if ${ntp_cv_struct_timespec+:} false; then :
28001  $as_echo_n "(cached) " >&6
28002else
28003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28004/* end confdefs.h.  */
28005
28006		#include <sys/time.h>
28007		/* Under SunOS, timespec is in sys/timepps.h,
28008		   which needs errno.h and FRAC */
28009		#ifdef HAVE_ERRNO_H
28010		# include <errno.h>
28011		#endif
28012		#ifdef HAVE_SYS_TIMEPPS_H
28013		# define FRAC 4294967296
28014		# include <sys/timepps.h>
28015		#endif
28016
28017int
28018main ()
28019{
28020
28021		struct timespec n;
28022
28023
28024  ;
28025  return 0;
28026}
28027_ACEOF
28028if ac_fn_c_try_compile "$LINENO"; then :
28029  ntp_cv_struct_timespec=yes
28030else
28031  ntp_cv_struct_timespec=no
28032
28033fi
28034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28035
28036fi
28037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
28038$as_echo "$ntp_cv_struct_timespec" >&6; }
28039case "$ntp_cv_struct_timespec" in
28040 yes)
28041
28042$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
28043
28044esac
28045
28046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
28047$as_echo_n "checking for struct ntptimeval... " >&6; }
28048if ${ntp_cv_struct_ntptimeval+:} false; then :
28049  $as_echo_n "(cached) " >&6
28050else
28051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28052/* end confdefs.h.  */
28053
28054		#include <sys/time.h>
28055		#include <sys/timex.h>
28056
28057int
28058main ()
28059{
28060
28061		struct ntptimeval n;
28062
28063
28064  ;
28065  return 0;
28066}
28067_ACEOF
28068if ac_fn_c_try_compile "$LINENO"; then :
28069  ntp_cv_struct_ntptimeval=yes
28070else
28071  ntp_cv_struct_ntptimeval=no
28072
28073fi
28074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28075
28076fi
28077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
28078$as_echo "$ntp_cv_struct_ntptimeval" >&6; }
28079case "$ntp_cv_struct_ntptimeval" in
28080 yes)
28081
28082$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
28083
28084esac
28085
28086for ac_header in md5.h
28087do :
28088  ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
28089	#ifdef HAVE_SYS_TYPES_H
28090	# include <sys/types.h>
28091	#endif
28092
28093
28094"
28095if test "x$ac_cv_header_md5_h" = xyes; then :
28096  cat >>confdefs.h <<_ACEOF
28097#define HAVE_MD5_H 1
28098_ACEOF
28099
28100fi
28101
28102done
28103
28104
28105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
28106$as_echo_n "checking for library containing MD5Init... " >&6; }
28107if ${ac_cv_search_MD5Init+:} false; then :
28108  $as_echo_n "(cached) " >&6
28109else
28110  ac_func_search_save_LIBS=$LIBS
28111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28112/* end confdefs.h.  */
28113
28114/* Override any GCC internal prototype to avoid an error.
28115   Use char because int might match the return type of a GCC
28116   builtin and then its argument prototype would still apply.  */
28117#ifdef __cplusplus
28118extern "C"
28119#endif
28120char MD5Init ();
28121int
28122main ()
28123{
28124return MD5Init ();
28125  ;
28126  return 0;
28127}
28128_ACEOF
28129for ac_lib in '' md5 md; do
28130  if test -z "$ac_lib"; then
28131    ac_res="none required"
28132  else
28133    ac_res=-l$ac_lib
28134    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28135  fi
28136  if ac_fn_c_try_link "$LINENO"; then :
28137  ac_cv_search_MD5Init=$ac_res
28138fi
28139rm -f core conftest.err conftest.$ac_objext \
28140    conftest$ac_exeext
28141  if ${ac_cv_search_MD5Init+:} false; then :
28142  break
28143fi
28144done
28145if ${ac_cv_search_MD5Init+:} false; then :
28146
28147else
28148  ac_cv_search_MD5Init=no
28149fi
28150rm conftest.$ac_ext
28151LIBS=$ac_func_search_save_LIBS
28152fi
28153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
28154$as_echo "$ac_cv_search_MD5Init" >&6; }
28155ac_res=$ac_cv_search_MD5Init
28156if test "$ac_res" != no; then :
28157  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28158
28159fi
28160
28161for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
28162do :
28163  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28164ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28165if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28166  cat >>confdefs.h <<_ACEOF
28167#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28168_ACEOF
28169
28170fi
28171done
28172
28173
28174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
28175$as_echo_n "checking for SIGIO... " >&6; }
28176if ${ntp_cv_hdr_def_sigio+:} false; then :
28177  $as_echo_n "(cached) " >&6
28178else
28179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28180/* end confdefs.h.  */
28181
28182	    #include <signal.h>
28183
28184	    #ifndef SIGIO
28185	    # error
28186	    #endif
28187
28188_ACEOF
28189if ac_fn_c_try_cpp "$LINENO"; then :
28190  ntp_cv_hdr_def_sigio=yes
28191else
28192  ntp_cv_hdr_def_sigio=no
28193
28194fi
28195rm -f conftest.err conftest.i conftest.$ac_ext
28196
28197fi
28198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
28199$as_echo "$ntp_cv_hdr_def_sigio" >&6; }
28200
28201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
28202$as_echo_n "checking if we want to use SIGIO... " >&6; }
28203ans=no
28204case "$ntp_cv_hdr_def_sigio" in
28205 yes)
28206    ans=yes
28207    case "$host" in
28208     alpha*-dec-osf4*|alpha*-dec-osf5*)
28209	ans=no
28210	;;
28211     *-convex-*)
28212	ans=no
28213	;;
28214     *-dec-*)
28215	ans=no
28216	;;
28217     *-pc-cygwin*)
28218	ans=no
28219	;;
28220     *-sni-sysv*)
28221	ans=no
28222	;;
28223     *-univel-sysv*)
28224	ans=no
28225	;;
28226     *-*-irix6*)
28227	ans=no
28228	;;
28229     *-*-freebsd*)
28230	ans=no
28231	;;
28232     *-*-*linux*)
28233	ans=no
28234	;;
28235     *-*-unicosmp*)
28236	ans=no
28237	;;
28238     *-*-kfreebsd*)
28239	ans=no
28240	;;
28241     m68k-*-mint*)
28242	ans=no
28243	;;
28244    esac
28245    ;;
28246esac
28247case "$ans" in
28248 yes)
28249
28250$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
28251
28252esac
28253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28254$as_echo "$ans" >&6; }
28255
28256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
28257$as_echo_n "checking for SIGPOLL... " >&6; }
28258if ${ntp_cv_hdr_def_sigpoll+:} false; then :
28259  $as_echo_n "(cached) " >&6
28260else
28261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28262/* end confdefs.h.  */
28263
28264	    #include <signal.h>
28265
28266	    #ifndef SIGPOLL
28267	    # error
28268	    #endif
28269
28270_ACEOF
28271if ac_fn_c_try_cpp "$LINENO"; then :
28272  ntp_cv_hdr_def_sigpoll=yes
28273else
28274  ntp_cv_hdr_def_sigpoll=no
28275
28276fi
28277rm -f conftest.err conftest.i conftest.$ac_ext
28278
28279fi
28280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
28281$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
28282
28283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
28284$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
28285ans=no
28286case "$ntp_cv_hdr_def_sigpoll" in
28287 yes)
28288    case "$host" in
28289     mips-sgi-irix*)
28290	ans=no
28291	;;
28292     vax-dec-bsd)
28293	ans=no
28294	;;
28295     *-pc-cygwin*)
28296	ans=no
28297	;;
28298     *-sni-sysv*)
28299	ans=no
28300	;;
28301     *-*-aix[4-9]*)
28302	# XXX Only verified thru AIX6
28303	ans=no
28304	;;
28305     *-*-hpux*)
28306	ans=no
28307	;;
28308     *-*-*linux*)
28309	ans=no
28310	;;
28311     *-*-osf*)
28312	ans=no
28313	;;
28314     *-*-qnx*)
28315	ans=no
28316	;;
28317     *-*-sunos*)
28318	ans=no
28319	;;
28320     *-*-solaris*)
28321	ans=no
28322	;;
28323     *-*-ultrix*)
28324	ans=no
28325	;;
28326     *-*-unicosmp*)
28327	ans=no
28328	;;
28329     *-*-kfreebsd*)
28330	ans=no
28331	;;
28332     *) ans=yes
28333	;;
28334    esac
28335    ;;
28336esac
28337case "$ans" in
28338 yes)
28339
28340$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
28341
28342esac
28343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28344$as_echo "$ans" >&6; }
28345
28346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
28347$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
28348ans=no
28349case "$ntp_cv_hdr_def_sigpoll" in
28350 yes)
28351    case "$host" in
28352     mips-sgi-irix*)
28353	ans=no
28354	;;
28355     vax-dec-bsd)
28356	ans=no
28357	;;
28358     *-pc-cygwin*)
28359	ans=no
28360	;;
28361     *-sni-sysv*)
28362	ans=no
28363	;;
28364     *-*-aix[4-9]*)
28365	# XXX Only verified thru AIX6
28366	ans=no
28367	;;
28368     *-*-hpux*)
28369	ans=no
28370	;;
28371     *-*-*linux*)
28372	ans=no
28373	;;
28374     *-*-osf*)
28375	ans=no
28376	;;
28377     *-*-sunos*)
28378	ans=no
28379	;;
28380     *-*-ultrix*)
28381	ans=no
28382	;;
28383     *-*-qnx*)
28384	ans=no
28385	;;
28386     *-*-unicosmp*)
28387	ans=no
28388	;;
28389     *-*-kfreebsd*)
28390	ans=no
28391	;;
28392     *) ans=yes
28393	;;
28394    esac
28395    ;;
28396esac
28397case "$ans" in
28398 yes)
28399
28400$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
28401
28402esac
28403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28404$as_echo "$ans" >&6; }
28405
28406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
28407$as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
28408if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
28409  $as_echo_n "(cached) " >&6
28410else
28411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28412/* end confdefs.h.  */
28413
28414		#include <sys/time.h>
28415
28416int
28417main ()
28418{
28419
28420		gettimeofday(0, 0);
28421		settimeofday(0, 0);
28422
28423
28424  ;
28425  return 0;
28426}
28427_ACEOF
28428if ac_fn_c_try_compile "$LINENO"; then :
28429  ntp_cv_func_Xettimeofday_nargs=2
28430else
28431  ntp_cv_func_Xettimeofday_nargs=1
28432
28433fi
28434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28435
28436fi
28437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
28438$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
28439case "$ntp_cv_func_Xettimeofday_nargs" in
28440 1)
28441
28442$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
28443
28444esac
28445
28446for ac_func in settimeofday
28447do :
28448  ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
28449if test "x$ac_cv_func_settimeofday" = xyes; then :
28450  cat >>confdefs.h <<_ACEOF
28451#define HAVE_SETTIMEOFDAY 1
28452_ACEOF
28453
28454else
28455
28456    case "$host" in
28457     *-*-mpeix*) ac_cv_func_settimeofday=yes
28458    esac
28459
28460fi
28461done
28462
28463
28464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
28465$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
28466ntp_warning='GRONK'
28467ans=none
28468case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
28469 yes*)
28470    ntp_warning=''
28471    ans='clock_settime()'
28472    ;;
28473 noyes*)
28474    ntp_warning='But clock_settime() would be better (if we had it)'
28475    ans='settimeofday()'
28476    ;;
28477 nonoyes)
28478    ntp_warning='Which is the worst of the three'
28479    ans='stime()'
28480    ;;
28481 *)
28482    case "$build" in
28483     $host)
28484	ntp_warning='Which leaves us with nothing to use!'
28485    esac
28486esac
28487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28488$as_echo "$ans" >&6; }
28489case "$ntp_warning" in
28490 '')
28491    ;;
28492 *)
28493    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
28494$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
28495    ;;
28496esac
28497
28498
28499LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
28500LIBS=$__LIBS
28501{ __LIBS=; unset __LIBS;}
28502
28503
28504
28505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
28506$as_echo_n "checking for deprecated --with-arlib... " >&6; }
28507
28508# Check whether --with-arlib was given.
28509if test "${with_arlib+set}" = set; then :
28510  withval=$with_arlib; ans=$withval
28511else
28512  ans=no
28513fi
28514
28515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28516$as_echo "$ans" >&6; }
28517
28518case "$ans" in
28519 yes)
28520    { $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
28521$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;}
28522    ;;
28523esac
28524
28525for ac_prog in gawk mawk nawk awk
28526do
28527  # Extract the first word of "$ac_prog", so it can be a program name with args.
28528set dummy $ac_prog; ac_word=$2
28529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28530$as_echo_n "checking for $ac_word... " >&6; }
28531if ${ac_cv_prog_AWK+:} false; then :
28532  $as_echo_n "(cached) " >&6
28533else
28534  if test -n "$AWK"; then
28535  ac_cv_prog_AWK="$AWK" # Let the user override the test.
28536else
28537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28538for as_dir in $PATH
28539do
28540  IFS=$as_save_IFS
28541  test -z "$as_dir" && as_dir=.
28542    for ac_exec_ext in '' $ac_executable_extensions; do
28543  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28544    ac_cv_prog_AWK="$ac_prog"
28545    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28546    break 2
28547  fi
28548done
28549  done
28550IFS=$as_save_IFS
28551
28552fi
28553fi
28554AWK=$ac_cv_prog_AWK
28555if test -n "$AWK"; then
28556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
28557$as_echo "$AWK" >&6; }
28558else
28559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28560$as_echo "no" >&6; }
28561fi
28562
28563
28564  test -n "$AWK" && break
28565done
28566
28567{ ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
28568				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
28569$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
28570set x ${MAKE-make}
28571ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
28572if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
28573  $as_echo_n "(cached) " >&6
28574else
28575  cat >conftest.make <<\_ACEOF
28576SHELL = /bin/sh
28577all:
28578	@echo '@@@%%%=$(MAKE)=@@@%%%'
28579_ACEOF
28580# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
28581case `${MAKE-make} -f conftest.make 2>/dev/null` in
28582  *@@@%%%=?*=@@@%%%*)
28583    eval ac_cv_prog_make_${ac_make}_set=yes;;
28584  *)
28585    eval ac_cv_prog_make_${ac_make}_set=no;;
28586esac
28587rm -f conftest.make
28588fi
28589if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
28590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28591$as_echo "yes" >&6; }
28592  SET_MAKE=
28593else
28594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28595$as_echo "no" >&6; }
28596  SET_MAKE="MAKE=${MAKE-make}"
28597fi
28598
28599
28600
28601
28602
28603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
28604$as_echo_n "checking whether ln -s works... " >&6; }
28605LN_S=$as_ln_s
28606if test "$LN_S" = "ln -s"; then
28607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28608$as_echo "yes" >&6; }
28609else
28610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
28611$as_echo "no, using $LN_S" >&6; }
28612fi
28613
28614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
28615$as_echo_n "checking for library containing strerror... " >&6; }
28616if ${ac_cv_search_strerror+:} false; then :
28617  $as_echo_n "(cached) " >&6
28618else
28619  ac_func_search_save_LIBS=$LIBS
28620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28621/* end confdefs.h.  */
28622
28623/* Override any GCC internal prototype to avoid an error.
28624   Use char because int might match the return type of a GCC
28625   builtin and then its argument prototype would still apply.  */
28626#ifdef __cplusplus
28627extern "C"
28628#endif
28629char strerror ();
28630int
28631main ()
28632{
28633return strerror ();
28634  ;
28635  return 0;
28636}
28637_ACEOF
28638for ac_lib in '' cposix; do
28639  if test -z "$ac_lib"; then
28640    ac_res="none required"
28641  else
28642    ac_res=-l$ac_lib
28643    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28644  fi
28645  if ac_fn_c_try_link "$LINENO"; then :
28646  ac_cv_search_strerror=$ac_res
28647fi
28648rm -f core conftest.err conftest.$ac_objext \
28649    conftest$ac_exeext
28650  if ${ac_cv_search_strerror+:} false; then :
28651  break
28652fi
28653done
28654if ${ac_cv_search_strerror+:} false; then :
28655
28656else
28657  ac_cv_search_strerror=no
28658fi
28659rm conftest.$ac_ext
28660LIBS=$ac_func_search_save_LIBS
28661fi
28662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
28663$as_echo "$ac_cv_search_strerror" >&6; }
28664ac_res=$ac_cv_search_strerror
28665if test "$ac_res" != no; then :
28666  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28667
28668fi
28669
28670
28671
28672# Extract the first word of "perl", so it can be a program name with args.
28673set dummy perl; ac_word=$2
28674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28675$as_echo_n "checking for $ac_word... " >&6; }
28676if ${ac_cv_path_PATH_PERL+:} false; then :
28677  $as_echo_n "(cached) " >&6
28678else
28679  case $PATH_PERL in
28680  [\\/]* | ?:[\\/]*)
28681  ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
28682  ;;
28683  *)
28684  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28685for as_dir in $PATH
28686do
28687  IFS=$as_save_IFS
28688  test -z "$as_dir" && as_dir=.
28689    for ac_exec_ext in '' $ac_executable_extensions; do
28690  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28691    ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
28692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28693    break 2
28694  fi
28695done
28696  done
28697IFS=$as_save_IFS
28698
28699  ;;
28700esac
28701fi
28702PATH_PERL=$ac_cv_path_PATH_PERL
28703if test -n "$PATH_PERL"; then
28704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
28705$as_echo "$PATH_PERL" >&6; }
28706else
28707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28708$as_echo "no" >&6; }
28709fi
28710
28711
28712{ ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
28713# Extract the first word of "test", so it can be a program name with args.
28714set dummy test; ac_word=$2
28715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28716$as_echo_n "checking for $ac_word... " >&6; }
28717if ${ac_cv_path_PATH_TEST+:} false; then :
28718  $as_echo_n "(cached) " >&6
28719else
28720  case $PATH_TEST in
28721  [\\/]* | ?:[\\/]*)
28722  ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
28723  ;;
28724  *)
28725  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28726for as_dir in $PATH
28727do
28728  IFS=$as_save_IFS
28729  test -z "$as_dir" && as_dir=.
28730    for ac_exec_ext in '' $ac_executable_extensions; do
28731  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28732    ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
28733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28734    break 2
28735  fi
28736done
28737  done
28738IFS=$as_save_IFS
28739
28740  ;;
28741esac
28742fi
28743PATH_TEST=$ac_cv_path_PATH_TEST
28744if test -n "$PATH_TEST"; then
28745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
28746$as_echo "$PATH_TEST" >&6; }
28747else
28748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28749$as_echo "no" >&6; }
28750fi
28751
28752
28753{ ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
28754test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh
28755
28756
28757# Check whether --with-net-snmp-config was given.
28758if test "${with_net_snmp_config+set}" = set; then :
28759  withval=$with_net_snmp_config; ans=$withval
28760else
28761  ans=yes
28762
28763fi
28764
28765case "$ans" in
28766 no)
28767    ;;
28768 yes)
28769    ans=net-snmp-config
28770    ;;
28771 /*)
28772    ;;
28773 */*)
28774    as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
28775    ;;
28776 *)
28777    ;;
28778esac
28779PROG_NET_SNMP_CONFIG=$ans
28780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
28781$as_echo_n "checking for net-snmp-config path... " >&6; }
28782case "$PROG_NET_SNMP_CONFIG" in
28783 no) ;;
28784 /*)
28785    PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
28786    ;;
28787 *)
28788    # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
28789set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
28790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28791$as_echo_n "checking for $ac_word... " >&6; }
28792if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
28793  $as_echo_n "(cached) " >&6
28794else
28795  case $PATH_NET_SNMP_CONFIG in
28796  [\\/]* | ?:[\\/]*)
28797  ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
28798  ;;
28799  *)
28800  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28801for as_dir in $PATH
28802do
28803  IFS=$as_save_IFS
28804  test -z "$as_dir" && as_dir=.
28805    for ac_exec_ext in '' $ac_executable_extensions; do
28806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28807    ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28809    break 2
28810  fi
28811done
28812  done
28813IFS=$as_save_IFS
28814
28815  ;;
28816esac
28817fi
28818PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
28819if test -n "$PATH_NET_SNMP_CONFIG"; then
28820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
28821$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
28822else
28823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28824$as_echo "no" >&6; }
28825fi
28826
28827
28828    { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
28829;;
28830esac
28831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
28832$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
28833
28834case "$host" in
28835 *-*-vxworks*)
28836    ac_link="$ac_link $VX_KERNEL"
28837    ;;
28838esac
28839
28840# HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
28841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
28842$as_echo_n "checking for library containing openlog... " >&6; }
28843if ${ac_cv_search_openlog+:} false; then :
28844  $as_echo_n "(cached) " >&6
28845else
28846  ac_func_search_save_LIBS=$LIBS
28847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28848/* end confdefs.h.  */
28849
28850/* Override any GCC internal prototype to avoid an error.
28851   Use char because int might match the return type of a GCC
28852   builtin and then its argument prototype would still apply.  */
28853#ifdef __cplusplus
28854extern "C"
28855#endif
28856char openlog ();
28857int
28858main ()
28859{
28860return openlog ();
28861  ;
28862  return 0;
28863}
28864_ACEOF
28865for ac_lib in '' gen syslog; do
28866  if test -z "$ac_lib"; then
28867    ac_res="none required"
28868  else
28869    ac_res=-l$ac_lib
28870    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28871  fi
28872  if ac_fn_c_try_link "$LINENO"; then :
28873  ac_cv_search_openlog=$ac_res
28874fi
28875rm -f core conftest.err conftest.$ac_objext \
28876    conftest$ac_exeext
28877  if ${ac_cv_search_openlog+:} false; then :
28878  break
28879fi
28880done
28881if ${ac_cv_search_openlog+:} false; then :
28882
28883else
28884  ac_cv_search_openlog=no
28885fi
28886rm conftest.$ac_ext
28887LIBS=$ac_func_search_save_LIBS
28888fi
28889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
28890$as_echo "$ac_cv_search_openlog" >&6; }
28891ac_res=$ac_cv_search_openlog
28892if test "$ac_res" != no; then :
28893  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28894
28895fi
28896
28897# XXX library list will be in ac_cv_search_openlog
28898
28899# LIBSECCOMP is off by default -- needs testing with all the features
28900# Please send bug reports to loganaden@gmail.com
28901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
28902$as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
28903# Check whether --enable-libseccomp was given.
28904if test "${enable_libseccomp+set}" = set; then :
28905  enableval=$enable_libseccomp; ntp_ok=$enableval
28906else
28907  ntp_ok=no
28908
28909fi
28910
28911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28912$as_echo "$ntp_ok" >&6; }
28913case "$ntp_ok" in
28914 yes)
28915    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
28916$as_echo_n "checking for library containing seccomp_init... " >&6; }
28917if ${ac_cv_search_seccomp_init+:} false; then :
28918  $as_echo_n "(cached) " >&6
28919else
28920  ac_func_search_save_LIBS=$LIBS
28921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28922/* end confdefs.h.  */
28923
28924/* Override any GCC internal prototype to avoid an error.
28925   Use char because int might match the return type of a GCC
28926   builtin and then its argument prototype would still apply.  */
28927#ifdef __cplusplus
28928extern "C"
28929#endif
28930char seccomp_init ();
28931int
28932main ()
28933{
28934return seccomp_init ();
28935  ;
28936  return 0;
28937}
28938_ACEOF
28939for ac_lib in '' seccomp; do
28940  if test -z "$ac_lib"; then
28941    ac_res="none required"
28942  else
28943    ac_res=-l$ac_lib
28944    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28945  fi
28946  if ac_fn_c_try_link "$LINENO"; then :
28947  ac_cv_search_seccomp_init=$ac_res
28948fi
28949rm -f core conftest.err conftest.$ac_objext \
28950    conftest$ac_exeext
28951  if ${ac_cv_search_seccomp_init+:} false; then :
28952  break
28953fi
28954done
28955if ${ac_cv_search_seccomp_init+:} false; then :
28956
28957else
28958  ac_cv_search_seccomp_init=no
28959fi
28960rm conftest.$ac_ext
28961LIBS=$ac_func_search_save_LIBS
28962fi
28963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
28964$as_echo "$ac_cv_search_seccomp_init" >&6; }
28965ac_res=$ac_cv_search_seccomp_init
28966if test "$ac_res" != no; then :
28967  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28968
28969$as_echo "#define LIBSECCOMP 1" >>confdefs.h
28970
28971
28972fi
28973
28974    if test "$cross_compiling" = yes; then :
28975  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28977as_fn_error $? "cannot run test program while cross compiling
28978See \`config.log' for more details" "$LINENO" 5; }
28979else
28980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28981/* end confdefs.h.  */
28982
28983	#include <stdio.h>
28984	#include <stdlib.h>
28985	#include <errno.h>
28986	#include <sys/prctl.h>
28987	#include <linux/seccomp.h>
28988
28989	int main(void)
28990	{
28991		int ret;
28992		ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
28993		if (ret < 0) {
28994			switch (errno) {
28995			case ENOSYS:
28996				return 1;
28997			case EINVAL:
28998				return 1;
28999			default:
29000				return 1;
29001			}
29002		}
29003		ret =
29004		prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
29005		if (ret < 0) {
29006			switch (errno) {
29007			case EINVAL:
29008				return 1;
29009			case EFAULT:
29010				return 0;
29011			default:
29012				return 1;
29013		}
29014	}
29015return 1;
29016}
29017
29018
29019_ACEOF
29020if ac_fn_c_try_run "$LINENO"; then :
29021
29022$as_echo "#define KERN_SECCOMP 1" >>confdefs.h
29023
29024
29025fi
29026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29027  conftest.$ac_objext conftest.beam conftest.$ac_ext
29028fi
29029
29030    ;;
29031esac
29032
29033
29034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
29035$as_echo_n "checking for facilitynames in syslog.h... " >&6; }
29036if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
29037  $as_echo_n "(cached) " >&6
29038else
29039
29040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29041/* end confdefs.h.  */
29042
29043#define SYSLOG_NAMES
29044#include <stdlib.h>
29045#include <syslog.h>
29046
29047int
29048main ()
29049{
29050 void *fnames; fnames = facilitynames;
29051  ;
29052  return 0;
29053}
29054_ACEOF
29055if ac_fn_c_try_compile "$LINENO"; then :
29056  ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
29057else
29058  ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
29059fi
29060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29061fi
29062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
29063$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
29064case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
29065 yes)
29066
29067$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
29068
29069    ;;
29070 no)
29071    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
29072$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
29073    ;;
29074 cross)
29075    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
29076$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
29077    ;;
29078esac
29079
29080
29081
29082case "$host" in
29083 *-*-*linux*) ;;
29084 *-*-osf4*) ;;
29085 *-*-osf5*) ;;
29086 *)
29087    # HMS: Make sure we check for -lrt for clock_* before this...
29088    case "$ac_cv_search_clock_gettime" in
29089     '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
29090    esac
29091    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
29092$as_echo_n "checking for library containing sched_setscheduler... " >&6; }
29093if ${ac_cv_search_sched_setscheduler+:} false; then :
29094  $as_echo_n "(cached) " >&6
29095else
29096  ac_func_search_save_LIBS=$LIBS
29097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29098/* end confdefs.h.  */
29099
29100/* Override any GCC internal prototype to avoid an error.
29101   Use char because int might match the return type of a GCC
29102   builtin and then its argument prototype would still apply.  */
29103#ifdef __cplusplus
29104extern "C"
29105#endif
29106char sched_setscheduler ();
29107int
29108main ()
29109{
29110return sched_setscheduler ();
29111  ;
29112  return 0;
29113}
29114_ACEOF
29115for ac_lib in '' rt posix4; do
29116  if test -z "$ac_lib"; then
29117    ac_res="none required"
29118  else
29119    ac_res=-l$ac_lib
29120    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29121  fi
29122  if ac_fn_c_try_link "$LINENO"; then :
29123  ac_cv_search_sched_setscheduler=$ac_res
29124fi
29125rm -f core conftest.err conftest.$ac_objext \
29126    conftest$ac_exeext
29127  if ${ac_cv_search_sched_setscheduler+:} false; then :
29128  break
29129fi
29130done
29131if ${ac_cv_search_sched_setscheduler+:} false; then :
29132
29133else
29134  ac_cv_search_sched_setscheduler=no
29135fi
29136rm conftest.$ac_ext
29137LIBS=$ac_func_search_save_LIBS
29138fi
29139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
29140$as_echo "$ac_cv_search_sched_setscheduler" >&6; }
29141ac_res=$ac_cv_search_sched_setscheduler
29142if test "$ac_res" != no; then :
29143  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29144
29145fi
29146
29147    ;;
29148esac
29149
29150for ac_header in bstring.h
29151do :
29152  ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
29153if test "x$ac_cv_header_bstring_h" = xyes; then :
29154  cat >>confdefs.h <<_ACEOF
29155#define HAVE_BSTRING_H 1
29156_ACEOF
29157
29158fi
29159
29160done
29161
29162ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
29163if test "x$ac_cv_header_dns_sd_h" = xyes; then :
29164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
29165$as_echo_n "checking for library containing DNSServiceRegister... " >&6; }
29166if ${ac_cv_search_DNSServiceRegister+:} false; then :
29167  $as_echo_n "(cached) " >&6
29168else
29169  ac_func_search_save_LIBS=$LIBS
29170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29171/* end confdefs.h.  */
29172
29173/* Override any GCC internal prototype to avoid an error.
29174   Use char because int might match the return type of a GCC
29175   builtin and then its argument prototype would still apply.  */
29176#ifdef __cplusplus
29177extern "C"
29178#endif
29179char DNSServiceRegister ();
29180int
29181main ()
29182{
29183return DNSServiceRegister ();
29184  ;
29185  return 0;
29186}
29187_ACEOF
29188for ac_lib in '' dns_sd; do
29189  if test -z "$ac_lib"; then
29190    ac_res="none required"
29191  else
29192    ac_res=-l$ac_lib
29193    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29194  fi
29195  if ac_fn_c_try_link "$LINENO"; then :
29196  ac_cv_search_DNSServiceRegister=$ac_res
29197fi
29198rm -f core conftest.err conftest.$ac_objext \
29199    conftest$ac_exeext
29200  if ${ac_cv_search_DNSServiceRegister+:} false; then :
29201  break
29202fi
29203done
29204if ${ac_cv_search_DNSServiceRegister+:} false; then :
29205
29206else
29207  ac_cv_search_DNSServiceRegister=no
29208fi
29209rm conftest.$ac_ext
29210LIBS=$ac_func_search_save_LIBS
29211fi
29212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
29213$as_echo "$ac_cv_search_DNSServiceRegister" >&6; }
29214ac_res=$ac_cv_search_DNSServiceRegister
29215if test "$ac_res" != no; then :
29216  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29217
29218$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
29219
29220
29221fi
29222
29223
29224fi
29225
29226
29227for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h
29228do :
29229  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29230ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29231if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29232  cat >>confdefs.h <<_ACEOF
29233#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29234_ACEOF
29235
29236fi
29237
29238done
29239
29240
29241for ac_header in memory.h netdb.h poll.h
29242do :
29243  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29244ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29245if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29246  cat >>confdefs.h <<_ACEOF
29247#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29248_ACEOF
29249
29250fi
29251
29252done
29253
29254for ac_header in sgtty.h stdlib.h string.h termio.h
29255do :
29256  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29257ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29258if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29259  cat >>confdefs.h <<_ACEOF
29260#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29261_ACEOF
29262
29263fi
29264
29265done
29266
29267for ac_header in termios.h timepps.h timex.h unistd.h
29268do :
29269  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29270ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29271if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29272  cat >>confdefs.h <<_ACEOF
29273#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29274_ACEOF
29275
29276fi
29277
29278done
29279
29280
29281case "$host" in
29282 *-*-aix*)
29283    for ac_header in utmpx.h
29284do :
29285  ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
29286if test "x$ac_cv_header_utmpx_h" = xyes; then :
29287  cat >>confdefs.h <<_ACEOF
29288#define HAVE_UTMPX_H 1
29289_ACEOF
29290
29291fi
29292
29293done
29294
29295    case "$ac_cv_header_utmpx_h" in
29296     yes)
29297	;;
29298     *)
29299	for ac_header in utmp.h
29300do :
29301  ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
29302if test "x$ac_cv_header_utmp_h" = xyes; then :
29303  cat >>confdefs.h <<_ACEOF
29304#define HAVE_UTMP_H 1
29305_ACEOF
29306
29307fi
29308
29309done
29310
29311	;;
29312    esac
29313    ;;
29314 *)
29315    for ac_header in utmp.h utmpx.h
29316do :
29317  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29318ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29319if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29320  cat >>confdefs.h <<_ACEOF
29321#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29322_ACEOF
29323
29324fi
29325
29326done
29327
29328    ;;
29329esac
29330
29331#
29332# On Suns only (so far) getpass() truncates the typed password to 8
29333# characters, but getpassphrase() allows up to 257.  Most systems'
29334# getpass() does not truncate, at least not so as to affect ntpq and
29335# ntpdc password prompts.
29336#
29337# So check for getpassphrase(), but only on Sun operating systems.
29338#
29339case "$host" in
29340 *-*-sunos*|*-*-solaris*)
29341    for ac_func in getpassphrase
29342do :
29343  ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
29344if test "x$ac_cv_func_getpassphrase" = xyes; then :
29345  cat >>confdefs.h <<_ACEOF
29346#define HAVE_GETPASSPHRASE 1
29347_ACEOF
29348
29349fi
29350done
29351
29352esac
29353
29354
29355for ac_header in net/if6.h
29356do :
29357  ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
29358if test "x$ac_cv_header_net_if6_h" = xyes; then :
29359  cat >>confdefs.h <<_ACEOF
29360#define HAVE_NET_IF6_H 1
29361_ACEOF
29362
29363fi
29364
29365done
29366
29367for ac_header in net/route.h
29368do :
29369  ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
29370    #include <sys/types.h>
29371    #include <sys/socket.h>
29372    #include <net/if.h>
29373
29374"
29375if test "x$ac_cv_header_net_route_h" = xyes; then :
29376  cat >>confdefs.h <<_ACEOF
29377#define HAVE_NET_ROUTE_H 1
29378_ACEOF
29379
29380fi
29381
29382done
29383
29384
29385for ac_header in netinfo/ni.h
29386do :
29387  ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
29388if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
29389  cat >>confdefs.h <<_ACEOF
29390#define HAVE_NETINFO_NI_H 1
29391_ACEOF
29392
29393fi
29394
29395done
29396
29397case "$ac_cv_header_netinfo_ni_h" in
29398 yes)
29399
29400$as_echo "#define HAVE_NETINFO 1" >>confdefs.h
29401
29402esac
29403for ac_header in sun/audioio.h sys/audioio.h sys/file.h
29404do :
29405  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29406ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29407if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29408  cat >>confdefs.h <<_ACEOF
29409#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29410_ACEOF
29411
29412fi
29413
29414done
29415
29416case "$host" in
29417 *-*-sunos4*)
29418    ;;
29419 *)
29420    for ac_header in sys/ioctl.h
29421do :
29422  ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
29423if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
29424  cat >>confdefs.h <<_ACEOF
29425#define HAVE_SYS_IOCTL_H 1
29426_ACEOF
29427
29428fi
29429
29430done
29431
29432    ;;
29433esac
29434for ac_header in sys/ipc.h sys/lock.h sys/mman.h
29435do :
29436  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29437ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29438if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29439  cat >>confdefs.h <<_ACEOF
29440#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29441_ACEOF
29442
29443fi
29444
29445done
29446
29447# HMS: Check sys/proc.h and sys/resource.h after some others
29448for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h
29449do :
29450  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29451ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29452if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29453  cat >>confdefs.h <<_ACEOF
29454#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29455_ACEOF
29456
29457fi
29458
29459done
29460
29461case "$ac_cv_header_sched_h" in
29462 yes)
29463    ;;
29464 *)
29465    for ac_header in sys/sched.h
29466do :
29467  ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
29468if test "x$ac_cv_header_sys_sched_h" = xyes; then :
29469  cat >>confdefs.h <<_ACEOF
29470#define HAVE_SYS_SCHED_H 1
29471_ACEOF
29472
29473fi
29474
29475done
29476
29477    ;;
29478esac
29479# HMS: Check sys/shm.h after some others
29480for ac_header in sys/select.h sys/signal.h sys/sockio.h
29481do :
29482  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29483ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29484if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29485  cat >>confdefs.h <<_ACEOF
29486#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29487_ACEOF
29488
29489fi
29490
29491done
29492
29493# HMS: Checked sys/socket.h earlier
29494case "$host" in
29495 *-*-netbsd*)
29496    ;;
29497 *)
29498    for ac_header in machine/soundcard.h sys/soundcard.h
29499do :
29500  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29501ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29502if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29503  cat >>confdefs.h <<_ACEOF
29504#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29505_ACEOF
29506
29507fi
29508
29509done
29510
29511    ;;
29512esac
29513for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h
29514do :
29515  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29516ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29517if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29518  cat >>confdefs.h <<_ACEOF
29519#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29520_ACEOF
29521
29522fi
29523
29524done
29525
29526for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h
29527do :
29528  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29529ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29530if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29531  cat >>confdefs.h <<_ACEOF
29532#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29533_ACEOF
29534
29535fi
29536
29537done
29538
29539case "$host" in
29540*-convex-*)
29541    for ac_header in /sys/sync/queue.h /sys/sync/sema.h
29542do :
29543  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29544ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29545if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29546  cat >>confdefs.h <<_ACEOF
29547#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29548_ACEOF
29549
29550fi
29551
29552done
29553
29554    ;;
29555*-*-bsdi*)
29556    for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
29557do :
29558  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29559ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29560if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29561  cat >>confdefs.h <<_ACEOF
29562#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29563_ACEOF
29564
29565fi
29566
29567done
29568
29569    ;;
29570esac
29571
29572case "$host" in
29573 *-*-solaris2.6)
29574    # Broken...
29575    ;;
29576 *)
29577    for ac_func in ntp_adjtime ntp_gettime
29578do :
29579  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29580ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29581if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29582  cat >>confdefs.h <<_ACEOF
29583#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29584_ACEOF
29585
29586fi
29587done
29588
29589    ;;
29590esac
29591
29592case "$host" in
29593 *-*-*linux*)
29594    case "$ac_cv_func_ntp_gettime" in
29595     yes)
29596	;;
29597     *)
29598	for ac_func in __ntp_gettime
29599do :
29600  ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
29601if test "x$ac_cv_func___ntp_gettime" = xyes; then :
29602  cat >>confdefs.h <<_ACEOF
29603#define HAVE___NTP_GETTIME 1
29604_ACEOF
29605
29606fi
29607done
29608
29609	case "$ac_cv_func___ntp_gettime" in
29610	 yes)
29611
29612$as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h
29613
29614
29615$as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h
29616
29617	esac
29618	;;
29619    esac
29620    for ac_func in adjtimex
29621do :
29622  ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
29623if test "x$ac_cv_func_adjtimex" = xyes; then :
29624  cat >>confdefs.h <<_ACEOF
29625#define HAVE_ADJTIMEX 1
29626_ACEOF
29627
29628fi
29629done
29630
29631    case "$ac_cv_func_adjtimex" in
29632     yes)
29633
29634$as_echo "#define ntp_adjtime adjtimex" >>confdefs.h
29635
29636
29637$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
29638
29639	have_adjtimex=1
29640	;;
29641     *)
29642	for ac_func in __adjtimex
29643do :
29644  ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
29645if test "x$ac_cv_func___adjtimex" = xyes; then :
29646  cat >>confdefs.h <<_ACEOF
29647#define HAVE___ADJTIMEX 1
29648_ACEOF
29649
29650fi
29651done
29652
29653	case "$ac_cv_func___adjtimex" in
29654	 yes)
29655
29656$as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h
29657
29658
29659$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
29660
29661
29662$as_echo "#define adjtimex __adjtimex" >>confdefs.h
29663
29664
29665$as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h
29666
29667	    have_adjtimex=1
29668	esac
29669	;;
29670    esac
29671esac
29672case "$have_adjtimex" in
29673 '')
29674    # nlist stuff is only needed for tickadj.
29675    saved_LIBS="$LIBS"
29676    LIBS=
29677    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
29678$as_echo_n "checking for library containing nlist... " >&6; }
29679if ${ac_cv_search_nlist+:} false; then :
29680  $as_echo_n "(cached) " >&6
29681else
29682  ac_func_search_save_LIBS=$LIBS
29683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29684/* end confdefs.h.  */
29685
29686/* Override any GCC internal prototype to avoid an error.
29687   Use char because int might match the return type of a GCC
29688   builtin and then its argument prototype would still apply.  */
29689#ifdef __cplusplus
29690extern "C"
29691#endif
29692char nlist ();
29693int
29694main ()
29695{
29696return nlist ();
29697  ;
29698  return 0;
29699}
29700_ACEOF
29701for ac_lib in '' elf ld mld; do
29702  if test -z "$ac_lib"; then
29703    ac_res="none required"
29704  else
29705    ac_res=-l$ac_lib
29706    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29707  fi
29708  if ac_fn_c_try_link "$LINENO"; then :
29709  ac_cv_search_nlist=$ac_res
29710fi
29711rm -f core conftest.err conftest.$ac_objext \
29712    conftest$ac_exeext
29713  if ${ac_cv_search_nlist+:} false; then :
29714  break
29715fi
29716done
29717if ${ac_cv_search_nlist+:} false; then :
29718
29719else
29720  ac_cv_search_nlist=no
29721fi
29722rm conftest.$ac_ext
29723LIBS=$ac_func_search_save_LIBS
29724fi
29725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
29726$as_echo "$ac_cv_search_nlist" >&6; }
29727ac_res=$ac_cv_search_nlist
29728if test "$ac_res" != no; then :
29729  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29730
29731fi
29732
29733    # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
29734    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
29735$as_echo_n "checking for library containing kvm_open... " >&6; }
29736if ${ac_cv_search_kvm_open+:} false; then :
29737  $as_echo_n "(cached) " >&6
29738else
29739  ac_func_search_save_LIBS=$LIBS
29740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29741/* end confdefs.h.  */
29742
29743/* Override any GCC internal prototype to avoid an error.
29744   Use char because int might match the return type of a GCC
29745   builtin and then its argument prototype would still apply.  */
29746#ifdef __cplusplus
29747extern "C"
29748#endif
29749char kvm_open ();
29750int
29751main ()
29752{
29753return kvm_open ();
29754  ;
29755  return 0;
29756}
29757_ACEOF
29758for ac_lib in '' kvm; do
29759  if test -z "$ac_lib"; then
29760    ac_res="none required"
29761  else
29762    ac_res=-l$ac_lib
29763    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29764  fi
29765  if ac_fn_c_try_link "$LINENO"; then :
29766  ac_cv_search_kvm_open=$ac_res
29767fi
29768rm -f core conftest.err conftest.$ac_objext \
29769    conftest$ac_exeext
29770  if ${ac_cv_search_kvm_open+:} false; then :
29771  break
29772fi
29773done
29774if ${ac_cv_search_kvm_open+:} false; then :
29775
29776else
29777  ac_cv_search_kvm_open=no
29778fi
29779rm conftest.$ac_ext
29780LIBS=$ac_func_search_save_LIBS
29781fi
29782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
29783$as_echo "$ac_cv_search_kvm_open" >&6; }
29784ac_res=$ac_cv_search_kvm_open
29785if test "$ac_res" != no; then :
29786  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29787
29788fi
29789	    # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
29790    for ac_header in nlist.h sys/var.h
29791do :
29792  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29793ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29794if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29795  cat >>confdefs.h <<_ACEOF
29796#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29797_ACEOF
29798
29799fi
29800
29801done
29802
29803    case "$ac_cv_header_nlist_h" in
29804     yes)
29805
29806$as_echo "#define NLIST_STRUCT 1" >>confdefs.h
29807
29808	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
29809$as_echo_n "checking for n_un in struct nlist... " >&6; }
29810if ${ntp_cv_struct_nlist_n_un+:} false; then :
29811  $as_echo_n "(cached) " >&6
29812else
29813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29814/* end confdefs.h.  */
29815
29816			#include <nlist.h>
29817
29818int
29819main ()
29820{
29821
29822			struct nlist n;
29823			n.n_un.n_name = 0;
29824
29825
29826  ;
29827  return 0;
29828}
29829		ntp_cv_struct_nlist_n_un=yes
29830_ACEOF
29831if ac_fn_c_try_compile "$LINENO"; then :
29832  ntp_cv_struct_nlist_n_un=no
29833
29834fi
29835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29836
29837fi
29838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
29839$as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
29840	case "$ntp_cv_struct_nlist_n_un" in
29841	 yes)
29842
29843$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
29844
29845	esac
29846    esac
29847
29848    LDADD_NLIST="$LIBS"
29849    LIBS="$saved_LIBS"
29850    { saved_LIBS=; unset saved_LIBS;}
29851esac
29852
29853for ac_header in sys/proc.h
29854do :
29855  ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
29856    #ifdef HAVE_SYS_TYPES_H
29857    # include <sys/types.h>
29858    #endif
29859    #ifdef HAVE_SYS_TIME_H
29860    # include <sys/time.h>
29861    #endif
29862
29863"
29864if test "x$ac_cv_header_sys_proc_h" = xyes; then :
29865  cat >>confdefs.h <<_ACEOF
29866#define HAVE_SYS_PROC_H 1
29867_ACEOF
29868
29869fi
29870
29871done
29872
29873
29874for ac_header in sys/resource.h
29875do :
29876  ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
29877    #ifdef HAVE_SYS_TIME_H
29878    # include <sys/time.h>
29879    #endif
29880
29881"
29882if test "x$ac_cv_header_sys_resource_h" = xyes; then :
29883  cat >>confdefs.h <<_ACEOF
29884#define HAVE_SYS_RESOURCE_H 1
29885_ACEOF
29886
29887fi
29888
29889done
29890
29891
29892for ac_header in sys/shm.h
29893do :
29894  ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
29895    #ifdef HAVE_SYS_TYPES_H
29896    # include <sys/types.h>
29897    #endif
29898    #ifdef HAVE_SYS_IPC_H
29899    # include <sys/ipc.h>
29900    #endif
29901
29902"
29903if test "x$ac_cv_header_sys_shm_h" = xyes; then :
29904  cat >>confdefs.h <<_ACEOF
29905#define HAVE_SYS_SHM_H 1
29906_ACEOF
29907
29908fi
29909
29910done
29911
29912
29913for ac_header in sys/timex.h
29914do :
29915  ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
29916    #ifdef HAVE_SYS_TIME_H
29917    # include <sys/time.h>
29918    #endif
29919
29920"
29921if test "x$ac_cv_header_sys_timex_h" = xyes; then :
29922  cat >>confdefs.h <<_ACEOF
29923#define HAVE_SYS_TIMEX_H 1
29924_ACEOF
29925
29926fi
29927
29928done
29929
29930
29931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
29932$as_echo_n "checking return type of signal handlers... " >&6; }
29933if ${ac_cv_type_signal+:} false; then :
29934  $as_echo_n "(cached) " >&6
29935else
29936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29937/* end confdefs.h.  */
29938#include <sys/types.h>
29939#include <signal.h>
29940
29941int
29942main ()
29943{
29944return *(signal (0, 0)) (0) == 1;
29945  ;
29946  return 0;
29947}
29948_ACEOF
29949if ac_fn_c_try_compile "$LINENO"; then :
29950  ac_cv_type_signal=int
29951else
29952  ac_cv_type_signal=void
29953fi
29954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29955fi
29956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
29957$as_echo "$ac_cv_type_signal" >&6; }
29958
29959cat >>confdefs.h <<_ACEOF
29960#define RETSIGTYPE $ac_cv_type_signal
29961_ACEOF
29962
29963
29964ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
29965if test "x$ac_cv_type_off_t" = xyes; then :
29966
29967else
29968
29969cat >>confdefs.h <<_ACEOF
29970#define off_t long int
29971_ACEOF
29972
29973fi
29974
29975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
29976$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
29977if ${ac_cv_struct_tm+:} false; then :
29978  $as_echo_n "(cached) " >&6
29979else
29980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29981/* end confdefs.h.  */
29982#include <sys/types.h>
29983#include <time.h>
29984
29985int
29986main ()
29987{
29988struct tm tm;
29989				     int *p = &tm.tm_sec;
29990				     return !p;
29991  ;
29992  return 0;
29993}
29994_ACEOF
29995if ac_fn_c_try_compile "$LINENO"; then :
29996  ac_cv_struct_tm=time.h
29997else
29998  ac_cv_struct_tm=sys/time.h
29999fi
30000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30001fi
30002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
30003$as_echo "$ac_cv_struct_tm" >&6; }
30004if test $ac_cv_struct_tm = sys/time.h; then
30005
30006$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
30007
30008fi
30009
30010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
30011$as_echo_n "checking for a fallback value for HZ... " >&6; }
30012if ${ntp_cv_default_hz+:} false; then :
30013  $as_echo_n "(cached) " >&6
30014else
30015
30016	ntp_cv_default_hz=100
30017	case "$host" in
30018	 alpha*-dec-osf4*|alpha*-dec-osf5*)
30019	    ntp_cv_default_hz=1024
30020	    ;;
30021	 mips-dec-ultrix4*)
30022	    ntp_cv_default_hz=256
30023	    ;;
30024	esac
30025
30026
30027fi
30028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
30029$as_echo "$ntp_cv_default_hz" >&6; }
30030
30031cat >>confdefs.h <<_ACEOF
30032#define DEFAULT_HZ $ntp_cv_default_hz
30033_ACEOF
30034
30035
30036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
30037$as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
30038if ${ntp_cv_override_hz+:} false; then :
30039  $as_echo_n "(cached) " >&6
30040else
30041
30042	ntp_cv_override_hz=no
30043	case "$host" in
30044	 alpha*-dec-osf4*|alpha*-dec-osf5*)
30045	    ntp_cv_override_hz=yes
30046	    ;;
30047	 mips-dec-ultrix4*)
30048	    ntp_cv_override_hz=yes
30049	    ;;
30050	 *-*-freebsd*)
30051	    ntp_cv_override_hz=yes
30052	    ;;
30053	 *-*-sunos4*)
30054	    ntp_cv_override_hz=yes
30055	    ;;
30056	 *-*-kfreebsd*)
30057	    ntp_cv_override_hz=yes
30058	    ;;
30059	esac
30060
30061
30062fi
30063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
30064$as_echo "$ntp_cv_override_hz" >&6; }
30065case "$ntp_cv_override_hz" in
30066 yes)
30067
30068$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
30069
30070esac
30071
30072
30073
30074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
30075$as_echo_n "checking for struct rt_msghdr... " >&6; }
30076if ${ntp_cv_struct_rt_msghdr+:} false; then :
30077  $as_echo_n "(cached) " >&6
30078else
30079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30080/* end confdefs.h.  */
30081
30082		#include <sys/types.h>
30083		#include <sys/socket.h>
30084		#include <net/if.h>
30085		#include <net/route.h>
30086
30087int
30088main ()
30089{
30090
30091		struct rt_msghdr p;
30092
30093
30094  ;
30095  return 0;
30096}
30097_ACEOF
30098if ac_fn_c_try_compile "$LINENO"; then :
30099  ntp_cv_struct_rt_msghdr=yes
30100else
30101  ntp_cv_struct_rt_msghdr=no
30102
30103fi
30104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30105
30106fi
30107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
30108$as_echo "$ntp_cv_struct_rt_msghdr" >&6; }
30109
30110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
30111$as_echo_n "checking for struct rtattr... " >&6; }
30112if ${ntp_cv_rtattr+:} false; then :
30113  $as_echo_n "(cached) " >&6
30114else
30115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30116/* end confdefs.h.  */
30117
30118		#include <stddef.h>
30119		#include <sys/socket.h>
30120		#include <linux/rtnetlink.h>
30121
30122int
30123main ()
30124{
30125
30126		struct rtattr p;
30127
30128
30129  ;
30130  return 0;
30131}
30132_ACEOF
30133if ac_fn_c_try_compile "$LINENO"; then :
30134  ntp_cv_rtattr=yes
30135else
30136  ntp_cv_rtattr=no
30137
30138fi
30139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30140
30141fi
30142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
30143$as_echo "$ntp_cv_rtattr" >&6; }
30144
30145case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
30146 *yes*)
30147
30148$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
30149
30150    case "$ntp_cv_rtattr" in
30151     yes)
30152
30153$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
30154
30155    esac
30156esac
30157
30158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
30159$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
30160if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
30161  $as_echo_n "(cached) " >&6
30162else
30163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30164/* end confdefs.h.  */
30165
30166		#include <signal.h>
30167
30168int
30169main ()
30170{
30171
30172		struct sigaction act;
30173		act.sa_sigaction = 0;
30174
30175
30176  ;
30177  return 0;
30178}
30179_ACEOF
30180if ac_fn_c_try_compile "$LINENO"; then :
30181  ntp_cv_struct_sigaction_has_sa_sigaction=yes
30182else
30183  ntp_cv_struct_sigaction_has_sa_sigaction=no
30184
30185fi
30186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30187
30188fi
30189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
30190$as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
30191case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
30192 yes)
30193
30194$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
30195
30196esac
30197
30198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
30199$as_echo_n "checking for struct ppsclockev... " >&6; }
30200if ${ntp_cv_struct_ppsclockev+:} false; then :
30201  $as_echo_n "(cached) " >&6
30202else
30203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30204/* end confdefs.h.  */
30205
30206		#ifdef HAVE_SYS_TYPES_H
30207		# include <sys/types.h>
30208		#endif
30209		#ifdef HAVE_SYS_TERMIOS_H
30210		# include <sys/termios.h>
30211		#endif
30212		#ifdef HAVE_SYS_TIME_H
30213		# include <sys/time.h>
30214		#endif
30215		#ifdef HAVE_SYS_PPSCLOCK_H
30216		# include <sys/ppsclock.h>
30217		#endif
30218
30219int
30220main ()
30221{
30222
30223		extern struct ppsclockev *pce;
30224		return pce->serial;
30225
30226
30227  ;
30228  return 0;
30229}
30230_ACEOF
30231if ac_fn_c_try_compile "$LINENO"; then :
30232  ntp_cv_struct_ppsclockev=yes
30233else
30234  ntp_cv_struct_ppsclockev=no
30235
30236fi
30237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30238
30239fi
30240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
30241$as_echo "$ntp_cv_struct_ppsclockev" >&6; }
30242case "$ntp_cv_struct_ppsclockev" in
30243 yes)
30244
30245$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
30246
30247esac
30248
30249case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
30250  *yes*)
30251    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
30252$as_echo_n "checking for struct snd_size... " >&6; }
30253if ${ntp_cv_struct_snd_size+:} false; then :
30254  $as_echo_n "(cached) " >&6
30255else
30256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30257/* end confdefs.h.  */
30258
30259		    #ifdef HAVE_MACHINE_SOUNDCARD_H
30260		    # include <machine/soundcard.h>
30261		    #endif
30262		    #ifdef HAVE_SYS_SOUNDCARD_H
30263		    # include <sys/soundcard.h>
30264		    #endif
30265
30266int
30267main ()
30268{
30269
30270		    extern struct snd_size *ss;
30271		    return ss->rec_size;
30272
30273
30274  ;
30275  return 0;
30276}
30277_ACEOF
30278if ac_fn_c_try_compile "$LINENO"; then :
30279  ntp_cv_struct_snd_size=yes
30280else
30281  ntp_cv_struct_snd_size=no
30282
30283fi
30284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30285
30286fi
30287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
30288$as_echo "$ntp_cv_struct_snd_size" >&6; }
30289    case "$ntp_cv_struct_snd_size" in
30290     yes)
30291
30292$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
30293
30294    esac
30295esac
30296
30297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
30298$as_echo_n "checking struct clockinfo for hz... " >&6; }
30299if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
30300  $as_echo_n "(cached) " >&6
30301else
30302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30303/* end confdefs.h.  */
30304
30305		#include <sys/time.h>
30306
30307int
30308main ()
30309{
30310
30311		extern struct clockinfo *pc;
30312		return pc->hz;
30313
30314
30315  ;
30316  return 0;
30317}
30318_ACEOF
30319if ac_fn_c_try_compile "$LINENO"; then :
30320  ntp_cv_struct_clockinfo_has_hz=yes
30321else
30322  ntp_cv_struct_clockinfo_has_hz=no
30323
30324fi
30325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30326
30327fi
30328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
30329$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
30330case "$ntp_cv_struct_clockinfo_has_hz" in
30331 yes)
30332
30333$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
30334
30335esac
30336
30337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
30338$as_echo_n "checking struct clockinfo for tickadj... " >&6; }
30339if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
30340  $as_echo_n "(cached) " >&6
30341else
30342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30343/* end confdefs.h.  */
30344
30345		#include <sys/time.h>
30346
30347int
30348main ()
30349{
30350
30351		extern struct clockinfo *pc;
30352		return pc->tickadj;
30353
30354
30355  ;
30356  return 0;
30357}
30358_ACEOF
30359if ac_fn_c_try_compile "$LINENO"; then :
30360  ntp_cv_struct_clockinfo_has_hz=yes
30361else
30362  ntp_cv_struct_clockinfo_has_hz=no
30363
30364fi
30365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30366
30367fi
30368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
30369$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
30370case "$ntp_cv_struct_clockinfo_has_hz" in
30371 yes)
30372
30373$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
30374
30375esac
30376
30377case "$ntp_cv_struct_ntptimeval" in
30378 yes)
30379    ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
30380	    #ifdef HAVE_SYS_TIME_H
30381	    # include <sys/time.h>
30382	    #else
30383	    # ifdef HAVE_TIME_H
30384	    #  include <time.h>
30385	    # endif
30386	    #endif
30387	    #ifdef HAVE_SYS_TIMEX_H
30388	    # include <sys/timex.h>
30389	    #else
30390	    # ifdef HAVE_TIMEX_H
30391	    #  include <timex.h>
30392	    # endif
30393	    #endif
30394
30395
30396"
30397if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :
30398
30399cat >>confdefs.h <<_ACEOF
30400#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
30401_ACEOF
30402
30403
30404fi
30405
30406esac
30407
30408####
30409
30410for ac_func in arc4random_buf
30411do :
30412  ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
30413if test "x$ac_cv_func_arc4random_buf" = xyes; then :
30414  cat >>confdefs.h <<_ACEOF
30415#define HAVE_ARC4RANDOM_BUF 1
30416_ACEOF
30417
30418fi
30419done
30420
30421
30422####
30423
30424saved_LIBS="$LIBS"
30425LIBS="$LIBS $LDADD_LIBNTP"
30426for ac_func in daemon
30427do :
30428  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
30429if test "x$ac_cv_func_daemon" = xyes; then :
30430  cat >>confdefs.h <<_ACEOF
30431#define HAVE_DAEMON 1
30432_ACEOF
30433
30434fi
30435done
30436
30437# XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
30438LIBS="$saved_LIBS"
30439{ saved_LIBS=; unset saved_LIBS;}
30440
30441for ac_func in finite
30442do :
30443  ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
30444if test "x$ac_cv_func_finite" = xyes; then :
30445  cat >>confdefs.h <<_ACEOF
30446#define HAVE_FINITE 1
30447_ACEOF
30448
30449else
30450  for ac_func in isfinite
30451do :
30452  ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
30453if test "x$ac_cv_func_isfinite" = xyes; then :
30454  cat >>confdefs.h <<_ACEOF
30455#define HAVE_ISFINITE 1
30456_ACEOF
30457
30458else
30459
30460	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
30461$as_echo_n "checking for isfinite with <math.h>... " >&6; }
30462	    _libs=$LIBS
30463	    # XXX
30464	    LIBS="$LIBS -lm"
30465	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30466/* end confdefs.h.  */
30467
30468			#include <math.h>
30469
30470int
30471main ()
30472{
30473
30474			float f = 0.0;
30475			isfinite(f);
30476
30477
30478  ;
30479  return 0;
30480}
30481_ACEOF
30482if ac_fn_c_try_link "$LINENO"; then :
30483  ans=yes
30484else
30485  ans=no
30486
30487fi
30488rm -f core conftest.err conftest.$ac_objext \
30489    conftest$ac_exeext conftest.$ac_ext
30490	    LIBS=$_libs
30491	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30492$as_echo "$ans" >&6; }
30493	    case "$ans" in
30494	     yes)
30495		$as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
30496
30497	    esac
30498
30499
30500fi
30501done
30502
30503
30504fi
30505done
30506
30507
30508for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal
30509do :
30510  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30511ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30512if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30513  cat >>confdefs.h <<_ACEOF
30514#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30515_ACEOF
30516
30517fi
30518done
30519
30520
30521# kvm_open() is only used by tickadj.  Also see above.
30522case "$ac_cv_header_kvm_h" in
30523 yes)
30524    for ac_func in kvm_open
30525do :
30526  ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
30527if test "x$ac_cv_func_kvm_open" = xyes; then :
30528  cat >>confdefs.h <<_ACEOF
30529#define HAVE_KVM_OPEN 1
30530_ACEOF
30531
30532fi
30533done
30534
30535    ;;
30536esac
30537
30538case "$host" in
30539 *-*-sco3.2v5.0.*)
30540    # Just stubs.  Sigh.
30541    ;;
30542 *) for ac_func in mkstemp
30543do :
30544  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
30545if test "x$ac_cv_func_mkstemp" = xyes; then :
30546  cat >>confdefs.h <<_ACEOF
30547#define HAVE_MKSTEMP 1
30548_ACEOF
30549
30550fi
30551done
30552
30553    ;;
30554esac
30555for ac_func in mktime
30556do :
30557  ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
30558if test "x$ac_cv_func_mktime" = xyes; then :
30559  cat >>confdefs.h <<_ACEOF
30560#define HAVE_MKTIME 1
30561_ACEOF
30562
30563fi
30564done
30565
30566case "$host" in
30567 *-*-aix[4-9]*)
30568    # XXX only verified thru AIX6.
30569    # Just a stub.  Sigh.
30570    ;;
30571 *-*-irix[45]*)
30572    # Just a stub in "old" Irix.  Sigh.
30573    ;;
30574# In the belief that the fix for bug 1223 fixes mlockall() under linux...
30575# *-*-*linux*)
30576#    # there, but more trouble than it is worth for now (resolver problems)
30577#    ;;
30578 *-*-qnx*)
30579    # Apparently there but not working in QNX.  Sigh?
30580    ;;
30581 *-*-sco3.2v5.0.*)
30582    # Just a stub.  Sigh.
30583    ;;
30584 alpha*-dec-osf4*|alpha*-dec-osf5*)
30585    # mlockall is there, as a #define calling memlk via <sys/mman.h>
30586    # Not easy to test for - cheat.
30587    for ac_func in memlk
30588do :
30589  ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
30590if test "x$ac_cv_func_memlk" = xyes; then :
30591  cat >>confdefs.h <<_ACEOF
30592#define HAVE_MEMLK 1
30593_ACEOF
30594 ac_cv_func_mlockall=yes
30595fi
30596done
30597
30598    for ac_func in mlockall
30599do :
30600  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
30601if test "x$ac_cv_func_mlockall" = xyes; then :
30602  cat >>confdefs.h <<_ACEOF
30603#define HAVE_MLOCKALL 1
30604_ACEOF
30605
30606fi
30607done
30608
30609    ;;
30610 *) for ac_func in mlockall
30611do :
30612  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
30613if test "x$ac_cv_func_mlockall" = xyes; then :
30614  cat >>confdefs.h <<_ACEOF
30615#define HAVE_MLOCKALL 1
30616_ACEOF
30617
30618fi
30619done
30620
30621    ;;
30622esac
30623for ac_func in nice plock pututline pututxline readlink rtprio
30624do :
30625  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30626ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30627if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30628  cat >>confdefs.h <<_ACEOF
30629#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30630_ACEOF
30631
30632fi
30633done
30634
30635case "$host" in
30636 *-*-aix[4-9]*)
30637    # XXX only verified thru AIX6.
30638    # Just a stub in AIX 4.  Sigh.
30639    ;;
30640 *-*-solaris2.5*)
30641    # Just stubs in solaris2.5.  Sigh.
30642    ;;
30643 *) for ac_func in sched_setscheduler
30644do :
30645  ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
30646if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
30647  cat >>confdefs.h <<_ACEOF
30648#define HAVE_SCHED_SETSCHEDULER 1
30649_ACEOF
30650
30651fi
30652done
30653
30654    ;;
30655esac
30656for ac_func in setlinebuf setpgid setpriority setsid setvbuf
30657do :
30658  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30659ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30660if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30661  cat >>confdefs.h <<_ACEOF
30662#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30663_ACEOF
30664
30665fi
30666done
30667
30668for ac_func in strdup strerror setrlimit strchr
30669do :
30670  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30671ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30672if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30673  cat >>confdefs.h <<_ACEOF
30674#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30675_ACEOF
30676
30677fi
30678done
30679
30680case "$host" in
30681 *-*-aix[4-9]*)
30682    # XXX only verified thru AIX6.
30683    # Just stubs.  Sigh.
30684    ;;
30685 *-*-netbsd1*)
30686    # Just stubs.  Sigh.
30687    ;;
30688 *-*-netbsdelf1*)
30689    # Just stubs.  Sigh.
30690    ;;
30691 *-*-openbsd*)
30692    # Just stubs.  Sigh.
30693    ;;
30694 *)
30695    for ac_func in timer_create
30696do :
30697  ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
30698if test "x$ac_cv_func_timer_create" = xyes; then :
30699  cat >>confdefs.h <<_ACEOF
30700#define HAVE_TIMER_CREATE 1
30701_ACEOF
30702
30703fi
30704done
30705
30706    ;;
30707esac
30708
30709
30710
30711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
30712$as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; }
30713if ${ntp_cv_rlimit_memlock+:} false; then :
30714  $as_echo_n "(cached) " >&6
30715else
30716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30717/* end confdefs.h.  */
30718
30719		#ifdef HAVE_SYS_TYPES_H
30720		# include <sys/types.h>
30721		#endif
30722		#ifdef HAVE_SYS_TIME_H
30723		# include <sys/time.h>
30724		#endif
30725		#ifdef HAVE_SYS_RESOURCE_H
30726		# include <sys/resource.h>
30727		#endif
30728
30729int
30730main ()
30731{
30732
30733		getrlimit(RLIMIT_MEMLOCK, 0);
30734
30735
30736  ;
30737  return 0;
30738}
30739_ACEOF
30740if ac_fn_c_try_compile "$LINENO"; then :
30741  ntp_cv_rlimit_memlock=yes
30742else
30743  ntp_cv_rlimit_memlock=no
30744
30745fi
30746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30747
30748fi
30749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
30750$as_echo "$ntp_cv_rlimit_memlock" >&6; }
30751case "$ntp_cv_rlimit_memlock" in
30752 yes)
30753
30754    HAVE_RLIMIT_MEMLOCK=" memlock 32"
30755esac
30756
30757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
30758$as_echo_n "checking for RLIMIT_STACK... " >&6; }
30759if ${ntp_cv_rlimit_stack+:} false; then :
30760  $as_echo_n "(cached) " >&6
30761else
30762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30763/* end confdefs.h.  */
30764
30765		#ifdef HAVE_SYS_TYPES_H
30766		# include <sys/types.h>
30767		#endif
30768		#ifdef HAVE_SYS_TIME_H
30769		# include <sys/time.h>
30770		#endif
30771		#ifdef HAVE_SYS_RESOURCE_H
30772		# include <sys/resource.h>
30773		#endif
30774
30775int
30776main ()
30777{
30778
30779		getrlimit(RLIMIT_STACK, 0);
30780
30781
30782  ;
30783  return 0;
30784}
30785_ACEOF
30786if ac_fn_c_try_compile "$LINENO"; then :
30787  ntp_cv_rlimit_stack=yes
30788else
30789  ntp_cv_rlimit_stack=no
30790
30791fi
30792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30793
30794fi
30795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
30796$as_echo "$ntp_cv_rlimit_stack" >&6; }
30797case "$ntp_cv_rlimit_stack" in
30798 yes)
30799
30800    HAVE_RLIMIT_STACK=" stacksize 50"
30801esac
30802
30803
30804
30805# HMS: Only if we are doing the MLOCKALL stuff...
30806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
30807$as_echo_n "checking for the default number of 4k stack pages... " >&6; }
30808
30809# Check whether --with-stack-limit was given.
30810if test "${with_stack_limit+set}" = set; then :
30811  withval=$with_stack_limit; ans=$withval
30812else
30813  ans=yes
30814
30815fi
30816
30817case "$ans" in
30818 yes | no)
30819    case "$host" in
30820     *-*-openbsd*)
30821	ans=200
30822	;;
30823     *) ans=50
30824        ;;
30825    esac
30826    ;;
30827 [1-9][0-9]*)
30828    ;;
30829 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
30830    ;;
30831esac
30832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30833$as_echo "$ans" >&6; }
30834
30835cat >>confdefs.h <<_ACEOF
30836#define DFLT_RLIMIT_STACK $ans
30837_ACEOF
30838
30839
30840# HMS: only if we have RLIMIT_MEMLOCK
30841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
30842$as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; }
30843
30844# Check whether --with-memlock was given.
30845if test "${with_memlock+set}" = set; then :
30846  withval=$with_memlock; ans=$withval
30847else
30848  ans=yes
30849
30850fi
30851
30852case "$ans" in
30853 yes | no)
30854    ans=32
30855    ;;
30856 [1-9][0-9]*) ;;
30857 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
30858     ;;
30859esac
30860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30861$as_echo "$ans" >&6; }
30862
30863cat >>confdefs.h <<_ACEOF
30864#define DFLT_RLIMIT_MEMLOCK $ans
30865_ACEOF
30866
30867
30868
30869# some OSes prefer _exit() in forked children to exit()
30870for ac_func in _exit
30871do :
30872  ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
30873if test "x$ac_cv_func__exit" = xyes; then :
30874  cat >>confdefs.h <<_ACEOF
30875#define HAVE__EXIT 1
30876_ACEOF
30877
30878fi
30879done
30880
30881ntp_worker_child_exit=exit
30882case "$ac_cv_func__exit::$host_os" in
30883 yes::netbsd*)
30884    ntp_worker_child_exit=_exit
30885    ;;
30886 yes::openbsd*)
30887    ntp_worker_child_exit=_exit
30888    ;;
30889esac
30890
30891cat >>confdefs.h <<_ACEOF
30892#define WORKER_CHILD_EXIT $ntp_worker_child_exit
30893_ACEOF
30894
30895
30896for ac_func in umask uname updwtmp updwtmpx
30897do :
30898  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30899ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30900if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30901  cat >>confdefs.h <<_ACEOF
30902#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30903_ACEOF
30904
30905fi
30906done
30907
30908
30909###
30910
30911# http://bugs.ntp.org/737
30912case "$ac_cv_func_recvmsg" in
30913 yes)
30914    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
30915$as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
30916if ${ntp_cv_struct_iovec_help+:} false; then :
30917  $as_echo_n "(cached) " >&6
30918else
30919
30920	    compiled=no
30921	    for ntp_cv_struct_iovec_help in '0' '1'; do
30922		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30923/* end confdefs.h.  */
30924
30925			    #ifdef HAVE_SYS_TYPES_H
30926			    # include <sys/types.h>
30927			    #endif
30928			    #ifdef HAVE_SYS_SOCKET_H
30929			    # include <sys/socket.h>
30930			    #endif
30931			    #if $ntp_cv_struct_iovec_help
30932			    # include <sys/uio.h>
30933			    #endif
30934
30935int
30936main ()
30937{
30938
30939			    void foo(void) {
30940				ssize_t x;
30941				int s = 0;
30942				struct iovec iov;
30943				struct msghdr mh;
30944				int flags = 0;
30945
30946				mh.msg_iov = &iov;
30947				x = recvmsg(s, &mh, flags);
30948			    }
30949
30950
30951  ;
30952  return 0;
30953}
30954_ACEOF
30955if ac_fn_c_try_compile "$LINENO"; then :
30956  compiled=yes ; break 1
30957fi
30958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30959	    done
30960	    case "$compiled" in
30961	     no)
30962		ntp_cv_struct_iovec_help=0
30963	    esac
30964	    { compiled=; unset compiled;}
30965
30966
30967fi
30968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
30969$as_echo "$ntp_cv_struct_iovec_help" >&6; }
30970    case "$ntp_cv_struct_iovec_help" in
30971     1)
30972
30973$as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
30974
30975    esac
30976esac
30977
30978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
30979$as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
30980if ${ntp_cv_func_setpgrp_nargs+:} false; then :
30981  $as_echo_n "(cached) " >&6
30982else
30983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30984/* end confdefs.h.  */
30985
30986		#ifdef HAVE_SYS_TYPES_H
30987		# include <sys/types.h>
30988		#endif
30989		#ifdef HAVE_UNISTD_H
30990		# include <unistd.h>
30991		#endif
30992
30993int
30994main ()
30995{
30996
30997		setpgrp(0, 0);
30998
30999
31000  ;
31001  return 0;
31002}
31003_ACEOF
31004if ac_fn_c_try_compile "$LINENO"; then :
31005  ntp_cv_func_setpgrp_nargs=2
31006else
31007  ntp_cv_func_setpgrp_nargs=0
31008
31009fi
31010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31011
31012fi
31013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5
31014$as_echo "$ntp_cv_func_setpgrp_nargs" >&6; }
31015case "$ntp_cv_func_setpgrp_nargs" in
31016 0)
31017
31018$as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h
31019
31020esac
31021
31022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
31023$as_echo_n "checking if we need to declare 'errno'... " >&6; }
31024if ${ntp_cv_decl_errno+:} false; then :
31025  $as_echo_n "(cached) " >&6
31026else
31027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31028/* end confdefs.h.  */
31029
31030		#ifdef HAVE_ERRNO_H
31031		# include <errno.h>
31032		#endif
31033
31034int
31035main ()
31036{
31037
31038		errno = 0;
31039
31040
31041  ;
31042  return 0;
31043}
31044_ACEOF
31045if ac_fn_c_try_compile "$LINENO"; then :
31046  ntp_cv_decl_errno=no
31047else
31048  ntp_cv_decl_errno=yes
31049
31050fi
31051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31052
31053fi
31054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5
31055$as_echo "$ntp_cv_decl_errno" >&6; }
31056case "$ntp_cv_decl_errno" in
31057 yes)
31058
31059$as_echo "#define DECL_ERRNO 1" >>confdefs.h
31060
31061esac
31062
31063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
31064$as_echo_n "checking if we may declare 'h_errno'... " >&6; }
31065if ${ntp_cv_decl_h_errno+:} false; then :
31066  $as_echo_n "(cached) " >&6
31067else
31068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31069/* end confdefs.h.  */
31070
31071		#include <sys/types.h>
31072		#ifdef HAVE_NETINET_IN_H
31073		# include <netinet/in.h>
31074		#endif
31075		#ifdef HAVE_ARPA_NAMESER_H
31076		# include <arpa/nameser.h>
31077		#endif
31078		#ifdef HAVE_NETDB_H
31079		# include <netdb.h>
31080		#endif
31081		#ifdef HAVE_RESOLV_H
31082		# include <resolv.h>
31083		#endif
31084
31085int
31086main ()
31087{
31088
31089		extern int h_errno;
31090
31091
31092  ;
31093  return 0;
31094}
31095_ACEOF
31096if ac_fn_c_try_compile "$LINENO"; then :
31097  ntp_cv_decl_h_errno=yes
31098else
31099  ntp_cv_decl_h_errno=no
31100
31101fi
31102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31103
31104fi
31105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5
31106$as_echo "$ntp_cv_decl_h_errno" >&6; }
31107case "$ntp_cv_decl_h_errno" in
31108 yes)
31109
31110$as_echo "#define DECL_H_ERRNO 1" >>confdefs.h
31111
31112esac
31113
31114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
31115$as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
31116if ${ntp_cv_decl_syscall+:} false; then :
31117  $as_echo_n "(cached) " >&6
31118else
31119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31120/* end confdefs.h.  */
31121
31122		#ifdef HAVE_SYS_TYPES_H
31123		# include <sys/types.h>
31124		#endif
31125		#ifdef HAVE_UNISTD_H
31126		# include <unistd.h>
31127		#endif
31128
31129int
31130main ()
31131{
31132
31133		extern int syscall (int, ...);
31134
31135
31136  ;
31137  return 0;
31138}
31139	ntp_cv_decl_syscall=yes
31140_ACEOF
31141if ac_fn_c_try_compile "$LINENO"; then :
31142  ntp_cv_decl_syscall=no
31143
31144fi
31145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31146
31147fi
31148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5
31149$as_echo "$ntp_cv_decl_syscall" >&6; }
31150case "$ntp_cv_decl_syscall" in
31151 yes)
31152
31153$as_echo "#define DECL_SYSCALL 1" >>confdefs.h
31154
31155esac
31156
31157case "$host" in
31158 *-*-aix4.3.*)
31159
31160$as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
31161		# Needed for XLC under AIX 4.3.2
31162    ;;
31163 *-*-mpeix*)
31164
31165$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31166
31167
31168$as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h
31169
31170
31171$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31172
31173
31174$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31175
31176
31177$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31178
31179
31180$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31181
31182
31183$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31184
31185    ;;
31186 *-*-osf[45]*)
31187
31188$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
31189
31190
31191$as_echo "#define DECL_STIME_1 1" >>confdefs.h
31192
31193    ;;
31194 *-*-qnx*)
31195
31196$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31197
31198    ;;
31199 *-*-riscos4*)
31200
31201$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31202
31203
31204$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31205
31206
31207$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31208
31209
31210$as_echo "#define DECL_IPC_0 1" >>confdefs.h
31211
31212
31213$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
31214
31215
31216$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31217
31218
31219$as_echo "#define DECL_RENAME_0 1" >>confdefs.h
31220
31221
31222$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31223
31224
31225$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31226
31227
31228$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31229
31230
31231$as_echo "#define DECL_STDIO_0 1" >>confdefs.h
31232
31233
31234$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
31235
31236
31237$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31238
31239
31240$as_echo "#define DECL_TIME_0 1" >>confdefs.h
31241
31242
31243$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31244
31245
31246$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
31247
31248    ;;
31249 *-*-solaris2*)
31250
31251$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
31252
31253
31254$as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h
31255
31256    case "$host" in
31257     *-*-solaris2.4)
31258
31259$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31260
31261	;;
31262    esac
31263    ;;
31264 *-*-sunos4*)
31265
31266$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31267
31268
31269$as_echo "#define DECL_BCOPY_0 1" >>confdefs.h
31270
31271
31272$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31273
31274
31275$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31276
31277
31278$as_echo "#define DECL_IPC_0 1" >>confdefs.h
31279
31280
31281$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
31282
31283
31284$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31285
31286
31287$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
31288
31289
31290$as_echo "#define DECL_RENAME_0 1" >>confdefs.h
31291
31292
31293$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31294
31295
31296$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31297
31298
31299$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31300
31301
31302$as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h
31303
31304    case "`basename $ac_cv_prog_CC`" in
31305     acc*) ;;
31306     *)
31307$as_echo "#define DECL_STDIO_0 1" >>confdefs.h
31308
31309	;;
31310    esac
31311
31312$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
31313
31314
31315$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31316
31317
31318$as_echo "#define DECL_TIME_0 1" >>confdefs.h
31319
31320
31321$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31322
31323
31324$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
31325
31326
31327$as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h
31328
31329
31330$as_echo "#define DECL_STRERROR_0 1" >>confdefs.h
31331
31332    ;;
31333 *-*-ultrix4*)
31334
31335$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31336
31337
31338$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31339
31340
31341$as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h
31342
31343
31344$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31345
31346
31347$as_echo "#define DECL_IPC_0 1" >>confdefs.h
31348
31349
31350$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31351
31352
31353$as_echo "#define DECL_NLIST_0 1" >>confdefs.h
31354
31355
31356$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
31357
31358
31359$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31360
31361
31362$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31363
31364
31365$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31366
31367
31368$as_echo "#define DECL_STIME_0 1" >>confdefs.h
31369
31370
31371$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31372
31373
31374$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31375
31376    ;;
31377esac
31378
31379case "$host" in
31380 *-*-sco3.2*)
31381
31382$as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
31383
31384    ;;
31385esac
31386
31387case "$host" in
31388 *-*-hpux[567]*)
31389
31390$as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
31391
31392esac
31393
31394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
31395$as_echo_n "checking if we will open the broadcast socket... " >&6; }
31396if ${ntp_cv_var_open_bcast_socket+:} false; then :
31397  $as_echo_n "(cached) " >&6
31398else
31399
31400	ans=yes
31401	case "$host" in
31402	 *-*-domainos)
31403	    ans=no
31404	esac
31405	ntp_cv_var_open_bcast_socket=$ans
31406
31407
31408fi
31409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5
31410$as_echo "$ntp_cv_var_open_bcast_socket" >&6; }
31411case "$ntp_cv_var_open_bcast_socket" in
31412 yes)
31413
31414$as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
31415
31416esac
31417
31418case "$host" in
31419 *-*-hpux*)
31420
31421$as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
31422
31423esac
31424
31425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
31426$as_echo_n "checking if process groups are set with -pid... " >&6; }
31427if ${ntp_cv_arg_setpgrp_negpid+:} false; then :
31428  $as_echo_n "(cached) " >&6
31429else
31430
31431	case "$host" in
31432	 *-*-hpux[567]*)
31433	    ans=no
31434	    ;;
31435	 *-*-hpux*)
31436	    ans=yes
31437	    ;;
31438	 *-*-*linux*)
31439	    ans=yes
31440	    ;;
31441	 *-*-sunos3*)
31442	    ans=yes
31443	    ;;
31444	 *-*-ultrix2*)
31445	    ans=yes
31446	    ;;
31447	 *)
31448	    ans=no
31449	    ;;
31450	esac
31451	ntp_cv_arg_setpgrp_negpid=$ans
31452
31453
31454fi
31455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5
31456$as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; }
31457case "$ntp_cv_arg_setpgrp_negpid" in
31458 yes)
31459
31460$as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
31461
31462esac
31463
31464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
31465$as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
31466if ${ntp_cv_func_ctty_for_f_setown+:} false; then :
31467  $as_echo_n "(cached) " >&6
31468else
31469
31470	case "$host" in
31471	 *-*-bsdi[23]*)
31472	    ans=yes
31473	    ;;
31474	 *-*-freebsd*)
31475	    ans=yes
31476	    ;;
31477	# NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
31478	# while later versions will fail a ioctl(TIOCSCTTY, 0) call in
31479	# some cases and so should not have USE_FSETOWNCTTY.  "netbsd"
31480	# in $host may be followed by "aout", "ecoff", or "elf".
31481	 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
31482	    ans=yes
31483	    ;;
31484	 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
31485	    ans=yes
31486	    ;;
31487	 *-*-openbsd*)
31488	    ans=yes
31489	    ;;
31490	 *-*-osf*)
31491	    ans=yes
31492	    ;;
31493	 *-*-darwin*)
31494	    ans=yes
31495	    ;;
31496	 *)
31497	    ans=no
31498	    ;;
31499	esac
31500	ntp_cv_func_ctty_for_f_setown=$ans
31501
31502
31503fi
31504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
31505$as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
31506case "$ntp_cv_func_ctty_for_f_setown" in
31507 yes)
31508
31509$as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h
31510
31511esac
31512
31513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
31514$as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
31515if ${ntp_cv_os_routeupdates+:} false; then :
31516  $as_echo_n "(cached) " >&6
31517else
31518
31519	case "$host" in
31520	 *-*-netbsd*)
31521	    ans=yes
31522	    ;;
31523	 *)
31524	    ans=no
31525	    ;;
31526	esac
31527	ntp_cv_os_routeupdates=$ans
31528
31529
31530fi
31531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
31532$as_echo "$ntp_cv_os_routeupdates" >&6; }
31533case "$ntp_cv_os_routeupdates" in
31534 yes)
31535
31536$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
31537
31538esac
31539
31540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
31541$as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
31542if ${ntp_cv_os_wildcardreuse+:} false; then :
31543  $as_echo_n "(cached) " >&6
31544else
31545
31546	case "$host" in
31547	 *-*-*linux*)
31548	    ans=yes
31549	    ;;
31550	 *) ans=no
31551	    ;;
31552	esac
31553	ntp_cv_os_wildcardreuse=$ans
31554
31555
31556fi
31557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
31558$as_echo "$ntp_cv_os_wildcardreuse" >&6; }
31559case "$ntp_cv_os_wildcardreuse" in
31560 yes)
31561
31562$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
31563
31564esac
31565
31566case "$host" in
31567 *-*-aix*)
31568
31569$as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
31570
31571esac
31572
31573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
31574$as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
31575if ${ntp_cv_var_min_rec_tickadj+:} false; then :
31576  $as_echo_n "(cached) " >&6
31577else
31578
31579	ans=no
31580	case "$host" in
31581	 *-*-aix*)
31582	    ans=40
31583	    ;;
31584	esac
31585	ntp_cv_var_min_rec_tickadj=$ans
31586
31587
31588fi
31589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5
31590$as_echo "$ntp_cv_var_min_rec_tickadj" >&6; }
31591case "$ntp_cv_var_min_rec_tickadj" in
31592 ''|no)
31593    ;;
31594 *)
31595
31596cat >>confdefs.h <<_ACEOF
31597#define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj
31598_ACEOF
31599
31600esac
31601
31602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
31603$as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
31604if ${ntp_cv_no_parenb_ignpar+:} false; then :
31605  $as_echo_n "(cached) " >&6
31606else
31607
31608	ans=no
31609	case "$host" in
31610	 i?86-*-*linux*)
31611	    ans=yes
31612	    ;;
31613	 mips-sgi-irix*)
31614	    ans=yes
31615	    ;;
31616	 i?86-*-freebsd[123].*)
31617	    ;;
31618	 i?86-*-freebsd*)
31619	    ans=yes
31620	    ;;
31621	 *-*-unicosmp*)
31622	    ans=yes
31623	    ;;
31624	esac
31625	ntp_cv_no_parenb_ignpar=$ans
31626
31627
31628fi
31629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5
31630$as_echo "$ntp_cv_no_parenb_ignpar" >&6; }
31631case "$ntp_cv_no_parenb_ignpar" in
31632 yes)
31633
31634$as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h
31635
31636esac
31637
31638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5
31639$as_echo_n "checking if we're including processing time debugging code... " >&6; }
31640# Check whether --enable-debug-timing was given.
31641if test "${enable_debug_timing+set}" = set; then :
31642  enableval=$enable_debug_timing; ntp_ok=$enableval
31643else
31644  ntp_ok=no
31645
31646fi
31647
31648case "$ntp_ok" in
31649 yes)
31650
31651$as_echo "#define DEBUG_TIMING 1" >>confdefs.h
31652
31653esac
31654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31655$as_echo "$ntp_ok" >&6; }
31656
31657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
31658$as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
31659# Check whether --enable-dst-minutes was given.
31660if test "${enable_dst_minutes+set}" = set; then :
31661  enableval=$enable_dst_minutes; ans=$enableval
31662else
31663  ans=60
31664
31665fi
31666
31667
31668cat >>confdefs.h <<_ACEOF
31669#define DSTMINUTES $ans
31670_ACEOF
31671
31672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31673$as_echo "$ans" >&6; }
31674
31675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
31676$as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; }
31677# Check whether --enable-ignore-dns-errors was given.
31678if test "${enable_ignore_dns_errors+set}" = set; then :
31679  enableval=$enable_ignore_dns_errors; ans=$enableval
31680else
31681  ans=no
31682
31683fi
31684
31685case "$ans" in
31686 yes)
31687
31688$as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
31689
31690esac
31691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31692$as_echo "$ans" >&6; }
31693
31694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
31695$as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
31696if ${ntp_cv_var_ntp_syscalls+:} false; then :
31697  $as_echo_n "(cached) " >&6
31698else
31699
31700	ntp_cv_var_ntp_syscalls=no
31701	case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
31702	 yesyes*)
31703	    ntp_cv_var_ntp_syscalls=libc
31704	    ;;
31705	 *yes)
31706	    ntp_cv_var_ntp_syscalls=inline
31707	    ;;
31708	 *)
31709	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31710/* end confdefs.h.  */
31711
31712		    #include <sys/syscall.h>
31713		    #if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
31714		    # error
31715		    #endif
31716
31717_ACEOF
31718if ac_fn_c_try_cpp "$LINENO"; then :
31719  ntp_cv_var_ntp_syscalls=kernel
31720
31721fi
31722rm -f conftest.err conftest.i conftest.$ac_ext
31723	    ;;
31724	 esac
31725
31726
31727fi
31728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5
31729$as_echo "$ntp_cv_var_ntp_syscalls" >&6; }
31730case "$ntp_cv_var_ntp_syscalls" in
31731 libc)
31732
31733$as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
31734
31735    ;;
31736 kernel)
31737
31738$as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h
31739
31740    ;;
31741esac
31742
31743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
31744$as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
31745if ${ntp_cv_var_sta_fll+:} false; then :
31746  $as_echo_n "(cached) " >&6
31747else
31748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31749/* end confdefs.h.  */
31750
31751	    #include <sys/timex.h>
31752	    #ifndef STA_FLL
31753	    # error
31754	    #endif
31755
31756_ACEOF
31757if ac_fn_c_try_cpp "$LINENO"; then :
31758  ntp_cv_var_sta_fll=yes
31759else
31760  ntp_cv_var_sta_fll=no
31761
31762fi
31763rm -f conftest.err conftest.i conftest.$ac_ext
31764
31765fi
31766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5
31767$as_echo "$ntp_cv_var_sta_fll" >&6; }
31768
31769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
31770$as_echo_n "checking if we have kernel PLL support... " >&6; }
31771if ${ntp_cv_var_kernel_pll+:} false; then :
31772  $as_echo_n "(cached) " >&6
31773else
31774  	case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in
31775	 *no*)
31776	    ntp_cv_var_kernel_pll=no
31777	    ;;
31778	 *) ntp_cv_var_kernel_pll=yes
31779	    ;;
31780	esac
31781
31782
31783fi
31784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5
31785$as_echo "$ntp_cv_var_kernel_pll" >&6; }
31786case "$ntp_cv_var_kernel_pll" in
31787 yes)
31788
31789$as_echo "#define KERNEL_PLL 1" >>confdefs.h
31790
31791esac
31792
31793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
31794$as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
31795if ${ntp_cv_size_returned_in_buffer+:} false; then :
31796  $as_echo_n "(cached) " >&6
31797else
31798
31799	ans=no
31800	case "$host" in
31801	 *-fujitsu-uxp*)
31802	    ans=yes
31803	    ;;
31804	 *-ncr-sysv4*)
31805	    ans=yes
31806	    ;;
31807	 *-univel-sysv*)
31808	    ans=yes
31809	    ;;
31810	esac
31811	ntp_cv_size_returned_in_buffer=$ans
31812
31813
31814fi
31815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5
31816$as_echo "$ntp_cv_size_returned_in_buffer" >&6; }
31817case "$ntp_cv_size_returned_in_buffer" in
31818 yes)
31819
31820$as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
31821
31822esac
31823
31824# Check for ioctls TIOCGPPSEV
31825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5
31826$as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; }
31827case "$ac_cv_header_termios_h" in
31828 yes)
31829    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31830/* end confdefs.h.  */
31831
31832	    #include <termios.h>
31833	    #ifndef TIOCGPPSEV
31834	    # error
31835	    #endif
31836
31837_ACEOF
31838if ac_fn_c_try_cpp "$LINENO"; then :
31839  ntp_ok=yes
31840else
31841  ntp_ok=no
31842
31843fi
31844rm -f conftest.err conftest.i conftest.$ac_ext
31845    ;;
31846 *)
31847    ntp_ok=no
31848    ;;
31849esac
31850case "$ntp_ok" in
31851 yes)
31852
31853$as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
31854
31855esac
31856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31857$as_echo "$ntp_ok" >&6; }
31858
31859# Check for ioctls TIOCSPPS
31860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5
31861$as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; }
31862case "$ac_cv_header_termios_h" in
31863 yes)
31864    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31865/* end confdefs.h.  */
31866
31867	    #include <termios.h>
31868	    #ifndef TIOCSPPS
31869	    # error
31870	    #endif
31871
31872_ACEOF
31873if ac_fn_c_try_cpp "$LINENO"; then :
31874  ntp_ok=yes
31875else
31876  ntp_ok=no
31877
31878fi
31879rm -f conftest.err conftest.i conftest.$ac_ext
31880    ;;
31881 *)
31882    ntp_ok=no
31883    ;;
31884esac
31885case "$ntp_ok" in
31886 yes)
31887
31888$as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h
31889
31890esac
31891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31892$as_echo "$ntp_ok" >&6; }
31893
31894# Check for ioctls CIOGETEV
31895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5
31896$as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; }
31897case "$ac_cv_header_sys_ppsclock_h" in
31898 yes)
31899    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31900/* end confdefs.h.  */
31901
31902	    #include <sys/ppsclock.h>
31903	    #ifndef CIOGETEV
31904	    # error
31905	    #endif
31906
31907_ACEOF
31908if ac_fn_c_try_cpp "$LINENO"; then :
31909  ntp_ok=yes
31910else
31911  ntp_ok=no
31912
31913fi
31914rm -f conftest.err conftest.i conftest.$ac_ext
31915    ;;
31916 *)
31917    ntp_ok=no
31918    ;;
31919esac
31920case "$ntp_ok" in
31921 yes)
31922
31923$as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h
31924
31925esac
31926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31927$as_echo "$ntp_ok" >&6; }
31928
31929# ATOM/PPSAPI stuff.
31930
31931ntp_atom_ok=yes
31932
31933# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
31934
31935# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
31936# The PPSAPI needs struct timespec.
31937# The PPSAPI also needs a timepps header.
31938
31939case "$ac_cv_c_inline$ntp_cv_struct_timespec" in
31940 inlineyes)
31941    case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
31942     *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
31943
31944$as_echo "#define HAVE_PPSAPI 1" >>confdefs.h
31945
31946	ntp_jupiter_ok=yes
31947	ntp_oncore_ok=yes
31948	ntp_parse_ok=yes
31949	ntp_ripe_ncc_ok=yes
31950	;;
31951    esac
31952    ;;
31953esac
31954
31955# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
31956ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
31957if test "x$ac_cv_header_linux_serial_h" = xyes; then :
31958
31959fi
31960
31961
31962case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
31963  yesyes)
31964    { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
31965$as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
31966    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31967/* end confdefs.h.  */
31968
31969	    #include <sys/time.h>
31970	    typedef int u_int;
31971	    #include <sys/ppsclock.h>
31972	    #include <linux/serial.h>
31973
31974	    #ifndef TIOCGSERIAL
31975	    # error
31976	    #endif
31977	    #ifndef TIOCSSERIAL
31978	    # error
31979	    #endif
31980	    #ifndef ASYNC_PPS_CD_POS
31981	    # error
31982	    #endif
31983	    #ifndef ASYNC_PPS_CD_NEG
31984	    # error
31985	    #endif
31986	    #ifndef CIOGETEV
31987	    # error
31988	    #endif
31989
31990_ACEOF
31991if ac_fn_c_try_cpp "$LINENO"; then :
31992  ntp_ok=yes
31993else
31994  ntp_ok=no
31995
31996fi
31997rm -f conftest.err conftest.i conftest.$ac_ext
31998    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31999$as_echo "$ntp_ok" >&6; }
32000    ;;
32001  *)
32002    ntp_ok=no
32003    ;;
32004esac
32005case "$ntp_ok" in
32006 yes)
32007
32008$as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
32009
32010esac
32011
32012# Check for SHMEM_STATUS support
32013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
32014$as_echo_n "checking SHMEM_STATUS support... " >&6; }
32015case "$ac_cv_header_sys_mman_h" in
32016 yes)
32017    ntp_ok=yes
32018    ;;
32019 *)
32020    ntp_ok=no
32021    ;;
32022esac
32023case "$ntp_ok" in
32024 yes)
32025
32026$as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h
32027
32028esac
32029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32030$as_echo "$ntp_ok" >&6; }
32031
32032ntp_refclock=no
32033
32034# HPUX only, and by explicit request
32035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
32036$as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
32037# Check whether --enable-BANCOMM was given.
32038if test "${enable_BANCOMM+set}" = set; then :
32039  enableval=$enable_BANCOMM; ntp_ok=$enableval
32040else
32041  ntp_ok=no
32042
32043fi
32044
32045case "$ntp_ok" in
32046 yes)
32047    ntp_refclock=yes
32048
32049$as_echo "#define CLOCK_BANC 1" >>confdefs.h
32050
32051    ;;
32052esac
32053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32054$as_echo "$ntp_ok" >&6; }
32055case "$ntp_ok$host" in
32056 yes*-*-hpux*) ;;
32057 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32058$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
32059esac
32060
32061#HPUX only, and only by explicit request
32062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
32063$as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
32064# Check whether --enable-GPSVME was given.
32065if test "${enable_GPSVME+set}" = set; then :
32066  enableval=$enable_GPSVME; ntp_ok=$enableval
32067else
32068  ntp_ok=no
32069
32070fi
32071
32072case "$ntp_ok" in
32073 yes)
32074    ntp_refclock=yes
32075
32076$as_echo "#define CLOCK_GPSVME 1" >>confdefs.h
32077
32078    ;;
32079esac
32080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32081$as_echo "$ntp_ok" >&6; }
32082case "$ntp_ok$host" in
32083 yes*-*-hpux*) ;;
32084 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32085$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
32086esac
32087
32088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
32089$as_echo_n "checking for PCL720 clock support... " >&6; }
32090case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
32091 yesyesyes)
32092
32093$as_echo "#define CLOCK_PPS720 1" >>confdefs.h
32094
32095    ans=yes
32096    ;;
32097 *)
32098    ans=no
32099    ;;
32100esac
32101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32102$as_echo "$ans" >&6; }
32103
32104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
32105$as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
32106# Check whether --enable-all-clocks was given.
32107if test "${enable_all_clocks+set}" = set; then :
32108  enableval=$enable_all_clocks; ntp_eac=$enableval
32109else
32110  ntp_eac=yes
32111
32112fi
32113
32114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
32115$as_echo "$ntp_eac" >&6; }
32116
32117# HMS: Should we also require ntp_parse_ok?
32118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
32119$as_echo_n "checking if we have support for PARSE clocks... " >&6; }
32120case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
32121 yes*yes*)
32122    ntp_canparse=yes
32123    ;;
32124 *) ntp_canparse=no
32125    ;;
32126esac
32127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
32128$as_echo "$ntp_canparse" >&6; }
32129
32130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
32131$as_echo_n "checking if we have support for audio clocks... " >&6; }
32132case "$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
32133 *yes*)
32134    ntp_canaudio=yes
32135
32136$as_echo "#define HAVE_AUDIO /**/" >>confdefs.h
32137
32138    ;;
32139 *) ntp_canaudio=no ;;
32140esac
32141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
32142$as_echo "$ntp_canaudio" >&6; }
32143
32144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
32145$as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
32146case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
32147 yesyes)
32148    ntp_canshm=yes
32149    ;;
32150 *) ntp_canshm=no ;;
32151esac
32152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
32153$as_echo "$ntp_canshm" >&6; }
32154
32155# Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade)
32156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5
32157$as_echo_n "checking for termios modem control... " >&6; }
32158if ${ntp_cv_modem_control+:} false; then :
32159  $as_echo_n "(cached) " >&6
32160else
32161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32162/* end confdefs.h.  */
32163
32164		#ifdef HAVE_UNISTD_H
32165		# include <unistd.h>
32166		#endif
32167		#ifdef HAVE_TERMIOS_H
32168		# include <termios.h>
32169		#endif
32170		#ifdef HAVE_SYS_IOCTL_H
32171		# include <sys/ioctl.h>
32172		#endif
32173
32174int
32175main ()
32176{
32177
32178		int	dtr = TIOCM_DTR;
32179
32180		ioctl(1, TIOCMBIS, (char *)&dtr);
32181
32182
32183  ;
32184  return 0;
32185}
32186_ACEOF
32187if ac_fn_c_try_compile "$LINENO"; then :
32188  ntp_cv_modem_control=yes
32189else
32190  ntp_cv_modem_control=no
32191
32192fi
32193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32194
32195fi
32196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5
32197$as_echo "$ntp_cv_modem_control" >&6; }
32198case "$ntp_eac::$ntp_cv_modem_control" in
32199 yes::yes)
32200    ntp_enable_all_modem_control_clocks=yes
32201    ;;
32202 *)
32203    ntp_enable_all_modem_control_clocks=no
32204    ;;
32205esac
32206
32207# Requires modem control
32208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
32209$as_echo_n "checking ACTS modem service... " >&6; }
32210# Check whether --enable-ACTS was given.
32211if test "${enable_ACTS+set}" = set; then :
32212  enableval=$enable_ACTS; ntp_ok=$enableval
32213else
32214  ntp_ok=$ntp_enable_all_modem_control_clocks
32215
32216fi
32217
32218case "$ntp_ok" in
32219 yes)
32220    ntp_refclock=yes
32221
32222$as_echo "#define CLOCK_ACTS 1" >>confdefs.h
32223
32224    ;;
32225esac
32226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32227$as_echo "$ntp_ok" >&6; }
32228
32229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
32230$as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
32231# Check whether --enable-ARBITER was given.
32232if test "${enable_ARBITER+set}" = set; then :
32233  enableval=$enable_ARBITER; ntp_ok=$enableval
32234else
32235  ntp_ok=$ntp_eac
32236
32237fi
32238
32239case "$ntp_ok" in
32240 yes)
32241    ntp_refclock=yes
32242
32243$as_echo "#define CLOCK_ARBITER 1" >>confdefs.h
32244
32245    ;;
32246esac
32247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32248$as_echo "$ntp_ok" >&6; }
32249
32250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
32251$as_echo_n "checking Arcron MSF receiver... " >&6; }
32252# Check whether --enable-ARCRON_MSF was given.
32253if test "${enable_ARCRON_MSF+set}" = set; then :
32254  enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
32255else
32256  ntp_ok=$ntp_eac
32257
32258fi
32259
32260case "$ntp_ok" in
32261 yes)
32262    ntp_refclock=yes
32263
32264$as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
32265
32266    ;;
32267esac
32268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32269$as_echo "$ntp_ok" >&6; }
32270
32271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
32272$as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
32273# Check whether --enable-AS2201 was given.
32274if test "${enable_AS2201+set}" = set; then :
32275  enableval=$enable_AS2201; ntp_ok=$enableval
32276else
32277  ntp_ok=$ntp_eac
32278
32279fi
32280
32281case "$ntp_ok" in
32282 yes)
32283    ntp_refclock=yes
32284
32285$as_echo "#define CLOCK_AS2201 1" >>confdefs.h
32286
32287    ;;
32288esac
32289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32290$as_echo "$ntp_ok" >&6; }
32291
32292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
32293$as_echo_n "checking ATOM PPS interface... " >&6; }
32294# Check whether --enable-ATOM was given.
32295if test "${enable_ATOM+set}" = set; then :
32296  enableval=$enable_ATOM; ntp_ok=$enableval
32297else
32298  ntp_ok=$ntp_eac
32299
32300fi
32301
32302case "$ntp_atom_ok" in
32303 no) ntp_ok=no ;;
32304esac
32305case "$ntp_ok" in
32306 yes)
32307    ntp_refclock=yes
32308
32309$as_echo "#define CLOCK_ATOM 1" >>confdefs.h
32310
32311    ;;
32312esac
32313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32314$as_echo "$ntp_ok" >&6; }
32315
32316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
32317$as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
32318# Check whether --enable-CHRONOLOG was given.
32319if test "${enable_CHRONOLOG+set}" = set; then :
32320  enableval=$enable_CHRONOLOG; ntp_ok=$enableval
32321else
32322  ntp_ok=$ntp_eac
32323
32324fi
32325
32326case "$ntp_ok" in
32327 yes)
32328    ntp_refclock=yes
32329
32330$as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h
32331
32332    ;;
32333esac
32334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32335$as_echo "$ntp_ok" >&6; }
32336
32337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
32338$as_echo_n "checking CHU modem/decoder... " >&6; }
32339# Check whether --enable-CHU was given.
32340if test "${enable_CHU+set}" = set; then :
32341  enableval=$enable_CHU; ntp_ok=$enableval
32342else
32343  ntp_ok=$ntp_eac
32344
32345fi
32346
32347case "$ntp_ok" in
32348 yes)
32349    ntp_refclock=yes
32350
32351$as_echo "#define CLOCK_CHU 1" >>confdefs.h
32352
32353    ;;
32354esac
32355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32356$as_echo "$ntp_ok" >&6; }
32357ntp_refclock_chu=$ntp_ok
32358
32359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
32360$as_echo_n "checking CHU audio/decoder... " >&6; }
32361# Check whether --enable-AUDIO-CHU was given.
32362if test "${enable_AUDIO_CHU+set}" = set; then :
32363  enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
32364else
32365
32366	case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in
32367	 *no*)	ntp_ok=no  ;;
32368	 *)	ntp_ok=yes ;;
32369	esac
32370
32371
32372fi
32373
32374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32375$as_echo "$ntp_ok" >&6; }
32376# We used to check for sunos/solaris target...
32377case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in
32378 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
32379$as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;}
32380esac
32381
32382# Not under HP-UX
32383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
32384$as_echo_n "checking Datum Programmable Time System... " >&6; }
32385# Check whether --enable-DATUM was given.
32386if test "${enable_DATUM+set}" = set; then :
32387  enableval=$enable_DATUM; ntp_ok=$enableval
32388else
32389
32390	case "$ac_cv_header_termios_h" in
32391	 yes)
32392	    ntp_ok=$ntp_eac
32393	    ;;
32394	 *) ntp_ok=no
32395	    ;;
32396	esac
32397
32398
32399fi
32400
32401case "$ntp_ok" in
32402 yes)
32403    ntp_refclock=yes
32404
32405$as_echo "#define CLOCK_DATUM 1" >>confdefs.h
32406
32407    ;;
32408esac
32409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32410$as_echo "$ntp_ok" >&6; }
32411
32412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
32413$as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
32414# Check whether --enable-DUMBCLOCK was given.
32415if test "${enable_DUMBCLOCK+set}" = set; then :
32416  enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
32417else
32418  ntp_ok=$ntp_eac
32419
32420fi
32421
32422case "$ntp_ok" in
32423 yes)
32424    ntp_refclock=yes
32425
32426$as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
32427
32428    ;;
32429esac
32430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32431$as_echo "$ntp_ok" >&6; }
32432
32433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
32434$as_echo_n "checking Forum Graphic GPS... " >&6; }
32435# Check whether --enable-FG was given.
32436if test "${enable_FG+set}" = set; then :
32437  enableval=$enable_FG; ntp_ok=$enableval
32438else
32439  ntp_ok=$ntp_eac
32440
32441fi
32442
32443case "$ntp_ok" in
32444 yes)
32445    ntp_refclock=yes
32446
32447$as_echo "#define CLOCK_FG 1" >>confdefs.h
32448
32449    ;;
32450esac
32451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32452$as_echo "$ntp_ok" >&6; }
32453
32454# Requires modem control
32455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
32456$as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
32457# Check whether --enable-HEATH was given.
32458if test "${enable_HEATH+set}" = set; then :
32459  enableval=$enable_HEATH; ntp_ok=$enableval
32460else
32461  ntp_ok=$ntp_enable_all_modem_control_clocks
32462
32463fi
32464
32465case "$ntp_ok" in
32466 yes)
32467    ntp_refclock=yes
32468
32469$as_echo "#define CLOCK_HEATH 1" >>confdefs.h
32470
32471    ;;
32472esac
32473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32474$as_echo "$ntp_ok" >&6; }
32475
32476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
32477$as_echo_n "checking for hopf serial clock device... " >&6; }
32478# Check whether --enable-HOPFSERIAL was given.
32479if test "${enable_HOPFSERIAL+set}" = set; then :
32480  enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
32481else
32482  ntp_ok=$ntp_eac
32483
32484fi
32485
32486case "$ntp_ok" in
32487 yes)
32488    ntp_refclock=yes
32489
32490$as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
32491
32492    ;;
32493esac
32494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32495$as_echo "$ntp_ok" >&6; }
32496
32497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
32498$as_echo_n "checking for hopf PCI clock 6039... " >&6; }
32499# Check whether --enable-HOPFPCI was given.
32500if test "${enable_HOPFPCI+set}" = set; then :
32501  enableval=$enable_HOPFPCI; ntp_ok=$enableval
32502else
32503  ntp_ok=$ntp_eac
32504
32505fi
32506
32507case "$ntp_ok" in
32508 yes)
32509    ntp_refclock=yes
32510
32511$as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h
32512
32513    ;;
32514esac
32515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32516$as_echo "$ntp_ok" >&6; }
32517
32518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
32519$as_echo_n "checking HP 58503A GPS receiver... " >&6; }
32520# Check whether --enable-HPGPS was given.
32521if test "${enable_HPGPS+set}" = set; then :
32522  enableval=$enable_HPGPS; ntp_ok=$enableval
32523else
32524  ntp_ok=$ntp_eac
32525
32526fi
32527
32528case "$ntp_ok" in
32529 yes)
32530    ntp_refclock=yes
32531
32532$as_echo "#define CLOCK_HPGPS 1" >>confdefs.h
32533
32534    ;;
32535esac
32536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32537$as_echo "$ntp_ok" >&6; }
32538
32539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
32540$as_echo_n "checking IRIG audio decoder... " >&6; }
32541# Check whether --enable-IRIG was given.
32542if test "${enable_IRIG+set}" = set; then :
32543  enableval=$enable_IRIG; ntp_ok=$enableval
32544else
32545
32546	case "$ntp_eac$ntp_canaudio" in
32547	 *no*)	ntp_ok=no  ;;
32548	 *)	ntp_ok=yes ;;
32549	esac
32550
32551
32552fi
32553
32554case "$ntp_ok" in
32555 yes)
32556    ntp_refclock=yes
32557
32558$as_echo "#define CLOCK_IRIG 1" >>confdefs.h
32559
32560    ;;
32561esac
32562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32563$as_echo "$ntp_ok" >&6; }
32564case "$ntp_ok$ntp_canaudio" in
32565 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32566$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
32567esac
32568
32569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
32570$as_echo_n "checking for JJY receiver... " >&6; }
32571# Check whether --enable-JJY was given.
32572if test "${enable_JJY+set}" = set; then :
32573  enableval=$enable_JJY; ntp_ok=$enableval
32574else
32575  ntp_ok=$ntp_eac
32576
32577fi
32578
32579case "$ntp_ok" in
32580 yes)
32581    ntp_refclock=yes
32582
32583$as_echo "#define CLOCK_JJY 1" >>confdefs.h
32584
32585    ;;
32586esac
32587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32588$as_echo "$ntp_ok" >&6; }
32589
32590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
32591$as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
32592# Check whether --enable-JUPITER was given.
32593if test "${enable_JUPITER+set}" = set; then :
32594  enableval=$enable_JUPITER; ntp_ok=$enableval
32595else
32596  ntp_ok=$ntp_eac
32597fi
32598
32599case "$ntp_jupiter_ok" in
32600 no) ntp_ok=no ;;
32601esac
32602case "$ntp_ok" in
32603 yes)
32604    ntp_refclock=yes
32605
32606$as_echo "#define CLOCK_JUPITER 1" >>confdefs.h
32607
32608    ;;
32609esac
32610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32611$as_echo "$ntp_ok" >&6; }
32612
32613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
32614$as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
32615# Check whether --enable-LEITCH was given.
32616if test "${enable_LEITCH+set}" = set; then :
32617  enableval=$enable_LEITCH; ntp_ok=$enableval
32618else
32619  ntp_ok=$ntp_eac
32620
32621fi
32622
32623case "$ntp_ok" in
32624 yes)
32625    ntp_refclock=yes
32626
32627$as_echo "#define CLOCK_LEITCH 1" >>confdefs.h
32628
32629    ;;
32630esac
32631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32632$as_echo "$ntp_ok" >&6; }
32633
32634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
32635$as_echo_n "checking local clock reference... " >&6; }
32636# Check whether --enable-LOCAL-CLOCK was given.
32637if test "${enable_LOCAL_CLOCK+set}" = set; then :
32638  enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
32639else
32640  ntp_ok=$ntp_eac
32641
32642fi
32643
32644case "$ntp_ok" in
32645 yes)
32646    ntp_refclock=yes
32647
32648$as_echo "#define CLOCK_LOCAL 1" >>confdefs.h
32649
32650    ;;
32651esac
32652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32653$as_echo "$ntp_ok" >&6; }
32654
32655
32656# Not Ultrix
32657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
32658$as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
32659# Check whether --enable-MX4200 was given.
32660if test "${enable_MX4200+set}" = set; then :
32661  enableval=$enable_MX4200; ntp_ok=$enableval
32662else
32663
32664	case "$ac_cv_var_ppsclock" in
32665	 yes)
32666	    ntp_ok=$ntp_eac
32667	    ;;
32668	 *)
32669	    ntp_ok=no
32670	    ;;
32671	esac
32672
32673
32674fi
32675
32676case "$ntp_ok" in
32677 yes)
32678    ntp_refclock=yes
32679
32680$as_echo "#define CLOCK_MX4200 1" >>confdefs.h
32681
32682    ;;
32683esac
32684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32685$as_echo "$ntp_ok" >&6; }
32686case "$ntp_ok$host" in
32687 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32688$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
32689esac
32690
32691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
32692$as_echo_n "checking for NeoClock4X receiver... " >&6; }
32693# Check whether --enable-NEOCLOCK4X was given.
32694if test "${enable_NEOCLOCK4X+set}" = set; then :
32695  enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
32696else
32697  ntp_ok=$ntp_eac
32698
32699fi
32700
32701case "$ntp_ok" in
32702 yes)
32703    ntp_refclock=yes
32704
32705$as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h
32706
32707    ;;
32708esac
32709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32710$as_echo "$ntp_ok" >&6; }
32711
32712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
32713$as_echo_n "checking NMEA GPS receiver... " >&6; }
32714# Check whether --enable-NMEA was given.
32715if test "${enable_NMEA+set}" = set; then :
32716  enableval=$enable_NMEA; ntp_ok=$enableval
32717else
32718  ntp_ok=$ntp_eac
32719
32720fi
32721
32722case "$ntp_ok" in
32723 yes)
32724    ntp_refclock=yes
32725
32726$as_echo "#define CLOCK_NMEA 1" >>confdefs.h
32727
32728    ;;
32729esac
32730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32731$as_echo "$ntp_ok" >&6; }
32732
32733for ac_func in strtoll
32734do :
32735  ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
32736if test "x$ac_cv_func_strtoll" = xyes; then :
32737  cat >>confdefs.h <<_ACEOF
32738#define HAVE_STRTOLL 1
32739_ACEOF
32740
32741fi
32742done
32743
32744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
32745$as_echo_n "checking for GPSD JSON receiver... " >&6; }
32746# Check whether --enable-GPSD was given.
32747if test "${enable_GPSD+set}" = set; then :
32748  enableval=$enable_GPSD; ntp_ok=$enableval
32749else
32750  case "$ac_cv_func_strtoll" in
32751     yes) ntp_ok=$ntp_eac ;;
32752     *)   ntp_ok="no" ;;
32753    esac
32754
32755fi
32756
32757case "$ntp_ok" in
32758 yes)
32759    ntp_refclock=yes
32760
32761$as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h
32762
32763    ;;
32764esac
32765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32766$as_echo "$ntp_ok" >&6; }
32767
32768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
32769$as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
32770# Check whether --enable-ONCORE was given.
32771if test "${enable_ONCORE+set}" = set; then :
32772  enableval=$enable_ONCORE; ntp_ok=$enableval
32773else
32774  ntp_ok=$ntp_eac
32775
32776fi
32777
32778case "$ntp_oncore_ok" in
32779 no) ntp_ok=no ;;
32780esac
32781case "$ntp_ok" in
32782 yes)
32783    ntp_refclock=yes
32784
32785$as_echo "#define CLOCK_ONCORE 1" >>confdefs.h
32786
32787    ;;
32788esac
32789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32790$as_echo "$ntp_ok" >&6; }
32791
32792# Requires modem control
32793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
32794$as_echo_n "checking for Palisade clock... " >&6; }
32795# Check whether --enable-PALISADE was given.
32796if test "${enable_PALISADE+set}" = set; then :
32797  enableval=$enable_PALISADE; ntp_ok=$enableval
32798else
32799  ntp_ok=$ntp_enable_all_modem_control_clocks
32800
32801fi
32802
32803case "$ntp_ok" in
32804 yes)
32805    ntp_refclock=yes
32806
32807$as_echo "#define CLOCK_PALISADE 1" >>confdefs.h
32808
32809    ;;
32810esac
32811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32812$as_echo "$ntp_ok" >&6; }
32813
32814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
32815$as_echo_n "checking Conrad parallel port radio clock... " >&6; }
32816# Check whether --enable-PCF was given.
32817if test "${enable_PCF+set}" = set; then :
32818  enableval=$enable_PCF; ntp_ok=$enableval
32819else
32820  ntp_ok=$ntp_eac
32821
32822fi
32823
32824case "$ntp_ok" in
32825 yes)
32826    ntp_refclock=yes
32827
32828$as_echo "#define CLOCK_PCF 1" >>confdefs.h
32829
32830    ;;
32831esac
32832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32833$as_echo "$ntp_ok" >&6; }
32834
32835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
32836$as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
32837# Check whether --enable-PST was given.
32838if test "${enable_PST+set}" = set; then :
32839  enableval=$enable_PST; ntp_ok=$enableval
32840else
32841  ntp_ok=$ntp_eac
32842
32843fi
32844
32845case "$ntp_ok" in
32846 yes)
32847    ntp_refclock=yes
32848
32849$as_echo "#define CLOCK_PST 1" >>confdefs.h
32850
32851    ;;
32852esac
32853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32854$as_echo "$ntp_ok" >&6; }
32855
32856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
32857$as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
32858# Check whether --enable-RIPENCC was given.
32859if test "${enable_RIPENCC+set}" = set; then :
32860  enableval=$enable_RIPENCC; ntp_ok=$enableval
32861else
32862  ntp_ok=no
32863
32864fi
32865
32866# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
32867case "$ntp_ripe_ncc_ok" in
32868 no) ntp_ok=no ;;
32869esac
32870case "$ntp_ok" in
32871 yes)
32872    ntp_refclock=yes
32873
32874$as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h
32875
32876    ;;
32877esac
32878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32879$as_echo "$ntp_ok" >&6; }
32880
32881# Danny Meyer says SHM compiles (with a few warnings) under Win32.
32882# For *IX, we need sys/ipc.h and sys/shm.h.
32883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
32884$as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
32885# Check whether --enable-SHM was given.
32886if test "${enable_SHM+set}" = set; then :
32887  enableval=$enable_SHM; ntp_ok=$enableval
32888else
32889
32890	case "$ntp_eac$ntp_canshm" in
32891	 *no*)	ntp_ok=no  ;;
32892	 *)	ntp_ok=yes ;;
32893	esac
32894
32895
32896fi
32897
32898case "$ntp_ok" in
32899 yes)
32900    ntp_refclock=yes
32901
32902$as_echo "#define CLOCK_SHM 1" >>confdefs.h
32903
32904    ;;
32905esac
32906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32907$as_echo "$ntp_ok" >&6; }
32908
32909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
32910$as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
32911# Check whether --enable-SPECTRACOM was given.
32912if test "${enable_SPECTRACOM+set}" = set; then :
32913  enableval=$enable_SPECTRACOM; ntp_ok=$enableval
32914else
32915  ntp_ok=$ntp_eac
32916
32917fi
32918
32919case "$ntp_ok" in
32920 yes)
32921    ntp_refclock=yes
32922
32923$as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h
32924
32925    ;;
32926esac
32927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32928$as_echo "$ntp_ok" >&6; }
32929
32930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
32931$as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
32932# Check whether --enable-TPRO was given.
32933if test "${enable_TPRO+set}" = set; then :
32934  enableval=$enable_TPRO; ntp_ok=$enableval
32935else
32936
32937	case "$ac_cv_header_sys_tpro_h" in
32938	 yes)
32939	    ntp_ok=$ntp_eac
32940	    ;;
32941	 *)
32942	    ntp_ok=no
32943	    ;;
32944	esac
32945
32946
32947fi
32948
32949case "$ntp_ok" in
32950 yes)
32951    ntp_refclock=yes
32952
32953$as_echo "#define CLOCK_TPRO 1" >>confdefs.h
32954
32955    ;;
32956esac
32957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32958$as_echo "$ntp_ok" >&6; }
32959case "$ntp_ok$ac_cv_header_sys_tpro" in
32960 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32961$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
32962esac
32963
32964# Not on a vax-dec-bsd
32965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
32966$as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
32967# Check whether --enable-TRUETIME was given.
32968if test "${enable_TRUETIME+set}" = set; then :
32969  enableval=$enable_TRUETIME; ntp_ok=$enableval
32970else
32971
32972	case "$host" in
32973	 vax-dec-bsd)
32974	    ntp_ok=no
32975	    ;;
32976	 *)
32977	    ntp_ok=$ntp_eac
32978	    ;;
32979	esac
32980
32981
32982fi
32983
32984case "$ntp_ok" in
32985 yes)
32986    ntp_refclock=yes
32987
32988$as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h
32989
32990    ;;
32991esac
32992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32993$as_echo "$ntp_ok" >&6; }
32994case "$ntp_ok$host" in
32995 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32996$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
32997esac
32998
32999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
33000$as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
33001# Check whether --enable-TT560 was given.
33002if test "${enable_TT560+set}" = set; then :
33003  enableval=$enable_TT560; ntp_ok=$enableval
33004else
33005  ntp_ok=no
33006
33007fi
33008
33009case "$ntp_ok" in
33010 yes)
33011    ntp_refclock=yes
33012
33013$as_echo "#define CLOCK_TT560 /**/" >>confdefs.h
33014
33015    ;;
33016esac
33017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33018$as_echo "$ntp_ok" >&6; }
33019
33020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
33021$as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
33022# Check whether --enable-ULINK was given.
33023if test "${enable_ULINK+set}" = set; then :
33024  enableval=$enable_ULINK; ntp_ok=$enableval
33025else
33026  ntp_ok=$ntp_eac
33027
33028fi
33029
33030case "$ntp_ok" in
33031 yes)
33032    ntp_refclock=yes
33033
33034$as_echo "#define CLOCK_ULINK 1" >>confdefs.h
33035
33036    ;;
33037esac
33038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33039$as_echo "$ntp_ok" >&6; }
33040
33041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
33042$as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; }
33043# Check whether --enable-TSYNCPCI was given.
33044if test "${enable_TSYNCPCI+set}" = set; then :
33045  enableval=$enable_TSYNCPCI; ntp_ok=$enableval
33046else
33047
33048	case "$host" in
33049	 *-*-*linux*)
33050	    ntp_ok=$ntp_eac
33051	    ;;
33052	 *)
33053	    ntp_ok=no
33054	esac
33055
33056
33057fi
33058
33059case "$ntp_ok" in
33060 yes)
33061    ntp_refclock=yes
33062
33063$as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h
33064
33065    ;;
33066esac
33067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33068$as_echo "$ntp_ok" >&6; }
33069
33070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
33071$as_echo_n "checking WWV receiver... " >&6; }
33072# Check whether --enable-WWV was given.
33073if test "${enable_WWV+set}" = set; then :
33074  enableval=$enable_WWV; ntp_ok=$enableval
33075else
33076
33077	case "$ntp_eac$ntp_canaudio" in
33078	 *no*)	ntp_ok=no  ;;
33079	 *)	ntp_ok=yes ;;
33080	esac
33081
33082
33083fi
33084
33085case "$ntp_ok" in
33086 yes)
33087    ntp_refclock=yes
33088
33089$as_echo "#define CLOCK_WWV 1" >>confdefs.h
33090
33091    ;;
33092esac
33093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33094$as_echo "$ntp_ok" >&6; }
33095case "$ntp_ok$ntp_canaudio" in
33096 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33097$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33098esac
33099
33100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
33101$as_echo_n "checking for Zyfer receiver... " >&6; }
33102# Check whether --enable-ZYFER was given.
33103if test "${enable_ZYFER+set}" = set; then :
33104  enableval=$enable_ZYFER; ntp_ok=$enableval
33105else
33106  ntp_ok=$ntp_eac
33107
33108fi
33109
33110case "$ntp_ok" in
33111 yes)
33112    ntp_refclock=yes
33113
33114$as_echo "#define CLOCK_ZYFER 1" >>confdefs.h
33115
33116    ;;
33117esac
33118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33119$as_echo "$ntp_ok" >&6; }
33120
33121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
33122$as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
33123# Check whether --enable-parse-clocks was given.
33124if test "${enable_parse_clocks+set}" = set; then :
33125  enableval=$enable_parse_clocks; ntp_eapc=$enableval
33126else
33127
33128	case "$ntp_eac" in
33129	 yes)	ntp_eapc=$ntp_canparse ;;
33130	 *)	ntp_eapc=no ;;
33131	esac
33132	# Delete the next line one of these days
33133	ntp_eapc=no
33134
33135
33136fi
33137
33138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
33139$as_echo "$ntp_eapc" >&6; }
33140
33141case "$ntp_eac$ntp_eapc$ntp_canparse" in
33142 noyes*)
33143    as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
33144    ;;
33145 yesyesno)
33146    as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
33147    ;;
33148esac
33149
33150ntp_libparse=no
33151ntp_parseutil=no
33152ntp_rawdcf=no
33153
33154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
33155$as_echo_n "checking Diem Computime Radio Clock... " >&6; }
33156# Check whether --enable-COMPUTIME was given.
33157if test "${enable_COMPUTIME+set}" = set; then :
33158  enableval=$enable_COMPUTIME; ntp_ok=$enableval
33159else
33160  ntp_ok=$ntp_eapc
33161
33162fi
33163
33164case "$ntp_ok" in
33165 yes)
33166    ntp_libparse=yes
33167    ntp_refclock=yes
33168
33169$as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h
33170
33171    ;;
33172esac
33173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33174$as_echo "$ntp_ok" >&6; }
33175case "$ntp_ok$ntp_canparse" in
33176 yesno)
33177    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33178esac
33179
33180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
33181$as_echo_n "checking ELV/DCF7000 clock... " >&6; }
33182# Check whether --enable-DCF7000 was given.
33183if test "${enable_DCF7000+set}" = set; then :
33184  enableval=$enable_DCF7000; ntp_ok=$enableval
33185else
33186  ntp_ok=$ntp_eapc
33187
33188fi
33189
33190case "$ntp_ok" in
33191 yes)
33192    ntp_libparse=yes
33193    ntp_refclock=yes
33194
33195$as_echo "#define CLOCK_DCF7000 1" >>confdefs.h
33196
33197    ;;
33198esac
33199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33200$as_echo "$ntp_ok" >&6; }
33201case "$ntp_ok$ntp_canparse" in
33202 yesno)
33203    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33204esac
33205
33206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
33207$as_echo_n "checking HOPF 6021 clock... " >&6; }
33208# Check whether --enable-HOPF6021 was given.
33209if test "${enable_HOPF6021+set}" = set; then :
33210  enableval=$enable_HOPF6021; ntp_ok=$enableval
33211else
33212  ntp_ok=$ntp_eapc
33213
33214fi
33215
33216case "$ntp_ok" in
33217 yes)
33218    ntp_libparse=yes
33219    ntp_refclock=yes
33220
33221$as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h
33222
33223    ;;
33224esac
33225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33226$as_echo "$ntp_ok" >&6; }
33227case "$ntp_ok$ntp_canparse" in
33228 yesno)
33229    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33230esac
33231
33232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
33233$as_echo_n "checking Meinberg clocks... " >&6; }
33234# Check whether --enable-MEINBERG was given.
33235if test "${enable_MEINBERG+set}" = set; then :
33236  enableval=$enable_MEINBERG; ntp_ok=$enableval
33237else
33238  ntp_ok=$ntp_eapc
33239
33240fi
33241
33242case "$ntp_ok" in
33243 yes)
33244    ntp_libparse=yes
33245    ntp_refclock=yes
33246
33247$as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h
33248
33249    ;;
33250esac
33251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33252$as_echo "$ntp_ok" >&6; }
33253case "$ntp_ok$ntp_canparse" in
33254 yesno)
33255    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33256esac
33257
33258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
33259$as_echo_n "checking DCF77 raw time code... " >&6; }
33260# Check whether --enable-RAWDCF was given.
33261if test "${enable_RAWDCF+set}" = set; then :
33262  enableval=$enable_RAWDCF; ntp_ok=$enableval
33263else
33264  ntp_ok=$ntp_eapc
33265
33266fi
33267
33268case "$ntp_ok" in
33269 yes)
33270    ntp_libparse=yes
33271    ntp_parseutil=yes
33272    ntp_refclock=yes
33273    ntp_rawdcf=yes
33274
33275$as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h
33276
33277    ;;
33278esac
33279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33280$as_echo "$ntp_ok" >&6; }
33281case "$ntp_ok$ntp_canparse" in
33282 yesno)
33283    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33284esac
33285
33286case "$ntp_rawdcf" in
33287 yes)
33288    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
33289$as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
33290if ${ntp_cv_rawdcf_parity+:} false; then :
33291  $as_echo_n "(cached) " >&6
33292else
33293
33294	    ans=no
33295	    case "$host" in
33296	     *-*-*linux*)
33297		ans=yes
33298		;;
33299	    esac
33300	    ntp_cv_rawdcf_parity=$ans
33301
33302
33303fi
33304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5
33305$as_echo "$ntp_cv_rawdcf_parity" >&6; }
33306    case "$ntp_cv_rawdcf_parity" in
33307     yes)
33308
33309$as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
33310 ;;
33311    esac
33312esac
33313
33314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
33315$as_echo_n "checking RCC 8000 clock... " >&6; }
33316# Check whether --enable-RCC8000 was given.
33317if test "${enable_RCC8000+set}" = set; then :
33318  enableval=$enable_RCC8000; ntp_ok=$enableval
33319else
33320  ntp_ok=$ntp_eapc
33321
33322fi
33323
33324case "$ntp_ok" in
33325 yes)
33326    ntp_libparse=yes
33327    ntp_refclock=yes
33328
33329$as_echo "#define CLOCK_RCC8000 1" >>confdefs.h
33330
33331    ;;
33332esac
33333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33334$as_echo "$ntp_ok" >&6; }
33335case "$ntp_ok$ntp_canparse" in
33336 yesno)
33337    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33338esac
33339
33340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
33341$as_echo_n "checking Schmid DCF77 clock... " >&6; }
33342# Check whether --enable-SCHMID was given.
33343if test "${enable_SCHMID+set}" = set; then :
33344  enableval=$enable_SCHMID; ntp_ok=$enableval
33345else
33346  ntp_ok=$ntp_eapc
33347
33348fi
33349
33350case "$ntp_ok" in
33351 yes)
33352    ntp_libparse=yes
33353    ntp_refclock=yes
33354
33355$as_echo "#define CLOCK_SCHMID 1" >>confdefs.h
33356
33357    ;;
33358esac
33359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33360$as_echo "$ntp_ok" >&6; }
33361case "$ntp_ok$ntp_canparse" in
33362 yesno)
33363    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33364esac
33365
33366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
33367$as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
33368# Check whether --enable-TRIMTAIP was given.
33369if test "${enable_TRIMTAIP+set}" = set; then :
33370  enableval=$enable_TRIMTAIP; ntp_ok=$enableval
33371else
33372  ntp_ok=$ntp_eapc
33373
33374fi
33375
33376case "$ntp_ok" in
33377 yes)
33378    ntp_libparse=yes
33379    ntp_refclock=yes
33380
33381$as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h
33382
33383    ;;
33384esac
33385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33386$as_echo "$ntp_ok" >&6; }
33387case "$ntp_ok$ntp_canparse" in
33388 yesno)
33389    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33390esac
33391
33392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
33393$as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
33394# Check whether --enable-TRIMTSIP was given.
33395if test "${enable_TRIMTSIP+set}" = set; then :
33396  enableval=$enable_TRIMTSIP; ntp_ok=$enableval
33397else
33398  ntp_ok=$ntp_eapc
33399
33400fi
33401
33402case "$ntp_ok" in
33403 yes)
33404    ntp_libparse=yes
33405    ntp_refclock=yes
33406
33407$as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h
33408
33409    ;;
33410esac
33411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33412$as_echo "$ntp_ok" >&6; }
33413case "$ntp_ok$ntp_canparse" in
33414 yesno)
33415    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33416esac
33417
33418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
33419$as_echo_n "checking WHARTON 400A Series clock... " >&6; }
33420# Check whether --enable-WHARTON was given.
33421if test "${enable_WHARTON+set}" = set; then :
33422  enableval=$enable_WHARTON; ntp_ok=$enableval
33423else
33424  ntp_ok=$ntp_eapc
33425
33426fi
33427
33428case "$ntp_ok" in
33429 yes)
33430    ntp_libparse=yes
33431    ntp_refclock=yes
33432
33433$as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h
33434
33435    ;;
33436esac
33437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33438$as_echo "$ntp_ok" >&6; }
33439case "$ntp_ok$ntp_canparse" in
33440 yesno)
33441    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33442esac
33443
33444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
33445$as_echo_n "checking VARITEXT clock... " >&6; }
33446# Check whether --enable-VARITEXT was given.
33447if test "${enable_VARITEXT+set}" = set; then :
33448  enableval=$enable_VARITEXT; ntp_ok=$enableval
33449else
33450  ntp_ok=$ntp_eapc
33451
33452fi
33453
33454case "$ntp_ok" in
33455 yes)
33456    ntp_libparse=yes
33457    ntp_refclock=yes
33458
33459$as_echo "#define CLOCK_VARITEXT 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$ntp_canparse" in
33466 yesno)
33467    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33468esac
33469
33470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
33471$as_echo_n "checking SEL240X clock... " >&6; }
33472# Check whether --enable-SEL240X was given.
33473if test "${enable_SEL240X+set}" = set; then :
33474  enableval=$enable_SEL240X; ntp_ok=$enableval
33475else
33476  ntp_ok=$ntp_eapc
33477fi
33478
33479if test "$ntp_ok" = "yes"; then
33480    ntp_libparse=yes
33481    ntp_refclock=yes
33482
33483$as_echo "#define CLOCK_SEL240X 1" >>confdefs.h
33484
33485fi
33486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33487$as_echo "$ntp_ok" >&6; }
33488case "$ntp_ok$ntp_canparse" in
33489 yesno)
33490    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33491    ;;
33492esac
33493
33494
33495
33496
33497
33498
33499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
33500$as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
33501ans=no
33502case "$ntp_libparse" in
33503 yes)
33504    ans=yes
33505
33506$as_echo "#define CLOCK_PARSE 1" >>confdefs.h
33507
33508    LIBPARSE=../libparse/libparse.a
33509    MAKE_LIBPARSE=libparse.a
33510    # HMS: check_y2k trips the 34 year problem now...
33511    false && MAKE_CHECK_Y2K=check_y2k
33512esac
33513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33514$as_echo "$ans" >&6; }
33515
33516
33517
33518
33519VER_SUFFIX=
33520
33521
33522
33523
33524# Check whether --with-crypto was given.
33525if test "${with_crypto+set}" = set; then :
33526  withval=$with_crypto;
33527fi
33528
33529
33530# Check whether --with-openssl-libdir was given.
33531if test "${with_openssl_libdir+set}" = set; then :
33532  withval=$with_openssl_libdir;
33533fi
33534
33535
33536# Check whether --with-openssl-incdir was given.
33537if test "${with_openssl_incdir+set}" = set; then :
33538  withval=$with_openssl_incdir;
33539fi
33540
33541
33542# Check whether --with-rpath was given.
33543if test "${with_rpath+set}" = set; then :
33544  withval=$with_rpath;
33545fi
33546
33547ntp_openssl=no
33548ntp_openssl_from_pkg_config=no
33549with_crypto=${with_crypto:-openssl,libcrypto}
33550case "$with_crypto" in
33551 yes)
33552    with_crypto=openssl,libcrypto
33553esac
33554case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
33555 no:*) ;;
33556 *:notempty:notgiven:notgiven)
33557    for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
33558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
33559$as_echo_n "checking pkg-config for $pkg... " >&6; }
33560	if $PKG_CONFIG --exists $pkg ; then
33561	    CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
33562	    CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
33563	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
33564	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
33565	    LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
33566	    VER_SUFFIX=o
33567	    ntp_openssl=yes
33568	    ntp_openssl_from_pkg_config=yes
33569	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33570$as_echo "yes" >&6; }
33571
33572	    break
33573	fi
33574	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33575$as_echo "no" >&6; }
33576    done
33577esac
33578case "$with_crypto:$ntp_openssl" in
33579 no:*) ;;
33580 *:no)
33581    need_dash_r=
33582    need_dash_Wlrpath=
33583    case "${with_rpath-notgiven}" in
33584     yes)
33585	# Lame - what to do if we need -Wl... but not -R?
33586	need_dash_r=1
33587	;;
33588     notgiven)
33589	case "$host" in
33590	 *-*-linux*)
33591	    # This may really only be true for gcc
33592	    need_dash_Wlrpath=1
33593	    ;;
33594	 *-*-netbsd*)
33595	    need_dash_r=1
33596	    ;;
33597	 *-*-solaris*)
33598	    need_dash_r=1
33599	    ;;
33600	esac
33601	;;
33602    esac
33603
33604    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
33605$as_echo_n "checking for openssl library directory... " >&6; }
33606    with_openssl_libdir=${with_openssl_libdir-notgiven}
33607    case "$with_openssl_libdir" in
33608     notgiven)
33609	case "$build" in
33610	 $host)
33611	    with_openssl_libdir=default
33612	    ;;
33613	 *)
33614	    with_openssl_libdir=no
33615	    ;;
33616	esac
33617    esac
33618    case "$with_openssl_libdir" in
33619     default)
33620	# Look in:
33621	with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
33622	with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
33623	with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
33624    esac
33625    case "$with_openssl_libdir" in
33626     no)
33627	;;
33628     *) # Look for libcrypto.a and libssl.a:
33629	for i in $with_openssl_libdir no
33630	do
33631	    case "$host" in
33632	     *-*-darwin*)
33633		test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
33634		;;
33635	     *)
33636		test -f $i/libcrypto.so -a -f $i/libssl.so && break
33637		test -f $i/libcrypto.a -a -f $i/libssl.a && break
33638		;;
33639	    esac
33640	done
33641	openssl_libdir=$i
33642	;;
33643    esac
33644    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
33645$as_echo "$openssl_libdir" >&6; }
33646    case "$openssl_libdir" in
33647     no)
33648	openssl_libdir=
33649	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
33650$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
33651    esac
33652
33653    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
33654$as_echo_n "checking for openssl include directory... " >&6; }
33655    with_openssl_incdir=${with_openssl_incdir-notgiven}
33656    case "$with_openssl_incdir" in
33657     notgiven)
33658	# Look in:
33659	with_openssl_incdir="/usr/include /usr/sfw/include"
33660	with_openssl_incdir="$with_openssl_incdir /usr/local/include"
33661	with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
33662    esac
33663    case "$with_openssl_incdir" in
33664     no)
33665	;;
33666     *) # look for openssl/evp.h:
33667	for i in $with_openssl_incdir no
33668	do
33669	    test -f $i/openssl/evp.h && break
33670	done
33671	openssl_incdir=$i
33672	;;
33673    esac
33674    { i=; unset i;}
33675    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
33676$as_echo "$openssl_incdir" >&6; }
33677    case "$openssl_incdir" in
33678     no)
33679	openssl_incdir=
33680	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
33681$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
33682    esac
33683    if test -z "$openssl_libdir" -o -z "$openssl_incdir"
33684    then
33685	ntp_openssl=no
33686    else
33687	ntp_openssl=yes
33688	VER_SUFFIX=o
33689    fi
33690    case "$ntp_openssl" in
33691     yes)
33692	# We have OpenSSL inc/lib dirs - use them.
33693	case "$openssl_incdir" in
33694	 /usr/include)
33695	    ;;
33696	 *)
33697	    CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
33698	    ;;
33699	esac
33700	case "$openssl_libdir" in
33701	 /usr/lib)
33702	    ;;
33703	 *)
33704	    LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
33705	    case "$need_dash_r" in
33706	     1)
33707		LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
33708	    esac
33709	    case "$need_dash_Wlrpath" in
33710	     1)
33711		LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
33712	    esac
33713	    ;;
33714	esac
33715	LDADD_NTP="$LDADD_NTP -lcrypto"
33716    esac
33717esac
33718
33719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
33720$as_echo_n "checking if we will use crypto... " >&6; }
33721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
33722$as_echo "$ntp_openssl" >&6; }
33723
33724case "$ntp_openssl" in
33725 yes)
33726
33727$as_echo "#define OPENSSL /**/" >>confdefs.h
33728
33729    case "$VER_SUFFIX" in
33730     *o*) ;;
33731     *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
33732    esac
33733    ;;
33734esac
33735
33736NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
33737CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
33738NTPO_SAVED_LIBS="$LIBS"
33739
33740#
33741# check for linking with -lcrypto failure, and try -lcrypto -lz.
33742# Helps m68k-atari-mint
33743#
33744case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
33745 yes:no)
33746    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
33747    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
33748$as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
33749if ${ntp_cv_bare_lcrypto+:} false; then :
33750  $as_echo_n "(cached) " >&6
33751else
33752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33753/* end confdefs.h.  */
33754
33755		    #include "openssl/err.h"
33756		    #include "openssl/evp.h"
33757
33758int
33759main ()
33760{
33761
33762		    ERR_load_crypto_strings();
33763		    OpenSSL_add_all_algorithms();
33764
33765
33766  ;
33767  return 0;
33768}
33769_ACEOF
33770if ac_fn_c_try_link "$LINENO"; then :
33771  ntp_cv_bare_lcrypto=yes
33772else
33773  ntp_cv_bare_lcrypto=no
33774
33775fi
33776rm -f core conftest.err conftest.$ac_objext \
33777    conftest$ac_exeext conftest.$ac_ext
33778
33779fi
33780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
33781$as_echo "$ntp_cv_bare_lcrypto" >&6; }
33782    case "$ntp_cv_bare_lcrypto" in
33783     no)
33784	LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
33785	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
33786$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
33787if ${ntp_cv_lcrypto_lz+:} false; then :
33788  $as_echo_n "(cached) " >&6
33789else
33790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33791/* end confdefs.h.  */
33792
33793			#include "openssl/err.h"
33794			#include "openssl/evp.h"
33795
33796int
33797main ()
33798{
33799
33800			ERR_load_crypto_strings();
33801			OpenSSL_add_all_algorithms();
33802
33803
33804  ;
33805  return 0;
33806}
33807_ACEOF
33808if ac_fn_c_try_link "$LINENO"; then :
33809  ntp_cv_lcrypto_lz=yes
33810else
33811  ntp_cv_lcrypto_lz=no
33812
33813fi
33814rm -f core conftest.err conftest.$ac_objext \
33815    conftest$ac_exeext conftest.$ac_ext
33816
33817fi
33818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
33819$as_echo "$ntp_cv_lcrypto_lz" >&6; }
33820	case "$ntp_cv_lcrypto_lz" in
33821	 yes)
33822	     LDADD_NTP="$LDADD_NTP -lz"
33823	esac
33824    esac
33825esac
33826
33827#
33828# Older OpenSSL headers have a number of callback prototypes inside
33829# other function prototypes which trigger copious warnings with gcc's
33830# -Wstrict-prototypes, which is included in -Wall.
33831#
33832# An example:
33833#
33834# int i2d_RSA_NET(const RSA *a, unsigned char **pp,
33835#		  int (*cb)(), int sgckey);
33836#		  ^^^^^^^^^^^
33837#
33838#
33839#
33840openssl_triggers_warnings=unknown
33841NTPO_SAVED_CFLAGS="$CFLAGS"
33842
33843case "$ntp_openssl:$GCC" in
33844 yes:yes)
33845    CFLAGS="$CFLAGS -Werror"
33846    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33847/* end confdefs.h.  */
33848
33849
33850int
33851main ()
33852{
33853
33854		/* see if -Werror breaks gcc */
33855
33856
33857  ;
33858  return 0;
33859}
33860_ACEOF
33861if ac_fn_c_try_compile "$LINENO"; then :
33862  gcc_handles_Werror=yes
33863else
33864  gcc_handles_Werror=no
33865
33866fi
33867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33868    case "$gcc_handles_Werror" in
33869     no)
33870	# if this gcc doesn't do -Werror go ahead and use
33871	# -Wstrict-prototypes.
33872	openssl_triggers_warnings=yes
33873	;;
33874     yes)
33875	CFLAGS="$CFLAGS -Wstrict-prototypes"
33876	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33877/* end confdefs.h.  */
33878
33879		    #include "openssl/asn1_mac.h"
33880		    #include "openssl/bn.h"
33881		    #include "openssl/err.h"
33882		    #include "openssl/evp.h"
33883		    #include "openssl/pem.h"
33884		    #include "openssl/rand.h"
33885		    #include "openssl/x509v3.h"
33886
33887int
33888main ()
33889{
33890
33891		    /* empty body */
33892
33893
33894  ;
33895  return 0;
33896}
33897_ACEOF
33898if ac_fn_c_try_compile "$LINENO"; then :
33899  openssl_triggers_warnings=no
33900else
33901  openssl_triggers_warnings=yes
33902
33903fi
33904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33905    esac
33906    case "$openssl_triggers_warnings" in
33907     yes)
33908	CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
33909	;;
33910     *)
33911	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
33912    esac
33913    ;;
33914 no:yes)
33915    # gcc without OpenSSL
33916    CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
33917esac
33918
33919CFLAGS="$NTPO_SAVED_CFLAGS"
33920CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
33921LIBS="$NTPO_SAVED_LIBS"
33922{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
33923{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
33924{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
33925{ openssl_triggers_warnings=; unset openssl_triggers_warnings;}
33926{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
33927
33928
33929
33930
33931
33932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5
33933$as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; }
33934# Check whether --enable-openssl-random was given.
33935if test "${enable_openssl_random+set}" = set; then :
33936  enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval
33937else
33938  ntp_use_openssl_random=yes
33939
33940fi
33941
33942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
33943$as_echo "$ntp_use_openssl_random" >&6; }
33944
33945# The following might need extra libraries
33946NTPO_SAVED_LIBS="$LIBS"
33947LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
33948for ac_func in RAND_bytes RAND_poll
33949do :
33950  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33951ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
33952if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
33953  cat >>confdefs.h <<_ACEOF
33954#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33955_ACEOF
33956
33957fi
33958done
33959
33960LIBS="$NTPO_SAVED_LIBS"
33961case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
33962 yesyesyes)
33963
33964$as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h
33965
33966     ;;
33967 *) ntp_use_openssl_random=no ;;
33968esac
33969
33970
33971
33972# if we are using OpenSSL (--with-crypto), by default Autokey is enabled
33973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
33974$as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; }
33975# Check whether --enable-autokey was given.
33976if test "${enable_autokey+set}" = set; then :
33977  enableval=$enable_autokey; ntp_autokey=$enableval
33978else
33979  ntp_autokey=$ntp_openssl
33980
33981fi
33982
33983case "$ntp_autokey" in
33984 no)
33985    ;;
33986 *)
33987    case "$ntp_openssl" in
33988     no)
33989	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
33990$as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
33991	ntp_autokey=no
33992	;;
33993     *)
33994
33995$as_echo "#define AUTOKEY 1" >>confdefs.h
33996
33997	ntp_autokey=yes
33998	;;
33999    esac
34000    ;;
34001esac
34002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
34003$as_echo "$ntp_autokey" >&6; }
34004
34005
34006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
34007$as_echo_n "checking if we want to run check-layout... " >&6; }
34008case "$cross_compiling$PATH_PERL" in
34009 no/*)
34010    MAKE_CHECK_LAYOUT=check-layout
34011    ans=yes
34012    ;;
34013 *)
34014    ans=no
34015    ;;
34016esac
34017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34018$as_echo "$ans" >&6; }
34019
34020
34021
34022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
34023$as_echo_n "checking if we can make dcf parse utilities... " >&6; }
34024ans=no
34025case "$ntp_parseutil" in
34026 yes)
34027    case "$host" in
34028     *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
34029	ans="dcfd testdcf"
34030	DCFD=dcfd
34031	TESTDCF=testdcf
34032    esac
34033    ;;
34034esac
34035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34036$as_echo "$ans" >&6; }
34037
34038
34039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
34040$as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
34041ans=no
34042case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
34043 yesyes)
34044    case "$host" in
34045     sparc-*-sunos4*)
34046        case "$ntp_cv_var_kernel_pll" in
34047	yes)
34048
34049$as_echo "#define PPS_SYNC 1" >>confdefs.h
34050
34051	    ;;
34052	esac
34053	ans=parsestreams
34054	MAKE_PARSEKMODULE=parsestreams.loadable_module.o
34055	;;
34056     sparc-*-solaris2*)
34057	ans=parsesolaris
34058	MAKE_PARSEKMODULE=parse
34059	for ac_header in strings.h
34060do :
34061  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
34062if test "x$ac_cv_header_strings_h" = xyes; then :
34063  cat >>confdefs.h <<_ACEOF
34064#define HAVE_STRINGS_H 1
34065_ACEOF
34066
34067fi
34068
34069done
34070
34071	;;
34072    esac
34073    ;;
34074esac
34075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34076$as_echo "$ans" >&6; }
34077
34078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
34079$as_echo_n "checking if we need basic refclock support... " >&6; }
34080case "$ntp_refclock" in
34081 yes)
34082
34083$as_echo "#define REFCLOCK 1" >>confdefs.h
34084
34085    ;;
34086esac
34087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
34088$as_echo "$ntp_refclock" >&6; }
34089
34090PROPDELAY=propdelay
34091
34092
34093
34094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
34095$as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
34096case "$host" in
34097 *-*-hpux[56789]*)
34098    ans=yes
34099    ;;
34100 *) ans=no
34101    ;;
34102esac
34103case "$ans" in
34104 yes)
34105    MAKE_ADJTIMED=adjtimed
34106
34107$as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
34108
34109    ;;
34110 *) ADJTIMED_DB=
34111    ADJTIMED_DL=
34112    ADJTIMED_DS=
34113    ADJTIMED_MS=
34114    ;;
34115esac
34116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34117$as_echo "$ans" >&6; }
34118
34119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
34120$as_echo_n "checking if we want QNX adjtime support... " >&6; }
34121case "$host" in
34122 *-*-qnx*)
34123    ans=yes
34124    ;;
34125 *) ans=no
34126    ;;
34127esac
34128case "$ans" in
34129 yes)
34130
34131$as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h
34132
34133    ;;
34134esac
34135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34136$as_echo "$ans" >&6; }
34137
34138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
34139$as_echo_n "checking if we can read kmem... " >&6; }
34140
34141#  the default is to enable it if the system has the capability
34142
34143case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
34144 *yes*)
34145    ans=yes
34146    ;;
34147 *) ans=no
34148    ;;
34149esac
34150
34151case "$host" in
34152 *-*-domainos)	# Won't be found...
34153    ans=no
34154    ;;
34155 *-*-hpux*)
34156    #ans=no
34157    ;;
34158 *-*-irix[456]*)
34159    ans=no
34160    ;;
34161 *-*-*linux*)
34162    ans=no
34163    ;;
34164 *-*-winnt3.5)
34165    ans=no
34166    ;;
34167 *-*-unicosmp*)
34168    ans=no
34169    ;;
34170esac
34171
34172# --enable-kmem / --disable-kmem controls if present
34173# Check whether --enable-kmem was given.
34174if test "${enable_kmem+set}" = set; then :
34175  enableval=$enable_kmem; ans=$enableval
34176
34177fi
34178
34179
34180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34181$as_echo "$ans" >&6; }
34182
34183case "$ans" in
34184 yes)
34185    can_kmem=yes
34186    ;;
34187 *)
34188    can_kmem=no
34189
34190$as_echo "#define NOKMEM 1" >>confdefs.h
34191
34192esac
34193
34194
34195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
34196$as_echo_n "checking if adjtime is accurate... " >&6; }
34197
34198# target-dependent defaults
34199
34200case "$host" in
34201 i386-sequent-ptx*)
34202    ans=no
34203    ;;
34204 i386-unknown-osf1*)
34205    ans=yes
34206    ;;
34207 mips-sgi-irix[456]*)
34208    ans=yes
34209    ;;
34210 *-fujitsu-uxp*)
34211    ans=yes
34212    ;;
34213 *-ibm-aix[4-9]*)
34214    # XXX only verified thru AIX6.
34215    ans=yes
34216    ;;
34217 *-*-*linux*)
34218    ans=yes
34219    ;;
34220 *-*-solaris2.[01])
34221    ans=no
34222    ;;
34223 *-*-solaris2*)
34224    ans=yes
34225    ;;
34226 *-*-unicosmp*)
34227    ans=yes
34228    ;;
34229 *) ans=no
34230    ;;
34231esac
34232
34233# --enable-accurate-adjtime / --disable-accurate-adjtime
34234# override the default
34235# Check whether --enable-accurate-adjtime was given.
34236if test "${enable_accurate_adjtime+set}" = set; then :
34237  enableval=$enable_accurate_adjtime; ans=$enableval
34238
34239fi
34240
34241
34242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34243$as_echo "$ans" >&6; }
34244
34245case "$ans" in
34246 yes)
34247
34248$as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
34249
34250    adjtime_is_accurate=yes
34251    ;;
34252 *)
34253    adjtime_is_accurate=no
34254    ;;
34255esac
34256
34257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
34258$as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
34259if ${ntp_cv_nlist_tick+:} false; then :
34260  $as_echo_n "(cached) " >&6
34261else
34262
34263	ans=_tick
34264	case "$host" in
34265	 m68*-hp-hpux*) # HP9000/300?
34266	    ans=_old_tick
34267	    ;;
34268	 *-apple-aux[23]*)
34269	    ans=tick
34270	    ;;
34271	 *-hp-hpux*)
34272	    ans=old_tick
34273	    ;;
34274	 *-ibm-aix[3-9]*)
34275	    # XXX only verified thru AIX6.
34276	    ans=no
34277	    ;;
34278	 *-*-mpeix*)
34279	    ans=no
34280	    ;;
34281	 *-*-ptx*)
34282	    ans=tick
34283	    ;;
34284	 *-*-sco3.2v[45]*)
34285	    ans=no
34286	    ;;
34287	 *-*-solaris2*)
34288	    ans=nsec_per_tick
34289	    ;;
34290	 *-*-sysv4*)
34291	    ans=tick
34292	    ;;
34293	esac
34294	ntp_cv_nlist_tick=$ans
34295
34296
34297fi
34298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5
34299$as_echo "$ntp_cv_nlist_tick" >&6; }
34300case "$ntp_cv_nlist_tick" in
34301 ''|no)
34302    ;;	# HMS: I think we can only get 'no' here...
34303 *)
34304
34305cat >>confdefs.h <<_ACEOF
34306#define K_TICK_NAME "$ntp_cv_nlist_tick"
34307_ACEOF
34308
34309esac
34310
34311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
34312$as_echo_n "checking for the units of 'tick'... " >&6; }
34313if ${ntp_cv_tick_nano+:} false; then :
34314  $as_echo_n "(cached) " >&6
34315else
34316
34317	ans=usec
34318	case "$host" in
34319	 *-*-solaris2*)
34320	    ans=nsec
34321	    ;;
34322	esac
34323	ntp_cv_tick_nano=$ans
34324
34325
34326fi
34327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5
34328$as_echo "$ntp_cv_tick_nano" >&6; }
34329case "$ntp_cv_tick_nano" in
34330 nsec)
34331
34332$as_echo "#define TICK_NANO 1" >>confdefs.h
34333
34334esac
34335
34336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
34337$as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
34338if ${ntp_cv_nlist_tickadj+:} false; then :
34339  $as_echo_n "(cached) " >&6
34340else
34341
34342	ans=_tickadj
34343	case "$host" in
34344	 m68*-hp-hpux*) # HP9000/300?
34345	    ans=_tickadj
34346	    ;;
34347	 *-apple-aux[23]*)
34348	    ans=tickadj
34349	    ;;
34350	 *-hp-hpux10*)
34351	    ans=no
34352	    ;;
34353	 *-hp-hpux9*)
34354	    ans=no
34355	    ;;
34356	 *-hp-hpux*)
34357	    ans=tickadj
34358	    ;;
34359	 *-*-aix*)
34360	    ans=tickadj
34361	    ;;
34362	 *-*-mpeix*)
34363	    ans=no
34364	    ;;
34365	 *-*-ptx*)
34366	    ans=tickadj
34367	    ;;
34368	 *-*-sco3.2v4*)
34369	    ans=no
34370	    ;;
34371	 *-*-sco3.2v5.0*)
34372	    ans=clock_drift
34373	    ;;
34374	 *-*-solaris2*)
34375	    ans=no	# hrestime_adj
34376	    ;;
34377	 *-*-sysv4*)
34378	    ans=tickadj
34379	    ;;
34380	esac
34381	ntp_cv_nlist_tickadj=$ans
34382
34383
34384fi
34385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5
34386$as_echo "$ntp_cv_nlist_tickadj" >&6; }
34387case "$ntp_cv_nlist_tickadj" in
34388 ''|no)
34389    ;;	# HMS: I think we can only get 'no' here...
34390 *)
34391
34392cat >>confdefs.h <<_ACEOF
34393#define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj"
34394_ACEOF
34395
34396esac
34397
34398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
34399$as_echo_n "checking for the units of 'tickadj'... " >&6; }
34400if ${ntp_cv_tickadj_nano+:} false; then :
34401  $as_echo_n "(cached) " >&6
34402else
34403
34404	ans=usec
34405	case "$host" in
34406	 *-*-solaris2*)
34407	    ans=nsec
34408	    ;;
34409	esac
34410	ntp_cv_tickadj_nano=$ans
34411
34412
34413fi
34414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5
34415$as_echo "$ntp_cv_tickadj_nano" >&6; }
34416case "$ntp_cv_tickadj_nano" in
34417 nsec)
34418
34419$as_echo "#define TICKADJ_NANO 1" >>confdefs.h
34420
34421esac
34422
34423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
34424$as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
34425if ${ntp_cv_nlist_dosynctodr+:} false; then :
34426  $as_echo_n "(cached) " >&6
34427else
34428
34429	case "$host" in
34430	 *-apple-aux[23]*)
34431	    ans=no
34432	    ;;
34433	 *-sni-sysv*)
34434	    ans=dosynctodr
34435	    ;;
34436	 *-*-aix*)
34437	    ans=dosynctodr
34438	    ;;
34439	 *-*-hpux*)
34440	    ans=no
34441	    ;;
34442	 *-*-mpeix*)
34443	    ans=no
34444	    ;;
34445	 *-*-nextstep*)
34446	    ans=_dosynctodr
34447	    ;;
34448	 *-*-ptx*)
34449	    ans=doresettodr
34450	    ;;
34451	 *-*-sco3.2v4*)
34452	    ans=no
34453	    ;;
34454	 *-*-sco3.2v5*)
34455	    ans=track_rtc
34456	    ;;
34457	 *-*-solaris2*)
34458	    ans=dosynctodr
34459	    ;;
34460	 *-*-sysv4*)
34461	    ans=doresettodr
34462	    ;;
34463	 *)
34464	    ans=_dosynctodr
34465	    ;;
34466	esac
34467	ntp_cv_nlist_dosynctodr=$ans
34468
34469
34470fi
34471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5
34472$as_echo "$ntp_cv_nlist_dosynctodr" >&6; }
34473case "$ntp_cv_nlist_dosynctodr" in
34474 no)
34475    ;;
34476 *)
34477
34478cat >>confdefs.h <<_ACEOF
34479#define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr"
34480_ACEOF
34481
34482    ;;
34483esac
34484
34485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
34486$as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
34487if ${ntp_cv_nlist_noprintf+:} false; then :
34488  $as_echo_n "(cached) " >&6
34489else
34490
34491	case "$host" in
34492	 *-apple-aux[23]*)
34493	    ans=no
34494	    ;;
34495	 *-sni-sysv*)
34496	    ans=noprintf
34497	    ;;
34498	 *-*-aix*)
34499	    ans=noprintf
34500	    ;;
34501	 *-*-hpux*)
34502	    ans=no
34503	    ;;
34504	 *-*-mpeix*)
34505	    ans=no
34506	    ;;
34507	 *-*-ptx*)
34508	    ans=noprintf
34509	    ;;
34510	 *-*-nextstep*)
34511	    ans=_noprintf
34512	    ;;
34513	 *-*-solaris2*)
34514	    ans=noprintf
34515	    ;;
34516	 *-*-sysv4*)
34517	    ans=noprintf
34518	    ;;
34519	 *)
34520	    ans=_noprintf
34521	    ;;
34522	esac
34523	ntp_cv_nlist_noprintf=$ans
34524
34525
34526fi
34527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5
34528$as_echo "$ntp_cv_nlist_noprintf" >&6; }
34529case "$ntp_cv_nlist_noprintf" in
34530 no)
34531    ;;
34532 *)
34533
34534cat >>confdefs.h <<_ACEOF
34535#define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf"
34536_ACEOF
34537
34538    ;;
34539esac
34540
34541
34542
34543
34544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
34545$as_echo_n "checking for a default value for 'tick'... " >&6; }
34546
34547# target-dependent default for tick
34548
34549case "$host" in
34550 *-*-pc-cygwin*)
34551    as_fn_error $? "tick needs work for cygwin" "$LINENO" 5
34552    ;;
34553 *-univel-sysv*)
34554    ans=10000
34555    ;;
34556 *-*-irix*)
34557    ans=10000
34558    ;;
34559 *-*-*linux*)
34560    ans=txc.tick
34561    ;;
34562 *-*-mpeix*)
34563    ans=no
34564    ;;
34565 *-*-winnt3.5)
34566    ans='(every / 10)'
34567    ;;
34568 *-*-unicosmp*)
34569    ans=10000
34570    ;;
34571 *)
34572    ans='1000000L/hz'
34573    ;;
34574esac
34575
34576# Check whether --enable-tick was given.
34577if test "${enable_tick+set}" = set; then :
34578  enableval=$enable_tick; ans=$enableval
34579
34580fi
34581
34582
34583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34584$as_echo "$ans" >&6; }
34585
34586case "$ans" in
34587 ''|no)
34588    ;;	# HMS: I think we can only get 'no' here...
34589 *)
34590
34591cat >>confdefs.h <<_ACEOF
34592#define PRESET_TICK $ans
34593_ACEOF
34594
34595esac
34596
34597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
34598$as_echo_n "checking for a default value for 'tickadj'... " >&6; }
34599
34600# target-specific default
34601ans='500/hz'
34602case "$host" in
34603 *-fujitsu-uxp*)
34604    case "$adjtime_is_accurate" in
34605     yes)
34606	ans='tick/16'
34607    esac
34608    ;;
34609 *-univel-sysv*)
34610    ans=80
34611    ;;
34612 *-*-aix*)
34613    case "$can_kmem" in
34614     no)
34615	ans=1000
34616	;;
34617    esac
34618    ;;
34619 *-*-domainos)	# Skippy: won't be found...
34620    case "$can_kmem" in
34621     no)
34622	ans=668
34623	;;
34624    esac
34625    ;;
34626 *-*-hpux*)
34627    case "$adjtime_is_accurate" in
34628     yes)
34629	ans='tick/16'
34630	;;
34631    esac
34632    ;;
34633 *-*-irix*)
34634    ans=150
34635    ;;
34636 *-*-mpeix*)
34637    ans=no
34638    ;;
34639 *-*-sco3.2v5.0*)
34640    ans=10000L/hz
34641    ;;
34642 *-*-winnt3.5)
34643    ans=50
34644    ;;
34645 *-*-unicosmp*)
34646    ans=150
34647    ;;
34648esac
34649
34650# Check whether --enable-tickadj was given.
34651if test "${enable_tickadj+set}" = set; then :
34652  enableval=$enable_tickadj; ans=$enableval
34653
34654fi
34655
34656
34657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34658$as_echo "$ans" >&6; }
34659
34660default_tickadj=$ans
34661
34662case "$default_tickadj" in
34663 ''|no)
34664    ;;	# HMS: I think we can only get 'no' here...
34665 *)
34666
34667cat >>confdefs.h <<_ACEOF
34668#define PRESET_TICKADJ $default_tickadj
34669_ACEOF
34670 ;;
34671esac
34672
34673# Newer versions of ReliantUNIX round adjtime() values down to
34674# 1/100s (system tick). Sigh ...
34675# Unfortunately, there is no easy way to know if particular release
34676# has this "feature" or any obvious way to test for it.
34677case "$host" in
34678 mips-sni-sysv4*)
34679
34680$as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
34681
34682esac
34683
34684case "$host" in
34685 *-*-sco3.2v5*)
34686
34687$as_echo "#define SCO5_CLOCK 1" >>confdefs.h
34688
34689esac
34690
34691ntp_cv_make_tickadj=yes
34692case "$can_kmem$ac_cv_var_tick$default_tickadj" in
34693 nonono)	# Don't read KMEM, no presets.  Bogus.
34694    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&5
34695$as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&2;}
34696    ntp_cv_make_tickadj=no
34697    ;;
34698 nono*)		# Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
34699    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&5
34700$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&2;}
34701    ntp_cv_make_tickadj=no
34702    ;;
34703 no*no)		# Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Bogus.
34704    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&5
34705$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&2;}
34706    ntp_cv_make_tickadj=no
34707    ;;
34708 no*)		# Don't read KMEM, PRESET_TICK and PRESET_TICKADJ.  Cool.
34709    ;;
34710 yesnono)	# Read KMEM, no presets.  Cool.
34711    ;;
34712 yesno*)	# Read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
34713    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&5
34714$as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&2;}
34715    ;;
34716 yes*no)	# Read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Cool.
34717    ;;
34718 yes*)		# READ KMEM, PRESET_TICK and PRESET_TICKADJ.
34719    ;;
34720 *)		# Generally bogus.
34721    as_fn_error $? "This shouldn't happen." "$LINENO" 5
34722    ;;
34723esac
34724
34725
34726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
34727$as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
34728if ${ac_cv_make_ntptime+:} false; then :
34729  $as_echo_n "(cached) " >&6
34730else
34731  case "$host" in
34732 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in
34733     yesyes)
34734	ans=yes
34735	;;
34736     *)
34737	ans=no
34738	;;
34739    esac
34740    ;;
34741esac
34742ac_cv_make_ntptime=$ans
34743fi
34744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
34745$as_echo "$ac_cv_make_ntptime" >&6; }
34746case "$ac_cv_make_ntptime" in
34747 yes)
34748    MAKE_NTPTIME=ntptime
34749    ;;
34750 *)
34751    NTPTIME_DB=
34752    NTPTIME_DL=
34753    NTPTIME_DS=
34754    NTPTIME_MS=
34755    ;;
34756esac
34757
34758
34759case "$host" in
34760 mips-sni-sysv4*)
34761    # tickadj is pretty useless on newer versions of ReliantUNIX
34762    # Do not bother
34763    ntp_cv_make_tickadj=no
34764    ;;
34765 *-*-irix*)
34766    ntp_cv_make_tickadj=no
34767    ;;
34768 *-*-solaris2*)
34769    # DLM says tickadj is a no-no starting with solaris2.5
34770    case "$host" in
34771     *-*-solaris2.1[0-9]*)
34772	ntp_cv_make_tickadj=no
34773	;;
34774     *-*-solaris2.[0-4]*) ;;
34775     *) ntp_cv_make_tickadj=no ;;
34776    esac
34777    ;;
34778 *-*-unicosmp*)
34779    ntp_cv_make_tickadj=no
34780    ;;
34781esac
34782
34783#
34784# Despite all the above, we always make tickadj.  Setting
34785# ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false
34786# report that the configuration variable was cached.  It may
34787# be better to simply remove the hunk above, I did not want
34788# to remove it if there is hope it will be used again.
34789#
34790{ ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;}
34791
34792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
34793$as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
34794if ${ntp_cv_make_tickadj+:} false; then :
34795  $as_echo_n "(cached) " >&6
34796else
34797  ntp_cv_make_tickadj=yes
34798
34799fi
34800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5
34801$as_echo "$ntp_cv_make_tickadj" >&6; }
34802case "$ntp_cv_make_tickadj" in
34803 yes)
34804    MAKE_TICKADJ=tickadj
34805    ;;
34806 *)
34807    CALC_TICKADJ_DB=
34808    CALC_TICKADJ_DL=
34809    CALC_TICKADJ_DS=
34810    CALC_TICKADJ_MS=
34811    TICKADJ_DB=
34812    TICKADJ_DL=
34813    TICKADJ_DS=
34814    TICKADJ_MS=
34815    ;;
34816esac
34817
34818
34819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
34820$as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
34821if ${ntp_cv_make_timetrim+:} false; then :
34822  $as_echo_n "(cached) " >&6
34823else
34824
34825	case "$host" in
34826	 *-*-irix*)
34827	    ntp_cv_make_timetrim=yes
34828	    ;;
34829	 *-*-unicosmp*)
34830	    ntp_cv_make_timetrim=yes
34831	    ;;
34832	 *)
34833	    ntp_cv_make_timetrim=no
34834	    ;;
34835	esac
34836
34837
34838fi
34839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5
34840$as_echo "$ntp_cv_make_timetrim" >&6; }
34841case "$ntp_cv_make_timetrim" in
34842 yes)
34843    MAKE_TIMETRIM=timetrim
34844    ;;
34845 *) TIMETRIM_DB=
34846    TIMETRIM_DL=
34847    TIMETRIM_DS=
34848    TIMETRIM_MS=
34849    ;;
34850esac
34851
34852
34853
34854
34855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
34856$as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
34857# Check whether --enable-simulator was given.
34858if test "${enable_simulator+set}" = set; then :
34859  enableval=$enable_simulator; ans=$enableval
34860else
34861  ans=no
34862
34863fi
34864
34865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34866$as_echo "$ans" >&6; }
34867case "$ans" in
34868 yes)
34869    MAKE_NTPDSIM=ntpdsim
34870    MAKE_LIBNTPSIM=libntpsim.a
34871    ;;
34872 *)
34873    NTPDSIM_DB=
34874    NTPDSIM_DL=
34875    NTPDSIM_DS=
34876    NTPDSIM_MS=
34877    ;;
34878esac
34879
34880case "$build" in
34881 $host)
34882    ;;
34883 *) case "$host" in
34884     *-*-vxworks*)
34885	LDFLAGS="$LDFLAGS -r"
34886	;;
34887    esac
34888    ;;
34889esac
34890
34891
34892
34893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
34894$as_echo_n "checking if sntp will be built... " >&6; }
34895
34896# Check whether --with-sntp was given.
34897if test "${with_sntp+set}" = set; then :
34898  withval=$with_sntp;
34899else
34900  with_sntp="${withsntp=yes}"
34901
34902fi
34903
34904case "$with_sntp" in
34905 no)
34906    SNTP=
34907    ;;
34908 *)
34909    SNTP=sntp
34910    ;;
34911esac
34912
34913 if test -n "$SNTP"; then
34914  BUILD_SNTP_TRUE=
34915  BUILD_SNTP_FALSE='#'
34916else
34917  BUILD_SNTP_TRUE='#'
34918  BUILD_SNTP_FALSE=
34919fi
34920
34921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
34922$as_echo "$with_sntp" >&6; }
34923
34924
34925
34926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
34927$as_echo_n "checking if we want to build ntpsnmpd... " >&6; }
34928
34929# Check whether --with-ntpsnmpd was given.
34930if test "${with_ntpsnmpd+set}" = set; then :
34931  withval=$with_ntpsnmpd; ans=$withval
34932else
34933
34934	case "$PATH_NET_SNMP_CONFIG" in
34935	 /*)	ans=yes ;;
34936	 *)	ans=no  ;;
34937	esac
34938
34939
34940fi
34941
34942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34943$as_echo "$ans" >&6; }
34944case "$ans" in
34945 yes)
34946    case "$PATH_NET_SNMP_CONFIG" in
34947     /*)
34948	SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs`
34949
34950	# HMS: we really want to separate CPPFLAGS and CFLAGS
34951	foo=`$PATH_NET_SNMP_CONFIG --cflags`
34952	SNMP_CPPFLAGS=
34953	SNMP_CFLAGS=
34954	for i in $foo; do
34955	    case "$i" in
34956	     -D*|-U*|-I*)
34957		SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i"
34958		;;
34959	    *)	SNMP_CFLAGS="$SNMP_CFLAGS $i"
34960		;;
34961	    esac
34962	done
34963
34964
34965
34966	save_CFLAGS=$CFLAGS
34967	save_CPPFLAGS=$CPPFLAGS
34968	save_LIBS=$LIBS
34969	CFLAGS=$SNMP_CFLAGS
34970	CPPFLAGS=$SNMP_CPPFLAGS
34971
34972	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"
34973if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
34974  MAKE_NTPSNMPD=ntpsnmpd
34975else
34976  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
34977$as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}
34978
34979fi
34980
34981
34982
34983	# Do this last, as we're messing up LIBS.
34984	# check -lnetsnmp for netsnmp_daemonize
34985	LIBS=`$PATH_NET_SNMP_CONFIG --libs`
34986	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
34987$as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
34988if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then :
34989  $as_echo_n "(cached) " >&6
34990else
34991  ac_check_lib_save_LIBS=$LIBS
34992LIBS="-lnetsnmp  $LIBS"
34993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34994/* end confdefs.h.  */
34995
34996/* Override any GCC internal prototype to avoid an error.
34997   Use char because int might match the return type of a GCC
34998   builtin and then its argument prototype would still apply.  */
34999#ifdef __cplusplus
35000extern "C"
35001#endif
35002char netsnmp_daemonize ();
35003int
35004main ()
35005{
35006return netsnmp_daemonize ();
35007  ;
35008  return 0;
35009}
35010_ACEOF
35011if ac_fn_c_try_link "$LINENO"; then :
35012  ac_cv_lib_netsnmp_netsnmp_daemonize=yes
35013else
35014  ac_cv_lib_netsnmp_netsnmp_daemonize=no
35015fi
35016rm -f core conftest.err conftest.$ac_objext \
35017    conftest$ac_exeext conftest.$ac_ext
35018LIBS=$ac_check_lib_save_LIBS
35019fi
35020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
35021$as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
35022if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then :
35023  ans=yes
35024else
35025  ans=no
35026
35027fi
35028
35029	case "$ans" in
35030	 no)
35031
35032$as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h
35033
35034	esac
35035
35036	CFLAGS=$save_CFLAGS
35037	{ save_CFLAGS=; unset save_CFLAGS;}
35038	CPPFLAGS=$save_CPPFLAGS
35039	{ save_CPPFLAGS=; unset save_CPPFLAGS;}
35040	LIBS=$save_LIBS
35041	{ save_LIBS=; unset save_LIBS;}
35042	;;
35043     *)
35044	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5
35045$as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;}
35046	;;
35047    esac
35048    ;;
35049esac
35050
35051
35052case "$MAKE_NTPSNMPD" in
35053 '')
35054    NTPSNMPD_DB=
35055    NTPSNMPD_DL=
35056    NTPSNMPD_DS=
35057    NTPSNMPD_MS=
35058    ;;
35059esac
35060
35061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
35062$as_echo_n "checking if we should always slew the time... " >&6; }
35063
35064# target-specific defaults
35065
35066case "$host" in
35067 *-apple-aux[23]*)
35068    ans=yes
35069    ;;
35070 *-*-bsdi[012]*)
35071    ans=no
35072    ;;
35073 *-*-bsdi*)
35074    ans=yes
35075    ;;
35076 *-*-openvms*)	# HMS: won't be found
35077    ans=yes
35078    ;;
35079 *) ans=no
35080    ;;
35081esac
35082
35083# --enable-slew-always / --disable-slew-always overrides default
35084
35085# Check whether --enable-slew-always was given.
35086if test "${enable_slew_always+set}" = set; then :
35087  enableval=$enable_slew_always; ans=$enableval
35088
35089fi
35090
35091
35092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35093$as_echo "$ans" >&6; }
35094
35095case "$ans" in
35096 yes)
35097
35098$as_echo "#define SLEWALWAYS 1" >>confdefs.h
35099
35100esac
35101
35102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
35103$as_echo_n "checking if we should step and slew the time... " >&6; }
35104
35105case "$host" in
35106 *-sni-sysv*)
35107    ans=yes
35108    ;;
35109 *-univel-sysv*)
35110    ans=no
35111    ;;
35112 *-*-ptx*)
35113    ans=yes
35114    ;;
35115 *-*-solaris2.1[0-9]*)
35116    ans=no
35117    ;;
35118 *-*-solaris2.[012]*)
35119    ans=yes
35120    ;;
35121 *-*-sysv4*)	# HMS: Does this catch Fujitsu UXP?
35122    ans=yes
35123    ;;
35124 *) ans=no
35125    ;;
35126esac
35127
35128# Check whether --enable-step-slew was given.
35129if test "${enable_step_slew+set}" = set; then :
35130  enableval=$enable_step_slew; ans=$enableval
35131
35132fi
35133
35134
35135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35136$as_echo "$ans" >&6; }
35137
35138case "$ans" in
35139 yes)
35140
35141$as_echo "#define STEP_SLEW 1" >>confdefs.h
35142
35143esac
35144
35145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
35146$as_echo_n "checking if ntpdate should step the time... " >&6; }
35147
35148case "$host" in
35149 *-apple-aux[23]*)
35150    ans=yes
35151    ;;
35152 *) ans=no
35153    ;;
35154esac
35155
35156# Check whether --enable-ntpdate-step was given.
35157if test "${enable_ntpdate_step+set}" = set; then :
35158  enableval=$enable_ntpdate_step; ans=$enableval
35159
35160fi
35161
35162
35163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35164$as_echo "$ans" >&6; }
35165
35166case "$ans" in
35167 yes)
35168
35169$as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
35170
35171esac
35172
35173
35174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
35175$as_echo_n "checking if we should sync TODR clock every hour... " >&6; }
35176
35177case "$host" in
35178 *-*-nextstep*)
35179    ans=yes
35180    ;;
35181 *-*-openvms*)	# HMS: won't be found
35182    ans=yes
35183    ;;
35184 *)
35185    ans=no
35186    ;;
35187esac
35188
35189# Check whether --enable-hourly-todr-sync was given.
35190if test "${enable_hourly_todr_sync+set}" = set; then :
35191  enableval=$enable_hourly_todr_sync; ans=$enableval
35192
35193fi
35194
35195
35196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35197$as_echo "$ans" >&6; }
35198
35199case "$ac_cv_var_sync_todr" in
35200 yes)
35201
35202$as_echo "#define DOSYNCTODR 1" >>confdefs.h
35203 ;;
35204esac
35205
35206
35207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
35208$as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }
35209
35210case "$host" in
35211 *-*-solaris2.6)
35212    unamev=`uname -v`
35213    case "$unamev" in
35214     Generic_105181-*)
35215	old_IFS="$IFS"
35216	IFS="-"
35217	set $unamev
35218	IFS="$old_IFS"
35219	if test "$2" -ge 17
35220	then
35221	    # Generic_105181-17 and higher
35222	    ans=no
35223	else
35224	    ans=yes
35225	fi
35226	;;
35227     *)
35228	ans=yes
35229	;;
35230    esac
35231    ;;
35232 *-*-solaris2.7)
35233    unamev=`uname -v`
35234    case "$unamev" in
35235     Generic_106541-*)
35236	old_IFS="$IFS"
35237	IFS="-"
35238	set $unamev
35239	IFS="$old_IFS"
35240	if test "$2" -ge 07
35241	then
35242	    # Generic_106541-07 and higher
35243	    ans=no
35244	else
35245	    ans=yes
35246	fi
35247	;;
35248     *)
35249	ans=yes
35250	;;
35251    esac
35252    ;;
35253 *)
35254    ans=no
35255    ;;
35256esac
35257
35258# Check whether --enable-kernel-fll-bug was given.
35259if test "${enable_kernel_fll_bug+set}" = set; then :
35260  enableval=$enable_kernel_fll_bug; ans=$enableval
35261
35262fi
35263
35264
35265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35266$as_echo "$ans" >&6; }
35267
35268case "$ans" in
35269 yes)
35270
35271$as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h
35272
35273esac
35274
35275
35276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
35277$as_echo_n "checking if we want new session key behavior... " >&6; }
35278# Check whether --enable-bug1243-fix was given.
35279if test "${enable_bug1243_fix+set}" = set; then :
35280  enableval=$enable_bug1243_fix; ans=$enableval
35281else
35282  ans=yes
35283
35284fi
35285
35286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35287$as_echo "$ans" >&6; }
35288case "$ans" in
35289 no)
35290
35291$as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h
35292
35293esac
35294
35295
35296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
35297$as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }
35298
35299case "$host" in
35300 *-*-solaris2.[89])
35301    ans=yes
35302    ;;
35303 *-*-solaris2.1[0-9]*)
35304    ans=yes
35305    ;;
35306 *) ans=no
35307    ;;
35308esac
35309
35310# Check whether --enable-irig-sawtooth was given.
35311if test "${enable_irig_sawtooth+set}" = set; then :
35312  enableval=$enable_irig_sawtooth; ans=$enableval
35313
35314fi
35315
35316
35317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35318$as_echo "$ans" >&6; }
35319
35320case "$ans" in
35321 yes)
35322
35323$as_echo "#define IRIG_SUCKS 1" >>confdefs.h
35324
35325esac
35326
35327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
35328$as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }
35329
35330# Check whether --enable-nist was given.
35331if test "${enable_nist+set}" = set; then :
35332  enableval=$enable_nist; ans=$enableval
35333else
35334  ans=no
35335
35336fi
35337
35338
35339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35340$as_echo "$ans" >&6; }
35341
35342case "$ans" in
35343 yes)
35344
35345$as_echo "#define LOCKCLOCK 1" >>confdefs.h
35346 ;;
35347esac
35348
35349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
35350$as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }
35351
35352# Check whether --enable-ntp-signd was given.
35353if test "${enable_ntp_signd+set}" = set; then :
35354  enableval=$enable_ntp_signd; ans=$enableval
35355else
35356  ans=no
35357
35358fi
35359
35360
35361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35362$as_echo "$ans" >&6; }
35363
35364case "$ans" in
35365 no)
35366    ntp_signd_path=
35367    ;;
35368 yes)
35369    ntp_signd_path=/var/run/ntp_signd
35370    ;;
35371 *)
35372    ntp_signd_path="$ans"
35373esac
35374
35375case "$ntp_signd_path" in
35376 '')
35377    ;;
35378 *)
35379
35380$as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h
35381
35382
35383cat >>confdefs.h <<_ACEOF
35384#define NTP_SIGND_PATH "$ntp_signd_path"
35385_ACEOF
35386
35387    ;;
35388esac
35389
35390for ac_header in libscf.h
35391do :
35392  ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
35393if test "x$ac_cv_header_libscf_h" = xyes; then :
35394  cat >>confdefs.h <<_ACEOF
35395#define HAVE_LIBSCF_H 1
35396_ACEOF
35397
35398fi
35399
35400done
35401
35402LSCF=
35403case "$ac_cv_header_libscf_h" in
35404 yes)
35405    LSCF='-lscf'
35406esac
35407
35408
35409
35410
35411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
35412$as_echo_n "checking for struct sockaddr_storage... " >&6; }
35413if ${ntp_cv_sockaddr_storage+:} false; then :
35414  $as_echo_n "(cached) " >&6
35415else
35416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35417/* end confdefs.h.  */
35418
35419		#ifdef HAVE_SYS_TYPES_H
35420		# include <sys/types.h>
35421		#endif
35422		#ifdef HAVE_SYS_SOCKET_H
35423		# include <sys/socket.h>
35424		#endif
35425		#ifdef HAVE_NETINET_IN_H
35426		# include <netinet/in.h>
35427		#endif
35428
35429int
35430main ()
35431{
35432
35433		struct sockaddr_storage n;
35434
35435
35436  ;
35437  return 0;
35438}
35439_ACEOF
35440if ac_fn_c_try_compile "$LINENO"; then :
35441  ntp_cv_sockaddr_storage=yes
35442else
35443  ntp_cv_sockaddr_storage=no
35444
35445fi
35446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35447
35448fi
35449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
35450$as_echo "$ntp_cv_sockaddr_storage" >&6; }
35451case "$ntp_cv_sockaddr_storage" in
35452 yes)
35453
35454$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
35455
35456    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
35457$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
35458if ${ntp_cv_have___ss_family+:} false; then :
35459  $as_echo_n "(cached) " >&6
35460else
35461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35462/* end confdefs.h.  */
35463
35464		    #ifdef HAVE_SYS_TYPES_H
35465		    # include <sys/types.h>
35466		    #endif
35467		    #ifdef HAVE_SYS_SOCKET_H
35468		    # include <sys/socket.h>
35469		    #endif
35470		    #ifdef HAVE_NETINET_IN_H
35471		    # include <netinet/in.h>
35472		    #endif
35473
35474int
35475main ()
35476{
35477
35478		    struct sockaddr_storage s;
35479		    s.__ss_family = 1;
35480
35481
35482  ;
35483  return 0;
35484}
35485_ACEOF
35486if ac_fn_c_try_compile "$LINENO"; then :
35487  ntp_cv_have___ss_family=yes
35488else
35489  ntp_cv_have___ss_family=no
35490
35491fi
35492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35493
35494fi
35495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
35496$as_echo "$ntp_cv_have___ss_family" >&6; }
35497    case "$ntp_cv_have___ss_family" in
35498     yes)
35499
35500$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
35501
35502    esac
35503
35504esac
35505
35506
35507#
35508# Look for in_port_t.
35509#
35510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
35511$as_echo_n "checking for in_port_t... " >&6; }
35512if ${isc_cv_have_in_port_t+:} false; then :
35513  $as_echo_n "(cached) " >&6
35514else
35515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35516/* end confdefs.h.  */
35517
35518		#include <sys/types.h>
35519		#include <netinet/in.h>
35520
35521int
35522main ()
35523{
35524
35525		in_port_t port = 25;
35526		return (0);
35527
35528
35529  ;
35530  return 0;
35531}
35532_ACEOF
35533if ac_fn_c_try_compile "$LINENO"; then :
35534  isc_cv_have_in_port_t=yes
35535else
35536  isc_cv_have_in_port_t=no
35537
35538fi
35539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35540
35541fi
35542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
35543$as_echo "$isc_cv_have_in_port_t" >&6; }
35544case "$isc_cv_have_in_port_t" in
35545 no)
35546
35547$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
35548
35549esac
35550
35551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
35552$as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
35553if ${ntp_cv_getsockname_socklen_type+:} false; then :
35554  $as_echo_n "(cached) " >&6
35555else
35556
35557    getsockname_socklen_type_found=no
35558    for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
35559	for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
35560	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35561/* end confdefs.h.  */
35562
35563			#ifdef HAVE_SYS_TYPES_H
35564			# include <sys/types.h>
35565			#endif
35566			#ifdef HAVE_SYS_SOCKET_H
35567			# include <sys/socket.h>
35568			#endif
35569
35570int
35571main ()
35572{
35573
35574			extern
35575			getsockname(int, $getsockname_arg2,
35576				$ntp_cv_getsockname_socklen_type *);
35577
35578
35579  ;
35580  return 0;
35581}
35582_ACEOF
35583if ac_fn_c_try_compile "$LINENO"; then :
35584  getsockname_socklen_type_found=yes ; break 2
35585fi
35586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35587	done
35588    done
35589    case "$getsockname_socklen_type_found" in
35590     no)
35591	ntp_cv_getsockname_socklen_type='socklen_t'
35592    esac
35593    { getsockname_arg2=; unset getsockname_arg2;}
35594    { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
35595
35596
35597fi
35598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
35599$as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
35600
35601cat >>confdefs.h <<_ACEOF
35602#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
35603_ACEOF
35604
35605
35606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
35607$as_echo_n "checking struct sockaddr for sa_len... " >&6; }
35608if ${isc_cv_platform_havesalen+:} false; then :
35609  $as_echo_n "(cached) " >&6
35610else
35611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35612/* end confdefs.h.  */
35613
35614		#include <sys/types.h>
35615		#include <sys/socket.h>
35616
35617int
35618main ()
35619{
35620
35621		extern struct sockaddr *ps;
35622		return ps->sa_len;
35623
35624
35625  ;
35626  return 0;
35627}
35628_ACEOF
35629if ac_fn_c_try_compile "$LINENO"; then :
35630  isc_cv_platform_havesalen=yes
35631else
35632  isc_cv_platform_havesalen=no
35633
35634fi
35635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35636
35637fi
35638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
35639$as_echo "$isc_cv_platform_havesalen" >&6; }
35640case "$isc_cv_platform_havesalen" in
35641 yes)
35642
35643$as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
35644
35645esac
35646
35647# Check whether --enable-ipv6 was given.
35648if test "${enable_ipv6+set}" = set; then :
35649  enableval=$enable_ipv6;
35650fi
35651
35652
35653case "$enable_ipv6" in
35654 yes|''|autodetect)
35655    case "$host" in
35656     powerpc-ibm-aix4*)
35657	;;
35658     *)
35659
35660$as_echo "#define WANT_IPV6 1" >>confdefs.h
35661
35662	;;
35663    esac
35664    ;;
35665 no)
35666    ;;
35667esac
35668
35669
35670case "$host" in
35671 *-*-darwin*)
35672
35673$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
35674
35675esac
35676
35677
35678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
35679$as_echo_n "checking for IPv6 structures... " >&6; }
35680if ${isc_cv_found_ipv6+:} false; then :
35681  $as_echo_n "(cached) " >&6
35682else
35683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35684/* end confdefs.h.  */
35685
35686		#include <sys/types.h>
35687		#include <sys/socket.h>
35688		#include <netinet/in.h>
35689
35690int
35691main ()
35692{
35693
35694		struct sockaddr_in6 sin6;
35695
35696
35697  ;
35698  return 0;
35699}
35700_ACEOF
35701if ac_fn_c_try_compile "$LINENO"; then :
35702  isc_cv_found_ipv6=yes
35703else
35704  isc_cv_found_ipv6=no
35705
35706fi
35707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35708
35709fi
35710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
35711$as_echo "$isc_cv_found_ipv6" >&6; }
35712
35713#
35714# See whether IPv6 support is provided via a Kame add-on.
35715# This is done before other IPv6 linking tests so LIBS is properly set.
35716#
35717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
35718$as_echo_n "checking for Kame IPv6 support... " >&6; }
35719
35720# Check whether --with-kame was given.
35721if test "${with_kame+set}" = set; then :
35722  withval=$with_kame; use_kame="$withval"
35723else
35724  use_kame="no"
35725
35726fi
35727
35728case "$use_kame" in
35729 no)
35730    ;;
35731 yes)
35732    kame_path=/usr/local/v6
35733    ;;
35734 *)
35735    kame_path="$use_kame"
35736    ;;
35737esac
35738case "$use_kame" in
35739 no)
35740    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35741$as_echo "no" >&6; }
35742    ;;
35743 *)
35744    if test -f $kame_path/lib/libinet6.a; then
35745	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
35746$as_echo "$kame_path/lib/libinet6.a" >&6; }
35747	LIBS="-L$kame_path/lib -linet6 $LIBS"
35748    else
35749	as_fn_error $? "$kame_path/lib/libinet6.a not found.
35750
35751Please choose the proper path with the following command:
35752
35753    configure --with-kame=PATH
35754" "$LINENO" 5
35755    fi
35756    ;;
35757esac
35758
35759#
35760# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
35761# Including it on Kame-using platforms is very bad, though, because
35762# Kame uses #error against direct inclusion.   So include it on only
35763# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
35764# This is done before the in6_pktinfo check because that's what
35765# netinet6/in6.h is needed for.
35766#
35767case "$host" in
35768 *-bsdi4.[01]*)
35769
35770$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
35771
35772    isc_netinet6in6_hack="#include <netinet6/in6.h>"
35773    ;;
35774 *)
35775    isc_netinet6in6_hack=""
35776    ;;
35777esac
35778
35779#
35780# This is similar to the netinet6/in6.h issue.
35781#
35782case "$host" in
35783 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
35784
35785$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
35786
35787    isc_netinetin6_hack="#include <netinet/in6.h>"
35788    ;;
35789 *)
35790    isc_netinetin6_hack=""
35791    ;;
35792esac
35793
35794
35795case "$isc_cv_found_ipv6" in
35796 yes)
35797
35798$as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
35799
35800    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
35801$as_echo_n "checking for in6_pktinfo... " >&6; }
35802if ${isc_cv_have_in6_pktinfo+:} false; then :
35803  $as_echo_n "(cached) " >&6
35804else
35805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35806/* end confdefs.h.  */
35807
35808		    #include <sys/types.h>
35809		    #include <sys/socket.h>
35810		    #include <netinet/in.h>
35811		    $isc_netinetin6_hack
35812		    $isc_netinet6in6_hack
35813
35814int
35815main ()
35816{
35817
35818		    struct in6_pktinfo xyzzy;
35819
35820
35821  ;
35822  return 0;
35823}
35824_ACEOF
35825if ac_fn_c_try_compile "$LINENO"; then :
35826  isc_cv_have_in6_pktinfo=yes
35827else
35828  isc_cv_have_in6_pktinfo=no
35829
35830fi
35831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35832
35833fi
35834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
35835$as_echo "$isc_cv_have_in6_pktinfo" >&6; }
35836    case "$isc_cv_have_in6_pktinfo" in
35837     yes)
35838
35839$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
35840
35841    esac
35842
35843
35844    # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
35845    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
35846$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
35847if ${isc_cv_have_sin6_scope_id+:} false; then :
35848  $as_echo_n "(cached) " >&6
35849else
35850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35851/* end confdefs.h.  */
35852
35853		    #include <sys/types.h>
35854		    #include <sys/socket.h>
35855		    #include <netinet/in.h>
35856		    $isc_netinetin6_hack
35857		    $isc_netinet6in6_hack
35858
35859int
35860main ()
35861{
35862
35863		    struct sockaddr_in6 xyzzy;
35864		    xyzzy.sin6_scope_id = 0;
35865
35866
35867  ;
35868  return 0;
35869}
35870_ACEOF
35871if ac_fn_c_try_compile "$LINENO"; then :
35872  isc_cv_have_sin6_scope_id=yes
35873else
35874  isc_cv_have_sin6_scope_id=no
35875
35876fi
35877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35878
35879fi
35880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
35881$as_echo "$isc_cv_have_sin6_scope_id" >&6; }
35882
35883    case "$isc_cv_have_sin6_scope_id" in
35884     yes)
35885
35886$as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
35887
35888    esac
35889esac
35890
35891
35892# We need this check run even without isc_cv_found_ipv6=yes
35893
35894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
35895$as_echo_n "checking for in6addr_any... " >&6; }
35896if ${isc_cv_in6addr_any_links+:} false; then :
35897  $as_echo_n "(cached) " >&6
35898else
35899
35900	SAVED_LIBS="$LIBS"
35901	LIBS="$LDADD_LIBNTP $LIBS"
35902	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35903/* end confdefs.h.  */
35904$ac_includes_default
35905		    #include <sys/socket.h>
35906		    #include <netinet/in.h>
35907		    $isc_netinetin6_hack
35908		    $isc_netinet6in6_hack
35909
35910int
35911main ()
35912{
35913
35914		    printf("%x", in6addr_any.s6_addr[15]);
35915
35916
35917  ;
35918  return 0;
35919}
35920_ACEOF
35921if ac_fn_c_try_link "$LINENO"; then :
35922  isc_cv_in6addr_any_links=yes
35923else
35924  isc_cv_in6addr_any_links=no
35925
35926fi
35927rm -f core conftest.err conftest.$ac_objext \
35928    conftest$ac_exeext conftest.$ac_ext
35929	LIBS="$SAVED_LIBS"
35930	{ SAVED_LIBS=; unset SAVED_LIBS;}
35931
35932
35933fi
35934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
35935$as_echo "$isc_cv_in6addr_any_links" >&6; }
35936
35937case "$isc_cv_in6addr_any_links" in
35938 no)
35939
35940$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
35941
35942esac
35943
35944
35945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
35946$as_echo_n "checking for struct if_laddrconf... " >&6; }
35947if ${isc_cv_struct_if_laddrconf+:} false; then :
35948  $as_echo_n "(cached) " >&6
35949else
35950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35951/* end confdefs.h.  */
35952
35953		#include <sys/types.h>
35954		#include <net/if6.h>
35955
35956int
35957main ()
35958{
35959
35960		struct if_laddrconf a;
35961
35962
35963  ;
35964  return 0;
35965}
35966_ACEOF
35967if ac_fn_c_try_compile "$LINENO"; then :
35968  isc_cv_struct_if_laddrconf=yes
35969else
35970  isc_cv_struct_if_laddrconf=no
35971
35972fi
35973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35974
35975fi
35976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
35977$as_echo "$isc_cv_struct_if_laddrconf" >&6; }
35978
35979case "$isc_cv_struct_if_laddrconf" in
35980 yes)
35981
35982$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
35983
35984esac
35985
35986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
35987$as_echo_n "checking for struct if_laddrreq... " >&6; }
35988if ${isc_cv_struct_if_laddrreq+:} false; then :
35989  $as_echo_n "(cached) " >&6
35990else
35991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35992/* end confdefs.h.  */
35993
35994		#include <sys/types.h>
35995		#include <net/if6.h>
35996
35997int
35998main ()
35999{
36000
36001		struct if_laddrreq a;
36002
36003
36004  ;
36005  return 0;
36006}
36007_ACEOF
36008if ac_fn_c_try_compile "$LINENO"; then :
36009  isc_cv_struct_if_laddrreq=yes
36010else
36011  isc_cv_struct_if_laddrreq=no
36012
36013fi
36014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36015
36016fi
36017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
36018$as_echo "$isc_cv_struct_if_laddrreq" >&6; }
36019
36020case "$isc_cv_struct_if_laddrreq" in
36021 yes)
36022
36023$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
36024
36025esac
36026
36027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
36028$as_echo_n "checking for multicast IP support... " >&6; }
36029if ${ntp_cv_multicast+:} false; then :
36030  $as_echo_n "(cached) " >&6
36031else
36032
36033	ntp_cv_multicast=no
36034	case "$host" in
36035	 i386-sequent-sysv4)
36036	    ;;
36037	 *)
36038	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36039/* end confdefs.h.  */
36040
36041			#ifdef HAVE_NETINET_IN_H
36042			# include <netinet/in.h>
36043			#endif
36044
36045int
36046main ()
36047{
36048
36049			struct ip_mreq ipmr;
36050			ipmr.imr_interface.s_addr = 0;
36051
36052
36053  ;
36054  return 0;
36055}
36056_ACEOF
36057if ac_fn_c_try_compile "$LINENO"; then :
36058  ntp_cv_multicast=yes
36059fi
36060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36061	    ;;
36062	esac
36063
36064
36065fi
36066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
36067$as_echo "$ntp_cv_multicast" >&6; }
36068case "$ntp_cv_multicast" in
36069 yes)
36070
36071$as_echo "#define MCAST 1" >>confdefs.h
36072
36073    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
36074$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
36075if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
36076  $as_echo_n "(cached) " >&6
36077else
36078
36079	    case "$host" in
36080	     *-*-netbsd*|*-*-*linux*)
36081		ntp_cv_typeof_ip_multicast_loop=u_int
36082		;;
36083	     *)
36084		ntp_cv_typeof_ip_multicast_loop=u_char
36085		;;
36086	    esac
36087
36088
36089fi
36090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
36091$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
36092
36093cat >>confdefs.h <<_ACEOF
36094#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
36095_ACEOF
36096
36097esac
36098
36099# Check whether --enable-getifaddrs was given.
36100if test "${enable_getifaddrs+set}" = set; then :
36101  enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
36102else
36103  want_getifaddrs="yes"
36104
36105fi
36106
36107
36108case $want_getifaddrs in
36109 glibc)
36110    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
36111$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
36112esac
36113case $want_getifaddrs in
36114 no)
36115    ;;
36116 *)
36117    SAVED_LIBS="$LIBS"
36118    LIBS="$LDADD_LIBNTP $LIBS"
36119    for ac_func in getifaddrs
36120do :
36121  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
36122if test "x$ac_cv_func_getifaddrs" = xyes; then :
36123  cat >>confdefs.h <<_ACEOF
36124#define HAVE_GETIFADDRS 1
36125_ACEOF
36126
36127fi
36128done
36129
36130    LIBS="$SAVED_LIBS"
36131    { SAVED_LIBS=; unset SAVED_LIBS;}
36132    ;;
36133esac
36134
36135#
36136# Check for if_nametoindex() for IPv6 scoped addresses support
36137#
36138case "$host" in
36139 *-hp-hpux*)
36140    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
36141$as_echo_n "checking for library containing if_nametoindex... " >&6; }
36142if ${ac_cv_search_if_nametoindex+:} false; then :
36143  $as_echo_n "(cached) " >&6
36144else
36145  ac_func_search_save_LIBS=$LIBS
36146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36147/* end confdefs.h.  */
36148
36149/* Override any GCC internal prototype to avoid an error.
36150   Use char because int might match the return type of a GCC
36151   builtin and then its argument prototype would still apply.  */
36152#ifdef __cplusplus
36153extern "C"
36154#endif
36155char if_nametoindex ();
36156int
36157main ()
36158{
36159return if_nametoindex ();
36160  ;
36161  return 0;
36162}
36163_ACEOF
36164for ac_lib in '' ipv6; do
36165  if test -z "$ac_lib"; then
36166    ac_res="none required"
36167  else
36168    ac_res=-l$ac_lib
36169    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36170  fi
36171  if ac_fn_c_try_link "$LINENO"; then :
36172  ac_cv_search_if_nametoindex=$ac_res
36173fi
36174rm -f core conftest.err conftest.$ac_objext \
36175    conftest$ac_exeext
36176  if ${ac_cv_search_if_nametoindex+:} false; then :
36177  break
36178fi
36179done
36180if ${ac_cv_search_if_nametoindex+:} false; then :
36181
36182else
36183  ac_cv_search_if_nametoindex=no
36184fi
36185rm conftest.$ac_ext
36186LIBS=$ac_func_search_save_LIBS
36187fi
36188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
36189$as_echo "$ac_cv_search_if_nametoindex" >&6; }
36190ac_res=$ac_cv_search_if_nametoindex
36191if test "$ac_res" != no; then :
36192  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36193
36194fi
36195
36196esac
36197SAVED_LIBS="$LIBS"
36198LIBS="$LDADD_LIBNTP $LIBS"
36199for ac_func in if_nametoindex
36200do :
36201  ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
36202if test "x$ac_cv_func_if_nametoindex" = xyes; then :
36203  cat >>confdefs.h <<_ACEOF
36204#define HAVE_IF_NAMETOINDEX 1
36205_ACEOF
36206
36207fi
36208done
36209
36210LIBS="$SAVED_LIBS"
36211{ SAVED_LIBS=; unset SAVED_LIBS;}
36212case "$ac_cv_func_if_nametoindex" in
36213 yes)
36214
36215$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
36216
36217esac
36218
36219
36220
36221
36222#
36223# Look for a sysctl call to get the list of network interfaces.
36224#
36225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
36226$as_echo_n "checking for interface list sysctl... " >&6; }
36227if ${ntp_cv_iflist_sysctl+:} false; then :
36228  $as_echo_n "(cached) " >&6
36229else
36230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36231/* end confdefs.h.  */
36232
36233	    #include <sys/param.h>
36234	    #include <sys/sysctl.h>
36235	    #include <sys/socket.h>
36236	    #ifndef NET_RT_IFLIST
36237	    # error
36238	    #endif
36239
36240_ACEOF
36241if ac_fn_c_try_cpp "$LINENO"; then :
36242  ntp_cv_iflist_sysctl=yes
36243else
36244  ntp_cv_iflist_sysctl=no
36245
36246fi
36247rm -f conftest.err conftest.i conftest.$ac_ext
36248
36249fi
36250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5
36251$as_echo "$ntp_cv_iflist_sysctl" >&6; }
36252case "$ntp_cv_iflist_sysctl" in
36253 yes)
36254
36255$as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
36256
36257esac
36258
36259###
36260
36261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
36262$as_echo_n "checking if we want the saveconfig mechanism... " >&6; }
36263# Check whether --enable-saveconfig was given.
36264if test "${enable_saveconfig+set}" = set; then :
36265  enableval=$enable_saveconfig; ntp_ok=$enableval
36266else
36267  ntp_ok=yes
36268
36269fi
36270
36271ntp_saveconfig_enabled=0
36272case "$ntp_ok" in
36273 yes)
36274    ntp_saveconfig_enabled=1
36275
36276$as_echo "#define SAVECONFIG 1" >>confdefs.h
36277
36278    ;;
36279esac
36280 if test x$ntp_saveconfig_enabled = x1; then
36281  SAVECONFIG_ENABLED_TRUE=
36282  SAVECONFIG_ENABLED_FALSE='#'
36283else
36284  SAVECONFIG_ENABLED_TRUE='#'
36285  SAVECONFIG_ENABLED_FALSE=
36286fi
36287
36288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
36289$as_echo "$ntp_ok" >&6; }
36290
36291
36292gta=false
36293
36294# Check whether --with-gtest was given.
36295if test "${with_gtest+set}" = set; then :
36296  withval=$with_gtest; try_gtest=$withval
36297else
36298  try_gtest=yes
36299
36300fi
36301
36302case "$try_gtest" in
36303 yes)
36304    # Extract the first word of "gtest-config", so it can be a program name with args.
36305set dummy gtest-config; ac_word=$2
36306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36307$as_echo_n "checking for $ac_word... " >&6; }
36308if ${ac_cv_path_GTEST_CONFIG+:} false; then :
36309  $as_echo_n "(cached) " >&6
36310else
36311  case $GTEST_CONFIG in
36312  [\\/]* | ?:[\\/]*)
36313  ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
36314  ;;
36315  *)
36316  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36317for as_dir in $PATH
36318do
36319  IFS=$as_save_IFS
36320  test -z "$as_dir" && as_dir=.
36321    for ac_exec_ext in '' $ac_executable_extensions; do
36322  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36323    ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36325    break 2
36326  fi
36327done
36328  done
36329IFS=$as_save_IFS
36330
36331  ;;
36332esac
36333fi
36334GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
36335if test -n "$GTEST_CONFIG"; then
36336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
36337$as_echo "$GTEST_CONFIG" >&6; }
36338else
36339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36340$as_echo "no" >&6; }
36341fi
36342
36343
36344    { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
36345    case x${GTEST_CONFIG} in
36346     x) ;;
36347     *)
36348	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
36349$as_echo_n "checking gtest version... " >&6; }
36350	gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
36351	case "$gtest_version_test" in
36352	 toolow*)
36353	    ;;
36354	 *)
36355	    GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
36356	    GTEST_LIBS=`$GTEST_CONFIG --libs`
36357	    GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
36358	    GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`
36359
36360
36361
36362
36363	    gta=true
36364	    ;;
36365	esac
36366	gtest_version=`$GTEST_CONFIG --version`
36367	case "$gta" in
36368	 true)
36369	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
36370$as_echo "($gtest_version) ok" >&6; }
36371	    ;;
36372	 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
36373$as_echo "($gtest_version) not ok" >&6; }
36374	    ;;
36375	esac
36376	{ gtest_version_test=; unset gtest_version_test;}
36377	{ gtest_version=; unset gtest_version;}
36378    esac
36379esac
36380 if $gta; then
36381  GTEST_AVAILABLE_TRUE=
36382  GTEST_AVAILABLE_FALSE='#'
36383else
36384  GTEST_AVAILABLE_TRUE='#'
36385  GTEST_AVAILABLE_FALSE=
36386fi
36387
36388
36389
36390
36391###
36392
36393
36394  prefix_NONE=
36395  exec_prefix_NONE=
36396  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
36397  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
36398  eval ac_define_dir="\"$sysconfdir\""
36399  eval ac_define_dir="\"$ac_define_dir\""
36400  NTP_KEYSDIR="$ac_define_dir"
36401
36402
36403cat >>confdefs.h <<_ACEOF
36404#define NTP_KEYSDIR "$ac_define_dir"
36405_ACEOF
36406
36407  test "$prefix_NONE" && prefix=NONE
36408  test "$exec_prefix_NONE" && exec_prefix=NONE
36409
36410
36411ac_config_files="$ac_config_files Makefile"
36412
36413ac_config_files="$ac_config_files adjtimed/Makefile"
36414
36415ac_config_files="$ac_config_files clockstuff/Makefile"
36416
36417ac_config_files="$ac_config_files include/Makefile"
36418
36419ac_config_files="$ac_config_files include/isc/Makefile"
36420
36421ac_config_files="$ac_config_files kernel/Makefile"
36422
36423ac_config_files="$ac_config_files kernel/sys/Makefile"
36424
36425ac_config_files="$ac_config_files libntp/Makefile"
36426
36427ac_config_files="$ac_config_files libparse/Makefile"
36428
36429ac_config_files="$ac_config_files ntpd/Makefile"
36430
36431ac_config_files="$ac_config_files ntpd/complete.conf"
36432
36433ac_config_files="$ac_config_files ntpdate/Makefile"
36434
36435ac_config_files="$ac_config_files ntpdc/Makefile"
36436
36437ac_config_files="$ac_config_files ntpdc/nl.pl"
36438
36439ac_config_files="$ac_config_files ntpq/Makefile"
36440
36441ac_config_files="$ac_config_files ntpsnmpd/Makefile"
36442
36443ac_config_files="$ac_config_files parseutil/Makefile"
36444
36445ac_config_files="$ac_config_files scripts/Makefile"
36446
36447ac_config_files="$ac_config_files scripts/lib/Makefile"
36448
36449ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"
36450
36451ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"
36452
36453ac_config_files="$ac_config_files scripts/build/mkver"
36454
36455ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
36456
36457ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"
36458
36459ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
36460
36461ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"
36462
36463ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"
36464
36465ac_config_files="$ac_config_files scripts/ntptrace/Makefile"
36466
36467ac_config_files="$ac_config_files scripts/ntpver"
36468
36469ac_config_files="$ac_config_files scripts/plot_summary"
36470
36471ac_config_files="$ac_config_files scripts/summary"
36472
36473ac_config_files="$ac_config_files scripts/build/Makefile"
36474
36475ac_config_files="$ac_config_files tests/Makefile"
36476
36477ac_config_files="$ac_config_files tests/libntp/Makefile"
36478
36479ac_config_files="$ac_config_files tests/ntpd/Makefile"
36480
36481ac_config_files="$ac_config_files util/Makefile"
36482
36483
36484perllibdir="${datadir}/ntp/lib"
36485
36486  prefix_NONE=
36487  exec_prefix_NONE=
36488  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
36489  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
36490  eval ac_define_dir="\"$perllibdir\""
36491  eval ac_define_dir="\"$ac_define_dir\""
36492  PERLLIBDIR="$ac_define_dir"
36493
36494
36495cat >>confdefs.h <<_ACEOF
36496#define PERLLIBDIR "$ac_define_dir"
36497_ACEOF
36498
36499  test "$prefix_NONE" && prefix=NONE
36500  test "$exec_prefix_NONE" && exec_prefix=NONE
36501
36502
36503calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"
36504
36505ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"
36506
36507ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"
36508
36509ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"
36510
36511summary_opts="$srcdir/scripts/summary-opts"
36512
36513plot_summary_opts="$srcdir/scripts/plot_summary-opts"
36514
36515
36516
36517
36518subdirs="$subdirs sntp"
36519
36520
36521cat >confcache <<\_ACEOF
36522# This file is a shell script that caches the results of configure
36523# tests run on this system so they can be shared between configure
36524# scripts and configure runs, see configure's option --config-cache.
36525# It is not useful on other systems.  If it contains results you don't
36526# want to keep, you may remove or edit it.
36527#
36528# config.status only pays attention to the cache file if you give it
36529# the --recheck option to rerun configure.
36530#
36531# `ac_cv_env_foo' variables (set or unset) will be overridden when
36532# loading this file, other *unset* `ac_cv_foo' will be assigned the
36533# following values.
36534
36535_ACEOF
36536
36537# The following way of writing the cache mishandles newlines in values,
36538# but we know of no workaround that is simple, portable, and efficient.
36539# So, we kill variables containing newlines.
36540# Ultrix sh set writes to stderr and can't be redirected directly,
36541# and sets the high bit in the cache file unless we assign to the vars.
36542(
36543  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36544    eval ac_val=\$$ac_var
36545    case $ac_val in #(
36546    *${as_nl}*)
36547      case $ac_var in #(
36548      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
36549$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36550      esac
36551      case $ac_var in #(
36552      _ | IFS | as_nl) ;; #(
36553      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
36554      *) { eval $ac_var=; unset $ac_var;} ;;
36555      esac ;;
36556    esac
36557  done
36558
36559  (set) 2>&1 |
36560    case $as_nl`(ac_space=' '; set) 2>&1` in #(
36561    *${as_nl}ac_space=\ *)
36562      # `set' does not quote correctly, so add quotes: double-quote
36563      # substitution turns \\\\ into \\, and sed turns \\ into \.
36564      sed -n \
36565	"s/'/'\\\\''/g;
36566	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36567      ;; #(
36568    *)
36569      # `set' quotes correctly as required by POSIX, so do not add quotes.
36570      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36571      ;;
36572    esac |
36573    sort
36574) |
36575  sed '
36576     /^ac_cv_env_/b end
36577     t clear
36578     :clear
36579     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36580     t end
36581     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36582     :end' >>confcache
36583if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36584  if test -w "$cache_file"; then
36585    if test "x$cache_file" != "x/dev/null"; then
36586      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
36587$as_echo "$as_me: updating cache $cache_file" >&6;}
36588      if test ! -f "$cache_file" || test -h "$cache_file"; then
36589	cat confcache >"$cache_file"
36590      else
36591        case $cache_file in #(
36592        */* | ?:*)
36593	  mv -f confcache "$cache_file"$$ &&
36594	  mv -f "$cache_file"$$ "$cache_file" ;; #(
36595        *)
36596	  mv -f confcache "$cache_file" ;;
36597	esac
36598      fi
36599    fi
36600  else
36601    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
36602$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36603  fi
36604fi
36605rm -f confcache
36606
36607test "x$prefix" = xNONE && prefix=$ac_default_prefix
36608# Let make expand exec_prefix.
36609test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36610
36611DEFS=-DHAVE_CONFIG_H
36612
36613ac_libobjs=
36614ac_ltlibobjs=
36615U=
36616for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36617  # 1. Remove the extension, and $U if already installed.
36618  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36619  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36620  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
36621  #    will be set to the directory where LIBOBJS objects are built.
36622  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36623  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
36624done
36625LIBOBJS=$ac_libobjs
36626
36627LTLIBOBJS=$ac_ltlibobjs
36628
36629
36630 if test -n "$EXEEXT"; then
36631  am__EXEEXT_TRUE=
36632  am__EXEEXT_FALSE='#'
36633else
36634  am__EXEEXT_TRUE='#'
36635  am__EXEEXT_FALSE=
36636fi
36637
36638if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
36639  as_fn_error $? "conditional \"AMDEP\" was never defined.
36640Usually this means the macro was only invoked conditionally." "$LINENO" 5
36641fi
36642if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36643  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
36644Usually this means the macro was only invoked conditionally." "$LINENO" 5
36645fi
36646if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36647  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
36648Usually this means the macro was only invoked conditionally." "$LINENO" 5
36649fi
36650
36651if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
36652  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
36653Usually this means the macro was only invoked conditionally." "$LINENO" 5
36654fi
36655if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
36656  as_fn_error $? "conditional \"VPATH_HACK\" was never defined.
36657Usually this means the macro was only invoked conditionally." "$LINENO" 5
36658fi
36659if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
36660  as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
36661Usually this means the macro was only invoked conditionally." "$LINENO" 5
36662fi
36663if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
36664  as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
36665Usually this means the macro was only invoked conditionally." "$LINENO" 5
36666fi
36667if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
36668  as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
36669Usually this means the macro was only invoked conditionally." "$LINENO" 5
36670fi
36671if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
36672  as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
36673Usually this means the macro was only invoked conditionally." "$LINENO" 5
36674fi
36675if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
36676  as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
36677Usually this means the macro was only invoked conditionally." "$LINENO" 5
36678fi
36679if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
36680  as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
36681Usually this means the macro was only invoked conditionally." "$LINENO" 5
36682fi
36683if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
36684  as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
36685Usually this means the macro was only invoked conditionally." "$LINENO" 5
36686fi
36687if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
36688  as_fn_error $? "conditional \"PTHREADS\" was never defined.
36689Usually this means the macro was only invoked conditionally." "$LINENO" 5
36690fi
36691if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
36692  as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
36693Usually this means the macro was only invoked conditionally." "$LINENO" 5
36694fi
36695if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
36696  as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined.
36697Usually this means the macro was only invoked conditionally." "$LINENO" 5
36698fi
36699if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
36700  as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
36701Usually this means the macro was only invoked conditionally." "$LINENO" 5
36702fi
36703
36704: "${CONFIG_STATUS=./config.status}"
36705ac_write_fail=0
36706ac_clean_files_save=$ac_clean_files
36707ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36708{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
36709$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
36710as_write_fail=0
36711cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
36712#! $SHELL
36713# Generated by $as_me.
36714# Run this file to recreate the current configuration.
36715# Compiler output produced by configure, useful for debugging
36716# configure, is in config.log if it exists.
36717
36718debug=false
36719ac_cs_recheck=false
36720ac_cs_silent=false
36721
36722SHELL=\${CONFIG_SHELL-$SHELL}
36723export SHELL
36724_ASEOF
36725cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36726## -------------------- ##
36727## M4sh Initialization. ##
36728## -------------------- ##
36729
36730# Be more Bourne compatible
36731DUALCASE=1; export DUALCASE # for MKS sh
36732if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
36733  emulate sh
36734  NULLCMD=:
36735  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36736  # is contrary to our usage.  Disable this feature.
36737  alias -g '${1+"$@"}'='"$@"'
36738  setopt NO_GLOB_SUBST
36739else
36740  case `(set -o) 2>/dev/null` in #(
36741  *posix*) :
36742    set -o posix ;; #(
36743  *) :
36744     ;;
36745esac
36746fi
36747
36748
36749as_nl='
36750'
36751export as_nl
36752# Printing a long string crashes Solaris 7 /usr/bin/printf.
36753as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36754as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36755as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
36756# Prefer a ksh shell builtin over an external printf program on Solaris,
36757# but without wasting forks for bash or zsh.
36758if test -z "$BASH_VERSION$ZSH_VERSION" \
36759    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36760  as_echo='print -r --'
36761  as_echo_n='print -rn --'
36762elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
36763  as_echo='printf %s\n'
36764  as_echo_n='printf %s'
36765else
36766  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36767    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36768    as_echo_n='/usr/ucb/echo -n'
36769  else
36770    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36771    as_echo_n_body='eval
36772      arg=$1;
36773      case $arg in #(
36774      *"$as_nl"*)
36775	expr "X$arg" : "X\\(.*\\)$as_nl";
36776	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36777      esac;
36778      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36779    '
36780    export as_echo_n_body
36781    as_echo_n='sh -c $as_echo_n_body as_echo'
36782  fi
36783  export as_echo_body
36784  as_echo='sh -c $as_echo_body as_echo'
36785fi
36786
36787# The user is always right.
36788if test "${PATH_SEPARATOR+set}" != set; then
36789  PATH_SEPARATOR=:
36790  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36791    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36792      PATH_SEPARATOR=';'
36793  }
36794fi
36795
36796
36797# IFS
36798# We need space, tab and new line, in precisely that order.  Quoting is
36799# there to prevent editors from complaining about space-tab.
36800# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36801# splitting by setting IFS to empty value.)
36802IFS=" ""	$as_nl"
36803
36804# Find who we are.  Look in the path if we contain no directory separator.
36805as_myself=
36806case $0 in #((
36807  *[\\/]* ) as_myself=$0 ;;
36808  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36809for as_dir in $PATH
36810do
36811  IFS=$as_save_IFS
36812  test -z "$as_dir" && as_dir=.
36813    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36814  done
36815IFS=$as_save_IFS
36816
36817     ;;
36818esac
36819# We did not find ourselves, most probably we were run as `sh COMMAND'
36820# in which case we are not to be found in the path.
36821if test "x$as_myself" = x; then
36822  as_myself=$0
36823fi
36824if test ! -f "$as_myself"; then
36825  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36826  exit 1
36827fi
36828
36829# Unset variables that we do not need and which cause bugs (e.g. in
36830# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
36831# suppresses any "Segmentation fault" message there.  '((' could
36832# trigger a bug in pdksh 5.2.14.
36833for as_var in BASH_ENV ENV MAIL MAILPATH
36834do eval test x\${$as_var+set} = xset \
36835  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
36836done
36837PS1='$ '
36838PS2='> '
36839PS4='+ '
36840
36841# NLS nuisances.
36842LC_ALL=C
36843export LC_ALL
36844LANGUAGE=C
36845export LANGUAGE
36846
36847# CDPATH.
36848(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36849
36850
36851# as_fn_error STATUS ERROR [LINENO LOG_FD]
36852# ----------------------------------------
36853# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36854# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
36855# script with STATUS, using 1 if that was 0.
36856as_fn_error ()
36857{
36858  as_status=$1; test $as_status -eq 0 && as_status=1
36859  if test "$4"; then
36860    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36861    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
36862  fi
36863  $as_echo "$as_me: error: $2" >&2
36864  as_fn_exit $as_status
36865} # as_fn_error
36866
36867
36868# as_fn_set_status STATUS
36869# -----------------------
36870# Set $? to STATUS, without forking.
36871as_fn_set_status ()
36872{
36873  return $1
36874} # as_fn_set_status
36875
36876# as_fn_exit STATUS
36877# -----------------
36878# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36879as_fn_exit ()
36880{
36881  set +e
36882  as_fn_set_status $1
36883  exit $1
36884} # as_fn_exit
36885
36886# as_fn_unset VAR
36887# ---------------
36888# Portably unset VAR.
36889as_fn_unset ()
36890{
36891  { eval $1=; unset $1;}
36892}
36893as_unset=as_fn_unset
36894# as_fn_append VAR VALUE
36895# ----------------------
36896# Append the text in VALUE to the end of the definition contained in VAR. Take
36897# advantage of any shell optimizations that allow amortized linear growth over
36898# repeated appends, instead of the typical quadratic growth present in naive
36899# implementations.
36900if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36901  eval 'as_fn_append ()
36902  {
36903    eval $1+=\$2
36904  }'
36905else
36906  as_fn_append ()
36907  {
36908    eval $1=\$$1\$2
36909  }
36910fi # as_fn_append
36911
36912# as_fn_arith ARG...
36913# ------------------
36914# Perform arithmetic evaluation on the ARGs, and store the result in the
36915# global $as_val. Take advantage of shells that can avoid forks. The arguments
36916# must be portable across $(()) and expr.
36917if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36918  eval 'as_fn_arith ()
36919  {
36920    as_val=$(( $* ))
36921  }'
36922else
36923  as_fn_arith ()
36924  {
36925    as_val=`expr "$@" || test $? -eq 1`
36926  }
36927fi # as_fn_arith
36928
36929
36930if expr a : '\(a\)' >/dev/null 2>&1 &&
36931   test "X`expr 00001 : '.*\(...\)'`" = X001; then
36932  as_expr=expr
36933else
36934  as_expr=false
36935fi
36936
36937if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36938  as_basename=basename
36939else
36940  as_basename=false
36941fi
36942
36943if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36944  as_dirname=dirname
36945else
36946  as_dirname=false
36947fi
36948
36949as_me=`$as_basename -- "$0" ||
36950$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36951	 X"$0" : 'X\(//\)$' \| \
36952	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36953$as_echo X/"$0" |
36954    sed '/^.*\/\([^/][^/]*\)\/*$/{
36955	    s//\1/
36956	    q
36957	  }
36958	  /^X\/\(\/\/\)$/{
36959	    s//\1/
36960	    q
36961	  }
36962	  /^X\/\(\/\).*/{
36963	    s//\1/
36964	    q
36965	  }
36966	  s/.*/./; q'`
36967
36968# Avoid depending upon Character Ranges.
36969as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36970as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36971as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36972as_cr_digits='0123456789'
36973as_cr_alnum=$as_cr_Letters$as_cr_digits
36974
36975ECHO_C= ECHO_N= ECHO_T=
36976case `echo -n x` in #(((((
36977-n*)
36978  case `echo 'xy\c'` in
36979  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
36980  xy)  ECHO_C='\c';;
36981  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
36982       ECHO_T='	';;
36983  esac;;
36984*)
36985  ECHO_N='-n';;
36986esac
36987
36988rm -f conf$$ conf$$.exe conf$$.file
36989if test -d conf$$.dir; then
36990  rm -f conf$$.dir/conf$$.file
36991else
36992  rm -f conf$$.dir
36993  mkdir conf$$.dir 2>/dev/null
36994fi
36995if (echo >conf$$.file) 2>/dev/null; then
36996  if ln -s conf$$.file conf$$ 2>/dev/null; then
36997    as_ln_s='ln -s'
36998    # ... but there are two gotchas:
36999    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37000    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
37001    # In both cases, we have to default to `cp -p'.
37002    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
37003      as_ln_s='cp -p'
37004  elif ln conf$$.file conf$$ 2>/dev/null; then
37005    as_ln_s=ln
37006  else
37007    as_ln_s='cp -p'
37008  fi
37009else
37010  as_ln_s='cp -p'
37011fi
37012rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37013rmdir conf$$.dir 2>/dev/null
37014
37015
37016# as_fn_mkdir_p
37017# -------------
37018# Create "$as_dir" as a directory, including parents if necessary.
37019as_fn_mkdir_p ()
37020{
37021
37022  case $as_dir in #(
37023  -*) as_dir=./$as_dir;;
37024  esac
37025  test -d "$as_dir" || eval $as_mkdir_p || {
37026    as_dirs=
37027    while :; do
37028      case $as_dir in #(
37029      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37030      *) as_qdir=$as_dir;;
37031      esac
37032      as_dirs="'$as_qdir' $as_dirs"
37033      as_dir=`$as_dirname -- "$as_dir" ||
37034$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37035	 X"$as_dir" : 'X\(//\)[^/]' \| \
37036	 X"$as_dir" : 'X\(//\)$' \| \
37037	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37038$as_echo X"$as_dir" |
37039    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37040	    s//\1/
37041	    q
37042	  }
37043	  /^X\(\/\/\)[^/].*/{
37044	    s//\1/
37045	    q
37046	  }
37047	  /^X\(\/\/\)$/{
37048	    s//\1/
37049	    q
37050	  }
37051	  /^X\(\/\).*/{
37052	    s//\1/
37053	    q
37054	  }
37055	  s/.*/./; q'`
37056      test -d "$as_dir" && break
37057    done
37058    test -z "$as_dirs" || eval "mkdir $as_dirs"
37059  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
37060
37061
37062} # as_fn_mkdir_p
37063if mkdir -p . 2>/dev/null; then
37064  as_mkdir_p='mkdir -p "$as_dir"'
37065else
37066  test -d ./-p && rmdir ./-p
37067  as_mkdir_p=false
37068fi
37069
37070if test -x / >/dev/null 2>&1; then
37071  as_test_x='test -x'
37072else
37073  if ls -dL / >/dev/null 2>&1; then
37074    as_ls_L_option=L
37075  else
37076    as_ls_L_option=
37077  fi
37078  as_test_x='
37079    eval sh -c '\''
37080      if test -d "$1"; then
37081	test -d "$1/.";
37082      else
37083	case $1 in #(
37084	-*)set "./$1";;
37085	esac;
37086	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
37087	???[sx]*):;;*)false;;esac;fi
37088    '\'' sh
37089  '
37090fi
37091as_executable_p=$as_test_x
37092
37093# Sed expression to map a string onto a valid CPP name.
37094as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37095
37096# Sed expression to map a string onto a valid variable name.
37097as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37098
37099
37100exec 6>&1
37101## ----------------------------------- ##
37102## Main body of $CONFIG_STATUS script. ##
37103## ----------------------------------- ##
37104_ASEOF
37105test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
37106
37107cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37108# Save the log message, to keep $0 and so on meaningful, and to
37109# report actual input values of CONFIG_FILES etc. instead of their
37110# values after options handling.
37111ac_log="
37112This file was extended by ntp $as_me 4.2.8p1, which was
37113generated by GNU Autoconf 2.68.  Invocation command line was
37114
37115  CONFIG_FILES    = $CONFIG_FILES
37116  CONFIG_HEADERS  = $CONFIG_HEADERS
37117  CONFIG_LINKS    = $CONFIG_LINKS
37118  CONFIG_COMMANDS = $CONFIG_COMMANDS
37119  $ $0 $@
37120
37121on `(hostname || uname -n) 2>/dev/null | sed 1q`
37122"
37123
37124_ACEOF
37125
37126case $ac_config_files in *"
37127"*) set x $ac_config_files; shift; ac_config_files=$*;;
37128esac
37129
37130case $ac_config_headers in *"
37131"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37132esac
37133
37134
37135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37136# Files that config.status was made for.
37137config_files="$ac_config_files"
37138config_headers="$ac_config_headers"
37139config_commands="$ac_config_commands"
37140
37141_ACEOF
37142
37143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37144ac_cs_usage="\
37145\`$as_me' instantiates files and other configuration actions
37146from templates according to the current configuration.  Unless the files
37147and actions are specified as TAGs, all are instantiated by default.
37148
37149Usage: $0 [OPTION]... [TAG]...
37150
37151  -h, --help       print this help, then exit
37152  -V, --version    print version number and configuration settings, then exit
37153      --config     print configuration, then exit
37154  -q, --quiet, --silent
37155                   do not print progress messages
37156  -d, --debug      don't remove temporary files
37157      --recheck    update $as_me by reconfiguring in the same conditions
37158      --file=FILE[:TEMPLATE]
37159                   instantiate the configuration file FILE
37160      --header=FILE[:TEMPLATE]
37161                   instantiate the configuration header FILE
37162
37163Configuration files:
37164$config_files
37165
37166Configuration headers:
37167$config_headers
37168
37169Configuration commands:
37170$config_commands
37171
37172Report bugs to <http://bugs.ntp.org./>.
37173ntp home page: <http://www.ntp.org./>."
37174
37175_ACEOF
37176cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37177ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
37178ac_cs_version="\\
37179ntp config.status 4.2.8p1
37180configured by $0, generated by GNU Autoconf 2.68,
37181  with options \\"\$ac_cs_config\\"
37182
37183Copyright (C) 2010 Free Software Foundation, Inc.
37184This config.status script is free software; the Free Software Foundation
37185gives unlimited permission to copy, distribute and modify it."
37186
37187ac_pwd='$ac_pwd'
37188srcdir='$srcdir'
37189INSTALL='$INSTALL'
37190MKDIR_P='$MKDIR_P'
37191AWK='$AWK'
37192test -n "\$AWK" || AWK=awk
37193_ACEOF
37194
37195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37196# The default lists apply if the user does not specify any file.
37197ac_need_defaults=:
37198while test $# != 0
37199do
37200  case $1 in
37201  --*=?*)
37202    ac_option=`expr "X$1" : 'X\([^=]*\)='`
37203    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37204    ac_shift=:
37205    ;;
37206  --*=)
37207    ac_option=`expr "X$1" : 'X\([^=]*\)='`
37208    ac_optarg=
37209    ac_shift=:
37210    ;;
37211  *)
37212    ac_option=$1
37213    ac_optarg=$2
37214    ac_shift=shift
37215    ;;
37216  esac
37217
37218  case $ac_option in
37219  # Handling of the options.
37220  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37221    ac_cs_recheck=: ;;
37222  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37223    $as_echo "$ac_cs_version"; exit ;;
37224  --config | --confi | --conf | --con | --co | --c )
37225    $as_echo "$ac_cs_config"; exit ;;
37226  --debug | --debu | --deb | --de | --d | -d )
37227    debug=: ;;
37228  --file | --fil | --fi | --f )
37229    $ac_shift
37230    case $ac_optarg in
37231    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37232    '') as_fn_error $? "missing file argument" ;;
37233    esac
37234    as_fn_append CONFIG_FILES " '$ac_optarg'"
37235    ac_need_defaults=false;;
37236  --header | --heade | --head | --hea )
37237    $ac_shift
37238    case $ac_optarg in
37239    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37240    esac
37241    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
37242    ac_need_defaults=false;;
37243  --he | --h)
37244    # Conflict between --help and --header
37245    as_fn_error $? "ambiguous option: \`$1'
37246Try \`$0 --help' for more information.";;
37247  --help | --hel | -h )
37248    $as_echo "$ac_cs_usage"; exit ;;
37249  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37250  | -silent | --silent | --silen | --sile | --sil | --si | --s)
37251    ac_cs_silent=: ;;
37252
37253  # This is an error.
37254  -*) as_fn_error $? "unrecognized option: \`$1'
37255Try \`$0 --help' for more information." ;;
37256
37257  *) as_fn_append ac_config_targets " $1"
37258     ac_need_defaults=false ;;
37259
37260  esac
37261  shift
37262done
37263
37264ac_configure_extra_args=
37265
37266if $ac_cs_silent; then
37267  exec 6>/dev/null
37268  ac_configure_extra_args="$ac_configure_extra_args --silent"
37269fi
37270
37271_ACEOF
37272cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37273if \$ac_cs_recheck; then
37274  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37275  shift
37276  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37277  CONFIG_SHELL='$SHELL'
37278  export CONFIG_SHELL
37279  exec "\$@"
37280fi
37281
37282_ACEOF
37283cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37284exec 5>>config.log
37285{
37286  echo
37287  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37288## Running $as_me. ##
37289_ASBOX
37290  $as_echo "$ac_log"
37291} >&5
37292
37293_ACEOF
37294cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37295#
37296# INIT-COMMANDS
37297#
37298AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37299
37300
37301# The HP-UX ksh and POSIX shell print the target directory to stdout
37302# if CDPATH is set.
37303(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37304
37305sed_quote_subst='$sed_quote_subst'
37306double_quote_subst='$double_quote_subst'
37307delay_variable_subst='$delay_variable_subst'
37308enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37309macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37310macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37311enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37312pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37313enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
37314SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37315ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37316host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37317host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37318host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37319build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37320build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37321build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37322SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37323Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37324GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37325EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37326FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37327LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37328NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37329LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37330max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37331ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37332exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37333lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37334lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37335lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
37336lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37337lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
37338reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37339reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37340OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37341deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37342file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
37343file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37344want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37345DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37346sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
37347AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37348AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
37349archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
37350STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37351RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37352old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37353old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37354old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37355lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37356CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37357CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37358compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37359GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37360lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37361lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37362lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37363lt_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"`'
37364nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37365lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
37366objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37367MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37368lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
37369lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
37370lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
37371lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37372lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37373need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
37374MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
37375DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37376NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37377LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37378OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37379OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37380libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37381shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37382extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37383archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37384enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37385export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37386whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37387compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37388old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37389old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37390archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37391archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37392module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37393module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37394with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37395allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37396no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37397hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
37398hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
37399hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37400hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37401hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37402hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37403hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37404hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37405inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37406link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
37407always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37408export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37409exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37410include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37411prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
37412postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
37413file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37414variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37415need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37416need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37417version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37418runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37419shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37420shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37421libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37422library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37423soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37424install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37425postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37426postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37427finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37428finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37429hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37430sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37431sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37432hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37433enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37434enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37435enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37436old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37437striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37438compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37439predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37440postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37441predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37442postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37443compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37444LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37445reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37446reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37447old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37448compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37449GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37450lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
37451lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
37452lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
37453lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37454lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37455archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37456enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37457export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37458whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37459compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37460old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37461old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37462archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37463archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37464module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37465module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37466with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37467allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37468no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37469hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37470hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
37471hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37472hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37473hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37474hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37475hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37476hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37477inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37478link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
37479always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37480export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37481exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37482include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37483prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37484postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37485file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37486hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37487compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37488predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37489postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37490predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37491postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37492compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
37493
37494LTCC='$LTCC'
37495LTCFLAGS='$LTCFLAGS'
37496compiler='$compiler_DEFAULT'
37497
37498# A function that is used when there is no print builtin or printf.
37499func_fallback_echo ()
37500{
37501  eval 'cat <<_LTECHO_EOF
37502\$1
37503_LTECHO_EOF'
37504}
37505
37506# Quote evaled strings.
37507for var in SHELL \
37508ECHO \
37509SED \
37510GREP \
37511EGREP \
37512FGREP \
37513LD \
37514NM \
37515LN_S \
37516lt_SP2NL \
37517lt_NL2SP \
37518reload_flag \
37519OBJDUMP \
37520deplibs_check_method \
37521file_magic_cmd \
37522file_magic_glob \
37523want_nocaseglob \
37524DLLTOOL \
37525sharedlib_from_linklib_cmd \
37526AR \
37527AR_FLAGS \
37528archiver_list_spec \
37529STRIP \
37530RANLIB \
37531CC \
37532CFLAGS \
37533compiler \
37534lt_cv_sys_global_symbol_pipe \
37535lt_cv_sys_global_symbol_to_cdecl \
37536lt_cv_sys_global_symbol_to_c_name_address \
37537lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
37538nm_file_list_spec \
37539lt_prog_compiler_no_builtin_flag \
37540lt_prog_compiler_pic \
37541lt_prog_compiler_wl \
37542lt_prog_compiler_static \
37543lt_cv_prog_compiler_c_o \
37544need_locks \
37545MANIFEST_TOOL \
37546DSYMUTIL \
37547NMEDIT \
37548LIPO \
37549OTOOL \
37550OTOOL64 \
37551shrext_cmds \
37552export_dynamic_flag_spec \
37553whole_archive_flag_spec \
37554compiler_needs_object \
37555with_gnu_ld \
37556allow_undefined_flag \
37557no_undefined_flag \
37558hardcode_libdir_flag_spec \
37559hardcode_libdir_flag_spec_ld \
37560hardcode_libdir_separator \
37561exclude_expsyms \
37562include_expsyms \
37563file_list_spec \
37564variables_saved_for_relink \
37565libname_spec \
37566library_names_spec \
37567soname_spec \
37568install_override_mode \
37569finish_eval \
37570old_striplib \
37571striplib \
37572compiler_lib_search_dirs \
37573predep_objects \
37574postdep_objects \
37575predeps \
37576postdeps \
37577compiler_lib_search_path \
37578LD_CXX \
37579reload_flag_CXX \
37580compiler_CXX \
37581lt_prog_compiler_no_builtin_flag_CXX \
37582lt_prog_compiler_pic_CXX \
37583lt_prog_compiler_wl_CXX \
37584lt_prog_compiler_static_CXX \
37585lt_cv_prog_compiler_c_o_CXX \
37586export_dynamic_flag_spec_CXX \
37587whole_archive_flag_spec_CXX \
37588compiler_needs_object_CXX \
37589with_gnu_ld_CXX \
37590allow_undefined_flag_CXX \
37591no_undefined_flag_CXX \
37592hardcode_libdir_flag_spec_CXX \
37593hardcode_libdir_flag_spec_ld_CXX \
37594hardcode_libdir_separator_CXX \
37595exclude_expsyms_CXX \
37596include_expsyms_CXX \
37597file_list_spec_CXX \
37598compiler_lib_search_dirs_CXX \
37599predep_objects_CXX \
37600postdep_objects_CXX \
37601predeps_CXX \
37602postdeps_CXX \
37603compiler_lib_search_path_CXX; do
37604    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37605    *[\\\\\\\`\\"\\\$]*)
37606      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
37607      ;;
37608    *)
37609      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37610      ;;
37611    esac
37612done
37613
37614# Double-quote double-evaled strings.
37615for var in reload_cmds \
37616old_postinstall_cmds \
37617old_postuninstall_cmds \
37618old_archive_cmds \
37619extract_expsyms_cmds \
37620old_archive_from_new_cmds \
37621old_archive_from_expsyms_cmds \
37622archive_cmds \
37623archive_expsym_cmds \
37624module_cmds \
37625module_expsym_cmds \
37626export_symbols_cmds \
37627prelink_cmds \
37628postlink_cmds \
37629postinstall_cmds \
37630postuninstall_cmds \
37631finish_cmds \
37632sys_lib_search_path_spec \
37633sys_lib_dlsearch_path_spec \
37634reload_cmds_CXX \
37635old_archive_cmds_CXX \
37636old_archive_from_new_cmds_CXX \
37637old_archive_from_expsyms_cmds_CXX \
37638archive_cmds_CXX \
37639archive_expsym_cmds_CXX \
37640module_cmds_CXX \
37641module_expsym_cmds_CXX \
37642export_symbols_cmds_CXX \
37643prelink_cmds_CXX \
37644postlink_cmds_CXX; do
37645    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37646    *[\\\\\\\`\\"\\\$]*)
37647      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
37648      ;;
37649    *)
37650      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37651      ;;
37652    esac
37653done
37654
37655ac_aux_dir='$ac_aux_dir'
37656xsi_shell='$xsi_shell'
37657lt_shell_append='$lt_shell_append'
37658
37659# See if we are running on zsh, and set the options which allow our
37660# commands through without removal of \ escapes INIT.
37661if test -n "\${ZSH_VERSION+set}" ; then
37662   setopt NO_GLOB_SUBST
37663fi
37664
37665
37666    PACKAGE='$PACKAGE'
37667    VERSION='$VERSION'
37668    TIMESTAMP='$TIMESTAMP'
37669    RM='$RM'
37670    ofile='$ofile'
37671
37672
37673
37674
37675
37676
37677_ACEOF
37678
37679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37680
37681# Handling of arguments.
37682for ac_config_target in $ac_config_targets
37683do
37684  case $ac_config_target in
37685    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
37686    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37687    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37688    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37689    "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
37690    "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
37691    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
37692    "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
37693    "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
37694    "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
37695    "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
37696    "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
37697    "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
37698    "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
37699    "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
37700    "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
37701    "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
37702    "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
37703    "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;;
37704    "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
37705    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
37706    "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
37707    "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
37708    "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
37709    "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
37710    "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
37711    "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
37712    "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
37713    "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
37714    "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
37715    "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
37716    "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
37717    "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
37718    "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
37719    "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
37720    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
37721    "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
37722    "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
37723    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
37724
37725  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
37726  esac
37727done
37728
37729
37730# If the user did not use the arguments to specify the items to instantiate,
37731# then the envvar interface is used.  Set only those that are not.
37732# We use the long form for the default assignment because of an extremely
37733# bizarre bug on SunOS 4.1.3.
37734if $ac_need_defaults; then
37735  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37736  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37737  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37738fi
37739
37740# Have a temporary directory for convenience.  Make it in the build tree
37741# simply because there is no reason against having it here, and in addition,
37742# creating and moving files from /tmp can sometimes cause problems.
37743# Hook for its removal unless debugging.
37744# Note that there is a small window in which the directory will not be cleaned:
37745# after its creation but before its name has been assigned to `$tmp'.
37746$debug ||
37747{
37748  tmp= ac_tmp=
37749  trap 'exit_status=$?
37750  : "${ac_tmp:=$tmp}"
37751  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
37752' 0
37753  trap 'as_fn_exit 1' 1 2 13 15
37754}
37755# Create a (secure) tmp directory for tmp files.
37756
37757{
37758  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
37759  test -d "$tmp"
37760}  ||
37761{
37762  tmp=./conf$$-$RANDOM
37763  (umask 077 && mkdir "$tmp")
37764} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
37765ac_tmp=$tmp
37766
37767# Set up the scripts for CONFIG_FILES section.
37768# No need to generate them if there are no CONFIG_FILES.
37769# This happens for instance with `./config.status config.h'.
37770if test -n "$CONFIG_FILES"; then
37771
37772if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
37773  ac_cs_awk_getline=:
37774  ac_cs_awk_pipe_init=
37775  ac_cs_awk_read_file='
37776      while ((getline aline < (F[key])) > 0)
37777	print(aline)
37778      close(F[key])'
37779  ac_cs_awk_pipe_fini=
37780else
37781  ac_cs_awk_getline=false
37782  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
37783  ac_cs_awk_read_file='
37784      print "|#_!!_#|"
37785      print "cat " F[key] " &&"
37786      '$ac_cs_awk_pipe_init
37787  # The final `:' finishes the AND list.
37788  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
37789fi
37790ac_cr=`echo X | tr X '\015'`
37791# On cygwin, bash can eat \r inside `` if the user requested igncr.
37792# But we know of no other shell where ac_cr would be empty at this
37793# point, so we can use a bashism as a fallback.
37794if test "x$ac_cr" = x; then
37795  eval ac_cr=\$\'\\r\'
37796fi
37797ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37798if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
37799  ac_cs_awk_cr='\\r'
37800else
37801  ac_cs_awk_cr=$ac_cr
37802fi
37803
37804echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
37805_ACEOF
37806
37807# Create commands to substitute file output variables.
37808{
37809  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
37810  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
37811  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
37812  echo "_ACAWK" &&
37813  echo "_ACEOF"
37814} >conf$$files.sh &&
37815. ./conf$$files.sh ||
37816  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37817rm -f conf$$files.sh
37818
37819{
37820  echo "cat >conf$$subs.awk <<_ACEOF" &&
37821  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37822  echo "_ACEOF"
37823} >conf$$subs.sh ||
37824  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37825ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
37826ac_delim='%!_!# '
37827for ac_last_try in false false false false false :; do
37828  . ./conf$$subs.sh ||
37829    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37830
37831  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37832  if test $ac_delim_n = $ac_delim_num; then
37833    break
37834  elif $ac_last_try; then
37835    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37836  else
37837    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37838  fi
37839done
37840rm -f conf$$subs.sh
37841
37842cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37843cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
37844_ACEOF
37845sed -n '
37846h
37847s/^/S["/; s/!.*/"]=/
37848p
37849g
37850s/^[^!]*!//
37851:repl
37852t repl
37853s/'"$ac_delim"'$//
37854t delim
37855:nl
37856h
37857s/\(.\{148\}\)..*/\1/
37858t more1
37859s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37860p
37861n
37862b repl
37863:more1
37864s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37865p
37866g
37867s/.\{148\}//
37868t nl
37869:delim
37870h
37871s/\(.\{148\}\)..*/\1/
37872t more2
37873s/["\\]/\\&/g; s/^/"/; s/$/"/
37874p
37875b
37876:more2
37877s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37878p
37879g
37880s/.\{148\}//
37881t delim
37882' <conf$$subs.awk | sed '
37883/^[^""]/{
37884  N
37885  s/\n//
37886}
37887' >>$CONFIG_STATUS || ac_write_fail=1
37888rm -f conf$$subs.awk
37889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37890_ACAWK
37891cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
37892  for (key in S) S_is_set[key] = 1
37893  FS = ""
37894  \$ac_cs_awk_pipe_init
37895}
37896{
37897  line = $ 0
37898  nfields = split(line, field, "@")
37899  substed = 0
37900  len = length(field[1])
37901  for (i = 2; i < nfields; i++) {
37902    key = field[i]
37903    keylen = length(key)
37904    if (S_is_set[key]) {
37905      value = S[key]
37906      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37907      len += length(value) + length(field[++i])
37908      substed = 1
37909    } else
37910      len += 1 + keylen
37911  }
37912  if (nfields == 3 && !substed) {
37913    key = field[2]
37914    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
37915      \$ac_cs_awk_read_file
37916      next
37917    }
37918  }
37919  print line
37920}
37921\$ac_cs_awk_pipe_fini
37922_ACAWK
37923_ACEOF
37924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37925if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37926  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37927else
37928  cat
37929fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
37930  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
37931_ACEOF
37932
37933# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37934# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
37935# trailing colons and then remove the whole line if VPATH becomes empty
37936# (actually we leave an empty line to preserve line numbers).
37937if test "x$srcdir" = x.; then
37938  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
37939h
37940s///
37941s/^/:/
37942s/[	 ]*$/:/
37943s/:\$(srcdir):/:/g
37944s/:\${srcdir}:/:/g
37945s/:@srcdir@:/:/g
37946s/^:*//
37947s/:*$//
37948x
37949s/\(=[	 ]*\).*/\1/
37950G
37951s/\n//
37952s/^[^=]*=[	 ]*$//
37953}'
37954fi
37955
37956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37957fi # test -n "$CONFIG_FILES"
37958
37959# Set up the scripts for CONFIG_HEADERS section.
37960# No need to generate them if there are no CONFIG_HEADERS.
37961# This happens for instance with `./config.status Makefile'.
37962if test -n "$CONFIG_HEADERS"; then
37963cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
37964BEGIN {
37965_ACEOF
37966
37967# Transform confdefs.h into an awk script `defines.awk', embedded as
37968# here-document in config.status, that substitutes the proper values into
37969# config.h.in to produce config.h.
37970
37971# Create a delimiter string that does not exist in confdefs.h, to ease
37972# handling of long lines.
37973ac_delim='%!_!# '
37974for ac_last_try in false false :; do
37975  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37976  if test -z "$ac_tt"; then
37977    break
37978  elif $ac_last_try; then
37979    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
37980  else
37981    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37982  fi
37983done
37984
37985# For the awk script, D is an array of macro values keyed by name,
37986# likewise P contains macro parameters if any.  Preserve backslash
37987# newline sequences.
37988
37989ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37990sed -n '
37991s/.\{148\}/&'"$ac_delim"'/g
37992t rset
37993:rset
37994s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
37995t def
37996d
37997:def
37998s/\\$//
37999t bsnl
38000s/["\\]/\\&/g
38001s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
38002D["\1"]=" \3"/p
38003s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
38004d
38005:bsnl
38006s/["\\]/\\&/g
38007s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
38008D["\1"]=" \3\\\\\\n"\\/p
38009t cont
38010s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38011t cont
38012d
38013:cont
38014n
38015s/.\{148\}/&'"$ac_delim"'/g
38016t clear
38017:clear
38018s/\\$//
38019t bsnlc
38020s/["\\]/\\&/g; s/^/"/; s/$/"/p
38021d
38022:bsnlc
38023s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38024b cont
38025' <confdefs.h | sed '
38026s/'"$ac_delim"'/"\\\
38027"/g' >>$CONFIG_STATUS || ac_write_fail=1
38028
38029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38030  for (key in D) D_is_set[key] = 1
38031  FS = ""
38032}
38033/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38034  line = \$ 0
38035  split(line, arg, " ")
38036  if (arg[1] == "#") {
38037    defundef = arg[2]
38038    mac1 = arg[3]
38039  } else {
38040    defundef = substr(arg[1], 2)
38041    mac1 = arg[2]
38042  }
38043  split(mac1, mac2, "(") #)
38044  macro = mac2[1]
38045  prefix = substr(line, 1, index(line, defundef) - 1)
38046  if (D_is_set[macro]) {
38047    # Preserve the white space surrounding the "#".
38048    print prefix "define", macro P[macro] D[macro]
38049    next
38050  } else {
38051    # Replace #undef with comments.  This is necessary, for example,
38052    # in the case of _POSIX_SOURCE, which is predefined and required
38053    # on some systems where configure will not decide to define it.
38054    if (defundef == "undef") {
38055      print "/*", prefix defundef, macro, "*/"
38056      next
38057    }
38058  }
38059}
38060{ print }
38061_ACAWK
38062_ACEOF
38063cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38064  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
38065fi # test -n "$CONFIG_HEADERS"
38066
38067
38068eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
38069shift
38070for ac_tag
38071do
38072  case $ac_tag in
38073  :[FHLC]) ac_mode=$ac_tag; continue;;
38074  esac
38075  case $ac_mode$ac_tag in
38076  :[FHL]*:*);;
38077  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
38078  :[FH]-) ac_tag=-:-;;
38079  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38080  esac
38081  ac_save_IFS=$IFS
38082  IFS=:
38083  set x $ac_tag
38084  IFS=$ac_save_IFS
38085  shift
38086  ac_file=$1
38087  shift
38088
38089  case $ac_mode in
38090  :L) ac_source=$1;;
38091  :[FH])
38092    ac_file_inputs=
38093    for ac_f
38094    do
38095      case $ac_f in
38096      -) ac_f="$ac_tmp/stdin";;
38097      *) # Look for the file first in the build tree, then in the source tree
38098	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
38099	 # because $ac_f cannot contain `:'.
38100	 test -f "$ac_f" ||
38101	   case $ac_f in
38102	   [\\/$]*) false;;
38103	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38104	   esac ||
38105	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
38106      esac
38107      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
38108      as_fn_append ac_file_inputs " '$ac_f'"
38109    done
38110
38111    # Let's still pretend it is `configure' which instantiates (i.e., don't
38112    # use $as_me), people would be surprised to read:
38113    #    /* config.h.  Generated by config.status.  */
38114    configure_input='Generated from '`
38115	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
38116	`' by configure.'
38117    if test x"$ac_file" != x-; then
38118      configure_input="$ac_file.  $configure_input"
38119      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
38120$as_echo "$as_me: creating $ac_file" >&6;}
38121    fi
38122    # Neutralize special characters interpreted by sed in replacement strings.
38123    case $configure_input in #(
38124    *\&* | *\|* | *\\* )
38125       ac_sed_conf_input=`$as_echo "$configure_input" |
38126       sed 's/[\\\\&|]/\\\\&/g'`;; #(
38127    *) ac_sed_conf_input=$configure_input;;
38128    esac
38129
38130    case $ac_tag in
38131    *:-:* | *:-) cat >"$ac_tmp/stdin" \
38132      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
38133    esac
38134    ;;
38135  esac
38136
38137  ac_dir=`$as_dirname -- "$ac_file" ||
38138$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38139	 X"$ac_file" : 'X\(//\)[^/]' \| \
38140	 X"$ac_file" : 'X\(//\)$' \| \
38141	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38142$as_echo X"$ac_file" |
38143    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38144	    s//\1/
38145	    q
38146	  }
38147	  /^X\(\/\/\)[^/].*/{
38148	    s//\1/
38149	    q
38150	  }
38151	  /^X\(\/\/\)$/{
38152	    s//\1/
38153	    q
38154	  }
38155	  /^X\(\/\).*/{
38156	    s//\1/
38157	    q
38158	  }
38159	  s/.*/./; q'`
38160  as_dir="$ac_dir"; as_fn_mkdir_p
38161  ac_builddir=.
38162
38163case "$ac_dir" in
38164.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38165*)
38166  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38167  # A ".." for each directory in $ac_dir_suffix.
38168  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38169  case $ac_top_builddir_sub in
38170  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38171  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38172  esac ;;
38173esac
38174ac_abs_top_builddir=$ac_pwd
38175ac_abs_builddir=$ac_pwd$ac_dir_suffix
38176# for backward compatibility:
38177ac_top_builddir=$ac_top_build_prefix
38178
38179case $srcdir in
38180  .)  # We are building in place.
38181    ac_srcdir=.
38182    ac_top_srcdir=$ac_top_builddir_sub
38183    ac_abs_top_srcdir=$ac_pwd ;;
38184  [\\/]* | ?:[\\/]* )  # Absolute name.
38185    ac_srcdir=$srcdir$ac_dir_suffix;
38186    ac_top_srcdir=$srcdir
38187    ac_abs_top_srcdir=$srcdir ;;
38188  *) # Relative name.
38189    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38190    ac_top_srcdir=$ac_top_build_prefix$srcdir
38191    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38192esac
38193ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38194
38195
38196  case $ac_mode in
38197  :F)
38198  #
38199  # CONFIG_FILE
38200  #
38201
38202  case $INSTALL in
38203  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38204  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38205  esac
38206  ac_MKDIR_P=$MKDIR_P
38207  case $MKDIR_P in
38208  [\\/$]* | ?:[\\/]* ) ;;
38209  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38210  esac
38211_ACEOF
38212
38213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38214# If the template does not know about datarootdir, expand it.
38215# FIXME: This hack should be removed a few years after 2.60.
38216ac_datarootdir_hack=; ac_datarootdir_seen=
38217ac_sed_dataroot='
38218/datarootdir/ {
38219  p
38220  q
38221}
38222/@datadir@/p
38223/@docdir@/p
38224/@infodir@/p
38225/@localedir@/p
38226/@mandir@/p'
38227case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38228*datarootdir*) ac_datarootdir_seen=yes;;
38229*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
38230  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
38231$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38232_ACEOF
38233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38234  ac_datarootdir_hack='
38235  s&@datadir@&$datadir&g
38236  s&@docdir@&$docdir&g
38237  s&@infodir@&$infodir&g
38238  s&@localedir@&$localedir&g
38239  s&@mandir@&$mandir&g
38240  s&\\\${datarootdir}&$datarootdir&g' ;;
38241esac
38242_ACEOF
38243
38244# Neutralize VPATH when `$srcdir' = `.'.
38245# Shell code in configure.ac might set extrasub.
38246# FIXME: do we really want to maintain this feature?
38247cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38248ac_sed_extra="$ac_vpsub
38249$extrasub
38250_ACEOF
38251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38252:t
38253/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38254s|@configure_input@|$ac_sed_conf_input|;t t
38255s&@top_builddir@&$ac_top_builddir_sub&;t t
38256s&@top_build_prefix@&$ac_top_build_prefix&;t t
38257s&@srcdir@&$ac_srcdir&;t t
38258s&@abs_srcdir@&$ac_abs_srcdir&;t t
38259s&@top_srcdir@&$ac_top_srcdir&;t t
38260s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38261s&@builddir@&$ac_builddir&;t t
38262s&@abs_builddir@&$ac_abs_builddir&;t t
38263s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38264s&@INSTALL@&$ac_INSTALL&;t t
38265s&@MKDIR_P@&$ac_MKDIR_P&;t t
38266$ac_datarootdir_hack
38267"
38268eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
38269if $ac_cs_awk_getline; then
38270  $AWK -f "$ac_tmp/subs.awk"
38271else
38272  $AWK -f "$ac_tmp/subs.awk" | $SHELL
38273fi \
38274  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38275
38276test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
38277  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38278  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
38279      "$ac_tmp/out"`; test -z "$ac_out"; } &&
38280  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38281which seems to be undefined.  Please make sure it is defined" >&5
38282$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38283which seems to be undefined.  Please make sure it is defined" >&2;}
38284
38285  rm -f "$ac_tmp/stdin"
38286  case $ac_file in
38287  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38288  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
38289  esac \
38290  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38291 ;;
38292  :H)
38293  #
38294  # CONFIG_HEADER
38295  #
38296  if test x"$ac_file" != x-; then
38297    {
38298      $as_echo "/* $configure_input  */" \
38299      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38300    } >"$ac_tmp/config.h" \
38301      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38302    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
38303      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
38304$as_echo "$as_me: $ac_file is unchanged" >&6;}
38305    else
38306      rm -f "$ac_file"
38307      mv "$ac_tmp/config.h" "$ac_file" \
38308	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
38309    fi
38310  else
38311    $as_echo "/* $configure_input  */" \
38312      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
38313      || as_fn_error $? "could not create -" "$LINENO" 5
38314  fi
38315# Compute "$ac_file"'s index in $config_headers.
38316_am_arg="$ac_file"
38317_am_stamp_count=1
38318for _am_header in $config_headers :; do
38319  case $_am_header in
38320    $_am_arg | $_am_arg:* )
38321      break ;;
38322    * )
38323      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38324  esac
38325done
38326echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38327$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38328	 X"$_am_arg" : 'X\(//\)[^/]' \| \
38329	 X"$_am_arg" : 'X\(//\)$' \| \
38330	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38331$as_echo X"$_am_arg" |
38332    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38333	    s//\1/
38334	    q
38335	  }
38336	  /^X\(\/\/\)[^/].*/{
38337	    s//\1/
38338	    q
38339	  }
38340	  /^X\(\/\/\)$/{
38341	    s//\1/
38342	    q
38343	  }
38344	  /^X\(\/\).*/{
38345	    s//\1/
38346	    q
38347	  }
38348	  s/.*/./; q'`/stamp-h$_am_stamp_count
38349 ;;
38350
38351  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
38352$as_echo "$as_me: executing $ac_file commands" >&6;}
38353 ;;
38354  esac
38355
38356
38357  case $ac_file$ac_mode in
38358    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
38359  # Autoconf 2.62 quotes --file arguments for eval, but not when files
38360  # are listed without --file.  Let's play safe and only enable the eval
38361  # if we detect the quoting.
38362  case $CONFIG_FILES in
38363  *\'*) eval set x "$CONFIG_FILES" ;;
38364  *)   set x $CONFIG_FILES ;;
38365  esac
38366  shift
38367  for mf
38368  do
38369    # Strip MF so we end up with the name of the file.
38370    mf=`echo "$mf" | sed -e 's/:.*$//'`
38371    # Check whether this is an Automake generated Makefile or not.
38372    # We used to match only the files named `Makefile.in', but
38373    # some people rename them; so instead we look at the file content.
38374    # Grep'ing the first line is not enough: some people post-process
38375    # each Makefile.in and add a new line on top of each file to say so.
38376    # Grep'ing the whole file is not good either: AIX grep has a line
38377    # limit of 2048, but all sed's we know have understand at least 4000.
38378    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38379      dirpart=`$as_dirname -- "$mf" ||
38380$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38381	 X"$mf" : 'X\(//\)[^/]' \| \
38382	 X"$mf" : 'X\(//\)$' \| \
38383	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38384$as_echo X"$mf" |
38385    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38386	    s//\1/
38387	    q
38388	  }
38389	  /^X\(\/\/\)[^/].*/{
38390	    s//\1/
38391	    q
38392	  }
38393	  /^X\(\/\/\)$/{
38394	    s//\1/
38395	    q
38396	  }
38397	  /^X\(\/\).*/{
38398	    s//\1/
38399	    q
38400	  }
38401	  s/.*/./; q'`
38402    else
38403      continue
38404    fi
38405    # Extract the definition of DEPDIR, am__include, and am__quote
38406    # from the Makefile without running `make'.
38407    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38408    test -z "$DEPDIR" && continue
38409    am__include=`sed -n 's/^am__include = //p' < "$mf"`
38410    test -z "am__include" && continue
38411    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
38412    # When using ansi2knr, U may be empty or an underscore; expand it
38413    U=`sed -n 's/^U = //p' < "$mf"`
38414    # Find all dependency output files, they are included files with
38415    # $(DEPDIR) in their names.  We invoke sed twice because it is the
38416    # simplest approach to changing $(DEPDIR) to its actual value in the
38417    # expansion.
38418    for file in `sed -n "
38419      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
38420	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
38421      # Make sure the directory exists.
38422      test -f "$dirpart/$file" && continue
38423      fdir=`$as_dirname -- "$file" ||
38424$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38425	 X"$file" : 'X\(//\)[^/]' \| \
38426	 X"$file" : 'X\(//\)$' \| \
38427	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38428$as_echo X"$file" |
38429    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38430	    s//\1/
38431	    q
38432	  }
38433	  /^X\(\/\/\)[^/].*/{
38434	    s//\1/
38435	    q
38436	  }
38437	  /^X\(\/\/\)$/{
38438	    s//\1/
38439	    q
38440	  }
38441	  /^X\(\/\).*/{
38442	    s//\1/
38443	    q
38444	  }
38445	  s/.*/./; q'`
38446      as_dir=$dirpart/$fdir; as_fn_mkdir_p
38447      # echo "creating $dirpart/$file"
38448      echo '# dummy' > "$dirpart/$file"
38449    done
38450  done
38451}
38452 ;;
38453    "libtool":C)
38454
38455    # See if we are running on zsh, and set the options which allow our
38456    # commands through without removal of \ escapes.
38457    if test -n "${ZSH_VERSION+set}" ; then
38458      setopt NO_GLOB_SUBST
38459    fi
38460
38461    cfgfile="${ofile}T"
38462    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38463    $RM "$cfgfile"
38464
38465    cat <<_LT_EOF >> "$cfgfile"
38466#! $SHELL
38467
38468# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38469# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38470# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38471# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38472#
38473#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
38474#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
38475#                 Inc.
38476#   Written by Gordon Matzigkeit, 1996
38477#
38478#   This file is part of GNU Libtool.
38479#
38480# GNU Libtool is free software; you can redistribute it and/or
38481# modify it under the terms of the GNU General Public License as
38482# published by the Free Software Foundation; either version 2 of
38483# the License, or (at your option) any later version.
38484#
38485# As a special exception to the GNU General Public License,
38486# if you distribute this file as part of a program or library that
38487# is built using GNU Libtool, you may include this file under the
38488# same distribution terms that you use for the rest of that program.
38489#
38490# GNU Libtool is distributed in the hope that it will be useful,
38491# but WITHOUT ANY WARRANTY; without even the implied warranty of
38492# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
38493# GNU General Public License for more details.
38494#
38495# You should have received a copy of the GNU General Public License
38496# along with GNU Libtool; see the file COPYING.  If not, a copy
38497# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38498# obtained by writing to the Free Software Foundation, Inc.,
38499# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38500
38501
38502# The names of the tagged configurations supported by this script.
38503available_tags="CXX "
38504
38505# ### BEGIN LIBTOOL CONFIG
38506
38507# Whether or not to build shared libraries.
38508build_libtool_libs=$enable_shared
38509
38510# Which release of libtool.m4 was used?
38511macro_version=$macro_version
38512macro_revision=$macro_revision
38513
38514# Whether or not to build static libraries.
38515build_old_libs=$enable_static
38516
38517# What type of objects to build.
38518pic_mode=$pic_mode
38519
38520# Whether or not to optimize for fast installation.
38521fast_install=$enable_fast_install
38522
38523# Shell to use when invoking shell scripts.
38524SHELL=$lt_SHELL
38525
38526# An echo program that protects backslashes.
38527ECHO=$lt_ECHO
38528
38529# The host system.
38530host_alias=$host_alias
38531host=$host
38532host_os=$host_os
38533
38534# The build system.
38535build_alias=$build_alias
38536build=$build
38537build_os=$build_os
38538
38539# A sed program that does not truncate output.
38540SED=$lt_SED
38541
38542# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38543Xsed="\$SED -e 1s/^X//"
38544
38545# A grep program that handles long lines.
38546GREP=$lt_GREP
38547
38548# An ERE matcher.
38549EGREP=$lt_EGREP
38550
38551# A literal string matcher.
38552FGREP=$lt_FGREP
38553
38554# A BSD- or MS-compatible name lister.
38555NM=$lt_NM
38556
38557# Whether we need soft or hard links.
38558LN_S=$lt_LN_S
38559
38560# What is the maximum length of a command?
38561max_cmd_len=$max_cmd_len
38562
38563# Object file suffix (normally "o").
38564objext=$ac_objext
38565
38566# Executable file suffix (normally "").
38567exeext=$exeext
38568
38569# whether the shell understands "unset".
38570lt_unset=$lt_unset
38571
38572# turn spaces into newlines.
38573SP2NL=$lt_lt_SP2NL
38574
38575# turn newlines into spaces.
38576NL2SP=$lt_lt_NL2SP
38577
38578# convert \$build file names to \$host format.
38579to_host_file_cmd=$lt_cv_to_host_file_cmd
38580
38581# convert \$build files to toolchain format.
38582to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38583
38584# An object symbol dumper.
38585OBJDUMP=$lt_OBJDUMP
38586
38587# Method to check whether dependent libraries are shared objects.
38588deplibs_check_method=$lt_deplibs_check_method
38589
38590# Command to use when deplibs_check_method = "file_magic".
38591file_magic_cmd=$lt_file_magic_cmd
38592
38593# How to find potential files when deplibs_check_method = "file_magic".
38594file_magic_glob=$lt_file_magic_glob
38595
38596# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38597want_nocaseglob=$lt_want_nocaseglob
38598
38599# DLL creation program.
38600DLLTOOL=$lt_DLLTOOL
38601
38602# Command to associate shared and link libraries.
38603sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38604
38605# The archiver.
38606AR=$lt_AR
38607
38608# Flags to create an archive.
38609AR_FLAGS=$lt_AR_FLAGS
38610
38611# How to feed a file listing to the archiver.
38612archiver_list_spec=$lt_archiver_list_spec
38613
38614# A symbol stripping program.
38615STRIP=$lt_STRIP
38616
38617# Commands used to install an old-style archive.
38618RANLIB=$lt_RANLIB
38619old_postinstall_cmds=$lt_old_postinstall_cmds
38620old_postuninstall_cmds=$lt_old_postuninstall_cmds
38621
38622# Whether to use a lock for old archive extraction.
38623lock_old_archive_extraction=$lock_old_archive_extraction
38624
38625# A C compiler.
38626LTCC=$lt_CC
38627
38628# LTCC compiler flags.
38629LTCFLAGS=$lt_CFLAGS
38630
38631# Take the output of nm and produce a listing of raw symbols and C names.
38632global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38633
38634# Transform the output of nm in a proper C declaration.
38635global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38636
38637# Transform the output of nm in a C name address pair.
38638global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38639
38640# Transform the output of nm in a C name address pair when lib prefix is needed.
38641global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38642
38643# Specify filename containing input files for \$NM.
38644nm_file_list_spec=$lt_nm_file_list_spec
38645
38646# The root where to search for dependent libraries,and in which our libraries should be installed.
38647lt_sysroot=$lt_sysroot
38648
38649# The name of the directory that contains temporary libtool files.
38650objdir=$objdir
38651
38652# Used to examine libraries when file_magic_cmd begins with "file".
38653MAGIC_CMD=$MAGIC_CMD
38654
38655# Must we lock files when doing compilation?
38656need_locks=$lt_need_locks
38657
38658# Manifest tool.
38659MANIFEST_TOOL=$lt_MANIFEST_TOOL
38660
38661# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38662DSYMUTIL=$lt_DSYMUTIL
38663
38664# Tool to change global to local symbols on Mac OS X.
38665NMEDIT=$lt_NMEDIT
38666
38667# Tool to manipulate fat objects and archives on Mac OS X.
38668LIPO=$lt_LIPO
38669
38670# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38671OTOOL=$lt_OTOOL
38672
38673# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38674OTOOL64=$lt_OTOOL64
38675
38676# Old archive suffix (normally "a").
38677libext=$libext
38678
38679# Shared library suffix (normally ".so").
38680shrext_cmds=$lt_shrext_cmds
38681
38682# The commands to extract the exported symbol list from a shared archive.
38683extract_expsyms_cmds=$lt_extract_expsyms_cmds
38684
38685# Variables whose values should be saved in libtool wrapper scripts and
38686# restored at link time.
38687variables_saved_for_relink=$lt_variables_saved_for_relink
38688
38689# Do we need the "lib" prefix for modules?
38690need_lib_prefix=$need_lib_prefix
38691
38692# Do we need a version for libraries?
38693need_version=$need_version
38694
38695# Library versioning type.
38696version_type=$version_type
38697
38698# Shared library runtime path variable.
38699runpath_var=$runpath_var
38700
38701# Shared library path variable.
38702shlibpath_var=$shlibpath_var
38703
38704# Is shlibpath searched before the hard-coded library search path?
38705shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38706
38707# Format of library name prefix.
38708libname_spec=$lt_libname_spec
38709
38710# List of archive names.  First name is the real one, the rest are links.
38711# The last name is the one that the linker finds with -lNAME
38712library_names_spec=$lt_library_names_spec
38713
38714# The coded name of the library, if different from the real name.
38715soname_spec=$lt_soname_spec
38716
38717# Permission mode override for installation of shared libraries.
38718install_override_mode=$lt_install_override_mode
38719
38720# Command to use after installation of a shared archive.
38721postinstall_cmds=$lt_postinstall_cmds
38722
38723# Command to use after uninstallation of a shared archive.
38724postuninstall_cmds=$lt_postuninstall_cmds
38725
38726# Commands used to finish a libtool library installation in a directory.
38727finish_cmds=$lt_finish_cmds
38728
38729# As "finish_cmds", except a single script fragment to be evaled but
38730# not shown.
38731finish_eval=$lt_finish_eval
38732
38733# Whether we should hardcode library paths into libraries.
38734hardcode_into_libs=$hardcode_into_libs
38735
38736# Compile-time system search path for libraries.
38737sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38738
38739# Run-time system search path for libraries.
38740sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38741
38742# Whether dlopen is supported.
38743dlopen_support=$enable_dlopen
38744
38745# Whether dlopen of programs is supported.
38746dlopen_self=$enable_dlopen_self
38747
38748# Whether dlopen of statically linked programs is supported.
38749dlopen_self_static=$enable_dlopen_self_static
38750
38751# Commands to strip libraries.
38752old_striplib=$lt_old_striplib
38753striplib=$lt_striplib
38754
38755
38756# The linker used to build libraries.
38757LD=$lt_LD
38758
38759# How to create reloadable object files.
38760reload_flag=$lt_reload_flag
38761reload_cmds=$lt_reload_cmds
38762
38763# Commands used to build an old-style archive.
38764old_archive_cmds=$lt_old_archive_cmds
38765
38766# A language specific compiler.
38767CC=$lt_compiler
38768
38769# Is the compiler the GNU compiler?
38770with_gcc=$GCC
38771
38772# Compiler flag to turn off builtin functions.
38773no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38774
38775# Additional compiler flags for building library objects.
38776pic_flag=$lt_lt_prog_compiler_pic
38777
38778# How to pass a linker flag through the compiler.
38779wl=$lt_lt_prog_compiler_wl
38780
38781# Compiler flag to prevent dynamic linking.
38782link_static_flag=$lt_lt_prog_compiler_static
38783
38784# Does compiler simultaneously support -c and -o options?
38785compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38786
38787# Whether or not to add -lc for building shared libraries.
38788build_libtool_need_lc=$archive_cmds_need_lc
38789
38790# Whether or not to disallow shared libs when runtime libs are static.
38791allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38792
38793# Compiler flag to allow reflexive dlopens.
38794export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38795
38796# Compiler flag to generate shared objects directly from archives.
38797whole_archive_flag_spec=$lt_whole_archive_flag_spec
38798
38799# Whether the compiler copes with passing no objects directly.
38800compiler_needs_object=$lt_compiler_needs_object
38801
38802# Create an old-style archive from a shared archive.
38803old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38804
38805# Create a temporary old-style archive to link instead of a shared archive.
38806old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38807
38808# Commands used to build a shared archive.
38809archive_cmds=$lt_archive_cmds
38810archive_expsym_cmds=$lt_archive_expsym_cmds
38811
38812# Commands used to build a loadable module if different from building
38813# a shared archive.
38814module_cmds=$lt_module_cmds
38815module_expsym_cmds=$lt_module_expsym_cmds
38816
38817# Whether we are building with GNU ld or not.
38818with_gnu_ld=$lt_with_gnu_ld
38819
38820# Flag that allows shared libraries with undefined symbols to be built.
38821allow_undefined_flag=$lt_allow_undefined_flag
38822
38823# Flag that enforces no undefined symbols.
38824no_undefined_flag=$lt_no_undefined_flag
38825
38826# Flag to hardcode \$libdir into a binary during linking.
38827# This must work even if \$libdir does not exist
38828hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38829
38830# If ld is used when linking, flag to hardcode \$libdir into a binary
38831# during linking.  This must work even if \$libdir does not exist.
38832hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
38833
38834# Whether we need a single "-rpath" flag with a separated argument.
38835hardcode_libdir_separator=$lt_hardcode_libdir_separator
38836
38837# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38838# DIR into the resulting binary.
38839hardcode_direct=$hardcode_direct
38840
38841# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38842# DIR into the resulting binary and the resulting library dependency is
38843# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38844# library is relocated.
38845hardcode_direct_absolute=$hardcode_direct_absolute
38846
38847# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38848# into the resulting binary.
38849hardcode_minus_L=$hardcode_minus_L
38850
38851# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38852# into the resulting binary.
38853hardcode_shlibpath_var=$hardcode_shlibpath_var
38854
38855# Set to "yes" if building a shared library automatically hardcodes DIR
38856# into the library and all subsequent libraries and executables linked
38857# against it.
38858hardcode_automatic=$hardcode_automatic
38859
38860# Set to yes if linker adds runtime paths of dependent libraries
38861# to runtime path list.
38862inherit_rpath=$inherit_rpath
38863
38864# Whether libtool must link a program against all its dependency libraries.
38865link_all_deplibs=$link_all_deplibs
38866
38867# Set to "yes" if exported symbols are required.
38868always_export_symbols=$always_export_symbols
38869
38870# The commands to list exported symbols.
38871export_symbols_cmds=$lt_export_symbols_cmds
38872
38873# Symbols that should not be listed in the preloaded symbols.
38874exclude_expsyms=$lt_exclude_expsyms
38875
38876# Symbols that must always be exported.
38877include_expsyms=$lt_include_expsyms
38878
38879# Commands necessary for linking programs (against libraries) with templates.
38880prelink_cmds=$lt_prelink_cmds
38881
38882# Commands necessary for finishing linking programs.
38883postlink_cmds=$lt_postlink_cmds
38884
38885# Specify filename containing input files.
38886file_list_spec=$lt_file_list_spec
38887
38888# How to hardcode a shared library path into an executable.
38889hardcode_action=$hardcode_action
38890
38891# The directories searched by this compiler when creating a shared library.
38892compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38893
38894# Dependencies to place before and after the objects being linked to
38895# create a shared library.
38896predep_objects=$lt_predep_objects
38897postdep_objects=$lt_postdep_objects
38898predeps=$lt_predeps
38899postdeps=$lt_postdeps
38900
38901# The library search path used internally by the compiler when linking
38902# a shared library.
38903compiler_lib_search_path=$lt_compiler_lib_search_path
38904
38905# ### END LIBTOOL CONFIG
38906
38907_LT_EOF
38908
38909  case $host_os in
38910  aix3*)
38911    cat <<\_LT_EOF >> "$cfgfile"
38912# AIX sometimes has problems with the GCC collect2 program.  For some
38913# reason, if we set the COLLECT_NAMES environment variable, the problems
38914# vanish in a puff of smoke.
38915if test "X${COLLECT_NAMES+set}" != Xset; then
38916  COLLECT_NAMES=
38917  export COLLECT_NAMES
38918fi
38919_LT_EOF
38920    ;;
38921  esac
38922
38923
38924ltmain="$ac_aux_dir/ltmain.sh"
38925
38926
38927  # We use sed instead of cat because bash on DJGPP gets confused if
38928  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
38929  # text mode, it properly converts lines to CR/LF.  This bash problem
38930  # is reportedly fixed, but why not run on old versions too?
38931  sed '$q' "$ltmain" >> "$cfgfile" \
38932     || (rm -f "$cfgfile"; exit 1)
38933
38934  if test x"$xsi_shell" = xyes; then
38935  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38936func_dirname ()\
38937{\
38938\    case ${1} in\
38939\      */*) func_dirname_result="${1%/*}${2}" ;;\
38940\      *  ) func_dirname_result="${3}" ;;\
38941\    esac\
38942} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38943  && mv -f "$cfgfile.tmp" "$cfgfile" \
38944    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38945test 0 -eq $? || _lt_function_replace_fail=:
38946
38947
38948  sed -e '/^func_basename ()$/,/^} # func_basename /c\
38949func_basename ()\
38950{\
38951\    func_basename_result="${1##*/}"\
38952} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38953  && mv -f "$cfgfile.tmp" "$cfgfile" \
38954    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38955test 0 -eq $? || _lt_function_replace_fail=:
38956
38957
38958  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38959func_dirname_and_basename ()\
38960{\
38961\    case ${1} in\
38962\      */*) func_dirname_result="${1%/*}${2}" ;;\
38963\      *  ) func_dirname_result="${3}" ;;\
38964\    esac\
38965\    func_basename_result="${1##*/}"\
38966} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38967  && mv -f "$cfgfile.tmp" "$cfgfile" \
38968    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38969test 0 -eq $? || _lt_function_replace_fail=:
38970
38971
38972  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38973func_stripname ()\
38974{\
38975\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38976\    # positional parameters, so assign one to ordinary parameter first.\
38977\    func_stripname_result=${3}\
38978\    func_stripname_result=${func_stripname_result#"${1}"}\
38979\    func_stripname_result=${func_stripname_result%"${2}"}\
38980} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38981  && mv -f "$cfgfile.tmp" "$cfgfile" \
38982    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38983test 0 -eq $? || _lt_function_replace_fail=:
38984
38985
38986  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38987func_split_long_opt ()\
38988{\
38989\    func_split_long_opt_name=${1%%=*}\
38990\    func_split_long_opt_arg=${1#*=}\
38991} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38992  && mv -f "$cfgfile.tmp" "$cfgfile" \
38993    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38994test 0 -eq $? || _lt_function_replace_fail=:
38995
38996
38997  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38998func_split_short_opt ()\
38999{\
39000\    func_split_short_opt_arg=${1#??}\
39001\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
39002} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
39003  && mv -f "$cfgfile.tmp" "$cfgfile" \
39004    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39005test 0 -eq $? || _lt_function_replace_fail=:
39006
39007
39008  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
39009func_lo2o ()\
39010{\
39011\    case ${1} in\
39012\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
39013\      *)    func_lo2o_result=${1} ;;\
39014\    esac\
39015} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
39016  && mv -f "$cfgfile.tmp" "$cfgfile" \
39017    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39018test 0 -eq $? || _lt_function_replace_fail=:
39019
39020
39021  sed -e '/^func_xform ()$/,/^} # func_xform /c\
39022func_xform ()\
39023{\
39024    func_xform_result=${1%.*}.lo\
39025} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
39026  && mv -f "$cfgfile.tmp" "$cfgfile" \
39027    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39028test 0 -eq $? || _lt_function_replace_fail=:
39029
39030
39031  sed -e '/^func_arith ()$/,/^} # func_arith /c\
39032func_arith ()\
39033{\
39034    func_arith_result=$(( $* ))\
39035} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
39036  && mv -f "$cfgfile.tmp" "$cfgfile" \
39037    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39038test 0 -eq $? || _lt_function_replace_fail=:
39039
39040
39041  sed -e '/^func_len ()$/,/^} # func_len /c\
39042func_len ()\
39043{\
39044    func_len_result=${#1}\
39045} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
39046  && mv -f "$cfgfile.tmp" "$cfgfile" \
39047    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39048test 0 -eq $? || _lt_function_replace_fail=:
39049
39050fi
39051
39052if test x"$lt_shell_append" = xyes; then
39053  sed -e '/^func_append ()$/,/^} # func_append /c\
39054func_append ()\
39055{\
39056    eval "${1}+=\\${2}"\
39057} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
39058  && mv -f "$cfgfile.tmp" "$cfgfile" \
39059    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39060test 0 -eq $? || _lt_function_replace_fail=:
39061
39062
39063  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
39064func_append_quoted ()\
39065{\
39066\    func_quote_for_eval "${2}"\
39067\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
39068} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
39069  && mv -f "$cfgfile.tmp" "$cfgfile" \
39070    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39071test 0 -eq $? || _lt_function_replace_fail=:
39072
39073
39074  # Save a `func_append' function call where possible by direct use of '+='
39075  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
39076    && mv -f "$cfgfile.tmp" "$cfgfile" \
39077      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39078  test 0 -eq $? || _lt_function_replace_fail=:
39079else
39080  # Save a `func_append' function call even when '+=' is not available
39081  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
39082    && mv -f "$cfgfile.tmp" "$cfgfile" \
39083      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39084  test 0 -eq $? || _lt_function_replace_fail=:
39085fi
39086
39087if test x"$_lt_function_replace_fail" = x":"; then
39088  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
39089$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
39090fi
39091
39092
39093   mv -f "$cfgfile" "$ofile" ||
39094    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39095  chmod +x "$ofile"
39096
39097
39098    cat <<_LT_EOF >> "$ofile"
39099
39100# ### BEGIN LIBTOOL TAG CONFIG: CXX
39101
39102# The linker used to build libraries.
39103LD=$lt_LD_CXX
39104
39105# How to create reloadable object files.
39106reload_flag=$lt_reload_flag_CXX
39107reload_cmds=$lt_reload_cmds_CXX
39108
39109# Commands used to build an old-style archive.
39110old_archive_cmds=$lt_old_archive_cmds_CXX
39111
39112# A language specific compiler.
39113CC=$lt_compiler_CXX
39114
39115# Is the compiler the GNU compiler?
39116with_gcc=$GCC_CXX
39117
39118# Compiler flag to turn off builtin functions.
39119no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
39120
39121# Additional compiler flags for building library objects.
39122pic_flag=$lt_lt_prog_compiler_pic_CXX
39123
39124# How to pass a linker flag through the compiler.
39125wl=$lt_lt_prog_compiler_wl_CXX
39126
39127# Compiler flag to prevent dynamic linking.
39128link_static_flag=$lt_lt_prog_compiler_static_CXX
39129
39130# Does compiler simultaneously support -c and -o options?
39131compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
39132
39133# Whether or not to add -lc for building shared libraries.
39134build_libtool_need_lc=$archive_cmds_need_lc_CXX
39135
39136# Whether or not to disallow shared libs when runtime libs are static.
39137allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
39138
39139# Compiler flag to allow reflexive dlopens.
39140export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
39141
39142# Compiler flag to generate shared objects directly from archives.
39143whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
39144
39145# Whether the compiler copes with passing no objects directly.
39146compiler_needs_object=$lt_compiler_needs_object_CXX
39147
39148# Create an old-style archive from a shared archive.
39149old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
39150
39151# Create a temporary old-style archive to link instead of a shared archive.
39152old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
39153
39154# Commands used to build a shared archive.
39155archive_cmds=$lt_archive_cmds_CXX
39156archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
39157
39158# Commands used to build a loadable module if different from building
39159# a shared archive.
39160module_cmds=$lt_module_cmds_CXX
39161module_expsym_cmds=$lt_module_expsym_cmds_CXX
39162
39163# Whether we are building with GNU ld or not.
39164with_gnu_ld=$lt_with_gnu_ld_CXX
39165
39166# Flag that allows shared libraries with undefined symbols to be built.
39167allow_undefined_flag=$lt_allow_undefined_flag_CXX
39168
39169# Flag that enforces no undefined symbols.
39170no_undefined_flag=$lt_no_undefined_flag_CXX
39171
39172# Flag to hardcode \$libdir into a binary during linking.
39173# This must work even if \$libdir does not exist
39174hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39175
39176# If ld is used when linking, flag to hardcode \$libdir into a binary
39177# during linking.  This must work even if \$libdir does not exist.
39178hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
39179
39180# Whether we need a single "-rpath" flag with a separated argument.
39181hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39182
39183# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39184# DIR into the resulting binary.
39185hardcode_direct=$hardcode_direct_CXX
39186
39187# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39188# DIR into the resulting binary and the resulting library dependency is
39189# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39190# library is relocated.
39191hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39192
39193# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39194# into the resulting binary.
39195hardcode_minus_L=$hardcode_minus_L_CXX
39196
39197# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39198# into the resulting binary.
39199hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39200
39201# Set to "yes" if building a shared library automatically hardcodes DIR
39202# into the library and all subsequent libraries and executables linked
39203# against it.
39204hardcode_automatic=$hardcode_automatic_CXX
39205
39206# Set to yes if linker adds runtime paths of dependent libraries
39207# to runtime path list.
39208inherit_rpath=$inherit_rpath_CXX
39209
39210# Whether libtool must link a program against all its dependency libraries.
39211link_all_deplibs=$link_all_deplibs_CXX
39212
39213# Set to "yes" if exported symbols are required.
39214always_export_symbols=$always_export_symbols_CXX
39215
39216# The commands to list exported symbols.
39217export_symbols_cmds=$lt_export_symbols_cmds_CXX
39218
39219# Symbols that should not be listed in the preloaded symbols.
39220exclude_expsyms=$lt_exclude_expsyms_CXX
39221
39222# Symbols that must always be exported.
39223include_expsyms=$lt_include_expsyms_CXX
39224
39225# Commands necessary for linking programs (against libraries) with templates.
39226prelink_cmds=$lt_prelink_cmds_CXX
39227
39228# Commands necessary for finishing linking programs.
39229postlink_cmds=$lt_postlink_cmds_CXX
39230
39231# Specify filename containing input files.
39232file_list_spec=$lt_file_list_spec_CXX
39233
39234# How to hardcode a shared library path into an executable.
39235hardcode_action=$hardcode_action_CXX
39236
39237# The directories searched by this compiler when creating a shared library.
39238compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39239
39240# Dependencies to place before and after the objects being linked to
39241# create a shared library.
39242predep_objects=$lt_predep_objects_CXX
39243postdep_objects=$lt_postdep_objects_CXX
39244predeps=$lt_predeps_CXX
39245postdeps=$lt_postdeps_CXX
39246
39247# The library search path used internally by the compiler when linking
39248# a shared library.
39249compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39250
39251# ### END LIBTOOL TAG CONFIG: CXX
39252_LT_EOF
39253
39254 ;;
39255    "ntpd/complete.conf":F) sed -e '/^rlimit$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
39256    "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;;
39257    "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
39258    "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
39259    "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
39260    "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
39261    "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
39262    "scripts/ntpver":F) chmod +x scripts/ntpver ;;
39263    "scripts/plot_summary":F) chmod +x scripts/plot_summary ;;
39264    "scripts/summary":F) chmod +x scripts/summary ;;
39265
39266  esac
39267done # for ac_tag
39268
39269
39270as_fn_exit 0
39271_ACEOF
39272ac_clean_files=$ac_clean_files_save
39273
39274test $ac_write_fail = 0 ||
39275  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
39276
39277
39278# configure is writing to config.log, and then calls config.status.
39279# config.status does its own redirection, appending to config.log.
39280# Unfortunately, on DOS this fails, as config.log is still kept open
39281# by configure, so config.status won't be able to write to it; its
39282# output is simply discarded.  So we exec the FD to /dev/null,
39283# effectively closing config.log, so it can be properly (re)opened and
39284# appended to by config.status.  When coming back to configure, we
39285# need to make the FD available again.
39286if test "$no_create" != yes; then
39287  ac_cs_success=:
39288  ac_config_status_args=
39289  test "$silent" = yes &&
39290    ac_config_status_args="$ac_config_status_args --quiet"
39291  exec 5>/dev/null
39292  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39293  exec 5>>config.log
39294  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39295  # would make configure fail if this is the last instruction.
39296  $ac_cs_success || as_fn_exit 1
39297fi
39298
39299#
39300# CONFIG_SUBDIRS section.
39301#
39302if test "$no_recursion" != yes; then
39303
39304  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
39305  # so they do not pile up.
39306  ac_sub_configure_args=
39307  ac_prev=
39308  eval "set x $ac_configure_args"
39309  shift
39310  for ac_arg
39311  do
39312    if test -n "$ac_prev"; then
39313      ac_prev=
39314      continue
39315    fi
39316    case $ac_arg in
39317    -cache-file | --cache-file | --cache-fil | --cache-fi \
39318    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
39319      ac_prev=cache_file ;;
39320    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
39321    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
39322    | --c=*)
39323      ;;
39324    --config-cache | -C)
39325      ;;
39326    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
39327      ac_prev=srcdir ;;
39328    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
39329      ;;
39330    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
39331      ac_prev=prefix ;;
39332    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
39333      ;;
39334    --disable-option-checking)
39335      ;;
39336    *)
39337      case $ac_arg in
39338      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
39339      esac
39340      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
39341    esac
39342  done
39343
39344  # Always prepend --prefix to ensure using the same prefix
39345  # in subdir configurations.
39346  ac_arg="--prefix=$prefix"
39347  case $ac_arg in
39348  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
39349  esac
39350  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
39351
39352  # Pass --silent
39353  if test "$silent" = yes; then
39354    ac_sub_configure_args="--silent $ac_sub_configure_args"
39355  fi
39356
39357  # Always prepend --disable-option-checking to silence warnings, since
39358  # different subdirs can have different --enable and --with options.
39359  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
39360
39361  ac_popdir=`pwd`
39362  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
39363
39364    # Do not complain, so a configure script can configure whichever
39365    # parts of a large source tree are present.
39366    test -d "$srcdir/$ac_dir" || continue
39367
39368    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
39369    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
39370    $as_echo "$ac_msg" >&6
39371    as_dir="$ac_dir"; as_fn_mkdir_p
39372    ac_builddir=.
39373
39374case "$ac_dir" in
39375.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39376*)
39377  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
39378  # A ".." for each directory in $ac_dir_suffix.
39379  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
39380  case $ac_top_builddir_sub in
39381  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39382  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39383  esac ;;
39384esac
39385ac_abs_top_builddir=$ac_pwd
39386ac_abs_builddir=$ac_pwd$ac_dir_suffix
39387# for backward compatibility:
39388ac_top_builddir=$ac_top_build_prefix
39389
39390case $srcdir in
39391  .)  # We are building in place.
39392    ac_srcdir=.
39393    ac_top_srcdir=$ac_top_builddir_sub
39394    ac_abs_top_srcdir=$ac_pwd ;;
39395  [\\/]* | ?:[\\/]* )  # Absolute name.
39396    ac_srcdir=$srcdir$ac_dir_suffix;
39397    ac_top_srcdir=$srcdir
39398    ac_abs_top_srcdir=$srcdir ;;
39399  *) # Relative name.
39400    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39401    ac_top_srcdir=$ac_top_build_prefix$srcdir
39402    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39403esac
39404ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39405
39406
39407    cd "$ac_dir"
39408
39409    # Check for guested configure; otherwise get Cygnus style configure.
39410    if test -f "$ac_srcdir/configure.gnu"; then
39411      ac_sub_configure=$ac_srcdir/configure.gnu
39412    elif test -f "$ac_srcdir/configure"; then
39413      ac_sub_configure=$ac_srcdir/configure
39414    elif test -f "$ac_srcdir/configure.in"; then
39415      # This should be Cygnus configure.
39416      ac_sub_configure=$ac_aux_dir/configure
39417    else
39418      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
39419$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
39420      ac_sub_configure=
39421    fi
39422
39423    # The recursion is here.
39424    if test -n "$ac_sub_configure"; then
39425      # Make the cache file name correct relative to the subdirectory.
39426      case $cache_file in
39427      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
39428      *) # Relative name.
39429	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
39430      esac
39431
39432      { $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
39433$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
39434      # The eval makes quoting arguments work.
39435      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
39436	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
39437	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
39438    fi
39439
39440    cd "$ac_popdir"
39441  done
39442fi
39443if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
39444  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
39445$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39446fi
39447
39448