xref: /freebsd/contrib/ntp/configure (revision 3fc36ee018bb836bd1796067cf4ef8683f166ebc)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ntp 4.2.8p8.
4#
5# Report bugs to <http://bugs.ntp.org./>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://bugs.ntp.org./ about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='ntp'
592PACKAGE_TARNAME='ntp'
593PACKAGE_VERSION='4.2.8p8'
594PACKAGE_STRING='ntp 4.2.8p8'
595PACKAGE_BUGREPORT='http://bugs.ntp.org./'
596PACKAGE_URL='http://www.ntp.org./'
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_header_list=
635enable_option_checking=no
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639subdirs
640PERLLIBDIR
641NTP_KEYSDIR
642BUILD_TEST_NTP_SIGND_FALSE
643BUILD_TEST_NTP_SIGND_TRUE
644BUILD_TEST_NTP_SCANNER_FALSE
645BUILD_TEST_NTP_SCANNER_TRUE
646BUILD_TEST_NTP_RESTRICT_FALSE
647BUILD_TEST_NTP_RESTRICT_TRUE
648GTEST_AVAILABLE_FALSE
649GTEST_AVAILABLE_TRUE
650GTEST_CPPFLAGS
651GTEST_CXXFLAGS
652GTEST_LIBS
653GTEST_LDFLAGS
654GTEST_CONFIG
655UNITYBUILD_AVAILABLE_FALSE
656UNITYBUILD_AVAILABLE_TRUE
657PATH_RUBY
658HAVE_LEAPSMEARINTERVAL
659SAVECONFIG_ENABLED_FALSE
660SAVECONFIG_ENABLED_TRUE
661LSCF
662MAKE_NTPSNMPD
663SNMP_CFLAGS
664SNMP_CPPFLAGS
665SNMP_LIBS
666BUILD_SNTP_FALSE
667BUILD_SNTP_TRUE
668SNTP
669MAKE_NTPDSIM
670MAKE_LIBNTPSIM
671MAKE_TIMETRIM
672MAKE_TICKADJ
673MAKE_NTPTIME
674MAKE_ADJTIMED
675CHUTEST
676PROPDELAY
677MAKE_PARSEKMODULE
678DCFD
679TESTDCF
680MAKE_CHECK_LAYOUT
681VER_SUFFIX
682MAKE_CHECK_Y2K
683MAKE_LIBPARSE_KERNEL
684MAKE_LIBPARSE
685LIBPARSE
686HAVE_RLIMIT_STACK
687HAVE_RLIMIT_MEMLOCK
688LDADD_NLIST
689PATH_NET_SNMP_CONFIG
690CONFIG_SHELL
691PATH_TEST
692PATH_PERL
693LIBOBJS
694PTHREADS_FALSE
695PTHREADS_TRUE
696LIBISC_PTHREADS_NOTHREADS
697PTHREAD_LIBS
698LTHREAD_LIBS
699BUILD_THREAD
700HAVE_INLINE
701LDADD_LIBUTIL
702ALLOCA
703LIBM
704EDITLINE_LIBS
705LDADD_LIBNTP
706NTP_CROSSCOMPILE_FALSE
707NTP_CROSSCOMPILE_TRUE
708BUILD_LIBEVENT_FALSE
709BUILD_LIBEVENT_TRUE
710LDADD_LIBEVENT
711CPPFLAGS_LIBEVENT
712CFLAGS_LIBEVENT
713PKG_CONFIG
714LIBOPTS_DIR
715LIBOPTS_CFLAGS
716LIBOPTS_LDADD
717NEED_LIBOPTS_FALSE
718NEED_LIBOPTS_TRUE
719INSTALL_LIBOPTS_FALSE
720INSTALL_LIBOPTS_TRUE
721POSIX_SHELL
722GL_GENERATE_STDNORETURN_H_FALSE
723GL_GENERATE_STDNORETURN_H_TRUE
724STDNORETURN_H
725LIBTOOL_DEPS
726CXXCPP
727OTOOL64
728OTOOL
729LIPO
730NMEDIT
731DSYMUTIL
732MANIFEST_TOOL
733RANLIB
734DLLTOOL
735OBJDUMP
736LN_S
737NM
738ac_ct_DUMPBIN
739DUMPBIN
740LD
741FGREP
742SED
743LIBTOOL
744ac_ct_AR
745AR
746INSTALL_UPDATE_LEAP_FALSE
747INSTALL_UPDATE_LEAP_TRUE
748UPDATE_LEAP_NI
749UPDATE_LEAP_MS
750UPDATE_LEAP_DS
751UPDATE_LEAP_DL
752UPDATE_LEAP_DB
753TIMETRIM_NI
754TIMETRIM_MS
755TIMETRIM_DS
756TIMETRIM_DL
757TIMETRIM_DB
758TICKADJ_NI
759TICKADJ_MS
760TICKADJ_DS
761TICKADJ_DL
762TICKADJ_DB
763SNTP_NI
764SNTP_MS
765SNTP_DS
766SNTP_DL
767SNTP_DB
768NTP_WAIT_NI
769NTP_WAIT_MS
770NTP_WAIT_DS
771NTP_WAIT_DL
772NTP_WAIT_DB
773NTP_KEYGEN_NI
774NTP_KEYGEN_MS
775NTP_KEYGEN_DS
776NTP_KEYGEN_DL
777NTP_KEYGEN_DB
778NTPTRACE_NI
779NTPTRACE_MS
780NTPTRACE_DS
781NTPTRACE_DL
782NTPTRACE_DB
783NTPTIME_NI
784NTPTIME_MS
785NTPTIME_DS
786NTPTIME_DL
787NTPTIME_DB
788INSTALL_NTPSWEEP_FALSE
789INSTALL_NTPSWEEP_TRUE
790NTPSWEEP_NI
791NTPSWEEP_MS
792NTPSWEEP_DS
793NTPSWEEP_DL
794NTPSWEEP_DB
795NTPSNMPD_NI
796NTPSNMPD_MS
797NTPSNMPD_DS
798NTPSNMPD_DL
799NTPSNMPD_DB
800NTPQ_NI
801NTPQ_MS
802NTPQ_DS
803NTPQ_DL
804NTPQ_DB
805NTPD_NI
806NTPD_MS
807NTPD_DS
808NTPD_DL
809NTPD_DB
810NTPDSIM_NI
811NTPDSIM_MS
812NTPDSIM_DS
813NTPDSIM_DL
814NTPDSIM_DB
815NTPDC_NI
816NTPDC_MS
817NTPDC_DS
818NTPDC_DL
819NTPDC_DB
820NTPDATE_NI
821NTPDATE_MS
822NTPDATE_DS
823NTPDATE_DL
824NTPDATE_DB
825MANTAGFMT
826CALC_TICKADJ_NI
827CALC_TICKADJ_MS
828CALC_TICKADJ_DS
829CALC_TICKADJ_DL
830CALC_TICKADJ_DB
831WANT_CALC_TICKADJ_MS_FALSE
832WANT_CALC_TICKADJ_MS_TRUE
833VPATH_HACK_FALSE
834VPATH_HACK_TRUE
835YFLAGS
836YACC
837am__fastdepCXX_FALSE
838am__fastdepCXX_TRUE
839CXXDEPMODE
840ac_ct_CXX
841CXXFLAGS
842CXX
843LDFLAGS_NTP
844LDADD_NTP
845CPPFLAGS_NTP
846CFLAGS_NTP
847EGREP
848GREP
849CPP
850am__fastdepCC_FALSE
851am__fastdepCC_TRUE
852CCDEPMODE
853am__nodep
854AMDEPBACKSLASH
855AMDEP_FALSE
856AMDEP_TRUE
857am__quote
858am__include
859DEPDIR
860OBJEXT
861EXEEXT
862ac_ct_CC
863CPPFLAGS
864LDFLAGS
865CFLAGS
866CC
867host_os
868host_vendor
869host_cpu
870host
871build_os
872build_vendor
873build_cpu
874build
875AM_BACKSLASH
876AM_DEFAULT_VERBOSITY
877AM_DEFAULT_V
878AM_V
879am__untar
880am__tar
881AMTAR
882am__leading_dot
883SET_MAKE
884AWK
885mkdir_p
886MKDIR_P
887INSTALL_STRIP_PROGRAM
888STRIP
889install_sh
890MAKEINFO
891AUTOHEADER
892AUTOMAKE
893AUTOCONF
894ACLOCAL
895VERSION
896PACKAGE
897CYGPATH_W
898am__isrc
899INSTALL_DATA
900INSTALL_SCRIPT
901INSTALL_PROGRAM
902target_alias
903host_alias
904build_alias
905LIBS
906ECHO_T
907ECHO_N
908ECHO_C
909DEFS
910mandir
911localedir
912libdir
913psdir
914pdfdir
915dvidir
916htmldir
917infodir
918docdir
919oldincludedir
920includedir
921localstatedir
922sharedstatedir
923sysconfdir
924datadir
925datarootdir
926libexecdir
927sbindir
928bindir
929program_transform_name
930prefix
931exec_prefix
932PACKAGE_URL
933PACKAGE_BUGREPORT
934PACKAGE_STRING
935PACKAGE_VERSION
936PACKAGE_TARNAME
937PACKAGE_NAME
938PATH_SEPARATOR
939SHELL'
940ac_subst_files='calc_tickadj_opts
941ntp_wait_opts
942ntpsweep_opts
943ntptrace_opts
944summary_opts
945plot_summary_opts'
946ac_user_opts='
947enable_option_checking
948enable_silent_rules
949enable_dependency_tracking
950with_locfile
951enable_shared
952enable_static
953with_pic
954enable_fast_install
955with_gnu_ld
956with_sysroot
957enable_libtool_lock
958enable_nls
959enable_local_libopts
960enable_libopts_install
961with_autoopts_config
962enable_local_libevent
963with_lineeditlibs
964enable_debugging
965enable_thread_support
966with_threads
967with_yielding_select
968enable_c99_snprintf
969enable_clockctl
970enable_linuxcaps
971enable_solarisprivs
972with_arlib
973with_net_snmp_config
974enable_libseccomp
975with_stack_limit
976with_memlock
977enable_debug_timing
978enable_dst_minutes
979enable_ignore_dns_errors
980enable_BANCOMM
981enable_GPSVME
982enable_all_clocks
983enable_ACTS
984enable_ARBITER
985enable_ARCRON_MSF
986enable_AS2201
987enable_ATOM
988enable_CHRONOLOG
989enable_CHU
990enable_AUDIO_CHU
991enable_DATUM
992enable_DUMBCLOCK
993enable_FG
994enable_HEATH
995enable_HOPFSERIAL
996enable_HOPFPCI
997enable_HPGPS
998enable_IRIG
999enable_JJY
1000enable_JUPITER
1001enable_LEITCH
1002enable_LOCAL_CLOCK
1003enable_MX4200
1004enable_NEOCLOCK4X
1005enable_NMEA
1006enable_GPSD
1007enable_ONCORE
1008enable_PALISADE
1009enable_PCF
1010enable_PST
1011enable_RIPENCC
1012enable_SHM
1013enable_SPECTRACOM
1014enable_TPRO
1015enable_TRUETIME
1016enable_TT560
1017enable_ULINK
1018enable_TSYNCPCI
1019enable_WWV
1020enable_ZYFER
1021enable_parse_clocks
1022enable_COMPUTIME
1023enable_DCF7000
1024enable_HOPF6021
1025enable_MEINBERG
1026enable_RAWDCF
1027enable_RCC8000
1028enable_SCHMID
1029enable_TRIMTAIP
1030enable_TRIMTSIP
1031enable_WHARTON
1032enable_VARITEXT
1033enable_SEL240X
1034with_crypto
1035with_openssl_libdir
1036with_openssl_incdir
1037with_rpath
1038enable_openssl_random
1039enable_autokey
1040enable_kmem
1041enable_accurate_adjtime
1042enable_tick
1043enable_tickadj
1044enable_simulator
1045with_sntp
1046with_ntpsnmpd
1047enable_slew_always
1048enable_step_slew
1049enable_ntpdate_step
1050enable_hourly_todr_sync
1051enable_kernel_fll_bug
1052enable_bug1243_fix
1053enable_bug3020_fix
1054enable_irig_sawtooth
1055enable_nist
1056enable_ntp_signd
1057enable_ipv6
1058with_kame
1059enable_getifaddrs
1060enable_saveconfig
1061enable_leap_smear
1062enable_dynamic_interleave
1063with_gtest
1064enable_problem_tests
1065'
1066      ac_precious_vars='build_alias
1067host_alias
1068target_alias
1069CC
1070CFLAGS
1071LDFLAGS
1072LIBS
1073CPPFLAGS
1074CPP
1075CXX
1076CXXFLAGS
1077CCC
1078YACC
1079YFLAGS
1080CXXCPP'
1081ac_subdirs_all='sntp'
1082
1083# Initialize some variables set by options.
1084ac_init_help=
1085ac_init_version=false
1086ac_unrecognized_opts=
1087ac_unrecognized_sep=
1088# The variables have the same names as the options, with
1089# dashes changed to underlines.
1090cache_file=/dev/null
1091exec_prefix=NONE
1092no_create=
1093no_recursion=
1094prefix=NONE
1095program_prefix=NONE
1096program_suffix=NONE
1097program_transform_name=s,x,x,
1098silent=
1099site=
1100srcdir=
1101verbose=
1102x_includes=NONE
1103x_libraries=NONE
1104
1105# Installation directory options.
1106# These are left unexpanded so users can "make install exec_prefix=/foo"
1107# and all the variables that are supposed to be based on exec_prefix
1108# by default will actually change.
1109# Use braces instead of parens because sh, perl, etc. also accept them.
1110# (The list follows the same order as the GNU Coding Standards.)
1111bindir='${exec_prefix}/bin'
1112sbindir='${exec_prefix}/sbin'
1113libexecdir='${exec_prefix}/libexec'
1114datarootdir='${prefix}/share'
1115datadir='${datarootdir}'
1116sysconfdir='${prefix}/etc'
1117sharedstatedir='${prefix}/com'
1118localstatedir='${prefix}/var'
1119includedir='${prefix}/include'
1120oldincludedir='/usr/include'
1121docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1122infodir='${datarootdir}/info'
1123htmldir='${docdir}'
1124dvidir='${docdir}'
1125pdfdir='${docdir}'
1126psdir='${docdir}'
1127libdir='${exec_prefix}/lib'
1128localedir='${datarootdir}/locale'
1129mandir='${datarootdir}/man'
1130
1131ac_prev=
1132ac_dashdash=
1133for ac_option
1134do
1135  # If the previous option needs an argument, assign it.
1136  if test -n "$ac_prev"; then
1137    eval $ac_prev=\$ac_option
1138    ac_prev=
1139    continue
1140  fi
1141
1142  case $ac_option in
1143  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1144  *=)   ac_optarg= ;;
1145  *)    ac_optarg=yes ;;
1146  esac
1147
1148  # Accept the important Cygnus configure options, so we can diagnose typos.
1149
1150  case $ac_dashdash$ac_option in
1151  --)
1152    ac_dashdash=yes ;;
1153
1154  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1155    ac_prev=bindir ;;
1156  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1157    bindir=$ac_optarg ;;
1158
1159  -build | --build | --buil | --bui | --bu)
1160    ac_prev=build_alias ;;
1161  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1162    build_alias=$ac_optarg ;;
1163
1164  -cache-file | --cache-file | --cache-fil | --cache-fi \
1165  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1166    ac_prev=cache_file ;;
1167  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1168  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1169    cache_file=$ac_optarg ;;
1170
1171  --config-cache | -C)
1172    cache_file=config.cache ;;
1173
1174  -datadir | --datadir | --datadi | --datad)
1175    ac_prev=datadir ;;
1176  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1177    datadir=$ac_optarg ;;
1178
1179  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1180  | --dataroo | --dataro | --datar)
1181    ac_prev=datarootdir ;;
1182  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1183  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1184    datarootdir=$ac_optarg ;;
1185
1186  -disable-* | --disable-*)
1187    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1188    # Reject names that are not valid shell variable names.
1189    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190      as_fn_error $? "invalid feature name: $ac_useropt"
1191    ac_useropt_orig=$ac_useropt
1192    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193    case $ac_user_opts in
1194      *"
1195"enable_$ac_useropt"
1196"*) ;;
1197      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1198	 ac_unrecognized_sep=', ';;
1199    esac
1200    eval enable_$ac_useropt=no ;;
1201
1202  -docdir | --docdir | --docdi | --doc | --do)
1203    ac_prev=docdir ;;
1204  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1205    docdir=$ac_optarg ;;
1206
1207  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1208    ac_prev=dvidir ;;
1209  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1210    dvidir=$ac_optarg ;;
1211
1212  -enable-* | --enable-*)
1213    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1214    # Reject names that are not valid shell variable names.
1215    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216      as_fn_error $? "invalid feature name: $ac_useropt"
1217    ac_useropt_orig=$ac_useropt
1218    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219    case $ac_user_opts in
1220      *"
1221"enable_$ac_useropt"
1222"*) ;;
1223      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1224	 ac_unrecognized_sep=', ';;
1225    esac
1226    eval enable_$ac_useropt=\$ac_optarg ;;
1227
1228  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1229  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1230  | --exec | --exe | --ex)
1231    ac_prev=exec_prefix ;;
1232  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1233  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1234  | --exec=* | --exe=* | --ex=*)
1235    exec_prefix=$ac_optarg ;;
1236
1237  -gas | --gas | --ga | --g)
1238    # Obsolete; use --with-gas.
1239    with_gas=yes ;;
1240
1241  -help | --help | --hel | --he | -h)
1242    ac_init_help=long ;;
1243  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1244    ac_init_help=recursive ;;
1245  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1246    ac_init_help=short ;;
1247
1248  -host | --host | --hos | --ho)
1249    ac_prev=host_alias ;;
1250  -host=* | --host=* | --hos=* | --ho=*)
1251    host_alias=$ac_optarg ;;
1252
1253  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1254    ac_prev=htmldir ;;
1255  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1256  | --ht=*)
1257    htmldir=$ac_optarg ;;
1258
1259  -includedir | --includedir | --includedi | --included | --include \
1260  | --includ | --inclu | --incl | --inc)
1261    ac_prev=includedir ;;
1262  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1263  | --includ=* | --inclu=* | --incl=* | --inc=*)
1264    includedir=$ac_optarg ;;
1265
1266  -infodir | --infodir | --infodi | --infod | --info | --inf)
1267    ac_prev=infodir ;;
1268  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1269    infodir=$ac_optarg ;;
1270
1271  -libdir | --libdir | --libdi | --libd)
1272    ac_prev=libdir ;;
1273  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1274    libdir=$ac_optarg ;;
1275
1276  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1277  | --libexe | --libex | --libe)
1278    ac_prev=libexecdir ;;
1279  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1280  | --libexe=* | --libex=* | --libe=*)
1281    libexecdir=$ac_optarg ;;
1282
1283  -localedir | --localedir | --localedi | --localed | --locale)
1284    ac_prev=localedir ;;
1285  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1286    localedir=$ac_optarg ;;
1287
1288  -localstatedir | --localstatedir | --localstatedi | --localstated \
1289  | --localstate | --localstat | --localsta | --localst | --locals)
1290    ac_prev=localstatedir ;;
1291  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1292  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1293    localstatedir=$ac_optarg ;;
1294
1295  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1296    ac_prev=mandir ;;
1297  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1298    mandir=$ac_optarg ;;
1299
1300  -nfp | --nfp | --nf)
1301    # Obsolete; use --without-fp.
1302    with_fp=no ;;
1303
1304  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1305  | --no-cr | --no-c | -n)
1306    no_create=yes ;;
1307
1308  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1309  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1310    no_recursion=yes ;;
1311
1312  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1313  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1314  | --oldin | --oldi | --old | --ol | --o)
1315    ac_prev=oldincludedir ;;
1316  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1317  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1318  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1319    oldincludedir=$ac_optarg ;;
1320
1321  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1322    ac_prev=prefix ;;
1323  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1324    prefix=$ac_optarg ;;
1325
1326  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1327  | --program-pre | --program-pr | --program-p)
1328    ac_prev=program_prefix ;;
1329  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1330  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1331    program_prefix=$ac_optarg ;;
1332
1333  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1334  | --program-suf | --program-su | --program-s)
1335    ac_prev=program_suffix ;;
1336  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1337  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1338    program_suffix=$ac_optarg ;;
1339
1340  -program-transform-name | --program-transform-name \
1341  | --program-transform-nam | --program-transform-na \
1342  | --program-transform-n | --program-transform- \
1343  | --program-transform | --program-transfor \
1344  | --program-transfo | --program-transf \
1345  | --program-trans | --program-tran \
1346  | --progr-tra | --program-tr | --program-t)
1347    ac_prev=program_transform_name ;;
1348  -program-transform-name=* | --program-transform-name=* \
1349  | --program-transform-nam=* | --program-transform-na=* \
1350  | --program-transform-n=* | --program-transform-=* \
1351  | --program-transform=* | --program-transfor=* \
1352  | --program-transfo=* | --program-transf=* \
1353  | --program-trans=* | --program-tran=* \
1354  | --progr-tra=* | --program-tr=* | --program-t=*)
1355    program_transform_name=$ac_optarg ;;
1356
1357  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1358    ac_prev=pdfdir ;;
1359  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1360    pdfdir=$ac_optarg ;;
1361
1362  -psdir | --psdir | --psdi | --psd | --ps)
1363    ac_prev=psdir ;;
1364  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1365    psdir=$ac_optarg ;;
1366
1367  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1368  | -silent | --silent | --silen | --sile | --sil)
1369    silent=yes ;;
1370
1371  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1372    ac_prev=sbindir ;;
1373  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1374  | --sbi=* | --sb=*)
1375    sbindir=$ac_optarg ;;
1376
1377  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1378  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1379  | --sharedst | --shareds | --shared | --share | --shar \
1380  | --sha | --sh)
1381    ac_prev=sharedstatedir ;;
1382  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1383  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1384  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1385  | --sha=* | --sh=*)
1386    sharedstatedir=$ac_optarg ;;
1387
1388  -site | --site | --sit)
1389    ac_prev=site ;;
1390  -site=* | --site=* | --sit=*)
1391    site=$ac_optarg ;;
1392
1393  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1394    ac_prev=srcdir ;;
1395  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1396    srcdir=$ac_optarg ;;
1397
1398  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1399  | --syscon | --sysco | --sysc | --sys | --sy)
1400    ac_prev=sysconfdir ;;
1401  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1402  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1403    sysconfdir=$ac_optarg ;;
1404
1405  -target | --target | --targe | --targ | --tar | --ta | --t)
1406    ac_prev=target_alias ;;
1407  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1408    target_alias=$ac_optarg ;;
1409
1410  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1411    verbose=yes ;;
1412
1413  -version | --version | --versio | --versi | --vers | -V)
1414    ac_init_version=: ;;
1415
1416  -with-* | --with-*)
1417    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1418    # Reject names that are not valid shell variable names.
1419    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1420      as_fn_error $? "invalid package name: $ac_useropt"
1421    ac_useropt_orig=$ac_useropt
1422    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1423    case $ac_user_opts in
1424      *"
1425"with_$ac_useropt"
1426"*) ;;
1427      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1428	 ac_unrecognized_sep=', ';;
1429    esac
1430    eval with_$ac_useropt=\$ac_optarg ;;
1431
1432  -without-* | --without-*)
1433    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1434    # Reject names that are not valid shell variable names.
1435    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1436      as_fn_error $? "invalid package name: $ac_useropt"
1437    ac_useropt_orig=$ac_useropt
1438    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1439    case $ac_user_opts in
1440      *"
1441"with_$ac_useropt"
1442"*) ;;
1443      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1444	 ac_unrecognized_sep=', ';;
1445    esac
1446    eval with_$ac_useropt=no ;;
1447
1448  --x)
1449    # Obsolete; use --with-x.
1450    with_x=yes ;;
1451
1452  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1453  | --x-incl | --x-inc | --x-in | --x-i)
1454    ac_prev=x_includes ;;
1455  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1456  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1457    x_includes=$ac_optarg ;;
1458
1459  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1460  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1461    ac_prev=x_libraries ;;
1462  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1463  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1464    x_libraries=$ac_optarg ;;
1465
1466  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1467Try \`$0 --help' for more information"
1468    ;;
1469
1470  *=*)
1471    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1472    # Reject names that are not valid shell variable names.
1473    case $ac_envvar in #(
1474      '' | [0-9]* | *[!_$as_cr_alnum]* )
1475      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1476    esac
1477    eval $ac_envvar=\$ac_optarg
1478    export $ac_envvar ;;
1479
1480  *)
1481    # FIXME: should be removed in autoconf 3.0.
1482    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1483    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1484      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1485    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1486    ;;
1487
1488  esac
1489done
1490
1491if test -n "$ac_prev"; then
1492  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1493  as_fn_error $? "missing argument to $ac_option"
1494fi
1495
1496if test -n "$ac_unrecognized_opts"; then
1497  case $enable_option_checking in
1498    no) ;;
1499    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1500    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1501  esac
1502fi
1503
1504# Check all directory arguments for consistency.
1505for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1506		datadir sysconfdir sharedstatedir localstatedir includedir \
1507		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1508		libdir localedir mandir
1509do
1510  eval ac_val=\$$ac_var
1511  # Remove trailing slashes.
1512  case $ac_val in
1513    */ )
1514      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1515      eval $ac_var=\$ac_val;;
1516  esac
1517  # Be sure to have absolute directory names.
1518  case $ac_val in
1519    [\\/$]* | ?:[\\/]* )  continue;;
1520    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1521  esac
1522  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1523done
1524
1525# There might be people who depend on the old broken behavior: `$host'
1526# used to hold the argument of --host etc.
1527# FIXME: To remove some day.
1528build=$build_alias
1529host=$host_alias
1530target=$target_alias
1531
1532# FIXME: To remove some day.
1533if test "x$host_alias" != x; then
1534  if test "x$build_alias" = x; then
1535    cross_compiling=maybe
1536  elif test "x$build_alias" != "x$host_alias"; then
1537    cross_compiling=yes
1538  fi
1539fi
1540
1541ac_tool_prefix=
1542test -n "$host_alias" && ac_tool_prefix=$host_alias-
1543
1544test "$silent" = yes && exec 6>/dev/null
1545
1546
1547ac_pwd=`pwd` && test -n "$ac_pwd" &&
1548ac_ls_di=`ls -di .` &&
1549ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1550  as_fn_error $? "working directory cannot be determined"
1551test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1552  as_fn_error $? "pwd does not report name of working directory"
1553
1554
1555# Find the source files, if location was not specified.
1556if test -z "$srcdir"; then
1557  ac_srcdir_defaulted=yes
1558  # Try the directory containing this script, then the parent directory.
1559  ac_confdir=`$as_dirname -- "$as_myself" ||
1560$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1561	 X"$as_myself" : 'X\(//\)[^/]' \| \
1562	 X"$as_myself" : 'X\(//\)$' \| \
1563	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1564$as_echo X"$as_myself" |
1565    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1566	    s//\1/
1567	    q
1568	  }
1569	  /^X\(\/\/\)[^/].*/{
1570	    s//\1/
1571	    q
1572	  }
1573	  /^X\(\/\/\)$/{
1574	    s//\1/
1575	    q
1576	  }
1577	  /^X\(\/\).*/{
1578	    s//\1/
1579	    q
1580	  }
1581	  s/.*/./; q'`
1582  srcdir=$ac_confdir
1583  if test ! -r "$srcdir/$ac_unique_file"; then
1584    srcdir=..
1585  fi
1586else
1587  ac_srcdir_defaulted=no
1588fi
1589if test ! -r "$srcdir/$ac_unique_file"; then
1590  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1591  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1592fi
1593ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1594ac_abs_confdir=`(
1595	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1596	pwd)`
1597# When building in place, set srcdir=.
1598if test "$ac_abs_confdir" = "$ac_pwd"; then
1599  srcdir=.
1600fi
1601# Remove unnecessary trailing slashes from srcdir.
1602# Double slashes in file names in object file debugging info
1603# mess up M-x gdb in Emacs.
1604case $srcdir in
1605*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1606esac
1607for ac_var in $ac_precious_vars; do
1608  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1609  eval ac_env_${ac_var}_value=\$${ac_var}
1610  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1611  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1612done
1613
1614#
1615# Report the --help message.
1616#
1617if test "$ac_init_help" = "long"; then
1618  # Omit some internal or obsolete options to make the list less imposing.
1619  # This message is too long to be a string in the A/UX 3.1 sh.
1620  cat <<_ACEOF
1621\`configure' configures ntp 4.2.8p8 to adapt to many kinds of systems.
1622
1623Usage: $0 [OPTION]... [VAR=VALUE]...
1624
1625To assign environment variables (e.g., CC, CFLAGS...), specify them as
1626VAR=VALUE.  See below for descriptions of some of the useful variables.
1627
1628Defaults for the options are specified in brackets.
1629
1630Configuration:
1631  -h, --help              display this help and exit
1632      --help=short        display options specific to this package
1633      --help=recursive    display the short help of all the included packages
1634  -V, --version           display version information and exit
1635  -q, --quiet, --silent   do not print \`checking ...' messages
1636      --cache-file=FILE   cache test results in FILE [disabled]
1637  -C, --config-cache      alias for \`--cache-file=config.cache'
1638  -n, --no-create         do not create output files
1639      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1640
1641Installation directories:
1642  --prefix=PREFIX         install architecture-independent files in PREFIX
1643                          [$ac_default_prefix]
1644  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1645                          [PREFIX]
1646
1647By default, \`make install' will install all the files in
1648\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1649an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1650for instance \`--prefix=\$HOME'.
1651
1652For better control, use the options below.
1653
1654Fine tuning of the installation directories:
1655  --bindir=DIR            user executables [EPREFIX/bin]
1656  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1657  --libexecdir=DIR        program executables [EPREFIX/libexec]
1658  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1659  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1660  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1661  --libdir=DIR            object code libraries [EPREFIX/lib]
1662  --includedir=DIR        C header files [PREFIX/include]
1663  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1664  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1665  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1666  --infodir=DIR           info documentation [DATAROOTDIR/info]
1667  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1668  --mandir=DIR            man documentation [DATAROOTDIR/man]
1669  --docdir=DIR            documentation root [DATAROOTDIR/doc/ntp]
1670  --htmldir=DIR           html documentation [DOCDIR]
1671  --dvidir=DIR            dvi documentation [DOCDIR]
1672  --pdfdir=DIR            pdf documentation [DOCDIR]
1673  --psdir=DIR             ps documentation [DOCDIR]
1674_ACEOF
1675
1676  cat <<\_ACEOF
1677
1678Program names:
1679  --program-prefix=PREFIX            prepend PREFIX to installed program names
1680  --program-suffix=SUFFIX            append SUFFIX to installed program names
1681  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1682
1683System types:
1684  --build=BUILD     configure for building on BUILD [guessed]
1685  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1686_ACEOF
1687fi
1688
1689if test -n "$ac_init_help"; then
1690  case $ac_init_help in
1691     short | recursive ) echo "Configuration of ntp 4.2.8p8:";;
1692   esac
1693  cat <<\_ACEOF
1694
1695Optional Features and Packages:
1696  --disable-option-checking  ignore unrecognized --enable/--with options
1697  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1698  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1699  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1700  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1701  --enable-silent-rules   less verbose build output (undo: "make V=1")
1702  --disable-silent-rules  verbose build output (undo: "make V=0")
1703  --enable-dependency-tracking
1704                          do not reject slow dependency extractors
1705  --disable-dependency-tracking
1706                          speeds up one-time build
1707  --with-locfile=XXX      os-specific or "legacy"
1708  --enable-shared[=PKGS]  build shared libraries [default=no]
1709  --enable-static[=PKGS]  build static libraries [default=yes]
1710  --with-pic              try to use only PIC/non-PIC objects [default=use
1711                          both]
1712  --enable-fast-install[=PKGS]
1713                          optimize for fast installation [default=yes]
1714  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1715  --with-sysroot=DIR Search for dependent libraries within DIR
1716                        (or the compiler's sysroot if not specified).
1717  --disable-libtool-lock  avoid locking (might break parallel builds)
1718  --disable-nls           disable nls support in libopts
1719  --enable-local-libopts  Use the supplied libopts tearoff code
1720  --enable-libopts-install
1721                          Install libopts with client installation
1722  --with-autoopts-config  specify the config-info script
1723  --enable-local-libevent Force using the supplied libevent tearoff code
1724  --with-lineeditlibs     edit,editline (readline may be specified if desired)
1725  defaults:               + yes, - no, s system-specific
1726  --enable-debugging      + include ntpd debugging code
1727  --enable-thread-support s use threads (+ if available)
1728  --with-threads	  with threads [auto]
1729  --with-yielding-select  with yielding select [auto]
1730  --enable-c99-snprintf   s force replacement
1731  --enable-clockctl       s Use /dev/clockctl for non-root clock control
1732  --enable-linuxcaps      + Use Linux capabilities for non-root clock control
1733  --enable-solarisprivs   + Use Solaris privileges for non-root clock control
1734  --with-arlib            - deprecated, arlib not distributed
1735  --with-net-snmp-config  + =net-snmp-config
1736  --enable-libseccomp     EXPERIMENTAL: enable support for libseccomp
1737                          sandboxing (default is no)
1738  --with-stack-limit      ? =50 (200 for openbsd) 4k pages
1739  --with-memlock          ? =32 (-1 on linux) megabytes
1740  --enable-debug-timing   - include processing time debugging code (costs
1741                          performance)
1742  --enable-dst-minutes    =60 minutes per DST adjustment
1743  --enable-ignore-dns-errors
1744                          - retry DNS queries on any error
1745  --enable-BANCOMM        - Datum/Bancomm bc635/VME interface
1746  --enable-GPSVME         - TrueTime GPS receiver/VME interface
1747  --enable-all-clocks     + include all suitable non-PARSE clocks:
1748  --enable-ACTS           s ACTS modem service
1749  --enable-ARBITER        + Arbiter 1088A/B GPS receiver
1750  --enable-ARCRON-MSF     + Arcron MSF receiver
1751  --enable-AS2201         + Austron 2200A/2201A GPS receiver
1752  --enable-ATOM           s ATOM PPS interface
1753  --enable-CHRONOLOG      + Chrono-log K-series WWVB receiver
1754  --enable-CHU            + CHU modem/decoder
1755  --enable-AUDIO-CHU      s CHU audio/decoder
1756  --enable-DATUM          s Datum Programmable Time System
1757  --enable-DUMBCLOCK      + Dumb generic hh:mm:ss local clock
1758  --enable-FG             + Forum Graphic GPS
1759  --enable-HEATH          s Heath GC-1000 WWV/WWVH receiver
1760  --enable-HOPFSERIAL     + hopf serial clock device
1761  --enable-HOPFPCI        + hopf 6039 PCI board
1762  --enable-HPGPS          + HP 58503A GPS receiver
1763  --enable-IRIG           s IRIG audio decoder
1764  --enable-JJY            + JJY receiver
1765  --enable-JUPITER        s Rockwell Jupiter GPS receiver
1766  --enable-LEITCH         + Leitch CSD 5300 Master Clock System Driver
1767  --enable-LOCAL-CLOCK    + local clock reference
1768  --enable-MX4200         s Magnavox MX4200 GPS receiver
1769  --enable-NEOCLOCK4X     + NeoClock4X DCF77 / TDF receiver
1770  --enable-NMEA           + NMEA GPS receiver
1771  --enable-GPSD           + GPSD JSON receiver
1772  --enable-ONCORE         s Motorola VP/UT Oncore GPS receiver
1773  --enable-PALISADE       s Palisade clock
1774  --enable-PCF            + Conrad parallel port radio clock
1775  --enable-PST            + PST/Traconex 1020 WWV/WWVH receiver
1776  --enable-RIPENCC        - RIPENCC specific Trimble driver
1777  --enable-SHM            s SHM clock attached thru shared memory
1778  --enable-SPECTRACOM     + Spectracom 8170/Netclock/2 WWVB receiver
1779  --enable-TPRO           s KSI/Odetics TPRO/S GPS receiver/IRIG interface
1780  --enable-TRUETIME       s Kinemetrics/TrueTime receivers
1781  --enable-TT560          - TrueTime 560 IRIG-B decoder
1782  --enable-ULINK          + Ultralink WWVB receiver
1783  --enable-TSYNCPCI       s Spectracom TSYNC timing board
1784  --enable-WWV            s WWV Audio receiver
1785  --enable-ZYFER          + Zyfer GPStarplus receiver
1786  --enable-parse-clocks   - include all suitable PARSE clocks:
1787  --enable-COMPUTIME      s Diem Computime Radio Clock
1788  --enable-DCF7000        s ELV/DCF7000 clock
1789  --enable-HOPF6021       s HOPF 6021 clock
1790  --enable-MEINBERG       s Meinberg clocks
1791  --enable-RAWDCF         s DCF77 raw time code
1792  --enable-RCC8000        s RCC 8000 clock
1793  --enable-SCHMID         s Schmid DCF77 clock
1794  --enable-TRIMTAIP       s Trimble GPS receiver/TAIP protocol
1795  --enable-TRIMTSIP       s Trimble GPS receiver/TSIP protocol
1796  --enable-WHARTON        s WHARTON 400A Series clock
1797  --enable-VARITEXT       s VARITEXT clock
1798  --enable-SEL240X        s SEL240X clock
1799  --with-crypto           + =openssl,libcrypto
1800
1801  --with-openssl-libdir   + =/something/reasonable
1802
1803  --with-openssl-incdir   + =/something/reasonable
1804
1805  --without-rpath         s Disable auto-added -R linker paths
1806
1807  --enable-openssl-random Use OpenSSL's crypto random number functions, if
1808                          available (default is yes)
1809  --enable-autokey        + support NTP Autokey protocol
1810  --enable-kmem           s read /dev/kmem for tick and/or tickadj
1811  --enable-accurate-adjtime
1812                          s the adjtime() call is accurate
1813  --enable-tick=VALUE     s force a value for 'tick'
1814  --enable-tickadj=VALUE  s force a value for 'tickadj'
1815  --enable-simulator      - build/install the NTPD simulator?
1816  --without-sntp          - disable building sntp and sntp/tests
1817  --with-ntpsnmpd         s Build ntpsnmpd MIB agent?
1818  --enable-slew-always    s always slew the time
1819  --enable-step-slew      s step and slew the time
1820  --enable-ntpdate-step   s if ntpdate should step the time
1821  --enable-hourly-todr-sync
1822                          s if we should sync TODR hourly
1823  --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
1824  --enable-bug1243-fix    + use unmodified autokey session keys
1825  --enable-bug3020-fix    + Provide the explicit 127.0.0.0/8 martian filter
1826  --enable-irig-sawtooth  s if we should enable the IRIG sawtooth filter
1827  --enable-nist           - if we should enable the NIST lockclock scheme
1828  --enable-ntp-signd      - Provide support for Samba's signing daemon,
1829                          =/var/run/ntp_signd
1830  --enable-ipv6           s use IPv6?
1831
1832  --with-kame             - =/usr/local/v6
1833  --enable-getifaddrs     + Enable the use of getifaddrs() [[yes|no]].
1834  --enable-saveconfig     + saveconfig mechanism
1835  --enable-leap-smear     - experimental leap smear code
1836  --enable-dynamic-interleave
1837                          - dynamic interleave support
1838  --with-gtest            Use the gtest framework (Default: if it's available)
1839  --enable-problem-tests  + enable tests with undiagnosed problems
1840
1841Some influential environment variables:
1842  CC          C compiler command
1843  CFLAGS      C compiler flags
1844  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1845              nonstandard directory <lib dir>
1846  LIBS        libraries to pass to the linker, e.g. -l<library>
1847  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1848              you have headers in a nonstandard directory <include dir>
1849  CPP         C preprocessor
1850  CXX         C++ compiler command
1851  CXXFLAGS    C++ compiler flags
1852  YACC        The `Yet Another Compiler Compiler' implementation to use.
1853              Defaults to the first program found out of: `bison -y', `byacc',
1854              `yacc'.
1855  YFLAGS      The list of arguments that will be passed by default to $YACC.
1856              This script will default YFLAGS to the empty string to avoid a
1857              default value of `-d' given by some make applications.
1858  CXXCPP      C++ preprocessor
1859
1860Use these variables to override the choices made by `configure' or to help
1861it to find libraries and programs with nonstandard names/locations.
1862
1863Report bugs to <http://bugs.ntp.org./>.
1864ntp home page: <http://www.ntp.org./>.
1865_ACEOF
1866ac_status=$?
1867fi
1868
1869if test "$ac_init_help" = "recursive"; then
1870  # If there are subdirs, report their specific --help.
1871  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1872    test -d "$ac_dir" ||
1873      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1874      continue
1875    ac_builddir=.
1876
1877case "$ac_dir" in
1878.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1879*)
1880  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1881  # A ".." for each directory in $ac_dir_suffix.
1882  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1883  case $ac_top_builddir_sub in
1884  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1885  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1886  esac ;;
1887esac
1888ac_abs_top_builddir=$ac_pwd
1889ac_abs_builddir=$ac_pwd$ac_dir_suffix
1890# for backward compatibility:
1891ac_top_builddir=$ac_top_build_prefix
1892
1893case $srcdir in
1894  .)  # We are building in place.
1895    ac_srcdir=.
1896    ac_top_srcdir=$ac_top_builddir_sub
1897    ac_abs_top_srcdir=$ac_pwd ;;
1898  [\\/]* | ?:[\\/]* )  # Absolute name.
1899    ac_srcdir=$srcdir$ac_dir_suffix;
1900    ac_top_srcdir=$srcdir
1901    ac_abs_top_srcdir=$srcdir ;;
1902  *) # Relative name.
1903    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1904    ac_top_srcdir=$ac_top_build_prefix$srcdir
1905    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1906esac
1907ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1908
1909    cd "$ac_dir" || { ac_status=$?; continue; }
1910    # Check for guested configure.
1911    if test -f "$ac_srcdir/configure.gnu"; then
1912      echo &&
1913      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1914    elif test -f "$ac_srcdir/configure"; then
1915      echo &&
1916      $SHELL "$ac_srcdir/configure" --help=recursive
1917    else
1918      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1919    fi || ac_status=$?
1920    cd "$ac_pwd" || { ac_status=$?; break; }
1921  done
1922fi
1923
1924test -n "$ac_init_help" && exit $ac_status
1925if $ac_init_version; then
1926  cat <<\_ACEOF
1927ntp configure 4.2.8p8
1928generated by GNU Autoconf 2.69
1929
1930Copyright (C) 2012 Free Software Foundation, Inc.
1931This configure script is free software; the Free Software Foundation
1932gives unlimited permission to copy, distribute and modify it.
1933_ACEOF
1934  exit
1935fi
1936
1937## ------------------------ ##
1938## Autoconf initialization. ##
1939## ------------------------ ##
1940
1941# ac_fn_c_try_compile LINENO
1942# --------------------------
1943# Try to compile conftest.$ac_ext, and return whether this succeeded.
1944ac_fn_c_try_compile ()
1945{
1946  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947  rm -f conftest.$ac_objext
1948  if { { ac_try="$ac_compile"
1949case "(($ac_try" in
1950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951  *) ac_try_echo=$ac_try;;
1952esac
1953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954$as_echo "$ac_try_echo"; } >&5
1955  (eval "$ac_compile") 2>conftest.err
1956  ac_status=$?
1957  if test -s conftest.err; then
1958    grep -v '^ *+' conftest.err >conftest.er1
1959    cat conftest.er1 >&5
1960    mv -f conftest.er1 conftest.err
1961  fi
1962  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963  test $ac_status = 0; } && {
1964	 test -z "$ac_c_werror_flag" ||
1965	 test ! -s conftest.err
1966       } && test -s conftest.$ac_objext; then :
1967  ac_retval=0
1968else
1969  $as_echo "$as_me: failed program was:" >&5
1970sed 's/^/| /' conftest.$ac_ext >&5
1971
1972	ac_retval=1
1973fi
1974  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975  as_fn_set_status $ac_retval
1976
1977} # ac_fn_c_try_compile
1978
1979# ac_fn_c_try_cpp LINENO
1980# ----------------------
1981# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1982ac_fn_c_try_cpp ()
1983{
1984  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985  if { { ac_try="$ac_cpp conftest.$ac_ext"
1986case "(($ac_try" in
1987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988  *) ac_try_echo=$ac_try;;
1989esac
1990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991$as_echo "$ac_try_echo"; } >&5
1992  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1993  ac_status=$?
1994  if test -s conftest.err; then
1995    grep -v '^ *+' conftest.err >conftest.er1
1996    cat conftest.er1 >&5
1997    mv -f conftest.er1 conftest.err
1998  fi
1999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000  test $ac_status = 0; } > conftest.i && {
2001	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2002	 test ! -s conftest.err
2003       }; then :
2004  ac_retval=0
2005else
2006  $as_echo "$as_me: failed program was:" >&5
2007sed 's/^/| /' conftest.$ac_ext >&5
2008
2009    ac_retval=1
2010fi
2011  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012  as_fn_set_status $ac_retval
2013
2014} # ac_fn_c_try_cpp
2015
2016# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2017# -------------------------------------------------------
2018# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2019# the include files in INCLUDES and setting the cache variable VAR
2020# accordingly.
2021ac_fn_c_check_header_mongrel ()
2022{
2023  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024  if eval \${$3+:} false; then :
2025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026$as_echo_n "checking for $2... " >&6; }
2027if eval \${$3+:} false; then :
2028  $as_echo_n "(cached) " >&6
2029fi
2030eval ac_res=\$$3
2031	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032$as_echo "$ac_res" >&6; }
2033else
2034  # Is the header compilable?
2035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2036$as_echo_n "checking $2 usability... " >&6; }
2037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038/* end confdefs.h.  */
2039$4
2040#include <$2>
2041_ACEOF
2042if ac_fn_c_try_compile "$LINENO"; then :
2043  ac_header_compiler=yes
2044else
2045  ac_header_compiler=no
2046fi
2047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2049$as_echo "$ac_header_compiler" >&6; }
2050
2051# Is the header present?
2052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2053$as_echo_n "checking $2 presence... " >&6; }
2054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055/* end confdefs.h.  */
2056#include <$2>
2057_ACEOF
2058if ac_fn_c_try_cpp "$LINENO"; then :
2059  ac_header_preproc=yes
2060else
2061  ac_header_preproc=no
2062fi
2063rm -f conftest.err conftest.i conftest.$ac_ext
2064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2065$as_echo "$ac_header_preproc" >&6; }
2066
2067# So?  What about this header?
2068case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2069  yes:no: )
2070    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2071$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2072    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2073$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2074    ;;
2075  no:yes:* )
2076    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2077$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2078    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2079$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2080    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2081$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2082    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2083$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2084    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2085$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2086( $as_echo "## ------------------------------------ ##
2087## Report this to http://bugs.ntp.org./ ##
2088## ------------------------------------ ##"
2089     ) | sed "s/^/$as_me: WARNING:     /" >&2
2090    ;;
2091esac
2092  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2093$as_echo_n "checking for $2... " >&6; }
2094if eval \${$3+:} false; then :
2095  $as_echo_n "(cached) " >&6
2096else
2097  eval "$3=\$ac_header_compiler"
2098fi
2099eval ac_res=\$$3
2100	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101$as_echo "$ac_res" >&6; }
2102fi
2103  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104
2105} # ac_fn_c_check_header_mongrel
2106
2107# ac_fn_c_try_run LINENO
2108# ----------------------
2109# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2110# that executables *can* be run.
2111ac_fn_c_try_run ()
2112{
2113  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114  if { { ac_try="$ac_link"
2115case "(($ac_try" in
2116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117  *) ac_try_echo=$ac_try;;
2118esac
2119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120$as_echo "$ac_try_echo"; } >&5
2121  (eval "$ac_link") 2>&5
2122  ac_status=$?
2123  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2125  { { case "(($ac_try" in
2126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127  *) ac_try_echo=$ac_try;;
2128esac
2129eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2130$as_echo "$ac_try_echo"; } >&5
2131  (eval "$ac_try") 2>&5
2132  ac_status=$?
2133  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134  test $ac_status = 0; }; }; then :
2135  ac_retval=0
2136else
2137  $as_echo "$as_me: program exited with status $ac_status" >&5
2138       $as_echo "$as_me: failed program was:" >&5
2139sed 's/^/| /' conftest.$ac_ext >&5
2140
2141       ac_retval=$ac_status
2142fi
2143  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2144  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145  as_fn_set_status $ac_retval
2146
2147} # ac_fn_c_try_run
2148
2149# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2150# -------------------------------------------------------
2151# Tests whether HEADER exists and can be compiled using the include files in
2152# INCLUDES, setting the cache variable VAR accordingly.
2153ac_fn_c_check_header_compile ()
2154{
2155  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2157$as_echo_n "checking for $2... " >&6; }
2158if eval \${$3+:} false; then :
2159  $as_echo_n "(cached) " >&6
2160else
2161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162/* end confdefs.h.  */
2163$4
2164#include <$2>
2165_ACEOF
2166if ac_fn_c_try_compile "$LINENO"; then :
2167  eval "$3=yes"
2168else
2169  eval "$3=no"
2170fi
2171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172fi
2173eval ac_res=\$$3
2174	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175$as_echo "$ac_res" >&6; }
2176  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177
2178} # ac_fn_c_check_header_compile
2179
2180# ac_fn_c_try_link LINENO
2181# -----------------------
2182# Try to link conftest.$ac_ext, and return whether this succeeded.
2183ac_fn_c_try_link ()
2184{
2185  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186  rm -f conftest.$ac_objext conftest$ac_exeext
2187  if { { ac_try="$ac_link"
2188case "(($ac_try" in
2189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190  *) ac_try_echo=$ac_try;;
2191esac
2192eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2193$as_echo "$ac_try_echo"; } >&5
2194  (eval "$ac_link") 2>conftest.err
2195  ac_status=$?
2196  if test -s conftest.err; then
2197    grep -v '^ *+' conftest.err >conftest.er1
2198    cat conftest.er1 >&5
2199    mv -f conftest.er1 conftest.err
2200  fi
2201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2202  test $ac_status = 0; } && {
2203	 test -z "$ac_c_werror_flag" ||
2204	 test ! -s conftest.err
2205       } && test -s conftest$ac_exeext && {
2206	 test "$cross_compiling" = yes ||
2207	 test -x conftest$ac_exeext
2208       }; then :
2209  ac_retval=0
2210else
2211  $as_echo "$as_me: failed program was:" >&5
2212sed 's/^/| /' conftest.$ac_ext >&5
2213
2214	ac_retval=1
2215fi
2216  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2217  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2218  # interfere with the next link command; also delete a directory that is
2219  # left behind by Apple's compiler.  We do this before executing the actions.
2220  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2221  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2222  as_fn_set_status $ac_retval
2223
2224} # ac_fn_c_try_link
2225
2226# ac_fn_cxx_try_compile LINENO
2227# ----------------------------
2228# Try to compile conftest.$ac_ext, and return whether this succeeded.
2229ac_fn_cxx_try_compile ()
2230{
2231  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232  rm -f conftest.$ac_objext
2233  if { { ac_try="$ac_compile"
2234case "(($ac_try" in
2235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236  *) ac_try_echo=$ac_try;;
2237esac
2238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2239$as_echo "$ac_try_echo"; } >&5
2240  (eval "$ac_compile") 2>conftest.err
2241  ac_status=$?
2242  if test -s conftest.err; then
2243    grep -v '^ *+' conftest.err >conftest.er1
2244    cat conftest.er1 >&5
2245    mv -f conftest.er1 conftest.err
2246  fi
2247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2248  test $ac_status = 0; } && {
2249	 test -z "$ac_cxx_werror_flag" ||
2250	 test ! -s conftest.err
2251       } && test -s conftest.$ac_objext; then :
2252  ac_retval=0
2253else
2254  $as_echo "$as_me: failed program was:" >&5
2255sed 's/^/| /' conftest.$ac_ext >&5
2256
2257	ac_retval=1
2258fi
2259  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260  as_fn_set_status $ac_retval
2261
2262} # ac_fn_cxx_try_compile
2263
2264# ac_fn_c_check_func LINENO FUNC VAR
2265# ----------------------------------
2266# Tests whether FUNC exists, setting the cache variable VAR accordingly
2267ac_fn_c_check_func ()
2268{
2269  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2271$as_echo_n "checking for $2... " >&6; }
2272if eval \${$3+:} false; then :
2273  $as_echo_n "(cached) " >&6
2274else
2275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276/* end confdefs.h.  */
2277/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2278   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2279#define $2 innocuous_$2
2280
2281/* System header to define __stub macros and hopefully few prototypes,
2282    which can conflict with char $2 (); below.
2283    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2284    <limits.h> exists even on freestanding compilers.  */
2285
2286#ifdef __STDC__
2287# include <limits.h>
2288#else
2289# include <assert.h>
2290#endif
2291
2292#undef $2
2293
2294/* Override any GCC internal prototype to avoid an error.
2295   Use char because int might match the return type of a GCC
2296   builtin and then its argument prototype would still apply.  */
2297#ifdef __cplusplus
2298extern "C"
2299#endif
2300char $2 ();
2301/* The GNU C library defines this for functions which it implements
2302    to always fail with ENOSYS.  Some functions are actually named
2303    something starting with __ and the normal name is an alias.  */
2304#if defined __stub_$2 || defined __stub___$2
2305choke me
2306#endif
2307
2308int
2309main ()
2310{
2311return $2 ();
2312  ;
2313  return 0;
2314}
2315_ACEOF
2316if ac_fn_c_try_link "$LINENO"; then :
2317  eval "$3=yes"
2318else
2319  eval "$3=no"
2320fi
2321rm -f core conftest.err conftest.$ac_objext \
2322    conftest$ac_exeext conftest.$ac_ext
2323fi
2324eval ac_res=\$$3
2325	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2326$as_echo "$ac_res" >&6; }
2327  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2328
2329} # ac_fn_c_check_func
2330
2331# ac_fn_cxx_try_cpp LINENO
2332# ------------------------
2333# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2334ac_fn_cxx_try_cpp ()
2335{
2336  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337  if { { ac_try="$ac_cpp conftest.$ac_ext"
2338case "(($ac_try" in
2339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340  *) ac_try_echo=$ac_try;;
2341esac
2342eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2343$as_echo "$ac_try_echo"; } >&5
2344  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2345  ac_status=$?
2346  if test -s conftest.err; then
2347    grep -v '^ *+' conftest.err >conftest.er1
2348    cat conftest.er1 >&5
2349    mv -f conftest.er1 conftest.err
2350  fi
2351  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2352  test $ac_status = 0; } > conftest.i && {
2353	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2354	 test ! -s conftest.err
2355       }; then :
2356  ac_retval=0
2357else
2358  $as_echo "$as_me: failed program was:" >&5
2359sed 's/^/| /' conftest.$ac_ext >&5
2360
2361    ac_retval=1
2362fi
2363  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2364  as_fn_set_status $ac_retval
2365
2366} # ac_fn_cxx_try_cpp
2367
2368# ac_fn_cxx_try_link LINENO
2369# -------------------------
2370# Try to link conftest.$ac_ext, and return whether this succeeded.
2371ac_fn_cxx_try_link ()
2372{
2373  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2374  rm -f conftest.$ac_objext conftest$ac_exeext
2375  if { { ac_try="$ac_link"
2376case "(($ac_try" in
2377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378  *) ac_try_echo=$ac_try;;
2379esac
2380eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2381$as_echo "$ac_try_echo"; } >&5
2382  (eval "$ac_link") 2>conftest.err
2383  ac_status=$?
2384  if test -s conftest.err; then
2385    grep -v '^ *+' conftest.err >conftest.er1
2386    cat conftest.er1 >&5
2387    mv -f conftest.er1 conftest.err
2388  fi
2389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2390  test $ac_status = 0; } && {
2391	 test -z "$ac_cxx_werror_flag" ||
2392	 test ! -s conftest.err
2393       } && test -s conftest$ac_exeext && {
2394	 test "$cross_compiling" = yes ||
2395	 test -x conftest$ac_exeext
2396       }; then :
2397  ac_retval=0
2398else
2399  $as_echo "$as_me: failed program was:" >&5
2400sed 's/^/| /' conftest.$ac_ext >&5
2401
2402	ac_retval=1
2403fi
2404  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2405  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2406  # interfere with the next link command; also delete a directory that is
2407  # left behind by Apple's compiler.  We do this before executing the actions.
2408  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2409  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410  as_fn_set_status $ac_retval
2411
2412} # ac_fn_cxx_try_link
2413
2414# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2415# -------------------------------------------
2416# Tests whether TYPE exists after having included INCLUDES, setting cache
2417# variable VAR accordingly.
2418ac_fn_c_check_type ()
2419{
2420  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2422$as_echo_n "checking for $2... " >&6; }
2423if eval \${$3+:} false; then :
2424  $as_echo_n "(cached) " >&6
2425else
2426  eval "$3=no"
2427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428/* end confdefs.h.  */
2429$4
2430int
2431main ()
2432{
2433if (sizeof ($2))
2434	 return 0;
2435  ;
2436  return 0;
2437}
2438_ACEOF
2439if ac_fn_c_try_compile "$LINENO"; then :
2440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2441/* end confdefs.h.  */
2442$4
2443int
2444main ()
2445{
2446if (sizeof (($2)))
2447	    return 0;
2448  ;
2449  return 0;
2450}
2451_ACEOF
2452if ac_fn_c_try_compile "$LINENO"; then :
2453
2454else
2455  eval "$3=yes"
2456fi
2457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458fi
2459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2460fi
2461eval ac_res=\$$3
2462	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2463$as_echo "$ac_res" >&6; }
2464  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2465
2466} # ac_fn_c_check_type
2467
2468# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2469# --------------------------------------------
2470# Tries to find the compile-time value of EXPR in a program that includes
2471# INCLUDES, setting VAR accordingly. Returns whether the value could be
2472# computed
2473ac_fn_c_compute_int ()
2474{
2475  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2476  if test "$cross_compiling" = yes; then
2477    # Depending upon the size, compute the lo and hi bounds.
2478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479/* end confdefs.h.  */
2480$4
2481int
2482main ()
2483{
2484static int test_array [1 - 2 * !(($2) >= 0)];
2485test_array [0] = 0;
2486return test_array [0];
2487
2488  ;
2489  return 0;
2490}
2491_ACEOF
2492if ac_fn_c_try_compile "$LINENO"; then :
2493  ac_lo=0 ac_mid=0
2494  while :; do
2495    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2496/* end confdefs.h.  */
2497$4
2498int
2499main ()
2500{
2501static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2502test_array [0] = 0;
2503return test_array [0];
2504
2505  ;
2506  return 0;
2507}
2508_ACEOF
2509if ac_fn_c_try_compile "$LINENO"; then :
2510  ac_hi=$ac_mid; break
2511else
2512  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2513			if test $ac_lo -le $ac_mid; then
2514			  ac_lo= ac_hi=
2515			  break
2516			fi
2517			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2518fi
2519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2520  done
2521else
2522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2523/* end confdefs.h.  */
2524$4
2525int
2526main ()
2527{
2528static int test_array [1 - 2 * !(($2) < 0)];
2529test_array [0] = 0;
2530return test_array [0];
2531
2532  ;
2533  return 0;
2534}
2535_ACEOF
2536if ac_fn_c_try_compile "$LINENO"; then :
2537  ac_hi=-1 ac_mid=-1
2538  while :; do
2539    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2540/* end confdefs.h.  */
2541$4
2542int
2543main ()
2544{
2545static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2546test_array [0] = 0;
2547return test_array [0];
2548
2549  ;
2550  return 0;
2551}
2552_ACEOF
2553if ac_fn_c_try_compile "$LINENO"; then :
2554  ac_lo=$ac_mid; break
2555else
2556  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2557			if test $ac_mid -le $ac_hi; then
2558			  ac_lo= ac_hi=
2559			  break
2560			fi
2561			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2562fi
2563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2564  done
2565else
2566  ac_lo= ac_hi=
2567fi
2568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2569fi
2570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2571# Binary search between lo and hi bounds.
2572while test "x$ac_lo" != "x$ac_hi"; do
2573  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2575/* end confdefs.h.  */
2576$4
2577int
2578main ()
2579{
2580static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2581test_array [0] = 0;
2582return test_array [0];
2583
2584  ;
2585  return 0;
2586}
2587_ACEOF
2588if ac_fn_c_try_compile "$LINENO"; then :
2589  ac_hi=$ac_mid
2590else
2591  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2592fi
2593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594done
2595case $ac_lo in #((
2596?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2597'') ac_retval=1 ;;
2598esac
2599  else
2600    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2601/* end confdefs.h.  */
2602$4
2603static long int longval () { return $2; }
2604static unsigned long int ulongval () { return $2; }
2605#include <stdio.h>
2606#include <stdlib.h>
2607int
2608main ()
2609{
2610
2611  FILE *f = fopen ("conftest.val", "w");
2612  if (! f)
2613    return 1;
2614  if (($2) < 0)
2615    {
2616      long int i = longval ();
2617      if (i != ($2))
2618	return 1;
2619      fprintf (f, "%ld", i);
2620    }
2621  else
2622    {
2623      unsigned long int i = ulongval ();
2624      if (i != ($2))
2625	return 1;
2626      fprintf (f, "%lu", i);
2627    }
2628  /* Do not output a trailing newline, as this causes \r\n confusion
2629     on some platforms.  */
2630  return ferror (f) || fclose (f) != 0;
2631
2632  ;
2633  return 0;
2634}
2635_ACEOF
2636if ac_fn_c_try_run "$LINENO"; then :
2637  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2638else
2639  ac_retval=1
2640fi
2641rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2642  conftest.$ac_objext conftest.beam conftest.$ac_ext
2643rm -f conftest.val
2644
2645  fi
2646  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2647  as_fn_set_status $ac_retval
2648
2649} # ac_fn_c_compute_int
2650
2651# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2652# ---------------------------------------------
2653# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2654# accordingly.
2655ac_fn_c_check_decl ()
2656{
2657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2658  as_decl_name=`echo $2|sed 's/ *(.*//'`
2659  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2661$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2662if eval \${$3+:} false; then :
2663  $as_echo_n "(cached) " >&6
2664else
2665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666/* end confdefs.h.  */
2667$4
2668int
2669main ()
2670{
2671#ifndef $as_decl_name
2672#ifdef __cplusplus
2673  (void) $as_decl_use;
2674#else
2675  (void) $as_decl_name;
2676#endif
2677#endif
2678
2679  ;
2680  return 0;
2681}
2682_ACEOF
2683if ac_fn_c_try_compile "$LINENO"; then :
2684  eval "$3=yes"
2685else
2686  eval "$3=no"
2687fi
2688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2689fi
2690eval ac_res=\$$3
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_decl
2696
2697# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2698# ----------------------------------------------------
2699# Tries to find if the field MEMBER exists in type AGGR, after including
2700# INCLUDES, setting cache variable VAR accordingly.
2701ac_fn_c_check_member ()
2702{
2703  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2704  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2705$as_echo_n "checking for $2.$3... " >&6; }
2706if eval \${$4+:} false; then :
2707  $as_echo_n "(cached) " >&6
2708else
2709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2710/* end confdefs.h.  */
2711$5
2712int
2713main ()
2714{
2715static $2 ac_aggr;
2716if (ac_aggr.$3)
2717return 0;
2718  ;
2719  return 0;
2720}
2721_ACEOF
2722if ac_fn_c_try_compile "$LINENO"; then :
2723  eval "$4=yes"
2724else
2725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2726/* end confdefs.h.  */
2727$5
2728int
2729main ()
2730{
2731static $2 ac_aggr;
2732if (sizeof ac_aggr.$3)
2733return 0;
2734  ;
2735  return 0;
2736}
2737_ACEOF
2738if ac_fn_c_try_compile "$LINENO"; then :
2739  eval "$4=yes"
2740else
2741  eval "$4=no"
2742fi
2743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2744fi
2745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2746fi
2747eval ac_res=\$$4
2748	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2749$as_echo "$ac_res" >&6; }
2750  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2751
2752} # ac_fn_c_check_member
2753cat >config.log <<_ACEOF
2754This file contains any messages produced by compilers while
2755running configure, to aid debugging if configure makes a mistake.
2756
2757It was created by ntp $as_me 4.2.8p8, which was
2758generated by GNU Autoconf 2.69.  Invocation command line was
2759
2760  $ $0 $@
2761
2762_ACEOF
2763exec 5>>config.log
2764{
2765cat <<_ASUNAME
2766## --------- ##
2767## Platform. ##
2768## --------- ##
2769
2770hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2771uname -m = `(uname -m) 2>/dev/null || echo unknown`
2772uname -r = `(uname -r) 2>/dev/null || echo unknown`
2773uname -s = `(uname -s) 2>/dev/null || echo unknown`
2774uname -v = `(uname -v) 2>/dev/null || echo unknown`
2775
2776/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2777/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2778
2779/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2780/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2781/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2782/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2783/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2784/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2785/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2786
2787_ASUNAME
2788
2789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790for as_dir in $PATH
2791do
2792  IFS=$as_save_IFS
2793  test -z "$as_dir" && as_dir=.
2794    $as_echo "PATH: $as_dir"
2795  done
2796IFS=$as_save_IFS
2797
2798} >&5
2799
2800cat >&5 <<_ACEOF
2801
2802
2803## ----------- ##
2804## Core tests. ##
2805## ----------- ##
2806
2807_ACEOF
2808
2809
2810# Keep a trace of the command line.
2811# Strip out --no-create and --no-recursion so they do not pile up.
2812# Strip out --silent because we don't want to record it for future runs.
2813# Also quote any args containing shell meta-characters.
2814# Make two passes to allow for proper duplicate-argument suppression.
2815ac_configure_args=
2816ac_configure_args0=
2817ac_configure_args1=
2818ac_must_keep_next=false
2819for ac_pass in 1 2
2820do
2821  for ac_arg
2822  do
2823    case $ac_arg in
2824    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2825    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2826    | -silent | --silent | --silen | --sile | --sil)
2827      continue ;;
2828    *\'*)
2829      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2830    esac
2831    case $ac_pass in
2832    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2833    2)
2834      as_fn_append ac_configure_args1 " '$ac_arg'"
2835      if test $ac_must_keep_next = true; then
2836	ac_must_keep_next=false # Got value, back to normal.
2837      else
2838	case $ac_arg in
2839	  *=* | --config-cache | -C | -disable-* | --disable-* \
2840	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2841	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2842	  | -with-* | --with-* | -without-* | --without-* | --x)
2843	    case "$ac_configure_args0 " in
2844	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2845	    esac
2846	    ;;
2847	  -* ) ac_must_keep_next=true ;;
2848	esac
2849      fi
2850      as_fn_append ac_configure_args " '$ac_arg'"
2851      ;;
2852    esac
2853  done
2854done
2855{ ac_configure_args0=; unset ac_configure_args0;}
2856{ ac_configure_args1=; unset ac_configure_args1;}
2857
2858# When interrupted or exit'd, cleanup temporary files, and complete
2859# config.log.  We remove comments because anyway the quotes in there
2860# would cause problems or look ugly.
2861# WARNING: Use '\'' to represent an apostrophe within the trap.
2862# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2863trap 'exit_status=$?
2864  # Save into config.log some information that might help in debugging.
2865  {
2866    echo
2867
2868    $as_echo "## ---------------- ##
2869## Cache variables. ##
2870## ---------------- ##"
2871    echo
2872    # The following way of writing the cache mishandles newlines in values,
2873(
2874  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2875    eval ac_val=\$$ac_var
2876    case $ac_val in #(
2877    *${as_nl}*)
2878      case $ac_var in #(
2879      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2880$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2881      esac
2882      case $ac_var in #(
2883      _ | IFS | as_nl) ;; #(
2884      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2885      *) { eval $ac_var=; unset $ac_var;} ;;
2886      esac ;;
2887    esac
2888  done
2889  (set) 2>&1 |
2890    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2891    *${as_nl}ac_space=\ *)
2892      sed -n \
2893	"s/'\''/'\''\\\\'\'''\''/g;
2894	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2895      ;; #(
2896    *)
2897      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2898      ;;
2899    esac |
2900    sort
2901)
2902    echo
2903
2904    $as_echo "## ----------------- ##
2905## Output variables. ##
2906## ----------------- ##"
2907    echo
2908    for ac_var in $ac_subst_vars
2909    do
2910      eval ac_val=\$$ac_var
2911      case $ac_val in
2912      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2913      esac
2914      $as_echo "$ac_var='\''$ac_val'\''"
2915    done | sort
2916    echo
2917
2918    if test -n "$ac_subst_files"; then
2919      $as_echo "## ------------------- ##
2920## File substitutions. ##
2921## ------------------- ##"
2922      echo
2923      for ac_var in $ac_subst_files
2924      do
2925	eval ac_val=\$$ac_var
2926	case $ac_val in
2927	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2928	esac
2929	$as_echo "$ac_var='\''$ac_val'\''"
2930      done | sort
2931      echo
2932    fi
2933
2934    if test -s confdefs.h; then
2935      $as_echo "## ----------- ##
2936## confdefs.h. ##
2937## ----------- ##"
2938      echo
2939      cat confdefs.h
2940      echo
2941    fi
2942    test "$ac_signal" != 0 &&
2943      $as_echo "$as_me: caught signal $ac_signal"
2944    $as_echo "$as_me: exit $exit_status"
2945  } >&5
2946  rm -f core *.core core.conftest.* &&
2947    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2948    exit $exit_status
2949' 0
2950for ac_signal in 1 2 13 15; do
2951  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2952done
2953ac_signal=0
2954
2955# confdefs.h avoids OS command line length limits that DEFS can exceed.
2956rm -f -r conftest* confdefs.h
2957
2958$as_echo "/* confdefs.h */" > confdefs.h
2959
2960# Predefined preprocessor variables.
2961
2962cat >>confdefs.h <<_ACEOF
2963#define PACKAGE_NAME "$PACKAGE_NAME"
2964_ACEOF
2965
2966cat >>confdefs.h <<_ACEOF
2967#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2968_ACEOF
2969
2970cat >>confdefs.h <<_ACEOF
2971#define PACKAGE_VERSION "$PACKAGE_VERSION"
2972_ACEOF
2973
2974cat >>confdefs.h <<_ACEOF
2975#define PACKAGE_STRING "$PACKAGE_STRING"
2976_ACEOF
2977
2978cat >>confdefs.h <<_ACEOF
2979#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2980_ACEOF
2981
2982cat >>confdefs.h <<_ACEOF
2983#define PACKAGE_URL "$PACKAGE_URL"
2984_ACEOF
2985
2986
2987# Let the site file select an alternate cache file if it wants to.
2988# Prefer an explicitly selected file to automatically selected ones.
2989ac_site_file1=NONE
2990ac_site_file2=NONE
2991if test -n "$CONFIG_SITE"; then
2992  # We do not want a PATH search for config.site.
2993  case $CONFIG_SITE in #((
2994    -*)  ac_site_file1=./$CONFIG_SITE;;
2995    */*) ac_site_file1=$CONFIG_SITE;;
2996    *)   ac_site_file1=./$CONFIG_SITE;;
2997  esac
2998elif test "x$prefix" != xNONE; then
2999  ac_site_file1=$prefix/share/config.site
3000  ac_site_file2=$prefix/etc/config.site
3001else
3002  ac_site_file1=$ac_default_prefix/share/config.site
3003  ac_site_file2=$ac_default_prefix/etc/config.site
3004fi
3005for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3006do
3007  test "x$ac_site_file" = xNONE && continue
3008  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3009    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3010$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3011    sed 's/^/| /' "$ac_site_file" >&5
3012    . "$ac_site_file" \
3013      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3014$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015as_fn_error $? "failed to load site script $ac_site_file
3016See \`config.log' for more details" "$LINENO" 5; }
3017  fi
3018done
3019
3020if test -r "$cache_file"; then
3021  # Some versions of bash will fail to source /dev/null (special files
3022  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3023  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3024    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3025$as_echo "$as_me: loading cache $cache_file" >&6;}
3026    case $cache_file in
3027      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3028      *)                      . "./$cache_file";;
3029    esac
3030  fi
3031else
3032  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3033$as_echo "$as_me: creating cache $cache_file" >&6;}
3034  >$cache_file
3035fi
3036
3037as_fn_append ac_header_list " stdarg.h"
3038# Check that the precious variables saved in the cache have kept the same
3039# value.
3040ac_cache_corrupted=false
3041for ac_var in $ac_precious_vars; do
3042  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3043  eval ac_new_set=\$ac_env_${ac_var}_set
3044  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3045  eval ac_new_val=\$ac_env_${ac_var}_value
3046  case $ac_old_set,$ac_new_set in
3047    set,)
3048      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3049$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3050      ac_cache_corrupted=: ;;
3051    ,set)
3052      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3053$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3054      ac_cache_corrupted=: ;;
3055    ,);;
3056    *)
3057      if test "x$ac_old_val" != "x$ac_new_val"; then
3058	# differences in whitespace do not lead to failure.
3059	ac_old_val_w=`echo x $ac_old_val`
3060	ac_new_val_w=`echo x $ac_new_val`
3061	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3062	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3063$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3064	  ac_cache_corrupted=:
3065	else
3066	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3067$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3068	  eval $ac_var=\$ac_old_val
3069	fi
3070	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3071$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3072	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3073$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3074      fi;;
3075  esac
3076  # Pass precious variables to config.status.
3077  if test "$ac_new_set" = set; then
3078    case $ac_new_val in
3079    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3080    *) ac_arg=$ac_var=$ac_new_val ;;
3081    esac
3082    case " $ac_configure_args " in
3083      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3084      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3085    esac
3086  fi
3087done
3088if $ac_cache_corrupted; then
3089  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3091  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3092$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3093  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3094fi
3095## -------------------- ##
3096## Main body of script. ##
3097## -------------------- ##
3098
3099ac_ext=c
3100ac_cpp='$CPP $CPPFLAGS'
3101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104
3105
3106
3107ac_aux_dir=
3108for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
3109  if test -f "$ac_dir/install-sh"; then
3110    ac_aux_dir=$ac_dir
3111    ac_install_sh="$ac_aux_dir/install-sh -c"
3112    break
3113  elif test -f "$ac_dir/install.sh"; then
3114    ac_aux_dir=$ac_dir
3115    ac_install_sh="$ac_aux_dir/install.sh -c"
3116    break
3117  elif test -f "$ac_dir/shtool"; then
3118    ac_aux_dir=$ac_dir
3119    ac_install_sh="$ac_aux_dir/shtool install -c"
3120    break
3121  fi
3122done
3123if test -z "$ac_aux_dir"; then
3124  as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
3125fi
3126
3127# These three variables are undocumented and unsupported,
3128# and are intended to be withdrawn in a future Autoconf release.
3129# They can cause serious problems if a builder's source tree is in a directory
3130# whose full name contains unusual characters.
3131ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3132ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3133ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3134
3135
3136ac_ext=c
3137ac_cpp='$CPP $CPPFLAGS'
3138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140ac_compiler_gnu=$ac_cv_c_compiler_gnu
3141
3142
3143
3144
3145
3146
3147# Bump ntp_configure_cache_version for each change to configure.ac or
3148# .m4 files which invalidates cached values from previous configure
3149# runs.
3150#
3151# If the change affects cache variables used only by the main NTP
3152# configure.ac, then only its version number should be bumped, while
3153# the subdir configure.ac version numbers should be unchanged.  The
3154# same is true for a test/variable that is used only by one subdir
3155# being changed incompatibly; only that subdir's cache version needs
3156# bumping.
3157#
3158# If a change affects variables shared by all NTP configure scripts,
3159# please bump the version numbers of each.  If you are not sure, the
3160# safe choice is to bump all on any cache-invalidating change.
3161#
3162# In order to avoid the risk of version stamp collision between -stable
3163# and -dev branches, do not simply increment the version, instead use
3164# the date YYYYMMDD optionally with -HHMM if there is more than one
3165# bump in a day.
3166
3167ntp_configure_cache_version=20120806
3168
3169# When the cache version of config.cache and configure do not
3170# match, NTP_CACHEVERSION will flush the cache.
3171
3172
3173
3174    ntp_cache_flush=1
3175
3176    case "$ntp_cv_main_cache_version" in
3177     $ntp_configure_cache_version)
3178	# same version, good
3179	ntp_cache_flush=0
3180	;;
3181     '')
3182	# No cache, predates ntp_cv_main_cache_version, or is empty.
3183	case "$cache_file" in
3184	 /dev/null)
3185	    ntp_cache_flush=0
3186	    ;;
3187	 *)
3188	    case "$NTP_CACHEVERSION_PARENT" in
3189	     '')
3190		# Do not clear the cache immediately after it is created
3191		# empty as it is noisy.  Differentiate a newly-created
3192		# config.cache from one predating the cache version
3193		# mechanism by looking for the first cached variable set
3194		# by Autoconf
3195		case "$ac_cv_path_install" in
3196		 '')
3197		    # empty config.cache file
3198		    ntp_cache_flush=0
3199		esac
3200		;;
3201	     *)
3202		# Parent configure just created cache from empty,
3203		# flushing would be counterproductive.
3204		ntp_cache_flush=0;
3205		;;
3206	    esac
3207	esac
3208	;;
3209     *)
3210	# configure cache version mismatches config.cache version
3211	;;
3212    esac
3213
3214    case "$ntp_cache_flush" in
3215     1)
3216	c_version="${ntp_cv_main_cache_version:-(no version found)}"
3217
3218	# Do we flush all variables or exclude others' version stamps?
3219
3220	case "$NTP_CACHEVERSION_PARENT" in
3221	 '')
3222	    # Clear all *_cv_* variables including our child subdirs'
3223	    # ntp_cv_*_cache_version variables.  This prevents subdir
3224	    # configure scripts from noticing a version mismatch just
3225	    # after the top configure in the invocation cleared and
3226	    # recreated the cache.
3227
3228	    c_varname_list=`set |
3229			    sed -n -e 's/=.*$//' \
3230				   -e '/_cv_/p'
3231			   `
3232	    ;;
3233	 *)
3234	    # This is not the top configure this particular invocation.
3235	    # Clear all *_cv_* variables sparing the version stamps
3236	    # of other configure scripts, so we don't trigger
3237	    # useless repeated clearings.
3238
3239	    c_varname_list=`set |
3240			    sed -n -e 's/=.*$//' \
3241				   -e '/ntp_cv_.*_cache_version/d' \
3242				   -e '/_cv_/p'
3243			   `
3244	esac
3245
3246	for c_varname in $c_varname_list
3247	do
3248	    	    	    	    	    	    { eval $c_varname=; unset $c_varname; }
3249	done
3250
3251	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
3252$as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
3253	{ $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
3254$as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
3255	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
3256$as_echo "$as_me: $cache_file version: $c_version" >&6;}
3257	{ c_varname=; unset c_varname;}
3258	{ c_varname_list=; unset c_varname_list;}
3259	{ c_version=; unset c_version;}
3260    esac
3261
3262    { ntp_cache_flush=; unset ntp_cache_flush;}
3263
3264    # save configure version in config.cache for next time
3265    ntp_cv_main_cache_version="$ntp_configure_cache_version"
3266
3267    # let any subdir configure.ac NTP_CACHEVERSION invocations
3268    # know they are not the top level.
3269    NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT
3270
3271
3272am__api_version='1.15'
3273
3274# Find a good install program.  We prefer a C program (faster),
3275# so one script is as good as another.  But avoid the broken or
3276# incompatible versions:
3277# SysV /etc/install, /usr/sbin/install
3278# SunOS /usr/etc/install
3279# IRIX /sbin/install
3280# AIX /bin/install
3281# AmigaOS /C/install, which installs bootblocks on floppy discs
3282# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3283# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3284# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3285# OS/2's system install, which has a completely different semantic
3286# ./install, which can be erroneously created by make from ./install.sh.
3287# Reject install programs that cannot install multiple files.
3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3289$as_echo_n "checking for a BSD-compatible install... " >&6; }
3290if test -z "$INSTALL"; then
3291if ${ac_cv_path_install+:} false; then :
3292  $as_echo_n "(cached) " >&6
3293else
3294  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295for as_dir in $PATH
3296do
3297  IFS=$as_save_IFS
3298  test -z "$as_dir" && as_dir=.
3299    # Account for people who put trailing slashes in PATH elements.
3300case $as_dir/ in #((
3301  ./ | .// | /[cC]/* | \
3302  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3303  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3304  /usr/ucb/* ) ;;
3305  *)
3306    # OSF1 and SCO ODT 3.0 have their own names for install.
3307    # Don't use installbsd from OSF since it installs stuff as root
3308    # by default.
3309    for ac_prog in ginstall scoinst install; do
3310      for ac_exec_ext in '' $ac_executable_extensions; do
3311	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3312	  if test $ac_prog = install &&
3313	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3314	    # AIX install.  It has an incompatible calling convention.
3315	    :
3316	  elif test $ac_prog = install &&
3317	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3318	    # program-specific install script used by HP pwplus--don't use.
3319	    :
3320	  else
3321	    rm -rf conftest.one conftest.two conftest.dir
3322	    echo one > conftest.one
3323	    echo two > conftest.two
3324	    mkdir conftest.dir
3325	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3326	      test -s conftest.one && test -s conftest.two &&
3327	      test -s conftest.dir/conftest.one &&
3328	      test -s conftest.dir/conftest.two
3329	    then
3330	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3331	      break 3
3332	    fi
3333	  fi
3334	fi
3335      done
3336    done
3337    ;;
3338esac
3339
3340  done
3341IFS=$as_save_IFS
3342
3343rm -rf conftest.one conftest.two conftest.dir
3344
3345fi
3346  if test "${ac_cv_path_install+set}" = set; then
3347    INSTALL=$ac_cv_path_install
3348  else
3349    # As a last resort, use the slow shell script.  Don't cache a
3350    # value for INSTALL within a source directory, because that will
3351    # break other packages using the cache if that directory is
3352    # removed, or if the value is a relative name.
3353    INSTALL=$ac_install_sh
3354  fi
3355fi
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3357$as_echo "$INSTALL" >&6; }
3358
3359# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3360# It thinks the first close brace ends the variable substitution.
3361test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3362
3363test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3364
3365test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3366
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3368$as_echo_n "checking whether build environment is sane... " >&6; }
3369# Reject unsafe characters in $srcdir or the absolute working directory
3370# name.  Accept space and tab only in the latter.
3371am_lf='
3372'
3373case `pwd` in
3374  *[\\\"\#\$\&\'\`$am_lf]*)
3375    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3376esac
3377case $srcdir in
3378  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3379    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3380esac
3381
3382# Do 'set' in a subshell so we don't clobber the current shell's
3383# arguments.  Must try -L first in case configure is actually a
3384# symlink; some systems play weird games with the mod time of symlinks
3385# (eg FreeBSD returns the mod time of the symlink's containing
3386# directory).
3387if (
3388   am_has_slept=no
3389   for am_try in 1 2; do
3390     echo "timestamp, slept: $am_has_slept" > conftest.file
3391     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3392     if test "$*" = "X"; then
3393	# -L didn't work.
3394	set X `ls -t "$srcdir/configure" conftest.file`
3395     fi
3396     if test "$*" != "X $srcdir/configure conftest.file" \
3397	&& test "$*" != "X conftest.file $srcdir/configure"; then
3398
3399	# If neither matched, then we have a broken ls.  This can happen
3400	# if, for instance, CONFIG_SHELL is bash and it inherits a
3401	# broken ls alias from the environment.  This has actually
3402	# happened.  Such a system could not be considered "sane".
3403	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3404  alias in your environment" "$LINENO" 5
3405     fi
3406     if test "$2" = conftest.file || test $am_try -eq 2; then
3407       break
3408     fi
3409     # Just in case.
3410     sleep 1
3411     am_has_slept=yes
3412   done
3413   test "$2" = conftest.file
3414   )
3415then
3416   # Ok.
3417   :
3418else
3419   as_fn_error $? "newly created file is older than distributed files!
3420Check your system clock" "$LINENO" 5
3421fi
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3423$as_echo "yes" >&6; }
3424# If we didn't sleep, we still need to ensure time stamps of config.status and
3425# generated files are strictly newer.
3426am_sleep_pid=
3427if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3428  ( sleep 1 ) &
3429  am_sleep_pid=$!
3430fi
3431
3432rm -f conftest.file
3433
3434test "$program_prefix" != NONE &&
3435  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3436# Use a double $ so make ignores it.
3437test "$program_suffix" != NONE &&
3438  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3439# Double any \ or $.
3440# By default was `s,x,x', remove it if useless.
3441ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3442program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3443
3444# Expand $ac_aux_dir to an absolute path.
3445am_aux_dir=`cd "$ac_aux_dir" && pwd`
3446
3447if test x"${MISSING+set}" != xset; then
3448  case $am_aux_dir in
3449  *\ * | *\	*)
3450    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3451  *)
3452    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3453  esac
3454fi
3455# Use eval to expand $SHELL
3456if eval "$MISSING --is-lightweight"; then
3457  am_missing_run="$MISSING "
3458else
3459  am_missing_run=
3460  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3461$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3462fi
3463
3464if test x"${install_sh+set}" != xset; then
3465  case $am_aux_dir in
3466  *\ * | *\	*)
3467    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3468  *)
3469    install_sh="\${SHELL} $am_aux_dir/install-sh"
3470  esac
3471fi
3472
3473# Installed binaries are usually stripped using 'strip' when the user
3474# run "make install-strip".  However 'strip' might not be the right
3475# tool to use in cross-compilation environments, therefore Automake
3476# will honor the 'STRIP' environment variable to overrule this program.
3477if test "$cross_compiling" != no; then
3478  if test -n "$ac_tool_prefix"; then
3479  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3480set dummy ${ac_tool_prefix}strip; ac_word=$2
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482$as_echo_n "checking for $ac_word... " >&6; }
3483if ${ac_cv_prog_STRIP+:} false; then :
3484  $as_echo_n "(cached) " >&6
3485else
3486  if test -n "$STRIP"; then
3487  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3488else
3489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490for as_dir in $PATH
3491do
3492  IFS=$as_save_IFS
3493  test -z "$as_dir" && as_dir=.
3494    for ac_exec_ext in '' $ac_executable_extensions; do
3495  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3496    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3497    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498    break 2
3499  fi
3500done
3501  done
3502IFS=$as_save_IFS
3503
3504fi
3505fi
3506STRIP=$ac_cv_prog_STRIP
3507if test -n "$STRIP"; then
3508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3509$as_echo "$STRIP" >&6; }
3510else
3511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512$as_echo "no" >&6; }
3513fi
3514
3515
3516fi
3517if test -z "$ac_cv_prog_STRIP"; then
3518  ac_ct_STRIP=$STRIP
3519  # Extract the first word of "strip", so it can be a program name with args.
3520set dummy strip; ac_word=$2
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522$as_echo_n "checking for $ac_word... " >&6; }
3523if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3524  $as_echo_n "(cached) " >&6
3525else
3526  if test -n "$ac_ct_STRIP"; then
3527  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3528else
3529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530for as_dir in $PATH
3531do
3532  IFS=$as_save_IFS
3533  test -z "$as_dir" && as_dir=.
3534    for ac_exec_ext in '' $ac_executable_extensions; do
3535  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536    ac_cv_prog_ac_ct_STRIP="strip"
3537    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538    break 2
3539  fi
3540done
3541  done
3542IFS=$as_save_IFS
3543
3544fi
3545fi
3546ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3547if test -n "$ac_ct_STRIP"; then
3548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3549$as_echo "$ac_ct_STRIP" >&6; }
3550else
3551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552$as_echo "no" >&6; }
3553fi
3554
3555  if test "x$ac_ct_STRIP" = x; then
3556    STRIP=":"
3557  else
3558    case $cross_compiling:$ac_tool_warned in
3559yes:)
3560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3562ac_tool_warned=yes ;;
3563esac
3564    STRIP=$ac_ct_STRIP
3565  fi
3566else
3567  STRIP="$ac_cv_prog_STRIP"
3568fi
3569
3570fi
3571INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3572
3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3574$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3575if test -z "$MKDIR_P"; then
3576  if ${ac_cv_path_mkdir+:} false; then :
3577  $as_echo_n "(cached) " >&6
3578else
3579  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3581do
3582  IFS=$as_save_IFS
3583  test -z "$as_dir" && as_dir=.
3584    for ac_prog in mkdir gmkdir; do
3585	 for ac_exec_ext in '' $ac_executable_extensions; do
3586	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3587	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3588	     'mkdir (GNU coreutils) '* | \
3589	     'mkdir (coreutils) '* | \
3590	     'mkdir (fileutils) '4.1*)
3591	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3592	       break 3;;
3593	   esac
3594	 done
3595       done
3596  done
3597IFS=$as_save_IFS
3598
3599fi
3600
3601  test -d ./--version && rmdir ./--version
3602  if test "${ac_cv_path_mkdir+set}" = set; then
3603    MKDIR_P="$ac_cv_path_mkdir -p"
3604  else
3605    # As a last resort, use the slow shell script.  Don't cache a
3606    # value for MKDIR_P within a source directory, because that will
3607    # break other packages using the cache if that directory is
3608    # removed, or if the value is a relative name.
3609    MKDIR_P="$ac_install_sh -d"
3610  fi
3611fi
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3613$as_echo "$MKDIR_P" >&6; }
3614
3615for ac_prog in gawk mawk nawk awk
3616do
3617  # Extract the first word of "$ac_prog", so it can be a program name with args.
3618set dummy $ac_prog; ac_word=$2
3619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3620$as_echo_n "checking for $ac_word... " >&6; }
3621if ${ac_cv_prog_AWK+:} false; then :
3622  $as_echo_n "(cached) " >&6
3623else
3624  if test -n "$AWK"; then
3625  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3626else
3627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628for as_dir in $PATH
3629do
3630  IFS=$as_save_IFS
3631  test -z "$as_dir" && as_dir=.
3632    for ac_exec_ext in '' $ac_executable_extensions; do
3633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634    ac_cv_prog_AWK="$ac_prog"
3635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3636    break 2
3637  fi
3638done
3639  done
3640IFS=$as_save_IFS
3641
3642fi
3643fi
3644AWK=$ac_cv_prog_AWK
3645if test -n "$AWK"; then
3646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3647$as_echo "$AWK" >&6; }
3648else
3649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650$as_echo "no" >&6; }
3651fi
3652
3653
3654  test -n "$AWK" && break
3655done
3656
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3658$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3659set x ${MAKE-make}
3660ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3661if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3662  $as_echo_n "(cached) " >&6
3663else
3664  cat >conftest.make <<\_ACEOF
3665SHELL = /bin/sh
3666all:
3667	@echo '@@@%%%=$(MAKE)=@@@%%%'
3668_ACEOF
3669# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3670case `${MAKE-make} -f conftest.make 2>/dev/null` in
3671  *@@@%%%=?*=@@@%%%*)
3672    eval ac_cv_prog_make_${ac_make}_set=yes;;
3673  *)
3674    eval ac_cv_prog_make_${ac_make}_set=no;;
3675esac
3676rm -f conftest.make
3677fi
3678if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3680$as_echo "yes" >&6; }
3681  SET_MAKE=
3682else
3683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684$as_echo "no" >&6; }
3685  SET_MAKE="MAKE=${MAKE-make}"
3686fi
3687
3688rm -rf .tst 2>/dev/null
3689mkdir .tst 2>/dev/null
3690if test -d .tst; then
3691  am__leading_dot=.
3692else
3693  am__leading_dot=_
3694fi
3695rmdir .tst 2>/dev/null
3696
3697# Check whether --enable-silent-rules was given.
3698if test "${enable_silent_rules+set}" = set; then :
3699  enableval=$enable_silent_rules;
3700fi
3701
3702case $enable_silent_rules in # (((
3703  yes) AM_DEFAULT_VERBOSITY=0;;
3704   no) AM_DEFAULT_VERBOSITY=1;;
3705    *) AM_DEFAULT_VERBOSITY=1;;
3706esac
3707am_make=${MAKE-make}
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3709$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3710if ${am_cv_make_support_nested_variables+:} false; then :
3711  $as_echo_n "(cached) " >&6
3712else
3713  if $as_echo 'TRUE=$(BAR$(V))
3714BAR0=false
3715BAR1=true
3716V=1
3717am__doit:
3718	@$(TRUE)
3719.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3720  am_cv_make_support_nested_variables=yes
3721else
3722  am_cv_make_support_nested_variables=no
3723fi
3724fi
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3726$as_echo "$am_cv_make_support_nested_variables" >&6; }
3727if test $am_cv_make_support_nested_variables = yes; then
3728    AM_V='$(V)'
3729  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3730else
3731  AM_V=$AM_DEFAULT_VERBOSITY
3732  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3733fi
3734AM_BACKSLASH='\'
3735
3736if test "`cd $srcdir && pwd`" != "`pwd`"; then
3737  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3738  # is not polluted with repeated "-I."
3739  am__isrc=' -I$(srcdir)'
3740  # test to see if srcdir already configured
3741  if test -f $srcdir/config.status; then
3742    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3743  fi
3744fi
3745
3746# test whether we have cygpath
3747if test -z "$CYGPATH_W"; then
3748  if (cygpath --version) >/dev/null 2>/dev/null; then
3749    CYGPATH_W='cygpath -w'
3750  else
3751    CYGPATH_W=echo
3752  fi
3753fi
3754
3755
3756# Define the identity of the package.
3757 PACKAGE='ntp'
3758 VERSION='4.2.8p8'
3759
3760
3761cat >>confdefs.h <<_ACEOF
3762#define PACKAGE "$PACKAGE"
3763_ACEOF
3764
3765
3766cat >>confdefs.h <<_ACEOF
3767#define VERSION "$VERSION"
3768_ACEOF
3769
3770# Some tools Automake needs.
3771
3772ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3773
3774
3775AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3776
3777
3778AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3779
3780
3781AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3782
3783
3784MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3785
3786# For better backward compatibility.  To be removed once Automake 1.9.x
3787# dies out for good.  For more background, see:
3788# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3789# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3790mkdir_p='$(MKDIR_P)'
3791
3792# We need awk for the "check" target (and possibly the TAP driver).  The
3793# system "awk" is bad on some platforms.
3794# Always define AMTAR for backward compatibility.  Yes, it's still used
3795# in the wild :-(  We should find a proper way to deprecate it ...
3796AMTAR='$${TAR-tar}'
3797
3798
3799# We'll loop over all known methods to create a tar archive until one works.
3800_am_tools='gnutar  pax cpio none'
3801
3802am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3803
3804
3805
3806
3807
3808
3809# POSIX will say in a future version that running "rm -f" with no argument
3810# is OK; and we want to be able to make that assumption in our Makefile
3811# recipes.  So use an aggressive probe to check that the usage we want is
3812# actually supported "in the wild" to an acceptable degree.
3813# See automake bug#10828.
3814# To make any issue more visible, cause the running configure to be aborted
3815# by default if the 'rm' program in use doesn't match our expectations; the
3816# user can still override this though.
3817if rm -f && rm -fr && rm -rf; then : OK; else
3818  cat >&2 <<'END'
3819Oops!
3820
3821Your 'rm' program seems unable to run without file operands specified
3822on the command line, even when the '-f' option is present.  This is contrary
3823to the behaviour of most rm programs out there, and not conforming with
3824the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3825
3826Please tell bug-automake@gnu.org about your system, including the value
3827of your $PATH and any error possibly output before this message.  This
3828can help us improve future automake versions.
3829
3830END
3831  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3832    echo 'Configuration will proceed anyway, since you have set the' >&2
3833    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3834    echo >&2
3835  else
3836    cat >&2 <<'END'
3837Aborting the configuration process, to ensure you take notice of the issue.
3838
3839You can download and install GNU coreutils to get an 'rm' implementation
3840that behaves properly: <http://www.gnu.org/software/coreutils/>.
3841
3842If you want to complete the configuration process using your problematic
3843'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3844to "yes", and re-run configure.
3845
3846END
3847    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3848  fi
3849fi
3850
3851
3852# Check whether --enable-silent-rules was given.
3853if test "${enable_silent_rules+set}" = set; then :
3854  enableval=$enable_silent_rules;
3855fi
3856
3857case $enable_silent_rules in # (((
3858  yes) AM_DEFAULT_VERBOSITY=0;;
3859   no) AM_DEFAULT_VERBOSITY=1;;
3860    *) AM_DEFAULT_VERBOSITY=0;;
3861esac
3862am_make=${MAKE-make}
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3864$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3865if ${am_cv_make_support_nested_variables+:} false; then :
3866  $as_echo_n "(cached) " >&6
3867else
3868  if $as_echo 'TRUE=$(BAR$(V))
3869BAR0=false
3870BAR1=true
3871V=1
3872am__doit:
3873	@$(TRUE)
3874.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3875  am_cv_make_support_nested_variables=yes
3876else
3877  am_cv_make_support_nested_variables=no
3878fi
3879fi
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3881$as_echo "$am_cv_make_support_nested_variables" >&6; }
3882if test $am_cv_make_support_nested_variables = yes; then
3883    AM_V='$(V)'
3884  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3885else
3886  AM_V=$AM_DEFAULT_VERBOSITY
3887  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3888fi
3889AM_BACKSLASH='\'
3890
3891
3892# Make sure we can run config.sub.
3893$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3894  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3895
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3897$as_echo_n "checking build system type... " >&6; }
3898if ${ac_cv_build+:} false; then :
3899  $as_echo_n "(cached) " >&6
3900else
3901  ac_build_alias=$build_alias
3902test "x$ac_build_alias" = x &&
3903  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3904test "x$ac_build_alias" = x &&
3905  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3906ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3907  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3908
3909fi
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3911$as_echo "$ac_cv_build" >&6; }
3912case $ac_cv_build in
3913*-*-*) ;;
3914*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3915esac
3916build=$ac_cv_build
3917ac_save_IFS=$IFS; IFS='-'
3918set x $ac_cv_build
3919shift
3920build_cpu=$1
3921build_vendor=$2
3922shift; shift
3923# Remember, the first character of IFS is used to create $*,
3924# except with old shells:
3925build_os=$*
3926IFS=$ac_save_IFS
3927case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3928
3929
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3931$as_echo_n "checking host system type... " >&6; }
3932if ${ac_cv_host+:} false; then :
3933  $as_echo_n "(cached) " >&6
3934else
3935  if test "x$host_alias" = x; then
3936  ac_cv_host=$ac_cv_build
3937else
3938  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3939    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3940fi
3941
3942fi
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3944$as_echo "$ac_cv_host" >&6; }
3945case $ac_cv_host in
3946*-*-*) ;;
3947*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3948esac
3949host=$ac_cv_host
3950ac_save_IFS=$IFS; IFS='-'
3951set x $ac_cv_host
3952shift
3953host_cpu=$1
3954host_vendor=$2
3955shift; shift
3956# Remember, the first character of IFS is used to create $*,
3957# except with old shells:
3958host_os=$*
3959IFS=$ac_save_IFS
3960case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3961
3962
3963
3964cat >>confdefs.h <<_ACEOF
3965#define STR_SYSTEM "$host"
3966_ACEOF
3967
3968ac_config_headers="$ac_config_headers config.h"
3969
3970
3971ntp_atom_ok=${ntp_atom_ok=no}
3972ntp_oncore_ok=${ntp_oncore_ok=no}
3973ntp_parse_ok=${ntp_parse_ok=no}
3974ntp_ripe_ncc_ok=${ntp_parse_ok=no}
3975ntp_jupiter_ok=${ntp_jupiter_ok=no}
3976
3977DEPDIR="${am__leading_dot}deps"
3978
3979ac_config_commands="$ac_config_commands depfiles"
3980
3981
3982am_make=${MAKE-make}
3983cat > confinc << 'END'
3984am__doit:
3985	@echo this is the am__doit target
3986.PHONY: am__doit
3987END
3988# If we don't find an include directive, just comment out the code.
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3990$as_echo_n "checking for style of include used by $am_make... " >&6; }
3991am__include="#"
3992am__quote=
3993_am_result=none
3994# First try GNU make style include.
3995echo "include confinc" > confmf
3996# Ignore all kinds of additional output from 'make'.
3997case `$am_make -s -f confmf 2> /dev/null` in #(
3998*the\ am__doit\ target*)
3999  am__include=include
4000  am__quote=
4001  _am_result=GNU
4002  ;;
4003esac
4004# Now try BSD make style include.
4005if test "$am__include" = "#"; then
4006   echo '.include "confinc"' > confmf
4007   case `$am_make -s -f confmf 2> /dev/null` in #(
4008   *the\ am__doit\ target*)
4009     am__include=.include
4010     am__quote="\""
4011     _am_result=BSD
4012     ;;
4013   esac
4014fi
4015
4016
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4018$as_echo "$_am_result" >&6; }
4019rm -f confinc confmf
4020
4021# Check whether --enable-dependency-tracking was given.
4022if test "${enable_dependency_tracking+set}" = set; then :
4023  enableval=$enable_dependency_tracking;
4024fi
4025
4026if test "x$enable_dependency_tracking" != xno; then
4027  am_depcomp="$ac_aux_dir/depcomp"
4028  AMDEPBACKSLASH='\'
4029  am__nodep='_no'
4030fi
4031 if test "x$enable_dependency_tracking" != xno; then
4032  AMDEP_TRUE=
4033  AMDEP_FALSE='#'
4034else
4035  AMDEP_TRUE='#'
4036  AMDEP_FALSE=
4037fi
4038
4039
4040ac_ext=c
4041ac_cpp='$CPP $CPPFLAGS'
4042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045if test -n "$ac_tool_prefix"; then
4046  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4047set dummy ${ac_tool_prefix}gcc; 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4063    ac_cv_prog_CC="${ac_tool_prefix}gcc"
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
4083fi
4084if test -z "$ac_cv_prog_CC"; then
4085  ac_ct_CC=$CC
4086  # Extract the first word of "gcc", so it can be a program name with args.
4087set dummy gcc; ac_word=$2
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4089$as_echo_n "checking for $ac_word... " >&6; }
4090if ${ac_cv_prog_ac_ct_CC+:} false; then :
4091  $as_echo_n "(cached) " >&6
4092else
4093  if test -n "$ac_ct_CC"; then
4094  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4095else
4096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097for as_dir in $PATH
4098do
4099  IFS=$as_save_IFS
4100  test -z "$as_dir" && as_dir=.
4101    for ac_exec_ext in '' $ac_executable_extensions; do
4102  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4103    ac_cv_prog_ac_ct_CC="gcc"
4104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4105    break 2
4106  fi
4107done
4108  done
4109IFS=$as_save_IFS
4110
4111fi
4112fi
4113ac_ct_CC=$ac_cv_prog_ac_ct_CC
4114if test -n "$ac_ct_CC"; then
4115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4116$as_echo "$ac_ct_CC" >&6; }
4117else
4118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119$as_echo "no" >&6; }
4120fi
4121
4122  if test "x$ac_ct_CC" = x; then
4123    CC=""
4124  else
4125    case $cross_compiling:$ac_tool_warned in
4126yes:)
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4129ac_tool_warned=yes ;;
4130esac
4131    CC=$ac_ct_CC
4132  fi
4133else
4134  CC="$ac_cv_prog_CC"
4135fi
4136
4137if test -z "$CC"; then
4138          if test -n "$ac_tool_prefix"; then
4139    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4140set dummy ${ac_tool_prefix}cc; ac_word=$2
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142$as_echo_n "checking for $ac_word... " >&6; }
4143if ${ac_cv_prog_CC+:} false; then :
4144  $as_echo_n "(cached) " >&6
4145else
4146  if test -n "$CC"; then
4147  ac_cv_prog_CC="$CC" # Let the user override the test.
4148else
4149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150for as_dir in $PATH
4151do
4152  IFS=$as_save_IFS
4153  test -z "$as_dir" && as_dir=.
4154    for ac_exec_ext in '' $ac_executable_extensions; do
4155  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156    ac_cv_prog_CC="${ac_tool_prefix}cc"
4157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158    break 2
4159  fi
4160done
4161  done
4162IFS=$as_save_IFS
4163
4164fi
4165fi
4166CC=$ac_cv_prog_CC
4167if test -n "$CC"; then
4168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4169$as_echo "$CC" >&6; }
4170else
4171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172$as_echo "no" >&6; }
4173fi
4174
4175
4176  fi
4177fi
4178if test -z "$CC"; then
4179  # Extract the first word of "cc", so it can be a program name with args.
4180set dummy cc; ac_word=$2
4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182$as_echo_n "checking for $ac_word... " >&6; }
4183if ${ac_cv_prog_CC+:} false; then :
4184  $as_echo_n "(cached) " >&6
4185else
4186  if test -n "$CC"; then
4187  ac_cv_prog_CC="$CC" # Let the user override the test.
4188else
4189  ac_prog_rejected=no
4190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191for as_dir in $PATH
4192do
4193  IFS=$as_save_IFS
4194  test -z "$as_dir" && as_dir=.
4195    for ac_exec_ext in '' $ac_executable_extensions; do
4196  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4198       ac_prog_rejected=yes
4199       continue
4200     fi
4201    ac_cv_prog_CC="cc"
4202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4203    break 2
4204  fi
4205done
4206  done
4207IFS=$as_save_IFS
4208
4209if test $ac_prog_rejected = yes; then
4210  # We found a bogon in the path, so make sure we never use it.
4211  set dummy $ac_cv_prog_CC
4212  shift
4213  if test $# != 0; then
4214    # We chose a different compiler from the bogus one.
4215    # However, it has the same basename, so the bogon will be chosen
4216    # first if we set CC to just the basename; use the full file name.
4217    shift
4218    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4219  fi
4220fi
4221fi
4222fi
4223CC=$ac_cv_prog_CC
4224if test -n "$CC"; then
4225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4226$as_echo "$CC" >&6; }
4227else
4228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229$as_echo "no" >&6; }
4230fi
4231
4232
4233fi
4234if test -z "$CC"; then
4235  if test -n "$ac_tool_prefix"; then
4236  for ac_prog in cl.exe
4237  do
4238    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4239set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241$as_echo_n "checking for $ac_word... " >&6; }
4242if ${ac_cv_prog_CC+:} false; then :
4243  $as_echo_n "(cached) " >&6
4244else
4245  if test -n "$CC"; then
4246  ac_cv_prog_CC="$CC" # Let the user override the test.
4247else
4248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249for as_dir in $PATH
4250do
4251  IFS=$as_save_IFS
4252  test -z "$as_dir" && as_dir=.
4253    for ac_exec_ext in '' $ac_executable_extensions; do
4254  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4255    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4256    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257    break 2
4258  fi
4259done
4260  done
4261IFS=$as_save_IFS
4262
4263fi
4264fi
4265CC=$ac_cv_prog_CC
4266if test -n "$CC"; then
4267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4268$as_echo "$CC" >&6; }
4269else
4270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271$as_echo "no" >&6; }
4272fi
4273
4274
4275    test -n "$CC" && break
4276  done
4277fi
4278if test -z "$CC"; then
4279  ac_ct_CC=$CC
4280  for ac_prog in cl.exe
4281do
4282  # Extract the first word of "$ac_prog", so it can be a program name with args.
4283set dummy $ac_prog; ac_word=$2
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285$as_echo_n "checking for $ac_word... " >&6; }
4286if ${ac_cv_prog_ac_ct_CC+:} false; then :
4287  $as_echo_n "(cached) " >&6
4288else
4289  if test -n "$ac_ct_CC"; then
4290  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4291else
4292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293for as_dir in $PATH
4294do
4295  IFS=$as_save_IFS
4296  test -z "$as_dir" && as_dir=.
4297    for ac_exec_ext in '' $ac_executable_extensions; do
4298  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299    ac_cv_prog_ac_ct_CC="$ac_prog"
4300    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301    break 2
4302  fi
4303done
4304  done
4305IFS=$as_save_IFS
4306
4307fi
4308fi
4309ac_ct_CC=$ac_cv_prog_ac_ct_CC
4310if test -n "$ac_ct_CC"; then
4311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4312$as_echo "$ac_ct_CC" >&6; }
4313else
4314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315$as_echo "no" >&6; }
4316fi
4317
4318
4319  test -n "$ac_ct_CC" && break
4320done
4321
4322  if test "x$ac_ct_CC" = x; then
4323    CC=""
4324  else
4325    case $cross_compiling:$ac_tool_warned in
4326yes:)
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4329ac_tool_warned=yes ;;
4330esac
4331    CC=$ac_ct_CC
4332  fi
4333fi
4334
4335fi
4336
4337
4338test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4340as_fn_error $? "no acceptable C compiler found in \$PATH
4341See \`config.log' for more details" "$LINENO" 5; }
4342
4343# Provide some information about the compiler.
4344$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4345set X $ac_compile
4346ac_compiler=$2
4347for ac_option in --version -v -V -qversion; do
4348  { { ac_try="$ac_compiler $ac_option >&5"
4349case "(($ac_try" in
4350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351  *) ac_try_echo=$ac_try;;
4352esac
4353eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4354$as_echo "$ac_try_echo"; } >&5
4355  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4356  ac_status=$?
4357  if test -s conftest.err; then
4358    sed '10a\
4359... rest of stderr output deleted ...
4360         10q' conftest.err >conftest.er1
4361    cat conftest.er1 >&5
4362  fi
4363  rm -f conftest.er1 conftest.err
4364  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4365  test $ac_status = 0; }
4366done
4367
4368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369/* end confdefs.h.  */
4370
4371int
4372main ()
4373{
4374
4375  ;
4376  return 0;
4377}
4378_ACEOF
4379ac_clean_files_save=$ac_clean_files
4380ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4381# Try to create an executable without -o first, disregard a.out.
4382# It will help us diagnose broken compilers, and finding out an intuition
4383# of exeext.
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4385$as_echo_n "checking whether the C compiler works... " >&6; }
4386ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4387
4388# The possible output files:
4389ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4390
4391ac_rmfiles=
4392for ac_file in $ac_files
4393do
4394  case $ac_file in
4395    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4396    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4397  esac
4398done
4399rm -f $ac_rmfiles
4400
4401if { { ac_try="$ac_link_default"
4402case "(($ac_try" in
4403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404  *) ac_try_echo=$ac_try;;
4405esac
4406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407$as_echo "$ac_try_echo"; } >&5
4408  (eval "$ac_link_default") 2>&5
4409  ac_status=$?
4410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4411  test $ac_status = 0; }; then :
4412  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4413# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4414# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4415# so that the user can short-circuit this test for compilers unknown to
4416# Autoconf.
4417for ac_file in $ac_files ''
4418do
4419  test -f "$ac_file" || continue
4420  case $ac_file in
4421    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4422	;;
4423    [ab].out )
4424	# We found the default executable, but exeext='' is most
4425	# certainly right.
4426	break;;
4427    *.* )
4428	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4429	then :; else
4430	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4431	fi
4432	# We set ac_cv_exeext here because the later test for it is not
4433	# safe: cross compilers may not add the suffix if given an `-o'
4434	# argument, so we may need to know it at that point already.
4435	# Even if this section looks crufty: it has the advantage of
4436	# actually working.
4437	break;;
4438    * )
4439	break;;
4440  esac
4441done
4442test "$ac_cv_exeext" = no && ac_cv_exeext=
4443
4444else
4445  ac_file=''
4446fi
4447if test -z "$ac_file"; then :
4448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449$as_echo "no" >&6; }
4450$as_echo "$as_me: failed program was:" >&5
4451sed 's/^/| /' conftest.$ac_ext >&5
4452
4453{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4455as_fn_error 77 "C compiler cannot create executables
4456See \`config.log' for more details" "$LINENO" 5; }
4457else
4458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4459$as_echo "yes" >&6; }
4460fi
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4462$as_echo_n "checking for C compiler default output file name... " >&6; }
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4464$as_echo "$ac_file" >&6; }
4465ac_exeext=$ac_cv_exeext
4466
4467rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4468ac_clean_files=$ac_clean_files_save
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4470$as_echo_n "checking for suffix of executables... " >&6; }
4471if { { ac_try="$ac_link"
4472case "(($ac_try" in
4473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474  *) ac_try_echo=$ac_try;;
4475esac
4476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4477$as_echo "$ac_try_echo"; } >&5
4478  (eval "$ac_link") 2>&5
4479  ac_status=$?
4480  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4481  test $ac_status = 0; }; then :
4482  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4483# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4484# work properly (i.e., refer to `conftest.exe'), while it won't with
4485# `rm'.
4486for ac_file in conftest.exe conftest conftest.*; do
4487  test -f "$ac_file" || continue
4488  case $ac_file in
4489    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4490    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4491	  break;;
4492    * ) break;;
4493  esac
4494done
4495else
4496  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4498as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4499See \`config.log' for more details" "$LINENO" 5; }
4500fi
4501rm -f conftest conftest$ac_cv_exeext
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4503$as_echo "$ac_cv_exeext" >&6; }
4504
4505rm -f conftest.$ac_ext
4506EXEEXT=$ac_cv_exeext
4507ac_exeext=$EXEEXT
4508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509/* end confdefs.h.  */
4510#include <stdio.h>
4511int
4512main ()
4513{
4514FILE *f = fopen ("conftest.out", "w");
4515 return ferror (f) || fclose (f) != 0;
4516
4517  ;
4518  return 0;
4519}
4520_ACEOF
4521ac_clean_files="$ac_clean_files conftest.out"
4522# Check that the compiler produces executables we can run.  If not, either
4523# the compiler is broken, or we cross compile.
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4525$as_echo_n "checking whether we are cross compiling... " >&6; }
4526if test "$cross_compiling" != yes; then
4527  { { ac_try="$ac_link"
4528case "(($ac_try" in
4529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530  *) ac_try_echo=$ac_try;;
4531esac
4532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4533$as_echo "$ac_try_echo"; } >&5
4534  (eval "$ac_link") 2>&5
4535  ac_status=$?
4536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4537  test $ac_status = 0; }
4538  if { ac_try='./conftest$ac_cv_exeext'
4539  { { case "(($ac_try" in
4540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541  *) ac_try_echo=$ac_try;;
4542esac
4543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4544$as_echo "$ac_try_echo"; } >&5
4545  (eval "$ac_try") 2>&5
4546  ac_status=$?
4547  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4548  test $ac_status = 0; }; }; then
4549    cross_compiling=no
4550  else
4551    if test "$cross_compiling" = maybe; then
4552	cross_compiling=yes
4553    else
4554	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4556as_fn_error $? "cannot run C compiled programs.
4557If you meant to cross compile, use \`--host'.
4558See \`config.log' for more details" "$LINENO" 5; }
4559    fi
4560  fi
4561fi
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4563$as_echo "$cross_compiling" >&6; }
4564
4565rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4566ac_clean_files=$ac_clean_files_save
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4568$as_echo_n "checking for suffix of object files... " >&6; }
4569if ${ac_cv_objext+:} false; then :
4570  $as_echo_n "(cached) " >&6
4571else
4572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573/* end confdefs.h.  */
4574
4575int
4576main ()
4577{
4578
4579  ;
4580  return 0;
4581}
4582_ACEOF
4583rm -f conftest.o conftest.obj
4584if { { ac_try="$ac_compile"
4585case "(($ac_try" in
4586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587  *) ac_try_echo=$ac_try;;
4588esac
4589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4590$as_echo "$ac_try_echo"; } >&5
4591  (eval "$ac_compile") 2>&5
4592  ac_status=$?
4593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4594  test $ac_status = 0; }; then :
4595  for ac_file in conftest.o conftest.obj conftest.*; do
4596  test -f "$ac_file" || continue;
4597  case $ac_file in
4598    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4599    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4600       break;;
4601  esac
4602done
4603else
4604  $as_echo "$as_me: failed program was:" >&5
4605sed 's/^/| /' conftest.$ac_ext >&5
4606
4607{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4609as_fn_error $? "cannot compute suffix of object files: cannot compile
4610See \`config.log' for more details" "$LINENO" 5; }
4611fi
4612rm -f conftest.$ac_cv_objext conftest.$ac_ext
4613fi
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4615$as_echo "$ac_cv_objext" >&6; }
4616OBJEXT=$ac_cv_objext
4617ac_objext=$OBJEXT
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4619$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4620if ${ac_cv_c_compiler_gnu+:} false; then :
4621  $as_echo_n "(cached) " >&6
4622else
4623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624/* end confdefs.h.  */
4625
4626int
4627main ()
4628{
4629#ifndef __GNUC__
4630       choke me
4631#endif
4632
4633  ;
4634  return 0;
4635}
4636_ACEOF
4637if ac_fn_c_try_compile "$LINENO"; then :
4638  ac_compiler_gnu=yes
4639else
4640  ac_compiler_gnu=no
4641fi
4642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643ac_cv_c_compiler_gnu=$ac_compiler_gnu
4644
4645fi
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4647$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4648if test $ac_compiler_gnu = yes; then
4649  GCC=yes
4650else
4651  GCC=
4652fi
4653ac_test_CFLAGS=${CFLAGS+set}
4654ac_save_CFLAGS=$CFLAGS
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4656$as_echo_n "checking whether $CC accepts -g... " >&6; }
4657if ${ac_cv_prog_cc_g+:} false; then :
4658  $as_echo_n "(cached) " >&6
4659else
4660  ac_save_c_werror_flag=$ac_c_werror_flag
4661   ac_c_werror_flag=yes
4662   ac_cv_prog_cc_g=no
4663   CFLAGS="-g"
4664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665/* end confdefs.h.  */
4666
4667int
4668main ()
4669{
4670
4671  ;
4672  return 0;
4673}
4674_ACEOF
4675if ac_fn_c_try_compile "$LINENO"; then :
4676  ac_cv_prog_cc_g=yes
4677else
4678  CFLAGS=""
4679      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680/* end confdefs.h.  */
4681
4682int
4683main ()
4684{
4685
4686  ;
4687  return 0;
4688}
4689_ACEOF
4690if ac_fn_c_try_compile "$LINENO"; then :
4691
4692else
4693  ac_c_werror_flag=$ac_save_c_werror_flag
4694	 CFLAGS="-g"
4695	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696/* end confdefs.h.  */
4697
4698int
4699main ()
4700{
4701
4702  ;
4703  return 0;
4704}
4705_ACEOF
4706if ac_fn_c_try_compile "$LINENO"; then :
4707  ac_cv_prog_cc_g=yes
4708fi
4709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710fi
4711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712fi
4713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714   ac_c_werror_flag=$ac_save_c_werror_flag
4715fi
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4717$as_echo "$ac_cv_prog_cc_g" >&6; }
4718if test "$ac_test_CFLAGS" = set; then
4719  CFLAGS=$ac_save_CFLAGS
4720elif test $ac_cv_prog_cc_g = yes; then
4721  if test "$GCC" = yes; then
4722    CFLAGS="-g -O2"
4723  else
4724    CFLAGS="-g"
4725  fi
4726else
4727  if test "$GCC" = yes; then
4728    CFLAGS="-O2"
4729  else
4730    CFLAGS=
4731  fi
4732fi
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4734$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4735if ${ac_cv_prog_cc_c89+:} false; then :
4736  $as_echo_n "(cached) " >&6
4737else
4738  ac_cv_prog_cc_c89=no
4739ac_save_CC=$CC
4740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741/* end confdefs.h.  */
4742#include <stdarg.h>
4743#include <stdio.h>
4744struct stat;
4745/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4746struct buf { int x; };
4747FILE * (*rcsopen) (struct buf *, struct stat *, int);
4748static char *e (p, i)
4749     char **p;
4750     int i;
4751{
4752  return p[i];
4753}
4754static char *f (char * (*g) (char **, int), char **p, ...)
4755{
4756  char *s;
4757  va_list v;
4758  va_start (v,p);
4759  s = g (p, va_arg (v,int));
4760  va_end (v);
4761  return s;
4762}
4763
4764/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4765   function prototypes and stuff, but not '\xHH' hex character constants.
4766   These don't provoke an error unfortunately, instead are silently treated
4767   as 'x'.  The following induces an error, until -std is added to get
4768   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4769   array size at least.  It's necessary to write '\x00'==0 to get something
4770   that's true only with -std.  */
4771int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4772
4773/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4774   inside strings and character constants.  */
4775#define FOO(x) 'x'
4776int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4777
4778int test (int i, double x);
4779struct s1 {int (*f) (int a);};
4780struct s2 {int (*f) (double a);};
4781int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4782int argc;
4783char **argv;
4784int
4785main ()
4786{
4787return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4788  ;
4789  return 0;
4790}
4791_ACEOF
4792for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4793	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4794do
4795  CC="$ac_save_CC $ac_arg"
4796  if ac_fn_c_try_compile "$LINENO"; then :
4797  ac_cv_prog_cc_c89=$ac_arg
4798fi
4799rm -f core conftest.err conftest.$ac_objext
4800  test "x$ac_cv_prog_cc_c89" != "xno" && break
4801done
4802rm -f conftest.$ac_ext
4803CC=$ac_save_CC
4804
4805fi
4806# AC_CACHE_VAL
4807case "x$ac_cv_prog_cc_c89" in
4808  x)
4809    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4810$as_echo "none needed" >&6; } ;;
4811  xno)
4812    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4813$as_echo "unsupported" >&6; } ;;
4814  *)
4815    CC="$CC $ac_cv_prog_cc_c89"
4816    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4817$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4818esac
4819if test "x$ac_cv_prog_cc_c89" != xno; then :
4820
4821fi
4822
4823ac_ext=c
4824ac_cpp='$CPP $CPPFLAGS'
4825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4827ac_compiler_gnu=$ac_cv_c_compiler_gnu
4828
4829ac_ext=c
4830ac_cpp='$CPP $CPPFLAGS'
4831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4833ac_compiler_gnu=$ac_cv_c_compiler_gnu
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4835$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4836if ${am_cv_prog_cc_c_o+:} false; then :
4837  $as_echo_n "(cached) " >&6
4838else
4839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840/* end confdefs.h.  */
4841
4842int
4843main ()
4844{
4845
4846  ;
4847  return 0;
4848}
4849_ACEOF
4850  # Make sure it works both with $CC and with simple cc.
4851  # Following AC_PROG_CC_C_O, we do the test twice because some
4852  # compilers refuse to overwrite an existing .o file with -o,
4853  # though they will create one.
4854  am_cv_prog_cc_c_o=yes
4855  for am_i in 1 2; do
4856    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4857   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4858   ac_status=$?
4859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860   (exit $ac_status); } \
4861         && test -f conftest2.$ac_objext; then
4862      : OK
4863    else
4864      am_cv_prog_cc_c_o=no
4865      break
4866    fi
4867  done
4868  rm -f core conftest*
4869  unset am_i
4870fi
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4872$as_echo "$am_cv_prog_cc_c_o" >&6; }
4873if test "$am_cv_prog_cc_c_o" != yes; then
4874   # Losing compiler, so override with the script.
4875   # FIXME: It is wrong to rewrite CC.
4876   # But if we don't then we get into trouble of one sort or another.
4877   # A longer-term fix would be to have automake use am__CC in this case,
4878   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4879   CC="$am_aux_dir/compile $CC"
4880fi
4881ac_ext=c
4882ac_cpp='$CPP $CPPFLAGS'
4883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885ac_compiler_gnu=$ac_cv_c_compiler_gnu
4886
4887
4888depcc="$CC"   am_compiler_list=
4889
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4891$as_echo_n "checking dependency style of $depcc... " >&6; }
4892if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4893  $as_echo_n "(cached) " >&6
4894else
4895  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4896  # We make a subdir and do the tests there.  Otherwise we can end up
4897  # making bogus files that we don't know about and never remove.  For
4898  # instance it was reported that on HP-UX the gcc test will end up
4899  # making a dummy file named 'D' -- because '-MD' means "put the output
4900  # in D".
4901  rm -rf conftest.dir
4902  mkdir conftest.dir
4903  # Copy depcomp to subdir because otherwise we won't find it if we're
4904  # using a relative directory.
4905  cp "$am_depcomp" conftest.dir
4906  cd conftest.dir
4907  # We will build objects and dependencies in a subdirectory because
4908  # it helps to detect inapplicable dependency modes.  For instance
4909  # both Tru64's cc and ICC support -MD to output dependencies as a
4910  # side effect of compilation, but ICC will put the dependencies in
4911  # the current directory while Tru64 will put them in the object
4912  # directory.
4913  mkdir sub
4914
4915  am_cv_CC_dependencies_compiler_type=none
4916  if test "$am_compiler_list" = ""; then
4917     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4918  fi
4919  am__universal=false
4920  case " $depcc " in #(
4921     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4922     esac
4923
4924  for depmode in $am_compiler_list; do
4925    # Setup a source with many dependencies, because some compilers
4926    # like to wrap large dependency lists on column 80 (with \), and
4927    # we should not choose a depcomp mode which is confused by this.
4928    #
4929    # We need to recreate these files for each test, as the compiler may
4930    # overwrite some of them when testing with obscure command lines.
4931    # This happens at least with the AIX C compiler.
4932    : > sub/conftest.c
4933    for i in 1 2 3 4 5 6; do
4934      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4935      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4936      # Solaris 10 /bin/sh.
4937      echo '/* dummy */' > sub/conftst$i.h
4938    done
4939    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4940
4941    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4942    # mode.  It turns out that the SunPro C++ compiler does not properly
4943    # handle '-M -o', and we need to detect this.  Also, some Intel
4944    # versions had trouble with output in subdirs.
4945    am__obj=sub/conftest.${OBJEXT-o}
4946    am__minus_obj="-o $am__obj"
4947    case $depmode in
4948    gcc)
4949      # This depmode causes a compiler race in universal mode.
4950      test "$am__universal" = false || continue
4951      ;;
4952    nosideeffect)
4953      # After this tag, mechanisms are not by side-effect, so they'll
4954      # only be used when explicitly requested.
4955      if test "x$enable_dependency_tracking" = xyes; then
4956	continue
4957      else
4958	break
4959      fi
4960      ;;
4961    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4962      # This compiler won't grok '-c -o', but also, the minuso test has
4963      # not run yet.  These depmodes are late enough in the game, and
4964      # so weak that their functioning should not be impacted.
4965      am__obj=conftest.${OBJEXT-o}
4966      am__minus_obj=
4967      ;;
4968    none) break ;;
4969    esac
4970    if depmode=$depmode \
4971       source=sub/conftest.c object=$am__obj \
4972       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4973       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4974         >/dev/null 2>conftest.err &&
4975       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4976       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4977       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4978       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4979      # icc doesn't choke on unknown options, it will just issue warnings
4980      # or remarks (even with -Werror).  So we grep stderr for any message
4981      # that says an option was ignored or not supported.
4982      # When given -MP, icc 7.0 and 7.1 complain thusly:
4983      #   icc: Command line warning: ignoring option '-M'; no argument required
4984      # The diagnosis changed in icc 8.0:
4985      #   icc: Command line remark: option '-MP' not supported
4986      if (grep 'ignoring option' conftest.err ||
4987          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4988        am_cv_CC_dependencies_compiler_type=$depmode
4989        break
4990      fi
4991    fi
4992  done
4993
4994  cd ..
4995  rm -rf conftest.dir
4996else
4997  am_cv_CC_dependencies_compiler_type=none
4998fi
4999
5000fi
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5002$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5003CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5004
5005 if
5006  test "x$enable_dependency_tracking" != xno \
5007  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5008  am__fastdepCC_TRUE=
5009  am__fastdepCC_FALSE='#'
5010else
5011  am__fastdepCC_TRUE='#'
5012  am__fastdepCC_FALSE=
5013fi
5014
5015
5016
5017ac_ext=c
5018ac_cpp='$CPP $CPPFLAGS'
5019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5021ac_compiler_gnu=$ac_cv_c_compiler_gnu
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5023$as_echo_n "checking how to run the C preprocessor... " >&6; }
5024# On Suns, sometimes $CPP names a directory.
5025if test -n "$CPP" && test -d "$CPP"; then
5026  CPP=
5027fi
5028if test -z "$CPP"; then
5029  if ${ac_cv_prog_CPP+:} false; then :
5030  $as_echo_n "(cached) " >&6
5031else
5032      # Double quotes because CPP needs to be expanded
5033    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5034    do
5035      ac_preproc_ok=false
5036for ac_c_preproc_warn_flag in '' yes
5037do
5038  # Use a header file that comes with gcc, so configuring glibc
5039  # with a fresh cross-compiler works.
5040  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5041  # <limits.h> exists even on freestanding compilers.
5042  # On the NeXT, cc -E runs the code through the compiler's parser,
5043  # not just through cpp. "Syntax error" is here to catch this case.
5044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045/* end confdefs.h.  */
5046#ifdef __STDC__
5047# include <limits.h>
5048#else
5049# include <assert.h>
5050#endif
5051		     Syntax error
5052_ACEOF
5053if ac_fn_c_try_cpp "$LINENO"; then :
5054
5055else
5056  # Broken: fails on valid input.
5057continue
5058fi
5059rm -f conftest.err conftest.i conftest.$ac_ext
5060
5061  # OK, works on sane cases.  Now check whether nonexistent headers
5062  # can be detected and how.
5063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064/* end confdefs.h.  */
5065#include <ac_nonexistent.h>
5066_ACEOF
5067if ac_fn_c_try_cpp "$LINENO"; then :
5068  # Broken: success on invalid input.
5069continue
5070else
5071  # Passes both tests.
5072ac_preproc_ok=:
5073break
5074fi
5075rm -f conftest.err conftest.i conftest.$ac_ext
5076
5077done
5078# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5079rm -f conftest.i conftest.err conftest.$ac_ext
5080if $ac_preproc_ok; then :
5081  break
5082fi
5083
5084    done
5085    ac_cv_prog_CPP=$CPP
5086
5087fi
5088  CPP=$ac_cv_prog_CPP
5089else
5090  ac_cv_prog_CPP=$CPP
5091fi
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5093$as_echo "$CPP" >&6; }
5094ac_preproc_ok=false
5095for ac_c_preproc_warn_flag in '' yes
5096do
5097  # Use a header file that comes with gcc, so configuring glibc
5098  # with a fresh cross-compiler works.
5099  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5100  # <limits.h> exists even on freestanding compilers.
5101  # On the NeXT, cc -E runs the code through the compiler's parser,
5102  # not just through cpp. "Syntax error" is here to catch this case.
5103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104/* end confdefs.h.  */
5105#ifdef __STDC__
5106# include <limits.h>
5107#else
5108# include <assert.h>
5109#endif
5110		     Syntax error
5111_ACEOF
5112if ac_fn_c_try_cpp "$LINENO"; then :
5113
5114else
5115  # Broken: fails on valid input.
5116continue
5117fi
5118rm -f conftest.err conftest.i conftest.$ac_ext
5119
5120  # OK, works on sane cases.  Now check whether nonexistent headers
5121  # can be detected and how.
5122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123/* end confdefs.h.  */
5124#include <ac_nonexistent.h>
5125_ACEOF
5126if ac_fn_c_try_cpp "$LINENO"; then :
5127  # Broken: success on invalid input.
5128continue
5129else
5130  # Passes both tests.
5131ac_preproc_ok=:
5132break
5133fi
5134rm -f conftest.err conftest.i conftest.$ac_ext
5135
5136done
5137# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5138rm -f conftest.i conftest.err conftest.$ac_ext
5139if $ac_preproc_ok; then :
5140
5141else
5142  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5144as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5145See \`config.log' for more details" "$LINENO" 5; }
5146fi
5147
5148ac_ext=c
5149ac_cpp='$CPP $CPPFLAGS'
5150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152ac_compiler_gnu=$ac_cv_c_compiler_gnu
5153
5154
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5156$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5157if ${ac_cv_path_GREP+:} false; then :
5158  $as_echo_n "(cached) " >&6
5159else
5160  if test -z "$GREP"; then
5161  ac_path_GREP_found=false
5162  # Loop through the user's path and test for each of PROGNAME-LIST
5163  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5165do
5166  IFS=$as_save_IFS
5167  test -z "$as_dir" && as_dir=.
5168    for ac_prog in grep ggrep; do
5169    for ac_exec_ext in '' $ac_executable_extensions; do
5170      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5171      as_fn_executable_p "$ac_path_GREP" || continue
5172# Check for GNU ac_path_GREP and select it if it is found.
5173  # Check for GNU $ac_path_GREP
5174case `"$ac_path_GREP" --version 2>&1` in
5175*GNU*)
5176  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5177*)
5178  ac_count=0
5179  $as_echo_n 0123456789 >"conftest.in"
5180  while :
5181  do
5182    cat "conftest.in" "conftest.in" >"conftest.tmp"
5183    mv "conftest.tmp" "conftest.in"
5184    cp "conftest.in" "conftest.nl"
5185    $as_echo 'GREP' >> "conftest.nl"
5186    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5187    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5188    as_fn_arith $ac_count + 1 && ac_count=$as_val
5189    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5190      # Best one so far, save it but keep looking for a better one
5191      ac_cv_path_GREP="$ac_path_GREP"
5192      ac_path_GREP_max=$ac_count
5193    fi
5194    # 10*(2^10) chars as input seems more than enough
5195    test $ac_count -gt 10 && break
5196  done
5197  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5198esac
5199
5200      $ac_path_GREP_found && break 3
5201    done
5202  done
5203  done
5204IFS=$as_save_IFS
5205  if test -z "$ac_cv_path_GREP"; then
5206    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5207  fi
5208else
5209  ac_cv_path_GREP=$GREP
5210fi
5211
5212fi
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5214$as_echo "$ac_cv_path_GREP" >&6; }
5215 GREP="$ac_cv_path_GREP"
5216
5217
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5219$as_echo_n "checking for egrep... " >&6; }
5220if ${ac_cv_path_EGREP+:} false; then :
5221  $as_echo_n "(cached) " >&6
5222else
5223  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5224   then ac_cv_path_EGREP="$GREP -E"
5225   else
5226     if test -z "$EGREP"; then
5227  ac_path_EGREP_found=false
5228  # Loop through the user's path and test for each of PROGNAME-LIST
5229  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5231do
5232  IFS=$as_save_IFS
5233  test -z "$as_dir" && as_dir=.
5234    for ac_prog in egrep; do
5235    for ac_exec_ext in '' $ac_executable_extensions; do
5236      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5237      as_fn_executable_p "$ac_path_EGREP" || continue
5238# Check for GNU ac_path_EGREP and select it if it is found.
5239  # Check for GNU $ac_path_EGREP
5240case `"$ac_path_EGREP" --version 2>&1` in
5241*GNU*)
5242  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5243*)
5244  ac_count=0
5245  $as_echo_n 0123456789 >"conftest.in"
5246  while :
5247  do
5248    cat "conftest.in" "conftest.in" >"conftest.tmp"
5249    mv "conftest.tmp" "conftest.in"
5250    cp "conftest.in" "conftest.nl"
5251    $as_echo 'EGREP' >> "conftest.nl"
5252    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5253    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5254    as_fn_arith $ac_count + 1 && ac_count=$as_val
5255    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5256      # Best one so far, save it but keep looking for a better one
5257      ac_cv_path_EGREP="$ac_path_EGREP"
5258      ac_path_EGREP_max=$ac_count
5259    fi
5260    # 10*(2^10) chars as input seems more than enough
5261    test $ac_count -gt 10 && break
5262  done
5263  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5264esac
5265
5266      $ac_path_EGREP_found && break 3
5267    done
5268  done
5269  done
5270IFS=$as_save_IFS
5271  if test -z "$ac_cv_path_EGREP"; then
5272    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5273  fi
5274else
5275  ac_cv_path_EGREP=$EGREP
5276fi
5277
5278   fi
5279fi
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5281$as_echo "$ac_cv_path_EGREP" >&6; }
5282 EGREP="$ac_cv_path_EGREP"
5283
5284
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5286$as_echo_n "checking for ANSI C header files... " >&6; }
5287if ${ac_cv_header_stdc+:} false; then :
5288  $as_echo_n "(cached) " >&6
5289else
5290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291/* end confdefs.h.  */
5292#include <stdlib.h>
5293#include <stdarg.h>
5294#include <string.h>
5295#include <float.h>
5296
5297int
5298main ()
5299{
5300
5301  ;
5302  return 0;
5303}
5304_ACEOF
5305if ac_fn_c_try_compile "$LINENO"; then :
5306  ac_cv_header_stdc=yes
5307else
5308  ac_cv_header_stdc=no
5309fi
5310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311
5312if test $ac_cv_header_stdc = yes; then
5313  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315/* end confdefs.h.  */
5316#include <string.h>
5317
5318_ACEOF
5319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5320  $EGREP "memchr" >/dev/null 2>&1; then :
5321
5322else
5323  ac_cv_header_stdc=no
5324fi
5325rm -f conftest*
5326
5327fi
5328
5329if test $ac_cv_header_stdc = yes; then
5330  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332/* end confdefs.h.  */
5333#include <stdlib.h>
5334
5335_ACEOF
5336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5337  $EGREP "free" >/dev/null 2>&1; then :
5338
5339else
5340  ac_cv_header_stdc=no
5341fi
5342rm -f conftest*
5343
5344fi
5345
5346if test $ac_cv_header_stdc = yes; then
5347  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5348  if test "$cross_compiling" = yes; then :
5349  :
5350else
5351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352/* end confdefs.h.  */
5353#include <ctype.h>
5354#include <stdlib.h>
5355#if ((' ' & 0x0FF) == 0x020)
5356# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5357# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5358#else
5359# define ISLOWER(c) \
5360		   (('a' <= (c) && (c) <= 'i') \
5361		     || ('j' <= (c) && (c) <= 'r') \
5362		     || ('s' <= (c) && (c) <= 'z'))
5363# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5364#endif
5365
5366#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5367int
5368main ()
5369{
5370  int i;
5371  for (i = 0; i < 256; i++)
5372    if (XOR (islower (i), ISLOWER (i))
5373	|| toupper (i) != TOUPPER (i))
5374      return 2;
5375  return 0;
5376}
5377_ACEOF
5378if ac_fn_c_try_run "$LINENO"; then :
5379
5380else
5381  ac_cv_header_stdc=no
5382fi
5383rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5384  conftest.$ac_objext conftest.beam conftest.$ac_ext
5385fi
5386
5387fi
5388fi
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5390$as_echo "$ac_cv_header_stdc" >&6; }
5391if test $ac_cv_header_stdc = yes; then
5392
5393$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5394
5395fi
5396
5397# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5398for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5399		  inttypes.h stdint.h unistd.h
5400do :
5401  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5402ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5403"
5404if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5405  cat >>confdefs.h <<_ACEOF
5406#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5407_ACEOF
5408
5409fi
5410
5411done
5412
5413
5414
5415
5416
5417  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5418if test "x$ac_cv_header_minix_config_h" = xyes; then :
5419  MINIX=yes
5420else
5421  MINIX=
5422fi
5423
5424
5425  if test "$MINIX" = yes; then
5426
5427$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5428
5429
5430$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5431
5432
5433$as_echo "#define _MINIX 1" >>confdefs.h
5434
5435  fi
5436
5437        case "$host_os" in
5438    hpux*)
5439
5440$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5441
5442      ;;
5443  esac
5444
5445
5446  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5447$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5448if ${ac_cv_safe_to_define___extensions__+:} false; then :
5449  $as_echo_n "(cached) " >&6
5450else
5451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452/* end confdefs.h.  */
5453
5454#         define __EXTENSIONS__ 1
5455          $ac_includes_default
5456int
5457main ()
5458{
5459
5460  ;
5461  return 0;
5462}
5463_ACEOF
5464if ac_fn_c_try_compile "$LINENO"; then :
5465  ac_cv_safe_to_define___extensions__=yes
5466else
5467  ac_cv_safe_to_define___extensions__=no
5468fi
5469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470fi
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5472$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5473  test $ac_cv_safe_to_define___extensions__ = yes &&
5474    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5475
5476  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5477
5478  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5479
5480  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5481
5482  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5483
5484
5485
5486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5487$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5488if ${ac_cv_prog_cc_c89+:} false; then :
5489  $as_echo_n "(cached) " >&6
5490else
5491  ac_cv_prog_cc_c89=no
5492ac_save_CC=$CC
5493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494/* end confdefs.h.  */
5495#include <stdarg.h>
5496#include <stdio.h>
5497struct stat;
5498/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5499struct buf { int x; };
5500FILE * (*rcsopen) (struct buf *, struct stat *, int);
5501static char *e (p, i)
5502     char **p;
5503     int i;
5504{
5505  return p[i];
5506}
5507static char *f (char * (*g) (char **, int), char **p, ...)
5508{
5509  char *s;
5510  va_list v;
5511  va_start (v,p);
5512  s = g (p, va_arg (v,int));
5513  va_end (v);
5514  return s;
5515}
5516
5517/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5518   function prototypes and stuff, but not '\xHH' hex character constants.
5519   These don't provoke an error unfortunately, instead are silently treated
5520   as 'x'.  The following induces an error, until -std is added to get
5521   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5522   array size at least.  It's necessary to write '\x00'==0 to get something
5523   that's true only with -std.  */
5524int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5525
5526/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5527   inside strings and character constants.  */
5528#define FOO(x) 'x'
5529int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5530
5531int test (int i, double x);
5532struct s1 {int (*f) (int a);};
5533struct s2 {int (*f) (double a);};
5534int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5535int argc;
5536char **argv;
5537int
5538main ()
5539{
5540return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5541  ;
5542  return 0;
5543}
5544_ACEOF
5545for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5546	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5547do
5548  CC="$ac_save_CC $ac_arg"
5549  if ac_fn_c_try_compile "$LINENO"; then :
5550  ac_cv_prog_cc_c89=$ac_arg
5551fi
5552rm -f core conftest.err conftest.$ac_objext
5553  test "x$ac_cv_prog_cc_c89" != "xno" && break
5554done
5555rm -f conftest.$ac_ext
5556CC=$ac_save_CC
5557
5558fi
5559# AC_CACHE_VAL
5560case "x$ac_cv_prog_cc_c89" in
5561  x)
5562    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5563$as_echo "none needed" >&6; } ;;
5564  xno)
5565    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5566$as_echo "unsupported" >&6; } ;;
5567  *)
5568    CC="$CC $ac_cv_prog_cc_c89"
5569    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5570$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5571esac
5572if test "x$ac_cv_prog_cc_c89" != xno; then :
5573
5574fi
5575
5576
5577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5578$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5579if ${ac_cv_prog_cc_c99+:} false; then :
5580  $as_echo_n "(cached) " >&6
5581else
5582  ac_cv_prog_cc_c99=no
5583ac_save_CC=$CC
5584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585/* end confdefs.h.  */
5586#include <stdarg.h>
5587#include <stdbool.h>
5588#include <stdlib.h>
5589#include <wchar.h>
5590#include <stdio.h>
5591
5592// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5593#define debug(...) fprintf (stderr, __VA_ARGS__)
5594#define showlist(...) puts (#__VA_ARGS__)
5595#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5596static void
5597test_varargs_macros (void)
5598{
5599  int x = 1234;
5600  int y = 5678;
5601  debug ("Flag");
5602  debug ("X = %d\n", x);
5603  showlist (The first, second, and third items.);
5604  report (x>y, "x is %d but y is %d", x, y);
5605}
5606
5607// Check long long types.
5608#define BIG64 18446744073709551615ull
5609#define BIG32 4294967295ul
5610#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5611#if !BIG_OK
5612  your preprocessor is broken;
5613#endif
5614#if BIG_OK
5615#else
5616  your preprocessor is broken;
5617#endif
5618static long long int bignum = -9223372036854775807LL;
5619static unsigned long long int ubignum = BIG64;
5620
5621struct incomplete_array
5622{
5623  int datasize;
5624  double data[];
5625};
5626
5627struct named_init {
5628  int number;
5629  const wchar_t *name;
5630  double average;
5631};
5632
5633typedef const char *ccp;
5634
5635static inline int
5636test_restrict (ccp restrict text)
5637{
5638  // See if C++-style comments work.
5639  // Iterate through items via the restricted pointer.
5640  // Also check for declarations in for loops.
5641  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5642    continue;
5643  return 0;
5644}
5645
5646// Check varargs and va_copy.
5647static void
5648test_varargs (const char *format, ...)
5649{
5650  va_list args;
5651  va_start (args, format);
5652  va_list args_copy;
5653  va_copy (args_copy, args);
5654
5655  const char *str;
5656  int number;
5657  float fnumber;
5658
5659  while (*format)
5660    {
5661      switch (*format++)
5662	{
5663	case 's': // string
5664	  str = va_arg (args_copy, const char *);
5665	  break;
5666	case 'd': // int
5667	  number = va_arg (args_copy, int);
5668	  break;
5669	case 'f': // float
5670	  fnumber = va_arg (args_copy, double);
5671	  break;
5672	default:
5673	  break;
5674	}
5675    }
5676  va_end (args_copy);
5677  va_end (args);
5678}
5679
5680int
5681main ()
5682{
5683
5684  // Check bool.
5685  _Bool success = false;
5686
5687  // Check restrict.
5688  if (test_restrict ("String literal") == 0)
5689    success = true;
5690  char *restrict newvar = "Another string";
5691
5692  // Check varargs.
5693  test_varargs ("s, d' f .", "string", 65, 34.234);
5694  test_varargs_macros ();
5695
5696  // Check flexible array members.
5697  struct incomplete_array *ia =
5698    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5699  ia->datasize = 10;
5700  for (int i = 0; i < ia->datasize; ++i)
5701    ia->data[i] = i * 1.234;
5702
5703  // Check named initializers.
5704  struct named_init ni = {
5705    .number = 34,
5706    .name = L"Test wide string",
5707    .average = 543.34343,
5708  };
5709
5710  ni.number = 58;
5711
5712  int dynamic_array[ni.number];
5713  dynamic_array[ni.number - 1] = 543;
5714
5715  // work around unused variable warnings
5716  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5717	  || dynamic_array[ni.number - 1] != 543);
5718
5719  ;
5720  return 0;
5721}
5722_ACEOF
5723for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5724do
5725  CC="$ac_save_CC $ac_arg"
5726  if ac_fn_c_try_compile "$LINENO"; then :
5727  ac_cv_prog_cc_c99=$ac_arg
5728fi
5729rm -f core conftest.err conftest.$ac_objext
5730  test "x$ac_cv_prog_cc_c99" != "xno" && break
5731done
5732rm -f conftest.$ac_ext
5733CC=$ac_save_CC
5734
5735fi
5736# AC_CACHE_VAL
5737case "x$ac_cv_prog_cc_c99" in
5738  x)
5739    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5740$as_echo "none needed" >&6; } ;;
5741  xno)
5742    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5743$as_echo "unsupported" >&6; } ;;
5744  *)
5745    CC="$CC $ac_cv_prog_cc_c99"
5746    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5747$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5748esac
5749if test "x$ac_cv_prog_cc_c99" != xno; then :
5750
5751fi
5752
5753
5754
5755
5756
5757
5758ac_ext=c
5759ac_cpp='$CPP $CPPFLAGS'
5760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5762ac_compiler_gnu=$ac_cv_c_compiler_gnu
5763if test -n "$ac_tool_prefix"; then
5764  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5765set dummy ${ac_tool_prefix}gcc; ac_word=$2
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767$as_echo_n "checking for $ac_word... " >&6; }
5768if ${ac_cv_prog_CC+:} false; then :
5769  $as_echo_n "(cached) " >&6
5770else
5771  if test -n "$CC"; then
5772  ac_cv_prog_CC="$CC" # Let the user override the test.
5773else
5774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775for as_dir in $PATH
5776do
5777  IFS=$as_save_IFS
5778  test -z "$as_dir" && as_dir=.
5779    for ac_exec_ext in '' $ac_executable_extensions; do
5780  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783    break 2
5784  fi
5785done
5786  done
5787IFS=$as_save_IFS
5788
5789fi
5790fi
5791CC=$ac_cv_prog_CC
5792if test -n "$CC"; then
5793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5794$as_echo "$CC" >&6; }
5795else
5796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797$as_echo "no" >&6; }
5798fi
5799
5800
5801fi
5802if test -z "$ac_cv_prog_CC"; then
5803  ac_ct_CC=$CC
5804  # Extract the first word of "gcc", so it can be a program name with args.
5805set dummy gcc; ac_word=$2
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807$as_echo_n "checking for $ac_word... " >&6; }
5808if ${ac_cv_prog_ac_ct_CC+:} false; then :
5809  $as_echo_n "(cached) " >&6
5810else
5811  if test -n "$ac_ct_CC"; then
5812  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5813else
5814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815for as_dir in $PATH
5816do
5817  IFS=$as_save_IFS
5818  test -z "$as_dir" && as_dir=.
5819    for ac_exec_ext in '' $ac_executable_extensions; do
5820  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5821    ac_cv_prog_ac_ct_CC="gcc"
5822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5823    break 2
5824  fi
5825done
5826  done
5827IFS=$as_save_IFS
5828
5829fi
5830fi
5831ac_ct_CC=$ac_cv_prog_ac_ct_CC
5832if test -n "$ac_ct_CC"; then
5833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5834$as_echo "$ac_ct_CC" >&6; }
5835else
5836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837$as_echo "no" >&6; }
5838fi
5839
5840  if test "x$ac_ct_CC" = x; then
5841    CC=""
5842  else
5843    case $cross_compiling:$ac_tool_warned in
5844yes:)
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5847ac_tool_warned=yes ;;
5848esac
5849    CC=$ac_ct_CC
5850  fi
5851else
5852  CC="$ac_cv_prog_CC"
5853fi
5854
5855if test -z "$CC"; then
5856          if test -n "$ac_tool_prefix"; then
5857    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5858set dummy ${ac_tool_prefix}cc; ac_word=$2
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860$as_echo_n "checking for $ac_word... " >&6; }
5861if ${ac_cv_prog_CC+:} false; then :
5862  $as_echo_n "(cached) " >&6
5863else
5864  if test -n "$CC"; then
5865  ac_cv_prog_CC="$CC" # Let the user override the test.
5866else
5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870  IFS=$as_save_IFS
5871  test -z "$as_dir" && as_dir=.
5872    for ac_exec_ext in '' $ac_executable_extensions; do
5873  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874    ac_cv_prog_CC="${ac_tool_prefix}cc"
5875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876    break 2
5877  fi
5878done
5879  done
5880IFS=$as_save_IFS
5881
5882fi
5883fi
5884CC=$ac_cv_prog_CC
5885if test -n "$CC"; then
5886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5887$as_echo "$CC" >&6; }
5888else
5889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890$as_echo "no" >&6; }
5891fi
5892
5893
5894  fi
5895fi
5896if test -z "$CC"; then
5897  # Extract the first word of "cc", so it can be a program name with args.
5898set dummy cc; ac_word=$2
5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900$as_echo_n "checking for $ac_word... " >&6; }
5901if ${ac_cv_prog_CC+:} false; then :
5902  $as_echo_n "(cached) " >&6
5903else
5904  if test -n "$CC"; then
5905  ac_cv_prog_CC="$CC" # Let the user override the test.
5906else
5907  ac_prog_rejected=no
5908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909for as_dir in $PATH
5910do
5911  IFS=$as_save_IFS
5912  test -z "$as_dir" && as_dir=.
5913    for ac_exec_ext in '' $ac_executable_extensions; do
5914  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5915    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5916       ac_prog_rejected=yes
5917       continue
5918     fi
5919    ac_cv_prog_CC="cc"
5920    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921    break 2
5922  fi
5923done
5924  done
5925IFS=$as_save_IFS
5926
5927if test $ac_prog_rejected = yes; then
5928  # We found a bogon in the path, so make sure we never use it.
5929  set dummy $ac_cv_prog_CC
5930  shift
5931  if test $# != 0; then
5932    # We chose a different compiler from the bogus one.
5933    # However, it has the same basename, so the bogon will be chosen
5934    # first if we set CC to just the basename; use the full file name.
5935    shift
5936    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5937  fi
5938fi
5939fi
5940fi
5941CC=$ac_cv_prog_CC
5942if test -n "$CC"; then
5943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5944$as_echo "$CC" >&6; }
5945else
5946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947$as_echo "no" >&6; }
5948fi
5949
5950
5951fi
5952if test -z "$CC"; then
5953  if test -n "$ac_tool_prefix"; then
5954  for ac_prog in cl.exe
5955  do
5956    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5957set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959$as_echo_n "checking for $ac_word... " >&6; }
5960if ${ac_cv_prog_CC+:} false; then :
5961  $as_echo_n "(cached) " >&6
5962else
5963  if test -n "$CC"; then
5964  ac_cv_prog_CC="$CC" # Let the user override the test.
5965else
5966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967for as_dir in $PATH
5968do
5969  IFS=$as_save_IFS
5970  test -z "$as_dir" && as_dir=.
5971    for ac_exec_ext in '' $ac_executable_extensions; do
5972  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5973    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975    break 2
5976  fi
5977done
5978  done
5979IFS=$as_save_IFS
5980
5981fi
5982fi
5983CC=$ac_cv_prog_CC
5984if test -n "$CC"; then
5985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5986$as_echo "$CC" >&6; }
5987else
5988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989$as_echo "no" >&6; }
5990fi
5991
5992
5993    test -n "$CC" && break
5994  done
5995fi
5996if test -z "$CC"; then
5997  ac_ct_CC=$CC
5998  for ac_prog in cl.exe
5999do
6000  # Extract the first word of "$ac_prog", so it can be a program name with args.
6001set dummy $ac_prog; ac_word=$2
6002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003$as_echo_n "checking for $ac_word... " >&6; }
6004if ${ac_cv_prog_ac_ct_CC+:} false; then :
6005  $as_echo_n "(cached) " >&6
6006else
6007  if test -n "$ac_ct_CC"; then
6008  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6009else
6010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011for as_dir in $PATH
6012do
6013  IFS=$as_save_IFS
6014  test -z "$as_dir" && as_dir=.
6015    for ac_exec_ext in '' $ac_executable_extensions; do
6016  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6017    ac_cv_prog_ac_ct_CC="$ac_prog"
6018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019    break 2
6020  fi
6021done
6022  done
6023IFS=$as_save_IFS
6024
6025fi
6026fi
6027ac_ct_CC=$ac_cv_prog_ac_ct_CC
6028if test -n "$ac_ct_CC"; then
6029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6030$as_echo "$ac_ct_CC" >&6; }
6031else
6032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033$as_echo "no" >&6; }
6034fi
6035
6036
6037  test -n "$ac_ct_CC" && break
6038done
6039
6040  if test "x$ac_ct_CC" = x; then
6041    CC=""
6042  else
6043    case $cross_compiling:$ac_tool_warned in
6044yes:)
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6047ac_tool_warned=yes ;;
6048esac
6049    CC=$ac_ct_CC
6050  fi
6051fi
6052
6053fi
6054
6055
6056test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6058as_fn_error $? "no acceptable C compiler found in \$PATH
6059See \`config.log' for more details" "$LINENO" 5; }
6060
6061# Provide some information about the compiler.
6062$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6063set X $ac_compile
6064ac_compiler=$2
6065for ac_option in --version -v -V -qversion; do
6066  { { ac_try="$ac_compiler $ac_option >&5"
6067case "(($ac_try" in
6068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069  *) ac_try_echo=$ac_try;;
6070esac
6071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6072$as_echo "$ac_try_echo"; } >&5
6073  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6074  ac_status=$?
6075  if test -s conftest.err; then
6076    sed '10a\
6077... rest of stderr output deleted ...
6078         10q' conftest.err >conftest.er1
6079    cat conftest.er1 >&5
6080  fi
6081  rm -f conftest.er1 conftest.err
6082  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6083  test $ac_status = 0; }
6084done
6085
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6087$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6088if ${ac_cv_c_compiler_gnu+:} false; then :
6089  $as_echo_n "(cached) " >&6
6090else
6091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092/* end confdefs.h.  */
6093
6094int
6095main ()
6096{
6097#ifndef __GNUC__
6098       choke me
6099#endif
6100
6101  ;
6102  return 0;
6103}
6104_ACEOF
6105if ac_fn_c_try_compile "$LINENO"; then :
6106  ac_compiler_gnu=yes
6107else
6108  ac_compiler_gnu=no
6109fi
6110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111ac_cv_c_compiler_gnu=$ac_compiler_gnu
6112
6113fi
6114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6115$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6116if test $ac_compiler_gnu = yes; then
6117  GCC=yes
6118else
6119  GCC=
6120fi
6121ac_test_CFLAGS=${CFLAGS+set}
6122ac_save_CFLAGS=$CFLAGS
6123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6124$as_echo_n "checking whether $CC accepts -g... " >&6; }
6125if ${ac_cv_prog_cc_g+:} false; then :
6126  $as_echo_n "(cached) " >&6
6127else
6128  ac_save_c_werror_flag=$ac_c_werror_flag
6129   ac_c_werror_flag=yes
6130   ac_cv_prog_cc_g=no
6131   CFLAGS="-g"
6132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133/* end confdefs.h.  */
6134
6135int
6136main ()
6137{
6138
6139  ;
6140  return 0;
6141}
6142_ACEOF
6143if ac_fn_c_try_compile "$LINENO"; then :
6144  ac_cv_prog_cc_g=yes
6145else
6146  CFLAGS=""
6147      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148/* end confdefs.h.  */
6149
6150int
6151main ()
6152{
6153
6154  ;
6155  return 0;
6156}
6157_ACEOF
6158if ac_fn_c_try_compile "$LINENO"; then :
6159
6160else
6161  ac_c_werror_flag=$ac_save_c_werror_flag
6162	 CFLAGS="-g"
6163	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164/* end confdefs.h.  */
6165
6166int
6167main ()
6168{
6169
6170  ;
6171  return 0;
6172}
6173_ACEOF
6174if ac_fn_c_try_compile "$LINENO"; then :
6175  ac_cv_prog_cc_g=yes
6176fi
6177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178fi
6179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180fi
6181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182   ac_c_werror_flag=$ac_save_c_werror_flag
6183fi
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6185$as_echo "$ac_cv_prog_cc_g" >&6; }
6186if test "$ac_test_CFLAGS" = set; then
6187  CFLAGS=$ac_save_CFLAGS
6188elif test $ac_cv_prog_cc_g = yes; then
6189  if test "$GCC" = yes; then
6190    CFLAGS="-g -O2"
6191  else
6192    CFLAGS="-g"
6193  fi
6194else
6195  if test "$GCC" = yes; then
6196    CFLAGS="-O2"
6197  else
6198    CFLAGS=
6199  fi
6200fi
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6202$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6203if ${ac_cv_prog_cc_c89+:} false; then :
6204  $as_echo_n "(cached) " >&6
6205else
6206  ac_cv_prog_cc_c89=no
6207ac_save_CC=$CC
6208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209/* end confdefs.h.  */
6210#include <stdarg.h>
6211#include <stdio.h>
6212struct stat;
6213/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6214struct buf { int x; };
6215FILE * (*rcsopen) (struct buf *, struct stat *, int);
6216static char *e (p, i)
6217     char **p;
6218     int i;
6219{
6220  return p[i];
6221}
6222static char *f (char * (*g) (char **, int), char **p, ...)
6223{
6224  char *s;
6225  va_list v;
6226  va_start (v,p);
6227  s = g (p, va_arg (v,int));
6228  va_end (v);
6229  return s;
6230}
6231
6232/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6233   function prototypes and stuff, but not '\xHH' hex character constants.
6234   These don't provoke an error unfortunately, instead are silently treated
6235   as 'x'.  The following induces an error, until -std is added to get
6236   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6237   array size at least.  It's necessary to write '\x00'==0 to get something
6238   that's true only with -std.  */
6239int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6240
6241/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6242   inside strings and character constants.  */
6243#define FOO(x) 'x'
6244int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6245
6246int test (int i, double x);
6247struct s1 {int (*f) (int a);};
6248struct s2 {int (*f) (double a);};
6249int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6250int argc;
6251char **argv;
6252int
6253main ()
6254{
6255return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6256  ;
6257  return 0;
6258}
6259_ACEOF
6260for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6261	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6262do
6263  CC="$ac_save_CC $ac_arg"
6264  if ac_fn_c_try_compile "$LINENO"; then :
6265  ac_cv_prog_cc_c89=$ac_arg
6266fi
6267rm -f core conftest.err conftest.$ac_objext
6268  test "x$ac_cv_prog_cc_c89" != "xno" && break
6269done
6270rm -f conftest.$ac_ext
6271CC=$ac_save_CC
6272
6273fi
6274# AC_CACHE_VAL
6275case "x$ac_cv_prog_cc_c89" in
6276  x)
6277    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6278$as_echo "none needed" >&6; } ;;
6279  xno)
6280    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6281$as_echo "unsupported" >&6; } ;;
6282  *)
6283    CC="$CC $ac_cv_prog_cc_c89"
6284    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6285$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6286esac
6287if test "x$ac_cv_prog_cc_c89" != xno; then :
6288
6289fi
6290
6291ac_ext=c
6292ac_cpp='$CPP $CPPFLAGS'
6293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6295ac_compiler_gnu=$ac_cv_c_compiler_gnu
6296
6297ac_ext=c
6298ac_cpp='$CPP $CPPFLAGS'
6299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6301ac_compiler_gnu=$ac_cv_c_compiler_gnu
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6303$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6304if ${am_cv_prog_cc_c_o+:} false; then :
6305  $as_echo_n "(cached) " >&6
6306else
6307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308/* end confdefs.h.  */
6309
6310int
6311main ()
6312{
6313
6314  ;
6315  return 0;
6316}
6317_ACEOF
6318  # Make sure it works both with $CC and with simple cc.
6319  # Following AC_PROG_CC_C_O, we do the test twice because some
6320  # compilers refuse to overwrite an existing .o file with -o,
6321  # though they will create one.
6322  am_cv_prog_cc_c_o=yes
6323  for am_i in 1 2; do
6324    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6325   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6326   ac_status=$?
6327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328   (exit $ac_status); } \
6329         && test -f conftest2.$ac_objext; then
6330      : OK
6331    else
6332      am_cv_prog_cc_c_o=no
6333      break
6334    fi
6335  done
6336  rm -f core conftest*
6337  unset am_i
6338fi
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6340$as_echo "$am_cv_prog_cc_c_o" >&6; }
6341if test "$am_cv_prog_cc_c_o" != yes; then
6342   # Losing compiler, so override with the script.
6343   # FIXME: It is wrong to rewrite CC.
6344   # But if we don't then we get into trouble of one sort or another.
6345   # A longer-term fix would be to have automake use am__CC in this case,
6346   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6347   CC="$am_aux_dir/compile $CC"
6348fi
6349ac_ext=c
6350ac_cpp='$CPP $CPPFLAGS'
6351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6353ac_compiler_gnu=$ac_cv_c_compiler_gnu
6354
6355
6356depcc="$CC"   am_compiler_list=
6357
6358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6359$as_echo_n "checking dependency style of $depcc... " >&6; }
6360if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6361  $as_echo_n "(cached) " >&6
6362else
6363  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6364  # We make a subdir and do the tests there.  Otherwise we can end up
6365  # making bogus files that we don't know about and never remove.  For
6366  # instance it was reported that on HP-UX the gcc test will end up
6367  # making a dummy file named 'D' -- because '-MD' means "put the output
6368  # in D".
6369  rm -rf conftest.dir
6370  mkdir conftest.dir
6371  # Copy depcomp to subdir because otherwise we won't find it if we're
6372  # using a relative directory.
6373  cp "$am_depcomp" conftest.dir
6374  cd conftest.dir
6375  # We will build objects and dependencies in a subdirectory because
6376  # it helps to detect inapplicable dependency modes.  For instance
6377  # both Tru64's cc and ICC support -MD to output dependencies as a
6378  # side effect of compilation, but ICC will put the dependencies in
6379  # the current directory while Tru64 will put them in the object
6380  # directory.
6381  mkdir sub
6382
6383  am_cv_CC_dependencies_compiler_type=none
6384  if test "$am_compiler_list" = ""; then
6385     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6386  fi
6387  am__universal=false
6388  case " $depcc " in #(
6389     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6390     esac
6391
6392  for depmode in $am_compiler_list; do
6393    # Setup a source with many dependencies, because some compilers
6394    # like to wrap large dependency lists on column 80 (with \), and
6395    # we should not choose a depcomp mode which is confused by this.
6396    #
6397    # We need to recreate these files for each test, as the compiler may
6398    # overwrite some of them when testing with obscure command lines.
6399    # This happens at least with the AIX C compiler.
6400    : > sub/conftest.c
6401    for i in 1 2 3 4 5 6; do
6402      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6403      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6404      # Solaris 10 /bin/sh.
6405      echo '/* dummy */' > sub/conftst$i.h
6406    done
6407    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6408
6409    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6410    # mode.  It turns out that the SunPro C++ compiler does not properly
6411    # handle '-M -o', and we need to detect this.  Also, some Intel
6412    # versions had trouble with output in subdirs.
6413    am__obj=sub/conftest.${OBJEXT-o}
6414    am__minus_obj="-o $am__obj"
6415    case $depmode in
6416    gcc)
6417      # This depmode causes a compiler race in universal mode.
6418      test "$am__universal" = false || continue
6419      ;;
6420    nosideeffect)
6421      # After this tag, mechanisms are not by side-effect, so they'll
6422      # only be used when explicitly requested.
6423      if test "x$enable_dependency_tracking" = xyes; then
6424	continue
6425      else
6426	break
6427      fi
6428      ;;
6429    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6430      # This compiler won't grok '-c -o', but also, the minuso test has
6431      # not run yet.  These depmodes are late enough in the game, and
6432      # so weak that their functioning should not be impacted.
6433      am__obj=conftest.${OBJEXT-o}
6434      am__minus_obj=
6435      ;;
6436    none) break ;;
6437    esac
6438    if depmode=$depmode \
6439       source=sub/conftest.c object=$am__obj \
6440       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6441       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6442         >/dev/null 2>conftest.err &&
6443       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6444       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6445       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6446       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6447      # icc doesn't choke on unknown options, it will just issue warnings
6448      # or remarks (even with -Werror).  So we grep stderr for any message
6449      # that says an option was ignored or not supported.
6450      # When given -MP, icc 7.0 and 7.1 complain thusly:
6451      #   icc: Command line warning: ignoring option '-M'; no argument required
6452      # The diagnosis changed in icc 8.0:
6453      #   icc: Command line remark: option '-MP' not supported
6454      if (grep 'ignoring option' conftest.err ||
6455          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6456        am_cv_CC_dependencies_compiler_type=$depmode
6457        break
6458      fi
6459    fi
6460  done
6461
6462  cd ..
6463  rm -rf conftest.dir
6464else
6465  am_cv_CC_dependencies_compiler_type=none
6466fi
6467
6468fi
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6470$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6471CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6472
6473 if
6474  test "x$enable_dependency_tracking" != xno \
6475  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6476  am__fastdepCC_TRUE=
6477  am__fastdepCC_FALSE='#'
6478else
6479  am__fastdepCC_TRUE='#'
6480  am__fastdepCC_FALSE=
6481fi
6482
6483
6484# Ralf Wildenhues: With per-target flags we need CC_C_O
6485# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
6486
6487if test $ac_cv_c_compiler_gnu = yes; then
6488    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6489$as_echo_n "checking whether $CC needs -traditional... " >&6; }
6490if ${ac_cv_prog_gcc_traditional+:} false; then :
6491  $as_echo_n "(cached) " >&6
6492else
6493    ac_pattern="Autoconf.*'x'"
6494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495/* end confdefs.h.  */
6496#include <sgtty.h>
6497Autoconf TIOCGETP
6498_ACEOF
6499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6500  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6501  ac_cv_prog_gcc_traditional=yes
6502else
6503  ac_cv_prog_gcc_traditional=no
6504fi
6505rm -f conftest*
6506
6507
6508  if test $ac_cv_prog_gcc_traditional = no; then
6509    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510/* end confdefs.h.  */
6511#include <termio.h>
6512Autoconf TCGETA
6513_ACEOF
6514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6515  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6516  ac_cv_prog_gcc_traditional=yes
6517fi
6518rm -f conftest*
6519
6520  fi
6521fi
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6523$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6524  if test $ac_cv_prog_gcc_traditional = yes; then
6525    CC="$CC -traditional"
6526  fi
6527fi
6528
6529
6530
6531
6532
6533CFLAGS_NTP=
6534CPPFLAGS_NTP=
6535LDADD_NTP=
6536LDFLAGS_NTP=
6537
6538
6539
6540
6541
6542case "$ac_cv_prog_cc_c89" in
6543 no)
6544    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6545		 version 4.2.5 and higher." >&5
6546$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6547		 version 4.2.5 and higher." >&2;}
6548    ;;
6549esac
6550
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
6552$as_echo_n "checking if $CC can handle #warning... " >&6; }
6553if ${ntp_cv_cpp_warning+:} false; then :
6554  $as_echo_n "(cached) " >&6
6555else
6556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557/* end confdefs.h.  */
6558
6559int
6560main ()
6561{
6562#warning foo
6563  ;
6564  return 0;
6565}
6566_ACEOF
6567if ac_fn_c_try_compile "$LINENO"; then :
6568  ntp_cv_cpp_warning=yes
6569else
6570  ntp_cv_cpp_warning=no
6571
6572fi
6573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574
6575fi
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
6577$as_echo "$ntp_cv_cpp_warning" >&6; }
6578case "$ntp_cv_cpp_warning" in
6579 no)
6580
6581$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
6582
6583esac
6584
6585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
6586$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
6587if ${ntp_cv_cc_attribute+:} false; then :
6588  $as_echo_n "(cached) " >&6
6589else
6590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591/* end confdefs.h.  */
6592
6593int
6594main ()
6595{
6596void foo(void) __attribute__((__noreturn__));
6597
6598  ;
6599  return 0;
6600}
6601_ACEOF
6602if ac_fn_c_try_compile "$LINENO"; then :
6603  ntp_cv_cc_attribute=yes
6604else
6605  ntp_cv_cc_attribute=no
6606
6607fi
6608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609
6610fi
6611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
6612$as_echo "$ntp_cv_cc_attribute" >&6; }
6613case "$ntp_cv_cc_attribute" in
6614 yes)
6615
6616$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
6617
6618esac
6619
6620
6621case "$GCC" in
6622 yes)
6623    SAVED_CFLAGS="$CFLAGS"
6624    CFLAGS="$CFLAGS -Wstrict-overflow"
6625    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
6626$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
6627if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
6628  $as_echo_n "(cached) " >&6
6629else
6630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631/* end confdefs.h.  */
6632
6633int
6634main ()
6635{
6636
6637  ;
6638  return 0;
6639}
6640_ACEOF
6641if ac_fn_c_try_compile "$LINENO"; then :
6642  ntp_cv_gcc_Wstrict_overflow=yes
6643else
6644  ntp_cv_gcc_Wstrict_overflow=no
6645
6646fi
6647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648
6649fi
6650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
6651$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
6652    #
6653    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
6654    # flag to CFLAGS.
6655    #
6656    CFLAGS="$SAVED_CFLAGS -Winit-self"
6657    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
6658$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
6659if ${ntp_cv_gcc_Winit_self+:} false; then :
6660  $as_echo_n "(cached) " >&6
6661else
6662
6663	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664/* end confdefs.h.  */
6665
6666int
6667main ()
6668{
6669
6670  ;
6671  return 0;
6672}
6673_ACEOF
6674if ac_fn_c_try_compile "$LINENO"; then :
6675  ntp_cv_gcc_Winit_self=yes
6676else
6677  ntp_cv_gcc_Winit_self=no
6678
6679fi
6680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6681
6682
6683fi
6684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
6685$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
6686    CFLAGS="$SAVED_CFLAGS"
6687    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
6688    #
6689    # $ntp_cv_gcc_Winit_self is tested later to add the
6690    # flag to CFLAGS_NTP.
6691    #
6692    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
6693$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
6694if ${ntp_cv_gc_sections_runs+:} false; then :
6695  $as_echo_n "(cached) " >&6
6696else
6697
6698	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
6699	    CFLAGS="$CFLAGS -Wl,--gc-sections"
6700	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701/* end confdefs.h.  */
6702
6703			#include <stdlib.h>
6704			#include <stdio.h>
6705
6706int
6707main ()
6708{
6709
6710			FILE *	fpC;
6711			char	buf[32];
6712			size_t	cch;
6713			int	read_success_once;
6714
6715			fpC = fopen("conftest.c", "r");
6716			if (NULL == fpC)
6717				exit(1);
6718			do {
6719				cch = fread(buf, sizeof(buf), 1, fpC);
6720				read_success_once |= (0 != cch);
6721			} while (0 != cch);
6722			if (!read_success_once)
6723				exit(2);
6724			if (!feof(fpC))
6725				exit(3);
6726			if (0 != fclose(fpC))
6727				exit(4);
6728
6729			exit(EXIT_SUCCESS);
6730
6731
6732  ;
6733  return 0;
6734}
6735_ACEOF
6736if ac_fn_c_try_link "$LINENO"; then :
6737
6738		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
6739			ntp_cv_gc_sections_runs=no
6740		    else
6741			ntp_cv_gc_sections_runs=no
6742			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
6743		    fi
6744
6745else
6746  ntp_cv_gc_sections_runs=no
6747
6748fi
6749rm -f core conftest.err conftest.$ac_objext \
6750    conftest$ac_exeext conftest.$ac_ext
6751	    CFLAGS="$origCFLAGS"
6752	    { origCFLAGS=; unset origCFLAGS;}
6753
6754
6755fi
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
6757$as_echo "$ntp_cv_gc_sections_runs" >&6; }
6758    case "$ntp_cv_gc_sections_runs" in
6759     yes)
6760	LDADD_LIBNTP="-Wl,--gc-sections"
6761	CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
6762	;;
6763     no)
6764	LDADD_LIBNTP=
6765	;;
6766    esac
6767    CFLAGS_NTP="$CFLAGS_NTP -Wall"
6768    CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
6769    CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
6770    # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
6771    # CFLAGS_NTP="$CFLAGS_NTP -Werror"
6772    # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
6773    # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
6774    CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
6775    CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
6776    CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
6777    # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
6778    # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
6779    case "$ntp_cv_gcc_Winit_self" in
6780     yes)
6781	CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
6782    esac
6783    case "$ntp_cv_gcc_Wstrict_overflow" in
6784     yes)
6785	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
6786    esac
6787    # -W[no-]strict-prototypes might be added by NTP_OPENSSL
6788esac
6789
6790
6791    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
6792$as_echo_n "checking additional compiler flags... " >&6; }
6793    # allow ntp_os_cflags to be preset to skip this stuff
6794    case "${ntp_os_cflags+set}" in
6795     set)
6796	;;
6797     *)
6798	ntp_os_cflags=
6799	case "$host_os" in
6800	 aix[1-3]*)
6801	    ;;
6802	 aix4.[0-2]*)
6803	    # turn on additional headers
6804	    ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
6805	    ;;
6806	 aix5.3*)
6807	    # avoid circular dependencies in yp headers, and more
6808	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
6809	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
6810	    ;;
6811	 aix*)
6812	    # XXX Only verified thru AIX6.
6813	    # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
6814	    # avoid circular dependencies in yp headers
6815	    # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
6816	    # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
6817	    # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
6818	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
6819	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
6820	    ;;
6821	 amigaos)
6822	    ntp_os_cflags="-DSYS_AMIGA"
6823	    ;;
6824	 darwin*|macosx*|rhapsody*)
6825	    ntp_os_cflags="-D_P1003_1B_VISIBLE"
6826	    ;;
6827	 hpux10.*)		# at least for hppa2.0-hp-hpux10.20
6828	    case "$GCC" in
6829	     yes)
6830		;;
6831	     *)
6832		# use Ansi compiler on HPUX, and some -Wp magic
6833		ntp_os_cflags="-Ae -Wp,-H18816"
6834		;;
6835	    esac
6836	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6837	    ;;
6838	 hpux*)
6839	    case "$GCC" in
6840	     yes)
6841		;;
6842	     *)
6843		# use Ansi compiler on HPUX
6844		ntp_os_cflags="-Ae"
6845	    esac
6846	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6847	    ;;
6848	 irix6*)
6849	    case "$CC" in
6850	     cc)
6851		# do not use 64-bit compiler
6852		ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
6853	    esac
6854	    ;;
6855	 nextstep3)
6856	    ntp_os_cflags="-posix"
6857	    ;;
6858	 solaris1*|solaris2.[0-5]|solaris2.5.*)
6859	    ;;
6860	 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
6861	    ;;
6862	 solaris2*|sunos5*)
6863	    # turn on 64-bit file offset interface
6864	    ntp_os_cflags="-D_LARGEFILE64_SOURCE"
6865	    ;;
6866	 vxworks*)
6867	    case "$build" in
6868	     $host)
6869		;;
6870	     *)
6871		# Quick and dirty sanity check
6872		case "$VX_KERNEL" in
6873		 '')
6874		    as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
6875		esac
6876		ntp_os_cflags="-DSYS_VXWORKS"
6877	    esac
6878	    ;;
6879	esac
6880    esac
6881    case "$ntp_os_cflags" in
6882     '')
6883	ntp_os_cflags_msg="none needed"
6884	;;
6885     *)
6886	ntp_os_cflags_msg="$ntp_os_cflags"
6887    esac
6888    CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
6889    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
6890$as_echo "$ntp_os_cflags_msg" >&6; }
6891    { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
6892    ###
6893    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
6894$as_echo_n "checking additional linker flags... " >&6; }
6895    # HMS: The following might still need tweaking
6896    # allow ntp_os_ldflags to be preset to skip this stuff
6897    case "${ntp_os_ldflags+set}" in
6898     set)
6899	;;
6900     *)
6901	ntp_os_ldflags=
6902	case "$host_os" in
6903	 hpux*)
6904	    case "$GCC" in
6905	     yes)
6906		ntp_os_ldflags="-Wl,+allowdups"
6907		;;
6908	    esac
6909	    ;;
6910	esac
6911	;;
6912    esac
6913    case "$ntp_os_ldflags" in
6914     '')
6915	ntp_os_ldflags_msg="none needed"
6916	;;
6917     *)
6918	ntp_os_ldflags_msg="$ntp_os_ldflags"
6919    esac
6920    LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
6921    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
6922$as_echo "$ntp_os_ldflags_msg" >&6; }
6923    { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
6924
6925
6926
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6928$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6929if ${ac_cv_c_bigendian+:} false; then :
6930  $as_echo_n "(cached) " >&6
6931else
6932  ac_cv_c_bigendian=unknown
6933    # See if we're dealing with a universal compiler.
6934    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935/* end confdefs.h.  */
6936#ifndef __APPLE_CC__
6937	       not a universal capable compiler
6938	     #endif
6939	     typedef int dummy;
6940
6941_ACEOF
6942if ac_fn_c_try_compile "$LINENO"; then :
6943
6944	# Check for potential -arch flags.  It is not universal unless
6945	# there are at least two -arch flags with different values.
6946	ac_arch=
6947	ac_prev=
6948	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6949	 if test -n "$ac_prev"; then
6950	   case $ac_word in
6951	     i?86 | x86_64 | ppc | ppc64)
6952	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6953		 ac_arch=$ac_word
6954	       else
6955		 ac_cv_c_bigendian=universal
6956		 break
6957	       fi
6958	       ;;
6959	   esac
6960	   ac_prev=
6961	 elif test "x$ac_word" = "x-arch"; then
6962	   ac_prev=arch
6963	 fi
6964       done
6965fi
6966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6967    if test $ac_cv_c_bigendian = unknown; then
6968      # See if sys/param.h defines the BYTE_ORDER macro.
6969      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970/* end confdefs.h.  */
6971#include <sys/types.h>
6972	     #include <sys/param.h>
6973
6974int
6975main ()
6976{
6977#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6978		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6979		     && LITTLE_ENDIAN)
6980	      bogus endian macros
6981	     #endif
6982
6983  ;
6984  return 0;
6985}
6986_ACEOF
6987if ac_fn_c_try_compile "$LINENO"; then :
6988  # It does; now see whether it defined to BIG_ENDIAN or not.
6989	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990/* end confdefs.h.  */
6991#include <sys/types.h>
6992		#include <sys/param.h>
6993
6994int
6995main ()
6996{
6997#if BYTE_ORDER != BIG_ENDIAN
6998		 not big endian
6999		#endif
7000
7001  ;
7002  return 0;
7003}
7004_ACEOF
7005if ac_fn_c_try_compile "$LINENO"; then :
7006  ac_cv_c_bigendian=yes
7007else
7008  ac_cv_c_bigendian=no
7009fi
7010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7011fi
7012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013    fi
7014    if test $ac_cv_c_bigendian = unknown; then
7015      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7016      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017/* end confdefs.h.  */
7018#include <limits.h>
7019
7020int
7021main ()
7022{
7023#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7024	      bogus endian macros
7025	     #endif
7026
7027  ;
7028  return 0;
7029}
7030_ACEOF
7031if ac_fn_c_try_compile "$LINENO"; then :
7032  # It does; now see whether it defined to _BIG_ENDIAN or not.
7033	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034/* end confdefs.h.  */
7035#include <limits.h>
7036
7037int
7038main ()
7039{
7040#ifndef _BIG_ENDIAN
7041		 not big endian
7042		#endif
7043
7044  ;
7045  return 0;
7046}
7047_ACEOF
7048if ac_fn_c_try_compile "$LINENO"; then :
7049  ac_cv_c_bigendian=yes
7050else
7051  ac_cv_c_bigendian=no
7052fi
7053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7054fi
7055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7056    fi
7057    if test $ac_cv_c_bigendian = unknown; then
7058      # Compile a test program.
7059      if test "$cross_compiling" = yes; then :
7060  # Try to guess by grepping values from an object file.
7061	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062/* end confdefs.h.  */
7063short int ascii_mm[] =
7064		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7065		short int ascii_ii[] =
7066		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7067		int use_ascii (int i) {
7068		  return ascii_mm[i] + ascii_ii[i];
7069		}
7070		short int ebcdic_ii[] =
7071		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7072		short int ebcdic_mm[] =
7073		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7074		int use_ebcdic (int i) {
7075		  return ebcdic_mm[i] + ebcdic_ii[i];
7076		}
7077		extern int foo;
7078
7079int
7080main ()
7081{
7082return use_ascii (foo) == use_ebcdic (foo);
7083  ;
7084  return 0;
7085}
7086_ACEOF
7087if ac_fn_c_try_compile "$LINENO"; then :
7088  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7089	      ac_cv_c_bigendian=yes
7090	    fi
7091	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7092	      if test "$ac_cv_c_bigendian" = unknown; then
7093		ac_cv_c_bigendian=no
7094	      else
7095		# finding both strings is unlikely to happen, but who knows?
7096		ac_cv_c_bigendian=unknown
7097	      fi
7098	    fi
7099fi
7100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101else
7102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103/* end confdefs.h.  */
7104$ac_includes_default
7105int
7106main ()
7107{
7108
7109	     /* Are we little or big endian?  From Harbison&Steele.  */
7110	     union
7111	     {
7112	       long int l;
7113	       char c[sizeof (long int)];
7114	     } u;
7115	     u.l = 1;
7116	     return u.c[sizeof (long int) - 1] == 1;
7117
7118  ;
7119  return 0;
7120}
7121_ACEOF
7122if ac_fn_c_try_run "$LINENO"; then :
7123  ac_cv_c_bigendian=no
7124else
7125  ac_cv_c_bigendian=yes
7126fi
7127rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7128  conftest.$ac_objext conftest.beam conftest.$ac_ext
7129fi
7130
7131    fi
7132fi
7133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7134$as_echo "$ac_cv_c_bigendian" >&6; }
7135 case $ac_cv_c_bigendian in #(
7136   yes)
7137     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7138;; #(
7139   no)
7140      ;; #(
7141   universal)
7142
7143$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7144
7145     ;; #(
7146   *)
7147     as_fn_error $? "unknown endianness
7148 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7149 esac
7150
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7152$as_echo_n "checking for working volatile... " >&6; }
7153if ${ac_cv_c_volatile+:} false; then :
7154  $as_echo_n "(cached) " >&6
7155else
7156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157/* end confdefs.h.  */
7158
7159int
7160main ()
7161{
7162
7163volatile int x;
7164int * volatile y = (int *) 0;
7165return !x && !y;
7166  ;
7167  return 0;
7168}
7169_ACEOF
7170if ac_fn_c_try_compile "$LINENO"; then :
7171  ac_cv_c_volatile=yes
7172else
7173  ac_cv_c_volatile=no
7174fi
7175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176fi
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7178$as_echo "$ac_cv_c_volatile" >&6; }
7179if test $ac_cv_c_volatile = no; then
7180
7181$as_echo "#define volatile /**/" >>confdefs.h
7182
7183fi
7184
7185ac_ext=c
7186ac_cpp='$CPP $CPPFLAGS'
7187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7189ac_compiler_gnu=$ac_cv_c_compiler_gnu
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7191$as_echo_n "checking how to run the C preprocessor... " >&6; }
7192# On Suns, sometimes $CPP names a directory.
7193if test -n "$CPP" && test -d "$CPP"; then
7194  CPP=
7195fi
7196if test -z "$CPP"; then
7197  if ${ac_cv_prog_CPP+:} false; then :
7198  $as_echo_n "(cached) " >&6
7199else
7200      # Double quotes because CPP needs to be expanded
7201    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7202    do
7203      ac_preproc_ok=false
7204for ac_c_preproc_warn_flag in '' yes
7205do
7206  # Use a header file that comes with gcc, so configuring glibc
7207  # with a fresh cross-compiler works.
7208  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7209  # <limits.h> exists even on freestanding compilers.
7210  # On the NeXT, cc -E runs the code through the compiler's parser,
7211  # not just through cpp. "Syntax error" is here to catch this case.
7212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213/* end confdefs.h.  */
7214#ifdef __STDC__
7215# include <limits.h>
7216#else
7217# include <assert.h>
7218#endif
7219		     Syntax error
7220_ACEOF
7221if ac_fn_c_try_cpp "$LINENO"; then :
7222
7223else
7224  # Broken: fails on valid input.
7225continue
7226fi
7227rm -f conftest.err conftest.i conftest.$ac_ext
7228
7229  # OK, works on sane cases.  Now check whether nonexistent headers
7230  # can be detected and how.
7231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232/* end confdefs.h.  */
7233#include <ac_nonexistent.h>
7234_ACEOF
7235if ac_fn_c_try_cpp "$LINENO"; then :
7236  # Broken: success on invalid input.
7237continue
7238else
7239  # Passes both tests.
7240ac_preproc_ok=:
7241break
7242fi
7243rm -f conftest.err conftest.i conftest.$ac_ext
7244
7245done
7246# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7247rm -f conftest.i conftest.err conftest.$ac_ext
7248if $ac_preproc_ok; then :
7249  break
7250fi
7251
7252    done
7253    ac_cv_prog_CPP=$CPP
7254
7255fi
7256  CPP=$ac_cv_prog_CPP
7257else
7258  ac_cv_prog_CPP=$CPP
7259fi
7260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7261$as_echo "$CPP" >&6; }
7262ac_preproc_ok=false
7263for ac_c_preproc_warn_flag in '' yes
7264do
7265  # Use a header file that comes with gcc, so configuring glibc
7266  # with a fresh cross-compiler works.
7267  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7268  # <limits.h> exists even on freestanding compilers.
7269  # On the NeXT, cc -E runs the code through the compiler's parser,
7270  # not just through cpp. "Syntax error" is here to catch this case.
7271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272/* end confdefs.h.  */
7273#ifdef __STDC__
7274# include <limits.h>
7275#else
7276# include <assert.h>
7277#endif
7278		     Syntax error
7279_ACEOF
7280if ac_fn_c_try_cpp "$LINENO"; then :
7281
7282else
7283  # Broken: fails on valid input.
7284continue
7285fi
7286rm -f conftest.err conftest.i conftest.$ac_ext
7287
7288  # OK, works on sane cases.  Now check whether nonexistent headers
7289  # can be detected and how.
7290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291/* end confdefs.h.  */
7292#include <ac_nonexistent.h>
7293_ACEOF
7294if ac_fn_c_try_cpp "$LINENO"; then :
7295  # Broken: success on invalid input.
7296continue
7297else
7298  # Passes both tests.
7299ac_preproc_ok=:
7300break
7301fi
7302rm -f conftest.err conftest.i conftest.$ac_ext
7303
7304done
7305# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7306rm -f conftest.i conftest.err conftest.$ac_ext
7307if $ac_preproc_ok; then :
7308
7309else
7310  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7312as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7313See \`config.log' for more details" "$LINENO" 5; }
7314fi
7315
7316ac_ext=c
7317ac_cpp='$CPP $CPPFLAGS'
7318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7320ac_compiler_gnu=$ac_cv_c_compiler_gnu
7321
7322
7323
7324ac_ext=c
7325ac_cpp='$CPP $CPPFLAGS'
7326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7328ac_compiler_gnu=$ac_cv_c_compiler_gnu
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7330$as_echo_n "checking how to run the C preprocessor... " >&6; }
7331# On Suns, sometimes $CPP names a directory.
7332if test -n "$CPP" && test -d "$CPP"; then
7333  CPP=
7334fi
7335if test -z "$CPP"; then
7336  if ${ac_cv_prog_CPP+:} false; then :
7337  $as_echo_n "(cached) " >&6
7338else
7339      # Double quotes because CPP needs to be expanded
7340    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7341    do
7342      ac_preproc_ok=false
7343for ac_c_preproc_warn_flag in '' yes
7344do
7345  # Use a header file that comes with gcc, so configuring glibc
7346  # with a fresh cross-compiler works.
7347  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7348  # <limits.h> exists even on freestanding compilers.
7349  # On the NeXT, cc -E runs the code through the compiler's parser,
7350  # not just through cpp. "Syntax error" is here to catch this case.
7351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7352/* end confdefs.h.  */
7353#ifdef __STDC__
7354# include <limits.h>
7355#else
7356# include <assert.h>
7357#endif
7358		     Syntax error
7359_ACEOF
7360if ac_fn_c_try_cpp "$LINENO"; then :
7361
7362else
7363  # Broken: fails on valid input.
7364continue
7365fi
7366rm -f conftest.err conftest.i conftest.$ac_ext
7367
7368  # OK, works on sane cases.  Now check whether nonexistent headers
7369  # can be detected and how.
7370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371/* end confdefs.h.  */
7372#include <ac_nonexistent.h>
7373_ACEOF
7374if ac_fn_c_try_cpp "$LINENO"; then :
7375  # Broken: success on invalid input.
7376continue
7377else
7378  # Passes both tests.
7379ac_preproc_ok=:
7380break
7381fi
7382rm -f conftest.err conftest.i conftest.$ac_ext
7383
7384done
7385# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7386rm -f conftest.i conftest.err conftest.$ac_ext
7387if $ac_preproc_ok; then :
7388  break
7389fi
7390
7391    done
7392    ac_cv_prog_CPP=$CPP
7393
7394fi
7395  CPP=$ac_cv_prog_CPP
7396else
7397  ac_cv_prog_CPP=$CPP
7398fi
7399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7400$as_echo "$CPP" >&6; }
7401ac_preproc_ok=false
7402for ac_c_preproc_warn_flag in '' yes
7403do
7404  # Use a header file that comes with gcc, so configuring glibc
7405  # with a fresh cross-compiler works.
7406  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7407  # <limits.h> exists even on freestanding compilers.
7408  # On the NeXT, cc -E runs the code through the compiler's parser,
7409  # not just through cpp. "Syntax error" is here to catch this case.
7410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411/* end confdefs.h.  */
7412#ifdef __STDC__
7413# include <limits.h>
7414#else
7415# include <assert.h>
7416#endif
7417		     Syntax error
7418_ACEOF
7419if ac_fn_c_try_cpp "$LINENO"; then :
7420
7421else
7422  # Broken: fails on valid input.
7423continue
7424fi
7425rm -f conftest.err conftest.i conftest.$ac_ext
7426
7427  # OK, works on sane cases.  Now check whether nonexistent headers
7428  # can be detected and how.
7429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430/* end confdefs.h.  */
7431#include <ac_nonexistent.h>
7432_ACEOF
7433if ac_fn_c_try_cpp "$LINENO"; then :
7434  # Broken: success on invalid input.
7435continue
7436else
7437  # Passes both tests.
7438ac_preproc_ok=:
7439break
7440fi
7441rm -f conftest.err conftest.i conftest.$ac_ext
7442
7443done
7444# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7445rm -f conftest.i conftest.err conftest.$ac_ext
7446if $ac_preproc_ok; then :
7447
7448else
7449  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7451as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7452See \`config.log' for more details" "$LINENO" 5; }
7453fi
7454
7455ac_ext=c
7456ac_cpp='$CPP $CPPFLAGS'
7457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7459ac_compiler_gnu=$ac_cv_c_compiler_gnu
7460
7461# Do we need CXX for anything besides google test?
7462ac_ext=cpp
7463ac_cpp='$CXXCPP $CPPFLAGS'
7464ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7465ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7466ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7467if test -z "$CXX"; then
7468  if test -n "$CCC"; then
7469    CXX=$CCC
7470  else
7471    if test -n "$ac_tool_prefix"; then
7472  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7473  do
7474    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7475set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477$as_echo_n "checking for $ac_word... " >&6; }
7478if ${ac_cv_prog_CXX+:} false; then :
7479  $as_echo_n "(cached) " >&6
7480else
7481  if test -n "$CXX"; then
7482  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7483else
7484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485for as_dir in $PATH
7486do
7487  IFS=$as_save_IFS
7488  test -z "$as_dir" && as_dir=.
7489    for ac_exec_ext in '' $ac_executable_extensions; do
7490  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7491    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493    break 2
7494  fi
7495done
7496  done
7497IFS=$as_save_IFS
7498
7499fi
7500fi
7501CXX=$ac_cv_prog_CXX
7502if test -n "$CXX"; then
7503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7504$as_echo "$CXX" >&6; }
7505else
7506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507$as_echo "no" >&6; }
7508fi
7509
7510
7511    test -n "$CXX" && break
7512  done
7513fi
7514if test -z "$CXX"; then
7515  ac_ct_CXX=$CXX
7516  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7517do
7518  # Extract the first word of "$ac_prog", so it can be a program name with args.
7519set dummy $ac_prog; ac_word=$2
7520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7521$as_echo_n "checking for $ac_word... " >&6; }
7522if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7523  $as_echo_n "(cached) " >&6
7524else
7525  if test -n "$ac_ct_CXX"; then
7526  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7527else
7528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529for as_dir in $PATH
7530do
7531  IFS=$as_save_IFS
7532  test -z "$as_dir" && as_dir=.
7533    for ac_exec_ext in '' $ac_executable_extensions; do
7534  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7535    ac_cv_prog_ac_ct_CXX="$ac_prog"
7536    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7537    break 2
7538  fi
7539done
7540  done
7541IFS=$as_save_IFS
7542
7543fi
7544fi
7545ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7546if test -n "$ac_ct_CXX"; then
7547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7548$as_echo "$ac_ct_CXX" >&6; }
7549else
7550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551$as_echo "no" >&6; }
7552fi
7553
7554
7555  test -n "$ac_ct_CXX" && break
7556done
7557
7558  if test "x$ac_ct_CXX" = x; then
7559    CXX="g++"
7560  else
7561    case $cross_compiling:$ac_tool_warned in
7562yes:)
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7565ac_tool_warned=yes ;;
7566esac
7567    CXX=$ac_ct_CXX
7568  fi
7569fi
7570
7571  fi
7572fi
7573# Provide some information about the compiler.
7574$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7575set X $ac_compile
7576ac_compiler=$2
7577for ac_option in --version -v -V -qversion; do
7578  { { ac_try="$ac_compiler $ac_option >&5"
7579case "(($ac_try" in
7580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7581  *) ac_try_echo=$ac_try;;
7582esac
7583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7584$as_echo "$ac_try_echo"; } >&5
7585  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7586  ac_status=$?
7587  if test -s conftest.err; then
7588    sed '10a\
7589... rest of stderr output deleted ...
7590         10q' conftest.err >conftest.er1
7591    cat conftest.er1 >&5
7592  fi
7593  rm -f conftest.er1 conftest.err
7594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7595  test $ac_status = 0; }
7596done
7597
7598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7599$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7600if ${ac_cv_cxx_compiler_gnu+:} false; then :
7601  $as_echo_n "(cached) " >&6
7602else
7603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604/* end confdefs.h.  */
7605
7606int
7607main ()
7608{
7609#ifndef __GNUC__
7610       choke me
7611#endif
7612
7613  ;
7614  return 0;
7615}
7616_ACEOF
7617if ac_fn_cxx_try_compile "$LINENO"; then :
7618  ac_compiler_gnu=yes
7619else
7620  ac_compiler_gnu=no
7621fi
7622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7623ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7624
7625fi
7626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7627$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7628if test $ac_compiler_gnu = yes; then
7629  GXX=yes
7630else
7631  GXX=
7632fi
7633ac_test_CXXFLAGS=${CXXFLAGS+set}
7634ac_save_CXXFLAGS=$CXXFLAGS
7635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7636$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7637if ${ac_cv_prog_cxx_g+:} false; then :
7638  $as_echo_n "(cached) " >&6
7639else
7640  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7641   ac_cxx_werror_flag=yes
7642   ac_cv_prog_cxx_g=no
7643   CXXFLAGS="-g"
7644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645/* end confdefs.h.  */
7646
7647int
7648main ()
7649{
7650
7651  ;
7652  return 0;
7653}
7654_ACEOF
7655if ac_fn_cxx_try_compile "$LINENO"; then :
7656  ac_cv_prog_cxx_g=yes
7657else
7658  CXXFLAGS=""
7659      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660/* end confdefs.h.  */
7661
7662int
7663main ()
7664{
7665
7666  ;
7667  return 0;
7668}
7669_ACEOF
7670if ac_fn_cxx_try_compile "$LINENO"; then :
7671
7672else
7673  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7674	 CXXFLAGS="-g"
7675	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676/* end confdefs.h.  */
7677
7678int
7679main ()
7680{
7681
7682  ;
7683  return 0;
7684}
7685_ACEOF
7686if ac_fn_cxx_try_compile "$LINENO"; then :
7687  ac_cv_prog_cxx_g=yes
7688fi
7689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7690fi
7691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692fi
7693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7695fi
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7697$as_echo "$ac_cv_prog_cxx_g" >&6; }
7698if test "$ac_test_CXXFLAGS" = set; then
7699  CXXFLAGS=$ac_save_CXXFLAGS
7700elif test $ac_cv_prog_cxx_g = yes; then
7701  if test "$GXX" = yes; then
7702    CXXFLAGS="-g -O2"
7703  else
7704    CXXFLAGS="-g"
7705  fi
7706else
7707  if test "$GXX" = yes; then
7708    CXXFLAGS="-O2"
7709  else
7710    CXXFLAGS=
7711  fi
7712fi
7713ac_ext=c
7714ac_cpp='$CPP $CPPFLAGS'
7715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7717ac_compiler_gnu=$ac_cv_c_compiler_gnu
7718
7719depcc="$CXX"  am_compiler_list=
7720
7721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7722$as_echo_n "checking dependency style of $depcc... " >&6; }
7723if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7724  $as_echo_n "(cached) " >&6
7725else
7726  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7727  # We make a subdir and do the tests there.  Otherwise we can end up
7728  # making bogus files that we don't know about and never remove.  For
7729  # instance it was reported that on HP-UX the gcc test will end up
7730  # making a dummy file named 'D' -- because '-MD' means "put the output
7731  # in D".
7732  rm -rf conftest.dir
7733  mkdir conftest.dir
7734  # Copy depcomp to subdir because otherwise we won't find it if we're
7735  # using a relative directory.
7736  cp "$am_depcomp" conftest.dir
7737  cd conftest.dir
7738  # We will build objects and dependencies in a subdirectory because
7739  # it helps to detect inapplicable dependency modes.  For instance
7740  # both Tru64's cc and ICC support -MD to output dependencies as a
7741  # side effect of compilation, but ICC will put the dependencies in
7742  # the current directory while Tru64 will put them in the object
7743  # directory.
7744  mkdir sub
7745
7746  am_cv_CXX_dependencies_compiler_type=none
7747  if test "$am_compiler_list" = ""; then
7748     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7749  fi
7750  am__universal=false
7751  case " $depcc " in #(
7752     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7753     esac
7754
7755  for depmode in $am_compiler_list; do
7756    # Setup a source with many dependencies, because some compilers
7757    # like to wrap large dependency lists on column 80 (with \), and
7758    # we should not choose a depcomp mode which is confused by this.
7759    #
7760    # We need to recreate these files for each test, as the compiler may
7761    # overwrite some of them when testing with obscure command lines.
7762    # This happens at least with the AIX C compiler.
7763    : > sub/conftest.c
7764    for i in 1 2 3 4 5 6; do
7765      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7766      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7767      # Solaris 10 /bin/sh.
7768      echo '/* dummy */' > sub/conftst$i.h
7769    done
7770    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7771
7772    # We check with '-c' and '-o' for the sake of the "dashmstdout"
7773    # mode.  It turns out that the SunPro C++ compiler does not properly
7774    # handle '-M -o', and we need to detect this.  Also, some Intel
7775    # versions had trouble with output in subdirs.
7776    am__obj=sub/conftest.${OBJEXT-o}
7777    am__minus_obj="-o $am__obj"
7778    case $depmode in
7779    gcc)
7780      # This depmode causes a compiler race in universal mode.
7781      test "$am__universal" = false || continue
7782      ;;
7783    nosideeffect)
7784      # After this tag, mechanisms are not by side-effect, so they'll
7785      # only be used when explicitly requested.
7786      if test "x$enable_dependency_tracking" = xyes; then
7787	continue
7788      else
7789	break
7790      fi
7791      ;;
7792    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7793      # This compiler won't grok '-c -o', but also, the minuso test has
7794      # not run yet.  These depmodes are late enough in the game, and
7795      # so weak that their functioning should not be impacted.
7796      am__obj=conftest.${OBJEXT-o}
7797      am__minus_obj=
7798      ;;
7799    none) break ;;
7800    esac
7801    if depmode=$depmode \
7802       source=sub/conftest.c object=$am__obj \
7803       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7804       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7805         >/dev/null 2>conftest.err &&
7806       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7807       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7808       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7809       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7810      # icc doesn't choke on unknown options, it will just issue warnings
7811      # or remarks (even with -Werror).  So we grep stderr for any message
7812      # that says an option was ignored or not supported.
7813      # When given -MP, icc 7.0 and 7.1 complain thusly:
7814      #   icc: Command line warning: ignoring option '-M'; no argument required
7815      # The diagnosis changed in icc 8.0:
7816      #   icc: Command line remark: option '-MP' not supported
7817      if (grep 'ignoring option' conftest.err ||
7818          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7819        am_cv_CXX_dependencies_compiler_type=$depmode
7820        break
7821      fi
7822    fi
7823  done
7824
7825  cd ..
7826  rm -rf conftest.dir
7827else
7828  am_cv_CXX_dependencies_compiler_type=none
7829fi
7830
7831fi
7832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7833$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7834CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7835
7836 if
7837  test "x$enable_dependency_tracking" != xno \
7838  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7839  am__fastdepCXX_TRUE=
7840  am__fastdepCXX_FALSE='#'
7841else
7842  am__fastdepCXX_TRUE='#'
7843  am__fastdepCXX_FALSE=
7844fi
7845
7846
7847for ac_prog in 'bison -y' byacc
7848do
7849  # Extract the first word of "$ac_prog", so it can be a program name with args.
7850set dummy $ac_prog; ac_word=$2
7851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852$as_echo_n "checking for $ac_word... " >&6; }
7853if ${ac_cv_prog_YACC+:} false; then :
7854  $as_echo_n "(cached) " >&6
7855else
7856  if test -n "$YACC"; then
7857  ac_cv_prog_YACC="$YACC" # Let the user override the test.
7858else
7859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860for as_dir in $PATH
7861do
7862  IFS=$as_save_IFS
7863  test -z "$as_dir" && as_dir=.
7864    for ac_exec_ext in '' $ac_executable_extensions; do
7865  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7866    ac_cv_prog_YACC="$ac_prog"
7867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868    break 2
7869  fi
7870done
7871  done
7872IFS=$as_save_IFS
7873
7874fi
7875fi
7876YACC=$ac_cv_prog_YACC
7877if test -n "$YACC"; then
7878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7879$as_echo "$YACC" >&6; }
7880else
7881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882$as_echo "no" >&6; }
7883fi
7884
7885
7886  test -n "$YACC" && break
7887done
7888test -n "$YACC" || YACC="yacc"
7889
7890if test "x$CC" != xcc; then
7891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7892$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7893else
7894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7895$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7896fi
7897set dummy $CC; ac_cc=`$as_echo "$2" |
7898		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7899if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7900  $as_echo_n "(cached) " >&6
7901else
7902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903/* end confdefs.h.  */
7904
7905int
7906main ()
7907{
7908
7909  ;
7910  return 0;
7911}
7912_ACEOF
7913# Make sure it works both with $CC and with simple cc.
7914# We do the test twice because some compilers refuse to overwrite an
7915# existing .o file with -o, though they will create one.
7916ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7917rm -f conftest2.*
7918if { { case "(($ac_try" in
7919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7920  *) ac_try_echo=$ac_try;;
7921esac
7922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7923$as_echo "$ac_try_echo"; } >&5
7924  (eval "$ac_try") 2>&5
7925  ac_status=$?
7926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7927  test $ac_status = 0; } &&
7928   test -f conftest2.$ac_objext && { { case "(($ac_try" in
7929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7930  *) ac_try_echo=$ac_try;;
7931esac
7932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7933$as_echo "$ac_try_echo"; } >&5
7934  (eval "$ac_try") 2>&5
7935  ac_status=$?
7936  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7937  test $ac_status = 0; };
7938then
7939  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7940  if test "x$CC" != xcc; then
7941    # Test first that cc exists at all.
7942    if { ac_try='cc -c conftest.$ac_ext >&5'
7943  { { case "(($ac_try" in
7944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945  *) ac_try_echo=$ac_try;;
7946esac
7947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7948$as_echo "$ac_try_echo"; } >&5
7949  (eval "$ac_try") 2>&5
7950  ac_status=$?
7951  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7952  test $ac_status = 0; }; }; then
7953      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7954      rm -f conftest2.*
7955      if { { case "(($ac_try" in
7956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7957  *) ac_try_echo=$ac_try;;
7958esac
7959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7960$as_echo "$ac_try_echo"; } >&5
7961  (eval "$ac_try") 2>&5
7962  ac_status=$?
7963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7964  test $ac_status = 0; } &&
7965	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967  *) ac_try_echo=$ac_try;;
7968esac
7969eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7970$as_echo "$ac_try_echo"; } >&5
7971  (eval "$ac_try") 2>&5
7972  ac_status=$?
7973  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7974  test $ac_status = 0; };
7975      then
7976	# cc works too.
7977	:
7978      else
7979	# cc exists but doesn't like -o.
7980	eval ac_cv_prog_cc_${ac_cc}_c_o=no
7981      fi
7982    fi
7983  fi
7984else
7985  eval ac_cv_prog_cc_${ac_cc}_c_o=no
7986fi
7987rm -f core conftest*
7988
7989fi
7990if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7992$as_echo "yes" >&6; }
7993else
7994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995$as_echo "no" >&6; }
7996
7997$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7998
7999fi
8000
8001
8002	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
8003$as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }
8004
8005
8006	ac_ext=c
8007ac_cpp='$CPP $CPPFLAGS'
8008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8010ac_compiler_gnu=$ac_cv_c_compiler_gnu
8011
8012
8013		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014/* end confdefs.h.  */
8015
8016			struct foo_s {int i1; int i2;};
8017			int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }
8018
8019_ACEOF
8020if ac_fn_c_try_compile "$LINENO"; then :
8021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8022$as_echo "yes" >&6; }
8023else
8024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025$as_echo "no" >&6; }
8026
8027$as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
8028
8029fi
8030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031
8032	ac_ext=c
8033ac_cpp='$CPP $CPPFLAGS'
8034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8036ac_compiler_gnu=$ac_cv_c_compiler_gnu
8037
8038
8039
8040
8041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
8042$as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
8043ntp_vpath_hack="no"
8044case "$srcdir::${force_ntp_vpath_hack-no}" in
8045 .::*)
8046    ;; # VPATH_HACK path is for VPATH builds only.
8047 *::yes)
8048    ntp_vpath_hack="yes"
8049    ;;
8050 *::*)
8051    case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
8052     '')
8053	ntp_vpath_hack="yes"
8054    esac
8055esac
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
8057$as_echo "$ntp_vpath_hack" >&6; }
8058 if test x$ntp_vpath_hack = xyes; then
8059  VPATH_HACK_TRUE=
8060  VPATH_HACK_FALSE='#'
8061else
8062  VPATH_HACK_TRUE='#'
8063  VPATH_HACK_FALSE=
8064fi
8065
8066
8067
8068
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
8070$as_echo_n "checking for install dir and man conventions... " >&6; }
8071
8072
8073# Check whether --with-locfile was given.
8074if test "${with_locfile+set}" = set; then :
8075  withval=$with_locfile;
8076else
8077  with_locfile=no
8078
8079fi
8080
8081
8082(									\
8083    SENTINEL_DIR="$PWD" &&						\
8084    cd $srcdir/sntp &&							\
8085    case "$with_locfile" in						\
8086     yes|no|'')								\
8087	scripts/genLocInfo -d "$SENTINEL_DIR"				\
8088	;;								\
8089     *)									\
8090	scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile"	\
8091	;;								\
8092    esac								\
8093) > genLocInfo.i 2> genLocInfo.err
8094. ./genLocInfo.i
8095
8096case "$GENLOCINFO" in
8097 OK)
8098    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
8099$as_echo "in file $GENLOCINFOFILE" >&6; }
8100    rm genLocInfo.err genLocInfo.i
8101    ;;
8102 *)
8103    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
8104$as_echo "failed." >&6; }
8105    as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
8106    ;;
8107esac
8108
8109 if test "$CALC_TICKADJ_MS" ; then
8110  WANT_CALC_TICKADJ_MS_TRUE=
8111  WANT_CALC_TICKADJ_MS_FALSE='#'
8112else
8113  WANT_CALC_TICKADJ_MS_TRUE='#'
8114  WANT_CALC_TICKADJ_MS_FALSE=
8115fi
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159 if test -z "$NTPSWEEP_NI" ; then
8160  INSTALL_NTPSWEEP_TRUE=
8161  INSTALL_NTPSWEEP_FALSE='#'
8162else
8163  INSTALL_NTPSWEEP_TRUE='#'
8164  INSTALL_NTPSWEEP_FALSE=
8165fi
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207 if test -z "$UPDATE_LEAP_NI" ; then
8208  INSTALL_UPDATE_LEAP_TRUE=
8209  INSTALL_UPDATE_LEAP_FALSE='#'
8210else
8211  INSTALL_UPDATE_LEAP_TRUE='#'
8212  INSTALL_UPDATE_LEAP_FALSE=
8213fi
8214
8215
8216
8217if test -n "$ac_tool_prefix"; then
8218  for ac_prog in ar lib "link -lib"
8219  do
8220    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8221set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8223$as_echo_n "checking for $ac_word... " >&6; }
8224if ${ac_cv_prog_AR+:} false; then :
8225  $as_echo_n "(cached) " >&6
8226else
8227  if test -n "$AR"; then
8228  ac_cv_prog_AR="$AR" # Let the user override the test.
8229else
8230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231for as_dir in $PATH
8232do
8233  IFS=$as_save_IFS
8234  test -z "$as_dir" && as_dir=.
8235    for ac_exec_ext in '' $ac_executable_extensions; do
8236  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8237    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8239    break 2
8240  fi
8241done
8242  done
8243IFS=$as_save_IFS
8244
8245fi
8246fi
8247AR=$ac_cv_prog_AR
8248if test -n "$AR"; then
8249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8250$as_echo "$AR" >&6; }
8251else
8252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253$as_echo "no" >&6; }
8254fi
8255
8256
8257    test -n "$AR" && break
8258  done
8259fi
8260if test -z "$AR"; then
8261  ac_ct_AR=$AR
8262  for ac_prog in ar lib "link -lib"
8263do
8264  # Extract the first word of "$ac_prog", so it can be a program name with args.
8265set dummy $ac_prog; ac_word=$2
8266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267$as_echo_n "checking for $ac_word... " >&6; }
8268if ${ac_cv_prog_ac_ct_AR+:} false; then :
8269  $as_echo_n "(cached) " >&6
8270else
8271  if test -n "$ac_ct_AR"; then
8272  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8273else
8274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275for as_dir in $PATH
8276do
8277  IFS=$as_save_IFS
8278  test -z "$as_dir" && as_dir=.
8279    for ac_exec_ext in '' $ac_executable_extensions; do
8280  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8281    ac_cv_prog_ac_ct_AR="$ac_prog"
8282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8283    break 2
8284  fi
8285done
8286  done
8287IFS=$as_save_IFS
8288
8289fi
8290fi
8291ac_ct_AR=$ac_cv_prog_ac_ct_AR
8292if test -n "$ac_ct_AR"; then
8293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8294$as_echo "$ac_ct_AR" >&6; }
8295else
8296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297$as_echo "no" >&6; }
8298fi
8299
8300
8301  test -n "$ac_ct_AR" && break
8302done
8303
8304  if test "x$ac_ct_AR" = x; then
8305    AR="false"
8306  else
8307    case $cross_compiling:$ac_tool_warned in
8308yes:)
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8311ac_tool_warned=yes ;;
8312esac
8313    AR=$ac_ct_AR
8314  fi
8315fi
8316
8317: ${AR=ar}
8318
8319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
8320$as_echo_n "checking the archiver ($AR) interface... " >&6; }
8321if ${am_cv_ar_interface+:} false; then :
8322  $as_echo_n "(cached) " >&6
8323else
8324  ac_ext=c
8325ac_cpp='$CPP $CPPFLAGS'
8326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8328ac_compiler_gnu=$ac_cv_c_compiler_gnu
8329
8330   am_cv_ar_interface=ar
8331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8332/* end confdefs.h.  */
8333int some_variable = 0;
8334_ACEOF
8335if ac_fn_c_try_compile "$LINENO"; then :
8336  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
8337      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8338  (eval $am_ar_try) 2>&5
8339  ac_status=$?
8340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8341  test $ac_status = 0; }
8342      if test "$ac_status" -eq 0; then
8343        am_cv_ar_interface=ar
8344      else
8345        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
8346        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8347  (eval $am_ar_try) 2>&5
8348  ac_status=$?
8349  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8350  test $ac_status = 0; }
8351        if test "$ac_status" -eq 0; then
8352          am_cv_ar_interface=lib
8353        else
8354          am_cv_ar_interface=unknown
8355        fi
8356      fi
8357      rm -f conftest.lib libconftest.a
8358
8359fi
8360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8361   ac_ext=c
8362ac_cpp='$CPP $CPPFLAGS'
8363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8365ac_compiler_gnu=$ac_cv_c_compiler_gnu
8366
8367fi
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
8369$as_echo "$am_cv_ar_interface" >&6; }
8370
8371case $am_cv_ar_interface in
8372ar)
8373  ;;
8374lib)
8375  # Microsoft lib, so override with the ar-lib wrapper script.
8376  # FIXME: It is wrong to rewrite AR.
8377  # But if we don't then we get into trouble of one sort or another.
8378  # A longer-term fix would be to have automake use am__AR in this case,
8379  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
8380  # similar.
8381  AR="$am_aux_dir/ar-lib $AR"
8382  ;;
8383unknown)
8384  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
8385  ;;
8386esac
8387
8388
8389
8390# So far, the only shared library we might use is libopts.
8391# It's a small library - we might as well use a static version of it.
8392# Check whether --enable-shared was given.
8393if test "${enable_shared+set}" = set; then :
8394  enableval=$enable_shared; p=${PACKAGE-default}
8395    case $enableval in
8396    yes) enable_shared=yes ;;
8397    no) enable_shared=no ;;
8398    *)
8399      enable_shared=no
8400      # Look at the argument we got.  We use all the common list separators.
8401      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8402      for pkg in $enableval; do
8403	IFS="$lt_save_ifs"
8404	if test "X$pkg" = "X$p"; then
8405	  enable_shared=yes
8406	fi
8407      done
8408      IFS="$lt_save_ifs"
8409      ;;
8410    esac
8411else
8412  enable_shared=no
8413fi
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423case `pwd` in
8424  *\ * | *\	*)
8425    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8426$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8427esac
8428
8429
8430
8431macro_version='2.4.2'
8432macro_revision='1.3337'
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446ltmain="$ac_aux_dir/ltmain.sh"
8447
8448# Backslashify metacharacters that are still active within
8449# double-quoted strings.
8450sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8451
8452# Same as above, but do not quote variable references.
8453double_quote_subst='s/\(["`\\]\)/\\\1/g'
8454
8455# Sed substitution to delay expansion of an escaped shell variable in a
8456# double_quote_subst'ed string.
8457delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8458
8459# Sed substitution to delay expansion of an escaped single quote.
8460delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8461
8462# Sed substitution to avoid accidental globbing in evaled expressions
8463no_glob_subst='s/\*/\\\*/g'
8464
8465ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8466ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8467ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8468
8469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8470$as_echo_n "checking how to print strings... " >&6; }
8471# Test print first, because it will be a builtin if present.
8472if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8473   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8474  ECHO='print -r --'
8475elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8476  ECHO='printf %s\n'
8477else
8478  # Use this function as a fallback that always works.
8479  func_fallback_echo ()
8480  {
8481    eval 'cat <<_LTECHO_EOF
8482$1
8483_LTECHO_EOF'
8484  }
8485  ECHO='func_fallback_echo'
8486fi
8487
8488# func_echo_all arg...
8489# Invoke $ECHO with all args, space-separated.
8490func_echo_all ()
8491{
8492    $ECHO ""
8493}
8494
8495case "$ECHO" in
8496  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8497$as_echo "printf" >&6; } ;;
8498  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8499$as_echo "print -r" >&6; } ;;
8500  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8501$as_echo "cat" >&6; } ;;
8502esac
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8518$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8519if ${ac_cv_path_SED+:} false; then :
8520  $as_echo_n "(cached) " >&6
8521else
8522            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8523     for ac_i in 1 2 3 4 5 6 7; do
8524       ac_script="$ac_script$as_nl$ac_script"
8525     done
8526     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8527     { ac_script=; unset ac_script;}
8528     if test -z "$SED"; then
8529  ac_path_SED_found=false
8530  # Loop through the user's path and test for each of PROGNAME-LIST
8531  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8532for as_dir in $PATH
8533do
8534  IFS=$as_save_IFS
8535  test -z "$as_dir" && as_dir=.
8536    for ac_prog in sed gsed; do
8537    for ac_exec_ext in '' $ac_executable_extensions; do
8538      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8539      as_fn_executable_p "$ac_path_SED" || continue
8540# Check for GNU ac_path_SED and select it if it is found.
8541  # Check for GNU $ac_path_SED
8542case `"$ac_path_SED" --version 2>&1` in
8543*GNU*)
8544  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8545*)
8546  ac_count=0
8547  $as_echo_n 0123456789 >"conftest.in"
8548  while :
8549  do
8550    cat "conftest.in" "conftest.in" >"conftest.tmp"
8551    mv "conftest.tmp" "conftest.in"
8552    cp "conftest.in" "conftest.nl"
8553    $as_echo '' >> "conftest.nl"
8554    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8555    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8556    as_fn_arith $ac_count + 1 && ac_count=$as_val
8557    if test $ac_count -gt ${ac_path_SED_max-0}; then
8558      # Best one so far, save it but keep looking for a better one
8559      ac_cv_path_SED="$ac_path_SED"
8560      ac_path_SED_max=$ac_count
8561    fi
8562    # 10*(2^10) chars as input seems more than enough
8563    test $ac_count -gt 10 && break
8564  done
8565  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8566esac
8567
8568      $ac_path_SED_found && break 3
8569    done
8570  done
8571  done
8572IFS=$as_save_IFS
8573  if test -z "$ac_cv_path_SED"; then
8574    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8575  fi
8576else
8577  ac_cv_path_SED=$SED
8578fi
8579
8580fi
8581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8582$as_echo "$ac_cv_path_SED" >&6; }
8583 SED="$ac_cv_path_SED"
8584  rm -f conftest.sed
8585
8586test -z "$SED" && SED=sed
8587Xsed="$SED -e 1s/^X//"
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8600$as_echo_n "checking for fgrep... " >&6; }
8601if ${ac_cv_path_FGREP+:} false; then :
8602  $as_echo_n "(cached) " >&6
8603else
8604  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8605   then ac_cv_path_FGREP="$GREP -F"
8606   else
8607     if test -z "$FGREP"; then
8608  ac_path_FGREP_found=false
8609  # Loop through the user's path and test for each of PROGNAME-LIST
8610  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8612do
8613  IFS=$as_save_IFS
8614  test -z "$as_dir" && as_dir=.
8615    for ac_prog in fgrep; do
8616    for ac_exec_ext in '' $ac_executable_extensions; do
8617      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8618      as_fn_executable_p "$ac_path_FGREP" || continue
8619# Check for GNU ac_path_FGREP and select it if it is found.
8620  # Check for GNU $ac_path_FGREP
8621case `"$ac_path_FGREP" --version 2>&1` in
8622*GNU*)
8623  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8624*)
8625  ac_count=0
8626  $as_echo_n 0123456789 >"conftest.in"
8627  while :
8628  do
8629    cat "conftest.in" "conftest.in" >"conftest.tmp"
8630    mv "conftest.tmp" "conftest.in"
8631    cp "conftest.in" "conftest.nl"
8632    $as_echo 'FGREP' >> "conftest.nl"
8633    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8634    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8635    as_fn_arith $ac_count + 1 && ac_count=$as_val
8636    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8637      # Best one so far, save it but keep looking for a better one
8638      ac_cv_path_FGREP="$ac_path_FGREP"
8639      ac_path_FGREP_max=$ac_count
8640    fi
8641    # 10*(2^10) chars as input seems more than enough
8642    test $ac_count -gt 10 && break
8643  done
8644  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8645esac
8646
8647      $ac_path_FGREP_found && break 3
8648    done
8649  done
8650  done
8651IFS=$as_save_IFS
8652  if test -z "$ac_cv_path_FGREP"; then
8653    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8654  fi
8655else
8656  ac_cv_path_FGREP=$FGREP
8657fi
8658
8659   fi
8660fi
8661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8662$as_echo "$ac_cv_path_FGREP" >&6; }
8663 FGREP="$ac_cv_path_FGREP"
8664
8665
8666test -z "$GREP" && GREP=grep
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686# Check whether --with-gnu-ld was given.
8687if test "${with_gnu_ld+set}" = set; then :
8688  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8689else
8690  with_gnu_ld=no
8691fi
8692
8693ac_prog=ld
8694if test "$GCC" = yes; then
8695  # Check if gcc -print-prog-name=ld gives a path.
8696  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8697$as_echo_n "checking for ld used by $CC... " >&6; }
8698  case $host in
8699  *-*-mingw*)
8700    # gcc leaves a trailing carriage return which upsets mingw
8701    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8702  *)
8703    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8704  esac
8705  case $ac_prog in
8706    # Accept absolute paths.
8707    [\\/]* | ?:[\\/]*)
8708      re_direlt='/[^/][^/]*/\.\./'
8709      # Canonicalize the pathname of ld
8710      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8711      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8712	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8713      done
8714      test -z "$LD" && LD="$ac_prog"
8715      ;;
8716  "")
8717    # If it fails, then pretend we aren't using GCC.
8718    ac_prog=ld
8719    ;;
8720  *)
8721    # If it is relative, then search for the first ld in PATH.
8722    with_gnu_ld=unknown
8723    ;;
8724  esac
8725elif test "$with_gnu_ld" = yes; then
8726  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8727$as_echo_n "checking for GNU ld... " >&6; }
8728else
8729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8730$as_echo_n "checking for non-GNU ld... " >&6; }
8731fi
8732if ${lt_cv_path_LD+:} false; then :
8733  $as_echo_n "(cached) " >&6
8734else
8735  if test -z "$LD"; then
8736  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8737  for ac_dir in $PATH; do
8738    IFS="$lt_save_ifs"
8739    test -z "$ac_dir" && ac_dir=.
8740    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8741      lt_cv_path_LD="$ac_dir/$ac_prog"
8742      # Check to see if the program is GNU ld.  I'd rather use --version,
8743      # but apparently some variants of GNU ld only accept -v.
8744      # Break only if it was the GNU/non-GNU ld that we prefer.
8745      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8746      *GNU* | *'with BFD'*)
8747	test "$with_gnu_ld" != no && break
8748	;;
8749      *)
8750	test "$with_gnu_ld" != yes && break
8751	;;
8752      esac
8753    fi
8754  done
8755  IFS="$lt_save_ifs"
8756else
8757  lt_cv_path_LD="$LD" # Let the user override the test with a path.
8758fi
8759fi
8760
8761LD="$lt_cv_path_LD"
8762if test -n "$LD"; then
8763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8764$as_echo "$LD" >&6; }
8765else
8766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767$as_echo "no" >&6; }
8768fi
8769test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8771$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8772if ${lt_cv_prog_gnu_ld+:} false; then :
8773  $as_echo_n "(cached) " >&6
8774else
8775  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8776case `$LD -v 2>&1 </dev/null` in
8777*GNU* | *'with BFD'*)
8778  lt_cv_prog_gnu_ld=yes
8779  ;;
8780*)
8781  lt_cv_prog_gnu_ld=no
8782  ;;
8783esac
8784fi
8785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8786$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8787with_gnu_ld=$lt_cv_prog_gnu_ld
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8798$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8799if ${lt_cv_path_NM+:} false; then :
8800  $as_echo_n "(cached) " >&6
8801else
8802  if test -n "$NM"; then
8803  # Let the user override the test.
8804  lt_cv_path_NM="$NM"
8805else
8806  lt_nm_to_check="${ac_tool_prefix}nm"
8807  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8808    lt_nm_to_check="$lt_nm_to_check nm"
8809  fi
8810  for lt_tmp_nm in $lt_nm_to_check; do
8811    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8812    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8813      IFS="$lt_save_ifs"
8814      test -z "$ac_dir" && ac_dir=.
8815      tmp_nm="$ac_dir/$lt_tmp_nm"
8816      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8817	# Check to see if the nm accepts a BSD-compat flag.
8818	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
8819	#   nm: unknown option "B" ignored
8820	# Tru64's nm complains that /dev/null is an invalid object file
8821	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8822	*/dev/null* | *'Invalid file or object type'*)
8823	  lt_cv_path_NM="$tmp_nm -B"
8824	  break
8825	  ;;
8826	*)
8827	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8828	  */dev/null*)
8829	    lt_cv_path_NM="$tmp_nm -p"
8830	    break
8831	    ;;
8832	  *)
8833	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8834	    continue # so that we can try to find one that supports BSD flags
8835	    ;;
8836	  esac
8837	  ;;
8838	esac
8839      fi
8840    done
8841    IFS="$lt_save_ifs"
8842  done
8843  : ${lt_cv_path_NM=no}
8844fi
8845fi
8846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8847$as_echo "$lt_cv_path_NM" >&6; }
8848if test "$lt_cv_path_NM" != "no"; then
8849  NM="$lt_cv_path_NM"
8850else
8851  # Didn't find any BSD compatible name lister, look for dumpbin.
8852  if test -n "$DUMPBIN"; then :
8853    # Let the user override the test.
8854  else
8855    if test -n "$ac_tool_prefix"; then
8856  for ac_prog in dumpbin "link -dump"
8857  do
8858    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8859set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8861$as_echo_n "checking for $ac_word... " >&6; }
8862if ${ac_cv_prog_DUMPBIN+:} false; then :
8863  $as_echo_n "(cached) " >&6
8864else
8865  if test -n "$DUMPBIN"; then
8866  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8867else
8868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8869for as_dir in $PATH
8870do
8871  IFS=$as_save_IFS
8872  test -z "$as_dir" && as_dir=.
8873    for ac_exec_ext in '' $ac_executable_extensions; do
8874  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8875    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8876    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8877    break 2
8878  fi
8879done
8880  done
8881IFS=$as_save_IFS
8882
8883fi
8884fi
8885DUMPBIN=$ac_cv_prog_DUMPBIN
8886if test -n "$DUMPBIN"; then
8887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8888$as_echo "$DUMPBIN" >&6; }
8889else
8890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891$as_echo "no" >&6; }
8892fi
8893
8894
8895    test -n "$DUMPBIN" && break
8896  done
8897fi
8898if test -z "$DUMPBIN"; then
8899  ac_ct_DUMPBIN=$DUMPBIN
8900  for ac_prog in dumpbin "link -dump"
8901do
8902  # Extract the first word of "$ac_prog", so it can be a program name with args.
8903set dummy $ac_prog; ac_word=$2
8904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8905$as_echo_n "checking for $ac_word... " >&6; }
8906if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8907  $as_echo_n "(cached) " >&6
8908else
8909  if test -n "$ac_ct_DUMPBIN"; then
8910  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8911else
8912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8913for as_dir in $PATH
8914do
8915  IFS=$as_save_IFS
8916  test -z "$as_dir" && as_dir=.
8917    for ac_exec_ext in '' $ac_executable_extensions; do
8918  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8919    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8920    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8921    break 2
8922  fi
8923done
8924  done
8925IFS=$as_save_IFS
8926
8927fi
8928fi
8929ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8930if test -n "$ac_ct_DUMPBIN"; then
8931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8932$as_echo "$ac_ct_DUMPBIN" >&6; }
8933else
8934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8935$as_echo "no" >&6; }
8936fi
8937
8938
8939  test -n "$ac_ct_DUMPBIN" && break
8940done
8941
8942  if test "x$ac_ct_DUMPBIN" = x; then
8943    DUMPBIN=":"
8944  else
8945    case $cross_compiling:$ac_tool_warned in
8946yes:)
8947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8949ac_tool_warned=yes ;;
8950esac
8951    DUMPBIN=$ac_ct_DUMPBIN
8952  fi
8953fi
8954
8955    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8956    *COFF*)
8957      DUMPBIN="$DUMPBIN -symbols"
8958      ;;
8959    *)
8960      DUMPBIN=:
8961      ;;
8962    esac
8963  fi
8964
8965  if test "$DUMPBIN" != ":"; then
8966    NM="$DUMPBIN"
8967  fi
8968fi
8969test -z "$NM" && NM=nm
8970
8971
8972
8973
8974
8975
8976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8977$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8978if ${lt_cv_nm_interface+:} false; then :
8979  $as_echo_n "(cached) " >&6
8980else
8981  lt_cv_nm_interface="BSD nm"
8982  echo "int some_variable = 0;" > conftest.$ac_ext
8983  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8984  (eval "$ac_compile" 2>conftest.err)
8985  cat conftest.err >&5
8986  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8987  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8988  cat conftest.err >&5
8989  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8990  cat conftest.out >&5
8991  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8992    lt_cv_nm_interface="MS dumpbin"
8993  fi
8994  rm -f conftest*
8995fi
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8997$as_echo "$lt_cv_nm_interface" >&6; }
8998
8999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9000$as_echo_n "checking whether ln -s works... " >&6; }
9001LN_S=$as_ln_s
9002if test "$LN_S" = "ln -s"; then
9003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9004$as_echo "yes" >&6; }
9005else
9006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9007$as_echo "no, using $LN_S" >&6; }
9008fi
9009
9010# find the maximum length of command line arguments
9011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9012$as_echo_n "checking the maximum length of command line arguments... " >&6; }
9013if ${lt_cv_sys_max_cmd_len+:} false; then :
9014  $as_echo_n "(cached) " >&6
9015else
9016    i=0
9017  teststring="ABCD"
9018
9019  case $build_os in
9020  msdosdjgpp*)
9021    # On DJGPP, this test can blow up pretty badly due to problems in libc
9022    # (any single argument exceeding 2000 bytes causes a buffer overrun
9023    # during glob expansion).  Even if it were fixed, the result of this
9024    # check would be larger than it should be.
9025    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9026    ;;
9027
9028  gnu*)
9029    # Under GNU Hurd, this test is not required because there is
9030    # no limit to the length of command line arguments.
9031    # Libtool will interpret -1 as no limit whatsoever
9032    lt_cv_sys_max_cmd_len=-1;
9033    ;;
9034
9035  cygwin* | mingw* | cegcc*)
9036    # On Win9x/ME, this test blows up -- it succeeds, but takes
9037    # about 5 minutes as the teststring grows exponentially.
9038    # Worse, since 9x/ME are not pre-emptively multitasking,
9039    # you end up with a "frozen" computer, even though with patience
9040    # the test eventually succeeds (with a max line length of 256k).
9041    # Instead, let's just punt: use the minimum linelength reported by
9042    # all of the supported platforms: 8192 (on NT/2K/XP).
9043    lt_cv_sys_max_cmd_len=8192;
9044    ;;
9045
9046  mint*)
9047    # On MiNT this can take a long time and run out of memory.
9048    lt_cv_sys_max_cmd_len=8192;
9049    ;;
9050
9051  amigaos*)
9052    # On AmigaOS with pdksh, this test takes hours, literally.
9053    # So we just punt and use a minimum line length of 8192.
9054    lt_cv_sys_max_cmd_len=8192;
9055    ;;
9056
9057  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9058    # This has been around since 386BSD, at least.  Likely further.
9059    if test -x /sbin/sysctl; then
9060      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9061    elif test -x /usr/sbin/sysctl; then
9062      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9063    else
9064      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
9065    fi
9066    # And add a safety zone
9067    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9068    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9069    ;;
9070
9071  interix*)
9072    # We know the value 262144 and hardcode it with a safety zone (like BSD)
9073    lt_cv_sys_max_cmd_len=196608
9074    ;;
9075
9076  osf*)
9077    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9078    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9079    # nice to cause kernel panics so lets avoid the loop below.
9080    # First set a reasonable default.
9081    lt_cv_sys_max_cmd_len=16384
9082    #
9083    if test -x /sbin/sysconfig; then
9084      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9085        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9086      esac
9087    fi
9088    ;;
9089  sco3.2v5*)
9090    lt_cv_sys_max_cmd_len=102400
9091    ;;
9092  sysv5* | sco5v6* | sysv4.2uw2*)
9093    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9094    if test -n "$kargmax"; then
9095      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
9096    else
9097      lt_cv_sys_max_cmd_len=32768
9098    fi
9099    ;;
9100  *)
9101    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9102    if test -n "$lt_cv_sys_max_cmd_len"; then
9103      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9104      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9105    else
9106      # Make teststring a little bigger before we do anything with it.
9107      # a 1K string should be a reasonable start.
9108      for i in 1 2 3 4 5 6 7 8 ; do
9109        teststring=$teststring$teststring
9110      done
9111      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9112      # If test is not a shell built-in, we'll probably end up computing a
9113      # maximum length that is only half of the actual maximum length, but
9114      # we can't tell.
9115      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9116	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9117	      test $i != 17 # 1/2 MB should be enough
9118      do
9119        i=`expr $i + 1`
9120        teststring=$teststring$teststring
9121      done
9122      # Only check the string length outside the loop.
9123      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9124      teststring=
9125      # Add a significant safety factor because C++ compilers can tack on
9126      # massive amounts of additional arguments before passing them to the
9127      # linker.  It appears as though 1/2 is a usable value.
9128      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9129    fi
9130    ;;
9131  esac
9132
9133fi
9134
9135if test -n $lt_cv_sys_max_cmd_len ; then
9136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9137$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9138else
9139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9140$as_echo "none" >&6; }
9141fi
9142max_cmd_len=$lt_cv_sys_max_cmd_len
9143
9144
9145
9146
9147
9148
9149: ${CP="cp -f"}
9150: ${MV="mv -f"}
9151: ${RM="rm -f"}
9152
9153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9154$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9155# Try some XSI features
9156xsi_shell=no
9157( _lt_dummy="a/b/c"
9158  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9159      = c,a/b,b/c, \
9160    && eval 'test $(( 1 + 1 )) -eq 2 \
9161    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9162  && xsi_shell=yes
9163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9164$as_echo "$xsi_shell" >&6; }
9165
9166
9167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9168$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9169lt_shell_append=no
9170( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9171    >/dev/null 2>&1 \
9172  && lt_shell_append=yes
9173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9174$as_echo "$lt_shell_append" >&6; }
9175
9176
9177if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9178  lt_unset=unset
9179else
9180  lt_unset=false
9181fi
9182
9183
9184
9185
9186
9187# test EBCDIC or ASCII
9188case `echo X|tr X '\101'` in
9189 A) # ASCII based system
9190    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9191  lt_SP2NL='tr \040 \012'
9192  lt_NL2SP='tr \015\012 \040\040'
9193  ;;
9194 *) # EBCDIC based system
9195  lt_SP2NL='tr \100 \n'
9196  lt_NL2SP='tr \r\n \100\100'
9197  ;;
9198esac
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9209$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9210if ${lt_cv_to_host_file_cmd+:} false; then :
9211  $as_echo_n "(cached) " >&6
9212else
9213  case $host in
9214  *-*-mingw* )
9215    case $build in
9216      *-*-mingw* ) # actually msys
9217        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9218        ;;
9219      *-*-cygwin* )
9220        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9221        ;;
9222      * ) # otherwise, assume *nix
9223        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9224        ;;
9225    esac
9226    ;;
9227  *-*-cygwin* )
9228    case $build in
9229      *-*-mingw* ) # actually msys
9230        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9231        ;;
9232      *-*-cygwin* )
9233        lt_cv_to_host_file_cmd=func_convert_file_noop
9234        ;;
9235      * ) # otherwise, assume *nix
9236        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9237        ;;
9238    esac
9239    ;;
9240  * ) # unhandled hosts (and "normal" native builds)
9241    lt_cv_to_host_file_cmd=func_convert_file_noop
9242    ;;
9243esac
9244
9245fi
9246
9247to_host_file_cmd=$lt_cv_to_host_file_cmd
9248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9249$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9250
9251
9252
9253
9254
9255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9256$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9257if ${lt_cv_to_tool_file_cmd+:} false; then :
9258  $as_echo_n "(cached) " >&6
9259else
9260  #assume ordinary cross tools, or native build.
9261lt_cv_to_tool_file_cmd=func_convert_file_noop
9262case $host in
9263  *-*-mingw* )
9264    case $build in
9265      *-*-mingw* ) # actually msys
9266        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9267        ;;
9268    esac
9269    ;;
9270esac
9271
9272fi
9273
9274to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9276$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9277
9278
9279
9280
9281
9282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9283$as_echo_n "checking for $LD option to reload object files... " >&6; }
9284if ${lt_cv_ld_reload_flag+:} false; then :
9285  $as_echo_n "(cached) " >&6
9286else
9287  lt_cv_ld_reload_flag='-r'
9288fi
9289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9290$as_echo "$lt_cv_ld_reload_flag" >&6; }
9291reload_flag=$lt_cv_ld_reload_flag
9292case $reload_flag in
9293"" | " "*) ;;
9294*) reload_flag=" $reload_flag" ;;
9295esac
9296reload_cmds='$LD$reload_flag -o $output$reload_objs'
9297case $host_os in
9298  cygwin* | mingw* | pw32* | cegcc*)
9299    if test "$GCC" != yes; then
9300      reload_cmds=false
9301    fi
9302    ;;
9303  darwin*)
9304    if test "$GCC" = yes; then
9305      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9306    else
9307      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9308    fi
9309    ;;
9310esac
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320if test -n "$ac_tool_prefix"; then
9321  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9322set dummy ${ac_tool_prefix}objdump; ac_word=$2
9323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9324$as_echo_n "checking for $ac_word... " >&6; }
9325if ${ac_cv_prog_OBJDUMP+:} false; then :
9326  $as_echo_n "(cached) " >&6
9327else
9328  if test -n "$OBJDUMP"; then
9329  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9330else
9331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332for as_dir in $PATH
9333do
9334  IFS=$as_save_IFS
9335  test -z "$as_dir" && as_dir=.
9336    for ac_exec_ext in '' $ac_executable_extensions; do
9337  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9338    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9340    break 2
9341  fi
9342done
9343  done
9344IFS=$as_save_IFS
9345
9346fi
9347fi
9348OBJDUMP=$ac_cv_prog_OBJDUMP
9349if test -n "$OBJDUMP"; then
9350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9351$as_echo "$OBJDUMP" >&6; }
9352else
9353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9354$as_echo "no" >&6; }
9355fi
9356
9357
9358fi
9359if test -z "$ac_cv_prog_OBJDUMP"; then
9360  ac_ct_OBJDUMP=$OBJDUMP
9361  # Extract the first word of "objdump", so it can be a program name with args.
9362set dummy objdump; ac_word=$2
9363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9364$as_echo_n "checking for $ac_word... " >&6; }
9365if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9366  $as_echo_n "(cached) " >&6
9367else
9368  if test -n "$ac_ct_OBJDUMP"; then
9369  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9370else
9371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9372for as_dir in $PATH
9373do
9374  IFS=$as_save_IFS
9375  test -z "$as_dir" && as_dir=.
9376    for ac_exec_ext in '' $ac_executable_extensions; do
9377  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9378    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9380    break 2
9381  fi
9382done
9383  done
9384IFS=$as_save_IFS
9385
9386fi
9387fi
9388ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9389if test -n "$ac_ct_OBJDUMP"; then
9390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9391$as_echo "$ac_ct_OBJDUMP" >&6; }
9392else
9393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9394$as_echo "no" >&6; }
9395fi
9396
9397  if test "x$ac_ct_OBJDUMP" = x; then
9398    OBJDUMP="false"
9399  else
9400    case $cross_compiling:$ac_tool_warned in
9401yes:)
9402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9404ac_tool_warned=yes ;;
9405esac
9406    OBJDUMP=$ac_ct_OBJDUMP
9407  fi
9408else
9409  OBJDUMP="$ac_cv_prog_OBJDUMP"
9410fi
9411
9412test -z "$OBJDUMP" && OBJDUMP=objdump
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9423$as_echo_n "checking how to recognize dependent libraries... " >&6; }
9424if ${lt_cv_deplibs_check_method+:} false; then :
9425  $as_echo_n "(cached) " >&6
9426else
9427  lt_cv_file_magic_cmd='$MAGIC_CMD'
9428lt_cv_file_magic_test_file=
9429lt_cv_deplibs_check_method='unknown'
9430# Need to set the preceding variable on all platforms that support
9431# interlibrary dependencies.
9432# 'none' -- dependencies not supported.
9433# `unknown' -- same as none, but documents that we really don't know.
9434# 'pass_all' -- all dependencies passed with no checks.
9435# 'test_compile' -- check by making test program.
9436# 'file_magic [[regex]]' -- check by looking for files in library path
9437# which responds to the $file_magic_cmd with a given extended regex.
9438# If you have `file' or equivalent on your system and you're not sure
9439# whether `pass_all' will *always* work, you probably want this one.
9440
9441case $host_os in
9442aix[4-9]*)
9443  lt_cv_deplibs_check_method=pass_all
9444  ;;
9445
9446beos*)
9447  lt_cv_deplibs_check_method=pass_all
9448  ;;
9449
9450bsdi[45]*)
9451  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9452  lt_cv_file_magic_cmd='/usr/bin/file -L'
9453  lt_cv_file_magic_test_file=/shlib/libc.so
9454  ;;
9455
9456cygwin*)
9457  # func_win32_libid is a shell function defined in ltmain.sh
9458  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9459  lt_cv_file_magic_cmd='func_win32_libid'
9460  ;;
9461
9462mingw* | pw32*)
9463  # Base MSYS/MinGW do not provide the 'file' command needed by
9464  # func_win32_libid shell function, so use a weaker test based on 'objdump',
9465  # unless we find 'file', for example because we are cross-compiling.
9466  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
9467  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
9468    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9469    lt_cv_file_magic_cmd='func_win32_libid'
9470  else
9471    # Keep this pattern in sync with the one in func_win32_libid.
9472    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9473    lt_cv_file_magic_cmd='$OBJDUMP -f'
9474  fi
9475  ;;
9476
9477cegcc*)
9478  # use the weaker test based on 'objdump'. See mingw*.
9479  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9480  lt_cv_file_magic_cmd='$OBJDUMP -f'
9481  ;;
9482
9483darwin* | rhapsody*)
9484  lt_cv_deplibs_check_method=pass_all
9485  ;;
9486
9487freebsd* | dragonfly*)
9488  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9489    case $host_cpu in
9490    i*86 )
9491      # Not sure whether the presence of OpenBSD here was a mistake.
9492      # Let's accept both of them until this is cleared up.
9493      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9494      lt_cv_file_magic_cmd=/usr/bin/file
9495      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9496      ;;
9497    esac
9498  else
9499    lt_cv_deplibs_check_method=pass_all
9500  fi
9501  ;;
9502
9503gnu*)
9504  lt_cv_deplibs_check_method=pass_all
9505  ;;
9506
9507haiku*)
9508  lt_cv_deplibs_check_method=pass_all
9509  ;;
9510
9511hpux10.20* | hpux11*)
9512  lt_cv_file_magic_cmd=/usr/bin/file
9513  case $host_cpu in
9514  ia64*)
9515    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9516    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9517    ;;
9518  hppa*64*)
9519    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]'
9520    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9521    ;;
9522  *)
9523    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9524    lt_cv_file_magic_test_file=/usr/lib/libc.sl
9525    ;;
9526  esac
9527  ;;
9528
9529interix[3-9]*)
9530  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9531  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9532  ;;
9533
9534irix5* | irix6* | nonstopux*)
9535  case $LD in
9536  *-32|*"-32 ") libmagic=32-bit;;
9537  *-n32|*"-n32 ") libmagic=N32;;
9538  *-64|*"-64 ") libmagic=64-bit;;
9539  *) libmagic=never-match;;
9540  esac
9541  lt_cv_deplibs_check_method=pass_all
9542  ;;
9543
9544# This must be Linux ELF.
9545linux* | k*bsd*-gnu | kopensolaris*-gnu)
9546  lt_cv_deplibs_check_method=pass_all
9547  ;;
9548
9549netbsd*)
9550  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9551    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9552  else
9553    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9554  fi
9555  ;;
9556
9557newos6*)
9558  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9559  lt_cv_file_magic_cmd=/usr/bin/file
9560  lt_cv_file_magic_test_file=/usr/lib/libnls.so
9561  ;;
9562
9563*nto* | *qnx*)
9564  lt_cv_deplibs_check_method=pass_all
9565  ;;
9566
9567openbsd*)
9568  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9569    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9570  else
9571    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9572  fi
9573  ;;
9574
9575osf3* | osf4* | osf5*)
9576  lt_cv_deplibs_check_method=pass_all
9577  ;;
9578
9579rdos*)
9580  lt_cv_deplibs_check_method=pass_all
9581  ;;
9582
9583solaris*)
9584  lt_cv_deplibs_check_method=pass_all
9585  ;;
9586
9587sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9588  lt_cv_deplibs_check_method=pass_all
9589  ;;
9590
9591sysv4 | sysv4.3*)
9592  case $host_vendor in
9593  motorola)
9594    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]'
9595    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9596    ;;
9597  ncr)
9598    lt_cv_deplibs_check_method=pass_all
9599    ;;
9600  sequent)
9601    lt_cv_file_magic_cmd='/bin/file'
9602    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9603    ;;
9604  sni)
9605    lt_cv_file_magic_cmd='/bin/file'
9606    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9607    lt_cv_file_magic_test_file=/lib/libc.so
9608    ;;
9609  siemens)
9610    lt_cv_deplibs_check_method=pass_all
9611    ;;
9612  pc)
9613    lt_cv_deplibs_check_method=pass_all
9614    ;;
9615  esac
9616  ;;
9617
9618tpf*)
9619  lt_cv_deplibs_check_method=pass_all
9620  ;;
9621esac
9622
9623fi
9624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9625$as_echo "$lt_cv_deplibs_check_method" >&6; }
9626
9627file_magic_glob=
9628want_nocaseglob=no
9629if test "$build" = "$host"; then
9630  case $host_os in
9631  mingw* | pw32*)
9632    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9633      want_nocaseglob=yes
9634    else
9635      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9636    fi
9637    ;;
9638  esac
9639fi
9640
9641file_magic_cmd=$lt_cv_file_magic_cmd
9642deplibs_check_method=$lt_cv_deplibs_check_method
9643test -z "$deplibs_check_method" && deplibs_check_method=unknown
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666if test -n "$ac_tool_prefix"; then
9667  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9668set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9670$as_echo_n "checking for $ac_word... " >&6; }
9671if ${ac_cv_prog_DLLTOOL+:} false; then :
9672  $as_echo_n "(cached) " >&6
9673else
9674  if test -n "$DLLTOOL"; then
9675  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9676else
9677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9678for as_dir in $PATH
9679do
9680  IFS=$as_save_IFS
9681  test -z "$as_dir" && as_dir=.
9682    for ac_exec_ext in '' $ac_executable_extensions; do
9683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9684    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9686    break 2
9687  fi
9688done
9689  done
9690IFS=$as_save_IFS
9691
9692fi
9693fi
9694DLLTOOL=$ac_cv_prog_DLLTOOL
9695if test -n "$DLLTOOL"; then
9696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9697$as_echo "$DLLTOOL" >&6; }
9698else
9699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9700$as_echo "no" >&6; }
9701fi
9702
9703
9704fi
9705if test -z "$ac_cv_prog_DLLTOOL"; then
9706  ac_ct_DLLTOOL=$DLLTOOL
9707  # Extract the first word of "dlltool", so it can be a program name with args.
9708set dummy dlltool; ac_word=$2
9709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9710$as_echo_n "checking for $ac_word... " >&6; }
9711if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9712  $as_echo_n "(cached) " >&6
9713else
9714  if test -n "$ac_ct_DLLTOOL"; then
9715  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9716else
9717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9718for as_dir in $PATH
9719do
9720  IFS=$as_save_IFS
9721  test -z "$as_dir" && as_dir=.
9722    for ac_exec_ext in '' $ac_executable_extensions; do
9723  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9724    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9726    break 2
9727  fi
9728done
9729  done
9730IFS=$as_save_IFS
9731
9732fi
9733fi
9734ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9735if test -n "$ac_ct_DLLTOOL"; then
9736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9737$as_echo "$ac_ct_DLLTOOL" >&6; }
9738else
9739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9740$as_echo "no" >&6; }
9741fi
9742
9743  if test "x$ac_ct_DLLTOOL" = x; then
9744    DLLTOOL="false"
9745  else
9746    case $cross_compiling:$ac_tool_warned in
9747yes:)
9748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9750ac_tool_warned=yes ;;
9751esac
9752    DLLTOOL=$ac_ct_DLLTOOL
9753  fi
9754else
9755  DLLTOOL="$ac_cv_prog_DLLTOOL"
9756fi
9757
9758test -z "$DLLTOOL" && DLLTOOL=dlltool
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9770$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9771if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9772  $as_echo_n "(cached) " >&6
9773else
9774  lt_cv_sharedlib_from_linklib_cmd='unknown'
9775
9776case $host_os in
9777cygwin* | mingw* | pw32* | cegcc*)
9778  # two different shell functions defined in ltmain.sh
9779  # decide which to use based on capabilities of $DLLTOOL
9780  case `$DLLTOOL --help 2>&1` in
9781  *--identify-strict*)
9782    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9783    ;;
9784  *)
9785    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9786    ;;
9787  esac
9788  ;;
9789*)
9790  # fallback: assume linklib IS sharedlib
9791  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9792  ;;
9793esac
9794
9795fi
9796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9797$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9798sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9799test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9800
9801
9802
9803
9804
9805
9806
9807if test -n "$ac_tool_prefix"; then
9808  for ac_prog in ar
9809  do
9810    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9811set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9813$as_echo_n "checking for $ac_word... " >&6; }
9814if ${ac_cv_prog_AR+:} false; then :
9815  $as_echo_n "(cached) " >&6
9816else
9817  if test -n "$AR"; then
9818  ac_cv_prog_AR="$AR" # Let the user override the test.
9819else
9820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821for as_dir in $PATH
9822do
9823  IFS=$as_save_IFS
9824  test -z "$as_dir" && as_dir=.
9825    for ac_exec_ext in '' $ac_executable_extensions; do
9826  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9827    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9829    break 2
9830  fi
9831done
9832  done
9833IFS=$as_save_IFS
9834
9835fi
9836fi
9837AR=$ac_cv_prog_AR
9838if test -n "$AR"; then
9839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9840$as_echo "$AR" >&6; }
9841else
9842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9843$as_echo "no" >&6; }
9844fi
9845
9846
9847    test -n "$AR" && break
9848  done
9849fi
9850if test -z "$AR"; then
9851  ac_ct_AR=$AR
9852  for ac_prog in ar
9853do
9854  # Extract the first word of "$ac_prog", so it can be a program name with args.
9855set dummy $ac_prog; ac_word=$2
9856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9857$as_echo_n "checking for $ac_word... " >&6; }
9858if ${ac_cv_prog_ac_ct_AR+:} false; then :
9859  $as_echo_n "(cached) " >&6
9860else
9861  if test -n "$ac_ct_AR"; then
9862  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9863else
9864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865for as_dir in $PATH
9866do
9867  IFS=$as_save_IFS
9868  test -z "$as_dir" && as_dir=.
9869    for ac_exec_ext in '' $ac_executable_extensions; do
9870  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9871    ac_cv_prog_ac_ct_AR="$ac_prog"
9872    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9873    break 2
9874  fi
9875done
9876  done
9877IFS=$as_save_IFS
9878
9879fi
9880fi
9881ac_ct_AR=$ac_cv_prog_ac_ct_AR
9882if test -n "$ac_ct_AR"; then
9883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9884$as_echo "$ac_ct_AR" >&6; }
9885else
9886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887$as_echo "no" >&6; }
9888fi
9889
9890
9891  test -n "$ac_ct_AR" && break
9892done
9893
9894  if test "x$ac_ct_AR" = x; then
9895    AR="false"
9896  else
9897    case $cross_compiling:$ac_tool_warned in
9898yes:)
9899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9901ac_tool_warned=yes ;;
9902esac
9903    AR=$ac_ct_AR
9904  fi
9905fi
9906
9907: ${AR=ar}
9908: ${AR_FLAGS=cru}
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9921$as_echo_n "checking for archiver @FILE support... " >&6; }
9922if ${lt_cv_ar_at_file+:} false; then :
9923  $as_echo_n "(cached) " >&6
9924else
9925  lt_cv_ar_at_file=no
9926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927/* end confdefs.h.  */
9928
9929int
9930main ()
9931{
9932
9933  ;
9934  return 0;
9935}
9936_ACEOF
9937if ac_fn_c_try_compile "$LINENO"; then :
9938  echo conftest.$ac_objext > conftest.lst
9939      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9940      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9941  (eval $lt_ar_try) 2>&5
9942  ac_status=$?
9943  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9944  test $ac_status = 0; }
9945      if test "$ac_status" -eq 0; then
9946	# Ensure the archiver fails upon bogus file names.
9947	rm -f conftest.$ac_objext libconftest.a
9948	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9949  (eval $lt_ar_try) 2>&5
9950  ac_status=$?
9951  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9952  test $ac_status = 0; }
9953	if test "$ac_status" -ne 0; then
9954          lt_cv_ar_at_file=@
9955        fi
9956      fi
9957      rm -f conftest.* libconftest.a
9958
9959fi
9960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9961
9962fi
9963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9964$as_echo "$lt_cv_ar_at_file" >&6; }
9965
9966if test "x$lt_cv_ar_at_file" = xno; then
9967  archiver_list_spec=
9968else
9969  archiver_list_spec=$lt_cv_ar_at_file
9970fi
9971
9972
9973
9974
9975
9976
9977
9978if test -n "$ac_tool_prefix"; then
9979  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9980set dummy ${ac_tool_prefix}strip; ac_word=$2
9981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9982$as_echo_n "checking for $ac_word... " >&6; }
9983if ${ac_cv_prog_STRIP+:} false; then :
9984  $as_echo_n "(cached) " >&6
9985else
9986  if test -n "$STRIP"; then
9987  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9988else
9989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9990for as_dir in $PATH
9991do
9992  IFS=$as_save_IFS
9993  test -z "$as_dir" && as_dir=.
9994    for ac_exec_ext in '' $ac_executable_extensions; do
9995  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9996    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9997    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9998    break 2
9999  fi
10000done
10001  done
10002IFS=$as_save_IFS
10003
10004fi
10005fi
10006STRIP=$ac_cv_prog_STRIP
10007if test -n "$STRIP"; then
10008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10009$as_echo "$STRIP" >&6; }
10010else
10011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10012$as_echo "no" >&6; }
10013fi
10014
10015
10016fi
10017if test -z "$ac_cv_prog_STRIP"; then
10018  ac_ct_STRIP=$STRIP
10019  # Extract the first word of "strip", so it can be a program name with args.
10020set dummy strip; ac_word=$2
10021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10022$as_echo_n "checking for $ac_word... " >&6; }
10023if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10024  $as_echo_n "(cached) " >&6
10025else
10026  if test -n "$ac_ct_STRIP"; then
10027  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10028else
10029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10030for as_dir in $PATH
10031do
10032  IFS=$as_save_IFS
10033  test -z "$as_dir" && as_dir=.
10034    for ac_exec_ext in '' $ac_executable_extensions; do
10035  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10036    ac_cv_prog_ac_ct_STRIP="strip"
10037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10038    break 2
10039  fi
10040done
10041  done
10042IFS=$as_save_IFS
10043
10044fi
10045fi
10046ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10047if test -n "$ac_ct_STRIP"; then
10048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10049$as_echo "$ac_ct_STRIP" >&6; }
10050else
10051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10052$as_echo "no" >&6; }
10053fi
10054
10055  if test "x$ac_ct_STRIP" = x; then
10056    STRIP=":"
10057  else
10058    case $cross_compiling:$ac_tool_warned in
10059yes:)
10060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10062ac_tool_warned=yes ;;
10063esac
10064    STRIP=$ac_ct_STRIP
10065  fi
10066else
10067  STRIP="$ac_cv_prog_STRIP"
10068fi
10069
10070test -z "$STRIP" && STRIP=:
10071
10072
10073
10074
10075
10076
10077if test -n "$ac_tool_prefix"; then
10078  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10079set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10081$as_echo_n "checking for $ac_word... " >&6; }
10082if ${ac_cv_prog_RANLIB+:} false; then :
10083  $as_echo_n "(cached) " >&6
10084else
10085  if test -n "$RANLIB"; then
10086  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10087else
10088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089for as_dir in $PATH
10090do
10091  IFS=$as_save_IFS
10092  test -z "$as_dir" && as_dir=.
10093    for ac_exec_ext in '' $ac_executable_extensions; do
10094  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10095    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10097    break 2
10098  fi
10099done
10100  done
10101IFS=$as_save_IFS
10102
10103fi
10104fi
10105RANLIB=$ac_cv_prog_RANLIB
10106if test -n "$RANLIB"; then
10107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10108$as_echo "$RANLIB" >&6; }
10109else
10110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111$as_echo "no" >&6; }
10112fi
10113
10114
10115fi
10116if test -z "$ac_cv_prog_RANLIB"; then
10117  ac_ct_RANLIB=$RANLIB
10118  # Extract the first word of "ranlib", so it can be a program name with args.
10119set dummy ranlib; ac_word=$2
10120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10121$as_echo_n "checking for $ac_word... " >&6; }
10122if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10123  $as_echo_n "(cached) " >&6
10124else
10125  if test -n "$ac_ct_RANLIB"; then
10126  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10127else
10128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10129for as_dir in $PATH
10130do
10131  IFS=$as_save_IFS
10132  test -z "$as_dir" && as_dir=.
10133    for ac_exec_ext in '' $ac_executable_extensions; do
10134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10135    ac_cv_prog_ac_ct_RANLIB="ranlib"
10136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10137    break 2
10138  fi
10139done
10140  done
10141IFS=$as_save_IFS
10142
10143fi
10144fi
10145ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10146if test -n "$ac_ct_RANLIB"; then
10147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10148$as_echo "$ac_ct_RANLIB" >&6; }
10149else
10150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10151$as_echo "no" >&6; }
10152fi
10153
10154  if test "x$ac_ct_RANLIB" = x; then
10155    RANLIB=":"
10156  else
10157    case $cross_compiling:$ac_tool_warned in
10158yes:)
10159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10161ac_tool_warned=yes ;;
10162esac
10163    RANLIB=$ac_ct_RANLIB
10164  fi
10165else
10166  RANLIB="$ac_cv_prog_RANLIB"
10167fi
10168
10169test -z "$RANLIB" && RANLIB=:
10170
10171
10172
10173
10174
10175
10176# Determine commands to create old-style static archives.
10177old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10178old_postinstall_cmds='chmod 644 $oldlib'
10179old_postuninstall_cmds=
10180
10181if test -n "$RANLIB"; then
10182  case $host_os in
10183  openbsd*)
10184    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10185    ;;
10186  *)
10187    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10188    ;;
10189  esac
10190  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10191fi
10192
10193case $host_os in
10194  darwin*)
10195    lock_old_archive_extraction=yes ;;
10196  *)
10197    lock_old_archive_extraction=no ;;
10198esac
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238# If no C compiler was specified, use CC.
10239LTCC=${LTCC-"$CC"}
10240
10241# If no C compiler flags were specified, use CFLAGS.
10242LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10243
10244# Allow CC to be a program name with arguments.
10245compiler=$CC
10246
10247
10248# Check for command to grab the raw symbol name followed by C symbol from nm.
10249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10250$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10251if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10252  $as_echo_n "(cached) " >&6
10253else
10254
10255# These are sane defaults that work on at least a few old systems.
10256# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10257
10258# Character class describing NM global symbol codes.
10259symcode='[BCDEGRST]'
10260
10261# Regexp to match symbols that can be accessed directly from C.
10262sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10263
10264# Define system-specific variables.
10265case $host_os in
10266aix*)
10267  symcode='[BCDT]'
10268  ;;
10269cygwin* | mingw* | pw32* | cegcc*)
10270  symcode='[ABCDGISTW]'
10271  ;;
10272hpux*)
10273  if test "$host_cpu" = ia64; then
10274    symcode='[ABCDEGRST]'
10275  fi
10276  ;;
10277irix* | nonstopux*)
10278  symcode='[BCDEGRST]'
10279  ;;
10280osf*)
10281  symcode='[BCDEGQRST]'
10282  ;;
10283solaris*)
10284  symcode='[BDRT]'
10285  ;;
10286sco3.2v5*)
10287  symcode='[DT]'
10288  ;;
10289sysv4.2uw2*)
10290  symcode='[DT]'
10291  ;;
10292sysv5* | sco5v6* | unixware* | OpenUNIX*)
10293  symcode='[ABDT]'
10294  ;;
10295sysv4)
10296  symcode='[DFNSTU]'
10297  ;;
10298esac
10299
10300# If we're using GNU nm, then use its standard symbol codes.
10301case `$NM -V 2>&1` in
10302*GNU* | *'with BFD'*)
10303  symcode='[ABCDGIRSTW]' ;;
10304esac
10305
10306# Transform an extracted symbol line into a proper C declaration.
10307# Some systems (esp. on ia64) link data and code symbols differently,
10308# so use this general approach.
10309lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10310
10311# Transform an extracted symbol line into symbol name and symbol address
10312lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
10313lt_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'"
10314
10315# Handle CRLF in mingw tool chain
10316opt_cr=
10317case $build_os in
10318mingw*)
10319  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10320  ;;
10321esac
10322
10323# Try without a prefix underscore, then with it.
10324for ac_symprfx in "" "_"; do
10325
10326  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10327  symxfrm="\\1 $ac_symprfx\\2 \\2"
10328
10329  # Write the raw and C identifiers.
10330  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10331    # Fake it for dumpbin and say T for any non-static function
10332    # and D for any global variable.
10333    # Also find C++ and __fastcall symbols from MSVC++,
10334    # which start with @ or ?.
10335    lt_cv_sys_global_symbol_pipe="$AWK '"\
10336"     {last_section=section; section=\$ 3};"\
10337"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10338"     \$ 0!~/External *\|/{next};"\
10339"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10340"     {if(hide[section]) next};"\
10341"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10342"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10343"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
10344"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10345"     ' prfx=^$ac_symprfx"
10346  else
10347    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10348  fi
10349  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10350
10351  # Check to see that the pipe works correctly.
10352  pipe_works=no
10353
10354  rm -f conftest*
10355  cat > conftest.$ac_ext <<_LT_EOF
10356#ifdef __cplusplus
10357extern "C" {
10358#endif
10359char nm_test_var;
10360void nm_test_func(void);
10361void nm_test_func(void){}
10362#ifdef __cplusplus
10363}
10364#endif
10365int main(){nm_test_var='a';nm_test_func();return(0);}
10366_LT_EOF
10367
10368  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10369  (eval $ac_compile) 2>&5
10370  ac_status=$?
10371  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10372  test $ac_status = 0; }; then
10373    # Now try to grab the symbols.
10374    nlist=conftest.nm
10375    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10376  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10377  ac_status=$?
10378  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10379  test $ac_status = 0; } && test -s "$nlist"; then
10380      # Try sorting and uniquifying the output.
10381      if sort "$nlist" | uniq > "$nlist"T; then
10382	mv -f "$nlist"T "$nlist"
10383      else
10384	rm -f "$nlist"T
10385      fi
10386
10387      # Make sure that we snagged all the symbols we need.
10388      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10389	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10390	  cat <<_LT_EOF > conftest.$ac_ext
10391/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10392#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
10393/* DATA imports from DLLs on WIN32 con't be const, because runtime
10394   relocations are performed -- see ld's documentation on pseudo-relocs.  */
10395# define LT_DLSYM_CONST
10396#elif defined(__osf__)
10397/* This system does not cope well with relocations in const data.  */
10398# define LT_DLSYM_CONST
10399#else
10400# define LT_DLSYM_CONST const
10401#endif
10402
10403#ifdef __cplusplus
10404extern "C" {
10405#endif
10406
10407_LT_EOF
10408	  # Now generate the symbol file.
10409	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10410
10411	  cat <<_LT_EOF >> conftest.$ac_ext
10412
10413/* The mapping between symbol names and symbols.  */
10414LT_DLSYM_CONST struct {
10415  const char *name;
10416  void       *address;
10417}
10418lt__PROGRAM__LTX_preloaded_symbols[] =
10419{
10420  { "@PROGRAM@", (void *) 0 },
10421_LT_EOF
10422	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10423	  cat <<\_LT_EOF >> conftest.$ac_ext
10424  {0, (void *) 0}
10425};
10426
10427/* This works around a problem in FreeBSD linker */
10428#ifdef FREEBSD_WORKAROUND
10429static const void *lt_preloaded_setup() {
10430  return lt__PROGRAM__LTX_preloaded_symbols;
10431}
10432#endif
10433
10434#ifdef __cplusplus
10435}
10436#endif
10437_LT_EOF
10438	  # Now try linking the two files.
10439	  mv conftest.$ac_objext conftstm.$ac_objext
10440	  lt_globsym_save_LIBS=$LIBS
10441	  lt_globsym_save_CFLAGS=$CFLAGS
10442	  LIBS="conftstm.$ac_objext"
10443	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10444	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10445  (eval $ac_link) 2>&5
10446  ac_status=$?
10447  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10448  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10449	    pipe_works=yes
10450	  fi
10451	  LIBS=$lt_globsym_save_LIBS
10452	  CFLAGS=$lt_globsym_save_CFLAGS
10453	else
10454	  echo "cannot find nm_test_func in $nlist" >&5
10455	fi
10456      else
10457	echo "cannot find nm_test_var in $nlist" >&5
10458      fi
10459    else
10460      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10461    fi
10462  else
10463    echo "$progname: failed program was:" >&5
10464    cat conftest.$ac_ext >&5
10465  fi
10466  rm -rf conftest* conftst*
10467
10468  # Do not use the global_symbol_pipe unless it works.
10469  if test "$pipe_works" = yes; then
10470    break
10471  else
10472    lt_cv_sys_global_symbol_pipe=
10473  fi
10474done
10475
10476fi
10477
10478if test -z "$lt_cv_sys_global_symbol_pipe"; then
10479  lt_cv_sys_global_symbol_to_cdecl=
10480fi
10481if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10483$as_echo "failed" >&6; }
10484else
10485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10486$as_echo "ok" >&6; }
10487fi
10488
10489# Response file support.
10490if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10491  nm_file_list_spec='@'
10492elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10493  nm_file_list_spec='@'
10494fi
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10523$as_echo_n "checking for sysroot... " >&6; }
10524
10525# Check whether --with-sysroot was given.
10526if test "${with_sysroot+set}" = set; then :
10527  withval=$with_sysroot;
10528else
10529  with_sysroot=no
10530fi
10531
10532
10533lt_sysroot=
10534case ${with_sysroot} in #(
10535 yes)
10536   if test "$GCC" = yes; then
10537     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10538   fi
10539   ;; #(
10540 /*)
10541   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10542   ;; #(
10543 no|'')
10544   ;; #(
10545 *)
10546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
10547$as_echo "${with_sysroot}" >&6; }
10548   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10549   ;;
10550esac
10551
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10553$as_echo "${lt_sysroot:-no}" >&6; }
10554
10555
10556
10557
10558
10559# Check whether --enable-libtool-lock was given.
10560if test "${enable_libtool_lock+set}" = set; then :
10561  enableval=$enable_libtool_lock;
10562fi
10563
10564test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10565
10566# Some flags need to be propagated to the compiler or linker for good
10567# libtool support.
10568case $host in
10569ia64-*-hpux*)
10570  # Find out which ABI we are using.
10571  echo 'int i;' > conftest.$ac_ext
10572  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10573  (eval $ac_compile) 2>&5
10574  ac_status=$?
10575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10576  test $ac_status = 0; }; then
10577    case `/usr/bin/file conftest.$ac_objext` in
10578      *ELF-32*)
10579	HPUX_IA64_MODE="32"
10580	;;
10581      *ELF-64*)
10582	HPUX_IA64_MODE="64"
10583	;;
10584    esac
10585  fi
10586  rm -rf conftest*
10587  ;;
10588*-*-irix6*)
10589  # Find out which ABI we are using.
10590  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10591  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10592  (eval $ac_compile) 2>&5
10593  ac_status=$?
10594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10595  test $ac_status = 0; }; then
10596    if test "$lt_cv_prog_gnu_ld" = yes; then
10597      case `/usr/bin/file conftest.$ac_objext` in
10598	*32-bit*)
10599	  LD="${LD-ld} -melf32bsmip"
10600	  ;;
10601	*N32*)
10602	  LD="${LD-ld} -melf32bmipn32"
10603	  ;;
10604	*64-bit*)
10605	  LD="${LD-ld} -melf64bmip"
10606	;;
10607      esac
10608    else
10609      case `/usr/bin/file conftest.$ac_objext` in
10610	*32-bit*)
10611	  LD="${LD-ld} -32"
10612	  ;;
10613	*N32*)
10614	  LD="${LD-ld} -n32"
10615	  ;;
10616	*64-bit*)
10617	  LD="${LD-ld} -64"
10618	  ;;
10619      esac
10620    fi
10621  fi
10622  rm -rf conftest*
10623  ;;
10624
10625x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10626s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10627  # Find out which ABI we are using.
10628  echo 'int i;' > conftest.$ac_ext
10629  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10630  (eval $ac_compile) 2>&5
10631  ac_status=$?
10632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10633  test $ac_status = 0; }; then
10634    case `/usr/bin/file conftest.o` in
10635      *32-bit*)
10636	case $host in
10637	  x86_64-*kfreebsd*-gnu)
10638	    LD="${LD-ld} -m elf_i386_fbsd"
10639	    ;;
10640	  x86_64-*linux*)
10641	    LD="${LD-ld} -m elf_i386"
10642	    ;;
10643	  ppc64-*linux*|powerpc64-*linux*)
10644	    LD="${LD-ld} -m elf32ppclinux"
10645	    ;;
10646	  s390x-*linux*)
10647	    LD="${LD-ld} -m elf_s390"
10648	    ;;
10649	  sparc64-*linux*)
10650	    LD="${LD-ld} -m elf32_sparc"
10651	    ;;
10652	esac
10653	;;
10654      *64-bit*)
10655	case $host in
10656	  x86_64-*kfreebsd*-gnu)
10657	    LD="${LD-ld} -m elf_x86_64_fbsd"
10658	    ;;
10659	  x86_64-*linux*)
10660	    LD="${LD-ld} -m elf_x86_64"
10661	    ;;
10662	  ppc*-*linux*|powerpc*-*linux*)
10663	    LD="${LD-ld} -m elf64ppc"
10664	    ;;
10665	  s390*-*linux*|s390*-*tpf*)
10666	    LD="${LD-ld} -m elf64_s390"
10667	    ;;
10668	  sparc*-*linux*)
10669	    LD="${LD-ld} -m elf64_sparc"
10670	    ;;
10671	esac
10672	;;
10673    esac
10674  fi
10675  rm -rf conftest*
10676  ;;
10677
10678*-*-sco3.2v5*)
10679  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10680  SAVE_CFLAGS="$CFLAGS"
10681  CFLAGS="$CFLAGS -belf"
10682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10683$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10684if ${lt_cv_cc_needs_belf+:} false; then :
10685  $as_echo_n "(cached) " >&6
10686else
10687  ac_ext=c
10688ac_cpp='$CPP $CPPFLAGS'
10689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10691ac_compiler_gnu=$ac_cv_c_compiler_gnu
10692
10693     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694/* end confdefs.h.  */
10695
10696int
10697main ()
10698{
10699
10700  ;
10701  return 0;
10702}
10703_ACEOF
10704if ac_fn_c_try_link "$LINENO"; then :
10705  lt_cv_cc_needs_belf=yes
10706else
10707  lt_cv_cc_needs_belf=no
10708fi
10709rm -f core conftest.err conftest.$ac_objext \
10710    conftest$ac_exeext conftest.$ac_ext
10711     ac_ext=c
10712ac_cpp='$CPP $CPPFLAGS'
10713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10715ac_compiler_gnu=$ac_cv_c_compiler_gnu
10716
10717fi
10718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10719$as_echo "$lt_cv_cc_needs_belf" >&6; }
10720  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10721    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10722    CFLAGS="$SAVE_CFLAGS"
10723  fi
10724  ;;
10725sparc*-*solaris*)
10726  # Find out which ABI we are using.
10727  echo 'int i;' > conftest.$ac_ext
10728  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10729  (eval $ac_compile) 2>&5
10730  ac_status=$?
10731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10732  test $ac_status = 0; }; then
10733    case `/usr/bin/file conftest.o` in
10734    *64-bit*)
10735      case $lt_cv_prog_gnu_ld in
10736      yes*) LD="${LD-ld} -m elf64_sparc" ;;
10737      *)
10738	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10739	  LD="${LD-ld} -64"
10740	fi
10741	;;
10742      esac
10743      ;;
10744    esac
10745  fi
10746  rm -rf conftest*
10747  ;;
10748esac
10749
10750need_locks="$enable_libtool_lock"
10751
10752if test -n "$ac_tool_prefix"; then
10753  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10754set dummy ${ac_tool_prefix}mt; ac_word=$2
10755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10756$as_echo_n "checking for $ac_word... " >&6; }
10757if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10758  $as_echo_n "(cached) " >&6
10759else
10760  if test -n "$MANIFEST_TOOL"; then
10761  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10762else
10763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10764for as_dir in $PATH
10765do
10766  IFS=$as_save_IFS
10767  test -z "$as_dir" && as_dir=.
10768    for ac_exec_ext in '' $ac_executable_extensions; do
10769  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10770    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10772    break 2
10773  fi
10774done
10775  done
10776IFS=$as_save_IFS
10777
10778fi
10779fi
10780MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10781if test -n "$MANIFEST_TOOL"; then
10782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10783$as_echo "$MANIFEST_TOOL" >&6; }
10784else
10785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786$as_echo "no" >&6; }
10787fi
10788
10789
10790fi
10791if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10792  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10793  # Extract the first word of "mt", so it can be a program name with args.
10794set dummy mt; ac_word=$2
10795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10796$as_echo_n "checking for $ac_word... " >&6; }
10797if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10798  $as_echo_n "(cached) " >&6
10799else
10800  if test -n "$ac_ct_MANIFEST_TOOL"; then
10801  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10802else
10803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10804for as_dir in $PATH
10805do
10806  IFS=$as_save_IFS
10807  test -z "$as_dir" && as_dir=.
10808    for ac_exec_ext in '' $ac_executable_extensions; do
10809  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10810    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10812    break 2
10813  fi
10814done
10815  done
10816IFS=$as_save_IFS
10817
10818fi
10819fi
10820ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10821if test -n "$ac_ct_MANIFEST_TOOL"; then
10822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10823$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10824else
10825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826$as_echo "no" >&6; }
10827fi
10828
10829  if test "x$ac_ct_MANIFEST_TOOL" = x; then
10830    MANIFEST_TOOL=":"
10831  else
10832    case $cross_compiling:$ac_tool_warned in
10833yes:)
10834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10836ac_tool_warned=yes ;;
10837esac
10838    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10839  fi
10840else
10841  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10842fi
10843
10844test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10846$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10847if ${lt_cv_path_mainfest_tool+:} false; then :
10848  $as_echo_n "(cached) " >&6
10849else
10850  lt_cv_path_mainfest_tool=no
10851  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10852  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10853  cat conftest.err >&5
10854  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10855    lt_cv_path_mainfest_tool=yes
10856  fi
10857  rm -f conftest*
10858fi
10859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10860$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10861if test "x$lt_cv_path_mainfest_tool" != xyes; then
10862  MANIFEST_TOOL=:
10863fi
10864
10865
10866
10867
10868
10869
10870  case $host_os in
10871    rhapsody* | darwin*)
10872    if test -n "$ac_tool_prefix"; then
10873  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10874set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10876$as_echo_n "checking for $ac_word... " >&6; }
10877if ${ac_cv_prog_DSYMUTIL+:} false; then :
10878  $as_echo_n "(cached) " >&6
10879else
10880  if test -n "$DSYMUTIL"; then
10881  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10882else
10883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884for as_dir in $PATH
10885do
10886  IFS=$as_save_IFS
10887  test -z "$as_dir" && as_dir=.
10888    for ac_exec_ext in '' $ac_executable_extensions; do
10889  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10890    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10891    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10892    break 2
10893  fi
10894done
10895  done
10896IFS=$as_save_IFS
10897
10898fi
10899fi
10900DSYMUTIL=$ac_cv_prog_DSYMUTIL
10901if test -n "$DSYMUTIL"; then
10902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10903$as_echo "$DSYMUTIL" >&6; }
10904else
10905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906$as_echo "no" >&6; }
10907fi
10908
10909
10910fi
10911if test -z "$ac_cv_prog_DSYMUTIL"; then
10912  ac_ct_DSYMUTIL=$DSYMUTIL
10913  # Extract the first word of "dsymutil", so it can be a program name with args.
10914set dummy dsymutil; ac_word=$2
10915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10916$as_echo_n "checking for $ac_word... " >&6; }
10917if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10918  $as_echo_n "(cached) " >&6
10919else
10920  if test -n "$ac_ct_DSYMUTIL"; then
10921  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10922else
10923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10924for as_dir in $PATH
10925do
10926  IFS=$as_save_IFS
10927  test -z "$as_dir" && as_dir=.
10928    for ac_exec_ext in '' $ac_executable_extensions; do
10929  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10930    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10931    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10932    break 2
10933  fi
10934done
10935  done
10936IFS=$as_save_IFS
10937
10938fi
10939fi
10940ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10941if test -n "$ac_ct_DSYMUTIL"; then
10942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10943$as_echo "$ac_ct_DSYMUTIL" >&6; }
10944else
10945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10946$as_echo "no" >&6; }
10947fi
10948
10949  if test "x$ac_ct_DSYMUTIL" = x; then
10950    DSYMUTIL=":"
10951  else
10952    case $cross_compiling:$ac_tool_warned in
10953yes:)
10954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10956ac_tool_warned=yes ;;
10957esac
10958    DSYMUTIL=$ac_ct_DSYMUTIL
10959  fi
10960else
10961  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10962fi
10963
10964    if test -n "$ac_tool_prefix"; then
10965  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10966set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10968$as_echo_n "checking for $ac_word... " >&6; }
10969if ${ac_cv_prog_NMEDIT+:} false; then :
10970  $as_echo_n "(cached) " >&6
10971else
10972  if test -n "$NMEDIT"; then
10973  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10974else
10975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976for as_dir in $PATH
10977do
10978  IFS=$as_save_IFS
10979  test -z "$as_dir" && as_dir=.
10980    for ac_exec_ext in '' $ac_executable_extensions; do
10981  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10982    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10983    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10984    break 2
10985  fi
10986done
10987  done
10988IFS=$as_save_IFS
10989
10990fi
10991fi
10992NMEDIT=$ac_cv_prog_NMEDIT
10993if test -n "$NMEDIT"; then
10994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10995$as_echo "$NMEDIT" >&6; }
10996else
10997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10998$as_echo "no" >&6; }
10999fi
11000
11001
11002fi
11003if test -z "$ac_cv_prog_NMEDIT"; then
11004  ac_ct_NMEDIT=$NMEDIT
11005  # Extract the first word of "nmedit", so it can be a program name with args.
11006set dummy nmedit; ac_word=$2
11007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11008$as_echo_n "checking for $ac_word... " >&6; }
11009if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11010  $as_echo_n "(cached) " >&6
11011else
11012  if test -n "$ac_ct_NMEDIT"; then
11013  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11014else
11015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11016for as_dir in $PATH
11017do
11018  IFS=$as_save_IFS
11019  test -z "$as_dir" && as_dir=.
11020    for ac_exec_ext in '' $ac_executable_extensions; do
11021  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11022    ac_cv_prog_ac_ct_NMEDIT="nmedit"
11023    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11024    break 2
11025  fi
11026done
11027  done
11028IFS=$as_save_IFS
11029
11030fi
11031fi
11032ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11033if test -n "$ac_ct_NMEDIT"; then
11034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11035$as_echo "$ac_ct_NMEDIT" >&6; }
11036else
11037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038$as_echo "no" >&6; }
11039fi
11040
11041  if test "x$ac_ct_NMEDIT" = x; then
11042    NMEDIT=":"
11043  else
11044    case $cross_compiling:$ac_tool_warned in
11045yes:)
11046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11048ac_tool_warned=yes ;;
11049esac
11050    NMEDIT=$ac_ct_NMEDIT
11051  fi
11052else
11053  NMEDIT="$ac_cv_prog_NMEDIT"
11054fi
11055
11056    if test -n "$ac_tool_prefix"; then
11057  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11058set dummy ${ac_tool_prefix}lipo; ac_word=$2
11059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11060$as_echo_n "checking for $ac_word... " >&6; }
11061if ${ac_cv_prog_LIPO+:} false; then :
11062  $as_echo_n "(cached) " >&6
11063else
11064  if test -n "$LIPO"; then
11065  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11066else
11067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11068for as_dir in $PATH
11069do
11070  IFS=$as_save_IFS
11071  test -z "$as_dir" && as_dir=.
11072    for ac_exec_ext in '' $ac_executable_extensions; do
11073  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11074    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11075    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11076    break 2
11077  fi
11078done
11079  done
11080IFS=$as_save_IFS
11081
11082fi
11083fi
11084LIPO=$ac_cv_prog_LIPO
11085if test -n "$LIPO"; then
11086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11087$as_echo "$LIPO" >&6; }
11088else
11089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11090$as_echo "no" >&6; }
11091fi
11092
11093
11094fi
11095if test -z "$ac_cv_prog_LIPO"; then
11096  ac_ct_LIPO=$LIPO
11097  # Extract the first word of "lipo", so it can be a program name with args.
11098set dummy lipo; ac_word=$2
11099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11100$as_echo_n "checking for $ac_word... " >&6; }
11101if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11102  $as_echo_n "(cached) " >&6
11103else
11104  if test -n "$ac_ct_LIPO"; then
11105  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11106else
11107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108for as_dir in $PATH
11109do
11110  IFS=$as_save_IFS
11111  test -z "$as_dir" && as_dir=.
11112    for ac_exec_ext in '' $ac_executable_extensions; do
11113  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11114    ac_cv_prog_ac_ct_LIPO="lipo"
11115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11116    break 2
11117  fi
11118done
11119  done
11120IFS=$as_save_IFS
11121
11122fi
11123fi
11124ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11125if test -n "$ac_ct_LIPO"; then
11126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11127$as_echo "$ac_ct_LIPO" >&6; }
11128else
11129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130$as_echo "no" >&6; }
11131fi
11132
11133  if test "x$ac_ct_LIPO" = x; then
11134    LIPO=":"
11135  else
11136    case $cross_compiling:$ac_tool_warned in
11137yes:)
11138{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11140ac_tool_warned=yes ;;
11141esac
11142    LIPO=$ac_ct_LIPO
11143  fi
11144else
11145  LIPO="$ac_cv_prog_LIPO"
11146fi
11147
11148    if test -n "$ac_tool_prefix"; then
11149  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11150set dummy ${ac_tool_prefix}otool; ac_word=$2
11151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11152$as_echo_n "checking for $ac_word... " >&6; }
11153if ${ac_cv_prog_OTOOL+:} false; then :
11154  $as_echo_n "(cached) " >&6
11155else
11156  if test -n "$OTOOL"; then
11157  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11158else
11159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11160for as_dir in $PATH
11161do
11162  IFS=$as_save_IFS
11163  test -z "$as_dir" && as_dir=.
11164    for ac_exec_ext in '' $ac_executable_extensions; do
11165  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11166    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11168    break 2
11169  fi
11170done
11171  done
11172IFS=$as_save_IFS
11173
11174fi
11175fi
11176OTOOL=$ac_cv_prog_OTOOL
11177if test -n "$OTOOL"; then
11178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11179$as_echo "$OTOOL" >&6; }
11180else
11181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11182$as_echo "no" >&6; }
11183fi
11184
11185
11186fi
11187if test -z "$ac_cv_prog_OTOOL"; then
11188  ac_ct_OTOOL=$OTOOL
11189  # Extract the first word of "otool", so it can be a program name with args.
11190set dummy otool; ac_word=$2
11191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11192$as_echo_n "checking for $ac_word... " >&6; }
11193if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11194  $as_echo_n "(cached) " >&6
11195else
11196  if test -n "$ac_ct_OTOOL"; then
11197  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11198else
11199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11200for as_dir in $PATH
11201do
11202  IFS=$as_save_IFS
11203  test -z "$as_dir" && as_dir=.
11204    for ac_exec_ext in '' $ac_executable_extensions; do
11205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11206    ac_cv_prog_ac_ct_OTOOL="otool"
11207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11208    break 2
11209  fi
11210done
11211  done
11212IFS=$as_save_IFS
11213
11214fi
11215fi
11216ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11217if test -n "$ac_ct_OTOOL"; then
11218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11219$as_echo "$ac_ct_OTOOL" >&6; }
11220else
11221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222$as_echo "no" >&6; }
11223fi
11224
11225  if test "x$ac_ct_OTOOL" = x; then
11226    OTOOL=":"
11227  else
11228    case $cross_compiling:$ac_tool_warned in
11229yes:)
11230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11232ac_tool_warned=yes ;;
11233esac
11234    OTOOL=$ac_ct_OTOOL
11235  fi
11236else
11237  OTOOL="$ac_cv_prog_OTOOL"
11238fi
11239
11240    if test -n "$ac_tool_prefix"; then
11241  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11242set dummy ${ac_tool_prefix}otool64; ac_word=$2
11243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11244$as_echo_n "checking for $ac_word... " >&6; }
11245if ${ac_cv_prog_OTOOL64+:} false; then :
11246  $as_echo_n "(cached) " >&6
11247else
11248  if test -n "$OTOOL64"; then
11249  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11250else
11251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252for as_dir in $PATH
11253do
11254  IFS=$as_save_IFS
11255  test -z "$as_dir" && as_dir=.
11256    for ac_exec_ext in '' $ac_executable_extensions; do
11257  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11258    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11260    break 2
11261  fi
11262done
11263  done
11264IFS=$as_save_IFS
11265
11266fi
11267fi
11268OTOOL64=$ac_cv_prog_OTOOL64
11269if test -n "$OTOOL64"; then
11270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11271$as_echo "$OTOOL64" >&6; }
11272else
11273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274$as_echo "no" >&6; }
11275fi
11276
11277
11278fi
11279if test -z "$ac_cv_prog_OTOOL64"; then
11280  ac_ct_OTOOL64=$OTOOL64
11281  # Extract the first word of "otool64", so it can be a program name with args.
11282set dummy otool64; ac_word=$2
11283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11284$as_echo_n "checking for $ac_word... " >&6; }
11285if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11286  $as_echo_n "(cached) " >&6
11287else
11288  if test -n "$ac_ct_OTOOL64"; then
11289  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11290else
11291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11292for as_dir in $PATH
11293do
11294  IFS=$as_save_IFS
11295  test -z "$as_dir" && as_dir=.
11296    for ac_exec_ext in '' $ac_executable_extensions; do
11297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11298    ac_cv_prog_ac_ct_OTOOL64="otool64"
11299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11300    break 2
11301  fi
11302done
11303  done
11304IFS=$as_save_IFS
11305
11306fi
11307fi
11308ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11309if test -n "$ac_ct_OTOOL64"; then
11310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11311$as_echo "$ac_ct_OTOOL64" >&6; }
11312else
11313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314$as_echo "no" >&6; }
11315fi
11316
11317  if test "x$ac_ct_OTOOL64" = x; then
11318    OTOOL64=":"
11319  else
11320    case $cross_compiling:$ac_tool_warned in
11321yes:)
11322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11324ac_tool_warned=yes ;;
11325esac
11326    OTOOL64=$ac_ct_OTOOL64
11327  fi
11328else
11329  OTOOL64="$ac_cv_prog_OTOOL64"
11330fi
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11359$as_echo_n "checking for -single_module linker flag... " >&6; }
11360if ${lt_cv_apple_cc_single_mod+:} false; then :
11361  $as_echo_n "(cached) " >&6
11362else
11363  lt_cv_apple_cc_single_mod=no
11364      if test -z "${LT_MULTI_MODULE}"; then
11365	# By default we will add the -single_module flag. You can override
11366	# by either setting the environment variable LT_MULTI_MODULE
11367	# non-empty at configure time, or by adding -multi_module to the
11368	# link flags.
11369	rm -rf libconftest.dylib*
11370	echo "int foo(void){return 1;}" > conftest.c
11371	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11372-dynamiclib -Wl,-single_module conftest.c" >&5
11373	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11374	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11375        _lt_result=$?
11376	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11377	  lt_cv_apple_cc_single_mod=yes
11378	else
11379	  cat conftest.err >&5
11380	fi
11381	rm -rf libconftest.dylib*
11382	rm -f conftest.*
11383      fi
11384fi
11385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11386$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11387    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11388$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11389if ${lt_cv_ld_exported_symbols_list+:} false; then :
11390  $as_echo_n "(cached) " >&6
11391else
11392  lt_cv_ld_exported_symbols_list=no
11393      save_LDFLAGS=$LDFLAGS
11394      echo "_main" > conftest.sym
11395      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11396      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397/* end confdefs.h.  */
11398
11399int
11400main ()
11401{
11402
11403  ;
11404  return 0;
11405}
11406_ACEOF
11407if ac_fn_c_try_link "$LINENO"; then :
11408  lt_cv_ld_exported_symbols_list=yes
11409else
11410  lt_cv_ld_exported_symbols_list=no
11411fi
11412rm -f core conftest.err conftest.$ac_objext \
11413    conftest$ac_exeext conftest.$ac_ext
11414	LDFLAGS="$save_LDFLAGS"
11415
11416fi
11417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11418$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11419    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11420$as_echo_n "checking for -force_load linker flag... " >&6; }
11421if ${lt_cv_ld_force_load+:} false; then :
11422  $as_echo_n "(cached) " >&6
11423else
11424  lt_cv_ld_force_load=no
11425      cat > conftest.c << _LT_EOF
11426int forced_loaded() { return 2;}
11427_LT_EOF
11428      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11429      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11430      echo "$AR cru libconftest.a conftest.o" >&5
11431      $AR cru libconftest.a conftest.o 2>&5
11432      echo "$RANLIB libconftest.a" >&5
11433      $RANLIB libconftest.a 2>&5
11434      cat > conftest.c << _LT_EOF
11435int main() { return 0;}
11436_LT_EOF
11437      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11438      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11439      _lt_result=$?
11440      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11441	lt_cv_ld_force_load=yes
11442      else
11443	cat conftest.err >&5
11444      fi
11445        rm -f conftest.err libconftest.a conftest conftest.c
11446        rm -rf conftest.dSYM
11447
11448fi
11449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11450$as_echo "$lt_cv_ld_force_load" >&6; }
11451    case $host_os in
11452    rhapsody* | darwin1.[012])
11453      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11454    darwin1.*)
11455      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11456    darwin*) # darwin 5.x on
11457      # if running on 10.5 or later, the deployment target defaults
11458      # to the OS version, if on x86, and 10.4, the deployment
11459      # target defaults to 10.4. Don't you love it?
11460      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11461	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11462	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11463	10.[012]*)
11464	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11465	10.*)
11466	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11467      esac
11468    ;;
11469  esac
11470    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11471      _lt_dar_single_mod='$single_module'
11472    fi
11473    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11474      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11475    else
11476      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11477    fi
11478    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
11479      _lt_dsymutil='~$DSYMUTIL $lib || :'
11480    else
11481      _lt_dsymutil=
11482    fi
11483    ;;
11484  esac
11485
11486for ac_header in dlfcn.h
11487do :
11488  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11489"
11490if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11491  cat >>confdefs.h <<_ACEOF
11492#define HAVE_DLFCN_H 1
11493_ACEOF
11494
11495fi
11496
11497done
11498
11499
11500
11501
11502func_stripname_cnf ()
11503{
11504  case ${2} in
11505  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11506  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11507  esac
11508} # func_stripname_cnf
11509
11510
11511
11512
11513
11514# Set options
11515
11516
11517
11518        enable_dlopen=no
11519
11520
11521  enable_win32_dll=no
11522
11523
11524
11525  # Check whether --enable-static was given.
11526if test "${enable_static+set}" = set; then :
11527  enableval=$enable_static; p=${PACKAGE-default}
11528    case $enableval in
11529    yes) enable_static=yes ;;
11530    no) enable_static=no ;;
11531    *)
11532     enable_static=no
11533      # Look at the argument we got.  We use all the common list separators.
11534      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11535      for pkg in $enableval; do
11536	IFS="$lt_save_ifs"
11537	if test "X$pkg" = "X$p"; then
11538	  enable_static=yes
11539	fi
11540      done
11541      IFS="$lt_save_ifs"
11542      ;;
11543    esac
11544else
11545  enable_static=yes
11546fi
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557# Check whether --with-pic was given.
11558if test "${with_pic+set}" = set; then :
11559  withval=$with_pic; pic_mode="$withval"
11560else
11561  pic_mode=default
11562fi
11563
11564
11565test -z "$pic_mode" && pic_mode=default
11566
11567
11568
11569
11570
11571
11572
11573  # Check whether --enable-fast-install was given.
11574if test "${enable_fast_install+set}" = set; then :
11575  enableval=$enable_fast_install; p=${PACKAGE-default}
11576    case $enableval in
11577    yes) enable_fast_install=yes ;;
11578    no) enable_fast_install=no ;;
11579    *)
11580      enable_fast_install=no
11581      # Look at the argument we got.  We use all the common list separators.
11582      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11583      for pkg in $enableval; do
11584	IFS="$lt_save_ifs"
11585	if test "X$pkg" = "X$p"; then
11586	  enable_fast_install=yes
11587	fi
11588      done
11589      IFS="$lt_save_ifs"
11590      ;;
11591    esac
11592else
11593  enable_fast_install=yes
11594fi
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606# This can be used to rebuild libtool when needed
11607LIBTOOL_DEPS="$ltmain"
11608
11609# Always use our own libtool.
11610LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637test -z "$LN_S" && LN_S="ln -s"
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652if test -n "${ZSH_VERSION+set}" ; then
11653   setopt NO_GLOB_SUBST
11654fi
11655
11656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11657$as_echo_n "checking for objdir... " >&6; }
11658if ${lt_cv_objdir+:} false; then :
11659  $as_echo_n "(cached) " >&6
11660else
11661  rm -f .libs 2>/dev/null
11662mkdir .libs 2>/dev/null
11663if test -d .libs; then
11664  lt_cv_objdir=.libs
11665else
11666  # MS-DOS does not allow filenames that begin with a dot.
11667  lt_cv_objdir=_libs
11668fi
11669rmdir .libs 2>/dev/null
11670fi
11671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11672$as_echo "$lt_cv_objdir" >&6; }
11673objdir=$lt_cv_objdir
11674
11675
11676
11677
11678
11679cat >>confdefs.h <<_ACEOF
11680#define LT_OBJDIR "$lt_cv_objdir/"
11681_ACEOF
11682
11683
11684
11685
11686case $host_os in
11687aix3*)
11688  # AIX sometimes has problems with the GCC collect2 program.  For some
11689  # reason, if we set the COLLECT_NAMES environment variable, the problems
11690  # vanish in a puff of smoke.
11691  if test "X${COLLECT_NAMES+set}" != Xset; then
11692    COLLECT_NAMES=
11693    export COLLECT_NAMES
11694  fi
11695  ;;
11696esac
11697
11698# Global variables:
11699ofile=libtool
11700can_build_shared=yes
11701
11702# All known linkers require a `.a' archive for static linking (except MSVC,
11703# which needs '.lib').
11704libext=a
11705
11706with_gnu_ld="$lt_cv_prog_gnu_ld"
11707
11708old_CC="$CC"
11709old_CFLAGS="$CFLAGS"
11710
11711# Set sane defaults for various variables
11712test -z "$CC" && CC=cc
11713test -z "$LTCC" && LTCC=$CC
11714test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11715test -z "$LD" && LD=ld
11716test -z "$ac_objext" && ac_objext=o
11717
11718for cc_temp in $compiler""; do
11719  case $cc_temp in
11720    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11721    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11722    \-*) ;;
11723    *) break;;
11724  esac
11725done
11726cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11727
11728
11729# Only perform the check for file, if the check method requires it
11730test -z "$MAGIC_CMD" && MAGIC_CMD=file
11731case $deplibs_check_method in
11732file_magic*)
11733  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11734    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11735$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11736if ${lt_cv_path_MAGIC_CMD+:} false; then :
11737  $as_echo_n "(cached) " >&6
11738else
11739  case $MAGIC_CMD in
11740[\\/*] |  ?:[\\/]*)
11741  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11742  ;;
11743*)
11744  lt_save_MAGIC_CMD="$MAGIC_CMD"
11745  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11746  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11747  for ac_dir in $ac_dummy; do
11748    IFS="$lt_save_ifs"
11749    test -z "$ac_dir" && ac_dir=.
11750    if test -f $ac_dir/${ac_tool_prefix}file; then
11751      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11752      if test -n "$file_magic_test_file"; then
11753	case $deplibs_check_method in
11754	"file_magic "*)
11755	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11756	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11757	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11758	    $EGREP "$file_magic_regex" > /dev/null; then
11759	    :
11760	  else
11761	    cat <<_LT_EOF 1>&2
11762
11763*** Warning: the command libtool uses to detect shared libraries,
11764*** $file_magic_cmd, produces output that libtool cannot recognize.
11765*** The result is that libtool may fail to recognize shared libraries
11766*** as such.  This will affect the creation of libtool libraries that
11767*** depend on shared libraries, but programs linked with such libtool
11768*** libraries will work regardless of this problem.  Nevertheless, you
11769*** may want to report the problem to your system manager and/or to
11770*** bug-libtool@gnu.org
11771
11772_LT_EOF
11773	  fi ;;
11774	esac
11775      fi
11776      break
11777    fi
11778  done
11779  IFS="$lt_save_ifs"
11780  MAGIC_CMD="$lt_save_MAGIC_CMD"
11781  ;;
11782esac
11783fi
11784
11785MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11786if test -n "$MAGIC_CMD"; then
11787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11788$as_echo "$MAGIC_CMD" >&6; }
11789else
11790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791$as_echo "no" >&6; }
11792fi
11793
11794
11795
11796
11797
11798if test -z "$lt_cv_path_MAGIC_CMD"; then
11799  if test -n "$ac_tool_prefix"; then
11800    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11801$as_echo_n "checking for file... " >&6; }
11802if ${lt_cv_path_MAGIC_CMD+:} false; then :
11803  $as_echo_n "(cached) " >&6
11804else
11805  case $MAGIC_CMD in
11806[\\/*] |  ?:[\\/]*)
11807  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11808  ;;
11809*)
11810  lt_save_MAGIC_CMD="$MAGIC_CMD"
11811  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11812  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11813  for ac_dir in $ac_dummy; do
11814    IFS="$lt_save_ifs"
11815    test -z "$ac_dir" && ac_dir=.
11816    if test -f $ac_dir/file; then
11817      lt_cv_path_MAGIC_CMD="$ac_dir/file"
11818      if test -n "$file_magic_test_file"; then
11819	case $deplibs_check_method in
11820	"file_magic "*)
11821	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11822	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11823	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11824	    $EGREP "$file_magic_regex" > /dev/null; then
11825	    :
11826	  else
11827	    cat <<_LT_EOF 1>&2
11828
11829*** Warning: the command libtool uses to detect shared libraries,
11830*** $file_magic_cmd, produces output that libtool cannot recognize.
11831*** The result is that libtool may fail to recognize shared libraries
11832*** as such.  This will affect the creation of libtool libraries that
11833*** depend on shared libraries, but programs linked with such libtool
11834*** libraries will work regardless of this problem.  Nevertheless, you
11835*** may want to report the problem to your system manager and/or to
11836*** bug-libtool@gnu.org
11837
11838_LT_EOF
11839	  fi ;;
11840	esac
11841      fi
11842      break
11843    fi
11844  done
11845  IFS="$lt_save_ifs"
11846  MAGIC_CMD="$lt_save_MAGIC_CMD"
11847  ;;
11848esac
11849fi
11850
11851MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11852if test -n "$MAGIC_CMD"; then
11853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11854$as_echo "$MAGIC_CMD" >&6; }
11855else
11856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11857$as_echo "no" >&6; }
11858fi
11859
11860
11861  else
11862    MAGIC_CMD=:
11863  fi
11864fi
11865
11866  fi
11867  ;;
11868esac
11869
11870# Use C for the default configuration in the libtool script
11871
11872lt_save_CC="$CC"
11873ac_ext=c
11874ac_cpp='$CPP $CPPFLAGS'
11875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11877ac_compiler_gnu=$ac_cv_c_compiler_gnu
11878
11879
11880# Source file extension for C test sources.
11881ac_ext=c
11882
11883# Object file extension for compiled C test sources.
11884objext=o
11885objext=$objext
11886
11887# Code to be used in simple compile tests
11888lt_simple_compile_test_code="int some_variable = 0;"
11889
11890# Code to be used in simple link tests
11891lt_simple_link_test_code='int main(){return(0);}'
11892
11893
11894
11895
11896
11897
11898
11899# If no C compiler was specified, use CC.
11900LTCC=${LTCC-"$CC"}
11901
11902# If no C compiler flags were specified, use CFLAGS.
11903LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11904
11905# Allow CC to be a program name with arguments.
11906compiler=$CC
11907
11908# Save the default compiler, since it gets overwritten when the other
11909# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11910compiler_DEFAULT=$CC
11911
11912# save warnings/boilerplate of simple test code
11913ac_outfile=conftest.$ac_objext
11914echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11915eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11916_lt_compiler_boilerplate=`cat conftest.err`
11917$RM conftest*
11918
11919ac_outfile=conftest.$ac_objext
11920echo "$lt_simple_link_test_code" >conftest.$ac_ext
11921eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11922_lt_linker_boilerplate=`cat conftest.err`
11923$RM -r conftest*
11924
11925
11926## CAVEAT EMPTOR:
11927## There is no encapsulation within the following macros, do not change
11928## the running order or otherwise move them around unless you know exactly
11929## what you are doing...
11930if test -n "$compiler"; then
11931
11932lt_prog_compiler_no_builtin_flag=
11933
11934if test "$GCC" = yes; then
11935  case $cc_basename in
11936  nvcc*)
11937    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11938  *)
11939    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11940  esac
11941
11942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11943$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11944if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11945  $as_echo_n "(cached) " >&6
11946else
11947  lt_cv_prog_compiler_rtti_exceptions=no
11948   ac_outfile=conftest.$ac_objext
11949   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11950   lt_compiler_flag="-fno-rtti -fno-exceptions"
11951   # Insert the option either (1) after the last *FLAGS variable, or
11952   # (2) before a word containing "conftest.", or (3) at the end.
11953   # Note that $ac_compile itself does not contain backslashes and begins
11954   # with a dollar sign (not a hyphen), so the echo should work correctly.
11955   # The option is referenced via a variable to avoid confusing sed.
11956   lt_compile=`echo "$ac_compile" | $SED \
11957   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11958   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11959   -e 's:$: $lt_compiler_flag:'`
11960   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11961   (eval "$lt_compile" 2>conftest.err)
11962   ac_status=$?
11963   cat conftest.err >&5
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   if (exit $ac_status) && test -s "$ac_outfile"; then
11966     # The compiler can only warn and ignore the option if not recognized
11967     # So say no if there are warnings other than the usual output.
11968     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11969     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11970     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11971       lt_cv_prog_compiler_rtti_exceptions=yes
11972     fi
11973   fi
11974   $RM conftest*
11975
11976fi
11977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11978$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11979
11980if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11981    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11982else
11983    :
11984fi
11985
11986fi
11987
11988
11989
11990
11991
11992
11993  lt_prog_compiler_wl=
11994lt_prog_compiler_pic=
11995lt_prog_compiler_static=
11996
11997
11998  if test "$GCC" = yes; then
11999    lt_prog_compiler_wl='-Wl,'
12000    lt_prog_compiler_static='-static'
12001
12002    case $host_os in
12003      aix*)
12004      # All AIX code is PIC.
12005      if test "$host_cpu" = ia64; then
12006	# AIX 5 now supports IA64 processor
12007	lt_prog_compiler_static='-Bstatic'
12008      fi
12009      ;;
12010
12011    amigaos*)
12012      case $host_cpu in
12013      powerpc)
12014            # see comment about AmigaOS4 .so support
12015            lt_prog_compiler_pic='-fPIC'
12016        ;;
12017      m68k)
12018            # FIXME: we need at least 68020 code to build shared libraries, but
12019            # adding the `-m68020' flag to GCC prevents building anything better,
12020            # like `-m68040'.
12021            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12022        ;;
12023      esac
12024      ;;
12025
12026    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12027      # PIC is the default for these OSes.
12028      ;;
12029
12030    mingw* | cygwin* | pw32* | os2* | cegcc*)
12031      # This hack is so that the source file can tell whether it is being
12032      # built for inclusion in a dll (and should export symbols for example).
12033      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12034      # (--disable-auto-import) libraries
12035      lt_prog_compiler_pic='-DDLL_EXPORT'
12036      ;;
12037
12038    darwin* | rhapsody*)
12039      # PIC is the default on this platform
12040      # Common symbols not allowed in MH_DYLIB files
12041      lt_prog_compiler_pic='-fno-common'
12042      ;;
12043
12044    haiku*)
12045      # PIC is the default for Haiku.
12046      # The "-static" flag exists, but is broken.
12047      lt_prog_compiler_static=
12048      ;;
12049
12050    hpux*)
12051      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12052      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12053      # sets the default TLS model and affects inlining.
12054      case $host_cpu in
12055      hppa*64*)
12056	# +Z the default
12057	;;
12058      *)
12059	lt_prog_compiler_pic='-fPIC'
12060	;;
12061      esac
12062      ;;
12063
12064    interix[3-9]*)
12065      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12066      # Instead, we relocate shared libraries at runtime.
12067      ;;
12068
12069    msdosdjgpp*)
12070      # Just because we use GCC doesn't mean we suddenly get shared libraries
12071      # on systems that don't support them.
12072      lt_prog_compiler_can_build_shared=no
12073      enable_shared=no
12074      ;;
12075
12076    *nto* | *qnx*)
12077      # QNX uses GNU C++, but need to define -shared option too, otherwise
12078      # it will coredump.
12079      lt_prog_compiler_pic='-fPIC -shared'
12080      ;;
12081
12082    sysv4*MP*)
12083      if test -d /usr/nec; then
12084	lt_prog_compiler_pic=-Kconform_pic
12085      fi
12086      ;;
12087
12088    *)
12089      lt_prog_compiler_pic='-fPIC'
12090      ;;
12091    esac
12092
12093    case $cc_basename in
12094    nvcc*) # Cuda Compiler Driver 2.2
12095      lt_prog_compiler_wl='-Xlinker '
12096      lt_prog_compiler_pic='-Xcompiler -fPIC'
12097      ;;
12098    esac
12099  else
12100    # PORTME Check for flag to pass linker flags through the system compiler.
12101    case $host_os in
12102    aix*)
12103      lt_prog_compiler_wl='-Wl,'
12104      if test "$host_cpu" = ia64; then
12105	# AIX 5 now supports IA64 processor
12106	lt_prog_compiler_static='-Bstatic'
12107      else
12108	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12109      fi
12110      ;;
12111
12112    mingw* | cygwin* | pw32* | os2* | cegcc*)
12113      # This hack is so that the source file can tell whether it is being
12114      # built for inclusion in a dll (and should export symbols for example).
12115      lt_prog_compiler_pic='-DDLL_EXPORT'
12116      ;;
12117
12118    hpux9* | hpux10* | hpux11*)
12119      lt_prog_compiler_wl='-Wl,'
12120      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12121      # not for PA HP-UX.
12122      case $host_cpu in
12123      hppa*64*|ia64*)
12124	# +Z the default
12125	;;
12126      *)
12127	lt_prog_compiler_pic='+Z'
12128	;;
12129      esac
12130      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12131      lt_prog_compiler_static='${wl}-a ${wl}archive'
12132      ;;
12133
12134    irix5* | irix6* | nonstopux*)
12135      lt_prog_compiler_wl='-Wl,'
12136      # PIC (with -KPIC) is the default.
12137      lt_prog_compiler_static='-non_shared'
12138      ;;
12139
12140    linux* | k*bsd*-gnu | kopensolaris*-gnu)
12141      case $cc_basename in
12142      # old Intel for x86_64 which still supported -KPIC.
12143      ecc*)
12144	lt_prog_compiler_wl='-Wl,'
12145	lt_prog_compiler_pic='-KPIC'
12146	lt_prog_compiler_static='-static'
12147        ;;
12148      # icc used to be incompatible with GCC.
12149      # ICC 10 doesn't accept -KPIC any more.
12150      icc* | ifort*)
12151	lt_prog_compiler_wl='-Wl,'
12152	lt_prog_compiler_pic='-fPIC'
12153	lt_prog_compiler_static='-static'
12154        ;;
12155      # Lahey Fortran 8.1.
12156      lf95*)
12157	lt_prog_compiler_wl='-Wl,'
12158	lt_prog_compiler_pic='--shared'
12159	lt_prog_compiler_static='--static'
12160	;;
12161      nagfor*)
12162	# NAG Fortran compiler
12163	lt_prog_compiler_wl='-Wl,-Wl,,'
12164	lt_prog_compiler_pic='-PIC'
12165	lt_prog_compiler_static='-Bstatic'
12166	;;
12167      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12168        # Portland Group compilers (*not* the Pentium gcc compiler,
12169	# which looks to be a dead project)
12170	lt_prog_compiler_wl='-Wl,'
12171	lt_prog_compiler_pic='-fpic'
12172	lt_prog_compiler_static='-Bstatic'
12173        ;;
12174      ccc*)
12175        lt_prog_compiler_wl='-Wl,'
12176        # All Alpha code is PIC.
12177        lt_prog_compiler_static='-non_shared'
12178        ;;
12179      xl* | bgxl* | bgf* | mpixl*)
12180	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12181	lt_prog_compiler_wl='-Wl,'
12182	lt_prog_compiler_pic='-qpic'
12183	lt_prog_compiler_static='-qstaticlink'
12184	;;
12185      *)
12186	case `$CC -V 2>&1 | sed 5q` in
12187	*Sun\ F* | *Sun*Fortran*)
12188	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
12189	  lt_prog_compiler_pic='-KPIC'
12190	  lt_prog_compiler_static='-Bstatic'
12191	  lt_prog_compiler_wl=''
12192	  ;;
12193	*Sun\ C*)
12194	  # Sun C 5.9
12195	  lt_prog_compiler_pic='-KPIC'
12196	  lt_prog_compiler_static='-Bstatic'
12197	  lt_prog_compiler_wl='-Wl,'
12198	  ;;
12199	esac
12200	;;
12201      esac
12202      ;;
12203
12204    newsos6)
12205      lt_prog_compiler_pic='-KPIC'
12206      lt_prog_compiler_static='-Bstatic'
12207      ;;
12208
12209    *nto* | *qnx*)
12210      # QNX uses GNU C++, but need to define -shared option too, otherwise
12211      # it will coredump.
12212      lt_prog_compiler_pic='-fPIC -shared'
12213      ;;
12214
12215    osf3* | osf4* | osf5*)
12216      lt_prog_compiler_wl='-Wl,'
12217      # All OSF/1 code is PIC.
12218      lt_prog_compiler_static='-non_shared'
12219      ;;
12220
12221    rdos*)
12222      lt_prog_compiler_static='-non_shared'
12223      ;;
12224
12225    solaris*)
12226      lt_prog_compiler_pic='-KPIC'
12227      lt_prog_compiler_static='-Bstatic'
12228      case $cc_basename in
12229      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12230	lt_prog_compiler_wl='-Qoption ld ';;
12231      *)
12232	lt_prog_compiler_wl='-Wl,';;
12233      esac
12234      ;;
12235
12236    sunos4*)
12237      lt_prog_compiler_wl='-Qoption ld '
12238      lt_prog_compiler_pic='-PIC'
12239      lt_prog_compiler_static='-Bstatic'
12240      ;;
12241
12242    sysv4 | sysv4.2uw2* | sysv4.3*)
12243      lt_prog_compiler_wl='-Wl,'
12244      lt_prog_compiler_pic='-KPIC'
12245      lt_prog_compiler_static='-Bstatic'
12246      ;;
12247
12248    sysv4*MP*)
12249      if test -d /usr/nec ;then
12250	lt_prog_compiler_pic='-Kconform_pic'
12251	lt_prog_compiler_static='-Bstatic'
12252      fi
12253      ;;
12254
12255    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12256      lt_prog_compiler_wl='-Wl,'
12257      lt_prog_compiler_pic='-KPIC'
12258      lt_prog_compiler_static='-Bstatic'
12259      ;;
12260
12261    unicos*)
12262      lt_prog_compiler_wl='-Wl,'
12263      lt_prog_compiler_can_build_shared=no
12264      ;;
12265
12266    uts4*)
12267      lt_prog_compiler_pic='-pic'
12268      lt_prog_compiler_static='-Bstatic'
12269      ;;
12270
12271    *)
12272      lt_prog_compiler_can_build_shared=no
12273      ;;
12274    esac
12275  fi
12276
12277case $host_os in
12278  # For platforms which do not support PIC, -DPIC is meaningless:
12279  *djgpp*)
12280    lt_prog_compiler_pic=
12281    ;;
12282  *)
12283    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12284    ;;
12285esac
12286
12287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12288$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12289if ${lt_cv_prog_compiler_pic+:} false; then :
12290  $as_echo_n "(cached) " >&6
12291else
12292  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12293fi
12294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12295$as_echo "$lt_cv_prog_compiler_pic" >&6; }
12296lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12297
12298#
12299# Check to make sure the PIC flag actually works.
12300#
12301if test -n "$lt_prog_compiler_pic"; then
12302  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12303$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12304if ${lt_cv_prog_compiler_pic_works+:} false; then :
12305  $as_echo_n "(cached) " >&6
12306else
12307  lt_cv_prog_compiler_pic_works=no
12308   ac_outfile=conftest.$ac_objext
12309   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12310   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12311   # Insert the option either (1) after the last *FLAGS variable, or
12312   # (2) before a word containing "conftest.", or (3) at the end.
12313   # Note that $ac_compile itself does not contain backslashes and begins
12314   # with a dollar sign (not a hyphen), so the echo should work correctly.
12315   # The option is referenced via a variable to avoid confusing sed.
12316   lt_compile=`echo "$ac_compile" | $SED \
12317   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12318   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12319   -e 's:$: $lt_compiler_flag:'`
12320   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12321   (eval "$lt_compile" 2>conftest.err)
12322   ac_status=$?
12323   cat conftest.err >&5
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   if (exit $ac_status) && test -s "$ac_outfile"; then
12326     # The compiler can only warn and ignore the option if not recognized
12327     # So say no if there are warnings other than the usual output.
12328     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12329     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12330     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12331       lt_cv_prog_compiler_pic_works=yes
12332     fi
12333   fi
12334   $RM conftest*
12335
12336fi
12337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12338$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12339
12340if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12341    case $lt_prog_compiler_pic in
12342     "" | " "*) ;;
12343     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12344     esac
12345else
12346    lt_prog_compiler_pic=
12347     lt_prog_compiler_can_build_shared=no
12348fi
12349
12350fi
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362#
12363# Check to make sure the static flag actually works.
12364#
12365wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12367$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12368if ${lt_cv_prog_compiler_static_works+:} false; then :
12369  $as_echo_n "(cached) " >&6
12370else
12371  lt_cv_prog_compiler_static_works=no
12372   save_LDFLAGS="$LDFLAGS"
12373   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12374   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12375   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12376     # The linker can only warn and ignore the option if not recognized
12377     # So say no if there are warnings
12378     if test -s conftest.err; then
12379       # Append any errors to the config.log.
12380       cat conftest.err 1>&5
12381       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12382       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12383       if diff conftest.exp conftest.er2 >/dev/null; then
12384         lt_cv_prog_compiler_static_works=yes
12385       fi
12386     else
12387       lt_cv_prog_compiler_static_works=yes
12388     fi
12389   fi
12390   $RM -r conftest*
12391   LDFLAGS="$save_LDFLAGS"
12392
12393fi
12394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12395$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12396
12397if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12398    :
12399else
12400    lt_prog_compiler_static=
12401fi
12402
12403
12404
12405
12406
12407
12408
12409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12410$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12411if ${lt_cv_prog_compiler_c_o+:} false; then :
12412  $as_echo_n "(cached) " >&6
12413else
12414  lt_cv_prog_compiler_c_o=no
12415   $RM -r conftest 2>/dev/null
12416   mkdir conftest
12417   cd conftest
12418   mkdir out
12419   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12420
12421   lt_compiler_flag="-o out/conftest2.$ac_objext"
12422   # Insert the option either (1) after the last *FLAGS variable, or
12423   # (2) before a word containing "conftest.", or (3) at the end.
12424   # Note that $ac_compile itself does not contain backslashes and begins
12425   # with a dollar sign (not a hyphen), so the echo should work correctly.
12426   lt_compile=`echo "$ac_compile" | $SED \
12427   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12428   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12429   -e 's:$: $lt_compiler_flag:'`
12430   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12431   (eval "$lt_compile" 2>out/conftest.err)
12432   ac_status=$?
12433   cat out/conftest.err >&5
12434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12436   then
12437     # The compiler can only warn and ignore the option if not recognized
12438     # So say no if there are warnings
12439     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12440     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12441     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12442       lt_cv_prog_compiler_c_o=yes
12443     fi
12444   fi
12445   chmod u+w . 2>&5
12446   $RM conftest*
12447   # SGI C++ compiler will create directory out/ii_files/ for
12448   # template instantiation
12449   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12450   $RM out/* && rmdir out
12451   cd ..
12452   $RM -r conftest
12453   $RM conftest*
12454
12455fi
12456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12457$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12458
12459
12460
12461
12462
12463
12464  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12465$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12466if ${lt_cv_prog_compiler_c_o+:} false; then :
12467  $as_echo_n "(cached) " >&6
12468else
12469  lt_cv_prog_compiler_c_o=no
12470   $RM -r conftest 2>/dev/null
12471   mkdir conftest
12472   cd conftest
12473   mkdir out
12474   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12475
12476   lt_compiler_flag="-o out/conftest2.$ac_objext"
12477   # Insert the option either (1) after the last *FLAGS variable, or
12478   # (2) before a word containing "conftest.", or (3) at the end.
12479   # Note that $ac_compile itself does not contain backslashes and begins
12480   # with a dollar sign (not a hyphen), so the echo should work correctly.
12481   lt_compile=`echo "$ac_compile" | $SED \
12482   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12483   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12484   -e 's:$: $lt_compiler_flag:'`
12485   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12486   (eval "$lt_compile" 2>out/conftest.err)
12487   ac_status=$?
12488   cat out/conftest.err >&5
12489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12491   then
12492     # The compiler can only warn and ignore the option if not recognized
12493     # So say no if there are warnings
12494     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12495     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12496     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12497       lt_cv_prog_compiler_c_o=yes
12498     fi
12499   fi
12500   chmod u+w . 2>&5
12501   $RM conftest*
12502   # SGI C++ compiler will create directory out/ii_files/ for
12503   # template instantiation
12504   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12505   $RM out/* && rmdir out
12506   cd ..
12507   $RM -r conftest
12508   $RM conftest*
12509
12510fi
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12512$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12513
12514
12515
12516
12517hard_links="nottested"
12518if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12519  # do not overwrite the value of need_locks provided by the user
12520  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12521$as_echo_n "checking if we can lock with hard links... " >&6; }
12522  hard_links=yes
12523  $RM conftest*
12524  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12525  touch conftest.a
12526  ln conftest.a conftest.b 2>&5 || hard_links=no
12527  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12529$as_echo "$hard_links" >&6; }
12530  if test "$hard_links" = no; then
12531    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12532$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12533    need_locks=warn
12534  fi
12535else
12536  need_locks=no
12537fi
12538
12539
12540
12541
12542
12543
12544  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12545$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12546
12547  runpath_var=
12548  allow_undefined_flag=
12549  always_export_symbols=no
12550  archive_cmds=
12551  archive_expsym_cmds=
12552  compiler_needs_object=no
12553  enable_shared_with_static_runtimes=no
12554  export_dynamic_flag_spec=
12555  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12556  hardcode_automatic=no
12557  hardcode_direct=no
12558  hardcode_direct_absolute=no
12559  hardcode_libdir_flag_spec=
12560  hardcode_libdir_flag_spec_ld=
12561  hardcode_libdir_separator=
12562  hardcode_minus_L=no
12563  hardcode_shlibpath_var=unsupported
12564  inherit_rpath=no
12565  link_all_deplibs=unknown
12566  module_cmds=
12567  module_expsym_cmds=
12568  old_archive_from_new_cmds=
12569  old_archive_from_expsyms_cmds=
12570  thread_safe_flag_spec=
12571  whole_archive_flag_spec=
12572  # include_expsyms should be a list of space-separated symbols to be *always*
12573  # included in the symbol list
12574  include_expsyms=
12575  # exclude_expsyms can be an extended regexp of symbols to exclude
12576  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12577  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12578  # as well as any symbol that contains `d'.
12579  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12580  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12581  # platforms (ab)use it in PIC code, but their linkers get confused if
12582  # the symbol is explicitly referenced.  Since portable code cannot
12583  # rely on this symbol name, it's probably fine to never include it in
12584  # preloaded symbol tables.
12585  # Exclude shared library initialization/finalization symbols.
12586  extract_expsyms_cmds=
12587
12588  case $host_os in
12589  cygwin* | mingw* | pw32* | cegcc*)
12590    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12591    # When not using gcc, we currently assume that we are using
12592    # Microsoft Visual C++.
12593    if test "$GCC" != yes; then
12594      with_gnu_ld=no
12595    fi
12596    ;;
12597  interix*)
12598    # we just hope/assume this is gcc and not c89 (= MSVC++)
12599    with_gnu_ld=yes
12600    ;;
12601  openbsd*)
12602    with_gnu_ld=no
12603    ;;
12604  esac
12605
12606  ld_shlibs=yes
12607
12608  # On some targets, GNU ld is compatible enough with the native linker
12609  # that we're better off using the native interface for both.
12610  lt_use_gnu_ld_interface=no
12611  if test "$with_gnu_ld" = yes; then
12612    case $host_os in
12613      aix*)
12614	# The AIX port of GNU ld has always aspired to compatibility
12615	# with the native linker.  However, as the warning in the GNU ld
12616	# block says, versions before 2.19.5* couldn't really create working
12617	# shared libraries, regardless of the interface used.
12618	case `$LD -v 2>&1` in
12619	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12620	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12621	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12622	  *)
12623	    lt_use_gnu_ld_interface=yes
12624	    ;;
12625	esac
12626	;;
12627      *)
12628	lt_use_gnu_ld_interface=yes
12629	;;
12630    esac
12631  fi
12632
12633  if test "$lt_use_gnu_ld_interface" = yes; then
12634    # If archive_cmds runs LD, not CC, wlarc should be empty
12635    wlarc='${wl}'
12636
12637    # Set some defaults for GNU ld with shared library support. These
12638    # are reset later if shared libraries are not supported. Putting them
12639    # here allows them to be overridden if necessary.
12640    runpath_var=LD_RUN_PATH
12641    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12642    export_dynamic_flag_spec='${wl}--export-dynamic'
12643    # ancient GNU ld didn't support --whole-archive et. al.
12644    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12645      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12646    else
12647      whole_archive_flag_spec=
12648    fi
12649    supports_anon_versioning=no
12650    case `$LD -v 2>&1` in
12651      *GNU\ gold*) supports_anon_versioning=yes ;;
12652      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12653      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12654      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12655      *\ 2.11.*) ;; # other 2.11 versions
12656      *) supports_anon_versioning=yes ;;
12657    esac
12658
12659    # See if GNU ld supports shared libraries.
12660    case $host_os in
12661    aix[3-9]*)
12662      # On AIX/PPC, the GNU linker is very broken
12663      if test "$host_cpu" != ia64; then
12664	ld_shlibs=no
12665	cat <<_LT_EOF 1>&2
12666
12667*** Warning: the GNU linker, at least up to release 2.19, is reported
12668*** to be unable to reliably create shared libraries on AIX.
12669*** Therefore, libtool is disabling shared libraries support.  If you
12670*** really care for shared libraries, you may want to install binutils
12671*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12672*** You will then need to restart the configuration process.
12673
12674_LT_EOF
12675      fi
12676      ;;
12677
12678    amigaos*)
12679      case $host_cpu in
12680      powerpc)
12681            # see comment about AmigaOS4 .so support
12682            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12683            archive_expsym_cmds=''
12684        ;;
12685      m68k)
12686            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)'
12687            hardcode_libdir_flag_spec='-L$libdir'
12688            hardcode_minus_L=yes
12689        ;;
12690      esac
12691      ;;
12692
12693    beos*)
12694      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12695	allow_undefined_flag=unsupported
12696	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12697	# support --undefined.  This deserves some investigation.  FIXME
12698	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12699      else
12700	ld_shlibs=no
12701      fi
12702      ;;
12703
12704    cygwin* | mingw* | pw32* | cegcc*)
12705      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12706      # as there is no search path for DLLs.
12707      hardcode_libdir_flag_spec='-L$libdir'
12708      export_dynamic_flag_spec='${wl}--export-all-symbols'
12709      allow_undefined_flag=unsupported
12710      always_export_symbols=no
12711      enable_shared_with_static_runtimes=yes
12712      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'
12713      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12714
12715      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12716        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12717	# If the export-symbols file already is a .def file (1st line
12718	# is EXPORTS), use it as is; otherwise, prepend...
12719	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12720	  cp $export_symbols $output_objdir/$soname.def;
12721	else
12722	  echo EXPORTS > $output_objdir/$soname.def;
12723	  cat $export_symbols >> $output_objdir/$soname.def;
12724	fi~
12725	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12726      else
12727	ld_shlibs=no
12728      fi
12729      ;;
12730
12731    haiku*)
12732      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12733      link_all_deplibs=yes
12734      ;;
12735
12736    interix[3-9]*)
12737      hardcode_direct=no
12738      hardcode_shlibpath_var=no
12739      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12740      export_dynamic_flag_spec='${wl}-E'
12741      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12742      # Instead, shared libraries are loaded at an image base (0x10000000 by
12743      # default) and relocated if they conflict, which is a slow very memory
12744      # consuming and fragmenting process.  To avoid this, we pick a random,
12745      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12746      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12747      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12748      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'
12749      ;;
12750
12751    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12752      tmp_diet=no
12753      if test "$host_os" = linux-dietlibc; then
12754	case $cc_basename in
12755	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12756	esac
12757      fi
12758      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12759	 && test "$tmp_diet" = no
12760      then
12761	tmp_addflag=' $pic_flag'
12762	tmp_sharedflag='-shared'
12763	case $cc_basename,$host_cpu in
12764        pgcc*)				# Portland Group C compiler
12765	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12766	  tmp_addflag=' $pic_flag'
12767	  ;;
12768	pgf77* | pgf90* | pgf95* | pgfortran*)
12769					# Portland Group f77 and f90 compilers
12770	  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'
12771	  tmp_addflag=' $pic_flag -Mnomain' ;;
12772	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12773	  tmp_addflag=' -i_dynamic' ;;
12774	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12775	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12776	ifc* | ifort*)			# Intel Fortran compiler
12777	  tmp_addflag=' -nofor_main' ;;
12778	lf95*)				# Lahey Fortran 8.1
12779	  whole_archive_flag_spec=
12780	  tmp_sharedflag='--shared' ;;
12781	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12782	  tmp_sharedflag='-qmkshrobj'
12783	  tmp_addflag= ;;
12784	nvcc*)	# Cuda Compiler Driver 2.2
12785	  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'
12786	  compiler_needs_object=yes
12787	  ;;
12788	esac
12789	case `$CC -V 2>&1 | sed 5q` in
12790	*Sun\ C*)			# Sun C 5.9
12791	  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'
12792	  compiler_needs_object=yes
12793	  tmp_sharedflag='-G' ;;
12794	*Sun\ F*)			# Sun Fortran 8.3
12795	  tmp_sharedflag='-G' ;;
12796	esac
12797	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12798
12799        if test "x$supports_anon_versioning" = xyes; then
12800          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12801	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12802	    echo "local: *; };" >> $output_objdir/$libname.ver~
12803	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12804        fi
12805
12806	case $cc_basename in
12807	xlf* | bgf* | bgxlf* | mpixlf*)
12808	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12809	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12810	  hardcode_libdir_flag_spec=
12811	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
12812	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12813	  if test "x$supports_anon_versioning" = xyes; then
12814	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12815	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12816	      echo "local: *; };" >> $output_objdir/$libname.ver~
12817	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12818	  fi
12819	  ;;
12820	esac
12821      else
12822        ld_shlibs=no
12823      fi
12824      ;;
12825
12826    netbsd*)
12827      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12828	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12829	wlarc=
12830      else
12831	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12832	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12833      fi
12834      ;;
12835
12836    solaris*)
12837      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12838	ld_shlibs=no
12839	cat <<_LT_EOF 1>&2
12840
12841*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12842*** create shared libraries on Solaris systems.  Therefore, libtool
12843*** is disabling shared libraries support.  We urge you to upgrade GNU
12844*** binutils to release 2.9.1 or newer.  Another option is to modify
12845*** your PATH or compiler configuration so that the native linker is
12846*** used, and then restart.
12847
12848_LT_EOF
12849      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12850	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12851	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12852      else
12853	ld_shlibs=no
12854      fi
12855      ;;
12856
12857    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12858      case `$LD -v 2>&1` in
12859        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12860	ld_shlibs=no
12861	cat <<_LT_EOF 1>&2
12862
12863*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12864*** reliably create shared libraries on SCO systems.  Therefore, libtool
12865*** is disabling shared libraries support.  We urge you to upgrade GNU
12866*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12867*** your PATH or compiler configuration so that the native linker is
12868*** used, and then restart.
12869
12870_LT_EOF
12871	;;
12872	*)
12873	  # For security reasons, it is highly recommended that you always
12874	  # use absolute paths for naming shared libraries, and exclude the
12875	  # DT_RUNPATH tag from executables and libraries.  But doing so
12876	  # requires that you compile everything twice, which is a pain.
12877	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12878	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12879	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12880	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12881	  else
12882	    ld_shlibs=no
12883	  fi
12884	;;
12885      esac
12886      ;;
12887
12888    sunos4*)
12889      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12890      wlarc=
12891      hardcode_direct=yes
12892      hardcode_shlibpath_var=no
12893      ;;
12894
12895    *)
12896      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12897	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12898	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12899      else
12900	ld_shlibs=no
12901      fi
12902      ;;
12903    esac
12904
12905    if test "$ld_shlibs" = no; then
12906      runpath_var=
12907      hardcode_libdir_flag_spec=
12908      export_dynamic_flag_spec=
12909      whole_archive_flag_spec=
12910    fi
12911  else
12912    # PORTME fill in a description of your system's linker (not GNU ld)
12913    case $host_os in
12914    aix3*)
12915      allow_undefined_flag=unsupported
12916      always_export_symbols=yes
12917      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'
12918      # Note: this linker hardcodes the directories in LIBPATH if there
12919      # are no directories specified by -L.
12920      hardcode_minus_L=yes
12921      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12922	# Neither direct hardcoding nor static linking is supported with a
12923	# broken collect2.
12924	hardcode_direct=unsupported
12925      fi
12926      ;;
12927
12928    aix[4-9]*)
12929      if test "$host_cpu" = ia64; then
12930	# On IA64, the linker does run time linking by default, so we don't
12931	# have to do anything special.
12932	aix_use_runtimelinking=no
12933	exp_sym_flag='-Bexport'
12934	no_entry_flag=""
12935      else
12936	# If we're using GNU nm, then we don't want the "-C" option.
12937	# -C means demangle to AIX nm, but means don't demangle with GNU nm
12938	# Also, AIX nm treats weak defined symbols like other global
12939	# defined symbols, whereas GNU nm marks them as "W".
12940	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12941	  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'
12942	else
12943	  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'
12944	fi
12945	aix_use_runtimelinking=no
12946
12947	# Test if we are trying to use run time linking or normal
12948	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12949	# need to do runtime linking.
12950	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12951	  for ld_flag in $LDFLAGS; do
12952	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12953	    aix_use_runtimelinking=yes
12954	    break
12955	  fi
12956	  done
12957	  ;;
12958	esac
12959
12960	exp_sym_flag='-bexport'
12961	no_entry_flag='-bnoentry'
12962      fi
12963
12964      # When large executables or shared objects are built, AIX ld can
12965      # have problems creating the table of contents.  If linking a library
12966      # or program results in "error TOC overflow" add -mminimal-toc to
12967      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12968      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12969
12970      archive_cmds=''
12971      hardcode_direct=yes
12972      hardcode_direct_absolute=yes
12973      hardcode_libdir_separator=':'
12974      link_all_deplibs=yes
12975      file_list_spec='${wl}-f,'
12976
12977      if test "$GCC" = yes; then
12978	case $host_os in aix4.[012]|aix4.[012].*)
12979	# We only want to do this on AIX 4.2 and lower, the check
12980	# below for broken collect2 doesn't work under 4.3+
12981	  collect2name=`${CC} -print-prog-name=collect2`
12982	  if test -f "$collect2name" &&
12983	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12984	  then
12985	  # We have reworked collect2
12986	  :
12987	  else
12988	  # We have old collect2
12989	  hardcode_direct=unsupported
12990	  # It fails to find uninstalled libraries when the uninstalled
12991	  # path is not listed in the libpath.  Setting hardcode_minus_L
12992	  # to unsupported forces relinking
12993	  hardcode_minus_L=yes
12994	  hardcode_libdir_flag_spec='-L$libdir'
12995	  hardcode_libdir_separator=
12996	  fi
12997	  ;;
12998	esac
12999	shared_flag='-shared'
13000	if test "$aix_use_runtimelinking" = yes; then
13001	  shared_flag="$shared_flag "'${wl}-G'
13002	fi
13003      else
13004	# not using gcc
13005	if test "$host_cpu" = ia64; then
13006	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13007	# chokes on -Wl,-G. The following line is correct:
13008	  shared_flag='-G'
13009	else
13010	  if test "$aix_use_runtimelinking" = yes; then
13011	    shared_flag='${wl}-G'
13012	  else
13013	    shared_flag='${wl}-bM:SRE'
13014	  fi
13015	fi
13016      fi
13017
13018      export_dynamic_flag_spec='${wl}-bexpall'
13019      # It seems that -bexpall does not export symbols beginning with
13020      # underscore (_), so it is better to generate a list of symbols to export.
13021      always_export_symbols=yes
13022      if test "$aix_use_runtimelinking" = yes; then
13023	# Warning - without using the other runtime loading flags (-brtl),
13024	# -berok will link without error, but may produce a broken library.
13025	allow_undefined_flag='-berok'
13026        # Determine the default libpath from the value encoded in an
13027        # empty executable.
13028        if test "${lt_cv_aix_libpath+set}" = set; then
13029  aix_libpath=$lt_cv_aix_libpath
13030else
13031  if ${lt_cv_aix_libpath_+:} false; then :
13032  $as_echo_n "(cached) " >&6
13033else
13034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13035/* end confdefs.h.  */
13036
13037int
13038main ()
13039{
13040
13041  ;
13042  return 0;
13043}
13044_ACEOF
13045if ac_fn_c_try_link "$LINENO"; then :
13046
13047  lt_aix_libpath_sed='
13048      /Import File Strings/,/^$/ {
13049	  /^0/ {
13050	      s/^0  *\([^ ]*\) *$/\1/
13051	      p
13052	  }
13053      }'
13054  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13055  # Check for a 64-bit object if we didn't find anything.
13056  if test -z "$lt_cv_aix_libpath_"; then
13057    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13058  fi
13059fi
13060rm -f core conftest.err conftest.$ac_objext \
13061    conftest$ac_exeext conftest.$ac_ext
13062  if test -z "$lt_cv_aix_libpath_"; then
13063    lt_cv_aix_libpath_="/usr/lib:/lib"
13064  fi
13065
13066fi
13067
13068  aix_libpath=$lt_cv_aix_libpath_
13069fi
13070
13071        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13072        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"
13073      else
13074	if test "$host_cpu" = ia64; then
13075	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13076	  allow_undefined_flag="-z nodefs"
13077	  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"
13078	else
13079	 # Determine the default libpath from the value encoded in an
13080	 # empty executable.
13081	 if test "${lt_cv_aix_libpath+set}" = set; then
13082  aix_libpath=$lt_cv_aix_libpath
13083else
13084  if ${lt_cv_aix_libpath_+:} false; then :
13085  $as_echo_n "(cached) " >&6
13086else
13087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088/* end confdefs.h.  */
13089
13090int
13091main ()
13092{
13093
13094  ;
13095  return 0;
13096}
13097_ACEOF
13098if ac_fn_c_try_link "$LINENO"; then :
13099
13100  lt_aix_libpath_sed='
13101      /Import File Strings/,/^$/ {
13102	  /^0/ {
13103	      s/^0  *\([^ ]*\) *$/\1/
13104	      p
13105	  }
13106      }'
13107  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13108  # Check for a 64-bit object if we didn't find anything.
13109  if test -z "$lt_cv_aix_libpath_"; then
13110    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13111  fi
13112fi
13113rm -f core conftest.err conftest.$ac_objext \
13114    conftest$ac_exeext conftest.$ac_ext
13115  if test -z "$lt_cv_aix_libpath_"; then
13116    lt_cv_aix_libpath_="/usr/lib:/lib"
13117  fi
13118
13119fi
13120
13121  aix_libpath=$lt_cv_aix_libpath_
13122fi
13123
13124	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13125	  # Warning - without using the other run time loading flags,
13126	  # -berok will link without error, but may produce a broken library.
13127	  no_undefined_flag=' ${wl}-bernotok'
13128	  allow_undefined_flag=' ${wl}-berok'
13129	  if test "$with_gnu_ld" = yes; then
13130	    # We only use this code for GNU lds that support --whole-archive.
13131	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13132	  else
13133	    # Exported symbols can be pulled into shared objects from archives
13134	    whole_archive_flag_spec='$convenience'
13135	  fi
13136	  archive_cmds_need_lc=yes
13137	  # This is similar to how AIX traditionally builds its shared libraries.
13138	  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'
13139	fi
13140      fi
13141      ;;
13142
13143    amigaos*)
13144      case $host_cpu in
13145      powerpc)
13146            # see comment about AmigaOS4 .so support
13147            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13148            archive_expsym_cmds=''
13149        ;;
13150      m68k)
13151            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)'
13152            hardcode_libdir_flag_spec='-L$libdir'
13153            hardcode_minus_L=yes
13154        ;;
13155      esac
13156      ;;
13157
13158    bsdi[45]*)
13159      export_dynamic_flag_spec=-rdynamic
13160      ;;
13161
13162    cygwin* | mingw* | pw32* | cegcc*)
13163      # When not using gcc, we currently assume that we are using
13164      # Microsoft Visual C++.
13165      # hardcode_libdir_flag_spec is actually meaningless, as there is
13166      # no search path for DLLs.
13167      case $cc_basename in
13168      cl*)
13169	# Native MSVC
13170	hardcode_libdir_flag_spec=' '
13171	allow_undefined_flag=unsupported
13172	always_export_symbols=yes
13173	file_list_spec='@'
13174	# Tell ltmain to make .lib files, not .a files.
13175	libext=lib
13176	# Tell ltmain to make .dll files, not .so files.
13177	shrext_cmds=".dll"
13178	# FIXME: Setting linknames here is a bad hack.
13179	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13180	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13181	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13182	  else
13183	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13184	  fi~
13185	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13186	  linknames='
13187	# The linker will not automatically build a static lib if we build a DLL.
13188	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13189	enable_shared_with_static_runtimes=yes
13190	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13191	# Don't use ranlib
13192	old_postinstall_cmds='chmod 644 $oldlib'
13193	postlink_cmds='lt_outputfile="@OUTPUT@"~
13194	  lt_tool_outputfile="@TOOL_OUTPUT@"~
13195	  case $lt_outputfile in
13196	    *.exe|*.EXE) ;;
13197	    *)
13198	      lt_outputfile="$lt_outputfile.exe"
13199	      lt_tool_outputfile="$lt_tool_outputfile.exe"
13200	      ;;
13201	  esac~
13202	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13203	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13204	    $RM "$lt_outputfile.manifest";
13205	  fi'
13206	;;
13207      *)
13208	# Assume MSVC wrapper
13209	hardcode_libdir_flag_spec=' '
13210	allow_undefined_flag=unsupported
13211	# Tell ltmain to make .lib files, not .a files.
13212	libext=lib
13213	# Tell ltmain to make .dll files, not .so files.
13214	shrext_cmds=".dll"
13215	# FIXME: Setting linknames here is a bad hack.
13216	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13217	# The linker will automatically build a .lib file if we build a DLL.
13218	old_archive_from_new_cmds='true'
13219	# FIXME: Should let the user specify the lib program.
13220	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13221	enable_shared_with_static_runtimes=yes
13222	;;
13223      esac
13224      ;;
13225
13226    darwin* | rhapsody*)
13227
13228
13229  archive_cmds_need_lc=no
13230  hardcode_direct=no
13231  hardcode_automatic=yes
13232  hardcode_shlibpath_var=unsupported
13233  if test "$lt_cv_ld_force_load" = "yes"; then
13234    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\"`'
13235  else
13236    whole_archive_flag_spec=''
13237  fi
13238  link_all_deplibs=yes
13239  allow_undefined_flag="$_lt_dar_allow_undefined"
13240  case $cc_basename in
13241     ifort*) _lt_dar_can_shared=yes ;;
13242     *) _lt_dar_can_shared=$GCC ;;
13243  esac
13244  if test "$_lt_dar_can_shared" = "yes"; then
13245    output_verbose_link_cmd=func_echo_all
13246    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13247    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13248    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}"
13249    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}"
13250
13251  else
13252  ld_shlibs=no
13253  fi
13254
13255      ;;
13256
13257    dgux*)
13258      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13259      hardcode_libdir_flag_spec='-L$libdir'
13260      hardcode_shlibpath_var=no
13261      ;;
13262
13263    freebsd1*)
13264      ld_shlibs=no
13265      ;;
13266
13267    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13268    # support.  Future versions do this automatically, but an explicit c++rt0.o
13269    # does not break anything, and helps significantly (at the cost of a little
13270    # extra space).
13271    freebsd2.2*)
13272      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13273      hardcode_libdir_flag_spec='-R$libdir'
13274      hardcode_direct=yes
13275      hardcode_shlibpath_var=no
13276      ;;
13277
13278    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13279    freebsd2*)
13280      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13281      hardcode_direct=yes
13282      hardcode_minus_L=yes
13283      hardcode_shlibpath_var=no
13284      ;;
13285
13286    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13287    freebsd* | dragonfly*)
13288      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13289      hardcode_libdir_flag_spec='-R$libdir'
13290      hardcode_direct=yes
13291      hardcode_shlibpath_var=no
13292      ;;
13293
13294    hpux9*)
13295      if test "$GCC" = yes; then
13296	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'
13297      else
13298	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'
13299      fi
13300      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13301      hardcode_libdir_separator=:
13302      hardcode_direct=yes
13303
13304      # hardcode_minus_L: Not really in the search PATH,
13305      # but as the default location of the library.
13306      hardcode_minus_L=yes
13307      export_dynamic_flag_spec='${wl}-E'
13308      ;;
13309
13310    hpux10*)
13311      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13312	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13313      else
13314	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13315      fi
13316      if test "$with_gnu_ld" = no; then
13317	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13318	hardcode_libdir_flag_spec_ld='+b $libdir'
13319	hardcode_libdir_separator=:
13320	hardcode_direct=yes
13321	hardcode_direct_absolute=yes
13322	export_dynamic_flag_spec='${wl}-E'
13323	# hardcode_minus_L: Not really in the search PATH,
13324	# but as the default location of the library.
13325	hardcode_minus_L=yes
13326      fi
13327      ;;
13328
13329    hpux11*)
13330      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13331	case $host_cpu in
13332	hppa*64*)
13333	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13334	  ;;
13335	ia64*)
13336	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13337	  ;;
13338	*)
13339	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13340	  ;;
13341	esac
13342      else
13343	case $host_cpu in
13344	hppa*64*)
13345	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13346	  ;;
13347	ia64*)
13348	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13349	  ;;
13350	*)
13351
13352	  # Older versions of the 11.00 compiler do not understand -b yet
13353	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13354	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13355$as_echo_n "checking if $CC understands -b... " >&6; }
13356if ${lt_cv_prog_compiler__b+:} false; then :
13357  $as_echo_n "(cached) " >&6
13358else
13359  lt_cv_prog_compiler__b=no
13360   save_LDFLAGS="$LDFLAGS"
13361   LDFLAGS="$LDFLAGS -b"
13362   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13363   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13364     # The linker can only warn and ignore the option if not recognized
13365     # So say no if there are warnings
13366     if test -s conftest.err; then
13367       # Append any errors to the config.log.
13368       cat conftest.err 1>&5
13369       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13370       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13371       if diff conftest.exp conftest.er2 >/dev/null; then
13372         lt_cv_prog_compiler__b=yes
13373       fi
13374     else
13375       lt_cv_prog_compiler__b=yes
13376     fi
13377   fi
13378   $RM -r conftest*
13379   LDFLAGS="$save_LDFLAGS"
13380
13381fi
13382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13383$as_echo "$lt_cv_prog_compiler__b" >&6; }
13384
13385if test x"$lt_cv_prog_compiler__b" = xyes; then
13386    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13387else
13388    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13389fi
13390
13391	  ;;
13392	esac
13393      fi
13394      if test "$with_gnu_ld" = no; then
13395	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13396	hardcode_libdir_separator=:
13397
13398	case $host_cpu in
13399	hppa*64*|ia64*)
13400	  hardcode_direct=no
13401	  hardcode_shlibpath_var=no
13402	  ;;
13403	*)
13404	  hardcode_direct=yes
13405	  hardcode_direct_absolute=yes
13406	  export_dynamic_flag_spec='${wl}-E'
13407
13408	  # hardcode_minus_L: Not really in the search PATH,
13409	  # but as the default location of the library.
13410	  hardcode_minus_L=yes
13411	  ;;
13412	esac
13413      fi
13414      ;;
13415
13416    irix5* | irix6* | nonstopux*)
13417      if test "$GCC" = yes; then
13418	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'
13419	# Try to use the -exported_symbol ld option, if it does not
13420	# work, assume that -exports_file does not work either and
13421	# implicitly export all symbols.
13422	# This should be the same for all languages, so no per-tag cache variable.
13423	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13424$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13425if ${lt_cv_irix_exported_symbol+:} false; then :
13426  $as_echo_n "(cached) " >&6
13427else
13428  save_LDFLAGS="$LDFLAGS"
13429	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13430	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13431/* end confdefs.h.  */
13432int foo (void) { return 0; }
13433_ACEOF
13434if ac_fn_c_try_link "$LINENO"; then :
13435  lt_cv_irix_exported_symbol=yes
13436else
13437  lt_cv_irix_exported_symbol=no
13438fi
13439rm -f core conftest.err conftest.$ac_objext \
13440    conftest$ac_exeext conftest.$ac_ext
13441           LDFLAGS="$save_LDFLAGS"
13442fi
13443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13444$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13445	if test "$lt_cv_irix_exported_symbol" = yes; then
13446          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'
13447	fi
13448      else
13449	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'
13450	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'
13451      fi
13452      archive_cmds_need_lc='no'
13453      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13454      hardcode_libdir_separator=:
13455      inherit_rpath=yes
13456      link_all_deplibs=yes
13457      ;;
13458
13459    netbsd*)
13460      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13461	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13462      else
13463	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13464      fi
13465      hardcode_libdir_flag_spec='-R$libdir'
13466      hardcode_direct=yes
13467      hardcode_shlibpath_var=no
13468      ;;
13469
13470    newsos6)
13471      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13472      hardcode_direct=yes
13473      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13474      hardcode_libdir_separator=:
13475      hardcode_shlibpath_var=no
13476      ;;
13477
13478    *nto* | *qnx*)
13479      ;;
13480
13481    openbsd*)
13482      if test -f /usr/libexec/ld.so; then
13483	hardcode_direct=yes
13484	hardcode_shlibpath_var=no
13485	hardcode_direct_absolute=yes
13486	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13487	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13488	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13489	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13490	  export_dynamic_flag_spec='${wl}-E'
13491	else
13492	  case $host_os in
13493	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13494	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13495	     hardcode_libdir_flag_spec='-R$libdir'
13496	     ;;
13497	   *)
13498	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13499	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13500	     ;;
13501	  esac
13502	fi
13503      else
13504	ld_shlibs=no
13505      fi
13506      ;;
13507
13508    os2*)
13509      hardcode_libdir_flag_spec='-L$libdir'
13510      hardcode_minus_L=yes
13511      allow_undefined_flag=unsupported
13512      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'
13513      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13514      ;;
13515
13516    osf3*)
13517      if test "$GCC" = yes; then
13518	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13519	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'
13520      else
13521	allow_undefined_flag=' -expect_unresolved \*'
13522	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'
13523      fi
13524      archive_cmds_need_lc='no'
13525      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13526      hardcode_libdir_separator=:
13527      ;;
13528
13529    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13530      if test "$GCC" = yes; then
13531	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13532	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'
13533	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13534      else
13535	allow_undefined_flag=' -expect_unresolved \*'
13536	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'
13537	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~
13538	$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'
13539
13540	# Both c and cxx compiler support -rpath directly
13541	hardcode_libdir_flag_spec='-rpath $libdir'
13542      fi
13543      archive_cmds_need_lc='no'
13544      hardcode_libdir_separator=:
13545      ;;
13546
13547    solaris*)
13548      no_undefined_flag=' -z defs'
13549      if test "$GCC" = yes; then
13550	wlarc='${wl}'
13551	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13552	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13553	  $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'
13554      else
13555	case `$CC -V 2>&1` in
13556	*"Compilers 5.0"*)
13557	  wlarc=''
13558	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13559	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13560	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13561	  ;;
13562	*)
13563	  wlarc='${wl}'
13564	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13565	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13566	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13567	  ;;
13568	esac
13569      fi
13570      hardcode_libdir_flag_spec='-R$libdir'
13571      hardcode_shlibpath_var=no
13572      case $host_os in
13573      solaris2.[0-5] | solaris2.[0-5].*) ;;
13574      *)
13575	# The compiler driver will combine and reorder linker options,
13576	# but understands `-z linker_flag'.  GCC discards it without `$wl',
13577	# but is careful enough not to reorder.
13578	# Supported since Solaris 2.6 (maybe 2.5.1?)
13579	if test "$GCC" = yes; then
13580	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13581	else
13582	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13583	fi
13584	;;
13585      esac
13586      link_all_deplibs=yes
13587      ;;
13588
13589    sunos4*)
13590      if test "x$host_vendor" = xsequent; then
13591	# Use $CC to link under sequent, because it throws in some extra .o
13592	# files that make .init and .fini sections work.
13593	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13594      else
13595	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13596      fi
13597      hardcode_libdir_flag_spec='-L$libdir'
13598      hardcode_direct=yes
13599      hardcode_minus_L=yes
13600      hardcode_shlibpath_var=no
13601      ;;
13602
13603    sysv4)
13604      case $host_vendor in
13605	sni)
13606	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13607	  hardcode_direct=yes # is this really true???
13608	;;
13609	siemens)
13610	  ## LD is ld it makes a PLAMLIB
13611	  ## CC just makes a GrossModule.
13612	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13613	  reload_cmds='$CC -r -o $output$reload_objs'
13614	  hardcode_direct=no
13615        ;;
13616	motorola)
13617	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13618	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13619	;;
13620      esac
13621      runpath_var='LD_RUN_PATH'
13622      hardcode_shlibpath_var=no
13623      ;;
13624
13625    sysv4.3*)
13626      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13627      hardcode_shlibpath_var=no
13628      export_dynamic_flag_spec='-Bexport'
13629      ;;
13630
13631    sysv4*MP*)
13632      if test -d /usr/nec; then
13633	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13634	hardcode_shlibpath_var=no
13635	runpath_var=LD_RUN_PATH
13636	hardcode_runpath_var=yes
13637	ld_shlibs=yes
13638      fi
13639      ;;
13640
13641    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13642      no_undefined_flag='${wl}-z,text'
13643      archive_cmds_need_lc=no
13644      hardcode_shlibpath_var=no
13645      runpath_var='LD_RUN_PATH'
13646
13647      if test "$GCC" = yes; then
13648	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13649	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13650      else
13651	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13652	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13653      fi
13654      ;;
13655
13656    sysv5* | sco3.2v5* | sco5v6*)
13657      # Note: We can NOT use -z defs as we might desire, because we do not
13658      # link with -lc, and that would cause any symbols used from libc to
13659      # always be unresolved, which means just about no library would
13660      # ever link correctly.  If we're not using GNU ld we use -z text
13661      # though, which does catch some bad symbols but isn't as heavy-handed
13662      # as -z defs.
13663      no_undefined_flag='${wl}-z,text'
13664      allow_undefined_flag='${wl}-z,nodefs'
13665      archive_cmds_need_lc=no
13666      hardcode_shlibpath_var=no
13667      hardcode_libdir_flag_spec='${wl}-R,$libdir'
13668      hardcode_libdir_separator=':'
13669      link_all_deplibs=yes
13670      export_dynamic_flag_spec='${wl}-Bexport'
13671      runpath_var='LD_RUN_PATH'
13672
13673      if test "$GCC" = yes; then
13674	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13675	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13676      else
13677	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13678	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13679      fi
13680      ;;
13681
13682    uts4*)
13683      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13684      hardcode_libdir_flag_spec='-L$libdir'
13685      hardcode_shlibpath_var=no
13686      ;;
13687
13688    *)
13689      ld_shlibs=no
13690      ;;
13691    esac
13692
13693    if test x$host_vendor = xsni; then
13694      case $host in
13695      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13696	export_dynamic_flag_spec='${wl}-Blargedynsym'
13697	;;
13698      esac
13699    fi
13700  fi
13701
13702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13703$as_echo "$ld_shlibs" >&6; }
13704test "$ld_shlibs" = no && can_build_shared=no
13705
13706with_gnu_ld=$with_gnu_ld
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722#
13723# Do we need to explicitly link libc?
13724#
13725case "x$archive_cmds_need_lc" in
13726x|xyes)
13727  # Assume -lc should be added
13728  archive_cmds_need_lc=yes
13729
13730  if test "$enable_shared" = yes && test "$GCC" = yes; then
13731    case $archive_cmds in
13732    *'~'*)
13733      # FIXME: we may have to deal with multi-command sequences.
13734      ;;
13735    '$CC '*)
13736      # Test whether the compiler implicitly links with -lc since on some
13737      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13738      # to ld, don't add -lc before -lgcc.
13739      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13740$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13741if ${lt_cv_archive_cmds_need_lc+:} false; then :
13742  $as_echo_n "(cached) " >&6
13743else
13744  $RM conftest*
13745	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13746
13747	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13748  (eval $ac_compile) 2>&5
13749  ac_status=$?
13750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13751  test $ac_status = 0; } 2>conftest.err; then
13752	  soname=conftest
13753	  lib=conftest
13754	  libobjs=conftest.$ac_objext
13755	  deplibs=
13756	  wl=$lt_prog_compiler_wl
13757	  pic_flag=$lt_prog_compiler_pic
13758	  compiler_flags=-v
13759	  linker_flags=-v
13760	  verstring=
13761	  output_objdir=.
13762	  libname=conftest
13763	  lt_save_allow_undefined_flag=$allow_undefined_flag
13764	  allow_undefined_flag=
13765	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13766  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13767  ac_status=$?
13768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13769  test $ac_status = 0; }
13770	  then
13771	    lt_cv_archive_cmds_need_lc=no
13772	  else
13773	    lt_cv_archive_cmds_need_lc=yes
13774	  fi
13775	  allow_undefined_flag=$lt_save_allow_undefined_flag
13776	else
13777	  cat conftest.err 1>&5
13778	fi
13779	$RM conftest*
13780
13781fi
13782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13783$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13784      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13785      ;;
13786    esac
13787  fi
13788  ;;
13789esac
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13948$as_echo_n "checking dynamic linker characteristics... " >&6; }
13949
13950if test "$GCC" = yes; then
13951  case $host_os in
13952    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13953    *) lt_awk_arg="/^libraries:/" ;;
13954  esac
13955  case $host_os in
13956    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13957    *) lt_sed_strip_eq="s,=/,/,g" ;;
13958  esac
13959  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13960  case $lt_search_path_spec in
13961  *\;*)
13962    # if the path contains ";" then we assume it to be the separator
13963    # otherwise default to the standard path separator (i.e. ":") - it is
13964    # assumed that no part of a normal pathname contains ";" but that should
13965    # okay in the real world where ";" in dirpaths is itself problematic.
13966    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13967    ;;
13968  *)
13969    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13970    ;;
13971  esac
13972  # Ok, now we have the path, separated by spaces, we can step through it
13973  # and add multilib dir if necessary.
13974  lt_tmp_lt_search_path_spec=
13975  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13976  for lt_sys_path in $lt_search_path_spec; do
13977    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13978      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13979    else
13980      test -d "$lt_sys_path" && \
13981	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13982    fi
13983  done
13984  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13985BEGIN {RS=" "; FS="/|\n";} {
13986  lt_foo="";
13987  lt_count=0;
13988  for (lt_i = NF; lt_i > 0; lt_i--) {
13989    if ($lt_i != "" && $lt_i != ".") {
13990      if ($lt_i == "..") {
13991        lt_count++;
13992      } else {
13993        if (lt_count == 0) {
13994          lt_foo="/" $lt_i lt_foo;
13995        } else {
13996          lt_count--;
13997        }
13998      }
13999    }
14000  }
14001  if (lt_foo != "") { lt_freq[lt_foo]++; }
14002  if (lt_freq[lt_foo] == 1) { print lt_foo; }
14003}'`
14004  # AWK program above erroneously prepends '/' to C:/dos/paths
14005  # for these hosts.
14006  case $host_os in
14007    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14008      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14009  esac
14010  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14011else
14012  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14013fi
14014library_names_spec=
14015libname_spec='lib$name'
14016soname_spec=
14017shrext_cmds=".so"
14018postinstall_cmds=
14019postuninstall_cmds=
14020finish_cmds=
14021finish_eval=
14022shlibpath_var=
14023shlibpath_overrides_runpath=unknown
14024version_type=none
14025dynamic_linker="$host_os ld.so"
14026sys_lib_dlsearch_path_spec="/lib /usr/lib"
14027need_lib_prefix=unknown
14028hardcode_into_libs=no
14029
14030# when you set need_version to no, make sure it does not cause -set_version
14031# flags to be left without arguments
14032need_version=unknown
14033
14034case $host_os in
14035aix3*)
14036  version_type=linux
14037  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14038  shlibpath_var=LIBPATH
14039
14040  # AIX 3 has no versioning support, so we append a major version to the name.
14041  soname_spec='${libname}${release}${shared_ext}$major'
14042  ;;
14043
14044aix[4-9]*)
14045  version_type=linux
14046  need_lib_prefix=no
14047  need_version=no
14048  hardcode_into_libs=yes
14049  if test "$host_cpu" = ia64; then
14050    # AIX 5 supports IA64
14051    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14052    shlibpath_var=LD_LIBRARY_PATH
14053  else
14054    # With GCC up to 2.95.x, collect2 would create an import file
14055    # for dependence libraries.  The import file would start with
14056    # the line `#! .'.  This would cause the generated library to
14057    # depend on `.', always an invalid library.  This was fixed in
14058    # development snapshots of GCC prior to 3.0.
14059    case $host_os in
14060      aix4 | aix4.[01] | aix4.[01].*)
14061      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14062	   echo ' yes '
14063	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14064	:
14065      else
14066	can_build_shared=no
14067      fi
14068      ;;
14069    esac
14070    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14071    # soname into executable. Probably we can add versioning support to
14072    # collect2, so additional links can be useful in future.
14073    if test "$aix_use_runtimelinking" = yes; then
14074      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14075      # instead of lib<name>.a to let people know that these are not
14076      # typical AIX shared libraries.
14077      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14078    else
14079      # We preserve .a as extension for shared libraries through AIX4.2
14080      # and later when we are not doing run time linking.
14081      library_names_spec='${libname}${release}.a $libname.a'
14082      soname_spec='${libname}${release}${shared_ext}$major'
14083    fi
14084    shlibpath_var=LIBPATH
14085  fi
14086  ;;
14087
14088amigaos*)
14089  case $host_cpu in
14090  powerpc)
14091    # Since July 2007 AmigaOS4 officially supports .so libraries.
14092    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14093    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14094    ;;
14095  m68k)
14096    library_names_spec='$libname.ixlibrary $libname.a'
14097    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14098    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'
14099    ;;
14100  esac
14101  ;;
14102
14103beos*)
14104  library_names_spec='${libname}${shared_ext}'
14105  dynamic_linker="$host_os ld.so"
14106  shlibpath_var=LIBRARY_PATH
14107  ;;
14108
14109bsdi[45]*)
14110  version_type=linux
14111  need_version=no
14112  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14113  soname_spec='${libname}${release}${shared_ext}$major'
14114  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14115  shlibpath_var=LD_LIBRARY_PATH
14116  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14117  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14118  # the default ld.so.conf also contains /usr/contrib/lib and
14119  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14120  # libtool to hard-code these into programs
14121  ;;
14122
14123cygwin* | mingw* | pw32* | cegcc*)
14124  version_type=windows
14125  shrext_cmds=".dll"
14126  need_version=no
14127  need_lib_prefix=no
14128
14129  case $GCC,$cc_basename in
14130  yes,*)
14131    # gcc
14132    library_names_spec='$libname.dll.a'
14133    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14134    postinstall_cmds='base_file=`basename \${file}`~
14135      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14136      dldir=$destdir/`dirname \$dlpath`~
14137      test -d \$dldir || mkdir -p \$dldir~
14138      $install_prog $dir/$dlname \$dldir/$dlname~
14139      chmod a+x \$dldir/$dlname~
14140      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14141        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14142      fi'
14143    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14144      dlpath=$dir/\$dldll~
14145       $RM \$dlpath'
14146    shlibpath_overrides_runpath=yes
14147
14148    case $host_os in
14149    cygwin*)
14150      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14151      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14152
14153      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14154      ;;
14155    mingw* | cegcc*)
14156      # MinGW DLLs use traditional 'lib' prefix
14157      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14158      ;;
14159    pw32*)
14160      # pw32 DLLs use 'pw' prefix rather than 'lib'
14161      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14162      ;;
14163    esac
14164    dynamic_linker='Win32 ld.exe'
14165    ;;
14166
14167  *,cl*)
14168    # Native MSVC
14169    libname_spec='$name'
14170    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14171    library_names_spec='${libname}.dll.lib'
14172
14173    case $build_os in
14174    mingw*)
14175      sys_lib_search_path_spec=
14176      lt_save_ifs=$IFS
14177      IFS=';'
14178      for lt_path in $LIB
14179      do
14180        IFS=$lt_save_ifs
14181        # Let DOS variable expansion print the short 8.3 style file name.
14182        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14183        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14184      done
14185      IFS=$lt_save_ifs
14186      # Convert to MSYS style.
14187      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14188      ;;
14189    cygwin*)
14190      # Convert to unix form, then to dos form, then back to unix form
14191      # but this time dos style (no spaces!) so that the unix form looks
14192      # like /cygdrive/c/PROGRA~1:/cygdr...
14193      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14194      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14195      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14196      ;;
14197    *)
14198      sys_lib_search_path_spec="$LIB"
14199      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14200        # It is most probably a Windows format PATH.
14201        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14202      else
14203        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14204      fi
14205      # FIXME: find the short name or the path components, as spaces are
14206      # common. (e.g. "Program Files" -> "PROGRA~1")
14207      ;;
14208    esac
14209
14210    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14211    postinstall_cmds='base_file=`basename \${file}`~
14212      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14213      dldir=$destdir/`dirname \$dlpath`~
14214      test -d \$dldir || mkdir -p \$dldir~
14215      $install_prog $dir/$dlname \$dldir/$dlname'
14216    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14217      dlpath=$dir/\$dldll~
14218       $RM \$dlpath'
14219    shlibpath_overrides_runpath=yes
14220    dynamic_linker='Win32 link.exe'
14221    ;;
14222
14223  *)
14224    # Assume MSVC wrapper
14225    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14226    dynamic_linker='Win32 ld.exe'
14227    ;;
14228  esac
14229  # FIXME: first we should search . and the directory the executable is in
14230  shlibpath_var=PATH
14231  ;;
14232
14233darwin* | rhapsody*)
14234  dynamic_linker="$host_os dyld"
14235  version_type=darwin
14236  need_lib_prefix=no
14237  need_version=no
14238  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14239  soname_spec='${libname}${release}${major}$shared_ext'
14240  shlibpath_overrides_runpath=yes
14241  shlibpath_var=DYLD_LIBRARY_PATH
14242  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14243
14244  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14245  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14246  ;;
14247
14248dgux*)
14249  version_type=linux
14250  need_lib_prefix=no
14251  need_version=no
14252  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14253  soname_spec='${libname}${release}${shared_ext}$major'
14254  shlibpath_var=LD_LIBRARY_PATH
14255  ;;
14256
14257freebsd1*)
14258  dynamic_linker=no
14259  ;;
14260
14261freebsd* | dragonfly*)
14262  # DragonFly does not have aout.  When/if they implement a new
14263  # versioning mechanism, adjust this.
14264  if test -x /usr/bin/objformat; then
14265    objformat=`/usr/bin/objformat`
14266  else
14267    case $host_os in
14268    freebsd[123]*) objformat=aout ;;
14269    *) objformat=elf ;;
14270    esac
14271  fi
14272  version_type=freebsd-$objformat
14273  case $version_type in
14274    freebsd-elf*)
14275      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14276      need_version=no
14277      need_lib_prefix=no
14278      ;;
14279    freebsd-*)
14280      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14281      need_version=yes
14282      ;;
14283  esac
14284  shlibpath_var=LD_LIBRARY_PATH
14285  case $host_os in
14286  freebsd2*)
14287    shlibpath_overrides_runpath=yes
14288    ;;
14289  freebsd3.[01]* | freebsdelf3.[01]*)
14290    shlibpath_overrides_runpath=yes
14291    hardcode_into_libs=yes
14292    ;;
14293  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14294  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14295    shlibpath_overrides_runpath=no
14296    hardcode_into_libs=yes
14297    ;;
14298  *) # from 4.6 on, and DragonFly
14299    shlibpath_overrides_runpath=yes
14300    hardcode_into_libs=yes
14301    ;;
14302  esac
14303  ;;
14304
14305gnu*)
14306  version_type=linux
14307  need_lib_prefix=no
14308  need_version=no
14309  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14310  soname_spec='${libname}${release}${shared_ext}$major'
14311  shlibpath_var=LD_LIBRARY_PATH
14312  hardcode_into_libs=yes
14313  ;;
14314
14315haiku*)
14316  version_type=linux
14317  need_lib_prefix=no
14318  need_version=no
14319  dynamic_linker="$host_os runtime_loader"
14320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14321  soname_spec='${libname}${release}${shared_ext}$major'
14322  shlibpath_var=LIBRARY_PATH
14323  shlibpath_overrides_runpath=yes
14324  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14325  hardcode_into_libs=yes
14326  ;;
14327
14328hpux9* | hpux10* | hpux11*)
14329  # Give a soname corresponding to the major version so that dld.sl refuses to
14330  # link against other versions.
14331  version_type=sunos
14332  need_lib_prefix=no
14333  need_version=no
14334  case $host_cpu in
14335  ia64*)
14336    shrext_cmds='.so'
14337    hardcode_into_libs=yes
14338    dynamic_linker="$host_os dld.so"
14339    shlibpath_var=LD_LIBRARY_PATH
14340    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14341    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14342    soname_spec='${libname}${release}${shared_ext}$major'
14343    if test "X$HPUX_IA64_MODE" = X32; then
14344      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14345    else
14346      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14347    fi
14348    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14349    ;;
14350  hppa*64*)
14351    shrext_cmds='.sl'
14352    hardcode_into_libs=yes
14353    dynamic_linker="$host_os dld.sl"
14354    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14355    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14356    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14357    soname_spec='${libname}${release}${shared_ext}$major'
14358    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14359    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14360    ;;
14361  *)
14362    shrext_cmds='.sl'
14363    dynamic_linker="$host_os dld.sl"
14364    shlibpath_var=SHLIB_PATH
14365    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14366    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14367    soname_spec='${libname}${release}${shared_ext}$major'
14368    ;;
14369  esac
14370  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14371  postinstall_cmds='chmod 555 $lib'
14372  # or fails outright, so override atomically:
14373  install_override_mode=555
14374  ;;
14375
14376interix[3-9]*)
14377  version_type=linux
14378  need_lib_prefix=no
14379  need_version=no
14380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14381  soname_spec='${libname}${release}${shared_ext}$major'
14382  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14383  shlibpath_var=LD_LIBRARY_PATH
14384  shlibpath_overrides_runpath=no
14385  hardcode_into_libs=yes
14386  ;;
14387
14388irix5* | irix6* | nonstopux*)
14389  case $host_os in
14390    nonstopux*) version_type=nonstopux ;;
14391    *)
14392	if test "$lt_cv_prog_gnu_ld" = yes; then
14393		version_type=linux
14394	else
14395		version_type=irix
14396	fi ;;
14397  esac
14398  need_lib_prefix=no
14399  need_version=no
14400  soname_spec='${libname}${release}${shared_ext}$major'
14401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14402  case $host_os in
14403  irix5* | nonstopux*)
14404    libsuff= shlibsuff=
14405    ;;
14406  *)
14407    case $LD in # libtool.m4 will add one of these switches to LD
14408    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14409      libsuff= shlibsuff= libmagic=32-bit;;
14410    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14411      libsuff=32 shlibsuff=N32 libmagic=N32;;
14412    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14413      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14414    *) libsuff= shlibsuff= libmagic=never-match;;
14415    esac
14416    ;;
14417  esac
14418  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14419  shlibpath_overrides_runpath=no
14420  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14421  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14422  hardcode_into_libs=yes
14423  ;;
14424
14425# No shared lib support for Linux oldld, aout, or coff.
14426linux*oldld* | linux*aout* | linux*coff*)
14427  dynamic_linker=no
14428  ;;
14429
14430# This must be Linux ELF.
14431linux* | k*bsd*-gnu | kopensolaris*-gnu)
14432  version_type=linux
14433  need_lib_prefix=no
14434  need_version=no
14435  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14436  soname_spec='${libname}${release}${shared_ext}$major'
14437  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14438  shlibpath_var=LD_LIBRARY_PATH
14439  shlibpath_overrides_runpath=no
14440
14441  # Some binutils ld are patched to set DT_RUNPATH
14442  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14443  $as_echo_n "(cached) " >&6
14444else
14445  lt_cv_shlibpath_overrides_runpath=no
14446    save_LDFLAGS=$LDFLAGS
14447    save_libdir=$libdir
14448    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14449	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14450    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451/* end confdefs.h.  */
14452
14453int
14454main ()
14455{
14456
14457  ;
14458  return 0;
14459}
14460_ACEOF
14461if ac_fn_c_try_link "$LINENO"; then :
14462  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14463  lt_cv_shlibpath_overrides_runpath=yes
14464fi
14465fi
14466rm -f core conftest.err conftest.$ac_objext \
14467    conftest$ac_exeext conftest.$ac_ext
14468    LDFLAGS=$save_LDFLAGS
14469    libdir=$save_libdir
14470
14471fi
14472
14473  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14474
14475  # This implies no fast_install, which is unacceptable.
14476  # Some rework will be needed to allow for fast_install
14477  # before this can be enabled.
14478  hardcode_into_libs=yes
14479
14480  # Append ld.so.conf contents to the search path
14481  if test -f /etc/ld.so.conf; then
14482    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' ' '`
14483    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14484  fi
14485
14486  # We used to test for /lib/ld.so.1 and disable shared libraries on
14487  # powerpc, because MkLinux only supported shared libraries with the
14488  # GNU dynamic linker.  Since this was broken with cross compilers,
14489  # most powerpc-linux boxes support dynamic linking these days and
14490  # people can always --disable-shared, the test was removed, and we
14491  # assume the GNU/Linux dynamic linker is in use.
14492  dynamic_linker='GNU/Linux ld.so'
14493  ;;
14494
14495netbsd*)
14496  version_type=sunos
14497  need_lib_prefix=no
14498  need_version=no
14499  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14500    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14501    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14502    dynamic_linker='NetBSD (a.out) ld.so'
14503  else
14504    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14505    soname_spec='${libname}${release}${shared_ext}$major'
14506    dynamic_linker='NetBSD ld.elf_so'
14507  fi
14508  shlibpath_var=LD_LIBRARY_PATH
14509  shlibpath_overrides_runpath=yes
14510  hardcode_into_libs=yes
14511  ;;
14512
14513newsos6)
14514  version_type=linux
14515  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516  shlibpath_var=LD_LIBRARY_PATH
14517  shlibpath_overrides_runpath=yes
14518  ;;
14519
14520*nto* | *qnx*)
14521  version_type=qnx
14522  need_lib_prefix=no
14523  need_version=no
14524  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525  soname_spec='${libname}${release}${shared_ext}$major'
14526  shlibpath_var=LD_LIBRARY_PATH
14527  shlibpath_overrides_runpath=no
14528  hardcode_into_libs=yes
14529  dynamic_linker='ldqnx.so'
14530  ;;
14531
14532openbsd*)
14533  version_type=sunos
14534  sys_lib_dlsearch_path_spec="/usr/lib"
14535  need_lib_prefix=no
14536  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14537  case $host_os in
14538    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14539    *)				need_version=no  ;;
14540  esac
14541  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14542  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14543  shlibpath_var=LD_LIBRARY_PATH
14544  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14545    case $host_os in
14546      openbsd2.[89] | openbsd2.[89].*)
14547	shlibpath_overrides_runpath=no
14548	;;
14549      *)
14550	shlibpath_overrides_runpath=yes
14551	;;
14552      esac
14553  else
14554    shlibpath_overrides_runpath=yes
14555  fi
14556  ;;
14557
14558os2*)
14559  libname_spec='$name'
14560  shrext_cmds=".dll"
14561  need_lib_prefix=no
14562  library_names_spec='$libname${shared_ext} $libname.a'
14563  dynamic_linker='OS/2 ld.exe'
14564  shlibpath_var=LIBPATH
14565  ;;
14566
14567osf3* | osf4* | osf5*)
14568  version_type=osf
14569  need_lib_prefix=no
14570  need_version=no
14571  soname_spec='${libname}${release}${shared_ext}$major'
14572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14573  shlibpath_var=LD_LIBRARY_PATH
14574  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14575  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14576  ;;
14577
14578rdos*)
14579  dynamic_linker=no
14580  ;;
14581
14582solaris*)
14583  version_type=linux
14584  need_lib_prefix=no
14585  need_version=no
14586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14587  soname_spec='${libname}${release}${shared_ext}$major'
14588  shlibpath_var=LD_LIBRARY_PATH
14589  shlibpath_overrides_runpath=yes
14590  hardcode_into_libs=yes
14591  # ldd complains unless libraries are executable
14592  postinstall_cmds='chmod +x $lib'
14593  ;;
14594
14595sunos4*)
14596  version_type=sunos
14597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14598  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14599  shlibpath_var=LD_LIBRARY_PATH
14600  shlibpath_overrides_runpath=yes
14601  if test "$with_gnu_ld" = yes; then
14602    need_lib_prefix=no
14603  fi
14604  need_version=yes
14605  ;;
14606
14607sysv4 | sysv4.3*)
14608  version_type=linux
14609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14610  soname_spec='${libname}${release}${shared_ext}$major'
14611  shlibpath_var=LD_LIBRARY_PATH
14612  case $host_vendor in
14613    sni)
14614      shlibpath_overrides_runpath=no
14615      need_lib_prefix=no
14616      runpath_var=LD_RUN_PATH
14617      ;;
14618    siemens)
14619      need_lib_prefix=no
14620      ;;
14621    motorola)
14622      need_lib_prefix=no
14623      need_version=no
14624      shlibpath_overrides_runpath=no
14625      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14626      ;;
14627  esac
14628  ;;
14629
14630sysv4*MP*)
14631  if test -d /usr/nec ;then
14632    version_type=linux
14633    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14634    soname_spec='$libname${shared_ext}.$major'
14635    shlibpath_var=LD_LIBRARY_PATH
14636  fi
14637  ;;
14638
14639sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14640  version_type=freebsd-elf
14641  need_lib_prefix=no
14642  need_version=no
14643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14644  soname_spec='${libname}${release}${shared_ext}$major'
14645  shlibpath_var=LD_LIBRARY_PATH
14646  shlibpath_overrides_runpath=yes
14647  hardcode_into_libs=yes
14648  if test "$with_gnu_ld" = yes; then
14649    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14650  else
14651    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14652    case $host_os in
14653      sco3.2v5*)
14654        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14655	;;
14656    esac
14657  fi
14658  sys_lib_dlsearch_path_spec='/usr/lib'
14659  ;;
14660
14661tpf*)
14662  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14663  version_type=linux
14664  need_lib_prefix=no
14665  need_version=no
14666  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14667  shlibpath_var=LD_LIBRARY_PATH
14668  shlibpath_overrides_runpath=no
14669  hardcode_into_libs=yes
14670  ;;
14671
14672uts4*)
14673  version_type=linux
14674  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14675  soname_spec='${libname}${release}${shared_ext}$major'
14676  shlibpath_var=LD_LIBRARY_PATH
14677  ;;
14678
14679*)
14680  dynamic_linker=no
14681  ;;
14682esac
14683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14684$as_echo "$dynamic_linker" >&6; }
14685test "$dynamic_linker" = no && can_build_shared=no
14686
14687variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14688if test "$GCC" = yes; then
14689  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14690fi
14691
14692if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14693  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14694fi
14695if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14696  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14697fi
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14791$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14792hardcode_action=
14793if test -n "$hardcode_libdir_flag_spec" ||
14794   test -n "$runpath_var" ||
14795   test "X$hardcode_automatic" = "Xyes" ; then
14796
14797  # We can hardcode non-existent directories.
14798  if test "$hardcode_direct" != no &&
14799     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14800     # have to relink, otherwise we might link with an installed library
14801     # when we should be linking with a yet-to-be-installed one
14802     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14803     test "$hardcode_minus_L" != no; then
14804    # Linking always hardcodes the temporary library directory.
14805    hardcode_action=relink
14806  else
14807    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14808    hardcode_action=immediate
14809  fi
14810else
14811  # We cannot hardcode anything, or else we can only hardcode existing
14812  # directories.
14813  hardcode_action=unsupported
14814fi
14815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14816$as_echo "$hardcode_action" >&6; }
14817
14818if test "$hardcode_action" = relink ||
14819   test "$inherit_rpath" = yes; then
14820  # Fast installation is not supported
14821  enable_fast_install=no
14822elif test "$shlibpath_overrides_runpath" = yes ||
14823     test "$enable_shared" = no; then
14824  # Fast installation is not necessary
14825  enable_fast_install=needless
14826fi
14827
14828
14829
14830
14831
14832
14833  if test "x$enable_dlopen" != xyes; then
14834  enable_dlopen=unknown
14835  enable_dlopen_self=unknown
14836  enable_dlopen_self_static=unknown
14837else
14838  lt_cv_dlopen=no
14839  lt_cv_dlopen_libs=
14840
14841  case $host_os in
14842  beos*)
14843    lt_cv_dlopen="load_add_on"
14844    lt_cv_dlopen_libs=
14845    lt_cv_dlopen_self=yes
14846    ;;
14847
14848  mingw* | pw32* | cegcc*)
14849    lt_cv_dlopen="LoadLibrary"
14850    lt_cv_dlopen_libs=
14851    ;;
14852
14853  cygwin*)
14854    lt_cv_dlopen="dlopen"
14855    lt_cv_dlopen_libs=
14856    ;;
14857
14858  darwin*)
14859  # if libdl is installed we need to link against it
14860    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14861$as_echo_n "checking for dlopen in -ldl... " >&6; }
14862if ${ac_cv_lib_dl_dlopen+:} false; then :
14863  $as_echo_n "(cached) " >&6
14864else
14865  ac_check_lib_save_LIBS=$LIBS
14866LIBS="-ldl  $LIBS"
14867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14868/* end confdefs.h.  */
14869
14870/* Override any GCC internal prototype to avoid an error.
14871   Use char because int might match the return type of a GCC
14872   builtin and then its argument prototype would still apply.  */
14873#ifdef __cplusplus
14874extern "C"
14875#endif
14876char dlopen ();
14877int
14878main ()
14879{
14880return dlopen ();
14881  ;
14882  return 0;
14883}
14884_ACEOF
14885if ac_fn_c_try_link "$LINENO"; then :
14886  ac_cv_lib_dl_dlopen=yes
14887else
14888  ac_cv_lib_dl_dlopen=no
14889fi
14890rm -f core conftest.err conftest.$ac_objext \
14891    conftest$ac_exeext conftest.$ac_ext
14892LIBS=$ac_check_lib_save_LIBS
14893fi
14894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14895$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14896if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14897  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14898else
14899
14900    lt_cv_dlopen="dyld"
14901    lt_cv_dlopen_libs=
14902    lt_cv_dlopen_self=yes
14903
14904fi
14905
14906    ;;
14907
14908  *)
14909    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14910if test "x$ac_cv_func_shl_load" = xyes; then :
14911  lt_cv_dlopen="shl_load"
14912else
14913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14914$as_echo_n "checking for shl_load in -ldld... " >&6; }
14915if ${ac_cv_lib_dld_shl_load+:} false; then :
14916  $as_echo_n "(cached) " >&6
14917else
14918  ac_check_lib_save_LIBS=$LIBS
14919LIBS="-ldld  $LIBS"
14920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14921/* end confdefs.h.  */
14922
14923/* Override any GCC internal prototype to avoid an error.
14924   Use char because int might match the return type of a GCC
14925   builtin and then its argument prototype would still apply.  */
14926#ifdef __cplusplus
14927extern "C"
14928#endif
14929char shl_load ();
14930int
14931main ()
14932{
14933return shl_load ();
14934  ;
14935  return 0;
14936}
14937_ACEOF
14938if ac_fn_c_try_link "$LINENO"; then :
14939  ac_cv_lib_dld_shl_load=yes
14940else
14941  ac_cv_lib_dld_shl_load=no
14942fi
14943rm -f core conftest.err conftest.$ac_objext \
14944    conftest$ac_exeext conftest.$ac_ext
14945LIBS=$ac_check_lib_save_LIBS
14946fi
14947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14948$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14949if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14950  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14951else
14952  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14953if test "x$ac_cv_func_dlopen" = xyes; then :
14954  lt_cv_dlopen="dlopen"
14955else
14956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14957$as_echo_n "checking for dlopen in -ldl... " >&6; }
14958if ${ac_cv_lib_dl_dlopen+:} false; then :
14959  $as_echo_n "(cached) " >&6
14960else
14961  ac_check_lib_save_LIBS=$LIBS
14962LIBS="-ldl  $LIBS"
14963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964/* end confdefs.h.  */
14965
14966/* Override any GCC internal prototype to avoid an error.
14967   Use char because int might match the return type of a GCC
14968   builtin and then its argument prototype would still apply.  */
14969#ifdef __cplusplus
14970extern "C"
14971#endif
14972char dlopen ();
14973int
14974main ()
14975{
14976return dlopen ();
14977  ;
14978  return 0;
14979}
14980_ACEOF
14981if ac_fn_c_try_link "$LINENO"; then :
14982  ac_cv_lib_dl_dlopen=yes
14983else
14984  ac_cv_lib_dl_dlopen=no
14985fi
14986rm -f core conftest.err conftest.$ac_objext \
14987    conftest$ac_exeext conftest.$ac_ext
14988LIBS=$ac_check_lib_save_LIBS
14989fi
14990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14991$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14992if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14993  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14994else
14995  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14996$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14997if ${ac_cv_lib_svld_dlopen+:} false; then :
14998  $as_echo_n "(cached) " >&6
14999else
15000  ac_check_lib_save_LIBS=$LIBS
15001LIBS="-lsvld  $LIBS"
15002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003/* end confdefs.h.  */
15004
15005/* Override any GCC internal prototype to avoid an error.
15006   Use char because int might match the return type of a GCC
15007   builtin and then its argument prototype would still apply.  */
15008#ifdef __cplusplus
15009extern "C"
15010#endif
15011char dlopen ();
15012int
15013main ()
15014{
15015return dlopen ();
15016  ;
15017  return 0;
15018}
15019_ACEOF
15020if ac_fn_c_try_link "$LINENO"; then :
15021  ac_cv_lib_svld_dlopen=yes
15022else
15023  ac_cv_lib_svld_dlopen=no
15024fi
15025rm -f core conftest.err conftest.$ac_objext \
15026    conftest$ac_exeext conftest.$ac_ext
15027LIBS=$ac_check_lib_save_LIBS
15028fi
15029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15030$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15031if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15032  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15033else
15034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15035$as_echo_n "checking for dld_link in -ldld... " >&6; }
15036if ${ac_cv_lib_dld_dld_link+:} false; then :
15037  $as_echo_n "(cached) " >&6
15038else
15039  ac_check_lib_save_LIBS=$LIBS
15040LIBS="-ldld  $LIBS"
15041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042/* end confdefs.h.  */
15043
15044/* Override any GCC internal prototype to avoid an error.
15045   Use char because int might match the return type of a GCC
15046   builtin and then its argument prototype would still apply.  */
15047#ifdef __cplusplus
15048extern "C"
15049#endif
15050char dld_link ();
15051int
15052main ()
15053{
15054return dld_link ();
15055  ;
15056  return 0;
15057}
15058_ACEOF
15059if ac_fn_c_try_link "$LINENO"; then :
15060  ac_cv_lib_dld_dld_link=yes
15061else
15062  ac_cv_lib_dld_dld_link=no
15063fi
15064rm -f core conftest.err conftest.$ac_objext \
15065    conftest$ac_exeext conftest.$ac_ext
15066LIBS=$ac_check_lib_save_LIBS
15067fi
15068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15069$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15070if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15071  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15072fi
15073
15074
15075fi
15076
15077
15078fi
15079
15080
15081fi
15082
15083
15084fi
15085
15086
15087fi
15088
15089    ;;
15090  esac
15091
15092  if test "x$lt_cv_dlopen" != xno; then
15093    enable_dlopen=yes
15094  else
15095    enable_dlopen=no
15096  fi
15097
15098  case $lt_cv_dlopen in
15099  dlopen)
15100    save_CPPFLAGS="$CPPFLAGS"
15101    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15102
15103    save_LDFLAGS="$LDFLAGS"
15104    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15105
15106    save_LIBS="$LIBS"
15107    LIBS="$lt_cv_dlopen_libs $LIBS"
15108
15109    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15110$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15111if ${lt_cv_dlopen_self+:} false; then :
15112  $as_echo_n "(cached) " >&6
15113else
15114  	  if test "$cross_compiling" = yes; then :
15115  lt_cv_dlopen_self=cross
15116else
15117  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15118  lt_status=$lt_dlunknown
15119  cat > conftest.$ac_ext <<_LT_EOF
15120#line $LINENO "configure"
15121#include "confdefs.h"
15122
15123#if HAVE_DLFCN_H
15124#include <dlfcn.h>
15125#endif
15126
15127#include <stdio.h>
15128
15129#ifdef RTLD_GLOBAL
15130#  define LT_DLGLOBAL		RTLD_GLOBAL
15131#else
15132#  ifdef DL_GLOBAL
15133#    define LT_DLGLOBAL		DL_GLOBAL
15134#  else
15135#    define LT_DLGLOBAL		0
15136#  endif
15137#endif
15138
15139/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15140   find out it does not work in some platform. */
15141#ifndef LT_DLLAZY_OR_NOW
15142#  ifdef RTLD_LAZY
15143#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15144#  else
15145#    ifdef DL_LAZY
15146#      define LT_DLLAZY_OR_NOW		DL_LAZY
15147#    else
15148#      ifdef RTLD_NOW
15149#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15150#      else
15151#        ifdef DL_NOW
15152#          define LT_DLLAZY_OR_NOW	DL_NOW
15153#        else
15154#          define LT_DLLAZY_OR_NOW	0
15155#        endif
15156#      endif
15157#    endif
15158#  endif
15159#endif
15160
15161/* When -fvisbility=hidden is used, assume the code has been annotated
15162   correspondingly for the symbols needed.  */
15163#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15164int fnord () __attribute__((visibility("default")));
15165#endif
15166
15167int fnord () { return 42; }
15168int main ()
15169{
15170  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15171  int status = $lt_dlunknown;
15172
15173  if (self)
15174    {
15175      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15176      else
15177        {
15178	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15179          else puts (dlerror ());
15180	}
15181      /* dlclose (self); */
15182    }
15183  else
15184    puts (dlerror ());
15185
15186  return status;
15187}
15188_LT_EOF
15189  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15190  (eval $ac_link) 2>&5
15191  ac_status=$?
15192  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15193  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15194    (./conftest; exit; ) >&5 2>/dev/null
15195    lt_status=$?
15196    case x$lt_status in
15197      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15198      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15199      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15200    esac
15201  else :
15202    # compilation failed
15203    lt_cv_dlopen_self=no
15204  fi
15205fi
15206rm -fr conftest*
15207
15208
15209fi
15210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15211$as_echo "$lt_cv_dlopen_self" >&6; }
15212
15213    if test "x$lt_cv_dlopen_self" = xyes; then
15214      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15215      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15216$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15217if ${lt_cv_dlopen_self_static+:} false; then :
15218  $as_echo_n "(cached) " >&6
15219else
15220  	  if test "$cross_compiling" = yes; then :
15221  lt_cv_dlopen_self_static=cross
15222else
15223  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15224  lt_status=$lt_dlunknown
15225  cat > conftest.$ac_ext <<_LT_EOF
15226#line $LINENO "configure"
15227#include "confdefs.h"
15228
15229#if HAVE_DLFCN_H
15230#include <dlfcn.h>
15231#endif
15232
15233#include <stdio.h>
15234
15235#ifdef RTLD_GLOBAL
15236#  define LT_DLGLOBAL		RTLD_GLOBAL
15237#else
15238#  ifdef DL_GLOBAL
15239#    define LT_DLGLOBAL		DL_GLOBAL
15240#  else
15241#    define LT_DLGLOBAL		0
15242#  endif
15243#endif
15244
15245/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15246   find out it does not work in some platform. */
15247#ifndef LT_DLLAZY_OR_NOW
15248#  ifdef RTLD_LAZY
15249#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15250#  else
15251#    ifdef DL_LAZY
15252#      define LT_DLLAZY_OR_NOW		DL_LAZY
15253#    else
15254#      ifdef RTLD_NOW
15255#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15256#      else
15257#        ifdef DL_NOW
15258#          define LT_DLLAZY_OR_NOW	DL_NOW
15259#        else
15260#          define LT_DLLAZY_OR_NOW	0
15261#        endif
15262#      endif
15263#    endif
15264#  endif
15265#endif
15266
15267/* When -fvisbility=hidden is used, assume the code has been annotated
15268   correspondingly for the symbols needed.  */
15269#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15270int fnord () __attribute__((visibility("default")));
15271#endif
15272
15273int fnord () { return 42; }
15274int main ()
15275{
15276  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15277  int status = $lt_dlunknown;
15278
15279  if (self)
15280    {
15281      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15282      else
15283        {
15284	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15285          else puts (dlerror ());
15286	}
15287      /* dlclose (self); */
15288    }
15289  else
15290    puts (dlerror ());
15291
15292  return status;
15293}
15294_LT_EOF
15295  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15296  (eval $ac_link) 2>&5
15297  ac_status=$?
15298  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15299  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15300    (./conftest; exit; ) >&5 2>/dev/null
15301    lt_status=$?
15302    case x$lt_status in
15303      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15304      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15305      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15306    esac
15307  else :
15308    # compilation failed
15309    lt_cv_dlopen_self_static=no
15310  fi
15311fi
15312rm -fr conftest*
15313
15314
15315fi
15316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15317$as_echo "$lt_cv_dlopen_self_static" >&6; }
15318    fi
15319
15320    CPPFLAGS="$save_CPPFLAGS"
15321    LDFLAGS="$save_LDFLAGS"
15322    LIBS="$save_LIBS"
15323    ;;
15324  esac
15325
15326  case $lt_cv_dlopen_self in
15327  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15328  *) enable_dlopen_self=unknown ;;
15329  esac
15330
15331  case $lt_cv_dlopen_self_static in
15332  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15333  *) enable_dlopen_self_static=unknown ;;
15334  esac
15335fi
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353striplib=
15354old_striplib=
15355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15356$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15357if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15358  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15359  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15361$as_echo "yes" >&6; }
15362else
15363# FIXME - insert some real tests, host_os isn't really good enough
15364  case $host_os in
15365  darwin*)
15366    if test -n "$STRIP" ; then
15367      striplib="$STRIP -x"
15368      old_striplib="$STRIP -S"
15369      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15370$as_echo "yes" >&6; }
15371    else
15372      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15373$as_echo "no" >&6; }
15374    fi
15375    ;;
15376  *)
15377    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15378$as_echo "no" >&6; }
15379    ;;
15380  esac
15381fi
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394  # Report which library types will actually be built
15395  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15396$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15398$as_echo "$can_build_shared" >&6; }
15399
15400  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15401$as_echo_n "checking whether to build shared libraries... " >&6; }
15402  test "$can_build_shared" = "no" && enable_shared=no
15403
15404  # On AIX, shared libraries and static libraries use the same namespace, and
15405  # are all built from PIC.
15406  case $host_os in
15407  aix3*)
15408    test "$enable_shared" = yes && enable_static=no
15409    if test -n "$RANLIB"; then
15410      archive_cmds="$archive_cmds~\$RANLIB \$lib"
15411      postinstall_cmds='$RANLIB $lib'
15412    fi
15413    ;;
15414
15415  aix[4-9]*)
15416    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15417      test "$enable_shared" = yes && enable_static=no
15418    fi
15419    ;;
15420  esac
15421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15422$as_echo "$enable_shared" >&6; }
15423
15424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15425$as_echo_n "checking whether to build static libraries... " >&6; }
15426  # Make sure either enable_shared or enable_static is yes.
15427  test "$enable_shared" = yes || enable_static=yes
15428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15429$as_echo "$enable_static" >&6; }
15430
15431
15432
15433
15434fi
15435ac_ext=c
15436ac_cpp='$CPP $CPPFLAGS'
15437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15439ac_compiler_gnu=$ac_cv_c_compiler_gnu
15440
15441CC="$lt_save_CC"
15442
15443      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15444    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15445    (test "X$CXX" != "Xg++"))) ; then
15446  ac_ext=cpp
15447ac_cpp='$CXXCPP $CPPFLAGS'
15448ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15449ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15450ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15452$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15453if test -z "$CXXCPP"; then
15454  if ${ac_cv_prog_CXXCPP+:} false; then :
15455  $as_echo_n "(cached) " >&6
15456else
15457      # Double quotes because CXXCPP needs to be expanded
15458    for CXXCPP in "$CXX -E" "/lib/cpp"
15459    do
15460      ac_preproc_ok=false
15461for ac_cxx_preproc_warn_flag in '' yes
15462do
15463  # Use a header file that comes with gcc, so configuring glibc
15464  # with a fresh cross-compiler works.
15465  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15466  # <limits.h> exists even on freestanding compilers.
15467  # On the NeXT, cc -E runs the code through the compiler's parser,
15468  # not just through cpp. "Syntax error" is here to catch this case.
15469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15470/* end confdefs.h.  */
15471#ifdef __STDC__
15472# include <limits.h>
15473#else
15474# include <assert.h>
15475#endif
15476		     Syntax error
15477_ACEOF
15478if ac_fn_cxx_try_cpp "$LINENO"; then :
15479
15480else
15481  # Broken: fails on valid input.
15482continue
15483fi
15484rm -f conftest.err conftest.i conftest.$ac_ext
15485
15486  # OK, works on sane cases.  Now check whether nonexistent headers
15487  # can be detected and how.
15488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489/* end confdefs.h.  */
15490#include <ac_nonexistent.h>
15491_ACEOF
15492if ac_fn_cxx_try_cpp "$LINENO"; then :
15493  # Broken: success on invalid input.
15494continue
15495else
15496  # Passes both tests.
15497ac_preproc_ok=:
15498break
15499fi
15500rm -f conftest.err conftest.i conftest.$ac_ext
15501
15502done
15503# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15504rm -f conftest.i conftest.err conftest.$ac_ext
15505if $ac_preproc_ok; then :
15506  break
15507fi
15508
15509    done
15510    ac_cv_prog_CXXCPP=$CXXCPP
15511
15512fi
15513  CXXCPP=$ac_cv_prog_CXXCPP
15514else
15515  ac_cv_prog_CXXCPP=$CXXCPP
15516fi
15517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15518$as_echo "$CXXCPP" >&6; }
15519ac_preproc_ok=false
15520for ac_cxx_preproc_warn_flag in '' yes
15521do
15522  # Use a header file that comes with gcc, so configuring glibc
15523  # with a fresh cross-compiler works.
15524  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15525  # <limits.h> exists even on freestanding compilers.
15526  # On the NeXT, cc -E runs the code through the compiler's parser,
15527  # not just through cpp. "Syntax error" is here to catch this case.
15528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15529/* end confdefs.h.  */
15530#ifdef __STDC__
15531# include <limits.h>
15532#else
15533# include <assert.h>
15534#endif
15535		     Syntax error
15536_ACEOF
15537if ac_fn_cxx_try_cpp "$LINENO"; then :
15538
15539else
15540  # Broken: fails on valid input.
15541continue
15542fi
15543rm -f conftest.err conftest.i conftest.$ac_ext
15544
15545  # OK, works on sane cases.  Now check whether nonexistent headers
15546  # can be detected and how.
15547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548/* end confdefs.h.  */
15549#include <ac_nonexistent.h>
15550_ACEOF
15551if ac_fn_cxx_try_cpp "$LINENO"; then :
15552  # Broken: success on invalid input.
15553continue
15554else
15555  # Passes both tests.
15556ac_preproc_ok=:
15557break
15558fi
15559rm -f conftest.err conftest.i conftest.$ac_ext
15560
15561done
15562# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15563rm -f conftest.i conftest.err conftest.$ac_ext
15564if $ac_preproc_ok; then :
15565
15566else
15567  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15569as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15570See \`config.log' for more details" "$LINENO" 5; }
15571fi
15572
15573ac_ext=c
15574ac_cpp='$CPP $CPPFLAGS'
15575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15577ac_compiler_gnu=$ac_cv_c_compiler_gnu
15578
15579else
15580  _lt_caught_CXX_error=yes
15581fi
15582
15583ac_ext=cpp
15584ac_cpp='$CXXCPP $CPPFLAGS'
15585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15588
15589archive_cmds_need_lc_CXX=no
15590allow_undefined_flag_CXX=
15591always_export_symbols_CXX=no
15592archive_expsym_cmds_CXX=
15593compiler_needs_object_CXX=no
15594export_dynamic_flag_spec_CXX=
15595hardcode_direct_CXX=no
15596hardcode_direct_absolute_CXX=no
15597hardcode_libdir_flag_spec_CXX=
15598hardcode_libdir_flag_spec_ld_CXX=
15599hardcode_libdir_separator_CXX=
15600hardcode_minus_L_CXX=no
15601hardcode_shlibpath_var_CXX=unsupported
15602hardcode_automatic_CXX=no
15603inherit_rpath_CXX=no
15604module_cmds_CXX=
15605module_expsym_cmds_CXX=
15606link_all_deplibs_CXX=unknown
15607old_archive_cmds_CXX=$old_archive_cmds
15608reload_flag_CXX=$reload_flag
15609reload_cmds_CXX=$reload_cmds
15610no_undefined_flag_CXX=
15611whole_archive_flag_spec_CXX=
15612enable_shared_with_static_runtimes_CXX=no
15613
15614# Source file extension for C++ test sources.
15615ac_ext=cpp
15616
15617# Object file extension for compiled C++ test sources.
15618objext=o
15619objext_CXX=$objext
15620
15621# No sense in running all these tests if we already determined that
15622# the CXX compiler isn't working.  Some variables (like enable_shared)
15623# are currently assumed to apply to all compilers on this platform,
15624# and will be corrupted by setting them based on a non-working compiler.
15625if test "$_lt_caught_CXX_error" != yes; then
15626  # Code to be used in simple compile tests
15627  lt_simple_compile_test_code="int some_variable = 0;"
15628
15629  # Code to be used in simple link tests
15630  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15631
15632  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15633
15634
15635
15636
15637
15638
15639# If no C compiler was specified, use CC.
15640LTCC=${LTCC-"$CC"}
15641
15642# If no C compiler flags were specified, use CFLAGS.
15643LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15644
15645# Allow CC to be a program name with arguments.
15646compiler=$CC
15647
15648
15649  # save warnings/boilerplate of simple test code
15650  ac_outfile=conftest.$ac_objext
15651echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15652eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15653_lt_compiler_boilerplate=`cat conftest.err`
15654$RM conftest*
15655
15656  ac_outfile=conftest.$ac_objext
15657echo "$lt_simple_link_test_code" >conftest.$ac_ext
15658eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15659_lt_linker_boilerplate=`cat conftest.err`
15660$RM -r conftest*
15661
15662
15663  # Allow CC to be a program name with arguments.
15664  lt_save_CC=$CC
15665  lt_save_CFLAGS=$CFLAGS
15666  lt_save_LD=$LD
15667  lt_save_GCC=$GCC
15668  GCC=$GXX
15669  lt_save_with_gnu_ld=$with_gnu_ld
15670  lt_save_path_LD=$lt_cv_path_LD
15671  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15672    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15673  else
15674    $as_unset lt_cv_prog_gnu_ld
15675  fi
15676  if test -n "${lt_cv_path_LDCXX+set}"; then
15677    lt_cv_path_LD=$lt_cv_path_LDCXX
15678  else
15679    $as_unset lt_cv_path_LD
15680  fi
15681  test -z "${LDCXX+set}" || LD=$LDCXX
15682  CC=${CXX-"c++"}
15683  CFLAGS=$CXXFLAGS
15684  compiler=$CC
15685  compiler_CXX=$CC
15686  for cc_temp in $compiler""; do
15687  case $cc_temp in
15688    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15689    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15690    \-*) ;;
15691    *) break;;
15692  esac
15693done
15694cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15695
15696
15697  if test -n "$compiler"; then
15698    # We don't want -fno-exception when compiling C++ code, so set the
15699    # no_builtin_flag separately
15700    if test "$GXX" = yes; then
15701      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15702    else
15703      lt_prog_compiler_no_builtin_flag_CXX=
15704    fi
15705
15706    if test "$GXX" = yes; then
15707      # Set up default GNU C++ configuration
15708
15709
15710
15711# Check whether --with-gnu-ld was given.
15712if test "${with_gnu_ld+set}" = set; then :
15713  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15714else
15715  with_gnu_ld=no
15716fi
15717
15718ac_prog=ld
15719if test "$GCC" = yes; then
15720  # Check if gcc -print-prog-name=ld gives a path.
15721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15722$as_echo_n "checking for ld used by $CC... " >&6; }
15723  case $host in
15724  *-*-mingw*)
15725    # gcc leaves a trailing carriage return which upsets mingw
15726    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15727  *)
15728    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15729  esac
15730  case $ac_prog in
15731    # Accept absolute paths.
15732    [\\/]* | ?:[\\/]*)
15733      re_direlt='/[^/][^/]*/\.\./'
15734      # Canonicalize the pathname of ld
15735      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15736      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15737	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15738      done
15739      test -z "$LD" && LD="$ac_prog"
15740      ;;
15741  "")
15742    # If it fails, then pretend we aren't using GCC.
15743    ac_prog=ld
15744    ;;
15745  *)
15746    # If it is relative, then search for the first ld in PATH.
15747    with_gnu_ld=unknown
15748    ;;
15749  esac
15750elif test "$with_gnu_ld" = yes; then
15751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15752$as_echo_n "checking for GNU ld... " >&6; }
15753else
15754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15755$as_echo_n "checking for non-GNU ld... " >&6; }
15756fi
15757if ${lt_cv_path_LD+:} false; then :
15758  $as_echo_n "(cached) " >&6
15759else
15760  if test -z "$LD"; then
15761  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15762  for ac_dir in $PATH; do
15763    IFS="$lt_save_ifs"
15764    test -z "$ac_dir" && ac_dir=.
15765    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15766      lt_cv_path_LD="$ac_dir/$ac_prog"
15767      # Check to see if the program is GNU ld.  I'd rather use --version,
15768      # but apparently some variants of GNU ld only accept -v.
15769      # Break only if it was the GNU/non-GNU ld that we prefer.
15770      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15771      *GNU* | *'with BFD'*)
15772	test "$with_gnu_ld" != no && break
15773	;;
15774      *)
15775	test "$with_gnu_ld" != yes && break
15776	;;
15777      esac
15778    fi
15779  done
15780  IFS="$lt_save_ifs"
15781else
15782  lt_cv_path_LD="$LD" # Let the user override the test with a path.
15783fi
15784fi
15785
15786LD="$lt_cv_path_LD"
15787if test -n "$LD"; then
15788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15789$as_echo "$LD" >&6; }
15790else
15791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15792$as_echo "no" >&6; }
15793fi
15794test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15796$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15797if ${lt_cv_prog_gnu_ld+:} false; then :
15798  $as_echo_n "(cached) " >&6
15799else
15800  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15801case `$LD -v 2>&1 </dev/null` in
15802*GNU* | *'with BFD'*)
15803  lt_cv_prog_gnu_ld=yes
15804  ;;
15805*)
15806  lt_cv_prog_gnu_ld=no
15807  ;;
15808esac
15809fi
15810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15811$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15812with_gnu_ld=$lt_cv_prog_gnu_ld
15813
15814
15815
15816
15817
15818
15819
15820      # Check if GNU C++ uses GNU ld as the underlying linker, since the
15821      # archiving commands below assume that GNU ld is being used.
15822      if test "$with_gnu_ld" = yes; then
15823        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15824        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'
15825
15826        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15827        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15828
15829        # If archive_cmds runs LD, not CC, wlarc should be empty
15830        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15831        #     investigate it a little bit more. (MM)
15832        wlarc='${wl}'
15833
15834        # ancient GNU ld didn't support --whole-archive et. al.
15835        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15836	  $GREP 'no-whole-archive' > /dev/null; then
15837          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15838        else
15839          whole_archive_flag_spec_CXX=
15840        fi
15841      else
15842        with_gnu_ld=no
15843        wlarc=
15844
15845        # A generic and very simple default shared library creation
15846        # command for GNU C++ for the case where it uses the native
15847        # linker, instead of GNU ld.  If possible, this setting should
15848        # overridden to take advantage of the native linker features on
15849        # the platform it is being used on.
15850        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15851      fi
15852
15853      # Commands to make compiler produce verbose output that lists
15854      # what "hidden" libraries, object files and flags are used when
15855      # linking a shared library.
15856      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15857
15858    else
15859      GXX=no
15860      with_gnu_ld=no
15861      wlarc=
15862    fi
15863
15864    # PORTME: fill in a description of your system's C++ link characteristics
15865    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15866$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15867    ld_shlibs_CXX=yes
15868    case $host_os in
15869      aix3*)
15870        # FIXME: insert proper C++ library support
15871        ld_shlibs_CXX=no
15872        ;;
15873      aix[4-9]*)
15874        if test "$host_cpu" = ia64; then
15875          # On IA64, the linker does run time linking by default, so we don't
15876          # have to do anything special.
15877          aix_use_runtimelinking=no
15878          exp_sym_flag='-Bexport'
15879          no_entry_flag=""
15880        else
15881          aix_use_runtimelinking=no
15882
15883          # Test if we are trying to use run time linking or normal
15884          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15885          # need to do runtime linking.
15886          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15887	    for ld_flag in $LDFLAGS; do
15888	      case $ld_flag in
15889	      *-brtl*)
15890	        aix_use_runtimelinking=yes
15891	        break
15892	        ;;
15893	      esac
15894	    done
15895	    ;;
15896          esac
15897
15898          exp_sym_flag='-bexport'
15899          no_entry_flag='-bnoentry'
15900        fi
15901
15902        # When large executables or shared objects are built, AIX ld can
15903        # have problems creating the table of contents.  If linking a library
15904        # or program results in "error TOC overflow" add -mminimal-toc to
15905        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15906        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15907
15908        archive_cmds_CXX=''
15909        hardcode_direct_CXX=yes
15910        hardcode_direct_absolute_CXX=yes
15911        hardcode_libdir_separator_CXX=':'
15912        link_all_deplibs_CXX=yes
15913        file_list_spec_CXX='${wl}-f,'
15914
15915        if test "$GXX" = yes; then
15916          case $host_os in aix4.[012]|aix4.[012].*)
15917          # We only want to do this on AIX 4.2 and lower, the check
15918          # below for broken collect2 doesn't work under 4.3+
15919	  collect2name=`${CC} -print-prog-name=collect2`
15920	  if test -f "$collect2name" &&
15921	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15922	  then
15923	    # We have reworked collect2
15924	    :
15925	  else
15926	    # We have old collect2
15927	    hardcode_direct_CXX=unsupported
15928	    # It fails to find uninstalled libraries when the uninstalled
15929	    # path is not listed in the libpath.  Setting hardcode_minus_L
15930	    # to unsupported forces relinking
15931	    hardcode_minus_L_CXX=yes
15932	    hardcode_libdir_flag_spec_CXX='-L$libdir'
15933	    hardcode_libdir_separator_CXX=
15934	  fi
15935          esac
15936          shared_flag='-shared'
15937	  if test "$aix_use_runtimelinking" = yes; then
15938	    shared_flag="$shared_flag "'${wl}-G'
15939	  fi
15940        else
15941          # not using gcc
15942          if test "$host_cpu" = ia64; then
15943	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15944	  # chokes on -Wl,-G. The following line is correct:
15945	  shared_flag='-G'
15946          else
15947	    if test "$aix_use_runtimelinking" = yes; then
15948	      shared_flag='${wl}-G'
15949	    else
15950	      shared_flag='${wl}-bM:SRE'
15951	    fi
15952          fi
15953        fi
15954
15955        export_dynamic_flag_spec_CXX='${wl}-bexpall'
15956        # It seems that -bexpall does not export symbols beginning with
15957        # underscore (_), so it is better to generate a list of symbols to
15958	# export.
15959        always_export_symbols_CXX=yes
15960        if test "$aix_use_runtimelinking" = yes; then
15961          # Warning - without using the other runtime loading flags (-brtl),
15962          # -berok will link without error, but may produce a broken library.
15963          allow_undefined_flag_CXX='-berok'
15964          # Determine the default libpath from the value encoded in an empty
15965          # executable.
15966          if test "${lt_cv_aix_libpath+set}" = set; then
15967  aix_libpath=$lt_cv_aix_libpath
15968else
15969  if ${lt_cv_aix_libpath__CXX+:} false; then :
15970  $as_echo_n "(cached) " >&6
15971else
15972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15973/* end confdefs.h.  */
15974
15975int
15976main ()
15977{
15978
15979  ;
15980  return 0;
15981}
15982_ACEOF
15983if ac_fn_cxx_try_link "$LINENO"; then :
15984
15985  lt_aix_libpath_sed='
15986      /Import File Strings/,/^$/ {
15987	  /^0/ {
15988	      s/^0  *\([^ ]*\) *$/\1/
15989	      p
15990	  }
15991      }'
15992  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15993  # Check for a 64-bit object if we didn't find anything.
15994  if test -z "$lt_cv_aix_libpath__CXX"; then
15995    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15996  fi
15997fi
15998rm -f core conftest.err conftest.$ac_objext \
15999    conftest$ac_exeext conftest.$ac_ext
16000  if test -z "$lt_cv_aix_libpath__CXX"; then
16001    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
16002  fi
16003
16004fi
16005
16006  aix_libpath=$lt_cv_aix_libpath__CXX
16007fi
16008
16009          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16010
16011          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"
16012        else
16013          if test "$host_cpu" = ia64; then
16014	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16015	    allow_undefined_flag_CXX="-z nodefs"
16016	    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"
16017          else
16018	    # Determine the default libpath from the value encoded in an
16019	    # empty executable.
16020	    if test "${lt_cv_aix_libpath+set}" = set; then
16021  aix_libpath=$lt_cv_aix_libpath
16022else
16023  if ${lt_cv_aix_libpath__CXX+:} false; then :
16024  $as_echo_n "(cached) " >&6
16025else
16026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16027/* end confdefs.h.  */
16028
16029int
16030main ()
16031{
16032
16033  ;
16034  return 0;
16035}
16036_ACEOF
16037if ac_fn_cxx_try_link "$LINENO"; then :
16038
16039  lt_aix_libpath_sed='
16040      /Import File Strings/,/^$/ {
16041	  /^0/ {
16042	      s/^0  *\([^ ]*\) *$/\1/
16043	      p
16044	  }
16045      }'
16046  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16047  # Check for a 64-bit object if we didn't find anything.
16048  if test -z "$lt_cv_aix_libpath__CXX"; then
16049    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16050  fi
16051fi
16052rm -f core conftest.err conftest.$ac_objext \
16053    conftest$ac_exeext conftest.$ac_ext
16054  if test -z "$lt_cv_aix_libpath__CXX"; then
16055    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
16056  fi
16057
16058fi
16059
16060  aix_libpath=$lt_cv_aix_libpath__CXX
16061fi
16062
16063	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16064	    # Warning - without using the other run time loading flags,
16065	    # -berok will link without error, but may produce a broken library.
16066	    no_undefined_flag_CXX=' ${wl}-bernotok'
16067	    allow_undefined_flag_CXX=' ${wl}-berok'
16068	    if test "$with_gnu_ld" = yes; then
16069	      # We only use this code for GNU lds that support --whole-archive.
16070	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16071	    else
16072	      # Exported symbols can be pulled into shared objects from archives
16073	      whole_archive_flag_spec_CXX='$convenience'
16074	    fi
16075	    archive_cmds_need_lc_CXX=yes
16076	    # This is similar to how AIX traditionally builds its shared
16077	    # libraries.
16078	    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'
16079          fi
16080        fi
16081        ;;
16082
16083      beos*)
16084	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16085	  allow_undefined_flag_CXX=unsupported
16086	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16087	  # support --undefined.  This deserves some investigation.  FIXME
16088	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16089	else
16090	  ld_shlibs_CXX=no
16091	fi
16092	;;
16093
16094      chorus*)
16095        case $cc_basename in
16096          *)
16097	  # FIXME: insert proper C++ library support
16098	  ld_shlibs_CXX=no
16099	  ;;
16100        esac
16101        ;;
16102
16103      cygwin* | mingw* | pw32* | cegcc*)
16104	case $GXX,$cc_basename in
16105	,cl* | no,cl*)
16106	  # Native MSVC
16107	  # hardcode_libdir_flag_spec is actually meaningless, as there is
16108	  # no search path for DLLs.
16109	  hardcode_libdir_flag_spec_CXX=' '
16110	  allow_undefined_flag_CXX=unsupported
16111	  always_export_symbols_CXX=yes
16112	  file_list_spec_CXX='@'
16113	  # Tell ltmain to make .lib files, not .a files.
16114	  libext=lib
16115	  # Tell ltmain to make .dll files, not .so files.
16116	  shrext_cmds=".dll"
16117	  # FIXME: Setting linknames here is a bad hack.
16118	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16119	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16120	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16121	    else
16122	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16123	    fi~
16124	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16125	    linknames='
16126	  # The linker will not automatically build a static lib if we build a DLL.
16127	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16128	  enable_shared_with_static_runtimes_CXX=yes
16129	  # Don't use ranlib
16130	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
16131	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16132	    lt_tool_outputfile="@TOOL_OUTPUT@"~
16133	    case $lt_outputfile in
16134	      *.exe|*.EXE) ;;
16135	      *)
16136		lt_outputfile="$lt_outputfile.exe"
16137		lt_tool_outputfile="$lt_tool_outputfile.exe"
16138		;;
16139	    esac~
16140	    func_to_tool_file "$lt_outputfile"~
16141	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16142	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16143	      $RM "$lt_outputfile.manifest";
16144	    fi'
16145	  ;;
16146	*)
16147	  # g++
16148	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16149	  # as there is no search path for DLLs.
16150	  hardcode_libdir_flag_spec_CXX='-L$libdir'
16151	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
16152	  allow_undefined_flag_CXX=unsupported
16153	  always_export_symbols_CXX=no
16154	  enable_shared_with_static_runtimes_CXX=yes
16155
16156	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16157	    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'
16158	    # If the export-symbols file already is a .def file (1st line
16159	    # is EXPORTS), use it as is; otherwise, prepend...
16160	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16161	      cp $export_symbols $output_objdir/$soname.def;
16162	    else
16163	      echo EXPORTS > $output_objdir/$soname.def;
16164	      cat $export_symbols >> $output_objdir/$soname.def;
16165	    fi~
16166	    $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'
16167	  else
16168	    ld_shlibs_CXX=no
16169	  fi
16170	  ;;
16171	esac
16172	;;
16173      darwin* | rhapsody*)
16174
16175
16176  archive_cmds_need_lc_CXX=no
16177  hardcode_direct_CXX=no
16178  hardcode_automatic_CXX=yes
16179  hardcode_shlibpath_var_CXX=unsupported
16180  if test "$lt_cv_ld_force_load" = "yes"; then
16181    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\"`'
16182  else
16183    whole_archive_flag_spec_CXX=''
16184  fi
16185  link_all_deplibs_CXX=yes
16186  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16187  case $cc_basename in
16188     ifort*) _lt_dar_can_shared=yes ;;
16189     *) _lt_dar_can_shared=$GCC ;;
16190  esac
16191  if test "$_lt_dar_can_shared" = "yes"; then
16192    output_verbose_link_cmd=func_echo_all
16193    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}"
16194    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16195    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}"
16196    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}"
16197       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16198      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}"
16199      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}"
16200    fi
16201
16202  else
16203  ld_shlibs_CXX=no
16204  fi
16205
16206	;;
16207
16208      dgux*)
16209        case $cc_basename in
16210          ec++*)
16211	    # FIXME: insert proper C++ library support
16212	    ld_shlibs_CXX=no
16213	    ;;
16214          ghcx*)
16215	    # Green Hills C++ Compiler
16216	    # FIXME: insert proper C++ library support
16217	    ld_shlibs_CXX=no
16218	    ;;
16219          *)
16220	    # FIXME: insert proper C++ library support
16221	    ld_shlibs_CXX=no
16222	    ;;
16223        esac
16224        ;;
16225
16226      freebsd[12]*)
16227        # C++ shared libraries reported to be fairly broken before
16228	# switch to ELF
16229        ld_shlibs_CXX=no
16230        ;;
16231
16232      freebsd-elf*)
16233        archive_cmds_need_lc_CXX=no
16234        ;;
16235
16236      freebsd* | dragonfly*)
16237        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16238        # conventions
16239        ld_shlibs_CXX=yes
16240        ;;
16241
16242      gnu*)
16243        ;;
16244
16245      haiku*)
16246        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16247        link_all_deplibs_CXX=yes
16248        ;;
16249
16250      hpux9*)
16251        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16252        hardcode_libdir_separator_CXX=:
16253        export_dynamic_flag_spec_CXX='${wl}-E'
16254        hardcode_direct_CXX=yes
16255        hardcode_minus_L_CXX=yes # Not in the search PATH,
16256				             # but as the default
16257				             # location of the library.
16258
16259        case $cc_basename in
16260          CC*)
16261            # FIXME: insert proper C++ library support
16262            ld_shlibs_CXX=no
16263            ;;
16264          aCC*)
16265            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'
16266            # Commands to make compiler produce verbose output that lists
16267            # what "hidden" libraries, object files and flags are used when
16268            # linking a shared library.
16269            #
16270            # There doesn't appear to be a way to prevent this compiler from
16271            # explicitly linking system object files so we need to strip them
16272            # from the output so that they don't get included in the library
16273            # dependencies.
16274            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"'
16275            ;;
16276          *)
16277            if test "$GXX" = yes; then
16278              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'
16279            else
16280              # FIXME: insert proper C++ library support
16281              ld_shlibs_CXX=no
16282            fi
16283            ;;
16284        esac
16285        ;;
16286
16287      hpux10*|hpux11*)
16288        if test $with_gnu_ld = no; then
16289	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16290	  hardcode_libdir_separator_CXX=:
16291
16292          case $host_cpu in
16293            hppa*64*|ia64*)
16294              ;;
16295            *)
16296	      export_dynamic_flag_spec_CXX='${wl}-E'
16297              ;;
16298          esac
16299        fi
16300        case $host_cpu in
16301          hppa*64*|ia64*)
16302            hardcode_direct_CXX=no
16303            hardcode_shlibpath_var_CXX=no
16304            ;;
16305          *)
16306            hardcode_direct_CXX=yes
16307            hardcode_direct_absolute_CXX=yes
16308            hardcode_minus_L_CXX=yes # Not in the search PATH,
16309					         # but as the default
16310					         # location of the library.
16311            ;;
16312        esac
16313
16314        case $cc_basename in
16315          CC*)
16316	    # FIXME: insert proper C++ library support
16317	    ld_shlibs_CXX=no
16318	    ;;
16319          aCC*)
16320	    case $host_cpu in
16321	      hppa*64*)
16322	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16323	        ;;
16324	      ia64*)
16325	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16326	        ;;
16327	      *)
16328	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16329	        ;;
16330	    esac
16331	    # Commands to make compiler produce verbose output that lists
16332	    # what "hidden" libraries, object files and flags are used when
16333	    # linking a shared library.
16334	    #
16335	    # There doesn't appear to be a way to prevent this compiler from
16336	    # explicitly linking system object files so we need to strip them
16337	    # from the output so that they don't get included in the library
16338	    # dependencies.
16339	    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"'
16340	    ;;
16341          *)
16342	    if test "$GXX" = yes; then
16343	      if test $with_gnu_ld = no; then
16344	        case $host_cpu in
16345	          hppa*64*)
16346	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16347	            ;;
16348	          ia64*)
16349	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16350	            ;;
16351	          *)
16352	            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'
16353	            ;;
16354	        esac
16355	      fi
16356	    else
16357	      # FIXME: insert proper C++ library support
16358	      ld_shlibs_CXX=no
16359	    fi
16360	    ;;
16361        esac
16362        ;;
16363
16364      interix[3-9]*)
16365	hardcode_direct_CXX=no
16366	hardcode_shlibpath_var_CXX=no
16367	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16368	export_dynamic_flag_spec_CXX='${wl}-E'
16369	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16370	# Instead, shared libraries are loaded at an image base (0x10000000 by
16371	# default) and relocated if they conflict, which is a slow very memory
16372	# consuming and fragmenting process.  To avoid this, we pick a random,
16373	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16374	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16375	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'
16376	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'
16377	;;
16378      irix5* | irix6*)
16379        case $cc_basename in
16380          CC*)
16381	    # SGI C++
16382	    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'
16383
16384	    # Archives containing C++ object files must be created using
16385	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16386	    # necessary to make sure instantiated templates are included
16387	    # in the archive.
16388	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16389	    ;;
16390          *)
16391	    if test "$GXX" = yes; then
16392	      if test "$with_gnu_ld" = no; then
16393	        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'
16394	      else
16395	        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'
16396	      fi
16397	    fi
16398	    link_all_deplibs_CXX=yes
16399	    ;;
16400        esac
16401        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16402        hardcode_libdir_separator_CXX=:
16403        inherit_rpath_CXX=yes
16404        ;;
16405
16406      linux* | k*bsd*-gnu | kopensolaris*-gnu)
16407        case $cc_basename in
16408          KCC*)
16409	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16410
16411	    # KCC will only create a shared library if the output file
16412	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16413	    # to its proper name (with version) after linking.
16414	    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'
16415	    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'
16416	    # Commands to make compiler produce verbose output that lists
16417	    # what "hidden" libraries, object files and flags are used when
16418	    # linking a shared library.
16419	    #
16420	    # There doesn't appear to be a way to prevent this compiler from
16421	    # explicitly linking system object files so we need to strip them
16422	    # from the output so that they don't get included in the library
16423	    # dependencies.
16424	    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"'
16425
16426	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16427	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16428
16429	    # Archives containing C++ object files must be created using
16430	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16431	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16432	    ;;
16433	  icpc* | ecpc* )
16434	    # Intel C++
16435	    with_gnu_ld=yes
16436	    # version 8.0 and above of icpc choke on multiply defined symbols
16437	    # if we add $predep_objects and $postdep_objects, however 7.1 and
16438	    # earlier do not add the objects themselves.
16439	    case `$CC -V 2>&1` in
16440	      *"Version 7."*)
16441	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16442		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'
16443		;;
16444	      *)  # Version 8.0 or newer
16445	        tmp_idyn=
16446	        case $host_cpu in
16447		  ia64*) tmp_idyn=' -i_dynamic';;
16448		esac
16449	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16450		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'
16451		;;
16452	    esac
16453	    archive_cmds_need_lc_CXX=no
16454	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16455	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16456	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16457	    ;;
16458          pgCC* | pgcpp*)
16459            # Portland Group C++ compiler
16460	    case `$CC -V` in
16461	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16462	      prelink_cmds_CXX='tpldir=Template.dir~
16463		rm -rf $tpldir~
16464		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16465		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16466	      old_archive_cmds_CXX='tpldir=Template.dir~
16467		rm -rf $tpldir~
16468		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16469		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16470		$RANLIB $oldlib'
16471	      archive_cmds_CXX='tpldir=Template.dir~
16472		rm -rf $tpldir~
16473		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16474		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16475	      archive_expsym_cmds_CXX='tpldir=Template.dir~
16476		rm -rf $tpldir~
16477		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16478		$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'
16479	      ;;
16480	    *) # Version 6 and above use weak symbols
16481	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16482	      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'
16483	      ;;
16484	    esac
16485
16486	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16487	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16488	    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'
16489            ;;
16490	  cxx*)
16491	    # Compaq C++
16492	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16493	    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'
16494
16495	    runpath_var=LD_RUN_PATH
16496	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16497	    hardcode_libdir_separator_CXX=:
16498
16499	    # Commands to make compiler produce verbose output that lists
16500	    # what "hidden" libraries, object files and flags are used when
16501	    # linking a shared library.
16502	    #
16503	    # There doesn't appear to be a way to prevent this compiler from
16504	    # explicitly linking system object files so we need to strip them
16505	    # from the output so that they don't get included in the library
16506	    # dependencies.
16507	    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'
16508	    ;;
16509	  xl* | mpixl* | bgxl*)
16510	    # IBM XL 8.0 on PPC, with GNU ld
16511	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16512	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16513	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16514	    if test "x$supports_anon_versioning" = xyes; then
16515	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16516		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16517		echo "local: *; };" >> $output_objdir/$libname.ver~
16518		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16519	    fi
16520	    ;;
16521	  *)
16522	    case `$CC -V 2>&1 | sed 5q` in
16523	    *Sun\ C*)
16524	      # Sun C++ 5.9
16525	      no_undefined_flag_CXX=' -zdefs'
16526	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16527	      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'
16528	      hardcode_libdir_flag_spec_CXX='-R$libdir'
16529	      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'
16530	      compiler_needs_object_CXX=yes
16531
16532	      # Not sure whether something based on
16533	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16534	      # would be better.
16535	      output_verbose_link_cmd='func_echo_all'
16536
16537	      # Archives containing C++ object files must be created using
16538	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16539	      # necessary to make sure instantiated templates are included
16540	      # in the archive.
16541	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16542	      ;;
16543	    esac
16544	    ;;
16545	esac
16546	;;
16547
16548      lynxos*)
16549        # FIXME: insert proper C++ library support
16550	ld_shlibs_CXX=no
16551	;;
16552
16553      m88k*)
16554        # FIXME: insert proper C++ library support
16555        ld_shlibs_CXX=no
16556	;;
16557
16558      mvs*)
16559        case $cc_basename in
16560          cxx*)
16561	    # FIXME: insert proper C++ library support
16562	    ld_shlibs_CXX=no
16563	    ;;
16564	  *)
16565	    # FIXME: insert proper C++ library support
16566	    ld_shlibs_CXX=no
16567	    ;;
16568	esac
16569	;;
16570
16571      netbsd*)
16572        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16573	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16574	  wlarc=
16575	  hardcode_libdir_flag_spec_CXX='-R$libdir'
16576	  hardcode_direct_CXX=yes
16577	  hardcode_shlibpath_var_CXX=no
16578	fi
16579	# Workaround some broken pre-1.5 toolchains
16580	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16581	;;
16582
16583      *nto* | *qnx*)
16584        ld_shlibs_CXX=yes
16585	;;
16586
16587      openbsd2*)
16588        # C++ shared libraries are fairly broken
16589	ld_shlibs_CXX=no
16590	;;
16591
16592      openbsd*)
16593	if test -f /usr/libexec/ld.so; then
16594	  hardcode_direct_CXX=yes
16595	  hardcode_shlibpath_var_CXX=no
16596	  hardcode_direct_absolute_CXX=yes
16597	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16598	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16599	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16600	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16601	    export_dynamic_flag_spec_CXX='${wl}-E'
16602	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16603	  fi
16604	  output_verbose_link_cmd=func_echo_all
16605	else
16606	  ld_shlibs_CXX=no
16607	fi
16608	;;
16609
16610      osf3* | osf4* | osf5*)
16611        case $cc_basename in
16612          KCC*)
16613	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16614
16615	    # KCC will only create a shared library if the output file
16616	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16617	    # to its proper name (with version) after linking.
16618	    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'
16619
16620	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16621	    hardcode_libdir_separator_CXX=:
16622
16623	    # Archives containing C++ object files must be created using
16624	    # the KAI C++ compiler.
16625	    case $host in
16626	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16627	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16628	    esac
16629	    ;;
16630          RCC*)
16631	    # Rational C++ 2.4.1
16632	    # FIXME: insert proper C++ library support
16633	    ld_shlibs_CXX=no
16634	    ;;
16635          cxx*)
16636	    case $host in
16637	      osf3*)
16638	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16639	        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'
16640	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16641		;;
16642	      *)
16643	        allow_undefined_flag_CXX=' -expect_unresolved \*'
16644	        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'
16645	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16646	          echo "-hidden">> $lib.exp~
16647	          $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~
16648	          $RM $lib.exp'
16649	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16650		;;
16651	    esac
16652
16653	    hardcode_libdir_separator_CXX=:
16654
16655	    # Commands to make compiler produce verbose output that lists
16656	    # what "hidden" libraries, object files and flags are used when
16657	    # linking a shared library.
16658	    #
16659	    # There doesn't appear to be a way to prevent this compiler from
16660	    # explicitly linking system object files so we need to strip them
16661	    # from the output so that they don't get included in the library
16662	    # dependencies.
16663	    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"'
16664	    ;;
16665	  *)
16666	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16667	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16668	      case $host in
16669	        osf3*)
16670	          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'
16671		  ;;
16672	        *)
16673	          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'
16674		  ;;
16675	      esac
16676
16677	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16678	      hardcode_libdir_separator_CXX=:
16679
16680	      # Commands to make compiler produce verbose output that lists
16681	      # what "hidden" libraries, object files and flags are used when
16682	      # linking a shared library.
16683	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16684
16685	    else
16686	      # FIXME: insert proper C++ library support
16687	      ld_shlibs_CXX=no
16688	    fi
16689	    ;;
16690        esac
16691        ;;
16692
16693      psos*)
16694        # FIXME: insert proper C++ library support
16695        ld_shlibs_CXX=no
16696        ;;
16697
16698      sunos4*)
16699        case $cc_basename in
16700          CC*)
16701	    # Sun C++ 4.x
16702	    # FIXME: insert proper C++ library support
16703	    ld_shlibs_CXX=no
16704	    ;;
16705          lcc*)
16706	    # Lucid
16707	    # FIXME: insert proper C++ library support
16708	    ld_shlibs_CXX=no
16709	    ;;
16710          *)
16711	    # FIXME: insert proper C++ library support
16712	    ld_shlibs_CXX=no
16713	    ;;
16714        esac
16715        ;;
16716
16717      solaris*)
16718        case $cc_basename in
16719          CC* | sunCC*)
16720	    # Sun C++ 4.2, 5.x and Centerline C++
16721            archive_cmds_need_lc_CXX=yes
16722	    no_undefined_flag_CXX=' -zdefs'
16723	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16724	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16725	      $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'
16726
16727	    hardcode_libdir_flag_spec_CXX='-R$libdir'
16728	    hardcode_shlibpath_var_CXX=no
16729	    case $host_os in
16730	      solaris2.[0-5] | solaris2.[0-5].*) ;;
16731	      *)
16732		# The compiler driver will combine and reorder linker options,
16733		# but understands `-z linker_flag'.
16734	        # Supported since Solaris 2.6 (maybe 2.5.1?)
16735		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16736	        ;;
16737	    esac
16738	    link_all_deplibs_CXX=yes
16739
16740	    output_verbose_link_cmd='func_echo_all'
16741
16742	    # Archives containing C++ object files must be created using
16743	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16744	    # necessary to make sure instantiated templates are included
16745	    # in the archive.
16746	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16747	    ;;
16748          gcx*)
16749	    # Green Hills C++ Compiler
16750	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16751
16752	    # The C++ compiler must be used to create the archive.
16753	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16754	    ;;
16755          *)
16756	    # GNU C++ compiler with Solaris linker
16757	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16758	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16759	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16760	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16761	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16762		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16763
16764	        # Commands to make compiler produce verbose output that lists
16765	        # what "hidden" libraries, object files and flags are used when
16766	        # linking a shared library.
16767	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16768	      else
16769	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
16770	        # platform.
16771	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16772	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16773		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16774
16775	        # Commands to make compiler produce verbose output that lists
16776	        # what "hidden" libraries, object files and flags are used when
16777	        # linking a shared library.
16778	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16779	      fi
16780
16781	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16782	      case $host_os in
16783		solaris2.[0-5] | solaris2.[0-5].*) ;;
16784		*)
16785		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16786		  ;;
16787	      esac
16788	    fi
16789	    ;;
16790        esac
16791        ;;
16792
16793    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16794      no_undefined_flag_CXX='${wl}-z,text'
16795      archive_cmds_need_lc_CXX=no
16796      hardcode_shlibpath_var_CXX=no
16797      runpath_var='LD_RUN_PATH'
16798
16799      case $cc_basename in
16800        CC*)
16801	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16802	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16803	  ;;
16804	*)
16805	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16806	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16807	  ;;
16808      esac
16809      ;;
16810
16811      sysv5* | sco3.2v5* | sco5v6*)
16812	# Note: We can NOT use -z defs as we might desire, because we do not
16813	# link with -lc, and that would cause any symbols used from libc to
16814	# always be unresolved, which means just about no library would
16815	# ever link correctly.  If we're not using GNU ld we use -z text
16816	# though, which does catch some bad symbols but isn't as heavy-handed
16817	# as -z defs.
16818	no_undefined_flag_CXX='${wl}-z,text'
16819	allow_undefined_flag_CXX='${wl}-z,nodefs'
16820	archive_cmds_need_lc_CXX=no
16821	hardcode_shlibpath_var_CXX=no
16822	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16823	hardcode_libdir_separator_CXX=':'
16824	link_all_deplibs_CXX=yes
16825	export_dynamic_flag_spec_CXX='${wl}-Bexport'
16826	runpath_var='LD_RUN_PATH'
16827
16828	case $cc_basename in
16829          CC*)
16830	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16831	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16832	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16833	      '"$old_archive_cmds_CXX"
16834	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16835	      '"$reload_cmds_CXX"
16836	    ;;
16837	  *)
16838	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16839	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16840	    ;;
16841	esac
16842      ;;
16843
16844      tandem*)
16845        case $cc_basename in
16846          NCC*)
16847	    # NonStop-UX NCC 3.20
16848	    # FIXME: insert proper C++ library support
16849	    ld_shlibs_CXX=no
16850	    ;;
16851          *)
16852	    # FIXME: insert proper C++ library support
16853	    ld_shlibs_CXX=no
16854	    ;;
16855        esac
16856        ;;
16857
16858      vxworks*)
16859        # FIXME: insert proper C++ library support
16860        ld_shlibs_CXX=no
16861        ;;
16862
16863      *)
16864        # FIXME: insert proper C++ library support
16865        ld_shlibs_CXX=no
16866        ;;
16867    esac
16868
16869    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16870$as_echo "$ld_shlibs_CXX" >&6; }
16871    test "$ld_shlibs_CXX" = no && can_build_shared=no
16872
16873    GCC_CXX="$GXX"
16874    LD_CXX="$LD"
16875
16876    ## CAVEAT EMPTOR:
16877    ## There is no encapsulation within the following macros, do not change
16878    ## the running order or otherwise move them around unless you know exactly
16879    ## what you are doing...
16880    # Dependencies to place before and after the object being linked:
16881predep_objects_CXX=
16882postdep_objects_CXX=
16883predeps_CXX=
16884postdeps_CXX=
16885compiler_lib_search_path_CXX=
16886
16887cat > conftest.$ac_ext <<_LT_EOF
16888class Foo
16889{
16890public:
16891  Foo (void) { a = 0; }
16892private:
16893  int a;
16894};
16895_LT_EOF
16896
16897
16898_lt_libdeps_save_CFLAGS=$CFLAGS
16899case "$CC $CFLAGS " in #(
16900*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16901*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16902esac
16903
16904if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16905  (eval $ac_compile) 2>&5
16906  ac_status=$?
16907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16908  test $ac_status = 0; }; then
16909  # Parse the compiler output and extract the necessary
16910  # objects, libraries and library flags.
16911
16912  # Sentinel used to keep track of whether or not we are before
16913  # the conftest object file.
16914  pre_test_object_deps_done=no
16915
16916  for p in `eval "$output_verbose_link_cmd"`; do
16917    case ${prev}${p} in
16918
16919    -L* | -R* | -l*)
16920       # Some compilers place space between "-{L,R}" and the path.
16921       # Remove the space.
16922       if test $p = "-L" ||
16923          test $p = "-R"; then
16924	 prev=$p
16925	 continue
16926       fi
16927
16928       # Expand the sysroot to ease extracting the directories later.
16929       if test -z "$prev"; then
16930         case $p in
16931         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16932         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16933         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16934         esac
16935       fi
16936       case $p in
16937       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16938       esac
16939       if test "$pre_test_object_deps_done" = no; then
16940	 case ${prev} in
16941	 -L | -R)
16942	   # Internal compiler library paths should come after those
16943	   # provided the user.  The postdeps already come after the
16944	   # user supplied libs so there is no need to process them.
16945	   if test -z "$compiler_lib_search_path_CXX"; then
16946	     compiler_lib_search_path_CXX="${prev}${p}"
16947	   else
16948	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16949	   fi
16950	   ;;
16951	 # The "-l" case would never come before the object being
16952	 # linked, so don't bother handling this case.
16953	 esac
16954       else
16955	 if test -z "$postdeps_CXX"; then
16956	   postdeps_CXX="${prev}${p}"
16957	 else
16958	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16959	 fi
16960       fi
16961       prev=
16962       ;;
16963
16964    *.lto.$objext) ;; # Ignore GCC LTO objects
16965    *.$objext)
16966       # This assumes that the test object file only shows up
16967       # once in the compiler output.
16968       if test "$p" = "conftest.$objext"; then
16969	 pre_test_object_deps_done=yes
16970	 continue
16971       fi
16972
16973       if test "$pre_test_object_deps_done" = no; then
16974	 if test -z "$predep_objects_CXX"; then
16975	   predep_objects_CXX="$p"
16976	 else
16977	   predep_objects_CXX="$predep_objects_CXX $p"
16978	 fi
16979       else
16980	 if test -z "$postdep_objects_CXX"; then
16981	   postdep_objects_CXX="$p"
16982	 else
16983	   postdep_objects_CXX="$postdep_objects_CXX $p"
16984	 fi
16985       fi
16986       ;;
16987
16988    *) ;; # Ignore the rest.
16989
16990    esac
16991  done
16992
16993  # Clean up.
16994  rm -f a.out a.exe
16995else
16996  echo "libtool.m4: error: problem compiling CXX test program"
16997fi
16998
16999$RM -f confest.$objext
17000CFLAGS=$_lt_libdeps_save_CFLAGS
17001
17002# PORTME: override above test on systems where it is broken
17003case $host_os in
17004interix[3-9]*)
17005  # Interix 3.5 installs completely hosed .la files for C++, so rather than
17006  # hack all around it, let's just trust "g++" to DTRT.
17007  predep_objects_CXX=
17008  postdep_objects_CXX=
17009  postdeps_CXX=
17010  ;;
17011
17012linux*)
17013  case `$CC -V 2>&1 | sed 5q` in
17014  *Sun\ C*)
17015    # Sun C++ 5.9
17016
17017    # The more standards-conforming stlport4 library is
17018    # incompatible with the Cstd library. Avoid specifying
17019    # it if it's in CXXFLAGS. Ignore libCrun as
17020    # -library=stlport4 depends on it.
17021    case " $CXX $CXXFLAGS " in
17022    *" -library=stlport4 "*)
17023      solaris_use_stlport4=yes
17024      ;;
17025    esac
17026
17027    if test "$solaris_use_stlport4" != yes; then
17028      postdeps_CXX='-library=Cstd -library=Crun'
17029    fi
17030    ;;
17031  esac
17032  ;;
17033
17034solaris*)
17035  case $cc_basename in
17036  CC* | sunCC*)
17037    # The more standards-conforming stlport4 library is
17038    # incompatible with the Cstd library. Avoid specifying
17039    # it if it's in CXXFLAGS. Ignore libCrun as
17040    # -library=stlport4 depends on it.
17041    case " $CXX $CXXFLAGS " in
17042    *" -library=stlport4 "*)
17043      solaris_use_stlport4=yes
17044      ;;
17045    esac
17046
17047    # Adding this requires a known-good setup of shared libraries for
17048    # Sun compiler versions before 5.6, else PIC objects from an old
17049    # archive will be linked into the output, leading to subtle bugs.
17050    if test "$solaris_use_stlport4" != yes; then
17051      postdeps_CXX='-library=Cstd -library=Crun'
17052    fi
17053    ;;
17054  esac
17055  ;;
17056esac
17057
17058
17059case " $postdeps_CXX " in
17060*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17061esac
17062 compiler_lib_search_dirs_CXX=
17063if test -n "${compiler_lib_search_path_CXX}"; then
17064 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17065fi
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097    lt_prog_compiler_wl_CXX=
17098lt_prog_compiler_pic_CXX=
17099lt_prog_compiler_static_CXX=
17100
17101
17102  # C++ specific cases for pic, static, wl, etc.
17103  if test "$GXX" = yes; then
17104    lt_prog_compiler_wl_CXX='-Wl,'
17105    lt_prog_compiler_static_CXX='-static'
17106
17107    case $host_os in
17108    aix*)
17109      # All AIX code is PIC.
17110      if test "$host_cpu" = ia64; then
17111	# AIX 5 now supports IA64 processor
17112	lt_prog_compiler_static_CXX='-Bstatic'
17113      fi
17114      ;;
17115
17116    amigaos*)
17117      case $host_cpu in
17118      powerpc)
17119            # see comment about AmigaOS4 .so support
17120            lt_prog_compiler_pic_CXX='-fPIC'
17121        ;;
17122      m68k)
17123            # FIXME: we need at least 68020 code to build shared libraries, but
17124            # adding the `-m68020' flag to GCC prevents building anything better,
17125            # like `-m68040'.
17126            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17127        ;;
17128      esac
17129      ;;
17130
17131    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17132      # PIC is the default for these OSes.
17133      ;;
17134    mingw* | cygwin* | os2* | pw32* | cegcc*)
17135      # This hack is so that the source file can tell whether it is being
17136      # built for inclusion in a dll (and should export symbols for example).
17137      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17138      # (--disable-auto-import) libraries
17139      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17140      ;;
17141    darwin* | rhapsody*)
17142      # PIC is the default on this platform
17143      # Common symbols not allowed in MH_DYLIB files
17144      lt_prog_compiler_pic_CXX='-fno-common'
17145      ;;
17146    *djgpp*)
17147      # DJGPP does not support shared libraries at all
17148      lt_prog_compiler_pic_CXX=
17149      ;;
17150    haiku*)
17151      # PIC is the default for Haiku.
17152      # The "-static" flag exists, but is broken.
17153      lt_prog_compiler_static_CXX=
17154      ;;
17155    interix[3-9]*)
17156      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17157      # Instead, we relocate shared libraries at runtime.
17158      ;;
17159    sysv4*MP*)
17160      if test -d /usr/nec; then
17161	lt_prog_compiler_pic_CXX=-Kconform_pic
17162      fi
17163      ;;
17164    hpux*)
17165      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17166      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17167      # sets the default TLS model and affects inlining.
17168      case $host_cpu in
17169      hppa*64*)
17170	;;
17171      *)
17172	lt_prog_compiler_pic_CXX='-fPIC'
17173	;;
17174      esac
17175      ;;
17176    *qnx* | *nto*)
17177      # QNX uses GNU C++, but need to define -shared option too, otherwise
17178      # it will coredump.
17179      lt_prog_compiler_pic_CXX='-fPIC -shared'
17180      ;;
17181    *)
17182      lt_prog_compiler_pic_CXX='-fPIC'
17183      ;;
17184    esac
17185  else
17186    case $host_os in
17187      aix[4-9]*)
17188	# All AIX code is PIC.
17189	if test "$host_cpu" = ia64; then
17190	  # AIX 5 now supports IA64 processor
17191	  lt_prog_compiler_static_CXX='-Bstatic'
17192	else
17193	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17194	fi
17195	;;
17196      chorus*)
17197	case $cc_basename in
17198	cxch68*)
17199	  # Green Hills C++ Compiler
17200	  # _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"
17201	  ;;
17202	esac
17203	;;
17204      mingw* | cygwin* | os2* | pw32* | cegcc*)
17205	# This hack is so that the source file can tell whether it is being
17206	# built for inclusion in a dll (and should export symbols for example).
17207	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17208	;;
17209      dgux*)
17210	case $cc_basename in
17211	  ec++*)
17212	    lt_prog_compiler_pic_CXX='-KPIC'
17213	    ;;
17214	  ghcx*)
17215	    # Green Hills C++ Compiler
17216	    lt_prog_compiler_pic_CXX='-pic'
17217	    ;;
17218	  *)
17219	    ;;
17220	esac
17221	;;
17222      freebsd* | dragonfly*)
17223	# FreeBSD uses GNU C++
17224	;;
17225      hpux9* | hpux10* | hpux11*)
17226	case $cc_basename in
17227	  CC*)
17228	    lt_prog_compiler_wl_CXX='-Wl,'
17229	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17230	    if test "$host_cpu" != ia64; then
17231	      lt_prog_compiler_pic_CXX='+Z'
17232	    fi
17233	    ;;
17234	  aCC*)
17235	    lt_prog_compiler_wl_CXX='-Wl,'
17236	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17237	    case $host_cpu in
17238	    hppa*64*|ia64*)
17239	      # +Z the default
17240	      ;;
17241	    *)
17242	      lt_prog_compiler_pic_CXX='+Z'
17243	      ;;
17244	    esac
17245	    ;;
17246	  *)
17247	    ;;
17248	esac
17249	;;
17250      interix*)
17251	# This is c89, which is MS Visual C++ (no shared libs)
17252	# Anyone wants to do a port?
17253	;;
17254      irix5* | irix6* | nonstopux*)
17255	case $cc_basename in
17256	  CC*)
17257	    lt_prog_compiler_wl_CXX='-Wl,'
17258	    lt_prog_compiler_static_CXX='-non_shared'
17259	    # CC pic flag -KPIC is the default.
17260	    ;;
17261	  *)
17262	    ;;
17263	esac
17264	;;
17265      linux* | k*bsd*-gnu | kopensolaris*-gnu)
17266	case $cc_basename in
17267	  KCC*)
17268	    # KAI C++ Compiler
17269	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17270	    lt_prog_compiler_pic_CXX='-fPIC'
17271	    ;;
17272	  ecpc* )
17273	    # old Intel C++ for x86_64 which still supported -KPIC.
17274	    lt_prog_compiler_wl_CXX='-Wl,'
17275	    lt_prog_compiler_pic_CXX='-KPIC'
17276	    lt_prog_compiler_static_CXX='-static'
17277	    ;;
17278	  icpc* )
17279	    # Intel C++, used to be incompatible with GCC.
17280	    # ICC 10 doesn't accept -KPIC any more.
17281	    lt_prog_compiler_wl_CXX='-Wl,'
17282	    lt_prog_compiler_pic_CXX='-fPIC'
17283	    lt_prog_compiler_static_CXX='-static'
17284	    ;;
17285	  pgCC* | pgcpp*)
17286	    # Portland Group C++ compiler
17287	    lt_prog_compiler_wl_CXX='-Wl,'
17288	    lt_prog_compiler_pic_CXX='-fpic'
17289	    lt_prog_compiler_static_CXX='-Bstatic'
17290	    ;;
17291	  cxx*)
17292	    # Compaq C++
17293	    # Make sure the PIC flag is empty.  It appears that all Alpha
17294	    # Linux and Compaq Tru64 Unix objects are PIC.
17295	    lt_prog_compiler_pic_CXX=
17296	    lt_prog_compiler_static_CXX='-non_shared'
17297	    ;;
17298	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17299	    # IBM XL 8.0, 9.0 on PPC and BlueGene
17300	    lt_prog_compiler_wl_CXX='-Wl,'
17301	    lt_prog_compiler_pic_CXX='-qpic'
17302	    lt_prog_compiler_static_CXX='-qstaticlink'
17303	    ;;
17304	  *)
17305	    case `$CC -V 2>&1 | sed 5q` in
17306	    *Sun\ C*)
17307	      # Sun C++ 5.9
17308	      lt_prog_compiler_pic_CXX='-KPIC'
17309	      lt_prog_compiler_static_CXX='-Bstatic'
17310	      lt_prog_compiler_wl_CXX='-Qoption ld '
17311	      ;;
17312	    esac
17313	    ;;
17314	esac
17315	;;
17316      lynxos*)
17317	;;
17318      m88k*)
17319	;;
17320      mvs*)
17321	case $cc_basename in
17322	  cxx*)
17323	    lt_prog_compiler_pic_CXX='-W c,exportall'
17324	    ;;
17325	  *)
17326	    ;;
17327	esac
17328	;;
17329      netbsd*)
17330	;;
17331      *qnx* | *nto*)
17332        # QNX uses GNU C++, but need to define -shared option too, otherwise
17333        # it will coredump.
17334        lt_prog_compiler_pic_CXX='-fPIC -shared'
17335        ;;
17336      osf3* | osf4* | osf5*)
17337	case $cc_basename in
17338	  KCC*)
17339	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17340	    ;;
17341	  RCC*)
17342	    # Rational C++ 2.4.1
17343	    lt_prog_compiler_pic_CXX='-pic'
17344	    ;;
17345	  cxx*)
17346	    # Digital/Compaq C++
17347	    lt_prog_compiler_wl_CXX='-Wl,'
17348	    # Make sure the PIC flag is empty.  It appears that all Alpha
17349	    # Linux and Compaq Tru64 Unix objects are PIC.
17350	    lt_prog_compiler_pic_CXX=
17351	    lt_prog_compiler_static_CXX='-non_shared'
17352	    ;;
17353	  *)
17354	    ;;
17355	esac
17356	;;
17357      psos*)
17358	;;
17359      solaris*)
17360	case $cc_basename in
17361	  CC* | sunCC*)
17362	    # Sun C++ 4.2, 5.x and Centerline C++
17363	    lt_prog_compiler_pic_CXX='-KPIC'
17364	    lt_prog_compiler_static_CXX='-Bstatic'
17365	    lt_prog_compiler_wl_CXX='-Qoption ld '
17366	    ;;
17367	  gcx*)
17368	    # Green Hills C++ Compiler
17369	    lt_prog_compiler_pic_CXX='-PIC'
17370	    ;;
17371	  *)
17372	    ;;
17373	esac
17374	;;
17375      sunos4*)
17376	case $cc_basename in
17377	  CC*)
17378	    # Sun C++ 4.x
17379	    lt_prog_compiler_pic_CXX='-pic'
17380	    lt_prog_compiler_static_CXX='-Bstatic'
17381	    ;;
17382	  lcc*)
17383	    # Lucid
17384	    lt_prog_compiler_pic_CXX='-pic'
17385	    ;;
17386	  *)
17387	    ;;
17388	esac
17389	;;
17390      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17391	case $cc_basename in
17392	  CC*)
17393	    lt_prog_compiler_wl_CXX='-Wl,'
17394	    lt_prog_compiler_pic_CXX='-KPIC'
17395	    lt_prog_compiler_static_CXX='-Bstatic'
17396	    ;;
17397	esac
17398	;;
17399      tandem*)
17400	case $cc_basename in
17401	  NCC*)
17402	    # NonStop-UX NCC 3.20
17403	    lt_prog_compiler_pic_CXX='-KPIC'
17404	    ;;
17405	  *)
17406	    ;;
17407	esac
17408	;;
17409      vxworks*)
17410	;;
17411      *)
17412	lt_prog_compiler_can_build_shared_CXX=no
17413	;;
17414    esac
17415  fi
17416
17417case $host_os in
17418  # For platforms which do not support PIC, -DPIC is meaningless:
17419  *djgpp*)
17420    lt_prog_compiler_pic_CXX=
17421    ;;
17422  *)
17423    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17424    ;;
17425esac
17426
17427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17428$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17429if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17430  $as_echo_n "(cached) " >&6
17431else
17432  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17433fi
17434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17435$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17436lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17437
17438#
17439# Check to make sure the PIC flag actually works.
17440#
17441if test -n "$lt_prog_compiler_pic_CXX"; then
17442  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17443$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17444if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17445  $as_echo_n "(cached) " >&6
17446else
17447  lt_cv_prog_compiler_pic_works_CXX=no
17448   ac_outfile=conftest.$ac_objext
17449   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17450   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17451   # Insert the option either (1) after the last *FLAGS variable, or
17452   # (2) before a word containing "conftest.", or (3) at the end.
17453   # Note that $ac_compile itself does not contain backslashes and begins
17454   # with a dollar sign (not a hyphen), so the echo should work correctly.
17455   # The option is referenced via a variable to avoid confusing sed.
17456   lt_compile=`echo "$ac_compile" | $SED \
17457   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17458   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17459   -e 's:$: $lt_compiler_flag:'`
17460   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17461   (eval "$lt_compile" 2>conftest.err)
17462   ac_status=$?
17463   cat conftest.err >&5
17464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465   if (exit $ac_status) && test -s "$ac_outfile"; then
17466     # The compiler can only warn and ignore the option if not recognized
17467     # So say no if there are warnings other than the usual output.
17468     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17469     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17470     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17471       lt_cv_prog_compiler_pic_works_CXX=yes
17472     fi
17473   fi
17474   $RM conftest*
17475
17476fi
17477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17478$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17479
17480if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17481    case $lt_prog_compiler_pic_CXX in
17482     "" | " "*) ;;
17483     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17484     esac
17485else
17486    lt_prog_compiler_pic_CXX=
17487     lt_prog_compiler_can_build_shared_CXX=no
17488fi
17489
17490fi
17491
17492
17493
17494
17495
17496#
17497# Check to make sure the static flag actually works.
17498#
17499wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17501$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17502if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17503  $as_echo_n "(cached) " >&6
17504else
17505  lt_cv_prog_compiler_static_works_CXX=no
17506   save_LDFLAGS="$LDFLAGS"
17507   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17508   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17509   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17510     # The linker can only warn and ignore the option if not recognized
17511     # So say no if there are warnings
17512     if test -s conftest.err; then
17513       # Append any errors to the config.log.
17514       cat conftest.err 1>&5
17515       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17516       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17517       if diff conftest.exp conftest.er2 >/dev/null; then
17518         lt_cv_prog_compiler_static_works_CXX=yes
17519       fi
17520     else
17521       lt_cv_prog_compiler_static_works_CXX=yes
17522     fi
17523   fi
17524   $RM -r conftest*
17525   LDFLAGS="$save_LDFLAGS"
17526
17527fi
17528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17529$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17530
17531if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17532    :
17533else
17534    lt_prog_compiler_static_CXX=
17535fi
17536
17537
17538
17539
17540    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17541$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17542if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17543  $as_echo_n "(cached) " >&6
17544else
17545  lt_cv_prog_compiler_c_o_CXX=no
17546   $RM -r conftest 2>/dev/null
17547   mkdir conftest
17548   cd conftest
17549   mkdir out
17550   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17551
17552   lt_compiler_flag="-o out/conftest2.$ac_objext"
17553   # Insert the option either (1) after the last *FLAGS variable, or
17554   # (2) before a word containing "conftest.", or (3) at the end.
17555   # Note that $ac_compile itself does not contain backslashes and begins
17556   # with a dollar sign (not a hyphen), so the echo should work correctly.
17557   lt_compile=`echo "$ac_compile" | $SED \
17558   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17559   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17560   -e 's:$: $lt_compiler_flag:'`
17561   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17562   (eval "$lt_compile" 2>out/conftest.err)
17563   ac_status=$?
17564   cat out/conftest.err >&5
17565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17567   then
17568     # The compiler can only warn and ignore the option if not recognized
17569     # So say no if there are warnings
17570     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17571     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17572     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17573       lt_cv_prog_compiler_c_o_CXX=yes
17574     fi
17575   fi
17576   chmod u+w . 2>&5
17577   $RM conftest*
17578   # SGI C++ compiler will create directory out/ii_files/ for
17579   # template instantiation
17580   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17581   $RM out/* && rmdir out
17582   cd ..
17583   $RM -r conftest
17584   $RM conftest*
17585
17586fi
17587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17588$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17589
17590
17591
17592    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17593$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17594if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17595  $as_echo_n "(cached) " >&6
17596else
17597  lt_cv_prog_compiler_c_o_CXX=no
17598   $RM -r conftest 2>/dev/null
17599   mkdir conftest
17600   cd conftest
17601   mkdir out
17602   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17603
17604   lt_compiler_flag="-o out/conftest2.$ac_objext"
17605   # Insert the option either (1) after the last *FLAGS variable, or
17606   # (2) before a word containing "conftest.", or (3) at the end.
17607   # Note that $ac_compile itself does not contain backslashes and begins
17608   # with a dollar sign (not a hyphen), so the echo should work correctly.
17609   lt_compile=`echo "$ac_compile" | $SED \
17610   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17611   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17612   -e 's:$: $lt_compiler_flag:'`
17613   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17614   (eval "$lt_compile" 2>out/conftest.err)
17615   ac_status=$?
17616   cat out/conftest.err >&5
17617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17619   then
17620     # The compiler can only warn and ignore the option if not recognized
17621     # So say no if there are warnings
17622     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17623     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17624     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17625       lt_cv_prog_compiler_c_o_CXX=yes
17626     fi
17627   fi
17628   chmod u+w . 2>&5
17629   $RM conftest*
17630   # SGI C++ compiler will create directory out/ii_files/ for
17631   # template instantiation
17632   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17633   $RM out/* && rmdir out
17634   cd ..
17635   $RM -r conftest
17636   $RM conftest*
17637
17638fi
17639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17640$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17641
17642
17643
17644
17645hard_links="nottested"
17646if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17647  # do not overwrite the value of need_locks provided by the user
17648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17649$as_echo_n "checking if we can lock with hard links... " >&6; }
17650  hard_links=yes
17651  $RM conftest*
17652  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17653  touch conftest.a
17654  ln conftest.a conftest.b 2>&5 || hard_links=no
17655  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17657$as_echo "$hard_links" >&6; }
17658  if test "$hard_links" = no; then
17659    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17660$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17661    need_locks=warn
17662  fi
17663else
17664  need_locks=no
17665fi
17666
17667
17668
17669    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17670$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17671
17672  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17673  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17674  case $host_os in
17675  aix[4-9]*)
17676    # If we're using GNU nm, then we don't want the "-C" option.
17677    # -C means demangle to AIX nm, but means don't demangle with GNU nm
17678    # Also, AIX nm treats weak defined symbols like other global defined
17679    # symbols, whereas GNU nm marks them as "W".
17680    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17681      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'
17682    else
17683      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'
17684    fi
17685    ;;
17686  pw32*)
17687    export_symbols_cmds_CXX="$ltdll_cmds"
17688    ;;
17689  cygwin* | mingw* | cegcc*)
17690    case $cc_basename in
17691    cl*) ;;
17692    *)
17693      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'
17694      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17695      ;;
17696    esac
17697    ;;
17698  *)
17699    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17700    ;;
17701  esac
17702
17703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17704$as_echo "$ld_shlibs_CXX" >&6; }
17705test "$ld_shlibs_CXX" = no && can_build_shared=no
17706
17707with_gnu_ld_CXX=$with_gnu_ld
17708
17709
17710
17711
17712
17713
17714#
17715# Do we need to explicitly link libc?
17716#
17717case "x$archive_cmds_need_lc_CXX" in
17718x|xyes)
17719  # Assume -lc should be added
17720  archive_cmds_need_lc_CXX=yes
17721
17722  if test "$enable_shared" = yes && test "$GCC" = yes; then
17723    case $archive_cmds_CXX in
17724    *'~'*)
17725      # FIXME: we may have to deal with multi-command sequences.
17726      ;;
17727    '$CC '*)
17728      # Test whether the compiler implicitly links with -lc since on some
17729      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17730      # to ld, don't add -lc before -lgcc.
17731      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17732$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17733if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17734  $as_echo_n "(cached) " >&6
17735else
17736  $RM conftest*
17737	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17738
17739	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17740  (eval $ac_compile) 2>&5
17741  ac_status=$?
17742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17743  test $ac_status = 0; } 2>conftest.err; then
17744	  soname=conftest
17745	  lib=conftest
17746	  libobjs=conftest.$ac_objext
17747	  deplibs=
17748	  wl=$lt_prog_compiler_wl_CXX
17749	  pic_flag=$lt_prog_compiler_pic_CXX
17750	  compiler_flags=-v
17751	  linker_flags=-v
17752	  verstring=
17753	  output_objdir=.
17754	  libname=conftest
17755	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17756	  allow_undefined_flag_CXX=
17757	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17758  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17759  ac_status=$?
17760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17761  test $ac_status = 0; }
17762	  then
17763	    lt_cv_archive_cmds_need_lc_CXX=no
17764	  else
17765	    lt_cv_archive_cmds_need_lc_CXX=yes
17766	  fi
17767	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17768	else
17769	  cat conftest.err 1>&5
17770	fi
17771	$RM conftest*
17772
17773fi
17774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17775$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17776      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17777      ;;
17778    esac
17779  fi
17780  ;;
17781esac
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17847$as_echo_n "checking dynamic linker characteristics... " >&6; }
17848
17849library_names_spec=
17850libname_spec='lib$name'
17851soname_spec=
17852shrext_cmds=".so"
17853postinstall_cmds=
17854postuninstall_cmds=
17855finish_cmds=
17856finish_eval=
17857shlibpath_var=
17858shlibpath_overrides_runpath=unknown
17859version_type=none
17860dynamic_linker="$host_os ld.so"
17861sys_lib_dlsearch_path_spec="/lib /usr/lib"
17862need_lib_prefix=unknown
17863hardcode_into_libs=no
17864
17865# when you set need_version to no, make sure it does not cause -set_version
17866# flags to be left without arguments
17867need_version=unknown
17868
17869case $host_os in
17870aix3*)
17871  version_type=linux
17872  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17873  shlibpath_var=LIBPATH
17874
17875  # AIX 3 has no versioning support, so we append a major version to the name.
17876  soname_spec='${libname}${release}${shared_ext}$major'
17877  ;;
17878
17879aix[4-9]*)
17880  version_type=linux
17881  need_lib_prefix=no
17882  need_version=no
17883  hardcode_into_libs=yes
17884  if test "$host_cpu" = ia64; then
17885    # AIX 5 supports IA64
17886    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17887    shlibpath_var=LD_LIBRARY_PATH
17888  else
17889    # With GCC up to 2.95.x, collect2 would create an import file
17890    # for dependence libraries.  The import file would start with
17891    # the line `#! .'.  This would cause the generated library to
17892    # depend on `.', always an invalid library.  This was fixed in
17893    # development snapshots of GCC prior to 3.0.
17894    case $host_os in
17895      aix4 | aix4.[01] | aix4.[01].*)
17896      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17897	   echo ' yes '
17898	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17899	:
17900      else
17901	can_build_shared=no
17902      fi
17903      ;;
17904    esac
17905    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17906    # soname into executable. Probably we can add versioning support to
17907    # collect2, so additional links can be useful in future.
17908    if test "$aix_use_runtimelinking" = yes; then
17909      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17910      # instead of lib<name>.a to let people know that these are not
17911      # typical AIX shared libraries.
17912      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17913    else
17914      # We preserve .a as extension for shared libraries through AIX4.2
17915      # and later when we are not doing run time linking.
17916      library_names_spec='${libname}${release}.a $libname.a'
17917      soname_spec='${libname}${release}${shared_ext}$major'
17918    fi
17919    shlibpath_var=LIBPATH
17920  fi
17921  ;;
17922
17923amigaos*)
17924  case $host_cpu in
17925  powerpc)
17926    # Since July 2007 AmigaOS4 officially supports .so libraries.
17927    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17928    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17929    ;;
17930  m68k)
17931    library_names_spec='$libname.ixlibrary $libname.a'
17932    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17933    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'
17934    ;;
17935  esac
17936  ;;
17937
17938beos*)
17939  library_names_spec='${libname}${shared_ext}'
17940  dynamic_linker="$host_os ld.so"
17941  shlibpath_var=LIBRARY_PATH
17942  ;;
17943
17944bsdi[45]*)
17945  version_type=linux
17946  need_version=no
17947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17948  soname_spec='${libname}${release}${shared_ext}$major'
17949  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17950  shlibpath_var=LD_LIBRARY_PATH
17951  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17952  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17953  # the default ld.so.conf also contains /usr/contrib/lib and
17954  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17955  # libtool to hard-code these into programs
17956  ;;
17957
17958cygwin* | mingw* | pw32* | cegcc*)
17959  version_type=windows
17960  shrext_cmds=".dll"
17961  need_version=no
17962  need_lib_prefix=no
17963
17964  case $GCC,$cc_basename in
17965  yes,*)
17966    # gcc
17967    library_names_spec='$libname.dll.a'
17968    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17969    postinstall_cmds='base_file=`basename \${file}`~
17970      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17971      dldir=$destdir/`dirname \$dlpath`~
17972      test -d \$dldir || mkdir -p \$dldir~
17973      $install_prog $dir/$dlname \$dldir/$dlname~
17974      chmod a+x \$dldir/$dlname~
17975      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17976        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17977      fi'
17978    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17979      dlpath=$dir/\$dldll~
17980       $RM \$dlpath'
17981    shlibpath_overrides_runpath=yes
17982
17983    case $host_os in
17984    cygwin*)
17985      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17986      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17987
17988      ;;
17989    mingw* | cegcc*)
17990      # MinGW DLLs use traditional 'lib' prefix
17991      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17992      ;;
17993    pw32*)
17994      # pw32 DLLs use 'pw' prefix rather than 'lib'
17995      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17996      ;;
17997    esac
17998    dynamic_linker='Win32 ld.exe'
17999    ;;
18000
18001  *,cl*)
18002    # Native MSVC
18003    libname_spec='$name'
18004    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18005    library_names_spec='${libname}.dll.lib'
18006
18007    case $build_os in
18008    mingw*)
18009      sys_lib_search_path_spec=
18010      lt_save_ifs=$IFS
18011      IFS=';'
18012      for lt_path in $LIB
18013      do
18014        IFS=$lt_save_ifs
18015        # Let DOS variable expansion print the short 8.3 style file name.
18016        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18017        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18018      done
18019      IFS=$lt_save_ifs
18020      # Convert to MSYS style.
18021      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18022      ;;
18023    cygwin*)
18024      # Convert to unix form, then to dos form, then back to unix form
18025      # but this time dos style (no spaces!) so that the unix form looks
18026      # like /cygdrive/c/PROGRA~1:/cygdr...
18027      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18028      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18029      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18030      ;;
18031    *)
18032      sys_lib_search_path_spec="$LIB"
18033      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18034        # It is most probably a Windows format PATH.
18035        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18036      else
18037        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18038      fi
18039      # FIXME: find the short name or the path components, as spaces are
18040      # common. (e.g. "Program Files" -> "PROGRA~1")
18041      ;;
18042    esac
18043
18044    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18045    postinstall_cmds='base_file=`basename \${file}`~
18046      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18047      dldir=$destdir/`dirname \$dlpath`~
18048      test -d \$dldir || mkdir -p \$dldir~
18049      $install_prog $dir/$dlname \$dldir/$dlname'
18050    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18051      dlpath=$dir/\$dldll~
18052       $RM \$dlpath'
18053    shlibpath_overrides_runpath=yes
18054    dynamic_linker='Win32 link.exe'
18055    ;;
18056
18057  *)
18058    # Assume MSVC wrapper
18059    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18060    dynamic_linker='Win32 ld.exe'
18061    ;;
18062  esac
18063  # FIXME: first we should search . and the directory the executable is in
18064  shlibpath_var=PATH
18065  ;;
18066
18067darwin* | rhapsody*)
18068  dynamic_linker="$host_os dyld"
18069  version_type=darwin
18070  need_lib_prefix=no
18071  need_version=no
18072  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18073  soname_spec='${libname}${release}${major}$shared_ext'
18074  shlibpath_overrides_runpath=yes
18075  shlibpath_var=DYLD_LIBRARY_PATH
18076  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18077
18078  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18079  ;;
18080
18081dgux*)
18082  version_type=linux
18083  need_lib_prefix=no
18084  need_version=no
18085  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18086  soname_spec='${libname}${release}${shared_ext}$major'
18087  shlibpath_var=LD_LIBRARY_PATH
18088  ;;
18089
18090freebsd1*)
18091  dynamic_linker=no
18092  ;;
18093
18094freebsd* | dragonfly*)
18095  # DragonFly does not have aout.  When/if they implement a new
18096  # versioning mechanism, adjust this.
18097  if test -x /usr/bin/objformat; then
18098    objformat=`/usr/bin/objformat`
18099  else
18100    case $host_os in
18101    freebsd[123]*) objformat=aout ;;
18102    *) objformat=elf ;;
18103    esac
18104  fi
18105  version_type=freebsd-$objformat
18106  case $version_type in
18107    freebsd-elf*)
18108      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18109      need_version=no
18110      need_lib_prefix=no
18111      ;;
18112    freebsd-*)
18113      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18114      need_version=yes
18115      ;;
18116  esac
18117  shlibpath_var=LD_LIBRARY_PATH
18118  case $host_os in
18119  freebsd2*)
18120    shlibpath_overrides_runpath=yes
18121    ;;
18122  freebsd3.[01]* | freebsdelf3.[01]*)
18123    shlibpath_overrides_runpath=yes
18124    hardcode_into_libs=yes
18125    ;;
18126  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18127  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18128    shlibpath_overrides_runpath=no
18129    hardcode_into_libs=yes
18130    ;;
18131  *) # from 4.6 on, and DragonFly
18132    shlibpath_overrides_runpath=yes
18133    hardcode_into_libs=yes
18134    ;;
18135  esac
18136  ;;
18137
18138gnu*)
18139  version_type=linux
18140  need_lib_prefix=no
18141  need_version=no
18142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18143  soname_spec='${libname}${release}${shared_ext}$major'
18144  shlibpath_var=LD_LIBRARY_PATH
18145  hardcode_into_libs=yes
18146  ;;
18147
18148haiku*)
18149  version_type=linux
18150  need_lib_prefix=no
18151  need_version=no
18152  dynamic_linker="$host_os runtime_loader"
18153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18154  soname_spec='${libname}${release}${shared_ext}$major'
18155  shlibpath_var=LIBRARY_PATH
18156  shlibpath_overrides_runpath=yes
18157  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18158  hardcode_into_libs=yes
18159  ;;
18160
18161hpux9* | hpux10* | hpux11*)
18162  # Give a soname corresponding to the major version so that dld.sl refuses to
18163  # link against other versions.
18164  version_type=sunos
18165  need_lib_prefix=no
18166  need_version=no
18167  case $host_cpu in
18168  ia64*)
18169    shrext_cmds='.so'
18170    hardcode_into_libs=yes
18171    dynamic_linker="$host_os dld.so"
18172    shlibpath_var=LD_LIBRARY_PATH
18173    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18174    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18175    soname_spec='${libname}${release}${shared_ext}$major'
18176    if test "X$HPUX_IA64_MODE" = X32; then
18177      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18178    else
18179      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18180    fi
18181    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18182    ;;
18183  hppa*64*)
18184    shrext_cmds='.sl'
18185    hardcode_into_libs=yes
18186    dynamic_linker="$host_os dld.sl"
18187    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18188    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18189    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18190    soname_spec='${libname}${release}${shared_ext}$major'
18191    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18192    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18193    ;;
18194  *)
18195    shrext_cmds='.sl'
18196    dynamic_linker="$host_os dld.sl"
18197    shlibpath_var=SHLIB_PATH
18198    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18199    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18200    soname_spec='${libname}${release}${shared_ext}$major'
18201    ;;
18202  esac
18203  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18204  postinstall_cmds='chmod 555 $lib'
18205  # or fails outright, so override atomically:
18206  install_override_mode=555
18207  ;;
18208
18209interix[3-9]*)
18210  version_type=linux
18211  need_lib_prefix=no
18212  need_version=no
18213  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18214  soname_spec='${libname}${release}${shared_ext}$major'
18215  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18216  shlibpath_var=LD_LIBRARY_PATH
18217  shlibpath_overrides_runpath=no
18218  hardcode_into_libs=yes
18219  ;;
18220
18221irix5* | irix6* | nonstopux*)
18222  case $host_os in
18223    nonstopux*) version_type=nonstopux ;;
18224    *)
18225	if test "$lt_cv_prog_gnu_ld" = yes; then
18226		version_type=linux
18227	else
18228		version_type=irix
18229	fi ;;
18230  esac
18231  need_lib_prefix=no
18232  need_version=no
18233  soname_spec='${libname}${release}${shared_ext}$major'
18234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18235  case $host_os in
18236  irix5* | nonstopux*)
18237    libsuff= shlibsuff=
18238    ;;
18239  *)
18240    case $LD in # libtool.m4 will add one of these switches to LD
18241    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18242      libsuff= shlibsuff= libmagic=32-bit;;
18243    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18244      libsuff=32 shlibsuff=N32 libmagic=N32;;
18245    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18246      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18247    *) libsuff= shlibsuff= libmagic=never-match;;
18248    esac
18249    ;;
18250  esac
18251  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18252  shlibpath_overrides_runpath=no
18253  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18254  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18255  hardcode_into_libs=yes
18256  ;;
18257
18258# No shared lib support for Linux oldld, aout, or coff.
18259linux*oldld* | linux*aout* | linux*coff*)
18260  dynamic_linker=no
18261  ;;
18262
18263# This must be Linux ELF.
18264linux* | k*bsd*-gnu | kopensolaris*-gnu)
18265  version_type=linux
18266  need_lib_prefix=no
18267  need_version=no
18268  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18269  soname_spec='${libname}${release}${shared_ext}$major'
18270  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18271  shlibpath_var=LD_LIBRARY_PATH
18272  shlibpath_overrides_runpath=no
18273
18274  # Some binutils ld are patched to set DT_RUNPATH
18275  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18276  $as_echo_n "(cached) " >&6
18277else
18278  lt_cv_shlibpath_overrides_runpath=no
18279    save_LDFLAGS=$LDFLAGS
18280    save_libdir=$libdir
18281    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18282	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18283    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18284/* end confdefs.h.  */
18285
18286int
18287main ()
18288{
18289
18290  ;
18291  return 0;
18292}
18293_ACEOF
18294if ac_fn_cxx_try_link "$LINENO"; then :
18295  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18296  lt_cv_shlibpath_overrides_runpath=yes
18297fi
18298fi
18299rm -f core conftest.err conftest.$ac_objext \
18300    conftest$ac_exeext conftest.$ac_ext
18301    LDFLAGS=$save_LDFLAGS
18302    libdir=$save_libdir
18303
18304fi
18305
18306  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18307
18308  # This implies no fast_install, which is unacceptable.
18309  # Some rework will be needed to allow for fast_install
18310  # before this can be enabled.
18311  hardcode_into_libs=yes
18312
18313  # Append ld.so.conf contents to the search path
18314  if test -f /etc/ld.so.conf; then
18315    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' ' '`
18316    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18317  fi
18318
18319  # We used to test for /lib/ld.so.1 and disable shared libraries on
18320  # powerpc, because MkLinux only supported shared libraries with the
18321  # GNU dynamic linker.  Since this was broken with cross compilers,
18322  # most powerpc-linux boxes support dynamic linking these days and
18323  # people can always --disable-shared, the test was removed, and we
18324  # assume the GNU/Linux dynamic linker is in use.
18325  dynamic_linker='GNU/Linux ld.so'
18326  ;;
18327
18328netbsd*)
18329  version_type=sunos
18330  need_lib_prefix=no
18331  need_version=no
18332  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18333    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18334    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18335    dynamic_linker='NetBSD (a.out) ld.so'
18336  else
18337    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18338    soname_spec='${libname}${release}${shared_ext}$major'
18339    dynamic_linker='NetBSD ld.elf_so'
18340  fi
18341  shlibpath_var=LD_LIBRARY_PATH
18342  shlibpath_overrides_runpath=yes
18343  hardcode_into_libs=yes
18344  ;;
18345
18346newsos6)
18347  version_type=linux
18348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18349  shlibpath_var=LD_LIBRARY_PATH
18350  shlibpath_overrides_runpath=yes
18351  ;;
18352
18353*nto* | *qnx*)
18354  version_type=qnx
18355  need_lib_prefix=no
18356  need_version=no
18357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18358  soname_spec='${libname}${release}${shared_ext}$major'
18359  shlibpath_var=LD_LIBRARY_PATH
18360  shlibpath_overrides_runpath=no
18361  hardcode_into_libs=yes
18362  dynamic_linker='ldqnx.so'
18363  ;;
18364
18365openbsd*)
18366  version_type=sunos
18367  sys_lib_dlsearch_path_spec="/usr/lib"
18368  need_lib_prefix=no
18369  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18370  case $host_os in
18371    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
18372    *)				need_version=no  ;;
18373  esac
18374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18375  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18376  shlibpath_var=LD_LIBRARY_PATH
18377  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18378    case $host_os in
18379      openbsd2.[89] | openbsd2.[89].*)
18380	shlibpath_overrides_runpath=no
18381	;;
18382      *)
18383	shlibpath_overrides_runpath=yes
18384	;;
18385      esac
18386  else
18387    shlibpath_overrides_runpath=yes
18388  fi
18389  ;;
18390
18391os2*)
18392  libname_spec='$name'
18393  shrext_cmds=".dll"
18394  need_lib_prefix=no
18395  library_names_spec='$libname${shared_ext} $libname.a'
18396  dynamic_linker='OS/2 ld.exe'
18397  shlibpath_var=LIBPATH
18398  ;;
18399
18400osf3* | osf4* | osf5*)
18401  version_type=osf
18402  need_lib_prefix=no
18403  need_version=no
18404  soname_spec='${libname}${release}${shared_ext}$major'
18405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18406  shlibpath_var=LD_LIBRARY_PATH
18407  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18408  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18409  ;;
18410
18411rdos*)
18412  dynamic_linker=no
18413  ;;
18414
18415solaris*)
18416  version_type=linux
18417  need_lib_prefix=no
18418  need_version=no
18419  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18420  soname_spec='${libname}${release}${shared_ext}$major'
18421  shlibpath_var=LD_LIBRARY_PATH
18422  shlibpath_overrides_runpath=yes
18423  hardcode_into_libs=yes
18424  # ldd complains unless libraries are executable
18425  postinstall_cmds='chmod +x $lib'
18426  ;;
18427
18428sunos4*)
18429  version_type=sunos
18430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18431  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18432  shlibpath_var=LD_LIBRARY_PATH
18433  shlibpath_overrides_runpath=yes
18434  if test "$with_gnu_ld" = yes; then
18435    need_lib_prefix=no
18436  fi
18437  need_version=yes
18438  ;;
18439
18440sysv4 | sysv4.3*)
18441  version_type=linux
18442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18443  soname_spec='${libname}${release}${shared_ext}$major'
18444  shlibpath_var=LD_LIBRARY_PATH
18445  case $host_vendor in
18446    sni)
18447      shlibpath_overrides_runpath=no
18448      need_lib_prefix=no
18449      runpath_var=LD_RUN_PATH
18450      ;;
18451    siemens)
18452      need_lib_prefix=no
18453      ;;
18454    motorola)
18455      need_lib_prefix=no
18456      need_version=no
18457      shlibpath_overrides_runpath=no
18458      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18459      ;;
18460  esac
18461  ;;
18462
18463sysv4*MP*)
18464  if test -d /usr/nec ;then
18465    version_type=linux
18466    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18467    soname_spec='$libname${shared_ext}.$major'
18468    shlibpath_var=LD_LIBRARY_PATH
18469  fi
18470  ;;
18471
18472sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18473  version_type=freebsd-elf
18474  need_lib_prefix=no
18475  need_version=no
18476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18477  soname_spec='${libname}${release}${shared_ext}$major'
18478  shlibpath_var=LD_LIBRARY_PATH
18479  shlibpath_overrides_runpath=yes
18480  hardcode_into_libs=yes
18481  if test "$with_gnu_ld" = yes; then
18482    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18483  else
18484    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18485    case $host_os in
18486      sco3.2v5*)
18487        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18488	;;
18489    esac
18490  fi
18491  sys_lib_dlsearch_path_spec='/usr/lib'
18492  ;;
18493
18494tpf*)
18495  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18496  version_type=linux
18497  need_lib_prefix=no
18498  need_version=no
18499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18500  shlibpath_var=LD_LIBRARY_PATH
18501  shlibpath_overrides_runpath=no
18502  hardcode_into_libs=yes
18503  ;;
18504
18505uts4*)
18506  version_type=linux
18507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18508  soname_spec='${libname}${release}${shared_ext}$major'
18509  shlibpath_var=LD_LIBRARY_PATH
18510  ;;
18511
18512*)
18513  dynamic_linker=no
18514  ;;
18515esac
18516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18517$as_echo "$dynamic_linker" >&6; }
18518test "$dynamic_linker" = no && can_build_shared=no
18519
18520variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18521if test "$GCC" = yes; then
18522  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18523fi
18524
18525if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18526  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18527fi
18528if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18529  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18530fi
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18570$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18571hardcode_action_CXX=
18572if test -n "$hardcode_libdir_flag_spec_CXX" ||
18573   test -n "$runpath_var_CXX" ||
18574   test "X$hardcode_automatic_CXX" = "Xyes" ; then
18575
18576  # We can hardcode non-existent directories.
18577  if test "$hardcode_direct_CXX" != no &&
18578     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18579     # have to relink, otherwise we might link with an installed library
18580     # when we should be linking with a yet-to-be-installed one
18581     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18582     test "$hardcode_minus_L_CXX" != no; then
18583    # Linking always hardcodes the temporary library directory.
18584    hardcode_action_CXX=relink
18585  else
18586    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18587    hardcode_action_CXX=immediate
18588  fi
18589else
18590  # We cannot hardcode anything, or else we can only hardcode existing
18591  # directories.
18592  hardcode_action_CXX=unsupported
18593fi
18594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18595$as_echo "$hardcode_action_CXX" >&6; }
18596
18597if test "$hardcode_action_CXX" = relink ||
18598   test "$inherit_rpath_CXX" = yes; then
18599  # Fast installation is not supported
18600  enable_fast_install=no
18601elif test "$shlibpath_overrides_runpath" = yes ||
18602     test "$enable_shared" = no; then
18603  # Fast installation is not necessary
18604  enable_fast_install=needless
18605fi
18606
18607
18608
18609
18610
18611
18612
18613  fi # test -n "$compiler"
18614
18615  CC=$lt_save_CC
18616  CFLAGS=$lt_save_CFLAGS
18617  LDCXX=$LD
18618  LD=$lt_save_LD
18619  GCC=$lt_save_GCC
18620  with_gnu_ld=$lt_save_with_gnu_ld
18621  lt_cv_path_LDCXX=$lt_cv_path_LD
18622  lt_cv_path_LD=$lt_save_path_LD
18623  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18624  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18625fi # test "$_lt_caught_CXX_error" != yes
18626
18627ac_ext=c
18628ac_cpp='$CPP $CPPFLAGS'
18629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18631ac_compiler_gnu=$ac_cv_c_compiler_gnu
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645        ac_config_commands="$ac_config_commands libtool"
18646
18647
18648
18649
18650# Only expand once:
18651
18652
18653
18654
18655# NTP has (so far) been relying on leading-edge autogen, which
18656# means we need the appropriate corresponding libopts as well.
18657# Therefore, by default:
18658# - use the version of libopts we ship with
18659# - do not install it
18660# - build a static copy (AC_DISABLE_SHARED - done earlier)
18661case "${enable_local_libopts+set}" in
18662 set) ;;
18663 *) enable_local_libopts=yes ;;
18664esac
18665case "${enable_libopts_install+set}" in
18666 set) ;;
18667 *) enable_libopts_install=no ;;
18668esac
18669enable_nls=no
18670ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18671if test "x$ac_cv_type_pid_t" = xyes; then :
18672
18673else
18674
18675cat >>confdefs.h <<_ACEOF
18676#define pid_t int
18677_ACEOF
18678
18679fi
18680
18681
18682
18683  ac_header_dirent=no
18684for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18685  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
18687$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
18688if eval \${$as_ac_Header+:} false; then :
18689  $as_echo_n "(cached) " >&6
18690else
18691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18692/* end confdefs.h.  */
18693#include <sys/types.h>
18694#include <$ac_hdr>
18695
18696int
18697main ()
18698{
18699if ((DIR *) 0)
18700return 0;
18701  ;
18702  return 0;
18703}
18704_ACEOF
18705if ac_fn_c_try_compile "$LINENO"; then :
18706  eval "$as_ac_Header=yes"
18707else
18708  eval "$as_ac_Header=no"
18709fi
18710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18711fi
18712eval ac_res=\$$as_ac_Header
18713	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18714$as_echo "$ac_res" >&6; }
18715if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18716  cat >>confdefs.h <<_ACEOF
18717#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18718_ACEOF
18719
18720ac_header_dirent=$ac_hdr; break
18721fi
18722
18723done
18724# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18725if test $ac_header_dirent = dirent.h; then
18726  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18727$as_echo_n "checking for library containing opendir... " >&6; }
18728if ${ac_cv_search_opendir+:} false; then :
18729  $as_echo_n "(cached) " >&6
18730else
18731  ac_func_search_save_LIBS=$LIBS
18732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18733/* end confdefs.h.  */
18734
18735/* Override any GCC internal prototype to avoid an error.
18736   Use char because int might match the return type of a GCC
18737   builtin and then its argument prototype would still apply.  */
18738#ifdef __cplusplus
18739extern "C"
18740#endif
18741char opendir ();
18742int
18743main ()
18744{
18745return opendir ();
18746  ;
18747  return 0;
18748}
18749_ACEOF
18750for ac_lib in '' dir; do
18751  if test -z "$ac_lib"; then
18752    ac_res="none required"
18753  else
18754    ac_res=-l$ac_lib
18755    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18756  fi
18757  if ac_fn_c_try_link "$LINENO"; then :
18758  ac_cv_search_opendir=$ac_res
18759fi
18760rm -f core conftest.err conftest.$ac_objext \
18761    conftest$ac_exeext
18762  if ${ac_cv_search_opendir+:} false; then :
18763  break
18764fi
18765done
18766if ${ac_cv_search_opendir+:} false; then :
18767
18768else
18769  ac_cv_search_opendir=no
18770fi
18771rm conftest.$ac_ext
18772LIBS=$ac_func_search_save_LIBS
18773fi
18774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18775$as_echo "$ac_cv_search_opendir" >&6; }
18776ac_res=$ac_cv_search_opendir
18777if test "$ac_res" != no; then :
18778  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18779
18780fi
18781
18782else
18783  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18784$as_echo_n "checking for library containing opendir... " >&6; }
18785if ${ac_cv_search_opendir+:} false; then :
18786  $as_echo_n "(cached) " >&6
18787else
18788  ac_func_search_save_LIBS=$LIBS
18789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18790/* end confdefs.h.  */
18791
18792/* Override any GCC internal prototype to avoid an error.
18793   Use char because int might match the return type of a GCC
18794   builtin and then its argument prototype would still apply.  */
18795#ifdef __cplusplus
18796extern "C"
18797#endif
18798char opendir ();
18799int
18800main ()
18801{
18802return opendir ();
18803  ;
18804  return 0;
18805}
18806_ACEOF
18807for ac_lib in '' x; do
18808  if test -z "$ac_lib"; then
18809    ac_res="none required"
18810  else
18811    ac_res=-l$ac_lib
18812    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18813  fi
18814  if ac_fn_c_try_link "$LINENO"; then :
18815  ac_cv_search_opendir=$ac_res
18816fi
18817rm -f core conftest.err conftest.$ac_objext \
18818    conftest$ac_exeext
18819  if ${ac_cv_search_opendir+:} false; then :
18820  break
18821fi
18822done
18823if ${ac_cv_search_opendir+:} false; then :
18824
18825else
18826  ac_cv_search_opendir=no
18827fi
18828rm conftest.$ac_ext
18829LIBS=$ac_func_search_save_LIBS
18830fi
18831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18832$as_echo "$ac_cv_search_opendir" >&6; }
18833ac_res=$ac_cv_search_opendir
18834if test "$ac_res" != no; then :
18835  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18836
18837fi
18838
18839fi
18840
18841
18842  # =================
18843  # AC_CHECK_HEADERS
18844  # =================
18845  for ac_header in  \
18846      sys/mman.h    sys/param.h   sys/poll.h    sys/procset.h \
18847      sys/select.h  sys/socket.h  sys/stropts.h sys/time.h \
18848      sys/un.h      sys/wait.h    dlfcn.h       errno.h \
18849      fcntl.h       libgen.h      libintl.h     memory.h \
18850      netinet/in.h  setjmp.h      stdbool.h     sysexits.h \
18851      unistd.h      utime.h
18852do :
18853  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18854ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18855if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18856  cat >>confdefs.h <<_ACEOF
18857#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18858_ACEOF
18859
18860fi
18861
18862done
18863
18864
18865  for ac_header in stdarg.h     varargs.h
18866do :
18867  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18868ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18869if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18870  cat >>confdefs.h <<_ACEOF
18871#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18872_ACEOF
18873 lo_have_arg_hdr=true;break
18874else
18875  lo_have_arg_hdr=false
18876fi
18877
18878done
18879
18880
18881  for ac_header in string.h     strings.h
18882do :
18883  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18884ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18885if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18886  cat >>confdefs.h <<_ACEOF
18887#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18888_ACEOF
18889 lo_have_str_hdr=true;break
18890else
18891  lo_have_str_hdr=false
18892fi
18893
18894done
18895
18896
18897  for ac_header in limits.h     sys/limits.h  values.h
18898do :
18899  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18900ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18901if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18902  cat >>confdefs.h <<_ACEOF
18903#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18904_ACEOF
18905 lo_have_lim_hdr=true;break
18906else
18907  lo_have_lim_hdr=false
18908fi
18909
18910done
18911
18912
18913  for ac_header in inttypes.h   stdint.h
18914do :
18915  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18916ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18917if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18918  cat >>confdefs.h <<_ACEOF
18919#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18920_ACEOF
18921 lo_have_typ_hdr=true;break
18922else
18923  lo_have_typ_hdr=false
18924fi
18925
18926done
18927
18928
18929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
18930$as_echo_n "checking for working stdnoreturn.h... " >&6; }
18931if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
18932  $as_echo_n "(cached) " >&6
18933else
18934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18935/* end confdefs.h.  */
18936#include <stdlib.h>
18937            #include <stdnoreturn.h>
18938            /* Do not check for 'noreturn' after the return type.
18939               C11 allows it, but it's rarely done that way
18940               and circa-2012 bleeding-edge GCC rejects it when given
18941               -Werror=old-style-declaration.  */
18942            noreturn void foo1 (void) { exit (0); }
18943            _Noreturn void foo2 (void) { exit (0); }
18944            int testit (int argc, char **argv) {
18945              if (argc & 1)
18946                return 0;
18947              (argv[0][0] ? foo1 : foo2) ();
18948            }
18949
18950int
18951main ()
18952{
18953
18954  ;
18955  return 0;
18956}
18957_ACEOF
18958if ac_fn_c_try_compile "$LINENO"; then :
18959  gl_cv_header_working_stdnoreturn_h=yes
18960else
18961  gl_cv_header_working_stdnoreturn_h=no
18962fi
18963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18964fi
18965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
18966$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
18967
18968  if test $gl_cv_header_working_stdnoreturn_h = yes; then
18969    STDNORETURN_H=''
18970  else
18971    STDNORETURN_H='stdnoreturn.h'
18972  fi
18973
18974
18975   if test -n "$STDNORETURN_H"; then
18976  GL_GENERATE_STDNORETURN_H_TRUE=
18977  GL_GENERATE_STDNORETURN_H_FALSE='#'
18978else
18979  GL_GENERATE_STDNORETURN_H_TRUE='#'
18980  GL_GENERATE_STDNORETURN_H_FALSE=
18981fi
18982
18983
18984
18985  # ----------------------------------------------------------------------
18986  # check for various programs used during the build.
18987  # On OS/X, "wchar.h" needs "runetype.h" to work properly.
18988  # ----------------------------------------------------------------------
18989  for ac_header in runetype.h wchar.h
18990do :
18991  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18992ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
18993  $ac_includes_default
18994  #if HAVE_RUNETYPE_H
18995  # include <runetype.h>
18996  #endif
18997
18998"
18999if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19000  cat >>confdefs.h <<_ACEOF
19001#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19002_ACEOF
19003
19004fi
19005
19006done
19007
19008
19009  # Check whether --enable-nls was given.
19010if test "${enable_nls+set}" = set; then :
19011  enableval=$enable_nls;
19012fi
19013
19014  if test "x$enable_nls" != "xno" && \
19015  test "X${ac_cv_header_libintl_h}" = Xyes; then :
19016
19017
19018$as_echo "#define ENABLE_NLS 1" >>confdefs.h
19019
19020fi
19021
19022  # --------------------------------------------
19023  # Verify certain entries from AC_CHECK_HEADERS
19024  # --------------------------------------------
19025  ${lo_have_arg_hdr} || \
19026    as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
19027
19028  ${lo_have_str_hdr} || \
19029    as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
19030
19031  ${lo_have_lim_hdr} || \
19032    as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
19033
19034  ${lo_have_typ_hdr} || \
19035    as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
19036
19037  for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
19038  do eval as_ac_var=\${ac_cv_header_${f}_h}
19039     test "X${as_ac_var}" = Xyes || {
19040       as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
19041     }
19042  done
19043  test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
19044    echo '#include <stdint.h>' > inttypes.h
19045
19046  # ----------------------------------------------------------------------
19047  # Checks for typedefs
19048  # ----------------------------------------------------------------------
19049  ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
19050if test "x$ac_cv_type_wchar_t" = xyes; then :
19051
19052cat >>confdefs.h <<_ACEOF
19053#define HAVE_WCHAR_T 1
19054_ACEOF
19055
19056
19057fi
19058
19059  ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
19060    $ac_includes_default
19061    #if HAVE_RUNETYPE_H
19062    # include <runetype.h>
19063    #endif
19064    #if HAVE_WCHAR_H
19065    # include <wchar.h>
19066    #endif
19067
19068"
19069if test "x$ac_cv_type_wint_t" = xyes; then :
19070
19071cat >>confdefs.h <<_ACEOF
19072#define HAVE_WINT_T 1
19073_ACEOF
19074
19075
19076fi
19077
19078  ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
19079if test "x$ac_cv_type_int8_t" = xyes; then :
19080
19081cat >>confdefs.h <<_ACEOF
19082#define HAVE_INT8_T 1
19083_ACEOF
19084
19085
19086fi
19087ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
19088if test "x$ac_cv_type_uint8_t" = xyes; then :
19089
19090cat >>confdefs.h <<_ACEOF
19091#define HAVE_UINT8_T 1
19092_ACEOF
19093
19094
19095fi
19096ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
19097if test "x$ac_cv_type_int16_t" = xyes; then :
19098
19099cat >>confdefs.h <<_ACEOF
19100#define HAVE_INT16_T 1
19101_ACEOF
19102
19103
19104fi
19105ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
19106if test "x$ac_cv_type_uint16_t" = xyes; then :
19107
19108cat >>confdefs.h <<_ACEOF
19109#define HAVE_UINT16_T 1
19110_ACEOF
19111
19112
19113fi
19114ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
19115if test "x$ac_cv_type_int32_t" = xyes; then :
19116
19117cat >>confdefs.h <<_ACEOF
19118#define HAVE_INT32_T 1
19119_ACEOF
19120
19121
19122fi
19123ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
19124if test "x$ac_cv_type_uint32_t" = xyes; then :
19125
19126cat >>confdefs.h <<_ACEOF
19127#define HAVE_UINT32_T 1
19128_ACEOF
19129
19130
19131fi
19132ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
19133if test "x$ac_cv_type_intptr_t" = xyes; then :
19134
19135cat >>confdefs.h <<_ACEOF
19136#define HAVE_INTPTR_T 1
19137_ACEOF
19138
19139
19140fi
19141ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
19142if test "x$ac_cv_type_uintptr_t" = xyes; then :
19143
19144cat >>confdefs.h <<_ACEOF
19145#define HAVE_UINTPTR_T 1
19146_ACEOF
19147
19148
19149fi
19150ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
19151if test "x$ac_cv_type_uint_t" = xyes; then :
19152
19153cat >>confdefs.h <<_ACEOF
19154#define HAVE_UINT_T 1
19155_ACEOF
19156
19157
19158fi
19159ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19160if test "x$ac_cv_type_pid_t" = xyes; then :
19161
19162cat >>confdefs.h <<_ACEOF
19163#define HAVE_PID_T 1
19164_ACEOF
19165
19166
19167fi
19168ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19169if test "x$ac_cv_type_size_t" = xyes; then :
19170
19171cat >>confdefs.h <<_ACEOF
19172#define HAVE_SIZE_T 1
19173_ACEOF
19174
19175
19176fi
19177ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19178if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19179
19180cat >>confdefs.h <<_ACEOF
19181#define HAVE_PTRDIFF_T 1
19182_ACEOF
19183
19184
19185fi
19186
19187  # The cast to long int works around a bug in the HP C Compiler
19188# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19189# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19190# This bug is HP SR number 8606223364.
19191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
19192$as_echo_n "checking size of char *... " >&6; }
19193if ${ac_cv_sizeof_char_p+:} false; then :
19194  $as_echo_n "(cached) " >&6
19195else
19196  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p"        "$ac_includes_default"; then :
19197
19198else
19199  if test "$ac_cv_type_char_p" = yes; then
19200     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19202as_fn_error 77 "cannot compute sizeof (char *)
19203See \`config.log' for more details" "$LINENO" 5; }
19204   else
19205     ac_cv_sizeof_char_p=0
19206   fi
19207fi
19208
19209fi
19210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
19211$as_echo "$ac_cv_sizeof_char_p" >&6; }
19212
19213
19214
19215cat >>confdefs.h <<_ACEOF
19216#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
19217_ACEOF
19218
19219
19220  # The cast to long int works around a bug in the HP C Compiler
19221# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19222# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19223# This bug is HP SR number 8606223364.
19224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
19225$as_echo_n "checking size of int... " >&6; }
19226if ${ac_cv_sizeof_int+:} false; then :
19227  $as_echo_n "(cached) " >&6
19228else
19229  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
19230
19231else
19232  if test "$ac_cv_type_int" = yes; then
19233     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19235as_fn_error 77 "cannot compute sizeof (int)
19236See \`config.log' for more details" "$LINENO" 5; }
19237   else
19238     ac_cv_sizeof_int=0
19239   fi
19240fi
19241
19242fi
19243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
19244$as_echo "$ac_cv_sizeof_int" >&6; }
19245
19246
19247
19248cat >>confdefs.h <<_ACEOF
19249#define SIZEOF_INT $ac_cv_sizeof_int
19250_ACEOF
19251
19252
19253  # The cast to long int works around a bug in the HP C Compiler
19254# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19255# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19256# This bug is HP SR number 8606223364.
19257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
19258$as_echo_n "checking size of long... " >&6; }
19259if ${ac_cv_sizeof_long+:} false; then :
19260  $as_echo_n "(cached) " >&6
19261else
19262  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
19263
19264else
19265  if test "$ac_cv_type_long" = yes; then
19266     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19268as_fn_error 77 "cannot compute sizeof (long)
19269See \`config.log' for more details" "$LINENO" 5; }
19270   else
19271     ac_cv_sizeof_long=0
19272   fi
19273fi
19274
19275fi
19276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
19277$as_echo "$ac_cv_sizeof_long" >&6; }
19278
19279
19280
19281cat >>confdefs.h <<_ACEOF
19282#define SIZEOF_LONG $ac_cv_sizeof_long
19283_ACEOF
19284
19285
19286  # The cast to long int works around a bug in the HP C Compiler
19287# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19288# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19289# This bug is HP SR number 8606223364.
19290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
19291$as_echo_n "checking size of short... " >&6; }
19292if ${ac_cv_sizeof_short+:} false; then :
19293  $as_echo_n "(cached) " >&6
19294else
19295  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
19296
19297else
19298  if test "$ac_cv_type_short" = yes; then
19299     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19301as_fn_error 77 "cannot compute sizeof (short)
19302See \`config.log' for more details" "$LINENO" 5; }
19303   else
19304     ac_cv_sizeof_short=0
19305   fi
19306fi
19307
19308fi
19309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
19310$as_echo "$ac_cv_sizeof_short" >&6; }
19311
19312
19313
19314cat >>confdefs.h <<_ACEOF
19315#define SIZEOF_SHORT $ac_cv_sizeof_short
19316_ACEOF
19317
19318
19319
19320  # ------------
19321  # AC_CHECK_LIB
19322  # ------------
19323  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
19324$as_echo_n "checking for pathfind in -lgen... " >&6; }
19325if ${ac_cv_lib_gen_pathfind+:} false; then :
19326  $as_echo_n "(cached) " >&6
19327else
19328  ac_check_lib_save_LIBS=$LIBS
19329LIBS="-lgen  $LIBS"
19330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331/* end confdefs.h.  */
19332
19333/* Override any GCC internal prototype to avoid an error.
19334   Use char because int might match the return type of a GCC
19335   builtin and then its argument prototype would still apply.  */
19336#ifdef __cplusplus
19337extern "C"
19338#endif
19339char pathfind ();
19340int
19341main ()
19342{
19343return pathfind ();
19344  ;
19345  return 0;
19346}
19347_ACEOF
19348if ac_fn_c_try_link "$LINENO"; then :
19349  ac_cv_lib_gen_pathfind=yes
19350else
19351  ac_cv_lib_gen_pathfind=no
19352fi
19353rm -f core conftest.err conftest.$ac_objext \
19354    conftest$ac_exeext conftest.$ac_ext
19355LIBS=$ac_check_lib_save_LIBS
19356fi
19357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
19358$as_echo "$ac_cv_lib_gen_pathfind" >&6; }
19359if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
19360  cat >>confdefs.h <<_ACEOF
19361#define HAVE_LIBGEN 1
19362_ACEOF
19363
19364  LIBS="-lgen $LIBS"
19365
19366fi
19367
19368  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
19369$as_echo_n "checking for gettext in -lintl... " >&6; }
19370if ${ac_cv_lib_intl_gettext+:} false; then :
19371  $as_echo_n "(cached) " >&6
19372else
19373  ac_check_lib_save_LIBS=$LIBS
19374LIBS="-lintl  $LIBS"
19375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19376/* end confdefs.h.  */
19377
19378/* Override any GCC internal prototype to avoid an error.
19379   Use char because int might match the return type of a GCC
19380   builtin and then its argument prototype would still apply.  */
19381#ifdef __cplusplus
19382extern "C"
19383#endif
19384char gettext ();
19385int
19386main ()
19387{
19388return gettext ();
19389  ;
19390  return 0;
19391}
19392_ACEOF
19393if ac_fn_c_try_link "$LINENO"; then :
19394  ac_cv_lib_intl_gettext=yes
19395else
19396  ac_cv_lib_intl_gettext=no
19397fi
19398rm -f core conftest.err conftest.$ac_objext \
19399    conftest$ac_exeext conftest.$ac_ext
19400LIBS=$ac_check_lib_save_LIBS
19401fi
19402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
19403$as_echo "$ac_cv_lib_intl_gettext" >&6; }
19404if test "x$ac_cv_lib_intl_gettext" = xyes; then :
19405  cat >>confdefs.h <<_ACEOF
19406#define HAVE_LIBINTL 1
19407_ACEOF
19408
19409  LIBS="-lintl $LIBS"
19410
19411fi
19412
19413  for ac_func in vprintf
19414do :
19415  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
19416if test "x$ac_cv_func_vprintf" = xyes; then :
19417  cat >>confdefs.h <<_ACEOF
19418#define HAVE_VPRINTF 1
19419_ACEOF
19420
19421ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
19422if test "x$ac_cv_func__doprnt" = xyes; then :
19423
19424$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
19425
19426fi
19427
19428fi
19429done
19430
19431
19432  for ac_header in vfork.h
19433do :
19434  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19435if test "x$ac_cv_header_vfork_h" = xyes; then :
19436  cat >>confdefs.h <<_ACEOF
19437#define HAVE_VFORK_H 1
19438_ACEOF
19439
19440fi
19441
19442done
19443
19444for ac_func in fork vfork
19445do :
19446  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19447ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19448if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19449  cat >>confdefs.h <<_ACEOF
19450#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19451_ACEOF
19452
19453fi
19454done
19455
19456if test "x$ac_cv_func_fork" = xyes; then
19457  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19458$as_echo_n "checking for working fork... " >&6; }
19459if ${ac_cv_func_fork_works+:} false; then :
19460  $as_echo_n "(cached) " >&6
19461else
19462  if test "$cross_compiling" = yes; then :
19463  ac_cv_func_fork_works=cross
19464else
19465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19466/* end confdefs.h.  */
19467$ac_includes_default
19468int
19469main ()
19470{
19471
19472	  /* By Ruediger Kuhlmann. */
19473	  return fork () < 0;
19474
19475  ;
19476  return 0;
19477}
19478_ACEOF
19479if ac_fn_c_try_run "$LINENO"; then :
19480  ac_cv_func_fork_works=yes
19481else
19482  ac_cv_func_fork_works=no
19483fi
19484rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19485  conftest.$ac_objext conftest.beam conftest.$ac_ext
19486fi
19487
19488fi
19489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19490$as_echo "$ac_cv_func_fork_works" >&6; }
19491
19492else
19493  ac_cv_func_fork_works=$ac_cv_func_fork
19494fi
19495if test "x$ac_cv_func_fork_works" = xcross; then
19496  case $host in
19497    *-*-amigaos* | *-*-msdosdjgpp*)
19498      # Override, as these systems have only a dummy fork() stub
19499      ac_cv_func_fork_works=no
19500      ;;
19501    *)
19502      ac_cv_func_fork_works=yes
19503      ;;
19504  esac
19505  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19506$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19507fi
19508ac_cv_func_vfork_works=$ac_cv_func_vfork
19509if test "x$ac_cv_func_vfork" = xyes; then
19510  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19511$as_echo_n "checking for working vfork... " >&6; }
19512if ${ac_cv_func_vfork_works+:} false; then :
19513  $as_echo_n "(cached) " >&6
19514else
19515  if test "$cross_compiling" = yes; then :
19516  ac_cv_func_vfork_works=cross
19517else
19518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19519/* end confdefs.h.  */
19520/* Thanks to Paul Eggert for this test.  */
19521$ac_includes_default
19522#include <sys/wait.h>
19523#ifdef HAVE_VFORK_H
19524# include <vfork.h>
19525#endif
19526/* On some sparc systems, changes by the child to local and incoming
19527   argument registers are propagated back to the parent.  The compiler
19528   is told about this with #include <vfork.h>, but some compilers
19529   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
19530   static variable whose address is put into a register that is
19531   clobbered by the vfork.  */
19532static void
19533#ifdef __cplusplus
19534sparc_address_test (int arg)
19535# else
19536sparc_address_test (arg) int arg;
19537#endif
19538{
19539  static pid_t child;
19540  if (!child) {
19541    child = vfork ();
19542    if (child < 0) {
19543      perror ("vfork");
19544      _exit(2);
19545    }
19546    if (!child) {
19547      arg = getpid();
19548      write(-1, "", 0);
19549      _exit (arg);
19550    }
19551  }
19552}
19553
19554int
19555main ()
19556{
19557  pid_t parent = getpid ();
19558  pid_t child;
19559
19560  sparc_address_test (0);
19561
19562  child = vfork ();
19563
19564  if (child == 0) {
19565    /* Here is another test for sparc vfork register problems.  This
19566       test uses lots of local variables, at least as many local
19567       variables as main has allocated so far including compiler
19568       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
19569       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
19570       reuse the register of parent for one of the local variables,
19571       since it will think that parent can't possibly be used any more
19572       in this routine.  Assigning to the local variable will thus
19573       munge parent in the parent process.  */
19574    pid_t
19575      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19576      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19577    /* Convince the compiler that p..p7 are live; otherwise, it might
19578       use the same hardware register for all 8 local variables.  */
19579    if (p != p1 || p != p2 || p != p3 || p != p4
19580	|| p != p5 || p != p6 || p != p7)
19581      _exit(1);
19582
19583    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19584       from child file descriptors.  If the child closes a descriptor
19585       before it execs or exits, this munges the parent's descriptor
19586       as well.  Test for this by closing stdout in the child.  */
19587    _exit(close(fileno(stdout)) != 0);
19588  } else {
19589    int status;
19590    struct stat st;
19591
19592    while (wait(&status) != child)
19593      ;
19594    return (
19595	 /* Was there some problem with vforking?  */
19596	 child < 0
19597
19598	 /* Did the child fail?  (This shouldn't happen.)  */
19599	 || status
19600
19601	 /* Did the vfork/compiler bug occur?  */
19602	 || parent != getpid()
19603
19604	 /* Did the file descriptor bug occur?  */
19605	 || fstat(fileno(stdout), &st) != 0
19606	 );
19607  }
19608}
19609_ACEOF
19610if ac_fn_c_try_run "$LINENO"; then :
19611  ac_cv_func_vfork_works=yes
19612else
19613  ac_cv_func_vfork_works=no
19614fi
19615rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19616  conftest.$ac_objext conftest.beam conftest.$ac_ext
19617fi
19618
19619fi
19620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19621$as_echo "$ac_cv_func_vfork_works" >&6; }
19622
19623fi;
19624if test "x$ac_cv_func_fork_works" = xcross; then
19625  ac_cv_func_vfork_works=$ac_cv_func_vfork
19626  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19627$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19628fi
19629
19630if test "x$ac_cv_func_vfork_works" = xyes; then
19631
19632$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19633
19634else
19635
19636$as_echo "#define vfork fork" >>confdefs.h
19637
19638fi
19639if test "x$ac_cv_func_fork_works" = xyes; then
19640
19641$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19642
19643fi
19644
19645  for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
19646                 strrchr strsignal fchmod fstat chmod
19647do :
19648  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19649ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19650if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19651  cat >>confdefs.h <<_ACEOF
19652#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19653_ACEOF
19654
19655fi
19656done
19657
19658  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
19659$as_echo_n "checking for a sed that does not truncate output... " >&6; }
19660if ${ac_cv_path_SED+:} false; then :
19661  $as_echo_n "(cached) " >&6
19662else
19663            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
19664     for ac_i in 1 2 3 4 5 6 7; do
19665       ac_script="$ac_script$as_nl$ac_script"
19666     done
19667     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
19668     { ac_script=; unset ac_script;}
19669     if test -z "$SED"; then
19670  ac_path_SED_found=false
19671  # Loop through the user's path and test for each of PROGNAME-LIST
19672  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19673for as_dir in $PATH
19674do
19675  IFS=$as_save_IFS
19676  test -z "$as_dir" && as_dir=.
19677    for ac_prog in sed gsed; do
19678    for ac_exec_ext in '' $ac_executable_extensions; do
19679      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
19680      as_fn_executable_p "$ac_path_SED" || continue
19681# Check for GNU ac_path_SED and select it if it is found.
19682  # Check for GNU $ac_path_SED
19683case `"$ac_path_SED" --version 2>&1` in
19684*GNU*)
19685  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
19686*)
19687  ac_count=0
19688  $as_echo_n 0123456789 >"conftest.in"
19689  while :
19690  do
19691    cat "conftest.in" "conftest.in" >"conftest.tmp"
19692    mv "conftest.tmp" "conftest.in"
19693    cp "conftest.in" "conftest.nl"
19694    $as_echo '' >> "conftest.nl"
19695    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
19696    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
19697    as_fn_arith $ac_count + 1 && ac_count=$as_val
19698    if test $ac_count -gt ${ac_path_SED_max-0}; then
19699      # Best one so far, save it but keep looking for a better one
19700      ac_cv_path_SED="$ac_path_SED"
19701      ac_path_SED_max=$ac_count
19702    fi
19703    # 10*(2^10) chars as input seems more than enough
19704    test $ac_count -gt 10 && break
19705  done
19706  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
19707esac
19708
19709      $ac_path_SED_found && break 3
19710    done
19711  done
19712  done
19713IFS=$as_save_IFS
19714  if test -z "$ac_cv_path_SED"; then
19715    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
19716  fi
19717else
19718  ac_cv_path_SED=$SED
19719fi
19720
19721fi
19722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
19723$as_echo "$ac_cv_path_SED" >&6; }
19724 SED="$ac_cv_path_SED"
19725  rm -f conftest.sed
19726
19727  while :
19728  do
19729      POSIX_SHELL=`which bash`
19730      test -x "$POSIX_SHELL" && break
19731      POSIX_SHELL=`which dash`
19732      test -x "$POSIX_SHELL" && break
19733      POSIX_SHELL=/usr/xpg4/bin/sh
19734      test -x "$POSIX_SHELL" && break
19735      POSIX_SHELL=`/bin/sh -c '
19736          exec 2>/dev/null
19737          if ! true ; then exit 1 ; fi
19738          echo /bin/sh'`
19739      test -x "$POSIX_SHELL" && break
19740      as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
19741  done
19742
19743cat >>confdefs.h <<_ACEOF
19744#define POSIX_SHELL "${POSIX_SHELL}"
19745_ACEOF
19746
19747
19748
19749
19750
19751  LIBOPTS_BUILD_BLOCKED=true
19752
19753
19754  NEED_LIBOPTS_DIR=''
19755
19756  # Check whether --enable-local-libopts was given.
19757if test "${enable_local_libopts+set}" = set; then :
19758  enableval=$enable_local_libopts;
19759    if test x$enableval = xyes ; then
19760       { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
19761$as_echo "$as_me: Using supplied libopts tearoff" >&6;}
19762       LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
19763       NEED_LIBOPTS_DIR=true
19764       LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
19765    fi
19766fi
19767
19768
19769  # Check whether --enable-libopts-install was given.
19770if test "${enable_libopts_install+set}" = set; then :
19771  enableval=$enable_libopts_install;
19772fi
19773
19774   if test "X${enable_libopts_install}" = Xyes; then
19775  INSTALL_LIBOPTS_TRUE=
19776  INSTALL_LIBOPTS_FALSE='#'
19777else
19778  INSTALL_LIBOPTS_TRUE='#'
19779  INSTALL_LIBOPTS_FALSE=
19780fi
19781
19782
19783  if test -z "${NEED_LIBOPTS_DIR}" ; then
19784     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
19785$as_echo_n "checking whether autoopts-config can be found... " >&6; }
19786
19787# Check whether --with-autoopts-config was given.
19788if test "${with_autoopts_config+set}" = set; then :
19789  withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
19790else
19791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
19792$as_echo_n "checking whether autoopts-config is specified... " >&6; }
19793if ${lo_cv_with_autoopts_config+:} false; then :
19794  $as_echo_n "(cached) " >&6
19795else
19796  if autoopts-config --help 2>/dev/null 1>&2
19797        then lo_cv_with_autoopts_config=autoopts-config
19798        elif libopts-config --help 2>/dev/null 1>&2
19799        then lo_cv_with_autoopts_config=libopts-config
19800        else lo_cv_with_autoopts_config=no ; fi
19801fi
19802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
19803$as_echo "$lo_cv_with_autoopts_config" >&6; }
19804
19805fi
19806 # end of AC_ARG_WITH
19807
19808     if ${lo_cv_test_autoopts+:} false; then :
19809  $as_echo_n "(cached) " >&6
19810else
19811
19812        if test -z "${lo_cv_with_autoopts_config}" \
19813                -o X"${lo_cv_with_autoopts_config}" = Xno
19814        then
19815           if autoopts-config --help 2>/dev/null 1>&2
19816           then lo_cv_with_autoopts_config=autoopts-config
19817           elif libopts-config --help 2>/dev/null 1>&2
19818           then lo_cv_with_autoopts_config=libopts-config
19819           else lo_cv_with_autoopts_config=false ; fi
19820        fi
19821        lo_cv_test_autoopts=`
19822            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
19823        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
19824        then lo_cv_test_autoopts=no ; fi
19825
19826fi
19827 # end of CACHE_VAL
19828     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
19829$as_echo "${lo_cv_test_autoopts}" >&6; }
19830
19831     if test "X${lo_cv_test_autoopts}" != Xno
19832     then
19833        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
19834        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
19835     else
19836        LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
19837        LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
19838        NEED_LIBOPTS_DIR=true
19839     fi
19840  fi # end of if test -z "${NEED_LIBOPTS_DIR}"
19841  if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
19842    NEED_LIBOPTS_DIR=''
19843  fi
19844   if test -n "${NEED_LIBOPTS_DIR}"; then
19845  NEED_LIBOPTS_TRUE=
19846  NEED_LIBOPTS_FALSE='#'
19847else
19848  NEED_LIBOPTS_TRUE='#'
19849  NEED_LIBOPTS_FALSE=
19850fi
19851
19852
19853
19854  LIBOPTS_DIR=sntp/libopts
19855
19856
19857# end of AC_DEFUN of LIBOPTS_CHECK_COMMON
19858
19859  # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD
19860
19861
19862
19863
19864ntp_pkgconfig_min_version='0.15.0'
19865if test -n "$ac_tool_prefix"; then
19866  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19867set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19869$as_echo_n "checking for $ac_word... " >&6; }
19870if ${ac_cv_path_PKG_CONFIG+:} false; then :
19871  $as_echo_n "(cached) " >&6
19872else
19873  case $PKG_CONFIG in
19874  [\\/]* | ?:[\\/]*)
19875  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19876  ;;
19877  *)
19878  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19879for as_dir in $PATH
19880do
19881  IFS=$as_save_IFS
19882  test -z "$as_dir" && as_dir=.
19883    for ac_exec_ext in '' $ac_executable_extensions; do
19884  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19885    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19886    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19887    break 2
19888  fi
19889done
19890  done
19891IFS=$as_save_IFS
19892
19893  ;;
19894esac
19895fi
19896PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19897if test -n "$PKG_CONFIG"; then
19898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19899$as_echo "$PKG_CONFIG" >&6; }
19900else
19901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19902$as_echo "no" >&6; }
19903fi
19904
19905
19906fi
19907if test -z "$ac_cv_path_PKG_CONFIG"; then
19908  ac_pt_PKG_CONFIG=$PKG_CONFIG
19909  # Extract the first word of "pkg-config", so it can be a program name with args.
19910set dummy pkg-config; ac_word=$2
19911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19912$as_echo_n "checking for $ac_word... " >&6; }
19913if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19914  $as_echo_n "(cached) " >&6
19915else
19916  case $ac_pt_PKG_CONFIG in
19917  [\\/]* | ?:[\\/]*)
19918  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19919  ;;
19920  *)
19921  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19922for as_dir in $PATH
19923do
19924  IFS=$as_save_IFS
19925  test -z "$as_dir" && as_dir=.
19926    for ac_exec_ext in '' $ac_executable_extensions; do
19927  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19928    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19930    break 2
19931  fi
19932done
19933  done
19934IFS=$as_save_IFS
19935
19936  ;;
19937esac
19938fi
19939ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19940if test -n "$ac_pt_PKG_CONFIG"; then
19941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19942$as_echo "$ac_pt_PKG_CONFIG" >&6; }
19943else
19944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19945$as_echo "no" >&6; }
19946fi
19947
19948  if test "x$ac_pt_PKG_CONFIG" = x; then
19949    PKG_CONFIG=""
19950  else
19951    case $cross_compiling:$ac_tool_warned in
19952yes:)
19953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19955ac_tool_warned=yes ;;
19956esac
19957    PKG_CONFIG=$ac_pt_PKG_CONFIG
19958  fi
19959else
19960  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19961fi
19962
19963{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
19964{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
19965
19966case "$PKG_CONFIG" in
19967 /*)
19968    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
19969$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
19970    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
19971	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19972$as_echo "yes" >&6; }
19973    else
19974	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19975$as_echo "no" >&6; }
19976	PKG_CONFIG=""
19977    fi
19978    ;;
19979esac
19980
19981
19982
19983
19984# Check whether --enable-local-libevent was given.
19985if test "${enable_local_libevent+set}" = set; then :
19986  enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
19987else
19988  ntp_use_local_libevent=${ntp_use_local_libevent-detect}
19989
19990fi
19991
19992
19993
19994
19995
19996ntp_libevent_min_version=2
19997ntp_libevent_tearoff=sntp/libevent
19998
19999
20000
20001
20002
20003case "$ntp_use_local_libevent" in
20004 yes)
20005    ;;
20006 *) # If we have (a good enough) pkg-config, see if it can find libevent
20007    case "$PKG_CONFIG" in
20008     /*)
20009	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
20010$as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
20011	if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
20012	then
20013	    ntp_use_local_libevent=no
20014	    { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5
20015$as_echo "$as_me: Using the installed libevent" >&6;}
20016	    CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
20017	    CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
20018	    # HMS: I hope the following is accurate.
20019	    # We don't need -levent, we only need  -levent_core.
20020	    # While we could grab only the -L stuff, there *might* be
20021	    # other flags there we want.  Originally we just removed -levent
20022	    # but then somebody decided to install -levent-2.0
20023	    # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
20024	    # So now we dance...
20025	    LDADD_LIBEVENT=
20026	    for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
20027	    do
20028		case "$i" in
20029		 -D*) ;;
20030		 -levent*) ;;
20031		 *) case "$LDADD_LIBEVENT" in
20032		     '') LDADD_LIBEVENT="$i" ;;
20033		     *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
20034		    esac
20035		    ;;
20036		esac
20037	    done
20038	    case "$LIBISC_PTHREADS_NOTHREADS" in
20039	     pthreads)
20040		LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
20041	    esac
20042	    LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
20043	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20044$as_echo "yes" >&6; }
20045	else
20046	    ntp_use_local_libevent=yes
20047	    # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
20048	    # is "pthreads"?
20049	    CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
20050	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20051$as_echo "no" >&6; }
20052	fi
20053	;;
20054     *)
20055	ntp_use_local_libevent=yes
20056	;;
20057    esac
20058    ;;
20059esac
20060
20061case "$ntp_use_local_libevent" in
20062 yes)
20063    { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
20064$as_echo "$as_me: Using libevent tearoff" >&6;}
20065    CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
20066    case "$LIBISC_PTHREADS_NOTHREADS" in
20067     pthreads)
20068	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
20069	;;
20070     *)
20071	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
20072    esac
20073esac
20074
20075
20076 if test "x$ntp_use_local_libevent" = "xyes"; then
20077  BUILD_LIBEVENT_TRUE=
20078  BUILD_LIBEVENT_FALSE='#'
20079else
20080  BUILD_LIBEVENT_TRUE='#'
20081  BUILD_LIBEVENT_FALSE=
20082fi
20083
20084
20085
20086
20087
20088
20089# Expose a cross-compilation indicator to makefiles
20090 if test $build != $host; then
20091  NTP_CROSSCOMPILE_TRUE=
20092  NTP_CROSSCOMPILE_FALSE='#'
20093else
20094  NTP_CROSSCOMPILE_TRUE='#'
20095  NTP_CROSSCOMPILE_FALSE=
20096fi
20097
20098
20099
20100ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20101if test "x$ac_cv_type_size_t" = xyes; then :
20102
20103else
20104
20105cat >>confdefs.h <<_ACEOF
20106#define size_t unsigned int
20107_ACEOF
20108
20109fi
20110
20111
20112            # Check whether --enable-c99-snprintf was given.
20113if test "${enable_c99_snprintf+set}" = set; then :
20114  enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
20115else
20116  force_c99_snprintf=no
20117
20118fi
20119
20120    case "$force_c99_snprintf" in
20121     yes)
20122	hw_force_rpl_snprintf=yes
20123	hw_force_rpl_vsnprintf=yes
20124    esac
20125
20126
20127
20128
20129
20130
20131  for ac_header in $ac_header_list
20132do :
20133  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20134ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20135"
20136if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20137  cat >>confdefs.h <<_ACEOF
20138#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20139_ACEOF
20140
20141fi
20142
20143done
20144
20145
20146
20147
20148
20149
20150
20151  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
20152$as_echo_n "checking for unsigned long long int... " >&6; }
20153if ${ac_cv_type_unsigned_long_long_int+:} false; then :
20154  $as_echo_n "(cached) " >&6
20155else
20156  ac_cv_type_unsigned_long_long_int=yes
20157     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20158       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20159/* end confdefs.h.  */
20160
20161  /* For now, do not test the preprocessor; as of 2007 there are too many
20162	 implementations with broken preprocessors.  Perhaps this can
20163	 be revisited in 2012.  In the meantime, code should not expect
20164	 #if to work with literals wider than 32 bits.  */
20165      /* Test literals.  */
20166      long long int ll = 9223372036854775807ll;
20167      long long int nll = -9223372036854775807LL;
20168      unsigned long long int ull = 18446744073709551615ULL;
20169      /* Test constant expressions.   */
20170      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20171		     ? 1 : -1)];
20172      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20173		     ? 1 : -1)];
20174      int i = 63;
20175int
20176main ()
20177{
20178/* Test availability of runtime routines for shift and division.  */
20179      long long int llmax = 9223372036854775807ll;
20180      unsigned long long int ullmax = 18446744073709551615ull;
20181      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20182	      | (llmax / ll) | (llmax % ll)
20183	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20184	      | (ullmax / ull) | (ullmax % ull));
20185  ;
20186  return 0;
20187}
20188
20189_ACEOF
20190if ac_fn_c_try_link "$LINENO"; then :
20191
20192else
20193  ac_cv_type_unsigned_long_long_int=no
20194fi
20195rm -f core conftest.err conftest.$ac_objext \
20196    conftest$ac_exeext conftest.$ac_ext
20197     fi
20198fi
20199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
20200$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
20201  if test $ac_cv_type_unsigned_long_long_int = yes; then
20202
20203$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
20204
20205  fi
20206
20207
20208      ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
20209if test "x$ac_cv_func_vsnprintf" = xyes; then :
20210  hw_cv_func_vsnprintf=yes
20211else
20212  hw_cv_func_vsnprintf=no
20213fi
20214
20215  if test "$hw_cv_func_vsnprintf" = yes; then :
20216  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
20217$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
20218if ${hw_cv_func_vsnprintf_c99+:} false; then :
20219  $as_echo_n "(cached) " >&6
20220else
20221  if test "$cross_compiling" = yes; then :
20222  hw_cv_func_vsnprintf_c99=no
20223else
20224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20225/* end confdefs.h.  */
20226#if HAVE_STDARG_H
20227          #include <stdarg.h>
20228          #endif
20229          #include <stdio.h>
20230          static int testprintf(char *buf, size_t size, const char *format, ...)
20231          {
20232            int result;
20233            va_list ap;
20234            va_start(ap, format);
20235            result = vsnprintf(buf, size, format, ap);
20236            va_end(ap);
20237            return result;
20238          }
20239int
20240main ()
20241{
20242char buf[43];
20243          if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
20244              testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
20245              buf[0] != 'T' || buf[3] != '\0')
20246            return 1;
20247  ;
20248  return 0;
20249}
20250_ACEOF
20251if ac_fn_c_try_run "$LINENO"; then :
20252  hw_cv_func_vsnprintf_c99=yes
20253else
20254  hw_cv_func_vsnprintf_c99=no
20255fi
20256rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20257  conftest.$ac_objext conftest.beam conftest.$ac_ext
20258fi
20259
20260fi
20261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
20262$as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
20263else
20264  hw_cv_func_vsnprintf_c99=no
20265fi
20266
20267$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
20268
20269  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
20270$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
20271  if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
20272  hw_use_rpl_vsnprintf=yes
20273else
20274  hw_use_rpl_vsnprintf=no
20275fi
20276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
20277$as_echo "$hw_use_rpl_vsnprintf" >&6; }
20278  if test "$hw_use_rpl_vsnprintf" = yes; then :
20279
20280$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
20281
20282    if test ${hw_nodef_vsnprintf=no} = no; then :
20283
20284$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
20285
20286fi
20287    for ac_header in inttypes.h locale.h stddef.h stdint.h
20288do :
20289  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20290ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20291if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20292  cat >>confdefs.h <<_ACEOF
20293#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20294_ACEOF
20295
20296fi
20297
20298done
20299
20300    ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
20301"
20302if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
20303
20304cat >>confdefs.h <<_ACEOF
20305#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
20306_ACEOF
20307
20308
20309fi
20310ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
20311"
20312if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
20313
20314cat >>confdefs.h <<_ACEOF
20315#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
20316_ACEOF
20317
20318
20319fi
20320
20321
20322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
20323$as_echo_n "checking for long double... " >&6; }
20324if ${ac_cv_type_long_double+:} false; then :
20325  $as_echo_n "(cached) " >&6
20326else
20327  if test "$GCC" = yes; then
20328       ac_cv_type_long_double=yes
20329     else
20330       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20331/* end confdefs.h.  */
20332/* The Stardent Vistra knows sizeof (long double), but does
20333		 not support it.  */
20334	      long double foo = 0.0L;
20335int
20336main ()
20337{
20338static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
20339	      sizeof (double) <= sizeof (long double))];
20340test_array [0] = 0;
20341return test_array [0];
20342
20343  ;
20344  return 0;
20345}
20346_ACEOF
20347if ac_fn_c_try_compile "$LINENO"; then :
20348  ac_cv_type_long_double=yes
20349else
20350  ac_cv_type_long_double=no
20351fi
20352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20353     fi
20354fi
20355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
20356$as_echo "$ac_cv_type_long_double" >&6; }
20357  if test $ac_cv_type_long_double = yes; then
20358
20359$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
20360
20361  fi
20362
20363
20364
20365  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
20366$as_echo_n "checking for long long int... " >&6; }
20367if ${ac_cv_type_long_long_int+:} false; then :
20368  $as_echo_n "(cached) " >&6
20369else
20370  ac_cv_type_long_long_int=yes
20371      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20372	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
20373	if test $ac_cv_type_long_long_int = yes; then
20374	  	  	  	  if test "$cross_compiling" = yes; then :
20375  :
20376else
20377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20378/* end confdefs.h.  */
20379#include <limits.h>
20380		 #ifndef LLONG_MAX
20381		 # define HALF \
20382			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
20383		 # define LLONG_MAX (HALF - 1 + HALF)
20384		 #endif
20385int
20386main ()
20387{
20388long long int n = 1;
20389		 int i;
20390		 for (i = 0; ; i++)
20391		   {
20392		     long long int m = n << i;
20393		     if (m >> i != n)
20394		       return 1;
20395		     if (LLONG_MAX / 2 < m)
20396		       break;
20397		   }
20398		 return 0;
20399  ;
20400  return 0;
20401}
20402_ACEOF
20403if ac_fn_c_try_run "$LINENO"; then :
20404
20405else
20406  ac_cv_type_long_long_int=no
20407fi
20408rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20409  conftest.$ac_objext conftest.beam conftest.$ac_ext
20410fi
20411
20412	fi
20413      fi
20414fi
20415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
20416$as_echo "$ac_cv_type_long_long_int" >&6; }
20417  if test $ac_cv_type_long_long_int = yes; then
20418
20419$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
20420
20421  fi
20422
20423
20424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
20425$as_echo_n "checking for unsigned long long int... " >&6; }
20426if ${ac_cv_type_unsigned_long_long_int+:} false; then :
20427  $as_echo_n "(cached) " >&6
20428else
20429  ac_cv_type_unsigned_long_long_int=yes
20430     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20431       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20432/* end confdefs.h.  */
20433
20434  /* For now, do not test the preprocessor; as of 2007 there are too many
20435	 implementations with broken preprocessors.  Perhaps this can
20436	 be revisited in 2012.  In the meantime, code should not expect
20437	 #if to work with literals wider than 32 bits.  */
20438      /* Test literals.  */
20439      long long int ll = 9223372036854775807ll;
20440      long long int nll = -9223372036854775807LL;
20441      unsigned long long int ull = 18446744073709551615ULL;
20442      /* Test constant expressions.   */
20443      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20444		     ? 1 : -1)];
20445      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20446		     ? 1 : -1)];
20447      int i = 63;
20448int
20449main ()
20450{
20451/* Test availability of runtime routines for shift and division.  */
20452      long long int llmax = 9223372036854775807ll;
20453      unsigned long long int ullmax = 18446744073709551615ull;
20454      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20455	      | (llmax / ll) | (llmax % ll)
20456	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20457	      | (ullmax / ull) | (ullmax % ull));
20458  ;
20459  return 0;
20460}
20461
20462_ACEOF
20463if ac_fn_c_try_link "$LINENO"; then :
20464
20465else
20466  ac_cv_type_unsigned_long_long_int=no
20467fi
20468rm -f core conftest.err conftest.$ac_objext \
20469    conftest$ac_exeext conftest.$ac_ext
20470     fi
20471fi
20472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
20473$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
20474  if test $ac_cv_type_unsigned_long_long_int = yes; then
20475
20476$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
20477
20478  fi
20479
20480    ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20481if test "x$ac_cv_type_size_t" = xyes; then :
20482
20483else
20484
20485cat >>confdefs.h <<_ACEOF
20486#define size_t unsigned int
20487_ACEOF
20488
20489fi
20490
20491
20492
20493  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
20494if test "x$ac_cv_type_intmax_t" = xyes; then :
20495
20496$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
20497
20498else
20499  test $ac_cv_type_long_long_int = yes \
20500       && ac_type='long long int' \
20501       || ac_type='long int'
20502
20503cat >>confdefs.h <<_ACEOF
20504#define intmax_t $ac_type
20505_ACEOF
20506
20507fi
20508
20509
20510
20511
20512  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
20513if test "x$ac_cv_type_uintmax_t" = xyes; then :
20514
20515$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20516
20517else
20518  test $ac_cv_type_unsigned_long_long_int = yes \
20519       && ac_type='unsigned long long int' \
20520       || ac_type='unsigned long int'
20521
20522cat >>confdefs.h <<_ACEOF
20523#define uintmax_t $ac_type
20524_ACEOF
20525
20526fi
20527
20528
20529
20530  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
20531if test "x$ac_cv_type_uintptr_t" = xyes; then :
20532
20533$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
20534
20535else
20536  for ac_type in 'unsigned int' 'unsigned long int' \
20537	'unsigned long long int'; do
20538       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20539/* end confdefs.h.  */
20540$ac_includes_default
20541int
20542main ()
20543{
20544static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
20545test_array [0] = 0;
20546return test_array [0];
20547
20548  ;
20549  return 0;
20550}
20551_ACEOF
20552if ac_fn_c_try_compile "$LINENO"; then :
20553
20554cat >>confdefs.h <<_ACEOF
20555#define uintptr_t $ac_type
20556_ACEOF
20557
20558	  ac_type=
20559fi
20560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20561       test -z "$ac_type" && break
20562     done
20563fi
20564
20565
20566    ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20567if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20568
20569cat >>confdefs.h <<_ACEOF
20570#define HAVE_PTRDIFF_T 1
20571_ACEOF
20572
20573
20574fi
20575
20576    for ac_func in localeconv
20577do :
20578  ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
20579if test "x$ac_cv_func_localeconv" = xyes; then :
20580  cat >>confdefs.h <<_ACEOF
20581#define HAVE_LOCALECONV 1
20582_ACEOF
20583
20584fi
20585done
20586
20587
20588  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
20589  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20590$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20591if ${ac_cv_c_const+:} false; then :
20592  $as_echo_n "(cached) " >&6
20593else
20594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20595/* end confdefs.h.  */
20596
20597int
20598main ()
20599{
20600
20601#ifndef __cplusplus
20602  /* Ultrix mips cc rejects this sort of thing.  */
20603  typedef int charset[2];
20604  const charset cs = { 0, 0 };
20605  /* SunOS 4.1.1 cc rejects this.  */
20606  char const *const *pcpcc;
20607  char **ppc;
20608  /* NEC SVR4.0.2 mips cc rejects this.  */
20609  struct point {int x, y;};
20610  static struct point const zero = {0,0};
20611  /* AIX XL C 1.02.0.0 rejects this.
20612     It does not let you subtract one const X* pointer from another in
20613     an arm of an if-expression whose if-part is not a constant
20614     expression */
20615  const char *g = "string";
20616  pcpcc = &g + (g ? g-g : 0);
20617  /* HPUX 7.0 cc rejects these. */
20618  ++pcpcc;
20619  ppc = (char**) pcpcc;
20620  pcpcc = (char const *const *) ppc;
20621  { /* SCO 3.2v4 cc rejects this sort of thing.  */
20622    char tx;
20623    char *t = &tx;
20624    char const *s = 0 ? (char *) 0 : (char const *) 0;
20625
20626    *t++ = 0;
20627    if (s) return 0;
20628  }
20629  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20630    int x[] = {25, 17};
20631    const int *foo = &x[0];
20632    ++foo;
20633  }
20634  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20635    typedef const int *iptr;
20636    iptr p = 0;
20637    ++p;
20638  }
20639  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20640       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20641    struct s { int j; const int *ap[3]; } bx;
20642    struct s *b = &bx; b->j = 5;
20643  }
20644  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20645    const int foo = 10;
20646    if (!foo) return 0;
20647  }
20648  return !cs[0] && !zero.x;
20649#endif
20650
20651  ;
20652  return 0;
20653}
20654_ACEOF
20655if ac_fn_c_try_compile "$LINENO"; then :
20656  ac_cv_c_const=yes
20657else
20658  ac_cv_c_const=no
20659fi
20660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20661fi
20662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20663$as_echo "$ac_cv_c_const" >&6; }
20664if test $ac_cv_c_const = no; then
20665
20666$as_echo "#define const /**/" >>confdefs.h
20667
20668fi
20669
20670
20671
20672
20673    case " $LIBOBJS " in
20674  *" snprintf.$ac_objext "* ) ;;
20675  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20676 ;;
20677esac
20678
20679    _hw_cv_func_xprintf_replace_done=yes
20680fi
20681
20682fi
20683
20684
20685    ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20686if test "x$ac_cv_func_snprintf" = xyes; then :
20687  hw_cv_func_snprintf=yes
20688else
20689  hw_cv_func_snprintf=no
20690fi
20691
20692  if test "$hw_cv_func_snprintf" = yes; then :
20693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
20694$as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
20695if ${hw_cv_func_snprintf_c99+:} false; then :
20696  $as_echo_n "(cached) " >&6
20697else
20698  if test "$cross_compiling" = yes; then :
20699  hw_cv_func_snprintf_c99=no
20700else
20701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20702/* end confdefs.h.  */
20703#include <stdio.h>
20704int
20705main ()
20706{
20707char buf[43];
20708          if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
20709              snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
20710              buf[0] != 'T' || buf[3] != '\0')
20711            return 1;
20712  ;
20713  return 0;
20714}
20715_ACEOF
20716if ac_fn_c_try_run "$LINENO"; then :
20717  hw_cv_func_snprintf_c99=yes
20718else
20719  hw_cv_func_snprintf_c99=no
20720fi
20721rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20722  conftest.$ac_objext conftest.beam conftest.$ac_ext
20723fi
20724
20725fi
20726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
20727$as_echo "$hw_cv_func_snprintf_c99" >&6; }
20728else
20729  hw_cv_func_snprintf_c99=no
20730fi
20731
20732$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20733
20734  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
20735$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
20736  if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
20737  hw_use_rpl_snprintf=yes
20738else
20739  hw_use_rpl_snprintf=no
20740fi
20741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
20742$as_echo "$hw_use_rpl_snprintf" >&6; }
20743  if test "$hw_use_rpl_snprintf" = yes; then :
20744
20745$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
20746
20747    if test ${hw_nodef_snprintf=no} = no; then :
20748
20749$as_echo "#define snprintf rpl_snprintf" >>confdefs.h
20750
20751fi
20752
20753  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
20754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20755$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20756if ${ac_cv_c_const+:} false; then :
20757  $as_echo_n "(cached) " >&6
20758else
20759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20760/* end confdefs.h.  */
20761
20762int
20763main ()
20764{
20765
20766#ifndef __cplusplus
20767  /* Ultrix mips cc rejects this sort of thing.  */
20768  typedef int charset[2];
20769  const charset cs = { 0, 0 };
20770  /* SunOS 4.1.1 cc rejects this.  */
20771  char const *const *pcpcc;
20772  char **ppc;
20773  /* NEC SVR4.0.2 mips cc rejects this.  */
20774  struct point {int x, y;};
20775  static struct point const zero = {0,0};
20776  /* AIX XL C 1.02.0.0 rejects this.
20777     It does not let you subtract one const X* pointer from another in
20778     an arm of an if-expression whose if-part is not a constant
20779     expression */
20780  const char *g = "string";
20781  pcpcc = &g + (g ? g-g : 0);
20782  /* HPUX 7.0 cc rejects these. */
20783  ++pcpcc;
20784  ppc = (char**) pcpcc;
20785  pcpcc = (char const *const *) ppc;
20786  { /* SCO 3.2v4 cc rejects this sort of thing.  */
20787    char tx;
20788    char *t = &tx;
20789    char const *s = 0 ? (char *) 0 : (char const *) 0;
20790
20791    *t++ = 0;
20792    if (s) return 0;
20793  }
20794  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20795    int x[] = {25, 17};
20796    const int *foo = &x[0];
20797    ++foo;
20798  }
20799  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20800    typedef const int *iptr;
20801    iptr p = 0;
20802    ++p;
20803  }
20804  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20805       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20806    struct s { int j; const int *ap[3]; } bx;
20807    struct s *b = &bx; b->j = 5;
20808  }
20809  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20810    const int foo = 10;
20811    if (!foo) return 0;
20812  }
20813  return !cs[0] && !zero.x;
20814#endif
20815
20816  ;
20817  return 0;
20818}
20819_ACEOF
20820if ac_fn_c_try_compile "$LINENO"; then :
20821  ac_cv_c_const=yes
20822else
20823  ac_cv_c_const=no
20824fi
20825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20826fi
20827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20828$as_echo "$ac_cv_c_const" >&6; }
20829if test $ac_cv_c_const = no; then
20830
20831$as_echo "#define const /**/" >>confdefs.h
20832
20833fi
20834
20835
20836
20837
20838    case " $LIBOBJS " in
20839  *" snprintf.$ac_objext "* ) ;;
20840  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20841 ;;
20842esac
20843
20844    _hw_cv_func_xprintf_replace_done=yes
20845fi
20846
20847fi
20848
20849
20850
20851
20852
20853# HMS: Save $LIBS and empty it.
20854# any LIBS we add here should go in to LDADD_LIBNTP
20855
20856__LIBS=$LIBS
20857LIBS=
20858
20859
20860
20861# [Bug 2332] because we need to know if we are using GNU ld...
20862
20863
20864# Check whether --with-gnu-ld was given.
20865if test "${with_gnu_ld+set}" = set; then :
20866  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20867else
20868  with_gnu_ld=no
20869fi
20870
20871ac_prog=ld
20872if test "$GCC" = yes; then
20873  # Check if gcc -print-prog-name=ld gives a path.
20874  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20875$as_echo_n "checking for ld used by $CC... " >&6; }
20876  case $host in
20877  *-*-mingw*)
20878    # gcc leaves a trailing carriage return which upsets mingw
20879    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20880  *)
20881    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20882  esac
20883  case $ac_prog in
20884    # Accept absolute paths.
20885    [\\/]* | ?:[\\/]*)
20886      re_direlt='/[^/][^/]*/\.\./'
20887      # Canonicalize the pathname of ld
20888      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20889      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20890	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20891      done
20892      test -z "$LD" && LD="$ac_prog"
20893      ;;
20894  "")
20895    # If it fails, then pretend we aren't using GCC.
20896    ac_prog=ld
20897    ;;
20898  *)
20899    # If it is relative, then search for the first ld in PATH.
20900    with_gnu_ld=unknown
20901    ;;
20902  esac
20903elif test "$with_gnu_ld" = yes; then
20904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20905$as_echo_n "checking for GNU ld... " >&6; }
20906else
20907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20908$as_echo_n "checking for non-GNU ld... " >&6; }
20909fi
20910if ${lt_cv_path_LD+:} false; then :
20911  $as_echo_n "(cached) " >&6
20912else
20913  if test -z "$LD"; then
20914  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20915  for ac_dir in $PATH; do
20916    IFS="$lt_save_ifs"
20917    test -z "$ac_dir" && ac_dir=.
20918    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20919      lt_cv_path_LD="$ac_dir/$ac_prog"
20920      # Check to see if the program is GNU ld.  I'd rather use --version,
20921      # but apparently some variants of GNU ld only accept -v.
20922      # Break only if it was the GNU/non-GNU ld that we prefer.
20923      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20924      *GNU* | *'with BFD'*)
20925	test "$with_gnu_ld" != no && break
20926	;;
20927      *)
20928	test "$with_gnu_ld" != yes && break
20929	;;
20930      esac
20931    fi
20932  done
20933  IFS="$lt_save_ifs"
20934else
20935  lt_cv_path_LD="$LD" # Let the user override the test with a path.
20936fi
20937fi
20938
20939LD="$lt_cv_path_LD"
20940if test -n "$LD"; then
20941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20942$as_echo "$LD" >&6; }
20943else
20944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20945$as_echo "no" >&6; }
20946fi
20947test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20949$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20950if ${lt_cv_prog_gnu_ld+:} false; then :
20951  $as_echo_n "(cached) " >&6
20952else
20953  # I'd rather use --version here, but apparently some GNU lds only accept -v.
20954case `$LD -v 2>&1 </dev/null` in
20955*GNU* | *'with BFD'*)
20956  lt_cv_prog_gnu_ld=yes
20957  ;;
20958*)
20959  lt_cv_prog_gnu_ld=no
20960  ;;
20961esac
20962fi
20963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20964$as_echo "$lt_cv_prog_gnu_ld" >&6; }
20965with_gnu_ld=$lt_cv_prog_gnu_ld
20966
20967
20968
20969
20970
20971
20972
20973
20974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
20975$as_echo_n "checking for directory path separator... " >&6; }
20976if ${ntp_cv_dir_sep+:} false; then :
20977  $as_echo_n "(cached) " >&6
20978else
20979
20980	case "$ntp_cv_dir_sep" in
20981	 '')
20982	    case "$host_os" in
20983	     *djgpp | *mingw32* | *emx*)
20984		ntp_cv_dir_sep="'\\'"
20985		;;
20986	     *)
20987		ntp_cv_dir_sep="'/'"
20988		;;
20989	    esac
20990	esac
20991
20992
20993fi
20994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
20995$as_echo "$ntp_cv_dir_sep" >&6; }
20996
20997cat >>confdefs.h <<_ACEOF
20998#define DIR_SEP $ntp_cv_dir_sep
20999_ACEOF
21000
21001
21002
21003    NTP_ORIG_LIBS="$LIBS"
21004
21005# Check whether --with-lineeditlibs was given.
21006if test "${with_lineeditlibs+set}" = set; then :
21007  withval=$with_lineeditlibs; use_lineeditlibs="$withval"
21008else
21009  use_lineeditlibs="edit,editline"
21010
21011fi
21012
21013    { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
21014$as_echo_n "checking line editing libraries... " >&6; }
21015    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
21016$as_echo "$use_lineeditlibs" >&6; }
21017    case "$use_lineeditlibs" in
21018     no)
21019	ntp_lib_lineedit=no
21020	;;
21021     *)
21022	for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
21023	    for term_lib in "" termcap curses ncurses; do
21024		case "$term_lib" in
21025		 '')
21026		    TRY_LIB="-l$lineedit_lib"
21027		    ;;
21028		 *)
21029		    TRY_LIB="-l$lineedit_lib -l$term_lib"
21030		    ;;
21031		esac
21032		LIBS="$NTP_ORIG_LIBS $TRY_LIB"
21033		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
21034$as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
21035		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21036/* end confdefs.h.  */
21037
21038/* Override any GCC internal prototype to avoid an error.
21039   Use char because int might match the return type of a GCC
21040   builtin and then its argument prototype would still apply.  */
21041#ifdef __cplusplus
21042extern "C"
21043#endif
21044char readline ();
21045int
21046main ()
21047{
21048return readline ();
21049  ;
21050  return 0;
21051}
21052_ACEOF
21053if ac_fn_c_try_link "$LINENO"; then :
21054  ntp_lib_lineedit="$TRY_LIB"
21055fi
21056rm -f core conftest.err conftest.$ac_objext \
21057    conftest$ac_exeext conftest.$ac_ext
21058		case "$ntp_lib_lineedit" in
21059		 '')
21060		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21061$as_echo "no" >&6; }
21062		    ;;
21063		 *)
21064		    # Use readline()
21065		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21066$as_echo "yes" >&6; }
21067		    break
21068		esac
21069		case "$term_lib" in
21070		 '')
21071		    # do not try el_gets without a terminal library
21072		    ;;
21073		 *)
21074		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
21075$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
21076		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21077/* end confdefs.h.  */
21078
21079/* Override any GCC internal prototype to avoid an error.
21080   Use char because int might match the return type of a GCC
21081   builtin and then its argument prototype would still apply.  */
21082#ifdef __cplusplus
21083extern "C"
21084#endif
21085char el_gets ();
21086int
21087main ()
21088{
21089return el_gets ();
21090  ;
21091  return 0;
21092}
21093_ACEOF
21094if ac_fn_c_try_link "$LINENO"; then :
21095  ntp_lib_lineedit="$TRY_LIB"
21096fi
21097rm -f core conftest.err conftest.$ac_objext \
21098    conftest$ac_exeext conftest.$ac_ext
21099		    case "$ntp_lib_lineedit" in
21100		     '')
21101			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21102$as_echo "no" >&6; }
21103			;;
21104		     *) # Use el_gets()
21105			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21106$as_echo "yes" >&6; }
21107			break
21108			;;
21109		    esac	# $ntp_lib_lineedit
21110		esac		# $term_lib
21111	    done
21112	    case "$ntp_lib_lineedit" in
21113	     '')
21114		;;
21115	     *)
21116		break
21117		;;
21118	    esac
21119	done
21120	LIBS="$NTP_ORIG_LIBS"
21121	;;
21122    esac	# $use_lineeditlibs
21123
21124    case "$ntp_lib_lineedit" in
21125     '')
21126	ntp_lib_lineedit="no"
21127	;;
21128     no)
21129	;;
21130     *)
21131	EDITLINE_LIBS="$ntp_lib_lineedit"
21132
21133	;;
21134    esac	# $ntp_lib_lineedit
21135
21136    case "$ntp_lib_lineedit" in
21137     no)
21138	;;
21139     *)
21140	for ac_header in readline.h readline/readline.h histedit.h
21141do :
21142  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21143ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21144if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21145  cat >>confdefs.h <<_ACEOF
21146#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21147_ACEOF
21148
21149fi
21150
21151done
21152
21153	for ac_header in history.h readline/history.h
21154do :
21155  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21156ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21157if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21158  cat >>confdefs.h <<_ACEOF
21159#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21160_ACEOF
21161
21162fi
21163
21164done
21165
21166
21167	case "$ac_cv_header_histedit_h" in
21168	 yes)
21169	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
21170$as_echo_n "checking number of arguments to el_init()... " >&6; }
21171if ${ntp_cv_el_init_args+:} false; then :
21172  $as_echo_n "(cached) " >&6
21173else
21174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21175/* end confdefs.h.  */
21176
21177			    #include <stdio.h>
21178			    #include <histedit.h>
21179
21180int
21181main ()
21182{
21183
21184			    el_init("conftest", stdin, stdout, stderr);
21185
21186
21187  ;
21188  return 0;
21189}
21190_ACEOF
21191if ac_fn_c_try_compile "$LINENO"; then :
21192  ntp_cv_el_init_args=4
21193else
21194  ntp_cv_el_init_args=3
21195
21196fi
21197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21198
21199fi
21200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
21201$as_echo "$ntp_cv_el_init_args" >&6; }
21202
21203cat >>confdefs.h <<_ACEOF
21204#define EL_INIT_ARGS $ntp_cv_el_init_args
21205_ACEOF
21206
21207	esac
21208
21209	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
21210$as_echo_n "checking whether readline supports history... " >&6; }
21211
21212	ntp_lib_lineedit_history="no"
21213	ORIG_LIBS="$LIBS"
21214	LIBS="$ORIG_LIBS $ntp_lib_lineedit"
21215	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21216/* end confdefs.h.  */
21217
21218/* Override any GCC internal prototype to avoid an error.
21219   Use char because int might match the return type of a GCC
21220   builtin and then its argument prototype would still apply.  */
21221#ifdef __cplusplus
21222extern "C"
21223#endif
21224char add_history ();
21225int
21226main ()
21227{
21228return add_history ();
21229  ;
21230  return 0;
21231}
21232_ACEOF
21233if ac_fn_c_try_link "$LINENO"; then :
21234  ntp_lib_lineedit_history="yes"
21235fi
21236rm -f core conftest.err conftest.$ac_objext \
21237    conftest$ac_exeext conftest.$ac_ext
21238	LIBS="$ORIG_LIBS"
21239
21240	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
21241$as_echo "$ntp_lib_lineedit_history" >&6; }
21242
21243	case "$ntp_lib_lineedit_history" in
21244	 yes)
21245
21246$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
21247
21248	esac
21249    esac	# $ntp_lib_lineedit
21250    { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
21251    { ORIG_LIBS=; unset ORIG_LIBS;}
21252    { TRY_LIB=; unset TRY_LIB;}
21253    { use_lineeditlibs=; unset use_lineeditlibs;}
21254
21255
21256LIBM=
21257case "$host" in
21258 *-*-darwin*)
21259    ;;
21260 *)
21261    _libs=$LIBS
21262    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
21263$as_echo_n "checking for library containing cos... " >&6; }
21264if ${ac_cv_search_cos+:} false; then :
21265  $as_echo_n "(cached) " >&6
21266else
21267  ac_func_search_save_LIBS=$LIBS
21268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21269/* end confdefs.h.  */
21270
21271/* Override any GCC internal prototype to avoid an error.
21272   Use char because int might match the return type of a GCC
21273   builtin and then its argument prototype would still apply.  */
21274#ifdef __cplusplus
21275extern "C"
21276#endif
21277char cos ();
21278int
21279main ()
21280{
21281return cos ();
21282  ;
21283  return 0;
21284}
21285_ACEOF
21286for ac_lib in '' m; do
21287  if test -z "$ac_lib"; then
21288    ac_res="none required"
21289  else
21290    ac_res=-l$ac_lib
21291    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21292  fi
21293  if ac_fn_c_try_link "$LINENO"; then :
21294  ac_cv_search_cos=$ac_res
21295fi
21296rm -f core conftest.err conftest.$ac_objext \
21297    conftest$ac_exeext
21298  if ${ac_cv_search_cos+:} false; then :
21299  break
21300fi
21301done
21302if ${ac_cv_search_cos+:} false; then :
21303
21304else
21305  ac_cv_search_cos=no
21306fi
21307rm conftest.$ac_ext
21308LIBS=$ac_func_search_save_LIBS
21309fi
21310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
21311$as_echo "$ac_cv_search_cos" >&6; }
21312ac_res=$ac_cv_search_cos
21313if test "$ac_res" != no; then :
21314  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21315  LIBM="-lm"
21316fi
21317
21318    LIBS=$_libs
21319    ;;
21320esac
21321
21322{ _libs=; unset _libs;}
21323
21324
21325for ac_header in vfork.h
21326do :
21327  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21328if test "x$ac_cv_header_vfork_h" = xyes; then :
21329  cat >>confdefs.h <<_ACEOF
21330#define HAVE_VFORK_H 1
21331_ACEOF
21332
21333fi
21334
21335done
21336
21337for ac_func in fork vfork
21338do :
21339  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21340ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21341if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21342  cat >>confdefs.h <<_ACEOF
21343#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21344_ACEOF
21345
21346fi
21347done
21348
21349if test "x$ac_cv_func_fork" = xyes; then
21350  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21351$as_echo_n "checking for working fork... " >&6; }
21352if ${ac_cv_func_fork_works+:} false; then :
21353  $as_echo_n "(cached) " >&6
21354else
21355  if test "$cross_compiling" = yes; then :
21356  ac_cv_func_fork_works=cross
21357else
21358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21359/* end confdefs.h.  */
21360$ac_includes_default
21361int
21362main ()
21363{
21364
21365	  /* By Ruediger Kuhlmann. */
21366	  return fork () < 0;
21367
21368  ;
21369  return 0;
21370}
21371_ACEOF
21372if ac_fn_c_try_run "$LINENO"; then :
21373  ac_cv_func_fork_works=yes
21374else
21375  ac_cv_func_fork_works=no
21376fi
21377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21378  conftest.$ac_objext conftest.beam conftest.$ac_ext
21379fi
21380
21381fi
21382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21383$as_echo "$ac_cv_func_fork_works" >&6; }
21384
21385else
21386  ac_cv_func_fork_works=$ac_cv_func_fork
21387fi
21388if test "x$ac_cv_func_fork_works" = xcross; then
21389  case $host in
21390    *-*-amigaos* | *-*-msdosdjgpp*)
21391      # Override, as these systems have only a dummy fork() stub
21392      ac_cv_func_fork_works=no
21393      ;;
21394    *)
21395      ac_cv_func_fork_works=yes
21396      ;;
21397  esac
21398  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21399$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21400fi
21401ac_cv_func_vfork_works=$ac_cv_func_vfork
21402if test "x$ac_cv_func_vfork" = xyes; then
21403  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21404$as_echo_n "checking for working vfork... " >&6; }
21405if ${ac_cv_func_vfork_works+:} false; then :
21406  $as_echo_n "(cached) " >&6
21407else
21408  if test "$cross_compiling" = yes; then :
21409  ac_cv_func_vfork_works=cross
21410else
21411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21412/* end confdefs.h.  */
21413/* Thanks to Paul Eggert for this test.  */
21414$ac_includes_default
21415#include <sys/wait.h>
21416#ifdef HAVE_VFORK_H
21417# include <vfork.h>
21418#endif
21419/* On some sparc systems, changes by the child to local and incoming
21420   argument registers are propagated back to the parent.  The compiler
21421   is told about this with #include <vfork.h>, but some compilers
21422   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
21423   static variable whose address is put into a register that is
21424   clobbered by the vfork.  */
21425static void
21426#ifdef __cplusplus
21427sparc_address_test (int arg)
21428# else
21429sparc_address_test (arg) int arg;
21430#endif
21431{
21432  static pid_t child;
21433  if (!child) {
21434    child = vfork ();
21435    if (child < 0) {
21436      perror ("vfork");
21437      _exit(2);
21438    }
21439    if (!child) {
21440      arg = getpid();
21441      write(-1, "", 0);
21442      _exit (arg);
21443    }
21444  }
21445}
21446
21447int
21448main ()
21449{
21450  pid_t parent = getpid ();
21451  pid_t child;
21452
21453  sparc_address_test (0);
21454
21455  child = vfork ();
21456
21457  if (child == 0) {
21458    /* Here is another test for sparc vfork register problems.  This
21459       test uses lots of local variables, at least as many local
21460       variables as main has allocated so far including compiler
21461       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
21462       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
21463       reuse the register of parent for one of the local variables,
21464       since it will think that parent can't possibly be used any more
21465       in this routine.  Assigning to the local variable will thus
21466       munge parent in the parent process.  */
21467    pid_t
21468      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21469      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21470    /* Convince the compiler that p..p7 are live; otherwise, it might
21471       use the same hardware register for all 8 local variables.  */
21472    if (p != p1 || p != p2 || p != p3 || p != p4
21473	|| p != p5 || p != p6 || p != p7)
21474      _exit(1);
21475
21476    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21477       from child file descriptors.  If the child closes a descriptor
21478       before it execs or exits, this munges the parent's descriptor
21479       as well.  Test for this by closing stdout in the child.  */
21480    _exit(close(fileno(stdout)) != 0);
21481  } else {
21482    int status;
21483    struct stat st;
21484
21485    while (wait(&status) != child)
21486      ;
21487    return (
21488	 /* Was there some problem with vforking?  */
21489	 child < 0
21490
21491	 /* Did the child fail?  (This shouldn't happen.)  */
21492	 || status
21493
21494	 /* Did the vfork/compiler bug occur?  */
21495	 || parent != getpid()
21496
21497	 /* Did the file descriptor bug occur?  */
21498	 || fstat(fileno(stdout), &st) != 0
21499	 );
21500  }
21501}
21502_ACEOF
21503if ac_fn_c_try_run "$LINENO"; then :
21504  ac_cv_func_vfork_works=yes
21505else
21506  ac_cv_func_vfork_works=no
21507fi
21508rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21509  conftest.$ac_objext conftest.beam conftest.$ac_ext
21510fi
21511
21512fi
21513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21514$as_echo "$ac_cv_func_vfork_works" >&6; }
21515
21516fi;
21517if test "x$ac_cv_func_fork_works" = xcross; then
21518  ac_cv_func_vfork_works=$ac_cv_func_vfork
21519  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21520$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21521fi
21522
21523if test "x$ac_cv_func_vfork_works" = xyes; then
21524
21525$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21526
21527else
21528
21529$as_echo "#define vfork fork" >>confdefs.h
21530
21531fi
21532if test "x$ac_cv_func_fork_works" = xyes; then
21533
21534$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21535
21536fi
21537
21538# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21539# for constant arguments.  Useless!
21540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21541$as_echo_n "checking for working alloca.h... " >&6; }
21542if ${ac_cv_working_alloca_h+:} false; then :
21543  $as_echo_n "(cached) " >&6
21544else
21545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21546/* end confdefs.h.  */
21547#include <alloca.h>
21548int
21549main ()
21550{
21551char *p = (char *) alloca (2 * sizeof (int));
21552			  if (p) return 0;
21553  ;
21554  return 0;
21555}
21556_ACEOF
21557if ac_fn_c_try_link "$LINENO"; then :
21558  ac_cv_working_alloca_h=yes
21559else
21560  ac_cv_working_alloca_h=no
21561fi
21562rm -f core conftest.err conftest.$ac_objext \
21563    conftest$ac_exeext conftest.$ac_ext
21564fi
21565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21566$as_echo "$ac_cv_working_alloca_h" >&6; }
21567if test $ac_cv_working_alloca_h = yes; then
21568
21569$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21570
21571fi
21572
21573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21574$as_echo_n "checking for alloca... " >&6; }
21575if ${ac_cv_func_alloca_works+:} false; then :
21576  $as_echo_n "(cached) " >&6
21577else
21578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21579/* end confdefs.h.  */
21580#ifdef __GNUC__
21581# define alloca __builtin_alloca
21582#else
21583# ifdef _MSC_VER
21584#  include <malloc.h>
21585#  define alloca _alloca
21586# else
21587#  ifdef HAVE_ALLOCA_H
21588#   include <alloca.h>
21589#  else
21590#   ifdef _AIX
21591 #pragma alloca
21592#   else
21593#    ifndef alloca /* predefined by HP cc +Olibcalls */
21594void *alloca (size_t);
21595#    endif
21596#   endif
21597#  endif
21598# endif
21599#endif
21600
21601int
21602main ()
21603{
21604char *p = (char *) alloca (1);
21605				    if (p) return 0;
21606  ;
21607  return 0;
21608}
21609_ACEOF
21610if ac_fn_c_try_link "$LINENO"; then :
21611  ac_cv_func_alloca_works=yes
21612else
21613  ac_cv_func_alloca_works=no
21614fi
21615rm -f core conftest.err conftest.$ac_objext \
21616    conftest$ac_exeext conftest.$ac_ext
21617fi
21618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21619$as_echo "$ac_cv_func_alloca_works" >&6; }
21620
21621if test $ac_cv_func_alloca_works = yes; then
21622
21623$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21624
21625else
21626  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21627# that cause trouble.  Some versions do not even contain alloca or
21628# contain a buggy version.  If you still want to use their alloca,
21629# use ar to extract alloca.o from them instead of compiling alloca.c.
21630
21631ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21632
21633$as_echo "#define C_ALLOCA 1" >>confdefs.h
21634
21635
21636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21637$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21638if ${ac_cv_os_cray+:} false; then :
21639  $as_echo_n "(cached) " >&6
21640else
21641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21642/* end confdefs.h.  */
21643#if defined CRAY && ! defined CRAY2
21644webecray
21645#else
21646wenotbecray
21647#endif
21648
21649_ACEOF
21650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21651  $EGREP "webecray" >/dev/null 2>&1; then :
21652  ac_cv_os_cray=yes
21653else
21654  ac_cv_os_cray=no
21655fi
21656rm -f conftest*
21657
21658fi
21659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21660$as_echo "$ac_cv_os_cray" >&6; }
21661if test $ac_cv_os_cray = yes; then
21662  for ac_func in _getb67 GETB67 getb67; do
21663    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21664ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21665if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21666
21667cat >>confdefs.h <<_ACEOF
21668#define CRAY_STACKSEG_END $ac_func
21669_ACEOF
21670
21671    break
21672fi
21673
21674  done
21675fi
21676
21677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21678$as_echo_n "checking stack direction for C alloca... " >&6; }
21679if ${ac_cv_c_stack_direction+:} false; then :
21680  $as_echo_n "(cached) " >&6
21681else
21682  if test "$cross_compiling" = yes; then :
21683  ac_cv_c_stack_direction=0
21684else
21685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21686/* end confdefs.h.  */
21687$ac_includes_default
21688int
21689find_stack_direction (int *addr, int depth)
21690{
21691  int dir, dummy = 0;
21692  if (! addr)
21693    addr = &dummy;
21694  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
21695  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
21696  return dir + dummy;
21697}
21698
21699int
21700main (int argc, char **argv)
21701{
21702  return find_stack_direction (0, argc + !argv + 20) < 0;
21703}
21704_ACEOF
21705if ac_fn_c_try_run "$LINENO"; then :
21706  ac_cv_c_stack_direction=1
21707else
21708  ac_cv_c_stack_direction=-1
21709fi
21710rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21711  conftest.$ac_objext conftest.beam conftest.$ac_ext
21712fi
21713
21714fi
21715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21716$as_echo "$ac_cv_c_stack_direction" >&6; }
21717cat >>confdefs.h <<_ACEOF
21718#define STACK_DIRECTION $ac_cv_c_stack_direction
21719_ACEOF
21720
21721
21722fi
21723
21724ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
21725if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
21726  ac_have_decl=1
21727else
21728  ac_have_decl=0
21729fi
21730
21731cat >>confdefs.h <<_ACEOF
21732#define HAVE_DECL_STRERROR_R $ac_have_decl
21733_ACEOF
21734
21735for ac_func in strerror_r
21736do :
21737  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
21738if test "x$ac_cv_func_strerror_r" = xyes; then :
21739  cat >>confdefs.h <<_ACEOF
21740#define HAVE_STRERROR_R 1
21741_ACEOF
21742
21743fi
21744done
21745
21746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
21747$as_echo_n "checking whether strerror_r returns char *... " >&6; }
21748if ${ac_cv_func_strerror_r_char_p+:} false; then :
21749  $as_echo_n "(cached) " >&6
21750else
21751
21752    ac_cv_func_strerror_r_char_p=no
21753    if test $ac_cv_have_decl_strerror_r = yes; then
21754      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21755/* end confdefs.h.  */
21756$ac_includes_default
21757int
21758main ()
21759{
21760
21761	  char buf[100];
21762	  char x = *strerror_r (0, buf, sizeof buf);
21763	  char *p = strerror_r (0, buf, sizeof buf);
21764	  return !p || x;
21765
21766  ;
21767  return 0;
21768}
21769_ACEOF
21770if ac_fn_c_try_compile "$LINENO"; then :
21771  ac_cv_func_strerror_r_char_p=yes
21772fi
21773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21774    else
21775      # strerror_r is not declared.  Choose between
21776      # systems that have relatively inaccessible declarations for the
21777      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
21778      # former has a strerror_r that returns char*, while the latter
21779      # has a strerror_r that returns `int'.
21780      # This test should segfault on the DEC system.
21781      if test "$cross_compiling" = yes; then :
21782  :
21783else
21784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21785/* end confdefs.h.  */
21786$ac_includes_default
21787	extern char *strerror_r ();
21788int
21789main ()
21790{
21791char buf[100];
21792	  char x = *strerror_r (0, buf, sizeof buf);
21793	  return ! isalpha (x);
21794  ;
21795  return 0;
21796}
21797_ACEOF
21798if ac_fn_c_try_run "$LINENO"; then :
21799  ac_cv_func_strerror_r_char_p=yes
21800fi
21801rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21802  conftest.$ac_objext conftest.beam conftest.$ac_ext
21803fi
21804
21805    fi
21806
21807fi
21808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
21809$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
21810if test $ac_cv_func_strerror_r_char_p = yes; then
21811
21812$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
21813
21814fi
21815
21816
21817ac_busted_vpath_in_make=no
21818case "$build" in
21819 *-*-irix6.1*)	# 64 bit only
21820    # busted vpath?
21821    ;;
21822 *-*-irix6*)	# 6.2 (and later?)
21823    ac_busted_vpath_in_make=yes
21824    ;;
21825 *-*-solaris2.5.1)
21826    ac_busted_vpath_in_make=yes
21827    ;;
21828 *-*-unicosmp*)
21829    ac_busted_vpath_in_make=yes
21830    ;;
21831esac
21832
21833case "$ac_busted_vpath_in_make$srcdir" in
21834 yes.|no*)
21835    ;;
21836 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
21837     '')
21838	as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
21839    esac
21840    ;;
21841esac
21842
21843case "$host" in
21844 *-*-aix4*)
21845	# Bug 2516:
21846	# Was *-*-aix[[4-9]]*
21847	# XXX only verified thru AIX6.  But...
21848	# Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
21849	# that this support would be in 5.3, removed in 6, and added back.
21850	#
21851	# (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
21852	# (returning ENOSYS).  I didn't check 4.2.  If, in the future,
21853	# IBM pulls its thumbs out long enough to implement clock_settime,
21854	# this conditional will need to change.  Maybe use AC_TRY_RUN
21855	# instead to try to set the time to itself and check errno.
21856    ;;
21857 *)
21858    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21859$as_echo_n "checking for library containing clock_gettime... " >&6; }
21860if ${ac_cv_search_clock_gettime+:} false; then :
21861  $as_echo_n "(cached) " >&6
21862else
21863  ac_func_search_save_LIBS=$LIBS
21864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21865/* end confdefs.h.  */
21866
21867/* Override any GCC internal prototype to avoid an error.
21868   Use char because int might match the return type of a GCC
21869   builtin and then its argument prototype would still apply.  */
21870#ifdef __cplusplus
21871extern "C"
21872#endif
21873char clock_gettime ();
21874int
21875main ()
21876{
21877return clock_gettime ();
21878  ;
21879  return 0;
21880}
21881_ACEOF
21882for ac_lib in '' rt; do
21883  if test -z "$ac_lib"; then
21884    ac_res="none required"
21885  else
21886    ac_res=-l$ac_lib
21887    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21888  fi
21889  if ac_fn_c_try_link "$LINENO"; then :
21890  ac_cv_search_clock_gettime=$ac_res
21891fi
21892rm -f core conftest.err conftest.$ac_objext \
21893    conftest$ac_exeext
21894  if ${ac_cv_search_clock_gettime+:} false; then :
21895  break
21896fi
21897done
21898if ${ac_cv_search_clock_gettime+:} false; then :
21899
21900else
21901  ac_cv_search_clock_gettime=no
21902fi
21903rm conftest.$ac_ext
21904LIBS=$ac_func_search_save_LIBS
21905fi
21906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21907$as_echo "$ac_cv_search_clock_gettime" >&6; }
21908ac_res=$ac_cv_search_clock_gettime
21909if test "$ac_res" != no; then :
21910  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21911  case "$ac_cv_search_clock_gettime" in
21912 'none required') ;;
21913 no) ;;
21914 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
21915 esac
21916
21917fi
21918
21919    for ac_func in clock_getres clock_gettime clock_settime
21920do :
21921  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21922ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21923if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21924  cat >>confdefs.h <<_ACEOF
21925#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21926_ACEOF
21927
21928fi
21929done
21930
21931    ;;
21932esac
21933
21934for ac_func in getclock stime timegm strlcpy strlcat
21935do :
21936  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21937ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21938if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21939  cat >>confdefs.h <<_ACEOF
21940#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21941_ACEOF
21942
21943fi
21944done
21945
21946
21947# Bug 2713
21948LDADD_LIBUTIL=
21949
21950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
21951$as_echo_n "checking for library containing snprintb... " >&6; }
21952if ${ac_cv_search_snprintb+:} false; then :
21953  $as_echo_n "(cached) " >&6
21954else
21955  ac_func_search_save_LIBS=$LIBS
21956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21957/* end confdefs.h.  */
21958
21959/* Override any GCC internal prototype to avoid an error.
21960   Use char because int might match the return type of a GCC
21961   builtin and then its argument prototype would still apply.  */
21962#ifdef __cplusplus
21963extern "C"
21964#endif
21965char snprintb ();
21966int
21967main ()
21968{
21969return snprintb ();
21970  ;
21971  return 0;
21972}
21973_ACEOF
21974for ac_lib in '' util; do
21975  if test -z "$ac_lib"; then
21976    ac_res="none required"
21977  else
21978    ac_res=-l$ac_lib
21979    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21980  fi
21981  if ac_fn_c_try_link "$LINENO"; then :
21982  ac_cv_search_snprintb=$ac_res
21983fi
21984rm -f core conftest.err conftest.$ac_objext \
21985    conftest$ac_exeext
21986  if ${ac_cv_search_snprintb+:} false; then :
21987  break
21988fi
21989done
21990if ${ac_cv_search_snprintb+:} false; then :
21991
21992else
21993  ac_cv_search_snprintb=no
21994fi
21995rm conftest.$ac_ext
21996LIBS=$ac_func_search_save_LIBS
21997fi
21998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
21999$as_echo "$ac_cv_search_snprintb" >&6; }
22000ac_res=$ac_cv_search_snprintb
22001if test "$ac_res" != no; then :
22002  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22003  case "$ac_cv_search_snprintb" in
22004 'none required') ;;
22005 no) ;;
22006 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
22007 esac
22008
22009$as_echo "#define USE_SNPRINTB 1" >>confdefs.h
22010
22011fi
22012
22013
22014#
22015for ac_header in errno.h sys/socket.h sys/types.h time.h
22016do :
22017  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22018ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22019if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22020  cat >>confdefs.h <<_ACEOF
22021#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22022_ACEOF
22023
22024fi
22025
22026done
22027
22028for ac_header in net/if.h
22029do :
22030  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
22031    #ifdef HAVE_SYS_SOCKET_H
22032    # include <sys/socket.h>
22033    #endif
22034
22035"
22036if test "x$ac_cv_header_net_if_h" = xyes; then :
22037  cat >>confdefs.h <<_ACEOF
22038#define HAVE_NET_IF_H 1
22039_ACEOF
22040
22041fi
22042
22043done
22044
22045case "$host" in
22046 *-hp-hpux*)
22047    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
22048$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
22049if ${ntp_cv_predecl_mpinfou+:} false; then :
22050  $as_echo_n "(cached) " >&6
22051else
22052
22053	    np_cv_predecl_mpinfou=no
22054	    case "$ac_cv_header_net_if_h" in
22055	     no)
22056		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22057/* end confdefs.h.  */
22058
22059			    typedef union mpinfou {
22060				    struct pdk_mpinfo *pdkptr;
22061				    struct mpinfo *pikptr;
22062			    } mpinfou_t;
22063			    #ifdef HAVE_SYS_SOCKET_H
22064			    # include <sys/socket.h>
22065			    #endif
22066			    #include <net/if.h>
22067
22068int
22069main ()
22070{
22071
22072
22073
22074  ;
22075  return 0;
22076}
22077_ACEOF
22078if ac_fn_c_try_compile "$LINENO"; then :
22079
22080			ntp_cv_predecl_mpinfou=yes
22081			ac_cv_header_net_if_h=yes
22082
22083
22084fi
22085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22086	    esac
22087
22088
22089fi
22090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
22091$as_echo "$ntp_cv_predecl_mpinfou" >&6; }
22092    case "$ntp_cv_predecl_mpinfou" in
22093     yes)
22094	cat >>confdefs.h <<_ACEOF
22095#ifndef MPINFOU_PREDECLARED
22096# define MPINFOU_PREDECLARED
22097typedef union mpinfou {
22098	struct pdk_mpinfo *pdkptr;
22099	struct mpinfo *pikptr;
22100} mpinfou_t;
22101#endif
22102_ACEOF
22103
22104    esac
22105esac
22106
22107case "$host" in
22108 *-linux*)
22109    for ac_header in linux/if_addr.h
22110do :
22111  ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
22112	#ifdef HAVE_SYS_SOCKET_H
22113	# include <sys/socket.h>
22114	#endif
22115
22116"
22117if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
22118  cat >>confdefs.h <<_ACEOF
22119#define HAVE_LINUX_IF_ADDR_H 1
22120_ACEOF
22121
22122fi
22123
22124done
22125
22126
22127$as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h
22128
22129esac
22130
22131for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
22132do :
22133  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22134ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22135if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22136  cat >>confdefs.h <<_ACEOF
22137#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22138_ACEOF
22139
22140fi
22141
22142done
22143
22144# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
22145for ac_header in sys/sysctl.h
22146do :
22147  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
22148    #if defined HAVE_SYS_PARAM_H
22149    # include <sys/param.h>
22150    #endif
22151
22152"
22153if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
22154  cat >>confdefs.h <<_ACEOF
22155#define HAVE_SYS_SYSCTL_H 1
22156_ACEOF
22157
22158fi
22159
22160done
22161
22162for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
22163do :
22164  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22165ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22166if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22167  cat >>confdefs.h <<_ACEOF
22168#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22169_ACEOF
22170
22171fi
22172
22173done
22174
22175
22176for ac_header in resolv.h
22177do :
22178  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
22179    #ifdef HAVE_SYS_TYPES_H
22180    # include <sys/types.h>
22181    #endif
22182    #ifdef HAVE_NETINET_IN_H
22183    # include <netinet/in.h>
22184    #endif
22185    #ifdef HAVE_ARPA_NAMESER_H
22186    # include <arpa/nameser.h>
22187    #endif
22188
22189"
22190if test "x$ac_cv_header_resolv_h" = xyes; then :
22191  cat >>confdefs.h <<_ACEOF
22192#define HAVE_RESOLV_H 1
22193_ACEOF
22194
22195fi
22196
22197done
22198
22199
22200for ac_header in net/if_var.h
22201do :
22202  ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
22203    #if HAVE_SYS_TYPES_H
22204    # include <sys/types.h>
22205    #endif
22206    #ifdef HAVE_SYS_SOCKET_H
22207    # include <sys/socket.h>
22208    #endif
22209    #ifdef HAVE_NETINET_IN_H
22210    # include <netinet/in.h>
22211    #endif
22212    #ifdef HAVE_NET_IF_H
22213    # include <net/if.h>
22214    #endif
22215
22216"
22217if test "x$ac_cv_header_net_if_var_h" = xyes; then :
22218  cat >>confdefs.h <<_ACEOF
22219#define HAVE_NET_IF_VAR_H 1
22220_ACEOF
22221
22222fi
22223
22224done
22225
22226
22227for ac_header in netinet/ip.h netinet/in_var.h
22228do :
22229  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22230ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22231    #ifdef HAVE_SYS_TYPES_H
22232    # include <sys/types.h>
22233    #endif
22234    #ifdef HAVE_SYS_SOCKET_H
22235    # include <sys/socket.h>
22236    #endif
22237    #ifdef HAVE_NET_IF_H
22238    # include <net/if.h>
22239    #endif
22240    #ifdef HAVE_NETINET_IN_H
22241    # include <netinet/in.h>
22242    #endif
22243    #ifdef HAVE_NET_IF_VAR_H
22244    # include <net/if_var.h>
22245    #endif
22246    #ifdef HAVE_NETINET_IN_SYSTM_H
22247    # include <netinet/in_systm.h>
22248    #endif
22249
22250"
22251if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22252  cat >>confdefs.h <<_ACEOF
22253#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22254_ACEOF
22255
22256fi
22257
22258done
22259
22260
22261# HMS: Do we need to check for -lsocket before or after these tests?
22262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
22263$as_echo_n "checking for library containing inet_pton... " >&6; }
22264if ${ac_cv_search_inet_pton+:} false; then :
22265  $as_echo_n "(cached) " >&6
22266else
22267  ac_func_search_save_LIBS=$LIBS
22268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22269/* end confdefs.h.  */
22270
22271/* Override any GCC internal prototype to avoid an error.
22272   Use char because int might match the return type of a GCC
22273   builtin and then its argument prototype would still apply.  */
22274#ifdef __cplusplus
22275extern "C"
22276#endif
22277char inet_pton ();
22278int
22279main ()
22280{
22281return inet_pton ();
22282  ;
22283  return 0;
22284}
22285_ACEOF
22286for ac_lib in '' nsl; do
22287  if test -z "$ac_lib"; then
22288    ac_res="none required"
22289  else
22290    ac_res=-l$ac_lib
22291    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22292  fi
22293  if ac_fn_c_try_link "$LINENO"; then :
22294  ac_cv_search_inet_pton=$ac_res
22295fi
22296rm -f core conftest.err conftest.$ac_objext \
22297    conftest$ac_exeext
22298  if ${ac_cv_search_inet_pton+:} false; then :
22299  break
22300fi
22301done
22302if ${ac_cv_search_inet_pton+:} false; then :
22303
22304else
22305  ac_cv_search_inet_pton=no
22306fi
22307rm conftest.$ac_ext
22308LIBS=$ac_func_search_save_LIBS
22309fi
22310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
22311$as_echo "$ac_cv_search_inet_pton" >&6; }
22312ac_res=$ac_cv_search_inet_pton
22313if test "$ac_res" != no; then :
22314  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22315  case "$ac_cv_search_inet_pton" in
22316 'none required') ;;
22317 no) ;;
22318 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
22319 esac
22320
22321fi
22322
22323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
22324$as_echo_n "checking for library containing inet_ntop... " >&6; }
22325if ${ac_cv_search_inet_ntop+:} false; then :
22326  $as_echo_n "(cached) " >&6
22327else
22328  ac_func_search_save_LIBS=$LIBS
22329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22330/* end confdefs.h.  */
22331
22332/* Override any GCC internal prototype to avoid an error.
22333   Use char because int might match the return type of a GCC
22334   builtin and then its argument prototype would still apply.  */
22335#ifdef __cplusplus
22336extern "C"
22337#endif
22338char inet_ntop ();
22339int
22340main ()
22341{
22342return inet_ntop ();
22343  ;
22344  return 0;
22345}
22346_ACEOF
22347for ac_lib in '' resolv; do
22348  if test -z "$ac_lib"; then
22349    ac_res="none required"
22350  else
22351    ac_res=-l$ac_lib
22352    LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
22353  fi
22354  if ac_fn_c_try_link "$LINENO"; then :
22355  ac_cv_search_inet_ntop=$ac_res
22356fi
22357rm -f core conftest.err conftest.$ac_objext \
22358    conftest$ac_exeext
22359  if ${ac_cv_search_inet_ntop+:} false; then :
22360  break
22361fi
22362done
22363if ${ac_cv_search_inet_ntop+:} false; then :
22364
22365else
22366  ac_cv_search_inet_ntop=no
22367fi
22368rm conftest.$ac_ext
22369LIBS=$ac_func_search_save_LIBS
22370fi
22371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
22372$as_echo "$ac_cv_search_inet_ntop" >&6; }
22373ac_res=$ac_cv_search_inet_ntop
22374if test "$ac_res" != no; then :
22375  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22376  case "$ac_cv_search_inet_ntop" in
22377 'none required') ;;
22378 no) ;;
22379 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
22380 esac
22381
22382fi
22383
22384
22385# [Bug 1628] On Solaris, we need -lxnet -lsocket.  Generalize this to
22386# avoid keying on the OS name:  If we find socket functions in
22387# libsocket, next try for them in libxnet without libsocket, if found,
22388# list both.  If we simply tested libxnet first, we would find the
22389# functions there and never add libsocket.  See also [Bug 660]
22390# http://bugs.ntp.org/show_bug.cgi?id=660#c9
22391saved_LIBS=$LIBS
22392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
22393$as_echo_n "checking for library containing setsockopt... " >&6; }
22394if ${ac_cv_search_setsockopt+:} false; then :
22395  $as_echo_n "(cached) " >&6
22396else
22397  ac_func_search_save_LIBS=$LIBS
22398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22399/* end confdefs.h.  */
22400
22401/* Override any GCC internal prototype to avoid an error.
22402   Use char because int might match the return type of a GCC
22403   builtin and then its argument prototype would still apply.  */
22404#ifdef __cplusplus
22405extern "C"
22406#endif
22407char setsockopt ();
22408int
22409main ()
22410{
22411return setsockopt ();
22412  ;
22413  return 0;
22414}
22415_ACEOF
22416for ac_lib in '' socket; do
22417  if test -z "$ac_lib"; then
22418    ac_res="none required"
22419  else
22420    ac_res=-l$ac_lib
22421    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22422  fi
22423  if ac_fn_c_try_link "$LINENO"; then :
22424  ac_cv_search_setsockopt=$ac_res
22425fi
22426rm -f core conftest.err conftest.$ac_objext \
22427    conftest$ac_exeext
22428  if ${ac_cv_search_setsockopt+:} false; then :
22429  break
22430fi
22431done
22432if ${ac_cv_search_setsockopt+:} false; then :
22433
22434else
22435  ac_cv_search_setsockopt=no
22436fi
22437rm conftest.$ac_ext
22438LIBS=$ac_func_search_save_LIBS
22439fi
22440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
22441$as_echo "$ac_cv_search_setsockopt" >&6; }
22442ac_res=$ac_cv_search_setsockopt
22443if test "$ac_res" != no; then :
22444  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22445  case "$ac_cv_search_setsockopt" in
22446 'none required') ;;
22447 no) ;;
22448 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
22449 esac
22450
22451fi
22452
22453case "$ac_cv_search_setsockopt" in
22454 -lsocket)
22455    LIBS="$saved_LIBS"
22456    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
22457$as_echo_n "checking for library containing getsockopt... " >&6; }
22458if ${ac_cv_search_getsockopt+:} false; then :
22459  $as_echo_n "(cached) " >&6
22460else
22461  ac_func_search_save_LIBS=$LIBS
22462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22463/* end confdefs.h.  */
22464
22465/* Override any GCC internal prototype to avoid an error.
22466   Use char because int might match the return type of a GCC
22467   builtin and then its argument prototype would still apply.  */
22468#ifdef __cplusplus
22469extern "C"
22470#endif
22471char getsockopt ();
22472int
22473main ()
22474{
22475return getsockopt ();
22476  ;
22477  return 0;
22478}
22479_ACEOF
22480for ac_lib in '' xnet; do
22481  if test -z "$ac_lib"; then
22482    ac_res="none required"
22483  else
22484    ac_res=-l$ac_lib
22485    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22486  fi
22487  if ac_fn_c_try_link "$LINENO"; then :
22488  ac_cv_search_getsockopt=$ac_res
22489fi
22490rm -f core conftest.err conftest.$ac_objext \
22491    conftest$ac_exeext
22492  if ${ac_cv_search_getsockopt+:} false; then :
22493  break
22494fi
22495done
22496if ${ac_cv_search_getsockopt+:} false; then :
22497
22498else
22499  ac_cv_search_getsockopt=no
22500fi
22501rm conftest.$ac_ext
22502LIBS=$ac_func_search_save_LIBS
22503fi
22504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
22505$as_echo "$ac_cv_search_getsockopt" >&6; }
22506ac_res=$ac_cv_search_getsockopt
22507if test "$ac_res" != no; then :
22508  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22509  case "$ac_cv_search_getsockopt" in
22510 'none required') ;;
22511 no) ;;
22512 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
22513 esac
22514
22515fi
22516
22517    # XXX Possible trouble here - reading the comments above and looking at the
22518    # code below I wonder if we'll add -lxnet when we don't need it.
22519    # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
22520    # there when it is not needed?
22521    case "$ac_cv_search_getsockopt" in
22522     -lxnet)
22523	LIBS="-lxnet -lsocket $saved_LIBS"
22524	;;
22525     *) LIBS="-lsocket $saved_LIBS"
22526	;;
22527    esac
22528    ;;
22529esac
22530{ saved_LIBS=; unset saved_LIBS;}
22531
22532# Bug 2427 - look for recvmsg here.
22533for ac_func in recvmsg
22534do :
22535  ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
22536if test "x$ac_cv_func_recvmsg" = xyes; then :
22537  cat >>confdefs.h <<_ACEOF
22538#define HAVE_RECVMSG 1
22539_ACEOF
22540
22541fi
22542done
22543
22544
22545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22546$as_echo_n "checking for inline... " >&6; }
22547if ${ac_cv_c_inline+:} false; then :
22548  $as_echo_n "(cached) " >&6
22549else
22550  ac_cv_c_inline=no
22551for ac_kw in inline __inline__ __inline; do
22552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22553/* end confdefs.h.  */
22554#ifndef __cplusplus
22555typedef int foo_t;
22556static $ac_kw foo_t static_foo () {return 0; }
22557$ac_kw foo_t foo () {return 0; }
22558#endif
22559
22560_ACEOF
22561if ac_fn_c_try_compile "$LINENO"; then :
22562  ac_cv_c_inline=$ac_kw
22563fi
22564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565  test "$ac_cv_c_inline" != no && break
22566done
22567
22568fi
22569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22570$as_echo "$ac_cv_c_inline" >&6; }
22571
22572case $ac_cv_c_inline in
22573  inline | yes) ;;
22574  *)
22575    case $ac_cv_c_inline in
22576      no) ac_val=;;
22577      *) ac_val=$ac_cv_c_inline;;
22578    esac
22579    cat >>confdefs.h <<_ACEOF
22580#ifndef __cplusplus
22581#define inline $ac_val
22582#endif
22583_ACEOF
22584    ;;
22585esac
22586
22587
22588case "$ac_cv_c_inline" in
22589 '')
22590    ;;
22591 *)
22592
22593$as_echo "#define HAVE_INLINE 1" >>confdefs.h
22594
22595
22596esac
22597
22598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22599$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22600if ${ac_cv_header_time+:} false; then :
22601  $as_echo_n "(cached) " >&6
22602else
22603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22604/* end confdefs.h.  */
22605#include <sys/types.h>
22606#include <sys/time.h>
22607#include <time.h>
22608
22609int
22610main ()
22611{
22612if ((struct tm *) 0)
22613return 0;
22614  ;
22615  return 0;
22616}
22617_ACEOF
22618if ac_fn_c_try_compile "$LINENO"; then :
22619  ac_cv_header_time=yes
22620else
22621  ac_cv_header_time=no
22622fi
22623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22624fi
22625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22626$as_echo "$ac_cv_header_time" >&6; }
22627if test $ac_cv_header_time = yes; then
22628
22629$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22630
22631fi
22632
22633# The cast to long int works around a bug in the HP C Compiler
22634# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22635# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22636# This bug is HP SR number 8606223364.
22637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
22638$as_echo_n "checking size of time_t... " >&6; }
22639if ${ac_cv_sizeof_time_t+:} false; then :
22640  $as_echo_n "(cached) " >&6
22641else
22642  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
22643
22644else
22645  if test "$ac_cv_type_time_t" = yes; then
22646     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22648as_fn_error 77 "cannot compute sizeof (time_t)
22649See \`config.log' for more details" "$LINENO" 5; }
22650   else
22651     ac_cv_sizeof_time_t=0
22652   fi
22653fi
22654
22655fi
22656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
22657$as_echo "$ac_cv_sizeof_time_t" >&6; }
22658
22659
22660
22661cat >>confdefs.h <<_ACEOF
22662#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
22663_ACEOF
22664
22665
22666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22667$as_echo_n "checking whether char is unsigned... " >&6; }
22668if ${ac_cv_c_char_unsigned+:} false; then :
22669  $as_echo_n "(cached) " >&6
22670else
22671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22672/* end confdefs.h.  */
22673$ac_includes_default
22674int
22675main ()
22676{
22677static int test_array [1 - 2 * !(((char) -1) < 0)];
22678test_array [0] = 0;
22679return test_array [0];
22680
22681  ;
22682  return 0;
22683}
22684_ACEOF
22685if ac_fn_c_try_compile "$LINENO"; then :
22686  ac_cv_c_char_unsigned=no
22687else
22688  ac_cv_c_char_unsigned=yes
22689fi
22690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22691fi
22692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22693$as_echo "$ac_cv_c_char_unsigned" >&6; }
22694if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22695  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22696
22697fi
22698		# The cast to long int works around a bug in the HP C Compiler
22699# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22700# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22701# This bug is HP SR number 8606223364.
22702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
22703$as_echo_n "checking size of signed char... " >&6; }
22704if ${ac_cv_sizeof_signed_char+:} false; then :
22705  $as_echo_n "(cached) " >&6
22706else
22707  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"; then :
22708
22709else
22710  if test "$ac_cv_type_signed_char" = yes; then
22711     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22713as_fn_error 77 "cannot compute sizeof (signed char)
22714See \`config.log' for more details" "$LINENO" 5; }
22715   else
22716     ac_cv_sizeof_signed_char=0
22717   fi
22718fi
22719
22720fi
22721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
22722$as_echo "$ac_cv_sizeof_signed_char" >&6; }
22723
22724
22725
22726cat >>confdefs.h <<_ACEOF
22727#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
22728_ACEOF
22729
22730
22731ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
22732if test "x$ac_cv_type_s_char" = xyes; then :
22733
22734cat >>confdefs.h <<_ACEOF
22735#define HAVE_S_CHAR 1
22736_ACEOF
22737
22738
22739fi
22740ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22741if test "x$ac_cv_type_long_long" = xyes; then :
22742
22743cat >>confdefs.h <<_ACEOF
22744#define HAVE_LONG_LONG 1
22745_ACEOF
22746
22747
22748fi
22749
22750# The cast to long int works around a bug in the HP C Compiler
22751# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22752# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22753# This bug is HP SR number 8606223364.
22754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
22755$as_echo_n "checking size of short... " >&6; }
22756if ${ac_cv_sizeof_short+:} false; then :
22757  $as_echo_n "(cached) " >&6
22758else
22759  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
22760
22761else
22762  if test "$ac_cv_type_short" = yes; then
22763     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22765as_fn_error 77 "cannot compute sizeof (short)
22766See \`config.log' for more details" "$LINENO" 5; }
22767   else
22768     ac_cv_sizeof_short=0
22769   fi
22770fi
22771
22772fi
22773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
22774$as_echo "$ac_cv_sizeof_short" >&6; }
22775
22776
22777
22778cat >>confdefs.h <<_ACEOF
22779#define SIZEOF_SHORT $ac_cv_sizeof_short
22780_ACEOF
22781
22782
22783# The cast to long int works around a bug in the HP C Compiler
22784# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22785# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22786# This bug is HP SR number 8606223364.
22787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
22788$as_echo_n "checking size of int... " >&6; }
22789if ${ac_cv_sizeof_int+:} false; then :
22790  $as_echo_n "(cached) " >&6
22791else
22792  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
22793
22794else
22795  if test "$ac_cv_type_int" = yes; then
22796     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22798as_fn_error 77 "cannot compute sizeof (int)
22799See \`config.log' for more details" "$LINENO" 5; }
22800   else
22801     ac_cv_sizeof_int=0
22802   fi
22803fi
22804
22805fi
22806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
22807$as_echo "$ac_cv_sizeof_int" >&6; }
22808
22809
22810
22811cat >>confdefs.h <<_ACEOF
22812#define SIZEOF_INT $ac_cv_sizeof_int
22813_ACEOF
22814
22815
22816# The cast to long int works around a bug in the HP C Compiler
22817# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22818# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22819# This bug is HP SR number 8606223364.
22820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
22821$as_echo_n "checking size of long... " >&6; }
22822if ${ac_cv_sizeof_long+:} false; then :
22823  $as_echo_n "(cached) " >&6
22824else
22825  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
22826
22827else
22828  if test "$ac_cv_type_long" = yes; then
22829     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22830$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22831as_fn_error 77 "cannot compute sizeof (long)
22832See \`config.log' for more details" "$LINENO" 5; }
22833   else
22834     ac_cv_sizeof_long=0
22835   fi
22836fi
22837
22838fi
22839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
22840$as_echo "$ac_cv_sizeof_long" >&6; }
22841
22842
22843
22844cat >>confdefs.h <<_ACEOF
22845#define SIZEOF_LONG $ac_cv_sizeof_long
22846_ACEOF
22847
22848
22849
22850case "$ac_cv_type_long_long" in
22851 no)
22852    ;;
22853 *)
22854    # The cast to long int works around a bug in the HP C Compiler
22855# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22856# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22857# This bug is HP SR number 8606223364.
22858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
22859$as_echo_n "checking size of long long... " >&6; }
22860if ${ac_cv_sizeof_long_long+:} false; then :
22861  $as_echo_n "(cached) " >&6
22862else
22863  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
22864
22865else
22866  if test "$ac_cv_type_long_long" = yes; then
22867     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22869as_fn_error 77 "cannot compute sizeof (long long)
22870See \`config.log' for more details" "$LINENO" 5; }
22871   else
22872     ac_cv_sizeof_long_long=0
22873   fi
22874fi
22875
22876fi
22877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
22878$as_echo "$ac_cv_sizeof_long_long" >&6; }
22879
22880
22881
22882cat >>confdefs.h <<_ACEOF
22883#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22884_ACEOF
22885
22886
22887    ;;
22888esac
22889
22890case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
22891 *yes)
22892    # We have a typedef for s_char.  Might as well believe it...
22893    ;;
22894 no0no)
22895    # We have signed chars, can't say 'signed char', no s_char typedef.
22896
22897$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22898
22899    ;;
22900 no1no)
22901    # We have signed chars, can say 'signed char', no s_char typedef.
22902
22903$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22904
22905    ;;
22906 yes0no)
22907    # We have unsigned chars, can't say 'signed char', no s_char typedef.
22908    as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
22909    ;;
22910 yes1no)
22911    # We have unsigned chars, can say 'signed char', no s_char typedef.
22912
22913$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22914
22915    ;;
22916esac
22917
22918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22919$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22920if ${ac_cv_type_uid_t+:} false; then :
22921  $as_echo_n "(cached) " >&6
22922else
22923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22924/* end confdefs.h.  */
22925#include <sys/types.h>
22926
22927_ACEOF
22928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22929  $EGREP "uid_t" >/dev/null 2>&1; then :
22930  ac_cv_type_uid_t=yes
22931else
22932  ac_cv_type_uid_t=no
22933fi
22934rm -f conftest*
22935
22936fi
22937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22938$as_echo "$ac_cv_type_uid_t" >&6; }
22939if test $ac_cv_type_uid_t = no; then
22940
22941$as_echo "#define uid_t int" >>confdefs.h
22942
22943
22944$as_echo "#define gid_t int" >>confdefs.h
22945
22946fi
22947
22948
22949
22950
22951
22952
22953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
22954$as_echo_n "checking if we're including debugging code... " >&6; }
22955# Check whether --enable-debugging was given.
22956if test "${enable_debugging+set}" = set; then :
22957  enableval=$enable_debugging; ntp_ok=$enableval
22958else
22959  ntp_ok=yes
22960
22961fi
22962
22963case "$ntp_ok" in
22964 yes)
22965
22966$as_echo "#define DEBUG 1" >>confdefs.h
22967
22968esac
22969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22970$as_echo "$ntp_ok" >&6; }
22971
22972
22973
22974# check if we can compile with pthreads
22975for ac_header in semaphore.h
22976do :
22977  ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
22978if test "x$ac_cv_header_semaphore_h" = xyes; then :
22979  cat >>confdefs.h <<_ACEOF
22980#define HAVE_SEMAPHORE_H 1
22981_ACEOF
22982
22983fi
22984
22985done
22986
22987for ac_func in socketpair
22988do :
22989  ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
22990if test "x$ac_cv_func_socketpair" = xyes; then :
22991  cat >>confdefs.h <<_ACEOF
22992#define HAVE_SOCKETPAIR 1
22993_ACEOF
22994
22995fi
22996done
22997
22998# Check whether --enable-thread-support was given.
22999if test "${enable_thread_support+set}" = set; then :
23000  enableval=$enable_thread_support;
23001else
23002  enable_thread_support=yes
23003
23004fi
23005
23006have_pthreads=no
23007case "$enable_thread_support" in
23008 no) ;;
23009 *)
23010    ol_found_pthreads=no
23011
23012
23013
23014ac_ext=c
23015ac_cpp='$CPP $CPPFLAGS'
23016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23018ac_compiler_gnu=$ac_cv_c_compiler_gnu
23019
23020# OpenLDAP --with-threads
23021
23022# Check whether --with-threads was given.
23023if test "${with_threads+set}" = set; then :
23024  withval=$with_threads;
23025	ol_arg=invalid
23026	for ol_val in auto nt posix mach pth lwp yes no manual  ; do
23027		if test "$withval" = "$ol_val" ; then
23028			ol_arg="$ol_val"
23029		fi
23030	done
23031	if test "$ol_arg" = "invalid" ; then
23032		as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
23033	fi
23034	ol_with_threads="$ol_arg"
23035
23036else
23037  	ol_with_threads="auto"
23038fi
23039# end --with-threads
23040
23041
23042case "$ol_with_threads$host" in
23043 auto*-*-solaris2.[0-6])
23044        ol_with_threads=no
23045    ;;
23046esac
23047
23048
23049ol_aix_threads=no
23050case "$host" in
23051*-*-aix*) 	if test -z "$CC" ; then
23052		case "$ol_with_threads" in
23053		auto | yes |  posix) ol_aix_threads=yes ;;
23054		esac
23055	fi
23056;;
23057esac
23058
23059if test $ol_aix_threads = yes ; then
23060	if test -z "${CC}" ; then
23061		for ac_prog in cc_r xlc_r cc
23062do
23063  # Extract the first word of "$ac_prog", so it can be a program name with args.
23064set dummy $ac_prog; ac_word=$2
23065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23066$as_echo_n "checking for $ac_word... " >&6; }
23067if ${ac_cv_prog_CC+:} false; then :
23068  $as_echo_n "(cached) " >&6
23069else
23070  if test -n "$CC"; then
23071  ac_cv_prog_CC="$CC" # Let the user override the test.
23072else
23073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23074for as_dir in $PATH
23075do
23076  IFS=$as_save_IFS
23077  test -z "$as_dir" && as_dir=.
23078    for ac_exec_ext in '' $ac_executable_extensions; do
23079  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23080    ac_cv_prog_CC="$ac_prog"
23081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23082    break 2
23083  fi
23084done
23085  done
23086IFS=$as_save_IFS
23087
23088fi
23089fi
23090CC=$ac_cv_prog_CC
23091if test -n "$CC"; then
23092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
23093$as_echo "$CC" >&6; }
23094else
23095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23096$as_echo "no" >&6; }
23097fi
23098
23099
23100  test -n "$CC" && break
23101done
23102
23103
23104		if test "$CC" = cc ; then
23105						if test $ol_with_threads != auto ; then
23106				as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
23107			else
23108				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
23109$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
23110			fi
23111			ol_with_threads=no
23112  		fi
23113	fi
23114
23115	case ${CC} in cc_r | xlc_r)
23116		ol_with_threads=posix
23117		ol_cv_pthread_create=yes
23118		;;
23119	esac
23120fi
23121
23122ol_link_threads=no
23123# OpenLDAP --with-yielding_select
23124
23125# Check whether --with-yielding_select was given.
23126if test "${with_yielding_select+set}" = set; then :
23127  withval=$with_yielding_select;
23128	ol_arg=invalid
23129	for ol_val in auto yes no manual  ; do
23130		if test "$withval" = "$ol_val" ; then
23131			ol_arg="$ol_val"
23132		fi
23133	done
23134	if test "$ol_arg" = "invalid" ; then
23135		as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
23136	fi
23137	ol_with_yielding_select="$ol_arg"
23138
23139else
23140  	ol_with_yielding_select="auto"
23141fi
23142# end --with-yielding_select
23143
23144
23145case $ol_with_threads in auto | yes | nt)
23146
23147
23148	ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
23149if test "x$ac_cv_func__beginthread" = xyes; then :
23150
23151fi
23152
23153
23154	if test $ac_cv_func__beginthread = yes ; then
23155
23156$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
23157
23158		ol_cv_nt_threads=yes
23159	fi
23160
23161
23162	if test "$ol_cv_nt_threads" = yes ; then
23163		ol_link_threads=nt
23164		ol_with_threads=found
23165		ol_with_yielding_select=yes
23166
23167
23168$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
23169
23170
23171$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
23172
23173	fi
23174
23175	if test $ol_with_threads = nt ; then
23176		as_fn_error $? "could not locate NT Threads" "$LINENO" 5
23177	fi
23178	;;
23179esac
23180
23181case $ol_with_threads in auto | yes | posix)
23182
23183	for ac_header in pthread.h
23184do :
23185  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
23186if test "x$ac_cv_header_pthread_h" = xyes; then :
23187  cat >>confdefs.h <<_ACEOF
23188#define HAVE_PTHREAD_H 1
23189_ACEOF
23190
23191fi
23192
23193done
23194
23195
23196	if test $ac_cv_header_pthread_h = yes ; then
23197		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
23198$as_echo_n "checking POSIX thread version... " >&6; }
23199if ${ol_cv_pthread_version+:} false; then :
23200  $as_echo_n "(cached) " >&6
23201else
23202
23203	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23204/* end confdefs.h.  */
23205
23206#		include <pthread.h>
23207
23208int
23209main ()
23210{
23211
23212		int i = PTHREAD_CREATE_JOINABLE;
23213
23214  ;
23215  return 0;
23216}
23217_ACEOF
23218if ac_fn_c_try_compile "$LINENO"; then :
23219
23220	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23221/* end confdefs.h.  */
23222#include <pthread.h>
23223
23224_ACEOF
23225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23226  $EGREP "pthread_detach" >/dev/null 2>&1; then :
23227  ol_cv_pthread_version=10
23228else
23229  ol_cv_pthread_version=8
23230fi
23231rm -f conftest*
23232
23233else
23234
23235	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23236/* end confdefs.h.  */
23237
23238#		include <pthread.h>
23239#		ifdef PTHREAD_CREATE_UNDETACHED
23240		draft7
23241#		endif
23242
23243_ACEOF
23244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23245  $EGREP "draft7" >/dev/null 2>&1; then :
23246  ol_cv_pthread_version=7
23247else
23248
23249	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23250/* end confdefs.h.  */
23251#include <pthread.h>
23252
23253_ACEOF
23254if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23255  $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
23256  ol_cv_pthread_version=6
23257else
23258
23259	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23260/* end confdefs.h.  */
23261
23262#		include <pthread.h>
23263#ifdef		PTHREAD_MUTEX_INITIALIZER
23264		draft5
23265#endif
23266
23267_ACEOF
23268if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23269  $EGREP "draft5" >/dev/null 2>&1; then :
23270  ol_cv_pthread_version=5
23271else
23272  ol_cv_pthread_version=4
23273fi
23274rm -f conftest*
23275
23276fi
23277rm -f conftest*
23278
23279fi
23280rm -f conftest*
23281
23282fi
23283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23284
23285fi
23286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
23287$as_echo "$ol_cv_pthread_version" >&6; }
23288
23289
23290		if test $ol_cv_pthread_version != 0 ; then
23291
23292cat >>confdefs.h <<_ACEOF
23293#define HAVE_PTHREADS $ol_cv_pthread_version
23294_ACEOF
23295
23296		else
23297			as_fn_error $? "unknown pthread version" "$LINENO" 5
23298		fi
23299
23300		# consider threads found
23301		ol_with_threads=found
23302
23303
23304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
23305$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
23306if ${ol_cv_header_linux_threads+:} false; then :
23307  $as_echo_n "(cached) " >&6
23308else
23309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23310/* end confdefs.h.  */
23311#include <pthread.h>
23312_ACEOF
23313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23314  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
23315  ol_cv_header_linux_threads=yes
23316else
23317  ol_cv_header_linux_threads=no
23318fi
23319rm -f conftest*
23320
23321
23322fi
23323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
23324$as_echo "$ol_cv_header_linux_threads" >&6; }
23325	if test $ol_cv_header_linux_threads = yes; then
23326
23327$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
23328
23329	fi
23330
23331
23332	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
23333$as_echo_n "checking for GNU Pth pthread.h... " >&6; }
23334if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
23335  $as_echo_n "(cached) " >&6
23336else
23337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23338/* end confdefs.h.  */
23339#include <pthread.h>
23340#ifdef _POSIX_THREAD_IS_GNU_PTH
23341	__gnu_pth__;
23342#endif
23343
23344_ACEOF
23345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23346  $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
23347  ol_cv_header_gnu_pth_pthread_h=yes
23348else
23349  ol_cv_header_gnu_pth_pthread_h=no
23350fi
23351rm -f conftest*
23352
23353
23354fi
23355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
23356$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
23357
23358
23359		if test $ol_cv_header_gnu_pth_pthread_h = no ; then
23360			for ac_header in sched.h
23361do :
23362  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
23363if test "x$ac_cv_header_sched_h" = xyes; then :
23364  cat >>confdefs.h <<_ACEOF
23365#define HAVE_SCHED_H 1
23366_ACEOF
23367
23368fi
23369
23370done
23371
23372		fi
23373
23374
23375				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
23376$as_echo_n "checking for pthread_create in default libraries... " >&6; }
23377if ${ol_cv_pthread_create+:} false; then :
23378  $as_echo_n "(cached) " >&6
23379else
23380
23381			if test "$cross_compiling" = yes; then :
23382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23383/* end confdefs.h.  */
23384
23385/* pthread test headers */
23386#include <pthread.h>
23387#if HAVE_PTHREADS < 7
23388#include <errno.h>
23389#endif
23390#ifndef NULL
23391#define NULL (void*)0
23392#endif
23393
23394static void *task(p)
23395	void *p;
23396{
23397	return (void *) (p == NULL);
23398}
23399
23400int
23401main ()
23402{
23403
23404	/* pthread test function */
23405#ifndef PTHREAD_CREATE_DETACHED
23406#define	PTHREAD_CREATE_DETACHED	1
23407#endif
23408	pthread_t t;
23409	int status;
23410	int detach = PTHREAD_CREATE_DETACHED;
23411
23412#if HAVE_PTHREADS > 4
23413	/* Final pthreads */
23414	pthread_attr_t attr;
23415
23416	status = pthread_attr_init(&attr);
23417	if( status ) return status;
23418
23419#if HAVE_PTHREADS < 7
23420	status = pthread_attr_setdetachstate(&attr, &detach);
23421	if( status < 0 ) status = errno;
23422#else
23423	status = pthread_attr_setdetachstate(&attr, detach);
23424#endif
23425	if( status ) return status;
23426	status = pthread_create( &t, &attr, task, NULL );
23427#if HAVE_PTHREADS < 7
23428	if( status < 0 ) status = errno;
23429#endif
23430	if( status ) return status;
23431#else
23432	/* Draft 4 pthreads */
23433	status = pthread_create( &t, pthread_attr_default, task, NULL );
23434	if( status ) return errno;
23435
23436	/* give thread a chance to complete */
23437	/* it should remain joinable and hence detachable */
23438	sleep( 1 );
23439
23440	status = pthread_detach( &t );
23441	if( status ) return errno;
23442#endif
23443
23444#ifdef HAVE_LINUX_THREADS
23445	pthread_kill_other_threads_np();
23446#endif
23447
23448	return 0;
23449
23450  ;
23451  return 0;
23452}
23453_ACEOF
23454if ac_fn_c_try_link "$LINENO"; then :
23455  ol_cv_pthread_create=yes
23456else
23457  ol_cv_pthread_create=no
23458fi
23459rm -f core conftest.err conftest.$ac_objext \
23460    conftest$ac_exeext conftest.$ac_ext
23461else
23462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23463/* end confdefs.h.  */
23464
23465
23466/* pthread test headers */
23467#include <pthread.h>
23468#if HAVE_PTHREADS < 7
23469#include <errno.h>
23470#endif
23471#ifndef NULL
23472#define NULL (void*)0
23473#endif
23474
23475static void *task(p)
23476	void *p;
23477{
23478	return (void *) (p == NULL);
23479}
23480
23481
23482int main(argc, argv)
23483	int argc;
23484	char **argv;
23485{
23486
23487	/* pthread test function */
23488#ifndef PTHREAD_CREATE_DETACHED
23489#define	PTHREAD_CREATE_DETACHED	1
23490#endif
23491	pthread_t t;
23492	int status;
23493	int detach = PTHREAD_CREATE_DETACHED;
23494
23495#if HAVE_PTHREADS > 4
23496	/* Final pthreads */
23497	pthread_attr_t attr;
23498
23499	status = pthread_attr_init(&attr);
23500	if( status ) return status;
23501
23502#if HAVE_PTHREADS < 7
23503	status = pthread_attr_setdetachstate(&attr, &detach);
23504	if( status < 0 ) status = errno;
23505#else
23506	status = pthread_attr_setdetachstate(&attr, detach);
23507#endif
23508	if( status ) return status;
23509	status = pthread_create( &t, &attr, task, NULL );
23510#if HAVE_PTHREADS < 7
23511	if( status < 0 ) status = errno;
23512#endif
23513	if( status ) return status;
23514#else
23515	/* Draft 4 pthreads */
23516	status = pthread_create( &t, pthread_attr_default, task, NULL );
23517	if( status ) return errno;
23518
23519	/* give thread a chance to complete */
23520	/* it should remain joinable and hence detachable */
23521	sleep( 1 );
23522
23523	status = pthread_detach( &t );
23524	if( status ) return errno;
23525#endif
23526
23527#ifdef HAVE_LINUX_THREADS
23528	pthread_kill_other_threads_np();
23529#endif
23530
23531	return 0;
23532
23533}
23534
23535_ACEOF
23536if ac_fn_c_try_run "$LINENO"; then :
23537  ol_cv_pthread_create=yes
23538else
23539  ol_cv_pthread_create=no
23540fi
23541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23542  conftest.$ac_objext conftest.beam conftest.$ac_ext
23543fi
23544
23545fi
23546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
23547$as_echo "$ol_cv_pthread_create" >&6; }
23548
23549		if test $ol_cv_pthread_create != no ; then
23550			ol_link_threads=posix
23551			ol_link_pthreads=""
23552		fi
23553
23554		# Pthread try link: -kthread (ol_cv_pthread_kthread)
23555if test "$ol_link_threads" = no ; then
23556	# try -kthread
23557	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
23558$as_echo_n "checking for pthread link with -kthread... " >&6; }
23559if ${ol_cv_pthread_kthread+:} false; then :
23560  $as_echo_n "(cached) " >&6
23561else
23562
23563		# save the flags
23564		ol_LIBS="$LIBS"
23565		LIBS="-kthread $LIBS"
23566
23567		if test "$cross_compiling" = yes; then :
23568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23569/* end confdefs.h.  */
23570
23571/* pthread test headers */
23572#include <pthread.h>
23573#if HAVE_PTHREADS < 7
23574#include <errno.h>
23575#endif
23576#ifndef NULL
23577#define NULL (void*)0
23578#endif
23579
23580static void *task(p)
23581	void *p;
23582{
23583	return (void *) (p == NULL);
23584}
23585
23586int
23587main ()
23588{
23589
23590	/* pthread test function */
23591#ifndef PTHREAD_CREATE_DETACHED
23592#define	PTHREAD_CREATE_DETACHED	1
23593#endif
23594	pthread_t t;
23595	int status;
23596	int detach = PTHREAD_CREATE_DETACHED;
23597
23598#if HAVE_PTHREADS > 4
23599	/* Final pthreads */
23600	pthread_attr_t attr;
23601
23602	status = pthread_attr_init(&attr);
23603	if( status ) return status;
23604
23605#if HAVE_PTHREADS < 7
23606	status = pthread_attr_setdetachstate(&attr, &detach);
23607	if( status < 0 ) status = errno;
23608#else
23609	status = pthread_attr_setdetachstate(&attr, detach);
23610#endif
23611	if( status ) return status;
23612	status = pthread_create( &t, &attr, task, NULL );
23613#if HAVE_PTHREADS < 7
23614	if( status < 0 ) status = errno;
23615#endif
23616	if( status ) return status;
23617#else
23618	/* Draft 4 pthreads */
23619	status = pthread_create( &t, pthread_attr_default, task, NULL );
23620	if( status ) return errno;
23621
23622	/* give thread a chance to complete */
23623	/* it should remain joinable and hence detachable */
23624	sleep( 1 );
23625
23626	status = pthread_detach( &t );
23627	if( status ) return errno;
23628#endif
23629
23630#ifdef HAVE_LINUX_THREADS
23631	pthread_kill_other_threads_np();
23632#endif
23633
23634	return 0;
23635
23636  ;
23637  return 0;
23638}
23639_ACEOF
23640if ac_fn_c_try_link "$LINENO"; then :
23641  ol_cv_pthread_kthread=yes
23642else
23643  ol_cv_pthread_kthread=no
23644fi
23645rm -f core conftest.err conftest.$ac_objext \
23646    conftest$ac_exeext conftest.$ac_ext
23647else
23648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23649/* end confdefs.h.  */
23650
23651
23652/* pthread test headers */
23653#include <pthread.h>
23654#if HAVE_PTHREADS < 7
23655#include <errno.h>
23656#endif
23657#ifndef NULL
23658#define NULL (void*)0
23659#endif
23660
23661static void *task(p)
23662	void *p;
23663{
23664	return (void *) (p == NULL);
23665}
23666
23667
23668int main(argc, argv)
23669	int argc;
23670	char **argv;
23671{
23672
23673	/* pthread test function */
23674#ifndef PTHREAD_CREATE_DETACHED
23675#define	PTHREAD_CREATE_DETACHED	1
23676#endif
23677	pthread_t t;
23678	int status;
23679	int detach = PTHREAD_CREATE_DETACHED;
23680
23681#if HAVE_PTHREADS > 4
23682	/* Final pthreads */
23683	pthread_attr_t attr;
23684
23685	status = pthread_attr_init(&attr);
23686	if( status ) return status;
23687
23688#if HAVE_PTHREADS < 7
23689	status = pthread_attr_setdetachstate(&attr, &detach);
23690	if( status < 0 ) status = errno;
23691#else
23692	status = pthread_attr_setdetachstate(&attr, detach);
23693#endif
23694	if( status ) return status;
23695	status = pthread_create( &t, &attr, task, NULL );
23696#if HAVE_PTHREADS < 7
23697	if( status < 0 ) status = errno;
23698#endif
23699	if( status ) return status;
23700#else
23701	/* Draft 4 pthreads */
23702	status = pthread_create( &t, pthread_attr_default, task, NULL );
23703	if( status ) return errno;
23704
23705	/* give thread a chance to complete */
23706	/* it should remain joinable and hence detachable */
23707	sleep( 1 );
23708
23709	status = pthread_detach( &t );
23710	if( status ) return errno;
23711#endif
23712
23713#ifdef HAVE_LINUX_THREADS
23714	pthread_kill_other_threads_np();
23715#endif
23716
23717	return 0;
23718
23719}
23720
23721_ACEOF
23722if ac_fn_c_try_run "$LINENO"; then :
23723  ol_cv_pthread_kthread=yes
23724else
23725  ol_cv_pthread_kthread=no
23726fi
23727rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23728  conftest.$ac_objext conftest.beam conftest.$ac_ext
23729fi
23730
23731
23732		# restore the LIBS
23733		LIBS="$ol_LIBS"
23734
23735fi
23736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
23737$as_echo "$ol_cv_pthread_kthread" >&6; }
23738
23739	if test $ol_cv_pthread_kthread = yes ; then
23740		ol_link_pthreads="-kthread"
23741		ol_link_threads=posix
23742	fi
23743fi
23744
23745		# Pthread try link: -pthread (ol_cv_pthread_pthread)
23746if test "$ol_link_threads" = no ; then
23747	# try -pthread
23748	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
23749$as_echo_n "checking for pthread link with -pthread... " >&6; }
23750if ${ol_cv_pthread_pthread+:} false; then :
23751  $as_echo_n "(cached) " >&6
23752else
23753
23754		# save the flags
23755		ol_LIBS="$LIBS"
23756		LIBS="-pthread $LIBS"
23757
23758		if test "$cross_compiling" = yes; then :
23759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23760/* end confdefs.h.  */
23761
23762/* pthread test headers */
23763#include <pthread.h>
23764#if HAVE_PTHREADS < 7
23765#include <errno.h>
23766#endif
23767#ifndef NULL
23768#define NULL (void*)0
23769#endif
23770
23771static void *task(p)
23772	void *p;
23773{
23774	return (void *) (p == NULL);
23775}
23776
23777int
23778main ()
23779{
23780
23781	/* pthread test function */
23782#ifndef PTHREAD_CREATE_DETACHED
23783#define	PTHREAD_CREATE_DETACHED	1
23784#endif
23785	pthread_t t;
23786	int status;
23787	int detach = PTHREAD_CREATE_DETACHED;
23788
23789#if HAVE_PTHREADS > 4
23790	/* Final pthreads */
23791	pthread_attr_t attr;
23792
23793	status = pthread_attr_init(&attr);
23794	if( status ) return status;
23795
23796#if HAVE_PTHREADS < 7
23797	status = pthread_attr_setdetachstate(&attr, &detach);
23798	if( status < 0 ) status = errno;
23799#else
23800	status = pthread_attr_setdetachstate(&attr, detach);
23801#endif
23802	if( status ) return status;
23803	status = pthread_create( &t, &attr, task, NULL );
23804#if HAVE_PTHREADS < 7
23805	if( status < 0 ) status = errno;
23806#endif
23807	if( status ) return status;
23808#else
23809	/* Draft 4 pthreads */
23810	status = pthread_create( &t, pthread_attr_default, task, NULL );
23811	if( status ) return errno;
23812
23813	/* give thread a chance to complete */
23814	/* it should remain joinable and hence detachable */
23815	sleep( 1 );
23816
23817	status = pthread_detach( &t );
23818	if( status ) return errno;
23819#endif
23820
23821#ifdef HAVE_LINUX_THREADS
23822	pthread_kill_other_threads_np();
23823#endif
23824
23825	return 0;
23826
23827  ;
23828  return 0;
23829}
23830_ACEOF
23831if ac_fn_c_try_link "$LINENO"; then :
23832  ol_cv_pthread_pthread=yes
23833else
23834  ol_cv_pthread_pthread=no
23835fi
23836rm -f core conftest.err conftest.$ac_objext \
23837    conftest$ac_exeext conftest.$ac_ext
23838else
23839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23840/* end confdefs.h.  */
23841
23842
23843/* pthread test headers */
23844#include <pthread.h>
23845#if HAVE_PTHREADS < 7
23846#include <errno.h>
23847#endif
23848#ifndef NULL
23849#define NULL (void*)0
23850#endif
23851
23852static void *task(p)
23853	void *p;
23854{
23855	return (void *) (p == NULL);
23856}
23857
23858
23859int main(argc, argv)
23860	int argc;
23861	char **argv;
23862{
23863
23864	/* pthread test function */
23865#ifndef PTHREAD_CREATE_DETACHED
23866#define	PTHREAD_CREATE_DETACHED	1
23867#endif
23868	pthread_t t;
23869	int status;
23870	int detach = PTHREAD_CREATE_DETACHED;
23871
23872#if HAVE_PTHREADS > 4
23873	/* Final pthreads */
23874	pthread_attr_t attr;
23875
23876	status = pthread_attr_init(&attr);
23877	if( status ) return status;
23878
23879#if HAVE_PTHREADS < 7
23880	status = pthread_attr_setdetachstate(&attr, &detach);
23881	if( status < 0 ) status = errno;
23882#else
23883	status = pthread_attr_setdetachstate(&attr, detach);
23884#endif
23885	if( status ) return status;
23886	status = pthread_create( &t, &attr, task, NULL );
23887#if HAVE_PTHREADS < 7
23888	if( status < 0 ) status = errno;
23889#endif
23890	if( status ) return status;
23891#else
23892	/* Draft 4 pthreads */
23893	status = pthread_create( &t, pthread_attr_default, task, NULL );
23894	if( status ) return errno;
23895
23896	/* give thread a chance to complete */
23897	/* it should remain joinable and hence detachable */
23898	sleep( 1 );
23899
23900	status = pthread_detach( &t );
23901	if( status ) return errno;
23902#endif
23903
23904#ifdef HAVE_LINUX_THREADS
23905	pthread_kill_other_threads_np();
23906#endif
23907
23908	return 0;
23909
23910}
23911
23912_ACEOF
23913if ac_fn_c_try_run "$LINENO"; then :
23914  ol_cv_pthread_pthread=yes
23915else
23916  ol_cv_pthread_pthread=no
23917fi
23918rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23919  conftest.$ac_objext conftest.beam conftest.$ac_ext
23920fi
23921
23922
23923		# restore the LIBS
23924		LIBS="$ol_LIBS"
23925
23926fi
23927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
23928$as_echo "$ol_cv_pthread_pthread" >&6; }
23929
23930	if test $ol_cv_pthread_pthread = yes ; then
23931		ol_link_pthreads="-pthread"
23932		ol_link_threads=posix
23933	fi
23934fi
23935
23936		# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
23937if test "$ol_link_threads" = no ; then
23938	# try -pthreads
23939	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
23940$as_echo_n "checking for pthread link with -pthreads... " >&6; }
23941if ${ol_cv_pthread_pthreads+:} false; then :
23942  $as_echo_n "(cached) " >&6
23943else
23944
23945		# save the flags
23946		ol_LIBS="$LIBS"
23947		LIBS="-pthreads $LIBS"
23948
23949		if test "$cross_compiling" = yes; then :
23950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23951/* end confdefs.h.  */
23952
23953/* pthread test headers */
23954#include <pthread.h>
23955#if HAVE_PTHREADS < 7
23956#include <errno.h>
23957#endif
23958#ifndef NULL
23959#define NULL (void*)0
23960#endif
23961
23962static void *task(p)
23963	void *p;
23964{
23965	return (void *) (p == NULL);
23966}
23967
23968int
23969main ()
23970{
23971
23972	/* pthread test function */
23973#ifndef PTHREAD_CREATE_DETACHED
23974#define	PTHREAD_CREATE_DETACHED	1
23975#endif
23976	pthread_t t;
23977	int status;
23978	int detach = PTHREAD_CREATE_DETACHED;
23979
23980#if HAVE_PTHREADS > 4
23981	/* Final pthreads */
23982	pthread_attr_t attr;
23983
23984	status = pthread_attr_init(&attr);
23985	if( status ) return status;
23986
23987#if HAVE_PTHREADS < 7
23988	status = pthread_attr_setdetachstate(&attr, &detach);
23989	if( status < 0 ) status = errno;
23990#else
23991	status = pthread_attr_setdetachstate(&attr, detach);
23992#endif
23993	if( status ) return status;
23994	status = pthread_create( &t, &attr, task, NULL );
23995#if HAVE_PTHREADS < 7
23996	if( status < 0 ) status = errno;
23997#endif
23998	if( status ) return status;
23999#else
24000	/* Draft 4 pthreads */
24001	status = pthread_create( &t, pthread_attr_default, task, NULL );
24002	if( status ) return errno;
24003
24004	/* give thread a chance to complete */
24005	/* it should remain joinable and hence detachable */
24006	sleep( 1 );
24007
24008	status = pthread_detach( &t );
24009	if( status ) return errno;
24010#endif
24011
24012#ifdef HAVE_LINUX_THREADS
24013	pthread_kill_other_threads_np();
24014#endif
24015
24016	return 0;
24017
24018  ;
24019  return 0;
24020}
24021_ACEOF
24022if ac_fn_c_try_link "$LINENO"; then :
24023  ol_cv_pthread_pthreads=yes
24024else
24025  ol_cv_pthread_pthreads=no
24026fi
24027rm -f core conftest.err conftest.$ac_objext \
24028    conftest$ac_exeext conftest.$ac_ext
24029else
24030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24031/* end confdefs.h.  */
24032
24033
24034/* pthread test headers */
24035#include <pthread.h>
24036#if HAVE_PTHREADS < 7
24037#include <errno.h>
24038#endif
24039#ifndef NULL
24040#define NULL (void*)0
24041#endif
24042
24043static void *task(p)
24044	void *p;
24045{
24046	return (void *) (p == NULL);
24047}
24048
24049
24050int main(argc, argv)
24051	int argc;
24052	char **argv;
24053{
24054
24055	/* pthread test function */
24056#ifndef PTHREAD_CREATE_DETACHED
24057#define	PTHREAD_CREATE_DETACHED	1
24058#endif
24059	pthread_t t;
24060	int status;
24061	int detach = PTHREAD_CREATE_DETACHED;
24062
24063#if HAVE_PTHREADS > 4
24064	/* Final pthreads */
24065	pthread_attr_t attr;
24066
24067	status = pthread_attr_init(&attr);
24068	if( status ) return status;
24069
24070#if HAVE_PTHREADS < 7
24071	status = pthread_attr_setdetachstate(&attr, &detach);
24072	if( status < 0 ) status = errno;
24073#else
24074	status = pthread_attr_setdetachstate(&attr, detach);
24075#endif
24076	if( status ) return status;
24077	status = pthread_create( &t, &attr, task, NULL );
24078#if HAVE_PTHREADS < 7
24079	if( status < 0 ) status = errno;
24080#endif
24081	if( status ) return status;
24082#else
24083	/* Draft 4 pthreads */
24084	status = pthread_create( &t, pthread_attr_default, task, NULL );
24085	if( status ) return errno;
24086
24087	/* give thread a chance to complete */
24088	/* it should remain joinable and hence detachable */
24089	sleep( 1 );
24090
24091	status = pthread_detach( &t );
24092	if( status ) return errno;
24093#endif
24094
24095#ifdef HAVE_LINUX_THREADS
24096	pthread_kill_other_threads_np();
24097#endif
24098
24099	return 0;
24100
24101}
24102
24103_ACEOF
24104if ac_fn_c_try_run "$LINENO"; then :
24105  ol_cv_pthread_pthreads=yes
24106else
24107  ol_cv_pthread_pthreads=no
24108fi
24109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24110  conftest.$ac_objext conftest.beam conftest.$ac_ext
24111fi
24112
24113
24114		# restore the LIBS
24115		LIBS="$ol_LIBS"
24116
24117fi
24118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
24119$as_echo "$ol_cv_pthread_pthreads" >&6; }
24120
24121	if test $ol_cv_pthread_pthreads = yes ; then
24122		ol_link_pthreads="-pthreads"
24123		ol_link_threads=posix
24124	fi
24125fi
24126
24127		# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
24128if test "$ol_link_threads" = no ; then
24129	# try -mthreads
24130	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
24131$as_echo_n "checking for pthread link with -mthreads... " >&6; }
24132if ${ol_cv_pthread_mthreads+:} false; then :
24133  $as_echo_n "(cached) " >&6
24134else
24135
24136		# save the flags
24137		ol_LIBS="$LIBS"
24138		LIBS="-mthreads $LIBS"
24139
24140		if test "$cross_compiling" = yes; then :
24141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24142/* end confdefs.h.  */
24143
24144/* pthread test headers */
24145#include <pthread.h>
24146#if HAVE_PTHREADS < 7
24147#include <errno.h>
24148#endif
24149#ifndef NULL
24150#define NULL (void*)0
24151#endif
24152
24153static void *task(p)
24154	void *p;
24155{
24156	return (void *) (p == NULL);
24157}
24158
24159int
24160main ()
24161{
24162
24163	/* pthread test function */
24164#ifndef PTHREAD_CREATE_DETACHED
24165#define	PTHREAD_CREATE_DETACHED	1
24166#endif
24167	pthread_t t;
24168	int status;
24169	int detach = PTHREAD_CREATE_DETACHED;
24170
24171#if HAVE_PTHREADS > 4
24172	/* Final pthreads */
24173	pthread_attr_t attr;
24174
24175	status = pthread_attr_init(&attr);
24176	if( status ) return status;
24177
24178#if HAVE_PTHREADS < 7
24179	status = pthread_attr_setdetachstate(&attr, &detach);
24180	if( status < 0 ) status = errno;
24181#else
24182	status = pthread_attr_setdetachstate(&attr, detach);
24183#endif
24184	if( status ) return status;
24185	status = pthread_create( &t, &attr, task, NULL );
24186#if HAVE_PTHREADS < 7
24187	if( status < 0 ) status = errno;
24188#endif
24189	if( status ) return status;
24190#else
24191	/* Draft 4 pthreads */
24192	status = pthread_create( &t, pthread_attr_default, task, NULL );
24193	if( status ) return errno;
24194
24195	/* give thread a chance to complete */
24196	/* it should remain joinable and hence detachable */
24197	sleep( 1 );
24198
24199	status = pthread_detach( &t );
24200	if( status ) return errno;
24201#endif
24202
24203#ifdef HAVE_LINUX_THREADS
24204	pthread_kill_other_threads_np();
24205#endif
24206
24207	return 0;
24208
24209  ;
24210  return 0;
24211}
24212_ACEOF
24213if ac_fn_c_try_link "$LINENO"; then :
24214  ol_cv_pthread_mthreads=yes
24215else
24216  ol_cv_pthread_mthreads=no
24217fi
24218rm -f core conftest.err conftest.$ac_objext \
24219    conftest$ac_exeext conftest.$ac_ext
24220else
24221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24222/* end confdefs.h.  */
24223
24224
24225/* pthread test headers */
24226#include <pthread.h>
24227#if HAVE_PTHREADS < 7
24228#include <errno.h>
24229#endif
24230#ifndef NULL
24231#define NULL (void*)0
24232#endif
24233
24234static void *task(p)
24235	void *p;
24236{
24237	return (void *) (p == NULL);
24238}
24239
24240
24241int main(argc, argv)
24242	int argc;
24243	char **argv;
24244{
24245
24246	/* pthread test function */
24247#ifndef PTHREAD_CREATE_DETACHED
24248#define	PTHREAD_CREATE_DETACHED	1
24249#endif
24250	pthread_t t;
24251	int status;
24252	int detach = PTHREAD_CREATE_DETACHED;
24253
24254#if HAVE_PTHREADS > 4
24255	/* Final pthreads */
24256	pthread_attr_t attr;
24257
24258	status = pthread_attr_init(&attr);
24259	if( status ) return status;
24260
24261#if HAVE_PTHREADS < 7
24262	status = pthread_attr_setdetachstate(&attr, &detach);
24263	if( status < 0 ) status = errno;
24264#else
24265	status = pthread_attr_setdetachstate(&attr, detach);
24266#endif
24267	if( status ) return status;
24268	status = pthread_create( &t, &attr, task, NULL );
24269#if HAVE_PTHREADS < 7
24270	if( status < 0 ) status = errno;
24271#endif
24272	if( status ) return status;
24273#else
24274	/* Draft 4 pthreads */
24275	status = pthread_create( &t, pthread_attr_default, task, NULL );
24276	if( status ) return errno;
24277
24278	/* give thread a chance to complete */
24279	/* it should remain joinable and hence detachable */
24280	sleep( 1 );
24281
24282	status = pthread_detach( &t );
24283	if( status ) return errno;
24284#endif
24285
24286#ifdef HAVE_LINUX_THREADS
24287	pthread_kill_other_threads_np();
24288#endif
24289
24290	return 0;
24291
24292}
24293
24294_ACEOF
24295if ac_fn_c_try_run "$LINENO"; then :
24296  ol_cv_pthread_mthreads=yes
24297else
24298  ol_cv_pthread_mthreads=no
24299fi
24300rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24301  conftest.$ac_objext conftest.beam conftest.$ac_ext
24302fi
24303
24304
24305		# restore the LIBS
24306		LIBS="$ol_LIBS"
24307
24308fi
24309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
24310$as_echo "$ol_cv_pthread_mthreads" >&6; }
24311
24312	if test $ol_cv_pthread_mthreads = yes ; then
24313		ol_link_pthreads="-mthreads"
24314		ol_link_threads=posix
24315	fi
24316fi
24317
24318		# Pthread try link: -thread (ol_cv_pthread_thread)
24319if test "$ol_link_threads" = no ; then
24320	# try -thread
24321	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
24322$as_echo_n "checking for pthread link with -thread... " >&6; }
24323if ${ol_cv_pthread_thread+:} false; then :
24324  $as_echo_n "(cached) " >&6
24325else
24326
24327		# save the flags
24328		ol_LIBS="$LIBS"
24329		LIBS="-thread $LIBS"
24330
24331		if test "$cross_compiling" = yes; then :
24332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24333/* end confdefs.h.  */
24334
24335/* pthread test headers */
24336#include <pthread.h>
24337#if HAVE_PTHREADS < 7
24338#include <errno.h>
24339#endif
24340#ifndef NULL
24341#define NULL (void*)0
24342#endif
24343
24344static void *task(p)
24345	void *p;
24346{
24347	return (void *) (p == NULL);
24348}
24349
24350int
24351main ()
24352{
24353
24354	/* pthread test function */
24355#ifndef PTHREAD_CREATE_DETACHED
24356#define	PTHREAD_CREATE_DETACHED	1
24357#endif
24358	pthread_t t;
24359	int status;
24360	int detach = PTHREAD_CREATE_DETACHED;
24361
24362#if HAVE_PTHREADS > 4
24363	/* Final pthreads */
24364	pthread_attr_t attr;
24365
24366	status = pthread_attr_init(&attr);
24367	if( status ) return status;
24368
24369#if HAVE_PTHREADS < 7
24370	status = pthread_attr_setdetachstate(&attr, &detach);
24371	if( status < 0 ) status = errno;
24372#else
24373	status = pthread_attr_setdetachstate(&attr, detach);
24374#endif
24375	if( status ) return status;
24376	status = pthread_create( &t, &attr, task, NULL );
24377#if HAVE_PTHREADS < 7
24378	if( status < 0 ) status = errno;
24379#endif
24380	if( status ) return status;
24381#else
24382	/* Draft 4 pthreads */
24383	status = pthread_create( &t, pthread_attr_default, task, NULL );
24384	if( status ) return errno;
24385
24386	/* give thread a chance to complete */
24387	/* it should remain joinable and hence detachable */
24388	sleep( 1 );
24389
24390	status = pthread_detach( &t );
24391	if( status ) return errno;
24392#endif
24393
24394#ifdef HAVE_LINUX_THREADS
24395	pthread_kill_other_threads_np();
24396#endif
24397
24398	return 0;
24399
24400  ;
24401  return 0;
24402}
24403_ACEOF
24404if ac_fn_c_try_link "$LINENO"; then :
24405  ol_cv_pthread_thread=yes
24406else
24407  ol_cv_pthread_thread=no
24408fi
24409rm -f core conftest.err conftest.$ac_objext \
24410    conftest$ac_exeext conftest.$ac_ext
24411else
24412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24413/* end confdefs.h.  */
24414
24415
24416/* pthread test headers */
24417#include <pthread.h>
24418#if HAVE_PTHREADS < 7
24419#include <errno.h>
24420#endif
24421#ifndef NULL
24422#define NULL (void*)0
24423#endif
24424
24425static void *task(p)
24426	void *p;
24427{
24428	return (void *) (p == NULL);
24429}
24430
24431
24432int main(argc, argv)
24433	int argc;
24434	char **argv;
24435{
24436
24437	/* pthread test function */
24438#ifndef PTHREAD_CREATE_DETACHED
24439#define	PTHREAD_CREATE_DETACHED	1
24440#endif
24441	pthread_t t;
24442	int status;
24443	int detach = PTHREAD_CREATE_DETACHED;
24444
24445#if HAVE_PTHREADS > 4
24446	/* Final pthreads */
24447	pthread_attr_t attr;
24448
24449	status = pthread_attr_init(&attr);
24450	if( status ) return status;
24451
24452#if HAVE_PTHREADS < 7
24453	status = pthread_attr_setdetachstate(&attr, &detach);
24454	if( status < 0 ) status = errno;
24455#else
24456	status = pthread_attr_setdetachstate(&attr, detach);
24457#endif
24458	if( status ) return status;
24459	status = pthread_create( &t, &attr, task, NULL );
24460#if HAVE_PTHREADS < 7
24461	if( status < 0 ) status = errno;
24462#endif
24463	if( status ) return status;
24464#else
24465	/* Draft 4 pthreads */
24466	status = pthread_create( &t, pthread_attr_default, task, NULL );
24467	if( status ) return errno;
24468
24469	/* give thread a chance to complete */
24470	/* it should remain joinable and hence detachable */
24471	sleep( 1 );
24472
24473	status = pthread_detach( &t );
24474	if( status ) return errno;
24475#endif
24476
24477#ifdef HAVE_LINUX_THREADS
24478	pthread_kill_other_threads_np();
24479#endif
24480
24481	return 0;
24482
24483}
24484
24485_ACEOF
24486if ac_fn_c_try_run "$LINENO"; then :
24487  ol_cv_pthread_thread=yes
24488else
24489  ol_cv_pthread_thread=no
24490fi
24491rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24492  conftest.$ac_objext conftest.beam conftest.$ac_ext
24493fi
24494
24495
24496		# restore the LIBS
24497		LIBS="$ol_LIBS"
24498
24499fi
24500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
24501$as_echo "$ol_cv_pthread_thread" >&6; }
24502
24503	if test $ol_cv_pthread_thread = yes ; then
24504		ol_link_pthreads="-thread"
24505		ol_link_threads=posix
24506	fi
24507fi
24508
24509
24510		# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
24511if test "$ol_link_threads" = no ; then
24512	# try -lpthread -lmach -lexc -lc_r
24513	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
24514$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
24515if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
24516  $as_echo_n "(cached) " >&6
24517else
24518
24519		# save the flags
24520		ol_LIBS="$LIBS"
24521		LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
24522
24523		if test "$cross_compiling" = yes; then :
24524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24525/* end confdefs.h.  */
24526
24527/* pthread test headers */
24528#include <pthread.h>
24529#if HAVE_PTHREADS < 7
24530#include <errno.h>
24531#endif
24532#ifndef NULL
24533#define NULL (void*)0
24534#endif
24535
24536static void *task(p)
24537	void *p;
24538{
24539	return (void *) (p == NULL);
24540}
24541
24542int
24543main ()
24544{
24545
24546	/* pthread test function */
24547#ifndef PTHREAD_CREATE_DETACHED
24548#define	PTHREAD_CREATE_DETACHED	1
24549#endif
24550	pthread_t t;
24551	int status;
24552	int detach = PTHREAD_CREATE_DETACHED;
24553
24554#if HAVE_PTHREADS > 4
24555	/* Final pthreads */
24556	pthread_attr_t attr;
24557
24558	status = pthread_attr_init(&attr);
24559	if( status ) return status;
24560
24561#if HAVE_PTHREADS < 7
24562	status = pthread_attr_setdetachstate(&attr, &detach);
24563	if( status < 0 ) status = errno;
24564#else
24565	status = pthread_attr_setdetachstate(&attr, detach);
24566#endif
24567	if( status ) return status;
24568	status = pthread_create( &t, &attr, task, NULL );
24569#if HAVE_PTHREADS < 7
24570	if( status < 0 ) status = errno;
24571#endif
24572	if( status ) return status;
24573#else
24574	/* Draft 4 pthreads */
24575	status = pthread_create( &t, pthread_attr_default, task, NULL );
24576	if( status ) return errno;
24577
24578	/* give thread a chance to complete */
24579	/* it should remain joinable and hence detachable */
24580	sleep( 1 );
24581
24582	status = pthread_detach( &t );
24583	if( status ) return errno;
24584#endif
24585
24586#ifdef HAVE_LINUX_THREADS
24587	pthread_kill_other_threads_np();
24588#endif
24589
24590	return 0;
24591
24592  ;
24593  return 0;
24594}
24595_ACEOF
24596if ac_fn_c_try_link "$LINENO"; then :
24597  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
24598else
24599  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
24600fi
24601rm -f core conftest.err conftest.$ac_objext \
24602    conftest$ac_exeext conftest.$ac_ext
24603else
24604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24605/* end confdefs.h.  */
24606
24607
24608/* pthread test headers */
24609#include <pthread.h>
24610#if HAVE_PTHREADS < 7
24611#include <errno.h>
24612#endif
24613#ifndef NULL
24614#define NULL (void*)0
24615#endif
24616
24617static void *task(p)
24618	void *p;
24619{
24620	return (void *) (p == NULL);
24621}
24622
24623
24624int main(argc, argv)
24625	int argc;
24626	char **argv;
24627{
24628
24629	/* pthread test function */
24630#ifndef PTHREAD_CREATE_DETACHED
24631#define	PTHREAD_CREATE_DETACHED	1
24632#endif
24633	pthread_t t;
24634	int status;
24635	int detach = PTHREAD_CREATE_DETACHED;
24636
24637#if HAVE_PTHREADS > 4
24638	/* Final pthreads */
24639	pthread_attr_t attr;
24640
24641	status = pthread_attr_init(&attr);
24642	if( status ) return status;
24643
24644#if HAVE_PTHREADS < 7
24645	status = pthread_attr_setdetachstate(&attr, &detach);
24646	if( status < 0 ) status = errno;
24647#else
24648	status = pthread_attr_setdetachstate(&attr, detach);
24649#endif
24650	if( status ) return status;
24651	status = pthread_create( &t, &attr, task, NULL );
24652#if HAVE_PTHREADS < 7
24653	if( status < 0 ) status = errno;
24654#endif
24655	if( status ) return status;
24656#else
24657	/* Draft 4 pthreads */
24658	status = pthread_create( &t, pthread_attr_default, task, NULL );
24659	if( status ) return errno;
24660
24661	/* give thread a chance to complete */
24662	/* it should remain joinable and hence detachable */
24663	sleep( 1 );
24664
24665	status = pthread_detach( &t );
24666	if( status ) return errno;
24667#endif
24668
24669#ifdef HAVE_LINUX_THREADS
24670	pthread_kill_other_threads_np();
24671#endif
24672
24673	return 0;
24674
24675}
24676
24677_ACEOF
24678if ac_fn_c_try_run "$LINENO"; then :
24679  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
24680else
24681  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
24682fi
24683rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24684  conftest.$ac_objext conftest.beam conftest.$ac_ext
24685fi
24686
24687
24688		# restore the LIBS
24689		LIBS="$ol_LIBS"
24690
24691fi
24692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
24693$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
24694
24695	if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
24696		ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
24697		ol_link_threads=posix
24698	fi
24699fi
24700
24701		# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
24702if test "$ol_link_threads" = no ; then
24703	# try -lpthread -lmach -lexc
24704	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
24705$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
24706if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
24707  $as_echo_n "(cached) " >&6
24708else
24709
24710		# save the flags
24711		ol_LIBS="$LIBS"
24712		LIBS="-lpthread -lmach -lexc $LIBS"
24713
24714		if test "$cross_compiling" = yes; then :
24715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24716/* end confdefs.h.  */
24717
24718/* pthread test headers */
24719#include <pthread.h>
24720#if HAVE_PTHREADS < 7
24721#include <errno.h>
24722#endif
24723#ifndef NULL
24724#define NULL (void*)0
24725#endif
24726
24727static void *task(p)
24728	void *p;
24729{
24730	return (void *) (p == NULL);
24731}
24732
24733int
24734main ()
24735{
24736
24737	/* pthread test function */
24738#ifndef PTHREAD_CREATE_DETACHED
24739#define	PTHREAD_CREATE_DETACHED	1
24740#endif
24741	pthread_t t;
24742	int status;
24743	int detach = PTHREAD_CREATE_DETACHED;
24744
24745#if HAVE_PTHREADS > 4
24746	/* Final pthreads */
24747	pthread_attr_t attr;
24748
24749	status = pthread_attr_init(&attr);
24750	if( status ) return status;
24751
24752#if HAVE_PTHREADS < 7
24753	status = pthread_attr_setdetachstate(&attr, &detach);
24754	if( status < 0 ) status = errno;
24755#else
24756	status = pthread_attr_setdetachstate(&attr, detach);
24757#endif
24758	if( status ) return status;
24759	status = pthread_create( &t, &attr, task, NULL );
24760#if HAVE_PTHREADS < 7
24761	if( status < 0 ) status = errno;
24762#endif
24763	if( status ) return status;
24764#else
24765	/* Draft 4 pthreads */
24766	status = pthread_create( &t, pthread_attr_default, task, NULL );
24767	if( status ) return errno;
24768
24769	/* give thread a chance to complete */
24770	/* it should remain joinable and hence detachable */
24771	sleep( 1 );
24772
24773	status = pthread_detach( &t );
24774	if( status ) return errno;
24775#endif
24776
24777#ifdef HAVE_LINUX_THREADS
24778	pthread_kill_other_threads_np();
24779#endif
24780
24781	return 0;
24782
24783  ;
24784  return 0;
24785}
24786_ACEOF
24787if ac_fn_c_try_link "$LINENO"; then :
24788  ol_cv_pthread_lpthread_lmach_lexc=yes
24789else
24790  ol_cv_pthread_lpthread_lmach_lexc=no
24791fi
24792rm -f core conftest.err conftest.$ac_objext \
24793    conftest$ac_exeext conftest.$ac_ext
24794else
24795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24796/* end confdefs.h.  */
24797
24798
24799/* pthread test headers */
24800#include <pthread.h>
24801#if HAVE_PTHREADS < 7
24802#include <errno.h>
24803#endif
24804#ifndef NULL
24805#define NULL (void*)0
24806#endif
24807
24808static void *task(p)
24809	void *p;
24810{
24811	return (void *) (p == NULL);
24812}
24813
24814
24815int main(argc, argv)
24816	int argc;
24817	char **argv;
24818{
24819
24820	/* pthread test function */
24821#ifndef PTHREAD_CREATE_DETACHED
24822#define	PTHREAD_CREATE_DETACHED	1
24823#endif
24824	pthread_t t;
24825	int status;
24826	int detach = PTHREAD_CREATE_DETACHED;
24827
24828#if HAVE_PTHREADS > 4
24829	/* Final pthreads */
24830	pthread_attr_t attr;
24831
24832	status = pthread_attr_init(&attr);
24833	if( status ) return status;
24834
24835#if HAVE_PTHREADS < 7
24836	status = pthread_attr_setdetachstate(&attr, &detach);
24837	if( status < 0 ) status = errno;
24838#else
24839	status = pthread_attr_setdetachstate(&attr, detach);
24840#endif
24841	if( status ) return status;
24842	status = pthread_create( &t, &attr, task, NULL );
24843#if HAVE_PTHREADS < 7
24844	if( status < 0 ) status = errno;
24845#endif
24846	if( status ) return status;
24847#else
24848	/* Draft 4 pthreads */
24849	status = pthread_create( &t, pthread_attr_default, task, NULL );
24850	if( status ) return errno;
24851
24852	/* give thread a chance to complete */
24853	/* it should remain joinable and hence detachable */
24854	sleep( 1 );
24855
24856	status = pthread_detach( &t );
24857	if( status ) return errno;
24858#endif
24859
24860#ifdef HAVE_LINUX_THREADS
24861	pthread_kill_other_threads_np();
24862#endif
24863
24864	return 0;
24865
24866}
24867
24868_ACEOF
24869if ac_fn_c_try_run "$LINENO"; then :
24870  ol_cv_pthread_lpthread_lmach_lexc=yes
24871else
24872  ol_cv_pthread_lpthread_lmach_lexc=no
24873fi
24874rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24875  conftest.$ac_objext conftest.beam conftest.$ac_ext
24876fi
24877
24878
24879		# restore the LIBS
24880		LIBS="$ol_LIBS"
24881
24882fi
24883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
24884$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
24885
24886	if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
24887		ol_link_pthreads="-lpthread -lmach -lexc"
24888		ol_link_threads=posix
24889	fi
24890fi
24891
24892
24893		# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
24894if test "$ol_link_threads" = no ; then
24895	# try -lpthread -Wl,-woff,85
24896	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
24897$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
24898if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
24899  $as_echo_n "(cached) " >&6
24900else
24901
24902		# save the flags
24903		ol_LIBS="$LIBS"
24904		LIBS="-lpthread -Wl,-woff,85 $LIBS"
24905
24906		if test "$cross_compiling" = yes; then :
24907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24908/* end confdefs.h.  */
24909
24910/* pthread test headers */
24911#include <pthread.h>
24912#if HAVE_PTHREADS < 7
24913#include <errno.h>
24914#endif
24915#ifndef NULL
24916#define NULL (void*)0
24917#endif
24918
24919static void *task(p)
24920	void *p;
24921{
24922	return (void *) (p == NULL);
24923}
24924
24925int
24926main ()
24927{
24928
24929	/* pthread test function */
24930#ifndef PTHREAD_CREATE_DETACHED
24931#define	PTHREAD_CREATE_DETACHED	1
24932#endif
24933	pthread_t t;
24934	int status;
24935	int detach = PTHREAD_CREATE_DETACHED;
24936
24937#if HAVE_PTHREADS > 4
24938	/* Final pthreads */
24939	pthread_attr_t attr;
24940
24941	status = pthread_attr_init(&attr);
24942	if( status ) return status;
24943
24944#if HAVE_PTHREADS < 7
24945	status = pthread_attr_setdetachstate(&attr, &detach);
24946	if( status < 0 ) status = errno;
24947#else
24948	status = pthread_attr_setdetachstate(&attr, detach);
24949#endif
24950	if( status ) return status;
24951	status = pthread_create( &t, &attr, task, NULL );
24952#if HAVE_PTHREADS < 7
24953	if( status < 0 ) status = errno;
24954#endif
24955	if( status ) return status;
24956#else
24957	/* Draft 4 pthreads */
24958	status = pthread_create( &t, pthread_attr_default, task, NULL );
24959	if( status ) return errno;
24960
24961	/* give thread a chance to complete */
24962	/* it should remain joinable and hence detachable */
24963	sleep( 1 );
24964
24965	status = pthread_detach( &t );
24966	if( status ) return errno;
24967#endif
24968
24969#ifdef HAVE_LINUX_THREADS
24970	pthread_kill_other_threads_np();
24971#endif
24972
24973	return 0;
24974
24975  ;
24976  return 0;
24977}
24978_ACEOF
24979if ac_fn_c_try_link "$LINENO"; then :
24980  ol_cv_pthread_lib_lpthread_woff=yes
24981else
24982  ol_cv_pthread_lib_lpthread_woff=no
24983fi
24984rm -f core conftest.err conftest.$ac_objext \
24985    conftest$ac_exeext conftest.$ac_ext
24986else
24987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24988/* end confdefs.h.  */
24989
24990
24991/* pthread test headers */
24992#include <pthread.h>
24993#if HAVE_PTHREADS < 7
24994#include <errno.h>
24995#endif
24996#ifndef NULL
24997#define NULL (void*)0
24998#endif
24999
25000static void *task(p)
25001	void *p;
25002{
25003	return (void *) (p == NULL);
25004}
25005
25006
25007int main(argc, argv)
25008	int argc;
25009	char **argv;
25010{
25011
25012	/* pthread test function */
25013#ifndef PTHREAD_CREATE_DETACHED
25014#define	PTHREAD_CREATE_DETACHED	1
25015#endif
25016	pthread_t t;
25017	int status;
25018	int detach = PTHREAD_CREATE_DETACHED;
25019
25020#if HAVE_PTHREADS > 4
25021	/* Final pthreads */
25022	pthread_attr_t attr;
25023
25024	status = pthread_attr_init(&attr);
25025	if( status ) return status;
25026
25027#if HAVE_PTHREADS < 7
25028	status = pthread_attr_setdetachstate(&attr, &detach);
25029	if( status < 0 ) status = errno;
25030#else
25031	status = pthread_attr_setdetachstate(&attr, detach);
25032#endif
25033	if( status ) return status;
25034	status = pthread_create( &t, &attr, task, NULL );
25035#if HAVE_PTHREADS < 7
25036	if( status < 0 ) status = errno;
25037#endif
25038	if( status ) return status;
25039#else
25040	/* Draft 4 pthreads */
25041	status = pthread_create( &t, pthread_attr_default, task, NULL );
25042	if( status ) return errno;
25043
25044	/* give thread a chance to complete */
25045	/* it should remain joinable and hence detachable */
25046	sleep( 1 );
25047
25048	status = pthread_detach( &t );
25049	if( status ) return errno;
25050#endif
25051
25052#ifdef HAVE_LINUX_THREADS
25053	pthread_kill_other_threads_np();
25054#endif
25055
25056	return 0;
25057
25058}
25059
25060_ACEOF
25061if ac_fn_c_try_run "$LINENO"; then :
25062  ol_cv_pthread_lib_lpthread_woff=yes
25063else
25064  ol_cv_pthread_lib_lpthread_woff=no
25065fi
25066rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25067  conftest.$ac_objext conftest.beam conftest.$ac_ext
25068fi
25069
25070
25071		# restore the LIBS
25072		LIBS="$ol_LIBS"
25073
25074fi
25075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
25076$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
25077
25078	if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
25079		ol_link_pthreads="-lpthread -Wl,-woff,85"
25080		ol_link_threads=posix
25081	fi
25082fi
25083
25084
25085		# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
25086if test "$ol_link_threads" = no ; then
25087	# try -lpthread
25088	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
25089$as_echo_n "checking for pthread link with -lpthread... " >&6; }
25090if ${ol_cv_pthread_lpthread+:} false; then :
25091  $as_echo_n "(cached) " >&6
25092else
25093
25094		# save the flags
25095		ol_LIBS="$LIBS"
25096		LIBS="-lpthread $LIBS"
25097
25098		if test "$cross_compiling" = yes; then :
25099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25100/* end confdefs.h.  */
25101
25102/* pthread test headers */
25103#include <pthread.h>
25104#if HAVE_PTHREADS < 7
25105#include <errno.h>
25106#endif
25107#ifndef NULL
25108#define NULL (void*)0
25109#endif
25110
25111static void *task(p)
25112	void *p;
25113{
25114	return (void *) (p == NULL);
25115}
25116
25117int
25118main ()
25119{
25120
25121	/* pthread test function */
25122#ifndef PTHREAD_CREATE_DETACHED
25123#define	PTHREAD_CREATE_DETACHED	1
25124#endif
25125	pthread_t t;
25126	int status;
25127	int detach = PTHREAD_CREATE_DETACHED;
25128
25129#if HAVE_PTHREADS > 4
25130	/* Final pthreads */
25131	pthread_attr_t attr;
25132
25133	status = pthread_attr_init(&attr);
25134	if( status ) return status;
25135
25136#if HAVE_PTHREADS < 7
25137	status = pthread_attr_setdetachstate(&attr, &detach);
25138	if( status < 0 ) status = errno;
25139#else
25140	status = pthread_attr_setdetachstate(&attr, detach);
25141#endif
25142	if( status ) return status;
25143	status = pthread_create( &t, &attr, task, NULL );
25144#if HAVE_PTHREADS < 7
25145	if( status < 0 ) status = errno;
25146#endif
25147	if( status ) return status;
25148#else
25149	/* Draft 4 pthreads */
25150	status = pthread_create( &t, pthread_attr_default, task, NULL );
25151	if( status ) return errno;
25152
25153	/* give thread a chance to complete */
25154	/* it should remain joinable and hence detachable */
25155	sleep( 1 );
25156
25157	status = pthread_detach( &t );
25158	if( status ) return errno;
25159#endif
25160
25161#ifdef HAVE_LINUX_THREADS
25162	pthread_kill_other_threads_np();
25163#endif
25164
25165	return 0;
25166
25167  ;
25168  return 0;
25169}
25170_ACEOF
25171if ac_fn_c_try_link "$LINENO"; then :
25172  ol_cv_pthread_lpthread=yes
25173else
25174  ol_cv_pthread_lpthread=no
25175fi
25176rm -f core conftest.err conftest.$ac_objext \
25177    conftest$ac_exeext conftest.$ac_ext
25178else
25179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25180/* end confdefs.h.  */
25181
25182
25183/* pthread test headers */
25184#include <pthread.h>
25185#if HAVE_PTHREADS < 7
25186#include <errno.h>
25187#endif
25188#ifndef NULL
25189#define NULL (void*)0
25190#endif
25191
25192static void *task(p)
25193	void *p;
25194{
25195	return (void *) (p == NULL);
25196}
25197
25198
25199int main(argc, argv)
25200	int argc;
25201	char **argv;
25202{
25203
25204	/* pthread test function */
25205#ifndef PTHREAD_CREATE_DETACHED
25206#define	PTHREAD_CREATE_DETACHED	1
25207#endif
25208	pthread_t t;
25209	int status;
25210	int detach = PTHREAD_CREATE_DETACHED;
25211
25212#if HAVE_PTHREADS > 4
25213	/* Final pthreads */
25214	pthread_attr_t attr;
25215
25216	status = pthread_attr_init(&attr);
25217	if( status ) return status;
25218
25219#if HAVE_PTHREADS < 7
25220	status = pthread_attr_setdetachstate(&attr, &detach);
25221	if( status < 0 ) status = errno;
25222#else
25223	status = pthread_attr_setdetachstate(&attr, detach);
25224#endif
25225	if( status ) return status;
25226	status = pthread_create( &t, &attr, task, NULL );
25227#if HAVE_PTHREADS < 7
25228	if( status < 0 ) status = errno;
25229#endif
25230	if( status ) return status;
25231#else
25232	/* Draft 4 pthreads */
25233	status = pthread_create( &t, pthread_attr_default, task, NULL );
25234	if( status ) return errno;
25235
25236	/* give thread a chance to complete */
25237	/* it should remain joinable and hence detachable */
25238	sleep( 1 );
25239
25240	status = pthread_detach( &t );
25241	if( status ) return errno;
25242#endif
25243
25244#ifdef HAVE_LINUX_THREADS
25245	pthread_kill_other_threads_np();
25246#endif
25247
25248	return 0;
25249
25250}
25251
25252_ACEOF
25253if ac_fn_c_try_run "$LINENO"; then :
25254  ol_cv_pthread_lpthread=yes
25255else
25256  ol_cv_pthread_lpthread=no
25257fi
25258rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25259  conftest.$ac_objext conftest.beam conftest.$ac_ext
25260fi
25261
25262
25263		# restore the LIBS
25264		LIBS="$ol_LIBS"
25265
25266fi
25267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
25268$as_echo "$ol_cv_pthread_lpthread" >&6; }
25269
25270	if test $ol_cv_pthread_lpthread = yes ; then
25271		ol_link_pthreads="-lpthread"
25272		ol_link_threads=posix
25273	fi
25274fi
25275
25276		# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
25277if test "$ol_link_threads" = no ; then
25278	# try -lc_r
25279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
25280$as_echo_n "checking for pthread link with -lc_r... " >&6; }
25281if ${ol_cv_pthread_lc_r+:} false; then :
25282  $as_echo_n "(cached) " >&6
25283else
25284
25285		# save the flags
25286		ol_LIBS="$LIBS"
25287		LIBS="-lc_r $LIBS"
25288
25289		if test "$cross_compiling" = yes; then :
25290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25291/* end confdefs.h.  */
25292
25293/* pthread test headers */
25294#include <pthread.h>
25295#if HAVE_PTHREADS < 7
25296#include <errno.h>
25297#endif
25298#ifndef NULL
25299#define NULL (void*)0
25300#endif
25301
25302static void *task(p)
25303	void *p;
25304{
25305	return (void *) (p == NULL);
25306}
25307
25308int
25309main ()
25310{
25311
25312	/* pthread test function */
25313#ifndef PTHREAD_CREATE_DETACHED
25314#define	PTHREAD_CREATE_DETACHED	1
25315#endif
25316	pthread_t t;
25317	int status;
25318	int detach = PTHREAD_CREATE_DETACHED;
25319
25320#if HAVE_PTHREADS > 4
25321	/* Final pthreads */
25322	pthread_attr_t attr;
25323
25324	status = pthread_attr_init(&attr);
25325	if( status ) return status;
25326
25327#if HAVE_PTHREADS < 7
25328	status = pthread_attr_setdetachstate(&attr, &detach);
25329	if( status < 0 ) status = errno;
25330#else
25331	status = pthread_attr_setdetachstate(&attr, detach);
25332#endif
25333	if( status ) return status;
25334	status = pthread_create( &t, &attr, task, NULL );
25335#if HAVE_PTHREADS < 7
25336	if( status < 0 ) status = errno;
25337#endif
25338	if( status ) return status;
25339#else
25340	/* Draft 4 pthreads */
25341	status = pthread_create( &t, pthread_attr_default, task, NULL );
25342	if( status ) return errno;
25343
25344	/* give thread a chance to complete */
25345	/* it should remain joinable and hence detachable */
25346	sleep( 1 );
25347
25348	status = pthread_detach( &t );
25349	if( status ) return errno;
25350#endif
25351
25352#ifdef HAVE_LINUX_THREADS
25353	pthread_kill_other_threads_np();
25354#endif
25355
25356	return 0;
25357
25358  ;
25359  return 0;
25360}
25361_ACEOF
25362if ac_fn_c_try_link "$LINENO"; then :
25363  ol_cv_pthread_lc_r=yes
25364else
25365  ol_cv_pthread_lc_r=no
25366fi
25367rm -f core conftest.err conftest.$ac_objext \
25368    conftest$ac_exeext conftest.$ac_ext
25369else
25370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25371/* end confdefs.h.  */
25372
25373
25374/* pthread test headers */
25375#include <pthread.h>
25376#if HAVE_PTHREADS < 7
25377#include <errno.h>
25378#endif
25379#ifndef NULL
25380#define NULL (void*)0
25381#endif
25382
25383static void *task(p)
25384	void *p;
25385{
25386	return (void *) (p == NULL);
25387}
25388
25389
25390int main(argc, argv)
25391	int argc;
25392	char **argv;
25393{
25394
25395	/* pthread test function */
25396#ifndef PTHREAD_CREATE_DETACHED
25397#define	PTHREAD_CREATE_DETACHED	1
25398#endif
25399	pthread_t t;
25400	int status;
25401	int detach = PTHREAD_CREATE_DETACHED;
25402
25403#if HAVE_PTHREADS > 4
25404	/* Final pthreads */
25405	pthread_attr_t attr;
25406
25407	status = pthread_attr_init(&attr);
25408	if( status ) return status;
25409
25410#if HAVE_PTHREADS < 7
25411	status = pthread_attr_setdetachstate(&attr, &detach);
25412	if( status < 0 ) status = errno;
25413#else
25414	status = pthread_attr_setdetachstate(&attr, detach);
25415#endif
25416	if( status ) return status;
25417	status = pthread_create( &t, &attr, task, NULL );
25418#if HAVE_PTHREADS < 7
25419	if( status < 0 ) status = errno;
25420#endif
25421	if( status ) return status;
25422#else
25423	/* Draft 4 pthreads */
25424	status = pthread_create( &t, pthread_attr_default, task, NULL );
25425	if( status ) return errno;
25426
25427	/* give thread a chance to complete */
25428	/* it should remain joinable and hence detachable */
25429	sleep( 1 );
25430
25431	status = pthread_detach( &t );
25432	if( status ) return errno;
25433#endif
25434
25435#ifdef HAVE_LINUX_THREADS
25436	pthread_kill_other_threads_np();
25437#endif
25438
25439	return 0;
25440
25441}
25442
25443_ACEOF
25444if ac_fn_c_try_run "$LINENO"; then :
25445  ol_cv_pthread_lc_r=yes
25446else
25447  ol_cv_pthread_lc_r=no
25448fi
25449rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25450  conftest.$ac_objext conftest.beam conftest.$ac_ext
25451fi
25452
25453
25454		# restore the LIBS
25455		LIBS="$ol_LIBS"
25456
25457fi
25458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
25459$as_echo "$ol_cv_pthread_lc_r" >&6; }
25460
25461	if test $ol_cv_pthread_lc_r = yes ; then
25462		ol_link_pthreads="-lc_r"
25463		ol_link_threads=posix
25464	fi
25465fi
25466
25467
25468		# Pthread try link: -threads (ol_cv_pthread_threads)
25469if test "$ol_link_threads" = no ; then
25470	# try -threads
25471	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
25472$as_echo_n "checking for pthread link with -threads... " >&6; }
25473if ${ol_cv_pthread_threads+:} false; then :
25474  $as_echo_n "(cached) " >&6
25475else
25476
25477		# save the flags
25478		ol_LIBS="$LIBS"
25479		LIBS="-threads $LIBS"
25480
25481		if test "$cross_compiling" = yes; then :
25482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25483/* end confdefs.h.  */
25484
25485/* pthread test headers */
25486#include <pthread.h>
25487#if HAVE_PTHREADS < 7
25488#include <errno.h>
25489#endif
25490#ifndef NULL
25491#define NULL (void*)0
25492#endif
25493
25494static void *task(p)
25495	void *p;
25496{
25497	return (void *) (p == NULL);
25498}
25499
25500int
25501main ()
25502{
25503
25504	/* pthread test function */
25505#ifndef PTHREAD_CREATE_DETACHED
25506#define	PTHREAD_CREATE_DETACHED	1
25507#endif
25508	pthread_t t;
25509	int status;
25510	int detach = PTHREAD_CREATE_DETACHED;
25511
25512#if HAVE_PTHREADS > 4
25513	/* Final pthreads */
25514	pthread_attr_t attr;
25515
25516	status = pthread_attr_init(&attr);
25517	if( status ) return status;
25518
25519#if HAVE_PTHREADS < 7
25520	status = pthread_attr_setdetachstate(&attr, &detach);
25521	if( status < 0 ) status = errno;
25522#else
25523	status = pthread_attr_setdetachstate(&attr, detach);
25524#endif
25525	if( status ) return status;
25526	status = pthread_create( &t, &attr, task, NULL );
25527#if HAVE_PTHREADS < 7
25528	if( status < 0 ) status = errno;
25529#endif
25530	if( status ) return status;
25531#else
25532	/* Draft 4 pthreads */
25533	status = pthread_create( &t, pthread_attr_default, task, NULL );
25534	if( status ) return errno;
25535
25536	/* give thread a chance to complete */
25537	/* it should remain joinable and hence detachable */
25538	sleep( 1 );
25539
25540	status = pthread_detach( &t );
25541	if( status ) return errno;
25542#endif
25543
25544#ifdef HAVE_LINUX_THREADS
25545	pthread_kill_other_threads_np();
25546#endif
25547
25548	return 0;
25549
25550  ;
25551  return 0;
25552}
25553_ACEOF
25554if ac_fn_c_try_link "$LINENO"; then :
25555  ol_cv_pthread_threads=yes
25556else
25557  ol_cv_pthread_threads=no
25558fi
25559rm -f core conftest.err conftest.$ac_objext \
25560    conftest$ac_exeext conftest.$ac_ext
25561else
25562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25563/* end confdefs.h.  */
25564
25565
25566/* pthread test headers */
25567#include <pthread.h>
25568#if HAVE_PTHREADS < 7
25569#include <errno.h>
25570#endif
25571#ifndef NULL
25572#define NULL (void*)0
25573#endif
25574
25575static void *task(p)
25576	void *p;
25577{
25578	return (void *) (p == NULL);
25579}
25580
25581
25582int main(argc, argv)
25583	int argc;
25584	char **argv;
25585{
25586
25587	/* pthread test function */
25588#ifndef PTHREAD_CREATE_DETACHED
25589#define	PTHREAD_CREATE_DETACHED	1
25590#endif
25591	pthread_t t;
25592	int status;
25593	int detach = PTHREAD_CREATE_DETACHED;
25594
25595#if HAVE_PTHREADS > 4
25596	/* Final pthreads */
25597	pthread_attr_t attr;
25598
25599	status = pthread_attr_init(&attr);
25600	if( status ) return status;
25601
25602#if HAVE_PTHREADS < 7
25603	status = pthread_attr_setdetachstate(&attr, &detach);
25604	if( status < 0 ) status = errno;
25605#else
25606	status = pthread_attr_setdetachstate(&attr, detach);
25607#endif
25608	if( status ) return status;
25609	status = pthread_create( &t, &attr, task, NULL );
25610#if HAVE_PTHREADS < 7
25611	if( status < 0 ) status = errno;
25612#endif
25613	if( status ) return status;
25614#else
25615	/* Draft 4 pthreads */
25616	status = pthread_create( &t, pthread_attr_default, task, NULL );
25617	if( status ) return errno;
25618
25619	/* give thread a chance to complete */
25620	/* it should remain joinable and hence detachable */
25621	sleep( 1 );
25622
25623	status = pthread_detach( &t );
25624	if( status ) return errno;
25625#endif
25626
25627#ifdef HAVE_LINUX_THREADS
25628	pthread_kill_other_threads_np();
25629#endif
25630
25631	return 0;
25632
25633}
25634
25635_ACEOF
25636if ac_fn_c_try_run "$LINENO"; then :
25637  ol_cv_pthread_threads=yes
25638else
25639  ol_cv_pthread_threads=no
25640fi
25641rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25642  conftest.$ac_objext conftest.beam conftest.$ac_ext
25643fi
25644
25645
25646		# restore the LIBS
25647		LIBS="$ol_LIBS"
25648
25649fi
25650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
25651$as_echo "$ol_cv_pthread_threads" >&6; }
25652
25653	if test $ol_cv_pthread_threads = yes ; then
25654		ol_link_pthreads="-threads"
25655		ol_link_threads=posix
25656	fi
25657fi
25658
25659
25660		# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
25661if test "$ol_link_threads" = no ; then
25662	# try -lpthreads -lmach -lexc -lc_r
25663	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
25664$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
25665if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
25666  $as_echo_n "(cached) " >&6
25667else
25668
25669		# save the flags
25670		ol_LIBS="$LIBS"
25671		LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
25672
25673		if test "$cross_compiling" = yes; then :
25674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25675/* end confdefs.h.  */
25676
25677/* pthread test headers */
25678#include <pthread.h>
25679#if HAVE_PTHREADS < 7
25680#include <errno.h>
25681#endif
25682#ifndef NULL
25683#define NULL (void*)0
25684#endif
25685
25686static void *task(p)
25687	void *p;
25688{
25689	return (void *) (p == NULL);
25690}
25691
25692int
25693main ()
25694{
25695
25696	/* pthread test function */
25697#ifndef PTHREAD_CREATE_DETACHED
25698#define	PTHREAD_CREATE_DETACHED	1
25699#endif
25700	pthread_t t;
25701	int status;
25702	int detach = PTHREAD_CREATE_DETACHED;
25703
25704#if HAVE_PTHREADS > 4
25705	/* Final pthreads */
25706	pthread_attr_t attr;
25707
25708	status = pthread_attr_init(&attr);
25709	if( status ) return status;
25710
25711#if HAVE_PTHREADS < 7
25712	status = pthread_attr_setdetachstate(&attr, &detach);
25713	if( status < 0 ) status = errno;
25714#else
25715	status = pthread_attr_setdetachstate(&attr, detach);
25716#endif
25717	if( status ) return status;
25718	status = pthread_create( &t, &attr, task, NULL );
25719#if HAVE_PTHREADS < 7
25720	if( status < 0 ) status = errno;
25721#endif
25722	if( status ) return status;
25723#else
25724	/* Draft 4 pthreads */
25725	status = pthread_create( &t, pthread_attr_default, task, NULL );
25726	if( status ) return errno;
25727
25728	/* give thread a chance to complete */
25729	/* it should remain joinable and hence detachable */
25730	sleep( 1 );
25731
25732	status = pthread_detach( &t );
25733	if( status ) return errno;
25734#endif
25735
25736#ifdef HAVE_LINUX_THREADS
25737	pthread_kill_other_threads_np();
25738#endif
25739
25740	return 0;
25741
25742  ;
25743  return 0;
25744}
25745_ACEOF
25746if ac_fn_c_try_link "$LINENO"; then :
25747  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
25748else
25749  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
25750fi
25751rm -f core conftest.err conftest.$ac_objext \
25752    conftest$ac_exeext conftest.$ac_ext
25753else
25754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25755/* end confdefs.h.  */
25756
25757
25758/* pthread test headers */
25759#include <pthread.h>
25760#if HAVE_PTHREADS < 7
25761#include <errno.h>
25762#endif
25763#ifndef NULL
25764#define NULL (void*)0
25765#endif
25766
25767static void *task(p)
25768	void *p;
25769{
25770	return (void *) (p == NULL);
25771}
25772
25773
25774int main(argc, argv)
25775	int argc;
25776	char **argv;
25777{
25778
25779	/* pthread test function */
25780#ifndef PTHREAD_CREATE_DETACHED
25781#define	PTHREAD_CREATE_DETACHED	1
25782#endif
25783	pthread_t t;
25784	int status;
25785	int detach = PTHREAD_CREATE_DETACHED;
25786
25787#if HAVE_PTHREADS > 4
25788	/* Final pthreads */
25789	pthread_attr_t attr;
25790
25791	status = pthread_attr_init(&attr);
25792	if( status ) return status;
25793
25794#if HAVE_PTHREADS < 7
25795	status = pthread_attr_setdetachstate(&attr, &detach);
25796	if( status < 0 ) status = errno;
25797#else
25798	status = pthread_attr_setdetachstate(&attr, detach);
25799#endif
25800	if( status ) return status;
25801	status = pthread_create( &t, &attr, task, NULL );
25802#if HAVE_PTHREADS < 7
25803	if( status < 0 ) status = errno;
25804#endif
25805	if( status ) return status;
25806#else
25807	/* Draft 4 pthreads */
25808	status = pthread_create( &t, pthread_attr_default, task, NULL );
25809	if( status ) return errno;
25810
25811	/* give thread a chance to complete */
25812	/* it should remain joinable and hence detachable */
25813	sleep( 1 );
25814
25815	status = pthread_detach( &t );
25816	if( status ) return errno;
25817#endif
25818
25819#ifdef HAVE_LINUX_THREADS
25820	pthread_kill_other_threads_np();
25821#endif
25822
25823	return 0;
25824
25825}
25826
25827_ACEOF
25828if ac_fn_c_try_run "$LINENO"; then :
25829  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
25830else
25831  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
25832fi
25833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25834  conftest.$ac_objext conftest.beam conftest.$ac_ext
25835fi
25836
25837
25838		# restore the LIBS
25839		LIBS="$ol_LIBS"
25840
25841fi
25842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
25843$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
25844
25845	if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
25846		ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
25847		ol_link_threads=posix
25848	fi
25849fi
25850
25851		# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
25852if test "$ol_link_threads" = no ; then
25853	# try -lpthreads -lmach -lexc
25854	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
25855$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
25856if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
25857  $as_echo_n "(cached) " >&6
25858else
25859
25860		# save the flags
25861		ol_LIBS="$LIBS"
25862		LIBS="-lpthreads -lmach -lexc $LIBS"
25863
25864		if test "$cross_compiling" = yes; then :
25865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25866/* end confdefs.h.  */
25867
25868/* pthread test headers */
25869#include <pthread.h>
25870#if HAVE_PTHREADS < 7
25871#include <errno.h>
25872#endif
25873#ifndef NULL
25874#define NULL (void*)0
25875#endif
25876
25877static void *task(p)
25878	void *p;
25879{
25880	return (void *) (p == NULL);
25881}
25882
25883int
25884main ()
25885{
25886
25887	/* pthread test function */
25888#ifndef PTHREAD_CREATE_DETACHED
25889#define	PTHREAD_CREATE_DETACHED	1
25890#endif
25891	pthread_t t;
25892	int status;
25893	int detach = PTHREAD_CREATE_DETACHED;
25894
25895#if HAVE_PTHREADS > 4
25896	/* Final pthreads */
25897	pthread_attr_t attr;
25898
25899	status = pthread_attr_init(&attr);
25900	if( status ) return status;
25901
25902#if HAVE_PTHREADS < 7
25903	status = pthread_attr_setdetachstate(&attr, &detach);
25904	if( status < 0 ) status = errno;
25905#else
25906	status = pthread_attr_setdetachstate(&attr, detach);
25907#endif
25908	if( status ) return status;
25909	status = pthread_create( &t, &attr, task, NULL );
25910#if HAVE_PTHREADS < 7
25911	if( status < 0 ) status = errno;
25912#endif
25913	if( status ) return status;
25914#else
25915	/* Draft 4 pthreads */
25916	status = pthread_create( &t, pthread_attr_default, task, NULL );
25917	if( status ) return errno;
25918
25919	/* give thread a chance to complete */
25920	/* it should remain joinable and hence detachable */
25921	sleep( 1 );
25922
25923	status = pthread_detach( &t );
25924	if( status ) return errno;
25925#endif
25926
25927#ifdef HAVE_LINUX_THREADS
25928	pthread_kill_other_threads_np();
25929#endif
25930
25931	return 0;
25932
25933  ;
25934  return 0;
25935}
25936_ACEOF
25937if ac_fn_c_try_link "$LINENO"; then :
25938  ol_cv_pthread_lpthreads_lmach_lexc=yes
25939else
25940  ol_cv_pthread_lpthreads_lmach_lexc=no
25941fi
25942rm -f core conftest.err conftest.$ac_objext \
25943    conftest$ac_exeext conftest.$ac_ext
25944else
25945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25946/* end confdefs.h.  */
25947
25948
25949/* pthread test headers */
25950#include <pthread.h>
25951#if HAVE_PTHREADS < 7
25952#include <errno.h>
25953#endif
25954#ifndef NULL
25955#define NULL (void*)0
25956#endif
25957
25958static void *task(p)
25959	void *p;
25960{
25961	return (void *) (p == NULL);
25962}
25963
25964
25965int main(argc, argv)
25966	int argc;
25967	char **argv;
25968{
25969
25970	/* pthread test function */
25971#ifndef PTHREAD_CREATE_DETACHED
25972#define	PTHREAD_CREATE_DETACHED	1
25973#endif
25974	pthread_t t;
25975	int status;
25976	int detach = PTHREAD_CREATE_DETACHED;
25977
25978#if HAVE_PTHREADS > 4
25979	/* Final pthreads */
25980	pthread_attr_t attr;
25981
25982	status = pthread_attr_init(&attr);
25983	if( status ) return status;
25984
25985#if HAVE_PTHREADS < 7
25986	status = pthread_attr_setdetachstate(&attr, &detach);
25987	if( status < 0 ) status = errno;
25988#else
25989	status = pthread_attr_setdetachstate(&attr, detach);
25990#endif
25991	if( status ) return status;
25992	status = pthread_create( &t, &attr, task, NULL );
25993#if HAVE_PTHREADS < 7
25994	if( status < 0 ) status = errno;
25995#endif
25996	if( status ) return status;
25997#else
25998	/* Draft 4 pthreads */
25999	status = pthread_create( &t, pthread_attr_default, task, NULL );
26000	if( status ) return errno;
26001
26002	/* give thread a chance to complete */
26003	/* it should remain joinable and hence detachable */
26004	sleep( 1 );
26005
26006	status = pthread_detach( &t );
26007	if( status ) return errno;
26008#endif
26009
26010#ifdef HAVE_LINUX_THREADS
26011	pthread_kill_other_threads_np();
26012#endif
26013
26014	return 0;
26015
26016}
26017
26018_ACEOF
26019if ac_fn_c_try_run "$LINENO"; then :
26020  ol_cv_pthread_lpthreads_lmach_lexc=yes
26021else
26022  ol_cv_pthread_lpthreads_lmach_lexc=no
26023fi
26024rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26025  conftest.$ac_objext conftest.beam conftest.$ac_ext
26026fi
26027
26028
26029		# restore the LIBS
26030		LIBS="$ol_LIBS"
26031
26032fi
26033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
26034$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
26035
26036	if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
26037		ol_link_pthreads="-lpthreads -lmach -lexc"
26038		ol_link_threads=posix
26039	fi
26040fi
26041
26042		# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
26043if test "$ol_link_threads" = no ; then
26044	# try -lpthreads -lexc
26045	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
26046$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
26047if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
26048  $as_echo_n "(cached) " >&6
26049else
26050
26051		# save the flags
26052		ol_LIBS="$LIBS"
26053		LIBS="-lpthreads -lexc $LIBS"
26054
26055		if test "$cross_compiling" = yes; then :
26056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26057/* end confdefs.h.  */
26058
26059/* pthread test headers */
26060#include <pthread.h>
26061#if HAVE_PTHREADS < 7
26062#include <errno.h>
26063#endif
26064#ifndef NULL
26065#define NULL (void*)0
26066#endif
26067
26068static void *task(p)
26069	void *p;
26070{
26071	return (void *) (p == NULL);
26072}
26073
26074int
26075main ()
26076{
26077
26078	/* pthread test function */
26079#ifndef PTHREAD_CREATE_DETACHED
26080#define	PTHREAD_CREATE_DETACHED	1
26081#endif
26082	pthread_t t;
26083	int status;
26084	int detach = PTHREAD_CREATE_DETACHED;
26085
26086#if HAVE_PTHREADS > 4
26087	/* Final pthreads */
26088	pthread_attr_t attr;
26089
26090	status = pthread_attr_init(&attr);
26091	if( status ) return status;
26092
26093#if HAVE_PTHREADS < 7
26094	status = pthread_attr_setdetachstate(&attr, &detach);
26095	if( status < 0 ) status = errno;
26096#else
26097	status = pthread_attr_setdetachstate(&attr, detach);
26098#endif
26099	if( status ) return status;
26100	status = pthread_create( &t, &attr, task, NULL );
26101#if HAVE_PTHREADS < 7
26102	if( status < 0 ) status = errno;
26103#endif
26104	if( status ) return status;
26105#else
26106	/* Draft 4 pthreads */
26107	status = pthread_create( &t, pthread_attr_default, task, NULL );
26108	if( status ) return errno;
26109
26110	/* give thread a chance to complete */
26111	/* it should remain joinable and hence detachable */
26112	sleep( 1 );
26113
26114	status = pthread_detach( &t );
26115	if( status ) return errno;
26116#endif
26117
26118#ifdef HAVE_LINUX_THREADS
26119	pthread_kill_other_threads_np();
26120#endif
26121
26122	return 0;
26123
26124  ;
26125  return 0;
26126}
26127_ACEOF
26128if ac_fn_c_try_link "$LINENO"; then :
26129  ol_cv_pthread_lpthreads_lexc=yes
26130else
26131  ol_cv_pthread_lpthreads_lexc=no
26132fi
26133rm -f core conftest.err conftest.$ac_objext \
26134    conftest$ac_exeext conftest.$ac_ext
26135else
26136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26137/* end confdefs.h.  */
26138
26139
26140/* pthread test headers */
26141#include <pthread.h>
26142#if HAVE_PTHREADS < 7
26143#include <errno.h>
26144#endif
26145#ifndef NULL
26146#define NULL (void*)0
26147#endif
26148
26149static void *task(p)
26150	void *p;
26151{
26152	return (void *) (p == NULL);
26153}
26154
26155
26156int main(argc, argv)
26157	int argc;
26158	char **argv;
26159{
26160
26161	/* pthread test function */
26162#ifndef PTHREAD_CREATE_DETACHED
26163#define	PTHREAD_CREATE_DETACHED	1
26164#endif
26165	pthread_t t;
26166	int status;
26167	int detach = PTHREAD_CREATE_DETACHED;
26168
26169#if HAVE_PTHREADS > 4
26170	/* Final pthreads */
26171	pthread_attr_t attr;
26172
26173	status = pthread_attr_init(&attr);
26174	if( status ) return status;
26175
26176#if HAVE_PTHREADS < 7
26177	status = pthread_attr_setdetachstate(&attr, &detach);
26178	if( status < 0 ) status = errno;
26179#else
26180	status = pthread_attr_setdetachstate(&attr, detach);
26181#endif
26182	if( status ) return status;
26183	status = pthread_create( &t, &attr, task, NULL );
26184#if HAVE_PTHREADS < 7
26185	if( status < 0 ) status = errno;
26186#endif
26187	if( status ) return status;
26188#else
26189	/* Draft 4 pthreads */
26190	status = pthread_create( &t, pthread_attr_default, task, NULL );
26191	if( status ) return errno;
26192
26193	/* give thread a chance to complete */
26194	/* it should remain joinable and hence detachable */
26195	sleep( 1 );
26196
26197	status = pthread_detach( &t );
26198	if( status ) return errno;
26199#endif
26200
26201#ifdef HAVE_LINUX_THREADS
26202	pthread_kill_other_threads_np();
26203#endif
26204
26205	return 0;
26206
26207}
26208
26209_ACEOF
26210if ac_fn_c_try_run "$LINENO"; then :
26211  ol_cv_pthread_lpthreads_lexc=yes
26212else
26213  ol_cv_pthread_lpthreads_lexc=no
26214fi
26215rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26216  conftest.$ac_objext conftest.beam conftest.$ac_ext
26217fi
26218
26219
26220		# restore the LIBS
26221		LIBS="$ol_LIBS"
26222
26223fi
26224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
26225$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
26226
26227	if test $ol_cv_pthread_lpthreads_lexc = yes ; then
26228		ol_link_pthreads="-lpthreads -lexc"
26229		ol_link_threads=posix
26230	fi
26231fi
26232
26233
26234		# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
26235if test "$ol_link_threads" = no ; then
26236	# try -lpthreads
26237	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
26238$as_echo_n "checking for pthread link with -lpthreads... " >&6; }
26239if ${ol_cv_pthread_lib_lpthreads+:} false; then :
26240  $as_echo_n "(cached) " >&6
26241else
26242
26243		# save the flags
26244		ol_LIBS="$LIBS"
26245		LIBS="-lpthreads $LIBS"
26246
26247		if test "$cross_compiling" = yes; then :
26248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26249/* end confdefs.h.  */
26250
26251/* pthread test headers */
26252#include <pthread.h>
26253#if HAVE_PTHREADS < 7
26254#include <errno.h>
26255#endif
26256#ifndef NULL
26257#define NULL (void*)0
26258#endif
26259
26260static void *task(p)
26261	void *p;
26262{
26263	return (void *) (p == NULL);
26264}
26265
26266int
26267main ()
26268{
26269
26270	/* pthread test function */
26271#ifndef PTHREAD_CREATE_DETACHED
26272#define	PTHREAD_CREATE_DETACHED	1
26273#endif
26274	pthread_t t;
26275	int status;
26276	int detach = PTHREAD_CREATE_DETACHED;
26277
26278#if HAVE_PTHREADS > 4
26279	/* Final pthreads */
26280	pthread_attr_t attr;
26281
26282	status = pthread_attr_init(&attr);
26283	if( status ) return status;
26284
26285#if HAVE_PTHREADS < 7
26286	status = pthread_attr_setdetachstate(&attr, &detach);
26287	if( status < 0 ) status = errno;
26288#else
26289	status = pthread_attr_setdetachstate(&attr, detach);
26290#endif
26291	if( status ) return status;
26292	status = pthread_create( &t, &attr, task, NULL );
26293#if HAVE_PTHREADS < 7
26294	if( status < 0 ) status = errno;
26295#endif
26296	if( status ) return status;
26297#else
26298	/* Draft 4 pthreads */
26299	status = pthread_create( &t, pthread_attr_default, task, NULL );
26300	if( status ) return errno;
26301
26302	/* give thread a chance to complete */
26303	/* it should remain joinable and hence detachable */
26304	sleep( 1 );
26305
26306	status = pthread_detach( &t );
26307	if( status ) return errno;
26308#endif
26309
26310#ifdef HAVE_LINUX_THREADS
26311	pthread_kill_other_threads_np();
26312#endif
26313
26314	return 0;
26315
26316  ;
26317  return 0;
26318}
26319_ACEOF
26320if ac_fn_c_try_link "$LINENO"; then :
26321  ol_cv_pthread_lib_lpthreads=yes
26322else
26323  ol_cv_pthread_lib_lpthreads=no
26324fi
26325rm -f core conftest.err conftest.$ac_objext \
26326    conftest$ac_exeext conftest.$ac_ext
26327else
26328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26329/* end confdefs.h.  */
26330
26331
26332/* pthread test headers */
26333#include <pthread.h>
26334#if HAVE_PTHREADS < 7
26335#include <errno.h>
26336#endif
26337#ifndef NULL
26338#define NULL (void*)0
26339#endif
26340
26341static void *task(p)
26342	void *p;
26343{
26344	return (void *) (p == NULL);
26345}
26346
26347
26348int main(argc, argv)
26349	int argc;
26350	char **argv;
26351{
26352
26353	/* pthread test function */
26354#ifndef PTHREAD_CREATE_DETACHED
26355#define	PTHREAD_CREATE_DETACHED	1
26356#endif
26357	pthread_t t;
26358	int status;
26359	int detach = PTHREAD_CREATE_DETACHED;
26360
26361#if HAVE_PTHREADS > 4
26362	/* Final pthreads */
26363	pthread_attr_t attr;
26364
26365	status = pthread_attr_init(&attr);
26366	if( status ) return status;
26367
26368#if HAVE_PTHREADS < 7
26369	status = pthread_attr_setdetachstate(&attr, &detach);
26370	if( status < 0 ) status = errno;
26371#else
26372	status = pthread_attr_setdetachstate(&attr, detach);
26373#endif
26374	if( status ) return status;
26375	status = pthread_create( &t, &attr, task, NULL );
26376#if HAVE_PTHREADS < 7
26377	if( status < 0 ) status = errno;
26378#endif
26379	if( status ) return status;
26380#else
26381	/* Draft 4 pthreads */
26382	status = pthread_create( &t, pthread_attr_default, task, NULL );
26383	if( status ) return errno;
26384
26385	/* give thread a chance to complete */
26386	/* it should remain joinable and hence detachable */
26387	sleep( 1 );
26388
26389	status = pthread_detach( &t );
26390	if( status ) return errno;
26391#endif
26392
26393#ifdef HAVE_LINUX_THREADS
26394	pthread_kill_other_threads_np();
26395#endif
26396
26397	return 0;
26398
26399}
26400
26401_ACEOF
26402if ac_fn_c_try_run "$LINENO"; then :
26403  ol_cv_pthread_lib_lpthreads=yes
26404else
26405  ol_cv_pthread_lib_lpthreads=no
26406fi
26407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26408  conftest.$ac_objext conftest.beam conftest.$ac_ext
26409fi
26410
26411
26412		# restore the LIBS
26413		LIBS="$ol_LIBS"
26414
26415fi
26416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
26417$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
26418
26419	if test $ol_cv_pthread_lib_lpthreads = yes ; then
26420		ol_link_pthreads="-lpthreads"
26421		ol_link_threads=posix
26422	fi
26423fi
26424
26425
26426{ $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
26427$as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}
26428
26429		if test $ol_link_threads != no ; then
26430			LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
26431
26432						save_CPPFLAGS="$CPPFLAGS"
26433			save_LIBS="$LIBS"
26434			LIBS="$LTHREAD_LIBS $LIBS"
26435
26436												for ac_func in sched_yield pthread_yield thr_yield
26437do :
26438  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26439ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26440if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26441  cat >>confdefs.h <<_ACEOF
26442#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26443_ACEOF
26444
26445fi
26446done
26447
26448
26449			if test $ac_cv_func_sched_yield = no &&
26450			   test $ac_cv_func_pthread_yield = no &&
26451			   test $ac_cv_func_thr_yield = no ; then
26452								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
26453$as_echo_n "checking for sched_yield in -lrt... " >&6; }
26454if ${ac_cv_lib_rt_sched_yield+:} false; then :
26455  $as_echo_n "(cached) " >&6
26456else
26457  ac_check_lib_save_LIBS=$LIBS
26458LIBS="-lrt  $LIBS"
26459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26460/* end confdefs.h.  */
26461
26462/* Override any GCC internal prototype to avoid an error.
26463   Use char because int might match the return type of a GCC
26464   builtin and then its argument prototype would still apply.  */
26465#ifdef __cplusplus
26466extern "C"
26467#endif
26468char sched_yield ();
26469int
26470main ()
26471{
26472return sched_yield ();
26473  ;
26474  return 0;
26475}
26476_ACEOF
26477if ac_fn_c_try_link "$LINENO"; then :
26478  ac_cv_lib_rt_sched_yield=yes
26479else
26480  ac_cv_lib_rt_sched_yield=no
26481fi
26482rm -f core conftest.err conftest.$ac_objext \
26483    conftest$ac_exeext conftest.$ac_ext
26484LIBS=$ac_check_lib_save_LIBS
26485fi
26486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
26487$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
26488if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
26489  LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
26490
26491$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
26492
26493					ac_cv_func_sched_yield=yes
26494else
26495  ac_cv_func_sched_yield=no
26496fi
26497
26498			fi
26499			if test $ac_cv_func_sched_yield = no &&
26500			   test $ac_cv_func_pthread_yield = no &&
26501			   test "$ac_cv_func_thr_yield" = no ; then
26502				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
26503$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
26504			fi
26505
26506						for ac_func in pthread_kill
26507do :
26508  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
26509if test "x$ac_cv_func_pthread_kill" = xyes; then :
26510  cat >>confdefs.h <<_ACEOF
26511#define HAVE_PTHREAD_KILL 1
26512_ACEOF
26513
26514fi
26515done
26516
26517
26518									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
26519$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
26520if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
26521  $as_echo_n "(cached) " >&6
26522else
26523
26524								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26525/* end confdefs.h.  */
26526
26527#include <pthread.h>
26528pthread_rwlock_t rwlock;
26529
26530int
26531main ()
26532{
26533pthread_rwlock_destroy(&rwlock);
26534  ;
26535  return 0;
26536}
26537_ACEOF
26538if ac_fn_c_try_link "$LINENO"; then :
26539  ol_cv_func_pthread_rwlock_destroy=yes
26540else
26541  ol_cv_func_pthread_rwlock_destroy=no
26542fi
26543rm -f core conftest.err conftest.$ac_objext \
26544    conftest$ac_exeext conftest.$ac_ext
26545
26546fi
26547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
26548$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
26549			if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
26550
26551$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
26552
26553			fi
26554
26555									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
26556$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
26557if ${ol_cv_func_pthread_detach+:} false; then :
26558  $as_echo_n "(cached) " >&6
26559else
26560
26561								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26562/* end confdefs.h.  */
26563
26564#include <pthread.h>
26565#ifndef NULL
26566#define NULL (void*)0
26567#endif
26568
26569int
26570main ()
26571{
26572pthread_detach(NULL);
26573  ;
26574  return 0;
26575}
26576_ACEOF
26577if ac_fn_c_try_link "$LINENO"; then :
26578  ol_cv_func_pthread_detach=yes
26579else
26580  ol_cv_func_pthread_detach=no
26581fi
26582rm -f core conftest.err conftest.$ac_objext \
26583    conftest$ac_exeext conftest.$ac_ext
26584
26585fi
26586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
26587$as_echo "$ol_cv_func_pthread_detach" >&6; }
26588
26589			if test $ol_cv_func_pthread_detach = no ; then
26590				as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
26591			fi
26592
26593
26594$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
26595
26596
26597						for ac_func in \
26598				pthread_setconcurrency \
26599				pthread_getconcurrency \
26600				thr_setconcurrency \
26601				thr_getconcurrency \
26602
26603do :
26604  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26605ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26606if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26607  cat >>confdefs.h <<_ACEOF
26608#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26609_ACEOF
26610
26611fi
26612done
26613
26614
26615
26616	for ac_func in pthread_kill_other_threads_np
26617do :
26618  ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
26619if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
26620  cat >>confdefs.h <<_ACEOF
26621#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
26622_ACEOF
26623
26624fi
26625done
26626
26627	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
26628$as_echo_n "checking for LinuxThreads implementation... " >&6; }
26629if ${ol_cv_sys_linux_threads+:} false; then :
26630  $as_echo_n "(cached) " >&6
26631else
26632  ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
26633fi
26634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
26635$as_echo "$ol_cv_sys_linux_threads" >&6; }
26636
26637
26638
26639
26640	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
26641$as_echo_n "checking for LinuxThreads consistency... " >&6; }
26642if ${ol_cv_linux_threads+:} false; then :
26643  $as_echo_n "(cached) " >&6
26644else
26645
26646		if test $ol_cv_header_linux_threads = yes &&
26647		   test $ol_cv_sys_linux_threads = yes; then
26648			ol_cv_linux_threads=yes
26649		elif test $ol_cv_header_linux_threads = no &&
26650		     test $ol_cv_sys_linux_threads = no; then
26651			ol_cv_linux_threads=no
26652		else
26653			ol_cv_linux_threads=error
26654		fi
26655
26656fi
26657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
26658$as_echo "$ol_cv_linux_threads" >&6; }
26659
26660
26661			if test $ol_cv_linux_threads = error; then
26662				as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
26663			fi
26664
26665			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
26666$as_echo_n "checking if pthread_create() works... " >&6; }
26667if ${ol_cv_pthread_create_works+:} false; then :
26668  $as_echo_n "(cached) " >&6
26669else
26670
26671			if test "$cross_compiling" = yes; then :
26672  				ol_cv_pthread_create_works=yes
26673else
26674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26675/* end confdefs.h.  */
26676
26677
26678/* pthread test headers */
26679#include <pthread.h>
26680#if HAVE_PTHREADS < 7
26681#include <errno.h>
26682#endif
26683#ifndef NULL
26684#define NULL (void*)0
26685#endif
26686
26687static void *task(p)
26688	void *p;
26689{
26690	return (void *) (p == NULL);
26691}
26692
26693
26694int main(argc, argv)
26695	int argc;
26696	char **argv;
26697{
26698
26699	/* pthread test function */
26700#ifndef PTHREAD_CREATE_DETACHED
26701#define	PTHREAD_CREATE_DETACHED	1
26702#endif
26703	pthread_t t;
26704	int status;
26705	int detach = PTHREAD_CREATE_DETACHED;
26706
26707#if HAVE_PTHREADS > 4
26708	/* Final pthreads */
26709	pthread_attr_t attr;
26710
26711	status = pthread_attr_init(&attr);
26712	if( status ) return status;
26713
26714#if HAVE_PTHREADS < 7
26715	status = pthread_attr_setdetachstate(&attr, &detach);
26716	if( status < 0 ) status = errno;
26717#else
26718	status = pthread_attr_setdetachstate(&attr, detach);
26719#endif
26720	if( status ) return status;
26721	status = pthread_create( &t, &attr, task, NULL );
26722#if HAVE_PTHREADS < 7
26723	if( status < 0 ) status = errno;
26724#endif
26725	if( status ) return status;
26726#else
26727	/* Draft 4 pthreads */
26728	status = pthread_create( &t, pthread_attr_default, task, NULL );
26729	if( status ) return errno;
26730
26731	/* give thread a chance to complete */
26732	/* it should remain joinable and hence detachable */
26733	sleep( 1 );
26734
26735	status = pthread_detach( &t );
26736	if( status ) return errno;
26737#endif
26738
26739#ifdef HAVE_LINUX_THREADS
26740	pthread_kill_other_threads_np();
26741#endif
26742
26743	return 0;
26744
26745}
26746
26747_ACEOF
26748if ac_fn_c_try_run "$LINENO"; then :
26749  ol_cv_pthread_create_works=yes
26750else
26751  ol_cv_pthread_create_works=no
26752fi
26753rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26754  conftest.$ac_objext conftest.beam conftest.$ac_ext
26755fi
26756
26757fi
26758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
26759$as_echo "$ol_cv_pthread_create_works" >&6; }
26760
26761			if test $ol_cv_pthread_create_works = no ; then
26762				as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
26763			fi
26764
26765			ol_replace_broken_yield=no
26766
26767			if test $ol_replace_broken_yield = yes ; then
26768
26769$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
26770
26771			fi
26772
26773						if test x$ol_with_yielding_select = xauto ; then
26774				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
26775$as_echo_n "checking if select yields when using pthreads... " >&6; }
26776if ${ol_cv_pthread_select_yields+:} false; then :
26777  $as_echo_n "(cached) " >&6
26778else
26779
26780				if test "$cross_compiling" = yes; then :
26781  ol_cv_pthread_select_yields=cross
26782else
26783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26784/* end confdefs.h.  */
26785
26786#include <sys/types.h>
26787#include <sys/time.h>
26788#include <unistd.h>
26789#include <pthread.h>
26790#ifndef NULL
26791#define NULL (void*) 0
26792#endif
26793
26794static int fildes[2];
26795
26796static void *task(p)
26797	void *p;
26798{
26799	int i;
26800	struct timeval tv;
26801
26802	fd_set rfds;
26803
26804	tv.tv_sec=10;
26805	tv.tv_usec=0;
26806
26807	FD_ZERO(&rfds);
26808	FD_SET(fildes[0], &rfds);
26809
26810	/* we're not interested in any fds */
26811	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
26812
26813	if(i < 0) {
26814		perror("select");
26815		exit(10);
26816	}
26817
26818	exit(0); /* if we exit here, the select blocked the whole process */
26819}
26820
26821int main(argc, argv)
26822	int argc;
26823	char **argv;
26824{
26825	pthread_t t;
26826
26827	/* create a pipe to select */
26828	if(pipe(&fildes[0])) {
26829		perror("select");
26830		exit(1);
26831	}
26832
26833#ifdef HAVE_PTHREAD_SETCONCURRENCY
26834	(void) pthread_setconcurrency(2);
26835#else
26836#ifdef HAVE_THR_SETCONCURRENCY
26837	/* Set Solaris LWP concurrency to 2 */
26838	thr_setconcurrency(2);
26839#endif
26840#endif
26841
26842#if HAVE_PTHREADS < 6
26843	pthread_create(&t, pthread_attr_default, task, NULL);
26844#else
26845	pthread_create(&t, NULL, task, NULL);
26846#endif
26847
26848	/* make sure task runs first */
26849#ifdef HAVE_THR_YIELD
26850	thr_yield();
26851#elif defined( HAVE_SCHED_YIELD )
26852	sched_yield();
26853#elif defined( HAVE_PTHREAD_YIELD )
26854	pthread_yield();
26855#endif
26856
26857	exit(2);
26858}
26859_ACEOF
26860if ac_fn_c_try_run "$LINENO"; then :
26861  ol_cv_pthread_select_yields=no
26862else
26863  ol_cv_pthread_select_yields=yes
26864fi
26865rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26866  conftest.$ac_objext conftest.beam conftest.$ac_ext
26867fi
26868
26869fi
26870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
26871$as_echo "$ol_cv_pthread_select_yields" >&6; }
26872
26873				if test $ol_cv_pthread_select_yields = cross ; then
26874					as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
26875				fi
26876
26877				if test $ol_cv_pthread_select_yields = yes ; then
26878					ol_with_yielding_select=yes
26879				fi
26880			fi
26881
26882						CPPFLAGS="$save_CPPFLAGS"
26883			LIBS="$save_LIBS"
26884		else
26885			as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
26886		fi
26887	fi
26888
26889	if test $ol_with_threads = posix ; then
26890		as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
26891	fi
26892	;;
26893esac
26894
26895case $ol_with_threads in auto | yes | mach)
26896
26897		for ac_header in mach/cthreads.h cthreads.h
26898do :
26899  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26900ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26901if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26902  cat >>confdefs.h <<_ACEOF
26903#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26904_ACEOF
26905
26906fi
26907
26908done
26909
26910	if test $ac_cv_header_mach_cthreads_h = yes ; then
26911		ol_with_threads=found
26912
26913				ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
26914if test "x$ac_cv_func_cthread_fork" = xyes; then :
26915  ol_link_threads=yes
26916fi
26917
26918
26919		if test $ol_link_threads = no ; then
26920									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
26921$as_echo_n "checking for cthread_fork with -all_load... " >&6; }
26922if ${ol_cv_cthread_all_load+:} false; then :
26923  $as_echo_n "(cached) " >&6
26924else
26925
26926								save_LIBS="$LIBS"
26927				LIBS="-all_load $LIBS"
26928				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26929/* end confdefs.h.  */
26930#include <mach/cthreads.h>
26931int
26932main ()
26933{
26934
26935					cthread_fork((void *)0, (void *)0);
26936
26937  ;
26938  return 0;
26939}
26940_ACEOF
26941if ac_fn_c_try_link "$LINENO"; then :
26942  ol_cv_cthread_all_load=yes
26943else
26944  ol_cv_cthread_all_load=no
26945fi
26946rm -f core conftest.err conftest.$ac_objext \
26947    conftest$ac_exeext conftest.$ac_ext
26948								LIBS="$save_LIBS"
26949
26950fi
26951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
26952$as_echo "$ol_cv_cthread_all_load" >&6; }
26953
26954			if test $ol_cv_cthread_all_load = yes ; then
26955				LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
26956				ol_link_threads=mach
26957				ol_with_threads=found
26958			fi
26959		fi
26960
26961	elif test $ac_cv_header_cthreads_h = yes ; then
26962
26963		ol_with_threads=found
26964
26965				save_LIBS="$LIBS"
26966		LIBS="$LIBS -lthreads"
26967		ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
26968if test "x$ac_cv_func_cthread_fork" = xyes; then :
26969  ol_link_threads=yes
26970fi
26971
26972		LIBS="$save_LIBS"
26973
26974		if test $ol_link_threads = yes ; then
26975			LTHREAD_LIBS="-lthreads"
26976			ol_link_threads=mach
26977			ol_with_threads=found
26978		else
26979			as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
26980		fi
26981
26982	elif test $ol_with_threads = mach ; then
26983		as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
26984	fi
26985
26986	if test $ol_link_threads = mach ; then
26987
26988$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
26989
26990	elif test $ol_with_threads = found ; then
26991		as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
26992	fi
26993	;;
26994esac
26995
26996case $ol_with_threads in auto | yes | pth)
26997
26998	for ac_header in pth.h
26999do :
27000  ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
27001if test "x$ac_cv_header_pth_h" = xyes; then :
27002  cat >>confdefs.h <<_ACEOF
27003#define HAVE_PTH_H 1
27004_ACEOF
27005
27006fi
27007
27008done
27009
27010
27011	if test $ac_cv_header_pth_h = yes ; then
27012		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
27013$as_echo_n "checking for pth_version in -lpth... " >&6; }
27014if ${ac_cv_lib_pth_pth_version+:} false; then :
27015  $as_echo_n "(cached) " >&6
27016else
27017  ac_check_lib_save_LIBS=$LIBS
27018LIBS="-lpth  $LIBS"
27019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27020/* end confdefs.h.  */
27021
27022/* Override any GCC internal prototype to avoid an error.
27023   Use char because int might match the return type of a GCC
27024   builtin and then its argument prototype would still apply.  */
27025#ifdef __cplusplus
27026extern "C"
27027#endif
27028char pth_version ();
27029int
27030main ()
27031{
27032return pth_version ();
27033  ;
27034  return 0;
27035}
27036_ACEOF
27037if ac_fn_c_try_link "$LINENO"; then :
27038  ac_cv_lib_pth_pth_version=yes
27039else
27040  ac_cv_lib_pth_pth_version=no
27041fi
27042rm -f core conftest.err conftest.$ac_objext \
27043    conftest$ac_exeext conftest.$ac_ext
27044LIBS=$ac_check_lib_save_LIBS
27045fi
27046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
27047$as_echo "$ac_cv_lib_pth_pth_version" >&6; }
27048if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
27049  have_pth=yes
27050else
27051  have_pth=no
27052fi
27053
27054
27055		if test $have_pth = yes ; then
27056
27057$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
27058
27059			LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
27060			ol_link_threads=pth
27061			ol_with_threads=found
27062
27063			if test x$ol_with_yielding_select = xauto ; then
27064				ol_with_yielding_select=yes
27065			fi
27066		fi
27067	fi
27068	;;
27069esac
27070
27071case $ol_with_threads in auto | yes | lwp)
27072
27073		for ac_header in thread.h synch.h
27074do :
27075  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27076ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27077if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27078  cat >>confdefs.h <<_ACEOF
27079#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27080_ACEOF
27081
27082fi
27083
27084done
27085
27086	if test $ac_cv_header_thread_h = yes &&
27087	   test $ac_cv_header_synch_h = yes ; then
27088		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
27089$as_echo_n "checking for thr_create in -lthread... " >&6; }
27090if ${ac_cv_lib_thread_thr_create+:} false; then :
27091  $as_echo_n "(cached) " >&6
27092else
27093  ac_check_lib_save_LIBS=$LIBS
27094LIBS="-lthread  $LIBS"
27095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27096/* end confdefs.h.  */
27097
27098/* Override any GCC internal prototype to avoid an error.
27099   Use char because int might match the return type of a GCC
27100   builtin and then its argument prototype would still apply.  */
27101#ifdef __cplusplus
27102extern "C"
27103#endif
27104char thr_create ();
27105int
27106main ()
27107{
27108return thr_create ();
27109  ;
27110  return 0;
27111}
27112_ACEOF
27113if ac_fn_c_try_link "$LINENO"; then :
27114  ac_cv_lib_thread_thr_create=yes
27115else
27116  ac_cv_lib_thread_thr_create=no
27117fi
27118rm -f core conftest.err conftest.$ac_objext \
27119    conftest$ac_exeext conftest.$ac_ext
27120LIBS=$ac_check_lib_save_LIBS
27121fi
27122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
27123$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
27124if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
27125  have_thr=yes
27126else
27127  have_thr=no
27128fi
27129
27130
27131		if test $have_thr = yes ; then
27132
27133$as_echo "#define HAVE_THR 1" >>confdefs.h
27134
27135			LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
27136			ol_link_threads=thr
27137
27138			if test x$ol_with_yielding_select = xauto ; then
27139				ol_with_yielding_select=yes
27140			fi
27141
27142						for ac_func in \
27143				thr_setconcurrency \
27144				thr_getconcurrency \
27145
27146do :
27147  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27148ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27149if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27150  cat >>confdefs.h <<_ACEOF
27151#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27152_ACEOF
27153
27154fi
27155done
27156
27157		fi
27158	fi
27159
27160		for ac_header in lwp/lwp.h
27161do :
27162  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
27163if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
27164  cat >>confdefs.h <<_ACEOF
27165#define HAVE_LWP_LWP_H 1
27166_ACEOF
27167
27168fi
27169
27170done
27171
27172	if test $ac_cv_header_lwp_lwp_h = yes ; then
27173		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
27174$as_echo_n "checking for lwp_create in -llwp... " >&6; }
27175if ${ac_cv_lib_lwp_lwp_create+:} false; then :
27176  $as_echo_n "(cached) " >&6
27177else
27178  ac_check_lib_save_LIBS=$LIBS
27179LIBS="-llwp  $LIBS"
27180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27181/* end confdefs.h.  */
27182
27183/* Override any GCC internal prototype to avoid an error.
27184   Use char because int might match the return type of a GCC
27185   builtin and then its argument prototype would still apply.  */
27186#ifdef __cplusplus
27187extern "C"
27188#endif
27189char lwp_create ();
27190int
27191main ()
27192{
27193return lwp_create ();
27194  ;
27195  return 0;
27196}
27197_ACEOF
27198if ac_fn_c_try_link "$LINENO"; then :
27199  ac_cv_lib_lwp_lwp_create=yes
27200else
27201  ac_cv_lib_lwp_lwp_create=no
27202fi
27203rm -f core conftest.err conftest.$ac_objext \
27204    conftest$ac_exeext conftest.$ac_ext
27205LIBS=$ac_check_lib_save_LIBS
27206fi
27207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
27208$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
27209if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
27210  have_lwp=yes
27211else
27212  have_lwp=no
27213fi
27214
27215
27216		if test $have_lwp = yes ; then
27217
27218$as_echo "#define HAVE_LWP 1" >>confdefs.h
27219
27220			LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
27221			ol_link_threads=lwp
27222
27223			if test x$ol_with_yielding_select = xauto ; then
27224				ol_with_yielding_select=no
27225			fi
27226		fi
27227	fi
27228	;;
27229esac
27230
27231if test $ol_with_yielding_select = yes ; then
27232
27233$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
27234
27235fi
27236
27237if test $ol_with_threads = manual ; then
27238		ol_link_threads=yes
27239
27240	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
27241$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
27242
27243	for ac_header in pthread.h sched.h
27244do :
27245  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27246ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27247if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27248  cat >>confdefs.h <<_ACEOF
27249#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27250_ACEOF
27251
27252fi
27253
27254done
27255
27256	for ac_func in sched_yield pthread_yield
27257do :
27258  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27259ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27260if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27261  cat >>confdefs.h <<_ACEOF
27262#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27263_ACEOF
27264
27265fi
27266done
27267
27268
27269	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
27270$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
27271if ${ol_cv_header_linux_threads+:} false; then :
27272  $as_echo_n "(cached) " >&6
27273else
27274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27275/* end confdefs.h.  */
27276#include <pthread.h>
27277_ACEOF
27278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27279  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
27280  ol_cv_header_linux_threads=yes
27281else
27282  ol_cv_header_linux_threads=no
27283fi
27284rm -f conftest*
27285
27286
27287fi
27288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
27289$as_echo "$ol_cv_header_linux_threads" >&6; }
27290	if test $ol_cv_header_linux_threads = yes; then
27291
27292$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
27293
27294	fi
27295
27296
27297	for ac_header in mach/cthreads.h
27298do :
27299  ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
27300if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
27301  cat >>confdefs.h <<_ACEOF
27302#define HAVE_MACH_CTHREADS_H 1
27303_ACEOF
27304
27305fi
27306
27307done
27308
27309	for ac_header in lwp/lwp.h
27310do :
27311  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
27312if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
27313  cat >>confdefs.h <<_ACEOF
27314#define HAVE_LWP_LWP_H 1
27315_ACEOF
27316
27317fi
27318
27319done
27320
27321	for ac_header in thread.h synch.h
27322do :
27323  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27324ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27325if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27326  cat >>confdefs.h <<_ACEOF
27327#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27328_ACEOF
27329
27330fi
27331
27332done
27333
27334fi
27335
27336if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27337
27338$as_echo "#define REENTRANT 1" >>confdefs.h
27339
27340
27341$as_echo "#define _REENTRANT 1" >>confdefs.h
27342
27343
27344$as_echo "#define THREAD_SAFE 1" >>confdefs.h
27345
27346
27347$as_echo "#define _THREAD_SAFE 1" >>confdefs.h
27348
27349
27350$as_echo "#define THREADSAFE 1" >>confdefs.h
27351
27352
27353$as_echo "#define _THREADSAFE 1" >>confdefs.h
27354
27355
27356$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
27357
27358
27359			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
27360$as_echo_n "checking for thread specific errno... " >&6; }
27361if ${ol_cv_errno_thread_specific+:} false; then :
27362  $as_echo_n "(cached) " >&6
27363else
27364
27365		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27366/* end confdefs.h.  */
27367#include <errno.h>
27368int
27369main ()
27370{
27371errno = 0;
27372  ;
27373  return 0;
27374}
27375_ACEOF
27376if ac_fn_c_try_link "$LINENO"; then :
27377  ol_cv_errno_thread_specific=yes
27378else
27379  ol_cv_errno_thread_specific=no
27380fi
27381rm -f core conftest.err conftest.$ac_objext \
27382    conftest$ac_exeext conftest.$ac_ext
27383
27384fi
27385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
27386$as_echo "$ol_cv_errno_thread_specific" >&6; }
27387
27388			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
27389$as_echo_n "checking for thread specific h_errno... " >&6; }
27390if ${ol_cv_h_errno_thread_specific+:} false; then :
27391  $as_echo_n "(cached) " >&6
27392else
27393
27394		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27395/* end confdefs.h.  */
27396#include <netdb.h>
27397int
27398main ()
27399{
27400h_errno = 0;
27401  ;
27402  return 0;
27403}
27404_ACEOF
27405if ac_fn_c_try_link "$LINENO"; then :
27406  ol_cv_h_errno_thread_specific=yes
27407else
27408  ol_cv_h_errno_thread_specific=no
27409fi
27410rm -f core conftest.err conftest.$ac_objext \
27411    conftest$ac_exeext conftest.$ac_ext
27412
27413fi
27414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
27415$as_echo "$ol_cv_h_errno_thread_specific" >&6; }
27416
27417	if test $ol_cv_errno_thread_specific != yes ||
27418	   test $ol_cv_h_errno_thread_specific != yes ; then
27419		LIBS="$LTHREAD_LIBS $LIBS"
27420		LTHREAD_LIBS=""
27421	fi
27422
27423fi
27424
27425if test $ol_link_threads = no ; then
27426	if test $ol_with_threads = yes ; then
27427		as_fn_error $? "no suitable thread support" "$LINENO" 5
27428	fi
27429
27430	if test $ol_with_threads = auto ; then
27431		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
27432$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27433		ol_with_threads=no
27434	fi
27435
27436
27437$as_echo "#define NO_THREADS 1" >>confdefs.h
27438
27439	LTHREAD_LIBS=""
27440	BUILD_THREAD=no
27441else
27442	BUILD_THREAD=yes
27443fi
27444
27445if test $ol_link_threads != no ; then
27446
27447$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
27448
27449fi
27450
27451# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
27452case "$ol_with_threads" in
27453 no)
27454    ol_pthread_ok=no
27455
27456    ;;
27457 *)
27458    ol_found_pthreads=yes
27459    ;;
27460esac
27461
27462ac_ext=c
27463ac_cpp='$CPP $CPPFLAGS'
27464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27466ac_compiler_gnu=$ac_cv_c_compiler_gnu
27467
27468
27469
27470
27471
27472
27473    case "$ol_found_pthreads" in
27474     yes)
27475	saved_LIBS="$LIBS"
27476	LIBS="$LTHREAD_LIBS $LIBS"
27477	saved_CFLAGS="$CFLAGS"
27478	CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
27479	for ac_func in sem_timedwait
27480do :
27481  ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
27482if test "x$ac_cv_func_sem_timedwait" = xyes; then :
27483  cat >>confdefs.h <<_ACEOF
27484#define HAVE_SEM_TIMEDWAIT 1
27485_ACEOF
27486
27487fi
27488done
27489
27490	LIBS="$saved_LIBS"
27491	{ saved_LIBS=; unset saved_LIBS;}
27492	CFLAGS="$saved_CFLAGS"
27493	{ saved_CFLAGS=; unset saved_CFLAGS;}
27494	case "$ac_cv_func_sem_timedwait" in
27495	 yes)
27496	    PTHREAD_LIBS="$LTHREAD_LIBS"
27497	    have_pthreads=yes
27498	esac
27499    esac
27500esac
27501
27502case "$have_pthreads" in
27503 yes)
27504    CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
27505    saved_LIBS="$LIBS"
27506    LIBS="$LTHREAD_LIBS $LIBS"
27507    saved_CFLAGS="$CFLAGS"
27508    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
27509    # The cast to long int works around a bug in the HP C Compiler
27510# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27511# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27512# This bug is HP SR number 8606223364.
27513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
27514$as_echo_n "checking size of pthread_t... " >&6; }
27515if ${ac_cv_sizeof_pthread_t+:} false; then :
27516  $as_echo_n "(cached) " >&6
27517else
27518  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
27519	    $ac_includes_default
27520	    #include <pthread.h>
27521
27522
27523"; then :
27524
27525else
27526  if test "$ac_cv_type_pthread_t" = yes; then
27527     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27529as_fn_error 77 "cannot compute sizeof (pthread_t)
27530See \`config.log' for more details" "$LINENO" 5; }
27531   else
27532     ac_cv_sizeof_pthread_t=0
27533   fi
27534fi
27535
27536fi
27537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
27538$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
27539
27540
27541
27542cat >>confdefs.h <<_ACEOF
27543#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
27544_ACEOF
27545
27546
27547    LIBISC_PTHREADS_NOTHREADS=pthreads
27548
27549$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
27550
27551    #
27552    # We'd like to use sigwait() too
27553    #
27554    ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
27555if test "x$ac_cv_func_sigwait" = xyes; then :
27556  have_sigwait=yes
27557else
27558  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
27559$as_echo_n "checking for sigwait in -lc... " >&6; }
27560if ${ac_cv_lib_c_sigwait+:} false; then :
27561  $as_echo_n "(cached) " >&6
27562else
27563  ac_check_lib_save_LIBS=$LIBS
27564LIBS="-lc  $LIBS"
27565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27566/* end confdefs.h.  */
27567
27568/* Override any GCC internal prototype to avoid an error.
27569   Use char because int might match the return type of a GCC
27570   builtin and then its argument prototype would still apply.  */
27571#ifdef __cplusplus
27572extern "C"
27573#endif
27574char sigwait ();
27575int
27576main ()
27577{
27578return sigwait ();
27579  ;
27580  return 0;
27581}
27582_ACEOF
27583if ac_fn_c_try_link "$LINENO"; then :
27584  ac_cv_lib_c_sigwait=yes
27585else
27586  ac_cv_lib_c_sigwait=no
27587fi
27588rm -f core conftest.err conftest.$ac_objext \
27589    conftest$ac_exeext conftest.$ac_ext
27590LIBS=$ac_check_lib_save_LIBS
27591fi
27592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
27593$as_echo "$ac_cv_lib_c_sigwait" >&6; }
27594if test "x$ac_cv_lib_c_sigwait" = xyes; then :
27595  have_sigwait=yes
27596else
27597  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
27598$as_echo_n "checking for sigwait in -lpthread... " >&6; }
27599if ${ac_cv_lib_pthread_sigwait+:} false; then :
27600  $as_echo_n "(cached) " >&6
27601else
27602  ac_check_lib_save_LIBS=$LIBS
27603LIBS="-lpthread  $LIBS"
27604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27605/* end confdefs.h.  */
27606
27607/* Override any GCC internal prototype to avoid an error.
27608   Use char because int might match the return type of a GCC
27609   builtin and then its argument prototype would still apply.  */
27610#ifdef __cplusplus
27611extern "C"
27612#endif
27613char sigwait ();
27614int
27615main ()
27616{
27617return sigwait ();
27618  ;
27619  return 0;
27620}
27621_ACEOF
27622if ac_fn_c_try_link "$LINENO"; then :
27623  ac_cv_lib_pthread_sigwait=yes
27624else
27625  ac_cv_lib_pthread_sigwait=no
27626fi
27627rm -f core conftest.err conftest.$ac_objext \
27628    conftest$ac_exeext conftest.$ac_ext
27629LIBS=$ac_check_lib_save_LIBS
27630fi
27631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
27632$as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
27633if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
27634  have_sigwait=yes
27635else
27636  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
27637$as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
27638if ${ac_cv_lib_pthread__Psigwait+:} false; then :
27639  $as_echo_n "(cached) " >&6
27640else
27641  ac_check_lib_save_LIBS=$LIBS
27642LIBS="-lpthread  $LIBS"
27643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27644/* end confdefs.h.  */
27645
27646/* Override any GCC internal prototype to avoid an error.
27647   Use char because int might match the return type of a GCC
27648   builtin and then its argument prototype would still apply.  */
27649#ifdef __cplusplus
27650extern "C"
27651#endif
27652char _Psigwait ();
27653int
27654main ()
27655{
27656return _Psigwait ();
27657  ;
27658  return 0;
27659}
27660_ACEOF
27661if ac_fn_c_try_link "$LINENO"; then :
27662  ac_cv_lib_pthread__Psigwait=yes
27663else
27664  ac_cv_lib_pthread__Psigwait=no
27665fi
27666rm -f core conftest.err conftest.$ac_objext \
27667    conftest$ac_exeext conftest.$ac_ext
27668LIBS=$ac_check_lib_save_LIBS
27669fi
27670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
27671$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
27672if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
27673  have_sigwait=yes
27674else
27675  have_sigwait=no
27676
27677fi
27678
27679
27680fi
27681
27682
27683fi
27684
27685
27686fi
27687
27688    case "$host:$have_sigwait" in
27689     *-freebsd*:no)
27690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
27691$as_echo_n "checking for sigwait in -lc_r... " >&6; }
27692if ${ac_cv_lib_c_r_sigwait+:} false; then :
27693  $as_echo_n "(cached) " >&6
27694else
27695  ac_check_lib_save_LIBS=$LIBS
27696LIBS="-lc_r  $LIBS"
27697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27698/* end confdefs.h.  */
27699
27700/* Override any GCC internal prototype to avoid an error.
27701   Use char because int might match the return type of a GCC
27702   builtin and then its argument prototype would still apply.  */
27703#ifdef __cplusplus
27704extern "C"
27705#endif
27706char sigwait ();
27707int
27708main ()
27709{
27710return sigwait ();
27711  ;
27712  return 0;
27713}
27714_ACEOF
27715if ac_fn_c_try_link "$LINENO"; then :
27716  ac_cv_lib_c_r_sigwait=yes
27717else
27718  ac_cv_lib_c_r_sigwait=no
27719fi
27720rm -f core conftest.err conftest.$ac_objext \
27721    conftest$ac_exeext conftest.$ac_ext
27722LIBS=$ac_check_lib_save_LIBS
27723fi
27724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
27725$as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
27726if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
27727  have_sigwait=yes
27728
27729fi
27730
27731    esac
27732    case "$have_sigwait" in
27733     yes)
27734	ac_cv_func_sigwait=yes
27735
27736$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
27737
27738    esac
27739
27740    for ac_func in pthread_attr_getstacksize
27741do :
27742  ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
27743if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
27744  cat >>confdefs.h <<_ACEOF
27745#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
27746_ACEOF
27747
27748fi
27749done
27750
27751    for ac_func in pthread_attr_setstacksize sysconf
27752do :
27753  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27754ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27755if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27756  cat >>confdefs.h <<_ACEOF
27757#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27758_ACEOF
27759
27760fi
27761done
27762
27763
27764    case "$host" in
27765     *-freebsd5.[012]|*-freebsd5.[012].*)
27766	;;
27767     *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
27768
27769$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
27770
27771	;;
27772     *-bsdi3.*|*-bsdi4.0*)
27773
27774$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
27775
27776	;;
27777     *-linux*)
27778
27779$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
27780
27781	;;
27782     *-solaris*)
27783	$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
27784
27785	for ac_func in pthread_setconcurrency
27786do :
27787  ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
27788if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
27789  cat >>confdefs.h <<_ACEOF
27790#define HAVE_PTHREAD_SETCONCURRENCY 1
27791_ACEOF
27792
27793fi
27794done
27795
27796	case "$ac_cv_func_pthread_setconcurrency" in
27797	 yes)
27798
27799$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
27800
27801	esac
27802	;;
27803     *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
27804
27805$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
27806
27807	;;
27808    esac
27809    hack_shutup_pthreadonceinit=no
27810    case "$host" in
27811     *-aix5.[123].*)
27812	hack_shutup_pthreadonceinit=yes
27813	;;
27814     *-solaris2.[89])
27815	hack_shutup_pthreadonceinit=yes
27816	;;
27817     *-solaris2.1[0-9])
27818	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
27819$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
27820if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
27821  $as_echo_n "(cached) " >&6
27822else
27823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27824/* end confdefs.h.  */
27825
27826			#include <pthread.h>
27827
27828int
27829main ()
27830{
27831
27832		        static pthread_once_t once_test =
27833						PTHREAD_ONCE_INIT;
27834
27835
27836  ;
27837  return 0;
27838}
27839_ACEOF
27840if ac_fn_c_try_compile "$LINENO"; then :
27841  ntp_cv_braces_around_pthread_once_init=no
27842else
27843  ntp_cv_braces_around_pthread_once_init=yes
27844
27845fi
27846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27847
27848fi
27849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
27850$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
27851	case "$ntp_cv_braces_around_pthread_once_init" in
27852	 yes)
27853	    hack_shutup_pthreadonceinit=yes
27854	esac
27855	;;
27856    esac
27857    case "$hack_shutup_pthreadonceinit" in
27858     yes)
27859
27860$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
27861
27862    esac
27863    LIBS="$saved_LIBS"
27864    { saved_LIBS=; unset saved_LIBS;}
27865    CFLAGS="$saved_CFLAGS"
27866    { saved_CFLAGS=; unset saved_CFLAGS;}
27867    ;;
27868 *)
27869    LIBISC_PTHREADS_NOTHREADS=nothreads
27870    ;;
27871esac
27872
27873 if test "$have_pthreads" != "no"; then
27874  PTHREADS_TRUE=
27875  PTHREADS_FALSE='#'
27876else
27877  PTHREADS_TRUE='#'
27878  PTHREADS_FALSE=
27879fi
27880
27881
27882
27883
27884
27885
27886
27887case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
27888 no:yes)
27889    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
27890$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
27891if ${ntp_cv_vsnprintf_percent_m+:} false; then :
27892  $as_echo_n "(cached) " >&6
27893else
27894  if test "$cross_compiling" = yes; then :
27895  ntp_cv_vsnprintf_percent_m=no
27896
27897else
27898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27899/* end confdefs.h.  */
27900
27901		    #include <stdarg.h>
27902		    #include <errno.h>
27903		    #include <stdio.h>
27904		    #include <string.h>
27905
27906		    int call_vsnprintf(
27907			    char *	dst,
27908			    size_t	sz,
27909			    const char *fmt,
27910			    ...
27911			    );
27912
27913		    int call_vsnprintf(
27914			    char *	dst,
27915			    size_t	sz,
27916			    const char *fmt,
27917			    ...
27918			    )
27919		    {
27920			    va_list	ap;
27921			    int		rc;
27922
27923			    va_start(ap, fmt);
27924			    rc = vsnprintf(dst, sz, fmt, ap);
27925			    va_end(ap);
27926
27927			    return rc;
27928		    }
27929
27930int
27931main ()
27932{
27933
27934		    char	sbuf[512];
27935		    char	pbuf[512];
27936		    int		slen;
27937
27938		    strcpy(sbuf, strerror(ENOENT));
27939		    errno = ENOENT;
27940		    slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
27941					  "wrong");
27942		    return strcmp(sbuf, pbuf);
27943
27944
27945  ;
27946  return 0;
27947}
27948_ACEOF
27949if ac_fn_c_try_run "$LINENO"; then :
27950  ntp_cv_vsnprintf_percent_m=yes
27951else
27952  ntp_cv_vsnprintf_percent_m=no
27953fi
27954rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27955  conftest.$ac_objext conftest.beam conftest.$ac_ext
27956fi
27957
27958
27959fi
27960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
27961$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
27962    case "$ntp_cv_vsnprintf_percent_m" in
27963     yes)
27964
27965$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
27966
27967    esac
27968esac
27969
27970for ac_header in sys/clockctl.h
27971do :
27972  ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
27973if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
27974  cat >>confdefs.h <<_ACEOF
27975#define HAVE_SYS_CLOCKCTL_H 1
27976_ACEOF
27977
27978fi
27979
27980done
27981
27982
27983# Check whether --enable-clockctl was given.
27984if test "${enable_clockctl+set}" = set; then :
27985  enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
27986else
27987  ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
27988
27989fi
27990
27991
27992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
27993$as_echo_n "checking if we should use /dev/clockctl... " >&6; }
27994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
27995$as_echo "$ntp_use_dev_clockctl" >&6; }
27996
27997
27998for ac_header in sys/capability.h sys/prctl.h
27999do :
28000  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28001ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28002if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28003  cat >>confdefs.h <<_ACEOF
28004#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28005_ACEOF
28006
28007fi
28008
28009done
28010
28011
28012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
28013$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
28014
28015case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
28016 yesyes)
28017    case "$host" in
28018     mips-sgi-irix*)
28019	ntp_have_linuxcaps=no
28020	;;
28021     *) ntp_have_linuxcaps=yes
28022	;;
28023    esac
28024    ;;
28025 *)
28026    ntp_have_linuxcaps=no
28027    ;;
28028esac
28029
28030# Check whether --enable-linuxcaps was given.
28031if test "${enable_linuxcaps+set}" = set; then :
28032  enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
28033
28034fi
28035
28036
28037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
28038$as_echo "$ntp_have_linuxcaps" >&6; }
28039
28040case "$ntp_have_linuxcaps" in
28041 yes)
28042
28043$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
28044
28045    LIBS="$LIBS -lcap"
28046    ;;
28047esac
28048
28049
28050for ac_header in priv.h
28051do :
28052  ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
28053if test "x$ac_cv_header_priv_h" = xyes; then :
28054  cat >>confdefs.h <<_ACEOF
28055#define HAVE_PRIV_H 1
28056_ACEOF
28057
28058fi
28059
28060done
28061
28062
28063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
28064$as_echo_n "checking if we have solaris privileges... " >&6; }
28065
28066case "$ac_cv_header_priv_h" in
28067 yes)
28068    case "$host" in
28069     *-solaris*)
28070	ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
28071if test "x$ac_cv_func_setppriv" = xyes; then :
28072  ntp_have_solarisprivs=yes
28073else
28074  ntp_have_solarisprivs=no
28075
28076fi
28077
28078	;;
28079    esac
28080esac
28081
28082# Check whether --enable-solarisprivs was given.
28083if test "${enable_solarisprivs+set}" = set; then :
28084  enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
28085
28086fi
28087
28088
28089
28090case "$ntp_have_solarisprivs" in
28091 yes)
28092
28093$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
28094
28095esac
28096
28097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
28098$as_echo "$ntp_have_solarisprivs" >&6; }
28099
28100case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
28101 *yes*)
28102
28103$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h
28104
28105esac
28106
28107case "$host" in
28108 *-*-darwin*)
28109    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
28110$as_echo_n "checking for library containing res_9_init... " >&6; }
28111if ${ac_cv_search_res_9_init+:} false; then :
28112  $as_echo_n "(cached) " >&6
28113else
28114  ac_func_search_save_LIBS=$LIBS
28115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28116/* end confdefs.h.  */
28117
28118/* Override any GCC internal prototype to avoid an error.
28119   Use char because int might match the return type of a GCC
28120   builtin and then its argument prototype would still apply.  */
28121#ifdef __cplusplus
28122extern "C"
28123#endif
28124char res_9_init ();
28125int
28126main ()
28127{
28128return res_9_init ();
28129  ;
28130  return 0;
28131}
28132_ACEOF
28133for ac_lib in '' resolv; do
28134  if test -z "$ac_lib"; then
28135    ac_res="none required"
28136  else
28137    ac_res=-l$ac_lib
28138    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28139  fi
28140  if ac_fn_c_try_link "$LINENO"; then :
28141  ac_cv_search_res_9_init=$ac_res
28142fi
28143rm -f core conftest.err conftest.$ac_objext \
28144    conftest$ac_exeext
28145  if ${ac_cv_search_res_9_init+:} false; then :
28146  break
28147fi
28148done
28149if ${ac_cv_search_res_9_init+:} false; then :
28150
28151else
28152  ac_cv_search_res_9_init=no
28153fi
28154rm conftest.$ac_ext
28155LIBS=$ac_func_search_save_LIBS
28156fi
28157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
28158$as_echo "$ac_cv_search_res_9_init" >&6; }
28159ac_res=$ac_cv_search_res_9_init
28160if test "$ac_res" != no; then :
28161  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28162
28163fi
28164
28165    ;;
28166 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
28167$as_echo_n "checking for library containing res_init... " >&6; }
28168if ${ac_cv_search_res_init+:} false; then :
28169  $as_echo_n "(cached) " >&6
28170else
28171  ac_func_search_save_LIBS=$LIBS
28172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28173/* end confdefs.h.  */
28174
28175/* Override any GCC internal prototype to avoid an error.
28176   Use char because int might match the return type of a GCC
28177   builtin and then its argument prototype would still apply.  */
28178#ifdef __cplusplus
28179extern "C"
28180#endif
28181char res_init ();
28182int
28183main ()
28184{
28185return res_init ();
28186  ;
28187  return 0;
28188}
28189_ACEOF
28190for ac_lib in '' resolv; do
28191  if test -z "$ac_lib"; then
28192    ac_res="none required"
28193  else
28194    ac_res=-l$ac_lib
28195    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28196  fi
28197  if ac_fn_c_try_link "$LINENO"; then :
28198  ac_cv_search_res_init=$ac_res
28199fi
28200rm -f core conftest.err conftest.$ac_objext \
28201    conftest$ac_exeext
28202  if ${ac_cv_search_res_init+:} false; then :
28203  break
28204fi
28205done
28206if ${ac_cv_search_res_init+:} false; then :
28207
28208else
28209  ac_cv_search_res_init=no
28210fi
28211rm conftest.$ac_ext
28212LIBS=$ac_func_search_save_LIBS
28213fi
28214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
28215$as_echo "$ac_cv_search_res_init" >&6; }
28216ac_res=$ac_cv_search_res_init
28217if test "$ac_res" != no; then :
28218  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28219
28220fi
28221
28222    ;;
28223esac
28224for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
28225do :
28226  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28227ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
28228#  include <sys/types.h>
28229#endif
28230#ifdef HAVE_NETINET_IN_H
28231#  include <netinet/in.h>   /* inet_ functions / structs */
28232#endif
28233#ifdef HAVE_ARPA_NAMESER_H
28234#  include <arpa/nameser.h> /* DNS HEADER struct */
28235#endif
28236#ifdef HAVE_NETDB_H
28237#  include <netdb.h>
28238#endif
28239"
28240if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28241  cat >>confdefs.h <<_ACEOF
28242#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28243_ACEOF
28244
28245fi
28246
28247done
28248
28249
28250#HMS: Why do we do this check so "early"?
28251for ac_func in res_init
28252do :
28253  ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
28254if test "x$ac_cv_func_res_init" = xyes; then :
28255  cat >>confdefs.h <<_ACEOF
28256#define HAVE_RES_INIT 1
28257_ACEOF
28258
28259else
28260  for ac_func in __res_init
28261do :
28262  ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
28263if test "x$ac_cv_func___res_init" = xyes; then :
28264  cat >>confdefs.h <<_ACEOF
28265#define HAVE___RES_INIT 1
28266_ACEOF
28267
28268fi
28269done
28270
28271fi
28272done
28273
28274
28275# We also need -lsocket, but we have tested for that already.
28276ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28277if test "x$ac_cv_func_inet_ntop" = xyes; then :
28278
28279else
28280
28281$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
28282
28283fi
28284
28285ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28286if test "x$ac_cv_func_inet_pton" = xyes; then :
28287
28288else
28289
28290$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
28291
28292fi
28293
28294
28295ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
28296if test "x$ac_cv_type_uintptr_t" = xyes; then :
28297
28298cat >>confdefs.h <<_ACEOF
28299#define HAVE_UINTPTR_T 1
28300_ACEOF
28301
28302
28303fi
28304ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
28305if test "x$ac_cv_type_int32" = xyes; then :
28306
28307cat >>confdefs.h <<_ACEOF
28308#define HAVE_INT32 1
28309_ACEOF
28310
28311
28312fi
28313ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
28314if test "x$ac_cv_type_u_int32" = xyes; then :
28315
28316cat >>confdefs.h <<_ACEOF
28317#define HAVE_U_INT32 1
28318_ACEOF
28319
28320
28321fi
28322
28323
28324
28325
28326case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
28327 no::yes)
28328    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
28329$as_echo_n "checking for int32 with DNS headers included... " >&6; }
28330if ${ntp_cv_type_int32_with_dns+:} false; then :
28331  $as_echo_n "(cached) " >&6
28332else
28333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28334/* end confdefs.h.  */
28335
28336		    #ifdef HAVE_ARPA_NAMESER_H
28337		    # include <arpa/nameser.h>
28338		    #endif
28339		    #include <resolv.h>
28340
28341int
28342main ()
28343{
28344
28345		    size_t cb = sizeof(int32);
28346
28347
28348  ;
28349  return 0;
28350}
28351_ACEOF
28352if ac_fn_c_try_compile "$LINENO"; then :
28353  ntp_cv_type_int32_with_dns=yes
28354else
28355  ntp_cv_type_int32_with_dns=no
28356
28357fi
28358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28359
28360fi
28361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
28362$as_echo "$ntp_cv_type_int32_with_dns" >&6; }
28363    case "$ntp_cv_type_int32_with_dns" in
28364     yes)
28365
28366$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
28367
28368    esac
28369esac
28370
28371case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
28372 no::yes)
28373    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
28374$as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
28375if ${ntp_cv_type_u_int32_with_dns+:} false; then :
28376  $as_echo_n "(cached) " >&6
28377else
28378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28379/* end confdefs.h.  */
28380
28381		    #ifdef HAVE_ARPA_NAMESER_H
28382		    # include <arpa/nameser.h>
28383		    #endif
28384		    #include <resolv.h>
28385
28386int
28387main ()
28388{
28389
28390		    size_t cb = sizeof(u_int32);
28391
28392
28393  ;
28394  return 0;
28395}
28396_ACEOF
28397if ac_fn_c_try_compile "$LINENO"; then :
28398  ntp_cv_type_u_int32_with_dns=yes
28399else
28400  ntp_cv_type_u_int32_with_dns=no
28401
28402fi
28403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28404
28405fi
28406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
28407$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
28408    case "$ntp_cv_type_u_int32_with_dns" in
28409     yes)
28410
28411$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
28412
28413    esac
28414esac
28415
28416for ac_header in sys/timepps.h
28417do :
28418  ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
28419	#ifdef HAVE_SYS_TIME_H
28420	# include <sys/time.h>
28421	#endif
28422	#ifdef HAVE_ERRNO_H
28423	# include <errno.h>
28424	#endif
28425
28426
28427"
28428if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
28429  cat >>confdefs.h <<_ACEOF
28430#define HAVE_SYS_TIMEPPS_H 1
28431_ACEOF
28432
28433fi
28434
28435done
28436
28437
28438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
28439$as_echo_n "checking for struct timespec... " >&6; }
28440if ${ntp_cv_struct_timespec+:} false; then :
28441  $as_echo_n "(cached) " >&6
28442else
28443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28444/* end confdefs.h.  */
28445
28446		#include <sys/time.h>
28447		/* Under SunOS, timespec is in sys/timepps.h,
28448		   which needs errno.h and FRAC */
28449		#ifdef HAVE_ERRNO_H
28450		# include <errno.h>
28451		#endif
28452		#ifdef HAVE_SYS_TIMEPPS_H
28453		# define FRAC 4294967296
28454		# include <sys/timepps.h>
28455		#endif
28456
28457int
28458main ()
28459{
28460
28461		struct timespec n;
28462
28463
28464  ;
28465  return 0;
28466}
28467_ACEOF
28468if ac_fn_c_try_compile "$LINENO"; then :
28469  ntp_cv_struct_timespec=yes
28470else
28471  ntp_cv_struct_timespec=no
28472
28473fi
28474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28475
28476fi
28477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
28478$as_echo "$ntp_cv_struct_timespec" >&6; }
28479case "$ntp_cv_struct_timespec" in
28480 yes)
28481
28482$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
28483
28484esac
28485
28486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
28487$as_echo_n "checking for struct ntptimeval... " >&6; }
28488if ${ntp_cv_struct_ntptimeval+:} false; then :
28489  $as_echo_n "(cached) " >&6
28490else
28491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28492/* end confdefs.h.  */
28493
28494		#include <sys/time.h>
28495		#include <sys/timex.h>
28496
28497int
28498main ()
28499{
28500
28501		struct ntptimeval n;
28502
28503
28504  ;
28505  return 0;
28506}
28507_ACEOF
28508if ac_fn_c_try_compile "$LINENO"; then :
28509  ntp_cv_struct_ntptimeval=yes
28510else
28511  ntp_cv_struct_ntptimeval=no
28512
28513fi
28514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28515
28516fi
28517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
28518$as_echo "$ntp_cv_struct_ntptimeval" >&6; }
28519case "$ntp_cv_struct_ntptimeval" in
28520 yes)
28521
28522$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
28523
28524esac
28525
28526for ac_header in md5.h
28527do :
28528  ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
28529	#ifdef HAVE_SYS_TYPES_H
28530	# include <sys/types.h>
28531	#endif
28532
28533
28534"
28535if test "x$ac_cv_header_md5_h" = xyes; then :
28536  cat >>confdefs.h <<_ACEOF
28537#define HAVE_MD5_H 1
28538_ACEOF
28539
28540fi
28541
28542done
28543
28544
28545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
28546$as_echo_n "checking for library containing MD5Init... " >&6; }
28547if ${ac_cv_search_MD5Init+:} false; then :
28548  $as_echo_n "(cached) " >&6
28549else
28550  ac_func_search_save_LIBS=$LIBS
28551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28552/* end confdefs.h.  */
28553
28554/* Override any GCC internal prototype to avoid an error.
28555   Use char because int might match the return type of a GCC
28556   builtin and then its argument prototype would still apply.  */
28557#ifdef __cplusplus
28558extern "C"
28559#endif
28560char MD5Init ();
28561int
28562main ()
28563{
28564return MD5Init ();
28565  ;
28566  return 0;
28567}
28568_ACEOF
28569for ac_lib in '' md5 md; do
28570  if test -z "$ac_lib"; then
28571    ac_res="none required"
28572  else
28573    ac_res=-l$ac_lib
28574    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28575  fi
28576  if ac_fn_c_try_link "$LINENO"; then :
28577  ac_cv_search_MD5Init=$ac_res
28578fi
28579rm -f core conftest.err conftest.$ac_objext \
28580    conftest$ac_exeext
28581  if ${ac_cv_search_MD5Init+:} false; then :
28582  break
28583fi
28584done
28585if ${ac_cv_search_MD5Init+:} false; then :
28586
28587else
28588  ac_cv_search_MD5Init=no
28589fi
28590rm conftest.$ac_ext
28591LIBS=$ac_func_search_save_LIBS
28592fi
28593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
28594$as_echo "$ac_cv_search_MD5Init" >&6; }
28595ac_res=$ac_cv_search_MD5Init
28596if test "$ac_res" != no; then :
28597  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28598
28599fi
28600
28601for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
28602do :
28603  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28604ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28605if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28606  cat >>confdefs.h <<_ACEOF
28607#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28608_ACEOF
28609
28610fi
28611done
28612
28613
28614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
28615$as_echo_n "checking for SIGIO... " >&6; }
28616if ${ntp_cv_hdr_def_sigio+:} false; then :
28617  $as_echo_n "(cached) " >&6
28618else
28619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28620/* end confdefs.h.  */
28621
28622	    #include <signal.h>
28623
28624	    #ifndef SIGIO
28625	    # error
28626	    #endif
28627
28628_ACEOF
28629if ac_fn_c_try_cpp "$LINENO"; then :
28630  ntp_cv_hdr_def_sigio=yes
28631else
28632  ntp_cv_hdr_def_sigio=no
28633
28634fi
28635rm -f conftest.err conftest.i conftest.$ac_ext
28636
28637fi
28638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
28639$as_echo "$ntp_cv_hdr_def_sigio" >&6; }
28640
28641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
28642$as_echo_n "checking if we want to use SIGIO... " >&6; }
28643ans=no
28644case "$ntp_cv_hdr_def_sigio" in
28645 yes)
28646    ans=yes
28647    case "$host" in
28648     alpha*-dec-osf4*|alpha*-dec-osf5*)
28649	ans=no
28650	;;
28651     *-convex-*)
28652	ans=no
28653	;;
28654     *-dec-*)
28655	ans=no
28656	;;
28657     *-pc-cygwin*)
28658	ans=no
28659	;;
28660     *-sni-sysv*)
28661	ans=no
28662	;;
28663     *-stratus-vos)
28664	ans=no
28665	;;
28666     *-univel-sysv*)
28667	ans=no
28668	;;
28669     *-*-irix6*)
28670	ans=no
28671	;;
28672     *-*-freebsd*)
28673	ans=no
28674	;;
28675     *-*-*linux*)
28676	ans=no
28677	;;
28678     *-*-unicosmp*)
28679	ans=no
28680	;;
28681     *-*-kfreebsd*)
28682	ans=no
28683	;;
28684     m68k-*-mint*)
28685	ans=no
28686	;;
28687    esac
28688    ;;
28689esac
28690case "$ans" in
28691 yes)
28692
28693$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
28694
28695esac
28696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28697$as_echo "$ans" >&6; }
28698
28699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
28700$as_echo_n "checking for SIGPOLL... " >&6; }
28701if ${ntp_cv_hdr_def_sigpoll+:} false; then :
28702  $as_echo_n "(cached) " >&6
28703else
28704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28705/* end confdefs.h.  */
28706
28707	    #include <signal.h>
28708
28709	    #ifndef SIGPOLL
28710	    # error
28711	    #endif
28712
28713_ACEOF
28714if ac_fn_c_try_cpp "$LINENO"; then :
28715  ntp_cv_hdr_def_sigpoll=yes
28716else
28717  ntp_cv_hdr_def_sigpoll=no
28718
28719fi
28720rm -f conftest.err conftest.i conftest.$ac_ext
28721
28722fi
28723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
28724$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
28725
28726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
28727$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
28728ans=no
28729case "$ntp_cv_hdr_def_sigpoll" in
28730 yes)
28731    case "$host" in
28732     mips-sgi-irix*)
28733	ans=no
28734	;;
28735     vax-dec-bsd)
28736	ans=no
28737	;;
28738     *-pc-cygwin*)
28739	ans=no
28740	;;
28741     *-sni-sysv*)
28742	ans=no
28743	;;
28744     *-stratus-vos)
28745	ans=no
28746	;;
28747     *-*-aix[4-9]*)
28748	# XXX Only verified thru AIX6
28749	ans=no
28750	;;
28751     *-*-hpux*)
28752	ans=no
28753	;;
28754     *-*-*linux*)
28755	ans=no
28756	;;
28757     *-*-osf*)
28758	ans=no
28759	;;
28760     *-*-qnx*)
28761	ans=no
28762	;;
28763     *-*-sunos*)
28764	ans=no
28765	;;
28766     *-*-solaris*)
28767	ans=no
28768	;;
28769     *-*-ultrix*)
28770	ans=no
28771	;;
28772     *-*-unicosmp*)
28773	ans=no
28774	;;
28775     *-*-kfreebsd*)
28776	ans=no
28777	;;
28778     *) ans=yes
28779	;;
28780    esac
28781    ;;
28782esac
28783case "$ans" in
28784 yes)
28785
28786$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
28787
28788esac
28789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28790$as_echo "$ans" >&6; }
28791
28792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
28793$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
28794ans=no
28795case "$ntp_cv_hdr_def_sigpoll" in
28796 yes)
28797    case "$host" in
28798     mips-sgi-irix*)
28799	ans=no
28800	;;
28801     vax-dec-bsd)
28802	ans=no
28803	;;
28804     *-pc-cygwin*)
28805	ans=no
28806	;;
28807     *-sni-sysv*)
28808	ans=no
28809	;;
28810     *-stratus-vos)
28811	ans=no
28812	;;
28813     *-*-aix[4-9]*)
28814	# XXX Only verified thru AIX6
28815	ans=no
28816	;;
28817     *-*-hpux*)
28818	ans=no
28819	;;
28820     *-*-*linux*)
28821	ans=no
28822	;;
28823     *-*-osf*)
28824	ans=no
28825	;;
28826     *-*-sunos*)
28827	ans=no
28828	;;
28829     *-*-ultrix*)
28830	ans=no
28831	;;
28832     *-*-qnx*)
28833	ans=no
28834	;;
28835     *-*-unicosmp*)
28836	ans=no
28837	;;
28838     *-*-kfreebsd*)
28839	ans=no
28840	;;
28841     *) ans=yes
28842	;;
28843    esac
28844    ;;
28845esac
28846case "$ans" in
28847 yes)
28848
28849$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
28850
28851esac
28852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28853$as_echo "$ans" >&6; }
28854
28855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
28856$as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
28857if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
28858  $as_echo_n "(cached) " >&6
28859else
28860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28861/* end confdefs.h.  */
28862
28863		#include <sys/time.h>
28864
28865int
28866main ()
28867{
28868
28869		gettimeofday(0, 0);
28870		settimeofday(0, 0);
28871
28872
28873  ;
28874  return 0;
28875}
28876_ACEOF
28877if ac_fn_c_try_compile "$LINENO"; then :
28878  ntp_cv_func_Xettimeofday_nargs=2
28879else
28880  ntp_cv_func_Xettimeofday_nargs=1
28881
28882fi
28883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28884
28885fi
28886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
28887$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
28888case "$ntp_cv_func_Xettimeofday_nargs" in
28889 1)
28890
28891$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
28892
28893esac
28894
28895for ac_func in settimeofday
28896do :
28897  ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
28898if test "x$ac_cv_func_settimeofday" = xyes; then :
28899  cat >>confdefs.h <<_ACEOF
28900#define HAVE_SETTIMEOFDAY 1
28901_ACEOF
28902
28903else
28904
28905    case "$host" in
28906     *-*-mpeix*) ac_cv_func_settimeofday=yes
28907    esac
28908
28909fi
28910done
28911
28912
28913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
28914$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
28915ntp_warning='GRONK'
28916ans=none
28917case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
28918 yes*)
28919    ntp_warning=''
28920    ans='clock_settime()'
28921    ;;
28922 noyes*)
28923    ntp_warning='But clock_settime() would be better (if we had it)'
28924    ans='settimeofday()'
28925    ;;
28926 nonoyes)
28927    ntp_warning='Which is the worst of the three'
28928    ans='stime()'
28929    ;;
28930 *)
28931    case "$build" in
28932     $host)
28933	ntp_warning='Which leaves us with nothing to use!'
28934    esac
28935esac
28936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28937$as_echo "$ans" >&6; }
28938case "$ntp_warning" in
28939 '')
28940    ;;
28941 *)
28942    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
28943$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
28944    ;;
28945esac
28946
28947
28948LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
28949LIBS=$__LIBS
28950{ __LIBS=; unset __LIBS;}
28951
28952
28953
28954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
28955$as_echo_n "checking for deprecated --with-arlib... " >&6; }
28956
28957# Check whether --with-arlib was given.
28958if test "${with_arlib+set}" = set; then :
28959  withval=$with_arlib; ans=$withval
28960else
28961  ans=no
28962fi
28963
28964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28965$as_echo "$ans" >&6; }
28966
28967case "$ans" in
28968 yes)
28969    { $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
28970$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;}
28971    ;;
28972esac
28973
28974for ac_prog in gawk mawk nawk awk
28975do
28976  # Extract the first word of "$ac_prog", so it can be a program name with args.
28977set dummy $ac_prog; ac_word=$2
28978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28979$as_echo_n "checking for $ac_word... " >&6; }
28980if ${ac_cv_prog_AWK+:} false; then :
28981  $as_echo_n "(cached) " >&6
28982else
28983  if test -n "$AWK"; then
28984  ac_cv_prog_AWK="$AWK" # Let the user override the test.
28985else
28986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28987for as_dir in $PATH
28988do
28989  IFS=$as_save_IFS
28990  test -z "$as_dir" && as_dir=.
28991    for ac_exec_ext in '' $ac_executable_extensions; do
28992  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28993    ac_cv_prog_AWK="$ac_prog"
28994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28995    break 2
28996  fi
28997done
28998  done
28999IFS=$as_save_IFS
29000
29001fi
29002fi
29003AWK=$ac_cv_prog_AWK
29004if test -n "$AWK"; then
29005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
29006$as_echo "$AWK" >&6; }
29007else
29008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29009$as_echo "no" >&6; }
29010fi
29011
29012
29013  test -n "$AWK" && break
29014done
29015
29016{ ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
29017				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
29018$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
29019set x ${MAKE-make}
29020ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
29021if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
29022  $as_echo_n "(cached) " >&6
29023else
29024  cat >conftest.make <<\_ACEOF
29025SHELL = /bin/sh
29026all:
29027	@echo '@@@%%%=$(MAKE)=@@@%%%'
29028_ACEOF
29029# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
29030case `${MAKE-make} -f conftest.make 2>/dev/null` in
29031  *@@@%%%=?*=@@@%%%*)
29032    eval ac_cv_prog_make_${ac_make}_set=yes;;
29033  *)
29034    eval ac_cv_prog_make_${ac_make}_set=no;;
29035esac
29036rm -f conftest.make
29037fi
29038if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
29039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29040$as_echo "yes" >&6; }
29041  SET_MAKE=
29042else
29043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29044$as_echo "no" >&6; }
29045  SET_MAKE="MAKE=${MAKE-make}"
29046fi
29047
29048
29049
29050
29051
29052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
29053$as_echo_n "checking whether ln -s works... " >&6; }
29054LN_S=$as_ln_s
29055if test "$LN_S" = "ln -s"; then
29056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29057$as_echo "yes" >&6; }
29058else
29059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
29060$as_echo "no, using $LN_S" >&6; }
29061fi
29062
29063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
29064$as_echo_n "checking for library containing strerror... " >&6; }
29065if ${ac_cv_search_strerror+:} false; then :
29066  $as_echo_n "(cached) " >&6
29067else
29068  ac_func_search_save_LIBS=$LIBS
29069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29070/* end confdefs.h.  */
29071
29072/* Override any GCC internal prototype to avoid an error.
29073   Use char because int might match the return type of a GCC
29074   builtin and then its argument prototype would still apply.  */
29075#ifdef __cplusplus
29076extern "C"
29077#endif
29078char strerror ();
29079int
29080main ()
29081{
29082return strerror ();
29083  ;
29084  return 0;
29085}
29086_ACEOF
29087for ac_lib in '' cposix; do
29088  if test -z "$ac_lib"; then
29089    ac_res="none required"
29090  else
29091    ac_res=-l$ac_lib
29092    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29093  fi
29094  if ac_fn_c_try_link "$LINENO"; then :
29095  ac_cv_search_strerror=$ac_res
29096fi
29097rm -f core conftest.err conftest.$ac_objext \
29098    conftest$ac_exeext
29099  if ${ac_cv_search_strerror+:} false; then :
29100  break
29101fi
29102done
29103if ${ac_cv_search_strerror+:} false; then :
29104
29105else
29106  ac_cv_search_strerror=no
29107fi
29108rm conftest.$ac_ext
29109LIBS=$ac_func_search_save_LIBS
29110fi
29111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
29112$as_echo "$ac_cv_search_strerror" >&6; }
29113ac_res=$ac_cv_search_strerror
29114if test "$ac_res" != no; then :
29115  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29116
29117fi
29118
29119
29120
29121# Extract the first word of "perl", so it can be a program name with args.
29122set dummy perl; ac_word=$2
29123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29124$as_echo_n "checking for $ac_word... " >&6; }
29125if ${ac_cv_path_PATH_PERL+:} false; then :
29126  $as_echo_n "(cached) " >&6
29127else
29128  case $PATH_PERL in
29129  [\\/]* | ?:[\\/]*)
29130  ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
29131  ;;
29132  *)
29133  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29134for as_dir in $PATH
29135do
29136  IFS=$as_save_IFS
29137  test -z "$as_dir" && as_dir=.
29138    for ac_exec_ext in '' $ac_executable_extensions; do
29139  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29140    ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
29141    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29142    break 2
29143  fi
29144done
29145  done
29146IFS=$as_save_IFS
29147
29148  ;;
29149esac
29150fi
29151PATH_PERL=$ac_cv_path_PATH_PERL
29152if test -n "$PATH_PERL"; then
29153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
29154$as_echo "$PATH_PERL" >&6; }
29155else
29156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29157$as_echo "no" >&6; }
29158fi
29159
29160
29161{ ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
29162# Extract the first word of "test", so it can be a program name with args.
29163set dummy test; ac_word=$2
29164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29165$as_echo_n "checking for $ac_word... " >&6; }
29166if ${ac_cv_path_PATH_TEST+:} false; then :
29167  $as_echo_n "(cached) " >&6
29168else
29169  case $PATH_TEST in
29170  [\\/]* | ?:[\\/]*)
29171  ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
29172  ;;
29173  *)
29174  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29175for as_dir in $PATH
29176do
29177  IFS=$as_save_IFS
29178  test -z "$as_dir" && as_dir=.
29179    for ac_exec_ext in '' $ac_executable_extensions; do
29180  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29181    ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
29182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29183    break 2
29184  fi
29185done
29186  done
29187IFS=$as_save_IFS
29188
29189  ;;
29190esac
29191fi
29192PATH_TEST=$ac_cv_path_PATH_TEST
29193if test -n "$PATH_TEST"; then
29194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
29195$as_echo "$PATH_TEST" >&6; }
29196else
29197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29198$as_echo "no" >&6; }
29199fi
29200
29201
29202{ ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
29203test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh
29204
29205
29206# Check whether --with-net-snmp-config was given.
29207if test "${with_net_snmp_config+set}" = set; then :
29208  withval=$with_net_snmp_config; ans=$withval
29209else
29210  ans=yes
29211
29212fi
29213
29214case "$ans" in
29215 no)
29216    ;;
29217 yes)
29218    ans=net-snmp-config
29219    ;;
29220 /*)
29221    ;;
29222 */*)
29223    as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
29224    ;;
29225 *)
29226    ;;
29227esac
29228PROG_NET_SNMP_CONFIG=$ans
29229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
29230$as_echo_n "checking for net-snmp-config path... " >&6; }
29231case "$PROG_NET_SNMP_CONFIG" in
29232 no) ;;
29233 /*)
29234    PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
29235    ;;
29236 *)
29237    # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
29238set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
29239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29240$as_echo_n "checking for $ac_word... " >&6; }
29241if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
29242  $as_echo_n "(cached) " >&6
29243else
29244  case $PATH_NET_SNMP_CONFIG in
29245  [\\/]* | ?:[\\/]*)
29246  ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
29247  ;;
29248  *)
29249  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29250for as_dir in $PATH
29251do
29252  IFS=$as_save_IFS
29253  test -z "$as_dir" && as_dir=.
29254    for ac_exec_ext in '' $ac_executable_extensions; do
29255  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29256    ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29257    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29258    break 2
29259  fi
29260done
29261  done
29262IFS=$as_save_IFS
29263
29264  ;;
29265esac
29266fi
29267PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
29268if test -n "$PATH_NET_SNMP_CONFIG"; then
29269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
29270$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
29271else
29272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29273$as_echo "no" >&6; }
29274fi
29275
29276
29277    { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
29278;;
29279esac
29280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
29281$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
29282
29283case "$PATH_NET_SNMP_CONFIG" in
29284 /*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp version" >&5
29285$as_echo_n "checking for net-snmp version... " >&6; }
29286if ${ntp_cv_net_snmp_version+:} false; then :
29287  $as_echo_n "(cached) " >&6
29288else
29289  ntp_cv_net_snmp_version=`$PATH_NET_SNMP_CONFIG --version`
29290
29291fi
29292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_net_snmp_version" >&5
29293$as_echo "$ntp_cv_net_snmp_version" >&6; }
29294	;;
29295esac
29296
29297case "$host" in
29298 *-*-vxworks*)
29299    ac_link="$ac_link $VX_KERNEL"
29300    ;;
29301esac
29302
29303# HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
29304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
29305$as_echo_n "checking for library containing openlog... " >&6; }
29306if ${ac_cv_search_openlog+:} false; then :
29307  $as_echo_n "(cached) " >&6
29308else
29309  ac_func_search_save_LIBS=$LIBS
29310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29311/* end confdefs.h.  */
29312
29313/* Override any GCC internal prototype to avoid an error.
29314   Use char because int might match the return type of a GCC
29315   builtin and then its argument prototype would still apply.  */
29316#ifdef __cplusplus
29317extern "C"
29318#endif
29319char openlog ();
29320int
29321main ()
29322{
29323return openlog ();
29324  ;
29325  return 0;
29326}
29327_ACEOF
29328for ac_lib in '' gen syslog; do
29329  if test -z "$ac_lib"; then
29330    ac_res="none required"
29331  else
29332    ac_res=-l$ac_lib
29333    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29334  fi
29335  if ac_fn_c_try_link "$LINENO"; then :
29336  ac_cv_search_openlog=$ac_res
29337fi
29338rm -f core conftest.err conftest.$ac_objext \
29339    conftest$ac_exeext
29340  if ${ac_cv_search_openlog+:} false; then :
29341  break
29342fi
29343done
29344if ${ac_cv_search_openlog+:} false; then :
29345
29346else
29347  ac_cv_search_openlog=no
29348fi
29349rm conftest.$ac_ext
29350LIBS=$ac_func_search_save_LIBS
29351fi
29352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
29353$as_echo "$ac_cv_search_openlog" >&6; }
29354ac_res=$ac_cv_search_openlog
29355if test "$ac_res" != no; then :
29356  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29357
29358fi
29359
29360# XXX library list will be in ac_cv_search_openlog
29361
29362# LIBSECCOMP is off by default -- needs testing with all the features
29363# Please send bug reports to loganaden@gmail.com
29364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
29365$as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
29366# Check whether --enable-libseccomp was given.
29367if test "${enable_libseccomp+set}" = set; then :
29368  enableval=$enable_libseccomp; ntp_ok=$enableval
29369else
29370  ntp_ok=no
29371
29372fi
29373
29374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29375$as_echo "$ntp_ok" >&6; }
29376case "$ntp_ok" in
29377 yes)
29378    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
29379$as_echo_n "checking for library containing seccomp_init... " >&6; }
29380if ${ac_cv_search_seccomp_init+:} false; then :
29381  $as_echo_n "(cached) " >&6
29382else
29383  ac_func_search_save_LIBS=$LIBS
29384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29385/* end confdefs.h.  */
29386
29387/* Override any GCC internal prototype to avoid an error.
29388   Use char because int might match the return type of a GCC
29389   builtin and then its argument prototype would still apply.  */
29390#ifdef __cplusplus
29391extern "C"
29392#endif
29393char seccomp_init ();
29394int
29395main ()
29396{
29397return seccomp_init ();
29398  ;
29399  return 0;
29400}
29401_ACEOF
29402for ac_lib in '' seccomp; do
29403  if test -z "$ac_lib"; then
29404    ac_res="none required"
29405  else
29406    ac_res=-l$ac_lib
29407    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29408  fi
29409  if ac_fn_c_try_link "$LINENO"; then :
29410  ac_cv_search_seccomp_init=$ac_res
29411fi
29412rm -f core conftest.err conftest.$ac_objext \
29413    conftest$ac_exeext
29414  if ${ac_cv_search_seccomp_init+:} false; then :
29415  break
29416fi
29417done
29418if ${ac_cv_search_seccomp_init+:} false; then :
29419
29420else
29421  ac_cv_search_seccomp_init=no
29422fi
29423rm conftest.$ac_ext
29424LIBS=$ac_func_search_save_LIBS
29425fi
29426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
29427$as_echo "$ac_cv_search_seccomp_init" >&6; }
29428ac_res=$ac_cv_search_seccomp_init
29429if test "$ac_res" != no; then :
29430  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29431
29432$as_echo "#define LIBSECCOMP 1" >>confdefs.h
29433
29434
29435fi
29436
29437    if test "$cross_compiling" = yes; then :
29438  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29440as_fn_error $? "cannot run test program while cross compiling
29441See \`config.log' for more details" "$LINENO" 5; }
29442else
29443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29444/* end confdefs.h.  */
29445
29446	#include <stdio.h>
29447	#include <stdlib.h>
29448	#include <errno.h>
29449	#include <sys/prctl.h>
29450	#include <linux/seccomp.h>
29451
29452	int main(void)
29453	{
29454		int ret;
29455		ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
29456		if (ret < 0) {
29457			switch (errno) {
29458			case ENOSYS:
29459				return 1;
29460			case EINVAL:
29461				return 1;
29462			default:
29463				return 1;
29464			}
29465		}
29466		ret =
29467		prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
29468		if (ret < 0) {
29469			switch (errno) {
29470			case EINVAL:
29471				return 1;
29472			case EFAULT:
29473				return 0;
29474			default:
29475				return 1;
29476		}
29477	}
29478return 1;
29479}
29480
29481
29482_ACEOF
29483if ac_fn_c_try_run "$LINENO"; then :
29484
29485$as_echo "#define KERN_SECCOMP 1" >>confdefs.h
29486
29487
29488fi
29489rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29490  conftest.$ac_objext conftest.beam conftest.$ac_ext
29491fi
29492
29493    ;;
29494esac
29495
29496
29497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
29498$as_echo_n "checking for facilitynames in syslog.h... " >&6; }
29499if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
29500  $as_echo_n "(cached) " >&6
29501else
29502
29503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29504/* end confdefs.h.  */
29505
29506#define SYSLOG_NAMES
29507#include <stdlib.h>
29508#include <syslog.h>
29509
29510int
29511main ()
29512{
29513 void *fnames; fnames = facilitynames;
29514  ;
29515  return 0;
29516}
29517_ACEOF
29518if ac_fn_c_try_compile "$LINENO"; then :
29519  ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
29520else
29521  ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
29522fi
29523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29524fi
29525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
29526$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
29527case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
29528 yes)
29529
29530$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
29531
29532    ;;
29533 no)
29534    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
29535$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
29536    ;;
29537 cross)
29538    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
29539$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
29540    ;;
29541esac
29542
29543
29544
29545case "$host" in
29546 *-*-*linux*) ;;
29547 *-*-osf4*) ;;
29548 *-*-osf5*) ;;
29549 *)
29550    # HMS: Make sure we check for -lrt for clock_* before this...
29551    case "$ac_cv_search_clock_gettime" in
29552     '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
29553    esac
29554    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
29555$as_echo_n "checking for library containing sched_setscheduler... " >&6; }
29556if ${ac_cv_search_sched_setscheduler+:} false; then :
29557  $as_echo_n "(cached) " >&6
29558else
29559  ac_func_search_save_LIBS=$LIBS
29560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29561/* end confdefs.h.  */
29562
29563/* Override any GCC internal prototype to avoid an error.
29564   Use char because int might match the return type of a GCC
29565   builtin and then its argument prototype would still apply.  */
29566#ifdef __cplusplus
29567extern "C"
29568#endif
29569char sched_setscheduler ();
29570int
29571main ()
29572{
29573return sched_setscheduler ();
29574  ;
29575  return 0;
29576}
29577_ACEOF
29578for ac_lib in '' rt posix4; do
29579  if test -z "$ac_lib"; then
29580    ac_res="none required"
29581  else
29582    ac_res=-l$ac_lib
29583    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29584  fi
29585  if ac_fn_c_try_link "$LINENO"; then :
29586  ac_cv_search_sched_setscheduler=$ac_res
29587fi
29588rm -f core conftest.err conftest.$ac_objext \
29589    conftest$ac_exeext
29590  if ${ac_cv_search_sched_setscheduler+:} false; then :
29591  break
29592fi
29593done
29594if ${ac_cv_search_sched_setscheduler+:} false; then :
29595
29596else
29597  ac_cv_search_sched_setscheduler=no
29598fi
29599rm conftest.$ac_ext
29600LIBS=$ac_func_search_save_LIBS
29601fi
29602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
29603$as_echo "$ac_cv_search_sched_setscheduler" >&6; }
29604ac_res=$ac_cv_search_sched_setscheduler
29605if test "$ac_res" != no; then :
29606  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29607
29608fi
29609
29610    ;;
29611esac
29612
29613for ac_header in bstring.h
29614do :
29615  ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
29616if test "x$ac_cv_header_bstring_h" = xyes; then :
29617  cat >>confdefs.h <<_ACEOF
29618#define HAVE_BSTRING_H 1
29619_ACEOF
29620
29621fi
29622
29623done
29624
29625ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
29626if test "x$ac_cv_header_dns_sd_h" = xyes; then :
29627  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
29628$as_echo_n "checking for library containing DNSServiceRegister... " >&6; }
29629if ${ac_cv_search_DNSServiceRegister+:} false; then :
29630  $as_echo_n "(cached) " >&6
29631else
29632  ac_func_search_save_LIBS=$LIBS
29633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29634/* end confdefs.h.  */
29635
29636/* Override any GCC internal prototype to avoid an error.
29637   Use char because int might match the return type of a GCC
29638   builtin and then its argument prototype would still apply.  */
29639#ifdef __cplusplus
29640extern "C"
29641#endif
29642char DNSServiceRegister ();
29643int
29644main ()
29645{
29646return DNSServiceRegister ();
29647  ;
29648  return 0;
29649}
29650_ACEOF
29651for ac_lib in '' dns_sd; do
29652  if test -z "$ac_lib"; then
29653    ac_res="none required"
29654  else
29655    ac_res=-l$ac_lib
29656    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29657  fi
29658  if ac_fn_c_try_link "$LINENO"; then :
29659  ac_cv_search_DNSServiceRegister=$ac_res
29660fi
29661rm -f core conftest.err conftest.$ac_objext \
29662    conftest$ac_exeext
29663  if ${ac_cv_search_DNSServiceRegister+:} false; then :
29664  break
29665fi
29666done
29667if ${ac_cv_search_DNSServiceRegister+:} false; then :
29668
29669else
29670  ac_cv_search_DNSServiceRegister=no
29671fi
29672rm conftest.$ac_ext
29673LIBS=$ac_func_search_save_LIBS
29674fi
29675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
29676$as_echo "$ac_cv_search_DNSServiceRegister" >&6; }
29677ac_res=$ac_cv_search_DNSServiceRegister
29678if test "$ac_res" != no; then :
29679  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29680
29681$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
29682
29683
29684fi
29685
29686
29687fi
29688
29689
29690for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h
29691do :
29692  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29693ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29694if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29695  cat >>confdefs.h <<_ACEOF
29696#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29697_ACEOF
29698
29699fi
29700
29701done
29702
29703
29704for ac_header in memory.h netdb.h poll.h
29705do :
29706  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29707ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29708if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29709  cat >>confdefs.h <<_ACEOF
29710#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29711_ACEOF
29712
29713fi
29714
29715done
29716
29717for ac_header in sgtty.h stdatomic.h
29718do :
29719  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29720ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29721if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29722  cat >>confdefs.h <<_ACEOF
29723#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29724_ACEOF
29725
29726fi
29727
29728done
29729
29730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
29731$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
29732if ${ac_cv_header_stdbool_h+:} false; then :
29733  $as_echo_n "(cached) " >&6
29734else
29735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29736/* end confdefs.h.  */
29737
29738             #include <stdbool.h>
29739             #ifndef bool
29740              "error: bool is not defined"
29741             #endif
29742             #ifndef false
29743              "error: false is not defined"
29744             #endif
29745             #if false
29746              "error: false is not 0"
29747             #endif
29748             #ifndef true
29749              "error: true is not defined"
29750             #endif
29751             #if true != 1
29752              "error: true is not 1"
29753             #endif
29754             #ifndef __bool_true_false_are_defined
29755              "error: __bool_true_false_are_defined is not defined"
29756             #endif
29757
29758             struct s { _Bool s: 1; _Bool t; } s;
29759
29760             char a[true == 1 ? 1 : -1];
29761             char b[false == 0 ? 1 : -1];
29762             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
29763             char d[(bool) 0.5 == true ? 1 : -1];
29764             /* See body of main program for 'e'.  */
29765             char f[(_Bool) 0.0 == false ? 1 : -1];
29766             char g[true];
29767             char h[sizeof (_Bool)];
29768             char i[sizeof s.t];
29769             enum { j = false, k = true, l = false * true, m = true * 256 };
29770             /* The following fails for
29771                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
29772             _Bool n[m];
29773             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
29774             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
29775             /* Catch a bug in an HP-UX C compiler.  See
29776                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
29777                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
29778              */
29779             _Bool q = true;
29780             _Bool *pq = &q;
29781
29782int
29783main ()
29784{
29785
29786             bool e = &s;
29787             *pq |= q;
29788             *pq |= ! q;
29789             /* Refer to every declared value, to avoid compiler optimizations.  */
29790             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
29791                     + !m + !n + !o + !p + !q + !pq);
29792
29793  ;
29794  return 0;
29795}
29796_ACEOF
29797if ac_fn_c_try_compile "$LINENO"; then :
29798  ac_cv_header_stdbool_h=yes
29799else
29800  ac_cv_header_stdbool_h=no
29801fi
29802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29803fi
29804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
29805$as_echo "$ac_cv_header_stdbool_h" >&6; }
29806   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
29807if test "x$ac_cv_type__Bool" = xyes; then :
29808
29809cat >>confdefs.h <<_ACEOF
29810#define HAVE__BOOL 1
29811_ACEOF
29812
29813
29814fi
29815
29816
29817if test $ac_cv_header_stdbool_h = yes; then
29818
29819$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
29820
29821fi
29822
29823for ac_header in stdlib.h string.h termio.h
29824do :
29825  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29826ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29827if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29828  cat >>confdefs.h <<_ACEOF
29829#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29830_ACEOF
29831
29832fi
29833
29834done
29835
29836for ac_header in termios.h timepps.h timex.h unistd.h
29837do :
29838  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29839ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29840if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29841  cat >>confdefs.h <<_ACEOF
29842#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29843_ACEOF
29844
29845fi
29846
29847done
29848
29849
29850case "$host" in
29851 *-*-aix*)
29852    for ac_header in utmpx.h
29853do :
29854  ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
29855if test "x$ac_cv_header_utmpx_h" = xyes; then :
29856  cat >>confdefs.h <<_ACEOF
29857#define HAVE_UTMPX_H 1
29858_ACEOF
29859
29860fi
29861
29862done
29863
29864    case "$ac_cv_header_utmpx_h" in
29865     yes)
29866	;;
29867     *)
29868	for ac_header in utmp.h
29869do :
29870  ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
29871if test "x$ac_cv_header_utmp_h" = xyes; then :
29872  cat >>confdefs.h <<_ACEOF
29873#define HAVE_UTMP_H 1
29874_ACEOF
29875
29876fi
29877
29878done
29879
29880	;;
29881    esac
29882    ;;
29883 *)
29884    for ac_header in utmp.h utmpx.h
29885do :
29886  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29887ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29888if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29889  cat >>confdefs.h <<_ACEOF
29890#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29891_ACEOF
29892
29893fi
29894
29895done
29896
29897    ;;
29898esac
29899
29900#
29901# On Suns only (so far) getpass() truncates the typed password to 8
29902# characters, but getpassphrase() allows up to 257.  Most systems'
29903# getpass() does not truncate, at least not so as to affect ntpq and
29904# ntpdc password prompts.
29905#
29906# So check for getpassphrase(), but only on Sun operating systems.
29907#
29908case "$host" in
29909 *-*-sunos*|*-*-solaris*)
29910    for ac_func in getpassphrase
29911do :
29912  ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
29913if test "x$ac_cv_func_getpassphrase" = xyes; then :
29914  cat >>confdefs.h <<_ACEOF
29915#define HAVE_GETPASSPHRASE 1
29916_ACEOF
29917
29918fi
29919done
29920
29921esac
29922
29923
29924for ac_header in net/if6.h
29925do :
29926  ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
29927if test "x$ac_cv_header_net_if6_h" = xyes; then :
29928  cat >>confdefs.h <<_ACEOF
29929#define HAVE_NET_IF6_H 1
29930_ACEOF
29931
29932fi
29933
29934done
29935
29936for ac_header in net/route.h
29937do :
29938  ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
29939    #include <sys/types.h>
29940    #include <sys/socket.h>
29941    #include <net/if.h>
29942
29943"
29944if test "x$ac_cv_header_net_route_h" = xyes; then :
29945  cat >>confdefs.h <<_ACEOF
29946#define HAVE_NET_ROUTE_H 1
29947_ACEOF
29948
29949fi
29950
29951done
29952
29953
29954for ac_header in netinfo/ni.h
29955do :
29956  ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
29957if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
29958  cat >>confdefs.h <<_ACEOF
29959#define HAVE_NETINFO_NI_H 1
29960_ACEOF
29961
29962fi
29963
29964done
29965
29966case "$ac_cv_header_netinfo_ni_h" in
29967 yes)
29968
29969$as_echo "#define HAVE_NETINFO 1" >>confdefs.h
29970
29971esac
29972for ac_header in sun/audioio.h sys/audioio.h sys/file.h
29973do :
29974  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29975ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29976if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29977  cat >>confdefs.h <<_ACEOF
29978#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29979_ACEOF
29980
29981fi
29982
29983done
29984
29985case "$host" in
29986 *-*-sunos4*)
29987    ;;
29988 *)
29989    for ac_header in sys/ioctl.h
29990do :
29991  ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
29992if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
29993  cat >>confdefs.h <<_ACEOF
29994#define HAVE_SYS_IOCTL_H 1
29995_ACEOF
29996
29997fi
29998
29999done
30000
30001    ;;
30002esac
30003for ac_header in sys/ipc.h sys/lock.h sys/mman.h
30004do :
30005  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30006ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30007if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30008  cat >>confdefs.h <<_ACEOF
30009#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30010_ACEOF
30011
30012fi
30013
30014done
30015
30016# HMS: Check sys/proc.h and sys/resource.h after some others
30017for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h
30018do :
30019  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30020ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30021if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30022  cat >>confdefs.h <<_ACEOF
30023#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30024_ACEOF
30025
30026fi
30027
30028done
30029
30030case "$ac_cv_header_sched_h" in
30031 yes)
30032    ;;
30033 *)
30034    for ac_header in sys/sched.h
30035do :
30036  ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
30037if test "x$ac_cv_header_sys_sched_h" = xyes; then :
30038  cat >>confdefs.h <<_ACEOF
30039#define HAVE_SYS_SCHED_H 1
30040_ACEOF
30041
30042fi
30043
30044done
30045
30046    ;;
30047esac
30048# HMS: Check sys/shm.h after some others
30049for ac_header in sys/select.h sys/signal.h sys/sockio.h
30050do :
30051  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30052ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30053if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30054  cat >>confdefs.h <<_ACEOF
30055#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30056_ACEOF
30057
30058fi
30059
30060done
30061
30062# HMS: Checked sys/socket.h earlier
30063case "$host" in
30064 *-*-netbsd*)
30065    ;;
30066 *)
30067    for ac_header in machine/soundcard.h sys/soundcard.h
30068do :
30069  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30070ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30071if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30072  cat >>confdefs.h <<_ACEOF
30073#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30074_ACEOF
30075
30076fi
30077
30078done
30079
30080    ;;
30081esac
30082for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h
30083do :
30084  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30085ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30086if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30087  cat >>confdefs.h <<_ACEOF
30088#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30089_ACEOF
30090
30091fi
30092
30093done
30094
30095for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h
30096do :
30097  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30098ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30099if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30100  cat >>confdefs.h <<_ACEOF
30101#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30102_ACEOF
30103
30104fi
30105
30106done
30107
30108case "$host" in
30109*-convex-*)
30110    for ac_header in /sys/sync/queue.h /sys/sync/sema.h
30111do :
30112  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30113ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30114if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30115  cat >>confdefs.h <<_ACEOF
30116#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30117_ACEOF
30118
30119fi
30120
30121done
30122
30123    ;;
30124*-*-bsdi*)
30125    for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
30126do :
30127  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30128ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30129if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30130  cat >>confdefs.h <<_ACEOF
30131#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30132_ACEOF
30133
30134fi
30135
30136done
30137
30138    ;;
30139esac
30140
30141case "$ac_cv_header_stdatomic_h" in
30142 yes)
30143	for ac_func in atomic_thread_fence
30144do :
30145  ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence"
30146if test "x$ac_cv_func_atomic_thread_fence" = xyes; then :
30147  cat >>confdefs.h <<_ACEOF
30148#define HAVE_ATOMIC_THREAD_FENCE 1
30149_ACEOF
30150
30151fi
30152done
30153
30154	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5
30155$as_echo_n "checking for atomic_thread_fence()... " >&6; }
30156if ${ntp_cv_func_atomic_thread_fence+:} false; then :
30157  $as_echo_n "(cached) " >&6
30158else
30159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30160/* end confdefs.h.  */
30161
30162			#include <stdatomic.h>
30163
30164int
30165main ()
30166{
30167
30168			atomic_thread_fence(memory_order_seq_cst);
30169
30170
30171  ;
30172  return 0;
30173}
30174		ntp_cv_func_atomic_thread_fence=yes
30175_ACEOF
30176if ac_fn_c_try_compile "$LINENO"; then :
30177  ntp_cv_func_atomic_thread_fence=no
30178
30179fi
30180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30181
30182fi
30183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5
30184$as_echo "$ntp_cv_func_atomic_thread_fence" >&6; }
30185    ;;
30186esac
30187
30188case "$host" in
30189 *-*-solaris2.6)
30190    # Broken...
30191    ;;
30192 *)
30193    for ac_func in ntp_adjtime ntp_gettime
30194do :
30195  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30196ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30197if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30198  cat >>confdefs.h <<_ACEOF
30199#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30200_ACEOF
30201
30202fi
30203done
30204
30205    ;;
30206esac
30207
30208case "$host" in
30209 *-*-*linux*)
30210    case "$ac_cv_func_ntp_gettime" in
30211     yes)
30212	;;
30213     *)
30214	for ac_func in __ntp_gettime
30215do :
30216  ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
30217if test "x$ac_cv_func___ntp_gettime" = xyes; then :
30218  cat >>confdefs.h <<_ACEOF
30219#define HAVE___NTP_GETTIME 1
30220_ACEOF
30221
30222fi
30223done
30224
30225	case "$ac_cv_func___ntp_gettime" in
30226	 yes)
30227
30228$as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h
30229
30230
30231$as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h
30232
30233	esac
30234	;;
30235    esac
30236    for ac_func in adjtimex
30237do :
30238  ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
30239if test "x$ac_cv_func_adjtimex" = xyes; then :
30240  cat >>confdefs.h <<_ACEOF
30241#define HAVE_ADJTIMEX 1
30242_ACEOF
30243
30244fi
30245done
30246
30247    case "$ac_cv_func_adjtimex" in
30248     yes)
30249
30250$as_echo "#define ntp_adjtime adjtimex" >>confdefs.h
30251
30252
30253$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
30254
30255	have_adjtimex=1
30256	;;
30257     *)
30258	for ac_func in __adjtimex
30259do :
30260  ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
30261if test "x$ac_cv_func___adjtimex" = xyes; then :
30262  cat >>confdefs.h <<_ACEOF
30263#define HAVE___ADJTIMEX 1
30264_ACEOF
30265
30266fi
30267done
30268
30269	case "$ac_cv_func___adjtimex" in
30270	 yes)
30271
30272$as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h
30273
30274
30275$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
30276
30277
30278$as_echo "#define adjtimex __adjtimex" >>confdefs.h
30279
30280
30281$as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h
30282
30283	    have_adjtimex=1
30284	esac
30285	;;
30286    esac
30287esac
30288case "$have_adjtimex" in
30289 '')
30290    # nlist stuff is only needed for tickadj.
30291    saved_LIBS="$LIBS"
30292    LIBS=
30293    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
30294$as_echo_n "checking for library containing nlist... " >&6; }
30295if ${ac_cv_search_nlist+:} false; then :
30296  $as_echo_n "(cached) " >&6
30297else
30298  ac_func_search_save_LIBS=$LIBS
30299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30300/* end confdefs.h.  */
30301
30302/* Override any GCC internal prototype to avoid an error.
30303   Use char because int might match the return type of a GCC
30304   builtin and then its argument prototype would still apply.  */
30305#ifdef __cplusplus
30306extern "C"
30307#endif
30308char nlist ();
30309int
30310main ()
30311{
30312return nlist ();
30313  ;
30314  return 0;
30315}
30316_ACEOF
30317for ac_lib in '' elf ld mld; do
30318  if test -z "$ac_lib"; then
30319    ac_res="none required"
30320  else
30321    ac_res=-l$ac_lib
30322    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30323  fi
30324  if ac_fn_c_try_link "$LINENO"; then :
30325  ac_cv_search_nlist=$ac_res
30326fi
30327rm -f core conftest.err conftest.$ac_objext \
30328    conftest$ac_exeext
30329  if ${ac_cv_search_nlist+:} false; then :
30330  break
30331fi
30332done
30333if ${ac_cv_search_nlist+:} false; then :
30334
30335else
30336  ac_cv_search_nlist=no
30337fi
30338rm conftest.$ac_ext
30339LIBS=$ac_func_search_save_LIBS
30340fi
30341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
30342$as_echo "$ac_cv_search_nlist" >&6; }
30343ac_res=$ac_cv_search_nlist
30344if test "$ac_res" != no; then :
30345  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30346
30347fi
30348
30349    # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
30350    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
30351$as_echo_n "checking for library containing kvm_open... " >&6; }
30352if ${ac_cv_search_kvm_open+:} false; then :
30353  $as_echo_n "(cached) " >&6
30354else
30355  ac_func_search_save_LIBS=$LIBS
30356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30357/* end confdefs.h.  */
30358
30359/* Override any GCC internal prototype to avoid an error.
30360   Use char because int might match the return type of a GCC
30361   builtin and then its argument prototype would still apply.  */
30362#ifdef __cplusplus
30363extern "C"
30364#endif
30365char kvm_open ();
30366int
30367main ()
30368{
30369return kvm_open ();
30370  ;
30371  return 0;
30372}
30373_ACEOF
30374for ac_lib in '' kvm; do
30375  if test -z "$ac_lib"; then
30376    ac_res="none required"
30377  else
30378    ac_res=-l$ac_lib
30379    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30380  fi
30381  if ac_fn_c_try_link "$LINENO"; then :
30382  ac_cv_search_kvm_open=$ac_res
30383fi
30384rm -f core conftest.err conftest.$ac_objext \
30385    conftest$ac_exeext
30386  if ${ac_cv_search_kvm_open+:} false; then :
30387  break
30388fi
30389done
30390if ${ac_cv_search_kvm_open+:} false; then :
30391
30392else
30393  ac_cv_search_kvm_open=no
30394fi
30395rm conftest.$ac_ext
30396LIBS=$ac_func_search_save_LIBS
30397fi
30398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
30399$as_echo "$ac_cv_search_kvm_open" >&6; }
30400ac_res=$ac_cv_search_kvm_open
30401if test "$ac_res" != no; then :
30402  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30403
30404fi
30405	    # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
30406    for ac_header in nlist.h sys/var.h
30407do :
30408  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30409ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30410if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30411  cat >>confdefs.h <<_ACEOF
30412#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30413_ACEOF
30414
30415fi
30416
30417done
30418
30419    case "$ac_cv_header_nlist_h" in
30420     yes)
30421
30422$as_echo "#define NLIST_STRUCT 1" >>confdefs.h
30423
30424	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
30425$as_echo_n "checking for n_un in struct nlist... " >&6; }
30426if ${ntp_cv_struct_nlist_n_un+:} false; then :
30427  $as_echo_n "(cached) " >&6
30428else
30429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30430/* end confdefs.h.  */
30431
30432			#include <nlist.h>
30433
30434int
30435main ()
30436{
30437
30438			struct nlist n;
30439			n.n_un.n_name = 0;
30440
30441
30442  ;
30443  return 0;
30444}
30445		ntp_cv_struct_nlist_n_un=yes
30446_ACEOF
30447if ac_fn_c_try_compile "$LINENO"; then :
30448  ntp_cv_struct_nlist_n_un=no
30449
30450fi
30451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30452
30453fi
30454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
30455$as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
30456	case "$ntp_cv_struct_nlist_n_un" in
30457	 yes)
30458
30459$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
30460
30461	esac
30462    esac
30463
30464    LDADD_NLIST="$LIBS"
30465    LIBS="$saved_LIBS"
30466    { saved_LIBS=; unset saved_LIBS;}
30467esac
30468
30469for ac_header in sys/proc.h
30470do :
30471  ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
30472    #ifdef HAVE_SYS_TYPES_H
30473    # include <sys/types.h>
30474    #endif
30475    #ifdef HAVE_SYS_TIME_H
30476    # include <sys/time.h>
30477    #endif
30478
30479"
30480if test "x$ac_cv_header_sys_proc_h" = xyes; then :
30481  cat >>confdefs.h <<_ACEOF
30482#define HAVE_SYS_PROC_H 1
30483_ACEOF
30484
30485fi
30486
30487done
30488
30489
30490for ac_header in sys/resource.h
30491do :
30492  ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
30493    #ifdef HAVE_SYS_TIME_H
30494    # include <sys/time.h>
30495    #endif
30496
30497"
30498if test "x$ac_cv_header_sys_resource_h" = xyes; then :
30499  cat >>confdefs.h <<_ACEOF
30500#define HAVE_SYS_RESOURCE_H 1
30501_ACEOF
30502
30503fi
30504
30505done
30506
30507
30508for ac_header in sys/shm.h
30509do :
30510  ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
30511    #ifdef HAVE_SYS_TYPES_H
30512    # include <sys/types.h>
30513    #endif
30514    #ifdef HAVE_SYS_IPC_H
30515    # include <sys/ipc.h>
30516    #endif
30517
30518"
30519if test "x$ac_cv_header_sys_shm_h" = xyes; then :
30520  cat >>confdefs.h <<_ACEOF
30521#define HAVE_SYS_SHM_H 1
30522_ACEOF
30523
30524fi
30525
30526done
30527
30528
30529for ac_header in sys/timex.h
30530do :
30531  ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
30532    #ifdef HAVE_SYS_TIME_H
30533    # include <sys/time.h>
30534    #endif
30535
30536"
30537if test "x$ac_cv_header_sys_timex_h" = xyes; then :
30538  cat >>confdefs.h <<_ACEOF
30539#define HAVE_SYS_TIMEX_H 1
30540_ACEOF
30541
30542fi
30543
30544done
30545
30546
30547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
30548$as_echo_n "checking return type of signal handlers... " >&6; }
30549if ${ac_cv_type_signal+:} false; then :
30550  $as_echo_n "(cached) " >&6
30551else
30552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30553/* end confdefs.h.  */
30554#include <sys/types.h>
30555#include <signal.h>
30556
30557int
30558main ()
30559{
30560return *(signal (0, 0)) (0) == 1;
30561  ;
30562  return 0;
30563}
30564_ACEOF
30565if ac_fn_c_try_compile "$LINENO"; then :
30566  ac_cv_type_signal=int
30567else
30568  ac_cv_type_signal=void
30569fi
30570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30571fi
30572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
30573$as_echo "$ac_cv_type_signal" >&6; }
30574
30575cat >>confdefs.h <<_ACEOF
30576#define RETSIGTYPE $ac_cv_type_signal
30577_ACEOF
30578
30579
30580ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
30581if test "x$ac_cv_type_off_t" = xyes; then :
30582
30583else
30584
30585cat >>confdefs.h <<_ACEOF
30586#define off_t long int
30587_ACEOF
30588
30589fi
30590
30591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
30592$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
30593if ${ac_cv_struct_tm+:} false; then :
30594  $as_echo_n "(cached) " >&6
30595else
30596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30597/* end confdefs.h.  */
30598#include <sys/types.h>
30599#include <time.h>
30600
30601int
30602main ()
30603{
30604struct tm tm;
30605				     int *p = &tm.tm_sec;
30606				     return !p;
30607  ;
30608  return 0;
30609}
30610_ACEOF
30611if ac_fn_c_try_compile "$LINENO"; then :
30612  ac_cv_struct_tm=time.h
30613else
30614  ac_cv_struct_tm=sys/time.h
30615fi
30616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30617fi
30618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
30619$as_echo "$ac_cv_struct_tm" >&6; }
30620if test $ac_cv_struct_tm = sys/time.h; then
30621
30622$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
30623
30624fi
30625
30626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
30627$as_echo_n "checking for a fallback value for HZ... " >&6; }
30628if ${ntp_cv_default_hz+:} false; then :
30629  $as_echo_n "(cached) " >&6
30630else
30631
30632	ntp_cv_default_hz=100
30633	case "$host" in
30634	 alpha*-dec-osf4*|alpha*-dec-osf5*)
30635	    ntp_cv_default_hz=1024
30636	    ;;
30637	 mips-dec-ultrix4*)
30638	    ntp_cv_default_hz=256
30639	    ;;
30640	esac
30641
30642
30643fi
30644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
30645$as_echo "$ntp_cv_default_hz" >&6; }
30646
30647cat >>confdefs.h <<_ACEOF
30648#define DEFAULT_HZ $ntp_cv_default_hz
30649_ACEOF
30650
30651
30652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
30653$as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
30654if ${ntp_cv_override_hz+:} false; then :
30655  $as_echo_n "(cached) " >&6
30656else
30657
30658	ntp_cv_override_hz=no
30659	case "$host" in
30660	 alpha*-dec-osf4*|alpha*-dec-osf5*)
30661	    ntp_cv_override_hz=yes
30662	    ;;
30663	 mips-dec-ultrix4*)
30664	    ntp_cv_override_hz=yes
30665	    ;;
30666	 *-*-freebsd*)
30667	    ntp_cv_override_hz=yes
30668	    ;;
30669	 *-*-sunos4*)
30670	    ntp_cv_override_hz=yes
30671	    ;;
30672	 *-*-kfreebsd*)
30673	    ntp_cv_override_hz=yes
30674	    ;;
30675	esac
30676
30677
30678fi
30679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
30680$as_echo "$ntp_cv_override_hz" >&6; }
30681case "$ntp_cv_override_hz" in
30682 yes)
30683
30684$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
30685
30686esac
30687
30688
30689
30690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
30691$as_echo_n "checking for struct rt_msghdr... " >&6; }
30692if ${ntp_cv_struct_rt_msghdr+:} false; then :
30693  $as_echo_n "(cached) " >&6
30694else
30695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30696/* end confdefs.h.  */
30697
30698		#include <sys/types.h>
30699		#include <sys/socket.h>
30700		#include <net/if.h>
30701		#include <net/route.h>
30702
30703int
30704main ()
30705{
30706
30707		struct rt_msghdr p;
30708
30709
30710  ;
30711  return 0;
30712}
30713_ACEOF
30714if ac_fn_c_try_compile "$LINENO"; then :
30715  ntp_cv_struct_rt_msghdr=yes
30716else
30717  ntp_cv_struct_rt_msghdr=no
30718
30719fi
30720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30721
30722fi
30723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
30724$as_echo "$ntp_cv_struct_rt_msghdr" >&6; }
30725
30726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
30727$as_echo_n "checking for struct rtattr... " >&6; }
30728if ${ntp_cv_rtattr+:} false; then :
30729  $as_echo_n "(cached) " >&6
30730else
30731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30732/* end confdefs.h.  */
30733
30734		#include <stddef.h>
30735		#include <sys/socket.h>
30736		#include <linux/rtnetlink.h>
30737
30738int
30739main ()
30740{
30741
30742		struct rtattr p;
30743
30744
30745  ;
30746  return 0;
30747}
30748_ACEOF
30749if ac_fn_c_try_compile "$LINENO"; then :
30750  ntp_cv_rtattr=yes
30751else
30752  ntp_cv_rtattr=no
30753
30754fi
30755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30756
30757fi
30758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
30759$as_echo "$ntp_cv_rtattr" >&6; }
30760
30761case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
30762 *yes*)
30763
30764$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
30765
30766    case "$ntp_cv_rtattr" in
30767     yes)
30768
30769$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
30770
30771    esac
30772esac
30773
30774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
30775$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
30776if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
30777  $as_echo_n "(cached) " >&6
30778else
30779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30780/* end confdefs.h.  */
30781
30782		#include <signal.h>
30783
30784int
30785main ()
30786{
30787
30788		struct sigaction act;
30789		act.sa_sigaction = 0;
30790
30791
30792  ;
30793  return 0;
30794}
30795_ACEOF
30796if ac_fn_c_try_compile "$LINENO"; then :
30797  ntp_cv_struct_sigaction_has_sa_sigaction=yes
30798else
30799  ntp_cv_struct_sigaction_has_sa_sigaction=no
30800
30801fi
30802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30803
30804fi
30805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
30806$as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
30807case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
30808 yes)
30809
30810$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
30811
30812esac
30813
30814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
30815$as_echo_n "checking for struct ppsclockev... " >&6; }
30816if ${ntp_cv_struct_ppsclockev+:} false; then :
30817  $as_echo_n "(cached) " >&6
30818else
30819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30820/* end confdefs.h.  */
30821
30822		#ifdef HAVE_SYS_TYPES_H
30823		# include <sys/types.h>
30824		#endif
30825		#ifdef HAVE_SYS_TERMIOS_H
30826		# include <sys/termios.h>
30827		#endif
30828		#ifdef HAVE_SYS_TIME_H
30829		# include <sys/time.h>
30830		#endif
30831		#ifdef HAVE_SYS_PPSCLOCK_H
30832		# include <sys/ppsclock.h>
30833		#endif
30834
30835int
30836main ()
30837{
30838
30839		extern struct ppsclockev *pce;
30840		return pce->serial;
30841
30842
30843  ;
30844  return 0;
30845}
30846_ACEOF
30847if ac_fn_c_try_compile "$LINENO"; then :
30848  ntp_cv_struct_ppsclockev=yes
30849else
30850  ntp_cv_struct_ppsclockev=no
30851
30852fi
30853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30854
30855fi
30856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
30857$as_echo "$ntp_cv_struct_ppsclockev" >&6; }
30858case "$ntp_cv_struct_ppsclockev" in
30859 yes)
30860
30861$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
30862
30863esac
30864
30865case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
30866  *yes*)
30867    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
30868$as_echo_n "checking for struct snd_size... " >&6; }
30869if ${ntp_cv_struct_snd_size+:} false; then :
30870  $as_echo_n "(cached) " >&6
30871else
30872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30873/* end confdefs.h.  */
30874
30875		    #ifdef HAVE_MACHINE_SOUNDCARD_H
30876		    # include <machine/soundcard.h>
30877		    #endif
30878		    #ifdef HAVE_SYS_SOUNDCARD_H
30879		    # include <sys/soundcard.h>
30880		    #endif
30881
30882int
30883main ()
30884{
30885
30886		    extern struct snd_size *ss;
30887		    return ss->rec_size;
30888
30889
30890  ;
30891  return 0;
30892}
30893_ACEOF
30894if ac_fn_c_try_compile "$LINENO"; then :
30895  ntp_cv_struct_snd_size=yes
30896else
30897  ntp_cv_struct_snd_size=no
30898
30899fi
30900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30901
30902fi
30903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
30904$as_echo "$ntp_cv_struct_snd_size" >&6; }
30905    case "$ntp_cv_struct_snd_size" in
30906     yes)
30907
30908$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
30909
30910    esac
30911esac
30912
30913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
30914$as_echo_n "checking struct clockinfo for hz... " >&6; }
30915if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
30916  $as_echo_n "(cached) " >&6
30917else
30918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30919/* end confdefs.h.  */
30920
30921		#include <sys/time.h>
30922
30923int
30924main ()
30925{
30926
30927		extern struct clockinfo *pc;
30928		return pc->hz;
30929
30930
30931  ;
30932  return 0;
30933}
30934_ACEOF
30935if ac_fn_c_try_compile "$LINENO"; then :
30936  ntp_cv_struct_clockinfo_has_hz=yes
30937else
30938  ntp_cv_struct_clockinfo_has_hz=no
30939
30940fi
30941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30942
30943fi
30944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
30945$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
30946case "$ntp_cv_struct_clockinfo_has_hz" in
30947 yes)
30948
30949$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
30950
30951esac
30952
30953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
30954$as_echo_n "checking struct clockinfo for tickadj... " >&6; }
30955if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
30956  $as_echo_n "(cached) " >&6
30957else
30958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30959/* end confdefs.h.  */
30960
30961		#include <sys/time.h>
30962
30963int
30964main ()
30965{
30966
30967		extern struct clockinfo *pc;
30968		return pc->tickadj;
30969
30970
30971  ;
30972  return 0;
30973}
30974_ACEOF
30975if ac_fn_c_try_compile "$LINENO"; then :
30976  ntp_cv_struct_clockinfo_has_hz=yes
30977else
30978  ntp_cv_struct_clockinfo_has_hz=no
30979
30980fi
30981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30982
30983fi
30984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
30985$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
30986case "$ntp_cv_struct_clockinfo_has_hz" in
30987 yes)
30988
30989$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
30990
30991esac
30992
30993case "$ntp_cv_struct_ntptimeval" in
30994 yes)
30995    ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
30996	    #ifdef HAVE_SYS_TIME_H
30997	    # include <sys/time.h>
30998	    #else
30999	    # ifdef HAVE_TIME_H
31000	    #  include <time.h>
31001	    # endif
31002	    #endif
31003	    #ifdef HAVE_SYS_TIMEX_H
31004	    # include <sys/timex.h>
31005	    #else
31006	    # ifdef HAVE_TIMEX_H
31007	    #  include <timex.h>
31008	    # endif
31009	    #endif
31010
31011
31012"
31013if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :
31014
31015cat >>confdefs.h <<_ACEOF
31016#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
31017_ACEOF
31018
31019
31020fi
31021
31022esac
31023
31024####
31025
31026for ac_func in arc4random_buf
31027do :
31028  ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
31029if test "x$ac_cv_func_arc4random_buf" = xyes; then :
31030  cat >>confdefs.h <<_ACEOF
31031#define HAVE_ARC4RANDOM_BUF 1
31032_ACEOF
31033
31034fi
31035done
31036
31037
31038####
31039
31040saved_LIBS="$LIBS"
31041LIBS="$LIBS $LDADD_LIBNTP"
31042for ac_func in daemon
31043do :
31044  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
31045if test "x$ac_cv_func_daemon" = xyes; then :
31046  cat >>confdefs.h <<_ACEOF
31047#define HAVE_DAEMON 1
31048_ACEOF
31049
31050fi
31051done
31052
31053# XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
31054LIBS="$saved_LIBS"
31055{ saved_LIBS=; unset saved_LIBS;}
31056
31057for ac_func in finite
31058do :
31059  ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
31060if test "x$ac_cv_func_finite" = xyes; then :
31061  cat >>confdefs.h <<_ACEOF
31062#define HAVE_FINITE 1
31063_ACEOF
31064
31065else
31066  for ac_func in isfinite
31067do :
31068  ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
31069if test "x$ac_cv_func_isfinite" = xyes; then :
31070  cat >>confdefs.h <<_ACEOF
31071#define HAVE_ISFINITE 1
31072_ACEOF
31073
31074else
31075
31076	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
31077$as_echo_n "checking for isfinite with <math.h>... " >&6; }
31078	    _libs=$LIBS
31079	    # XXX
31080	    LIBS="$LIBS -lm"
31081	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31082/* end confdefs.h.  */
31083
31084			#include <math.h>
31085
31086int
31087main ()
31088{
31089
31090			float f = 0.0;
31091			isfinite(f);
31092
31093
31094  ;
31095  return 0;
31096}
31097_ACEOF
31098if ac_fn_c_try_link "$LINENO"; then :
31099  ans=yes
31100else
31101  ans=no
31102
31103fi
31104rm -f core conftest.err conftest.$ac_objext \
31105    conftest$ac_exeext conftest.$ac_ext
31106	    LIBS=$_libs
31107	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31108$as_echo "$ans" >&6; }
31109	    case "$ans" in
31110	     yes)
31111		$as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
31112
31113	    esac
31114
31115
31116fi
31117done
31118
31119
31120fi
31121done
31122
31123
31124for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal
31125do :
31126  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31127ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31128if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31129  cat >>confdefs.h <<_ACEOF
31130#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31131_ACEOF
31132
31133fi
31134done
31135
31136
31137# kvm_open() is only used by tickadj.  Also see above.
31138case "$ac_cv_header_kvm_h" in
31139 yes)
31140    for ac_func in kvm_open
31141do :
31142  ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
31143if test "x$ac_cv_func_kvm_open" = xyes; then :
31144  cat >>confdefs.h <<_ACEOF
31145#define HAVE_KVM_OPEN 1
31146_ACEOF
31147
31148fi
31149done
31150
31151    ;;
31152esac
31153
31154case "$host" in
31155 *-*-sco3.2v5.0.*)
31156    # Just stubs.  Sigh.
31157    ;;
31158 *) for ac_func in mkstemp
31159do :
31160  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
31161if test "x$ac_cv_func_mkstemp" = xyes; then :
31162  cat >>confdefs.h <<_ACEOF
31163#define HAVE_MKSTEMP 1
31164_ACEOF
31165
31166fi
31167done
31168
31169    ;;
31170esac
31171for ac_func in mktime
31172do :
31173  ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
31174if test "x$ac_cv_func_mktime" = xyes; then :
31175  cat >>confdefs.h <<_ACEOF
31176#define HAVE_MKTIME 1
31177_ACEOF
31178
31179fi
31180done
31181
31182case "$host" in
31183 *-*-aix[4-9]*)
31184    # XXX only verified thru AIX6.
31185    # Just a stub.  Sigh.
31186    ;;
31187 *-*-irix[45]*)
31188    # Just a stub in "old" Irix.  Sigh.
31189    ;;
31190# In the belief that the fix for bug 1223 fixes mlockall() under linux...
31191# *-*-*linux*)
31192#    # there, but more trouble than it is worth for now (resolver problems)
31193#    ;;
31194 *-*-qnx*)
31195    # Apparently there but not working in QNX.  Sigh?
31196    ;;
31197 *-*-sco3.2v5.0.*)
31198    # Just a stub.  Sigh.
31199    ;;
31200 alpha*-dec-osf4*|alpha*-dec-osf5*)
31201    # mlockall is there, as a #define calling memlk via <sys/mman.h>
31202    # Not easy to test for - cheat.
31203    for ac_func in memlk
31204do :
31205  ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
31206if test "x$ac_cv_func_memlk" = xyes; then :
31207  cat >>confdefs.h <<_ACEOF
31208#define HAVE_MEMLK 1
31209_ACEOF
31210 ac_cv_func_mlockall=yes
31211fi
31212done
31213
31214    for ac_func in mlockall
31215do :
31216  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
31217if test "x$ac_cv_func_mlockall" = xyes; then :
31218  cat >>confdefs.h <<_ACEOF
31219#define HAVE_MLOCKALL 1
31220_ACEOF
31221
31222fi
31223done
31224
31225    ;;
31226 *) for ac_func in mlockall
31227do :
31228  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
31229if test "x$ac_cv_func_mlockall" = xyes; then :
31230  cat >>confdefs.h <<_ACEOF
31231#define HAVE_MLOCKALL 1
31232_ACEOF
31233
31234fi
31235done
31236
31237    ;;
31238esac
31239for ac_func in nice plock pututline pututxline readlink rtprio
31240do :
31241  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31242ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31243if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31244  cat >>confdefs.h <<_ACEOF
31245#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31246_ACEOF
31247
31248fi
31249done
31250
31251case "$host" in
31252 *-*-aix[4-9]*)
31253    # XXX only verified thru AIX6.
31254    # Just a stub in AIX 4.  Sigh.
31255    ;;
31256 *-*-solaris2.5*)
31257    # Just stubs in solaris2.5.  Sigh.
31258    ;;
31259 *) for ac_func in sched_setscheduler
31260do :
31261  ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
31262if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
31263  cat >>confdefs.h <<_ACEOF
31264#define HAVE_SCHED_SETSCHEDULER 1
31265_ACEOF
31266
31267fi
31268done
31269
31270    ;;
31271esac
31272for ac_func in setlinebuf setpgid setpriority setsid setvbuf
31273do :
31274  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31275ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31276if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31277  cat >>confdefs.h <<_ACEOF
31278#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31279_ACEOF
31280
31281fi
31282done
31283
31284for ac_func in strdup strerror setrlimit strchr
31285do :
31286  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31287ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31288if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31289  cat >>confdefs.h <<_ACEOF
31290#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31291_ACEOF
31292
31293fi
31294done
31295
31296case "$host" in
31297 *-*-aix[4-9]*)
31298    # XXX only verified thru AIX6.
31299    # Just stubs.  Sigh.
31300    ;;
31301 *-*-netbsd1*)
31302    # Just stubs.  Sigh.
31303    ;;
31304 *-*-netbsdelf1*)
31305    # Just stubs.  Sigh.
31306    ;;
31307 *-*-openbsd*)
31308    # Just stubs.  Sigh.
31309    ;;
31310 *)
31311    for ac_func in timer_create
31312do :
31313  ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
31314if test "x$ac_cv_func_timer_create" = xyes; then :
31315  cat >>confdefs.h <<_ACEOF
31316#define HAVE_TIMER_CREATE 1
31317_ACEOF
31318
31319fi
31320done
31321
31322    ;;
31323esac
31324
31325
31326
31327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
31328$as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; }
31329if ${ntp_cv_rlimit_memlock+:} false; then :
31330  $as_echo_n "(cached) " >&6
31331else
31332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31333/* end confdefs.h.  */
31334
31335		#ifdef HAVE_SYS_TYPES_H
31336		# include <sys/types.h>
31337		#endif
31338		#ifdef HAVE_SYS_TIME_H
31339		# include <sys/time.h>
31340		#endif
31341		#ifdef HAVE_SYS_RESOURCE_H
31342		# include <sys/resource.h>
31343		#endif
31344
31345int
31346main ()
31347{
31348
31349		getrlimit(RLIMIT_MEMLOCK, 0);
31350
31351
31352  ;
31353  return 0;
31354}
31355_ACEOF
31356if ac_fn_c_try_compile "$LINENO"; then :
31357  ntp_cv_rlimit_memlock=yes
31358else
31359  ntp_cv_rlimit_memlock=no
31360
31361fi
31362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31363
31364fi
31365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
31366$as_echo "$ntp_cv_rlimit_memlock" >&6; }
31367case "$host" in
31368 *-*-*linux*)
31369    ntp_dflt_rlimit_memlock="-1" ;;
31370 *) ntp_dflt_rlimit_memlock="32" ;;
31371esac
31372case "$ntp_cv_rlimit_memlock" in
31373 yes)
31374
31375    HAVE_RLIMIT_MEMLOCK=" memlock $ntp_dflt_rlimit_memlock"  ;;
31376esac
31377
31378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
31379$as_echo_n "checking for RLIMIT_STACK... " >&6; }
31380if ${ntp_cv_rlimit_stack+:} false; then :
31381  $as_echo_n "(cached) " >&6
31382else
31383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31384/* end confdefs.h.  */
31385
31386		#ifdef HAVE_SYS_TYPES_H
31387		# include <sys/types.h>
31388		#endif
31389		#ifdef HAVE_SYS_TIME_H
31390		# include <sys/time.h>
31391		#endif
31392		#ifdef HAVE_SYS_RESOURCE_H
31393		# include <sys/resource.h>
31394		#endif
31395
31396int
31397main ()
31398{
31399
31400		getrlimit(RLIMIT_STACK, 0);
31401
31402
31403  ;
31404  return 0;
31405}
31406_ACEOF
31407if ac_fn_c_try_compile "$LINENO"; then :
31408  ntp_cv_rlimit_stack=yes
31409else
31410  ntp_cv_rlimit_stack=no
31411
31412fi
31413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31414
31415fi
31416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
31417$as_echo "$ntp_cv_rlimit_stack" >&6; }
31418case "$ntp_cv_rlimit_stack" in
31419 yes)
31420
31421    HAVE_RLIMIT_STACK=" stacksize 50"
31422esac
31423
31424# HMS: Only if we are doing the MLOCKALL stuff...
31425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
31426$as_echo_n "checking for the default number of 4k stack pages... " >&6; }
31427
31428# Check whether --with-stack-limit was given.
31429if test "${with_stack_limit+set}" = set; then :
31430  withval=$with_stack_limit; ans=$withval
31431else
31432  ans=yes
31433
31434fi
31435
31436case "$ans" in
31437 yes | no)
31438    case "$host" in
31439     *-*-openbsd*)
31440	ans=200
31441	;;
31442     *) ans=50
31443        ;;
31444    esac
31445    ;;
31446 [1-9][0-9]*)
31447    ;;
31448 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
31449    ;;
31450esac
31451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31452$as_echo "$ans" >&6; }
31453
31454cat >>confdefs.h <<_ACEOF
31455#define DFLT_RLIMIT_STACK $ans
31456_ACEOF
31457
31458
31459# HMS: only if we have RLIMIT_MEMLOCK
31460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
31461$as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; }
31462
31463# Check whether --with-memlock was given.
31464if test "${with_memlock+set}" = set; then :
31465  withval=$with_memlock; ans=$withval
31466else
31467  ans=yes
31468
31469fi
31470
31471case "$ans" in
31472 yes | no)
31473    ans=$ntp_dflt_rlimit_memlock
31474    ;;
31475 [1-9][0-9]*) ;;
31476 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
31477     ;;
31478esac
31479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31480$as_echo "$ans" >&6; }
31481
31482cat >>confdefs.h <<_ACEOF
31483#define DFLT_RLIMIT_MEMLOCK $ans
31484_ACEOF
31485
31486
31487
31488
31489# some OSes prefer _exit() in forked children to exit()
31490for ac_func in _exit
31491do :
31492  ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
31493if test "x$ac_cv_func__exit" = xyes; then :
31494  cat >>confdefs.h <<_ACEOF
31495#define HAVE__EXIT 1
31496_ACEOF
31497
31498fi
31499done
31500
31501ntp_worker_child_exit=exit
31502case "$ac_cv_func__exit::$host_os" in
31503 yes::netbsd*)
31504    ntp_worker_child_exit=_exit
31505    ;;
31506 yes::openbsd*)
31507    ntp_worker_child_exit=_exit
31508    ;;
31509esac
31510
31511cat >>confdefs.h <<_ACEOF
31512#define WORKER_CHILD_EXIT $ntp_worker_child_exit
31513_ACEOF
31514
31515
31516for ac_func in umask uname updwtmp updwtmpx
31517do :
31518  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31519ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31520if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31521  cat >>confdefs.h <<_ACEOF
31522#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31523_ACEOF
31524
31525fi
31526done
31527
31528
31529###
31530
31531# http://bugs.ntp.org/737
31532case "$ac_cv_func_recvmsg" in
31533 yes)
31534    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
31535$as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
31536if ${ntp_cv_struct_iovec_help+:} false; then :
31537  $as_echo_n "(cached) " >&6
31538else
31539
31540	    compiled=no
31541	    for ntp_cv_struct_iovec_help in '0' '1'; do
31542		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31543/* end confdefs.h.  */
31544
31545			    #ifdef HAVE_SYS_TYPES_H
31546			    # include <sys/types.h>
31547			    #endif
31548			    #ifdef HAVE_SYS_SOCKET_H
31549			    # include <sys/socket.h>
31550			    #endif
31551			    #if $ntp_cv_struct_iovec_help
31552			    # include <sys/uio.h>
31553			    #endif
31554
31555int
31556main ()
31557{
31558
31559			    void foo(void) {
31560				ssize_t x;
31561				int s = 0;
31562				struct iovec iov;
31563				struct msghdr mh;
31564				int flags = 0;
31565
31566				mh.msg_iov = &iov;
31567				x = recvmsg(s, &mh, flags);
31568			    }
31569
31570
31571  ;
31572  return 0;
31573}
31574_ACEOF
31575if ac_fn_c_try_compile "$LINENO"; then :
31576  compiled=yes ; break 1
31577fi
31578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31579	    done
31580	    case "$compiled" in
31581	     no)
31582		ntp_cv_struct_iovec_help=0
31583	    esac
31584	    { compiled=; unset compiled;}
31585
31586
31587fi
31588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
31589$as_echo "$ntp_cv_struct_iovec_help" >&6; }
31590    case "$ntp_cv_struct_iovec_help" in
31591     1)
31592
31593$as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
31594
31595    esac
31596esac
31597
31598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
31599$as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
31600if ${ntp_cv_func_setpgrp_nargs+:} false; then :
31601  $as_echo_n "(cached) " >&6
31602else
31603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31604/* end confdefs.h.  */
31605
31606		#ifdef HAVE_SYS_TYPES_H
31607		# include <sys/types.h>
31608		#endif
31609		#ifdef HAVE_UNISTD_H
31610		# include <unistd.h>
31611		#endif
31612
31613int
31614main ()
31615{
31616
31617		setpgrp(0, 0);
31618
31619
31620  ;
31621  return 0;
31622}
31623_ACEOF
31624if ac_fn_c_try_compile "$LINENO"; then :
31625  ntp_cv_func_setpgrp_nargs=2
31626else
31627  ntp_cv_func_setpgrp_nargs=0
31628
31629fi
31630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31631
31632fi
31633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5
31634$as_echo "$ntp_cv_func_setpgrp_nargs" >&6; }
31635case "$ntp_cv_func_setpgrp_nargs" in
31636 0)
31637
31638$as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h
31639
31640esac
31641
31642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
31643$as_echo_n "checking if we need to declare 'errno'... " >&6; }
31644if ${ntp_cv_decl_errno+:} false; then :
31645  $as_echo_n "(cached) " >&6
31646else
31647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31648/* end confdefs.h.  */
31649
31650		#ifdef HAVE_ERRNO_H
31651		# include <errno.h>
31652		#endif
31653
31654int
31655main ()
31656{
31657
31658		errno = 0;
31659
31660
31661  ;
31662  return 0;
31663}
31664_ACEOF
31665if ac_fn_c_try_compile "$LINENO"; then :
31666  ntp_cv_decl_errno=no
31667else
31668  ntp_cv_decl_errno=yes
31669
31670fi
31671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31672
31673fi
31674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5
31675$as_echo "$ntp_cv_decl_errno" >&6; }
31676case "$ntp_cv_decl_errno" in
31677 yes)
31678
31679$as_echo "#define DECL_ERRNO 1" >>confdefs.h
31680
31681esac
31682
31683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
31684$as_echo_n "checking if we may declare 'h_errno'... " >&6; }
31685if ${ntp_cv_decl_h_errno+:} false; then :
31686  $as_echo_n "(cached) " >&6
31687else
31688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31689/* end confdefs.h.  */
31690
31691		#include <sys/types.h>
31692		#ifdef HAVE_NETINET_IN_H
31693		# include <netinet/in.h>
31694		#endif
31695		#ifdef HAVE_ARPA_NAMESER_H
31696		# include <arpa/nameser.h>
31697		#endif
31698		#ifdef HAVE_NETDB_H
31699		# include <netdb.h>
31700		#endif
31701		#ifdef HAVE_RESOLV_H
31702		# include <resolv.h>
31703		#endif
31704
31705int
31706main ()
31707{
31708
31709		extern int h_errno;
31710
31711
31712  ;
31713  return 0;
31714}
31715_ACEOF
31716if ac_fn_c_try_compile "$LINENO"; then :
31717  ntp_cv_decl_h_errno=yes
31718else
31719  ntp_cv_decl_h_errno=no
31720
31721fi
31722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31723
31724fi
31725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5
31726$as_echo "$ntp_cv_decl_h_errno" >&6; }
31727case "$ntp_cv_decl_h_errno" in
31728 yes)
31729
31730$as_echo "#define DECL_H_ERRNO 1" >>confdefs.h
31731
31732esac
31733
31734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
31735$as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
31736if ${ntp_cv_decl_syscall+:} false; then :
31737  $as_echo_n "(cached) " >&6
31738else
31739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31740/* end confdefs.h.  */
31741
31742		#ifdef HAVE_SYS_TYPES_H
31743		# include <sys/types.h>
31744		#endif
31745		#ifdef HAVE_UNISTD_H
31746		# include <unistd.h>
31747		#endif
31748
31749int
31750main ()
31751{
31752
31753		extern int syscall (int, ...);
31754
31755
31756  ;
31757  return 0;
31758}
31759	ntp_cv_decl_syscall=yes
31760_ACEOF
31761if ac_fn_c_try_compile "$LINENO"; then :
31762  ntp_cv_decl_syscall=no
31763
31764fi
31765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31766
31767fi
31768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5
31769$as_echo "$ntp_cv_decl_syscall" >&6; }
31770case "$ntp_cv_decl_syscall" in
31771 yes)
31772
31773$as_echo "#define DECL_SYSCALL 1" >>confdefs.h
31774
31775esac
31776
31777case "$host" in
31778 *-*-aix4.3.*)
31779
31780$as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
31781		# Needed for XLC under AIX 4.3.2
31782    ;;
31783 *-*-mpeix*)
31784
31785$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31786
31787
31788$as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h
31789
31790
31791$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31792
31793
31794$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31795
31796
31797$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31798
31799
31800$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31801
31802
31803$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31804
31805    ;;
31806 *-*-osf[45]*)
31807
31808$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
31809
31810
31811$as_echo "#define DECL_STIME_1 1" >>confdefs.h
31812
31813    ;;
31814 *-*-qnx*)
31815
31816$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31817
31818    ;;
31819 *-*-riscos4*)
31820
31821$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31822
31823
31824$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31825
31826
31827$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31828
31829
31830$as_echo "#define DECL_IPC_0 1" >>confdefs.h
31831
31832
31833$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
31834
31835
31836$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31837
31838
31839$as_echo "#define DECL_RENAME_0 1" >>confdefs.h
31840
31841
31842$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31843
31844
31845$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31846
31847
31848$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31849
31850
31851$as_echo "#define DECL_STDIO_0 1" >>confdefs.h
31852
31853
31854$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
31855
31856
31857$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31858
31859
31860$as_echo "#define DECL_TIME_0 1" >>confdefs.h
31861
31862
31863$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31864
31865
31866$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
31867
31868    ;;
31869 *-*-solaris2*)
31870
31871$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
31872
31873
31874$as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h
31875
31876    case "$host" in
31877     *-*-solaris2.4)
31878
31879$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31880
31881	;;
31882    esac
31883    ;;
31884 *-*-sunos4*)
31885
31886$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31887
31888
31889$as_echo "#define DECL_BCOPY_0 1" >>confdefs.h
31890
31891
31892$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31893
31894
31895$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31896
31897
31898$as_echo "#define DECL_IPC_0 1" >>confdefs.h
31899
31900
31901$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
31902
31903
31904$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31905
31906
31907$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
31908
31909
31910$as_echo "#define DECL_RENAME_0 1" >>confdefs.h
31911
31912
31913$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31914
31915
31916$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31917
31918
31919$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31920
31921
31922$as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h
31923
31924    case "`basename $ac_cv_prog_CC`" in
31925     acc*) ;;
31926     *)
31927$as_echo "#define DECL_STDIO_0 1" >>confdefs.h
31928
31929	;;
31930    esac
31931
31932$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
31933
31934
31935$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31936
31937
31938$as_echo "#define DECL_TIME_0 1" >>confdefs.h
31939
31940
31941$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31942
31943
31944$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
31945
31946
31947$as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h
31948
31949
31950$as_echo "#define DECL_STRERROR_0 1" >>confdefs.h
31951
31952    ;;
31953 *-*-ultrix4*)
31954
31955$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31956
31957
31958$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31959
31960
31961$as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h
31962
31963
31964$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31965
31966
31967$as_echo "#define DECL_IPC_0 1" >>confdefs.h
31968
31969
31970$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31971
31972
31973$as_echo "#define DECL_NLIST_0 1" >>confdefs.h
31974
31975
31976$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
31977
31978
31979$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31980
31981
31982$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31983
31984
31985$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31986
31987
31988$as_echo "#define DECL_STIME_0 1" >>confdefs.h
31989
31990
31991$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31992
31993
31994$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31995
31996    ;;
31997esac
31998
31999case "$host" in
32000 *-*-sco3.2*)
32001
32002$as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
32003
32004    ;;
32005esac
32006
32007case "$host" in
32008 *-*-hpux[567]*)
32009
32010$as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
32011
32012esac
32013
32014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
32015$as_echo_n "checking if we will open the broadcast socket... " >&6; }
32016if ${ntp_cv_var_open_bcast_socket+:} false; then :
32017  $as_echo_n "(cached) " >&6
32018else
32019
32020	ans=yes
32021	case "$host" in
32022	 *-*-domainos)
32023	    ans=no
32024	esac
32025	ntp_cv_var_open_bcast_socket=$ans
32026
32027
32028fi
32029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5
32030$as_echo "$ntp_cv_var_open_bcast_socket" >&6; }
32031case "$ntp_cv_var_open_bcast_socket" in
32032 yes)
32033
32034$as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
32035
32036esac
32037
32038case "$host" in
32039 *-*-hpux*)
32040
32041$as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
32042
32043esac
32044
32045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
32046$as_echo_n "checking if process groups are set with -pid... " >&6; }
32047if ${ntp_cv_arg_setpgrp_negpid+:} false; then :
32048  $as_echo_n "(cached) " >&6
32049else
32050
32051	case "$host" in
32052	 *-*-hpux[567]*)
32053	    ans=no
32054	    ;;
32055	 *-*-hpux*)
32056	    ans=yes
32057	    ;;
32058	 *-*-*linux*)
32059	    ans=yes
32060	    ;;
32061	 *-*-sunos3*)
32062	    ans=yes
32063	    ;;
32064	 *-*-ultrix2*)
32065	    ans=yes
32066	    ;;
32067	 *)
32068	    ans=no
32069	    ;;
32070	esac
32071	ntp_cv_arg_setpgrp_negpid=$ans
32072
32073
32074fi
32075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5
32076$as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; }
32077case "$ntp_cv_arg_setpgrp_negpid" in
32078 yes)
32079
32080$as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
32081
32082esac
32083
32084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
32085$as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
32086if ${ntp_cv_func_ctty_for_f_setown+:} false; then :
32087  $as_echo_n "(cached) " >&6
32088else
32089
32090	case "$host" in
32091	 *-*-bsdi[23]*)
32092	    ans=yes
32093	    ;;
32094	 *-*-freebsd*)
32095	    ans=yes
32096	    ;;
32097	# NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
32098	# while later versions will fail a ioctl(TIOCSCTTY, 0) call in
32099	# some cases and so should not have USE_FSETOWNCTTY.  "netbsd"
32100	# in $host may be followed by "aout", "ecoff", or "elf".
32101	 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
32102	    ans=yes
32103	    ;;
32104	 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
32105	    ans=yes
32106	    ;;
32107	 *-*-openbsd*)
32108	    ans=yes
32109	    ;;
32110	 *-*-osf*)
32111	    ans=yes
32112	    ;;
32113	 *-*-darwin*)
32114	    ans=yes
32115	    ;;
32116	 *)
32117	    ans=no
32118	    ;;
32119	esac
32120	ntp_cv_func_ctty_for_f_setown=$ans
32121
32122
32123fi
32124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
32125$as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
32126case "$ntp_cv_func_ctty_for_f_setown" in
32127 yes)
32128
32129$as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h
32130
32131esac
32132
32133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
32134$as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
32135if ${ntp_cv_os_routeupdates+:} false; then :
32136  $as_echo_n "(cached) " >&6
32137else
32138
32139	case "$host" in
32140	 *-*-netbsd*)
32141	    ans=yes
32142	    ;;
32143	 *)
32144	    ans=no
32145	    ;;
32146	esac
32147	ntp_cv_os_routeupdates=$ans
32148
32149
32150fi
32151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
32152$as_echo "$ntp_cv_os_routeupdates" >&6; }
32153case "$ntp_cv_os_routeupdates" in
32154 yes)
32155
32156$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
32157
32158esac
32159
32160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
32161$as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
32162if ${ntp_cv_os_wildcardreuse+:} false; then :
32163  $as_echo_n "(cached) " >&6
32164else
32165
32166	case "$host" in
32167	 *-*-*linux*)
32168	    ans=yes
32169	    ;;
32170	 *) ans=no
32171	    ;;
32172	esac
32173	ntp_cv_os_wildcardreuse=$ans
32174
32175
32176fi
32177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
32178$as_echo "$ntp_cv_os_wildcardreuse" >&6; }
32179case "$ntp_cv_os_wildcardreuse" in
32180 yes)
32181
32182$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
32183
32184esac
32185
32186case "$host" in
32187 *-*-aix*)
32188
32189$as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
32190
32191esac
32192
32193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
32194$as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
32195if ${ntp_cv_var_min_rec_tickadj+:} false; then :
32196  $as_echo_n "(cached) " >&6
32197else
32198
32199	ans=no
32200	case "$host" in
32201	 *-*-aix*)
32202	    ans=40
32203	    ;;
32204	esac
32205	ntp_cv_var_min_rec_tickadj=$ans
32206
32207
32208fi
32209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5
32210$as_echo "$ntp_cv_var_min_rec_tickadj" >&6; }
32211case "$ntp_cv_var_min_rec_tickadj" in
32212 ''|no)
32213    ;;
32214 *)
32215
32216cat >>confdefs.h <<_ACEOF
32217#define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj
32218_ACEOF
32219
32220esac
32221
32222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
32223$as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
32224if ${ntp_cv_no_parenb_ignpar+:} false; then :
32225  $as_echo_n "(cached) " >&6
32226else
32227
32228	ans=no
32229	case "$host" in
32230	 i?86-*-*linux*)
32231	    ans=yes
32232	    ;;
32233	 mips-sgi-irix*)
32234	    ans=yes
32235	    ;;
32236	 i?86-*-freebsd[123].*)
32237	    ;;
32238	 i?86-*-freebsd*)
32239	    ans=yes
32240	    ;;
32241	 *-*-unicosmp*)
32242	    ans=yes
32243	    ;;
32244	esac
32245	ntp_cv_no_parenb_ignpar=$ans
32246
32247
32248fi
32249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5
32250$as_echo "$ntp_cv_no_parenb_ignpar" >&6; }
32251case "$ntp_cv_no_parenb_ignpar" in
32252 yes)
32253
32254$as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h
32255
32256esac
32257
32258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5
32259$as_echo_n "checking if we're including processing time debugging code... " >&6; }
32260# Check whether --enable-debug-timing was given.
32261if test "${enable_debug_timing+set}" = set; then :
32262  enableval=$enable_debug_timing; ntp_ok=$enableval
32263else
32264  ntp_ok=no
32265
32266fi
32267
32268case "$ntp_ok" in
32269 yes)
32270
32271$as_echo "#define DEBUG_TIMING 1" >>confdefs.h
32272
32273esac
32274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32275$as_echo "$ntp_ok" >&6; }
32276
32277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
32278$as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
32279# Check whether --enable-dst-minutes was given.
32280if test "${enable_dst_minutes+set}" = set; then :
32281  enableval=$enable_dst_minutes; ans=$enableval
32282else
32283  ans=60
32284
32285fi
32286
32287
32288cat >>confdefs.h <<_ACEOF
32289#define DSTMINUTES $ans
32290_ACEOF
32291
32292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32293$as_echo "$ans" >&6; }
32294
32295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
32296$as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; }
32297# Check whether --enable-ignore-dns-errors was given.
32298if test "${enable_ignore_dns_errors+set}" = set; then :
32299  enableval=$enable_ignore_dns_errors; ans=$enableval
32300else
32301  ans=no
32302
32303fi
32304
32305case "$ans" in
32306 yes)
32307
32308$as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
32309
32310esac
32311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32312$as_echo "$ans" >&6; }
32313
32314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
32315$as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
32316if ${ntp_cv_var_ntp_syscalls+:} false; then :
32317  $as_echo_n "(cached) " >&6
32318else
32319
32320	ntp_cv_var_ntp_syscalls=no
32321	case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
32322	 yesyes*)
32323	    ntp_cv_var_ntp_syscalls=libc
32324	    ;;
32325	 *yes)
32326	    ntp_cv_var_ntp_syscalls=inline
32327	    ;;
32328	 *)
32329	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32330/* end confdefs.h.  */
32331
32332			#include <sys/syscall.h>
32333			#if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
32334			# error
32335			#endif
32336
32337_ACEOF
32338if ac_fn_c_try_cpp "$LINENO"; then :
32339  ntp_cv_var_ntp_syscalls=kernel
32340
32341fi
32342rm -f conftest.err conftest.i conftest.$ac_ext
32343	    ;;
32344	 esac
32345
32346
32347fi
32348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5
32349$as_echo "$ntp_cv_var_ntp_syscalls" >&6; }
32350case "$ntp_cv_var_ntp_syscalls" in
32351 libc)
32352
32353$as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
32354
32355    ;;
32356 kernel)
32357
32358$as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h
32359
32360    ;;
32361esac
32362
32363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
32364$as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
32365if ${ntp_cv_var_sta_fll+:} false; then :
32366  $as_echo_n "(cached) " >&6
32367else
32368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32369/* end confdefs.h.  */
32370
32371		#include <sys/timex.h>
32372		#ifndef STA_FLL
32373		# error
32374		#endif
32375
32376_ACEOF
32377if ac_fn_c_try_cpp "$LINENO"; then :
32378  ntp_cv_var_sta_fll=yes
32379else
32380  ntp_cv_var_sta_fll=no
32381
32382fi
32383rm -f conftest.err conftest.i conftest.$ac_ext
32384
32385fi
32386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5
32387$as_echo "$ntp_cv_var_sta_fll" >&6; }
32388
32389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
32390$as_echo_n "checking if we have kernel PLL support... " >&6; }
32391if ${ntp_cv_var_kernel_pll+:} false; then :
32392  $as_echo_n "(cached) " >&6
32393else
32394  	case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in
32395	 *no*)
32396	    ntp_cv_var_kernel_pll=no
32397	    ;;
32398	 *) ntp_cv_var_kernel_pll=yes
32399	    ;;
32400	esac
32401
32402
32403fi
32404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5
32405$as_echo "$ntp_cv_var_kernel_pll" >&6; }
32406case "$ntp_cv_var_kernel_pll" in
32407 yes)
32408
32409$as_echo "#define KERNEL_PLL 1" >>confdefs.h
32410
32411esac
32412
32413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
32414$as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
32415if ${ntp_cv_size_returned_in_buffer+:} false; then :
32416  $as_echo_n "(cached) " >&6
32417else
32418
32419	ans=no
32420	case "$host" in
32421	 *-fujitsu-uxp*)
32422	    ans=yes
32423	    ;;
32424	 *-ncr-sysv4*)
32425	    ans=yes
32426	    ;;
32427	 *-univel-sysv*)
32428	    ans=yes
32429	    ;;
32430	esac
32431	ntp_cv_size_returned_in_buffer=$ans
32432
32433
32434fi
32435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5
32436$as_echo "$ntp_cv_size_returned_in_buffer" >&6; }
32437case "$ntp_cv_size_returned_in_buffer" in
32438 yes)
32439
32440$as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
32441
32442esac
32443
32444# Check for ioctls TIOCGPPSEV
32445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5
32446$as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; }
32447case "$ac_cv_header_termios_h" in
32448 yes)
32449    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32450/* end confdefs.h.  */
32451
32452	    #include <termios.h>
32453	    #ifndef TIOCGPPSEV
32454	    # error
32455	    #endif
32456
32457_ACEOF
32458if ac_fn_c_try_cpp "$LINENO"; then :
32459  ntp_ok=yes
32460else
32461  ntp_ok=no
32462
32463fi
32464rm -f conftest.err conftest.i conftest.$ac_ext
32465    ;;
32466 *)
32467    ntp_ok=no
32468    ;;
32469esac
32470case "$ntp_ok" in
32471 yes)
32472
32473$as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
32474
32475esac
32476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32477$as_echo "$ntp_ok" >&6; }
32478
32479# Check for ioctls TIOCSPPS
32480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5
32481$as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; }
32482case "$ac_cv_header_termios_h" in
32483 yes)
32484    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32485/* end confdefs.h.  */
32486
32487	    #include <termios.h>
32488	    #ifndef TIOCSPPS
32489	    # error
32490	    #endif
32491
32492_ACEOF
32493if ac_fn_c_try_cpp "$LINENO"; then :
32494  ntp_ok=yes
32495else
32496  ntp_ok=no
32497
32498fi
32499rm -f conftest.err conftest.i conftest.$ac_ext
32500    ;;
32501 *)
32502    ntp_ok=no
32503    ;;
32504esac
32505case "$ntp_ok" in
32506 yes)
32507
32508$as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h
32509
32510esac
32511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32512$as_echo "$ntp_ok" >&6; }
32513
32514# Check for ioctls CIOGETEV
32515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5
32516$as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; }
32517case "$ac_cv_header_sys_ppsclock_h" in
32518 yes)
32519    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32520/* end confdefs.h.  */
32521
32522	    #include <sys/ppsclock.h>
32523	    #ifndef CIOGETEV
32524	    # error
32525	    #endif
32526
32527_ACEOF
32528if ac_fn_c_try_cpp "$LINENO"; then :
32529  ntp_ok=yes
32530else
32531  ntp_ok=no
32532
32533fi
32534rm -f conftest.err conftest.i conftest.$ac_ext
32535    ;;
32536 *)
32537    ntp_ok=no
32538    ;;
32539esac
32540case "$ntp_ok" in
32541 yes)
32542
32543$as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h
32544
32545esac
32546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32547$as_echo "$ntp_ok" >&6; }
32548
32549# ATOM/PPSAPI stuff.
32550
32551ntp_atom_ok=yes
32552
32553# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
32554
32555# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
32556# The PPSAPI needs struct timespec.
32557# The PPSAPI also needs a timepps header.
32558
32559case "$ac_cv_c_inline$ntp_cv_struct_timespec" in
32560 inlineyes)
32561    case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
32562     *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
32563
32564$as_echo "#define HAVE_PPSAPI 1" >>confdefs.h
32565
32566	ntp_jupiter_ok=yes
32567	ntp_oncore_ok=yes
32568	ntp_parse_ok=yes
32569	ntp_ripe_ncc_ok=yes
32570	;;
32571    esac
32572    ;;
32573esac
32574
32575# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
32576ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
32577if test "x$ac_cv_header_linux_serial_h" = xyes; then :
32578
32579fi
32580
32581
32582case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
32583  yesyes)
32584    { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
32585$as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
32586    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32587/* end confdefs.h.  */
32588
32589	    #include <sys/time.h>
32590	    typedef int u_int;
32591	    #include <sys/ppsclock.h>
32592	    #include <linux/serial.h>
32593
32594	    #ifndef TIOCGSERIAL
32595	    # error
32596	    #endif
32597	    #ifndef TIOCSSERIAL
32598	    # error
32599	    #endif
32600	    #ifndef ASYNC_PPS_CD_POS
32601	    # error
32602	    #endif
32603	    #ifndef ASYNC_PPS_CD_NEG
32604	    # error
32605	    #endif
32606	    #ifndef CIOGETEV
32607	    # error
32608	    #endif
32609
32610_ACEOF
32611if ac_fn_c_try_cpp "$LINENO"; then :
32612  ntp_ok=yes
32613else
32614  ntp_ok=no
32615
32616fi
32617rm -f conftest.err conftest.i conftest.$ac_ext
32618    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32619$as_echo "$ntp_ok" >&6; }
32620    ;;
32621  *)
32622    ntp_ok=no
32623    ;;
32624esac
32625case "$ntp_ok" in
32626 yes)
32627
32628$as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
32629
32630esac
32631
32632# Check for SHMEM_STATUS support
32633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
32634$as_echo_n "checking SHMEM_STATUS support... " >&6; }
32635case "$ac_cv_header_sys_mman_h" in
32636 yes)
32637    ntp_ok=yes
32638    ;;
32639 *)
32640    ntp_ok=no
32641    ;;
32642esac
32643case "$ntp_ok" in
32644 yes)
32645
32646$as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h
32647
32648esac
32649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32650$as_echo "$ntp_ok" >&6; }
32651
32652ntp_refclock=no
32653
32654# HPUX only, and by explicit request
32655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
32656$as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
32657# Check whether --enable-BANCOMM was given.
32658if test "${enable_BANCOMM+set}" = set; then :
32659  enableval=$enable_BANCOMM; ntp_ok=$enableval
32660else
32661  ntp_ok=no
32662
32663fi
32664
32665case "$ntp_ok" in
32666 yes)
32667    ntp_refclock=yes
32668
32669$as_echo "#define CLOCK_BANC 1" >>confdefs.h
32670
32671    ;;
32672esac
32673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32674$as_echo "$ntp_ok" >&6; }
32675case "$ntp_ok$host" in
32676 yes*-*-hpux*) ;;
32677 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32678$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
32679esac
32680
32681#HPUX only, and only by explicit request
32682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
32683$as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
32684# Check whether --enable-GPSVME was given.
32685if test "${enable_GPSVME+set}" = set; then :
32686  enableval=$enable_GPSVME; ntp_ok=$enableval
32687else
32688  ntp_ok=no
32689
32690fi
32691
32692case "$ntp_ok" in
32693 yes)
32694    ntp_refclock=yes
32695
32696$as_echo "#define CLOCK_GPSVME 1" >>confdefs.h
32697
32698    ;;
32699esac
32700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32701$as_echo "$ntp_ok" >&6; }
32702case "$ntp_ok$host" in
32703 yes*-*-hpux*) ;;
32704 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32705$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
32706esac
32707
32708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
32709$as_echo_n "checking for PCL720 clock support... " >&6; }
32710case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
32711 yesyesyes)
32712
32713$as_echo "#define CLOCK_PPS720 1" >>confdefs.h
32714
32715    ans=yes
32716    ;;
32717 *)
32718    ans=no
32719    ;;
32720esac
32721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32722$as_echo "$ans" >&6; }
32723
32724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
32725$as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
32726# Check whether --enable-all-clocks was given.
32727if test "${enable_all_clocks+set}" = set; then :
32728  enableval=$enable_all_clocks; ntp_eac=$enableval
32729else
32730  ntp_eac=yes
32731
32732fi
32733
32734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
32735$as_echo "$ntp_eac" >&6; }
32736
32737# HMS: Should we also require ntp_parse_ok?
32738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
32739$as_echo_n "checking if we have support for PARSE clocks... " >&6; }
32740case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
32741 yes*yes*)
32742    ntp_canparse=yes
32743    ;;
32744 *) ntp_canparse=no
32745    ;;
32746esac
32747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
32748$as_echo "$ntp_canparse" >&6; }
32749
32750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
32751$as_echo_n "checking if we have support for audio clocks... " >&6; }
32752case "$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
32753 *yes*)
32754    ntp_canaudio=yes
32755
32756$as_echo "#define HAVE_AUDIO /**/" >>confdefs.h
32757
32758    ;;
32759 *) ntp_canaudio=no ;;
32760esac
32761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
32762$as_echo "$ntp_canaudio" >&6; }
32763
32764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
32765$as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
32766case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
32767 yesyes)
32768    ntp_canshm=yes
32769    ;;
32770 *) ntp_canshm=no ;;
32771esac
32772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
32773$as_echo "$ntp_canshm" >&6; }
32774
32775# Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade)
32776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5
32777$as_echo_n "checking for termios modem control... " >&6; }
32778if ${ntp_cv_modem_control+:} false; then :
32779  $as_echo_n "(cached) " >&6
32780else
32781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32782/* end confdefs.h.  */
32783
32784		#ifdef HAVE_UNISTD_H
32785		# include <unistd.h>
32786		#endif
32787		#ifdef HAVE_TERMIOS_H
32788		# include <termios.h>
32789		#endif
32790		#ifdef HAVE_SYS_IOCTL_H
32791		# include <sys/ioctl.h>
32792		#endif
32793
32794int
32795main ()
32796{
32797
32798		int	dtr = TIOCM_DTR;
32799
32800		ioctl(1, TIOCMBIS, (char *)&dtr);
32801
32802
32803  ;
32804  return 0;
32805}
32806_ACEOF
32807if ac_fn_c_try_compile "$LINENO"; then :
32808  ntp_cv_modem_control=yes
32809else
32810  ntp_cv_modem_control=no
32811
32812fi
32813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32814
32815fi
32816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5
32817$as_echo "$ntp_cv_modem_control" >&6; }
32818case "$ntp_eac::$ntp_cv_modem_control" in
32819 yes::yes)
32820    ntp_enable_all_modem_control_clocks=yes
32821    ;;
32822 *)
32823    ntp_enable_all_modem_control_clocks=no
32824    ;;
32825esac
32826
32827# Requires modem control
32828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
32829$as_echo_n "checking ACTS modem service... " >&6; }
32830# Check whether --enable-ACTS was given.
32831if test "${enable_ACTS+set}" = set; then :
32832  enableval=$enable_ACTS; ntp_ok=$enableval
32833else
32834  ntp_ok=$ntp_enable_all_modem_control_clocks
32835
32836fi
32837
32838case "$ntp_ok" in
32839 yes)
32840    ntp_refclock=yes
32841
32842$as_echo "#define CLOCK_ACTS 1" >>confdefs.h
32843
32844    ;;
32845esac
32846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32847$as_echo "$ntp_ok" >&6; }
32848
32849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
32850$as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
32851# Check whether --enable-ARBITER was given.
32852if test "${enable_ARBITER+set}" = set; then :
32853  enableval=$enable_ARBITER; ntp_ok=$enableval
32854else
32855  ntp_ok=$ntp_eac
32856
32857fi
32858
32859case "$ntp_ok" in
32860 yes)
32861    ntp_refclock=yes
32862
32863$as_echo "#define CLOCK_ARBITER 1" >>confdefs.h
32864
32865    ;;
32866esac
32867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32868$as_echo "$ntp_ok" >&6; }
32869
32870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
32871$as_echo_n "checking Arcron MSF receiver... " >&6; }
32872# Check whether --enable-ARCRON_MSF was given.
32873if test "${enable_ARCRON_MSF+set}" = set; then :
32874  enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
32875else
32876  ntp_ok=$ntp_eac
32877
32878fi
32879
32880case "$ntp_ok" in
32881 yes)
32882    ntp_refclock=yes
32883
32884$as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
32885
32886    ;;
32887esac
32888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32889$as_echo "$ntp_ok" >&6; }
32890
32891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
32892$as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
32893# Check whether --enable-AS2201 was given.
32894if test "${enable_AS2201+set}" = set; then :
32895  enableval=$enable_AS2201; ntp_ok=$enableval
32896else
32897  ntp_ok=$ntp_eac
32898
32899fi
32900
32901case "$ntp_ok" in
32902 yes)
32903    ntp_refclock=yes
32904
32905$as_echo "#define CLOCK_AS2201 1" >>confdefs.h
32906
32907    ;;
32908esac
32909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32910$as_echo "$ntp_ok" >&6; }
32911
32912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
32913$as_echo_n "checking ATOM PPS interface... " >&6; }
32914# Check whether --enable-ATOM was given.
32915if test "${enable_ATOM+set}" = set; then :
32916  enableval=$enable_ATOM; ntp_ok=$enableval
32917else
32918  ntp_ok=$ntp_eac
32919
32920fi
32921
32922case "$ntp_atom_ok" in
32923 no) ntp_ok=no ;;
32924esac
32925case "$ntp_ok" in
32926 yes)
32927    ntp_refclock=yes
32928
32929$as_echo "#define CLOCK_ATOM 1" >>confdefs.h
32930
32931    ;;
32932esac
32933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32934$as_echo "$ntp_ok" >&6; }
32935
32936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
32937$as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
32938# Check whether --enable-CHRONOLOG was given.
32939if test "${enable_CHRONOLOG+set}" = set; then :
32940  enableval=$enable_CHRONOLOG; ntp_ok=$enableval
32941else
32942  ntp_ok=$ntp_eac
32943
32944fi
32945
32946case "$ntp_ok" in
32947 yes)
32948    ntp_refclock=yes
32949
32950$as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h
32951
32952    ;;
32953esac
32954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32955$as_echo "$ntp_ok" >&6; }
32956
32957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
32958$as_echo_n "checking CHU modem/decoder... " >&6; }
32959# Check whether --enable-CHU was given.
32960if test "${enable_CHU+set}" = set; then :
32961  enableval=$enable_CHU; ntp_ok=$enableval
32962else
32963  ntp_ok=$ntp_eac
32964
32965fi
32966
32967case "$ntp_ok" in
32968 yes)
32969    ntp_refclock=yes
32970
32971$as_echo "#define CLOCK_CHU 1" >>confdefs.h
32972
32973    ;;
32974esac
32975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32976$as_echo "$ntp_ok" >&6; }
32977ntp_refclock_chu=$ntp_ok
32978
32979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
32980$as_echo_n "checking CHU audio/decoder... " >&6; }
32981# Check whether --enable-AUDIO-CHU was given.
32982if test "${enable_AUDIO_CHU+set}" = set; then :
32983  enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
32984else
32985
32986	case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in
32987	 *no*)	ntp_ok=no  ;;
32988	 *)	ntp_ok=yes ;;
32989	esac
32990
32991
32992fi
32993
32994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32995$as_echo "$ntp_ok" >&6; }
32996# We used to check for sunos/solaris target...
32997case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in
32998 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
32999$as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;}
33000esac
33001
33002# Not under HP-UX
33003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
33004$as_echo_n "checking Datum Programmable Time System... " >&6; }
33005# Check whether --enable-DATUM was given.
33006if test "${enable_DATUM+set}" = set; then :
33007  enableval=$enable_DATUM; ntp_ok=$enableval
33008else
33009
33010	case "$ac_cv_header_termios_h" in
33011	 yes)
33012	    ntp_ok=$ntp_eac
33013	    ;;
33014	 *) ntp_ok=no
33015	    ;;
33016	esac
33017
33018
33019fi
33020
33021case "$ntp_ok" in
33022 yes)
33023    ntp_refclock=yes
33024
33025$as_echo "#define CLOCK_DATUM 1" >>confdefs.h
33026
33027    ;;
33028esac
33029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33030$as_echo "$ntp_ok" >&6; }
33031
33032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
33033$as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
33034# Check whether --enable-DUMBCLOCK was given.
33035if test "${enable_DUMBCLOCK+set}" = set; then :
33036  enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
33037else
33038  ntp_ok=$ntp_eac
33039
33040fi
33041
33042case "$ntp_ok" in
33043 yes)
33044    ntp_refclock=yes
33045
33046$as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
33047
33048    ;;
33049esac
33050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33051$as_echo "$ntp_ok" >&6; }
33052
33053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
33054$as_echo_n "checking Forum Graphic GPS... " >&6; }
33055# Check whether --enable-FG was given.
33056if test "${enable_FG+set}" = set; then :
33057  enableval=$enable_FG; ntp_ok=$enableval
33058else
33059  ntp_ok=$ntp_eac
33060
33061fi
33062
33063case "$ntp_ok" in
33064 yes)
33065    ntp_refclock=yes
33066
33067$as_echo "#define CLOCK_FG 1" >>confdefs.h
33068
33069    ;;
33070esac
33071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33072$as_echo "$ntp_ok" >&6; }
33073
33074# Requires modem control
33075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
33076$as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
33077# Check whether --enable-HEATH was given.
33078if test "${enable_HEATH+set}" = set; then :
33079  enableval=$enable_HEATH; ntp_ok=$enableval
33080else
33081  ntp_ok=$ntp_enable_all_modem_control_clocks
33082
33083fi
33084
33085case "$ntp_ok" in
33086 yes)
33087    ntp_refclock=yes
33088
33089$as_echo "#define CLOCK_HEATH 1" >>confdefs.h
33090
33091    ;;
33092esac
33093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33094$as_echo "$ntp_ok" >&6; }
33095
33096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
33097$as_echo_n "checking for hopf serial clock device... " >&6; }
33098# Check whether --enable-HOPFSERIAL was given.
33099if test "${enable_HOPFSERIAL+set}" = set; then :
33100  enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
33101else
33102  ntp_ok=$ntp_eac
33103
33104fi
33105
33106case "$ntp_ok" in
33107 yes)
33108    ntp_refclock=yes
33109
33110$as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
33111
33112    ;;
33113esac
33114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33115$as_echo "$ntp_ok" >&6; }
33116
33117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
33118$as_echo_n "checking for hopf PCI clock 6039... " >&6; }
33119# Check whether --enable-HOPFPCI was given.
33120if test "${enable_HOPFPCI+set}" = set; then :
33121  enableval=$enable_HOPFPCI; ntp_ok=$enableval
33122else
33123  ntp_ok=$ntp_eac
33124
33125fi
33126
33127case "$ntp_ok" in
33128 yes)
33129    ntp_refclock=yes
33130
33131$as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h
33132
33133    ;;
33134esac
33135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33136$as_echo "$ntp_ok" >&6; }
33137
33138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
33139$as_echo_n "checking HP 58503A GPS receiver... " >&6; }
33140# Check whether --enable-HPGPS was given.
33141if test "${enable_HPGPS+set}" = set; then :
33142  enableval=$enable_HPGPS; ntp_ok=$enableval
33143else
33144  ntp_ok=$ntp_eac
33145
33146fi
33147
33148case "$ntp_ok" in
33149 yes)
33150    ntp_refclock=yes
33151
33152$as_echo "#define CLOCK_HPGPS 1" >>confdefs.h
33153
33154    ;;
33155esac
33156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33157$as_echo "$ntp_ok" >&6; }
33158
33159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
33160$as_echo_n "checking IRIG audio decoder... " >&6; }
33161# Check whether --enable-IRIG was given.
33162if test "${enable_IRIG+set}" = set; then :
33163  enableval=$enable_IRIG; ntp_ok=$enableval
33164else
33165
33166	case "$ntp_eac$ntp_canaudio" in
33167	 *no*)	ntp_ok=no  ;;
33168	 *)	ntp_ok=yes ;;
33169	esac
33170
33171
33172fi
33173
33174case "$ntp_ok" in
33175 yes)
33176    ntp_refclock=yes
33177
33178$as_echo "#define CLOCK_IRIG 1" >>confdefs.h
33179
33180    ;;
33181esac
33182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33183$as_echo "$ntp_ok" >&6; }
33184case "$ntp_ok$ntp_canaudio" in
33185 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33186$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33187esac
33188
33189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
33190$as_echo_n "checking for JJY receiver... " >&6; }
33191# Check whether --enable-JJY was given.
33192if test "${enable_JJY+set}" = set; then :
33193  enableval=$enable_JJY; ntp_ok=$enableval
33194else
33195  ntp_ok=$ntp_eac
33196
33197fi
33198
33199case "$ntp_ok" in
33200 yes)
33201    ntp_refclock=yes
33202
33203$as_echo "#define CLOCK_JJY 1" >>confdefs.h
33204
33205    ;;
33206esac
33207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33208$as_echo "$ntp_ok" >&6; }
33209
33210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
33211$as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
33212# Check whether --enable-JUPITER was given.
33213if test "${enable_JUPITER+set}" = set; then :
33214  enableval=$enable_JUPITER; ntp_ok=$enableval
33215else
33216  ntp_ok=$ntp_eac
33217fi
33218
33219case "$ntp_jupiter_ok" in
33220 no) ntp_ok=no ;;
33221esac
33222case "$ntp_ok" in
33223 yes)
33224    ntp_refclock=yes
33225
33226$as_echo "#define CLOCK_JUPITER 1" >>confdefs.h
33227
33228    ;;
33229esac
33230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33231$as_echo "$ntp_ok" >&6; }
33232
33233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
33234$as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
33235# Check whether --enable-LEITCH was given.
33236if test "${enable_LEITCH+set}" = set; then :
33237  enableval=$enable_LEITCH; ntp_ok=$enableval
33238else
33239  ntp_ok=$ntp_eac
33240
33241fi
33242
33243case "$ntp_ok" in
33244 yes)
33245    ntp_refclock=yes
33246
33247$as_echo "#define CLOCK_LEITCH 1" >>confdefs.h
33248
33249    ;;
33250esac
33251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33252$as_echo "$ntp_ok" >&6; }
33253
33254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
33255$as_echo_n "checking local clock reference... " >&6; }
33256# Check whether --enable-LOCAL-CLOCK was given.
33257if test "${enable_LOCAL_CLOCK+set}" = set; then :
33258  enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
33259else
33260  ntp_ok=$ntp_eac
33261
33262fi
33263
33264case "$ntp_ok" in
33265 yes)
33266    ntp_refclock=yes
33267
33268$as_echo "#define CLOCK_LOCAL 1" >>confdefs.h
33269
33270    ;;
33271esac
33272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33273$as_echo "$ntp_ok" >&6; }
33274
33275
33276# Not Ultrix
33277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
33278$as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
33279# Check whether --enable-MX4200 was given.
33280if test "${enable_MX4200+set}" = set; then :
33281  enableval=$enable_MX4200; ntp_ok=$enableval
33282else
33283
33284	case "$ac_cv_var_ppsclock" in
33285	 yes)
33286	    ntp_ok=$ntp_eac
33287	    ;;
33288	 *)
33289	    ntp_ok=no
33290	    ;;
33291	esac
33292
33293
33294fi
33295
33296case "$ntp_ok" in
33297 yes)
33298    ntp_refclock=yes
33299
33300$as_echo "#define CLOCK_MX4200 1" >>confdefs.h
33301
33302    ;;
33303esac
33304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33305$as_echo "$ntp_ok" >&6; }
33306case "$ntp_ok$host" in
33307 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33308$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33309esac
33310
33311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
33312$as_echo_n "checking for NeoClock4X receiver... " >&6; }
33313# Check whether --enable-NEOCLOCK4X was given.
33314if test "${enable_NEOCLOCK4X+set}" = set; then :
33315  enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
33316else
33317  ntp_ok=$ntp_eac
33318
33319fi
33320
33321case "$ntp_ok" in
33322 yes)
33323    ntp_refclock=yes
33324
33325$as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h
33326
33327    ;;
33328esac
33329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33330$as_echo "$ntp_ok" >&6; }
33331
33332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
33333$as_echo_n "checking NMEA GPS receiver... " >&6; }
33334# Check whether --enable-NMEA was given.
33335if test "${enable_NMEA+set}" = set; then :
33336  enableval=$enable_NMEA; ntp_ok=$enableval
33337else
33338  ntp_ok=$ntp_eac
33339
33340fi
33341
33342case "$ntp_ok" in
33343 yes)
33344    ntp_refclock=yes
33345
33346$as_echo "#define CLOCK_NMEA 1" >>confdefs.h
33347
33348    ;;
33349esac
33350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33351$as_echo "$ntp_ok" >&6; }
33352
33353for ac_func in strtoll
33354do :
33355  ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
33356if test "x$ac_cv_func_strtoll" = xyes; then :
33357  cat >>confdefs.h <<_ACEOF
33358#define HAVE_STRTOLL 1
33359_ACEOF
33360
33361fi
33362done
33363
33364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
33365$as_echo_n "checking for GPSD JSON receiver... " >&6; }
33366# Check whether --enable-GPSD was given.
33367if test "${enable_GPSD+set}" = set; then :
33368  enableval=$enable_GPSD; ntp_ok=$enableval
33369else
33370  case "$ac_cv_func_strtoll" in
33371     yes) ntp_ok=$ntp_eac ;;
33372     *)   ntp_ok="no" ;;
33373    esac
33374
33375fi
33376
33377case "$ntp_ok" in
33378 yes)
33379    ntp_refclock=yes
33380
33381$as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h
33382
33383    ;;
33384esac
33385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33386$as_echo "$ntp_ok" >&6; }
33387
33388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
33389$as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
33390# Check whether --enable-ONCORE was given.
33391if test "${enable_ONCORE+set}" = set; then :
33392  enableval=$enable_ONCORE; ntp_ok=$enableval
33393else
33394  ntp_ok=$ntp_eac
33395
33396fi
33397
33398case "$ntp_oncore_ok" in
33399 no) ntp_ok=no ;;
33400esac
33401case "$ntp_ok" in
33402 yes)
33403    ntp_refclock=yes
33404
33405$as_echo "#define CLOCK_ONCORE 1" >>confdefs.h
33406
33407    ;;
33408esac
33409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33410$as_echo "$ntp_ok" >&6; }
33411
33412# Requires modem control
33413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
33414$as_echo_n "checking for Palisade clock... " >&6; }
33415# Check whether --enable-PALISADE was given.
33416if test "${enable_PALISADE+set}" = set; then :
33417  enableval=$enable_PALISADE; ntp_ok=$enableval
33418else
33419  ntp_ok=$ntp_enable_all_modem_control_clocks
33420
33421fi
33422
33423case "$ntp_ok" in
33424 yes)
33425    ntp_refclock=yes
33426
33427$as_echo "#define CLOCK_PALISADE 1" >>confdefs.h
33428
33429    ;;
33430esac
33431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33432$as_echo "$ntp_ok" >&6; }
33433
33434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
33435$as_echo_n "checking Conrad parallel port radio clock... " >&6; }
33436# Check whether --enable-PCF was given.
33437if test "${enable_PCF+set}" = set; then :
33438  enableval=$enable_PCF; ntp_ok=$enableval
33439else
33440  ntp_ok=$ntp_eac
33441
33442fi
33443
33444case "$ntp_ok" in
33445 yes)
33446    ntp_refclock=yes
33447
33448$as_echo "#define CLOCK_PCF 1" >>confdefs.h
33449
33450    ;;
33451esac
33452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33453$as_echo "$ntp_ok" >&6; }
33454
33455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
33456$as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
33457# Check whether --enable-PST was given.
33458if test "${enable_PST+set}" = set; then :
33459  enableval=$enable_PST; ntp_ok=$enableval
33460else
33461  ntp_ok=$ntp_eac
33462
33463fi
33464
33465case "$ntp_ok" in
33466 yes)
33467    ntp_refclock=yes
33468
33469$as_echo "#define CLOCK_PST 1" >>confdefs.h
33470
33471    ;;
33472esac
33473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33474$as_echo "$ntp_ok" >&6; }
33475
33476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
33477$as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
33478# Check whether --enable-RIPENCC was given.
33479if test "${enable_RIPENCC+set}" = set; then :
33480  enableval=$enable_RIPENCC; ntp_ok=$enableval
33481else
33482  ntp_ok=no
33483
33484fi
33485
33486# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
33487case "$ntp_ripe_ncc_ok" in
33488 no) ntp_ok=no ;;
33489esac
33490case "$ntp_ok" in
33491 yes)
33492    ntp_refclock=yes
33493
33494$as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h
33495
33496    ;;
33497esac
33498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33499$as_echo "$ntp_ok" >&6; }
33500
33501# Danny Meyer says SHM compiles (with a few warnings) under Win32.
33502# For *IX, we need sys/ipc.h and sys/shm.h.
33503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
33504$as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
33505# Check whether --enable-SHM was given.
33506if test "${enable_SHM+set}" = set; then :
33507  enableval=$enable_SHM; ntp_ok=$enableval
33508else
33509
33510	case "$ntp_eac$ntp_canshm" in
33511	 *no*)	ntp_ok=no  ;;
33512	 *)	ntp_ok=yes ;;
33513	esac
33514
33515
33516fi
33517
33518case "$ntp_ok" in
33519 yes)
33520    ntp_refclock=yes
33521
33522$as_echo "#define CLOCK_SHM 1" >>confdefs.h
33523
33524    ;;
33525esac
33526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33527$as_echo "$ntp_ok" >&6; }
33528
33529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
33530$as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
33531# Check whether --enable-SPECTRACOM was given.
33532if test "${enable_SPECTRACOM+set}" = set; then :
33533  enableval=$enable_SPECTRACOM; ntp_ok=$enableval
33534else
33535  ntp_ok=$ntp_eac
33536
33537fi
33538
33539case "$ntp_ok" in
33540 yes)
33541    ntp_refclock=yes
33542
33543$as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h
33544
33545    ;;
33546esac
33547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33548$as_echo "$ntp_ok" >&6; }
33549
33550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
33551$as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
33552# Check whether --enable-TPRO was given.
33553if test "${enable_TPRO+set}" = set; then :
33554  enableval=$enable_TPRO; ntp_ok=$enableval
33555else
33556
33557	case "$ac_cv_header_sys_tpro_h" in
33558	 yes)
33559	    ntp_ok=$ntp_eac
33560	    ;;
33561	 *)
33562	    ntp_ok=no
33563	    ;;
33564	esac
33565
33566
33567fi
33568
33569case "$ntp_ok" in
33570 yes)
33571    ntp_refclock=yes
33572
33573$as_echo "#define CLOCK_TPRO 1" >>confdefs.h
33574
33575    ;;
33576esac
33577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33578$as_echo "$ntp_ok" >&6; }
33579case "$ntp_ok$ac_cv_header_sys_tpro" in
33580 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33581$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33582esac
33583
33584# Not on a vax-dec-bsd
33585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
33586$as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
33587# Check whether --enable-TRUETIME was given.
33588if test "${enable_TRUETIME+set}" = set; then :
33589  enableval=$enable_TRUETIME; ntp_ok=$enableval
33590else
33591
33592	case "$host" in
33593	 vax-dec-bsd)
33594	    ntp_ok=no
33595	    ;;
33596	 *)
33597	    ntp_ok=$ntp_eac
33598	    ;;
33599	esac
33600
33601
33602fi
33603
33604case "$ntp_ok" in
33605 yes)
33606    ntp_refclock=yes
33607
33608$as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h
33609
33610    ;;
33611esac
33612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33613$as_echo "$ntp_ok" >&6; }
33614case "$ntp_ok$host" in
33615 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33616$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33617esac
33618
33619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
33620$as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
33621# Check whether --enable-TT560 was given.
33622if test "${enable_TT560+set}" = set; then :
33623  enableval=$enable_TT560; ntp_ok=$enableval
33624else
33625  ntp_ok=no
33626
33627fi
33628
33629case "$ntp_ok" in
33630 yes)
33631    ntp_refclock=yes
33632
33633$as_echo "#define CLOCK_TT560 /**/" >>confdefs.h
33634
33635    ;;
33636esac
33637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33638$as_echo "$ntp_ok" >&6; }
33639
33640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
33641$as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
33642# Check whether --enable-ULINK was given.
33643if test "${enable_ULINK+set}" = set; then :
33644  enableval=$enable_ULINK; ntp_ok=$enableval
33645else
33646  ntp_ok=$ntp_eac
33647
33648fi
33649
33650case "$ntp_ok" in
33651 yes)
33652    ntp_refclock=yes
33653
33654$as_echo "#define CLOCK_ULINK 1" >>confdefs.h
33655
33656    ;;
33657esac
33658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33659$as_echo "$ntp_ok" >&6; }
33660
33661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
33662$as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; }
33663# Check whether --enable-TSYNCPCI was given.
33664if test "${enable_TSYNCPCI+set}" = set; then :
33665  enableval=$enable_TSYNCPCI; ntp_ok=$enableval
33666else
33667
33668	case "$host" in
33669	 *-*-*linux*)
33670	    ntp_ok=$ntp_eac
33671	    ;;
33672	 *)
33673	    ntp_ok=no
33674	esac
33675
33676
33677fi
33678
33679case "$ntp_ok" in
33680 yes)
33681    ntp_refclock=yes
33682
33683$as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h
33684
33685    ;;
33686esac
33687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33688$as_echo "$ntp_ok" >&6; }
33689
33690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
33691$as_echo_n "checking WWV receiver... " >&6; }
33692# Check whether --enable-WWV was given.
33693if test "${enable_WWV+set}" = set; then :
33694  enableval=$enable_WWV; ntp_ok=$enableval
33695else
33696
33697	case "$ntp_eac$ntp_canaudio" in
33698	 *no*)	ntp_ok=no  ;;
33699	 *)	ntp_ok=yes ;;
33700	esac
33701
33702
33703fi
33704
33705case "$ntp_ok" in
33706 yes)
33707    ntp_refclock=yes
33708
33709$as_echo "#define CLOCK_WWV 1" >>confdefs.h
33710
33711    ;;
33712esac
33713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33714$as_echo "$ntp_ok" >&6; }
33715case "$ntp_ok$ntp_canaudio" in
33716 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33717$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33718esac
33719
33720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
33721$as_echo_n "checking for Zyfer receiver... " >&6; }
33722# Check whether --enable-ZYFER was given.
33723if test "${enable_ZYFER+set}" = set; then :
33724  enableval=$enable_ZYFER; ntp_ok=$enableval
33725else
33726  ntp_ok=$ntp_eac
33727
33728fi
33729
33730case "$ntp_ok" in
33731 yes)
33732    ntp_refclock=yes
33733
33734$as_echo "#define CLOCK_ZYFER 1" >>confdefs.h
33735
33736    ;;
33737esac
33738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33739$as_echo "$ntp_ok" >&6; }
33740
33741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
33742$as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
33743# Check whether --enable-parse-clocks was given.
33744if test "${enable_parse_clocks+set}" = set; then :
33745  enableval=$enable_parse_clocks; ntp_eapc=$enableval
33746else
33747
33748	case "$ntp_eac" in
33749	 yes)	ntp_eapc=$ntp_canparse ;;
33750	 *)	ntp_eapc=no ;;
33751	esac
33752	# Delete the next line one of these days
33753	ntp_eapc=no
33754
33755
33756fi
33757
33758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
33759$as_echo "$ntp_eapc" >&6; }
33760
33761case "$ntp_eac$ntp_eapc$ntp_canparse" in
33762 noyes*)
33763    as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
33764    ;;
33765 yesyesno)
33766    as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
33767    ;;
33768esac
33769
33770ntp_libparse=no
33771ntp_parseutil=no
33772ntp_rawdcf=no
33773
33774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
33775$as_echo_n "checking Diem Computime Radio Clock... " >&6; }
33776# Check whether --enable-COMPUTIME was given.
33777if test "${enable_COMPUTIME+set}" = set; then :
33778  enableval=$enable_COMPUTIME; ntp_ok=$enableval
33779else
33780  ntp_ok=$ntp_eapc
33781
33782fi
33783
33784case "$ntp_ok" in
33785 yes)
33786    ntp_libparse=yes
33787    ntp_refclock=yes
33788
33789$as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h
33790
33791    ;;
33792esac
33793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33794$as_echo "$ntp_ok" >&6; }
33795case "$ntp_ok$ntp_canparse" in
33796 yesno)
33797    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33798esac
33799
33800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
33801$as_echo_n "checking ELV/DCF7000 clock... " >&6; }
33802# Check whether --enable-DCF7000 was given.
33803if test "${enable_DCF7000+set}" = set; then :
33804  enableval=$enable_DCF7000; ntp_ok=$enableval
33805else
33806  ntp_ok=$ntp_eapc
33807
33808fi
33809
33810case "$ntp_ok" in
33811 yes)
33812    ntp_libparse=yes
33813    ntp_refclock=yes
33814
33815$as_echo "#define CLOCK_DCF7000 1" >>confdefs.h
33816
33817    ;;
33818esac
33819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33820$as_echo "$ntp_ok" >&6; }
33821case "$ntp_ok$ntp_canparse" in
33822 yesno)
33823    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33824esac
33825
33826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
33827$as_echo_n "checking HOPF 6021 clock... " >&6; }
33828# Check whether --enable-HOPF6021 was given.
33829if test "${enable_HOPF6021+set}" = set; then :
33830  enableval=$enable_HOPF6021; ntp_ok=$enableval
33831else
33832  ntp_ok=$ntp_eapc
33833
33834fi
33835
33836case "$ntp_ok" in
33837 yes)
33838    ntp_libparse=yes
33839    ntp_refclock=yes
33840
33841$as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h
33842
33843    ;;
33844esac
33845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33846$as_echo "$ntp_ok" >&6; }
33847case "$ntp_ok$ntp_canparse" in
33848 yesno)
33849    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33850esac
33851
33852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
33853$as_echo_n "checking Meinberg clocks... " >&6; }
33854# Check whether --enable-MEINBERG was given.
33855if test "${enable_MEINBERG+set}" = set; then :
33856  enableval=$enable_MEINBERG; ntp_ok=$enableval
33857else
33858  ntp_ok=$ntp_eapc
33859
33860fi
33861
33862case "$ntp_ok" in
33863 yes)
33864    ntp_libparse=yes
33865    ntp_refclock=yes
33866
33867$as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h
33868
33869    ;;
33870esac
33871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33872$as_echo "$ntp_ok" >&6; }
33873case "$ntp_ok$ntp_canparse" in
33874 yesno)
33875    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33876esac
33877
33878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
33879$as_echo_n "checking DCF77 raw time code... " >&6; }
33880# Check whether --enable-RAWDCF was given.
33881if test "${enable_RAWDCF+set}" = set; then :
33882  enableval=$enable_RAWDCF; ntp_ok=$enableval
33883else
33884  ntp_ok=$ntp_eapc
33885
33886fi
33887
33888case "$ntp_ok" in
33889 yes)
33890    ntp_libparse=yes
33891    ntp_parseutil=yes
33892    ntp_refclock=yes
33893    ntp_rawdcf=yes
33894
33895$as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h
33896
33897    ;;
33898esac
33899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33900$as_echo "$ntp_ok" >&6; }
33901case "$ntp_ok$ntp_canparse" in
33902 yesno)
33903    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33904esac
33905
33906case "$ntp_rawdcf" in
33907 yes)
33908    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
33909$as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
33910if ${ntp_cv_rawdcf_parity+:} false; then :
33911  $as_echo_n "(cached) " >&6
33912else
33913
33914	    ans=no
33915	    case "$host" in
33916	     *-*-*linux*)
33917		ans=yes
33918		;;
33919	    esac
33920	    ntp_cv_rawdcf_parity=$ans
33921
33922
33923fi
33924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5
33925$as_echo "$ntp_cv_rawdcf_parity" >&6; }
33926    case "$ntp_cv_rawdcf_parity" in
33927     yes)
33928
33929$as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
33930 ;;
33931    esac
33932esac
33933
33934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
33935$as_echo_n "checking RCC 8000 clock... " >&6; }
33936# Check whether --enable-RCC8000 was given.
33937if test "${enable_RCC8000+set}" = set; then :
33938  enableval=$enable_RCC8000; ntp_ok=$enableval
33939else
33940  ntp_ok=$ntp_eapc
33941
33942fi
33943
33944case "$ntp_ok" in
33945 yes)
33946    ntp_libparse=yes
33947    ntp_refclock=yes
33948
33949$as_echo "#define CLOCK_RCC8000 1" >>confdefs.h
33950
33951    ;;
33952esac
33953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33954$as_echo "$ntp_ok" >&6; }
33955case "$ntp_ok$ntp_canparse" in
33956 yesno)
33957    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33958esac
33959
33960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
33961$as_echo_n "checking Schmid DCF77 clock... " >&6; }
33962# Check whether --enable-SCHMID was given.
33963if test "${enable_SCHMID+set}" = set; then :
33964  enableval=$enable_SCHMID; ntp_ok=$enableval
33965else
33966  ntp_ok=$ntp_eapc
33967
33968fi
33969
33970case "$ntp_ok" in
33971 yes)
33972    ntp_libparse=yes
33973    ntp_refclock=yes
33974
33975$as_echo "#define CLOCK_SCHMID 1" >>confdefs.h
33976
33977    ;;
33978esac
33979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33980$as_echo "$ntp_ok" >&6; }
33981case "$ntp_ok$ntp_canparse" in
33982 yesno)
33983    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33984esac
33985
33986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
33987$as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
33988# Check whether --enable-TRIMTAIP was given.
33989if test "${enable_TRIMTAIP+set}" = set; then :
33990  enableval=$enable_TRIMTAIP; ntp_ok=$enableval
33991else
33992  ntp_ok=$ntp_eapc
33993
33994fi
33995
33996case "$ntp_ok" in
33997 yes)
33998    ntp_libparse=yes
33999    ntp_refclock=yes
34000
34001$as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h
34002
34003    ;;
34004esac
34005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
34006$as_echo "$ntp_ok" >&6; }
34007case "$ntp_ok$ntp_canparse" in
34008 yesno)
34009    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
34010esac
34011
34012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
34013$as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
34014# Check whether --enable-TRIMTSIP was given.
34015if test "${enable_TRIMTSIP+set}" = set; then :
34016  enableval=$enable_TRIMTSIP; ntp_ok=$enableval
34017else
34018  ntp_ok=$ntp_eapc
34019
34020fi
34021
34022case "$ntp_ok" in
34023 yes)
34024    ntp_libparse=yes
34025    ntp_refclock=yes
34026
34027$as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h
34028
34029    ;;
34030esac
34031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
34032$as_echo "$ntp_ok" >&6; }
34033case "$ntp_ok$ntp_canparse" in
34034 yesno)
34035    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
34036esac
34037
34038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
34039$as_echo_n "checking WHARTON 400A Series clock... " >&6; }
34040# Check whether --enable-WHARTON was given.
34041if test "${enable_WHARTON+set}" = set; then :
34042  enableval=$enable_WHARTON; ntp_ok=$enableval
34043else
34044  ntp_ok=$ntp_eapc
34045
34046fi
34047
34048case "$ntp_ok" in
34049 yes)
34050    ntp_libparse=yes
34051    ntp_refclock=yes
34052
34053$as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h
34054
34055    ;;
34056esac
34057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
34058$as_echo "$ntp_ok" >&6; }
34059case "$ntp_ok$ntp_canparse" in
34060 yesno)
34061    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
34062esac
34063
34064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
34065$as_echo_n "checking VARITEXT clock... " >&6; }
34066# Check whether --enable-VARITEXT was given.
34067if test "${enable_VARITEXT+set}" = set; then :
34068  enableval=$enable_VARITEXT; ntp_ok=$enableval
34069else
34070  ntp_ok=$ntp_eapc
34071
34072fi
34073
34074case "$ntp_ok" in
34075 yes)
34076    ntp_libparse=yes
34077    ntp_refclock=yes
34078
34079$as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h
34080
34081    ;;
34082esac
34083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
34084$as_echo "$ntp_ok" >&6; }
34085case "$ntp_ok$ntp_canparse" in
34086 yesno)
34087    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
34088esac
34089
34090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
34091$as_echo_n "checking SEL240X clock... " >&6; }
34092# Check whether --enable-SEL240X was given.
34093if test "${enable_SEL240X+set}" = set; then :
34094  enableval=$enable_SEL240X; ntp_ok=$enableval
34095else
34096  ntp_ok=$ntp_eapc
34097fi
34098
34099if test "$ntp_ok" = "yes"; then
34100    ntp_libparse=yes
34101    ntp_refclock=yes
34102
34103$as_echo "#define CLOCK_SEL240X 1" >>confdefs.h
34104
34105fi
34106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
34107$as_echo "$ntp_ok" >&6; }
34108case "$ntp_ok$ntp_canparse" in
34109 yesno)
34110    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
34111    ;;
34112esac
34113
34114
34115
34116
34117
34118
34119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
34120$as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
34121ans=no
34122case "$ntp_libparse" in
34123 yes)
34124    ans=yes
34125
34126$as_echo "#define CLOCK_PARSE 1" >>confdefs.h
34127
34128    LIBPARSE=../libparse/libparse.a
34129    MAKE_LIBPARSE=libparse.a
34130    # HMS: check_y2k trips the 34 year problem now...
34131    false && MAKE_CHECK_Y2K=check_y2k
34132esac
34133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34134$as_echo "$ans" >&6; }
34135
34136
34137
34138
34139VER_SUFFIX=
34140
34141
34142
34143
34144# Check whether --with-crypto was given.
34145if test "${with_crypto+set}" = set; then :
34146  withval=$with_crypto;
34147fi
34148
34149
34150# Check whether --with-openssl-libdir was given.
34151if test "${with_openssl_libdir+set}" = set; then :
34152  withval=$with_openssl_libdir;
34153fi
34154
34155
34156# Check whether --with-openssl-incdir was given.
34157if test "${with_openssl_incdir+set}" = set; then :
34158  withval=$with_openssl_incdir;
34159fi
34160
34161
34162# Check whether --with-rpath was given.
34163if test "${with_rpath+set}" = set; then :
34164  withval=$with_rpath;
34165fi
34166
34167ntp_openssl=no
34168ntp_openssl_from_pkg_config=no
34169with_crypto=${with_crypto:-openssl,libcrypto}
34170case "$with_crypto" in
34171 yes)
34172    with_crypto=openssl,libcrypto
34173esac
34174case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
34175 no:*) ;;
34176 *:notempty:notgiven:notgiven)
34177    for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
34178	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
34179$as_echo_n "checking pkg-config for $pkg... " >&6; }
34180	if $PKG_CONFIG --exists $pkg ; then
34181	    CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
34182	    CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
34183	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
34184	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
34185	    LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
34186	    VER_SUFFIX=o
34187	    ntp_openssl=yes
34188	    ntp_openssl_from_pkg_config=yes
34189	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34190$as_echo "yes" >&6; }
34191
34192	    break
34193	fi
34194	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34195$as_echo "no" >&6; }
34196    done
34197esac
34198case "$with_crypto:$ntp_openssl" in
34199 no:*) ;;
34200 *:no)
34201    need_dash_r=
34202    need_dash_Wlrpath=
34203    case "${with_rpath-notgiven}" in
34204     yes)
34205	# Lame - what to do if we need -Wl... but not -R?
34206	need_dash_r=1
34207	;;
34208     notgiven)
34209	case "$host" in
34210	 *-*-linux*)
34211	    # This may really only be true for gcc
34212	    need_dash_Wlrpath=1
34213	    ;;
34214	 *-*-netbsd*)
34215	    need_dash_r=1
34216	    ;;
34217	 *-*-solaris*)
34218	    need_dash_r=1
34219	    ;;
34220	esac
34221	;;
34222    esac
34223
34224    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
34225$as_echo_n "checking for openssl library directory... " >&6; }
34226    with_openssl_libdir=${with_openssl_libdir-notgiven}
34227    case "$with_openssl_libdir" in
34228     notgiven)
34229	case "$build" in
34230	 $host)
34231	    with_openssl_libdir=default
34232	    ;;
34233	 *)
34234	    with_openssl_libdir=no
34235	    ;;
34236	esac
34237    esac
34238    case "$with_openssl_libdir" in
34239     default)
34240	# Look in:
34241	with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
34242	with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
34243	with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
34244    esac
34245    case "$with_openssl_libdir" in
34246     no)
34247	;;
34248     *) # Look for libcrypto.a and libssl.a:
34249	for i in $with_openssl_libdir no
34250	do
34251	    case "$host" in
34252	     *-*-darwin*)
34253		test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
34254		;;
34255	     *)
34256		test -f $i/libcrypto.so -a -f $i/libssl.so && break
34257		test -f $i/libcrypto.a -a -f $i/libssl.a && break
34258		;;
34259	    esac
34260	done
34261	openssl_libdir=$i
34262	;;
34263    esac
34264    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
34265$as_echo "$openssl_libdir" >&6; }
34266    case "$openssl_libdir" in
34267     no)
34268	openssl_libdir=
34269	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
34270$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
34271    esac
34272
34273    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
34274$as_echo_n "checking for openssl include directory... " >&6; }
34275    with_openssl_incdir=${with_openssl_incdir-notgiven}
34276    case "$with_openssl_incdir" in
34277     notgiven)
34278	# Look in:
34279	with_openssl_incdir="/usr/include /usr/sfw/include"
34280	with_openssl_incdir="$with_openssl_incdir /usr/local/include"
34281	with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
34282    esac
34283    case "$with_openssl_incdir" in
34284     no)
34285	;;
34286     *) # look for openssl/evp.h:
34287	for i in $with_openssl_incdir no
34288	do
34289	    test -f $i/openssl/evp.h && break
34290	done
34291	openssl_incdir=$i
34292	;;
34293    esac
34294    { i=; unset i;}
34295    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
34296$as_echo "$openssl_incdir" >&6; }
34297    case "$openssl_incdir" in
34298     no)
34299	openssl_incdir=
34300	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
34301$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
34302    esac
34303    if test -z "$openssl_libdir" -o -z "$openssl_incdir"
34304    then
34305	ntp_openssl=no
34306    else
34307	ntp_openssl=yes
34308	VER_SUFFIX=o
34309    fi
34310    case "$ntp_openssl" in
34311     yes)
34312	# We have OpenSSL inc/lib dirs - use them.
34313	case "$openssl_incdir" in
34314	 /usr/include)
34315	    ;;
34316	 *)
34317	    CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
34318	    ;;
34319	esac
34320	case "$openssl_libdir" in
34321	 /usr/lib)
34322	    ;;
34323	 *)
34324	    LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
34325	    case "$need_dash_r" in
34326	     1)
34327		LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
34328	    esac
34329	    case "$need_dash_Wlrpath" in
34330	     1)
34331		LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
34332	    esac
34333	    ;;
34334	esac
34335	LDADD_NTP="$LDADD_NTP -lcrypto"
34336    esac
34337esac
34338
34339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
34340$as_echo_n "checking if we will use crypto... " >&6; }
34341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
34342$as_echo "$ntp_openssl" >&6; }
34343
34344case "$ntp_openssl" in
34345 yes)
34346
34347$as_echo "#define OPENSSL /**/" >>confdefs.h
34348
34349    case "$VER_SUFFIX" in
34350     *o*) ;;
34351     *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
34352    esac
34353    ;;
34354esac
34355
34356NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
34357CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
34358NTPO_SAVED_LIBS="$LIBS"
34359
34360#
34361# check for linking with -lcrypto failure, and try -lcrypto -lz.
34362# Helps m68k-atari-mint
34363#
34364case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
34365 yes:no)
34366    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
34367    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
34368$as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
34369if ${ntp_cv_bare_lcrypto+:} false; then :
34370  $as_echo_n "(cached) " >&6
34371else
34372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34373/* end confdefs.h.  */
34374
34375		    #include "openssl/err.h"
34376		    #include "openssl/evp.h"
34377
34378int
34379main ()
34380{
34381
34382		    ERR_load_crypto_strings();
34383		    OpenSSL_add_all_algorithms();
34384
34385
34386  ;
34387  return 0;
34388}
34389_ACEOF
34390if ac_fn_c_try_link "$LINENO"; then :
34391  ntp_cv_bare_lcrypto=yes
34392else
34393  ntp_cv_bare_lcrypto=no
34394
34395fi
34396rm -f core conftest.err conftest.$ac_objext \
34397    conftest$ac_exeext conftest.$ac_ext
34398
34399fi
34400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
34401$as_echo "$ntp_cv_bare_lcrypto" >&6; }
34402    case "$ntp_cv_bare_lcrypto" in
34403     no)
34404	LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
34405	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
34406$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
34407if ${ntp_cv_lcrypto_lz+:} false; then :
34408  $as_echo_n "(cached) " >&6
34409else
34410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34411/* end confdefs.h.  */
34412
34413			#include "openssl/err.h"
34414			#include "openssl/evp.h"
34415
34416int
34417main ()
34418{
34419
34420			ERR_load_crypto_strings();
34421			OpenSSL_add_all_algorithms();
34422
34423
34424  ;
34425  return 0;
34426}
34427_ACEOF
34428if ac_fn_c_try_link "$LINENO"; then :
34429  ntp_cv_lcrypto_lz=yes
34430else
34431  ntp_cv_lcrypto_lz=no
34432
34433fi
34434rm -f core conftest.err conftest.$ac_objext \
34435    conftest$ac_exeext conftest.$ac_ext
34436
34437fi
34438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
34439$as_echo "$ntp_cv_lcrypto_lz" >&6; }
34440	case "$ntp_cv_lcrypto_lz" in
34441	 yes)
34442	     LDADD_NTP="$LDADD_NTP -lz"
34443	esac
34444    esac
34445esac
34446
34447#
34448# Older OpenSSL headers have a number of callback prototypes inside
34449# other function prototypes which trigger copious warnings with gcc's
34450# -Wstrict-prototypes, which is included in -Wall.
34451#
34452# An example:
34453#
34454# int i2d_RSA_NET(const RSA *a, unsigned char **pp,
34455#		  int (*cb)(), int sgckey);
34456#		  ^^^^^^^^^^^
34457#
34458#
34459#
34460openssl_triggers_warnings=unknown
34461NTPO_SAVED_CFLAGS="$CFLAGS"
34462
34463case "$ntp_openssl:$GCC" in
34464 yes:yes)
34465    CFLAGS="$CFLAGS -Werror"
34466    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34467/* end confdefs.h.  */
34468
34469
34470int
34471main ()
34472{
34473
34474		/* see if -Werror breaks gcc */
34475
34476
34477  ;
34478  return 0;
34479}
34480_ACEOF
34481if ac_fn_c_try_compile "$LINENO"; then :
34482  gcc_handles_Werror=yes
34483else
34484  gcc_handles_Werror=no
34485
34486fi
34487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34488    case "$gcc_handles_Werror" in
34489     no)
34490	# if this gcc doesn't do -Werror go ahead and use
34491	# -Wstrict-prototypes.
34492	openssl_triggers_warnings=yes
34493	;;
34494     yes)
34495	CFLAGS="$CFLAGS -Wstrict-prototypes"
34496	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34497/* end confdefs.h.  */
34498
34499		    #include "openssl/asn1_mac.h"
34500		    #include "openssl/bn.h"
34501		    #include "openssl/err.h"
34502		    #include "openssl/evp.h"
34503		    #include "openssl/pem.h"
34504		    #include "openssl/rand.h"
34505		    #include "openssl/x509v3.h"
34506
34507int
34508main ()
34509{
34510
34511		    /* empty body */
34512
34513
34514  ;
34515  return 0;
34516}
34517_ACEOF
34518if ac_fn_c_try_compile "$LINENO"; then :
34519  openssl_triggers_warnings=no
34520else
34521  openssl_triggers_warnings=yes
34522
34523fi
34524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34525    esac
34526    case "$openssl_triggers_warnings" in
34527     yes)
34528	CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
34529	;;
34530     *)
34531	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
34532    esac
34533    ;;
34534 no:yes)
34535    # gcc without OpenSSL
34536    CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
34537esac
34538
34539# Because we don't want -Werror for the EVP_MD_do_all_sorted check
34540CFLAGS="$NTPO_SAVED_CFLAGS"
34541
34542case "$ntp_openssl" in
34543 yes)
34544    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
34545    for ac_func in EVP_MD_do_all_sorted
34546do :
34547  ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
34548if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
34549  cat >>confdefs.h <<_ACEOF
34550#define HAVE_EVP_MD_DO_ALL_SORTED 1
34551_ACEOF
34552
34553fi
34554done
34555
34556    ;;
34557esac
34558
34559CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
34560LIBS="$NTPO_SAVED_LIBS"
34561{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
34562{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
34563{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
34564{ openssl_triggers_warnings=; unset openssl_triggers_warnings;}
34565{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
34566
34567
34568
34569
34570
34571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5
34572$as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; }
34573# Check whether --enable-openssl-random was given.
34574if test "${enable_openssl_random+set}" = set; then :
34575  enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval
34576else
34577  ntp_use_openssl_random=yes
34578
34579fi
34580
34581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
34582$as_echo "$ntp_use_openssl_random" >&6; }
34583
34584# The following might need extra libraries
34585NTPO_SAVED_LIBS="$LIBS"
34586LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
34587for ac_func in RAND_bytes RAND_poll
34588do :
34589  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34590ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
34591if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
34592  cat >>confdefs.h <<_ACEOF
34593#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34594_ACEOF
34595
34596fi
34597done
34598
34599LIBS="$NTPO_SAVED_LIBS"
34600case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
34601 yesyesyes)
34602
34603$as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h
34604
34605     ;;
34606 *) ntp_use_openssl_random=no ;;
34607esac
34608
34609
34610
34611# if we are using OpenSSL (--with-crypto), by default Autokey is enabled
34612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
34613$as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; }
34614# Check whether --enable-autokey was given.
34615if test "${enable_autokey+set}" = set; then :
34616  enableval=$enable_autokey; ntp_autokey=$enableval
34617else
34618  ntp_autokey=$ntp_openssl
34619
34620fi
34621
34622case "$ntp_autokey" in
34623 no)
34624    ;;
34625 *)
34626    case "$ntp_openssl" in
34627     no)
34628	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
34629$as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
34630	ntp_autokey=no
34631	;;
34632     *)
34633
34634$as_echo "#define AUTOKEY 1" >>confdefs.h
34635
34636	ntp_autokey=yes
34637	;;
34638    esac
34639    ;;
34640esac
34641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
34642$as_echo "$ntp_autokey" >&6; }
34643
34644
34645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
34646$as_echo_n "checking if we want to run check-layout... " >&6; }
34647case "$cross_compiling$PATH_PERL" in
34648 no/*)
34649    MAKE_CHECK_LAYOUT=check-layout
34650    ans=yes
34651    ;;
34652 *)
34653    ans=no
34654    ;;
34655esac
34656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34657$as_echo "$ans" >&6; }
34658
34659
34660
34661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
34662$as_echo_n "checking if we can make dcf parse utilities... " >&6; }
34663ans=no
34664case "$ntp_parseutil" in
34665 yes)
34666    case "$host" in
34667     *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
34668	ans="dcfd testdcf"
34669	DCFD=dcfd
34670	TESTDCF=testdcf
34671    esac
34672    ;;
34673esac
34674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34675$as_echo "$ans" >&6; }
34676
34677
34678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
34679$as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
34680ans=no
34681case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
34682 yesyes)
34683    case "$host" in
34684     sparc-*-sunos4*)
34685        case "$ntp_cv_var_kernel_pll" in
34686	yes)
34687
34688$as_echo "#define PPS_SYNC 1" >>confdefs.h
34689
34690	    ;;
34691	esac
34692	ans=parsestreams
34693	MAKE_PARSEKMODULE=parsestreams.loadable_module.o
34694	;;
34695     sparc-*-solaris2*)
34696	ans=parsesolaris
34697	MAKE_PARSEKMODULE=parse
34698	for ac_header in strings.h
34699do :
34700  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
34701if test "x$ac_cv_header_strings_h" = xyes; then :
34702  cat >>confdefs.h <<_ACEOF
34703#define HAVE_STRINGS_H 1
34704_ACEOF
34705
34706fi
34707
34708done
34709
34710	;;
34711    esac
34712    ;;
34713esac
34714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34715$as_echo "$ans" >&6; }
34716
34717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
34718$as_echo_n "checking if we need basic refclock support... " >&6; }
34719case "$ntp_refclock" in
34720 yes)
34721
34722$as_echo "#define REFCLOCK 1" >>confdefs.h
34723
34724    ;;
34725esac
34726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
34727$as_echo "$ntp_refclock" >&6; }
34728
34729PROPDELAY=propdelay
34730
34731
34732
34733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
34734$as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
34735case "$host" in
34736 *-*-hpux[56789]*)
34737    ans=yes
34738    ;;
34739 *) ans=no
34740    ;;
34741esac
34742case "$ans" in
34743 yes)
34744    MAKE_ADJTIMED=adjtimed
34745
34746$as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
34747
34748    ;;
34749 *) ADJTIMED_DB=
34750    ADJTIMED_DL=
34751    ADJTIMED_DS=
34752    ADJTIMED_MS=
34753    ;;
34754esac
34755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34756$as_echo "$ans" >&6; }
34757
34758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
34759$as_echo_n "checking if we want QNX adjtime support... " >&6; }
34760case "$host" in
34761 *-*-qnx*)
34762    ans=yes
34763    ;;
34764 *) ans=no
34765    ;;
34766esac
34767case "$ans" in
34768 yes)
34769
34770$as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h
34771
34772    ;;
34773esac
34774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34775$as_echo "$ans" >&6; }
34776
34777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
34778$as_echo_n "checking if we can read kmem... " >&6; }
34779
34780#  the default is to enable it if the system has the capability
34781
34782case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
34783 *yes*)
34784    ans=yes
34785    ;;
34786 *) ans=no
34787    ;;
34788esac
34789
34790case "$host" in
34791 *-*-domainos)	# Won't be found...
34792    ans=no
34793    ;;
34794 *-*-hpux*)
34795    #ans=no
34796    ;;
34797 *-*-irix[456]*)
34798    ans=no
34799    ;;
34800 *-*-*linux*)
34801    ans=no
34802    ;;
34803 *-*-winnt3.5)
34804    ans=no
34805    ;;
34806 *-*-unicosmp*)
34807    ans=no
34808    ;;
34809esac
34810
34811# --enable-kmem / --disable-kmem controls if present
34812# Check whether --enable-kmem was given.
34813if test "${enable_kmem+set}" = set; then :
34814  enableval=$enable_kmem; ans=$enableval
34815
34816fi
34817
34818
34819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34820$as_echo "$ans" >&6; }
34821
34822case "$ans" in
34823 yes)
34824    can_kmem=yes
34825    ;;
34826 *)
34827    can_kmem=no
34828
34829$as_echo "#define NOKMEM 1" >>confdefs.h
34830
34831esac
34832
34833
34834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
34835$as_echo_n "checking if adjtime is accurate... " >&6; }
34836
34837# target-dependent defaults
34838
34839case "$host" in
34840 i386-sequent-ptx*)
34841    ans=no
34842    ;;
34843 i386-unknown-osf1*)
34844    ans=yes
34845    ;;
34846 mips-sgi-irix[456]*)
34847    ans=yes
34848    ;;
34849 *-fujitsu-uxp*)
34850    ans=yes
34851    ;;
34852 *-ibm-aix[4-9]*)
34853    # XXX only verified thru AIX6.
34854    ans=yes
34855    ;;
34856 *-*-*linux*)
34857    ans=yes
34858    ;;
34859 *-*-solaris2.[01])
34860    ans=no
34861    ;;
34862 *-*-solaris2*)
34863    ans=yes
34864    ;;
34865 *-*-unicosmp*)
34866    ans=yes
34867    ;;
34868 *) ans=no
34869    ;;
34870esac
34871
34872# --enable-accurate-adjtime / --disable-accurate-adjtime
34873# override the default
34874# Check whether --enable-accurate-adjtime was given.
34875if test "${enable_accurate_adjtime+set}" = set; then :
34876  enableval=$enable_accurate_adjtime; ans=$enableval
34877
34878fi
34879
34880
34881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34882$as_echo "$ans" >&6; }
34883
34884case "$ans" in
34885 yes)
34886
34887$as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
34888
34889    adjtime_is_accurate=yes
34890    ;;
34891 *)
34892    adjtime_is_accurate=no
34893    ;;
34894esac
34895
34896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
34897$as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
34898if ${ntp_cv_nlist_tick+:} false; then :
34899  $as_echo_n "(cached) " >&6
34900else
34901
34902	ans=_tick
34903	case "$host" in
34904	 m68*-hp-hpux*) # HP9000/300?
34905	    ans=_old_tick
34906	    ;;
34907	 *-apple-aux[23]*)
34908	    ans=tick
34909	    ;;
34910	 *-hp-hpux*)
34911	    ans=old_tick
34912	    ;;
34913	 *-ibm-aix[3-9]*)
34914	    # XXX only verified thru AIX6.
34915	    ans=no
34916	    ;;
34917	 *-*-mpeix*)
34918	    ans=no
34919	    ;;
34920	 *-*-ptx*)
34921	    ans=tick
34922	    ;;
34923	 *-*-sco3.2v[45]*)
34924	    ans=no
34925	    ;;
34926	 *-*-solaris2*)
34927	    ans=nsec_per_tick
34928	    ;;
34929	 *-*-sysv4*)
34930	    ans=tick
34931	    ;;
34932	esac
34933	ntp_cv_nlist_tick=$ans
34934
34935
34936fi
34937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5
34938$as_echo "$ntp_cv_nlist_tick" >&6; }
34939case "$ntp_cv_nlist_tick" in
34940 ''|no)
34941    ;;	# HMS: I think we can only get 'no' here...
34942 *)
34943
34944cat >>confdefs.h <<_ACEOF
34945#define K_TICK_NAME "$ntp_cv_nlist_tick"
34946_ACEOF
34947
34948esac
34949
34950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
34951$as_echo_n "checking for the units of 'tick'... " >&6; }
34952if ${ntp_cv_tick_nano+:} false; then :
34953  $as_echo_n "(cached) " >&6
34954else
34955
34956	ans=usec
34957	case "$host" in
34958	 *-*-solaris2*)
34959	    ans=nsec
34960	    ;;
34961	esac
34962	ntp_cv_tick_nano=$ans
34963
34964
34965fi
34966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5
34967$as_echo "$ntp_cv_tick_nano" >&6; }
34968case "$ntp_cv_tick_nano" in
34969 nsec)
34970
34971$as_echo "#define TICK_NANO 1" >>confdefs.h
34972
34973esac
34974
34975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
34976$as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
34977if ${ntp_cv_nlist_tickadj+:} false; then :
34978  $as_echo_n "(cached) " >&6
34979else
34980
34981	ans=_tickadj
34982	case "$host" in
34983	 m68*-hp-hpux*) # HP9000/300?
34984	    ans=_tickadj
34985	    ;;
34986	 *-apple-aux[23]*)
34987	    ans=tickadj
34988	    ;;
34989	 *-hp-hpux10*)
34990	    ans=no
34991	    ;;
34992	 *-hp-hpux9*)
34993	    ans=no
34994	    ;;
34995	 *-hp-hpux*)
34996	    ans=tickadj
34997	    ;;
34998	 *-*-aix*)
34999	    ans=tickadj
35000	    ;;
35001	 *-*-mpeix*)
35002	    ans=no
35003	    ;;
35004	 *-*-ptx*)
35005	    ans=tickadj
35006	    ;;
35007	 *-*-sco3.2v4*)
35008	    ans=no
35009	    ;;
35010	 *-*-sco3.2v5.0*)
35011	    ans=clock_drift
35012	    ;;
35013	 *-*-solaris2*)
35014	    ans=no	# hrestime_adj
35015	    ;;
35016	 *-*-sysv4*)
35017	    ans=tickadj
35018	    ;;
35019	esac
35020	ntp_cv_nlist_tickadj=$ans
35021
35022
35023fi
35024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5
35025$as_echo "$ntp_cv_nlist_tickadj" >&6; }
35026case "$ntp_cv_nlist_tickadj" in
35027 ''|no)
35028    ;;	# HMS: I think we can only get 'no' here...
35029 *)
35030
35031cat >>confdefs.h <<_ACEOF
35032#define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj"
35033_ACEOF
35034
35035esac
35036
35037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
35038$as_echo_n "checking for the units of 'tickadj'... " >&6; }
35039if ${ntp_cv_tickadj_nano+:} false; then :
35040  $as_echo_n "(cached) " >&6
35041else
35042
35043	ans=usec
35044	case "$host" in
35045	 *-*-solaris2*)
35046	    ans=nsec
35047	    ;;
35048	esac
35049	ntp_cv_tickadj_nano=$ans
35050
35051
35052fi
35053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5
35054$as_echo "$ntp_cv_tickadj_nano" >&6; }
35055case "$ntp_cv_tickadj_nano" in
35056 nsec)
35057
35058$as_echo "#define TICKADJ_NANO 1" >>confdefs.h
35059
35060esac
35061
35062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
35063$as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
35064if ${ntp_cv_nlist_dosynctodr+:} false; then :
35065  $as_echo_n "(cached) " >&6
35066else
35067
35068	case "$host" in
35069	 *-apple-aux[23]*)
35070	    ans=no
35071	    ;;
35072	 *-sni-sysv*)
35073	    ans=dosynctodr
35074	    ;;
35075	 *-stratus-vos)
35076	    ans=no
35077	    ;;
35078	 *-*-aix*)
35079	    ans=dosynctodr
35080	    ;;
35081	 *-*-hpux*)
35082	    ans=no
35083	    ;;
35084	 *-*-mpeix*)
35085	    ans=no
35086	    ;;
35087	 *-*-nextstep*)
35088	    ans=_dosynctodr
35089	    ;;
35090	 *-*-ptx*)
35091	    ans=doresettodr
35092	    ;;
35093	 *-*-sco3.2v4*)
35094	    ans=no
35095	    ;;
35096	 *-*-sco3.2v5*)
35097	    ans=track_rtc
35098	    ;;
35099	 *-*-solaris2*)
35100	    ans=dosynctodr
35101	    ;;
35102	 *-*-sysv4*)
35103	    ans=doresettodr
35104	    ;;
35105	 *)
35106	    ans=_dosynctodr
35107	    ;;
35108	esac
35109	ntp_cv_nlist_dosynctodr=$ans
35110
35111
35112fi
35113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5
35114$as_echo "$ntp_cv_nlist_dosynctodr" >&6; }
35115case "$ntp_cv_nlist_dosynctodr" in
35116 no)
35117    ;;
35118 *)
35119
35120cat >>confdefs.h <<_ACEOF
35121#define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr"
35122_ACEOF
35123
35124    ;;
35125esac
35126
35127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
35128$as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
35129if ${ntp_cv_nlist_noprintf+:} false; then :
35130  $as_echo_n "(cached) " >&6
35131else
35132
35133	case "$host" in
35134	 *-apple-aux[23]*)
35135	    ans=no
35136	    ;;
35137	 *-sni-sysv*)
35138	    ans=noprintf
35139	    ;;
35140	 *-stratus-vos)
35141	    ans=no
35142	    ;;
35143	 *-*-aix*)
35144	    ans=noprintf
35145	    ;;
35146	 *-*-hpux*)
35147	    ans=no
35148	    ;;
35149	 *-*-mpeix*)
35150	    ans=no
35151	    ;;
35152	 *-*-ptx*)
35153	    ans=noprintf
35154	    ;;
35155	 *-*-nextstep*)
35156	    ans=_noprintf
35157	    ;;
35158	 *-*-solaris2*)
35159	    ans=noprintf
35160	    ;;
35161	 *-*-sysv4*)
35162	    ans=noprintf
35163	    ;;
35164	 *)
35165	    ans=_noprintf
35166	    ;;
35167	esac
35168	ntp_cv_nlist_noprintf=$ans
35169
35170
35171fi
35172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5
35173$as_echo "$ntp_cv_nlist_noprintf" >&6; }
35174case "$ntp_cv_nlist_noprintf" in
35175 no)
35176    ;;
35177 *)
35178
35179cat >>confdefs.h <<_ACEOF
35180#define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf"
35181_ACEOF
35182
35183    ;;
35184esac
35185
35186
35187
35188
35189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
35190$as_echo_n "checking for a default value for 'tick'... " >&6; }
35191
35192# target-dependent default for tick
35193
35194case "$host" in
35195 *-*-pc-cygwin*)
35196    as_fn_error $? "tick needs work for cygwin" "$LINENO" 5
35197    ;;
35198 *-univel-sysv*)
35199    ans=10000
35200    ;;
35201 *-*-irix*)
35202    ans=10000
35203    ;;
35204 *-*-*linux*)
35205    ans=txc.tick
35206    ;;
35207 *-*-mpeix*)
35208    ans=no
35209    ;;
35210 *-*-winnt3.5)
35211    ans='(every / 10)'
35212    ;;
35213 *-*-unicosmp*)
35214    ans=10000
35215    ;;
35216 *)
35217    ans='1000000L/hz'
35218    ;;
35219esac
35220
35221# Check whether --enable-tick was given.
35222if test "${enable_tick+set}" = set; then :
35223  enableval=$enable_tick; ans=$enableval
35224
35225fi
35226
35227
35228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35229$as_echo "$ans" >&6; }
35230
35231case "$ans" in
35232 ''|no)
35233    ;;	# HMS: I think we can only get 'no' here...
35234 *)
35235
35236cat >>confdefs.h <<_ACEOF
35237#define PRESET_TICK $ans
35238_ACEOF
35239
35240esac
35241
35242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
35243$as_echo_n "checking for a default value for 'tickadj'... " >&6; }
35244
35245# target-specific default
35246ans='500/hz'
35247case "$host" in
35248 *-fujitsu-uxp*)
35249    case "$adjtime_is_accurate" in
35250     yes)
35251	ans='tick/16'
35252    esac
35253    ;;
35254 *-univel-sysv*)
35255    ans=80
35256    ;;
35257 *-*-aix*)
35258    case "$can_kmem" in
35259     no)
35260	ans=1000
35261	;;
35262    esac
35263    ;;
35264 *-*-domainos)	# Skippy: won't be found...
35265    case "$can_kmem" in
35266     no)
35267	ans=668
35268	;;
35269    esac
35270    ;;
35271 *-*-hpux*)
35272    case "$adjtime_is_accurate" in
35273     yes)
35274	ans='tick/16'
35275	;;
35276    esac
35277    ;;
35278 *-*-irix*)
35279    ans=150
35280    ;;
35281 *-*-mpeix*)
35282    ans=no
35283    ;;
35284 *-*-sco3.2v5.0*)
35285    ans=10000L/hz
35286    ;;
35287 *-*-winnt3.5)
35288    ans=50
35289    ;;
35290 *-*-unicosmp*)
35291    ans=150
35292    ;;
35293esac
35294
35295# Check whether --enable-tickadj was given.
35296if test "${enable_tickadj+set}" = set; then :
35297  enableval=$enable_tickadj; ans=$enableval
35298
35299fi
35300
35301
35302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35303$as_echo "$ans" >&6; }
35304
35305default_tickadj=$ans
35306
35307case "$default_tickadj" in
35308 ''|no)
35309    ;;	# HMS: I think we can only get 'no' here...
35310 *)
35311
35312cat >>confdefs.h <<_ACEOF
35313#define PRESET_TICKADJ $default_tickadj
35314_ACEOF
35315 ;;
35316esac
35317
35318# Newer versions of ReliantUNIX round adjtime() values down to
35319# 1/100s (system tick). Sigh ...
35320# Unfortunately, there is no easy way to know if particular release
35321# has this "feature" or any obvious way to test for it.
35322case "$host" in
35323 mips-sni-sysv4*)
35324
35325$as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
35326
35327esac
35328
35329case "$host" in
35330 *-*-sco3.2v5*)
35331
35332$as_echo "#define SCO5_CLOCK 1" >>confdefs.h
35333
35334esac
35335
35336ntp_cv_make_tickadj=yes
35337case "$can_kmem$ac_cv_var_tick$default_tickadj" in
35338 nonono)	# Don't read KMEM, no presets.  Bogus.
35339    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&5
35340$as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&2;}
35341    ntp_cv_make_tickadj=no
35342    ;;
35343 nono*)		# Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
35344    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&5
35345$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&2;}
35346    ntp_cv_make_tickadj=no
35347    ;;
35348 no*no)		# Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Bogus.
35349    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&5
35350$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&2;}
35351    ntp_cv_make_tickadj=no
35352    ;;
35353 no*)		# Don't read KMEM, PRESET_TICK and PRESET_TICKADJ.  Cool.
35354    ;;
35355 yesnono)	# Read KMEM, no presets.  Cool.
35356    ;;
35357 yesno*)	# Read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
35358    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&5
35359$as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&2;}
35360    ;;
35361 yes*no)	# Read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Cool.
35362    ;;
35363 yes*)		# READ KMEM, PRESET_TICK and PRESET_TICKADJ.
35364    ;;
35365 *)		# Generally bogus.
35366    as_fn_error $? "This shouldn't happen." "$LINENO" 5
35367    ;;
35368esac
35369
35370
35371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
35372$as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
35373if ${ac_cv_make_ntptime+:} false; then :
35374  $as_echo_n "(cached) " >&6
35375else
35376  case "$host" in
35377 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in
35378     yesyes)
35379	ans=yes
35380	;;
35381     *)
35382	ans=no
35383	;;
35384    esac
35385    ;;
35386esac
35387ac_cv_make_ntptime=$ans
35388fi
35389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
35390$as_echo "$ac_cv_make_ntptime" >&6; }
35391case "$ac_cv_make_ntptime" in
35392 yes)
35393    MAKE_NTPTIME=ntptime
35394    ;;
35395 *)
35396    NTPTIME_DB=
35397    NTPTIME_DL=
35398    NTPTIME_DS=
35399    NTPTIME_MS=
35400    ;;
35401esac
35402
35403
35404case "$host" in
35405 mips-sni-sysv4*)
35406    # tickadj is pretty useless on newer versions of ReliantUNIX
35407    # Do not bother
35408    ntp_cv_make_tickadj=no
35409    ;;
35410 *-*-irix*)
35411    ntp_cv_make_tickadj=no
35412    ;;
35413 *-*-solaris2*)
35414    # DLM says tickadj is a no-no starting with solaris2.5
35415    case "$host" in
35416     *-*-solaris2.1[0-9]*)
35417	ntp_cv_make_tickadj=no
35418	;;
35419     *-*-solaris2.[0-4]*) ;;
35420     *) ntp_cv_make_tickadj=no ;;
35421    esac
35422    ;;
35423 *-*-unicosmp*)
35424    ntp_cv_make_tickadj=no
35425    ;;
35426esac
35427
35428#
35429# Despite all the above, we always make tickadj.  Setting
35430# ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false
35431# report that the configuration variable was cached.  It may
35432# be better to simply remove the hunk above, I did not want
35433# to remove it if there is hope it will be used again.
35434#
35435{ ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;}
35436
35437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
35438$as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
35439if ${ntp_cv_make_tickadj+:} false; then :
35440  $as_echo_n "(cached) " >&6
35441else
35442  ntp_cv_make_tickadj=yes
35443
35444fi
35445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5
35446$as_echo "$ntp_cv_make_tickadj" >&6; }
35447case "$ntp_cv_make_tickadj" in
35448 yes)
35449    MAKE_TICKADJ=tickadj
35450    ;;
35451 *)
35452    CALC_TICKADJ_DB=
35453    CALC_TICKADJ_DL=
35454    CALC_TICKADJ_DS=
35455    CALC_TICKADJ_MS=
35456    TICKADJ_DB=
35457    TICKADJ_DL=
35458    TICKADJ_DS=
35459    TICKADJ_MS=
35460    ;;
35461esac
35462
35463
35464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
35465$as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
35466if ${ntp_cv_make_timetrim+:} false; then :
35467  $as_echo_n "(cached) " >&6
35468else
35469
35470	case "$host" in
35471	 *-*-irix*)
35472	    ntp_cv_make_timetrim=yes
35473	    ;;
35474	 *-*-unicosmp*)
35475	    ntp_cv_make_timetrim=yes
35476	    ;;
35477	 *)
35478	    ntp_cv_make_timetrim=no
35479	    ;;
35480	esac
35481
35482
35483fi
35484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5
35485$as_echo "$ntp_cv_make_timetrim" >&6; }
35486case "$ntp_cv_make_timetrim" in
35487 yes)
35488    MAKE_TIMETRIM=timetrim
35489    ;;
35490 *) TIMETRIM_DB=
35491    TIMETRIM_DL=
35492    TIMETRIM_DS=
35493    TIMETRIM_MS=
35494    ;;
35495esac
35496
35497
35498
35499
35500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
35501$as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
35502# Check whether --enable-simulator was given.
35503if test "${enable_simulator+set}" = set; then :
35504  enableval=$enable_simulator; ans=$enableval
35505else
35506  ans=no
35507
35508fi
35509
35510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35511$as_echo "$ans" >&6; }
35512case "$ans" in
35513 yes)
35514    MAKE_NTPDSIM=ntpdsim
35515    MAKE_LIBNTPSIM=libntpsim.a
35516    ;;
35517 *)
35518    NTPDSIM_DB=
35519    NTPDSIM_DL=
35520    NTPDSIM_DS=
35521    NTPDSIM_MS=
35522    ;;
35523esac
35524
35525case "$build" in
35526 $host)
35527    ;;
35528 *) case "$host" in
35529     *-*-vxworks*)
35530	LDFLAGS="$LDFLAGS -r"
35531	;;
35532    esac
35533    ;;
35534esac
35535
35536
35537
35538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
35539$as_echo_n "checking if sntp will be built... " >&6; }
35540
35541# Check whether --with-sntp was given.
35542if test "${with_sntp+set}" = set; then :
35543  withval=$with_sntp;
35544else
35545  with_sntp="${withsntp=yes}"
35546
35547fi
35548
35549case "$with_sntp" in
35550 no)
35551    SNTP=
35552    ;;
35553 *)
35554    SNTP=sntp
35555    ;;
35556esac
35557
35558 if test -n "$SNTP"; then
35559  BUILD_SNTP_TRUE=
35560  BUILD_SNTP_FALSE='#'
35561else
35562  BUILD_SNTP_TRUE='#'
35563  BUILD_SNTP_FALSE=
35564fi
35565
35566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
35567$as_echo "$with_sntp" >&6; }
35568
35569
35570
35571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
35572$as_echo_n "checking if we want to build ntpsnmpd... " >&6; }
35573
35574# Check whether --with-ntpsnmpd was given.
35575if test "${with_ntpsnmpd+set}" = set; then :
35576  withval=$with_ntpsnmpd; ans=$withval
35577else
35578
35579	case "$PATH_NET_SNMP_CONFIG" in
35580	 /*)	ans=yes ;;
35581	 *)	ans=no  ;;
35582	esac
35583
35584
35585fi
35586
35587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35588$as_echo "$ans" >&6; }
35589case "$ans" in
35590 yes)
35591    case "$PATH_NET_SNMP_CONFIG" in
35592     /*)
35593	SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs`
35594	# Bug 2815.  This is a bit of a hack, but it works...
35595	case "$ntp_cv_net_snmp_version" in
35596	 5.3*)	SNMP_LIBS=`echo $SNMP_LIBS | $SED -e 's/-lnetsnmpagent/-lnetsnmpagent -lnetsnmpmibs/'`
35597		;;
35598	esac
35599
35600	# HMS: we really want to separate CPPFLAGS and CFLAGS
35601	foo=`$PATH_NET_SNMP_CONFIG --cflags`
35602	SNMP_CPPFLAGS=
35603	SNMP_CFLAGS=
35604	for i in $foo; do
35605	    case "$i" in
35606	     -D*|-U*|-I*)
35607		SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i"
35608		;;
35609	    *)	SNMP_CFLAGS="$SNMP_CFLAGS $i"
35610		;;
35611	    esac
35612	done
35613
35614
35615
35616	save_CFLAGS=$CFLAGS
35617	save_CPPFLAGS=$CPPFLAGS
35618	save_LIBS=$LIBS
35619	CFLAGS=$SNMP_CFLAGS
35620	CPPFLAGS=$SNMP_CPPFLAGS
35621
35622	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"
35623if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
35624  MAKE_NTPSNMPD=ntpsnmpd
35625else
35626  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
35627$as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}
35628
35629fi
35630
35631
35632
35633	# Do this last, as we're messing up LIBS.
35634	# check -lnetsnmp for netsnmp_daemonize
35635	LIBS=`$PATH_NET_SNMP_CONFIG --libs`
35636	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
35637$as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
35638if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then :
35639  $as_echo_n "(cached) " >&6
35640else
35641  ac_check_lib_save_LIBS=$LIBS
35642LIBS="-lnetsnmp  $LIBS"
35643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35644/* end confdefs.h.  */
35645
35646/* Override any GCC internal prototype to avoid an error.
35647   Use char because int might match the return type of a GCC
35648   builtin and then its argument prototype would still apply.  */
35649#ifdef __cplusplus
35650extern "C"
35651#endif
35652char netsnmp_daemonize ();
35653int
35654main ()
35655{
35656return netsnmp_daemonize ();
35657  ;
35658  return 0;
35659}
35660_ACEOF
35661if ac_fn_c_try_link "$LINENO"; then :
35662  ac_cv_lib_netsnmp_netsnmp_daemonize=yes
35663else
35664  ac_cv_lib_netsnmp_netsnmp_daemonize=no
35665fi
35666rm -f core conftest.err conftest.$ac_objext \
35667    conftest$ac_exeext conftest.$ac_ext
35668LIBS=$ac_check_lib_save_LIBS
35669fi
35670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
35671$as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
35672if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then :
35673  ans=yes
35674else
35675  ans=no
35676
35677fi
35678
35679	case "$ans" in
35680	 no)
35681
35682$as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h
35683
35684	esac
35685
35686	CFLAGS=$save_CFLAGS
35687	{ save_CFLAGS=; unset save_CFLAGS;}
35688	CPPFLAGS=$save_CPPFLAGS
35689	{ save_CPPFLAGS=; unset save_CPPFLAGS;}
35690	LIBS=$save_LIBS
35691	{ save_LIBS=; unset save_LIBS;}
35692	;;
35693     *)
35694	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5
35695$as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;}
35696	;;
35697    esac
35698    ;;
35699esac
35700
35701
35702case "$MAKE_NTPSNMPD" in
35703 '')
35704    NTPSNMPD_DB=
35705    NTPSNMPD_DL=
35706    NTPSNMPD_DS=
35707    NTPSNMPD_MS=
35708    ;;
35709esac
35710
35711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
35712$as_echo_n "checking if we should always slew the time... " >&6; }
35713
35714# target-specific defaults
35715
35716case "$host" in
35717 *-apple-aux[23]*)
35718    ans=yes
35719    ;;
35720 *-*-bsdi[012]*)
35721    ans=no
35722    ;;
35723 *-*-bsdi*)
35724    ans=yes
35725    ;;
35726 *-*-openvms*)	# HMS: won't be found
35727    ans=yes
35728    ;;
35729 *) ans=no
35730    ;;
35731esac
35732
35733# --enable-slew-always / --disable-slew-always overrides default
35734
35735# Check whether --enable-slew-always was given.
35736if test "${enable_slew_always+set}" = set; then :
35737  enableval=$enable_slew_always; ans=$enableval
35738
35739fi
35740
35741
35742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35743$as_echo "$ans" >&6; }
35744
35745case "$ans" in
35746 yes)
35747
35748$as_echo "#define SLEWALWAYS 1" >>confdefs.h
35749
35750esac
35751
35752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
35753$as_echo_n "checking if we should step and slew the time... " >&6; }
35754
35755case "$host" in
35756 *-sni-sysv*)
35757    ans=yes
35758    ;;
35759 *-stratus-vos)
35760    ans=no
35761    ;;
35762 *-univel-sysv*)
35763    ans=no
35764    ;;
35765 *-*-ptx*)
35766    ans=yes
35767    ;;
35768 *-*-solaris2.1[0-9]*)
35769    ans=no
35770    ;;
35771 *-*-solaris2.[012]*)
35772    ans=yes
35773    ;;
35774 *-*-sysv4*)	# HMS: Does this catch Fujitsu UXP?
35775    ans=yes
35776    ;;
35777 *) ans=no
35778    ;;
35779esac
35780
35781# Check whether --enable-step-slew was given.
35782if test "${enable_step_slew+set}" = set; then :
35783  enableval=$enable_step_slew; ans=$enableval
35784
35785fi
35786
35787
35788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35789$as_echo "$ans" >&6; }
35790
35791case "$ans" in
35792 yes)
35793
35794$as_echo "#define STEP_SLEW 1" >>confdefs.h
35795
35796esac
35797
35798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
35799$as_echo_n "checking if ntpdate should step the time... " >&6; }
35800
35801case "$host" in
35802 *-apple-aux[23]*)
35803    ans=yes
35804    ;;
35805 *) ans=no
35806    ;;
35807esac
35808
35809# Check whether --enable-ntpdate-step was given.
35810if test "${enable_ntpdate_step+set}" = set; then :
35811  enableval=$enable_ntpdate_step; ans=$enableval
35812
35813fi
35814
35815
35816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35817$as_echo "$ans" >&6; }
35818
35819case "$ans" in
35820 yes)
35821
35822$as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
35823
35824esac
35825
35826
35827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
35828$as_echo_n "checking if we should sync TODR clock every hour... " >&6; }
35829
35830case "$host" in
35831 *-*-nextstep*)
35832    ans=yes
35833    ;;
35834 *-*-openvms*)	# HMS: won't be found
35835    ans=yes
35836    ;;
35837 *)
35838    ans=no
35839    ;;
35840esac
35841
35842# Check whether --enable-hourly-todr-sync was given.
35843if test "${enable_hourly_todr_sync+set}" = set; then :
35844  enableval=$enable_hourly_todr_sync; ans=$enableval
35845
35846fi
35847
35848
35849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35850$as_echo "$ans" >&6; }
35851
35852case "$ac_cv_var_sync_todr" in
35853 yes)
35854
35855$as_echo "#define DOSYNCTODR 1" >>confdefs.h
35856 ;;
35857esac
35858
35859
35860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
35861$as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }
35862
35863case "$host" in
35864 *-*-solaris2.6)
35865    unamev=`uname -v`
35866    case "$unamev" in
35867     Generic_105181-*)
35868	old_IFS="$IFS"
35869	IFS="-"
35870	set $unamev
35871	IFS="$old_IFS"
35872	if test "$2" -ge 17
35873	then
35874	    # Generic_105181-17 and higher
35875	    ans=no
35876	else
35877	    ans=yes
35878	fi
35879	;;
35880     *)
35881	ans=yes
35882	;;
35883    esac
35884    ;;
35885 *-*-solaris2.7)
35886    unamev=`uname -v`
35887    case "$unamev" in
35888     Generic_106541-*)
35889	old_IFS="$IFS"
35890	IFS="-"
35891	set $unamev
35892	IFS="$old_IFS"
35893	if test "$2" -ge 07
35894	then
35895	    # Generic_106541-07 and higher
35896	    ans=no
35897	else
35898	    ans=yes
35899	fi
35900	;;
35901     *)
35902	ans=yes
35903	;;
35904    esac
35905    ;;
35906 *)
35907    ans=no
35908    ;;
35909esac
35910
35911# Check whether --enable-kernel-fll-bug was given.
35912if test "${enable_kernel_fll_bug+set}" = set; then :
35913  enableval=$enable_kernel_fll_bug; ans=$enableval
35914
35915fi
35916
35917
35918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35919$as_echo "$ans" >&6; }
35920
35921case "$ans" in
35922 yes)
35923
35924$as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h
35925
35926esac
35927
35928
35929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
35930$as_echo_n "checking if we want new session key behavior... " >&6; }
35931# Check whether --enable-bug1243-fix was given.
35932if test "${enable_bug1243_fix+set}" = set; then :
35933  enableval=$enable_bug1243_fix; ans=$enableval
35934else
35935  ans=yes
35936
35937fi
35938
35939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35940$as_echo "$ans" >&6; }
35941case "$ans" in
35942 no)
35943
35944$as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h
35945
35946esac
35947
35948
35949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the explicit 127.0.0.0/8 martian filter" >&5
35950$as_echo_n "checking if we want the explicit 127.0.0.0/8 martian filter... " >&6; }
35951# Check whether --enable-bug3020-fix was given.
35952if test "${enable_bug3020_fix+set}" = set; then :
35953  enableval=$enable_bug3020_fix; ans=$enableval
35954else
35955  ans=yes
35956
35957fi
35958
35959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35960$as_echo "$ans" >&6; }
35961case "$ans" in
35962 yes)
35963
35964$as_echo "#define ENABLE_BUG3020_FIX 1" >>confdefs.h
35965
35966esac
35967
35968
35969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
35970$as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }
35971
35972case "$host" in
35973 *-*-solaris2.[89])
35974    ans=yes
35975    ;;
35976 *-*-solaris2.1[0-9]*)
35977    ans=yes
35978    ;;
35979 *) ans=no
35980    ;;
35981esac
35982
35983# Check whether --enable-irig-sawtooth was given.
35984if test "${enable_irig_sawtooth+set}" = set; then :
35985  enableval=$enable_irig_sawtooth; ans=$enableval
35986
35987fi
35988
35989
35990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35991$as_echo "$ans" >&6; }
35992
35993case "$ans" in
35994 yes)
35995
35996$as_echo "#define IRIG_SUCKS 1" >>confdefs.h
35997
35998esac
35999
36000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
36001$as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }
36002# Check whether --enable-nist was given.
36003if test "${enable_nist+set}" = set; then :
36004  enableval=$enable_nist; ans=$enableval
36005else
36006  ans=no
36007
36008fi
36009
36010
36011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
36012$as_echo "$ans" >&6; }
36013
36014case "$ans" in
36015 yes)
36016
36017$as_echo "#define LOCKCLOCK 1" >>confdefs.h
36018 ;;
36019esac
36020
36021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
36022$as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }
36023# Check whether --enable-ntp-signd was given.
36024if test "${enable_ntp_signd+set}" = set; then :
36025  enableval=$enable_ntp_signd; ans=$enableval
36026else
36027  ans=no
36028
36029fi
36030
36031
36032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
36033$as_echo "$ans" >&6; }
36034
36035case "$ans" in
36036 no)
36037    ntp_signd_path=
36038    ;;
36039 yes)
36040    ntp_signd_path=/var/run/ntp_signd
36041    ;;
36042 *)
36043    ntp_signd_path="$ans"
36044esac
36045
36046case "$ntp_signd_path" in
36047 '')
36048    ;;
36049 *)
36050
36051$as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h
36052
36053
36054cat >>confdefs.h <<_ACEOF
36055#define NTP_SIGND_PATH "$ntp_signd_path"
36056_ACEOF
36057
36058    ;;
36059esac
36060
36061for ac_header in libscf.h
36062do :
36063  ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
36064if test "x$ac_cv_header_libscf_h" = xyes; then :
36065  cat >>confdefs.h <<_ACEOF
36066#define HAVE_LIBSCF_H 1
36067_ACEOF
36068
36069fi
36070
36071done
36072
36073LSCF=
36074case "$ac_cv_header_libscf_h" in
36075 yes)
36076    LSCF='-lscf'
36077esac
36078
36079
36080
36081
36082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
36083$as_echo_n "checking for struct sockaddr_storage... " >&6; }
36084if ${ntp_cv_sockaddr_storage+:} false; then :
36085  $as_echo_n "(cached) " >&6
36086else
36087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36088/* end confdefs.h.  */
36089
36090		#ifdef HAVE_SYS_TYPES_H
36091		# include <sys/types.h>
36092		#endif
36093		#ifdef HAVE_SYS_SOCKET_H
36094		# include <sys/socket.h>
36095		#endif
36096		#ifdef HAVE_NETINET_IN_H
36097		# include <netinet/in.h>
36098		#endif
36099
36100int
36101main ()
36102{
36103
36104		struct sockaddr_storage n;
36105
36106
36107  ;
36108  return 0;
36109}
36110_ACEOF
36111if ac_fn_c_try_compile "$LINENO"; then :
36112  ntp_cv_sockaddr_storage=yes
36113else
36114  ntp_cv_sockaddr_storage=no
36115
36116fi
36117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36118
36119fi
36120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
36121$as_echo "$ntp_cv_sockaddr_storage" >&6; }
36122case "$ntp_cv_sockaddr_storage" in
36123 yes)
36124
36125$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
36126
36127    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
36128$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
36129if ${ntp_cv_have___ss_family+:} false; then :
36130  $as_echo_n "(cached) " >&6
36131else
36132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36133/* end confdefs.h.  */
36134
36135		    #ifdef HAVE_SYS_TYPES_H
36136		    # include <sys/types.h>
36137		    #endif
36138		    #ifdef HAVE_SYS_SOCKET_H
36139		    # include <sys/socket.h>
36140		    #endif
36141		    #ifdef HAVE_NETINET_IN_H
36142		    # include <netinet/in.h>
36143		    #endif
36144
36145int
36146main ()
36147{
36148
36149		    struct sockaddr_storage s;
36150		    s.__ss_family = 1;
36151
36152
36153  ;
36154  return 0;
36155}
36156_ACEOF
36157if ac_fn_c_try_compile "$LINENO"; then :
36158  ntp_cv_have___ss_family=yes
36159else
36160  ntp_cv_have___ss_family=no
36161
36162fi
36163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36164
36165fi
36166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
36167$as_echo "$ntp_cv_have___ss_family" >&6; }
36168    case "$ntp_cv_have___ss_family" in
36169     yes)
36170
36171$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
36172
36173    esac
36174
36175esac
36176
36177
36178#
36179# Look for in_port_t.
36180#
36181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
36182$as_echo_n "checking for in_port_t... " >&6; }
36183if ${isc_cv_have_in_port_t+:} false; then :
36184  $as_echo_n "(cached) " >&6
36185else
36186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36187/* end confdefs.h.  */
36188
36189		#include <sys/types.h>
36190		#include <netinet/in.h>
36191
36192int
36193main ()
36194{
36195
36196		in_port_t port = 25;
36197		return (0);
36198
36199
36200  ;
36201  return 0;
36202}
36203_ACEOF
36204if ac_fn_c_try_compile "$LINENO"; then :
36205  isc_cv_have_in_port_t=yes
36206else
36207  isc_cv_have_in_port_t=no
36208
36209fi
36210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36211
36212fi
36213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
36214$as_echo "$isc_cv_have_in_port_t" >&6; }
36215case "$isc_cv_have_in_port_t" in
36216 no)
36217
36218$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
36219
36220esac
36221
36222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
36223$as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
36224if ${ntp_cv_getsockname_socklen_type+:} false; then :
36225  $as_echo_n "(cached) " >&6
36226else
36227
36228    getsockname_socklen_type_found=no
36229    for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
36230	for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
36231	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36232/* end confdefs.h.  */
36233
36234			#ifdef HAVE_SYS_TYPES_H
36235			# include <sys/types.h>
36236			#endif
36237			#ifdef HAVE_SYS_SOCKET_H
36238			# include <sys/socket.h>
36239			#endif
36240
36241int
36242main ()
36243{
36244
36245			extern
36246			getsockname(int, $getsockname_arg2,
36247				$ntp_cv_getsockname_socklen_type *);
36248
36249
36250  ;
36251  return 0;
36252}
36253_ACEOF
36254if ac_fn_c_try_compile "$LINENO"; then :
36255  getsockname_socklen_type_found=yes ; break 2
36256fi
36257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36258	done
36259    done
36260    case "$getsockname_socklen_type_found" in
36261     no)
36262	ntp_cv_getsockname_socklen_type='socklen_t'
36263    esac
36264    { getsockname_arg2=; unset getsockname_arg2;}
36265    { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
36266
36267
36268fi
36269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
36270$as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
36271
36272cat >>confdefs.h <<_ACEOF
36273#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
36274_ACEOF
36275
36276
36277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
36278$as_echo_n "checking struct sockaddr for sa_len... " >&6; }
36279if ${isc_cv_platform_havesalen+:} false; then :
36280  $as_echo_n "(cached) " >&6
36281else
36282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36283/* end confdefs.h.  */
36284
36285		#include <sys/types.h>
36286		#include <sys/socket.h>
36287
36288int
36289main ()
36290{
36291
36292		extern struct sockaddr *ps;
36293		return ps->sa_len;
36294
36295
36296  ;
36297  return 0;
36298}
36299_ACEOF
36300if ac_fn_c_try_compile "$LINENO"; then :
36301  isc_cv_platform_havesalen=yes
36302else
36303  isc_cv_platform_havesalen=no
36304
36305fi
36306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36307
36308fi
36309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
36310$as_echo "$isc_cv_platform_havesalen" >&6; }
36311case "$isc_cv_platform_havesalen" in
36312 yes)
36313
36314$as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
36315
36316esac
36317
36318# Check whether --enable-ipv6 was given.
36319if test "${enable_ipv6+set}" = set; then :
36320  enableval=$enable_ipv6;
36321fi
36322
36323
36324case "$enable_ipv6" in
36325 yes|''|autodetect)
36326    case "$host" in
36327     powerpc-ibm-aix4*)
36328	;;
36329     *)
36330
36331$as_echo "#define WANT_IPV6 1" >>confdefs.h
36332
36333	;;
36334    esac
36335    ;;
36336 no)
36337    ;;
36338esac
36339
36340
36341case "$host" in
36342 *-*-darwin*)
36343
36344$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
36345
36346esac
36347
36348
36349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
36350$as_echo_n "checking for IPv6 structures... " >&6; }
36351if ${isc_cv_found_ipv6+:} false; then :
36352  $as_echo_n "(cached) " >&6
36353else
36354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36355/* end confdefs.h.  */
36356
36357		#include <sys/types.h>
36358		#include <sys/socket.h>
36359		#include <netinet/in.h>
36360
36361int
36362main ()
36363{
36364
36365		struct sockaddr_in6 sin6;
36366
36367
36368  ;
36369  return 0;
36370}
36371_ACEOF
36372if ac_fn_c_try_compile "$LINENO"; then :
36373  isc_cv_found_ipv6=yes
36374else
36375  isc_cv_found_ipv6=no
36376
36377fi
36378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36379
36380fi
36381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
36382$as_echo "$isc_cv_found_ipv6" >&6; }
36383
36384#
36385# See whether IPv6 support is provided via a Kame add-on.
36386# This is done before other IPv6 linking tests so LIBS is properly set.
36387#
36388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
36389$as_echo_n "checking for Kame IPv6 support... " >&6; }
36390
36391# Check whether --with-kame was given.
36392if test "${with_kame+set}" = set; then :
36393  withval=$with_kame; use_kame="$withval"
36394else
36395  use_kame="no"
36396
36397fi
36398
36399case "$use_kame" in
36400 no)
36401    ;;
36402 yes)
36403    kame_path=/usr/local/v6
36404    ;;
36405 *)
36406    kame_path="$use_kame"
36407    ;;
36408esac
36409case "$use_kame" in
36410 no)
36411    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36412$as_echo "no" >&6; }
36413    ;;
36414 *)
36415    if test -f $kame_path/lib/libinet6.a; then
36416	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
36417$as_echo "$kame_path/lib/libinet6.a" >&6; }
36418	LIBS="-L$kame_path/lib -linet6 $LIBS"
36419    else
36420	as_fn_error $? "$kame_path/lib/libinet6.a not found.
36421
36422Please choose the proper path with the following command:
36423
36424    configure --with-kame=PATH
36425" "$LINENO" 5
36426    fi
36427    ;;
36428esac
36429
36430#
36431# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
36432# Including it on Kame-using platforms is very bad, though, because
36433# Kame uses #error against direct inclusion.   So include it on only
36434# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
36435# This is done before the in6_pktinfo check because that's what
36436# netinet6/in6.h is needed for.
36437#
36438case "$host" in
36439 *-bsdi4.[01]*)
36440
36441$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
36442
36443    isc_netinet6in6_hack="#include <netinet6/in6.h>"
36444    ;;
36445 *)
36446    isc_netinet6in6_hack=""
36447    ;;
36448esac
36449
36450#
36451# This is similar to the netinet6/in6.h issue.
36452#
36453case "$host" in
36454 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
36455
36456$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
36457
36458    isc_netinetin6_hack="#include <netinet/in6.h>"
36459    ;;
36460 *)
36461    isc_netinetin6_hack=""
36462    ;;
36463esac
36464
36465
36466case "$isc_cv_found_ipv6" in
36467 yes)
36468
36469$as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
36470
36471    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
36472$as_echo_n "checking for in6_pktinfo... " >&6; }
36473if ${isc_cv_have_in6_pktinfo+:} false; then :
36474  $as_echo_n "(cached) " >&6
36475else
36476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36477/* end confdefs.h.  */
36478
36479		    #include <sys/types.h>
36480		    #include <sys/socket.h>
36481		    #include <netinet/in.h>
36482		    $isc_netinetin6_hack
36483		    $isc_netinet6in6_hack
36484
36485int
36486main ()
36487{
36488
36489		    struct in6_pktinfo xyzzy;
36490
36491
36492  ;
36493  return 0;
36494}
36495_ACEOF
36496if ac_fn_c_try_compile "$LINENO"; then :
36497  isc_cv_have_in6_pktinfo=yes
36498else
36499  isc_cv_have_in6_pktinfo=no
36500
36501fi
36502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36503
36504fi
36505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
36506$as_echo "$isc_cv_have_in6_pktinfo" >&6; }
36507    case "$isc_cv_have_in6_pktinfo" in
36508     yes)
36509
36510$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
36511
36512    esac
36513
36514
36515    # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
36516    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
36517$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
36518if ${isc_cv_have_sin6_scope_id+:} false; then :
36519  $as_echo_n "(cached) " >&6
36520else
36521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36522/* end confdefs.h.  */
36523
36524		    #include <sys/types.h>
36525		    #include <sys/socket.h>
36526		    #include <netinet/in.h>
36527		    $isc_netinetin6_hack
36528		    $isc_netinet6in6_hack
36529
36530int
36531main ()
36532{
36533
36534		    struct sockaddr_in6 xyzzy;
36535		    xyzzy.sin6_scope_id = 0;
36536
36537
36538  ;
36539  return 0;
36540}
36541_ACEOF
36542if ac_fn_c_try_compile "$LINENO"; then :
36543  isc_cv_have_sin6_scope_id=yes
36544else
36545  isc_cv_have_sin6_scope_id=no
36546
36547fi
36548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36549
36550fi
36551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
36552$as_echo "$isc_cv_have_sin6_scope_id" >&6; }
36553
36554    case "$isc_cv_have_sin6_scope_id" in
36555     yes)
36556
36557$as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
36558
36559    esac
36560esac
36561
36562
36563# We need this check run even without isc_cv_found_ipv6=yes
36564
36565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
36566$as_echo_n "checking for in6addr_any... " >&6; }
36567if ${isc_cv_in6addr_any_links+:} false; then :
36568  $as_echo_n "(cached) " >&6
36569else
36570
36571	SAVED_LIBS="$LIBS"
36572	LIBS="$LDADD_LIBNTP $LIBS"
36573	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36574/* end confdefs.h.  */
36575$ac_includes_default
36576		    #include <sys/socket.h>
36577		    #include <netinet/in.h>
36578		    $isc_netinetin6_hack
36579		    $isc_netinet6in6_hack
36580
36581int
36582main ()
36583{
36584
36585		    printf("%x", in6addr_any.s6_addr[15]);
36586
36587
36588  ;
36589  return 0;
36590}
36591_ACEOF
36592if ac_fn_c_try_link "$LINENO"; then :
36593  isc_cv_in6addr_any_links=yes
36594else
36595  isc_cv_in6addr_any_links=no
36596
36597fi
36598rm -f core conftest.err conftest.$ac_objext \
36599    conftest$ac_exeext conftest.$ac_ext
36600	LIBS="$SAVED_LIBS"
36601	{ SAVED_LIBS=; unset SAVED_LIBS;}
36602
36603
36604fi
36605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
36606$as_echo "$isc_cv_in6addr_any_links" >&6; }
36607
36608case "$isc_cv_in6addr_any_links" in
36609 no)
36610
36611$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
36612
36613esac
36614
36615
36616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
36617$as_echo_n "checking for struct if_laddrconf... " >&6; }
36618if ${isc_cv_struct_if_laddrconf+:} false; then :
36619  $as_echo_n "(cached) " >&6
36620else
36621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36622/* end confdefs.h.  */
36623
36624		#include <sys/types.h>
36625		#include <net/if6.h>
36626
36627int
36628main ()
36629{
36630
36631		struct if_laddrconf a;
36632
36633
36634  ;
36635  return 0;
36636}
36637_ACEOF
36638if ac_fn_c_try_compile "$LINENO"; then :
36639  isc_cv_struct_if_laddrconf=yes
36640else
36641  isc_cv_struct_if_laddrconf=no
36642
36643fi
36644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36645
36646fi
36647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
36648$as_echo "$isc_cv_struct_if_laddrconf" >&6; }
36649
36650case "$isc_cv_struct_if_laddrconf" in
36651 yes)
36652
36653$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
36654
36655esac
36656
36657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
36658$as_echo_n "checking for struct if_laddrreq... " >&6; }
36659if ${isc_cv_struct_if_laddrreq+:} false; then :
36660  $as_echo_n "(cached) " >&6
36661else
36662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36663/* end confdefs.h.  */
36664
36665		#include <sys/types.h>
36666		#include <net/if6.h>
36667
36668int
36669main ()
36670{
36671
36672		struct if_laddrreq a;
36673
36674
36675  ;
36676  return 0;
36677}
36678_ACEOF
36679if ac_fn_c_try_compile "$LINENO"; then :
36680  isc_cv_struct_if_laddrreq=yes
36681else
36682  isc_cv_struct_if_laddrreq=no
36683
36684fi
36685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36686
36687fi
36688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
36689$as_echo "$isc_cv_struct_if_laddrreq" >&6; }
36690
36691case "$isc_cv_struct_if_laddrreq" in
36692 yes)
36693
36694$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
36695
36696esac
36697
36698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
36699$as_echo_n "checking for multicast IP support... " >&6; }
36700if ${ntp_cv_multicast+:} false; then :
36701  $as_echo_n "(cached) " >&6
36702else
36703
36704	ntp_cv_multicast=no
36705	case "$host" in
36706	 i386-sequent-sysv4)
36707	    ;;
36708	 *)
36709	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36710/* end confdefs.h.  */
36711
36712			#ifdef HAVE_NETINET_IN_H
36713			# include <netinet/in.h>
36714			#endif
36715
36716int
36717main ()
36718{
36719
36720			struct ip_mreq ipmr;
36721			ipmr.imr_interface.s_addr = 0;
36722
36723
36724  ;
36725  return 0;
36726}
36727_ACEOF
36728if ac_fn_c_try_compile "$LINENO"; then :
36729  ntp_cv_multicast=yes
36730fi
36731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36732	    ;;
36733	esac
36734
36735
36736fi
36737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
36738$as_echo "$ntp_cv_multicast" >&6; }
36739case "$ntp_cv_multicast" in
36740 yes)
36741
36742$as_echo "#define MCAST 1" >>confdefs.h
36743
36744    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
36745$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
36746if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
36747  $as_echo_n "(cached) " >&6
36748else
36749
36750	    case "$host" in
36751	     *-*-netbsd*|*-*-*linux*)
36752		ntp_cv_typeof_ip_multicast_loop=u_int
36753		;;
36754	     *)
36755		ntp_cv_typeof_ip_multicast_loop=u_char
36756		;;
36757	    esac
36758
36759
36760fi
36761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
36762$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
36763
36764cat >>confdefs.h <<_ACEOF
36765#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
36766_ACEOF
36767
36768esac
36769
36770# Check whether --enable-getifaddrs was given.
36771if test "${enable_getifaddrs+set}" = set; then :
36772  enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
36773else
36774  want_getifaddrs="yes"
36775
36776fi
36777
36778
36779case $want_getifaddrs in
36780 glibc)
36781    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
36782$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
36783esac
36784case $want_getifaddrs in
36785 no)
36786    ;;
36787 *)
36788    SAVED_LIBS="$LIBS"
36789    LIBS="$LDADD_LIBNTP $LIBS"
36790    for ac_func in getifaddrs
36791do :
36792  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
36793if test "x$ac_cv_func_getifaddrs" = xyes; then :
36794  cat >>confdefs.h <<_ACEOF
36795#define HAVE_GETIFADDRS 1
36796_ACEOF
36797
36798fi
36799done
36800
36801    LIBS="$SAVED_LIBS"
36802    { SAVED_LIBS=; unset SAVED_LIBS;}
36803    ;;
36804esac
36805
36806#
36807# Check for if_nametoindex() for IPv6 scoped addresses support
36808#
36809case "$host" in
36810 *-hp-hpux*)
36811    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
36812$as_echo_n "checking for library containing if_nametoindex... " >&6; }
36813if ${ac_cv_search_if_nametoindex+:} false; then :
36814  $as_echo_n "(cached) " >&6
36815else
36816  ac_func_search_save_LIBS=$LIBS
36817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36818/* end confdefs.h.  */
36819
36820/* Override any GCC internal prototype to avoid an error.
36821   Use char because int might match the return type of a GCC
36822   builtin and then its argument prototype would still apply.  */
36823#ifdef __cplusplus
36824extern "C"
36825#endif
36826char if_nametoindex ();
36827int
36828main ()
36829{
36830return if_nametoindex ();
36831  ;
36832  return 0;
36833}
36834_ACEOF
36835for ac_lib in '' ipv6; do
36836  if test -z "$ac_lib"; then
36837    ac_res="none required"
36838  else
36839    ac_res=-l$ac_lib
36840    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36841  fi
36842  if ac_fn_c_try_link "$LINENO"; then :
36843  ac_cv_search_if_nametoindex=$ac_res
36844fi
36845rm -f core conftest.err conftest.$ac_objext \
36846    conftest$ac_exeext
36847  if ${ac_cv_search_if_nametoindex+:} false; then :
36848  break
36849fi
36850done
36851if ${ac_cv_search_if_nametoindex+:} false; then :
36852
36853else
36854  ac_cv_search_if_nametoindex=no
36855fi
36856rm conftest.$ac_ext
36857LIBS=$ac_func_search_save_LIBS
36858fi
36859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
36860$as_echo "$ac_cv_search_if_nametoindex" >&6; }
36861ac_res=$ac_cv_search_if_nametoindex
36862if test "$ac_res" != no; then :
36863  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36864
36865fi
36866
36867esac
36868SAVED_LIBS="$LIBS"
36869LIBS="$LDADD_LIBNTP $LIBS"
36870for ac_func in if_nametoindex
36871do :
36872  ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
36873if test "x$ac_cv_func_if_nametoindex" = xyes; then :
36874  cat >>confdefs.h <<_ACEOF
36875#define HAVE_IF_NAMETOINDEX 1
36876_ACEOF
36877
36878fi
36879done
36880
36881LIBS="$SAVED_LIBS"
36882{ SAVED_LIBS=; unset SAVED_LIBS;}
36883case "$ac_cv_func_if_nametoindex" in
36884 yes)
36885
36886$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
36887
36888esac
36889
36890
36891
36892
36893#
36894# Look for a sysctl call to get the list of network interfaces.
36895#
36896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
36897$as_echo_n "checking for interface list sysctl... " >&6; }
36898if ${ntp_cv_iflist_sysctl+:} false; then :
36899  $as_echo_n "(cached) " >&6
36900else
36901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36902/* end confdefs.h.  */
36903
36904	    #include <sys/param.h>
36905	    #include <sys/sysctl.h>
36906	    #include <sys/socket.h>
36907	    #ifndef NET_RT_IFLIST
36908	    # error
36909	    #endif
36910
36911_ACEOF
36912if ac_fn_c_try_cpp "$LINENO"; then :
36913  ntp_cv_iflist_sysctl=yes
36914else
36915  ntp_cv_iflist_sysctl=no
36916
36917fi
36918rm -f conftest.err conftest.i conftest.$ac_ext
36919
36920fi
36921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5
36922$as_echo "$ntp_cv_iflist_sysctl" >&6; }
36923case "$ntp_cv_iflist_sysctl" in
36924 yes)
36925
36926$as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
36927
36928esac
36929
36930###
36931
36932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
36933$as_echo_n "checking if we want the saveconfig mechanism... " >&6; }
36934# Check whether --enable-saveconfig was given.
36935if test "${enable_saveconfig+set}" = set; then :
36936  enableval=$enable_saveconfig; ntp_ok=$enableval
36937else
36938  ntp_ok=yes
36939
36940fi
36941
36942ntp_saveconfig_enabled=0
36943case "$ntp_ok" in
36944 yes)
36945    ntp_saveconfig_enabled=1
36946
36947$as_echo "#define SAVECONFIG 1" >>confdefs.h
36948
36949    ;;
36950esac
36951 if test x$ntp_saveconfig_enabled = x1; then
36952  SAVECONFIG_ENABLED_TRUE=
36953  SAVECONFIG_ENABLED_FALSE='#'
36954else
36955  SAVECONFIG_ENABLED_TRUE='#'
36956  SAVECONFIG_ENABLED_FALSE=
36957fi
36958
36959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
36960$as_echo "$ntp_ok" >&6; }
36961
36962###
36963
36964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5
36965$as_echo_n "checking if we want the experimental leap smear code... " >&6; }
36966# Check whether --enable-leap-smear was given.
36967if test "${enable_leap_smear+set}" = set; then :
36968  enableval=$enable_leap_smear; ntp_ok=$enableval
36969else
36970  ntp_ok=no
36971
36972fi
36973
36974ntp_leap_smear_enabled=0
36975case "$ntp_ok" in
36976 yes)
36977    ntp_leap_smear_enabled=1
36978
36979$as_echo "#define LEAP_SMEAR 1" >>confdefs.h
36980
36981
36982    HAVE_LEAPSMEARINTERVAL="leapsmearinterval 0"
36983    ;;
36984esac
36985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
36986$as_echo "$ntp_ok" >&6; }
36987
36988###
36989
36990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want dynamic interleave support" >&5
36991$as_echo_n "checking if we want dynamic interleave support... " >&6; }
36992# Check whether --enable-dynamic-interleave was given.
36993if test "${enable_dynamic_interleave+set}" = set; then :
36994  enableval=$enable_dynamic_interleave; ntp_ok=$enableval
36995else
36996  ntp_ok=no
36997
36998fi
36999
37000ntp_dynamic_interleave=0
37001case "$ntp_ok" in
37002 yes)
37003    ntp_dynamic_interleave=1
37004    ;;
37005esac
37006
37007cat >>confdefs.h <<_ACEOF
37008#define DYNAMIC_INTERLEAVE $ntp_dynamic_interleave
37009_ACEOF
37010
37011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
37012$as_echo "$ntp_ok" >&6; }
37013
37014
37015# We may not need have_unity
37016have_unity=false
37017# Extract the first word of "ruby", so it can be a program name with args.
37018set dummy ruby; ac_word=$2
37019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37020$as_echo_n "checking for $ac_word... " >&6; }
37021if ${ac_cv_path_PATH_RUBY+:} false; then :
37022  $as_echo_n "(cached) " >&6
37023else
37024  case $PATH_RUBY in
37025  [\\/]* | ?:[\\/]*)
37026  ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
37027  ;;
37028  *)
37029  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37030for as_dir in $PATH
37031do
37032  IFS=$as_save_IFS
37033  test -z "$as_dir" && as_dir=.
37034    for ac_exec_ext in '' $ac_executable_extensions; do
37035  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37036    ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
37037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37038    break 2
37039  fi
37040done
37041  done
37042IFS=$as_save_IFS
37043
37044  ;;
37045esac
37046fi
37047PATH_RUBY=$ac_cv_path_PATH_RUBY
37048if test -n "$PATH_RUBY"; then
37049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
37050$as_echo "$PATH_RUBY" >&6; }
37051else
37052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37053$as_echo "no" >&6; }
37054fi
37055
37056
37057case "$PATH_RUBY" in
37058 /*)
37059    have_unity=true
37060    ;;
37061 *) PATH_RUBY="false"
37062    ;;
37063esac
37064# We may not need UNITYBUILD_AVAILABLE
37065 if $have_unity; then
37066  UNITYBUILD_AVAILABLE_TRUE=
37067  UNITYBUILD_AVAILABLE_FALSE='#'
37068else
37069  UNITYBUILD_AVAILABLE_TRUE='#'
37070  UNITYBUILD_AVAILABLE_FALSE=
37071fi
37072
37073
37074
37075
37076
37077gta=false
37078
37079# Check whether --with-gtest was given.
37080if test "${with_gtest+set}" = set; then :
37081  withval=$with_gtest; try_gtest=$withval
37082else
37083  try_gtest=yes
37084
37085fi
37086
37087case "$try_gtest" in
37088 yes)
37089    # Extract the first word of "gtest-config", so it can be a program name with args.
37090set dummy gtest-config; ac_word=$2
37091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37092$as_echo_n "checking for $ac_word... " >&6; }
37093if ${ac_cv_path_GTEST_CONFIG+:} false; then :
37094  $as_echo_n "(cached) " >&6
37095else
37096  case $GTEST_CONFIG in
37097  [\\/]* | ?:[\\/]*)
37098  ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
37099  ;;
37100  *)
37101  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37102for as_dir in $PATH
37103do
37104  IFS=$as_save_IFS
37105  test -z "$as_dir" && as_dir=.
37106    for ac_exec_ext in '' $ac_executable_extensions; do
37107  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37108    ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37109    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37110    break 2
37111  fi
37112done
37113  done
37114IFS=$as_save_IFS
37115
37116  ;;
37117esac
37118fi
37119GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
37120if test -n "$GTEST_CONFIG"; then
37121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
37122$as_echo "$GTEST_CONFIG" >&6; }
37123else
37124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37125$as_echo "no" >&6; }
37126fi
37127
37128
37129    { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
37130    case x${GTEST_CONFIG} in
37131     x) ;;
37132     *)
37133	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
37134$as_echo_n "checking gtest version... " >&6; }
37135	gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
37136	case "$gtest_version_test" in
37137	 toolow*)
37138	    ;;
37139	 *)
37140	    GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
37141	    GTEST_LIBS=`$GTEST_CONFIG --libs`
37142	    GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
37143	    GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`
37144
37145
37146
37147
37148	    gta=true
37149	    ;;
37150	esac
37151	gtest_version=`$GTEST_CONFIG --version`
37152	case "$gta" in
37153	 true)
37154	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
37155$as_echo "($gtest_version) ok" >&6; }
37156	    ;;
37157	 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
37158$as_echo "($gtest_version) not ok" >&6; }
37159	    ;;
37160	esac
37161	{ gtest_version_test=; unset gtest_version_test;}
37162	{ gtest_version=; unset gtest_version;}
37163    esac
37164esac
37165 if $gta; then
37166  GTEST_AVAILABLE_TRUE=
37167  GTEST_AVAILABLE_FALSE='#'
37168else
37169  GTEST_AVAILABLE_TRUE='#'
37170  GTEST_AVAILABLE_FALSE=
37171fi
37172
37173
37174
37175
37176
37177case "$build" in
37178 $host)	cross=0 ;;
37179 *)	cross=1 ;;
37180esac
37181
37182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
37183$as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; }
37184# Check whether --enable-problem-tests was given.
37185if test "${enable_problem_tests+set}" = set; then :
37186  enableval=$enable_problem_tests; ntp_ept=$enableval
37187else
37188  ntp_ept=yes
37189
37190fi
37191
37192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ept" >&5
37193$as_echo "$ntp_ept" >&6; }
37194
37195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_restrict" >&5
37196$as_echo_n "checking if we can run test-ntp_restrict... " >&6; }
37197ntp_test_ntp_restrict="no"
37198case "$ntp_ept:$cross:$host" in
37199 no:0:*-*-freebsd6.4) ;;
37200 no:0:*-*-hpux11.23*) ;;
37201 no:0:*-*-solaris*) ;;
37202 *) ntp_test_ntp_restrict="yes" ;;
37203esac
37204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_restrict" >&5
37205$as_echo "$ntp_test_ntp_restrict" >&6; }
37206 if test x$ntp_test_ntp_restrict = xyes; then
37207  BUILD_TEST_NTP_RESTRICT_TRUE=
37208  BUILD_TEST_NTP_RESTRICT_FALSE='#'
37209else
37210  BUILD_TEST_NTP_RESTRICT_TRUE='#'
37211  BUILD_TEST_NTP_RESTRICT_FALSE=
37212fi
37213
37214
37215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_scanner" >&5
37216$as_echo_n "checking if we can run test-ntp_scanner... " >&6; }
37217ntp_test_ntp_scanner="no"
37218case "$ntp_ept:$cross:$host" in
37219 no:0:*-*-freebsd6.4) ;;
37220 no:0:*-*-solaris*) ;;
37221 *) ntp_test_ntp_scanner="yes" ;;
37222esac
37223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_scanner" >&5
37224$as_echo "$ntp_test_ntp_scanner" >&6; }
37225 if test x$ntp_test_ntp_scanner = xyes; then
37226  BUILD_TEST_NTP_SCANNER_TRUE=
37227  BUILD_TEST_NTP_SCANNER_FALSE='#'
37228else
37229  BUILD_TEST_NTP_SCANNER_TRUE='#'
37230  BUILD_TEST_NTP_SCANNER_FALSE=
37231fi
37232
37233
37234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_signd" >&5
37235$as_echo_n "checking if we can run test-ntp_signd... " >&6; }
37236ntp_test_ntp_signd="no"
37237case "$ntp_ept:$cross:$host" in
37238 no:0:*-*-freebsd6.4) ;;
37239 no:0:*-*-solaris*) ;;
37240 *) ntp_test_ntp_signd="yes" ;;
37241esac
37242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_signd" >&5
37243$as_echo "$ntp_test_ntp_signd" >&6; }
37244 if test x$ntp_test_ntp_signd = xyes; then
37245  BUILD_TEST_NTP_SIGND_TRUE=
37246  BUILD_TEST_NTP_SIGND_FALSE='#'
37247else
37248  BUILD_TEST_NTP_SIGND_TRUE='#'
37249  BUILD_TEST_NTP_SIGND_FALSE=
37250fi
37251
37252
37253
37254
37255###
37256
37257
37258  prefix_NONE=
37259  exec_prefix_NONE=
37260  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
37261  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
37262  eval ac_define_dir="\"$sysconfdir\""
37263  eval ac_define_dir="\"$ac_define_dir\""
37264  NTP_KEYSDIR="$ac_define_dir"
37265
37266
37267cat >>confdefs.h <<_ACEOF
37268#define NTP_KEYSDIR "$ac_define_dir"
37269_ACEOF
37270
37271  test "$prefix_NONE" && prefix=NONE
37272  test "$exec_prefix_NONE" && exec_prefix=NONE
37273
37274
37275ac_config_files="$ac_config_files Makefile"
37276
37277ac_config_files="$ac_config_files adjtimed/Makefile"
37278
37279ac_config_files="$ac_config_files clockstuff/Makefile"
37280
37281ac_config_files="$ac_config_files include/Makefile"
37282
37283ac_config_files="$ac_config_files include/isc/Makefile"
37284
37285ac_config_files="$ac_config_files kernel/Makefile"
37286
37287ac_config_files="$ac_config_files kernel/sys/Makefile"
37288
37289ac_config_files="$ac_config_files libntp/Makefile"
37290
37291ac_config_files="$ac_config_files libparse/Makefile"
37292
37293ac_config_files="$ac_config_files ntpd/Makefile"
37294
37295ac_config_files="$ac_config_files ntpd/complete.conf"
37296
37297ac_config_files="$ac_config_files ntpdate/Makefile"
37298
37299ac_config_files="$ac_config_files ntpdc/Makefile"
37300
37301ac_config_files="$ac_config_files ntpdc/nl.pl"
37302
37303ac_config_files="$ac_config_files ntpq/Makefile"
37304
37305ac_config_files="$ac_config_files ntpsnmpd/Makefile"
37306
37307ac_config_files="$ac_config_files parseutil/Makefile"
37308
37309ac_config_files="$ac_config_files scripts/Makefile"
37310
37311ac_config_files="$ac_config_files scripts/build/Makefile"
37312
37313ac_config_files="$ac_config_files scripts/build/genAuthors"
37314
37315ac_config_files="$ac_config_files scripts/build/mkver"
37316
37317ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"
37318
37319ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"
37320
37321ac_config_files="$ac_config_files scripts/lib/Makefile"
37322
37323ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"
37324
37325ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
37326
37327ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"
37328
37329ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
37330
37331ac_config_files="$ac_config_files scripts/ntptrace/Makefile"
37332
37333ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"
37334
37335ac_config_files="$ac_config_files scripts/ntpver"
37336
37337ac_config_files="$ac_config_files scripts/plot_summary"
37338
37339ac_config_files="$ac_config_files scripts/summary"
37340
37341ac_config_files="$ac_config_files scripts/update-leap/Makefile"
37342
37343ac_config_files="$ac_config_files scripts/update-leap/update-leap"
37344
37345ac_config_files="$ac_config_files tests/Makefile"
37346
37347ac_config_files="$ac_config_files tests/bug-2803/Makefile"
37348
37349ac_config_files="$ac_config_files tests/libntp/Makefile"
37350
37351ac_config_files="$ac_config_files tests/ntpd/Makefile"
37352
37353ac_config_files="$ac_config_files tests/ntpq/Makefile"
37354
37355ac_config_files="$ac_config_files tests/sandbox/Makefile"
37356
37357ac_config_files="$ac_config_files tests/sec-2853/Makefile"
37358
37359ac_config_files="$ac_config_files util/Makefile"
37360
37361
37362perllibdir="${datadir}/ntp/lib"
37363
37364  prefix_NONE=
37365  exec_prefix_NONE=
37366  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
37367  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
37368  eval ac_define_dir="\"$perllibdir\""
37369  eval ac_define_dir="\"$ac_define_dir\""
37370  PERLLIBDIR="$ac_define_dir"
37371
37372
37373cat >>confdefs.h <<_ACEOF
37374#define PERLLIBDIR "$ac_define_dir"
37375_ACEOF
37376
37377  test "$prefix_NONE" && prefix=NONE
37378  test "$exec_prefix_NONE" && exec_prefix=NONE
37379
37380
37381calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"
37382
37383ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"
37384
37385ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"
37386
37387ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"
37388
37389summary_opts="$srcdir/scripts/summary-opts"
37390
37391plot_summary_opts="$srcdir/scripts/plot_summary-opts"
37392
37393
37394
37395
37396subdirs="$subdirs sntp"
37397
37398
37399cat >confcache <<\_ACEOF
37400# This file is a shell script that caches the results of configure
37401# tests run on this system so they can be shared between configure
37402# scripts and configure runs, see configure's option --config-cache.
37403# It is not useful on other systems.  If it contains results you don't
37404# want to keep, you may remove or edit it.
37405#
37406# config.status only pays attention to the cache file if you give it
37407# the --recheck option to rerun configure.
37408#
37409# `ac_cv_env_foo' variables (set or unset) will be overridden when
37410# loading this file, other *unset* `ac_cv_foo' will be assigned the
37411# following values.
37412
37413_ACEOF
37414
37415# The following way of writing the cache mishandles newlines in values,
37416# but we know of no workaround that is simple, portable, and efficient.
37417# So, we kill variables containing newlines.
37418# Ultrix sh set writes to stderr and can't be redirected directly,
37419# and sets the high bit in the cache file unless we assign to the vars.
37420(
37421  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
37422    eval ac_val=\$$ac_var
37423    case $ac_val in #(
37424    *${as_nl}*)
37425      case $ac_var in #(
37426      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
37427$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
37428      esac
37429      case $ac_var in #(
37430      _ | IFS | as_nl) ;; #(
37431      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
37432      *) { eval $ac_var=; unset $ac_var;} ;;
37433      esac ;;
37434    esac
37435  done
37436
37437  (set) 2>&1 |
37438    case $as_nl`(ac_space=' '; set) 2>&1` in #(
37439    *${as_nl}ac_space=\ *)
37440      # `set' does not quote correctly, so add quotes: double-quote
37441      # substitution turns \\\\ into \\, and sed turns \\ into \.
37442      sed -n \
37443	"s/'/'\\\\''/g;
37444	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37445      ;; #(
37446    *)
37447      # `set' quotes correctly as required by POSIX, so do not add quotes.
37448      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
37449      ;;
37450    esac |
37451    sort
37452) |
37453  sed '
37454     /^ac_cv_env_/b end
37455     t clear
37456     :clear
37457     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37458     t end
37459     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37460     :end' >>confcache
37461if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
37462  if test -w "$cache_file"; then
37463    if test "x$cache_file" != "x/dev/null"; then
37464      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
37465$as_echo "$as_me: updating cache $cache_file" >&6;}
37466      if test ! -f "$cache_file" || test -h "$cache_file"; then
37467	cat confcache >"$cache_file"
37468      else
37469        case $cache_file in #(
37470        */* | ?:*)
37471	  mv -f confcache "$cache_file"$$ &&
37472	  mv -f "$cache_file"$$ "$cache_file" ;; #(
37473        *)
37474	  mv -f confcache "$cache_file" ;;
37475	esac
37476      fi
37477    fi
37478  else
37479    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
37480$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
37481  fi
37482fi
37483rm -f confcache
37484
37485test "x$prefix" = xNONE && prefix=$ac_default_prefix
37486# Let make expand exec_prefix.
37487test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37488
37489DEFS=-DHAVE_CONFIG_H
37490
37491ac_libobjs=
37492ac_ltlibobjs=
37493U=
37494for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37495  # 1. Remove the extension, and $U if already installed.
37496  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
37497  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
37498  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
37499  #    will be set to the directory where LIBOBJS objects are built.
37500  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
37501  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
37502done
37503LIBOBJS=$ac_libobjs
37504
37505LTLIBOBJS=$ac_ltlibobjs
37506
37507
37508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
37509$as_echo_n "checking that generated files are newer than configure... " >&6; }
37510   if test -n "$am_sleep_pid"; then
37511     # Hide warnings about reused PIDs.
37512     wait $am_sleep_pid 2>/dev/null
37513   fi
37514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
37515$as_echo "done" >&6; }
37516 if test -n "$EXEEXT"; then
37517  am__EXEEXT_TRUE=
37518  am__EXEEXT_FALSE='#'
37519else
37520  am__EXEEXT_TRUE='#'
37521  am__EXEEXT_FALSE=
37522fi
37523
37524if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
37525  as_fn_error $? "conditional \"AMDEP\" was never defined.
37526Usually this means the macro was only invoked conditionally." "$LINENO" 5
37527fi
37528if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37529  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
37530Usually this means the macro was only invoked conditionally." "$LINENO" 5
37531fi
37532if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37533  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
37534Usually this means the macro was only invoked conditionally." "$LINENO" 5
37535fi
37536
37537if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
37538  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
37539Usually this means the macro was only invoked conditionally." "$LINENO" 5
37540fi
37541if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
37542  as_fn_error $? "conditional \"VPATH_HACK\" was never defined.
37543Usually this means the macro was only invoked conditionally." "$LINENO" 5
37544fi
37545if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
37546  as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
37547Usually this means the macro was only invoked conditionally." "$LINENO" 5
37548fi
37549if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
37550  as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
37551Usually this means the macro was only invoked conditionally." "$LINENO" 5
37552fi
37553if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
37554  as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
37555Usually this means the macro was only invoked conditionally." "$LINENO" 5
37556fi
37557if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
37558  as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
37559Usually this means the macro was only invoked conditionally." "$LINENO" 5
37560fi
37561if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
37562  as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
37563Usually this means the macro was only invoked conditionally." "$LINENO" 5
37564fi
37565if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
37566  as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
37567Usually this means the macro was only invoked conditionally." "$LINENO" 5
37568fi
37569if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
37570  as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
37571Usually this means the macro was only invoked conditionally." "$LINENO" 5
37572fi
37573if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
37574  as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
37575Usually this means the macro was only invoked conditionally." "$LINENO" 5
37576fi
37577if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
37578  as_fn_error $? "conditional \"PTHREADS\" was never defined.
37579Usually this means the macro was only invoked conditionally." "$LINENO" 5
37580fi
37581if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
37582  as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
37583Usually this means the macro was only invoked conditionally." "$LINENO" 5
37584fi
37585if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
37586  as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined.
37587Usually this means the macro was only invoked conditionally." "$LINENO" 5
37588fi
37589if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
37590  as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
37591Usually this means the macro was only invoked conditionally." "$LINENO" 5
37592fi
37593if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
37594  as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
37595Usually this means the macro was only invoked conditionally." "$LINENO" 5
37596fi
37597if test -z "${BUILD_TEST_NTP_RESTRICT_TRUE}" && test -z "${BUILD_TEST_NTP_RESTRICT_FALSE}"; then
37598  as_fn_error $? "conditional \"BUILD_TEST_NTP_RESTRICT\" was never defined.
37599Usually this means the macro was only invoked conditionally." "$LINENO" 5
37600fi
37601if test -z "${BUILD_TEST_NTP_SCANNER_TRUE}" && test -z "${BUILD_TEST_NTP_SCANNER_FALSE}"; then
37602  as_fn_error $? "conditional \"BUILD_TEST_NTP_SCANNER\" was never defined.
37603Usually this means the macro was only invoked conditionally." "$LINENO" 5
37604fi
37605if test -z "${BUILD_TEST_NTP_SIGND_TRUE}" && test -z "${BUILD_TEST_NTP_SIGND_FALSE}"; then
37606  as_fn_error $? "conditional \"BUILD_TEST_NTP_SIGND\" was never defined.
37607Usually this means the macro was only invoked conditionally." "$LINENO" 5
37608fi
37609
37610: "${CONFIG_STATUS=./config.status}"
37611ac_write_fail=0
37612ac_clean_files_save=$ac_clean_files
37613ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37614{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
37615$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
37616as_write_fail=0
37617cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
37618#! $SHELL
37619# Generated by $as_me.
37620# Run this file to recreate the current configuration.
37621# Compiler output produced by configure, useful for debugging
37622# configure, is in config.log if it exists.
37623
37624debug=false
37625ac_cs_recheck=false
37626ac_cs_silent=false
37627
37628SHELL=\${CONFIG_SHELL-$SHELL}
37629export SHELL
37630_ASEOF
37631cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
37632## -------------------- ##
37633## M4sh Initialization. ##
37634## -------------------- ##
37635
37636# Be more Bourne compatible
37637DUALCASE=1; export DUALCASE # for MKS sh
37638if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
37639  emulate sh
37640  NULLCMD=:
37641  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
37642  # is contrary to our usage.  Disable this feature.
37643  alias -g '${1+"$@"}'='"$@"'
37644  setopt NO_GLOB_SUBST
37645else
37646  case `(set -o) 2>/dev/null` in #(
37647  *posix*) :
37648    set -o posix ;; #(
37649  *) :
37650     ;;
37651esac
37652fi
37653
37654
37655as_nl='
37656'
37657export as_nl
37658# Printing a long string crashes Solaris 7 /usr/bin/printf.
37659as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
37660as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37661as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
37662# Prefer a ksh shell builtin over an external printf program on Solaris,
37663# but without wasting forks for bash or zsh.
37664if test -z "$BASH_VERSION$ZSH_VERSION" \
37665    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
37666  as_echo='print -r --'
37667  as_echo_n='print -rn --'
37668elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
37669  as_echo='printf %s\n'
37670  as_echo_n='printf %s'
37671else
37672  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
37673    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
37674    as_echo_n='/usr/ucb/echo -n'
37675  else
37676    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
37677    as_echo_n_body='eval
37678      arg=$1;
37679      case $arg in #(
37680      *"$as_nl"*)
37681	expr "X$arg" : "X\\(.*\\)$as_nl";
37682	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
37683      esac;
37684      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
37685    '
37686    export as_echo_n_body
37687    as_echo_n='sh -c $as_echo_n_body as_echo'
37688  fi
37689  export as_echo_body
37690  as_echo='sh -c $as_echo_body as_echo'
37691fi
37692
37693# The user is always right.
37694if test "${PATH_SEPARATOR+set}" != set; then
37695  PATH_SEPARATOR=:
37696  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
37697    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
37698      PATH_SEPARATOR=';'
37699  }
37700fi
37701
37702
37703# IFS
37704# We need space, tab and new line, in precisely that order.  Quoting is
37705# there to prevent editors from complaining about space-tab.
37706# (If _AS_PATH_WALK were called with IFS unset, it would disable word
37707# splitting by setting IFS to empty value.)
37708IFS=" ""	$as_nl"
37709
37710# Find who we are.  Look in the path if we contain no directory separator.
37711as_myself=
37712case $0 in #((
37713  *[\\/]* ) as_myself=$0 ;;
37714  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37715for as_dir in $PATH
37716do
37717  IFS=$as_save_IFS
37718  test -z "$as_dir" && as_dir=.
37719    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37720  done
37721IFS=$as_save_IFS
37722
37723     ;;
37724esac
37725# We did not find ourselves, most probably we were run as `sh COMMAND'
37726# in which case we are not to be found in the path.
37727if test "x$as_myself" = x; then
37728  as_myself=$0
37729fi
37730if test ! -f "$as_myself"; then
37731  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
37732  exit 1
37733fi
37734
37735# Unset variables that we do not need and which cause bugs (e.g. in
37736# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
37737# suppresses any "Segmentation fault" message there.  '((' could
37738# trigger a bug in pdksh 5.2.14.
37739for as_var in BASH_ENV ENV MAIL MAILPATH
37740do eval test x\${$as_var+set} = xset \
37741  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
37742done
37743PS1='$ '
37744PS2='> '
37745PS4='+ '
37746
37747# NLS nuisances.
37748LC_ALL=C
37749export LC_ALL
37750LANGUAGE=C
37751export LANGUAGE
37752
37753# CDPATH.
37754(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37755
37756
37757# as_fn_error STATUS ERROR [LINENO LOG_FD]
37758# ----------------------------------------
37759# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37760# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
37761# script with STATUS, using 1 if that was 0.
37762as_fn_error ()
37763{
37764  as_status=$1; test $as_status -eq 0 && as_status=1
37765  if test "$4"; then
37766    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37767    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
37768  fi
37769  $as_echo "$as_me: error: $2" >&2
37770  as_fn_exit $as_status
37771} # as_fn_error
37772
37773
37774# as_fn_set_status STATUS
37775# -----------------------
37776# Set $? to STATUS, without forking.
37777as_fn_set_status ()
37778{
37779  return $1
37780} # as_fn_set_status
37781
37782# as_fn_exit STATUS
37783# -----------------
37784# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
37785as_fn_exit ()
37786{
37787  set +e
37788  as_fn_set_status $1
37789  exit $1
37790} # as_fn_exit
37791
37792# as_fn_unset VAR
37793# ---------------
37794# Portably unset VAR.
37795as_fn_unset ()
37796{
37797  { eval $1=; unset $1;}
37798}
37799as_unset=as_fn_unset
37800# as_fn_append VAR VALUE
37801# ----------------------
37802# Append the text in VALUE to the end of the definition contained in VAR. Take
37803# advantage of any shell optimizations that allow amortized linear growth over
37804# repeated appends, instead of the typical quadratic growth present in naive
37805# implementations.
37806if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37807  eval 'as_fn_append ()
37808  {
37809    eval $1+=\$2
37810  }'
37811else
37812  as_fn_append ()
37813  {
37814    eval $1=\$$1\$2
37815  }
37816fi # as_fn_append
37817
37818# as_fn_arith ARG...
37819# ------------------
37820# Perform arithmetic evaluation on the ARGs, and store the result in the
37821# global $as_val. Take advantage of shells that can avoid forks. The arguments
37822# must be portable across $(()) and expr.
37823if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
37824  eval 'as_fn_arith ()
37825  {
37826    as_val=$(( $* ))
37827  }'
37828else
37829  as_fn_arith ()
37830  {
37831    as_val=`expr "$@" || test $? -eq 1`
37832  }
37833fi # as_fn_arith
37834
37835
37836if expr a : '\(a\)' >/dev/null 2>&1 &&
37837   test "X`expr 00001 : '.*\(...\)'`" = X001; then
37838  as_expr=expr
37839else
37840  as_expr=false
37841fi
37842
37843if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37844  as_basename=basename
37845else
37846  as_basename=false
37847fi
37848
37849if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37850  as_dirname=dirname
37851else
37852  as_dirname=false
37853fi
37854
37855as_me=`$as_basename -- "$0" ||
37856$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37857	 X"$0" : 'X\(//\)$' \| \
37858	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37859$as_echo X/"$0" |
37860    sed '/^.*\/\([^/][^/]*\)\/*$/{
37861	    s//\1/
37862	    q
37863	  }
37864	  /^X\/\(\/\/\)$/{
37865	    s//\1/
37866	    q
37867	  }
37868	  /^X\/\(\/\).*/{
37869	    s//\1/
37870	    q
37871	  }
37872	  s/.*/./; q'`
37873
37874# Avoid depending upon Character Ranges.
37875as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37876as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37877as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37878as_cr_digits='0123456789'
37879as_cr_alnum=$as_cr_Letters$as_cr_digits
37880
37881ECHO_C= ECHO_N= ECHO_T=
37882case `echo -n x` in #(((((
37883-n*)
37884  case `echo 'xy\c'` in
37885  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
37886  xy)  ECHO_C='\c';;
37887  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
37888       ECHO_T='	';;
37889  esac;;
37890*)
37891  ECHO_N='-n';;
37892esac
37893
37894rm -f conf$$ conf$$.exe conf$$.file
37895if test -d conf$$.dir; then
37896  rm -f conf$$.dir/conf$$.file
37897else
37898  rm -f conf$$.dir
37899  mkdir conf$$.dir 2>/dev/null
37900fi
37901if (echo >conf$$.file) 2>/dev/null; then
37902  if ln -s conf$$.file conf$$ 2>/dev/null; then
37903    as_ln_s='ln -s'
37904    # ... but there are two gotchas:
37905    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37906    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
37907    # In both cases, we have to default to `cp -pR'.
37908    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
37909      as_ln_s='cp -pR'
37910  elif ln conf$$.file conf$$ 2>/dev/null; then
37911    as_ln_s=ln
37912  else
37913    as_ln_s='cp -pR'
37914  fi
37915else
37916  as_ln_s='cp -pR'
37917fi
37918rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37919rmdir conf$$.dir 2>/dev/null
37920
37921
37922# as_fn_mkdir_p
37923# -------------
37924# Create "$as_dir" as a directory, including parents if necessary.
37925as_fn_mkdir_p ()
37926{
37927
37928  case $as_dir in #(
37929  -*) as_dir=./$as_dir;;
37930  esac
37931  test -d "$as_dir" || eval $as_mkdir_p || {
37932    as_dirs=
37933    while :; do
37934      case $as_dir in #(
37935      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37936      *) as_qdir=$as_dir;;
37937      esac
37938      as_dirs="'$as_qdir' $as_dirs"
37939      as_dir=`$as_dirname -- "$as_dir" ||
37940$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37941	 X"$as_dir" : 'X\(//\)[^/]' \| \
37942	 X"$as_dir" : 'X\(//\)$' \| \
37943	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37944$as_echo X"$as_dir" |
37945    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37946	    s//\1/
37947	    q
37948	  }
37949	  /^X\(\/\/\)[^/].*/{
37950	    s//\1/
37951	    q
37952	  }
37953	  /^X\(\/\/\)$/{
37954	    s//\1/
37955	    q
37956	  }
37957	  /^X\(\/\).*/{
37958	    s//\1/
37959	    q
37960	  }
37961	  s/.*/./; q'`
37962      test -d "$as_dir" && break
37963    done
37964    test -z "$as_dirs" || eval "mkdir $as_dirs"
37965  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
37966
37967
37968} # as_fn_mkdir_p
37969if mkdir -p . 2>/dev/null; then
37970  as_mkdir_p='mkdir -p "$as_dir"'
37971else
37972  test -d ./-p && rmdir ./-p
37973  as_mkdir_p=false
37974fi
37975
37976
37977# as_fn_executable_p FILE
37978# -----------------------
37979# Test if FILE is an executable regular file.
37980as_fn_executable_p ()
37981{
37982  test -f "$1" && test -x "$1"
37983} # as_fn_executable_p
37984as_test_x='test -x'
37985as_executable_p=as_fn_executable_p
37986
37987# Sed expression to map a string onto a valid CPP name.
37988as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37989
37990# Sed expression to map a string onto a valid variable name.
37991as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37992
37993
37994exec 6>&1
37995## ----------------------------------- ##
37996## Main body of $CONFIG_STATUS script. ##
37997## ----------------------------------- ##
37998_ASEOF
37999test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
38000
38001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38002# Save the log message, to keep $0 and so on meaningful, and to
38003# report actual input values of CONFIG_FILES etc. instead of their
38004# values after options handling.
38005ac_log="
38006This file was extended by ntp $as_me 4.2.8p8, which was
38007generated by GNU Autoconf 2.69.  Invocation command line was
38008
38009  CONFIG_FILES    = $CONFIG_FILES
38010  CONFIG_HEADERS  = $CONFIG_HEADERS
38011  CONFIG_LINKS    = $CONFIG_LINKS
38012  CONFIG_COMMANDS = $CONFIG_COMMANDS
38013  $ $0 $@
38014
38015on `(hostname || uname -n) 2>/dev/null | sed 1q`
38016"
38017
38018_ACEOF
38019
38020case $ac_config_files in *"
38021"*) set x $ac_config_files; shift; ac_config_files=$*;;
38022esac
38023
38024case $ac_config_headers in *"
38025"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
38026esac
38027
38028
38029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38030# Files that config.status was made for.
38031config_files="$ac_config_files"
38032config_headers="$ac_config_headers"
38033config_commands="$ac_config_commands"
38034
38035_ACEOF
38036
38037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38038ac_cs_usage="\
38039\`$as_me' instantiates files and other configuration actions
38040from templates according to the current configuration.  Unless the files
38041and actions are specified as TAGs, all are instantiated by default.
38042
38043Usage: $0 [OPTION]... [TAG]...
38044
38045  -h, --help       print this help, then exit
38046  -V, --version    print version number and configuration settings, then exit
38047      --config     print configuration, then exit
38048  -q, --quiet, --silent
38049                   do not print progress messages
38050  -d, --debug      don't remove temporary files
38051      --recheck    update $as_me by reconfiguring in the same conditions
38052      --file=FILE[:TEMPLATE]
38053                   instantiate the configuration file FILE
38054      --header=FILE[:TEMPLATE]
38055                   instantiate the configuration header FILE
38056
38057Configuration files:
38058$config_files
38059
38060Configuration headers:
38061$config_headers
38062
38063Configuration commands:
38064$config_commands
38065
38066Report bugs to <http://bugs.ntp.org./>.
38067ntp home page: <http://www.ntp.org./>."
38068
38069_ACEOF
38070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38071ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
38072ac_cs_version="\\
38073ntp config.status 4.2.8p8
38074configured by $0, generated by GNU Autoconf 2.69,
38075  with options \\"\$ac_cs_config\\"
38076
38077Copyright (C) 2012 Free Software Foundation, Inc.
38078This config.status script is free software; the Free Software Foundation
38079gives unlimited permission to copy, distribute and modify it."
38080
38081ac_pwd='$ac_pwd'
38082srcdir='$srcdir'
38083INSTALL='$INSTALL'
38084MKDIR_P='$MKDIR_P'
38085AWK='$AWK'
38086test -n "\$AWK" || AWK=awk
38087_ACEOF
38088
38089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38090# The default lists apply if the user does not specify any file.
38091ac_need_defaults=:
38092while test $# != 0
38093do
38094  case $1 in
38095  --*=?*)
38096    ac_option=`expr "X$1" : 'X\([^=]*\)='`
38097    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
38098    ac_shift=:
38099    ;;
38100  --*=)
38101    ac_option=`expr "X$1" : 'X\([^=]*\)='`
38102    ac_optarg=
38103    ac_shift=:
38104    ;;
38105  *)
38106    ac_option=$1
38107    ac_optarg=$2
38108    ac_shift=shift
38109    ;;
38110  esac
38111
38112  case $ac_option in
38113  # Handling of the options.
38114  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
38115    ac_cs_recheck=: ;;
38116  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
38117    $as_echo "$ac_cs_version"; exit ;;
38118  --config | --confi | --conf | --con | --co | --c )
38119    $as_echo "$ac_cs_config"; exit ;;
38120  --debug | --debu | --deb | --de | --d | -d )
38121    debug=: ;;
38122  --file | --fil | --fi | --f )
38123    $ac_shift
38124    case $ac_optarg in
38125    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
38126    '') as_fn_error $? "missing file argument" ;;
38127    esac
38128    as_fn_append CONFIG_FILES " '$ac_optarg'"
38129    ac_need_defaults=false;;
38130  --header | --heade | --head | --hea )
38131    $ac_shift
38132    case $ac_optarg in
38133    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
38134    esac
38135    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
38136    ac_need_defaults=false;;
38137  --he | --h)
38138    # Conflict between --help and --header
38139    as_fn_error $? "ambiguous option: \`$1'
38140Try \`$0 --help' for more information.";;
38141  --help | --hel | -h )
38142    $as_echo "$ac_cs_usage"; exit ;;
38143  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
38144  | -silent | --silent | --silen | --sile | --sil | --si | --s)
38145    ac_cs_silent=: ;;
38146
38147  # This is an error.
38148  -*) as_fn_error $? "unrecognized option: \`$1'
38149Try \`$0 --help' for more information." ;;
38150
38151  *) as_fn_append ac_config_targets " $1"
38152     ac_need_defaults=false ;;
38153
38154  esac
38155  shift
38156done
38157
38158ac_configure_extra_args=
38159
38160if $ac_cs_silent; then
38161  exec 6>/dev/null
38162  ac_configure_extra_args="$ac_configure_extra_args --silent"
38163fi
38164
38165_ACEOF
38166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38167if \$ac_cs_recheck; then
38168  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
38169  shift
38170  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
38171  CONFIG_SHELL='$SHELL'
38172  export CONFIG_SHELL
38173  exec "\$@"
38174fi
38175
38176_ACEOF
38177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38178exec 5>>config.log
38179{
38180  echo
38181  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
38182## Running $as_me. ##
38183_ASBOX
38184  $as_echo "$ac_log"
38185} >&5
38186
38187_ACEOF
38188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38189#
38190# INIT-COMMANDS
38191#
38192AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
38193
38194
38195# The HP-UX ksh and POSIX shell print the target directory to stdout
38196# if CDPATH is set.
38197(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
38198
38199sed_quote_subst='$sed_quote_subst'
38200double_quote_subst='$double_quote_subst'
38201delay_variable_subst='$delay_variable_subst'
38202enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
38203macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
38204macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
38205enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
38206pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
38207enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
38208SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
38209ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
38210host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
38211host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
38212host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
38213build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
38214build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
38215build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
38216SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
38217Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
38218GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
38219EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
38220FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
38221LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
38222NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
38223LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
38224max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
38225ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
38226exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
38227lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
38228lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
38229lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
38230lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
38231lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
38232reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
38233reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
38234OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
38235deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
38236file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
38237file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
38238want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
38239DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
38240sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
38241AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
38242AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
38243archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
38244STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
38245RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
38246old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38247old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38248old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
38249lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
38250CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
38251CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
38252compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
38253GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
38254lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
38255lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
38256lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
38257lt_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"`'
38258nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
38259lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
38260objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
38261MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
38262lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
38263lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
38264lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
38265lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
38266lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
38267need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
38268MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
38269DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
38270NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
38271LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
38272OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
38273OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
38274libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
38275shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
38276extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38277archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
38278enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
38279export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
38280whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
38281compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
38282old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
38283old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38284archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
38285archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38286module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
38287module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38288with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
38289allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
38290no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
38291hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
38292hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
38293hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
38294hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
38295hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
38296hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
38297hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
38298hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
38299inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
38300link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
38301always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
38302export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
38303exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
38304include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
38305prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
38306postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
38307file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
38308variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
38309need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
38310need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
38311version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
38312runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
38313shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
38314shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
38315libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
38316library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
38317soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
38318install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
38319postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38320postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38321finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
38322finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
38323hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
38324sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
38325sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
38326hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
38327enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
38328enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
38329enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
38330old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
38331striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
38332compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
38333predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
38334postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
38335predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
38336postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
38337compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
38338LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
38339reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
38340reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38341old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38342compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
38343GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
38344lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
38345lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
38346lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
38347lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
38348lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
38349archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
38350enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
38351export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38352whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38353compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
38354old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38355old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38356archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38357archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38358module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38359module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38360with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
38361allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
38362no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
38363hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38364hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
38365hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
38366hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
38367hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
38368hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
38369hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
38370hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
38371inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
38372link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
38373always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
38374export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38375exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
38376include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
38377prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38378postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38379file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
38380hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
38381compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
38382predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
38383postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
38384predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
38385postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
38386compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
38387
38388LTCC='$LTCC'
38389LTCFLAGS='$LTCFLAGS'
38390compiler='$compiler_DEFAULT'
38391
38392# A function that is used when there is no print builtin or printf.
38393func_fallback_echo ()
38394{
38395  eval 'cat <<_LTECHO_EOF
38396\$1
38397_LTECHO_EOF'
38398}
38399
38400# Quote evaled strings.
38401for var in SHELL \
38402ECHO \
38403SED \
38404GREP \
38405EGREP \
38406FGREP \
38407LD \
38408NM \
38409LN_S \
38410lt_SP2NL \
38411lt_NL2SP \
38412reload_flag \
38413OBJDUMP \
38414deplibs_check_method \
38415file_magic_cmd \
38416file_magic_glob \
38417want_nocaseglob \
38418DLLTOOL \
38419sharedlib_from_linklib_cmd \
38420AR \
38421AR_FLAGS \
38422archiver_list_spec \
38423STRIP \
38424RANLIB \
38425CC \
38426CFLAGS \
38427compiler \
38428lt_cv_sys_global_symbol_pipe \
38429lt_cv_sys_global_symbol_to_cdecl \
38430lt_cv_sys_global_symbol_to_c_name_address \
38431lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
38432nm_file_list_spec \
38433lt_prog_compiler_no_builtin_flag \
38434lt_prog_compiler_pic \
38435lt_prog_compiler_wl \
38436lt_prog_compiler_static \
38437lt_cv_prog_compiler_c_o \
38438need_locks \
38439MANIFEST_TOOL \
38440DSYMUTIL \
38441NMEDIT \
38442LIPO \
38443OTOOL \
38444OTOOL64 \
38445shrext_cmds \
38446export_dynamic_flag_spec \
38447whole_archive_flag_spec \
38448compiler_needs_object \
38449with_gnu_ld \
38450allow_undefined_flag \
38451no_undefined_flag \
38452hardcode_libdir_flag_spec \
38453hardcode_libdir_flag_spec_ld \
38454hardcode_libdir_separator \
38455exclude_expsyms \
38456include_expsyms \
38457file_list_spec \
38458variables_saved_for_relink \
38459libname_spec \
38460library_names_spec \
38461soname_spec \
38462install_override_mode \
38463finish_eval \
38464old_striplib \
38465striplib \
38466compiler_lib_search_dirs \
38467predep_objects \
38468postdep_objects \
38469predeps \
38470postdeps \
38471compiler_lib_search_path \
38472LD_CXX \
38473reload_flag_CXX \
38474compiler_CXX \
38475lt_prog_compiler_no_builtin_flag_CXX \
38476lt_prog_compiler_pic_CXX \
38477lt_prog_compiler_wl_CXX \
38478lt_prog_compiler_static_CXX \
38479lt_cv_prog_compiler_c_o_CXX \
38480export_dynamic_flag_spec_CXX \
38481whole_archive_flag_spec_CXX \
38482compiler_needs_object_CXX \
38483with_gnu_ld_CXX \
38484allow_undefined_flag_CXX \
38485no_undefined_flag_CXX \
38486hardcode_libdir_flag_spec_CXX \
38487hardcode_libdir_flag_spec_ld_CXX \
38488hardcode_libdir_separator_CXX \
38489exclude_expsyms_CXX \
38490include_expsyms_CXX \
38491file_list_spec_CXX \
38492compiler_lib_search_dirs_CXX \
38493predep_objects_CXX \
38494postdep_objects_CXX \
38495predeps_CXX \
38496postdeps_CXX \
38497compiler_lib_search_path_CXX; do
38498    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38499    *[\\\\\\\`\\"\\\$]*)
38500      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
38501      ;;
38502    *)
38503      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38504      ;;
38505    esac
38506done
38507
38508# Double-quote double-evaled strings.
38509for var in reload_cmds \
38510old_postinstall_cmds \
38511old_postuninstall_cmds \
38512old_archive_cmds \
38513extract_expsyms_cmds \
38514old_archive_from_new_cmds \
38515old_archive_from_expsyms_cmds \
38516archive_cmds \
38517archive_expsym_cmds \
38518module_cmds \
38519module_expsym_cmds \
38520export_symbols_cmds \
38521prelink_cmds \
38522postlink_cmds \
38523postinstall_cmds \
38524postuninstall_cmds \
38525finish_cmds \
38526sys_lib_search_path_spec \
38527sys_lib_dlsearch_path_spec \
38528reload_cmds_CXX \
38529old_archive_cmds_CXX \
38530old_archive_from_new_cmds_CXX \
38531old_archive_from_expsyms_cmds_CXX \
38532archive_cmds_CXX \
38533archive_expsym_cmds_CXX \
38534module_cmds_CXX \
38535module_expsym_cmds_CXX \
38536export_symbols_cmds_CXX \
38537prelink_cmds_CXX \
38538postlink_cmds_CXX; do
38539    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38540    *[\\\\\\\`\\"\\\$]*)
38541      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
38542      ;;
38543    *)
38544      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38545      ;;
38546    esac
38547done
38548
38549ac_aux_dir='$ac_aux_dir'
38550xsi_shell='$xsi_shell'
38551lt_shell_append='$lt_shell_append'
38552
38553# See if we are running on zsh, and set the options which allow our
38554# commands through without removal of \ escapes INIT.
38555if test -n "\${ZSH_VERSION+set}" ; then
38556   setopt NO_GLOB_SUBST
38557fi
38558
38559
38560    PACKAGE='$PACKAGE'
38561    VERSION='$VERSION'
38562    TIMESTAMP='$TIMESTAMP'
38563    RM='$RM'
38564    ofile='$ofile'
38565
38566
38567
38568
38569
38570
38571_ACEOF
38572
38573cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38574
38575# Handling of arguments.
38576for ac_config_target in $ac_config_targets
38577do
38578  case $ac_config_target in
38579    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
38580    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
38581    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
38582    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
38583    "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
38584    "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
38585    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
38586    "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
38587    "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
38588    "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
38589    "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
38590    "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
38591    "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
38592    "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
38593    "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
38594    "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
38595    "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
38596    "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
38597    "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;;
38598    "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
38599    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
38600    "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
38601    "scripts/build/genAuthors") CONFIG_FILES="$CONFIG_FILES scripts/build/genAuthors" ;;
38602    "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
38603    "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
38604    "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
38605    "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
38606    "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
38607    "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
38608    "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
38609    "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
38610    "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
38611    "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
38612    "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
38613    "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
38614    "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
38615    "scripts/update-leap/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/Makefile" ;;
38616    "scripts/update-leap/update-leap") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/update-leap" ;;
38617    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
38618    "tests/bug-2803/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bug-2803/Makefile" ;;
38619    "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
38620    "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
38621    "tests/ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpq/Makefile" ;;
38622    "tests/sandbox/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sandbox/Makefile" ;;
38623    "tests/sec-2853/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sec-2853/Makefile" ;;
38624    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
38625
38626  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
38627  esac
38628done
38629
38630
38631# If the user did not use the arguments to specify the items to instantiate,
38632# then the envvar interface is used.  Set only those that are not.
38633# We use the long form for the default assignment because of an extremely
38634# bizarre bug on SunOS 4.1.3.
38635if $ac_need_defaults; then
38636  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38637  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38638  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38639fi
38640
38641# Have a temporary directory for convenience.  Make it in the build tree
38642# simply because there is no reason against having it here, and in addition,
38643# creating and moving files from /tmp can sometimes cause problems.
38644# Hook for its removal unless debugging.
38645# Note that there is a small window in which the directory will not be cleaned:
38646# after its creation but before its name has been assigned to `$tmp'.
38647$debug ||
38648{
38649  tmp= ac_tmp=
38650  trap 'exit_status=$?
38651  : "${ac_tmp:=$tmp}"
38652  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
38653' 0
38654  trap 'as_fn_exit 1' 1 2 13 15
38655}
38656# Create a (secure) tmp directory for tmp files.
38657
38658{
38659  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
38660  test -d "$tmp"
38661}  ||
38662{
38663  tmp=./conf$$-$RANDOM
38664  (umask 077 && mkdir "$tmp")
38665} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
38666ac_tmp=$tmp
38667
38668# Set up the scripts for CONFIG_FILES section.
38669# No need to generate them if there are no CONFIG_FILES.
38670# This happens for instance with `./config.status config.h'.
38671if test -n "$CONFIG_FILES"; then
38672
38673if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
38674  ac_cs_awk_getline=:
38675  ac_cs_awk_pipe_init=
38676  ac_cs_awk_read_file='
38677      while ((getline aline < (F[key])) > 0)
38678	print(aline)
38679      close(F[key])'
38680  ac_cs_awk_pipe_fini=
38681else
38682  ac_cs_awk_getline=false
38683  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
38684  ac_cs_awk_read_file='
38685      print "|#_!!_#|"
38686      print "cat " F[key] " &&"
38687      '$ac_cs_awk_pipe_init
38688  # The final `:' finishes the AND list.
38689  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
38690fi
38691ac_cr=`echo X | tr X '\015'`
38692# On cygwin, bash can eat \r inside `` if the user requested igncr.
38693# But we know of no other shell where ac_cr would be empty at this
38694# point, so we can use a bashism as a fallback.
38695if test "x$ac_cr" = x; then
38696  eval ac_cr=\$\'\\r\'
38697fi
38698ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
38699if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
38700  ac_cs_awk_cr='\\r'
38701else
38702  ac_cs_awk_cr=$ac_cr
38703fi
38704
38705echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
38706_ACEOF
38707
38708# Create commands to substitute file output variables.
38709{
38710  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
38711  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
38712  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
38713  echo "_ACAWK" &&
38714  echo "_ACEOF"
38715} >conf$$files.sh &&
38716. ./conf$$files.sh ||
38717  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38718rm -f conf$$files.sh
38719
38720{
38721  echo "cat >conf$$subs.awk <<_ACEOF" &&
38722  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
38723  echo "_ACEOF"
38724} >conf$$subs.sh ||
38725  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38726ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
38727ac_delim='%!_!# '
38728for ac_last_try in false false false false false :; do
38729  . ./conf$$subs.sh ||
38730    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38731
38732  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
38733  if test $ac_delim_n = $ac_delim_num; then
38734    break
38735  elif $ac_last_try; then
38736    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38737  else
38738    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38739  fi
38740done
38741rm -f conf$$subs.sh
38742
38743cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38744cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
38745_ACEOF
38746sed -n '
38747h
38748s/^/S["/; s/!.*/"]=/
38749p
38750g
38751s/^[^!]*!//
38752:repl
38753t repl
38754s/'"$ac_delim"'$//
38755t delim
38756:nl
38757h
38758s/\(.\{148\}\)..*/\1/
38759t more1
38760s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
38761p
38762n
38763b repl
38764:more1
38765s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38766p
38767g
38768s/.\{148\}//
38769t nl
38770:delim
38771h
38772s/\(.\{148\}\)..*/\1/
38773t more2
38774s/["\\]/\\&/g; s/^/"/; s/$/"/
38775p
38776b
38777:more2
38778s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38779p
38780g
38781s/.\{148\}//
38782t delim
38783' <conf$$subs.awk | sed '
38784/^[^""]/{
38785  N
38786  s/\n//
38787}
38788' >>$CONFIG_STATUS || ac_write_fail=1
38789rm -f conf$$subs.awk
38790cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38791_ACAWK
38792cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
38793  for (key in S) S_is_set[key] = 1
38794  FS = ""
38795  \$ac_cs_awk_pipe_init
38796}
38797{
38798  line = $ 0
38799  nfields = split(line, field, "@")
38800  substed = 0
38801  len = length(field[1])
38802  for (i = 2; i < nfields; i++) {
38803    key = field[i]
38804    keylen = length(key)
38805    if (S_is_set[key]) {
38806      value = S[key]
38807      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38808      len += length(value) + length(field[++i])
38809      substed = 1
38810    } else
38811      len += 1 + keylen
38812  }
38813  if (nfields == 3 && !substed) {
38814    key = field[2]
38815    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
38816      \$ac_cs_awk_read_file
38817      next
38818    }
38819  }
38820  print line
38821}
38822\$ac_cs_awk_pipe_fini
38823_ACAWK
38824_ACEOF
38825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38826if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38827  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38828else
38829  cat
38830fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
38831  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
38832_ACEOF
38833
38834# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38835# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
38836# trailing colons and then remove the whole line if VPATH becomes empty
38837# (actually we leave an empty line to preserve line numbers).
38838if test "x$srcdir" = x.; then
38839  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
38840h
38841s///
38842s/^/:/
38843s/[	 ]*$/:/
38844s/:\$(srcdir):/:/g
38845s/:\${srcdir}:/:/g
38846s/:@srcdir@:/:/g
38847s/^:*//
38848s/:*$//
38849x
38850s/\(=[	 ]*\).*/\1/
38851G
38852s/\n//
38853s/^[^=]*=[	 ]*$//
38854}'
38855fi
38856
38857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38858fi # test -n "$CONFIG_FILES"
38859
38860# Set up the scripts for CONFIG_HEADERS section.
38861# No need to generate them if there are no CONFIG_HEADERS.
38862# This happens for instance with `./config.status Makefile'.
38863if test -n "$CONFIG_HEADERS"; then
38864cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
38865BEGIN {
38866_ACEOF
38867
38868# Transform confdefs.h into an awk script `defines.awk', embedded as
38869# here-document in config.status, that substitutes the proper values into
38870# config.h.in to produce config.h.
38871
38872# Create a delimiter string that does not exist in confdefs.h, to ease
38873# handling of long lines.
38874ac_delim='%!_!# '
38875for ac_last_try in false false :; do
38876  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
38877  if test -z "$ac_tt"; then
38878    break
38879  elif $ac_last_try; then
38880    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
38881  else
38882    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38883  fi
38884done
38885
38886# For the awk script, D is an array of macro values keyed by name,
38887# likewise P contains macro parameters if any.  Preserve backslash
38888# newline sequences.
38889
38890ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38891sed -n '
38892s/.\{148\}/&'"$ac_delim"'/g
38893t rset
38894:rset
38895s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
38896t def
38897d
38898:def
38899s/\\$//
38900t bsnl
38901s/["\\]/\\&/g
38902s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
38903D["\1"]=" \3"/p
38904s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
38905d
38906:bsnl
38907s/["\\]/\\&/g
38908s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
38909D["\1"]=" \3\\\\\\n"\\/p
38910t cont
38911s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38912t cont
38913d
38914:cont
38915n
38916s/.\{148\}/&'"$ac_delim"'/g
38917t clear
38918:clear
38919s/\\$//
38920t bsnlc
38921s/["\\]/\\&/g; s/^/"/; s/$/"/p
38922d
38923:bsnlc
38924s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38925b cont
38926' <confdefs.h | sed '
38927s/'"$ac_delim"'/"\\\
38928"/g' >>$CONFIG_STATUS || ac_write_fail=1
38929
38930cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38931  for (key in D) D_is_set[key] = 1
38932  FS = ""
38933}
38934/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38935  line = \$ 0
38936  split(line, arg, " ")
38937  if (arg[1] == "#") {
38938    defundef = arg[2]
38939    mac1 = arg[3]
38940  } else {
38941    defundef = substr(arg[1], 2)
38942    mac1 = arg[2]
38943  }
38944  split(mac1, mac2, "(") #)
38945  macro = mac2[1]
38946  prefix = substr(line, 1, index(line, defundef) - 1)
38947  if (D_is_set[macro]) {
38948    # Preserve the white space surrounding the "#".
38949    print prefix "define", macro P[macro] D[macro]
38950    next
38951  } else {
38952    # Replace #undef with comments.  This is necessary, for example,
38953    # in the case of _POSIX_SOURCE, which is predefined and required
38954    # on some systems where configure will not decide to define it.
38955    if (defundef == "undef") {
38956      print "/*", prefix defundef, macro, "*/"
38957      next
38958    }
38959  }
38960}
38961{ print }
38962_ACAWK
38963_ACEOF
38964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38965  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
38966fi # test -n "$CONFIG_HEADERS"
38967
38968
38969eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
38970shift
38971for ac_tag
38972do
38973  case $ac_tag in
38974  :[FHLC]) ac_mode=$ac_tag; continue;;
38975  esac
38976  case $ac_mode$ac_tag in
38977  :[FHL]*:*);;
38978  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
38979  :[FH]-) ac_tag=-:-;;
38980  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38981  esac
38982  ac_save_IFS=$IFS
38983  IFS=:
38984  set x $ac_tag
38985  IFS=$ac_save_IFS
38986  shift
38987  ac_file=$1
38988  shift
38989
38990  case $ac_mode in
38991  :L) ac_source=$1;;
38992  :[FH])
38993    ac_file_inputs=
38994    for ac_f
38995    do
38996      case $ac_f in
38997      -) ac_f="$ac_tmp/stdin";;
38998      *) # Look for the file first in the build tree, then in the source tree
38999	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
39000	 # because $ac_f cannot contain `:'.
39001	 test -f "$ac_f" ||
39002	   case $ac_f in
39003	   [\\/$]*) false;;
39004	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39005	   esac ||
39006	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
39007      esac
39008      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
39009      as_fn_append ac_file_inputs " '$ac_f'"
39010    done
39011
39012    # Let's still pretend it is `configure' which instantiates (i.e., don't
39013    # use $as_me), people would be surprised to read:
39014    #    /* config.h.  Generated by config.status.  */
39015    configure_input='Generated from '`
39016	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
39017	`' by configure.'
39018    if test x"$ac_file" != x-; then
39019      configure_input="$ac_file.  $configure_input"
39020      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
39021$as_echo "$as_me: creating $ac_file" >&6;}
39022    fi
39023    # Neutralize special characters interpreted by sed in replacement strings.
39024    case $configure_input in #(
39025    *\&* | *\|* | *\\* )
39026       ac_sed_conf_input=`$as_echo "$configure_input" |
39027       sed 's/[\\\\&|]/\\\\&/g'`;; #(
39028    *) ac_sed_conf_input=$configure_input;;
39029    esac
39030
39031    case $ac_tag in
39032    *:-:* | *:-) cat >"$ac_tmp/stdin" \
39033      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
39034    esac
39035    ;;
39036  esac
39037
39038  ac_dir=`$as_dirname -- "$ac_file" ||
39039$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39040	 X"$ac_file" : 'X\(//\)[^/]' \| \
39041	 X"$ac_file" : 'X\(//\)$' \| \
39042	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39043$as_echo X"$ac_file" |
39044    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39045	    s//\1/
39046	    q
39047	  }
39048	  /^X\(\/\/\)[^/].*/{
39049	    s//\1/
39050	    q
39051	  }
39052	  /^X\(\/\/\)$/{
39053	    s//\1/
39054	    q
39055	  }
39056	  /^X\(\/\).*/{
39057	    s//\1/
39058	    q
39059	  }
39060	  s/.*/./; q'`
39061  as_dir="$ac_dir"; as_fn_mkdir_p
39062  ac_builddir=.
39063
39064case "$ac_dir" in
39065.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39066*)
39067  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
39068  # A ".." for each directory in $ac_dir_suffix.
39069  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
39070  case $ac_top_builddir_sub in
39071  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39072  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39073  esac ;;
39074esac
39075ac_abs_top_builddir=$ac_pwd
39076ac_abs_builddir=$ac_pwd$ac_dir_suffix
39077# for backward compatibility:
39078ac_top_builddir=$ac_top_build_prefix
39079
39080case $srcdir in
39081  .)  # We are building in place.
39082    ac_srcdir=.
39083    ac_top_srcdir=$ac_top_builddir_sub
39084    ac_abs_top_srcdir=$ac_pwd ;;
39085  [\\/]* | ?:[\\/]* )  # Absolute name.
39086    ac_srcdir=$srcdir$ac_dir_suffix;
39087    ac_top_srcdir=$srcdir
39088    ac_abs_top_srcdir=$srcdir ;;
39089  *) # Relative name.
39090    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39091    ac_top_srcdir=$ac_top_build_prefix$srcdir
39092    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39093esac
39094ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39095
39096
39097  case $ac_mode in
39098  :F)
39099  #
39100  # CONFIG_FILE
39101  #
39102
39103  case $INSTALL in
39104  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39105  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39106  esac
39107  ac_MKDIR_P=$MKDIR_P
39108  case $MKDIR_P in
39109  [\\/$]* | ?:[\\/]* ) ;;
39110  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
39111  esac
39112_ACEOF
39113
39114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39115# If the template does not know about datarootdir, expand it.
39116# FIXME: This hack should be removed a few years after 2.60.
39117ac_datarootdir_hack=; ac_datarootdir_seen=
39118ac_sed_dataroot='
39119/datarootdir/ {
39120  p
39121  q
39122}
39123/@datadir@/p
39124/@docdir@/p
39125/@infodir@/p
39126/@localedir@/p
39127/@mandir@/p'
39128case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
39129*datarootdir*) ac_datarootdir_seen=yes;;
39130*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39131  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39132$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39133_ACEOF
39134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39135  ac_datarootdir_hack='
39136  s&@datadir@&$datadir&g
39137  s&@docdir@&$docdir&g
39138  s&@infodir@&$infodir&g
39139  s&@localedir@&$localedir&g
39140  s&@mandir@&$mandir&g
39141  s&\\\${datarootdir}&$datarootdir&g' ;;
39142esac
39143_ACEOF
39144
39145# Neutralize VPATH when `$srcdir' = `.'.
39146# Shell code in configure.ac might set extrasub.
39147# FIXME: do we really want to maintain this feature?
39148cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39149ac_sed_extra="$ac_vpsub
39150$extrasub
39151_ACEOF
39152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39153:t
39154/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39155s|@configure_input@|$ac_sed_conf_input|;t t
39156s&@top_builddir@&$ac_top_builddir_sub&;t t
39157s&@top_build_prefix@&$ac_top_build_prefix&;t t
39158s&@srcdir@&$ac_srcdir&;t t
39159s&@abs_srcdir@&$ac_abs_srcdir&;t t
39160s&@top_srcdir@&$ac_top_srcdir&;t t
39161s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39162s&@builddir@&$ac_builddir&;t t
39163s&@abs_builddir@&$ac_abs_builddir&;t t
39164s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39165s&@INSTALL@&$ac_INSTALL&;t t
39166s&@MKDIR_P@&$ac_MKDIR_P&;t t
39167$ac_datarootdir_hack
39168"
39169eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
39170if $ac_cs_awk_getline; then
39171  $AWK -f "$ac_tmp/subs.awk"
39172else
39173  $AWK -f "$ac_tmp/subs.awk" | $SHELL
39174fi \
39175  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39176
39177test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39178  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
39179  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
39180      "$ac_tmp/out"`; test -z "$ac_out"; } &&
39181  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39182which seems to be undefined.  Please make sure it is defined" >&5
39183$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39184which seems to be undefined.  Please make sure it is defined" >&2;}
39185
39186  rm -f "$ac_tmp/stdin"
39187  case $ac_file in
39188  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
39189  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
39190  esac \
39191  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39192 ;;
39193  :H)
39194  #
39195  # CONFIG_HEADER
39196  #
39197  if test x"$ac_file" != x-; then
39198    {
39199      $as_echo "/* $configure_input  */" \
39200      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
39201    } >"$ac_tmp/config.h" \
39202      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39203    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
39204      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
39205$as_echo "$as_me: $ac_file is unchanged" >&6;}
39206    else
39207      rm -f "$ac_file"
39208      mv "$ac_tmp/config.h" "$ac_file" \
39209	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
39210    fi
39211  else
39212    $as_echo "/* $configure_input  */" \
39213      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
39214      || as_fn_error $? "could not create -" "$LINENO" 5
39215  fi
39216# Compute "$ac_file"'s index in $config_headers.
39217_am_arg="$ac_file"
39218_am_stamp_count=1
39219for _am_header in $config_headers :; do
39220  case $_am_header in
39221    $_am_arg | $_am_arg:* )
39222      break ;;
39223    * )
39224      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39225  esac
39226done
39227echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
39228$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39229	 X"$_am_arg" : 'X\(//\)[^/]' \| \
39230	 X"$_am_arg" : 'X\(//\)$' \| \
39231	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
39232$as_echo X"$_am_arg" |
39233    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39234	    s//\1/
39235	    q
39236	  }
39237	  /^X\(\/\/\)[^/].*/{
39238	    s//\1/
39239	    q
39240	  }
39241	  /^X\(\/\/\)$/{
39242	    s//\1/
39243	    q
39244	  }
39245	  /^X\(\/\).*/{
39246	    s//\1/
39247	    q
39248	  }
39249	  s/.*/./; q'`/stamp-h$_am_stamp_count
39250 ;;
39251
39252  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
39253$as_echo "$as_me: executing $ac_file commands" >&6;}
39254 ;;
39255  esac
39256
39257
39258  case $ac_file$ac_mode in
39259    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
39260  # Older Autoconf quotes --file arguments for eval, but not when files
39261  # are listed without --file.  Let's play safe and only enable the eval
39262  # if we detect the quoting.
39263  case $CONFIG_FILES in
39264  *\'*) eval set x "$CONFIG_FILES" ;;
39265  *)   set x $CONFIG_FILES ;;
39266  esac
39267  shift
39268  for mf
39269  do
39270    # Strip MF so we end up with the name of the file.
39271    mf=`echo "$mf" | sed -e 's/:.*$//'`
39272    # Check whether this is an Automake generated Makefile or not.
39273    # We used to match only the files named 'Makefile.in', but
39274    # some people rename them; so instead we look at the file content.
39275    # Grep'ing the first line is not enough: some people post-process
39276    # each Makefile.in and add a new line on top of each file to say so.
39277    # Grep'ing the whole file is not good either: AIX grep has a line
39278    # limit of 2048, but all sed's we know have understand at least 4000.
39279    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
39280      dirpart=`$as_dirname -- "$mf" ||
39281$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39282	 X"$mf" : 'X\(//\)[^/]' \| \
39283	 X"$mf" : 'X\(//\)$' \| \
39284	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39285$as_echo X"$mf" |
39286    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39287	    s//\1/
39288	    q
39289	  }
39290	  /^X\(\/\/\)[^/].*/{
39291	    s//\1/
39292	    q
39293	  }
39294	  /^X\(\/\/\)$/{
39295	    s//\1/
39296	    q
39297	  }
39298	  /^X\(\/\).*/{
39299	    s//\1/
39300	    q
39301	  }
39302	  s/.*/./; q'`
39303    else
39304      continue
39305    fi
39306    # Extract the definition of DEPDIR, am__include, and am__quote
39307    # from the Makefile without running 'make'.
39308    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
39309    test -z "$DEPDIR" && continue
39310    am__include=`sed -n 's/^am__include = //p' < "$mf"`
39311    test -z "$am__include" && continue
39312    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
39313    # Find all dependency output files, they are included files with
39314    # $(DEPDIR) in their names.  We invoke sed twice because it is the
39315    # simplest approach to changing $(DEPDIR) to its actual value in the
39316    # expansion.
39317    for file in `sed -n "
39318      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39319	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
39320      # Make sure the directory exists.
39321      test -f "$dirpart/$file" && continue
39322      fdir=`$as_dirname -- "$file" ||
39323$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39324	 X"$file" : 'X\(//\)[^/]' \| \
39325	 X"$file" : 'X\(//\)$' \| \
39326	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39327$as_echo X"$file" |
39328    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39329	    s//\1/
39330	    q
39331	  }
39332	  /^X\(\/\/\)[^/].*/{
39333	    s//\1/
39334	    q
39335	  }
39336	  /^X\(\/\/\)$/{
39337	    s//\1/
39338	    q
39339	  }
39340	  /^X\(\/\).*/{
39341	    s//\1/
39342	    q
39343	  }
39344	  s/.*/./; q'`
39345      as_dir=$dirpart/$fdir; as_fn_mkdir_p
39346      # echo "creating $dirpart/$file"
39347      echo '# dummy' > "$dirpart/$file"
39348    done
39349  done
39350}
39351 ;;
39352    "libtool":C)
39353
39354    # See if we are running on zsh, and set the options which allow our
39355    # commands through without removal of \ escapes.
39356    if test -n "${ZSH_VERSION+set}" ; then
39357      setopt NO_GLOB_SUBST
39358    fi
39359
39360    cfgfile="${ofile}T"
39361    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
39362    $RM "$cfgfile"
39363
39364    cat <<_LT_EOF >> "$cfgfile"
39365#! $SHELL
39366
39367# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
39368# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
39369# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
39370# NOTE: Changes made to this file will be lost: look at ltmain.sh.
39371#
39372#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
39373#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
39374#                 Inc.
39375#   Written by Gordon Matzigkeit, 1996
39376#
39377#   This file is part of GNU Libtool.
39378#
39379# GNU Libtool is free software; you can redistribute it and/or
39380# modify it under the terms of the GNU General Public License as
39381# published by the Free Software Foundation; either version 2 of
39382# the License, or (at your option) any later version.
39383#
39384# As a special exception to the GNU General Public License,
39385# if you distribute this file as part of a program or library that
39386# is built using GNU Libtool, you may include this file under the
39387# same distribution terms that you use for the rest of that program.
39388#
39389# GNU Libtool is distributed in the hope that it will be useful,
39390# but WITHOUT ANY WARRANTY; without even the implied warranty of
39391# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
39392# GNU General Public License for more details.
39393#
39394# You should have received a copy of the GNU General Public License
39395# along with GNU Libtool; see the file COPYING.  If not, a copy
39396# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
39397# obtained by writing to the Free Software Foundation, Inc.,
39398# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
39399
39400
39401# The names of the tagged configurations supported by this script.
39402available_tags="CXX "
39403
39404# ### BEGIN LIBTOOL CONFIG
39405
39406# Whether or not to build shared libraries.
39407build_libtool_libs=$enable_shared
39408
39409# Which release of libtool.m4 was used?
39410macro_version=$macro_version
39411macro_revision=$macro_revision
39412
39413# Whether or not to build static libraries.
39414build_old_libs=$enable_static
39415
39416# What type of objects to build.
39417pic_mode=$pic_mode
39418
39419# Whether or not to optimize for fast installation.
39420fast_install=$enable_fast_install
39421
39422# Shell to use when invoking shell scripts.
39423SHELL=$lt_SHELL
39424
39425# An echo program that protects backslashes.
39426ECHO=$lt_ECHO
39427
39428# The host system.
39429host_alias=$host_alias
39430host=$host
39431host_os=$host_os
39432
39433# The build system.
39434build_alias=$build_alias
39435build=$build
39436build_os=$build_os
39437
39438# A sed program that does not truncate output.
39439SED=$lt_SED
39440
39441# Sed that helps us avoid accidentally triggering echo(1) options like -n.
39442Xsed="\$SED -e 1s/^X//"
39443
39444# A grep program that handles long lines.
39445GREP=$lt_GREP
39446
39447# An ERE matcher.
39448EGREP=$lt_EGREP
39449
39450# A literal string matcher.
39451FGREP=$lt_FGREP
39452
39453# A BSD- or MS-compatible name lister.
39454NM=$lt_NM
39455
39456# Whether we need soft or hard links.
39457LN_S=$lt_LN_S
39458
39459# What is the maximum length of a command?
39460max_cmd_len=$max_cmd_len
39461
39462# Object file suffix (normally "o").
39463objext=$ac_objext
39464
39465# Executable file suffix (normally "").
39466exeext=$exeext
39467
39468# whether the shell understands "unset".
39469lt_unset=$lt_unset
39470
39471# turn spaces into newlines.
39472SP2NL=$lt_lt_SP2NL
39473
39474# turn newlines into spaces.
39475NL2SP=$lt_lt_NL2SP
39476
39477# convert \$build file names to \$host format.
39478to_host_file_cmd=$lt_cv_to_host_file_cmd
39479
39480# convert \$build files to toolchain format.
39481to_tool_file_cmd=$lt_cv_to_tool_file_cmd
39482
39483# An object symbol dumper.
39484OBJDUMP=$lt_OBJDUMP
39485
39486# Method to check whether dependent libraries are shared objects.
39487deplibs_check_method=$lt_deplibs_check_method
39488
39489# Command to use when deplibs_check_method = "file_magic".
39490file_magic_cmd=$lt_file_magic_cmd
39491
39492# How to find potential files when deplibs_check_method = "file_magic".
39493file_magic_glob=$lt_file_magic_glob
39494
39495# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
39496want_nocaseglob=$lt_want_nocaseglob
39497
39498# DLL creation program.
39499DLLTOOL=$lt_DLLTOOL
39500
39501# Command to associate shared and link libraries.
39502sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
39503
39504# The archiver.
39505AR=$lt_AR
39506
39507# Flags to create an archive.
39508AR_FLAGS=$lt_AR_FLAGS
39509
39510# How to feed a file listing to the archiver.
39511archiver_list_spec=$lt_archiver_list_spec
39512
39513# A symbol stripping program.
39514STRIP=$lt_STRIP
39515
39516# Commands used to install an old-style archive.
39517RANLIB=$lt_RANLIB
39518old_postinstall_cmds=$lt_old_postinstall_cmds
39519old_postuninstall_cmds=$lt_old_postuninstall_cmds
39520
39521# Whether to use a lock for old archive extraction.
39522lock_old_archive_extraction=$lock_old_archive_extraction
39523
39524# A C compiler.
39525LTCC=$lt_CC
39526
39527# LTCC compiler flags.
39528LTCFLAGS=$lt_CFLAGS
39529
39530# Take the output of nm and produce a listing of raw symbols and C names.
39531global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
39532
39533# Transform the output of nm in a proper C declaration.
39534global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
39535
39536# Transform the output of nm in a C name address pair.
39537global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
39538
39539# Transform the output of nm in a C name address pair when lib prefix is needed.
39540global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
39541
39542# Specify filename containing input files for \$NM.
39543nm_file_list_spec=$lt_nm_file_list_spec
39544
39545# The root where to search for dependent libraries,and in which our libraries should be installed.
39546lt_sysroot=$lt_sysroot
39547
39548# The name of the directory that contains temporary libtool files.
39549objdir=$objdir
39550
39551# Used to examine libraries when file_magic_cmd begins with "file".
39552MAGIC_CMD=$MAGIC_CMD
39553
39554# Must we lock files when doing compilation?
39555need_locks=$lt_need_locks
39556
39557# Manifest tool.
39558MANIFEST_TOOL=$lt_MANIFEST_TOOL
39559
39560# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
39561DSYMUTIL=$lt_DSYMUTIL
39562
39563# Tool to change global to local symbols on Mac OS X.
39564NMEDIT=$lt_NMEDIT
39565
39566# Tool to manipulate fat objects and archives on Mac OS X.
39567LIPO=$lt_LIPO
39568
39569# ldd/readelf like tool for Mach-O binaries on Mac OS X.
39570OTOOL=$lt_OTOOL
39571
39572# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
39573OTOOL64=$lt_OTOOL64
39574
39575# Old archive suffix (normally "a").
39576libext=$libext
39577
39578# Shared library suffix (normally ".so").
39579shrext_cmds=$lt_shrext_cmds
39580
39581# The commands to extract the exported symbol list from a shared archive.
39582extract_expsyms_cmds=$lt_extract_expsyms_cmds
39583
39584# Variables whose values should be saved in libtool wrapper scripts and
39585# restored at link time.
39586variables_saved_for_relink=$lt_variables_saved_for_relink
39587
39588# Do we need the "lib" prefix for modules?
39589need_lib_prefix=$need_lib_prefix
39590
39591# Do we need a version for libraries?
39592need_version=$need_version
39593
39594# Library versioning type.
39595version_type=$version_type
39596
39597# Shared library runtime path variable.
39598runpath_var=$runpath_var
39599
39600# Shared library path variable.
39601shlibpath_var=$shlibpath_var
39602
39603# Is shlibpath searched before the hard-coded library search path?
39604shlibpath_overrides_runpath=$shlibpath_overrides_runpath
39605
39606# Format of library name prefix.
39607libname_spec=$lt_libname_spec
39608
39609# List of archive names.  First name is the real one, the rest are links.
39610# The last name is the one that the linker finds with -lNAME
39611library_names_spec=$lt_library_names_spec
39612
39613# The coded name of the library, if different from the real name.
39614soname_spec=$lt_soname_spec
39615
39616# Permission mode override for installation of shared libraries.
39617install_override_mode=$lt_install_override_mode
39618
39619# Command to use after installation of a shared archive.
39620postinstall_cmds=$lt_postinstall_cmds
39621
39622# Command to use after uninstallation of a shared archive.
39623postuninstall_cmds=$lt_postuninstall_cmds
39624
39625# Commands used to finish a libtool library installation in a directory.
39626finish_cmds=$lt_finish_cmds
39627
39628# As "finish_cmds", except a single script fragment to be evaled but
39629# not shown.
39630finish_eval=$lt_finish_eval
39631
39632# Whether we should hardcode library paths into libraries.
39633hardcode_into_libs=$hardcode_into_libs
39634
39635# Compile-time system search path for libraries.
39636sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
39637
39638# Run-time system search path for libraries.
39639sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
39640
39641# Whether dlopen is supported.
39642dlopen_support=$enable_dlopen
39643
39644# Whether dlopen of programs is supported.
39645dlopen_self=$enable_dlopen_self
39646
39647# Whether dlopen of statically linked programs is supported.
39648dlopen_self_static=$enable_dlopen_self_static
39649
39650# Commands to strip libraries.
39651old_striplib=$lt_old_striplib
39652striplib=$lt_striplib
39653
39654
39655# The linker used to build libraries.
39656LD=$lt_LD
39657
39658# How to create reloadable object files.
39659reload_flag=$lt_reload_flag
39660reload_cmds=$lt_reload_cmds
39661
39662# Commands used to build an old-style archive.
39663old_archive_cmds=$lt_old_archive_cmds
39664
39665# A language specific compiler.
39666CC=$lt_compiler
39667
39668# Is the compiler the GNU compiler?
39669with_gcc=$GCC
39670
39671# Compiler flag to turn off builtin functions.
39672no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
39673
39674# Additional compiler flags for building library objects.
39675pic_flag=$lt_lt_prog_compiler_pic
39676
39677# How to pass a linker flag through the compiler.
39678wl=$lt_lt_prog_compiler_wl
39679
39680# Compiler flag to prevent dynamic linking.
39681link_static_flag=$lt_lt_prog_compiler_static
39682
39683# Does compiler simultaneously support -c and -o options?
39684compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39685
39686# Whether or not to add -lc for building shared libraries.
39687build_libtool_need_lc=$archive_cmds_need_lc
39688
39689# Whether or not to disallow shared libs when runtime libs are static.
39690allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39691
39692# Compiler flag to allow reflexive dlopens.
39693export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39694
39695# Compiler flag to generate shared objects directly from archives.
39696whole_archive_flag_spec=$lt_whole_archive_flag_spec
39697
39698# Whether the compiler copes with passing no objects directly.
39699compiler_needs_object=$lt_compiler_needs_object
39700
39701# Create an old-style archive from a shared archive.
39702old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39703
39704# Create a temporary old-style archive to link instead of a shared archive.
39705old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39706
39707# Commands used to build a shared archive.
39708archive_cmds=$lt_archive_cmds
39709archive_expsym_cmds=$lt_archive_expsym_cmds
39710
39711# Commands used to build a loadable module if different from building
39712# a shared archive.
39713module_cmds=$lt_module_cmds
39714module_expsym_cmds=$lt_module_expsym_cmds
39715
39716# Whether we are building with GNU ld or not.
39717with_gnu_ld=$lt_with_gnu_ld
39718
39719# Flag that allows shared libraries with undefined symbols to be built.
39720allow_undefined_flag=$lt_allow_undefined_flag
39721
39722# Flag that enforces no undefined symbols.
39723no_undefined_flag=$lt_no_undefined_flag
39724
39725# Flag to hardcode \$libdir into a binary during linking.
39726# This must work even if \$libdir does not exist
39727hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39728
39729# If ld is used when linking, flag to hardcode \$libdir into a binary
39730# during linking.  This must work even if \$libdir does not exist.
39731hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
39732
39733# Whether we need a single "-rpath" flag with a separated argument.
39734hardcode_libdir_separator=$lt_hardcode_libdir_separator
39735
39736# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39737# DIR into the resulting binary.
39738hardcode_direct=$hardcode_direct
39739
39740# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39741# DIR into the resulting binary and the resulting library dependency is
39742# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39743# library is relocated.
39744hardcode_direct_absolute=$hardcode_direct_absolute
39745
39746# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39747# into the resulting binary.
39748hardcode_minus_L=$hardcode_minus_L
39749
39750# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39751# into the resulting binary.
39752hardcode_shlibpath_var=$hardcode_shlibpath_var
39753
39754# Set to "yes" if building a shared library automatically hardcodes DIR
39755# into the library and all subsequent libraries and executables linked
39756# against it.
39757hardcode_automatic=$hardcode_automatic
39758
39759# Set to yes if linker adds runtime paths of dependent libraries
39760# to runtime path list.
39761inherit_rpath=$inherit_rpath
39762
39763# Whether libtool must link a program against all its dependency libraries.
39764link_all_deplibs=$link_all_deplibs
39765
39766# Set to "yes" if exported symbols are required.
39767always_export_symbols=$always_export_symbols
39768
39769# The commands to list exported symbols.
39770export_symbols_cmds=$lt_export_symbols_cmds
39771
39772# Symbols that should not be listed in the preloaded symbols.
39773exclude_expsyms=$lt_exclude_expsyms
39774
39775# Symbols that must always be exported.
39776include_expsyms=$lt_include_expsyms
39777
39778# Commands necessary for linking programs (against libraries) with templates.
39779prelink_cmds=$lt_prelink_cmds
39780
39781# Commands necessary for finishing linking programs.
39782postlink_cmds=$lt_postlink_cmds
39783
39784# Specify filename containing input files.
39785file_list_spec=$lt_file_list_spec
39786
39787# How to hardcode a shared library path into an executable.
39788hardcode_action=$hardcode_action
39789
39790# The directories searched by this compiler when creating a shared library.
39791compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
39792
39793# Dependencies to place before and after the objects being linked to
39794# create a shared library.
39795predep_objects=$lt_predep_objects
39796postdep_objects=$lt_postdep_objects
39797predeps=$lt_predeps
39798postdeps=$lt_postdeps
39799
39800# The library search path used internally by the compiler when linking
39801# a shared library.
39802compiler_lib_search_path=$lt_compiler_lib_search_path
39803
39804# ### END LIBTOOL CONFIG
39805
39806_LT_EOF
39807
39808  case $host_os in
39809  aix3*)
39810    cat <<\_LT_EOF >> "$cfgfile"
39811# AIX sometimes has problems with the GCC collect2 program.  For some
39812# reason, if we set the COLLECT_NAMES environment variable, the problems
39813# vanish in a puff of smoke.
39814if test "X${COLLECT_NAMES+set}" != Xset; then
39815  COLLECT_NAMES=
39816  export COLLECT_NAMES
39817fi
39818_LT_EOF
39819    ;;
39820  esac
39821
39822
39823ltmain="$ac_aux_dir/ltmain.sh"
39824
39825
39826  # We use sed instead of cat because bash on DJGPP gets confused if
39827  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
39828  # text mode, it properly converts lines to CR/LF.  This bash problem
39829  # is reportedly fixed, but why not run on old versions too?
39830  sed '$q' "$ltmain" >> "$cfgfile" \
39831     || (rm -f "$cfgfile"; exit 1)
39832
39833  if test x"$xsi_shell" = xyes; then
39834  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
39835func_dirname ()\
39836{\
39837\    case ${1} in\
39838\      */*) func_dirname_result="${1%/*}${2}" ;;\
39839\      *  ) func_dirname_result="${3}" ;;\
39840\    esac\
39841} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
39842  && mv -f "$cfgfile.tmp" "$cfgfile" \
39843    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39844test 0 -eq $? || _lt_function_replace_fail=:
39845
39846
39847  sed -e '/^func_basename ()$/,/^} # func_basename /c\
39848func_basename ()\
39849{\
39850\    func_basename_result="${1##*/}"\
39851} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
39852  && mv -f "$cfgfile.tmp" "$cfgfile" \
39853    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39854test 0 -eq $? || _lt_function_replace_fail=:
39855
39856
39857  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
39858func_dirname_and_basename ()\
39859{\
39860\    case ${1} in\
39861\      */*) func_dirname_result="${1%/*}${2}" ;;\
39862\      *  ) func_dirname_result="${3}" ;;\
39863\    esac\
39864\    func_basename_result="${1##*/}"\
39865} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
39866  && mv -f "$cfgfile.tmp" "$cfgfile" \
39867    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39868test 0 -eq $? || _lt_function_replace_fail=:
39869
39870
39871  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
39872func_stripname ()\
39873{\
39874\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
39875\    # positional parameters, so assign one to ordinary parameter first.\
39876\    func_stripname_result=${3}\
39877\    func_stripname_result=${func_stripname_result#"${1}"}\
39878\    func_stripname_result=${func_stripname_result%"${2}"}\
39879} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
39880  && mv -f "$cfgfile.tmp" "$cfgfile" \
39881    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39882test 0 -eq $? || _lt_function_replace_fail=:
39883
39884
39885  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
39886func_split_long_opt ()\
39887{\
39888\    func_split_long_opt_name=${1%%=*}\
39889\    func_split_long_opt_arg=${1#*=}\
39890} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
39891  && mv -f "$cfgfile.tmp" "$cfgfile" \
39892    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39893test 0 -eq $? || _lt_function_replace_fail=:
39894
39895
39896  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
39897func_split_short_opt ()\
39898{\
39899\    func_split_short_opt_arg=${1#??}\
39900\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
39901} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
39902  && mv -f "$cfgfile.tmp" "$cfgfile" \
39903    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39904test 0 -eq $? || _lt_function_replace_fail=:
39905
39906
39907  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
39908func_lo2o ()\
39909{\
39910\    case ${1} in\
39911\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
39912\      *)    func_lo2o_result=${1} ;;\
39913\    esac\
39914} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
39915  && mv -f "$cfgfile.tmp" "$cfgfile" \
39916    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39917test 0 -eq $? || _lt_function_replace_fail=:
39918
39919
39920  sed -e '/^func_xform ()$/,/^} # func_xform /c\
39921func_xform ()\
39922{\
39923    func_xform_result=${1%.*}.lo\
39924} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
39925  && mv -f "$cfgfile.tmp" "$cfgfile" \
39926    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39927test 0 -eq $? || _lt_function_replace_fail=:
39928
39929
39930  sed -e '/^func_arith ()$/,/^} # func_arith /c\
39931func_arith ()\
39932{\
39933    func_arith_result=$(( $* ))\
39934} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
39935  && mv -f "$cfgfile.tmp" "$cfgfile" \
39936    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39937test 0 -eq $? || _lt_function_replace_fail=:
39938
39939
39940  sed -e '/^func_len ()$/,/^} # func_len /c\
39941func_len ()\
39942{\
39943    func_len_result=${#1}\
39944} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
39945  && mv -f "$cfgfile.tmp" "$cfgfile" \
39946    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39947test 0 -eq $? || _lt_function_replace_fail=:
39948
39949fi
39950
39951if test x"$lt_shell_append" = xyes; then
39952  sed -e '/^func_append ()$/,/^} # func_append /c\
39953func_append ()\
39954{\
39955    eval "${1}+=\\${2}"\
39956} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
39957  && mv -f "$cfgfile.tmp" "$cfgfile" \
39958    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39959test 0 -eq $? || _lt_function_replace_fail=:
39960
39961
39962  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
39963func_append_quoted ()\
39964{\
39965\    func_quote_for_eval "${2}"\
39966\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
39967} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
39968  && mv -f "$cfgfile.tmp" "$cfgfile" \
39969    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39970test 0 -eq $? || _lt_function_replace_fail=:
39971
39972
39973  # Save a `func_append' function call where possible by direct use of '+='
39974  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
39975    && mv -f "$cfgfile.tmp" "$cfgfile" \
39976      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39977  test 0 -eq $? || _lt_function_replace_fail=:
39978else
39979  # Save a `func_append' function call even when '+=' is not available
39980  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
39981    && mv -f "$cfgfile.tmp" "$cfgfile" \
39982      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39983  test 0 -eq $? || _lt_function_replace_fail=:
39984fi
39985
39986if test x"$_lt_function_replace_fail" = x":"; then
39987  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
39988$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
39989fi
39990
39991
39992   mv -f "$cfgfile" "$ofile" ||
39993    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39994  chmod +x "$ofile"
39995
39996
39997    cat <<_LT_EOF >> "$ofile"
39998
39999# ### BEGIN LIBTOOL TAG CONFIG: CXX
40000
40001# The linker used to build libraries.
40002LD=$lt_LD_CXX
40003
40004# How to create reloadable object files.
40005reload_flag=$lt_reload_flag_CXX
40006reload_cmds=$lt_reload_cmds_CXX
40007
40008# Commands used to build an old-style archive.
40009old_archive_cmds=$lt_old_archive_cmds_CXX
40010
40011# A language specific compiler.
40012CC=$lt_compiler_CXX
40013
40014# Is the compiler the GNU compiler?
40015with_gcc=$GCC_CXX
40016
40017# Compiler flag to turn off builtin functions.
40018no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
40019
40020# Additional compiler flags for building library objects.
40021pic_flag=$lt_lt_prog_compiler_pic_CXX
40022
40023# How to pass a linker flag through the compiler.
40024wl=$lt_lt_prog_compiler_wl_CXX
40025
40026# Compiler flag to prevent dynamic linking.
40027link_static_flag=$lt_lt_prog_compiler_static_CXX
40028
40029# Does compiler simultaneously support -c and -o options?
40030compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
40031
40032# Whether or not to add -lc for building shared libraries.
40033build_libtool_need_lc=$archive_cmds_need_lc_CXX
40034
40035# Whether or not to disallow shared libs when runtime libs are static.
40036allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
40037
40038# Compiler flag to allow reflexive dlopens.
40039export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
40040
40041# Compiler flag to generate shared objects directly from archives.
40042whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
40043
40044# Whether the compiler copes with passing no objects directly.
40045compiler_needs_object=$lt_compiler_needs_object_CXX
40046
40047# Create an old-style archive from a shared archive.
40048old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
40049
40050# Create a temporary old-style archive to link instead of a shared archive.
40051old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
40052
40053# Commands used to build a shared archive.
40054archive_cmds=$lt_archive_cmds_CXX
40055archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
40056
40057# Commands used to build a loadable module if different from building
40058# a shared archive.
40059module_cmds=$lt_module_cmds_CXX
40060module_expsym_cmds=$lt_module_expsym_cmds_CXX
40061
40062# Whether we are building with GNU ld or not.
40063with_gnu_ld=$lt_with_gnu_ld_CXX
40064
40065# Flag that allows shared libraries with undefined symbols to be built.
40066allow_undefined_flag=$lt_allow_undefined_flag_CXX
40067
40068# Flag that enforces no undefined symbols.
40069no_undefined_flag=$lt_no_undefined_flag_CXX
40070
40071# Flag to hardcode \$libdir into a binary during linking.
40072# This must work even if \$libdir does not exist
40073hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
40074
40075# If ld is used when linking, flag to hardcode \$libdir into a binary
40076# during linking.  This must work even if \$libdir does not exist.
40077hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
40078
40079# Whether we need a single "-rpath" flag with a separated argument.
40080hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
40081
40082# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
40083# DIR into the resulting binary.
40084hardcode_direct=$hardcode_direct_CXX
40085
40086# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
40087# DIR into the resulting binary and the resulting library dependency is
40088# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
40089# library is relocated.
40090hardcode_direct_absolute=$hardcode_direct_absolute_CXX
40091
40092# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
40093# into the resulting binary.
40094hardcode_minus_L=$hardcode_minus_L_CXX
40095
40096# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
40097# into the resulting binary.
40098hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
40099
40100# Set to "yes" if building a shared library automatically hardcodes DIR
40101# into the library and all subsequent libraries and executables linked
40102# against it.
40103hardcode_automatic=$hardcode_automatic_CXX
40104
40105# Set to yes if linker adds runtime paths of dependent libraries
40106# to runtime path list.
40107inherit_rpath=$inherit_rpath_CXX
40108
40109# Whether libtool must link a program against all its dependency libraries.
40110link_all_deplibs=$link_all_deplibs_CXX
40111
40112# Set to "yes" if exported symbols are required.
40113always_export_symbols=$always_export_symbols_CXX
40114
40115# The commands to list exported symbols.
40116export_symbols_cmds=$lt_export_symbols_cmds_CXX
40117
40118# Symbols that should not be listed in the preloaded symbols.
40119exclude_expsyms=$lt_exclude_expsyms_CXX
40120
40121# Symbols that must always be exported.
40122include_expsyms=$lt_include_expsyms_CXX
40123
40124# Commands necessary for linking programs (against libraries) with templates.
40125prelink_cmds=$lt_prelink_cmds_CXX
40126
40127# Commands necessary for finishing linking programs.
40128postlink_cmds=$lt_postlink_cmds_CXX
40129
40130# Specify filename containing input files.
40131file_list_spec=$lt_file_list_spec_CXX
40132
40133# How to hardcode a shared library path into an executable.
40134hardcode_action=$hardcode_action_CXX
40135
40136# The directories searched by this compiler when creating a shared library.
40137compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
40138
40139# Dependencies to place before and after the objects being linked to
40140# create a shared library.
40141predep_objects=$lt_predep_objects_CXX
40142postdep_objects=$lt_postdep_objects_CXX
40143predeps=$lt_predeps_CXX
40144postdeps=$lt_postdeps_CXX
40145
40146# The library search path used internally by the compiler when linking
40147# a shared library.
40148compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
40149
40150# ### END LIBTOOL TAG CONFIG: CXX
40151_LT_EOF
40152
40153 ;;
40154    "ntpd/complete.conf":F) sed -e '/^rlimit$/d' -e '/^$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
40155    "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;;
40156    "scripts/build/genAuthors":F) chmod +x scripts/build/genAuthors ;;
40157    "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
40158    "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
40159    "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
40160    "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
40161    "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
40162    "scripts/ntpver":F) chmod +x scripts/ntpver ;;
40163    "scripts/plot_summary":F) chmod +x scripts/plot_summary ;;
40164    "scripts/summary":F) chmod +x scripts/summary ;;
40165    "scripts/update-leap/update-leap":F) chmod +x scripts/update-leap/update-leap ;;
40166
40167  esac
40168done # for ac_tag
40169
40170
40171as_fn_exit 0
40172_ACEOF
40173ac_clean_files=$ac_clean_files_save
40174
40175test $ac_write_fail = 0 ||
40176  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
40177
40178
40179# configure is writing to config.log, and then calls config.status.
40180# config.status does its own redirection, appending to config.log.
40181# Unfortunately, on DOS this fails, as config.log is still kept open
40182# by configure, so config.status won't be able to write to it; its
40183# output is simply discarded.  So we exec the FD to /dev/null,
40184# effectively closing config.log, so it can be properly (re)opened and
40185# appended to by config.status.  When coming back to configure, we
40186# need to make the FD available again.
40187if test "$no_create" != yes; then
40188  ac_cs_success=:
40189  ac_config_status_args=
40190  test "$silent" = yes &&
40191    ac_config_status_args="$ac_config_status_args --quiet"
40192  exec 5>/dev/null
40193  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40194  exec 5>>config.log
40195  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40196  # would make configure fail if this is the last instruction.
40197  $ac_cs_success || as_fn_exit 1
40198fi
40199
40200#
40201# CONFIG_SUBDIRS section.
40202#
40203if test "$no_recursion" != yes; then
40204
40205  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
40206  # so they do not pile up.
40207  ac_sub_configure_args=
40208  ac_prev=
40209  eval "set x $ac_configure_args"
40210  shift
40211  for ac_arg
40212  do
40213    if test -n "$ac_prev"; then
40214      ac_prev=
40215      continue
40216    fi
40217    case $ac_arg in
40218    -cache-file | --cache-file | --cache-fil | --cache-fi \
40219    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
40220      ac_prev=cache_file ;;
40221    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
40222    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
40223    | --c=*)
40224      ;;
40225    --config-cache | -C)
40226      ;;
40227    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
40228      ac_prev=srcdir ;;
40229    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
40230      ;;
40231    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
40232      ac_prev=prefix ;;
40233    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
40234      ;;
40235    --disable-option-checking)
40236      ;;
40237    *)
40238      case $ac_arg in
40239      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
40240      esac
40241      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
40242    esac
40243  done
40244
40245  # Always prepend --prefix to ensure using the same prefix
40246  # in subdir configurations.
40247  ac_arg="--prefix=$prefix"
40248  case $ac_arg in
40249  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
40250  esac
40251  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
40252
40253  # Pass --silent
40254  if test "$silent" = yes; then
40255    ac_sub_configure_args="--silent $ac_sub_configure_args"
40256  fi
40257
40258  # Always prepend --disable-option-checking to silence warnings, since
40259  # different subdirs can have different --enable and --with options.
40260  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
40261
40262  ac_popdir=`pwd`
40263  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
40264
40265    # Do not complain, so a configure script can configure whichever
40266    # parts of a large source tree are present.
40267    test -d "$srcdir/$ac_dir" || continue
40268
40269    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
40270    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
40271    $as_echo "$ac_msg" >&6
40272    as_dir="$ac_dir"; as_fn_mkdir_p
40273    ac_builddir=.
40274
40275case "$ac_dir" in
40276.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40277*)
40278  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
40279  # A ".." for each directory in $ac_dir_suffix.
40280  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
40281  case $ac_top_builddir_sub in
40282  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40283  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40284  esac ;;
40285esac
40286ac_abs_top_builddir=$ac_pwd
40287ac_abs_builddir=$ac_pwd$ac_dir_suffix
40288# for backward compatibility:
40289ac_top_builddir=$ac_top_build_prefix
40290
40291case $srcdir in
40292  .)  # We are building in place.
40293    ac_srcdir=.
40294    ac_top_srcdir=$ac_top_builddir_sub
40295    ac_abs_top_srcdir=$ac_pwd ;;
40296  [\\/]* | ?:[\\/]* )  # Absolute name.
40297    ac_srcdir=$srcdir$ac_dir_suffix;
40298    ac_top_srcdir=$srcdir
40299    ac_abs_top_srcdir=$srcdir ;;
40300  *) # Relative name.
40301    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40302    ac_top_srcdir=$ac_top_build_prefix$srcdir
40303    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40304esac
40305ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40306
40307
40308    cd "$ac_dir"
40309
40310    # Check for guested configure; otherwise get Cygnus style configure.
40311    if test -f "$ac_srcdir/configure.gnu"; then
40312      ac_sub_configure=$ac_srcdir/configure.gnu
40313    elif test -f "$ac_srcdir/configure"; then
40314      ac_sub_configure=$ac_srcdir/configure
40315    elif test -f "$ac_srcdir/configure.in"; then
40316      # This should be Cygnus configure.
40317      ac_sub_configure=$ac_aux_dir/configure
40318    else
40319      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
40320$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
40321      ac_sub_configure=
40322    fi
40323
40324    # The recursion is here.
40325    if test -n "$ac_sub_configure"; then
40326      # Make the cache file name correct relative to the subdirectory.
40327      case $cache_file in
40328      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
40329      *) # Relative name.
40330	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
40331      esac
40332
40333      { $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
40334$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
40335      # The eval makes quoting arguments work.
40336      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
40337	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
40338	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
40339    fi
40340
40341    cd "$ac_popdir"
40342  done
40343fi
40344if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
40345  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
40346$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
40347fi
40348
40349