xref: /freebsd/contrib/ntp/sntp/configure (revision 65b71c48d226f3ef3eb1c4452dccc678a7d2ac96)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for sntp 4.2.8p3.
4#
5# Report bugs to <http://bugs.ntp.org./>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://bugs.ntp.org./ about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='sntp'
592PACKAGE_TARNAME='sntp'
593PACKAGE_VERSION='4.2.8p3'
594PACKAGE_STRING='sntp 4.2.8p3'
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
639GTEST_AVAILABLE_FALSE
640GTEST_AVAILABLE_TRUE
641GTEST_CPPFLAGS
642GTEST_CXXFLAGS
643GTEST_LIBS
644GTEST_LDFLAGS
645GTEST_CONFIG
646CXXCPP
647am__fastdepCXX_FALSE
648am__fastdepCXX_TRUE
649CXXDEPMODE
650ac_ct_CXX
651CXXFLAGS
652CXX
653UNITYBUILD_AVAILABLE_FALSE
654UNITYBUILD_AVAILABLE_TRUE
655PATH_RUBY
656VER_SUFFIX
657LIB_SYSLOG
658subdirs
659BUILD_LIBEVENT_FALSE
660BUILD_LIBEVENT_TRUE
661LDADD_LIBEVENT
662CPPFLAGS_LIBEVENT
663PKG_CONFIG
664NTP_FORCE_LIBEVENT_DIST
665LIBOPTS_DIR
666LIBOPTS_CFLAGS
667LIBOPTS_LDADD
668NEED_LIBOPTS_FALSE
669NEED_LIBOPTS_TRUE
670INSTALL_LIBOPTS_FALSE
671INSTALL_LIBOPTS_TRUE
672POSIX_SHELL
673GL_GENERATE_STDNORETURN_H_FALSE
674GL_GENERATE_STDNORETURN_H_TRUE
675STDNORETURN_H
676BUILD_SNTP_FALSE
677BUILD_SNTP_TRUE
678SNTP
679LIBTOOL_DEPS
680OTOOL64
681OTOOL
682LIPO
683NMEDIT
684DSYMUTIL
685MANIFEST_TOOL
686RANLIB
687DLLTOOL
688OBJDUMP
689LN_S
690NM
691ac_ct_DUMPBIN
692DUMPBIN
693LIBTOOL
694LIBOBJS
695PTHREADS_FALSE
696PTHREADS_TRUE
697LIBISC_PTHREADS_NOTHREADS
698PTHREAD_LIBS
699HAVE_INLINE
700LDADD_LIBUTIL
701ALLOCA
702LIBM
703EDITLINE_LIBS
704LD
705FGREP
706SED
707LDADD_LIBNTP
708NTP_CROSSCOMPILE_FALSE
709NTP_CROSSCOMPILE_TRUE
710ac_ct_AR
711AR
712INSTALL_UPDATE_LEAP_FALSE
713INSTALL_UPDATE_LEAP_TRUE
714UPDATE_LEAP_NI
715UPDATE_LEAP_MS
716UPDATE_LEAP_DS
717UPDATE_LEAP_DL
718UPDATE_LEAP_DB
719TIMETRIM_NI
720TIMETRIM_MS
721TIMETRIM_DS
722TIMETRIM_DL
723TIMETRIM_DB
724TICKADJ_NI
725TICKADJ_MS
726TICKADJ_DS
727TICKADJ_DL
728TICKADJ_DB
729SNTP_NI
730SNTP_MS
731SNTP_DS
732SNTP_DL
733SNTP_DB
734NTP_WAIT_NI
735NTP_WAIT_MS
736NTP_WAIT_DS
737NTP_WAIT_DL
738NTP_WAIT_DB
739NTP_KEYGEN_NI
740NTP_KEYGEN_MS
741NTP_KEYGEN_DS
742NTP_KEYGEN_DL
743NTP_KEYGEN_DB
744NTPTRACE_NI
745NTPTRACE_MS
746NTPTRACE_DS
747NTPTRACE_DL
748NTPTRACE_DB
749NTPTIME_NI
750NTPTIME_MS
751NTPTIME_DS
752NTPTIME_DL
753NTPTIME_DB
754INSTALL_NTPSWEEP_FALSE
755INSTALL_NTPSWEEP_TRUE
756NTPSWEEP_NI
757NTPSWEEP_MS
758NTPSWEEP_DS
759NTPSWEEP_DL
760NTPSWEEP_DB
761NTPSNMPD_NI
762NTPSNMPD_MS
763NTPSNMPD_DS
764NTPSNMPD_DL
765NTPSNMPD_DB
766NTPQ_NI
767NTPQ_MS
768NTPQ_DS
769NTPQ_DL
770NTPQ_DB
771NTPD_NI
772NTPD_MS
773NTPD_DS
774NTPD_DL
775NTPD_DB
776NTPDSIM_NI
777NTPDSIM_MS
778NTPDSIM_DS
779NTPDSIM_DL
780NTPDSIM_DB
781NTPDC_NI
782NTPDC_MS
783NTPDC_DS
784NTPDC_DL
785NTPDC_DB
786NTPDATE_NI
787NTPDATE_MS
788NTPDATE_DS
789NTPDATE_DL
790NTPDATE_DB
791MANTAGFMT
792CALC_TICKADJ_NI
793CALC_TICKADJ_MS
794CALC_TICKADJ_DS
795CALC_TICKADJ_DL
796CALC_TICKADJ_DB
797WANT_CALC_TICKADJ_MS_FALSE
798WANT_CALC_TICKADJ_MS_TRUE
799LDFLAGS_NTP
800LDADD_NTP
801CPPFLAGS_NTP
802CFLAGS_NTP
803EGREP
804GREP
805CPP
806am__fastdepCC_FALSE
807am__fastdepCC_TRUE
808CCDEPMODE
809am__nodep
810AMDEPBACKSLASH
811AMDEP_FALSE
812AMDEP_TRUE
813am__quote
814am__include
815DEPDIR
816OBJEXT
817EXEEXT
818ac_ct_CC
819CPPFLAGS
820LDFLAGS
821CFLAGS
822CC
823host_os
824host_vendor
825host_cpu
826host
827build_os
828build_vendor
829build_cpu
830build
831AM_BACKSLASH
832AM_DEFAULT_VERBOSITY
833AM_DEFAULT_V
834AM_V
835am__untar
836am__tar
837AMTAR
838am__leading_dot
839SET_MAKE
840AWK
841mkdir_p
842MKDIR_P
843INSTALL_STRIP_PROGRAM
844STRIP
845install_sh
846MAKEINFO
847AUTOHEADER
848AUTOMAKE
849AUTOCONF
850ACLOCAL
851VERSION
852PACKAGE
853CYGPATH_W
854am__isrc
855INSTALL_DATA
856INSTALL_SCRIPT
857INSTALL_PROGRAM
858target_alias
859host_alias
860build_alias
861LIBS
862ECHO_T
863ECHO_N
864ECHO_C
865DEFS
866mandir
867localedir
868libdir
869psdir
870pdfdir
871dvidir
872htmldir
873infodir
874docdir
875oldincludedir
876includedir
877localstatedir
878sharedstatedir
879sysconfdir
880datadir
881datarootdir
882libexecdir
883sbindir
884bindir
885program_transform_name
886prefix
887exec_prefix
888PACKAGE_URL
889PACKAGE_BUGREPORT
890PACKAGE_STRING
891PACKAGE_VERSION
892PACKAGE_TARNAME
893PACKAGE_NAME
894PATH_SEPARATOR
895SHELL'
896ac_subst_files=''
897ac_user_opts='
898enable_option_checking
899enable_silent_rules
900enable_dependency_tracking
901with_locfile
902with_gnu_ld
903with_lineeditlibs
904enable_debugging
905enable_thread_support
906with_threads
907with_yielding_select
908enable_c99_snprintf
909enable_clockctl
910enable_linuxcaps
911enable_solarisprivs
912enable_shared
913enable_static
914with_pic
915enable_fast_install
916with_sysroot
917enable_libtool_lock
918with_sntp
919enable_nls
920enable_local_libopts
921enable_libopts_install
922with_autoopts_config
923with_regex_header
924with_libregex
925with_libregex_cflags
926with_libregex_libs
927enable_optional_args
928enable_local_libevent
929with_crypto
930with_openssl_libdir
931with_openssl_incdir
932with_rpath
933enable_ipv6
934with_kame
935enable_getifaddrs
936with_gtest
937'
938      ac_precious_vars='build_alias
939host_alias
940target_alias
941CC
942CFLAGS
943LDFLAGS
944LIBS
945CPPFLAGS
946CPP
947CXX
948CXXFLAGS
949CCC
950CXXCPP'
951ac_subdirs_all='libevent'
952
953# Initialize some variables set by options.
954ac_init_help=
955ac_init_version=false
956ac_unrecognized_opts=
957ac_unrecognized_sep=
958# The variables have the same names as the options, with
959# dashes changed to underlines.
960cache_file=/dev/null
961exec_prefix=NONE
962no_create=
963no_recursion=
964prefix=NONE
965program_prefix=NONE
966program_suffix=NONE
967program_transform_name=s,x,x,
968silent=
969site=
970srcdir=
971verbose=
972x_includes=NONE
973x_libraries=NONE
974
975# Installation directory options.
976# These are left unexpanded so users can "make install exec_prefix=/foo"
977# and all the variables that are supposed to be based on exec_prefix
978# by default will actually change.
979# Use braces instead of parens because sh, perl, etc. also accept them.
980# (The list follows the same order as the GNU Coding Standards.)
981bindir='${exec_prefix}/bin'
982sbindir='${exec_prefix}/sbin'
983libexecdir='${exec_prefix}/libexec'
984datarootdir='${prefix}/share'
985datadir='${datarootdir}'
986sysconfdir='${prefix}/etc'
987sharedstatedir='${prefix}/com'
988localstatedir='${prefix}/var'
989includedir='${prefix}/include'
990oldincludedir='/usr/include'
991docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
992infodir='${datarootdir}/info'
993htmldir='${docdir}'
994dvidir='${docdir}'
995pdfdir='${docdir}'
996psdir='${docdir}'
997libdir='${exec_prefix}/lib'
998localedir='${datarootdir}/locale'
999mandir='${datarootdir}/man'
1000
1001ac_prev=
1002ac_dashdash=
1003for ac_option
1004do
1005  # If the previous option needs an argument, assign it.
1006  if test -n "$ac_prev"; then
1007    eval $ac_prev=\$ac_option
1008    ac_prev=
1009    continue
1010  fi
1011
1012  case $ac_option in
1013  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014  *=)   ac_optarg= ;;
1015  *)    ac_optarg=yes ;;
1016  esac
1017
1018  # Accept the important Cygnus configure options, so we can diagnose typos.
1019
1020  case $ac_dashdash$ac_option in
1021  --)
1022    ac_dashdash=yes ;;
1023
1024  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1025    ac_prev=bindir ;;
1026  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1027    bindir=$ac_optarg ;;
1028
1029  -build | --build | --buil | --bui | --bu)
1030    ac_prev=build_alias ;;
1031  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1032    build_alias=$ac_optarg ;;
1033
1034  -cache-file | --cache-file | --cache-fil | --cache-fi \
1035  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1036    ac_prev=cache_file ;;
1037  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1038  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1039    cache_file=$ac_optarg ;;
1040
1041  --config-cache | -C)
1042    cache_file=config.cache ;;
1043
1044  -datadir | --datadir | --datadi | --datad)
1045    ac_prev=datadir ;;
1046  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1047    datadir=$ac_optarg ;;
1048
1049  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1050  | --dataroo | --dataro | --datar)
1051    ac_prev=datarootdir ;;
1052  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1053  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1054    datarootdir=$ac_optarg ;;
1055
1056  -disable-* | --disable-*)
1057    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1058    # Reject names that are not valid shell variable names.
1059    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060      as_fn_error $? "invalid feature name: $ac_useropt"
1061    ac_useropt_orig=$ac_useropt
1062    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063    case $ac_user_opts in
1064      *"
1065"enable_$ac_useropt"
1066"*) ;;
1067      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1068	 ac_unrecognized_sep=', ';;
1069    esac
1070    eval enable_$ac_useropt=no ;;
1071
1072  -docdir | --docdir | --docdi | --doc | --do)
1073    ac_prev=docdir ;;
1074  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075    docdir=$ac_optarg ;;
1076
1077  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078    ac_prev=dvidir ;;
1079  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080    dvidir=$ac_optarg ;;
1081
1082  -enable-* | --enable-*)
1083    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084    # Reject names that are not valid shell variable names.
1085    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086      as_fn_error $? "invalid feature name: $ac_useropt"
1087    ac_useropt_orig=$ac_useropt
1088    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089    case $ac_user_opts in
1090      *"
1091"enable_$ac_useropt"
1092"*) ;;
1093      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1094	 ac_unrecognized_sep=', ';;
1095    esac
1096    eval enable_$ac_useropt=\$ac_optarg ;;
1097
1098  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1099  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1100  | --exec | --exe | --ex)
1101    ac_prev=exec_prefix ;;
1102  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1103  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1104  | --exec=* | --exe=* | --ex=*)
1105    exec_prefix=$ac_optarg ;;
1106
1107  -gas | --gas | --ga | --g)
1108    # Obsolete; use --with-gas.
1109    with_gas=yes ;;
1110
1111  -help | --help | --hel | --he | -h)
1112    ac_init_help=long ;;
1113  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1114    ac_init_help=recursive ;;
1115  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1116    ac_init_help=short ;;
1117
1118  -host | --host | --hos | --ho)
1119    ac_prev=host_alias ;;
1120  -host=* | --host=* | --hos=* | --ho=*)
1121    host_alias=$ac_optarg ;;
1122
1123  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1124    ac_prev=htmldir ;;
1125  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1126  | --ht=*)
1127    htmldir=$ac_optarg ;;
1128
1129  -includedir | --includedir | --includedi | --included | --include \
1130  | --includ | --inclu | --incl | --inc)
1131    ac_prev=includedir ;;
1132  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1133  | --includ=* | --inclu=* | --incl=* | --inc=*)
1134    includedir=$ac_optarg ;;
1135
1136  -infodir | --infodir | --infodi | --infod | --info | --inf)
1137    ac_prev=infodir ;;
1138  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1139    infodir=$ac_optarg ;;
1140
1141  -libdir | --libdir | --libdi | --libd)
1142    ac_prev=libdir ;;
1143  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1144    libdir=$ac_optarg ;;
1145
1146  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1147  | --libexe | --libex | --libe)
1148    ac_prev=libexecdir ;;
1149  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1150  | --libexe=* | --libex=* | --libe=*)
1151    libexecdir=$ac_optarg ;;
1152
1153  -localedir | --localedir | --localedi | --localed | --locale)
1154    ac_prev=localedir ;;
1155  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1156    localedir=$ac_optarg ;;
1157
1158  -localstatedir | --localstatedir | --localstatedi | --localstated \
1159  | --localstate | --localstat | --localsta | --localst | --locals)
1160    ac_prev=localstatedir ;;
1161  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1162  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1163    localstatedir=$ac_optarg ;;
1164
1165  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1166    ac_prev=mandir ;;
1167  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1168    mandir=$ac_optarg ;;
1169
1170  -nfp | --nfp | --nf)
1171    # Obsolete; use --without-fp.
1172    with_fp=no ;;
1173
1174  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1175  | --no-cr | --no-c | -n)
1176    no_create=yes ;;
1177
1178  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1179  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1180    no_recursion=yes ;;
1181
1182  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1183  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1184  | --oldin | --oldi | --old | --ol | --o)
1185    ac_prev=oldincludedir ;;
1186  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1187  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1188  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1189    oldincludedir=$ac_optarg ;;
1190
1191  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1192    ac_prev=prefix ;;
1193  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1194    prefix=$ac_optarg ;;
1195
1196  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1197  | --program-pre | --program-pr | --program-p)
1198    ac_prev=program_prefix ;;
1199  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1200  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1201    program_prefix=$ac_optarg ;;
1202
1203  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1204  | --program-suf | --program-su | --program-s)
1205    ac_prev=program_suffix ;;
1206  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1207  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1208    program_suffix=$ac_optarg ;;
1209
1210  -program-transform-name | --program-transform-name \
1211  | --program-transform-nam | --program-transform-na \
1212  | --program-transform-n | --program-transform- \
1213  | --program-transform | --program-transfor \
1214  | --program-transfo | --program-transf \
1215  | --program-trans | --program-tran \
1216  | --progr-tra | --program-tr | --program-t)
1217    ac_prev=program_transform_name ;;
1218  -program-transform-name=* | --program-transform-name=* \
1219  | --program-transform-nam=* | --program-transform-na=* \
1220  | --program-transform-n=* | --program-transform-=* \
1221  | --program-transform=* | --program-transfor=* \
1222  | --program-transfo=* | --program-transf=* \
1223  | --program-trans=* | --program-tran=* \
1224  | --progr-tra=* | --program-tr=* | --program-t=*)
1225    program_transform_name=$ac_optarg ;;
1226
1227  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1228    ac_prev=pdfdir ;;
1229  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1230    pdfdir=$ac_optarg ;;
1231
1232  -psdir | --psdir | --psdi | --psd | --ps)
1233    ac_prev=psdir ;;
1234  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1235    psdir=$ac_optarg ;;
1236
1237  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238  | -silent | --silent | --silen | --sile | --sil)
1239    silent=yes ;;
1240
1241  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1242    ac_prev=sbindir ;;
1243  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1244  | --sbi=* | --sb=*)
1245    sbindir=$ac_optarg ;;
1246
1247  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1248  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1249  | --sharedst | --shareds | --shared | --share | --shar \
1250  | --sha | --sh)
1251    ac_prev=sharedstatedir ;;
1252  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1253  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1254  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1255  | --sha=* | --sh=*)
1256    sharedstatedir=$ac_optarg ;;
1257
1258  -site | --site | --sit)
1259    ac_prev=site ;;
1260  -site=* | --site=* | --sit=*)
1261    site=$ac_optarg ;;
1262
1263  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1264    ac_prev=srcdir ;;
1265  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1266    srcdir=$ac_optarg ;;
1267
1268  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1269  | --syscon | --sysco | --sysc | --sys | --sy)
1270    ac_prev=sysconfdir ;;
1271  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1272  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1273    sysconfdir=$ac_optarg ;;
1274
1275  -target | --target | --targe | --targ | --tar | --ta | --t)
1276    ac_prev=target_alias ;;
1277  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1278    target_alias=$ac_optarg ;;
1279
1280  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1281    verbose=yes ;;
1282
1283  -version | --version | --versio | --versi | --vers | -V)
1284    ac_init_version=: ;;
1285
1286  -with-* | --with-*)
1287    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1288    # Reject names that are not valid shell variable names.
1289    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290      as_fn_error $? "invalid package name: $ac_useropt"
1291    ac_useropt_orig=$ac_useropt
1292    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293    case $ac_user_opts in
1294      *"
1295"with_$ac_useropt"
1296"*) ;;
1297      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1298	 ac_unrecognized_sep=', ';;
1299    esac
1300    eval with_$ac_useropt=\$ac_optarg ;;
1301
1302  -without-* | --without-*)
1303    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1304    # Reject names that are not valid shell variable names.
1305    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1306      as_fn_error $? "invalid package name: $ac_useropt"
1307    ac_useropt_orig=$ac_useropt
1308    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1309    case $ac_user_opts in
1310      *"
1311"with_$ac_useropt"
1312"*) ;;
1313      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1314	 ac_unrecognized_sep=', ';;
1315    esac
1316    eval with_$ac_useropt=no ;;
1317
1318  --x)
1319    # Obsolete; use --with-x.
1320    with_x=yes ;;
1321
1322  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1323  | --x-incl | --x-inc | --x-in | --x-i)
1324    ac_prev=x_includes ;;
1325  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1326  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1327    x_includes=$ac_optarg ;;
1328
1329  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1330  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1331    ac_prev=x_libraries ;;
1332  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1333  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1334    x_libraries=$ac_optarg ;;
1335
1336  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1337Try \`$0 --help' for more information"
1338    ;;
1339
1340  *=*)
1341    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1342    # Reject names that are not valid shell variable names.
1343    case $ac_envvar in #(
1344      '' | [0-9]* | *[!_$as_cr_alnum]* )
1345      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1346    esac
1347    eval $ac_envvar=\$ac_optarg
1348    export $ac_envvar ;;
1349
1350  *)
1351    # FIXME: should be removed in autoconf 3.0.
1352    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1353    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1354      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1355    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1356    ;;
1357
1358  esac
1359done
1360
1361if test -n "$ac_prev"; then
1362  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1363  as_fn_error $? "missing argument to $ac_option"
1364fi
1365
1366if test -n "$ac_unrecognized_opts"; then
1367  case $enable_option_checking in
1368    no) ;;
1369    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1370    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1371  esac
1372fi
1373
1374# Check all directory arguments for consistency.
1375for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1376		datadir sysconfdir sharedstatedir localstatedir includedir \
1377		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1378		libdir localedir mandir
1379do
1380  eval ac_val=\$$ac_var
1381  # Remove trailing slashes.
1382  case $ac_val in
1383    */ )
1384      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1385      eval $ac_var=\$ac_val;;
1386  esac
1387  # Be sure to have absolute directory names.
1388  case $ac_val in
1389    [\\/$]* | ?:[\\/]* )  continue;;
1390    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1391  esac
1392  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1393done
1394
1395# There might be people who depend on the old broken behavior: `$host'
1396# used to hold the argument of --host etc.
1397# FIXME: To remove some day.
1398build=$build_alias
1399host=$host_alias
1400target=$target_alias
1401
1402# FIXME: To remove some day.
1403if test "x$host_alias" != x; then
1404  if test "x$build_alias" = x; then
1405    cross_compiling=maybe
1406  elif test "x$build_alias" != "x$host_alias"; then
1407    cross_compiling=yes
1408  fi
1409fi
1410
1411ac_tool_prefix=
1412test -n "$host_alias" && ac_tool_prefix=$host_alias-
1413
1414test "$silent" = yes && exec 6>/dev/null
1415
1416
1417ac_pwd=`pwd` && test -n "$ac_pwd" &&
1418ac_ls_di=`ls -di .` &&
1419ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1420  as_fn_error $? "working directory cannot be determined"
1421test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1422  as_fn_error $? "pwd does not report name of working directory"
1423
1424
1425# Find the source files, if location was not specified.
1426if test -z "$srcdir"; then
1427  ac_srcdir_defaulted=yes
1428  # Try the directory containing this script, then the parent directory.
1429  ac_confdir=`$as_dirname -- "$as_myself" ||
1430$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1431	 X"$as_myself" : 'X\(//\)[^/]' \| \
1432	 X"$as_myself" : 'X\(//\)$' \| \
1433	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1434$as_echo X"$as_myself" |
1435    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1436	    s//\1/
1437	    q
1438	  }
1439	  /^X\(\/\/\)[^/].*/{
1440	    s//\1/
1441	    q
1442	  }
1443	  /^X\(\/\/\)$/{
1444	    s//\1/
1445	    q
1446	  }
1447	  /^X\(\/\).*/{
1448	    s//\1/
1449	    q
1450	  }
1451	  s/.*/./; q'`
1452  srcdir=$ac_confdir
1453  if test ! -r "$srcdir/$ac_unique_file"; then
1454    srcdir=..
1455  fi
1456else
1457  ac_srcdir_defaulted=no
1458fi
1459if test ! -r "$srcdir/$ac_unique_file"; then
1460  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1461  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1462fi
1463ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1464ac_abs_confdir=`(
1465	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1466	pwd)`
1467# When building in place, set srcdir=.
1468if test "$ac_abs_confdir" = "$ac_pwd"; then
1469  srcdir=.
1470fi
1471# Remove unnecessary trailing slashes from srcdir.
1472# Double slashes in file names in object file debugging info
1473# mess up M-x gdb in Emacs.
1474case $srcdir in
1475*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1476esac
1477for ac_var in $ac_precious_vars; do
1478  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1479  eval ac_env_${ac_var}_value=\$${ac_var}
1480  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1481  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1482done
1483
1484#
1485# Report the --help message.
1486#
1487if test "$ac_init_help" = "long"; then
1488  # Omit some internal or obsolete options to make the list less imposing.
1489  # This message is too long to be a string in the A/UX 3.1 sh.
1490  cat <<_ACEOF
1491\`configure' configures sntp 4.2.8p3 to adapt to many kinds of systems.
1492
1493Usage: $0 [OPTION]... [VAR=VALUE]...
1494
1495To assign environment variables (e.g., CC, CFLAGS...), specify them as
1496VAR=VALUE.  See below for descriptions of some of the useful variables.
1497
1498Defaults for the options are specified in brackets.
1499
1500Configuration:
1501  -h, --help              display this help and exit
1502      --help=short        display options specific to this package
1503      --help=recursive    display the short help of all the included packages
1504  -V, --version           display version information and exit
1505  -q, --quiet, --silent   do not print \`checking ...' messages
1506      --cache-file=FILE   cache test results in FILE [disabled]
1507  -C, --config-cache      alias for \`--cache-file=config.cache'
1508  -n, --no-create         do not create output files
1509      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1510
1511Installation directories:
1512  --prefix=PREFIX         install architecture-independent files in PREFIX
1513                          [$ac_default_prefix]
1514  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1515                          [PREFIX]
1516
1517By default, \`make install' will install all the files in
1518\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1519an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1520for instance \`--prefix=\$HOME'.
1521
1522For better control, use the options below.
1523
1524Fine tuning of the installation directories:
1525  --bindir=DIR            user executables [EPREFIX/bin]
1526  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1527  --libexecdir=DIR        program executables [EPREFIX/libexec]
1528  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1529  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1530  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1531  --libdir=DIR            object code libraries [EPREFIX/lib]
1532  --includedir=DIR        C header files [PREFIX/include]
1533  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1534  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1535  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1536  --infodir=DIR           info documentation [DATAROOTDIR/info]
1537  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1538  --mandir=DIR            man documentation [DATAROOTDIR/man]
1539  --docdir=DIR            documentation root [DATAROOTDIR/doc/sntp]
1540  --htmldir=DIR           html documentation [DOCDIR]
1541  --dvidir=DIR            dvi documentation [DOCDIR]
1542  --pdfdir=DIR            pdf documentation [DOCDIR]
1543  --psdir=DIR             ps documentation [DOCDIR]
1544_ACEOF
1545
1546  cat <<\_ACEOF
1547
1548Program names:
1549  --program-prefix=PREFIX            prepend PREFIX to installed program names
1550  --program-suffix=SUFFIX            append SUFFIX to installed program names
1551  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1552
1553System types:
1554  --build=BUILD     configure for building on BUILD [guessed]
1555  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1556_ACEOF
1557fi
1558
1559if test -n "$ac_init_help"; then
1560  case $ac_init_help in
1561     short | recursive ) echo "Configuration of sntp 4.2.8p3:";;
1562   esac
1563  cat <<\_ACEOF
1564
1565Optional Features:
1566  --disable-option-checking  ignore unrecognized --enable/--with options
1567  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1568  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1569  --enable-silent-rules   less verbose build output (undo: "make V=1")
1570  --disable-silent-rules  verbose build output (undo: "make V=0")
1571  --enable-dependency-tracking
1572                          do not reject slow dependency extractors
1573  --disable-dependency-tracking
1574                          speeds up one-time build
1575  defaults:               + yes, - no, s system-specific
1576  --enable-debugging      + include ntpd debugging code
1577  --enable-thread-support s use threads (+ if available)
1578  --enable-c99-snprintf   s force replacement
1579  --enable-clockctl       s Use /dev/clockctl for non-root clock control
1580  --enable-linuxcaps      + Use Linux capabilities for non-root clock control
1581  --enable-solarisprivs   + Use Solaris privileges for non-root clock control
1582  --enable-shared[=PKGS]  build shared libraries [default=no]
1583  --enable-static[=PKGS]  build static libraries [default=yes]
1584  --enable-fast-install[=PKGS]
1585                          optimize for fast installation [default=yes]
1586  --disable-libtool-lock  avoid locking (might break parallel builds)
1587  --disable-nls           disable nls support in libopts
1588  --enable-local-libopts  Use the supplied libopts tearoff code
1589  --enable-libopts-install
1590                          Install libopts with client installation
1591  --disable-optional-args not wanting optional option args
1592  --enable-local-libevent Force using the supplied libevent tearoff code
1593  --enable-ipv6           s use IPv6?
1594
1595  --enable-getifaddrs     + Enable the use of getifaddrs() [[yes|no]].
1596
1597Optional Packages:
1598  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1599  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1600  --with-locfile=XXX      os-specific or "legacy"
1601  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1602  --with-lineeditlibs     edit,editline (readline may be specified if desired)
1603  --with-threads	  with threads [auto]
1604  --with-yielding-select  with yielding select [auto]
1605  --with-pic              try to use only PIC/non-PIC objects [default=use
1606                          both]
1607  --with-sysroot=DIR Search for dependent libraries within DIR
1608                        (or the compiler's sysroot if not specified).
1609  --without-sntp          - disable building sntp and sntp/tests
1610  --with-autoopts-config  specify the config-info script
1611  --with-regex-header     a reg expr header is specified
1612  --with-libregex         libregex installation prefix
1613  --with-libregex-cflags  libregex compile flags
1614  --with-libregex-libs    libregex link command arguments
1615  --with-crypto           + =openssl,libcrypto
1616
1617  --with-openssl-libdir   + =/something/reasonable
1618
1619  --with-openssl-incdir   + =/something/reasonable
1620
1621  --without-rpath         s Disable auto-added -R linker paths
1622
1623  --with-kame             - =/usr/local/v6
1624  --with-gtest            Use the gtest framework (Default: if it's available)
1625
1626Some influential environment variables:
1627  CC          C compiler command
1628  CFLAGS      C compiler flags
1629  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1630              nonstandard directory <lib dir>
1631  LIBS        libraries to pass to the linker, e.g. -l<library>
1632  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633              you have headers in a nonstandard directory <include dir>
1634  CPP         C preprocessor
1635  CXX         C++ compiler command
1636  CXXFLAGS    C++ compiler flags
1637  CXXCPP      C++ preprocessor
1638
1639Use these variables to override the choices made by `configure' or to help
1640it to find libraries and programs with nonstandard names/locations.
1641
1642Report bugs to <http://bugs.ntp.org./>.
1643sntp home page: <http://www.ntp.org./>.
1644_ACEOF
1645ac_status=$?
1646fi
1647
1648if test "$ac_init_help" = "recursive"; then
1649  # If there are subdirs, report their specific --help.
1650  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1651    test -d "$ac_dir" ||
1652      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1653      continue
1654    ac_builddir=.
1655
1656case "$ac_dir" in
1657.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658*)
1659  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1660  # A ".." for each directory in $ac_dir_suffix.
1661  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1662  case $ac_top_builddir_sub in
1663  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1665  esac ;;
1666esac
1667ac_abs_top_builddir=$ac_pwd
1668ac_abs_builddir=$ac_pwd$ac_dir_suffix
1669# for backward compatibility:
1670ac_top_builddir=$ac_top_build_prefix
1671
1672case $srcdir in
1673  .)  # We are building in place.
1674    ac_srcdir=.
1675    ac_top_srcdir=$ac_top_builddir_sub
1676    ac_abs_top_srcdir=$ac_pwd ;;
1677  [\\/]* | ?:[\\/]* )  # Absolute name.
1678    ac_srcdir=$srcdir$ac_dir_suffix;
1679    ac_top_srcdir=$srcdir
1680    ac_abs_top_srcdir=$srcdir ;;
1681  *) # Relative name.
1682    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1683    ac_top_srcdir=$ac_top_build_prefix$srcdir
1684    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1685esac
1686ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1687
1688    cd "$ac_dir" || { ac_status=$?; continue; }
1689    # Check for guested configure.
1690    if test -f "$ac_srcdir/configure.gnu"; then
1691      echo &&
1692      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1693    elif test -f "$ac_srcdir/configure"; then
1694      echo &&
1695      $SHELL "$ac_srcdir/configure" --help=recursive
1696    else
1697      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1698    fi || ac_status=$?
1699    cd "$ac_pwd" || { ac_status=$?; break; }
1700  done
1701fi
1702
1703test -n "$ac_init_help" && exit $ac_status
1704if $ac_init_version; then
1705  cat <<\_ACEOF
1706sntp configure 4.2.8p3
1707generated by GNU Autoconf 2.69
1708
1709Copyright (C) 2012 Free Software Foundation, Inc.
1710This configure script is free software; the Free Software Foundation
1711gives unlimited permission to copy, distribute and modify it.
1712_ACEOF
1713  exit
1714fi
1715
1716## ------------------------ ##
1717## Autoconf initialization. ##
1718## ------------------------ ##
1719
1720# ac_fn_c_try_compile LINENO
1721# --------------------------
1722# Try to compile conftest.$ac_ext, and return whether this succeeded.
1723ac_fn_c_try_compile ()
1724{
1725  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726  rm -f conftest.$ac_objext
1727  if { { ac_try="$ac_compile"
1728case "(($ac_try" in
1729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730  *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733$as_echo "$ac_try_echo"; } >&5
1734  (eval "$ac_compile") 2>conftest.err
1735  ac_status=$?
1736  if test -s conftest.err; then
1737    grep -v '^ *+' conftest.err >conftest.er1
1738    cat conftest.er1 >&5
1739    mv -f conftest.er1 conftest.err
1740  fi
1741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742  test $ac_status = 0; } && {
1743	 test -z "$ac_c_werror_flag" ||
1744	 test ! -s conftest.err
1745       } && test -s conftest.$ac_objext; then :
1746  ac_retval=0
1747else
1748  $as_echo "$as_me: failed program was:" >&5
1749sed 's/^/| /' conftest.$ac_ext >&5
1750
1751	ac_retval=1
1752fi
1753  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754  as_fn_set_status $ac_retval
1755
1756} # ac_fn_c_try_compile
1757
1758# ac_fn_c_try_cpp LINENO
1759# ----------------------
1760# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1761ac_fn_c_try_cpp ()
1762{
1763  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764  if { { ac_try="$ac_cpp conftest.$ac_ext"
1765case "(($ac_try" in
1766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767  *) ac_try_echo=$ac_try;;
1768esac
1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770$as_echo "$ac_try_echo"; } >&5
1771  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1772  ac_status=$?
1773  if test -s conftest.err; then
1774    grep -v '^ *+' conftest.err >conftest.er1
1775    cat conftest.er1 >&5
1776    mv -f conftest.er1 conftest.err
1777  fi
1778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779  test $ac_status = 0; } > conftest.i && {
1780	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1781	 test ! -s conftest.err
1782       }; then :
1783  ac_retval=0
1784else
1785  $as_echo "$as_me: failed program was:" >&5
1786sed 's/^/| /' conftest.$ac_ext >&5
1787
1788    ac_retval=1
1789fi
1790  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791  as_fn_set_status $ac_retval
1792
1793} # ac_fn_c_try_cpp
1794
1795# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1796# -------------------------------------------------------
1797# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1798# the include files in INCLUDES and setting the cache variable VAR
1799# accordingly.
1800ac_fn_c_check_header_mongrel ()
1801{
1802  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803  if eval \${$3+:} false; then :
1804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805$as_echo_n "checking for $2... " >&6; }
1806if eval \${$3+:} false; then :
1807  $as_echo_n "(cached) " >&6
1808fi
1809eval ac_res=\$$3
1810	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811$as_echo "$ac_res" >&6; }
1812else
1813  # Is the header compilable?
1814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1815$as_echo_n "checking $2 usability... " >&6; }
1816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h.  */
1818$4
1819#include <$2>
1820_ACEOF
1821if ac_fn_c_try_compile "$LINENO"; then :
1822  ac_header_compiler=yes
1823else
1824  ac_header_compiler=no
1825fi
1826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1828$as_echo "$ac_header_compiler" >&6; }
1829
1830# Is the header present?
1831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1832$as_echo_n "checking $2 presence... " >&6; }
1833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834/* end confdefs.h.  */
1835#include <$2>
1836_ACEOF
1837if ac_fn_c_try_cpp "$LINENO"; then :
1838  ac_header_preproc=yes
1839else
1840  ac_header_preproc=no
1841fi
1842rm -f conftest.err conftest.i conftest.$ac_ext
1843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1844$as_echo "$ac_header_preproc" >&6; }
1845
1846# So?  What about this header?
1847case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1848  yes:no: )
1849    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1850$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1851    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1852$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1853    ;;
1854  no:yes:* )
1855    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1856$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1857    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1858$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1859    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1860$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1861    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1862$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1863    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1864$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1865( $as_echo "## ------------------------------------ ##
1866## Report this to http://bugs.ntp.org./ ##
1867## ------------------------------------ ##"
1868     ) | sed "s/^/$as_me: WARNING:     /" >&2
1869    ;;
1870esac
1871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872$as_echo_n "checking for $2... " >&6; }
1873if eval \${$3+:} false; then :
1874  $as_echo_n "(cached) " >&6
1875else
1876  eval "$3=\$ac_header_compiler"
1877fi
1878eval ac_res=\$$3
1879	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880$as_echo "$ac_res" >&6; }
1881fi
1882  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883
1884} # ac_fn_c_check_header_mongrel
1885
1886# ac_fn_c_try_run LINENO
1887# ----------------------
1888# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1889# that executables *can* be run.
1890ac_fn_c_try_run ()
1891{
1892  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893  if { { ac_try="$ac_link"
1894case "(($ac_try" in
1895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896  *) ac_try_echo=$ac_try;;
1897esac
1898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899$as_echo "$ac_try_echo"; } >&5
1900  (eval "$ac_link") 2>&5
1901  ac_status=$?
1902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1904  { { case "(($ac_try" in
1905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906  *) ac_try_echo=$ac_try;;
1907esac
1908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909$as_echo "$ac_try_echo"; } >&5
1910  (eval "$ac_try") 2>&5
1911  ac_status=$?
1912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913  test $ac_status = 0; }; }; then :
1914  ac_retval=0
1915else
1916  $as_echo "$as_me: program exited with status $ac_status" >&5
1917       $as_echo "$as_me: failed program was:" >&5
1918sed 's/^/| /' conftest.$ac_ext >&5
1919
1920       ac_retval=$ac_status
1921fi
1922  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924  as_fn_set_status $ac_retval
1925
1926} # ac_fn_c_try_run
1927
1928# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1929# -------------------------------------------------------
1930# Tests whether HEADER exists and can be compiled using the include files in
1931# INCLUDES, setting the cache variable VAR accordingly.
1932ac_fn_c_check_header_compile ()
1933{
1934  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936$as_echo_n "checking for $2... " >&6; }
1937if eval \${$3+:} false; then :
1938  $as_echo_n "(cached) " >&6
1939else
1940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941/* end confdefs.h.  */
1942$4
1943#include <$2>
1944_ACEOF
1945if ac_fn_c_try_compile "$LINENO"; then :
1946  eval "$3=yes"
1947else
1948  eval "$3=no"
1949fi
1950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951fi
1952eval ac_res=\$$3
1953	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954$as_echo "$ac_res" >&6; }
1955  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956
1957} # ac_fn_c_check_header_compile
1958
1959# ac_fn_c_try_link LINENO
1960# -----------------------
1961# Try to link conftest.$ac_ext, and return whether this succeeded.
1962ac_fn_c_try_link ()
1963{
1964  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965  rm -f conftest.$ac_objext conftest$ac_exeext
1966  if { { ac_try="$ac_link"
1967case "(($ac_try" in
1968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1969  *) ac_try_echo=$ac_try;;
1970esac
1971eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972$as_echo "$ac_try_echo"; } >&5
1973  (eval "$ac_link") 2>conftest.err
1974  ac_status=$?
1975  if test -s conftest.err; then
1976    grep -v '^ *+' conftest.err >conftest.er1
1977    cat conftest.er1 >&5
1978    mv -f conftest.er1 conftest.err
1979  fi
1980  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1981  test $ac_status = 0; } && {
1982	 test -z "$ac_c_werror_flag" ||
1983	 test ! -s conftest.err
1984       } && test -s conftest$ac_exeext && {
1985	 test "$cross_compiling" = yes ||
1986	 test -x conftest$ac_exeext
1987       }; then :
1988  ac_retval=0
1989else
1990  $as_echo "$as_me: failed program was:" >&5
1991sed 's/^/| /' conftest.$ac_ext >&5
1992
1993	ac_retval=1
1994fi
1995  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1996  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1997  # interfere with the next link command; also delete a directory that is
1998  # left behind by Apple's compiler.  We do this before executing the actions.
1999  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2000  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001  as_fn_set_status $ac_retval
2002
2003} # ac_fn_c_try_link
2004
2005# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2006# -------------------------------------------
2007# Tests whether TYPE exists after having included INCLUDES, setting cache
2008# variable VAR accordingly.
2009ac_fn_c_check_type ()
2010{
2011  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013$as_echo_n "checking for $2... " >&6; }
2014if eval \${$3+:} false; then :
2015  $as_echo_n "(cached) " >&6
2016else
2017  eval "$3=no"
2018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019/* end confdefs.h.  */
2020$4
2021int
2022main ()
2023{
2024if (sizeof ($2))
2025	 return 0;
2026  ;
2027  return 0;
2028}
2029_ACEOF
2030if ac_fn_c_try_compile "$LINENO"; then :
2031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032/* end confdefs.h.  */
2033$4
2034int
2035main ()
2036{
2037if (sizeof (($2)))
2038	    return 0;
2039  ;
2040  return 0;
2041}
2042_ACEOF
2043if ac_fn_c_try_compile "$LINENO"; then :
2044
2045else
2046  eval "$3=yes"
2047fi
2048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049fi
2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051fi
2052eval ac_res=\$$3
2053	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054$as_echo "$ac_res" >&6; }
2055  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056
2057} # ac_fn_c_check_type
2058
2059# ac_fn_c_check_func LINENO FUNC VAR
2060# ----------------------------------
2061# Tests whether FUNC exists, setting the cache variable VAR accordingly
2062ac_fn_c_check_func ()
2063{
2064  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066$as_echo_n "checking for $2... " >&6; }
2067if eval \${$3+:} false; then :
2068  $as_echo_n "(cached) " >&6
2069else
2070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071/* end confdefs.h.  */
2072/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2073   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2074#define $2 innocuous_$2
2075
2076/* System header to define __stub macros and hopefully few prototypes,
2077    which can conflict with char $2 (); below.
2078    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2079    <limits.h> exists even on freestanding compilers.  */
2080
2081#ifdef __STDC__
2082# include <limits.h>
2083#else
2084# include <assert.h>
2085#endif
2086
2087#undef $2
2088
2089/* Override any GCC internal prototype to avoid an error.
2090   Use char because int might match the return type of a GCC
2091   builtin and then its argument prototype would still apply.  */
2092#ifdef __cplusplus
2093extern "C"
2094#endif
2095char $2 ();
2096/* The GNU C library defines this for functions which it implements
2097    to always fail with ENOSYS.  Some functions are actually named
2098    something starting with __ and the normal name is an alias.  */
2099#if defined __stub_$2 || defined __stub___$2
2100choke me
2101#endif
2102
2103int
2104main ()
2105{
2106return $2 ();
2107  ;
2108  return 0;
2109}
2110_ACEOF
2111if ac_fn_c_try_link "$LINENO"; then :
2112  eval "$3=yes"
2113else
2114  eval "$3=no"
2115fi
2116rm -f core conftest.err conftest.$ac_objext \
2117    conftest$ac_exeext conftest.$ac_ext
2118fi
2119eval ac_res=\$$3
2120	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121$as_echo "$ac_res" >&6; }
2122  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123
2124} # ac_fn_c_check_func
2125
2126# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2127# ---------------------------------------------
2128# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2129# accordingly.
2130ac_fn_c_check_decl ()
2131{
2132  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133  as_decl_name=`echo $2|sed 's/ *(.*//'`
2134  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2135  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2136$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2137if eval \${$3+:} false; then :
2138  $as_echo_n "(cached) " >&6
2139else
2140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141/* end confdefs.h.  */
2142$4
2143int
2144main ()
2145{
2146#ifndef $as_decl_name
2147#ifdef __cplusplus
2148  (void) $as_decl_use;
2149#else
2150  (void) $as_decl_name;
2151#endif
2152#endif
2153
2154  ;
2155  return 0;
2156}
2157_ACEOF
2158if ac_fn_c_try_compile "$LINENO"; then :
2159  eval "$3=yes"
2160else
2161  eval "$3=no"
2162fi
2163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164fi
2165eval ac_res=\$$3
2166	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167$as_echo "$ac_res" >&6; }
2168  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169
2170} # ac_fn_c_check_decl
2171
2172# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2173# --------------------------------------------
2174# Tries to find the compile-time value of EXPR in a program that includes
2175# INCLUDES, setting VAR accordingly. Returns whether the value could be
2176# computed
2177ac_fn_c_compute_int ()
2178{
2179  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180  if test "$cross_compiling" = yes; then
2181    # Depending upon the size, compute the lo and hi bounds.
2182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183/* end confdefs.h.  */
2184$4
2185int
2186main ()
2187{
2188static int test_array [1 - 2 * !(($2) >= 0)];
2189test_array [0] = 0;
2190return test_array [0];
2191
2192  ;
2193  return 0;
2194}
2195_ACEOF
2196if ac_fn_c_try_compile "$LINENO"; then :
2197  ac_lo=0 ac_mid=0
2198  while :; do
2199    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200/* end confdefs.h.  */
2201$4
2202int
2203main ()
2204{
2205static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2206test_array [0] = 0;
2207return test_array [0];
2208
2209  ;
2210  return 0;
2211}
2212_ACEOF
2213if ac_fn_c_try_compile "$LINENO"; then :
2214  ac_hi=$ac_mid; break
2215else
2216  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2217			if test $ac_lo -le $ac_mid; then
2218			  ac_lo= ac_hi=
2219			  break
2220			fi
2221			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2222fi
2223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224  done
2225else
2226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227/* end confdefs.h.  */
2228$4
2229int
2230main ()
2231{
2232static int test_array [1 - 2 * !(($2) < 0)];
2233test_array [0] = 0;
2234return test_array [0];
2235
2236  ;
2237  return 0;
2238}
2239_ACEOF
2240if ac_fn_c_try_compile "$LINENO"; then :
2241  ac_hi=-1 ac_mid=-1
2242  while :; do
2243    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244/* end confdefs.h.  */
2245$4
2246int
2247main ()
2248{
2249static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2250test_array [0] = 0;
2251return test_array [0];
2252
2253  ;
2254  return 0;
2255}
2256_ACEOF
2257if ac_fn_c_try_compile "$LINENO"; then :
2258  ac_lo=$ac_mid; break
2259else
2260  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2261			if test $ac_mid -le $ac_hi; then
2262			  ac_lo= ac_hi=
2263			  break
2264			fi
2265			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2266fi
2267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268  done
2269else
2270  ac_lo= ac_hi=
2271fi
2272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273fi
2274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275# Binary search between lo and hi bounds.
2276while test "x$ac_lo" != "x$ac_hi"; do
2277  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279/* end confdefs.h.  */
2280$4
2281int
2282main ()
2283{
2284static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2285test_array [0] = 0;
2286return test_array [0];
2287
2288  ;
2289  return 0;
2290}
2291_ACEOF
2292if ac_fn_c_try_compile "$LINENO"; then :
2293  ac_hi=$ac_mid
2294else
2295  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2296fi
2297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298done
2299case $ac_lo in #((
2300?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2301'') ac_retval=1 ;;
2302esac
2303  else
2304    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305/* end confdefs.h.  */
2306$4
2307static long int longval () { return $2; }
2308static unsigned long int ulongval () { return $2; }
2309#include <stdio.h>
2310#include <stdlib.h>
2311int
2312main ()
2313{
2314
2315  FILE *f = fopen ("conftest.val", "w");
2316  if (! f)
2317    return 1;
2318  if (($2) < 0)
2319    {
2320      long int i = longval ();
2321      if (i != ($2))
2322	return 1;
2323      fprintf (f, "%ld", i);
2324    }
2325  else
2326    {
2327      unsigned long int i = ulongval ();
2328      if (i != ($2))
2329	return 1;
2330      fprintf (f, "%lu", i);
2331    }
2332  /* Do not output a trailing newline, as this causes \r\n confusion
2333     on some platforms.  */
2334  return ferror (f) || fclose (f) != 0;
2335
2336  ;
2337  return 0;
2338}
2339_ACEOF
2340if ac_fn_c_try_run "$LINENO"; then :
2341  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2342else
2343  ac_retval=1
2344fi
2345rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2346  conftest.$ac_objext conftest.beam conftest.$ac_ext
2347rm -f conftest.val
2348
2349  fi
2350  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2351  as_fn_set_status $ac_retval
2352
2353} # ac_fn_c_compute_int
2354
2355# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2356# ----------------------------------------------------
2357# Tries to find if the field MEMBER exists in type AGGR, after including
2358# INCLUDES, setting cache variable VAR accordingly.
2359ac_fn_c_check_member ()
2360{
2361  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2363$as_echo_n "checking for $2.$3... " >&6; }
2364if eval \${$4+:} false; then :
2365  $as_echo_n "(cached) " >&6
2366else
2367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368/* end confdefs.h.  */
2369$5
2370int
2371main ()
2372{
2373static $2 ac_aggr;
2374if (ac_aggr.$3)
2375return 0;
2376  ;
2377  return 0;
2378}
2379_ACEOF
2380if ac_fn_c_try_compile "$LINENO"; then :
2381  eval "$4=yes"
2382else
2383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2384/* end confdefs.h.  */
2385$5
2386int
2387main ()
2388{
2389static $2 ac_aggr;
2390if (sizeof ac_aggr.$3)
2391return 0;
2392  ;
2393  return 0;
2394}
2395_ACEOF
2396if ac_fn_c_try_compile "$LINENO"; then :
2397  eval "$4=yes"
2398else
2399  eval "$4=no"
2400fi
2401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402fi
2403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2404fi
2405eval ac_res=\$$4
2406	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2407$as_echo "$ac_res" >&6; }
2408  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409
2410} # ac_fn_c_check_member
2411
2412# ac_fn_cxx_try_compile LINENO
2413# ----------------------------
2414# Try to compile conftest.$ac_ext, and return whether this succeeded.
2415ac_fn_cxx_try_compile ()
2416{
2417  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2418  rm -f conftest.$ac_objext
2419  if { { ac_try="$ac_compile"
2420case "(($ac_try" in
2421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422  *) ac_try_echo=$ac_try;;
2423esac
2424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2425$as_echo "$ac_try_echo"; } >&5
2426  (eval "$ac_compile") 2>conftest.err
2427  ac_status=$?
2428  if test -s conftest.err; then
2429    grep -v '^ *+' conftest.err >conftest.er1
2430    cat conftest.er1 >&5
2431    mv -f conftest.er1 conftest.err
2432  fi
2433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2434  test $ac_status = 0; } && {
2435	 test -z "$ac_cxx_werror_flag" ||
2436	 test ! -s conftest.err
2437       } && test -s conftest.$ac_objext; then :
2438  ac_retval=0
2439else
2440  $as_echo "$as_me: failed program was:" >&5
2441sed 's/^/| /' conftest.$ac_ext >&5
2442
2443	ac_retval=1
2444fi
2445  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2446  as_fn_set_status $ac_retval
2447
2448} # ac_fn_cxx_try_compile
2449
2450# ac_fn_cxx_try_cpp LINENO
2451# ------------------------
2452# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2453ac_fn_cxx_try_cpp ()
2454{
2455  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456  if { { ac_try="$ac_cpp conftest.$ac_ext"
2457case "(($ac_try" in
2458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459  *) ac_try_echo=$ac_try;;
2460esac
2461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2462$as_echo "$ac_try_echo"; } >&5
2463  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2464  ac_status=$?
2465  if test -s conftest.err; then
2466    grep -v '^ *+' conftest.err >conftest.er1
2467    cat conftest.er1 >&5
2468    mv -f conftest.er1 conftest.err
2469  fi
2470  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2471  test $ac_status = 0; } > conftest.i && {
2472	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2473	 test ! -s conftest.err
2474       }; then :
2475  ac_retval=0
2476else
2477  $as_echo "$as_me: failed program was:" >&5
2478sed 's/^/| /' conftest.$ac_ext >&5
2479
2480    ac_retval=1
2481fi
2482  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2483  as_fn_set_status $ac_retval
2484
2485} # ac_fn_cxx_try_cpp
2486
2487# ac_fn_cxx_try_link LINENO
2488# -------------------------
2489# Try to link conftest.$ac_ext, and return whether this succeeded.
2490ac_fn_cxx_try_link ()
2491{
2492  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2493  rm -f conftest.$ac_objext conftest$ac_exeext
2494  if { { ac_try="$ac_link"
2495case "(($ac_try" in
2496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497  *) ac_try_echo=$ac_try;;
2498esac
2499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2500$as_echo "$ac_try_echo"; } >&5
2501  (eval "$ac_link") 2>conftest.err
2502  ac_status=$?
2503  if test -s conftest.err; then
2504    grep -v '^ *+' conftest.err >conftest.er1
2505    cat conftest.er1 >&5
2506    mv -f conftest.er1 conftest.err
2507  fi
2508  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2509  test $ac_status = 0; } && {
2510	 test -z "$ac_cxx_werror_flag" ||
2511	 test ! -s conftest.err
2512       } && test -s conftest$ac_exeext && {
2513	 test "$cross_compiling" = yes ||
2514	 test -x conftest$ac_exeext
2515       }; then :
2516  ac_retval=0
2517else
2518  $as_echo "$as_me: failed program was:" >&5
2519sed 's/^/| /' conftest.$ac_ext >&5
2520
2521	ac_retval=1
2522fi
2523  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2524  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2525  # interfere with the next link command; also delete a directory that is
2526  # left behind by Apple's compiler.  We do this before executing the actions.
2527  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2528  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2529  as_fn_set_status $ac_retval
2530
2531} # ac_fn_cxx_try_link
2532cat >config.log <<_ACEOF
2533This file contains any messages produced by compilers while
2534running configure, to aid debugging if configure makes a mistake.
2535
2536It was created by sntp $as_me 4.2.8p3, which was
2537generated by GNU Autoconf 2.69.  Invocation command line was
2538
2539  $ $0 $@
2540
2541_ACEOF
2542exec 5>>config.log
2543{
2544cat <<_ASUNAME
2545## --------- ##
2546## Platform. ##
2547## --------- ##
2548
2549hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2550uname -m = `(uname -m) 2>/dev/null || echo unknown`
2551uname -r = `(uname -r) 2>/dev/null || echo unknown`
2552uname -s = `(uname -s) 2>/dev/null || echo unknown`
2553uname -v = `(uname -v) 2>/dev/null || echo unknown`
2554
2555/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2556/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2557
2558/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2559/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2560/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2561/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2562/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2563/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2564/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2565
2566_ASUNAME
2567
2568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569for as_dir in $PATH
2570do
2571  IFS=$as_save_IFS
2572  test -z "$as_dir" && as_dir=.
2573    $as_echo "PATH: $as_dir"
2574  done
2575IFS=$as_save_IFS
2576
2577} >&5
2578
2579cat >&5 <<_ACEOF
2580
2581
2582## ----------- ##
2583## Core tests. ##
2584## ----------- ##
2585
2586_ACEOF
2587
2588
2589# Keep a trace of the command line.
2590# Strip out --no-create and --no-recursion so they do not pile up.
2591# Strip out --silent because we don't want to record it for future runs.
2592# Also quote any args containing shell meta-characters.
2593# Make two passes to allow for proper duplicate-argument suppression.
2594ac_configure_args=
2595ac_configure_args0=
2596ac_configure_args1=
2597ac_must_keep_next=false
2598for ac_pass in 1 2
2599do
2600  for ac_arg
2601  do
2602    case $ac_arg in
2603    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2604    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2605    | -silent | --silent | --silen | --sile | --sil)
2606      continue ;;
2607    *\'*)
2608      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2609    esac
2610    case $ac_pass in
2611    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2612    2)
2613      as_fn_append ac_configure_args1 " '$ac_arg'"
2614      if test $ac_must_keep_next = true; then
2615	ac_must_keep_next=false # Got value, back to normal.
2616      else
2617	case $ac_arg in
2618	  *=* | --config-cache | -C | -disable-* | --disable-* \
2619	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2620	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2621	  | -with-* | --with-* | -without-* | --without-* | --x)
2622	    case "$ac_configure_args0 " in
2623	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2624	    esac
2625	    ;;
2626	  -* ) ac_must_keep_next=true ;;
2627	esac
2628      fi
2629      as_fn_append ac_configure_args " '$ac_arg'"
2630      ;;
2631    esac
2632  done
2633done
2634{ ac_configure_args0=; unset ac_configure_args0;}
2635{ ac_configure_args1=; unset ac_configure_args1;}
2636
2637# When interrupted or exit'd, cleanup temporary files, and complete
2638# config.log.  We remove comments because anyway the quotes in there
2639# would cause problems or look ugly.
2640# WARNING: Use '\'' to represent an apostrophe within the trap.
2641# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2642trap 'exit_status=$?
2643  # Save into config.log some information that might help in debugging.
2644  {
2645    echo
2646
2647    $as_echo "## ---------------- ##
2648## Cache variables. ##
2649## ---------------- ##"
2650    echo
2651    # The following way of writing the cache mishandles newlines in values,
2652(
2653  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2654    eval ac_val=\$$ac_var
2655    case $ac_val in #(
2656    *${as_nl}*)
2657      case $ac_var in #(
2658      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2659$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2660      esac
2661      case $ac_var in #(
2662      _ | IFS | as_nl) ;; #(
2663      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2664      *) { eval $ac_var=; unset $ac_var;} ;;
2665      esac ;;
2666    esac
2667  done
2668  (set) 2>&1 |
2669    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2670    *${as_nl}ac_space=\ *)
2671      sed -n \
2672	"s/'\''/'\''\\\\'\'''\''/g;
2673	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2674      ;; #(
2675    *)
2676      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2677      ;;
2678    esac |
2679    sort
2680)
2681    echo
2682
2683    $as_echo "## ----------------- ##
2684## Output variables. ##
2685## ----------------- ##"
2686    echo
2687    for ac_var in $ac_subst_vars
2688    do
2689      eval ac_val=\$$ac_var
2690      case $ac_val in
2691      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2692      esac
2693      $as_echo "$ac_var='\''$ac_val'\''"
2694    done | sort
2695    echo
2696
2697    if test -n "$ac_subst_files"; then
2698      $as_echo "## ------------------- ##
2699## File substitutions. ##
2700## ------------------- ##"
2701      echo
2702      for ac_var in $ac_subst_files
2703      do
2704	eval ac_val=\$$ac_var
2705	case $ac_val in
2706	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2707	esac
2708	$as_echo "$ac_var='\''$ac_val'\''"
2709      done | sort
2710      echo
2711    fi
2712
2713    if test -s confdefs.h; then
2714      $as_echo "## ----------- ##
2715## confdefs.h. ##
2716## ----------- ##"
2717      echo
2718      cat confdefs.h
2719      echo
2720    fi
2721    test "$ac_signal" != 0 &&
2722      $as_echo "$as_me: caught signal $ac_signal"
2723    $as_echo "$as_me: exit $exit_status"
2724  } >&5
2725  rm -f core *.core core.conftest.* &&
2726    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2727    exit $exit_status
2728' 0
2729for ac_signal in 1 2 13 15; do
2730  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2731done
2732ac_signal=0
2733
2734# confdefs.h avoids OS command line length limits that DEFS can exceed.
2735rm -f -r conftest* confdefs.h
2736
2737$as_echo "/* confdefs.h */" > confdefs.h
2738
2739# Predefined preprocessor variables.
2740
2741cat >>confdefs.h <<_ACEOF
2742#define PACKAGE_NAME "$PACKAGE_NAME"
2743_ACEOF
2744
2745cat >>confdefs.h <<_ACEOF
2746#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2747_ACEOF
2748
2749cat >>confdefs.h <<_ACEOF
2750#define PACKAGE_VERSION "$PACKAGE_VERSION"
2751_ACEOF
2752
2753cat >>confdefs.h <<_ACEOF
2754#define PACKAGE_STRING "$PACKAGE_STRING"
2755_ACEOF
2756
2757cat >>confdefs.h <<_ACEOF
2758#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2759_ACEOF
2760
2761cat >>confdefs.h <<_ACEOF
2762#define PACKAGE_URL "$PACKAGE_URL"
2763_ACEOF
2764
2765
2766# Let the site file select an alternate cache file if it wants to.
2767# Prefer an explicitly selected file to automatically selected ones.
2768ac_site_file1=NONE
2769ac_site_file2=NONE
2770if test -n "$CONFIG_SITE"; then
2771  # We do not want a PATH search for config.site.
2772  case $CONFIG_SITE in #((
2773    -*)  ac_site_file1=./$CONFIG_SITE;;
2774    */*) ac_site_file1=$CONFIG_SITE;;
2775    *)   ac_site_file1=./$CONFIG_SITE;;
2776  esac
2777elif test "x$prefix" != xNONE; then
2778  ac_site_file1=$prefix/share/config.site
2779  ac_site_file2=$prefix/etc/config.site
2780else
2781  ac_site_file1=$ac_default_prefix/share/config.site
2782  ac_site_file2=$ac_default_prefix/etc/config.site
2783fi
2784for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2785do
2786  test "x$ac_site_file" = xNONE && continue
2787  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2788    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2789$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2790    sed 's/^/| /' "$ac_site_file" >&5
2791    . "$ac_site_file" \
2792      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2794as_fn_error $? "failed to load site script $ac_site_file
2795See \`config.log' for more details" "$LINENO" 5; }
2796  fi
2797done
2798
2799if test -r "$cache_file"; then
2800  # Some versions of bash will fail to source /dev/null (special files
2801  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2802  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2803    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2804$as_echo "$as_me: loading cache $cache_file" >&6;}
2805    case $cache_file in
2806      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2807      *)                      . "./$cache_file";;
2808    esac
2809  fi
2810else
2811  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2812$as_echo "$as_me: creating cache $cache_file" >&6;}
2813  >$cache_file
2814fi
2815
2816as_fn_append ac_header_list " stdarg.h"
2817# Check that the precious variables saved in the cache have kept the same
2818# value.
2819ac_cache_corrupted=false
2820for ac_var in $ac_precious_vars; do
2821  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2822  eval ac_new_set=\$ac_env_${ac_var}_set
2823  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2824  eval ac_new_val=\$ac_env_${ac_var}_value
2825  case $ac_old_set,$ac_new_set in
2826    set,)
2827      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2828$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2829      ac_cache_corrupted=: ;;
2830    ,set)
2831      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2832$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2833      ac_cache_corrupted=: ;;
2834    ,);;
2835    *)
2836      if test "x$ac_old_val" != "x$ac_new_val"; then
2837	# differences in whitespace do not lead to failure.
2838	ac_old_val_w=`echo x $ac_old_val`
2839	ac_new_val_w=`echo x $ac_new_val`
2840	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2841	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2842$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2843	  ac_cache_corrupted=:
2844	else
2845	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2846$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2847	  eval $ac_var=\$ac_old_val
2848	fi
2849	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2850$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2851	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2852$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2853      fi;;
2854  esac
2855  # Pass precious variables to config.status.
2856  if test "$ac_new_set" = set; then
2857    case $ac_new_val in
2858    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2859    *) ac_arg=$ac_var=$ac_new_val ;;
2860    esac
2861    case " $ac_configure_args " in
2862      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2863      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2864    esac
2865  fi
2866done
2867if $ac_cache_corrupted; then
2868  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2870  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2871$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2872  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2873fi
2874## -------------------- ##
2875## Main body of script. ##
2876## -------------------- ##
2877
2878ac_ext=c
2879ac_cpp='$CPP $CPPFLAGS'
2880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883
2884
2885
2886ac_aux_dir=
2887for ac_dir in libevent/build-aux "$srcdir"/libevent/build-aux; do
2888  if test -f "$ac_dir/install-sh"; then
2889    ac_aux_dir=$ac_dir
2890    ac_install_sh="$ac_aux_dir/install-sh -c"
2891    break
2892  elif test -f "$ac_dir/install.sh"; then
2893    ac_aux_dir=$ac_dir
2894    ac_install_sh="$ac_aux_dir/install.sh -c"
2895    break
2896  elif test -f "$ac_dir/shtool"; then
2897    ac_aux_dir=$ac_dir
2898    ac_install_sh="$ac_aux_dir/shtool install -c"
2899    break
2900  fi
2901done
2902if test -z "$ac_aux_dir"; then
2903  as_fn_error $? "cannot find install-sh, install.sh, or shtool in libevent/build-aux \"$srcdir\"/libevent/build-aux" "$LINENO" 5
2904fi
2905
2906# These three variables are undocumented and unsupported,
2907# and are intended to be withdrawn in a future Autoconf release.
2908# They can cause serious problems if a builder's source tree is in a directory
2909# whose full name contains unusual characters.
2910ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2911ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2912ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2913
2914
2915
2916# Bump sntp_configure_cache_version for each change to configure.ac or
2917# .m4 files which invalidates cached values from previous configure
2918# runs.
2919#
2920# If the change affects cache variables used only by the main NTP
2921# configure.ac, then only its version number should be bumped, while
2922# the subdir configure.ac version numbers should be unchanged.  The
2923# same is true for a test/variable that is used only by one subdir
2924# being changed incompatibly; only that subdir's cache version needs
2925# bumping.
2926#
2927# If a change affects variables shared by all NTP configure scripts,
2928# please bump the version numbers of each.  If you are not sure, the
2929# safe choice is to bump all on any cache-invalidating change.
2930#
2931# In order to avoid the risk of version stamp collision between -stable
2932# and -dev branches, do not simply increment the version, instead use
2933# the date YYYYMMDD optionally with -HHMM if there is more than one
2934# bump in a day.
2935
2936sntp_configure_cache_version=20120806
2937
2938# When the version of config.cache and configure do not
2939# match, NTP_CACHEVERSION will flush the cache.
2940
2941
2942
2943    ntp_cache_flush=1
2944
2945    case "$ntp_cv_sntp_cache_version" in
2946     $sntp_configure_cache_version)
2947	# same version, good
2948	ntp_cache_flush=0
2949	;;
2950     '')
2951	# No cache, predates ntp_cv_sntp_cache_version, or is empty.
2952	case "$cache_file" in
2953	 /dev/null)
2954	    ntp_cache_flush=0
2955	    ;;
2956	 *)
2957	    case "$NTP_CACHEVERSION_PARENT" in
2958	     '')
2959		# Do not clear the cache immediately after it is created
2960		# empty as it is noisy.  Differentiate a newly-created
2961		# config.cache from one predating the cache version
2962		# mechanism by looking for the first cached variable set
2963		# by Autoconf
2964		case "$ac_cv_path_install" in
2965		 '')
2966		    # empty config.cache file
2967		    ntp_cache_flush=0
2968		esac
2969		;;
2970	     *)
2971		# Parent configure just created cache from empty,
2972		# flushing would be counterproductive.
2973		ntp_cache_flush=0;
2974		;;
2975	    esac
2976	esac
2977	;;
2978     *)
2979	# configure cache version mismatches config.cache version
2980	;;
2981    esac
2982
2983    case "$ntp_cache_flush" in
2984     1)
2985	c_version="${ntp_cv_sntp_cache_version:-(no version found)}"
2986
2987	# Do we flush all variables or exclude others' version stamps?
2988
2989	case "$NTP_CACHEVERSION_PARENT" in
2990	 '')
2991	    # Clear all *_cv_* variables including our child subdirs'
2992	    # ntp_cv_*_cache_version variables.  This prevents subdir
2993	    # configure scripts from noticing a version mismatch just
2994	    # after the top configure in the invocation cleared and
2995	    # recreated the cache.
2996
2997	    c_varname_list=`set |
2998			    sed -n -e 's/=.*$//' \
2999				   -e '/_cv_/p'
3000			   `
3001	    ;;
3002	 *)
3003	    # This is not the top configure this particular invocation.
3004	    # Clear all *_cv_* variables sparing the version stamps
3005	    # of other configure scripts, so we don't trigger
3006	    # useless repeated clearings.
3007
3008	    c_varname_list=`set |
3009			    sed -n -e 's/=.*$//' \
3010				   -e '/ntp_cv_.*_cache_version/d' \
3011				   -e '/_cv_/p'
3012			   `
3013	esac
3014
3015	for c_varname in $c_varname_list
3016	do
3017	    	    	    	    	    	    { eval $c_varname=; unset $c_varname; }
3018	done
3019
3020	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
3021$as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
3022	{ $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $sntp_configure_cache_version" >&5
3023$as_echo "$as_me: configure script cache version: $sntp_configure_cache_version" >&6;}
3024	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
3025$as_echo "$as_me: $cache_file version: $c_version" >&6;}
3026	{ c_varname=; unset c_varname;}
3027	{ c_varname_list=; unset c_varname_list;}
3028	{ c_version=; unset c_version;}
3029    esac
3030
3031    { ntp_cache_flush=; unset ntp_cache_flush;}
3032
3033    # save configure version in config.cache for next time
3034    ntp_cv_sntp_cache_version="$sntp_configure_cache_version"
3035
3036    # let any subdir configure.ac NTP_CACHEVERSION invocations
3037    # know they are not the top level.
3038    NTP_CACHEVERSION_PARENT='sntp' ; export NTP_CACHEVERSION_PARENT
3039
3040
3041am__api_version='1.15'
3042
3043# Find a good install program.  We prefer a C program (faster),
3044# so one script is as good as another.  But avoid the broken or
3045# incompatible versions:
3046# SysV /etc/install, /usr/sbin/install
3047# SunOS /usr/etc/install
3048# IRIX /sbin/install
3049# AIX /bin/install
3050# AmigaOS /C/install, which installs bootblocks on floppy discs
3051# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3052# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3053# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3054# OS/2's system install, which has a completely different semantic
3055# ./install, which can be erroneously created by make from ./install.sh.
3056# Reject install programs that cannot install multiple files.
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3058$as_echo_n "checking for a BSD-compatible install... " >&6; }
3059if test -z "$INSTALL"; then
3060if ${ac_cv_path_install+:} false; then :
3061  $as_echo_n "(cached) " >&6
3062else
3063  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064for as_dir in $PATH
3065do
3066  IFS=$as_save_IFS
3067  test -z "$as_dir" && as_dir=.
3068    # Account for people who put trailing slashes in PATH elements.
3069case $as_dir/ in #((
3070  ./ | .// | /[cC]/* | \
3071  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3072  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3073  /usr/ucb/* ) ;;
3074  *)
3075    # OSF1 and SCO ODT 3.0 have their own names for install.
3076    # Don't use installbsd from OSF since it installs stuff as root
3077    # by default.
3078    for ac_prog in ginstall scoinst install; do
3079      for ac_exec_ext in '' $ac_executable_extensions; do
3080	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3081	  if test $ac_prog = install &&
3082	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3083	    # AIX install.  It has an incompatible calling convention.
3084	    :
3085	  elif test $ac_prog = install &&
3086	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3087	    # program-specific install script used by HP pwplus--don't use.
3088	    :
3089	  else
3090	    rm -rf conftest.one conftest.two conftest.dir
3091	    echo one > conftest.one
3092	    echo two > conftest.two
3093	    mkdir conftest.dir
3094	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3095	      test -s conftest.one && test -s conftest.two &&
3096	      test -s conftest.dir/conftest.one &&
3097	      test -s conftest.dir/conftest.two
3098	    then
3099	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3100	      break 3
3101	    fi
3102	  fi
3103	fi
3104      done
3105    done
3106    ;;
3107esac
3108
3109  done
3110IFS=$as_save_IFS
3111
3112rm -rf conftest.one conftest.two conftest.dir
3113
3114fi
3115  if test "${ac_cv_path_install+set}" = set; then
3116    INSTALL=$ac_cv_path_install
3117  else
3118    # As a last resort, use the slow shell script.  Don't cache a
3119    # value for INSTALL within a source directory, because that will
3120    # break other packages using the cache if that directory is
3121    # removed, or if the value is a relative name.
3122    INSTALL=$ac_install_sh
3123  fi
3124fi
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3126$as_echo "$INSTALL" >&6; }
3127
3128# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3129# It thinks the first close brace ends the variable substitution.
3130test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3131
3132test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3133
3134test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3135
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3137$as_echo_n "checking whether build environment is sane... " >&6; }
3138# Reject unsafe characters in $srcdir or the absolute working directory
3139# name.  Accept space and tab only in the latter.
3140am_lf='
3141'
3142case `pwd` in
3143  *[\\\"\#\$\&\'\`$am_lf]*)
3144    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3145esac
3146case $srcdir in
3147  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3148    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3149esac
3150
3151# Do 'set' in a subshell so we don't clobber the current shell's
3152# arguments.  Must try -L first in case configure is actually a
3153# symlink; some systems play weird games with the mod time of symlinks
3154# (eg FreeBSD returns the mod time of the symlink's containing
3155# directory).
3156if (
3157   am_has_slept=no
3158   for am_try in 1 2; do
3159     echo "timestamp, slept: $am_has_slept" > conftest.file
3160     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3161     if test "$*" = "X"; then
3162	# -L didn't work.
3163	set X `ls -t "$srcdir/configure" conftest.file`
3164     fi
3165     if test "$*" != "X $srcdir/configure conftest.file" \
3166	&& test "$*" != "X conftest.file $srcdir/configure"; then
3167
3168	# If neither matched, then we have a broken ls.  This can happen
3169	# if, for instance, CONFIG_SHELL is bash and it inherits a
3170	# broken ls alias from the environment.  This has actually
3171	# happened.  Such a system could not be considered "sane".
3172	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3173  alias in your environment" "$LINENO" 5
3174     fi
3175     if test "$2" = conftest.file || test $am_try -eq 2; then
3176       break
3177     fi
3178     # Just in case.
3179     sleep 1
3180     am_has_slept=yes
3181   done
3182   test "$2" = conftest.file
3183   )
3184then
3185   # Ok.
3186   :
3187else
3188   as_fn_error $? "newly created file is older than distributed files!
3189Check your system clock" "$LINENO" 5
3190fi
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3192$as_echo "yes" >&6; }
3193# If we didn't sleep, we still need to ensure time stamps of config.status and
3194# generated files are strictly newer.
3195am_sleep_pid=
3196if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3197  ( sleep 1 ) &
3198  am_sleep_pid=$!
3199fi
3200
3201rm -f conftest.file
3202
3203test "$program_prefix" != NONE &&
3204  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3205# Use a double $ so make ignores it.
3206test "$program_suffix" != NONE &&
3207  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3208# Double any \ or $.
3209# By default was `s,x,x', remove it if useless.
3210ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3211program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3212
3213# Expand $ac_aux_dir to an absolute path.
3214am_aux_dir=`cd "$ac_aux_dir" && pwd`
3215
3216if test x"${MISSING+set}" != xset; then
3217  case $am_aux_dir in
3218  *\ * | *\	*)
3219    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3220  *)
3221    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3222  esac
3223fi
3224# Use eval to expand $SHELL
3225if eval "$MISSING --is-lightweight"; then
3226  am_missing_run="$MISSING "
3227else
3228  am_missing_run=
3229  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3230$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3231fi
3232
3233if test x"${install_sh+set}" != xset; then
3234  case $am_aux_dir in
3235  *\ * | *\	*)
3236    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3237  *)
3238    install_sh="\${SHELL} $am_aux_dir/install-sh"
3239  esac
3240fi
3241
3242# Installed binaries are usually stripped using 'strip' when the user
3243# run "make install-strip".  However 'strip' might not be the right
3244# tool to use in cross-compilation environments, therefore Automake
3245# will honor the 'STRIP' environment variable to overrule this program.
3246if test "$cross_compiling" != no; then
3247  if test -n "$ac_tool_prefix"; then
3248  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3249set dummy ${ac_tool_prefix}strip; ac_word=$2
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3251$as_echo_n "checking for $ac_word... " >&6; }
3252if ${ac_cv_prog_STRIP+:} false; then :
3253  $as_echo_n "(cached) " >&6
3254else
3255  if test -n "$STRIP"; then
3256  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3257else
3258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259for as_dir in $PATH
3260do
3261  IFS=$as_save_IFS
3262  test -z "$as_dir" && as_dir=.
3263    for ac_exec_ext in '' $ac_executable_extensions; do
3264  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3265    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267    break 2
3268  fi
3269done
3270  done
3271IFS=$as_save_IFS
3272
3273fi
3274fi
3275STRIP=$ac_cv_prog_STRIP
3276if test -n "$STRIP"; then
3277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3278$as_echo "$STRIP" >&6; }
3279else
3280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281$as_echo "no" >&6; }
3282fi
3283
3284
3285fi
3286if test -z "$ac_cv_prog_STRIP"; then
3287  ac_ct_STRIP=$STRIP
3288  # Extract the first word of "strip", so it can be a program name with args.
3289set dummy strip; ac_word=$2
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291$as_echo_n "checking for $ac_word... " >&6; }
3292if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3293  $as_echo_n "(cached) " >&6
3294else
3295  if test -n "$ac_ct_STRIP"; then
3296  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3297else
3298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299for as_dir in $PATH
3300do
3301  IFS=$as_save_IFS
3302  test -z "$as_dir" && as_dir=.
3303    for ac_exec_ext in '' $ac_executable_extensions; do
3304  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305    ac_cv_prog_ac_ct_STRIP="strip"
3306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3307    break 2
3308  fi
3309done
3310  done
3311IFS=$as_save_IFS
3312
3313fi
3314fi
3315ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3316if test -n "$ac_ct_STRIP"; then
3317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3318$as_echo "$ac_ct_STRIP" >&6; }
3319else
3320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321$as_echo "no" >&6; }
3322fi
3323
3324  if test "x$ac_ct_STRIP" = x; then
3325    STRIP=":"
3326  else
3327    case $cross_compiling:$ac_tool_warned in
3328yes:)
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3331ac_tool_warned=yes ;;
3332esac
3333    STRIP=$ac_ct_STRIP
3334  fi
3335else
3336  STRIP="$ac_cv_prog_STRIP"
3337fi
3338
3339fi
3340INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3341
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3343$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3344if test -z "$MKDIR_P"; then
3345  if ${ac_cv_path_mkdir+:} false; then :
3346  $as_echo_n "(cached) " >&6
3347else
3348  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3350do
3351  IFS=$as_save_IFS
3352  test -z "$as_dir" && as_dir=.
3353    for ac_prog in mkdir gmkdir; do
3354	 for ac_exec_ext in '' $ac_executable_extensions; do
3355	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3356	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3357	     'mkdir (GNU coreutils) '* | \
3358	     'mkdir (coreutils) '* | \
3359	     'mkdir (fileutils) '4.1*)
3360	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3361	       break 3;;
3362	   esac
3363	 done
3364       done
3365  done
3366IFS=$as_save_IFS
3367
3368fi
3369
3370  test -d ./--version && rmdir ./--version
3371  if test "${ac_cv_path_mkdir+set}" = set; then
3372    MKDIR_P="$ac_cv_path_mkdir -p"
3373  else
3374    # As a last resort, use the slow shell script.  Don't cache a
3375    # value for MKDIR_P within a source directory, because that will
3376    # break other packages using the cache if that directory is
3377    # removed, or if the value is a relative name.
3378    MKDIR_P="$ac_install_sh -d"
3379  fi
3380fi
3381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3382$as_echo "$MKDIR_P" >&6; }
3383
3384for ac_prog in gawk mawk nawk awk
3385do
3386  # Extract the first word of "$ac_prog", so it can be a program name with args.
3387set dummy $ac_prog; ac_word=$2
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3389$as_echo_n "checking for $ac_word... " >&6; }
3390if ${ac_cv_prog_AWK+:} false; then :
3391  $as_echo_n "(cached) " >&6
3392else
3393  if test -n "$AWK"; then
3394  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3395else
3396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397for as_dir in $PATH
3398do
3399  IFS=$as_save_IFS
3400  test -z "$as_dir" && as_dir=.
3401    for ac_exec_ext in '' $ac_executable_extensions; do
3402  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3403    ac_cv_prog_AWK="$ac_prog"
3404    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3405    break 2
3406  fi
3407done
3408  done
3409IFS=$as_save_IFS
3410
3411fi
3412fi
3413AWK=$ac_cv_prog_AWK
3414if test -n "$AWK"; then
3415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3416$as_echo "$AWK" >&6; }
3417else
3418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419$as_echo "no" >&6; }
3420fi
3421
3422
3423  test -n "$AWK" && break
3424done
3425
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3427$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3428set x ${MAKE-make}
3429ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3430if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3431  $as_echo_n "(cached) " >&6
3432else
3433  cat >conftest.make <<\_ACEOF
3434SHELL = /bin/sh
3435all:
3436	@echo '@@@%%%=$(MAKE)=@@@%%%'
3437_ACEOF
3438# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3439case `${MAKE-make} -f conftest.make 2>/dev/null` in
3440  *@@@%%%=?*=@@@%%%*)
3441    eval ac_cv_prog_make_${ac_make}_set=yes;;
3442  *)
3443    eval ac_cv_prog_make_${ac_make}_set=no;;
3444esac
3445rm -f conftest.make
3446fi
3447if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3449$as_echo "yes" >&6; }
3450  SET_MAKE=
3451else
3452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453$as_echo "no" >&6; }
3454  SET_MAKE="MAKE=${MAKE-make}"
3455fi
3456
3457rm -rf .tst 2>/dev/null
3458mkdir .tst 2>/dev/null
3459if test -d .tst; then
3460  am__leading_dot=.
3461else
3462  am__leading_dot=_
3463fi
3464rmdir .tst 2>/dev/null
3465
3466# Check whether --enable-silent-rules was given.
3467if test "${enable_silent_rules+set}" = set; then :
3468  enableval=$enable_silent_rules;
3469fi
3470
3471case $enable_silent_rules in # (((
3472  yes) AM_DEFAULT_VERBOSITY=0;;
3473   no) AM_DEFAULT_VERBOSITY=1;;
3474    *) AM_DEFAULT_VERBOSITY=1;;
3475esac
3476am_make=${MAKE-make}
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3478$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3479if ${am_cv_make_support_nested_variables+:} false; then :
3480  $as_echo_n "(cached) " >&6
3481else
3482  if $as_echo 'TRUE=$(BAR$(V))
3483BAR0=false
3484BAR1=true
3485V=1
3486am__doit:
3487	@$(TRUE)
3488.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3489  am_cv_make_support_nested_variables=yes
3490else
3491  am_cv_make_support_nested_variables=no
3492fi
3493fi
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3495$as_echo "$am_cv_make_support_nested_variables" >&6; }
3496if test $am_cv_make_support_nested_variables = yes; then
3497    AM_V='$(V)'
3498  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3499else
3500  AM_V=$AM_DEFAULT_VERBOSITY
3501  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3502fi
3503AM_BACKSLASH='\'
3504
3505if test "`cd $srcdir && pwd`" != "`pwd`"; then
3506  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3507  # is not polluted with repeated "-I."
3508  am__isrc=' -I$(srcdir)'
3509  # test to see if srcdir already configured
3510  if test -f $srcdir/config.status; then
3511    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3512  fi
3513fi
3514
3515# test whether we have cygpath
3516if test -z "$CYGPATH_W"; then
3517  if (cygpath --version) >/dev/null 2>/dev/null; then
3518    CYGPATH_W='cygpath -w'
3519  else
3520    CYGPATH_W=echo
3521  fi
3522fi
3523
3524
3525# Define the identity of the package.
3526 PACKAGE='sntp'
3527 VERSION='4.2.8p3'
3528
3529
3530cat >>confdefs.h <<_ACEOF
3531#define PACKAGE "$PACKAGE"
3532_ACEOF
3533
3534
3535cat >>confdefs.h <<_ACEOF
3536#define VERSION "$VERSION"
3537_ACEOF
3538
3539# Some tools Automake needs.
3540
3541ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3542
3543
3544AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3545
3546
3547AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3548
3549
3550AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3551
3552
3553MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3554
3555# For better backward compatibility.  To be removed once Automake 1.9.x
3556# dies out for good.  For more background, see:
3557# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3558# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3559mkdir_p='$(MKDIR_P)'
3560
3561# We need awk for the "check" target (and possibly the TAP driver).  The
3562# system "awk" is bad on some platforms.
3563# Always define AMTAR for backward compatibility.  Yes, it's still used
3564# in the wild :-(  We should find a proper way to deprecate it ...
3565AMTAR='$${TAR-tar}'
3566
3567
3568# We'll loop over all known methods to create a tar archive until one works.
3569_am_tools='gnutar  pax cpio none'
3570
3571am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3572
3573
3574
3575
3576
3577
3578# POSIX will say in a future version that running "rm -f" with no argument
3579# is OK; and we want to be able to make that assumption in our Makefile
3580# recipes.  So use an aggressive probe to check that the usage we want is
3581# actually supported "in the wild" to an acceptable degree.
3582# See automake bug#10828.
3583# To make any issue more visible, cause the running configure to be aborted
3584# by default if the 'rm' program in use doesn't match our expectations; the
3585# user can still override this though.
3586if rm -f && rm -fr && rm -rf; then : OK; else
3587  cat >&2 <<'END'
3588Oops!
3589
3590Your 'rm' program seems unable to run without file operands specified
3591on the command line, even when the '-f' option is present.  This is contrary
3592to the behaviour of most rm programs out there, and not conforming with
3593the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3594
3595Please tell bug-automake@gnu.org about your system, including the value
3596of your $PATH and any error possibly output before this message.  This
3597can help us improve future automake versions.
3598
3599END
3600  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3601    echo 'Configuration will proceed anyway, since you have set the' >&2
3602    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3603    echo >&2
3604  else
3605    cat >&2 <<'END'
3606Aborting the configuration process, to ensure you take notice of the issue.
3607
3608You can download and install GNU coreutils to get an 'rm' implementation
3609that behaves properly: <http://www.gnu.org/software/coreutils/>.
3610
3611If you want to complete the configuration process using your problematic
3612'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3613to "yes", and re-run configure.
3614
3615END
3616    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3617  fi
3618fi
3619
3620# Check whether --enable-silent-rules was given.
3621if test "${enable_silent_rules+set}" = set; then :
3622  enableval=$enable_silent_rules;
3623fi
3624
3625case $enable_silent_rules in # (((
3626  yes) AM_DEFAULT_VERBOSITY=0;;
3627   no) AM_DEFAULT_VERBOSITY=1;;
3628    *) AM_DEFAULT_VERBOSITY=0;;
3629esac
3630am_make=${MAKE-make}
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3632$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3633if ${am_cv_make_support_nested_variables+:} false; then :
3634  $as_echo_n "(cached) " >&6
3635else
3636  if $as_echo 'TRUE=$(BAR$(V))
3637BAR0=false
3638BAR1=true
3639V=1
3640am__doit:
3641	@$(TRUE)
3642.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3643  am_cv_make_support_nested_variables=yes
3644else
3645  am_cv_make_support_nested_variables=no
3646fi
3647fi
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3649$as_echo "$am_cv_make_support_nested_variables" >&6; }
3650if test $am_cv_make_support_nested_variables = yes; then
3651    AM_V='$(V)'
3652  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3653else
3654  AM_V=$AM_DEFAULT_VERBOSITY
3655  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3656fi
3657AM_BACKSLASH='\'
3658
3659
3660# Make sure we can run config.sub.
3661$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3662  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3663
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3665$as_echo_n "checking build system type... " >&6; }
3666if ${ac_cv_build+:} false; then :
3667  $as_echo_n "(cached) " >&6
3668else
3669  ac_build_alias=$build_alias
3670test "x$ac_build_alias" = x &&
3671  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3672test "x$ac_build_alias" = x &&
3673  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3674ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3675  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3676
3677fi
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3679$as_echo "$ac_cv_build" >&6; }
3680case $ac_cv_build in
3681*-*-*) ;;
3682*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3683esac
3684build=$ac_cv_build
3685ac_save_IFS=$IFS; IFS='-'
3686set x $ac_cv_build
3687shift
3688build_cpu=$1
3689build_vendor=$2
3690shift; shift
3691# Remember, the first character of IFS is used to create $*,
3692# except with old shells:
3693build_os=$*
3694IFS=$ac_save_IFS
3695case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3696
3697
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3699$as_echo_n "checking host system type... " >&6; }
3700if ${ac_cv_host+:} false; then :
3701  $as_echo_n "(cached) " >&6
3702else
3703  if test "x$host_alias" = x; then
3704  ac_cv_host=$ac_cv_build
3705else
3706  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3707    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3708fi
3709
3710fi
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3712$as_echo "$ac_cv_host" >&6; }
3713case $ac_cv_host in
3714*-*-*) ;;
3715*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3716esac
3717host=$ac_cv_host
3718ac_save_IFS=$IFS; IFS='-'
3719set x $ac_cv_host
3720shift
3721host_cpu=$1
3722host_vendor=$2
3723shift; shift
3724# Remember, the first character of IFS is used to create $*,
3725# except with old shells:
3726host_os=$*
3727IFS=$ac_save_IFS
3728case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3729
3730
3731
3732cat >>confdefs.h <<_ACEOF
3733#define STR_SYSTEM "$host"
3734_ACEOF
3735
3736ac_config_headers="$ac_config_headers config.h"
3737
3738
3739DEPDIR="${am__leading_dot}deps"
3740
3741ac_config_commands="$ac_config_commands depfiles"
3742
3743
3744am_make=${MAKE-make}
3745cat > confinc << 'END'
3746am__doit:
3747	@echo this is the am__doit target
3748.PHONY: am__doit
3749END
3750# If we don't find an include directive, just comment out the code.
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3752$as_echo_n "checking for style of include used by $am_make... " >&6; }
3753am__include="#"
3754am__quote=
3755_am_result=none
3756# First try GNU make style include.
3757echo "include confinc" > confmf
3758# Ignore all kinds of additional output from 'make'.
3759case `$am_make -s -f confmf 2> /dev/null` in #(
3760*the\ am__doit\ target*)
3761  am__include=include
3762  am__quote=
3763  _am_result=GNU
3764  ;;
3765esac
3766# Now try BSD make style include.
3767if test "$am__include" = "#"; then
3768   echo '.include "confinc"' > confmf
3769   case `$am_make -s -f confmf 2> /dev/null` in #(
3770   *the\ am__doit\ target*)
3771     am__include=.include
3772     am__quote="\""
3773     _am_result=BSD
3774     ;;
3775   esac
3776fi
3777
3778
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3780$as_echo "$_am_result" >&6; }
3781rm -f confinc confmf
3782
3783# Check whether --enable-dependency-tracking was given.
3784if test "${enable_dependency_tracking+set}" = set; then :
3785  enableval=$enable_dependency_tracking;
3786fi
3787
3788if test "x$enable_dependency_tracking" != xno; then
3789  am_depcomp="$ac_aux_dir/depcomp"
3790  AMDEPBACKSLASH='\'
3791  am__nodep='_no'
3792fi
3793 if test "x$enable_dependency_tracking" != xno; then
3794  AMDEP_TRUE=
3795  AMDEP_FALSE='#'
3796else
3797  AMDEP_TRUE='#'
3798  AMDEP_FALSE=
3799fi
3800
3801
3802ac_ext=c
3803ac_cpp='$CPP $CPPFLAGS'
3804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806ac_compiler_gnu=$ac_cv_c_compiler_gnu
3807if test -n "$ac_tool_prefix"; then
3808  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3809set dummy ${ac_tool_prefix}gcc; ac_word=$2
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811$as_echo_n "checking for $ac_word... " >&6; }
3812if ${ac_cv_prog_CC+:} false; then :
3813  $as_echo_n "(cached) " >&6
3814else
3815  if test -n "$CC"; then
3816  ac_cv_prog_CC="$CC" # Let the user override the test.
3817else
3818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819for as_dir in $PATH
3820do
3821  IFS=$as_save_IFS
3822  test -z "$as_dir" && as_dir=.
3823    for ac_exec_ext in '' $ac_executable_extensions; do
3824  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3825    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3827    break 2
3828  fi
3829done
3830  done
3831IFS=$as_save_IFS
3832
3833fi
3834fi
3835CC=$ac_cv_prog_CC
3836if test -n "$CC"; then
3837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3838$as_echo "$CC" >&6; }
3839else
3840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841$as_echo "no" >&6; }
3842fi
3843
3844
3845fi
3846if test -z "$ac_cv_prog_CC"; then
3847  ac_ct_CC=$CC
3848  # Extract the first word of "gcc", so it can be a program name with args.
3849set dummy gcc; ac_word=$2
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851$as_echo_n "checking for $ac_word... " >&6; }
3852if ${ac_cv_prog_ac_ct_CC+:} false; then :
3853  $as_echo_n "(cached) " >&6
3854else
3855  if test -n "$ac_ct_CC"; then
3856  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3857else
3858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859for as_dir in $PATH
3860do
3861  IFS=$as_save_IFS
3862  test -z "$as_dir" && as_dir=.
3863    for ac_exec_ext in '' $ac_executable_extensions; do
3864  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3865    ac_cv_prog_ac_ct_CC="gcc"
3866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3867    break 2
3868  fi
3869done
3870  done
3871IFS=$as_save_IFS
3872
3873fi
3874fi
3875ac_ct_CC=$ac_cv_prog_ac_ct_CC
3876if test -n "$ac_ct_CC"; then
3877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3878$as_echo "$ac_ct_CC" >&6; }
3879else
3880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881$as_echo "no" >&6; }
3882fi
3883
3884  if test "x$ac_ct_CC" = x; then
3885    CC=""
3886  else
3887    case $cross_compiling:$ac_tool_warned in
3888yes:)
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3891ac_tool_warned=yes ;;
3892esac
3893    CC=$ac_ct_CC
3894  fi
3895else
3896  CC="$ac_cv_prog_CC"
3897fi
3898
3899if test -z "$CC"; then
3900          if test -n "$ac_tool_prefix"; then
3901    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3902set dummy ${ac_tool_prefix}cc; ac_word=$2
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904$as_echo_n "checking for $ac_word... " >&6; }
3905if ${ac_cv_prog_CC+:} false; then :
3906  $as_echo_n "(cached) " >&6
3907else
3908  if test -n "$CC"; then
3909  ac_cv_prog_CC="$CC" # Let the user override the test.
3910else
3911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH
3913do
3914  IFS=$as_save_IFS
3915  test -z "$as_dir" && as_dir=.
3916    for ac_exec_ext in '' $ac_executable_extensions; do
3917  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918    ac_cv_prog_CC="${ac_tool_prefix}cc"
3919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920    break 2
3921  fi
3922done
3923  done
3924IFS=$as_save_IFS
3925
3926fi
3927fi
3928CC=$ac_cv_prog_CC
3929if test -n "$CC"; then
3930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3931$as_echo "$CC" >&6; }
3932else
3933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934$as_echo "no" >&6; }
3935fi
3936
3937
3938  fi
3939fi
3940if test -z "$CC"; then
3941  # Extract the first word of "cc", so it can be a program name with args.
3942set dummy cc; ac_word=$2
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3944$as_echo_n "checking for $ac_word... " >&6; }
3945if ${ac_cv_prog_CC+:} false; then :
3946  $as_echo_n "(cached) " >&6
3947else
3948  if test -n "$CC"; then
3949  ac_cv_prog_CC="$CC" # Let the user override the test.
3950else
3951  ac_prog_rejected=no
3952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953for as_dir in $PATH
3954do
3955  IFS=$as_save_IFS
3956  test -z "$as_dir" && as_dir=.
3957    for ac_exec_ext in '' $ac_executable_extensions; do
3958  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3960       ac_prog_rejected=yes
3961       continue
3962     fi
3963    ac_cv_prog_CC="cc"
3964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965    break 2
3966  fi
3967done
3968  done
3969IFS=$as_save_IFS
3970
3971if test $ac_prog_rejected = yes; then
3972  # We found a bogon in the path, so make sure we never use it.
3973  set dummy $ac_cv_prog_CC
3974  shift
3975  if test $# != 0; then
3976    # We chose a different compiler from the bogus one.
3977    # However, it has the same basename, so the bogon will be chosen
3978    # first if we set CC to just the basename; use the full file name.
3979    shift
3980    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3981  fi
3982fi
3983fi
3984fi
3985CC=$ac_cv_prog_CC
3986if test -n "$CC"; then
3987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3988$as_echo "$CC" >&6; }
3989else
3990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991$as_echo "no" >&6; }
3992fi
3993
3994
3995fi
3996if test -z "$CC"; then
3997  if test -n "$ac_tool_prefix"; then
3998  for ac_prog in cl.exe
3999  do
4000    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4001set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4003$as_echo_n "checking for $ac_word... " >&6; }
4004if ${ac_cv_prog_CC+:} false; then :
4005  $as_echo_n "(cached) " >&6
4006else
4007  if test -n "$CC"; then
4008  ac_cv_prog_CC="$CC" # Let the user override the test.
4009else
4010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011for as_dir in $PATH
4012do
4013  IFS=$as_save_IFS
4014  test -z "$as_dir" && as_dir=.
4015    for ac_exec_ext in '' $ac_executable_extensions; do
4016  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4017    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4019    break 2
4020  fi
4021done
4022  done
4023IFS=$as_save_IFS
4024
4025fi
4026fi
4027CC=$ac_cv_prog_CC
4028if test -n "$CC"; then
4029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4030$as_echo "$CC" >&6; }
4031else
4032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033$as_echo "no" >&6; }
4034fi
4035
4036
4037    test -n "$CC" && break
4038  done
4039fi
4040if test -z "$CC"; then
4041  ac_ct_CC=$CC
4042  for ac_prog in cl.exe
4043do
4044  # Extract the first word of "$ac_prog", so it can be a program name with args.
4045set dummy $ac_prog; ac_word=$2
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047$as_echo_n "checking for $ac_word... " >&6; }
4048if ${ac_cv_prog_ac_ct_CC+:} false; then :
4049  $as_echo_n "(cached) " >&6
4050else
4051  if test -n "$ac_ct_CC"; then
4052  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4053else
4054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055for as_dir in $PATH
4056do
4057  IFS=$as_save_IFS
4058  test -z "$as_dir" && as_dir=.
4059    for ac_exec_ext in '' $ac_executable_extensions; do
4060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4061    ac_cv_prog_ac_ct_CC="$ac_prog"
4062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4063    break 2
4064  fi
4065done
4066  done
4067IFS=$as_save_IFS
4068
4069fi
4070fi
4071ac_ct_CC=$ac_cv_prog_ac_ct_CC
4072if test -n "$ac_ct_CC"; then
4073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4074$as_echo "$ac_ct_CC" >&6; }
4075else
4076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077$as_echo "no" >&6; }
4078fi
4079
4080
4081  test -n "$ac_ct_CC" && break
4082done
4083
4084  if test "x$ac_ct_CC" = x; then
4085    CC=""
4086  else
4087    case $cross_compiling:$ac_tool_warned in
4088yes:)
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4091ac_tool_warned=yes ;;
4092esac
4093    CC=$ac_ct_CC
4094  fi
4095fi
4096
4097fi
4098
4099
4100test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4102as_fn_error $? "no acceptable C compiler found in \$PATH
4103See \`config.log' for more details" "$LINENO" 5; }
4104
4105# Provide some information about the compiler.
4106$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4107set X $ac_compile
4108ac_compiler=$2
4109for ac_option in --version -v -V -qversion; do
4110  { { ac_try="$ac_compiler $ac_option >&5"
4111case "(($ac_try" in
4112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113  *) ac_try_echo=$ac_try;;
4114esac
4115eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116$as_echo "$ac_try_echo"; } >&5
4117  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4118  ac_status=$?
4119  if test -s conftest.err; then
4120    sed '10a\
4121... rest of stderr output deleted ...
4122         10q' conftest.err >conftest.er1
4123    cat conftest.er1 >&5
4124  fi
4125  rm -f conftest.er1 conftest.err
4126  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4127  test $ac_status = 0; }
4128done
4129
4130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131/* end confdefs.h.  */
4132
4133int
4134main ()
4135{
4136
4137  ;
4138  return 0;
4139}
4140_ACEOF
4141ac_clean_files_save=$ac_clean_files
4142ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4143# Try to create an executable without -o first, disregard a.out.
4144# It will help us diagnose broken compilers, and finding out an intuition
4145# of exeext.
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4147$as_echo_n "checking whether the C compiler works... " >&6; }
4148ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4149
4150# The possible output files:
4151ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4152
4153ac_rmfiles=
4154for ac_file in $ac_files
4155do
4156  case $ac_file in
4157    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4158    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4159  esac
4160done
4161rm -f $ac_rmfiles
4162
4163if { { ac_try="$ac_link_default"
4164case "(($ac_try" in
4165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166  *) ac_try_echo=$ac_try;;
4167esac
4168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4169$as_echo "$ac_try_echo"; } >&5
4170  (eval "$ac_link_default") 2>&5
4171  ac_status=$?
4172  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4173  test $ac_status = 0; }; then :
4174  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4175# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4176# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4177# so that the user can short-circuit this test for compilers unknown to
4178# Autoconf.
4179for ac_file in $ac_files ''
4180do
4181  test -f "$ac_file" || continue
4182  case $ac_file in
4183    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4184	;;
4185    [ab].out )
4186	# We found the default executable, but exeext='' is most
4187	# certainly right.
4188	break;;
4189    *.* )
4190	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4191	then :; else
4192	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4193	fi
4194	# We set ac_cv_exeext here because the later test for it is not
4195	# safe: cross compilers may not add the suffix if given an `-o'
4196	# argument, so we may need to know it at that point already.
4197	# Even if this section looks crufty: it has the advantage of
4198	# actually working.
4199	break;;
4200    * )
4201	break;;
4202  esac
4203done
4204test "$ac_cv_exeext" = no && ac_cv_exeext=
4205
4206else
4207  ac_file=''
4208fi
4209if test -z "$ac_file"; then :
4210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211$as_echo "no" >&6; }
4212$as_echo "$as_me: failed program was:" >&5
4213sed 's/^/| /' conftest.$ac_ext >&5
4214
4215{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4217as_fn_error 77 "C compiler cannot create executables
4218See \`config.log' for more details" "$LINENO" 5; }
4219else
4220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4221$as_echo "yes" >&6; }
4222fi
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4224$as_echo_n "checking for C compiler default output file name... " >&6; }
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4226$as_echo "$ac_file" >&6; }
4227ac_exeext=$ac_cv_exeext
4228
4229rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4230ac_clean_files=$ac_clean_files_save
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4232$as_echo_n "checking for suffix of executables... " >&6; }
4233if { { ac_try="$ac_link"
4234case "(($ac_try" in
4235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236  *) ac_try_echo=$ac_try;;
4237esac
4238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4239$as_echo "$ac_try_echo"; } >&5
4240  (eval "$ac_link") 2>&5
4241  ac_status=$?
4242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4243  test $ac_status = 0; }; then :
4244  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4245# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4246# work properly (i.e., refer to `conftest.exe'), while it won't with
4247# `rm'.
4248for ac_file in conftest.exe conftest conftest.*; do
4249  test -f "$ac_file" || continue
4250  case $ac_file in
4251    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4252    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4253	  break;;
4254    * ) break;;
4255  esac
4256done
4257else
4258  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4260as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4261See \`config.log' for more details" "$LINENO" 5; }
4262fi
4263rm -f conftest conftest$ac_cv_exeext
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4265$as_echo "$ac_cv_exeext" >&6; }
4266
4267rm -f conftest.$ac_ext
4268EXEEXT=$ac_cv_exeext
4269ac_exeext=$EXEEXT
4270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271/* end confdefs.h.  */
4272#include <stdio.h>
4273int
4274main ()
4275{
4276FILE *f = fopen ("conftest.out", "w");
4277 return ferror (f) || fclose (f) != 0;
4278
4279  ;
4280  return 0;
4281}
4282_ACEOF
4283ac_clean_files="$ac_clean_files conftest.out"
4284# Check that the compiler produces executables we can run.  If not, either
4285# the compiler is broken, or we cross compile.
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4287$as_echo_n "checking whether we are cross compiling... " >&6; }
4288if test "$cross_compiling" != yes; then
4289  { { ac_try="$ac_link"
4290case "(($ac_try" in
4291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292  *) ac_try_echo=$ac_try;;
4293esac
4294eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295$as_echo "$ac_try_echo"; } >&5
4296  (eval "$ac_link") 2>&5
4297  ac_status=$?
4298  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299  test $ac_status = 0; }
4300  if { ac_try='./conftest$ac_cv_exeext'
4301  { { case "(($ac_try" in
4302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303  *) ac_try_echo=$ac_try;;
4304esac
4305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306$as_echo "$ac_try_echo"; } >&5
4307  (eval "$ac_try") 2>&5
4308  ac_status=$?
4309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310  test $ac_status = 0; }; }; then
4311    cross_compiling=no
4312  else
4313    if test "$cross_compiling" = maybe; then
4314	cross_compiling=yes
4315    else
4316	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4318as_fn_error $? "cannot run C compiled programs.
4319If you meant to cross compile, use \`--host'.
4320See \`config.log' for more details" "$LINENO" 5; }
4321    fi
4322  fi
4323fi
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4325$as_echo "$cross_compiling" >&6; }
4326
4327rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4328ac_clean_files=$ac_clean_files_save
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4330$as_echo_n "checking for suffix of object files... " >&6; }
4331if ${ac_cv_objext+:} false; then :
4332  $as_echo_n "(cached) " >&6
4333else
4334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335/* end confdefs.h.  */
4336
4337int
4338main ()
4339{
4340
4341  ;
4342  return 0;
4343}
4344_ACEOF
4345rm -f conftest.o conftest.obj
4346if { { ac_try="$ac_compile"
4347case "(($ac_try" in
4348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349  *) ac_try_echo=$ac_try;;
4350esac
4351eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4352$as_echo "$ac_try_echo"; } >&5
4353  (eval "$ac_compile") 2>&5
4354  ac_status=$?
4355  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4356  test $ac_status = 0; }; then :
4357  for ac_file in conftest.o conftest.obj conftest.*; do
4358  test -f "$ac_file" || continue;
4359  case $ac_file in
4360    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4361    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4362       break;;
4363  esac
4364done
4365else
4366  $as_echo "$as_me: failed program was:" >&5
4367sed 's/^/| /' conftest.$ac_ext >&5
4368
4369{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4370$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4371as_fn_error $? "cannot compute suffix of object files: cannot compile
4372See \`config.log' for more details" "$LINENO" 5; }
4373fi
4374rm -f conftest.$ac_cv_objext conftest.$ac_ext
4375fi
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4377$as_echo "$ac_cv_objext" >&6; }
4378OBJEXT=$ac_cv_objext
4379ac_objext=$OBJEXT
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4381$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4382if ${ac_cv_c_compiler_gnu+:} false; then :
4383  $as_echo_n "(cached) " >&6
4384else
4385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386/* end confdefs.h.  */
4387
4388int
4389main ()
4390{
4391#ifndef __GNUC__
4392       choke me
4393#endif
4394
4395  ;
4396  return 0;
4397}
4398_ACEOF
4399if ac_fn_c_try_compile "$LINENO"; then :
4400  ac_compiler_gnu=yes
4401else
4402  ac_compiler_gnu=no
4403fi
4404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405ac_cv_c_compiler_gnu=$ac_compiler_gnu
4406
4407fi
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4409$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4410if test $ac_compiler_gnu = yes; then
4411  GCC=yes
4412else
4413  GCC=
4414fi
4415ac_test_CFLAGS=${CFLAGS+set}
4416ac_save_CFLAGS=$CFLAGS
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4418$as_echo_n "checking whether $CC accepts -g... " >&6; }
4419if ${ac_cv_prog_cc_g+:} false; then :
4420  $as_echo_n "(cached) " >&6
4421else
4422  ac_save_c_werror_flag=$ac_c_werror_flag
4423   ac_c_werror_flag=yes
4424   ac_cv_prog_cc_g=no
4425   CFLAGS="-g"
4426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427/* end confdefs.h.  */
4428
4429int
4430main ()
4431{
4432
4433  ;
4434  return 0;
4435}
4436_ACEOF
4437if ac_fn_c_try_compile "$LINENO"; then :
4438  ac_cv_prog_cc_g=yes
4439else
4440  CFLAGS=""
4441      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442/* end confdefs.h.  */
4443
4444int
4445main ()
4446{
4447
4448  ;
4449  return 0;
4450}
4451_ACEOF
4452if ac_fn_c_try_compile "$LINENO"; then :
4453
4454else
4455  ac_c_werror_flag=$ac_save_c_werror_flag
4456	 CFLAGS="-g"
4457	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458/* end confdefs.h.  */
4459
4460int
4461main ()
4462{
4463
4464  ;
4465  return 0;
4466}
4467_ACEOF
4468if ac_fn_c_try_compile "$LINENO"; then :
4469  ac_cv_prog_cc_g=yes
4470fi
4471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472fi
4473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4474fi
4475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476   ac_c_werror_flag=$ac_save_c_werror_flag
4477fi
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4479$as_echo "$ac_cv_prog_cc_g" >&6; }
4480if test "$ac_test_CFLAGS" = set; then
4481  CFLAGS=$ac_save_CFLAGS
4482elif test $ac_cv_prog_cc_g = yes; then
4483  if test "$GCC" = yes; then
4484    CFLAGS="-g -O2"
4485  else
4486    CFLAGS="-g"
4487  fi
4488else
4489  if test "$GCC" = yes; then
4490    CFLAGS="-O2"
4491  else
4492    CFLAGS=
4493  fi
4494fi
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4496$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4497if ${ac_cv_prog_cc_c89+:} false; then :
4498  $as_echo_n "(cached) " >&6
4499else
4500  ac_cv_prog_cc_c89=no
4501ac_save_CC=$CC
4502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503/* end confdefs.h.  */
4504#include <stdarg.h>
4505#include <stdio.h>
4506struct stat;
4507/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4508struct buf { int x; };
4509FILE * (*rcsopen) (struct buf *, struct stat *, int);
4510static char *e (p, i)
4511     char **p;
4512     int i;
4513{
4514  return p[i];
4515}
4516static char *f (char * (*g) (char **, int), char **p, ...)
4517{
4518  char *s;
4519  va_list v;
4520  va_start (v,p);
4521  s = g (p, va_arg (v,int));
4522  va_end (v);
4523  return s;
4524}
4525
4526/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4527   function prototypes and stuff, but not '\xHH' hex character constants.
4528   These don't provoke an error unfortunately, instead are silently treated
4529   as 'x'.  The following induces an error, until -std is added to get
4530   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4531   array size at least.  It's necessary to write '\x00'==0 to get something
4532   that's true only with -std.  */
4533int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4534
4535/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4536   inside strings and character constants.  */
4537#define FOO(x) 'x'
4538int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4539
4540int test (int i, double x);
4541struct s1 {int (*f) (int a);};
4542struct s2 {int (*f) (double a);};
4543int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4544int argc;
4545char **argv;
4546int
4547main ()
4548{
4549return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4550  ;
4551  return 0;
4552}
4553_ACEOF
4554for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4555	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4556do
4557  CC="$ac_save_CC $ac_arg"
4558  if ac_fn_c_try_compile "$LINENO"; then :
4559  ac_cv_prog_cc_c89=$ac_arg
4560fi
4561rm -f core conftest.err conftest.$ac_objext
4562  test "x$ac_cv_prog_cc_c89" != "xno" && break
4563done
4564rm -f conftest.$ac_ext
4565CC=$ac_save_CC
4566
4567fi
4568# AC_CACHE_VAL
4569case "x$ac_cv_prog_cc_c89" in
4570  x)
4571    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4572$as_echo "none needed" >&6; } ;;
4573  xno)
4574    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4575$as_echo "unsupported" >&6; } ;;
4576  *)
4577    CC="$CC $ac_cv_prog_cc_c89"
4578    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4579$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4580esac
4581if test "x$ac_cv_prog_cc_c89" != xno; then :
4582
4583fi
4584
4585ac_ext=c
4586ac_cpp='$CPP $CPPFLAGS'
4587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4589ac_compiler_gnu=$ac_cv_c_compiler_gnu
4590
4591ac_ext=c
4592ac_cpp='$CPP $CPPFLAGS'
4593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4597$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4598if ${am_cv_prog_cc_c_o+:} false; then :
4599  $as_echo_n "(cached) " >&6
4600else
4601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602/* end confdefs.h.  */
4603
4604int
4605main ()
4606{
4607
4608  ;
4609  return 0;
4610}
4611_ACEOF
4612  # Make sure it works both with $CC and with simple cc.
4613  # Following AC_PROG_CC_C_O, we do the test twice because some
4614  # compilers refuse to overwrite an existing .o file with -o,
4615  # though they will create one.
4616  am_cv_prog_cc_c_o=yes
4617  for am_i in 1 2; do
4618    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4619   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4620   ac_status=$?
4621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622   (exit $ac_status); } \
4623         && test -f conftest2.$ac_objext; then
4624      : OK
4625    else
4626      am_cv_prog_cc_c_o=no
4627      break
4628    fi
4629  done
4630  rm -f core conftest*
4631  unset am_i
4632fi
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4634$as_echo "$am_cv_prog_cc_c_o" >&6; }
4635if test "$am_cv_prog_cc_c_o" != yes; then
4636   # Losing compiler, so override with the script.
4637   # FIXME: It is wrong to rewrite CC.
4638   # But if we don't then we get into trouble of one sort or another.
4639   # A longer-term fix would be to have automake use am__CC in this case,
4640   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4641   CC="$am_aux_dir/compile $CC"
4642fi
4643ac_ext=c
4644ac_cpp='$CPP $CPPFLAGS'
4645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4647ac_compiler_gnu=$ac_cv_c_compiler_gnu
4648
4649
4650depcc="$CC"   am_compiler_list=
4651
4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4653$as_echo_n "checking dependency style of $depcc... " >&6; }
4654if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4655  $as_echo_n "(cached) " >&6
4656else
4657  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4658  # We make a subdir and do the tests there.  Otherwise we can end up
4659  # making bogus files that we don't know about and never remove.  For
4660  # instance it was reported that on HP-UX the gcc test will end up
4661  # making a dummy file named 'D' -- because '-MD' means "put the output
4662  # in D".
4663  rm -rf conftest.dir
4664  mkdir conftest.dir
4665  # Copy depcomp to subdir because otherwise we won't find it if we're
4666  # using a relative directory.
4667  cp "$am_depcomp" conftest.dir
4668  cd conftest.dir
4669  # We will build objects and dependencies in a subdirectory because
4670  # it helps to detect inapplicable dependency modes.  For instance
4671  # both Tru64's cc and ICC support -MD to output dependencies as a
4672  # side effect of compilation, but ICC will put the dependencies in
4673  # the current directory while Tru64 will put them in the object
4674  # directory.
4675  mkdir sub
4676
4677  am_cv_CC_dependencies_compiler_type=none
4678  if test "$am_compiler_list" = ""; then
4679     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4680  fi
4681  am__universal=false
4682  case " $depcc " in #(
4683     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4684     esac
4685
4686  for depmode in $am_compiler_list; do
4687    # Setup a source with many dependencies, because some compilers
4688    # like to wrap large dependency lists on column 80 (with \), and
4689    # we should not choose a depcomp mode which is confused by this.
4690    #
4691    # We need to recreate these files for each test, as the compiler may
4692    # overwrite some of them when testing with obscure command lines.
4693    # This happens at least with the AIX C compiler.
4694    : > sub/conftest.c
4695    for i in 1 2 3 4 5 6; do
4696      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4697      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4698      # Solaris 10 /bin/sh.
4699      echo '/* dummy */' > sub/conftst$i.h
4700    done
4701    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4702
4703    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4704    # mode.  It turns out that the SunPro C++ compiler does not properly
4705    # handle '-M -o', and we need to detect this.  Also, some Intel
4706    # versions had trouble with output in subdirs.
4707    am__obj=sub/conftest.${OBJEXT-o}
4708    am__minus_obj="-o $am__obj"
4709    case $depmode in
4710    gcc)
4711      # This depmode causes a compiler race in universal mode.
4712      test "$am__universal" = false || continue
4713      ;;
4714    nosideeffect)
4715      # After this tag, mechanisms are not by side-effect, so they'll
4716      # only be used when explicitly requested.
4717      if test "x$enable_dependency_tracking" = xyes; then
4718	continue
4719      else
4720	break
4721      fi
4722      ;;
4723    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4724      # This compiler won't grok '-c -o', but also, the minuso test has
4725      # not run yet.  These depmodes are late enough in the game, and
4726      # so weak that their functioning should not be impacted.
4727      am__obj=conftest.${OBJEXT-o}
4728      am__minus_obj=
4729      ;;
4730    none) break ;;
4731    esac
4732    if depmode=$depmode \
4733       source=sub/conftest.c object=$am__obj \
4734       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4735       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4736         >/dev/null 2>conftest.err &&
4737       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4738       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4739       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4740       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4741      # icc doesn't choke on unknown options, it will just issue warnings
4742      # or remarks (even with -Werror).  So we grep stderr for any message
4743      # that says an option was ignored or not supported.
4744      # When given -MP, icc 7.0 and 7.1 complain thusly:
4745      #   icc: Command line warning: ignoring option '-M'; no argument required
4746      # The diagnosis changed in icc 8.0:
4747      #   icc: Command line remark: option '-MP' not supported
4748      if (grep 'ignoring option' conftest.err ||
4749          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4750        am_cv_CC_dependencies_compiler_type=$depmode
4751        break
4752      fi
4753    fi
4754  done
4755
4756  cd ..
4757  rm -rf conftest.dir
4758else
4759  am_cv_CC_dependencies_compiler_type=none
4760fi
4761
4762fi
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4764$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4765CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4766
4767 if
4768  test "x$enable_dependency_tracking" != xno \
4769  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4770  am__fastdepCC_TRUE=
4771  am__fastdepCC_FALSE='#'
4772else
4773  am__fastdepCC_TRUE='#'
4774  am__fastdepCC_FALSE=
4775fi
4776
4777
4778
4779ac_ext=c
4780ac_cpp='$CPP $CPPFLAGS'
4781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783ac_compiler_gnu=$ac_cv_c_compiler_gnu
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4785$as_echo_n "checking how to run the C preprocessor... " >&6; }
4786# On Suns, sometimes $CPP names a directory.
4787if test -n "$CPP" && test -d "$CPP"; then
4788  CPP=
4789fi
4790if test -z "$CPP"; then
4791  if ${ac_cv_prog_CPP+:} false; then :
4792  $as_echo_n "(cached) " >&6
4793else
4794      # Double quotes because CPP needs to be expanded
4795    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4796    do
4797      ac_preproc_ok=false
4798for ac_c_preproc_warn_flag in '' yes
4799do
4800  # Use a header file that comes with gcc, so configuring glibc
4801  # with a fresh cross-compiler works.
4802  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4803  # <limits.h> exists even on freestanding compilers.
4804  # On the NeXT, cc -E runs the code through the compiler's parser,
4805  # not just through cpp. "Syntax error" is here to catch this case.
4806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807/* end confdefs.h.  */
4808#ifdef __STDC__
4809# include <limits.h>
4810#else
4811# include <assert.h>
4812#endif
4813		     Syntax error
4814_ACEOF
4815if ac_fn_c_try_cpp "$LINENO"; then :
4816
4817else
4818  # Broken: fails on valid input.
4819continue
4820fi
4821rm -f conftest.err conftest.i conftest.$ac_ext
4822
4823  # OK, works on sane cases.  Now check whether nonexistent headers
4824  # can be detected and how.
4825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826/* end confdefs.h.  */
4827#include <ac_nonexistent.h>
4828_ACEOF
4829if ac_fn_c_try_cpp "$LINENO"; then :
4830  # Broken: success on invalid input.
4831continue
4832else
4833  # Passes both tests.
4834ac_preproc_ok=:
4835break
4836fi
4837rm -f conftest.err conftest.i conftest.$ac_ext
4838
4839done
4840# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4841rm -f conftest.i conftest.err conftest.$ac_ext
4842if $ac_preproc_ok; then :
4843  break
4844fi
4845
4846    done
4847    ac_cv_prog_CPP=$CPP
4848
4849fi
4850  CPP=$ac_cv_prog_CPP
4851else
4852  ac_cv_prog_CPP=$CPP
4853fi
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4855$as_echo "$CPP" >&6; }
4856ac_preproc_ok=false
4857for ac_c_preproc_warn_flag in '' yes
4858do
4859  # Use a header file that comes with gcc, so configuring glibc
4860  # with a fresh cross-compiler works.
4861  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4862  # <limits.h> exists even on freestanding compilers.
4863  # On the NeXT, cc -E runs the code through the compiler's parser,
4864  # not just through cpp. "Syntax error" is here to catch this case.
4865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866/* end confdefs.h.  */
4867#ifdef __STDC__
4868# include <limits.h>
4869#else
4870# include <assert.h>
4871#endif
4872		     Syntax error
4873_ACEOF
4874if ac_fn_c_try_cpp "$LINENO"; then :
4875
4876else
4877  # Broken: fails on valid input.
4878continue
4879fi
4880rm -f conftest.err conftest.i conftest.$ac_ext
4881
4882  # OK, works on sane cases.  Now check whether nonexistent headers
4883  # can be detected and how.
4884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885/* end confdefs.h.  */
4886#include <ac_nonexistent.h>
4887_ACEOF
4888if ac_fn_c_try_cpp "$LINENO"; then :
4889  # Broken: success on invalid input.
4890continue
4891else
4892  # Passes both tests.
4893ac_preproc_ok=:
4894break
4895fi
4896rm -f conftest.err conftest.i conftest.$ac_ext
4897
4898done
4899# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4900rm -f conftest.i conftest.err conftest.$ac_ext
4901if $ac_preproc_ok; then :
4902
4903else
4904  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4906as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4907See \`config.log' for more details" "$LINENO" 5; }
4908fi
4909
4910ac_ext=c
4911ac_cpp='$CPP $CPPFLAGS'
4912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914ac_compiler_gnu=$ac_cv_c_compiler_gnu
4915
4916
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4918$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4919if ${ac_cv_path_GREP+:} false; then :
4920  $as_echo_n "(cached) " >&6
4921else
4922  if test -z "$GREP"; then
4923  ac_path_GREP_found=false
4924  # Loop through the user's path and test for each of PROGNAME-LIST
4925  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4927do
4928  IFS=$as_save_IFS
4929  test -z "$as_dir" && as_dir=.
4930    for ac_prog in grep ggrep; do
4931    for ac_exec_ext in '' $ac_executable_extensions; do
4932      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4933      as_fn_executable_p "$ac_path_GREP" || continue
4934# Check for GNU ac_path_GREP and select it if it is found.
4935  # Check for GNU $ac_path_GREP
4936case `"$ac_path_GREP" --version 2>&1` in
4937*GNU*)
4938  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4939*)
4940  ac_count=0
4941  $as_echo_n 0123456789 >"conftest.in"
4942  while :
4943  do
4944    cat "conftest.in" "conftest.in" >"conftest.tmp"
4945    mv "conftest.tmp" "conftest.in"
4946    cp "conftest.in" "conftest.nl"
4947    $as_echo 'GREP' >> "conftest.nl"
4948    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4949    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4950    as_fn_arith $ac_count + 1 && ac_count=$as_val
4951    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4952      # Best one so far, save it but keep looking for a better one
4953      ac_cv_path_GREP="$ac_path_GREP"
4954      ac_path_GREP_max=$ac_count
4955    fi
4956    # 10*(2^10) chars as input seems more than enough
4957    test $ac_count -gt 10 && break
4958  done
4959  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4960esac
4961
4962      $ac_path_GREP_found && break 3
4963    done
4964  done
4965  done
4966IFS=$as_save_IFS
4967  if test -z "$ac_cv_path_GREP"; then
4968    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4969  fi
4970else
4971  ac_cv_path_GREP=$GREP
4972fi
4973
4974fi
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4976$as_echo "$ac_cv_path_GREP" >&6; }
4977 GREP="$ac_cv_path_GREP"
4978
4979
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4981$as_echo_n "checking for egrep... " >&6; }
4982if ${ac_cv_path_EGREP+:} false; then :
4983  $as_echo_n "(cached) " >&6
4984else
4985  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4986   then ac_cv_path_EGREP="$GREP -E"
4987   else
4988     if test -z "$EGREP"; then
4989  ac_path_EGREP_found=false
4990  # Loop through the user's path and test for each of PROGNAME-LIST
4991  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4993do
4994  IFS=$as_save_IFS
4995  test -z "$as_dir" && as_dir=.
4996    for ac_prog in egrep; do
4997    for ac_exec_ext in '' $ac_executable_extensions; do
4998      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4999      as_fn_executable_p "$ac_path_EGREP" || continue
5000# Check for GNU ac_path_EGREP and select it if it is found.
5001  # Check for GNU $ac_path_EGREP
5002case `"$ac_path_EGREP" --version 2>&1` in
5003*GNU*)
5004  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5005*)
5006  ac_count=0
5007  $as_echo_n 0123456789 >"conftest.in"
5008  while :
5009  do
5010    cat "conftest.in" "conftest.in" >"conftest.tmp"
5011    mv "conftest.tmp" "conftest.in"
5012    cp "conftest.in" "conftest.nl"
5013    $as_echo 'EGREP' >> "conftest.nl"
5014    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5015    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5016    as_fn_arith $ac_count + 1 && ac_count=$as_val
5017    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5018      # Best one so far, save it but keep looking for a better one
5019      ac_cv_path_EGREP="$ac_path_EGREP"
5020      ac_path_EGREP_max=$ac_count
5021    fi
5022    # 10*(2^10) chars as input seems more than enough
5023    test $ac_count -gt 10 && break
5024  done
5025  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5026esac
5027
5028      $ac_path_EGREP_found && break 3
5029    done
5030  done
5031  done
5032IFS=$as_save_IFS
5033  if test -z "$ac_cv_path_EGREP"; then
5034    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5035  fi
5036else
5037  ac_cv_path_EGREP=$EGREP
5038fi
5039
5040   fi
5041fi
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5043$as_echo "$ac_cv_path_EGREP" >&6; }
5044 EGREP="$ac_cv_path_EGREP"
5045
5046
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5048$as_echo_n "checking for ANSI C header files... " >&6; }
5049if ${ac_cv_header_stdc+:} false; then :
5050  $as_echo_n "(cached) " >&6
5051else
5052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053/* end confdefs.h.  */
5054#include <stdlib.h>
5055#include <stdarg.h>
5056#include <string.h>
5057#include <float.h>
5058
5059int
5060main ()
5061{
5062
5063  ;
5064  return 0;
5065}
5066_ACEOF
5067if ac_fn_c_try_compile "$LINENO"; then :
5068  ac_cv_header_stdc=yes
5069else
5070  ac_cv_header_stdc=no
5071fi
5072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073
5074if test $ac_cv_header_stdc = yes; then
5075  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077/* end confdefs.h.  */
5078#include <string.h>
5079
5080_ACEOF
5081if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5082  $EGREP "memchr" >/dev/null 2>&1; then :
5083
5084else
5085  ac_cv_header_stdc=no
5086fi
5087rm -f conftest*
5088
5089fi
5090
5091if test $ac_cv_header_stdc = yes; then
5092  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094/* end confdefs.h.  */
5095#include <stdlib.h>
5096
5097_ACEOF
5098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5099  $EGREP "free" >/dev/null 2>&1; then :
5100
5101else
5102  ac_cv_header_stdc=no
5103fi
5104rm -f conftest*
5105
5106fi
5107
5108if test $ac_cv_header_stdc = yes; then
5109  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5110  if test "$cross_compiling" = yes; then :
5111  :
5112else
5113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114/* end confdefs.h.  */
5115#include <ctype.h>
5116#include <stdlib.h>
5117#if ((' ' & 0x0FF) == 0x020)
5118# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5119# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5120#else
5121# define ISLOWER(c) \
5122		   (('a' <= (c) && (c) <= 'i') \
5123		     || ('j' <= (c) && (c) <= 'r') \
5124		     || ('s' <= (c) && (c) <= 'z'))
5125# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5126#endif
5127
5128#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5129int
5130main ()
5131{
5132  int i;
5133  for (i = 0; i < 256; i++)
5134    if (XOR (islower (i), ISLOWER (i))
5135	|| toupper (i) != TOUPPER (i))
5136      return 2;
5137  return 0;
5138}
5139_ACEOF
5140if ac_fn_c_try_run "$LINENO"; then :
5141
5142else
5143  ac_cv_header_stdc=no
5144fi
5145rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5146  conftest.$ac_objext conftest.beam conftest.$ac_ext
5147fi
5148
5149fi
5150fi
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5152$as_echo "$ac_cv_header_stdc" >&6; }
5153if test $ac_cv_header_stdc = yes; then
5154
5155$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5156
5157fi
5158
5159# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5160for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5161		  inttypes.h stdint.h unistd.h
5162do :
5163  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5164ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5165"
5166if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5167  cat >>confdefs.h <<_ACEOF
5168#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5169_ACEOF
5170
5171fi
5172
5173done
5174
5175
5176
5177
5178
5179  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5180if test "x$ac_cv_header_minix_config_h" = xyes; then :
5181  MINIX=yes
5182else
5183  MINIX=
5184fi
5185
5186
5187  if test "$MINIX" = yes; then
5188
5189$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5190
5191
5192$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5193
5194
5195$as_echo "#define _MINIX 1" >>confdefs.h
5196
5197  fi
5198
5199        case "$host_os" in
5200    hpux*)
5201
5202$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5203
5204      ;;
5205  esac
5206
5207
5208  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5209$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5210if ${ac_cv_safe_to_define___extensions__+:} false; then :
5211  $as_echo_n "(cached) " >&6
5212else
5213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214/* end confdefs.h.  */
5215
5216#         define __EXTENSIONS__ 1
5217          $ac_includes_default
5218int
5219main ()
5220{
5221
5222  ;
5223  return 0;
5224}
5225_ACEOF
5226if ac_fn_c_try_compile "$LINENO"; then :
5227  ac_cv_safe_to_define___extensions__=yes
5228else
5229  ac_cv_safe_to_define___extensions__=no
5230fi
5231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5232fi
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5234$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5235  test $ac_cv_safe_to_define___extensions__ = yes &&
5236    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5237
5238  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5239
5240  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5241
5242  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5243
5244  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5245
5246
5247
5248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5249$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5250if ${ac_cv_prog_cc_c89+:} false; then :
5251  $as_echo_n "(cached) " >&6
5252else
5253  ac_cv_prog_cc_c89=no
5254ac_save_CC=$CC
5255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256/* end confdefs.h.  */
5257#include <stdarg.h>
5258#include <stdio.h>
5259struct stat;
5260/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5261struct buf { int x; };
5262FILE * (*rcsopen) (struct buf *, struct stat *, int);
5263static char *e (p, i)
5264     char **p;
5265     int i;
5266{
5267  return p[i];
5268}
5269static char *f (char * (*g) (char **, int), char **p, ...)
5270{
5271  char *s;
5272  va_list v;
5273  va_start (v,p);
5274  s = g (p, va_arg (v,int));
5275  va_end (v);
5276  return s;
5277}
5278
5279/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5280   function prototypes and stuff, but not '\xHH' hex character constants.
5281   These don't provoke an error unfortunately, instead are silently treated
5282   as 'x'.  The following induces an error, until -std is added to get
5283   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5284   array size at least.  It's necessary to write '\x00'==0 to get something
5285   that's true only with -std.  */
5286int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5287
5288/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5289   inside strings and character constants.  */
5290#define FOO(x) 'x'
5291int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5292
5293int test (int i, double x);
5294struct s1 {int (*f) (int a);};
5295struct s2 {int (*f) (double a);};
5296int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5297int argc;
5298char **argv;
5299int
5300main ()
5301{
5302return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5303  ;
5304  return 0;
5305}
5306_ACEOF
5307for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5308	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5309do
5310  CC="$ac_save_CC $ac_arg"
5311  if ac_fn_c_try_compile "$LINENO"; then :
5312  ac_cv_prog_cc_c89=$ac_arg
5313fi
5314rm -f core conftest.err conftest.$ac_objext
5315  test "x$ac_cv_prog_cc_c89" != "xno" && break
5316done
5317rm -f conftest.$ac_ext
5318CC=$ac_save_CC
5319
5320fi
5321# AC_CACHE_VAL
5322case "x$ac_cv_prog_cc_c89" in
5323  x)
5324    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5325$as_echo "none needed" >&6; } ;;
5326  xno)
5327    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5328$as_echo "unsupported" >&6; } ;;
5329  *)
5330    CC="$CC $ac_cv_prog_cc_c89"
5331    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5332$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5333esac
5334if test "x$ac_cv_prog_cc_c89" != xno; then :
5335
5336fi
5337
5338
5339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5340$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5341if ${ac_cv_prog_cc_c99+:} false; then :
5342  $as_echo_n "(cached) " >&6
5343else
5344  ac_cv_prog_cc_c99=no
5345ac_save_CC=$CC
5346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347/* end confdefs.h.  */
5348#include <stdarg.h>
5349#include <stdbool.h>
5350#include <stdlib.h>
5351#include <wchar.h>
5352#include <stdio.h>
5353
5354// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5355#define debug(...) fprintf (stderr, __VA_ARGS__)
5356#define showlist(...) puts (#__VA_ARGS__)
5357#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5358static void
5359test_varargs_macros (void)
5360{
5361  int x = 1234;
5362  int y = 5678;
5363  debug ("Flag");
5364  debug ("X = %d\n", x);
5365  showlist (The first, second, and third items.);
5366  report (x>y, "x is %d but y is %d", x, y);
5367}
5368
5369// Check long long types.
5370#define BIG64 18446744073709551615ull
5371#define BIG32 4294967295ul
5372#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5373#if !BIG_OK
5374  your preprocessor is broken;
5375#endif
5376#if BIG_OK
5377#else
5378  your preprocessor is broken;
5379#endif
5380static long long int bignum = -9223372036854775807LL;
5381static unsigned long long int ubignum = BIG64;
5382
5383struct incomplete_array
5384{
5385  int datasize;
5386  double data[];
5387};
5388
5389struct named_init {
5390  int number;
5391  const wchar_t *name;
5392  double average;
5393};
5394
5395typedef const char *ccp;
5396
5397static inline int
5398test_restrict (ccp restrict text)
5399{
5400  // See if C++-style comments work.
5401  // Iterate through items via the restricted pointer.
5402  // Also check for declarations in for loops.
5403  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5404    continue;
5405  return 0;
5406}
5407
5408// Check varargs and va_copy.
5409static void
5410test_varargs (const char *format, ...)
5411{
5412  va_list args;
5413  va_start (args, format);
5414  va_list args_copy;
5415  va_copy (args_copy, args);
5416
5417  const char *str;
5418  int number;
5419  float fnumber;
5420
5421  while (*format)
5422    {
5423      switch (*format++)
5424	{
5425	case 's': // string
5426	  str = va_arg (args_copy, const char *);
5427	  break;
5428	case 'd': // int
5429	  number = va_arg (args_copy, int);
5430	  break;
5431	case 'f': // float
5432	  fnumber = va_arg (args_copy, double);
5433	  break;
5434	default:
5435	  break;
5436	}
5437    }
5438  va_end (args_copy);
5439  va_end (args);
5440}
5441
5442int
5443main ()
5444{
5445
5446  // Check bool.
5447  _Bool success = false;
5448
5449  // Check restrict.
5450  if (test_restrict ("String literal") == 0)
5451    success = true;
5452  char *restrict newvar = "Another string";
5453
5454  // Check varargs.
5455  test_varargs ("s, d' f .", "string", 65, 34.234);
5456  test_varargs_macros ();
5457
5458  // Check flexible array members.
5459  struct incomplete_array *ia =
5460    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5461  ia->datasize = 10;
5462  for (int i = 0; i < ia->datasize; ++i)
5463    ia->data[i] = i * 1.234;
5464
5465  // Check named initializers.
5466  struct named_init ni = {
5467    .number = 34,
5468    .name = L"Test wide string",
5469    .average = 543.34343,
5470  };
5471
5472  ni.number = 58;
5473
5474  int dynamic_array[ni.number];
5475  dynamic_array[ni.number - 1] = 543;
5476
5477  // work around unused variable warnings
5478  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5479	  || dynamic_array[ni.number - 1] != 543);
5480
5481  ;
5482  return 0;
5483}
5484_ACEOF
5485for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5486do
5487  CC="$ac_save_CC $ac_arg"
5488  if ac_fn_c_try_compile "$LINENO"; then :
5489  ac_cv_prog_cc_c99=$ac_arg
5490fi
5491rm -f core conftest.err conftest.$ac_objext
5492  test "x$ac_cv_prog_cc_c99" != "xno" && break
5493done
5494rm -f conftest.$ac_ext
5495CC=$ac_save_CC
5496
5497fi
5498# AC_CACHE_VAL
5499case "x$ac_cv_prog_cc_c99" in
5500  x)
5501    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5502$as_echo "none needed" >&6; } ;;
5503  xno)
5504    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5505$as_echo "unsupported" >&6; } ;;
5506  *)
5507    CC="$CC $ac_cv_prog_cc_c99"
5508    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5509$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5510esac
5511if test "x$ac_cv_prog_cc_c99" != xno; then :
5512
5513fi
5514
5515
5516
5517
5518
5519
5520ac_ext=c
5521ac_cpp='$CPP $CPPFLAGS'
5522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5524ac_compiler_gnu=$ac_cv_c_compiler_gnu
5525if test -n "$ac_tool_prefix"; then
5526  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5527set dummy ${ac_tool_prefix}gcc; ac_word=$2
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5529$as_echo_n "checking for $ac_word... " >&6; }
5530if ${ac_cv_prog_CC+:} false; then :
5531  $as_echo_n "(cached) " >&6
5532else
5533  if test -n "$CC"; then
5534  ac_cv_prog_CC="$CC" # Let the user override the test.
5535else
5536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537for as_dir in $PATH
5538do
5539  IFS=$as_save_IFS
5540  test -z "$as_dir" && as_dir=.
5541    for ac_exec_ext in '' $ac_executable_extensions; do
5542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5543    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545    break 2
5546  fi
5547done
5548  done
5549IFS=$as_save_IFS
5550
5551fi
5552fi
5553CC=$ac_cv_prog_CC
5554if test -n "$CC"; then
5555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5556$as_echo "$CC" >&6; }
5557else
5558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559$as_echo "no" >&6; }
5560fi
5561
5562
5563fi
5564if test -z "$ac_cv_prog_CC"; then
5565  ac_ct_CC=$CC
5566  # Extract the first word of "gcc", so it can be a program name with args.
5567set dummy gcc; ac_word=$2
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569$as_echo_n "checking for $ac_word... " >&6; }
5570if ${ac_cv_prog_ac_ct_CC+:} false; then :
5571  $as_echo_n "(cached) " >&6
5572else
5573  if test -n "$ac_ct_CC"; then
5574  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5575else
5576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577for as_dir in $PATH
5578do
5579  IFS=$as_save_IFS
5580  test -z "$as_dir" && as_dir=.
5581    for ac_exec_ext in '' $ac_executable_extensions; do
5582  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5583    ac_cv_prog_ac_ct_CC="gcc"
5584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585    break 2
5586  fi
5587done
5588  done
5589IFS=$as_save_IFS
5590
5591fi
5592fi
5593ac_ct_CC=$ac_cv_prog_ac_ct_CC
5594if test -n "$ac_ct_CC"; then
5595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5596$as_echo "$ac_ct_CC" >&6; }
5597else
5598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599$as_echo "no" >&6; }
5600fi
5601
5602  if test "x$ac_ct_CC" = x; then
5603    CC=""
5604  else
5605    case $cross_compiling:$ac_tool_warned in
5606yes:)
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5609ac_tool_warned=yes ;;
5610esac
5611    CC=$ac_ct_CC
5612  fi
5613else
5614  CC="$ac_cv_prog_CC"
5615fi
5616
5617if test -z "$CC"; then
5618          if test -n "$ac_tool_prefix"; then
5619    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5620set dummy ${ac_tool_prefix}cc; ac_word=$2
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622$as_echo_n "checking for $ac_word... " >&6; }
5623if ${ac_cv_prog_CC+:} false; then :
5624  $as_echo_n "(cached) " >&6
5625else
5626  if test -n "$CC"; then
5627  ac_cv_prog_CC="$CC" # Let the user override the test.
5628else
5629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630for as_dir in $PATH
5631do
5632  IFS=$as_save_IFS
5633  test -z "$as_dir" && as_dir=.
5634    for ac_exec_ext in '' $ac_executable_extensions; do
5635  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636    ac_cv_prog_CC="${ac_tool_prefix}cc"
5637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638    break 2
5639  fi
5640done
5641  done
5642IFS=$as_save_IFS
5643
5644fi
5645fi
5646CC=$ac_cv_prog_CC
5647if test -n "$CC"; then
5648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5649$as_echo "$CC" >&6; }
5650else
5651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652$as_echo "no" >&6; }
5653fi
5654
5655
5656  fi
5657fi
5658if test -z "$CC"; then
5659  # Extract the first word of "cc", so it can be a program name with args.
5660set dummy cc; ac_word=$2
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5662$as_echo_n "checking for $ac_word... " >&6; }
5663if ${ac_cv_prog_CC+:} false; then :
5664  $as_echo_n "(cached) " >&6
5665else
5666  if test -n "$CC"; then
5667  ac_cv_prog_CC="$CC" # Let the user override the test.
5668else
5669  ac_prog_rejected=no
5670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671for as_dir in $PATH
5672do
5673  IFS=$as_save_IFS
5674  test -z "$as_dir" && as_dir=.
5675    for ac_exec_ext in '' $ac_executable_extensions; do
5676  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5677    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5678       ac_prog_rejected=yes
5679       continue
5680     fi
5681    ac_cv_prog_CC="cc"
5682    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683    break 2
5684  fi
5685done
5686  done
5687IFS=$as_save_IFS
5688
5689if test $ac_prog_rejected = yes; then
5690  # We found a bogon in the path, so make sure we never use it.
5691  set dummy $ac_cv_prog_CC
5692  shift
5693  if test $# != 0; then
5694    # We chose a different compiler from the bogus one.
5695    # However, it has the same basename, so the bogon will be chosen
5696    # first if we set CC to just the basename; use the full file name.
5697    shift
5698    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5699  fi
5700fi
5701fi
5702fi
5703CC=$ac_cv_prog_CC
5704if test -n "$CC"; then
5705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5706$as_echo "$CC" >&6; }
5707else
5708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709$as_echo "no" >&6; }
5710fi
5711
5712
5713fi
5714if test -z "$CC"; then
5715  if test -n "$ac_tool_prefix"; then
5716  for ac_prog in cl.exe
5717  do
5718    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5719set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721$as_echo_n "checking for $ac_word... " >&6; }
5722if ${ac_cv_prog_CC+:} false; then :
5723  $as_echo_n "(cached) " >&6
5724else
5725  if test -n "$CC"; then
5726  ac_cv_prog_CC="$CC" # Let the user override the test.
5727else
5728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729for as_dir in $PATH
5730do
5731  IFS=$as_save_IFS
5732  test -z "$as_dir" && as_dir=.
5733    for ac_exec_ext in '' $ac_executable_extensions; do
5734  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5735    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5737    break 2
5738  fi
5739done
5740  done
5741IFS=$as_save_IFS
5742
5743fi
5744fi
5745CC=$ac_cv_prog_CC
5746if test -n "$CC"; then
5747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5748$as_echo "$CC" >&6; }
5749else
5750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751$as_echo "no" >&6; }
5752fi
5753
5754
5755    test -n "$CC" && break
5756  done
5757fi
5758if test -z "$CC"; then
5759  ac_ct_CC=$CC
5760  for ac_prog in cl.exe
5761do
5762  # Extract the first word of "$ac_prog", so it can be a program name with args.
5763set dummy $ac_prog; ac_word=$2
5764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5765$as_echo_n "checking for $ac_word... " >&6; }
5766if ${ac_cv_prog_ac_ct_CC+:} false; then :
5767  $as_echo_n "(cached) " >&6
5768else
5769  if test -n "$ac_ct_CC"; then
5770  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5771else
5772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773for as_dir in $PATH
5774do
5775  IFS=$as_save_IFS
5776  test -z "$as_dir" && as_dir=.
5777    for ac_exec_ext in '' $ac_executable_extensions; do
5778  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779    ac_cv_prog_ac_ct_CC="$ac_prog"
5780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781    break 2
5782  fi
5783done
5784  done
5785IFS=$as_save_IFS
5786
5787fi
5788fi
5789ac_ct_CC=$ac_cv_prog_ac_ct_CC
5790if test -n "$ac_ct_CC"; then
5791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5792$as_echo "$ac_ct_CC" >&6; }
5793else
5794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795$as_echo "no" >&6; }
5796fi
5797
5798
5799  test -n "$ac_ct_CC" && break
5800done
5801
5802  if test "x$ac_ct_CC" = x; then
5803    CC=""
5804  else
5805    case $cross_compiling:$ac_tool_warned in
5806yes:)
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5809ac_tool_warned=yes ;;
5810esac
5811    CC=$ac_ct_CC
5812  fi
5813fi
5814
5815fi
5816
5817
5818test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5819$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5820as_fn_error $? "no acceptable C compiler found in \$PATH
5821See \`config.log' for more details" "$LINENO" 5; }
5822
5823# Provide some information about the compiler.
5824$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5825set X $ac_compile
5826ac_compiler=$2
5827for ac_option in --version -v -V -qversion; do
5828  { { ac_try="$ac_compiler $ac_option >&5"
5829case "(($ac_try" in
5830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831  *) ac_try_echo=$ac_try;;
5832esac
5833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5834$as_echo "$ac_try_echo"; } >&5
5835  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5836  ac_status=$?
5837  if test -s conftest.err; then
5838    sed '10a\
5839... rest of stderr output deleted ...
5840         10q' conftest.err >conftest.er1
5841    cat conftest.er1 >&5
5842  fi
5843  rm -f conftest.er1 conftest.err
5844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5845  test $ac_status = 0; }
5846done
5847
5848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5849$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5850if ${ac_cv_c_compiler_gnu+:} false; then :
5851  $as_echo_n "(cached) " >&6
5852else
5853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854/* end confdefs.h.  */
5855
5856int
5857main ()
5858{
5859#ifndef __GNUC__
5860       choke me
5861#endif
5862
5863  ;
5864  return 0;
5865}
5866_ACEOF
5867if ac_fn_c_try_compile "$LINENO"; then :
5868  ac_compiler_gnu=yes
5869else
5870  ac_compiler_gnu=no
5871fi
5872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873ac_cv_c_compiler_gnu=$ac_compiler_gnu
5874
5875fi
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5877$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5878if test $ac_compiler_gnu = yes; then
5879  GCC=yes
5880else
5881  GCC=
5882fi
5883ac_test_CFLAGS=${CFLAGS+set}
5884ac_save_CFLAGS=$CFLAGS
5885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5886$as_echo_n "checking whether $CC accepts -g... " >&6; }
5887if ${ac_cv_prog_cc_g+:} false; then :
5888  $as_echo_n "(cached) " >&6
5889else
5890  ac_save_c_werror_flag=$ac_c_werror_flag
5891   ac_c_werror_flag=yes
5892   ac_cv_prog_cc_g=no
5893   CFLAGS="-g"
5894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895/* end confdefs.h.  */
5896
5897int
5898main ()
5899{
5900
5901  ;
5902  return 0;
5903}
5904_ACEOF
5905if ac_fn_c_try_compile "$LINENO"; then :
5906  ac_cv_prog_cc_g=yes
5907else
5908  CFLAGS=""
5909      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910/* end confdefs.h.  */
5911
5912int
5913main ()
5914{
5915
5916  ;
5917  return 0;
5918}
5919_ACEOF
5920if ac_fn_c_try_compile "$LINENO"; then :
5921
5922else
5923  ac_c_werror_flag=$ac_save_c_werror_flag
5924	 CFLAGS="-g"
5925	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926/* end confdefs.h.  */
5927
5928int
5929main ()
5930{
5931
5932  ;
5933  return 0;
5934}
5935_ACEOF
5936if ac_fn_c_try_compile "$LINENO"; then :
5937  ac_cv_prog_cc_g=yes
5938fi
5939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5940fi
5941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942fi
5943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5944   ac_c_werror_flag=$ac_save_c_werror_flag
5945fi
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5947$as_echo "$ac_cv_prog_cc_g" >&6; }
5948if test "$ac_test_CFLAGS" = set; then
5949  CFLAGS=$ac_save_CFLAGS
5950elif test $ac_cv_prog_cc_g = yes; then
5951  if test "$GCC" = yes; then
5952    CFLAGS="-g -O2"
5953  else
5954    CFLAGS="-g"
5955  fi
5956else
5957  if test "$GCC" = yes; then
5958    CFLAGS="-O2"
5959  else
5960    CFLAGS=
5961  fi
5962fi
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5964$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5965if ${ac_cv_prog_cc_c89+:} false; then :
5966  $as_echo_n "(cached) " >&6
5967else
5968  ac_cv_prog_cc_c89=no
5969ac_save_CC=$CC
5970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971/* end confdefs.h.  */
5972#include <stdarg.h>
5973#include <stdio.h>
5974struct stat;
5975/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5976struct buf { int x; };
5977FILE * (*rcsopen) (struct buf *, struct stat *, int);
5978static char *e (p, i)
5979     char **p;
5980     int i;
5981{
5982  return p[i];
5983}
5984static char *f (char * (*g) (char **, int), char **p, ...)
5985{
5986  char *s;
5987  va_list v;
5988  va_start (v,p);
5989  s = g (p, va_arg (v,int));
5990  va_end (v);
5991  return s;
5992}
5993
5994/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5995   function prototypes and stuff, but not '\xHH' hex character constants.
5996   These don't provoke an error unfortunately, instead are silently treated
5997   as 'x'.  The following induces an error, until -std is added to get
5998   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5999   array size at least.  It's necessary to write '\x00'==0 to get something
6000   that's true only with -std.  */
6001int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6002
6003/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6004   inside strings and character constants.  */
6005#define FOO(x) 'x'
6006int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6007
6008int test (int i, double x);
6009struct s1 {int (*f) (int a);};
6010struct s2 {int (*f) (double a);};
6011int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6012int argc;
6013char **argv;
6014int
6015main ()
6016{
6017return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6018  ;
6019  return 0;
6020}
6021_ACEOF
6022for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6023	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6024do
6025  CC="$ac_save_CC $ac_arg"
6026  if ac_fn_c_try_compile "$LINENO"; then :
6027  ac_cv_prog_cc_c89=$ac_arg
6028fi
6029rm -f core conftest.err conftest.$ac_objext
6030  test "x$ac_cv_prog_cc_c89" != "xno" && break
6031done
6032rm -f conftest.$ac_ext
6033CC=$ac_save_CC
6034
6035fi
6036# AC_CACHE_VAL
6037case "x$ac_cv_prog_cc_c89" in
6038  x)
6039    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6040$as_echo "none needed" >&6; } ;;
6041  xno)
6042    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6043$as_echo "unsupported" >&6; } ;;
6044  *)
6045    CC="$CC $ac_cv_prog_cc_c89"
6046    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6047$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6048esac
6049if test "x$ac_cv_prog_cc_c89" != xno; then :
6050
6051fi
6052
6053ac_ext=c
6054ac_cpp='$CPP $CPPFLAGS'
6055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6057ac_compiler_gnu=$ac_cv_c_compiler_gnu
6058
6059ac_ext=c
6060ac_cpp='$CPP $CPPFLAGS'
6061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6063ac_compiler_gnu=$ac_cv_c_compiler_gnu
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6065$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6066if ${am_cv_prog_cc_c_o+:} false; then :
6067  $as_echo_n "(cached) " >&6
6068else
6069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070/* end confdefs.h.  */
6071
6072int
6073main ()
6074{
6075
6076  ;
6077  return 0;
6078}
6079_ACEOF
6080  # Make sure it works both with $CC and with simple cc.
6081  # Following AC_PROG_CC_C_O, we do the test twice because some
6082  # compilers refuse to overwrite an existing .o file with -o,
6083  # though they will create one.
6084  am_cv_prog_cc_c_o=yes
6085  for am_i in 1 2; do
6086    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6087   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6088   ac_status=$?
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); } \
6091         && test -f conftest2.$ac_objext; then
6092      : OK
6093    else
6094      am_cv_prog_cc_c_o=no
6095      break
6096    fi
6097  done
6098  rm -f core conftest*
6099  unset am_i
6100fi
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6102$as_echo "$am_cv_prog_cc_c_o" >&6; }
6103if test "$am_cv_prog_cc_c_o" != yes; then
6104   # Losing compiler, so override with the script.
6105   # FIXME: It is wrong to rewrite CC.
6106   # But if we don't then we get into trouble of one sort or another.
6107   # A longer-term fix would be to have automake use am__CC in this case,
6108   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6109   CC="$am_aux_dir/compile $CC"
6110fi
6111ac_ext=c
6112ac_cpp='$CPP $CPPFLAGS'
6113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6115ac_compiler_gnu=$ac_cv_c_compiler_gnu
6116
6117
6118depcc="$CC"   am_compiler_list=
6119
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6121$as_echo_n "checking dependency style of $depcc... " >&6; }
6122if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6123  $as_echo_n "(cached) " >&6
6124else
6125  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6126  # We make a subdir and do the tests there.  Otherwise we can end up
6127  # making bogus files that we don't know about and never remove.  For
6128  # instance it was reported that on HP-UX the gcc test will end up
6129  # making a dummy file named 'D' -- because '-MD' means "put the output
6130  # in D".
6131  rm -rf conftest.dir
6132  mkdir conftest.dir
6133  # Copy depcomp to subdir because otherwise we won't find it if we're
6134  # using a relative directory.
6135  cp "$am_depcomp" conftest.dir
6136  cd conftest.dir
6137  # We will build objects and dependencies in a subdirectory because
6138  # it helps to detect inapplicable dependency modes.  For instance
6139  # both Tru64's cc and ICC support -MD to output dependencies as a
6140  # side effect of compilation, but ICC will put the dependencies in
6141  # the current directory while Tru64 will put them in the object
6142  # directory.
6143  mkdir sub
6144
6145  am_cv_CC_dependencies_compiler_type=none
6146  if test "$am_compiler_list" = ""; then
6147     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6148  fi
6149  am__universal=false
6150  case " $depcc " in #(
6151     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6152     esac
6153
6154  for depmode in $am_compiler_list; do
6155    # Setup a source with many dependencies, because some compilers
6156    # like to wrap large dependency lists on column 80 (with \), and
6157    # we should not choose a depcomp mode which is confused by this.
6158    #
6159    # We need to recreate these files for each test, as the compiler may
6160    # overwrite some of them when testing with obscure command lines.
6161    # This happens at least with the AIX C compiler.
6162    : > sub/conftest.c
6163    for i in 1 2 3 4 5 6; do
6164      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6165      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6166      # Solaris 10 /bin/sh.
6167      echo '/* dummy */' > sub/conftst$i.h
6168    done
6169    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6170
6171    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6172    # mode.  It turns out that the SunPro C++ compiler does not properly
6173    # handle '-M -o', and we need to detect this.  Also, some Intel
6174    # versions had trouble with output in subdirs.
6175    am__obj=sub/conftest.${OBJEXT-o}
6176    am__minus_obj="-o $am__obj"
6177    case $depmode in
6178    gcc)
6179      # This depmode causes a compiler race in universal mode.
6180      test "$am__universal" = false || continue
6181      ;;
6182    nosideeffect)
6183      # After this tag, mechanisms are not by side-effect, so they'll
6184      # only be used when explicitly requested.
6185      if test "x$enable_dependency_tracking" = xyes; then
6186	continue
6187      else
6188	break
6189      fi
6190      ;;
6191    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6192      # This compiler won't grok '-c -o', but also, the minuso test has
6193      # not run yet.  These depmodes are late enough in the game, and
6194      # so weak that their functioning should not be impacted.
6195      am__obj=conftest.${OBJEXT-o}
6196      am__minus_obj=
6197      ;;
6198    none) break ;;
6199    esac
6200    if depmode=$depmode \
6201       source=sub/conftest.c object=$am__obj \
6202       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6203       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6204         >/dev/null 2>conftest.err &&
6205       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6206       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6207       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6208       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6209      # icc doesn't choke on unknown options, it will just issue warnings
6210      # or remarks (even with -Werror).  So we grep stderr for any message
6211      # that says an option was ignored or not supported.
6212      # When given -MP, icc 7.0 and 7.1 complain thusly:
6213      #   icc: Command line warning: ignoring option '-M'; no argument required
6214      # The diagnosis changed in icc 8.0:
6215      #   icc: Command line remark: option '-MP' not supported
6216      if (grep 'ignoring option' conftest.err ||
6217          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6218        am_cv_CC_dependencies_compiler_type=$depmode
6219        break
6220      fi
6221    fi
6222  done
6223
6224  cd ..
6225  rm -rf conftest.dir
6226else
6227  am_cv_CC_dependencies_compiler_type=none
6228fi
6229
6230fi
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6232$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6233CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6234
6235 if
6236  test "x$enable_dependency_tracking" != xno \
6237  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6238  am__fastdepCC_TRUE=
6239  am__fastdepCC_FALSE='#'
6240else
6241  am__fastdepCC_TRUE='#'
6242  am__fastdepCC_FALSE=
6243fi
6244
6245
6246# Ralf Wildenhues: With per-target flags we need CC_C_O
6247# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
6248
6249if test $ac_cv_c_compiler_gnu = yes; then
6250    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6251$as_echo_n "checking whether $CC needs -traditional... " >&6; }
6252if ${ac_cv_prog_gcc_traditional+:} false; then :
6253  $as_echo_n "(cached) " >&6
6254else
6255    ac_pattern="Autoconf.*'x'"
6256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257/* end confdefs.h.  */
6258#include <sgtty.h>
6259Autoconf TIOCGETP
6260_ACEOF
6261if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6262  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6263  ac_cv_prog_gcc_traditional=yes
6264else
6265  ac_cv_prog_gcc_traditional=no
6266fi
6267rm -f conftest*
6268
6269
6270  if test $ac_cv_prog_gcc_traditional = no; then
6271    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272/* end confdefs.h.  */
6273#include <termio.h>
6274Autoconf TCGETA
6275_ACEOF
6276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6277  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6278  ac_cv_prog_gcc_traditional=yes
6279fi
6280rm -f conftest*
6281
6282  fi
6283fi
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6285$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6286  if test $ac_cv_prog_gcc_traditional = yes; then
6287    CC="$CC -traditional"
6288  fi
6289fi
6290
6291
6292
6293
6294
6295CFLAGS_NTP=
6296CPPFLAGS_NTP=
6297LDADD_NTP=
6298LDFLAGS_NTP=
6299
6300
6301
6302
6303
6304case "$ac_cv_prog_cc_c89" in
6305 no)
6306    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6307		 version 4.2.5 and higher." >&5
6308$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6309		 version 4.2.5 and higher." >&2;}
6310    ;;
6311esac
6312
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
6314$as_echo_n "checking if $CC can handle #warning... " >&6; }
6315if ${ntp_cv_cpp_warning+:} false; then :
6316  $as_echo_n "(cached) " >&6
6317else
6318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319/* end confdefs.h.  */
6320
6321int
6322main ()
6323{
6324#warning foo
6325  ;
6326  return 0;
6327}
6328_ACEOF
6329if ac_fn_c_try_compile "$LINENO"; then :
6330  ntp_cv_cpp_warning=yes
6331else
6332  ntp_cv_cpp_warning=no
6333
6334fi
6335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6336
6337fi
6338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
6339$as_echo "$ntp_cv_cpp_warning" >&6; }
6340case "$ntp_cv_cpp_warning" in
6341 no)
6342
6343$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
6344
6345esac
6346
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
6348$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
6349if ${ntp_cv_cc_attribute+:} false; then :
6350  $as_echo_n "(cached) " >&6
6351else
6352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353/* end confdefs.h.  */
6354
6355int
6356main ()
6357{
6358void foo(void) __attribute__((__noreturn__));
6359
6360  ;
6361  return 0;
6362}
6363_ACEOF
6364if ac_fn_c_try_compile "$LINENO"; then :
6365  ntp_cv_cc_attribute=yes
6366else
6367  ntp_cv_cc_attribute=no
6368
6369fi
6370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371
6372fi
6373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
6374$as_echo "$ntp_cv_cc_attribute" >&6; }
6375case "$ntp_cv_cc_attribute" in
6376 yes)
6377
6378$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
6379
6380esac
6381
6382
6383case "$GCC" in
6384 yes)
6385    SAVED_CFLAGS="$CFLAGS"
6386    CFLAGS="$CFLAGS -Wstrict-overflow"
6387    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
6388$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
6389if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
6390  $as_echo_n "(cached) " >&6
6391else
6392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393/* end confdefs.h.  */
6394
6395int
6396main ()
6397{
6398
6399  ;
6400  return 0;
6401}
6402_ACEOF
6403if ac_fn_c_try_compile "$LINENO"; then :
6404  ntp_cv_gcc_Wstrict_overflow=yes
6405else
6406  ntp_cv_gcc_Wstrict_overflow=no
6407
6408fi
6409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410
6411fi
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
6413$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
6414    #
6415    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
6416    # flag to CFLAGS.
6417    #
6418    CFLAGS="$SAVED_CFLAGS -Winit-self"
6419    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
6420$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
6421if ${ntp_cv_gcc_Winit_self+:} false; then :
6422  $as_echo_n "(cached) " >&6
6423else
6424
6425	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426/* end confdefs.h.  */
6427
6428int
6429main ()
6430{
6431
6432  ;
6433  return 0;
6434}
6435_ACEOF
6436if ac_fn_c_try_compile "$LINENO"; then :
6437  ntp_cv_gcc_Winit_self=yes
6438else
6439  ntp_cv_gcc_Winit_self=no
6440
6441fi
6442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443
6444
6445fi
6446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
6447$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
6448    CFLAGS="$SAVED_CFLAGS"
6449    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
6450    #
6451    # $ntp_cv_gcc_Winit_self is tested later to add the
6452    # flag to CFLAGS_NTP.
6453    #
6454    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
6455$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
6456if ${ntp_cv_gc_sections_runs+:} false; then :
6457  $as_echo_n "(cached) " >&6
6458else
6459
6460	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
6461	    CFLAGS="$CFLAGS -Wl,--gc-sections"
6462	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463/* end confdefs.h.  */
6464
6465			#include <stdlib.h>
6466			#include <stdio.h>
6467
6468int
6469main ()
6470{
6471
6472			FILE *	fpC;
6473			char	buf[32];
6474			size_t	cch;
6475			int	read_success_once;
6476
6477			fpC = fopen("conftest.c", "r");
6478			if (NULL == fpC)
6479				exit(1);
6480			do {
6481				cch = fread(buf, sizeof(buf), 1, fpC);
6482				read_success_once |= (0 != cch);
6483			} while (0 != cch);
6484			if (!read_success_once)
6485				exit(2);
6486			if (!feof(fpC))
6487				exit(3);
6488			if (0 != fclose(fpC))
6489				exit(4);
6490
6491			exit(EXIT_SUCCESS);
6492
6493
6494  ;
6495  return 0;
6496}
6497_ACEOF
6498if ac_fn_c_try_link "$LINENO"; then :
6499
6500		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
6501			ntp_cv_gc_sections_runs=no
6502		    else
6503			ntp_cv_gc_sections_runs=no
6504			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
6505		    fi
6506
6507else
6508  ntp_cv_gc_sections_runs=no
6509
6510fi
6511rm -f core conftest.err conftest.$ac_objext \
6512    conftest$ac_exeext conftest.$ac_ext
6513	    CFLAGS="$origCFLAGS"
6514	    { origCFLAGS=; unset origCFLAGS;}
6515
6516
6517fi
6518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
6519$as_echo "$ntp_cv_gc_sections_runs" >&6; }
6520    case "$ntp_cv_gc_sections_runs" in
6521     yes)
6522	LDADD_LIBNTP="-Wl,--gc-sections"
6523	CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
6524	;;
6525     no)
6526	LDADD_LIBNTP=
6527	;;
6528    esac
6529    CFLAGS_NTP="$CFLAGS_NTP -Wall"
6530    CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
6531    CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
6532    # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
6533    # CFLAGS_NTP="$CFLAGS_NTP -Werror"
6534    # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
6535    # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
6536    CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
6537    CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
6538    CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
6539    # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
6540    # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
6541    case "$ntp_cv_gcc_Winit_self" in
6542     yes)
6543	CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
6544    esac
6545    case "$ntp_cv_gcc_Wstrict_overflow" in
6546     yes)
6547	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
6548    esac
6549    # -W[no-]strict-prototypes might be added by NTP_OPENSSL
6550esac
6551
6552
6553    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
6554$as_echo_n "checking additional compiler flags... " >&6; }
6555    # allow ntp_os_flags to be preset to skip this stuff
6556    case "${ntp_os_cflags+set}" in
6557     set)
6558	;;
6559     *)
6560	ntp_os_cflags=
6561	case "$host_os" in
6562	 aix[1-3]*)
6563	    ;;
6564	 aix4.[0-2]*)
6565	    # turn on additional headers
6566	    ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
6567	    ;;
6568	 aix5.3*)
6569	    # avoid circular dependencies in yp headers, and more
6570	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
6571	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
6572	    ;;
6573	 aix*)
6574	    # XXX Only verified thru AIX6.
6575	    # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
6576	    # avoid circular dependencies in yp headers
6577	    # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
6578	    # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
6579	    # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
6580	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
6581	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
6582	    ;;
6583	 amigaos)
6584	    ntp_os_cflags="-DSYS_AMIGA"
6585	    ;;
6586	 darwin*|macosx*|rhapsody*)
6587	    ntp_os_cflags="-D_P1003_1B_VISIBLE"
6588	    ;;
6589	 hpux10.*)		# at least for hppa2.0-hp-hpux10.20
6590	    case "$GCC" in
6591	     yes)
6592		;;
6593	     *)
6594		# use Ansi compiler on HPUX, and some -Wp magic
6595		ntp_os_cflags="-Ae -Wp,-H18816"
6596		;;
6597	    esac
6598	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6599	    ;;
6600	 hpux*)
6601	    case "$GCC" in
6602	     yes)
6603		;;
6604	     *)
6605		# use Ansi compiler on HPUX
6606		ntp_os_cflags="-Ae"
6607	    esac
6608	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6609	    ;;
6610	 irix6*)
6611	    case "$CC" in
6612	     cc)
6613		# do not use 64-bit compiler
6614		ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
6615	    esac
6616	    ;;
6617	 nextstep3)
6618	    ntp_os_cflags="-posix"
6619	    ;;
6620	 solaris1*|solaris2.[0-5]|solaris2.5.*)
6621	    ;;
6622	 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
6623	    ;;
6624	 solaris2*|sunos5*)
6625	    # turn on 64-bit file offset interface
6626	    ntp_os_cflags="-D_LARGEFILE64_SOURCE"
6627	    ;;
6628	 vxworks*)
6629	    case "$build" in
6630	     $host)
6631		;;
6632	     *)
6633		# Quick and dirty sanity check
6634		case "$VX_KERNEL" in
6635		 '')
6636		    as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
6637		esac
6638		ntp_os_cflags="-DSYS_VXWORKS"
6639	    esac
6640	    ;;
6641	esac
6642    esac
6643    case "$ntp_os_flags" in
6644     '')
6645	ntp_os_cflags_msg="none needed"
6646	;;
6647     *)
6648	ntp_os_cflags_msg="$ntp_os_cflags"
6649    esac
6650    CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
6651    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
6652$as_echo "$ntp_os_cflags_msg" >&6; }
6653    { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
6654
6655
6656
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6658$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6659if ${ac_cv_c_bigendian+:} false; then :
6660  $as_echo_n "(cached) " >&6
6661else
6662  ac_cv_c_bigendian=unknown
6663    # See if we're dealing with a universal compiler.
6664    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665/* end confdefs.h.  */
6666#ifndef __APPLE_CC__
6667	       not a universal capable compiler
6668	     #endif
6669	     typedef int dummy;
6670
6671_ACEOF
6672if ac_fn_c_try_compile "$LINENO"; then :
6673
6674	# Check for potential -arch flags.  It is not universal unless
6675	# there are at least two -arch flags with different values.
6676	ac_arch=
6677	ac_prev=
6678	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6679	 if test -n "$ac_prev"; then
6680	   case $ac_word in
6681	     i?86 | x86_64 | ppc | ppc64)
6682	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6683		 ac_arch=$ac_word
6684	       else
6685		 ac_cv_c_bigendian=universal
6686		 break
6687	       fi
6688	       ;;
6689	   esac
6690	   ac_prev=
6691	 elif test "x$ac_word" = "x-arch"; then
6692	   ac_prev=arch
6693	 fi
6694       done
6695fi
6696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6697    if test $ac_cv_c_bigendian = unknown; then
6698      # See if sys/param.h defines the BYTE_ORDER macro.
6699      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700/* end confdefs.h.  */
6701#include <sys/types.h>
6702	     #include <sys/param.h>
6703
6704int
6705main ()
6706{
6707#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6708		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6709		     && LITTLE_ENDIAN)
6710	      bogus endian macros
6711	     #endif
6712
6713  ;
6714  return 0;
6715}
6716_ACEOF
6717if ac_fn_c_try_compile "$LINENO"; then :
6718  # It does; now see whether it defined to BIG_ENDIAN or not.
6719	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720/* end confdefs.h.  */
6721#include <sys/types.h>
6722		#include <sys/param.h>
6723
6724int
6725main ()
6726{
6727#if BYTE_ORDER != BIG_ENDIAN
6728		 not big endian
6729		#endif
6730
6731  ;
6732  return 0;
6733}
6734_ACEOF
6735if ac_fn_c_try_compile "$LINENO"; then :
6736  ac_cv_c_bigendian=yes
6737else
6738  ac_cv_c_bigendian=no
6739fi
6740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6741fi
6742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743    fi
6744    if test $ac_cv_c_bigendian = unknown; then
6745      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6746      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6747/* end confdefs.h.  */
6748#include <limits.h>
6749
6750int
6751main ()
6752{
6753#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6754	      bogus endian macros
6755	     #endif
6756
6757  ;
6758  return 0;
6759}
6760_ACEOF
6761if ac_fn_c_try_compile "$LINENO"; then :
6762  # It does; now see whether it defined to _BIG_ENDIAN or not.
6763	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764/* end confdefs.h.  */
6765#include <limits.h>
6766
6767int
6768main ()
6769{
6770#ifndef _BIG_ENDIAN
6771		 not big endian
6772		#endif
6773
6774  ;
6775  return 0;
6776}
6777_ACEOF
6778if ac_fn_c_try_compile "$LINENO"; then :
6779  ac_cv_c_bigendian=yes
6780else
6781  ac_cv_c_bigendian=no
6782fi
6783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784fi
6785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786    fi
6787    if test $ac_cv_c_bigendian = unknown; then
6788      # Compile a test program.
6789      if test "$cross_compiling" = yes; then :
6790  # Try to guess by grepping values from an object file.
6791	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792/* end confdefs.h.  */
6793short int ascii_mm[] =
6794		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6795		short int ascii_ii[] =
6796		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6797		int use_ascii (int i) {
6798		  return ascii_mm[i] + ascii_ii[i];
6799		}
6800		short int ebcdic_ii[] =
6801		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6802		short int ebcdic_mm[] =
6803		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6804		int use_ebcdic (int i) {
6805		  return ebcdic_mm[i] + ebcdic_ii[i];
6806		}
6807		extern int foo;
6808
6809int
6810main ()
6811{
6812return use_ascii (foo) == use_ebcdic (foo);
6813  ;
6814  return 0;
6815}
6816_ACEOF
6817if ac_fn_c_try_compile "$LINENO"; then :
6818  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6819	      ac_cv_c_bigendian=yes
6820	    fi
6821	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6822	      if test "$ac_cv_c_bigendian" = unknown; then
6823		ac_cv_c_bigendian=no
6824	      else
6825		# finding both strings is unlikely to happen, but who knows?
6826		ac_cv_c_bigendian=unknown
6827	      fi
6828	    fi
6829fi
6830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6831else
6832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833/* end confdefs.h.  */
6834$ac_includes_default
6835int
6836main ()
6837{
6838
6839	     /* Are we little or big endian?  From Harbison&Steele.  */
6840	     union
6841	     {
6842	       long int l;
6843	       char c[sizeof (long int)];
6844	     } u;
6845	     u.l = 1;
6846	     return u.c[sizeof (long int) - 1] == 1;
6847
6848  ;
6849  return 0;
6850}
6851_ACEOF
6852if ac_fn_c_try_run "$LINENO"; then :
6853  ac_cv_c_bigendian=no
6854else
6855  ac_cv_c_bigendian=yes
6856fi
6857rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6858  conftest.$ac_objext conftest.beam conftest.$ac_ext
6859fi
6860
6861    fi
6862fi
6863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6864$as_echo "$ac_cv_c_bigendian" >&6; }
6865 case $ac_cv_c_bigendian in #(
6866   yes)
6867     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6868;; #(
6869   no)
6870      ;; #(
6871   universal)
6872
6873$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6874
6875     ;; #(
6876   *)
6877     as_fn_error $? "unknown endianness
6878 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6879 esac
6880
6881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6882$as_echo_n "checking for working volatile... " >&6; }
6883if ${ac_cv_c_volatile+:} false; then :
6884  $as_echo_n "(cached) " >&6
6885else
6886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887/* end confdefs.h.  */
6888
6889int
6890main ()
6891{
6892
6893volatile int x;
6894int * volatile y = (int *) 0;
6895return !x && !y;
6896  ;
6897  return 0;
6898}
6899_ACEOF
6900if ac_fn_c_try_compile "$LINENO"; then :
6901  ac_cv_c_volatile=yes
6902else
6903  ac_cv_c_volatile=no
6904fi
6905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6906fi
6907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6908$as_echo "$ac_cv_c_volatile" >&6; }
6909if test $ac_cv_c_volatile = no; then
6910
6911$as_echo "#define volatile /**/" >>confdefs.h
6912
6913fi
6914
6915ac_ext=c
6916ac_cpp='$CPP $CPPFLAGS'
6917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6919ac_compiler_gnu=$ac_cv_c_compiler_gnu
6920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6921$as_echo_n "checking how to run the C preprocessor... " >&6; }
6922# On Suns, sometimes $CPP names a directory.
6923if test -n "$CPP" && test -d "$CPP"; then
6924  CPP=
6925fi
6926if test -z "$CPP"; then
6927  if ${ac_cv_prog_CPP+:} false; then :
6928  $as_echo_n "(cached) " >&6
6929else
6930      # Double quotes because CPP needs to be expanded
6931    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6932    do
6933      ac_preproc_ok=false
6934for ac_c_preproc_warn_flag in '' yes
6935do
6936  # Use a header file that comes with gcc, so configuring glibc
6937  # with a fresh cross-compiler works.
6938  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6939  # <limits.h> exists even on freestanding compilers.
6940  # On the NeXT, cc -E runs the code through the compiler's parser,
6941  # not just through cpp. "Syntax error" is here to catch this case.
6942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943/* end confdefs.h.  */
6944#ifdef __STDC__
6945# include <limits.h>
6946#else
6947# include <assert.h>
6948#endif
6949		     Syntax error
6950_ACEOF
6951if ac_fn_c_try_cpp "$LINENO"; then :
6952
6953else
6954  # Broken: fails on valid input.
6955continue
6956fi
6957rm -f conftest.err conftest.i conftest.$ac_ext
6958
6959  # OK, works on sane cases.  Now check whether nonexistent headers
6960  # can be detected and how.
6961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962/* end confdefs.h.  */
6963#include <ac_nonexistent.h>
6964_ACEOF
6965if ac_fn_c_try_cpp "$LINENO"; then :
6966  # Broken: success on invalid input.
6967continue
6968else
6969  # Passes both tests.
6970ac_preproc_ok=:
6971break
6972fi
6973rm -f conftest.err conftest.i conftest.$ac_ext
6974
6975done
6976# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6977rm -f conftest.i conftest.err conftest.$ac_ext
6978if $ac_preproc_ok; then :
6979  break
6980fi
6981
6982    done
6983    ac_cv_prog_CPP=$CPP
6984
6985fi
6986  CPP=$ac_cv_prog_CPP
6987else
6988  ac_cv_prog_CPP=$CPP
6989fi
6990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6991$as_echo "$CPP" >&6; }
6992ac_preproc_ok=false
6993for ac_c_preproc_warn_flag in '' yes
6994do
6995  # Use a header file that comes with gcc, so configuring glibc
6996  # with a fresh cross-compiler works.
6997  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6998  # <limits.h> exists even on freestanding compilers.
6999  # On the NeXT, cc -E runs the code through the compiler's parser,
7000  # not just through cpp. "Syntax error" is here to catch this case.
7001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002/* end confdefs.h.  */
7003#ifdef __STDC__
7004# include <limits.h>
7005#else
7006# include <assert.h>
7007#endif
7008		     Syntax error
7009_ACEOF
7010if ac_fn_c_try_cpp "$LINENO"; then :
7011
7012else
7013  # Broken: fails on valid input.
7014continue
7015fi
7016rm -f conftest.err conftest.i conftest.$ac_ext
7017
7018  # OK, works on sane cases.  Now check whether nonexistent headers
7019  # can be detected and how.
7020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021/* end confdefs.h.  */
7022#include <ac_nonexistent.h>
7023_ACEOF
7024if ac_fn_c_try_cpp "$LINENO"; then :
7025  # Broken: success on invalid input.
7026continue
7027else
7028  # Passes both tests.
7029ac_preproc_ok=:
7030break
7031fi
7032rm -f conftest.err conftest.i conftest.$ac_ext
7033
7034done
7035# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7036rm -f conftest.i conftest.err conftest.$ac_ext
7037if $ac_preproc_ok; then :
7038
7039else
7040  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7042as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7043See \`config.log' for more details" "$LINENO" 5; }
7044fi
7045
7046ac_ext=c
7047ac_cpp='$CPP $CPPFLAGS'
7048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7050ac_compiler_gnu=$ac_cv_c_compiler_gnu
7051
7052
7053
7054
7055
7056
7057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
7058$as_echo_n "checking for install dir and man conventions... " >&6; }
7059
7060
7061# Check whether --with-locfile was given.
7062if test "${with_locfile+set}" = set; then :
7063  withval=$with_locfile;
7064else
7065  with_locfile=no
7066
7067fi
7068
7069
7070(									\
7071    SENTINEL_DIR="$PWD" &&						\
7072    cd $srcdir/ &&							\
7073    case "$with_locfile" in						\
7074     yes|no|'')								\
7075	scripts/genLocInfo -d "$SENTINEL_DIR"				\
7076	;;								\
7077     *)									\
7078	scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile"	\
7079	;;								\
7080    esac								\
7081) > genLocInfo.i 2> genLocInfo.err
7082. ./genLocInfo.i
7083
7084case "$GENLOCINFO" in
7085 OK)
7086    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
7087$as_echo "in file $GENLOCINFOFILE" >&6; }
7088    rm genLocInfo.err genLocInfo.i
7089    ;;
7090 *)
7091    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
7092$as_echo "failed." >&6; }
7093    as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
7094    ;;
7095esac
7096
7097 if test "$CALC_TICKADJ_MS" ; then
7098  WANT_CALC_TICKADJ_MS_TRUE=
7099  WANT_CALC_TICKADJ_MS_FALSE='#'
7100else
7101  WANT_CALC_TICKADJ_MS_TRUE='#'
7102  WANT_CALC_TICKADJ_MS_FALSE=
7103fi
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147 if test -z "$NTPSWEEP_NI" ; then
7148  INSTALL_NTPSWEEP_TRUE=
7149  INSTALL_NTPSWEEP_FALSE='#'
7150else
7151  INSTALL_NTPSWEEP_TRUE='#'
7152  INSTALL_NTPSWEEP_FALSE=
7153fi
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195 if test -z "$UPDATE_LEAP_NI" ; then
7196  INSTALL_UPDATE_LEAP_TRUE=
7197  INSTALL_UPDATE_LEAP_FALSE='#'
7198else
7199  INSTALL_UPDATE_LEAP_TRUE='#'
7200  INSTALL_UPDATE_LEAP_FALSE=
7201fi
7202
7203
7204
7205
7206if test -n "$ac_tool_prefix"; then
7207  for ac_prog in ar lib "link -lib"
7208  do
7209    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7210set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212$as_echo_n "checking for $ac_word... " >&6; }
7213if ${ac_cv_prog_AR+:} false; then :
7214  $as_echo_n "(cached) " >&6
7215else
7216  if test -n "$AR"; then
7217  ac_cv_prog_AR="$AR" # Let the user override the test.
7218else
7219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220for as_dir in $PATH
7221do
7222  IFS=$as_save_IFS
7223  test -z "$as_dir" && as_dir=.
7224    for ac_exec_ext in '' $ac_executable_extensions; do
7225  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7228    break 2
7229  fi
7230done
7231  done
7232IFS=$as_save_IFS
7233
7234fi
7235fi
7236AR=$ac_cv_prog_AR
7237if test -n "$AR"; then
7238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7239$as_echo "$AR" >&6; }
7240else
7241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242$as_echo "no" >&6; }
7243fi
7244
7245
7246    test -n "$AR" && break
7247  done
7248fi
7249if test -z "$AR"; then
7250  ac_ct_AR=$AR
7251  for ac_prog in ar lib "link -lib"
7252do
7253  # Extract the first word of "$ac_prog", so it can be a program name with args.
7254set dummy $ac_prog; ac_word=$2
7255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7256$as_echo_n "checking for $ac_word... " >&6; }
7257if ${ac_cv_prog_ac_ct_AR+:} false; then :
7258  $as_echo_n "(cached) " >&6
7259else
7260  if test -n "$ac_ct_AR"; then
7261  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7262else
7263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264for as_dir in $PATH
7265do
7266  IFS=$as_save_IFS
7267  test -z "$as_dir" && as_dir=.
7268    for ac_exec_ext in '' $ac_executable_extensions; do
7269  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7270    ac_cv_prog_ac_ct_AR="$ac_prog"
7271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7272    break 2
7273  fi
7274done
7275  done
7276IFS=$as_save_IFS
7277
7278fi
7279fi
7280ac_ct_AR=$ac_cv_prog_ac_ct_AR
7281if test -n "$ac_ct_AR"; then
7282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7283$as_echo "$ac_ct_AR" >&6; }
7284else
7285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286$as_echo "no" >&6; }
7287fi
7288
7289
7290  test -n "$ac_ct_AR" && break
7291done
7292
7293  if test "x$ac_ct_AR" = x; then
7294    AR="false"
7295  else
7296    case $cross_compiling:$ac_tool_warned in
7297yes:)
7298{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7299$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7300ac_tool_warned=yes ;;
7301esac
7302    AR=$ac_ct_AR
7303  fi
7304fi
7305
7306: ${AR=ar}
7307
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
7309$as_echo_n "checking the archiver ($AR) interface... " >&6; }
7310if ${am_cv_ar_interface+:} false; then :
7311  $as_echo_n "(cached) " >&6
7312else
7313  ac_ext=c
7314ac_cpp='$CPP $CPPFLAGS'
7315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7317ac_compiler_gnu=$ac_cv_c_compiler_gnu
7318
7319   am_cv_ar_interface=ar
7320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321/* end confdefs.h.  */
7322int some_variable = 0;
7323_ACEOF
7324if ac_fn_c_try_compile "$LINENO"; then :
7325  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
7326      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7327  (eval $am_ar_try) 2>&5
7328  ac_status=$?
7329  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7330  test $ac_status = 0; }
7331      if test "$ac_status" -eq 0; then
7332        am_cv_ar_interface=ar
7333      else
7334        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
7335        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7336  (eval $am_ar_try) 2>&5
7337  ac_status=$?
7338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7339  test $ac_status = 0; }
7340        if test "$ac_status" -eq 0; then
7341          am_cv_ar_interface=lib
7342        else
7343          am_cv_ar_interface=unknown
7344        fi
7345      fi
7346      rm -f conftest.lib libconftest.a
7347
7348fi
7349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7350   ac_ext=c
7351ac_cpp='$CPP $CPPFLAGS'
7352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7354ac_compiler_gnu=$ac_cv_c_compiler_gnu
7355
7356fi
7357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
7358$as_echo "$am_cv_ar_interface" >&6; }
7359
7360case $am_cv_ar_interface in
7361ar)
7362  ;;
7363lib)
7364  # Microsoft lib, so override with the ar-lib wrapper script.
7365  # FIXME: It is wrong to rewrite AR.
7366  # But if we don't then we get into trouble of one sort or another.
7367  # A longer-term fix would be to have automake use am__AR in this case,
7368  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7369  # similar.
7370  AR="$am_aux_dir/ar-lib $AR"
7371  ;;
7372unknown)
7373  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7374  ;;
7375esac
7376
7377
7378
7379
7380
7381# Expose a cross-compilation indicator to makefiles
7382 if test $build != $host; then
7383  NTP_CROSSCOMPILE_TRUE=
7384  NTP_CROSSCOMPILE_FALSE='#'
7385else
7386  NTP_CROSSCOMPILE_TRUE='#'
7387  NTP_CROSSCOMPILE_FALSE=
7388fi
7389
7390
7391
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7393$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7394if ${ac_cv_path_SED+:} false; then :
7395  $as_echo_n "(cached) " >&6
7396else
7397            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7398     for ac_i in 1 2 3 4 5 6 7; do
7399       ac_script="$ac_script$as_nl$ac_script"
7400     done
7401     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7402     { ac_script=; unset ac_script;}
7403     if test -z "$SED"; then
7404  ac_path_SED_found=false
7405  # Loop through the user's path and test for each of PROGNAME-LIST
7406  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407for as_dir in $PATH
7408do
7409  IFS=$as_save_IFS
7410  test -z "$as_dir" && as_dir=.
7411    for ac_prog in sed gsed; do
7412    for ac_exec_ext in '' $ac_executable_extensions; do
7413      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7414      as_fn_executable_p "$ac_path_SED" || continue
7415# Check for GNU ac_path_SED and select it if it is found.
7416  # Check for GNU $ac_path_SED
7417case `"$ac_path_SED" --version 2>&1` in
7418*GNU*)
7419  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7420*)
7421  ac_count=0
7422  $as_echo_n 0123456789 >"conftest.in"
7423  while :
7424  do
7425    cat "conftest.in" "conftest.in" >"conftest.tmp"
7426    mv "conftest.tmp" "conftest.in"
7427    cp "conftest.in" "conftest.nl"
7428    $as_echo '' >> "conftest.nl"
7429    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7430    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7431    as_fn_arith $ac_count + 1 && ac_count=$as_val
7432    if test $ac_count -gt ${ac_path_SED_max-0}; then
7433      # Best one so far, save it but keep looking for a better one
7434      ac_cv_path_SED="$ac_path_SED"
7435      ac_path_SED_max=$ac_count
7436    fi
7437    # 10*(2^10) chars as input seems more than enough
7438    test $ac_count -gt 10 && break
7439  done
7440  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7441esac
7442
7443      $ac_path_SED_found && break 3
7444    done
7445  done
7446  done
7447IFS=$as_save_IFS
7448  if test -z "$ac_cv_path_SED"; then
7449    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7450  fi
7451else
7452  ac_cv_path_SED=$SED
7453fi
7454
7455fi
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7457$as_echo "$ac_cv_path_SED" >&6; }
7458 SED="$ac_cv_path_SED"
7459  rm -f conftest.sed
7460
7461test -z "$SED" && SED=sed
7462Xsed="$SED -e 1s/^X//"
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7475$as_echo_n "checking for fgrep... " >&6; }
7476if ${ac_cv_path_FGREP+:} false; then :
7477  $as_echo_n "(cached) " >&6
7478else
7479  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7480   then ac_cv_path_FGREP="$GREP -F"
7481   else
7482     if test -z "$FGREP"; then
7483  ac_path_FGREP_found=false
7484  # Loop through the user's path and test for each of PROGNAME-LIST
7485  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7487do
7488  IFS=$as_save_IFS
7489  test -z "$as_dir" && as_dir=.
7490    for ac_prog in fgrep; do
7491    for ac_exec_ext in '' $ac_executable_extensions; do
7492      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7493      as_fn_executable_p "$ac_path_FGREP" || continue
7494# Check for GNU ac_path_FGREP and select it if it is found.
7495  # Check for GNU $ac_path_FGREP
7496case `"$ac_path_FGREP" --version 2>&1` in
7497*GNU*)
7498  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7499*)
7500  ac_count=0
7501  $as_echo_n 0123456789 >"conftest.in"
7502  while :
7503  do
7504    cat "conftest.in" "conftest.in" >"conftest.tmp"
7505    mv "conftest.tmp" "conftest.in"
7506    cp "conftest.in" "conftest.nl"
7507    $as_echo 'FGREP' >> "conftest.nl"
7508    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7509    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7510    as_fn_arith $ac_count + 1 && ac_count=$as_val
7511    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7512      # Best one so far, save it but keep looking for a better one
7513      ac_cv_path_FGREP="$ac_path_FGREP"
7514      ac_path_FGREP_max=$ac_count
7515    fi
7516    # 10*(2^10) chars as input seems more than enough
7517    test $ac_count -gt 10 && break
7518  done
7519  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7520esac
7521
7522      $ac_path_FGREP_found && break 3
7523    done
7524  done
7525  done
7526IFS=$as_save_IFS
7527  if test -z "$ac_cv_path_FGREP"; then
7528    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7529  fi
7530else
7531  ac_cv_path_FGREP=$FGREP
7532fi
7533
7534   fi
7535fi
7536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7537$as_echo "$ac_cv_path_FGREP" >&6; }
7538 FGREP="$ac_cv_path_FGREP"
7539
7540
7541test -z "$GREP" && GREP=grep
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7560ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7561ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7562
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7564$as_echo_n "checking how to print strings... " >&6; }
7565# Test print first, because it will be a builtin if present.
7566if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7567   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7568  ECHO='print -r --'
7569elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7570  ECHO='printf %s\n'
7571else
7572  # Use this function as a fallback that always works.
7573  func_fallback_echo ()
7574  {
7575    eval 'cat <<_LTECHO_EOF
7576$1
7577_LTECHO_EOF'
7578  }
7579  ECHO='func_fallback_echo'
7580fi
7581
7582# func_echo_all arg...
7583# Invoke $ECHO with all args, space-separated.
7584func_echo_all ()
7585{
7586    $ECHO ""
7587}
7588
7589case "$ECHO" in
7590  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7591$as_echo "printf" >&6; } ;;
7592  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7593$as_echo "print -r" >&6; } ;;
7594  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7595$as_echo "cat" >&6; } ;;
7596esac
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7612if test "x$ac_cv_type_pid_t" = xyes; then :
7613
7614else
7615
7616cat >>confdefs.h <<_ACEOF
7617#define pid_t int
7618_ACEOF
7619
7620fi
7621
7622ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7623if test "x$ac_cv_type_size_t" = xyes; then :
7624
7625else
7626
7627cat >>confdefs.h <<_ACEOF
7628#define size_t unsigned int
7629_ACEOF
7630
7631fi
7632
7633
7634            # Check whether --enable-c99-snprintf was given.
7635if test "${enable_c99_snprintf+set}" = set; then :
7636  enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
7637else
7638  force_c99_snprintf=no
7639
7640fi
7641
7642    case "$force_c99_snprintf" in
7643     yes)
7644	hw_force_rpl_snprintf=yes
7645	hw_force_rpl_vsnprintf=yes
7646    esac
7647
7648
7649
7650
7651
7652
7653  for ac_header in $ac_header_list
7654do :
7655  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7656ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7657"
7658if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7659  cat >>confdefs.h <<_ACEOF
7660#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7661_ACEOF
7662
7663fi
7664
7665done
7666
7667
7668
7669
7670
7671
7672
7673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7674$as_echo_n "checking for unsigned long long int... " >&6; }
7675if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7676  $as_echo_n "(cached) " >&6
7677else
7678  ac_cv_type_unsigned_long_long_int=yes
7679     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7680       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681/* end confdefs.h.  */
7682
7683  /* For now, do not test the preprocessor; as of 2007 there are too many
7684	 implementations with broken preprocessors.  Perhaps this can
7685	 be revisited in 2012.  In the meantime, code should not expect
7686	 #if to work with literals wider than 32 bits.  */
7687      /* Test literals.  */
7688      long long int ll = 9223372036854775807ll;
7689      long long int nll = -9223372036854775807LL;
7690      unsigned long long int ull = 18446744073709551615ULL;
7691      /* Test constant expressions.   */
7692      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7693		     ? 1 : -1)];
7694      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7695		     ? 1 : -1)];
7696      int i = 63;
7697int
7698main ()
7699{
7700/* Test availability of runtime routines for shift and division.  */
7701      long long int llmax = 9223372036854775807ll;
7702      unsigned long long int ullmax = 18446744073709551615ull;
7703      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7704	      | (llmax / ll) | (llmax % ll)
7705	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7706	      | (ullmax / ull) | (ullmax % ull));
7707  ;
7708  return 0;
7709}
7710
7711_ACEOF
7712if ac_fn_c_try_link "$LINENO"; then :
7713
7714else
7715  ac_cv_type_unsigned_long_long_int=no
7716fi
7717rm -f core conftest.err conftest.$ac_objext \
7718    conftest$ac_exeext conftest.$ac_ext
7719     fi
7720fi
7721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7722$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7723  if test $ac_cv_type_unsigned_long_long_int = yes; then
7724
7725$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7726
7727  fi
7728
7729
7730      ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
7731if test "x$ac_cv_func_vsnprintf" = xyes; then :
7732  hw_cv_func_vsnprintf=yes
7733else
7734  hw_cv_func_vsnprintf=no
7735fi
7736
7737  if test "$hw_cv_func_vsnprintf" = yes; then :
7738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
7739$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
7740if ${hw_cv_func_vsnprintf_c99+:} false; then :
7741  $as_echo_n "(cached) " >&6
7742else
7743  if test "$cross_compiling" = yes; then :
7744  hw_cv_func_vsnprintf_c99=no
7745else
7746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747/* end confdefs.h.  */
7748#if HAVE_STDARG_H
7749          #include <stdarg.h>
7750          #endif
7751          #include <stdio.h>
7752          static int testprintf(char *buf, size_t size, const char *format, ...)
7753          {
7754            int result;
7755            va_list ap;
7756            va_start(ap, format);
7757            result = vsnprintf(buf, size, format, ap);
7758            va_end(ap);
7759            return result;
7760          }
7761int
7762main ()
7763{
7764char buf[43];
7765          if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
7766              testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
7767              buf[0] != 'T' || buf[3] != '\0')
7768            return 1;
7769  ;
7770  return 0;
7771}
7772_ACEOF
7773if ac_fn_c_try_run "$LINENO"; then :
7774  hw_cv_func_vsnprintf_c99=yes
7775else
7776  hw_cv_func_vsnprintf_c99=no
7777fi
7778rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7779  conftest.$ac_objext conftest.beam conftest.$ac_ext
7780fi
7781
7782fi
7783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
7784$as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
7785else
7786  hw_cv_func_vsnprintf_c99=no
7787fi
7788
7789$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
7790
7791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
7792$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
7793  if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
7794  hw_use_rpl_vsnprintf=yes
7795else
7796  hw_use_rpl_vsnprintf=no
7797fi
7798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
7799$as_echo "$hw_use_rpl_vsnprintf" >&6; }
7800  if test "$hw_use_rpl_vsnprintf" = yes; then :
7801
7802$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
7803
7804    if test ${hw_nodef_vsnprintf=no} = no; then :
7805
7806$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
7807
7808fi
7809    for ac_header in inttypes.h locale.h stddef.h stdint.h
7810do :
7811  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7812ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7813if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7814  cat >>confdefs.h <<_ACEOF
7815#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7816_ACEOF
7817
7818fi
7819
7820done
7821
7822    ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
7823"
7824if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
7825
7826cat >>confdefs.h <<_ACEOF
7827#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
7828_ACEOF
7829
7830
7831fi
7832ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
7833"
7834if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
7835
7836cat >>confdefs.h <<_ACEOF
7837#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
7838_ACEOF
7839
7840
7841fi
7842
7843
7844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
7845$as_echo_n "checking for long double... " >&6; }
7846if ${ac_cv_type_long_double+:} false; then :
7847  $as_echo_n "(cached) " >&6
7848else
7849  if test "$GCC" = yes; then
7850       ac_cv_type_long_double=yes
7851     else
7852       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853/* end confdefs.h.  */
7854/* The Stardent Vistra knows sizeof (long double), but does
7855		 not support it.  */
7856	      long double foo = 0.0L;
7857int
7858main ()
7859{
7860static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
7861	      sizeof (double) <= sizeof (long double))];
7862test_array [0] = 0;
7863return test_array [0];
7864
7865  ;
7866  return 0;
7867}
7868_ACEOF
7869if ac_fn_c_try_compile "$LINENO"; then :
7870  ac_cv_type_long_double=yes
7871else
7872  ac_cv_type_long_double=no
7873fi
7874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7875     fi
7876fi
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
7878$as_echo "$ac_cv_type_long_double" >&6; }
7879  if test $ac_cv_type_long_double = yes; then
7880
7881$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
7882
7883  fi
7884
7885
7886
7887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7888$as_echo_n "checking for long long int... " >&6; }
7889if ${ac_cv_type_long_long_int+:} false; then :
7890  $as_echo_n "(cached) " >&6
7891else
7892  ac_cv_type_long_long_int=yes
7893      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7894	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
7895	if test $ac_cv_type_long_long_int = yes; then
7896	  	  	  	  if test "$cross_compiling" = yes; then :
7897  :
7898else
7899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900/* end confdefs.h.  */
7901#include <limits.h>
7902		 #ifndef LLONG_MAX
7903		 # define HALF \
7904			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7905		 # define LLONG_MAX (HALF - 1 + HALF)
7906		 #endif
7907int
7908main ()
7909{
7910long long int n = 1;
7911		 int i;
7912		 for (i = 0; ; i++)
7913		   {
7914		     long long int m = n << i;
7915		     if (m >> i != n)
7916		       return 1;
7917		     if (LLONG_MAX / 2 < m)
7918		       break;
7919		   }
7920		 return 0;
7921  ;
7922  return 0;
7923}
7924_ACEOF
7925if ac_fn_c_try_run "$LINENO"; then :
7926
7927else
7928  ac_cv_type_long_long_int=no
7929fi
7930rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7931  conftest.$ac_objext conftest.beam conftest.$ac_ext
7932fi
7933
7934	fi
7935      fi
7936fi
7937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7938$as_echo "$ac_cv_type_long_long_int" >&6; }
7939  if test $ac_cv_type_long_long_int = yes; then
7940
7941$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7942
7943  fi
7944
7945
7946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7947$as_echo_n "checking for unsigned long long int... " >&6; }
7948if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7949  $as_echo_n "(cached) " >&6
7950else
7951  ac_cv_type_unsigned_long_long_int=yes
7952     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7953       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954/* end confdefs.h.  */
7955
7956  /* For now, do not test the preprocessor; as of 2007 there are too many
7957	 implementations with broken preprocessors.  Perhaps this can
7958	 be revisited in 2012.  In the meantime, code should not expect
7959	 #if to work with literals wider than 32 bits.  */
7960      /* Test literals.  */
7961      long long int ll = 9223372036854775807ll;
7962      long long int nll = -9223372036854775807LL;
7963      unsigned long long int ull = 18446744073709551615ULL;
7964      /* Test constant expressions.   */
7965      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7966		     ? 1 : -1)];
7967      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7968		     ? 1 : -1)];
7969      int i = 63;
7970int
7971main ()
7972{
7973/* Test availability of runtime routines for shift and division.  */
7974      long long int llmax = 9223372036854775807ll;
7975      unsigned long long int ullmax = 18446744073709551615ull;
7976      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7977	      | (llmax / ll) | (llmax % ll)
7978	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7979	      | (ullmax / ull) | (ullmax % ull));
7980  ;
7981  return 0;
7982}
7983
7984_ACEOF
7985if ac_fn_c_try_link "$LINENO"; then :
7986
7987else
7988  ac_cv_type_unsigned_long_long_int=no
7989fi
7990rm -f core conftest.err conftest.$ac_objext \
7991    conftest$ac_exeext conftest.$ac_ext
7992     fi
7993fi
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7995$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7996  if test $ac_cv_type_unsigned_long_long_int = yes; then
7997
7998$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7999
8000  fi
8001
8002    ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8003if test "x$ac_cv_type_size_t" = xyes; then :
8004
8005else
8006
8007cat >>confdefs.h <<_ACEOF
8008#define size_t unsigned int
8009_ACEOF
8010
8011fi
8012
8013
8014
8015  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
8016if test "x$ac_cv_type_intmax_t" = xyes; then :
8017
8018$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
8019
8020else
8021  test $ac_cv_type_long_long_int = yes \
8022       && ac_type='long long int' \
8023       || ac_type='long int'
8024
8025cat >>confdefs.h <<_ACEOF
8026#define intmax_t $ac_type
8027_ACEOF
8028
8029fi
8030
8031
8032
8033
8034  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
8035if test "x$ac_cv_type_uintmax_t" = xyes; then :
8036
8037$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
8038
8039else
8040  test $ac_cv_type_unsigned_long_long_int = yes \
8041       && ac_type='unsigned long long int' \
8042       || ac_type='unsigned long int'
8043
8044cat >>confdefs.h <<_ACEOF
8045#define uintmax_t $ac_type
8046_ACEOF
8047
8048fi
8049
8050
8051
8052  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
8053if test "x$ac_cv_type_uintptr_t" = xyes; then :
8054
8055$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
8056
8057else
8058  for ac_type in 'unsigned int' 'unsigned long int' \
8059	'unsigned long long int'; do
8060       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061/* end confdefs.h.  */
8062$ac_includes_default
8063int
8064main ()
8065{
8066static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
8067test_array [0] = 0;
8068return test_array [0];
8069
8070  ;
8071  return 0;
8072}
8073_ACEOF
8074if ac_fn_c_try_compile "$LINENO"; then :
8075
8076cat >>confdefs.h <<_ACEOF
8077#define uintptr_t $ac_type
8078_ACEOF
8079
8080	  ac_type=
8081fi
8082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083       test -z "$ac_type" && break
8084     done
8085fi
8086
8087
8088    ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8089if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8090
8091cat >>confdefs.h <<_ACEOF
8092#define HAVE_PTRDIFF_T 1
8093_ACEOF
8094
8095
8096fi
8097
8098    for ac_func in localeconv
8099do :
8100  ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
8101if test "x$ac_cv_func_localeconv" = xyes; then :
8102  cat >>confdefs.h <<_ACEOF
8103#define HAVE_LOCALECONV 1
8104_ACEOF
8105
8106fi
8107done
8108
8109
8110  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
8111  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8112$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8113if ${ac_cv_c_const+:} false; then :
8114  $as_echo_n "(cached) " >&6
8115else
8116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117/* end confdefs.h.  */
8118
8119int
8120main ()
8121{
8122
8123#ifndef __cplusplus
8124  /* Ultrix mips cc rejects this sort of thing.  */
8125  typedef int charset[2];
8126  const charset cs = { 0, 0 };
8127  /* SunOS 4.1.1 cc rejects this.  */
8128  char const *const *pcpcc;
8129  char **ppc;
8130  /* NEC SVR4.0.2 mips cc rejects this.  */
8131  struct point {int x, y;};
8132  static struct point const zero = {0,0};
8133  /* AIX XL C 1.02.0.0 rejects this.
8134     It does not let you subtract one const X* pointer from another in
8135     an arm of an if-expression whose if-part is not a constant
8136     expression */
8137  const char *g = "string";
8138  pcpcc = &g + (g ? g-g : 0);
8139  /* HPUX 7.0 cc rejects these. */
8140  ++pcpcc;
8141  ppc = (char**) pcpcc;
8142  pcpcc = (char const *const *) ppc;
8143  { /* SCO 3.2v4 cc rejects this sort of thing.  */
8144    char tx;
8145    char *t = &tx;
8146    char const *s = 0 ? (char *) 0 : (char const *) 0;
8147
8148    *t++ = 0;
8149    if (s) return 0;
8150  }
8151  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8152    int x[] = {25, 17};
8153    const int *foo = &x[0];
8154    ++foo;
8155  }
8156  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8157    typedef const int *iptr;
8158    iptr p = 0;
8159    ++p;
8160  }
8161  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8162       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8163    struct s { int j; const int *ap[3]; } bx;
8164    struct s *b = &bx; b->j = 5;
8165  }
8166  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8167    const int foo = 10;
8168    if (!foo) return 0;
8169  }
8170  return !cs[0] && !zero.x;
8171#endif
8172
8173  ;
8174  return 0;
8175}
8176_ACEOF
8177if ac_fn_c_try_compile "$LINENO"; then :
8178  ac_cv_c_const=yes
8179else
8180  ac_cv_c_const=no
8181fi
8182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183fi
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8185$as_echo "$ac_cv_c_const" >&6; }
8186if test $ac_cv_c_const = no; then
8187
8188$as_echo "#define const /**/" >>confdefs.h
8189
8190fi
8191
8192
8193
8194
8195    case " $LIBOBJS " in
8196  *" snprintf.$ac_objext "* ) ;;
8197  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8198 ;;
8199esac
8200
8201    _hw_cv_func_xprintf_replace_done=yes
8202fi
8203
8204fi
8205
8206
8207    ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
8208if test "x$ac_cv_func_snprintf" = xyes; then :
8209  hw_cv_func_snprintf=yes
8210else
8211  hw_cv_func_snprintf=no
8212fi
8213
8214  if test "$hw_cv_func_snprintf" = yes; then :
8215  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
8216$as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
8217if ${hw_cv_func_snprintf_c99+:} false; then :
8218  $as_echo_n "(cached) " >&6
8219else
8220  if test "$cross_compiling" = yes; then :
8221  hw_cv_func_snprintf_c99=no
8222else
8223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224/* end confdefs.h.  */
8225#include <stdio.h>
8226int
8227main ()
8228{
8229char buf[43];
8230          if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
8231              snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
8232              buf[0] != 'T' || buf[3] != '\0')
8233            return 1;
8234  ;
8235  return 0;
8236}
8237_ACEOF
8238if ac_fn_c_try_run "$LINENO"; then :
8239  hw_cv_func_snprintf_c99=yes
8240else
8241  hw_cv_func_snprintf_c99=no
8242fi
8243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8244  conftest.$ac_objext conftest.beam conftest.$ac_ext
8245fi
8246
8247fi
8248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
8249$as_echo "$hw_cv_func_snprintf_c99" >&6; }
8250else
8251  hw_cv_func_snprintf_c99=no
8252fi
8253
8254$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
8255
8256  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
8257$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
8258  if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
8259  hw_use_rpl_snprintf=yes
8260else
8261  hw_use_rpl_snprintf=no
8262fi
8263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
8264$as_echo "$hw_use_rpl_snprintf" >&6; }
8265  if test "$hw_use_rpl_snprintf" = yes; then :
8266
8267$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
8268
8269    if test ${hw_nodef_snprintf=no} = no; then :
8270
8271$as_echo "#define snprintf rpl_snprintf" >>confdefs.h
8272
8273fi
8274
8275  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
8276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8277$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8278if ${ac_cv_c_const+:} false; then :
8279  $as_echo_n "(cached) " >&6
8280else
8281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282/* end confdefs.h.  */
8283
8284int
8285main ()
8286{
8287
8288#ifndef __cplusplus
8289  /* Ultrix mips cc rejects this sort of thing.  */
8290  typedef int charset[2];
8291  const charset cs = { 0, 0 };
8292  /* SunOS 4.1.1 cc rejects this.  */
8293  char const *const *pcpcc;
8294  char **ppc;
8295  /* NEC SVR4.0.2 mips cc rejects this.  */
8296  struct point {int x, y;};
8297  static struct point const zero = {0,0};
8298  /* AIX XL C 1.02.0.0 rejects this.
8299     It does not let you subtract one const X* pointer from another in
8300     an arm of an if-expression whose if-part is not a constant
8301     expression */
8302  const char *g = "string";
8303  pcpcc = &g + (g ? g-g : 0);
8304  /* HPUX 7.0 cc rejects these. */
8305  ++pcpcc;
8306  ppc = (char**) pcpcc;
8307  pcpcc = (char const *const *) ppc;
8308  { /* SCO 3.2v4 cc rejects this sort of thing.  */
8309    char tx;
8310    char *t = &tx;
8311    char const *s = 0 ? (char *) 0 : (char const *) 0;
8312
8313    *t++ = 0;
8314    if (s) return 0;
8315  }
8316  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8317    int x[] = {25, 17};
8318    const int *foo = &x[0];
8319    ++foo;
8320  }
8321  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8322    typedef const int *iptr;
8323    iptr p = 0;
8324    ++p;
8325  }
8326  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8327       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8328    struct s { int j; const int *ap[3]; } bx;
8329    struct s *b = &bx; b->j = 5;
8330  }
8331  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8332    const int foo = 10;
8333    if (!foo) return 0;
8334  }
8335  return !cs[0] && !zero.x;
8336#endif
8337
8338  ;
8339  return 0;
8340}
8341_ACEOF
8342if ac_fn_c_try_compile "$LINENO"; then :
8343  ac_cv_c_const=yes
8344else
8345  ac_cv_c_const=no
8346fi
8347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8348fi
8349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8350$as_echo "$ac_cv_c_const" >&6; }
8351if test $ac_cv_c_const = no; then
8352
8353$as_echo "#define const /**/" >>confdefs.h
8354
8355fi
8356
8357
8358
8359
8360    case " $LIBOBJS " in
8361  *" snprintf.$ac_objext "* ) ;;
8362  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8363 ;;
8364esac
8365
8366    _hw_cv_func_xprintf_replace_done=yes
8367fi
8368
8369fi
8370
8371
8372
8373
8374
8375# HMS: Save $LIBS and empty it.
8376# any LIBS we add here should go in to LDADD_LIBNTP
8377
8378__LIBS=$LIBS
8379LIBS=
8380
8381
8382
8383# [Bug 2332] because we need to know if we are using GNU ld...
8384
8385
8386# Check whether --with-gnu-ld was given.
8387if test "${with_gnu_ld+set}" = set; then :
8388  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8389else
8390  with_gnu_ld=no
8391fi
8392
8393ac_prog=ld
8394if test "$GCC" = yes; then
8395  # Check if gcc -print-prog-name=ld gives a path.
8396  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8397$as_echo_n "checking for ld used by $CC... " >&6; }
8398  case $host in
8399  *-*-mingw*)
8400    # gcc leaves a trailing carriage return which upsets mingw
8401    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8402  *)
8403    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8404  esac
8405  case $ac_prog in
8406    # Accept absolute paths.
8407    [\\/]* | ?:[\\/]*)
8408      re_direlt='/[^/][^/]*/\.\./'
8409      # Canonicalize the pathname of ld
8410      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8411      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8412	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8413      done
8414      test -z "$LD" && LD="$ac_prog"
8415      ;;
8416  "")
8417    # If it fails, then pretend we aren't using GCC.
8418    ac_prog=ld
8419    ;;
8420  *)
8421    # If it is relative, then search for the first ld in PATH.
8422    with_gnu_ld=unknown
8423    ;;
8424  esac
8425elif test "$with_gnu_ld" = yes; then
8426  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8427$as_echo_n "checking for GNU ld... " >&6; }
8428else
8429  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8430$as_echo_n "checking for non-GNU ld... " >&6; }
8431fi
8432if ${lt_cv_path_LD+:} false; then :
8433  $as_echo_n "(cached) " >&6
8434else
8435  if test -z "$LD"; then
8436  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8437  for ac_dir in $PATH; do
8438    IFS="$lt_save_ifs"
8439    test -z "$ac_dir" && ac_dir=.
8440    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8441      lt_cv_path_LD="$ac_dir/$ac_prog"
8442      # Check to see if the program is GNU ld.  I'd rather use --version,
8443      # but apparently some variants of GNU ld only accept -v.
8444      # Break only if it was the GNU/non-GNU ld that we prefer.
8445      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8446      *GNU* | *'with BFD'*)
8447	test "$with_gnu_ld" != no && break
8448	;;
8449      *)
8450	test "$with_gnu_ld" != yes && break
8451	;;
8452      esac
8453    fi
8454  done
8455  IFS="$lt_save_ifs"
8456else
8457  lt_cv_path_LD="$LD" # Let the user override the test with a path.
8458fi
8459fi
8460
8461LD="$lt_cv_path_LD"
8462if test -n "$LD"; then
8463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8464$as_echo "$LD" >&6; }
8465else
8466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467$as_echo "no" >&6; }
8468fi
8469test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8471$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8472if ${lt_cv_prog_gnu_ld+:} false; then :
8473  $as_echo_n "(cached) " >&6
8474else
8475  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8476case `$LD -v 2>&1 </dev/null` in
8477*GNU* | *'with BFD'*)
8478  lt_cv_prog_gnu_ld=yes
8479  ;;
8480*)
8481  lt_cv_prog_gnu_ld=no
8482  ;;
8483esac
8484fi
8485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8486$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8487with_gnu_ld=$lt_cv_prog_gnu_ld
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
8500$as_echo_n "checking for directory path separator... " >&6; }
8501if ${ntp_cv_dir_sep+:} false; then :
8502  $as_echo_n "(cached) " >&6
8503else
8504
8505	case "$ntp_cv_dir_sep" in
8506	 '')
8507	    case "$host_os" in
8508	     *djgpp | *mingw32* | *emx*)
8509		ntp_cv_dir_sep="'\\'"
8510		;;
8511	     *)
8512		ntp_cv_dir_sep="'/'"
8513		;;
8514	    esac
8515	esac
8516
8517
8518fi
8519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
8520$as_echo "$ntp_cv_dir_sep" >&6; }
8521
8522cat >>confdefs.h <<_ACEOF
8523#define DIR_SEP $ntp_cv_dir_sep
8524_ACEOF
8525
8526
8527
8528    NTP_ORIG_LIBS="$LIBS"
8529
8530# Check whether --with-lineeditlibs was given.
8531if test "${with_lineeditlibs+set}" = set; then :
8532  withval=$with_lineeditlibs; use_lineeditlibs="$withval"
8533else
8534  use_lineeditlibs="edit,editline"
8535
8536fi
8537
8538    { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
8539$as_echo_n "checking line editing libraries... " >&6; }
8540    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
8541$as_echo "$use_lineeditlibs" >&6; }
8542    case "$use_lineeditlibs" in
8543     no)
8544	ntp_lib_lineedit=no
8545	;;
8546     *)
8547	for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
8548	    for term_lib in "" termcap curses ncurses; do
8549		case "$term_lib" in
8550		 '')
8551		    TRY_LIB="-l$lineedit_lib"
8552		    ;;
8553		 *)
8554		    TRY_LIB="-l$lineedit_lib -l$term_lib"
8555		    ;;
8556		esac
8557		LIBS="$NTP_ORIG_LIBS $TRY_LIB"
8558		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
8559$as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
8560		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8561/* end confdefs.h.  */
8562
8563/* Override any GCC internal prototype to avoid an error.
8564   Use char because int might match the return type of a GCC
8565   builtin and then its argument prototype would still apply.  */
8566#ifdef __cplusplus
8567extern "C"
8568#endif
8569char readline ();
8570int
8571main ()
8572{
8573return readline ();
8574  ;
8575  return 0;
8576}
8577_ACEOF
8578if ac_fn_c_try_link "$LINENO"; then :
8579  ntp_lib_lineedit="$TRY_LIB"
8580fi
8581rm -f core conftest.err conftest.$ac_objext \
8582    conftest$ac_exeext conftest.$ac_ext
8583		case "$ntp_lib_lineedit" in
8584		 '')
8585		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586$as_echo "no" >&6; }
8587		    ;;
8588		 *)
8589		    # Use readline()
8590		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8591$as_echo "yes" >&6; }
8592		    break
8593		esac
8594		case "$term_lib" in
8595		 '')
8596		    # do not try el_gets without a terminal library
8597		    ;;
8598		 *)
8599		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
8600$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
8601		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602/* end confdefs.h.  */
8603
8604/* Override any GCC internal prototype to avoid an error.
8605   Use char because int might match the return type of a GCC
8606   builtin and then its argument prototype would still apply.  */
8607#ifdef __cplusplus
8608extern "C"
8609#endif
8610char el_gets ();
8611int
8612main ()
8613{
8614return el_gets ();
8615  ;
8616  return 0;
8617}
8618_ACEOF
8619if ac_fn_c_try_link "$LINENO"; then :
8620  ntp_lib_lineedit="$TRY_LIB"
8621fi
8622rm -f core conftest.err conftest.$ac_objext \
8623    conftest$ac_exeext conftest.$ac_ext
8624		    case "$ntp_lib_lineedit" in
8625		     '')
8626			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627$as_echo "no" >&6; }
8628			;;
8629		     *) # Use el_gets()
8630			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8631$as_echo "yes" >&6; }
8632			break
8633			;;
8634		    esac	# $ntp_lib_lineedit
8635		esac		# $term_lib
8636	    done
8637	    case "$ntp_lib_lineedit" in
8638	     '')
8639		;;
8640	     *)
8641		break
8642		;;
8643	    esac
8644	done
8645	LIBS="$NTP_ORIG_LIBS"
8646	;;
8647    esac	# $use_lineeditlibs
8648
8649    case "$ntp_lib_lineedit" in
8650     '')
8651	ntp_lib_lineedit="no"
8652	;;
8653     no)
8654	;;
8655     *)
8656	EDITLINE_LIBS="$ntp_lib_lineedit"
8657
8658	;;
8659    esac	# $ntp_lib_lineedit
8660
8661    case "$ntp_lib_lineedit" in
8662     no)
8663	;;
8664     *)
8665	for ac_header in readline.h readline/readline.h histedit.h
8666do :
8667  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8668ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8669if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8670  cat >>confdefs.h <<_ACEOF
8671#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8672_ACEOF
8673
8674fi
8675
8676done
8677
8678	for ac_header in history.h readline/history.h
8679do :
8680  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8681ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8682if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8683  cat >>confdefs.h <<_ACEOF
8684#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8685_ACEOF
8686
8687fi
8688
8689done
8690
8691
8692	case "$ac_cv_header_histedit_h" in
8693	 yes)
8694	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
8695$as_echo_n "checking number of arguments to el_init()... " >&6; }
8696if ${ntp_cv_el_init_args+:} false; then :
8697  $as_echo_n "(cached) " >&6
8698else
8699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700/* end confdefs.h.  */
8701
8702			    #include <stdio.h>
8703			    #include <histedit.h>
8704
8705int
8706main ()
8707{
8708
8709			    el_init("conftest", stdin, stdout, stderr);
8710
8711
8712  ;
8713  return 0;
8714}
8715_ACEOF
8716if ac_fn_c_try_compile "$LINENO"; then :
8717  ntp_cv_el_init_args=4
8718else
8719  ntp_cv_el_init_args=3
8720
8721fi
8722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723
8724fi
8725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
8726$as_echo "$ntp_cv_el_init_args" >&6; }
8727
8728cat >>confdefs.h <<_ACEOF
8729#define EL_INIT_ARGS $ntp_cv_el_init_args
8730_ACEOF
8731
8732	esac
8733
8734	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
8735$as_echo_n "checking whether readline supports history... " >&6; }
8736
8737	ntp_lib_lineedit_history="no"
8738	ORIG_LIBS="$LIBS"
8739	LIBS="$ORIG_LIBS $ntp_lib_lineedit"
8740	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741/* end confdefs.h.  */
8742
8743/* Override any GCC internal prototype to avoid an error.
8744   Use char because int might match the return type of a GCC
8745   builtin and then its argument prototype would still apply.  */
8746#ifdef __cplusplus
8747extern "C"
8748#endif
8749char add_history ();
8750int
8751main ()
8752{
8753return add_history ();
8754  ;
8755  return 0;
8756}
8757_ACEOF
8758if ac_fn_c_try_link "$LINENO"; then :
8759  ntp_lib_lineedit_history="yes"
8760fi
8761rm -f core conftest.err conftest.$ac_objext \
8762    conftest$ac_exeext conftest.$ac_ext
8763	LIBS="$ORIG_LIBS"
8764
8765	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
8766$as_echo "$ntp_lib_lineedit_history" >&6; }
8767
8768	case "$ntp_lib_lineedit_history" in
8769	 yes)
8770
8771$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
8772
8773	esac
8774    esac	# $ntp_lib_lineedit
8775    { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
8776    { ORIG_LIBS=; unset ORIG_LIBS;}
8777    { TRY_LIB=; unset TRY_LIB;}
8778    { use_lineeditlibs=; unset use_lineeditlibs;}
8779
8780
8781LIBM=
8782case "$host" in
8783 *-*-darwin*)
8784    ;;
8785 *)
8786    _libs=$LIBS
8787    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
8788$as_echo_n "checking for library containing cos... " >&6; }
8789if ${ac_cv_search_cos+:} false; then :
8790  $as_echo_n "(cached) " >&6
8791else
8792  ac_func_search_save_LIBS=$LIBS
8793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794/* end confdefs.h.  */
8795
8796/* Override any GCC internal prototype to avoid an error.
8797   Use char because int might match the return type of a GCC
8798   builtin and then its argument prototype would still apply.  */
8799#ifdef __cplusplus
8800extern "C"
8801#endif
8802char cos ();
8803int
8804main ()
8805{
8806return cos ();
8807  ;
8808  return 0;
8809}
8810_ACEOF
8811for ac_lib in '' m; do
8812  if test -z "$ac_lib"; then
8813    ac_res="none required"
8814  else
8815    ac_res=-l$ac_lib
8816    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8817  fi
8818  if ac_fn_c_try_link "$LINENO"; then :
8819  ac_cv_search_cos=$ac_res
8820fi
8821rm -f core conftest.err conftest.$ac_objext \
8822    conftest$ac_exeext
8823  if ${ac_cv_search_cos+:} false; then :
8824  break
8825fi
8826done
8827if ${ac_cv_search_cos+:} false; then :
8828
8829else
8830  ac_cv_search_cos=no
8831fi
8832rm conftest.$ac_ext
8833LIBS=$ac_func_search_save_LIBS
8834fi
8835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
8836$as_echo "$ac_cv_search_cos" >&6; }
8837ac_res=$ac_cv_search_cos
8838if test "$ac_res" != no; then :
8839  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8840  LIBM="-lm"
8841fi
8842
8843    LIBS=$_libs
8844    ;;
8845esac
8846
8847{ _libs=; unset _libs;}
8848
8849
8850for ac_header in vfork.h
8851do :
8852  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8853if test "x$ac_cv_header_vfork_h" = xyes; then :
8854  cat >>confdefs.h <<_ACEOF
8855#define HAVE_VFORK_H 1
8856_ACEOF
8857
8858fi
8859
8860done
8861
8862for ac_func in fork vfork
8863do :
8864  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8865ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8866if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8867  cat >>confdefs.h <<_ACEOF
8868#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8869_ACEOF
8870
8871fi
8872done
8873
8874if test "x$ac_cv_func_fork" = xyes; then
8875  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8876$as_echo_n "checking for working fork... " >&6; }
8877if ${ac_cv_func_fork_works+:} false; then :
8878  $as_echo_n "(cached) " >&6
8879else
8880  if test "$cross_compiling" = yes; then :
8881  ac_cv_func_fork_works=cross
8882else
8883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884/* end confdefs.h.  */
8885$ac_includes_default
8886int
8887main ()
8888{
8889
8890	  /* By Ruediger Kuhlmann. */
8891	  return fork () < 0;
8892
8893  ;
8894  return 0;
8895}
8896_ACEOF
8897if ac_fn_c_try_run "$LINENO"; then :
8898  ac_cv_func_fork_works=yes
8899else
8900  ac_cv_func_fork_works=no
8901fi
8902rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8903  conftest.$ac_objext conftest.beam conftest.$ac_ext
8904fi
8905
8906fi
8907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8908$as_echo "$ac_cv_func_fork_works" >&6; }
8909
8910else
8911  ac_cv_func_fork_works=$ac_cv_func_fork
8912fi
8913if test "x$ac_cv_func_fork_works" = xcross; then
8914  case $host in
8915    *-*-amigaos* | *-*-msdosdjgpp*)
8916      # Override, as these systems have only a dummy fork() stub
8917      ac_cv_func_fork_works=no
8918      ;;
8919    *)
8920      ac_cv_func_fork_works=yes
8921      ;;
8922  esac
8923  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8924$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8925fi
8926ac_cv_func_vfork_works=$ac_cv_func_vfork
8927if test "x$ac_cv_func_vfork" = xyes; then
8928  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8929$as_echo_n "checking for working vfork... " >&6; }
8930if ${ac_cv_func_vfork_works+:} false; then :
8931  $as_echo_n "(cached) " >&6
8932else
8933  if test "$cross_compiling" = yes; then :
8934  ac_cv_func_vfork_works=cross
8935else
8936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937/* end confdefs.h.  */
8938/* Thanks to Paul Eggert for this test.  */
8939$ac_includes_default
8940#include <sys/wait.h>
8941#ifdef HAVE_VFORK_H
8942# include <vfork.h>
8943#endif
8944/* On some sparc systems, changes by the child to local and incoming
8945   argument registers are propagated back to the parent.  The compiler
8946   is told about this with #include <vfork.h>, but some compilers
8947   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8948   static variable whose address is put into a register that is
8949   clobbered by the vfork.  */
8950static void
8951#ifdef __cplusplus
8952sparc_address_test (int arg)
8953# else
8954sparc_address_test (arg) int arg;
8955#endif
8956{
8957  static pid_t child;
8958  if (!child) {
8959    child = vfork ();
8960    if (child < 0) {
8961      perror ("vfork");
8962      _exit(2);
8963    }
8964    if (!child) {
8965      arg = getpid();
8966      write(-1, "", 0);
8967      _exit (arg);
8968    }
8969  }
8970}
8971
8972int
8973main ()
8974{
8975  pid_t parent = getpid ();
8976  pid_t child;
8977
8978  sparc_address_test (0);
8979
8980  child = vfork ();
8981
8982  if (child == 0) {
8983    /* Here is another test for sparc vfork register problems.  This
8984       test uses lots of local variables, at least as many local
8985       variables as main has allocated so far including compiler
8986       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8987       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8988       reuse the register of parent for one of the local variables,
8989       since it will think that parent can't possibly be used any more
8990       in this routine.  Assigning to the local variable will thus
8991       munge parent in the parent process.  */
8992    pid_t
8993      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8994      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8995    /* Convince the compiler that p..p7 are live; otherwise, it might
8996       use the same hardware register for all 8 local variables.  */
8997    if (p != p1 || p != p2 || p != p3 || p != p4
8998	|| p != p5 || p != p6 || p != p7)
8999      _exit(1);
9000
9001    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9002       from child file descriptors.  If the child closes a descriptor
9003       before it execs or exits, this munges the parent's descriptor
9004       as well.  Test for this by closing stdout in the child.  */
9005    _exit(close(fileno(stdout)) != 0);
9006  } else {
9007    int status;
9008    struct stat st;
9009
9010    while (wait(&status) != child)
9011      ;
9012    return (
9013	 /* Was there some problem with vforking?  */
9014	 child < 0
9015
9016	 /* Did the child fail?  (This shouldn't happen.)  */
9017	 || status
9018
9019	 /* Did the vfork/compiler bug occur?  */
9020	 || parent != getpid()
9021
9022	 /* Did the file descriptor bug occur?  */
9023	 || fstat(fileno(stdout), &st) != 0
9024	 );
9025  }
9026}
9027_ACEOF
9028if ac_fn_c_try_run "$LINENO"; then :
9029  ac_cv_func_vfork_works=yes
9030else
9031  ac_cv_func_vfork_works=no
9032fi
9033rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9034  conftest.$ac_objext conftest.beam conftest.$ac_ext
9035fi
9036
9037fi
9038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9039$as_echo "$ac_cv_func_vfork_works" >&6; }
9040
9041fi;
9042if test "x$ac_cv_func_fork_works" = xcross; then
9043  ac_cv_func_vfork_works=$ac_cv_func_vfork
9044  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9045$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9046fi
9047
9048if test "x$ac_cv_func_vfork_works" = xyes; then
9049
9050$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9051
9052else
9053
9054$as_echo "#define vfork fork" >>confdefs.h
9055
9056fi
9057if test "x$ac_cv_func_fork_works" = xyes; then
9058
9059$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9060
9061fi
9062
9063# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9064# for constant arguments.  Useless!
9065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9066$as_echo_n "checking for working alloca.h... " >&6; }
9067if ${ac_cv_working_alloca_h+:} false; then :
9068  $as_echo_n "(cached) " >&6
9069else
9070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071/* end confdefs.h.  */
9072#include <alloca.h>
9073int
9074main ()
9075{
9076char *p = (char *) alloca (2 * sizeof (int));
9077			  if (p) return 0;
9078  ;
9079  return 0;
9080}
9081_ACEOF
9082if ac_fn_c_try_link "$LINENO"; then :
9083  ac_cv_working_alloca_h=yes
9084else
9085  ac_cv_working_alloca_h=no
9086fi
9087rm -f core conftest.err conftest.$ac_objext \
9088    conftest$ac_exeext conftest.$ac_ext
9089fi
9090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9091$as_echo "$ac_cv_working_alloca_h" >&6; }
9092if test $ac_cv_working_alloca_h = yes; then
9093
9094$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9095
9096fi
9097
9098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9099$as_echo_n "checking for alloca... " >&6; }
9100if ${ac_cv_func_alloca_works+:} false; then :
9101  $as_echo_n "(cached) " >&6
9102else
9103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9104/* end confdefs.h.  */
9105#ifdef __GNUC__
9106# define alloca __builtin_alloca
9107#else
9108# ifdef _MSC_VER
9109#  include <malloc.h>
9110#  define alloca _alloca
9111# else
9112#  ifdef HAVE_ALLOCA_H
9113#   include <alloca.h>
9114#  else
9115#   ifdef _AIX
9116 #pragma alloca
9117#   else
9118#    ifndef alloca /* predefined by HP cc +Olibcalls */
9119void *alloca (size_t);
9120#    endif
9121#   endif
9122#  endif
9123# endif
9124#endif
9125
9126int
9127main ()
9128{
9129char *p = (char *) alloca (1);
9130				    if (p) return 0;
9131  ;
9132  return 0;
9133}
9134_ACEOF
9135if ac_fn_c_try_link "$LINENO"; then :
9136  ac_cv_func_alloca_works=yes
9137else
9138  ac_cv_func_alloca_works=no
9139fi
9140rm -f core conftest.err conftest.$ac_objext \
9141    conftest$ac_exeext conftest.$ac_ext
9142fi
9143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9144$as_echo "$ac_cv_func_alloca_works" >&6; }
9145
9146if test $ac_cv_func_alloca_works = yes; then
9147
9148$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9149
9150else
9151  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9152# that cause trouble.  Some versions do not even contain alloca or
9153# contain a buggy version.  If you still want to use their alloca,
9154# use ar to extract alloca.o from them instead of compiling alloca.c.
9155
9156ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9157
9158$as_echo "#define C_ALLOCA 1" >>confdefs.h
9159
9160
9161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9162$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9163if ${ac_cv_os_cray+:} false; then :
9164  $as_echo_n "(cached) " >&6
9165else
9166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167/* end confdefs.h.  */
9168#if defined CRAY && ! defined CRAY2
9169webecray
9170#else
9171wenotbecray
9172#endif
9173
9174_ACEOF
9175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9176  $EGREP "webecray" >/dev/null 2>&1; then :
9177  ac_cv_os_cray=yes
9178else
9179  ac_cv_os_cray=no
9180fi
9181rm -f conftest*
9182
9183fi
9184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9185$as_echo "$ac_cv_os_cray" >&6; }
9186if test $ac_cv_os_cray = yes; then
9187  for ac_func in _getb67 GETB67 getb67; do
9188    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9189ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9190if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9191
9192cat >>confdefs.h <<_ACEOF
9193#define CRAY_STACKSEG_END $ac_func
9194_ACEOF
9195
9196    break
9197fi
9198
9199  done
9200fi
9201
9202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9203$as_echo_n "checking stack direction for C alloca... " >&6; }
9204if ${ac_cv_c_stack_direction+:} false; then :
9205  $as_echo_n "(cached) " >&6
9206else
9207  if test "$cross_compiling" = yes; then :
9208  ac_cv_c_stack_direction=0
9209else
9210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211/* end confdefs.h.  */
9212$ac_includes_default
9213int
9214find_stack_direction (int *addr, int depth)
9215{
9216  int dir, dummy = 0;
9217  if (! addr)
9218    addr = &dummy;
9219  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
9220  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
9221  return dir + dummy;
9222}
9223
9224int
9225main (int argc, char **argv)
9226{
9227  return find_stack_direction (0, argc + !argv + 20) < 0;
9228}
9229_ACEOF
9230if ac_fn_c_try_run "$LINENO"; then :
9231  ac_cv_c_stack_direction=1
9232else
9233  ac_cv_c_stack_direction=-1
9234fi
9235rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9236  conftest.$ac_objext conftest.beam conftest.$ac_ext
9237fi
9238
9239fi
9240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9241$as_echo "$ac_cv_c_stack_direction" >&6; }
9242cat >>confdefs.h <<_ACEOF
9243#define STACK_DIRECTION $ac_cv_c_stack_direction
9244_ACEOF
9245
9246
9247fi
9248
9249ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
9250if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
9251  ac_have_decl=1
9252else
9253  ac_have_decl=0
9254fi
9255
9256cat >>confdefs.h <<_ACEOF
9257#define HAVE_DECL_STRERROR_R $ac_have_decl
9258_ACEOF
9259
9260for ac_func in strerror_r
9261do :
9262  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
9263if test "x$ac_cv_func_strerror_r" = xyes; then :
9264  cat >>confdefs.h <<_ACEOF
9265#define HAVE_STRERROR_R 1
9266_ACEOF
9267
9268fi
9269done
9270
9271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
9272$as_echo_n "checking whether strerror_r returns char *... " >&6; }
9273if ${ac_cv_func_strerror_r_char_p+:} false; then :
9274  $as_echo_n "(cached) " >&6
9275else
9276
9277    ac_cv_func_strerror_r_char_p=no
9278    if test $ac_cv_have_decl_strerror_r = yes; then
9279      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280/* end confdefs.h.  */
9281$ac_includes_default
9282int
9283main ()
9284{
9285
9286	  char buf[100];
9287	  char x = *strerror_r (0, buf, sizeof buf);
9288	  char *p = strerror_r (0, buf, sizeof buf);
9289	  return !p || x;
9290
9291  ;
9292  return 0;
9293}
9294_ACEOF
9295if ac_fn_c_try_compile "$LINENO"; then :
9296  ac_cv_func_strerror_r_char_p=yes
9297fi
9298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9299    else
9300      # strerror_r is not declared.  Choose between
9301      # systems that have relatively inaccessible declarations for the
9302      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
9303      # former has a strerror_r that returns char*, while the latter
9304      # has a strerror_r that returns `int'.
9305      # This test should segfault on the DEC system.
9306      if test "$cross_compiling" = yes; then :
9307  :
9308else
9309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310/* end confdefs.h.  */
9311$ac_includes_default
9312	extern char *strerror_r ();
9313int
9314main ()
9315{
9316char buf[100];
9317	  char x = *strerror_r (0, buf, sizeof buf);
9318	  return ! isalpha (x);
9319  ;
9320  return 0;
9321}
9322_ACEOF
9323if ac_fn_c_try_run "$LINENO"; then :
9324  ac_cv_func_strerror_r_char_p=yes
9325fi
9326rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9327  conftest.$ac_objext conftest.beam conftest.$ac_ext
9328fi
9329
9330    fi
9331
9332fi
9333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
9334$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
9335if test $ac_cv_func_strerror_r_char_p = yes; then
9336
9337$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
9338
9339fi
9340
9341
9342ac_busted_vpath_in_make=no
9343case "$build" in
9344 *-*-irix6.1*)	# 64 bit only
9345    # busted vpath?
9346    ;;
9347 *-*-irix6*)	# 6.2 (and later?)
9348    ac_busted_vpath_in_make=yes
9349    ;;
9350 *-*-solaris2.5.1)
9351    ac_busted_vpath_in_make=yes
9352    ;;
9353 *-*-unicosmp*)
9354    ac_busted_vpath_in_make=yes
9355    ;;
9356esac
9357
9358case "$ac_busted_vpath_in_make$srcdir" in
9359 yes.|no*)
9360    ;;
9361 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
9362     '')
9363	as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
9364    esac
9365    ;;
9366esac
9367
9368case "$host" in
9369 *-*-aix4*)
9370	# Bug 2516:
9371	# Was *-*-aix[[4-9]]*
9372	# XXX only verified thru AIX6.  But...
9373	# Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
9374	# that this support would be in 5.3, removed in 6, and added back.
9375	#
9376	# (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
9377	# (returning ENOSYS).  I didn't check 4.2.  If, in the future,
9378	# IBM pulls its thumbs out long enough to implement clock_settime,
9379	# this conditional will need to change.  Maybe use AC_TRY_RUN
9380	# instead to try to set the time to itself and check errno.
9381    ;;
9382 *)
9383    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
9384$as_echo_n "checking for library containing clock_gettime... " >&6; }
9385if ${ac_cv_search_clock_gettime+:} false; then :
9386  $as_echo_n "(cached) " >&6
9387else
9388  ac_func_search_save_LIBS=$LIBS
9389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390/* end confdefs.h.  */
9391
9392/* Override any GCC internal prototype to avoid an error.
9393   Use char because int might match the return type of a GCC
9394   builtin and then its argument prototype would still apply.  */
9395#ifdef __cplusplus
9396extern "C"
9397#endif
9398char clock_gettime ();
9399int
9400main ()
9401{
9402return clock_gettime ();
9403  ;
9404  return 0;
9405}
9406_ACEOF
9407for ac_lib in '' rt; do
9408  if test -z "$ac_lib"; then
9409    ac_res="none required"
9410  else
9411    ac_res=-l$ac_lib
9412    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9413  fi
9414  if ac_fn_c_try_link "$LINENO"; then :
9415  ac_cv_search_clock_gettime=$ac_res
9416fi
9417rm -f core conftest.err conftest.$ac_objext \
9418    conftest$ac_exeext
9419  if ${ac_cv_search_clock_gettime+:} false; then :
9420  break
9421fi
9422done
9423if ${ac_cv_search_clock_gettime+:} false; then :
9424
9425else
9426  ac_cv_search_clock_gettime=no
9427fi
9428rm conftest.$ac_ext
9429LIBS=$ac_func_search_save_LIBS
9430fi
9431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
9432$as_echo "$ac_cv_search_clock_gettime" >&6; }
9433ac_res=$ac_cv_search_clock_gettime
9434if test "$ac_res" != no; then :
9435  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9436  case "$ac_cv_search_clock_gettime" in
9437 'none required') ;;
9438 no) ;;
9439 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
9440 esac
9441
9442fi
9443
9444    for ac_func in clock_getres clock_gettime clock_settime
9445do :
9446  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9447ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9448if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9449  cat >>confdefs.h <<_ACEOF
9450#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9451_ACEOF
9452
9453fi
9454done
9455
9456    ;;
9457esac
9458
9459for ac_func in getclock stime timegm strlcpy strlcat
9460do :
9461  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9462ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9463if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9464  cat >>confdefs.h <<_ACEOF
9465#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9466_ACEOF
9467
9468fi
9469done
9470
9471
9472# Bug 2713
9473LDADD_LIBUTIL=
9474
9475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
9476$as_echo_n "checking for library containing snprintb... " >&6; }
9477if ${ac_cv_search_snprintb+:} false; then :
9478  $as_echo_n "(cached) " >&6
9479else
9480  ac_func_search_save_LIBS=$LIBS
9481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482/* end confdefs.h.  */
9483
9484/* Override any GCC internal prototype to avoid an error.
9485   Use char because int might match the return type of a GCC
9486   builtin and then its argument prototype would still apply.  */
9487#ifdef __cplusplus
9488extern "C"
9489#endif
9490char snprintb ();
9491int
9492main ()
9493{
9494return snprintb ();
9495  ;
9496  return 0;
9497}
9498_ACEOF
9499for ac_lib in '' util; do
9500  if test -z "$ac_lib"; then
9501    ac_res="none required"
9502  else
9503    ac_res=-l$ac_lib
9504    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9505  fi
9506  if ac_fn_c_try_link "$LINENO"; then :
9507  ac_cv_search_snprintb=$ac_res
9508fi
9509rm -f core conftest.err conftest.$ac_objext \
9510    conftest$ac_exeext
9511  if ${ac_cv_search_snprintb+:} false; then :
9512  break
9513fi
9514done
9515if ${ac_cv_search_snprintb+:} false; then :
9516
9517else
9518  ac_cv_search_snprintb=no
9519fi
9520rm conftest.$ac_ext
9521LIBS=$ac_func_search_save_LIBS
9522fi
9523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
9524$as_echo "$ac_cv_search_snprintb" >&6; }
9525ac_res=$ac_cv_search_snprintb
9526if test "$ac_res" != no; then :
9527  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9528  case "$ac_cv_search_snprintb" in
9529 'none required') ;;
9530 no) ;;
9531 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
9532 esac
9533
9534$as_echo "#define USE_SNPRINTB 1" >>confdefs.h
9535
9536fi
9537
9538
9539#
9540for ac_header in errno.h sys/socket.h sys/types.h time.h
9541do :
9542  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9543ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9544if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9545  cat >>confdefs.h <<_ACEOF
9546#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9547_ACEOF
9548
9549fi
9550
9551done
9552
9553for ac_header in net/if.h
9554do :
9555  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
9556    #ifdef HAVE_SYS_SOCKET_H
9557    # include <sys/socket.h>
9558    #endif
9559
9560"
9561if test "x$ac_cv_header_net_if_h" = xyes; then :
9562  cat >>confdefs.h <<_ACEOF
9563#define HAVE_NET_IF_H 1
9564_ACEOF
9565
9566fi
9567
9568done
9569
9570case "$host" in
9571 *-hp-hpux*)
9572    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
9573$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
9574if ${ntp_cv_predecl_mpinfou+:} false; then :
9575  $as_echo_n "(cached) " >&6
9576else
9577
9578	    np_cv_predecl_mpinfou=no
9579	    case "$ac_cv_header_net_if_h" in
9580	     no)
9581		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582/* end confdefs.h.  */
9583
9584			    typedef union mpinfou {
9585				    struct pdk_mpinfo *pdkptr;
9586				    struct mpinfo *pikptr;
9587			    } mpinfou_t;
9588			    #ifdef HAVE_SYS_SOCKET_H
9589			    # include <sys/socket.h>
9590			    #endif
9591			    #include <net/if.h>
9592
9593int
9594main ()
9595{
9596
9597
9598
9599  ;
9600  return 0;
9601}
9602_ACEOF
9603if ac_fn_c_try_compile "$LINENO"; then :
9604
9605			ntp_cv_predecl_mpinfou=yes
9606			ac_cv_header_net_if_h=yes
9607
9608
9609fi
9610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9611	    esac
9612
9613
9614fi
9615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
9616$as_echo "$ntp_cv_predecl_mpinfou" >&6; }
9617    case "$ntp_cv_predecl_mpinfou" in
9618     yes)
9619	cat >>confdefs.h <<_ACEOF
9620#ifndef MPINFOU_PREDECLARED
9621# define MPINFOU_PREDECLARED
9622typedef union mpinfou {
9623	struct pdk_mpinfo *pdkptr;
9624	struct mpinfo *pikptr;
9625} mpinfou_t;
9626#endif
9627_ACEOF
9628
9629    esac
9630esac
9631
9632case "$host" in
9633 *-linux*)
9634    for ac_header in linux/if_addr.h
9635do :
9636  ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
9637	#ifdef HAVE_SYS_SOCKET_H
9638	# include <sys/socket.h>
9639	#endif
9640
9641"
9642if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
9643  cat >>confdefs.h <<_ACEOF
9644#define HAVE_LINUX_IF_ADDR_H 1
9645_ACEOF
9646
9647fi
9648
9649done
9650
9651esac
9652
9653for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
9654do :
9655  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9656ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9657if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9658  cat >>confdefs.h <<_ACEOF
9659#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9660_ACEOF
9661
9662fi
9663
9664done
9665
9666# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
9667for ac_header in sys/sysctl.h
9668do :
9669  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
9670    #if defined HAVE_SYS_PARAM_H
9671    # include <sys/param.h>
9672    #endif
9673
9674"
9675if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
9676  cat >>confdefs.h <<_ACEOF
9677#define HAVE_SYS_SYSCTL_H 1
9678_ACEOF
9679
9680fi
9681
9682done
9683
9684for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
9685do :
9686  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9687ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9688if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9689  cat >>confdefs.h <<_ACEOF
9690#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9691_ACEOF
9692
9693fi
9694
9695done
9696
9697
9698for ac_header in resolv.h
9699do :
9700  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
9701    #ifdef HAVE_SYS_TYPES_H
9702    # include <sys/types.h>
9703    #endif
9704    #ifdef HAVE_NETINET_IN_H
9705    # include <netinet/in.h>
9706    #endif
9707    #ifdef HAVE_ARPA_NAMESER_H
9708    # include <arpa/nameser.h>
9709    #endif
9710
9711"
9712if test "x$ac_cv_header_resolv_h" = xyes; then :
9713  cat >>confdefs.h <<_ACEOF
9714#define HAVE_RESOLV_H 1
9715_ACEOF
9716
9717fi
9718
9719done
9720
9721
9722for ac_header in net/if_var.h
9723do :
9724  ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
9725    #if HAVE_SYS_TYPES_H
9726    # include <sys/types.h>
9727    #endif
9728    #ifdef HAVE_SYS_SOCKET_H
9729    # include <sys/socket.h>
9730    #endif
9731    #ifdef HAVE_NETINET_IN_H
9732    # include <netinet/in.h>
9733    #endif
9734    #ifdef HAVE_NET_IF_H
9735    # include <net/if.h>
9736    #endif
9737
9738"
9739if test "x$ac_cv_header_net_if_var_h" = xyes; then :
9740  cat >>confdefs.h <<_ACEOF
9741#define HAVE_NET_IF_VAR_H 1
9742_ACEOF
9743
9744fi
9745
9746done
9747
9748
9749for ac_header in netinet/ip.h netinet/in_var.h
9750do :
9751  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9752ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
9753    #ifdef HAVE_SYS_TYPES_H
9754    # include <sys/types.h>
9755    #endif
9756    #ifdef HAVE_SYS_SOCKET_H
9757    # include <sys/socket.h>
9758    #endif
9759    #ifdef HAVE_NET_IF_H
9760    # include <net/if.h>
9761    #endif
9762    #ifdef HAVE_NETINET_IN_H
9763    # include <netinet/in.h>
9764    #endif
9765    #ifdef HAVE_NET_IF_VAR_H
9766    # include <net/if_var.h>
9767    #endif
9768    #ifdef HAVE_NETINET_IN_SYSTM_H
9769    # include <netinet/in_systm.h>
9770    #endif
9771
9772"
9773if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9774  cat >>confdefs.h <<_ACEOF
9775#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9776_ACEOF
9777
9778fi
9779
9780done
9781
9782
9783# HMS: Do we need to check for -lsocket before or after these tests?
9784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
9785$as_echo_n "checking for library containing inet_pton... " >&6; }
9786if ${ac_cv_search_inet_pton+:} false; then :
9787  $as_echo_n "(cached) " >&6
9788else
9789  ac_func_search_save_LIBS=$LIBS
9790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791/* end confdefs.h.  */
9792
9793/* Override any GCC internal prototype to avoid an error.
9794   Use char because int might match the return type of a GCC
9795   builtin and then its argument prototype would still apply.  */
9796#ifdef __cplusplus
9797extern "C"
9798#endif
9799char inet_pton ();
9800int
9801main ()
9802{
9803return inet_pton ();
9804  ;
9805  return 0;
9806}
9807_ACEOF
9808for ac_lib in '' nsl; do
9809  if test -z "$ac_lib"; then
9810    ac_res="none required"
9811  else
9812    ac_res=-l$ac_lib
9813    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9814  fi
9815  if ac_fn_c_try_link "$LINENO"; then :
9816  ac_cv_search_inet_pton=$ac_res
9817fi
9818rm -f core conftest.err conftest.$ac_objext \
9819    conftest$ac_exeext
9820  if ${ac_cv_search_inet_pton+:} false; then :
9821  break
9822fi
9823done
9824if ${ac_cv_search_inet_pton+:} false; then :
9825
9826else
9827  ac_cv_search_inet_pton=no
9828fi
9829rm conftest.$ac_ext
9830LIBS=$ac_func_search_save_LIBS
9831fi
9832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
9833$as_echo "$ac_cv_search_inet_pton" >&6; }
9834ac_res=$ac_cv_search_inet_pton
9835if test "$ac_res" != no; then :
9836  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9837  case "$ac_cv_search_inet_pton" in
9838 'none required') ;;
9839 no) ;;
9840 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
9841 esac
9842
9843fi
9844
9845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
9846$as_echo_n "checking for library containing inet_ntop... " >&6; }
9847if ${ac_cv_search_inet_ntop+:} false; then :
9848  $as_echo_n "(cached) " >&6
9849else
9850  ac_func_search_save_LIBS=$LIBS
9851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852/* end confdefs.h.  */
9853
9854/* Override any GCC internal prototype to avoid an error.
9855   Use char because int might match the return type of a GCC
9856   builtin and then its argument prototype would still apply.  */
9857#ifdef __cplusplus
9858extern "C"
9859#endif
9860char inet_ntop ();
9861int
9862main ()
9863{
9864return inet_ntop ();
9865  ;
9866  return 0;
9867}
9868_ACEOF
9869for ac_lib in '' resolv; do
9870  if test -z "$ac_lib"; then
9871    ac_res="none required"
9872  else
9873    ac_res=-l$ac_lib
9874    LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
9875  fi
9876  if ac_fn_c_try_link "$LINENO"; then :
9877  ac_cv_search_inet_ntop=$ac_res
9878fi
9879rm -f core conftest.err conftest.$ac_objext \
9880    conftest$ac_exeext
9881  if ${ac_cv_search_inet_ntop+:} false; then :
9882  break
9883fi
9884done
9885if ${ac_cv_search_inet_ntop+:} false; then :
9886
9887else
9888  ac_cv_search_inet_ntop=no
9889fi
9890rm conftest.$ac_ext
9891LIBS=$ac_func_search_save_LIBS
9892fi
9893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
9894$as_echo "$ac_cv_search_inet_ntop" >&6; }
9895ac_res=$ac_cv_search_inet_ntop
9896if test "$ac_res" != no; then :
9897  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9898  case "$ac_cv_search_inet_ntop" in
9899 'none required') ;;
9900 no) ;;
9901 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
9902 esac
9903
9904fi
9905
9906
9907# [Bug 1628] On Solaris, we need -lxnet -lsocket.  Generalize this to
9908# avoid keying on the OS name:  If we find socket functions in
9909# libsocket, next try for them in libxnet without libsocket, if found,
9910# list both.  If we simply tested libxnet first, we would find the
9911# functions there and never add libsocket.  See also [Bug 660]
9912# http://bugs.ntp.org/show_bug.cgi?id=660#c9
9913saved_LIBS=$LIBS
9914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
9915$as_echo_n "checking for library containing setsockopt... " >&6; }
9916if ${ac_cv_search_setsockopt+:} false; then :
9917  $as_echo_n "(cached) " >&6
9918else
9919  ac_func_search_save_LIBS=$LIBS
9920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921/* end confdefs.h.  */
9922
9923/* Override any GCC internal prototype to avoid an error.
9924   Use char because int might match the return type of a GCC
9925   builtin and then its argument prototype would still apply.  */
9926#ifdef __cplusplus
9927extern "C"
9928#endif
9929char setsockopt ();
9930int
9931main ()
9932{
9933return setsockopt ();
9934  ;
9935  return 0;
9936}
9937_ACEOF
9938for ac_lib in '' socket; do
9939  if test -z "$ac_lib"; then
9940    ac_res="none required"
9941  else
9942    ac_res=-l$ac_lib
9943    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9944  fi
9945  if ac_fn_c_try_link "$LINENO"; then :
9946  ac_cv_search_setsockopt=$ac_res
9947fi
9948rm -f core conftest.err conftest.$ac_objext \
9949    conftest$ac_exeext
9950  if ${ac_cv_search_setsockopt+:} false; then :
9951  break
9952fi
9953done
9954if ${ac_cv_search_setsockopt+:} false; then :
9955
9956else
9957  ac_cv_search_setsockopt=no
9958fi
9959rm conftest.$ac_ext
9960LIBS=$ac_func_search_save_LIBS
9961fi
9962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
9963$as_echo "$ac_cv_search_setsockopt" >&6; }
9964ac_res=$ac_cv_search_setsockopt
9965if test "$ac_res" != no; then :
9966  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9967  case "$ac_cv_search_setsockopt" in
9968 'none required') ;;
9969 no) ;;
9970 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
9971 esac
9972
9973fi
9974
9975case "$ac_cv_search_setsockopt" in
9976 -lsocket)
9977    LIBS="$saved_LIBS"
9978    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
9979$as_echo_n "checking for library containing getsockopt... " >&6; }
9980if ${ac_cv_search_getsockopt+:} false; then :
9981  $as_echo_n "(cached) " >&6
9982else
9983  ac_func_search_save_LIBS=$LIBS
9984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985/* end confdefs.h.  */
9986
9987/* Override any GCC internal prototype to avoid an error.
9988   Use char because int might match the return type of a GCC
9989   builtin and then its argument prototype would still apply.  */
9990#ifdef __cplusplus
9991extern "C"
9992#endif
9993char getsockopt ();
9994int
9995main ()
9996{
9997return getsockopt ();
9998  ;
9999  return 0;
10000}
10001_ACEOF
10002for ac_lib in '' xnet; do
10003  if test -z "$ac_lib"; then
10004    ac_res="none required"
10005  else
10006    ac_res=-l$ac_lib
10007    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10008  fi
10009  if ac_fn_c_try_link "$LINENO"; then :
10010  ac_cv_search_getsockopt=$ac_res
10011fi
10012rm -f core conftest.err conftest.$ac_objext \
10013    conftest$ac_exeext
10014  if ${ac_cv_search_getsockopt+:} false; then :
10015  break
10016fi
10017done
10018if ${ac_cv_search_getsockopt+:} false; then :
10019
10020else
10021  ac_cv_search_getsockopt=no
10022fi
10023rm conftest.$ac_ext
10024LIBS=$ac_func_search_save_LIBS
10025fi
10026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
10027$as_echo "$ac_cv_search_getsockopt" >&6; }
10028ac_res=$ac_cv_search_getsockopt
10029if test "$ac_res" != no; then :
10030  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10031  case "$ac_cv_search_getsockopt" in
10032 'none required') ;;
10033 no) ;;
10034 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
10035 esac
10036
10037fi
10038
10039    # XXX Possible trouble here - reading the comments above and looking at the
10040    # code below I wonder if we'll add -lxnet when we don't need it.
10041    # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
10042    # there when it is not needed?
10043    case "$ac_cv_search_getsockopt" in
10044     -lxnet)
10045	LIBS="-lxnet -lsocket $saved_LIBS"
10046	;;
10047     *) LIBS="-lsocket $saved_LIBS"
10048	;;
10049    esac
10050    ;;
10051esac
10052{ saved_LIBS=; unset saved_LIBS;}
10053
10054# Bug 2427 - look for recvmsg here.
10055for ac_func in recvmsg
10056do :
10057  ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
10058if test "x$ac_cv_func_recvmsg" = xyes; then :
10059  cat >>confdefs.h <<_ACEOF
10060#define HAVE_RECVMSG 1
10061_ACEOF
10062
10063fi
10064done
10065
10066
10067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10068$as_echo_n "checking for inline... " >&6; }
10069if ${ac_cv_c_inline+:} false; then :
10070  $as_echo_n "(cached) " >&6
10071else
10072  ac_cv_c_inline=no
10073for ac_kw in inline __inline__ __inline; do
10074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075/* end confdefs.h.  */
10076#ifndef __cplusplus
10077typedef int foo_t;
10078static $ac_kw foo_t static_foo () {return 0; }
10079$ac_kw foo_t foo () {return 0; }
10080#endif
10081
10082_ACEOF
10083if ac_fn_c_try_compile "$LINENO"; then :
10084  ac_cv_c_inline=$ac_kw
10085fi
10086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10087  test "$ac_cv_c_inline" != no && break
10088done
10089
10090fi
10091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10092$as_echo "$ac_cv_c_inline" >&6; }
10093
10094case $ac_cv_c_inline in
10095  inline | yes) ;;
10096  *)
10097    case $ac_cv_c_inline in
10098      no) ac_val=;;
10099      *) ac_val=$ac_cv_c_inline;;
10100    esac
10101    cat >>confdefs.h <<_ACEOF
10102#ifndef __cplusplus
10103#define inline $ac_val
10104#endif
10105_ACEOF
10106    ;;
10107esac
10108
10109
10110case "$ac_cv_c_inline" in
10111 '')
10112    ;;
10113 *)
10114
10115$as_echo "#define HAVE_INLINE 1" >>confdefs.h
10116
10117
10118esac
10119
10120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
10121$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
10122if ${ac_cv_header_time+:} false; then :
10123  $as_echo_n "(cached) " >&6
10124else
10125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126/* end confdefs.h.  */
10127#include <sys/types.h>
10128#include <sys/time.h>
10129#include <time.h>
10130
10131int
10132main ()
10133{
10134if ((struct tm *) 0)
10135return 0;
10136  ;
10137  return 0;
10138}
10139_ACEOF
10140if ac_fn_c_try_compile "$LINENO"; then :
10141  ac_cv_header_time=yes
10142else
10143  ac_cv_header_time=no
10144fi
10145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10146fi
10147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
10148$as_echo "$ac_cv_header_time" >&6; }
10149if test $ac_cv_header_time = yes; then
10150
10151$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
10152
10153fi
10154
10155# The cast to long int works around a bug in the HP C Compiler
10156# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10157# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10158# This bug is HP SR number 8606223364.
10159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
10160$as_echo_n "checking size of time_t... " >&6; }
10161if ${ac_cv_sizeof_time_t+:} false; then :
10162  $as_echo_n "(cached) " >&6
10163else
10164  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
10165
10166else
10167  if test "$ac_cv_type_time_t" = yes; then
10168     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10170as_fn_error 77 "cannot compute sizeof (time_t)
10171See \`config.log' for more details" "$LINENO" 5; }
10172   else
10173     ac_cv_sizeof_time_t=0
10174   fi
10175fi
10176
10177fi
10178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
10179$as_echo "$ac_cv_sizeof_time_t" >&6; }
10180
10181
10182
10183cat >>confdefs.h <<_ACEOF
10184#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10185_ACEOF
10186
10187
10188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
10189$as_echo_n "checking whether char is unsigned... " >&6; }
10190if ${ac_cv_c_char_unsigned+:} false; then :
10191  $as_echo_n "(cached) " >&6
10192else
10193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194/* end confdefs.h.  */
10195$ac_includes_default
10196int
10197main ()
10198{
10199static int test_array [1 - 2 * !(((char) -1) < 0)];
10200test_array [0] = 0;
10201return test_array [0];
10202
10203  ;
10204  return 0;
10205}
10206_ACEOF
10207if ac_fn_c_try_compile "$LINENO"; then :
10208  ac_cv_c_char_unsigned=no
10209else
10210  ac_cv_c_char_unsigned=yes
10211fi
10212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10213fi
10214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
10215$as_echo "$ac_cv_c_char_unsigned" >&6; }
10216if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
10217  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
10218
10219fi
10220		# The cast to long int works around a bug in the HP C Compiler
10221# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10222# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10223# This bug is HP SR number 8606223364.
10224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
10225$as_echo_n "checking size of signed char... " >&6; }
10226if ${ac_cv_sizeof_signed_char+:} false; then :
10227  $as_echo_n "(cached) " >&6
10228else
10229  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"; then :
10230
10231else
10232  if test "$ac_cv_type_signed_char" = yes; then
10233     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10235as_fn_error 77 "cannot compute sizeof (signed char)
10236See \`config.log' for more details" "$LINENO" 5; }
10237   else
10238     ac_cv_sizeof_signed_char=0
10239   fi
10240fi
10241
10242fi
10243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
10244$as_echo "$ac_cv_sizeof_signed_char" >&6; }
10245
10246
10247
10248cat >>confdefs.h <<_ACEOF
10249#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
10250_ACEOF
10251
10252
10253ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
10254if test "x$ac_cv_type_s_char" = xyes; then :
10255
10256cat >>confdefs.h <<_ACEOF
10257#define HAVE_S_CHAR 1
10258_ACEOF
10259
10260
10261fi
10262ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
10263if test "x$ac_cv_type_long_long" = xyes; then :
10264
10265cat >>confdefs.h <<_ACEOF
10266#define HAVE_LONG_LONG 1
10267_ACEOF
10268
10269
10270fi
10271
10272# The cast to long int works around a bug in the HP C Compiler
10273# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10274# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10275# This bug is HP SR number 8606223364.
10276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10277$as_echo_n "checking size of short... " >&6; }
10278if ${ac_cv_sizeof_short+:} false; then :
10279  $as_echo_n "(cached) " >&6
10280else
10281  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
10282
10283else
10284  if test "$ac_cv_type_short" = yes; then
10285     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10287as_fn_error 77 "cannot compute sizeof (short)
10288See \`config.log' for more details" "$LINENO" 5; }
10289   else
10290     ac_cv_sizeof_short=0
10291   fi
10292fi
10293
10294fi
10295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10296$as_echo "$ac_cv_sizeof_short" >&6; }
10297
10298
10299
10300cat >>confdefs.h <<_ACEOF
10301#define SIZEOF_SHORT $ac_cv_sizeof_short
10302_ACEOF
10303
10304
10305# The cast to long int works around a bug in the HP C Compiler
10306# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10307# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10308# This bug is HP SR number 8606223364.
10309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10310$as_echo_n "checking size of int... " >&6; }
10311if ${ac_cv_sizeof_int+:} false; then :
10312  $as_echo_n "(cached) " >&6
10313else
10314  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10315
10316else
10317  if test "$ac_cv_type_int" = yes; then
10318     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10320as_fn_error 77 "cannot compute sizeof (int)
10321See \`config.log' for more details" "$LINENO" 5; }
10322   else
10323     ac_cv_sizeof_int=0
10324   fi
10325fi
10326
10327fi
10328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10329$as_echo "$ac_cv_sizeof_int" >&6; }
10330
10331
10332
10333cat >>confdefs.h <<_ACEOF
10334#define SIZEOF_INT $ac_cv_sizeof_int
10335_ACEOF
10336
10337
10338# The cast to long int works around a bug in the HP C Compiler
10339# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10340# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10341# This bug is HP SR number 8606223364.
10342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10343$as_echo_n "checking size of long... " >&6; }
10344if ${ac_cv_sizeof_long+:} false; then :
10345  $as_echo_n "(cached) " >&6
10346else
10347  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
10348
10349else
10350  if test "$ac_cv_type_long" = yes; then
10351     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10353as_fn_error 77 "cannot compute sizeof (long)
10354See \`config.log' for more details" "$LINENO" 5; }
10355   else
10356     ac_cv_sizeof_long=0
10357   fi
10358fi
10359
10360fi
10361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10362$as_echo "$ac_cv_sizeof_long" >&6; }
10363
10364
10365
10366cat >>confdefs.h <<_ACEOF
10367#define SIZEOF_LONG $ac_cv_sizeof_long
10368_ACEOF
10369
10370
10371
10372case "$ac_cv_type_long_long" in
10373 no)
10374    ;;
10375 *)
10376    # The cast to long int works around a bug in the HP C Compiler
10377# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10378# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10379# This bug is HP SR number 8606223364.
10380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10381$as_echo_n "checking size of long long... " >&6; }
10382if ${ac_cv_sizeof_long_long+:} false; then :
10383  $as_echo_n "(cached) " >&6
10384else
10385  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
10386
10387else
10388  if test "$ac_cv_type_long_long" = yes; then
10389     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10391as_fn_error 77 "cannot compute sizeof (long long)
10392See \`config.log' for more details" "$LINENO" 5; }
10393   else
10394     ac_cv_sizeof_long_long=0
10395   fi
10396fi
10397
10398fi
10399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10400$as_echo "$ac_cv_sizeof_long_long" >&6; }
10401
10402
10403
10404cat >>confdefs.h <<_ACEOF
10405#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10406_ACEOF
10407
10408
10409    ;;
10410esac
10411
10412case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
10413 *yes)
10414    # We have a typedef for s_char.  Might as well believe it...
10415    ;;
10416 no0no)
10417    # We have signed chars, can't say 'signed char', no s_char typedef.
10418
10419$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
10420
10421    ;;
10422 no1no)
10423    # We have signed chars, can say 'signed char', no s_char typedef.
10424
10425$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
10426
10427    ;;
10428 yes0no)
10429    # We have unsigned chars, can't say 'signed char', no s_char typedef.
10430    as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
10431    ;;
10432 yes1no)
10433    # We have unsigned chars, can say 'signed char', no s_char typedef.
10434
10435$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
10436
10437    ;;
10438esac
10439
10440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
10441$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
10442if ${ac_cv_type_uid_t+:} false; then :
10443  $as_echo_n "(cached) " >&6
10444else
10445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446/* end confdefs.h.  */
10447#include <sys/types.h>
10448
10449_ACEOF
10450if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10451  $EGREP "uid_t" >/dev/null 2>&1; then :
10452  ac_cv_type_uid_t=yes
10453else
10454  ac_cv_type_uid_t=no
10455fi
10456rm -f conftest*
10457
10458fi
10459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
10460$as_echo "$ac_cv_type_uid_t" >&6; }
10461if test $ac_cv_type_uid_t = no; then
10462
10463$as_echo "#define uid_t int" >>confdefs.h
10464
10465
10466$as_echo "#define gid_t int" >>confdefs.h
10467
10468fi
10469
10470
10471
10472
10473
10474
10475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
10476$as_echo_n "checking if we're including debugging code... " >&6; }
10477# Check whether --enable-debugging was given.
10478if test "${enable_debugging+set}" = set; then :
10479  enableval=$enable_debugging; ntp_ok=$enableval
10480else
10481  ntp_ok=yes
10482
10483fi
10484
10485case "$ntp_ok" in
10486 yes)
10487
10488$as_echo "#define DEBUG 1" >>confdefs.h
10489
10490esac
10491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
10492$as_echo "$ntp_ok" >&6; }
10493
10494
10495
10496# check if we can compile with pthreads
10497for ac_header in semaphore.h
10498do :
10499  ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
10500if test "x$ac_cv_header_semaphore_h" = xyes; then :
10501  cat >>confdefs.h <<_ACEOF
10502#define HAVE_SEMAPHORE_H 1
10503_ACEOF
10504
10505fi
10506
10507done
10508
10509for ac_func in socketpair
10510do :
10511  ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
10512if test "x$ac_cv_func_socketpair" = xyes; then :
10513  cat >>confdefs.h <<_ACEOF
10514#define HAVE_SOCKETPAIR 1
10515_ACEOF
10516
10517fi
10518done
10519
10520# Check whether --enable-thread-support was given.
10521if test "${enable_thread_support+set}" = set; then :
10522  enableval=$enable_thread_support;
10523else
10524  enable_thread_support=yes
10525
10526fi
10527
10528have_pthreads=no
10529case "$enable_thread_support" in
10530 yes)
10531    ol_found_pthreads=no
10532
10533
10534
10535ac_ext=c
10536ac_cpp='$CPP $CPPFLAGS'
10537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10539ac_compiler_gnu=$ac_cv_c_compiler_gnu
10540
10541# OpenLDAP --with-threads
10542
10543# Check whether --with-threads was given.
10544if test "${with_threads+set}" = set; then :
10545  withval=$with_threads;
10546	ol_arg=invalid
10547	for ol_val in auto nt posix mach pth lwp yes no manual  ; do
10548		if test "$withval" = "$ol_val" ; then
10549			ol_arg="$ol_val"
10550		fi
10551	done
10552	if test "$ol_arg" = "invalid" ; then
10553		as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
10554	fi
10555	ol_with_threads="$ol_arg"
10556
10557else
10558  	ol_with_threads="auto"
10559fi
10560# end --with-threads
10561
10562
10563case "$ol_with_threads$host" in
10564 auto*-*-solaris2.[0-6])
10565        ol_with_threads=no
10566    ;;
10567esac
10568
10569
10570ol_aix_threads=no
10571case "$host" in
10572*-*-aix*) 	if test -z "$CC" ; then
10573		case "$ol_with_threads" in
10574		auto | yes |  posix) ol_aix_threads=yes ;;
10575		esac
10576	fi
10577;;
10578esac
10579
10580if test $ol_aix_threads = yes ; then
10581	if test -z "${CC}" ; then
10582		for ac_prog in cc_r xlc_r cc
10583do
10584  # Extract the first word of "$ac_prog", so it can be a program name with args.
10585set dummy $ac_prog; ac_word=$2
10586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10587$as_echo_n "checking for $ac_word... " >&6; }
10588if ${ac_cv_prog_CC+:} false; then :
10589  $as_echo_n "(cached) " >&6
10590else
10591  if test -n "$CC"; then
10592  ac_cv_prog_CC="$CC" # Let the user override the test.
10593else
10594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10595for as_dir in $PATH
10596do
10597  IFS=$as_save_IFS
10598  test -z "$as_dir" && as_dir=.
10599    for ac_exec_ext in '' $ac_executable_extensions; do
10600  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10601    ac_cv_prog_CC="$ac_prog"
10602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10603    break 2
10604  fi
10605done
10606  done
10607IFS=$as_save_IFS
10608
10609fi
10610fi
10611CC=$ac_cv_prog_CC
10612if test -n "$CC"; then
10613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10614$as_echo "$CC" >&6; }
10615else
10616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10617$as_echo "no" >&6; }
10618fi
10619
10620
10621  test -n "$CC" && break
10622done
10623
10624
10625		if test "$CC" = cc ; then
10626						if test $ol_with_threads != auto ; then
10627				as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
10628			else
10629				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
10630$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
10631			fi
10632			ol_with_threads=no
10633  		fi
10634	fi
10635
10636	case ${CC} in cc_r | xlc_r)
10637		ol_with_threads=posix
10638		ol_cv_pthread_create=yes
10639		;;
10640	esac
10641fi
10642
10643ol_link_threads=no
10644# OpenLDAP --with-yielding_select
10645
10646# Check whether --with-yielding_select was given.
10647if test "${with_yielding_select+set}" = set; then :
10648  withval=$with_yielding_select;
10649	ol_arg=invalid
10650	for ol_val in auto yes no manual  ; do
10651		if test "$withval" = "$ol_val" ; then
10652			ol_arg="$ol_val"
10653		fi
10654	done
10655	if test "$ol_arg" = "invalid" ; then
10656		as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
10657	fi
10658	ol_with_yielding_select="$ol_arg"
10659
10660else
10661  	ol_with_yielding_select="auto"
10662fi
10663# end --with-yielding_select
10664
10665
10666case $ol_with_threads in auto | yes | nt)
10667
10668
10669	ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
10670if test "x$ac_cv_func__beginthread" = xyes; then :
10671
10672fi
10673
10674
10675	if test $ac_cv_func__beginthread = yes ; then
10676
10677$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
10678
10679		ol_cv_nt_threads=yes
10680	fi
10681
10682
10683	if test "$ol_cv_nt_threads" = yes ; then
10684		ol_link_threads=nt
10685		ol_with_threads=found
10686		ol_with_yielding_select=yes
10687
10688
10689$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
10690
10691
10692$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
10693
10694	fi
10695
10696	if test $ol_with_threads = nt ; then
10697		as_fn_error $? "could not locate NT Threads" "$LINENO" 5
10698	fi
10699	;;
10700esac
10701
10702case $ol_with_threads in auto | yes | posix)
10703
10704	for ac_header in pthread.h
10705do :
10706  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10707if test "x$ac_cv_header_pthread_h" = xyes; then :
10708  cat >>confdefs.h <<_ACEOF
10709#define HAVE_PTHREAD_H 1
10710_ACEOF
10711
10712fi
10713
10714done
10715
10716
10717	if test $ac_cv_header_pthread_h = yes ; then
10718		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
10719$as_echo_n "checking POSIX thread version... " >&6; }
10720if ${ol_cv_pthread_version+:} false; then :
10721  $as_echo_n "(cached) " >&6
10722else
10723
10724	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725/* end confdefs.h.  */
10726
10727#		include <pthread.h>
10728
10729int
10730main ()
10731{
10732
10733		int i = PTHREAD_CREATE_JOINABLE;
10734
10735  ;
10736  return 0;
10737}
10738_ACEOF
10739if ac_fn_c_try_compile "$LINENO"; then :
10740
10741	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10742/* end confdefs.h.  */
10743#include <pthread.h>
10744
10745_ACEOF
10746if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10747  $EGREP "pthread_detach" >/dev/null 2>&1; then :
10748  ol_cv_pthread_version=10
10749else
10750  ol_cv_pthread_version=8
10751fi
10752rm -f conftest*
10753
10754else
10755
10756	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757/* end confdefs.h.  */
10758
10759#		include <pthread.h>
10760#		ifdef PTHREAD_CREATE_UNDETACHED
10761		draft7
10762#		endif
10763
10764_ACEOF
10765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10766  $EGREP "draft7" >/dev/null 2>&1; then :
10767  ol_cv_pthread_version=7
10768else
10769
10770	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771/* end confdefs.h.  */
10772#include <pthread.h>
10773
10774_ACEOF
10775if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10776  $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
10777  ol_cv_pthread_version=6
10778else
10779
10780	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10781/* end confdefs.h.  */
10782
10783#		include <pthread.h>
10784#ifdef		PTHREAD_MUTEX_INITIALIZER
10785		draft5
10786#endif
10787
10788_ACEOF
10789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10790  $EGREP "draft5" >/dev/null 2>&1; then :
10791  ol_cv_pthread_version=5
10792else
10793  ol_cv_pthread_version=4
10794fi
10795rm -f conftest*
10796
10797fi
10798rm -f conftest*
10799
10800fi
10801rm -f conftest*
10802
10803fi
10804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10805
10806fi
10807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
10808$as_echo "$ol_cv_pthread_version" >&6; }
10809
10810
10811		if test $ol_cv_pthread_version != 0 ; then
10812
10813cat >>confdefs.h <<_ACEOF
10814#define HAVE_PTHREADS $ol_cv_pthread_version
10815_ACEOF
10816
10817		else
10818			as_fn_error $? "unknown pthread version" "$LINENO" 5
10819		fi
10820
10821		# consider threads found
10822		ol_with_threads=found
10823
10824
10825	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
10826$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
10827if ${ol_cv_header_linux_threads+:} false; then :
10828  $as_echo_n "(cached) " >&6
10829else
10830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831/* end confdefs.h.  */
10832#include <pthread.h>
10833_ACEOF
10834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10835  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
10836  ol_cv_header_linux_threads=yes
10837else
10838  ol_cv_header_linux_threads=no
10839fi
10840rm -f conftest*
10841
10842
10843fi
10844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
10845$as_echo "$ol_cv_header_linux_threads" >&6; }
10846	if test $ol_cv_header_linux_threads = yes; then
10847
10848$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
10849
10850	fi
10851
10852
10853	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
10854$as_echo_n "checking for GNU Pth pthread.h... " >&6; }
10855if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
10856  $as_echo_n "(cached) " >&6
10857else
10858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859/* end confdefs.h.  */
10860#include <pthread.h>
10861#ifdef _POSIX_THREAD_IS_GNU_PTH
10862	__gnu_pth__;
10863#endif
10864
10865_ACEOF
10866if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10867  $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
10868  ol_cv_header_gnu_pth_pthread_h=yes
10869else
10870  ol_cv_header_gnu_pth_pthread_h=no
10871fi
10872rm -f conftest*
10873
10874
10875fi
10876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
10877$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
10878
10879
10880		if test $ol_cv_header_gnu_pth_pthread_h = no ; then
10881			for ac_header in sched.h
10882do :
10883  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
10884if test "x$ac_cv_header_sched_h" = xyes; then :
10885  cat >>confdefs.h <<_ACEOF
10886#define HAVE_SCHED_H 1
10887_ACEOF
10888
10889fi
10890
10891done
10892
10893		fi
10894
10895
10896				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
10897$as_echo_n "checking for pthread_create in default libraries... " >&6; }
10898if ${ol_cv_pthread_create+:} false; then :
10899  $as_echo_n "(cached) " >&6
10900else
10901
10902			if test "$cross_compiling" = yes; then :
10903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10904/* end confdefs.h.  */
10905
10906/* pthread test headers */
10907#include <pthread.h>
10908#if HAVE_PTHREADS < 7
10909#include <errno.h>
10910#endif
10911#ifndef NULL
10912#define NULL (void*)0
10913#endif
10914
10915static void *task(p)
10916	void *p;
10917{
10918	return (void *) (p == NULL);
10919}
10920
10921int
10922main ()
10923{
10924
10925	/* pthread test function */
10926#ifndef PTHREAD_CREATE_DETACHED
10927#define	PTHREAD_CREATE_DETACHED	1
10928#endif
10929	pthread_t t;
10930	int status;
10931	int detach = PTHREAD_CREATE_DETACHED;
10932
10933#if HAVE_PTHREADS > 4
10934	/* Final pthreads */
10935	pthread_attr_t attr;
10936
10937	status = pthread_attr_init(&attr);
10938	if( status ) return status;
10939
10940#if HAVE_PTHREADS < 7
10941	status = pthread_attr_setdetachstate(&attr, &detach);
10942	if( status < 0 ) status = errno;
10943#else
10944	status = pthread_attr_setdetachstate(&attr, detach);
10945#endif
10946	if( status ) return status;
10947	status = pthread_create( &t, &attr, task, NULL );
10948#if HAVE_PTHREADS < 7
10949	if( status < 0 ) status = errno;
10950#endif
10951	if( status ) return status;
10952#else
10953	/* Draft 4 pthreads */
10954	status = pthread_create( &t, pthread_attr_default, task, NULL );
10955	if( status ) return errno;
10956
10957	/* give thread a chance to complete */
10958	/* it should remain joinable and hence detachable */
10959	sleep( 1 );
10960
10961	status = pthread_detach( &t );
10962	if( status ) return errno;
10963#endif
10964
10965#ifdef HAVE_LINUX_THREADS
10966	pthread_kill_other_threads_np();
10967#endif
10968
10969	return 0;
10970
10971  ;
10972  return 0;
10973}
10974_ACEOF
10975if ac_fn_c_try_link "$LINENO"; then :
10976  ol_cv_pthread_create=yes
10977else
10978  ol_cv_pthread_create=no
10979fi
10980rm -f core conftest.err conftest.$ac_objext \
10981    conftest$ac_exeext conftest.$ac_ext
10982else
10983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984/* end confdefs.h.  */
10985
10986
10987/* pthread test headers */
10988#include <pthread.h>
10989#if HAVE_PTHREADS < 7
10990#include <errno.h>
10991#endif
10992#ifndef NULL
10993#define NULL (void*)0
10994#endif
10995
10996static void *task(p)
10997	void *p;
10998{
10999	return (void *) (p == NULL);
11000}
11001
11002
11003int main(argc, argv)
11004	int argc;
11005	char **argv;
11006{
11007
11008	/* pthread test function */
11009#ifndef PTHREAD_CREATE_DETACHED
11010#define	PTHREAD_CREATE_DETACHED	1
11011#endif
11012	pthread_t t;
11013	int status;
11014	int detach = PTHREAD_CREATE_DETACHED;
11015
11016#if HAVE_PTHREADS > 4
11017	/* Final pthreads */
11018	pthread_attr_t attr;
11019
11020	status = pthread_attr_init(&attr);
11021	if( status ) return status;
11022
11023#if HAVE_PTHREADS < 7
11024	status = pthread_attr_setdetachstate(&attr, &detach);
11025	if( status < 0 ) status = errno;
11026#else
11027	status = pthread_attr_setdetachstate(&attr, detach);
11028#endif
11029	if( status ) return status;
11030	status = pthread_create( &t, &attr, task, NULL );
11031#if HAVE_PTHREADS < 7
11032	if( status < 0 ) status = errno;
11033#endif
11034	if( status ) return status;
11035#else
11036	/* Draft 4 pthreads */
11037	status = pthread_create( &t, pthread_attr_default, task, NULL );
11038	if( status ) return errno;
11039
11040	/* give thread a chance to complete */
11041	/* it should remain joinable and hence detachable */
11042	sleep( 1 );
11043
11044	status = pthread_detach( &t );
11045	if( status ) return errno;
11046#endif
11047
11048#ifdef HAVE_LINUX_THREADS
11049	pthread_kill_other_threads_np();
11050#endif
11051
11052	return 0;
11053
11054}
11055
11056_ACEOF
11057if ac_fn_c_try_run "$LINENO"; then :
11058  ol_cv_pthread_create=yes
11059else
11060  ol_cv_pthread_create=no
11061fi
11062rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11063  conftest.$ac_objext conftest.beam conftest.$ac_ext
11064fi
11065
11066fi
11067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
11068$as_echo "$ol_cv_pthread_create" >&6; }
11069
11070		if test $ol_cv_pthread_create != no ; then
11071			ol_link_threads=posix
11072			ol_link_pthreads=""
11073		fi
11074
11075		# Pthread try link: -kthread (ol_cv_pthread_kthread)
11076if test "$ol_link_threads" = no ; then
11077	# try -kthread
11078	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
11079$as_echo_n "checking for pthread link with -kthread... " >&6; }
11080if ${ol_cv_pthread_kthread+:} false; then :
11081  $as_echo_n "(cached) " >&6
11082else
11083
11084		# save the flags
11085		ol_LIBS="$LIBS"
11086		LIBS="-kthread $LIBS"
11087
11088		if test "$cross_compiling" = yes; then :
11089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11090/* end confdefs.h.  */
11091
11092/* pthread test headers */
11093#include <pthread.h>
11094#if HAVE_PTHREADS < 7
11095#include <errno.h>
11096#endif
11097#ifndef NULL
11098#define NULL (void*)0
11099#endif
11100
11101static void *task(p)
11102	void *p;
11103{
11104	return (void *) (p == NULL);
11105}
11106
11107int
11108main ()
11109{
11110
11111	/* pthread test function */
11112#ifndef PTHREAD_CREATE_DETACHED
11113#define	PTHREAD_CREATE_DETACHED	1
11114#endif
11115	pthread_t t;
11116	int status;
11117	int detach = PTHREAD_CREATE_DETACHED;
11118
11119#if HAVE_PTHREADS > 4
11120	/* Final pthreads */
11121	pthread_attr_t attr;
11122
11123	status = pthread_attr_init(&attr);
11124	if( status ) return status;
11125
11126#if HAVE_PTHREADS < 7
11127	status = pthread_attr_setdetachstate(&attr, &detach);
11128	if( status < 0 ) status = errno;
11129#else
11130	status = pthread_attr_setdetachstate(&attr, detach);
11131#endif
11132	if( status ) return status;
11133	status = pthread_create( &t, &attr, task, NULL );
11134#if HAVE_PTHREADS < 7
11135	if( status < 0 ) status = errno;
11136#endif
11137	if( status ) return status;
11138#else
11139	/* Draft 4 pthreads */
11140	status = pthread_create( &t, pthread_attr_default, task, NULL );
11141	if( status ) return errno;
11142
11143	/* give thread a chance to complete */
11144	/* it should remain joinable and hence detachable */
11145	sleep( 1 );
11146
11147	status = pthread_detach( &t );
11148	if( status ) return errno;
11149#endif
11150
11151#ifdef HAVE_LINUX_THREADS
11152	pthread_kill_other_threads_np();
11153#endif
11154
11155	return 0;
11156
11157  ;
11158  return 0;
11159}
11160_ACEOF
11161if ac_fn_c_try_link "$LINENO"; then :
11162  ol_cv_pthread_kthread=yes
11163else
11164  ol_cv_pthread_kthread=no
11165fi
11166rm -f core conftest.err conftest.$ac_objext \
11167    conftest$ac_exeext conftest.$ac_ext
11168else
11169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170/* end confdefs.h.  */
11171
11172
11173/* pthread test headers */
11174#include <pthread.h>
11175#if HAVE_PTHREADS < 7
11176#include <errno.h>
11177#endif
11178#ifndef NULL
11179#define NULL (void*)0
11180#endif
11181
11182static void *task(p)
11183	void *p;
11184{
11185	return (void *) (p == NULL);
11186}
11187
11188
11189int main(argc, argv)
11190	int argc;
11191	char **argv;
11192{
11193
11194	/* pthread test function */
11195#ifndef PTHREAD_CREATE_DETACHED
11196#define	PTHREAD_CREATE_DETACHED	1
11197#endif
11198	pthread_t t;
11199	int status;
11200	int detach = PTHREAD_CREATE_DETACHED;
11201
11202#if HAVE_PTHREADS > 4
11203	/* Final pthreads */
11204	pthread_attr_t attr;
11205
11206	status = pthread_attr_init(&attr);
11207	if( status ) return status;
11208
11209#if HAVE_PTHREADS < 7
11210	status = pthread_attr_setdetachstate(&attr, &detach);
11211	if( status < 0 ) status = errno;
11212#else
11213	status = pthread_attr_setdetachstate(&attr, detach);
11214#endif
11215	if( status ) return status;
11216	status = pthread_create( &t, &attr, task, NULL );
11217#if HAVE_PTHREADS < 7
11218	if( status < 0 ) status = errno;
11219#endif
11220	if( status ) return status;
11221#else
11222	/* Draft 4 pthreads */
11223	status = pthread_create( &t, pthread_attr_default, task, NULL );
11224	if( status ) return errno;
11225
11226	/* give thread a chance to complete */
11227	/* it should remain joinable and hence detachable */
11228	sleep( 1 );
11229
11230	status = pthread_detach( &t );
11231	if( status ) return errno;
11232#endif
11233
11234#ifdef HAVE_LINUX_THREADS
11235	pthread_kill_other_threads_np();
11236#endif
11237
11238	return 0;
11239
11240}
11241
11242_ACEOF
11243if ac_fn_c_try_run "$LINENO"; then :
11244  ol_cv_pthread_kthread=yes
11245else
11246  ol_cv_pthread_kthread=no
11247fi
11248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11249  conftest.$ac_objext conftest.beam conftest.$ac_ext
11250fi
11251
11252
11253		# restore the LIBS
11254		LIBS="$ol_LIBS"
11255
11256fi
11257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
11258$as_echo "$ol_cv_pthread_kthread" >&6; }
11259
11260	if test $ol_cv_pthread_kthread = yes ; then
11261		ol_link_pthreads="-kthread"
11262		ol_link_threads=posix
11263	fi
11264fi
11265
11266		# Pthread try link: -pthread (ol_cv_pthread_pthread)
11267if test "$ol_link_threads" = no ; then
11268	# try -pthread
11269	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
11270$as_echo_n "checking for pthread link with -pthread... " >&6; }
11271if ${ol_cv_pthread_pthread+:} false; then :
11272  $as_echo_n "(cached) " >&6
11273else
11274
11275		# save the flags
11276		ol_LIBS="$LIBS"
11277		LIBS="-pthread $LIBS"
11278
11279		if test "$cross_compiling" = yes; then :
11280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281/* end confdefs.h.  */
11282
11283/* pthread test headers */
11284#include <pthread.h>
11285#if HAVE_PTHREADS < 7
11286#include <errno.h>
11287#endif
11288#ifndef NULL
11289#define NULL (void*)0
11290#endif
11291
11292static void *task(p)
11293	void *p;
11294{
11295	return (void *) (p == NULL);
11296}
11297
11298int
11299main ()
11300{
11301
11302	/* pthread test function */
11303#ifndef PTHREAD_CREATE_DETACHED
11304#define	PTHREAD_CREATE_DETACHED	1
11305#endif
11306	pthread_t t;
11307	int status;
11308	int detach = PTHREAD_CREATE_DETACHED;
11309
11310#if HAVE_PTHREADS > 4
11311	/* Final pthreads */
11312	pthread_attr_t attr;
11313
11314	status = pthread_attr_init(&attr);
11315	if( status ) return status;
11316
11317#if HAVE_PTHREADS < 7
11318	status = pthread_attr_setdetachstate(&attr, &detach);
11319	if( status < 0 ) status = errno;
11320#else
11321	status = pthread_attr_setdetachstate(&attr, detach);
11322#endif
11323	if( status ) return status;
11324	status = pthread_create( &t, &attr, task, NULL );
11325#if HAVE_PTHREADS < 7
11326	if( status < 0 ) status = errno;
11327#endif
11328	if( status ) return status;
11329#else
11330	/* Draft 4 pthreads */
11331	status = pthread_create( &t, pthread_attr_default, task, NULL );
11332	if( status ) return errno;
11333
11334	/* give thread a chance to complete */
11335	/* it should remain joinable and hence detachable */
11336	sleep( 1 );
11337
11338	status = pthread_detach( &t );
11339	if( status ) return errno;
11340#endif
11341
11342#ifdef HAVE_LINUX_THREADS
11343	pthread_kill_other_threads_np();
11344#endif
11345
11346	return 0;
11347
11348  ;
11349  return 0;
11350}
11351_ACEOF
11352if ac_fn_c_try_link "$LINENO"; then :
11353  ol_cv_pthread_pthread=yes
11354else
11355  ol_cv_pthread_pthread=no
11356fi
11357rm -f core conftest.err conftest.$ac_objext \
11358    conftest$ac_exeext conftest.$ac_ext
11359else
11360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361/* end confdefs.h.  */
11362
11363
11364/* pthread test headers */
11365#include <pthread.h>
11366#if HAVE_PTHREADS < 7
11367#include <errno.h>
11368#endif
11369#ifndef NULL
11370#define NULL (void*)0
11371#endif
11372
11373static void *task(p)
11374	void *p;
11375{
11376	return (void *) (p == NULL);
11377}
11378
11379
11380int main(argc, argv)
11381	int argc;
11382	char **argv;
11383{
11384
11385	/* pthread test function */
11386#ifndef PTHREAD_CREATE_DETACHED
11387#define	PTHREAD_CREATE_DETACHED	1
11388#endif
11389	pthread_t t;
11390	int status;
11391	int detach = PTHREAD_CREATE_DETACHED;
11392
11393#if HAVE_PTHREADS > 4
11394	/* Final pthreads */
11395	pthread_attr_t attr;
11396
11397	status = pthread_attr_init(&attr);
11398	if( status ) return status;
11399
11400#if HAVE_PTHREADS < 7
11401	status = pthread_attr_setdetachstate(&attr, &detach);
11402	if( status < 0 ) status = errno;
11403#else
11404	status = pthread_attr_setdetachstate(&attr, detach);
11405#endif
11406	if( status ) return status;
11407	status = pthread_create( &t, &attr, task, NULL );
11408#if HAVE_PTHREADS < 7
11409	if( status < 0 ) status = errno;
11410#endif
11411	if( status ) return status;
11412#else
11413	/* Draft 4 pthreads */
11414	status = pthread_create( &t, pthread_attr_default, task, NULL );
11415	if( status ) return errno;
11416
11417	/* give thread a chance to complete */
11418	/* it should remain joinable and hence detachable */
11419	sleep( 1 );
11420
11421	status = pthread_detach( &t );
11422	if( status ) return errno;
11423#endif
11424
11425#ifdef HAVE_LINUX_THREADS
11426	pthread_kill_other_threads_np();
11427#endif
11428
11429	return 0;
11430
11431}
11432
11433_ACEOF
11434if ac_fn_c_try_run "$LINENO"; then :
11435  ol_cv_pthread_pthread=yes
11436else
11437  ol_cv_pthread_pthread=no
11438fi
11439rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11440  conftest.$ac_objext conftest.beam conftest.$ac_ext
11441fi
11442
11443
11444		# restore the LIBS
11445		LIBS="$ol_LIBS"
11446
11447fi
11448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
11449$as_echo "$ol_cv_pthread_pthread" >&6; }
11450
11451	if test $ol_cv_pthread_pthread = yes ; then
11452		ol_link_pthreads="-pthread"
11453		ol_link_threads=posix
11454	fi
11455fi
11456
11457		# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
11458if test "$ol_link_threads" = no ; then
11459	# try -pthreads
11460	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
11461$as_echo_n "checking for pthread link with -pthreads... " >&6; }
11462if ${ol_cv_pthread_pthreads+:} false; then :
11463  $as_echo_n "(cached) " >&6
11464else
11465
11466		# save the flags
11467		ol_LIBS="$LIBS"
11468		LIBS="-pthreads $LIBS"
11469
11470		if test "$cross_compiling" = yes; then :
11471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472/* end confdefs.h.  */
11473
11474/* pthread test headers */
11475#include <pthread.h>
11476#if HAVE_PTHREADS < 7
11477#include <errno.h>
11478#endif
11479#ifndef NULL
11480#define NULL (void*)0
11481#endif
11482
11483static void *task(p)
11484	void *p;
11485{
11486	return (void *) (p == NULL);
11487}
11488
11489int
11490main ()
11491{
11492
11493	/* pthread test function */
11494#ifndef PTHREAD_CREATE_DETACHED
11495#define	PTHREAD_CREATE_DETACHED	1
11496#endif
11497	pthread_t t;
11498	int status;
11499	int detach = PTHREAD_CREATE_DETACHED;
11500
11501#if HAVE_PTHREADS > 4
11502	/* Final pthreads */
11503	pthread_attr_t attr;
11504
11505	status = pthread_attr_init(&attr);
11506	if( status ) return status;
11507
11508#if HAVE_PTHREADS < 7
11509	status = pthread_attr_setdetachstate(&attr, &detach);
11510	if( status < 0 ) status = errno;
11511#else
11512	status = pthread_attr_setdetachstate(&attr, detach);
11513#endif
11514	if( status ) return status;
11515	status = pthread_create( &t, &attr, task, NULL );
11516#if HAVE_PTHREADS < 7
11517	if( status < 0 ) status = errno;
11518#endif
11519	if( status ) return status;
11520#else
11521	/* Draft 4 pthreads */
11522	status = pthread_create( &t, pthread_attr_default, task, NULL );
11523	if( status ) return errno;
11524
11525	/* give thread a chance to complete */
11526	/* it should remain joinable and hence detachable */
11527	sleep( 1 );
11528
11529	status = pthread_detach( &t );
11530	if( status ) return errno;
11531#endif
11532
11533#ifdef HAVE_LINUX_THREADS
11534	pthread_kill_other_threads_np();
11535#endif
11536
11537	return 0;
11538
11539  ;
11540  return 0;
11541}
11542_ACEOF
11543if ac_fn_c_try_link "$LINENO"; then :
11544  ol_cv_pthread_pthreads=yes
11545else
11546  ol_cv_pthread_pthreads=no
11547fi
11548rm -f core conftest.err conftest.$ac_objext \
11549    conftest$ac_exeext conftest.$ac_ext
11550else
11551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11552/* end confdefs.h.  */
11553
11554
11555/* pthread test headers */
11556#include <pthread.h>
11557#if HAVE_PTHREADS < 7
11558#include <errno.h>
11559#endif
11560#ifndef NULL
11561#define NULL (void*)0
11562#endif
11563
11564static void *task(p)
11565	void *p;
11566{
11567	return (void *) (p == NULL);
11568}
11569
11570
11571int main(argc, argv)
11572	int argc;
11573	char **argv;
11574{
11575
11576	/* pthread test function */
11577#ifndef PTHREAD_CREATE_DETACHED
11578#define	PTHREAD_CREATE_DETACHED	1
11579#endif
11580	pthread_t t;
11581	int status;
11582	int detach = PTHREAD_CREATE_DETACHED;
11583
11584#if HAVE_PTHREADS > 4
11585	/* Final pthreads */
11586	pthread_attr_t attr;
11587
11588	status = pthread_attr_init(&attr);
11589	if( status ) return status;
11590
11591#if HAVE_PTHREADS < 7
11592	status = pthread_attr_setdetachstate(&attr, &detach);
11593	if( status < 0 ) status = errno;
11594#else
11595	status = pthread_attr_setdetachstate(&attr, detach);
11596#endif
11597	if( status ) return status;
11598	status = pthread_create( &t, &attr, task, NULL );
11599#if HAVE_PTHREADS < 7
11600	if( status < 0 ) status = errno;
11601#endif
11602	if( status ) return status;
11603#else
11604	/* Draft 4 pthreads */
11605	status = pthread_create( &t, pthread_attr_default, task, NULL );
11606	if( status ) return errno;
11607
11608	/* give thread a chance to complete */
11609	/* it should remain joinable and hence detachable */
11610	sleep( 1 );
11611
11612	status = pthread_detach( &t );
11613	if( status ) return errno;
11614#endif
11615
11616#ifdef HAVE_LINUX_THREADS
11617	pthread_kill_other_threads_np();
11618#endif
11619
11620	return 0;
11621
11622}
11623
11624_ACEOF
11625if ac_fn_c_try_run "$LINENO"; then :
11626  ol_cv_pthread_pthreads=yes
11627else
11628  ol_cv_pthread_pthreads=no
11629fi
11630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11631  conftest.$ac_objext conftest.beam conftest.$ac_ext
11632fi
11633
11634
11635		# restore the LIBS
11636		LIBS="$ol_LIBS"
11637
11638fi
11639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
11640$as_echo "$ol_cv_pthread_pthreads" >&6; }
11641
11642	if test $ol_cv_pthread_pthreads = yes ; then
11643		ol_link_pthreads="-pthreads"
11644		ol_link_threads=posix
11645	fi
11646fi
11647
11648		# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
11649if test "$ol_link_threads" = no ; then
11650	# try -mthreads
11651	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
11652$as_echo_n "checking for pthread link with -mthreads... " >&6; }
11653if ${ol_cv_pthread_mthreads+:} false; then :
11654  $as_echo_n "(cached) " >&6
11655else
11656
11657		# save the flags
11658		ol_LIBS="$LIBS"
11659		LIBS="-mthreads $LIBS"
11660
11661		if test "$cross_compiling" = yes; then :
11662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663/* end confdefs.h.  */
11664
11665/* pthread test headers */
11666#include <pthread.h>
11667#if HAVE_PTHREADS < 7
11668#include <errno.h>
11669#endif
11670#ifndef NULL
11671#define NULL (void*)0
11672#endif
11673
11674static void *task(p)
11675	void *p;
11676{
11677	return (void *) (p == NULL);
11678}
11679
11680int
11681main ()
11682{
11683
11684	/* pthread test function */
11685#ifndef PTHREAD_CREATE_DETACHED
11686#define	PTHREAD_CREATE_DETACHED	1
11687#endif
11688	pthread_t t;
11689	int status;
11690	int detach = PTHREAD_CREATE_DETACHED;
11691
11692#if HAVE_PTHREADS > 4
11693	/* Final pthreads */
11694	pthread_attr_t attr;
11695
11696	status = pthread_attr_init(&attr);
11697	if( status ) return status;
11698
11699#if HAVE_PTHREADS < 7
11700	status = pthread_attr_setdetachstate(&attr, &detach);
11701	if( status < 0 ) status = errno;
11702#else
11703	status = pthread_attr_setdetachstate(&attr, detach);
11704#endif
11705	if( status ) return status;
11706	status = pthread_create( &t, &attr, task, NULL );
11707#if HAVE_PTHREADS < 7
11708	if( status < 0 ) status = errno;
11709#endif
11710	if( status ) return status;
11711#else
11712	/* Draft 4 pthreads */
11713	status = pthread_create( &t, pthread_attr_default, task, NULL );
11714	if( status ) return errno;
11715
11716	/* give thread a chance to complete */
11717	/* it should remain joinable and hence detachable */
11718	sleep( 1 );
11719
11720	status = pthread_detach( &t );
11721	if( status ) return errno;
11722#endif
11723
11724#ifdef HAVE_LINUX_THREADS
11725	pthread_kill_other_threads_np();
11726#endif
11727
11728	return 0;
11729
11730  ;
11731  return 0;
11732}
11733_ACEOF
11734if ac_fn_c_try_link "$LINENO"; then :
11735  ol_cv_pthread_mthreads=yes
11736else
11737  ol_cv_pthread_mthreads=no
11738fi
11739rm -f core conftest.err conftest.$ac_objext \
11740    conftest$ac_exeext conftest.$ac_ext
11741else
11742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743/* end confdefs.h.  */
11744
11745
11746/* pthread test headers */
11747#include <pthread.h>
11748#if HAVE_PTHREADS < 7
11749#include <errno.h>
11750#endif
11751#ifndef NULL
11752#define NULL (void*)0
11753#endif
11754
11755static void *task(p)
11756	void *p;
11757{
11758	return (void *) (p == NULL);
11759}
11760
11761
11762int main(argc, argv)
11763	int argc;
11764	char **argv;
11765{
11766
11767	/* pthread test function */
11768#ifndef PTHREAD_CREATE_DETACHED
11769#define	PTHREAD_CREATE_DETACHED	1
11770#endif
11771	pthread_t t;
11772	int status;
11773	int detach = PTHREAD_CREATE_DETACHED;
11774
11775#if HAVE_PTHREADS > 4
11776	/* Final pthreads */
11777	pthread_attr_t attr;
11778
11779	status = pthread_attr_init(&attr);
11780	if( status ) return status;
11781
11782#if HAVE_PTHREADS < 7
11783	status = pthread_attr_setdetachstate(&attr, &detach);
11784	if( status < 0 ) status = errno;
11785#else
11786	status = pthread_attr_setdetachstate(&attr, detach);
11787#endif
11788	if( status ) return status;
11789	status = pthread_create( &t, &attr, task, NULL );
11790#if HAVE_PTHREADS < 7
11791	if( status < 0 ) status = errno;
11792#endif
11793	if( status ) return status;
11794#else
11795	/* Draft 4 pthreads */
11796	status = pthread_create( &t, pthread_attr_default, task, NULL );
11797	if( status ) return errno;
11798
11799	/* give thread a chance to complete */
11800	/* it should remain joinable and hence detachable */
11801	sleep( 1 );
11802
11803	status = pthread_detach( &t );
11804	if( status ) return errno;
11805#endif
11806
11807#ifdef HAVE_LINUX_THREADS
11808	pthread_kill_other_threads_np();
11809#endif
11810
11811	return 0;
11812
11813}
11814
11815_ACEOF
11816if ac_fn_c_try_run "$LINENO"; then :
11817  ol_cv_pthread_mthreads=yes
11818else
11819  ol_cv_pthread_mthreads=no
11820fi
11821rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11822  conftest.$ac_objext conftest.beam conftest.$ac_ext
11823fi
11824
11825
11826		# restore the LIBS
11827		LIBS="$ol_LIBS"
11828
11829fi
11830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
11831$as_echo "$ol_cv_pthread_mthreads" >&6; }
11832
11833	if test $ol_cv_pthread_mthreads = yes ; then
11834		ol_link_pthreads="-mthreads"
11835		ol_link_threads=posix
11836	fi
11837fi
11838
11839		# Pthread try link: -thread (ol_cv_pthread_thread)
11840if test "$ol_link_threads" = no ; then
11841	# try -thread
11842	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
11843$as_echo_n "checking for pthread link with -thread... " >&6; }
11844if ${ol_cv_pthread_thread+:} false; then :
11845  $as_echo_n "(cached) " >&6
11846else
11847
11848		# save the flags
11849		ol_LIBS="$LIBS"
11850		LIBS="-thread $LIBS"
11851
11852		if test "$cross_compiling" = yes; then :
11853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11854/* end confdefs.h.  */
11855
11856/* pthread test headers */
11857#include <pthread.h>
11858#if HAVE_PTHREADS < 7
11859#include <errno.h>
11860#endif
11861#ifndef NULL
11862#define NULL (void*)0
11863#endif
11864
11865static void *task(p)
11866	void *p;
11867{
11868	return (void *) (p == NULL);
11869}
11870
11871int
11872main ()
11873{
11874
11875	/* pthread test function */
11876#ifndef PTHREAD_CREATE_DETACHED
11877#define	PTHREAD_CREATE_DETACHED	1
11878#endif
11879	pthread_t t;
11880	int status;
11881	int detach = PTHREAD_CREATE_DETACHED;
11882
11883#if HAVE_PTHREADS > 4
11884	/* Final pthreads */
11885	pthread_attr_t attr;
11886
11887	status = pthread_attr_init(&attr);
11888	if( status ) return status;
11889
11890#if HAVE_PTHREADS < 7
11891	status = pthread_attr_setdetachstate(&attr, &detach);
11892	if( status < 0 ) status = errno;
11893#else
11894	status = pthread_attr_setdetachstate(&attr, detach);
11895#endif
11896	if( status ) return status;
11897	status = pthread_create( &t, &attr, task, NULL );
11898#if HAVE_PTHREADS < 7
11899	if( status < 0 ) status = errno;
11900#endif
11901	if( status ) return status;
11902#else
11903	/* Draft 4 pthreads */
11904	status = pthread_create( &t, pthread_attr_default, task, NULL );
11905	if( status ) return errno;
11906
11907	/* give thread a chance to complete */
11908	/* it should remain joinable and hence detachable */
11909	sleep( 1 );
11910
11911	status = pthread_detach( &t );
11912	if( status ) return errno;
11913#endif
11914
11915#ifdef HAVE_LINUX_THREADS
11916	pthread_kill_other_threads_np();
11917#endif
11918
11919	return 0;
11920
11921  ;
11922  return 0;
11923}
11924_ACEOF
11925if ac_fn_c_try_link "$LINENO"; then :
11926  ol_cv_pthread_thread=yes
11927else
11928  ol_cv_pthread_thread=no
11929fi
11930rm -f core conftest.err conftest.$ac_objext \
11931    conftest$ac_exeext conftest.$ac_ext
11932else
11933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11934/* end confdefs.h.  */
11935
11936
11937/* pthread test headers */
11938#include <pthread.h>
11939#if HAVE_PTHREADS < 7
11940#include <errno.h>
11941#endif
11942#ifndef NULL
11943#define NULL (void*)0
11944#endif
11945
11946static void *task(p)
11947	void *p;
11948{
11949	return (void *) (p == NULL);
11950}
11951
11952
11953int main(argc, argv)
11954	int argc;
11955	char **argv;
11956{
11957
11958	/* pthread test function */
11959#ifndef PTHREAD_CREATE_DETACHED
11960#define	PTHREAD_CREATE_DETACHED	1
11961#endif
11962	pthread_t t;
11963	int status;
11964	int detach = PTHREAD_CREATE_DETACHED;
11965
11966#if HAVE_PTHREADS > 4
11967	/* Final pthreads */
11968	pthread_attr_t attr;
11969
11970	status = pthread_attr_init(&attr);
11971	if( status ) return status;
11972
11973#if HAVE_PTHREADS < 7
11974	status = pthread_attr_setdetachstate(&attr, &detach);
11975	if( status < 0 ) status = errno;
11976#else
11977	status = pthread_attr_setdetachstate(&attr, detach);
11978#endif
11979	if( status ) return status;
11980	status = pthread_create( &t, &attr, task, NULL );
11981#if HAVE_PTHREADS < 7
11982	if( status < 0 ) status = errno;
11983#endif
11984	if( status ) return status;
11985#else
11986	/* Draft 4 pthreads */
11987	status = pthread_create( &t, pthread_attr_default, task, NULL );
11988	if( status ) return errno;
11989
11990	/* give thread a chance to complete */
11991	/* it should remain joinable and hence detachable */
11992	sleep( 1 );
11993
11994	status = pthread_detach( &t );
11995	if( status ) return errno;
11996#endif
11997
11998#ifdef HAVE_LINUX_THREADS
11999	pthread_kill_other_threads_np();
12000#endif
12001
12002	return 0;
12003
12004}
12005
12006_ACEOF
12007if ac_fn_c_try_run "$LINENO"; then :
12008  ol_cv_pthread_thread=yes
12009else
12010  ol_cv_pthread_thread=no
12011fi
12012rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12013  conftest.$ac_objext conftest.beam conftest.$ac_ext
12014fi
12015
12016
12017		# restore the LIBS
12018		LIBS="$ol_LIBS"
12019
12020fi
12021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
12022$as_echo "$ol_cv_pthread_thread" >&6; }
12023
12024	if test $ol_cv_pthread_thread = yes ; then
12025		ol_link_pthreads="-thread"
12026		ol_link_threads=posix
12027	fi
12028fi
12029
12030
12031		# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12032if test "$ol_link_threads" = no ; then
12033	# try -lpthread -lmach -lexc -lc_r
12034	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12035$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
12036if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
12037  $as_echo_n "(cached) " >&6
12038else
12039
12040		# save the flags
12041		ol_LIBS="$LIBS"
12042		LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12043
12044		if test "$cross_compiling" = yes; then :
12045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046/* end confdefs.h.  */
12047
12048/* pthread test headers */
12049#include <pthread.h>
12050#if HAVE_PTHREADS < 7
12051#include <errno.h>
12052#endif
12053#ifndef NULL
12054#define NULL (void*)0
12055#endif
12056
12057static void *task(p)
12058	void *p;
12059{
12060	return (void *) (p == NULL);
12061}
12062
12063int
12064main ()
12065{
12066
12067	/* pthread test function */
12068#ifndef PTHREAD_CREATE_DETACHED
12069#define	PTHREAD_CREATE_DETACHED	1
12070#endif
12071	pthread_t t;
12072	int status;
12073	int detach = PTHREAD_CREATE_DETACHED;
12074
12075#if HAVE_PTHREADS > 4
12076	/* Final pthreads */
12077	pthread_attr_t attr;
12078
12079	status = pthread_attr_init(&attr);
12080	if( status ) return status;
12081
12082#if HAVE_PTHREADS < 7
12083	status = pthread_attr_setdetachstate(&attr, &detach);
12084	if( status < 0 ) status = errno;
12085#else
12086	status = pthread_attr_setdetachstate(&attr, detach);
12087#endif
12088	if( status ) return status;
12089	status = pthread_create( &t, &attr, task, NULL );
12090#if HAVE_PTHREADS < 7
12091	if( status < 0 ) status = errno;
12092#endif
12093	if( status ) return status;
12094#else
12095	/* Draft 4 pthreads */
12096	status = pthread_create( &t, pthread_attr_default, task, NULL );
12097	if( status ) return errno;
12098
12099	/* give thread a chance to complete */
12100	/* it should remain joinable and hence detachable */
12101	sleep( 1 );
12102
12103	status = pthread_detach( &t );
12104	if( status ) return errno;
12105#endif
12106
12107#ifdef HAVE_LINUX_THREADS
12108	pthread_kill_other_threads_np();
12109#endif
12110
12111	return 0;
12112
12113  ;
12114  return 0;
12115}
12116_ACEOF
12117if ac_fn_c_try_link "$LINENO"; then :
12118  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12119else
12120  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12121fi
12122rm -f core conftest.err conftest.$ac_objext \
12123    conftest$ac_exeext conftest.$ac_ext
12124else
12125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126/* end confdefs.h.  */
12127
12128
12129/* pthread test headers */
12130#include <pthread.h>
12131#if HAVE_PTHREADS < 7
12132#include <errno.h>
12133#endif
12134#ifndef NULL
12135#define NULL (void*)0
12136#endif
12137
12138static void *task(p)
12139	void *p;
12140{
12141	return (void *) (p == NULL);
12142}
12143
12144
12145int main(argc, argv)
12146	int argc;
12147	char **argv;
12148{
12149
12150	/* pthread test function */
12151#ifndef PTHREAD_CREATE_DETACHED
12152#define	PTHREAD_CREATE_DETACHED	1
12153#endif
12154	pthread_t t;
12155	int status;
12156	int detach = PTHREAD_CREATE_DETACHED;
12157
12158#if HAVE_PTHREADS > 4
12159	/* Final pthreads */
12160	pthread_attr_t attr;
12161
12162	status = pthread_attr_init(&attr);
12163	if( status ) return status;
12164
12165#if HAVE_PTHREADS < 7
12166	status = pthread_attr_setdetachstate(&attr, &detach);
12167	if( status < 0 ) status = errno;
12168#else
12169	status = pthread_attr_setdetachstate(&attr, detach);
12170#endif
12171	if( status ) return status;
12172	status = pthread_create( &t, &attr, task, NULL );
12173#if HAVE_PTHREADS < 7
12174	if( status < 0 ) status = errno;
12175#endif
12176	if( status ) return status;
12177#else
12178	/* Draft 4 pthreads */
12179	status = pthread_create( &t, pthread_attr_default, task, NULL );
12180	if( status ) return errno;
12181
12182	/* give thread a chance to complete */
12183	/* it should remain joinable and hence detachable */
12184	sleep( 1 );
12185
12186	status = pthread_detach( &t );
12187	if( status ) return errno;
12188#endif
12189
12190#ifdef HAVE_LINUX_THREADS
12191	pthread_kill_other_threads_np();
12192#endif
12193
12194	return 0;
12195
12196}
12197
12198_ACEOF
12199if ac_fn_c_try_run "$LINENO"; then :
12200  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12201else
12202  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12203fi
12204rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12205  conftest.$ac_objext conftest.beam conftest.$ac_ext
12206fi
12207
12208
12209		# restore the LIBS
12210		LIBS="$ol_LIBS"
12211
12212fi
12213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
12214$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
12215
12216	if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12217		ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12218		ol_link_threads=posix
12219	fi
12220fi
12221
12222		# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12223if test "$ol_link_threads" = no ; then
12224	# try -lpthread -lmach -lexc
12225	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
12226$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
12227if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
12228  $as_echo_n "(cached) " >&6
12229else
12230
12231		# save the flags
12232		ol_LIBS="$LIBS"
12233		LIBS="-lpthread -lmach -lexc $LIBS"
12234
12235		if test "$cross_compiling" = yes; then :
12236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237/* end confdefs.h.  */
12238
12239/* pthread test headers */
12240#include <pthread.h>
12241#if HAVE_PTHREADS < 7
12242#include <errno.h>
12243#endif
12244#ifndef NULL
12245#define NULL (void*)0
12246#endif
12247
12248static void *task(p)
12249	void *p;
12250{
12251	return (void *) (p == NULL);
12252}
12253
12254int
12255main ()
12256{
12257
12258	/* pthread test function */
12259#ifndef PTHREAD_CREATE_DETACHED
12260#define	PTHREAD_CREATE_DETACHED	1
12261#endif
12262	pthread_t t;
12263	int status;
12264	int detach = PTHREAD_CREATE_DETACHED;
12265
12266#if HAVE_PTHREADS > 4
12267	/* Final pthreads */
12268	pthread_attr_t attr;
12269
12270	status = pthread_attr_init(&attr);
12271	if( status ) return status;
12272
12273#if HAVE_PTHREADS < 7
12274	status = pthread_attr_setdetachstate(&attr, &detach);
12275	if( status < 0 ) status = errno;
12276#else
12277	status = pthread_attr_setdetachstate(&attr, detach);
12278#endif
12279	if( status ) return status;
12280	status = pthread_create( &t, &attr, task, NULL );
12281#if HAVE_PTHREADS < 7
12282	if( status < 0 ) status = errno;
12283#endif
12284	if( status ) return status;
12285#else
12286	/* Draft 4 pthreads */
12287	status = pthread_create( &t, pthread_attr_default, task, NULL );
12288	if( status ) return errno;
12289
12290	/* give thread a chance to complete */
12291	/* it should remain joinable and hence detachable */
12292	sleep( 1 );
12293
12294	status = pthread_detach( &t );
12295	if( status ) return errno;
12296#endif
12297
12298#ifdef HAVE_LINUX_THREADS
12299	pthread_kill_other_threads_np();
12300#endif
12301
12302	return 0;
12303
12304  ;
12305  return 0;
12306}
12307_ACEOF
12308if ac_fn_c_try_link "$LINENO"; then :
12309  ol_cv_pthread_lpthread_lmach_lexc=yes
12310else
12311  ol_cv_pthread_lpthread_lmach_lexc=no
12312fi
12313rm -f core conftest.err conftest.$ac_objext \
12314    conftest$ac_exeext conftest.$ac_ext
12315else
12316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12317/* end confdefs.h.  */
12318
12319
12320/* pthread test headers */
12321#include <pthread.h>
12322#if HAVE_PTHREADS < 7
12323#include <errno.h>
12324#endif
12325#ifndef NULL
12326#define NULL (void*)0
12327#endif
12328
12329static void *task(p)
12330	void *p;
12331{
12332	return (void *) (p == NULL);
12333}
12334
12335
12336int main(argc, argv)
12337	int argc;
12338	char **argv;
12339{
12340
12341	/* pthread test function */
12342#ifndef PTHREAD_CREATE_DETACHED
12343#define	PTHREAD_CREATE_DETACHED	1
12344#endif
12345	pthread_t t;
12346	int status;
12347	int detach = PTHREAD_CREATE_DETACHED;
12348
12349#if HAVE_PTHREADS > 4
12350	/* Final pthreads */
12351	pthread_attr_t attr;
12352
12353	status = pthread_attr_init(&attr);
12354	if( status ) return status;
12355
12356#if HAVE_PTHREADS < 7
12357	status = pthread_attr_setdetachstate(&attr, &detach);
12358	if( status < 0 ) status = errno;
12359#else
12360	status = pthread_attr_setdetachstate(&attr, detach);
12361#endif
12362	if( status ) return status;
12363	status = pthread_create( &t, &attr, task, NULL );
12364#if HAVE_PTHREADS < 7
12365	if( status < 0 ) status = errno;
12366#endif
12367	if( status ) return status;
12368#else
12369	/* Draft 4 pthreads */
12370	status = pthread_create( &t, pthread_attr_default, task, NULL );
12371	if( status ) return errno;
12372
12373	/* give thread a chance to complete */
12374	/* it should remain joinable and hence detachable */
12375	sleep( 1 );
12376
12377	status = pthread_detach( &t );
12378	if( status ) return errno;
12379#endif
12380
12381#ifdef HAVE_LINUX_THREADS
12382	pthread_kill_other_threads_np();
12383#endif
12384
12385	return 0;
12386
12387}
12388
12389_ACEOF
12390if ac_fn_c_try_run "$LINENO"; then :
12391  ol_cv_pthread_lpthread_lmach_lexc=yes
12392else
12393  ol_cv_pthread_lpthread_lmach_lexc=no
12394fi
12395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12396  conftest.$ac_objext conftest.beam conftest.$ac_ext
12397fi
12398
12399
12400		# restore the LIBS
12401		LIBS="$ol_LIBS"
12402
12403fi
12404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
12405$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
12406
12407	if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
12408		ol_link_pthreads="-lpthread -lmach -lexc"
12409		ol_link_threads=posix
12410	fi
12411fi
12412
12413
12414		# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
12415if test "$ol_link_threads" = no ; then
12416	# try -lpthread -Wl,-woff,85
12417	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
12418$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
12419if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
12420  $as_echo_n "(cached) " >&6
12421else
12422
12423		# save the flags
12424		ol_LIBS="$LIBS"
12425		LIBS="-lpthread -Wl,-woff,85 $LIBS"
12426
12427		if test "$cross_compiling" = yes; then :
12428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429/* end confdefs.h.  */
12430
12431/* pthread test headers */
12432#include <pthread.h>
12433#if HAVE_PTHREADS < 7
12434#include <errno.h>
12435#endif
12436#ifndef NULL
12437#define NULL (void*)0
12438#endif
12439
12440static void *task(p)
12441	void *p;
12442{
12443	return (void *) (p == NULL);
12444}
12445
12446int
12447main ()
12448{
12449
12450	/* pthread test function */
12451#ifndef PTHREAD_CREATE_DETACHED
12452#define	PTHREAD_CREATE_DETACHED	1
12453#endif
12454	pthread_t t;
12455	int status;
12456	int detach = PTHREAD_CREATE_DETACHED;
12457
12458#if HAVE_PTHREADS > 4
12459	/* Final pthreads */
12460	pthread_attr_t attr;
12461
12462	status = pthread_attr_init(&attr);
12463	if( status ) return status;
12464
12465#if HAVE_PTHREADS < 7
12466	status = pthread_attr_setdetachstate(&attr, &detach);
12467	if( status < 0 ) status = errno;
12468#else
12469	status = pthread_attr_setdetachstate(&attr, detach);
12470#endif
12471	if( status ) return status;
12472	status = pthread_create( &t, &attr, task, NULL );
12473#if HAVE_PTHREADS < 7
12474	if( status < 0 ) status = errno;
12475#endif
12476	if( status ) return status;
12477#else
12478	/* Draft 4 pthreads */
12479	status = pthread_create( &t, pthread_attr_default, task, NULL );
12480	if( status ) return errno;
12481
12482	/* give thread a chance to complete */
12483	/* it should remain joinable and hence detachable */
12484	sleep( 1 );
12485
12486	status = pthread_detach( &t );
12487	if( status ) return errno;
12488#endif
12489
12490#ifdef HAVE_LINUX_THREADS
12491	pthread_kill_other_threads_np();
12492#endif
12493
12494	return 0;
12495
12496  ;
12497  return 0;
12498}
12499_ACEOF
12500if ac_fn_c_try_link "$LINENO"; then :
12501  ol_cv_pthread_lib_lpthread_woff=yes
12502else
12503  ol_cv_pthread_lib_lpthread_woff=no
12504fi
12505rm -f core conftest.err conftest.$ac_objext \
12506    conftest$ac_exeext conftest.$ac_ext
12507else
12508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509/* end confdefs.h.  */
12510
12511
12512/* pthread test headers */
12513#include <pthread.h>
12514#if HAVE_PTHREADS < 7
12515#include <errno.h>
12516#endif
12517#ifndef NULL
12518#define NULL (void*)0
12519#endif
12520
12521static void *task(p)
12522	void *p;
12523{
12524	return (void *) (p == NULL);
12525}
12526
12527
12528int main(argc, argv)
12529	int argc;
12530	char **argv;
12531{
12532
12533	/* pthread test function */
12534#ifndef PTHREAD_CREATE_DETACHED
12535#define	PTHREAD_CREATE_DETACHED	1
12536#endif
12537	pthread_t t;
12538	int status;
12539	int detach = PTHREAD_CREATE_DETACHED;
12540
12541#if HAVE_PTHREADS > 4
12542	/* Final pthreads */
12543	pthread_attr_t attr;
12544
12545	status = pthread_attr_init(&attr);
12546	if( status ) return status;
12547
12548#if HAVE_PTHREADS < 7
12549	status = pthread_attr_setdetachstate(&attr, &detach);
12550	if( status < 0 ) status = errno;
12551#else
12552	status = pthread_attr_setdetachstate(&attr, detach);
12553#endif
12554	if( status ) return status;
12555	status = pthread_create( &t, &attr, task, NULL );
12556#if HAVE_PTHREADS < 7
12557	if( status < 0 ) status = errno;
12558#endif
12559	if( status ) return status;
12560#else
12561	/* Draft 4 pthreads */
12562	status = pthread_create( &t, pthread_attr_default, task, NULL );
12563	if( status ) return errno;
12564
12565	/* give thread a chance to complete */
12566	/* it should remain joinable and hence detachable */
12567	sleep( 1 );
12568
12569	status = pthread_detach( &t );
12570	if( status ) return errno;
12571#endif
12572
12573#ifdef HAVE_LINUX_THREADS
12574	pthread_kill_other_threads_np();
12575#endif
12576
12577	return 0;
12578
12579}
12580
12581_ACEOF
12582if ac_fn_c_try_run "$LINENO"; then :
12583  ol_cv_pthread_lib_lpthread_woff=yes
12584else
12585  ol_cv_pthread_lib_lpthread_woff=no
12586fi
12587rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12588  conftest.$ac_objext conftest.beam conftest.$ac_ext
12589fi
12590
12591
12592		# restore the LIBS
12593		LIBS="$ol_LIBS"
12594
12595fi
12596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
12597$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
12598
12599	if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
12600		ol_link_pthreads="-lpthread -Wl,-woff,85"
12601		ol_link_threads=posix
12602	fi
12603fi
12604
12605
12606		# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
12607if test "$ol_link_threads" = no ; then
12608	# try -lpthread
12609	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
12610$as_echo_n "checking for pthread link with -lpthread... " >&6; }
12611if ${ol_cv_pthread_lpthread+:} false; then :
12612  $as_echo_n "(cached) " >&6
12613else
12614
12615		# save the flags
12616		ol_LIBS="$LIBS"
12617		LIBS="-lpthread $LIBS"
12618
12619		if test "$cross_compiling" = yes; then :
12620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621/* end confdefs.h.  */
12622
12623/* pthread test headers */
12624#include <pthread.h>
12625#if HAVE_PTHREADS < 7
12626#include <errno.h>
12627#endif
12628#ifndef NULL
12629#define NULL (void*)0
12630#endif
12631
12632static void *task(p)
12633	void *p;
12634{
12635	return (void *) (p == NULL);
12636}
12637
12638int
12639main ()
12640{
12641
12642	/* pthread test function */
12643#ifndef PTHREAD_CREATE_DETACHED
12644#define	PTHREAD_CREATE_DETACHED	1
12645#endif
12646	pthread_t t;
12647	int status;
12648	int detach = PTHREAD_CREATE_DETACHED;
12649
12650#if HAVE_PTHREADS > 4
12651	/* Final pthreads */
12652	pthread_attr_t attr;
12653
12654	status = pthread_attr_init(&attr);
12655	if( status ) return status;
12656
12657#if HAVE_PTHREADS < 7
12658	status = pthread_attr_setdetachstate(&attr, &detach);
12659	if( status < 0 ) status = errno;
12660#else
12661	status = pthread_attr_setdetachstate(&attr, detach);
12662#endif
12663	if( status ) return status;
12664	status = pthread_create( &t, &attr, task, NULL );
12665#if HAVE_PTHREADS < 7
12666	if( status < 0 ) status = errno;
12667#endif
12668	if( status ) return status;
12669#else
12670	/* Draft 4 pthreads */
12671	status = pthread_create( &t, pthread_attr_default, task, NULL );
12672	if( status ) return errno;
12673
12674	/* give thread a chance to complete */
12675	/* it should remain joinable and hence detachable */
12676	sleep( 1 );
12677
12678	status = pthread_detach( &t );
12679	if( status ) return errno;
12680#endif
12681
12682#ifdef HAVE_LINUX_THREADS
12683	pthread_kill_other_threads_np();
12684#endif
12685
12686	return 0;
12687
12688  ;
12689  return 0;
12690}
12691_ACEOF
12692if ac_fn_c_try_link "$LINENO"; then :
12693  ol_cv_pthread_lpthread=yes
12694else
12695  ol_cv_pthread_lpthread=no
12696fi
12697rm -f core conftest.err conftest.$ac_objext \
12698    conftest$ac_exeext conftest.$ac_ext
12699else
12700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701/* end confdefs.h.  */
12702
12703
12704/* pthread test headers */
12705#include <pthread.h>
12706#if HAVE_PTHREADS < 7
12707#include <errno.h>
12708#endif
12709#ifndef NULL
12710#define NULL (void*)0
12711#endif
12712
12713static void *task(p)
12714	void *p;
12715{
12716	return (void *) (p == NULL);
12717}
12718
12719
12720int main(argc, argv)
12721	int argc;
12722	char **argv;
12723{
12724
12725	/* pthread test function */
12726#ifndef PTHREAD_CREATE_DETACHED
12727#define	PTHREAD_CREATE_DETACHED	1
12728#endif
12729	pthread_t t;
12730	int status;
12731	int detach = PTHREAD_CREATE_DETACHED;
12732
12733#if HAVE_PTHREADS > 4
12734	/* Final pthreads */
12735	pthread_attr_t attr;
12736
12737	status = pthread_attr_init(&attr);
12738	if( status ) return status;
12739
12740#if HAVE_PTHREADS < 7
12741	status = pthread_attr_setdetachstate(&attr, &detach);
12742	if( status < 0 ) status = errno;
12743#else
12744	status = pthread_attr_setdetachstate(&attr, detach);
12745#endif
12746	if( status ) return status;
12747	status = pthread_create( &t, &attr, task, NULL );
12748#if HAVE_PTHREADS < 7
12749	if( status < 0 ) status = errno;
12750#endif
12751	if( status ) return status;
12752#else
12753	/* Draft 4 pthreads */
12754	status = pthread_create( &t, pthread_attr_default, task, NULL );
12755	if( status ) return errno;
12756
12757	/* give thread a chance to complete */
12758	/* it should remain joinable and hence detachable */
12759	sleep( 1 );
12760
12761	status = pthread_detach( &t );
12762	if( status ) return errno;
12763#endif
12764
12765#ifdef HAVE_LINUX_THREADS
12766	pthread_kill_other_threads_np();
12767#endif
12768
12769	return 0;
12770
12771}
12772
12773_ACEOF
12774if ac_fn_c_try_run "$LINENO"; then :
12775  ol_cv_pthread_lpthread=yes
12776else
12777  ol_cv_pthread_lpthread=no
12778fi
12779rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12780  conftest.$ac_objext conftest.beam conftest.$ac_ext
12781fi
12782
12783
12784		# restore the LIBS
12785		LIBS="$ol_LIBS"
12786
12787fi
12788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
12789$as_echo "$ol_cv_pthread_lpthread" >&6; }
12790
12791	if test $ol_cv_pthread_lpthread = yes ; then
12792		ol_link_pthreads="-lpthread"
12793		ol_link_threads=posix
12794	fi
12795fi
12796
12797		# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
12798if test "$ol_link_threads" = no ; then
12799	# try -lc_r
12800	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
12801$as_echo_n "checking for pthread link with -lc_r... " >&6; }
12802if ${ol_cv_pthread_lc_r+:} false; then :
12803  $as_echo_n "(cached) " >&6
12804else
12805
12806		# save the flags
12807		ol_LIBS="$LIBS"
12808		LIBS="-lc_r $LIBS"
12809
12810		if test "$cross_compiling" = yes; then :
12811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812/* end confdefs.h.  */
12813
12814/* pthread test headers */
12815#include <pthread.h>
12816#if HAVE_PTHREADS < 7
12817#include <errno.h>
12818#endif
12819#ifndef NULL
12820#define NULL (void*)0
12821#endif
12822
12823static void *task(p)
12824	void *p;
12825{
12826	return (void *) (p == NULL);
12827}
12828
12829int
12830main ()
12831{
12832
12833	/* pthread test function */
12834#ifndef PTHREAD_CREATE_DETACHED
12835#define	PTHREAD_CREATE_DETACHED	1
12836#endif
12837	pthread_t t;
12838	int status;
12839	int detach = PTHREAD_CREATE_DETACHED;
12840
12841#if HAVE_PTHREADS > 4
12842	/* Final pthreads */
12843	pthread_attr_t attr;
12844
12845	status = pthread_attr_init(&attr);
12846	if( status ) return status;
12847
12848#if HAVE_PTHREADS < 7
12849	status = pthread_attr_setdetachstate(&attr, &detach);
12850	if( status < 0 ) status = errno;
12851#else
12852	status = pthread_attr_setdetachstate(&attr, detach);
12853#endif
12854	if( status ) return status;
12855	status = pthread_create( &t, &attr, task, NULL );
12856#if HAVE_PTHREADS < 7
12857	if( status < 0 ) status = errno;
12858#endif
12859	if( status ) return status;
12860#else
12861	/* Draft 4 pthreads */
12862	status = pthread_create( &t, pthread_attr_default, task, NULL );
12863	if( status ) return errno;
12864
12865	/* give thread a chance to complete */
12866	/* it should remain joinable and hence detachable */
12867	sleep( 1 );
12868
12869	status = pthread_detach( &t );
12870	if( status ) return errno;
12871#endif
12872
12873#ifdef HAVE_LINUX_THREADS
12874	pthread_kill_other_threads_np();
12875#endif
12876
12877	return 0;
12878
12879  ;
12880  return 0;
12881}
12882_ACEOF
12883if ac_fn_c_try_link "$LINENO"; then :
12884  ol_cv_pthread_lc_r=yes
12885else
12886  ol_cv_pthread_lc_r=no
12887fi
12888rm -f core conftest.err conftest.$ac_objext \
12889    conftest$ac_exeext conftest.$ac_ext
12890else
12891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892/* end confdefs.h.  */
12893
12894
12895/* pthread test headers */
12896#include <pthread.h>
12897#if HAVE_PTHREADS < 7
12898#include <errno.h>
12899#endif
12900#ifndef NULL
12901#define NULL (void*)0
12902#endif
12903
12904static void *task(p)
12905	void *p;
12906{
12907	return (void *) (p == NULL);
12908}
12909
12910
12911int main(argc, argv)
12912	int argc;
12913	char **argv;
12914{
12915
12916	/* pthread test function */
12917#ifndef PTHREAD_CREATE_DETACHED
12918#define	PTHREAD_CREATE_DETACHED	1
12919#endif
12920	pthread_t t;
12921	int status;
12922	int detach = PTHREAD_CREATE_DETACHED;
12923
12924#if HAVE_PTHREADS > 4
12925	/* Final pthreads */
12926	pthread_attr_t attr;
12927
12928	status = pthread_attr_init(&attr);
12929	if( status ) return status;
12930
12931#if HAVE_PTHREADS < 7
12932	status = pthread_attr_setdetachstate(&attr, &detach);
12933	if( status < 0 ) status = errno;
12934#else
12935	status = pthread_attr_setdetachstate(&attr, detach);
12936#endif
12937	if( status ) return status;
12938	status = pthread_create( &t, &attr, task, NULL );
12939#if HAVE_PTHREADS < 7
12940	if( status < 0 ) status = errno;
12941#endif
12942	if( status ) return status;
12943#else
12944	/* Draft 4 pthreads */
12945	status = pthread_create( &t, pthread_attr_default, task, NULL );
12946	if( status ) return errno;
12947
12948	/* give thread a chance to complete */
12949	/* it should remain joinable and hence detachable */
12950	sleep( 1 );
12951
12952	status = pthread_detach( &t );
12953	if( status ) return errno;
12954#endif
12955
12956#ifdef HAVE_LINUX_THREADS
12957	pthread_kill_other_threads_np();
12958#endif
12959
12960	return 0;
12961
12962}
12963
12964_ACEOF
12965if ac_fn_c_try_run "$LINENO"; then :
12966  ol_cv_pthread_lc_r=yes
12967else
12968  ol_cv_pthread_lc_r=no
12969fi
12970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12971  conftest.$ac_objext conftest.beam conftest.$ac_ext
12972fi
12973
12974
12975		# restore the LIBS
12976		LIBS="$ol_LIBS"
12977
12978fi
12979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
12980$as_echo "$ol_cv_pthread_lc_r" >&6; }
12981
12982	if test $ol_cv_pthread_lc_r = yes ; then
12983		ol_link_pthreads="-lc_r"
12984		ol_link_threads=posix
12985	fi
12986fi
12987
12988
12989		# Pthread try link: -threads (ol_cv_pthread_threads)
12990if test "$ol_link_threads" = no ; then
12991	# try -threads
12992	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
12993$as_echo_n "checking for pthread link with -threads... " >&6; }
12994if ${ol_cv_pthread_threads+:} false; then :
12995  $as_echo_n "(cached) " >&6
12996else
12997
12998		# save the flags
12999		ol_LIBS="$LIBS"
13000		LIBS="-threads $LIBS"
13001
13002		if test "$cross_compiling" = yes; then :
13003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004/* end confdefs.h.  */
13005
13006/* pthread test headers */
13007#include <pthread.h>
13008#if HAVE_PTHREADS < 7
13009#include <errno.h>
13010#endif
13011#ifndef NULL
13012#define NULL (void*)0
13013#endif
13014
13015static void *task(p)
13016	void *p;
13017{
13018	return (void *) (p == NULL);
13019}
13020
13021int
13022main ()
13023{
13024
13025	/* pthread test function */
13026#ifndef PTHREAD_CREATE_DETACHED
13027#define	PTHREAD_CREATE_DETACHED	1
13028#endif
13029	pthread_t t;
13030	int status;
13031	int detach = PTHREAD_CREATE_DETACHED;
13032
13033#if HAVE_PTHREADS > 4
13034	/* Final pthreads */
13035	pthread_attr_t attr;
13036
13037	status = pthread_attr_init(&attr);
13038	if( status ) return status;
13039
13040#if HAVE_PTHREADS < 7
13041	status = pthread_attr_setdetachstate(&attr, &detach);
13042	if( status < 0 ) status = errno;
13043#else
13044	status = pthread_attr_setdetachstate(&attr, detach);
13045#endif
13046	if( status ) return status;
13047	status = pthread_create( &t, &attr, task, NULL );
13048#if HAVE_PTHREADS < 7
13049	if( status < 0 ) status = errno;
13050#endif
13051	if( status ) return status;
13052#else
13053	/* Draft 4 pthreads */
13054	status = pthread_create( &t, pthread_attr_default, task, NULL );
13055	if( status ) return errno;
13056
13057	/* give thread a chance to complete */
13058	/* it should remain joinable and hence detachable */
13059	sleep( 1 );
13060
13061	status = pthread_detach( &t );
13062	if( status ) return errno;
13063#endif
13064
13065#ifdef HAVE_LINUX_THREADS
13066	pthread_kill_other_threads_np();
13067#endif
13068
13069	return 0;
13070
13071  ;
13072  return 0;
13073}
13074_ACEOF
13075if ac_fn_c_try_link "$LINENO"; then :
13076  ol_cv_pthread_threads=yes
13077else
13078  ol_cv_pthread_threads=no
13079fi
13080rm -f core conftest.err conftest.$ac_objext \
13081    conftest$ac_exeext conftest.$ac_ext
13082else
13083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084/* end confdefs.h.  */
13085
13086
13087/* pthread test headers */
13088#include <pthread.h>
13089#if HAVE_PTHREADS < 7
13090#include <errno.h>
13091#endif
13092#ifndef NULL
13093#define NULL (void*)0
13094#endif
13095
13096static void *task(p)
13097	void *p;
13098{
13099	return (void *) (p == NULL);
13100}
13101
13102
13103int main(argc, argv)
13104	int argc;
13105	char **argv;
13106{
13107
13108	/* pthread test function */
13109#ifndef PTHREAD_CREATE_DETACHED
13110#define	PTHREAD_CREATE_DETACHED	1
13111#endif
13112	pthread_t t;
13113	int status;
13114	int detach = PTHREAD_CREATE_DETACHED;
13115
13116#if HAVE_PTHREADS > 4
13117	/* Final pthreads */
13118	pthread_attr_t attr;
13119
13120	status = pthread_attr_init(&attr);
13121	if( status ) return status;
13122
13123#if HAVE_PTHREADS < 7
13124	status = pthread_attr_setdetachstate(&attr, &detach);
13125	if( status < 0 ) status = errno;
13126#else
13127	status = pthread_attr_setdetachstate(&attr, detach);
13128#endif
13129	if( status ) return status;
13130	status = pthread_create( &t, &attr, task, NULL );
13131#if HAVE_PTHREADS < 7
13132	if( status < 0 ) status = errno;
13133#endif
13134	if( status ) return status;
13135#else
13136	/* Draft 4 pthreads */
13137	status = pthread_create( &t, pthread_attr_default, task, NULL );
13138	if( status ) return errno;
13139
13140	/* give thread a chance to complete */
13141	/* it should remain joinable and hence detachable */
13142	sleep( 1 );
13143
13144	status = pthread_detach( &t );
13145	if( status ) return errno;
13146#endif
13147
13148#ifdef HAVE_LINUX_THREADS
13149	pthread_kill_other_threads_np();
13150#endif
13151
13152	return 0;
13153
13154}
13155
13156_ACEOF
13157if ac_fn_c_try_run "$LINENO"; then :
13158  ol_cv_pthread_threads=yes
13159else
13160  ol_cv_pthread_threads=no
13161fi
13162rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13163  conftest.$ac_objext conftest.beam conftest.$ac_ext
13164fi
13165
13166
13167		# restore the LIBS
13168		LIBS="$ol_LIBS"
13169
13170fi
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
13172$as_echo "$ol_cv_pthread_threads" >&6; }
13173
13174	if test $ol_cv_pthread_threads = yes ; then
13175		ol_link_pthreads="-threads"
13176		ol_link_threads=posix
13177	fi
13178fi
13179
13180
13181		# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13182if test "$ol_link_threads" = no ; then
13183	# try -lpthreads -lmach -lexc -lc_r
13184	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13185$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
13186if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
13187  $as_echo_n "(cached) " >&6
13188else
13189
13190		# save the flags
13191		ol_LIBS="$LIBS"
13192		LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13193
13194		if test "$cross_compiling" = yes; then :
13195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196/* end confdefs.h.  */
13197
13198/* pthread test headers */
13199#include <pthread.h>
13200#if HAVE_PTHREADS < 7
13201#include <errno.h>
13202#endif
13203#ifndef NULL
13204#define NULL (void*)0
13205#endif
13206
13207static void *task(p)
13208	void *p;
13209{
13210	return (void *) (p == NULL);
13211}
13212
13213int
13214main ()
13215{
13216
13217	/* pthread test function */
13218#ifndef PTHREAD_CREATE_DETACHED
13219#define	PTHREAD_CREATE_DETACHED	1
13220#endif
13221	pthread_t t;
13222	int status;
13223	int detach = PTHREAD_CREATE_DETACHED;
13224
13225#if HAVE_PTHREADS > 4
13226	/* Final pthreads */
13227	pthread_attr_t attr;
13228
13229	status = pthread_attr_init(&attr);
13230	if( status ) return status;
13231
13232#if HAVE_PTHREADS < 7
13233	status = pthread_attr_setdetachstate(&attr, &detach);
13234	if( status < 0 ) status = errno;
13235#else
13236	status = pthread_attr_setdetachstate(&attr, detach);
13237#endif
13238	if( status ) return status;
13239	status = pthread_create( &t, &attr, task, NULL );
13240#if HAVE_PTHREADS < 7
13241	if( status < 0 ) status = errno;
13242#endif
13243	if( status ) return status;
13244#else
13245	/* Draft 4 pthreads */
13246	status = pthread_create( &t, pthread_attr_default, task, NULL );
13247	if( status ) return errno;
13248
13249	/* give thread a chance to complete */
13250	/* it should remain joinable and hence detachable */
13251	sleep( 1 );
13252
13253	status = pthread_detach( &t );
13254	if( status ) return errno;
13255#endif
13256
13257#ifdef HAVE_LINUX_THREADS
13258	pthread_kill_other_threads_np();
13259#endif
13260
13261	return 0;
13262
13263  ;
13264  return 0;
13265}
13266_ACEOF
13267if ac_fn_c_try_link "$LINENO"; then :
13268  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13269else
13270  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13271fi
13272rm -f core conftest.err conftest.$ac_objext \
13273    conftest$ac_exeext conftest.$ac_ext
13274else
13275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13276/* end confdefs.h.  */
13277
13278
13279/* pthread test headers */
13280#include <pthread.h>
13281#if HAVE_PTHREADS < 7
13282#include <errno.h>
13283#endif
13284#ifndef NULL
13285#define NULL (void*)0
13286#endif
13287
13288static void *task(p)
13289	void *p;
13290{
13291	return (void *) (p == NULL);
13292}
13293
13294
13295int main(argc, argv)
13296	int argc;
13297	char **argv;
13298{
13299
13300	/* pthread test function */
13301#ifndef PTHREAD_CREATE_DETACHED
13302#define	PTHREAD_CREATE_DETACHED	1
13303#endif
13304	pthread_t t;
13305	int status;
13306	int detach = PTHREAD_CREATE_DETACHED;
13307
13308#if HAVE_PTHREADS > 4
13309	/* Final pthreads */
13310	pthread_attr_t attr;
13311
13312	status = pthread_attr_init(&attr);
13313	if( status ) return status;
13314
13315#if HAVE_PTHREADS < 7
13316	status = pthread_attr_setdetachstate(&attr, &detach);
13317	if( status < 0 ) status = errno;
13318#else
13319	status = pthread_attr_setdetachstate(&attr, detach);
13320#endif
13321	if( status ) return status;
13322	status = pthread_create( &t, &attr, task, NULL );
13323#if HAVE_PTHREADS < 7
13324	if( status < 0 ) status = errno;
13325#endif
13326	if( status ) return status;
13327#else
13328	/* Draft 4 pthreads */
13329	status = pthread_create( &t, pthread_attr_default, task, NULL );
13330	if( status ) return errno;
13331
13332	/* give thread a chance to complete */
13333	/* it should remain joinable and hence detachable */
13334	sleep( 1 );
13335
13336	status = pthread_detach( &t );
13337	if( status ) return errno;
13338#endif
13339
13340#ifdef HAVE_LINUX_THREADS
13341	pthread_kill_other_threads_np();
13342#endif
13343
13344	return 0;
13345
13346}
13347
13348_ACEOF
13349if ac_fn_c_try_run "$LINENO"; then :
13350  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13351else
13352  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13353fi
13354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13355  conftest.$ac_objext conftest.beam conftest.$ac_ext
13356fi
13357
13358
13359		# restore the LIBS
13360		LIBS="$ol_LIBS"
13361
13362fi
13363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
13364$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
13365
13366	if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
13367		ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
13368		ol_link_threads=posix
13369	fi
13370fi
13371
13372		# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
13373if test "$ol_link_threads" = no ; then
13374	# try -lpthreads -lmach -lexc
13375	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
13376$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
13377if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
13378  $as_echo_n "(cached) " >&6
13379else
13380
13381		# save the flags
13382		ol_LIBS="$LIBS"
13383		LIBS="-lpthreads -lmach -lexc $LIBS"
13384
13385		if test "$cross_compiling" = yes; then :
13386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387/* end confdefs.h.  */
13388
13389/* pthread test headers */
13390#include <pthread.h>
13391#if HAVE_PTHREADS < 7
13392#include <errno.h>
13393#endif
13394#ifndef NULL
13395#define NULL (void*)0
13396#endif
13397
13398static void *task(p)
13399	void *p;
13400{
13401	return (void *) (p == NULL);
13402}
13403
13404int
13405main ()
13406{
13407
13408	/* pthread test function */
13409#ifndef PTHREAD_CREATE_DETACHED
13410#define	PTHREAD_CREATE_DETACHED	1
13411#endif
13412	pthread_t t;
13413	int status;
13414	int detach = PTHREAD_CREATE_DETACHED;
13415
13416#if HAVE_PTHREADS > 4
13417	/* Final pthreads */
13418	pthread_attr_t attr;
13419
13420	status = pthread_attr_init(&attr);
13421	if( status ) return status;
13422
13423#if HAVE_PTHREADS < 7
13424	status = pthread_attr_setdetachstate(&attr, &detach);
13425	if( status < 0 ) status = errno;
13426#else
13427	status = pthread_attr_setdetachstate(&attr, detach);
13428#endif
13429	if( status ) return status;
13430	status = pthread_create( &t, &attr, task, NULL );
13431#if HAVE_PTHREADS < 7
13432	if( status < 0 ) status = errno;
13433#endif
13434	if( status ) return status;
13435#else
13436	/* Draft 4 pthreads */
13437	status = pthread_create( &t, pthread_attr_default, task, NULL );
13438	if( status ) return errno;
13439
13440	/* give thread a chance to complete */
13441	/* it should remain joinable and hence detachable */
13442	sleep( 1 );
13443
13444	status = pthread_detach( &t );
13445	if( status ) return errno;
13446#endif
13447
13448#ifdef HAVE_LINUX_THREADS
13449	pthread_kill_other_threads_np();
13450#endif
13451
13452	return 0;
13453
13454  ;
13455  return 0;
13456}
13457_ACEOF
13458if ac_fn_c_try_link "$LINENO"; then :
13459  ol_cv_pthread_lpthreads_lmach_lexc=yes
13460else
13461  ol_cv_pthread_lpthreads_lmach_lexc=no
13462fi
13463rm -f core conftest.err conftest.$ac_objext \
13464    conftest$ac_exeext conftest.$ac_ext
13465else
13466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467/* end confdefs.h.  */
13468
13469
13470/* pthread test headers */
13471#include <pthread.h>
13472#if HAVE_PTHREADS < 7
13473#include <errno.h>
13474#endif
13475#ifndef NULL
13476#define NULL (void*)0
13477#endif
13478
13479static void *task(p)
13480	void *p;
13481{
13482	return (void *) (p == NULL);
13483}
13484
13485
13486int main(argc, argv)
13487	int argc;
13488	char **argv;
13489{
13490
13491	/* pthread test function */
13492#ifndef PTHREAD_CREATE_DETACHED
13493#define	PTHREAD_CREATE_DETACHED	1
13494#endif
13495	pthread_t t;
13496	int status;
13497	int detach = PTHREAD_CREATE_DETACHED;
13498
13499#if HAVE_PTHREADS > 4
13500	/* Final pthreads */
13501	pthread_attr_t attr;
13502
13503	status = pthread_attr_init(&attr);
13504	if( status ) return status;
13505
13506#if HAVE_PTHREADS < 7
13507	status = pthread_attr_setdetachstate(&attr, &detach);
13508	if( status < 0 ) status = errno;
13509#else
13510	status = pthread_attr_setdetachstate(&attr, detach);
13511#endif
13512	if( status ) return status;
13513	status = pthread_create( &t, &attr, task, NULL );
13514#if HAVE_PTHREADS < 7
13515	if( status < 0 ) status = errno;
13516#endif
13517	if( status ) return status;
13518#else
13519	/* Draft 4 pthreads */
13520	status = pthread_create( &t, pthread_attr_default, task, NULL );
13521	if( status ) return errno;
13522
13523	/* give thread a chance to complete */
13524	/* it should remain joinable and hence detachable */
13525	sleep( 1 );
13526
13527	status = pthread_detach( &t );
13528	if( status ) return errno;
13529#endif
13530
13531#ifdef HAVE_LINUX_THREADS
13532	pthread_kill_other_threads_np();
13533#endif
13534
13535	return 0;
13536
13537}
13538
13539_ACEOF
13540if ac_fn_c_try_run "$LINENO"; then :
13541  ol_cv_pthread_lpthreads_lmach_lexc=yes
13542else
13543  ol_cv_pthread_lpthreads_lmach_lexc=no
13544fi
13545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13546  conftest.$ac_objext conftest.beam conftest.$ac_ext
13547fi
13548
13549
13550		# restore the LIBS
13551		LIBS="$ol_LIBS"
13552
13553fi
13554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
13555$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
13556
13557	if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
13558		ol_link_pthreads="-lpthreads -lmach -lexc"
13559		ol_link_threads=posix
13560	fi
13561fi
13562
13563		# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
13564if test "$ol_link_threads" = no ; then
13565	# try -lpthreads -lexc
13566	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
13567$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
13568if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
13569  $as_echo_n "(cached) " >&6
13570else
13571
13572		# save the flags
13573		ol_LIBS="$LIBS"
13574		LIBS="-lpthreads -lexc $LIBS"
13575
13576		if test "$cross_compiling" = yes; then :
13577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13578/* end confdefs.h.  */
13579
13580/* pthread test headers */
13581#include <pthread.h>
13582#if HAVE_PTHREADS < 7
13583#include <errno.h>
13584#endif
13585#ifndef NULL
13586#define NULL (void*)0
13587#endif
13588
13589static void *task(p)
13590	void *p;
13591{
13592	return (void *) (p == NULL);
13593}
13594
13595int
13596main ()
13597{
13598
13599	/* pthread test function */
13600#ifndef PTHREAD_CREATE_DETACHED
13601#define	PTHREAD_CREATE_DETACHED	1
13602#endif
13603	pthread_t t;
13604	int status;
13605	int detach = PTHREAD_CREATE_DETACHED;
13606
13607#if HAVE_PTHREADS > 4
13608	/* Final pthreads */
13609	pthread_attr_t attr;
13610
13611	status = pthread_attr_init(&attr);
13612	if( status ) return status;
13613
13614#if HAVE_PTHREADS < 7
13615	status = pthread_attr_setdetachstate(&attr, &detach);
13616	if( status < 0 ) status = errno;
13617#else
13618	status = pthread_attr_setdetachstate(&attr, detach);
13619#endif
13620	if( status ) return status;
13621	status = pthread_create( &t, &attr, task, NULL );
13622#if HAVE_PTHREADS < 7
13623	if( status < 0 ) status = errno;
13624#endif
13625	if( status ) return status;
13626#else
13627	/* Draft 4 pthreads */
13628	status = pthread_create( &t, pthread_attr_default, task, NULL );
13629	if( status ) return errno;
13630
13631	/* give thread a chance to complete */
13632	/* it should remain joinable and hence detachable */
13633	sleep( 1 );
13634
13635	status = pthread_detach( &t );
13636	if( status ) return errno;
13637#endif
13638
13639#ifdef HAVE_LINUX_THREADS
13640	pthread_kill_other_threads_np();
13641#endif
13642
13643	return 0;
13644
13645  ;
13646  return 0;
13647}
13648_ACEOF
13649if ac_fn_c_try_link "$LINENO"; then :
13650  ol_cv_pthread_lpthreads_lexc=yes
13651else
13652  ol_cv_pthread_lpthreads_lexc=no
13653fi
13654rm -f core conftest.err conftest.$ac_objext \
13655    conftest$ac_exeext conftest.$ac_ext
13656else
13657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658/* end confdefs.h.  */
13659
13660
13661/* pthread test headers */
13662#include <pthread.h>
13663#if HAVE_PTHREADS < 7
13664#include <errno.h>
13665#endif
13666#ifndef NULL
13667#define NULL (void*)0
13668#endif
13669
13670static void *task(p)
13671	void *p;
13672{
13673	return (void *) (p == NULL);
13674}
13675
13676
13677int main(argc, argv)
13678	int argc;
13679	char **argv;
13680{
13681
13682	/* pthread test function */
13683#ifndef PTHREAD_CREATE_DETACHED
13684#define	PTHREAD_CREATE_DETACHED	1
13685#endif
13686	pthread_t t;
13687	int status;
13688	int detach = PTHREAD_CREATE_DETACHED;
13689
13690#if HAVE_PTHREADS > 4
13691	/* Final pthreads */
13692	pthread_attr_t attr;
13693
13694	status = pthread_attr_init(&attr);
13695	if( status ) return status;
13696
13697#if HAVE_PTHREADS < 7
13698	status = pthread_attr_setdetachstate(&attr, &detach);
13699	if( status < 0 ) status = errno;
13700#else
13701	status = pthread_attr_setdetachstate(&attr, detach);
13702#endif
13703	if( status ) return status;
13704	status = pthread_create( &t, &attr, task, NULL );
13705#if HAVE_PTHREADS < 7
13706	if( status < 0 ) status = errno;
13707#endif
13708	if( status ) return status;
13709#else
13710	/* Draft 4 pthreads */
13711	status = pthread_create( &t, pthread_attr_default, task, NULL );
13712	if( status ) return errno;
13713
13714	/* give thread a chance to complete */
13715	/* it should remain joinable and hence detachable */
13716	sleep( 1 );
13717
13718	status = pthread_detach( &t );
13719	if( status ) return errno;
13720#endif
13721
13722#ifdef HAVE_LINUX_THREADS
13723	pthread_kill_other_threads_np();
13724#endif
13725
13726	return 0;
13727
13728}
13729
13730_ACEOF
13731if ac_fn_c_try_run "$LINENO"; then :
13732  ol_cv_pthread_lpthreads_lexc=yes
13733else
13734  ol_cv_pthread_lpthreads_lexc=no
13735fi
13736rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13737  conftest.$ac_objext conftest.beam conftest.$ac_ext
13738fi
13739
13740
13741		# restore the LIBS
13742		LIBS="$ol_LIBS"
13743
13744fi
13745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
13746$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
13747
13748	if test $ol_cv_pthread_lpthreads_lexc = yes ; then
13749		ol_link_pthreads="-lpthreads -lexc"
13750		ol_link_threads=posix
13751	fi
13752fi
13753
13754
13755		# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
13756if test "$ol_link_threads" = no ; then
13757	# try -lpthreads
13758	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
13759$as_echo_n "checking for pthread link with -lpthreads... " >&6; }
13760if ${ol_cv_pthread_lib_lpthreads+:} false; then :
13761  $as_echo_n "(cached) " >&6
13762else
13763
13764		# save the flags
13765		ol_LIBS="$LIBS"
13766		LIBS="-lpthreads $LIBS"
13767
13768		if test "$cross_compiling" = yes; then :
13769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770/* end confdefs.h.  */
13771
13772/* pthread test headers */
13773#include <pthread.h>
13774#if HAVE_PTHREADS < 7
13775#include <errno.h>
13776#endif
13777#ifndef NULL
13778#define NULL (void*)0
13779#endif
13780
13781static void *task(p)
13782	void *p;
13783{
13784	return (void *) (p == NULL);
13785}
13786
13787int
13788main ()
13789{
13790
13791	/* pthread test function */
13792#ifndef PTHREAD_CREATE_DETACHED
13793#define	PTHREAD_CREATE_DETACHED	1
13794#endif
13795	pthread_t t;
13796	int status;
13797	int detach = PTHREAD_CREATE_DETACHED;
13798
13799#if HAVE_PTHREADS > 4
13800	/* Final pthreads */
13801	pthread_attr_t attr;
13802
13803	status = pthread_attr_init(&attr);
13804	if( status ) return status;
13805
13806#if HAVE_PTHREADS < 7
13807	status = pthread_attr_setdetachstate(&attr, &detach);
13808	if( status < 0 ) status = errno;
13809#else
13810	status = pthread_attr_setdetachstate(&attr, detach);
13811#endif
13812	if( status ) return status;
13813	status = pthread_create( &t, &attr, task, NULL );
13814#if HAVE_PTHREADS < 7
13815	if( status < 0 ) status = errno;
13816#endif
13817	if( status ) return status;
13818#else
13819	/* Draft 4 pthreads */
13820	status = pthread_create( &t, pthread_attr_default, task, NULL );
13821	if( status ) return errno;
13822
13823	/* give thread a chance to complete */
13824	/* it should remain joinable and hence detachable */
13825	sleep( 1 );
13826
13827	status = pthread_detach( &t );
13828	if( status ) return errno;
13829#endif
13830
13831#ifdef HAVE_LINUX_THREADS
13832	pthread_kill_other_threads_np();
13833#endif
13834
13835	return 0;
13836
13837  ;
13838  return 0;
13839}
13840_ACEOF
13841if ac_fn_c_try_link "$LINENO"; then :
13842  ol_cv_pthread_lib_lpthreads=yes
13843else
13844  ol_cv_pthread_lib_lpthreads=no
13845fi
13846rm -f core conftest.err conftest.$ac_objext \
13847    conftest$ac_exeext conftest.$ac_ext
13848else
13849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850/* end confdefs.h.  */
13851
13852
13853/* pthread test headers */
13854#include <pthread.h>
13855#if HAVE_PTHREADS < 7
13856#include <errno.h>
13857#endif
13858#ifndef NULL
13859#define NULL (void*)0
13860#endif
13861
13862static void *task(p)
13863	void *p;
13864{
13865	return (void *) (p == NULL);
13866}
13867
13868
13869int main(argc, argv)
13870	int argc;
13871	char **argv;
13872{
13873
13874	/* pthread test function */
13875#ifndef PTHREAD_CREATE_DETACHED
13876#define	PTHREAD_CREATE_DETACHED	1
13877#endif
13878	pthread_t t;
13879	int status;
13880	int detach = PTHREAD_CREATE_DETACHED;
13881
13882#if HAVE_PTHREADS > 4
13883	/* Final pthreads */
13884	pthread_attr_t attr;
13885
13886	status = pthread_attr_init(&attr);
13887	if( status ) return status;
13888
13889#if HAVE_PTHREADS < 7
13890	status = pthread_attr_setdetachstate(&attr, &detach);
13891	if( status < 0 ) status = errno;
13892#else
13893	status = pthread_attr_setdetachstate(&attr, detach);
13894#endif
13895	if( status ) return status;
13896	status = pthread_create( &t, &attr, task, NULL );
13897#if HAVE_PTHREADS < 7
13898	if( status < 0 ) status = errno;
13899#endif
13900	if( status ) return status;
13901#else
13902	/* Draft 4 pthreads */
13903	status = pthread_create( &t, pthread_attr_default, task, NULL );
13904	if( status ) return errno;
13905
13906	/* give thread a chance to complete */
13907	/* it should remain joinable and hence detachable */
13908	sleep( 1 );
13909
13910	status = pthread_detach( &t );
13911	if( status ) return errno;
13912#endif
13913
13914#ifdef HAVE_LINUX_THREADS
13915	pthread_kill_other_threads_np();
13916#endif
13917
13918	return 0;
13919
13920}
13921
13922_ACEOF
13923if ac_fn_c_try_run "$LINENO"; then :
13924  ol_cv_pthread_lib_lpthreads=yes
13925else
13926  ol_cv_pthread_lib_lpthreads=no
13927fi
13928rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13929  conftest.$ac_objext conftest.beam conftest.$ac_ext
13930fi
13931
13932
13933		# restore the LIBS
13934		LIBS="$ol_LIBS"
13935
13936fi
13937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
13938$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
13939
13940	if test $ol_cv_pthread_lib_lpthreads = yes ; then
13941		ol_link_pthreads="-lpthreads"
13942		ol_link_threads=posix
13943	fi
13944fi
13945
13946
13947		if test $ol_link_threads != no ; then
13948			LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
13949
13950						save_CPPFLAGS="$CPPFLAGS"
13951			save_LIBS="$LIBS"
13952			LIBS="$LTHREAD_LIBS $LIBS"
13953
13954												for ac_func in sched_yield pthread_yield thr_yield
13955do :
13956  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13957ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13958if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13959  cat >>confdefs.h <<_ACEOF
13960#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13961_ACEOF
13962
13963fi
13964done
13965
13966
13967			if test $ac_cv_func_sched_yield = no &&
13968			   test $ac_cv_func_pthread_yield = no &&
13969			   test $ac_cv_func_thr_yield = no ; then
13970								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
13971$as_echo_n "checking for sched_yield in -lrt... " >&6; }
13972if ${ac_cv_lib_rt_sched_yield+:} false; then :
13973  $as_echo_n "(cached) " >&6
13974else
13975  ac_check_lib_save_LIBS=$LIBS
13976LIBS="-lrt  $LIBS"
13977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13978/* end confdefs.h.  */
13979
13980/* Override any GCC internal prototype to avoid an error.
13981   Use char because int might match the return type of a GCC
13982   builtin and then its argument prototype would still apply.  */
13983#ifdef __cplusplus
13984extern "C"
13985#endif
13986char sched_yield ();
13987int
13988main ()
13989{
13990return sched_yield ();
13991  ;
13992  return 0;
13993}
13994_ACEOF
13995if ac_fn_c_try_link "$LINENO"; then :
13996  ac_cv_lib_rt_sched_yield=yes
13997else
13998  ac_cv_lib_rt_sched_yield=no
13999fi
14000rm -f core conftest.err conftest.$ac_objext \
14001    conftest$ac_exeext conftest.$ac_ext
14002LIBS=$ac_check_lib_save_LIBS
14003fi
14004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
14005$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
14006if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
14007  LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14008
14009$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
14010
14011					ac_cv_func_sched_yield=yes
14012else
14013  ac_cv_func_sched_yield=no
14014fi
14015
14016			fi
14017			if test $ac_cv_func_sched_yield = no &&
14018			   test $ac_cv_func_pthread_yield = no &&
14019			   test "$ac_cv_func_thr_yield" = no ; then
14020				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
14021$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
14022			fi
14023
14024						for ac_func in pthread_kill
14025do :
14026  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
14027if test "x$ac_cv_func_pthread_kill" = xyes; then :
14028  cat >>confdefs.h <<_ACEOF
14029#define HAVE_PTHREAD_KILL 1
14030_ACEOF
14031
14032fi
14033done
14034
14035
14036									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
14037$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
14038if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
14039  $as_echo_n "(cached) " >&6
14040else
14041
14042								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043/* end confdefs.h.  */
14044
14045#include <pthread.h>
14046pthread_rwlock_t rwlock;
14047
14048int
14049main ()
14050{
14051pthread_rwlock_destroy(&rwlock);
14052  ;
14053  return 0;
14054}
14055_ACEOF
14056if ac_fn_c_try_link "$LINENO"; then :
14057  ol_cv_func_pthread_rwlock_destroy=yes
14058else
14059  ol_cv_func_pthread_rwlock_destroy=no
14060fi
14061rm -f core conftest.err conftest.$ac_objext \
14062    conftest$ac_exeext conftest.$ac_ext
14063
14064fi
14065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
14066$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
14067			if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
14068
14069$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
14070
14071			fi
14072
14073									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
14074$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
14075if ${ol_cv_func_pthread_detach+:} false; then :
14076  $as_echo_n "(cached) " >&6
14077else
14078
14079								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080/* end confdefs.h.  */
14081
14082#include <pthread.h>
14083#ifndef NULL
14084#define NULL (void*)0
14085#endif
14086
14087int
14088main ()
14089{
14090pthread_detach(NULL);
14091  ;
14092  return 0;
14093}
14094_ACEOF
14095if ac_fn_c_try_link "$LINENO"; then :
14096  ol_cv_func_pthread_detach=yes
14097else
14098  ol_cv_func_pthread_detach=no
14099fi
14100rm -f core conftest.err conftest.$ac_objext \
14101    conftest$ac_exeext conftest.$ac_ext
14102
14103fi
14104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
14105$as_echo "$ol_cv_func_pthread_detach" >&6; }
14106
14107			if test $ol_cv_func_pthread_detach = no ; then
14108				as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
14109			fi
14110
14111
14112$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
14113
14114
14115						for ac_func in \
14116				pthread_setconcurrency \
14117				pthread_getconcurrency \
14118				thr_setconcurrency \
14119				thr_getconcurrency \
14120
14121do :
14122  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14123ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14124if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14125  cat >>confdefs.h <<_ACEOF
14126#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14127_ACEOF
14128
14129fi
14130done
14131
14132
14133
14134	for ac_func in pthread_kill_other_threads_np
14135do :
14136  ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
14137if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
14138  cat >>confdefs.h <<_ACEOF
14139#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
14140_ACEOF
14141
14142fi
14143done
14144
14145	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
14146$as_echo_n "checking for LinuxThreads implementation... " >&6; }
14147if ${ol_cv_sys_linux_threads+:} false; then :
14148  $as_echo_n "(cached) " >&6
14149else
14150  ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
14151fi
14152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
14153$as_echo "$ol_cv_sys_linux_threads" >&6; }
14154
14155
14156
14157
14158	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
14159$as_echo_n "checking for LinuxThreads consistency... " >&6; }
14160if ${ol_cv_linux_threads+:} false; then :
14161  $as_echo_n "(cached) " >&6
14162else
14163
14164		if test $ol_cv_header_linux_threads = yes &&
14165		   test $ol_cv_sys_linux_threads = yes; then
14166			ol_cv_linux_threads=yes
14167		elif test $ol_cv_header_linux_threads = no &&
14168		     test $ol_cv_sys_linux_threads = no; then
14169			ol_cv_linux_threads=no
14170		else
14171			ol_cv_linux_threads=error
14172		fi
14173
14174fi
14175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
14176$as_echo "$ol_cv_linux_threads" >&6; }
14177
14178
14179			if test $ol_cv_linux_threads = error; then
14180				as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
14181			fi
14182
14183			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
14184$as_echo_n "checking if pthread_create() works... " >&6; }
14185if ${ol_cv_pthread_create_works+:} false; then :
14186  $as_echo_n "(cached) " >&6
14187else
14188
14189			if test "$cross_compiling" = yes; then :
14190  				ol_cv_pthread_create_works=yes
14191else
14192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14193/* end confdefs.h.  */
14194
14195
14196/* pthread test headers */
14197#include <pthread.h>
14198#if HAVE_PTHREADS < 7
14199#include <errno.h>
14200#endif
14201#ifndef NULL
14202#define NULL (void*)0
14203#endif
14204
14205static void *task(p)
14206	void *p;
14207{
14208	return (void *) (p == NULL);
14209}
14210
14211
14212int main(argc, argv)
14213	int argc;
14214	char **argv;
14215{
14216
14217	/* pthread test function */
14218#ifndef PTHREAD_CREATE_DETACHED
14219#define	PTHREAD_CREATE_DETACHED	1
14220#endif
14221	pthread_t t;
14222	int status;
14223	int detach = PTHREAD_CREATE_DETACHED;
14224
14225#if HAVE_PTHREADS > 4
14226	/* Final pthreads */
14227	pthread_attr_t attr;
14228
14229	status = pthread_attr_init(&attr);
14230	if( status ) return status;
14231
14232#if HAVE_PTHREADS < 7
14233	status = pthread_attr_setdetachstate(&attr, &detach);
14234	if( status < 0 ) status = errno;
14235#else
14236	status = pthread_attr_setdetachstate(&attr, detach);
14237#endif
14238	if( status ) return status;
14239	status = pthread_create( &t, &attr, task, NULL );
14240#if HAVE_PTHREADS < 7
14241	if( status < 0 ) status = errno;
14242#endif
14243	if( status ) return status;
14244#else
14245	/* Draft 4 pthreads */
14246	status = pthread_create( &t, pthread_attr_default, task, NULL );
14247	if( status ) return errno;
14248
14249	/* give thread a chance to complete */
14250	/* it should remain joinable and hence detachable */
14251	sleep( 1 );
14252
14253	status = pthread_detach( &t );
14254	if( status ) return errno;
14255#endif
14256
14257#ifdef HAVE_LINUX_THREADS
14258	pthread_kill_other_threads_np();
14259#endif
14260
14261	return 0;
14262
14263}
14264
14265_ACEOF
14266if ac_fn_c_try_run "$LINENO"; then :
14267  ol_cv_pthread_create_works=yes
14268else
14269  ol_cv_pthread_create_works=no
14270fi
14271rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14272  conftest.$ac_objext conftest.beam conftest.$ac_ext
14273fi
14274
14275fi
14276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
14277$as_echo "$ol_cv_pthread_create_works" >&6; }
14278
14279			if test $ol_cv_pthread_create_works = no ; then
14280				as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
14281			fi
14282
14283			ol_replace_broken_yield=no
14284
14285			if test $ol_replace_broken_yield = yes ; then
14286
14287$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
14288
14289			fi
14290
14291						if test x$ol_with_yielding_select = xauto ; then
14292				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
14293$as_echo_n "checking if select yields when using pthreads... " >&6; }
14294if ${ol_cv_pthread_select_yields+:} false; then :
14295  $as_echo_n "(cached) " >&6
14296else
14297
14298				if test "$cross_compiling" = yes; then :
14299  ol_cv_pthread_select_yields=cross
14300else
14301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14302/* end confdefs.h.  */
14303
14304#include <sys/types.h>
14305#include <sys/time.h>
14306#include <unistd.h>
14307#include <pthread.h>
14308#ifndef NULL
14309#define NULL (void*) 0
14310#endif
14311
14312static int fildes[2];
14313
14314static void *task(p)
14315	void *p;
14316{
14317	int i;
14318	struct timeval tv;
14319
14320	fd_set rfds;
14321
14322	tv.tv_sec=10;
14323	tv.tv_usec=0;
14324
14325	FD_ZERO(&rfds);
14326	FD_SET(fildes[0], &rfds);
14327
14328	/* we're not interested in any fds */
14329	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
14330
14331	if(i < 0) {
14332		perror("select");
14333		exit(10);
14334	}
14335
14336	exit(0); /* if we exit here, the select blocked the whole process */
14337}
14338
14339int main(argc, argv)
14340	int argc;
14341	char **argv;
14342{
14343	pthread_t t;
14344
14345	/* create a pipe to select */
14346	if(pipe(&fildes[0])) {
14347		perror("select");
14348		exit(1);
14349	}
14350
14351#ifdef HAVE_PTHREAD_SETCONCURRENCY
14352	(void) pthread_setconcurrency(2);
14353#else
14354#ifdef HAVE_THR_SETCONCURRENCY
14355	/* Set Solaris LWP concurrency to 2 */
14356	thr_setconcurrency(2);
14357#endif
14358#endif
14359
14360#if HAVE_PTHREADS < 6
14361	pthread_create(&t, pthread_attr_default, task, NULL);
14362#else
14363	pthread_create(&t, NULL, task, NULL);
14364#endif
14365
14366	/* make sure task runs first */
14367#ifdef HAVE_THR_YIELD
14368	thr_yield();
14369#elif defined( HAVE_SCHED_YIELD )
14370	sched_yield();
14371#elif defined( HAVE_PTHREAD_YIELD )
14372	pthread_yield();
14373#endif
14374
14375	exit(2);
14376}
14377_ACEOF
14378if ac_fn_c_try_run "$LINENO"; then :
14379  ol_cv_pthread_select_yields=no
14380else
14381  ol_cv_pthread_select_yields=yes
14382fi
14383rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14384  conftest.$ac_objext conftest.beam conftest.$ac_ext
14385fi
14386
14387fi
14388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
14389$as_echo "$ol_cv_pthread_select_yields" >&6; }
14390
14391				if test $ol_cv_pthread_select_yields = cross ; then
14392					as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
14393				fi
14394
14395				if test $ol_cv_pthread_select_yields = yes ; then
14396					ol_with_yielding_select=yes
14397				fi
14398			fi
14399
14400						CPPFLAGS="$save_CPPFLAGS"
14401			LIBS="$save_LIBS"
14402		else
14403			as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
14404		fi
14405	fi
14406
14407	if test $ol_with_threads = posix ; then
14408		as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
14409	fi
14410	;;
14411esac
14412
14413case $ol_with_threads in auto | yes | mach)
14414
14415		for ac_header in mach/cthreads.h cthreads.h
14416do :
14417  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14418ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14419if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14420  cat >>confdefs.h <<_ACEOF
14421#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14422_ACEOF
14423
14424fi
14425
14426done
14427
14428	if test $ac_cv_header_mach_cthreads_h = yes ; then
14429		ol_with_threads=found
14430
14431				ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
14432if test "x$ac_cv_func_cthread_fork" = xyes; then :
14433  ol_link_threads=yes
14434fi
14435
14436
14437		if test $ol_link_threads = no ; then
14438									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
14439$as_echo_n "checking for cthread_fork with -all_load... " >&6; }
14440if ${ol_cv_cthread_all_load+:} false; then :
14441  $as_echo_n "(cached) " >&6
14442else
14443
14444								save_LIBS="$LIBS"
14445				LIBS="-all_load $LIBS"
14446				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14447/* end confdefs.h.  */
14448#include <mach/cthreads.h>
14449int
14450main ()
14451{
14452
14453					cthread_fork((void *)0, (void *)0);
14454
14455  ;
14456  return 0;
14457}
14458_ACEOF
14459if ac_fn_c_try_link "$LINENO"; then :
14460  ol_cv_cthread_all_load=yes
14461else
14462  ol_cv_cthread_all_load=no
14463fi
14464rm -f core conftest.err conftest.$ac_objext \
14465    conftest$ac_exeext conftest.$ac_ext
14466								LIBS="$save_LIBS"
14467
14468fi
14469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
14470$as_echo "$ol_cv_cthread_all_load" >&6; }
14471
14472			if test $ol_cv_cthread_all_load = yes ; then
14473				LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
14474				ol_link_threads=mach
14475				ol_with_threads=found
14476			fi
14477		fi
14478
14479	elif test $ac_cv_header_cthreads_h = yes ; then
14480
14481		ol_with_threads=found
14482
14483				save_LIBS="$LIBS"
14484		LIBS="$LIBS -lthreads"
14485		ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
14486if test "x$ac_cv_func_cthread_fork" = xyes; then :
14487  ol_link_threads=yes
14488fi
14489
14490		LIBS="$save_LIBS"
14491
14492		if test $ol_link_threads = yes ; then
14493			LTHREAD_LIBS="-lthreads"
14494			ol_link_threads=mach
14495			ol_with_threads=found
14496		else
14497			as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
14498		fi
14499
14500	elif test $ol_with_threads = mach ; then
14501		as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
14502	fi
14503
14504	if test $ol_link_threads = mach ; then
14505
14506$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
14507
14508	elif test $ol_with_threads = found ; then
14509		as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
14510	fi
14511	;;
14512esac
14513
14514case $ol_with_threads in auto | yes | pth)
14515
14516	for ac_header in pth.h
14517do :
14518  ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
14519if test "x$ac_cv_header_pth_h" = xyes; then :
14520  cat >>confdefs.h <<_ACEOF
14521#define HAVE_PTH_H 1
14522_ACEOF
14523
14524fi
14525
14526done
14527
14528
14529	if test $ac_cv_header_pth_h = yes ; then
14530		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
14531$as_echo_n "checking for pth_version in -lpth... " >&6; }
14532if ${ac_cv_lib_pth_pth_version+:} false; then :
14533  $as_echo_n "(cached) " >&6
14534else
14535  ac_check_lib_save_LIBS=$LIBS
14536LIBS="-lpth  $LIBS"
14537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538/* end confdefs.h.  */
14539
14540/* Override any GCC internal prototype to avoid an error.
14541   Use char because int might match the return type of a GCC
14542   builtin and then its argument prototype would still apply.  */
14543#ifdef __cplusplus
14544extern "C"
14545#endif
14546char pth_version ();
14547int
14548main ()
14549{
14550return pth_version ();
14551  ;
14552  return 0;
14553}
14554_ACEOF
14555if ac_fn_c_try_link "$LINENO"; then :
14556  ac_cv_lib_pth_pth_version=yes
14557else
14558  ac_cv_lib_pth_pth_version=no
14559fi
14560rm -f core conftest.err conftest.$ac_objext \
14561    conftest$ac_exeext conftest.$ac_ext
14562LIBS=$ac_check_lib_save_LIBS
14563fi
14564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
14565$as_echo "$ac_cv_lib_pth_pth_version" >&6; }
14566if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
14567  have_pth=yes
14568else
14569  have_pth=no
14570fi
14571
14572
14573		if test $have_pth = yes ; then
14574
14575$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
14576
14577			LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
14578			ol_link_threads=pth
14579			ol_with_threads=found
14580
14581			if test x$ol_with_yielding_select = xauto ; then
14582				ol_with_yielding_select=yes
14583			fi
14584		fi
14585	fi
14586	;;
14587esac
14588
14589case $ol_with_threads in auto | yes | lwp)
14590
14591		for ac_header in thread.h synch.h
14592do :
14593  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14594ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14595if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14596  cat >>confdefs.h <<_ACEOF
14597#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14598_ACEOF
14599
14600fi
14601
14602done
14603
14604	if test $ac_cv_header_thread_h = yes &&
14605	   test $ac_cv_header_synch_h = yes ; then
14606		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
14607$as_echo_n "checking for thr_create in -lthread... " >&6; }
14608if ${ac_cv_lib_thread_thr_create+:} false; then :
14609  $as_echo_n "(cached) " >&6
14610else
14611  ac_check_lib_save_LIBS=$LIBS
14612LIBS="-lthread  $LIBS"
14613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614/* end confdefs.h.  */
14615
14616/* Override any GCC internal prototype to avoid an error.
14617   Use char because int might match the return type of a GCC
14618   builtin and then its argument prototype would still apply.  */
14619#ifdef __cplusplus
14620extern "C"
14621#endif
14622char thr_create ();
14623int
14624main ()
14625{
14626return thr_create ();
14627  ;
14628  return 0;
14629}
14630_ACEOF
14631if ac_fn_c_try_link "$LINENO"; then :
14632  ac_cv_lib_thread_thr_create=yes
14633else
14634  ac_cv_lib_thread_thr_create=no
14635fi
14636rm -f core conftest.err conftest.$ac_objext \
14637    conftest$ac_exeext conftest.$ac_ext
14638LIBS=$ac_check_lib_save_LIBS
14639fi
14640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
14641$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
14642if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
14643  have_thr=yes
14644else
14645  have_thr=no
14646fi
14647
14648
14649		if test $have_thr = yes ; then
14650
14651$as_echo "#define HAVE_THR 1" >>confdefs.h
14652
14653			LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
14654			ol_link_threads=thr
14655
14656			if test x$ol_with_yielding_select = xauto ; then
14657				ol_with_yielding_select=yes
14658			fi
14659
14660						for ac_func in \
14661				thr_setconcurrency \
14662				thr_getconcurrency \
14663
14664do :
14665  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14666ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14667if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14668  cat >>confdefs.h <<_ACEOF
14669#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14670_ACEOF
14671
14672fi
14673done
14674
14675		fi
14676	fi
14677
14678		for ac_header in lwp/lwp.h
14679do :
14680  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
14681if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
14682  cat >>confdefs.h <<_ACEOF
14683#define HAVE_LWP_LWP_H 1
14684_ACEOF
14685
14686fi
14687
14688done
14689
14690	if test $ac_cv_header_lwp_lwp_h = yes ; then
14691		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
14692$as_echo_n "checking for lwp_create in -llwp... " >&6; }
14693if ${ac_cv_lib_lwp_lwp_create+:} false; then :
14694  $as_echo_n "(cached) " >&6
14695else
14696  ac_check_lib_save_LIBS=$LIBS
14697LIBS="-llwp  $LIBS"
14698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14699/* end confdefs.h.  */
14700
14701/* Override any GCC internal prototype to avoid an error.
14702   Use char because int might match the return type of a GCC
14703   builtin and then its argument prototype would still apply.  */
14704#ifdef __cplusplus
14705extern "C"
14706#endif
14707char lwp_create ();
14708int
14709main ()
14710{
14711return lwp_create ();
14712  ;
14713  return 0;
14714}
14715_ACEOF
14716if ac_fn_c_try_link "$LINENO"; then :
14717  ac_cv_lib_lwp_lwp_create=yes
14718else
14719  ac_cv_lib_lwp_lwp_create=no
14720fi
14721rm -f core conftest.err conftest.$ac_objext \
14722    conftest$ac_exeext conftest.$ac_ext
14723LIBS=$ac_check_lib_save_LIBS
14724fi
14725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
14726$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
14727if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
14728  have_lwp=yes
14729else
14730  have_lwp=no
14731fi
14732
14733
14734		if test $have_lwp = yes ; then
14735
14736$as_echo "#define HAVE_LWP 1" >>confdefs.h
14737
14738			LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
14739			ol_link_threads=lwp
14740
14741			if test x$ol_with_yielding_select = xauto ; then
14742				ol_with_yielding_select=no
14743			fi
14744		fi
14745	fi
14746	;;
14747esac
14748
14749if test $ol_with_yielding_select = yes ; then
14750
14751$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
14752
14753fi
14754
14755if test $ol_with_threads = manual ; then
14756		ol_link_threads=yes
14757
14758	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
14759$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
14760
14761	for ac_header in pthread.h sched.h
14762do :
14763  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14764ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14765if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14766  cat >>confdefs.h <<_ACEOF
14767#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14768_ACEOF
14769
14770fi
14771
14772done
14773
14774	for ac_func in sched_yield pthread_yield
14775do :
14776  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14777ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14778if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14779  cat >>confdefs.h <<_ACEOF
14780#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14781_ACEOF
14782
14783fi
14784done
14785
14786
14787	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
14788$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
14789if ${ol_cv_header_linux_threads+:} false; then :
14790  $as_echo_n "(cached) " >&6
14791else
14792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793/* end confdefs.h.  */
14794#include <pthread.h>
14795_ACEOF
14796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14797  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
14798  ol_cv_header_linux_threads=yes
14799else
14800  ol_cv_header_linux_threads=no
14801fi
14802rm -f conftest*
14803
14804
14805fi
14806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
14807$as_echo "$ol_cv_header_linux_threads" >&6; }
14808	if test $ol_cv_header_linux_threads = yes; then
14809
14810$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
14811
14812	fi
14813
14814
14815	for ac_header in mach/cthreads.h
14816do :
14817  ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
14818if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
14819  cat >>confdefs.h <<_ACEOF
14820#define HAVE_MACH_CTHREADS_H 1
14821_ACEOF
14822
14823fi
14824
14825done
14826
14827	for ac_header in lwp/lwp.h
14828do :
14829  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
14830if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
14831  cat >>confdefs.h <<_ACEOF
14832#define HAVE_LWP_LWP_H 1
14833_ACEOF
14834
14835fi
14836
14837done
14838
14839	for ac_header in thread.h synch.h
14840do :
14841  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14842ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14843if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14844  cat >>confdefs.h <<_ACEOF
14845#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14846_ACEOF
14847
14848fi
14849
14850done
14851
14852fi
14853
14854if test $ol_link_threads != no && test $ol_link_threads != nt ; then
14855
14856$as_echo "#define REENTRANT 1" >>confdefs.h
14857
14858
14859$as_echo "#define _REENTRANT 1" >>confdefs.h
14860
14861
14862$as_echo "#define THREAD_SAFE 1" >>confdefs.h
14863
14864
14865$as_echo "#define _THREAD_SAFE 1" >>confdefs.h
14866
14867
14868$as_echo "#define THREADSAFE 1" >>confdefs.h
14869
14870
14871$as_echo "#define _THREADSAFE 1" >>confdefs.h
14872
14873
14874$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
14875
14876
14877			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
14878$as_echo_n "checking for thread specific errno... " >&6; }
14879if ${ol_cv_errno_thread_specific+:} false; then :
14880  $as_echo_n "(cached) " >&6
14881else
14882
14883		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884/* end confdefs.h.  */
14885#include <errno.h>
14886int
14887main ()
14888{
14889errno = 0;
14890  ;
14891  return 0;
14892}
14893_ACEOF
14894if ac_fn_c_try_link "$LINENO"; then :
14895  ol_cv_errno_thread_specific=yes
14896else
14897  ol_cv_errno_thread_specific=no
14898fi
14899rm -f core conftest.err conftest.$ac_objext \
14900    conftest$ac_exeext conftest.$ac_ext
14901
14902fi
14903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
14904$as_echo "$ol_cv_errno_thread_specific" >&6; }
14905
14906			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
14907$as_echo_n "checking for thread specific h_errno... " >&6; }
14908if ${ol_cv_h_errno_thread_specific+:} false; then :
14909  $as_echo_n "(cached) " >&6
14910else
14911
14912		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14913/* end confdefs.h.  */
14914#include <netdb.h>
14915int
14916main ()
14917{
14918h_errno = 0;
14919  ;
14920  return 0;
14921}
14922_ACEOF
14923if ac_fn_c_try_link "$LINENO"; then :
14924  ol_cv_h_errno_thread_specific=yes
14925else
14926  ol_cv_h_errno_thread_specific=no
14927fi
14928rm -f core conftest.err conftest.$ac_objext \
14929    conftest$ac_exeext conftest.$ac_ext
14930
14931fi
14932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
14933$as_echo "$ol_cv_h_errno_thread_specific" >&6; }
14934
14935	if test $ol_cv_errno_thread_specific != yes ||
14936	   test $ol_cv_h_errno_thread_specific != yes ; then
14937		LIBS="$LTHREAD_LIBS $LIBS"
14938		LTHREAD_LIBS=""
14939	fi
14940
14941fi
14942
14943if test $ol_link_threads = no ; then
14944	if test $ol_with_threads = yes ; then
14945		as_fn_error $? "no suitable thread support" "$LINENO" 5
14946	fi
14947
14948	if test $ol_with_threads = auto ; then
14949		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
14950$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
14951		ol_with_threads=no
14952	fi
14953
14954
14955$as_echo "#define NO_THREADS 1" >>confdefs.h
14956
14957	LTHREAD_LIBS=""
14958	BUILD_THREAD=no
14959else
14960	BUILD_THREAD=yes
14961fi
14962
14963if test $ol_link_threads != no ; then
14964
14965$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
14966
14967fi
14968
14969# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14970case "$ol_with_threads" in
14971 no)
14972    ol_pthread_ok=no
14973
14974    ;;
14975 *)
14976    ol_found_pthreads=yes
14977    ;;
14978esac
14979
14980ac_ext=c
14981ac_cpp='$CPP $CPPFLAGS'
14982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14984ac_compiler_gnu=$ac_cv_c_compiler_gnu
14985
14986
14987    case "$ol_found_pthreads" in
14988     yes)
14989	saved_LIBS="$LIBS"
14990	LIBS="$LTHREAD_LIBS $LIBS"
14991	saved_CFLAGS="$CFLAGS"
14992	CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
14993	for ac_func in sem_timedwait
14994do :
14995  ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14996if test "x$ac_cv_func_sem_timedwait" = xyes; then :
14997  cat >>confdefs.h <<_ACEOF
14998#define HAVE_SEM_TIMEDWAIT 1
14999_ACEOF
15000
15001fi
15002done
15003
15004	LIBS="$saved_LIBS"
15005	{ saved_LIBS=; unset saved_LIBS;}
15006	CFLAGS="$saved_CFLAGS"
15007	{ saved_CFLAGS=; unset saved_CFLAGS;}
15008	case "$ac_cv_func_sem_timedwait" in
15009	 yes)
15010	    PTHREAD_LIBS="$LTHREAD_LIBS"
15011	    have_pthreads=yes
15012	    # Bug 2332: With GCC we need to force a reference to libgcc_s
15013	    # (if libgcc_s exists) or the combination of
15014	    # threads + setuid + mlockall does not work on linux because
15015	    # thread cancellation fails to load libgcc_s with dlopen().
15016	    # We have to pass this all as linker options to avoid argument
15017	    # reordering by libtool.
15018	    case "$GCC$with_gnu_ld" in
15019	    yesyes)
15020		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lgcc_s" >&5
15021$as_echo_n "checking for exit in -lgcc_s... " >&6; }
15022if ${ac_cv_lib_gcc_s_exit+:} false; then :
15023  $as_echo_n "(cached) " >&6
15024else
15025  ac_check_lib_save_LIBS=$LIBS
15026LIBS="-lgcc_s  $LIBS"
15027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028/* end confdefs.h.  */
15029
15030/* Override any GCC internal prototype to avoid an error.
15031   Use char because int might match the return type of a GCC
15032   builtin and then its argument prototype would still apply.  */
15033#ifdef __cplusplus
15034extern "C"
15035#endif
15036char exit ();
15037int
15038main ()
15039{
15040return exit ();
15041  ;
15042  return 0;
15043}
15044_ACEOF
15045if ac_fn_c_try_link "$LINENO"; then :
15046  ac_cv_lib_gcc_s_exit=yes
15047else
15048  ac_cv_lib_gcc_s_exit=no
15049fi
15050rm -f core conftest.err conftest.$ac_objext \
15051    conftest$ac_exeext conftest.$ac_ext
15052LIBS=$ac_check_lib_save_LIBS
15053fi
15054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc_s_exit" >&5
15055$as_echo "$ac_cv_lib_gcc_s_exit" >&6; }
15056if test "x$ac_cv_lib_gcc_s_exit" = xyes; then :
15057  PTHREAD_LIBS="$LTHREAD_LIBS -Wl,--no-as-needed,-lgcc_s,--as-needed"
15058fi
15059
15060		;;
15061	    esac
15062	esac
15063    esac
15064esac
15065
15066case "$have_pthreads" in
15067 yes)
15068    CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
15069    saved_LIBS="$LIBS"
15070    LIBS="$LTHREAD_LIBS $LIBS"
15071    saved_CFLAGS="$CFLAGS"
15072    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
15073    # The cast to long int works around a bug in the HP C Compiler
15074# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15075# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15076# This bug is HP SR number 8606223364.
15077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
15078$as_echo_n "checking size of pthread_t... " >&6; }
15079if ${ac_cv_sizeof_pthread_t+:} false; then :
15080  $as_echo_n "(cached) " >&6
15081else
15082  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
15083	    $ac_includes_default
15084	    #include <pthread.h>
15085
15086
15087"; then :
15088
15089else
15090  if test "$ac_cv_type_pthread_t" = yes; then
15091     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15093as_fn_error 77 "cannot compute sizeof (pthread_t)
15094See \`config.log' for more details" "$LINENO" 5; }
15095   else
15096     ac_cv_sizeof_pthread_t=0
15097   fi
15098fi
15099
15100fi
15101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
15102$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
15103
15104
15105
15106cat >>confdefs.h <<_ACEOF
15107#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
15108_ACEOF
15109
15110
15111    LIBISC_PTHREADS_NOTHREADS=pthreads
15112
15113$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
15114
15115    #
15116    # We'd like to use sigwait() too
15117    #
15118    ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
15119if test "x$ac_cv_func_sigwait" = xyes; then :
15120  have_sigwait=yes
15121else
15122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
15123$as_echo_n "checking for sigwait in -lc... " >&6; }
15124if ${ac_cv_lib_c_sigwait+:} false; then :
15125  $as_echo_n "(cached) " >&6
15126else
15127  ac_check_lib_save_LIBS=$LIBS
15128LIBS="-lc  $LIBS"
15129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15130/* end confdefs.h.  */
15131
15132/* Override any GCC internal prototype to avoid an error.
15133   Use char because int might match the return type of a GCC
15134   builtin and then its argument prototype would still apply.  */
15135#ifdef __cplusplus
15136extern "C"
15137#endif
15138char sigwait ();
15139int
15140main ()
15141{
15142return sigwait ();
15143  ;
15144  return 0;
15145}
15146_ACEOF
15147if ac_fn_c_try_link "$LINENO"; then :
15148  ac_cv_lib_c_sigwait=yes
15149else
15150  ac_cv_lib_c_sigwait=no
15151fi
15152rm -f core conftest.err conftest.$ac_objext \
15153    conftest$ac_exeext conftest.$ac_ext
15154LIBS=$ac_check_lib_save_LIBS
15155fi
15156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
15157$as_echo "$ac_cv_lib_c_sigwait" >&6; }
15158if test "x$ac_cv_lib_c_sigwait" = xyes; then :
15159  have_sigwait=yes
15160else
15161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
15162$as_echo_n "checking for sigwait in -lpthread... " >&6; }
15163if ${ac_cv_lib_pthread_sigwait+:} false; then :
15164  $as_echo_n "(cached) " >&6
15165else
15166  ac_check_lib_save_LIBS=$LIBS
15167LIBS="-lpthread  $LIBS"
15168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15169/* end confdefs.h.  */
15170
15171/* Override any GCC internal prototype to avoid an error.
15172   Use char because int might match the return type of a GCC
15173   builtin and then its argument prototype would still apply.  */
15174#ifdef __cplusplus
15175extern "C"
15176#endif
15177char sigwait ();
15178int
15179main ()
15180{
15181return sigwait ();
15182  ;
15183  return 0;
15184}
15185_ACEOF
15186if ac_fn_c_try_link "$LINENO"; then :
15187  ac_cv_lib_pthread_sigwait=yes
15188else
15189  ac_cv_lib_pthread_sigwait=no
15190fi
15191rm -f core conftest.err conftest.$ac_objext \
15192    conftest$ac_exeext conftest.$ac_ext
15193LIBS=$ac_check_lib_save_LIBS
15194fi
15195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
15196$as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
15197if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
15198  have_sigwait=yes
15199else
15200  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
15201$as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
15202if ${ac_cv_lib_pthread__Psigwait+:} false; then :
15203  $as_echo_n "(cached) " >&6
15204else
15205  ac_check_lib_save_LIBS=$LIBS
15206LIBS="-lpthread  $LIBS"
15207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15208/* end confdefs.h.  */
15209
15210/* Override any GCC internal prototype to avoid an error.
15211   Use char because int might match the return type of a GCC
15212   builtin and then its argument prototype would still apply.  */
15213#ifdef __cplusplus
15214extern "C"
15215#endif
15216char _Psigwait ();
15217int
15218main ()
15219{
15220return _Psigwait ();
15221  ;
15222  return 0;
15223}
15224_ACEOF
15225if ac_fn_c_try_link "$LINENO"; then :
15226  ac_cv_lib_pthread__Psigwait=yes
15227else
15228  ac_cv_lib_pthread__Psigwait=no
15229fi
15230rm -f core conftest.err conftest.$ac_objext \
15231    conftest$ac_exeext conftest.$ac_ext
15232LIBS=$ac_check_lib_save_LIBS
15233fi
15234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
15235$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
15236if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
15237  have_sigwait=yes
15238else
15239  have_sigwait=no
15240
15241fi
15242
15243
15244fi
15245
15246
15247fi
15248
15249
15250fi
15251
15252    case "$host:$have_sigwait" in
15253     *-freebsd*:no)
15254	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
15255$as_echo_n "checking for sigwait in -lc_r... " >&6; }
15256if ${ac_cv_lib_c_r_sigwait+:} false; then :
15257  $as_echo_n "(cached) " >&6
15258else
15259  ac_check_lib_save_LIBS=$LIBS
15260LIBS="-lc_r  $LIBS"
15261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262/* end confdefs.h.  */
15263
15264/* Override any GCC internal prototype to avoid an error.
15265   Use char because int might match the return type of a GCC
15266   builtin and then its argument prototype would still apply.  */
15267#ifdef __cplusplus
15268extern "C"
15269#endif
15270char sigwait ();
15271int
15272main ()
15273{
15274return sigwait ();
15275  ;
15276  return 0;
15277}
15278_ACEOF
15279if ac_fn_c_try_link "$LINENO"; then :
15280  ac_cv_lib_c_r_sigwait=yes
15281else
15282  ac_cv_lib_c_r_sigwait=no
15283fi
15284rm -f core conftest.err conftest.$ac_objext \
15285    conftest$ac_exeext conftest.$ac_ext
15286LIBS=$ac_check_lib_save_LIBS
15287fi
15288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
15289$as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
15290if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
15291  have_sigwait=yes
15292
15293fi
15294
15295    esac
15296    case "$have_sigwait" in
15297     yes)
15298	ac_cv_func_sigwait=yes
15299
15300$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
15301
15302    esac
15303
15304    for ac_func in pthread_attr_getstacksize
15305do :
15306  ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
15307if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
15308  cat >>confdefs.h <<_ACEOF
15309#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
15310_ACEOF
15311
15312fi
15313done
15314
15315    for ac_func in pthread_attr_setstacksize sysconf
15316do :
15317  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15318ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15319if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15320  cat >>confdefs.h <<_ACEOF
15321#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15322_ACEOF
15323
15324fi
15325done
15326
15327
15328    case "$host" in
15329     *-freebsd5.[012]|*-freebsd5.[012].*)
15330	;;
15331     *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
15332
15333$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
15334
15335	;;
15336     *-bsdi3.*|*-bsdi4.0*)
15337
15338$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
15339
15340	;;
15341     *-linux*)
15342
15343$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
15344
15345	;;
15346     *-solaris*)
15347	$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
15348
15349	for ac_func in pthread_setconcurrency
15350do :
15351  ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
15352if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
15353  cat >>confdefs.h <<_ACEOF
15354#define HAVE_PTHREAD_SETCONCURRENCY 1
15355_ACEOF
15356
15357fi
15358done
15359
15360	case "$ac_cv_func_pthread_setconcurrency" in
15361	 yes)
15362
15363$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
15364
15365	esac
15366	;;
15367     *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
15368
15369$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
15370
15371	;;
15372    esac
15373    hack_shutup_pthreadonceinit=no
15374    case "$host" in
15375     *-aix5.[123].*)
15376	hack_shutup_pthreadonceinit=yes
15377	;;
15378     *-solaris2.[89])
15379	hack_shutup_pthreadonceinit=yes
15380	;;
15381     *-solaris2.1[0-9])
15382	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
15383$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
15384if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
15385  $as_echo_n "(cached) " >&6
15386else
15387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388/* end confdefs.h.  */
15389
15390			#include <pthread.h>
15391
15392int
15393main ()
15394{
15395
15396		        static pthread_once_t once_test =
15397						PTHREAD_ONCE_INIT;
15398
15399
15400  ;
15401  return 0;
15402}
15403_ACEOF
15404if ac_fn_c_try_compile "$LINENO"; then :
15405  ntp_cv_braces_around_pthread_once_init=no
15406else
15407  ntp_cv_braces_around_pthread_once_init=yes
15408
15409fi
15410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15411
15412fi
15413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
15414$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
15415	case "$ntp_cv_braces_around_pthread_once_init" in
15416	 yes)
15417	    hack_shutup_pthreadonceinit=yes
15418	esac
15419	;;
15420    esac
15421    case "$hack_shutup_pthreadonceinit" in
15422     yes)
15423
15424$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
15425
15426    esac
15427    LIBS="$saved_LIBS"
15428    { saved_LIBS=; unset saved_LIBS;}
15429    CFLAGS="$saved_CFLAGS"
15430    { saved_CFLAGS=; unset saved_CFLAGS;}
15431    ;;
15432 *)
15433    LIBISC_PTHREADS_NOTHREADS=nothreads
15434    ;;
15435esac
15436
15437 if test "$have_pthreads" != "no"; then
15438  PTHREADS_TRUE=
15439  PTHREADS_FALSE='#'
15440else
15441  PTHREADS_TRUE='#'
15442  PTHREADS_FALSE=
15443fi
15444
15445
15446
15447
15448
15449
15450
15451case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
15452 no:yes)
15453    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
15454$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
15455if ${ntp_cv_vsnprintf_percent_m+:} false; then :
15456  $as_echo_n "(cached) " >&6
15457else
15458  if test "$cross_compiling" = yes; then :
15459  ntp_cv_vsnprintf_percent_m=no
15460
15461else
15462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15463/* end confdefs.h.  */
15464
15465		    #include <stdarg.h>
15466		    #include <errno.h>
15467		    #include <stdio.h>
15468		    #include <string.h>
15469
15470		    int call_vsnprintf(
15471			    char *	dst,
15472			    size_t	sz,
15473			    const char *fmt,
15474			    ...
15475			    );
15476
15477		    int call_vsnprintf(
15478			    char *	dst,
15479			    size_t	sz,
15480			    const char *fmt,
15481			    ...
15482			    )
15483		    {
15484			    va_list	ap;
15485			    int		rc;
15486
15487			    va_start(ap, fmt);
15488			    rc = vsnprintf(dst, sz, fmt, ap);
15489			    va_end(ap);
15490
15491			    return rc;
15492		    }
15493
15494int
15495main ()
15496{
15497
15498		    char	sbuf[512];
15499		    char	pbuf[512];
15500		    int		slen;
15501
15502		    strcpy(sbuf, strerror(ENOENT));
15503		    errno = ENOENT;
15504		    slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
15505					  "wrong");
15506		    return strcmp(sbuf, pbuf);
15507
15508
15509  ;
15510  return 0;
15511}
15512_ACEOF
15513if ac_fn_c_try_run "$LINENO"; then :
15514  ntp_cv_vsnprintf_percent_m=yes
15515else
15516  ntp_cv_vsnprintf_percent_m=no
15517fi
15518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15519  conftest.$ac_objext conftest.beam conftest.$ac_ext
15520fi
15521
15522
15523fi
15524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
15525$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
15526    case "$ntp_cv_vsnprintf_percent_m" in
15527     yes)
15528
15529$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
15530
15531    esac
15532esac
15533
15534for ac_header in sys/clockctl.h
15535do :
15536  ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
15537if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
15538  cat >>confdefs.h <<_ACEOF
15539#define HAVE_SYS_CLOCKCTL_H 1
15540_ACEOF
15541
15542fi
15543
15544done
15545
15546
15547# Check whether --enable-clockctl was given.
15548if test "${enable_clockctl+set}" = set; then :
15549  enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
15550else
15551  ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
15552
15553fi
15554
15555
15556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
15557$as_echo_n "checking if we should use /dev/clockctl... " >&6; }
15558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
15559$as_echo "$ntp_use_dev_clockctl" >&6; }
15560
15561
15562for ac_header in sys/capability.h sys/prctl.h
15563do :
15564  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15565ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15566if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15567  cat >>confdefs.h <<_ACEOF
15568#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15569_ACEOF
15570
15571fi
15572
15573done
15574
15575
15576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
15577$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
15578
15579case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
15580 yesyes)
15581    case "$host" in
15582     mips-sgi-irix*)
15583	ntp_have_linuxcaps=no
15584	;;
15585     *) ntp_have_linuxcaps=yes
15586	;;
15587    esac
15588    ;;
15589 *)
15590    ntp_have_linuxcaps=no
15591    ;;
15592esac
15593
15594# Check whether --enable-linuxcaps was given.
15595if test "${enable_linuxcaps+set}" = set; then :
15596  enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
15597
15598fi
15599
15600
15601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
15602$as_echo "$ntp_have_linuxcaps" >&6; }
15603
15604case "$ntp_have_linuxcaps" in
15605 yes)
15606
15607$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
15608
15609    LIBS="$LIBS -lcap"
15610    ;;
15611esac
15612
15613
15614for ac_header in priv.h
15615do :
15616  ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
15617if test "x$ac_cv_header_priv_h" = xyes; then :
15618  cat >>confdefs.h <<_ACEOF
15619#define HAVE_PRIV_H 1
15620_ACEOF
15621
15622fi
15623
15624done
15625
15626
15627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
15628$as_echo_n "checking if we have solaris privileges... " >&6; }
15629
15630case "$ac_cv_header_priv_h" in
15631 yes)
15632    case "$host" in
15633     *-solaris*)
15634	ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
15635if test "x$ac_cv_func_setppriv" = xyes; then :
15636  ntp_have_solarisprivs=yes
15637else
15638  ntp_have_solarisprivs=no
15639
15640fi
15641
15642	;;
15643    esac
15644esac
15645
15646# Check whether --enable-solarisprivs was given.
15647if test "${enable_solarisprivs+set}" = set; then :
15648  enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
15649
15650fi
15651
15652
15653
15654case "$ntp_have_solarisprivs" in
15655 yes)
15656
15657$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
15658
15659esac
15660
15661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
15662$as_echo "$ntp_have_solarisprivs" >&6; }
15663
15664case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
15665 *yes*)
15666
15667$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h
15668
15669esac
15670
15671case "$host" in
15672 *-*-darwin*)
15673    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
15674$as_echo_n "checking for library containing res_9_init... " >&6; }
15675if ${ac_cv_search_res_9_init+:} false; then :
15676  $as_echo_n "(cached) " >&6
15677else
15678  ac_func_search_save_LIBS=$LIBS
15679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680/* end confdefs.h.  */
15681
15682/* Override any GCC internal prototype to avoid an error.
15683   Use char because int might match the return type of a GCC
15684   builtin and then its argument prototype would still apply.  */
15685#ifdef __cplusplus
15686extern "C"
15687#endif
15688char res_9_init ();
15689int
15690main ()
15691{
15692return res_9_init ();
15693  ;
15694  return 0;
15695}
15696_ACEOF
15697for ac_lib in '' resolv; do
15698  if test -z "$ac_lib"; then
15699    ac_res="none required"
15700  else
15701    ac_res=-l$ac_lib
15702    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15703  fi
15704  if ac_fn_c_try_link "$LINENO"; then :
15705  ac_cv_search_res_9_init=$ac_res
15706fi
15707rm -f core conftest.err conftest.$ac_objext \
15708    conftest$ac_exeext
15709  if ${ac_cv_search_res_9_init+:} false; then :
15710  break
15711fi
15712done
15713if ${ac_cv_search_res_9_init+:} false; then :
15714
15715else
15716  ac_cv_search_res_9_init=no
15717fi
15718rm conftest.$ac_ext
15719LIBS=$ac_func_search_save_LIBS
15720fi
15721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
15722$as_echo "$ac_cv_search_res_9_init" >&6; }
15723ac_res=$ac_cv_search_res_9_init
15724if test "$ac_res" != no; then :
15725  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15726
15727fi
15728
15729    ;;
15730 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
15731$as_echo_n "checking for library containing res_init... " >&6; }
15732if ${ac_cv_search_res_init+:} false; then :
15733  $as_echo_n "(cached) " >&6
15734else
15735  ac_func_search_save_LIBS=$LIBS
15736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15737/* end confdefs.h.  */
15738
15739/* Override any GCC internal prototype to avoid an error.
15740   Use char because int might match the return type of a GCC
15741   builtin and then its argument prototype would still apply.  */
15742#ifdef __cplusplus
15743extern "C"
15744#endif
15745char res_init ();
15746int
15747main ()
15748{
15749return res_init ();
15750  ;
15751  return 0;
15752}
15753_ACEOF
15754for ac_lib in '' resolv; do
15755  if test -z "$ac_lib"; then
15756    ac_res="none required"
15757  else
15758    ac_res=-l$ac_lib
15759    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15760  fi
15761  if ac_fn_c_try_link "$LINENO"; then :
15762  ac_cv_search_res_init=$ac_res
15763fi
15764rm -f core conftest.err conftest.$ac_objext \
15765    conftest$ac_exeext
15766  if ${ac_cv_search_res_init+:} false; then :
15767  break
15768fi
15769done
15770if ${ac_cv_search_res_init+:} false; then :
15771
15772else
15773  ac_cv_search_res_init=no
15774fi
15775rm conftest.$ac_ext
15776LIBS=$ac_func_search_save_LIBS
15777fi
15778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
15779$as_echo "$ac_cv_search_res_init" >&6; }
15780ac_res=$ac_cv_search_res_init
15781if test "$ac_res" != no; then :
15782  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15783
15784fi
15785
15786    ;;
15787esac
15788for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
15789do :
15790  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15791ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
15792#  include <sys/types.h>
15793#endif
15794#ifdef HAVE_NETINET_IN_H
15795#  include <netinet/in.h>   /* inet_ functions / structs */
15796#endif
15797#ifdef HAVE_ARPA_NAMESER_H
15798#  include <arpa/nameser.h> /* DNS HEADER struct */
15799#endif
15800#ifdef HAVE_NETDB_H
15801#  include <netdb.h>
15802#endif
15803"
15804if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15805  cat >>confdefs.h <<_ACEOF
15806#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15807_ACEOF
15808
15809fi
15810
15811done
15812
15813
15814#HMS: Why do we do this check so "early"?
15815for ac_func in res_init
15816do :
15817  ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
15818if test "x$ac_cv_func_res_init" = xyes; then :
15819  cat >>confdefs.h <<_ACEOF
15820#define HAVE_RES_INIT 1
15821_ACEOF
15822
15823else
15824  for ac_func in __res_init
15825do :
15826  ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
15827if test "x$ac_cv_func___res_init" = xyes; then :
15828  cat >>confdefs.h <<_ACEOF
15829#define HAVE___RES_INIT 1
15830_ACEOF
15831
15832fi
15833done
15834
15835fi
15836done
15837
15838
15839# We also need -lsocket, but we have tested for that already.
15840ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
15841if test "x$ac_cv_func_inet_ntop" = xyes; then :
15842
15843else
15844
15845$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
15846
15847fi
15848
15849ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
15850if test "x$ac_cv_func_inet_pton" = xyes; then :
15851
15852else
15853
15854$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
15855
15856fi
15857
15858
15859ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15860if test "x$ac_cv_type_uintptr_t" = xyes; then :
15861
15862cat >>confdefs.h <<_ACEOF
15863#define HAVE_UINTPTR_T 1
15864_ACEOF
15865
15866
15867fi
15868ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
15869if test "x$ac_cv_type_int32" = xyes; then :
15870
15871cat >>confdefs.h <<_ACEOF
15872#define HAVE_INT32 1
15873_ACEOF
15874
15875
15876fi
15877ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
15878if test "x$ac_cv_type_u_int32" = xyes; then :
15879
15880cat >>confdefs.h <<_ACEOF
15881#define HAVE_U_INT32 1
15882_ACEOF
15883
15884
15885fi
15886
15887
15888
15889
15890case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
15891 no::yes)
15892    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
15893$as_echo_n "checking for int32 with DNS headers included... " >&6; }
15894if ${ntp_cv_type_int32_with_dns+:} false; then :
15895  $as_echo_n "(cached) " >&6
15896else
15897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898/* end confdefs.h.  */
15899
15900		    #ifdef HAVE_ARPA_NAMESER_H
15901		    # include <arpa/nameser.h>
15902		    #endif
15903		    #include <resolv.h>
15904
15905int
15906main ()
15907{
15908
15909		    size_t cb = sizeof(int32);
15910
15911
15912  ;
15913  return 0;
15914}
15915_ACEOF
15916if ac_fn_c_try_compile "$LINENO"; then :
15917  ntp_cv_type_int32_with_dns=yes
15918else
15919  ntp_cv_type_int32_with_dns=no
15920
15921fi
15922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15923
15924fi
15925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
15926$as_echo "$ntp_cv_type_int32_with_dns" >&6; }
15927    case "$ntp_cv_type_int32_with_dns" in
15928     yes)
15929
15930$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
15931
15932    esac
15933esac
15934
15935case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
15936 no::yes)
15937    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
15938$as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
15939if ${ntp_cv_type_u_int32_with_dns+:} false; then :
15940  $as_echo_n "(cached) " >&6
15941else
15942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15943/* end confdefs.h.  */
15944
15945		    #ifdef HAVE_ARPA_NAMESER_H
15946		    # include <arpa/nameser.h>
15947		    #endif
15948		    #include <resolv.h>
15949
15950int
15951main ()
15952{
15953
15954		    size_t cb = sizeof(u_int32);
15955
15956
15957  ;
15958  return 0;
15959}
15960_ACEOF
15961if ac_fn_c_try_compile "$LINENO"; then :
15962  ntp_cv_type_u_int32_with_dns=yes
15963else
15964  ntp_cv_type_u_int32_with_dns=no
15965
15966fi
15967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15968
15969fi
15970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
15971$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
15972    case "$ntp_cv_type_u_int32_with_dns" in
15973     yes)
15974
15975$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
15976
15977    esac
15978esac
15979
15980for ac_header in sys/timepps.h
15981do :
15982  ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
15983	#ifdef HAVE_SYS_TIME_H
15984	# include <sys/time.h>
15985	#endif
15986	#ifdef HAVE_ERRNO_H
15987	# include <errno.h>
15988	#endif
15989
15990
15991"
15992if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
15993  cat >>confdefs.h <<_ACEOF
15994#define HAVE_SYS_TIMEPPS_H 1
15995_ACEOF
15996
15997fi
15998
15999done
16000
16001
16002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
16003$as_echo_n "checking for struct timespec... " >&6; }
16004if ${ntp_cv_struct_timespec+:} false; then :
16005  $as_echo_n "(cached) " >&6
16006else
16007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008/* end confdefs.h.  */
16009
16010		#include <sys/time.h>
16011		/* Under SunOS, timespec is in sys/timepps.h,
16012		   which needs errno.h and FRAC */
16013		#ifdef HAVE_ERRNO_H
16014		# include <errno.h>
16015		#endif
16016		#ifdef HAVE_SYS_TIMEPPS_H
16017		# define FRAC 4294967296
16018		# include <sys/timepps.h>
16019		#endif
16020
16021int
16022main ()
16023{
16024
16025		struct timespec n;
16026
16027
16028  ;
16029  return 0;
16030}
16031_ACEOF
16032if ac_fn_c_try_compile "$LINENO"; then :
16033  ntp_cv_struct_timespec=yes
16034else
16035  ntp_cv_struct_timespec=no
16036
16037fi
16038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16039
16040fi
16041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
16042$as_echo "$ntp_cv_struct_timespec" >&6; }
16043case "$ntp_cv_struct_timespec" in
16044 yes)
16045
16046$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
16047
16048esac
16049
16050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
16051$as_echo_n "checking for struct ntptimeval... " >&6; }
16052if ${ntp_cv_struct_ntptimeval+:} false; then :
16053  $as_echo_n "(cached) " >&6
16054else
16055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16056/* end confdefs.h.  */
16057
16058		#include <sys/time.h>
16059		#include <sys/timex.h>
16060
16061int
16062main ()
16063{
16064
16065		struct ntptimeval n;
16066
16067
16068  ;
16069  return 0;
16070}
16071_ACEOF
16072if ac_fn_c_try_compile "$LINENO"; then :
16073  ntp_cv_struct_ntptimeval=yes
16074else
16075  ntp_cv_struct_ntptimeval=no
16076
16077fi
16078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16079
16080fi
16081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
16082$as_echo "$ntp_cv_struct_ntptimeval" >&6; }
16083case "$ntp_cv_struct_ntptimeval" in
16084 yes)
16085
16086$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
16087
16088esac
16089
16090for ac_header in md5.h
16091do :
16092  ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
16093	#ifdef HAVE_SYS_TYPES_H
16094	# include <sys/types.h>
16095	#endif
16096
16097
16098"
16099if test "x$ac_cv_header_md5_h" = xyes; then :
16100  cat >>confdefs.h <<_ACEOF
16101#define HAVE_MD5_H 1
16102_ACEOF
16103
16104fi
16105
16106done
16107
16108
16109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
16110$as_echo_n "checking for library containing MD5Init... " >&6; }
16111if ${ac_cv_search_MD5Init+:} false; then :
16112  $as_echo_n "(cached) " >&6
16113else
16114  ac_func_search_save_LIBS=$LIBS
16115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16116/* end confdefs.h.  */
16117
16118/* Override any GCC internal prototype to avoid an error.
16119   Use char because int might match the return type of a GCC
16120   builtin and then its argument prototype would still apply.  */
16121#ifdef __cplusplus
16122extern "C"
16123#endif
16124char MD5Init ();
16125int
16126main ()
16127{
16128return MD5Init ();
16129  ;
16130  return 0;
16131}
16132_ACEOF
16133for ac_lib in '' md5 md; do
16134  if test -z "$ac_lib"; then
16135    ac_res="none required"
16136  else
16137    ac_res=-l$ac_lib
16138    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16139  fi
16140  if ac_fn_c_try_link "$LINENO"; then :
16141  ac_cv_search_MD5Init=$ac_res
16142fi
16143rm -f core conftest.err conftest.$ac_objext \
16144    conftest$ac_exeext
16145  if ${ac_cv_search_MD5Init+:} false; then :
16146  break
16147fi
16148done
16149if ${ac_cv_search_MD5Init+:} false; then :
16150
16151else
16152  ac_cv_search_MD5Init=no
16153fi
16154rm conftest.$ac_ext
16155LIBS=$ac_func_search_save_LIBS
16156fi
16157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
16158$as_echo "$ac_cv_search_MD5Init" >&6; }
16159ac_res=$ac_cv_search_MD5Init
16160if test "$ac_res" != no; then :
16161  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16162
16163fi
16164
16165for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
16166do :
16167  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16168ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16169if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16170  cat >>confdefs.h <<_ACEOF
16171#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16172_ACEOF
16173
16174fi
16175done
16176
16177
16178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
16179$as_echo_n "checking for SIGIO... " >&6; }
16180if ${ntp_cv_hdr_def_sigio+:} false; then :
16181  $as_echo_n "(cached) " >&6
16182else
16183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16184/* end confdefs.h.  */
16185
16186	    #include <signal.h>
16187
16188	    #ifndef SIGIO
16189	    # error
16190	    #endif
16191
16192_ACEOF
16193if ac_fn_c_try_cpp "$LINENO"; then :
16194  ntp_cv_hdr_def_sigio=yes
16195else
16196  ntp_cv_hdr_def_sigio=no
16197
16198fi
16199rm -f conftest.err conftest.i conftest.$ac_ext
16200
16201fi
16202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
16203$as_echo "$ntp_cv_hdr_def_sigio" >&6; }
16204
16205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
16206$as_echo_n "checking if we want to use SIGIO... " >&6; }
16207ans=no
16208case "$ntp_cv_hdr_def_sigio" in
16209 yes)
16210    ans=yes
16211    case "$host" in
16212     alpha*-dec-osf4*|alpha*-dec-osf5*)
16213	ans=no
16214	;;
16215     *-convex-*)
16216	ans=no
16217	;;
16218     *-dec-*)
16219	ans=no
16220	;;
16221     *-pc-cygwin*)
16222	ans=no
16223	;;
16224     *-sni-sysv*)
16225	ans=no
16226	;;
16227     *-stratus-vos)
16228	ans=no
16229	;;
16230     *-univel-sysv*)
16231	ans=no
16232	;;
16233     *-*-irix6*)
16234	ans=no
16235	;;
16236     *-*-freebsd*)
16237	ans=no
16238	;;
16239     *-*-*linux*)
16240	ans=no
16241	;;
16242     *-*-unicosmp*)
16243	ans=no
16244	;;
16245     *-*-kfreebsd*)
16246	ans=no
16247	;;
16248     m68k-*-mint*)
16249	ans=no
16250	;;
16251    esac
16252    ;;
16253esac
16254case "$ans" in
16255 yes)
16256
16257$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
16258
16259esac
16260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
16261$as_echo "$ans" >&6; }
16262
16263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
16264$as_echo_n "checking for SIGPOLL... " >&6; }
16265if ${ntp_cv_hdr_def_sigpoll+:} false; then :
16266  $as_echo_n "(cached) " >&6
16267else
16268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16269/* end confdefs.h.  */
16270
16271	    #include <signal.h>
16272
16273	    #ifndef SIGPOLL
16274	    # error
16275	    #endif
16276
16277_ACEOF
16278if ac_fn_c_try_cpp "$LINENO"; then :
16279  ntp_cv_hdr_def_sigpoll=yes
16280else
16281  ntp_cv_hdr_def_sigpoll=no
16282
16283fi
16284rm -f conftest.err conftest.i conftest.$ac_ext
16285
16286fi
16287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
16288$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
16289
16290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
16291$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
16292ans=no
16293case "$ntp_cv_hdr_def_sigpoll" in
16294 yes)
16295    case "$host" in
16296     mips-sgi-irix*)
16297	ans=no
16298	;;
16299     vax-dec-bsd)
16300	ans=no
16301	;;
16302     *-pc-cygwin*)
16303	ans=no
16304	;;
16305     *-sni-sysv*)
16306	ans=no
16307	;;
16308     *-stratus-vos)
16309	ans=no
16310	;;
16311     *-*-aix[4-9]*)
16312	# XXX Only verified thru AIX6
16313	ans=no
16314	;;
16315     *-*-hpux*)
16316	ans=no
16317	;;
16318     *-*-*linux*)
16319	ans=no
16320	;;
16321     *-*-osf*)
16322	ans=no
16323	;;
16324     *-*-qnx*)
16325	ans=no
16326	;;
16327     *-*-sunos*)
16328	ans=no
16329	;;
16330     *-*-solaris*)
16331	ans=no
16332	;;
16333     *-*-ultrix*)
16334	ans=no
16335	;;
16336     *-*-unicosmp*)
16337	ans=no
16338	;;
16339     *-*-kfreebsd*)
16340	ans=no
16341	;;
16342     *) ans=yes
16343	;;
16344    esac
16345    ;;
16346esac
16347case "$ans" in
16348 yes)
16349
16350$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
16351
16352esac
16353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
16354$as_echo "$ans" >&6; }
16355
16356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
16357$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
16358ans=no
16359case "$ntp_cv_hdr_def_sigpoll" in
16360 yes)
16361    case "$host" in
16362     mips-sgi-irix*)
16363	ans=no
16364	;;
16365     vax-dec-bsd)
16366	ans=no
16367	;;
16368     *-pc-cygwin*)
16369	ans=no
16370	;;
16371     *-sni-sysv*)
16372	ans=no
16373	;;
16374     *-stratus-vos)
16375	ans=no
16376	;;
16377     *-*-aix[4-9]*)
16378	# XXX Only verified thru AIX6
16379	ans=no
16380	;;
16381     *-*-hpux*)
16382	ans=no
16383	;;
16384     *-*-*linux*)
16385	ans=no
16386	;;
16387     *-*-osf*)
16388	ans=no
16389	;;
16390     *-*-sunos*)
16391	ans=no
16392	;;
16393     *-*-ultrix*)
16394	ans=no
16395	;;
16396     *-*-qnx*)
16397	ans=no
16398	;;
16399     *-*-unicosmp*)
16400	ans=no
16401	;;
16402     *-*-kfreebsd*)
16403	ans=no
16404	;;
16405     *) ans=yes
16406	;;
16407    esac
16408    ;;
16409esac
16410case "$ans" in
16411 yes)
16412
16413$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
16414
16415esac
16416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
16417$as_echo "$ans" >&6; }
16418
16419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
16420$as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
16421if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
16422  $as_echo_n "(cached) " >&6
16423else
16424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16425/* end confdefs.h.  */
16426
16427		#include <sys/time.h>
16428
16429int
16430main ()
16431{
16432
16433		gettimeofday(0, 0);
16434		settimeofday(0, 0);
16435
16436
16437  ;
16438  return 0;
16439}
16440_ACEOF
16441if ac_fn_c_try_compile "$LINENO"; then :
16442  ntp_cv_func_Xettimeofday_nargs=2
16443else
16444  ntp_cv_func_Xettimeofday_nargs=1
16445
16446fi
16447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16448
16449fi
16450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
16451$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
16452case "$ntp_cv_func_Xettimeofday_nargs" in
16453 1)
16454
16455$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
16456
16457esac
16458
16459for ac_func in settimeofday
16460do :
16461  ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
16462if test "x$ac_cv_func_settimeofday" = xyes; then :
16463  cat >>confdefs.h <<_ACEOF
16464#define HAVE_SETTIMEOFDAY 1
16465_ACEOF
16466
16467else
16468
16469    case "$host" in
16470     *-*-mpeix*) ac_cv_func_settimeofday=yes
16471    esac
16472
16473fi
16474done
16475
16476
16477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
16478$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
16479ntp_warning='GRONK'
16480ans=none
16481case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
16482 yes*)
16483    ntp_warning=''
16484    ans='clock_settime()'
16485    ;;
16486 noyes*)
16487    ntp_warning='But clock_settime() would be better (if we had it)'
16488    ans='settimeofday()'
16489    ;;
16490 nonoyes)
16491    ntp_warning='Which is the worst of the three'
16492    ans='stime()'
16493    ;;
16494 *)
16495    case "$build" in
16496     $host)
16497	ntp_warning='Which leaves us with nothing to use!'
16498    esac
16499esac
16500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
16501$as_echo "$ans" >&6; }
16502case "$ntp_warning" in
16503 '')
16504    ;;
16505 *)
16506    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
16507$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
16508    ;;
16509esac
16510
16511
16512LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
16513LIBS=$__LIBS
16514{ __LIBS=; unset __LIBS;}
16515
16516
16517
16518# Check whether --enable-shared was given.
16519if test "${enable_shared+set}" = set; then :
16520  enableval=$enable_shared; p=${PACKAGE-default}
16521    case $enableval in
16522    yes) enable_shared=yes ;;
16523    no) enable_shared=no ;;
16524    *)
16525      enable_shared=no
16526      # Look at the argument we got.  We use all the common list separators.
16527      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16528      for pkg in $enableval; do
16529	IFS="$lt_save_ifs"
16530	if test "X$pkg" = "X$p"; then
16531	  enable_shared=yes
16532	fi
16533      done
16534      IFS="$lt_save_ifs"
16535      ;;
16536    esac
16537else
16538  enable_shared=no
16539fi
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549case `pwd` in
16550  *\ * | *\	*)
16551    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
16552$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
16553esac
16554
16555
16556
16557macro_version='2.4.2'
16558macro_revision='1.3337'
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572ltmain="$ac_aux_dir/ltmain.sh"
16573
16574# Backslashify metacharacters that are still active within
16575# double-quoted strings.
16576sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16577
16578# Same as above, but do not quote variable references.
16579double_quote_subst='s/\(["`\\]\)/\\\1/g'
16580
16581# Sed substitution to delay expansion of an escaped shell variable in a
16582# double_quote_subst'ed string.
16583delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16584
16585# Sed substitution to delay expansion of an escaped single quote.
16586delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
16587
16588# Sed substitution to avoid accidental globbing in evaled expressions
16589no_glob_subst='s/\*/\\\*/g'
16590
16591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
16592$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
16593if ${lt_cv_path_NM+:} false; then :
16594  $as_echo_n "(cached) " >&6
16595else
16596  if test -n "$NM"; then
16597  # Let the user override the test.
16598  lt_cv_path_NM="$NM"
16599else
16600  lt_nm_to_check="${ac_tool_prefix}nm"
16601  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
16602    lt_nm_to_check="$lt_nm_to_check nm"
16603  fi
16604  for lt_tmp_nm in $lt_nm_to_check; do
16605    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16606    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
16607      IFS="$lt_save_ifs"
16608      test -z "$ac_dir" && ac_dir=.
16609      tmp_nm="$ac_dir/$lt_tmp_nm"
16610      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
16611	# Check to see if the nm accepts a BSD-compat flag.
16612	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
16613	#   nm: unknown option "B" ignored
16614	# Tru64's nm complains that /dev/null is an invalid object file
16615	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
16616	*/dev/null* | *'Invalid file or object type'*)
16617	  lt_cv_path_NM="$tmp_nm -B"
16618	  break
16619	  ;;
16620	*)
16621	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
16622	  */dev/null*)
16623	    lt_cv_path_NM="$tmp_nm -p"
16624	    break
16625	    ;;
16626	  *)
16627	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
16628	    continue # so that we can try to find one that supports BSD flags
16629	    ;;
16630	  esac
16631	  ;;
16632	esac
16633      fi
16634    done
16635    IFS="$lt_save_ifs"
16636  done
16637  : ${lt_cv_path_NM=no}
16638fi
16639fi
16640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
16641$as_echo "$lt_cv_path_NM" >&6; }
16642if test "$lt_cv_path_NM" != "no"; then
16643  NM="$lt_cv_path_NM"
16644else
16645  # Didn't find any BSD compatible name lister, look for dumpbin.
16646  if test -n "$DUMPBIN"; then :
16647    # Let the user override the test.
16648  else
16649    if test -n "$ac_tool_prefix"; then
16650  for ac_prog in dumpbin "link -dump"
16651  do
16652    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16653set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16655$as_echo_n "checking for $ac_word... " >&6; }
16656if ${ac_cv_prog_DUMPBIN+:} false; then :
16657  $as_echo_n "(cached) " >&6
16658else
16659  if test -n "$DUMPBIN"; then
16660  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
16661else
16662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16663for as_dir in $PATH
16664do
16665  IFS=$as_save_IFS
16666  test -z "$as_dir" && as_dir=.
16667    for ac_exec_ext in '' $ac_executable_extensions; do
16668  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16669    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
16670    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16671    break 2
16672  fi
16673done
16674  done
16675IFS=$as_save_IFS
16676
16677fi
16678fi
16679DUMPBIN=$ac_cv_prog_DUMPBIN
16680if test -n "$DUMPBIN"; then
16681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
16682$as_echo "$DUMPBIN" >&6; }
16683else
16684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16685$as_echo "no" >&6; }
16686fi
16687
16688
16689    test -n "$DUMPBIN" && break
16690  done
16691fi
16692if test -z "$DUMPBIN"; then
16693  ac_ct_DUMPBIN=$DUMPBIN
16694  for ac_prog in dumpbin "link -dump"
16695do
16696  # Extract the first word of "$ac_prog", so it can be a program name with args.
16697set dummy $ac_prog; ac_word=$2
16698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16699$as_echo_n "checking for $ac_word... " >&6; }
16700if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
16701  $as_echo_n "(cached) " >&6
16702else
16703  if test -n "$ac_ct_DUMPBIN"; then
16704  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
16705else
16706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16707for as_dir in $PATH
16708do
16709  IFS=$as_save_IFS
16710  test -z "$as_dir" && as_dir=.
16711    for ac_exec_ext in '' $ac_executable_extensions; do
16712  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16713    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
16714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16715    break 2
16716  fi
16717done
16718  done
16719IFS=$as_save_IFS
16720
16721fi
16722fi
16723ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
16724if test -n "$ac_ct_DUMPBIN"; then
16725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
16726$as_echo "$ac_ct_DUMPBIN" >&6; }
16727else
16728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16729$as_echo "no" >&6; }
16730fi
16731
16732
16733  test -n "$ac_ct_DUMPBIN" && break
16734done
16735
16736  if test "x$ac_ct_DUMPBIN" = x; then
16737    DUMPBIN=":"
16738  else
16739    case $cross_compiling:$ac_tool_warned in
16740yes:)
16741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16743ac_tool_warned=yes ;;
16744esac
16745    DUMPBIN=$ac_ct_DUMPBIN
16746  fi
16747fi
16748
16749    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
16750    *COFF*)
16751      DUMPBIN="$DUMPBIN -symbols"
16752      ;;
16753    *)
16754      DUMPBIN=:
16755      ;;
16756    esac
16757  fi
16758
16759  if test "$DUMPBIN" != ":"; then
16760    NM="$DUMPBIN"
16761  fi
16762fi
16763test -z "$NM" && NM=nm
16764
16765
16766
16767
16768
16769
16770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
16771$as_echo_n "checking the name lister ($NM) interface... " >&6; }
16772if ${lt_cv_nm_interface+:} false; then :
16773  $as_echo_n "(cached) " >&6
16774else
16775  lt_cv_nm_interface="BSD nm"
16776  echo "int some_variable = 0;" > conftest.$ac_ext
16777  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
16778  (eval "$ac_compile" 2>conftest.err)
16779  cat conftest.err >&5
16780  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
16781  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
16782  cat conftest.err >&5
16783  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
16784  cat conftest.out >&5
16785  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
16786    lt_cv_nm_interface="MS dumpbin"
16787  fi
16788  rm -f conftest*
16789fi
16790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
16791$as_echo "$lt_cv_nm_interface" >&6; }
16792
16793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16794$as_echo_n "checking whether ln -s works... " >&6; }
16795LN_S=$as_ln_s
16796if test "$LN_S" = "ln -s"; then
16797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16798$as_echo "yes" >&6; }
16799else
16800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16801$as_echo "no, using $LN_S" >&6; }
16802fi
16803
16804# find the maximum length of command line arguments
16805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
16806$as_echo_n "checking the maximum length of command line arguments... " >&6; }
16807if ${lt_cv_sys_max_cmd_len+:} false; then :
16808  $as_echo_n "(cached) " >&6
16809else
16810    i=0
16811  teststring="ABCD"
16812
16813  case $build_os in
16814  msdosdjgpp*)
16815    # On DJGPP, this test can blow up pretty badly due to problems in libc
16816    # (any single argument exceeding 2000 bytes causes a buffer overrun
16817    # during glob expansion).  Even if it were fixed, the result of this
16818    # check would be larger than it should be.
16819    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
16820    ;;
16821
16822  gnu*)
16823    # Under GNU Hurd, this test is not required because there is
16824    # no limit to the length of command line arguments.
16825    # Libtool will interpret -1 as no limit whatsoever
16826    lt_cv_sys_max_cmd_len=-1;
16827    ;;
16828
16829  cygwin* | mingw* | cegcc*)
16830    # On Win9x/ME, this test blows up -- it succeeds, but takes
16831    # about 5 minutes as the teststring grows exponentially.
16832    # Worse, since 9x/ME are not pre-emptively multitasking,
16833    # you end up with a "frozen" computer, even though with patience
16834    # the test eventually succeeds (with a max line length of 256k).
16835    # Instead, let's just punt: use the minimum linelength reported by
16836    # all of the supported platforms: 8192 (on NT/2K/XP).
16837    lt_cv_sys_max_cmd_len=8192;
16838    ;;
16839
16840  mint*)
16841    # On MiNT this can take a long time and run out of memory.
16842    lt_cv_sys_max_cmd_len=8192;
16843    ;;
16844
16845  amigaos*)
16846    # On AmigaOS with pdksh, this test takes hours, literally.
16847    # So we just punt and use a minimum line length of 8192.
16848    lt_cv_sys_max_cmd_len=8192;
16849    ;;
16850
16851  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
16852    # This has been around since 386BSD, at least.  Likely further.
16853    if test -x /sbin/sysctl; then
16854      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
16855    elif test -x /usr/sbin/sysctl; then
16856      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
16857    else
16858      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
16859    fi
16860    # And add a safety zone
16861    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16862    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16863    ;;
16864
16865  interix*)
16866    # We know the value 262144 and hardcode it with a safety zone (like BSD)
16867    lt_cv_sys_max_cmd_len=196608
16868    ;;
16869
16870  osf*)
16871    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
16872    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
16873    # nice to cause kernel panics so lets avoid the loop below.
16874    # First set a reasonable default.
16875    lt_cv_sys_max_cmd_len=16384
16876    #
16877    if test -x /sbin/sysconfig; then
16878      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
16879        *1*) lt_cv_sys_max_cmd_len=-1 ;;
16880      esac
16881    fi
16882    ;;
16883  sco3.2v5*)
16884    lt_cv_sys_max_cmd_len=102400
16885    ;;
16886  sysv5* | sco5v6* | sysv4.2uw2*)
16887    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
16888    if test -n "$kargmax"; then
16889      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
16890    else
16891      lt_cv_sys_max_cmd_len=32768
16892    fi
16893    ;;
16894  *)
16895    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
16896    if test -n "$lt_cv_sys_max_cmd_len"; then
16897      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16898      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16899    else
16900      # Make teststring a little bigger before we do anything with it.
16901      # a 1K string should be a reasonable start.
16902      for i in 1 2 3 4 5 6 7 8 ; do
16903        teststring=$teststring$teststring
16904      done
16905      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
16906      # If test is not a shell built-in, we'll probably end up computing a
16907      # maximum length that is only half of the actual maximum length, but
16908      # we can't tell.
16909      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
16910	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
16911	      test $i != 17 # 1/2 MB should be enough
16912      do
16913        i=`expr $i + 1`
16914        teststring=$teststring$teststring
16915      done
16916      # Only check the string length outside the loop.
16917      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
16918      teststring=
16919      # Add a significant safety factor because C++ compilers can tack on
16920      # massive amounts of additional arguments before passing them to the
16921      # linker.  It appears as though 1/2 is a usable value.
16922      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16923    fi
16924    ;;
16925  esac
16926
16927fi
16928
16929if test -n $lt_cv_sys_max_cmd_len ; then
16930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
16931$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
16932else
16933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
16934$as_echo "none" >&6; }
16935fi
16936max_cmd_len=$lt_cv_sys_max_cmd_len
16937
16938
16939
16940
16941
16942
16943: ${CP="cp -f"}
16944: ${MV="mv -f"}
16945: ${RM="rm -f"}
16946
16947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
16948$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
16949# Try some XSI features
16950xsi_shell=no
16951( _lt_dummy="a/b/c"
16952  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
16953      = c,a/b,b/c, \
16954    && eval 'test $(( 1 + 1 )) -eq 2 \
16955    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
16956  && xsi_shell=yes
16957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
16958$as_echo "$xsi_shell" >&6; }
16959
16960
16961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
16962$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
16963lt_shell_append=no
16964( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
16965    >/dev/null 2>&1 \
16966  && lt_shell_append=yes
16967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
16968$as_echo "$lt_shell_append" >&6; }
16969
16970
16971if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16972  lt_unset=unset
16973else
16974  lt_unset=false
16975fi
16976
16977
16978
16979
16980
16981# test EBCDIC or ASCII
16982case `echo X|tr X '\101'` in
16983 A) # ASCII based system
16984    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
16985  lt_SP2NL='tr \040 \012'
16986  lt_NL2SP='tr \015\012 \040\040'
16987  ;;
16988 *) # EBCDIC based system
16989  lt_SP2NL='tr \100 \n'
16990  lt_NL2SP='tr \r\n \100\100'
16991  ;;
16992esac
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
17003$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
17004if ${lt_cv_to_host_file_cmd+:} false; then :
17005  $as_echo_n "(cached) " >&6
17006else
17007  case $host in
17008  *-*-mingw* )
17009    case $build in
17010      *-*-mingw* ) # actually msys
17011        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
17012        ;;
17013      *-*-cygwin* )
17014        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
17015        ;;
17016      * ) # otherwise, assume *nix
17017        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
17018        ;;
17019    esac
17020    ;;
17021  *-*-cygwin* )
17022    case $build in
17023      *-*-mingw* ) # actually msys
17024        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
17025        ;;
17026      *-*-cygwin* )
17027        lt_cv_to_host_file_cmd=func_convert_file_noop
17028        ;;
17029      * ) # otherwise, assume *nix
17030        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
17031        ;;
17032    esac
17033    ;;
17034  * ) # unhandled hosts (and "normal" native builds)
17035    lt_cv_to_host_file_cmd=func_convert_file_noop
17036    ;;
17037esac
17038
17039fi
17040
17041to_host_file_cmd=$lt_cv_to_host_file_cmd
17042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
17043$as_echo "$lt_cv_to_host_file_cmd" >&6; }
17044
17045
17046
17047
17048
17049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
17050$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
17051if ${lt_cv_to_tool_file_cmd+:} false; then :
17052  $as_echo_n "(cached) " >&6
17053else
17054  #assume ordinary cross tools, or native build.
17055lt_cv_to_tool_file_cmd=func_convert_file_noop
17056case $host in
17057  *-*-mingw* )
17058    case $build in
17059      *-*-mingw* ) # actually msys
17060        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
17061        ;;
17062    esac
17063    ;;
17064esac
17065
17066fi
17067
17068to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
17070$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
17071
17072
17073
17074
17075
17076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
17077$as_echo_n "checking for $LD option to reload object files... " >&6; }
17078if ${lt_cv_ld_reload_flag+:} false; then :
17079  $as_echo_n "(cached) " >&6
17080else
17081  lt_cv_ld_reload_flag='-r'
17082fi
17083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
17084$as_echo "$lt_cv_ld_reload_flag" >&6; }
17085reload_flag=$lt_cv_ld_reload_flag
17086case $reload_flag in
17087"" | " "*) ;;
17088*) reload_flag=" $reload_flag" ;;
17089esac
17090reload_cmds='$LD$reload_flag -o $output$reload_objs'
17091case $host_os in
17092  cygwin* | mingw* | pw32* | cegcc*)
17093    if test "$GCC" != yes; then
17094      reload_cmds=false
17095    fi
17096    ;;
17097  darwin*)
17098    if test "$GCC" = yes; then
17099      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
17100    else
17101      reload_cmds='$LD$reload_flag -o $output$reload_objs'
17102    fi
17103    ;;
17104esac
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114if test -n "$ac_tool_prefix"; then
17115  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
17116set dummy ${ac_tool_prefix}objdump; ac_word=$2
17117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17118$as_echo_n "checking for $ac_word... " >&6; }
17119if ${ac_cv_prog_OBJDUMP+:} false; then :
17120  $as_echo_n "(cached) " >&6
17121else
17122  if test -n "$OBJDUMP"; then
17123  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
17124else
17125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17126for as_dir in $PATH
17127do
17128  IFS=$as_save_IFS
17129  test -z "$as_dir" && as_dir=.
17130    for ac_exec_ext in '' $ac_executable_extensions; do
17131  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17132    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
17133    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17134    break 2
17135  fi
17136done
17137  done
17138IFS=$as_save_IFS
17139
17140fi
17141fi
17142OBJDUMP=$ac_cv_prog_OBJDUMP
17143if test -n "$OBJDUMP"; then
17144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
17145$as_echo "$OBJDUMP" >&6; }
17146else
17147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17148$as_echo "no" >&6; }
17149fi
17150
17151
17152fi
17153if test -z "$ac_cv_prog_OBJDUMP"; then
17154  ac_ct_OBJDUMP=$OBJDUMP
17155  # Extract the first word of "objdump", so it can be a program name with args.
17156set dummy objdump; ac_word=$2
17157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17158$as_echo_n "checking for $ac_word... " >&6; }
17159if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
17160  $as_echo_n "(cached) " >&6
17161else
17162  if test -n "$ac_ct_OBJDUMP"; then
17163  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
17164else
17165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17166for as_dir in $PATH
17167do
17168  IFS=$as_save_IFS
17169  test -z "$as_dir" && as_dir=.
17170    for ac_exec_ext in '' $ac_executable_extensions; do
17171  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17172    ac_cv_prog_ac_ct_OBJDUMP="objdump"
17173    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17174    break 2
17175  fi
17176done
17177  done
17178IFS=$as_save_IFS
17179
17180fi
17181fi
17182ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
17183if test -n "$ac_ct_OBJDUMP"; then
17184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
17185$as_echo "$ac_ct_OBJDUMP" >&6; }
17186else
17187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17188$as_echo "no" >&6; }
17189fi
17190
17191  if test "x$ac_ct_OBJDUMP" = x; then
17192    OBJDUMP="false"
17193  else
17194    case $cross_compiling:$ac_tool_warned in
17195yes:)
17196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17198ac_tool_warned=yes ;;
17199esac
17200    OBJDUMP=$ac_ct_OBJDUMP
17201  fi
17202else
17203  OBJDUMP="$ac_cv_prog_OBJDUMP"
17204fi
17205
17206test -z "$OBJDUMP" && OBJDUMP=objdump
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
17217$as_echo_n "checking how to recognize dependent libraries... " >&6; }
17218if ${lt_cv_deplibs_check_method+:} false; then :
17219  $as_echo_n "(cached) " >&6
17220else
17221  lt_cv_file_magic_cmd='$MAGIC_CMD'
17222lt_cv_file_magic_test_file=
17223lt_cv_deplibs_check_method='unknown'
17224# Need to set the preceding variable on all platforms that support
17225# interlibrary dependencies.
17226# 'none' -- dependencies not supported.
17227# `unknown' -- same as none, but documents that we really don't know.
17228# 'pass_all' -- all dependencies passed with no checks.
17229# 'test_compile' -- check by making test program.
17230# 'file_magic [[regex]]' -- check by looking for files in library path
17231# which responds to the $file_magic_cmd with a given extended regex.
17232# If you have `file' or equivalent on your system and you're not sure
17233# whether `pass_all' will *always* work, you probably want this one.
17234
17235case $host_os in
17236aix[4-9]*)
17237  lt_cv_deplibs_check_method=pass_all
17238  ;;
17239
17240beos*)
17241  lt_cv_deplibs_check_method=pass_all
17242  ;;
17243
17244bsdi[45]*)
17245  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
17246  lt_cv_file_magic_cmd='/usr/bin/file -L'
17247  lt_cv_file_magic_test_file=/shlib/libc.so
17248  ;;
17249
17250cygwin*)
17251  # func_win32_libid is a shell function defined in ltmain.sh
17252  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
17253  lt_cv_file_magic_cmd='func_win32_libid'
17254  ;;
17255
17256mingw* | pw32*)
17257  # Base MSYS/MinGW do not provide the 'file' command needed by
17258  # func_win32_libid shell function, so use a weaker test based on 'objdump',
17259  # unless we find 'file', for example because we are cross-compiling.
17260  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
17261  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
17262    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
17263    lt_cv_file_magic_cmd='func_win32_libid'
17264  else
17265    # Keep this pattern in sync with the one in func_win32_libid.
17266    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
17267    lt_cv_file_magic_cmd='$OBJDUMP -f'
17268  fi
17269  ;;
17270
17271cegcc*)
17272  # use the weaker test based on 'objdump'. See mingw*.
17273  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
17274  lt_cv_file_magic_cmd='$OBJDUMP -f'
17275  ;;
17276
17277darwin* | rhapsody*)
17278  lt_cv_deplibs_check_method=pass_all
17279  ;;
17280
17281freebsd* | dragonfly*)
17282  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
17283    case $host_cpu in
17284    i*86 )
17285      # Not sure whether the presence of OpenBSD here was a mistake.
17286      # Let's accept both of them until this is cleared up.
17287      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
17288      lt_cv_file_magic_cmd=/usr/bin/file
17289      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
17290      ;;
17291    esac
17292  else
17293    lt_cv_deplibs_check_method=pass_all
17294  fi
17295  ;;
17296
17297gnu*)
17298  lt_cv_deplibs_check_method=pass_all
17299  ;;
17300
17301haiku*)
17302  lt_cv_deplibs_check_method=pass_all
17303  ;;
17304
17305hpux10.20* | hpux11*)
17306  lt_cv_file_magic_cmd=/usr/bin/file
17307  case $host_cpu in
17308  ia64*)
17309    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
17310    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
17311    ;;
17312  hppa*64*)
17313    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]'
17314    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
17315    ;;
17316  *)
17317    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
17318    lt_cv_file_magic_test_file=/usr/lib/libc.sl
17319    ;;
17320  esac
17321  ;;
17322
17323interix[3-9]*)
17324  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
17325  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
17326  ;;
17327
17328irix5* | irix6* | nonstopux*)
17329  case $LD in
17330  *-32|*"-32 ") libmagic=32-bit;;
17331  *-n32|*"-n32 ") libmagic=N32;;
17332  *-64|*"-64 ") libmagic=64-bit;;
17333  *) libmagic=never-match;;
17334  esac
17335  lt_cv_deplibs_check_method=pass_all
17336  ;;
17337
17338# This must be Linux ELF.
17339linux* | k*bsd*-gnu | kopensolaris*-gnu)
17340  lt_cv_deplibs_check_method=pass_all
17341  ;;
17342
17343netbsd*)
17344  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
17345    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
17346  else
17347    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
17348  fi
17349  ;;
17350
17351newos6*)
17352  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
17353  lt_cv_file_magic_cmd=/usr/bin/file
17354  lt_cv_file_magic_test_file=/usr/lib/libnls.so
17355  ;;
17356
17357*nto* | *qnx*)
17358  lt_cv_deplibs_check_method=pass_all
17359  ;;
17360
17361openbsd*)
17362  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17363    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
17364  else
17365    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
17366  fi
17367  ;;
17368
17369osf3* | osf4* | osf5*)
17370  lt_cv_deplibs_check_method=pass_all
17371  ;;
17372
17373rdos*)
17374  lt_cv_deplibs_check_method=pass_all
17375  ;;
17376
17377solaris*)
17378  lt_cv_deplibs_check_method=pass_all
17379  ;;
17380
17381sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17382  lt_cv_deplibs_check_method=pass_all
17383  ;;
17384
17385sysv4 | sysv4.3*)
17386  case $host_vendor in
17387  motorola)
17388    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]'
17389    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
17390    ;;
17391  ncr)
17392    lt_cv_deplibs_check_method=pass_all
17393    ;;
17394  sequent)
17395    lt_cv_file_magic_cmd='/bin/file'
17396    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
17397    ;;
17398  sni)
17399    lt_cv_file_magic_cmd='/bin/file'
17400    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
17401    lt_cv_file_magic_test_file=/lib/libc.so
17402    ;;
17403  siemens)
17404    lt_cv_deplibs_check_method=pass_all
17405    ;;
17406  pc)
17407    lt_cv_deplibs_check_method=pass_all
17408    ;;
17409  esac
17410  ;;
17411
17412tpf*)
17413  lt_cv_deplibs_check_method=pass_all
17414  ;;
17415esac
17416
17417fi
17418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
17419$as_echo "$lt_cv_deplibs_check_method" >&6; }
17420
17421file_magic_glob=
17422want_nocaseglob=no
17423if test "$build" = "$host"; then
17424  case $host_os in
17425  mingw* | pw32*)
17426    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
17427      want_nocaseglob=yes
17428    else
17429      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
17430    fi
17431    ;;
17432  esac
17433fi
17434
17435file_magic_cmd=$lt_cv_file_magic_cmd
17436deplibs_check_method=$lt_cv_deplibs_check_method
17437test -z "$deplibs_check_method" && deplibs_check_method=unknown
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460if test -n "$ac_tool_prefix"; then
17461  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
17462set dummy ${ac_tool_prefix}dlltool; ac_word=$2
17463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17464$as_echo_n "checking for $ac_word... " >&6; }
17465if ${ac_cv_prog_DLLTOOL+:} false; then :
17466  $as_echo_n "(cached) " >&6
17467else
17468  if test -n "$DLLTOOL"; then
17469  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17470else
17471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17472for as_dir in $PATH
17473do
17474  IFS=$as_save_IFS
17475  test -z "$as_dir" && as_dir=.
17476    for ac_exec_ext in '' $ac_executable_extensions; do
17477  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17478    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
17479    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17480    break 2
17481  fi
17482done
17483  done
17484IFS=$as_save_IFS
17485
17486fi
17487fi
17488DLLTOOL=$ac_cv_prog_DLLTOOL
17489if test -n "$DLLTOOL"; then
17490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
17491$as_echo "$DLLTOOL" >&6; }
17492else
17493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17494$as_echo "no" >&6; }
17495fi
17496
17497
17498fi
17499if test -z "$ac_cv_prog_DLLTOOL"; then
17500  ac_ct_DLLTOOL=$DLLTOOL
17501  # Extract the first word of "dlltool", so it can be a program name with args.
17502set dummy dlltool; ac_word=$2
17503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17504$as_echo_n "checking for $ac_word... " >&6; }
17505if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
17506  $as_echo_n "(cached) " >&6
17507else
17508  if test -n "$ac_ct_DLLTOOL"; then
17509  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
17510else
17511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17512for as_dir in $PATH
17513do
17514  IFS=$as_save_IFS
17515  test -z "$as_dir" && as_dir=.
17516    for ac_exec_ext in '' $ac_executable_extensions; do
17517  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17518    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
17519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17520    break 2
17521  fi
17522done
17523  done
17524IFS=$as_save_IFS
17525
17526fi
17527fi
17528ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
17529if test -n "$ac_ct_DLLTOOL"; then
17530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
17531$as_echo "$ac_ct_DLLTOOL" >&6; }
17532else
17533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17534$as_echo "no" >&6; }
17535fi
17536
17537  if test "x$ac_ct_DLLTOOL" = x; then
17538    DLLTOOL="false"
17539  else
17540    case $cross_compiling:$ac_tool_warned in
17541yes:)
17542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17544ac_tool_warned=yes ;;
17545esac
17546    DLLTOOL=$ac_ct_DLLTOOL
17547  fi
17548else
17549  DLLTOOL="$ac_cv_prog_DLLTOOL"
17550fi
17551
17552test -z "$DLLTOOL" && DLLTOOL=dlltool
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
17564$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
17565if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
17566  $as_echo_n "(cached) " >&6
17567else
17568  lt_cv_sharedlib_from_linklib_cmd='unknown'
17569
17570case $host_os in
17571cygwin* | mingw* | pw32* | cegcc*)
17572  # two different shell functions defined in ltmain.sh
17573  # decide which to use based on capabilities of $DLLTOOL
17574  case `$DLLTOOL --help 2>&1` in
17575  *--identify-strict*)
17576    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
17577    ;;
17578  *)
17579    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
17580    ;;
17581  esac
17582  ;;
17583*)
17584  # fallback: assume linklib IS sharedlib
17585  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
17586  ;;
17587esac
17588
17589fi
17590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
17591$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
17592sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
17593test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
17594
17595
17596
17597
17598
17599
17600
17601if test -n "$ac_tool_prefix"; then
17602  for ac_prog in ar
17603  do
17604    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17605set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17607$as_echo_n "checking for $ac_word... " >&6; }
17608if ${ac_cv_prog_AR+:} false; then :
17609  $as_echo_n "(cached) " >&6
17610else
17611  if test -n "$AR"; then
17612  ac_cv_prog_AR="$AR" # Let the user override the test.
17613else
17614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17615for as_dir in $PATH
17616do
17617  IFS=$as_save_IFS
17618  test -z "$as_dir" && as_dir=.
17619    for ac_exec_ext in '' $ac_executable_extensions; do
17620  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17621    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
17622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17623    break 2
17624  fi
17625done
17626  done
17627IFS=$as_save_IFS
17628
17629fi
17630fi
17631AR=$ac_cv_prog_AR
17632if test -n "$AR"; then
17633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
17634$as_echo "$AR" >&6; }
17635else
17636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17637$as_echo "no" >&6; }
17638fi
17639
17640
17641    test -n "$AR" && break
17642  done
17643fi
17644if test -z "$AR"; then
17645  ac_ct_AR=$AR
17646  for ac_prog in ar
17647do
17648  # Extract the first word of "$ac_prog", so it can be a program name with args.
17649set dummy $ac_prog; ac_word=$2
17650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17651$as_echo_n "checking for $ac_word... " >&6; }
17652if ${ac_cv_prog_ac_ct_AR+:} false; then :
17653  $as_echo_n "(cached) " >&6
17654else
17655  if test -n "$ac_ct_AR"; then
17656  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
17657else
17658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17659for as_dir in $PATH
17660do
17661  IFS=$as_save_IFS
17662  test -z "$as_dir" && as_dir=.
17663    for ac_exec_ext in '' $ac_executable_extensions; do
17664  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17665    ac_cv_prog_ac_ct_AR="$ac_prog"
17666    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17667    break 2
17668  fi
17669done
17670  done
17671IFS=$as_save_IFS
17672
17673fi
17674fi
17675ac_ct_AR=$ac_cv_prog_ac_ct_AR
17676if test -n "$ac_ct_AR"; then
17677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
17678$as_echo "$ac_ct_AR" >&6; }
17679else
17680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17681$as_echo "no" >&6; }
17682fi
17683
17684
17685  test -n "$ac_ct_AR" && break
17686done
17687
17688  if test "x$ac_ct_AR" = x; then
17689    AR="false"
17690  else
17691    case $cross_compiling:$ac_tool_warned in
17692yes:)
17693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17695ac_tool_warned=yes ;;
17696esac
17697    AR=$ac_ct_AR
17698  fi
17699fi
17700
17701: ${AR=ar}
17702: ${AR_FLAGS=cru}
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
17715$as_echo_n "checking for archiver @FILE support... " >&6; }
17716if ${lt_cv_ar_at_file+:} false; then :
17717  $as_echo_n "(cached) " >&6
17718else
17719  lt_cv_ar_at_file=no
17720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721/* end confdefs.h.  */
17722
17723int
17724main ()
17725{
17726
17727  ;
17728  return 0;
17729}
17730_ACEOF
17731if ac_fn_c_try_compile "$LINENO"; then :
17732  echo conftest.$ac_objext > conftest.lst
17733      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
17734      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
17735  (eval $lt_ar_try) 2>&5
17736  ac_status=$?
17737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17738  test $ac_status = 0; }
17739      if test "$ac_status" -eq 0; then
17740	# Ensure the archiver fails upon bogus file names.
17741	rm -f conftest.$ac_objext libconftest.a
17742	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
17743  (eval $lt_ar_try) 2>&5
17744  ac_status=$?
17745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17746  test $ac_status = 0; }
17747	if test "$ac_status" -ne 0; then
17748          lt_cv_ar_at_file=@
17749        fi
17750      fi
17751      rm -f conftest.* libconftest.a
17752
17753fi
17754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17755
17756fi
17757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
17758$as_echo "$lt_cv_ar_at_file" >&6; }
17759
17760if test "x$lt_cv_ar_at_file" = xno; then
17761  archiver_list_spec=
17762else
17763  archiver_list_spec=$lt_cv_ar_at_file
17764fi
17765
17766
17767
17768
17769
17770
17771
17772if test -n "$ac_tool_prefix"; then
17773  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
17774set dummy ${ac_tool_prefix}strip; ac_word=$2
17775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17776$as_echo_n "checking for $ac_word... " >&6; }
17777if ${ac_cv_prog_STRIP+:} false; then :
17778  $as_echo_n "(cached) " >&6
17779else
17780  if test -n "$STRIP"; then
17781  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
17782else
17783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17784for as_dir in $PATH
17785do
17786  IFS=$as_save_IFS
17787  test -z "$as_dir" && as_dir=.
17788    for ac_exec_ext in '' $ac_executable_extensions; do
17789  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17790    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
17791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17792    break 2
17793  fi
17794done
17795  done
17796IFS=$as_save_IFS
17797
17798fi
17799fi
17800STRIP=$ac_cv_prog_STRIP
17801if test -n "$STRIP"; then
17802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
17803$as_echo "$STRIP" >&6; }
17804else
17805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17806$as_echo "no" >&6; }
17807fi
17808
17809
17810fi
17811if test -z "$ac_cv_prog_STRIP"; then
17812  ac_ct_STRIP=$STRIP
17813  # Extract the first word of "strip", so it can be a program name with args.
17814set dummy strip; ac_word=$2
17815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17816$as_echo_n "checking for $ac_word... " >&6; }
17817if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
17818  $as_echo_n "(cached) " >&6
17819else
17820  if test -n "$ac_ct_STRIP"; then
17821  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
17822else
17823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17824for as_dir in $PATH
17825do
17826  IFS=$as_save_IFS
17827  test -z "$as_dir" && as_dir=.
17828    for ac_exec_ext in '' $ac_executable_extensions; do
17829  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17830    ac_cv_prog_ac_ct_STRIP="strip"
17831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17832    break 2
17833  fi
17834done
17835  done
17836IFS=$as_save_IFS
17837
17838fi
17839fi
17840ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
17841if test -n "$ac_ct_STRIP"; then
17842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
17843$as_echo "$ac_ct_STRIP" >&6; }
17844else
17845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17846$as_echo "no" >&6; }
17847fi
17848
17849  if test "x$ac_ct_STRIP" = x; then
17850    STRIP=":"
17851  else
17852    case $cross_compiling:$ac_tool_warned in
17853yes:)
17854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17856ac_tool_warned=yes ;;
17857esac
17858    STRIP=$ac_ct_STRIP
17859  fi
17860else
17861  STRIP="$ac_cv_prog_STRIP"
17862fi
17863
17864test -z "$STRIP" && STRIP=:
17865
17866
17867
17868
17869
17870
17871if test -n "$ac_tool_prefix"; then
17872  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17873set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17875$as_echo_n "checking for $ac_word... " >&6; }
17876if ${ac_cv_prog_RANLIB+:} false; then :
17877  $as_echo_n "(cached) " >&6
17878else
17879  if test -n "$RANLIB"; then
17880  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17881else
17882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17883for as_dir in $PATH
17884do
17885  IFS=$as_save_IFS
17886  test -z "$as_dir" && as_dir=.
17887    for ac_exec_ext in '' $ac_executable_extensions; do
17888  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17889    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17891    break 2
17892  fi
17893done
17894  done
17895IFS=$as_save_IFS
17896
17897fi
17898fi
17899RANLIB=$ac_cv_prog_RANLIB
17900if test -n "$RANLIB"; then
17901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17902$as_echo "$RANLIB" >&6; }
17903else
17904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17905$as_echo "no" >&6; }
17906fi
17907
17908
17909fi
17910if test -z "$ac_cv_prog_RANLIB"; then
17911  ac_ct_RANLIB=$RANLIB
17912  # Extract the first word of "ranlib", so it can be a program name with args.
17913set dummy ranlib; ac_word=$2
17914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17915$as_echo_n "checking for $ac_word... " >&6; }
17916if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
17917  $as_echo_n "(cached) " >&6
17918else
17919  if test -n "$ac_ct_RANLIB"; then
17920  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17921else
17922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17923for as_dir in $PATH
17924do
17925  IFS=$as_save_IFS
17926  test -z "$as_dir" && as_dir=.
17927    for ac_exec_ext in '' $ac_executable_extensions; do
17928  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17929    ac_cv_prog_ac_ct_RANLIB="ranlib"
17930    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17931    break 2
17932  fi
17933done
17934  done
17935IFS=$as_save_IFS
17936
17937fi
17938fi
17939ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17940if test -n "$ac_ct_RANLIB"; then
17941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17942$as_echo "$ac_ct_RANLIB" >&6; }
17943else
17944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17945$as_echo "no" >&6; }
17946fi
17947
17948  if test "x$ac_ct_RANLIB" = x; then
17949    RANLIB=":"
17950  else
17951    case $cross_compiling:$ac_tool_warned in
17952yes:)
17953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17955ac_tool_warned=yes ;;
17956esac
17957    RANLIB=$ac_ct_RANLIB
17958  fi
17959else
17960  RANLIB="$ac_cv_prog_RANLIB"
17961fi
17962
17963test -z "$RANLIB" && RANLIB=:
17964
17965
17966
17967
17968
17969
17970# Determine commands to create old-style static archives.
17971old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
17972old_postinstall_cmds='chmod 644 $oldlib'
17973old_postuninstall_cmds=
17974
17975if test -n "$RANLIB"; then
17976  case $host_os in
17977  openbsd*)
17978    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
17979    ;;
17980  *)
17981    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
17982    ;;
17983  esac
17984  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
17985fi
17986
17987case $host_os in
17988  darwin*)
17989    lock_old_archive_extraction=yes ;;
17990  *)
17991    lock_old_archive_extraction=no ;;
17992esac
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032# If no C compiler was specified, use CC.
18033LTCC=${LTCC-"$CC"}
18034
18035# If no C compiler flags were specified, use CFLAGS.
18036LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18037
18038# Allow CC to be a program name with arguments.
18039compiler=$CC
18040
18041
18042# Check for command to grab the raw symbol name followed by C symbol from nm.
18043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
18044$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
18045if ${lt_cv_sys_global_symbol_pipe+:} false; then :
18046  $as_echo_n "(cached) " >&6
18047else
18048
18049# These are sane defaults that work on at least a few old systems.
18050# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
18051
18052# Character class describing NM global symbol codes.
18053symcode='[BCDEGRST]'
18054
18055# Regexp to match symbols that can be accessed directly from C.
18056sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
18057
18058# Define system-specific variables.
18059case $host_os in
18060aix*)
18061  symcode='[BCDT]'
18062  ;;
18063cygwin* | mingw* | pw32* | cegcc*)
18064  symcode='[ABCDGISTW]'
18065  ;;
18066hpux*)
18067  if test "$host_cpu" = ia64; then
18068    symcode='[ABCDEGRST]'
18069  fi
18070  ;;
18071irix* | nonstopux*)
18072  symcode='[BCDEGRST]'
18073  ;;
18074osf*)
18075  symcode='[BCDEGQRST]'
18076  ;;
18077solaris*)
18078  symcode='[BDRT]'
18079  ;;
18080sco3.2v5*)
18081  symcode='[DT]'
18082  ;;
18083sysv4.2uw2*)
18084  symcode='[DT]'
18085  ;;
18086sysv5* | sco5v6* | unixware* | OpenUNIX*)
18087  symcode='[ABDT]'
18088  ;;
18089sysv4)
18090  symcode='[DFNSTU]'
18091  ;;
18092esac
18093
18094# If we're using GNU nm, then use its standard symbol codes.
18095case `$NM -V 2>&1` in
18096*GNU* | *'with BFD'*)
18097  symcode='[ABCDGIRSTW]' ;;
18098esac
18099
18100# Transform an extracted symbol line into a proper C declaration.
18101# Some systems (esp. on ia64) link data and code symbols differently,
18102# so use this general approach.
18103lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
18104
18105# Transform an extracted symbol line into symbol name and symbol address
18106lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
18107lt_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'"
18108
18109# Handle CRLF in mingw tool chain
18110opt_cr=
18111case $build_os in
18112mingw*)
18113  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
18114  ;;
18115esac
18116
18117# Try without a prefix underscore, then with it.
18118for ac_symprfx in "" "_"; do
18119
18120  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
18121  symxfrm="\\1 $ac_symprfx\\2 \\2"
18122
18123  # Write the raw and C identifiers.
18124  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
18125    # Fake it for dumpbin and say T for any non-static function
18126    # and D for any global variable.
18127    # Also find C++ and __fastcall symbols from MSVC++,
18128    # which start with @ or ?.
18129    lt_cv_sys_global_symbol_pipe="$AWK '"\
18130"     {last_section=section; section=\$ 3};"\
18131"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
18132"     \$ 0!~/External *\|/{next};"\
18133"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
18134"     {if(hide[section]) next};"\
18135"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
18136"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
18137"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
18138"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
18139"     ' prfx=^$ac_symprfx"
18140  else
18141    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
18142  fi
18143  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
18144
18145  # Check to see that the pipe works correctly.
18146  pipe_works=no
18147
18148  rm -f conftest*
18149  cat > conftest.$ac_ext <<_LT_EOF
18150#ifdef __cplusplus
18151extern "C" {
18152#endif
18153char nm_test_var;
18154void nm_test_func(void);
18155void nm_test_func(void){}
18156#ifdef __cplusplus
18157}
18158#endif
18159int main(){nm_test_var='a';nm_test_func();return(0);}
18160_LT_EOF
18161
18162  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18163  (eval $ac_compile) 2>&5
18164  ac_status=$?
18165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18166  test $ac_status = 0; }; then
18167    # Now try to grab the symbols.
18168    nlist=conftest.nm
18169    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
18170  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
18171  ac_status=$?
18172  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18173  test $ac_status = 0; } && test -s "$nlist"; then
18174      # Try sorting and uniquifying the output.
18175      if sort "$nlist" | uniq > "$nlist"T; then
18176	mv -f "$nlist"T "$nlist"
18177      else
18178	rm -f "$nlist"T
18179      fi
18180
18181      # Make sure that we snagged all the symbols we need.
18182      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
18183	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
18184	  cat <<_LT_EOF > conftest.$ac_ext
18185/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
18186#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
18187/* DATA imports from DLLs on WIN32 con't be const, because runtime
18188   relocations are performed -- see ld's documentation on pseudo-relocs.  */
18189# define LT_DLSYM_CONST
18190#elif defined(__osf__)
18191/* This system does not cope well with relocations in const data.  */
18192# define LT_DLSYM_CONST
18193#else
18194# define LT_DLSYM_CONST const
18195#endif
18196
18197#ifdef __cplusplus
18198extern "C" {
18199#endif
18200
18201_LT_EOF
18202	  # Now generate the symbol file.
18203	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
18204
18205	  cat <<_LT_EOF >> conftest.$ac_ext
18206
18207/* The mapping between symbol names and symbols.  */
18208LT_DLSYM_CONST struct {
18209  const char *name;
18210  void       *address;
18211}
18212lt__PROGRAM__LTX_preloaded_symbols[] =
18213{
18214  { "@PROGRAM@", (void *) 0 },
18215_LT_EOF
18216	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
18217	  cat <<\_LT_EOF >> conftest.$ac_ext
18218  {0, (void *) 0}
18219};
18220
18221/* This works around a problem in FreeBSD linker */
18222#ifdef FREEBSD_WORKAROUND
18223static const void *lt_preloaded_setup() {
18224  return lt__PROGRAM__LTX_preloaded_symbols;
18225}
18226#endif
18227
18228#ifdef __cplusplus
18229}
18230#endif
18231_LT_EOF
18232	  # Now try linking the two files.
18233	  mv conftest.$ac_objext conftstm.$ac_objext
18234	  lt_globsym_save_LIBS=$LIBS
18235	  lt_globsym_save_CFLAGS=$CFLAGS
18236	  LIBS="conftstm.$ac_objext"
18237	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
18238	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18239  (eval $ac_link) 2>&5
18240  ac_status=$?
18241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18242  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
18243	    pipe_works=yes
18244	  fi
18245	  LIBS=$lt_globsym_save_LIBS
18246	  CFLAGS=$lt_globsym_save_CFLAGS
18247	else
18248	  echo "cannot find nm_test_func in $nlist" >&5
18249	fi
18250      else
18251	echo "cannot find nm_test_var in $nlist" >&5
18252      fi
18253    else
18254      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
18255    fi
18256  else
18257    echo "$progname: failed program was:" >&5
18258    cat conftest.$ac_ext >&5
18259  fi
18260  rm -rf conftest* conftst*
18261
18262  # Do not use the global_symbol_pipe unless it works.
18263  if test "$pipe_works" = yes; then
18264    break
18265  else
18266    lt_cv_sys_global_symbol_pipe=
18267  fi
18268done
18269
18270fi
18271
18272if test -z "$lt_cv_sys_global_symbol_pipe"; then
18273  lt_cv_sys_global_symbol_to_cdecl=
18274fi
18275if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
18276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
18277$as_echo "failed" >&6; }
18278else
18279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18280$as_echo "ok" >&6; }
18281fi
18282
18283# Response file support.
18284if test "$lt_cv_nm_interface" = "MS dumpbin"; then
18285  nm_file_list_spec='@'
18286elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
18287  nm_file_list_spec='@'
18288fi
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
18317$as_echo_n "checking for sysroot... " >&6; }
18318
18319# Check whether --with-sysroot was given.
18320if test "${with_sysroot+set}" = set; then :
18321  withval=$with_sysroot;
18322else
18323  with_sysroot=no
18324fi
18325
18326
18327lt_sysroot=
18328case ${with_sysroot} in #(
18329 yes)
18330   if test "$GCC" = yes; then
18331     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
18332   fi
18333   ;; #(
18334 /*)
18335   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
18336   ;; #(
18337 no|'')
18338   ;; #(
18339 *)
18340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
18341$as_echo "${with_sysroot}" >&6; }
18342   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
18343   ;;
18344esac
18345
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
18347$as_echo "${lt_sysroot:-no}" >&6; }
18348
18349
18350
18351
18352
18353# Check whether --enable-libtool-lock was given.
18354if test "${enable_libtool_lock+set}" = set; then :
18355  enableval=$enable_libtool_lock;
18356fi
18357
18358test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
18359
18360# Some flags need to be propagated to the compiler or linker for good
18361# libtool support.
18362case $host in
18363ia64-*-hpux*)
18364  # Find out which ABI we are using.
18365  echo 'int i;' > conftest.$ac_ext
18366  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18367  (eval $ac_compile) 2>&5
18368  ac_status=$?
18369  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18370  test $ac_status = 0; }; then
18371    case `/usr/bin/file conftest.$ac_objext` in
18372      *ELF-32*)
18373	HPUX_IA64_MODE="32"
18374	;;
18375      *ELF-64*)
18376	HPUX_IA64_MODE="64"
18377	;;
18378    esac
18379  fi
18380  rm -rf conftest*
18381  ;;
18382*-*-irix6*)
18383  # Find out which ABI we are using.
18384  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
18385  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18386  (eval $ac_compile) 2>&5
18387  ac_status=$?
18388  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18389  test $ac_status = 0; }; then
18390    if test "$lt_cv_prog_gnu_ld" = yes; then
18391      case `/usr/bin/file conftest.$ac_objext` in
18392	*32-bit*)
18393	  LD="${LD-ld} -melf32bsmip"
18394	  ;;
18395	*N32*)
18396	  LD="${LD-ld} -melf32bmipn32"
18397	  ;;
18398	*64-bit*)
18399	  LD="${LD-ld} -melf64bmip"
18400	;;
18401      esac
18402    else
18403      case `/usr/bin/file conftest.$ac_objext` in
18404	*32-bit*)
18405	  LD="${LD-ld} -32"
18406	  ;;
18407	*N32*)
18408	  LD="${LD-ld} -n32"
18409	  ;;
18410	*64-bit*)
18411	  LD="${LD-ld} -64"
18412	  ;;
18413      esac
18414    fi
18415  fi
18416  rm -rf conftest*
18417  ;;
18418
18419x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
18420s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
18421  # Find out which ABI we are using.
18422  echo 'int i;' > conftest.$ac_ext
18423  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18424  (eval $ac_compile) 2>&5
18425  ac_status=$?
18426  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18427  test $ac_status = 0; }; then
18428    case `/usr/bin/file conftest.o` in
18429      *32-bit*)
18430	case $host in
18431	  x86_64-*kfreebsd*-gnu)
18432	    LD="${LD-ld} -m elf_i386_fbsd"
18433	    ;;
18434	  x86_64-*linux*)
18435	    LD="${LD-ld} -m elf_i386"
18436	    ;;
18437	  ppc64-*linux*|powerpc64-*linux*)
18438	    LD="${LD-ld} -m elf32ppclinux"
18439	    ;;
18440	  s390x-*linux*)
18441	    LD="${LD-ld} -m elf_s390"
18442	    ;;
18443	  sparc64-*linux*)
18444	    LD="${LD-ld} -m elf32_sparc"
18445	    ;;
18446	esac
18447	;;
18448      *64-bit*)
18449	case $host in
18450	  x86_64-*kfreebsd*-gnu)
18451	    LD="${LD-ld} -m elf_x86_64_fbsd"
18452	    ;;
18453	  x86_64-*linux*)
18454	    LD="${LD-ld} -m elf_x86_64"
18455	    ;;
18456	  ppc*-*linux*|powerpc*-*linux*)
18457	    LD="${LD-ld} -m elf64ppc"
18458	    ;;
18459	  s390*-*linux*|s390*-*tpf*)
18460	    LD="${LD-ld} -m elf64_s390"
18461	    ;;
18462	  sparc*-*linux*)
18463	    LD="${LD-ld} -m elf64_sparc"
18464	    ;;
18465	esac
18466	;;
18467    esac
18468  fi
18469  rm -rf conftest*
18470  ;;
18471
18472*-*-sco3.2v5*)
18473  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
18474  SAVE_CFLAGS="$CFLAGS"
18475  CFLAGS="$CFLAGS -belf"
18476  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
18477$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
18478if ${lt_cv_cc_needs_belf+:} false; then :
18479  $as_echo_n "(cached) " >&6
18480else
18481  ac_ext=c
18482ac_cpp='$CPP $CPPFLAGS'
18483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18485ac_compiler_gnu=$ac_cv_c_compiler_gnu
18486
18487     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18488/* end confdefs.h.  */
18489
18490int
18491main ()
18492{
18493
18494  ;
18495  return 0;
18496}
18497_ACEOF
18498if ac_fn_c_try_link "$LINENO"; then :
18499  lt_cv_cc_needs_belf=yes
18500else
18501  lt_cv_cc_needs_belf=no
18502fi
18503rm -f core conftest.err conftest.$ac_objext \
18504    conftest$ac_exeext conftest.$ac_ext
18505     ac_ext=c
18506ac_cpp='$CPP $CPPFLAGS'
18507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18509ac_compiler_gnu=$ac_cv_c_compiler_gnu
18510
18511fi
18512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
18513$as_echo "$lt_cv_cc_needs_belf" >&6; }
18514  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
18515    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
18516    CFLAGS="$SAVE_CFLAGS"
18517  fi
18518  ;;
18519sparc*-*solaris*)
18520  # Find out which ABI we are using.
18521  echo 'int i;' > conftest.$ac_ext
18522  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18523  (eval $ac_compile) 2>&5
18524  ac_status=$?
18525  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18526  test $ac_status = 0; }; then
18527    case `/usr/bin/file conftest.o` in
18528    *64-bit*)
18529      case $lt_cv_prog_gnu_ld in
18530      yes*) LD="${LD-ld} -m elf64_sparc" ;;
18531      *)
18532	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
18533	  LD="${LD-ld} -64"
18534	fi
18535	;;
18536      esac
18537      ;;
18538    esac
18539  fi
18540  rm -rf conftest*
18541  ;;
18542esac
18543
18544need_locks="$enable_libtool_lock"
18545
18546if test -n "$ac_tool_prefix"; then
18547  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
18548set dummy ${ac_tool_prefix}mt; ac_word=$2
18549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18550$as_echo_n "checking for $ac_word... " >&6; }
18551if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
18552  $as_echo_n "(cached) " >&6
18553else
18554  if test -n "$MANIFEST_TOOL"; then
18555  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
18556else
18557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18558for as_dir in $PATH
18559do
18560  IFS=$as_save_IFS
18561  test -z "$as_dir" && as_dir=.
18562    for ac_exec_ext in '' $ac_executable_extensions; do
18563  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18564    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
18565    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18566    break 2
18567  fi
18568done
18569  done
18570IFS=$as_save_IFS
18571
18572fi
18573fi
18574MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
18575if test -n "$MANIFEST_TOOL"; then
18576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
18577$as_echo "$MANIFEST_TOOL" >&6; }
18578else
18579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18580$as_echo "no" >&6; }
18581fi
18582
18583
18584fi
18585if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
18586  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
18587  # Extract the first word of "mt", so it can be a program name with args.
18588set dummy mt; ac_word=$2
18589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18590$as_echo_n "checking for $ac_word... " >&6; }
18591if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
18592  $as_echo_n "(cached) " >&6
18593else
18594  if test -n "$ac_ct_MANIFEST_TOOL"; then
18595  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
18596else
18597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18598for as_dir in $PATH
18599do
18600  IFS=$as_save_IFS
18601  test -z "$as_dir" && as_dir=.
18602    for ac_exec_ext in '' $ac_executable_extensions; do
18603  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18604    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
18605    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18606    break 2
18607  fi
18608done
18609  done
18610IFS=$as_save_IFS
18611
18612fi
18613fi
18614ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
18615if test -n "$ac_ct_MANIFEST_TOOL"; then
18616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
18617$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
18618else
18619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18620$as_echo "no" >&6; }
18621fi
18622
18623  if test "x$ac_ct_MANIFEST_TOOL" = x; then
18624    MANIFEST_TOOL=":"
18625  else
18626    case $cross_compiling:$ac_tool_warned in
18627yes:)
18628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18630ac_tool_warned=yes ;;
18631esac
18632    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
18633  fi
18634else
18635  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
18636fi
18637
18638test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
18639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
18640$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
18641if ${lt_cv_path_mainfest_tool+:} false; then :
18642  $as_echo_n "(cached) " >&6
18643else
18644  lt_cv_path_mainfest_tool=no
18645  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
18646  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
18647  cat conftest.err >&5
18648  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
18649    lt_cv_path_mainfest_tool=yes
18650  fi
18651  rm -f conftest*
18652fi
18653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
18654$as_echo "$lt_cv_path_mainfest_tool" >&6; }
18655if test "x$lt_cv_path_mainfest_tool" != xyes; then
18656  MANIFEST_TOOL=:
18657fi
18658
18659
18660
18661
18662
18663
18664  case $host_os in
18665    rhapsody* | darwin*)
18666    if test -n "$ac_tool_prefix"; then
18667  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
18668set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
18669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18670$as_echo_n "checking for $ac_word... " >&6; }
18671if ${ac_cv_prog_DSYMUTIL+:} false; then :
18672  $as_echo_n "(cached) " >&6
18673else
18674  if test -n "$DSYMUTIL"; then
18675  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
18676else
18677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18678for as_dir in $PATH
18679do
18680  IFS=$as_save_IFS
18681  test -z "$as_dir" && as_dir=.
18682    for ac_exec_ext in '' $ac_executable_extensions; do
18683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18684    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
18685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18686    break 2
18687  fi
18688done
18689  done
18690IFS=$as_save_IFS
18691
18692fi
18693fi
18694DSYMUTIL=$ac_cv_prog_DSYMUTIL
18695if test -n "$DSYMUTIL"; then
18696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18697$as_echo "$DSYMUTIL" >&6; }
18698else
18699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18700$as_echo "no" >&6; }
18701fi
18702
18703
18704fi
18705if test -z "$ac_cv_prog_DSYMUTIL"; then
18706  ac_ct_DSYMUTIL=$DSYMUTIL
18707  # Extract the first word of "dsymutil", so it can be a program name with args.
18708set dummy dsymutil; ac_word=$2
18709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18710$as_echo_n "checking for $ac_word... " >&6; }
18711if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
18712  $as_echo_n "(cached) " >&6
18713else
18714  if test -n "$ac_ct_DSYMUTIL"; then
18715  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
18716else
18717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18718for as_dir in $PATH
18719do
18720  IFS=$as_save_IFS
18721  test -z "$as_dir" && as_dir=.
18722    for ac_exec_ext in '' $ac_executable_extensions; do
18723  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18724    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
18725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18726    break 2
18727  fi
18728done
18729  done
18730IFS=$as_save_IFS
18731
18732fi
18733fi
18734ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
18735if test -n "$ac_ct_DSYMUTIL"; then
18736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
18737$as_echo "$ac_ct_DSYMUTIL" >&6; }
18738else
18739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18740$as_echo "no" >&6; }
18741fi
18742
18743  if test "x$ac_ct_DSYMUTIL" = x; then
18744    DSYMUTIL=":"
18745  else
18746    case $cross_compiling:$ac_tool_warned in
18747yes:)
18748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18750ac_tool_warned=yes ;;
18751esac
18752    DSYMUTIL=$ac_ct_DSYMUTIL
18753  fi
18754else
18755  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
18756fi
18757
18758    if test -n "$ac_tool_prefix"; then
18759  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
18760set dummy ${ac_tool_prefix}nmedit; ac_word=$2
18761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18762$as_echo_n "checking for $ac_word... " >&6; }
18763if ${ac_cv_prog_NMEDIT+:} false; then :
18764  $as_echo_n "(cached) " >&6
18765else
18766  if test -n "$NMEDIT"; then
18767  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
18768else
18769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18770for as_dir in $PATH
18771do
18772  IFS=$as_save_IFS
18773  test -z "$as_dir" && as_dir=.
18774    for ac_exec_ext in '' $ac_executable_extensions; do
18775  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18776    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
18777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18778    break 2
18779  fi
18780done
18781  done
18782IFS=$as_save_IFS
18783
18784fi
18785fi
18786NMEDIT=$ac_cv_prog_NMEDIT
18787if test -n "$NMEDIT"; then
18788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
18789$as_echo "$NMEDIT" >&6; }
18790else
18791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18792$as_echo "no" >&6; }
18793fi
18794
18795
18796fi
18797if test -z "$ac_cv_prog_NMEDIT"; then
18798  ac_ct_NMEDIT=$NMEDIT
18799  # Extract the first word of "nmedit", so it can be a program name with args.
18800set dummy nmedit; ac_word=$2
18801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18802$as_echo_n "checking for $ac_word... " >&6; }
18803if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
18804  $as_echo_n "(cached) " >&6
18805else
18806  if test -n "$ac_ct_NMEDIT"; then
18807  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
18808else
18809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18810for as_dir in $PATH
18811do
18812  IFS=$as_save_IFS
18813  test -z "$as_dir" && as_dir=.
18814    for ac_exec_ext in '' $ac_executable_extensions; do
18815  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18816    ac_cv_prog_ac_ct_NMEDIT="nmedit"
18817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18818    break 2
18819  fi
18820done
18821  done
18822IFS=$as_save_IFS
18823
18824fi
18825fi
18826ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
18827if test -n "$ac_ct_NMEDIT"; then
18828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
18829$as_echo "$ac_ct_NMEDIT" >&6; }
18830else
18831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18832$as_echo "no" >&6; }
18833fi
18834
18835  if test "x$ac_ct_NMEDIT" = x; then
18836    NMEDIT=":"
18837  else
18838    case $cross_compiling:$ac_tool_warned in
18839yes:)
18840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18842ac_tool_warned=yes ;;
18843esac
18844    NMEDIT=$ac_ct_NMEDIT
18845  fi
18846else
18847  NMEDIT="$ac_cv_prog_NMEDIT"
18848fi
18849
18850    if test -n "$ac_tool_prefix"; then
18851  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
18852set dummy ${ac_tool_prefix}lipo; ac_word=$2
18853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18854$as_echo_n "checking for $ac_word... " >&6; }
18855if ${ac_cv_prog_LIPO+:} false; then :
18856  $as_echo_n "(cached) " >&6
18857else
18858  if test -n "$LIPO"; then
18859  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
18860else
18861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18862for as_dir in $PATH
18863do
18864  IFS=$as_save_IFS
18865  test -z "$as_dir" && as_dir=.
18866    for ac_exec_ext in '' $ac_executable_extensions; do
18867  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18868    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
18869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18870    break 2
18871  fi
18872done
18873  done
18874IFS=$as_save_IFS
18875
18876fi
18877fi
18878LIPO=$ac_cv_prog_LIPO
18879if test -n "$LIPO"; then
18880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
18881$as_echo "$LIPO" >&6; }
18882else
18883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18884$as_echo "no" >&6; }
18885fi
18886
18887
18888fi
18889if test -z "$ac_cv_prog_LIPO"; then
18890  ac_ct_LIPO=$LIPO
18891  # Extract the first word of "lipo", so it can be a program name with args.
18892set dummy lipo; ac_word=$2
18893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18894$as_echo_n "checking for $ac_word... " >&6; }
18895if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
18896  $as_echo_n "(cached) " >&6
18897else
18898  if test -n "$ac_ct_LIPO"; then
18899  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
18900else
18901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18902for as_dir in $PATH
18903do
18904  IFS=$as_save_IFS
18905  test -z "$as_dir" && as_dir=.
18906    for ac_exec_ext in '' $ac_executable_extensions; do
18907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18908    ac_cv_prog_ac_ct_LIPO="lipo"
18909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18910    break 2
18911  fi
18912done
18913  done
18914IFS=$as_save_IFS
18915
18916fi
18917fi
18918ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
18919if test -n "$ac_ct_LIPO"; then
18920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
18921$as_echo "$ac_ct_LIPO" >&6; }
18922else
18923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18924$as_echo "no" >&6; }
18925fi
18926
18927  if test "x$ac_ct_LIPO" = x; then
18928    LIPO=":"
18929  else
18930    case $cross_compiling:$ac_tool_warned in
18931yes:)
18932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18934ac_tool_warned=yes ;;
18935esac
18936    LIPO=$ac_ct_LIPO
18937  fi
18938else
18939  LIPO="$ac_cv_prog_LIPO"
18940fi
18941
18942    if test -n "$ac_tool_prefix"; then
18943  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
18944set dummy ${ac_tool_prefix}otool; ac_word=$2
18945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18946$as_echo_n "checking for $ac_word... " >&6; }
18947if ${ac_cv_prog_OTOOL+:} false; then :
18948  $as_echo_n "(cached) " >&6
18949else
18950  if test -n "$OTOOL"; then
18951  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
18952else
18953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18954for as_dir in $PATH
18955do
18956  IFS=$as_save_IFS
18957  test -z "$as_dir" && as_dir=.
18958    for ac_exec_ext in '' $ac_executable_extensions; do
18959  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18960    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
18961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18962    break 2
18963  fi
18964done
18965  done
18966IFS=$as_save_IFS
18967
18968fi
18969fi
18970OTOOL=$ac_cv_prog_OTOOL
18971if test -n "$OTOOL"; then
18972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
18973$as_echo "$OTOOL" >&6; }
18974else
18975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18976$as_echo "no" >&6; }
18977fi
18978
18979
18980fi
18981if test -z "$ac_cv_prog_OTOOL"; then
18982  ac_ct_OTOOL=$OTOOL
18983  # Extract the first word of "otool", so it can be a program name with args.
18984set dummy otool; ac_word=$2
18985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18986$as_echo_n "checking for $ac_word... " >&6; }
18987if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
18988  $as_echo_n "(cached) " >&6
18989else
18990  if test -n "$ac_ct_OTOOL"; then
18991  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
18992else
18993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18994for as_dir in $PATH
18995do
18996  IFS=$as_save_IFS
18997  test -z "$as_dir" && as_dir=.
18998    for ac_exec_ext in '' $ac_executable_extensions; do
18999  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19000    ac_cv_prog_ac_ct_OTOOL="otool"
19001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19002    break 2
19003  fi
19004done
19005  done
19006IFS=$as_save_IFS
19007
19008fi
19009fi
19010ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
19011if test -n "$ac_ct_OTOOL"; then
19012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
19013$as_echo "$ac_ct_OTOOL" >&6; }
19014else
19015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19016$as_echo "no" >&6; }
19017fi
19018
19019  if test "x$ac_ct_OTOOL" = x; then
19020    OTOOL=":"
19021  else
19022    case $cross_compiling:$ac_tool_warned in
19023yes:)
19024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19026ac_tool_warned=yes ;;
19027esac
19028    OTOOL=$ac_ct_OTOOL
19029  fi
19030else
19031  OTOOL="$ac_cv_prog_OTOOL"
19032fi
19033
19034    if test -n "$ac_tool_prefix"; then
19035  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
19036set dummy ${ac_tool_prefix}otool64; ac_word=$2
19037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19038$as_echo_n "checking for $ac_word... " >&6; }
19039if ${ac_cv_prog_OTOOL64+:} false; then :
19040  $as_echo_n "(cached) " >&6
19041else
19042  if test -n "$OTOOL64"; then
19043  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
19044else
19045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19046for as_dir in $PATH
19047do
19048  IFS=$as_save_IFS
19049  test -z "$as_dir" && as_dir=.
19050    for ac_exec_ext in '' $ac_executable_extensions; do
19051  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19052    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
19053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19054    break 2
19055  fi
19056done
19057  done
19058IFS=$as_save_IFS
19059
19060fi
19061fi
19062OTOOL64=$ac_cv_prog_OTOOL64
19063if test -n "$OTOOL64"; then
19064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
19065$as_echo "$OTOOL64" >&6; }
19066else
19067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19068$as_echo "no" >&6; }
19069fi
19070
19071
19072fi
19073if test -z "$ac_cv_prog_OTOOL64"; then
19074  ac_ct_OTOOL64=$OTOOL64
19075  # Extract the first word of "otool64", so it can be a program name with args.
19076set dummy otool64; ac_word=$2
19077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19078$as_echo_n "checking for $ac_word... " >&6; }
19079if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
19080  $as_echo_n "(cached) " >&6
19081else
19082  if test -n "$ac_ct_OTOOL64"; then
19083  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
19084else
19085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19086for as_dir in $PATH
19087do
19088  IFS=$as_save_IFS
19089  test -z "$as_dir" && as_dir=.
19090    for ac_exec_ext in '' $ac_executable_extensions; do
19091  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19092    ac_cv_prog_ac_ct_OTOOL64="otool64"
19093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19094    break 2
19095  fi
19096done
19097  done
19098IFS=$as_save_IFS
19099
19100fi
19101fi
19102ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
19103if test -n "$ac_ct_OTOOL64"; then
19104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
19105$as_echo "$ac_ct_OTOOL64" >&6; }
19106else
19107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19108$as_echo "no" >&6; }
19109fi
19110
19111  if test "x$ac_ct_OTOOL64" = x; then
19112    OTOOL64=":"
19113  else
19114    case $cross_compiling:$ac_tool_warned in
19115yes:)
19116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19118ac_tool_warned=yes ;;
19119esac
19120    OTOOL64=$ac_ct_OTOOL64
19121  fi
19122else
19123  OTOOL64="$ac_cv_prog_OTOOL64"
19124fi
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
19153$as_echo_n "checking for -single_module linker flag... " >&6; }
19154if ${lt_cv_apple_cc_single_mod+:} false; then :
19155  $as_echo_n "(cached) " >&6
19156else
19157  lt_cv_apple_cc_single_mod=no
19158      if test -z "${LT_MULTI_MODULE}"; then
19159	# By default we will add the -single_module flag. You can override
19160	# by either setting the environment variable LT_MULTI_MODULE
19161	# non-empty at configure time, or by adding -multi_module to the
19162	# link flags.
19163	rm -rf libconftest.dylib*
19164	echo "int foo(void){return 1;}" > conftest.c
19165	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
19166-dynamiclib -Wl,-single_module conftest.c" >&5
19167	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
19168	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
19169        _lt_result=$?
19170	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
19171	  lt_cv_apple_cc_single_mod=yes
19172	else
19173	  cat conftest.err >&5
19174	fi
19175	rm -rf libconftest.dylib*
19176	rm -f conftest.*
19177      fi
19178fi
19179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
19180$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
19181    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
19182$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
19183if ${lt_cv_ld_exported_symbols_list+:} false; then :
19184  $as_echo_n "(cached) " >&6
19185else
19186  lt_cv_ld_exported_symbols_list=no
19187      save_LDFLAGS=$LDFLAGS
19188      echo "_main" > conftest.sym
19189      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
19190      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19191/* end confdefs.h.  */
19192
19193int
19194main ()
19195{
19196
19197  ;
19198  return 0;
19199}
19200_ACEOF
19201if ac_fn_c_try_link "$LINENO"; then :
19202  lt_cv_ld_exported_symbols_list=yes
19203else
19204  lt_cv_ld_exported_symbols_list=no
19205fi
19206rm -f core conftest.err conftest.$ac_objext \
19207    conftest$ac_exeext conftest.$ac_ext
19208	LDFLAGS="$save_LDFLAGS"
19209
19210fi
19211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
19212$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
19213    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
19214$as_echo_n "checking for -force_load linker flag... " >&6; }
19215if ${lt_cv_ld_force_load+:} false; then :
19216  $as_echo_n "(cached) " >&6
19217else
19218  lt_cv_ld_force_load=no
19219      cat > conftest.c << _LT_EOF
19220int forced_loaded() { return 2;}
19221_LT_EOF
19222      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
19223      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
19224      echo "$AR cru libconftest.a conftest.o" >&5
19225      $AR cru libconftest.a conftest.o 2>&5
19226      echo "$RANLIB libconftest.a" >&5
19227      $RANLIB libconftest.a 2>&5
19228      cat > conftest.c << _LT_EOF
19229int main() { return 0;}
19230_LT_EOF
19231      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
19232      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
19233      _lt_result=$?
19234      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
19235	lt_cv_ld_force_load=yes
19236      else
19237	cat conftest.err >&5
19238      fi
19239        rm -f conftest.err libconftest.a conftest conftest.c
19240        rm -rf conftest.dSYM
19241
19242fi
19243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
19244$as_echo "$lt_cv_ld_force_load" >&6; }
19245    case $host_os in
19246    rhapsody* | darwin1.[012])
19247      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
19248    darwin1.*)
19249      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
19250    darwin*) # darwin 5.x on
19251      # if running on 10.5 or later, the deployment target defaults
19252      # to the OS version, if on x86, and 10.4, the deployment
19253      # target defaults to 10.4. Don't you love it?
19254      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
19255	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
19256	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
19257	10.[012]*)
19258	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
19259	10.*)
19260	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
19261      esac
19262    ;;
19263  esac
19264    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
19265      _lt_dar_single_mod='$single_module'
19266    fi
19267    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
19268      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
19269    else
19270      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
19271    fi
19272    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
19273      _lt_dsymutil='~$DSYMUTIL $lib || :'
19274    else
19275      _lt_dsymutil=
19276    fi
19277    ;;
19278  esac
19279
19280for ac_header in dlfcn.h
19281do :
19282  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
19283"
19284if test "x$ac_cv_header_dlfcn_h" = xyes; then :
19285  cat >>confdefs.h <<_ACEOF
19286#define HAVE_DLFCN_H 1
19287_ACEOF
19288
19289fi
19290
19291done
19292
19293
19294
19295
19296
19297# Set options
19298
19299
19300
19301        enable_dlopen=no
19302
19303
19304  enable_win32_dll=no
19305
19306
19307
19308  # Check whether --enable-static was given.
19309if test "${enable_static+set}" = set; then :
19310  enableval=$enable_static; p=${PACKAGE-default}
19311    case $enableval in
19312    yes) enable_static=yes ;;
19313    no) enable_static=no ;;
19314    *)
19315     enable_static=no
19316      # Look at the argument we got.  We use all the common list separators.
19317      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
19318      for pkg in $enableval; do
19319	IFS="$lt_save_ifs"
19320	if test "X$pkg" = "X$p"; then
19321	  enable_static=yes
19322	fi
19323      done
19324      IFS="$lt_save_ifs"
19325      ;;
19326    esac
19327else
19328  enable_static=yes
19329fi
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340# Check whether --with-pic was given.
19341if test "${with_pic+set}" = set; then :
19342  withval=$with_pic; pic_mode="$withval"
19343else
19344  pic_mode=default
19345fi
19346
19347
19348test -z "$pic_mode" && pic_mode=default
19349
19350
19351
19352
19353
19354
19355
19356  # Check whether --enable-fast-install was given.
19357if test "${enable_fast_install+set}" = set; then :
19358  enableval=$enable_fast_install; p=${PACKAGE-default}
19359    case $enableval in
19360    yes) enable_fast_install=yes ;;
19361    no) enable_fast_install=no ;;
19362    *)
19363      enable_fast_install=no
19364      # Look at the argument we got.  We use all the common list separators.
19365      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
19366      for pkg in $enableval; do
19367	IFS="$lt_save_ifs"
19368	if test "X$pkg" = "X$p"; then
19369	  enable_fast_install=yes
19370	fi
19371      done
19372      IFS="$lt_save_ifs"
19373      ;;
19374    esac
19375else
19376  enable_fast_install=yes
19377fi
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389# This can be used to rebuild libtool when needed
19390LIBTOOL_DEPS="$ltmain"
19391
19392# Always use our own libtool.
19393LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420test -z "$LN_S" && LN_S="ln -s"
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435if test -n "${ZSH_VERSION+set}" ; then
19436   setopt NO_GLOB_SUBST
19437fi
19438
19439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
19440$as_echo_n "checking for objdir... " >&6; }
19441if ${lt_cv_objdir+:} false; then :
19442  $as_echo_n "(cached) " >&6
19443else
19444  rm -f .libs 2>/dev/null
19445mkdir .libs 2>/dev/null
19446if test -d .libs; then
19447  lt_cv_objdir=.libs
19448else
19449  # MS-DOS does not allow filenames that begin with a dot.
19450  lt_cv_objdir=_libs
19451fi
19452rmdir .libs 2>/dev/null
19453fi
19454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
19455$as_echo "$lt_cv_objdir" >&6; }
19456objdir=$lt_cv_objdir
19457
19458
19459
19460
19461
19462cat >>confdefs.h <<_ACEOF
19463#define LT_OBJDIR "$lt_cv_objdir/"
19464_ACEOF
19465
19466
19467
19468
19469case $host_os in
19470aix3*)
19471  # AIX sometimes has problems with the GCC collect2 program.  For some
19472  # reason, if we set the COLLECT_NAMES environment variable, the problems
19473  # vanish in a puff of smoke.
19474  if test "X${COLLECT_NAMES+set}" != Xset; then
19475    COLLECT_NAMES=
19476    export COLLECT_NAMES
19477  fi
19478  ;;
19479esac
19480
19481# Global variables:
19482ofile=libtool
19483can_build_shared=yes
19484
19485# All known linkers require a `.a' archive for static linking (except MSVC,
19486# which needs '.lib').
19487libext=a
19488
19489with_gnu_ld="$lt_cv_prog_gnu_ld"
19490
19491old_CC="$CC"
19492old_CFLAGS="$CFLAGS"
19493
19494# Set sane defaults for various variables
19495test -z "$CC" && CC=cc
19496test -z "$LTCC" && LTCC=$CC
19497test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
19498test -z "$LD" && LD=ld
19499test -z "$ac_objext" && ac_objext=o
19500
19501for cc_temp in $compiler""; do
19502  case $cc_temp in
19503    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19504    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19505    \-*) ;;
19506    *) break;;
19507  esac
19508done
19509cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19510
19511
19512# Only perform the check for file, if the check method requires it
19513test -z "$MAGIC_CMD" && MAGIC_CMD=file
19514case $deplibs_check_method in
19515file_magic*)
19516  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
19517    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
19518$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
19519if ${lt_cv_path_MAGIC_CMD+:} false; then :
19520  $as_echo_n "(cached) " >&6
19521else
19522  case $MAGIC_CMD in
19523[\\/*] |  ?:[\\/]*)
19524  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
19525  ;;
19526*)
19527  lt_save_MAGIC_CMD="$MAGIC_CMD"
19528  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19529  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
19530  for ac_dir in $ac_dummy; do
19531    IFS="$lt_save_ifs"
19532    test -z "$ac_dir" && ac_dir=.
19533    if test -f $ac_dir/${ac_tool_prefix}file; then
19534      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
19535      if test -n "$file_magic_test_file"; then
19536	case $deplibs_check_method in
19537	"file_magic "*)
19538	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
19539	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
19540	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
19541	    $EGREP "$file_magic_regex" > /dev/null; then
19542	    :
19543	  else
19544	    cat <<_LT_EOF 1>&2
19545
19546*** Warning: the command libtool uses to detect shared libraries,
19547*** $file_magic_cmd, produces output that libtool cannot recognize.
19548*** The result is that libtool may fail to recognize shared libraries
19549*** as such.  This will affect the creation of libtool libraries that
19550*** depend on shared libraries, but programs linked with such libtool
19551*** libraries will work regardless of this problem.  Nevertheless, you
19552*** may want to report the problem to your system manager and/or to
19553*** bug-libtool@gnu.org
19554
19555_LT_EOF
19556	  fi ;;
19557	esac
19558      fi
19559      break
19560    fi
19561  done
19562  IFS="$lt_save_ifs"
19563  MAGIC_CMD="$lt_save_MAGIC_CMD"
19564  ;;
19565esac
19566fi
19567
19568MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
19569if test -n "$MAGIC_CMD"; then
19570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
19571$as_echo "$MAGIC_CMD" >&6; }
19572else
19573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19574$as_echo "no" >&6; }
19575fi
19576
19577
19578
19579
19580
19581if test -z "$lt_cv_path_MAGIC_CMD"; then
19582  if test -n "$ac_tool_prefix"; then
19583    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
19584$as_echo_n "checking for file... " >&6; }
19585if ${lt_cv_path_MAGIC_CMD+:} false; then :
19586  $as_echo_n "(cached) " >&6
19587else
19588  case $MAGIC_CMD in
19589[\\/*] |  ?:[\\/]*)
19590  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
19591  ;;
19592*)
19593  lt_save_MAGIC_CMD="$MAGIC_CMD"
19594  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19595  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
19596  for ac_dir in $ac_dummy; do
19597    IFS="$lt_save_ifs"
19598    test -z "$ac_dir" && ac_dir=.
19599    if test -f $ac_dir/file; then
19600      lt_cv_path_MAGIC_CMD="$ac_dir/file"
19601      if test -n "$file_magic_test_file"; then
19602	case $deplibs_check_method in
19603	"file_magic "*)
19604	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
19605	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
19606	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
19607	    $EGREP "$file_magic_regex" > /dev/null; then
19608	    :
19609	  else
19610	    cat <<_LT_EOF 1>&2
19611
19612*** Warning: the command libtool uses to detect shared libraries,
19613*** $file_magic_cmd, produces output that libtool cannot recognize.
19614*** The result is that libtool may fail to recognize shared libraries
19615*** as such.  This will affect the creation of libtool libraries that
19616*** depend on shared libraries, but programs linked with such libtool
19617*** libraries will work regardless of this problem.  Nevertheless, you
19618*** may want to report the problem to your system manager and/or to
19619*** bug-libtool@gnu.org
19620
19621_LT_EOF
19622	  fi ;;
19623	esac
19624      fi
19625      break
19626    fi
19627  done
19628  IFS="$lt_save_ifs"
19629  MAGIC_CMD="$lt_save_MAGIC_CMD"
19630  ;;
19631esac
19632fi
19633
19634MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
19635if test -n "$MAGIC_CMD"; then
19636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
19637$as_echo "$MAGIC_CMD" >&6; }
19638else
19639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19640$as_echo "no" >&6; }
19641fi
19642
19643
19644  else
19645    MAGIC_CMD=:
19646  fi
19647fi
19648
19649  fi
19650  ;;
19651esac
19652
19653# Use C for the default configuration in the libtool script
19654
19655lt_save_CC="$CC"
19656ac_ext=c
19657ac_cpp='$CPP $CPPFLAGS'
19658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19660ac_compiler_gnu=$ac_cv_c_compiler_gnu
19661
19662
19663# Source file extension for C test sources.
19664ac_ext=c
19665
19666# Object file extension for compiled C test sources.
19667objext=o
19668objext=$objext
19669
19670# Code to be used in simple compile tests
19671lt_simple_compile_test_code="int some_variable = 0;"
19672
19673# Code to be used in simple link tests
19674lt_simple_link_test_code='int main(){return(0);}'
19675
19676
19677
19678
19679
19680
19681
19682# If no C compiler was specified, use CC.
19683LTCC=${LTCC-"$CC"}
19684
19685# If no C compiler flags were specified, use CFLAGS.
19686LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19687
19688# Allow CC to be a program name with arguments.
19689compiler=$CC
19690
19691# Save the default compiler, since it gets overwritten when the other
19692# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
19693compiler_DEFAULT=$CC
19694
19695# save warnings/boilerplate of simple test code
19696ac_outfile=conftest.$ac_objext
19697echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19698eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19699_lt_compiler_boilerplate=`cat conftest.err`
19700$RM conftest*
19701
19702ac_outfile=conftest.$ac_objext
19703echo "$lt_simple_link_test_code" >conftest.$ac_ext
19704eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19705_lt_linker_boilerplate=`cat conftest.err`
19706$RM -r conftest*
19707
19708
19709## CAVEAT EMPTOR:
19710## There is no encapsulation within the following macros, do not change
19711## the running order or otherwise move them around unless you know exactly
19712## what you are doing...
19713if test -n "$compiler"; then
19714
19715lt_prog_compiler_no_builtin_flag=
19716
19717if test "$GCC" = yes; then
19718  case $cc_basename in
19719  nvcc*)
19720    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
19721  *)
19722    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
19723  esac
19724
19725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19726$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
19727if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
19728  $as_echo_n "(cached) " >&6
19729else
19730  lt_cv_prog_compiler_rtti_exceptions=no
19731   ac_outfile=conftest.$ac_objext
19732   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19733   lt_compiler_flag="-fno-rtti -fno-exceptions"
19734   # Insert the option either (1) after the last *FLAGS variable, or
19735   # (2) before a word containing "conftest.", or (3) at the end.
19736   # Note that $ac_compile itself does not contain backslashes and begins
19737   # with a dollar sign (not a hyphen), so the echo should work correctly.
19738   # The option is referenced via a variable to avoid confusing sed.
19739   lt_compile=`echo "$ac_compile" | $SED \
19740   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19741   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19742   -e 's:$: $lt_compiler_flag:'`
19743   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19744   (eval "$lt_compile" 2>conftest.err)
19745   ac_status=$?
19746   cat conftest.err >&5
19747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748   if (exit $ac_status) && test -s "$ac_outfile"; then
19749     # The compiler can only warn and ignore the option if not recognized
19750     # So say no if there are warnings other than the usual output.
19751     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19752     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19753     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19754       lt_cv_prog_compiler_rtti_exceptions=yes
19755     fi
19756   fi
19757   $RM conftest*
19758
19759fi
19760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19761$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19762
19763if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19764    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
19765else
19766    :
19767fi
19768
19769fi
19770
19771
19772
19773
19774
19775
19776  lt_prog_compiler_wl=
19777lt_prog_compiler_pic=
19778lt_prog_compiler_static=
19779
19780
19781  if test "$GCC" = yes; then
19782    lt_prog_compiler_wl='-Wl,'
19783    lt_prog_compiler_static='-static'
19784
19785    case $host_os in
19786      aix*)
19787      # All AIX code is PIC.
19788      if test "$host_cpu" = ia64; then
19789	# AIX 5 now supports IA64 processor
19790	lt_prog_compiler_static='-Bstatic'
19791      fi
19792      ;;
19793
19794    amigaos*)
19795      case $host_cpu in
19796      powerpc)
19797            # see comment about AmigaOS4 .so support
19798            lt_prog_compiler_pic='-fPIC'
19799        ;;
19800      m68k)
19801            # FIXME: we need at least 68020 code to build shared libraries, but
19802            # adding the `-m68020' flag to GCC prevents building anything better,
19803            # like `-m68040'.
19804            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
19805        ;;
19806      esac
19807      ;;
19808
19809    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19810      # PIC is the default for these OSes.
19811      ;;
19812
19813    mingw* | cygwin* | pw32* | os2* | cegcc*)
19814      # This hack is so that the source file can tell whether it is being
19815      # built for inclusion in a dll (and should export symbols for example).
19816      # Although the cygwin gcc ignores -fPIC, still need this for old-style
19817      # (--disable-auto-import) libraries
19818      lt_prog_compiler_pic='-DDLL_EXPORT'
19819      ;;
19820
19821    darwin* | rhapsody*)
19822      # PIC is the default on this platform
19823      # Common symbols not allowed in MH_DYLIB files
19824      lt_prog_compiler_pic='-fno-common'
19825      ;;
19826
19827    haiku*)
19828      # PIC is the default for Haiku.
19829      # The "-static" flag exists, but is broken.
19830      lt_prog_compiler_static=
19831      ;;
19832
19833    hpux*)
19834      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19835      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19836      # sets the default TLS model and affects inlining.
19837      case $host_cpu in
19838      hppa*64*)
19839	# +Z the default
19840	;;
19841      *)
19842	lt_prog_compiler_pic='-fPIC'
19843	;;
19844      esac
19845      ;;
19846
19847    interix[3-9]*)
19848      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19849      # Instead, we relocate shared libraries at runtime.
19850      ;;
19851
19852    msdosdjgpp*)
19853      # Just because we use GCC doesn't mean we suddenly get shared libraries
19854      # on systems that don't support them.
19855      lt_prog_compiler_can_build_shared=no
19856      enable_shared=no
19857      ;;
19858
19859    *nto* | *qnx*)
19860      # QNX uses GNU C++, but need to define -shared option too, otherwise
19861      # it will coredump.
19862      lt_prog_compiler_pic='-fPIC -shared'
19863      ;;
19864
19865    sysv4*MP*)
19866      if test -d /usr/nec; then
19867	lt_prog_compiler_pic=-Kconform_pic
19868      fi
19869      ;;
19870
19871    *)
19872      lt_prog_compiler_pic='-fPIC'
19873      ;;
19874    esac
19875
19876    case $cc_basename in
19877    nvcc*) # Cuda Compiler Driver 2.2
19878      lt_prog_compiler_wl='-Xlinker '
19879      lt_prog_compiler_pic='-Xcompiler -fPIC'
19880      ;;
19881    esac
19882  else
19883    # PORTME Check for flag to pass linker flags through the system compiler.
19884    case $host_os in
19885    aix*)
19886      lt_prog_compiler_wl='-Wl,'
19887      if test "$host_cpu" = ia64; then
19888	# AIX 5 now supports IA64 processor
19889	lt_prog_compiler_static='-Bstatic'
19890      else
19891	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
19892      fi
19893      ;;
19894
19895    mingw* | cygwin* | pw32* | os2* | cegcc*)
19896      # This hack is so that the source file can tell whether it is being
19897      # built for inclusion in a dll (and should export symbols for example).
19898      lt_prog_compiler_pic='-DDLL_EXPORT'
19899      ;;
19900
19901    hpux9* | hpux10* | hpux11*)
19902      lt_prog_compiler_wl='-Wl,'
19903      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19904      # not for PA HP-UX.
19905      case $host_cpu in
19906      hppa*64*|ia64*)
19907	# +Z the default
19908	;;
19909      *)
19910	lt_prog_compiler_pic='+Z'
19911	;;
19912      esac
19913      # Is there a better lt_prog_compiler_static that works with the bundled CC?
19914      lt_prog_compiler_static='${wl}-a ${wl}archive'
19915      ;;
19916
19917    irix5* | irix6* | nonstopux*)
19918      lt_prog_compiler_wl='-Wl,'
19919      # PIC (with -KPIC) is the default.
19920      lt_prog_compiler_static='-non_shared'
19921      ;;
19922
19923    linux* | k*bsd*-gnu | kopensolaris*-gnu)
19924      case $cc_basename in
19925      # old Intel for x86_64 which still supported -KPIC.
19926      ecc*)
19927	lt_prog_compiler_wl='-Wl,'
19928	lt_prog_compiler_pic='-KPIC'
19929	lt_prog_compiler_static='-static'
19930        ;;
19931      # icc used to be incompatible with GCC.
19932      # ICC 10 doesn't accept -KPIC any more.
19933      icc* | ifort*)
19934	lt_prog_compiler_wl='-Wl,'
19935	lt_prog_compiler_pic='-fPIC'
19936	lt_prog_compiler_static='-static'
19937        ;;
19938      # Lahey Fortran 8.1.
19939      lf95*)
19940	lt_prog_compiler_wl='-Wl,'
19941	lt_prog_compiler_pic='--shared'
19942	lt_prog_compiler_static='--static'
19943	;;
19944      nagfor*)
19945	# NAG Fortran compiler
19946	lt_prog_compiler_wl='-Wl,-Wl,,'
19947	lt_prog_compiler_pic='-PIC'
19948	lt_prog_compiler_static='-Bstatic'
19949	;;
19950      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
19951        # Portland Group compilers (*not* the Pentium gcc compiler,
19952	# which looks to be a dead project)
19953	lt_prog_compiler_wl='-Wl,'
19954	lt_prog_compiler_pic='-fpic'
19955	lt_prog_compiler_static='-Bstatic'
19956        ;;
19957      ccc*)
19958        lt_prog_compiler_wl='-Wl,'
19959        # All Alpha code is PIC.
19960        lt_prog_compiler_static='-non_shared'
19961        ;;
19962      xl* | bgxl* | bgf* | mpixl*)
19963	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
19964	lt_prog_compiler_wl='-Wl,'
19965	lt_prog_compiler_pic='-qpic'
19966	lt_prog_compiler_static='-qstaticlink'
19967	;;
19968      *)
19969	case `$CC -V 2>&1 | sed 5q` in
19970	*Sun\ F* | *Sun*Fortran*)
19971	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
19972	  lt_prog_compiler_pic='-KPIC'
19973	  lt_prog_compiler_static='-Bstatic'
19974	  lt_prog_compiler_wl=''
19975	  ;;
19976	*Sun\ C*)
19977	  # Sun C 5.9
19978	  lt_prog_compiler_pic='-KPIC'
19979	  lt_prog_compiler_static='-Bstatic'
19980	  lt_prog_compiler_wl='-Wl,'
19981	  ;;
19982	esac
19983	;;
19984      esac
19985      ;;
19986
19987    newsos6)
19988      lt_prog_compiler_pic='-KPIC'
19989      lt_prog_compiler_static='-Bstatic'
19990      ;;
19991
19992    *nto* | *qnx*)
19993      # QNX uses GNU C++, but need to define -shared option too, otherwise
19994      # it will coredump.
19995      lt_prog_compiler_pic='-fPIC -shared'
19996      ;;
19997
19998    osf3* | osf4* | osf5*)
19999      lt_prog_compiler_wl='-Wl,'
20000      # All OSF/1 code is PIC.
20001      lt_prog_compiler_static='-non_shared'
20002      ;;
20003
20004    rdos*)
20005      lt_prog_compiler_static='-non_shared'
20006      ;;
20007
20008    solaris*)
20009      lt_prog_compiler_pic='-KPIC'
20010      lt_prog_compiler_static='-Bstatic'
20011      case $cc_basename in
20012      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
20013	lt_prog_compiler_wl='-Qoption ld ';;
20014      *)
20015	lt_prog_compiler_wl='-Wl,';;
20016      esac
20017      ;;
20018
20019    sunos4*)
20020      lt_prog_compiler_wl='-Qoption ld '
20021      lt_prog_compiler_pic='-PIC'
20022      lt_prog_compiler_static='-Bstatic'
20023      ;;
20024
20025    sysv4 | sysv4.2uw2* | sysv4.3*)
20026      lt_prog_compiler_wl='-Wl,'
20027      lt_prog_compiler_pic='-KPIC'
20028      lt_prog_compiler_static='-Bstatic'
20029      ;;
20030
20031    sysv4*MP*)
20032      if test -d /usr/nec ;then
20033	lt_prog_compiler_pic='-Kconform_pic'
20034	lt_prog_compiler_static='-Bstatic'
20035      fi
20036      ;;
20037
20038    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20039      lt_prog_compiler_wl='-Wl,'
20040      lt_prog_compiler_pic='-KPIC'
20041      lt_prog_compiler_static='-Bstatic'
20042      ;;
20043
20044    unicos*)
20045      lt_prog_compiler_wl='-Wl,'
20046      lt_prog_compiler_can_build_shared=no
20047      ;;
20048
20049    uts4*)
20050      lt_prog_compiler_pic='-pic'
20051      lt_prog_compiler_static='-Bstatic'
20052      ;;
20053
20054    *)
20055      lt_prog_compiler_can_build_shared=no
20056      ;;
20057    esac
20058  fi
20059
20060case $host_os in
20061  # For platforms which do not support PIC, -DPIC is meaningless:
20062  *djgpp*)
20063    lt_prog_compiler_pic=
20064    ;;
20065  *)
20066    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
20067    ;;
20068esac
20069
20070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20071$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20072if ${lt_cv_prog_compiler_pic+:} false; then :
20073  $as_echo_n "(cached) " >&6
20074else
20075  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
20076fi
20077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
20078$as_echo "$lt_cv_prog_compiler_pic" >&6; }
20079lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
20080
20081#
20082# Check to make sure the PIC flag actually works.
20083#
20084if test -n "$lt_prog_compiler_pic"; then
20085  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
20086$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
20087if ${lt_cv_prog_compiler_pic_works+:} false; then :
20088  $as_echo_n "(cached) " >&6
20089else
20090  lt_cv_prog_compiler_pic_works=no
20091   ac_outfile=conftest.$ac_objext
20092   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20093   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
20094   # Insert the option either (1) after the last *FLAGS variable, or
20095   # (2) before a word containing "conftest.", or (3) at the end.
20096   # Note that $ac_compile itself does not contain backslashes and begins
20097   # with a dollar sign (not a hyphen), so the echo should work correctly.
20098   # The option is referenced via a variable to avoid confusing sed.
20099   lt_compile=`echo "$ac_compile" | $SED \
20100   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20101   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20102   -e 's:$: $lt_compiler_flag:'`
20103   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20104   (eval "$lt_compile" 2>conftest.err)
20105   ac_status=$?
20106   cat conftest.err >&5
20107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108   if (exit $ac_status) && test -s "$ac_outfile"; then
20109     # The compiler can only warn and ignore the option if not recognized
20110     # So say no if there are warnings other than the usual output.
20111     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20112     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20113     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20114       lt_cv_prog_compiler_pic_works=yes
20115     fi
20116   fi
20117   $RM conftest*
20118
20119fi
20120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
20121$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
20122
20123if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
20124    case $lt_prog_compiler_pic in
20125     "" | " "*) ;;
20126     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
20127     esac
20128else
20129    lt_prog_compiler_pic=
20130     lt_prog_compiler_can_build_shared=no
20131fi
20132
20133fi
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145#
20146# Check to make sure the static flag actually works.
20147#
20148wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
20149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20150$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20151if ${lt_cv_prog_compiler_static_works+:} false; then :
20152  $as_echo_n "(cached) " >&6
20153else
20154  lt_cv_prog_compiler_static_works=no
20155   save_LDFLAGS="$LDFLAGS"
20156   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20157   echo "$lt_simple_link_test_code" > conftest.$ac_ext
20158   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20159     # The linker can only warn and ignore the option if not recognized
20160     # So say no if there are warnings
20161     if test -s conftest.err; then
20162       # Append any errors to the config.log.
20163       cat conftest.err 1>&5
20164       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20165       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20166       if diff conftest.exp conftest.er2 >/dev/null; then
20167         lt_cv_prog_compiler_static_works=yes
20168       fi
20169     else
20170       lt_cv_prog_compiler_static_works=yes
20171     fi
20172   fi
20173   $RM -r conftest*
20174   LDFLAGS="$save_LDFLAGS"
20175
20176fi
20177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
20178$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
20179
20180if test x"$lt_cv_prog_compiler_static_works" = xyes; then
20181    :
20182else
20183    lt_prog_compiler_static=
20184fi
20185
20186
20187
20188
20189
20190
20191
20192  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20193$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20194if ${lt_cv_prog_compiler_c_o+:} false; then :
20195  $as_echo_n "(cached) " >&6
20196else
20197  lt_cv_prog_compiler_c_o=no
20198   $RM -r conftest 2>/dev/null
20199   mkdir conftest
20200   cd conftest
20201   mkdir out
20202   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20203
20204   lt_compiler_flag="-o out/conftest2.$ac_objext"
20205   # Insert the option either (1) after the last *FLAGS variable, or
20206   # (2) before a word containing "conftest.", or (3) at the end.
20207   # Note that $ac_compile itself does not contain backslashes and begins
20208   # with a dollar sign (not a hyphen), so the echo should work correctly.
20209   lt_compile=`echo "$ac_compile" | $SED \
20210   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20211   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20212   -e 's:$: $lt_compiler_flag:'`
20213   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20214   (eval "$lt_compile" 2>out/conftest.err)
20215   ac_status=$?
20216   cat out/conftest.err >&5
20217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20219   then
20220     # The compiler can only warn and ignore the option if not recognized
20221     # So say no if there are warnings
20222     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20223     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20224     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20225       lt_cv_prog_compiler_c_o=yes
20226     fi
20227   fi
20228   chmod u+w . 2>&5
20229   $RM conftest*
20230   # SGI C++ compiler will create directory out/ii_files/ for
20231   # template instantiation
20232   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20233   $RM out/* && rmdir out
20234   cd ..
20235   $RM -r conftest
20236   $RM conftest*
20237
20238fi
20239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
20240$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
20241
20242
20243
20244
20245
20246
20247  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20248$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20249if ${lt_cv_prog_compiler_c_o+:} false; then :
20250  $as_echo_n "(cached) " >&6
20251else
20252  lt_cv_prog_compiler_c_o=no
20253   $RM -r conftest 2>/dev/null
20254   mkdir conftest
20255   cd conftest
20256   mkdir out
20257   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20258
20259   lt_compiler_flag="-o out/conftest2.$ac_objext"
20260   # Insert the option either (1) after the last *FLAGS variable, or
20261   # (2) before a word containing "conftest.", or (3) at the end.
20262   # Note that $ac_compile itself does not contain backslashes and begins
20263   # with a dollar sign (not a hyphen), so the echo should work correctly.
20264   lt_compile=`echo "$ac_compile" | $SED \
20265   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20266   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20267   -e 's:$: $lt_compiler_flag:'`
20268   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20269   (eval "$lt_compile" 2>out/conftest.err)
20270   ac_status=$?
20271   cat out/conftest.err >&5
20272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20274   then
20275     # The compiler can only warn and ignore the option if not recognized
20276     # So say no if there are warnings
20277     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20278     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20279     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20280       lt_cv_prog_compiler_c_o=yes
20281     fi
20282   fi
20283   chmod u+w . 2>&5
20284   $RM conftest*
20285   # SGI C++ compiler will create directory out/ii_files/ for
20286   # template instantiation
20287   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20288   $RM out/* && rmdir out
20289   cd ..
20290   $RM -r conftest
20291   $RM conftest*
20292
20293fi
20294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
20295$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
20296
20297
20298
20299
20300hard_links="nottested"
20301if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
20302  # do not overwrite the value of need_locks provided by the user
20303  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20304$as_echo_n "checking if we can lock with hard links... " >&6; }
20305  hard_links=yes
20306  $RM conftest*
20307  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20308  touch conftest.a
20309  ln conftest.a conftest.b 2>&5 || hard_links=no
20310  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20312$as_echo "$hard_links" >&6; }
20313  if test "$hard_links" = no; then
20314    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20315$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20316    need_locks=warn
20317  fi
20318else
20319  need_locks=no
20320fi
20321
20322
20323
20324
20325
20326
20327  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20328$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20329
20330  runpath_var=
20331  allow_undefined_flag=
20332  always_export_symbols=no
20333  archive_cmds=
20334  archive_expsym_cmds=
20335  compiler_needs_object=no
20336  enable_shared_with_static_runtimes=no
20337  export_dynamic_flag_spec=
20338  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20339  hardcode_automatic=no
20340  hardcode_direct=no
20341  hardcode_direct_absolute=no
20342  hardcode_libdir_flag_spec=
20343  hardcode_libdir_flag_spec_ld=
20344  hardcode_libdir_separator=
20345  hardcode_minus_L=no
20346  hardcode_shlibpath_var=unsupported
20347  inherit_rpath=no
20348  link_all_deplibs=unknown
20349  module_cmds=
20350  module_expsym_cmds=
20351  old_archive_from_new_cmds=
20352  old_archive_from_expsyms_cmds=
20353  thread_safe_flag_spec=
20354  whole_archive_flag_spec=
20355  # include_expsyms should be a list of space-separated symbols to be *always*
20356  # included in the symbol list
20357  include_expsyms=
20358  # exclude_expsyms can be an extended regexp of symbols to exclude
20359  # it will be wrapped by ` (' and `)$', so one must not match beginning or
20360  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20361  # as well as any symbol that contains `d'.
20362  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20363  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20364  # platforms (ab)use it in PIC code, but their linkers get confused if
20365  # the symbol is explicitly referenced.  Since portable code cannot
20366  # rely on this symbol name, it's probably fine to never include it in
20367  # preloaded symbol tables.
20368  # Exclude shared library initialization/finalization symbols.
20369  extract_expsyms_cmds=
20370
20371  case $host_os in
20372  cygwin* | mingw* | pw32* | cegcc*)
20373    # FIXME: the MSVC++ port hasn't been tested in a loooong time
20374    # When not using gcc, we currently assume that we are using
20375    # Microsoft Visual C++.
20376    if test "$GCC" != yes; then
20377      with_gnu_ld=no
20378    fi
20379    ;;
20380  interix*)
20381    # we just hope/assume this is gcc and not c89 (= MSVC++)
20382    with_gnu_ld=yes
20383    ;;
20384  openbsd*)
20385    with_gnu_ld=no
20386    ;;
20387  esac
20388
20389  ld_shlibs=yes
20390
20391  # On some targets, GNU ld is compatible enough with the native linker
20392  # that we're better off using the native interface for both.
20393  lt_use_gnu_ld_interface=no
20394  if test "$with_gnu_ld" = yes; then
20395    case $host_os in
20396      aix*)
20397	# The AIX port of GNU ld has always aspired to compatibility
20398	# with the native linker.  However, as the warning in the GNU ld
20399	# block says, versions before 2.19.5* couldn't really create working
20400	# shared libraries, regardless of the interface used.
20401	case `$LD -v 2>&1` in
20402	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
20403	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
20404	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
20405	  *)
20406	    lt_use_gnu_ld_interface=yes
20407	    ;;
20408	esac
20409	;;
20410      *)
20411	lt_use_gnu_ld_interface=yes
20412	;;
20413    esac
20414  fi
20415
20416  if test "$lt_use_gnu_ld_interface" = yes; then
20417    # If archive_cmds runs LD, not CC, wlarc should be empty
20418    wlarc='${wl}'
20419
20420    # Set some defaults for GNU ld with shared library support. These
20421    # are reset later if shared libraries are not supported. Putting them
20422    # here allows them to be overridden if necessary.
20423    runpath_var=LD_RUN_PATH
20424    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
20425    export_dynamic_flag_spec='${wl}--export-dynamic'
20426    # ancient GNU ld didn't support --whole-archive et. al.
20427    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
20428      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20429    else
20430      whole_archive_flag_spec=
20431    fi
20432    supports_anon_versioning=no
20433    case `$LD -v 2>&1` in
20434      *GNU\ gold*) supports_anon_versioning=yes ;;
20435      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20436      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20437      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20438      *\ 2.11.*) ;; # other 2.11 versions
20439      *) supports_anon_versioning=yes ;;
20440    esac
20441
20442    # See if GNU ld supports shared libraries.
20443    case $host_os in
20444    aix[3-9]*)
20445      # On AIX/PPC, the GNU linker is very broken
20446      if test "$host_cpu" != ia64; then
20447	ld_shlibs=no
20448	cat <<_LT_EOF 1>&2
20449
20450*** Warning: the GNU linker, at least up to release 2.19, is reported
20451*** to be unable to reliably create shared libraries on AIX.
20452*** Therefore, libtool is disabling shared libraries support.  If you
20453*** really care for shared libraries, you may want to install binutils
20454*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
20455*** You will then need to restart the configuration process.
20456
20457_LT_EOF
20458      fi
20459      ;;
20460
20461    amigaos*)
20462      case $host_cpu in
20463      powerpc)
20464            # see comment about AmigaOS4 .so support
20465            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20466            archive_expsym_cmds=''
20467        ;;
20468      m68k)
20469            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)'
20470            hardcode_libdir_flag_spec='-L$libdir'
20471            hardcode_minus_L=yes
20472        ;;
20473      esac
20474      ;;
20475
20476    beos*)
20477      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20478	allow_undefined_flag=unsupported
20479	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20480	# support --undefined.  This deserves some investigation.  FIXME
20481	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20482      else
20483	ld_shlibs=no
20484      fi
20485      ;;
20486
20487    cygwin* | mingw* | pw32* | cegcc*)
20488      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
20489      # as there is no search path for DLLs.
20490      hardcode_libdir_flag_spec='-L$libdir'
20491      export_dynamic_flag_spec='${wl}--export-all-symbols'
20492      allow_undefined_flag=unsupported
20493      always_export_symbols=no
20494      enable_shared_with_static_runtimes=yes
20495      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'
20496      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20497
20498      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20499        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20500	# If the export-symbols file already is a .def file (1st line
20501	# is EXPORTS), use it as is; otherwise, prepend...
20502	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20503	  cp $export_symbols $output_objdir/$soname.def;
20504	else
20505	  echo EXPORTS > $output_objdir/$soname.def;
20506	  cat $export_symbols >> $output_objdir/$soname.def;
20507	fi~
20508	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20509      else
20510	ld_shlibs=no
20511      fi
20512      ;;
20513
20514    haiku*)
20515      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20516      link_all_deplibs=yes
20517      ;;
20518
20519    interix[3-9]*)
20520      hardcode_direct=no
20521      hardcode_shlibpath_var=no
20522      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
20523      export_dynamic_flag_spec='${wl}-E'
20524      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20525      # Instead, shared libraries are loaded at an image base (0x10000000 by
20526      # default) and relocated if they conflict, which is a slow very memory
20527      # consuming and fragmenting process.  To avoid this, we pick a random,
20528      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20529      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20530      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
20531      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'
20532      ;;
20533
20534    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
20535      tmp_diet=no
20536      if test "$host_os" = linux-dietlibc; then
20537	case $cc_basename in
20538	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
20539	esac
20540      fi
20541      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
20542	 && test "$tmp_diet" = no
20543      then
20544	tmp_addflag=' $pic_flag'
20545	tmp_sharedflag='-shared'
20546	case $cc_basename,$host_cpu in
20547        pgcc*)				# Portland Group C compiler
20548	  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'
20549	  tmp_addflag=' $pic_flag'
20550	  ;;
20551	pgf77* | pgf90* | pgf95* | pgfortran*)
20552					# Portland Group f77 and f90 compilers
20553	  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'
20554	  tmp_addflag=' $pic_flag -Mnomain' ;;
20555	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
20556	  tmp_addflag=' -i_dynamic' ;;
20557	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
20558	  tmp_addflag=' -i_dynamic -nofor_main' ;;
20559	ifc* | ifort*)			# Intel Fortran compiler
20560	  tmp_addflag=' -nofor_main' ;;
20561	lf95*)				# Lahey Fortran 8.1
20562	  whole_archive_flag_spec=
20563	  tmp_sharedflag='--shared' ;;
20564	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
20565	  tmp_sharedflag='-qmkshrobj'
20566	  tmp_addflag= ;;
20567	nvcc*)	# Cuda Compiler Driver 2.2
20568	  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'
20569	  compiler_needs_object=yes
20570	  ;;
20571	esac
20572	case `$CC -V 2>&1 | sed 5q` in
20573	*Sun\ C*)			# Sun C 5.9
20574	  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'
20575	  compiler_needs_object=yes
20576	  tmp_sharedflag='-G' ;;
20577	*Sun\ F*)			# Sun Fortran 8.3
20578	  tmp_sharedflag='-G' ;;
20579	esac
20580	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20581
20582        if test "x$supports_anon_versioning" = xyes; then
20583          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
20584	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20585	    echo "local: *; };" >> $output_objdir/$libname.ver~
20586	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20587        fi
20588
20589	case $cc_basename in
20590	xlf* | bgf* | bgxlf* | mpixlf*)
20591	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
20592	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
20593	  hardcode_libdir_flag_spec=
20594	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
20595	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
20596	  if test "x$supports_anon_versioning" = xyes; then
20597	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
20598	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20599	      echo "local: *; };" >> $output_objdir/$libname.ver~
20600	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
20601	  fi
20602	  ;;
20603	esac
20604      else
20605        ld_shlibs=no
20606      fi
20607      ;;
20608
20609    netbsd*)
20610      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20611	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20612	wlarc=
20613      else
20614	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20615	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20616      fi
20617      ;;
20618
20619    solaris*)
20620      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
20621	ld_shlibs=no
20622	cat <<_LT_EOF 1>&2
20623
20624*** Warning: The releases 2.8.* of the GNU linker cannot reliably
20625*** create shared libraries on Solaris systems.  Therefore, libtool
20626*** is disabling shared libraries support.  We urge you to upgrade GNU
20627*** binutils to release 2.9.1 or newer.  Another option is to modify
20628*** your PATH or compiler configuration so that the native linker is
20629*** used, and then restart.
20630
20631_LT_EOF
20632      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20633	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20634	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20635      else
20636	ld_shlibs=no
20637      fi
20638      ;;
20639
20640    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20641      case `$LD -v 2>&1` in
20642        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20643	ld_shlibs=no
20644	cat <<_LT_EOF 1>&2
20645
20646*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20647*** reliably create shared libraries on SCO systems.  Therefore, libtool
20648*** is disabling shared libraries support.  We urge you to upgrade GNU
20649*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
20650*** your PATH or compiler configuration so that the native linker is
20651*** used, and then restart.
20652
20653_LT_EOF
20654	;;
20655	*)
20656	  # For security reasons, it is highly recommended that you always
20657	  # use absolute paths for naming shared libraries, and exclude the
20658	  # DT_RUNPATH tag from executables and libraries.  But doing so
20659	  # requires that you compile everything twice, which is a pain.
20660	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20661	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
20662	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20663	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20664	  else
20665	    ld_shlibs=no
20666	  fi
20667	;;
20668      esac
20669      ;;
20670
20671    sunos4*)
20672      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20673      wlarc=
20674      hardcode_direct=yes
20675      hardcode_shlibpath_var=no
20676      ;;
20677
20678    *)
20679      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20680	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20681	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20682      else
20683	ld_shlibs=no
20684      fi
20685      ;;
20686    esac
20687
20688    if test "$ld_shlibs" = no; then
20689      runpath_var=
20690      hardcode_libdir_flag_spec=
20691      export_dynamic_flag_spec=
20692      whole_archive_flag_spec=
20693    fi
20694  else
20695    # PORTME fill in a description of your system's linker (not GNU ld)
20696    case $host_os in
20697    aix3*)
20698      allow_undefined_flag=unsupported
20699      always_export_symbols=yes
20700      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'
20701      # Note: this linker hardcodes the directories in LIBPATH if there
20702      # are no directories specified by -L.
20703      hardcode_minus_L=yes
20704      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20705	# Neither direct hardcoding nor static linking is supported with a
20706	# broken collect2.
20707	hardcode_direct=unsupported
20708      fi
20709      ;;
20710
20711    aix[4-9]*)
20712      if test "$host_cpu" = ia64; then
20713	# On IA64, the linker does run time linking by default, so we don't
20714	# have to do anything special.
20715	aix_use_runtimelinking=no
20716	exp_sym_flag='-Bexport'
20717	no_entry_flag=""
20718      else
20719	# If we're using GNU nm, then we don't want the "-C" option.
20720	# -C means demangle to AIX nm, but means don't demangle with GNU nm
20721	# Also, AIX nm treats weak defined symbols like other global
20722	# defined symbols, whereas GNU nm marks them as "W".
20723	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20724	  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'
20725	else
20726	  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'
20727	fi
20728	aix_use_runtimelinking=no
20729
20730	# Test if we are trying to use run time linking or normal
20731	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
20732	# need to do runtime linking.
20733	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20734	  for ld_flag in $LDFLAGS; do
20735	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20736	    aix_use_runtimelinking=yes
20737	    break
20738	  fi
20739	  done
20740	  ;;
20741	esac
20742
20743	exp_sym_flag='-bexport'
20744	no_entry_flag='-bnoentry'
20745      fi
20746
20747      # When large executables or shared objects are built, AIX ld can
20748      # have problems creating the table of contents.  If linking a library
20749      # or program results in "error TOC overflow" add -mminimal-toc to
20750      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20751      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20752
20753      archive_cmds=''
20754      hardcode_direct=yes
20755      hardcode_direct_absolute=yes
20756      hardcode_libdir_separator=':'
20757      link_all_deplibs=yes
20758      file_list_spec='${wl}-f,'
20759
20760      if test "$GCC" = yes; then
20761	case $host_os in aix4.[012]|aix4.[012].*)
20762	# We only want to do this on AIX 4.2 and lower, the check
20763	# below for broken collect2 doesn't work under 4.3+
20764	  collect2name=`${CC} -print-prog-name=collect2`
20765	  if test -f "$collect2name" &&
20766	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20767	  then
20768	  # We have reworked collect2
20769	  :
20770	  else
20771	  # We have old collect2
20772	  hardcode_direct=unsupported
20773	  # It fails to find uninstalled libraries when the uninstalled
20774	  # path is not listed in the libpath.  Setting hardcode_minus_L
20775	  # to unsupported forces relinking
20776	  hardcode_minus_L=yes
20777	  hardcode_libdir_flag_spec='-L$libdir'
20778	  hardcode_libdir_separator=
20779	  fi
20780	  ;;
20781	esac
20782	shared_flag='-shared'
20783	if test "$aix_use_runtimelinking" = yes; then
20784	  shared_flag="$shared_flag "'${wl}-G'
20785	fi
20786      else
20787	# not using gcc
20788	if test "$host_cpu" = ia64; then
20789	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20790	# chokes on -Wl,-G. The following line is correct:
20791	  shared_flag='-G'
20792	else
20793	  if test "$aix_use_runtimelinking" = yes; then
20794	    shared_flag='${wl}-G'
20795	  else
20796	    shared_flag='${wl}-bM:SRE'
20797	  fi
20798	fi
20799      fi
20800
20801      export_dynamic_flag_spec='${wl}-bexpall'
20802      # It seems that -bexpall does not export symbols beginning with
20803      # underscore (_), so it is better to generate a list of symbols to export.
20804      always_export_symbols=yes
20805      if test "$aix_use_runtimelinking" = yes; then
20806	# Warning - without using the other runtime loading flags (-brtl),
20807	# -berok will link without error, but may produce a broken library.
20808	allow_undefined_flag='-berok'
20809        # Determine the default libpath from the value encoded in an
20810        # empty executable.
20811        if test "${lt_cv_aix_libpath+set}" = set; then
20812  aix_libpath=$lt_cv_aix_libpath
20813else
20814  if ${lt_cv_aix_libpath_+:} false; then :
20815  $as_echo_n "(cached) " >&6
20816else
20817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20818/* end confdefs.h.  */
20819
20820int
20821main ()
20822{
20823
20824  ;
20825  return 0;
20826}
20827_ACEOF
20828if ac_fn_c_try_link "$LINENO"; then :
20829
20830  lt_aix_libpath_sed='
20831      /Import File Strings/,/^$/ {
20832	  /^0/ {
20833	      s/^0  *\([^ ]*\) *$/\1/
20834	      p
20835	  }
20836      }'
20837  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20838  # Check for a 64-bit object if we didn't find anything.
20839  if test -z "$lt_cv_aix_libpath_"; then
20840    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20841  fi
20842fi
20843rm -f core conftest.err conftest.$ac_objext \
20844    conftest$ac_exeext conftest.$ac_ext
20845  if test -z "$lt_cv_aix_libpath_"; then
20846    lt_cv_aix_libpath_="/usr/lib:/lib"
20847  fi
20848
20849fi
20850
20851  aix_libpath=$lt_cv_aix_libpath_
20852fi
20853
20854        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
20855        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"
20856      else
20857	if test "$host_cpu" = ia64; then
20858	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
20859	  allow_undefined_flag="-z nodefs"
20860	  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"
20861	else
20862	 # Determine the default libpath from the value encoded in an
20863	 # empty executable.
20864	 if test "${lt_cv_aix_libpath+set}" = set; then
20865  aix_libpath=$lt_cv_aix_libpath
20866else
20867  if ${lt_cv_aix_libpath_+:} false; then :
20868  $as_echo_n "(cached) " >&6
20869else
20870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20871/* end confdefs.h.  */
20872
20873int
20874main ()
20875{
20876
20877  ;
20878  return 0;
20879}
20880_ACEOF
20881if ac_fn_c_try_link "$LINENO"; then :
20882
20883  lt_aix_libpath_sed='
20884      /Import File Strings/,/^$/ {
20885	  /^0/ {
20886	      s/^0  *\([^ ]*\) *$/\1/
20887	      p
20888	  }
20889      }'
20890  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20891  # Check for a 64-bit object if we didn't find anything.
20892  if test -z "$lt_cv_aix_libpath_"; then
20893    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20894  fi
20895fi
20896rm -f core conftest.err conftest.$ac_objext \
20897    conftest$ac_exeext conftest.$ac_ext
20898  if test -z "$lt_cv_aix_libpath_"; then
20899    lt_cv_aix_libpath_="/usr/lib:/lib"
20900  fi
20901
20902fi
20903
20904  aix_libpath=$lt_cv_aix_libpath_
20905fi
20906
20907	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
20908	  # Warning - without using the other run time loading flags,
20909	  # -berok will link without error, but may produce a broken library.
20910	  no_undefined_flag=' ${wl}-bernotok'
20911	  allow_undefined_flag=' ${wl}-berok'
20912	  if test "$with_gnu_ld" = yes; then
20913	    # We only use this code for GNU lds that support --whole-archive.
20914	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20915	  else
20916	    # Exported symbols can be pulled into shared objects from archives
20917	    whole_archive_flag_spec='$convenience'
20918	  fi
20919	  archive_cmds_need_lc=yes
20920	  # This is similar to how AIX traditionally builds its shared libraries.
20921	  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'
20922	fi
20923      fi
20924      ;;
20925
20926    amigaos*)
20927      case $host_cpu in
20928      powerpc)
20929            # see comment about AmigaOS4 .so support
20930            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20931            archive_expsym_cmds=''
20932        ;;
20933      m68k)
20934            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)'
20935            hardcode_libdir_flag_spec='-L$libdir'
20936            hardcode_minus_L=yes
20937        ;;
20938      esac
20939      ;;
20940
20941    bsdi[45]*)
20942      export_dynamic_flag_spec=-rdynamic
20943      ;;
20944
20945    cygwin* | mingw* | pw32* | cegcc*)
20946      # When not using gcc, we currently assume that we are using
20947      # Microsoft Visual C++.
20948      # hardcode_libdir_flag_spec is actually meaningless, as there is
20949      # no search path for DLLs.
20950      case $cc_basename in
20951      cl*)
20952	# Native MSVC
20953	hardcode_libdir_flag_spec=' '
20954	allow_undefined_flag=unsupported
20955	always_export_symbols=yes
20956	file_list_spec='@'
20957	# Tell ltmain to make .lib files, not .a files.
20958	libext=lib
20959	# Tell ltmain to make .dll files, not .so files.
20960	shrext_cmds=".dll"
20961	# FIXME: Setting linknames here is a bad hack.
20962	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
20963	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20964	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
20965	  else
20966	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
20967	  fi~
20968	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
20969	  linknames='
20970	# The linker will not automatically build a static lib if we build a DLL.
20971	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
20972	enable_shared_with_static_runtimes=yes
20973	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
20974	# Don't use ranlib
20975	old_postinstall_cmds='chmod 644 $oldlib'
20976	postlink_cmds='lt_outputfile="@OUTPUT@"~
20977	  lt_tool_outputfile="@TOOL_OUTPUT@"~
20978	  case $lt_outputfile in
20979	    *.exe|*.EXE) ;;
20980	    *)
20981	      lt_outputfile="$lt_outputfile.exe"
20982	      lt_tool_outputfile="$lt_tool_outputfile.exe"
20983	      ;;
20984	  esac~
20985	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
20986	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
20987	    $RM "$lt_outputfile.manifest";
20988	  fi'
20989	;;
20990      *)
20991	# Assume MSVC wrapper
20992	hardcode_libdir_flag_spec=' '
20993	allow_undefined_flag=unsupported
20994	# Tell ltmain to make .lib files, not .a files.
20995	libext=lib
20996	# Tell ltmain to make .dll files, not .so files.
20997	shrext_cmds=".dll"
20998	# FIXME: Setting linknames here is a bad hack.
20999	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
21000	# The linker will automatically build a .lib file if we build a DLL.
21001	old_archive_from_new_cmds='true'
21002	# FIXME: Should let the user specify the lib program.
21003	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
21004	enable_shared_with_static_runtimes=yes
21005	;;
21006      esac
21007      ;;
21008
21009    darwin* | rhapsody*)
21010
21011
21012  archive_cmds_need_lc=no
21013  hardcode_direct=no
21014  hardcode_automatic=yes
21015  hardcode_shlibpath_var=unsupported
21016  if test "$lt_cv_ld_force_load" = "yes"; then
21017    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\"`'
21018  else
21019    whole_archive_flag_spec=''
21020  fi
21021  link_all_deplibs=yes
21022  allow_undefined_flag="$_lt_dar_allow_undefined"
21023  case $cc_basename in
21024     ifort*) _lt_dar_can_shared=yes ;;
21025     *) _lt_dar_can_shared=$GCC ;;
21026  esac
21027  if test "$_lt_dar_can_shared" = "yes"; then
21028    output_verbose_link_cmd=func_echo_all
21029    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
21030    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
21031    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}"
21032    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}"
21033
21034  else
21035  ld_shlibs=no
21036  fi
21037
21038      ;;
21039
21040    dgux*)
21041      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21042      hardcode_libdir_flag_spec='-L$libdir'
21043      hardcode_shlibpath_var=no
21044      ;;
21045
21046    freebsd1*)
21047      ld_shlibs=no
21048      ;;
21049
21050    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21051    # support.  Future versions do this automatically, but an explicit c++rt0.o
21052    # does not break anything, and helps significantly (at the cost of a little
21053    # extra space).
21054    freebsd2.2*)
21055      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21056      hardcode_libdir_flag_spec='-R$libdir'
21057      hardcode_direct=yes
21058      hardcode_shlibpath_var=no
21059      ;;
21060
21061    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21062    freebsd2*)
21063      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21064      hardcode_direct=yes
21065      hardcode_minus_L=yes
21066      hardcode_shlibpath_var=no
21067      ;;
21068
21069    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21070    freebsd* | dragonfly*)
21071      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21072      hardcode_libdir_flag_spec='-R$libdir'
21073      hardcode_direct=yes
21074      hardcode_shlibpath_var=no
21075      ;;
21076
21077    hpux9*)
21078      if test "$GCC" = yes; then
21079	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'
21080      else
21081	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'
21082      fi
21083      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
21084      hardcode_libdir_separator=:
21085      hardcode_direct=yes
21086
21087      # hardcode_minus_L: Not really in the search PATH,
21088      # but as the default location of the library.
21089      hardcode_minus_L=yes
21090      export_dynamic_flag_spec='${wl}-E'
21091      ;;
21092
21093    hpux10*)
21094      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
21095	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21096      else
21097	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21098      fi
21099      if test "$with_gnu_ld" = no; then
21100	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
21101	hardcode_libdir_flag_spec_ld='+b $libdir'
21102	hardcode_libdir_separator=:
21103	hardcode_direct=yes
21104	hardcode_direct_absolute=yes
21105	export_dynamic_flag_spec='${wl}-E'
21106	# hardcode_minus_L: Not really in the search PATH,
21107	# but as the default location of the library.
21108	hardcode_minus_L=yes
21109      fi
21110      ;;
21111
21112    hpux11*)
21113      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
21114	case $host_cpu in
21115	hppa*64*)
21116	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21117	  ;;
21118	ia64*)
21119	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21120	  ;;
21121	*)
21122	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21123	  ;;
21124	esac
21125      else
21126	case $host_cpu in
21127	hppa*64*)
21128	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21129	  ;;
21130	ia64*)
21131	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21132	  ;;
21133	*)
21134
21135	  # Older versions of the 11.00 compiler do not understand -b yet
21136	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
21137	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
21138$as_echo_n "checking if $CC understands -b... " >&6; }
21139if ${lt_cv_prog_compiler__b+:} false; then :
21140  $as_echo_n "(cached) " >&6
21141else
21142  lt_cv_prog_compiler__b=no
21143   save_LDFLAGS="$LDFLAGS"
21144   LDFLAGS="$LDFLAGS -b"
21145   echo "$lt_simple_link_test_code" > conftest.$ac_ext
21146   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21147     # The linker can only warn and ignore the option if not recognized
21148     # So say no if there are warnings
21149     if test -s conftest.err; then
21150       # Append any errors to the config.log.
21151       cat conftest.err 1>&5
21152       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21153       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21154       if diff conftest.exp conftest.er2 >/dev/null; then
21155         lt_cv_prog_compiler__b=yes
21156       fi
21157     else
21158       lt_cv_prog_compiler__b=yes
21159     fi
21160   fi
21161   $RM -r conftest*
21162   LDFLAGS="$save_LDFLAGS"
21163
21164fi
21165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
21166$as_echo "$lt_cv_prog_compiler__b" >&6; }
21167
21168if test x"$lt_cv_prog_compiler__b" = xyes; then
21169    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21170else
21171    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21172fi
21173
21174	  ;;
21175	esac
21176      fi
21177      if test "$with_gnu_ld" = no; then
21178	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
21179	hardcode_libdir_separator=:
21180
21181	case $host_cpu in
21182	hppa*64*|ia64*)
21183	  hardcode_direct=no
21184	  hardcode_shlibpath_var=no
21185	  ;;
21186	*)
21187	  hardcode_direct=yes
21188	  hardcode_direct_absolute=yes
21189	  export_dynamic_flag_spec='${wl}-E'
21190
21191	  # hardcode_minus_L: Not really in the search PATH,
21192	  # but as the default location of the library.
21193	  hardcode_minus_L=yes
21194	  ;;
21195	esac
21196      fi
21197      ;;
21198
21199    irix5* | irix6* | nonstopux*)
21200      if test "$GCC" = yes; then
21201	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'
21202	# Try to use the -exported_symbol ld option, if it does not
21203	# work, assume that -exports_file does not work either and
21204	# implicitly export all symbols.
21205	# This should be the same for all languages, so no per-tag cache variable.
21206	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
21207$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
21208if ${lt_cv_irix_exported_symbol+:} false; then :
21209  $as_echo_n "(cached) " >&6
21210else
21211  save_LDFLAGS="$LDFLAGS"
21212	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
21213	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21214/* end confdefs.h.  */
21215int foo (void) { return 0; }
21216_ACEOF
21217if ac_fn_c_try_link "$LINENO"; then :
21218  lt_cv_irix_exported_symbol=yes
21219else
21220  lt_cv_irix_exported_symbol=no
21221fi
21222rm -f core conftest.err conftest.$ac_objext \
21223    conftest$ac_exeext conftest.$ac_ext
21224           LDFLAGS="$save_LDFLAGS"
21225fi
21226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
21227$as_echo "$lt_cv_irix_exported_symbol" >&6; }
21228	if test "$lt_cv_irix_exported_symbol" = yes; then
21229          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'
21230	fi
21231      else
21232	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'
21233	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'
21234      fi
21235      archive_cmds_need_lc='no'
21236      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
21237      hardcode_libdir_separator=:
21238      inherit_rpath=yes
21239      link_all_deplibs=yes
21240      ;;
21241
21242    netbsd*)
21243      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21244	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21245      else
21246	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21247      fi
21248      hardcode_libdir_flag_spec='-R$libdir'
21249      hardcode_direct=yes
21250      hardcode_shlibpath_var=no
21251      ;;
21252
21253    newsos6)
21254      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21255      hardcode_direct=yes
21256      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
21257      hardcode_libdir_separator=:
21258      hardcode_shlibpath_var=no
21259      ;;
21260
21261    *nto* | *qnx*)
21262      ;;
21263
21264    openbsd*)
21265      if test -f /usr/libexec/ld.so; then
21266	hardcode_direct=yes
21267	hardcode_shlibpath_var=no
21268	hardcode_direct_absolute=yes
21269	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21270	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21271	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21272	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
21273	  export_dynamic_flag_spec='${wl}-E'
21274	else
21275	  case $host_os in
21276	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21277	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21278	     hardcode_libdir_flag_spec='-R$libdir'
21279	     ;;
21280	   *)
21281	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21282	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
21283	     ;;
21284	  esac
21285	fi
21286      else
21287	ld_shlibs=no
21288      fi
21289      ;;
21290
21291    os2*)
21292      hardcode_libdir_flag_spec='-L$libdir'
21293      hardcode_minus_L=yes
21294      allow_undefined_flag=unsupported
21295      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'
21296      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21297      ;;
21298
21299    osf3*)
21300      if test "$GCC" = yes; then
21301	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
21302	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'
21303      else
21304	allow_undefined_flag=' -expect_unresolved \*'
21305	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'
21306      fi
21307      archive_cmds_need_lc='no'
21308      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
21309      hardcode_libdir_separator=:
21310      ;;
21311
21312    osf4* | osf5*)	# as osf3* with the addition of -msym flag
21313      if test "$GCC" = yes; then
21314	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
21315	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'
21316	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
21317      else
21318	allow_undefined_flag=' -expect_unresolved \*'
21319	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'
21320	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~
21321	$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'
21322
21323	# Both c and cxx compiler support -rpath directly
21324	hardcode_libdir_flag_spec='-rpath $libdir'
21325      fi
21326      archive_cmds_need_lc='no'
21327      hardcode_libdir_separator=:
21328      ;;
21329
21330    solaris*)
21331      no_undefined_flag=' -z defs'
21332      if test "$GCC" = yes; then
21333	wlarc='${wl}'
21334	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21335	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21336	  $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'
21337      else
21338	case `$CC -V 2>&1` in
21339	*"Compilers 5.0"*)
21340	  wlarc=''
21341	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21342	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21343	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
21344	  ;;
21345	*)
21346	  wlarc='${wl}'
21347	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
21348	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21349	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
21350	  ;;
21351	esac
21352      fi
21353      hardcode_libdir_flag_spec='-R$libdir'
21354      hardcode_shlibpath_var=no
21355      case $host_os in
21356      solaris2.[0-5] | solaris2.[0-5].*) ;;
21357      *)
21358	# The compiler driver will combine and reorder linker options,
21359	# but understands `-z linker_flag'.  GCC discards it without `$wl',
21360	# but is careful enough not to reorder.
21361	# Supported since Solaris 2.6 (maybe 2.5.1?)
21362	if test "$GCC" = yes; then
21363	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21364	else
21365	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
21366	fi
21367	;;
21368      esac
21369      link_all_deplibs=yes
21370      ;;
21371
21372    sunos4*)
21373      if test "x$host_vendor" = xsequent; then
21374	# Use $CC to link under sequent, because it throws in some extra .o
21375	# files that make .init and .fini sections work.
21376	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21377      else
21378	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21379      fi
21380      hardcode_libdir_flag_spec='-L$libdir'
21381      hardcode_direct=yes
21382      hardcode_minus_L=yes
21383      hardcode_shlibpath_var=no
21384      ;;
21385
21386    sysv4)
21387      case $host_vendor in
21388	sni)
21389	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21390	  hardcode_direct=yes # is this really true???
21391	;;
21392	siemens)
21393	  ## LD is ld it makes a PLAMLIB
21394	  ## CC just makes a GrossModule.
21395	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21396	  reload_cmds='$CC -r -o $output$reload_objs'
21397	  hardcode_direct=no
21398        ;;
21399	motorola)
21400	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21401	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
21402	;;
21403      esac
21404      runpath_var='LD_RUN_PATH'
21405      hardcode_shlibpath_var=no
21406      ;;
21407
21408    sysv4.3*)
21409      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21410      hardcode_shlibpath_var=no
21411      export_dynamic_flag_spec='-Bexport'
21412      ;;
21413
21414    sysv4*MP*)
21415      if test -d /usr/nec; then
21416	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21417	hardcode_shlibpath_var=no
21418	runpath_var=LD_RUN_PATH
21419	hardcode_runpath_var=yes
21420	ld_shlibs=yes
21421      fi
21422      ;;
21423
21424    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21425      no_undefined_flag='${wl}-z,text'
21426      archive_cmds_need_lc=no
21427      hardcode_shlibpath_var=no
21428      runpath_var='LD_RUN_PATH'
21429
21430      if test "$GCC" = yes; then
21431	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21432	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21433      else
21434	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21435	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21436      fi
21437      ;;
21438
21439    sysv5* | sco3.2v5* | sco5v6*)
21440      # Note: We can NOT use -z defs as we might desire, because we do not
21441      # link with -lc, and that would cause any symbols used from libc to
21442      # always be unresolved, which means just about no library would
21443      # ever link correctly.  If we're not using GNU ld we use -z text
21444      # though, which does catch some bad symbols but isn't as heavy-handed
21445      # as -z defs.
21446      no_undefined_flag='${wl}-z,text'
21447      allow_undefined_flag='${wl}-z,nodefs'
21448      archive_cmds_need_lc=no
21449      hardcode_shlibpath_var=no
21450      hardcode_libdir_flag_spec='${wl}-R,$libdir'
21451      hardcode_libdir_separator=':'
21452      link_all_deplibs=yes
21453      export_dynamic_flag_spec='${wl}-Bexport'
21454      runpath_var='LD_RUN_PATH'
21455
21456      if test "$GCC" = yes; then
21457	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21458	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21459      else
21460	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21461	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21462      fi
21463      ;;
21464
21465    uts4*)
21466      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21467      hardcode_libdir_flag_spec='-L$libdir'
21468      hardcode_shlibpath_var=no
21469      ;;
21470
21471    *)
21472      ld_shlibs=no
21473      ;;
21474    esac
21475
21476    if test x$host_vendor = xsni; then
21477      case $host in
21478      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21479	export_dynamic_flag_spec='${wl}-Blargedynsym'
21480	;;
21481      esac
21482    fi
21483  fi
21484
21485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
21486$as_echo "$ld_shlibs" >&6; }
21487test "$ld_shlibs" = no && can_build_shared=no
21488
21489with_gnu_ld=$with_gnu_ld
21490
21491
21492
21493
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505#
21506# Do we need to explicitly link libc?
21507#
21508case "x$archive_cmds_need_lc" in
21509x|xyes)
21510  # Assume -lc should be added
21511  archive_cmds_need_lc=yes
21512
21513  if test "$enable_shared" = yes && test "$GCC" = yes; then
21514    case $archive_cmds in
21515    *'~'*)
21516      # FIXME: we may have to deal with multi-command sequences.
21517      ;;
21518    '$CC '*)
21519      # Test whether the compiler implicitly links with -lc since on some
21520      # systems, -lgcc has to come before -lc. If gcc already passes -lc
21521      # to ld, don't add -lc before -lgcc.
21522      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21523$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21524if ${lt_cv_archive_cmds_need_lc+:} false; then :
21525  $as_echo_n "(cached) " >&6
21526else
21527  $RM conftest*
21528	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21529
21530	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21531  (eval $ac_compile) 2>&5
21532  ac_status=$?
21533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21534  test $ac_status = 0; } 2>conftest.err; then
21535	  soname=conftest
21536	  lib=conftest
21537	  libobjs=conftest.$ac_objext
21538	  deplibs=
21539	  wl=$lt_prog_compiler_wl
21540	  pic_flag=$lt_prog_compiler_pic
21541	  compiler_flags=-v
21542	  linker_flags=-v
21543	  verstring=
21544	  output_objdir=.
21545	  libname=conftest
21546	  lt_save_allow_undefined_flag=$allow_undefined_flag
21547	  allow_undefined_flag=
21548	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21549  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21550  ac_status=$?
21551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21552  test $ac_status = 0; }
21553	  then
21554	    lt_cv_archive_cmds_need_lc=no
21555	  else
21556	    lt_cv_archive_cmds_need_lc=yes
21557	  fi
21558	  allow_undefined_flag=$lt_save_allow_undefined_flag
21559	else
21560	  cat conftest.err 1>&5
21561	fi
21562	$RM conftest*
21563
21564fi
21565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
21566$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
21567      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
21568      ;;
21569    esac
21570  fi
21571  ;;
21572esac
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21731$as_echo_n "checking dynamic linker characteristics... " >&6; }
21732
21733if test "$GCC" = yes; then
21734  case $host_os in
21735    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
21736    *) lt_awk_arg="/^libraries:/" ;;
21737  esac
21738  case $host_os in
21739    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
21740    *) lt_sed_strip_eq="s,=/,/,g" ;;
21741  esac
21742  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
21743  case $lt_search_path_spec in
21744  *\;*)
21745    # if the path contains ";" then we assume it to be the separator
21746    # otherwise default to the standard path separator (i.e. ":") - it is
21747    # assumed that no part of a normal pathname contains ";" but that should
21748    # okay in the real world where ";" in dirpaths is itself problematic.
21749    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
21750    ;;
21751  *)
21752    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
21753    ;;
21754  esac
21755  # Ok, now we have the path, separated by spaces, we can step through it
21756  # and add multilib dir if necessary.
21757  lt_tmp_lt_search_path_spec=
21758  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
21759  for lt_sys_path in $lt_search_path_spec; do
21760    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
21761      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
21762    else
21763      test -d "$lt_sys_path" && \
21764	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
21765    fi
21766  done
21767  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
21768BEGIN {RS=" "; FS="/|\n";} {
21769  lt_foo="";
21770  lt_count=0;
21771  for (lt_i = NF; lt_i > 0; lt_i--) {
21772    if ($lt_i != "" && $lt_i != ".") {
21773      if ($lt_i == "..") {
21774        lt_count++;
21775      } else {
21776        if (lt_count == 0) {
21777          lt_foo="/" $lt_i lt_foo;
21778        } else {
21779          lt_count--;
21780        }
21781      }
21782    }
21783  }
21784  if (lt_foo != "") { lt_freq[lt_foo]++; }
21785  if (lt_freq[lt_foo] == 1) { print lt_foo; }
21786}'`
21787  # AWK program above erroneously prepends '/' to C:/dos/paths
21788  # for these hosts.
21789  case $host_os in
21790    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
21791      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
21792  esac
21793  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
21794else
21795  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21796fi
21797library_names_spec=
21798libname_spec='lib$name'
21799soname_spec=
21800shrext_cmds=".so"
21801postinstall_cmds=
21802postuninstall_cmds=
21803finish_cmds=
21804finish_eval=
21805shlibpath_var=
21806shlibpath_overrides_runpath=unknown
21807version_type=none
21808dynamic_linker="$host_os ld.so"
21809sys_lib_dlsearch_path_spec="/lib /usr/lib"
21810need_lib_prefix=unknown
21811hardcode_into_libs=no
21812
21813# when you set need_version to no, make sure it does not cause -set_version
21814# flags to be left without arguments
21815need_version=unknown
21816
21817case $host_os in
21818aix3*)
21819  version_type=linux
21820  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21821  shlibpath_var=LIBPATH
21822
21823  # AIX 3 has no versioning support, so we append a major version to the name.
21824  soname_spec='${libname}${release}${shared_ext}$major'
21825  ;;
21826
21827aix[4-9]*)
21828  version_type=linux
21829  need_lib_prefix=no
21830  need_version=no
21831  hardcode_into_libs=yes
21832  if test "$host_cpu" = ia64; then
21833    # AIX 5 supports IA64
21834    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21835    shlibpath_var=LD_LIBRARY_PATH
21836  else
21837    # With GCC up to 2.95.x, collect2 would create an import file
21838    # for dependence libraries.  The import file would start with
21839    # the line `#! .'.  This would cause the generated library to
21840    # depend on `.', always an invalid library.  This was fixed in
21841    # development snapshots of GCC prior to 3.0.
21842    case $host_os in
21843      aix4 | aix4.[01] | aix4.[01].*)
21844      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21845	   echo ' yes '
21846	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21847	:
21848      else
21849	can_build_shared=no
21850      fi
21851      ;;
21852    esac
21853    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21854    # soname into executable. Probably we can add versioning support to
21855    # collect2, so additional links can be useful in future.
21856    if test "$aix_use_runtimelinking" = yes; then
21857      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21858      # instead of lib<name>.a to let people know that these are not
21859      # typical AIX shared libraries.
21860      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21861    else
21862      # We preserve .a as extension for shared libraries through AIX4.2
21863      # and later when we are not doing run time linking.
21864      library_names_spec='${libname}${release}.a $libname.a'
21865      soname_spec='${libname}${release}${shared_ext}$major'
21866    fi
21867    shlibpath_var=LIBPATH
21868  fi
21869  ;;
21870
21871amigaos*)
21872  case $host_cpu in
21873  powerpc)
21874    # Since July 2007 AmigaOS4 officially supports .so libraries.
21875    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21876    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21877    ;;
21878  m68k)
21879    library_names_spec='$libname.ixlibrary $libname.a'
21880    # Create ${libname}_ixlibrary.a entries in /sys/libs.
21881    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'
21882    ;;
21883  esac
21884  ;;
21885
21886beos*)
21887  library_names_spec='${libname}${shared_ext}'
21888  dynamic_linker="$host_os ld.so"
21889  shlibpath_var=LIBRARY_PATH
21890  ;;
21891
21892bsdi[45]*)
21893  version_type=linux
21894  need_version=no
21895  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21896  soname_spec='${libname}${release}${shared_ext}$major'
21897  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21898  shlibpath_var=LD_LIBRARY_PATH
21899  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21900  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21901  # the default ld.so.conf also contains /usr/contrib/lib and
21902  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21903  # libtool to hard-code these into programs
21904  ;;
21905
21906cygwin* | mingw* | pw32* | cegcc*)
21907  version_type=windows
21908  shrext_cmds=".dll"
21909  need_version=no
21910  need_lib_prefix=no
21911
21912  case $GCC,$cc_basename in
21913  yes,*)
21914    # gcc
21915    library_names_spec='$libname.dll.a'
21916    # DLL is installed to $(libdir)/../bin by postinstall_cmds
21917    postinstall_cmds='base_file=`basename \${file}`~
21918      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21919      dldir=$destdir/`dirname \$dlpath`~
21920      test -d \$dldir || mkdir -p \$dldir~
21921      $install_prog $dir/$dlname \$dldir/$dlname~
21922      chmod a+x \$dldir/$dlname~
21923      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21924        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21925      fi'
21926    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21927      dlpath=$dir/\$dldll~
21928       $RM \$dlpath'
21929    shlibpath_overrides_runpath=yes
21930
21931    case $host_os in
21932    cygwin*)
21933      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21934      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21935
21936      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
21937      ;;
21938    mingw* | cegcc*)
21939      # MinGW DLLs use traditional 'lib' prefix
21940      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21941      ;;
21942    pw32*)
21943      # pw32 DLLs use 'pw' prefix rather than 'lib'
21944      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21945      ;;
21946    esac
21947    dynamic_linker='Win32 ld.exe'
21948    ;;
21949
21950  *,cl*)
21951    # Native MSVC
21952    libname_spec='$name'
21953    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21954    library_names_spec='${libname}.dll.lib'
21955
21956    case $build_os in
21957    mingw*)
21958      sys_lib_search_path_spec=
21959      lt_save_ifs=$IFS
21960      IFS=';'
21961      for lt_path in $LIB
21962      do
21963        IFS=$lt_save_ifs
21964        # Let DOS variable expansion print the short 8.3 style file name.
21965        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21966        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21967      done
21968      IFS=$lt_save_ifs
21969      # Convert to MSYS style.
21970      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21971      ;;
21972    cygwin*)
21973      # Convert to unix form, then to dos form, then back to unix form
21974      # but this time dos style (no spaces!) so that the unix form looks
21975      # like /cygdrive/c/PROGRA~1:/cygdr...
21976      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21977      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21978      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21979      ;;
21980    *)
21981      sys_lib_search_path_spec="$LIB"
21982      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21983        # It is most probably a Windows format PATH.
21984        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21985      else
21986        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21987      fi
21988      # FIXME: find the short name or the path components, as spaces are
21989      # common. (e.g. "Program Files" -> "PROGRA~1")
21990      ;;
21991    esac
21992
21993    # DLL is installed to $(libdir)/../bin by postinstall_cmds
21994    postinstall_cmds='base_file=`basename \${file}`~
21995      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21996      dldir=$destdir/`dirname \$dlpath`~
21997      test -d \$dldir || mkdir -p \$dldir~
21998      $install_prog $dir/$dlname \$dldir/$dlname'
21999    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22000      dlpath=$dir/\$dldll~
22001       $RM \$dlpath'
22002    shlibpath_overrides_runpath=yes
22003    dynamic_linker='Win32 link.exe'
22004    ;;
22005
22006  *)
22007    # Assume MSVC wrapper
22008    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22009    dynamic_linker='Win32 ld.exe'
22010    ;;
22011  esac
22012  # FIXME: first we should search . and the directory the executable is in
22013  shlibpath_var=PATH
22014  ;;
22015
22016darwin* | rhapsody*)
22017  dynamic_linker="$host_os dyld"
22018  version_type=darwin
22019  need_lib_prefix=no
22020  need_version=no
22021  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22022  soname_spec='${libname}${release}${major}$shared_ext'
22023  shlibpath_overrides_runpath=yes
22024  shlibpath_var=DYLD_LIBRARY_PATH
22025  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22026
22027  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
22028  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22029  ;;
22030
22031dgux*)
22032  version_type=linux
22033  need_lib_prefix=no
22034  need_version=no
22035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22036  soname_spec='${libname}${release}${shared_ext}$major'
22037  shlibpath_var=LD_LIBRARY_PATH
22038  ;;
22039
22040freebsd1*)
22041  dynamic_linker=no
22042  ;;
22043
22044freebsd* | dragonfly*)
22045  # DragonFly does not have aout.  When/if they implement a new
22046  # versioning mechanism, adjust this.
22047  if test -x /usr/bin/objformat; then
22048    objformat=`/usr/bin/objformat`
22049  else
22050    case $host_os in
22051    freebsd[123]*) objformat=aout ;;
22052    *) objformat=elf ;;
22053    esac
22054  fi
22055  version_type=freebsd-$objformat
22056  case $version_type in
22057    freebsd-elf*)
22058      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22059      need_version=no
22060      need_lib_prefix=no
22061      ;;
22062    freebsd-*)
22063      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22064      need_version=yes
22065      ;;
22066  esac
22067  shlibpath_var=LD_LIBRARY_PATH
22068  case $host_os in
22069  freebsd2*)
22070    shlibpath_overrides_runpath=yes
22071    ;;
22072  freebsd3.[01]* | freebsdelf3.[01]*)
22073    shlibpath_overrides_runpath=yes
22074    hardcode_into_libs=yes
22075    ;;
22076  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22077  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22078    shlibpath_overrides_runpath=no
22079    hardcode_into_libs=yes
22080    ;;
22081  *) # from 4.6 on, and DragonFly
22082    shlibpath_overrides_runpath=yes
22083    hardcode_into_libs=yes
22084    ;;
22085  esac
22086  ;;
22087
22088gnu*)
22089  version_type=linux
22090  need_lib_prefix=no
22091  need_version=no
22092  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22093  soname_spec='${libname}${release}${shared_ext}$major'
22094  shlibpath_var=LD_LIBRARY_PATH
22095  hardcode_into_libs=yes
22096  ;;
22097
22098haiku*)
22099  version_type=linux
22100  need_lib_prefix=no
22101  need_version=no
22102  dynamic_linker="$host_os runtime_loader"
22103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22104  soname_spec='${libname}${release}${shared_ext}$major'
22105  shlibpath_var=LIBRARY_PATH
22106  shlibpath_overrides_runpath=yes
22107  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
22108  hardcode_into_libs=yes
22109  ;;
22110
22111hpux9* | hpux10* | hpux11*)
22112  # Give a soname corresponding to the major version so that dld.sl refuses to
22113  # link against other versions.
22114  version_type=sunos
22115  need_lib_prefix=no
22116  need_version=no
22117  case $host_cpu in
22118  ia64*)
22119    shrext_cmds='.so'
22120    hardcode_into_libs=yes
22121    dynamic_linker="$host_os dld.so"
22122    shlibpath_var=LD_LIBRARY_PATH
22123    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22124    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22125    soname_spec='${libname}${release}${shared_ext}$major'
22126    if test "X$HPUX_IA64_MODE" = X32; then
22127      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22128    else
22129      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22130    fi
22131    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22132    ;;
22133  hppa*64*)
22134    shrext_cmds='.sl'
22135    hardcode_into_libs=yes
22136    dynamic_linker="$host_os dld.sl"
22137    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22138    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22139    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22140    soname_spec='${libname}${release}${shared_ext}$major'
22141    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22142    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22143    ;;
22144  *)
22145    shrext_cmds='.sl'
22146    dynamic_linker="$host_os dld.sl"
22147    shlibpath_var=SHLIB_PATH
22148    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22149    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22150    soname_spec='${libname}${release}${shared_ext}$major'
22151    ;;
22152  esac
22153  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22154  postinstall_cmds='chmod 555 $lib'
22155  # or fails outright, so override atomically:
22156  install_override_mode=555
22157  ;;
22158
22159interix[3-9]*)
22160  version_type=linux
22161  need_lib_prefix=no
22162  need_version=no
22163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22164  soname_spec='${libname}${release}${shared_ext}$major'
22165  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22166  shlibpath_var=LD_LIBRARY_PATH
22167  shlibpath_overrides_runpath=no
22168  hardcode_into_libs=yes
22169  ;;
22170
22171irix5* | irix6* | nonstopux*)
22172  case $host_os in
22173    nonstopux*) version_type=nonstopux ;;
22174    *)
22175	if test "$lt_cv_prog_gnu_ld" = yes; then
22176		version_type=linux
22177	else
22178		version_type=irix
22179	fi ;;
22180  esac
22181  need_lib_prefix=no
22182  need_version=no
22183  soname_spec='${libname}${release}${shared_ext}$major'
22184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22185  case $host_os in
22186  irix5* | nonstopux*)
22187    libsuff= shlibsuff=
22188    ;;
22189  *)
22190    case $LD in # libtool.m4 will add one of these switches to LD
22191    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22192      libsuff= shlibsuff= libmagic=32-bit;;
22193    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22194      libsuff=32 shlibsuff=N32 libmagic=N32;;
22195    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22196      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22197    *) libsuff= shlibsuff= libmagic=never-match;;
22198    esac
22199    ;;
22200  esac
22201  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22202  shlibpath_overrides_runpath=no
22203  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22204  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22205  hardcode_into_libs=yes
22206  ;;
22207
22208# No shared lib support for Linux oldld, aout, or coff.
22209linux*oldld* | linux*aout* | linux*coff*)
22210  dynamic_linker=no
22211  ;;
22212
22213# This must be Linux ELF.
22214linux* | k*bsd*-gnu | kopensolaris*-gnu)
22215  version_type=linux
22216  need_lib_prefix=no
22217  need_version=no
22218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22219  soname_spec='${libname}${release}${shared_ext}$major'
22220  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22221  shlibpath_var=LD_LIBRARY_PATH
22222  shlibpath_overrides_runpath=no
22223
22224  # Some binutils ld are patched to set DT_RUNPATH
22225  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22226  $as_echo_n "(cached) " >&6
22227else
22228  lt_cv_shlibpath_overrides_runpath=no
22229    save_LDFLAGS=$LDFLAGS
22230    save_libdir=$libdir
22231    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
22232	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
22233    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22234/* end confdefs.h.  */
22235
22236int
22237main ()
22238{
22239
22240  ;
22241  return 0;
22242}
22243_ACEOF
22244if ac_fn_c_try_link "$LINENO"; then :
22245  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22246  lt_cv_shlibpath_overrides_runpath=yes
22247fi
22248fi
22249rm -f core conftest.err conftest.$ac_objext \
22250    conftest$ac_exeext conftest.$ac_ext
22251    LDFLAGS=$save_LDFLAGS
22252    libdir=$save_libdir
22253
22254fi
22255
22256  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22257
22258  # This implies no fast_install, which is unacceptable.
22259  # Some rework will be needed to allow for fast_install
22260  # before this can be enabled.
22261  hardcode_into_libs=yes
22262
22263  # Append ld.so.conf contents to the search path
22264  if test -f /etc/ld.so.conf; then
22265    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' ' '`
22266    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22267  fi
22268
22269  # We used to test for /lib/ld.so.1 and disable shared libraries on
22270  # powerpc, because MkLinux only supported shared libraries with the
22271  # GNU dynamic linker.  Since this was broken with cross compilers,
22272  # most powerpc-linux boxes support dynamic linking these days and
22273  # people can always --disable-shared, the test was removed, and we
22274  # assume the GNU/Linux dynamic linker is in use.
22275  dynamic_linker='GNU/Linux ld.so'
22276  ;;
22277
22278netbsd*)
22279  version_type=sunos
22280  need_lib_prefix=no
22281  need_version=no
22282  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22283    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22284    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22285    dynamic_linker='NetBSD (a.out) ld.so'
22286  else
22287    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22288    soname_spec='${libname}${release}${shared_ext}$major'
22289    dynamic_linker='NetBSD ld.elf_so'
22290  fi
22291  shlibpath_var=LD_LIBRARY_PATH
22292  shlibpath_overrides_runpath=yes
22293  hardcode_into_libs=yes
22294  ;;
22295
22296newsos6)
22297  version_type=linux
22298  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22299  shlibpath_var=LD_LIBRARY_PATH
22300  shlibpath_overrides_runpath=yes
22301  ;;
22302
22303*nto* | *qnx*)
22304  version_type=qnx
22305  need_lib_prefix=no
22306  need_version=no
22307  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22308  soname_spec='${libname}${release}${shared_ext}$major'
22309  shlibpath_var=LD_LIBRARY_PATH
22310  shlibpath_overrides_runpath=no
22311  hardcode_into_libs=yes
22312  dynamic_linker='ldqnx.so'
22313  ;;
22314
22315openbsd*)
22316  version_type=sunos
22317  sys_lib_dlsearch_path_spec="/usr/lib"
22318  need_lib_prefix=no
22319  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22320  case $host_os in
22321    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
22322    *)				need_version=no  ;;
22323  esac
22324  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22325  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22326  shlibpath_var=LD_LIBRARY_PATH
22327  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22328    case $host_os in
22329      openbsd2.[89] | openbsd2.[89].*)
22330	shlibpath_overrides_runpath=no
22331	;;
22332      *)
22333	shlibpath_overrides_runpath=yes
22334	;;
22335      esac
22336  else
22337    shlibpath_overrides_runpath=yes
22338  fi
22339  ;;
22340
22341os2*)
22342  libname_spec='$name'
22343  shrext_cmds=".dll"
22344  need_lib_prefix=no
22345  library_names_spec='$libname${shared_ext} $libname.a'
22346  dynamic_linker='OS/2 ld.exe'
22347  shlibpath_var=LIBPATH
22348  ;;
22349
22350osf3* | osf4* | osf5*)
22351  version_type=osf
22352  need_lib_prefix=no
22353  need_version=no
22354  soname_spec='${libname}${release}${shared_ext}$major'
22355  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22356  shlibpath_var=LD_LIBRARY_PATH
22357  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22358  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22359  ;;
22360
22361rdos*)
22362  dynamic_linker=no
22363  ;;
22364
22365solaris*)
22366  version_type=linux
22367  need_lib_prefix=no
22368  need_version=no
22369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22370  soname_spec='${libname}${release}${shared_ext}$major'
22371  shlibpath_var=LD_LIBRARY_PATH
22372  shlibpath_overrides_runpath=yes
22373  hardcode_into_libs=yes
22374  # ldd complains unless libraries are executable
22375  postinstall_cmds='chmod +x $lib'
22376  ;;
22377
22378sunos4*)
22379  version_type=sunos
22380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22381  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22382  shlibpath_var=LD_LIBRARY_PATH
22383  shlibpath_overrides_runpath=yes
22384  if test "$with_gnu_ld" = yes; then
22385    need_lib_prefix=no
22386  fi
22387  need_version=yes
22388  ;;
22389
22390sysv4 | sysv4.3*)
22391  version_type=linux
22392  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22393  soname_spec='${libname}${release}${shared_ext}$major'
22394  shlibpath_var=LD_LIBRARY_PATH
22395  case $host_vendor in
22396    sni)
22397      shlibpath_overrides_runpath=no
22398      need_lib_prefix=no
22399      runpath_var=LD_RUN_PATH
22400      ;;
22401    siemens)
22402      need_lib_prefix=no
22403      ;;
22404    motorola)
22405      need_lib_prefix=no
22406      need_version=no
22407      shlibpath_overrides_runpath=no
22408      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22409      ;;
22410  esac
22411  ;;
22412
22413sysv4*MP*)
22414  if test -d /usr/nec ;then
22415    version_type=linux
22416    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22417    soname_spec='$libname${shared_ext}.$major'
22418    shlibpath_var=LD_LIBRARY_PATH
22419  fi
22420  ;;
22421
22422sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22423  version_type=freebsd-elf
22424  need_lib_prefix=no
22425  need_version=no
22426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22427  soname_spec='${libname}${release}${shared_ext}$major'
22428  shlibpath_var=LD_LIBRARY_PATH
22429  shlibpath_overrides_runpath=yes
22430  hardcode_into_libs=yes
22431  if test "$with_gnu_ld" = yes; then
22432    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22433  else
22434    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22435    case $host_os in
22436      sco3.2v5*)
22437        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22438	;;
22439    esac
22440  fi
22441  sys_lib_dlsearch_path_spec='/usr/lib'
22442  ;;
22443
22444tpf*)
22445  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
22446  version_type=linux
22447  need_lib_prefix=no
22448  need_version=no
22449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22450  shlibpath_var=LD_LIBRARY_PATH
22451  shlibpath_overrides_runpath=no
22452  hardcode_into_libs=yes
22453  ;;
22454
22455uts4*)
22456  version_type=linux
22457  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22458  soname_spec='${libname}${release}${shared_ext}$major'
22459  shlibpath_var=LD_LIBRARY_PATH
22460  ;;
22461
22462*)
22463  dynamic_linker=no
22464  ;;
22465esac
22466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22467$as_echo "$dynamic_linker" >&6; }
22468test "$dynamic_linker" = no && can_build_shared=no
22469
22470variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22471if test "$GCC" = yes; then
22472  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22473fi
22474
22475if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22476  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22477fi
22478if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22479  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22480fi
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
22495
22496
22497
22498
22499
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22574$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22575hardcode_action=
22576if test -n "$hardcode_libdir_flag_spec" ||
22577   test -n "$runpath_var" ||
22578   test "X$hardcode_automatic" = "Xyes" ; then
22579
22580  # We can hardcode non-existent directories.
22581  if test "$hardcode_direct" != no &&
22582     # If the only mechanism to avoid hardcoding is shlibpath_var, we
22583     # have to relink, otherwise we might link with an installed library
22584     # when we should be linking with a yet-to-be-installed one
22585     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
22586     test "$hardcode_minus_L" != no; then
22587    # Linking always hardcodes the temporary library directory.
22588    hardcode_action=relink
22589  else
22590    # We can link without hardcoding, and we can hardcode nonexisting dirs.
22591    hardcode_action=immediate
22592  fi
22593else
22594  # We cannot hardcode anything, or else we can only hardcode existing
22595  # directories.
22596  hardcode_action=unsupported
22597fi
22598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
22599$as_echo "$hardcode_action" >&6; }
22600
22601if test "$hardcode_action" = relink ||
22602   test "$inherit_rpath" = yes; then
22603  # Fast installation is not supported
22604  enable_fast_install=no
22605elif test "$shlibpath_overrides_runpath" = yes ||
22606     test "$enable_shared" = no; then
22607  # Fast installation is not necessary
22608  enable_fast_install=needless
22609fi
22610
22611
22612
22613
22614
22615
22616  if test "x$enable_dlopen" != xyes; then
22617  enable_dlopen=unknown
22618  enable_dlopen_self=unknown
22619  enable_dlopen_self_static=unknown
22620else
22621  lt_cv_dlopen=no
22622  lt_cv_dlopen_libs=
22623
22624  case $host_os in
22625  beos*)
22626    lt_cv_dlopen="load_add_on"
22627    lt_cv_dlopen_libs=
22628    lt_cv_dlopen_self=yes
22629    ;;
22630
22631  mingw* | pw32* | cegcc*)
22632    lt_cv_dlopen="LoadLibrary"
22633    lt_cv_dlopen_libs=
22634    ;;
22635
22636  cygwin*)
22637    lt_cv_dlopen="dlopen"
22638    lt_cv_dlopen_libs=
22639    ;;
22640
22641  darwin*)
22642  # if libdl is installed we need to link against it
22643    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22644$as_echo_n "checking for dlopen in -ldl... " >&6; }
22645if ${ac_cv_lib_dl_dlopen+:} false; then :
22646  $as_echo_n "(cached) " >&6
22647else
22648  ac_check_lib_save_LIBS=$LIBS
22649LIBS="-ldl  $LIBS"
22650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22651/* end confdefs.h.  */
22652
22653/* Override any GCC internal prototype to avoid an error.
22654   Use char because int might match the return type of a GCC
22655   builtin and then its argument prototype would still apply.  */
22656#ifdef __cplusplus
22657extern "C"
22658#endif
22659char dlopen ();
22660int
22661main ()
22662{
22663return dlopen ();
22664  ;
22665  return 0;
22666}
22667_ACEOF
22668if ac_fn_c_try_link "$LINENO"; then :
22669  ac_cv_lib_dl_dlopen=yes
22670else
22671  ac_cv_lib_dl_dlopen=no
22672fi
22673rm -f core conftest.err conftest.$ac_objext \
22674    conftest$ac_exeext conftest.$ac_ext
22675LIBS=$ac_check_lib_save_LIBS
22676fi
22677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22678$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22679if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22680  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22681else
22682
22683    lt_cv_dlopen="dyld"
22684    lt_cv_dlopen_libs=
22685    lt_cv_dlopen_self=yes
22686
22687fi
22688
22689    ;;
22690
22691  *)
22692    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22693if test "x$ac_cv_func_shl_load" = xyes; then :
22694  lt_cv_dlopen="shl_load"
22695else
22696  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
22697$as_echo_n "checking for shl_load in -ldld... " >&6; }
22698if ${ac_cv_lib_dld_shl_load+:} false; then :
22699  $as_echo_n "(cached) " >&6
22700else
22701  ac_check_lib_save_LIBS=$LIBS
22702LIBS="-ldld  $LIBS"
22703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22704/* end confdefs.h.  */
22705
22706/* Override any GCC internal prototype to avoid an error.
22707   Use char because int might match the return type of a GCC
22708   builtin and then its argument prototype would still apply.  */
22709#ifdef __cplusplus
22710extern "C"
22711#endif
22712char shl_load ();
22713int
22714main ()
22715{
22716return shl_load ();
22717  ;
22718  return 0;
22719}
22720_ACEOF
22721if ac_fn_c_try_link "$LINENO"; then :
22722  ac_cv_lib_dld_shl_load=yes
22723else
22724  ac_cv_lib_dld_shl_load=no
22725fi
22726rm -f core conftest.err conftest.$ac_objext \
22727    conftest$ac_exeext conftest.$ac_ext
22728LIBS=$ac_check_lib_save_LIBS
22729fi
22730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
22731$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22732if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
22733  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
22734else
22735  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22736if test "x$ac_cv_func_dlopen" = xyes; then :
22737  lt_cv_dlopen="dlopen"
22738else
22739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22740$as_echo_n "checking for dlopen in -ldl... " >&6; }
22741if ${ac_cv_lib_dl_dlopen+:} false; then :
22742  $as_echo_n "(cached) " >&6
22743else
22744  ac_check_lib_save_LIBS=$LIBS
22745LIBS="-ldl  $LIBS"
22746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22747/* end confdefs.h.  */
22748
22749/* Override any GCC internal prototype to avoid an error.
22750   Use char because int might match the return type of a GCC
22751   builtin and then its argument prototype would still apply.  */
22752#ifdef __cplusplus
22753extern "C"
22754#endif
22755char dlopen ();
22756int
22757main ()
22758{
22759return dlopen ();
22760  ;
22761  return 0;
22762}
22763_ACEOF
22764if ac_fn_c_try_link "$LINENO"; then :
22765  ac_cv_lib_dl_dlopen=yes
22766else
22767  ac_cv_lib_dl_dlopen=no
22768fi
22769rm -f core conftest.err conftest.$ac_objext \
22770    conftest$ac_exeext conftest.$ac_ext
22771LIBS=$ac_check_lib_save_LIBS
22772fi
22773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22774$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22775if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22776  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22777else
22778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
22779$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22780if ${ac_cv_lib_svld_dlopen+:} false; then :
22781  $as_echo_n "(cached) " >&6
22782else
22783  ac_check_lib_save_LIBS=$LIBS
22784LIBS="-lsvld  $LIBS"
22785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22786/* end confdefs.h.  */
22787
22788/* Override any GCC internal prototype to avoid an error.
22789   Use char because int might match the return type of a GCC
22790   builtin and then its argument prototype would still apply.  */
22791#ifdef __cplusplus
22792extern "C"
22793#endif
22794char dlopen ();
22795int
22796main ()
22797{
22798return dlopen ();
22799  ;
22800  return 0;
22801}
22802_ACEOF
22803if ac_fn_c_try_link "$LINENO"; then :
22804  ac_cv_lib_svld_dlopen=yes
22805else
22806  ac_cv_lib_svld_dlopen=no
22807fi
22808rm -f core conftest.err conftest.$ac_objext \
22809    conftest$ac_exeext conftest.$ac_ext
22810LIBS=$ac_check_lib_save_LIBS
22811fi
22812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
22813$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22814if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
22815  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
22816else
22817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
22818$as_echo_n "checking for dld_link in -ldld... " >&6; }
22819if ${ac_cv_lib_dld_dld_link+:} false; then :
22820  $as_echo_n "(cached) " >&6
22821else
22822  ac_check_lib_save_LIBS=$LIBS
22823LIBS="-ldld  $LIBS"
22824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22825/* end confdefs.h.  */
22826
22827/* Override any GCC internal prototype to avoid an error.
22828   Use char because int might match the return type of a GCC
22829   builtin and then its argument prototype would still apply.  */
22830#ifdef __cplusplus
22831extern "C"
22832#endif
22833char dld_link ();
22834int
22835main ()
22836{
22837return dld_link ();
22838  ;
22839  return 0;
22840}
22841_ACEOF
22842if ac_fn_c_try_link "$LINENO"; then :
22843  ac_cv_lib_dld_dld_link=yes
22844else
22845  ac_cv_lib_dld_dld_link=no
22846fi
22847rm -f core conftest.err conftest.$ac_objext \
22848    conftest$ac_exeext conftest.$ac_ext
22849LIBS=$ac_check_lib_save_LIBS
22850fi
22851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
22852$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22853if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
22854  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
22855fi
22856
22857
22858fi
22859
22860
22861fi
22862
22863
22864fi
22865
22866
22867fi
22868
22869
22870fi
22871
22872    ;;
22873  esac
22874
22875  if test "x$lt_cv_dlopen" != xno; then
22876    enable_dlopen=yes
22877  else
22878    enable_dlopen=no
22879  fi
22880
22881  case $lt_cv_dlopen in
22882  dlopen)
22883    save_CPPFLAGS="$CPPFLAGS"
22884    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
22885
22886    save_LDFLAGS="$LDFLAGS"
22887    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
22888
22889    save_LIBS="$LIBS"
22890    LIBS="$lt_cv_dlopen_libs $LIBS"
22891
22892    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
22893$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22894if ${lt_cv_dlopen_self+:} false; then :
22895  $as_echo_n "(cached) " >&6
22896else
22897  	  if test "$cross_compiling" = yes; then :
22898  lt_cv_dlopen_self=cross
22899else
22900  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22901  lt_status=$lt_dlunknown
22902  cat > conftest.$ac_ext <<_LT_EOF
22903#line $LINENO "configure"
22904#include "confdefs.h"
22905
22906#if HAVE_DLFCN_H
22907#include <dlfcn.h>
22908#endif
22909
22910#include <stdio.h>
22911
22912#ifdef RTLD_GLOBAL
22913#  define LT_DLGLOBAL		RTLD_GLOBAL
22914#else
22915#  ifdef DL_GLOBAL
22916#    define LT_DLGLOBAL		DL_GLOBAL
22917#  else
22918#    define LT_DLGLOBAL		0
22919#  endif
22920#endif
22921
22922/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22923   find out it does not work in some platform. */
22924#ifndef LT_DLLAZY_OR_NOW
22925#  ifdef RTLD_LAZY
22926#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
22927#  else
22928#    ifdef DL_LAZY
22929#      define LT_DLLAZY_OR_NOW		DL_LAZY
22930#    else
22931#      ifdef RTLD_NOW
22932#        define LT_DLLAZY_OR_NOW	RTLD_NOW
22933#      else
22934#        ifdef DL_NOW
22935#          define LT_DLLAZY_OR_NOW	DL_NOW
22936#        else
22937#          define LT_DLLAZY_OR_NOW	0
22938#        endif
22939#      endif
22940#    endif
22941#  endif
22942#endif
22943
22944/* When -fvisbility=hidden is used, assume the code has been annotated
22945   correspondingly for the symbols needed.  */
22946#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
22947int fnord () __attribute__((visibility("default")));
22948#endif
22949
22950int fnord () { return 42; }
22951int main ()
22952{
22953  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22954  int status = $lt_dlunknown;
22955
22956  if (self)
22957    {
22958      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
22959      else
22960        {
22961	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
22962          else puts (dlerror ());
22963	}
22964      /* dlclose (self); */
22965    }
22966  else
22967    puts (dlerror ());
22968
22969  return status;
22970}
22971_LT_EOF
22972  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22973  (eval $ac_link) 2>&5
22974  ac_status=$?
22975  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22976  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
22977    (./conftest; exit; ) >&5 2>/dev/null
22978    lt_status=$?
22979    case x$lt_status in
22980      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
22981      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
22982      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
22983    esac
22984  else :
22985    # compilation failed
22986    lt_cv_dlopen_self=no
22987  fi
22988fi
22989rm -fr conftest*
22990
22991
22992fi
22993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
22994$as_echo "$lt_cv_dlopen_self" >&6; }
22995
22996    if test "x$lt_cv_dlopen_self" = xyes; then
22997      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
22998      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
22999$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
23000if ${lt_cv_dlopen_self_static+:} false; then :
23001  $as_echo_n "(cached) " >&6
23002else
23003  	  if test "$cross_compiling" = yes; then :
23004  lt_cv_dlopen_self_static=cross
23005else
23006  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23007  lt_status=$lt_dlunknown
23008  cat > conftest.$ac_ext <<_LT_EOF
23009#line $LINENO "configure"
23010#include "confdefs.h"
23011
23012#if HAVE_DLFCN_H
23013#include <dlfcn.h>
23014#endif
23015
23016#include <stdio.h>
23017
23018#ifdef RTLD_GLOBAL
23019#  define LT_DLGLOBAL		RTLD_GLOBAL
23020#else
23021#  ifdef DL_GLOBAL
23022#    define LT_DLGLOBAL		DL_GLOBAL
23023#  else
23024#    define LT_DLGLOBAL		0
23025#  endif
23026#endif
23027
23028/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23029   find out it does not work in some platform. */
23030#ifndef LT_DLLAZY_OR_NOW
23031#  ifdef RTLD_LAZY
23032#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
23033#  else
23034#    ifdef DL_LAZY
23035#      define LT_DLLAZY_OR_NOW		DL_LAZY
23036#    else
23037#      ifdef RTLD_NOW
23038#        define LT_DLLAZY_OR_NOW	RTLD_NOW
23039#      else
23040#        ifdef DL_NOW
23041#          define LT_DLLAZY_OR_NOW	DL_NOW
23042#        else
23043#          define LT_DLLAZY_OR_NOW	0
23044#        endif
23045#      endif
23046#    endif
23047#  endif
23048#endif
23049
23050/* When -fvisbility=hidden is used, assume the code has been annotated
23051   correspondingly for the symbols needed.  */
23052#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
23053int fnord () __attribute__((visibility("default")));
23054#endif
23055
23056int fnord () { return 42; }
23057int main ()
23058{
23059  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23060  int status = $lt_dlunknown;
23061
23062  if (self)
23063    {
23064      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23065      else
23066        {
23067	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
23068          else puts (dlerror ());
23069	}
23070      /* dlclose (self); */
23071    }
23072  else
23073    puts (dlerror ());
23074
23075  return status;
23076}
23077_LT_EOF
23078  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
23079  (eval $ac_link) 2>&5
23080  ac_status=$?
23081  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23082  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
23083    (./conftest; exit; ) >&5 2>/dev/null
23084    lt_status=$?
23085    case x$lt_status in
23086      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23087      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23088      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
23089    esac
23090  else :
23091    # compilation failed
23092    lt_cv_dlopen_self_static=no
23093  fi
23094fi
23095rm -fr conftest*
23096
23097
23098fi
23099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
23100$as_echo "$lt_cv_dlopen_self_static" >&6; }
23101    fi
23102
23103    CPPFLAGS="$save_CPPFLAGS"
23104    LDFLAGS="$save_LDFLAGS"
23105    LIBS="$save_LIBS"
23106    ;;
23107  esac
23108
23109  case $lt_cv_dlopen_self in
23110  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23111  *) enable_dlopen_self=unknown ;;
23112  esac
23113
23114  case $lt_cv_dlopen_self_static in
23115  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23116  *) enable_dlopen_self_static=unknown ;;
23117  esac
23118fi
23119
23120
23121
23122
23123
23124
23125
23126
23127
23128
23129
23130
23131
23132
23133
23134
23135
23136striplib=
23137old_striplib=
23138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
23139$as_echo_n "checking whether stripping libraries is possible... " >&6; }
23140if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
23141  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23142  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23144$as_echo "yes" >&6; }
23145else
23146# FIXME - insert some real tests, host_os isn't really good enough
23147  case $host_os in
23148  darwin*)
23149    if test -n "$STRIP" ; then
23150      striplib="$STRIP -x"
23151      old_striplib="$STRIP -S"
23152      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23153$as_echo "yes" >&6; }
23154    else
23155      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23156$as_echo "no" >&6; }
23157    fi
23158    ;;
23159  *)
23160    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23161$as_echo "no" >&6; }
23162    ;;
23163  esac
23164fi
23165
23166
23167
23168
23169
23170
23171
23172
23173
23174
23175
23176
23177  # Report which library types will actually be built
23178  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
23179$as_echo_n "checking if libtool supports shared libraries... " >&6; }
23180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
23181$as_echo "$can_build_shared" >&6; }
23182
23183  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
23184$as_echo_n "checking whether to build shared libraries... " >&6; }
23185  test "$can_build_shared" = "no" && enable_shared=no
23186
23187  # On AIX, shared libraries and static libraries use the same namespace, and
23188  # are all built from PIC.
23189  case $host_os in
23190  aix3*)
23191    test "$enable_shared" = yes && enable_static=no
23192    if test -n "$RANLIB"; then
23193      archive_cmds="$archive_cmds~\$RANLIB \$lib"
23194      postinstall_cmds='$RANLIB $lib'
23195    fi
23196    ;;
23197
23198  aix[4-9]*)
23199    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
23200      test "$enable_shared" = yes && enable_static=no
23201    fi
23202    ;;
23203  esac
23204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
23205$as_echo "$enable_shared" >&6; }
23206
23207  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
23208$as_echo_n "checking whether to build static libraries... " >&6; }
23209  # Make sure either enable_shared or enable_static is yes.
23210  test "$enable_shared" = yes || enable_static=yes
23211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
23212$as_echo "$enable_static" >&6; }
23213
23214
23215
23216
23217fi
23218ac_ext=c
23219ac_cpp='$CPP $CPPFLAGS'
23220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23222ac_compiler_gnu=$ac_cv_c_compiler_gnu
23223
23224CC="$lt_save_CC"
23225
23226
23227
23228
23229
23230
23231
23232
23233
23234
23235
23236
23237
23238        ac_config_commands="$ac_config_commands libtool"
23239
23240
23241
23242
23243# Only expand once:
23244
23245
23246
23247
23248
23249
23250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
23251$as_echo_n "checking if sntp will be built... " >&6; }
23252
23253# Check whether --with-sntp was given.
23254if test "${with_sntp+set}" = set; then :
23255  withval=$with_sntp;
23256else
23257  with_sntp="${withsntp=yes}"
23258
23259fi
23260
23261case "$with_sntp" in
23262 no)
23263    SNTP=
23264    ;;
23265 *)
23266    SNTP=sntp
23267    ;;
23268esac
23269
23270 if test -n "$SNTP"; then
23271  BUILD_SNTP_TRUE=
23272  BUILD_SNTP_FALSE='#'
23273else
23274  BUILD_SNTP_TRUE='#'
23275  BUILD_SNTP_FALSE=
23276fi
23277
23278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
23279$as_echo "$with_sntp" >&6; }
23280
23281
23282
23283case "$SNTP" in
23284 '')
23285    SNTP_DB=
23286    SNTP_DL=
23287    SNTP_DS=
23288    ;;
23289esac
23290
23291###
23292
23293# NTP has (so far) been relying on leading-edge autogen.
23294# Therefore, by default:
23295# - use the version we ship with
23296# - do not install it
23297# - build a static copy (AC_DISABLE_SHARED - done earlier)
23298case "${enable_local_libopts+set}" in
23299 set) ;;
23300 *) enable_local_libopts=yes ;;
23301esac
23302case "${enable_libopts_install+set}" in
23303 set) ;;
23304 *) enable_libopts_install=no ;;
23305esac
23306enable_nls=no
23307
23308
23309  ac_header_dirent=no
23310for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23311  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
23313$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
23314if eval \${$as_ac_Header+:} false; then :
23315  $as_echo_n "(cached) " >&6
23316else
23317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23318/* end confdefs.h.  */
23319#include <sys/types.h>
23320#include <$ac_hdr>
23321
23322int
23323main ()
23324{
23325if ((DIR *) 0)
23326return 0;
23327  ;
23328  return 0;
23329}
23330_ACEOF
23331if ac_fn_c_try_compile "$LINENO"; then :
23332  eval "$as_ac_Header=yes"
23333else
23334  eval "$as_ac_Header=no"
23335fi
23336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23337fi
23338eval ac_res=\$$as_ac_Header
23339	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23340$as_echo "$ac_res" >&6; }
23341if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23342  cat >>confdefs.h <<_ACEOF
23343#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23344_ACEOF
23345
23346ac_header_dirent=$ac_hdr; break
23347fi
23348
23349done
23350# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23351if test $ac_header_dirent = dirent.h; then
23352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23353$as_echo_n "checking for library containing opendir... " >&6; }
23354if ${ac_cv_search_opendir+:} false; then :
23355  $as_echo_n "(cached) " >&6
23356else
23357  ac_func_search_save_LIBS=$LIBS
23358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23359/* end confdefs.h.  */
23360
23361/* Override any GCC internal prototype to avoid an error.
23362   Use char because int might match the return type of a GCC
23363   builtin and then its argument prototype would still apply.  */
23364#ifdef __cplusplus
23365extern "C"
23366#endif
23367char opendir ();
23368int
23369main ()
23370{
23371return opendir ();
23372  ;
23373  return 0;
23374}
23375_ACEOF
23376for ac_lib in '' dir; do
23377  if test -z "$ac_lib"; then
23378    ac_res="none required"
23379  else
23380    ac_res=-l$ac_lib
23381    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23382  fi
23383  if ac_fn_c_try_link "$LINENO"; then :
23384  ac_cv_search_opendir=$ac_res
23385fi
23386rm -f core conftest.err conftest.$ac_objext \
23387    conftest$ac_exeext
23388  if ${ac_cv_search_opendir+:} false; then :
23389  break
23390fi
23391done
23392if ${ac_cv_search_opendir+:} false; then :
23393
23394else
23395  ac_cv_search_opendir=no
23396fi
23397rm conftest.$ac_ext
23398LIBS=$ac_func_search_save_LIBS
23399fi
23400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23401$as_echo "$ac_cv_search_opendir" >&6; }
23402ac_res=$ac_cv_search_opendir
23403if test "$ac_res" != no; then :
23404  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23405
23406fi
23407
23408else
23409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23410$as_echo_n "checking for library containing opendir... " >&6; }
23411if ${ac_cv_search_opendir+:} false; then :
23412  $as_echo_n "(cached) " >&6
23413else
23414  ac_func_search_save_LIBS=$LIBS
23415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23416/* end confdefs.h.  */
23417
23418/* Override any GCC internal prototype to avoid an error.
23419   Use char because int might match the return type of a GCC
23420   builtin and then its argument prototype would still apply.  */
23421#ifdef __cplusplus
23422extern "C"
23423#endif
23424char opendir ();
23425int
23426main ()
23427{
23428return opendir ();
23429  ;
23430  return 0;
23431}
23432_ACEOF
23433for ac_lib in '' x; do
23434  if test -z "$ac_lib"; then
23435    ac_res="none required"
23436  else
23437    ac_res=-l$ac_lib
23438    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23439  fi
23440  if ac_fn_c_try_link "$LINENO"; then :
23441  ac_cv_search_opendir=$ac_res
23442fi
23443rm -f core conftest.err conftest.$ac_objext \
23444    conftest$ac_exeext
23445  if ${ac_cv_search_opendir+:} false; then :
23446  break
23447fi
23448done
23449if ${ac_cv_search_opendir+:} false; then :
23450
23451else
23452  ac_cv_search_opendir=no
23453fi
23454rm conftest.$ac_ext
23455LIBS=$ac_func_search_save_LIBS
23456fi
23457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23458$as_echo "$ac_cv_search_opendir" >&6; }
23459ac_res=$ac_cv_search_opendir
23460if test "$ac_res" != no; then :
23461  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23462
23463fi
23464
23465fi
23466
23467
23468  # =================
23469  # AC_CHECK_HEADERS
23470  # =================
23471  for ac_header in  \
23472      sys/mman.h    sys/param.h   sys/poll.h    sys/procset.h \
23473      sys/select.h  sys/socket.h  sys/stropts.h sys/time.h \
23474      sys/un.h      sys/wait.h    dlfcn.h       errno.h \
23475      fcntl.h       libgen.h      libintl.h     memory.h \
23476      netinet/in.h  setjmp.h      stdbool.h     sysexits.h \
23477      unistd.h      utime.h
23478do :
23479  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23480ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23481if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23482  cat >>confdefs.h <<_ACEOF
23483#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23484_ACEOF
23485
23486fi
23487
23488done
23489
23490
23491  for ac_header in stdarg.h     varargs.h
23492do :
23493  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23494ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23495if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23496  cat >>confdefs.h <<_ACEOF
23497#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23498_ACEOF
23499 lo_have_arg_hdr=true;break
23500else
23501  lo_have_arg_hdr=false
23502fi
23503
23504done
23505
23506
23507  for ac_header in string.h     strings.h
23508do :
23509  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23510ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23511if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23512  cat >>confdefs.h <<_ACEOF
23513#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23514_ACEOF
23515 lo_have_str_hdr=true;break
23516else
23517  lo_have_str_hdr=false
23518fi
23519
23520done
23521
23522
23523  for ac_header in limits.h     sys/limits.h  values.h
23524do :
23525  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23526ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23527if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23528  cat >>confdefs.h <<_ACEOF
23529#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23530_ACEOF
23531 lo_have_lim_hdr=true;break
23532else
23533  lo_have_lim_hdr=false
23534fi
23535
23536done
23537
23538
23539  for ac_header in inttypes.h   stdint.h
23540do :
23541  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23542ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23543if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23544  cat >>confdefs.h <<_ACEOF
23545#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23546_ACEOF
23547 lo_have_typ_hdr=true;break
23548else
23549  lo_have_typ_hdr=false
23550fi
23551
23552done
23553
23554
23555  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
23556$as_echo_n "checking for working stdnoreturn.h... " >&6; }
23557if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
23558  $as_echo_n "(cached) " >&6
23559else
23560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23561/* end confdefs.h.  */
23562#include <stdlib.h>
23563            #include <stdnoreturn.h>
23564            /* Do not check for 'noreturn' after the return type.
23565               C11 allows it, but it's rarely done that way
23566               and circa-2012 bleeding-edge GCC rejects it when given
23567               -Werror=old-style-declaration.  */
23568            noreturn void foo1 (void) { exit (0); }
23569            _Noreturn void foo2 (void) { exit (0); }
23570            int testit (int argc, char **argv) {
23571              if (argc & 1)
23572                return 0;
23573              (argv[0][0] ? foo1 : foo2) ();
23574            }
23575
23576int
23577main ()
23578{
23579
23580  ;
23581  return 0;
23582}
23583_ACEOF
23584if ac_fn_c_try_compile "$LINENO"; then :
23585  gl_cv_header_working_stdnoreturn_h=yes
23586else
23587  gl_cv_header_working_stdnoreturn_h=no
23588fi
23589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23590fi
23591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
23592$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
23593
23594  if test $gl_cv_header_working_stdnoreturn_h = yes; then
23595    STDNORETURN_H=''
23596  else
23597    STDNORETURN_H='stdnoreturn.h'
23598  fi
23599
23600
23601   if test -n "$STDNORETURN_H"; then
23602  GL_GENERATE_STDNORETURN_H_TRUE=
23603  GL_GENERATE_STDNORETURN_H_FALSE='#'
23604else
23605  GL_GENERATE_STDNORETURN_H_TRUE='#'
23606  GL_GENERATE_STDNORETURN_H_FALSE=
23607fi
23608
23609
23610
23611  # ----------------------------------------------------------------------
23612  # check for various programs used during the build.
23613  # On OS/X, "wchar.h" needs "runetype.h" to work properly.
23614  # ----------------------------------------------------------------------
23615  for ac_header in runetype.h wchar.h
23616do :
23617  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23618ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
23619  $ac_includes_default
23620  #if HAVE_RUNETYPE_H
23621  # include <runetype.h>
23622  #endif
23623
23624"
23625if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23626  cat >>confdefs.h <<_ACEOF
23627#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23628_ACEOF
23629
23630fi
23631
23632done
23633
23634
23635  # Check whether --enable-nls was given.
23636if test "${enable_nls+set}" = set; then :
23637  enableval=$enable_nls;
23638fi
23639
23640  if test "x$enable_nls" != "xno" && \
23641  test "X${ac_cv_header_libintl_h}" = Xyes; then :
23642
23643
23644$as_echo "#define ENABLE_NLS 1" >>confdefs.h
23645
23646fi
23647
23648  # --------------------------------------------
23649  # Verify certain entries from AC_CHECK_HEADERS
23650  # --------------------------------------------
23651  ${lo_have_arg_hdr} || \
23652    as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
23653
23654  ${lo_have_str_hdr} || \
23655    as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
23656
23657  ${lo_have_lim_hdr} || \
23658    as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
23659
23660  ${lo_have_typ_hdr} || \
23661    as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
23662
23663  for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
23664  do eval as_ac_var=\${ac_cv_header_${f}_h}
23665     test "X${as_ac_var}" = Xyes || {
23666       as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
23667     }
23668  done
23669  test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
23670    echo '#include <stdint.h>' > inttypes.h
23671
23672  # ----------------------------------------------------------------------
23673  # Checks for typedefs
23674  # ----------------------------------------------------------------------
23675  ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
23676if test "x$ac_cv_type_wchar_t" = xyes; then :
23677
23678cat >>confdefs.h <<_ACEOF
23679#define HAVE_WCHAR_T 1
23680_ACEOF
23681
23682
23683fi
23684
23685  ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
23686    $ac_includes_default
23687    #if HAVE_RUNETYPE_H
23688    # include <runetype.h>
23689    #endif
23690    #if HAVE_WCHAR_H
23691    # include <wchar.h>
23692    #endif
23693
23694"
23695if test "x$ac_cv_type_wint_t" = xyes; then :
23696
23697cat >>confdefs.h <<_ACEOF
23698#define HAVE_WINT_T 1
23699_ACEOF
23700
23701
23702fi
23703
23704  ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
23705if test "x$ac_cv_type_int8_t" = xyes; then :
23706
23707cat >>confdefs.h <<_ACEOF
23708#define HAVE_INT8_T 1
23709_ACEOF
23710
23711
23712fi
23713ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
23714if test "x$ac_cv_type_uint8_t" = xyes; then :
23715
23716cat >>confdefs.h <<_ACEOF
23717#define HAVE_UINT8_T 1
23718_ACEOF
23719
23720
23721fi
23722ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
23723if test "x$ac_cv_type_int16_t" = xyes; then :
23724
23725cat >>confdefs.h <<_ACEOF
23726#define HAVE_INT16_T 1
23727_ACEOF
23728
23729
23730fi
23731ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
23732if test "x$ac_cv_type_uint16_t" = xyes; then :
23733
23734cat >>confdefs.h <<_ACEOF
23735#define HAVE_UINT16_T 1
23736_ACEOF
23737
23738
23739fi
23740ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
23741if test "x$ac_cv_type_int32_t" = xyes; then :
23742
23743cat >>confdefs.h <<_ACEOF
23744#define HAVE_INT32_T 1
23745_ACEOF
23746
23747
23748fi
23749ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
23750if test "x$ac_cv_type_uint32_t" = xyes; then :
23751
23752cat >>confdefs.h <<_ACEOF
23753#define HAVE_UINT32_T 1
23754_ACEOF
23755
23756
23757fi
23758ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23759if test "x$ac_cv_type_intptr_t" = xyes; then :
23760
23761cat >>confdefs.h <<_ACEOF
23762#define HAVE_INTPTR_T 1
23763_ACEOF
23764
23765
23766fi
23767ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23768if test "x$ac_cv_type_uintptr_t" = xyes; then :
23769
23770cat >>confdefs.h <<_ACEOF
23771#define HAVE_UINTPTR_T 1
23772_ACEOF
23773
23774
23775fi
23776ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
23777if test "x$ac_cv_type_uint_t" = xyes; then :
23778
23779cat >>confdefs.h <<_ACEOF
23780#define HAVE_UINT_T 1
23781_ACEOF
23782
23783
23784fi
23785ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23786if test "x$ac_cv_type_pid_t" = xyes; then :
23787
23788cat >>confdefs.h <<_ACEOF
23789#define HAVE_PID_T 1
23790_ACEOF
23791
23792
23793fi
23794ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23795if test "x$ac_cv_type_size_t" = xyes; then :
23796
23797cat >>confdefs.h <<_ACEOF
23798#define HAVE_SIZE_T 1
23799_ACEOF
23800
23801
23802fi
23803ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
23804if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
23805
23806cat >>confdefs.h <<_ACEOF
23807#define HAVE_PTRDIFF_T 1
23808_ACEOF
23809
23810
23811fi
23812
23813  # The cast to long int works around a bug in the HP C Compiler
23814# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23815# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23816# This bug is HP SR number 8606223364.
23817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
23818$as_echo_n "checking size of char *... " >&6; }
23819if ${ac_cv_sizeof_char_p+:} false; then :
23820  $as_echo_n "(cached) " >&6
23821else
23822  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p"        "$ac_includes_default"; then :
23823
23824else
23825  if test "$ac_cv_type_char_p" = yes; then
23826     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23828as_fn_error 77 "cannot compute sizeof (char *)
23829See \`config.log' for more details" "$LINENO" 5; }
23830   else
23831     ac_cv_sizeof_char_p=0
23832   fi
23833fi
23834
23835fi
23836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
23837$as_echo "$ac_cv_sizeof_char_p" >&6; }
23838
23839
23840
23841cat >>confdefs.h <<_ACEOF
23842#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
23843_ACEOF
23844
23845
23846  # The cast to long int works around a bug in the HP C Compiler
23847# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23848# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23849# This bug is HP SR number 8606223364.
23850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23851$as_echo_n "checking size of int... " >&6; }
23852if ${ac_cv_sizeof_int+:} false; then :
23853  $as_echo_n "(cached) " >&6
23854else
23855  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
23856
23857else
23858  if test "$ac_cv_type_int" = yes; then
23859     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23861as_fn_error 77 "cannot compute sizeof (int)
23862See \`config.log' for more details" "$LINENO" 5; }
23863   else
23864     ac_cv_sizeof_int=0
23865   fi
23866fi
23867
23868fi
23869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23870$as_echo "$ac_cv_sizeof_int" >&6; }
23871
23872
23873
23874cat >>confdefs.h <<_ACEOF
23875#define SIZEOF_INT $ac_cv_sizeof_int
23876_ACEOF
23877
23878
23879  # The cast to long int works around a bug in the HP C Compiler
23880# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23881# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23882# This bug is HP SR number 8606223364.
23883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23884$as_echo_n "checking size of long... " >&6; }
23885if ${ac_cv_sizeof_long+:} false; then :
23886  $as_echo_n "(cached) " >&6
23887else
23888  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
23889
23890else
23891  if test "$ac_cv_type_long" = yes; then
23892     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23893$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23894as_fn_error 77 "cannot compute sizeof (long)
23895See \`config.log' for more details" "$LINENO" 5; }
23896   else
23897     ac_cv_sizeof_long=0
23898   fi
23899fi
23900
23901fi
23902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23903$as_echo "$ac_cv_sizeof_long" >&6; }
23904
23905
23906
23907cat >>confdefs.h <<_ACEOF
23908#define SIZEOF_LONG $ac_cv_sizeof_long
23909_ACEOF
23910
23911
23912  # The cast to long int works around a bug in the HP C Compiler
23913# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23914# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23915# This bug is HP SR number 8606223364.
23916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23917$as_echo_n "checking size of short... " >&6; }
23918if ${ac_cv_sizeof_short+:} false; then :
23919  $as_echo_n "(cached) " >&6
23920else
23921  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
23922
23923else
23924  if test "$ac_cv_type_short" = yes; then
23925     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23927as_fn_error 77 "cannot compute sizeof (short)
23928See \`config.log' for more details" "$LINENO" 5; }
23929   else
23930     ac_cv_sizeof_short=0
23931   fi
23932fi
23933
23934fi
23935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23936$as_echo "$ac_cv_sizeof_short" >&6; }
23937
23938
23939
23940cat >>confdefs.h <<_ACEOF
23941#define SIZEOF_SHORT $ac_cv_sizeof_short
23942_ACEOF
23943
23944
23945
23946  # ------------
23947  # AC_CHECK_LIB
23948  # ------------
23949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
23950$as_echo_n "checking for pathfind in -lgen... " >&6; }
23951if ${ac_cv_lib_gen_pathfind+:} false; then :
23952  $as_echo_n "(cached) " >&6
23953else
23954  ac_check_lib_save_LIBS=$LIBS
23955LIBS="-lgen  $LIBS"
23956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23957/* end confdefs.h.  */
23958
23959/* Override any GCC internal prototype to avoid an error.
23960   Use char because int might match the return type of a GCC
23961   builtin and then its argument prototype would still apply.  */
23962#ifdef __cplusplus
23963extern "C"
23964#endif
23965char pathfind ();
23966int
23967main ()
23968{
23969return pathfind ();
23970  ;
23971  return 0;
23972}
23973_ACEOF
23974if ac_fn_c_try_link "$LINENO"; then :
23975  ac_cv_lib_gen_pathfind=yes
23976else
23977  ac_cv_lib_gen_pathfind=no
23978fi
23979rm -f core conftest.err conftest.$ac_objext \
23980    conftest$ac_exeext conftest.$ac_ext
23981LIBS=$ac_check_lib_save_LIBS
23982fi
23983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
23984$as_echo "$ac_cv_lib_gen_pathfind" >&6; }
23985if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
23986  cat >>confdefs.h <<_ACEOF
23987#define HAVE_LIBGEN 1
23988_ACEOF
23989
23990  LIBS="-lgen $LIBS"
23991
23992fi
23993
23994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
23995$as_echo_n "checking for gettext in -lintl... " >&6; }
23996if ${ac_cv_lib_intl_gettext+:} false; then :
23997  $as_echo_n "(cached) " >&6
23998else
23999  ac_check_lib_save_LIBS=$LIBS
24000LIBS="-lintl  $LIBS"
24001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24002/* end confdefs.h.  */
24003
24004/* Override any GCC internal prototype to avoid an error.
24005   Use char because int might match the return type of a GCC
24006   builtin and then its argument prototype would still apply.  */
24007#ifdef __cplusplus
24008extern "C"
24009#endif
24010char gettext ();
24011int
24012main ()
24013{
24014return gettext ();
24015  ;
24016  return 0;
24017}
24018_ACEOF
24019if ac_fn_c_try_link "$LINENO"; then :
24020  ac_cv_lib_intl_gettext=yes
24021else
24022  ac_cv_lib_intl_gettext=no
24023fi
24024rm -f core conftest.err conftest.$ac_objext \
24025    conftest$ac_exeext conftest.$ac_ext
24026LIBS=$ac_check_lib_save_LIBS
24027fi
24028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
24029$as_echo "$ac_cv_lib_intl_gettext" >&6; }
24030if test "x$ac_cv_lib_intl_gettext" = xyes; then :
24031  cat >>confdefs.h <<_ACEOF
24032#define HAVE_LIBINTL 1
24033_ACEOF
24034
24035  LIBS="-lintl $LIBS"
24036
24037fi
24038
24039  for ac_func in vprintf
24040do :
24041  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
24042if test "x$ac_cv_func_vprintf" = xyes; then :
24043  cat >>confdefs.h <<_ACEOF
24044#define HAVE_VPRINTF 1
24045_ACEOF
24046
24047ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
24048if test "x$ac_cv_func__doprnt" = xyes; then :
24049
24050$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
24051
24052fi
24053
24054fi
24055done
24056
24057
24058  for ac_header in vfork.h
24059do :
24060  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24061if test "x$ac_cv_header_vfork_h" = xyes; then :
24062  cat >>confdefs.h <<_ACEOF
24063#define HAVE_VFORK_H 1
24064_ACEOF
24065
24066fi
24067
24068done
24069
24070for ac_func in fork vfork
24071do :
24072  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24073ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24074if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24075  cat >>confdefs.h <<_ACEOF
24076#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24077_ACEOF
24078
24079fi
24080done
24081
24082if test "x$ac_cv_func_fork" = xyes; then
24083  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24084$as_echo_n "checking for working fork... " >&6; }
24085if ${ac_cv_func_fork_works+:} false; then :
24086  $as_echo_n "(cached) " >&6
24087else
24088  if test "$cross_compiling" = yes; then :
24089  ac_cv_func_fork_works=cross
24090else
24091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24092/* end confdefs.h.  */
24093$ac_includes_default
24094int
24095main ()
24096{
24097
24098	  /* By Ruediger Kuhlmann. */
24099	  return fork () < 0;
24100
24101  ;
24102  return 0;
24103}
24104_ACEOF
24105if ac_fn_c_try_run "$LINENO"; then :
24106  ac_cv_func_fork_works=yes
24107else
24108  ac_cv_func_fork_works=no
24109fi
24110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24111  conftest.$ac_objext conftest.beam conftest.$ac_ext
24112fi
24113
24114fi
24115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24116$as_echo "$ac_cv_func_fork_works" >&6; }
24117
24118else
24119  ac_cv_func_fork_works=$ac_cv_func_fork
24120fi
24121if test "x$ac_cv_func_fork_works" = xcross; then
24122  case $host in
24123    *-*-amigaos* | *-*-msdosdjgpp*)
24124      # Override, as these systems have only a dummy fork() stub
24125      ac_cv_func_fork_works=no
24126      ;;
24127    *)
24128      ac_cv_func_fork_works=yes
24129      ;;
24130  esac
24131  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24132$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24133fi
24134ac_cv_func_vfork_works=$ac_cv_func_vfork
24135if test "x$ac_cv_func_vfork" = xyes; then
24136  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24137$as_echo_n "checking for working vfork... " >&6; }
24138if ${ac_cv_func_vfork_works+:} false; then :
24139  $as_echo_n "(cached) " >&6
24140else
24141  if test "$cross_compiling" = yes; then :
24142  ac_cv_func_vfork_works=cross
24143else
24144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24145/* end confdefs.h.  */
24146/* Thanks to Paul Eggert for this test.  */
24147$ac_includes_default
24148#include <sys/wait.h>
24149#ifdef HAVE_VFORK_H
24150# include <vfork.h>
24151#endif
24152/* On some sparc systems, changes by the child to local and incoming
24153   argument registers are propagated back to the parent.  The compiler
24154   is told about this with #include <vfork.h>, but some compilers
24155   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
24156   static variable whose address is put into a register that is
24157   clobbered by the vfork.  */
24158static void
24159#ifdef __cplusplus
24160sparc_address_test (int arg)
24161# else
24162sparc_address_test (arg) int arg;
24163#endif
24164{
24165  static pid_t child;
24166  if (!child) {
24167    child = vfork ();
24168    if (child < 0) {
24169      perror ("vfork");
24170      _exit(2);
24171    }
24172    if (!child) {
24173      arg = getpid();
24174      write(-1, "", 0);
24175      _exit (arg);
24176    }
24177  }
24178}
24179
24180int
24181main ()
24182{
24183  pid_t parent = getpid ();
24184  pid_t child;
24185
24186  sparc_address_test (0);
24187
24188  child = vfork ();
24189
24190  if (child == 0) {
24191    /* Here is another test for sparc vfork register problems.  This
24192       test uses lots of local variables, at least as many local
24193       variables as main has allocated so far including compiler
24194       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
24195       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
24196       reuse the register of parent for one of the local variables,
24197       since it will think that parent can't possibly be used any more
24198       in this routine.  Assigning to the local variable will thus
24199       munge parent in the parent process.  */
24200    pid_t
24201      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24202      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24203    /* Convince the compiler that p..p7 are live; otherwise, it might
24204       use the same hardware register for all 8 local variables.  */
24205    if (p != p1 || p != p2 || p != p3 || p != p4
24206	|| p != p5 || p != p6 || p != p7)
24207      _exit(1);
24208
24209    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24210       from child file descriptors.  If the child closes a descriptor
24211       before it execs or exits, this munges the parent's descriptor
24212       as well.  Test for this by closing stdout in the child.  */
24213    _exit(close(fileno(stdout)) != 0);
24214  } else {
24215    int status;
24216    struct stat st;
24217
24218    while (wait(&status) != child)
24219      ;
24220    return (
24221	 /* Was there some problem with vforking?  */
24222	 child < 0
24223
24224	 /* Did the child fail?  (This shouldn't happen.)  */
24225	 || status
24226
24227	 /* Did the vfork/compiler bug occur?  */
24228	 || parent != getpid()
24229
24230	 /* Did the file descriptor bug occur?  */
24231	 || fstat(fileno(stdout), &st) != 0
24232	 );
24233  }
24234}
24235_ACEOF
24236if ac_fn_c_try_run "$LINENO"; then :
24237  ac_cv_func_vfork_works=yes
24238else
24239  ac_cv_func_vfork_works=no
24240fi
24241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24242  conftest.$ac_objext conftest.beam conftest.$ac_ext
24243fi
24244
24245fi
24246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24247$as_echo "$ac_cv_func_vfork_works" >&6; }
24248
24249fi;
24250if test "x$ac_cv_func_fork_works" = xcross; then
24251  ac_cv_func_vfork_works=$ac_cv_func_vfork
24252  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24253$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24254fi
24255
24256if test "x$ac_cv_func_vfork_works" = xyes; then
24257
24258$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24259
24260else
24261
24262$as_echo "#define vfork fork" >>confdefs.h
24263
24264fi
24265if test "x$ac_cv_func_fork_works" = xyes; then
24266
24267$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
24268
24269fi
24270
24271  for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
24272                 strrchr strsignal fchmod fstat chmod
24273do :
24274  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24275ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24276if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24277  cat >>confdefs.h <<_ACEOF
24278#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24279_ACEOF
24280
24281fi
24282done
24283
24284  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
24285$as_echo_n "checking for a sed that does not truncate output... " >&6; }
24286if ${ac_cv_path_SED+:} false; then :
24287  $as_echo_n "(cached) " >&6
24288else
24289            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
24290     for ac_i in 1 2 3 4 5 6 7; do
24291       ac_script="$ac_script$as_nl$ac_script"
24292     done
24293     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
24294     { ac_script=; unset ac_script;}
24295     if test -z "$SED"; then
24296  ac_path_SED_found=false
24297  # Loop through the user's path and test for each of PROGNAME-LIST
24298  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24299for as_dir in $PATH
24300do
24301  IFS=$as_save_IFS
24302  test -z "$as_dir" && as_dir=.
24303    for ac_prog in sed gsed; do
24304    for ac_exec_ext in '' $ac_executable_extensions; do
24305      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
24306      as_fn_executable_p "$ac_path_SED" || continue
24307# Check for GNU ac_path_SED and select it if it is found.
24308  # Check for GNU $ac_path_SED
24309case `"$ac_path_SED" --version 2>&1` in
24310*GNU*)
24311  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
24312*)
24313  ac_count=0
24314  $as_echo_n 0123456789 >"conftest.in"
24315  while :
24316  do
24317    cat "conftest.in" "conftest.in" >"conftest.tmp"
24318    mv "conftest.tmp" "conftest.in"
24319    cp "conftest.in" "conftest.nl"
24320    $as_echo '' >> "conftest.nl"
24321    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
24322    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
24323    as_fn_arith $ac_count + 1 && ac_count=$as_val
24324    if test $ac_count -gt ${ac_path_SED_max-0}; then
24325      # Best one so far, save it but keep looking for a better one
24326      ac_cv_path_SED="$ac_path_SED"
24327      ac_path_SED_max=$ac_count
24328    fi
24329    # 10*(2^10) chars as input seems more than enough
24330    test $ac_count -gt 10 && break
24331  done
24332  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
24333esac
24334
24335      $ac_path_SED_found && break 3
24336    done
24337  done
24338  done
24339IFS=$as_save_IFS
24340  if test -z "$ac_cv_path_SED"; then
24341    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
24342  fi
24343else
24344  ac_cv_path_SED=$SED
24345fi
24346
24347fi
24348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
24349$as_echo "$ac_cv_path_SED" >&6; }
24350 SED="$ac_cv_path_SED"
24351  rm -f conftest.sed
24352
24353  while :
24354  do
24355      POSIX_SHELL=`which bash`
24356      test -x "$POSIX_SHELL" && break
24357      POSIX_SHELL=`which dash`
24358      test -x "$POSIX_SHELL" && break
24359      POSIX_SHELL=/usr/xpg4/bin/sh
24360      test -x "$POSIX_SHELL" && break
24361      POSIX_SHELL=`/bin/sh -c '
24362          exec 2>/dev/null
24363          if ! true ; then exit 1 ; fi
24364          echo /bin/sh'`
24365      test -x "$POSIX_SHELL" && break
24366      as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
24367  done
24368
24369cat >>confdefs.h <<_ACEOF
24370#define POSIX_SHELL "${POSIX_SHELL}"
24371_ACEOF
24372
24373
24374
24375
24376
24377  LIBOPTS_BUILD_BLOCKED=''
24378
24379
24380  NEED_LIBOPTS_DIR=''
24381
24382  # Check whether --enable-local-libopts was given.
24383if test "${enable_local_libopts+set}" = set; then :
24384  enableval=$enable_local_libopts;
24385    if test x$enableval = xyes ; then
24386       { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
24387$as_echo "$as_me: Using supplied libopts tearoff" >&6;}
24388       LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
24389       NEED_LIBOPTS_DIR=true
24390       LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
24391    fi
24392fi
24393
24394
24395  # Check whether --enable-libopts-install was given.
24396if test "${enable_libopts_install+set}" = set; then :
24397  enableval=$enable_libopts_install;
24398fi
24399
24400   if test "X${enable_libopts_install}" = Xyes; then
24401  INSTALL_LIBOPTS_TRUE=
24402  INSTALL_LIBOPTS_FALSE='#'
24403else
24404  INSTALL_LIBOPTS_TRUE='#'
24405  INSTALL_LIBOPTS_FALSE=
24406fi
24407
24408
24409  if test -z "${NEED_LIBOPTS_DIR}" ; then
24410     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
24411$as_echo_n "checking whether autoopts-config can be found... " >&6; }
24412
24413# Check whether --with-autoopts-config was given.
24414if test "${with_autoopts_config+set}" = set; then :
24415  withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
24416else
24417  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
24418$as_echo_n "checking whether autoopts-config is specified... " >&6; }
24419if ${lo_cv_with_autoopts_config+:} false; then :
24420  $as_echo_n "(cached) " >&6
24421else
24422  if autoopts-config --help 2>/dev/null 1>&2
24423        then lo_cv_with_autoopts_config=autoopts-config
24424        elif libopts-config --help 2>/dev/null 1>&2
24425        then lo_cv_with_autoopts_config=libopts-config
24426        else lo_cv_with_autoopts_config=no ; fi
24427fi
24428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
24429$as_echo "$lo_cv_with_autoopts_config" >&6; }
24430
24431fi
24432 # end of AC_ARG_WITH
24433
24434     if ${lo_cv_test_autoopts+:} false; then :
24435  $as_echo_n "(cached) " >&6
24436else
24437
24438        if test -z "${lo_cv_with_autoopts_config}" \
24439                -o X"${lo_cv_with_autoopts_config}" = Xno
24440        then
24441           if autoopts-config --help 2>/dev/null 1>&2
24442           then lo_cv_with_autoopts_config=autoopts-config
24443           elif libopts-config --help 2>/dev/null 1>&2
24444           then lo_cv_with_autoopts_config=libopts-config
24445           else lo_cv_with_autoopts_config=false ; fi
24446        fi
24447        lo_cv_test_autoopts=`
24448            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
24449        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
24450        then lo_cv_test_autoopts=no ; fi
24451
24452fi
24453 # end of CACHE_VAL
24454     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
24455$as_echo "${lo_cv_test_autoopts}" >&6; }
24456
24457     if test "X${lo_cv_test_autoopts}" != Xno
24458     then
24459        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
24460        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
24461     else
24462        LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
24463        LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
24464        NEED_LIBOPTS_DIR=true
24465     fi
24466  fi # end of if test -z "${NEED_LIBOPTS_DIR}"
24467  if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
24468    NEED_LIBOPTS_DIR=''
24469  fi
24470   if test -n "${NEED_LIBOPTS_DIR}"; then
24471  NEED_LIBOPTS_TRUE=
24472  NEED_LIBOPTS_FALSE='#'
24473else
24474  NEED_LIBOPTS_TRUE='#'
24475  NEED_LIBOPTS_FALSE=
24476fi
24477
24478
24479
24480  LIBOPTS_DIR=libopts
24481
24482
24483# end of AC_DEFUN of LIBOPTS_CHECK_COMMON
24484
24485
24486    if test -z "$NEED_LIBOPTS_TRUE"; then :
24487
24488
24489
24490  # Check to see if a reg expr header is specified.
24491
24492
24493# Check whether --with-regex-header was given.
24494if test "${with_regex_header+set}" = set; then :
24495  withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
24496else
24497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
24498$as_echo_n "checking whether a reg expr header is specified... " >&6; }
24499if ${libopts_cv_with_regex_header+:} false; then :
24500  $as_echo_n "(cached) " >&6
24501else
24502  libopts_cv_with_regex_header=no
24503fi
24504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
24505$as_echo "$libopts_cv_with_regex_header" >&6; }
24506
24507fi
24508 # end of AC_ARG_WITH
24509  if test "X${libopts_cv_with_regex_header}" != Xno
24510  then
24511    cat >>confdefs.h <<_ACEOF
24512#define REGEX_HEADER <${libopts_cv_with_regex_header}>
24513_ACEOF
24514
24515  else
24516
24517$as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
24518
24519  fi
24520
24521
24522
24523  # Check to see if a working libregex can be found.
24524
24525
24526# Check whether --with-libregex was given.
24527if test "${with_libregex+set}" = set; then :
24528  withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
24529else
24530  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
24531$as_echo_n "checking whether with-libregex was specified... " >&6; }
24532if ${libopts_cv_with_libregex_root+:} false; then :
24533  $as_echo_n "(cached) " >&6
24534else
24535  libopts_cv_with_libregex_root=no
24536fi
24537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
24538$as_echo "$libopts_cv_with_libregex_root" >&6; }
24539
24540fi
24541 # end of AC_ARG_WITH libregex
24542
24543  if test "${with_libregex+set}" = set && \
24544     test "X${withval}" = Xno
24545  then ## disabled by request
24546    libopts_cv_with_libregex_root=no
24547    libopts_cv_with_libregex_cflags=no
24548    libopts_cv_with_libregex_libs=no
24549  else
24550
24551
24552# Check whether --with-libregex-cflags was given.
24553if test "${with_libregex_cflags+set}" = set; then :
24554  withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
24555else
24556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
24557$as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
24558if ${libopts_cv_with_libregex_cflags+:} false; then :
24559  $as_echo_n "(cached) " >&6
24560else
24561  libopts_cv_with_libregex_cflags=no
24562fi
24563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
24564$as_echo "$libopts_cv_with_libregex_cflags" >&6; }
24565
24566fi
24567 # end of AC_ARG_WITH libregex-cflags
24568
24569
24570# Check whether --with-libregex-libs was given.
24571if test "${with_libregex_libs+set}" = set; then :
24572  withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
24573else
24574  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
24575$as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
24576if ${libopts_cv_with_libregex_libs+:} false; then :
24577  $as_echo_n "(cached) " >&6
24578else
24579  libopts_cv_with_libregex_libs=no
24580fi
24581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
24582$as_echo "$libopts_cv_with_libregex_libs" >&6; }
24583
24584fi
24585 # end of AC_ARG_WITH libregex-libs
24586
24587  case "X${libopts_cv_with_libregex_cflags}" in
24588  Xyes|Xno|X )
24589    case "X${libopts_cv_with_libregex_root}" in
24590    Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
24591    * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
24592    esac
24593  esac
24594  case "X${libopts_cv_with_libregex_libs}" in
24595  Xyes|Xno|X )
24596    case "X${libopts_cv_with_libregex_root}" in
24597    Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
24598    * )        libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;;
24599    esac
24600  esac
24601  libopts_save_CPPFLAGS="${CPPFLAGS}"
24602  libopts_save_LIBS="${LIBS}"
24603  case "X${libopts_cv_with_libregex_cflags}" in
24604  Xyes|Xno|X )
24605    libopts_cv_with_libregex_cflags="" ;;
24606  * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
24607  esac
24608  case "X${libopts_cv_with_libregex_libs}" in
24609  Xyes|Xno|X )
24610    libopts_cv_with_libregex_libs="" ;;
24611  * )
24612    LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
24613  esac
24614  LIBREGEX_CFLAGS=""
24615  LIBREGEX_LIBS=""
24616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
24617$as_echo_n "checking whether libregex functions properly... " >&6; }
24618  if ${libopts_cv_with_libregex+:} false; then :
24619  $as_echo_n "(cached) " >&6
24620else
24621
24622  if test "$cross_compiling" = yes; then :
24623  libopts_cv_with_libregex=no
24624else
24625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24626/* end confdefs.h.  */
24627#include <stdio.h>
24628#include <stdlib.h>
24629#include <sys/types.h>
24630#include REGEX_HEADER
24631static regex_t re;
24632void comp_re(char const * pzPat) {
24633  int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
24634  if (res == 0) return;
24635  exit( res ); }
24636int main() {
24637  regmatch_t m[2];
24638  comp_re( "^.*\$"   );
24639  comp_re( "()|no.*" );
24640  comp_re( "."       );
24641  if (regexec( &re, "X", 2, m, 0 ) != 0)  return 1;
24642  if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
24643    fputs( "error: regex -->.<-- did not match\n", stderr );
24644    return 1;
24645  }
24646  return 0; }
24647_ACEOF
24648if ac_fn_c_try_run "$LINENO"; then :
24649  libopts_cv_with_libregex=yes
24650else
24651  libopts_cv_with_libregex=no
24652fi
24653rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24654  conftest.$ac_objext conftest.beam conftest.$ac_ext
24655fi
24656 # end of AC_RUN_IFELSE
24657
24658fi
24659 # end of AC_CACHE_VAL for libopts_cv_with_libregex
24660  fi ## disabled by request
24661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
24662$as_echo "${libopts_cv_with_libregex}" >&6; }
24663  if test "X${libopts_cv_with_libregex}" != Xno
24664  then
24665
24666$as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
24667
24668  else
24669    CPPFLAGS="${libopts_save_CPPFLAGS}"
24670    LIBS="${libopts_save_LIBS}"
24671    libopts_cv_with_libregex_root=no
24672libopts_cv_with_libregex_cflags=no
24673libopts_cv_with_libregex_libs=no
24674libopts_cv_with_libregex=no
24675  fi
24676
24677
24678
24679  # Check to see if pathfind(3) works.
24680
24681  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
24682$as_echo_n "checking whether pathfind(3) works... " >&6; }
24683  if ${libopts_cv_run_pathfind+:} false; then :
24684  $as_echo_n "(cached) " >&6
24685else
24686
24687  if test "$cross_compiling" = yes; then :
24688  libopts_cv_run_pathfind=no
24689
24690else
24691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24692/* end confdefs.h.  */
24693#include <string.h>
24694#include <stdlib.h>
24695int main (int argc, char ** argv) {
24696   char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
24697   return (pz == 0) ? 1 : 0;
24698}
24699_ACEOF
24700if ac_fn_c_try_run "$LINENO"; then :
24701  libopts_cv_run_pathfind=yes
24702else
24703  libopts_cv_run_pathfind=no
24704fi
24705rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24706  conftest.$ac_objext conftest.beam conftest.$ac_ext
24707fi
24708 # end of RUN_IFELSE
24709
24710fi
24711 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
24712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
24713$as_echo "${libopts_cv_run_pathfind}" >&6; }
24714  if test "X${libopts_cv_run_pathfind}" != Xno
24715  then
24716
24717$as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
24718
24719  fi
24720
24721
24722
24723  # Check to see if /dev/zero is readable device.
24724
24725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
24726$as_echo_n "checking whether /dev/zero is readable device... " >&6; }
24727  if ${libopts_cv_test_dev_zero+:} false; then :
24728  $as_echo_n "(cached) " >&6
24729else
24730
24731    libopts_cv_test_dev_zero=`exec 2> /dev/null
24732dzero=\`ls -lL /dev/zero | egrep ^c......r\`
24733test -z "${dzero}" && exit 1
24734echo ${dzero}`
24735    if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
24736    then libopts_cv_test_dev_zero=no
24737    fi
24738
24739fi
24740 # end of CACHE_VAL of libopts_cv_test_dev_zero
24741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
24742$as_echo "${libopts_cv_test_dev_zero}" >&6; }
24743  if test "X${libopts_cv_test_dev_zero}" != Xno
24744  then
24745
24746$as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
24747
24748  fi
24749
24750
24751
24752  # Check to see if we have a functional realpath(3C).
24753
24754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
24755$as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
24756  if ${libopts_cv_run_realpath+:} false; then :
24757  $as_echo_n "(cached) " >&6
24758else
24759
24760  if test "$cross_compiling" = yes; then :
24761  libopts_cv_run_realpath=no
24762
24763else
24764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24765/* end confdefs.h.  */
24766#include <limits.h>
24767#include <stdlib.h>
24768int main (int argc, char ** argv) {
24769#ifndef PATH_MAX
24770choke me!!
24771#else
24772   char zPath[PATH_MAX+1];
24773#endif
24774   char *pz = realpath(argv[0], zPath);
24775   return (pz == zPath) ? 0 : 1;
24776}
24777_ACEOF
24778if ac_fn_c_try_run "$LINENO"; then :
24779  libopts_cv_run_realpath=yes
24780else
24781  libopts_cv_run_realpath=no
24782fi
24783rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24784  conftest.$ac_objext conftest.beam conftest.$ac_ext
24785fi
24786 # end of RUN_IFELSE
24787
24788fi
24789 # end of AC_CACHE_VAL for libopts_cv_run_realpath
24790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
24791$as_echo "${libopts_cv_run_realpath}" >&6; }
24792  if test "X${libopts_cv_run_realpath}" != Xno
24793  then
24794
24795$as_echo "#define HAVE_REALPATH 1" >>confdefs.h
24796
24797  fi
24798
24799
24800
24801  # Check to see if strftime() works.
24802
24803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
24804$as_echo_n "checking whether strftime() works... " >&6; }
24805  if ${libopts_cv_run_strftime+:} false; then :
24806  $as_echo_n "(cached) " >&6
24807else
24808
24809  if test "$cross_compiling" = yes; then :
24810  libopts_cv_run_strftime=no
24811
24812else
24813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24814/* end confdefs.h.  */
24815#include <time.h>
24816#include <string.h>
24817char t_buf[ 64 ];
24818int main() {
24819  static char const z[] = "Thursday Aug 28 240";
24820  struct tm tm;
24821  tm.tm_sec   = 36;  /* seconds after the minute [0, 61]  */
24822  tm.tm_min   = 44;  /* minutes after the hour [0, 59] */
24823  tm.tm_hour  = 12;  /* hour since midnight [0, 23] */
24824  tm.tm_mday  = 28;  /* day of the month [1, 31] */
24825  tm.tm_mon   =  7;  /* months since January [0, 11] */
24826  tm.tm_year  = 86;  /* years since 1900 */
24827  tm.tm_wday  =  4;  /* days since Sunday [0, 6] */
24828  tm.tm_yday  = 239; /* days since January 1 [0, 365] */
24829  tm.tm_isdst =  1;  /* flag for daylight savings time */
24830  strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
24831  return (strcmp( t_buf, z ) != 0); }
24832_ACEOF
24833if ac_fn_c_try_run "$LINENO"; then :
24834  libopts_cv_run_strftime=yes
24835else
24836  libopts_cv_run_strftime=no
24837fi
24838rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24839  conftest.$ac_objext conftest.beam conftest.$ac_ext
24840fi
24841 # end of RUN_IFELSE
24842
24843fi
24844 # end of AC_CACHE_VAL for libopts_cv_run_strftime
24845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
24846$as_echo "${libopts_cv_run_strftime}" >&6; }
24847  if test "X${libopts_cv_run_strftime}" != Xno
24848  then
24849
24850$as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
24851
24852  fi
24853
24854
24855
24856  # Check to see if fopen accepts "b" mode.
24857
24858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
24859$as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
24860  if ${libopts_cv_run_fopen_binary+:} false; then :
24861  $as_echo_n "(cached) " >&6
24862else
24863
24864  if test "$cross_compiling" = yes; then :
24865  libopts_cv_run_fopen_binary=no
24866
24867else
24868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24869/* end confdefs.h.  */
24870#include <stdio.h>
24871int main (int argc, char ** argv) {
24872FILE * fp = fopen("conftest.$ac_ext", "rb");
24873return (fp == NULL) ? 1 : fclose(fp); }
24874_ACEOF
24875if ac_fn_c_try_run "$LINENO"; then :
24876  libopts_cv_run_fopen_binary=yes
24877else
24878  libopts_cv_run_fopen_binary=no
24879fi
24880rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24881  conftest.$ac_objext conftest.beam conftest.$ac_ext
24882fi
24883 # end of RUN_IFELSE
24884
24885fi
24886 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
24887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
24888$as_echo "${libopts_cv_run_fopen_binary}" >&6; }
24889  if test "X${libopts_cv_run_fopen_binary}" != Xno
24890  then
24891
24892$as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
24893
24894  else
24895
24896$as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
24897
24898  fi
24899
24900
24901
24902  # Check to see if fopen accepts "t" mode.
24903
24904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
24905$as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
24906  if ${libopts_cv_run_fopen_text+:} false; then :
24907  $as_echo_n "(cached) " >&6
24908else
24909
24910  if test "$cross_compiling" = yes; then :
24911  libopts_cv_run_fopen_text=no
24912
24913else
24914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24915/* end confdefs.h.  */
24916#include <stdio.h>
24917int main (int argc, char ** argv) {
24918FILE * fp = fopen("conftest.$ac_ext", "rt");
24919return (fp == NULL) ? 1 : fclose(fp); }
24920_ACEOF
24921if ac_fn_c_try_run "$LINENO"; then :
24922  libopts_cv_run_fopen_text=yes
24923else
24924  libopts_cv_run_fopen_text=no
24925fi
24926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24927  conftest.$ac_objext conftest.beam conftest.$ac_ext
24928fi
24929 # end of RUN_IFELSE
24930
24931fi
24932 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
24933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
24934$as_echo "${libopts_cv_run_fopen_text}" >&6; }
24935  if test "X${libopts_cv_run_fopen_text}" != Xno
24936  then
24937
24938$as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
24939
24940  else
24941
24942$as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
24943
24944  fi
24945
24946
24947
24948  # Check to see if not wanting optional option args.
24949
24950  # Check whether --enable-optional-args was given.
24951if test "${enable_optional_args+set}" = set; then :
24952  enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
24953else
24954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
24955$as_echo_n "checking whether not wanting optional option args... " >&6; }
24956if ${libopts_cv_enable_optional_args+:} false; then :
24957  $as_echo_n "(cached) " >&6
24958else
24959  libopts_cv_enable_optional_args=yes
24960fi
24961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
24962$as_echo "$libopts_cv_enable_optional_args" >&6; }
24963
24964fi
24965 # end of AC_ARG_ENABLE
24966  if test "X${libopts_cv_enable_optional_args}" = Xno
24967  then
24968
24969$as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
24970
24971  fi
24972
24973
24974
24975
24976
24977          fi
24978  ac_config_files="$ac_config_files libopts/Makefile"
24979
24980  # end of AC_DEFUN of LIBOPTS_CHECK
24981
24982
24983# From when we only used libevent for sntp:
24984#AM_COND_IF(
24985#    [BUILD_SNTP],
24986#    [NTP_LIBEVENT_CHECK],
24987#    [NTP_LIBEVENT_CHECK_NOBUILD]
24988#)
24989
24990
24991
24992ntp_pkgconfig_min_version='0.15.0'
24993if test -n "$ac_tool_prefix"; then
24994  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24995set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24997$as_echo_n "checking for $ac_word... " >&6; }
24998if ${ac_cv_path_PKG_CONFIG+:} false; then :
24999  $as_echo_n "(cached) " >&6
25000else
25001  case $PKG_CONFIG in
25002  [\\/]* | ?:[\\/]*)
25003  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25004  ;;
25005  *)
25006  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25007for as_dir in $PATH
25008do
25009  IFS=$as_save_IFS
25010  test -z "$as_dir" && as_dir=.
25011    for ac_exec_ext in '' $ac_executable_extensions; do
25012  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25013    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25014    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25015    break 2
25016  fi
25017done
25018  done
25019IFS=$as_save_IFS
25020
25021  ;;
25022esac
25023fi
25024PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25025if test -n "$PKG_CONFIG"; then
25026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
25027$as_echo "$PKG_CONFIG" >&6; }
25028else
25029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25030$as_echo "no" >&6; }
25031fi
25032
25033
25034fi
25035if test -z "$ac_cv_path_PKG_CONFIG"; then
25036  ac_pt_PKG_CONFIG=$PKG_CONFIG
25037  # Extract the first word of "pkg-config", so it can be a program name with args.
25038set dummy pkg-config; ac_word=$2
25039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25040$as_echo_n "checking for $ac_word... " >&6; }
25041if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
25042  $as_echo_n "(cached) " >&6
25043else
25044  case $ac_pt_PKG_CONFIG in
25045  [\\/]* | ?:[\\/]*)
25046  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
25047  ;;
25048  *)
25049  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25050for as_dir in $PATH
25051do
25052  IFS=$as_save_IFS
25053  test -z "$as_dir" && as_dir=.
25054    for ac_exec_ext in '' $ac_executable_extensions; do
25055  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25056    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25058    break 2
25059  fi
25060done
25061  done
25062IFS=$as_save_IFS
25063
25064  ;;
25065esac
25066fi
25067ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
25068if test -n "$ac_pt_PKG_CONFIG"; then
25069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
25070$as_echo "$ac_pt_PKG_CONFIG" >&6; }
25071else
25072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25073$as_echo "no" >&6; }
25074fi
25075
25076  if test "x$ac_pt_PKG_CONFIG" = x; then
25077    PKG_CONFIG=""
25078  else
25079    case $cross_compiling:$ac_tool_warned in
25080yes:)
25081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25083ac_tool_warned=yes ;;
25084esac
25085    PKG_CONFIG=$ac_pt_PKG_CONFIG
25086  fi
25087else
25088  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
25089fi
25090
25091{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
25092{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
25093
25094case "$PKG_CONFIG" in
25095 /*)
25096    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
25097$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
25098    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
25099	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25100$as_echo "yes" >&6; }
25101    else
25102	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25103$as_echo "no" >&6; }
25104	PKG_CONFIG=""
25105    fi
25106    ;;
25107esac
25108
25109
25110
25111
25112# Check whether --enable-local-libevent was given.
25113if test "${enable_local_libevent+set}" = set; then :
25114  enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
25115else
25116  ntp_use_local_libevent=${ntp_use_local_libevent-detect}
25117
25118fi
25119
25120
25121
25122
25123
25124
25125
25126
25127
25128
25129ntp_libevent_min_version=2
25130ntp_libevent_tearoff=libevent
25131
25132
25133
25134
25135case "$ntp_use_local_libevent" in
25136 yes)
25137    ;;
25138 *) # If we have (a good enough) pkg-config, see if it can find libevent
25139    case "$PKG_CONFIG" in
25140     /*)
25141	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
25142$as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
25143	if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
25144	then
25145	    ntp_use_local_libevent=no
25146	    { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5
25147$as_echo "$as_me: Using the installed libevent" >&6;}
25148	    CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
25149	    # HMS: I hope the following is accurate.
25150	    # We don't need -levent, we only need  -levent_core.
25151	    # While we could grab only the -L stuff, there *might* be
25152	    # other flags there we want.  Originally we just removed -levent
25153	    # but then somebody decided to install -levent-2.0
25154	    # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
25155	    # So now we dance...
25156	    LDADD_LIBEVENT=
25157	    for i in `$PKG_CONFIG --libs libevent`
25158	    do
25159		case "$i" in
25160		 -levent*) ;;
25161		 *) case "$LDADD_LIBEVENT" in
25162		     '') LDADD_LIBEVENT="$i" ;;
25163		     *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
25164		    esac
25165		    ;;
25166		esac
25167	    done
25168	    case "$LIBISC_PTHREADS_NOTHREADS" in
25169	     pthreads)
25170		LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
25171	    esac
25172	    LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
25173	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25174$as_echo "yes" >&6; }
25175	else
25176	    ntp_use_local_libevent=yes
25177	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25178$as_echo "no" >&6; }
25179	fi
25180	;;
25181     *)
25182	ntp_use_local_libevent=yes
25183	;;
25184    esac
25185    ;;
25186esac
25187
25188case "$ntp_use_local_libevent" in
25189 yes)
25190    { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
25191$as_echo "$as_me: Using libevent tearoff" >&6;}
25192    CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
25193    case "$LIBISC_PTHREADS_NOTHREADS" in
25194     pthreads)
25195	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
25196	;;
25197     *)
25198	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
25199    esac
25200esac
25201
25202 if test "x$ntp_use_local_libevent" = "xyes"; then
25203  BUILD_LIBEVENT_TRUE=
25204  BUILD_LIBEVENT_FALSE='#'
25205else
25206  BUILD_LIBEVENT_TRUE='#'
25207  BUILD_LIBEVENT_FALSE=
25208fi
25209
25210
25211
25212
25213case "$ntp_libevent_tearoff" in
25214 libevent)
25215    ;;
25216 *)
25217    as_fn_error $? "ntp_libevent.m4 dir must be libevent, not $ntp_libevent_tearoff" "$LINENO" 5
25218    ;;
25219esac
25220
25221case "$ntp_use_local_libevent" in
25222 yes)
25223                        ac_configure_args=" --disable-openssl${ac_configure_args}"
25224    ac_configure_args=" --disable-shared${ac_configure_args}"
25225    ac_configure_args=" --disable-libevent-regress${ac_configure_args}"
25226    ac_configure_args=" --disable-libevent-install${ac_configure_args}"
25227    ac_configure_args=" --enable-silent-rules${ac_configure_args}"
25228    ac_configure_args=" --enable-function-sections${ac_configure_args}"
25229    subdirs="$subdirs libevent"
25230
25231    ;;
25232 *)
25233    NTP_FORCE_LIBEVENT_DIST=libevent
25234    ;;
25235esac
25236
25237
25238
25239# Checks for libraries.
25240
25241
25242LIB_SYSLOG=''
25243
25244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
25245$as_echo_n "checking for library containing openlog... " >&6; }
25246if ${ac_cv_search_openlog+:} false; then :
25247  $as_echo_n "(cached) " >&6
25248else
25249  ac_func_search_save_LIBS=$LIBS
25250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25251/* end confdefs.h.  */
25252
25253/* Override any GCC internal prototype to avoid an error.
25254   Use char because int might match the return type of a GCC
25255   builtin and then its argument prototype would still apply.  */
25256#ifdef __cplusplus
25257extern "C"
25258#endif
25259char openlog ();
25260int
25261main ()
25262{
25263return openlog ();
25264  ;
25265  return 0;
25266}
25267_ACEOF
25268for ac_lib in '' gen syslog; do
25269  if test -z "$ac_lib"; then
25270    ac_res="none required"
25271  else
25272    ac_res=-l$ac_lib
25273    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25274  fi
25275  if ac_fn_c_try_link "$LINENO"; then :
25276  ac_cv_search_openlog=$ac_res
25277fi
25278rm -f core conftest.err conftest.$ac_objext \
25279    conftest$ac_exeext
25280  if ${ac_cv_search_openlog+:} false; then :
25281  break
25282fi
25283done
25284if ${ac_cv_search_openlog+:} false; then :
25285
25286else
25287  ac_cv_search_openlog=no
25288fi
25289rm conftest.$ac_ext
25290LIBS=$ac_func_search_save_LIBS
25291fi
25292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
25293$as_echo "$ac_cv_search_openlog" >&6; }
25294ac_res=$ac_cv_search_openlog
25295if test "$ac_res" != no; then :
25296  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25297  case "$ac_cv_search_openlog" in
25298 'none required') ;;
25299 no) ;;
25300 *) LIB_SYSLOG="$ac_cv_search_openlog $LIB_SYSLOG" ;;
25301 esac
25302
25303fi
25304
25305
25306# Checks for header files.
25307for ac_header in netdb.h string.h strings.h syslog.h
25308do :
25309  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25310ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25311if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25312  cat >>confdefs.h <<_ACEOF
25313#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25314_ACEOF
25315
25316fi
25317
25318done
25319
25320
25321
25322for ac_header in sysexits.h
25323do :
25324  ac_fn_c_check_header_mongrel "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
25325if test "x$ac_cv_header_sysexits_h" = xyes; then :
25326  cat >>confdefs.h <<_ACEOF
25327#define HAVE_SYSEXITS_H 1
25328_ACEOF
25329
25330else
25331
25332
25333$as_echo "#define EX_OK 0" >>confdefs.h
25334
25335
25336$as_echo "#define EX_SOFTWARE 70" >>confdefs.h
25337
25338
25339fi
25340
25341done
25342
25343
25344
25345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
25346$as_echo_n "checking for facilitynames in syslog.h... " >&6; }
25347if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
25348  $as_echo_n "(cached) " >&6
25349else
25350
25351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25352/* end confdefs.h.  */
25353
25354#define SYSLOG_NAMES
25355#include <stdlib.h>
25356#include <syslog.h>
25357
25358int
25359main ()
25360{
25361 void *fnames; fnames = facilitynames;
25362  ;
25363  return 0;
25364}
25365_ACEOF
25366if ac_fn_c_try_compile "$LINENO"; then :
25367  ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
25368else
25369  ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
25370fi
25371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25372fi
25373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
25374$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
25375case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
25376 yes)
25377
25378$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
25379
25380    ;;
25381 no)
25382    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
25383$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
25384    ;;
25385 cross)
25386    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
25387$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
25388    ;;
25389esac
25390
25391
25392# Checks for typedefs, structures, and compiler characteristics.
25393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
25394$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
25395if ${ac_cv_header_stdbool_h+:} false; then :
25396  $as_echo_n "(cached) " >&6
25397else
25398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25399/* end confdefs.h.  */
25400
25401             #include <stdbool.h>
25402             #ifndef bool
25403              "error: bool is not defined"
25404             #endif
25405             #ifndef false
25406              "error: false is not defined"
25407             #endif
25408             #if false
25409              "error: false is not 0"
25410             #endif
25411             #ifndef true
25412              "error: true is not defined"
25413             #endif
25414             #if true != 1
25415              "error: true is not 1"
25416             #endif
25417             #ifndef __bool_true_false_are_defined
25418              "error: __bool_true_false_are_defined is not defined"
25419             #endif
25420
25421             struct s { _Bool s: 1; _Bool t; } s;
25422
25423             char a[true == 1 ? 1 : -1];
25424             char b[false == 0 ? 1 : -1];
25425             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
25426             char d[(bool) 0.5 == true ? 1 : -1];
25427             /* See body of main program for 'e'.  */
25428             char f[(_Bool) 0.0 == false ? 1 : -1];
25429             char g[true];
25430             char h[sizeof (_Bool)];
25431             char i[sizeof s.t];
25432             enum { j = false, k = true, l = false * true, m = true * 256 };
25433             /* The following fails for
25434                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
25435             _Bool n[m];
25436             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
25437             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
25438             /* Catch a bug in an HP-UX C compiler.  See
25439                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
25440                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
25441              */
25442             _Bool q = true;
25443             _Bool *pq = &q;
25444
25445int
25446main ()
25447{
25448
25449             bool e = &s;
25450             *pq |= q;
25451             *pq |= ! q;
25452             /* Refer to every declared value, to avoid compiler optimizations.  */
25453             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
25454                     + !m + !n + !o + !p + !q + !pq);
25455
25456  ;
25457  return 0;
25458}
25459_ACEOF
25460if ac_fn_c_try_compile "$LINENO"; then :
25461  ac_cv_header_stdbool_h=yes
25462else
25463  ac_cv_header_stdbool_h=no
25464fi
25465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25466fi
25467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
25468$as_echo "$ac_cv_header_stdbool_h" >&6; }
25469   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
25470if test "x$ac_cv_type__Bool" = xyes; then :
25471
25472cat >>confdefs.h <<_ACEOF
25473#define HAVE__BOOL 1
25474_ACEOF
25475
25476
25477fi
25478
25479
25480if test $ac_cv_header_stdbool_h = yes; then
25481
25482$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
25483
25484fi
25485
25486
25487
25488
25489
25490VER_SUFFIX=
25491
25492
25493
25494
25495# Check whether --with-crypto was given.
25496if test "${with_crypto+set}" = set; then :
25497  withval=$with_crypto;
25498fi
25499
25500
25501# Check whether --with-openssl-libdir was given.
25502if test "${with_openssl_libdir+set}" = set; then :
25503  withval=$with_openssl_libdir;
25504fi
25505
25506
25507# Check whether --with-openssl-incdir was given.
25508if test "${with_openssl_incdir+set}" = set; then :
25509  withval=$with_openssl_incdir;
25510fi
25511
25512
25513# Check whether --with-rpath was given.
25514if test "${with_rpath+set}" = set; then :
25515  withval=$with_rpath;
25516fi
25517
25518ntp_openssl=no
25519ntp_openssl_from_pkg_config=no
25520with_crypto=${with_crypto:-openssl,libcrypto}
25521case "$with_crypto" in
25522 yes)
25523    with_crypto=openssl,libcrypto
25524esac
25525case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
25526 no:*) ;;
25527 *:notempty:notgiven:notgiven)
25528    for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
25529	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
25530$as_echo_n "checking pkg-config for $pkg... " >&6; }
25531	if $PKG_CONFIG --exists $pkg ; then
25532	    CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
25533	    CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
25534	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
25535	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
25536	    LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
25537	    VER_SUFFIX=o
25538	    ntp_openssl=yes
25539	    ntp_openssl_from_pkg_config=yes
25540	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25541$as_echo "yes" >&6; }
25542
25543	    break
25544	fi
25545	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25546$as_echo "no" >&6; }
25547    done
25548esac
25549case "$with_crypto:$ntp_openssl" in
25550 no:*) ;;
25551 *:no)
25552    need_dash_r=
25553    need_dash_Wlrpath=
25554    case "${with_rpath-notgiven}" in
25555     yes)
25556	# Lame - what to do if we need -Wl... but not -R?
25557	need_dash_r=1
25558	;;
25559     notgiven)
25560	case "$host" in
25561	 *-*-linux*)
25562	    # This may really only be true for gcc
25563	    need_dash_Wlrpath=1
25564	    ;;
25565	 *-*-netbsd*)
25566	    need_dash_r=1
25567	    ;;
25568	 *-*-solaris*)
25569	    need_dash_r=1
25570	    ;;
25571	esac
25572	;;
25573    esac
25574
25575    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
25576$as_echo_n "checking for openssl library directory... " >&6; }
25577    with_openssl_libdir=${with_openssl_libdir-notgiven}
25578    case "$with_openssl_libdir" in
25579     notgiven)
25580	case "$build" in
25581	 $host)
25582	    with_openssl_libdir=default
25583	    ;;
25584	 *)
25585	    with_openssl_libdir=no
25586	    ;;
25587	esac
25588    esac
25589    case "$with_openssl_libdir" in
25590     default)
25591	# Look in:
25592	with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
25593	with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
25594	with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
25595    esac
25596    case "$with_openssl_libdir" in
25597     no)
25598	;;
25599     *) # Look for libcrypto.a and libssl.a:
25600	for i in $with_openssl_libdir no
25601	do
25602	    case "$host" in
25603	     *-*-darwin*)
25604		test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
25605		;;
25606	     *)
25607		test -f $i/libcrypto.so -a -f $i/libssl.so && break
25608		test -f $i/libcrypto.a -a -f $i/libssl.a && break
25609		;;
25610	    esac
25611	done
25612	openssl_libdir=$i
25613	;;
25614    esac
25615    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
25616$as_echo "$openssl_libdir" >&6; }
25617    case "$openssl_libdir" in
25618     no)
25619	openssl_libdir=
25620	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
25621$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
25622    esac
25623
25624    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
25625$as_echo_n "checking for openssl include directory... " >&6; }
25626    with_openssl_incdir=${with_openssl_incdir-notgiven}
25627    case "$with_openssl_incdir" in
25628     notgiven)
25629	# Look in:
25630	with_openssl_incdir="/usr/include /usr/sfw/include"
25631	with_openssl_incdir="$with_openssl_incdir /usr/local/include"
25632	with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
25633    esac
25634    case "$with_openssl_incdir" in
25635     no)
25636	;;
25637     *) # look for openssl/evp.h:
25638	for i in $with_openssl_incdir no
25639	do
25640	    test -f $i/openssl/evp.h && break
25641	done
25642	openssl_incdir=$i
25643	;;
25644    esac
25645    { i=; unset i;}
25646    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
25647$as_echo "$openssl_incdir" >&6; }
25648    case "$openssl_incdir" in
25649     no)
25650	openssl_incdir=
25651	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
25652$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
25653    esac
25654    if test -z "$openssl_libdir" -o -z "$openssl_incdir"
25655    then
25656	ntp_openssl=no
25657    else
25658	ntp_openssl=yes
25659	VER_SUFFIX=o
25660    fi
25661    case "$ntp_openssl" in
25662     yes)
25663	# We have OpenSSL inc/lib dirs - use them.
25664	case "$openssl_incdir" in
25665	 /usr/include)
25666	    ;;
25667	 *)
25668	    CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
25669	    ;;
25670	esac
25671	case "$openssl_libdir" in
25672	 /usr/lib)
25673	    ;;
25674	 *)
25675	    LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
25676	    case "$need_dash_r" in
25677	     1)
25678		LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
25679	    esac
25680	    case "$need_dash_Wlrpath" in
25681	     1)
25682		LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
25683	    esac
25684	    ;;
25685	esac
25686	LDADD_NTP="$LDADD_NTP -lcrypto"
25687    esac
25688esac
25689
25690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
25691$as_echo_n "checking if we will use crypto... " >&6; }
25692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
25693$as_echo "$ntp_openssl" >&6; }
25694
25695case "$ntp_openssl" in
25696 yes)
25697
25698$as_echo "#define OPENSSL /**/" >>confdefs.h
25699
25700    case "$VER_SUFFIX" in
25701     *o*) ;;
25702     *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
25703    esac
25704    ;;
25705esac
25706
25707NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
25708CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
25709NTPO_SAVED_LIBS="$LIBS"
25710
25711#
25712# check for linking with -lcrypto failure, and try -lcrypto -lz.
25713# Helps m68k-atari-mint
25714#
25715case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
25716 yes:no)
25717    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
25718    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
25719$as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
25720if ${ntp_cv_bare_lcrypto+:} false; then :
25721  $as_echo_n "(cached) " >&6
25722else
25723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25724/* end confdefs.h.  */
25725
25726		    #include "openssl/err.h"
25727		    #include "openssl/evp.h"
25728
25729int
25730main ()
25731{
25732
25733		    ERR_load_crypto_strings();
25734		    OpenSSL_add_all_algorithms();
25735
25736
25737  ;
25738  return 0;
25739}
25740_ACEOF
25741if ac_fn_c_try_link "$LINENO"; then :
25742  ntp_cv_bare_lcrypto=yes
25743else
25744  ntp_cv_bare_lcrypto=no
25745
25746fi
25747rm -f core conftest.err conftest.$ac_objext \
25748    conftest$ac_exeext conftest.$ac_ext
25749
25750fi
25751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
25752$as_echo "$ntp_cv_bare_lcrypto" >&6; }
25753    case "$ntp_cv_bare_lcrypto" in
25754     no)
25755	LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
25756	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
25757$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
25758if ${ntp_cv_lcrypto_lz+:} false; then :
25759  $as_echo_n "(cached) " >&6
25760else
25761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25762/* end confdefs.h.  */
25763
25764			#include "openssl/err.h"
25765			#include "openssl/evp.h"
25766
25767int
25768main ()
25769{
25770
25771			ERR_load_crypto_strings();
25772			OpenSSL_add_all_algorithms();
25773
25774
25775  ;
25776  return 0;
25777}
25778_ACEOF
25779if ac_fn_c_try_link "$LINENO"; then :
25780  ntp_cv_lcrypto_lz=yes
25781else
25782  ntp_cv_lcrypto_lz=no
25783
25784fi
25785rm -f core conftest.err conftest.$ac_objext \
25786    conftest$ac_exeext conftest.$ac_ext
25787
25788fi
25789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
25790$as_echo "$ntp_cv_lcrypto_lz" >&6; }
25791	case "$ntp_cv_lcrypto_lz" in
25792	 yes)
25793	     LDADD_NTP="$LDADD_NTP -lz"
25794	esac
25795    esac
25796esac
25797
25798#
25799# Older OpenSSL headers have a number of callback prototypes inside
25800# other function prototypes which trigger copious warnings with gcc's
25801# -Wstrict-prototypes, which is included in -Wall.
25802#
25803# An example:
25804#
25805# int i2d_RSA_NET(const RSA *a, unsigned char **pp,
25806#		  int (*cb)(), int sgckey);
25807#		  ^^^^^^^^^^^
25808#
25809#
25810#
25811openssl_triggers_warnings=unknown
25812NTPO_SAVED_CFLAGS="$CFLAGS"
25813
25814case "$ntp_openssl:$GCC" in
25815 yes:yes)
25816    CFLAGS="$CFLAGS -Werror"
25817    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25818/* end confdefs.h.  */
25819
25820
25821int
25822main ()
25823{
25824
25825		/* see if -Werror breaks gcc */
25826
25827
25828  ;
25829  return 0;
25830}
25831_ACEOF
25832if ac_fn_c_try_compile "$LINENO"; then :
25833  gcc_handles_Werror=yes
25834else
25835  gcc_handles_Werror=no
25836
25837fi
25838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25839    case "$gcc_handles_Werror" in
25840     no)
25841	# if this gcc doesn't do -Werror go ahead and use
25842	# -Wstrict-prototypes.
25843	openssl_triggers_warnings=yes
25844	;;
25845     yes)
25846	CFLAGS="$CFLAGS -Wstrict-prototypes"
25847	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25848/* end confdefs.h.  */
25849
25850		    #include "openssl/asn1_mac.h"
25851		    #include "openssl/bn.h"
25852		    #include "openssl/err.h"
25853		    #include "openssl/evp.h"
25854		    #include "openssl/pem.h"
25855		    #include "openssl/rand.h"
25856		    #include "openssl/x509v3.h"
25857
25858int
25859main ()
25860{
25861
25862		    /* empty body */
25863
25864
25865  ;
25866  return 0;
25867}
25868_ACEOF
25869if ac_fn_c_try_compile "$LINENO"; then :
25870  openssl_triggers_warnings=no
25871else
25872  openssl_triggers_warnings=yes
25873
25874fi
25875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25876    esac
25877    case "$openssl_triggers_warnings" in
25878     yes)
25879	CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
25880	;;
25881     *)
25882	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
25883    esac
25884    ;;
25885 no:yes)
25886    # gcc without OpenSSL
25887    CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
25888esac
25889
25890# Because we don't want -Werror for the EVP_MD_do_all_sorted check
25891CFLAGS="$NTPO_SAVED_CFLAGS"
25892
25893case "$ntp_openssl" in
25894 yes)
25895    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
25896    for ac_func in EVP_MD_do_all_sorted
25897do :
25898  ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
25899if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
25900  cat >>confdefs.h <<_ACEOF
25901#define HAVE_EVP_MD_DO_ALL_SORTED 1
25902_ACEOF
25903
25904fi
25905done
25906
25907    ;;
25908esac
25909
25910CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
25911LIBS="$NTPO_SAVED_LIBS"
25912{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
25913{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
25914{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
25915{ openssl_triggers_warnings=; unset openssl_triggers_warnings;}
25916{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
25917
25918
25919
25920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
25921$as_echo_n "checking for struct sockaddr_storage... " >&6; }
25922if ${ntp_cv_sockaddr_storage+:} false; then :
25923  $as_echo_n "(cached) " >&6
25924else
25925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25926/* end confdefs.h.  */
25927
25928		#ifdef HAVE_SYS_TYPES_H
25929		# include <sys/types.h>
25930		#endif
25931		#ifdef HAVE_SYS_SOCKET_H
25932		# include <sys/socket.h>
25933		#endif
25934		#ifdef HAVE_NETINET_IN_H
25935		# include <netinet/in.h>
25936		#endif
25937
25938int
25939main ()
25940{
25941
25942		struct sockaddr_storage n;
25943
25944
25945  ;
25946  return 0;
25947}
25948_ACEOF
25949if ac_fn_c_try_compile "$LINENO"; then :
25950  ntp_cv_sockaddr_storage=yes
25951else
25952  ntp_cv_sockaddr_storage=no
25953
25954fi
25955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25956
25957fi
25958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
25959$as_echo "$ntp_cv_sockaddr_storage" >&6; }
25960case "$ntp_cv_sockaddr_storage" in
25961 yes)
25962
25963$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
25964
25965    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
25966$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
25967if ${ntp_cv_have___ss_family+:} false; then :
25968  $as_echo_n "(cached) " >&6
25969else
25970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25971/* end confdefs.h.  */
25972
25973		    #ifdef HAVE_SYS_TYPES_H
25974		    # include <sys/types.h>
25975		    #endif
25976		    #ifdef HAVE_SYS_SOCKET_H
25977		    # include <sys/socket.h>
25978		    #endif
25979		    #ifdef HAVE_NETINET_IN_H
25980		    # include <netinet/in.h>
25981		    #endif
25982
25983int
25984main ()
25985{
25986
25987		    struct sockaddr_storage s;
25988		    s.__ss_family = 1;
25989
25990
25991  ;
25992  return 0;
25993}
25994_ACEOF
25995if ac_fn_c_try_compile "$LINENO"; then :
25996  ntp_cv_have___ss_family=yes
25997else
25998  ntp_cv_have___ss_family=no
25999
26000fi
26001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26002
26003fi
26004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
26005$as_echo "$ntp_cv_have___ss_family" >&6; }
26006    case "$ntp_cv_have___ss_family" in
26007     yes)
26008
26009$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
26010
26011    esac
26012
26013esac
26014
26015
26016#
26017# Look for in_port_t.
26018#
26019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
26020$as_echo_n "checking for in_port_t... " >&6; }
26021if ${isc_cv_have_in_port_t+:} false; then :
26022  $as_echo_n "(cached) " >&6
26023else
26024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26025/* end confdefs.h.  */
26026
26027		#include <sys/types.h>
26028		#include <netinet/in.h>
26029
26030int
26031main ()
26032{
26033
26034		in_port_t port = 25;
26035		return (0);
26036
26037
26038  ;
26039  return 0;
26040}
26041_ACEOF
26042if ac_fn_c_try_compile "$LINENO"; then :
26043  isc_cv_have_in_port_t=yes
26044else
26045  isc_cv_have_in_port_t=no
26046
26047fi
26048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26049
26050fi
26051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
26052$as_echo "$isc_cv_have_in_port_t" >&6; }
26053case "$isc_cv_have_in_port_t" in
26054 no)
26055
26056$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
26057
26058esac
26059
26060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
26061$as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
26062if ${ntp_cv_getsockname_socklen_type+:} false; then :
26063  $as_echo_n "(cached) " >&6
26064else
26065
26066    getsockname_socklen_type_found=no
26067    for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
26068	for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
26069	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26070/* end confdefs.h.  */
26071
26072			#ifdef HAVE_SYS_TYPES_H
26073			# include <sys/types.h>
26074			#endif
26075			#ifdef HAVE_SYS_SOCKET_H
26076			# include <sys/socket.h>
26077			#endif
26078
26079int
26080main ()
26081{
26082
26083			extern
26084			getsockname(int, $getsockname_arg2,
26085				$ntp_cv_getsockname_socklen_type *);
26086
26087
26088  ;
26089  return 0;
26090}
26091_ACEOF
26092if ac_fn_c_try_compile "$LINENO"; then :
26093  getsockname_socklen_type_found=yes ; break 2
26094fi
26095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26096	done
26097    done
26098    case "$getsockname_socklen_type_found" in
26099     no)
26100	ntp_cv_getsockname_socklen_type='socklen_t'
26101    esac
26102    { getsockname_arg2=; unset getsockname_arg2;}
26103    { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
26104
26105
26106fi
26107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
26108$as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
26109
26110cat >>confdefs.h <<_ACEOF
26111#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
26112_ACEOF
26113
26114
26115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
26116$as_echo_n "checking struct sockaddr for sa_len... " >&6; }
26117if ${isc_cv_platform_havesalen+:} false; then :
26118  $as_echo_n "(cached) " >&6
26119else
26120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26121/* end confdefs.h.  */
26122
26123		#include <sys/types.h>
26124		#include <sys/socket.h>
26125
26126int
26127main ()
26128{
26129
26130		extern struct sockaddr *ps;
26131		return ps->sa_len;
26132
26133
26134  ;
26135  return 0;
26136}
26137_ACEOF
26138if ac_fn_c_try_compile "$LINENO"; then :
26139  isc_cv_platform_havesalen=yes
26140else
26141  isc_cv_platform_havesalen=no
26142
26143fi
26144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26145
26146fi
26147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
26148$as_echo "$isc_cv_platform_havesalen" >&6; }
26149case "$isc_cv_platform_havesalen" in
26150 yes)
26151
26152$as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
26153
26154esac
26155
26156# Check whether --enable-ipv6 was given.
26157if test "${enable_ipv6+set}" = set; then :
26158  enableval=$enable_ipv6;
26159fi
26160
26161
26162case "$enable_ipv6" in
26163 yes|''|autodetect)
26164    case "$host" in
26165     powerpc-ibm-aix4*)
26166	;;
26167     *)
26168
26169$as_echo "#define WANT_IPV6 1" >>confdefs.h
26170
26171	;;
26172    esac
26173    ;;
26174 no)
26175    ;;
26176esac
26177
26178
26179case "$host" in
26180 *-*-darwin*)
26181
26182$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
26183
26184esac
26185
26186
26187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
26188$as_echo_n "checking for IPv6 structures... " >&6; }
26189if ${isc_cv_found_ipv6+:} false; then :
26190  $as_echo_n "(cached) " >&6
26191else
26192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26193/* end confdefs.h.  */
26194
26195		#include <sys/types.h>
26196		#include <sys/socket.h>
26197		#include <netinet/in.h>
26198
26199int
26200main ()
26201{
26202
26203		struct sockaddr_in6 sin6;
26204
26205
26206  ;
26207  return 0;
26208}
26209_ACEOF
26210if ac_fn_c_try_compile "$LINENO"; then :
26211  isc_cv_found_ipv6=yes
26212else
26213  isc_cv_found_ipv6=no
26214
26215fi
26216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26217
26218fi
26219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
26220$as_echo "$isc_cv_found_ipv6" >&6; }
26221
26222#
26223# See whether IPv6 support is provided via a Kame add-on.
26224# This is done before other IPv6 linking tests so LIBS is properly set.
26225#
26226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
26227$as_echo_n "checking for Kame IPv6 support... " >&6; }
26228
26229# Check whether --with-kame was given.
26230if test "${with_kame+set}" = set; then :
26231  withval=$with_kame; use_kame="$withval"
26232else
26233  use_kame="no"
26234
26235fi
26236
26237case "$use_kame" in
26238 no)
26239    ;;
26240 yes)
26241    kame_path=/usr/local/v6
26242    ;;
26243 *)
26244    kame_path="$use_kame"
26245    ;;
26246esac
26247case "$use_kame" in
26248 no)
26249    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26250$as_echo "no" >&6; }
26251    ;;
26252 *)
26253    if test -f $kame_path/lib/libinet6.a; then
26254	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
26255$as_echo "$kame_path/lib/libinet6.a" >&6; }
26256	LIBS="-L$kame_path/lib -linet6 $LIBS"
26257    else
26258	as_fn_error $? "$kame_path/lib/libinet6.a not found.
26259
26260Please choose the proper path with the following command:
26261
26262    configure --with-kame=PATH
26263" "$LINENO" 5
26264    fi
26265    ;;
26266esac
26267
26268#
26269# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
26270# Including it on Kame-using platforms is very bad, though, because
26271# Kame uses #error against direct inclusion.   So include it on only
26272# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
26273# This is done before the in6_pktinfo check because that's what
26274# netinet6/in6.h is needed for.
26275#
26276case "$host" in
26277 *-bsdi4.[01]*)
26278
26279$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
26280
26281    isc_netinet6in6_hack="#include <netinet6/in6.h>"
26282    ;;
26283 *)
26284    isc_netinet6in6_hack=""
26285    ;;
26286esac
26287
26288#
26289# This is similar to the netinet6/in6.h issue.
26290#
26291case "$host" in
26292 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
26293
26294$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
26295
26296    isc_netinetin6_hack="#include <netinet/in6.h>"
26297    ;;
26298 *)
26299    isc_netinetin6_hack=""
26300    ;;
26301esac
26302
26303
26304case "$isc_cv_found_ipv6" in
26305 yes)
26306
26307$as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
26308
26309    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
26310$as_echo_n "checking for in6_pktinfo... " >&6; }
26311if ${isc_cv_have_in6_pktinfo+:} false; then :
26312  $as_echo_n "(cached) " >&6
26313else
26314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26315/* end confdefs.h.  */
26316
26317		    #include <sys/types.h>
26318		    #include <sys/socket.h>
26319		    #include <netinet/in.h>
26320		    $isc_netinetin6_hack
26321		    $isc_netinet6in6_hack
26322
26323int
26324main ()
26325{
26326
26327		    struct in6_pktinfo xyzzy;
26328
26329
26330  ;
26331  return 0;
26332}
26333_ACEOF
26334if ac_fn_c_try_compile "$LINENO"; then :
26335  isc_cv_have_in6_pktinfo=yes
26336else
26337  isc_cv_have_in6_pktinfo=no
26338
26339fi
26340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26341
26342fi
26343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
26344$as_echo "$isc_cv_have_in6_pktinfo" >&6; }
26345    case "$isc_cv_have_in6_pktinfo" in
26346     yes)
26347
26348$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
26349
26350    esac
26351
26352
26353    # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
26354    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
26355$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
26356if ${isc_cv_have_sin6_scope_id+:} false; then :
26357  $as_echo_n "(cached) " >&6
26358else
26359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26360/* end confdefs.h.  */
26361
26362		    #include <sys/types.h>
26363		    #include <sys/socket.h>
26364		    #include <netinet/in.h>
26365		    $isc_netinetin6_hack
26366		    $isc_netinet6in6_hack
26367
26368int
26369main ()
26370{
26371
26372		    struct sockaddr_in6 xyzzy;
26373		    xyzzy.sin6_scope_id = 0;
26374
26375
26376  ;
26377  return 0;
26378}
26379_ACEOF
26380if ac_fn_c_try_compile "$LINENO"; then :
26381  isc_cv_have_sin6_scope_id=yes
26382else
26383  isc_cv_have_sin6_scope_id=no
26384
26385fi
26386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26387
26388fi
26389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
26390$as_echo "$isc_cv_have_sin6_scope_id" >&6; }
26391
26392    case "$isc_cv_have_sin6_scope_id" in
26393     yes)
26394
26395$as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
26396
26397    esac
26398esac
26399
26400
26401# We need this check run even without isc_cv_found_ipv6=yes
26402
26403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
26404$as_echo_n "checking for in6addr_any... " >&6; }
26405if ${isc_cv_in6addr_any_links+:} false; then :
26406  $as_echo_n "(cached) " >&6
26407else
26408
26409	SAVED_LIBS="$LIBS"
26410	LIBS="$LDADD_LIBNTP $LIBS"
26411	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26412/* end confdefs.h.  */
26413$ac_includes_default
26414		    #include <sys/socket.h>
26415		    #include <netinet/in.h>
26416		    $isc_netinetin6_hack
26417		    $isc_netinet6in6_hack
26418
26419int
26420main ()
26421{
26422
26423		    printf("%x", in6addr_any.s6_addr[15]);
26424
26425
26426  ;
26427  return 0;
26428}
26429_ACEOF
26430if ac_fn_c_try_link "$LINENO"; then :
26431  isc_cv_in6addr_any_links=yes
26432else
26433  isc_cv_in6addr_any_links=no
26434
26435fi
26436rm -f core conftest.err conftest.$ac_objext \
26437    conftest$ac_exeext conftest.$ac_ext
26438	LIBS="$SAVED_LIBS"
26439	{ SAVED_LIBS=; unset SAVED_LIBS;}
26440
26441
26442fi
26443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
26444$as_echo "$isc_cv_in6addr_any_links" >&6; }
26445
26446case "$isc_cv_in6addr_any_links" in
26447 no)
26448
26449$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
26450
26451esac
26452
26453
26454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
26455$as_echo_n "checking for struct if_laddrconf... " >&6; }
26456if ${isc_cv_struct_if_laddrconf+:} false; then :
26457  $as_echo_n "(cached) " >&6
26458else
26459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26460/* end confdefs.h.  */
26461
26462		#include <sys/types.h>
26463		#include <net/if6.h>
26464
26465int
26466main ()
26467{
26468
26469		struct if_laddrconf a;
26470
26471
26472  ;
26473  return 0;
26474}
26475_ACEOF
26476if ac_fn_c_try_compile "$LINENO"; then :
26477  isc_cv_struct_if_laddrconf=yes
26478else
26479  isc_cv_struct_if_laddrconf=no
26480
26481fi
26482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26483
26484fi
26485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
26486$as_echo "$isc_cv_struct_if_laddrconf" >&6; }
26487
26488case "$isc_cv_struct_if_laddrconf" in
26489 yes)
26490
26491$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
26492
26493esac
26494
26495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
26496$as_echo_n "checking for struct if_laddrreq... " >&6; }
26497if ${isc_cv_struct_if_laddrreq+:} false; then :
26498  $as_echo_n "(cached) " >&6
26499else
26500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26501/* end confdefs.h.  */
26502
26503		#include <sys/types.h>
26504		#include <net/if6.h>
26505
26506int
26507main ()
26508{
26509
26510		struct if_laddrreq a;
26511
26512
26513  ;
26514  return 0;
26515}
26516_ACEOF
26517if ac_fn_c_try_compile "$LINENO"; then :
26518  isc_cv_struct_if_laddrreq=yes
26519else
26520  isc_cv_struct_if_laddrreq=no
26521
26522fi
26523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26524
26525fi
26526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
26527$as_echo "$isc_cv_struct_if_laddrreq" >&6; }
26528
26529case "$isc_cv_struct_if_laddrreq" in
26530 yes)
26531
26532$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
26533
26534esac
26535
26536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
26537$as_echo_n "checking for multicast IP support... " >&6; }
26538if ${ntp_cv_multicast+:} false; then :
26539  $as_echo_n "(cached) " >&6
26540else
26541
26542	ntp_cv_multicast=no
26543	case "$host" in
26544	 i386-sequent-sysv4)
26545	    ;;
26546	 *)
26547	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26548/* end confdefs.h.  */
26549
26550			#ifdef HAVE_NETINET_IN_H
26551			# include <netinet/in.h>
26552			#endif
26553
26554int
26555main ()
26556{
26557
26558			struct ip_mreq ipmr;
26559			ipmr.imr_interface.s_addr = 0;
26560
26561
26562  ;
26563  return 0;
26564}
26565_ACEOF
26566if ac_fn_c_try_compile "$LINENO"; then :
26567  ntp_cv_multicast=yes
26568fi
26569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26570	    ;;
26571	esac
26572
26573
26574fi
26575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
26576$as_echo "$ntp_cv_multicast" >&6; }
26577case "$ntp_cv_multicast" in
26578 yes)
26579
26580$as_echo "#define MCAST 1" >>confdefs.h
26581
26582    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
26583$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
26584if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
26585  $as_echo_n "(cached) " >&6
26586else
26587
26588	    case "$host" in
26589	     *-*-netbsd*|*-*-*linux*)
26590		ntp_cv_typeof_ip_multicast_loop=u_int
26591		;;
26592	     *)
26593		ntp_cv_typeof_ip_multicast_loop=u_char
26594		;;
26595	    esac
26596
26597
26598fi
26599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
26600$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
26601
26602cat >>confdefs.h <<_ACEOF
26603#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
26604_ACEOF
26605
26606esac
26607
26608# Check whether --enable-getifaddrs was given.
26609if test "${enable_getifaddrs+set}" = set; then :
26610  enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
26611else
26612  want_getifaddrs="yes"
26613
26614fi
26615
26616
26617case $want_getifaddrs in
26618 glibc)
26619    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
26620$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
26621esac
26622case $want_getifaddrs in
26623 no)
26624    ;;
26625 *)
26626    SAVED_LIBS="$LIBS"
26627    LIBS="$LDADD_LIBNTP $LIBS"
26628    for ac_func in getifaddrs
26629do :
26630  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
26631if test "x$ac_cv_func_getifaddrs" = xyes; then :
26632  cat >>confdefs.h <<_ACEOF
26633#define HAVE_GETIFADDRS 1
26634_ACEOF
26635
26636fi
26637done
26638
26639    LIBS="$SAVED_LIBS"
26640    { SAVED_LIBS=; unset SAVED_LIBS;}
26641    ;;
26642esac
26643
26644#
26645# Check for if_nametoindex() for IPv6 scoped addresses support
26646#
26647case "$host" in
26648 *-hp-hpux*)
26649    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
26650$as_echo_n "checking for library containing if_nametoindex... " >&6; }
26651if ${ac_cv_search_if_nametoindex+:} false; then :
26652  $as_echo_n "(cached) " >&6
26653else
26654  ac_func_search_save_LIBS=$LIBS
26655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26656/* end confdefs.h.  */
26657
26658/* Override any GCC internal prototype to avoid an error.
26659   Use char because int might match the return type of a GCC
26660   builtin and then its argument prototype would still apply.  */
26661#ifdef __cplusplus
26662extern "C"
26663#endif
26664char if_nametoindex ();
26665int
26666main ()
26667{
26668return if_nametoindex ();
26669  ;
26670  return 0;
26671}
26672_ACEOF
26673for ac_lib in '' ipv6; do
26674  if test -z "$ac_lib"; then
26675    ac_res="none required"
26676  else
26677    ac_res=-l$ac_lib
26678    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26679  fi
26680  if ac_fn_c_try_link "$LINENO"; then :
26681  ac_cv_search_if_nametoindex=$ac_res
26682fi
26683rm -f core conftest.err conftest.$ac_objext \
26684    conftest$ac_exeext
26685  if ${ac_cv_search_if_nametoindex+:} false; then :
26686  break
26687fi
26688done
26689if ${ac_cv_search_if_nametoindex+:} false; then :
26690
26691else
26692  ac_cv_search_if_nametoindex=no
26693fi
26694rm conftest.$ac_ext
26695LIBS=$ac_func_search_save_LIBS
26696fi
26697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
26698$as_echo "$ac_cv_search_if_nametoindex" >&6; }
26699ac_res=$ac_cv_search_if_nametoindex
26700if test "$ac_res" != no; then :
26701  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26702
26703fi
26704
26705esac
26706SAVED_LIBS="$LIBS"
26707LIBS="$LDADD_LIBNTP $LIBS"
26708for ac_func in if_nametoindex
26709do :
26710  ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
26711if test "x$ac_cv_func_if_nametoindex" = xyes; then :
26712  cat >>confdefs.h <<_ACEOF
26713#define HAVE_IF_NAMETOINDEX 1
26714_ACEOF
26715
26716fi
26717done
26718
26719LIBS="$SAVED_LIBS"
26720{ SAVED_LIBS=; unset SAVED_LIBS;}
26721case "$ac_cv_func_if_nametoindex" in
26722 yes)
26723
26724$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
26725
26726esac
26727
26728
26729
26730###
26731
26732# Hacks
26733# these need work if we're to move libntp under sntp
26734
26735$as_echo "#define HAVE_NO_NICE 1" >>confdefs.h
26736
26737
26738$as_echo "#define HAVE_TERMIOS 1" >>confdefs.h
26739
26740
26741# Checks for library functions.
26742for ac_func in socket
26743do :
26744  ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
26745if test "x$ac_cv_func_socket" = xyes; then :
26746  cat >>confdefs.h <<_ACEOF
26747#define HAVE_SOCKET 1
26748_ACEOF
26749
26750fi
26751done
26752
26753
26754
26755# We may not need have_unity
26756have_unity=false
26757# Extract the first word of "ruby", so it can be a program name with args.
26758set dummy ruby; ac_word=$2
26759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26760$as_echo_n "checking for $ac_word... " >&6; }
26761if ${ac_cv_path_PATH_RUBY+:} false; then :
26762  $as_echo_n "(cached) " >&6
26763else
26764  case $PATH_RUBY in
26765  [\\/]* | ?:[\\/]*)
26766  ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
26767  ;;
26768  *)
26769  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26770for as_dir in $PATH
26771do
26772  IFS=$as_save_IFS
26773  test -z "$as_dir" && as_dir=.
26774    for ac_exec_ext in '' $ac_executable_extensions; do
26775  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26776    ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
26777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26778    break 2
26779  fi
26780done
26781  done
26782IFS=$as_save_IFS
26783
26784  ;;
26785esac
26786fi
26787PATH_RUBY=$ac_cv_path_PATH_RUBY
26788if test -n "$PATH_RUBY"; then
26789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
26790$as_echo "$PATH_RUBY" >&6; }
26791else
26792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26793$as_echo "no" >&6; }
26794fi
26795
26796
26797case "$PATH_RUBY" in
26798 /*)
26799    have_unity=true
26800    ;;
26801 *) PATH_RUBY="false"
26802    ;;
26803esac
26804# We may not need UNITYBUILD_AVAILABLE
26805 if $have_unity; then
26806  UNITYBUILD_AVAILABLE_TRUE=
26807  UNITYBUILD_AVAILABLE_FALSE='#'
26808else
26809  UNITYBUILD_AVAILABLE_TRUE='#'
26810  UNITYBUILD_AVAILABLE_FALSE=
26811fi
26812
26813
26814
26815# HMS: if we don't find c++ we should not look for gtest.
26816ac_ext=cpp
26817ac_cpp='$CXXCPP $CPPFLAGS'
26818ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26819ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26820ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26821if test -z "$CXX"; then
26822  if test -n "$CCC"; then
26823    CXX=$CCC
26824  else
26825    if test -n "$ac_tool_prefix"; then
26826  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
26827  do
26828    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26829set dummy $ac_tool_prefix$ac_prog; ac_word=$2
26830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26831$as_echo_n "checking for $ac_word... " >&6; }
26832if ${ac_cv_prog_CXX+:} false; then :
26833  $as_echo_n "(cached) " >&6
26834else
26835  if test -n "$CXX"; then
26836  ac_cv_prog_CXX="$CXX" # Let the user override the test.
26837else
26838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26839for as_dir in $PATH
26840do
26841  IFS=$as_save_IFS
26842  test -z "$as_dir" && as_dir=.
26843    for ac_exec_ext in '' $ac_executable_extensions; do
26844  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26845    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
26846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26847    break 2
26848  fi
26849done
26850  done
26851IFS=$as_save_IFS
26852
26853fi
26854fi
26855CXX=$ac_cv_prog_CXX
26856if test -n "$CXX"; then
26857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
26858$as_echo "$CXX" >&6; }
26859else
26860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26861$as_echo "no" >&6; }
26862fi
26863
26864
26865    test -n "$CXX" && break
26866  done
26867fi
26868if test -z "$CXX"; then
26869  ac_ct_CXX=$CXX
26870  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
26871do
26872  # Extract the first word of "$ac_prog", so it can be a program name with args.
26873set dummy $ac_prog; ac_word=$2
26874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26875$as_echo_n "checking for $ac_word... " >&6; }
26876if ${ac_cv_prog_ac_ct_CXX+:} false; then :
26877  $as_echo_n "(cached) " >&6
26878else
26879  if test -n "$ac_ct_CXX"; then
26880  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
26881else
26882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26883for as_dir in $PATH
26884do
26885  IFS=$as_save_IFS
26886  test -z "$as_dir" && as_dir=.
26887    for ac_exec_ext in '' $ac_executable_extensions; do
26888  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26889    ac_cv_prog_ac_ct_CXX="$ac_prog"
26890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26891    break 2
26892  fi
26893done
26894  done
26895IFS=$as_save_IFS
26896
26897fi
26898fi
26899ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
26900if test -n "$ac_ct_CXX"; then
26901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
26902$as_echo "$ac_ct_CXX" >&6; }
26903else
26904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26905$as_echo "no" >&6; }
26906fi
26907
26908
26909  test -n "$ac_ct_CXX" && break
26910done
26911
26912  if test "x$ac_ct_CXX" = x; then
26913    CXX="g++"
26914  else
26915    case $cross_compiling:$ac_tool_warned in
26916yes:)
26917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26919ac_tool_warned=yes ;;
26920esac
26921    CXX=$ac_ct_CXX
26922  fi
26923fi
26924
26925  fi
26926fi
26927# Provide some information about the compiler.
26928$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
26929set X $ac_compile
26930ac_compiler=$2
26931for ac_option in --version -v -V -qversion; do
26932  { { ac_try="$ac_compiler $ac_option >&5"
26933case "(($ac_try" in
26934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26935  *) ac_try_echo=$ac_try;;
26936esac
26937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26938$as_echo "$ac_try_echo"; } >&5
26939  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
26940  ac_status=$?
26941  if test -s conftest.err; then
26942    sed '10a\
26943... rest of stderr output deleted ...
26944         10q' conftest.err >conftest.er1
26945    cat conftest.er1 >&5
26946  fi
26947  rm -f conftest.er1 conftest.err
26948  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26949  test $ac_status = 0; }
26950done
26951
26952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
26953$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
26954if ${ac_cv_cxx_compiler_gnu+:} false; then :
26955  $as_echo_n "(cached) " >&6
26956else
26957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26958/* end confdefs.h.  */
26959
26960int
26961main ()
26962{
26963#ifndef __GNUC__
26964       choke me
26965#endif
26966
26967  ;
26968  return 0;
26969}
26970_ACEOF
26971if ac_fn_cxx_try_compile "$LINENO"; then :
26972  ac_compiler_gnu=yes
26973else
26974  ac_compiler_gnu=no
26975fi
26976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26977ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26978
26979fi
26980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
26981$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26982if test $ac_compiler_gnu = yes; then
26983  GXX=yes
26984else
26985  GXX=
26986fi
26987ac_test_CXXFLAGS=${CXXFLAGS+set}
26988ac_save_CXXFLAGS=$CXXFLAGS
26989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
26990$as_echo_n "checking whether $CXX accepts -g... " >&6; }
26991if ${ac_cv_prog_cxx_g+:} false; then :
26992  $as_echo_n "(cached) " >&6
26993else
26994  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26995   ac_cxx_werror_flag=yes
26996   ac_cv_prog_cxx_g=no
26997   CXXFLAGS="-g"
26998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26999/* end confdefs.h.  */
27000
27001int
27002main ()
27003{
27004
27005  ;
27006  return 0;
27007}
27008_ACEOF
27009if ac_fn_cxx_try_compile "$LINENO"; then :
27010  ac_cv_prog_cxx_g=yes
27011else
27012  CXXFLAGS=""
27013      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27014/* end confdefs.h.  */
27015
27016int
27017main ()
27018{
27019
27020  ;
27021  return 0;
27022}
27023_ACEOF
27024if ac_fn_cxx_try_compile "$LINENO"; then :
27025
27026else
27027  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
27028	 CXXFLAGS="-g"
27029	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27030/* end confdefs.h.  */
27031
27032int
27033main ()
27034{
27035
27036  ;
27037  return 0;
27038}
27039_ACEOF
27040if ac_fn_cxx_try_compile "$LINENO"; then :
27041  ac_cv_prog_cxx_g=yes
27042fi
27043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27044fi
27045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27046fi
27047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27048   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
27049fi
27050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
27051$as_echo "$ac_cv_prog_cxx_g" >&6; }
27052if test "$ac_test_CXXFLAGS" = set; then
27053  CXXFLAGS=$ac_save_CXXFLAGS
27054elif test $ac_cv_prog_cxx_g = yes; then
27055  if test "$GXX" = yes; then
27056    CXXFLAGS="-g -O2"
27057  else
27058    CXXFLAGS="-g"
27059  fi
27060else
27061  if test "$GXX" = yes; then
27062    CXXFLAGS="-O2"
27063  else
27064    CXXFLAGS=
27065  fi
27066fi
27067ac_ext=c
27068ac_cpp='$CPP $CPPFLAGS'
27069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27071ac_compiler_gnu=$ac_cv_c_compiler_gnu
27072
27073depcc="$CXX"  am_compiler_list=
27074
27075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
27076$as_echo_n "checking dependency style of $depcc... " >&6; }
27077if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
27078  $as_echo_n "(cached) " >&6
27079else
27080  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
27081  # We make a subdir and do the tests there.  Otherwise we can end up
27082  # making bogus files that we don't know about and never remove.  For
27083  # instance it was reported that on HP-UX the gcc test will end up
27084  # making a dummy file named 'D' -- because '-MD' means "put the output
27085  # in D".
27086  rm -rf conftest.dir
27087  mkdir conftest.dir
27088  # Copy depcomp to subdir because otherwise we won't find it if we're
27089  # using a relative directory.
27090  cp "$am_depcomp" conftest.dir
27091  cd conftest.dir
27092  # We will build objects and dependencies in a subdirectory because
27093  # it helps to detect inapplicable dependency modes.  For instance
27094  # both Tru64's cc and ICC support -MD to output dependencies as a
27095  # side effect of compilation, but ICC will put the dependencies in
27096  # the current directory while Tru64 will put them in the object
27097  # directory.
27098  mkdir sub
27099
27100  am_cv_CXX_dependencies_compiler_type=none
27101  if test "$am_compiler_list" = ""; then
27102     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
27103  fi
27104  am__universal=false
27105  case " $depcc " in #(
27106     *\ -arch\ *\ -arch\ *) am__universal=true ;;
27107     esac
27108
27109  for depmode in $am_compiler_list; do
27110    # Setup a source with many dependencies, because some compilers
27111    # like to wrap large dependency lists on column 80 (with \), and
27112    # we should not choose a depcomp mode which is confused by this.
27113    #
27114    # We need to recreate these files for each test, as the compiler may
27115    # overwrite some of them when testing with obscure command lines.
27116    # This happens at least with the AIX C compiler.
27117    : > sub/conftest.c
27118    for i in 1 2 3 4 5 6; do
27119      echo '#include "conftst'$i'.h"' >> sub/conftest.c
27120      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
27121      # Solaris 10 /bin/sh.
27122      echo '/* dummy */' > sub/conftst$i.h
27123    done
27124    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
27125
27126    # We check with '-c' and '-o' for the sake of the "dashmstdout"
27127    # mode.  It turns out that the SunPro C++ compiler does not properly
27128    # handle '-M -o', and we need to detect this.  Also, some Intel
27129    # versions had trouble with output in subdirs.
27130    am__obj=sub/conftest.${OBJEXT-o}
27131    am__minus_obj="-o $am__obj"
27132    case $depmode in
27133    gcc)
27134      # This depmode causes a compiler race in universal mode.
27135      test "$am__universal" = false || continue
27136      ;;
27137    nosideeffect)
27138      # After this tag, mechanisms are not by side-effect, so they'll
27139      # only be used when explicitly requested.
27140      if test "x$enable_dependency_tracking" = xyes; then
27141	continue
27142      else
27143	break
27144      fi
27145      ;;
27146    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
27147      # This compiler won't grok '-c -o', but also, the minuso test has
27148      # not run yet.  These depmodes are late enough in the game, and
27149      # so weak that their functioning should not be impacted.
27150      am__obj=conftest.${OBJEXT-o}
27151      am__minus_obj=
27152      ;;
27153    none) break ;;
27154    esac
27155    if depmode=$depmode \
27156       source=sub/conftest.c object=$am__obj \
27157       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
27158       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
27159         >/dev/null 2>conftest.err &&
27160       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
27161       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
27162       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
27163       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
27164      # icc doesn't choke on unknown options, it will just issue warnings
27165      # or remarks (even with -Werror).  So we grep stderr for any message
27166      # that says an option was ignored or not supported.
27167      # When given -MP, icc 7.0 and 7.1 complain thusly:
27168      #   icc: Command line warning: ignoring option '-M'; no argument required
27169      # The diagnosis changed in icc 8.0:
27170      #   icc: Command line remark: option '-MP' not supported
27171      if (grep 'ignoring option' conftest.err ||
27172          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
27173        am_cv_CXX_dependencies_compiler_type=$depmode
27174        break
27175      fi
27176    fi
27177  done
27178
27179  cd ..
27180  rm -rf conftest.dir
27181else
27182  am_cv_CXX_dependencies_compiler_type=none
27183fi
27184
27185fi
27186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
27187$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
27188CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
27189
27190 if
27191  test "x$enable_dependency_tracking" != xno \
27192  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
27193  am__fastdepCXX_TRUE=
27194  am__fastdepCXX_FALSE='#'
27195else
27196  am__fastdepCXX_TRUE='#'
27197  am__fastdepCXX_FALSE=
27198fi
27199
27200
27201
27202
27203func_stripname_cnf ()
27204{
27205  case ${2} in
27206  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27207  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27208  esac
27209} # func_stripname_cnf
27210
27211      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
27212    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
27213    (test "X$CXX" != "Xg++"))) ; then
27214  ac_ext=cpp
27215ac_cpp='$CXXCPP $CPPFLAGS'
27216ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27217ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27218ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
27220$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
27221if test -z "$CXXCPP"; then
27222  if ${ac_cv_prog_CXXCPP+:} false; then :
27223  $as_echo_n "(cached) " >&6
27224else
27225      # Double quotes because CXXCPP needs to be expanded
27226    for CXXCPP in "$CXX -E" "/lib/cpp"
27227    do
27228      ac_preproc_ok=false
27229for ac_cxx_preproc_warn_flag in '' yes
27230do
27231  # Use a header file that comes with gcc, so configuring glibc
27232  # with a fresh cross-compiler works.
27233  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27234  # <limits.h> exists even on freestanding compilers.
27235  # On the NeXT, cc -E runs the code through the compiler's parser,
27236  # not just through cpp. "Syntax error" is here to catch this case.
27237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27238/* end confdefs.h.  */
27239#ifdef __STDC__
27240# include <limits.h>
27241#else
27242# include <assert.h>
27243#endif
27244		     Syntax error
27245_ACEOF
27246if ac_fn_cxx_try_cpp "$LINENO"; then :
27247
27248else
27249  # Broken: fails on valid input.
27250continue
27251fi
27252rm -f conftest.err conftest.i conftest.$ac_ext
27253
27254  # OK, works on sane cases.  Now check whether nonexistent headers
27255  # can be detected and how.
27256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27257/* end confdefs.h.  */
27258#include <ac_nonexistent.h>
27259_ACEOF
27260if ac_fn_cxx_try_cpp "$LINENO"; then :
27261  # Broken: success on invalid input.
27262continue
27263else
27264  # Passes both tests.
27265ac_preproc_ok=:
27266break
27267fi
27268rm -f conftest.err conftest.i conftest.$ac_ext
27269
27270done
27271# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
27272rm -f conftest.i conftest.err conftest.$ac_ext
27273if $ac_preproc_ok; then :
27274  break
27275fi
27276
27277    done
27278    ac_cv_prog_CXXCPP=$CXXCPP
27279
27280fi
27281  CXXCPP=$ac_cv_prog_CXXCPP
27282else
27283  ac_cv_prog_CXXCPP=$CXXCPP
27284fi
27285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
27286$as_echo "$CXXCPP" >&6; }
27287ac_preproc_ok=false
27288for ac_cxx_preproc_warn_flag in '' yes
27289do
27290  # Use a header file that comes with gcc, so configuring glibc
27291  # with a fresh cross-compiler works.
27292  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27293  # <limits.h> exists even on freestanding compilers.
27294  # On the NeXT, cc -E runs the code through the compiler's parser,
27295  # not just through cpp. "Syntax error" is here to catch this case.
27296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27297/* end confdefs.h.  */
27298#ifdef __STDC__
27299# include <limits.h>
27300#else
27301# include <assert.h>
27302#endif
27303		     Syntax error
27304_ACEOF
27305if ac_fn_cxx_try_cpp "$LINENO"; then :
27306
27307else
27308  # Broken: fails on valid input.
27309continue
27310fi
27311rm -f conftest.err conftest.i conftest.$ac_ext
27312
27313  # OK, works on sane cases.  Now check whether nonexistent headers
27314  # can be detected and how.
27315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27316/* end confdefs.h.  */
27317#include <ac_nonexistent.h>
27318_ACEOF
27319if ac_fn_cxx_try_cpp "$LINENO"; then :
27320  # Broken: success on invalid input.
27321continue
27322else
27323  # Passes both tests.
27324ac_preproc_ok=:
27325break
27326fi
27327rm -f conftest.err conftest.i conftest.$ac_ext
27328
27329done
27330# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
27331rm -f conftest.i conftest.err conftest.$ac_ext
27332if $ac_preproc_ok; then :
27333
27334else
27335  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27337as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
27338See \`config.log' for more details" "$LINENO" 5; }
27339fi
27340
27341ac_ext=c
27342ac_cpp='$CPP $CPPFLAGS'
27343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27345ac_compiler_gnu=$ac_cv_c_compiler_gnu
27346
27347else
27348  _lt_caught_CXX_error=yes
27349fi
27350
27351ac_ext=cpp
27352ac_cpp='$CXXCPP $CPPFLAGS'
27353ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27354ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27355ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27356
27357archive_cmds_need_lc_CXX=no
27358allow_undefined_flag_CXX=
27359always_export_symbols_CXX=no
27360archive_expsym_cmds_CXX=
27361compiler_needs_object_CXX=no
27362export_dynamic_flag_spec_CXX=
27363hardcode_direct_CXX=no
27364hardcode_direct_absolute_CXX=no
27365hardcode_libdir_flag_spec_CXX=
27366hardcode_libdir_flag_spec_ld_CXX=
27367hardcode_libdir_separator_CXX=
27368hardcode_minus_L_CXX=no
27369hardcode_shlibpath_var_CXX=unsupported
27370hardcode_automatic_CXX=no
27371inherit_rpath_CXX=no
27372module_cmds_CXX=
27373module_expsym_cmds_CXX=
27374link_all_deplibs_CXX=unknown
27375old_archive_cmds_CXX=$old_archive_cmds
27376reload_flag_CXX=$reload_flag
27377reload_cmds_CXX=$reload_cmds
27378no_undefined_flag_CXX=
27379whole_archive_flag_spec_CXX=
27380enable_shared_with_static_runtimes_CXX=no
27381
27382# Source file extension for C++ test sources.
27383ac_ext=cpp
27384
27385# Object file extension for compiled C++ test sources.
27386objext=o
27387objext_CXX=$objext
27388
27389# No sense in running all these tests if we already determined that
27390# the CXX compiler isn't working.  Some variables (like enable_shared)
27391# are currently assumed to apply to all compilers on this platform,
27392# and will be corrupted by setting them based on a non-working compiler.
27393if test "$_lt_caught_CXX_error" != yes; then
27394  # Code to be used in simple compile tests
27395  lt_simple_compile_test_code="int some_variable = 0;"
27396
27397  # Code to be used in simple link tests
27398  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
27399
27400  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
27401
27402
27403
27404
27405
27406
27407# If no C compiler was specified, use CC.
27408LTCC=${LTCC-"$CC"}
27409
27410# If no C compiler flags were specified, use CFLAGS.
27411LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
27412
27413# Allow CC to be a program name with arguments.
27414compiler=$CC
27415
27416
27417  # save warnings/boilerplate of simple test code
27418  ac_outfile=conftest.$ac_objext
27419echo "$lt_simple_compile_test_code" >conftest.$ac_ext
27420eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27421_lt_compiler_boilerplate=`cat conftest.err`
27422$RM conftest*
27423
27424  ac_outfile=conftest.$ac_objext
27425echo "$lt_simple_link_test_code" >conftest.$ac_ext
27426eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27427_lt_linker_boilerplate=`cat conftest.err`
27428$RM -r conftest*
27429
27430
27431  # Allow CC to be a program name with arguments.
27432  lt_save_CC=$CC
27433  lt_save_CFLAGS=$CFLAGS
27434  lt_save_LD=$LD
27435  lt_save_GCC=$GCC
27436  GCC=$GXX
27437  lt_save_with_gnu_ld=$with_gnu_ld
27438  lt_save_path_LD=$lt_cv_path_LD
27439  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
27440    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
27441  else
27442    $as_unset lt_cv_prog_gnu_ld
27443  fi
27444  if test -n "${lt_cv_path_LDCXX+set}"; then
27445    lt_cv_path_LD=$lt_cv_path_LDCXX
27446  else
27447    $as_unset lt_cv_path_LD
27448  fi
27449  test -z "${LDCXX+set}" || LD=$LDCXX
27450  CC=${CXX-"c++"}
27451  CFLAGS=$CXXFLAGS
27452  compiler=$CC
27453  compiler_CXX=$CC
27454  for cc_temp in $compiler""; do
27455  case $cc_temp in
27456    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27457    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27458    \-*) ;;
27459    *) break;;
27460  esac
27461done
27462cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
27463
27464
27465  if test -n "$compiler"; then
27466    # We don't want -fno-exception when compiling C++ code, so set the
27467    # no_builtin_flag separately
27468    if test "$GXX" = yes; then
27469      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
27470    else
27471      lt_prog_compiler_no_builtin_flag_CXX=
27472    fi
27473
27474    if test "$GXX" = yes; then
27475      # Set up default GNU C++ configuration
27476
27477
27478
27479# Check whether --with-gnu-ld was given.
27480if test "${with_gnu_ld+set}" = set; then :
27481  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
27482else
27483  with_gnu_ld=no
27484fi
27485
27486ac_prog=ld
27487if test "$GCC" = yes; then
27488  # Check if gcc -print-prog-name=ld gives a path.
27489  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
27490$as_echo_n "checking for ld used by $CC... " >&6; }
27491  case $host in
27492  *-*-mingw*)
27493    # gcc leaves a trailing carriage return which upsets mingw
27494    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
27495  *)
27496    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
27497  esac
27498  case $ac_prog in
27499    # Accept absolute paths.
27500    [\\/]* | ?:[\\/]*)
27501      re_direlt='/[^/][^/]*/\.\./'
27502      # Canonicalize the pathname of ld
27503      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
27504      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
27505	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
27506      done
27507      test -z "$LD" && LD="$ac_prog"
27508      ;;
27509  "")
27510    # If it fails, then pretend we aren't using GCC.
27511    ac_prog=ld
27512    ;;
27513  *)
27514    # If it is relative, then search for the first ld in PATH.
27515    with_gnu_ld=unknown
27516    ;;
27517  esac
27518elif test "$with_gnu_ld" = yes; then
27519  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
27520$as_echo_n "checking for GNU ld... " >&6; }
27521else
27522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
27523$as_echo_n "checking for non-GNU ld... " >&6; }
27524fi
27525if ${lt_cv_path_LD+:} false; then :
27526  $as_echo_n "(cached) " >&6
27527else
27528  if test -z "$LD"; then
27529  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
27530  for ac_dir in $PATH; do
27531    IFS="$lt_save_ifs"
27532    test -z "$ac_dir" && ac_dir=.
27533    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
27534      lt_cv_path_LD="$ac_dir/$ac_prog"
27535      # Check to see if the program is GNU ld.  I'd rather use --version,
27536      # but apparently some variants of GNU ld only accept -v.
27537      # Break only if it was the GNU/non-GNU ld that we prefer.
27538      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
27539      *GNU* | *'with BFD'*)
27540	test "$with_gnu_ld" != no && break
27541	;;
27542      *)
27543	test "$with_gnu_ld" != yes && break
27544	;;
27545      esac
27546    fi
27547  done
27548  IFS="$lt_save_ifs"
27549else
27550  lt_cv_path_LD="$LD" # Let the user override the test with a path.
27551fi
27552fi
27553
27554LD="$lt_cv_path_LD"
27555if test -n "$LD"; then
27556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
27557$as_echo "$LD" >&6; }
27558else
27559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27560$as_echo "no" >&6; }
27561fi
27562test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
27563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
27564$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
27565if ${lt_cv_prog_gnu_ld+:} false; then :
27566  $as_echo_n "(cached) " >&6
27567else
27568  # I'd rather use --version here, but apparently some GNU lds only accept -v.
27569case `$LD -v 2>&1 </dev/null` in
27570*GNU* | *'with BFD'*)
27571  lt_cv_prog_gnu_ld=yes
27572  ;;
27573*)
27574  lt_cv_prog_gnu_ld=no
27575  ;;
27576esac
27577fi
27578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
27579$as_echo "$lt_cv_prog_gnu_ld" >&6; }
27580with_gnu_ld=$lt_cv_prog_gnu_ld
27581
27582
27583
27584
27585
27586
27587
27588      # Check if GNU C++ uses GNU ld as the underlying linker, since the
27589      # archiving commands below assume that GNU ld is being used.
27590      if test "$with_gnu_ld" = yes; then
27591        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
27592        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'
27593
27594        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
27595        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
27596
27597        # If archive_cmds runs LD, not CC, wlarc should be empty
27598        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
27599        #     investigate it a little bit more. (MM)
27600        wlarc='${wl}'
27601
27602        # ancient GNU ld didn't support --whole-archive et. al.
27603        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
27604	  $GREP 'no-whole-archive' > /dev/null; then
27605          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
27606        else
27607          whole_archive_flag_spec_CXX=
27608        fi
27609      else
27610        with_gnu_ld=no
27611        wlarc=
27612
27613        # A generic and very simple default shared library creation
27614        # command for GNU C++ for the case where it uses the native
27615        # linker, instead of GNU ld.  If possible, this setting should
27616        # overridden to take advantage of the native linker features on
27617        # the platform it is being used on.
27618        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
27619      fi
27620
27621      # Commands to make compiler produce verbose output that lists
27622      # what "hidden" libraries, object files and flags are used when
27623      # linking a shared library.
27624      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
27625
27626    else
27627      GXX=no
27628      with_gnu_ld=no
27629      wlarc=
27630    fi
27631
27632    # PORTME: fill in a description of your system's C++ link characteristics
27633    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
27634$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
27635    ld_shlibs_CXX=yes
27636    case $host_os in
27637      aix3*)
27638        # FIXME: insert proper C++ library support
27639        ld_shlibs_CXX=no
27640        ;;
27641      aix[4-9]*)
27642        if test "$host_cpu" = ia64; then
27643          # On IA64, the linker does run time linking by default, so we don't
27644          # have to do anything special.
27645          aix_use_runtimelinking=no
27646          exp_sym_flag='-Bexport'
27647          no_entry_flag=""
27648        else
27649          aix_use_runtimelinking=no
27650
27651          # Test if we are trying to use run time linking or normal
27652          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
27653          # need to do runtime linking.
27654          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
27655	    for ld_flag in $LDFLAGS; do
27656	      case $ld_flag in
27657	      *-brtl*)
27658	        aix_use_runtimelinking=yes
27659	        break
27660	        ;;
27661	      esac
27662	    done
27663	    ;;
27664          esac
27665
27666          exp_sym_flag='-bexport'
27667          no_entry_flag='-bnoentry'
27668        fi
27669
27670        # When large executables or shared objects are built, AIX ld can
27671        # have problems creating the table of contents.  If linking a library
27672        # or program results in "error TOC overflow" add -mminimal-toc to
27673        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
27674        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
27675
27676        archive_cmds_CXX=''
27677        hardcode_direct_CXX=yes
27678        hardcode_direct_absolute_CXX=yes
27679        hardcode_libdir_separator_CXX=':'
27680        link_all_deplibs_CXX=yes
27681        file_list_spec_CXX='${wl}-f,'
27682
27683        if test "$GXX" = yes; then
27684          case $host_os in aix4.[012]|aix4.[012].*)
27685          # We only want to do this on AIX 4.2 and lower, the check
27686          # below for broken collect2 doesn't work under 4.3+
27687	  collect2name=`${CC} -print-prog-name=collect2`
27688	  if test -f "$collect2name" &&
27689	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
27690	  then
27691	    # We have reworked collect2
27692	    :
27693	  else
27694	    # We have old collect2
27695	    hardcode_direct_CXX=unsupported
27696	    # It fails to find uninstalled libraries when the uninstalled
27697	    # path is not listed in the libpath.  Setting hardcode_minus_L
27698	    # to unsupported forces relinking
27699	    hardcode_minus_L_CXX=yes
27700	    hardcode_libdir_flag_spec_CXX='-L$libdir'
27701	    hardcode_libdir_separator_CXX=
27702	  fi
27703          esac
27704          shared_flag='-shared'
27705	  if test "$aix_use_runtimelinking" = yes; then
27706	    shared_flag="$shared_flag "'${wl}-G'
27707	  fi
27708        else
27709          # not using gcc
27710          if test "$host_cpu" = ia64; then
27711	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
27712	  # chokes on -Wl,-G. The following line is correct:
27713	  shared_flag='-G'
27714          else
27715	    if test "$aix_use_runtimelinking" = yes; then
27716	      shared_flag='${wl}-G'
27717	    else
27718	      shared_flag='${wl}-bM:SRE'
27719	    fi
27720          fi
27721        fi
27722
27723        export_dynamic_flag_spec_CXX='${wl}-bexpall'
27724        # It seems that -bexpall does not export symbols beginning with
27725        # underscore (_), so it is better to generate a list of symbols to
27726	# export.
27727        always_export_symbols_CXX=yes
27728        if test "$aix_use_runtimelinking" = yes; then
27729          # Warning - without using the other runtime loading flags (-brtl),
27730          # -berok will link without error, but may produce a broken library.
27731          allow_undefined_flag_CXX='-berok'
27732          # Determine the default libpath from the value encoded in an empty
27733          # executable.
27734          if test "${lt_cv_aix_libpath+set}" = set; then
27735  aix_libpath=$lt_cv_aix_libpath
27736else
27737  if ${lt_cv_aix_libpath__CXX+:} false; then :
27738  $as_echo_n "(cached) " >&6
27739else
27740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27741/* end confdefs.h.  */
27742
27743int
27744main ()
27745{
27746
27747  ;
27748  return 0;
27749}
27750_ACEOF
27751if ac_fn_cxx_try_link "$LINENO"; then :
27752
27753  lt_aix_libpath_sed='
27754      /Import File Strings/,/^$/ {
27755	  /^0/ {
27756	      s/^0  *\([^ ]*\) *$/\1/
27757	      p
27758	  }
27759      }'
27760  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
27761  # Check for a 64-bit object if we didn't find anything.
27762  if test -z "$lt_cv_aix_libpath__CXX"; then
27763    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
27764  fi
27765fi
27766rm -f core conftest.err conftest.$ac_objext \
27767    conftest$ac_exeext conftest.$ac_ext
27768  if test -z "$lt_cv_aix_libpath__CXX"; then
27769    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
27770  fi
27771
27772fi
27773
27774  aix_libpath=$lt_cv_aix_libpath__CXX
27775fi
27776
27777          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
27778
27779          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"
27780        else
27781          if test "$host_cpu" = ia64; then
27782	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
27783	    allow_undefined_flag_CXX="-z nodefs"
27784	    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"
27785          else
27786	    # Determine the default libpath from the value encoded in an
27787	    # empty executable.
27788	    if test "${lt_cv_aix_libpath+set}" = set; then
27789  aix_libpath=$lt_cv_aix_libpath
27790else
27791  if ${lt_cv_aix_libpath__CXX+:} false; then :
27792  $as_echo_n "(cached) " >&6
27793else
27794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27795/* end confdefs.h.  */
27796
27797int
27798main ()
27799{
27800
27801  ;
27802  return 0;
27803}
27804_ACEOF
27805if ac_fn_cxx_try_link "$LINENO"; then :
27806
27807  lt_aix_libpath_sed='
27808      /Import File Strings/,/^$/ {
27809	  /^0/ {
27810	      s/^0  *\([^ ]*\) *$/\1/
27811	      p
27812	  }
27813      }'
27814  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
27815  # Check for a 64-bit object if we didn't find anything.
27816  if test -z "$lt_cv_aix_libpath__CXX"; then
27817    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
27818  fi
27819fi
27820rm -f core conftest.err conftest.$ac_objext \
27821    conftest$ac_exeext conftest.$ac_ext
27822  if test -z "$lt_cv_aix_libpath__CXX"; then
27823    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
27824  fi
27825
27826fi
27827
27828  aix_libpath=$lt_cv_aix_libpath__CXX
27829fi
27830
27831	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
27832	    # Warning - without using the other run time loading flags,
27833	    # -berok will link without error, but may produce a broken library.
27834	    no_undefined_flag_CXX=' ${wl}-bernotok'
27835	    allow_undefined_flag_CXX=' ${wl}-berok'
27836	    if test "$with_gnu_ld" = yes; then
27837	      # We only use this code for GNU lds that support --whole-archive.
27838	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
27839	    else
27840	      # Exported symbols can be pulled into shared objects from archives
27841	      whole_archive_flag_spec_CXX='$convenience'
27842	    fi
27843	    archive_cmds_need_lc_CXX=yes
27844	    # This is similar to how AIX traditionally builds its shared
27845	    # libraries.
27846	    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'
27847          fi
27848        fi
27849        ;;
27850
27851      beos*)
27852	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
27853	  allow_undefined_flag_CXX=unsupported
27854	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
27855	  # support --undefined.  This deserves some investigation.  FIXME
27856	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27857	else
27858	  ld_shlibs_CXX=no
27859	fi
27860	;;
27861
27862      chorus*)
27863        case $cc_basename in
27864          *)
27865	  # FIXME: insert proper C++ library support
27866	  ld_shlibs_CXX=no
27867	  ;;
27868        esac
27869        ;;
27870
27871      cygwin* | mingw* | pw32* | cegcc*)
27872	case $GXX,$cc_basename in
27873	,cl* | no,cl*)
27874	  # Native MSVC
27875	  # hardcode_libdir_flag_spec is actually meaningless, as there is
27876	  # no search path for DLLs.
27877	  hardcode_libdir_flag_spec_CXX=' '
27878	  allow_undefined_flag_CXX=unsupported
27879	  always_export_symbols_CXX=yes
27880	  file_list_spec_CXX='@'
27881	  # Tell ltmain to make .lib files, not .a files.
27882	  libext=lib
27883	  # Tell ltmain to make .dll files, not .so files.
27884	  shrext_cmds=".dll"
27885	  # FIXME: Setting linknames here is a bad hack.
27886	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
27887	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
27888	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
27889	    else
27890	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
27891	    fi~
27892	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
27893	    linknames='
27894	  # The linker will not automatically build a static lib if we build a DLL.
27895	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
27896	  enable_shared_with_static_runtimes_CXX=yes
27897	  # Don't use ranlib
27898	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
27899	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
27900	    lt_tool_outputfile="@TOOL_OUTPUT@"~
27901	    case $lt_outputfile in
27902	      *.exe|*.EXE) ;;
27903	      *)
27904		lt_outputfile="$lt_outputfile.exe"
27905		lt_tool_outputfile="$lt_tool_outputfile.exe"
27906		;;
27907	    esac~
27908	    func_to_tool_file "$lt_outputfile"~
27909	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
27910	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
27911	      $RM "$lt_outputfile.manifest";
27912	    fi'
27913	  ;;
27914	*)
27915	  # g++
27916	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
27917	  # as there is no search path for DLLs.
27918	  hardcode_libdir_flag_spec_CXX='-L$libdir'
27919	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
27920	  allow_undefined_flag_CXX=unsupported
27921	  always_export_symbols_CXX=no
27922	  enable_shared_with_static_runtimes_CXX=yes
27923
27924	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
27925	    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'
27926	    # If the export-symbols file already is a .def file (1st line
27927	    # is EXPORTS), use it as is; otherwise, prepend...
27928	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
27929	      cp $export_symbols $output_objdir/$soname.def;
27930	    else
27931	      echo EXPORTS > $output_objdir/$soname.def;
27932	      cat $export_symbols >> $output_objdir/$soname.def;
27933	    fi~
27934	    $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'
27935	  else
27936	    ld_shlibs_CXX=no
27937	  fi
27938	  ;;
27939	esac
27940	;;
27941      darwin* | rhapsody*)
27942
27943
27944  archive_cmds_need_lc_CXX=no
27945  hardcode_direct_CXX=no
27946  hardcode_automatic_CXX=yes
27947  hardcode_shlibpath_var_CXX=unsupported
27948  if test "$lt_cv_ld_force_load" = "yes"; then
27949    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\"`'
27950  else
27951    whole_archive_flag_spec_CXX=''
27952  fi
27953  link_all_deplibs_CXX=yes
27954  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
27955  case $cc_basename in
27956     ifort*) _lt_dar_can_shared=yes ;;
27957     *) _lt_dar_can_shared=$GCC ;;
27958  esac
27959  if test "$_lt_dar_can_shared" = "yes"; then
27960    output_verbose_link_cmd=func_echo_all
27961    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}"
27962    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
27963    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}"
27964    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}"
27965       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
27966      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}"
27967      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}"
27968    fi
27969
27970  else
27971  ld_shlibs_CXX=no
27972  fi
27973
27974	;;
27975
27976      dgux*)
27977        case $cc_basename in
27978          ec++*)
27979	    # FIXME: insert proper C++ library support
27980	    ld_shlibs_CXX=no
27981	    ;;
27982          ghcx*)
27983	    # Green Hills C++ Compiler
27984	    # FIXME: insert proper C++ library support
27985	    ld_shlibs_CXX=no
27986	    ;;
27987          *)
27988	    # FIXME: insert proper C++ library support
27989	    ld_shlibs_CXX=no
27990	    ;;
27991        esac
27992        ;;
27993
27994      freebsd[12]*)
27995        # C++ shared libraries reported to be fairly broken before
27996	# switch to ELF
27997        ld_shlibs_CXX=no
27998        ;;
27999
28000      freebsd-elf*)
28001        archive_cmds_need_lc_CXX=no
28002        ;;
28003
28004      freebsd* | dragonfly*)
28005        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
28006        # conventions
28007        ld_shlibs_CXX=yes
28008        ;;
28009
28010      gnu*)
28011        ;;
28012
28013      haiku*)
28014        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28015        link_all_deplibs_CXX=yes
28016        ;;
28017
28018      hpux9*)
28019        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
28020        hardcode_libdir_separator_CXX=:
28021        export_dynamic_flag_spec_CXX='${wl}-E'
28022        hardcode_direct_CXX=yes
28023        hardcode_minus_L_CXX=yes # Not in the search PATH,
28024				             # but as the default
28025				             # location of the library.
28026
28027        case $cc_basename in
28028          CC*)
28029            # FIXME: insert proper C++ library support
28030            ld_shlibs_CXX=no
28031            ;;
28032          aCC*)
28033            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'
28034            # Commands to make compiler produce verbose output that lists
28035            # what "hidden" libraries, object files and flags are used when
28036            # linking a shared library.
28037            #
28038            # There doesn't appear to be a way to prevent this compiler from
28039            # explicitly linking system object files so we need to strip them
28040            # from the output so that they don't get included in the library
28041            # dependencies.
28042            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"'
28043            ;;
28044          *)
28045            if test "$GXX" = yes; then
28046              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'
28047            else
28048              # FIXME: insert proper C++ library support
28049              ld_shlibs_CXX=no
28050            fi
28051            ;;
28052        esac
28053        ;;
28054
28055      hpux10*|hpux11*)
28056        if test $with_gnu_ld = no; then
28057	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
28058	  hardcode_libdir_separator_CXX=:
28059
28060          case $host_cpu in
28061            hppa*64*|ia64*)
28062              ;;
28063            *)
28064	      export_dynamic_flag_spec_CXX='${wl}-E'
28065              ;;
28066          esac
28067        fi
28068        case $host_cpu in
28069          hppa*64*|ia64*)
28070            hardcode_direct_CXX=no
28071            hardcode_shlibpath_var_CXX=no
28072            ;;
28073          *)
28074            hardcode_direct_CXX=yes
28075            hardcode_direct_absolute_CXX=yes
28076            hardcode_minus_L_CXX=yes # Not in the search PATH,
28077					         # but as the default
28078					         # location of the library.
28079            ;;
28080        esac
28081
28082        case $cc_basename in
28083          CC*)
28084	    # FIXME: insert proper C++ library support
28085	    ld_shlibs_CXX=no
28086	    ;;
28087          aCC*)
28088	    case $host_cpu in
28089	      hppa*64*)
28090	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28091	        ;;
28092	      ia64*)
28093	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28094	        ;;
28095	      *)
28096	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28097	        ;;
28098	    esac
28099	    # Commands to make compiler produce verbose output that lists
28100	    # what "hidden" libraries, object files and flags are used when
28101	    # linking a shared library.
28102	    #
28103	    # There doesn't appear to be a way to prevent this compiler from
28104	    # explicitly linking system object files so we need to strip them
28105	    # from the output so that they don't get included in the library
28106	    # dependencies.
28107	    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"'
28108	    ;;
28109          *)
28110	    if test "$GXX" = yes; then
28111	      if test $with_gnu_ld = no; then
28112	        case $host_cpu in
28113	          hppa*64*)
28114	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28115	            ;;
28116	          ia64*)
28117	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28118	            ;;
28119	          *)
28120	            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'
28121	            ;;
28122	        esac
28123	      fi
28124	    else
28125	      # FIXME: insert proper C++ library support
28126	      ld_shlibs_CXX=no
28127	    fi
28128	    ;;
28129        esac
28130        ;;
28131
28132      interix[3-9]*)
28133	hardcode_direct_CXX=no
28134	hardcode_shlibpath_var_CXX=no
28135	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
28136	export_dynamic_flag_spec_CXX='${wl}-E'
28137	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
28138	# Instead, shared libraries are loaded at an image base (0x10000000 by
28139	# default) and relocated if they conflict, which is a slow very memory
28140	# consuming and fragmenting process.  To avoid this, we pick a random,
28141	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
28142	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
28143	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'
28144	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'
28145	;;
28146      irix5* | irix6*)
28147        case $cc_basename in
28148          CC*)
28149	    # SGI C++
28150	    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'
28151
28152	    # Archives containing C++ object files must be created using
28153	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
28154	    # necessary to make sure instantiated templates are included
28155	    # in the archive.
28156	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
28157	    ;;
28158          *)
28159	    if test "$GXX" = yes; then
28160	      if test "$with_gnu_ld" = no; then
28161	        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'
28162	      else
28163	        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'
28164	      fi
28165	    fi
28166	    link_all_deplibs_CXX=yes
28167	    ;;
28168        esac
28169        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
28170        hardcode_libdir_separator_CXX=:
28171        inherit_rpath_CXX=yes
28172        ;;
28173
28174      linux* | k*bsd*-gnu | kopensolaris*-gnu)
28175        case $cc_basename in
28176          KCC*)
28177	    # Kuck and Associates, Inc. (KAI) C++ Compiler
28178
28179	    # KCC will only create a shared library if the output file
28180	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
28181	    # to its proper name (with version) after linking.
28182	    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'
28183	    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'
28184	    # Commands to make compiler produce verbose output that lists
28185	    # what "hidden" libraries, object files and flags are used when
28186	    # linking a shared library.
28187	    #
28188	    # There doesn't appear to be a way to prevent this compiler from
28189	    # explicitly linking system object files so we need to strip them
28190	    # from the output so that they don't get included in the library
28191	    # dependencies.
28192	    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"'
28193
28194	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
28195	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
28196
28197	    # Archives containing C++ object files must be created using
28198	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
28199	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
28200	    ;;
28201	  icpc* | ecpc* )
28202	    # Intel C++
28203	    with_gnu_ld=yes
28204	    # version 8.0 and above of icpc choke on multiply defined symbols
28205	    # if we add $predep_objects and $postdep_objects, however 7.1 and
28206	    # earlier do not add the objects themselves.
28207	    case `$CC -V 2>&1` in
28208	      *"Version 7."*)
28209	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
28210		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'
28211		;;
28212	      *)  # Version 8.0 or newer
28213	        tmp_idyn=
28214	        case $host_cpu in
28215		  ia64*) tmp_idyn=' -i_dynamic';;
28216		esac
28217	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28218		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'
28219		;;
28220	    esac
28221	    archive_cmds_need_lc_CXX=no
28222	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
28223	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
28224	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
28225	    ;;
28226          pgCC* | pgcpp*)
28227            # Portland Group C++ compiler
28228	    case `$CC -V` in
28229	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
28230	      prelink_cmds_CXX='tpldir=Template.dir~
28231		rm -rf $tpldir~
28232		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
28233		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
28234	      old_archive_cmds_CXX='tpldir=Template.dir~
28235		rm -rf $tpldir~
28236		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
28237		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
28238		$RANLIB $oldlib'
28239	      archive_cmds_CXX='tpldir=Template.dir~
28240		rm -rf $tpldir~
28241		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
28242		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
28243	      archive_expsym_cmds_CXX='tpldir=Template.dir~
28244		rm -rf $tpldir~
28245		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
28246		$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'
28247	      ;;
28248	    *) # Version 6 and above use weak symbols
28249	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
28250	      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'
28251	      ;;
28252	    esac
28253
28254	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
28255	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
28256	    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'
28257            ;;
28258	  cxx*)
28259	    # Compaq C++
28260	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
28261	    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'
28262
28263	    runpath_var=LD_RUN_PATH
28264	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
28265	    hardcode_libdir_separator_CXX=:
28266
28267	    # Commands to make compiler produce verbose output that lists
28268	    # what "hidden" libraries, object files and flags are used when
28269	    # linking a shared library.
28270	    #
28271	    # There doesn't appear to be a way to prevent this compiler from
28272	    # explicitly linking system object files so we need to strip them
28273	    # from the output so that they don't get included in the library
28274	    # dependencies.
28275	    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'
28276	    ;;
28277	  xl* | mpixl* | bgxl*)
28278	    # IBM XL 8.0 on PPC, with GNU ld
28279	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
28280	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
28281	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28282	    if test "x$supports_anon_versioning" = xyes; then
28283	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
28284		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
28285		echo "local: *; };" >> $output_objdir/$libname.ver~
28286		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
28287	    fi
28288	    ;;
28289	  *)
28290	    case `$CC -V 2>&1 | sed 5q` in
28291	    *Sun\ C*)
28292	      # Sun C++ 5.9
28293	      no_undefined_flag_CXX=' -zdefs'
28294	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28295	      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'
28296	      hardcode_libdir_flag_spec_CXX='-R$libdir'
28297	      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'
28298	      compiler_needs_object_CXX=yes
28299
28300	      # Not sure whether something based on
28301	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
28302	      # would be better.
28303	      output_verbose_link_cmd='func_echo_all'
28304
28305	      # Archives containing C++ object files must be created using
28306	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
28307	      # necessary to make sure instantiated templates are included
28308	      # in the archive.
28309	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
28310	      ;;
28311	    esac
28312	    ;;
28313	esac
28314	;;
28315
28316      lynxos*)
28317        # FIXME: insert proper C++ library support
28318	ld_shlibs_CXX=no
28319	;;
28320
28321      m88k*)
28322        # FIXME: insert proper C++ library support
28323        ld_shlibs_CXX=no
28324	;;
28325
28326      mvs*)
28327        case $cc_basename in
28328          cxx*)
28329	    # FIXME: insert proper C++ library support
28330	    ld_shlibs_CXX=no
28331	    ;;
28332	  *)
28333	    # FIXME: insert proper C++ library support
28334	    ld_shlibs_CXX=no
28335	    ;;
28336	esac
28337	;;
28338
28339      netbsd*)
28340        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
28341	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
28342	  wlarc=
28343	  hardcode_libdir_flag_spec_CXX='-R$libdir'
28344	  hardcode_direct_CXX=yes
28345	  hardcode_shlibpath_var_CXX=no
28346	fi
28347	# Workaround some broken pre-1.5 toolchains
28348	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
28349	;;
28350
28351      *nto* | *qnx*)
28352        ld_shlibs_CXX=yes
28353	;;
28354
28355      openbsd2*)
28356        # C++ shared libraries are fairly broken
28357	ld_shlibs_CXX=no
28358	;;
28359
28360      openbsd*)
28361	if test -f /usr/libexec/ld.so; then
28362	  hardcode_direct_CXX=yes
28363	  hardcode_shlibpath_var_CXX=no
28364	  hardcode_direct_absolute_CXX=yes
28365	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
28366	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
28367	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
28368	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
28369	    export_dynamic_flag_spec_CXX='${wl}-E'
28370	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
28371	  fi
28372	  output_verbose_link_cmd=func_echo_all
28373	else
28374	  ld_shlibs_CXX=no
28375	fi
28376	;;
28377
28378      osf3* | osf4* | osf5*)
28379        case $cc_basename in
28380          KCC*)
28381	    # Kuck and Associates, Inc. (KAI) C++ Compiler
28382
28383	    # KCC will only create a shared library if the output file
28384	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
28385	    # to its proper name (with version) after linking.
28386	    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'
28387
28388	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
28389	    hardcode_libdir_separator_CXX=:
28390
28391	    # Archives containing C++ object files must be created using
28392	    # the KAI C++ compiler.
28393	    case $host in
28394	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
28395	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
28396	    esac
28397	    ;;
28398          RCC*)
28399	    # Rational C++ 2.4.1
28400	    # FIXME: insert proper C++ library support
28401	    ld_shlibs_CXX=no
28402	    ;;
28403          cxx*)
28404	    case $host in
28405	      osf3*)
28406	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
28407	        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'
28408	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
28409		;;
28410	      *)
28411	        allow_undefined_flag_CXX=' -expect_unresolved \*'
28412	        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'
28413	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
28414	          echo "-hidden">> $lib.exp~
28415	          $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~
28416	          $RM $lib.exp'
28417	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
28418		;;
28419	    esac
28420
28421	    hardcode_libdir_separator_CXX=:
28422
28423	    # Commands to make compiler produce verbose output that lists
28424	    # what "hidden" libraries, object files and flags are used when
28425	    # linking a shared library.
28426	    #
28427	    # There doesn't appear to be a way to prevent this compiler from
28428	    # explicitly linking system object files so we need to strip them
28429	    # from the output so that they don't get included in the library
28430	    # dependencies.
28431	    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"'
28432	    ;;
28433	  *)
28434	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
28435	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
28436	      case $host in
28437	        osf3*)
28438	          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'
28439		  ;;
28440	        *)
28441	          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'
28442		  ;;
28443	      esac
28444
28445	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
28446	      hardcode_libdir_separator_CXX=:
28447
28448	      # Commands to make compiler produce verbose output that lists
28449	      # what "hidden" libraries, object files and flags are used when
28450	      # linking a shared library.
28451	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
28452
28453	    else
28454	      # FIXME: insert proper C++ library support
28455	      ld_shlibs_CXX=no
28456	    fi
28457	    ;;
28458        esac
28459        ;;
28460
28461      psos*)
28462        # FIXME: insert proper C++ library support
28463        ld_shlibs_CXX=no
28464        ;;
28465
28466      sunos4*)
28467        case $cc_basename in
28468          CC*)
28469	    # Sun C++ 4.x
28470	    # FIXME: insert proper C++ library support
28471	    ld_shlibs_CXX=no
28472	    ;;
28473          lcc*)
28474	    # Lucid
28475	    # FIXME: insert proper C++ library support
28476	    ld_shlibs_CXX=no
28477	    ;;
28478          *)
28479	    # FIXME: insert proper C++ library support
28480	    ld_shlibs_CXX=no
28481	    ;;
28482        esac
28483        ;;
28484
28485      solaris*)
28486        case $cc_basename in
28487          CC* | sunCC*)
28488	    # Sun C++ 4.2, 5.x and Centerline C++
28489            archive_cmds_need_lc_CXX=yes
28490	    no_undefined_flag_CXX=' -zdefs'
28491	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28492	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
28493	      $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'
28494
28495	    hardcode_libdir_flag_spec_CXX='-R$libdir'
28496	    hardcode_shlibpath_var_CXX=no
28497	    case $host_os in
28498	      solaris2.[0-5] | solaris2.[0-5].*) ;;
28499	      *)
28500		# The compiler driver will combine and reorder linker options,
28501		# but understands `-z linker_flag'.
28502	        # Supported since Solaris 2.6 (maybe 2.5.1?)
28503		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
28504	        ;;
28505	    esac
28506	    link_all_deplibs_CXX=yes
28507
28508	    output_verbose_link_cmd='func_echo_all'
28509
28510	    # Archives containing C++ object files must be created using
28511	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
28512	    # necessary to make sure instantiated templates are included
28513	    # in the archive.
28514	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
28515	    ;;
28516          gcx*)
28517	    # Green Hills C++ Compiler
28518	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
28519
28520	    # The C++ compiler must be used to create the archive.
28521	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
28522	    ;;
28523          *)
28524	    # GNU C++ compiler with Solaris linker
28525	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
28526	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
28527	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
28528	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
28529	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
28530		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
28531
28532	        # Commands to make compiler produce verbose output that lists
28533	        # what "hidden" libraries, object files and flags are used when
28534	        # linking a shared library.
28535	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
28536	      else
28537	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
28538	        # platform.
28539	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
28540	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
28541		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
28542
28543	        # Commands to make compiler produce verbose output that lists
28544	        # what "hidden" libraries, object files and flags are used when
28545	        # linking a shared library.
28546	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
28547	      fi
28548
28549	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
28550	      case $host_os in
28551		solaris2.[0-5] | solaris2.[0-5].*) ;;
28552		*)
28553		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
28554		  ;;
28555	      esac
28556	    fi
28557	    ;;
28558        esac
28559        ;;
28560
28561    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
28562      no_undefined_flag_CXX='${wl}-z,text'
28563      archive_cmds_need_lc_CXX=no
28564      hardcode_shlibpath_var_CXX=no
28565      runpath_var='LD_RUN_PATH'
28566
28567      case $cc_basename in
28568        CC*)
28569	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28570	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28571	  ;;
28572	*)
28573	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28574	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28575	  ;;
28576      esac
28577      ;;
28578
28579      sysv5* | sco3.2v5* | sco5v6*)
28580	# Note: We can NOT use -z defs as we might desire, because we do not
28581	# link with -lc, and that would cause any symbols used from libc to
28582	# always be unresolved, which means just about no library would
28583	# ever link correctly.  If we're not using GNU ld we use -z text
28584	# though, which does catch some bad symbols but isn't as heavy-handed
28585	# as -z defs.
28586	no_undefined_flag_CXX='${wl}-z,text'
28587	allow_undefined_flag_CXX='${wl}-z,nodefs'
28588	archive_cmds_need_lc_CXX=no
28589	hardcode_shlibpath_var_CXX=no
28590	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
28591	hardcode_libdir_separator_CXX=':'
28592	link_all_deplibs_CXX=yes
28593	export_dynamic_flag_spec_CXX='${wl}-Bexport'
28594	runpath_var='LD_RUN_PATH'
28595
28596	case $cc_basename in
28597          CC*)
28598	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28599	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28600	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
28601	      '"$old_archive_cmds_CXX"
28602	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
28603	      '"$reload_cmds_CXX"
28604	    ;;
28605	  *)
28606	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28607	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28608	    ;;
28609	esac
28610      ;;
28611
28612      tandem*)
28613        case $cc_basename in
28614          NCC*)
28615	    # NonStop-UX NCC 3.20
28616	    # FIXME: insert proper C++ library support
28617	    ld_shlibs_CXX=no
28618	    ;;
28619          *)
28620	    # FIXME: insert proper C++ library support
28621	    ld_shlibs_CXX=no
28622	    ;;
28623        esac
28624        ;;
28625
28626      vxworks*)
28627        # FIXME: insert proper C++ library support
28628        ld_shlibs_CXX=no
28629        ;;
28630
28631      *)
28632        # FIXME: insert proper C++ library support
28633        ld_shlibs_CXX=no
28634        ;;
28635    esac
28636
28637    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
28638$as_echo "$ld_shlibs_CXX" >&6; }
28639    test "$ld_shlibs_CXX" = no && can_build_shared=no
28640
28641    GCC_CXX="$GXX"
28642    LD_CXX="$LD"
28643
28644    ## CAVEAT EMPTOR:
28645    ## There is no encapsulation within the following macros, do not change
28646    ## the running order or otherwise move them around unless you know exactly
28647    ## what you are doing...
28648    # Dependencies to place before and after the object being linked:
28649predep_objects_CXX=
28650postdep_objects_CXX=
28651predeps_CXX=
28652postdeps_CXX=
28653compiler_lib_search_path_CXX=
28654
28655cat > conftest.$ac_ext <<_LT_EOF
28656class Foo
28657{
28658public:
28659  Foo (void) { a = 0; }
28660private:
28661  int a;
28662};
28663_LT_EOF
28664
28665
28666_lt_libdeps_save_CFLAGS=$CFLAGS
28667case "$CC $CFLAGS " in #(
28668*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
28669*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
28670esac
28671
28672if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
28673  (eval $ac_compile) 2>&5
28674  ac_status=$?
28675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28676  test $ac_status = 0; }; then
28677  # Parse the compiler output and extract the necessary
28678  # objects, libraries and library flags.
28679
28680  # Sentinel used to keep track of whether or not we are before
28681  # the conftest object file.
28682  pre_test_object_deps_done=no
28683
28684  for p in `eval "$output_verbose_link_cmd"`; do
28685    case ${prev}${p} in
28686
28687    -L* | -R* | -l*)
28688       # Some compilers place space between "-{L,R}" and the path.
28689       # Remove the space.
28690       if test $p = "-L" ||
28691          test $p = "-R"; then
28692	 prev=$p
28693	 continue
28694       fi
28695
28696       # Expand the sysroot to ease extracting the directories later.
28697       if test -z "$prev"; then
28698         case $p in
28699         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
28700         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
28701         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
28702         esac
28703       fi
28704       case $p in
28705       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
28706       esac
28707       if test "$pre_test_object_deps_done" = no; then
28708	 case ${prev} in
28709	 -L | -R)
28710	   # Internal compiler library paths should come after those
28711	   # provided the user.  The postdeps already come after the
28712	   # user supplied libs so there is no need to process them.
28713	   if test -z "$compiler_lib_search_path_CXX"; then
28714	     compiler_lib_search_path_CXX="${prev}${p}"
28715	   else
28716	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
28717	   fi
28718	   ;;
28719	 # The "-l" case would never come before the object being
28720	 # linked, so don't bother handling this case.
28721	 esac
28722       else
28723	 if test -z "$postdeps_CXX"; then
28724	   postdeps_CXX="${prev}${p}"
28725	 else
28726	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
28727	 fi
28728       fi
28729       prev=
28730       ;;
28731
28732    *.lto.$objext) ;; # Ignore GCC LTO objects
28733    *.$objext)
28734       # This assumes that the test object file only shows up
28735       # once in the compiler output.
28736       if test "$p" = "conftest.$objext"; then
28737	 pre_test_object_deps_done=yes
28738	 continue
28739       fi
28740
28741       if test "$pre_test_object_deps_done" = no; then
28742	 if test -z "$predep_objects_CXX"; then
28743	   predep_objects_CXX="$p"
28744	 else
28745	   predep_objects_CXX="$predep_objects_CXX $p"
28746	 fi
28747       else
28748	 if test -z "$postdep_objects_CXX"; then
28749	   postdep_objects_CXX="$p"
28750	 else
28751	   postdep_objects_CXX="$postdep_objects_CXX $p"
28752	 fi
28753       fi
28754       ;;
28755
28756    *) ;; # Ignore the rest.
28757
28758    esac
28759  done
28760
28761  # Clean up.
28762  rm -f a.out a.exe
28763else
28764  echo "libtool.m4: error: problem compiling CXX test program"
28765fi
28766
28767$RM -f confest.$objext
28768CFLAGS=$_lt_libdeps_save_CFLAGS
28769
28770# PORTME: override above test on systems where it is broken
28771case $host_os in
28772interix[3-9]*)
28773  # Interix 3.5 installs completely hosed .la files for C++, so rather than
28774  # hack all around it, let's just trust "g++" to DTRT.
28775  predep_objects_CXX=
28776  postdep_objects_CXX=
28777  postdeps_CXX=
28778  ;;
28779
28780linux*)
28781  case `$CC -V 2>&1 | sed 5q` in
28782  *Sun\ C*)
28783    # Sun C++ 5.9
28784
28785    # The more standards-conforming stlport4 library is
28786    # incompatible with the Cstd library. Avoid specifying
28787    # it if it's in CXXFLAGS. Ignore libCrun as
28788    # -library=stlport4 depends on it.
28789    case " $CXX $CXXFLAGS " in
28790    *" -library=stlport4 "*)
28791      solaris_use_stlport4=yes
28792      ;;
28793    esac
28794
28795    if test "$solaris_use_stlport4" != yes; then
28796      postdeps_CXX='-library=Cstd -library=Crun'
28797    fi
28798    ;;
28799  esac
28800  ;;
28801
28802solaris*)
28803  case $cc_basename in
28804  CC* | sunCC*)
28805    # The more standards-conforming stlport4 library is
28806    # incompatible with the Cstd library. Avoid specifying
28807    # it if it's in CXXFLAGS. Ignore libCrun as
28808    # -library=stlport4 depends on it.
28809    case " $CXX $CXXFLAGS " in
28810    *" -library=stlport4 "*)
28811      solaris_use_stlport4=yes
28812      ;;
28813    esac
28814
28815    # Adding this requires a known-good setup of shared libraries for
28816    # Sun compiler versions before 5.6, else PIC objects from an old
28817    # archive will be linked into the output, leading to subtle bugs.
28818    if test "$solaris_use_stlport4" != yes; then
28819      postdeps_CXX='-library=Cstd -library=Crun'
28820    fi
28821    ;;
28822  esac
28823  ;;
28824esac
28825
28826
28827case " $postdeps_CXX " in
28828*" -lc "*) archive_cmds_need_lc_CXX=no ;;
28829esac
28830 compiler_lib_search_dirs_CXX=
28831if test -n "${compiler_lib_search_path_CXX}"; then
28832 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
28833fi
28834
28835
28836
28837
28838
28839
28840
28841
28842
28843
28844
28845
28846
28847
28848
28849
28850
28851
28852
28853
28854
28855
28856
28857
28858
28859
28860
28861
28862
28863
28864
28865    lt_prog_compiler_wl_CXX=
28866lt_prog_compiler_pic_CXX=
28867lt_prog_compiler_static_CXX=
28868
28869
28870  # C++ specific cases for pic, static, wl, etc.
28871  if test "$GXX" = yes; then
28872    lt_prog_compiler_wl_CXX='-Wl,'
28873    lt_prog_compiler_static_CXX='-static'
28874
28875    case $host_os in
28876    aix*)
28877      # All AIX code is PIC.
28878      if test "$host_cpu" = ia64; then
28879	# AIX 5 now supports IA64 processor
28880	lt_prog_compiler_static_CXX='-Bstatic'
28881      fi
28882      ;;
28883
28884    amigaos*)
28885      case $host_cpu in
28886      powerpc)
28887            # see comment about AmigaOS4 .so support
28888            lt_prog_compiler_pic_CXX='-fPIC'
28889        ;;
28890      m68k)
28891            # FIXME: we need at least 68020 code to build shared libraries, but
28892            # adding the `-m68020' flag to GCC prevents building anything better,
28893            # like `-m68040'.
28894            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
28895        ;;
28896      esac
28897      ;;
28898
28899    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
28900      # PIC is the default for these OSes.
28901      ;;
28902    mingw* | cygwin* | os2* | pw32* | cegcc*)
28903      # This hack is so that the source file can tell whether it is being
28904      # built for inclusion in a dll (and should export symbols for example).
28905      # Although the cygwin gcc ignores -fPIC, still need this for old-style
28906      # (--disable-auto-import) libraries
28907      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
28908      ;;
28909    darwin* | rhapsody*)
28910      # PIC is the default on this platform
28911      # Common symbols not allowed in MH_DYLIB files
28912      lt_prog_compiler_pic_CXX='-fno-common'
28913      ;;
28914    *djgpp*)
28915      # DJGPP does not support shared libraries at all
28916      lt_prog_compiler_pic_CXX=
28917      ;;
28918    haiku*)
28919      # PIC is the default for Haiku.
28920      # The "-static" flag exists, but is broken.
28921      lt_prog_compiler_static_CXX=
28922      ;;
28923    interix[3-9]*)
28924      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
28925      # Instead, we relocate shared libraries at runtime.
28926      ;;
28927    sysv4*MP*)
28928      if test -d /usr/nec; then
28929	lt_prog_compiler_pic_CXX=-Kconform_pic
28930      fi
28931      ;;
28932    hpux*)
28933      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
28934      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
28935      # sets the default TLS model and affects inlining.
28936      case $host_cpu in
28937      hppa*64*)
28938	;;
28939      *)
28940	lt_prog_compiler_pic_CXX='-fPIC'
28941	;;
28942      esac
28943      ;;
28944    *qnx* | *nto*)
28945      # QNX uses GNU C++, but need to define -shared option too, otherwise
28946      # it will coredump.
28947      lt_prog_compiler_pic_CXX='-fPIC -shared'
28948      ;;
28949    *)
28950      lt_prog_compiler_pic_CXX='-fPIC'
28951      ;;
28952    esac
28953  else
28954    case $host_os in
28955      aix[4-9]*)
28956	# All AIX code is PIC.
28957	if test "$host_cpu" = ia64; then
28958	  # AIX 5 now supports IA64 processor
28959	  lt_prog_compiler_static_CXX='-Bstatic'
28960	else
28961	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
28962	fi
28963	;;
28964      chorus*)
28965	case $cc_basename in
28966	cxch68*)
28967	  # Green Hills C++ Compiler
28968	  # _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"
28969	  ;;
28970	esac
28971	;;
28972      mingw* | cygwin* | os2* | pw32* | cegcc*)
28973	# This hack is so that the source file can tell whether it is being
28974	# built for inclusion in a dll (and should export symbols for example).
28975	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
28976	;;
28977      dgux*)
28978	case $cc_basename in
28979	  ec++*)
28980	    lt_prog_compiler_pic_CXX='-KPIC'
28981	    ;;
28982	  ghcx*)
28983	    # Green Hills C++ Compiler
28984	    lt_prog_compiler_pic_CXX='-pic'
28985	    ;;
28986	  *)
28987	    ;;
28988	esac
28989	;;
28990      freebsd* | dragonfly*)
28991	# FreeBSD uses GNU C++
28992	;;
28993      hpux9* | hpux10* | hpux11*)
28994	case $cc_basename in
28995	  CC*)
28996	    lt_prog_compiler_wl_CXX='-Wl,'
28997	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
28998	    if test "$host_cpu" != ia64; then
28999	      lt_prog_compiler_pic_CXX='+Z'
29000	    fi
29001	    ;;
29002	  aCC*)
29003	    lt_prog_compiler_wl_CXX='-Wl,'
29004	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
29005	    case $host_cpu in
29006	    hppa*64*|ia64*)
29007	      # +Z the default
29008	      ;;
29009	    *)
29010	      lt_prog_compiler_pic_CXX='+Z'
29011	      ;;
29012	    esac
29013	    ;;
29014	  *)
29015	    ;;
29016	esac
29017	;;
29018      interix*)
29019	# This is c89, which is MS Visual C++ (no shared libs)
29020	# Anyone wants to do a port?
29021	;;
29022      irix5* | irix6* | nonstopux*)
29023	case $cc_basename in
29024	  CC*)
29025	    lt_prog_compiler_wl_CXX='-Wl,'
29026	    lt_prog_compiler_static_CXX='-non_shared'
29027	    # CC pic flag -KPIC is the default.
29028	    ;;
29029	  *)
29030	    ;;
29031	esac
29032	;;
29033      linux* | k*bsd*-gnu | kopensolaris*-gnu)
29034	case $cc_basename in
29035	  KCC*)
29036	    # KAI C++ Compiler
29037	    lt_prog_compiler_wl_CXX='--backend -Wl,'
29038	    lt_prog_compiler_pic_CXX='-fPIC'
29039	    ;;
29040	  ecpc* )
29041	    # old Intel C++ for x86_64 which still supported -KPIC.
29042	    lt_prog_compiler_wl_CXX='-Wl,'
29043	    lt_prog_compiler_pic_CXX='-KPIC'
29044	    lt_prog_compiler_static_CXX='-static'
29045	    ;;
29046	  icpc* )
29047	    # Intel C++, used to be incompatible with GCC.
29048	    # ICC 10 doesn't accept -KPIC any more.
29049	    lt_prog_compiler_wl_CXX='-Wl,'
29050	    lt_prog_compiler_pic_CXX='-fPIC'
29051	    lt_prog_compiler_static_CXX='-static'
29052	    ;;
29053	  pgCC* | pgcpp*)
29054	    # Portland Group C++ compiler
29055	    lt_prog_compiler_wl_CXX='-Wl,'
29056	    lt_prog_compiler_pic_CXX='-fpic'
29057	    lt_prog_compiler_static_CXX='-Bstatic'
29058	    ;;
29059	  cxx*)
29060	    # Compaq C++
29061	    # Make sure the PIC flag is empty.  It appears that all Alpha
29062	    # Linux and Compaq Tru64 Unix objects are PIC.
29063	    lt_prog_compiler_pic_CXX=
29064	    lt_prog_compiler_static_CXX='-non_shared'
29065	    ;;
29066	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
29067	    # IBM XL 8.0, 9.0 on PPC and BlueGene
29068	    lt_prog_compiler_wl_CXX='-Wl,'
29069	    lt_prog_compiler_pic_CXX='-qpic'
29070	    lt_prog_compiler_static_CXX='-qstaticlink'
29071	    ;;
29072	  *)
29073	    case `$CC -V 2>&1 | sed 5q` in
29074	    *Sun\ C*)
29075	      # Sun C++ 5.9
29076	      lt_prog_compiler_pic_CXX='-KPIC'
29077	      lt_prog_compiler_static_CXX='-Bstatic'
29078	      lt_prog_compiler_wl_CXX='-Qoption ld '
29079	      ;;
29080	    esac
29081	    ;;
29082	esac
29083	;;
29084      lynxos*)
29085	;;
29086      m88k*)
29087	;;
29088      mvs*)
29089	case $cc_basename in
29090	  cxx*)
29091	    lt_prog_compiler_pic_CXX='-W c,exportall'
29092	    ;;
29093	  *)
29094	    ;;
29095	esac
29096	;;
29097      netbsd*)
29098	;;
29099      *qnx* | *nto*)
29100        # QNX uses GNU C++, but need to define -shared option too, otherwise
29101        # it will coredump.
29102        lt_prog_compiler_pic_CXX='-fPIC -shared'
29103        ;;
29104      osf3* | osf4* | osf5*)
29105	case $cc_basename in
29106	  KCC*)
29107	    lt_prog_compiler_wl_CXX='--backend -Wl,'
29108	    ;;
29109	  RCC*)
29110	    # Rational C++ 2.4.1
29111	    lt_prog_compiler_pic_CXX='-pic'
29112	    ;;
29113	  cxx*)
29114	    # Digital/Compaq C++
29115	    lt_prog_compiler_wl_CXX='-Wl,'
29116	    # Make sure the PIC flag is empty.  It appears that all Alpha
29117	    # Linux and Compaq Tru64 Unix objects are PIC.
29118	    lt_prog_compiler_pic_CXX=
29119	    lt_prog_compiler_static_CXX='-non_shared'
29120	    ;;
29121	  *)
29122	    ;;
29123	esac
29124	;;
29125      psos*)
29126	;;
29127      solaris*)
29128	case $cc_basename in
29129	  CC* | sunCC*)
29130	    # Sun C++ 4.2, 5.x and Centerline C++
29131	    lt_prog_compiler_pic_CXX='-KPIC'
29132	    lt_prog_compiler_static_CXX='-Bstatic'
29133	    lt_prog_compiler_wl_CXX='-Qoption ld '
29134	    ;;
29135	  gcx*)
29136	    # Green Hills C++ Compiler
29137	    lt_prog_compiler_pic_CXX='-PIC'
29138	    ;;
29139	  *)
29140	    ;;
29141	esac
29142	;;
29143      sunos4*)
29144	case $cc_basename in
29145	  CC*)
29146	    # Sun C++ 4.x
29147	    lt_prog_compiler_pic_CXX='-pic'
29148	    lt_prog_compiler_static_CXX='-Bstatic'
29149	    ;;
29150	  lcc*)
29151	    # Lucid
29152	    lt_prog_compiler_pic_CXX='-pic'
29153	    ;;
29154	  *)
29155	    ;;
29156	esac
29157	;;
29158      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
29159	case $cc_basename in
29160	  CC*)
29161	    lt_prog_compiler_wl_CXX='-Wl,'
29162	    lt_prog_compiler_pic_CXX='-KPIC'
29163	    lt_prog_compiler_static_CXX='-Bstatic'
29164	    ;;
29165	esac
29166	;;
29167      tandem*)
29168	case $cc_basename in
29169	  NCC*)
29170	    # NonStop-UX NCC 3.20
29171	    lt_prog_compiler_pic_CXX='-KPIC'
29172	    ;;
29173	  *)
29174	    ;;
29175	esac
29176	;;
29177      vxworks*)
29178	;;
29179      *)
29180	lt_prog_compiler_can_build_shared_CXX=no
29181	;;
29182    esac
29183  fi
29184
29185case $host_os in
29186  # For platforms which do not support PIC, -DPIC is meaningless:
29187  *djgpp*)
29188    lt_prog_compiler_pic_CXX=
29189    ;;
29190  *)
29191    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
29192    ;;
29193esac
29194
29195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
29196$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
29197if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
29198  $as_echo_n "(cached) " >&6
29199else
29200  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
29201fi
29202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
29203$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
29204lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
29205
29206#
29207# Check to make sure the PIC flag actually works.
29208#
29209if test -n "$lt_prog_compiler_pic_CXX"; then
29210  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
29211$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
29212if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
29213  $as_echo_n "(cached) " >&6
29214else
29215  lt_cv_prog_compiler_pic_works_CXX=no
29216   ac_outfile=conftest.$ac_objext
29217   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
29218   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
29219   # Insert the option either (1) after the last *FLAGS variable, or
29220   # (2) before a word containing "conftest.", or (3) at the end.
29221   # Note that $ac_compile itself does not contain backslashes and begins
29222   # with a dollar sign (not a hyphen), so the echo should work correctly.
29223   # The option is referenced via a variable to avoid confusing sed.
29224   lt_compile=`echo "$ac_compile" | $SED \
29225   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
29226   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
29227   -e 's:$: $lt_compiler_flag:'`
29228   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
29229   (eval "$lt_compile" 2>conftest.err)
29230   ac_status=$?
29231   cat conftest.err >&5
29232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233   if (exit $ac_status) && test -s "$ac_outfile"; then
29234     # The compiler can only warn and ignore the option if not recognized
29235     # So say no if there are warnings other than the usual output.
29236     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
29237     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
29238     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
29239       lt_cv_prog_compiler_pic_works_CXX=yes
29240     fi
29241   fi
29242   $RM conftest*
29243
29244fi
29245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
29246$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
29247
29248if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
29249    case $lt_prog_compiler_pic_CXX in
29250     "" | " "*) ;;
29251     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
29252     esac
29253else
29254    lt_prog_compiler_pic_CXX=
29255     lt_prog_compiler_can_build_shared_CXX=no
29256fi
29257
29258fi
29259
29260
29261
29262
29263
29264#
29265# Check to make sure the static flag actually works.
29266#
29267wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
29268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
29269$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
29270if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
29271  $as_echo_n "(cached) " >&6
29272else
29273  lt_cv_prog_compiler_static_works_CXX=no
29274   save_LDFLAGS="$LDFLAGS"
29275   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
29276   echo "$lt_simple_link_test_code" > conftest.$ac_ext
29277   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
29278     # The linker can only warn and ignore the option if not recognized
29279     # So say no if there are warnings
29280     if test -s conftest.err; then
29281       # Append any errors to the config.log.
29282       cat conftest.err 1>&5
29283       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
29284       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
29285       if diff conftest.exp conftest.er2 >/dev/null; then
29286         lt_cv_prog_compiler_static_works_CXX=yes
29287       fi
29288     else
29289       lt_cv_prog_compiler_static_works_CXX=yes
29290     fi
29291   fi
29292   $RM -r conftest*
29293   LDFLAGS="$save_LDFLAGS"
29294
29295fi
29296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
29297$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
29298
29299if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
29300    :
29301else
29302    lt_prog_compiler_static_CXX=
29303fi
29304
29305
29306
29307
29308    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
29309$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
29310if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
29311  $as_echo_n "(cached) " >&6
29312else
29313  lt_cv_prog_compiler_c_o_CXX=no
29314   $RM -r conftest 2>/dev/null
29315   mkdir conftest
29316   cd conftest
29317   mkdir out
29318   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
29319
29320   lt_compiler_flag="-o out/conftest2.$ac_objext"
29321   # Insert the option either (1) after the last *FLAGS variable, or
29322   # (2) before a word containing "conftest.", or (3) at the end.
29323   # Note that $ac_compile itself does not contain backslashes and begins
29324   # with a dollar sign (not a hyphen), so the echo should work correctly.
29325   lt_compile=`echo "$ac_compile" | $SED \
29326   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
29327   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
29328   -e 's:$: $lt_compiler_flag:'`
29329   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
29330   (eval "$lt_compile" 2>out/conftest.err)
29331   ac_status=$?
29332   cat out/conftest.err >&5
29333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334   if (exit $ac_status) && test -s out/conftest2.$ac_objext
29335   then
29336     # The compiler can only warn and ignore the option if not recognized
29337     # So say no if there are warnings
29338     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
29339     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
29340     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
29341       lt_cv_prog_compiler_c_o_CXX=yes
29342     fi
29343   fi
29344   chmod u+w . 2>&5
29345   $RM conftest*
29346   # SGI C++ compiler will create directory out/ii_files/ for
29347   # template instantiation
29348   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
29349   $RM out/* && rmdir out
29350   cd ..
29351   $RM -r conftest
29352   $RM conftest*
29353
29354fi
29355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
29356$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
29357
29358
29359
29360    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
29361$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
29362if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
29363  $as_echo_n "(cached) " >&6
29364else
29365  lt_cv_prog_compiler_c_o_CXX=no
29366   $RM -r conftest 2>/dev/null
29367   mkdir conftest
29368   cd conftest
29369   mkdir out
29370   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
29371
29372   lt_compiler_flag="-o out/conftest2.$ac_objext"
29373   # Insert the option either (1) after the last *FLAGS variable, or
29374   # (2) before a word containing "conftest.", or (3) at the end.
29375   # Note that $ac_compile itself does not contain backslashes and begins
29376   # with a dollar sign (not a hyphen), so the echo should work correctly.
29377   lt_compile=`echo "$ac_compile" | $SED \
29378   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
29379   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
29380   -e 's:$: $lt_compiler_flag:'`
29381   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
29382   (eval "$lt_compile" 2>out/conftest.err)
29383   ac_status=$?
29384   cat out/conftest.err >&5
29385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386   if (exit $ac_status) && test -s out/conftest2.$ac_objext
29387   then
29388     # The compiler can only warn and ignore the option if not recognized
29389     # So say no if there are warnings
29390     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
29391     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
29392     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
29393       lt_cv_prog_compiler_c_o_CXX=yes
29394     fi
29395   fi
29396   chmod u+w . 2>&5
29397   $RM conftest*
29398   # SGI C++ compiler will create directory out/ii_files/ for
29399   # template instantiation
29400   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
29401   $RM out/* && rmdir out
29402   cd ..
29403   $RM -r conftest
29404   $RM conftest*
29405
29406fi
29407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
29408$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
29409
29410
29411
29412
29413hard_links="nottested"
29414if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
29415  # do not overwrite the value of need_locks provided by the user
29416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
29417$as_echo_n "checking if we can lock with hard links... " >&6; }
29418  hard_links=yes
29419  $RM conftest*
29420  ln conftest.a conftest.b 2>/dev/null && hard_links=no
29421  touch conftest.a
29422  ln conftest.a conftest.b 2>&5 || hard_links=no
29423  ln conftest.a conftest.b 2>/dev/null && hard_links=no
29424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
29425$as_echo "$hard_links" >&6; }
29426  if test "$hard_links" = no; then
29427    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
29428$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
29429    need_locks=warn
29430  fi
29431else
29432  need_locks=no
29433fi
29434
29435
29436
29437    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
29438$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
29439
29440  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
29441  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
29442  case $host_os in
29443  aix[4-9]*)
29444    # If we're using GNU nm, then we don't want the "-C" option.
29445    # -C means demangle to AIX nm, but means don't demangle with GNU nm
29446    # Also, AIX nm treats weak defined symbols like other global defined
29447    # symbols, whereas GNU nm marks them as "W".
29448    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
29449      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'
29450    else
29451      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'
29452    fi
29453    ;;
29454  pw32*)
29455    export_symbols_cmds_CXX="$ltdll_cmds"
29456    ;;
29457  cygwin* | mingw* | cegcc*)
29458    case $cc_basename in
29459    cl*) ;;
29460    *)
29461      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'
29462      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
29463      ;;
29464    esac
29465    ;;
29466  *)
29467    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
29468    ;;
29469  esac
29470
29471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
29472$as_echo "$ld_shlibs_CXX" >&6; }
29473test "$ld_shlibs_CXX" = no && can_build_shared=no
29474
29475with_gnu_ld_CXX=$with_gnu_ld
29476
29477
29478
29479
29480
29481
29482#
29483# Do we need to explicitly link libc?
29484#
29485case "x$archive_cmds_need_lc_CXX" in
29486x|xyes)
29487  # Assume -lc should be added
29488  archive_cmds_need_lc_CXX=yes
29489
29490  if test "$enable_shared" = yes && test "$GCC" = yes; then
29491    case $archive_cmds_CXX in
29492    *'~'*)
29493      # FIXME: we may have to deal with multi-command sequences.
29494      ;;
29495    '$CC '*)
29496      # Test whether the compiler implicitly links with -lc since on some
29497      # systems, -lgcc has to come before -lc. If gcc already passes -lc
29498      # to ld, don't add -lc before -lgcc.
29499      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
29500$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
29501if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
29502  $as_echo_n "(cached) " >&6
29503else
29504  $RM conftest*
29505	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
29506
29507	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
29508  (eval $ac_compile) 2>&5
29509  ac_status=$?
29510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29511  test $ac_status = 0; } 2>conftest.err; then
29512	  soname=conftest
29513	  lib=conftest
29514	  libobjs=conftest.$ac_objext
29515	  deplibs=
29516	  wl=$lt_prog_compiler_wl_CXX
29517	  pic_flag=$lt_prog_compiler_pic_CXX
29518	  compiler_flags=-v
29519	  linker_flags=-v
29520	  verstring=
29521	  output_objdir=.
29522	  libname=conftest
29523	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
29524	  allow_undefined_flag_CXX=
29525	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
29526  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
29527  ac_status=$?
29528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29529  test $ac_status = 0; }
29530	  then
29531	    lt_cv_archive_cmds_need_lc_CXX=no
29532	  else
29533	    lt_cv_archive_cmds_need_lc_CXX=yes
29534	  fi
29535	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
29536	else
29537	  cat conftest.err 1>&5
29538	fi
29539	$RM conftest*
29540
29541fi
29542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
29543$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
29544      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
29545      ;;
29546    esac
29547  fi
29548  ;;
29549esac
29550
29551
29552
29553
29554
29555
29556
29557
29558
29559
29560
29561
29562
29563
29564
29565
29566
29567
29568
29569
29570
29571
29572
29573
29574
29575
29576
29577
29578
29579
29580
29581
29582
29583
29584
29585
29586
29587
29588
29589
29590
29591
29592
29593
29594
29595
29596
29597
29598
29599
29600
29601
29602
29603
29604
29605
29606
29607
29608
29609
29610
29611
29612
29613
29614    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
29615$as_echo_n "checking dynamic linker characteristics... " >&6; }
29616
29617library_names_spec=
29618libname_spec='lib$name'
29619soname_spec=
29620shrext_cmds=".so"
29621postinstall_cmds=
29622postuninstall_cmds=
29623finish_cmds=
29624finish_eval=
29625shlibpath_var=
29626shlibpath_overrides_runpath=unknown
29627version_type=none
29628dynamic_linker="$host_os ld.so"
29629sys_lib_dlsearch_path_spec="/lib /usr/lib"
29630need_lib_prefix=unknown
29631hardcode_into_libs=no
29632
29633# when you set need_version to no, make sure it does not cause -set_version
29634# flags to be left without arguments
29635need_version=unknown
29636
29637case $host_os in
29638aix3*)
29639  version_type=linux
29640  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
29641  shlibpath_var=LIBPATH
29642
29643  # AIX 3 has no versioning support, so we append a major version to the name.
29644  soname_spec='${libname}${release}${shared_ext}$major'
29645  ;;
29646
29647aix[4-9]*)
29648  version_type=linux
29649  need_lib_prefix=no
29650  need_version=no
29651  hardcode_into_libs=yes
29652  if test "$host_cpu" = ia64; then
29653    # AIX 5 supports IA64
29654    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
29655    shlibpath_var=LD_LIBRARY_PATH
29656  else
29657    # With GCC up to 2.95.x, collect2 would create an import file
29658    # for dependence libraries.  The import file would start with
29659    # the line `#! .'.  This would cause the generated library to
29660    # depend on `.', always an invalid library.  This was fixed in
29661    # development snapshots of GCC prior to 3.0.
29662    case $host_os in
29663      aix4 | aix4.[01] | aix4.[01].*)
29664      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
29665	   echo ' yes '
29666	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
29667	:
29668      else
29669	can_build_shared=no
29670      fi
29671      ;;
29672    esac
29673    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
29674    # soname into executable. Probably we can add versioning support to
29675    # collect2, so additional links can be useful in future.
29676    if test "$aix_use_runtimelinking" = yes; then
29677      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
29678      # instead of lib<name>.a to let people know that these are not
29679      # typical AIX shared libraries.
29680      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29681    else
29682      # We preserve .a as extension for shared libraries through AIX4.2
29683      # and later when we are not doing run time linking.
29684      library_names_spec='${libname}${release}.a $libname.a'
29685      soname_spec='${libname}${release}${shared_ext}$major'
29686    fi
29687    shlibpath_var=LIBPATH
29688  fi
29689  ;;
29690
29691amigaos*)
29692  case $host_cpu in
29693  powerpc)
29694    # Since July 2007 AmigaOS4 officially supports .so libraries.
29695    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
29696    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29697    ;;
29698  m68k)
29699    library_names_spec='$libname.ixlibrary $libname.a'
29700    # Create ${libname}_ixlibrary.a entries in /sys/libs.
29701    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'
29702    ;;
29703  esac
29704  ;;
29705
29706beos*)
29707  library_names_spec='${libname}${shared_ext}'
29708  dynamic_linker="$host_os ld.so"
29709  shlibpath_var=LIBRARY_PATH
29710  ;;
29711
29712bsdi[45]*)
29713  version_type=linux
29714  need_version=no
29715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29716  soname_spec='${libname}${release}${shared_ext}$major'
29717  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
29718  shlibpath_var=LD_LIBRARY_PATH
29719  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
29720  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
29721  # the default ld.so.conf also contains /usr/contrib/lib and
29722  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
29723  # libtool to hard-code these into programs
29724  ;;
29725
29726cygwin* | mingw* | pw32* | cegcc*)
29727  version_type=windows
29728  shrext_cmds=".dll"
29729  need_version=no
29730  need_lib_prefix=no
29731
29732  case $GCC,$cc_basename in
29733  yes,*)
29734    # gcc
29735    library_names_spec='$libname.dll.a'
29736    # DLL is installed to $(libdir)/../bin by postinstall_cmds
29737    postinstall_cmds='base_file=`basename \${file}`~
29738      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
29739      dldir=$destdir/`dirname \$dlpath`~
29740      test -d \$dldir || mkdir -p \$dldir~
29741      $install_prog $dir/$dlname \$dldir/$dlname~
29742      chmod a+x \$dldir/$dlname~
29743      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
29744        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
29745      fi'
29746    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
29747      dlpath=$dir/\$dldll~
29748       $RM \$dlpath'
29749    shlibpath_overrides_runpath=yes
29750
29751    case $host_os in
29752    cygwin*)
29753      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
29754      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
29755
29756      ;;
29757    mingw* | cegcc*)
29758      # MinGW DLLs use traditional 'lib' prefix
29759      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
29760      ;;
29761    pw32*)
29762      # pw32 DLLs use 'pw' prefix rather than 'lib'
29763      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
29764      ;;
29765    esac
29766    dynamic_linker='Win32 ld.exe'
29767    ;;
29768
29769  *,cl*)
29770    # Native MSVC
29771    libname_spec='$name'
29772    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
29773    library_names_spec='${libname}.dll.lib'
29774
29775    case $build_os in
29776    mingw*)
29777      sys_lib_search_path_spec=
29778      lt_save_ifs=$IFS
29779      IFS=';'
29780      for lt_path in $LIB
29781      do
29782        IFS=$lt_save_ifs
29783        # Let DOS variable expansion print the short 8.3 style file name.
29784        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
29785        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
29786      done
29787      IFS=$lt_save_ifs
29788      # Convert to MSYS style.
29789      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
29790      ;;
29791    cygwin*)
29792      # Convert to unix form, then to dos form, then back to unix form
29793      # but this time dos style (no spaces!) so that the unix form looks
29794      # like /cygdrive/c/PROGRA~1:/cygdr...
29795      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
29796      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
29797      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
29798      ;;
29799    *)
29800      sys_lib_search_path_spec="$LIB"
29801      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
29802        # It is most probably a Windows format PATH.
29803        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
29804      else
29805        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
29806      fi
29807      # FIXME: find the short name or the path components, as spaces are
29808      # common. (e.g. "Program Files" -> "PROGRA~1")
29809      ;;
29810    esac
29811
29812    # DLL is installed to $(libdir)/../bin by postinstall_cmds
29813    postinstall_cmds='base_file=`basename \${file}`~
29814      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
29815      dldir=$destdir/`dirname \$dlpath`~
29816      test -d \$dldir || mkdir -p \$dldir~
29817      $install_prog $dir/$dlname \$dldir/$dlname'
29818    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
29819      dlpath=$dir/\$dldll~
29820       $RM \$dlpath'
29821    shlibpath_overrides_runpath=yes
29822    dynamic_linker='Win32 link.exe'
29823    ;;
29824
29825  *)
29826    # Assume MSVC wrapper
29827    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
29828    dynamic_linker='Win32 ld.exe'
29829    ;;
29830  esac
29831  # FIXME: first we should search . and the directory the executable is in
29832  shlibpath_var=PATH
29833  ;;
29834
29835darwin* | rhapsody*)
29836  dynamic_linker="$host_os dyld"
29837  version_type=darwin
29838  need_lib_prefix=no
29839  need_version=no
29840  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
29841  soname_spec='${libname}${release}${major}$shared_ext'
29842  shlibpath_overrides_runpath=yes
29843  shlibpath_var=DYLD_LIBRARY_PATH
29844  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
29845
29846  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
29847  ;;
29848
29849dgux*)
29850  version_type=linux
29851  need_lib_prefix=no
29852  need_version=no
29853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
29854  soname_spec='${libname}${release}${shared_ext}$major'
29855  shlibpath_var=LD_LIBRARY_PATH
29856  ;;
29857
29858freebsd1*)
29859  dynamic_linker=no
29860  ;;
29861
29862freebsd* | dragonfly*)
29863  # DragonFly does not have aout.  When/if they implement a new
29864  # versioning mechanism, adjust this.
29865  if test -x /usr/bin/objformat; then
29866    objformat=`/usr/bin/objformat`
29867  else
29868    case $host_os in
29869    freebsd[123]*) objformat=aout ;;
29870    *) objformat=elf ;;
29871    esac
29872  fi
29873  version_type=freebsd-$objformat
29874  case $version_type in
29875    freebsd-elf*)
29876      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
29877      need_version=no
29878      need_lib_prefix=no
29879      ;;
29880    freebsd-*)
29881      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
29882      need_version=yes
29883      ;;
29884  esac
29885  shlibpath_var=LD_LIBRARY_PATH
29886  case $host_os in
29887  freebsd2*)
29888    shlibpath_overrides_runpath=yes
29889    ;;
29890  freebsd3.[01]* | freebsdelf3.[01]*)
29891    shlibpath_overrides_runpath=yes
29892    hardcode_into_libs=yes
29893    ;;
29894  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
29895  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
29896    shlibpath_overrides_runpath=no
29897    hardcode_into_libs=yes
29898    ;;
29899  *) # from 4.6 on, and DragonFly
29900    shlibpath_overrides_runpath=yes
29901    hardcode_into_libs=yes
29902    ;;
29903  esac
29904  ;;
29905
29906gnu*)
29907  version_type=linux
29908  need_lib_prefix=no
29909  need_version=no
29910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
29911  soname_spec='${libname}${release}${shared_ext}$major'
29912  shlibpath_var=LD_LIBRARY_PATH
29913  hardcode_into_libs=yes
29914  ;;
29915
29916haiku*)
29917  version_type=linux
29918  need_lib_prefix=no
29919  need_version=no
29920  dynamic_linker="$host_os runtime_loader"
29921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
29922  soname_spec='${libname}${release}${shared_ext}$major'
29923  shlibpath_var=LIBRARY_PATH
29924  shlibpath_overrides_runpath=yes
29925  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
29926  hardcode_into_libs=yes
29927  ;;
29928
29929hpux9* | hpux10* | hpux11*)
29930  # Give a soname corresponding to the major version so that dld.sl refuses to
29931  # link against other versions.
29932  version_type=sunos
29933  need_lib_prefix=no
29934  need_version=no
29935  case $host_cpu in
29936  ia64*)
29937    shrext_cmds='.so'
29938    hardcode_into_libs=yes
29939    dynamic_linker="$host_os dld.so"
29940    shlibpath_var=LD_LIBRARY_PATH
29941    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
29942    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29943    soname_spec='${libname}${release}${shared_ext}$major'
29944    if test "X$HPUX_IA64_MODE" = X32; then
29945      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
29946    else
29947      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
29948    fi
29949    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
29950    ;;
29951  hppa*64*)
29952    shrext_cmds='.sl'
29953    hardcode_into_libs=yes
29954    dynamic_linker="$host_os dld.sl"
29955    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
29956    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
29957    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29958    soname_spec='${libname}${release}${shared_ext}$major'
29959    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
29960    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
29961    ;;
29962  *)
29963    shrext_cmds='.sl'
29964    dynamic_linker="$host_os dld.sl"
29965    shlibpath_var=SHLIB_PATH
29966    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
29967    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29968    soname_spec='${libname}${release}${shared_ext}$major'
29969    ;;
29970  esac
29971  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
29972  postinstall_cmds='chmod 555 $lib'
29973  # or fails outright, so override atomically:
29974  install_override_mode=555
29975  ;;
29976
29977interix[3-9]*)
29978  version_type=linux
29979  need_lib_prefix=no
29980  need_version=no
29981  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
29982  soname_spec='${libname}${release}${shared_ext}$major'
29983  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
29984  shlibpath_var=LD_LIBRARY_PATH
29985  shlibpath_overrides_runpath=no
29986  hardcode_into_libs=yes
29987  ;;
29988
29989irix5* | irix6* | nonstopux*)
29990  case $host_os in
29991    nonstopux*) version_type=nonstopux ;;
29992    *)
29993	if test "$lt_cv_prog_gnu_ld" = yes; then
29994		version_type=linux
29995	else
29996		version_type=irix
29997	fi ;;
29998  esac
29999  need_lib_prefix=no
30000  need_version=no
30001  soname_spec='${libname}${release}${shared_ext}$major'
30002  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
30003  case $host_os in
30004  irix5* | nonstopux*)
30005    libsuff= shlibsuff=
30006    ;;
30007  *)
30008    case $LD in # libtool.m4 will add one of these switches to LD
30009    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
30010      libsuff= shlibsuff= libmagic=32-bit;;
30011    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
30012      libsuff=32 shlibsuff=N32 libmagic=N32;;
30013    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
30014      libsuff=64 shlibsuff=64 libmagic=64-bit;;
30015    *) libsuff= shlibsuff= libmagic=never-match;;
30016    esac
30017    ;;
30018  esac
30019  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
30020  shlibpath_overrides_runpath=no
30021  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
30022  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
30023  hardcode_into_libs=yes
30024  ;;
30025
30026# No shared lib support for Linux oldld, aout, or coff.
30027linux*oldld* | linux*aout* | linux*coff*)
30028  dynamic_linker=no
30029  ;;
30030
30031# This must be Linux ELF.
30032linux* | k*bsd*-gnu | kopensolaris*-gnu)
30033  version_type=linux
30034  need_lib_prefix=no
30035  need_version=no
30036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30037  soname_spec='${libname}${release}${shared_ext}$major'
30038  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
30039  shlibpath_var=LD_LIBRARY_PATH
30040  shlibpath_overrides_runpath=no
30041
30042  # Some binutils ld are patched to set DT_RUNPATH
30043  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
30044  $as_echo_n "(cached) " >&6
30045else
30046  lt_cv_shlibpath_overrides_runpath=no
30047    save_LDFLAGS=$LDFLAGS
30048    save_libdir=$libdir
30049    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
30050	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
30051    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30052/* end confdefs.h.  */
30053
30054int
30055main ()
30056{
30057
30058  ;
30059  return 0;
30060}
30061_ACEOF
30062if ac_fn_cxx_try_link "$LINENO"; then :
30063  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
30064  lt_cv_shlibpath_overrides_runpath=yes
30065fi
30066fi
30067rm -f core conftest.err conftest.$ac_objext \
30068    conftest$ac_exeext conftest.$ac_ext
30069    LDFLAGS=$save_LDFLAGS
30070    libdir=$save_libdir
30071
30072fi
30073
30074  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
30075
30076  # This implies no fast_install, which is unacceptable.
30077  # Some rework will be needed to allow for fast_install
30078  # before this can be enabled.
30079  hardcode_into_libs=yes
30080
30081  # Append ld.so.conf contents to the search path
30082  if test -f /etc/ld.so.conf; then
30083    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' ' '`
30084    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
30085  fi
30086
30087  # We used to test for /lib/ld.so.1 and disable shared libraries on
30088  # powerpc, because MkLinux only supported shared libraries with the
30089  # GNU dynamic linker.  Since this was broken with cross compilers,
30090  # most powerpc-linux boxes support dynamic linking these days and
30091  # people can always --disable-shared, the test was removed, and we
30092  # assume the GNU/Linux dynamic linker is in use.
30093  dynamic_linker='GNU/Linux ld.so'
30094  ;;
30095
30096netbsd*)
30097  version_type=sunos
30098  need_lib_prefix=no
30099  need_version=no
30100  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
30101    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
30102    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
30103    dynamic_linker='NetBSD (a.out) ld.so'
30104  else
30105    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
30106    soname_spec='${libname}${release}${shared_ext}$major'
30107    dynamic_linker='NetBSD ld.elf_so'
30108  fi
30109  shlibpath_var=LD_LIBRARY_PATH
30110  shlibpath_overrides_runpath=yes
30111  hardcode_into_libs=yes
30112  ;;
30113
30114newsos6)
30115  version_type=linux
30116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30117  shlibpath_var=LD_LIBRARY_PATH
30118  shlibpath_overrides_runpath=yes
30119  ;;
30120
30121*nto* | *qnx*)
30122  version_type=qnx
30123  need_lib_prefix=no
30124  need_version=no
30125  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30126  soname_spec='${libname}${release}${shared_ext}$major'
30127  shlibpath_var=LD_LIBRARY_PATH
30128  shlibpath_overrides_runpath=no
30129  hardcode_into_libs=yes
30130  dynamic_linker='ldqnx.so'
30131  ;;
30132
30133openbsd*)
30134  version_type=sunos
30135  sys_lib_dlsearch_path_spec="/usr/lib"
30136  need_lib_prefix=no
30137  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
30138  case $host_os in
30139    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
30140    *)				need_version=no  ;;
30141  esac
30142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
30143  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
30144  shlibpath_var=LD_LIBRARY_PATH
30145  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
30146    case $host_os in
30147      openbsd2.[89] | openbsd2.[89].*)
30148	shlibpath_overrides_runpath=no
30149	;;
30150      *)
30151	shlibpath_overrides_runpath=yes
30152	;;
30153      esac
30154  else
30155    shlibpath_overrides_runpath=yes
30156  fi
30157  ;;
30158
30159os2*)
30160  libname_spec='$name'
30161  shrext_cmds=".dll"
30162  need_lib_prefix=no
30163  library_names_spec='$libname${shared_ext} $libname.a'
30164  dynamic_linker='OS/2 ld.exe'
30165  shlibpath_var=LIBPATH
30166  ;;
30167
30168osf3* | osf4* | osf5*)
30169  version_type=osf
30170  need_lib_prefix=no
30171  need_version=no
30172  soname_spec='${libname}${release}${shared_ext}$major'
30173  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30174  shlibpath_var=LD_LIBRARY_PATH
30175  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
30176  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
30177  ;;
30178
30179rdos*)
30180  dynamic_linker=no
30181  ;;
30182
30183solaris*)
30184  version_type=linux
30185  need_lib_prefix=no
30186  need_version=no
30187  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30188  soname_spec='${libname}${release}${shared_ext}$major'
30189  shlibpath_var=LD_LIBRARY_PATH
30190  shlibpath_overrides_runpath=yes
30191  hardcode_into_libs=yes
30192  # ldd complains unless libraries are executable
30193  postinstall_cmds='chmod +x $lib'
30194  ;;
30195
30196sunos4*)
30197  version_type=sunos
30198  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
30199  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
30200  shlibpath_var=LD_LIBRARY_PATH
30201  shlibpath_overrides_runpath=yes
30202  if test "$with_gnu_ld" = yes; then
30203    need_lib_prefix=no
30204  fi
30205  need_version=yes
30206  ;;
30207
30208sysv4 | sysv4.3*)
30209  version_type=linux
30210  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30211  soname_spec='${libname}${release}${shared_ext}$major'
30212  shlibpath_var=LD_LIBRARY_PATH
30213  case $host_vendor in
30214    sni)
30215      shlibpath_overrides_runpath=no
30216      need_lib_prefix=no
30217      runpath_var=LD_RUN_PATH
30218      ;;
30219    siemens)
30220      need_lib_prefix=no
30221      ;;
30222    motorola)
30223      need_lib_prefix=no
30224      need_version=no
30225      shlibpath_overrides_runpath=no
30226      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
30227      ;;
30228  esac
30229  ;;
30230
30231sysv4*MP*)
30232  if test -d /usr/nec ;then
30233    version_type=linux
30234    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
30235    soname_spec='$libname${shared_ext}.$major'
30236    shlibpath_var=LD_LIBRARY_PATH
30237  fi
30238  ;;
30239
30240sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
30241  version_type=freebsd-elf
30242  need_lib_prefix=no
30243  need_version=no
30244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
30245  soname_spec='${libname}${release}${shared_ext}$major'
30246  shlibpath_var=LD_LIBRARY_PATH
30247  shlibpath_overrides_runpath=yes
30248  hardcode_into_libs=yes
30249  if test "$with_gnu_ld" = yes; then
30250    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
30251  else
30252    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
30253    case $host_os in
30254      sco3.2v5*)
30255        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
30256	;;
30257    esac
30258  fi
30259  sys_lib_dlsearch_path_spec='/usr/lib'
30260  ;;
30261
30262tpf*)
30263  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
30264  version_type=linux
30265  need_lib_prefix=no
30266  need_version=no
30267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30268  shlibpath_var=LD_LIBRARY_PATH
30269  shlibpath_overrides_runpath=no
30270  hardcode_into_libs=yes
30271  ;;
30272
30273uts4*)
30274  version_type=linux
30275  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30276  soname_spec='${libname}${release}${shared_ext}$major'
30277  shlibpath_var=LD_LIBRARY_PATH
30278  ;;
30279
30280*)
30281  dynamic_linker=no
30282  ;;
30283esac
30284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
30285$as_echo "$dynamic_linker" >&6; }
30286test "$dynamic_linker" = no && can_build_shared=no
30287
30288variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
30289if test "$GCC" = yes; then
30290  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
30291fi
30292
30293if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
30294  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
30295fi
30296if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
30297  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
30298fi
30299
30300
30301
30302
30303
30304
30305
30306
30307
30308
30309
30310
30311
30312
30313
30314
30315
30316
30317
30318
30319
30320
30321
30322
30323
30324
30325
30326
30327
30328
30329
30330
30331
30332
30333
30334
30335
30336
30337    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
30338$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
30339hardcode_action_CXX=
30340if test -n "$hardcode_libdir_flag_spec_CXX" ||
30341   test -n "$runpath_var_CXX" ||
30342   test "X$hardcode_automatic_CXX" = "Xyes" ; then
30343
30344  # We can hardcode non-existent directories.
30345  if test "$hardcode_direct_CXX" != no &&
30346     # If the only mechanism to avoid hardcoding is shlibpath_var, we
30347     # have to relink, otherwise we might link with an installed library
30348     # when we should be linking with a yet-to-be-installed one
30349     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
30350     test "$hardcode_minus_L_CXX" != no; then
30351    # Linking always hardcodes the temporary library directory.
30352    hardcode_action_CXX=relink
30353  else
30354    # We can link without hardcoding, and we can hardcode nonexisting dirs.
30355    hardcode_action_CXX=immediate
30356  fi
30357else
30358  # We cannot hardcode anything, or else we can only hardcode existing
30359  # directories.
30360  hardcode_action_CXX=unsupported
30361fi
30362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
30363$as_echo "$hardcode_action_CXX" >&6; }
30364
30365if test "$hardcode_action_CXX" = relink ||
30366   test "$inherit_rpath_CXX" = yes; then
30367  # Fast installation is not supported
30368  enable_fast_install=no
30369elif test "$shlibpath_overrides_runpath" = yes ||
30370     test "$enable_shared" = no; then
30371  # Fast installation is not necessary
30372  enable_fast_install=needless
30373fi
30374
30375
30376
30377
30378
30379
30380
30381  fi # test -n "$compiler"
30382
30383  CC=$lt_save_CC
30384  CFLAGS=$lt_save_CFLAGS
30385  LDCXX=$LD
30386  LD=$lt_save_LD
30387  GCC=$lt_save_GCC
30388  with_gnu_ld=$lt_save_with_gnu_ld
30389  lt_cv_path_LDCXX=$lt_cv_path_LD
30390  lt_cv_path_LD=$lt_save_path_LD
30391  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
30392  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
30393fi # test "$_lt_caught_CXX_error" != yes
30394
30395ac_ext=c
30396ac_cpp='$CPP $CPPFLAGS'
30397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30399ac_compiler_gnu=$ac_cv_c_compiler_gnu
30400
30401
30402
30403gta=false
30404
30405# Check whether --with-gtest was given.
30406if test "${with_gtest+set}" = set; then :
30407  withval=$with_gtest; try_gtest=$withval
30408else
30409  try_gtest=yes
30410
30411fi
30412
30413case "$try_gtest" in
30414 yes)
30415    # Extract the first word of "gtest-config", so it can be a program name with args.
30416set dummy gtest-config; ac_word=$2
30417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30418$as_echo_n "checking for $ac_word... " >&6; }
30419if ${ac_cv_path_GTEST_CONFIG+:} false; then :
30420  $as_echo_n "(cached) " >&6
30421else
30422  case $GTEST_CONFIG in
30423  [\\/]* | ?:[\\/]*)
30424  ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
30425  ;;
30426  *)
30427  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30428for as_dir in $PATH
30429do
30430  IFS=$as_save_IFS
30431  test -z "$as_dir" && as_dir=.
30432    for ac_exec_ext in '' $ac_executable_extensions; do
30433  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30434    ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30436    break 2
30437  fi
30438done
30439  done
30440IFS=$as_save_IFS
30441
30442  ;;
30443esac
30444fi
30445GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
30446if test -n "$GTEST_CONFIG"; then
30447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
30448$as_echo "$GTEST_CONFIG" >&6; }
30449else
30450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30451$as_echo "no" >&6; }
30452fi
30453
30454
30455    { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
30456    case x${GTEST_CONFIG} in
30457     x) ;;
30458     *)
30459	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
30460$as_echo_n "checking gtest version... " >&6; }
30461	gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
30462	case "$gtest_version_test" in
30463	 toolow*)
30464	    ;;
30465	 *)
30466	    GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
30467	    GTEST_LIBS=`$GTEST_CONFIG --libs`
30468	    GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
30469	    GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`
30470
30471
30472
30473
30474	    gta=true
30475	    ;;
30476	esac
30477	gtest_version=`$GTEST_CONFIG --version`
30478	case "$gta" in
30479	 true)
30480	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
30481$as_echo "($gtest_version) ok" >&6; }
30482	    ;;
30483	 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
30484$as_echo "($gtest_version) not ok" >&6; }
30485	    ;;
30486	esac
30487	{ gtest_version_test=; unset gtest_version_test;}
30488	{ gtest_version=; unset gtest_version;}
30489    esac
30490esac
30491 if $gta; then
30492  GTEST_AVAILABLE_TRUE=
30493  GTEST_AVAILABLE_FALSE='#'
30494else
30495  GTEST_AVAILABLE_TRUE='#'
30496  GTEST_AVAILABLE_FALSE=
30497fi
30498
30499
30500
30501
30502# All libraries should be in various LIB_* variables now.
30503#LIBS=
30504# Sadly not.  There is a gettext() check somewhere, and on Solaris this pulls
30505# in -lintl -lgen, outside our "scope".
30506
30507ac_config_files="$ac_config_files Makefile"
30508
30509ac_config_files="$ac_config_files include/Makefile"
30510
30511ac_config_files="$ac_config_files scripts/Makefile"
30512
30513ac_config_files="$ac_config_files tests/Makefile"
30514
30515ac_config_files="$ac_config_files tests/fileHandlingTest.h"
30516
30517ac_config_files="$ac_config_files unity/Makefile"
30518
30519
30520cat >confcache <<\_ACEOF
30521# This file is a shell script that caches the results of configure
30522# tests run on this system so they can be shared between configure
30523# scripts and configure runs, see configure's option --config-cache.
30524# It is not useful on other systems.  If it contains results you don't
30525# want to keep, you may remove or edit it.
30526#
30527# config.status only pays attention to the cache file if you give it
30528# the --recheck option to rerun configure.
30529#
30530# `ac_cv_env_foo' variables (set or unset) will be overridden when
30531# loading this file, other *unset* `ac_cv_foo' will be assigned the
30532# following values.
30533
30534_ACEOF
30535
30536# The following way of writing the cache mishandles newlines in values,
30537# but we know of no workaround that is simple, portable, and efficient.
30538# So, we kill variables containing newlines.
30539# Ultrix sh set writes to stderr and can't be redirected directly,
30540# and sets the high bit in the cache file unless we assign to the vars.
30541(
30542  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30543    eval ac_val=\$$ac_var
30544    case $ac_val in #(
30545    *${as_nl}*)
30546      case $ac_var in #(
30547      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30548$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30549      esac
30550      case $ac_var in #(
30551      _ | IFS | as_nl) ;; #(
30552      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30553      *) { eval $ac_var=; unset $ac_var;} ;;
30554      esac ;;
30555    esac
30556  done
30557
30558  (set) 2>&1 |
30559    case $as_nl`(ac_space=' '; set) 2>&1` in #(
30560    *${as_nl}ac_space=\ *)
30561      # `set' does not quote correctly, so add quotes: double-quote
30562      # substitution turns \\\\ into \\, and sed turns \\ into \.
30563      sed -n \
30564	"s/'/'\\\\''/g;
30565	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30566      ;; #(
30567    *)
30568      # `set' quotes correctly as required by POSIX, so do not add quotes.
30569      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30570      ;;
30571    esac |
30572    sort
30573) |
30574  sed '
30575     /^ac_cv_env_/b end
30576     t clear
30577     :clear
30578     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30579     t end
30580     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30581     :end' >>confcache
30582if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30583  if test -w "$cache_file"; then
30584    if test "x$cache_file" != "x/dev/null"; then
30585      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30586$as_echo "$as_me: updating cache $cache_file" >&6;}
30587      if test ! -f "$cache_file" || test -h "$cache_file"; then
30588	cat confcache >"$cache_file"
30589      else
30590        case $cache_file in #(
30591        */* | ?:*)
30592	  mv -f confcache "$cache_file"$$ &&
30593	  mv -f "$cache_file"$$ "$cache_file" ;; #(
30594        *)
30595	  mv -f confcache "$cache_file" ;;
30596	esac
30597      fi
30598    fi
30599  else
30600    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30601$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30602  fi
30603fi
30604rm -f confcache
30605
30606test "x$prefix" = xNONE && prefix=$ac_default_prefix
30607# Let make expand exec_prefix.
30608test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30609
30610DEFS=-DHAVE_CONFIG_H
30611
30612ac_libobjs=
30613ac_ltlibobjs=
30614U=
30615for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30616  # 1. Remove the extension, and $U if already installed.
30617  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30618  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30619  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30620  #    will be set to the directory where LIBOBJS objects are built.
30621  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30622  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30623done
30624LIBOBJS=$ac_libobjs
30625
30626LTLIBOBJS=$ac_ltlibobjs
30627
30628
30629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
30630$as_echo_n "checking that generated files are newer than configure... " >&6; }
30631   if test -n "$am_sleep_pid"; then
30632     # Hide warnings about reused PIDs.
30633     wait $am_sleep_pid 2>/dev/null
30634   fi
30635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
30636$as_echo "done" >&6; }
30637 if test -n "$EXEEXT"; then
30638  am__EXEEXT_TRUE=
30639  am__EXEEXT_FALSE='#'
30640else
30641  am__EXEEXT_TRUE='#'
30642  am__EXEEXT_FALSE=
30643fi
30644
30645if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30646  as_fn_error $? "conditional \"AMDEP\" was never defined.
30647Usually this means the macro was only invoked conditionally." "$LINENO" 5
30648fi
30649if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30650  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
30651Usually this means the macro was only invoked conditionally." "$LINENO" 5
30652fi
30653if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30654  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
30655Usually this means the macro was only invoked conditionally." "$LINENO" 5
30656fi
30657
30658if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
30659  as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
30660Usually this means the macro was only invoked conditionally." "$LINENO" 5
30661fi
30662if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
30663  as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
30664Usually this means the macro was only invoked conditionally." "$LINENO" 5
30665fi
30666if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
30667  as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
30668Usually this means the macro was only invoked conditionally." "$LINENO" 5
30669fi
30670if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
30671  as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
30672Usually this means the macro was only invoked conditionally." "$LINENO" 5
30673fi
30674if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
30675  as_fn_error $? "conditional \"PTHREADS\" was never defined.
30676Usually this means the macro was only invoked conditionally." "$LINENO" 5
30677fi
30678if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
30679  as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
30680Usually this means the macro was only invoked conditionally." "$LINENO" 5
30681fi
30682if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
30683  as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
30684Usually this means the macro was only invoked conditionally." "$LINENO" 5
30685fi
30686if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
30687  as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
30688Usually this means the macro was only invoked conditionally." "$LINENO" 5
30689fi
30690if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
30691  as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
30692Usually this means the macro was only invoked conditionally." "$LINENO" 5
30693fi
30694if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
30695  as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
30696Usually this means the macro was only invoked conditionally." "$LINENO" 5
30697fi
30698if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
30699  as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
30700Usually this means the macro was only invoked conditionally." "$LINENO" 5
30701fi
30702if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30703  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
30704Usually this means the macro was only invoked conditionally." "$LINENO" 5
30705fi
30706if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
30707  as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
30708Usually this means the macro was only invoked conditionally." "$LINENO" 5
30709fi
30710
30711: "${CONFIG_STATUS=./config.status}"
30712ac_write_fail=0
30713ac_clean_files_save=$ac_clean_files
30714ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30715{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30716$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30717as_write_fail=0
30718cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30719#! $SHELL
30720# Generated by $as_me.
30721# Run this file to recreate the current configuration.
30722# Compiler output produced by configure, useful for debugging
30723# configure, is in config.log if it exists.
30724
30725debug=false
30726ac_cs_recheck=false
30727ac_cs_silent=false
30728
30729SHELL=\${CONFIG_SHELL-$SHELL}
30730export SHELL
30731_ASEOF
30732cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30733## -------------------- ##
30734## M4sh Initialization. ##
30735## -------------------- ##
30736
30737# Be more Bourne compatible
30738DUALCASE=1; export DUALCASE # for MKS sh
30739if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30740  emulate sh
30741  NULLCMD=:
30742  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30743  # is contrary to our usage.  Disable this feature.
30744  alias -g '${1+"$@"}'='"$@"'
30745  setopt NO_GLOB_SUBST
30746else
30747  case `(set -o) 2>/dev/null` in #(
30748  *posix*) :
30749    set -o posix ;; #(
30750  *) :
30751     ;;
30752esac
30753fi
30754
30755
30756as_nl='
30757'
30758export as_nl
30759# Printing a long string crashes Solaris 7 /usr/bin/printf.
30760as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30761as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30762as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30763# Prefer a ksh shell builtin over an external printf program on Solaris,
30764# but without wasting forks for bash or zsh.
30765if test -z "$BASH_VERSION$ZSH_VERSION" \
30766    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30767  as_echo='print -r --'
30768  as_echo_n='print -rn --'
30769elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30770  as_echo='printf %s\n'
30771  as_echo_n='printf %s'
30772else
30773  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30774    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30775    as_echo_n='/usr/ucb/echo -n'
30776  else
30777    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30778    as_echo_n_body='eval
30779      arg=$1;
30780      case $arg in #(
30781      *"$as_nl"*)
30782	expr "X$arg" : "X\\(.*\\)$as_nl";
30783	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30784      esac;
30785      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30786    '
30787    export as_echo_n_body
30788    as_echo_n='sh -c $as_echo_n_body as_echo'
30789  fi
30790  export as_echo_body
30791  as_echo='sh -c $as_echo_body as_echo'
30792fi
30793
30794# The user is always right.
30795if test "${PATH_SEPARATOR+set}" != set; then
30796  PATH_SEPARATOR=:
30797  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30798    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30799      PATH_SEPARATOR=';'
30800  }
30801fi
30802
30803
30804# IFS
30805# We need space, tab and new line, in precisely that order.  Quoting is
30806# there to prevent editors from complaining about space-tab.
30807# (If _AS_PATH_WALK were called with IFS unset, it would disable word
30808# splitting by setting IFS to empty value.)
30809IFS=" ""	$as_nl"
30810
30811# Find who we are.  Look in the path if we contain no directory separator.
30812as_myself=
30813case $0 in #((
30814  *[\\/]* ) as_myself=$0 ;;
30815  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30816for as_dir in $PATH
30817do
30818  IFS=$as_save_IFS
30819  test -z "$as_dir" && as_dir=.
30820    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30821  done
30822IFS=$as_save_IFS
30823
30824     ;;
30825esac
30826# We did not find ourselves, most probably we were run as `sh COMMAND'
30827# in which case we are not to be found in the path.
30828if test "x$as_myself" = x; then
30829  as_myself=$0
30830fi
30831if test ! -f "$as_myself"; then
30832  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30833  exit 1
30834fi
30835
30836# Unset variables that we do not need and which cause bugs (e.g. in
30837# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
30838# suppresses any "Segmentation fault" message there.  '((' could
30839# trigger a bug in pdksh 5.2.14.
30840for as_var in BASH_ENV ENV MAIL MAILPATH
30841do eval test x\${$as_var+set} = xset \
30842  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30843done
30844PS1='$ '
30845PS2='> '
30846PS4='+ '
30847
30848# NLS nuisances.
30849LC_ALL=C
30850export LC_ALL
30851LANGUAGE=C
30852export LANGUAGE
30853
30854# CDPATH.
30855(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30856
30857
30858# as_fn_error STATUS ERROR [LINENO LOG_FD]
30859# ----------------------------------------
30860# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30861# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30862# script with STATUS, using 1 if that was 0.
30863as_fn_error ()
30864{
30865  as_status=$1; test $as_status -eq 0 && as_status=1
30866  if test "$4"; then
30867    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30868    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30869  fi
30870  $as_echo "$as_me: error: $2" >&2
30871  as_fn_exit $as_status
30872} # as_fn_error
30873
30874
30875# as_fn_set_status STATUS
30876# -----------------------
30877# Set $? to STATUS, without forking.
30878as_fn_set_status ()
30879{
30880  return $1
30881} # as_fn_set_status
30882
30883# as_fn_exit STATUS
30884# -----------------
30885# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30886as_fn_exit ()
30887{
30888  set +e
30889  as_fn_set_status $1
30890  exit $1
30891} # as_fn_exit
30892
30893# as_fn_unset VAR
30894# ---------------
30895# Portably unset VAR.
30896as_fn_unset ()
30897{
30898  { eval $1=; unset $1;}
30899}
30900as_unset=as_fn_unset
30901# as_fn_append VAR VALUE
30902# ----------------------
30903# Append the text in VALUE to the end of the definition contained in VAR. Take
30904# advantage of any shell optimizations that allow amortized linear growth over
30905# repeated appends, instead of the typical quadratic growth present in naive
30906# implementations.
30907if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30908  eval 'as_fn_append ()
30909  {
30910    eval $1+=\$2
30911  }'
30912else
30913  as_fn_append ()
30914  {
30915    eval $1=\$$1\$2
30916  }
30917fi # as_fn_append
30918
30919# as_fn_arith ARG...
30920# ------------------
30921# Perform arithmetic evaluation on the ARGs, and store the result in the
30922# global $as_val. Take advantage of shells that can avoid forks. The arguments
30923# must be portable across $(()) and expr.
30924if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30925  eval 'as_fn_arith ()
30926  {
30927    as_val=$(( $* ))
30928  }'
30929else
30930  as_fn_arith ()
30931  {
30932    as_val=`expr "$@" || test $? -eq 1`
30933  }
30934fi # as_fn_arith
30935
30936
30937if expr a : '\(a\)' >/dev/null 2>&1 &&
30938   test "X`expr 00001 : '.*\(...\)'`" = X001; then
30939  as_expr=expr
30940else
30941  as_expr=false
30942fi
30943
30944if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30945  as_basename=basename
30946else
30947  as_basename=false
30948fi
30949
30950if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30951  as_dirname=dirname
30952else
30953  as_dirname=false
30954fi
30955
30956as_me=`$as_basename -- "$0" ||
30957$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30958	 X"$0" : 'X\(//\)$' \| \
30959	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30960$as_echo X/"$0" |
30961    sed '/^.*\/\([^/][^/]*\)\/*$/{
30962	    s//\1/
30963	    q
30964	  }
30965	  /^X\/\(\/\/\)$/{
30966	    s//\1/
30967	    q
30968	  }
30969	  /^X\/\(\/\).*/{
30970	    s//\1/
30971	    q
30972	  }
30973	  s/.*/./; q'`
30974
30975# Avoid depending upon Character Ranges.
30976as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30977as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30978as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30979as_cr_digits='0123456789'
30980as_cr_alnum=$as_cr_Letters$as_cr_digits
30981
30982ECHO_C= ECHO_N= ECHO_T=
30983case `echo -n x` in #(((((
30984-n*)
30985  case `echo 'xy\c'` in
30986  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
30987  xy)  ECHO_C='\c';;
30988  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
30989       ECHO_T='	';;
30990  esac;;
30991*)
30992  ECHO_N='-n';;
30993esac
30994
30995rm -f conf$$ conf$$.exe conf$$.file
30996if test -d conf$$.dir; then
30997  rm -f conf$$.dir/conf$$.file
30998else
30999  rm -f conf$$.dir
31000  mkdir conf$$.dir 2>/dev/null
31001fi
31002if (echo >conf$$.file) 2>/dev/null; then
31003  if ln -s conf$$.file conf$$ 2>/dev/null; then
31004    as_ln_s='ln -s'
31005    # ... but there are two gotchas:
31006    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31007    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31008    # In both cases, we have to default to `cp -pR'.
31009    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31010      as_ln_s='cp -pR'
31011  elif ln conf$$.file conf$$ 2>/dev/null; then
31012    as_ln_s=ln
31013  else
31014    as_ln_s='cp -pR'
31015  fi
31016else
31017  as_ln_s='cp -pR'
31018fi
31019rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31020rmdir conf$$.dir 2>/dev/null
31021
31022
31023# as_fn_mkdir_p
31024# -------------
31025# Create "$as_dir" as a directory, including parents if necessary.
31026as_fn_mkdir_p ()
31027{
31028
31029  case $as_dir in #(
31030  -*) as_dir=./$as_dir;;
31031  esac
31032  test -d "$as_dir" || eval $as_mkdir_p || {
31033    as_dirs=
31034    while :; do
31035      case $as_dir in #(
31036      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31037      *) as_qdir=$as_dir;;
31038      esac
31039      as_dirs="'$as_qdir' $as_dirs"
31040      as_dir=`$as_dirname -- "$as_dir" ||
31041$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31042	 X"$as_dir" : 'X\(//\)[^/]' \| \
31043	 X"$as_dir" : 'X\(//\)$' \| \
31044	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31045$as_echo X"$as_dir" |
31046    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31047	    s//\1/
31048	    q
31049	  }
31050	  /^X\(\/\/\)[^/].*/{
31051	    s//\1/
31052	    q
31053	  }
31054	  /^X\(\/\/\)$/{
31055	    s//\1/
31056	    q
31057	  }
31058	  /^X\(\/\).*/{
31059	    s//\1/
31060	    q
31061	  }
31062	  s/.*/./; q'`
31063      test -d "$as_dir" && break
31064    done
31065    test -z "$as_dirs" || eval "mkdir $as_dirs"
31066  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31067
31068
31069} # as_fn_mkdir_p
31070if mkdir -p . 2>/dev/null; then
31071  as_mkdir_p='mkdir -p "$as_dir"'
31072else
31073  test -d ./-p && rmdir ./-p
31074  as_mkdir_p=false
31075fi
31076
31077
31078# as_fn_executable_p FILE
31079# -----------------------
31080# Test if FILE is an executable regular file.
31081as_fn_executable_p ()
31082{
31083  test -f "$1" && test -x "$1"
31084} # as_fn_executable_p
31085as_test_x='test -x'
31086as_executable_p=as_fn_executable_p
31087
31088# Sed expression to map a string onto a valid CPP name.
31089as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31090
31091# Sed expression to map a string onto a valid variable name.
31092as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31093
31094
31095exec 6>&1
31096## ----------------------------------- ##
31097## Main body of $CONFIG_STATUS script. ##
31098## ----------------------------------- ##
31099_ASEOF
31100test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31101
31102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31103# Save the log message, to keep $0 and so on meaningful, and to
31104# report actual input values of CONFIG_FILES etc. instead of their
31105# values after options handling.
31106ac_log="
31107This file was extended by sntp $as_me 4.2.8p3, which was
31108generated by GNU Autoconf 2.69.  Invocation command line was
31109
31110  CONFIG_FILES    = $CONFIG_FILES
31111  CONFIG_HEADERS  = $CONFIG_HEADERS
31112  CONFIG_LINKS    = $CONFIG_LINKS
31113  CONFIG_COMMANDS = $CONFIG_COMMANDS
31114  $ $0 $@
31115
31116on `(hostname || uname -n) 2>/dev/null | sed 1q`
31117"
31118
31119_ACEOF
31120
31121case $ac_config_files in *"
31122"*) set x $ac_config_files; shift; ac_config_files=$*;;
31123esac
31124
31125case $ac_config_headers in *"
31126"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31127esac
31128
31129
31130cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31131# Files that config.status was made for.
31132config_files="$ac_config_files"
31133config_headers="$ac_config_headers"
31134config_commands="$ac_config_commands"
31135
31136_ACEOF
31137
31138cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31139ac_cs_usage="\
31140\`$as_me' instantiates files and other configuration actions
31141from templates according to the current configuration.  Unless the files
31142and actions are specified as TAGs, all are instantiated by default.
31143
31144Usage: $0 [OPTION]... [TAG]...
31145
31146  -h, --help       print this help, then exit
31147  -V, --version    print version number and configuration settings, then exit
31148      --config     print configuration, then exit
31149  -q, --quiet, --silent
31150                   do not print progress messages
31151  -d, --debug      don't remove temporary files
31152      --recheck    update $as_me by reconfiguring in the same conditions
31153      --file=FILE[:TEMPLATE]
31154                   instantiate the configuration file FILE
31155      --header=FILE[:TEMPLATE]
31156                   instantiate the configuration header FILE
31157
31158Configuration files:
31159$config_files
31160
31161Configuration headers:
31162$config_headers
31163
31164Configuration commands:
31165$config_commands
31166
31167Report bugs to <http://bugs.ntp.org./>.
31168sntp home page: <http://www.ntp.org./>."
31169
31170_ACEOF
31171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31172ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31173ac_cs_version="\\
31174sntp config.status 4.2.8p3
31175configured by $0, generated by GNU Autoconf 2.69,
31176  with options \\"\$ac_cs_config\\"
31177
31178Copyright (C) 2012 Free Software Foundation, Inc.
31179This config.status script is free software; the Free Software Foundation
31180gives unlimited permission to copy, distribute and modify it."
31181
31182ac_pwd='$ac_pwd'
31183srcdir='$srcdir'
31184INSTALL='$INSTALL'
31185MKDIR_P='$MKDIR_P'
31186AWK='$AWK'
31187test -n "\$AWK" || AWK=awk
31188_ACEOF
31189
31190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31191# The default lists apply if the user does not specify any file.
31192ac_need_defaults=:
31193while test $# != 0
31194do
31195  case $1 in
31196  --*=?*)
31197    ac_option=`expr "X$1" : 'X\([^=]*\)='`
31198    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31199    ac_shift=:
31200    ;;
31201  --*=)
31202    ac_option=`expr "X$1" : 'X\([^=]*\)='`
31203    ac_optarg=
31204    ac_shift=:
31205    ;;
31206  *)
31207    ac_option=$1
31208    ac_optarg=$2
31209    ac_shift=shift
31210    ;;
31211  esac
31212
31213  case $ac_option in
31214  # Handling of the options.
31215  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31216    ac_cs_recheck=: ;;
31217  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31218    $as_echo "$ac_cs_version"; exit ;;
31219  --config | --confi | --conf | --con | --co | --c )
31220    $as_echo "$ac_cs_config"; exit ;;
31221  --debug | --debu | --deb | --de | --d | -d )
31222    debug=: ;;
31223  --file | --fil | --fi | --f )
31224    $ac_shift
31225    case $ac_optarg in
31226    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31227    '') as_fn_error $? "missing file argument" ;;
31228    esac
31229    as_fn_append CONFIG_FILES " '$ac_optarg'"
31230    ac_need_defaults=false;;
31231  --header | --heade | --head | --hea )
31232    $ac_shift
31233    case $ac_optarg in
31234    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31235    esac
31236    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31237    ac_need_defaults=false;;
31238  --he | --h)
31239    # Conflict between --help and --header
31240    as_fn_error $? "ambiguous option: \`$1'
31241Try \`$0 --help' for more information.";;
31242  --help | --hel | -h )
31243    $as_echo "$ac_cs_usage"; exit ;;
31244  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31245  | -silent | --silent | --silen | --sile | --sil | --si | --s)
31246    ac_cs_silent=: ;;
31247
31248  # This is an error.
31249  -*) as_fn_error $? "unrecognized option: \`$1'
31250Try \`$0 --help' for more information." ;;
31251
31252  *) as_fn_append ac_config_targets " $1"
31253     ac_need_defaults=false ;;
31254
31255  esac
31256  shift
31257done
31258
31259ac_configure_extra_args=
31260
31261if $ac_cs_silent; then
31262  exec 6>/dev/null
31263  ac_configure_extra_args="$ac_configure_extra_args --silent"
31264fi
31265
31266_ACEOF
31267cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31268if \$ac_cs_recheck; then
31269  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31270  shift
31271  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31272  CONFIG_SHELL='$SHELL'
31273  export CONFIG_SHELL
31274  exec "\$@"
31275fi
31276
31277_ACEOF
31278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31279exec 5>>config.log
31280{
31281  echo
31282  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31283## Running $as_me. ##
31284_ASBOX
31285  $as_echo "$ac_log"
31286} >&5
31287
31288_ACEOF
31289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31290#
31291# INIT-COMMANDS
31292#
31293AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31294
31295
31296# The HP-UX ksh and POSIX shell print the target directory to stdout
31297# if CDPATH is set.
31298(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31299
31300sed_quote_subst='$sed_quote_subst'
31301double_quote_subst='$double_quote_subst'
31302delay_variable_subst='$delay_variable_subst'
31303SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31304Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31305GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31306EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31307FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31308SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31309ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31310LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31311enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31312macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31313macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31314enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31315pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31316enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31317host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31318host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31319host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31320build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31321build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31322build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31323NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31324LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31325max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31326ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31327exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31328lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31329lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31330lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31331lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31332lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31333reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31334reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31335OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31336deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31337file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31338file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31339want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31340DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31341sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31342AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31343AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31344archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31345STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31346RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31347old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31348old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31349old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31350lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31351CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31352CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31353compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31354GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31355lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31356lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31357lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31358lt_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"`'
31359nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31360lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31361objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31362MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31363lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31364lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31365lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31366lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31367lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31368need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31369MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31370DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31371NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31372LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31373OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31374OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31375libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31376shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31377extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31378archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31379enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31380export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31381whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31382compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31383old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31384old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31385archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31386archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31387module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31388module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31389with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31390allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31391no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31392hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31393hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31394hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31395hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31396hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31397hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31398hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31399hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31400inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31401link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31402always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31403export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31404exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31405include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31406prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31407postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31408file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31409variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31410need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31411need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31412version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31413runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31414shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31415shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31416libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31417library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31418soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31419install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31420postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31421postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31422finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31423finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31424hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31425sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31426sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31427hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31428enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31429enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31430enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31431old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31432striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31433compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31434predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31435postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31436predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31437postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31438compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31439LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31440reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31441reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31442old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31443compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31444GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31445lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31446lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31447lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31448lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31449lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31450archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31451enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31452export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31453whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31454compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31455old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31456old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31457archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31458archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31459module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31460module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31461with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31462allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31463no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31464hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31465hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31466hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31467hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31468hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31469hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31470hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31471hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31472inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31473link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31474always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31475export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31476exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31477include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31478prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31479postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31480file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31481hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31482compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31483predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31484postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31485predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31486postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31487compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31488
31489LTCC='$LTCC'
31490LTCFLAGS='$LTCFLAGS'
31491compiler='$compiler_DEFAULT'
31492
31493# A function that is used when there is no print builtin or printf.
31494func_fallback_echo ()
31495{
31496  eval 'cat <<_LTECHO_EOF
31497\$1
31498_LTECHO_EOF'
31499}
31500
31501# Quote evaled strings.
31502for var in SED \
31503GREP \
31504EGREP \
31505FGREP \
31506SHELL \
31507ECHO \
31508LD \
31509NM \
31510LN_S \
31511lt_SP2NL \
31512lt_NL2SP \
31513reload_flag \
31514OBJDUMP \
31515deplibs_check_method \
31516file_magic_cmd \
31517file_magic_glob \
31518want_nocaseglob \
31519DLLTOOL \
31520sharedlib_from_linklib_cmd \
31521AR \
31522AR_FLAGS \
31523archiver_list_spec \
31524STRIP \
31525RANLIB \
31526CC \
31527CFLAGS \
31528compiler \
31529lt_cv_sys_global_symbol_pipe \
31530lt_cv_sys_global_symbol_to_cdecl \
31531lt_cv_sys_global_symbol_to_c_name_address \
31532lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31533nm_file_list_spec \
31534lt_prog_compiler_no_builtin_flag \
31535lt_prog_compiler_pic \
31536lt_prog_compiler_wl \
31537lt_prog_compiler_static \
31538lt_cv_prog_compiler_c_o \
31539need_locks \
31540MANIFEST_TOOL \
31541DSYMUTIL \
31542NMEDIT \
31543LIPO \
31544OTOOL \
31545OTOOL64 \
31546shrext_cmds \
31547export_dynamic_flag_spec \
31548whole_archive_flag_spec \
31549compiler_needs_object \
31550with_gnu_ld \
31551allow_undefined_flag \
31552no_undefined_flag \
31553hardcode_libdir_flag_spec \
31554hardcode_libdir_flag_spec_ld \
31555hardcode_libdir_separator \
31556exclude_expsyms \
31557include_expsyms \
31558file_list_spec \
31559variables_saved_for_relink \
31560libname_spec \
31561library_names_spec \
31562soname_spec \
31563install_override_mode \
31564finish_eval \
31565old_striplib \
31566striplib \
31567compiler_lib_search_dirs \
31568predep_objects \
31569postdep_objects \
31570predeps \
31571postdeps \
31572compiler_lib_search_path \
31573LD_CXX \
31574reload_flag_CXX \
31575compiler_CXX \
31576lt_prog_compiler_no_builtin_flag_CXX \
31577lt_prog_compiler_pic_CXX \
31578lt_prog_compiler_wl_CXX \
31579lt_prog_compiler_static_CXX \
31580lt_cv_prog_compiler_c_o_CXX \
31581export_dynamic_flag_spec_CXX \
31582whole_archive_flag_spec_CXX \
31583compiler_needs_object_CXX \
31584with_gnu_ld_CXX \
31585allow_undefined_flag_CXX \
31586no_undefined_flag_CXX \
31587hardcode_libdir_flag_spec_CXX \
31588hardcode_libdir_flag_spec_ld_CXX \
31589hardcode_libdir_separator_CXX \
31590exclude_expsyms_CXX \
31591include_expsyms_CXX \
31592file_list_spec_CXX \
31593compiler_lib_search_dirs_CXX \
31594predep_objects_CXX \
31595postdep_objects_CXX \
31596predeps_CXX \
31597postdeps_CXX \
31598compiler_lib_search_path_CXX; do
31599    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31600    *[\\\\\\\`\\"\\\$]*)
31601      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31602      ;;
31603    *)
31604      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31605      ;;
31606    esac
31607done
31608
31609# Double-quote double-evaled strings.
31610for var in reload_cmds \
31611old_postinstall_cmds \
31612old_postuninstall_cmds \
31613old_archive_cmds \
31614extract_expsyms_cmds \
31615old_archive_from_new_cmds \
31616old_archive_from_expsyms_cmds \
31617archive_cmds \
31618archive_expsym_cmds \
31619module_cmds \
31620module_expsym_cmds \
31621export_symbols_cmds \
31622prelink_cmds \
31623postlink_cmds \
31624postinstall_cmds \
31625postuninstall_cmds \
31626finish_cmds \
31627sys_lib_search_path_spec \
31628sys_lib_dlsearch_path_spec \
31629reload_cmds_CXX \
31630old_archive_cmds_CXX \
31631old_archive_from_new_cmds_CXX \
31632old_archive_from_expsyms_cmds_CXX \
31633archive_cmds_CXX \
31634archive_expsym_cmds_CXX \
31635module_cmds_CXX \
31636module_expsym_cmds_CXX \
31637export_symbols_cmds_CXX \
31638prelink_cmds_CXX \
31639postlink_cmds_CXX; do
31640    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31641    *[\\\\\\\`\\"\\\$]*)
31642      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31643      ;;
31644    *)
31645      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31646      ;;
31647    esac
31648done
31649
31650ac_aux_dir='$ac_aux_dir'
31651xsi_shell='$xsi_shell'
31652lt_shell_append='$lt_shell_append'
31653
31654# See if we are running on zsh, and set the options which allow our
31655# commands through without removal of \ escapes INIT.
31656if test -n "\${ZSH_VERSION+set}" ; then
31657   setopt NO_GLOB_SUBST
31658fi
31659
31660
31661    PACKAGE='$PACKAGE'
31662    VERSION='$VERSION'
31663    TIMESTAMP='$TIMESTAMP'
31664    RM='$RM'
31665    ofile='$ofile'
31666
31667
31668
31669
31670
31671
31672_ACEOF
31673
31674cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31675
31676# Handling of arguments.
31677for ac_config_target in $ac_config_targets
31678do
31679  case $ac_config_target in
31680    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
31681    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31682    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31683    "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
31684    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31685    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
31686    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31687    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
31688    "tests/fileHandlingTest.h") CONFIG_FILES="$CONFIG_FILES tests/fileHandlingTest.h" ;;
31689    "unity/Makefile") CONFIG_FILES="$CONFIG_FILES unity/Makefile" ;;
31690
31691  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31692  esac
31693done
31694
31695
31696# If the user did not use the arguments to specify the items to instantiate,
31697# then the envvar interface is used.  Set only those that are not.
31698# We use the long form for the default assignment because of an extremely
31699# bizarre bug on SunOS 4.1.3.
31700if $ac_need_defaults; then
31701  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31702  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31703  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31704fi
31705
31706# Have a temporary directory for convenience.  Make it in the build tree
31707# simply because there is no reason against having it here, and in addition,
31708# creating and moving files from /tmp can sometimes cause problems.
31709# Hook for its removal unless debugging.
31710# Note that there is a small window in which the directory will not be cleaned:
31711# after its creation but before its name has been assigned to `$tmp'.
31712$debug ||
31713{
31714  tmp= ac_tmp=
31715  trap 'exit_status=$?
31716  : "${ac_tmp:=$tmp}"
31717  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31718' 0
31719  trap 'as_fn_exit 1' 1 2 13 15
31720}
31721# Create a (secure) tmp directory for tmp files.
31722
31723{
31724  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31725  test -d "$tmp"
31726}  ||
31727{
31728  tmp=./conf$$-$RANDOM
31729  (umask 077 && mkdir "$tmp")
31730} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31731ac_tmp=$tmp
31732
31733# Set up the scripts for CONFIG_FILES section.
31734# No need to generate them if there are no CONFIG_FILES.
31735# This happens for instance with `./config.status config.h'.
31736if test -n "$CONFIG_FILES"; then
31737
31738
31739ac_cr=`echo X | tr X '\015'`
31740# On cygwin, bash can eat \r inside `` if the user requested igncr.
31741# But we know of no other shell where ac_cr would be empty at this
31742# point, so we can use a bashism as a fallback.
31743if test "x$ac_cr" = x; then
31744  eval ac_cr=\$\'\\r\'
31745fi
31746ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31747if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31748  ac_cs_awk_cr='\\r'
31749else
31750  ac_cs_awk_cr=$ac_cr
31751fi
31752
31753echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31754_ACEOF
31755
31756
31757{
31758  echo "cat >conf$$subs.awk <<_ACEOF" &&
31759  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31760  echo "_ACEOF"
31761} >conf$$subs.sh ||
31762  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31763ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31764ac_delim='%!_!# '
31765for ac_last_try in false false false false false :; do
31766  . ./conf$$subs.sh ||
31767    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31768
31769  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31770  if test $ac_delim_n = $ac_delim_num; then
31771    break
31772  elif $ac_last_try; then
31773    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31774  else
31775    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31776  fi
31777done
31778rm -f conf$$subs.sh
31779
31780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31781cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31782_ACEOF
31783sed -n '
31784h
31785s/^/S["/; s/!.*/"]=/
31786p
31787g
31788s/^[^!]*!//
31789:repl
31790t repl
31791s/'"$ac_delim"'$//
31792t delim
31793:nl
31794h
31795s/\(.\{148\}\)..*/\1/
31796t more1
31797s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31798p
31799n
31800b repl
31801:more1
31802s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31803p
31804g
31805s/.\{148\}//
31806t nl
31807:delim
31808h
31809s/\(.\{148\}\)..*/\1/
31810t more2
31811s/["\\]/\\&/g; s/^/"/; s/$/"/
31812p
31813b
31814:more2
31815s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31816p
31817g
31818s/.\{148\}//
31819t delim
31820' <conf$$subs.awk | sed '
31821/^[^""]/{
31822  N
31823  s/\n//
31824}
31825' >>$CONFIG_STATUS || ac_write_fail=1
31826rm -f conf$$subs.awk
31827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31828_ACAWK
31829cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31830  for (key in S) S_is_set[key] = 1
31831  FS = ""
31832
31833}
31834{
31835  line = $ 0
31836  nfields = split(line, field, "@")
31837  substed = 0
31838  len = length(field[1])
31839  for (i = 2; i < nfields; i++) {
31840    key = field[i]
31841    keylen = length(key)
31842    if (S_is_set[key]) {
31843      value = S[key]
31844      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31845      len += length(value) + length(field[++i])
31846      substed = 1
31847    } else
31848      len += 1 + keylen
31849  }
31850
31851  print line
31852}
31853
31854_ACAWK
31855_ACEOF
31856cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31857if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31858  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31859else
31860  cat
31861fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31862  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31863_ACEOF
31864
31865# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31866# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31867# trailing colons and then remove the whole line if VPATH becomes empty
31868# (actually we leave an empty line to preserve line numbers).
31869if test "x$srcdir" = x.; then
31870  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
31871h
31872s///
31873s/^/:/
31874s/[	 ]*$/:/
31875s/:\$(srcdir):/:/g
31876s/:\${srcdir}:/:/g
31877s/:@srcdir@:/:/g
31878s/^:*//
31879s/:*$//
31880x
31881s/\(=[	 ]*\).*/\1/
31882G
31883s/\n//
31884s/^[^=]*=[	 ]*$//
31885}'
31886fi
31887
31888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31889fi # test -n "$CONFIG_FILES"
31890
31891# Set up the scripts for CONFIG_HEADERS section.
31892# No need to generate them if there are no CONFIG_HEADERS.
31893# This happens for instance with `./config.status Makefile'.
31894if test -n "$CONFIG_HEADERS"; then
31895cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31896BEGIN {
31897_ACEOF
31898
31899# Transform confdefs.h into an awk script `defines.awk', embedded as
31900# here-document in config.status, that substitutes the proper values into
31901# config.h.in to produce config.h.
31902
31903# Create a delimiter string that does not exist in confdefs.h, to ease
31904# handling of long lines.
31905ac_delim='%!_!# '
31906for ac_last_try in false false :; do
31907  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31908  if test -z "$ac_tt"; then
31909    break
31910  elif $ac_last_try; then
31911    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31912  else
31913    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31914  fi
31915done
31916
31917# For the awk script, D is an array of macro values keyed by name,
31918# likewise P contains macro parameters if any.  Preserve backslash
31919# newline sequences.
31920
31921ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31922sed -n '
31923s/.\{148\}/&'"$ac_delim"'/g
31924t rset
31925:rset
31926s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
31927t def
31928d
31929:def
31930s/\\$//
31931t bsnl
31932s/["\\]/\\&/g
31933s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
31934D["\1"]=" \3"/p
31935s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
31936d
31937:bsnl
31938s/["\\]/\\&/g
31939s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
31940D["\1"]=" \3\\\\\\n"\\/p
31941t cont
31942s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31943t cont
31944d
31945:cont
31946n
31947s/.\{148\}/&'"$ac_delim"'/g
31948t clear
31949:clear
31950s/\\$//
31951t bsnlc
31952s/["\\]/\\&/g; s/^/"/; s/$/"/p
31953d
31954:bsnlc
31955s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31956b cont
31957' <confdefs.h | sed '
31958s/'"$ac_delim"'/"\\\
31959"/g' >>$CONFIG_STATUS || ac_write_fail=1
31960
31961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31962  for (key in D) D_is_set[key] = 1
31963  FS = ""
31964}
31965/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31966  line = \$ 0
31967  split(line, arg, " ")
31968  if (arg[1] == "#") {
31969    defundef = arg[2]
31970    mac1 = arg[3]
31971  } else {
31972    defundef = substr(arg[1], 2)
31973    mac1 = arg[2]
31974  }
31975  split(mac1, mac2, "(") #)
31976  macro = mac2[1]
31977  prefix = substr(line, 1, index(line, defundef) - 1)
31978  if (D_is_set[macro]) {
31979    # Preserve the white space surrounding the "#".
31980    print prefix "define", macro P[macro] D[macro]
31981    next
31982  } else {
31983    # Replace #undef with comments.  This is necessary, for example,
31984    # in the case of _POSIX_SOURCE, which is predefined and required
31985    # on some systems where configure will not decide to define it.
31986    if (defundef == "undef") {
31987      print "/*", prefix defundef, macro, "*/"
31988      next
31989    }
31990  }
31991}
31992{ print }
31993_ACAWK
31994_ACEOF
31995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31996  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31997fi # test -n "$CONFIG_HEADERS"
31998
31999
32000eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32001shift
32002for ac_tag
32003do
32004  case $ac_tag in
32005  :[FHLC]) ac_mode=$ac_tag; continue;;
32006  esac
32007  case $ac_mode$ac_tag in
32008  :[FHL]*:*);;
32009  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32010  :[FH]-) ac_tag=-:-;;
32011  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32012  esac
32013  ac_save_IFS=$IFS
32014  IFS=:
32015  set x $ac_tag
32016  IFS=$ac_save_IFS
32017  shift
32018  ac_file=$1
32019  shift
32020
32021  case $ac_mode in
32022  :L) ac_source=$1;;
32023  :[FH])
32024    ac_file_inputs=
32025    for ac_f
32026    do
32027      case $ac_f in
32028      -) ac_f="$ac_tmp/stdin";;
32029      *) # Look for the file first in the build tree, then in the source tree
32030	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
32031	 # because $ac_f cannot contain `:'.
32032	 test -f "$ac_f" ||
32033	   case $ac_f in
32034	   [\\/$]*) false;;
32035	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32036	   esac ||
32037	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32038      esac
32039      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32040      as_fn_append ac_file_inputs " '$ac_f'"
32041    done
32042
32043    # Let's still pretend it is `configure' which instantiates (i.e., don't
32044    # use $as_me), people would be surprised to read:
32045    #    /* config.h.  Generated by config.status.  */
32046    configure_input='Generated from '`
32047	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32048	`' by configure.'
32049    if test x"$ac_file" != x-; then
32050      configure_input="$ac_file.  $configure_input"
32051      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32052$as_echo "$as_me: creating $ac_file" >&6;}
32053    fi
32054    # Neutralize special characters interpreted by sed in replacement strings.
32055    case $configure_input in #(
32056    *\&* | *\|* | *\\* )
32057       ac_sed_conf_input=`$as_echo "$configure_input" |
32058       sed 's/[\\\\&|]/\\\\&/g'`;; #(
32059    *) ac_sed_conf_input=$configure_input;;
32060    esac
32061
32062    case $ac_tag in
32063    *:-:* | *:-) cat >"$ac_tmp/stdin" \
32064      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32065    esac
32066    ;;
32067  esac
32068
32069  ac_dir=`$as_dirname -- "$ac_file" ||
32070$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32071	 X"$ac_file" : 'X\(//\)[^/]' \| \
32072	 X"$ac_file" : 'X\(//\)$' \| \
32073	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32074$as_echo X"$ac_file" |
32075    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32076	    s//\1/
32077	    q
32078	  }
32079	  /^X\(\/\/\)[^/].*/{
32080	    s//\1/
32081	    q
32082	  }
32083	  /^X\(\/\/\)$/{
32084	    s//\1/
32085	    q
32086	  }
32087	  /^X\(\/\).*/{
32088	    s//\1/
32089	    q
32090	  }
32091	  s/.*/./; q'`
32092  as_dir="$ac_dir"; as_fn_mkdir_p
32093  ac_builddir=.
32094
32095case "$ac_dir" in
32096.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32097*)
32098  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32099  # A ".." for each directory in $ac_dir_suffix.
32100  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32101  case $ac_top_builddir_sub in
32102  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32103  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32104  esac ;;
32105esac
32106ac_abs_top_builddir=$ac_pwd
32107ac_abs_builddir=$ac_pwd$ac_dir_suffix
32108# for backward compatibility:
32109ac_top_builddir=$ac_top_build_prefix
32110
32111case $srcdir in
32112  .)  # We are building in place.
32113    ac_srcdir=.
32114    ac_top_srcdir=$ac_top_builddir_sub
32115    ac_abs_top_srcdir=$ac_pwd ;;
32116  [\\/]* | ?:[\\/]* )  # Absolute name.
32117    ac_srcdir=$srcdir$ac_dir_suffix;
32118    ac_top_srcdir=$srcdir
32119    ac_abs_top_srcdir=$srcdir ;;
32120  *) # Relative name.
32121    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32122    ac_top_srcdir=$ac_top_build_prefix$srcdir
32123    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32124esac
32125ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32126
32127
32128  case $ac_mode in
32129  :F)
32130  #
32131  # CONFIG_FILE
32132  #
32133
32134  case $INSTALL in
32135  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32136  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32137  esac
32138  ac_MKDIR_P=$MKDIR_P
32139  case $MKDIR_P in
32140  [\\/$]* | ?:[\\/]* ) ;;
32141  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32142  esac
32143_ACEOF
32144
32145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32146# If the template does not know about datarootdir, expand it.
32147# FIXME: This hack should be removed a few years after 2.60.
32148ac_datarootdir_hack=; ac_datarootdir_seen=
32149ac_sed_dataroot='
32150/datarootdir/ {
32151  p
32152  q
32153}
32154/@datadir@/p
32155/@docdir@/p
32156/@infodir@/p
32157/@localedir@/p
32158/@mandir@/p'
32159case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32160*datarootdir*) ac_datarootdir_seen=yes;;
32161*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32162  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32163$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32164_ACEOF
32165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32166  ac_datarootdir_hack='
32167  s&@datadir@&$datadir&g
32168  s&@docdir@&$docdir&g
32169  s&@infodir@&$infodir&g
32170  s&@localedir@&$localedir&g
32171  s&@mandir@&$mandir&g
32172  s&\\\${datarootdir}&$datarootdir&g' ;;
32173esac
32174_ACEOF
32175
32176# Neutralize VPATH when `$srcdir' = `.'.
32177# Shell code in configure.ac might set extrasub.
32178# FIXME: do we really want to maintain this feature?
32179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32180ac_sed_extra="$ac_vpsub
32181$extrasub
32182_ACEOF
32183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32184:t
32185/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32186s|@configure_input@|$ac_sed_conf_input|;t t
32187s&@top_builddir@&$ac_top_builddir_sub&;t t
32188s&@top_build_prefix@&$ac_top_build_prefix&;t t
32189s&@srcdir@&$ac_srcdir&;t t
32190s&@abs_srcdir@&$ac_abs_srcdir&;t t
32191s&@top_srcdir@&$ac_top_srcdir&;t t
32192s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32193s&@builddir@&$ac_builddir&;t t
32194s&@abs_builddir@&$ac_abs_builddir&;t t
32195s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32196s&@INSTALL@&$ac_INSTALL&;t t
32197s&@MKDIR_P@&$ac_MKDIR_P&;t t
32198$ac_datarootdir_hack
32199"
32200eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
32201  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32202
32203test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32204  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32205  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
32206      "$ac_tmp/out"`; test -z "$ac_out"; } &&
32207  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32208which seems to be undefined.  Please make sure it is defined" >&5
32209$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32210which seems to be undefined.  Please make sure it is defined" >&2;}
32211
32212  rm -f "$ac_tmp/stdin"
32213  case $ac_file in
32214  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32215  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32216  esac \
32217  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32218 ;;
32219  :H)
32220  #
32221  # CONFIG_HEADER
32222  #
32223  if test x"$ac_file" != x-; then
32224    {
32225      $as_echo "/* $configure_input  */" \
32226      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32227    } >"$ac_tmp/config.h" \
32228      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32229    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32230      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32231$as_echo "$as_me: $ac_file is unchanged" >&6;}
32232    else
32233      rm -f "$ac_file"
32234      mv "$ac_tmp/config.h" "$ac_file" \
32235	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
32236    fi
32237  else
32238    $as_echo "/* $configure_input  */" \
32239      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32240      || as_fn_error $? "could not create -" "$LINENO" 5
32241  fi
32242# Compute "$ac_file"'s index in $config_headers.
32243_am_arg="$ac_file"
32244_am_stamp_count=1
32245for _am_header in $config_headers :; do
32246  case $_am_header in
32247    $_am_arg | $_am_arg:* )
32248      break ;;
32249    * )
32250      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32251  esac
32252done
32253echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32254$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32255	 X"$_am_arg" : 'X\(//\)[^/]' \| \
32256	 X"$_am_arg" : 'X\(//\)$' \| \
32257	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32258$as_echo X"$_am_arg" |
32259    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32260	    s//\1/
32261	    q
32262	  }
32263	  /^X\(\/\/\)[^/].*/{
32264	    s//\1/
32265	    q
32266	  }
32267	  /^X\(\/\/\)$/{
32268	    s//\1/
32269	    q
32270	  }
32271	  /^X\(\/\).*/{
32272	    s//\1/
32273	    q
32274	  }
32275	  s/.*/./; q'`/stamp-h$_am_stamp_count
32276 ;;
32277
32278  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32279$as_echo "$as_me: executing $ac_file commands" >&6;}
32280 ;;
32281  esac
32282
32283
32284  case $ac_file$ac_mode in
32285    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32286  # Older Autoconf quotes --file arguments for eval, but not when files
32287  # are listed without --file.  Let's play safe and only enable the eval
32288  # if we detect the quoting.
32289  case $CONFIG_FILES in
32290  *\'*) eval set x "$CONFIG_FILES" ;;
32291  *)   set x $CONFIG_FILES ;;
32292  esac
32293  shift
32294  for mf
32295  do
32296    # Strip MF so we end up with the name of the file.
32297    mf=`echo "$mf" | sed -e 's/:.*$//'`
32298    # Check whether this is an Automake generated Makefile or not.
32299    # We used to match only the files named 'Makefile.in', but
32300    # some people rename them; so instead we look at the file content.
32301    # Grep'ing the first line is not enough: some people post-process
32302    # each Makefile.in and add a new line on top of each file to say so.
32303    # Grep'ing the whole file is not good either: AIX grep has a line
32304    # limit of 2048, but all sed's we know have understand at least 4000.
32305    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
32306      dirpart=`$as_dirname -- "$mf" ||
32307$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32308	 X"$mf" : 'X\(//\)[^/]' \| \
32309	 X"$mf" : 'X\(//\)$' \| \
32310	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32311$as_echo X"$mf" |
32312    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32313	    s//\1/
32314	    q
32315	  }
32316	  /^X\(\/\/\)[^/].*/{
32317	    s//\1/
32318	    q
32319	  }
32320	  /^X\(\/\/\)$/{
32321	    s//\1/
32322	    q
32323	  }
32324	  /^X\(\/\).*/{
32325	    s//\1/
32326	    q
32327	  }
32328	  s/.*/./; q'`
32329    else
32330      continue
32331    fi
32332    # Extract the definition of DEPDIR, am__include, and am__quote
32333    # from the Makefile without running 'make'.
32334    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32335    test -z "$DEPDIR" && continue
32336    am__include=`sed -n 's/^am__include = //p' < "$mf"`
32337    test -z "$am__include" && continue
32338    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32339    # Find all dependency output files, they are included files with
32340    # $(DEPDIR) in their names.  We invoke sed twice because it is the
32341    # simplest approach to changing $(DEPDIR) to its actual value in the
32342    # expansion.
32343    for file in `sed -n "
32344      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32345	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
32346      # Make sure the directory exists.
32347      test -f "$dirpart/$file" && continue
32348      fdir=`$as_dirname -- "$file" ||
32349$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32350	 X"$file" : 'X\(//\)[^/]' \| \
32351	 X"$file" : 'X\(//\)$' \| \
32352	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32353$as_echo X"$file" |
32354    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32355	    s//\1/
32356	    q
32357	  }
32358	  /^X\(\/\/\)[^/].*/{
32359	    s//\1/
32360	    q
32361	  }
32362	  /^X\(\/\/\)$/{
32363	    s//\1/
32364	    q
32365	  }
32366	  /^X\(\/\).*/{
32367	    s//\1/
32368	    q
32369	  }
32370	  s/.*/./; q'`
32371      as_dir=$dirpart/$fdir; as_fn_mkdir_p
32372      # echo "creating $dirpart/$file"
32373      echo '# dummy' > "$dirpart/$file"
32374    done
32375  done
32376}
32377 ;;
32378    "libtool":C)
32379
32380    # See if we are running on zsh, and set the options which allow our
32381    # commands through without removal of \ escapes.
32382    if test -n "${ZSH_VERSION+set}" ; then
32383      setopt NO_GLOB_SUBST
32384    fi
32385
32386    cfgfile="${ofile}T"
32387    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32388    $RM "$cfgfile"
32389
32390    cat <<_LT_EOF >> "$cfgfile"
32391#! $SHELL
32392
32393# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32394# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32395# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32396# NOTE: Changes made to this file will be lost: look at ltmain.sh.
32397#
32398#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32399#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32400#                 Inc.
32401#   Written by Gordon Matzigkeit, 1996
32402#
32403#   This file is part of GNU Libtool.
32404#
32405# GNU Libtool is free software; you can redistribute it and/or
32406# modify it under the terms of the GNU General Public License as
32407# published by the Free Software Foundation; either version 2 of
32408# the License, or (at your option) any later version.
32409#
32410# As a special exception to the GNU General Public License,
32411# if you distribute this file as part of a program or library that
32412# is built using GNU Libtool, you may include this file under the
32413# same distribution terms that you use for the rest of that program.
32414#
32415# GNU Libtool is distributed in the hope that it will be useful,
32416# but WITHOUT ANY WARRANTY; without even the implied warranty of
32417# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32418# GNU General Public License for more details.
32419#
32420# You should have received a copy of the GNU General Public License
32421# along with GNU Libtool; see the file COPYING.  If not, a copy
32422# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32423# obtained by writing to the Free Software Foundation, Inc.,
32424# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32425
32426
32427# The names of the tagged configurations supported by this script.
32428available_tags="CXX "
32429
32430# ### BEGIN LIBTOOL CONFIG
32431
32432# A sed program that does not truncate output.
32433SED=$lt_SED
32434
32435# Sed that helps us avoid accidentally triggering echo(1) options like -n.
32436Xsed="\$SED -e 1s/^X//"
32437
32438# A grep program that handles long lines.
32439GREP=$lt_GREP
32440
32441# An ERE matcher.
32442EGREP=$lt_EGREP
32443
32444# A literal string matcher.
32445FGREP=$lt_FGREP
32446
32447# Shell to use when invoking shell scripts.
32448SHELL=$lt_SHELL
32449
32450# An echo program that protects backslashes.
32451ECHO=$lt_ECHO
32452
32453# Whether or not to build shared libraries.
32454build_libtool_libs=$enable_shared
32455
32456# Which release of libtool.m4 was used?
32457macro_version=$macro_version
32458macro_revision=$macro_revision
32459
32460# Whether or not to build static libraries.
32461build_old_libs=$enable_static
32462
32463# What type of objects to build.
32464pic_mode=$pic_mode
32465
32466# Whether or not to optimize for fast installation.
32467fast_install=$enable_fast_install
32468
32469# The host system.
32470host_alias=$host_alias
32471host=$host
32472host_os=$host_os
32473
32474# The build system.
32475build_alias=$build_alias
32476build=$build
32477build_os=$build_os
32478
32479# A BSD- or MS-compatible name lister.
32480NM=$lt_NM
32481
32482# Whether we need soft or hard links.
32483LN_S=$lt_LN_S
32484
32485# What is the maximum length of a command?
32486max_cmd_len=$max_cmd_len
32487
32488# Object file suffix (normally "o").
32489objext=$ac_objext
32490
32491# Executable file suffix (normally "").
32492exeext=$exeext
32493
32494# whether the shell understands "unset".
32495lt_unset=$lt_unset
32496
32497# turn spaces into newlines.
32498SP2NL=$lt_lt_SP2NL
32499
32500# turn newlines into spaces.
32501NL2SP=$lt_lt_NL2SP
32502
32503# convert \$build file names to \$host format.
32504to_host_file_cmd=$lt_cv_to_host_file_cmd
32505
32506# convert \$build files to toolchain format.
32507to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32508
32509# An object symbol dumper.
32510OBJDUMP=$lt_OBJDUMP
32511
32512# Method to check whether dependent libraries are shared objects.
32513deplibs_check_method=$lt_deplibs_check_method
32514
32515# Command to use when deplibs_check_method = "file_magic".
32516file_magic_cmd=$lt_file_magic_cmd
32517
32518# How to find potential files when deplibs_check_method = "file_magic".
32519file_magic_glob=$lt_file_magic_glob
32520
32521# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32522want_nocaseglob=$lt_want_nocaseglob
32523
32524# DLL creation program.
32525DLLTOOL=$lt_DLLTOOL
32526
32527# Command to associate shared and link libraries.
32528sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32529
32530# The archiver.
32531AR=$lt_AR
32532
32533# Flags to create an archive.
32534AR_FLAGS=$lt_AR_FLAGS
32535
32536# How to feed a file listing to the archiver.
32537archiver_list_spec=$lt_archiver_list_spec
32538
32539# A symbol stripping program.
32540STRIP=$lt_STRIP
32541
32542# Commands used to install an old-style archive.
32543RANLIB=$lt_RANLIB
32544old_postinstall_cmds=$lt_old_postinstall_cmds
32545old_postuninstall_cmds=$lt_old_postuninstall_cmds
32546
32547# Whether to use a lock for old archive extraction.
32548lock_old_archive_extraction=$lock_old_archive_extraction
32549
32550# A C compiler.
32551LTCC=$lt_CC
32552
32553# LTCC compiler flags.
32554LTCFLAGS=$lt_CFLAGS
32555
32556# Take the output of nm and produce a listing of raw symbols and C names.
32557global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32558
32559# Transform the output of nm in a proper C declaration.
32560global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32561
32562# Transform the output of nm in a C name address pair.
32563global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32564
32565# Transform the output of nm in a C name address pair when lib prefix is needed.
32566global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32567
32568# Specify filename containing input files for \$NM.
32569nm_file_list_spec=$lt_nm_file_list_spec
32570
32571# The root where to search for dependent libraries,and in which our libraries should be installed.
32572lt_sysroot=$lt_sysroot
32573
32574# The name of the directory that contains temporary libtool files.
32575objdir=$objdir
32576
32577# Used to examine libraries when file_magic_cmd begins with "file".
32578MAGIC_CMD=$MAGIC_CMD
32579
32580# Must we lock files when doing compilation?
32581need_locks=$lt_need_locks
32582
32583# Manifest tool.
32584MANIFEST_TOOL=$lt_MANIFEST_TOOL
32585
32586# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32587DSYMUTIL=$lt_DSYMUTIL
32588
32589# Tool to change global to local symbols on Mac OS X.
32590NMEDIT=$lt_NMEDIT
32591
32592# Tool to manipulate fat objects and archives on Mac OS X.
32593LIPO=$lt_LIPO
32594
32595# ldd/readelf like tool for Mach-O binaries on Mac OS X.
32596OTOOL=$lt_OTOOL
32597
32598# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32599OTOOL64=$lt_OTOOL64
32600
32601# Old archive suffix (normally "a").
32602libext=$libext
32603
32604# Shared library suffix (normally ".so").
32605shrext_cmds=$lt_shrext_cmds
32606
32607# The commands to extract the exported symbol list from a shared archive.
32608extract_expsyms_cmds=$lt_extract_expsyms_cmds
32609
32610# Variables whose values should be saved in libtool wrapper scripts and
32611# restored at link time.
32612variables_saved_for_relink=$lt_variables_saved_for_relink
32613
32614# Do we need the "lib" prefix for modules?
32615need_lib_prefix=$need_lib_prefix
32616
32617# Do we need a version for libraries?
32618need_version=$need_version
32619
32620# Library versioning type.
32621version_type=$version_type
32622
32623# Shared library runtime path variable.
32624runpath_var=$runpath_var
32625
32626# Shared library path variable.
32627shlibpath_var=$shlibpath_var
32628
32629# Is shlibpath searched before the hard-coded library search path?
32630shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32631
32632# Format of library name prefix.
32633libname_spec=$lt_libname_spec
32634
32635# List of archive names.  First name is the real one, the rest are links.
32636# The last name is the one that the linker finds with -lNAME
32637library_names_spec=$lt_library_names_spec
32638
32639# The coded name of the library, if different from the real name.
32640soname_spec=$lt_soname_spec
32641
32642# Permission mode override for installation of shared libraries.
32643install_override_mode=$lt_install_override_mode
32644
32645# Command to use after installation of a shared archive.
32646postinstall_cmds=$lt_postinstall_cmds
32647
32648# Command to use after uninstallation of a shared archive.
32649postuninstall_cmds=$lt_postuninstall_cmds
32650
32651# Commands used to finish a libtool library installation in a directory.
32652finish_cmds=$lt_finish_cmds
32653
32654# As "finish_cmds", except a single script fragment to be evaled but
32655# not shown.
32656finish_eval=$lt_finish_eval
32657
32658# Whether we should hardcode library paths into libraries.
32659hardcode_into_libs=$hardcode_into_libs
32660
32661# Compile-time system search path for libraries.
32662sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32663
32664# Run-time system search path for libraries.
32665sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32666
32667# Whether dlopen is supported.
32668dlopen_support=$enable_dlopen
32669
32670# Whether dlopen of programs is supported.
32671dlopen_self=$enable_dlopen_self
32672
32673# Whether dlopen of statically linked programs is supported.
32674dlopen_self_static=$enable_dlopen_self_static
32675
32676# Commands to strip libraries.
32677old_striplib=$lt_old_striplib
32678striplib=$lt_striplib
32679
32680
32681# The linker used to build libraries.
32682LD=$lt_LD
32683
32684# How to create reloadable object files.
32685reload_flag=$lt_reload_flag
32686reload_cmds=$lt_reload_cmds
32687
32688# Commands used to build an old-style archive.
32689old_archive_cmds=$lt_old_archive_cmds
32690
32691# A language specific compiler.
32692CC=$lt_compiler
32693
32694# Is the compiler the GNU compiler?
32695with_gcc=$GCC
32696
32697# Compiler flag to turn off builtin functions.
32698no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32699
32700# Additional compiler flags for building library objects.
32701pic_flag=$lt_lt_prog_compiler_pic
32702
32703# How to pass a linker flag through the compiler.
32704wl=$lt_lt_prog_compiler_wl
32705
32706# Compiler flag to prevent dynamic linking.
32707link_static_flag=$lt_lt_prog_compiler_static
32708
32709# Does compiler simultaneously support -c and -o options?
32710compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32711
32712# Whether or not to add -lc for building shared libraries.
32713build_libtool_need_lc=$archive_cmds_need_lc
32714
32715# Whether or not to disallow shared libs when runtime libs are static.
32716allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32717
32718# Compiler flag to allow reflexive dlopens.
32719export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32720
32721# Compiler flag to generate shared objects directly from archives.
32722whole_archive_flag_spec=$lt_whole_archive_flag_spec
32723
32724# Whether the compiler copes with passing no objects directly.
32725compiler_needs_object=$lt_compiler_needs_object
32726
32727# Create an old-style archive from a shared archive.
32728old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32729
32730# Create a temporary old-style archive to link instead of a shared archive.
32731old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32732
32733# Commands used to build a shared archive.
32734archive_cmds=$lt_archive_cmds
32735archive_expsym_cmds=$lt_archive_expsym_cmds
32736
32737# Commands used to build a loadable module if different from building
32738# a shared archive.
32739module_cmds=$lt_module_cmds
32740module_expsym_cmds=$lt_module_expsym_cmds
32741
32742# Whether we are building with GNU ld or not.
32743with_gnu_ld=$lt_with_gnu_ld
32744
32745# Flag that allows shared libraries with undefined symbols to be built.
32746allow_undefined_flag=$lt_allow_undefined_flag
32747
32748# Flag that enforces no undefined symbols.
32749no_undefined_flag=$lt_no_undefined_flag
32750
32751# Flag to hardcode \$libdir into a binary during linking.
32752# This must work even if \$libdir does not exist
32753hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32754
32755# If ld is used when linking, flag to hardcode \$libdir into a binary
32756# during linking.  This must work even if \$libdir does not exist.
32757hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32758
32759# Whether we need a single "-rpath" flag with a separated argument.
32760hardcode_libdir_separator=$lt_hardcode_libdir_separator
32761
32762# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32763# DIR into the resulting binary.
32764hardcode_direct=$hardcode_direct
32765
32766# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32767# DIR into the resulting binary and the resulting library dependency is
32768# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32769# library is relocated.
32770hardcode_direct_absolute=$hardcode_direct_absolute
32771
32772# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32773# into the resulting binary.
32774hardcode_minus_L=$hardcode_minus_L
32775
32776# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32777# into the resulting binary.
32778hardcode_shlibpath_var=$hardcode_shlibpath_var
32779
32780# Set to "yes" if building a shared library automatically hardcodes DIR
32781# into the library and all subsequent libraries and executables linked
32782# against it.
32783hardcode_automatic=$hardcode_automatic
32784
32785# Set to yes if linker adds runtime paths of dependent libraries
32786# to runtime path list.
32787inherit_rpath=$inherit_rpath
32788
32789# Whether libtool must link a program against all its dependency libraries.
32790link_all_deplibs=$link_all_deplibs
32791
32792# Set to "yes" if exported symbols are required.
32793always_export_symbols=$always_export_symbols
32794
32795# The commands to list exported symbols.
32796export_symbols_cmds=$lt_export_symbols_cmds
32797
32798# Symbols that should not be listed in the preloaded symbols.
32799exclude_expsyms=$lt_exclude_expsyms
32800
32801# Symbols that must always be exported.
32802include_expsyms=$lt_include_expsyms
32803
32804# Commands necessary for linking programs (against libraries) with templates.
32805prelink_cmds=$lt_prelink_cmds
32806
32807# Commands necessary for finishing linking programs.
32808postlink_cmds=$lt_postlink_cmds
32809
32810# Specify filename containing input files.
32811file_list_spec=$lt_file_list_spec
32812
32813# How to hardcode a shared library path into an executable.
32814hardcode_action=$hardcode_action
32815
32816# The directories searched by this compiler when creating a shared library.
32817compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32818
32819# Dependencies to place before and after the objects being linked to
32820# create a shared library.
32821predep_objects=$lt_predep_objects
32822postdep_objects=$lt_postdep_objects
32823predeps=$lt_predeps
32824postdeps=$lt_postdeps
32825
32826# The library search path used internally by the compiler when linking
32827# a shared library.
32828compiler_lib_search_path=$lt_compiler_lib_search_path
32829
32830# ### END LIBTOOL CONFIG
32831
32832_LT_EOF
32833
32834  case $host_os in
32835  aix3*)
32836    cat <<\_LT_EOF >> "$cfgfile"
32837# AIX sometimes has problems with the GCC collect2 program.  For some
32838# reason, if we set the COLLECT_NAMES environment variable, the problems
32839# vanish in a puff of smoke.
32840if test "X${COLLECT_NAMES+set}" != Xset; then
32841  COLLECT_NAMES=
32842  export COLLECT_NAMES
32843fi
32844_LT_EOF
32845    ;;
32846  esac
32847
32848
32849ltmain="$ac_aux_dir/ltmain.sh"
32850
32851
32852  # We use sed instead of cat because bash on DJGPP gets confused if
32853  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
32854  # text mode, it properly converts lines to CR/LF.  This bash problem
32855  # is reportedly fixed, but why not run on old versions too?
32856  sed '$q' "$ltmain" >> "$cfgfile" \
32857     || (rm -f "$cfgfile"; exit 1)
32858
32859  if test x"$xsi_shell" = xyes; then
32860  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
32861func_dirname ()\
32862{\
32863\    case ${1} in\
32864\      */*) func_dirname_result="${1%/*}${2}" ;;\
32865\      *  ) func_dirname_result="${3}" ;;\
32866\    esac\
32867} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
32868  && mv -f "$cfgfile.tmp" "$cfgfile" \
32869    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32870test 0 -eq $? || _lt_function_replace_fail=:
32871
32872
32873  sed -e '/^func_basename ()$/,/^} # func_basename /c\
32874func_basename ()\
32875{\
32876\    func_basename_result="${1##*/}"\
32877} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
32878  && mv -f "$cfgfile.tmp" "$cfgfile" \
32879    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32880test 0 -eq $? || _lt_function_replace_fail=:
32881
32882
32883  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
32884func_dirname_and_basename ()\
32885{\
32886\    case ${1} in\
32887\      */*) func_dirname_result="${1%/*}${2}" ;;\
32888\      *  ) func_dirname_result="${3}" ;;\
32889\    esac\
32890\    func_basename_result="${1##*/}"\
32891} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
32892  && mv -f "$cfgfile.tmp" "$cfgfile" \
32893    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32894test 0 -eq $? || _lt_function_replace_fail=:
32895
32896
32897  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
32898func_stripname ()\
32899{\
32900\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
32901\    # positional parameters, so assign one to ordinary parameter first.\
32902\    func_stripname_result=${3}\
32903\    func_stripname_result=${func_stripname_result#"${1}"}\
32904\    func_stripname_result=${func_stripname_result%"${2}"}\
32905} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
32906  && mv -f "$cfgfile.tmp" "$cfgfile" \
32907    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32908test 0 -eq $? || _lt_function_replace_fail=:
32909
32910
32911  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
32912func_split_long_opt ()\
32913{\
32914\    func_split_long_opt_name=${1%%=*}\
32915\    func_split_long_opt_arg=${1#*=}\
32916} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
32917  && mv -f "$cfgfile.tmp" "$cfgfile" \
32918    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32919test 0 -eq $? || _lt_function_replace_fail=:
32920
32921
32922  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
32923func_split_short_opt ()\
32924{\
32925\    func_split_short_opt_arg=${1#??}\
32926\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
32927} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
32928  && mv -f "$cfgfile.tmp" "$cfgfile" \
32929    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32930test 0 -eq $? || _lt_function_replace_fail=:
32931
32932
32933  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
32934func_lo2o ()\
32935{\
32936\    case ${1} in\
32937\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
32938\      *)    func_lo2o_result=${1} ;;\
32939\    esac\
32940} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
32941  && mv -f "$cfgfile.tmp" "$cfgfile" \
32942    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32943test 0 -eq $? || _lt_function_replace_fail=:
32944
32945
32946  sed -e '/^func_xform ()$/,/^} # func_xform /c\
32947func_xform ()\
32948{\
32949    func_xform_result=${1%.*}.lo\
32950} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
32951  && mv -f "$cfgfile.tmp" "$cfgfile" \
32952    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32953test 0 -eq $? || _lt_function_replace_fail=:
32954
32955
32956  sed -e '/^func_arith ()$/,/^} # func_arith /c\
32957func_arith ()\
32958{\
32959    func_arith_result=$(( $* ))\
32960} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
32961  && mv -f "$cfgfile.tmp" "$cfgfile" \
32962    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32963test 0 -eq $? || _lt_function_replace_fail=:
32964
32965
32966  sed -e '/^func_len ()$/,/^} # func_len /c\
32967func_len ()\
32968{\
32969    func_len_result=${#1}\
32970} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
32971  && mv -f "$cfgfile.tmp" "$cfgfile" \
32972    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32973test 0 -eq $? || _lt_function_replace_fail=:
32974
32975fi
32976
32977if test x"$lt_shell_append" = xyes; then
32978  sed -e '/^func_append ()$/,/^} # func_append /c\
32979func_append ()\
32980{\
32981    eval "${1}+=\\${2}"\
32982} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
32983  && mv -f "$cfgfile.tmp" "$cfgfile" \
32984    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32985test 0 -eq $? || _lt_function_replace_fail=:
32986
32987
32988  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
32989func_append_quoted ()\
32990{\
32991\    func_quote_for_eval "${2}"\
32992\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
32993} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
32994  && mv -f "$cfgfile.tmp" "$cfgfile" \
32995    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32996test 0 -eq $? || _lt_function_replace_fail=:
32997
32998
32999  # Save a `func_append' function call where possible by direct use of '+='
33000  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33001    && mv -f "$cfgfile.tmp" "$cfgfile" \
33002      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33003  test 0 -eq $? || _lt_function_replace_fail=:
33004else
33005  # Save a `func_append' function call even when '+=' is not available
33006  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33007    && mv -f "$cfgfile.tmp" "$cfgfile" \
33008      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33009  test 0 -eq $? || _lt_function_replace_fail=:
33010fi
33011
33012if test x"$_lt_function_replace_fail" = x":"; then
33013  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33014$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33015fi
33016
33017
33018   mv -f "$cfgfile" "$ofile" ||
33019    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33020  chmod +x "$ofile"
33021
33022
33023    cat <<_LT_EOF >> "$ofile"
33024
33025# ### BEGIN LIBTOOL TAG CONFIG: CXX
33026
33027# The linker used to build libraries.
33028LD=$lt_LD_CXX
33029
33030# How to create reloadable object files.
33031reload_flag=$lt_reload_flag_CXX
33032reload_cmds=$lt_reload_cmds_CXX
33033
33034# Commands used to build an old-style archive.
33035old_archive_cmds=$lt_old_archive_cmds_CXX
33036
33037# A language specific compiler.
33038CC=$lt_compiler_CXX
33039
33040# Is the compiler the GNU compiler?
33041with_gcc=$GCC_CXX
33042
33043# Compiler flag to turn off builtin functions.
33044no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33045
33046# Additional compiler flags for building library objects.
33047pic_flag=$lt_lt_prog_compiler_pic_CXX
33048
33049# How to pass a linker flag through the compiler.
33050wl=$lt_lt_prog_compiler_wl_CXX
33051
33052# Compiler flag to prevent dynamic linking.
33053link_static_flag=$lt_lt_prog_compiler_static_CXX
33054
33055# Does compiler simultaneously support -c and -o options?
33056compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33057
33058# Whether or not to add -lc for building shared libraries.
33059build_libtool_need_lc=$archive_cmds_need_lc_CXX
33060
33061# Whether or not to disallow shared libs when runtime libs are static.
33062allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33063
33064# Compiler flag to allow reflexive dlopens.
33065export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33066
33067# Compiler flag to generate shared objects directly from archives.
33068whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33069
33070# Whether the compiler copes with passing no objects directly.
33071compiler_needs_object=$lt_compiler_needs_object_CXX
33072
33073# Create an old-style archive from a shared archive.
33074old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33075
33076# Create a temporary old-style archive to link instead of a shared archive.
33077old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33078
33079# Commands used to build a shared archive.
33080archive_cmds=$lt_archive_cmds_CXX
33081archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33082
33083# Commands used to build a loadable module if different from building
33084# a shared archive.
33085module_cmds=$lt_module_cmds_CXX
33086module_expsym_cmds=$lt_module_expsym_cmds_CXX
33087
33088# Whether we are building with GNU ld or not.
33089with_gnu_ld=$lt_with_gnu_ld_CXX
33090
33091# Flag that allows shared libraries with undefined symbols to be built.
33092allow_undefined_flag=$lt_allow_undefined_flag_CXX
33093
33094# Flag that enforces no undefined symbols.
33095no_undefined_flag=$lt_no_undefined_flag_CXX
33096
33097# Flag to hardcode \$libdir into a binary during linking.
33098# This must work even if \$libdir does not exist
33099hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33100
33101# If ld is used when linking, flag to hardcode \$libdir into a binary
33102# during linking.  This must work even if \$libdir does not exist.
33103hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33104
33105# Whether we need a single "-rpath" flag with a separated argument.
33106hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33107
33108# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33109# DIR into the resulting binary.
33110hardcode_direct=$hardcode_direct_CXX
33111
33112# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33113# DIR into the resulting binary and the resulting library dependency is
33114# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33115# library is relocated.
33116hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33117
33118# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33119# into the resulting binary.
33120hardcode_minus_L=$hardcode_minus_L_CXX
33121
33122# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33123# into the resulting binary.
33124hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33125
33126# Set to "yes" if building a shared library automatically hardcodes DIR
33127# into the library and all subsequent libraries and executables linked
33128# against it.
33129hardcode_automatic=$hardcode_automatic_CXX
33130
33131# Set to yes if linker adds runtime paths of dependent libraries
33132# to runtime path list.
33133inherit_rpath=$inherit_rpath_CXX
33134
33135# Whether libtool must link a program against all its dependency libraries.
33136link_all_deplibs=$link_all_deplibs_CXX
33137
33138# Set to "yes" if exported symbols are required.
33139always_export_symbols=$always_export_symbols_CXX
33140
33141# The commands to list exported symbols.
33142export_symbols_cmds=$lt_export_symbols_cmds_CXX
33143
33144# Symbols that should not be listed in the preloaded symbols.
33145exclude_expsyms=$lt_exclude_expsyms_CXX
33146
33147# Symbols that must always be exported.
33148include_expsyms=$lt_include_expsyms_CXX
33149
33150# Commands necessary for linking programs (against libraries) with templates.
33151prelink_cmds=$lt_prelink_cmds_CXX
33152
33153# Commands necessary for finishing linking programs.
33154postlink_cmds=$lt_postlink_cmds_CXX
33155
33156# Specify filename containing input files.
33157file_list_spec=$lt_file_list_spec_CXX
33158
33159# How to hardcode a shared library path into an executable.
33160hardcode_action=$hardcode_action_CXX
33161
33162# The directories searched by this compiler when creating a shared library.
33163compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33164
33165# Dependencies to place before and after the objects being linked to
33166# create a shared library.
33167predep_objects=$lt_predep_objects_CXX
33168postdep_objects=$lt_postdep_objects_CXX
33169predeps=$lt_predeps_CXX
33170postdeps=$lt_postdeps_CXX
33171
33172# The library search path used internally by the compiler when linking
33173# a shared library.
33174compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33175
33176# ### END LIBTOOL TAG CONFIG: CXX
33177_LT_EOF
33178
33179 ;;
33180
33181  esac
33182done # for ac_tag
33183
33184
33185as_fn_exit 0
33186_ACEOF
33187ac_clean_files=$ac_clean_files_save
33188
33189test $ac_write_fail = 0 ||
33190  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33191
33192
33193# configure is writing to config.log, and then calls config.status.
33194# config.status does its own redirection, appending to config.log.
33195# Unfortunately, on DOS this fails, as config.log is still kept open
33196# by configure, so config.status won't be able to write to it; its
33197# output is simply discarded.  So we exec the FD to /dev/null,
33198# effectively closing config.log, so it can be properly (re)opened and
33199# appended to by config.status.  When coming back to configure, we
33200# need to make the FD available again.
33201if test "$no_create" != yes; then
33202  ac_cs_success=:
33203  ac_config_status_args=
33204  test "$silent" = yes &&
33205    ac_config_status_args="$ac_config_status_args --quiet"
33206  exec 5>/dev/null
33207  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33208  exec 5>>config.log
33209  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33210  # would make configure fail if this is the last instruction.
33211  $ac_cs_success || as_fn_exit 1
33212fi
33213
33214#
33215# CONFIG_SUBDIRS section.
33216#
33217if test "$no_recursion" != yes; then
33218
33219  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
33220  # so they do not pile up.
33221  ac_sub_configure_args=
33222  ac_prev=
33223  eval "set x $ac_configure_args"
33224  shift
33225  for ac_arg
33226  do
33227    if test -n "$ac_prev"; then
33228      ac_prev=
33229      continue
33230    fi
33231    case $ac_arg in
33232    -cache-file | --cache-file | --cache-fil | --cache-fi \
33233    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33234      ac_prev=cache_file ;;
33235    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33236    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33237    | --c=*)
33238      ;;
33239    --config-cache | -C)
33240      ;;
33241    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33242      ac_prev=srcdir ;;
33243    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33244      ;;
33245    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33246      ac_prev=prefix ;;
33247    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33248      ;;
33249    --disable-option-checking)
33250      ;;
33251    *)
33252      case $ac_arg in
33253      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33254      esac
33255      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
33256    esac
33257  done
33258
33259  # Always prepend --prefix to ensure using the same prefix
33260  # in subdir configurations.
33261  ac_arg="--prefix=$prefix"
33262  case $ac_arg in
33263  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33264  esac
33265  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33266
33267  # Pass --silent
33268  if test "$silent" = yes; then
33269    ac_sub_configure_args="--silent $ac_sub_configure_args"
33270  fi
33271
33272  # Always prepend --disable-option-checking to silence warnings, since
33273  # different subdirs can have different --enable and --with options.
33274  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
33275
33276  ac_popdir=`pwd`
33277  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33278
33279    # Do not complain, so a configure script can configure whichever
33280    # parts of a large source tree are present.
33281    test -d "$srcdir/$ac_dir" || continue
33282
33283    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33284    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
33285    $as_echo "$ac_msg" >&6
33286    as_dir="$ac_dir"; as_fn_mkdir_p
33287    ac_builddir=.
33288
33289case "$ac_dir" in
33290.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33291*)
33292  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33293  # A ".." for each directory in $ac_dir_suffix.
33294  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33295  case $ac_top_builddir_sub in
33296  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33297  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33298  esac ;;
33299esac
33300ac_abs_top_builddir=$ac_pwd
33301ac_abs_builddir=$ac_pwd$ac_dir_suffix
33302# for backward compatibility:
33303ac_top_builddir=$ac_top_build_prefix
33304
33305case $srcdir in
33306  .)  # We are building in place.
33307    ac_srcdir=.
33308    ac_top_srcdir=$ac_top_builddir_sub
33309    ac_abs_top_srcdir=$ac_pwd ;;
33310  [\\/]* | ?:[\\/]* )  # Absolute name.
33311    ac_srcdir=$srcdir$ac_dir_suffix;
33312    ac_top_srcdir=$srcdir
33313    ac_abs_top_srcdir=$srcdir ;;
33314  *) # Relative name.
33315    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33316    ac_top_srcdir=$ac_top_build_prefix$srcdir
33317    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33318esac
33319ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33320
33321
33322    cd "$ac_dir"
33323
33324    # Check for guested configure; otherwise get Cygnus style configure.
33325    if test -f "$ac_srcdir/configure.gnu"; then
33326      ac_sub_configure=$ac_srcdir/configure.gnu
33327    elif test -f "$ac_srcdir/configure"; then
33328      ac_sub_configure=$ac_srcdir/configure
33329    elif test -f "$ac_srcdir/configure.in"; then
33330      # This should be Cygnus configure.
33331      ac_sub_configure=$ac_aux_dir/configure
33332    else
33333      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
33334$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33335      ac_sub_configure=
33336    fi
33337
33338    # The recursion is here.
33339    if test -n "$ac_sub_configure"; then
33340      # Make the cache file name correct relative to the subdirectory.
33341      case $cache_file in
33342      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33343      *) # Relative name.
33344	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
33345      esac
33346
33347      { $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
33348$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33349      # The eval makes quoting arguments work.
33350      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33351	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33352	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
33353    fi
33354
33355    cd "$ac_popdir"
33356  done
33357fi
33358if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33359  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33360$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33361fi
33362
33363