xref: /freebsd/contrib/ntp/sntp/configure (revision 02e9120893770924227138ba49df1edb3896112a)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for sntp 4.2.8p17.
4#
5# Report bugs to <https://bugs.ntp.org/>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
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  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186test \$(( 1 + 1 )) = 2 || exit 1
187
188  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192    PATH=/empty FPATH=/empty; export PATH FPATH
193    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
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'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: https://bugs.ntp.org/ about your system, including any
280$0: error possibly output before this message. Then install
281$0: a modern shell, or manually run the script under such a
282$0: shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312  return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320  set +e
321  as_fn_set_status $1
322  exit $1
323} # as_fn_exit
324# as_fn_nop
325# ---------
326# Do nothing but, unlike ":", preserve the value of $?.
327as_fn_nop ()
328{
329  return $?
330}
331as_nop=as_fn_nop
332
333# as_fn_mkdir_p
334# -------------
335# Create "$as_dir" as a directory, including parents if necessary.
336as_fn_mkdir_p ()
337{
338
339  case $as_dir in #(
340  -*) as_dir=./$as_dir;;
341  esac
342  test -d "$as_dir" || eval $as_mkdir_p || {
343    as_dirs=
344    while :; do
345      case $as_dir in #(
346      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347      *) as_qdir=$as_dir;;
348      esac
349      as_dirs="'$as_qdir' $as_dirs"
350      as_dir=`$as_dirname -- "$as_dir" ||
351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352	 X"$as_dir" : 'X\(//\)[^/]' \| \
353	 X"$as_dir" : 'X\(//\)$' \| \
354	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355printf "%s\n" X"$as_dir" |
356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357	    s//\1/
358	    q
359	  }
360	  /^X\(\/\/\)[^/].*/{
361	    s//\1/
362	    q
363	  }
364	  /^X\(\/\/\)$/{
365	    s//\1/
366	    q
367	  }
368	  /^X\(\/\).*/{
369	    s//\1/
370	    q
371	  }
372	  s/.*/./; q'`
373      test -d "$as_dir" && break
374    done
375    test -z "$as_dirs" || eval "mkdir $as_dirs"
376  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379} # as_fn_mkdir_p
380
381# as_fn_executable_p FILE
382# -----------------------
383# Test if FILE is an executable regular file.
384as_fn_executable_p ()
385{
386  test -f "$1" && test -x "$1"
387} # as_fn_executable_p
388# as_fn_append VAR VALUE
389# ----------------------
390# Append the text in VALUE to the end of the definition contained in VAR. Take
391# advantage of any shell optimizations that allow amortized linear growth over
392# repeated appends, instead of the typical quadratic growth present in naive
393# implementations.
394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395then :
396  eval 'as_fn_append ()
397  {
398    eval $1+=\$2
399  }'
400else $as_nop
401  as_fn_append ()
402  {
403    eval $1=\$$1\$2
404  }
405fi # as_fn_append
406
407# as_fn_arith ARG...
408# ------------------
409# Perform arithmetic evaluation on the ARGs, and store the result in the
410# global $as_val. Take advantage of shells that can avoid forks. The arguments
411# must be portable across $(()) and expr.
412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413then :
414  eval 'as_fn_arith ()
415  {
416    as_val=$(( $* ))
417  }'
418else $as_nop
419  as_fn_arith ()
420  {
421    as_val=`expr "$@" || test $? -eq 1`
422  }
423fi # as_fn_arith
424
425# as_fn_nop
426# ---------
427# Do nothing but, unlike ":", preserve the value of $?.
428as_fn_nop ()
429{
430  return $?
431}
432as_nop=as_fn_nop
433
434# as_fn_error STATUS ERROR [LINENO LOG_FD]
435# ----------------------------------------
436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438# script with STATUS, using 1 if that was 0.
439as_fn_error ()
440{
441  as_status=$1; test $as_status -eq 0 && as_status=1
442  if test "$4"; then
443    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445  fi
446  printf "%s\n" "$as_me: error: $2" >&2
447  as_fn_exit $as_status
448} # as_fn_error
449
450if expr a : '\(a\)' >/dev/null 2>&1 &&
451   test "X`expr 00001 : '.*\(...\)'`" = X001; then
452  as_expr=expr
453else
454  as_expr=false
455fi
456
457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458  as_basename=basename
459else
460  as_basename=false
461fi
462
463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464  as_dirname=dirname
465else
466  as_dirname=false
467fi
468
469as_me=`$as_basename -- "$0" ||
470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471	 X"$0" : 'X\(//\)$' \| \
472	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473printf "%s\n" X/"$0" |
474    sed '/^.*\/\([^/][^/]*\)\/*$/{
475	    s//\1/
476	    q
477	  }
478	  /^X\/\(\/\/\)$/{
479	    s//\1/
480	    q
481	  }
482	  /^X\/\(\/\).*/{
483	    s//\1/
484	    q
485	  }
486	  s/.*/./; q'`
487
488# Avoid depending upon Character Ranges.
489as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492as_cr_digits='0123456789'
493as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496  as_lineno_1=$LINENO as_lineno_1a=$LINENO
497  as_lineno_2=$LINENO as_lineno_2a=$LINENO
498  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
501  sed -n '
502    p
503    /[$]LINENO/=
504  ' <$as_myself |
505    sed '
506      s/[$]LINENO.*/&-/
507      t lineno
508      b
509      :lineno
510      N
511      :loop
512      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513      t loop
514      s/-\n.*//
515    ' >$as_me.lineno &&
516  chmod +x "$as_me.lineno" ||
517    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520  # already done that, so ensure we don't try to do so again and fall
521  # in an infinite loop.  This has already happened in practice.
522  _as_can_reexec=no; export _as_can_reexec
523  # Don't try to exec as it changes $[0], causing all sort of problems
524  # (the dirname of $[0] is not the place where we might find the
525  # original and so on.  Autoconf is especially sensitive to this).
526  . "./$as_me.lineno"
527  # Exit status is that of the last command.
528  exit
529}
530
531
532# Determine whether it's possible to make 'echo' print without a newline.
533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534# for compatibility with existing Makefiles.
535ECHO_C= ECHO_N= ECHO_T=
536case `echo -n x` in #(((((
537-n*)
538  case `echo 'xy\c'` in
539  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
540  xy)  ECHO_C='\c';;
541  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
542       ECHO_T='	';;
543  esac;;
544*)
545  ECHO_N='-n';;
546esac
547
548# For backward compatibility with old third-party macros, we provide
549# the shell variables $as_echo and $as_echo_n.  New code should use
550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551as_echo='printf %s\n'
552as_echo_n='printf %s'
553
554
555rm -f conf$$ conf$$.exe conf$$.file
556if test -d conf$$.dir; then
557  rm -f conf$$.dir/conf$$.file
558else
559  rm -f conf$$.dir
560  mkdir conf$$.dir 2>/dev/null
561fi
562if (echo >conf$$.file) 2>/dev/null; then
563  if ln -s conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s='ln -s'
565    # ... but there are two gotchas:
566    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568    # In both cases, we have to default to `cp -pR'.
569    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570      as_ln_s='cp -pR'
571  elif ln conf$$.file conf$$ 2>/dev/null; then
572    as_ln_s=ln
573  else
574    as_ln_s='cp -pR'
575  fi
576else
577  as_ln_s='cp -pR'
578fi
579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580rmdir conf$$.dir 2>/dev/null
581
582if mkdir -p . 2>/dev/null; then
583  as_mkdir_p='mkdir -p "$as_dir"'
584else
585  test -d ./-p && rmdir ./-p
586  as_mkdir_p=false
587fi
588
589as_test_x='test -x'
590as_executable_p=as_fn_executable_p
591
592# Sed expression to map a string onto a valid CPP name.
593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595# Sed expression to map a string onto a valid variable name.
596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601test -n "$DJDIR" || exec 7<&0 </dev/null
602exec 6>&1
603
604# Name of the host.
605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606# so uname gets run too.
607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609#
610# Initializations.
611#
612ac_default_prefix=/usr/local
613ac_clean_files=
614ac_config_libobj_dir=.
615LIBOBJS=
616cross_compiling=no
617subdirs=
618MFLAGS=
619MAKEFLAGS=
620
621# Identity of this package.
622PACKAGE_NAME='sntp'
623PACKAGE_TARNAME='sntp'
624PACKAGE_VERSION='4.2.8p17'
625PACKAGE_STRING='sntp 4.2.8p17'
626PACKAGE_BUGREPORT='https://bugs.ntp.org/'
627PACKAGE_URL='https://www.ntp.org/'
628
629# Factoring default headers for most tests.
630ac_includes_default="\
631#include <stddef.h>
632#ifdef HAVE_STDIO_H
633# include <stdio.h>
634#endif
635#ifdef HAVE_STDLIB_H
636# include <stdlib.h>
637#endif
638#ifdef HAVE_STRING_H
639# include <string.h>
640#endif
641#ifdef HAVE_INTTYPES_H
642# include <inttypes.h>
643#endif
644#ifdef HAVE_STDINT_H
645# include <stdint.h>
646#endif
647#ifdef HAVE_STRINGS_H
648# include <strings.h>
649#endif
650#ifdef HAVE_SYS_TYPES_H
651# include <sys/types.h>
652#endif
653#ifdef HAVE_SYS_STAT_H
654# include <sys/stat.h>
655#endif
656#ifdef HAVE_UNISTD_H
657# include <unistd.h>
658#endif"
659
660ac_header_c_list=
661ac_func_c_list=
662enable_option_checking=no
663ac_subst_vars='am__EXEEXT_FALSE
664am__EXEEXT_TRUE
665LTLIBOBJS
666BUILD_TEST_KODFILE_FALSE
667BUILD_TEST_KODFILE_TRUE
668BUILD_TEST_KODDATABASE_FALSE
669BUILD_TEST_KODDATABASE_TRUE
670UNITYBUILD_AVAILABLE_FALSE
671UNITYBUILD_AVAILABLE_TRUE
672PATH_RUBY
673VER_SUFFIX
674LIB_SYSLOG
675subdirs
676BUILD_LIBEVENT_FALSE
677BUILD_LIBEVENT_TRUE
678LDADD_LIBEVENT
679CPPFLAGS_LIBEVENT
680CFLAGS_LIBEVENT
681PKG_CONFIG
682NTP_FORCE_LIBEVENT_DIST
683LIBOPTS_DIR
684LIBOPTS_CFLAGS
685LIBOPTS_LDADD
686NEED_LIBOPTS_FALSE
687NEED_LIBOPTS_TRUE
688INSTALL_LIBOPTS_FALSE
689INSTALL_LIBOPTS_TRUE
690POSIX_SHELL
691GL_GENERATE_STDNORETURN_H_FALSE
692GL_GENERATE_STDNORETURN_H_TRUE
693STDNORETURN_H
694BUILD_SNTP_FALSE
695BUILD_SNTP_TRUE
696SNTP
697LIBTOOL_DEPS
698LT_SYS_LIBRARY_PATH
699OTOOL64
700OTOOL
701LIPO
702NMEDIT
703DSYMUTIL
704MANIFEST_TOOL
705RANLIB
706DLLTOOL
707OBJDUMP
708LN_S
709NM
710ac_ct_DUMPBIN
711DUMPBIN
712LIBTOOL
713LIBOBJS
714PTHREADS_FALSE
715PTHREADS_TRUE
716LIBISC_PTHREADS_NOTHREADS
717PTHREAD_LIBS
718LTHREAD_LIBS
719BUILD_THREAD
720HAVE_INLINE
721LDADD_LIBUTIL
722ALLOCA
723LIBM
724EDITLINE_LIBS
725LD
726FGREP
727SED
728LDADD_LIBNTP
729NTP_CROSSCOMPILE_FALSE
730NTP_CROSSCOMPILE_TRUE
731ac_ct_AR
732AR
733INSTALL_UPDATE_LEAP_FALSE
734INSTALL_UPDATE_LEAP_TRUE
735UPDATE_LEAP_NI
736UPDATE_LEAP_MS
737UPDATE_LEAP_DS
738UPDATE_LEAP_DL
739UPDATE_LEAP_DB
740TIMETRIM_NI
741TIMETRIM_MS
742TIMETRIM_DS
743TIMETRIM_DL
744TIMETRIM_DB
745TICKADJ_NI
746TICKADJ_MS
747TICKADJ_DS
748TICKADJ_DL
749TICKADJ_DB
750SNTP_NI
751SNTP_MS
752SNTP_DS
753SNTP_DL
754SNTP_DB
755NTP_WAIT_NI
756NTP_WAIT_MS
757NTP_WAIT_DS
758NTP_WAIT_DL
759NTP_WAIT_DB
760NTP_KEYGEN_NI
761NTP_KEYGEN_MS
762NTP_KEYGEN_DS
763NTP_KEYGEN_DL
764NTP_KEYGEN_DB
765NTPTRACE_NI
766NTPTRACE_MS
767NTPTRACE_DS
768NTPTRACE_DL
769NTPTRACE_DB
770NTPTIME_NI
771NTPTIME_MS
772NTPTIME_DS
773NTPTIME_DL
774NTPTIME_DB
775INSTALL_NTPSWEEP_FALSE
776INSTALL_NTPSWEEP_TRUE
777NTPSWEEP_NI
778NTPSWEEP_MS
779NTPSWEEP_DS
780NTPSWEEP_DL
781NTPSWEEP_DB
782NTPSNMPD_NI
783NTPSNMPD_MS
784NTPSNMPD_DS
785NTPSNMPD_DL
786NTPSNMPD_DB
787NTPQ_NI
788NTPQ_MS
789NTPQ_DS
790NTPQ_DL
791NTPQ_DB
792NTPD_NI
793NTPD_MS
794NTPD_DS
795NTPD_DL
796NTPD_DB
797NTPDSIM_NI
798NTPDSIM_MS
799NTPDSIM_DS
800NTPDSIM_DL
801NTPDSIM_DB
802NTPDC_NI
803NTPDC_MS
804NTPDC_DS
805NTPDC_DL
806NTPDC_DB
807NTPDATE_NI
808NTPDATE_MS
809NTPDATE_DS
810NTPDATE_DL
811NTPDATE_DB
812MANTAGFMT
813CALC_TICKADJ_NI
814CALC_TICKADJ_MS
815CALC_TICKADJ_DS
816CALC_TICKADJ_DL
817CALC_TICKADJ_DB
818WANT_CALC_TICKADJ_MS_FALSE
819WANT_CALC_TICKADJ_MS_TRUE
820NTP_HARD_LDFLAGS
821NTP_HARD_CPPFLAGS
822NTP_HARD_CFLAGS
823LDFLAGS_NTP
824LDADD_NTP
825CPPFLAGS_NTP
826CFLAGS_NTP
827CC_NOFORMAT
828EGREP
829GREP
830CPP
831am__fastdepCC_FALSE
832am__fastdepCC_TRUE
833CCDEPMODE
834am__nodep
835AMDEPBACKSLASH
836AMDEP_FALSE
837AMDEP_TRUE
838am__include
839DEPDIR
840OBJEXT
841EXEEXT
842ac_ct_CC
843CPPFLAGS
844LDFLAGS
845CFLAGS
846CC
847host_os
848host_vendor
849host_cpu
850host
851build_os
852build_vendor
853build_cpu
854build
855AM_BACKSLASH
856AM_DEFAULT_VERBOSITY
857AM_DEFAULT_V
858AM_V
859CSCOPE
860ETAGS
861CTAGS
862am__untar
863am__tar
864AMTAR
865am__leading_dot
866SET_MAKE
867AWK
868mkdir_p
869MKDIR_P
870INSTALL_STRIP_PROGRAM
871STRIP
872install_sh
873MAKEINFO
874AUTOHEADER
875AUTOMAKE
876AUTOCONF
877ACLOCAL
878VERSION
879PACKAGE
880CYGPATH_W
881am__isrc
882INSTALL_DATA
883INSTALL_SCRIPT
884INSTALL_PROGRAM
885target_alias
886host_alias
887build_alias
888LIBS
889ECHO_T
890ECHO_N
891ECHO_C
892DEFS
893mandir
894localedir
895libdir
896psdir
897pdfdir
898dvidir
899htmldir
900infodir
901docdir
902oldincludedir
903includedir
904runstatedir
905localstatedir
906sharedstatedir
907sysconfdir
908datadir
909datarootdir
910libexecdir
911sbindir
912bindir
913program_transform_name
914prefix
915exec_prefix
916PACKAGE_URL
917PACKAGE_BUGREPORT
918PACKAGE_STRING
919PACKAGE_VERSION
920PACKAGE_TARNAME
921PACKAGE_NAME
922PATH_SEPARATOR
923SHELL
924am__quote'
925ac_subst_files=''
926ac_user_opts='
927enable_option_checking
928enable_silent_rules
929enable_dependency_tracking
930with_hardenfile
931with_locfile
932with_gnu_ld
933with_lineeditlibs
934enable_debugging
935enable_thread_support
936with_threads
937with_yielding_select
938enable_c99_snprintf
939enable_clockctl
940enable_linuxcaps
941enable_solarisprivs
942enable_trustedbsd_mac
943enable_signalled_io
944enable_shared
945enable_static
946with_pic
947enable_fast_install
948with_aix_soname
949with_sysroot
950enable_libtool_lock
951with_sntp
952enable_nls
953enable_local_libopts
954enable_libopts_install
955with_autoopts_config
956with_regex_header
957with_libregex
958with_libregex_cflags
959with_libregex_libs
960enable_optional_args
961enable_local_libevent
962with_crypto
963with_openssl_libdir
964with_openssl_incdir
965with_rpath
966enable_ipv6
967with_kame
968enable_getifaddrs
969enable_problem_tests
970'
971      ac_precious_vars='build_alias
972host_alias
973target_alias
974CC
975CFLAGS
976LDFLAGS
977LIBS
978CPPFLAGS
979CPP
980LT_SYS_LIBRARY_PATH'
981ac_subdirs_all='libevent'
982
983# Initialize some variables set by options.
984ac_init_help=
985ac_init_version=false
986ac_unrecognized_opts=
987ac_unrecognized_sep=
988# The variables have the same names as the options, with
989# dashes changed to underlines.
990cache_file=/dev/null
991exec_prefix=NONE
992no_create=
993no_recursion=
994prefix=NONE
995program_prefix=NONE
996program_suffix=NONE
997program_transform_name=s,x,x,
998silent=
999site=
1000srcdir=
1001verbose=
1002x_includes=NONE
1003x_libraries=NONE
1004
1005# Installation directory options.
1006# These are left unexpanded so users can "make install exec_prefix=/foo"
1007# and all the variables that are supposed to be based on exec_prefix
1008# by default will actually change.
1009# Use braces instead of parens because sh, perl, etc. also accept them.
1010# (The list follows the same order as the GNU Coding Standards.)
1011bindir='${exec_prefix}/bin'
1012sbindir='${exec_prefix}/sbin'
1013libexecdir='${exec_prefix}/libexec'
1014datarootdir='${prefix}/share'
1015datadir='${datarootdir}'
1016sysconfdir='${prefix}/etc'
1017sharedstatedir='${prefix}/com'
1018localstatedir='${prefix}/var'
1019runstatedir='${localstatedir}/run'
1020includedir='${prefix}/include'
1021oldincludedir='/usr/include'
1022docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1023infodir='${datarootdir}/info'
1024htmldir='${docdir}'
1025dvidir='${docdir}'
1026pdfdir='${docdir}'
1027psdir='${docdir}'
1028libdir='${exec_prefix}/lib'
1029localedir='${datarootdir}/locale'
1030mandir='${datarootdir}/man'
1031
1032ac_prev=
1033ac_dashdash=
1034for ac_option
1035do
1036  # If the previous option needs an argument, assign it.
1037  if test -n "$ac_prev"; then
1038    eval $ac_prev=\$ac_option
1039    ac_prev=
1040    continue
1041  fi
1042
1043  case $ac_option in
1044  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1045  *=)   ac_optarg= ;;
1046  *)    ac_optarg=yes ;;
1047  esac
1048
1049  case $ac_dashdash$ac_option in
1050  --)
1051    ac_dashdash=yes ;;
1052
1053  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1054    ac_prev=bindir ;;
1055  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1056    bindir=$ac_optarg ;;
1057
1058  -build | --build | --buil | --bui | --bu)
1059    ac_prev=build_alias ;;
1060  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1061    build_alias=$ac_optarg ;;
1062
1063  -cache-file | --cache-file | --cache-fil | --cache-fi \
1064  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1065    ac_prev=cache_file ;;
1066  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1067  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1068    cache_file=$ac_optarg ;;
1069
1070  --config-cache | -C)
1071    cache_file=config.cache ;;
1072
1073  -datadir | --datadir | --datadi | --datad)
1074    ac_prev=datadir ;;
1075  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1076    datadir=$ac_optarg ;;
1077
1078  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1079  | --dataroo | --dataro | --datar)
1080    ac_prev=datarootdir ;;
1081  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1082  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1083    datarootdir=$ac_optarg ;;
1084
1085  -disable-* | --disable-*)
1086    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1087    # Reject names that are not valid shell variable names.
1088    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1090    ac_useropt_orig=$ac_useropt
1091    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1092    case $ac_user_opts in
1093      *"
1094"enable_$ac_useropt"
1095"*) ;;
1096      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1097	 ac_unrecognized_sep=', ';;
1098    esac
1099    eval enable_$ac_useropt=no ;;
1100
1101  -docdir | --docdir | --docdi | --doc | --do)
1102    ac_prev=docdir ;;
1103  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1104    docdir=$ac_optarg ;;
1105
1106  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1107    ac_prev=dvidir ;;
1108  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1109    dvidir=$ac_optarg ;;
1110
1111  -enable-* | --enable-*)
1112    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1113    # Reject names that are not valid shell variable names.
1114    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1116    ac_useropt_orig=$ac_useropt
1117    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1118    case $ac_user_opts in
1119      *"
1120"enable_$ac_useropt"
1121"*) ;;
1122      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1123	 ac_unrecognized_sep=', ';;
1124    esac
1125    eval enable_$ac_useropt=\$ac_optarg ;;
1126
1127  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1128  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1129  | --exec | --exe | --ex)
1130    ac_prev=exec_prefix ;;
1131  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1132  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1133  | --exec=* | --exe=* | --ex=*)
1134    exec_prefix=$ac_optarg ;;
1135
1136  -gas | --gas | --ga | --g)
1137    # Obsolete; use --with-gas.
1138    with_gas=yes ;;
1139
1140  -help | --help | --hel | --he | -h)
1141    ac_init_help=long ;;
1142  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1143    ac_init_help=recursive ;;
1144  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1145    ac_init_help=short ;;
1146
1147  -host | --host | --hos | --ho)
1148    ac_prev=host_alias ;;
1149  -host=* | --host=* | --hos=* | --ho=*)
1150    host_alias=$ac_optarg ;;
1151
1152  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1153    ac_prev=htmldir ;;
1154  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1155  | --ht=*)
1156    htmldir=$ac_optarg ;;
1157
1158  -includedir | --includedir | --includedi | --included | --include \
1159  | --includ | --inclu | --incl | --inc)
1160    ac_prev=includedir ;;
1161  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1162  | --includ=* | --inclu=* | --incl=* | --inc=*)
1163    includedir=$ac_optarg ;;
1164
1165  -infodir | --infodir | --infodi | --infod | --info | --inf)
1166    ac_prev=infodir ;;
1167  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1168    infodir=$ac_optarg ;;
1169
1170  -libdir | --libdir | --libdi | --libd)
1171    ac_prev=libdir ;;
1172  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1173    libdir=$ac_optarg ;;
1174
1175  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1176  | --libexe | --libex | --libe)
1177    ac_prev=libexecdir ;;
1178  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1179  | --libexe=* | --libex=* | --libe=*)
1180    libexecdir=$ac_optarg ;;
1181
1182  -localedir | --localedir | --localedi | --localed | --locale)
1183    ac_prev=localedir ;;
1184  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1185    localedir=$ac_optarg ;;
1186
1187  -localstatedir | --localstatedir | --localstatedi | --localstated \
1188  | --localstate | --localstat | --localsta | --localst | --locals)
1189    ac_prev=localstatedir ;;
1190  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1191  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1192    localstatedir=$ac_optarg ;;
1193
1194  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1195    ac_prev=mandir ;;
1196  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1197    mandir=$ac_optarg ;;
1198
1199  -nfp | --nfp | --nf)
1200    # Obsolete; use --without-fp.
1201    with_fp=no ;;
1202
1203  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1204  | --no-cr | --no-c | -n)
1205    no_create=yes ;;
1206
1207  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1208  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1209    no_recursion=yes ;;
1210
1211  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1212  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1213  | --oldin | --oldi | --old | --ol | --o)
1214    ac_prev=oldincludedir ;;
1215  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1216  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1217  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1218    oldincludedir=$ac_optarg ;;
1219
1220  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1221    ac_prev=prefix ;;
1222  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1223    prefix=$ac_optarg ;;
1224
1225  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1226  | --program-pre | --program-pr | --program-p)
1227    ac_prev=program_prefix ;;
1228  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1229  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1230    program_prefix=$ac_optarg ;;
1231
1232  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1233  | --program-suf | --program-su | --program-s)
1234    ac_prev=program_suffix ;;
1235  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1236  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1237    program_suffix=$ac_optarg ;;
1238
1239  -program-transform-name | --program-transform-name \
1240  | --program-transform-nam | --program-transform-na \
1241  | --program-transform-n | --program-transform- \
1242  | --program-transform | --program-transfor \
1243  | --program-transfo | --program-transf \
1244  | --program-trans | --program-tran \
1245  | --progr-tra | --program-tr | --program-t)
1246    ac_prev=program_transform_name ;;
1247  -program-transform-name=* | --program-transform-name=* \
1248  | --program-transform-nam=* | --program-transform-na=* \
1249  | --program-transform-n=* | --program-transform-=* \
1250  | --program-transform=* | --program-transfor=* \
1251  | --program-transfo=* | --program-transf=* \
1252  | --program-trans=* | --program-tran=* \
1253  | --progr-tra=* | --program-tr=* | --program-t=*)
1254    program_transform_name=$ac_optarg ;;
1255
1256  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1257    ac_prev=pdfdir ;;
1258  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1259    pdfdir=$ac_optarg ;;
1260
1261  -psdir | --psdir | --psdi | --psd | --ps)
1262    ac_prev=psdir ;;
1263  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1264    psdir=$ac_optarg ;;
1265
1266  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1267  | -silent | --silent | --silen | --sile | --sil)
1268    silent=yes ;;
1269
1270  -runstatedir | --runstatedir | --runstatedi | --runstated \
1271  | --runstate | --runstat | --runsta | --runst | --runs \
1272  | --run | --ru | --r)
1273    ac_prev=runstatedir ;;
1274  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1275  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1276  | --run=* | --ru=* | --r=*)
1277    runstatedir=$ac_optarg ;;
1278
1279  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1280    ac_prev=sbindir ;;
1281  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1282  | --sbi=* | --sb=*)
1283    sbindir=$ac_optarg ;;
1284
1285  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1286  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1287  | --sharedst | --shareds | --shared | --share | --shar \
1288  | --sha | --sh)
1289    ac_prev=sharedstatedir ;;
1290  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1291  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1292  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1293  | --sha=* | --sh=*)
1294    sharedstatedir=$ac_optarg ;;
1295
1296  -site | --site | --sit)
1297    ac_prev=site ;;
1298  -site=* | --site=* | --sit=*)
1299    site=$ac_optarg ;;
1300
1301  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1302    ac_prev=srcdir ;;
1303  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1304    srcdir=$ac_optarg ;;
1305
1306  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1307  | --syscon | --sysco | --sysc | --sys | --sy)
1308    ac_prev=sysconfdir ;;
1309  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1310  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1311    sysconfdir=$ac_optarg ;;
1312
1313  -target | --target | --targe | --targ | --tar | --ta | --t)
1314    ac_prev=target_alias ;;
1315  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1316    target_alias=$ac_optarg ;;
1317
1318  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1319    verbose=yes ;;
1320
1321  -version | --version | --versio | --versi | --vers | -V)
1322    ac_init_version=: ;;
1323
1324  -with-* | --with-*)
1325    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1326    # Reject names that are not valid shell variable names.
1327    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1328      as_fn_error $? "invalid package name: \`$ac_useropt'"
1329    ac_useropt_orig=$ac_useropt
1330    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1331    case $ac_user_opts in
1332      *"
1333"with_$ac_useropt"
1334"*) ;;
1335      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1336	 ac_unrecognized_sep=', ';;
1337    esac
1338    eval with_$ac_useropt=\$ac_optarg ;;
1339
1340  -without-* | --without-*)
1341    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1342    # Reject names that are not valid shell variable names.
1343    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1344      as_fn_error $? "invalid package name: \`$ac_useropt'"
1345    ac_useropt_orig=$ac_useropt
1346    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1347    case $ac_user_opts in
1348      *"
1349"with_$ac_useropt"
1350"*) ;;
1351      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1352	 ac_unrecognized_sep=', ';;
1353    esac
1354    eval with_$ac_useropt=no ;;
1355
1356  --x)
1357    # Obsolete; use --with-x.
1358    with_x=yes ;;
1359
1360  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1361  | --x-incl | --x-inc | --x-in | --x-i)
1362    ac_prev=x_includes ;;
1363  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1364  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1365    x_includes=$ac_optarg ;;
1366
1367  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1368  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1369    ac_prev=x_libraries ;;
1370  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1371  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1372    x_libraries=$ac_optarg ;;
1373
1374  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1375Try \`$0 --help' for more information"
1376    ;;
1377
1378  *=*)
1379    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1380    # Reject names that are not valid shell variable names.
1381    case $ac_envvar in #(
1382      '' | [0-9]* | *[!_$as_cr_alnum]* )
1383      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1384    esac
1385    eval $ac_envvar=\$ac_optarg
1386    export $ac_envvar ;;
1387
1388  *)
1389    # FIXME: should be removed in autoconf 3.0.
1390    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1391    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1392      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1393    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1394    ;;
1395
1396  esac
1397done
1398
1399if test -n "$ac_prev"; then
1400  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1401  as_fn_error $? "missing argument to $ac_option"
1402fi
1403
1404if test -n "$ac_unrecognized_opts"; then
1405  case $enable_option_checking in
1406    no) ;;
1407    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1408    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1409  esac
1410fi
1411
1412# Check all directory arguments for consistency.
1413for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1414		datadir sysconfdir sharedstatedir localstatedir includedir \
1415		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1416		libdir localedir mandir runstatedir
1417do
1418  eval ac_val=\$$ac_var
1419  # Remove trailing slashes.
1420  case $ac_val in
1421    */ )
1422      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1423      eval $ac_var=\$ac_val;;
1424  esac
1425  # Be sure to have absolute directory names.
1426  case $ac_val in
1427    [\\/$]* | ?:[\\/]* )  continue;;
1428    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1429  esac
1430  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1431done
1432
1433# There might be people who depend on the old broken behavior: `$host'
1434# used to hold the argument of --host etc.
1435# FIXME: To remove some day.
1436build=$build_alias
1437host=$host_alias
1438target=$target_alias
1439
1440# FIXME: To remove some day.
1441if test "x$host_alias" != x; then
1442  if test "x$build_alias" = x; then
1443    cross_compiling=maybe
1444  elif test "x$build_alias" != "x$host_alias"; then
1445    cross_compiling=yes
1446  fi
1447fi
1448
1449ac_tool_prefix=
1450test -n "$host_alias" && ac_tool_prefix=$host_alias-
1451
1452test "$silent" = yes && exec 6>/dev/null
1453
1454
1455ac_pwd=`pwd` && test -n "$ac_pwd" &&
1456ac_ls_di=`ls -di .` &&
1457ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1458  as_fn_error $? "working directory cannot be determined"
1459test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1460  as_fn_error $? "pwd does not report name of working directory"
1461
1462
1463# Find the source files, if location was not specified.
1464if test -z "$srcdir"; then
1465  ac_srcdir_defaulted=yes
1466  # Try the directory containing this script, then the parent directory.
1467  ac_confdir=`$as_dirname -- "$as_myself" ||
1468$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1469	 X"$as_myself" : 'X\(//\)[^/]' \| \
1470	 X"$as_myself" : 'X\(//\)$' \| \
1471	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1472printf "%s\n" X"$as_myself" |
1473    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1474	    s//\1/
1475	    q
1476	  }
1477	  /^X\(\/\/\)[^/].*/{
1478	    s//\1/
1479	    q
1480	  }
1481	  /^X\(\/\/\)$/{
1482	    s//\1/
1483	    q
1484	  }
1485	  /^X\(\/\).*/{
1486	    s//\1/
1487	    q
1488	  }
1489	  s/.*/./; q'`
1490  srcdir=$ac_confdir
1491  if test ! -r "$srcdir/$ac_unique_file"; then
1492    srcdir=..
1493  fi
1494else
1495  ac_srcdir_defaulted=no
1496fi
1497if test ! -r "$srcdir/$ac_unique_file"; then
1498  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1499  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1500fi
1501ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1502ac_abs_confdir=`(
1503	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1504	pwd)`
1505# When building in place, set srcdir=.
1506if test "$ac_abs_confdir" = "$ac_pwd"; then
1507  srcdir=.
1508fi
1509# Remove unnecessary trailing slashes from srcdir.
1510# Double slashes in file names in object file debugging info
1511# mess up M-x gdb in Emacs.
1512case $srcdir in
1513*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1514esac
1515for ac_var in $ac_precious_vars; do
1516  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1517  eval ac_env_${ac_var}_value=\$${ac_var}
1518  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1519  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1520done
1521
1522#
1523# Report the --help message.
1524#
1525if test "$ac_init_help" = "long"; then
1526  # Omit some internal or obsolete options to make the list less imposing.
1527  # This message is too long to be a string in the A/UX 3.1 sh.
1528  cat <<_ACEOF
1529\`configure' configures sntp 4.2.8p17 to adapt to many kinds of systems.
1530
1531Usage: $0 [OPTION]... [VAR=VALUE]...
1532
1533To assign environment variables (e.g., CC, CFLAGS...), specify them as
1534VAR=VALUE.  See below for descriptions of some of the useful variables.
1535
1536Defaults for the options are specified in brackets.
1537
1538Configuration:
1539  -h, --help              display this help and exit
1540      --help=short        display options specific to this package
1541      --help=recursive    display the short help of all the included packages
1542  -V, --version           display version information and exit
1543  -q, --quiet, --silent   do not print \`checking ...' messages
1544      --cache-file=FILE   cache test results in FILE [disabled]
1545  -C, --config-cache      alias for \`--cache-file=config.cache'
1546  -n, --no-create         do not create output files
1547      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1548
1549Installation directories:
1550  --prefix=PREFIX         install architecture-independent files in PREFIX
1551                          [$ac_default_prefix]
1552  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1553                          [PREFIX]
1554
1555By default, \`make install' will install all the files in
1556\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1557an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1558for instance \`--prefix=\$HOME'.
1559
1560For better control, use the options below.
1561
1562Fine tuning of the installation directories:
1563  --bindir=DIR            user executables [EPREFIX/bin]
1564  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1565  --libexecdir=DIR        program executables [EPREFIX/libexec]
1566  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1567  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1568  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1569  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1570  --libdir=DIR            object code libraries [EPREFIX/lib]
1571  --includedir=DIR        C header files [PREFIX/include]
1572  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1573  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1574  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1575  --infodir=DIR           info documentation [DATAROOTDIR/info]
1576  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1577  --mandir=DIR            man documentation [DATAROOTDIR/man]
1578  --docdir=DIR            documentation root [DATAROOTDIR/doc/sntp]
1579  --htmldir=DIR           html documentation [DOCDIR]
1580  --dvidir=DIR            dvi documentation [DOCDIR]
1581  --pdfdir=DIR            pdf documentation [DOCDIR]
1582  --psdir=DIR             ps documentation [DOCDIR]
1583_ACEOF
1584
1585  cat <<\_ACEOF
1586
1587Program names:
1588  --program-prefix=PREFIX            prepend PREFIX to installed program names
1589  --program-suffix=SUFFIX            append SUFFIX to installed program names
1590  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1591
1592System types:
1593  --build=BUILD     configure for building on BUILD [guessed]
1594  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1595_ACEOF
1596fi
1597
1598if test -n "$ac_init_help"; then
1599  case $ac_init_help in
1600     short | recursive ) echo "Configuration of sntp 4.2.8p17:";;
1601   esac
1602  cat <<\_ACEOF
1603
1604Optional Features:
1605  --disable-option-checking  ignore unrecognized --enable/--with options
1606  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1607  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1608  --enable-silent-rules   less verbose build output (undo: "make V=1")
1609  --disable-silent-rules  verbose build output (undo: "make V=0")
1610  --enable-dependency-tracking
1611                          do not reject slow dependency extractors
1612  --disable-dependency-tracking
1613                          speeds up one-time build
1614  defaults:               + yes, - no, s system-specific
1615  --enable-debugging      + include ntpd debugging code
1616  --enable-thread-support s use threads (+ if available)
1617  --enable-c99-snprintf   s force replacement
1618  --enable-clockctl       s Use /dev/clockctl for non-root clock control
1619  --enable-linuxcaps      + Use Linux capabilities for non-root clock control
1620  --enable-solarisprivs   + Use Solaris privileges for non-root clock control
1621  --enable-trustedbsd-mac s Use TrustedBSD MAC policy for non-root clock
1622                          control
1623  --enable-signalled-io   s Use signalled IO if we can
1624  --enable-shared[=PKGS]  build shared libraries [default=no]
1625  --enable-static[=PKGS]  build static libraries [default=yes]
1626  --enable-fast-install[=PKGS]
1627                          optimize for fast installation [default=yes]
1628  --disable-libtool-lock  avoid locking (might break parallel builds)
1629  --disable-nls           disable nls support in libopts
1630  --enable-local-libopts  Use the supplied libopts tearoff code
1631  --enable-libopts-install
1632                          Install libopts with client installation
1633  --disable-optional-args not wanting optional option args
1634  --enable-local-libevent Force using the supplied libevent tearoff code
1635  --enable-ipv6           s use IPv6?
1636
1637  --enable-getifaddrs     + Enable the use of getifaddrs() [[yes|no]].
1638  --enable-problem-tests  + enable tests with undiagnosed problems
1639
1640Optional Packages:
1641  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1642  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1643  --with-hardenfile=XXX   os-specific or "/dev/null"
1644  --with-locfile=XXX      os-specific or "legacy"
1645  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1646  --with-lineeditlibs     edit,editline (readline may be specified if desired)
1647  --with-threads	  with threads [auto]
1648  --with-yielding-select  with yielding select [auto]
1649  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1650                          both]
1651  --with-aix-soname=aix|svr4|both
1652                          shared library versioning (aka "SONAME") variant to
1653                          provide on AIX, [default=aix].
1654  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1655                          compiler's sysroot if not specified).
1656  --without-sntp          - disable building sntp and sntp/tests
1657  --with-autoopts-config  specify the config-info script
1658  --with-regex-header     a reg expr header is specified
1659  --with-libregex         libregex installation prefix
1660  --with-libregex-cflags  libregex compile flags
1661  --with-libregex-libs    libregex link command arguments
1662  --with-crypto           + =openssl,libcrypto
1663
1664  --with-openssl-libdir   + =/something/reasonable
1665
1666  --with-openssl-incdir   + =/something/reasonable
1667
1668  --without-rpath         s Disable auto-added -R linker paths
1669
1670  --with-kame             - =/usr/local/v6
1671
1672Some influential environment variables:
1673  CC          C compiler command
1674  CFLAGS      C compiler flags
1675  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1676              nonstandard directory <lib dir>
1677  LIBS        libraries to pass to the linker, e.g. -l<library>
1678  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1679              you have headers in a nonstandard directory <include dir>
1680  CPP         C preprocessor
1681  LT_SYS_LIBRARY_PATH
1682              User-defined run-time library search path.
1683
1684Use these variables to override the choices made by `configure' or to help
1685it to find libraries and programs with nonstandard names/locations.
1686
1687Report bugs to <https://bugs.ntp.org/>.
1688sntp home page: <https://www.ntp.org/>.
1689_ACEOF
1690ac_status=$?
1691fi
1692
1693if test "$ac_init_help" = "recursive"; then
1694  # If there are subdirs, report their specific --help.
1695  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1696    test -d "$ac_dir" ||
1697      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1698      continue
1699    ac_builddir=.
1700
1701case "$ac_dir" in
1702.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1703*)
1704  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1705  # A ".." for each directory in $ac_dir_suffix.
1706  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1707  case $ac_top_builddir_sub in
1708  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1709  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1710  esac ;;
1711esac
1712ac_abs_top_builddir=$ac_pwd
1713ac_abs_builddir=$ac_pwd$ac_dir_suffix
1714# for backward compatibility:
1715ac_top_builddir=$ac_top_build_prefix
1716
1717case $srcdir in
1718  .)  # We are building in place.
1719    ac_srcdir=.
1720    ac_top_srcdir=$ac_top_builddir_sub
1721    ac_abs_top_srcdir=$ac_pwd ;;
1722  [\\/]* | ?:[\\/]* )  # Absolute name.
1723    ac_srcdir=$srcdir$ac_dir_suffix;
1724    ac_top_srcdir=$srcdir
1725    ac_abs_top_srcdir=$srcdir ;;
1726  *) # Relative name.
1727    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1728    ac_top_srcdir=$ac_top_build_prefix$srcdir
1729    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1730esac
1731ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1732
1733    cd "$ac_dir" || { ac_status=$?; continue; }
1734    # Check for configure.gnu first; this name is used for a wrapper for
1735    # Metaconfig's "Configure" on case-insensitive file systems.
1736    if test -f "$ac_srcdir/configure.gnu"; then
1737      echo &&
1738      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1739    elif test -f "$ac_srcdir/configure"; then
1740      echo &&
1741      $SHELL "$ac_srcdir/configure" --help=recursive
1742    else
1743      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1744    fi || ac_status=$?
1745    cd "$ac_pwd" || { ac_status=$?; break; }
1746  done
1747fi
1748
1749test -n "$ac_init_help" && exit $ac_status
1750if $ac_init_version; then
1751  cat <<\_ACEOF
1752sntp configure 4.2.8p17
1753generated by GNU Autoconf 2.71
1754
1755Copyright (C) 2021 Free Software Foundation, Inc.
1756This configure script is free software; the Free Software Foundation
1757gives unlimited permission to copy, distribute and modify it.
1758_ACEOF
1759  exit
1760fi
1761
1762## ------------------------ ##
1763## Autoconf initialization. ##
1764## ------------------------ ##
1765
1766# ac_fn_c_try_compile LINENO
1767# --------------------------
1768# Try to compile conftest.$ac_ext, and return whether this succeeded.
1769ac_fn_c_try_compile ()
1770{
1771  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772  rm -f conftest.$ac_objext conftest.beam
1773  if { { ac_try="$ac_compile"
1774case "(($ac_try" in
1775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776  *) ac_try_echo=$ac_try;;
1777esac
1778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779printf "%s\n" "$ac_try_echo"; } >&5
1780  (eval "$ac_compile") 2>conftest.err
1781  ac_status=$?
1782  if test -s conftest.err; then
1783    grep -v '^ *+' conftest.err >conftest.er1
1784    cat conftest.er1 >&5
1785    mv -f conftest.er1 conftest.err
1786  fi
1787  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788  test $ac_status = 0; } && {
1789	 test -z "$ac_c_werror_flag" ||
1790	 test ! -s conftest.err
1791       } && test -s conftest.$ac_objext
1792then :
1793  ac_retval=0
1794else $as_nop
1795  printf "%s\n" "$as_me: failed program was:" >&5
1796sed 's/^/| /' conftest.$ac_ext >&5
1797
1798	ac_retval=1
1799fi
1800  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801  as_fn_set_status $ac_retval
1802
1803} # ac_fn_c_try_compile
1804
1805# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1806# -------------------------------------------------------
1807# Tests whether HEADER exists and can be compiled using the include files in
1808# INCLUDES, setting the cache variable VAR accordingly.
1809ac_fn_c_check_header_compile ()
1810{
1811  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1813printf %s "checking for $2... " >&6; }
1814if eval test \${$3+y}
1815then :
1816  printf %s "(cached) " >&6
1817else $as_nop
1818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819/* end confdefs.h.  */
1820$4
1821#include <$2>
1822_ACEOF
1823if ac_fn_c_try_compile "$LINENO"
1824then :
1825  eval "$3=yes"
1826else $as_nop
1827  eval "$3=no"
1828fi
1829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1830fi
1831eval ac_res=\$$3
1832	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833printf "%s\n" "$ac_res" >&6; }
1834  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835
1836} # ac_fn_c_check_header_compile
1837
1838# ac_fn_c_try_cpp LINENO
1839# ----------------------
1840# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1841ac_fn_c_try_cpp ()
1842{
1843  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844  if { { ac_try="$ac_cpp conftest.$ac_ext"
1845case "(($ac_try" in
1846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847  *) ac_try_echo=$ac_try;;
1848esac
1849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850printf "%s\n" "$ac_try_echo"; } >&5
1851  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1852  ac_status=$?
1853  if test -s conftest.err; then
1854    grep -v '^ *+' conftest.err >conftest.er1
1855    cat conftest.er1 >&5
1856    mv -f conftest.er1 conftest.err
1857  fi
1858  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859  test $ac_status = 0; } > conftest.i && {
1860	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1861	 test ! -s conftest.err
1862       }
1863then :
1864  ac_retval=0
1865else $as_nop
1866  printf "%s\n" "$as_me: failed program was:" >&5
1867sed 's/^/| /' conftest.$ac_ext >&5
1868
1869    ac_retval=1
1870fi
1871  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872  as_fn_set_status $ac_retval
1873
1874} # ac_fn_c_try_cpp
1875
1876# ac_fn_c_try_link LINENO
1877# -----------------------
1878# Try to link conftest.$ac_ext, and return whether this succeeded.
1879ac_fn_c_try_link ()
1880{
1881  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1883  if { { ac_try="$ac_link"
1884case "(($ac_try" in
1885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886  *) ac_try_echo=$ac_try;;
1887esac
1888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889printf "%s\n" "$ac_try_echo"; } >&5
1890  (eval "$ac_link") 2>conftest.err
1891  ac_status=$?
1892  if test -s conftest.err; then
1893    grep -v '^ *+' conftest.err >conftest.er1
1894    cat conftest.er1 >&5
1895    mv -f conftest.er1 conftest.err
1896  fi
1897  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898  test $ac_status = 0; } && {
1899	 test -z "$ac_c_werror_flag" ||
1900	 test ! -s conftest.err
1901       } && test -s conftest$ac_exeext && {
1902	 test "$cross_compiling" = yes ||
1903	 test -x conftest$ac_exeext
1904       }
1905then :
1906  ac_retval=0
1907else $as_nop
1908  printf "%s\n" "$as_me: failed program was:" >&5
1909sed 's/^/| /' conftest.$ac_ext >&5
1910
1911	ac_retval=1
1912fi
1913  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1914  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1915  # interfere with the next link command; also delete a directory that is
1916  # left behind by Apple's compiler.  We do this before executing the actions.
1917  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919  as_fn_set_status $ac_retval
1920
1921} # ac_fn_c_try_link
1922
1923# ac_fn_c_try_run LINENO
1924# ----------------------
1925# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1926# executables *can* be run.
1927ac_fn_c_try_run ()
1928{
1929  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930  if { { ac_try="$ac_link"
1931case "(($ac_try" in
1932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933  *) ac_try_echo=$ac_try;;
1934esac
1935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936printf "%s\n" "$ac_try_echo"; } >&5
1937  (eval "$ac_link") 2>&5
1938  ac_status=$?
1939  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1941  { { case "(($ac_try" in
1942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943  *) ac_try_echo=$ac_try;;
1944esac
1945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946printf "%s\n" "$ac_try_echo"; } >&5
1947  (eval "$ac_try") 2>&5
1948  ac_status=$?
1949  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950  test $ac_status = 0; }; }
1951then :
1952  ac_retval=0
1953else $as_nop
1954  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1955       printf "%s\n" "$as_me: failed program was:" >&5
1956sed 's/^/| /' conftest.$ac_ext >&5
1957
1958       ac_retval=$ac_status
1959fi
1960  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962  as_fn_set_status $ac_retval
1963
1964} # ac_fn_c_try_run
1965
1966# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1967# -------------------------------------------
1968# Tests whether TYPE exists after having included INCLUDES, setting cache
1969# variable VAR accordingly.
1970ac_fn_c_check_type ()
1971{
1972  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974printf %s "checking for $2... " >&6; }
1975if eval test \${$3+y}
1976then :
1977  printf %s "(cached) " >&6
1978else $as_nop
1979  eval "$3=no"
1980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981/* end confdefs.h.  */
1982$4
1983int
1984main (void)
1985{
1986if (sizeof ($2))
1987	 return 0;
1988  ;
1989  return 0;
1990}
1991_ACEOF
1992if ac_fn_c_try_compile "$LINENO"
1993then :
1994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995/* end confdefs.h.  */
1996$4
1997int
1998main (void)
1999{
2000if (sizeof (($2)))
2001	    return 0;
2002  ;
2003  return 0;
2004}
2005_ACEOF
2006if ac_fn_c_try_compile "$LINENO"
2007then :
2008
2009else $as_nop
2010  eval "$3=yes"
2011fi
2012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2013fi
2014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015fi
2016eval ac_res=\$$3
2017	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018printf "%s\n" "$ac_res" >&6; }
2019  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020
2021} # ac_fn_c_check_type
2022
2023# ac_fn_c_check_func LINENO FUNC VAR
2024# ----------------------------------
2025# Tests whether FUNC exists, setting the cache variable VAR accordingly
2026ac_fn_c_check_func ()
2027{
2028  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030printf %s "checking for $2... " >&6; }
2031if eval test \${$3+y}
2032then :
2033  printf %s "(cached) " >&6
2034else $as_nop
2035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036/* end confdefs.h.  */
2037/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2038   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2039#define $2 innocuous_$2
2040
2041/* System header to define __stub macros and hopefully few prototypes,
2042   which can conflict with char $2 (); below.  */
2043
2044#include <limits.h>
2045#undef $2
2046
2047/* Override any GCC internal prototype to avoid an error.
2048   Use char because int might match the return type of a GCC
2049   builtin and then its argument prototype would still apply.  */
2050#ifdef __cplusplus
2051extern "C"
2052#endif
2053char $2 ();
2054/* The GNU C library defines this for functions which it implements
2055    to always fail with ENOSYS.  Some functions are actually named
2056    something starting with __ and the normal name is an alias.  */
2057#if defined __stub_$2 || defined __stub___$2
2058choke me
2059#endif
2060
2061int
2062main (void)
2063{
2064return $2 ();
2065  ;
2066  return 0;
2067}
2068_ACEOF
2069if ac_fn_c_try_link "$LINENO"
2070then :
2071  eval "$3=yes"
2072else $as_nop
2073  eval "$3=no"
2074fi
2075rm -f core conftest.err conftest.$ac_objext conftest.beam \
2076    conftest$ac_exeext conftest.$ac_ext
2077fi
2078eval ac_res=\$$3
2079	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080printf "%s\n" "$ac_res" >&6; }
2081  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082
2083} # ac_fn_c_check_func
2084
2085# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2086# ------------------------------------------------------------------
2087# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2088# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2089ac_fn_check_decl ()
2090{
2091  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092  as_decl_name=`echo $2|sed 's/ *(.*//'`
2093  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2094printf %s "checking whether $as_decl_name is declared... " >&6; }
2095if eval test \${$3+y}
2096then :
2097  printf %s "(cached) " >&6
2098else $as_nop
2099  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2100  eval ac_save_FLAGS=\$$6
2101  as_fn_append $6 " $5"
2102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103/* end confdefs.h.  */
2104$4
2105int
2106main (void)
2107{
2108#ifndef $as_decl_name
2109#ifdef __cplusplus
2110  (void) $as_decl_use;
2111#else
2112  (void) $as_decl_name;
2113#endif
2114#endif
2115
2116  ;
2117  return 0;
2118}
2119_ACEOF
2120if ac_fn_c_try_compile "$LINENO"
2121then :
2122  eval "$3=yes"
2123else $as_nop
2124  eval "$3=no"
2125fi
2126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2127  eval $6=\$ac_save_FLAGS
2128
2129fi
2130eval ac_res=\$$3
2131	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2132printf "%s\n" "$ac_res" >&6; }
2133  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134
2135} # ac_fn_check_decl
2136
2137# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2138# --------------------------------------------
2139# Tries to find the compile-time value of EXPR in a program that includes
2140# INCLUDES, setting VAR accordingly. Returns whether the value could be
2141# computed
2142ac_fn_c_compute_int ()
2143{
2144  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145  if test "$cross_compiling" = yes; then
2146    # Depending upon the size, compute the lo and hi bounds.
2147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148/* end confdefs.h.  */
2149$4
2150int
2151main (void)
2152{
2153static int test_array [1 - 2 * !(($2) >= 0)];
2154test_array [0] = 0;
2155return test_array [0];
2156
2157  ;
2158  return 0;
2159}
2160_ACEOF
2161if ac_fn_c_try_compile "$LINENO"
2162then :
2163  ac_lo=0 ac_mid=0
2164  while :; do
2165    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166/* end confdefs.h.  */
2167$4
2168int
2169main (void)
2170{
2171static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2172test_array [0] = 0;
2173return test_array [0];
2174
2175  ;
2176  return 0;
2177}
2178_ACEOF
2179if ac_fn_c_try_compile "$LINENO"
2180then :
2181  ac_hi=$ac_mid; break
2182else $as_nop
2183  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2184			if test $ac_lo -le $ac_mid; then
2185			  ac_lo= ac_hi=
2186			  break
2187			fi
2188			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2189fi
2190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2191  done
2192else $as_nop
2193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194/* end confdefs.h.  */
2195$4
2196int
2197main (void)
2198{
2199static int test_array [1 - 2 * !(($2) < 0)];
2200test_array [0] = 0;
2201return test_array [0];
2202
2203  ;
2204  return 0;
2205}
2206_ACEOF
2207if ac_fn_c_try_compile "$LINENO"
2208then :
2209  ac_hi=-1 ac_mid=-1
2210  while :; do
2211    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212/* end confdefs.h.  */
2213$4
2214int
2215main (void)
2216{
2217static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2218test_array [0] = 0;
2219return test_array [0];
2220
2221  ;
2222  return 0;
2223}
2224_ACEOF
2225if ac_fn_c_try_compile "$LINENO"
2226then :
2227  ac_lo=$ac_mid; break
2228else $as_nop
2229  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2230			if test $ac_mid -le $ac_hi; then
2231			  ac_lo= ac_hi=
2232			  break
2233			fi
2234			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2235fi
2236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2237  done
2238else $as_nop
2239  ac_lo= ac_hi=
2240fi
2241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2242fi
2243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2244# Binary search between lo and hi bounds.
2245while test "x$ac_lo" != "x$ac_hi"; do
2246  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248/* end confdefs.h.  */
2249$4
2250int
2251main (void)
2252{
2253static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2254test_array [0] = 0;
2255return test_array [0];
2256
2257  ;
2258  return 0;
2259}
2260_ACEOF
2261if ac_fn_c_try_compile "$LINENO"
2262then :
2263  ac_hi=$ac_mid
2264else $as_nop
2265  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2266fi
2267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2268done
2269case $ac_lo in #((
2270?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2271'') ac_retval=1 ;;
2272esac
2273  else
2274    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275/* end confdefs.h.  */
2276$4
2277static long int longval (void) { return $2; }
2278static unsigned long int ulongval (void) { return $2; }
2279#include <stdio.h>
2280#include <stdlib.h>
2281int
2282main (void)
2283{
2284
2285  FILE *f = fopen ("conftest.val", "w");
2286  if (! f)
2287    return 1;
2288  if (($2) < 0)
2289    {
2290      long int i = longval ();
2291      if (i != ($2))
2292	return 1;
2293      fprintf (f, "%ld", i);
2294    }
2295  else
2296    {
2297      unsigned long int i = ulongval ();
2298      if (i != ($2))
2299	return 1;
2300      fprintf (f, "%lu", i);
2301    }
2302  /* Do not output a trailing newline, as this causes \r\n confusion
2303     on some platforms.  */
2304  return ferror (f) || fclose (f) != 0;
2305
2306  ;
2307  return 0;
2308}
2309_ACEOF
2310if ac_fn_c_try_run "$LINENO"
2311then :
2312  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2313else $as_nop
2314  ac_retval=1
2315fi
2316rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2317  conftest.$ac_objext conftest.beam conftest.$ac_ext
2318rm -f conftest.val
2319
2320  fi
2321  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2322  as_fn_set_status $ac_retval
2323
2324} # ac_fn_c_compute_int
2325
2326# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2327# ----------------------------------------------------
2328# Tries to find if the field MEMBER exists in type AGGR, after including
2329# INCLUDES, setting cache variable VAR accordingly.
2330ac_fn_c_check_member ()
2331{
2332  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2334printf %s "checking for $2.$3... " >&6; }
2335if eval test \${$4+y}
2336then :
2337  printf %s "(cached) " >&6
2338else $as_nop
2339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340/* end confdefs.h.  */
2341$5
2342int
2343main (void)
2344{
2345static $2 ac_aggr;
2346if (ac_aggr.$3)
2347return 0;
2348  ;
2349  return 0;
2350}
2351_ACEOF
2352if ac_fn_c_try_compile "$LINENO"
2353then :
2354  eval "$4=yes"
2355else $as_nop
2356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2357/* end confdefs.h.  */
2358$5
2359int
2360main (void)
2361{
2362static $2 ac_aggr;
2363if (sizeof ac_aggr.$3)
2364return 0;
2365  ;
2366  return 0;
2367}
2368_ACEOF
2369if ac_fn_c_try_compile "$LINENO"
2370then :
2371  eval "$4=yes"
2372else $as_nop
2373  eval "$4=no"
2374fi
2375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2376fi
2377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2378fi
2379eval ac_res=\$$4
2380	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2381printf "%s\n" "$ac_res" >&6; }
2382  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2383
2384} # ac_fn_c_check_member
2385ac_configure_args_raw=
2386for ac_arg
2387do
2388  case $ac_arg in
2389  *\'*)
2390    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2391  esac
2392  as_fn_append ac_configure_args_raw " '$ac_arg'"
2393done
2394
2395case $ac_configure_args_raw in
2396  *$as_nl*)
2397    ac_safe_unquote= ;;
2398  *)
2399    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2400    ac_unsafe_a="$ac_unsafe_z#~"
2401    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2402    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2403esac
2404
2405cat >config.log <<_ACEOF
2406This file contains any messages produced by compilers while
2407running configure, to aid debugging if configure makes a mistake.
2408
2409It was created by sntp $as_me 4.2.8p17, which was
2410generated by GNU Autoconf 2.71.  Invocation command line was
2411
2412  $ $0$ac_configure_args_raw
2413
2414_ACEOF
2415exec 5>>config.log
2416{
2417cat <<_ASUNAME
2418## --------- ##
2419## Platform. ##
2420## --------- ##
2421
2422hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2423uname -m = `(uname -m) 2>/dev/null || echo unknown`
2424uname -r = `(uname -r) 2>/dev/null || echo unknown`
2425uname -s = `(uname -s) 2>/dev/null || echo unknown`
2426uname -v = `(uname -v) 2>/dev/null || echo unknown`
2427
2428/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2429/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2430
2431/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2432/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2433/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2434/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2435/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2436/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2437/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2438
2439_ASUNAME
2440
2441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442for as_dir in $PATH
2443do
2444  IFS=$as_save_IFS
2445  case $as_dir in #(((
2446    '') as_dir=./ ;;
2447    */) ;;
2448    *) as_dir=$as_dir/ ;;
2449  esac
2450    printf "%s\n" "PATH: $as_dir"
2451  done
2452IFS=$as_save_IFS
2453
2454} >&5
2455
2456cat >&5 <<_ACEOF
2457
2458
2459## ----------- ##
2460## Core tests. ##
2461## ----------- ##
2462
2463_ACEOF
2464
2465
2466# Keep a trace of the command line.
2467# Strip out --no-create and --no-recursion so they do not pile up.
2468# Strip out --silent because we don't want to record it for future runs.
2469# Also quote any args containing shell meta-characters.
2470# Make two passes to allow for proper duplicate-argument suppression.
2471ac_configure_args=
2472ac_configure_args0=
2473ac_configure_args1=
2474ac_must_keep_next=false
2475for ac_pass in 1 2
2476do
2477  for ac_arg
2478  do
2479    case $ac_arg in
2480    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2481    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2482    | -silent | --silent | --silen | --sile | --sil)
2483      continue ;;
2484    *\'*)
2485      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2486    esac
2487    case $ac_pass in
2488    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2489    2)
2490      as_fn_append ac_configure_args1 " '$ac_arg'"
2491      if test $ac_must_keep_next = true; then
2492	ac_must_keep_next=false # Got value, back to normal.
2493      else
2494	case $ac_arg in
2495	  *=* | --config-cache | -C | -disable-* | --disable-* \
2496	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2497	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2498	  | -with-* | --with-* | -without-* | --without-* | --x)
2499	    case "$ac_configure_args0 " in
2500	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2501	    esac
2502	    ;;
2503	  -* ) ac_must_keep_next=true ;;
2504	esac
2505      fi
2506      as_fn_append ac_configure_args " '$ac_arg'"
2507      ;;
2508    esac
2509  done
2510done
2511{ ac_configure_args0=; unset ac_configure_args0;}
2512{ ac_configure_args1=; unset ac_configure_args1;}
2513
2514# When interrupted or exit'd, cleanup temporary files, and complete
2515# config.log.  We remove comments because anyway the quotes in there
2516# would cause problems or look ugly.
2517# WARNING: Use '\'' to represent an apostrophe within the trap.
2518# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2519trap 'exit_status=$?
2520  # Sanitize IFS.
2521  IFS=" ""	$as_nl"
2522  # Save into config.log some information that might help in debugging.
2523  {
2524    echo
2525
2526    printf "%s\n" "## ---------------- ##
2527## Cache variables. ##
2528## ---------------- ##"
2529    echo
2530    # The following way of writing the cache mishandles newlines in values,
2531(
2532  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2533    eval ac_val=\$$ac_var
2534    case $ac_val in #(
2535    *${as_nl}*)
2536      case $ac_var in #(
2537      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2538printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2539      esac
2540      case $ac_var in #(
2541      _ | IFS | as_nl) ;; #(
2542      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2543      *) { eval $ac_var=; unset $ac_var;} ;;
2544      esac ;;
2545    esac
2546  done
2547  (set) 2>&1 |
2548    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2549    *${as_nl}ac_space=\ *)
2550      sed -n \
2551	"s/'\''/'\''\\\\'\'''\''/g;
2552	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2553      ;; #(
2554    *)
2555      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2556      ;;
2557    esac |
2558    sort
2559)
2560    echo
2561
2562    printf "%s\n" "## ----------------- ##
2563## Output variables. ##
2564## ----------------- ##"
2565    echo
2566    for ac_var in $ac_subst_vars
2567    do
2568      eval ac_val=\$$ac_var
2569      case $ac_val in
2570      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2571      esac
2572      printf "%s\n" "$ac_var='\''$ac_val'\''"
2573    done | sort
2574    echo
2575
2576    if test -n "$ac_subst_files"; then
2577      printf "%s\n" "## ------------------- ##
2578## File substitutions. ##
2579## ------------------- ##"
2580      echo
2581      for ac_var in $ac_subst_files
2582      do
2583	eval ac_val=\$$ac_var
2584	case $ac_val in
2585	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2586	esac
2587	printf "%s\n" "$ac_var='\''$ac_val'\''"
2588      done | sort
2589      echo
2590    fi
2591
2592    if test -s confdefs.h; then
2593      printf "%s\n" "## ----------- ##
2594## confdefs.h. ##
2595## ----------- ##"
2596      echo
2597      cat confdefs.h
2598      echo
2599    fi
2600    test "$ac_signal" != 0 &&
2601      printf "%s\n" "$as_me: caught signal $ac_signal"
2602    printf "%s\n" "$as_me: exit $exit_status"
2603  } >&5
2604  rm -f core *.core core.conftest.* &&
2605    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2606    exit $exit_status
2607' 0
2608for ac_signal in 1 2 13 15; do
2609  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2610done
2611ac_signal=0
2612
2613# confdefs.h avoids OS command line length limits that DEFS can exceed.
2614rm -f -r conftest* confdefs.h
2615
2616printf "%s\n" "/* confdefs.h */" > confdefs.h
2617
2618# Predefined preprocessor variables.
2619
2620printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2621
2622printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2623
2624printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2625
2626printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2627
2628printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2629
2630printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2631
2632
2633# Let the site file select an alternate cache file if it wants to.
2634# Prefer an explicitly selected file to automatically selected ones.
2635if test -n "$CONFIG_SITE"; then
2636  ac_site_files="$CONFIG_SITE"
2637elif test "x$prefix" != xNONE; then
2638  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2639else
2640  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2641fi
2642
2643for ac_site_file in $ac_site_files
2644do
2645  case $ac_site_file in #(
2646  */*) :
2647     ;; #(
2648  *) :
2649    ac_site_file=./$ac_site_file ;;
2650esac
2651  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2652    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2653printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2654    sed 's/^/| /' "$ac_site_file" >&5
2655    . "$ac_site_file" \
2656      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2657printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2658as_fn_error $? "failed to load site script $ac_site_file
2659See \`config.log' for more details" "$LINENO" 5; }
2660  fi
2661done
2662
2663if test -r "$cache_file"; then
2664  # Some versions of bash will fail to source /dev/null (special files
2665  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2666  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2667    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2668printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2669    case $cache_file in
2670      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2671      *)                      . "./$cache_file";;
2672    esac
2673  fi
2674else
2675  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2676printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2677  >$cache_file
2678fi
2679
2680# Test code for whether the C compiler supports C89 (global declarations)
2681ac_c_conftest_c89_globals='
2682/* Does the compiler advertise C89 conformance?
2683   Do not test the value of __STDC__, because some compilers set it to 0
2684   while being otherwise adequately conformant. */
2685#if !defined __STDC__
2686# error "Compiler does not advertise C89 conformance"
2687#endif
2688
2689#include <stddef.h>
2690#include <stdarg.h>
2691struct stat;
2692/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2693struct buf { int x; };
2694struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2695static char *e (p, i)
2696     char **p;
2697     int i;
2698{
2699  return p[i];
2700}
2701static char *f (char * (*g) (char **, int), char **p, ...)
2702{
2703  char *s;
2704  va_list v;
2705  va_start (v,p);
2706  s = g (p, va_arg (v,int));
2707  va_end (v);
2708  return s;
2709}
2710
2711/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2712   function prototypes and stuff, but not \xHH hex character constants.
2713   These do not provoke an error unfortunately, instead are silently treated
2714   as an "x".  The following induces an error, until -std is added to get
2715   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2716   array size at least.  It is necessary to write \x00 == 0 to get something
2717   that is true only with -std.  */
2718int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2719
2720/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2721   inside strings and character constants.  */
2722#define FOO(x) '\''x'\''
2723int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2724
2725int test (int i, double x);
2726struct s1 {int (*f) (int a);};
2727struct s2 {int (*f) (double a);};
2728int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2729               int, int);'
2730
2731# Test code for whether the C compiler supports C89 (body of main).
2732ac_c_conftest_c89_main='
2733ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2734'
2735
2736# Test code for whether the C compiler supports C99 (global declarations)
2737ac_c_conftest_c99_globals='
2738// Does the compiler advertise C99 conformance?
2739#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2740# error "Compiler does not advertise C99 conformance"
2741#endif
2742
2743#include <stdbool.h>
2744extern int puts (const char *);
2745extern int printf (const char *, ...);
2746extern int dprintf (int, const char *, ...);
2747extern void *malloc (size_t);
2748
2749// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2750// dprintf is used instead of fprintf to avoid needing to declare
2751// FILE and stderr.
2752#define debug(...) dprintf (2, __VA_ARGS__)
2753#define showlist(...) puts (#__VA_ARGS__)
2754#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2755static void
2756test_varargs_macros (void)
2757{
2758  int x = 1234;
2759  int y = 5678;
2760  debug ("Flag");
2761  debug ("X = %d\n", x);
2762  showlist (The first, second, and third items.);
2763  report (x>y, "x is %d but y is %d", x, y);
2764}
2765
2766// Check long long types.
2767#define BIG64 18446744073709551615ull
2768#define BIG32 4294967295ul
2769#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2770#if !BIG_OK
2771  #error "your preprocessor is broken"
2772#endif
2773#if BIG_OK
2774#else
2775  #error "your preprocessor is broken"
2776#endif
2777static long long int bignum = -9223372036854775807LL;
2778static unsigned long long int ubignum = BIG64;
2779
2780struct incomplete_array
2781{
2782  int datasize;
2783  double data[];
2784};
2785
2786struct named_init {
2787  int number;
2788  const wchar_t *name;
2789  double average;
2790};
2791
2792typedef const char *ccp;
2793
2794static inline int
2795test_restrict (ccp restrict text)
2796{
2797  // See if C++-style comments work.
2798  // Iterate through items via the restricted pointer.
2799  // Also check for declarations in for loops.
2800  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2801    continue;
2802  return 0;
2803}
2804
2805// Check varargs and va_copy.
2806static bool
2807test_varargs (const char *format, ...)
2808{
2809  va_list args;
2810  va_start (args, format);
2811  va_list args_copy;
2812  va_copy (args_copy, args);
2813
2814  const char *str = "";
2815  int number = 0;
2816  float fnumber = 0;
2817
2818  while (*format)
2819    {
2820      switch (*format++)
2821	{
2822	case '\''s'\'': // string
2823	  str = va_arg (args_copy, const char *);
2824	  break;
2825	case '\''d'\'': // int
2826	  number = va_arg (args_copy, int);
2827	  break;
2828	case '\''f'\'': // float
2829	  fnumber = va_arg (args_copy, double);
2830	  break;
2831	default:
2832	  break;
2833	}
2834    }
2835  va_end (args_copy);
2836  va_end (args);
2837
2838  return *str && number && fnumber;
2839}
2840'
2841
2842# Test code for whether the C compiler supports C99 (body of main).
2843ac_c_conftest_c99_main='
2844  // Check bool.
2845  _Bool success = false;
2846  success |= (argc != 0);
2847
2848  // Check restrict.
2849  if (test_restrict ("String literal") == 0)
2850    success = true;
2851  char *restrict newvar = "Another string";
2852
2853  // Check varargs.
2854  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2855  test_varargs_macros ();
2856
2857  // Check flexible array members.
2858  struct incomplete_array *ia =
2859    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2860  ia->datasize = 10;
2861  for (int i = 0; i < ia->datasize; ++i)
2862    ia->data[i] = i * 1.234;
2863
2864  // Check named initializers.
2865  struct named_init ni = {
2866    .number = 34,
2867    .name = L"Test wide string",
2868    .average = 543.34343,
2869  };
2870
2871  ni.number = 58;
2872
2873  int dynamic_array[ni.number];
2874  dynamic_array[0] = argv[0][0];
2875  dynamic_array[ni.number - 1] = 543;
2876
2877  // work around unused variable warnings
2878  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2879	 || dynamic_array[ni.number - 1] != 543);
2880'
2881
2882# Test code for whether the C compiler supports C11 (global declarations)
2883ac_c_conftest_c11_globals='
2884// Does the compiler advertise C11 conformance?
2885#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2886# error "Compiler does not advertise C11 conformance"
2887#endif
2888
2889// Check _Alignas.
2890char _Alignas (double) aligned_as_double;
2891char _Alignas (0) no_special_alignment;
2892extern char aligned_as_int;
2893char _Alignas (0) _Alignas (int) aligned_as_int;
2894
2895// Check _Alignof.
2896enum
2897{
2898  int_alignment = _Alignof (int),
2899  int_array_alignment = _Alignof (int[100]),
2900  char_alignment = _Alignof (char)
2901};
2902_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2903
2904// Check _Noreturn.
2905int _Noreturn does_not_return (void) { for (;;) continue; }
2906
2907// Check _Static_assert.
2908struct test_static_assert
2909{
2910  int x;
2911  _Static_assert (sizeof (int) <= sizeof (long int),
2912                  "_Static_assert does not work in struct");
2913  long int y;
2914};
2915
2916// Check UTF-8 literals.
2917#define u8 syntax error!
2918char const utf8_literal[] = u8"happens to be ASCII" "another string";
2919
2920// Check duplicate typedefs.
2921typedef long *long_ptr;
2922typedef long int *long_ptr;
2923typedef long_ptr long_ptr;
2924
2925// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2926struct anonymous
2927{
2928  union {
2929    struct { int i; int j; };
2930    struct { int k; long int l; } w;
2931  };
2932  int m;
2933} v1;
2934'
2935
2936# Test code for whether the C compiler supports C11 (body of main).
2937ac_c_conftest_c11_main='
2938  _Static_assert ((offsetof (struct anonymous, i)
2939		   == offsetof (struct anonymous, w.k)),
2940		  "Anonymous union alignment botch");
2941  v1.i = 2;
2942  v1.w.k = 5;
2943  ok |= v1.i != 5;
2944'
2945
2946# Test code for whether the C compiler supports C11 (complete).
2947ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2948${ac_c_conftest_c99_globals}
2949${ac_c_conftest_c11_globals}
2950
2951int
2952main (int argc, char **argv)
2953{
2954  int ok = 0;
2955  ${ac_c_conftest_c89_main}
2956  ${ac_c_conftest_c99_main}
2957  ${ac_c_conftest_c11_main}
2958  return ok;
2959}
2960"
2961
2962# Test code for whether the C compiler supports C99 (complete).
2963ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2964${ac_c_conftest_c99_globals}
2965
2966int
2967main (int argc, char **argv)
2968{
2969  int ok = 0;
2970  ${ac_c_conftest_c89_main}
2971  ${ac_c_conftest_c99_main}
2972  return ok;
2973}
2974"
2975
2976# Test code for whether the C compiler supports C89 (complete).
2977ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2978
2979int
2980main (int argc, char **argv)
2981{
2982  int ok = 0;
2983  ${ac_c_conftest_c89_main}
2984  return ok;
2985}
2986"
2987
2988as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2989as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2990as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2991as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2992as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2993as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2994as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2995as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2996as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2997as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2998as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2999as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
3000as_fn_append ac_func_c_list " fork HAVE_FORK"
3001as_fn_append ac_func_c_list " vfork HAVE_VFORK"
3002as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
3003as_fn_append ac_header_c_list " stdarg.h stdarg_h HAVE_STDARG_H"
3004as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3005
3006# Auxiliary files required by this configure script.
3007ac_aux_files="ltmain.sh ar-lib compile config.guess config.sub missing install-sh"
3008
3009# Locations in which to look for auxiliary files.
3010ac_aux_dir_candidates="${srcdir}/libevent/build-aux"
3011
3012# Search for a directory containing all of the required auxiliary files,
3013# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3014# If we don't find one directory that contains all the files we need,
3015# we report the set of missing files from the *first* directory in
3016# $ac_aux_dir_candidates and give up.
3017ac_missing_aux_files=""
3018ac_first_candidate=:
3019printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021as_found=false
3022for as_dir in $ac_aux_dir_candidates
3023do
3024  IFS=$as_save_IFS
3025  case $as_dir in #(((
3026    '') as_dir=./ ;;
3027    */) ;;
3028    *) as_dir=$as_dir/ ;;
3029  esac
3030  as_found=:
3031
3032  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3033  ac_aux_dir_found=yes
3034  ac_install_sh=
3035  for ac_aux in $ac_aux_files
3036  do
3037    # As a special case, if "install-sh" is required, that requirement
3038    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3039    # and $ac_install_sh is set appropriately for whichever one is found.
3040    if test x"$ac_aux" = x"install-sh"
3041    then
3042      if test -f "${as_dir}install-sh"; then
3043        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3044        ac_install_sh="${as_dir}install-sh -c"
3045      elif test -f "${as_dir}install.sh"; then
3046        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3047        ac_install_sh="${as_dir}install.sh -c"
3048      elif test -f "${as_dir}shtool"; then
3049        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3050        ac_install_sh="${as_dir}shtool install -c"
3051      else
3052        ac_aux_dir_found=no
3053        if $ac_first_candidate; then
3054          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3055        else
3056          break
3057        fi
3058      fi
3059    else
3060      if test -f "${as_dir}${ac_aux}"; then
3061        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3062      else
3063        ac_aux_dir_found=no
3064        if $ac_first_candidate; then
3065          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3066        else
3067          break
3068        fi
3069      fi
3070    fi
3071  done
3072  if test "$ac_aux_dir_found" = yes; then
3073    ac_aux_dir="$as_dir"
3074    break
3075  fi
3076  ac_first_candidate=false
3077
3078  as_found=false
3079done
3080IFS=$as_save_IFS
3081if $as_found
3082then :
3083
3084else $as_nop
3085  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3086fi
3087
3088
3089# These three variables are undocumented and unsupported,
3090# and are intended to be withdrawn in a future Autoconf release.
3091# They can cause serious problems if a builder's source tree is in a directory
3092# whose full name contains unusual characters.
3093if test -f "${ac_aux_dir}config.guess"; then
3094  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3095fi
3096if test -f "${ac_aux_dir}config.sub"; then
3097  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3098fi
3099if test -f "$ac_aux_dir/configure"; then
3100  ac_configure="$SHELL ${ac_aux_dir}configure"
3101fi
3102
3103# Check that the precious variables saved in the cache have kept the same
3104# value.
3105ac_cache_corrupted=false
3106for ac_var in $ac_precious_vars; do
3107  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3108  eval ac_new_set=\$ac_env_${ac_var}_set
3109  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3110  eval ac_new_val=\$ac_env_${ac_var}_value
3111  case $ac_old_set,$ac_new_set in
3112    set,)
3113      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3114printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3115      ac_cache_corrupted=: ;;
3116    ,set)
3117      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3118printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3119      ac_cache_corrupted=: ;;
3120    ,);;
3121    *)
3122      if test "x$ac_old_val" != "x$ac_new_val"; then
3123	# differences in whitespace do not lead to failure.
3124	ac_old_val_w=`echo x $ac_old_val`
3125	ac_new_val_w=`echo x $ac_new_val`
3126	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3127	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3128printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3129	  ac_cache_corrupted=:
3130	else
3131	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3132printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3133	  eval $ac_var=\$ac_old_val
3134	fi
3135	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3136printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3137	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3138printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3139      fi;;
3140  esac
3141  # Pass precious variables to config.status.
3142  if test "$ac_new_set" = set; then
3143    case $ac_new_val in
3144    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3145    *) ac_arg=$ac_var=$ac_new_val ;;
3146    esac
3147    case " $ac_configure_args " in
3148      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3149      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3150    esac
3151  fi
3152done
3153if $ac_cache_corrupted; then
3154  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3156  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3157printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3158  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3159	    and start over" "$LINENO" 5
3160fi
3161## -------------------- ##
3162## Main body of script. ##
3163## -------------------- ##
3164
3165ac_ext=c
3166ac_cpp='$CPP $CPPFLAGS'
3167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170
3171
3172
3173
3174ac_ext=c
3175ac_cpp='$CPP $CPPFLAGS'
3176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179
3180
3181# Bump sntp_configure_cache_version for each change to configure.ac or
3182# .m4 files which invalidates cached values from previous configure
3183# runs.
3184#
3185# If the change affects cache variables used only by the main NTP
3186# configure.ac, then only its version number should be bumped, while
3187# the subdir configure.ac version numbers should be unchanged.  The
3188# same is true for a test/variable that is used only by one subdir
3189# being changed incompatibly; only that subdir's cache version needs
3190# bumping.
3191#
3192# If a change affects variables shared by all NTP configure scripts,
3193# please bump the version numbers of each.  If you are not sure, the
3194# safe choice is to bump all on any cache-invalidating change.
3195#
3196# In order to avoid the risk of version stamp collision between -stable
3197# and -dev branches, do not simply increment the version, instead use
3198# the date YYYYMMDD optionally with -HHMM if there is more than one
3199# bump in a day.
3200
3201sntp_configure_cache_version=20120806
3202
3203# When the version of config.cache and configure do not
3204# match, NTP_CACHEVERSION will flush the cache.
3205
3206
3207
3208    ntp_cache_flush=1
3209
3210    case "$ntp_cv_sntp_cache_version" in
3211     $sntp_configure_cache_version)
3212	# same version, good
3213	ntp_cache_flush=0
3214	;;
3215     '')
3216	# No cache, predates ntp_cv_sntp_cache_version, or is empty.
3217	case "$cache_file" in
3218	 /dev/null)
3219	    ntp_cache_flush=0
3220	    ;;
3221	 *)
3222	    case "$NTP_CACHEVERSION_PARENT" in
3223	     '')
3224		# Do not clear the cache immediately after it is created
3225		# empty as it is noisy.  Differentiate a newly-created
3226		# config.cache from one predating the cache version
3227		# mechanism by looking for the first cached variable set
3228		# by Autoconf
3229		case "$ac_cv_path_install" in
3230		 '')
3231		    # empty config.cache file
3232		    ntp_cache_flush=0
3233		esac
3234		;;
3235	     *)
3236		# Parent configure just created cache from empty,
3237		# flushing would be counterproductive.
3238		ntp_cache_flush=0;
3239		;;
3240	    esac
3241	esac
3242	;;
3243     *)
3244	# configure cache version mismatches config.cache version
3245	;;
3246    esac
3247
3248    case "$ntp_cache_flush" in
3249     1)
3250	c_version="${ntp_cv_sntp_cache_version:-(no version found)}"
3251
3252	# Do we flush all variables or exclude others' version stamps?
3253
3254	case "$NTP_CACHEVERSION_PARENT" in
3255	 '')
3256	    # Clear all *_cv_* variables including our child subdirs'
3257	    # ntp_cv_*_cache_version variables.  This prevents subdir
3258	    # configure scripts from noticing a version mismatch just
3259	    # after the top configure in the invocation cleared and
3260	    # recreated the cache.
3261
3262	    c_varname_list=`set |
3263			    sed -n -e 's/=.*$//' \
3264				   -e '/_cv_/p'
3265			   `
3266	    ;;
3267	 *)
3268	    # This is not the top configure this particular invocation.
3269	    # Clear all *_cv_* variables sparing the version stamps
3270	    # of other configure scripts, so we don't trigger
3271	    # useless repeated clearings.
3272
3273	    c_varname_list=`set |
3274			    sed -n -e 's/=.*$//' \
3275				   -e '/ntp_cv_.*_cache_version/d' \
3276				   -e '/_cv_/p'
3277			   `
3278	esac
3279
3280	for c_varname in $c_varname_list
3281	do
3282	    { eval $c_varname=; unset $c_varname;}
3283	done
3284
3285	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
3286printf "%s\n" "$as_me: $cache_file saved by another version, ignored." >&6;}
3287	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: configure script cache version: $sntp_configure_cache_version" >&5
3288printf "%s\n" "$as_me: configure script cache version: $sntp_configure_cache_version" >&6;}
3289	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
3290printf "%s\n" "$as_me: $cache_file version: $c_version" >&6;}
3291	{ c_varname=; unset c_varname;}
3292	{ c_varname_list=; unset c_varname_list;}
3293	{ c_version=; unset c_version;}
3294    esac
3295
3296    { ntp_cache_flush=; unset ntp_cache_flush;}
3297
3298    # save configure version in config.cache for next time
3299    ntp_cv_sntp_cache_version="$sntp_configure_cache_version"
3300
3301    # let any subdir configure.ac NTP_CACHEVERSION invocations
3302    # know they are not the top level.
3303    NTP_CACHEVERSION_PARENT='sntp' ; export NTP_CACHEVERSION_PARENT
3304
3305
3306am__api_version='1.16'
3307
3308
3309
3310  # Find a good install program.  We prefer a C program (faster),
3311# so one script is as good as another.  But avoid the broken or
3312# incompatible versions:
3313# SysV /etc/install, /usr/sbin/install
3314# SunOS /usr/etc/install
3315# IRIX /sbin/install
3316# AIX /bin/install
3317# AmigaOS /C/install, which installs bootblocks on floppy discs
3318# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3319# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3320# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3321# OS/2's system install, which has a completely different semantic
3322# ./install, which can be erroneously created by make from ./install.sh.
3323# Reject install programs that cannot install multiple files.
3324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3325printf %s "checking for a BSD-compatible install... " >&6; }
3326if test -z "$INSTALL"; then
3327if test ${ac_cv_path_install+y}
3328then :
3329  printf %s "(cached) " >&6
3330else $as_nop
3331  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332for as_dir in $PATH
3333do
3334  IFS=$as_save_IFS
3335  case $as_dir in #(((
3336    '') as_dir=./ ;;
3337    */) ;;
3338    *) as_dir=$as_dir/ ;;
3339  esac
3340    # Account for fact that we put trailing slashes in our PATH walk.
3341case $as_dir in #((
3342  ./ | /[cC]/* | \
3343  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3344  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3345  /usr/ucb/* ) ;;
3346  *)
3347    # OSF1 and SCO ODT 3.0 have their own names for install.
3348    # Don't use installbsd from OSF since it installs stuff as root
3349    # by default.
3350    for ac_prog in ginstall scoinst install; do
3351      for ac_exec_ext in '' $ac_executable_extensions; do
3352	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3353	  if test $ac_prog = install &&
3354	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3355	    # AIX install.  It has an incompatible calling convention.
3356	    :
3357	  elif test $ac_prog = install &&
3358	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3359	    # program-specific install script used by HP pwplus--don't use.
3360	    :
3361	  else
3362	    rm -rf conftest.one conftest.two conftest.dir
3363	    echo one > conftest.one
3364	    echo two > conftest.two
3365	    mkdir conftest.dir
3366	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3367	      test -s conftest.one && test -s conftest.two &&
3368	      test -s conftest.dir/conftest.one &&
3369	      test -s conftest.dir/conftest.two
3370	    then
3371	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3372	      break 3
3373	    fi
3374	  fi
3375	fi
3376      done
3377    done
3378    ;;
3379esac
3380
3381  done
3382IFS=$as_save_IFS
3383
3384rm -rf conftest.one conftest.two conftest.dir
3385
3386fi
3387  if test ${ac_cv_path_install+y}; then
3388    INSTALL=$ac_cv_path_install
3389  else
3390    # As a last resort, use the slow shell script.  Don't cache a
3391    # value for INSTALL within a source directory, because that will
3392    # break other packages using the cache if that directory is
3393    # removed, or if the value is a relative name.
3394    INSTALL=$ac_install_sh
3395  fi
3396fi
3397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3398printf "%s\n" "$INSTALL" >&6; }
3399
3400# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3401# It thinks the first close brace ends the variable substitution.
3402test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3403
3404test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3405
3406test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3407
3408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3409printf %s "checking whether build environment is sane... " >&6; }
3410# Reject unsafe characters in $srcdir or the absolute working directory
3411# name.  Accept space and tab only in the latter.
3412am_lf='
3413'
3414case `pwd` in
3415  *[\\\"\#\$\&\'\`$am_lf]*)
3416    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3417esac
3418case $srcdir in
3419  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3420    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3421esac
3422
3423# Do 'set' in a subshell so we don't clobber the current shell's
3424# arguments.  Must try -L first in case configure is actually a
3425# symlink; some systems play weird games with the mod time of symlinks
3426# (eg FreeBSD returns the mod time of the symlink's containing
3427# directory).
3428if (
3429   am_has_slept=no
3430   for am_try in 1 2; do
3431     echo "timestamp, slept: $am_has_slept" > conftest.file
3432     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3433     if test "$*" = "X"; then
3434	# -L didn't work.
3435	set X `ls -t "$srcdir/configure" conftest.file`
3436     fi
3437     if test "$*" != "X $srcdir/configure conftest.file" \
3438	&& test "$*" != "X conftest.file $srcdir/configure"; then
3439
3440	# If neither matched, then we have a broken ls.  This can happen
3441	# if, for instance, CONFIG_SHELL is bash and it inherits a
3442	# broken ls alias from the environment.  This has actually
3443	# happened.  Such a system could not be considered "sane".
3444	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3445  alias in your environment" "$LINENO" 5
3446     fi
3447     if test "$2" = conftest.file || test $am_try -eq 2; then
3448       break
3449     fi
3450     # Just in case.
3451     sleep 1
3452     am_has_slept=yes
3453   done
3454   test "$2" = conftest.file
3455   )
3456then
3457   # Ok.
3458   :
3459else
3460   as_fn_error $? "newly created file is older than distributed files!
3461Check your system clock" "$LINENO" 5
3462fi
3463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3464printf "%s\n" "yes" >&6; }
3465# If we didn't sleep, we still need to ensure time stamps of config.status and
3466# generated files are strictly newer.
3467am_sleep_pid=
3468if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3469  ( sleep 1 ) &
3470  am_sleep_pid=$!
3471fi
3472
3473rm -f conftest.file
3474
3475test "$program_prefix" != NONE &&
3476  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3477# Use a double $ so make ignores it.
3478test "$program_suffix" != NONE &&
3479  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3480# Double any \ or $.
3481# By default was `s,x,x', remove it if useless.
3482ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3483program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3484
3485
3486# Expand $ac_aux_dir to an absolute path.
3487am_aux_dir=`cd "$ac_aux_dir" && pwd`
3488
3489
3490  if test x"${MISSING+set}" != xset; then
3491  MISSING="\${SHELL} '$am_aux_dir/missing'"
3492fi
3493# Use eval to expand $SHELL
3494if eval "$MISSING --is-lightweight"; then
3495  am_missing_run="$MISSING "
3496else
3497  am_missing_run=
3498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3499printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3500fi
3501
3502if test x"${install_sh+set}" != xset; then
3503  case $am_aux_dir in
3504  *\ * | *\	*)
3505    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3506  *)
3507    install_sh="\${SHELL} $am_aux_dir/install-sh"
3508  esac
3509fi
3510
3511# Installed binaries are usually stripped using 'strip' when the user
3512# run "make install-strip".  However 'strip' might not be the right
3513# tool to use in cross-compilation environments, therefore Automake
3514# will honor the 'STRIP' environment variable to overrule this program.
3515if test "$cross_compiling" != no; then
3516  if test -n "$ac_tool_prefix"; then
3517  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3518set dummy ${ac_tool_prefix}strip; ac_word=$2
3519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520printf %s "checking for $ac_word... " >&6; }
3521if test ${ac_cv_prog_STRIP+y}
3522then :
3523  printf %s "(cached) " >&6
3524else $as_nop
3525  if test -n "$STRIP"; then
3526  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3527else
3528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529for as_dir in $PATH
3530do
3531  IFS=$as_save_IFS
3532  case $as_dir in #(((
3533    '') as_dir=./ ;;
3534    */) ;;
3535    *) as_dir=$as_dir/ ;;
3536  esac
3537    for ac_exec_ext in '' $ac_executable_extensions; do
3538  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3539    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3540    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3541    break 2
3542  fi
3543done
3544  done
3545IFS=$as_save_IFS
3546
3547fi
3548fi
3549STRIP=$ac_cv_prog_STRIP
3550if test -n "$STRIP"; then
3551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3552printf "%s\n" "$STRIP" >&6; }
3553else
3554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555printf "%s\n" "no" >&6; }
3556fi
3557
3558
3559fi
3560if test -z "$ac_cv_prog_STRIP"; then
3561  ac_ct_STRIP=$STRIP
3562  # Extract the first word of "strip", so it can be a program name with args.
3563set dummy strip; ac_word=$2
3564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565printf %s "checking for $ac_word... " >&6; }
3566if test ${ac_cv_prog_ac_ct_STRIP+y}
3567then :
3568  printf %s "(cached) " >&6
3569else $as_nop
3570  if test -n "$ac_ct_STRIP"; then
3571  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3572else
3573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574for as_dir in $PATH
3575do
3576  IFS=$as_save_IFS
3577  case $as_dir in #(((
3578    '') as_dir=./ ;;
3579    */) ;;
3580    *) as_dir=$as_dir/ ;;
3581  esac
3582    for ac_exec_ext in '' $ac_executable_extensions; do
3583  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3584    ac_cv_prog_ac_ct_STRIP="strip"
3585    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3586    break 2
3587  fi
3588done
3589  done
3590IFS=$as_save_IFS
3591
3592fi
3593fi
3594ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3595if test -n "$ac_ct_STRIP"; then
3596  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3597printf "%s\n" "$ac_ct_STRIP" >&6; }
3598else
3599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600printf "%s\n" "no" >&6; }
3601fi
3602
3603  if test "x$ac_ct_STRIP" = x; then
3604    STRIP=":"
3605  else
3606    case $cross_compiling:$ac_tool_warned in
3607yes:)
3608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3609printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3610ac_tool_warned=yes ;;
3611esac
3612    STRIP=$ac_ct_STRIP
3613  fi
3614else
3615  STRIP="$ac_cv_prog_STRIP"
3616fi
3617
3618fi
3619INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3620
3621
3622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3623printf %s "checking for a race-free mkdir -p... " >&6; }
3624if test -z "$MKDIR_P"; then
3625  if test ${ac_cv_path_mkdir+y}
3626then :
3627  printf %s "(cached) " >&6
3628else $as_nop
3629  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3631do
3632  IFS=$as_save_IFS
3633  case $as_dir in #(((
3634    '') as_dir=./ ;;
3635    */) ;;
3636    *) as_dir=$as_dir/ ;;
3637  esac
3638    for ac_prog in mkdir gmkdir; do
3639	 for ac_exec_ext in '' $ac_executable_extensions; do
3640	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3641	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3642	     'mkdir ('*'coreutils) '* | \
3643	     'BusyBox '* | \
3644	     'mkdir (fileutils) '4.1*)
3645	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3646	       break 3;;
3647	   esac
3648	 done
3649       done
3650  done
3651IFS=$as_save_IFS
3652
3653fi
3654
3655  test -d ./--version && rmdir ./--version
3656  if test ${ac_cv_path_mkdir+y}; then
3657    MKDIR_P="$ac_cv_path_mkdir -p"
3658  else
3659    # As a last resort, use the slow shell script.  Don't cache a
3660    # value for MKDIR_P within a source directory, because that will
3661    # break other packages using the cache if that directory is
3662    # removed, or if the value is a relative name.
3663    MKDIR_P="$ac_install_sh -d"
3664  fi
3665fi
3666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3667printf "%s\n" "$MKDIR_P" >&6; }
3668
3669for ac_prog in gawk mawk nawk awk
3670do
3671  # Extract the first word of "$ac_prog", so it can be a program name with args.
3672set dummy $ac_prog; ac_word=$2
3673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3674printf %s "checking for $ac_word... " >&6; }
3675if test ${ac_cv_prog_AWK+y}
3676then :
3677  printf %s "(cached) " >&6
3678else $as_nop
3679  if test -n "$AWK"; then
3680  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3681else
3682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683for as_dir in $PATH
3684do
3685  IFS=$as_save_IFS
3686  case $as_dir in #(((
3687    '') as_dir=./ ;;
3688    */) ;;
3689    *) as_dir=$as_dir/ ;;
3690  esac
3691    for ac_exec_ext in '' $ac_executable_extensions; do
3692  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3693    ac_cv_prog_AWK="$ac_prog"
3694    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3695    break 2
3696  fi
3697done
3698  done
3699IFS=$as_save_IFS
3700
3701fi
3702fi
3703AWK=$ac_cv_prog_AWK
3704if test -n "$AWK"; then
3705  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3706printf "%s\n" "$AWK" >&6; }
3707else
3708  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709printf "%s\n" "no" >&6; }
3710fi
3711
3712
3713  test -n "$AWK" && break
3714done
3715
3716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3717printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3718set x ${MAKE-make}
3719ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3720if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3721then :
3722  printf %s "(cached) " >&6
3723else $as_nop
3724  cat >conftest.make <<\_ACEOF
3725SHELL = /bin/sh
3726all:
3727	@echo '@@@%%%=$(MAKE)=@@@%%%'
3728_ACEOF
3729# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3730case `${MAKE-make} -f conftest.make 2>/dev/null` in
3731  *@@@%%%=?*=@@@%%%*)
3732    eval ac_cv_prog_make_${ac_make}_set=yes;;
3733  *)
3734    eval ac_cv_prog_make_${ac_make}_set=no;;
3735esac
3736rm -f conftest.make
3737fi
3738if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3740printf "%s\n" "yes" >&6; }
3741  SET_MAKE=
3742else
3743  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744printf "%s\n" "no" >&6; }
3745  SET_MAKE="MAKE=${MAKE-make}"
3746fi
3747
3748rm -rf .tst 2>/dev/null
3749mkdir .tst 2>/dev/null
3750if test -d .tst; then
3751  am__leading_dot=.
3752else
3753  am__leading_dot=_
3754fi
3755rmdir .tst 2>/dev/null
3756
3757# Check whether --enable-silent-rules was given.
3758if test ${enable_silent_rules+y}
3759then :
3760  enableval=$enable_silent_rules;
3761fi
3762
3763case $enable_silent_rules in # (((
3764  yes) AM_DEFAULT_VERBOSITY=0;;
3765   no) AM_DEFAULT_VERBOSITY=1;;
3766    *) AM_DEFAULT_VERBOSITY=1;;
3767esac
3768am_make=${MAKE-make}
3769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3770printf %s "checking whether $am_make supports nested variables... " >&6; }
3771if test ${am_cv_make_support_nested_variables+y}
3772then :
3773  printf %s "(cached) " >&6
3774else $as_nop
3775  if printf "%s\n" 'TRUE=$(BAR$(V))
3776BAR0=false
3777BAR1=true
3778V=1
3779am__doit:
3780	@$(TRUE)
3781.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3782  am_cv_make_support_nested_variables=yes
3783else
3784  am_cv_make_support_nested_variables=no
3785fi
3786fi
3787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3788printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3789if test $am_cv_make_support_nested_variables = yes; then
3790    AM_V='$(V)'
3791  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3792else
3793  AM_V=$AM_DEFAULT_VERBOSITY
3794  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3795fi
3796AM_BACKSLASH='\'
3797
3798if test "`cd $srcdir && pwd`" != "`pwd`"; then
3799  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3800  # is not polluted with repeated "-I."
3801  am__isrc=' -I$(srcdir)'
3802  # test to see if srcdir already configured
3803  if test -f $srcdir/config.status; then
3804    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3805  fi
3806fi
3807
3808# test whether we have cygpath
3809if test -z "$CYGPATH_W"; then
3810  if (cygpath --version) >/dev/null 2>/dev/null; then
3811    CYGPATH_W='cygpath -w'
3812  else
3813    CYGPATH_W=echo
3814  fi
3815fi
3816
3817
3818# Define the identity of the package.
3819 PACKAGE='sntp'
3820 VERSION='4.2.8p17'
3821
3822
3823printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3824
3825
3826printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3827
3828# Some tools Automake needs.
3829
3830ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3831
3832
3833AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3834
3835
3836AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3837
3838
3839AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3840
3841
3842MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3843
3844# For better backward compatibility.  To be removed once Automake 1.9.x
3845# dies out for good.  For more background, see:
3846# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3847# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3848mkdir_p='$(MKDIR_P)'
3849
3850# We need awk for the "check" target (and possibly the TAP driver).  The
3851# system "awk" is bad on some platforms.
3852# Always define AMTAR for backward compatibility.  Yes, it's still used
3853# in the wild :-(  We should find a proper way to deprecate it ...
3854AMTAR='$${TAR-tar}'
3855
3856
3857# We'll loop over all known methods to create a tar archive until one works.
3858_am_tools='gnutar  pax cpio none'
3859
3860am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3861
3862
3863
3864
3865
3866# Variables for tags utilities; see am/tags.am
3867if test -z "$CTAGS"; then
3868  CTAGS=ctags
3869fi
3870
3871if test -z "$ETAGS"; then
3872  ETAGS=etags
3873fi
3874
3875if test -z "$CSCOPE"; then
3876  CSCOPE=cscope
3877fi
3878
3879
3880
3881# POSIX will say in a future version that running "rm -f" with no argument
3882# is OK; and we want to be able to make that assumption in our Makefile
3883# recipes.  So use an aggressive probe to check that the usage we want is
3884# actually supported "in the wild" to an acceptable degree.
3885# See automake bug#10828.
3886# To make any issue more visible, cause the running configure to be aborted
3887# by default if the 'rm' program in use doesn't match our expectations; the
3888# user can still override this though.
3889if rm -f && rm -fr && rm -rf; then : OK; else
3890  cat >&2 <<'END'
3891Oops!
3892
3893Your 'rm' program seems unable to run without file operands specified
3894on the command line, even when the '-f' option is present.  This is contrary
3895to the behaviour of most rm programs out there, and not conforming with
3896the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3897
3898Please tell bug-automake@gnu.org about your system, including the value
3899of your $PATH and any error possibly output before this message.  This
3900can help us improve future automake versions.
3901
3902END
3903  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3904    echo 'Configuration will proceed anyway, since you have set the' >&2
3905    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3906    echo >&2
3907  else
3908    cat >&2 <<'END'
3909Aborting the configuration process, to ensure you take notice of the issue.
3910
3911You can download and install GNU coreutils to get an 'rm' implementation
3912that behaves properly: <https://www.gnu.org/software/coreutils/>.
3913
3914If you want to complete the configuration process using your problematic
3915'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3916to "yes", and re-run configure.
3917
3918END
3919    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3920  fi
3921fi
3922
3923
3924# Check whether --enable-silent-rules was given.
3925if test ${enable_silent_rules+y}
3926then :
3927  enableval=$enable_silent_rules;
3928fi
3929
3930case $enable_silent_rules in # (((
3931  yes) AM_DEFAULT_VERBOSITY=0;;
3932   no) AM_DEFAULT_VERBOSITY=1;;
3933    *) AM_DEFAULT_VERBOSITY=0;;
3934esac
3935am_make=${MAKE-make}
3936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3937printf %s "checking whether $am_make supports nested variables... " >&6; }
3938if test ${am_cv_make_support_nested_variables+y}
3939then :
3940  printf %s "(cached) " >&6
3941else $as_nop
3942  if printf "%s\n" 'TRUE=$(BAR$(V))
3943BAR0=false
3944BAR1=true
3945V=1
3946am__doit:
3947	@$(TRUE)
3948.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3949  am_cv_make_support_nested_variables=yes
3950else
3951  am_cv_make_support_nested_variables=no
3952fi
3953fi
3954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3955printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3956if test $am_cv_make_support_nested_variables = yes; then
3957    AM_V='$(V)'
3958  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3959else
3960  AM_V=$AM_DEFAULT_VERBOSITY
3961  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3962fi
3963AM_BACKSLASH='\'
3964
3965
3966
3967
3968  # Make sure we can run config.sub.
3969$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3970  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3971
3972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3973printf %s "checking build system type... " >&6; }
3974if test ${ac_cv_build+y}
3975then :
3976  printf %s "(cached) " >&6
3977else $as_nop
3978  ac_build_alias=$build_alias
3979test "x$ac_build_alias" = x &&
3980  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3981test "x$ac_build_alias" = x &&
3982  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3983ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3984  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3985
3986fi
3987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3988printf "%s\n" "$ac_cv_build" >&6; }
3989case $ac_cv_build in
3990*-*-*) ;;
3991*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3992esac
3993build=$ac_cv_build
3994ac_save_IFS=$IFS; IFS='-'
3995set x $ac_cv_build
3996shift
3997build_cpu=$1
3998build_vendor=$2
3999shift; shift
4000# Remember, the first character of IFS is used to create $*,
4001# except with old shells:
4002build_os=$*
4003IFS=$ac_save_IFS
4004case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4005
4006
4007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4008printf %s "checking host system type... " >&6; }
4009if test ${ac_cv_host+y}
4010then :
4011  printf %s "(cached) " >&6
4012else $as_nop
4013  if test "x$host_alias" = x; then
4014  ac_cv_host=$ac_cv_build
4015else
4016  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4017    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4018fi
4019
4020fi
4021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4022printf "%s\n" "$ac_cv_host" >&6; }
4023case $ac_cv_host in
4024*-*-*) ;;
4025*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4026esac
4027host=$ac_cv_host
4028ac_save_IFS=$IFS; IFS='-'
4029set x $ac_cv_host
4030shift
4031host_cpu=$1
4032host_vendor=$2
4033shift; shift
4034# Remember, the first character of IFS is used to create $*,
4035# except with old shells:
4036host_os=$*
4037IFS=$ac_save_IFS
4038case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4039
4040
4041
4042printf "%s\n" "#define STR_SYSTEM \"$host\"" >>confdefs.h
4043
4044ac_config_headers="$ac_config_headers config.h"
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056DEPDIR="${am__leading_dot}deps"
4057
4058ac_config_commands="$ac_config_commands depfiles"
4059
4060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4061printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4062cat > confinc.mk << 'END'
4063am__doit:
4064	@echo this is the am__doit target >confinc.out
4065.PHONY: am__doit
4066END
4067am__include="#"
4068am__quote=
4069# BSD make does it like this.
4070echo '.include "confinc.mk" # ignored' > confmf.BSD
4071# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4072echo 'include confinc.mk # ignored' > confmf.GNU
4073_am_result=no
4074for s in GNU BSD; do
4075  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4076   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4077   ac_status=$?
4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); }
4080  case $?:`cat confinc.out 2>/dev/null` in #(
4081  '0:this is the am__doit target') :
4082    case $s in #(
4083  BSD) :
4084    am__include='.include' am__quote='"' ;; #(
4085  *) :
4086    am__include='include' am__quote='' ;;
4087esac ;; #(
4088  *) :
4089     ;;
4090esac
4091  if test "$am__include" != "#"; then
4092    _am_result="yes ($s style)"
4093    break
4094  fi
4095done
4096rm -f confinc.* confmf.*
4097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4098printf "%s\n" "${_am_result}" >&6; }
4099
4100# Check whether --enable-dependency-tracking was given.
4101if test ${enable_dependency_tracking+y}
4102then :
4103  enableval=$enable_dependency_tracking;
4104fi
4105
4106if test "x$enable_dependency_tracking" != xno; then
4107  am_depcomp="$ac_aux_dir/depcomp"
4108  AMDEPBACKSLASH='\'
4109  am__nodep='_no'
4110fi
4111 if test "x$enable_dependency_tracking" != xno; then
4112  AMDEP_TRUE=
4113  AMDEP_FALSE='#'
4114else
4115  AMDEP_TRUE='#'
4116  AMDEP_FALSE=
4117fi
4118
4119
4120
4121case "$build" in
4122 *-*-freebsd1?.*)
4123    cclist=cc
4124    ;;
4125 *)
4126    cclist="cc gcc"
4127    ;;
4128esac
4129
4130
4131#AC_USE_SYSTEM_EXTENSIONS
4132
4133ac_ext=c
4134ac_cpp='$CPP $CPPFLAGS'
4135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138if test -n "$ac_tool_prefix"; then
4139  for ac_prog in $cclist
4140  do
4141    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4142set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144printf %s "checking for $ac_word... " >&6; }
4145if test ${ac_cv_prog_CC+y}
4146then :
4147  printf %s "(cached) " >&6
4148else $as_nop
4149  if test -n "$CC"; then
4150  ac_cv_prog_CC="$CC" # Let the user override the test.
4151else
4152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153for as_dir in $PATH
4154do
4155  IFS=$as_save_IFS
4156  case $as_dir in #(((
4157    '') as_dir=./ ;;
4158    */) ;;
4159    *) as_dir=$as_dir/ ;;
4160  esac
4161    for ac_exec_ext in '' $ac_executable_extensions; do
4162  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4163    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4164    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4165    break 2
4166  fi
4167done
4168  done
4169IFS=$as_save_IFS
4170
4171fi
4172fi
4173CC=$ac_cv_prog_CC
4174if test -n "$CC"; then
4175  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4176printf "%s\n" "$CC" >&6; }
4177else
4178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179printf "%s\n" "no" >&6; }
4180fi
4181
4182
4183    test -n "$CC" && break
4184  done
4185fi
4186if test -z "$CC"; then
4187  ac_ct_CC=$CC
4188  for ac_prog in $cclist
4189do
4190  # Extract the first word of "$ac_prog", so it can be a program name with args.
4191set dummy $ac_prog; ac_word=$2
4192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4193printf %s "checking for $ac_word... " >&6; }
4194if test ${ac_cv_prog_ac_ct_CC+y}
4195then :
4196  printf %s "(cached) " >&6
4197else $as_nop
4198  if test -n "$ac_ct_CC"; then
4199  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4200else
4201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202for as_dir in $PATH
4203do
4204  IFS=$as_save_IFS
4205  case $as_dir in #(((
4206    '') as_dir=./ ;;
4207    */) ;;
4208    *) as_dir=$as_dir/ ;;
4209  esac
4210    for ac_exec_ext in '' $ac_executable_extensions; do
4211  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4212    ac_cv_prog_ac_ct_CC="$ac_prog"
4213    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4214    break 2
4215  fi
4216done
4217  done
4218IFS=$as_save_IFS
4219
4220fi
4221fi
4222ac_ct_CC=$ac_cv_prog_ac_ct_CC
4223if test -n "$ac_ct_CC"; then
4224  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4225printf "%s\n" "$ac_ct_CC" >&6; }
4226else
4227  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4228printf "%s\n" "no" >&6; }
4229fi
4230
4231
4232  test -n "$ac_ct_CC" && break
4233done
4234
4235  if test "x$ac_ct_CC" = x; then
4236    CC=""
4237  else
4238    case $cross_compiling:$ac_tool_warned in
4239yes:)
4240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4241printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4242ac_tool_warned=yes ;;
4243esac
4244    CC=$ac_ct_CC
4245  fi
4246fi
4247
4248
4249test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4250printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4251as_fn_error $? "no acceptable C compiler found in \$PATH
4252See \`config.log' for more details" "$LINENO" 5; }
4253
4254# Provide some information about the compiler.
4255printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4256set X $ac_compile
4257ac_compiler=$2
4258for ac_option in --version -v -V -qversion -version; do
4259  { { ac_try="$ac_compiler $ac_option >&5"
4260case "(($ac_try" in
4261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262  *) ac_try_echo=$ac_try;;
4263esac
4264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4265printf "%s\n" "$ac_try_echo"; } >&5
4266  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4267  ac_status=$?
4268  if test -s conftest.err; then
4269    sed '10a\
4270... rest of stderr output deleted ...
4271         10q' conftest.err >conftest.er1
4272    cat conftest.er1 >&5
4273  fi
4274  rm -f conftest.er1 conftest.err
4275  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4276  test $ac_status = 0; }
4277done
4278
4279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280/* end confdefs.h.  */
4281
4282int
4283main (void)
4284{
4285
4286  ;
4287  return 0;
4288}
4289_ACEOF
4290ac_clean_files_save=$ac_clean_files
4291ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4292# Try to create an executable without -o first, disregard a.out.
4293# It will help us diagnose broken compilers, and finding out an intuition
4294# of exeext.
4295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4296printf %s "checking whether the C compiler works... " >&6; }
4297ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4298
4299# The possible output files:
4300ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4301
4302ac_rmfiles=
4303for ac_file in $ac_files
4304do
4305  case $ac_file in
4306    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4307    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4308  esac
4309done
4310rm -f $ac_rmfiles
4311
4312if { { ac_try="$ac_link_default"
4313case "(($ac_try" in
4314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315  *) ac_try_echo=$ac_try;;
4316esac
4317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318printf "%s\n" "$ac_try_echo"; } >&5
4319  (eval "$ac_link_default") 2>&5
4320  ac_status=$?
4321  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4322  test $ac_status = 0; }
4323then :
4324  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4325# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4326# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4327# so that the user can short-circuit this test for compilers unknown to
4328# Autoconf.
4329for ac_file in $ac_files ''
4330do
4331  test -f "$ac_file" || continue
4332  case $ac_file in
4333    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4334	;;
4335    [ab].out )
4336	# We found the default executable, but exeext='' is most
4337	# certainly right.
4338	break;;
4339    *.* )
4340	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4341	then :; else
4342	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4343	fi
4344	# We set ac_cv_exeext here because the later test for it is not
4345	# safe: cross compilers may not add the suffix if given an `-o'
4346	# argument, so we may need to know it at that point already.
4347	# Even if this section looks crufty: it has the advantage of
4348	# actually working.
4349	break;;
4350    * )
4351	break;;
4352  esac
4353done
4354test "$ac_cv_exeext" = no && ac_cv_exeext=
4355
4356else $as_nop
4357  ac_file=''
4358fi
4359if test -z "$ac_file"
4360then :
4361  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362printf "%s\n" "no" >&6; }
4363printf "%s\n" "$as_me: failed program was:" >&5
4364sed 's/^/| /' conftest.$ac_ext >&5
4365
4366{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4367printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4368as_fn_error 77 "C compiler cannot create executables
4369See \`config.log' for more details" "$LINENO" 5; }
4370else $as_nop
4371  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4372printf "%s\n" "yes" >&6; }
4373fi
4374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4375printf %s "checking for C compiler default output file name... " >&6; }
4376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4377printf "%s\n" "$ac_file" >&6; }
4378ac_exeext=$ac_cv_exeext
4379
4380rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4381ac_clean_files=$ac_clean_files_save
4382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4383printf %s "checking for suffix of executables... " >&6; }
4384if { { ac_try="$ac_link"
4385case "(($ac_try" in
4386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387  *) ac_try_echo=$ac_try;;
4388esac
4389eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4390printf "%s\n" "$ac_try_echo"; } >&5
4391  (eval "$ac_link") 2>&5
4392  ac_status=$?
4393  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4394  test $ac_status = 0; }
4395then :
4396  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4397# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4398# work properly (i.e., refer to `conftest.exe'), while it won't with
4399# `rm'.
4400for ac_file in conftest.exe conftest conftest.*; do
4401  test -f "$ac_file" || continue
4402  case $ac_file in
4403    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4404    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4405	  break;;
4406    * ) break;;
4407  esac
4408done
4409else $as_nop
4410  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4411printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4412as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4413See \`config.log' for more details" "$LINENO" 5; }
4414fi
4415rm -f conftest conftest$ac_cv_exeext
4416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4417printf "%s\n" "$ac_cv_exeext" >&6; }
4418
4419rm -f conftest.$ac_ext
4420EXEEXT=$ac_cv_exeext
4421ac_exeext=$EXEEXT
4422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423/* end confdefs.h.  */
4424#include <stdio.h>
4425int
4426main (void)
4427{
4428FILE *f = fopen ("conftest.out", "w");
4429 return ferror (f) || fclose (f) != 0;
4430
4431  ;
4432  return 0;
4433}
4434_ACEOF
4435ac_clean_files="$ac_clean_files conftest.out"
4436# Check that the compiler produces executables we can run.  If not, either
4437# the compiler is broken, or we cross compile.
4438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4439printf %s "checking whether we are cross compiling... " >&6; }
4440if test "$cross_compiling" != yes; then
4441  { { ac_try="$ac_link"
4442case "(($ac_try" in
4443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444  *) ac_try_echo=$ac_try;;
4445esac
4446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4447printf "%s\n" "$ac_try_echo"; } >&5
4448  (eval "$ac_link") 2>&5
4449  ac_status=$?
4450  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4451  test $ac_status = 0; }
4452  if { ac_try='./conftest$ac_cv_exeext'
4453  { { case "(($ac_try" in
4454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455  *) ac_try_echo=$ac_try;;
4456esac
4457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4458printf "%s\n" "$ac_try_echo"; } >&5
4459  (eval "$ac_try") 2>&5
4460  ac_status=$?
4461  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4462  test $ac_status = 0; }; }; then
4463    cross_compiling=no
4464  else
4465    if test "$cross_compiling" = maybe; then
4466	cross_compiling=yes
4467    else
4468	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4469printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4470as_fn_error 77 "cannot run C compiled programs.
4471If you meant to cross compile, use \`--host'.
4472See \`config.log' for more details" "$LINENO" 5; }
4473    fi
4474  fi
4475fi
4476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4477printf "%s\n" "$cross_compiling" >&6; }
4478
4479rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4480ac_clean_files=$ac_clean_files_save
4481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4482printf %s "checking for suffix of object files... " >&6; }
4483if test ${ac_cv_objext+y}
4484then :
4485  printf %s "(cached) " >&6
4486else $as_nop
4487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488/* end confdefs.h.  */
4489
4490int
4491main (void)
4492{
4493
4494  ;
4495  return 0;
4496}
4497_ACEOF
4498rm -f conftest.o conftest.obj
4499if { { ac_try="$ac_compile"
4500case "(($ac_try" in
4501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502  *) ac_try_echo=$ac_try;;
4503esac
4504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505printf "%s\n" "$ac_try_echo"; } >&5
4506  (eval "$ac_compile") 2>&5
4507  ac_status=$?
4508  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4509  test $ac_status = 0; }
4510then :
4511  for ac_file in conftest.o conftest.obj conftest.*; do
4512  test -f "$ac_file" || continue;
4513  case $ac_file in
4514    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4515    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4516       break;;
4517  esac
4518done
4519else $as_nop
4520  printf "%s\n" "$as_me: failed program was:" >&5
4521sed 's/^/| /' conftest.$ac_ext >&5
4522
4523{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4524printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4525as_fn_error $? "cannot compute suffix of object files: cannot compile
4526See \`config.log' for more details" "$LINENO" 5; }
4527fi
4528rm -f conftest.$ac_cv_objext conftest.$ac_ext
4529fi
4530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4531printf "%s\n" "$ac_cv_objext" >&6; }
4532OBJEXT=$ac_cv_objext
4533ac_objext=$OBJEXT
4534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4535printf %s "checking whether the compiler supports GNU C... " >&6; }
4536if test ${ac_cv_c_compiler_gnu+y}
4537then :
4538  printf %s "(cached) " >&6
4539else $as_nop
4540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541/* end confdefs.h.  */
4542
4543int
4544main (void)
4545{
4546#ifndef __GNUC__
4547       choke me
4548#endif
4549
4550  ;
4551  return 0;
4552}
4553_ACEOF
4554if ac_fn_c_try_compile "$LINENO"
4555then :
4556  ac_compiler_gnu=yes
4557else $as_nop
4558  ac_compiler_gnu=no
4559fi
4560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4561ac_cv_c_compiler_gnu=$ac_compiler_gnu
4562
4563fi
4564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4565printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4566ac_compiler_gnu=$ac_cv_c_compiler_gnu
4567
4568if test $ac_compiler_gnu = yes; then
4569  GCC=yes
4570else
4571  GCC=
4572fi
4573ac_test_CFLAGS=${CFLAGS+y}
4574ac_save_CFLAGS=$CFLAGS
4575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4576printf %s "checking whether $CC accepts -g... " >&6; }
4577if test ${ac_cv_prog_cc_g+y}
4578then :
4579  printf %s "(cached) " >&6
4580else $as_nop
4581  ac_save_c_werror_flag=$ac_c_werror_flag
4582   ac_c_werror_flag=yes
4583   ac_cv_prog_cc_g=no
4584   CFLAGS="-g"
4585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586/* end confdefs.h.  */
4587
4588int
4589main (void)
4590{
4591
4592  ;
4593  return 0;
4594}
4595_ACEOF
4596if ac_fn_c_try_compile "$LINENO"
4597then :
4598  ac_cv_prog_cc_g=yes
4599else $as_nop
4600  CFLAGS=""
4601      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602/* end confdefs.h.  */
4603
4604int
4605main (void)
4606{
4607
4608  ;
4609  return 0;
4610}
4611_ACEOF
4612if ac_fn_c_try_compile "$LINENO"
4613then :
4614
4615else $as_nop
4616  ac_c_werror_flag=$ac_save_c_werror_flag
4617	 CFLAGS="-g"
4618	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619/* end confdefs.h.  */
4620
4621int
4622main (void)
4623{
4624
4625  ;
4626  return 0;
4627}
4628_ACEOF
4629if ac_fn_c_try_compile "$LINENO"
4630then :
4631  ac_cv_prog_cc_g=yes
4632fi
4633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4634fi
4635rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4636fi
4637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4638   ac_c_werror_flag=$ac_save_c_werror_flag
4639fi
4640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4641printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4642if test $ac_test_CFLAGS; then
4643  CFLAGS=$ac_save_CFLAGS
4644elif test $ac_cv_prog_cc_g = yes; then
4645  if test "$GCC" = yes; then
4646    CFLAGS="-g -O2"
4647  else
4648    CFLAGS="-g"
4649  fi
4650else
4651  if test "$GCC" = yes; then
4652    CFLAGS="-O2"
4653  else
4654    CFLAGS=
4655  fi
4656fi
4657ac_prog_cc_stdc=no
4658if test x$ac_prog_cc_stdc = xno
4659then :
4660  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4661printf %s "checking for $CC option to enable C11 features... " >&6; }
4662if test ${ac_cv_prog_cc_c11+y}
4663then :
4664  printf %s "(cached) " >&6
4665else $as_nop
4666  ac_cv_prog_cc_c11=no
4667ac_save_CC=$CC
4668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669/* end confdefs.h.  */
4670$ac_c_conftest_c11_program
4671_ACEOF
4672for ac_arg in '' -std=gnu11
4673do
4674  CC="$ac_save_CC $ac_arg"
4675  if ac_fn_c_try_compile "$LINENO"
4676then :
4677  ac_cv_prog_cc_c11=$ac_arg
4678fi
4679rm -f core conftest.err conftest.$ac_objext conftest.beam
4680  test "x$ac_cv_prog_cc_c11" != "xno" && break
4681done
4682rm -f conftest.$ac_ext
4683CC=$ac_save_CC
4684fi
4685
4686if test "x$ac_cv_prog_cc_c11" = xno
4687then :
4688  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4689printf "%s\n" "unsupported" >&6; }
4690else $as_nop
4691  if test "x$ac_cv_prog_cc_c11" = x
4692then :
4693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4694printf "%s\n" "none needed" >&6; }
4695else $as_nop
4696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4697printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4698     CC="$CC $ac_cv_prog_cc_c11"
4699fi
4700  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4701  ac_prog_cc_stdc=c11
4702fi
4703fi
4704if test x$ac_prog_cc_stdc = xno
4705then :
4706  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4707printf %s "checking for $CC option to enable C99 features... " >&6; }
4708if test ${ac_cv_prog_cc_c99+y}
4709then :
4710  printf %s "(cached) " >&6
4711else $as_nop
4712  ac_cv_prog_cc_c99=no
4713ac_save_CC=$CC
4714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715/* end confdefs.h.  */
4716$ac_c_conftest_c99_program
4717_ACEOF
4718for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4719do
4720  CC="$ac_save_CC $ac_arg"
4721  if ac_fn_c_try_compile "$LINENO"
4722then :
4723  ac_cv_prog_cc_c99=$ac_arg
4724fi
4725rm -f core conftest.err conftest.$ac_objext conftest.beam
4726  test "x$ac_cv_prog_cc_c99" != "xno" && break
4727done
4728rm -f conftest.$ac_ext
4729CC=$ac_save_CC
4730fi
4731
4732if test "x$ac_cv_prog_cc_c99" = xno
4733then :
4734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4735printf "%s\n" "unsupported" >&6; }
4736else $as_nop
4737  if test "x$ac_cv_prog_cc_c99" = x
4738then :
4739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4740printf "%s\n" "none needed" >&6; }
4741else $as_nop
4742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4743printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4744     CC="$CC $ac_cv_prog_cc_c99"
4745fi
4746  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4747  ac_prog_cc_stdc=c99
4748fi
4749fi
4750if test x$ac_prog_cc_stdc = xno
4751then :
4752  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4753printf %s "checking for $CC option to enable C89 features... " >&6; }
4754if test ${ac_cv_prog_cc_c89+y}
4755then :
4756  printf %s "(cached) " >&6
4757else $as_nop
4758  ac_cv_prog_cc_c89=no
4759ac_save_CC=$CC
4760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761/* end confdefs.h.  */
4762$ac_c_conftest_c89_program
4763_ACEOF
4764for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4765do
4766  CC="$ac_save_CC $ac_arg"
4767  if ac_fn_c_try_compile "$LINENO"
4768then :
4769  ac_cv_prog_cc_c89=$ac_arg
4770fi
4771rm -f core conftest.err conftest.$ac_objext conftest.beam
4772  test "x$ac_cv_prog_cc_c89" != "xno" && break
4773done
4774rm -f conftest.$ac_ext
4775CC=$ac_save_CC
4776fi
4777
4778if test "x$ac_cv_prog_cc_c89" = xno
4779then :
4780  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4781printf "%s\n" "unsupported" >&6; }
4782else $as_nop
4783  if test "x$ac_cv_prog_cc_c89" = x
4784then :
4785  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4786printf "%s\n" "none needed" >&6; }
4787else $as_nop
4788  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4789printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4790     CC="$CC $ac_cv_prog_cc_c89"
4791fi
4792  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4793  ac_prog_cc_stdc=c89
4794fi
4795fi
4796
4797ac_ext=c
4798ac_cpp='$CPP $CPPFLAGS'
4799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801ac_compiler_gnu=$ac_cv_c_compiler_gnu
4802
4803
4804  ac_ext=c
4805ac_cpp='$CPP $CPPFLAGS'
4806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4808ac_compiler_gnu=$ac_cv_c_compiler_gnu
4809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4810printf %s "checking whether $CC understands -c and -o together... " >&6; }
4811if test ${am_cv_prog_cc_c_o+y}
4812then :
4813  printf %s "(cached) " >&6
4814else $as_nop
4815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816/* end confdefs.h.  */
4817
4818int
4819main (void)
4820{
4821
4822  ;
4823  return 0;
4824}
4825_ACEOF
4826  # Make sure it works both with $CC and with simple cc.
4827  # Following AC_PROG_CC_C_O, we do the test twice because some
4828  # compilers refuse to overwrite an existing .o file with -o,
4829  # though they will create one.
4830  am_cv_prog_cc_c_o=yes
4831  for am_i in 1 2; do
4832    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4833   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4834   ac_status=$?
4835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836   (exit $ac_status); } \
4837         && test -f conftest2.$ac_objext; then
4838      : OK
4839    else
4840      am_cv_prog_cc_c_o=no
4841      break
4842    fi
4843  done
4844  rm -f core conftest*
4845  unset am_i
4846fi
4847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4848printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4849if test "$am_cv_prog_cc_c_o" != yes; then
4850   # Losing compiler, so override with the script.
4851   # FIXME: It is wrong to rewrite CC.
4852   # But if we don't then we get into trouble of one sort or another.
4853   # A longer-term fix would be to have automake use am__CC in this case,
4854   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4855   CC="$am_aux_dir/compile $CC"
4856fi
4857ac_ext=c
4858ac_cpp='$CPP $CPPFLAGS'
4859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861ac_compiler_gnu=$ac_cv_c_compiler_gnu
4862
4863
4864depcc="$CC"   am_compiler_list=
4865
4866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4867printf %s "checking dependency style of $depcc... " >&6; }
4868if test ${am_cv_CC_dependencies_compiler_type+y}
4869then :
4870  printf %s "(cached) " >&6
4871else $as_nop
4872  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4873  # We make a subdir and do the tests there.  Otherwise we can end up
4874  # making bogus files that we don't know about and never remove.  For
4875  # instance it was reported that on HP-UX the gcc test will end up
4876  # making a dummy file named 'D' -- because '-MD' means "put the output
4877  # in D".
4878  rm -rf conftest.dir
4879  mkdir conftest.dir
4880  # Copy depcomp to subdir because otherwise we won't find it if we're
4881  # using a relative directory.
4882  cp "$am_depcomp" conftest.dir
4883  cd conftest.dir
4884  # We will build objects and dependencies in a subdirectory because
4885  # it helps to detect inapplicable dependency modes.  For instance
4886  # both Tru64's cc and ICC support -MD to output dependencies as a
4887  # side effect of compilation, but ICC will put the dependencies in
4888  # the current directory while Tru64 will put them in the object
4889  # directory.
4890  mkdir sub
4891
4892  am_cv_CC_dependencies_compiler_type=none
4893  if test "$am_compiler_list" = ""; then
4894     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4895  fi
4896  am__universal=false
4897  case " $depcc " in #(
4898     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4899     esac
4900
4901  for depmode in $am_compiler_list; do
4902    # Setup a source with many dependencies, because some compilers
4903    # like to wrap large dependency lists on column 80 (with \), and
4904    # we should not choose a depcomp mode which is confused by this.
4905    #
4906    # We need to recreate these files for each test, as the compiler may
4907    # overwrite some of them when testing with obscure command lines.
4908    # This happens at least with the AIX C compiler.
4909    : > sub/conftest.c
4910    for i in 1 2 3 4 5 6; do
4911      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4912      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4913      # Solaris 10 /bin/sh.
4914      echo '/* dummy */' > sub/conftst$i.h
4915    done
4916    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4917
4918    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4919    # mode.  It turns out that the SunPro C++ compiler does not properly
4920    # handle '-M -o', and we need to detect this.  Also, some Intel
4921    # versions had trouble with output in subdirs.
4922    am__obj=sub/conftest.${OBJEXT-o}
4923    am__minus_obj="-o $am__obj"
4924    case $depmode in
4925    gcc)
4926      # This depmode causes a compiler race in universal mode.
4927      test "$am__universal" = false || continue
4928      ;;
4929    nosideeffect)
4930      # After this tag, mechanisms are not by side-effect, so they'll
4931      # only be used when explicitly requested.
4932      if test "x$enable_dependency_tracking" = xyes; then
4933	continue
4934      else
4935	break
4936      fi
4937      ;;
4938    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4939      # This compiler won't grok '-c -o', but also, the minuso test has
4940      # not run yet.  These depmodes are late enough in the game, and
4941      # so weak that their functioning should not be impacted.
4942      am__obj=conftest.${OBJEXT-o}
4943      am__minus_obj=
4944      ;;
4945    none) break ;;
4946    esac
4947    if depmode=$depmode \
4948       source=sub/conftest.c object=$am__obj \
4949       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4950       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4951         >/dev/null 2>conftest.err &&
4952       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4953       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4954       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4955       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4956      # icc doesn't choke on unknown options, it will just issue warnings
4957      # or remarks (even with -Werror).  So we grep stderr for any message
4958      # that says an option was ignored or not supported.
4959      # When given -MP, icc 7.0 and 7.1 complain thusly:
4960      #   icc: Command line warning: ignoring option '-M'; no argument required
4961      # The diagnosis changed in icc 8.0:
4962      #   icc: Command line remark: option '-MP' not supported
4963      if (grep 'ignoring option' conftest.err ||
4964          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4965        am_cv_CC_dependencies_compiler_type=$depmode
4966        break
4967      fi
4968    fi
4969  done
4970
4971  cd ..
4972  rm -rf conftest.dir
4973else
4974  am_cv_CC_dependencies_compiler_type=none
4975fi
4976
4977fi
4978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4979printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4980CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4981
4982 if
4983  test "x$enable_dependency_tracking" != xno \
4984  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4985  am__fastdepCC_TRUE=
4986  am__fastdepCC_FALSE='#'
4987else
4988  am__fastdepCC_TRUE='#'
4989  am__fastdepCC_FALSE=
4990fi
4991
4992
4993
4994
4995
4996ac_header= ac_cache=
4997for ac_item in $ac_header_c_list
4998do
4999  if test $ac_cache; then
5000    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5001    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5002      printf "%s\n" "#define $ac_item 1" >> confdefs.h
5003    fi
5004    ac_header= ac_cache=
5005  elif test $ac_header; then
5006    ac_cache=$ac_item
5007  else
5008    ac_header=$ac_item
5009  fi
5010done
5011
5012
5013
5014
5015
5016
5017
5018
5019if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5020then :
5021
5022printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5023
5024fi
5025
5026
5027
5028
5029
5030
5031  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5032printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5033if test ${ac_cv_safe_to_define___extensions__+y}
5034then :
5035  printf %s "(cached) " >&6
5036else $as_nop
5037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038/* end confdefs.h.  */
5039
5040#         define __EXTENSIONS__ 1
5041          $ac_includes_default
5042int
5043main (void)
5044{
5045
5046  ;
5047  return 0;
5048}
5049_ACEOF
5050if ac_fn_c_try_compile "$LINENO"
5051then :
5052  ac_cv_safe_to_define___extensions__=yes
5053else $as_nop
5054  ac_cv_safe_to_define___extensions__=no
5055fi
5056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5057fi
5058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5059printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5060
5061  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5062printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5063if test ${ac_cv_should_define__xopen_source+y}
5064then :
5065  printf %s "(cached) " >&6
5066else $as_nop
5067  ac_cv_should_define__xopen_source=no
5068    if test $ac_cv_header_wchar_h = yes
5069then :
5070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071/* end confdefs.h.  */
5072
5073          #include <wchar.h>
5074          mbstate_t x;
5075int
5076main (void)
5077{
5078
5079  ;
5080  return 0;
5081}
5082_ACEOF
5083if ac_fn_c_try_compile "$LINENO"
5084then :
5085
5086else $as_nop
5087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088/* end confdefs.h.  */
5089
5090            #define _XOPEN_SOURCE 500
5091            #include <wchar.h>
5092            mbstate_t x;
5093int
5094main (void)
5095{
5096
5097  ;
5098  return 0;
5099}
5100_ACEOF
5101if ac_fn_c_try_compile "$LINENO"
5102then :
5103  ac_cv_should_define__xopen_source=yes
5104fi
5105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5106fi
5107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5108fi
5109fi
5110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5111printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5112
5113  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5114
5115  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5116
5117  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5118
5119  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5120
5121  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5122
5123  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5124
5125  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5126
5127  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5128
5129  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5130
5131  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5132
5133  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5134
5135  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5136
5137  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5138
5139  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5140
5141  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5142
5143  if test $ac_cv_header_minix_config_h = yes
5144then :
5145  MINIX=yes
5146    printf "%s\n" "#define _MINIX 1" >>confdefs.h
5147
5148    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5149
5150    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5151
5152else $as_nop
5153  MINIX=
5154fi
5155  if test $ac_cv_safe_to_define___extensions__ = yes
5156then :
5157  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5158
5159fi
5160  if test $ac_cv_should_define__xopen_source = yes
5161then :
5162  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5163
5164fi
5165
5166
5167ac_ext=c
5168ac_cpp='$CPP $CPPFLAGS'
5169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5171ac_compiler_gnu=$ac_cv_c_compiler_gnu
5172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5173printf %s "checking how to run the C preprocessor... " >&6; }
5174# On Suns, sometimes $CPP names a directory.
5175if test -n "$CPP" && test -d "$CPP"; then
5176  CPP=
5177fi
5178if test -z "$CPP"; then
5179  if test ${ac_cv_prog_CPP+y}
5180then :
5181  printf %s "(cached) " >&6
5182else $as_nop
5183      # Double quotes because $CC needs to be expanded
5184    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5185    do
5186      ac_preproc_ok=false
5187for ac_c_preproc_warn_flag in '' yes
5188do
5189  # Use a header file that comes with gcc, so configuring glibc
5190  # with a fresh cross-compiler works.
5191  # On the NeXT, cc -E runs the code through the compiler's parser,
5192  # not just through cpp. "Syntax error" is here to catch this case.
5193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194/* end confdefs.h.  */
5195#include <limits.h>
5196		     Syntax error
5197_ACEOF
5198if ac_fn_c_try_cpp "$LINENO"
5199then :
5200
5201else $as_nop
5202  # Broken: fails on valid input.
5203continue
5204fi
5205rm -f conftest.err conftest.i conftest.$ac_ext
5206
5207  # OK, works on sane cases.  Now check whether nonexistent headers
5208  # can be detected and how.
5209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210/* end confdefs.h.  */
5211#include <ac_nonexistent.h>
5212_ACEOF
5213if ac_fn_c_try_cpp "$LINENO"
5214then :
5215  # Broken: success on invalid input.
5216continue
5217else $as_nop
5218  # Passes both tests.
5219ac_preproc_ok=:
5220break
5221fi
5222rm -f conftest.err conftest.i conftest.$ac_ext
5223
5224done
5225# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5226rm -f conftest.i conftest.err conftest.$ac_ext
5227if $ac_preproc_ok
5228then :
5229  break
5230fi
5231
5232    done
5233    ac_cv_prog_CPP=$CPP
5234
5235fi
5236  CPP=$ac_cv_prog_CPP
5237else
5238  ac_cv_prog_CPP=$CPP
5239fi
5240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5241printf "%s\n" "$CPP" >&6; }
5242ac_preproc_ok=false
5243for ac_c_preproc_warn_flag in '' yes
5244do
5245  # Use a header file that comes with gcc, so configuring glibc
5246  # with a fresh cross-compiler works.
5247  # On the NeXT, cc -E runs the code through the compiler's parser,
5248  # not just through cpp. "Syntax error" is here to catch this case.
5249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250/* end confdefs.h.  */
5251#include <limits.h>
5252		     Syntax error
5253_ACEOF
5254if ac_fn_c_try_cpp "$LINENO"
5255then :
5256
5257else $as_nop
5258  # Broken: fails on valid input.
5259continue
5260fi
5261rm -f conftest.err conftest.i conftest.$ac_ext
5262
5263  # OK, works on sane cases.  Now check whether nonexistent headers
5264  # can be detected and how.
5265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266/* end confdefs.h.  */
5267#include <ac_nonexistent.h>
5268_ACEOF
5269if ac_fn_c_try_cpp "$LINENO"
5270then :
5271  # Broken: success on invalid input.
5272continue
5273else $as_nop
5274  # Passes both tests.
5275ac_preproc_ok=:
5276break
5277fi
5278rm -f conftest.err conftest.i conftest.$ac_ext
5279
5280done
5281# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5282rm -f conftest.i conftest.err conftest.$ac_ext
5283if $ac_preproc_ok
5284then :
5285
5286else $as_nop
5287  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5288printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5289as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5290See \`config.log' for more details" "$LINENO" 5; }
5291fi
5292
5293ac_ext=c
5294ac_cpp='$CPP $CPPFLAGS'
5295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5297ac_compiler_gnu=$ac_cv_c_compiler_gnu
5298
5299
5300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5301printf %s "checking for grep that handles long lines and -e... " >&6; }
5302if test ${ac_cv_path_GREP+y}
5303then :
5304  printf %s "(cached) " >&6
5305else $as_nop
5306  if test -z "$GREP"; then
5307  ac_path_GREP_found=false
5308  # Loop through the user's path and test for each of PROGNAME-LIST
5309  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5311do
5312  IFS=$as_save_IFS
5313  case $as_dir in #(((
5314    '') as_dir=./ ;;
5315    */) ;;
5316    *) as_dir=$as_dir/ ;;
5317  esac
5318    for ac_prog in grep ggrep
5319   do
5320    for ac_exec_ext in '' $ac_executable_extensions; do
5321      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5322      as_fn_executable_p "$ac_path_GREP" || continue
5323# Check for GNU ac_path_GREP and select it if it is found.
5324  # Check for GNU $ac_path_GREP
5325case `"$ac_path_GREP" --version 2>&1` in
5326*GNU*)
5327  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5328*)
5329  ac_count=0
5330  printf %s 0123456789 >"conftest.in"
5331  while :
5332  do
5333    cat "conftest.in" "conftest.in" >"conftest.tmp"
5334    mv "conftest.tmp" "conftest.in"
5335    cp "conftest.in" "conftest.nl"
5336    printf "%s\n" 'GREP' >> "conftest.nl"
5337    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5338    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5339    as_fn_arith $ac_count + 1 && ac_count=$as_val
5340    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5341      # Best one so far, save it but keep looking for a better one
5342      ac_cv_path_GREP="$ac_path_GREP"
5343      ac_path_GREP_max=$ac_count
5344    fi
5345    # 10*(2^10) chars as input seems more than enough
5346    test $ac_count -gt 10 && break
5347  done
5348  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5349esac
5350
5351      $ac_path_GREP_found && break 3
5352    done
5353  done
5354  done
5355IFS=$as_save_IFS
5356  if test -z "$ac_cv_path_GREP"; then
5357    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5358  fi
5359else
5360  ac_cv_path_GREP=$GREP
5361fi
5362
5363fi
5364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5365printf "%s\n" "$ac_cv_path_GREP" >&6; }
5366 GREP="$ac_cv_path_GREP"
5367
5368
5369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5370printf %s "checking for egrep... " >&6; }
5371if test ${ac_cv_path_EGREP+y}
5372then :
5373  printf %s "(cached) " >&6
5374else $as_nop
5375  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5376   then ac_cv_path_EGREP="$GREP -E"
5377   else
5378     if test -z "$EGREP"; then
5379  ac_path_EGREP_found=false
5380  # Loop through the user's path and test for each of PROGNAME-LIST
5381  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5383do
5384  IFS=$as_save_IFS
5385  case $as_dir in #(((
5386    '') as_dir=./ ;;
5387    */) ;;
5388    *) as_dir=$as_dir/ ;;
5389  esac
5390    for ac_prog in egrep
5391   do
5392    for ac_exec_ext in '' $ac_executable_extensions; do
5393      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5394      as_fn_executable_p "$ac_path_EGREP" || continue
5395# Check for GNU ac_path_EGREP and select it if it is found.
5396  # Check for GNU $ac_path_EGREP
5397case `"$ac_path_EGREP" --version 2>&1` in
5398*GNU*)
5399  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5400*)
5401  ac_count=0
5402  printf %s 0123456789 >"conftest.in"
5403  while :
5404  do
5405    cat "conftest.in" "conftest.in" >"conftest.tmp"
5406    mv "conftest.tmp" "conftest.in"
5407    cp "conftest.in" "conftest.nl"
5408    printf "%s\n" 'EGREP' >> "conftest.nl"
5409    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5410    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5411    as_fn_arith $ac_count + 1 && ac_count=$as_val
5412    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5413      # Best one so far, save it but keep looking for a better one
5414      ac_cv_path_EGREP="$ac_path_EGREP"
5415      ac_path_EGREP_max=$ac_count
5416    fi
5417    # 10*(2^10) chars as input seems more than enough
5418    test $ac_count -gt 10 && break
5419  done
5420  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5421esac
5422
5423      $ac_path_EGREP_found && break 3
5424    done
5425  done
5426  done
5427IFS=$as_save_IFS
5428  if test -z "$ac_cv_path_EGREP"; then
5429    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5430  fi
5431else
5432  ac_cv_path_EGREP=$EGREP
5433fi
5434
5435   fi
5436fi
5437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5438printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5439 EGREP="$ac_cv_path_EGREP"
5440
5441
5442
5443
5444
5445
5446
5447# Ralf Wildenhues: With per-target flags we need CC_C_O
5448# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
5449
5450if test $ac_cv_c_compiler_gnu = yes; then
5451    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5452printf %s "checking whether $CC needs -traditional... " >&6; }
5453if test ${ac_cv_prog_gcc_traditional+y}
5454then :
5455  printf %s "(cached) " >&6
5456else $as_nop
5457    ac_pattern="Autoconf.*'x'"
5458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459/* end confdefs.h.  */
5460#include <sgtty.h>
5461Autoconf TIOCGETP
5462_ACEOF
5463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464  $EGREP "$ac_pattern" >/dev/null 2>&1
5465then :
5466  ac_cv_prog_gcc_traditional=yes
5467else $as_nop
5468  ac_cv_prog_gcc_traditional=no
5469fi
5470rm -rf conftest*
5471
5472
5473  if test $ac_cv_prog_gcc_traditional = no; then
5474    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475/* end confdefs.h.  */
5476#include <termio.h>
5477Autoconf TCGETA
5478_ACEOF
5479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5480  $EGREP "$ac_pattern" >/dev/null 2>&1
5481then :
5482  ac_cv_prog_gcc_traditional=yes
5483fi
5484rm -rf conftest*
5485
5486  fi
5487fi
5488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5489printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; }
5490  if test $ac_cv_prog_gcc_traditional = yes; then
5491    CC="$CC -traditional"
5492  fi
5493fi
5494
5495
5496
5497CC_NOFORMAT=
5498CFLAGS_NTP=
5499CPPFLAGS_NTP=
5500LDADD_NTP=
5501LDFLAGS_NTP=
5502
5503
5504
5505
5506
5507
5508case "$ac_cv_prog_cc_c89" in
5509 no)
5510    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5511		 version 4.2.5 and higher." >&5
5512printf "%s\n" "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5513		 version 4.2.5 and higher." >&2;}
5514    ;;
5515esac
5516
5517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
5518printf %s "checking if $CC can handle #warning... " >&6; }
5519if test ${ntp_cv_cpp_warning+y}
5520then :
5521  printf %s "(cached) " >&6
5522else $as_nop
5523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524/* end confdefs.h.  */
5525
5526int
5527main (void)
5528{
5529#warning foo
5530  ;
5531  return 0;
5532}
5533_ACEOF
5534if ac_fn_c_try_compile "$LINENO"
5535then :
5536  ntp_cv_cpp_warning=yes
5537else $as_nop
5538  ntp_cv_cpp_warning=no
5539
5540fi
5541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5542
5543fi
5544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
5545printf "%s\n" "$ntp_cv_cpp_warning" >&6; }
5546case "$ntp_cv_cpp_warning" in
5547 no)
5548
5549printf "%s\n" "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
5550
5551esac
5552
5553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
5554printf %s "checking if $CC supports __attribute__((...))... " >&6; }
5555if test ${ntp_cv_cc_attribute+y}
5556then :
5557  printf %s "(cached) " >&6
5558else $as_nop
5559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560/* end confdefs.h.  */
5561
5562int
5563main (void)
5564{
5565void foo(void) __attribute__((__noreturn__));
5566
5567  ;
5568  return 0;
5569}
5570_ACEOF
5571if ac_fn_c_try_compile "$LINENO"
5572then :
5573  ntp_cv_cc_attribute=yes
5574else $as_nop
5575  ntp_cv_cc_attribute=no
5576
5577fi
5578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5579
5580fi
5581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
5582printf "%s\n" "$ntp_cv_cc_attribute" >&6; }
5583case "$ntp_cv_cc_attribute" in
5584 yes)
5585
5586printf "%s\n" "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
5587
5588esac
5589
5590
5591case "$GCC" in
5592 yes)
5593    SAVED_CFLAGS="$CFLAGS"
5594    CFLAGS="$SAVED_CFLAGS -Wstrict-overflow"
5595    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
5596printf %s "checking if $CC can handle -Wstrict-overflow... " >&6; }
5597if test ${ntp_cv_gcc_Wstrict_overflow+y}
5598then :
5599  printf %s "(cached) " >&6
5600else $as_nop
5601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602/* end confdefs.h.  */
5603
5604int
5605main (void)
5606{
5607
5608  ;
5609  return 0;
5610}
5611_ACEOF
5612if ac_fn_c_try_compile "$LINENO"
5613then :
5614  ntp_cv_gcc_Wstrict_overflow=yes
5615else $as_nop
5616  ntp_cv_gcc_Wstrict_overflow=no
5617
5618fi
5619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5620
5621fi
5622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
5623printf "%s\n" "$ntp_cv_gcc_Wstrict_overflow" >&6; }
5624    #
5625    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
5626    # flag to CFLAGS.
5627    #
5628    CFLAGS="$SAVED_CFLAGS -Winit-self"
5629    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
5630printf %s "checking if $CC can handle -Winit-self... " >&6; }
5631if test ${ntp_cv_gcc_Winit_self+y}
5632then :
5633  printf %s "(cached) " >&6
5634else $as_nop
5635
5636	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637/* end confdefs.h.  */
5638
5639int
5640main (void)
5641{
5642
5643  ;
5644  return 0;
5645}
5646_ACEOF
5647if ac_fn_c_try_compile "$LINENO"
5648then :
5649  ntp_cv_gcc_Winit_self=yes
5650else $as_nop
5651  ntp_cv_gcc_Winit_self=no
5652
5653fi
5654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5655
5656
5657fi
5658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
5659printf "%s\n" "$ntp_cv_gcc_Winit_self" >&6; }
5660    #
5661    # libopts specifically builds a string with embedded NULs.
5662    # This causes a bunch of distracting warnings due to -Wformat.
5663    # Let's see if we can figure out how to disable these.
5664    #
5665    CFLAGS="$SAVED_CFLAGS -Wno-format"
5666    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wno-format" >&5
5667printf %s "checking if $CC can handle -Wno-format... " >&6; }
5668if test ${ntp_cv_gcc_Wno_format+y}
5669then :
5670  printf %s "(cached) " >&6
5671else $as_nop
5672
5673	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674/* end confdefs.h.  */
5675
5676int
5677main (void)
5678{
5679
5680  ;
5681  return 0;
5682}
5683_ACEOF
5684if ac_fn_c_try_compile "$LINENO"
5685then :
5686  ntp_cv_gcc_Wno_format=yes
5687else $as_nop
5688  ntp_cv_gcc_Wno_format=no
5689
5690fi
5691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5692
5693
5694fi
5695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wno_format" >&5
5696printf "%s\n" "$ntp_cv_gcc_Wno_format" >&6; }
5697
5698    case "$ntp_cv_gcc_Wno_format" in
5699     yes)
5700	CC_NOFORMAT="$CC_NOFORMAT -Wno-format"
5701	;;
5702     no)
5703	;;
5704    esac
5705
5706    CFLAGS="$SAVED_CFLAGS"
5707    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
5708    #
5709    # $ntp_cv_gcc_Winit_self is tested later to add the
5710    # flag to CFLAGS_NTP.
5711    #
5712    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
5713printf %s "checking if linker supports omitting unused code and data... " >&6; }
5714if test ${ntp_cv_gc_sections_runs+y}
5715then :
5716  printf %s "(cached) " >&6
5717else $as_nop
5718
5719	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
5720	    CFLAGS="$CFLAGS -Wl,--gc-sections"
5721	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722/* end confdefs.h.  */
5723
5724			#include <stdlib.h>
5725			#include <stdio.h>
5726
5727int
5728main (void)
5729{
5730
5731			FILE *	fpC;
5732			char	buf[32];
5733			size_t	cch;
5734			int	read_success_once;
5735
5736			fpC = fopen("conftest.c", "r");
5737			if (NULL == fpC)
5738				exit(1);
5739			do {
5740				cch = fread(buf, sizeof(buf), 1, fpC);
5741				read_success_once |= (0 != cch);
5742			} while (0 != cch);
5743			if (!read_success_once)
5744				exit(2);
5745			if (!feof(fpC))
5746				exit(3);
5747			if (0 != fclose(fpC))
5748				exit(4);
5749
5750			exit(EXIT_SUCCESS);
5751
5752
5753  ;
5754  return 0;
5755}
5756_ACEOF
5757if ac_fn_c_try_link "$LINENO"
5758then :
5759
5760		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
5761			ntp_cv_gc_sections_runs=no
5762		    else
5763			ntp_cv_gc_sections_runs=no
5764			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
5765		    fi
5766
5767else $as_nop
5768  ntp_cv_gc_sections_runs=no
5769
5770fi
5771rm -f core conftest.err conftest.$ac_objext conftest.beam \
5772    conftest$ac_exeext conftest.$ac_ext
5773	    CFLAGS="$origCFLAGS"
5774	    { origCFLAGS=; unset origCFLAGS;}
5775
5776
5777fi
5778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
5779printf "%s\n" "$ntp_cv_gc_sections_runs" >&6; }
5780    case "$ntp_cv_gc_sections_runs" in
5781     yes)
5782	LDADD_LIBNTP="-Wl,--gc-sections"
5783	CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
5784	;;
5785     no)
5786	LDADD_LIBNTP=
5787	;;
5788    esac
5789    CFLAGS_NTP="$CFLAGS_NTP -Wall"
5790    CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
5791    CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
5792    # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
5793    # CFLAGS_NTP="$CFLAGS_NTP -Werror"
5794    # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
5795    # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
5796    CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
5797    CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
5798    CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
5799    # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
5800    # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
5801    case "$ntp_cv_gcc_Winit_self" in
5802     yes)
5803	CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
5804    esac
5805    case "$ntp_cv_gcc_Wstrict_overflow" in
5806     yes)
5807	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
5808    esac
5809    # -W[no-]strict-prototypes might be added by NTP_OPENSSL
5810esac
5811
5812
5813    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
5814printf %s "checking additional compiler flags... " >&6; }
5815    # allow ntp_os_cflags to be preset to skip this stuff
5816    case "${ntp_os_cflags+set}" in
5817     set)
5818	;;
5819     *)
5820	ntp_os_cflags=
5821	case "$host_os" in
5822	 aix[1-3]*)
5823	    ;;
5824	 aix4.[0-2]*)
5825	    # turn on additional headers
5826	    ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
5827	    ;;
5828	 aix5.3*)
5829	    # avoid circular dependencies in yp headers, and more
5830	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
5831	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
5832	    ;;
5833	 aix*)
5834	    # XXX Only verified thru AIX6.
5835	    # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
5836	    # avoid circular dependencies in yp headers
5837	    # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
5838	    # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
5839	    # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
5840	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
5841	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
5842	    ;;
5843	 amigaos)
5844	    ntp_os_cflags="-DSYS_AMIGA"
5845	    ;;
5846	 darwin*|macosx*|rhapsody*)
5847	    ntp_os_cflags="-D_P1003_1B_VISIBLE"
5848	    ;;
5849	 hpux10.*)		# at least for hppa2.0-hp-hpux10.20
5850	    case "$GCC" in
5851	     yes)
5852		;;
5853	     *)
5854		# use Ansi compiler on HPUX, and some -Wp magic
5855		ntp_os_cflags="-Ae -Wp,-H18816"
5856		;;
5857	    esac
5858	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
5859	    ;;
5860	 hpux*)
5861	    case "$GCC" in
5862	     yes)
5863		;;
5864	     *)
5865		# use Ansi compiler on HPUX
5866		ntp_os_cflags="-Ae"
5867	    esac
5868	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
5869	    ;;
5870	 irix6*)
5871	    case "$CC" in
5872	     cc)
5873		# do not use 64-bit compiler
5874		ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
5875	    esac
5876	    ;;
5877	 nextstep3)
5878	    ntp_os_cflags="-posix"
5879	    ;;
5880	 solaris1*|solaris2.[0-5]|solaris2.5.*)
5881	    ;;
5882	 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
5883	    ;;
5884	 solaris2*|sunos5*)
5885	    # turn on 64-bit file offset interface
5886	    ntp_os_cflags="-D_LARGEFILE64_SOURCE"
5887	    ;;
5888	 vxworks*)
5889	    case "$build" in
5890	     $host)
5891		;;
5892	     *)
5893		# Quick and dirty sanity check
5894		case "$VX_KERNEL" in
5895		 '')
5896		    as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
5897		esac
5898		ntp_os_cflags="-DSYS_VXWORKS"
5899	    esac
5900	    ;;
5901	esac
5902    esac
5903    case "$ntp_os_cflags" in
5904     '')
5905	ntp_os_cflags_msg="none needed"
5906	;;
5907     *)
5908	ntp_os_cflags_msg="$ntp_os_cflags"
5909    esac
5910    CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
5911    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
5912printf "%s\n" "$ntp_os_cflags_msg" >&6; }
5913    { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
5914    ###
5915    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
5916printf %s "checking additional linker flags... " >&6; }
5917    # HMS: The following might still need tweaking
5918    # allow ntp_os_ldflags to be preset to skip this stuff
5919    case "${ntp_os_ldflags+set}" in
5920     set)
5921	;;
5922     *)
5923	ntp_os_ldflags=
5924	case "$host_os" in
5925	 hpux*)
5926	    case "$GCC" in
5927	     yes)
5928		ntp_os_ldflags="-Wl,+allowdups"
5929		;;
5930	    esac
5931	    ;;
5932	esac
5933	;;
5934    esac
5935    case "$ntp_os_ldflags" in
5936     '')
5937	ntp_os_ldflags_msg="none needed"
5938	;;
5939     *)
5940	ntp_os_ldflags_msg="$ntp_os_ldflags"
5941    esac
5942    LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
5943    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
5944printf "%s\n" "$ntp_os_ldflags_msg" >&6; }
5945    { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
5946
5947
5948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5949printf %s "checking whether byte ordering is bigendian... " >&6; }
5950if test ${ac_cv_c_bigendian+y}
5951then :
5952  printf %s "(cached) " >&6
5953else $as_nop
5954  ac_cv_c_bigendian=unknown
5955    # See if we're dealing with a universal compiler.
5956    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957/* end confdefs.h.  */
5958#ifndef __APPLE_CC__
5959	       not a universal capable compiler
5960	     #endif
5961	     typedef int dummy;
5962
5963_ACEOF
5964if ac_fn_c_try_compile "$LINENO"
5965then :
5966
5967	# Check for potential -arch flags.  It is not universal unless
5968	# there are at least two -arch flags with different values.
5969	ac_arch=
5970	ac_prev=
5971	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5972	 if test -n "$ac_prev"; then
5973	   case $ac_word in
5974	     i?86 | x86_64 | ppc | ppc64)
5975	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5976		 ac_arch=$ac_word
5977	       else
5978		 ac_cv_c_bigendian=universal
5979		 break
5980	       fi
5981	       ;;
5982	   esac
5983	   ac_prev=
5984	 elif test "x$ac_word" = "x-arch"; then
5985	   ac_prev=arch
5986	 fi
5987       done
5988fi
5989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5990    if test $ac_cv_c_bigendian = unknown; then
5991      # See if sys/param.h defines the BYTE_ORDER macro.
5992      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993/* end confdefs.h.  */
5994#include <sys/types.h>
5995	     #include <sys/param.h>
5996
5997int
5998main (void)
5999{
6000#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6001		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6002		     && LITTLE_ENDIAN)
6003	      bogus endian macros
6004	     #endif
6005
6006  ;
6007  return 0;
6008}
6009_ACEOF
6010if ac_fn_c_try_compile "$LINENO"
6011then :
6012  # It does; now see whether it defined to BIG_ENDIAN or not.
6013	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014/* end confdefs.h.  */
6015#include <sys/types.h>
6016		#include <sys/param.h>
6017
6018int
6019main (void)
6020{
6021#if BYTE_ORDER != BIG_ENDIAN
6022		 not big endian
6023		#endif
6024
6025  ;
6026  return 0;
6027}
6028_ACEOF
6029if ac_fn_c_try_compile "$LINENO"
6030then :
6031  ac_cv_c_bigendian=yes
6032else $as_nop
6033  ac_cv_c_bigendian=no
6034fi
6035rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6036fi
6037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6038    fi
6039    if test $ac_cv_c_bigendian = unknown; then
6040      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6041      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042/* end confdefs.h.  */
6043#include <limits.h>
6044
6045int
6046main (void)
6047{
6048#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6049	      bogus endian macros
6050	     #endif
6051
6052  ;
6053  return 0;
6054}
6055_ACEOF
6056if ac_fn_c_try_compile "$LINENO"
6057then :
6058  # It does; now see whether it defined to _BIG_ENDIAN or not.
6059	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060/* end confdefs.h.  */
6061#include <limits.h>
6062
6063int
6064main (void)
6065{
6066#ifndef _BIG_ENDIAN
6067		 not big endian
6068		#endif
6069
6070  ;
6071  return 0;
6072}
6073_ACEOF
6074if ac_fn_c_try_compile "$LINENO"
6075then :
6076  ac_cv_c_bigendian=yes
6077else $as_nop
6078  ac_cv_c_bigendian=no
6079fi
6080rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6081fi
6082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6083    fi
6084    if test $ac_cv_c_bigendian = unknown; then
6085      # Compile a test program.
6086      if test "$cross_compiling" = yes
6087then :
6088  # Try to guess by grepping values from an object file.
6089	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090/* end confdefs.h.  */
6091unsigned short int ascii_mm[] =
6092		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6093		unsigned short int ascii_ii[] =
6094		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6095		int use_ascii (int i) {
6096		  return ascii_mm[i] + ascii_ii[i];
6097		}
6098		unsigned short int ebcdic_ii[] =
6099		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6100		unsigned short int ebcdic_mm[] =
6101		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6102		int use_ebcdic (int i) {
6103		  return ebcdic_mm[i] + ebcdic_ii[i];
6104		}
6105		extern int foo;
6106
6107int
6108main (void)
6109{
6110return use_ascii (foo) == use_ebcdic (foo);
6111  ;
6112  return 0;
6113}
6114_ACEOF
6115if ac_fn_c_try_compile "$LINENO"
6116then :
6117  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6118	      ac_cv_c_bigendian=yes
6119	    fi
6120	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6121	      if test "$ac_cv_c_bigendian" = unknown; then
6122		ac_cv_c_bigendian=no
6123	      else
6124		# finding both strings is unlikely to happen, but who knows?
6125		ac_cv_c_bigendian=unknown
6126	      fi
6127	    fi
6128fi
6129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6130else $as_nop
6131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132/* end confdefs.h.  */
6133$ac_includes_default
6134int
6135main (void)
6136{
6137
6138	     /* Are we little or big endian?  From Harbison&Steele.  */
6139	     union
6140	     {
6141	       long int l;
6142	       char c[sizeof (long int)];
6143	     } u;
6144	     u.l = 1;
6145	     return u.c[sizeof (long int) - 1] == 1;
6146
6147  ;
6148  return 0;
6149}
6150_ACEOF
6151if ac_fn_c_try_run "$LINENO"
6152then :
6153  ac_cv_c_bigendian=no
6154else $as_nop
6155  ac_cv_c_bigendian=yes
6156fi
6157rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6158  conftest.$ac_objext conftest.beam conftest.$ac_ext
6159fi
6160
6161    fi
6162fi
6163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6164printf "%s\n" "$ac_cv_c_bigendian" >&6; }
6165 case $ac_cv_c_bigendian in #(
6166   yes)
6167     printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
6168;; #(
6169   no)
6170      ;; #(
6171   universal)
6172
6173printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6174
6175     ;; #(
6176   *)
6177     as_fn_error $? "unknown endianness
6178 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6179 esac
6180
6181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6182printf %s "checking for working volatile... " >&6; }
6183if test ${ac_cv_c_volatile+y}
6184then :
6185  printf %s "(cached) " >&6
6186else $as_nop
6187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188/* end confdefs.h.  */
6189
6190int
6191main (void)
6192{
6193
6194volatile int x;
6195int * volatile y = (int *) 0;
6196return !x && !y;
6197  ;
6198  return 0;
6199}
6200_ACEOF
6201if ac_fn_c_try_compile "$LINENO"
6202then :
6203  ac_cv_c_volatile=yes
6204else $as_nop
6205  ac_cv_c_volatile=no
6206fi
6207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6208fi
6209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6210printf "%s\n" "$ac_cv_c_volatile" >&6; }
6211if test $ac_cv_c_volatile = no; then
6212
6213printf "%s\n" "#define volatile /**/" >>confdefs.h
6214
6215fi
6216
6217ac_ext=c
6218ac_cpp='$CPP $CPPFLAGS'
6219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6221ac_compiler_gnu=$ac_cv_c_compiler_gnu
6222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6223printf %s "checking how to run the C preprocessor... " >&6; }
6224# On Suns, sometimes $CPP names a directory.
6225if test -n "$CPP" && test -d "$CPP"; then
6226  CPP=
6227fi
6228if test -z "$CPP"; then
6229  if test ${ac_cv_prog_CPP+y}
6230then :
6231  printf %s "(cached) " >&6
6232else $as_nop
6233      # Double quotes because $CC needs to be expanded
6234    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6235    do
6236      ac_preproc_ok=false
6237for ac_c_preproc_warn_flag in '' yes
6238do
6239  # Use a header file that comes with gcc, so configuring glibc
6240  # with a fresh cross-compiler works.
6241  # On the NeXT, cc -E runs the code through the compiler's parser,
6242  # not just through cpp. "Syntax error" is here to catch this case.
6243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244/* end confdefs.h.  */
6245#include <limits.h>
6246		     Syntax error
6247_ACEOF
6248if ac_fn_c_try_cpp "$LINENO"
6249then :
6250
6251else $as_nop
6252  # Broken: fails on valid input.
6253continue
6254fi
6255rm -f conftest.err conftest.i conftest.$ac_ext
6256
6257  # OK, works on sane cases.  Now check whether nonexistent headers
6258  # can be detected and how.
6259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260/* end confdefs.h.  */
6261#include <ac_nonexistent.h>
6262_ACEOF
6263if ac_fn_c_try_cpp "$LINENO"
6264then :
6265  # Broken: success on invalid input.
6266continue
6267else $as_nop
6268  # Passes both tests.
6269ac_preproc_ok=:
6270break
6271fi
6272rm -f conftest.err conftest.i conftest.$ac_ext
6273
6274done
6275# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6276rm -f conftest.i conftest.err conftest.$ac_ext
6277if $ac_preproc_ok
6278then :
6279  break
6280fi
6281
6282    done
6283    ac_cv_prog_CPP=$CPP
6284
6285fi
6286  CPP=$ac_cv_prog_CPP
6287else
6288  ac_cv_prog_CPP=$CPP
6289fi
6290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6291printf "%s\n" "$CPP" >&6; }
6292ac_preproc_ok=false
6293for ac_c_preproc_warn_flag in '' yes
6294do
6295  # Use a header file that comes with gcc, so configuring glibc
6296  # with a fresh cross-compiler works.
6297  # On the NeXT, cc -E runs the code through the compiler's parser,
6298  # not just through cpp. "Syntax error" is here to catch this case.
6299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300/* end confdefs.h.  */
6301#include <limits.h>
6302		     Syntax error
6303_ACEOF
6304if ac_fn_c_try_cpp "$LINENO"
6305then :
6306
6307else $as_nop
6308  # Broken: fails on valid input.
6309continue
6310fi
6311rm -f conftest.err conftest.i conftest.$ac_ext
6312
6313  # OK, works on sane cases.  Now check whether nonexistent headers
6314  # can be detected and how.
6315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316/* end confdefs.h.  */
6317#include <ac_nonexistent.h>
6318_ACEOF
6319if ac_fn_c_try_cpp "$LINENO"
6320then :
6321  # Broken: success on invalid input.
6322continue
6323else $as_nop
6324  # Passes both tests.
6325ac_preproc_ok=:
6326break
6327fi
6328rm -f conftest.err conftest.i conftest.$ac_ext
6329
6330done
6331# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6332rm -f conftest.i conftest.err conftest.$ac_ext
6333if $ac_preproc_ok
6334then :
6335
6336else $as_nop
6337  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6338printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6339as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6340See \`config.log' for more details" "$LINENO" 5; }
6341fi
6342
6343ac_ext=c
6344ac_cpp='$CPP $CPPFLAGS'
6345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6347ac_compiler_gnu=$ac_cv_c_compiler_gnu
6348
6349
6350
6351
6352
6353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5
6354printf %s "checking for compile/link hardening flags... " >&6; }
6355
6356
6357# Check whether --with-hardenfile was given.
6358if test ${with_hardenfile+y}
6359then :
6360  withval=$with_hardenfile;
6361else $as_nop
6362  with_hardenfile=no
6363
6364fi
6365
6366
6367(									\
6368    SENTINEL_DIR="$PWD" &&						\
6369    cd $srcdir/ &&							\
6370    case "$with_hardenfile" in						\
6371     yes|no|'')								\
6372	scripts/genHardFlags -d "$SENTINEL_DIR"				\
6373	;;								\
6374     *)									\
6375	scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_hardenfile"	\
6376	;;								\
6377    esac								\
6378) > genHardFlags.i 2> genHardFlags.err
6379. ./genHardFlags.i
6380
6381case "$GENHARDFLAG" in
6382 OK)
6383    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5
6384printf "%s\n" "in file $GENHARDFLAGFILE" >&6; }
6385    rm genHardFlags.err genHardFlags.i
6386    ;;
6387 *)
6388    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6389printf "%s\n" "failed." >&6; }
6390    as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5
6391    ;;
6392esac
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
6403printf %s "checking for install dir and man conventions... " >&6; }
6404
6405
6406# Check whether --with-locfile was given.
6407if test ${with_locfile+y}
6408then :
6409  withval=$with_locfile;
6410else $as_nop
6411  with_locfile=no
6412
6413fi
6414
6415
6416(									\
6417    SENTINEL_DIR="$PWD" &&						\
6418    cd $srcdir/ &&							\
6419    case "$with_locfile" in						\
6420     yes|no|'')								\
6421	scripts/genLocInfo -d "$SENTINEL_DIR"				\
6422	;;								\
6423     *)									\
6424	scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile"	\
6425	;;								\
6426    esac								\
6427) > genLocInfo.i 2> genLocInfo.err
6428. ./genLocInfo.i
6429
6430case "$GENLOCINFO" in
6431 OK)
6432    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
6433printf "%s\n" "in file $GENLOCINFOFILE" >&6; }
6434    rm genLocInfo.err genLocInfo.i
6435    ;;
6436 *)
6437    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6438printf "%s\n" "failed." >&6; }
6439    as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
6440    ;;
6441esac
6442
6443 if test "$CALC_TICKADJ_MS" ; then
6444  WANT_CALC_TICKADJ_MS_TRUE=
6445  WANT_CALC_TICKADJ_MS_FALSE='#'
6446else
6447  WANT_CALC_TICKADJ_MS_TRUE='#'
6448  WANT_CALC_TICKADJ_MS_FALSE=
6449fi
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493 if test -z "$NTPSWEEP_NI" ; then
6494  INSTALL_NTPSWEEP_TRUE=
6495  INSTALL_NTPSWEEP_FALSE='#'
6496else
6497  INSTALL_NTPSWEEP_TRUE='#'
6498  INSTALL_NTPSWEEP_FALSE=
6499fi
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541 if test -z "$UPDATE_LEAP_NI" ; then
6542  INSTALL_UPDATE_LEAP_TRUE=
6543  INSTALL_UPDATE_LEAP_FALSE='#'
6544else
6545  INSTALL_UPDATE_LEAP_TRUE='#'
6546  INSTALL_UPDATE_LEAP_FALSE=
6547fi
6548
6549
6550
6551
6552
6553  if test -n "$ac_tool_prefix"; then
6554  for ac_prog in ar lib "link -lib"
6555  do
6556    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6557set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6559printf %s "checking for $ac_word... " >&6; }
6560if test ${ac_cv_prog_AR+y}
6561then :
6562  printf %s "(cached) " >&6
6563else $as_nop
6564  if test -n "$AR"; then
6565  ac_cv_prog_AR="$AR" # Let the user override the test.
6566else
6567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568for as_dir in $PATH
6569do
6570  IFS=$as_save_IFS
6571  case $as_dir in #(((
6572    '') as_dir=./ ;;
6573    */) ;;
6574    *) as_dir=$as_dir/ ;;
6575  esac
6576    for ac_exec_ext in '' $ac_executable_extensions; do
6577  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6578    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6579    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6580    break 2
6581  fi
6582done
6583  done
6584IFS=$as_save_IFS
6585
6586fi
6587fi
6588AR=$ac_cv_prog_AR
6589if test -n "$AR"; then
6590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6591printf "%s\n" "$AR" >&6; }
6592else
6593  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594printf "%s\n" "no" >&6; }
6595fi
6596
6597
6598    test -n "$AR" && break
6599  done
6600fi
6601if test -z "$AR"; then
6602  ac_ct_AR=$AR
6603  for ac_prog in ar lib "link -lib"
6604do
6605  # Extract the first word of "$ac_prog", so it can be a program name with args.
6606set dummy $ac_prog; ac_word=$2
6607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6608printf %s "checking for $ac_word... " >&6; }
6609if test ${ac_cv_prog_ac_ct_AR+y}
6610then :
6611  printf %s "(cached) " >&6
6612else $as_nop
6613  if test -n "$ac_ct_AR"; then
6614  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6615else
6616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617for as_dir in $PATH
6618do
6619  IFS=$as_save_IFS
6620  case $as_dir in #(((
6621    '') as_dir=./ ;;
6622    */) ;;
6623    *) as_dir=$as_dir/ ;;
6624  esac
6625    for ac_exec_ext in '' $ac_executable_extensions; do
6626  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6627    ac_cv_prog_ac_ct_AR="$ac_prog"
6628    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6629    break 2
6630  fi
6631done
6632  done
6633IFS=$as_save_IFS
6634
6635fi
6636fi
6637ac_ct_AR=$ac_cv_prog_ac_ct_AR
6638if test -n "$ac_ct_AR"; then
6639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6640printf "%s\n" "$ac_ct_AR" >&6; }
6641else
6642  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643printf "%s\n" "no" >&6; }
6644fi
6645
6646
6647  test -n "$ac_ct_AR" && break
6648done
6649
6650  if test "x$ac_ct_AR" = x; then
6651    AR="false"
6652  else
6653    case $cross_compiling:$ac_tool_warned in
6654yes:)
6655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6656printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6657ac_tool_warned=yes ;;
6658esac
6659    AR=$ac_ct_AR
6660  fi
6661fi
6662
6663: ${AR=ar}
6664
6665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6666printf %s "checking the archiver ($AR) interface... " >&6; }
6667if test ${am_cv_ar_interface+y}
6668then :
6669  printf %s "(cached) " >&6
6670else $as_nop
6671  ac_ext=c
6672ac_cpp='$CPP $CPPFLAGS'
6673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6675ac_compiler_gnu=$ac_cv_c_compiler_gnu
6676
6677   am_cv_ar_interface=ar
6678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679/* end confdefs.h.  */
6680int some_variable = 0;
6681_ACEOF
6682if ac_fn_c_try_compile "$LINENO"
6683then :
6684  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6685      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6686  (eval $am_ar_try) 2>&5
6687  ac_status=$?
6688  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6689  test $ac_status = 0; }
6690      if test "$ac_status" -eq 0; then
6691        am_cv_ar_interface=ar
6692      else
6693        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6694        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6695  (eval $am_ar_try) 2>&5
6696  ac_status=$?
6697  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6698  test $ac_status = 0; }
6699        if test "$ac_status" -eq 0; then
6700          am_cv_ar_interface=lib
6701        else
6702          am_cv_ar_interface=unknown
6703        fi
6704      fi
6705      rm -f conftest.lib libconftest.a
6706
6707fi
6708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6709   ac_ext=c
6710ac_cpp='$CPP $CPPFLAGS'
6711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6713ac_compiler_gnu=$ac_cv_c_compiler_gnu
6714
6715fi
6716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6717printf "%s\n" "$am_cv_ar_interface" >&6; }
6718
6719case $am_cv_ar_interface in
6720ar)
6721  ;;
6722lib)
6723  # Microsoft lib, so override with the ar-lib wrapper script.
6724  # FIXME: It is wrong to rewrite AR.
6725  # But if we don't then we get into trouble of one sort or another.
6726  # A longer-term fix would be to have automake use am__AR in this case,
6727  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6728  # similar.
6729  AR="$am_aux_dir/ar-lib $AR"
6730  ;;
6731unknown)
6732  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6733  ;;
6734esac
6735
6736
6737
6738
6739# Expose a cross-compilation indicator to makefiles
6740 if test $build != $host; then
6741  NTP_CROSSCOMPILE_TRUE=
6742  NTP_CROSSCOMPILE_FALSE='#'
6743else
6744  NTP_CROSSCOMPILE_TRUE='#'
6745  NTP_CROSSCOMPILE_FALSE=
6746fi
6747
6748
6749
6750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6751printf %s "checking for a sed that does not truncate output... " >&6; }
6752if test ${ac_cv_path_SED+y}
6753then :
6754  printf %s "(cached) " >&6
6755else $as_nop
6756            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6757     for ac_i in 1 2 3 4 5 6 7; do
6758       ac_script="$ac_script$as_nl$ac_script"
6759     done
6760     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6761     { ac_script=; unset ac_script;}
6762     if test -z "$SED"; then
6763  ac_path_SED_found=false
6764  # Loop through the user's path and test for each of PROGNAME-LIST
6765  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766for as_dir in $PATH
6767do
6768  IFS=$as_save_IFS
6769  case $as_dir in #(((
6770    '') as_dir=./ ;;
6771    */) ;;
6772    *) as_dir=$as_dir/ ;;
6773  esac
6774    for ac_prog in sed gsed
6775   do
6776    for ac_exec_ext in '' $ac_executable_extensions; do
6777      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6778      as_fn_executable_p "$ac_path_SED" || continue
6779# Check for GNU ac_path_SED and select it if it is found.
6780  # Check for GNU $ac_path_SED
6781case `"$ac_path_SED" --version 2>&1` in
6782*GNU*)
6783  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6784*)
6785  ac_count=0
6786  printf %s 0123456789 >"conftest.in"
6787  while :
6788  do
6789    cat "conftest.in" "conftest.in" >"conftest.tmp"
6790    mv "conftest.tmp" "conftest.in"
6791    cp "conftest.in" "conftest.nl"
6792    printf "%s\n" '' >> "conftest.nl"
6793    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6794    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6795    as_fn_arith $ac_count + 1 && ac_count=$as_val
6796    if test $ac_count -gt ${ac_path_SED_max-0}; then
6797      # Best one so far, save it but keep looking for a better one
6798      ac_cv_path_SED="$ac_path_SED"
6799      ac_path_SED_max=$ac_count
6800    fi
6801    # 10*(2^10) chars as input seems more than enough
6802    test $ac_count -gt 10 && break
6803  done
6804  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6805esac
6806
6807      $ac_path_SED_found && break 3
6808    done
6809  done
6810  done
6811IFS=$as_save_IFS
6812  if test -z "$ac_cv_path_SED"; then
6813    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6814  fi
6815else
6816  ac_cv_path_SED=$SED
6817fi
6818
6819fi
6820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6821printf "%s\n" "$ac_cv_path_SED" >&6; }
6822 SED="$ac_cv_path_SED"
6823  rm -f conftest.sed
6824
6825test -z "$SED" && SED=sed
6826Xsed="$SED -e 1s/^X//"
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6839printf %s "checking for fgrep... " >&6; }
6840if test ${ac_cv_path_FGREP+y}
6841then :
6842  printf %s "(cached) " >&6
6843else $as_nop
6844  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6845   then ac_cv_path_FGREP="$GREP -F"
6846   else
6847     if test -z "$FGREP"; then
6848  ac_path_FGREP_found=false
6849  # Loop through the user's path and test for each of PROGNAME-LIST
6850  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6852do
6853  IFS=$as_save_IFS
6854  case $as_dir in #(((
6855    '') as_dir=./ ;;
6856    */) ;;
6857    *) as_dir=$as_dir/ ;;
6858  esac
6859    for ac_prog in fgrep
6860   do
6861    for ac_exec_ext in '' $ac_executable_extensions; do
6862      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6863      as_fn_executable_p "$ac_path_FGREP" || continue
6864# Check for GNU ac_path_FGREP and select it if it is found.
6865  # Check for GNU $ac_path_FGREP
6866case `"$ac_path_FGREP" --version 2>&1` in
6867*GNU*)
6868  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6869*)
6870  ac_count=0
6871  printf %s 0123456789 >"conftest.in"
6872  while :
6873  do
6874    cat "conftest.in" "conftest.in" >"conftest.tmp"
6875    mv "conftest.tmp" "conftest.in"
6876    cp "conftest.in" "conftest.nl"
6877    printf "%s\n" 'FGREP' >> "conftest.nl"
6878    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6879    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6880    as_fn_arith $ac_count + 1 && ac_count=$as_val
6881    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6882      # Best one so far, save it but keep looking for a better one
6883      ac_cv_path_FGREP="$ac_path_FGREP"
6884      ac_path_FGREP_max=$ac_count
6885    fi
6886    # 10*(2^10) chars as input seems more than enough
6887    test $ac_count -gt 10 && break
6888  done
6889  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6890esac
6891
6892      $ac_path_FGREP_found && break 3
6893    done
6894  done
6895  done
6896IFS=$as_save_IFS
6897  if test -z "$ac_cv_path_FGREP"; then
6898    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6899  fi
6900else
6901  ac_cv_path_FGREP=$FGREP
6902fi
6903
6904   fi
6905fi
6906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6907printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6908 FGREP="$ac_cv_path_FGREP"
6909
6910
6911test -z "$GREP" && GREP=grep
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6930ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6931ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6932
6933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6934printf %s "checking how to print strings... " >&6; }
6935# Test print first, because it will be a builtin if present.
6936if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6937   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6938  ECHO='print -r --'
6939elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6940  ECHO='printf %s\n'
6941else
6942  # Use this function as a fallback that always works.
6943  func_fallback_echo ()
6944  {
6945    eval 'cat <<_LTECHO_EOF
6946$1
6947_LTECHO_EOF'
6948  }
6949  ECHO='func_fallback_echo'
6950fi
6951
6952# func_echo_all arg...
6953# Invoke $ECHO with all args, space-separated.
6954func_echo_all ()
6955{
6956    $ECHO ""
6957}
6958
6959case $ECHO in
6960  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6961printf "%s\n" "printf" >&6; } ;;
6962  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6963printf "%s\n" "print -r" >&6; } ;;
6964  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6965printf "%s\n" "cat" >&6; } ;;
6966esac
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982  ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
6983"
6984if test "x$ac_cv_type_pid_t" = xyes
6985then :
6986
6987else $as_nop
6988                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989/* end confdefs.h.  */
6990
6991          #if defined _WIN64 && !defined __CYGWIN__
6992          LLP64
6993          #endif
6994
6995int
6996main (void)
6997{
6998
6999  ;
7000  return 0;
7001}
7002
7003_ACEOF
7004if ac_fn_c_try_compile "$LINENO"
7005then :
7006  ac_pid_type='int'
7007else $as_nop
7008  ac_pid_type='__int64'
7009fi
7010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7011
7012printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
7013
7014
7015fi
7016
7017
7018
7019ac_func=
7020for ac_item in $ac_func_c_list
7021do
7022  if test $ac_func; then
7023    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
7024    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
7025      echo "#define $ac_item 1" >> confdefs.h
7026    fi
7027    ac_func=
7028  else
7029    ac_func=$ac_item
7030  fi
7031done
7032
7033ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7034if test "x$ac_cv_type_size_t" = xyes
7035then :
7036
7037else $as_nop
7038
7039printf "%s\n" "#define size_t unsigned int" >>confdefs.h
7040
7041fi
7042
7043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
7044printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
7045if test ${ac_cv_c_undeclared_builtin_options+y}
7046then :
7047  printf %s "(cached) " >&6
7048else $as_nop
7049  ac_save_CFLAGS=$CFLAGS
7050   ac_cv_c_undeclared_builtin_options='cannot detect'
7051   for ac_arg in '' -fno-builtin; do
7052     CFLAGS="$ac_save_CFLAGS $ac_arg"
7053     # This test program should *not* compile successfully.
7054     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055/* end confdefs.h.  */
7056
7057int
7058main (void)
7059{
7060(void) strchr;
7061  ;
7062  return 0;
7063}
7064_ACEOF
7065if ac_fn_c_try_compile "$LINENO"
7066then :
7067
7068else $as_nop
7069  # This test program should compile successfully.
7070        # No library function is consistently available on
7071        # freestanding implementations, so test against a dummy
7072        # declaration.  Include always-available headers on the
7073        # off chance that they somehow elicit warnings.
7074        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075/* end confdefs.h.  */
7076#include <float.h>
7077#include <limits.h>
7078#include <stdarg.h>
7079#include <stddef.h>
7080extern void ac_decl (int, char *);
7081
7082int
7083main (void)
7084{
7085(void) ac_decl (0, (char *) 0);
7086  (void) ac_decl;
7087
7088  ;
7089  return 0;
7090}
7091_ACEOF
7092if ac_fn_c_try_compile "$LINENO"
7093then :
7094  if test x"$ac_arg" = x
7095then :
7096  ac_cv_c_undeclared_builtin_options='none needed'
7097else $as_nop
7098  ac_cv_c_undeclared_builtin_options=$ac_arg
7099fi
7100          break
7101fi
7102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7103fi
7104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7105    done
7106    CFLAGS=$ac_save_CFLAGS
7107
7108fi
7109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
7110printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
7111  case $ac_cv_c_undeclared_builtin_options in #(
7112  'cannot detect') :
7113    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7114printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7115as_fn_error $? "cannot make $CC report undeclared builtins
7116See \`config.log' for more details" "$LINENO" 5; } ;; #(
7117  'none needed') :
7118    ac_c_undeclared_builtin_options='' ;; #(
7119  *) :
7120    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
7121esac
7122
7123ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
7124if test "x$ac_cv_have_decl_strerror_r" = xyes
7125then :
7126  ac_have_decl=1
7127else $as_nop
7128  ac_have_decl=0
7129fi
7130printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
7131
7132
7133
7134            # Check whether --enable-c99-snprintf was given.
7135if test ${enable_c99_snprintf+y}
7136then :
7137  enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
7138else $as_nop
7139  force_c99_snprintf=no
7140
7141fi
7142
7143    case "$force_c99_snprintf" in
7144     yes)
7145	hw_force_rpl_snprintf=yes
7146	hw_force_rpl_vsnprintf=yes
7147    esac
7148
7149
7150
7151
7152
7153
7154
7155
7156  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7157printf %s "checking for unsigned long long int... " >&6; }
7158if test ${ac_cv_type_unsigned_long_long_int+y}
7159then :
7160  printf %s "(cached) " >&6
7161else $as_nop
7162  ac_cv_type_unsigned_long_long_int=yes
7163     case $ac_prog_cc_stdc in
7164       no | c89) ;;
7165       *)
7166	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167/* end confdefs.h.  */
7168
7169  /* For now, do not test the preprocessor; as of 2007 there are too many
7170	 implementations with broken preprocessors.  Perhaps this can
7171	 be revisited in 2012.  In the meantime, code should not expect
7172	 #if to work with literals wider than 32 bits.  */
7173      /* Test literals.  */
7174      long long int ll = 9223372036854775807ll;
7175      long long int nll = -9223372036854775807LL;
7176      unsigned long long int ull = 18446744073709551615ULL;
7177      /* Test constant expressions.   */
7178      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7179		     ? 1 : -1)];
7180      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7181		     ? 1 : -1)];
7182      int i = 63;
7183int
7184main (void)
7185{
7186/* Test availability of runtime routines for shift and division.  */
7187      long long int llmax = 9223372036854775807ll;
7188      unsigned long long int ullmax = 18446744073709551615ull;
7189      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7190	      | (llmax / ll) | (llmax % ll)
7191	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7192	      | (ullmax / ull) | (ullmax % ull));
7193  ;
7194  return 0;
7195}
7196
7197_ACEOF
7198if ac_fn_c_try_link "$LINENO"
7199then :
7200
7201else $as_nop
7202  ac_cv_type_unsigned_long_long_int=no
7203fi
7204rm -f core conftest.err conftest.$ac_objext conftest.beam \
7205    conftest$ac_exeext conftest.$ac_ext;;
7206     esac
7207fi
7208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7209printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
7210  if test $ac_cv_type_unsigned_long_long_int = yes; then
7211
7212printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7213
7214  fi
7215
7216
7217      ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
7218if test "x$ac_cv_func_vsnprintf" = xyes
7219then :
7220  hw_cv_func_vsnprintf=yes
7221else $as_nop
7222  hw_cv_func_vsnprintf=no
7223fi
7224
7225  if test "$hw_cv_func_vsnprintf" = yes
7226then :
7227  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
7228printf %s "checking whether vsnprintf is C99 compliant... " >&6; }
7229if test ${hw_cv_func_vsnprintf_c99+y}
7230then :
7231  printf %s "(cached) " >&6
7232else $as_nop
7233  if test "$cross_compiling" = yes
7234then :
7235  hw_cv_func_vsnprintf_c99=no
7236else $as_nop
7237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238/* end confdefs.h.  */
7239#if HAVE_STDARG_H
7240          #include <stdarg.h>
7241          #endif
7242          #include <stdio.h>
7243          static int testprintf(char *buf, size_t size, const char *format, ...)
7244          {
7245            int result;
7246            va_list ap;
7247            va_start(ap, format);
7248            result = vsnprintf(buf, size, format, ap);
7249            va_end(ap);
7250            return result;
7251          }
7252int
7253main (void)
7254{
7255char buf[43];
7256          if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
7257              testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
7258              buf[0] != 'T' || buf[3] != '\0')
7259            return 1;
7260  ;
7261  return 0;
7262}
7263_ACEOF
7264if ac_fn_c_try_run "$LINENO"
7265then :
7266  hw_cv_func_vsnprintf_c99=yes
7267else $as_nop
7268  hw_cv_func_vsnprintf_c99=no
7269fi
7270rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7271  conftest.$ac_objext conftest.beam conftest.$ac_ext
7272fi
7273
7274fi
7275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
7276printf "%s\n" "$hw_cv_func_vsnprintf_c99" >&6; }
7277else $as_nop
7278  hw_cv_func_vsnprintf_c99=no
7279fi
7280
7281printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
7282
7283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
7284printf %s "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
7285  if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no
7286then :
7287  hw_use_rpl_vsnprintf=yes
7288else $as_nop
7289  hw_use_rpl_vsnprintf=no
7290fi
7291  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
7292printf "%s\n" "$hw_use_rpl_vsnprintf" >&6; }
7293  if test "$hw_use_rpl_vsnprintf" = yes
7294then :
7295
7296printf "%s\n" "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
7297
7298    if test ${hw_nodef_vsnprintf=no} = no
7299then :
7300
7301printf "%s\n" "#define vsnprintf rpl_vsnprintf" >>confdefs.h
7302
7303fi
7304    ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7305if test "x$ac_cv_header_inttypes_h" = xyes
7306then :
7307  printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
7308
7309fi
7310ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
7311if test "x$ac_cv_header_locale_h" = xyes
7312then :
7313  printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
7314
7315fi
7316ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
7317if test "x$ac_cv_header_stddef_h" = xyes
7318then :
7319  printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
7320
7321fi
7322ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7323if test "x$ac_cv_header_stdint_h" = xyes
7324then :
7325  printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
7326
7327fi
7328
7329    ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
7330"
7331if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes
7332then :
7333
7334printf "%s\n" "#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1" >>confdefs.h
7335
7336
7337fi
7338ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
7339"
7340if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes
7341then :
7342
7343printf "%s\n" "#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1" >>confdefs.h
7344
7345
7346fi
7347
7348
7349  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
7350printf %s "checking for long double... " >&6; }
7351if test ${ac_cv_type_long_double+y}
7352then :
7353  printf %s "(cached) " >&6
7354else $as_nop
7355  if test "$GCC" = yes; then
7356       ac_cv_type_long_double=yes
7357     else
7358       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359/* end confdefs.h.  */
7360/* The Stardent Vistra knows sizeof (long double), but does
7361		 not support it.  */
7362	      long double foo = 0.0L;
7363int
7364main (void)
7365{
7366static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
7367	      sizeof (double) <= sizeof (long double))];
7368test_array [0] = 0;
7369return test_array [0];
7370
7371  ;
7372  return 0;
7373}
7374_ACEOF
7375if ac_fn_c_try_compile "$LINENO"
7376then :
7377  ac_cv_type_long_double=yes
7378else $as_nop
7379  ac_cv_type_long_double=no
7380fi
7381rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7382     fi
7383fi
7384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
7385printf "%s\n" "$ac_cv_type_long_double" >&6; }
7386  if test $ac_cv_type_long_double = yes; then
7387
7388printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
7389
7390  fi
7391
7392
7393
7394  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7395printf %s "checking for long long int... " >&6; }
7396if test ${ac_cv_type_long_long_int+y}
7397then :
7398  printf %s "(cached) " >&6
7399else $as_nop
7400  ac_cv_type_long_long_int=yes
7401      case $ac_prog_cc_stdc in
7402	no | c89) ;;
7403	*)
7404	  ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
7405	  if test $ac_cv_type_long_long_int = yes; then
7406	    	    	    	    if test "$cross_compiling" = yes
7407then :
7408  :
7409else $as_nop
7410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411/* end confdefs.h.  */
7412#include <limits.h>
7413		   #ifndef LLONG_MAX
7414		   # define HALF \
7415			    (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7416		   # define LLONG_MAX (HALF - 1 + HALF)
7417		   #endif
7418int
7419main (void)
7420{
7421long long int n = 1;
7422		   int i;
7423		   for (i = 0; ; i++)
7424		     {
7425		       long long int m = n << i;
7426		       if (m >> i != n)
7427			 return 1;
7428		       if (LLONG_MAX / 2 < m)
7429			 break;
7430		     }
7431		   return 0;
7432  ;
7433  return 0;
7434}
7435_ACEOF
7436if ac_fn_c_try_run "$LINENO"
7437then :
7438
7439else $as_nop
7440  ac_cv_type_long_long_int=no
7441fi
7442rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7443  conftest.$ac_objext conftest.beam conftest.$ac_ext
7444fi
7445
7446	  fi;;
7447      esac
7448fi
7449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7450printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
7451  if test $ac_cv_type_long_long_int = yes; then
7452
7453printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7454
7455  fi
7456
7457
7458  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7459printf %s "checking for unsigned long long int... " >&6; }
7460if test ${ac_cv_type_unsigned_long_long_int+y}
7461then :
7462  printf %s "(cached) " >&6
7463else $as_nop
7464  ac_cv_type_unsigned_long_long_int=yes
7465     case $ac_prog_cc_stdc in
7466       no | c89) ;;
7467       *)
7468	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469/* end confdefs.h.  */
7470
7471  /* For now, do not test the preprocessor; as of 2007 there are too many
7472	 implementations with broken preprocessors.  Perhaps this can
7473	 be revisited in 2012.  In the meantime, code should not expect
7474	 #if to work with literals wider than 32 bits.  */
7475      /* Test literals.  */
7476      long long int ll = 9223372036854775807ll;
7477      long long int nll = -9223372036854775807LL;
7478      unsigned long long int ull = 18446744073709551615ULL;
7479      /* Test constant expressions.   */
7480      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7481		     ? 1 : -1)];
7482      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7483		     ? 1 : -1)];
7484      int i = 63;
7485int
7486main (void)
7487{
7488/* Test availability of runtime routines for shift and division.  */
7489      long long int llmax = 9223372036854775807ll;
7490      unsigned long long int ullmax = 18446744073709551615ull;
7491      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7492	      | (llmax / ll) | (llmax % ll)
7493	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7494	      | (ullmax / ull) | (ullmax % ull));
7495  ;
7496  return 0;
7497}
7498
7499_ACEOF
7500if ac_fn_c_try_link "$LINENO"
7501then :
7502
7503else $as_nop
7504  ac_cv_type_unsigned_long_long_int=no
7505fi
7506rm -f core conftest.err conftest.$ac_objext conftest.beam \
7507    conftest$ac_exeext conftest.$ac_ext;;
7508     esac
7509fi
7510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7511printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
7512  if test $ac_cv_type_unsigned_long_long_int = yes; then
7513
7514printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7515
7516  fi
7517
7518    ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7519if test "x$ac_cv_type_size_t" = xyes
7520then :
7521
7522else $as_nop
7523
7524printf "%s\n" "#define size_t unsigned int" >>confdefs.h
7525
7526fi
7527
7528
7529
7530  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
7531if test "x$ac_cv_type_intmax_t" = xyes
7532then :
7533
7534printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
7535
7536else $as_nop
7537  test $ac_cv_type_long_long_int = yes \
7538       && ac_type='long long int' \
7539       || ac_type='long int'
7540
7541printf "%s\n" "#define intmax_t $ac_type" >>confdefs.h
7542
7543fi
7544
7545
7546
7547
7548  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
7549if test "x$ac_cv_type_uintmax_t" = xyes
7550then :
7551
7552printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
7553
7554else $as_nop
7555  test $ac_cv_type_unsigned_long_long_int = yes \
7556       && ac_type='unsigned long long int' \
7557       || ac_type='unsigned long int'
7558
7559printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h
7560
7561fi
7562
7563
7564
7565  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
7566if test "x$ac_cv_type_uintptr_t" = xyes
7567then :
7568
7569printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
7570
7571else $as_nop
7572  for ac_type in 'unsigned int' 'unsigned long int' \
7573	'unsigned long long int'; do
7574       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575/* end confdefs.h.  */
7576$ac_includes_default
7577int
7578main (void)
7579{
7580static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
7581test_array [0] = 0;
7582return test_array [0];
7583
7584  ;
7585  return 0;
7586}
7587_ACEOF
7588if ac_fn_c_try_compile "$LINENO"
7589then :
7590
7591printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
7592
7593	  ac_type=
7594fi
7595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7596       test -z "$ac_type" && break
7597     done
7598fi
7599
7600
7601    ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
7602if test "x$ac_cv_type_ptrdiff_t" = xyes
7603then :
7604
7605printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h
7606
7607
7608fi
7609
7610    ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
7611if test "x$ac_cv_func_localeconv" = xyes
7612then :
7613  printf "%s\n" "#define HAVE_LOCALECONV 1" >>confdefs.h
7614
7615fi
7616
7617
7618  if test "x$_hw_cv_func_xprintf_replace_done" != xyes
7619then :
7620  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7621printf %s "checking for an ANSI C-conforming const... " >&6; }
7622if test ${ac_cv_c_const+y}
7623then :
7624  printf %s "(cached) " >&6
7625else $as_nop
7626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627/* end confdefs.h.  */
7628
7629int
7630main (void)
7631{
7632
7633#ifndef __cplusplus
7634  /* Ultrix mips cc rejects this sort of thing.  */
7635  typedef int charset[2];
7636  const charset cs = { 0, 0 };
7637  /* SunOS 4.1.1 cc rejects this.  */
7638  char const *const *pcpcc;
7639  char **ppc;
7640  /* NEC SVR4.0.2 mips cc rejects this.  */
7641  struct point {int x, y;};
7642  static struct point const zero = {0,0};
7643  /* IBM XL C 1.02.0.0 rejects this.
7644     It does not let you subtract one const X* pointer from another in
7645     an arm of an if-expression whose if-part is not a constant
7646     expression */
7647  const char *g = "string";
7648  pcpcc = &g + (g ? g-g : 0);
7649  /* HPUX 7.0 cc rejects these. */
7650  ++pcpcc;
7651  ppc = (char**) pcpcc;
7652  pcpcc = (char const *const *) ppc;
7653  { /* SCO 3.2v4 cc rejects this sort of thing.  */
7654    char tx;
7655    char *t = &tx;
7656    char const *s = 0 ? (char *) 0 : (char const *) 0;
7657
7658    *t++ = 0;
7659    if (s) return 0;
7660  }
7661  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7662    int x[] = {25, 17};
7663    const int *foo = &x[0];
7664    ++foo;
7665  }
7666  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7667    typedef const int *iptr;
7668    iptr p = 0;
7669    ++p;
7670  }
7671  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
7672       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7673    struct s { int j; const int *ap[3]; } bx;
7674    struct s *b = &bx; b->j = 5;
7675  }
7676  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7677    const int foo = 10;
7678    if (!foo) return 0;
7679  }
7680  return !cs[0] && !zero.x;
7681#endif
7682
7683  ;
7684  return 0;
7685}
7686_ACEOF
7687if ac_fn_c_try_compile "$LINENO"
7688then :
7689  ac_cv_c_const=yes
7690else $as_nop
7691  ac_cv_c_const=no
7692fi
7693rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7694fi
7695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7696printf "%s\n" "$ac_cv_c_const" >&6; }
7697if test $ac_cv_c_const = no; then
7698
7699printf "%s\n" "#define const /**/" >>confdefs.h
7700
7701fi
7702
7703
7704
7705
7706    case " $LIBOBJS " in
7707  *" snprintf.$ac_objext "* ) ;;
7708  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7709 ;;
7710esac
7711
7712    _hw_cv_func_xprintf_replace_done=yes
7713fi
7714
7715fi
7716
7717
7718    ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
7719if test "x$ac_cv_func_snprintf" = xyes
7720then :
7721  hw_cv_func_snprintf=yes
7722else $as_nop
7723  hw_cv_func_snprintf=no
7724fi
7725
7726  if test "$hw_cv_func_snprintf" = yes
7727then :
7728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
7729printf %s "checking whether snprintf is C99 compliant... " >&6; }
7730if test ${hw_cv_func_snprintf_c99+y}
7731then :
7732  printf %s "(cached) " >&6
7733else $as_nop
7734  if test "$cross_compiling" = yes
7735then :
7736  hw_cv_func_snprintf_c99=no
7737else $as_nop
7738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739/* end confdefs.h.  */
7740#include <stdio.h>
7741int
7742main (void)
7743{
7744char buf[43];
7745          if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
7746              snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
7747              buf[0] != 'T' || buf[3] != '\0')
7748            return 1;
7749  ;
7750  return 0;
7751}
7752_ACEOF
7753if ac_fn_c_try_run "$LINENO"
7754then :
7755  hw_cv_func_snprintf_c99=yes
7756else $as_nop
7757  hw_cv_func_snprintf_c99=no
7758fi
7759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7760  conftest.$ac_objext conftest.beam conftest.$ac_ext
7761fi
7762
7763fi
7764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
7765printf "%s\n" "$hw_cv_func_snprintf_c99" >&6; }
7766else $as_nop
7767  hw_cv_func_snprintf_c99=no
7768fi
7769
7770printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
7771
7772  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
7773printf %s "checking if C99-snprintf replacement snprintf will be used... " >&6; }
7774  if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no
7775then :
7776  hw_use_rpl_snprintf=yes
7777else $as_nop
7778  hw_use_rpl_snprintf=no
7779fi
7780  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
7781printf "%s\n" "$hw_use_rpl_snprintf" >&6; }
7782  if test "$hw_use_rpl_snprintf" = yes
7783then :
7784
7785printf "%s\n" "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
7786
7787    if test ${hw_nodef_snprintf=no} = no
7788then :
7789
7790printf "%s\n" "#define snprintf rpl_snprintf" >>confdefs.h
7791
7792fi
7793
7794  if test "x$_hw_cv_func_xprintf_replace_done" != xyes
7795then :
7796  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7797printf %s "checking for an ANSI C-conforming const... " >&6; }
7798if test ${ac_cv_c_const+y}
7799then :
7800  printf %s "(cached) " >&6
7801else $as_nop
7802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803/* end confdefs.h.  */
7804
7805int
7806main (void)
7807{
7808
7809#ifndef __cplusplus
7810  /* Ultrix mips cc rejects this sort of thing.  */
7811  typedef int charset[2];
7812  const charset cs = { 0, 0 };
7813  /* SunOS 4.1.1 cc rejects this.  */
7814  char const *const *pcpcc;
7815  char **ppc;
7816  /* NEC SVR4.0.2 mips cc rejects this.  */
7817  struct point {int x, y;};
7818  static struct point const zero = {0,0};
7819  /* IBM XL C 1.02.0.0 rejects this.
7820     It does not let you subtract one const X* pointer from another in
7821     an arm of an if-expression whose if-part is not a constant
7822     expression */
7823  const char *g = "string";
7824  pcpcc = &g + (g ? g-g : 0);
7825  /* HPUX 7.0 cc rejects these. */
7826  ++pcpcc;
7827  ppc = (char**) pcpcc;
7828  pcpcc = (char const *const *) ppc;
7829  { /* SCO 3.2v4 cc rejects this sort of thing.  */
7830    char tx;
7831    char *t = &tx;
7832    char const *s = 0 ? (char *) 0 : (char const *) 0;
7833
7834    *t++ = 0;
7835    if (s) return 0;
7836  }
7837  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7838    int x[] = {25, 17};
7839    const int *foo = &x[0];
7840    ++foo;
7841  }
7842  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7843    typedef const int *iptr;
7844    iptr p = 0;
7845    ++p;
7846  }
7847  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
7848       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7849    struct s { int j; const int *ap[3]; } bx;
7850    struct s *b = &bx; b->j = 5;
7851  }
7852  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7853    const int foo = 10;
7854    if (!foo) return 0;
7855  }
7856  return !cs[0] && !zero.x;
7857#endif
7858
7859  ;
7860  return 0;
7861}
7862_ACEOF
7863if ac_fn_c_try_compile "$LINENO"
7864then :
7865  ac_cv_c_const=yes
7866else $as_nop
7867  ac_cv_c_const=no
7868fi
7869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7870fi
7871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7872printf "%s\n" "$ac_cv_c_const" >&6; }
7873if test $ac_cv_c_const = no; then
7874
7875printf "%s\n" "#define const /**/" >>confdefs.h
7876
7877fi
7878
7879
7880
7881
7882    case " $LIBOBJS " in
7883  *" snprintf.$ac_objext "* ) ;;
7884  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7885 ;;
7886esac
7887
7888    _hw_cv_func_xprintf_replace_done=yes
7889fi
7890
7891fi
7892
7893
7894
7895
7896
7897# HMS: Save $LIBS and empty it.
7898# any LIBS we add here should go in to LDADD_LIBNTP
7899
7900__LIBS=$LIBS
7901LIBS=
7902
7903
7904
7905# [Bug 2332] because we need to know if we are using GNU ld...
7906
7907
7908# Check whether --with-gnu-ld was given.
7909if test ${with_gnu_ld+y}
7910then :
7911  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7912else $as_nop
7913  with_gnu_ld=no
7914fi
7915
7916ac_prog=ld
7917if test yes = "$GCC"; then
7918  # Check if gcc -print-prog-name=ld gives a path.
7919  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7920printf %s "checking for ld used by $CC... " >&6; }
7921  case $host in
7922  *-*-mingw*)
7923    # gcc leaves a trailing carriage return, which upsets mingw
7924    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7925  *)
7926    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7927  esac
7928  case $ac_prog in
7929    # Accept absolute paths.
7930    [\\/]* | ?:[\\/]*)
7931      re_direlt='/[^/][^/]*/\.\./'
7932      # Canonicalize the pathname of ld
7933      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7934      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7935	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7936      done
7937      test -z "$LD" && LD=$ac_prog
7938      ;;
7939  "")
7940    # If it fails, then pretend we aren't using GCC.
7941    ac_prog=ld
7942    ;;
7943  *)
7944    # If it is relative, then search for the first ld in PATH.
7945    with_gnu_ld=unknown
7946    ;;
7947  esac
7948elif test yes = "$with_gnu_ld"; then
7949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7950printf %s "checking for GNU ld... " >&6; }
7951else
7952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7953printf %s "checking for non-GNU ld... " >&6; }
7954fi
7955if test ${lt_cv_path_LD+y}
7956then :
7957  printf %s "(cached) " >&6
7958else $as_nop
7959  if test -z "$LD"; then
7960  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7961  for ac_dir in $PATH; do
7962    IFS=$lt_save_ifs
7963    test -z "$ac_dir" && ac_dir=.
7964    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7965      lt_cv_path_LD=$ac_dir/$ac_prog
7966      # Check to see if the program is GNU ld.  I'd rather use --version,
7967      # but apparently some variants of GNU ld only accept -v.
7968      # Break only if it was the GNU/non-GNU ld that we prefer.
7969      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7970      *GNU* | *'with BFD'*)
7971	test no != "$with_gnu_ld" && break
7972	;;
7973      *)
7974	test yes != "$with_gnu_ld" && break
7975	;;
7976      esac
7977    fi
7978  done
7979  IFS=$lt_save_ifs
7980else
7981  lt_cv_path_LD=$LD # Let the user override the test with a path.
7982fi
7983fi
7984
7985LD=$lt_cv_path_LD
7986if test -n "$LD"; then
7987  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7988printf "%s\n" "$LD" >&6; }
7989else
7990  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991printf "%s\n" "no" >&6; }
7992fi
7993test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7995printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7996if test ${lt_cv_prog_gnu_ld+y}
7997then :
7998  printf %s "(cached) " >&6
7999else $as_nop
8000  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8001case `$LD -v 2>&1 </dev/null` in
8002*GNU* | *'with BFD'*)
8003  lt_cv_prog_gnu_ld=yes
8004  ;;
8005*)
8006  lt_cv_prog_gnu_ld=no
8007  ;;
8008esac
8009fi
8010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8011printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
8012with_gnu_ld=$lt_cv_prog_gnu_ld
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
8025printf %s "checking for directory path separator... " >&6; }
8026if test ${ntp_cv_dir_sep+y}
8027then :
8028  printf %s "(cached) " >&6
8029else $as_nop
8030
8031	case "$ntp_cv_dir_sep" in
8032	 '')
8033	    case "$host_os" in
8034	     *djgpp | *mingw32* | *emx*)
8035		ntp_cv_dir_sep="'\\'"
8036		;;
8037	     *)
8038		ntp_cv_dir_sep="'/'"
8039		;;
8040	    esac
8041	esac
8042
8043
8044fi
8045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
8046printf "%s\n" "$ntp_cv_dir_sep" >&6; }
8047
8048printf "%s\n" "#define DIR_SEP $ntp_cv_dir_sep" >>confdefs.h
8049
8050
8051
8052    NTP_ORIG_LIBS="$LIBS"
8053
8054# Check whether --with-lineeditlibs was given.
8055if test ${with_lineeditlibs+y}
8056then :
8057  withval=$with_lineeditlibs; use_lineeditlibs="$withval"
8058else $as_nop
8059  use_lineeditlibs="edit,editline"
8060
8061fi
8062
8063    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
8064printf %s "checking line editing libraries... " >&6; }
8065    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
8066printf "%s\n" "$use_lineeditlibs" >&6; }
8067    case "$use_lineeditlibs" in
8068     no)
8069	ntp_lib_lineedit=no
8070	;;
8071     *)
8072	for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
8073	    for term_lib in "" termcap curses ncurses; do
8074		case "$term_lib" in
8075		 '')
8076		    TRY_LIB="-l$lineedit_lib"
8077		    ;;
8078		 *)
8079		    TRY_LIB="-l$lineedit_lib -l$term_lib"
8080		    ;;
8081		esac
8082		LIBS="$NTP_ORIG_LIBS $TRY_LIB"
8083		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
8084printf %s "checking for readline() with $TRY_LIB... " >&6; }
8085		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086/* end confdefs.h.  */
8087
8088/* Override any GCC internal prototype to avoid an error.
8089   Use char because int might match the return type of a GCC
8090   builtin and then its argument prototype would still apply.  */
8091char readline ();
8092int
8093main (void)
8094{
8095return readline ();
8096  ;
8097  return 0;
8098}
8099_ACEOF
8100if ac_fn_c_try_link "$LINENO"
8101then :
8102  ntp_lib_lineedit="$TRY_LIB"
8103fi
8104rm -f core conftest.err conftest.$ac_objext conftest.beam \
8105    conftest$ac_exeext conftest.$ac_ext
8106		case "$ntp_lib_lineedit" in
8107		 '')
8108		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109printf "%s\n" "no" >&6; }
8110		    ;;
8111		 *)
8112		    # Use readline()
8113		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8114printf "%s\n" "yes" >&6; }
8115		    break
8116		esac
8117		case "$term_lib" in
8118		 '')
8119		    # do not try el_gets without a terminal library
8120		    ;;
8121		 *)
8122		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
8123printf %s "checking for el_gets() with $TRY_LIB... " >&6; }
8124		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8125/* end confdefs.h.  */
8126
8127/* Override any GCC internal prototype to avoid an error.
8128   Use char because int might match the return type of a GCC
8129   builtin and then its argument prototype would still apply.  */
8130char el_gets ();
8131int
8132main (void)
8133{
8134return el_gets ();
8135  ;
8136  return 0;
8137}
8138_ACEOF
8139if ac_fn_c_try_link "$LINENO"
8140then :
8141  ntp_lib_lineedit="$TRY_LIB"
8142fi
8143rm -f core conftest.err conftest.$ac_objext conftest.beam \
8144    conftest$ac_exeext conftest.$ac_ext
8145		    case "$ntp_lib_lineedit" in
8146		     '')
8147			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148printf "%s\n" "no" >&6; }
8149			;;
8150		     *) # Use el_gets()
8151			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8152printf "%s\n" "yes" >&6; }
8153			break
8154			;;
8155		    esac	# $ntp_lib_lineedit
8156		esac		# $term_lib
8157	    done
8158	    case "$ntp_lib_lineedit" in
8159	     '')
8160		;;
8161	     *)
8162		break
8163		;;
8164	    esac
8165	done
8166	LIBS="$NTP_ORIG_LIBS"
8167	;;
8168    esac	# $use_lineeditlibs
8169
8170    case "$ntp_lib_lineedit" in
8171     '')
8172	ntp_lib_lineedit="no"
8173	;;
8174     no)
8175	;;
8176     *)
8177	EDITLINE_LIBS="$ntp_lib_lineedit"
8178
8179	;;
8180    esac	# $ntp_lib_lineedit
8181
8182    case "$ntp_lib_lineedit" in
8183     no)
8184	;;
8185     *)
8186	ac_fn_c_check_header_compile "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
8187if test "x$ac_cv_header_readline_h" = xyes
8188then :
8189  printf "%s\n" "#define HAVE_READLINE_H 1" >>confdefs.h
8190
8191fi
8192ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
8193if test "x$ac_cv_header_readline_readline_h" = xyes
8194then :
8195  printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
8196
8197fi
8198ac_fn_c_check_header_compile "$LINENO" "histedit.h" "ac_cv_header_histedit_h" "$ac_includes_default"
8199if test "x$ac_cv_header_histedit_h" = xyes
8200then :
8201  printf "%s\n" "#define HAVE_HISTEDIT_H 1" >>confdefs.h
8202
8203fi
8204
8205	ac_fn_c_check_header_compile "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
8206if test "x$ac_cv_header_history_h" = xyes
8207then :
8208  printf "%s\n" "#define HAVE_HISTORY_H 1" >>confdefs.h
8209
8210fi
8211ac_fn_c_check_header_compile "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
8212if test "x$ac_cv_header_readline_history_h" = xyes
8213then :
8214  printf "%s\n" "#define HAVE_READLINE_HISTORY_H 1" >>confdefs.h
8215
8216fi
8217
8218
8219	case "$ac_cv_header_histedit_h" in
8220	 yes)
8221	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
8222printf %s "checking number of arguments to el_init()... " >&6; }
8223if test ${ntp_cv_el_init_args+y}
8224then :
8225  printf %s "(cached) " >&6
8226else $as_nop
8227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228/* end confdefs.h.  */
8229
8230			    #include <stdio.h>
8231			    #include <histedit.h>
8232
8233int
8234main (void)
8235{
8236
8237			    el_init("conftest", stdin, stdout, stderr);
8238
8239
8240  ;
8241  return 0;
8242}
8243_ACEOF
8244if ac_fn_c_try_compile "$LINENO"
8245then :
8246  ntp_cv_el_init_args=4
8247else $as_nop
8248  ntp_cv_el_init_args=3
8249
8250fi
8251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8252
8253fi
8254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
8255printf "%s\n" "$ntp_cv_el_init_args" >&6; }
8256
8257printf "%s\n" "#define EL_INIT_ARGS $ntp_cv_el_init_args" >>confdefs.h
8258
8259	esac
8260
8261	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
8262printf %s "checking whether readline supports history... " >&6; }
8263
8264	ntp_lib_lineedit_history="no"
8265	ORIG_LIBS="$LIBS"
8266	LIBS="$ORIG_LIBS $ntp_lib_lineedit"
8267	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8268/* end confdefs.h.  */
8269
8270/* Override any GCC internal prototype to avoid an error.
8271   Use char because int might match the return type of a GCC
8272   builtin and then its argument prototype would still apply.  */
8273char add_history ();
8274int
8275main (void)
8276{
8277return add_history ();
8278  ;
8279  return 0;
8280}
8281_ACEOF
8282if ac_fn_c_try_link "$LINENO"
8283then :
8284  ntp_lib_lineedit_history="yes"
8285fi
8286rm -f core conftest.err conftest.$ac_objext conftest.beam \
8287    conftest$ac_exeext conftest.$ac_ext
8288	LIBS="$ORIG_LIBS"
8289
8290	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
8291printf "%s\n" "$ntp_lib_lineedit_history" >&6; }
8292
8293	case "$ntp_lib_lineedit_history" in
8294	 yes)
8295
8296printf "%s\n" "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
8297
8298	esac
8299    esac	# $ntp_lib_lineedit
8300    { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
8301    { ORIG_LIBS=; unset ORIG_LIBS;}
8302    { TRY_LIB=; unset TRY_LIB;}
8303    { use_lineeditlibs=; unset use_lineeditlibs;}
8304
8305
8306LIBM=
8307case "$host" in
8308 *-*-darwin*)
8309    ;;
8310 *)
8311    _libs=$LIBS
8312    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
8313printf %s "checking for library containing cos... " >&6; }
8314if test ${ac_cv_search_cos+y}
8315then :
8316  printf %s "(cached) " >&6
8317else $as_nop
8318  ac_func_search_save_LIBS=$LIBS
8319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320/* end confdefs.h.  */
8321
8322/* Override any GCC internal prototype to avoid an error.
8323   Use char because int might match the return type of a GCC
8324   builtin and then its argument prototype would still apply.  */
8325char cos ();
8326int
8327main (void)
8328{
8329return cos ();
8330  ;
8331  return 0;
8332}
8333_ACEOF
8334for ac_lib in '' m
8335do
8336  if test -z "$ac_lib"; then
8337    ac_res="none required"
8338  else
8339    ac_res=-l$ac_lib
8340    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8341  fi
8342  if ac_fn_c_try_link "$LINENO"
8343then :
8344  ac_cv_search_cos=$ac_res
8345fi
8346rm -f core conftest.err conftest.$ac_objext conftest.beam \
8347    conftest$ac_exeext
8348  if test ${ac_cv_search_cos+y}
8349then :
8350  break
8351fi
8352done
8353if test ${ac_cv_search_cos+y}
8354then :
8355
8356else $as_nop
8357  ac_cv_search_cos=no
8358fi
8359rm conftest.$ac_ext
8360LIBS=$ac_func_search_save_LIBS
8361fi
8362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
8363printf "%s\n" "$ac_cv_search_cos" >&6; }
8364ac_res=$ac_cv_search_cos
8365if test "$ac_res" != no
8366then :
8367  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8368  LIBM="-lm"
8369fi
8370
8371    LIBS=$_libs
8372    ;;
8373esac
8374
8375{ _libs=; unset _libs;}
8376
8377
8378
8379
8380if test "x$ac_cv_func_fork" = xyes; then
8381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8382printf %s "checking for working fork... " >&6; }
8383if test ${ac_cv_func_fork_works+y}
8384then :
8385  printf %s "(cached) " >&6
8386else $as_nop
8387  if test "$cross_compiling" = yes
8388then :
8389  ac_cv_func_fork_works=cross
8390else $as_nop
8391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392/* end confdefs.h.  */
8393$ac_includes_default
8394int
8395main (void)
8396{
8397
8398	  /* By Ruediger Kuhlmann. */
8399	  return fork () < 0;
8400
8401  ;
8402  return 0;
8403}
8404_ACEOF
8405if ac_fn_c_try_run "$LINENO"
8406then :
8407  ac_cv_func_fork_works=yes
8408else $as_nop
8409  ac_cv_func_fork_works=no
8410fi
8411rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8412  conftest.$ac_objext conftest.beam conftest.$ac_ext
8413fi
8414
8415fi
8416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8417printf "%s\n" "$ac_cv_func_fork_works" >&6; }
8418
8419else
8420  ac_cv_func_fork_works=$ac_cv_func_fork
8421fi
8422if test "x$ac_cv_func_fork_works" = xcross; then
8423  case $host in
8424    *-*-amigaos* | *-*-msdosdjgpp*)
8425      # Override, as these systems have only a dummy fork() stub
8426      ac_cv_func_fork_works=no
8427      ;;
8428    *)
8429      ac_cv_func_fork_works=yes
8430      ;;
8431  esac
8432  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8433printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8434fi
8435ac_cv_func_vfork_works=$ac_cv_func_vfork
8436if test "x$ac_cv_func_vfork" = xyes; then
8437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8438printf %s "checking for working vfork... " >&6; }
8439if test ${ac_cv_func_vfork_works+y}
8440then :
8441  printf %s "(cached) " >&6
8442else $as_nop
8443  if test "$cross_compiling" = yes
8444then :
8445  ac_cv_func_vfork_works=cross
8446else $as_nop
8447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8448/* end confdefs.h.  */
8449/* Thanks to Paul Eggert for this test.  */
8450$ac_includes_default
8451#include <signal.h>
8452#include <sys/wait.h>
8453#ifdef HAVE_VFORK_H
8454# include <vfork.h>
8455#endif
8456
8457static void
8458do_nothing (int sig)
8459{
8460  (void) sig;
8461}
8462
8463/* On some sparc systems, changes by the child to local and incoming
8464   argument registers are propagated back to the parent.  The compiler
8465   is told about this with #include <vfork.h>, but some compilers
8466   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8467   static variable whose address is put into a register that is
8468   clobbered by the vfork.  */
8469static void
8470sparc_address_test (int arg)
8471{
8472  static pid_t child;
8473  if (!child) {
8474    child = vfork ();
8475    if (child < 0) {
8476      perror ("vfork");
8477      _exit(2);
8478    }
8479    if (!child) {
8480      arg = getpid();
8481      write(-1, "", 0);
8482      _exit (arg);
8483    }
8484  }
8485}
8486
8487int
8488main (void)
8489{
8490  pid_t parent = getpid ();
8491  pid_t child;
8492
8493  sparc_address_test (0);
8494
8495  /* On Solaris 2.4, changes by the child to the signal handler
8496     also munge signal handlers in the parent.  To detect this,
8497     start by putting the parent's handler in a known state.  */
8498  signal (SIGTERM, SIG_DFL);
8499
8500  child = vfork ();
8501
8502  if (child == 0) {
8503    /* Here is another test for sparc vfork register problems.  This
8504       test uses lots of local variables, at least as many local
8505       variables as main has allocated so far including compiler
8506       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8507       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8508       reuse the register of parent for one of the local variables,
8509       since it will think that parent can't possibly be used any more
8510       in this routine.  Assigning to the local variable will thus
8511       munge parent in the parent process.  */
8512    pid_t
8513      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8514      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8515    /* Convince the compiler that p..p7 are live; otherwise, it might
8516       use the same hardware register for all 8 local variables.  */
8517    if (p != p1 || p != p2 || p != p3 || p != p4
8518	|| p != p5 || p != p6 || p != p7)
8519      _exit(1);
8520
8521    /* Alter the child's signal handler.  */
8522    if (signal (SIGTERM, do_nothing) != SIG_DFL)
8523      _exit(1);
8524
8525    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8526       from child file descriptors.  If the child closes a descriptor
8527       before it execs or exits, this munges the parent's descriptor
8528       as well.  Test for this by closing stdout in the child.  */
8529    _exit(close(fileno(stdout)) != 0);
8530  } else {
8531    int status;
8532    struct stat st;
8533
8534    while (wait(&status) != child)
8535      ;
8536    return (
8537	 /* Was there some problem with vforking?  */
8538	 child < 0
8539
8540	 /* Did the child munge the parent's signal handler?  */
8541	 || signal (SIGTERM, SIG_DFL) != SIG_DFL
8542
8543	 /* Did the child fail?  (This shouldn't happen.)  */
8544	 || status
8545
8546	 /* Did the vfork/compiler bug occur?  */
8547	 || parent != getpid()
8548
8549	 /* Did the file descriptor bug occur?  */
8550	 || fstat(fileno(stdout), &st) != 0
8551	 );
8552  }
8553}
8554_ACEOF
8555if ac_fn_c_try_run "$LINENO"
8556then :
8557  ac_cv_func_vfork_works=yes
8558else $as_nop
8559  ac_cv_func_vfork_works=no
8560fi
8561rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8562  conftest.$ac_objext conftest.beam conftest.$ac_ext
8563fi
8564
8565fi
8566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8567printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
8568
8569fi;
8570if test "x$ac_cv_func_fork_works" = xcross; then
8571  ac_cv_func_vfork_works=$ac_cv_func_vfork
8572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8573printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8574fi
8575
8576if test "x$ac_cv_func_vfork_works" = xyes; then
8577
8578printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8579
8580else
8581
8582printf "%s\n" "#define vfork fork" >>confdefs.h
8583
8584fi
8585if test "x$ac_cv_func_fork_works" = xyes; then
8586
8587printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
8588
8589fi
8590
8591# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8592# for constant arguments.  Useless!
8593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8594printf %s "checking for working alloca.h... " >&6; }
8595if test ${ac_cv_working_alloca_h+y}
8596then :
8597  printf %s "(cached) " >&6
8598else $as_nop
8599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600/* end confdefs.h.  */
8601#include <alloca.h>
8602int
8603main (void)
8604{
8605char *p = (char *) alloca (2 * sizeof (int));
8606			  if (p) return 0;
8607  ;
8608  return 0;
8609}
8610_ACEOF
8611if ac_fn_c_try_link "$LINENO"
8612then :
8613  ac_cv_working_alloca_h=yes
8614else $as_nop
8615  ac_cv_working_alloca_h=no
8616fi
8617rm -f core conftest.err conftest.$ac_objext conftest.beam \
8618    conftest$ac_exeext conftest.$ac_ext
8619fi
8620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8621printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
8622if test $ac_cv_working_alloca_h = yes; then
8623
8624printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
8625
8626fi
8627
8628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8629printf %s "checking for alloca... " >&6; }
8630if test ${ac_cv_func_alloca_works+y}
8631then :
8632  printf %s "(cached) " >&6
8633else $as_nop
8634  if test $ac_cv_working_alloca_h = yes; then
8635  ac_cv_func_alloca_works=yes
8636else
8637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638/* end confdefs.h.  */
8639#include <stdlib.h>
8640#include <stddef.h>
8641#ifndef alloca
8642# ifdef __GNUC__
8643#  define alloca __builtin_alloca
8644# elif defined _MSC_VER
8645#  include <malloc.h>
8646#  define alloca _alloca
8647# else
8648#  ifdef  __cplusplus
8649extern "C"
8650#  endif
8651void *alloca (size_t);
8652# endif
8653#endif
8654
8655int
8656main (void)
8657{
8658char *p = (char *) alloca (1);
8659				    if (p) return 0;
8660  ;
8661  return 0;
8662}
8663_ACEOF
8664if ac_fn_c_try_link "$LINENO"
8665then :
8666  ac_cv_func_alloca_works=yes
8667else $as_nop
8668  ac_cv_func_alloca_works=no
8669fi
8670rm -f core conftest.err conftest.$ac_objext conftest.beam \
8671    conftest$ac_exeext conftest.$ac_ext
8672fi
8673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8674printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
8675fi
8676
8677if test $ac_cv_func_alloca_works = yes; then
8678
8679printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
8680
8681else
8682  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8683# that cause trouble.  Some versions do not even contain alloca or
8684# contain a buggy version.  If you still want to use their alloca,
8685# use ar to extract alloca.o from them instead of compiling alloca.c.
8686
8687ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8688
8689printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
8690
8691
8692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8693printf %s "checking stack direction for C alloca... " >&6; }
8694if test ${ac_cv_c_stack_direction+y}
8695then :
8696  printf %s "(cached) " >&6
8697else $as_nop
8698  if test "$cross_compiling" = yes
8699then :
8700  ac_cv_c_stack_direction=0
8701else $as_nop
8702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703/* end confdefs.h.  */
8704$ac_includes_default
8705int
8706find_stack_direction (int *addr, int depth)
8707{
8708  int dir, dummy = 0;
8709  if (! addr)
8710    addr = &dummy;
8711  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8712  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8713  return dir + dummy;
8714}
8715
8716int
8717main (int argc, char **argv)
8718{
8719  return find_stack_direction (0, argc + !argv + 20) < 0;
8720}
8721_ACEOF
8722if ac_fn_c_try_run "$LINENO"
8723then :
8724  ac_cv_c_stack_direction=1
8725else $as_nop
8726  ac_cv_c_stack_direction=-1
8727fi
8728rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8729  conftest.$ac_objext conftest.beam conftest.$ac_ext
8730fi
8731
8732fi
8733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8734printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
8735printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
8736
8737
8738fi
8739
8740
8741if test $ac_cv_have_decl_strerror_r = yes; then
8742  # For backward compatibility's sake, define HAVE_STRERROR_R.
8743  # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
8744  # as AC_CHECK_DECLS_ONCE.)
8745
8746printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
8747
8748fi
8749
8750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
8751printf %s "checking whether strerror_r returns char *... " >&6; }
8752if test ${ac_cv_func_strerror_r_char_p+y}
8753then :
8754  printf %s "(cached) " >&6
8755else $as_nop
8756
8757    ac_cv_func_strerror_r_char_p=no
8758    if test $ac_cv_have_decl_strerror_r = yes; then
8759      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760/* end confdefs.h.  */
8761#include <string.h>
8762int
8763main (void)
8764{
8765
8766	  char buf[100];
8767	  char x = *strerror_r (0, buf, sizeof buf);
8768	  char *p = strerror_r (0, buf, sizeof buf);
8769	  return !p || x;
8770
8771  ;
8772  return 0;
8773}
8774_ACEOF
8775if ac_fn_c_try_compile "$LINENO"
8776then :
8777  ac_cv_func_strerror_r_char_p=yes
8778fi
8779rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8780
8781    fi
8782
8783fi
8784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
8785printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
8786if test $ac_cv_func_strerror_r_char_p = yes; then
8787
8788printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
8789
8790fi
8791
8792
8793ac_busted_vpath_in_make=no
8794case "$build" in
8795 *-*-irix6.1*)	# 64 bit only
8796    # busted vpath?
8797    ;;
8798 *-*-irix6*)	# 6.2 (and later?)
8799    ac_busted_vpath_in_make=yes
8800    ;;
8801 *-*-solaris2.5.1)
8802    ac_busted_vpath_in_make=yes
8803    ;;
8804 *-*-unicosmp*)
8805    ac_busted_vpath_in_make=yes
8806    ;;
8807esac
8808
8809case "$ac_busted_vpath_in_make$srcdir" in
8810 yes.|no*)
8811    ;;
8812 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
8813     '')
8814	as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
8815    esac
8816    ;;
8817esac
8818
8819case "$host" in
8820 *-*-aix4*)
8821	# Bug 2516:
8822	# Was *-*-aix[[4-9]]*
8823	# XXX only verified thru AIX6.  But...
8824	# Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
8825	# that this support would be in 5.3, removed in 6, and added back.
8826	#
8827	# (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
8828	# (returning ENOSYS).  I didn't check 4.2.  If, in the future,
8829	# IBM pulls its thumbs out long enough to implement clock_settime,
8830	# this conditional will need to change.  Maybe use AC_TRY_RUN
8831	# instead to try to set the time to itself and check errno.
8832    ;;
8833 *)
8834    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
8835printf %s "checking for library containing clock_gettime... " >&6; }
8836if test ${ac_cv_search_clock_gettime+y}
8837then :
8838  printf %s "(cached) " >&6
8839else $as_nop
8840  ac_func_search_save_LIBS=$LIBS
8841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842/* end confdefs.h.  */
8843
8844/* Override any GCC internal prototype to avoid an error.
8845   Use char because int might match the return type of a GCC
8846   builtin and then its argument prototype would still apply.  */
8847char clock_gettime ();
8848int
8849main (void)
8850{
8851return clock_gettime ();
8852  ;
8853  return 0;
8854}
8855_ACEOF
8856for ac_lib in '' rt
8857do
8858  if test -z "$ac_lib"; then
8859    ac_res="none required"
8860  else
8861    ac_res=-l$ac_lib
8862    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8863  fi
8864  if ac_fn_c_try_link "$LINENO"
8865then :
8866  ac_cv_search_clock_gettime=$ac_res
8867fi
8868rm -f core conftest.err conftest.$ac_objext conftest.beam \
8869    conftest$ac_exeext
8870  if test ${ac_cv_search_clock_gettime+y}
8871then :
8872  break
8873fi
8874done
8875if test ${ac_cv_search_clock_gettime+y}
8876then :
8877
8878else $as_nop
8879  ac_cv_search_clock_gettime=no
8880fi
8881rm conftest.$ac_ext
8882LIBS=$ac_func_search_save_LIBS
8883fi
8884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
8885printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
8886ac_res=$ac_cv_search_clock_gettime
8887if test "$ac_res" != no
8888then :
8889  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8890  case "$ac_cv_search_clock_gettime" in
8891 'none required') ;;
8892 no) ;;
8893 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
8894 esac
8895
8896fi
8897
8898    ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
8899if test "x$ac_cv_func_clock_getres" = xyes
8900then :
8901  printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
8902
8903fi
8904ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
8905if test "x$ac_cv_func_clock_gettime" = xyes
8906then :
8907  printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
8908
8909fi
8910ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
8911if test "x$ac_cv_func_clock_settime" = xyes
8912then :
8913  printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
8914
8915fi
8916
8917    ;;
8918esac
8919
8920ac_fn_c_check_func "$LINENO" "getclock" "ac_cv_func_getclock"
8921if test "x$ac_cv_func_getclock" = xyes
8922then :
8923  printf "%s\n" "#define HAVE_GETCLOCK 1" >>confdefs.h
8924
8925fi
8926ac_fn_c_check_func "$LINENO" "stime" "ac_cv_func_stime"
8927if test "x$ac_cv_func_stime" = xyes
8928then :
8929  printf "%s\n" "#define HAVE_STIME 1" >>confdefs.h
8930
8931fi
8932ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
8933if test "x$ac_cv_func_timegm" = xyes
8934then :
8935  printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
8936
8937fi
8938ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
8939if test "x$ac_cv_func_strlcpy" = xyes
8940then :
8941  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
8942
8943fi
8944ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
8945if test "x$ac_cv_func_strlcat" = xyes
8946then :
8947  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
8948
8949fi
8950
8951
8952# Bug 2713
8953LDADD_LIBUTIL=
8954
8955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
8956printf %s "checking for library containing snprintb... " >&6; }
8957if test ${ac_cv_search_snprintb+y}
8958then :
8959  printf %s "(cached) " >&6
8960else $as_nop
8961  ac_func_search_save_LIBS=$LIBS
8962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963/* end confdefs.h.  */
8964
8965/* Override any GCC internal prototype to avoid an error.
8966   Use char because int might match the return type of a GCC
8967   builtin and then its argument prototype would still apply.  */
8968char snprintb ();
8969int
8970main (void)
8971{
8972return snprintb ();
8973  ;
8974  return 0;
8975}
8976_ACEOF
8977for ac_lib in '' util
8978do
8979  if test -z "$ac_lib"; then
8980    ac_res="none required"
8981  else
8982    ac_res=-l$ac_lib
8983    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8984  fi
8985  if ac_fn_c_try_link "$LINENO"
8986then :
8987  ac_cv_search_snprintb=$ac_res
8988fi
8989rm -f core conftest.err conftest.$ac_objext conftest.beam \
8990    conftest$ac_exeext
8991  if test ${ac_cv_search_snprintb+y}
8992then :
8993  break
8994fi
8995done
8996if test ${ac_cv_search_snprintb+y}
8997then :
8998
8999else $as_nop
9000  ac_cv_search_snprintb=no
9001fi
9002rm conftest.$ac_ext
9003LIBS=$ac_func_search_save_LIBS
9004fi
9005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
9006printf "%s\n" "$ac_cv_search_snprintb" >&6; }
9007ac_res=$ac_cv_search_snprintb
9008if test "$ac_res" != no
9009then :
9010  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9011  case "$ac_cv_search_snprintb" in
9012 'none required') ;;
9013 no) ;;
9014 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
9015 esac
9016
9017printf "%s\n" "#define USE_SNPRINTB 1" >>confdefs.h
9018
9019fi
9020
9021
9022#
9023ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
9024if test "x$ac_cv_header_errno_h" = xyes
9025then :
9026  printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
9027
9028fi
9029ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
9030if test "x$ac_cv_header_sys_socket_h" = xyes
9031then :
9032  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
9033
9034fi
9035ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
9036if test "x$ac_cv_header_sys_types_h" = xyes
9037then :
9038  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
9039
9040fi
9041ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
9042if test "x$ac_cv_header_time_h" = xyes
9043then :
9044  printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
9045
9046fi
9047
9048ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
9049    #ifdef HAVE_SYS_SOCKET_H
9050    # include <sys/socket.h>
9051    #endif
9052
9053"
9054if test "x$ac_cv_header_net_if_h" = xyes
9055then :
9056  printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
9057
9058fi
9059
9060case "$host" in
9061 *-hp-hpux*)
9062    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
9063printf %s "checking if net/if.h requires mpinfou predeclaration... " >&6; }
9064if test ${ntp_cv_predecl_mpinfou+y}
9065then :
9066  printf %s "(cached) " >&6
9067else $as_nop
9068
9069	    np_cv_predecl_mpinfou=no
9070	    case "$ac_cv_header_net_if_h" in
9071	     no)
9072		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073/* end confdefs.h.  */
9074
9075			    typedef union mpinfou {
9076				    struct pdk_mpinfo *pdkptr;
9077				    struct mpinfo *pikptr;
9078			    } mpinfou_t;
9079			    #ifdef HAVE_SYS_SOCKET_H
9080			    # include <sys/socket.h>
9081			    #endif
9082			    #include <net/if.h>
9083
9084int
9085main (void)
9086{
9087
9088
9089
9090  ;
9091  return 0;
9092}
9093_ACEOF
9094if ac_fn_c_try_compile "$LINENO"
9095then :
9096
9097			ntp_cv_predecl_mpinfou=yes
9098			ac_cv_header_net_if_h=yes
9099
9100
9101fi
9102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9103	    esac
9104
9105
9106fi
9107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
9108printf "%s\n" "$ntp_cv_predecl_mpinfou" >&6; }
9109    case "$ntp_cv_predecl_mpinfou" in
9110     yes)
9111	cat >>confdefs.h <<_ACEOF
9112#ifndef MPINFOU_PREDECLARED
9113# define MPINFOU_PREDECLARED
9114typedef union mpinfou {
9115	struct pdk_mpinfo *pdkptr;
9116	struct mpinfo *pikptr;
9117} mpinfou_t;
9118#endif
9119_ACEOF
9120
9121    esac
9122esac
9123
9124case "$host" in
9125 *-linux*)
9126    ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
9127	#ifdef HAVE_SYS_SOCKET_H
9128	# include <sys/socket.h>
9129	#endif
9130
9131"
9132if test "x$ac_cv_header_linux_if_addr_h" = xyes
9133then :
9134  printf "%s\n" "#define HAVE_LINUX_IF_ADDR_H 1" >>confdefs.h
9135
9136fi
9137
9138
9139printf "%s\n" "#define NEED_EARLY_FORK 1" >>confdefs.h
9140
9141esac
9142
9143ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default"
9144if test "x$ac_cv_header_arpa_nameser_h" = xyes
9145then :
9146  printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h
9147
9148fi
9149ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
9150if test "x$ac_cv_header_sys_param_h" = xyes
9151then :
9152  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
9153
9154fi
9155ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
9156if test "x$ac_cv_header_sys_time_h" = xyes
9157then :
9158  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
9159
9160fi
9161ac_fn_c_check_header_compile "$LINENO" "sys/timers.h" "ac_cv_header_sys_timers_h" "$ac_includes_default"
9162if test "x$ac_cv_header_sys_timers_h" = xyes
9163then :
9164  printf "%s\n" "#define HAVE_SYS_TIMERS_H 1" >>confdefs.h
9165
9166fi
9167
9168# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
9169ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
9170    #if defined HAVE_SYS_PARAM_H
9171    # include <sys/param.h>
9172    #endif
9173
9174"
9175if test "x$ac_cv_header_sys_sysctl_h" = xyes
9176then :
9177  printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
9178
9179fi
9180
9181ac_fn_c_check_header_compile "$LINENO" "netinet/in_system.h" "ac_cv_header_netinet_in_system_h" "$ac_includes_default"
9182if test "x$ac_cv_header_netinet_in_system_h" = xyes
9183then :
9184  printf "%s\n" "#define HAVE_NETINET_IN_SYSTEM_H 1" >>confdefs.h
9185
9186fi
9187ac_fn_c_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
9188if test "x$ac_cv_header_netinet_in_systm_h" = xyes
9189then :
9190  printf "%s\n" "#define HAVE_NETINET_IN_SYSTM_H 1" >>confdefs.h
9191
9192fi
9193ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
9194if test "x$ac_cv_header_netinet_in_h" = xyes
9195then :
9196  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
9197
9198fi
9199
9200
9201ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
9202    #ifdef HAVE_SYS_TYPES_H
9203    # include <sys/types.h>
9204    #endif
9205    #ifdef HAVE_NETINET_IN_H
9206    # include <netinet/in.h>
9207    #endif
9208    #ifdef HAVE_ARPA_NAMESER_H
9209    # include <arpa/nameser.h>
9210    #endif
9211
9212"
9213if test "x$ac_cv_header_resolv_h" = xyes
9214then :
9215  printf "%s\n" "#define HAVE_RESOLV_H 1" >>confdefs.h
9216
9217fi
9218
9219
9220ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
9221    #if HAVE_SYS_TYPES_H
9222    # include <sys/types.h>
9223    #endif
9224    #ifdef HAVE_SYS_SOCKET_H
9225    # include <sys/socket.h>
9226    #endif
9227    #ifdef HAVE_NETINET_IN_H
9228    # include <netinet/in.h>
9229    #endif
9230    #ifdef HAVE_NET_IF_H
9231    # include <net/if.h>
9232    #endif
9233
9234"
9235if test "x$ac_cv_header_net_if_var_h" = xyes
9236then :
9237  printf "%s\n" "#define HAVE_NET_IF_VAR_H 1" >>confdefs.h
9238
9239fi
9240
9241
9242ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "
9243    #ifdef HAVE_SYS_TYPES_H
9244    # include <sys/types.h>
9245    #endif
9246    #ifdef HAVE_SYS_SOCKET_H
9247    # include <sys/socket.h>
9248    #endif
9249    #ifdef HAVE_NET_IF_H
9250    # include <net/if.h>
9251    #endif
9252    #ifdef HAVE_NETINET_IN_H
9253    # include <netinet/in.h>
9254    #endif
9255    #ifdef HAVE_NET_IF_VAR_H
9256    # include <net/if_var.h>
9257    #endif
9258    #ifdef HAVE_NETINET_IN_SYSTM_H
9259    # include <netinet/in_systm.h>
9260    #endif
9261
9262"
9263if test "x$ac_cv_header_netinet_ip_h" = xyes
9264then :
9265  printf "%s\n" "#define HAVE_NETINET_IP_H 1" >>confdefs.h
9266
9267fi
9268ac_fn_c_check_header_compile "$LINENO" "netinet/in_var.h" "ac_cv_header_netinet_in_var_h" "
9269    #ifdef HAVE_SYS_TYPES_H
9270    # include <sys/types.h>
9271    #endif
9272    #ifdef HAVE_SYS_SOCKET_H
9273    # include <sys/socket.h>
9274    #endif
9275    #ifdef HAVE_NET_IF_H
9276    # include <net/if.h>
9277    #endif
9278    #ifdef HAVE_NETINET_IN_H
9279    # include <netinet/in.h>
9280    #endif
9281    #ifdef HAVE_NET_IF_VAR_H
9282    # include <net/if_var.h>
9283    #endif
9284    #ifdef HAVE_NETINET_IN_SYSTM_H
9285    # include <netinet/in_systm.h>
9286    #endif
9287
9288"
9289if test "x$ac_cv_header_netinet_in_var_h" = xyes
9290then :
9291  printf "%s\n" "#define HAVE_NETINET_IN_VAR_H 1" >>confdefs.h
9292
9293fi
9294
9295
9296# HMS: Do we need to check for -lsocket before or after these tests?
9297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
9298printf %s "checking for library containing inet_pton... " >&6; }
9299if test ${ac_cv_search_inet_pton+y}
9300then :
9301  printf %s "(cached) " >&6
9302else $as_nop
9303  ac_func_search_save_LIBS=$LIBS
9304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305/* end confdefs.h.  */
9306
9307/* Override any GCC internal prototype to avoid an error.
9308   Use char because int might match the return type of a GCC
9309   builtin and then its argument prototype would still apply.  */
9310char inet_pton ();
9311int
9312main (void)
9313{
9314return inet_pton ();
9315  ;
9316  return 0;
9317}
9318_ACEOF
9319for ac_lib in '' nsl
9320do
9321  if test -z "$ac_lib"; then
9322    ac_res="none required"
9323  else
9324    ac_res=-l$ac_lib
9325    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9326  fi
9327  if ac_fn_c_try_link "$LINENO"
9328then :
9329  ac_cv_search_inet_pton=$ac_res
9330fi
9331rm -f core conftest.err conftest.$ac_objext conftest.beam \
9332    conftest$ac_exeext
9333  if test ${ac_cv_search_inet_pton+y}
9334then :
9335  break
9336fi
9337done
9338if test ${ac_cv_search_inet_pton+y}
9339then :
9340
9341else $as_nop
9342  ac_cv_search_inet_pton=no
9343fi
9344rm conftest.$ac_ext
9345LIBS=$ac_func_search_save_LIBS
9346fi
9347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
9348printf "%s\n" "$ac_cv_search_inet_pton" >&6; }
9349ac_res=$ac_cv_search_inet_pton
9350if test "$ac_res" != no
9351then :
9352  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9353  case "$ac_cv_search_inet_pton" in
9354 'none required') ;;
9355 no) ;;
9356 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
9357 esac
9358
9359fi
9360
9361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
9362printf %s "checking for library containing inet_ntop... " >&6; }
9363if test ${ac_cv_search_inet_ntop+y}
9364then :
9365  printf %s "(cached) " >&6
9366else $as_nop
9367  ac_func_search_save_LIBS=$LIBS
9368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369/* end confdefs.h.  */
9370
9371/* Override any GCC internal prototype to avoid an error.
9372   Use char because int might match the return type of a GCC
9373   builtin and then its argument prototype would still apply.  */
9374char inet_ntop ();
9375int
9376main (void)
9377{
9378return inet_ntop ();
9379  ;
9380  return 0;
9381}
9382_ACEOF
9383for ac_lib in '' resolv
9384do
9385  if test -z "$ac_lib"; then
9386    ac_res="none required"
9387  else
9388    ac_res=-l$ac_lib
9389    LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
9390  fi
9391  if ac_fn_c_try_link "$LINENO"
9392then :
9393  ac_cv_search_inet_ntop=$ac_res
9394fi
9395rm -f core conftest.err conftest.$ac_objext conftest.beam \
9396    conftest$ac_exeext
9397  if test ${ac_cv_search_inet_ntop+y}
9398then :
9399  break
9400fi
9401done
9402if test ${ac_cv_search_inet_ntop+y}
9403then :
9404
9405else $as_nop
9406  ac_cv_search_inet_ntop=no
9407fi
9408rm conftest.$ac_ext
9409LIBS=$ac_func_search_save_LIBS
9410fi
9411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
9412printf "%s\n" "$ac_cv_search_inet_ntop" >&6; }
9413ac_res=$ac_cv_search_inet_ntop
9414if test "$ac_res" != no
9415then :
9416  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9417  case "$ac_cv_search_inet_ntop" in
9418 'none required') ;;
9419 no) ;;
9420 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
9421 esac
9422
9423fi
9424
9425
9426# [Bug 1628] On Solaris, we need -lxnet -lsocket.  Generalize this to
9427# avoid keying on the OS name:  If we find socket functions in
9428# libsocket, next try for them in libxnet without libsocket, if found,
9429# list both.  If we simply tested libxnet first, we would find the
9430# functions there and never add libsocket.  See also [Bug 660]
9431# http://bugs.ntp.org/show_bug.cgi?id=660#c9
9432saved_LIBS=$LIBS
9433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
9434printf %s "checking for library containing setsockopt... " >&6; }
9435if test ${ac_cv_search_setsockopt+y}
9436then :
9437  printf %s "(cached) " >&6
9438else $as_nop
9439  ac_func_search_save_LIBS=$LIBS
9440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9441/* end confdefs.h.  */
9442
9443/* Override any GCC internal prototype to avoid an error.
9444   Use char because int might match the return type of a GCC
9445   builtin and then its argument prototype would still apply.  */
9446char setsockopt ();
9447int
9448main (void)
9449{
9450return setsockopt ();
9451  ;
9452  return 0;
9453}
9454_ACEOF
9455for ac_lib in '' socket
9456do
9457  if test -z "$ac_lib"; then
9458    ac_res="none required"
9459  else
9460    ac_res=-l$ac_lib
9461    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9462  fi
9463  if ac_fn_c_try_link "$LINENO"
9464then :
9465  ac_cv_search_setsockopt=$ac_res
9466fi
9467rm -f core conftest.err conftest.$ac_objext conftest.beam \
9468    conftest$ac_exeext
9469  if test ${ac_cv_search_setsockopt+y}
9470then :
9471  break
9472fi
9473done
9474if test ${ac_cv_search_setsockopt+y}
9475then :
9476
9477else $as_nop
9478  ac_cv_search_setsockopt=no
9479fi
9480rm conftest.$ac_ext
9481LIBS=$ac_func_search_save_LIBS
9482fi
9483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
9484printf "%s\n" "$ac_cv_search_setsockopt" >&6; }
9485ac_res=$ac_cv_search_setsockopt
9486if test "$ac_res" != no
9487then :
9488  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9489  case "$ac_cv_search_setsockopt" in
9490 'none required') ;;
9491 no) ;;
9492 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
9493 esac
9494
9495fi
9496
9497case "$ac_cv_search_setsockopt" in
9498 -lsocket)
9499    LIBS="$saved_LIBS"
9500    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
9501printf %s "checking for library containing getsockopt... " >&6; }
9502if test ${ac_cv_search_getsockopt+y}
9503then :
9504  printf %s "(cached) " >&6
9505else $as_nop
9506  ac_func_search_save_LIBS=$LIBS
9507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508/* end confdefs.h.  */
9509
9510/* Override any GCC internal prototype to avoid an error.
9511   Use char because int might match the return type of a GCC
9512   builtin and then its argument prototype would still apply.  */
9513char getsockopt ();
9514int
9515main (void)
9516{
9517return getsockopt ();
9518  ;
9519  return 0;
9520}
9521_ACEOF
9522for ac_lib in '' xnet
9523do
9524  if test -z "$ac_lib"; then
9525    ac_res="none required"
9526  else
9527    ac_res=-l$ac_lib
9528    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9529  fi
9530  if ac_fn_c_try_link "$LINENO"
9531then :
9532  ac_cv_search_getsockopt=$ac_res
9533fi
9534rm -f core conftest.err conftest.$ac_objext conftest.beam \
9535    conftest$ac_exeext
9536  if test ${ac_cv_search_getsockopt+y}
9537then :
9538  break
9539fi
9540done
9541if test ${ac_cv_search_getsockopt+y}
9542then :
9543
9544else $as_nop
9545  ac_cv_search_getsockopt=no
9546fi
9547rm conftest.$ac_ext
9548LIBS=$ac_func_search_save_LIBS
9549fi
9550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
9551printf "%s\n" "$ac_cv_search_getsockopt" >&6; }
9552ac_res=$ac_cv_search_getsockopt
9553if test "$ac_res" != no
9554then :
9555  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9556  case "$ac_cv_search_getsockopt" in
9557 'none required') ;;
9558 no) ;;
9559 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
9560 esac
9561
9562fi
9563
9564    # XXX Possible trouble here - reading the comments above and looking at the
9565    # code below I wonder if we'll add -lxnet when we don't need it.
9566    # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
9567    # there when it is not needed?
9568    case "$ac_cv_search_getsockopt" in
9569     -lxnet)
9570	LIBS="-lxnet -lsocket $saved_LIBS"
9571	;;
9572     *) LIBS="-lsocket $saved_LIBS"
9573	;;
9574    esac
9575    ;;
9576esac
9577{ saved_LIBS=; unset saved_LIBS;}
9578
9579# Bug 2427 - look for recvmsg here.
9580ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
9581if test "x$ac_cv_func_recvmsg" = xyes
9582then :
9583  printf "%s\n" "#define HAVE_RECVMSG 1" >>confdefs.h
9584
9585fi
9586
9587
9588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9589printf %s "checking for inline... " >&6; }
9590if test ${ac_cv_c_inline+y}
9591then :
9592  printf %s "(cached) " >&6
9593else $as_nop
9594  ac_cv_c_inline=no
9595for ac_kw in inline __inline__ __inline; do
9596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597/* end confdefs.h.  */
9598#ifndef __cplusplus
9599typedef int foo_t;
9600static $ac_kw foo_t static_foo (void) {return 0; }
9601$ac_kw foo_t foo (void) {return 0; }
9602#endif
9603
9604_ACEOF
9605if ac_fn_c_try_compile "$LINENO"
9606then :
9607  ac_cv_c_inline=$ac_kw
9608fi
9609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9610  test "$ac_cv_c_inline" != no && break
9611done
9612
9613fi
9614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9615printf "%s\n" "$ac_cv_c_inline" >&6; }
9616
9617case $ac_cv_c_inline in
9618  inline | yes) ;;
9619  *)
9620    case $ac_cv_c_inline in
9621      no) ac_val=;;
9622      *) ac_val=$ac_cv_c_inline;;
9623    esac
9624    cat >>confdefs.h <<_ACEOF
9625#ifndef __cplusplus
9626#define inline $ac_val
9627#endif
9628_ACEOF
9629    ;;
9630esac
9631
9632
9633case "$ac_cv_c_inline" in
9634 '')
9635    ;;
9636 *)
9637
9638printf "%s\n" "#define HAVE_INLINE 1" >>confdefs.h
9639
9640
9641esac
9642
9643
9644# Obsolete code to be removed.
9645if test $ac_cv_header_sys_time_h = yes; then
9646
9647printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9648
9649fi
9650# End of obsolete code.
9651
9652# The cast to long int works around a bug in the HP C Compiler
9653# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9654# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9655# This bug is HP SR number 8606223364.
9656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
9657printf %s "checking size of time_t... " >&6; }
9658if test ${ac_cv_sizeof_time_t+y}
9659then :
9660  printf %s "(cached) " >&6
9661else $as_nop
9662  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"
9663then :
9664
9665else $as_nop
9666  if test "$ac_cv_type_time_t" = yes; then
9667     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9668printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9669as_fn_error 77 "cannot compute sizeof (time_t)
9670See \`config.log' for more details" "$LINENO" 5; }
9671   else
9672     ac_cv_sizeof_time_t=0
9673   fi
9674fi
9675
9676fi
9677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
9678printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
9679
9680
9681
9682printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
9683
9684
9685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
9686printf %s "checking whether char is unsigned... " >&6; }
9687if test ${ac_cv_c_char_unsigned+y}
9688then :
9689  printf %s "(cached) " >&6
9690else $as_nop
9691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692/* end confdefs.h.  */
9693$ac_includes_default
9694int
9695main (void)
9696{
9697static int test_array [1 - 2 * !(((char) -1) < 0)];
9698test_array [0] = 0;
9699return test_array [0];
9700
9701  ;
9702  return 0;
9703}
9704_ACEOF
9705if ac_fn_c_try_compile "$LINENO"
9706then :
9707  ac_cv_c_char_unsigned=no
9708else $as_nop
9709  ac_cv_c_char_unsigned=yes
9710fi
9711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9712fi
9713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
9714printf "%s\n" "$ac_cv_c_char_unsigned" >&6; }
9715if test $ac_cv_c_char_unsigned = yes; then
9716  printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
9717
9718fi
9719		# The cast to long int works around a bug in the HP C Compiler
9720# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9721# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9722# This bug is HP SR number 8606223364.
9723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
9724printf %s "checking size of signed char... " >&6; }
9725if test ${ac_cv_sizeof_signed_char+y}
9726then :
9727  printf %s "(cached) " >&6
9728else $as_nop
9729  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"
9730then :
9731
9732else $as_nop
9733  if test "$ac_cv_type_signed_char" = yes; then
9734     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9735printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9736as_fn_error 77 "cannot compute sizeof (signed char)
9737See \`config.log' for more details" "$LINENO" 5; }
9738   else
9739     ac_cv_sizeof_signed_char=0
9740   fi
9741fi
9742
9743fi
9744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
9745printf "%s\n" "$ac_cv_sizeof_signed_char" >&6; }
9746
9747
9748
9749printf "%s\n" "#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char" >>confdefs.h
9750
9751
9752ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
9753if test "x$ac_cv_type_s_char" = xyes
9754then :
9755
9756printf "%s\n" "#define HAVE_S_CHAR 1" >>confdefs.h
9757
9758
9759fi
9760ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
9761if test "x$ac_cv_type_long_long" = xyes
9762then :
9763
9764printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h
9765
9766
9767fi
9768
9769# The cast to long int works around a bug in the HP C Compiler
9770# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9771# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9772# This bug is HP SR number 8606223364.
9773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
9774printf %s "checking size of short... " >&6; }
9775if test ${ac_cv_sizeof_short+y}
9776then :
9777  printf %s "(cached) " >&6
9778else $as_nop
9779  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"
9780then :
9781
9782else $as_nop
9783  if test "$ac_cv_type_short" = yes; then
9784     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9785printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9786as_fn_error 77 "cannot compute sizeof (short)
9787See \`config.log' for more details" "$LINENO" 5; }
9788   else
9789     ac_cv_sizeof_short=0
9790   fi
9791fi
9792
9793fi
9794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
9795printf "%s\n" "$ac_cv_sizeof_short" >&6; }
9796
9797
9798
9799printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
9800
9801
9802# The cast to long int works around a bug in the HP C Compiler
9803# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9804# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9805# This bug is HP SR number 8606223364.
9806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
9807printf %s "checking size of int... " >&6; }
9808if test ${ac_cv_sizeof_int+y}
9809then :
9810  printf %s "(cached) " >&6
9811else $as_nop
9812  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"
9813then :
9814
9815else $as_nop
9816  if test "$ac_cv_type_int" = yes; then
9817     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9818printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9819as_fn_error 77 "cannot compute sizeof (int)
9820See \`config.log' for more details" "$LINENO" 5; }
9821   else
9822     ac_cv_sizeof_int=0
9823   fi
9824fi
9825
9826fi
9827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
9828printf "%s\n" "$ac_cv_sizeof_int" >&6; }
9829
9830
9831
9832printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
9833
9834
9835# The cast to long int works around a bug in the HP C Compiler
9836# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9837# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9838# This bug is HP SR number 8606223364.
9839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
9840printf %s "checking size of long... " >&6; }
9841if test ${ac_cv_sizeof_long+y}
9842then :
9843  printf %s "(cached) " >&6
9844else $as_nop
9845  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"
9846then :
9847
9848else $as_nop
9849  if test "$ac_cv_type_long" = yes; then
9850     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9851printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9852as_fn_error 77 "cannot compute sizeof (long)
9853See \`config.log' for more details" "$LINENO" 5; }
9854   else
9855     ac_cv_sizeof_long=0
9856   fi
9857fi
9858
9859fi
9860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
9861printf "%s\n" "$ac_cv_sizeof_long" >&6; }
9862
9863
9864
9865printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
9866
9867
9868
9869case "$ac_cv_type_long_long" in
9870 no)
9871    ;;
9872 *)
9873    # The cast to long int works around a bug in the HP C Compiler
9874# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9875# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9876# This bug is HP SR number 8606223364.
9877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
9878printf %s "checking size of long long... " >&6; }
9879if test ${ac_cv_sizeof_long_long+y}
9880then :
9881  printf %s "(cached) " >&6
9882else $as_nop
9883  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"
9884then :
9885
9886else $as_nop
9887  if test "$ac_cv_type_long_long" = yes; then
9888     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9889printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9890as_fn_error 77 "cannot compute sizeof (long long)
9891See \`config.log' for more details" "$LINENO" 5; }
9892   else
9893     ac_cv_sizeof_long_long=0
9894   fi
9895fi
9896
9897fi
9898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
9899printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
9900
9901
9902
9903printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
9904
9905
9906    ;;
9907esac
9908
9909case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
9910 *yes)
9911    # We have a typedef for s_char.  Might as well believe it...
9912    ;;
9913 no0no)
9914    # We have signed chars, can't say 'signed char', no s_char typedef.
9915
9916printf "%s\n" "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
9917
9918    ;;
9919 no1no)
9920    # We have signed chars, can say 'signed char', no s_char typedef.
9921
9922printf "%s\n" "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
9923
9924    ;;
9925 yes0no)
9926    # We have unsigned chars, can't say 'signed char', no s_char typedef.
9927    as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
9928    ;;
9929 yes1no)
9930    # We have unsigned chars, can say 'signed char', no s_char typedef.
9931
9932printf "%s\n" "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
9933
9934    ;;
9935esac
9936
9937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9938printf %s "checking for uid_t in sys/types.h... " >&6; }
9939if test ${ac_cv_type_uid_t+y}
9940then :
9941  printf %s "(cached) " >&6
9942else $as_nop
9943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944/* end confdefs.h.  */
9945#include <sys/types.h>
9946
9947_ACEOF
9948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9949  $EGREP "uid_t" >/dev/null 2>&1
9950then :
9951  ac_cv_type_uid_t=yes
9952else $as_nop
9953  ac_cv_type_uid_t=no
9954fi
9955rm -rf conftest*
9956
9957fi
9958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9959printf "%s\n" "$ac_cv_type_uid_t" >&6; }
9960if test $ac_cv_type_uid_t = no; then
9961
9962printf "%s\n" "#define uid_t int" >>confdefs.h
9963
9964
9965printf "%s\n" "#define gid_t int" >>confdefs.h
9966
9967fi
9968
9969
9970
9971
9972
9973
9974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
9975printf %s "checking if we're including debugging code... " >&6; }
9976# Check whether --enable-debugging was given.
9977if test ${enable_debugging+y}
9978then :
9979  enableval=$enable_debugging; ntp_ok=$enableval
9980else $as_nop
9981  ntp_ok=yes
9982
9983fi
9984
9985case "$ntp_ok" in
9986 yes)
9987
9988printf "%s\n" "#define DEBUG 1" >>confdefs.h
9989
9990esac
9991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
9992printf "%s\n" "$ntp_ok" >&6; }
9993
9994
9995
9996# check if we can compile with pthreads
9997ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
9998if test "x$ac_cv_header_semaphore_h" = xyes
9999then :
10000  printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h
10001
10002fi
10003
10004ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
10005if test "x$ac_cv_func_socketpair" = xyes
10006then :
10007  printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
10008
10009fi
10010
10011# Check whether --enable-thread-support was given.
10012if test ${enable_thread_support+y}
10013then :
10014  enableval=$enable_thread_support;
10015else $as_nop
10016  enable_thread_support=yes
10017
10018fi
10019
10020have_pthreads=no
10021case "$enable_thread_support" in
10022 no) ;;
10023 *)
10024    ol_found_pthreads=no
10025
10026
10027
10028ac_ext=c
10029ac_cpp='$CPP $CPPFLAGS'
10030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10032ac_compiler_gnu=$ac_cv_c_compiler_gnu
10033
10034# OpenLDAP --with-threads
10035
10036# Check whether --with-threads was given.
10037if test ${with_threads+y}
10038then :
10039  withval=$with_threads;
10040	ol_arg=invalid
10041	for ol_val in auto nt posix mach pth lwp yes no manual  ; do
10042		if test "$withval" = "$ol_val" ; then
10043			ol_arg="$ol_val"
10044		fi
10045	done
10046	if test "$ol_arg" = "invalid" ; then
10047		as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
10048	fi
10049	ol_with_threads="$ol_arg"
10050
10051else $as_nop
10052  	ol_with_threads="auto"
10053fi
10054# end --with-threads
10055
10056
10057case "$ol_with_threads$host" in
10058 auto*-*-solaris2.[0-6])
10059        ol_with_threads=no
10060    ;;
10061esac
10062
10063
10064ol_aix_threads=no
10065case "$host" in
10066*-*-aix*) 	if test -z "$CC" ; then
10067		case "$ol_with_threads" in
10068		auto | yes |  posix) ol_aix_threads=yes ;;
10069		esac
10070	fi
10071;;
10072esac
10073
10074if test $ol_aix_threads = yes ; then
10075	if test -z "${CC}" ; then
10076		for ac_prog in cc_r xlc_r cc
10077do
10078  # Extract the first word of "$ac_prog", so it can be a program name with args.
10079set dummy $ac_prog; ac_word=$2
10080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10081printf %s "checking for $ac_word... " >&6; }
10082if test ${ac_cv_prog_CC+y}
10083then :
10084  printf %s "(cached) " >&6
10085else $as_nop
10086  if test -n "$CC"; then
10087  ac_cv_prog_CC="$CC" # Let the user override the test.
10088else
10089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090for as_dir in $PATH
10091do
10092  IFS=$as_save_IFS
10093  case $as_dir in #(((
10094    '') as_dir=./ ;;
10095    */) ;;
10096    *) as_dir=$as_dir/ ;;
10097  esac
10098    for ac_exec_ext in '' $ac_executable_extensions; do
10099  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10100    ac_cv_prog_CC="$ac_prog"
10101    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10102    break 2
10103  fi
10104done
10105  done
10106IFS=$as_save_IFS
10107
10108fi
10109fi
10110CC=$ac_cv_prog_CC
10111if test -n "$CC"; then
10112  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10113printf "%s\n" "$CC" >&6; }
10114else
10115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116printf "%s\n" "no" >&6; }
10117fi
10118
10119
10120  test -n "$CC" && break
10121done
10122
10123
10124		if test "$CC" = cc ; then
10125						if test $ol_with_threads != auto ; then
10126				as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
10127			else
10128				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
10129printf "%s\n" "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
10130			fi
10131			ol_with_threads=no
10132  		fi
10133	fi
10134
10135	case ${CC} in cc_r | xlc_r)
10136		ol_with_threads=posix
10137		ol_cv_pthread_create=yes
10138		;;
10139	esac
10140fi
10141
10142ol_link_threads=no
10143# OpenLDAP --with-yielding_select
10144
10145# Check whether --with-yielding_select was given.
10146if test ${with_yielding_select+y}
10147then :
10148  withval=$with_yielding_select;
10149	ol_arg=invalid
10150	for ol_val in auto yes no manual  ; do
10151		if test "$withval" = "$ol_val" ; then
10152			ol_arg="$ol_val"
10153		fi
10154	done
10155	if test "$ol_arg" = "invalid" ; then
10156		as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
10157	fi
10158	ol_with_yielding_select="$ol_arg"
10159
10160else $as_nop
10161  	ol_with_yielding_select="auto"
10162fi
10163# end --with-yielding_select
10164
10165
10166case $ol_with_threads in auto | yes | nt)
10167
10168
10169	ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
10170if test "x$ac_cv_func__beginthread" = xyes
10171then :
10172
10173fi
10174
10175
10176	if test $ac_cv_func__beginthread = yes ; then
10177
10178printf "%s\n" "#define HAVE_NT_THREADS 1" >>confdefs.h
10179
10180		ol_cv_nt_threads=yes
10181	fi
10182
10183
10184	if test "$ol_cv_nt_threads" = yes ; then
10185		ol_link_threads=nt
10186		ol_with_threads=found
10187		ol_with_yielding_select=yes
10188
10189
10190printf "%s\n" "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
10191
10192
10193printf "%s\n" "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
10194
10195	fi
10196
10197	if test $ol_with_threads = nt ; then
10198		as_fn_error $? "could not locate NT Threads" "$LINENO" 5
10199	fi
10200	;;
10201esac
10202
10203case $ol_with_threads in auto | yes | posix)
10204
10205	ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10206if test "x$ac_cv_header_pthread_h" = xyes
10207then :
10208  printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
10209
10210fi
10211
10212
10213	if test $ac_cv_header_pthread_h = yes ; then
10214		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
10215printf %s "checking POSIX thread version... " >&6; }
10216if test ${ol_cv_pthread_version+y}
10217then :
10218  printf %s "(cached) " >&6
10219else $as_nop
10220
10221	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222/* end confdefs.h.  */
10223
10224#		include <pthread.h>
10225
10226int
10227main (void)
10228{
10229
10230		int i = PTHREAD_CREATE_JOINABLE;
10231
10232  ;
10233  return 0;
10234}
10235_ACEOF
10236if ac_fn_c_try_compile "$LINENO"
10237then :
10238
10239	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10240/* end confdefs.h.  */
10241#include <pthread.h>
10242
10243_ACEOF
10244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10245  $EGREP "pthread_detach" >/dev/null 2>&1
10246then :
10247  ol_cv_pthread_version=10
10248else $as_nop
10249  ol_cv_pthread_version=8
10250fi
10251rm -rf conftest*
10252
10253else $as_nop
10254
10255	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256/* end confdefs.h.  */
10257
10258#		include <pthread.h>
10259#		ifdef PTHREAD_CREATE_UNDETACHED
10260		draft7
10261#		endif
10262
10263_ACEOF
10264if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10265  $EGREP "draft7" >/dev/null 2>&1
10266then :
10267  ol_cv_pthread_version=7
10268else $as_nop
10269
10270	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10271/* end confdefs.h.  */
10272#include <pthread.h>
10273
10274_ACEOF
10275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10276  $EGREP "pthread_attr_init" >/dev/null 2>&1
10277then :
10278  ol_cv_pthread_version=6
10279else $as_nop
10280
10281	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282/* end confdefs.h.  */
10283
10284#		include <pthread.h>
10285#ifdef		PTHREAD_MUTEX_INITIALIZER
10286		draft5
10287#endif
10288
10289_ACEOF
10290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10291  $EGREP "draft5" >/dev/null 2>&1
10292then :
10293  ol_cv_pthread_version=5
10294else $as_nop
10295  ol_cv_pthread_version=4
10296fi
10297rm -rf conftest*
10298
10299fi
10300rm -rf conftest*
10301
10302fi
10303rm -rf conftest*
10304
10305fi
10306rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10307
10308fi
10309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
10310printf "%s\n" "$ol_cv_pthread_version" >&6; }
10311
10312
10313		if test $ol_cv_pthread_version != 0 ; then
10314
10315printf "%s\n" "#define HAVE_PTHREADS $ol_cv_pthread_version" >>confdefs.h
10316
10317		else
10318			as_fn_error $? "unknown pthread version" "$LINENO" 5
10319		fi
10320
10321		# consider threads found
10322		ol_with_threads=found
10323
10324
10325	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
10326printf %s "checking for LinuxThreads pthread.h... " >&6; }
10327if test ${ol_cv_header_linux_threads+y}
10328then :
10329  printf %s "(cached) " >&6
10330else $as_nop
10331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332/* end confdefs.h.  */
10333#include <pthread.h>
10334_ACEOF
10335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10336  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1
10337then :
10338  ol_cv_header_linux_threads=yes
10339else $as_nop
10340  ol_cv_header_linux_threads=no
10341fi
10342rm -rf conftest*
10343
10344
10345fi
10346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
10347printf "%s\n" "$ol_cv_header_linux_threads" >&6; }
10348	if test $ol_cv_header_linux_threads = yes; then
10349
10350printf "%s\n" "#define HAVE_LINUX_THREADS 1" >>confdefs.h
10351
10352	fi
10353
10354
10355	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
10356printf %s "checking for GNU Pth pthread.h... " >&6; }
10357if test ${ol_cv_header_gnu_pth_pthread_h+y}
10358then :
10359  printf %s "(cached) " >&6
10360else $as_nop
10361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362/* end confdefs.h.  */
10363#include <pthread.h>
10364#ifdef _POSIX_THREAD_IS_GNU_PTH
10365	__gnu_pth__;
10366#endif
10367
10368_ACEOF
10369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10370  $EGREP "__gnu_pth__" >/dev/null 2>&1
10371then :
10372  ol_cv_header_gnu_pth_pthread_h=yes
10373else $as_nop
10374  ol_cv_header_gnu_pth_pthread_h=no
10375fi
10376rm -rf conftest*
10377
10378
10379fi
10380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
10381printf "%s\n" "$ol_cv_header_gnu_pth_pthread_h" >&6; }
10382
10383
10384		if test $ol_cv_header_gnu_pth_pthread_h = no ; then
10385			ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
10386if test "x$ac_cv_header_sched_h" = xyes
10387then :
10388  printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
10389
10390fi
10391
10392		fi
10393
10394
10395				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
10396printf %s "checking for pthread_create in default libraries... " >&6; }
10397if test ${ol_cv_pthread_create+y}
10398then :
10399  printf %s "(cached) " >&6
10400else $as_nop
10401
10402			if test "$cross_compiling" = yes
10403then :
10404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405/* end confdefs.h.  */
10406
10407/* pthread test headers */
10408#include <pthread.h>
10409#if HAVE_PTHREADS < 7
10410#include <errno.h>
10411#endif
10412#ifndef NULL
10413#define NULL (void*)0
10414#endif
10415
10416static void *task(p)
10417	void *p;
10418{
10419	return (void *) (p == NULL);
10420}
10421
10422int
10423main (void)
10424{
10425
10426	/* pthread test function */
10427#ifndef PTHREAD_CREATE_DETACHED
10428#define	PTHREAD_CREATE_DETACHED	1
10429#endif
10430	pthread_t t;
10431	int status;
10432	int detach = PTHREAD_CREATE_DETACHED;
10433
10434#if HAVE_PTHREADS > 4
10435	/* Final pthreads */
10436	pthread_attr_t attr;
10437
10438	status = pthread_attr_init(&attr);
10439	if( status ) return status;
10440
10441#if HAVE_PTHREADS < 7
10442	status = pthread_attr_setdetachstate(&attr, &detach);
10443	if( status < 0 ) status = errno;
10444#else
10445	status = pthread_attr_setdetachstate(&attr, detach);
10446#endif
10447	if( status ) return status;
10448	status = pthread_create( &t, &attr, task, NULL );
10449#if HAVE_PTHREADS < 7
10450	if( status < 0 ) status = errno;
10451#endif
10452	if( status ) return status;
10453#else
10454	/* Draft 4 pthreads */
10455	status = pthread_create( &t, pthread_attr_default, task, NULL );
10456	if( status ) return errno;
10457
10458	/* give thread a chance to complete */
10459	/* it should remain joinable and hence detachable */
10460	sleep( 1 );
10461
10462	status = pthread_detach( &t );
10463	if( status ) return errno;
10464#endif
10465
10466#ifdef HAVE_LINUX_THREADS
10467	pthread_kill_other_threads_np();
10468#endif
10469
10470	return 0;
10471
10472  ;
10473  return 0;
10474}
10475_ACEOF
10476if ac_fn_c_try_link "$LINENO"
10477then :
10478  ol_cv_pthread_create=yes
10479else $as_nop
10480  ol_cv_pthread_create=no
10481fi
10482rm -f core conftest.err conftest.$ac_objext conftest.beam \
10483    conftest$ac_exeext conftest.$ac_ext
10484else $as_nop
10485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486/* end confdefs.h.  */
10487
10488
10489/* pthread test headers */
10490#include <pthread.h>
10491#if HAVE_PTHREADS < 7
10492#include <errno.h>
10493#endif
10494#ifndef NULL
10495#define NULL (void*)0
10496#endif
10497
10498static void *task(p)
10499	void *p;
10500{
10501	return (void *) (p == NULL);
10502}
10503
10504
10505int main(argc, argv)
10506	int argc;
10507	char **argv;
10508{
10509
10510	/* pthread test function */
10511#ifndef PTHREAD_CREATE_DETACHED
10512#define	PTHREAD_CREATE_DETACHED	1
10513#endif
10514	pthread_t t;
10515	int status;
10516	int detach = PTHREAD_CREATE_DETACHED;
10517
10518#if HAVE_PTHREADS > 4
10519	/* Final pthreads */
10520	pthread_attr_t attr;
10521
10522	status = pthread_attr_init(&attr);
10523	if( status ) return status;
10524
10525#if HAVE_PTHREADS < 7
10526	status = pthread_attr_setdetachstate(&attr, &detach);
10527	if( status < 0 ) status = errno;
10528#else
10529	status = pthread_attr_setdetachstate(&attr, detach);
10530#endif
10531	if( status ) return status;
10532	status = pthread_create( &t, &attr, task, NULL );
10533#if HAVE_PTHREADS < 7
10534	if( status < 0 ) status = errno;
10535#endif
10536	if( status ) return status;
10537#else
10538	/* Draft 4 pthreads */
10539	status = pthread_create( &t, pthread_attr_default, task, NULL );
10540	if( status ) return errno;
10541
10542	/* give thread a chance to complete */
10543	/* it should remain joinable and hence detachable */
10544	sleep( 1 );
10545
10546	status = pthread_detach( &t );
10547	if( status ) return errno;
10548#endif
10549
10550#ifdef HAVE_LINUX_THREADS
10551	pthread_kill_other_threads_np();
10552#endif
10553
10554	return 0;
10555
10556}
10557
10558_ACEOF
10559if ac_fn_c_try_run "$LINENO"
10560then :
10561  ol_cv_pthread_create=yes
10562else $as_nop
10563  ol_cv_pthread_create=no
10564fi
10565rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10566  conftest.$ac_objext conftest.beam conftest.$ac_ext
10567fi
10568
10569fi
10570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
10571printf "%s\n" "$ol_cv_pthread_create" >&6; }
10572
10573		if test $ol_cv_pthread_create != no ; then
10574			ol_link_threads=posix
10575			ol_link_pthreads=""
10576		fi
10577
10578		# Pthread try link: -kthread (ol_cv_pthread_kthread)
10579if test "$ol_link_threads" = no ; then
10580	# try -kthread
10581	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
10582printf %s "checking for pthread link with -kthread... " >&6; }
10583if test ${ol_cv_pthread_kthread+y}
10584then :
10585  printf %s "(cached) " >&6
10586else $as_nop
10587
10588		# save the flags
10589		ol_LIBS="$LIBS"
10590		LIBS="-kthread $LIBS"
10591
10592		if test "$cross_compiling" = yes
10593then :
10594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595/* end confdefs.h.  */
10596
10597/* pthread test headers */
10598#include <pthread.h>
10599#if HAVE_PTHREADS < 7
10600#include <errno.h>
10601#endif
10602#ifndef NULL
10603#define NULL (void*)0
10604#endif
10605
10606static void *task(p)
10607	void *p;
10608{
10609	return (void *) (p == NULL);
10610}
10611
10612int
10613main (void)
10614{
10615
10616	/* pthread test function */
10617#ifndef PTHREAD_CREATE_DETACHED
10618#define	PTHREAD_CREATE_DETACHED	1
10619#endif
10620	pthread_t t;
10621	int status;
10622	int detach = PTHREAD_CREATE_DETACHED;
10623
10624#if HAVE_PTHREADS > 4
10625	/* Final pthreads */
10626	pthread_attr_t attr;
10627
10628	status = pthread_attr_init(&attr);
10629	if( status ) return status;
10630
10631#if HAVE_PTHREADS < 7
10632	status = pthread_attr_setdetachstate(&attr, &detach);
10633	if( status < 0 ) status = errno;
10634#else
10635	status = pthread_attr_setdetachstate(&attr, detach);
10636#endif
10637	if( status ) return status;
10638	status = pthread_create( &t, &attr, task, NULL );
10639#if HAVE_PTHREADS < 7
10640	if( status < 0 ) status = errno;
10641#endif
10642	if( status ) return status;
10643#else
10644	/* Draft 4 pthreads */
10645	status = pthread_create( &t, pthread_attr_default, task, NULL );
10646	if( status ) return errno;
10647
10648	/* give thread a chance to complete */
10649	/* it should remain joinable and hence detachable */
10650	sleep( 1 );
10651
10652	status = pthread_detach( &t );
10653	if( status ) return errno;
10654#endif
10655
10656#ifdef HAVE_LINUX_THREADS
10657	pthread_kill_other_threads_np();
10658#endif
10659
10660	return 0;
10661
10662  ;
10663  return 0;
10664}
10665_ACEOF
10666if ac_fn_c_try_link "$LINENO"
10667then :
10668  ol_cv_pthread_kthread=yes
10669else $as_nop
10670  ol_cv_pthread_kthread=no
10671fi
10672rm -f core conftest.err conftest.$ac_objext conftest.beam \
10673    conftest$ac_exeext conftest.$ac_ext
10674else $as_nop
10675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676/* end confdefs.h.  */
10677
10678
10679/* pthread test headers */
10680#include <pthread.h>
10681#if HAVE_PTHREADS < 7
10682#include <errno.h>
10683#endif
10684#ifndef NULL
10685#define NULL (void*)0
10686#endif
10687
10688static void *task(p)
10689	void *p;
10690{
10691	return (void *) (p == NULL);
10692}
10693
10694
10695int main(argc, argv)
10696	int argc;
10697	char **argv;
10698{
10699
10700	/* pthread test function */
10701#ifndef PTHREAD_CREATE_DETACHED
10702#define	PTHREAD_CREATE_DETACHED	1
10703#endif
10704	pthread_t t;
10705	int status;
10706	int detach = PTHREAD_CREATE_DETACHED;
10707
10708#if HAVE_PTHREADS > 4
10709	/* Final pthreads */
10710	pthread_attr_t attr;
10711
10712	status = pthread_attr_init(&attr);
10713	if( status ) return status;
10714
10715#if HAVE_PTHREADS < 7
10716	status = pthread_attr_setdetachstate(&attr, &detach);
10717	if( status < 0 ) status = errno;
10718#else
10719	status = pthread_attr_setdetachstate(&attr, detach);
10720#endif
10721	if( status ) return status;
10722	status = pthread_create( &t, &attr, task, NULL );
10723#if HAVE_PTHREADS < 7
10724	if( status < 0 ) status = errno;
10725#endif
10726	if( status ) return status;
10727#else
10728	/* Draft 4 pthreads */
10729	status = pthread_create( &t, pthread_attr_default, task, NULL );
10730	if( status ) return errno;
10731
10732	/* give thread a chance to complete */
10733	/* it should remain joinable and hence detachable */
10734	sleep( 1 );
10735
10736	status = pthread_detach( &t );
10737	if( status ) return errno;
10738#endif
10739
10740#ifdef HAVE_LINUX_THREADS
10741	pthread_kill_other_threads_np();
10742#endif
10743
10744	return 0;
10745
10746}
10747
10748_ACEOF
10749if ac_fn_c_try_run "$LINENO"
10750then :
10751  ol_cv_pthread_kthread=yes
10752else $as_nop
10753  ol_cv_pthread_kthread=no
10754fi
10755rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10756  conftest.$ac_objext conftest.beam conftest.$ac_ext
10757fi
10758
10759
10760		# restore the LIBS
10761		LIBS="$ol_LIBS"
10762
10763fi
10764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
10765printf "%s\n" "$ol_cv_pthread_kthread" >&6; }
10766
10767	if test $ol_cv_pthread_kthread = yes ; then
10768		ol_link_pthreads="-kthread"
10769		ol_link_threads=posix
10770	fi
10771fi
10772
10773		# Pthread try link: -pthread (ol_cv_pthread_pthread)
10774if test "$ol_link_threads" = no ; then
10775	# try -pthread
10776	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
10777printf %s "checking for pthread link with -pthread... " >&6; }
10778if test ${ol_cv_pthread_pthread+y}
10779then :
10780  printf %s "(cached) " >&6
10781else $as_nop
10782
10783		# save the flags
10784		ol_LIBS="$LIBS"
10785		LIBS="-pthread $LIBS"
10786
10787		if test "$cross_compiling" = yes
10788then :
10789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790/* end confdefs.h.  */
10791
10792/* pthread test headers */
10793#include <pthread.h>
10794#if HAVE_PTHREADS < 7
10795#include <errno.h>
10796#endif
10797#ifndef NULL
10798#define NULL (void*)0
10799#endif
10800
10801static void *task(p)
10802	void *p;
10803{
10804	return (void *) (p == NULL);
10805}
10806
10807int
10808main (void)
10809{
10810
10811	/* pthread test function */
10812#ifndef PTHREAD_CREATE_DETACHED
10813#define	PTHREAD_CREATE_DETACHED	1
10814#endif
10815	pthread_t t;
10816	int status;
10817	int detach = PTHREAD_CREATE_DETACHED;
10818
10819#if HAVE_PTHREADS > 4
10820	/* Final pthreads */
10821	pthread_attr_t attr;
10822
10823	status = pthread_attr_init(&attr);
10824	if( status ) return status;
10825
10826#if HAVE_PTHREADS < 7
10827	status = pthread_attr_setdetachstate(&attr, &detach);
10828	if( status < 0 ) status = errno;
10829#else
10830	status = pthread_attr_setdetachstate(&attr, detach);
10831#endif
10832	if( status ) return status;
10833	status = pthread_create( &t, &attr, task, NULL );
10834#if HAVE_PTHREADS < 7
10835	if( status < 0 ) status = errno;
10836#endif
10837	if( status ) return status;
10838#else
10839	/* Draft 4 pthreads */
10840	status = pthread_create( &t, pthread_attr_default, task, NULL );
10841	if( status ) return errno;
10842
10843	/* give thread a chance to complete */
10844	/* it should remain joinable and hence detachable */
10845	sleep( 1 );
10846
10847	status = pthread_detach( &t );
10848	if( status ) return errno;
10849#endif
10850
10851#ifdef HAVE_LINUX_THREADS
10852	pthread_kill_other_threads_np();
10853#endif
10854
10855	return 0;
10856
10857  ;
10858  return 0;
10859}
10860_ACEOF
10861if ac_fn_c_try_link "$LINENO"
10862then :
10863  ol_cv_pthread_pthread=yes
10864else $as_nop
10865  ol_cv_pthread_pthread=no
10866fi
10867rm -f core conftest.err conftest.$ac_objext conftest.beam \
10868    conftest$ac_exeext conftest.$ac_ext
10869else $as_nop
10870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10871/* end confdefs.h.  */
10872
10873
10874/* pthread test headers */
10875#include <pthread.h>
10876#if HAVE_PTHREADS < 7
10877#include <errno.h>
10878#endif
10879#ifndef NULL
10880#define NULL (void*)0
10881#endif
10882
10883static void *task(p)
10884	void *p;
10885{
10886	return (void *) (p == NULL);
10887}
10888
10889
10890int main(argc, argv)
10891	int argc;
10892	char **argv;
10893{
10894
10895	/* pthread test function */
10896#ifndef PTHREAD_CREATE_DETACHED
10897#define	PTHREAD_CREATE_DETACHED	1
10898#endif
10899	pthread_t t;
10900	int status;
10901	int detach = PTHREAD_CREATE_DETACHED;
10902
10903#if HAVE_PTHREADS > 4
10904	/* Final pthreads */
10905	pthread_attr_t attr;
10906
10907	status = pthread_attr_init(&attr);
10908	if( status ) return status;
10909
10910#if HAVE_PTHREADS < 7
10911	status = pthread_attr_setdetachstate(&attr, &detach);
10912	if( status < 0 ) status = errno;
10913#else
10914	status = pthread_attr_setdetachstate(&attr, detach);
10915#endif
10916	if( status ) return status;
10917	status = pthread_create( &t, &attr, task, NULL );
10918#if HAVE_PTHREADS < 7
10919	if( status < 0 ) status = errno;
10920#endif
10921	if( status ) return status;
10922#else
10923	/* Draft 4 pthreads */
10924	status = pthread_create( &t, pthread_attr_default, task, NULL );
10925	if( status ) return errno;
10926
10927	/* give thread a chance to complete */
10928	/* it should remain joinable and hence detachable */
10929	sleep( 1 );
10930
10931	status = pthread_detach( &t );
10932	if( status ) return errno;
10933#endif
10934
10935#ifdef HAVE_LINUX_THREADS
10936	pthread_kill_other_threads_np();
10937#endif
10938
10939	return 0;
10940
10941}
10942
10943_ACEOF
10944if ac_fn_c_try_run "$LINENO"
10945then :
10946  ol_cv_pthread_pthread=yes
10947else $as_nop
10948  ol_cv_pthread_pthread=no
10949fi
10950rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10951  conftest.$ac_objext conftest.beam conftest.$ac_ext
10952fi
10953
10954
10955		# restore the LIBS
10956		LIBS="$ol_LIBS"
10957
10958fi
10959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
10960printf "%s\n" "$ol_cv_pthread_pthread" >&6; }
10961
10962	if test $ol_cv_pthread_pthread = yes ; then
10963		ol_link_pthreads="-pthread"
10964		ol_link_threads=posix
10965	fi
10966fi
10967
10968		# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
10969if test "$ol_link_threads" = no ; then
10970	# try -pthreads
10971	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
10972printf %s "checking for pthread link with -pthreads... " >&6; }
10973if test ${ol_cv_pthread_pthreads+y}
10974then :
10975  printf %s "(cached) " >&6
10976else $as_nop
10977
10978		# save the flags
10979		ol_LIBS="$LIBS"
10980		LIBS="-pthreads $LIBS"
10981
10982		if test "$cross_compiling" = yes
10983then :
10984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985/* end confdefs.h.  */
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
11002int
11003main (void)
11004{
11005
11006	/* pthread test function */
11007#ifndef PTHREAD_CREATE_DETACHED
11008#define	PTHREAD_CREATE_DETACHED	1
11009#endif
11010	pthread_t t;
11011	int status;
11012	int detach = PTHREAD_CREATE_DETACHED;
11013
11014#if HAVE_PTHREADS > 4
11015	/* Final pthreads */
11016	pthread_attr_t attr;
11017
11018	status = pthread_attr_init(&attr);
11019	if( status ) return status;
11020
11021#if HAVE_PTHREADS < 7
11022	status = pthread_attr_setdetachstate(&attr, &detach);
11023	if( status < 0 ) status = errno;
11024#else
11025	status = pthread_attr_setdetachstate(&attr, detach);
11026#endif
11027	if( status ) return status;
11028	status = pthread_create( &t, &attr, task, NULL );
11029#if HAVE_PTHREADS < 7
11030	if( status < 0 ) status = errno;
11031#endif
11032	if( status ) return status;
11033#else
11034	/* Draft 4 pthreads */
11035	status = pthread_create( &t, pthread_attr_default, task, NULL );
11036	if( status ) return errno;
11037
11038	/* give thread a chance to complete */
11039	/* it should remain joinable and hence detachable */
11040	sleep( 1 );
11041
11042	status = pthread_detach( &t );
11043	if( status ) return errno;
11044#endif
11045
11046#ifdef HAVE_LINUX_THREADS
11047	pthread_kill_other_threads_np();
11048#endif
11049
11050	return 0;
11051
11052  ;
11053  return 0;
11054}
11055_ACEOF
11056if ac_fn_c_try_link "$LINENO"
11057then :
11058  ol_cv_pthread_pthreads=yes
11059else $as_nop
11060  ol_cv_pthread_pthreads=no
11061fi
11062rm -f core conftest.err conftest.$ac_objext conftest.beam \
11063    conftest$ac_exeext conftest.$ac_ext
11064else $as_nop
11065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066/* end confdefs.h.  */
11067
11068
11069/* pthread test headers */
11070#include <pthread.h>
11071#if HAVE_PTHREADS < 7
11072#include <errno.h>
11073#endif
11074#ifndef NULL
11075#define NULL (void*)0
11076#endif
11077
11078static void *task(p)
11079	void *p;
11080{
11081	return (void *) (p == NULL);
11082}
11083
11084
11085int main(argc, argv)
11086	int argc;
11087	char **argv;
11088{
11089
11090	/* pthread test function */
11091#ifndef PTHREAD_CREATE_DETACHED
11092#define	PTHREAD_CREATE_DETACHED	1
11093#endif
11094	pthread_t t;
11095	int status;
11096	int detach = PTHREAD_CREATE_DETACHED;
11097
11098#if HAVE_PTHREADS > 4
11099	/* Final pthreads */
11100	pthread_attr_t attr;
11101
11102	status = pthread_attr_init(&attr);
11103	if( status ) return status;
11104
11105#if HAVE_PTHREADS < 7
11106	status = pthread_attr_setdetachstate(&attr, &detach);
11107	if( status < 0 ) status = errno;
11108#else
11109	status = pthread_attr_setdetachstate(&attr, detach);
11110#endif
11111	if( status ) return status;
11112	status = pthread_create( &t, &attr, task, NULL );
11113#if HAVE_PTHREADS < 7
11114	if( status < 0 ) status = errno;
11115#endif
11116	if( status ) return status;
11117#else
11118	/* Draft 4 pthreads */
11119	status = pthread_create( &t, pthread_attr_default, task, NULL );
11120	if( status ) return errno;
11121
11122	/* give thread a chance to complete */
11123	/* it should remain joinable and hence detachable */
11124	sleep( 1 );
11125
11126	status = pthread_detach( &t );
11127	if( status ) return errno;
11128#endif
11129
11130#ifdef HAVE_LINUX_THREADS
11131	pthread_kill_other_threads_np();
11132#endif
11133
11134	return 0;
11135
11136}
11137
11138_ACEOF
11139if ac_fn_c_try_run "$LINENO"
11140then :
11141  ol_cv_pthread_pthreads=yes
11142else $as_nop
11143  ol_cv_pthread_pthreads=no
11144fi
11145rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11146  conftest.$ac_objext conftest.beam conftest.$ac_ext
11147fi
11148
11149
11150		# restore the LIBS
11151		LIBS="$ol_LIBS"
11152
11153fi
11154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
11155printf "%s\n" "$ol_cv_pthread_pthreads" >&6; }
11156
11157	if test $ol_cv_pthread_pthreads = yes ; then
11158		ol_link_pthreads="-pthreads"
11159		ol_link_threads=posix
11160	fi
11161fi
11162
11163		# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
11164if test "$ol_link_threads" = no ; then
11165	# try -mthreads
11166	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
11167printf %s "checking for pthread link with -mthreads... " >&6; }
11168if test ${ol_cv_pthread_mthreads+y}
11169then :
11170  printf %s "(cached) " >&6
11171else $as_nop
11172
11173		# save the flags
11174		ol_LIBS="$LIBS"
11175		LIBS="-mthreads $LIBS"
11176
11177		if test "$cross_compiling" = yes
11178then :
11179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11180/* end confdefs.h.  */
11181
11182/* pthread test headers */
11183#include <pthread.h>
11184#if HAVE_PTHREADS < 7
11185#include <errno.h>
11186#endif
11187#ifndef NULL
11188#define NULL (void*)0
11189#endif
11190
11191static void *task(p)
11192	void *p;
11193{
11194	return (void *) (p == NULL);
11195}
11196
11197int
11198main (void)
11199{
11200
11201	/* pthread test function */
11202#ifndef PTHREAD_CREATE_DETACHED
11203#define	PTHREAD_CREATE_DETACHED	1
11204#endif
11205	pthread_t t;
11206	int status;
11207	int detach = PTHREAD_CREATE_DETACHED;
11208
11209#if HAVE_PTHREADS > 4
11210	/* Final pthreads */
11211	pthread_attr_t attr;
11212
11213	status = pthread_attr_init(&attr);
11214	if( status ) return status;
11215
11216#if HAVE_PTHREADS < 7
11217	status = pthread_attr_setdetachstate(&attr, &detach);
11218	if( status < 0 ) status = errno;
11219#else
11220	status = pthread_attr_setdetachstate(&attr, detach);
11221#endif
11222	if( status ) return status;
11223	status = pthread_create( &t, &attr, task, NULL );
11224#if HAVE_PTHREADS < 7
11225	if( status < 0 ) status = errno;
11226#endif
11227	if( status ) return status;
11228#else
11229	/* Draft 4 pthreads */
11230	status = pthread_create( &t, pthread_attr_default, task, NULL );
11231	if( status ) return errno;
11232
11233	/* give thread a chance to complete */
11234	/* it should remain joinable and hence detachable */
11235	sleep( 1 );
11236
11237	status = pthread_detach( &t );
11238	if( status ) return errno;
11239#endif
11240
11241#ifdef HAVE_LINUX_THREADS
11242	pthread_kill_other_threads_np();
11243#endif
11244
11245	return 0;
11246
11247  ;
11248  return 0;
11249}
11250_ACEOF
11251if ac_fn_c_try_link "$LINENO"
11252then :
11253  ol_cv_pthread_mthreads=yes
11254else $as_nop
11255  ol_cv_pthread_mthreads=no
11256fi
11257rm -f core conftest.err conftest.$ac_objext conftest.beam \
11258    conftest$ac_exeext conftest.$ac_ext
11259else $as_nop
11260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261/* end confdefs.h.  */
11262
11263
11264/* pthread test headers */
11265#include <pthread.h>
11266#if HAVE_PTHREADS < 7
11267#include <errno.h>
11268#endif
11269#ifndef NULL
11270#define NULL (void*)0
11271#endif
11272
11273static void *task(p)
11274	void *p;
11275{
11276	return (void *) (p == NULL);
11277}
11278
11279
11280int main(argc, argv)
11281	int argc;
11282	char **argv;
11283{
11284
11285	/* pthread test function */
11286#ifndef PTHREAD_CREATE_DETACHED
11287#define	PTHREAD_CREATE_DETACHED	1
11288#endif
11289	pthread_t t;
11290	int status;
11291	int detach = PTHREAD_CREATE_DETACHED;
11292
11293#if HAVE_PTHREADS > 4
11294	/* Final pthreads */
11295	pthread_attr_t attr;
11296
11297	status = pthread_attr_init(&attr);
11298	if( status ) return status;
11299
11300#if HAVE_PTHREADS < 7
11301	status = pthread_attr_setdetachstate(&attr, &detach);
11302	if( status < 0 ) status = errno;
11303#else
11304	status = pthread_attr_setdetachstate(&attr, detach);
11305#endif
11306	if( status ) return status;
11307	status = pthread_create( &t, &attr, task, NULL );
11308#if HAVE_PTHREADS < 7
11309	if( status < 0 ) status = errno;
11310#endif
11311	if( status ) return status;
11312#else
11313	/* Draft 4 pthreads */
11314	status = pthread_create( &t, pthread_attr_default, task, NULL );
11315	if( status ) return errno;
11316
11317	/* give thread a chance to complete */
11318	/* it should remain joinable and hence detachable */
11319	sleep( 1 );
11320
11321	status = pthread_detach( &t );
11322	if( status ) return errno;
11323#endif
11324
11325#ifdef HAVE_LINUX_THREADS
11326	pthread_kill_other_threads_np();
11327#endif
11328
11329	return 0;
11330
11331}
11332
11333_ACEOF
11334if ac_fn_c_try_run "$LINENO"
11335then :
11336  ol_cv_pthread_mthreads=yes
11337else $as_nop
11338  ol_cv_pthread_mthreads=no
11339fi
11340rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11341  conftest.$ac_objext conftest.beam conftest.$ac_ext
11342fi
11343
11344
11345		# restore the LIBS
11346		LIBS="$ol_LIBS"
11347
11348fi
11349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
11350printf "%s\n" "$ol_cv_pthread_mthreads" >&6; }
11351
11352	if test $ol_cv_pthread_mthreads = yes ; then
11353		ol_link_pthreads="-mthreads"
11354		ol_link_threads=posix
11355	fi
11356fi
11357
11358		# Pthread try link: -thread (ol_cv_pthread_thread)
11359if test "$ol_link_threads" = no ; then
11360	# try -thread
11361	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
11362printf %s "checking for pthread link with -thread... " >&6; }
11363if test ${ol_cv_pthread_thread+y}
11364then :
11365  printf %s "(cached) " >&6
11366else $as_nop
11367
11368		# save the flags
11369		ol_LIBS="$LIBS"
11370		LIBS="-thread $LIBS"
11371
11372		if test "$cross_compiling" = yes
11373then :
11374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375/* end confdefs.h.  */
11376
11377/* pthread test headers */
11378#include <pthread.h>
11379#if HAVE_PTHREADS < 7
11380#include <errno.h>
11381#endif
11382#ifndef NULL
11383#define NULL (void*)0
11384#endif
11385
11386static void *task(p)
11387	void *p;
11388{
11389	return (void *) (p == NULL);
11390}
11391
11392int
11393main (void)
11394{
11395
11396	/* pthread test function */
11397#ifndef PTHREAD_CREATE_DETACHED
11398#define	PTHREAD_CREATE_DETACHED	1
11399#endif
11400	pthread_t t;
11401	int status;
11402	int detach = PTHREAD_CREATE_DETACHED;
11403
11404#if HAVE_PTHREADS > 4
11405	/* Final pthreads */
11406	pthread_attr_t attr;
11407
11408	status = pthread_attr_init(&attr);
11409	if( status ) return status;
11410
11411#if HAVE_PTHREADS < 7
11412	status = pthread_attr_setdetachstate(&attr, &detach);
11413	if( status < 0 ) status = errno;
11414#else
11415	status = pthread_attr_setdetachstate(&attr, detach);
11416#endif
11417	if( status ) return status;
11418	status = pthread_create( &t, &attr, task, NULL );
11419#if HAVE_PTHREADS < 7
11420	if( status < 0 ) status = errno;
11421#endif
11422	if( status ) return status;
11423#else
11424	/* Draft 4 pthreads */
11425	status = pthread_create( &t, pthread_attr_default, task, NULL );
11426	if( status ) return errno;
11427
11428	/* give thread a chance to complete */
11429	/* it should remain joinable and hence detachable */
11430	sleep( 1 );
11431
11432	status = pthread_detach( &t );
11433	if( status ) return errno;
11434#endif
11435
11436#ifdef HAVE_LINUX_THREADS
11437	pthread_kill_other_threads_np();
11438#endif
11439
11440	return 0;
11441
11442  ;
11443  return 0;
11444}
11445_ACEOF
11446if ac_fn_c_try_link "$LINENO"
11447then :
11448  ol_cv_pthread_thread=yes
11449else $as_nop
11450  ol_cv_pthread_thread=no
11451fi
11452rm -f core conftest.err conftest.$ac_objext conftest.beam \
11453    conftest$ac_exeext conftest.$ac_ext
11454else $as_nop
11455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11456/* end confdefs.h.  */
11457
11458
11459/* pthread test headers */
11460#include <pthread.h>
11461#if HAVE_PTHREADS < 7
11462#include <errno.h>
11463#endif
11464#ifndef NULL
11465#define NULL (void*)0
11466#endif
11467
11468static void *task(p)
11469	void *p;
11470{
11471	return (void *) (p == NULL);
11472}
11473
11474
11475int main(argc, argv)
11476	int argc;
11477	char **argv;
11478{
11479
11480	/* pthread test function */
11481#ifndef PTHREAD_CREATE_DETACHED
11482#define	PTHREAD_CREATE_DETACHED	1
11483#endif
11484	pthread_t t;
11485	int status;
11486	int detach = PTHREAD_CREATE_DETACHED;
11487
11488#if HAVE_PTHREADS > 4
11489	/* Final pthreads */
11490	pthread_attr_t attr;
11491
11492	status = pthread_attr_init(&attr);
11493	if( status ) return status;
11494
11495#if HAVE_PTHREADS < 7
11496	status = pthread_attr_setdetachstate(&attr, &detach);
11497	if( status < 0 ) status = errno;
11498#else
11499	status = pthread_attr_setdetachstate(&attr, detach);
11500#endif
11501	if( status ) return status;
11502	status = pthread_create( &t, &attr, task, NULL );
11503#if HAVE_PTHREADS < 7
11504	if( status < 0 ) status = errno;
11505#endif
11506	if( status ) return status;
11507#else
11508	/* Draft 4 pthreads */
11509	status = pthread_create( &t, pthread_attr_default, task, NULL );
11510	if( status ) return errno;
11511
11512	/* give thread a chance to complete */
11513	/* it should remain joinable and hence detachable */
11514	sleep( 1 );
11515
11516	status = pthread_detach( &t );
11517	if( status ) return errno;
11518#endif
11519
11520#ifdef HAVE_LINUX_THREADS
11521	pthread_kill_other_threads_np();
11522#endif
11523
11524	return 0;
11525
11526}
11527
11528_ACEOF
11529if ac_fn_c_try_run "$LINENO"
11530then :
11531  ol_cv_pthread_thread=yes
11532else $as_nop
11533  ol_cv_pthread_thread=no
11534fi
11535rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11536  conftest.$ac_objext conftest.beam conftest.$ac_ext
11537fi
11538
11539
11540		# restore the LIBS
11541		LIBS="$ol_LIBS"
11542
11543fi
11544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
11545printf "%s\n" "$ol_cv_pthread_thread" >&6; }
11546
11547	if test $ol_cv_pthread_thread = yes ; then
11548		ol_link_pthreads="-thread"
11549		ol_link_threads=posix
11550	fi
11551fi
11552
11553
11554		# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
11555if test "$ol_link_threads" = no ; then
11556	# try -lpthread -lmach -lexc -lc_r
11557	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
11558printf %s "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
11559if test ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+y}
11560then :
11561  printf %s "(cached) " >&6
11562else $as_nop
11563
11564		# save the flags
11565		ol_LIBS="$LIBS"
11566		LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
11567
11568		if test "$cross_compiling" = yes
11569then :
11570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571/* end confdefs.h.  */
11572
11573/* pthread test headers */
11574#include <pthread.h>
11575#if HAVE_PTHREADS < 7
11576#include <errno.h>
11577#endif
11578#ifndef NULL
11579#define NULL (void*)0
11580#endif
11581
11582static void *task(p)
11583	void *p;
11584{
11585	return (void *) (p == NULL);
11586}
11587
11588int
11589main (void)
11590{
11591
11592	/* pthread test function */
11593#ifndef PTHREAD_CREATE_DETACHED
11594#define	PTHREAD_CREATE_DETACHED	1
11595#endif
11596	pthread_t t;
11597	int status;
11598	int detach = PTHREAD_CREATE_DETACHED;
11599
11600#if HAVE_PTHREADS > 4
11601	/* Final pthreads */
11602	pthread_attr_t attr;
11603
11604	status = pthread_attr_init(&attr);
11605	if( status ) return status;
11606
11607#if HAVE_PTHREADS < 7
11608	status = pthread_attr_setdetachstate(&attr, &detach);
11609	if( status < 0 ) status = errno;
11610#else
11611	status = pthread_attr_setdetachstate(&attr, detach);
11612#endif
11613	if( status ) return status;
11614	status = pthread_create( &t, &attr, task, NULL );
11615#if HAVE_PTHREADS < 7
11616	if( status < 0 ) status = errno;
11617#endif
11618	if( status ) return status;
11619#else
11620	/* Draft 4 pthreads */
11621	status = pthread_create( &t, pthread_attr_default, task, NULL );
11622	if( status ) return errno;
11623
11624	/* give thread a chance to complete */
11625	/* it should remain joinable and hence detachable */
11626	sleep( 1 );
11627
11628	status = pthread_detach( &t );
11629	if( status ) return errno;
11630#endif
11631
11632#ifdef HAVE_LINUX_THREADS
11633	pthread_kill_other_threads_np();
11634#endif
11635
11636	return 0;
11637
11638  ;
11639  return 0;
11640}
11641_ACEOF
11642if ac_fn_c_try_link "$LINENO"
11643then :
11644  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
11645else $as_nop
11646  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
11647fi
11648rm -f core conftest.err conftest.$ac_objext conftest.beam \
11649    conftest$ac_exeext conftest.$ac_ext
11650else $as_nop
11651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652/* end confdefs.h.  */
11653
11654
11655/* pthread test headers */
11656#include <pthread.h>
11657#if HAVE_PTHREADS < 7
11658#include <errno.h>
11659#endif
11660#ifndef NULL
11661#define NULL (void*)0
11662#endif
11663
11664static void *task(p)
11665	void *p;
11666{
11667	return (void *) (p == NULL);
11668}
11669
11670
11671int main(argc, argv)
11672	int argc;
11673	char **argv;
11674{
11675
11676	/* pthread test function */
11677#ifndef PTHREAD_CREATE_DETACHED
11678#define	PTHREAD_CREATE_DETACHED	1
11679#endif
11680	pthread_t t;
11681	int status;
11682	int detach = PTHREAD_CREATE_DETACHED;
11683
11684#if HAVE_PTHREADS > 4
11685	/* Final pthreads */
11686	pthread_attr_t attr;
11687
11688	status = pthread_attr_init(&attr);
11689	if( status ) return status;
11690
11691#if HAVE_PTHREADS < 7
11692	status = pthread_attr_setdetachstate(&attr, &detach);
11693	if( status < 0 ) status = errno;
11694#else
11695	status = pthread_attr_setdetachstate(&attr, detach);
11696#endif
11697	if( status ) return status;
11698	status = pthread_create( &t, &attr, task, NULL );
11699#if HAVE_PTHREADS < 7
11700	if( status < 0 ) status = errno;
11701#endif
11702	if( status ) return status;
11703#else
11704	/* Draft 4 pthreads */
11705	status = pthread_create( &t, pthread_attr_default, task, NULL );
11706	if( status ) return errno;
11707
11708	/* give thread a chance to complete */
11709	/* it should remain joinable and hence detachable */
11710	sleep( 1 );
11711
11712	status = pthread_detach( &t );
11713	if( status ) return errno;
11714#endif
11715
11716#ifdef HAVE_LINUX_THREADS
11717	pthread_kill_other_threads_np();
11718#endif
11719
11720	return 0;
11721
11722}
11723
11724_ACEOF
11725if ac_fn_c_try_run "$LINENO"
11726then :
11727  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
11728else $as_nop
11729  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
11730fi
11731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11732  conftest.$ac_objext conftest.beam conftest.$ac_ext
11733fi
11734
11735
11736		# restore the LIBS
11737		LIBS="$ol_LIBS"
11738
11739fi
11740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
11741printf "%s\n" "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
11742
11743	if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
11744		ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
11745		ol_link_threads=posix
11746	fi
11747fi
11748
11749		# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
11750if test "$ol_link_threads" = no ; then
11751	# try -lpthread -lmach -lexc
11752	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
11753printf %s "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
11754if test ${ol_cv_pthread_lpthread_lmach_lexc+y}
11755then :
11756  printf %s "(cached) " >&6
11757else $as_nop
11758
11759		# save the flags
11760		ol_LIBS="$LIBS"
11761		LIBS="-lpthread -lmach -lexc $LIBS"
11762
11763		if test "$cross_compiling" = yes
11764then :
11765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11766/* end confdefs.h.  */
11767
11768/* pthread test headers */
11769#include <pthread.h>
11770#if HAVE_PTHREADS < 7
11771#include <errno.h>
11772#endif
11773#ifndef NULL
11774#define NULL (void*)0
11775#endif
11776
11777static void *task(p)
11778	void *p;
11779{
11780	return (void *) (p == NULL);
11781}
11782
11783int
11784main (void)
11785{
11786
11787	/* pthread test function */
11788#ifndef PTHREAD_CREATE_DETACHED
11789#define	PTHREAD_CREATE_DETACHED	1
11790#endif
11791	pthread_t t;
11792	int status;
11793	int detach = PTHREAD_CREATE_DETACHED;
11794
11795#if HAVE_PTHREADS > 4
11796	/* Final pthreads */
11797	pthread_attr_t attr;
11798
11799	status = pthread_attr_init(&attr);
11800	if( status ) return status;
11801
11802#if HAVE_PTHREADS < 7
11803	status = pthread_attr_setdetachstate(&attr, &detach);
11804	if( status < 0 ) status = errno;
11805#else
11806	status = pthread_attr_setdetachstate(&attr, detach);
11807#endif
11808	if( status ) return status;
11809	status = pthread_create( &t, &attr, task, NULL );
11810#if HAVE_PTHREADS < 7
11811	if( status < 0 ) status = errno;
11812#endif
11813	if( status ) return status;
11814#else
11815	/* Draft 4 pthreads */
11816	status = pthread_create( &t, pthread_attr_default, task, NULL );
11817	if( status ) return errno;
11818
11819	/* give thread a chance to complete */
11820	/* it should remain joinable and hence detachable */
11821	sleep( 1 );
11822
11823	status = pthread_detach( &t );
11824	if( status ) return errno;
11825#endif
11826
11827#ifdef HAVE_LINUX_THREADS
11828	pthread_kill_other_threads_np();
11829#endif
11830
11831	return 0;
11832
11833  ;
11834  return 0;
11835}
11836_ACEOF
11837if ac_fn_c_try_link "$LINENO"
11838then :
11839  ol_cv_pthread_lpthread_lmach_lexc=yes
11840else $as_nop
11841  ol_cv_pthread_lpthread_lmach_lexc=no
11842fi
11843rm -f core conftest.err conftest.$ac_objext conftest.beam \
11844    conftest$ac_exeext conftest.$ac_ext
11845else $as_nop
11846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847/* end confdefs.h.  */
11848
11849
11850/* pthread test headers */
11851#include <pthread.h>
11852#if HAVE_PTHREADS < 7
11853#include <errno.h>
11854#endif
11855#ifndef NULL
11856#define NULL (void*)0
11857#endif
11858
11859static void *task(p)
11860	void *p;
11861{
11862	return (void *) (p == NULL);
11863}
11864
11865
11866int main(argc, argv)
11867	int argc;
11868	char **argv;
11869{
11870
11871	/* pthread test function */
11872#ifndef PTHREAD_CREATE_DETACHED
11873#define	PTHREAD_CREATE_DETACHED	1
11874#endif
11875	pthread_t t;
11876	int status;
11877	int detach = PTHREAD_CREATE_DETACHED;
11878
11879#if HAVE_PTHREADS > 4
11880	/* Final pthreads */
11881	pthread_attr_t attr;
11882
11883	status = pthread_attr_init(&attr);
11884	if( status ) return status;
11885
11886#if HAVE_PTHREADS < 7
11887	status = pthread_attr_setdetachstate(&attr, &detach);
11888	if( status < 0 ) status = errno;
11889#else
11890	status = pthread_attr_setdetachstate(&attr, detach);
11891#endif
11892	if( status ) return status;
11893	status = pthread_create( &t, &attr, task, NULL );
11894#if HAVE_PTHREADS < 7
11895	if( status < 0 ) status = errno;
11896#endif
11897	if( status ) return status;
11898#else
11899	/* Draft 4 pthreads */
11900	status = pthread_create( &t, pthread_attr_default, task, NULL );
11901	if( status ) return errno;
11902
11903	/* give thread a chance to complete */
11904	/* it should remain joinable and hence detachable */
11905	sleep( 1 );
11906
11907	status = pthread_detach( &t );
11908	if( status ) return errno;
11909#endif
11910
11911#ifdef HAVE_LINUX_THREADS
11912	pthread_kill_other_threads_np();
11913#endif
11914
11915	return 0;
11916
11917}
11918
11919_ACEOF
11920if ac_fn_c_try_run "$LINENO"
11921then :
11922  ol_cv_pthread_lpthread_lmach_lexc=yes
11923else $as_nop
11924  ol_cv_pthread_lpthread_lmach_lexc=no
11925fi
11926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11927  conftest.$ac_objext conftest.beam conftest.$ac_ext
11928fi
11929
11930
11931		# restore the LIBS
11932		LIBS="$ol_LIBS"
11933
11934fi
11935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
11936printf "%s\n" "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
11937
11938	if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
11939		ol_link_pthreads="-lpthread -lmach -lexc"
11940		ol_link_threads=posix
11941	fi
11942fi
11943
11944
11945		# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
11946if test "$ol_link_threads" = no ; then
11947	# try -lpthread -Wl,-woff,85
11948	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
11949printf %s "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
11950if test ${ol_cv_pthread_lib_lpthread_woff+y}
11951then :
11952  printf %s "(cached) " >&6
11953else $as_nop
11954
11955		# save the flags
11956		ol_LIBS="$LIBS"
11957		LIBS="-lpthread -Wl,-woff,85 $LIBS"
11958
11959		if test "$cross_compiling" = yes
11960then :
11961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962/* end confdefs.h.  */
11963
11964/* pthread test headers */
11965#include <pthread.h>
11966#if HAVE_PTHREADS < 7
11967#include <errno.h>
11968#endif
11969#ifndef NULL
11970#define NULL (void*)0
11971#endif
11972
11973static void *task(p)
11974	void *p;
11975{
11976	return (void *) (p == NULL);
11977}
11978
11979int
11980main (void)
11981{
11982
11983	/* pthread test function */
11984#ifndef PTHREAD_CREATE_DETACHED
11985#define	PTHREAD_CREATE_DETACHED	1
11986#endif
11987	pthread_t t;
11988	int status;
11989	int detach = PTHREAD_CREATE_DETACHED;
11990
11991#if HAVE_PTHREADS > 4
11992	/* Final pthreads */
11993	pthread_attr_t attr;
11994
11995	status = pthread_attr_init(&attr);
11996	if( status ) return status;
11997
11998#if HAVE_PTHREADS < 7
11999	status = pthread_attr_setdetachstate(&attr, &detach);
12000	if( status < 0 ) status = errno;
12001#else
12002	status = pthread_attr_setdetachstate(&attr, detach);
12003#endif
12004	if( status ) return status;
12005	status = pthread_create( &t, &attr, task, NULL );
12006#if HAVE_PTHREADS < 7
12007	if( status < 0 ) status = errno;
12008#endif
12009	if( status ) return status;
12010#else
12011	/* Draft 4 pthreads */
12012	status = pthread_create( &t, pthread_attr_default, task, NULL );
12013	if( status ) return errno;
12014
12015	/* give thread a chance to complete */
12016	/* it should remain joinable and hence detachable */
12017	sleep( 1 );
12018
12019	status = pthread_detach( &t );
12020	if( status ) return errno;
12021#endif
12022
12023#ifdef HAVE_LINUX_THREADS
12024	pthread_kill_other_threads_np();
12025#endif
12026
12027	return 0;
12028
12029  ;
12030  return 0;
12031}
12032_ACEOF
12033if ac_fn_c_try_link "$LINENO"
12034then :
12035  ol_cv_pthread_lib_lpthread_woff=yes
12036else $as_nop
12037  ol_cv_pthread_lib_lpthread_woff=no
12038fi
12039rm -f core conftest.err conftest.$ac_objext conftest.beam \
12040    conftest$ac_exeext conftest.$ac_ext
12041else $as_nop
12042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043/* end confdefs.h.  */
12044
12045
12046/* pthread test headers */
12047#include <pthread.h>
12048#if HAVE_PTHREADS < 7
12049#include <errno.h>
12050#endif
12051#ifndef NULL
12052#define NULL (void*)0
12053#endif
12054
12055static void *task(p)
12056	void *p;
12057{
12058	return (void *) (p == NULL);
12059}
12060
12061
12062int main(argc, argv)
12063	int argc;
12064	char **argv;
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
12115_ACEOF
12116if ac_fn_c_try_run "$LINENO"
12117then :
12118  ol_cv_pthread_lib_lpthread_woff=yes
12119else $as_nop
12120  ol_cv_pthread_lib_lpthread_woff=no
12121fi
12122rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12123  conftest.$ac_objext conftest.beam conftest.$ac_ext
12124fi
12125
12126
12127		# restore the LIBS
12128		LIBS="$ol_LIBS"
12129
12130fi
12131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
12132printf "%s\n" "$ol_cv_pthread_lib_lpthread_woff" >&6; }
12133
12134	if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
12135		ol_link_pthreads="-lpthread -Wl,-woff,85"
12136		ol_link_threads=posix
12137	fi
12138fi
12139
12140
12141		# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
12142if test "$ol_link_threads" = no ; then
12143	# try -lpthread
12144	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
12145printf %s "checking for pthread link with -lpthread... " >&6; }
12146if test ${ol_cv_pthread_lpthread+y}
12147then :
12148  printf %s "(cached) " >&6
12149else $as_nop
12150
12151		# save the flags
12152		ol_LIBS="$LIBS"
12153		LIBS="-lpthread $LIBS"
12154
12155		if test "$cross_compiling" = yes
12156then :
12157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158/* end confdefs.h.  */
12159
12160/* pthread test headers */
12161#include <pthread.h>
12162#if HAVE_PTHREADS < 7
12163#include <errno.h>
12164#endif
12165#ifndef NULL
12166#define NULL (void*)0
12167#endif
12168
12169static void *task(p)
12170	void *p;
12171{
12172	return (void *) (p == NULL);
12173}
12174
12175int
12176main (void)
12177{
12178
12179	/* pthread test function */
12180#ifndef PTHREAD_CREATE_DETACHED
12181#define	PTHREAD_CREATE_DETACHED	1
12182#endif
12183	pthread_t t;
12184	int status;
12185	int detach = PTHREAD_CREATE_DETACHED;
12186
12187#if HAVE_PTHREADS > 4
12188	/* Final pthreads */
12189	pthread_attr_t attr;
12190
12191	status = pthread_attr_init(&attr);
12192	if( status ) return status;
12193
12194#if HAVE_PTHREADS < 7
12195	status = pthread_attr_setdetachstate(&attr, &detach);
12196	if( status < 0 ) status = errno;
12197#else
12198	status = pthread_attr_setdetachstate(&attr, detach);
12199#endif
12200	if( status ) return status;
12201	status = pthread_create( &t, &attr, task, NULL );
12202#if HAVE_PTHREADS < 7
12203	if( status < 0 ) status = errno;
12204#endif
12205	if( status ) return status;
12206#else
12207	/* Draft 4 pthreads */
12208	status = pthread_create( &t, pthread_attr_default, task, NULL );
12209	if( status ) return errno;
12210
12211	/* give thread a chance to complete */
12212	/* it should remain joinable and hence detachable */
12213	sleep( 1 );
12214
12215	status = pthread_detach( &t );
12216	if( status ) return errno;
12217#endif
12218
12219#ifdef HAVE_LINUX_THREADS
12220	pthread_kill_other_threads_np();
12221#endif
12222
12223	return 0;
12224
12225  ;
12226  return 0;
12227}
12228_ACEOF
12229if ac_fn_c_try_link "$LINENO"
12230then :
12231  ol_cv_pthread_lpthread=yes
12232else $as_nop
12233  ol_cv_pthread_lpthread=no
12234fi
12235rm -f core conftest.err conftest.$ac_objext conftest.beam \
12236    conftest$ac_exeext conftest.$ac_ext
12237else $as_nop
12238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239/* end confdefs.h.  */
12240
12241
12242/* pthread test headers */
12243#include <pthread.h>
12244#if HAVE_PTHREADS < 7
12245#include <errno.h>
12246#endif
12247#ifndef NULL
12248#define NULL (void*)0
12249#endif
12250
12251static void *task(p)
12252	void *p;
12253{
12254	return (void *) (p == NULL);
12255}
12256
12257
12258int main(argc, argv)
12259	int argc;
12260	char **argv;
12261{
12262
12263	/* pthread test function */
12264#ifndef PTHREAD_CREATE_DETACHED
12265#define	PTHREAD_CREATE_DETACHED	1
12266#endif
12267	pthread_t t;
12268	int status;
12269	int detach = PTHREAD_CREATE_DETACHED;
12270
12271#if HAVE_PTHREADS > 4
12272	/* Final pthreads */
12273	pthread_attr_t attr;
12274
12275	status = pthread_attr_init(&attr);
12276	if( status ) return status;
12277
12278#if HAVE_PTHREADS < 7
12279	status = pthread_attr_setdetachstate(&attr, &detach);
12280	if( status < 0 ) status = errno;
12281#else
12282	status = pthread_attr_setdetachstate(&attr, detach);
12283#endif
12284	if( status ) return status;
12285	status = pthread_create( &t, &attr, task, NULL );
12286#if HAVE_PTHREADS < 7
12287	if( status < 0 ) status = errno;
12288#endif
12289	if( status ) return status;
12290#else
12291	/* Draft 4 pthreads */
12292	status = pthread_create( &t, pthread_attr_default, task, NULL );
12293	if( status ) return errno;
12294
12295	/* give thread a chance to complete */
12296	/* it should remain joinable and hence detachable */
12297	sleep( 1 );
12298
12299	status = pthread_detach( &t );
12300	if( status ) return errno;
12301#endif
12302
12303#ifdef HAVE_LINUX_THREADS
12304	pthread_kill_other_threads_np();
12305#endif
12306
12307	return 0;
12308
12309}
12310
12311_ACEOF
12312if ac_fn_c_try_run "$LINENO"
12313then :
12314  ol_cv_pthread_lpthread=yes
12315else $as_nop
12316  ol_cv_pthread_lpthread=no
12317fi
12318rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12319  conftest.$ac_objext conftest.beam conftest.$ac_ext
12320fi
12321
12322
12323		# restore the LIBS
12324		LIBS="$ol_LIBS"
12325
12326fi
12327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
12328printf "%s\n" "$ol_cv_pthread_lpthread" >&6; }
12329
12330	if test $ol_cv_pthread_lpthread = yes ; then
12331		ol_link_pthreads="-lpthread"
12332		ol_link_threads=posix
12333	fi
12334fi
12335
12336		# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
12337if test "$ol_link_threads" = no ; then
12338	# try -lc_r
12339	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
12340printf %s "checking for pthread link with -lc_r... " >&6; }
12341if test ${ol_cv_pthread_lc_r+y}
12342then :
12343  printf %s "(cached) " >&6
12344else $as_nop
12345
12346		# save the flags
12347		ol_LIBS="$LIBS"
12348		LIBS="-lc_r $LIBS"
12349
12350		if test "$cross_compiling" = yes
12351then :
12352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12353/* end confdefs.h.  */
12354
12355/* pthread test headers */
12356#include <pthread.h>
12357#if HAVE_PTHREADS < 7
12358#include <errno.h>
12359#endif
12360#ifndef NULL
12361#define NULL (void*)0
12362#endif
12363
12364static void *task(p)
12365	void *p;
12366{
12367	return (void *) (p == NULL);
12368}
12369
12370int
12371main (void)
12372{
12373
12374	/* pthread test function */
12375#ifndef PTHREAD_CREATE_DETACHED
12376#define	PTHREAD_CREATE_DETACHED	1
12377#endif
12378	pthread_t t;
12379	int status;
12380	int detach = PTHREAD_CREATE_DETACHED;
12381
12382#if HAVE_PTHREADS > 4
12383	/* Final pthreads */
12384	pthread_attr_t attr;
12385
12386	status = pthread_attr_init(&attr);
12387	if( status ) return status;
12388
12389#if HAVE_PTHREADS < 7
12390	status = pthread_attr_setdetachstate(&attr, &detach);
12391	if( status < 0 ) status = errno;
12392#else
12393	status = pthread_attr_setdetachstate(&attr, detach);
12394#endif
12395	if( status ) return status;
12396	status = pthread_create( &t, &attr, task, NULL );
12397#if HAVE_PTHREADS < 7
12398	if( status < 0 ) status = errno;
12399#endif
12400	if( status ) return status;
12401#else
12402	/* Draft 4 pthreads */
12403	status = pthread_create( &t, pthread_attr_default, task, NULL );
12404	if( status ) return errno;
12405
12406	/* give thread a chance to complete */
12407	/* it should remain joinable and hence detachable */
12408	sleep( 1 );
12409
12410	status = pthread_detach( &t );
12411	if( status ) return errno;
12412#endif
12413
12414#ifdef HAVE_LINUX_THREADS
12415	pthread_kill_other_threads_np();
12416#endif
12417
12418	return 0;
12419
12420  ;
12421  return 0;
12422}
12423_ACEOF
12424if ac_fn_c_try_link "$LINENO"
12425then :
12426  ol_cv_pthread_lc_r=yes
12427else $as_nop
12428  ol_cv_pthread_lc_r=no
12429fi
12430rm -f core conftest.err conftest.$ac_objext conftest.beam \
12431    conftest$ac_exeext conftest.$ac_ext
12432else $as_nop
12433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434/* end confdefs.h.  */
12435
12436
12437/* pthread test headers */
12438#include <pthread.h>
12439#if HAVE_PTHREADS < 7
12440#include <errno.h>
12441#endif
12442#ifndef NULL
12443#define NULL (void*)0
12444#endif
12445
12446static void *task(p)
12447	void *p;
12448{
12449	return (void *) (p == NULL);
12450}
12451
12452
12453int main(argc, argv)
12454	int argc;
12455	char **argv;
12456{
12457
12458	/* pthread test function */
12459#ifndef PTHREAD_CREATE_DETACHED
12460#define	PTHREAD_CREATE_DETACHED	1
12461#endif
12462	pthread_t t;
12463	int status;
12464	int detach = PTHREAD_CREATE_DETACHED;
12465
12466#if HAVE_PTHREADS > 4
12467	/* Final pthreads */
12468	pthread_attr_t attr;
12469
12470	status = pthread_attr_init(&attr);
12471	if( status ) return status;
12472
12473#if HAVE_PTHREADS < 7
12474	status = pthread_attr_setdetachstate(&attr, &detach);
12475	if( status < 0 ) status = errno;
12476#else
12477	status = pthread_attr_setdetachstate(&attr, detach);
12478#endif
12479	if( status ) return status;
12480	status = pthread_create( &t, &attr, task, NULL );
12481#if HAVE_PTHREADS < 7
12482	if( status < 0 ) status = errno;
12483#endif
12484	if( status ) return status;
12485#else
12486	/* Draft 4 pthreads */
12487	status = pthread_create( &t, pthread_attr_default, task, NULL );
12488	if( status ) return errno;
12489
12490	/* give thread a chance to complete */
12491	/* it should remain joinable and hence detachable */
12492	sleep( 1 );
12493
12494	status = pthread_detach( &t );
12495	if( status ) return errno;
12496#endif
12497
12498#ifdef HAVE_LINUX_THREADS
12499	pthread_kill_other_threads_np();
12500#endif
12501
12502	return 0;
12503
12504}
12505
12506_ACEOF
12507if ac_fn_c_try_run "$LINENO"
12508then :
12509  ol_cv_pthread_lc_r=yes
12510else $as_nop
12511  ol_cv_pthread_lc_r=no
12512fi
12513rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12514  conftest.$ac_objext conftest.beam conftest.$ac_ext
12515fi
12516
12517
12518		# restore the LIBS
12519		LIBS="$ol_LIBS"
12520
12521fi
12522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
12523printf "%s\n" "$ol_cv_pthread_lc_r" >&6; }
12524
12525	if test $ol_cv_pthread_lc_r = yes ; then
12526		ol_link_pthreads="-lc_r"
12527		ol_link_threads=posix
12528	fi
12529fi
12530
12531
12532		# Pthread try link: -threads (ol_cv_pthread_threads)
12533if test "$ol_link_threads" = no ; then
12534	# try -threads
12535	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
12536printf %s "checking for pthread link with -threads... " >&6; }
12537if test ${ol_cv_pthread_threads+y}
12538then :
12539  printf %s "(cached) " >&6
12540else $as_nop
12541
12542		# save the flags
12543		ol_LIBS="$LIBS"
12544		LIBS="-threads $LIBS"
12545
12546		if test "$cross_compiling" = yes
12547then :
12548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549/* end confdefs.h.  */
12550
12551/* pthread test headers */
12552#include <pthread.h>
12553#if HAVE_PTHREADS < 7
12554#include <errno.h>
12555#endif
12556#ifndef NULL
12557#define NULL (void*)0
12558#endif
12559
12560static void *task(p)
12561	void *p;
12562{
12563	return (void *) (p == NULL);
12564}
12565
12566int
12567main (void)
12568{
12569
12570	/* pthread test function */
12571#ifndef PTHREAD_CREATE_DETACHED
12572#define	PTHREAD_CREATE_DETACHED	1
12573#endif
12574	pthread_t t;
12575	int status;
12576	int detach = PTHREAD_CREATE_DETACHED;
12577
12578#if HAVE_PTHREADS > 4
12579	/* Final pthreads */
12580	pthread_attr_t attr;
12581
12582	status = pthread_attr_init(&attr);
12583	if( status ) return status;
12584
12585#if HAVE_PTHREADS < 7
12586	status = pthread_attr_setdetachstate(&attr, &detach);
12587	if( status < 0 ) status = errno;
12588#else
12589	status = pthread_attr_setdetachstate(&attr, detach);
12590#endif
12591	if( status ) return status;
12592	status = pthread_create( &t, &attr, task, NULL );
12593#if HAVE_PTHREADS < 7
12594	if( status < 0 ) status = errno;
12595#endif
12596	if( status ) return status;
12597#else
12598	/* Draft 4 pthreads */
12599	status = pthread_create( &t, pthread_attr_default, task, NULL );
12600	if( status ) return errno;
12601
12602	/* give thread a chance to complete */
12603	/* it should remain joinable and hence detachable */
12604	sleep( 1 );
12605
12606	status = pthread_detach( &t );
12607	if( status ) return errno;
12608#endif
12609
12610#ifdef HAVE_LINUX_THREADS
12611	pthread_kill_other_threads_np();
12612#endif
12613
12614	return 0;
12615
12616  ;
12617  return 0;
12618}
12619_ACEOF
12620if ac_fn_c_try_link "$LINENO"
12621then :
12622  ol_cv_pthread_threads=yes
12623else $as_nop
12624  ol_cv_pthread_threads=no
12625fi
12626rm -f core conftest.err conftest.$ac_objext conftest.beam \
12627    conftest$ac_exeext conftest.$ac_ext
12628else $as_nop
12629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12630/* end confdefs.h.  */
12631
12632
12633/* pthread test headers */
12634#include <pthread.h>
12635#if HAVE_PTHREADS < 7
12636#include <errno.h>
12637#endif
12638#ifndef NULL
12639#define NULL (void*)0
12640#endif
12641
12642static void *task(p)
12643	void *p;
12644{
12645	return (void *) (p == NULL);
12646}
12647
12648
12649int main(argc, argv)
12650	int argc;
12651	char **argv;
12652{
12653
12654	/* pthread test function */
12655#ifndef PTHREAD_CREATE_DETACHED
12656#define	PTHREAD_CREATE_DETACHED	1
12657#endif
12658	pthread_t t;
12659	int status;
12660	int detach = PTHREAD_CREATE_DETACHED;
12661
12662#if HAVE_PTHREADS > 4
12663	/* Final pthreads */
12664	pthread_attr_t attr;
12665
12666	status = pthread_attr_init(&attr);
12667	if( status ) return status;
12668
12669#if HAVE_PTHREADS < 7
12670	status = pthread_attr_setdetachstate(&attr, &detach);
12671	if( status < 0 ) status = errno;
12672#else
12673	status = pthread_attr_setdetachstate(&attr, detach);
12674#endif
12675	if( status ) return status;
12676	status = pthread_create( &t, &attr, task, NULL );
12677#if HAVE_PTHREADS < 7
12678	if( status < 0 ) status = errno;
12679#endif
12680	if( status ) return status;
12681#else
12682	/* Draft 4 pthreads */
12683	status = pthread_create( &t, pthread_attr_default, task, NULL );
12684	if( status ) return errno;
12685
12686	/* give thread a chance to complete */
12687	/* it should remain joinable and hence detachable */
12688	sleep( 1 );
12689
12690	status = pthread_detach( &t );
12691	if( status ) return errno;
12692#endif
12693
12694#ifdef HAVE_LINUX_THREADS
12695	pthread_kill_other_threads_np();
12696#endif
12697
12698	return 0;
12699
12700}
12701
12702_ACEOF
12703if ac_fn_c_try_run "$LINENO"
12704then :
12705  ol_cv_pthread_threads=yes
12706else $as_nop
12707  ol_cv_pthread_threads=no
12708fi
12709rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12710  conftest.$ac_objext conftest.beam conftest.$ac_ext
12711fi
12712
12713
12714		# restore the LIBS
12715		LIBS="$ol_LIBS"
12716
12717fi
12718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
12719printf "%s\n" "$ol_cv_pthread_threads" >&6; }
12720
12721	if test $ol_cv_pthread_threads = yes ; then
12722		ol_link_pthreads="-threads"
12723		ol_link_threads=posix
12724	fi
12725fi
12726
12727
12728		# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
12729if test "$ol_link_threads" = no ; then
12730	# try -lpthreads -lmach -lexc -lc_r
12731	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
12732printf %s "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
12733if test ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+y}
12734then :
12735  printf %s "(cached) " >&6
12736else $as_nop
12737
12738		# save the flags
12739		ol_LIBS="$LIBS"
12740		LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
12741
12742		if test "$cross_compiling" = yes
12743then :
12744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12745/* end confdefs.h.  */
12746
12747/* pthread test headers */
12748#include <pthread.h>
12749#if HAVE_PTHREADS < 7
12750#include <errno.h>
12751#endif
12752#ifndef NULL
12753#define NULL (void*)0
12754#endif
12755
12756static void *task(p)
12757	void *p;
12758{
12759	return (void *) (p == NULL);
12760}
12761
12762int
12763main (void)
12764{
12765
12766	/* pthread test function */
12767#ifndef PTHREAD_CREATE_DETACHED
12768#define	PTHREAD_CREATE_DETACHED	1
12769#endif
12770	pthread_t t;
12771	int status;
12772	int detach = PTHREAD_CREATE_DETACHED;
12773
12774#if HAVE_PTHREADS > 4
12775	/* Final pthreads */
12776	pthread_attr_t attr;
12777
12778	status = pthread_attr_init(&attr);
12779	if( status ) return status;
12780
12781#if HAVE_PTHREADS < 7
12782	status = pthread_attr_setdetachstate(&attr, &detach);
12783	if( status < 0 ) status = errno;
12784#else
12785	status = pthread_attr_setdetachstate(&attr, detach);
12786#endif
12787	if( status ) return status;
12788	status = pthread_create( &t, &attr, task, NULL );
12789#if HAVE_PTHREADS < 7
12790	if( status < 0 ) status = errno;
12791#endif
12792	if( status ) return status;
12793#else
12794	/* Draft 4 pthreads */
12795	status = pthread_create( &t, pthread_attr_default, task, NULL );
12796	if( status ) return errno;
12797
12798	/* give thread a chance to complete */
12799	/* it should remain joinable and hence detachable */
12800	sleep( 1 );
12801
12802	status = pthread_detach( &t );
12803	if( status ) return errno;
12804#endif
12805
12806#ifdef HAVE_LINUX_THREADS
12807	pthread_kill_other_threads_np();
12808#endif
12809
12810	return 0;
12811
12812  ;
12813  return 0;
12814}
12815_ACEOF
12816if ac_fn_c_try_link "$LINENO"
12817then :
12818  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
12819else $as_nop
12820  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
12821fi
12822rm -f core conftest.err conftest.$ac_objext conftest.beam \
12823    conftest$ac_exeext conftest.$ac_ext
12824else $as_nop
12825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826/* end confdefs.h.  */
12827
12828
12829/* pthread test headers */
12830#include <pthread.h>
12831#if HAVE_PTHREADS < 7
12832#include <errno.h>
12833#endif
12834#ifndef NULL
12835#define NULL (void*)0
12836#endif
12837
12838static void *task(p)
12839	void *p;
12840{
12841	return (void *) (p == NULL);
12842}
12843
12844
12845int main(argc, argv)
12846	int argc;
12847	char **argv;
12848{
12849
12850	/* pthread test function */
12851#ifndef PTHREAD_CREATE_DETACHED
12852#define	PTHREAD_CREATE_DETACHED	1
12853#endif
12854	pthread_t t;
12855	int status;
12856	int detach = PTHREAD_CREATE_DETACHED;
12857
12858#if HAVE_PTHREADS > 4
12859	/* Final pthreads */
12860	pthread_attr_t attr;
12861
12862	status = pthread_attr_init(&attr);
12863	if( status ) return status;
12864
12865#if HAVE_PTHREADS < 7
12866	status = pthread_attr_setdetachstate(&attr, &detach);
12867	if( status < 0 ) status = errno;
12868#else
12869	status = pthread_attr_setdetachstate(&attr, detach);
12870#endif
12871	if( status ) return status;
12872	status = pthread_create( &t, &attr, task, NULL );
12873#if HAVE_PTHREADS < 7
12874	if( status < 0 ) status = errno;
12875#endif
12876	if( status ) return status;
12877#else
12878	/* Draft 4 pthreads */
12879	status = pthread_create( &t, pthread_attr_default, task, NULL );
12880	if( status ) return errno;
12881
12882	/* give thread a chance to complete */
12883	/* it should remain joinable and hence detachable */
12884	sleep( 1 );
12885
12886	status = pthread_detach( &t );
12887	if( status ) return errno;
12888#endif
12889
12890#ifdef HAVE_LINUX_THREADS
12891	pthread_kill_other_threads_np();
12892#endif
12893
12894	return 0;
12895
12896}
12897
12898_ACEOF
12899if ac_fn_c_try_run "$LINENO"
12900then :
12901  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
12902else $as_nop
12903  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
12904fi
12905rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12906  conftest.$ac_objext conftest.beam conftest.$ac_ext
12907fi
12908
12909
12910		# restore the LIBS
12911		LIBS="$ol_LIBS"
12912
12913fi
12914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
12915printf "%s\n" "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
12916
12917	if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
12918		ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
12919		ol_link_threads=posix
12920	fi
12921fi
12922
12923		# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
12924if test "$ol_link_threads" = no ; then
12925	# try -lpthreads -lmach -lexc
12926	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
12927printf %s "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
12928if test ${ol_cv_pthread_lpthreads_lmach_lexc+y}
12929then :
12930  printf %s "(cached) " >&6
12931else $as_nop
12932
12933		# save the flags
12934		ol_LIBS="$LIBS"
12935		LIBS="-lpthreads -lmach -lexc $LIBS"
12936
12937		if test "$cross_compiling" = yes
12938then :
12939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940/* end confdefs.h.  */
12941
12942/* pthread test headers */
12943#include <pthread.h>
12944#if HAVE_PTHREADS < 7
12945#include <errno.h>
12946#endif
12947#ifndef NULL
12948#define NULL (void*)0
12949#endif
12950
12951static void *task(p)
12952	void *p;
12953{
12954	return (void *) (p == NULL);
12955}
12956
12957int
12958main (void)
12959{
12960
12961	/* pthread test function */
12962#ifndef PTHREAD_CREATE_DETACHED
12963#define	PTHREAD_CREATE_DETACHED	1
12964#endif
12965	pthread_t t;
12966	int status;
12967	int detach = PTHREAD_CREATE_DETACHED;
12968
12969#if HAVE_PTHREADS > 4
12970	/* Final pthreads */
12971	pthread_attr_t attr;
12972
12973	status = pthread_attr_init(&attr);
12974	if( status ) return status;
12975
12976#if HAVE_PTHREADS < 7
12977	status = pthread_attr_setdetachstate(&attr, &detach);
12978	if( status < 0 ) status = errno;
12979#else
12980	status = pthread_attr_setdetachstate(&attr, detach);
12981#endif
12982	if( status ) return status;
12983	status = pthread_create( &t, &attr, task, NULL );
12984#if HAVE_PTHREADS < 7
12985	if( status < 0 ) status = errno;
12986#endif
12987	if( status ) return status;
12988#else
12989	/* Draft 4 pthreads */
12990	status = pthread_create( &t, pthread_attr_default, task, NULL );
12991	if( status ) return errno;
12992
12993	/* give thread a chance to complete */
12994	/* it should remain joinable and hence detachable */
12995	sleep( 1 );
12996
12997	status = pthread_detach( &t );
12998	if( status ) return errno;
12999#endif
13000
13001#ifdef HAVE_LINUX_THREADS
13002	pthread_kill_other_threads_np();
13003#endif
13004
13005	return 0;
13006
13007  ;
13008  return 0;
13009}
13010_ACEOF
13011if ac_fn_c_try_link "$LINENO"
13012then :
13013  ol_cv_pthread_lpthreads_lmach_lexc=yes
13014else $as_nop
13015  ol_cv_pthread_lpthreads_lmach_lexc=no
13016fi
13017rm -f core conftest.err conftest.$ac_objext conftest.beam \
13018    conftest$ac_exeext conftest.$ac_ext
13019else $as_nop
13020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021/* end confdefs.h.  */
13022
13023
13024/* pthread test headers */
13025#include <pthread.h>
13026#if HAVE_PTHREADS < 7
13027#include <errno.h>
13028#endif
13029#ifndef NULL
13030#define NULL (void*)0
13031#endif
13032
13033static void *task(p)
13034	void *p;
13035{
13036	return (void *) (p == NULL);
13037}
13038
13039
13040int main(argc, argv)
13041	int argc;
13042	char **argv;
13043{
13044
13045	/* pthread test function */
13046#ifndef PTHREAD_CREATE_DETACHED
13047#define	PTHREAD_CREATE_DETACHED	1
13048#endif
13049	pthread_t t;
13050	int status;
13051	int detach = PTHREAD_CREATE_DETACHED;
13052
13053#if HAVE_PTHREADS > 4
13054	/* Final pthreads */
13055	pthread_attr_t attr;
13056
13057	status = pthread_attr_init(&attr);
13058	if( status ) return status;
13059
13060#if HAVE_PTHREADS < 7
13061	status = pthread_attr_setdetachstate(&attr, &detach);
13062	if( status < 0 ) status = errno;
13063#else
13064	status = pthread_attr_setdetachstate(&attr, detach);
13065#endif
13066	if( status ) return status;
13067	status = pthread_create( &t, &attr, task, NULL );
13068#if HAVE_PTHREADS < 7
13069	if( status < 0 ) status = errno;
13070#endif
13071	if( status ) return status;
13072#else
13073	/* Draft 4 pthreads */
13074	status = pthread_create( &t, pthread_attr_default, task, NULL );
13075	if( status ) return errno;
13076
13077	/* give thread a chance to complete */
13078	/* it should remain joinable and hence detachable */
13079	sleep( 1 );
13080
13081	status = pthread_detach( &t );
13082	if( status ) return errno;
13083#endif
13084
13085#ifdef HAVE_LINUX_THREADS
13086	pthread_kill_other_threads_np();
13087#endif
13088
13089	return 0;
13090
13091}
13092
13093_ACEOF
13094if ac_fn_c_try_run "$LINENO"
13095then :
13096  ol_cv_pthread_lpthreads_lmach_lexc=yes
13097else $as_nop
13098  ol_cv_pthread_lpthreads_lmach_lexc=no
13099fi
13100rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13101  conftest.$ac_objext conftest.beam conftest.$ac_ext
13102fi
13103
13104
13105		# restore the LIBS
13106		LIBS="$ol_LIBS"
13107
13108fi
13109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
13110printf "%s\n" "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
13111
13112	if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
13113		ol_link_pthreads="-lpthreads -lmach -lexc"
13114		ol_link_threads=posix
13115	fi
13116fi
13117
13118		# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
13119if test "$ol_link_threads" = no ; then
13120	# try -lpthreads -lexc
13121	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
13122printf %s "checking for pthread link with -lpthreads -lexc... " >&6; }
13123if test ${ol_cv_pthread_lpthreads_lexc+y}
13124then :
13125  printf %s "(cached) " >&6
13126else $as_nop
13127
13128		# save the flags
13129		ol_LIBS="$LIBS"
13130		LIBS="-lpthreads -lexc $LIBS"
13131
13132		if test "$cross_compiling" = yes
13133then :
13134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135/* end confdefs.h.  */
13136
13137/* pthread test headers */
13138#include <pthread.h>
13139#if HAVE_PTHREADS < 7
13140#include <errno.h>
13141#endif
13142#ifndef NULL
13143#define NULL (void*)0
13144#endif
13145
13146static void *task(p)
13147	void *p;
13148{
13149	return (void *) (p == NULL);
13150}
13151
13152int
13153main (void)
13154{
13155
13156	/* pthread test function */
13157#ifndef PTHREAD_CREATE_DETACHED
13158#define	PTHREAD_CREATE_DETACHED	1
13159#endif
13160	pthread_t t;
13161	int status;
13162	int detach = PTHREAD_CREATE_DETACHED;
13163
13164#if HAVE_PTHREADS > 4
13165	/* Final pthreads */
13166	pthread_attr_t attr;
13167
13168	status = pthread_attr_init(&attr);
13169	if( status ) return status;
13170
13171#if HAVE_PTHREADS < 7
13172	status = pthread_attr_setdetachstate(&attr, &detach);
13173	if( status < 0 ) status = errno;
13174#else
13175	status = pthread_attr_setdetachstate(&attr, detach);
13176#endif
13177	if( status ) return status;
13178	status = pthread_create( &t, &attr, task, NULL );
13179#if HAVE_PTHREADS < 7
13180	if( status < 0 ) status = errno;
13181#endif
13182	if( status ) return status;
13183#else
13184	/* Draft 4 pthreads */
13185	status = pthread_create( &t, pthread_attr_default, task, NULL );
13186	if( status ) return errno;
13187
13188	/* give thread a chance to complete */
13189	/* it should remain joinable and hence detachable */
13190	sleep( 1 );
13191
13192	status = pthread_detach( &t );
13193	if( status ) return errno;
13194#endif
13195
13196#ifdef HAVE_LINUX_THREADS
13197	pthread_kill_other_threads_np();
13198#endif
13199
13200	return 0;
13201
13202  ;
13203  return 0;
13204}
13205_ACEOF
13206if ac_fn_c_try_link "$LINENO"
13207then :
13208  ol_cv_pthread_lpthreads_lexc=yes
13209else $as_nop
13210  ol_cv_pthread_lpthreads_lexc=no
13211fi
13212rm -f core conftest.err conftest.$ac_objext conftest.beam \
13213    conftest$ac_exeext conftest.$ac_ext
13214else $as_nop
13215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13216/* end confdefs.h.  */
13217
13218
13219/* pthread test headers */
13220#include <pthread.h>
13221#if HAVE_PTHREADS < 7
13222#include <errno.h>
13223#endif
13224#ifndef NULL
13225#define NULL (void*)0
13226#endif
13227
13228static void *task(p)
13229	void *p;
13230{
13231	return (void *) (p == NULL);
13232}
13233
13234
13235int main(argc, argv)
13236	int argc;
13237	char **argv;
13238{
13239
13240	/* pthread test function */
13241#ifndef PTHREAD_CREATE_DETACHED
13242#define	PTHREAD_CREATE_DETACHED	1
13243#endif
13244	pthread_t t;
13245	int status;
13246	int detach = PTHREAD_CREATE_DETACHED;
13247
13248#if HAVE_PTHREADS > 4
13249	/* Final pthreads */
13250	pthread_attr_t attr;
13251
13252	status = pthread_attr_init(&attr);
13253	if( status ) return status;
13254
13255#if HAVE_PTHREADS < 7
13256	status = pthread_attr_setdetachstate(&attr, &detach);
13257	if( status < 0 ) status = errno;
13258#else
13259	status = pthread_attr_setdetachstate(&attr, detach);
13260#endif
13261	if( status ) return status;
13262	status = pthread_create( &t, &attr, task, NULL );
13263#if HAVE_PTHREADS < 7
13264	if( status < 0 ) status = errno;
13265#endif
13266	if( status ) return status;
13267#else
13268	/* Draft 4 pthreads */
13269	status = pthread_create( &t, pthread_attr_default, task, NULL );
13270	if( status ) return errno;
13271
13272	/* give thread a chance to complete */
13273	/* it should remain joinable and hence detachable */
13274	sleep( 1 );
13275
13276	status = pthread_detach( &t );
13277	if( status ) return errno;
13278#endif
13279
13280#ifdef HAVE_LINUX_THREADS
13281	pthread_kill_other_threads_np();
13282#endif
13283
13284	return 0;
13285
13286}
13287
13288_ACEOF
13289if ac_fn_c_try_run "$LINENO"
13290then :
13291  ol_cv_pthread_lpthreads_lexc=yes
13292else $as_nop
13293  ol_cv_pthread_lpthreads_lexc=no
13294fi
13295rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13296  conftest.$ac_objext conftest.beam conftest.$ac_ext
13297fi
13298
13299
13300		# restore the LIBS
13301		LIBS="$ol_LIBS"
13302
13303fi
13304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
13305printf "%s\n" "$ol_cv_pthread_lpthreads_lexc" >&6; }
13306
13307	if test $ol_cv_pthread_lpthreads_lexc = yes ; then
13308		ol_link_pthreads="-lpthreads -lexc"
13309		ol_link_threads=posix
13310	fi
13311fi
13312
13313
13314		# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
13315if test "$ol_link_threads" = no ; then
13316	# try -lpthreads
13317	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
13318printf %s "checking for pthread link with -lpthreads... " >&6; }
13319if test ${ol_cv_pthread_lib_lpthreads+y}
13320then :
13321  printf %s "(cached) " >&6
13322else $as_nop
13323
13324		# save the flags
13325		ol_LIBS="$LIBS"
13326		LIBS="-lpthreads $LIBS"
13327
13328		if test "$cross_compiling" = yes
13329then :
13330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13331/* end confdefs.h.  */
13332
13333/* pthread test headers */
13334#include <pthread.h>
13335#if HAVE_PTHREADS < 7
13336#include <errno.h>
13337#endif
13338#ifndef NULL
13339#define NULL (void*)0
13340#endif
13341
13342static void *task(p)
13343	void *p;
13344{
13345	return (void *) (p == NULL);
13346}
13347
13348int
13349main (void)
13350{
13351
13352	/* pthread test function */
13353#ifndef PTHREAD_CREATE_DETACHED
13354#define	PTHREAD_CREATE_DETACHED	1
13355#endif
13356	pthread_t t;
13357	int status;
13358	int detach = PTHREAD_CREATE_DETACHED;
13359
13360#if HAVE_PTHREADS > 4
13361	/* Final pthreads */
13362	pthread_attr_t attr;
13363
13364	status = pthread_attr_init(&attr);
13365	if( status ) return status;
13366
13367#if HAVE_PTHREADS < 7
13368	status = pthread_attr_setdetachstate(&attr, &detach);
13369	if( status < 0 ) status = errno;
13370#else
13371	status = pthread_attr_setdetachstate(&attr, detach);
13372#endif
13373	if( status ) return status;
13374	status = pthread_create( &t, &attr, task, NULL );
13375#if HAVE_PTHREADS < 7
13376	if( status < 0 ) status = errno;
13377#endif
13378	if( status ) return status;
13379#else
13380	/* Draft 4 pthreads */
13381	status = pthread_create( &t, pthread_attr_default, task, NULL );
13382	if( status ) return errno;
13383
13384	/* give thread a chance to complete */
13385	/* it should remain joinable and hence detachable */
13386	sleep( 1 );
13387
13388	status = pthread_detach( &t );
13389	if( status ) return errno;
13390#endif
13391
13392#ifdef HAVE_LINUX_THREADS
13393	pthread_kill_other_threads_np();
13394#endif
13395
13396	return 0;
13397
13398  ;
13399  return 0;
13400}
13401_ACEOF
13402if ac_fn_c_try_link "$LINENO"
13403then :
13404  ol_cv_pthread_lib_lpthreads=yes
13405else $as_nop
13406  ol_cv_pthread_lib_lpthreads=no
13407fi
13408rm -f core conftest.err conftest.$ac_objext conftest.beam \
13409    conftest$ac_exeext conftest.$ac_ext
13410else $as_nop
13411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13412/* end confdefs.h.  */
13413
13414
13415/* pthread test headers */
13416#include <pthread.h>
13417#if HAVE_PTHREADS < 7
13418#include <errno.h>
13419#endif
13420#ifndef NULL
13421#define NULL (void*)0
13422#endif
13423
13424static void *task(p)
13425	void *p;
13426{
13427	return (void *) (p == NULL);
13428}
13429
13430
13431int main(argc, argv)
13432	int argc;
13433	char **argv;
13434{
13435
13436	/* pthread test function */
13437#ifndef PTHREAD_CREATE_DETACHED
13438#define	PTHREAD_CREATE_DETACHED	1
13439#endif
13440	pthread_t t;
13441	int status;
13442	int detach = PTHREAD_CREATE_DETACHED;
13443
13444#if HAVE_PTHREADS > 4
13445	/* Final pthreads */
13446	pthread_attr_t attr;
13447
13448	status = pthread_attr_init(&attr);
13449	if( status ) return status;
13450
13451#if HAVE_PTHREADS < 7
13452	status = pthread_attr_setdetachstate(&attr, &detach);
13453	if( status < 0 ) status = errno;
13454#else
13455	status = pthread_attr_setdetachstate(&attr, detach);
13456#endif
13457	if( status ) return status;
13458	status = pthread_create( &t, &attr, task, NULL );
13459#if HAVE_PTHREADS < 7
13460	if( status < 0 ) status = errno;
13461#endif
13462	if( status ) return status;
13463#else
13464	/* Draft 4 pthreads */
13465	status = pthread_create( &t, pthread_attr_default, task, NULL );
13466	if( status ) return errno;
13467
13468	/* give thread a chance to complete */
13469	/* it should remain joinable and hence detachable */
13470	sleep( 1 );
13471
13472	status = pthread_detach( &t );
13473	if( status ) return errno;
13474#endif
13475
13476#ifdef HAVE_LINUX_THREADS
13477	pthread_kill_other_threads_np();
13478#endif
13479
13480	return 0;
13481
13482}
13483
13484_ACEOF
13485if ac_fn_c_try_run "$LINENO"
13486then :
13487  ol_cv_pthread_lib_lpthreads=yes
13488else $as_nop
13489  ol_cv_pthread_lib_lpthreads=no
13490fi
13491rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13492  conftest.$ac_objext conftest.beam conftest.$ac_ext
13493fi
13494
13495
13496		# restore the LIBS
13497		LIBS="$ol_LIBS"
13498
13499fi
13500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
13501printf "%s\n" "$ol_cv_pthread_lib_lpthreads" >&6; }
13502
13503	if test $ol_cv_pthread_lib_lpthreads = yes ; then
13504		ol_link_pthreads="-lpthreads"
13505		ol_link_threads=posix
13506	fi
13507fi
13508
13509
13510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
13511printf "%s\n" "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}
13512
13513		if test $ol_link_threads != no ; then
13514			LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
13515
13516						save_CPPFLAGS="$CPPFLAGS"
13517			save_LIBS="$LIBS"
13518			LIBS="$LTHREAD_LIBS $LIBS"
13519
13520												ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
13521if test "x$ac_cv_func_sched_yield" = xyes
13522then :
13523  printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h
13524
13525fi
13526ac_fn_c_check_func "$LINENO" "pthread_yield" "ac_cv_func_pthread_yield"
13527if test "x$ac_cv_func_pthread_yield" = xyes
13528then :
13529  printf "%s\n" "#define HAVE_PTHREAD_YIELD 1" >>confdefs.h
13530
13531fi
13532ac_fn_c_check_func "$LINENO" "thr_yield" "ac_cv_func_thr_yield"
13533if test "x$ac_cv_func_thr_yield" = xyes
13534then :
13535  printf "%s\n" "#define HAVE_THR_YIELD 1" >>confdefs.h
13536
13537fi
13538
13539
13540			if test $ac_cv_func_sched_yield = no &&
13541			   test $ac_cv_func_pthread_yield = no &&
13542			   test $ac_cv_func_thr_yield = no ; then
13543								{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
13544printf %s "checking for sched_yield in -lrt... " >&6; }
13545if test ${ac_cv_lib_rt_sched_yield+y}
13546then :
13547  printf %s "(cached) " >&6
13548else $as_nop
13549  ac_check_lib_save_LIBS=$LIBS
13550LIBS="-lrt  $LIBS"
13551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552/* end confdefs.h.  */
13553
13554/* Override any GCC internal prototype to avoid an error.
13555   Use char because int might match the return type of a GCC
13556   builtin and then its argument prototype would still apply.  */
13557char sched_yield ();
13558int
13559main (void)
13560{
13561return sched_yield ();
13562  ;
13563  return 0;
13564}
13565_ACEOF
13566if ac_fn_c_try_link "$LINENO"
13567then :
13568  ac_cv_lib_rt_sched_yield=yes
13569else $as_nop
13570  ac_cv_lib_rt_sched_yield=no
13571fi
13572rm -f core conftest.err conftest.$ac_objext conftest.beam \
13573    conftest$ac_exeext conftest.$ac_ext
13574LIBS=$ac_check_lib_save_LIBS
13575fi
13576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
13577printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; }
13578if test "x$ac_cv_lib_rt_sched_yield" = xyes
13579then :
13580  LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
13581
13582printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h
13583
13584					ac_cv_func_sched_yield=yes
13585else $as_nop
13586  ac_cv_func_sched_yield=no
13587fi
13588
13589			fi
13590			if test $ac_cv_func_sched_yield = no &&
13591			   test $ac_cv_func_pthread_yield = no &&
13592			   test "$ac_cv_func_thr_yield" = no ; then
13593				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
13594printf "%s\n" "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
13595			fi
13596
13597						ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
13598if test "x$ac_cv_func_pthread_kill" = xyes
13599then :
13600  printf "%s\n" "#define HAVE_PTHREAD_KILL 1" >>confdefs.h
13601
13602fi
13603
13604
13605									{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
13606printf %s "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
13607if test ${ol_cv_func_pthread_rwlock_destroy+y}
13608then :
13609  printf %s "(cached) " >&6
13610else $as_nop
13611
13612								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13613/* end confdefs.h.  */
13614
13615#include <pthread.h>
13616pthread_rwlock_t rwlock;
13617
13618int
13619main (void)
13620{
13621pthread_rwlock_destroy(&rwlock);
13622  ;
13623  return 0;
13624}
13625_ACEOF
13626if ac_fn_c_try_link "$LINENO"
13627then :
13628  ol_cv_func_pthread_rwlock_destroy=yes
13629else $as_nop
13630  ol_cv_func_pthread_rwlock_destroy=no
13631fi
13632rm -f core conftest.err conftest.$ac_objext conftest.beam \
13633    conftest$ac_exeext conftest.$ac_ext
13634
13635fi
13636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
13637printf "%s\n" "$ol_cv_func_pthread_rwlock_destroy" >&6; }
13638			if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
13639
13640printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
13641
13642			fi
13643
13644									{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
13645printf %s "checking for pthread_detach with <pthread.h>... " >&6; }
13646if test ${ol_cv_func_pthread_detach+y}
13647then :
13648  printf %s "(cached) " >&6
13649else $as_nop
13650
13651								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13652/* end confdefs.h.  */
13653
13654#include <pthread.h>
13655#ifndef NULL
13656#define NULL (void*)0
13657#endif
13658
13659int
13660main (void)
13661{
13662pthread_detach(NULL);
13663  ;
13664  return 0;
13665}
13666_ACEOF
13667if ac_fn_c_try_link "$LINENO"
13668then :
13669  ol_cv_func_pthread_detach=yes
13670else $as_nop
13671  ol_cv_func_pthread_detach=no
13672fi
13673rm -f core conftest.err conftest.$ac_objext conftest.beam \
13674    conftest$ac_exeext conftest.$ac_ext
13675
13676fi
13677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
13678printf "%s\n" "$ol_cv_func_pthread_detach" >&6; }
13679
13680			if test $ol_cv_func_pthread_detach = no ; then
13681				as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
13682			fi
13683
13684
13685printf "%s\n" "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
13686
13687
13688						ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
13689if test "x$ac_cv_func_pthread_setconcurrency" = xyes
13690then :
13691  printf "%s\n" "#define HAVE_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
13692
13693fi
13694ac_fn_c_check_func "$LINENO" "pthread_getconcurrency" "ac_cv_func_pthread_getconcurrency"
13695if test "x$ac_cv_func_pthread_getconcurrency" = xyes
13696then :
13697  printf "%s\n" "#define HAVE_PTHREAD_GETCONCURRENCY 1" >>confdefs.h
13698
13699fi
13700ac_fn_c_check_func "$LINENO" "thr_setconcurrency" "ac_cv_func_thr_setconcurrency"
13701if test "x$ac_cv_func_thr_setconcurrency" = xyes
13702then :
13703  printf "%s\n" "#define HAVE_THR_SETCONCURRENCY 1" >>confdefs.h
13704
13705fi
13706ac_fn_c_check_func "$LINENO" "thr_getconcurrency" "ac_cv_func_thr_getconcurrency"
13707if test "x$ac_cv_func_thr_getconcurrency" = xyes
13708then :
13709  printf "%s\n" "#define HAVE_THR_GETCONCURRENCY 1" >>confdefs.h
13710
13711fi
13712
13713
13714
13715	ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
13716if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes
13717then :
13718  printf "%s\n" "#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1" >>confdefs.h
13719
13720fi
13721
13722	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
13723printf %s "checking for LinuxThreads implementation... " >&6; }
13724if test ${ol_cv_sys_linux_threads+y}
13725then :
13726  printf %s "(cached) " >&6
13727else $as_nop
13728  ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
13729fi
13730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
13731printf "%s\n" "$ol_cv_sys_linux_threads" >&6; }
13732
13733
13734
13735
13736	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
13737printf %s "checking for LinuxThreads consistency... " >&6; }
13738if test ${ol_cv_linux_threads+y}
13739then :
13740  printf %s "(cached) " >&6
13741else $as_nop
13742
13743		if test $ol_cv_header_linux_threads = yes &&
13744		   test $ol_cv_sys_linux_threads = yes; then
13745			ol_cv_linux_threads=yes
13746		elif test $ol_cv_header_linux_threads = no &&
13747		     test $ol_cv_sys_linux_threads = no; then
13748			ol_cv_linux_threads=no
13749		else
13750			ol_cv_linux_threads=error
13751		fi
13752
13753fi
13754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
13755printf "%s\n" "$ol_cv_linux_threads" >&6; }
13756
13757
13758			if test $ol_cv_linux_threads = error; then
13759				as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
13760			fi
13761
13762			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
13763printf %s "checking if pthread_create() works... " >&6; }
13764if test ${ol_cv_pthread_create_works+y}
13765then :
13766  printf %s "(cached) " >&6
13767else $as_nop
13768
13769			if test "$cross_compiling" = yes
13770then :
13771  				ol_cv_pthread_create_works=yes
13772else $as_nop
13773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13774/* end confdefs.h.  */
13775
13776
13777/* pthread test headers */
13778#include <pthread.h>
13779#if HAVE_PTHREADS < 7
13780#include <errno.h>
13781#endif
13782#ifndef NULL
13783#define NULL (void*)0
13784#endif
13785
13786static void *task(p)
13787	void *p;
13788{
13789	return (void *) (p == NULL);
13790}
13791
13792
13793int main(argc, argv)
13794	int argc;
13795	char **argv;
13796{
13797
13798	/* pthread test function */
13799#ifndef PTHREAD_CREATE_DETACHED
13800#define	PTHREAD_CREATE_DETACHED	1
13801#endif
13802	pthread_t t;
13803	int status;
13804	int detach = PTHREAD_CREATE_DETACHED;
13805
13806#if HAVE_PTHREADS > 4
13807	/* Final pthreads */
13808	pthread_attr_t attr;
13809
13810	status = pthread_attr_init(&attr);
13811	if( status ) return status;
13812
13813#if HAVE_PTHREADS < 7
13814	status = pthread_attr_setdetachstate(&attr, &detach);
13815	if( status < 0 ) status = errno;
13816#else
13817	status = pthread_attr_setdetachstate(&attr, detach);
13818#endif
13819	if( status ) return status;
13820	status = pthread_create( &t, &attr, task, NULL );
13821#if HAVE_PTHREADS < 7
13822	if( status < 0 ) status = errno;
13823#endif
13824	if( status ) return status;
13825#else
13826	/* Draft 4 pthreads */
13827	status = pthread_create( &t, pthread_attr_default, task, NULL );
13828	if( status ) return errno;
13829
13830	/* give thread a chance to complete */
13831	/* it should remain joinable and hence detachable */
13832	sleep( 1 );
13833
13834	status = pthread_detach( &t );
13835	if( status ) return errno;
13836#endif
13837
13838#ifdef HAVE_LINUX_THREADS
13839	pthread_kill_other_threads_np();
13840#endif
13841
13842	return 0;
13843
13844}
13845
13846_ACEOF
13847if ac_fn_c_try_run "$LINENO"
13848then :
13849  ol_cv_pthread_create_works=yes
13850else $as_nop
13851  ol_cv_pthread_create_works=no
13852fi
13853rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13854  conftest.$ac_objext conftest.beam conftest.$ac_ext
13855fi
13856
13857fi
13858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
13859printf "%s\n" "$ol_cv_pthread_create_works" >&6; }
13860
13861			if test $ol_cv_pthread_create_works = no ; then
13862				as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
13863			fi
13864
13865			ol_replace_broken_yield=no
13866
13867			if test $ol_replace_broken_yield = yes ; then
13868
13869printf "%s\n" "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
13870
13871			fi
13872
13873						if test x$ol_with_yielding_select = xauto ; then
13874				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
13875printf %s "checking if select yields when using pthreads... " >&6; }
13876if test ${ol_cv_pthread_select_yields+y}
13877then :
13878  printf %s "(cached) " >&6
13879else $as_nop
13880
13881				if test "$cross_compiling" = yes
13882then :
13883  ol_cv_pthread_select_yields=cross
13884else $as_nop
13885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13886/* end confdefs.h.  */
13887
13888#include <sys/types.h>
13889#include <sys/time.h>
13890#include <unistd.h>
13891#include <pthread.h>
13892#ifndef NULL
13893#define NULL (void*) 0
13894#endif
13895
13896static int fildes[2];
13897
13898static void *task(p)
13899	void *p;
13900{
13901	int i;
13902	struct timeval tv;
13903
13904	fd_set rfds;
13905
13906	tv.tv_sec=10;
13907	tv.tv_usec=0;
13908
13909	FD_ZERO(&rfds);
13910	FD_SET(fildes[0], &rfds);
13911
13912	/* we're not interested in any fds */
13913	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
13914
13915	if(i < 0) {
13916		perror("select");
13917		exit(10);
13918	}
13919
13920	exit(0); /* if we exit here, the select blocked the whole process */
13921}
13922
13923int main(argc, argv)
13924	int argc;
13925	char **argv;
13926{
13927	pthread_t t;
13928
13929	/* create a pipe to select */
13930	if(pipe(&fildes[0])) {
13931		perror("select");
13932		exit(1);
13933	}
13934
13935#ifdef HAVE_PTHREAD_SETCONCURRENCY
13936	(void) pthread_setconcurrency(2);
13937#else
13938#ifdef HAVE_THR_SETCONCURRENCY
13939	/* Set Solaris LWP concurrency to 2 */
13940	thr_setconcurrency(2);
13941#endif
13942#endif
13943
13944#if HAVE_PTHREADS < 6
13945	pthread_create(&t, pthread_attr_default, task, NULL);
13946#else
13947	pthread_create(&t, NULL, task, NULL);
13948#endif
13949
13950	/* make sure task runs first */
13951#ifdef HAVE_THR_YIELD
13952	thr_yield();
13953#elif defined( HAVE_SCHED_YIELD )
13954	sched_yield();
13955#elif defined( HAVE_PTHREAD_YIELD )
13956	pthread_yield();
13957#endif
13958
13959	exit(2);
13960}
13961_ACEOF
13962if ac_fn_c_try_run "$LINENO"
13963then :
13964  ol_cv_pthread_select_yields=no
13965else $as_nop
13966  ol_cv_pthread_select_yields=yes
13967fi
13968rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13969  conftest.$ac_objext conftest.beam conftest.$ac_ext
13970fi
13971
13972fi
13973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
13974printf "%s\n" "$ol_cv_pthread_select_yields" >&6; }
13975
13976				if test $ol_cv_pthread_select_yields = cross ; then
13977					as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
13978				fi
13979
13980				if test $ol_cv_pthread_select_yields = yes ; then
13981					ol_with_yielding_select=yes
13982				fi
13983			fi
13984
13985						CPPFLAGS="$save_CPPFLAGS"
13986			LIBS="$save_LIBS"
13987		else
13988			as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
13989		fi
13990	fi
13991
13992	if test $ol_with_threads = posix ; then
13993		as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
13994	fi
13995	;;
13996esac
13997
13998case $ol_with_threads in auto | yes | mach)
13999
14000		ac_fn_c_check_header_compile "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
14001if test "x$ac_cv_header_mach_cthreads_h" = xyes
14002then :
14003  printf "%s\n" "#define HAVE_MACH_CTHREADS_H 1" >>confdefs.h
14004
14005fi
14006ac_fn_c_check_header_compile "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default"
14007if test "x$ac_cv_header_cthreads_h" = xyes
14008then :
14009  printf "%s\n" "#define HAVE_CTHREADS_H 1" >>confdefs.h
14010
14011fi
14012
14013	if test $ac_cv_header_mach_cthreads_h = yes ; then
14014		ol_with_threads=found
14015
14016				ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
14017if test "x$ac_cv_func_cthread_fork" = xyes
14018then :
14019  ol_link_threads=yes
14020fi
14021
14022
14023		if test $ol_link_threads = no ; then
14024									{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
14025printf %s "checking for cthread_fork with -all_load... " >&6; }
14026if test ${ol_cv_cthread_all_load+y}
14027then :
14028  printf %s "(cached) " >&6
14029else $as_nop
14030
14031								save_LIBS="$LIBS"
14032				LIBS="-all_load $LIBS"
14033				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034/* end confdefs.h.  */
14035#include <mach/cthreads.h>
14036int
14037main (void)
14038{
14039
14040					cthread_fork((void *)0, (void *)0);
14041
14042  ;
14043  return 0;
14044}
14045_ACEOF
14046if ac_fn_c_try_link "$LINENO"
14047then :
14048  ol_cv_cthread_all_load=yes
14049else $as_nop
14050  ol_cv_cthread_all_load=no
14051fi
14052rm -f core conftest.err conftest.$ac_objext conftest.beam \
14053    conftest$ac_exeext conftest.$ac_ext
14054								LIBS="$save_LIBS"
14055
14056fi
14057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
14058printf "%s\n" "$ol_cv_cthread_all_load" >&6; }
14059
14060			if test $ol_cv_cthread_all_load = yes ; then
14061				LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
14062				ol_link_threads=mach
14063				ol_with_threads=found
14064			fi
14065		fi
14066
14067	elif test $ac_cv_header_cthreads_h = yes ; then
14068
14069		ol_with_threads=found
14070
14071				save_LIBS="$LIBS"
14072		LIBS="$LIBS -lthreads"
14073		ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
14074if test "x$ac_cv_func_cthread_fork" = xyes
14075then :
14076  ol_link_threads=yes
14077fi
14078
14079		LIBS="$save_LIBS"
14080
14081		if test $ol_link_threads = yes ; then
14082			LTHREAD_LIBS="-lthreads"
14083			ol_link_threads=mach
14084			ol_with_threads=found
14085		else
14086			as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
14087		fi
14088
14089	elif test $ol_with_threads = mach ; then
14090		as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
14091	fi
14092
14093	if test $ol_link_threads = mach ; then
14094
14095printf "%s\n" "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
14096
14097	elif test $ol_with_threads = found ; then
14098		as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
14099	fi
14100	;;
14101esac
14102
14103case $ol_with_threads in auto | yes | pth)
14104
14105	ac_fn_c_check_header_compile "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
14106if test "x$ac_cv_header_pth_h" = xyes
14107then :
14108  printf "%s\n" "#define HAVE_PTH_H 1" >>confdefs.h
14109
14110fi
14111
14112
14113	if test $ac_cv_header_pth_h = yes ; then
14114		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
14115printf %s "checking for pth_version in -lpth... " >&6; }
14116if test ${ac_cv_lib_pth_pth_version+y}
14117then :
14118  printf %s "(cached) " >&6
14119else $as_nop
14120  ac_check_lib_save_LIBS=$LIBS
14121LIBS="-lpth  $LIBS"
14122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123/* end confdefs.h.  */
14124
14125/* Override any GCC internal prototype to avoid an error.
14126   Use char because int might match the return type of a GCC
14127   builtin and then its argument prototype would still apply.  */
14128char pth_version ();
14129int
14130main (void)
14131{
14132return pth_version ();
14133  ;
14134  return 0;
14135}
14136_ACEOF
14137if ac_fn_c_try_link "$LINENO"
14138then :
14139  ac_cv_lib_pth_pth_version=yes
14140else $as_nop
14141  ac_cv_lib_pth_pth_version=no
14142fi
14143rm -f core conftest.err conftest.$ac_objext conftest.beam \
14144    conftest$ac_exeext conftest.$ac_ext
14145LIBS=$ac_check_lib_save_LIBS
14146fi
14147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
14148printf "%s\n" "$ac_cv_lib_pth_pth_version" >&6; }
14149if test "x$ac_cv_lib_pth_pth_version" = xyes
14150then :
14151  have_pth=yes
14152else $as_nop
14153  have_pth=no
14154fi
14155
14156
14157		if test $have_pth = yes ; then
14158
14159printf "%s\n" "#define HAVE_GNU_PTH 1" >>confdefs.h
14160
14161			LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
14162			ol_link_threads=pth
14163			ol_with_threads=found
14164
14165			if test x$ol_with_yielding_select = xauto ; then
14166				ol_with_yielding_select=yes
14167			fi
14168		fi
14169	fi
14170	;;
14171esac
14172
14173case $ol_with_threads in auto | yes | lwp)
14174
14175		ac_fn_c_check_header_compile "$LINENO" "thread.h" "ac_cv_header_thread_h" "$ac_includes_default"
14176if test "x$ac_cv_header_thread_h" = xyes
14177then :
14178  printf "%s\n" "#define HAVE_THREAD_H 1" >>confdefs.h
14179
14180fi
14181ac_fn_c_check_header_compile "$LINENO" "synch.h" "ac_cv_header_synch_h" "$ac_includes_default"
14182if test "x$ac_cv_header_synch_h" = xyes
14183then :
14184  printf "%s\n" "#define HAVE_SYNCH_H 1" >>confdefs.h
14185
14186fi
14187
14188	if test $ac_cv_header_thread_h = yes &&
14189	   test $ac_cv_header_synch_h = yes ; then
14190		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
14191printf %s "checking for thr_create in -lthread... " >&6; }
14192if test ${ac_cv_lib_thread_thr_create+y}
14193then :
14194  printf %s "(cached) " >&6
14195else $as_nop
14196  ac_check_lib_save_LIBS=$LIBS
14197LIBS="-lthread  $LIBS"
14198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199/* end confdefs.h.  */
14200
14201/* Override any GCC internal prototype to avoid an error.
14202   Use char because int might match the return type of a GCC
14203   builtin and then its argument prototype would still apply.  */
14204char thr_create ();
14205int
14206main (void)
14207{
14208return thr_create ();
14209  ;
14210  return 0;
14211}
14212_ACEOF
14213if ac_fn_c_try_link "$LINENO"
14214then :
14215  ac_cv_lib_thread_thr_create=yes
14216else $as_nop
14217  ac_cv_lib_thread_thr_create=no
14218fi
14219rm -f core conftest.err conftest.$ac_objext conftest.beam \
14220    conftest$ac_exeext conftest.$ac_ext
14221LIBS=$ac_check_lib_save_LIBS
14222fi
14223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
14224printf "%s\n" "$ac_cv_lib_thread_thr_create" >&6; }
14225if test "x$ac_cv_lib_thread_thr_create" = xyes
14226then :
14227  have_thr=yes
14228else $as_nop
14229  have_thr=no
14230fi
14231
14232
14233		if test $have_thr = yes ; then
14234
14235printf "%s\n" "#define HAVE_THR 1" >>confdefs.h
14236
14237			LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
14238			ol_link_threads=thr
14239
14240			if test x$ol_with_yielding_select = xauto ; then
14241				ol_with_yielding_select=yes
14242			fi
14243
14244						ac_fn_c_check_func "$LINENO" "thr_setconcurrency" "ac_cv_func_thr_setconcurrency"
14245if test "x$ac_cv_func_thr_setconcurrency" = xyes
14246then :
14247  printf "%s\n" "#define HAVE_THR_SETCONCURRENCY 1" >>confdefs.h
14248
14249fi
14250ac_fn_c_check_func "$LINENO" "thr_getconcurrency" "ac_cv_func_thr_getconcurrency"
14251if test "x$ac_cv_func_thr_getconcurrency" = xyes
14252then :
14253  printf "%s\n" "#define HAVE_THR_GETCONCURRENCY 1" >>confdefs.h
14254
14255fi
14256
14257		fi
14258	fi
14259
14260		ac_fn_c_check_header_compile "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
14261if test "x$ac_cv_header_lwp_lwp_h" = xyes
14262then :
14263  printf "%s\n" "#define HAVE_LWP_LWP_H 1" >>confdefs.h
14264
14265fi
14266
14267	if test $ac_cv_header_lwp_lwp_h = yes ; then
14268		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
14269printf %s "checking for lwp_create in -llwp... " >&6; }
14270if test ${ac_cv_lib_lwp_lwp_create+y}
14271then :
14272  printf %s "(cached) " >&6
14273else $as_nop
14274  ac_check_lib_save_LIBS=$LIBS
14275LIBS="-llwp  $LIBS"
14276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14277/* end confdefs.h.  */
14278
14279/* Override any GCC internal prototype to avoid an error.
14280   Use char because int might match the return type of a GCC
14281   builtin and then its argument prototype would still apply.  */
14282char lwp_create ();
14283int
14284main (void)
14285{
14286return lwp_create ();
14287  ;
14288  return 0;
14289}
14290_ACEOF
14291if ac_fn_c_try_link "$LINENO"
14292then :
14293  ac_cv_lib_lwp_lwp_create=yes
14294else $as_nop
14295  ac_cv_lib_lwp_lwp_create=no
14296fi
14297rm -f core conftest.err conftest.$ac_objext conftest.beam \
14298    conftest$ac_exeext conftest.$ac_ext
14299LIBS=$ac_check_lib_save_LIBS
14300fi
14301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
14302printf "%s\n" "$ac_cv_lib_lwp_lwp_create" >&6; }
14303if test "x$ac_cv_lib_lwp_lwp_create" = xyes
14304then :
14305  have_lwp=yes
14306else $as_nop
14307  have_lwp=no
14308fi
14309
14310
14311		if test $have_lwp = yes ; then
14312
14313printf "%s\n" "#define HAVE_LWP 1" >>confdefs.h
14314
14315			LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
14316			ol_link_threads=lwp
14317
14318			if test x$ol_with_yielding_select = xauto ; then
14319				ol_with_yielding_select=no
14320			fi
14321		fi
14322	fi
14323	;;
14324esac
14325
14326if test $ol_with_yielding_select = yes ; then
14327
14328printf "%s\n" "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
14329
14330fi
14331
14332if test $ol_with_threads = manual ; then
14333		ol_link_threads=yes
14334
14335	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
14336printf "%s\n" "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
14337
14338	ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14339if test "x$ac_cv_header_pthread_h" = xyes
14340then :
14341  printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
14342
14343fi
14344ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
14345if test "x$ac_cv_header_sched_h" = xyes
14346then :
14347  printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
14348
14349fi
14350
14351	ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
14352if test "x$ac_cv_func_sched_yield" = xyes
14353then :
14354  printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h
14355
14356fi
14357ac_fn_c_check_func "$LINENO" "pthread_yield" "ac_cv_func_pthread_yield"
14358if test "x$ac_cv_func_pthread_yield" = xyes
14359then :
14360  printf "%s\n" "#define HAVE_PTHREAD_YIELD 1" >>confdefs.h
14361
14362fi
14363
14364
14365	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
14366printf %s "checking for LinuxThreads pthread.h... " >&6; }
14367if test ${ol_cv_header_linux_threads+y}
14368then :
14369  printf %s "(cached) " >&6
14370else $as_nop
14371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14372/* end confdefs.h.  */
14373#include <pthread.h>
14374_ACEOF
14375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14376  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1
14377then :
14378  ol_cv_header_linux_threads=yes
14379else $as_nop
14380  ol_cv_header_linux_threads=no
14381fi
14382rm -rf conftest*
14383
14384
14385fi
14386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
14387printf "%s\n" "$ol_cv_header_linux_threads" >&6; }
14388	if test $ol_cv_header_linux_threads = yes; then
14389
14390printf "%s\n" "#define HAVE_LINUX_THREADS 1" >>confdefs.h
14391
14392	fi
14393
14394
14395	ac_fn_c_check_header_compile "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
14396if test "x$ac_cv_header_mach_cthreads_h" = xyes
14397then :
14398  printf "%s\n" "#define HAVE_MACH_CTHREADS_H 1" >>confdefs.h
14399
14400fi
14401
14402	ac_fn_c_check_header_compile "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
14403if test "x$ac_cv_header_lwp_lwp_h" = xyes
14404then :
14405  printf "%s\n" "#define HAVE_LWP_LWP_H 1" >>confdefs.h
14406
14407fi
14408
14409	ac_fn_c_check_header_compile "$LINENO" "thread.h" "ac_cv_header_thread_h" "$ac_includes_default"
14410if test "x$ac_cv_header_thread_h" = xyes
14411then :
14412  printf "%s\n" "#define HAVE_THREAD_H 1" >>confdefs.h
14413
14414fi
14415ac_fn_c_check_header_compile "$LINENO" "synch.h" "ac_cv_header_synch_h" "$ac_includes_default"
14416if test "x$ac_cv_header_synch_h" = xyes
14417then :
14418  printf "%s\n" "#define HAVE_SYNCH_H 1" >>confdefs.h
14419
14420fi
14421
14422fi
14423
14424if test $ol_link_threads != no && test $ol_link_threads != nt ; then
14425
14426printf "%s\n" "#define REENTRANT 1" >>confdefs.h
14427
14428
14429printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
14430
14431
14432printf "%s\n" "#define THREAD_SAFE 1" >>confdefs.h
14433
14434
14435printf "%s\n" "#define _THREAD_SAFE 1" >>confdefs.h
14436
14437
14438printf "%s\n" "#define THREADSAFE 1" >>confdefs.h
14439
14440
14441printf "%s\n" "#define _THREADSAFE 1" >>confdefs.h
14442
14443
14444printf "%s\n" "#define _SGI_MP_SOURCE 1" >>confdefs.h
14445
14446
14447			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
14448printf %s "checking for thread specific errno... " >&6; }
14449if test ${ol_cv_errno_thread_specific+y}
14450then :
14451  printf %s "(cached) " >&6
14452else $as_nop
14453
14454		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14455/* end confdefs.h.  */
14456#include <errno.h>
14457int
14458main (void)
14459{
14460errno = 0;
14461  ;
14462  return 0;
14463}
14464_ACEOF
14465if ac_fn_c_try_link "$LINENO"
14466then :
14467  ol_cv_errno_thread_specific=yes
14468else $as_nop
14469  ol_cv_errno_thread_specific=no
14470fi
14471rm -f core conftest.err conftest.$ac_objext conftest.beam \
14472    conftest$ac_exeext conftest.$ac_ext
14473
14474fi
14475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
14476printf "%s\n" "$ol_cv_errno_thread_specific" >&6; }
14477
14478			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
14479printf %s "checking for thread specific h_errno... " >&6; }
14480if test ${ol_cv_h_errno_thread_specific+y}
14481then :
14482  printf %s "(cached) " >&6
14483else $as_nop
14484
14485		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486/* end confdefs.h.  */
14487#include <netdb.h>
14488int
14489main (void)
14490{
14491h_errno = 0;
14492  ;
14493  return 0;
14494}
14495_ACEOF
14496if ac_fn_c_try_link "$LINENO"
14497then :
14498  ol_cv_h_errno_thread_specific=yes
14499else $as_nop
14500  ol_cv_h_errno_thread_specific=no
14501fi
14502rm -f core conftest.err conftest.$ac_objext conftest.beam \
14503    conftest$ac_exeext conftest.$ac_ext
14504
14505fi
14506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
14507printf "%s\n" "$ol_cv_h_errno_thread_specific" >&6; }
14508
14509	if test $ol_cv_errno_thread_specific != yes ||
14510	   test $ol_cv_h_errno_thread_specific != yes ; then
14511		LIBS="$LTHREAD_LIBS $LIBS"
14512		LTHREAD_LIBS=""
14513	fi
14514
14515fi
14516
14517if test $ol_link_threads = no ; then
14518	if test $ol_with_threads = yes ; then
14519		as_fn_error $? "no suitable thread support" "$LINENO" 5
14520	fi
14521
14522	if test $ol_with_threads = auto ; then
14523		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
14524printf "%s\n" "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
14525		ol_with_threads=no
14526	fi
14527
14528
14529printf "%s\n" "#define NO_THREADS 1" >>confdefs.h
14530
14531	LTHREAD_LIBS=""
14532	BUILD_THREAD=no
14533else
14534	BUILD_THREAD=yes
14535fi
14536
14537if test $ol_link_threads != no ; then
14538
14539printf "%s\n" "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
14540
14541fi
14542
14543# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14544case "$ol_with_threads" in
14545 no)
14546    ol_pthread_ok=no
14547
14548    ;;
14549 *)
14550    ol_found_pthreads=yes
14551    ;;
14552esac
14553
14554ac_ext=c
14555ac_cpp='$CPP $CPPFLAGS'
14556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14558ac_compiler_gnu=$ac_cv_c_compiler_gnu
14559
14560
14561
14562
14563
14564
14565    case "$ol_found_pthreads" in
14566     yes)
14567	saved_LIBS="$LIBS"
14568	LIBS="$LTHREAD_LIBS $LIBS"
14569	saved_CFLAGS="$CFLAGS"
14570	CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
14571	ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14572if test "x$ac_cv_func_sem_timedwait" = xyes
14573then :
14574  printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
14575
14576fi
14577
14578	LIBS="$saved_LIBS"
14579	{ saved_LIBS=; unset saved_LIBS;}
14580	CFLAGS="$saved_CFLAGS"
14581	{ saved_CFLAGS=; unset saved_CFLAGS;}
14582	case "$ac_cv_func_sem_timedwait" in
14583	 yes)
14584	    PTHREAD_LIBS="$LTHREAD_LIBS"
14585	    have_pthreads=yes
14586	esac
14587    esac
14588esac
14589
14590case "$have_pthreads" in
14591 yes)
14592    CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
14593    saved_LIBS="$LIBS"
14594    LIBS="$LTHREAD_LIBS $LIBS"
14595    saved_CFLAGS="$CFLAGS"
14596    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
14597    # The cast to long int works around a bug in the HP C Compiler
14598# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14599# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14600# This bug is HP SR number 8606223364.
14601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
14602printf %s "checking size of pthread_t... " >&6; }
14603if test ${ac_cv_sizeof_pthread_t+y}
14604then :
14605  printf %s "(cached) " >&6
14606else $as_nop
14607  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
14608	    $ac_includes_default
14609	    #include <pthread.h>
14610
14611
14612"
14613then :
14614
14615else $as_nop
14616  if test "$ac_cv_type_pthread_t" = yes; then
14617     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14618printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14619as_fn_error 77 "cannot compute sizeof (pthread_t)
14620See \`config.log' for more details" "$LINENO" 5; }
14621   else
14622     ac_cv_sizeof_pthread_t=0
14623   fi
14624fi
14625
14626fi
14627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
14628printf "%s\n" "$ac_cv_sizeof_pthread_t" >&6; }
14629
14630
14631
14632printf "%s\n" "#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t" >>confdefs.h
14633
14634
14635    LIBISC_PTHREADS_NOTHREADS=pthreads
14636
14637printf "%s\n" "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
14638
14639    #
14640    # We'd like to use sigwait() too
14641    #
14642    ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
14643if test "x$ac_cv_func_sigwait" = xyes
14644then :
14645  have_sigwait=yes
14646else $as_nop
14647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
14648printf %s "checking for sigwait in -lc... " >&6; }
14649if test ${ac_cv_lib_c_sigwait+y}
14650then :
14651  printf %s "(cached) " >&6
14652else $as_nop
14653  ac_check_lib_save_LIBS=$LIBS
14654LIBS="-lc  $LIBS"
14655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656/* end confdefs.h.  */
14657
14658/* Override any GCC internal prototype to avoid an error.
14659   Use char because int might match the return type of a GCC
14660   builtin and then its argument prototype would still apply.  */
14661char sigwait ();
14662int
14663main (void)
14664{
14665return sigwait ();
14666  ;
14667  return 0;
14668}
14669_ACEOF
14670if ac_fn_c_try_link "$LINENO"
14671then :
14672  ac_cv_lib_c_sigwait=yes
14673else $as_nop
14674  ac_cv_lib_c_sigwait=no
14675fi
14676rm -f core conftest.err conftest.$ac_objext conftest.beam \
14677    conftest$ac_exeext conftest.$ac_ext
14678LIBS=$ac_check_lib_save_LIBS
14679fi
14680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
14681printf "%s\n" "$ac_cv_lib_c_sigwait" >&6; }
14682if test "x$ac_cv_lib_c_sigwait" = xyes
14683then :
14684  have_sigwait=yes
14685else $as_nop
14686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
14687printf %s "checking for sigwait in -lpthread... " >&6; }
14688if test ${ac_cv_lib_pthread_sigwait+y}
14689then :
14690  printf %s "(cached) " >&6
14691else $as_nop
14692  ac_check_lib_save_LIBS=$LIBS
14693LIBS="-lpthread  $LIBS"
14694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14695/* end confdefs.h.  */
14696
14697/* Override any GCC internal prototype to avoid an error.
14698   Use char because int might match the return type of a GCC
14699   builtin and then its argument prototype would still apply.  */
14700char sigwait ();
14701int
14702main (void)
14703{
14704return sigwait ();
14705  ;
14706  return 0;
14707}
14708_ACEOF
14709if ac_fn_c_try_link "$LINENO"
14710then :
14711  ac_cv_lib_pthread_sigwait=yes
14712else $as_nop
14713  ac_cv_lib_pthread_sigwait=no
14714fi
14715rm -f core conftest.err conftest.$ac_objext conftest.beam \
14716    conftest$ac_exeext conftest.$ac_ext
14717LIBS=$ac_check_lib_save_LIBS
14718fi
14719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
14720printf "%s\n" "$ac_cv_lib_pthread_sigwait" >&6; }
14721if test "x$ac_cv_lib_pthread_sigwait" = xyes
14722then :
14723  have_sigwait=yes
14724else $as_nop
14725  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
14726printf %s "checking for _Psigwait in -lpthread... " >&6; }
14727if test ${ac_cv_lib_pthread__Psigwait+y}
14728then :
14729  printf %s "(cached) " >&6
14730else $as_nop
14731  ac_check_lib_save_LIBS=$LIBS
14732LIBS="-lpthread  $LIBS"
14733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14734/* end confdefs.h.  */
14735
14736/* Override any GCC internal prototype to avoid an error.
14737   Use char because int might match the return type of a GCC
14738   builtin and then its argument prototype would still apply.  */
14739char _Psigwait ();
14740int
14741main (void)
14742{
14743return _Psigwait ();
14744  ;
14745  return 0;
14746}
14747_ACEOF
14748if ac_fn_c_try_link "$LINENO"
14749then :
14750  ac_cv_lib_pthread__Psigwait=yes
14751else $as_nop
14752  ac_cv_lib_pthread__Psigwait=no
14753fi
14754rm -f core conftest.err conftest.$ac_objext conftest.beam \
14755    conftest$ac_exeext conftest.$ac_ext
14756LIBS=$ac_check_lib_save_LIBS
14757fi
14758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
14759printf "%s\n" "$ac_cv_lib_pthread__Psigwait" >&6; }
14760if test "x$ac_cv_lib_pthread__Psigwait" = xyes
14761then :
14762  have_sigwait=yes
14763else $as_nop
14764  have_sigwait=no
14765
14766fi
14767
14768
14769fi
14770
14771
14772fi
14773
14774
14775fi
14776
14777    case "$host:$have_sigwait" in
14778     *-freebsd*:no)
14779	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
14780printf %s "checking for sigwait in -lc_r... " >&6; }
14781if test ${ac_cv_lib_c_r_sigwait+y}
14782then :
14783  printf %s "(cached) " >&6
14784else $as_nop
14785  ac_check_lib_save_LIBS=$LIBS
14786LIBS="-lc_r  $LIBS"
14787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788/* end confdefs.h.  */
14789
14790/* Override any GCC internal prototype to avoid an error.
14791   Use char because int might match the return type of a GCC
14792   builtin and then its argument prototype would still apply.  */
14793char sigwait ();
14794int
14795main (void)
14796{
14797return sigwait ();
14798  ;
14799  return 0;
14800}
14801_ACEOF
14802if ac_fn_c_try_link "$LINENO"
14803then :
14804  ac_cv_lib_c_r_sigwait=yes
14805else $as_nop
14806  ac_cv_lib_c_r_sigwait=no
14807fi
14808rm -f core conftest.err conftest.$ac_objext conftest.beam \
14809    conftest$ac_exeext conftest.$ac_ext
14810LIBS=$ac_check_lib_save_LIBS
14811fi
14812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
14813printf "%s\n" "$ac_cv_lib_c_r_sigwait" >&6; }
14814if test "x$ac_cv_lib_c_r_sigwait" = xyes
14815then :
14816  have_sigwait=yes
14817
14818fi
14819
14820    esac
14821    case "$have_sigwait" in
14822     yes)
14823	ac_cv_func_sigwait=yes
14824
14825printf "%s\n" "#define HAVE_SIGWAIT 1" >>confdefs.h
14826
14827    esac
14828
14829    ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
14830if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes
14831then :
14832  printf "%s\n" "#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1" >>confdefs.h
14833
14834fi
14835
14836    ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize"
14837if test "x$ac_cv_func_pthread_attr_setstacksize" = xyes
14838then :
14839  printf "%s\n" "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h
14840
14841fi
14842ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
14843if test "x$ac_cv_func_sysconf" = xyes
14844then :
14845  printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
14846
14847fi
14848
14849
14850    case "$host" in
14851     *-freebsd5.[012]|*-freebsd5.[012].*)
14852	;;
14853     *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
14854
14855printf "%s\n" "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
14856
14857	;;
14858     *-bsdi3.*|*-bsdi4.0*)
14859
14860printf "%s\n" "#define NEED_PTHREAD_INIT 1" >>confdefs.h
14861
14862	;;
14863     *-linux*)
14864
14865printf "%s\n" "#define HAVE_LINUXTHREADS 1" >>confdefs.h
14866
14867	;;
14868     *-solaris*)
14869	printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
14870
14871	ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
14872if test "x$ac_cv_func_pthread_setconcurrency" = xyes
14873then :
14874  printf "%s\n" "#define HAVE_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
14875
14876fi
14877
14878	case "$ac_cv_func_pthread_setconcurrency" in
14879	 yes)
14880
14881printf "%s\n" "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
14882
14883	esac
14884	;;
14885     *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
14886
14887printf "%s\n" "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
14888
14889	;;
14890    esac
14891    hack_shutup_pthreadonceinit=no
14892    case "$host" in
14893     *-aix5.[123].*)
14894	hack_shutup_pthreadonceinit=yes
14895	;;
14896     *-solaris2.[89])
14897	hack_shutup_pthreadonceinit=yes
14898	;;
14899     *-solaris2.1[0-9])
14900	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
14901printf %s "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
14902if test ${ntp_cv_braces_around_pthread_once_init+y}
14903then :
14904  printf %s "(cached) " >&6
14905else $as_nop
14906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907/* end confdefs.h.  */
14908
14909			#include <pthread.h>
14910
14911int
14912main (void)
14913{
14914
14915		        static pthread_once_t once_test =
14916						PTHREAD_ONCE_INIT;
14917
14918
14919  ;
14920  return 0;
14921}
14922_ACEOF
14923if ac_fn_c_try_compile "$LINENO"
14924then :
14925  ntp_cv_braces_around_pthread_once_init=no
14926else $as_nop
14927  ntp_cv_braces_around_pthread_once_init=yes
14928
14929fi
14930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14931
14932fi
14933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
14934printf "%s\n" "$ntp_cv_braces_around_pthread_once_init" >&6; }
14935	case "$ntp_cv_braces_around_pthread_once_init" in
14936	 yes)
14937	    hack_shutup_pthreadonceinit=yes
14938	esac
14939	;;
14940    esac
14941    case "$hack_shutup_pthreadonceinit" in
14942     yes)
14943
14944printf "%s\n" "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
14945
14946    esac
14947    LIBS="$saved_LIBS"
14948    { saved_LIBS=; unset saved_LIBS;}
14949    CFLAGS="$saved_CFLAGS"
14950    { saved_CFLAGS=; unset saved_CFLAGS;}
14951    ;;
14952 *)
14953    LIBISC_PTHREADS_NOTHREADS=nothreads
14954    ;;
14955esac
14956
14957 if test "$have_pthreads" != "no"; then
14958  PTHREADS_TRUE=
14959  PTHREADS_FALSE='#'
14960else
14961  PTHREADS_TRUE='#'
14962  PTHREADS_FALSE=
14963fi
14964
14965
14966
14967
14968
14969
14970
14971case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
14972 no:yes)
14973    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
14974printf %s "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
14975if test ${ntp_cv_vsnprintf_percent_m+y}
14976then :
14977  printf %s "(cached) " >&6
14978else $as_nop
14979  if test "$cross_compiling" = yes
14980then :
14981  ntp_cv_vsnprintf_percent_m=no
14982
14983else $as_nop
14984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985/* end confdefs.h.  */
14986
14987		    #include <stdarg.h>
14988		    #include <errno.h>
14989		    #include <stdio.h>
14990		    #include <string.h>
14991
14992		    int call_vsnprintf(
14993			    char *	dst,
14994			    size_t	sz,
14995			    const char *fmt,
14996			    ...
14997			    );
14998
14999		    int call_vsnprintf(
15000			    char *	dst,
15001			    size_t	sz,
15002			    const char *fmt,
15003			    ...
15004			    )
15005		    {
15006			    va_list	ap;
15007			    int		rc;
15008
15009			    va_start(ap, fmt);
15010			    rc = vsnprintf(dst, sz, fmt, ap);
15011			    va_end(ap);
15012
15013			    return rc;
15014		    }
15015
15016int
15017main (void)
15018{
15019
15020		    char	sbuf[512];
15021		    char	pbuf[512];
15022		    int		slen;
15023
15024		    strcpy(sbuf, strerror(ENOENT));
15025		    errno = ENOENT;
15026		    slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
15027					  "wrong");
15028		    return strcmp(sbuf, pbuf);
15029
15030
15031  ;
15032  return 0;
15033}
15034_ACEOF
15035if ac_fn_c_try_run "$LINENO"
15036then :
15037  ntp_cv_vsnprintf_percent_m=yes
15038else $as_nop
15039  ntp_cv_vsnprintf_percent_m=no
15040fi
15041rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15042  conftest.$ac_objext conftest.beam conftest.$ac_ext
15043fi
15044
15045
15046fi
15047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
15048printf "%s\n" "$ntp_cv_vsnprintf_percent_m" >&6; }
15049    case "$ntp_cv_vsnprintf_percent_m" in
15050     yes)
15051
15052printf "%s\n" "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
15053
15054    esac
15055esac
15056
15057ac_fn_c_check_header_compile "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
15058if test "x$ac_cv_header_sys_clockctl_h" = xyes
15059then :
15060  printf "%s\n" "#define HAVE_SYS_CLOCKCTL_H 1" >>confdefs.h
15061
15062fi
15063
15064
15065# Check whether --enable-clockctl was given.
15066if test ${enable_clockctl+y}
15067then :
15068  enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
15069else $as_nop
15070  ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
15071
15072fi
15073
15074
15075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
15076printf %s "checking if we should use /dev/clockctl... " >&6; }
15077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
15078printf "%s\n" "$ntp_use_dev_clockctl" >&6; }
15079
15080
15081ac_fn_c_check_header_compile "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
15082if test "x$ac_cv_header_sys_capability_h" = xyes
15083then :
15084  printf "%s\n" "#define HAVE_SYS_CAPABILITY_H 1" >>confdefs.h
15085
15086fi
15087ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
15088if test "x$ac_cv_header_sys_prctl_h" = xyes
15089then :
15090  printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
15091
15092fi
15093
15094
15095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
15096printf %s "checking if we have linux capabilities (libcap)... " >&6; }
15097
15098case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
15099 yesyes)
15100    case "$host" in
15101     mips-sgi-irix*)
15102	ntp_have_linuxcaps=no
15103	;;
15104     *) ntp_have_linuxcaps=yes
15105	;;
15106    esac
15107    ;;
15108 *)
15109    ntp_have_linuxcaps=no
15110    ;;
15111esac
15112
15113# Check whether --enable-linuxcaps was given.
15114if test ${enable_linuxcaps+y}
15115then :
15116  enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
15117
15118fi
15119
15120
15121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
15122printf "%s\n" "$ntp_have_linuxcaps" >&6; }
15123
15124case "$ntp_have_linuxcaps" in
15125 yes)
15126
15127printf "%s\n" "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
15128
15129    LIBS="$LIBS -lcap"
15130    ;;
15131esac
15132
15133
15134ac_fn_c_check_header_compile "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
15135if test "x$ac_cv_header_priv_h" = xyes
15136then :
15137  printf "%s\n" "#define HAVE_PRIV_H 1" >>confdefs.h
15138
15139fi
15140
15141case "$ac_cv_header_priv_h" in
15142 yes)
15143    case "$host" in
15144     *-solaris*)
15145	ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
15146if test "x$ac_cv_func_setppriv" = xyes
15147then :
15148  ntp_have_solarisprivs=yes
15149else $as_nop
15150  ntp_have_solarisprivs=no
15151
15152fi
15153
15154	;;
15155    esac
15156esac
15157
15158# Check whether --enable-solarisprivs was given.
15159if test ${enable_solarisprivs+y}
15160then :
15161  enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
15162
15163fi
15164
15165
15166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
15167printf %s "checking if we have solaris privileges... " >&6; }
15168
15169case "$ntp_have_solarisprivs" in
15170 yes)
15171
15172printf "%s\n" "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
15173
15174    ;;
15175 '') ntp_have_solarisprivs="no"
15176    ;;
15177esac
15178
15179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
15180printf "%s\n" "$ntp_have_solarisprivs" >&6; }
15181
15182ac_fn_c_check_header_compile "$LINENO" "sys/mac.h" "ac_cv_header_sys_mac_h" "$ac_includes_default"
15183if test "x$ac_cv_header_sys_mac_h" = xyes
15184then :
15185  printf "%s\n" "#define HAVE_SYS_MAC_H 1" >>confdefs.h
15186
15187fi
15188
15189
15190# Check whether --enable-trustedbsd_mac was given.
15191if test ${enable_trustedbsd_mac+y}
15192then :
15193  enableval=$enable_trustedbsd_mac; ntp_use_trustedbsd_mac=$enableval
15194
15195fi
15196
15197
15198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should use TrustedBSD MAC privileges" >&5
15199printf %s "checking if we should use TrustedBSD MAC privileges... " >&6; }
15200
15201case "$ntp_use_trustedbsd_mac$ac_cv_header_sys_mac_h" in
15202 yesyes)
15203
15204printf "%s\n" "#define HAVE_TRUSTEDBSD_MAC 1" >>confdefs.h
15205
15206    ;;
15207 *) ntp_use_trustedbsd_mac="no";
15208    ;;
15209esac
15210
15211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_use_trustedbsd_mac" >&5
15212printf "%s\n" "$ntp_use_trustedbsd_mac" >&6; }
15213
15214case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs$ntp_use_trustedbsd_mac" in
15215 *yes*)
15216
15217printf "%s\n" "#define HAVE_DROPROOT 1" >>confdefs.h
15218
15219esac
15220
15221case "$host" in
15222 *-*-darwin*)
15223    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
15224printf %s "checking for library containing res_9_init... " >&6; }
15225if test ${ac_cv_search_res_9_init+y}
15226then :
15227  printf %s "(cached) " >&6
15228else $as_nop
15229  ac_func_search_save_LIBS=$LIBS
15230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15231/* end confdefs.h.  */
15232
15233/* Override any GCC internal prototype to avoid an error.
15234   Use char because int might match the return type of a GCC
15235   builtin and then its argument prototype would still apply.  */
15236char res_9_init ();
15237int
15238main (void)
15239{
15240return res_9_init ();
15241  ;
15242  return 0;
15243}
15244_ACEOF
15245for ac_lib in '' resolv
15246do
15247  if test -z "$ac_lib"; then
15248    ac_res="none required"
15249  else
15250    ac_res=-l$ac_lib
15251    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15252  fi
15253  if ac_fn_c_try_link "$LINENO"
15254then :
15255  ac_cv_search_res_9_init=$ac_res
15256fi
15257rm -f core conftest.err conftest.$ac_objext conftest.beam \
15258    conftest$ac_exeext
15259  if test ${ac_cv_search_res_9_init+y}
15260then :
15261  break
15262fi
15263done
15264if test ${ac_cv_search_res_9_init+y}
15265then :
15266
15267else $as_nop
15268  ac_cv_search_res_9_init=no
15269fi
15270rm conftest.$ac_ext
15271LIBS=$ac_func_search_save_LIBS
15272fi
15273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
15274printf "%s\n" "$ac_cv_search_res_9_init" >&6; }
15275ac_res=$ac_cv_search_res_9_init
15276if test "$ac_res" != no
15277then :
15278  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15279
15280fi
15281
15282    ;;
15283 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
15284printf %s "checking for library containing res_init... " >&6; }
15285if test ${ac_cv_search_res_init+y}
15286then :
15287  printf %s "(cached) " >&6
15288else $as_nop
15289  ac_func_search_save_LIBS=$LIBS
15290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291/* end confdefs.h.  */
15292
15293/* Override any GCC internal prototype to avoid an error.
15294   Use char because int might match the return type of a GCC
15295   builtin and then its argument prototype would still apply.  */
15296char res_init ();
15297int
15298main (void)
15299{
15300return res_init ();
15301  ;
15302  return 0;
15303}
15304_ACEOF
15305for ac_lib in '' resolv
15306do
15307  if test -z "$ac_lib"; then
15308    ac_res="none required"
15309  else
15310    ac_res=-l$ac_lib
15311    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15312  fi
15313  if ac_fn_c_try_link "$LINENO"
15314then :
15315  ac_cv_search_res_init=$ac_res
15316fi
15317rm -f core conftest.err conftest.$ac_objext conftest.beam \
15318    conftest$ac_exeext
15319  if test ${ac_cv_search_res_init+y}
15320then :
15321  break
15322fi
15323done
15324if test ${ac_cv_search_res_init+y}
15325then :
15326
15327else $as_nop
15328  ac_cv_search_res_init=no
15329fi
15330rm conftest.$ac_ext
15331LIBS=$ac_func_search_save_LIBS
15332fi
15333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
15334printf "%s\n" "$ac_cv_search_res_init" >&6; }
15335ac_res=$ac_cv_search_res_init
15336if test "$ac_res" != no
15337then :
15338  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15339
15340fi
15341
15342    ;;
15343esac
15344ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "#ifdef HAVE_SYS_TYPES_H
15345#  include <sys/types.h>
15346#endif
15347#ifdef HAVE_NETINET_IN_H
15348#  include <netinet/in.h>   /* inet_ functions / structs */
15349#endif
15350#ifdef HAVE_ARPA_NAMESER_H
15351#  include <arpa/nameser.h> /* DNS HEADER struct */
15352#endif
15353#ifdef HAVE_NETDB_H
15354#  include <netdb.h>
15355#endif
15356"
15357if test "x$ac_cv_header_sys_types_h" = xyes
15358then :
15359  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
15360
15361fi
15362ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "#ifdef HAVE_SYS_TYPES_H
15363#  include <sys/types.h>
15364#endif
15365#ifdef HAVE_NETINET_IN_H
15366#  include <netinet/in.h>   /* inet_ functions / structs */
15367#endif
15368#ifdef HAVE_ARPA_NAMESER_H
15369#  include <arpa/nameser.h> /* DNS HEADER struct */
15370#endif
15371#ifdef HAVE_NETDB_H
15372#  include <netdb.h>
15373#endif
15374"
15375if test "x$ac_cv_header_netinet_in_h" = xyes
15376then :
15377  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
15378
15379fi
15380ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "#ifdef HAVE_SYS_TYPES_H
15381#  include <sys/types.h>
15382#endif
15383#ifdef HAVE_NETINET_IN_H
15384#  include <netinet/in.h>   /* inet_ functions / structs */
15385#endif
15386#ifdef HAVE_ARPA_NAMESER_H
15387#  include <arpa/nameser.h> /* DNS HEADER struct */
15388#endif
15389#ifdef HAVE_NETDB_H
15390#  include <netdb.h>
15391#endif
15392"
15393if test "x$ac_cv_header_arpa_nameser_h" = xyes
15394then :
15395  printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h
15396
15397fi
15398ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "#ifdef HAVE_SYS_TYPES_H
15399#  include <sys/types.h>
15400#endif
15401#ifdef HAVE_NETINET_IN_H
15402#  include <netinet/in.h>   /* inet_ functions / structs */
15403#endif
15404#ifdef HAVE_ARPA_NAMESER_H
15405#  include <arpa/nameser.h> /* DNS HEADER struct */
15406#endif
15407#ifdef HAVE_NETDB_H
15408#  include <netdb.h>
15409#endif
15410"
15411if test "x$ac_cv_header_netdb_h" = xyes
15412then :
15413  printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
15414
15415fi
15416ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#ifdef HAVE_SYS_TYPES_H
15417#  include <sys/types.h>
15418#endif
15419#ifdef HAVE_NETINET_IN_H
15420#  include <netinet/in.h>   /* inet_ functions / structs */
15421#endif
15422#ifdef HAVE_ARPA_NAMESER_H
15423#  include <arpa/nameser.h> /* DNS HEADER struct */
15424#endif
15425#ifdef HAVE_NETDB_H
15426#  include <netdb.h>
15427#endif
15428"
15429if test "x$ac_cv_header_resolv_h" = xyes
15430then :
15431  printf "%s\n" "#define HAVE_RESOLV_H 1" >>confdefs.h
15432
15433fi
15434
15435
15436#HMS: Why do we do this check so "early"?
15437
15438  for ac_func in res_init
15439do :
15440  ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
15441if test "x$ac_cv_func_res_init" = xyes
15442then :
15443  printf "%s\n" "#define HAVE_RES_INIT 1" >>confdefs.h
15444
15445else $as_nop
15446  ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
15447if test "x$ac_cv_func___res_init" = xyes
15448then :
15449  printf "%s\n" "#define HAVE___RES_INIT 1" >>confdefs.h
15450
15451fi
15452
15453fi
15454
15455done
15456
15457# We also need -lsocket, but we have tested for that already.
15458ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
15459if test "x$ac_cv_func_inet_ntop" = xyes
15460then :
15461
15462else $as_nop
15463
15464printf "%s\n" "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
15465
15466fi
15467
15468ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
15469if test "x$ac_cv_func_inet_pton" = xyes
15470then :
15471
15472else $as_nop
15473
15474printf "%s\n" "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
15475
15476fi
15477
15478
15479ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15480if test "x$ac_cv_type_uintptr_t" = xyes
15481then :
15482
15483printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
15484
15485
15486fi
15487ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
15488if test "x$ac_cv_type_int32" = xyes
15489then :
15490
15491printf "%s\n" "#define HAVE_INT32 1" >>confdefs.h
15492
15493
15494fi
15495ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
15496if test "x$ac_cv_type_u_int32" = xyes
15497then :
15498
15499printf "%s\n" "#define HAVE_U_INT32 1" >>confdefs.h
15500
15501
15502fi
15503
15504
15505
15506
15507case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
15508 no::yes)
15509    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
15510printf %s "checking for int32 with DNS headers included... " >&6; }
15511if test ${ntp_cv_type_int32_with_dns+y}
15512then :
15513  printf %s "(cached) " >&6
15514else $as_nop
15515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15516/* end confdefs.h.  */
15517
15518		    #ifdef HAVE_ARPA_NAMESER_H
15519		    # include <arpa/nameser.h>
15520		    #endif
15521		    #include <resolv.h>
15522
15523int
15524main (void)
15525{
15526
15527		    size_t cb = sizeof(int32);
15528
15529
15530  ;
15531  return 0;
15532}
15533_ACEOF
15534if ac_fn_c_try_compile "$LINENO"
15535then :
15536  ntp_cv_type_int32_with_dns=yes
15537else $as_nop
15538  ntp_cv_type_int32_with_dns=no
15539
15540fi
15541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15542
15543fi
15544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
15545printf "%s\n" "$ntp_cv_type_int32_with_dns" >&6; }
15546    case "$ntp_cv_type_int32_with_dns" in
15547     yes)
15548
15549printf "%s\n" "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
15550
15551    esac
15552esac
15553
15554case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
15555 no::yes)
15556    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
15557printf %s "checking for u_int32 with DNS headers included... " >&6; }
15558if test ${ntp_cv_type_u_int32_with_dns+y}
15559then :
15560  printf %s "(cached) " >&6
15561else $as_nop
15562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15563/* end confdefs.h.  */
15564
15565		    #ifdef HAVE_ARPA_NAMESER_H
15566		    # include <arpa/nameser.h>
15567		    #endif
15568		    #include <resolv.h>
15569
15570int
15571main (void)
15572{
15573
15574		    size_t cb = sizeof(u_int32);
15575
15576
15577  ;
15578  return 0;
15579}
15580_ACEOF
15581if ac_fn_c_try_compile "$LINENO"
15582then :
15583  ntp_cv_type_u_int32_with_dns=yes
15584else $as_nop
15585  ntp_cv_type_u_int32_with_dns=no
15586
15587fi
15588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15589
15590fi
15591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
15592printf "%s\n" "$ntp_cv_type_u_int32_with_dns" >&6; }
15593    case "$ntp_cv_type_u_int32_with_dns" in
15594     yes)
15595
15596printf "%s\n" "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
15597
15598    esac
15599esac
15600
15601ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
15602	#ifdef HAVE_SYS_TIME_H
15603	# include <sys/time.h>
15604	#endif
15605	#ifdef HAVE_ERRNO_H
15606	# include <errno.h>
15607	#endif
15608
15609
15610"
15611if test "x$ac_cv_header_sys_timepps_h" = xyes
15612then :
15613  printf "%s\n" "#define HAVE_SYS_TIMEPPS_H 1" >>confdefs.h
15614
15615fi
15616
15617
15618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
15619printf %s "checking for struct timespec... " >&6; }
15620if test ${ntp_cv_struct_timespec+y}
15621then :
15622  printf %s "(cached) " >&6
15623else $as_nop
15624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15625/* end confdefs.h.  */
15626
15627		#include <sys/time.h>
15628		/* Under SunOS, timespec is in sys/timepps.h,
15629		   which needs errno.h and FRAC */
15630		#ifdef HAVE_ERRNO_H
15631		# include <errno.h>
15632		#endif
15633		#ifdef HAVE_SYS_TIMEPPS_H
15634		# define FRAC 4294967296
15635		# include <sys/timepps.h>
15636		#endif
15637
15638int
15639main (void)
15640{
15641
15642		struct timespec n;
15643
15644
15645  ;
15646  return 0;
15647}
15648_ACEOF
15649if ac_fn_c_try_compile "$LINENO"
15650then :
15651  ntp_cv_struct_timespec=yes
15652else $as_nop
15653  ntp_cv_struct_timespec=no
15654
15655fi
15656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15657
15658fi
15659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
15660printf "%s\n" "$ntp_cv_struct_timespec" >&6; }
15661case "$ntp_cv_struct_timespec" in
15662 yes)
15663
15664printf "%s\n" "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
15665
15666esac
15667
15668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
15669printf %s "checking for struct ntptimeval... " >&6; }
15670if test ${ntp_cv_struct_ntptimeval+y}
15671then :
15672  printf %s "(cached) " >&6
15673else $as_nop
15674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15675/* end confdefs.h.  */
15676
15677		#include <sys/time.h>
15678		#include <sys/timex.h>
15679
15680int
15681main (void)
15682{
15683
15684		struct ntptimeval n;
15685
15686
15687  ;
15688  return 0;
15689}
15690_ACEOF
15691if ac_fn_c_try_compile "$LINENO"
15692then :
15693  ntp_cv_struct_ntptimeval=yes
15694else $as_nop
15695  ntp_cv_struct_ntptimeval=no
15696
15697fi
15698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15699
15700fi
15701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
15702printf "%s\n" "$ntp_cv_struct_ntptimeval" >&6; }
15703case "$ntp_cv_struct_ntptimeval" in
15704 yes)
15705
15706printf "%s\n" "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
15707
15708esac
15709
15710ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
15711	#ifdef HAVE_SYS_TYPES_H
15712	# include <sys/types.h>
15713	#endif
15714
15715
15716"
15717if test "x$ac_cv_header_md5_h" = xyes
15718then :
15719  printf "%s\n" "#define HAVE_MD5_H 1" >>confdefs.h
15720
15721fi
15722
15723
15724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
15725printf %s "checking for library containing MD5Init... " >&6; }
15726if test ${ac_cv_search_MD5Init+y}
15727then :
15728  printf %s "(cached) " >&6
15729else $as_nop
15730  ac_func_search_save_LIBS=$LIBS
15731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15732/* end confdefs.h.  */
15733
15734/* Override any GCC internal prototype to avoid an error.
15735   Use char because int might match the return type of a GCC
15736   builtin and then its argument prototype would still apply.  */
15737char MD5Init ();
15738int
15739main (void)
15740{
15741return MD5Init ();
15742  ;
15743  return 0;
15744}
15745_ACEOF
15746for ac_lib in '' md5 md
15747do
15748  if test -z "$ac_lib"; then
15749    ac_res="none required"
15750  else
15751    ac_res=-l$ac_lib
15752    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15753  fi
15754  if ac_fn_c_try_link "$LINENO"
15755then :
15756  ac_cv_search_MD5Init=$ac_res
15757fi
15758rm -f core conftest.err conftest.$ac_objext conftest.beam \
15759    conftest$ac_exeext
15760  if test ${ac_cv_search_MD5Init+y}
15761then :
15762  break
15763fi
15764done
15765if test ${ac_cv_search_MD5Init+y}
15766then :
15767
15768else $as_nop
15769  ac_cv_search_MD5Init=no
15770fi
15771rm conftest.$ac_ext
15772LIBS=$ac_func_search_save_LIBS
15773fi
15774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
15775printf "%s\n" "$ac_cv_search_MD5Init" >&6; }
15776ac_res=$ac_cv_search_MD5Init
15777if test "$ac_res" != no
15778then :
15779  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15780
15781fi
15782
15783ac_fn_c_check_func "$LINENO" "MD5Init" "ac_cv_func_MD5Init"
15784if test "x$ac_cv_func_MD5Init" = xyes
15785then :
15786  printf "%s\n" "#define HAVE_MD5INIT 1" >>confdefs.h
15787
15788fi
15789ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
15790if test "x$ac_cv_func_sysconf" = xyes
15791then :
15792  printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
15793
15794fi
15795ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
15796if test "x$ac_cv_func_getdtablesize" = xyes
15797then :
15798  printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
15799
15800fi
15801ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
15802if test "x$ac_cv_func_sigaction" = xyes
15803then :
15804  printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
15805
15806fi
15807ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
15808if test "x$ac_cv_func_sigset" = xyes
15809then :
15810  printf "%s\n" "#define HAVE_SIGSET 1" >>confdefs.h
15811
15812fi
15813ac_fn_c_check_func "$LINENO" "sigvec" "ac_cv_func_sigvec"
15814if test "x$ac_cv_func_sigvec" = xyes
15815then :
15816  printf "%s\n" "#define HAVE_SIGVEC 1" >>confdefs.h
15817
15818fi
15819
15820
15821# HMS: does this need to be a cached variable?
15822# Check whether --enable-signalled-io was given.
15823if test ${enable_signalled_io+y}
15824then :
15825  enableval=$enable_signalled_io; use_signalled_io=$enableval
15826else $as_nop
15827  use_signalled_io=yes
15828
15829fi
15830
15831
15832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
15833printf %s "checking for SIGIO... " >&6; }
15834if test ${ntp_cv_hdr_def_sigio+y}
15835then :
15836  printf %s "(cached) " >&6
15837else $as_nop
15838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15839/* end confdefs.h.  */
15840
15841	    #include <signal.h>
15842
15843	    #ifndef SIGIO
15844	    # error
15845	    #endif
15846
15847_ACEOF
15848if ac_fn_c_try_cpp "$LINENO"
15849then :
15850  ntp_cv_hdr_def_sigio=yes
15851else $as_nop
15852  ntp_cv_hdr_def_sigio=no
15853
15854fi
15855rm -f conftest.err conftest.i conftest.$ac_ext
15856
15857fi
15858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
15859printf "%s\n" "$ntp_cv_hdr_def_sigio" >&6; }
15860
15861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
15862printf %s "checking if we want to use SIGIO... " >&6; }
15863ans=no
15864case "$ntp_cv_hdr_def_sigio" in
15865 yes)
15866    ans=yes
15867    case "$host" in
15868     alpha*-dec-osf4*|alpha*-dec-osf5*)
15869	ans=no
15870	;;
15871     *-convex-*)
15872	ans=no
15873	;;
15874     *-dec-*)
15875	ans=no
15876	;;
15877     *-pc-cygwin*)
15878	ans=no
15879	;;
15880     *-sni-sysv*)
15881	ans=no
15882	;;
15883     *-stratus-vos)
15884	ans=no
15885	;;
15886     *-univel-sysv*)
15887	ans=no
15888	;;
15889     *-*-irix6*)
15890	ans=no
15891	;;
15892     *-*-freebsd*)
15893	ans=no
15894	;;
15895     *-*-*linux*)
15896	ans=no
15897	;;
15898     *-*-unicosmp*)
15899	ans=no
15900	;;
15901     *-*-kfreebsd*)
15902	ans=no
15903	;;
15904     m68k-*-mint*)
15905	ans=no
15906	;;
15907    esac
15908    case "$ans" in
15909     no)
15910	ans="Possible for $host but disabled because of reported problems"
15911	;;
15912    esac
15913    ;;
15914esac
15915case "$ans" in
15916 yes)
15917    case "$use_signalled_io" in
15918     yes)
15919
15920printf "%s\n" "#define HAVE_SIGNALED_IO 1" >>confdefs.h
15921
15922	;;
15923     *) ans="Allowed for $host but --disable-signalled-io was given"
15924	;;
15925    esac
15926esac
15927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
15928printf "%s\n" "$ans" >&6; }
15929
15930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
15931printf %s "checking for SIGPOLL... " >&6; }
15932if test ${ntp_cv_hdr_def_sigpoll+y}
15933then :
15934  printf %s "(cached) " >&6
15935else $as_nop
15936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15937/* end confdefs.h.  */
15938
15939	    #include <signal.h>
15940
15941	    #ifndef SIGPOLL
15942	    # error
15943	    #endif
15944
15945_ACEOF
15946if ac_fn_c_try_cpp "$LINENO"
15947then :
15948  ntp_cv_hdr_def_sigpoll=yes
15949else $as_nop
15950  ntp_cv_hdr_def_sigpoll=no
15951
15952fi
15953rm -f conftest.err conftest.i conftest.$ac_ext
15954
15955fi
15956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
15957printf "%s\n" "$ntp_cv_hdr_def_sigpoll" >&6; }
15958
15959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
15960printf %s "checking if we can use SIGPOLL for UDP I/O... " >&6; }
15961ans=no
15962case "$ntp_cv_hdr_def_sigpoll" in
15963 yes)
15964    case "$host" in
15965     mips-sgi-irix*)
15966	ans=no
15967	;;
15968     vax-dec-bsd)
15969	ans=no
15970	;;
15971     *-pc-cygwin*)
15972	ans=no
15973	;;
15974     *-sni-sysv*)
15975	ans=no
15976	;;
15977     *-stratus-vos)
15978	ans=no
15979	;;
15980     *-*-aix[4-9]*)
15981	# XXX Only verified thru AIX6
15982	ans=no
15983	;;
15984     *-*-hpux*)
15985	ans=no
15986	;;
15987     *-*-*linux*)
15988	ans=no
15989	;;
15990     *-*-osf*)
15991	ans=no
15992	;;
15993     *-*-qnx*)
15994	ans=no
15995	;;
15996     *-*-sunos*)
15997	ans=no
15998	;;
15999     *-*-solaris*)
16000	ans=no
16001	;;
16002     *-*-ultrix*)
16003	ans=no
16004	;;
16005     *-*-unicosmp*)
16006	ans=no
16007	;;
16008     *-*-kfreebsd*)
16009	ans=no
16010	;;
16011     *) ans=yes
16012	;;
16013    esac
16014    ;;
16015esac
16016case "$ans" in
16017 yes)
16018
16019printf "%s\n" "#define USE_UDP_SIGPOLL 1" >>confdefs.h
16020
16021esac
16022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
16023printf "%s\n" "$ans" >&6; }
16024
16025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
16026printf %s "checking if we can use SIGPOLL for TTY I/O... " >&6; }
16027ans=no
16028case "$ntp_cv_hdr_def_sigpoll" in
16029 yes)
16030    case "$host" in
16031     mips-sgi-irix*)
16032	ans=no
16033	;;
16034     vax-dec-bsd)
16035	ans=no
16036	;;
16037     *-pc-cygwin*)
16038	ans=no
16039	;;
16040     *-sni-sysv*)
16041	ans=no
16042	;;
16043     *-stratus-vos)
16044	ans=no
16045	;;
16046     *-*-aix[4-9]*)
16047	# XXX Only verified thru AIX6
16048	ans=no
16049	;;
16050     *-*-hpux*)
16051	ans=no
16052	;;
16053     *-*-*linux*)
16054	ans=no
16055	;;
16056     *-*-osf*)
16057	ans=no
16058	;;
16059     *-*-sunos*)
16060	ans=no
16061	;;
16062     *-*-ultrix*)
16063	ans=no
16064	;;
16065     *-*-qnx*)
16066	ans=no
16067	;;
16068     *-*-unicosmp*)
16069	ans=no
16070	;;
16071     *-*-kfreebsd*)
16072	ans=no
16073	;;
16074     *) ans=yes
16075	;;
16076    esac
16077    ;;
16078esac
16079case "$ans" in
16080 yes)
16081
16082printf "%s\n" "#define USE_TTY_SIGPOLL 1" >>confdefs.h
16083
16084esac
16085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
16086printf "%s\n" "$ans" >&6; }
16087
16088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
16089printf %s "checking number of arguments to gettimeofday()... " >&6; }
16090if test ${ntp_cv_func_Xettimeofday_nargs+y}
16091then :
16092  printf %s "(cached) " >&6
16093else $as_nop
16094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16095/* end confdefs.h.  */
16096
16097		#include <sys/time.h>
16098
16099int
16100main (void)
16101{
16102
16103		gettimeofday(0, 0);
16104		settimeofday(0, 0);
16105
16106
16107  ;
16108  return 0;
16109}
16110_ACEOF
16111if ac_fn_c_try_compile "$LINENO"
16112then :
16113  ntp_cv_func_Xettimeofday_nargs=2
16114else $as_nop
16115  ntp_cv_func_Xettimeofday_nargs=1
16116
16117fi
16118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16119
16120fi
16121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
16122printf "%s\n" "$ntp_cv_func_Xettimeofday_nargs" >&6; }
16123case "$ntp_cv_func_Xettimeofday_nargs" in
16124 1)
16125
16126printf "%s\n" "#define SYSV_TIMEOFDAY 1" >>confdefs.h
16127
16128esac
16129
16130
16131  for ac_func in settimeofday
16132do :
16133  ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
16134if test "x$ac_cv_func_settimeofday" = xyes
16135then :
16136  printf "%s\n" "#define HAVE_SETTIMEOFDAY 1" >>confdefs.h
16137
16138else $as_nop
16139
16140    case "$host" in
16141     *-*-mpeix*) ac_cv_func_settimeofday=yes
16142    esac
16143
16144fi
16145
16146done
16147
16148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
16149printf %s "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
16150ntp_warning='GRONK'
16151ans=none
16152case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
16153 yes*)
16154    ntp_warning=''
16155    ans='clock_settime()'
16156    ;;
16157 noyes*)
16158    ntp_warning='But clock_settime() would be better (if we had it)'
16159    ans='settimeofday()'
16160    ;;
16161 nonoyes)
16162    ntp_warning='Which is the worst of the three'
16163    ans='stime()'
16164    ;;
16165 *)
16166    case "$build" in
16167     $host)
16168	ntp_warning='Which leaves us with nothing to use!'
16169    esac
16170esac
16171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
16172printf "%s\n" "$ans" >&6; }
16173case "$ntp_warning" in
16174 '')
16175    ;;
16176 *)
16177    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
16178printf "%s\n" "$as_me: WARNING: *** $ntp_warning ***" >&2;}
16179    ;;
16180esac
16181
16182
16183LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
16184LIBS=$__LIBS
16185{ __LIBS=; unset __LIBS;}
16186
16187
16188
16189# Check whether --enable-shared was given.
16190if test ${enable_shared+y}
16191then :
16192  enableval=$enable_shared; p=${PACKAGE-default}
16193    case $enableval in
16194    yes) enable_shared=yes ;;
16195    no) enable_shared=no ;;
16196    *)
16197      enable_shared=no
16198      # Look at the argument we got.  We use all the common list separators.
16199      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16200      for pkg in $enableval; do
16201	IFS=$lt_save_ifs
16202	if test "X$pkg" = "X$p"; then
16203	  enable_shared=yes
16204	fi
16205      done
16206      IFS=$lt_save_ifs
16207      ;;
16208    esac
16209else $as_nop
16210  enable_shared=no
16211fi
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221case `pwd` in
16222  *\ * | *\	*)
16223    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
16224printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
16225esac
16226
16227
16228
16229macro_version='2.4.6'
16230macro_revision='2.4.6'
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245ltmain=$ac_aux_dir/ltmain.sh
16246
16247# Backslashify metacharacters that are still active within
16248# double-quoted strings.
16249sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16250
16251# Same as above, but do not quote variable references.
16252double_quote_subst='s/\(["`\\]\)/\\\1/g'
16253
16254# Sed substitution to delay expansion of an escaped shell variable in a
16255# double_quote_subst'ed string.
16256delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16257
16258# Sed substitution to delay expansion of an escaped single quote.
16259delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
16260
16261# Sed substitution to avoid accidental globbing in evaled expressions
16262no_glob_subst='s/\*/\\\*/g'
16263
16264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
16265printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
16266if test ${lt_cv_path_NM+y}
16267then :
16268  printf %s "(cached) " >&6
16269else $as_nop
16270  if test -n "$NM"; then
16271  # Let the user override the test.
16272  lt_cv_path_NM=$NM
16273else
16274  lt_nm_to_check=${ac_tool_prefix}nm
16275  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
16276    lt_nm_to_check="$lt_nm_to_check nm"
16277  fi
16278  for lt_tmp_nm in $lt_nm_to_check; do
16279    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16280    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
16281      IFS=$lt_save_ifs
16282      test -z "$ac_dir" && ac_dir=.
16283      tmp_nm=$ac_dir/$lt_tmp_nm
16284      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
16285	# Check to see if the nm accepts a BSD-compat flag.
16286	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
16287	#   nm: unknown option "B" ignored
16288	# Tru64's nm complains that /dev/null is an invalid object file
16289	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
16290	case $build_os in
16291	mingw*) lt_bad_file=conftest.nm/nofile ;;
16292	*) lt_bad_file=/dev/null ;;
16293	esac
16294	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
16295	*$lt_bad_file* | *'Invalid file or object type'*)
16296	  lt_cv_path_NM="$tmp_nm -B"
16297	  break 2
16298	  ;;
16299	*)
16300	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
16301	  */dev/null*)
16302	    lt_cv_path_NM="$tmp_nm -p"
16303	    break 2
16304	    ;;
16305	  *)
16306	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
16307	    continue # so that we can try to find one that supports BSD flags
16308	    ;;
16309	  esac
16310	  ;;
16311	esac
16312      fi
16313    done
16314    IFS=$lt_save_ifs
16315  done
16316  : ${lt_cv_path_NM=no}
16317fi
16318fi
16319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
16320printf "%s\n" "$lt_cv_path_NM" >&6; }
16321if test no != "$lt_cv_path_NM"; then
16322  NM=$lt_cv_path_NM
16323else
16324  # Didn't find any BSD compatible name lister, look for dumpbin.
16325  if test -n "$DUMPBIN"; then :
16326    # Let the user override the test.
16327  else
16328    if test -n "$ac_tool_prefix"; then
16329  for ac_prog in dumpbin "link -dump"
16330  do
16331    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16332set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16334printf %s "checking for $ac_word... " >&6; }
16335if test ${ac_cv_prog_DUMPBIN+y}
16336then :
16337  printf %s "(cached) " >&6
16338else $as_nop
16339  if test -n "$DUMPBIN"; then
16340  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
16341else
16342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16343for as_dir in $PATH
16344do
16345  IFS=$as_save_IFS
16346  case $as_dir in #(((
16347    '') as_dir=./ ;;
16348    */) ;;
16349    *) as_dir=$as_dir/ ;;
16350  esac
16351    for ac_exec_ext in '' $ac_executable_extensions; do
16352  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16353    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
16354    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16355    break 2
16356  fi
16357done
16358  done
16359IFS=$as_save_IFS
16360
16361fi
16362fi
16363DUMPBIN=$ac_cv_prog_DUMPBIN
16364if test -n "$DUMPBIN"; then
16365  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
16366printf "%s\n" "$DUMPBIN" >&6; }
16367else
16368  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16369printf "%s\n" "no" >&6; }
16370fi
16371
16372
16373    test -n "$DUMPBIN" && break
16374  done
16375fi
16376if test -z "$DUMPBIN"; then
16377  ac_ct_DUMPBIN=$DUMPBIN
16378  for ac_prog in dumpbin "link -dump"
16379do
16380  # Extract the first word of "$ac_prog", so it can be a program name with args.
16381set dummy $ac_prog; ac_word=$2
16382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16383printf %s "checking for $ac_word... " >&6; }
16384if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
16385then :
16386  printf %s "(cached) " >&6
16387else $as_nop
16388  if test -n "$ac_ct_DUMPBIN"; then
16389  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
16390else
16391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16392for as_dir in $PATH
16393do
16394  IFS=$as_save_IFS
16395  case $as_dir in #(((
16396    '') as_dir=./ ;;
16397    */) ;;
16398    *) as_dir=$as_dir/ ;;
16399  esac
16400    for ac_exec_ext in '' $ac_executable_extensions; do
16401  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16402    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
16403    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16404    break 2
16405  fi
16406done
16407  done
16408IFS=$as_save_IFS
16409
16410fi
16411fi
16412ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
16413if test -n "$ac_ct_DUMPBIN"; then
16414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
16415printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
16416else
16417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16418printf "%s\n" "no" >&6; }
16419fi
16420
16421
16422  test -n "$ac_ct_DUMPBIN" && break
16423done
16424
16425  if test "x$ac_ct_DUMPBIN" = x; then
16426    DUMPBIN=":"
16427  else
16428    case $cross_compiling:$ac_tool_warned in
16429yes:)
16430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16431printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16432ac_tool_warned=yes ;;
16433esac
16434    DUMPBIN=$ac_ct_DUMPBIN
16435  fi
16436fi
16437
16438    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
16439    *COFF*)
16440      DUMPBIN="$DUMPBIN -symbols -headers"
16441      ;;
16442    *)
16443      DUMPBIN=:
16444      ;;
16445    esac
16446  fi
16447
16448  if test : != "$DUMPBIN"; then
16449    NM=$DUMPBIN
16450  fi
16451fi
16452test -z "$NM" && NM=nm
16453
16454
16455
16456
16457
16458
16459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
16460printf %s "checking the name lister ($NM) interface... " >&6; }
16461if test ${lt_cv_nm_interface+y}
16462then :
16463  printf %s "(cached) " >&6
16464else $as_nop
16465  lt_cv_nm_interface="BSD nm"
16466  echo "int some_variable = 0;" > conftest.$ac_ext
16467  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
16468  (eval "$ac_compile" 2>conftest.err)
16469  cat conftest.err >&5
16470  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
16471  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
16472  cat conftest.err >&5
16473  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
16474  cat conftest.out >&5
16475  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
16476    lt_cv_nm_interface="MS dumpbin"
16477  fi
16478  rm -f conftest*
16479fi
16480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
16481printf "%s\n" "$lt_cv_nm_interface" >&6; }
16482
16483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16484printf %s "checking whether ln -s works... " >&6; }
16485LN_S=$as_ln_s
16486if test "$LN_S" = "ln -s"; then
16487  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16488printf "%s\n" "yes" >&6; }
16489else
16490  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16491printf "%s\n" "no, using $LN_S" >&6; }
16492fi
16493
16494# find the maximum length of command line arguments
16495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
16496printf %s "checking the maximum length of command line arguments... " >&6; }
16497if test ${lt_cv_sys_max_cmd_len+y}
16498then :
16499  printf %s "(cached) " >&6
16500else $as_nop
16501    i=0
16502  teststring=ABCD
16503
16504  case $build_os in
16505  msdosdjgpp*)
16506    # On DJGPP, this test can blow up pretty badly due to problems in libc
16507    # (any single argument exceeding 2000 bytes causes a buffer overrun
16508    # during glob expansion).  Even if it were fixed, the result of this
16509    # check would be larger than it should be.
16510    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
16511    ;;
16512
16513  gnu*)
16514    # Under GNU Hurd, this test is not required because there is
16515    # no limit to the length of command line arguments.
16516    # Libtool will interpret -1 as no limit whatsoever
16517    lt_cv_sys_max_cmd_len=-1;
16518    ;;
16519
16520  cygwin* | mingw* | cegcc*)
16521    # On Win9x/ME, this test blows up -- it succeeds, but takes
16522    # about 5 minutes as the teststring grows exponentially.
16523    # Worse, since 9x/ME are not pre-emptively multitasking,
16524    # you end up with a "frozen" computer, even though with patience
16525    # the test eventually succeeds (with a max line length of 256k).
16526    # Instead, let's just punt: use the minimum linelength reported by
16527    # all of the supported platforms: 8192 (on NT/2K/XP).
16528    lt_cv_sys_max_cmd_len=8192;
16529    ;;
16530
16531  mint*)
16532    # On MiNT this can take a long time and run out of memory.
16533    lt_cv_sys_max_cmd_len=8192;
16534    ;;
16535
16536  amigaos*)
16537    # On AmigaOS with pdksh, this test takes hours, literally.
16538    # So we just punt and use a minimum line length of 8192.
16539    lt_cv_sys_max_cmd_len=8192;
16540    ;;
16541
16542  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
16543    # This has been around since 386BSD, at least.  Likely further.
16544    if test -x /sbin/sysctl; then
16545      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
16546    elif test -x /usr/sbin/sysctl; then
16547      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
16548    else
16549      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
16550    fi
16551    # And add a safety zone
16552    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16553    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16554    ;;
16555
16556  interix*)
16557    # We know the value 262144 and hardcode it with a safety zone (like BSD)
16558    lt_cv_sys_max_cmd_len=196608
16559    ;;
16560
16561  os2*)
16562    # The test takes a long time on OS/2.
16563    lt_cv_sys_max_cmd_len=8192
16564    ;;
16565
16566  osf*)
16567    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
16568    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
16569    # nice to cause kernel panics so lets avoid the loop below.
16570    # First set a reasonable default.
16571    lt_cv_sys_max_cmd_len=16384
16572    #
16573    if test -x /sbin/sysconfig; then
16574      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
16575        *1*) lt_cv_sys_max_cmd_len=-1 ;;
16576      esac
16577    fi
16578    ;;
16579  sco3.2v5*)
16580    lt_cv_sys_max_cmd_len=102400
16581    ;;
16582  sysv5* | sco5v6* | sysv4.2uw2*)
16583    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
16584    if test -n "$kargmax"; then
16585      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
16586    else
16587      lt_cv_sys_max_cmd_len=32768
16588    fi
16589    ;;
16590  *)
16591    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
16592    if test -n "$lt_cv_sys_max_cmd_len" && \
16593       test undefined != "$lt_cv_sys_max_cmd_len"; then
16594      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16595      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16596    else
16597      # Make teststring a little bigger before we do anything with it.
16598      # a 1K string should be a reasonable start.
16599      for i in 1 2 3 4 5 6 7 8; do
16600        teststring=$teststring$teststring
16601      done
16602      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
16603      # If test is not a shell built-in, we'll probably end up computing a
16604      # maximum length that is only half of the actual maximum length, but
16605      # we can't tell.
16606      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
16607	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
16608	      test 17 != "$i" # 1/2 MB should be enough
16609      do
16610        i=`expr $i + 1`
16611        teststring=$teststring$teststring
16612      done
16613      # Only check the string length outside the loop.
16614      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
16615      teststring=
16616      # Add a significant safety factor because C++ compilers can tack on
16617      # massive amounts of additional arguments before passing them to the
16618      # linker.  It appears as though 1/2 is a usable value.
16619      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16620    fi
16621    ;;
16622  esac
16623
16624fi
16625
16626if test -n "$lt_cv_sys_max_cmd_len"; then
16627  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
16628printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
16629else
16630  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
16631printf "%s\n" "none" >&6; }
16632fi
16633max_cmd_len=$lt_cv_sys_max_cmd_len
16634
16635
16636
16637
16638
16639
16640: ${CP="cp -f"}
16641: ${MV="mv -f"}
16642: ${RM="rm -f"}
16643
16644if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16645  lt_unset=unset
16646else
16647  lt_unset=false
16648fi
16649
16650
16651
16652
16653
16654# test EBCDIC or ASCII
16655case `echo X|tr X '\101'` in
16656 A) # ASCII based system
16657    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
16658  lt_SP2NL='tr \040 \012'
16659  lt_NL2SP='tr \015\012 \040\040'
16660  ;;
16661 *) # EBCDIC based system
16662  lt_SP2NL='tr \100 \n'
16663  lt_NL2SP='tr \r\n \100\100'
16664  ;;
16665esac
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
16676printf %s "checking how to convert $build file names to $host format... " >&6; }
16677if test ${lt_cv_to_host_file_cmd+y}
16678then :
16679  printf %s "(cached) " >&6
16680else $as_nop
16681  case $host in
16682  *-*-mingw* )
16683    case $build in
16684      *-*-mingw* ) # actually msys
16685        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
16686        ;;
16687      *-*-cygwin* )
16688        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
16689        ;;
16690      * ) # otherwise, assume *nix
16691        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
16692        ;;
16693    esac
16694    ;;
16695  *-*-cygwin* )
16696    case $build in
16697      *-*-mingw* ) # actually msys
16698        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
16699        ;;
16700      *-*-cygwin* )
16701        lt_cv_to_host_file_cmd=func_convert_file_noop
16702        ;;
16703      * ) # otherwise, assume *nix
16704        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
16705        ;;
16706    esac
16707    ;;
16708  * ) # unhandled hosts (and "normal" native builds)
16709    lt_cv_to_host_file_cmd=func_convert_file_noop
16710    ;;
16711esac
16712
16713fi
16714
16715to_host_file_cmd=$lt_cv_to_host_file_cmd
16716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
16717printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
16718
16719
16720
16721
16722
16723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
16724printf %s "checking how to convert $build file names to toolchain format... " >&6; }
16725if test ${lt_cv_to_tool_file_cmd+y}
16726then :
16727  printf %s "(cached) " >&6
16728else $as_nop
16729  #assume ordinary cross tools, or native build.
16730lt_cv_to_tool_file_cmd=func_convert_file_noop
16731case $host in
16732  *-*-mingw* )
16733    case $build in
16734      *-*-mingw* ) # actually msys
16735        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
16736        ;;
16737    esac
16738    ;;
16739esac
16740
16741fi
16742
16743to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
16745printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
16746
16747
16748
16749
16750
16751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
16752printf %s "checking for $LD option to reload object files... " >&6; }
16753if test ${lt_cv_ld_reload_flag+y}
16754then :
16755  printf %s "(cached) " >&6
16756else $as_nop
16757  lt_cv_ld_reload_flag='-r'
16758fi
16759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
16760printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
16761reload_flag=$lt_cv_ld_reload_flag
16762case $reload_flag in
16763"" | " "*) ;;
16764*) reload_flag=" $reload_flag" ;;
16765esac
16766reload_cmds='$LD$reload_flag -o $output$reload_objs'
16767case $host_os in
16768  cygwin* | mingw* | pw32* | cegcc*)
16769    if test yes != "$GCC"; then
16770      reload_cmds=false
16771    fi
16772    ;;
16773  darwin*)
16774    if test yes = "$GCC"; then
16775      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
16776    else
16777      reload_cmds='$LD$reload_flag -o $output$reload_objs'
16778    fi
16779    ;;
16780esac
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790if test -n "$ac_tool_prefix"; then
16791  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16792set dummy ${ac_tool_prefix}objdump; ac_word=$2
16793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16794printf %s "checking for $ac_word... " >&6; }
16795if test ${ac_cv_prog_OBJDUMP+y}
16796then :
16797  printf %s "(cached) " >&6
16798else $as_nop
16799  if test -n "$OBJDUMP"; then
16800  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16801else
16802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16803for as_dir in $PATH
16804do
16805  IFS=$as_save_IFS
16806  case $as_dir in #(((
16807    '') as_dir=./ ;;
16808    */) ;;
16809    *) as_dir=$as_dir/ ;;
16810  esac
16811    for ac_exec_ext in '' $ac_executable_extensions; do
16812  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16813    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16814    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16815    break 2
16816  fi
16817done
16818  done
16819IFS=$as_save_IFS
16820
16821fi
16822fi
16823OBJDUMP=$ac_cv_prog_OBJDUMP
16824if test -n "$OBJDUMP"; then
16825  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16826printf "%s\n" "$OBJDUMP" >&6; }
16827else
16828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16829printf "%s\n" "no" >&6; }
16830fi
16831
16832
16833fi
16834if test -z "$ac_cv_prog_OBJDUMP"; then
16835  ac_ct_OBJDUMP=$OBJDUMP
16836  # Extract the first word of "objdump", so it can be a program name with args.
16837set dummy objdump; ac_word=$2
16838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16839printf %s "checking for $ac_word... " >&6; }
16840if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
16841then :
16842  printf %s "(cached) " >&6
16843else $as_nop
16844  if test -n "$ac_ct_OBJDUMP"; then
16845  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16846else
16847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16848for as_dir in $PATH
16849do
16850  IFS=$as_save_IFS
16851  case $as_dir in #(((
16852    '') as_dir=./ ;;
16853    */) ;;
16854    *) as_dir=$as_dir/ ;;
16855  esac
16856    for ac_exec_ext in '' $ac_executable_extensions; do
16857  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16858    ac_cv_prog_ac_ct_OBJDUMP="objdump"
16859    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16860    break 2
16861  fi
16862done
16863  done
16864IFS=$as_save_IFS
16865
16866fi
16867fi
16868ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16869if test -n "$ac_ct_OBJDUMP"; then
16870  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16871printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
16872else
16873  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16874printf "%s\n" "no" >&6; }
16875fi
16876
16877  if test "x$ac_ct_OBJDUMP" = x; then
16878    OBJDUMP="false"
16879  else
16880    case $cross_compiling:$ac_tool_warned in
16881yes:)
16882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16883printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16884ac_tool_warned=yes ;;
16885esac
16886    OBJDUMP=$ac_ct_OBJDUMP
16887  fi
16888else
16889  OBJDUMP="$ac_cv_prog_OBJDUMP"
16890fi
16891
16892test -z "$OBJDUMP" && OBJDUMP=objdump
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
16903printf %s "checking how to recognize dependent libraries... " >&6; }
16904if test ${lt_cv_deplibs_check_method+y}
16905then :
16906  printf %s "(cached) " >&6
16907else $as_nop
16908  lt_cv_file_magic_cmd='$MAGIC_CMD'
16909lt_cv_file_magic_test_file=
16910lt_cv_deplibs_check_method='unknown'
16911# Need to set the preceding variable on all platforms that support
16912# interlibrary dependencies.
16913# 'none' -- dependencies not supported.
16914# 'unknown' -- same as none, but documents that we really don't know.
16915# 'pass_all' -- all dependencies passed with no checks.
16916# 'test_compile' -- check by making test program.
16917# 'file_magic [[regex]]' -- check by looking for files in library path
16918# that responds to the $file_magic_cmd with a given extended regex.
16919# If you have 'file' or equivalent on your system and you're not sure
16920# whether 'pass_all' will *always* work, you probably want this one.
16921
16922case $host_os in
16923aix[4-9]*)
16924  lt_cv_deplibs_check_method=pass_all
16925  ;;
16926
16927beos*)
16928  lt_cv_deplibs_check_method=pass_all
16929  ;;
16930
16931bsdi[45]*)
16932  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
16933  lt_cv_file_magic_cmd='/usr/bin/file -L'
16934  lt_cv_file_magic_test_file=/shlib/libc.so
16935  ;;
16936
16937cygwin*)
16938  # func_win32_libid is a shell function defined in ltmain.sh
16939  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16940  lt_cv_file_magic_cmd='func_win32_libid'
16941  ;;
16942
16943mingw* | pw32*)
16944  # Base MSYS/MinGW do not provide the 'file' command needed by
16945  # func_win32_libid shell function, so use a weaker test based on 'objdump',
16946  # unless we find 'file', for example because we are cross-compiling.
16947  if ( file / ) >/dev/null 2>&1; then
16948    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16949    lt_cv_file_magic_cmd='func_win32_libid'
16950  else
16951    # Keep this pattern in sync with the one in func_win32_libid.
16952    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
16953    lt_cv_file_magic_cmd='$OBJDUMP -f'
16954  fi
16955  ;;
16956
16957cegcc*)
16958  # use the weaker test based on 'objdump'. See mingw*.
16959  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
16960  lt_cv_file_magic_cmd='$OBJDUMP -f'
16961  ;;
16962
16963darwin* | rhapsody*)
16964  lt_cv_deplibs_check_method=pass_all
16965  ;;
16966
16967freebsd* | dragonfly*)
16968  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16969    case $host_cpu in
16970    i*86 )
16971      # Not sure whether the presence of OpenBSD here was a mistake.
16972      # Let's accept both of them until this is cleared up.
16973      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
16974      lt_cv_file_magic_cmd=/usr/bin/file
16975      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
16976      ;;
16977    esac
16978  else
16979    lt_cv_deplibs_check_method=pass_all
16980  fi
16981  ;;
16982
16983haiku*)
16984  lt_cv_deplibs_check_method=pass_all
16985  ;;
16986
16987hpux10.20* | hpux11*)
16988  lt_cv_file_magic_cmd=/usr/bin/file
16989  case $host_cpu in
16990  ia64*)
16991    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
16992    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
16993    ;;
16994  hppa*64*)
16995    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]'
16996    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
16997    ;;
16998  *)
16999    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
17000    lt_cv_file_magic_test_file=/usr/lib/libc.sl
17001    ;;
17002  esac
17003  ;;
17004
17005interix[3-9]*)
17006  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
17007  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
17008  ;;
17009
17010irix5* | irix6* | nonstopux*)
17011  case $LD in
17012  *-32|*"-32 ") libmagic=32-bit;;
17013  *-n32|*"-n32 ") libmagic=N32;;
17014  *-64|*"-64 ") libmagic=64-bit;;
17015  *) libmagic=never-match;;
17016  esac
17017  lt_cv_deplibs_check_method=pass_all
17018  ;;
17019
17020# This must be glibc/ELF.
17021linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17022  lt_cv_deplibs_check_method=pass_all
17023  ;;
17024
17025netbsd*)
17026  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
17027    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
17028  else
17029    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
17030  fi
17031  ;;
17032
17033newos6*)
17034  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
17035  lt_cv_file_magic_cmd=/usr/bin/file
17036  lt_cv_file_magic_test_file=/usr/lib/libnls.so
17037  ;;
17038
17039*nto* | *qnx*)
17040  lt_cv_deplibs_check_method=pass_all
17041  ;;
17042
17043openbsd* | bitrig*)
17044  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17045    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
17046  else
17047    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
17048  fi
17049  ;;
17050
17051osf3* | osf4* | osf5*)
17052  lt_cv_deplibs_check_method=pass_all
17053  ;;
17054
17055rdos*)
17056  lt_cv_deplibs_check_method=pass_all
17057  ;;
17058
17059solaris*)
17060  lt_cv_deplibs_check_method=pass_all
17061  ;;
17062
17063sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17064  lt_cv_deplibs_check_method=pass_all
17065  ;;
17066
17067sysv4 | sysv4.3*)
17068  case $host_vendor in
17069  motorola)
17070    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]'
17071    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
17072    ;;
17073  ncr)
17074    lt_cv_deplibs_check_method=pass_all
17075    ;;
17076  sequent)
17077    lt_cv_file_magic_cmd='/bin/file'
17078    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
17079    ;;
17080  sni)
17081    lt_cv_file_magic_cmd='/bin/file'
17082    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
17083    lt_cv_file_magic_test_file=/lib/libc.so
17084    ;;
17085  siemens)
17086    lt_cv_deplibs_check_method=pass_all
17087    ;;
17088  pc)
17089    lt_cv_deplibs_check_method=pass_all
17090    ;;
17091  esac
17092  ;;
17093
17094tpf*)
17095  lt_cv_deplibs_check_method=pass_all
17096  ;;
17097os2*)
17098  lt_cv_deplibs_check_method=pass_all
17099  ;;
17100esac
17101
17102fi
17103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
17104printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
17105
17106file_magic_glob=
17107want_nocaseglob=no
17108if test "$build" = "$host"; then
17109  case $host_os in
17110  mingw* | pw32*)
17111    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
17112      want_nocaseglob=yes
17113    else
17114      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
17115    fi
17116    ;;
17117  esac
17118fi
17119
17120file_magic_cmd=$lt_cv_file_magic_cmd
17121deplibs_check_method=$lt_cv_deplibs_check_method
17122test -z "$deplibs_check_method" && deplibs_check_method=unknown
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145if test -n "$ac_tool_prefix"; then
17146  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
17147set dummy ${ac_tool_prefix}dlltool; ac_word=$2
17148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17149printf %s "checking for $ac_word... " >&6; }
17150if test ${ac_cv_prog_DLLTOOL+y}
17151then :
17152  printf %s "(cached) " >&6
17153else $as_nop
17154  if test -n "$DLLTOOL"; then
17155  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17156else
17157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17158for as_dir in $PATH
17159do
17160  IFS=$as_save_IFS
17161  case $as_dir in #(((
17162    '') as_dir=./ ;;
17163    */) ;;
17164    *) as_dir=$as_dir/ ;;
17165  esac
17166    for ac_exec_ext in '' $ac_executable_extensions; do
17167  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17168    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
17169    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17170    break 2
17171  fi
17172done
17173  done
17174IFS=$as_save_IFS
17175
17176fi
17177fi
17178DLLTOOL=$ac_cv_prog_DLLTOOL
17179if test -n "$DLLTOOL"; then
17180  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
17181printf "%s\n" "$DLLTOOL" >&6; }
17182else
17183  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17184printf "%s\n" "no" >&6; }
17185fi
17186
17187
17188fi
17189if test -z "$ac_cv_prog_DLLTOOL"; then
17190  ac_ct_DLLTOOL=$DLLTOOL
17191  # Extract the first word of "dlltool", so it can be a program name with args.
17192set dummy dlltool; ac_word=$2
17193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17194printf %s "checking for $ac_word... " >&6; }
17195if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
17196then :
17197  printf %s "(cached) " >&6
17198else $as_nop
17199  if test -n "$ac_ct_DLLTOOL"; then
17200  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
17201else
17202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17203for as_dir in $PATH
17204do
17205  IFS=$as_save_IFS
17206  case $as_dir in #(((
17207    '') as_dir=./ ;;
17208    */) ;;
17209    *) as_dir=$as_dir/ ;;
17210  esac
17211    for ac_exec_ext in '' $ac_executable_extensions; do
17212  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17213    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
17214    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17215    break 2
17216  fi
17217done
17218  done
17219IFS=$as_save_IFS
17220
17221fi
17222fi
17223ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
17224if test -n "$ac_ct_DLLTOOL"; then
17225  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
17226printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
17227else
17228  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17229printf "%s\n" "no" >&6; }
17230fi
17231
17232  if test "x$ac_ct_DLLTOOL" = x; then
17233    DLLTOOL="false"
17234  else
17235    case $cross_compiling:$ac_tool_warned in
17236yes:)
17237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17238printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17239ac_tool_warned=yes ;;
17240esac
17241    DLLTOOL=$ac_ct_DLLTOOL
17242  fi
17243else
17244  DLLTOOL="$ac_cv_prog_DLLTOOL"
17245fi
17246
17247test -z "$DLLTOOL" && DLLTOOL=dlltool
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
17259printf %s "checking how to associate runtime and link libraries... " >&6; }
17260if test ${lt_cv_sharedlib_from_linklib_cmd+y}
17261then :
17262  printf %s "(cached) " >&6
17263else $as_nop
17264  lt_cv_sharedlib_from_linklib_cmd='unknown'
17265
17266case $host_os in
17267cygwin* | mingw* | pw32* | cegcc*)
17268  # two different shell functions defined in ltmain.sh;
17269  # decide which one to use based on capabilities of $DLLTOOL
17270  case `$DLLTOOL --help 2>&1` in
17271  *--identify-strict*)
17272    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
17273    ;;
17274  *)
17275    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
17276    ;;
17277  esac
17278  ;;
17279*)
17280  # fallback: assume linklib IS sharedlib
17281  lt_cv_sharedlib_from_linklib_cmd=$ECHO
17282  ;;
17283esac
17284
17285fi
17286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
17287printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
17288sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
17289test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
17290
17291
17292
17293
17294
17295
17296
17297if test -n "$ac_tool_prefix"; then
17298  for ac_prog in ar
17299  do
17300    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17301set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17303printf %s "checking for $ac_word... " >&6; }
17304if test ${ac_cv_prog_AR+y}
17305then :
17306  printf %s "(cached) " >&6
17307else $as_nop
17308  if test -n "$AR"; then
17309  ac_cv_prog_AR="$AR" # Let the user override the test.
17310else
17311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17312for as_dir in $PATH
17313do
17314  IFS=$as_save_IFS
17315  case $as_dir in #(((
17316    '') as_dir=./ ;;
17317    */) ;;
17318    *) as_dir=$as_dir/ ;;
17319  esac
17320    for ac_exec_ext in '' $ac_executable_extensions; do
17321  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17322    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
17323    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17324    break 2
17325  fi
17326done
17327  done
17328IFS=$as_save_IFS
17329
17330fi
17331fi
17332AR=$ac_cv_prog_AR
17333if test -n "$AR"; then
17334  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
17335printf "%s\n" "$AR" >&6; }
17336else
17337  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17338printf "%s\n" "no" >&6; }
17339fi
17340
17341
17342    test -n "$AR" && break
17343  done
17344fi
17345if test -z "$AR"; then
17346  ac_ct_AR=$AR
17347  for ac_prog in ar
17348do
17349  # Extract the first word of "$ac_prog", so it can be a program name with args.
17350set dummy $ac_prog; ac_word=$2
17351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17352printf %s "checking for $ac_word... " >&6; }
17353if test ${ac_cv_prog_ac_ct_AR+y}
17354then :
17355  printf %s "(cached) " >&6
17356else $as_nop
17357  if test -n "$ac_ct_AR"; then
17358  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
17359else
17360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17361for as_dir in $PATH
17362do
17363  IFS=$as_save_IFS
17364  case $as_dir in #(((
17365    '') as_dir=./ ;;
17366    */) ;;
17367    *) as_dir=$as_dir/ ;;
17368  esac
17369    for ac_exec_ext in '' $ac_executable_extensions; do
17370  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17371    ac_cv_prog_ac_ct_AR="$ac_prog"
17372    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17373    break 2
17374  fi
17375done
17376  done
17377IFS=$as_save_IFS
17378
17379fi
17380fi
17381ac_ct_AR=$ac_cv_prog_ac_ct_AR
17382if test -n "$ac_ct_AR"; then
17383  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
17384printf "%s\n" "$ac_ct_AR" >&6; }
17385else
17386  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17387printf "%s\n" "no" >&6; }
17388fi
17389
17390
17391  test -n "$ac_ct_AR" && break
17392done
17393
17394  if test "x$ac_ct_AR" = x; then
17395    AR="false"
17396  else
17397    case $cross_compiling:$ac_tool_warned in
17398yes:)
17399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17400printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17401ac_tool_warned=yes ;;
17402esac
17403    AR=$ac_ct_AR
17404  fi
17405fi
17406
17407: ${AR=ar}
17408: ${AR_FLAGS=cru}
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
17421printf %s "checking for archiver @FILE support... " >&6; }
17422if test ${lt_cv_ar_at_file+y}
17423then :
17424  printf %s "(cached) " >&6
17425else $as_nop
17426  lt_cv_ar_at_file=no
17427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17428/* end confdefs.h.  */
17429
17430int
17431main (void)
17432{
17433
17434  ;
17435  return 0;
17436}
17437_ACEOF
17438if ac_fn_c_try_compile "$LINENO"
17439then :
17440  echo conftest.$ac_objext > conftest.lst
17441      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
17442      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
17443  (eval $lt_ar_try) 2>&5
17444  ac_status=$?
17445  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17446  test $ac_status = 0; }
17447      if test 0 -eq "$ac_status"; then
17448	# Ensure the archiver fails upon bogus file names.
17449	rm -f conftest.$ac_objext libconftest.a
17450	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
17451  (eval $lt_ar_try) 2>&5
17452  ac_status=$?
17453  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17454  test $ac_status = 0; }
17455	if test 0 -ne "$ac_status"; then
17456          lt_cv_ar_at_file=@
17457        fi
17458      fi
17459      rm -f conftest.* libconftest.a
17460
17461fi
17462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17463
17464fi
17465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
17466printf "%s\n" "$lt_cv_ar_at_file" >&6; }
17467
17468if test no = "$lt_cv_ar_at_file"; then
17469  archiver_list_spec=
17470else
17471  archiver_list_spec=$lt_cv_ar_at_file
17472fi
17473
17474
17475
17476
17477
17478
17479
17480if test -n "$ac_tool_prefix"; then
17481  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
17482set dummy ${ac_tool_prefix}strip; ac_word=$2
17483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17484printf %s "checking for $ac_word... " >&6; }
17485if test ${ac_cv_prog_STRIP+y}
17486then :
17487  printf %s "(cached) " >&6
17488else $as_nop
17489  if test -n "$STRIP"; then
17490  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
17491else
17492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17493for as_dir in $PATH
17494do
17495  IFS=$as_save_IFS
17496  case $as_dir in #(((
17497    '') as_dir=./ ;;
17498    */) ;;
17499    *) as_dir=$as_dir/ ;;
17500  esac
17501    for ac_exec_ext in '' $ac_executable_extensions; do
17502  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17503    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
17504    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17505    break 2
17506  fi
17507done
17508  done
17509IFS=$as_save_IFS
17510
17511fi
17512fi
17513STRIP=$ac_cv_prog_STRIP
17514if test -n "$STRIP"; then
17515  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
17516printf "%s\n" "$STRIP" >&6; }
17517else
17518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17519printf "%s\n" "no" >&6; }
17520fi
17521
17522
17523fi
17524if test -z "$ac_cv_prog_STRIP"; then
17525  ac_ct_STRIP=$STRIP
17526  # Extract the first word of "strip", so it can be a program name with args.
17527set dummy strip; ac_word=$2
17528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17529printf %s "checking for $ac_word... " >&6; }
17530if test ${ac_cv_prog_ac_ct_STRIP+y}
17531then :
17532  printf %s "(cached) " >&6
17533else $as_nop
17534  if test -n "$ac_ct_STRIP"; then
17535  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
17536else
17537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17538for as_dir in $PATH
17539do
17540  IFS=$as_save_IFS
17541  case $as_dir in #(((
17542    '') as_dir=./ ;;
17543    */) ;;
17544    *) as_dir=$as_dir/ ;;
17545  esac
17546    for ac_exec_ext in '' $ac_executable_extensions; do
17547  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17548    ac_cv_prog_ac_ct_STRIP="strip"
17549    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17550    break 2
17551  fi
17552done
17553  done
17554IFS=$as_save_IFS
17555
17556fi
17557fi
17558ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
17559if test -n "$ac_ct_STRIP"; then
17560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
17561printf "%s\n" "$ac_ct_STRIP" >&6; }
17562else
17563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17564printf "%s\n" "no" >&6; }
17565fi
17566
17567  if test "x$ac_ct_STRIP" = x; then
17568    STRIP=":"
17569  else
17570    case $cross_compiling:$ac_tool_warned in
17571yes:)
17572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17573printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17574ac_tool_warned=yes ;;
17575esac
17576    STRIP=$ac_ct_STRIP
17577  fi
17578else
17579  STRIP="$ac_cv_prog_STRIP"
17580fi
17581
17582test -z "$STRIP" && STRIP=:
17583
17584
17585
17586
17587
17588
17589if test -n "$ac_tool_prefix"; then
17590  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17591set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17593printf %s "checking for $ac_word... " >&6; }
17594if test ${ac_cv_prog_RANLIB+y}
17595then :
17596  printf %s "(cached) " >&6
17597else $as_nop
17598  if test -n "$RANLIB"; then
17599  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17600else
17601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17602for as_dir in $PATH
17603do
17604  IFS=$as_save_IFS
17605  case $as_dir in #(((
17606    '') as_dir=./ ;;
17607    */) ;;
17608    *) as_dir=$as_dir/ ;;
17609  esac
17610    for ac_exec_ext in '' $ac_executable_extensions; do
17611  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17612    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17613    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17614    break 2
17615  fi
17616done
17617  done
17618IFS=$as_save_IFS
17619
17620fi
17621fi
17622RANLIB=$ac_cv_prog_RANLIB
17623if test -n "$RANLIB"; then
17624  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17625printf "%s\n" "$RANLIB" >&6; }
17626else
17627  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17628printf "%s\n" "no" >&6; }
17629fi
17630
17631
17632fi
17633if test -z "$ac_cv_prog_RANLIB"; then
17634  ac_ct_RANLIB=$RANLIB
17635  # Extract the first word of "ranlib", so it can be a program name with args.
17636set dummy ranlib; ac_word=$2
17637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17638printf %s "checking for $ac_word... " >&6; }
17639if test ${ac_cv_prog_ac_ct_RANLIB+y}
17640then :
17641  printf %s "(cached) " >&6
17642else $as_nop
17643  if test -n "$ac_ct_RANLIB"; then
17644  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17645else
17646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17647for as_dir in $PATH
17648do
17649  IFS=$as_save_IFS
17650  case $as_dir in #(((
17651    '') as_dir=./ ;;
17652    */) ;;
17653    *) as_dir=$as_dir/ ;;
17654  esac
17655    for ac_exec_ext in '' $ac_executable_extensions; do
17656  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17657    ac_cv_prog_ac_ct_RANLIB="ranlib"
17658    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17659    break 2
17660  fi
17661done
17662  done
17663IFS=$as_save_IFS
17664
17665fi
17666fi
17667ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17668if test -n "$ac_ct_RANLIB"; then
17669  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17670printf "%s\n" "$ac_ct_RANLIB" >&6; }
17671else
17672  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17673printf "%s\n" "no" >&6; }
17674fi
17675
17676  if test "x$ac_ct_RANLIB" = x; then
17677    RANLIB=":"
17678  else
17679    case $cross_compiling:$ac_tool_warned in
17680yes:)
17681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17682printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17683ac_tool_warned=yes ;;
17684esac
17685    RANLIB=$ac_ct_RANLIB
17686  fi
17687else
17688  RANLIB="$ac_cv_prog_RANLIB"
17689fi
17690
17691test -z "$RANLIB" && RANLIB=:
17692
17693
17694
17695
17696
17697
17698# Determine commands to create old-style static archives.
17699old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
17700old_postinstall_cmds='chmod 644 $oldlib'
17701old_postuninstall_cmds=
17702
17703if test -n "$RANLIB"; then
17704  case $host_os in
17705  bitrig* | openbsd*)
17706    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
17707    ;;
17708  *)
17709    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
17710    ;;
17711  esac
17712  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
17713fi
17714
17715case $host_os in
17716  darwin*)
17717    lock_old_archive_extraction=yes ;;
17718  *)
17719    lock_old_archive_extraction=no ;;
17720esac
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760# If no C compiler was specified, use CC.
17761LTCC=${LTCC-"$CC"}
17762
17763# If no C compiler flags were specified, use CFLAGS.
17764LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17765
17766# Allow CC to be a program name with arguments.
17767compiler=$CC
17768
17769
17770# Check for command to grab the raw symbol name followed by C symbol from nm.
17771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
17772printf %s "checking command to parse $NM output from $compiler object... " >&6; }
17773if test ${lt_cv_sys_global_symbol_pipe+y}
17774then :
17775  printf %s "(cached) " >&6
17776else $as_nop
17777
17778# These are sane defaults that work on at least a few old systems.
17779# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
17780
17781# Character class describing NM global symbol codes.
17782symcode='[BCDEGRST]'
17783
17784# Regexp to match symbols that can be accessed directly from C.
17785sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
17786
17787# Define system-specific variables.
17788case $host_os in
17789aix*)
17790  symcode='[BCDT]'
17791  ;;
17792cygwin* | mingw* | pw32* | cegcc*)
17793  symcode='[ABCDGISTW]'
17794  ;;
17795hpux*)
17796  if test ia64 = "$host_cpu"; then
17797    symcode='[ABCDEGRST]'
17798  fi
17799  ;;
17800irix* | nonstopux*)
17801  symcode='[BCDEGRST]'
17802  ;;
17803osf*)
17804  symcode='[BCDEGQRST]'
17805  ;;
17806solaris*)
17807  symcode='[BDRT]'
17808  ;;
17809sco3.2v5*)
17810  symcode='[DT]'
17811  ;;
17812sysv4.2uw2*)
17813  symcode='[DT]'
17814  ;;
17815sysv5* | sco5v6* | unixware* | OpenUNIX*)
17816  symcode='[ABDT]'
17817  ;;
17818sysv4)
17819  symcode='[DFNSTU]'
17820  ;;
17821esac
17822
17823# If we're using GNU nm, then use its standard symbol codes.
17824case `$NM -V 2>&1` in
17825*GNU* | *'with BFD'*)
17826  symcode='[ABCDGIRSTW]' ;;
17827esac
17828
17829if test "$lt_cv_nm_interface" = "MS dumpbin"; then
17830  # Gets list of data symbols to import.
17831  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
17832  # Adjust the below global symbol transforms to fixup imported variables.
17833  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
17834  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
17835  lt_c_name_lib_hook="\
17836  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
17837  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
17838else
17839  # Disable hooks by default.
17840  lt_cv_sys_global_symbol_to_import=
17841  lt_cdecl_hook=
17842  lt_c_name_hook=
17843  lt_c_name_lib_hook=
17844fi
17845
17846# Transform an extracted symbol line into a proper C declaration.
17847# Some systems (esp. on ia64) link data and code symbols differently,
17848# so use this general approach.
17849lt_cv_sys_global_symbol_to_cdecl="sed -n"\
17850$lt_cdecl_hook\
17851" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
17852" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
17853
17854# Transform an extracted symbol line into symbol name and symbol address
17855lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
17856$lt_c_name_hook\
17857" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
17858" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
17859
17860# Transform an extracted symbol line into symbol name with lib prefix and
17861# symbol address.
17862lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
17863$lt_c_name_lib_hook\
17864" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
17865" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
17866" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
17867
17868# Handle CRLF in mingw tool chain
17869opt_cr=
17870case $build_os in
17871mingw*)
17872  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
17873  ;;
17874esac
17875
17876# Try without a prefix underscore, then with it.
17877for ac_symprfx in "" "_"; do
17878
17879  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
17880  symxfrm="\\1 $ac_symprfx\\2 \\2"
17881
17882  # Write the raw and C identifiers.
17883  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
17884    # Fake it for dumpbin and say T for any non-static function,
17885    # D for any global variable and I for any imported variable.
17886    # Also find C++ and __fastcall symbols from MSVC++,
17887    # which start with @ or ?.
17888    lt_cv_sys_global_symbol_pipe="$AWK '"\
17889"     {last_section=section; section=\$ 3};"\
17890"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
17891"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
17892"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
17893"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
17894"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
17895"     \$ 0!~/External *\|/{next};"\
17896"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
17897"     {if(hide[section]) next};"\
17898"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
17899"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
17900"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
17901"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
17902"     ' prfx=^$ac_symprfx"
17903  else
17904    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
17905  fi
17906  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
17907
17908  # Check to see that the pipe works correctly.
17909  pipe_works=no
17910
17911  rm -f conftest*
17912  cat > conftest.$ac_ext <<_LT_EOF
17913#ifdef __cplusplus
17914extern "C" {
17915#endif
17916char nm_test_var;
17917void nm_test_func(void);
17918void nm_test_func(void){}
17919#ifdef __cplusplus
17920}
17921#endif
17922int main(){nm_test_var='a';nm_test_func();return(0);}
17923_LT_EOF
17924
17925  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17926  (eval $ac_compile) 2>&5
17927  ac_status=$?
17928  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17929  test $ac_status = 0; }; then
17930    # Now try to grab the symbols.
17931    nlist=conftest.nm
17932    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
17933  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
17934  ac_status=$?
17935  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17936  test $ac_status = 0; } && test -s "$nlist"; then
17937      # Try sorting and uniquifying the output.
17938      if sort "$nlist" | uniq > "$nlist"T; then
17939	mv -f "$nlist"T "$nlist"
17940      else
17941	rm -f "$nlist"T
17942      fi
17943
17944      # Make sure that we snagged all the symbols we need.
17945      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
17946	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
17947	  cat <<_LT_EOF > conftest.$ac_ext
17948/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
17949#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
17950/* DATA imports from DLLs on WIN32 can't be const, because runtime
17951   relocations are performed -- see ld's documentation on pseudo-relocs.  */
17952# define LT_DLSYM_CONST
17953#elif defined __osf__
17954/* This system does not cope well with relocations in const data.  */
17955# define LT_DLSYM_CONST
17956#else
17957# define LT_DLSYM_CONST const
17958#endif
17959
17960#ifdef __cplusplus
17961extern "C" {
17962#endif
17963
17964_LT_EOF
17965	  # Now generate the symbol file.
17966	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
17967
17968	  cat <<_LT_EOF >> conftest.$ac_ext
17969
17970/* The mapping between symbol names and symbols.  */
17971LT_DLSYM_CONST struct {
17972  const char *name;
17973  void       *address;
17974}
17975lt__PROGRAM__LTX_preloaded_symbols[] =
17976{
17977  { "@PROGRAM@", (void *) 0 },
17978_LT_EOF
17979	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
17980	  cat <<\_LT_EOF >> conftest.$ac_ext
17981  {0, (void *) 0}
17982};
17983
17984/* This works around a problem in FreeBSD linker */
17985#ifdef FREEBSD_WORKAROUND
17986static const void *lt_preloaded_setup() {
17987  return lt__PROGRAM__LTX_preloaded_symbols;
17988}
17989#endif
17990
17991#ifdef __cplusplus
17992}
17993#endif
17994_LT_EOF
17995	  # Now try linking the two files.
17996	  mv conftest.$ac_objext conftstm.$ac_objext
17997	  lt_globsym_save_LIBS=$LIBS
17998	  lt_globsym_save_CFLAGS=$CFLAGS
17999	  LIBS=conftstm.$ac_objext
18000	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
18001	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18002  (eval $ac_link) 2>&5
18003  ac_status=$?
18004  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18005  test $ac_status = 0; } && test -s conftest$ac_exeext; then
18006	    pipe_works=yes
18007	  fi
18008	  LIBS=$lt_globsym_save_LIBS
18009	  CFLAGS=$lt_globsym_save_CFLAGS
18010	else
18011	  echo "cannot find nm_test_func in $nlist" >&5
18012	fi
18013      else
18014	echo "cannot find nm_test_var in $nlist" >&5
18015      fi
18016    else
18017      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
18018    fi
18019  else
18020    echo "$progname: failed program was:" >&5
18021    cat conftest.$ac_ext >&5
18022  fi
18023  rm -rf conftest* conftst*
18024
18025  # Do not use the global_symbol_pipe unless it works.
18026  if test yes = "$pipe_works"; then
18027    break
18028  else
18029    lt_cv_sys_global_symbol_pipe=
18030  fi
18031done
18032
18033fi
18034
18035if test -z "$lt_cv_sys_global_symbol_pipe"; then
18036  lt_cv_sys_global_symbol_to_cdecl=
18037fi
18038if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
18039  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
18040printf "%s\n" "failed" >&6; }
18041else
18042  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18043printf "%s\n" "ok" >&6; }
18044fi
18045
18046# Response file support.
18047if test "$lt_cv_nm_interface" = "MS dumpbin"; then
18048  nm_file_list_spec='@'
18049elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
18050  nm_file_list_spec='@'
18051fi
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
18090printf %s "checking for sysroot... " >&6; }
18091
18092# Check whether --with-sysroot was given.
18093if test ${with_sysroot+y}
18094then :
18095  withval=$with_sysroot;
18096else $as_nop
18097  with_sysroot=no
18098fi
18099
18100
18101lt_sysroot=
18102case $with_sysroot in #(
18103 yes)
18104   if test yes = "$GCC"; then
18105     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
18106   fi
18107   ;; #(
18108 /*)
18109   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
18110   ;; #(
18111 no|'')
18112   ;; #(
18113 *)
18114   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
18115printf "%s\n" "$with_sysroot" >&6; }
18116   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
18117   ;;
18118esac
18119
18120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
18121printf "%s\n" "${lt_sysroot:-no}" >&6; }
18122
18123
18124
18125
18126
18127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
18128printf %s "checking for a working dd... " >&6; }
18129if test ${ac_cv_path_lt_DD+y}
18130then :
18131  printf %s "(cached) " >&6
18132else $as_nop
18133  printf 0123456789abcdef0123456789abcdef >conftest.i
18134cat conftest.i conftest.i >conftest2.i
18135: ${lt_DD:=$DD}
18136if test -z "$lt_DD"; then
18137  ac_path_lt_DD_found=false
18138  # Loop through the user's path and test for each of PROGNAME-LIST
18139  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18140for as_dir in $PATH
18141do
18142  IFS=$as_save_IFS
18143  case $as_dir in #(((
18144    '') as_dir=./ ;;
18145    */) ;;
18146    *) as_dir=$as_dir/ ;;
18147  esac
18148    for ac_prog in dd
18149   do
18150    for ac_exec_ext in '' $ac_executable_extensions; do
18151      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
18152      as_fn_executable_p "$ac_path_lt_DD" || continue
18153if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
18154  cmp -s conftest.i conftest.out \
18155  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
18156fi
18157      $ac_path_lt_DD_found && break 3
18158    done
18159  done
18160  done
18161IFS=$as_save_IFS
18162  if test -z "$ac_cv_path_lt_DD"; then
18163    :
18164  fi
18165else
18166  ac_cv_path_lt_DD=$lt_DD
18167fi
18168
18169rm -f conftest.i conftest2.i conftest.out
18170fi
18171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
18172printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
18173
18174
18175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
18176printf %s "checking how to truncate binary pipes... " >&6; }
18177if test ${lt_cv_truncate_bin+y}
18178then :
18179  printf %s "(cached) " >&6
18180else $as_nop
18181  printf 0123456789abcdef0123456789abcdef >conftest.i
18182cat conftest.i conftest.i >conftest2.i
18183lt_cv_truncate_bin=
18184if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
18185  cmp -s conftest.i conftest.out \
18186  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
18187fi
18188rm -f conftest.i conftest2.i conftest.out
18189test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
18190fi
18191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
18192printf "%s\n" "$lt_cv_truncate_bin" >&6; }
18193
18194
18195
18196
18197
18198
18199
18200# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
18201func_cc_basename ()
18202{
18203    for cc_temp in $*""; do
18204      case $cc_temp in
18205        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18206        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18207        \-*) ;;
18208        *) break;;
18209      esac
18210    done
18211    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18212}
18213
18214# Check whether --enable-libtool-lock was given.
18215if test ${enable_libtool_lock+y}
18216then :
18217  enableval=$enable_libtool_lock;
18218fi
18219
18220test no = "$enable_libtool_lock" || enable_libtool_lock=yes
18221
18222# Some flags need to be propagated to the compiler or linker for good
18223# libtool support.
18224case $host in
18225ia64-*-hpux*)
18226  # Find out what ABI is being produced by ac_compile, and set mode
18227  # options accordingly.
18228  echo 'int i;' > conftest.$ac_ext
18229  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18230  (eval $ac_compile) 2>&5
18231  ac_status=$?
18232  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18233  test $ac_status = 0; }; then
18234    case `/usr/bin/file conftest.$ac_objext` in
18235      *ELF-32*)
18236	HPUX_IA64_MODE=32
18237	;;
18238      *ELF-64*)
18239	HPUX_IA64_MODE=64
18240	;;
18241    esac
18242  fi
18243  rm -rf conftest*
18244  ;;
18245*-*-irix6*)
18246  # Find out what ABI is being produced by ac_compile, and set linker
18247  # options accordingly.
18248  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
18249  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18250  (eval $ac_compile) 2>&5
18251  ac_status=$?
18252  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18253  test $ac_status = 0; }; then
18254    if test yes = "$lt_cv_prog_gnu_ld"; then
18255      case `/usr/bin/file conftest.$ac_objext` in
18256	*32-bit*)
18257	  LD="${LD-ld} -melf32bsmip"
18258	  ;;
18259	*N32*)
18260	  LD="${LD-ld} -melf32bmipn32"
18261	  ;;
18262	*64-bit*)
18263	  LD="${LD-ld} -melf64bmip"
18264	;;
18265      esac
18266    else
18267      case `/usr/bin/file conftest.$ac_objext` in
18268	*32-bit*)
18269	  LD="${LD-ld} -32"
18270	  ;;
18271	*N32*)
18272	  LD="${LD-ld} -n32"
18273	  ;;
18274	*64-bit*)
18275	  LD="${LD-ld} -64"
18276	  ;;
18277      esac
18278    fi
18279  fi
18280  rm -rf conftest*
18281  ;;
18282
18283mips64*-*linux*)
18284  # Find out what ABI is being produced by ac_compile, and set linker
18285  # options accordingly.
18286  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
18287  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18288  (eval $ac_compile) 2>&5
18289  ac_status=$?
18290  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18291  test $ac_status = 0; }; then
18292    emul=elf
18293    case `/usr/bin/file conftest.$ac_objext` in
18294      *32-bit*)
18295	emul="${emul}32"
18296	;;
18297      *64-bit*)
18298	emul="${emul}64"
18299	;;
18300    esac
18301    case `/usr/bin/file conftest.$ac_objext` in
18302      *MSB*)
18303	emul="${emul}btsmip"
18304	;;
18305      *LSB*)
18306	emul="${emul}ltsmip"
18307	;;
18308    esac
18309    case `/usr/bin/file conftest.$ac_objext` in
18310      *N32*)
18311	emul="${emul}n32"
18312	;;
18313    esac
18314    LD="${LD-ld} -m $emul"
18315  fi
18316  rm -rf conftest*
18317  ;;
18318
18319x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
18320s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
18321  # Find out what ABI is being produced by ac_compile, and set linker
18322  # options accordingly.  Note that the listed cases only cover the
18323  # situations where additional linker options are needed (such as when
18324  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
18325  # vice versa); the common cases where no linker options are needed do
18326  # not appear in the list.
18327  echo 'int i;' > conftest.$ac_ext
18328  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18329  (eval $ac_compile) 2>&5
18330  ac_status=$?
18331  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18332  test $ac_status = 0; }; then
18333    case `/usr/bin/file conftest.o` in
18334      *32-bit*)
18335	case $host in
18336	  x86_64-*kfreebsd*-gnu)
18337	    LD="${LD-ld} -m elf_i386_fbsd"
18338	    ;;
18339	  x86_64-*linux*)
18340	    case `/usr/bin/file conftest.o` in
18341	      *x86-64*)
18342		LD="${LD-ld} -m elf32_x86_64"
18343		;;
18344	      *)
18345		LD="${LD-ld} -m elf_i386"
18346		;;
18347	    esac
18348	    ;;
18349	  powerpc64le-*linux*)
18350	    LD="${LD-ld} -m elf32lppclinux"
18351	    ;;
18352	  powerpc64-*linux*)
18353	    LD="${LD-ld} -m elf32ppclinux"
18354	    ;;
18355	  s390x-*linux*)
18356	    LD="${LD-ld} -m elf_s390"
18357	    ;;
18358	  sparc64-*linux*)
18359	    LD="${LD-ld} -m elf32_sparc"
18360	    ;;
18361	esac
18362	;;
18363      *64-bit*)
18364	case $host in
18365	  x86_64-*kfreebsd*-gnu)
18366	    LD="${LD-ld} -m elf_x86_64_fbsd"
18367	    ;;
18368	  x86_64-*linux*)
18369	    LD="${LD-ld} -m elf_x86_64"
18370	    ;;
18371	  powerpcle-*linux*)
18372	    LD="${LD-ld} -m elf64lppc"
18373	    ;;
18374	  powerpc-*linux*)
18375	    LD="${LD-ld} -m elf64ppc"
18376	    ;;
18377	  s390*-*linux*|s390*-*tpf*)
18378	    LD="${LD-ld} -m elf64_s390"
18379	    ;;
18380	  sparc*-*linux*)
18381	    LD="${LD-ld} -m elf64_sparc"
18382	    ;;
18383	esac
18384	;;
18385    esac
18386  fi
18387  rm -rf conftest*
18388  ;;
18389
18390*-*-sco3.2v5*)
18391  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
18392  SAVE_CFLAGS=$CFLAGS
18393  CFLAGS="$CFLAGS -belf"
18394  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
18395printf %s "checking whether the C compiler needs -belf... " >&6; }
18396if test ${lt_cv_cc_needs_belf+y}
18397then :
18398  printf %s "(cached) " >&6
18399else $as_nop
18400  ac_ext=c
18401ac_cpp='$CPP $CPPFLAGS'
18402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18404ac_compiler_gnu=$ac_cv_c_compiler_gnu
18405
18406     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18407/* end confdefs.h.  */
18408
18409int
18410main (void)
18411{
18412
18413  ;
18414  return 0;
18415}
18416_ACEOF
18417if ac_fn_c_try_link "$LINENO"
18418then :
18419  lt_cv_cc_needs_belf=yes
18420else $as_nop
18421  lt_cv_cc_needs_belf=no
18422fi
18423rm -f core conftest.err conftest.$ac_objext conftest.beam \
18424    conftest$ac_exeext conftest.$ac_ext
18425     ac_ext=c
18426ac_cpp='$CPP $CPPFLAGS'
18427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18429ac_compiler_gnu=$ac_cv_c_compiler_gnu
18430
18431fi
18432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
18433printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
18434  if test yes != "$lt_cv_cc_needs_belf"; then
18435    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
18436    CFLAGS=$SAVE_CFLAGS
18437  fi
18438  ;;
18439*-*solaris*)
18440  # Find out what ABI is being produced by ac_compile, and set linker
18441  # options accordingly.
18442  echo 'int i;' > conftest.$ac_ext
18443  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18444  (eval $ac_compile) 2>&5
18445  ac_status=$?
18446  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18447  test $ac_status = 0; }; then
18448    case `/usr/bin/file conftest.o` in
18449    *64-bit*)
18450      case $lt_cv_prog_gnu_ld in
18451      yes*)
18452        case $host in
18453        i?86-*-solaris*|x86_64-*-solaris*)
18454          LD="${LD-ld} -m elf_x86_64"
18455          ;;
18456        sparc*-*-solaris*)
18457          LD="${LD-ld} -m elf64_sparc"
18458          ;;
18459        esac
18460        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
18461        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
18462          LD=${LD-ld}_sol2
18463        fi
18464        ;;
18465      *)
18466	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
18467	  LD="${LD-ld} -64"
18468	fi
18469	;;
18470      esac
18471      ;;
18472    esac
18473  fi
18474  rm -rf conftest*
18475  ;;
18476esac
18477
18478need_locks=$enable_libtool_lock
18479
18480if test -n "$ac_tool_prefix"; then
18481  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
18482set dummy ${ac_tool_prefix}mt; ac_word=$2
18483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18484printf %s "checking for $ac_word... " >&6; }
18485if test ${ac_cv_prog_MANIFEST_TOOL+y}
18486then :
18487  printf %s "(cached) " >&6
18488else $as_nop
18489  if test -n "$MANIFEST_TOOL"; then
18490  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
18491else
18492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18493for as_dir in $PATH
18494do
18495  IFS=$as_save_IFS
18496  case $as_dir in #(((
18497    '') as_dir=./ ;;
18498    */) ;;
18499    *) as_dir=$as_dir/ ;;
18500  esac
18501    for ac_exec_ext in '' $ac_executable_extensions; do
18502  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18503    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
18504    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18505    break 2
18506  fi
18507done
18508  done
18509IFS=$as_save_IFS
18510
18511fi
18512fi
18513MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
18514if test -n "$MANIFEST_TOOL"; then
18515  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
18516printf "%s\n" "$MANIFEST_TOOL" >&6; }
18517else
18518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18519printf "%s\n" "no" >&6; }
18520fi
18521
18522
18523fi
18524if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
18525  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
18526  # Extract the first word of "mt", so it can be a program name with args.
18527set dummy mt; ac_word=$2
18528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18529printf %s "checking for $ac_word... " >&6; }
18530if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
18531then :
18532  printf %s "(cached) " >&6
18533else $as_nop
18534  if test -n "$ac_ct_MANIFEST_TOOL"; then
18535  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
18536else
18537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18538for as_dir in $PATH
18539do
18540  IFS=$as_save_IFS
18541  case $as_dir in #(((
18542    '') as_dir=./ ;;
18543    */) ;;
18544    *) as_dir=$as_dir/ ;;
18545  esac
18546    for ac_exec_ext in '' $ac_executable_extensions; do
18547  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18548    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
18549    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18550    break 2
18551  fi
18552done
18553  done
18554IFS=$as_save_IFS
18555
18556fi
18557fi
18558ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
18559if test -n "$ac_ct_MANIFEST_TOOL"; then
18560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
18561printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
18562else
18563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18564printf "%s\n" "no" >&6; }
18565fi
18566
18567  if test "x$ac_ct_MANIFEST_TOOL" = x; then
18568    MANIFEST_TOOL=":"
18569  else
18570    case $cross_compiling:$ac_tool_warned in
18571yes:)
18572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18573printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18574ac_tool_warned=yes ;;
18575esac
18576    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
18577  fi
18578else
18579  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
18580fi
18581
18582test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
18583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
18584printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
18585if test ${lt_cv_path_mainfest_tool+y}
18586then :
18587  printf %s "(cached) " >&6
18588else $as_nop
18589  lt_cv_path_mainfest_tool=no
18590  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
18591  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
18592  cat conftest.err >&5
18593  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
18594    lt_cv_path_mainfest_tool=yes
18595  fi
18596  rm -f conftest*
18597fi
18598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
18599printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
18600if test yes != "$lt_cv_path_mainfest_tool"; then
18601  MANIFEST_TOOL=:
18602fi
18603
18604
18605
18606
18607
18608
18609  case $host_os in
18610    rhapsody* | darwin*)
18611    if test -n "$ac_tool_prefix"; then
18612  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
18613set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
18614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18615printf %s "checking for $ac_word... " >&6; }
18616if test ${ac_cv_prog_DSYMUTIL+y}
18617then :
18618  printf %s "(cached) " >&6
18619else $as_nop
18620  if test -n "$DSYMUTIL"; then
18621  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
18622else
18623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18624for as_dir in $PATH
18625do
18626  IFS=$as_save_IFS
18627  case $as_dir in #(((
18628    '') as_dir=./ ;;
18629    */) ;;
18630    *) as_dir=$as_dir/ ;;
18631  esac
18632    for ac_exec_ext in '' $ac_executable_extensions; do
18633  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18634    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
18635    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18636    break 2
18637  fi
18638done
18639  done
18640IFS=$as_save_IFS
18641
18642fi
18643fi
18644DSYMUTIL=$ac_cv_prog_DSYMUTIL
18645if test -n "$DSYMUTIL"; then
18646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18647printf "%s\n" "$DSYMUTIL" >&6; }
18648else
18649  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18650printf "%s\n" "no" >&6; }
18651fi
18652
18653
18654fi
18655if test -z "$ac_cv_prog_DSYMUTIL"; then
18656  ac_ct_DSYMUTIL=$DSYMUTIL
18657  # Extract the first word of "dsymutil", so it can be a program name with args.
18658set dummy dsymutil; ac_word=$2
18659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18660printf %s "checking for $ac_word... " >&6; }
18661if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
18662then :
18663  printf %s "(cached) " >&6
18664else $as_nop
18665  if test -n "$ac_ct_DSYMUTIL"; then
18666  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
18667else
18668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18669for as_dir in $PATH
18670do
18671  IFS=$as_save_IFS
18672  case $as_dir in #(((
18673    '') as_dir=./ ;;
18674    */) ;;
18675    *) as_dir=$as_dir/ ;;
18676  esac
18677    for ac_exec_ext in '' $ac_executable_extensions; do
18678  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18679    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
18680    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18681    break 2
18682  fi
18683done
18684  done
18685IFS=$as_save_IFS
18686
18687fi
18688fi
18689ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
18690if test -n "$ac_ct_DSYMUTIL"; then
18691  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
18692printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
18693else
18694  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18695printf "%s\n" "no" >&6; }
18696fi
18697
18698  if test "x$ac_ct_DSYMUTIL" = x; then
18699    DSYMUTIL=":"
18700  else
18701    case $cross_compiling:$ac_tool_warned in
18702yes:)
18703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18704printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18705ac_tool_warned=yes ;;
18706esac
18707    DSYMUTIL=$ac_ct_DSYMUTIL
18708  fi
18709else
18710  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
18711fi
18712
18713    if test -n "$ac_tool_prefix"; then
18714  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
18715set dummy ${ac_tool_prefix}nmedit; ac_word=$2
18716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18717printf %s "checking for $ac_word... " >&6; }
18718if test ${ac_cv_prog_NMEDIT+y}
18719then :
18720  printf %s "(cached) " >&6
18721else $as_nop
18722  if test -n "$NMEDIT"; then
18723  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
18724else
18725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18726for as_dir in $PATH
18727do
18728  IFS=$as_save_IFS
18729  case $as_dir in #(((
18730    '') as_dir=./ ;;
18731    */) ;;
18732    *) as_dir=$as_dir/ ;;
18733  esac
18734    for ac_exec_ext in '' $ac_executable_extensions; do
18735  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18736    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
18737    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18738    break 2
18739  fi
18740done
18741  done
18742IFS=$as_save_IFS
18743
18744fi
18745fi
18746NMEDIT=$ac_cv_prog_NMEDIT
18747if test -n "$NMEDIT"; then
18748  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
18749printf "%s\n" "$NMEDIT" >&6; }
18750else
18751  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18752printf "%s\n" "no" >&6; }
18753fi
18754
18755
18756fi
18757if test -z "$ac_cv_prog_NMEDIT"; then
18758  ac_ct_NMEDIT=$NMEDIT
18759  # Extract the first word of "nmedit", so it can be a program name with args.
18760set dummy nmedit; ac_word=$2
18761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18762printf %s "checking for $ac_word... " >&6; }
18763if test ${ac_cv_prog_ac_ct_NMEDIT+y}
18764then :
18765  printf %s "(cached) " >&6
18766else $as_nop
18767  if test -n "$ac_ct_NMEDIT"; then
18768  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
18769else
18770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18771for as_dir in $PATH
18772do
18773  IFS=$as_save_IFS
18774  case $as_dir in #(((
18775    '') as_dir=./ ;;
18776    */) ;;
18777    *) as_dir=$as_dir/ ;;
18778  esac
18779    for ac_exec_ext in '' $ac_executable_extensions; do
18780  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18781    ac_cv_prog_ac_ct_NMEDIT="nmedit"
18782    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18783    break 2
18784  fi
18785done
18786  done
18787IFS=$as_save_IFS
18788
18789fi
18790fi
18791ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
18792if test -n "$ac_ct_NMEDIT"; then
18793  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
18794printf "%s\n" "$ac_ct_NMEDIT" >&6; }
18795else
18796  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18797printf "%s\n" "no" >&6; }
18798fi
18799
18800  if test "x$ac_ct_NMEDIT" = x; then
18801    NMEDIT=":"
18802  else
18803    case $cross_compiling:$ac_tool_warned in
18804yes:)
18805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18806printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18807ac_tool_warned=yes ;;
18808esac
18809    NMEDIT=$ac_ct_NMEDIT
18810  fi
18811else
18812  NMEDIT="$ac_cv_prog_NMEDIT"
18813fi
18814
18815    if test -n "$ac_tool_prefix"; then
18816  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
18817set dummy ${ac_tool_prefix}lipo; ac_word=$2
18818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18819printf %s "checking for $ac_word... " >&6; }
18820if test ${ac_cv_prog_LIPO+y}
18821then :
18822  printf %s "(cached) " >&6
18823else $as_nop
18824  if test -n "$LIPO"; then
18825  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
18826else
18827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18828for as_dir in $PATH
18829do
18830  IFS=$as_save_IFS
18831  case $as_dir in #(((
18832    '') as_dir=./ ;;
18833    */) ;;
18834    *) as_dir=$as_dir/ ;;
18835  esac
18836    for ac_exec_ext in '' $ac_executable_extensions; do
18837  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18838    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
18839    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18840    break 2
18841  fi
18842done
18843  done
18844IFS=$as_save_IFS
18845
18846fi
18847fi
18848LIPO=$ac_cv_prog_LIPO
18849if test -n "$LIPO"; then
18850  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
18851printf "%s\n" "$LIPO" >&6; }
18852else
18853  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18854printf "%s\n" "no" >&6; }
18855fi
18856
18857
18858fi
18859if test -z "$ac_cv_prog_LIPO"; then
18860  ac_ct_LIPO=$LIPO
18861  # Extract the first word of "lipo", so it can be a program name with args.
18862set dummy lipo; ac_word=$2
18863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18864printf %s "checking for $ac_word... " >&6; }
18865if test ${ac_cv_prog_ac_ct_LIPO+y}
18866then :
18867  printf %s "(cached) " >&6
18868else $as_nop
18869  if test -n "$ac_ct_LIPO"; then
18870  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
18871else
18872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18873for as_dir in $PATH
18874do
18875  IFS=$as_save_IFS
18876  case $as_dir in #(((
18877    '') as_dir=./ ;;
18878    */) ;;
18879    *) as_dir=$as_dir/ ;;
18880  esac
18881    for ac_exec_ext in '' $ac_executable_extensions; do
18882  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18883    ac_cv_prog_ac_ct_LIPO="lipo"
18884    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18885    break 2
18886  fi
18887done
18888  done
18889IFS=$as_save_IFS
18890
18891fi
18892fi
18893ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
18894if test -n "$ac_ct_LIPO"; then
18895  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
18896printf "%s\n" "$ac_ct_LIPO" >&6; }
18897else
18898  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18899printf "%s\n" "no" >&6; }
18900fi
18901
18902  if test "x$ac_ct_LIPO" = x; then
18903    LIPO=":"
18904  else
18905    case $cross_compiling:$ac_tool_warned in
18906yes:)
18907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18908printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18909ac_tool_warned=yes ;;
18910esac
18911    LIPO=$ac_ct_LIPO
18912  fi
18913else
18914  LIPO="$ac_cv_prog_LIPO"
18915fi
18916
18917    if test -n "$ac_tool_prefix"; then
18918  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
18919set dummy ${ac_tool_prefix}otool; ac_word=$2
18920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18921printf %s "checking for $ac_word... " >&6; }
18922if test ${ac_cv_prog_OTOOL+y}
18923then :
18924  printf %s "(cached) " >&6
18925else $as_nop
18926  if test -n "$OTOOL"; then
18927  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
18928else
18929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18930for as_dir in $PATH
18931do
18932  IFS=$as_save_IFS
18933  case $as_dir in #(((
18934    '') as_dir=./ ;;
18935    */) ;;
18936    *) as_dir=$as_dir/ ;;
18937  esac
18938    for ac_exec_ext in '' $ac_executable_extensions; do
18939  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18940    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
18941    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18942    break 2
18943  fi
18944done
18945  done
18946IFS=$as_save_IFS
18947
18948fi
18949fi
18950OTOOL=$ac_cv_prog_OTOOL
18951if test -n "$OTOOL"; then
18952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
18953printf "%s\n" "$OTOOL" >&6; }
18954else
18955  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18956printf "%s\n" "no" >&6; }
18957fi
18958
18959
18960fi
18961if test -z "$ac_cv_prog_OTOOL"; then
18962  ac_ct_OTOOL=$OTOOL
18963  # Extract the first word of "otool", so it can be a program name with args.
18964set dummy otool; ac_word=$2
18965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18966printf %s "checking for $ac_word... " >&6; }
18967if test ${ac_cv_prog_ac_ct_OTOOL+y}
18968then :
18969  printf %s "(cached) " >&6
18970else $as_nop
18971  if test -n "$ac_ct_OTOOL"; then
18972  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
18973else
18974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18975for as_dir in $PATH
18976do
18977  IFS=$as_save_IFS
18978  case $as_dir in #(((
18979    '') as_dir=./ ;;
18980    */) ;;
18981    *) as_dir=$as_dir/ ;;
18982  esac
18983    for ac_exec_ext in '' $ac_executable_extensions; do
18984  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18985    ac_cv_prog_ac_ct_OTOOL="otool"
18986    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18987    break 2
18988  fi
18989done
18990  done
18991IFS=$as_save_IFS
18992
18993fi
18994fi
18995ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
18996if test -n "$ac_ct_OTOOL"; then
18997  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
18998printf "%s\n" "$ac_ct_OTOOL" >&6; }
18999else
19000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19001printf "%s\n" "no" >&6; }
19002fi
19003
19004  if test "x$ac_ct_OTOOL" = x; then
19005    OTOOL=":"
19006  else
19007    case $cross_compiling:$ac_tool_warned in
19008yes:)
19009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19010printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19011ac_tool_warned=yes ;;
19012esac
19013    OTOOL=$ac_ct_OTOOL
19014  fi
19015else
19016  OTOOL="$ac_cv_prog_OTOOL"
19017fi
19018
19019    if test -n "$ac_tool_prefix"; then
19020  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
19021set dummy ${ac_tool_prefix}otool64; ac_word=$2
19022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19023printf %s "checking for $ac_word... " >&6; }
19024if test ${ac_cv_prog_OTOOL64+y}
19025then :
19026  printf %s "(cached) " >&6
19027else $as_nop
19028  if test -n "$OTOOL64"; then
19029  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
19030else
19031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19032for as_dir in $PATH
19033do
19034  IFS=$as_save_IFS
19035  case $as_dir in #(((
19036    '') as_dir=./ ;;
19037    */) ;;
19038    *) as_dir=$as_dir/ ;;
19039  esac
19040    for ac_exec_ext in '' $ac_executable_extensions; do
19041  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19042    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
19043    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19044    break 2
19045  fi
19046done
19047  done
19048IFS=$as_save_IFS
19049
19050fi
19051fi
19052OTOOL64=$ac_cv_prog_OTOOL64
19053if test -n "$OTOOL64"; then
19054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
19055printf "%s\n" "$OTOOL64" >&6; }
19056else
19057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19058printf "%s\n" "no" >&6; }
19059fi
19060
19061
19062fi
19063if test -z "$ac_cv_prog_OTOOL64"; then
19064  ac_ct_OTOOL64=$OTOOL64
19065  # Extract the first word of "otool64", so it can be a program name with args.
19066set dummy otool64; ac_word=$2
19067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19068printf %s "checking for $ac_word... " >&6; }
19069if test ${ac_cv_prog_ac_ct_OTOOL64+y}
19070then :
19071  printf %s "(cached) " >&6
19072else $as_nop
19073  if test -n "$ac_ct_OTOOL64"; then
19074  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
19075else
19076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19077for as_dir in $PATH
19078do
19079  IFS=$as_save_IFS
19080  case $as_dir in #(((
19081    '') as_dir=./ ;;
19082    */) ;;
19083    *) as_dir=$as_dir/ ;;
19084  esac
19085    for ac_exec_ext in '' $ac_executable_extensions; do
19086  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19087    ac_cv_prog_ac_ct_OTOOL64="otool64"
19088    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19089    break 2
19090  fi
19091done
19092  done
19093IFS=$as_save_IFS
19094
19095fi
19096fi
19097ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
19098if test -n "$ac_ct_OTOOL64"; then
19099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
19100printf "%s\n" "$ac_ct_OTOOL64" >&6; }
19101else
19102  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19103printf "%s\n" "no" >&6; }
19104fi
19105
19106  if test "x$ac_ct_OTOOL64" = x; then
19107    OTOOL64=":"
19108  else
19109    case $cross_compiling:$ac_tool_warned in
19110yes:)
19111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19112printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19113ac_tool_warned=yes ;;
19114esac
19115    OTOOL64=$ac_ct_OTOOL64
19116  fi
19117else
19118  OTOOL64="$ac_cv_prog_OTOOL64"
19119fi
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
19148printf %s "checking for -single_module linker flag... " >&6; }
19149if test ${lt_cv_apple_cc_single_mod+y}
19150then :
19151  printf %s "(cached) " >&6
19152else $as_nop
19153  lt_cv_apple_cc_single_mod=no
19154      if test -z "$LT_MULTI_MODULE"; then
19155	# By default we will add the -single_module flag. You can override
19156	# by either setting the environment variable LT_MULTI_MODULE
19157	# non-empty at configure time, or by adding -multi_module to the
19158	# link flags.
19159	rm -rf libconftest.dylib*
19160	echo "int foo(void){return 1;}" > conftest.c
19161	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
19162-dynamiclib -Wl,-single_module conftest.c" >&5
19163	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
19164	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
19165        _lt_result=$?
19166	# If there is a non-empty error log, and "single_module"
19167	# appears in it, assume the flag caused a linker warning
19168        if test -s conftest.err && $GREP single_module conftest.err; then
19169	  cat conftest.err >&5
19170	# Otherwise, if the output was created with a 0 exit code from
19171	# the compiler, it worked.
19172	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
19173	  lt_cv_apple_cc_single_mod=yes
19174	else
19175	  cat conftest.err >&5
19176	fi
19177	rm -rf libconftest.dylib*
19178	rm -f conftest.*
19179      fi
19180fi
19181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
19182printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
19183
19184    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
19185printf %s "checking for -exported_symbols_list linker flag... " >&6; }
19186if test ${lt_cv_ld_exported_symbols_list+y}
19187then :
19188  printf %s "(cached) " >&6
19189else $as_nop
19190  lt_cv_ld_exported_symbols_list=no
19191      save_LDFLAGS=$LDFLAGS
19192      echo "_main" > conftest.sym
19193      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
19194      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19195/* end confdefs.h.  */
19196
19197int
19198main (void)
19199{
19200
19201  ;
19202  return 0;
19203}
19204_ACEOF
19205if ac_fn_c_try_link "$LINENO"
19206then :
19207  lt_cv_ld_exported_symbols_list=yes
19208else $as_nop
19209  lt_cv_ld_exported_symbols_list=no
19210fi
19211rm -f core conftest.err conftest.$ac_objext conftest.beam \
19212    conftest$ac_exeext conftest.$ac_ext
19213	LDFLAGS=$save_LDFLAGS
19214
19215fi
19216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
19217printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
19218
19219    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
19220printf %s "checking for -force_load linker flag... " >&6; }
19221if test ${lt_cv_ld_force_load+y}
19222then :
19223  printf %s "(cached) " >&6
19224else $as_nop
19225  lt_cv_ld_force_load=no
19226      cat > conftest.c << _LT_EOF
19227int forced_loaded() { return 2;}
19228_LT_EOF
19229      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
19230      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
19231      echo "$AR cru libconftest.a conftest.o" >&5
19232      $AR cru libconftest.a conftest.o 2>&5
19233      echo "$RANLIB libconftest.a" >&5
19234      $RANLIB libconftest.a 2>&5
19235      cat > conftest.c << _LT_EOF
19236int main() { return 0;}
19237_LT_EOF
19238      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
19239      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
19240      _lt_result=$?
19241      if test -s conftest.err && $GREP force_load conftest.err; then
19242	cat conftest.err >&5
19243      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
19244	lt_cv_ld_force_load=yes
19245      else
19246	cat conftest.err >&5
19247      fi
19248        rm -f conftest.err libconftest.a conftest conftest.c
19249        rm -rf conftest.dSYM
19250
19251fi
19252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
19253printf "%s\n" "$lt_cv_ld_force_load" >&6; }
19254    case $host_os in
19255    rhapsody* | darwin1.[012])
19256      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
19257    darwin1.*)
19258      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
19259    darwin*) # darwin 5.x on
19260      # if running on 10.5 or later, the deployment target defaults
19261      # to the OS version, if on x86, and 10.4, the deployment
19262      # target defaults to 10.4. Don't you love it?
19263      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
19264	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
19265	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
19266	10.[012][,.]*)
19267	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
19268	10.*)
19269	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
19270      esac
19271    ;;
19272  esac
19273    if test yes = "$lt_cv_apple_cc_single_mod"; then
19274      _lt_dar_single_mod='$single_module'
19275    fi
19276    if test yes = "$lt_cv_ld_exported_symbols_list"; then
19277      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
19278    else
19279      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
19280    fi
19281    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
19282      _lt_dsymutil='~$DSYMUTIL $lib || :'
19283    else
19284      _lt_dsymutil=
19285    fi
19286    ;;
19287  esac
19288
19289# func_munge_path_list VARIABLE PATH
19290# -----------------------------------
19291# VARIABLE is name of variable containing _space_ separated list of
19292# directories to be munged by the contents of PATH, which is string
19293# having a format:
19294# "DIR[:DIR]:"
19295#       string "DIR[ DIR]" will be prepended to VARIABLE
19296# ":DIR[:DIR]"
19297#       string "DIR[ DIR]" will be appended to VARIABLE
19298# "DIRP[:DIRP]::[DIRA:]DIRA"
19299#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19300#       "DIRA[ DIRA]" will be appended to VARIABLE
19301# "DIR[:DIR]"
19302#       VARIABLE will be replaced by "DIR[ DIR]"
19303func_munge_path_list ()
19304{
19305    case x$2 in
19306    x)
19307        ;;
19308    *:)
19309        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19310        ;;
19311    x:*)
19312        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19313        ;;
19314    *::*)
19315        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19316        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19317        ;;
19318    *)
19319        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19320        ;;
19321    esac
19322}
19323
19324ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
19325"
19326if test "x$ac_cv_header_dlfcn_h" = xyes
19327then :
19328  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
19329
19330fi
19331
19332
19333
19334
19335
19336# Set options
19337
19338
19339
19340        enable_dlopen=no
19341
19342
19343  enable_win32_dll=no
19344
19345
19346
19347  # Check whether --enable-static was given.
19348if test ${enable_static+y}
19349then :
19350  enableval=$enable_static; p=${PACKAGE-default}
19351    case $enableval in
19352    yes) enable_static=yes ;;
19353    no) enable_static=no ;;
19354    *)
19355     enable_static=no
19356      # Look at the argument we got.  We use all the common list separators.
19357      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
19358      for pkg in $enableval; do
19359	IFS=$lt_save_ifs
19360	if test "X$pkg" = "X$p"; then
19361	  enable_static=yes
19362	fi
19363      done
19364      IFS=$lt_save_ifs
19365      ;;
19366    esac
19367else $as_nop
19368  enable_static=yes
19369fi
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380# Check whether --with-pic was given.
19381if test ${with_pic+y}
19382then :
19383  withval=$with_pic; lt_p=${PACKAGE-default}
19384    case $withval in
19385    yes|no) pic_mode=$withval ;;
19386    *)
19387      pic_mode=default
19388      # Look at the argument we got.  We use all the common list separators.
19389      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
19390      for lt_pkg in $withval; do
19391	IFS=$lt_save_ifs
19392	if test "X$lt_pkg" = "X$lt_p"; then
19393	  pic_mode=yes
19394	fi
19395      done
19396      IFS=$lt_save_ifs
19397      ;;
19398    esac
19399else $as_nop
19400  pic_mode=default
19401fi
19402
19403
19404
19405
19406
19407
19408
19409
19410  # Check whether --enable-fast-install was given.
19411if test ${enable_fast_install+y}
19412then :
19413  enableval=$enable_fast_install; p=${PACKAGE-default}
19414    case $enableval in
19415    yes) enable_fast_install=yes ;;
19416    no) enable_fast_install=no ;;
19417    *)
19418      enable_fast_install=no
19419      # Look at the argument we got.  We use all the common list separators.
19420      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
19421      for pkg in $enableval; do
19422	IFS=$lt_save_ifs
19423	if test "X$pkg" = "X$p"; then
19424	  enable_fast_install=yes
19425	fi
19426      done
19427      IFS=$lt_save_ifs
19428      ;;
19429    esac
19430else $as_nop
19431  enable_fast_install=yes
19432fi
19433
19434
19435
19436
19437
19438
19439
19440
19441  shared_archive_member_spec=
19442case $host,$enable_shared in
19443power*-*-aix[5-9]*,yes)
19444  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
19445printf %s "checking which variant of shared library versioning to provide... " >&6; }
19446
19447# Check whether --with-aix-soname was given.
19448if test ${with_aix_soname+y}
19449then :
19450  withval=$with_aix_soname; case $withval in
19451    aix|svr4|both)
19452      ;;
19453    *)
19454      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
19455      ;;
19456    esac
19457    lt_cv_with_aix_soname=$with_aix_soname
19458else $as_nop
19459  if test ${lt_cv_with_aix_soname+y}
19460then :
19461  printf %s "(cached) " >&6
19462else $as_nop
19463  lt_cv_with_aix_soname=aix
19464fi
19465
19466    with_aix_soname=$lt_cv_with_aix_soname
19467fi
19468
19469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
19470printf "%s\n" "$with_aix_soname" >&6; }
19471  if test aix != "$with_aix_soname"; then
19472    # For the AIX way of multilib, we name the shared archive member
19473    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
19474    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
19475    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
19476    # the AIX toolchain works better with OBJECT_MODE set (default 32).
19477    if test 64 = "${OBJECT_MODE-32}"; then
19478      shared_archive_member_spec=shr_64
19479    else
19480      shared_archive_member_spec=shr
19481    fi
19482  fi
19483  ;;
19484*)
19485  with_aix_soname=aix
19486  ;;
19487esac
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498# This can be used to rebuild libtool when needed
19499LIBTOOL_DEPS=$ltmain
19500
19501# Always use our own libtool.
19502LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533test -z "$LN_S" && LN_S="ln -s"
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548if test -n "${ZSH_VERSION+set}"; then
19549   setopt NO_GLOB_SUBST
19550fi
19551
19552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
19553printf %s "checking for objdir... " >&6; }
19554if test ${lt_cv_objdir+y}
19555then :
19556  printf %s "(cached) " >&6
19557else $as_nop
19558  rm -f .libs 2>/dev/null
19559mkdir .libs 2>/dev/null
19560if test -d .libs; then
19561  lt_cv_objdir=.libs
19562else
19563  # MS-DOS does not allow filenames that begin with a dot.
19564  lt_cv_objdir=_libs
19565fi
19566rmdir .libs 2>/dev/null
19567fi
19568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
19569printf "%s\n" "$lt_cv_objdir" >&6; }
19570objdir=$lt_cv_objdir
19571
19572
19573
19574
19575
19576printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
19577
19578
19579
19580
19581case $host_os in
19582aix3*)
19583  # AIX sometimes has problems with the GCC collect2 program.  For some
19584  # reason, if we set the COLLECT_NAMES environment variable, the problems
19585  # vanish in a puff of smoke.
19586  if test set != "${COLLECT_NAMES+set}"; then
19587    COLLECT_NAMES=
19588    export COLLECT_NAMES
19589  fi
19590  ;;
19591esac
19592
19593# Global variables:
19594ofile=libtool
19595can_build_shared=yes
19596
19597# All known linkers require a '.a' archive for static linking (except MSVC,
19598# which needs '.lib').
19599libext=a
19600
19601with_gnu_ld=$lt_cv_prog_gnu_ld
19602
19603old_CC=$CC
19604old_CFLAGS=$CFLAGS
19605
19606# Set sane defaults for various variables
19607test -z "$CC" && CC=cc
19608test -z "$LTCC" && LTCC=$CC
19609test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
19610test -z "$LD" && LD=ld
19611test -z "$ac_objext" && ac_objext=o
19612
19613func_cc_basename $compiler
19614cc_basename=$func_cc_basename_result
19615
19616
19617# Only perform the check for file, if the check method requires it
19618test -z "$MAGIC_CMD" && MAGIC_CMD=file
19619case $deplibs_check_method in
19620file_magic*)
19621  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
19622    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
19623printf %s "checking for ${ac_tool_prefix}file... " >&6; }
19624if test ${lt_cv_path_MAGIC_CMD+y}
19625then :
19626  printf %s "(cached) " >&6
19627else $as_nop
19628  case $MAGIC_CMD in
19629[\\/*] |  ?:[\\/]*)
19630  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
19631  ;;
19632*)
19633  lt_save_MAGIC_CMD=$MAGIC_CMD
19634  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
19635  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
19636  for ac_dir in $ac_dummy; do
19637    IFS=$lt_save_ifs
19638    test -z "$ac_dir" && ac_dir=.
19639    if test -f "$ac_dir/${ac_tool_prefix}file"; then
19640      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
19641      if test -n "$file_magic_test_file"; then
19642	case $deplibs_check_method in
19643	"file_magic "*)
19644	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
19645	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
19646	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
19647	    $EGREP "$file_magic_regex" > /dev/null; then
19648	    :
19649	  else
19650	    cat <<_LT_EOF 1>&2
19651
19652*** Warning: the command libtool uses to detect shared libraries,
19653*** $file_magic_cmd, produces output that libtool cannot recognize.
19654*** The result is that libtool may fail to recognize shared libraries
19655*** as such.  This will affect the creation of libtool libraries that
19656*** depend on shared libraries, but programs linked with such libtool
19657*** libraries will work regardless of this problem.  Nevertheless, you
19658*** may want to report the problem to your system manager and/or to
19659*** bug-libtool@gnu.org
19660
19661_LT_EOF
19662	  fi ;;
19663	esac
19664      fi
19665      break
19666    fi
19667  done
19668  IFS=$lt_save_ifs
19669  MAGIC_CMD=$lt_save_MAGIC_CMD
19670  ;;
19671esac
19672fi
19673
19674MAGIC_CMD=$lt_cv_path_MAGIC_CMD
19675if test -n "$MAGIC_CMD"; then
19676  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
19677printf "%s\n" "$MAGIC_CMD" >&6; }
19678else
19679  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19680printf "%s\n" "no" >&6; }
19681fi
19682
19683
19684
19685
19686
19687if test -z "$lt_cv_path_MAGIC_CMD"; then
19688  if test -n "$ac_tool_prefix"; then
19689    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
19690printf %s "checking for file... " >&6; }
19691if test ${lt_cv_path_MAGIC_CMD+y}
19692then :
19693  printf %s "(cached) " >&6
19694else $as_nop
19695  case $MAGIC_CMD in
19696[\\/*] |  ?:[\\/]*)
19697  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
19698  ;;
19699*)
19700  lt_save_MAGIC_CMD=$MAGIC_CMD
19701  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
19702  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
19703  for ac_dir in $ac_dummy; do
19704    IFS=$lt_save_ifs
19705    test -z "$ac_dir" && ac_dir=.
19706    if test -f "$ac_dir/file"; then
19707      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
19708      if test -n "$file_magic_test_file"; then
19709	case $deplibs_check_method in
19710	"file_magic "*)
19711	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
19712	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
19713	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
19714	    $EGREP "$file_magic_regex" > /dev/null; then
19715	    :
19716	  else
19717	    cat <<_LT_EOF 1>&2
19718
19719*** Warning: the command libtool uses to detect shared libraries,
19720*** $file_magic_cmd, produces output that libtool cannot recognize.
19721*** The result is that libtool may fail to recognize shared libraries
19722*** as such.  This will affect the creation of libtool libraries that
19723*** depend on shared libraries, but programs linked with such libtool
19724*** libraries will work regardless of this problem.  Nevertheless, you
19725*** may want to report the problem to your system manager and/or to
19726*** bug-libtool@gnu.org
19727
19728_LT_EOF
19729	  fi ;;
19730	esac
19731      fi
19732      break
19733    fi
19734  done
19735  IFS=$lt_save_ifs
19736  MAGIC_CMD=$lt_save_MAGIC_CMD
19737  ;;
19738esac
19739fi
19740
19741MAGIC_CMD=$lt_cv_path_MAGIC_CMD
19742if test -n "$MAGIC_CMD"; then
19743  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
19744printf "%s\n" "$MAGIC_CMD" >&6; }
19745else
19746  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19747printf "%s\n" "no" >&6; }
19748fi
19749
19750
19751  else
19752    MAGIC_CMD=:
19753  fi
19754fi
19755
19756  fi
19757  ;;
19758esac
19759
19760# Use C for the default configuration in the libtool script
19761
19762lt_save_CC=$CC
19763ac_ext=c
19764ac_cpp='$CPP $CPPFLAGS'
19765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19767ac_compiler_gnu=$ac_cv_c_compiler_gnu
19768
19769
19770# Source file extension for C test sources.
19771ac_ext=c
19772
19773# Object file extension for compiled C test sources.
19774objext=o
19775objext=$objext
19776
19777# Code to be used in simple compile tests
19778lt_simple_compile_test_code="int some_variable = 0;"
19779
19780# Code to be used in simple link tests
19781lt_simple_link_test_code='int main(){return(0);}'
19782
19783
19784
19785
19786
19787
19788
19789# If no C compiler was specified, use CC.
19790LTCC=${LTCC-"$CC"}
19791
19792# If no C compiler flags were specified, use CFLAGS.
19793LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19794
19795# Allow CC to be a program name with arguments.
19796compiler=$CC
19797
19798# Save the default compiler, since it gets overwritten when the other
19799# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
19800compiler_DEFAULT=$CC
19801
19802# save warnings/boilerplate of simple test code
19803ac_outfile=conftest.$ac_objext
19804echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19805eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19806_lt_compiler_boilerplate=`cat conftest.err`
19807$RM conftest*
19808
19809ac_outfile=conftest.$ac_objext
19810echo "$lt_simple_link_test_code" >conftest.$ac_ext
19811eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19812_lt_linker_boilerplate=`cat conftest.err`
19813$RM -r conftest*
19814
19815
19816## CAVEAT EMPTOR:
19817## There is no encapsulation within the following macros, do not change
19818## the running order or otherwise move them around unless you know exactly
19819## what you are doing...
19820if test -n "$compiler"; then
19821
19822lt_prog_compiler_no_builtin_flag=
19823
19824if test yes = "$GCC"; then
19825  case $cc_basename in
19826  nvcc*)
19827    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
19828  *)
19829    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
19830  esac
19831
19832  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19833printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
19834if test ${lt_cv_prog_compiler_rtti_exceptions+y}
19835then :
19836  printf %s "(cached) " >&6
19837else $as_nop
19838  lt_cv_prog_compiler_rtti_exceptions=no
19839   ac_outfile=conftest.$ac_objext
19840   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19841   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
19842   # Insert the option either (1) after the last *FLAGS variable, or
19843   # (2) before a word containing "conftest.", or (3) at the end.
19844   # Note that $ac_compile itself does not contain backslashes and begins
19845   # with a dollar sign (not a hyphen), so the echo should work correctly.
19846   # The option is referenced via a variable to avoid confusing sed.
19847   lt_compile=`echo "$ac_compile" | $SED \
19848   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19849   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19850   -e 's:$: $lt_compiler_flag:'`
19851   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19852   (eval "$lt_compile" 2>conftest.err)
19853   ac_status=$?
19854   cat conftest.err >&5
19855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856   if (exit $ac_status) && test -s "$ac_outfile"; then
19857     # The compiler can only warn and ignore the option if not recognized
19858     # So say no if there are warnings other than the usual output.
19859     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19860     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19861     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19862       lt_cv_prog_compiler_rtti_exceptions=yes
19863     fi
19864   fi
19865   $RM conftest*
19866
19867fi
19868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19869printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19870
19871if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
19872    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
19873else
19874    :
19875fi
19876
19877fi
19878
19879
19880
19881
19882
19883
19884  lt_prog_compiler_wl=
19885lt_prog_compiler_pic=
19886lt_prog_compiler_static=
19887
19888
19889  if test yes = "$GCC"; then
19890    lt_prog_compiler_wl='-Wl,'
19891    lt_prog_compiler_static='-static'
19892
19893    case $host_os in
19894      aix*)
19895      # All AIX code is PIC.
19896      if test ia64 = "$host_cpu"; then
19897	# AIX 5 now supports IA64 processor
19898	lt_prog_compiler_static='-Bstatic'
19899      fi
19900      lt_prog_compiler_pic='-fPIC'
19901      ;;
19902
19903    amigaos*)
19904      case $host_cpu in
19905      powerpc)
19906            # see comment about AmigaOS4 .so support
19907            lt_prog_compiler_pic='-fPIC'
19908        ;;
19909      m68k)
19910            # FIXME: we need at least 68020 code to build shared libraries, but
19911            # adding the '-m68020' flag to GCC prevents building anything better,
19912            # like '-m68040'.
19913            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
19914        ;;
19915      esac
19916      ;;
19917
19918    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19919      # PIC is the default for these OSes.
19920      ;;
19921
19922    mingw* | cygwin* | pw32* | os2* | cegcc*)
19923      # This hack is so that the source file can tell whether it is being
19924      # built for inclusion in a dll (and should export symbols for example).
19925      # Although the cygwin gcc ignores -fPIC, still need this for old-style
19926      # (--disable-auto-import) libraries
19927      lt_prog_compiler_pic='-DDLL_EXPORT'
19928      case $host_os in
19929      os2*)
19930	lt_prog_compiler_static='$wl-static'
19931	;;
19932      esac
19933      ;;
19934
19935    darwin* | rhapsody*)
19936      # PIC is the default on this platform
19937      # Common symbols not allowed in MH_DYLIB files
19938      lt_prog_compiler_pic='-fno-common'
19939      ;;
19940
19941    haiku*)
19942      # PIC is the default for Haiku.
19943      # The "-static" flag exists, but is broken.
19944      lt_prog_compiler_static=
19945      ;;
19946
19947    hpux*)
19948      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19949      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19950      # sets the default TLS model and affects inlining.
19951      case $host_cpu in
19952      hppa*64*)
19953	# +Z the default
19954	;;
19955      *)
19956	lt_prog_compiler_pic='-fPIC'
19957	;;
19958      esac
19959      ;;
19960
19961    interix[3-9]*)
19962      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19963      # Instead, we relocate shared libraries at runtime.
19964      ;;
19965
19966    msdosdjgpp*)
19967      # Just because we use GCC doesn't mean we suddenly get shared libraries
19968      # on systems that don't support them.
19969      lt_prog_compiler_can_build_shared=no
19970      enable_shared=no
19971      ;;
19972
19973    *nto* | *qnx*)
19974      # QNX uses GNU C++, but need to define -shared option too, otherwise
19975      # it will coredump.
19976      lt_prog_compiler_pic='-fPIC -shared'
19977      ;;
19978
19979    sysv4*MP*)
19980      if test -d /usr/nec; then
19981	lt_prog_compiler_pic=-Kconform_pic
19982      fi
19983      ;;
19984
19985    *)
19986      lt_prog_compiler_pic='-fPIC'
19987      ;;
19988    esac
19989
19990    case $cc_basename in
19991    nvcc*) # Cuda Compiler Driver 2.2
19992      lt_prog_compiler_wl='-Xlinker '
19993      if test -n "$lt_prog_compiler_pic"; then
19994        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
19995      fi
19996      ;;
19997    esac
19998  else
19999    # PORTME Check for flag to pass linker flags through the system compiler.
20000    case $host_os in
20001    aix*)
20002      lt_prog_compiler_wl='-Wl,'
20003      if test ia64 = "$host_cpu"; then
20004	# AIX 5 now supports IA64 processor
20005	lt_prog_compiler_static='-Bstatic'
20006      else
20007	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
20008      fi
20009      ;;
20010
20011    darwin* | rhapsody*)
20012      # PIC is the default on this platform
20013      # Common symbols not allowed in MH_DYLIB files
20014      lt_prog_compiler_pic='-fno-common'
20015      case $cc_basename in
20016      nagfor*)
20017        # NAG Fortran compiler
20018        lt_prog_compiler_wl='-Wl,-Wl,,'
20019        lt_prog_compiler_pic='-PIC'
20020        lt_prog_compiler_static='-Bstatic'
20021        ;;
20022      esac
20023      ;;
20024
20025    mingw* | cygwin* | pw32* | os2* | cegcc*)
20026      # This hack is so that the source file can tell whether it is being
20027      # built for inclusion in a dll (and should export symbols for example).
20028      lt_prog_compiler_pic='-DDLL_EXPORT'
20029      case $host_os in
20030      os2*)
20031	lt_prog_compiler_static='$wl-static'
20032	;;
20033      esac
20034      ;;
20035
20036    hpux9* | hpux10* | hpux11*)
20037      lt_prog_compiler_wl='-Wl,'
20038      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20039      # not for PA HP-UX.
20040      case $host_cpu in
20041      hppa*64*|ia64*)
20042	# +Z the default
20043	;;
20044      *)
20045	lt_prog_compiler_pic='+Z'
20046	;;
20047      esac
20048      # Is there a better lt_prog_compiler_static that works with the bundled CC?
20049      lt_prog_compiler_static='$wl-a ${wl}archive'
20050      ;;
20051
20052    irix5* | irix6* | nonstopux*)
20053      lt_prog_compiler_wl='-Wl,'
20054      # PIC (with -KPIC) is the default.
20055      lt_prog_compiler_static='-non_shared'
20056      ;;
20057
20058    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20059      case $cc_basename in
20060      # old Intel for x86_64, which still supported -KPIC.
20061      ecc*)
20062	lt_prog_compiler_wl='-Wl,'
20063	lt_prog_compiler_pic='-KPIC'
20064	lt_prog_compiler_static='-static'
20065        ;;
20066      # icc used to be incompatible with GCC.
20067      # ICC 10 doesn't accept -KPIC any more.
20068      icc* | ifort*)
20069	lt_prog_compiler_wl='-Wl,'
20070	lt_prog_compiler_pic='-fPIC'
20071	lt_prog_compiler_static='-static'
20072        ;;
20073      # Lahey Fortran 8.1.
20074      lf95*)
20075	lt_prog_compiler_wl='-Wl,'
20076	lt_prog_compiler_pic='--shared'
20077	lt_prog_compiler_static='--static'
20078	;;
20079      nagfor*)
20080	# NAG Fortran compiler
20081	lt_prog_compiler_wl='-Wl,-Wl,,'
20082	lt_prog_compiler_pic='-PIC'
20083	lt_prog_compiler_static='-Bstatic'
20084	;;
20085      tcc*)
20086	# Fabrice Bellard et al's Tiny C Compiler
20087	lt_prog_compiler_wl='-Wl,'
20088	lt_prog_compiler_pic='-fPIC'
20089	lt_prog_compiler_static='-static'
20090	;;
20091      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
20092        # Portland Group compilers (*not* the Pentium gcc compiler,
20093	# which looks to be a dead project)
20094	lt_prog_compiler_wl='-Wl,'
20095	lt_prog_compiler_pic='-fpic'
20096	lt_prog_compiler_static='-Bstatic'
20097        ;;
20098      ccc*)
20099        lt_prog_compiler_wl='-Wl,'
20100        # All Alpha code is PIC.
20101        lt_prog_compiler_static='-non_shared'
20102        ;;
20103      xl* | bgxl* | bgf* | mpixl*)
20104	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
20105	lt_prog_compiler_wl='-Wl,'
20106	lt_prog_compiler_pic='-qpic'
20107	lt_prog_compiler_static='-qstaticlink'
20108	;;
20109      *)
20110	case `$CC -V 2>&1 | sed 5q` in
20111	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
20112	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
20113	  lt_prog_compiler_pic='-KPIC'
20114	  lt_prog_compiler_static='-Bstatic'
20115	  lt_prog_compiler_wl=''
20116	  ;;
20117	*Sun\ F* | *Sun*Fortran*)
20118	  lt_prog_compiler_pic='-KPIC'
20119	  lt_prog_compiler_static='-Bstatic'
20120	  lt_prog_compiler_wl='-Qoption ld '
20121	  ;;
20122	*Sun\ C*)
20123	  # Sun C 5.9
20124	  lt_prog_compiler_pic='-KPIC'
20125	  lt_prog_compiler_static='-Bstatic'
20126	  lt_prog_compiler_wl='-Wl,'
20127	  ;;
20128        *Intel*\ [CF]*Compiler*)
20129	  lt_prog_compiler_wl='-Wl,'
20130	  lt_prog_compiler_pic='-fPIC'
20131	  lt_prog_compiler_static='-static'
20132	  ;;
20133	*Portland\ Group*)
20134	  lt_prog_compiler_wl='-Wl,'
20135	  lt_prog_compiler_pic='-fpic'
20136	  lt_prog_compiler_static='-Bstatic'
20137	  ;;
20138	esac
20139	;;
20140      esac
20141      ;;
20142
20143    newsos6)
20144      lt_prog_compiler_pic='-KPIC'
20145      lt_prog_compiler_static='-Bstatic'
20146      ;;
20147
20148    *nto* | *qnx*)
20149      # QNX uses GNU C++, but need to define -shared option too, otherwise
20150      # it will coredump.
20151      lt_prog_compiler_pic='-fPIC -shared'
20152      ;;
20153
20154    osf3* | osf4* | osf5*)
20155      lt_prog_compiler_wl='-Wl,'
20156      # All OSF/1 code is PIC.
20157      lt_prog_compiler_static='-non_shared'
20158      ;;
20159
20160    rdos*)
20161      lt_prog_compiler_static='-non_shared'
20162      ;;
20163
20164    solaris*)
20165      lt_prog_compiler_pic='-KPIC'
20166      lt_prog_compiler_static='-Bstatic'
20167      case $cc_basename in
20168      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
20169	lt_prog_compiler_wl='-Qoption ld ';;
20170      *)
20171	lt_prog_compiler_wl='-Wl,';;
20172      esac
20173      ;;
20174
20175    sunos4*)
20176      lt_prog_compiler_wl='-Qoption ld '
20177      lt_prog_compiler_pic='-PIC'
20178      lt_prog_compiler_static='-Bstatic'
20179      ;;
20180
20181    sysv4 | sysv4.2uw2* | sysv4.3*)
20182      lt_prog_compiler_wl='-Wl,'
20183      lt_prog_compiler_pic='-KPIC'
20184      lt_prog_compiler_static='-Bstatic'
20185      ;;
20186
20187    sysv4*MP*)
20188      if test -d /usr/nec; then
20189	lt_prog_compiler_pic='-Kconform_pic'
20190	lt_prog_compiler_static='-Bstatic'
20191      fi
20192      ;;
20193
20194    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20195      lt_prog_compiler_wl='-Wl,'
20196      lt_prog_compiler_pic='-KPIC'
20197      lt_prog_compiler_static='-Bstatic'
20198      ;;
20199
20200    unicos*)
20201      lt_prog_compiler_wl='-Wl,'
20202      lt_prog_compiler_can_build_shared=no
20203      ;;
20204
20205    uts4*)
20206      lt_prog_compiler_pic='-pic'
20207      lt_prog_compiler_static='-Bstatic'
20208      ;;
20209
20210    *)
20211      lt_prog_compiler_can_build_shared=no
20212      ;;
20213    esac
20214  fi
20215
20216case $host_os in
20217  # For platforms that do not support PIC, -DPIC is meaningless:
20218  *djgpp*)
20219    lt_prog_compiler_pic=
20220    ;;
20221  *)
20222    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
20223    ;;
20224esac
20225
20226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20227printf %s "checking for $compiler option to produce PIC... " >&6; }
20228if test ${lt_cv_prog_compiler_pic+y}
20229then :
20230  printf %s "(cached) " >&6
20231else $as_nop
20232  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
20233fi
20234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
20235printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
20236lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
20237
20238#
20239# Check to make sure the PIC flag actually works.
20240#
20241if test -n "$lt_prog_compiler_pic"; then
20242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
20243printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
20244if test ${lt_cv_prog_compiler_pic_works+y}
20245then :
20246  printf %s "(cached) " >&6
20247else $as_nop
20248  lt_cv_prog_compiler_pic_works=no
20249   ac_outfile=conftest.$ac_objext
20250   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20251   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
20252   # Insert the option either (1) after the last *FLAGS variable, or
20253   # (2) before a word containing "conftest.", or (3) at the end.
20254   # Note that $ac_compile itself does not contain backslashes and begins
20255   # with a dollar sign (not a hyphen), so the echo should work correctly.
20256   # The option is referenced via a variable to avoid confusing sed.
20257   lt_compile=`echo "$ac_compile" | $SED \
20258   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20259   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20260   -e 's:$: $lt_compiler_flag:'`
20261   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20262   (eval "$lt_compile" 2>conftest.err)
20263   ac_status=$?
20264   cat conftest.err >&5
20265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266   if (exit $ac_status) && test -s "$ac_outfile"; then
20267     # The compiler can only warn and ignore the option if not recognized
20268     # So say no if there are warnings other than the usual output.
20269     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20270     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20271     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20272       lt_cv_prog_compiler_pic_works=yes
20273     fi
20274   fi
20275   $RM conftest*
20276
20277fi
20278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
20279printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
20280
20281if test yes = "$lt_cv_prog_compiler_pic_works"; then
20282    case $lt_prog_compiler_pic in
20283     "" | " "*) ;;
20284     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
20285     esac
20286else
20287    lt_prog_compiler_pic=
20288     lt_prog_compiler_can_build_shared=no
20289fi
20290
20291fi
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303#
20304# Check to make sure the static flag actually works.
20305#
20306wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
20307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20308printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20309if test ${lt_cv_prog_compiler_static_works+y}
20310then :
20311  printf %s "(cached) " >&6
20312else $as_nop
20313  lt_cv_prog_compiler_static_works=no
20314   save_LDFLAGS=$LDFLAGS
20315   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20316   echo "$lt_simple_link_test_code" > conftest.$ac_ext
20317   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20318     # The linker can only warn and ignore the option if not recognized
20319     # So say no if there are warnings
20320     if test -s conftest.err; then
20321       # Append any errors to the config.log.
20322       cat conftest.err 1>&5
20323       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20324       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20325       if diff conftest.exp conftest.er2 >/dev/null; then
20326         lt_cv_prog_compiler_static_works=yes
20327       fi
20328     else
20329       lt_cv_prog_compiler_static_works=yes
20330     fi
20331   fi
20332   $RM -r conftest*
20333   LDFLAGS=$save_LDFLAGS
20334
20335fi
20336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
20337printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
20338
20339if test yes = "$lt_cv_prog_compiler_static_works"; then
20340    :
20341else
20342    lt_prog_compiler_static=
20343fi
20344
20345
20346
20347
20348
20349
20350
20351  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20352printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20353if test ${lt_cv_prog_compiler_c_o+y}
20354then :
20355  printf %s "(cached) " >&6
20356else $as_nop
20357  lt_cv_prog_compiler_c_o=no
20358   $RM -r conftest 2>/dev/null
20359   mkdir conftest
20360   cd conftest
20361   mkdir out
20362   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20363
20364   lt_compiler_flag="-o out/conftest2.$ac_objext"
20365   # Insert the option either (1) after the last *FLAGS variable, or
20366   # (2) before a word containing "conftest.", or (3) at the end.
20367   # Note that $ac_compile itself does not contain backslashes and begins
20368   # with a dollar sign (not a hyphen), so the echo should work correctly.
20369   lt_compile=`echo "$ac_compile" | $SED \
20370   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20371   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20372   -e 's:$: $lt_compiler_flag:'`
20373   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20374   (eval "$lt_compile" 2>out/conftest.err)
20375   ac_status=$?
20376   cat out/conftest.err >&5
20377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20379   then
20380     # The compiler can only warn and ignore the option if not recognized
20381     # So say no if there are warnings
20382     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20383     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20384     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20385       lt_cv_prog_compiler_c_o=yes
20386     fi
20387   fi
20388   chmod u+w . 2>&5
20389   $RM conftest*
20390   # SGI C++ compiler will create directory out/ii_files/ for
20391   # template instantiation
20392   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20393   $RM out/* && rmdir out
20394   cd ..
20395   $RM -r conftest
20396   $RM conftest*
20397
20398fi
20399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
20400printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
20401
20402
20403
20404
20405
20406
20407  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20408printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20409if test ${lt_cv_prog_compiler_c_o+y}
20410then :
20411  printf %s "(cached) " >&6
20412else $as_nop
20413  lt_cv_prog_compiler_c_o=no
20414   $RM -r conftest 2>/dev/null
20415   mkdir conftest
20416   cd conftest
20417   mkdir out
20418   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20419
20420   lt_compiler_flag="-o out/conftest2.$ac_objext"
20421   # Insert the option either (1) after the last *FLAGS variable, or
20422   # (2) before a word containing "conftest.", or (3) at the end.
20423   # Note that $ac_compile itself does not contain backslashes and begins
20424   # with a dollar sign (not a hyphen), so the echo should work correctly.
20425   lt_compile=`echo "$ac_compile" | $SED \
20426   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20427   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20428   -e 's:$: $lt_compiler_flag:'`
20429   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20430   (eval "$lt_compile" 2>out/conftest.err)
20431   ac_status=$?
20432   cat out/conftest.err >&5
20433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20435   then
20436     # The compiler can only warn and ignore the option if not recognized
20437     # So say no if there are warnings
20438     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20439     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20440     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20441       lt_cv_prog_compiler_c_o=yes
20442     fi
20443   fi
20444   chmod u+w . 2>&5
20445   $RM conftest*
20446   # SGI C++ compiler will create directory out/ii_files/ for
20447   # template instantiation
20448   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20449   $RM out/* && rmdir out
20450   cd ..
20451   $RM -r conftest
20452   $RM conftest*
20453
20454fi
20455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
20456printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
20457
20458
20459
20460
20461hard_links=nottested
20462if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
20463  # do not overwrite the value of need_locks provided by the user
20464  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20465printf %s "checking if we can lock with hard links... " >&6; }
20466  hard_links=yes
20467  $RM conftest*
20468  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20469  touch conftest.a
20470  ln conftest.a conftest.b 2>&5 || hard_links=no
20471  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20473printf "%s\n" "$hard_links" >&6; }
20474  if test no = "$hard_links"; then
20475    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
20476printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
20477    need_locks=warn
20478  fi
20479else
20480  need_locks=no
20481fi
20482
20483
20484
20485
20486
20487
20488  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20489printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20490
20491  runpath_var=
20492  allow_undefined_flag=
20493  always_export_symbols=no
20494  archive_cmds=
20495  archive_expsym_cmds=
20496  compiler_needs_object=no
20497  enable_shared_with_static_runtimes=no
20498  export_dynamic_flag_spec=
20499  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20500  hardcode_automatic=no
20501  hardcode_direct=no
20502  hardcode_direct_absolute=no
20503  hardcode_libdir_flag_spec=
20504  hardcode_libdir_separator=
20505  hardcode_minus_L=no
20506  hardcode_shlibpath_var=unsupported
20507  inherit_rpath=no
20508  link_all_deplibs=unknown
20509  module_cmds=
20510  module_expsym_cmds=
20511  old_archive_from_new_cmds=
20512  old_archive_from_expsyms_cmds=
20513  thread_safe_flag_spec=
20514  whole_archive_flag_spec=
20515  # include_expsyms should be a list of space-separated symbols to be *always*
20516  # included in the symbol list
20517  include_expsyms=
20518  # exclude_expsyms can be an extended regexp of symbols to exclude
20519  # it will be wrapped by ' (' and ')$', so one must not match beginning or
20520  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
20521  # as well as any symbol that contains 'd'.
20522  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20523  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20524  # platforms (ab)use it in PIC code, but their linkers get confused if
20525  # the symbol is explicitly referenced.  Since portable code cannot
20526  # rely on this symbol name, it's probably fine to never include it in
20527  # preloaded symbol tables.
20528  # Exclude shared library initialization/finalization symbols.
20529  extract_expsyms_cmds=
20530
20531  case $host_os in
20532  cygwin* | mingw* | pw32* | cegcc*)
20533    # FIXME: the MSVC++ port hasn't been tested in a loooong time
20534    # When not using gcc, we currently assume that we are using
20535    # Microsoft Visual C++.
20536    if test yes != "$GCC"; then
20537      with_gnu_ld=no
20538    fi
20539    ;;
20540  interix*)
20541    # we just hope/assume this is gcc and not c89 (= MSVC++)
20542    with_gnu_ld=yes
20543    ;;
20544  openbsd* | bitrig*)
20545    with_gnu_ld=no
20546    ;;
20547  esac
20548
20549  ld_shlibs=yes
20550
20551  # On some targets, GNU ld is compatible enough with the native linker
20552  # that we're better off using the native interface for both.
20553  lt_use_gnu_ld_interface=no
20554  if test yes = "$with_gnu_ld"; then
20555    case $host_os in
20556      aix*)
20557	# The AIX port of GNU ld has always aspired to compatibility
20558	# with the native linker.  However, as the warning in the GNU ld
20559	# block says, versions before 2.19.5* couldn't really create working
20560	# shared libraries, regardless of the interface used.
20561	case `$LD -v 2>&1` in
20562	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
20563	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
20564	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
20565	  *)
20566	    lt_use_gnu_ld_interface=yes
20567	    ;;
20568	esac
20569	;;
20570      *)
20571	lt_use_gnu_ld_interface=yes
20572	;;
20573    esac
20574  fi
20575
20576  if test yes = "$lt_use_gnu_ld_interface"; then
20577    # If archive_cmds runs LD, not CC, wlarc should be empty
20578    wlarc='$wl'
20579
20580    # Set some defaults for GNU ld with shared library support. These
20581    # are reset later if shared libraries are not supported. Putting them
20582    # here allows them to be overridden if necessary.
20583    runpath_var=LD_RUN_PATH
20584    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20585    export_dynamic_flag_spec='$wl--export-dynamic'
20586    # ancient GNU ld didn't support --whole-archive et. al.
20587    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
20588      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
20589    else
20590      whole_archive_flag_spec=
20591    fi
20592    supports_anon_versioning=no
20593    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
20594      *GNU\ gold*) supports_anon_versioning=yes ;;
20595      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20596      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20597      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20598      *\ 2.11.*) ;; # other 2.11 versions
20599      *) supports_anon_versioning=yes ;;
20600    esac
20601
20602    # See if GNU ld supports shared libraries.
20603    case $host_os in
20604    aix[3-9]*)
20605      # On AIX/PPC, the GNU linker is very broken
20606      if test ia64 != "$host_cpu"; then
20607	ld_shlibs=no
20608	cat <<_LT_EOF 1>&2
20609
20610*** Warning: the GNU linker, at least up to release 2.19, is reported
20611*** to be unable to reliably create shared libraries on AIX.
20612*** Therefore, libtool is disabling shared libraries support.  If you
20613*** really care for shared libraries, you may want to install binutils
20614*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
20615*** You will then need to restart the configuration process.
20616
20617_LT_EOF
20618      fi
20619      ;;
20620
20621    amigaos*)
20622      case $host_cpu in
20623      powerpc)
20624            # see comment about AmigaOS4 .so support
20625            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20626            archive_expsym_cmds=''
20627        ;;
20628      m68k)
20629            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)'
20630            hardcode_libdir_flag_spec='-L$libdir'
20631            hardcode_minus_L=yes
20632        ;;
20633      esac
20634      ;;
20635
20636    beos*)
20637      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20638	allow_undefined_flag=unsupported
20639	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20640	# support --undefined.  This deserves some investigation.  FIXME
20641	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20642      else
20643	ld_shlibs=no
20644      fi
20645      ;;
20646
20647    cygwin* | mingw* | pw32* | cegcc*)
20648      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
20649      # as there is no search path for DLLs.
20650      hardcode_libdir_flag_spec='-L$libdir'
20651      export_dynamic_flag_spec='$wl--export-all-symbols'
20652      allow_undefined_flag=unsupported
20653      always_export_symbols=no
20654      enable_shared_with_static_runtimes=yes
20655      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'
20656      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20657
20658      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20659        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20660	# If the export-symbols file already is a .def file, use it as
20661	# is; otherwise, prepend EXPORTS...
20662	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
20663          cp $export_symbols $output_objdir/$soname.def;
20664        else
20665          echo EXPORTS > $output_objdir/$soname.def;
20666          cat $export_symbols >> $output_objdir/$soname.def;
20667        fi~
20668        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20669      else
20670	ld_shlibs=no
20671      fi
20672      ;;
20673
20674    haiku*)
20675      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20676      link_all_deplibs=yes
20677      ;;
20678
20679    os2*)
20680      hardcode_libdir_flag_spec='-L$libdir'
20681      hardcode_minus_L=yes
20682      allow_undefined_flag=unsupported
20683      shrext_cmds=.dll
20684      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20685	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20686	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20687	$ECHO EXPORTS >> $output_objdir/$libname.def~
20688	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
20689	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20690	emximp -o $lib $output_objdir/$libname.def'
20691      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20692	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20693	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20694	$ECHO EXPORTS >> $output_objdir/$libname.def~
20695	prefix_cmds="$SED"~
20696	if test EXPORTS = "`$SED 1q $export_symbols`"; then
20697	  prefix_cmds="$prefix_cmds -e 1d";
20698	fi~
20699	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
20700	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
20701	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20702	emximp -o $lib $output_objdir/$libname.def'
20703      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
20704      enable_shared_with_static_runtimes=yes
20705      ;;
20706
20707    interix[3-9]*)
20708      hardcode_direct=no
20709      hardcode_shlibpath_var=no
20710      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
20711      export_dynamic_flag_spec='$wl-E'
20712      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20713      # Instead, shared libraries are loaded at an image base (0x10000000 by
20714      # default) and relocated if they conflict, which is a slow very memory
20715      # consuming and fragmenting process.  To avoid this, we pick a random,
20716      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20717      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20718      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
20719      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'
20720      ;;
20721
20722    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
20723      tmp_diet=no
20724      if test linux-dietlibc = "$host_os"; then
20725	case $cc_basename in
20726	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
20727	esac
20728      fi
20729      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
20730	 && test no = "$tmp_diet"
20731      then
20732	tmp_addflag=' $pic_flag'
20733	tmp_sharedflag='-shared'
20734	case $cc_basename,$host_cpu in
20735        pgcc*)				# Portland Group C compiler
20736	  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'
20737	  tmp_addflag=' $pic_flag'
20738	  ;;
20739	pgf77* | pgf90* | pgf95* | pgfortran*)
20740					# Portland Group f77 and f90 compilers
20741	  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'
20742	  tmp_addflag=' $pic_flag -Mnomain' ;;
20743	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
20744	  tmp_addflag=' -i_dynamic' ;;
20745	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
20746	  tmp_addflag=' -i_dynamic -nofor_main' ;;
20747	ifc* | ifort*)			# Intel Fortran compiler
20748	  tmp_addflag=' -nofor_main' ;;
20749	lf95*)				# Lahey Fortran 8.1
20750	  whole_archive_flag_spec=
20751	  tmp_sharedflag='--shared' ;;
20752        nagfor*)                        # NAGFOR 5.3
20753          tmp_sharedflag='-Wl,-shared' ;;
20754	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
20755	  tmp_sharedflag='-qmkshrobj'
20756	  tmp_addflag= ;;
20757	nvcc*)	# Cuda Compiler Driver 2.2
20758	  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'
20759	  compiler_needs_object=yes
20760	  ;;
20761	esac
20762	case `$CC -V 2>&1 | sed 5q` in
20763	*Sun\ C*)			# Sun C 5.9
20764	  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'
20765	  compiler_needs_object=yes
20766	  tmp_sharedflag='-G' ;;
20767	*Sun\ F*)			# Sun Fortran 8.3
20768	  tmp_sharedflag='-G' ;;
20769	esac
20770	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20771
20772        if test yes = "$supports_anon_versioning"; then
20773          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
20774            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20775            echo "local: *; };" >> $output_objdir/$libname.ver~
20776            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
20777        fi
20778
20779	case $cc_basename in
20780	tcc*)
20781	  export_dynamic_flag_spec='-rdynamic'
20782	  ;;
20783	xlf* | bgf* | bgxlf* | mpixlf*)
20784	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
20785	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
20786	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20787	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
20788	  if test yes = "$supports_anon_versioning"; then
20789	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
20790              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20791              echo "local: *; };" >> $output_objdir/$libname.ver~
20792              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
20793	  fi
20794	  ;;
20795	esac
20796      else
20797        ld_shlibs=no
20798      fi
20799      ;;
20800
20801    netbsd*)
20802      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20803	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20804	wlarc=
20805      else
20806	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20807	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20808      fi
20809      ;;
20810
20811    solaris*)
20812      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
20813	ld_shlibs=no
20814	cat <<_LT_EOF 1>&2
20815
20816*** Warning: The releases 2.8.* of the GNU linker cannot reliably
20817*** create shared libraries on Solaris systems.  Therefore, libtool
20818*** is disabling shared libraries support.  We urge you to upgrade GNU
20819*** binutils to release 2.9.1 or newer.  Another option is to modify
20820*** your PATH or compiler configuration so that the native linker is
20821*** used, and then restart.
20822
20823_LT_EOF
20824      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20825	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20826	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20827      else
20828	ld_shlibs=no
20829      fi
20830      ;;
20831
20832    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20833      case `$LD -v 2>&1` in
20834        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20835	ld_shlibs=no
20836	cat <<_LT_EOF 1>&2
20837
20838*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
20839*** reliably create shared libraries on SCO systems.  Therefore, libtool
20840*** is disabling shared libraries support.  We urge you to upgrade GNU
20841*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
20842*** your PATH or compiler configuration so that the native linker is
20843*** used, and then restart.
20844
20845_LT_EOF
20846	;;
20847	*)
20848	  # For security reasons, it is highly recommended that you always
20849	  # use absolute paths for naming shared libraries, and exclude the
20850	  # DT_RUNPATH tag from executables and libraries.  But doing so
20851	  # requires that you compile everything twice, which is a pain.
20852	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20853	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20854	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20855	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20856	  else
20857	    ld_shlibs=no
20858	  fi
20859	;;
20860      esac
20861      ;;
20862
20863    sunos4*)
20864      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20865      wlarc=
20866      hardcode_direct=yes
20867      hardcode_shlibpath_var=no
20868      ;;
20869
20870    *)
20871      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20872	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20873	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20874      else
20875	ld_shlibs=no
20876      fi
20877      ;;
20878    esac
20879
20880    if test no = "$ld_shlibs"; then
20881      runpath_var=
20882      hardcode_libdir_flag_spec=
20883      export_dynamic_flag_spec=
20884      whole_archive_flag_spec=
20885    fi
20886  else
20887    # PORTME fill in a description of your system's linker (not GNU ld)
20888    case $host_os in
20889    aix3*)
20890      allow_undefined_flag=unsupported
20891      always_export_symbols=yes
20892      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'
20893      # Note: this linker hardcodes the directories in LIBPATH if there
20894      # are no directories specified by -L.
20895      hardcode_minus_L=yes
20896      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
20897	# Neither direct hardcoding nor static linking is supported with a
20898	# broken collect2.
20899	hardcode_direct=unsupported
20900      fi
20901      ;;
20902
20903    aix[4-9]*)
20904      if test ia64 = "$host_cpu"; then
20905	# On IA64, the linker does run time linking by default, so we don't
20906	# have to do anything special.
20907	aix_use_runtimelinking=no
20908	exp_sym_flag='-Bexport'
20909	no_entry_flag=
20910      else
20911	# If we're using GNU nm, then we don't want the "-C" option.
20912	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
20913	# Without the "-l" option, or with the "-B" option, AIX nm treats
20914	# weak defined symbols like other global defined symbols, whereas
20915	# GNU nm marks them as "W".
20916	# While the 'weak' keyword is ignored in the Export File, we need
20917	# it in the Import File for the 'aix-soname' feature, so we have
20918	# to replace the "-B" option with "-P" for AIX nm.
20919	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20920	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
20921	else
20922	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
20923	fi
20924	aix_use_runtimelinking=no
20925
20926	# Test if we are trying to use run time linking or normal
20927	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
20928	# have runtime linking enabled, and use it for executables.
20929	# For shared libraries, we enable/disable runtime linking
20930	# depending on the kind of the shared library created -
20931	# when "with_aix_soname,aix_use_runtimelinking" is:
20932	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
20933	# "aix,yes"  lib.so          shared, rtl:yes, for executables
20934	#            lib.a           static archive
20935	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
20936	#            lib.a(lib.so.V) shared, rtl:no,  for executables
20937	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
20938	#            lib.a(lib.so.V) shared, rtl:no
20939	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
20940	#            lib.a           static archive
20941	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20942	  for ld_flag in $LDFLAGS; do
20943	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
20944	    aix_use_runtimelinking=yes
20945	    break
20946	  fi
20947	  done
20948	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
20949	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
20950	    # so we don't have lib.a shared libs to link our executables.
20951	    # We have to force runtime linking in this case.
20952	    aix_use_runtimelinking=yes
20953	    LDFLAGS="$LDFLAGS -Wl,-brtl"
20954	  fi
20955	  ;;
20956	esac
20957
20958	exp_sym_flag='-bexport'
20959	no_entry_flag='-bnoentry'
20960      fi
20961
20962      # When large executables or shared objects are built, AIX ld can
20963      # have problems creating the table of contents.  If linking a library
20964      # or program results in "error TOC overflow" add -mminimal-toc to
20965      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20966      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20967
20968      archive_cmds=''
20969      hardcode_direct=yes
20970      hardcode_direct_absolute=yes
20971      hardcode_libdir_separator=':'
20972      link_all_deplibs=yes
20973      file_list_spec='$wl-f,'
20974      case $with_aix_soname,$aix_use_runtimelinking in
20975      aix,*) ;; # traditional, no import file
20976      svr4,* | *,yes) # use import file
20977	# The Import File defines what to hardcode.
20978	hardcode_direct=no
20979	hardcode_direct_absolute=no
20980	;;
20981      esac
20982
20983      if test yes = "$GCC"; then
20984	case $host_os in aix4.[012]|aix4.[012].*)
20985	# We only want to do this on AIX 4.2 and lower, the check
20986	# below for broken collect2 doesn't work under 4.3+
20987	  collect2name=`$CC -print-prog-name=collect2`
20988	  if test -f "$collect2name" &&
20989	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20990	  then
20991	  # We have reworked collect2
20992	  :
20993	  else
20994	  # We have old collect2
20995	  hardcode_direct=unsupported
20996	  # It fails to find uninstalled libraries when the uninstalled
20997	  # path is not listed in the libpath.  Setting hardcode_minus_L
20998	  # to unsupported forces relinking
20999	  hardcode_minus_L=yes
21000	  hardcode_libdir_flag_spec='-L$libdir'
21001	  hardcode_libdir_separator=
21002	  fi
21003	  ;;
21004	esac
21005	shared_flag='-shared'
21006	if test yes = "$aix_use_runtimelinking"; then
21007	  shared_flag="$shared_flag "'$wl-G'
21008	fi
21009	# Need to ensure runtime linking is disabled for the traditional
21010	# shared library, or the linker may eventually find shared libraries
21011	# /with/ Import File - we do not want to mix them.
21012	shared_flag_aix='-shared'
21013	shared_flag_svr4='-shared $wl-G'
21014      else
21015	# not using gcc
21016	if test ia64 = "$host_cpu"; then
21017	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21018	# chokes on -Wl,-G. The following line is correct:
21019	  shared_flag='-G'
21020	else
21021	  if test yes = "$aix_use_runtimelinking"; then
21022	    shared_flag='$wl-G'
21023	  else
21024	    shared_flag='$wl-bM:SRE'
21025	  fi
21026	  shared_flag_aix='$wl-bM:SRE'
21027	  shared_flag_svr4='$wl-G'
21028	fi
21029      fi
21030
21031      export_dynamic_flag_spec='$wl-bexpall'
21032      # It seems that -bexpall does not export symbols beginning with
21033      # underscore (_), so it is better to generate a list of symbols to export.
21034      always_export_symbols=yes
21035      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
21036	# Warning - without using the other runtime loading flags (-brtl),
21037	# -berok will link without error, but may produce a broken library.
21038	allow_undefined_flag='-berok'
21039        # Determine the default libpath from the value encoded in an
21040        # empty executable.
21041        if test set = "${lt_cv_aix_libpath+set}"; then
21042  aix_libpath=$lt_cv_aix_libpath
21043else
21044  if test ${lt_cv_aix_libpath_+y}
21045then :
21046  printf %s "(cached) " >&6
21047else $as_nop
21048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21049/* end confdefs.h.  */
21050
21051int
21052main (void)
21053{
21054
21055  ;
21056  return 0;
21057}
21058_ACEOF
21059if ac_fn_c_try_link "$LINENO"
21060then :
21061
21062  lt_aix_libpath_sed='
21063      /Import File Strings/,/^$/ {
21064	  /^0/ {
21065	      s/^0  *\([^ ]*\) *$/\1/
21066	      p
21067	  }
21068      }'
21069  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21070  # Check for a 64-bit object if we didn't find anything.
21071  if test -z "$lt_cv_aix_libpath_"; then
21072    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21073  fi
21074fi
21075rm -f core conftest.err conftest.$ac_objext conftest.beam \
21076    conftest$ac_exeext conftest.$ac_ext
21077  if test -z "$lt_cv_aix_libpath_"; then
21078    lt_cv_aix_libpath_=/usr/lib:/lib
21079  fi
21080
21081fi
21082
21083  aix_libpath=$lt_cv_aix_libpath_
21084fi
21085
21086        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
21087        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
21088      else
21089	if test ia64 = "$host_cpu"; then
21090	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
21091	  allow_undefined_flag="-z nodefs"
21092	  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"
21093	else
21094	 # Determine the default libpath from the value encoded in an
21095	 # empty executable.
21096	 if test set = "${lt_cv_aix_libpath+set}"; then
21097  aix_libpath=$lt_cv_aix_libpath
21098else
21099  if test ${lt_cv_aix_libpath_+y}
21100then :
21101  printf %s "(cached) " >&6
21102else $as_nop
21103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21104/* end confdefs.h.  */
21105
21106int
21107main (void)
21108{
21109
21110  ;
21111  return 0;
21112}
21113_ACEOF
21114if ac_fn_c_try_link "$LINENO"
21115then :
21116
21117  lt_aix_libpath_sed='
21118      /Import File Strings/,/^$/ {
21119	  /^0/ {
21120	      s/^0  *\([^ ]*\) *$/\1/
21121	      p
21122	  }
21123      }'
21124  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21125  # Check for a 64-bit object if we didn't find anything.
21126  if test -z "$lt_cv_aix_libpath_"; then
21127    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21128  fi
21129fi
21130rm -f core conftest.err conftest.$ac_objext conftest.beam \
21131    conftest$ac_exeext conftest.$ac_ext
21132  if test -z "$lt_cv_aix_libpath_"; then
21133    lt_cv_aix_libpath_=/usr/lib:/lib
21134  fi
21135
21136fi
21137
21138  aix_libpath=$lt_cv_aix_libpath_
21139fi
21140
21141	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
21142	  # Warning - without using the other run time loading flags,
21143	  # -berok will link without error, but may produce a broken library.
21144	  no_undefined_flag=' $wl-bernotok'
21145	  allow_undefined_flag=' $wl-berok'
21146	  if test yes = "$with_gnu_ld"; then
21147	    # We only use this code for GNU lds that support --whole-archive.
21148	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
21149	  else
21150	    # Exported symbols can be pulled into shared objects from archives
21151	    whole_archive_flag_spec='$convenience'
21152	  fi
21153	  archive_cmds_need_lc=yes
21154	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
21155	  # -brtl affects multiple linker settings, -berok does not and is overridden later
21156	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
21157	  if test svr4 != "$with_aix_soname"; then
21158	    # This is similar to how AIX traditionally builds its shared libraries.
21159	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
21160	  fi
21161	  if test aix != "$with_aix_soname"; then
21162	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
21163	  else
21164	    # used by -dlpreopen to get the symbols
21165	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
21166	  fi
21167	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
21168	fi
21169      fi
21170      ;;
21171
21172    amigaos*)
21173      case $host_cpu in
21174      powerpc)
21175            # see comment about AmigaOS4 .so support
21176            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21177            archive_expsym_cmds=''
21178        ;;
21179      m68k)
21180            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)'
21181            hardcode_libdir_flag_spec='-L$libdir'
21182            hardcode_minus_L=yes
21183        ;;
21184      esac
21185      ;;
21186
21187    bsdi[45]*)
21188      export_dynamic_flag_spec=-rdynamic
21189      ;;
21190
21191    cygwin* | mingw* | pw32* | cegcc*)
21192      # When not using gcc, we currently assume that we are using
21193      # Microsoft Visual C++.
21194      # hardcode_libdir_flag_spec is actually meaningless, as there is
21195      # no search path for DLLs.
21196      case $cc_basename in
21197      cl*)
21198	# Native MSVC
21199	hardcode_libdir_flag_spec=' '
21200	allow_undefined_flag=unsupported
21201	always_export_symbols=yes
21202	file_list_spec='@'
21203	# Tell ltmain to make .lib files, not .a files.
21204	libext=lib
21205	# Tell ltmain to make .dll files, not .so files.
21206	shrext_cmds=.dll
21207	# FIXME: Setting linknames here is a bad hack.
21208	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
21209	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
21210            cp "$export_symbols" "$output_objdir/$soname.def";
21211            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
21212          else
21213            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
21214          fi~
21215          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
21216          linknames='
21217	# The linker will not automatically build a static lib if we build a DLL.
21218	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
21219	enable_shared_with_static_runtimes=yes
21220	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
21221	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
21222	# Don't use ranlib
21223	old_postinstall_cmds='chmod 644 $oldlib'
21224	postlink_cmds='lt_outputfile="@OUTPUT@"~
21225          lt_tool_outputfile="@TOOL_OUTPUT@"~
21226          case $lt_outputfile in
21227            *.exe|*.EXE) ;;
21228            *)
21229              lt_outputfile=$lt_outputfile.exe
21230              lt_tool_outputfile=$lt_tool_outputfile.exe
21231              ;;
21232          esac~
21233          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
21234            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
21235            $RM "$lt_outputfile.manifest";
21236          fi'
21237	;;
21238      *)
21239	# Assume MSVC wrapper
21240	hardcode_libdir_flag_spec=' '
21241	allow_undefined_flag=unsupported
21242	# Tell ltmain to make .lib files, not .a files.
21243	libext=lib
21244	# Tell ltmain to make .dll files, not .so files.
21245	shrext_cmds=.dll
21246	# FIXME: Setting linknames here is a bad hack.
21247	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
21248	# The linker will automatically build a .lib file if we build a DLL.
21249	old_archive_from_new_cmds='true'
21250	# FIXME: Should let the user specify the lib program.
21251	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
21252	enable_shared_with_static_runtimes=yes
21253	;;
21254      esac
21255      ;;
21256
21257    darwin* | rhapsody*)
21258
21259
21260  archive_cmds_need_lc=no
21261  hardcode_direct=no
21262  hardcode_automatic=yes
21263  hardcode_shlibpath_var=unsupported
21264  if test yes = "$lt_cv_ld_force_load"; then
21265    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\"`'
21266
21267  else
21268    whole_archive_flag_spec=''
21269  fi
21270  link_all_deplibs=yes
21271  allow_undefined_flag=$_lt_dar_allow_undefined
21272  case $cc_basename in
21273     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
21274     *) _lt_dar_can_shared=$GCC ;;
21275  esac
21276  if test yes = "$_lt_dar_can_shared"; then
21277    output_verbose_link_cmd=func_echo_all
21278    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
21279    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
21280    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"
21281    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"
21282
21283  else
21284  ld_shlibs=no
21285  fi
21286
21287      ;;
21288
21289    dgux*)
21290      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21291      hardcode_libdir_flag_spec='-L$libdir'
21292      hardcode_shlibpath_var=no
21293      ;;
21294
21295    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21296    # support.  Future versions do this automatically, but an explicit c++rt0.o
21297    # does not break anything, and helps significantly (at the cost of a little
21298    # extra space).
21299    freebsd2.2*)
21300      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21301      hardcode_libdir_flag_spec='-R$libdir'
21302      hardcode_direct=yes
21303      hardcode_shlibpath_var=no
21304      ;;
21305
21306    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21307    freebsd2.*)
21308      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21309      hardcode_direct=yes
21310      hardcode_minus_L=yes
21311      hardcode_shlibpath_var=no
21312      ;;
21313
21314    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21315    freebsd* | dragonfly*)
21316      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21317      hardcode_libdir_flag_spec='-R$libdir'
21318      hardcode_direct=yes
21319      hardcode_shlibpath_var=no
21320      ;;
21321
21322    hpux9*)
21323      if test yes = "$GCC"; then
21324	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
21325      else
21326	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
21327      fi
21328      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
21329      hardcode_libdir_separator=:
21330      hardcode_direct=yes
21331
21332      # hardcode_minus_L: Not really in the search PATH,
21333      # but as the default location of the library.
21334      hardcode_minus_L=yes
21335      export_dynamic_flag_spec='$wl-E'
21336      ;;
21337
21338    hpux10*)
21339      if test yes,no = "$GCC,$with_gnu_ld"; then
21340	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21341      else
21342	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21343      fi
21344      if test no = "$with_gnu_ld"; then
21345	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
21346	hardcode_libdir_separator=:
21347	hardcode_direct=yes
21348	hardcode_direct_absolute=yes
21349	export_dynamic_flag_spec='$wl-E'
21350	# hardcode_minus_L: Not really in the search PATH,
21351	# but as the default location of the library.
21352	hardcode_minus_L=yes
21353      fi
21354      ;;
21355
21356    hpux11*)
21357      if test yes,no = "$GCC,$with_gnu_ld"; then
21358	case $host_cpu in
21359	hppa*64*)
21360	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
21361	  ;;
21362	ia64*)
21363	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21364	  ;;
21365	*)
21366	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21367	  ;;
21368	esac
21369      else
21370	case $host_cpu in
21371	hppa*64*)
21372	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
21373	  ;;
21374	ia64*)
21375	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21376	  ;;
21377	*)
21378
21379	  # Older versions of the 11.00 compiler do not understand -b yet
21380	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
21381	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
21382printf %s "checking if $CC understands -b... " >&6; }
21383if test ${lt_cv_prog_compiler__b+y}
21384then :
21385  printf %s "(cached) " >&6
21386else $as_nop
21387  lt_cv_prog_compiler__b=no
21388   save_LDFLAGS=$LDFLAGS
21389   LDFLAGS="$LDFLAGS -b"
21390   echo "$lt_simple_link_test_code" > conftest.$ac_ext
21391   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21392     # The linker can only warn and ignore the option if not recognized
21393     # So say no if there are warnings
21394     if test -s conftest.err; then
21395       # Append any errors to the config.log.
21396       cat conftest.err 1>&5
21397       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21398       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21399       if diff conftest.exp conftest.er2 >/dev/null; then
21400         lt_cv_prog_compiler__b=yes
21401       fi
21402     else
21403       lt_cv_prog_compiler__b=yes
21404     fi
21405   fi
21406   $RM -r conftest*
21407   LDFLAGS=$save_LDFLAGS
21408
21409fi
21410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
21411printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
21412
21413if test yes = "$lt_cv_prog_compiler__b"; then
21414    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21415else
21416    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21417fi
21418
21419	  ;;
21420	esac
21421      fi
21422      if test no = "$with_gnu_ld"; then
21423	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
21424	hardcode_libdir_separator=:
21425
21426	case $host_cpu in
21427	hppa*64*|ia64*)
21428	  hardcode_direct=no
21429	  hardcode_shlibpath_var=no
21430	  ;;
21431	*)
21432	  hardcode_direct=yes
21433	  hardcode_direct_absolute=yes
21434	  export_dynamic_flag_spec='$wl-E'
21435
21436	  # hardcode_minus_L: Not really in the search PATH,
21437	  # but as the default location of the library.
21438	  hardcode_minus_L=yes
21439	  ;;
21440	esac
21441      fi
21442      ;;
21443
21444    irix5* | irix6* | nonstopux*)
21445      if test yes = "$GCC"; then
21446	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'
21447	# Try to use the -exported_symbol ld option, if it does not
21448	# work, assume that -exports_file does not work either and
21449	# implicitly export all symbols.
21450	# This should be the same for all languages, so no per-tag cache variable.
21451	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
21452printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
21453if test ${lt_cv_irix_exported_symbol+y}
21454then :
21455  printf %s "(cached) " >&6
21456else $as_nop
21457  save_LDFLAGS=$LDFLAGS
21458	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
21459	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21460/* end confdefs.h.  */
21461int foo (void) { return 0; }
21462_ACEOF
21463if ac_fn_c_try_link "$LINENO"
21464then :
21465  lt_cv_irix_exported_symbol=yes
21466else $as_nop
21467  lt_cv_irix_exported_symbol=no
21468fi
21469rm -f core conftest.err conftest.$ac_objext conftest.beam \
21470    conftest$ac_exeext conftest.$ac_ext
21471           LDFLAGS=$save_LDFLAGS
21472fi
21473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
21474printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
21475	if test yes = "$lt_cv_irix_exported_symbol"; then
21476          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'
21477	fi
21478      else
21479	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'
21480	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'
21481      fi
21482      archive_cmds_need_lc='no'
21483      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
21484      hardcode_libdir_separator=:
21485      inherit_rpath=yes
21486      link_all_deplibs=yes
21487      ;;
21488
21489    linux*)
21490      case $cc_basename in
21491      tcc*)
21492	# Fabrice Bellard et al's Tiny C Compiler
21493	ld_shlibs=yes
21494	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21495	;;
21496      esac
21497      ;;
21498
21499    netbsd*)
21500      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21501	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21502      else
21503	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21504      fi
21505      hardcode_libdir_flag_spec='-R$libdir'
21506      hardcode_direct=yes
21507      hardcode_shlibpath_var=no
21508      ;;
21509
21510    newsos6)
21511      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21512      hardcode_direct=yes
21513      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
21514      hardcode_libdir_separator=:
21515      hardcode_shlibpath_var=no
21516      ;;
21517
21518    *nto* | *qnx*)
21519      ;;
21520
21521    openbsd* | bitrig*)
21522      if test -f /usr/libexec/ld.so; then
21523	hardcode_direct=yes
21524	hardcode_shlibpath_var=no
21525	hardcode_direct_absolute=yes
21526	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
21527	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21528	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
21529	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
21530	  export_dynamic_flag_spec='$wl-E'
21531	else
21532	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21533	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
21534	fi
21535      else
21536	ld_shlibs=no
21537      fi
21538      ;;
21539
21540    os2*)
21541      hardcode_libdir_flag_spec='-L$libdir'
21542      hardcode_minus_L=yes
21543      allow_undefined_flag=unsupported
21544      shrext_cmds=.dll
21545      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
21546	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
21547	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
21548	$ECHO EXPORTS >> $output_objdir/$libname.def~
21549	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
21550	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
21551	emximp -o $lib $output_objdir/$libname.def'
21552      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
21553	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
21554	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
21555	$ECHO EXPORTS >> $output_objdir/$libname.def~
21556	prefix_cmds="$SED"~
21557	if test EXPORTS = "`$SED 1q $export_symbols`"; then
21558	  prefix_cmds="$prefix_cmds -e 1d";
21559	fi~
21560	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
21561	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
21562	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
21563	emximp -o $lib $output_objdir/$libname.def'
21564      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
21565      enable_shared_with_static_runtimes=yes
21566      ;;
21567
21568    osf3*)
21569      if test yes = "$GCC"; then
21570	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
21571	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'
21572      else
21573	allow_undefined_flag=' -expect_unresolved \*'
21574	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'
21575      fi
21576      archive_cmds_need_lc='no'
21577      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
21578      hardcode_libdir_separator=:
21579      ;;
21580
21581    osf4* | osf5*)	# as osf3* with the addition of -msym flag
21582      if test yes = "$GCC"; then
21583	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
21584	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'
21585	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
21586      else
21587	allow_undefined_flag=' -expect_unresolved \*'
21588	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'
21589	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~
21590          $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'
21591
21592	# Both c and cxx compiler support -rpath directly
21593	hardcode_libdir_flag_spec='-rpath $libdir'
21594      fi
21595      archive_cmds_need_lc='no'
21596      hardcode_libdir_separator=:
21597      ;;
21598
21599    solaris*)
21600      no_undefined_flag=' -z defs'
21601      if test yes = "$GCC"; then
21602	wlarc='$wl'
21603	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
21604	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21605          $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'
21606      else
21607	case `$CC -V 2>&1` in
21608	*"Compilers 5.0"*)
21609	  wlarc=''
21610	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
21611	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21612            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
21613	  ;;
21614	*)
21615	  wlarc='$wl'
21616	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
21617	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21618            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
21619	  ;;
21620	esac
21621      fi
21622      hardcode_libdir_flag_spec='-R$libdir'
21623      hardcode_shlibpath_var=no
21624      case $host_os in
21625      solaris2.[0-5] | solaris2.[0-5].*) ;;
21626      *)
21627	# The compiler driver will combine and reorder linker options,
21628	# but understands '-z linker_flag'.  GCC discards it without '$wl',
21629	# but is careful enough not to reorder.
21630	# Supported since Solaris 2.6 (maybe 2.5.1?)
21631	if test yes = "$GCC"; then
21632	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
21633	else
21634	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
21635	fi
21636	;;
21637      esac
21638      link_all_deplibs=yes
21639      ;;
21640
21641    sunos4*)
21642      if test sequent = "$host_vendor"; then
21643	# Use $CC to link under sequent, because it throws in some extra .o
21644	# files that make .init and .fini sections work.
21645	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21646      else
21647	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21648      fi
21649      hardcode_libdir_flag_spec='-L$libdir'
21650      hardcode_direct=yes
21651      hardcode_minus_L=yes
21652      hardcode_shlibpath_var=no
21653      ;;
21654
21655    sysv4)
21656      case $host_vendor in
21657	sni)
21658	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21659	  hardcode_direct=yes # is this really true???
21660	;;
21661	siemens)
21662	  ## LD is ld it makes a PLAMLIB
21663	  ## CC just makes a GrossModule.
21664	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21665	  reload_cmds='$CC -r -o $output$reload_objs'
21666	  hardcode_direct=no
21667        ;;
21668	motorola)
21669	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21670	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
21671	;;
21672      esac
21673      runpath_var='LD_RUN_PATH'
21674      hardcode_shlibpath_var=no
21675      ;;
21676
21677    sysv4.3*)
21678      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21679      hardcode_shlibpath_var=no
21680      export_dynamic_flag_spec='-Bexport'
21681      ;;
21682
21683    sysv4*MP*)
21684      if test -d /usr/nec; then
21685	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21686	hardcode_shlibpath_var=no
21687	runpath_var=LD_RUN_PATH
21688	hardcode_runpath_var=yes
21689	ld_shlibs=yes
21690      fi
21691      ;;
21692
21693    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21694      no_undefined_flag='$wl-z,text'
21695      archive_cmds_need_lc=no
21696      hardcode_shlibpath_var=no
21697      runpath_var='LD_RUN_PATH'
21698
21699      if test yes = "$GCC"; then
21700	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21701	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21702      else
21703	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21704	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21705      fi
21706      ;;
21707
21708    sysv5* | sco3.2v5* | sco5v6*)
21709      # Note: We CANNOT use -z defs as we might desire, because we do not
21710      # link with -lc, and that would cause any symbols used from libc to
21711      # always be unresolved, which means just about no library would
21712      # ever link correctly.  If we're not using GNU ld we use -z text
21713      # though, which does catch some bad symbols but isn't as heavy-handed
21714      # as -z defs.
21715      no_undefined_flag='$wl-z,text'
21716      allow_undefined_flag='$wl-z,nodefs'
21717      archive_cmds_need_lc=no
21718      hardcode_shlibpath_var=no
21719      hardcode_libdir_flag_spec='$wl-R,$libdir'
21720      hardcode_libdir_separator=':'
21721      link_all_deplibs=yes
21722      export_dynamic_flag_spec='$wl-Bexport'
21723      runpath_var='LD_RUN_PATH'
21724
21725      if test yes = "$GCC"; then
21726	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21727	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21728      else
21729	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21730	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21731      fi
21732      ;;
21733
21734    uts4*)
21735      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21736      hardcode_libdir_flag_spec='-L$libdir'
21737      hardcode_shlibpath_var=no
21738      ;;
21739
21740    *)
21741      ld_shlibs=no
21742      ;;
21743    esac
21744
21745    if test sni = "$host_vendor"; then
21746      case $host in
21747      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21748	export_dynamic_flag_spec='$wl-Blargedynsym'
21749	;;
21750      esac
21751    fi
21752  fi
21753
21754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
21755printf "%s\n" "$ld_shlibs" >&6; }
21756test no = "$ld_shlibs" && can_build_shared=no
21757
21758with_gnu_ld=$with_gnu_ld
21759
21760
21761
21762
21763
21764
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774#
21775# Do we need to explicitly link libc?
21776#
21777case "x$archive_cmds_need_lc" in
21778x|xyes)
21779  # Assume -lc should be added
21780  archive_cmds_need_lc=yes
21781
21782  if test yes,yes = "$GCC,$enable_shared"; then
21783    case $archive_cmds in
21784    *'~'*)
21785      # FIXME: we may have to deal with multi-command sequences.
21786      ;;
21787    '$CC '*)
21788      # Test whether the compiler implicitly links with -lc since on some
21789      # systems, -lgcc has to come before -lc. If gcc already passes -lc
21790      # to ld, don't add -lc before -lgcc.
21791      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21792printf %s "checking whether -lc should be explicitly linked in... " >&6; }
21793if test ${lt_cv_archive_cmds_need_lc+y}
21794then :
21795  printf %s "(cached) " >&6
21796else $as_nop
21797  $RM conftest*
21798	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21799
21800	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21801  (eval $ac_compile) 2>&5
21802  ac_status=$?
21803  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21804  test $ac_status = 0; } 2>conftest.err; then
21805	  soname=conftest
21806	  lib=conftest
21807	  libobjs=conftest.$ac_objext
21808	  deplibs=
21809	  wl=$lt_prog_compiler_wl
21810	  pic_flag=$lt_prog_compiler_pic
21811	  compiler_flags=-v
21812	  linker_flags=-v
21813	  verstring=
21814	  output_objdir=.
21815	  libname=conftest
21816	  lt_save_allow_undefined_flag=$allow_undefined_flag
21817	  allow_undefined_flag=
21818	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21819  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21820  ac_status=$?
21821  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21822  test $ac_status = 0; }
21823	  then
21824	    lt_cv_archive_cmds_need_lc=no
21825	  else
21826	    lt_cv_archive_cmds_need_lc=yes
21827	  fi
21828	  allow_undefined_flag=$lt_save_allow_undefined_flag
21829	else
21830	  cat conftest.err 1>&5
21831	fi
21832	$RM conftest*
21833
21834fi
21835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
21836printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
21837      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
21838      ;;
21839    esac
21840  fi
21841  ;;
21842esac
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883
21884
21885
21886
21887
21888
21889
21890
21891
21892
21893
21894
21895
21896
21897
21898
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929
21930
21931
21932
21933
21934
21935
21936
21937
21938
21939
21940
21941
21942
21943
21944
21945
21946
21947
21948
21949
21950
21951
21952
21953
21954
21955
21956
21957
21958
21959
21960
21961
21962
21963
21964
21965
21966
21967
21968
21969
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21996printf %s "checking dynamic linker characteristics... " >&6; }
21997
21998if test yes = "$GCC"; then
21999  case $host_os in
22000    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
22001    *) lt_awk_arg='/^libraries:/' ;;
22002  esac
22003  case $host_os in
22004    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
22005    *) lt_sed_strip_eq='s|=/|/|g' ;;
22006  esac
22007  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
22008  case $lt_search_path_spec in
22009  *\;*)
22010    # if the path contains ";" then we assume it to be the separator
22011    # otherwise default to the standard path separator (i.e. ":") - it is
22012    # assumed that no part of a normal pathname contains ";" but that should
22013    # okay in the real world where ";" in dirpaths is itself problematic.
22014    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
22015    ;;
22016  *)
22017    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
22018    ;;
22019  esac
22020  # Ok, now we have the path, separated by spaces, we can step through it
22021  # and add multilib dir if necessary...
22022  lt_tmp_lt_search_path_spec=
22023  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
22024  # ...but if some path component already ends with the multilib dir we assume
22025  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
22026  case "$lt_multi_os_dir; $lt_search_path_spec " in
22027  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
22028    lt_multi_os_dir=
22029    ;;
22030  esac
22031  for lt_sys_path in $lt_search_path_spec; do
22032    if test -d "$lt_sys_path$lt_multi_os_dir"; then
22033      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
22034    elif test -n "$lt_multi_os_dir"; then
22035      test -d "$lt_sys_path" && \
22036	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
22037    fi
22038  done
22039  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
22040BEGIN {RS = " "; FS = "/|\n";} {
22041  lt_foo = "";
22042  lt_count = 0;
22043  for (lt_i = NF; lt_i > 0; lt_i--) {
22044    if ($lt_i != "" && $lt_i != ".") {
22045      if ($lt_i == "..") {
22046        lt_count++;
22047      } else {
22048        if (lt_count == 0) {
22049          lt_foo = "/" $lt_i lt_foo;
22050        } else {
22051          lt_count--;
22052        }
22053      }
22054    }
22055  }
22056  if (lt_foo != "") { lt_freq[lt_foo]++; }
22057  if (lt_freq[lt_foo] == 1) { print lt_foo; }
22058}'`
22059  # AWK program above erroneously prepends '/' to C:/dos/paths
22060  # for these hosts.
22061  case $host_os in
22062    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
22063      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
22064  esac
22065  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
22066else
22067  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22068fi
22069library_names_spec=
22070libname_spec='lib$name'
22071soname_spec=
22072shrext_cmds=.so
22073postinstall_cmds=
22074postuninstall_cmds=
22075finish_cmds=
22076finish_eval=
22077shlibpath_var=
22078shlibpath_overrides_runpath=unknown
22079version_type=none
22080dynamic_linker="$host_os ld.so"
22081sys_lib_dlsearch_path_spec="/lib /usr/lib"
22082need_lib_prefix=unknown
22083hardcode_into_libs=no
22084
22085# when you set need_version to no, make sure it does not cause -set_version
22086# flags to be left without arguments
22087need_version=unknown
22088
22089
22090
22091case $host_os in
22092aix3*)
22093  version_type=linux # correct to gnu/linux during the next big refactor
22094  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
22095  shlibpath_var=LIBPATH
22096
22097  # AIX 3 has no versioning support, so we append a major version to the name.
22098  soname_spec='$libname$release$shared_ext$major'
22099  ;;
22100
22101aix[4-9]*)
22102  version_type=linux # correct to gnu/linux during the next big refactor
22103  need_lib_prefix=no
22104  need_version=no
22105  hardcode_into_libs=yes
22106  if test ia64 = "$host_cpu"; then
22107    # AIX 5 supports IA64
22108    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
22109    shlibpath_var=LD_LIBRARY_PATH
22110  else
22111    # With GCC up to 2.95.x, collect2 would create an import file
22112    # for dependence libraries.  The import file would start with
22113    # the line '#! .'.  This would cause the generated library to
22114    # depend on '.', always an invalid library.  This was fixed in
22115    # development snapshots of GCC prior to 3.0.
22116    case $host_os in
22117      aix4 | aix4.[01] | aix4.[01].*)
22118      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22119	   echo ' yes '
22120	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
22121	:
22122      else
22123	can_build_shared=no
22124      fi
22125      ;;
22126    esac
22127    # Using Import Files as archive members, it is possible to support
22128    # filename-based versioning of shared library archives on AIX. While
22129    # this would work for both with and without runtime linking, it will
22130    # prevent static linking of such archives. So we do filename-based
22131    # shared library versioning with .so extension only, which is used
22132    # when both runtime linking and shared linking is enabled.
22133    # Unfortunately, runtime linking may impact performance, so we do
22134    # not want this to be the default eventually. Also, we use the
22135    # versioned .so libs for executables only if there is the -brtl
22136    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
22137    # To allow for filename-based versioning support, we need to create
22138    # libNAME.so.V as an archive file, containing:
22139    # *) an Import File, referring to the versioned filename of the
22140    #    archive as well as the shared archive member, telling the
22141    #    bitwidth (32 or 64) of that shared object, and providing the
22142    #    list of exported symbols of that shared object, eventually
22143    #    decorated with the 'weak' keyword
22144    # *) the shared object with the F_LOADONLY flag set, to really avoid
22145    #    it being seen by the linker.
22146    # At run time we better use the real file rather than another symlink,
22147    # but for link time we create the symlink libNAME.so -> libNAME.so.V
22148
22149    case $with_aix_soname,$aix_use_runtimelinking in
22150    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
22151    # soname into executable. Probably we can add versioning support to
22152    # collect2, so additional links can be useful in future.
22153    aix,yes) # traditional libtool
22154      dynamic_linker='AIX unversionable lib.so'
22155      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22156      # instead of lib<name>.a to let people know that these are not
22157      # typical AIX shared libraries.
22158      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22159      ;;
22160    aix,no) # traditional AIX only
22161      dynamic_linker='AIX lib.a(lib.so.V)'
22162      # We preserve .a as extension for shared libraries through AIX4.2
22163      # and later when we are not doing run time linking.
22164      library_names_spec='$libname$release.a $libname.a'
22165      soname_spec='$libname$release$shared_ext$major'
22166      ;;
22167    svr4,*) # full svr4 only
22168      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
22169      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
22170      # We do not specify a path in Import Files, so LIBPATH fires.
22171      shlibpath_overrides_runpath=yes
22172      ;;
22173    *,yes) # both, prefer svr4
22174      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
22175      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
22176      # unpreferred sharedlib libNAME.a needs extra handling
22177      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
22178      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
22179      # We do not specify a path in Import Files, so LIBPATH fires.
22180      shlibpath_overrides_runpath=yes
22181      ;;
22182    *,no) # both, prefer aix
22183      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
22184      library_names_spec='$libname$release.a $libname.a'
22185      soname_spec='$libname$release$shared_ext$major'
22186      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
22187      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
22188      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
22189      ;;
22190    esac
22191    shlibpath_var=LIBPATH
22192  fi
22193  ;;
22194
22195amigaos*)
22196  case $host_cpu in
22197  powerpc)
22198    # Since July 2007 AmigaOS4 officially supports .so libraries.
22199    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22200    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22201    ;;
22202  m68k)
22203    library_names_spec='$libname.ixlibrary $libname.a'
22204    # Create ${libname}_ixlibrary.a entries in /sys/libs.
22205    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
22206    ;;
22207  esac
22208  ;;
22209
22210beos*)
22211  library_names_spec='$libname$shared_ext'
22212  dynamic_linker="$host_os ld.so"
22213  shlibpath_var=LIBRARY_PATH
22214  ;;
22215
22216bsdi[45]*)
22217  version_type=linux # correct to gnu/linux during the next big refactor
22218  need_version=no
22219  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22220  soname_spec='$libname$release$shared_ext$major'
22221  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22222  shlibpath_var=LD_LIBRARY_PATH
22223  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22224  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22225  # the default ld.so.conf also contains /usr/contrib/lib and
22226  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22227  # libtool to hard-code these into programs
22228  ;;
22229
22230cygwin* | mingw* | pw32* | cegcc*)
22231  version_type=windows
22232  shrext_cmds=.dll
22233  need_version=no
22234  need_lib_prefix=no
22235
22236  case $GCC,$cc_basename in
22237  yes,*)
22238    # gcc
22239    library_names_spec='$libname.dll.a'
22240    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22241    postinstall_cmds='base_file=`basename \$file`~
22242      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
22243      dldir=$destdir/`dirname \$dlpath`~
22244      test -d \$dldir || mkdir -p \$dldir~
22245      $install_prog $dir/$dlname \$dldir/$dlname~
22246      chmod a+x \$dldir/$dlname~
22247      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22248        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22249      fi'
22250    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22251      dlpath=$dir/\$dldll~
22252       $RM \$dlpath'
22253    shlibpath_overrides_runpath=yes
22254
22255    case $host_os in
22256    cygwin*)
22257      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22258      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22259
22260      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
22261      ;;
22262    mingw* | cegcc*)
22263      # MinGW DLLs use traditional 'lib' prefix
22264      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22265      ;;
22266    pw32*)
22267      # pw32 DLLs use 'pw' prefix rather than 'lib'
22268      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22269      ;;
22270    esac
22271    dynamic_linker='Win32 ld.exe'
22272    ;;
22273
22274  *,cl*)
22275    # Native MSVC
22276    libname_spec='$name'
22277    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22278    library_names_spec='$libname.dll.lib'
22279
22280    case $build_os in
22281    mingw*)
22282      sys_lib_search_path_spec=
22283      lt_save_ifs=$IFS
22284      IFS=';'
22285      for lt_path in $LIB
22286      do
22287        IFS=$lt_save_ifs
22288        # Let DOS variable expansion print the short 8.3 style file name.
22289        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
22290        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
22291      done
22292      IFS=$lt_save_ifs
22293      # Convert to MSYS style.
22294      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
22295      ;;
22296    cygwin*)
22297      # Convert to unix form, then to dos form, then back to unix form
22298      # but this time dos style (no spaces!) so that the unix form looks
22299      # like /cygdrive/c/PROGRA~1:/cygdr...
22300      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
22301      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
22302      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22303      ;;
22304    *)
22305      sys_lib_search_path_spec=$LIB
22306      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
22307        # It is most probably a Windows format PATH.
22308        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22309      else
22310        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22311      fi
22312      # FIXME: find the short name or the path components, as spaces are
22313      # common. (e.g. "Program Files" -> "PROGRA~1")
22314      ;;
22315    esac
22316
22317    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22318    postinstall_cmds='base_file=`basename \$file`~
22319      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
22320      dldir=$destdir/`dirname \$dlpath`~
22321      test -d \$dldir || mkdir -p \$dldir~
22322      $install_prog $dir/$dlname \$dldir/$dlname'
22323    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22324      dlpath=$dir/\$dldll~
22325       $RM \$dlpath'
22326    shlibpath_overrides_runpath=yes
22327    dynamic_linker='Win32 link.exe'
22328    ;;
22329
22330  *)
22331    # Assume MSVC wrapper
22332    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
22333    dynamic_linker='Win32 ld.exe'
22334    ;;
22335  esac
22336  # FIXME: first we should search . and the directory the executable is in
22337  shlibpath_var=PATH
22338  ;;
22339
22340darwin* | rhapsody*)
22341  dynamic_linker="$host_os dyld"
22342  version_type=darwin
22343  need_lib_prefix=no
22344  need_version=no
22345  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
22346  soname_spec='$libname$release$major$shared_ext'
22347  shlibpath_overrides_runpath=yes
22348  shlibpath_var=DYLD_LIBRARY_PATH
22349  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22350
22351  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
22352  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22353  ;;
22354
22355dgux*)
22356  version_type=linux # correct to gnu/linux during the next big refactor
22357  need_lib_prefix=no
22358  need_version=no
22359  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22360  soname_spec='$libname$release$shared_ext$major'
22361  shlibpath_var=LD_LIBRARY_PATH
22362  ;;
22363
22364freebsd* | dragonfly*)
22365  # DragonFly does not have aout.  When/if they implement a new
22366  # versioning mechanism, adjust this.
22367  if test -x /usr/bin/objformat; then
22368    objformat=`/usr/bin/objformat`
22369  else
22370    case $host_os in
22371    freebsd[23].*) objformat=aout ;;
22372    *) objformat=elf ;;
22373    esac
22374  fi
22375  version_type=freebsd-$objformat
22376  case $version_type in
22377    freebsd-elf*)
22378      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22379      soname_spec='$libname$release$shared_ext$major'
22380      need_version=no
22381      need_lib_prefix=no
22382      ;;
22383    freebsd-*)
22384      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22385      need_version=yes
22386      ;;
22387  esac
22388  shlibpath_var=LD_LIBRARY_PATH
22389  case $host_os in
22390  freebsd2.*)
22391    shlibpath_overrides_runpath=yes
22392    ;;
22393  freebsd3.[01]* | freebsdelf3.[01]*)
22394    shlibpath_overrides_runpath=yes
22395    hardcode_into_libs=yes
22396    ;;
22397  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22398  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22399    shlibpath_overrides_runpath=no
22400    hardcode_into_libs=yes
22401    ;;
22402  *) # from 4.6 on, and DragonFly
22403    shlibpath_overrides_runpath=yes
22404    hardcode_into_libs=yes
22405    ;;
22406  esac
22407  ;;
22408
22409haiku*)
22410  version_type=linux # correct to gnu/linux during the next big refactor
22411  need_lib_prefix=no
22412  need_version=no
22413  dynamic_linker="$host_os runtime_loader"
22414  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22415  soname_spec='$libname$release$shared_ext$major'
22416  shlibpath_var=LIBRARY_PATH
22417  shlibpath_overrides_runpath=no
22418  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
22419  hardcode_into_libs=yes
22420  ;;
22421
22422hpux9* | hpux10* | hpux11*)
22423  # Give a soname corresponding to the major version so that dld.sl refuses to
22424  # link against other versions.
22425  version_type=sunos
22426  need_lib_prefix=no
22427  need_version=no
22428  case $host_cpu in
22429  ia64*)
22430    shrext_cmds='.so'
22431    hardcode_into_libs=yes
22432    dynamic_linker="$host_os dld.so"
22433    shlibpath_var=LD_LIBRARY_PATH
22434    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22435    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22436    soname_spec='$libname$release$shared_ext$major'
22437    if test 32 = "$HPUX_IA64_MODE"; then
22438      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22439      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
22440    else
22441      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22442      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
22443    fi
22444    ;;
22445  hppa*64*)
22446    shrext_cmds='.sl'
22447    hardcode_into_libs=yes
22448    dynamic_linker="$host_os dld.sl"
22449    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22450    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22451    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22452    soname_spec='$libname$release$shared_ext$major'
22453    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22454    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22455    ;;
22456  *)
22457    shrext_cmds='.sl'
22458    dynamic_linker="$host_os dld.sl"
22459    shlibpath_var=SHLIB_PATH
22460    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22461    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22462    soname_spec='$libname$release$shared_ext$major'
22463    ;;
22464  esac
22465  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22466  postinstall_cmds='chmod 555 $lib'
22467  # or fails outright, so override atomically:
22468  install_override_mode=555
22469  ;;
22470
22471interix[3-9]*)
22472  version_type=linux # correct to gnu/linux during the next big refactor
22473  need_lib_prefix=no
22474  need_version=no
22475  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22476  soname_spec='$libname$release$shared_ext$major'
22477  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22478  shlibpath_var=LD_LIBRARY_PATH
22479  shlibpath_overrides_runpath=no
22480  hardcode_into_libs=yes
22481  ;;
22482
22483irix5* | irix6* | nonstopux*)
22484  case $host_os in
22485    nonstopux*) version_type=nonstopux ;;
22486    *)
22487	if test yes = "$lt_cv_prog_gnu_ld"; then
22488		version_type=linux # correct to gnu/linux during the next big refactor
22489	else
22490		version_type=irix
22491	fi ;;
22492  esac
22493  need_lib_prefix=no
22494  need_version=no
22495  soname_spec='$libname$release$shared_ext$major'
22496  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
22497  case $host_os in
22498  irix5* | nonstopux*)
22499    libsuff= shlibsuff=
22500    ;;
22501  *)
22502    case $LD in # libtool.m4 will add one of these switches to LD
22503    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22504      libsuff= shlibsuff= libmagic=32-bit;;
22505    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22506      libsuff=32 shlibsuff=N32 libmagic=N32;;
22507    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22508      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22509    *) libsuff= shlibsuff= libmagic=never-match;;
22510    esac
22511    ;;
22512  esac
22513  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22514  shlibpath_overrides_runpath=no
22515  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
22516  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
22517  hardcode_into_libs=yes
22518  ;;
22519
22520# No shared lib support for Linux oldld, aout, or coff.
22521linux*oldld* | linux*aout* | linux*coff*)
22522  dynamic_linker=no
22523  ;;
22524
22525linux*android*)
22526  version_type=none # Android doesn't support versioned libraries.
22527  need_lib_prefix=no
22528  need_version=no
22529  library_names_spec='$libname$release$shared_ext'
22530  soname_spec='$libname$release$shared_ext'
22531  finish_cmds=
22532  shlibpath_var=LD_LIBRARY_PATH
22533  shlibpath_overrides_runpath=yes
22534
22535  # This implies no fast_install, which is unacceptable.
22536  # Some rework will be needed to allow for fast_install
22537  # before this can be enabled.
22538  hardcode_into_libs=yes
22539
22540  dynamic_linker='Android linker'
22541  # Don't embed -rpath directories since the linker doesn't support them.
22542  hardcode_libdir_flag_spec='-L$libdir'
22543  ;;
22544
22545# This must be glibc/ELF.
22546linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
22547  version_type=linux # correct to gnu/linux during the next big refactor
22548  need_lib_prefix=no
22549  need_version=no
22550  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22551  soname_spec='$libname$release$shared_ext$major'
22552  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22553  shlibpath_var=LD_LIBRARY_PATH
22554  shlibpath_overrides_runpath=no
22555
22556  # Some binutils ld are patched to set DT_RUNPATH
22557  if test ${lt_cv_shlibpath_overrides_runpath+y}
22558then :
22559  printf %s "(cached) " >&6
22560else $as_nop
22561  lt_cv_shlibpath_overrides_runpath=no
22562    save_LDFLAGS=$LDFLAGS
22563    save_libdir=$libdir
22564    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
22565	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
22566    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22567/* end confdefs.h.  */
22568
22569int
22570main (void)
22571{
22572
22573  ;
22574  return 0;
22575}
22576_ACEOF
22577if ac_fn_c_try_link "$LINENO"
22578then :
22579  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
22580then :
22581  lt_cv_shlibpath_overrides_runpath=yes
22582fi
22583fi
22584rm -f core conftest.err conftest.$ac_objext conftest.beam \
22585    conftest$ac_exeext conftest.$ac_ext
22586    LDFLAGS=$save_LDFLAGS
22587    libdir=$save_libdir
22588
22589fi
22590
22591  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22592
22593  # This implies no fast_install, which is unacceptable.
22594  # Some rework will be needed to allow for fast_install
22595  # before this can be enabled.
22596  hardcode_into_libs=yes
22597
22598  # Ideally, we could use ldconfig to report *all* directores which are
22599  # searched for libraries, however this is still not possible.  Aside from not
22600  # being certain /sbin/ldconfig is available, command
22601  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
22602  # even though it is searched at run-time.  Try to do the best guess by
22603  # appending ld.so.conf contents (and includes) to the search path.
22604  if test -f /etc/ld.so.conf; then
22605    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' ' '`
22606    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22607  fi
22608
22609  # We used to test for /lib/ld.so.1 and disable shared libraries on
22610  # powerpc, because MkLinux only supported shared libraries with the
22611  # GNU dynamic linker.  Since this was broken with cross compilers,
22612  # most powerpc-linux boxes support dynamic linking these days and
22613  # people can always --disable-shared, the test was removed, and we
22614  # assume the GNU/Linux dynamic linker is in use.
22615  dynamic_linker='GNU/Linux ld.so'
22616  ;;
22617
22618netbsd*)
22619  version_type=sunos
22620  need_lib_prefix=no
22621  need_version=no
22622  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22623    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22624    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22625    dynamic_linker='NetBSD (a.out) ld.so'
22626  else
22627    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22628    soname_spec='$libname$release$shared_ext$major'
22629    dynamic_linker='NetBSD ld.elf_so'
22630  fi
22631  shlibpath_var=LD_LIBRARY_PATH
22632  shlibpath_overrides_runpath=yes
22633  hardcode_into_libs=yes
22634  ;;
22635
22636newsos6)
22637  version_type=linux # correct to gnu/linux during the next big refactor
22638  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22639  shlibpath_var=LD_LIBRARY_PATH
22640  shlibpath_overrides_runpath=yes
22641  ;;
22642
22643*nto* | *qnx*)
22644  version_type=qnx
22645  need_lib_prefix=no
22646  need_version=no
22647  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22648  soname_spec='$libname$release$shared_ext$major'
22649  shlibpath_var=LD_LIBRARY_PATH
22650  shlibpath_overrides_runpath=no
22651  hardcode_into_libs=yes
22652  dynamic_linker='ldqnx.so'
22653  ;;
22654
22655openbsd* | bitrig*)
22656  version_type=sunos
22657  sys_lib_dlsearch_path_spec=/usr/lib
22658  need_lib_prefix=no
22659  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
22660    need_version=no
22661  else
22662    need_version=yes
22663  fi
22664  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22665  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22666  shlibpath_var=LD_LIBRARY_PATH
22667  shlibpath_overrides_runpath=yes
22668  ;;
22669
22670os2*)
22671  libname_spec='$name'
22672  version_type=windows
22673  shrext_cmds=.dll
22674  need_version=no
22675  need_lib_prefix=no
22676  # OS/2 can only load a DLL with a base name of 8 characters or less.
22677  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
22678    v=$($ECHO $release$versuffix | tr -d .-);
22679    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
22680    $ECHO $n$v`$shared_ext'
22681  library_names_spec='${libname}_dll.$libext'
22682  dynamic_linker='OS/2 ld.exe'
22683  shlibpath_var=BEGINLIBPATH
22684  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22685  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22686  postinstall_cmds='base_file=`basename \$file`~
22687    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
22688    dldir=$destdir/`dirname \$dlpath`~
22689    test -d \$dldir || mkdir -p \$dldir~
22690    $install_prog $dir/$dlname \$dldir/$dlname~
22691    chmod a+x \$dldir/$dlname~
22692    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22693      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22694    fi'
22695  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
22696    dlpath=$dir/\$dldll~
22697    $RM \$dlpath'
22698  ;;
22699
22700osf3* | osf4* | osf5*)
22701  version_type=osf
22702  need_lib_prefix=no
22703  need_version=no
22704  soname_spec='$libname$release$shared_ext$major'
22705  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22706  shlibpath_var=LD_LIBRARY_PATH
22707  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22708  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22709  ;;
22710
22711rdos*)
22712  dynamic_linker=no
22713  ;;
22714
22715solaris*)
22716  version_type=linux # correct to gnu/linux during the next big refactor
22717  need_lib_prefix=no
22718  need_version=no
22719  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22720  soname_spec='$libname$release$shared_ext$major'
22721  shlibpath_var=LD_LIBRARY_PATH
22722  shlibpath_overrides_runpath=yes
22723  hardcode_into_libs=yes
22724  # ldd complains unless libraries are executable
22725  postinstall_cmds='chmod +x $lib'
22726  ;;
22727
22728sunos4*)
22729  version_type=sunos
22730  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22731  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22732  shlibpath_var=LD_LIBRARY_PATH
22733  shlibpath_overrides_runpath=yes
22734  if test yes = "$with_gnu_ld"; then
22735    need_lib_prefix=no
22736  fi
22737  need_version=yes
22738  ;;
22739
22740sysv4 | sysv4.3*)
22741  version_type=linux # correct to gnu/linux during the next big refactor
22742  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22743  soname_spec='$libname$release$shared_ext$major'
22744  shlibpath_var=LD_LIBRARY_PATH
22745  case $host_vendor in
22746    sni)
22747      shlibpath_overrides_runpath=no
22748      need_lib_prefix=no
22749      runpath_var=LD_RUN_PATH
22750      ;;
22751    siemens)
22752      need_lib_prefix=no
22753      ;;
22754    motorola)
22755      need_lib_prefix=no
22756      need_version=no
22757      shlibpath_overrides_runpath=no
22758      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22759      ;;
22760  esac
22761  ;;
22762
22763sysv4*MP*)
22764  if test -d /usr/nec; then
22765    version_type=linux # correct to gnu/linux during the next big refactor
22766    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
22767    soname_spec='$libname$shared_ext.$major'
22768    shlibpath_var=LD_LIBRARY_PATH
22769  fi
22770  ;;
22771
22772sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22773  version_type=sco
22774  need_lib_prefix=no
22775  need_version=no
22776  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
22777  soname_spec='$libname$release$shared_ext$major'
22778  shlibpath_var=LD_LIBRARY_PATH
22779  shlibpath_overrides_runpath=yes
22780  hardcode_into_libs=yes
22781  if test yes = "$with_gnu_ld"; then
22782    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22783  else
22784    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22785    case $host_os in
22786      sco3.2v5*)
22787        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22788	;;
22789    esac
22790  fi
22791  sys_lib_dlsearch_path_spec='/usr/lib'
22792  ;;
22793
22794tpf*)
22795  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
22796  version_type=linux # correct to gnu/linux during the next big refactor
22797  need_lib_prefix=no
22798  need_version=no
22799  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22800  shlibpath_var=LD_LIBRARY_PATH
22801  shlibpath_overrides_runpath=no
22802  hardcode_into_libs=yes
22803  ;;
22804
22805uts4*)
22806  version_type=linux # correct to gnu/linux during the next big refactor
22807  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22808  soname_spec='$libname$release$shared_ext$major'
22809  shlibpath_var=LD_LIBRARY_PATH
22810  ;;
22811
22812*)
22813  dynamic_linker=no
22814  ;;
22815esac
22816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22817printf "%s\n" "$dynamic_linker" >&6; }
22818test no = "$dynamic_linker" && can_build_shared=no
22819
22820variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22821if test yes = "$GCC"; then
22822  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22823fi
22824
22825if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
22826  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
22827fi
22828
22829if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
22830  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
22831fi
22832
22833# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
22834configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
22835
22836# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
22837func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
22838
22839# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
22840configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
22841
22842
22843
22844
22845
22846
22847
22848
22849
22850
22851
22852
22853
22854
22855
22856
22857
22858
22859
22860
22861
22862
22863
22864
22865
22866
22867
22868
22869
22870
22871
22872
22873
22874
22875
22876
22877
22878
22879
22880
22881
22882
22883
22884
22885
22886
22887
22888
22889
22890
22891
22892
22893
22894
22895
22896
22897
22898
22899
22900
22901
22902
22903
22904
22905
22906
22907
22908
22909
22910
22911
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936
22937
22938  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22939printf %s "checking how to hardcode library paths into programs... " >&6; }
22940hardcode_action=
22941if test -n "$hardcode_libdir_flag_spec" ||
22942   test -n "$runpath_var" ||
22943   test yes = "$hardcode_automatic"; then
22944
22945  # We can hardcode non-existent directories.
22946  if test no != "$hardcode_direct" &&
22947     # If the only mechanism to avoid hardcoding is shlibpath_var, we
22948     # have to relink, otherwise we might link with an installed library
22949     # when we should be linking with a yet-to-be-installed one
22950     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
22951     test no != "$hardcode_minus_L"; then
22952    # Linking always hardcodes the temporary library directory.
22953    hardcode_action=relink
22954  else
22955    # We can link without hardcoding, and we can hardcode nonexisting dirs.
22956    hardcode_action=immediate
22957  fi
22958else
22959  # We cannot hardcode anything, or else we can only hardcode existing
22960  # directories.
22961  hardcode_action=unsupported
22962fi
22963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
22964printf "%s\n" "$hardcode_action" >&6; }
22965
22966if test relink = "$hardcode_action" ||
22967   test yes = "$inherit_rpath"; then
22968  # Fast installation is not supported
22969  enable_fast_install=no
22970elif test yes = "$shlibpath_overrides_runpath" ||
22971     test no = "$enable_shared"; then
22972  # Fast installation is not necessary
22973  enable_fast_install=needless
22974fi
22975
22976
22977
22978
22979
22980
22981  if test yes != "$enable_dlopen"; then
22982  enable_dlopen=unknown
22983  enable_dlopen_self=unknown
22984  enable_dlopen_self_static=unknown
22985else
22986  lt_cv_dlopen=no
22987  lt_cv_dlopen_libs=
22988
22989  case $host_os in
22990  beos*)
22991    lt_cv_dlopen=load_add_on
22992    lt_cv_dlopen_libs=
22993    lt_cv_dlopen_self=yes
22994    ;;
22995
22996  mingw* | pw32* | cegcc*)
22997    lt_cv_dlopen=LoadLibrary
22998    lt_cv_dlopen_libs=
22999    ;;
23000
23001  cygwin*)
23002    lt_cv_dlopen=dlopen
23003    lt_cv_dlopen_libs=
23004    ;;
23005
23006  darwin*)
23007    # if libdl is installed we need to link against it
23008    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
23009printf %s "checking for dlopen in -ldl... " >&6; }
23010if test ${ac_cv_lib_dl_dlopen+y}
23011then :
23012  printf %s "(cached) " >&6
23013else $as_nop
23014  ac_check_lib_save_LIBS=$LIBS
23015LIBS="-ldl  $LIBS"
23016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23017/* end confdefs.h.  */
23018
23019/* Override any GCC internal prototype to avoid an error.
23020   Use char because int might match the return type of a GCC
23021   builtin and then its argument prototype would still apply.  */
23022char dlopen ();
23023int
23024main (void)
23025{
23026return dlopen ();
23027  ;
23028  return 0;
23029}
23030_ACEOF
23031if ac_fn_c_try_link "$LINENO"
23032then :
23033  ac_cv_lib_dl_dlopen=yes
23034else $as_nop
23035  ac_cv_lib_dl_dlopen=no
23036fi
23037rm -f core conftest.err conftest.$ac_objext conftest.beam \
23038    conftest$ac_exeext conftest.$ac_ext
23039LIBS=$ac_check_lib_save_LIBS
23040fi
23041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
23042printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
23043if test "x$ac_cv_lib_dl_dlopen" = xyes
23044then :
23045  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
23046else $as_nop
23047
23048    lt_cv_dlopen=dyld
23049    lt_cv_dlopen_libs=
23050    lt_cv_dlopen_self=yes
23051
23052fi
23053
23054    ;;
23055
23056  tpf*)
23057    # Don't try to run any link tests for TPF.  We know it's impossible
23058    # because TPF is a cross-compiler, and we know how we open DSOs.
23059    lt_cv_dlopen=dlopen
23060    lt_cv_dlopen_libs=
23061    lt_cv_dlopen_self=no
23062    ;;
23063
23064  *)
23065    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
23066if test "x$ac_cv_func_shl_load" = xyes
23067then :
23068  lt_cv_dlopen=shl_load
23069else $as_nop
23070  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
23071printf %s "checking for shl_load in -ldld... " >&6; }
23072if test ${ac_cv_lib_dld_shl_load+y}
23073then :
23074  printf %s "(cached) " >&6
23075else $as_nop
23076  ac_check_lib_save_LIBS=$LIBS
23077LIBS="-ldld  $LIBS"
23078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23079/* end confdefs.h.  */
23080
23081/* Override any GCC internal prototype to avoid an error.
23082   Use char because int might match the return type of a GCC
23083   builtin and then its argument prototype would still apply.  */
23084char shl_load ();
23085int
23086main (void)
23087{
23088return shl_load ();
23089  ;
23090  return 0;
23091}
23092_ACEOF
23093if ac_fn_c_try_link "$LINENO"
23094then :
23095  ac_cv_lib_dld_shl_load=yes
23096else $as_nop
23097  ac_cv_lib_dld_shl_load=no
23098fi
23099rm -f core conftest.err conftest.$ac_objext conftest.beam \
23100    conftest$ac_exeext conftest.$ac_ext
23101LIBS=$ac_check_lib_save_LIBS
23102fi
23103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
23104printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
23105if test "x$ac_cv_lib_dld_shl_load" = xyes
23106then :
23107  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
23108else $as_nop
23109  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
23110if test "x$ac_cv_func_dlopen" = xyes
23111then :
23112  lt_cv_dlopen=dlopen
23113else $as_nop
23114  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
23115printf %s "checking for dlopen in -ldl... " >&6; }
23116if test ${ac_cv_lib_dl_dlopen+y}
23117then :
23118  printf %s "(cached) " >&6
23119else $as_nop
23120  ac_check_lib_save_LIBS=$LIBS
23121LIBS="-ldl  $LIBS"
23122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23123/* end confdefs.h.  */
23124
23125/* Override any GCC internal prototype to avoid an error.
23126   Use char because int might match the return type of a GCC
23127   builtin and then its argument prototype would still apply.  */
23128char dlopen ();
23129int
23130main (void)
23131{
23132return dlopen ();
23133  ;
23134  return 0;
23135}
23136_ACEOF
23137if ac_fn_c_try_link "$LINENO"
23138then :
23139  ac_cv_lib_dl_dlopen=yes
23140else $as_nop
23141  ac_cv_lib_dl_dlopen=no
23142fi
23143rm -f core conftest.err conftest.$ac_objext conftest.beam \
23144    conftest$ac_exeext conftest.$ac_ext
23145LIBS=$ac_check_lib_save_LIBS
23146fi
23147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
23148printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
23149if test "x$ac_cv_lib_dl_dlopen" = xyes
23150then :
23151  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
23152else $as_nop
23153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
23154printf %s "checking for dlopen in -lsvld... " >&6; }
23155if test ${ac_cv_lib_svld_dlopen+y}
23156then :
23157  printf %s "(cached) " >&6
23158else $as_nop
23159  ac_check_lib_save_LIBS=$LIBS
23160LIBS="-lsvld  $LIBS"
23161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23162/* end confdefs.h.  */
23163
23164/* Override any GCC internal prototype to avoid an error.
23165   Use char because int might match the return type of a GCC
23166   builtin and then its argument prototype would still apply.  */
23167char dlopen ();
23168int
23169main (void)
23170{
23171return dlopen ();
23172  ;
23173  return 0;
23174}
23175_ACEOF
23176if ac_fn_c_try_link "$LINENO"
23177then :
23178  ac_cv_lib_svld_dlopen=yes
23179else $as_nop
23180  ac_cv_lib_svld_dlopen=no
23181fi
23182rm -f core conftest.err conftest.$ac_objext conftest.beam \
23183    conftest$ac_exeext conftest.$ac_ext
23184LIBS=$ac_check_lib_save_LIBS
23185fi
23186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
23187printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
23188if test "x$ac_cv_lib_svld_dlopen" = xyes
23189then :
23190  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
23191else $as_nop
23192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
23193printf %s "checking for dld_link in -ldld... " >&6; }
23194if test ${ac_cv_lib_dld_dld_link+y}
23195then :
23196  printf %s "(cached) " >&6
23197else $as_nop
23198  ac_check_lib_save_LIBS=$LIBS
23199LIBS="-ldld  $LIBS"
23200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23201/* end confdefs.h.  */
23202
23203/* Override any GCC internal prototype to avoid an error.
23204   Use char because int might match the return type of a GCC
23205   builtin and then its argument prototype would still apply.  */
23206char dld_link ();
23207int
23208main (void)
23209{
23210return dld_link ();
23211  ;
23212  return 0;
23213}
23214_ACEOF
23215if ac_fn_c_try_link "$LINENO"
23216then :
23217  ac_cv_lib_dld_dld_link=yes
23218else $as_nop
23219  ac_cv_lib_dld_dld_link=no
23220fi
23221rm -f core conftest.err conftest.$ac_objext conftest.beam \
23222    conftest$ac_exeext conftest.$ac_ext
23223LIBS=$ac_check_lib_save_LIBS
23224fi
23225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
23226printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
23227if test "x$ac_cv_lib_dld_dld_link" = xyes
23228then :
23229  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
23230fi
23231
23232
23233fi
23234
23235
23236fi
23237
23238
23239fi
23240
23241
23242fi
23243
23244
23245fi
23246
23247    ;;
23248  esac
23249
23250  if test no = "$lt_cv_dlopen"; then
23251    enable_dlopen=no
23252  else
23253    enable_dlopen=yes
23254  fi
23255
23256  case $lt_cv_dlopen in
23257  dlopen)
23258    save_CPPFLAGS=$CPPFLAGS
23259    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23260
23261    save_LDFLAGS=$LDFLAGS
23262    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23263
23264    save_LIBS=$LIBS
23265    LIBS="$lt_cv_dlopen_libs $LIBS"
23266
23267    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
23268printf %s "checking whether a program can dlopen itself... " >&6; }
23269if test ${lt_cv_dlopen_self+y}
23270then :
23271  printf %s "(cached) " >&6
23272else $as_nop
23273  	  if test yes = "$cross_compiling"; then :
23274  lt_cv_dlopen_self=cross
23275else
23276  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23277  lt_status=$lt_dlunknown
23278  cat > conftest.$ac_ext <<_LT_EOF
23279#line $LINENO "configure"
23280#include "confdefs.h"
23281
23282#if HAVE_DLFCN_H
23283#include <dlfcn.h>
23284#endif
23285
23286#include <stdio.h>
23287
23288#ifdef RTLD_GLOBAL
23289#  define LT_DLGLOBAL		RTLD_GLOBAL
23290#else
23291#  ifdef DL_GLOBAL
23292#    define LT_DLGLOBAL		DL_GLOBAL
23293#  else
23294#    define LT_DLGLOBAL		0
23295#  endif
23296#endif
23297
23298/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23299   find out it does not work in some platform. */
23300#ifndef LT_DLLAZY_OR_NOW
23301#  ifdef RTLD_LAZY
23302#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
23303#  else
23304#    ifdef DL_LAZY
23305#      define LT_DLLAZY_OR_NOW		DL_LAZY
23306#    else
23307#      ifdef RTLD_NOW
23308#        define LT_DLLAZY_OR_NOW	RTLD_NOW
23309#      else
23310#        ifdef DL_NOW
23311#          define LT_DLLAZY_OR_NOW	DL_NOW
23312#        else
23313#          define LT_DLLAZY_OR_NOW	0
23314#        endif
23315#      endif
23316#    endif
23317#  endif
23318#endif
23319
23320/* When -fvisibility=hidden is used, assume the code has been annotated
23321   correspondingly for the symbols needed.  */
23322#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
23323int fnord () __attribute__((visibility("default")));
23324#endif
23325
23326int fnord () { return 42; }
23327int main ()
23328{
23329  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23330  int status = $lt_dlunknown;
23331
23332  if (self)
23333    {
23334      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23335      else
23336        {
23337	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
23338          else puts (dlerror ());
23339	}
23340      /* dlclose (self); */
23341    }
23342  else
23343    puts (dlerror ());
23344
23345  return status;
23346}
23347_LT_EOF
23348  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
23349  (eval $ac_link) 2>&5
23350  ac_status=$?
23351  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23352  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
23353    (./conftest; exit; ) >&5 2>/dev/null
23354    lt_status=$?
23355    case x$lt_status in
23356      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23357      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23358      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
23359    esac
23360  else :
23361    # compilation failed
23362    lt_cv_dlopen_self=no
23363  fi
23364fi
23365rm -fr conftest*
23366
23367
23368fi
23369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
23370printf "%s\n" "$lt_cv_dlopen_self" >&6; }
23371
23372    if test yes = "$lt_cv_dlopen_self"; then
23373      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
23374      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
23375printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
23376if test ${lt_cv_dlopen_self_static+y}
23377then :
23378  printf %s "(cached) " >&6
23379else $as_nop
23380  	  if test yes = "$cross_compiling"; then :
23381  lt_cv_dlopen_self_static=cross
23382else
23383  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23384  lt_status=$lt_dlunknown
23385  cat > conftest.$ac_ext <<_LT_EOF
23386#line $LINENO "configure"
23387#include "confdefs.h"
23388
23389#if HAVE_DLFCN_H
23390#include <dlfcn.h>
23391#endif
23392
23393#include <stdio.h>
23394
23395#ifdef RTLD_GLOBAL
23396#  define LT_DLGLOBAL		RTLD_GLOBAL
23397#else
23398#  ifdef DL_GLOBAL
23399#    define LT_DLGLOBAL		DL_GLOBAL
23400#  else
23401#    define LT_DLGLOBAL		0
23402#  endif
23403#endif
23404
23405/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23406   find out it does not work in some platform. */
23407#ifndef LT_DLLAZY_OR_NOW
23408#  ifdef RTLD_LAZY
23409#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
23410#  else
23411#    ifdef DL_LAZY
23412#      define LT_DLLAZY_OR_NOW		DL_LAZY
23413#    else
23414#      ifdef RTLD_NOW
23415#        define LT_DLLAZY_OR_NOW	RTLD_NOW
23416#      else
23417#        ifdef DL_NOW
23418#          define LT_DLLAZY_OR_NOW	DL_NOW
23419#        else
23420#          define LT_DLLAZY_OR_NOW	0
23421#        endif
23422#      endif
23423#    endif
23424#  endif
23425#endif
23426
23427/* When -fvisibility=hidden is used, assume the code has been annotated
23428   correspondingly for the symbols needed.  */
23429#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
23430int fnord () __attribute__((visibility("default")));
23431#endif
23432
23433int fnord () { return 42; }
23434int main ()
23435{
23436  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23437  int status = $lt_dlunknown;
23438
23439  if (self)
23440    {
23441      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23442      else
23443        {
23444	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
23445          else puts (dlerror ());
23446	}
23447      /* dlclose (self); */
23448    }
23449  else
23450    puts (dlerror ());
23451
23452  return status;
23453}
23454_LT_EOF
23455  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
23456  (eval $ac_link) 2>&5
23457  ac_status=$?
23458  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23459  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
23460    (./conftest; exit; ) >&5 2>/dev/null
23461    lt_status=$?
23462    case x$lt_status in
23463      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23464      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23465      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
23466    esac
23467  else :
23468    # compilation failed
23469    lt_cv_dlopen_self_static=no
23470  fi
23471fi
23472rm -fr conftest*
23473
23474
23475fi
23476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
23477printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
23478    fi
23479
23480    CPPFLAGS=$save_CPPFLAGS
23481    LDFLAGS=$save_LDFLAGS
23482    LIBS=$save_LIBS
23483    ;;
23484  esac
23485
23486  case $lt_cv_dlopen_self in
23487  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23488  *) enable_dlopen_self=unknown ;;
23489  esac
23490
23491  case $lt_cv_dlopen_self_static in
23492  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23493  *) enable_dlopen_self_static=unknown ;;
23494  esac
23495fi
23496
23497
23498
23499
23500
23501
23502
23503
23504
23505
23506
23507
23508
23509
23510
23511
23512
23513striplib=
23514old_striplib=
23515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
23516printf %s "checking whether stripping libraries is possible... " >&6; }
23517if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
23518  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23519  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23520  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23521printf "%s\n" "yes" >&6; }
23522else
23523# FIXME - insert some real tests, host_os isn't really good enough
23524  case $host_os in
23525  darwin*)
23526    if test -n "$STRIP"; then
23527      striplib="$STRIP -x"
23528      old_striplib="$STRIP -S"
23529      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23530printf "%s\n" "yes" >&6; }
23531    else
23532      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23533printf "%s\n" "no" >&6; }
23534    fi
23535    ;;
23536  *)
23537    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23538printf "%s\n" "no" >&6; }
23539    ;;
23540  esac
23541fi
23542
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552
23553
23554  # Report what library types will actually be built
23555  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
23556printf %s "checking if libtool supports shared libraries... " >&6; }
23557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
23558printf "%s\n" "$can_build_shared" >&6; }
23559
23560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
23561printf %s "checking whether to build shared libraries... " >&6; }
23562  test no = "$can_build_shared" && enable_shared=no
23563
23564  # On AIX, shared libraries and static libraries use the same namespace, and
23565  # are all built from PIC.
23566  case $host_os in
23567  aix3*)
23568    test yes = "$enable_shared" && enable_static=no
23569    if test -n "$RANLIB"; then
23570      archive_cmds="$archive_cmds~\$RANLIB \$lib"
23571      postinstall_cmds='$RANLIB $lib'
23572    fi
23573    ;;
23574
23575  aix[4-9]*)
23576    if test ia64 != "$host_cpu"; then
23577      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
23578      yes,aix,yes) ;;			# shared object as lib.so file only
23579      yes,svr4,*) ;;			# shared object as lib.so archive member only
23580      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
23581      esac
23582    fi
23583    ;;
23584  esac
23585  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
23586printf "%s\n" "$enable_shared" >&6; }
23587
23588  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
23589printf %s "checking whether to build static libraries... " >&6; }
23590  # Make sure either enable_shared or enable_static is yes.
23591  test yes = "$enable_shared" || enable_static=yes
23592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
23593printf "%s\n" "$enable_static" >&6; }
23594
23595
23596
23597
23598fi
23599ac_ext=c
23600ac_cpp='$CPP $CPPFLAGS'
23601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23603ac_compiler_gnu=$ac_cv_c_compiler_gnu
23604
23605CC=$lt_save_CC
23606
23607
23608
23609
23610
23611
23612
23613
23614
23615
23616
23617
23618
23619
23620
23621        ac_config_commands="$ac_config_commands libtool"
23622
23623
23624
23625
23626# Only expand once:
23627
23628
23629
23630
23631
23632
23633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
23634printf %s "checking if sntp will be built... " >&6; }
23635
23636# Check whether --with-sntp was given.
23637if test ${with_sntp+y}
23638then :
23639  withval=$with_sntp;
23640else $as_nop
23641  with_sntp="${withsntp=yes}"
23642
23643fi
23644
23645case "$with_sntp" in
23646 no)
23647    SNTP=
23648    ;;
23649 *)
23650    SNTP=sntp
23651    ;;
23652esac
23653
23654 if test -n "$SNTP"; then
23655  BUILD_SNTP_TRUE=
23656  BUILD_SNTP_FALSE='#'
23657else
23658  BUILD_SNTP_TRUE='#'
23659  BUILD_SNTP_FALSE=
23660fi
23661
23662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
23663printf "%s\n" "$with_sntp" >&6; }
23664
23665
23666
23667case "$SNTP" in
23668 '')
23669    SNTP_DB=
23670    SNTP_DL=
23671    SNTP_DS=
23672    ;;
23673esac
23674
23675###
23676
23677# NTP has (so far) been relying on leading-edge autogen.
23678# Therefore, by default:
23679# - use the version we ship with
23680# - do not install it
23681# - build a static copy (AC_DISABLE_SHARED - done earlier)
23682case "${enable_local_libopts+set}" in
23683 set) ;;
23684 *) enable_local_libopts=yes ;;
23685esac
23686case "${enable_libopts_install+set}" in
23687 set) ;;
23688 *) enable_libopts_install=no ;;
23689esac
23690enable_nls=no
23691# Autoupdate added the next two lines to ensure that your configure
23692# script's behavior did not change.  They are probably safe to remove.
23693
23694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
23695printf %s "checking for egrep... " >&6; }
23696if test ${ac_cv_path_EGREP+y}
23697then :
23698  printf %s "(cached) " >&6
23699else $as_nop
23700  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
23701   then ac_cv_path_EGREP="$GREP -E"
23702   else
23703     if test -z "$EGREP"; then
23704  ac_path_EGREP_found=false
23705  # Loop through the user's path and test for each of PROGNAME-LIST
23706  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23707for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
23708do
23709  IFS=$as_save_IFS
23710  case $as_dir in #(((
23711    '') as_dir=./ ;;
23712    */) ;;
23713    *) as_dir=$as_dir/ ;;
23714  esac
23715    for ac_prog in egrep
23716   do
23717    for ac_exec_ext in '' $ac_executable_extensions; do
23718      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
23719      as_fn_executable_p "$ac_path_EGREP" || continue
23720# Check for GNU ac_path_EGREP and select it if it is found.
23721  # Check for GNU $ac_path_EGREP
23722case `"$ac_path_EGREP" --version 2>&1` in
23723*GNU*)
23724  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
23725*)
23726  ac_count=0
23727  printf %s 0123456789 >"conftest.in"
23728  while :
23729  do
23730    cat "conftest.in" "conftest.in" >"conftest.tmp"
23731    mv "conftest.tmp" "conftest.in"
23732    cp "conftest.in" "conftest.nl"
23733    printf "%s\n" 'EGREP' >> "conftest.nl"
23734    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
23735    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
23736    as_fn_arith $ac_count + 1 && ac_count=$as_val
23737    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
23738      # Best one so far, save it but keep looking for a better one
23739      ac_cv_path_EGREP="$ac_path_EGREP"
23740      ac_path_EGREP_max=$ac_count
23741    fi
23742    # 10*(2^10) chars as input seems more than enough
23743    test $ac_count -gt 10 && break
23744  done
23745  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
23746esac
23747
23748      $ac_path_EGREP_found && break 3
23749    done
23750  done
23751  done
23752IFS=$as_save_IFS
23753  if test -z "$ac_cv_path_EGREP"; then
23754    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
23755  fi
23756else
23757  ac_cv_path_EGREP=$EGREP
23758fi
23759
23760   fi
23761fi
23762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
23763printf "%s\n" "$ac_cv_path_EGREP" >&6; }
23764 EGREP="$ac_cv_path_EGREP"
23765
23766
23767
23768
23769
23770
23771  ac_header_dirent=no
23772for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23773  as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
23775printf %s "checking for $ac_hdr that defines DIR... " >&6; }
23776if eval test \${$as_ac_Header+y}
23777then :
23778  printf %s "(cached) " >&6
23779else $as_nop
23780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23781/* end confdefs.h.  */
23782#include <sys/types.h>
23783#include <$ac_hdr>
23784
23785int
23786main (void)
23787{
23788if ((DIR *) 0)
23789return 0;
23790  ;
23791  return 0;
23792}
23793_ACEOF
23794if ac_fn_c_try_compile "$LINENO"
23795then :
23796  eval "$as_ac_Header=yes"
23797else $as_nop
23798  eval "$as_ac_Header=no"
23799fi
23800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23801fi
23802eval ac_res=\$$as_ac_Header
23803	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23804printf "%s\n" "$ac_res" >&6; }
23805if eval test \"x\$"$as_ac_Header"\" = x"yes"
23806then :
23807  cat >>confdefs.h <<_ACEOF
23808#define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
23809_ACEOF
23810
23811ac_header_dirent=$ac_hdr; break
23812fi
23813
23814done
23815# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23816if test $ac_header_dirent = dirent.h; then
23817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23818printf %s "checking for library containing opendir... " >&6; }
23819if test ${ac_cv_search_opendir+y}
23820then :
23821  printf %s "(cached) " >&6
23822else $as_nop
23823  ac_func_search_save_LIBS=$LIBS
23824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23825/* end confdefs.h.  */
23826
23827/* Override any GCC internal prototype to avoid an error.
23828   Use char because int might match the return type of a GCC
23829   builtin and then its argument prototype would still apply.  */
23830char opendir ();
23831int
23832main (void)
23833{
23834return opendir ();
23835  ;
23836  return 0;
23837}
23838_ACEOF
23839for ac_lib in '' dir
23840do
23841  if test -z "$ac_lib"; then
23842    ac_res="none required"
23843  else
23844    ac_res=-l$ac_lib
23845    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23846  fi
23847  if ac_fn_c_try_link "$LINENO"
23848then :
23849  ac_cv_search_opendir=$ac_res
23850fi
23851rm -f core conftest.err conftest.$ac_objext conftest.beam \
23852    conftest$ac_exeext
23853  if test ${ac_cv_search_opendir+y}
23854then :
23855  break
23856fi
23857done
23858if test ${ac_cv_search_opendir+y}
23859then :
23860
23861else $as_nop
23862  ac_cv_search_opendir=no
23863fi
23864rm conftest.$ac_ext
23865LIBS=$ac_func_search_save_LIBS
23866fi
23867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23868printf "%s\n" "$ac_cv_search_opendir" >&6; }
23869ac_res=$ac_cv_search_opendir
23870if test "$ac_res" != no
23871then :
23872  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23873
23874fi
23875
23876else
23877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23878printf %s "checking for library containing opendir... " >&6; }
23879if test ${ac_cv_search_opendir+y}
23880then :
23881  printf %s "(cached) " >&6
23882else $as_nop
23883  ac_func_search_save_LIBS=$LIBS
23884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23885/* end confdefs.h.  */
23886
23887/* Override any GCC internal prototype to avoid an error.
23888   Use char because int might match the return type of a GCC
23889   builtin and then its argument prototype would still apply.  */
23890char opendir ();
23891int
23892main (void)
23893{
23894return opendir ();
23895  ;
23896  return 0;
23897}
23898_ACEOF
23899for ac_lib in '' x
23900do
23901  if test -z "$ac_lib"; then
23902    ac_res="none required"
23903  else
23904    ac_res=-l$ac_lib
23905    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23906  fi
23907  if ac_fn_c_try_link "$LINENO"
23908then :
23909  ac_cv_search_opendir=$ac_res
23910fi
23911rm -f core conftest.err conftest.$ac_objext conftest.beam \
23912    conftest$ac_exeext
23913  if test ${ac_cv_search_opendir+y}
23914then :
23915  break
23916fi
23917done
23918if test ${ac_cv_search_opendir+y}
23919then :
23920
23921else $as_nop
23922  ac_cv_search_opendir=no
23923fi
23924rm conftest.$ac_ext
23925LIBS=$ac_func_search_save_LIBS
23926fi
23927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23928printf "%s\n" "$ac_cv_search_opendir" >&6; }
23929ac_res=$ac_cv_search_opendir
23930if test "$ac_res" != no
23931then :
23932  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23933
23934fi
23935
23936fi
23937
23938
23939  # =================
23940  # AC_CHECK_HEADERS
23941  # =================
23942  ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
23943if test "x$ac_cv_header_sys_mman_h" = xyes
23944then :
23945  printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
23946
23947fi
23948ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
23949if test "x$ac_cv_header_sys_param_h" = xyes
23950then :
23951  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
23952
23953fi
23954ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
23955if test "x$ac_cv_header_sys_poll_h" = xyes
23956then :
23957  printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
23958
23959fi
23960ac_fn_c_check_header_compile "$LINENO" "sys/procset.h" "ac_cv_header_sys_procset_h" "$ac_includes_default"
23961if test "x$ac_cv_header_sys_procset_h" = xyes
23962then :
23963  printf "%s\n" "#define HAVE_SYS_PROCSET_H 1" >>confdefs.h
23964
23965fi
23966ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
23967if test "x$ac_cv_header_sys_select_h" = xyes
23968then :
23969  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
23970
23971fi
23972ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
23973if test "x$ac_cv_header_sys_socket_h" = xyes
23974then :
23975  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
23976
23977fi
23978ac_fn_c_check_header_compile "$LINENO" "sys/stropts.h" "ac_cv_header_sys_stropts_h" "$ac_includes_default"
23979if test "x$ac_cv_header_sys_stropts_h" = xyes
23980then :
23981  printf "%s\n" "#define HAVE_SYS_STROPTS_H 1" >>confdefs.h
23982
23983fi
23984ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
23985if test "x$ac_cv_header_sys_time_h" = xyes
23986then :
23987  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
23988
23989fi
23990ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
23991if test "x$ac_cv_header_sys_un_h" = xyes
23992then :
23993  printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
23994
23995fi
23996ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
23997if test "x$ac_cv_header_sys_wait_h" = xyes
23998then :
23999  printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
24000
24001fi
24002ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
24003if test "x$ac_cv_header_dlfcn_h" = xyes
24004then :
24005  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
24006
24007fi
24008ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
24009if test "x$ac_cv_header_errno_h" = xyes
24010then :
24011  printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
24012
24013fi
24014ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
24015if test "x$ac_cv_header_fcntl_h" = xyes
24016then :
24017  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
24018
24019fi
24020ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
24021if test "x$ac_cv_header_libgen_h" = xyes
24022then :
24023  printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
24024
24025fi
24026ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
24027if test "x$ac_cv_header_libintl_h" = xyes
24028then :
24029  printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
24030
24031fi
24032ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
24033if test "x$ac_cv_header_memory_h" = xyes
24034then :
24035  printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
24036
24037fi
24038ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
24039if test "x$ac_cv_header_netinet_in_h" = xyes
24040then :
24041  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
24042
24043fi
24044ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
24045if test "x$ac_cv_header_setjmp_h" = xyes
24046then :
24047  printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
24048
24049fi
24050ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
24051if test "x$ac_cv_header_stdbool_h" = xyes
24052then :
24053  printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
24054
24055fi
24056ac_fn_c_check_header_compile "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
24057if test "x$ac_cv_header_sysexits_h" = xyes
24058then :
24059  printf "%s\n" "#define HAVE_SYSEXITS_H 1" >>confdefs.h
24060
24061fi
24062ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
24063if test "x$ac_cv_header_unistd_h" = xyes
24064then :
24065  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
24066
24067fi
24068ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
24069if test "x$ac_cv_header_utime_h" = xyes
24070then :
24071  printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
24072
24073fi
24074
24075
24076         for ac_header in stdarg.h varargs.h
24077do :
24078  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
24079ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24080if eval test \"x\$"$as_ac_Header"\" = x"yes"
24081then :
24082  cat >>confdefs.h <<_ACEOF
24083#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
24084_ACEOF
24085 lo_have_arg_hdr=true;break
24086else $as_nop
24087  lo_have_arg_hdr=false
24088fi
24089
24090done
24091
24092         for ac_header in string.h strings.h
24093do :
24094  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
24095ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24096if eval test \"x\$"$as_ac_Header"\" = x"yes"
24097then :
24098  cat >>confdefs.h <<_ACEOF
24099#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
24100_ACEOF
24101 lo_have_str_hdr=true;break
24102else $as_nop
24103  lo_have_str_hdr=false
24104fi
24105
24106done
24107
24108         for ac_header in limits.h sys/limits.h values.h
24109do :
24110  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
24111ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24112if eval test \"x\$"$as_ac_Header"\" = x"yes"
24113then :
24114  cat >>confdefs.h <<_ACEOF
24115#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
24116_ACEOF
24117 lo_have_lim_hdr=true;break
24118else $as_nop
24119  lo_have_lim_hdr=false
24120fi
24121
24122done
24123
24124         for ac_header in inttypes.h stdint.h
24125do :
24126  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
24127ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24128if eval test \"x\$"$as_ac_Header"\" = x"yes"
24129then :
24130  cat >>confdefs.h <<_ACEOF
24131#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
24132_ACEOF
24133 lo_have_typ_hdr=true;break
24134else $as_nop
24135  lo_have_typ_hdr=false
24136fi
24137
24138done
24139
24140
24141  case "$host_os" in
24142    cygwin*)
24143                        STDNORETURN_H='stdnoreturn.h'
24144      ;;
24145    *)
24146      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
24147printf %s "checking for working stdnoreturn.h... " >&6; }
24148if test ${gl_cv_header_working_stdnoreturn_h+y}
24149then :
24150  printf %s "(cached) " >&6
24151else $as_nop
24152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24153/* end confdefs.h.  */
24154#include <stdlib.h>
24155                #include <stdnoreturn.h>
24156                /* Do not check for 'noreturn' after the return type.
24157                   C11 allows it, but it's rarely done that way
24158                   and circa-2012 bleeding-edge GCC rejects it when given
24159                   -Werror=old-style-declaration.  */
24160                noreturn void foo1 (void) { exit (0); }
24161                _Noreturn void foo2 (void) { exit (0); }
24162                int testit (int argc, char **argv)
24163                {
24164                  if (argc & 1)
24165                    return 0;
24166                  (argv[0][0] ? foo1 : foo2) ();
24167                }
24168
24169int
24170main (void)
24171{
24172
24173  ;
24174  return 0;
24175}
24176_ACEOF
24177if ac_fn_c_try_compile "$LINENO"
24178then :
24179  gl_cv_header_working_stdnoreturn_h=yes
24180else $as_nop
24181  gl_cv_header_working_stdnoreturn_h=no
24182fi
24183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24184fi
24185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
24186printf "%s\n" "$gl_cv_header_working_stdnoreturn_h" >&6; }
24187      if test $gl_cv_header_working_stdnoreturn_h = yes; then
24188        STDNORETURN_H=''
24189      else
24190        STDNORETURN_H='stdnoreturn.h'
24191      fi
24192      ;;
24193  esac
24194
24195   if test -n "$STDNORETURN_H"; then
24196  GL_GENERATE_STDNORETURN_H_TRUE=
24197  GL_GENERATE_STDNORETURN_H_FALSE='#'
24198else
24199  GL_GENERATE_STDNORETURN_H_TRUE='#'
24200  GL_GENERATE_STDNORETURN_H_FALSE=
24201fi
24202
24203
24204
24205  # ----------------------------------------------------------------------
24206  # check for various programs used during the build.
24207  # On OS/X, "wchar.h" needs "runetype.h" to work properly.
24208  # ----------------------------------------------------------------------
24209  ac_fn_c_check_header_compile "$LINENO" "runetype.h" "ac_cv_header_runetype_h" "
24210  $ac_includes_default
24211  #if HAVE_RUNETYPE_H
24212  # include <runetype.h>
24213  #endif
24214
24215"
24216if test "x$ac_cv_header_runetype_h" = xyes
24217then :
24218  printf "%s\n" "#define HAVE_RUNETYPE_H 1" >>confdefs.h
24219
24220fi
24221ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "
24222  $ac_includes_default
24223  #if HAVE_RUNETYPE_H
24224  # include <runetype.h>
24225  #endif
24226
24227"
24228if test "x$ac_cv_header_wchar_h" = xyes
24229then :
24230  printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
24231
24232fi
24233
24234
24235  # Check whether --enable-nls was given.
24236if test ${enable_nls+y}
24237then :
24238  enableval=$enable_nls;
24239fi
24240
24241  if test "x$enable_nls" != "xno" && \
24242  test "X${ac_cv_header_libintl_h}" = Xyes
24243then :
24244
24245
24246printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
24247
24248fi
24249
24250  # --------------------------------------------
24251  # Verify certain entries from AC_CHECK_HEADERS
24252  # --------------------------------------------
24253  ${lo_have_arg_hdr} || \
24254    as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
24255
24256  ${lo_have_str_hdr} || \
24257    as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
24258
24259  ${lo_have_lim_hdr} || \
24260    as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
24261
24262  ${lo_have_typ_hdr} || \
24263    as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
24264
24265  for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
24266  do eval as_ac_var=\${ac_cv_header_${f}_h}
24267     test "X${as_ac_var}" = Xyes || {
24268       as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
24269     }
24270  done
24271  test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
24272    echo '#include <stdint.h>' > inttypes.h
24273
24274  # ----------------------------------------------------------------------
24275  # Checks for typedefs
24276  # ----------------------------------------------------------------------
24277  ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
24278if test "x$ac_cv_type_wchar_t" = xyes
24279then :
24280
24281printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
24282
24283
24284fi
24285
24286  ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
24287    $ac_includes_default
24288    #if HAVE_RUNETYPE_H
24289    # include <runetype.h>
24290    #endif
24291    #if HAVE_WCHAR_H
24292    # include <wchar.h>
24293    #endif
24294
24295"
24296if test "x$ac_cv_type_wint_t" = xyes
24297then :
24298
24299printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
24300
24301
24302fi
24303
24304  ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
24305if test "x$ac_cv_type_int8_t" = xyes
24306then :
24307
24308printf "%s\n" "#define HAVE_INT8_T 1" >>confdefs.h
24309
24310
24311fi
24312ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
24313if test "x$ac_cv_type_uint8_t" = xyes
24314then :
24315
24316printf "%s\n" "#define HAVE_UINT8_T 1" >>confdefs.h
24317
24318
24319fi
24320ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
24321if test "x$ac_cv_type_int16_t" = xyes
24322then :
24323
24324printf "%s\n" "#define HAVE_INT16_T 1" >>confdefs.h
24325
24326
24327fi
24328ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
24329if test "x$ac_cv_type_uint16_t" = xyes
24330then :
24331
24332printf "%s\n" "#define HAVE_UINT16_T 1" >>confdefs.h
24333
24334
24335fi
24336ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
24337if test "x$ac_cv_type_int32_t" = xyes
24338then :
24339
24340printf "%s\n" "#define HAVE_INT32_T 1" >>confdefs.h
24341
24342
24343fi
24344ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
24345if test "x$ac_cv_type_uint32_t" = xyes
24346then :
24347
24348printf "%s\n" "#define HAVE_UINT32_T 1" >>confdefs.h
24349
24350
24351fi
24352ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
24353if test "x$ac_cv_type_intptr_t" = xyes
24354then :
24355
24356printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
24357
24358
24359fi
24360ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
24361if test "x$ac_cv_type_uintptr_t" = xyes
24362then :
24363
24364printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
24365
24366
24367fi
24368ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
24369if test "x$ac_cv_type_uint_t" = xyes
24370then :
24371
24372printf "%s\n" "#define HAVE_UINT_T 1" >>confdefs.h
24373
24374
24375fi
24376ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24377if test "x$ac_cv_type_pid_t" = xyes
24378then :
24379
24380printf "%s\n" "#define HAVE_PID_T 1" >>confdefs.h
24381
24382
24383fi
24384ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
24385if test "x$ac_cv_type_size_t" = xyes
24386then :
24387
24388printf "%s\n" "#define HAVE_SIZE_T 1" >>confdefs.h
24389
24390
24391fi
24392ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
24393if test "x$ac_cv_type_ptrdiff_t" = xyes
24394then :
24395
24396printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h
24397
24398
24399fi
24400
24401  # The cast to long int works around a bug in the HP C Compiler
24402# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24403# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24404# This bug is HP SR number 8606223364.
24405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
24406printf %s "checking size of char *... " >&6; }
24407if test ${ac_cv_sizeof_char_p+y}
24408then :
24409  printf %s "(cached) " >&6
24410else $as_nop
24411  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p"        "$ac_includes_default"
24412then :
24413
24414else $as_nop
24415  if test "$ac_cv_type_char_p" = yes; then
24416     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24417printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24418as_fn_error 77 "cannot compute sizeof (char *)
24419See \`config.log' for more details" "$LINENO" 5; }
24420   else
24421     ac_cv_sizeof_char_p=0
24422   fi
24423fi
24424
24425fi
24426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
24427printf "%s\n" "$ac_cv_sizeof_char_p" >&6; }
24428
24429
24430
24431printf "%s\n" "#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p" >>confdefs.h
24432
24433
24434  # The cast to long int works around a bug in the HP C Compiler
24435# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24436# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24437# This bug is HP SR number 8606223364.
24438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
24439printf %s "checking size of int... " >&6; }
24440if test ${ac_cv_sizeof_int+y}
24441then :
24442  printf %s "(cached) " >&6
24443else $as_nop
24444  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"
24445then :
24446
24447else $as_nop
24448  if test "$ac_cv_type_int" = yes; then
24449     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24450printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24451as_fn_error 77 "cannot compute sizeof (int)
24452See \`config.log' for more details" "$LINENO" 5; }
24453   else
24454     ac_cv_sizeof_int=0
24455   fi
24456fi
24457
24458fi
24459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
24460printf "%s\n" "$ac_cv_sizeof_int" >&6; }
24461
24462
24463
24464printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
24465
24466
24467  # The cast to long int works around a bug in the HP C Compiler
24468# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24469# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24470# This bug is HP SR number 8606223364.
24471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
24472printf %s "checking size of long... " >&6; }
24473if test ${ac_cv_sizeof_long+y}
24474then :
24475  printf %s "(cached) " >&6
24476else $as_nop
24477  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"
24478then :
24479
24480else $as_nop
24481  if test "$ac_cv_type_long" = yes; then
24482     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24483printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24484as_fn_error 77 "cannot compute sizeof (long)
24485See \`config.log' for more details" "$LINENO" 5; }
24486   else
24487     ac_cv_sizeof_long=0
24488   fi
24489fi
24490
24491fi
24492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
24493printf "%s\n" "$ac_cv_sizeof_long" >&6; }
24494
24495
24496
24497printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
24498
24499
24500  # The cast to long int works around a bug in the HP C Compiler
24501# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24502# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24503# This bug is HP SR number 8606223364.
24504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
24505printf %s "checking size of short... " >&6; }
24506if test ${ac_cv_sizeof_short+y}
24507then :
24508  printf %s "(cached) " >&6
24509else $as_nop
24510  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"
24511then :
24512
24513else $as_nop
24514  if test "$ac_cv_type_short" = yes; then
24515     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24516printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24517as_fn_error 77 "cannot compute sizeof (short)
24518See \`config.log' for more details" "$LINENO" 5; }
24519   else
24520     ac_cv_sizeof_short=0
24521   fi
24522fi
24523
24524fi
24525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
24526printf "%s\n" "$ac_cv_sizeof_short" >&6; }
24527
24528
24529
24530printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
24531
24532
24533
24534  # ------------
24535  # AC_CHECK_LIB
24536  # ------------
24537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
24538printf %s "checking for pathfind in -lgen... " >&6; }
24539if test ${ac_cv_lib_gen_pathfind+y}
24540then :
24541  printf %s "(cached) " >&6
24542else $as_nop
24543  ac_check_lib_save_LIBS=$LIBS
24544LIBS="-lgen  $LIBS"
24545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24546/* end confdefs.h.  */
24547
24548/* Override any GCC internal prototype to avoid an error.
24549   Use char because int might match the return type of a GCC
24550   builtin and then its argument prototype would still apply.  */
24551char pathfind ();
24552int
24553main (void)
24554{
24555return pathfind ();
24556  ;
24557  return 0;
24558}
24559_ACEOF
24560if ac_fn_c_try_link "$LINENO"
24561then :
24562  ac_cv_lib_gen_pathfind=yes
24563else $as_nop
24564  ac_cv_lib_gen_pathfind=no
24565fi
24566rm -f core conftest.err conftest.$ac_objext conftest.beam \
24567    conftest$ac_exeext conftest.$ac_ext
24568LIBS=$ac_check_lib_save_LIBS
24569fi
24570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
24571printf "%s\n" "$ac_cv_lib_gen_pathfind" >&6; }
24572if test "x$ac_cv_lib_gen_pathfind" = xyes
24573then :
24574  printf "%s\n" "#define HAVE_LIBGEN 1" >>confdefs.h
24575
24576  LIBS="-lgen $LIBS"
24577
24578fi
24579
24580  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
24581printf %s "checking for gettext in -lintl... " >&6; }
24582if test ${ac_cv_lib_intl_gettext+y}
24583then :
24584  printf %s "(cached) " >&6
24585else $as_nop
24586  ac_check_lib_save_LIBS=$LIBS
24587LIBS="-lintl  $LIBS"
24588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24589/* end confdefs.h.  */
24590
24591/* Override any GCC internal prototype to avoid an error.
24592   Use char because int might match the return type of a GCC
24593   builtin and then its argument prototype would still apply.  */
24594char gettext ();
24595int
24596main (void)
24597{
24598return gettext ();
24599  ;
24600  return 0;
24601}
24602_ACEOF
24603if ac_fn_c_try_link "$LINENO"
24604then :
24605  ac_cv_lib_intl_gettext=yes
24606else $as_nop
24607  ac_cv_lib_intl_gettext=no
24608fi
24609rm -f core conftest.err conftest.$ac_objext conftest.beam \
24610    conftest$ac_exeext conftest.$ac_ext
24611LIBS=$ac_check_lib_save_LIBS
24612fi
24613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
24614printf "%s\n" "$ac_cv_lib_intl_gettext" >&6; }
24615if test "x$ac_cv_lib_intl_gettext" = xyes
24616then :
24617  printf "%s\n" "#define HAVE_LIBINTL 1" >>confdefs.h
24618
24619  LIBS="-lintl $LIBS"
24620
24621fi
24622
24623
24624if test "x$ac_cv_func_vprintf" = xno
24625then :
24626  ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
24627if test "x$ac_cv_func__doprnt" = xyes
24628then :
24629
24630printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
24631
24632fi
24633
24634fi
24635
24636
24637if test "x$ac_cv_func_fork" = xyes; then
24638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24639printf %s "checking for working fork... " >&6; }
24640if test ${ac_cv_func_fork_works+y}
24641then :
24642  printf %s "(cached) " >&6
24643else $as_nop
24644  if test "$cross_compiling" = yes
24645then :
24646  ac_cv_func_fork_works=cross
24647else $as_nop
24648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24649/* end confdefs.h.  */
24650$ac_includes_default
24651int
24652main (void)
24653{
24654
24655	  /* By Ruediger Kuhlmann. */
24656	  return fork () < 0;
24657
24658  ;
24659  return 0;
24660}
24661_ACEOF
24662if ac_fn_c_try_run "$LINENO"
24663then :
24664  ac_cv_func_fork_works=yes
24665else $as_nop
24666  ac_cv_func_fork_works=no
24667fi
24668rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24669  conftest.$ac_objext conftest.beam conftest.$ac_ext
24670fi
24671
24672fi
24673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24674printf "%s\n" "$ac_cv_func_fork_works" >&6; }
24675
24676else
24677  ac_cv_func_fork_works=$ac_cv_func_fork
24678fi
24679if test "x$ac_cv_func_fork_works" = xcross; then
24680  case $host in
24681    *-*-amigaos* | *-*-msdosdjgpp*)
24682      # Override, as these systems have only a dummy fork() stub
24683      ac_cv_func_fork_works=no
24684      ;;
24685    *)
24686      ac_cv_func_fork_works=yes
24687      ;;
24688  esac
24689  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24690printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24691fi
24692ac_cv_func_vfork_works=$ac_cv_func_vfork
24693if test "x$ac_cv_func_vfork" = xyes; then
24694  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24695printf %s "checking for working vfork... " >&6; }
24696if test ${ac_cv_func_vfork_works+y}
24697then :
24698  printf %s "(cached) " >&6
24699else $as_nop
24700  if test "$cross_compiling" = yes
24701then :
24702  ac_cv_func_vfork_works=cross
24703else $as_nop
24704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24705/* end confdefs.h.  */
24706/* Thanks to Paul Eggert for this test.  */
24707$ac_includes_default
24708#include <signal.h>
24709#include <sys/wait.h>
24710#ifdef HAVE_VFORK_H
24711# include <vfork.h>
24712#endif
24713
24714static void
24715do_nothing (int sig)
24716{
24717  (void) sig;
24718}
24719
24720/* On some sparc systems, changes by the child to local and incoming
24721   argument registers are propagated back to the parent.  The compiler
24722   is told about this with #include <vfork.h>, but some compilers
24723   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
24724   static variable whose address is put into a register that is
24725   clobbered by the vfork.  */
24726static void
24727sparc_address_test (int arg)
24728{
24729  static pid_t child;
24730  if (!child) {
24731    child = vfork ();
24732    if (child < 0) {
24733      perror ("vfork");
24734      _exit(2);
24735    }
24736    if (!child) {
24737      arg = getpid();
24738      write(-1, "", 0);
24739      _exit (arg);
24740    }
24741  }
24742}
24743
24744int
24745main (void)
24746{
24747  pid_t parent = getpid ();
24748  pid_t child;
24749
24750  sparc_address_test (0);
24751
24752  /* On Solaris 2.4, changes by the child to the signal handler
24753     also munge signal handlers in the parent.  To detect this,
24754     start by putting the parent's handler in a known state.  */
24755  signal (SIGTERM, SIG_DFL);
24756
24757  child = vfork ();
24758
24759  if (child == 0) {
24760    /* Here is another test for sparc vfork register problems.  This
24761       test uses lots of local variables, at least as many local
24762       variables as main has allocated so far including compiler
24763       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
24764       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
24765       reuse the register of parent for one of the local variables,
24766       since it will think that parent can't possibly be used any more
24767       in this routine.  Assigning to the local variable will thus
24768       munge parent in the parent process.  */
24769    pid_t
24770      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24771      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24772    /* Convince the compiler that p..p7 are live; otherwise, it might
24773       use the same hardware register for all 8 local variables.  */
24774    if (p != p1 || p != p2 || p != p3 || p != p4
24775	|| p != p5 || p != p6 || p != p7)
24776      _exit(1);
24777
24778    /* Alter the child's signal handler.  */
24779    if (signal (SIGTERM, do_nothing) != SIG_DFL)
24780      _exit(1);
24781
24782    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24783       from child file descriptors.  If the child closes a descriptor
24784       before it execs or exits, this munges the parent's descriptor
24785       as well.  Test for this by closing stdout in the child.  */
24786    _exit(close(fileno(stdout)) != 0);
24787  } else {
24788    int status;
24789    struct stat st;
24790
24791    while (wait(&status) != child)
24792      ;
24793    return (
24794	 /* Was there some problem with vforking?  */
24795	 child < 0
24796
24797	 /* Did the child munge the parent's signal handler?  */
24798	 || signal (SIGTERM, SIG_DFL) != SIG_DFL
24799
24800	 /* Did the child fail?  (This shouldn't happen.)  */
24801	 || status
24802
24803	 /* Did the vfork/compiler bug occur?  */
24804	 || parent != getpid()
24805
24806	 /* Did the file descriptor bug occur?  */
24807	 || fstat(fileno(stdout), &st) != 0
24808	 );
24809  }
24810}
24811_ACEOF
24812if ac_fn_c_try_run "$LINENO"
24813then :
24814  ac_cv_func_vfork_works=yes
24815else $as_nop
24816  ac_cv_func_vfork_works=no
24817fi
24818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24819  conftest.$ac_objext conftest.beam conftest.$ac_ext
24820fi
24821
24822fi
24823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24824printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
24825
24826fi;
24827if test "x$ac_cv_func_fork_works" = xcross; then
24828  ac_cv_func_vfork_works=$ac_cv_func_vfork
24829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24830printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24831fi
24832
24833if test "x$ac_cv_func_vfork_works" = xyes; then
24834
24835printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24836
24837else
24838
24839printf "%s\n" "#define vfork fork" >>confdefs.h
24840
24841fi
24842if test "x$ac_cv_func_fork_works" = xyes; then
24843
24844printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
24845
24846fi
24847
24848  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
24849if test "x$ac_cv_func_mmap" = xyes
24850then :
24851  printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
24852
24853fi
24854ac_fn_c_check_func "$LINENO" "canonicalize_file_name" "ac_cv_func_canonicalize_file_name"
24855if test "x$ac_cv_func_canonicalize_file_name" = xyes
24856then :
24857  printf "%s\n" "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
24858
24859fi
24860ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
24861if test "x$ac_cv_func_snprintf" = xyes
24862then :
24863  printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
24864
24865fi
24866ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
24867if test "x$ac_cv_func_strdup" = xyes
24868then :
24869  printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
24870
24871fi
24872ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
24873if test "x$ac_cv_func_strchr" = xyes
24874then :
24875  printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
24876
24877fi
24878ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
24879if test "x$ac_cv_func_strrchr" = xyes
24880then :
24881  printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
24882
24883fi
24884ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
24885if test "x$ac_cv_func_strsignal" = xyes
24886then :
24887  printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
24888
24889fi
24890ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
24891if test "x$ac_cv_func_fchmod" = xyes
24892then :
24893  printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
24894
24895fi
24896ac_fn_c_check_func "$LINENO" "fstat" "ac_cv_func_fstat"
24897if test "x$ac_cv_func_fstat" = xyes
24898then :
24899  printf "%s\n" "#define HAVE_FSTAT 1" >>confdefs.h
24900
24901fi
24902ac_fn_c_check_func "$LINENO" "chmod" "ac_cv_func_chmod"
24903if test "x$ac_cv_func_chmod" = xyes
24904then :
24905  printf "%s\n" "#define HAVE_CHMOD 1" >>confdefs.h
24906
24907fi
24908
24909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
24910printf %s "checking for a sed that does not truncate output... " >&6; }
24911if test ${ac_cv_path_SED+y}
24912then :
24913  printf %s "(cached) " >&6
24914else $as_nop
24915            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
24916     for ac_i in 1 2 3 4 5 6 7; do
24917       ac_script="$ac_script$as_nl$ac_script"
24918     done
24919     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
24920     { ac_script=; unset ac_script;}
24921     if test -z "$SED"; then
24922  ac_path_SED_found=false
24923  # Loop through the user's path and test for each of PROGNAME-LIST
24924  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24925for as_dir in $PATH
24926do
24927  IFS=$as_save_IFS
24928  case $as_dir in #(((
24929    '') as_dir=./ ;;
24930    */) ;;
24931    *) as_dir=$as_dir/ ;;
24932  esac
24933    for ac_prog in sed gsed
24934   do
24935    for ac_exec_ext in '' $ac_executable_extensions; do
24936      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
24937      as_fn_executable_p "$ac_path_SED" || continue
24938# Check for GNU ac_path_SED and select it if it is found.
24939  # Check for GNU $ac_path_SED
24940case `"$ac_path_SED" --version 2>&1` in
24941*GNU*)
24942  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
24943*)
24944  ac_count=0
24945  printf %s 0123456789 >"conftest.in"
24946  while :
24947  do
24948    cat "conftest.in" "conftest.in" >"conftest.tmp"
24949    mv "conftest.tmp" "conftest.in"
24950    cp "conftest.in" "conftest.nl"
24951    printf "%s\n" '' >> "conftest.nl"
24952    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
24953    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
24954    as_fn_arith $ac_count + 1 && ac_count=$as_val
24955    if test $ac_count -gt ${ac_path_SED_max-0}; then
24956      # Best one so far, save it but keep looking for a better one
24957      ac_cv_path_SED="$ac_path_SED"
24958      ac_path_SED_max=$ac_count
24959    fi
24960    # 10*(2^10) chars as input seems more than enough
24961    test $ac_count -gt 10 && break
24962  done
24963  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
24964esac
24965
24966      $ac_path_SED_found && break 3
24967    done
24968  done
24969  done
24970IFS=$as_save_IFS
24971  if test -z "$ac_cv_path_SED"; then
24972    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
24973  fi
24974else
24975  ac_cv_path_SED=$SED
24976fi
24977
24978fi
24979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
24980printf "%s\n" "$ac_cv_path_SED" >&6; }
24981 SED="$ac_cv_path_SED"
24982  rm -f conftest.sed
24983
24984  while :
24985  do
24986      test -x "$POSIX_SHELL" && break
24987      POSIX_SHELL=`which bash`
24988      test -x "$POSIX_SHELL" && break
24989      POSIX_SHELL=`which dash`
24990      test -x "$POSIX_SHELL" && break
24991      POSIX_SHELL=/usr/xpg4/bin/sh
24992      test -x "$POSIX_SHELL" && break
24993      POSIX_SHELL=`/bin/sh -c '
24994          exec 2>/dev/null
24995          if ! true ; then exit 1 ; fi
24996          echo /bin/sh'`
24997      test -x "$POSIX_SHELL" && break
24998      as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
24999  done
25000
25001printf "%s\n" "#define POSIX_SHELL \"${POSIX_SHELL}\"" >>confdefs.h
25002
25003
25004
25005
25006
25007  LIBOPTS_BUILD_BLOCKED=''
25008
25009
25010  NEED_LIBOPTS_DIR=''
25011
25012  # Check whether --enable-local-libopts was given.
25013if test ${enable_local_libopts+y}
25014then :
25015  enableval=$enable_local_libopts;
25016    if test x$enableval = xyes ; then
25017       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
25018printf "%s\n" "$as_me: Using supplied libopts tearoff" >&6;}
25019       LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
25020       NEED_LIBOPTS_DIR=true
25021       LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
25022    fi
25023fi
25024
25025
25026  # Check whether --enable-libopts-install was given.
25027if test ${enable_libopts_install+y}
25028then :
25029  enableval=$enable_libopts_install;
25030fi
25031
25032   if test "X${enable_libopts_install}" = Xyes; then
25033  INSTALL_LIBOPTS_TRUE=
25034  INSTALL_LIBOPTS_FALSE='#'
25035else
25036  INSTALL_LIBOPTS_TRUE='#'
25037  INSTALL_LIBOPTS_FALSE=
25038fi
25039
25040
25041  if test -z "${NEED_LIBOPTS_DIR}" ; then
25042     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
25043printf %s "checking whether autoopts-config can be found... " >&6; }
25044
25045# Check whether --with-autoopts-config was given.
25046if test ${with_autoopts_config+y}
25047then :
25048  withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
25049else $as_nop
25050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
25051printf %s "checking whether autoopts-config is specified... " >&6; }
25052if test ${lo_cv_with_autoopts_config+y}
25053then :
25054  printf %s "(cached) " >&6
25055else $as_nop
25056  if autoopts-config --help 2>/dev/null 1>&2
25057        then lo_cv_with_autoopts_config=autoopts-config
25058        elif libopts-config --help 2>/dev/null 1>&2
25059        then lo_cv_with_autoopts_config=libopts-config
25060        else lo_cv_with_autoopts_config=no ; fi
25061fi
25062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
25063printf "%s\n" "$lo_cv_with_autoopts_config" >&6; }
25064
25065fi
25066 # end of AC_ARG_WITH
25067
25068     if test ${lo_cv_test_autoopts+y}
25069then :
25070  printf %s "(cached) " >&6
25071else $as_nop
25072
25073        if test -z "${lo_cv_with_autoopts_config}" \
25074                -o X"${lo_cv_with_autoopts_config}" = Xno
25075        then
25076           if autoopts-config --help 2>/dev/null 1>&2
25077           then lo_cv_with_autoopts_config=autoopts-config
25078           elif libopts-config --help 2>/dev/null 1>&2
25079           then lo_cv_with_autoopts_config=libopts-config
25080           else lo_cv_with_autoopts_config=false ; fi
25081        fi
25082        lo_cv_test_autoopts=`
25083            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
25084        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
25085        then lo_cv_test_autoopts=no ; fi
25086
25087fi
25088 # end of CACHE_VAL
25089     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
25090printf "%s\n" "${lo_cv_test_autoopts}" >&6; }
25091
25092     if test "X${lo_cv_test_autoopts}" != Xno
25093     then
25094        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
25095        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
25096     else
25097        LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
25098        LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
25099        NEED_LIBOPTS_DIR=true
25100     fi
25101  fi # end of if test -z "${NEED_LIBOPTS_DIR}"
25102  if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
25103    NEED_LIBOPTS_DIR=''
25104  fi
25105   if test -n "${NEED_LIBOPTS_DIR}"; then
25106  NEED_LIBOPTS_TRUE=
25107  NEED_LIBOPTS_FALSE='#'
25108else
25109  NEED_LIBOPTS_TRUE='#'
25110  NEED_LIBOPTS_FALSE=
25111fi
25112
25113
25114
25115  LIBOPTS_DIR=libopts
25116
25117
25118# end of AC_DEFUN of LIBOPTS_CHECK_COMMON
25119
25120
25121    if test -z "$NEED_LIBOPTS_TRUE"; then :
25122
25123
25124
25125  # Check to see if a reg expr header is specified.
25126
25127
25128# Check whether --with-regex-header was given.
25129if test ${with_regex_header+y}
25130then :
25131  withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
25132else $as_nop
25133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
25134printf %s "checking whether a reg expr header is specified... " >&6; }
25135if test ${libopts_cv_with_regex_header+y}
25136then :
25137  printf %s "(cached) " >&6
25138else $as_nop
25139  libopts_cv_with_regex_header=no
25140fi
25141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
25142printf "%s\n" "$libopts_cv_with_regex_header" >&6; }
25143
25144fi
25145 # end of AC_ARG_WITH
25146  if test "X${libopts_cv_with_regex_header}" != Xno
25147  then
25148    printf "%s\n" "#define REGEX_HEADER <${libopts_cv_with_regex_header}>" >>confdefs.h
25149
25150  else
25151
25152printf "%s\n" "#define REGEX_HEADER <regex.h>" >>confdefs.h
25153
25154  fi
25155
25156
25157
25158  # Check to see if a working libregex can be found.
25159
25160
25161# Check whether --with-libregex was given.
25162if test ${with_libregex+y}
25163then :
25164  withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
25165else $as_nop
25166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
25167printf %s "checking whether with-libregex was specified... " >&6; }
25168if test ${libopts_cv_with_libregex_root+y}
25169then :
25170  printf %s "(cached) " >&6
25171else $as_nop
25172  libopts_cv_with_libregex_root=no
25173fi
25174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
25175printf "%s\n" "$libopts_cv_with_libregex_root" >&6; }
25176
25177fi
25178 # end of AC_ARG_WITH libregex
25179
25180  if test "${with_libregex+set}" = set && \
25181     test "X${withval}" = Xno
25182  then ## disabled by request
25183    libopts_cv_with_libregex_root=no
25184    libopts_cv_with_libregex_cflags=no
25185    libopts_cv_with_libregex_libs=no
25186  else
25187
25188
25189# Check whether --with-libregex-cflags was given.
25190if test ${with_libregex_cflags+y}
25191then :
25192  withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
25193else $as_nop
25194  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
25195printf %s "checking whether with-libregex-cflags was specified... " >&6; }
25196if test ${libopts_cv_with_libregex_cflags+y}
25197then :
25198  printf %s "(cached) " >&6
25199else $as_nop
25200  libopts_cv_with_libregex_cflags=no
25201fi
25202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
25203printf "%s\n" "$libopts_cv_with_libregex_cflags" >&6; }
25204
25205fi
25206 # end of AC_ARG_WITH libregex-cflags
25207
25208
25209# Check whether --with-libregex-libs was given.
25210if test ${with_libregex_libs+y}
25211then :
25212  withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
25213else $as_nop
25214  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
25215printf %s "checking whether with-libregex-libs was specified... " >&6; }
25216if test ${libopts_cv_with_libregex_libs+y}
25217then :
25218  printf %s "(cached) " >&6
25219else $as_nop
25220  libopts_cv_with_libregex_libs=no
25221fi
25222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
25223printf "%s\n" "$libopts_cv_with_libregex_libs" >&6; }
25224
25225fi
25226 # end of AC_ARG_WITH libregex-libs
25227
25228  case "X${libopts_cv_with_libregex_cflags}" in
25229  Xyes|Xno|X )
25230    case "X${libopts_cv_with_libregex_root}" in
25231    Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
25232    * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
25233    esac
25234  esac
25235  case "X${libopts_cv_with_libregex_libs}" in
25236  Xyes|Xno|X )
25237    case "X${libopts_cv_with_libregex_root}" in
25238    Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
25239    * )        libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;;
25240    esac
25241  esac
25242  libopts_save_CPPFLAGS="${CPPFLAGS}"
25243  libopts_save_LIBS="${LIBS}"
25244  case "X${libopts_cv_with_libregex_cflags}" in
25245  Xyes|Xno|X )
25246    libopts_cv_with_libregex_cflags="" ;;
25247  * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
25248  esac
25249  case "X${libopts_cv_with_libregex_libs}" in
25250  Xyes|Xno|X )
25251    libopts_cv_with_libregex_libs="" ;;
25252  * )
25253    LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
25254  esac
25255  LIBREGEX_CFLAGS=""
25256  LIBREGEX_LIBS=""
25257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
25258printf %s "checking whether libregex functions properly... " >&6; }
25259  if test ${libopts_cv_with_libregex+y}
25260then :
25261  printf %s "(cached) " >&6
25262else $as_nop
25263
25264  if test "$cross_compiling" = yes
25265then :
25266  libopts_cv_with_libregex=no
25267else $as_nop
25268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25269/* end confdefs.h.  */
25270#include <stdio.h>
25271#include <stdlib.h>
25272#include <sys/types.h>
25273#include REGEX_HEADER
25274static regex_t re;
25275void comp_re(char const * pzPat) {
25276  int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
25277  if (res == 0) return;
25278  exit( res ); }
25279int main() {
25280  regmatch_t m[2];
25281  comp_re( "^.*\$"   );
25282  comp_re( "()|no.*" );
25283  comp_re( "."       );
25284  if (regexec( &re, "X", 2, m, 0 ) != 0)  return 1;
25285  if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
25286    fputs( "error: regex -->.<-- did not match\n", stderr );
25287    return 1;
25288  }
25289  return 0; }
25290_ACEOF
25291if ac_fn_c_try_run "$LINENO"
25292then :
25293  libopts_cv_with_libregex=yes
25294else $as_nop
25295  libopts_cv_with_libregex=no
25296fi
25297rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25298  conftest.$ac_objext conftest.beam conftest.$ac_ext
25299fi
25300 # end of AC_RUN_IFELSE
25301
25302fi
25303 # end of AC_CACHE_VAL for libopts_cv_with_libregex
25304  fi ## disabled by request
25305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
25306printf "%s\n" "${libopts_cv_with_libregex}" >&6; }
25307  if test "X${libopts_cv_with_libregex}" != Xno
25308  then
25309
25310printf "%s\n" "#define WITH_LIBREGEX 1" >>confdefs.h
25311
25312  else
25313    CPPFLAGS="${libopts_save_CPPFLAGS}"
25314    LIBS="${libopts_save_LIBS}"
25315    libopts_cv_with_libregex_root=no
25316libopts_cv_with_libregex_cflags=no
25317libopts_cv_with_libregex_libs=no
25318libopts_cv_with_libregex=no
25319  fi
25320
25321
25322
25323  # Check to see if pathfind(3) works.
25324
25325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
25326printf %s "checking whether pathfind(3) works... " >&6; }
25327  if test ${libopts_cv_run_pathfind+y}
25328then :
25329  printf %s "(cached) " >&6
25330else $as_nop
25331
25332  if test "$cross_compiling" = yes
25333then :
25334  libopts_cv_run_pathfind=no
25335
25336else $as_nop
25337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25338/* end confdefs.h.  */
25339#include <string.h>
25340#include <stdlib.h>
25341int main (int argc, char ** argv) {
25342   char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
25343   return (pz == 0) ? 1 : 0;
25344}
25345_ACEOF
25346if ac_fn_c_try_run "$LINENO"
25347then :
25348  libopts_cv_run_pathfind=yes
25349else $as_nop
25350  libopts_cv_run_pathfind=no
25351fi
25352rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25353  conftest.$ac_objext conftest.beam conftest.$ac_ext
25354fi
25355 # end of RUN_IFELSE
25356
25357fi
25358 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
25359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
25360printf "%s\n" "${libopts_cv_run_pathfind}" >&6; }
25361  if test "X${libopts_cv_run_pathfind}" != Xno
25362  then
25363
25364printf "%s\n" "#define HAVE_PATHFIND 1" >>confdefs.h
25365
25366  fi
25367
25368
25369
25370  # Check to see if /dev/zero is readable device.
25371
25372  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
25373printf %s "checking whether /dev/zero is readable device... " >&6; }
25374  if test ${libopts_cv_test_dev_zero+y}
25375then :
25376  printf %s "(cached) " >&6
25377else $as_nop
25378
25379    libopts_cv_test_dev_zero=`exec 2> /dev/null
25380dzero=\`ls -lL /dev/zero | egrep ^c......r\`
25381test -z "${dzero}" && exit 1
25382echo ${dzero}`
25383    if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
25384    then libopts_cv_test_dev_zero=no
25385    fi
25386
25387fi
25388 # end of CACHE_VAL of libopts_cv_test_dev_zero
25389  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
25390printf "%s\n" "${libopts_cv_test_dev_zero}" >&6; }
25391  if test "X${libopts_cv_test_dev_zero}" != Xno
25392  then
25393
25394printf "%s\n" "#define HAVE_DEV_ZERO 1" >>confdefs.h
25395
25396  fi
25397
25398
25399
25400  # Check to see if we have a functional realpath(3C).
25401
25402  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
25403printf %s "checking whether we have a functional realpath(3C)... " >&6; }
25404  if test ${libopts_cv_run_realpath+y}
25405then :
25406  printf %s "(cached) " >&6
25407else $as_nop
25408
25409  if test "$cross_compiling" = yes
25410then :
25411  libopts_cv_run_realpath=no
25412
25413else $as_nop
25414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25415/* end confdefs.h.  */
25416#include <limits.h>
25417#include <stdlib.h>
25418int main (int argc, char ** argv) {
25419#ifndef PATH_MAX
25420choke me!!
25421#else
25422   char zPath[PATH_MAX+1];
25423#endif
25424   char *pz = realpath(argv[0], zPath);
25425   return (pz == zPath) ? 0 : 1;
25426}
25427_ACEOF
25428if ac_fn_c_try_run "$LINENO"
25429then :
25430  libopts_cv_run_realpath=yes
25431else $as_nop
25432  libopts_cv_run_realpath=no
25433fi
25434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25435  conftest.$ac_objext conftest.beam conftest.$ac_ext
25436fi
25437 # end of RUN_IFELSE
25438
25439fi
25440 # end of AC_CACHE_VAL for libopts_cv_run_realpath
25441  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
25442printf "%s\n" "${libopts_cv_run_realpath}" >&6; }
25443  if test "X${libopts_cv_run_realpath}" != Xno
25444  then
25445
25446printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
25447
25448  fi
25449
25450
25451
25452  # Check to see if strftime() works.
25453
25454  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
25455printf %s "checking whether strftime() works... " >&6; }
25456  if test ${libopts_cv_run_strftime+y}
25457then :
25458  printf %s "(cached) " >&6
25459else $as_nop
25460
25461  if test "$cross_compiling" = yes
25462then :
25463  libopts_cv_run_strftime=no
25464
25465else $as_nop
25466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25467/* end confdefs.h.  */
25468#include <time.h>
25469#include <string.h>
25470char t_buf[ 64 ];
25471int main() {
25472  static char const z[] = "Thursday Aug 28 240";
25473  struct tm tm;
25474  tm.tm_sec   = 36;  /* seconds after the minute [0, 61]  */
25475  tm.tm_min   = 44;  /* minutes after the hour [0, 59] */
25476  tm.tm_hour  = 12;  /* hour since midnight [0, 23] */
25477  tm.tm_mday  = 28;  /* day of the month [1, 31] */
25478  tm.tm_mon   =  7;  /* months since January [0, 11] */
25479  tm.tm_year  = 86;  /* years since 1900 */
25480  tm.tm_wday  =  4;  /* days since Sunday [0, 6] */
25481  tm.tm_yday  = 239; /* days since January 1 [0, 365] */
25482  tm.tm_isdst =  1;  /* flag for daylight savings time */
25483  strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
25484  return (strcmp( t_buf, z ) != 0); }
25485_ACEOF
25486if ac_fn_c_try_run "$LINENO"
25487then :
25488  libopts_cv_run_strftime=yes
25489else $as_nop
25490  libopts_cv_run_strftime=no
25491fi
25492rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25493  conftest.$ac_objext conftest.beam conftest.$ac_ext
25494fi
25495 # end of RUN_IFELSE
25496
25497fi
25498 # end of AC_CACHE_VAL for libopts_cv_run_strftime
25499  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
25500printf "%s\n" "${libopts_cv_run_strftime}" >&6; }
25501  if test "X${libopts_cv_run_strftime}" != Xno
25502  then
25503
25504printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
25505
25506  fi
25507
25508
25509
25510  # Check to see if fopen accepts "b" mode.
25511
25512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
25513printf %s "checking whether fopen accepts \"b\" mode... " >&6; }
25514  if test ${libopts_cv_run_fopen_binary+y}
25515then :
25516  printf %s "(cached) " >&6
25517else $as_nop
25518
25519  if test "$cross_compiling" = yes
25520then :
25521  libopts_cv_run_fopen_binary=no
25522
25523else $as_nop
25524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25525/* end confdefs.h.  */
25526#include <stdio.h>
25527int main (int argc, char ** argv) {
25528FILE * fp = fopen("conftest.$ac_ext", "rb");
25529return (fp == NULL) ? 1 : fclose(fp); }
25530_ACEOF
25531if ac_fn_c_try_run "$LINENO"
25532then :
25533  libopts_cv_run_fopen_binary=yes
25534else $as_nop
25535  libopts_cv_run_fopen_binary=no
25536fi
25537rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25538  conftest.$ac_objext conftest.beam conftest.$ac_ext
25539fi
25540 # end of RUN_IFELSE
25541
25542fi
25543 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
25544  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
25545printf "%s\n" "${libopts_cv_run_fopen_binary}" >&6; }
25546  if test "X${libopts_cv_run_fopen_binary}" != Xno
25547  then
25548
25549printf "%s\n" "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
25550
25551  else
25552
25553printf "%s\n" "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
25554
25555  fi
25556
25557
25558
25559  # Check to see if fopen accepts "t" mode.
25560
25561  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
25562printf %s "checking whether fopen accepts \"t\" mode... " >&6; }
25563  if test ${libopts_cv_run_fopen_text+y}
25564then :
25565  printf %s "(cached) " >&6
25566else $as_nop
25567
25568  if test "$cross_compiling" = yes
25569then :
25570  libopts_cv_run_fopen_text=no
25571
25572else $as_nop
25573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25574/* end confdefs.h.  */
25575#include <stdio.h>
25576int main (int argc, char ** argv) {
25577FILE * fp = fopen("conftest.$ac_ext", "rt");
25578return (fp == NULL) ? 1 : fclose(fp); }
25579_ACEOF
25580if ac_fn_c_try_run "$LINENO"
25581then :
25582  libopts_cv_run_fopen_text=yes
25583else $as_nop
25584  libopts_cv_run_fopen_text=no
25585fi
25586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25587  conftest.$ac_objext conftest.beam conftest.$ac_ext
25588fi
25589 # end of RUN_IFELSE
25590
25591fi
25592 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
25593  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
25594printf "%s\n" "${libopts_cv_run_fopen_text}" >&6; }
25595  if test "X${libopts_cv_run_fopen_text}" != Xno
25596  then
25597
25598printf "%s\n" "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
25599
25600  else
25601
25602printf "%s\n" "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
25603
25604  fi
25605
25606
25607
25608  # Check to see if not wanting optional option args.
25609
25610  # Check whether --enable-optional-args was given.
25611if test ${enable_optional_args+y}
25612then :
25613  enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
25614else $as_nop
25615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
25616printf %s "checking whether not wanting optional option args... " >&6; }
25617if test ${libopts_cv_enable_optional_args+y}
25618then :
25619  printf %s "(cached) " >&6
25620else $as_nop
25621  libopts_cv_enable_optional_args=yes
25622fi
25623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
25624printf "%s\n" "$libopts_cv_enable_optional_args" >&6; }
25625
25626fi
25627 # end of AC_ARG_ENABLE
25628  if test "X${libopts_cv_enable_optional_args}" = Xno
25629  then
25630
25631printf "%s\n" "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
25632
25633  fi
25634
25635
25636
25637
25638
25639          fi
25640  ac_config_files="$ac_config_files libopts/Makefile"
25641
25642  # end of AC_DEFUN of LIBOPTS_CHECK
25643
25644
25645# From when we only used libevent for sntp:
25646#AM_COND_IF(
25647#    [BUILD_SNTP],
25648#    [NTP_LIBEVENT_CHECK],
25649#    [NTP_LIBEVENT_CHECK_NOBUILD]
25650#)
25651
25652
25653
25654ntp_pkgconfig_min_version='0.15.0'
25655if test -n "$ac_tool_prefix"; then
25656  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25657set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25659printf %s "checking for $ac_word... " >&6; }
25660if test ${ac_cv_path_PKG_CONFIG+y}
25661then :
25662  printf %s "(cached) " >&6
25663else $as_nop
25664  case $PKG_CONFIG in
25665  [\\/]* | ?:[\\/]*)
25666  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25667  ;;
25668  *)
25669  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25670for as_dir in $PATH
25671do
25672  IFS=$as_save_IFS
25673  case $as_dir in #(((
25674    '') as_dir=./ ;;
25675    */) ;;
25676    *) as_dir=$as_dir/ ;;
25677  esac
25678    for ac_exec_ext in '' $ac_executable_extensions; do
25679  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25680    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
25681    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25682    break 2
25683  fi
25684done
25685  done
25686IFS=$as_save_IFS
25687
25688  ;;
25689esac
25690fi
25691PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25692if test -n "$PKG_CONFIG"; then
25693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
25694printf "%s\n" "$PKG_CONFIG" >&6; }
25695else
25696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25697printf "%s\n" "no" >&6; }
25698fi
25699
25700
25701fi
25702if test -z "$ac_cv_path_PKG_CONFIG"; then
25703  ac_pt_PKG_CONFIG=$PKG_CONFIG
25704  # Extract the first word of "pkg-config", so it can be a program name with args.
25705set dummy pkg-config; ac_word=$2
25706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25707printf %s "checking for $ac_word... " >&6; }
25708if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
25709then :
25710  printf %s "(cached) " >&6
25711else $as_nop
25712  case $ac_pt_PKG_CONFIG in
25713  [\\/]* | ?:[\\/]*)
25714  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
25715  ;;
25716  *)
25717  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25718for as_dir in $PATH
25719do
25720  IFS=$as_save_IFS
25721  case $as_dir in #(((
25722    '') as_dir=./ ;;
25723    */) ;;
25724    *) as_dir=$as_dir/ ;;
25725  esac
25726    for ac_exec_ext in '' $ac_executable_extensions; do
25727  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25728    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
25729    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25730    break 2
25731  fi
25732done
25733  done
25734IFS=$as_save_IFS
25735
25736  ;;
25737esac
25738fi
25739ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
25740if test -n "$ac_pt_PKG_CONFIG"; then
25741  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
25742printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
25743else
25744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25745printf "%s\n" "no" >&6; }
25746fi
25747
25748  if test "x$ac_pt_PKG_CONFIG" = x; then
25749    PKG_CONFIG=""
25750  else
25751    case $cross_compiling:$ac_tool_warned in
25752yes:)
25753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25754printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25755ac_tool_warned=yes ;;
25756esac
25757    PKG_CONFIG=$ac_pt_PKG_CONFIG
25758  fi
25759else
25760  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
25761fi
25762
25763{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
25764{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
25765
25766case "$PKG_CONFIG" in
25767 /*)
25768    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
25769printf %s "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
25770    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
25771	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25772printf "%s\n" "yes" >&6; }
25773    else
25774	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25775printf "%s\n" "no" >&6; }
25776	PKG_CONFIG=""
25777    fi
25778    ;;
25779esac
25780
25781
25782
25783
25784# Check whether --enable-local-libevent was given.
25785if test ${enable_local_libevent+y}
25786then :
25787  enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
25788else $as_nop
25789  ntp_use_local_libevent=${ntp_use_local_libevent-detect}
25790
25791fi
25792
25793
25794
25795
25796
25797
25798
25799
25800
25801
25802ntp_libevent_min_version=2
25803ntp_libevent_tearoff=libevent
25804
25805
25806
25807
25808
25809case "$ntp_use_local_libevent" in
25810 yes)
25811    ;;
25812 *) # If we have (a good enough) pkg-config, see if it can find libevent
25813    case "$PKG_CONFIG" in
25814     /*)
25815	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
25816printf %s "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
25817	if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
25818	then
25819	    ntp_use_local_libevent=no
25820	    ntp_libevent_version="`$PKG_CONFIG --modversion libevent`"
25821	    case "$ntp_libevent_version" in
25822	     *.*) ;;
25823	     *) ntp_libevent_version='(unknown)' ;;
25824	    esac
25825	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_libevent_version" >&5
25826printf "%s\n" "yes, version $ntp_libevent_version" >&6; }
25827	    CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
25828	    CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
25829	    # HMS: I hope the following is accurate.
25830	    # We don't need -levent, we only need  -levent_core.
25831	    # While we could grab only the -L stuff, there *might* be
25832	    # other flags there we want.  Originally we just removed -levent
25833	    # but then somebody decided to install -levent-2.0
25834	    # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
25835	    # So now we dance...
25836	    LDADD_LIBEVENT=
25837	    for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
25838	    do
25839		case "$i" in
25840		 -D*) ;;
25841		 -levent*) ;;
25842		 *) case "$LDADD_LIBEVENT" in
25843		     '') LDADD_LIBEVENT="$i" ;;
25844		     *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
25845		    esac
25846		    ;;
25847		esac
25848	    done
25849	    case "$LIBISC_PTHREADS_NOTHREADS" in
25850	     pthreads)
25851		LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
25852	    esac
25853	    LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
25854	else
25855	    ntp_use_local_libevent=yes
25856	    # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
25857	    # is "pthreads"?
25858	    CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
25859	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25860printf "%s\n" "no" >&6; }
25861	fi
25862	;;
25863     *)
25864	ntp_use_local_libevent=yes
25865	;;
25866    esac
25867    ;;
25868esac
25869
25870case "$ntp_use_local_libevent" in
25871 yes)
25872    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
25873printf "%s\n" "$as_me: Using libevent tearoff" >&6;}
25874    CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
25875    case "$LIBISC_PTHREADS_NOTHREADS" in
25876     pthreads)
25877	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
25878	;;
25879     *)
25880	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
25881    esac
25882esac
25883
25884
25885 if test "x$ntp_use_local_libevent" = "xyes"; then
25886  BUILD_LIBEVENT_TRUE=
25887  BUILD_LIBEVENT_FALSE='#'
25888else
25889  BUILD_LIBEVENT_TRUE='#'
25890  BUILD_LIBEVENT_FALSE=
25891fi
25892
25893
25894
25895
25896case "$ntp_libevent_tearoff" in
25897 libevent)
25898    ;;
25899 *)
25900    as_fn_error $? "ntp_libevent.m4 dir must be libevent, not $ntp_libevent_tearoff" "$LINENO" 5
25901    ;;
25902esac
25903
25904case "$ntp_use_local_libevent" in
25905 yes)
25906                        ac_configure_args=" --disable-openssl${ac_configure_args}"
25907    ac_configure_args=" --disable-shared${ac_configure_args}"
25908    ac_configure_args=" --disable-libevent-regress${ac_configure_args}"
25909    ac_configure_args=" --disable-libevent-install${ac_configure_args}"
25910    ac_configure_args=" --enable-silent-rules${ac_configure_args}"
25911    ac_configure_args=" --enable-function-sections${ac_configure_args}"
25912    ac_configure_args=" LEP_CFLAGS='${NTP_HARD_CFLAGS}'${ac_configure_args}"
25913    ac_configure_args=" LEP_CPPFLAGS='${NTP_HARD_CPPFLAGS}'${ac_configure_args}"
25914    ac_configure_args=" LEP_LDFLAGS='${NTP_HARD_LDFLAGS}'${ac_configure_args}"
25915    subdirs="$subdirs libevent"
25916
25917    ;;
25918 *)
25919    NTP_FORCE_LIBEVENT_DIST=libevent
25920    ;;
25921esac
25922
25923
25924
25925# Checks for libraries.
25926
25927
25928LIB_SYSLOG=''
25929
25930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
25931printf %s "checking for library containing openlog... " >&6; }
25932if test ${ac_cv_search_openlog+y}
25933then :
25934  printf %s "(cached) " >&6
25935else $as_nop
25936  ac_func_search_save_LIBS=$LIBS
25937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25938/* end confdefs.h.  */
25939
25940/* Override any GCC internal prototype to avoid an error.
25941   Use char because int might match the return type of a GCC
25942   builtin and then its argument prototype would still apply.  */
25943char openlog ();
25944int
25945main (void)
25946{
25947return openlog ();
25948  ;
25949  return 0;
25950}
25951_ACEOF
25952for ac_lib in '' gen syslog
25953do
25954  if test -z "$ac_lib"; then
25955    ac_res="none required"
25956  else
25957    ac_res=-l$ac_lib
25958    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25959  fi
25960  if ac_fn_c_try_link "$LINENO"
25961then :
25962  ac_cv_search_openlog=$ac_res
25963fi
25964rm -f core conftest.err conftest.$ac_objext conftest.beam \
25965    conftest$ac_exeext
25966  if test ${ac_cv_search_openlog+y}
25967then :
25968  break
25969fi
25970done
25971if test ${ac_cv_search_openlog+y}
25972then :
25973
25974else $as_nop
25975  ac_cv_search_openlog=no
25976fi
25977rm conftest.$ac_ext
25978LIBS=$ac_func_search_save_LIBS
25979fi
25980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
25981printf "%s\n" "$ac_cv_search_openlog" >&6; }
25982ac_res=$ac_cv_search_openlog
25983if test "$ac_res" != no
25984then :
25985  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25986  case "$ac_cv_search_openlog" in
25987 'none required') ;;
25988 no) ;;
25989 *) LIB_SYSLOG="$ac_cv_search_openlog $LIB_SYSLOG" ;;
25990 esac
25991
25992fi
25993
25994
25995# Checks for header files.
25996ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
25997if test "x$ac_cv_header_netdb_h" = xyes
25998then :
25999  printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
26000
26001fi
26002ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
26003if test "x$ac_cv_header_string_h" = xyes
26004then :
26005  printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
26006
26007fi
26008ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
26009if test "x$ac_cv_header_strings_h" = xyes
26010then :
26011  printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
26012
26013fi
26014ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
26015if test "x$ac_cv_header_syslog_h" = xyes
26016then :
26017  printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
26018
26019fi
26020
26021
26022
26023       for ac_header in sysexits.h
26024do :
26025  ac_fn_c_check_header_compile "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
26026if test "x$ac_cv_header_sysexits_h" = xyes
26027then :
26028  printf "%s\n" "#define HAVE_SYSEXITS_H 1" >>confdefs.h
26029
26030else $as_nop
26031
26032
26033printf "%s\n" "#define EX_OK 0" >>confdefs.h
26034
26035
26036printf "%s\n" "#define EX_SOFTWARE 70" >>confdefs.h
26037
26038
26039fi
26040
26041done
26042
26043
26044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
26045printf %s "checking for facilitynames in syslog.h... " >&6; }
26046if test ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+y}
26047then :
26048  printf %s "(cached) " >&6
26049else $as_nop
26050
26051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26052/* end confdefs.h.  */
26053
26054#define SYSLOG_NAMES
26055#include <stdlib.h>
26056#include <syslog.h>
26057
26058int
26059main (void)
26060{
26061 void *fnames; fnames = facilitynames;
26062  ;
26063  return 0;
26064}
26065_ACEOF
26066if ac_fn_c_try_compile "$LINENO"
26067then :
26068  ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
26069else $as_nop
26070  ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
26071fi
26072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26073fi
26074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
26075printf "%s\n" "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
26076case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
26077 yes)
26078
26079printf "%s\n" "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
26080
26081    ;;
26082 no)
26083    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
26084printf "%s\n" "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
26085    ;;
26086 cross)
26087    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
26088printf "%s\n" "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
26089    ;;
26090esac
26091
26092
26093# Checks for typedefs, structures, and compiler characteristics.
26094ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
26095if test "x$ac_cv_type__Bool" = xyes
26096then :
26097
26098printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
26099
26100
26101fi
26102
26103   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
26104printf %s "checking for stdbool.h that conforms to C99... " >&6; }
26105if test ${ac_cv_header_stdbool_h+y}
26106then :
26107  printf %s "(cached) " >&6
26108else $as_nop
26109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26110/* end confdefs.h.  */
26111#include <stdbool.h>
26112
26113             #ifndef __bool_true_false_are_defined
26114               #error "__bool_true_false_are_defined is not defined"
26115             #endif
26116             char a[__bool_true_false_are_defined == 1 ? 1 : -1];
26117
26118             /* Regardless of whether this is C++ or "_Bool" is a
26119                valid type name, "true" and "false" should be usable
26120                in #if expressions and integer constant expressions,
26121                and "bool" should be a valid type name.  */
26122
26123             #if !true
26124               #error "'true' is not true"
26125             #endif
26126             #if true != 1
26127               #error "'true' is not equal to 1"
26128             #endif
26129             char b[true == 1 ? 1 : -1];
26130             char c[true];
26131
26132             #if false
26133               #error "'false' is not false"
26134             #endif
26135             #if false != 0
26136               #error "'false' is not equal to 0"
26137             #endif
26138             char d[false == 0 ? 1 : -1];
26139
26140             enum { e = false, f = true, g = false * true, h = true * 256 };
26141
26142             char i[(bool) 0.5 == true ? 1 : -1];
26143             char j[(bool) 0.0 == false ? 1 : -1];
26144             char k[sizeof (bool) > 0 ? 1 : -1];
26145
26146             struct sb { bool s: 1; bool t; } s;
26147             char l[sizeof s.t > 0 ? 1 : -1];
26148
26149             /* The following fails for
26150                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
26151             bool m[h];
26152             char n[sizeof m == h * sizeof m[0] ? 1 : -1];
26153             char o[-1 - (bool) 0 < 0 ? 1 : -1];
26154             /* Catch a bug in an HP-UX C compiler.  See
26155         https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
26156         https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
26157              */
26158             bool p = true;
26159             bool *pp = &p;
26160
26161             /* C 1999 specifies that bool, true, and false are to be
26162                macros, but C++ 2011 and later overrule this.  */
26163             #if __cplusplus < 201103
26164              #ifndef bool
26165               #error "bool is not defined"
26166              #endif
26167              #ifndef false
26168               #error "false is not defined"
26169              #endif
26170              #ifndef true
26171               #error "true is not defined"
26172              #endif
26173             #endif
26174
26175             /* If _Bool is available, repeat with it all the tests
26176                above that used bool.  */
26177             #ifdef HAVE__BOOL
26178               struct sB { _Bool s: 1; _Bool t; } t;
26179
26180               char q[(_Bool) 0.5 == true ? 1 : -1];
26181               char r[(_Bool) 0.0 == false ? 1 : -1];
26182               char u[sizeof (_Bool) > 0 ? 1 : -1];
26183               char v[sizeof t.t > 0 ? 1 : -1];
26184
26185               _Bool w[h];
26186               char x[sizeof m == h * sizeof m[0] ? 1 : -1];
26187               char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
26188               _Bool z = true;
26189               _Bool *pz = &p;
26190             #endif
26191
26192int
26193main (void)
26194{
26195
26196             bool ps = &s;
26197             *pp |= p;
26198             *pp |= ! p;
26199
26200             #ifdef HAVE__BOOL
26201               _Bool pt = &t;
26202               *pz |= z;
26203               *pz |= ! z;
26204             #endif
26205
26206             /* Refer to every declared value, so they cannot be
26207                discarded as unused.  */
26208             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
26209                     + !l + !m + !n + !o + !p + !pp + !ps
26210             #ifdef HAVE__BOOL
26211                     + !q + !r + !u + !v + !w + !x + !y + !z + !pt
26212             #endif
26213                    );
26214
26215  ;
26216  return 0;
26217}
26218_ACEOF
26219if ac_fn_c_try_compile "$LINENO"
26220then :
26221  ac_cv_header_stdbool_h=yes
26222else $as_nop
26223  ac_cv_header_stdbool_h=no
26224fi
26225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26226fi
26227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
26228printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
26229
26230if test $ac_cv_header_stdbool_h = yes; then
26231
26232printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
26233
26234fi
26235
26236
26237
26238
26239
26240VER_SUFFIX=
26241
26242
26243
26244
26245# Check whether --with-crypto was given.
26246if test ${with_crypto+y}
26247then :
26248  withval=$with_crypto;
26249fi
26250
26251
26252# Check whether --with-openssl-libdir was given.
26253if test ${with_openssl_libdir+y}
26254then :
26255  withval=$with_openssl_libdir;
26256fi
26257
26258
26259# Check whether --with-openssl-incdir was given.
26260if test ${with_openssl_incdir+y}
26261then :
26262  withval=$with_openssl_incdir;
26263fi
26264
26265
26266# Check whether --with-rpath was given.
26267if test ${with_rpath+y}
26268then :
26269  withval=$with_rpath;
26270fi
26271
26272
26273ntp_openssl=no
26274ntp_openssl_from_pkg_config=no
26275
26276with_crypto=${with_crypto:-openssl,libcrypto}
26277case "$with_crypto" in
26278 yes)
26279    with_crypto=openssl,libcrypto
26280esac
26281
26282
26283case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
26284 no:*) ;;
26285 *:notempty:notgiven:notgiven)
26286    for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
26287	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
26288printf %s "checking pkg-config for $pkg... " >&6; }
26289	if $PKG_CONFIG --exists $pkg ; then
26290	    CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
26291	    CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
26292	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
26293	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`"
26294	    LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
26295	    VER_SUFFIX=o
26296	    ntp_openssl=yes
26297	    ntp_openssl_from_pkg_config=yes
26298	    ntp_openssl_version="`$PKG_CONFIG --modversion $pkg`"
26299	    case "$ntp_openssl_version" in
26300	     *.*) ;;
26301	     *) ntp_openssl_version='(unknown)' ;;
26302	    esac
26303	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_openssl_version" >&5
26304printf "%s\n" "yes, version $ntp_openssl_version" >&6; }
26305
26306	    break
26307	fi
26308	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26309printf "%s\n" "no" >&6; }
26310    done
26311esac
26312case "$with_crypto:$ntp_openssl" in
26313 no:*) ;;
26314 *:no)
26315    need_dash_r=
26316    need_dash_Wlrpath=
26317    case "${with_rpath-notgiven}" in
26318     yes)
26319	# Lame - what to do if we need -Wl... but not -R?
26320	need_dash_r=1
26321	;;
26322     notgiven)
26323	case "$host" in
26324	 *-*-linux*)
26325	    # This may really only be true for gcc
26326	    need_dash_Wlrpath=1
26327	    ;;
26328	 *-*-netbsd*)
26329	    need_dash_r=1
26330	    ;;
26331	 *-*-solaris*)
26332	    need_dash_r=1
26333	    ;;
26334	esac
26335	;;
26336    esac
26337
26338    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
26339printf %s "checking for openssl library directory... " >&6; }
26340    with_openssl_libdir=${with_openssl_libdir-notgiven}
26341    case "$with_openssl_libdir" in
26342     notgiven)
26343	case "$build" in
26344	 $host)
26345	    with_openssl_libdir=default
26346	    ;;
26347	 *)
26348	    with_openssl_libdir=no
26349	    ;;
26350	esac
26351    esac
26352    case "$with_openssl_libdir" in
26353     default)
26354	# Look in:
26355	with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
26356	with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
26357	with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
26358    esac
26359    case "$with_openssl_libdir" in
26360     no)
26361	;;
26362     *) # Look for libcrypto.a and libssl.a:
26363	for i in $with_openssl_libdir no
26364	do
26365	    case "$host" in
26366	     *-*-darwin*)
26367		test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
26368		;;
26369	     *)
26370		test -f $i/libcrypto.so -a -f $i/libssl.so && break
26371		test -f $i/libcrypto.a -a -f $i/libssl.a && break
26372		;;
26373	    esac
26374	done
26375	openssl_libdir=$i
26376	;;
26377    esac
26378    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
26379printf "%s\n" "$openssl_libdir" >&6; }
26380    case "$openssl_libdir" in
26381     no)
26382	openssl_libdir=
26383	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
26384printf "%s\n" "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
26385    esac
26386
26387    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
26388printf %s "checking for openssl include directory... " >&6; }
26389    with_openssl_incdir=${with_openssl_incdir-notgiven}
26390    case "$with_openssl_incdir" in
26391     notgiven)
26392	# Look in:
26393	with_openssl_incdir="/usr/include /usr/sfw/include"
26394	with_openssl_incdir="$with_openssl_incdir /usr/local/include"
26395	with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
26396    esac
26397    case "$with_openssl_incdir" in
26398     no)
26399	;;
26400     *) # look for openssl/evp.h:
26401	for i in $with_openssl_incdir no
26402	do
26403	    test -f $i/openssl/evp.h && break
26404	done
26405	openssl_incdir=$i
26406	;;
26407    esac
26408    { i=; unset i;}
26409    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
26410printf "%s\n" "$openssl_incdir" >&6; }
26411    case "$openssl_incdir" in
26412     no)
26413	openssl_incdir=
26414	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
26415printf "%s\n" "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
26416    esac
26417    if test -z "$openssl_libdir" -o -z "$openssl_incdir"
26418    then
26419	ntp_openssl=no
26420    else
26421	ntp_openssl=yes
26422	VER_SUFFIX=o
26423    fi
26424    case "$ntp_openssl" in
26425     yes)
26426	# We have OpenSSL inc/lib dirs - use them.
26427	case "$openssl_incdir" in
26428	 /usr/include)
26429	    ;;
26430	 *)
26431	    CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
26432	    ;;
26433	esac
26434	case "$openssl_libdir" in
26435	 /usr/lib)
26436	    ;;
26437	 *)
26438	    LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
26439	    case "$need_dash_r" in
26440	     1)
26441		LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
26442	    esac
26443	    case "$need_dash_Wlrpath" in
26444	     1)
26445		LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
26446	    esac
26447	    ;;
26448	esac
26449	LDADD_NTP="$LDADD_NTP -lcrypto"
26450    esac
26451esac
26452
26453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
26454printf %s "checking if we will use crypto... " >&6; }
26455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
26456printf "%s\n" "$ntp_openssl" >&6; }
26457
26458case "$ntp_openssl" in
26459 yes)
26460    ac_fn_c_check_header_compile "$LINENO" "openssl/cmac.h" "ac_cv_header_openssl_cmac_h" "$ac_includes_default"
26461if test "x$ac_cv_header_openssl_cmac_h" = xyes
26462then :
26463  printf "%s\n" "#define HAVE_OPENSSL_CMAC_H 1" >>confdefs.h
26464
26465fi
26466ac_fn_c_check_header_compile "$LINENO" "openssl/hmac.h" "ac_cv_header_openssl_hmac_h" "$ac_includes_default"
26467if test "x$ac_cv_header_openssl_hmac_h" = xyes
26468then :
26469  printf "%s\n" "#define HAVE_OPENSSL_HMAC_H 1" >>confdefs.h
26470
26471fi
26472
26473
26474printf "%s\n" "#define OPENSSL /**/" >>confdefs.h
26475
26476    case "$VER_SUFFIX" in
26477     *o*) ;;
26478     *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
26479    esac
26480    ;;
26481esac
26482
26483NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
26484CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
26485NTPO_SAVED_LIBS="$LIBS"
26486
26487#
26488# check for linking with -lcrypto failure, and try -lcrypto -lz.
26489# Helps m68k-atari-mint
26490#
26491case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
26492 yes:no)
26493    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
26494    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
26495printf %s "checking if linking with -lcrypto alone works... " >&6; }
26496if test ${ntp_cv_bare_lcrypto+y}
26497then :
26498  printf %s "(cached) " >&6
26499else $as_nop
26500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26501/* end confdefs.h.  */
26502
26503		    #include "openssl/err.h"
26504		    #include "openssl/evp.h"
26505
26506int
26507main (void)
26508{
26509
26510		    ERR_load_crypto_strings();
26511		    OpenSSL_add_all_algorithms();
26512
26513
26514  ;
26515  return 0;
26516}
26517_ACEOF
26518if ac_fn_c_try_link "$LINENO"
26519then :
26520  ntp_cv_bare_lcrypto=yes
26521else $as_nop
26522  ntp_cv_bare_lcrypto=no
26523
26524fi
26525rm -f core conftest.err conftest.$ac_objext conftest.beam \
26526    conftest$ac_exeext conftest.$ac_ext
26527
26528fi
26529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
26530printf "%s\n" "$ntp_cv_bare_lcrypto" >&6; }
26531    case "$ntp_cv_bare_lcrypto" in
26532     no)
26533	LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
26534	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
26535printf %s "checking if linking with -lcrypto -lz works... " >&6; }
26536if test ${ntp_cv_lcrypto_lz+y}
26537then :
26538  printf %s "(cached) " >&6
26539else $as_nop
26540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26541/* end confdefs.h.  */
26542
26543			#include "openssl/err.h"
26544			#include "openssl/evp.h"
26545
26546int
26547main (void)
26548{
26549
26550			ERR_load_crypto_strings();
26551			OpenSSL_add_all_algorithms();
26552
26553
26554  ;
26555  return 0;
26556}
26557_ACEOF
26558if ac_fn_c_try_link "$LINENO"
26559then :
26560  ntp_cv_lcrypto_lz=yes
26561else $as_nop
26562  ntp_cv_lcrypto_lz=no
26563
26564fi
26565rm -f core conftest.err conftest.$ac_objext conftest.beam \
26566    conftest$ac_exeext conftest.$ac_ext
26567
26568fi
26569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
26570printf "%s\n" "$ntp_cv_lcrypto_lz" >&6; }
26571	case "$ntp_cv_lcrypto_lz" in
26572	 yes)
26573	     LDADD_NTP="$LDADD_NTP -lz"
26574	esac
26575    esac
26576esac
26577
26578#
26579# Older OpenSSL headers have a number of callback prototypes inside
26580# other function prototypes which trigger copious warnings with gcc's
26581# -Wstrict-prototypes, which is included in -Wall.
26582#
26583# An example:
26584#
26585# int i2d_RSA_NET(const RSA *a, unsigned char **pp,
26586#		  int (*cb)(), int sgckey);
26587#		  ^^^^^^^^^^^
26588#
26589#
26590#
26591openssl_triggers_warnings=unknown
26592NTPO_SAVED_CFLAGS="$CFLAGS"
26593
26594case "$ntp_openssl:$GCC" in
26595 yes:yes)
26596    CFLAGS="$CFLAGS -Werror"
26597    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26598/* end confdefs.h.  */
26599
26600
26601int
26602main (void)
26603{
26604
26605		/* see if -Werror breaks gcc */
26606
26607
26608  ;
26609  return 0;
26610}
26611_ACEOF
26612if ac_fn_c_try_compile "$LINENO"
26613then :
26614  gcc_handles_Werror=yes
26615else $as_nop
26616  gcc_handles_Werror=no
26617
26618fi
26619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26620    case "$gcc_handles_Werror" in
26621     no)
26622	# if this gcc doesn't do -Werror go ahead and use
26623	# -Wstrict-prototypes.
26624	openssl_triggers_warnings=yes
26625	;;
26626     yes)
26627	CFLAGS="$CFLAGS -Wstrict-prototypes"
26628	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26629/* end confdefs.h.  */
26630
26631		    #include "openssl/asn1_mac.h"
26632		    #include "openssl/bn.h"
26633		    #include "openssl/err.h"
26634		    #include "openssl/evp.h"
26635		    #include "openssl/pem.h"
26636		    #include "openssl/rand.h"
26637		    #include "openssl/x509v3.h"
26638
26639int
26640main (void)
26641{
26642
26643		    /* empty body */
26644
26645
26646  ;
26647  return 0;
26648}
26649_ACEOF
26650if ac_fn_c_try_compile "$LINENO"
26651then :
26652  openssl_triggers_warnings=no
26653else $as_nop
26654  openssl_triggers_warnings=yes
26655
26656fi
26657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26658    esac
26659    case "$openssl_triggers_warnings" in
26660     yes)
26661	CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
26662	;;
26663     *)
26664	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
26665    esac
26666    ;;
26667 no:yes)
26668    # gcc without OpenSSL
26669    CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
26670esac
26671
26672# Because we don't want -Werror for the EVP_MD_do_all_sorted check
26673CFLAGS="$NTPO_SAVED_CFLAGS"
26674
26675case "$ntp_openssl" in
26676 yes)
26677    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
26678    ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
26679if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes
26680then :
26681  printf "%s\n" "#define HAVE_EVP_MD_DO_ALL_SORTED 1" >>confdefs.h
26682
26683fi
26684
26685    ;;
26686esac
26687
26688
26689CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
26690LIBS="$NTPO_SAVED_LIBS"
26691{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
26692{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
26693{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
26694{ openssl_triggers_warnings=; unset openssl_triggers_warnings;}
26695{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
26696
26697
26698
26699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
26700printf %s "checking for struct sockaddr_storage... " >&6; }
26701if test ${ntp_cv_sockaddr_storage+y}
26702then :
26703  printf %s "(cached) " >&6
26704else $as_nop
26705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26706/* end confdefs.h.  */
26707
26708		#ifdef HAVE_SYS_TYPES_H
26709		# include <sys/types.h>
26710		#endif
26711		#ifdef HAVE_SYS_SOCKET_H
26712		# include <sys/socket.h>
26713		#endif
26714		#ifdef HAVE_NETINET_IN_H
26715		# include <netinet/in.h>
26716		#endif
26717
26718int
26719main (void)
26720{
26721
26722		struct sockaddr_storage n;
26723
26724
26725  ;
26726  return 0;
26727}
26728_ACEOF
26729if ac_fn_c_try_compile "$LINENO"
26730then :
26731  ntp_cv_sockaddr_storage=yes
26732else $as_nop
26733  ntp_cv_sockaddr_storage=no
26734
26735fi
26736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26737
26738fi
26739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
26740printf "%s\n" "$ntp_cv_sockaddr_storage" >&6; }
26741case "$ntp_cv_sockaddr_storage" in
26742 yes)
26743
26744printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
26745
26746    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
26747printf %s "checking for sockaddr_storage.__ss_family... " >&6; }
26748if test ${ntp_cv_have___ss_family+y}
26749then :
26750  printf %s "(cached) " >&6
26751else $as_nop
26752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26753/* end confdefs.h.  */
26754
26755		    #ifdef HAVE_SYS_TYPES_H
26756		    # include <sys/types.h>
26757		    #endif
26758		    #ifdef HAVE_SYS_SOCKET_H
26759		    # include <sys/socket.h>
26760		    #endif
26761		    #ifdef HAVE_NETINET_IN_H
26762		    # include <netinet/in.h>
26763		    #endif
26764
26765int
26766main (void)
26767{
26768
26769		    struct sockaddr_storage s;
26770		    s.__ss_family = 1;
26771
26772
26773  ;
26774  return 0;
26775}
26776_ACEOF
26777if ac_fn_c_try_compile "$LINENO"
26778then :
26779  ntp_cv_have___ss_family=yes
26780else $as_nop
26781  ntp_cv_have___ss_family=no
26782
26783fi
26784rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26785
26786fi
26787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
26788printf "%s\n" "$ntp_cv_have___ss_family" >&6; }
26789    case "$ntp_cv_have___ss_family" in
26790     yes)
26791
26792printf "%s\n" "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
26793
26794    esac
26795
26796esac
26797
26798
26799#
26800# Look for in_port_t.
26801#
26802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
26803printf %s "checking for in_port_t... " >&6; }
26804if test ${isc_cv_have_in_port_t+y}
26805then :
26806  printf %s "(cached) " >&6
26807else $as_nop
26808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26809/* end confdefs.h.  */
26810
26811		#include <sys/types.h>
26812		#include <netinet/in.h>
26813
26814int
26815main (void)
26816{
26817
26818		in_port_t port = 25;
26819		return (0);
26820
26821
26822  ;
26823  return 0;
26824}
26825_ACEOF
26826if ac_fn_c_try_compile "$LINENO"
26827then :
26828  isc_cv_have_in_port_t=yes
26829else $as_nop
26830  isc_cv_have_in_port_t=no
26831
26832fi
26833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26834
26835fi
26836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
26837printf "%s\n" "$isc_cv_have_in_port_t" >&6; }
26838case "$isc_cv_have_in_port_t" in
26839 no)
26840
26841printf "%s\n" "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
26842
26843esac
26844
26845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
26846printf %s "checking type of socklen arg for getsockname()... " >&6; }
26847if test ${ntp_cv_getsockname_socklen_type+y}
26848then :
26849  printf %s "(cached) " >&6
26850else $as_nop
26851
26852    getsockname_socklen_type_found=no
26853    for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
26854	for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
26855	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26856/* end confdefs.h.  */
26857
26858			#ifdef HAVE_SYS_TYPES_H
26859			# include <sys/types.h>
26860			#endif
26861			#ifdef HAVE_SYS_SOCKET_H
26862			# include <sys/socket.h>
26863			#endif
26864
26865int
26866main (void)
26867{
26868
26869			extern
26870			getsockname(int, $getsockname_arg2,
26871				$ntp_cv_getsockname_socklen_type *);
26872
26873
26874  ;
26875  return 0;
26876}
26877_ACEOF
26878if ac_fn_c_try_compile "$LINENO"
26879then :
26880  getsockname_socklen_type_found=yes ; break 2
26881fi
26882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26883	done
26884    done
26885    case "$getsockname_socklen_type_found" in
26886     no)
26887	ntp_cv_getsockname_socklen_type='socklen_t'
26888    esac
26889    { getsockname_arg2=; unset getsockname_arg2;}
26890    { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
26891
26892
26893fi
26894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
26895printf "%s\n" "$ntp_cv_getsockname_socklen_type" >&6; }
26896
26897printf "%s\n" "#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type" >>confdefs.h
26898
26899
26900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
26901printf %s "checking struct sockaddr for sa_len... " >&6; }
26902if test ${isc_cv_platform_havesalen+y}
26903then :
26904  printf %s "(cached) " >&6
26905else $as_nop
26906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26907/* end confdefs.h.  */
26908
26909		#include <sys/types.h>
26910		#include <sys/socket.h>
26911
26912int
26913main (void)
26914{
26915
26916		extern struct sockaddr *ps;
26917		return ps->sa_len;
26918
26919
26920  ;
26921  return 0;
26922}
26923_ACEOF
26924if ac_fn_c_try_compile "$LINENO"
26925then :
26926  isc_cv_platform_havesalen=yes
26927else $as_nop
26928  isc_cv_platform_havesalen=no
26929
26930fi
26931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26932
26933fi
26934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
26935printf "%s\n" "$isc_cv_platform_havesalen" >&6; }
26936case "$isc_cv_platform_havesalen" in
26937 yes)
26938
26939printf "%s\n" "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
26940
26941esac
26942
26943# Check whether --enable-ipv6 was given.
26944if test ${enable_ipv6+y}
26945then :
26946  enableval=$enable_ipv6;
26947fi
26948
26949
26950case "$enable_ipv6" in
26951 yes|''|autodetect)
26952    case "$host" in
26953     powerpc-ibm-aix4*)
26954	;;
26955     *)
26956
26957printf "%s\n" "#define WANT_IPV6 1" >>confdefs.h
26958
26959	;;
26960    esac
26961    ;;
26962 no)
26963    ;;
26964esac
26965
26966
26967case "$host" in
26968 *-*-darwin*)
26969
26970printf "%s\n" "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
26971
26972esac
26973
26974
26975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
26976printf %s "checking for IPv6 structures... " >&6; }
26977if test ${isc_cv_found_ipv6+y}
26978then :
26979  printf %s "(cached) " >&6
26980else $as_nop
26981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26982/* end confdefs.h.  */
26983
26984		#include <sys/types.h>
26985		#include <sys/socket.h>
26986		#include <netinet/in.h>
26987
26988int
26989main (void)
26990{
26991
26992		struct sockaddr_in6 sin6;
26993
26994
26995  ;
26996  return 0;
26997}
26998_ACEOF
26999if ac_fn_c_try_compile "$LINENO"
27000then :
27001  isc_cv_found_ipv6=yes
27002else $as_nop
27003  isc_cv_found_ipv6=no
27004
27005fi
27006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27007
27008fi
27009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
27010printf "%s\n" "$isc_cv_found_ipv6" >&6; }
27011
27012#
27013# See whether IPv6 support is provided via a Kame add-on.
27014# This is done before other IPv6 linking tests so LIBS is properly set.
27015#
27016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
27017printf %s "checking for Kame IPv6 support... " >&6; }
27018
27019# Check whether --with-kame was given.
27020if test ${with_kame+y}
27021then :
27022  withval=$with_kame; use_kame="$withval"
27023else $as_nop
27024  use_kame="no"
27025
27026fi
27027
27028case "$use_kame" in
27029 no)
27030    ;;
27031 yes)
27032    kame_path=/usr/local/v6
27033    ;;
27034 *)
27035    kame_path="$use_kame"
27036    ;;
27037esac
27038case "$use_kame" in
27039 no)
27040    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27041printf "%s\n" "no" >&6; }
27042    ;;
27043 *)
27044    if test -f $kame_path/lib/libinet6.a; then
27045	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
27046printf "%s\n" "$kame_path/lib/libinet6.a" >&6; }
27047	LIBS="-L$kame_path/lib -linet6 $LIBS"
27048    else
27049	as_fn_error $? "$kame_path/lib/libinet6.a not found.
27050
27051Please choose the proper path with the following command:
27052
27053    configure --with-kame=PATH
27054" "$LINENO" 5
27055    fi
27056    ;;
27057esac
27058
27059#
27060# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
27061# Including it on Kame-using platforms is very bad, though, because
27062# Kame uses #error against direct inclusion.   So include it on only
27063# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
27064# This is done before the in6_pktinfo check because that's what
27065# netinet6/in6.h is needed for.
27066#
27067case "$host" in
27068 *-bsdi4.[01]*)
27069
27070printf "%s\n" "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
27071
27072    isc_netinet6in6_hack="#include <netinet6/in6.h>"
27073    ;;
27074 *)
27075    isc_netinet6in6_hack=""
27076    ;;
27077esac
27078
27079#
27080# This is similar to the netinet6/in6.h issue.
27081#
27082case "$host" in
27083 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
27084
27085printf "%s\n" "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
27086
27087    isc_netinetin6_hack="#include <netinet/in6.h>"
27088    ;;
27089 *)
27090    isc_netinetin6_hack=""
27091    ;;
27092esac
27093
27094
27095case "$isc_cv_found_ipv6" in
27096 yes)
27097
27098printf "%s\n" "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
27099
27100    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
27101printf %s "checking for in6_pktinfo... " >&6; }
27102if test ${isc_cv_have_in6_pktinfo+y}
27103then :
27104  printf %s "(cached) " >&6
27105else $as_nop
27106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27107/* end confdefs.h.  */
27108
27109		    #include <sys/types.h>
27110		    #include <sys/socket.h>
27111		    #include <netinet/in.h>
27112		    $isc_netinetin6_hack
27113		    $isc_netinet6in6_hack
27114
27115int
27116main (void)
27117{
27118
27119		    struct in6_pktinfo xyzzy;
27120
27121
27122  ;
27123  return 0;
27124}
27125_ACEOF
27126if ac_fn_c_try_compile "$LINENO"
27127then :
27128  isc_cv_have_in6_pktinfo=yes
27129else $as_nop
27130  isc_cv_have_in6_pktinfo=no
27131
27132fi
27133rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27134
27135fi
27136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
27137printf "%s\n" "$isc_cv_have_in6_pktinfo" >&6; }
27138    case "$isc_cv_have_in6_pktinfo" in
27139     yes)
27140
27141printf "%s\n" "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
27142
27143    esac
27144
27145
27146    # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
27147    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
27148printf %s "checking for sockaddr_in6.sin6_scope_id... " >&6; }
27149if test ${isc_cv_have_sin6_scope_id+y}
27150then :
27151  printf %s "(cached) " >&6
27152else $as_nop
27153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27154/* end confdefs.h.  */
27155
27156		    #include <sys/types.h>
27157		    #include <sys/socket.h>
27158		    #include <netinet/in.h>
27159		    $isc_netinetin6_hack
27160		    $isc_netinet6in6_hack
27161
27162int
27163main (void)
27164{
27165
27166		    struct sockaddr_in6 xyzzy;
27167		    xyzzy.sin6_scope_id = 0;
27168
27169
27170  ;
27171  return 0;
27172}
27173_ACEOF
27174if ac_fn_c_try_compile "$LINENO"
27175then :
27176  isc_cv_have_sin6_scope_id=yes
27177else $as_nop
27178  isc_cv_have_sin6_scope_id=no
27179
27180fi
27181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27182
27183fi
27184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
27185printf "%s\n" "$isc_cv_have_sin6_scope_id" >&6; }
27186
27187    case "$isc_cv_have_sin6_scope_id" in
27188     yes)
27189
27190printf "%s\n" "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
27191
27192    esac
27193esac
27194
27195
27196# We need this check run even without isc_cv_found_ipv6=yes
27197
27198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
27199printf %s "checking for in6addr_any... " >&6; }
27200if test ${isc_cv_in6addr_any_links+y}
27201then :
27202  printf %s "(cached) " >&6
27203else $as_nop
27204
27205	SAVED_LIBS="$LIBS"
27206	LIBS="$LDADD_LIBNTP $LIBS"
27207	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27208/* end confdefs.h.  */
27209$ac_includes_default
27210		    #include <sys/socket.h>
27211		    #include <netinet/in.h>
27212		    $isc_netinetin6_hack
27213		    $isc_netinet6in6_hack
27214
27215int
27216main (void)
27217{
27218
27219		    printf("%x", in6addr_any.s6_addr[15]);
27220
27221
27222  ;
27223  return 0;
27224}
27225_ACEOF
27226if ac_fn_c_try_link "$LINENO"
27227then :
27228  isc_cv_in6addr_any_links=yes
27229else $as_nop
27230  isc_cv_in6addr_any_links=no
27231
27232fi
27233rm -f core conftest.err conftest.$ac_objext conftest.beam \
27234    conftest$ac_exeext conftest.$ac_ext
27235	LIBS="$SAVED_LIBS"
27236	{ SAVED_LIBS=; unset SAVED_LIBS;}
27237
27238
27239fi
27240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
27241printf "%s\n" "$isc_cv_in6addr_any_links" >&6; }
27242
27243case "$isc_cv_in6addr_any_links" in
27244 no)
27245
27246printf "%s\n" "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
27247
27248esac
27249
27250
27251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
27252printf %s "checking for struct if_laddrconf... " >&6; }
27253if test ${isc_cv_struct_if_laddrconf+y}
27254then :
27255  printf %s "(cached) " >&6
27256else $as_nop
27257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27258/* end confdefs.h.  */
27259
27260		#include <sys/types.h>
27261		#include <net/if6.h>
27262
27263int
27264main (void)
27265{
27266
27267		struct if_laddrconf a;
27268
27269
27270  ;
27271  return 0;
27272}
27273_ACEOF
27274if ac_fn_c_try_compile "$LINENO"
27275then :
27276  isc_cv_struct_if_laddrconf=yes
27277else $as_nop
27278  isc_cv_struct_if_laddrconf=no
27279
27280fi
27281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27282
27283fi
27284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
27285printf "%s\n" "$isc_cv_struct_if_laddrconf" >&6; }
27286
27287case "$isc_cv_struct_if_laddrconf" in
27288 yes)
27289
27290printf "%s\n" "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
27291
27292esac
27293
27294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
27295printf %s "checking for struct if_laddrreq... " >&6; }
27296if test ${isc_cv_struct_if_laddrreq+y}
27297then :
27298  printf %s "(cached) " >&6
27299else $as_nop
27300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27301/* end confdefs.h.  */
27302
27303		#include <sys/types.h>
27304		#include <net/if6.h>
27305
27306int
27307main (void)
27308{
27309
27310		struct if_laddrreq a;
27311
27312
27313  ;
27314  return 0;
27315}
27316_ACEOF
27317if ac_fn_c_try_compile "$LINENO"
27318then :
27319  isc_cv_struct_if_laddrreq=yes
27320else $as_nop
27321  isc_cv_struct_if_laddrreq=no
27322
27323fi
27324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27325
27326fi
27327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
27328printf "%s\n" "$isc_cv_struct_if_laddrreq" >&6; }
27329
27330case "$isc_cv_struct_if_laddrreq" in
27331 yes)
27332
27333printf "%s\n" "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
27334
27335esac
27336
27337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
27338printf %s "checking for multicast IP support... " >&6; }
27339if test ${ntp_cv_multicast+y}
27340then :
27341  printf %s "(cached) " >&6
27342else $as_nop
27343
27344	ntp_cv_multicast=no
27345	case "$host" in
27346	 i386-sequent-sysv4)
27347	    ;;
27348	 *)
27349	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27350/* end confdefs.h.  */
27351
27352			#ifdef HAVE_NETINET_IN_H
27353			# include <netinet/in.h>
27354			#endif
27355
27356int
27357main (void)
27358{
27359
27360			struct ip_mreq ipmr;
27361			ipmr.imr_interface.s_addr = 0;
27362
27363
27364  ;
27365  return 0;
27366}
27367_ACEOF
27368if ac_fn_c_try_compile "$LINENO"
27369then :
27370  ntp_cv_multicast=yes
27371fi
27372rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27373	    ;;
27374	esac
27375
27376
27377fi
27378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
27379printf "%s\n" "$ntp_cv_multicast" >&6; }
27380case "$ntp_cv_multicast" in
27381 yes)
27382
27383printf "%s\n" "#define MCAST 1" >>confdefs.h
27384
27385    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
27386printf %s "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
27387if test ${ntp_cv_typeof_ip_multicast_loop+y}
27388then :
27389  printf %s "(cached) " >&6
27390else $as_nop
27391
27392	    case "$host" in
27393	     *-*-netbsd*|*-*-*linux*)
27394		ntp_cv_typeof_ip_multicast_loop=u_int
27395		;;
27396	     *)
27397		ntp_cv_typeof_ip_multicast_loop=u_char
27398		;;
27399	    esac
27400
27401
27402fi
27403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
27404printf "%s\n" "$ntp_cv_typeof_ip_multicast_loop" >&6; }
27405
27406printf "%s\n" "#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop" >>confdefs.h
27407
27408esac
27409
27410# Check whether --enable-getifaddrs was given.
27411if test ${enable_getifaddrs+y}
27412then :
27413  enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
27414else $as_nop
27415  want_getifaddrs="yes"
27416
27417fi
27418
27419
27420case $want_getifaddrs in
27421 glibc)
27422    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
27423printf "%s\n" "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
27424esac
27425case $want_getifaddrs in
27426 no)
27427    ;;
27428 *)
27429    SAVED_LIBS="$LIBS"
27430    LIBS="$LDADD_LIBNTP $LIBS"
27431    ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
27432if test "x$ac_cv_func_getifaddrs" = xyes
27433then :
27434  printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
27435
27436fi
27437
27438    LIBS="$SAVED_LIBS"
27439    { SAVED_LIBS=; unset SAVED_LIBS;}
27440    ;;
27441esac
27442
27443#
27444# Check for if_nametoindex() for IPv6 scoped addresses support
27445#
27446case "$host" in
27447 *-hp-hpux*)
27448    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
27449printf %s "checking for library containing if_nametoindex... " >&6; }
27450if test ${ac_cv_search_if_nametoindex+y}
27451then :
27452  printf %s "(cached) " >&6
27453else $as_nop
27454  ac_func_search_save_LIBS=$LIBS
27455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27456/* end confdefs.h.  */
27457
27458/* Override any GCC internal prototype to avoid an error.
27459   Use char because int might match the return type of a GCC
27460   builtin and then its argument prototype would still apply.  */
27461char if_nametoindex ();
27462int
27463main (void)
27464{
27465return if_nametoindex ();
27466  ;
27467  return 0;
27468}
27469_ACEOF
27470for ac_lib in '' ipv6
27471do
27472  if test -z "$ac_lib"; then
27473    ac_res="none required"
27474  else
27475    ac_res=-l$ac_lib
27476    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27477  fi
27478  if ac_fn_c_try_link "$LINENO"
27479then :
27480  ac_cv_search_if_nametoindex=$ac_res
27481fi
27482rm -f core conftest.err conftest.$ac_objext conftest.beam \
27483    conftest$ac_exeext
27484  if test ${ac_cv_search_if_nametoindex+y}
27485then :
27486  break
27487fi
27488done
27489if test ${ac_cv_search_if_nametoindex+y}
27490then :
27491
27492else $as_nop
27493  ac_cv_search_if_nametoindex=no
27494fi
27495rm conftest.$ac_ext
27496LIBS=$ac_func_search_save_LIBS
27497fi
27498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
27499printf "%s\n" "$ac_cv_search_if_nametoindex" >&6; }
27500ac_res=$ac_cv_search_if_nametoindex
27501if test "$ac_res" != no
27502then :
27503  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27504
27505fi
27506
27507esac
27508SAVED_LIBS="$LIBS"
27509LIBS="$LDADD_LIBNTP $LIBS"
27510ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
27511if test "x$ac_cv_func_if_nametoindex" = xyes
27512then :
27513  printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
27514
27515fi
27516
27517LIBS="$SAVED_LIBS"
27518{ SAVED_LIBS=; unset SAVED_LIBS;}
27519case "$ac_cv_func_if_nametoindex" in
27520 yes)
27521
27522printf "%s\n" "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
27523
27524esac
27525
27526
27527
27528###
27529
27530# Hacks
27531# these need work if we're to move libntp under sntp
27532
27533printf "%s\n" "#define HAVE_NO_NICE 1" >>confdefs.h
27534
27535
27536printf "%s\n" "#define HAVE_TERMIOS 1" >>confdefs.h
27537
27538
27539# Checks for library functions.
27540ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
27541if test "x$ac_cv_func_socket" = xyes
27542then :
27543  printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
27544
27545fi
27546
27547
27548
27549# We may not need have_unity
27550have_unity=false
27551# Extract the first word of "ruby", so it can be a program name with args.
27552set dummy ruby; ac_word=$2
27553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27554printf %s "checking for $ac_word... " >&6; }
27555if test ${ac_cv_path_PATH_RUBY+y}
27556then :
27557  printf %s "(cached) " >&6
27558else $as_nop
27559  case $PATH_RUBY in
27560  [\\/]* | ?:[\\/]*)
27561  ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
27562  ;;
27563  *)
27564  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27565for as_dir in $PATH
27566do
27567  IFS=$as_save_IFS
27568  case $as_dir in #(((
27569    '') as_dir=./ ;;
27570    */) ;;
27571    *) as_dir=$as_dir/ ;;
27572  esac
27573    for ac_exec_ext in '' $ac_executable_extensions; do
27574  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27575    ac_cv_path_PATH_RUBY="$as_dir$ac_word$ac_exec_ext"
27576    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27577    break 2
27578  fi
27579done
27580  done
27581IFS=$as_save_IFS
27582
27583  ;;
27584esac
27585fi
27586PATH_RUBY=$ac_cv_path_PATH_RUBY
27587if test -n "$PATH_RUBY"; then
27588  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
27589printf "%s\n" "$PATH_RUBY" >&6; }
27590else
27591  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27592printf "%s\n" "no" >&6; }
27593fi
27594
27595
27596case "$PATH_RUBY" in
27597 /*)
27598    have_unity=true
27599    ;;
27600 *) PATH_RUBY="false"
27601    ;;
27602esac
27603# We may not need UNITYBUILD_AVAILABLE
27604 if $have_unity; then
27605  UNITYBUILD_AVAILABLE_TRUE=
27606  UNITYBUILD_AVAILABLE_FALSE='#'
27607else
27608  UNITYBUILD_AVAILABLE_TRUE='#'
27609  UNITYBUILD_AVAILABLE_FALSE=
27610fi
27611
27612
27613
27614
27615
27616case "$build" in
27617 $host)	cross=0 ;;
27618 *)	cross=1 ;;
27619esac
27620
27621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
27622printf %s "checking if we want to enable tests with undiagnosed problems... " >&6; }
27623# Check whether --enable-problem-tests was given.
27624if test ${enable_problem_tests+y}
27625then :
27626  enableval=$enable_problem_tests; sntp_ept=$enableval
27627else $as_nop
27628  sntp_ept=yes
27629
27630fi
27631
27632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sntp_ept" >&5
27633printf "%s\n" "$sntp_ept" >&6; }
27634
27635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can run test-kodDatabase" >&5
27636printf %s "checking if we can run test-kodDatabase... " >&6; }
27637sntp_test_kodDatabase="no"
27638case "$sntp_ept:$cross:$host" in
27639 no:0:*-apple-darwin12.6.0) ;;
27640 *) sntp_test_kodDatabase="yes" ;;
27641esac
27642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sntp_test_kodDatabase" >&5
27643printf "%s\n" "$sntp_test_kodDatabase" >&6; }
27644 if test x$sntp_test_kodDatabase = xyes; then
27645  BUILD_TEST_KODDATABASE_TRUE=
27646  BUILD_TEST_KODDATABASE_FALSE='#'
27647else
27648  BUILD_TEST_KODDATABASE_TRUE='#'
27649  BUILD_TEST_KODDATABASE_FALSE=
27650fi
27651
27652
27653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can run test-kodFile" >&5
27654printf %s "checking if we can run test-kodFile... " >&6; }
27655sntp_test_kodFile="no"
27656case "$sntp_ept:$cross:$host" in
27657 no:0:*-apple-darwin12.6.0) ;;
27658 *) sntp_test_kodFile="yes" ;;
27659esac
27660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sntp_test_kodFile" >&5
27661printf "%s\n" "$sntp_test_kodFile" >&6; }
27662 if test x$sntp_test_kodFile = xyes; then
27663  BUILD_TEST_KODFILE_TRUE=
27664  BUILD_TEST_KODFILE_FALSE='#'
27665else
27666  BUILD_TEST_KODFILE_TRUE='#'
27667  BUILD_TEST_KODFILE_FALSE=
27668fi
27669
27670
27671
27672
27673# All libraries should be in various LIB_* variables now.
27674#LIBS=
27675# Sadly not.  There is a gettext() check somewhere, and on Solaris this pulls
27676# in -lintl -lgen, outside our "scope".
27677
27678ac_config_files="$ac_config_files Makefile"
27679
27680ac_config_files="$ac_config_files include/Makefile"
27681
27682ac_config_files="$ac_config_files scripts/Makefile"
27683
27684ac_config_files="$ac_config_files tests/Makefile"
27685
27686ac_config_files="$ac_config_files tests/fileHandlingTest.h"
27687
27688ac_config_files="$ac_config_files unity/Makefile"
27689
27690
27691cat >confcache <<\_ACEOF
27692# This file is a shell script that caches the results of configure
27693# tests run on this system so they can be shared between configure
27694# scripts and configure runs, see configure's option --config-cache.
27695# It is not useful on other systems.  If it contains results you don't
27696# want to keep, you may remove or edit it.
27697#
27698# config.status only pays attention to the cache file if you give it
27699# the --recheck option to rerun configure.
27700#
27701# `ac_cv_env_foo' variables (set or unset) will be overridden when
27702# loading this file, other *unset* `ac_cv_foo' will be assigned the
27703# following values.
27704
27705_ACEOF
27706
27707# The following way of writing the cache mishandles newlines in values,
27708# but we know of no workaround that is simple, portable, and efficient.
27709# So, we kill variables containing newlines.
27710# Ultrix sh set writes to stderr and can't be redirected directly,
27711# and sets the high bit in the cache file unless we assign to the vars.
27712(
27713  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27714    eval ac_val=\$$ac_var
27715    case $ac_val in #(
27716    *${as_nl}*)
27717      case $ac_var in #(
27718      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27719printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27720      esac
27721      case $ac_var in #(
27722      _ | IFS | as_nl) ;; #(
27723      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27724      *) { eval $ac_var=; unset $ac_var;} ;;
27725      esac ;;
27726    esac
27727  done
27728
27729  (set) 2>&1 |
27730    case $as_nl`(ac_space=' '; set) 2>&1` in #(
27731    *${as_nl}ac_space=\ *)
27732      # `set' does not quote correctly, so add quotes: double-quote
27733      # substitution turns \\\\ into \\, and sed turns \\ into \.
27734      sed -n \
27735	"s/'/'\\\\''/g;
27736	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27737      ;; #(
27738    *)
27739      # `set' quotes correctly as required by POSIX, so do not add quotes.
27740      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27741      ;;
27742    esac |
27743    sort
27744) |
27745  sed '
27746     /^ac_cv_env_/b end
27747     t clear
27748     :clear
27749     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
27750     t end
27751     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27752     :end' >>confcache
27753if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27754  if test -w "$cache_file"; then
27755    if test "x$cache_file" != "x/dev/null"; then
27756      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27757printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
27758      if test ! -f "$cache_file" || test -h "$cache_file"; then
27759	cat confcache >"$cache_file"
27760      else
27761        case $cache_file in #(
27762        */* | ?:*)
27763	  mv -f confcache "$cache_file"$$ &&
27764	  mv -f "$cache_file"$$ "$cache_file" ;; #(
27765        *)
27766	  mv -f confcache "$cache_file" ;;
27767	esac
27768      fi
27769    fi
27770  else
27771    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27772printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
27773  fi
27774fi
27775rm -f confcache
27776
27777test "x$prefix" = xNONE && prefix=$ac_default_prefix
27778# Let make expand exec_prefix.
27779test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27780
27781DEFS=-DHAVE_CONFIG_H
27782
27783ac_libobjs=
27784ac_ltlibobjs=
27785U=
27786for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27787  # 1. Remove the extension, and $U if already installed.
27788  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27789  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
27790  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27791  #    will be set to the directory where LIBOBJS objects are built.
27792  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27793  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27794done
27795LIBOBJS=$ac_libobjs
27796
27797LTLIBOBJS=$ac_ltlibobjs
27798
27799
27800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
27801printf %s "checking that generated files are newer than configure... " >&6; }
27802   if test -n "$am_sleep_pid"; then
27803     # Hide warnings about reused PIDs.
27804     wait $am_sleep_pid 2>/dev/null
27805   fi
27806   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
27807printf "%s\n" "done" >&6; }
27808 if test -n "$EXEEXT"; then
27809  am__EXEEXT_TRUE=
27810  am__EXEEXT_FALSE='#'
27811else
27812  am__EXEEXT_TRUE='#'
27813  am__EXEEXT_FALSE=
27814fi
27815
27816if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27817  as_fn_error $? "conditional \"AMDEP\" was never defined.
27818Usually this means the macro was only invoked conditionally." "$LINENO" 5
27819fi
27820if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27821  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27822Usually this means the macro was only invoked conditionally." "$LINENO" 5
27823fi
27824
27825if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
27826  as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
27827Usually this means the macro was only invoked conditionally." "$LINENO" 5
27828fi
27829if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
27830  as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
27831Usually this means the macro was only invoked conditionally." "$LINENO" 5
27832fi
27833if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
27834  as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
27835Usually this means the macro was only invoked conditionally." "$LINENO" 5
27836fi
27837if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
27838  as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
27839Usually this means the macro was only invoked conditionally." "$LINENO" 5
27840fi
27841if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
27842  as_fn_error $? "conditional \"PTHREADS\" was never defined.
27843Usually this means the macro was only invoked conditionally." "$LINENO" 5
27844fi
27845if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
27846  as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
27847Usually this means the macro was only invoked conditionally." "$LINENO" 5
27848fi
27849if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
27850  as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
27851Usually this means the macro was only invoked conditionally." "$LINENO" 5
27852fi
27853if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
27854  as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
27855Usually this means the macro was only invoked conditionally." "$LINENO" 5
27856fi
27857if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
27858  as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
27859Usually this means the macro was only invoked conditionally." "$LINENO" 5
27860fi
27861if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
27862  as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
27863Usually this means the macro was only invoked conditionally." "$LINENO" 5
27864fi
27865if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
27866  as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
27867Usually this means the macro was only invoked conditionally." "$LINENO" 5
27868fi
27869if test -z "${BUILD_TEST_KODDATABASE_TRUE}" && test -z "${BUILD_TEST_KODDATABASE_FALSE}"; then
27870  as_fn_error $? "conditional \"BUILD_TEST_KODDATABASE\" was never defined.
27871Usually this means the macro was only invoked conditionally." "$LINENO" 5
27872fi
27873if test -z "${BUILD_TEST_KODFILE_TRUE}" && test -z "${BUILD_TEST_KODFILE_FALSE}"; then
27874  as_fn_error $? "conditional \"BUILD_TEST_KODFILE\" was never defined.
27875Usually this means the macro was only invoked conditionally." "$LINENO" 5
27876fi
27877
27878: "${CONFIG_STATUS=./config.status}"
27879ac_write_fail=0
27880ac_clean_files_save=$ac_clean_files
27881ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27883printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
27884as_write_fail=0
27885cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27886#! $SHELL
27887# Generated by $as_me.
27888# Run this file to recreate the current configuration.
27889# Compiler output produced by configure, useful for debugging
27890# configure, is in config.log if it exists.
27891
27892debug=false
27893ac_cs_recheck=false
27894ac_cs_silent=false
27895
27896SHELL=\${CONFIG_SHELL-$SHELL}
27897export SHELL
27898_ASEOF
27899cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27900## -------------------- ##
27901## M4sh Initialization. ##
27902## -------------------- ##
27903
27904# Be more Bourne compatible
27905DUALCASE=1; export DUALCASE # for MKS sh
27906as_nop=:
27907if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
27908then :
27909  emulate sh
27910  NULLCMD=:
27911  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27912  # is contrary to our usage.  Disable this feature.
27913  alias -g '${1+"$@"}'='"$@"'
27914  setopt NO_GLOB_SUBST
27915else $as_nop
27916  case `(set -o) 2>/dev/null` in #(
27917  *posix*) :
27918    set -o posix ;; #(
27919  *) :
27920     ;;
27921esac
27922fi
27923
27924
27925
27926# Reset variables that may have inherited troublesome values from
27927# the environment.
27928
27929# IFS needs to be set, to space, tab, and newline, in precisely that order.
27930# (If _AS_PATH_WALK were called with IFS unset, it would have the
27931# side effect of setting IFS to empty, thus disabling word splitting.)
27932# Quoting is to prevent editors from complaining about space-tab.
27933as_nl='
27934'
27935export as_nl
27936IFS=" ""	$as_nl"
27937
27938PS1='$ '
27939PS2='> '
27940PS4='+ '
27941
27942# Ensure predictable behavior from utilities with locale-dependent output.
27943LC_ALL=C
27944export LC_ALL
27945LANGUAGE=C
27946export LANGUAGE
27947
27948# We cannot yet rely on "unset" to work, but we need these variables
27949# to be unset--not just set to an empty or harmless value--now, to
27950# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
27951# also avoids known problems related to "unset" and subshell syntax
27952# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
27953for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
27954do eval test \${$as_var+y} \
27955  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27956done
27957
27958# Ensure that fds 0, 1, and 2 are open.
27959if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
27960if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
27961if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
27962
27963# The user is always right.
27964if ${PATH_SEPARATOR+false} :; then
27965  PATH_SEPARATOR=:
27966  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27967    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27968      PATH_SEPARATOR=';'
27969  }
27970fi
27971
27972
27973# Find who we are.  Look in the path if we contain no directory separator.
27974as_myself=
27975case $0 in #((
27976  *[\\/]* ) as_myself=$0 ;;
27977  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27978for as_dir in $PATH
27979do
27980  IFS=$as_save_IFS
27981  case $as_dir in #(((
27982    '') as_dir=./ ;;
27983    */) ;;
27984    *) as_dir=$as_dir/ ;;
27985  esac
27986    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
27987  done
27988IFS=$as_save_IFS
27989
27990     ;;
27991esac
27992# We did not find ourselves, most probably we were run as `sh COMMAND'
27993# in which case we are not to be found in the path.
27994if test "x$as_myself" = x; then
27995  as_myself=$0
27996fi
27997if test ! -f "$as_myself"; then
27998  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27999  exit 1
28000fi
28001
28002
28003
28004# as_fn_error STATUS ERROR [LINENO LOG_FD]
28005# ----------------------------------------
28006# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28007# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28008# script with STATUS, using 1 if that was 0.
28009as_fn_error ()
28010{
28011  as_status=$1; test $as_status -eq 0 && as_status=1
28012  if test "$4"; then
28013    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28014    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28015  fi
28016  printf "%s\n" "$as_me: error: $2" >&2
28017  as_fn_exit $as_status
28018} # as_fn_error
28019
28020
28021
28022# as_fn_set_status STATUS
28023# -----------------------
28024# Set $? to STATUS, without forking.
28025as_fn_set_status ()
28026{
28027  return $1
28028} # as_fn_set_status
28029
28030# as_fn_exit STATUS
28031# -----------------
28032# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28033as_fn_exit ()
28034{
28035  set +e
28036  as_fn_set_status $1
28037  exit $1
28038} # as_fn_exit
28039
28040# as_fn_unset VAR
28041# ---------------
28042# Portably unset VAR.
28043as_fn_unset ()
28044{
28045  { eval $1=; unset $1;}
28046}
28047as_unset=as_fn_unset
28048
28049# as_fn_append VAR VALUE
28050# ----------------------
28051# Append the text in VALUE to the end of the definition contained in VAR. Take
28052# advantage of any shell optimizations that allow amortized linear growth over
28053# repeated appends, instead of the typical quadratic growth present in naive
28054# implementations.
28055if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
28056then :
28057  eval 'as_fn_append ()
28058  {
28059    eval $1+=\$2
28060  }'
28061else $as_nop
28062  as_fn_append ()
28063  {
28064    eval $1=\$$1\$2
28065  }
28066fi # as_fn_append
28067
28068# as_fn_arith ARG...
28069# ------------------
28070# Perform arithmetic evaluation on the ARGs, and store the result in the
28071# global $as_val. Take advantage of shells that can avoid forks. The arguments
28072# must be portable across $(()) and expr.
28073if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
28074then :
28075  eval 'as_fn_arith ()
28076  {
28077    as_val=$(( $* ))
28078  }'
28079else $as_nop
28080  as_fn_arith ()
28081  {
28082    as_val=`expr "$@" || test $? -eq 1`
28083  }
28084fi # as_fn_arith
28085
28086
28087if expr a : '\(a\)' >/dev/null 2>&1 &&
28088   test "X`expr 00001 : '.*\(...\)'`" = X001; then
28089  as_expr=expr
28090else
28091  as_expr=false
28092fi
28093
28094if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28095  as_basename=basename
28096else
28097  as_basename=false
28098fi
28099
28100if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28101  as_dirname=dirname
28102else
28103  as_dirname=false
28104fi
28105
28106as_me=`$as_basename -- "$0" ||
28107$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28108	 X"$0" : 'X\(//\)$' \| \
28109	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28110printf "%s\n" X/"$0" |
28111    sed '/^.*\/\([^/][^/]*\)\/*$/{
28112	    s//\1/
28113	    q
28114	  }
28115	  /^X\/\(\/\/\)$/{
28116	    s//\1/
28117	    q
28118	  }
28119	  /^X\/\(\/\).*/{
28120	    s//\1/
28121	    q
28122	  }
28123	  s/.*/./; q'`
28124
28125# Avoid depending upon Character Ranges.
28126as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28127as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28128as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28129as_cr_digits='0123456789'
28130as_cr_alnum=$as_cr_Letters$as_cr_digits
28131
28132
28133# Determine whether it's possible to make 'echo' print without a newline.
28134# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
28135# for compatibility with existing Makefiles.
28136ECHO_C= ECHO_N= ECHO_T=
28137case `echo -n x` in #(((((
28138-n*)
28139  case `echo 'xy\c'` in
28140  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
28141  xy)  ECHO_C='\c';;
28142  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
28143       ECHO_T='	';;
28144  esac;;
28145*)
28146  ECHO_N='-n';;
28147esac
28148
28149# For backward compatibility with old third-party macros, we provide
28150# the shell variables $as_echo and $as_echo_n.  New code should use
28151# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
28152as_echo='printf %s\n'
28153as_echo_n='printf %s'
28154
28155rm -f conf$$ conf$$.exe conf$$.file
28156if test -d conf$$.dir; then
28157  rm -f conf$$.dir/conf$$.file
28158else
28159  rm -f conf$$.dir
28160  mkdir conf$$.dir 2>/dev/null
28161fi
28162if (echo >conf$$.file) 2>/dev/null; then
28163  if ln -s conf$$.file conf$$ 2>/dev/null; then
28164    as_ln_s='ln -s'
28165    # ... but there are two gotchas:
28166    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28167    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28168    # In both cases, we have to default to `cp -pR'.
28169    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28170      as_ln_s='cp -pR'
28171  elif ln conf$$.file conf$$ 2>/dev/null; then
28172    as_ln_s=ln
28173  else
28174    as_ln_s='cp -pR'
28175  fi
28176else
28177  as_ln_s='cp -pR'
28178fi
28179rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28180rmdir conf$$.dir 2>/dev/null
28181
28182
28183# as_fn_mkdir_p
28184# -------------
28185# Create "$as_dir" as a directory, including parents if necessary.
28186as_fn_mkdir_p ()
28187{
28188
28189  case $as_dir in #(
28190  -*) as_dir=./$as_dir;;
28191  esac
28192  test -d "$as_dir" || eval $as_mkdir_p || {
28193    as_dirs=
28194    while :; do
28195      case $as_dir in #(
28196      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28197      *) as_qdir=$as_dir;;
28198      esac
28199      as_dirs="'$as_qdir' $as_dirs"
28200      as_dir=`$as_dirname -- "$as_dir" ||
28201$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28202	 X"$as_dir" : 'X\(//\)[^/]' \| \
28203	 X"$as_dir" : 'X\(//\)$' \| \
28204	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28205printf "%s\n" X"$as_dir" |
28206    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28207	    s//\1/
28208	    q
28209	  }
28210	  /^X\(\/\/\)[^/].*/{
28211	    s//\1/
28212	    q
28213	  }
28214	  /^X\(\/\/\)$/{
28215	    s//\1/
28216	    q
28217	  }
28218	  /^X\(\/\).*/{
28219	    s//\1/
28220	    q
28221	  }
28222	  s/.*/./; q'`
28223      test -d "$as_dir" && break
28224    done
28225    test -z "$as_dirs" || eval "mkdir $as_dirs"
28226  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
28227
28228
28229} # as_fn_mkdir_p
28230if mkdir -p . 2>/dev/null; then
28231  as_mkdir_p='mkdir -p "$as_dir"'
28232else
28233  test -d ./-p && rmdir ./-p
28234  as_mkdir_p=false
28235fi
28236
28237
28238# as_fn_executable_p FILE
28239# -----------------------
28240# Test if FILE is an executable regular file.
28241as_fn_executable_p ()
28242{
28243  test -f "$1" && test -x "$1"
28244} # as_fn_executable_p
28245as_test_x='test -x'
28246as_executable_p=as_fn_executable_p
28247
28248# Sed expression to map a string onto a valid CPP name.
28249as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28250
28251# Sed expression to map a string onto a valid variable name.
28252as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28253
28254
28255exec 6>&1
28256## ----------------------------------- ##
28257## Main body of $CONFIG_STATUS script. ##
28258## ----------------------------------- ##
28259_ASEOF
28260test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28261
28262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28263# Save the log message, to keep $0 and so on meaningful, and to
28264# report actual input values of CONFIG_FILES etc. instead of their
28265# values after options handling.
28266ac_log="
28267This file was extended by sntp $as_me 4.2.8p17, which was
28268generated by GNU Autoconf 2.71.  Invocation command line was
28269
28270  CONFIG_FILES    = $CONFIG_FILES
28271  CONFIG_HEADERS  = $CONFIG_HEADERS
28272  CONFIG_LINKS    = $CONFIG_LINKS
28273  CONFIG_COMMANDS = $CONFIG_COMMANDS
28274  $ $0 $@
28275
28276on `(hostname || uname -n) 2>/dev/null | sed 1q`
28277"
28278
28279_ACEOF
28280
28281case $ac_config_files in *"
28282"*) set x $ac_config_files; shift; ac_config_files=$*;;
28283esac
28284
28285case $ac_config_headers in *"
28286"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28287esac
28288
28289
28290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28291# Files that config.status was made for.
28292config_files="$ac_config_files"
28293config_headers="$ac_config_headers"
28294config_commands="$ac_config_commands"
28295
28296_ACEOF
28297
28298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28299ac_cs_usage="\
28300\`$as_me' instantiates files and other configuration actions
28301from templates according to the current configuration.  Unless the files
28302and actions are specified as TAGs, all are instantiated by default.
28303
28304Usage: $0 [OPTION]... [TAG]...
28305
28306  -h, --help       print this help, then exit
28307  -V, --version    print version number and configuration settings, then exit
28308      --config     print configuration, then exit
28309  -q, --quiet, --silent
28310                   do not print progress messages
28311  -d, --debug      don't remove temporary files
28312      --recheck    update $as_me by reconfiguring in the same conditions
28313      --file=FILE[:TEMPLATE]
28314                   instantiate the configuration file FILE
28315      --header=FILE[:TEMPLATE]
28316                   instantiate the configuration header FILE
28317
28318Configuration files:
28319$config_files
28320
28321Configuration headers:
28322$config_headers
28323
28324Configuration commands:
28325$config_commands
28326
28327Report bugs to <https://bugs.ntp.org/>.
28328sntp home page: <https://www.ntp.org/>."
28329
28330_ACEOF
28331ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
28332ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
28333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28334ac_cs_config='$ac_cs_config_escaped'
28335ac_cs_version="\\
28336sntp config.status 4.2.8p17
28337configured by $0, generated by GNU Autoconf 2.71,
28338  with options \\"\$ac_cs_config\\"
28339
28340Copyright (C) 2021 Free Software Foundation, Inc.
28341This config.status script is free software; the Free Software Foundation
28342gives unlimited permission to copy, distribute and modify it."
28343
28344ac_pwd='$ac_pwd'
28345srcdir='$srcdir'
28346INSTALL='$INSTALL'
28347MKDIR_P='$MKDIR_P'
28348AWK='$AWK'
28349test -n "\$AWK" || AWK=awk
28350_ACEOF
28351
28352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28353# The default lists apply if the user does not specify any file.
28354ac_need_defaults=:
28355while test $# != 0
28356do
28357  case $1 in
28358  --*=?*)
28359    ac_option=`expr "X$1" : 'X\([^=]*\)='`
28360    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28361    ac_shift=:
28362    ;;
28363  --*=)
28364    ac_option=`expr "X$1" : 'X\([^=]*\)='`
28365    ac_optarg=
28366    ac_shift=:
28367    ;;
28368  *)
28369    ac_option=$1
28370    ac_optarg=$2
28371    ac_shift=shift
28372    ;;
28373  esac
28374
28375  case $ac_option in
28376  # Handling of the options.
28377  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28378    ac_cs_recheck=: ;;
28379  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28380    printf "%s\n" "$ac_cs_version"; exit ;;
28381  --config | --confi | --conf | --con | --co | --c )
28382    printf "%s\n" "$ac_cs_config"; exit ;;
28383  --debug | --debu | --deb | --de | --d | -d )
28384    debug=: ;;
28385  --file | --fil | --fi | --f )
28386    $ac_shift
28387    case $ac_optarg in
28388    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28389    '') as_fn_error $? "missing file argument" ;;
28390    esac
28391    as_fn_append CONFIG_FILES " '$ac_optarg'"
28392    ac_need_defaults=false;;
28393  --header | --heade | --head | --hea )
28394    $ac_shift
28395    case $ac_optarg in
28396    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28397    esac
28398    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28399    ac_need_defaults=false;;
28400  --he | --h)
28401    # Conflict between --help and --header
28402    as_fn_error $? "ambiguous option: \`$1'
28403Try \`$0 --help' for more information.";;
28404  --help | --hel | -h )
28405    printf "%s\n" "$ac_cs_usage"; exit ;;
28406  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28407  | -silent | --silent | --silen | --sile | --sil | --si | --s)
28408    ac_cs_silent=: ;;
28409
28410  # This is an error.
28411  -*) as_fn_error $? "unrecognized option: \`$1'
28412Try \`$0 --help' for more information." ;;
28413
28414  *) as_fn_append ac_config_targets " $1"
28415     ac_need_defaults=false ;;
28416
28417  esac
28418  shift
28419done
28420
28421ac_configure_extra_args=
28422
28423if $ac_cs_silent; then
28424  exec 6>/dev/null
28425  ac_configure_extra_args="$ac_configure_extra_args --silent"
28426fi
28427
28428_ACEOF
28429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28430if \$ac_cs_recheck; then
28431  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28432  shift
28433  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
28434  CONFIG_SHELL='$SHELL'
28435  export CONFIG_SHELL
28436  exec "\$@"
28437fi
28438
28439_ACEOF
28440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28441exec 5>>config.log
28442{
28443  echo
28444  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28445## Running $as_me. ##
28446_ASBOX
28447  printf "%s\n" "$ac_log"
28448} >&5
28449
28450_ACEOF
28451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28452#
28453# INIT-COMMANDS
28454#
28455AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
28456
28457
28458# The HP-UX ksh and POSIX shell print the target directory to stdout
28459# if CDPATH is set.
28460(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28461
28462sed_quote_subst='$sed_quote_subst'
28463double_quote_subst='$double_quote_subst'
28464delay_variable_subst='$delay_variable_subst'
28465SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
28466Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
28467GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
28468EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
28469FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
28470SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
28471ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
28472LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
28473enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
28474macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
28475macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
28476enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
28477pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
28478enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
28479shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
28480PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
28481host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
28482host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
28483host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
28484build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
28485build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
28486build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
28487NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
28488LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
28489max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
28490ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
28491exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
28492lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
28493lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
28494lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
28495lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
28496lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
28497reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
28498reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
28499OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
28500deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
28501file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
28502file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
28503want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
28504DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
28505sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
28506AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
28507AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
28508archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
28509STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
28510RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
28511old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28512old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28513old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
28514lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
28515CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
28516CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
28517compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
28518GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
28519lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
28520lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
28521lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
28522lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
28523lt_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"`'
28524lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
28525nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
28526lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
28527lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
28528objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
28529MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
28530lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
28531lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
28532lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
28533lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
28534lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
28535need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
28536MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
28537DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
28538NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
28539LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
28540OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
28541OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
28542libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
28543shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
28544extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28545archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
28546enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
28547export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
28548whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28549compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28550old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28551old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28552archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28553archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28554module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28555module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28556with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28557allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28558no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28559hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28560hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28561hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28562hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28563hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28564hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28565hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28566inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28567link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28568always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28569export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28570exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28571include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28572prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28573postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
28574file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28575variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28576need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28577need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28578version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28579runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28580shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28581shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28582libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28583library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28584soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28585install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28586postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28587postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28588finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28589finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28590hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28591sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28592configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
28593configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
28594hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28595enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28596enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28597enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28598old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28599striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28600
28601LTCC='$LTCC'
28602LTCFLAGS='$LTCFLAGS'
28603compiler='$compiler_DEFAULT'
28604
28605# A function that is used when there is no print builtin or printf.
28606func_fallback_echo ()
28607{
28608  eval 'cat <<_LTECHO_EOF
28609\$1
28610_LTECHO_EOF'
28611}
28612
28613# Quote evaled strings.
28614for var in SED \
28615GREP \
28616EGREP \
28617FGREP \
28618SHELL \
28619ECHO \
28620LD \
28621PATH_SEPARATOR \
28622NM \
28623LN_S \
28624lt_SP2NL \
28625lt_NL2SP \
28626reload_flag \
28627OBJDUMP \
28628deplibs_check_method \
28629file_magic_cmd \
28630file_magic_glob \
28631want_nocaseglob \
28632DLLTOOL \
28633sharedlib_from_linklib_cmd \
28634AR \
28635AR_FLAGS \
28636archiver_list_spec \
28637STRIP \
28638RANLIB \
28639CC \
28640CFLAGS \
28641compiler \
28642lt_cv_sys_global_symbol_pipe \
28643lt_cv_sys_global_symbol_to_cdecl \
28644lt_cv_sys_global_symbol_to_import \
28645lt_cv_sys_global_symbol_to_c_name_address \
28646lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28647lt_cv_nm_interface \
28648nm_file_list_spec \
28649lt_cv_truncate_bin \
28650lt_prog_compiler_no_builtin_flag \
28651lt_prog_compiler_pic \
28652lt_prog_compiler_wl \
28653lt_prog_compiler_static \
28654lt_cv_prog_compiler_c_o \
28655need_locks \
28656MANIFEST_TOOL \
28657DSYMUTIL \
28658NMEDIT \
28659LIPO \
28660OTOOL \
28661OTOOL64 \
28662shrext_cmds \
28663export_dynamic_flag_spec \
28664whole_archive_flag_spec \
28665compiler_needs_object \
28666with_gnu_ld \
28667allow_undefined_flag \
28668no_undefined_flag \
28669hardcode_libdir_flag_spec \
28670hardcode_libdir_separator \
28671exclude_expsyms \
28672include_expsyms \
28673file_list_spec \
28674variables_saved_for_relink \
28675libname_spec \
28676library_names_spec \
28677soname_spec \
28678install_override_mode \
28679finish_eval \
28680old_striplib \
28681striplib; do
28682    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28683    *[\\\\\\\`\\"\\\$]*)
28684      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28685      ;;
28686    *)
28687      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28688      ;;
28689    esac
28690done
28691
28692# Double-quote double-evaled strings.
28693for var in reload_cmds \
28694old_postinstall_cmds \
28695old_postuninstall_cmds \
28696old_archive_cmds \
28697extract_expsyms_cmds \
28698old_archive_from_new_cmds \
28699old_archive_from_expsyms_cmds \
28700archive_cmds \
28701archive_expsym_cmds \
28702module_cmds \
28703module_expsym_cmds \
28704export_symbols_cmds \
28705prelink_cmds \
28706postlink_cmds \
28707postinstall_cmds \
28708postuninstall_cmds \
28709finish_cmds \
28710sys_lib_search_path_spec \
28711configure_time_dlsearch_path \
28712configure_time_lt_sys_library_path; do
28713    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28714    *[\\\\\\\`\\"\\\$]*)
28715      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28716      ;;
28717    *)
28718      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28719      ;;
28720    esac
28721done
28722
28723ac_aux_dir='$ac_aux_dir'
28724
28725# See if we are running on zsh, and set the options that allow our
28726# commands through without removal of \ escapes INIT.
28727if test -n "\${ZSH_VERSION+set}"; then
28728   setopt NO_GLOB_SUBST
28729fi
28730
28731
28732    PACKAGE='$PACKAGE'
28733    VERSION='$VERSION'
28734    RM='$RM'
28735    ofile='$ofile'
28736
28737
28738
28739
28740_ACEOF
28741
28742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28743
28744# Handling of arguments.
28745for ac_config_target in $ac_config_targets
28746do
28747  case $ac_config_target in
28748    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28749    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28750    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28751    "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
28752    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28753    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
28754    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
28755    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
28756    "tests/fileHandlingTest.h") CONFIG_FILES="$CONFIG_FILES tests/fileHandlingTest.h" ;;
28757    "unity/Makefile") CONFIG_FILES="$CONFIG_FILES unity/Makefile" ;;
28758
28759  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28760  esac
28761done
28762
28763
28764# If the user did not use the arguments to specify the items to instantiate,
28765# then the envvar interface is used.  Set only those that are not.
28766# We use the long form for the default assignment because of an extremely
28767# bizarre bug on SunOS 4.1.3.
28768if $ac_need_defaults; then
28769  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
28770  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
28771  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
28772fi
28773
28774# Have a temporary directory for convenience.  Make it in the build tree
28775# simply because there is no reason against having it here, and in addition,
28776# creating and moving files from /tmp can sometimes cause problems.
28777# Hook for its removal unless debugging.
28778# Note that there is a small window in which the directory will not be cleaned:
28779# after its creation but before its name has been assigned to `$tmp'.
28780$debug ||
28781{
28782  tmp= ac_tmp=
28783  trap 'exit_status=$?
28784  : "${ac_tmp:=$tmp}"
28785  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28786' 0
28787  trap 'as_fn_exit 1' 1 2 13 15
28788}
28789# Create a (secure) tmp directory for tmp files.
28790
28791{
28792  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28793  test -d "$tmp"
28794}  ||
28795{
28796  tmp=./conf$$-$RANDOM
28797  (umask 077 && mkdir "$tmp")
28798} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28799ac_tmp=$tmp
28800
28801# Set up the scripts for CONFIG_FILES section.
28802# No need to generate them if there are no CONFIG_FILES.
28803# This happens for instance with `./config.status config.h'.
28804if test -n "$CONFIG_FILES"; then
28805
28806
28807ac_cr=`echo X | tr X '\015'`
28808# On cygwin, bash can eat \r inside `` if the user requested igncr.
28809# But we know of no other shell where ac_cr would be empty at this
28810# point, so we can use a bashism as a fallback.
28811if test "x$ac_cr" = x; then
28812  eval ac_cr=\$\'\\r\'
28813fi
28814ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28815if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28816  ac_cs_awk_cr='\\r'
28817else
28818  ac_cs_awk_cr=$ac_cr
28819fi
28820
28821echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28822_ACEOF
28823
28824
28825{
28826  echo "cat >conf$$subs.awk <<_ACEOF" &&
28827  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28828  echo "_ACEOF"
28829} >conf$$subs.sh ||
28830  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28831ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28832ac_delim='%!_!# '
28833for ac_last_try in false false false false false :; do
28834  . ./conf$$subs.sh ||
28835    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28836
28837  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28838  if test $ac_delim_n = $ac_delim_num; then
28839    break
28840  elif $ac_last_try; then
28841    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28842  else
28843    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28844  fi
28845done
28846rm -f conf$$subs.sh
28847
28848cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28849cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28850_ACEOF
28851sed -n '
28852h
28853s/^/S["/; s/!.*/"]=/
28854p
28855g
28856s/^[^!]*!//
28857:repl
28858t repl
28859s/'"$ac_delim"'$//
28860t delim
28861:nl
28862h
28863s/\(.\{148\}\)..*/\1/
28864t more1
28865s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28866p
28867n
28868b repl
28869:more1
28870s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28871p
28872g
28873s/.\{148\}//
28874t nl
28875:delim
28876h
28877s/\(.\{148\}\)..*/\1/
28878t more2
28879s/["\\]/\\&/g; s/^/"/; s/$/"/
28880p
28881b
28882:more2
28883s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28884p
28885g
28886s/.\{148\}//
28887t delim
28888' <conf$$subs.awk | sed '
28889/^[^""]/{
28890  N
28891  s/\n//
28892}
28893' >>$CONFIG_STATUS || ac_write_fail=1
28894rm -f conf$$subs.awk
28895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28896_ACAWK
28897cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28898  for (key in S) S_is_set[key] = 1
28899  FS = ""
28900
28901}
28902{
28903  line = $ 0
28904  nfields = split(line, field, "@")
28905  substed = 0
28906  len = length(field[1])
28907  for (i = 2; i < nfields; i++) {
28908    key = field[i]
28909    keylen = length(key)
28910    if (S_is_set[key]) {
28911      value = S[key]
28912      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28913      len += length(value) + length(field[++i])
28914      substed = 1
28915    } else
28916      len += 1 + keylen
28917  }
28918
28919  print line
28920}
28921
28922_ACAWK
28923_ACEOF
28924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28925if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28926  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28927else
28928  cat
28929fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28930  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28931_ACEOF
28932
28933# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28934# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28935# trailing colons and then remove the whole line if VPATH becomes empty
28936# (actually we leave an empty line to preserve line numbers).
28937if test "x$srcdir" = x.; then
28938  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
28939h
28940s///
28941s/^/:/
28942s/[	 ]*$/:/
28943s/:\$(srcdir):/:/g
28944s/:\${srcdir}:/:/g
28945s/:@srcdir@:/:/g
28946s/^:*//
28947s/:*$//
28948x
28949s/\(=[	 ]*\).*/\1/
28950G
28951s/\n//
28952s/^[^=]*=[	 ]*$//
28953}'
28954fi
28955
28956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28957fi # test -n "$CONFIG_FILES"
28958
28959# Set up the scripts for CONFIG_HEADERS section.
28960# No need to generate them if there are no CONFIG_HEADERS.
28961# This happens for instance with `./config.status Makefile'.
28962if test -n "$CONFIG_HEADERS"; then
28963cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28964BEGIN {
28965_ACEOF
28966
28967# Transform confdefs.h into an awk script `defines.awk', embedded as
28968# here-document in config.status, that substitutes the proper values into
28969# config.h.in to produce config.h.
28970
28971# Create a delimiter string that does not exist in confdefs.h, to ease
28972# handling of long lines.
28973ac_delim='%!_!# '
28974for ac_last_try in false false :; do
28975  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28976  if test -z "$ac_tt"; then
28977    break
28978  elif $ac_last_try; then
28979    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28980  else
28981    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28982  fi
28983done
28984
28985# For the awk script, D is an array of macro values keyed by name,
28986# likewise P contains macro parameters if any.  Preserve backslash
28987# newline sequences.
28988
28989ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28990sed -n '
28991s/.\{148\}/&'"$ac_delim"'/g
28992t rset
28993:rset
28994s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
28995t def
28996d
28997:def
28998s/\\$//
28999t bsnl
29000s/["\\]/\\&/g
29001s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29002D["\1"]=" \3"/p
29003s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
29004d
29005:bsnl
29006s/["\\]/\\&/g
29007s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29008D["\1"]=" \3\\\\\\n"\\/p
29009t cont
29010s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29011t cont
29012d
29013:cont
29014n
29015s/.\{148\}/&'"$ac_delim"'/g
29016t clear
29017:clear
29018s/\\$//
29019t bsnlc
29020s/["\\]/\\&/g; s/^/"/; s/$/"/p
29021d
29022:bsnlc
29023s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29024b cont
29025' <confdefs.h | sed '
29026s/'"$ac_delim"'/"\\\
29027"/g' >>$CONFIG_STATUS || ac_write_fail=1
29028
29029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29030  for (key in D) D_is_set[key] = 1
29031  FS = ""
29032}
29033/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29034  line = \$ 0
29035  split(line, arg, " ")
29036  if (arg[1] == "#") {
29037    defundef = arg[2]
29038    mac1 = arg[3]
29039  } else {
29040    defundef = substr(arg[1], 2)
29041    mac1 = arg[2]
29042  }
29043  split(mac1, mac2, "(") #)
29044  macro = mac2[1]
29045  prefix = substr(line, 1, index(line, defundef) - 1)
29046  if (D_is_set[macro]) {
29047    # Preserve the white space surrounding the "#".
29048    print prefix "define", macro P[macro] D[macro]
29049    next
29050  } else {
29051    # Replace #undef with comments.  This is necessary, for example,
29052    # in the case of _POSIX_SOURCE, which is predefined and required
29053    # on some systems where configure will not decide to define it.
29054    if (defundef == "undef") {
29055      print "/*", prefix defundef, macro, "*/"
29056      next
29057    }
29058  }
29059}
29060{ print }
29061_ACAWK
29062_ACEOF
29063cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29064  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29065fi # test -n "$CONFIG_HEADERS"
29066
29067
29068eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
29069shift
29070for ac_tag
29071do
29072  case $ac_tag in
29073  :[FHLC]) ac_mode=$ac_tag; continue;;
29074  esac
29075  case $ac_mode$ac_tag in
29076  :[FHL]*:*);;
29077  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29078  :[FH]-) ac_tag=-:-;;
29079  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29080  esac
29081  ac_save_IFS=$IFS
29082  IFS=:
29083  set x $ac_tag
29084  IFS=$ac_save_IFS
29085  shift
29086  ac_file=$1
29087  shift
29088
29089  case $ac_mode in
29090  :L) ac_source=$1;;
29091  :[FH])
29092    ac_file_inputs=
29093    for ac_f
29094    do
29095      case $ac_f in
29096      -) ac_f="$ac_tmp/stdin";;
29097      *) # Look for the file first in the build tree, then in the source tree
29098	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
29099	 # because $ac_f cannot contain `:'.
29100	 test -f "$ac_f" ||
29101	   case $ac_f in
29102	   [\\/$]*) false;;
29103	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29104	   esac ||
29105	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29106      esac
29107      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29108      as_fn_append ac_file_inputs " '$ac_f'"
29109    done
29110
29111    # Let's still pretend it is `configure' which instantiates (i.e., don't
29112    # use $as_me), people would be surprised to read:
29113    #    /* config.h.  Generated by config.status.  */
29114    configure_input='Generated from '`
29115	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29116	`' by configure.'
29117    if test x"$ac_file" != x-; then
29118      configure_input="$ac_file.  $configure_input"
29119      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29120printf "%s\n" "$as_me: creating $ac_file" >&6;}
29121    fi
29122    # Neutralize special characters interpreted by sed in replacement strings.
29123    case $configure_input in #(
29124    *\&* | *\|* | *\\* )
29125       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
29126       sed 's/[\\\\&|]/\\\\&/g'`;; #(
29127    *) ac_sed_conf_input=$configure_input;;
29128    esac
29129
29130    case $ac_tag in
29131    *:-:* | *:-) cat >"$ac_tmp/stdin" \
29132      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29133    esac
29134    ;;
29135  esac
29136
29137  ac_dir=`$as_dirname -- "$ac_file" ||
29138$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29139	 X"$ac_file" : 'X\(//\)[^/]' \| \
29140	 X"$ac_file" : 'X\(//\)$' \| \
29141	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29142printf "%s\n" X"$ac_file" |
29143    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29144	    s//\1/
29145	    q
29146	  }
29147	  /^X\(\/\/\)[^/].*/{
29148	    s//\1/
29149	    q
29150	  }
29151	  /^X\(\/\/\)$/{
29152	    s//\1/
29153	    q
29154	  }
29155	  /^X\(\/\).*/{
29156	    s//\1/
29157	    q
29158	  }
29159	  s/.*/./; q'`
29160  as_dir="$ac_dir"; as_fn_mkdir_p
29161  ac_builddir=.
29162
29163case "$ac_dir" in
29164.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29165*)
29166  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
29167  # A ".." for each directory in $ac_dir_suffix.
29168  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29169  case $ac_top_builddir_sub in
29170  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29171  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29172  esac ;;
29173esac
29174ac_abs_top_builddir=$ac_pwd
29175ac_abs_builddir=$ac_pwd$ac_dir_suffix
29176# for backward compatibility:
29177ac_top_builddir=$ac_top_build_prefix
29178
29179case $srcdir in
29180  .)  # We are building in place.
29181    ac_srcdir=.
29182    ac_top_srcdir=$ac_top_builddir_sub
29183    ac_abs_top_srcdir=$ac_pwd ;;
29184  [\\/]* | ?:[\\/]* )  # Absolute name.
29185    ac_srcdir=$srcdir$ac_dir_suffix;
29186    ac_top_srcdir=$srcdir
29187    ac_abs_top_srcdir=$srcdir ;;
29188  *) # Relative name.
29189    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29190    ac_top_srcdir=$ac_top_build_prefix$srcdir
29191    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29192esac
29193ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29194
29195
29196  case $ac_mode in
29197  :F)
29198  #
29199  # CONFIG_FILE
29200  #
29201
29202  case $INSTALL in
29203  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29204  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29205  esac
29206  ac_MKDIR_P=$MKDIR_P
29207  case $MKDIR_P in
29208  [\\/$]* | ?:[\\/]* ) ;;
29209  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29210  esac
29211_ACEOF
29212
29213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29214# If the template does not know about datarootdir, expand it.
29215# FIXME: This hack should be removed a few years after 2.60.
29216ac_datarootdir_hack=; ac_datarootdir_seen=
29217ac_sed_dataroot='
29218/datarootdir/ {
29219  p
29220  q
29221}
29222/@datadir@/p
29223/@docdir@/p
29224/@infodir@/p
29225/@localedir@/p
29226/@mandir@/p'
29227case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29228*datarootdir*) ac_datarootdir_seen=yes;;
29229*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29231printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29232_ACEOF
29233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29234  ac_datarootdir_hack='
29235  s&@datadir@&$datadir&g
29236  s&@docdir@&$docdir&g
29237  s&@infodir@&$infodir&g
29238  s&@localedir@&$localedir&g
29239  s&@mandir@&$mandir&g
29240  s&\\\${datarootdir}&$datarootdir&g' ;;
29241esac
29242_ACEOF
29243
29244# Neutralize VPATH when `$srcdir' = `.'.
29245# Shell code in configure.ac might set extrasub.
29246# FIXME: do we really want to maintain this feature?
29247cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29248ac_sed_extra="$ac_vpsub
29249$extrasub
29250_ACEOF
29251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29252:t
29253/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29254s|@configure_input@|$ac_sed_conf_input|;t t
29255s&@top_builddir@&$ac_top_builddir_sub&;t t
29256s&@top_build_prefix@&$ac_top_build_prefix&;t t
29257s&@srcdir@&$ac_srcdir&;t t
29258s&@abs_srcdir@&$ac_abs_srcdir&;t t
29259s&@top_srcdir@&$ac_top_srcdir&;t t
29260s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29261s&@builddir@&$ac_builddir&;t t
29262s&@abs_builddir@&$ac_abs_builddir&;t t
29263s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29264s&@INSTALL@&$ac_INSTALL&;t t
29265s&@MKDIR_P@&$ac_MKDIR_P&;t t
29266$ac_datarootdir_hack
29267"
29268eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29269  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29270
29271test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29272  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29273  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
29274      "$ac_tmp/out"`; test -z "$ac_out"; } &&
29275  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29276which seems to be undefined.  Please make sure it is defined" >&5
29277printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29278which seems to be undefined.  Please make sure it is defined" >&2;}
29279
29280  rm -f "$ac_tmp/stdin"
29281  case $ac_file in
29282  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29283  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
29284  esac \
29285  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29286 ;;
29287  :H)
29288  #
29289  # CONFIG_HEADER
29290  #
29291  if test x"$ac_file" != x-; then
29292    {
29293      printf "%s\n" "/* $configure_input  */" >&1 \
29294      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29295    } >"$ac_tmp/config.h" \
29296      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29297    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
29298      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29299printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
29300    else
29301      rm -f "$ac_file"
29302      mv "$ac_tmp/config.h" "$ac_file" \
29303	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
29304    fi
29305  else
29306    printf "%s\n" "/* $configure_input  */" >&1 \
29307      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
29308      || as_fn_error $? "could not create -" "$LINENO" 5
29309  fi
29310# Compute "$ac_file"'s index in $config_headers.
29311_am_arg="$ac_file"
29312_am_stamp_count=1
29313for _am_header in $config_headers :; do
29314  case $_am_header in
29315    $_am_arg | $_am_arg:* )
29316      break ;;
29317    * )
29318      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29319  esac
29320done
29321echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29322$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29323	 X"$_am_arg" : 'X\(//\)[^/]' \| \
29324	 X"$_am_arg" : 'X\(//\)$' \| \
29325	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29326printf "%s\n" X"$_am_arg" |
29327    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29328	    s//\1/
29329	    q
29330	  }
29331	  /^X\(\/\/\)[^/].*/{
29332	    s//\1/
29333	    q
29334	  }
29335	  /^X\(\/\/\)$/{
29336	    s//\1/
29337	    q
29338	  }
29339	  /^X\(\/\).*/{
29340	    s//\1/
29341	    q
29342	  }
29343	  s/.*/./; q'`/stamp-h$_am_stamp_count
29344 ;;
29345
29346  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29347printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
29348 ;;
29349  esac
29350
29351
29352  case $ac_file$ac_mode in
29353    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29354  # Older Autoconf quotes --file arguments for eval, but not when files
29355  # are listed without --file.  Let's play safe and only enable the eval
29356  # if we detect the quoting.
29357  # TODO: see whether this extra hack can be removed once we start
29358  # requiring Autoconf 2.70 or later.
29359  case $CONFIG_FILES in #(
29360  *\'*) :
29361    eval set x "$CONFIG_FILES" ;; #(
29362  *) :
29363    set x $CONFIG_FILES ;; #(
29364  *) :
29365     ;;
29366esac
29367  shift
29368  # Used to flag and report bootstrapping failures.
29369  am_rc=0
29370  for am_mf
29371  do
29372    # Strip MF so we end up with the name of the file.
29373    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
29374    # Check whether this is an Automake generated Makefile which includes
29375    # dependency-tracking related rules and includes.
29376    # Grep'ing the whole file directly is not great: AIX grep has a line
29377    # limit of 2048, but all sed's we know have understand at least 4000.
29378    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
29379      || continue
29380    am_dirpart=`$as_dirname -- "$am_mf" ||
29381$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29382	 X"$am_mf" : 'X\(//\)[^/]' \| \
29383	 X"$am_mf" : 'X\(//\)$' \| \
29384	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
29385printf "%s\n" X"$am_mf" |
29386    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29387	    s//\1/
29388	    q
29389	  }
29390	  /^X\(\/\/\)[^/].*/{
29391	    s//\1/
29392	    q
29393	  }
29394	  /^X\(\/\/\)$/{
29395	    s//\1/
29396	    q
29397	  }
29398	  /^X\(\/\).*/{
29399	    s//\1/
29400	    q
29401	  }
29402	  s/.*/./; q'`
29403    am_filepart=`$as_basename -- "$am_mf" ||
29404$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
29405	 X"$am_mf" : 'X\(//\)$' \| \
29406	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
29407printf "%s\n" X/"$am_mf" |
29408    sed '/^.*\/\([^/][^/]*\)\/*$/{
29409	    s//\1/
29410	    q
29411	  }
29412	  /^X\/\(\/\/\)$/{
29413	    s//\1/
29414	    q
29415	  }
29416	  /^X\/\(\/\).*/{
29417	    s//\1/
29418	    q
29419	  }
29420	  s/.*/./; q'`
29421    { echo "$as_me:$LINENO: cd "$am_dirpart" \
29422      && sed -e '/# am--include-marker/d' "$am_filepart" \
29423        | $MAKE -f - am--depfiles" >&5
29424   (cd "$am_dirpart" \
29425      && sed -e '/# am--include-marker/d' "$am_filepart" \
29426        | $MAKE -f - am--depfiles) >&5 2>&5
29427   ac_status=$?
29428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429   (exit $ac_status); } || am_rc=$?
29430  done
29431  if test $am_rc -ne 0; then
29432    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29433printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
29434as_fn_error $? "Something went wrong bootstrapping makefile fragments
29435    for automatic dependency tracking.  If GNU make was not used, consider
29436    re-running the configure script with MAKE=\"gmake\" (or whatever is
29437    necessary).  You can also try re-running configure with the
29438    '--disable-dependency-tracking' option to at least be able to build
29439    the package (albeit without support for automatic dependency tracking).
29440See \`config.log' for more details" "$LINENO" 5; }
29441  fi
29442  { am_dirpart=; unset am_dirpart;}
29443  { am_filepart=; unset am_filepart;}
29444  { am_mf=; unset am_mf;}
29445  { am_rc=; unset am_rc;}
29446  rm -f conftest-deps.mk
29447}
29448 ;;
29449    "libtool":C)
29450
29451    # See if we are running on zsh, and set the options that allow our
29452    # commands through without removal of \ escapes.
29453    if test -n "${ZSH_VERSION+set}"; then
29454      setopt NO_GLOB_SUBST
29455    fi
29456
29457    cfgfile=${ofile}T
29458    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29459    $RM "$cfgfile"
29460
29461    cat <<_LT_EOF >> "$cfgfile"
29462#! $SHELL
29463# Generated automatically by $as_me ($PACKAGE) $VERSION
29464# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29465# NOTE: Changes made to this file will be lost: look at ltmain.sh.
29466
29467# Provide generalized library-building support services.
29468# Written by Gordon Matzigkeit, 1996
29469
29470# Copyright (C) 2014 Free Software Foundation, Inc.
29471# This is free software; see the source for copying conditions.  There is NO
29472# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
29473
29474# GNU Libtool is free software; you can redistribute it and/or modify
29475# it under the terms of the GNU General Public License as published by
29476# the Free Software Foundation; either version 2 of of the License, or
29477# (at your option) any later version.
29478#
29479# As a special exception to the GNU General Public License, if you
29480# distribute this file as part of a program or library that is built
29481# using GNU Libtool, you may include this file under the  same
29482# distribution terms that you use for the rest of that program.
29483#
29484# GNU Libtool is distributed in the hope that it will be useful, but
29485# WITHOUT ANY WARRANTY; without even the implied warranty of
29486# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29487# GNU General Public License for more details.
29488#
29489# You should have received a copy of the GNU General Public License
29490# along with this program.  If not, see <http://www.gnu.org/licenses/>.
29491
29492
29493# The names of the tagged configurations supported by this script.
29494available_tags=''
29495
29496# Configured defaults for sys_lib_dlsearch_path munging.
29497: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
29498
29499# ### BEGIN LIBTOOL CONFIG
29500
29501# A sed program that does not truncate output.
29502SED=$lt_SED
29503
29504# Sed that helps us avoid accidentally triggering echo(1) options like -n.
29505Xsed="\$SED -e 1s/^X//"
29506
29507# A grep program that handles long lines.
29508GREP=$lt_GREP
29509
29510# An ERE matcher.
29511EGREP=$lt_EGREP
29512
29513# A literal string matcher.
29514FGREP=$lt_FGREP
29515
29516# Shell to use when invoking shell scripts.
29517SHELL=$lt_SHELL
29518
29519# An echo program that protects backslashes.
29520ECHO=$lt_ECHO
29521
29522# Whether or not to build shared libraries.
29523build_libtool_libs=$enable_shared
29524
29525# Which release of libtool.m4 was used?
29526macro_version=$macro_version
29527macro_revision=$macro_revision
29528
29529# Whether or not to build static libraries.
29530build_old_libs=$enable_static
29531
29532# What type of objects to build.
29533pic_mode=$pic_mode
29534
29535# Whether or not to optimize for fast installation.
29536fast_install=$enable_fast_install
29537
29538# Shared archive member basename,for filename based shared library versioning on AIX.
29539shared_archive_member_spec=$shared_archive_member_spec
29540
29541# The PATH separator for the build system.
29542PATH_SEPARATOR=$lt_PATH_SEPARATOR
29543
29544# The host system.
29545host_alias=$host_alias
29546host=$host
29547host_os=$host_os
29548
29549# The build system.
29550build_alias=$build_alias
29551build=$build
29552build_os=$build_os
29553
29554# A BSD- or MS-compatible name lister.
29555NM=$lt_NM
29556
29557# Whether we need soft or hard links.
29558LN_S=$lt_LN_S
29559
29560# What is the maximum length of a command?
29561max_cmd_len=$max_cmd_len
29562
29563# Object file suffix (normally "o").
29564objext=$ac_objext
29565
29566# Executable file suffix (normally "").
29567exeext=$exeext
29568
29569# whether the shell understands "unset".
29570lt_unset=$lt_unset
29571
29572# turn spaces into newlines.
29573SP2NL=$lt_lt_SP2NL
29574
29575# turn newlines into spaces.
29576NL2SP=$lt_lt_NL2SP
29577
29578# convert \$build file names to \$host format.
29579to_host_file_cmd=$lt_cv_to_host_file_cmd
29580
29581# convert \$build files to toolchain format.
29582to_tool_file_cmd=$lt_cv_to_tool_file_cmd
29583
29584# An object symbol dumper.
29585OBJDUMP=$lt_OBJDUMP
29586
29587# Method to check whether dependent libraries are shared objects.
29588deplibs_check_method=$lt_deplibs_check_method
29589
29590# Command to use when deplibs_check_method = "file_magic".
29591file_magic_cmd=$lt_file_magic_cmd
29592
29593# How to find potential files when deplibs_check_method = "file_magic".
29594file_magic_glob=$lt_file_magic_glob
29595
29596# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
29597want_nocaseglob=$lt_want_nocaseglob
29598
29599# DLL creation program.
29600DLLTOOL=$lt_DLLTOOL
29601
29602# Command to associate shared and link libraries.
29603sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
29604
29605# The archiver.
29606AR=$lt_AR
29607
29608# Flags to create an archive.
29609AR_FLAGS=$lt_AR_FLAGS
29610
29611# How to feed a file listing to the archiver.
29612archiver_list_spec=$lt_archiver_list_spec
29613
29614# A symbol stripping program.
29615STRIP=$lt_STRIP
29616
29617# Commands used to install an old-style archive.
29618RANLIB=$lt_RANLIB
29619old_postinstall_cmds=$lt_old_postinstall_cmds
29620old_postuninstall_cmds=$lt_old_postuninstall_cmds
29621
29622# Whether to use a lock for old archive extraction.
29623lock_old_archive_extraction=$lock_old_archive_extraction
29624
29625# A C compiler.
29626LTCC=$lt_CC
29627
29628# LTCC compiler flags.
29629LTCFLAGS=$lt_CFLAGS
29630
29631# Take the output of nm and produce a listing of raw symbols and C names.
29632global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29633
29634# Transform the output of nm in a proper C declaration.
29635global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29636
29637# Transform the output of nm into a list of symbols to manually relocate.
29638global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
29639
29640# Transform the output of nm in a C name address pair.
29641global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29642
29643# Transform the output of nm in a C name address pair when lib prefix is needed.
29644global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29645
29646# The name lister interface.
29647nm_interface=$lt_lt_cv_nm_interface
29648
29649# Specify filename containing input files for \$NM.
29650nm_file_list_spec=$lt_nm_file_list_spec
29651
29652# The root where to search for dependent libraries,and where our libraries should be installed.
29653lt_sysroot=$lt_sysroot
29654
29655# Command to truncate a binary pipe.
29656lt_truncate_bin=$lt_lt_cv_truncate_bin
29657
29658# The name of the directory that contains temporary libtool files.
29659objdir=$objdir
29660
29661# Used to examine libraries when file_magic_cmd begins with "file".
29662MAGIC_CMD=$MAGIC_CMD
29663
29664# Must we lock files when doing compilation?
29665need_locks=$lt_need_locks
29666
29667# Manifest tool.
29668MANIFEST_TOOL=$lt_MANIFEST_TOOL
29669
29670# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29671DSYMUTIL=$lt_DSYMUTIL
29672
29673# Tool to change global to local symbols on Mac OS X.
29674NMEDIT=$lt_NMEDIT
29675
29676# Tool to manipulate fat objects and archives on Mac OS X.
29677LIPO=$lt_LIPO
29678
29679# ldd/readelf like tool for Mach-O binaries on Mac OS X.
29680OTOOL=$lt_OTOOL
29681
29682# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29683OTOOL64=$lt_OTOOL64
29684
29685# Old archive suffix (normally "a").
29686libext=$libext
29687
29688# Shared library suffix (normally ".so").
29689shrext_cmds=$lt_shrext_cmds
29690
29691# The commands to extract the exported symbol list from a shared archive.
29692extract_expsyms_cmds=$lt_extract_expsyms_cmds
29693
29694# Variables whose values should be saved in libtool wrapper scripts and
29695# restored at link time.
29696variables_saved_for_relink=$lt_variables_saved_for_relink
29697
29698# Do we need the "lib" prefix for modules?
29699need_lib_prefix=$need_lib_prefix
29700
29701# Do we need a version for libraries?
29702need_version=$need_version
29703
29704# Library versioning type.
29705version_type=$version_type
29706
29707# Shared library runtime path variable.
29708runpath_var=$runpath_var
29709
29710# Shared library path variable.
29711shlibpath_var=$shlibpath_var
29712
29713# Is shlibpath searched before the hard-coded library search path?
29714shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29715
29716# Format of library name prefix.
29717libname_spec=$lt_libname_spec
29718
29719# List of archive names.  First name is the real one, the rest are links.
29720# The last name is the one that the linker finds with -lNAME
29721library_names_spec=$lt_library_names_spec
29722
29723# The coded name of the library, if different from the real name.
29724soname_spec=$lt_soname_spec
29725
29726# Permission mode override for installation of shared libraries.
29727install_override_mode=$lt_install_override_mode
29728
29729# Command to use after installation of a shared archive.
29730postinstall_cmds=$lt_postinstall_cmds
29731
29732# Command to use after uninstallation of a shared archive.
29733postuninstall_cmds=$lt_postuninstall_cmds
29734
29735# Commands used to finish a libtool library installation in a directory.
29736finish_cmds=$lt_finish_cmds
29737
29738# As "finish_cmds", except a single script fragment to be evaled but
29739# not shown.
29740finish_eval=$lt_finish_eval
29741
29742# Whether we should hardcode library paths into libraries.
29743hardcode_into_libs=$hardcode_into_libs
29744
29745# Compile-time system search path for libraries.
29746sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29747
29748# Detected run-time system search path for libraries.
29749sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
29750
29751# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
29752configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
29753
29754# Whether dlopen is supported.
29755dlopen_support=$enable_dlopen
29756
29757# Whether dlopen of programs is supported.
29758dlopen_self=$enable_dlopen_self
29759
29760# Whether dlopen of statically linked programs is supported.
29761dlopen_self_static=$enable_dlopen_self_static
29762
29763# Commands to strip libraries.
29764old_striplib=$lt_old_striplib
29765striplib=$lt_striplib
29766
29767
29768# The linker used to build libraries.
29769LD=$lt_LD
29770
29771# How to create reloadable object files.
29772reload_flag=$lt_reload_flag
29773reload_cmds=$lt_reload_cmds
29774
29775# Commands used to build an old-style archive.
29776old_archive_cmds=$lt_old_archive_cmds
29777
29778# A language specific compiler.
29779CC=$lt_compiler
29780
29781# Is the compiler the GNU compiler?
29782with_gcc=$GCC
29783
29784# Compiler flag to turn off builtin functions.
29785no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29786
29787# Additional compiler flags for building library objects.
29788pic_flag=$lt_lt_prog_compiler_pic
29789
29790# How to pass a linker flag through the compiler.
29791wl=$lt_lt_prog_compiler_wl
29792
29793# Compiler flag to prevent dynamic linking.
29794link_static_flag=$lt_lt_prog_compiler_static
29795
29796# Does compiler simultaneously support -c and -o options?
29797compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29798
29799# Whether or not to add -lc for building shared libraries.
29800build_libtool_need_lc=$archive_cmds_need_lc
29801
29802# Whether or not to disallow shared libs when runtime libs are static.
29803allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29804
29805# Compiler flag to allow reflexive dlopens.
29806export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29807
29808# Compiler flag to generate shared objects directly from archives.
29809whole_archive_flag_spec=$lt_whole_archive_flag_spec
29810
29811# Whether the compiler copes with passing no objects directly.
29812compiler_needs_object=$lt_compiler_needs_object
29813
29814# Create an old-style archive from a shared archive.
29815old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29816
29817# Create a temporary old-style archive to link instead of a shared archive.
29818old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29819
29820# Commands used to build a shared archive.
29821archive_cmds=$lt_archive_cmds
29822archive_expsym_cmds=$lt_archive_expsym_cmds
29823
29824# Commands used to build a loadable module if different from building
29825# a shared archive.
29826module_cmds=$lt_module_cmds
29827module_expsym_cmds=$lt_module_expsym_cmds
29828
29829# Whether we are building with GNU ld or not.
29830with_gnu_ld=$lt_with_gnu_ld
29831
29832# Flag that allows shared libraries with undefined symbols to be built.
29833allow_undefined_flag=$lt_allow_undefined_flag
29834
29835# Flag that enforces no undefined symbols.
29836no_undefined_flag=$lt_no_undefined_flag
29837
29838# Flag to hardcode \$libdir into a binary during linking.
29839# This must work even if \$libdir does not exist
29840hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29841
29842# Whether we need a single "-rpath" flag with a separated argument.
29843hardcode_libdir_separator=$lt_hardcode_libdir_separator
29844
29845# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29846# DIR into the resulting binary.
29847hardcode_direct=$hardcode_direct
29848
29849# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29850# DIR into the resulting binary and the resulting library dependency is
29851# "absolute",i.e impossible to change by setting \$shlibpath_var if the
29852# library is relocated.
29853hardcode_direct_absolute=$hardcode_direct_absolute
29854
29855# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29856# into the resulting binary.
29857hardcode_minus_L=$hardcode_minus_L
29858
29859# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29860# into the resulting binary.
29861hardcode_shlibpath_var=$hardcode_shlibpath_var
29862
29863# Set to "yes" if building a shared library automatically hardcodes DIR
29864# into the library and all subsequent libraries and executables linked
29865# against it.
29866hardcode_automatic=$hardcode_automatic
29867
29868# Set to yes if linker adds runtime paths of dependent libraries
29869# to runtime path list.
29870inherit_rpath=$inherit_rpath
29871
29872# Whether libtool must link a program against all its dependency libraries.
29873link_all_deplibs=$link_all_deplibs
29874
29875# Set to "yes" if exported symbols are required.
29876always_export_symbols=$always_export_symbols
29877
29878# The commands to list exported symbols.
29879export_symbols_cmds=$lt_export_symbols_cmds
29880
29881# Symbols that should not be listed in the preloaded symbols.
29882exclude_expsyms=$lt_exclude_expsyms
29883
29884# Symbols that must always be exported.
29885include_expsyms=$lt_include_expsyms
29886
29887# Commands necessary for linking programs (against libraries) with templates.
29888prelink_cmds=$lt_prelink_cmds
29889
29890# Commands necessary for finishing linking programs.
29891postlink_cmds=$lt_postlink_cmds
29892
29893# Specify filename containing input files.
29894file_list_spec=$lt_file_list_spec
29895
29896# How to hardcode a shared library path into an executable.
29897hardcode_action=$hardcode_action
29898
29899# ### END LIBTOOL CONFIG
29900
29901_LT_EOF
29902
29903    cat <<'_LT_EOF' >> "$cfgfile"
29904
29905# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
29906
29907# func_munge_path_list VARIABLE PATH
29908# -----------------------------------
29909# VARIABLE is name of variable containing _space_ separated list of
29910# directories to be munged by the contents of PATH, which is string
29911# having a format:
29912# "DIR[:DIR]:"
29913#       string "DIR[ DIR]" will be prepended to VARIABLE
29914# ":DIR[:DIR]"
29915#       string "DIR[ DIR]" will be appended to VARIABLE
29916# "DIRP[:DIRP]::[DIRA:]DIRA"
29917#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
29918#       "DIRA[ DIRA]" will be appended to VARIABLE
29919# "DIR[:DIR]"
29920#       VARIABLE will be replaced by "DIR[ DIR]"
29921func_munge_path_list ()
29922{
29923    case x$2 in
29924    x)
29925        ;;
29926    *:)
29927        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
29928        ;;
29929    x:*)
29930        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
29931        ;;
29932    *::*)
29933        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
29934        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
29935        ;;
29936    *)
29937        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
29938        ;;
29939    esac
29940}
29941
29942
29943# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
29944func_cc_basename ()
29945{
29946    for cc_temp in $*""; do
29947      case $cc_temp in
29948        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
29949        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
29950        \-*) ;;
29951        *) break;;
29952      esac
29953    done
29954    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
29955}
29956
29957
29958# ### END FUNCTIONS SHARED WITH CONFIGURE
29959
29960_LT_EOF
29961
29962  case $host_os in
29963  aix3*)
29964    cat <<\_LT_EOF >> "$cfgfile"
29965# AIX sometimes has problems with the GCC collect2 program.  For some
29966# reason, if we set the COLLECT_NAMES environment variable, the problems
29967# vanish in a puff of smoke.
29968if test set != "${COLLECT_NAMES+set}"; then
29969  COLLECT_NAMES=
29970  export COLLECT_NAMES
29971fi
29972_LT_EOF
29973    ;;
29974  esac
29975
29976
29977
29978ltmain=$ac_aux_dir/ltmain.sh
29979
29980
29981  # We use sed instead of cat because bash on DJGPP gets confused if
29982  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
29983  # text mode, it properly converts lines to CR/LF.  This bash problem
29984  # is reportedly fixed, but why not run on old versions too?
29985  sed '$q' "$ltmain" >> "$cfgfile" \
29986     || (rm -f "$cfgfile"; exit 1)
29987
29988   mv -f "$cfgfile" "$ofile" ||
29989    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29990  chmod +x "$ofile"
29991
29992 ;;
29993
29994  esac
29995done # for ac_tag
29996
29997
29998as_fn_exit 0
29999_ACEOF
30000ac_clean_files=$ac_clean_files_save
30001
30002test $ac_write_fail = 0 ||
30003  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30004
30005
30006# configure is writing to config.log, and then calls config.status.
30007# config.status does its own redirection, appending to config.log.
30008# Unfortunately, on DOS this fails, as config.log is still kept open
30009# by configure, so config.status won't be able to write to it; its
30010# output is simply discarded.  So we exec the FD to /dev/null,
30011# effectively closing config.log, so it can be properly (re)opened and
30012# appended to by config.status.  When coming back to configure, we
30013# need to make the FD available again.
30014if test "$no_create" != yes; then
30015  ac_cs_success=:
30016  ac_config_status_args=
30017  test "$silent" = yes &&
30018    ac_config_status_args="$ac_config_status_args --quiet"
30019  exec 5>/dev/null
30020  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30021  exec 5>>config.log
30022  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30023  # would make configure fail if this is the last instruction.
30024  $ac_cs_success || as_fn_exit 1
30025fi
30026
30027#
30028# CONFIG_SUBDIRS section.
30029#
30030if test "$no_recursion" != yes; then
30031
30032  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
30033  # so they do not pile up.
30034  ac_sub_configure_args=
30035  ac_prev=
30036  eval "set x $ac_configure_args"
30037  shift
30038  for ac_arg
30039  do
30040    if test -n "$ac_prev"; then
30041      ac_prev=
30042      continue
30043    fi
30044    case $ac_arg in
30045    -cache-file | --cache-file | --cache-fil | --cache-fi \
30046    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
30047      ac_prev=cache_file ;;
30048    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
30049    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
30050    | --c=*)
30051      ;;
30052    --config-cache | -C)
30053      ;;
30054    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
30055      ac_prev=srcdir ;;
30056    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
30057      ;;
30058    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
30059      ac_prev=prefix ;;
30060    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
30061      ;;
30062    --disable-option-checking)
30063      ;;
30064    *)
30065      case $ac_arg in
30066      *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
30067      esac
30068      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
30069    esac
30070  done
30071
30072  # Always prepend --prefix to ensure using the same prefix
30073  # in subdir configurations.
30074  ac_arg="--prefix=$prefix"
30075  case $ac_arg in
30076  *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
30077  esac
30078  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
30079
30080  # Pass --silent
30081  if test "$silent" = yes; then
30082    ac_sub_configure_args="--silent $ac_sub_configure_args"
30083  fi
30084
30085  # Always prepend --disable-option-checking to silence warnings, since
30086  # different subdirs can have different --enable and --with options.
30087  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
30088
30089  ac_popdir=`pwd`
30090  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
30091
30092    # Do not complain, so a configure script can configure whichever
30093    # parts of a large source tree are present.
30094    test -d "$srcdir/$ac_dir" || continue
30095
30096    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
30097    printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
30098    printf "%s\n" "$ac_msg" >&6
30099    as_dir="$ac_dir"; as_fn_mkdir_p
30100    ac_builddir=.
30101
30102case "$ac_dir" in
30103.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30104*)
30105  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
30106  # A ".." for each directory in $ac_dir_suffix.
30107  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30108  case $ac_top_builddir_sub in
30109  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30110  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30111  esac ;;
30112esac
30113ac_abs_top_builddir=$ac_pwd
30114ac_abs_builddir=$ac_pwd$ac_dir_suffix
30115# for backward compatibility:
30116ac_top_builddir=$ac_top_build_prefix
30117
30118case $srcdir in
30119  .)  # We are building in place.
30120    ac_srcdir=.
30121    ac_top_srcdir=$ac_top_builddir_sub
30122    ac_abs_top_srcdir=$ac_pwd ;;
30123  [\\/]* | ?:[\\/]* )  # Absolute name.
30124    ac_srcdir=$srcdir$ac_dir_suffix;
30125    ac_top_srcdir=$srcdir
30126    ac_abs_top_srcdir=$srcdir ;;
30127  *) # Relative name.
30128    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30129    ac_top_srcdir=$ac_top_build_prefix$srcdir
30130    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30131esac
30132ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30133
30134
30135    cd "$ac_dir"
30136
30137    # Check for configure.gnu first; this name is used for a wrapper for
30138    # Metaconfig's "Configure" on case-insensitive file systems.
30139    if test -f "$ac_srcdir/configure.gnu"; then
30140      ac_sub_configure=$ac_srcdir/configure.gnu
30141    elif test -f "$ac_srcdir/configure"; then
30142      ac_sub_configure=$ac_srcdir/configure
30143    else
30144      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
30145printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
30146      ac_sub_configure=
30147    fi
30148
30149    # The recursion is here.
30150    if test -n "$ac_sub_configure"; then
30151      # Make the cache file name correct relative to the subdirectory.
30152      case $cache_file in
30153      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
30154      *) # Relative name.
30155	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
30156      esac
30157
30158      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
30159printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
30160      # The eval makes quoting arguments work.
30161      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
30162	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
30163	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
30164    fi
30165
30166    cd "$ac_popdir"
30167  done
30168fi
30169if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30170  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30171printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30172fi
30173
30174
30175