xref: /openbsd-src/usr.sbin/nsd/configure (revision 4b70baf6e17fc8b27fc1f7fa7929335753fa94c3)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for NSD 4.1.27.
4#
5# Report bugs to <nsd-bugs@nlnetlabs.nl>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: nsd-bugs@nlnetlabs.nl about your system, including any
271$0: error possibly output before this message. Then install
272$0: a modern shell, or manually run the script under such a
273$0: shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334	 X"$as_dir" : 'X\(//\)[^/]' \| \
335	 X"$as_dir" : 'X\(//\)$' \| \
336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)[^/].*/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\).*/{
351	    s//\1/
352	    q
353	  }
354	  s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443	 X"$0" : 'X\(//\)$' \| \
444	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\/\)$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\).*/{
455	    s//\1/
456	    q
457	  }
458	  s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T='	';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='NSD'
582PACKAGE_TARNAME='nsd'
583PACKAGE_VERSION='4.1.27'
584PACKAGE_STRING='NSD 4.1.27'
585PACKAGE_BUGREPORT='nsd-bugs@nlnetlabs.nl'
586PACKAGE_URL=''
587
588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
591#ifdef HAVE_SYS_TYPES_H
592# include <sys/types.h>
593#endif
594#ifdef HAVE_SYS_STAT_H
595# include <sys/stat.h>
596#endif
597#ifdef STDC_HEADERS
598# include <stdlib.h>
599# include <stddef.h>
600#else
601# ifdef HAVE_STDLIB_H
602#  include <stdlib.h>
603# endif
604#endif
605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607#  include <memory.h>
608# endif
609# include <string.h>
610#endif
611#ifdef HAVE_STRINGS_H
612# include <strings.h>
613#endif
614#ifdef HAVE_INTTYPES_H
615# include <inttypes.h>
616#endif
617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
621# include <unistd.h>
622#endif"
623
624ac_subst_vars='LTLIBOBJS
625DNSTAP_OBJ
626DNSTAP_SRC
627opt_dnstap_socket_path
628ENABLE_DNSTAP
629PROTOC_C
630SSL_LIBS
631HAVE_SSL
632ratelimit_default
633ratelimit
634LIBOBJS
635YFLAGS
636YACC
637LEXLIB
638LEX_OUTPUT_ROOT
639LEX
640INSTALL_DATA
641INSTALL_SCRIPT
642INSTALL_PROGRAM
643LN_S
644AWK
645user
646chrootdir
647xfrdir
648zonelistfile
649xfrdfile
650zonesdir
651piddir
652dbdir
653dbfile
654pidfile
655logfile
656nsd_conf_file
657configdir
658EGREP
659GREP
660CPP
661OBJEXT
662EXEEXT
663ac_ct_CC
664CPPFLAGS
665LDFLAGS
666CFLAGS
667CC
668target_alias
669host_alias
670build_alias
671LIBS
672ECHO_T
673ECHO_N
674ECHO_C
675DEFS
676mandir
677localedir
678libdir
679psdir
680pdfdir
681dvidir
682htmldir
683infodir
684docdir
685oldincludedir
686includedir
687localstatedir
688sharedstatedir
689sysconfdir
690datadir
691datarootdir
692libexecdir
693sbindir
694bindir
695program_transform_name
696prefix
697exec_prefix
698PACKAGE_URL
699PACKAGE_BUGREPORT
700PACKAGE_STRING
701PACKAGE_VERSION
702PACKAGE_TARNAME
703PACKAGE_NAME
704PATH_SEPARATOR
705SHELL'
706ac_subst_files=''
707ac_user_opts='
708enable_option_checking
709with_configdir
710with_nsd_conf_file
711with_logfile
712with_pidfile
713with_dbfile
714with_zonesdir
715with_xfrdfile
716with_zonelistfile
717with_xfrdir
718with_chroot
719with_user
720enable_flto
721enable_pie
722enable_relro_now
723with_libevent
724enable_largefile
725enable_recvmmsg
726with_facility
727with_tcp_timeout
728enable_root_server
729enable_ipv6
730enable_bind8_stats
731enable_zone_stats
732enable_checking
733enable_memclean
734enable_ratelimit
735enable_ratelimit_default_is_off
736with_ssl
737enable_nsec3
738enable_minimal_responses
739enable_mmap
740enable_radix_tree
741enable_packed
742enable_dnstap
743with_dnstap_socket_path
744with_protobuf_c
745with_libfstrm
746enable_systemd
747'
748      ac_precious_vars='build_alias
749host_alias
750target_alias
751CC
752CFLAGS
753LDFLAGS
754LIBS
755CPPFLAGS
756CPP
757YACC
758YFLAGS'
759
760
761# Initialize some variables set by options.
762ac_init_help=
763ac_init_version=false
764ac_unrecognized_opts=
765ac_unrecognized_sep=
766# The variables have the same names as the options, with
767# dashes changed to underlines.
768cache_file=/dev/null
769exec_prefix=NONE
770no_create=
771no_recursion=
772prefix=NONE
773program_prefix=NONE
774program_suffix=NONE
775program_transform_name=s,x,x,
776silent=
777site=
778srcdir=
779verbose=
780x_includes=NONE
781x_libraries=NONE
782
783# Installation directory options.
784# These are left unexpanded so users can "make install exec_prefix=/foo"
785# and all the variables that are supposed to be based on exec_prefix
786# by default will actually change.
787# Use braces instead of parens because sh, perl, etc. also accept them.
788# (The list follows the same order as the GNU Coding Standards.)
789bindir='${exec_prefix}/bin'
790sbindir='${exec_prefix}/sbin'
791libexecdir='${exec_prefix}/libexec'
792datarootdir='${prefix}/share'
793datadir='${datarootdir}'
794sysconfdir='${prefix}/etc'
795sharedstatedir='${prefix}/com'
796localstatedir='${prefix}/var'
797includedir='${prefix}/include'
798oldincludedir='/usr/include'
799docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
800infodir='${datarootdir}/info'
801htmldir='${docdir}'
802dvidir='${docdir}'
803pdfdir='${docdir}'
804psdir='${docdir}'
805libdir='${exec_prefix}/lib'
806localedir='${datarootdir}/locale'
807mandir='${datarootdir}/man'
808
809ac_prev=
810ac_dashdash=
811for ac_option
812do
813  # If the previous option needs an argument, assign it.
814  if test -n "$ac_prev"; then
815    eval $ac_prev=\$ac_option
816    ac_prev=
817    continue
818  fi
819
820  case $ac_option in
821  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822  *=)   ac_optarg= ;;
823  *)    ac_optarg=yes ;;
824  esac
825
826  # Accept the important Cygnus configure options, so we can diagnose typos.
827
828  case $ac_dashdash$ac_option in
829  --)
830    ac_dashdash=yes ;;
831
832  -bindir | --bindir | --bindi | --bind | --bin | --bi)
833    ac_prev=bindir ;;
834  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835    bindir=$ac_optarg ;;
836
837  -build | --build | --buil | --bui | --bu)
838    ac_prev=build_alias ;;
839  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840    build_alias=$ac_optarg ;;
841
842  -cache-file | --cache-file | --cache-fil | --cache-fi \
843  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844    ac_prev=cache_file ;;
845  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847    cache_file=$ac_optarg ;;
848
849  --config-cache | -C)
850    cache_file=config.cache ;;
851
852  -datadir | --datadir | --datadi | --datad)
853    ac_prev=datadir ;;
854  -datadir=* | --datadir=* | --datadi=* | --datad=*)
855    datadir=$ac_optarg ;;
856
857  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858  | --dataroo | --dataro | --datar)
859    ac_prev=datarootdir ;;
860  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862    datarootdir=$ac_optarg ;;
863
864  -disable-* | --disable-*)
865    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866    # Reject names that are not valid shell variable names.
867    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868      as_fn_error $? "invalid feature name: $ac_useropt"
869    ac_useropt_orig=$ac_useropt
870    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871    case $ac_user_opts in
872      *"
873"enable_$ac_useropt"
874"*) ;;
875      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876	 ac_unrecognized_sep=', ';;
877    esac
878    eval enable_$ac_useropt=no ;;
879
880  -docdir | --docdir | --docdi | --doc | --do)
881    ac_prev=docdir ;;
882  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
883    docdir=$ac_optarg ;;
884
885  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
886    ac_prev=dvidir ;;
887  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
888    dvidir=$ac_optarg ;;
889
890  -enable-* | --enable-*)
891    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892    # Reject names that are not valid shell variable names.
893    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894      as_fn_error $? "invalid feature name: $ac_useropt"
895    ac_useropt_orig=$ac_useropt
896    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897    case $ac_user_opts in
898      *"
899"enable_$ac_useropt"
900"*) ;;
901      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
902	 ac_unrecognized_sep=', ';;
903    esac
904    eval enable_$ac_useropt=\$ac_optarg ;;
905
906  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
907  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
908  | --exec | --exe | --ex)
909    ac_prev=exec_prefix ;;
910  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
911  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
912  | --exec=* | --exe=* | --ex=*)
913    exec_prefix=$ac_optarg ;;
914
915  -gas | --gas | --ga | --g)
916    # Obsolete; use --with-gas.
917    with_gas=yes ;;
918
919  -help | --help | --hel | --he | -h)
920    ac_init_help=long ;;
921  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
922    ac_init_help=recursive ;;
923  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
924    ac_init_help=short ;;
925
926  -host | --host | --hos | --ho)
927    ac_prev=host_alias ;;
928  -host=* | --host=* | --hos=* | --ho=*)
929    host_alias=$ac_optarg ;;
930
931  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
932    ac_prev=htmldir ;;
933  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
934  | --ht=*)
935    htmldir=$ac_optarg ;;
936
937  -includedir | --includedir | --includedi | --included | --include \
938  | --includ | --inclu | --incl | --inc)
939    ac_prev=includedir ;;
940  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
941  | --includ=* | --inclu=* | --incl=* | --inc=*)
942    includedir=$ac_optarg ;;
943
944  -infodir | --infodir | --infodi | --infod | --info | --inf)
945    ac_prev=infodir ;;
946  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
947    infodir=$ac_optarg ;;
948
949  -libdir | --libdir | --libdi | --libd)
950    ac_prev=libdir ;;
951  -libdir=* | --libdir=* | --libdi=* | --libd=*)
952    libdir=$ac_optarg ;;
953
954  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
955  | --libexe | --libex | --libe)
956    ac_prev=libexecdir ;;
957  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
958  | --libexe=* | --libex=* | --libe=*)
959    libexecdir=$ac_optarg ;;
960
961  -localedir | --localedir | --localedi | --localed | --locale)
962    ac_prev=localedir ;;
963  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
964    localedir=$ac_optarg ;;
965
966  -localstatedir | --localstatedir | --localstatedi | --localstated \
967  | --localstate | --localstat | --localsta | --localst | --locals)
968    ac_prev=localstatedir ;;
969  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
970  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
971    localstatedir=$ac_optarg ;;
972
973  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
974    ac_prev=mandir ;;
975  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
976    mandir=$ac_optarg ;;
977
978  -nfp | --nfp | --nf)
979    # Obsolete; use --without-fp.
980    with_fp=no ;;
981
982  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
983  | --no-cr | --no-c | -n)
984    no_create=yes ;;
985
986  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
987  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
988    no_recursion=yes ;;
989
990  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
991  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
992  | --oldin | --oldi | --old | --ol | --o)
993    ac_prev=oldincludedir ;;
994  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
995  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
996  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
997    oldincludedir=$ac_optarg ;;
998
999  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1000    ac_prev=prefix ;;
1001  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1002    prefix=$ac_optarg ;;
1003
1004  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1005  | --program-pre | --program-pr | --program-p)
1006    ac_prev=program_prefix ;;
1007  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1008  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1009    program_prefix=$ac_optarg ;;
1010
1011  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1012  | --program-suf | --program-su | --program-s)
1013    ac_prev=program_suffix ;;
1014  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1015  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1016    program_suffix=$ac_optarg ;;
1017
1018  -program-transform-name | --program-transform-name \
1019  | --program-transform-nam | --program-transform-na \
1020  | --program-transform-n | --program-transform- \
1021  | --program-transform | --program-transfor \
1022  | --program-transfo | --program-transf \
1023  | --program-trans | --program-tran \
1024  | --progr-tra | --program-tr | --program-t)
1025    ac_prev=program_transform_name ;;
1026  -program-transform-name=* | --program-transform-name=* \
1027  | --program-transform-nam=* | --program-transform-na=* \
1028  | --program-transform-n=* | --program-transform-=* \
1029  | --program-transform=* | --program-transfor=* \
1030  | --program-transfo=* | --program-transf=* \
1031  | --program-trans=* | --program-tran=* \
1032  | --progr-tra=* | --program-tr=* | --program-t=*)
1033    program_transform_name=$ac_optarg ;;
1034
1035  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1036    ac_prev=pdfdir ;;
1037  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1038    pdfdir=$ac_optarg ;;
1039
1040  -psdir | --psdir | --psdi | --psd | --ps)
1041    ac_prev=psdir ;;
1042  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1043    psdir=$ac_optarg ;;
1044
1045  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046  | -silent | --silent | --silen | --sile | --sil)
1047    silent=yes ;;
1048
1049  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1050    ac_prev=sbindir ;;
1051  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1052  | --sbi=* | --sb=*)
1053    sbindir=$ac_optarg ;;
1054
1055  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1056  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1057  | --sharedst | --shareds | --shared | --share | --shar \
1058  | --sha | --sh)
1059    ac_prev=sharedstatedir ;;
1060  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1061  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1062  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1063  | --sha=* | --sh=*)
1064    sharedstatedir=$ac_optarg ;;
1065
1066  -site | --site | --sit)
1067    ac_prev=site ;;
1068  -site=* | --site=* | --sit=*)
1069    site=$ac_optarg ;;
1070
1071  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1072    ac_prev=srcdir ;;
1073  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1074    srcdir=$ac_optarg ;;
1075
1076  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1077  | --syscon | --sysco | --sysc | --sys | --sy)
1078    ac_prev=sysconfdir ;;
1079  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1080  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1081    sysconfdir=$ac_optarg ;;
1082
1083  -target | --target | --targe | --targ | --tar | --ta | --t)
1084    ac_prev=target_alias ;;
1085  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1086    target_alias=$ac_optarg ;;
1087
1088  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1089    verbose=yes ;;
1090
1091  -version | --version | --versio | --versi | --vers | -V)
1092    ac_init_version=: ;;
1093
1094  -with-* | --with-*)
1095    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1096    # Reject names that are not valid shell variable names.
1097    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098      as_fn_error $? "invalid package name: $ac_useropt"
1099    ac_useropt_orig=$ac_useropt
1100    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101    case $ac_user_opts in
1102      *"
1103"with_$ac_useropt"
1104"*) ;;
1105      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1106	 ac_unrecognized_sep=', ';;
1107    esac
1108    eval with_$ac_useropt=\$ac_optarg ;;
1109
1110  -without-* | --without-*)
1111    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112    # Reject names that are not valid shell variable names.
1113    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114      as_fn_error $? "invalid package name: $ac_useropt"
1115    ac_useropt_orig=$ac_useropt
1116    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117    case $ac_user_opts in
1118      *"
1119"with_$ac_useropt"
1120"*) ;;
1121      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1122	 ac_unrecognized_sep=', ';;
1123    esac
1124    eval with_$ac_useropt=no ;;
1125
1126  --x)
1127    # Obsolete; use --with-x.
1128    with_x=yes ;;
1129
1130  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131  | --x-incl | --x-inc | --x-in | --x-i)
1132    ac_prev=x_includes ;;
1133  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135    x_includes=$ac_optarg ;;
1136
1137  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139    ac_prev=x_libraries ;;
1140  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142    x_libraries=$ac_optarg ;;
1143
1144  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1145Try \`$0 --help' for more information"
1146    ;;
1147
1148  *=*)
1149    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1150    # Reject names that are not valid shell variable names.
1151    case $ac_envvar in #(
1152      '' | [0-9]* | *[!_$as_cr_alnum]* )
1153      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1154    esac
1155    eval $ac_envvar=\$ac_optarg
1156    export $ac_envvar ;;
1157
1158  *)
1159    # FIXME: should be removed in autoconf 3.0.
1160    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1164    ;;
1165
1166  esac
1167done
1168
1169if test -n "$ac_prev"; then
1170  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171  as_fn_error $? "missing argument to $ac_option"
1172fi
1173
1174if test -n "$ac_unrecognized_opts"; then
1175  case $enable_option_checking in
1176    no) ;;
1177    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1178    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1179  esac
1180fi
1181
1182# Check all directory arguments for consistency.
1183for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1184		datadir sysconfdir sharedstatedir localstatedir includedir \
1185		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1186		libdir localedir mandir
1187do
1188  eval ac_val=\$$ac_var
1189  # Remove trailing slashes.
1190  case $ac_val in
1191    */ )
1192      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1193      eval $ac_var=\$ac_val;;
1194  esac
1195  # Be sure to have absolute directory names.
1196  case $ac_val in
1197    [\\/$]* | ?:[\\/]* )  continue;;
1198    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199  esac
1200  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1201done
1202
1203# There might be people who depend on the old broken behavior: `$host'
1204# used to hold the argument of --host etc.
1205# FIXME: To remove some day.
1206build=$build_alias
1207host=$host_alias
1208target=$target_alias
1209
1210# FIXME: To remove some day.
1211if test "x$host_alias" != x; then
1212  if test "x$build_alias" = x; then
1213    cross_compiling=maybe
1214  elif test "x$build_alias" != "x$host_alias"; then
1215    cross_compiling=yes
1216  fi
1217fi
1218
1219ac_tool_prefix=
1220test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222test "$silent" = yes && exec 6>/dev/null
1223
1224
1225ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226ac_ls_di=`ls -di .` &&
1227ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228  as_fn_error $? "working directory cannot be determined"
1229test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1230  as_fn_error $? "pwd does not report name of working directory"
1231
1232
1233# Find the source files, if location was not specified.
1234if test -z "$srcdir"; then
1235  ac_srcdir_defaulted=yes
1236  # Try the directory containing this script, then the parent directory.
1237  ac_confdir=`$as_dirname -- "$as_myself" ||
1238$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1239	 X"$as_myself" : 'X\(//\)[^/]' \| \
1240	 X"$as_myself" : 'X\(//\)$' \| \
1241	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1242$as_echo X"$as_myself" |
1243    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244	    s//\1/
1245	    q
1246	  }
1247	  /^X\(\/\/\)[^/].*/{
1248	    s//\1/
1249	    q
1250	  }
1251	  /^X\(\/\/\)$/{
1252	    s//\1/
1253	    q
1254	  }
1255	  /^X\(\/\).*/{
1256	    s//\1/
1257	    q
1258	  }
1259	  s/.*/./; q'`
1260  srcdir=$ac_confdir
1261  if test ! -r "$srcdir/$ac_unique_file"; then
1262    srcdir=..
1263  fi
1264else
1265  ac_srcdir_defaulted=no
1266fi
1267if test ! -r "$srcdir/$ac_unique_file"; then
1268  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1269  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1270fi
1271ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1272ac_abs_confdir=`(
1273	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1274	pwd)`
1275# When building in place, set srcdir=.
1276if test "$ac_abs_confdir" = "$ac_pwd"; then
1277  srcdir=.
1278fi
1279# Remove unnecessary trailing slashes from srcdir.
1280# Double slashes in file names in object file debugging info
1281# mess up M-x gdb in Emacs.
1282case $srcdir in
1283*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1284esac
1285for ac_var in $ac_precious_vars; do
1286  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1287  eval ac_env_${ac_var}_value=\$${ac_var}
1288  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1289  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1290done
1291
1292#
1293# Report the --help message.
1294#
1295if test "$ac_init_help" = "long"; then
1296  # Omit some internal or obsolete options to make the list less imposing.
1297  # This message is too long to be a string in the A/UX 3.1 sh.
1298  cat <<_ACEOF
1299\`configure' configures NSD 4.1.27 to adapt to many kinds of systems.
1300
1301Usage: $0 [OPTION]... [VAR=VALUE]...
1302
1303To assign environment variables (e.g., CC, CFLAGS...), specify them as
1304VAR=VALUE.  See below for descriptions of some of the useful variables.
1305
1306Defaults for the options are specified in brackets.
1307
1308Configuration:
1309  -h, --help              display this help and exit
1310      --help=short        display options specific to this package
1311      --help=recursive    display the short help of all the included packages
1312  -V, --version           display version information and exit
1313  -q, --quiet, --silent   do not print \`checking ...' messages
1314      --cache-file=FILE   cache test results in FILE [disabled]
1315  -C, --config-cache      alias for \`--cache-file=config.cache'
1316  -n, --no-create         do not create output files
1317      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1318
1319Installation directories:
1320  --prefix=PREFIX         install architecture-independent files in PREFIX
1321                          [$ac_default_prefix]
1322  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1323                          [PREFIX]
1324
1325By default, \`make install' will install all the files in
1326\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1327an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1328for instance \`--prefix=\$HOME'.
1329
1330For better control, use the options below.
1331
1332Fine tuning of the installation directories:
1333  --bindir=DIR            user executables [EPREFIX/bin]
1334  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1335  --libexecdir=DIR        program executables [EPREFIX/libexec]
1336  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1337  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1338  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1339  --libdir=DIR            object code libraries [EPREFIX/lib]
1340  --includedir=DIR        C header files [PREFIX/include]
1341  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1342  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1343  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1344  --infodir=DIR           info documentation [DATAROOTDIR/info]
1345  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1346  --mandir=DIR            man documentation [DATAROOTDIR/man]
1347  --docdir=DIR            documentation root [DATAROOTDIR/doc/nsd]
1348  --htmldir=DIR           html documentation [DOCDIR]
1349  --dvidir=DIR            dvi documentation [DOCDIR]
1350  --pdfdir=DIR            pdf documentation [DOCDIR]
1351  --psdir=DIR             ps documentation [DOCDIR]
1352_ACEOF
1353
1354  cat <<\_ACEOF
1355_ACEOF
1356fi
1357
1358if test -n "$ac_init_help"; then
1359  case $ac_init_help in
1360     short | recursive ) echo "Configuration of NSD 4.1.27:";;
1361   esac
1362  cat <<\_ACEOF
1363
1364Optional Features:
1365  --disable-option-checking  ignore unrecognized --enable/--with options
1366  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1367  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1368  --disable-flto          Disable link-time optimization (gcc specific option)
1369  --enable-pie            Enable Position-Independent Executable (eg. to fully
1370                          benefit from ASLR, small performance penalty)
1371  --enable-relro-now      Enable full relocation binding at load-time (RELRO
1372                          NOW, to protect GOT and .dtor areas)
1373  --disable-largefile     omit support for large files
1374  --enable-recvmmsg       Enable recvmmsg and sendmmsg compilation, faster but
1375                          some kernel versions may have implementation
1376                          problems for IPv6
1377  --enable-root-server    Configure NSD as a root server
1378  --disable-ipv6          Disables IPv6 support
1379  --enable-bind8-stats    Enables BIND8 like NSTATS & XSTATS and statistics in
1380                          nsd-control
1381  --enable-zone-stats     Enable per-zone statistics gathering (needs
1382                          --enable-bind8-stats)
1383  --enable-checking       Enable internal runtime checks
1384  --enable-memclean       Cleanup memory (at exit) for eg. valgrind, memcheck
1385  --enable-ratelimit      Enable rate limiting
1386  --enable-ratelimit-default-is-off
1387                          Enable this to set default of ratelimit to off
1388                          (enable in nsd.conf), otherwise ratelimit is enabled
1389                          by default if --enable-ratelimit is enabled
1390  --disable-nsec3         Disable NSEC3 support
1391  --disable-minimal-responses
1392                          Disable response minimization. More truncation.
1393  --enable-mmap           Use mmap instead of malloc. Experimental.
1394  --disable-radix-tree    You can disable the radix tree and use the red-black
1395                          tree for the main lookups, the red-black tree uses
1396                          less memory, but uses some more CPU.
1397  --enable-packed         Enable packed structure alignment, uses less memory,
1398                          but unaligned reads.
1399  --enable-dnstap         Enable dnstap support (requires fstrm, protobuf-c)
1400  --enable-systemd        compile with systemd support
1401
1402Optional Packages:
1403  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1404  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1405  --with-configdir=dir    NSD configuration directory
1406  --with-nsd_conf_file=path
1407                          Pathname to the NSD configuration file
1408  --with-logfile=path     Pathname to the default log file
1409  --with-pidfile=path     Pathname to the NSD pidfile
1410  --with-dbfile=path      Pathname to the NSD database
1411  --with-zonesdir=dir     NSD default location for zone files
1412  --with-xfrdfile=path    Pathname to the NSD xfrd zone timer state file
1413  --with-zonelistfile=path
1414                          Pathname to the NSD zone list file
1415  --with-xfrdir=path      Pathname to where the NSD transfer dir is created
1416  --with-chroot=dir       NSD default chroot directory
1417  --with-user=username    User name or ID to answer the queries with
1418  --with-libevent=pathname
1419                          use libevent (will check /usr/local /opt/local
1420                          /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1421                          an explicit path), useful when the zone count is
1422                          high.
1423  --with-facility=name    Syslog default facility (LOG_DAEMON)
1424  --with-tcp-timeout=number
1425                          Limit the default tcp timeout
1426  --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1427                          /usr/ssl /usr/pkg /usr/sfw /usr/local /usr)
1428  --with-dnstap-socket-path=pathname
1429                          set default dnstap socket path
1430  --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
1431  --with-libfstrm=path    Path where libfstrm is installed, for dnstap
1432
1433Some influential environment variables:
1434  CC          C compiler command
1435  CFLAGS      C compiler flags
1436  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1437              nonstandard directory <lib dir>
1438  LIBS        libraries to pass to the linker, e.g. -l<library>
1439  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1440              you have headers in a nonstandard directory <include dir>
1441  CPP         C preprocessor
1442  YACC        The `Yet Another Compiler Compiler' implementation to use.
1443              Defaults to the first program found out of: `bison -y', `byacc',
1444              `yacc'.
1445  YFLAGS      The list of arguments that will be passed by default to $YACC.
1446              This script will default YFLAGS to the empty string to avoid a
1447              default value of `-d' given by some make applications.
1448
1449Use these variables to override the choices made by `configure' or to help
1450it to find libraries and programs with nonstandard names/locations.
1451
1452Report bugs to <nsd-bugs@nlnetlabs.nl>.
1453_ACEOF
1454ac_status=$?
1455fi
1456
1457if test "$ac_init_help" = "recursive"; then
1458  # If there are subdirs, report their specific --help.
1459  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460    test -d "$ac_dir" ||
1461      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462      continue
1463    ac_builddir=.
1464
1465case "$ac_dir" in
1466.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467*)
1468  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1469  # A ".." for each directory in $ac_dir_suffix.
1470  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1471  case $ac_top_builddir_sub in
1472  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474  esac ;;
1475esac
1476ac_abs_top_builddir=$ac_pwd
1477ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478# for backward compatibility:
1479ac_top_builddir=$ac_top_build_prefix
1480
1481case $srcdir in
1482  .)  # We are building in place.
1483    ac_srcdir=.
1484    ac_top_srcdir=$ac_top_builddir_sub
1485    ac_abs_top_srcdir=$ac_pwd ;;
1486  [\\/]* | ?:[\\/]* )  # Absolute name.
1487    ac_srcdir=$srcdir$ac_dir_suffix;
1488    ac_top_srcdir=$srcdir
1489    ac_abs_top_srcdir=$srcdir ;;
1490  *) # Relative name.
1491    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492    ac_top_srcdir=$ac_top_build_prefix$srcdir
1493    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494esac
1495ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496
1497    cd "$ac_dir" || { ac_status=$?; continue; }
1498    # Check for guested configure.
1499    if test -f "$ac_srcdir/configure.gnu"; then
1500      echo &&
1501      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502    elif test -f "$ac_srcdir/configure"; then
1503      echo &&
1504      $SHELL "$ac_srcdir/configure" --help=recursive
1505    else
1506      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507    fi || ac_status=$?
1508    cd "$ac_pwd" || { ac_status=$?; break; }
1509  done
1510fi
1511
1512test -n "$ac_init_help" && exit $ac_status
1513if $ac_init_version; then
1514  cat <<\_ACEOF
1515NSD configure 4.1.27
1516generated by GNU Autoconf 2.69
1517
1518Copyright (C) 2012 Free Software Foundation, Inc.
1519This configure script is free software; the Free Software Foundation
1520gives unlimited permission to copy, distribute and modify it.
1521_ACEOF
1522  exit
1523fi
1524
1525## ------------------------ ##
1526## Autoconf initialization. ##
1527## ------------------------ ##
1528
1529# ac_fn_c_try_compile LINENO
1530# --------------------------
1531# Try to compile conftest.$ac_ext, and return whether this succeeded.
1532ac_fn_c_try_compile ()
1533{
1534  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535  rm -f conftest.$ac_objext
1536  if { { ac_try="$ac_compile"
1537case "(($ac_try" in
1538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539  *) ac_try_echo=$ac_try;;
1540esac
1541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542$as_echo "$ac_try_echo"; } >&5
1543  (eval "$ac_compile") 2>conftest.err
1544  ac_status=$?
1545  if test -s conftest.err; then
1546    grep -v '^ *+' conftest.err >conftest.er1
1547    cat conftest.er1 >&5
1548    mv -f conftest.er1 conftest.err
1549  fi
1550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551  test $ac_status = 0; } && {
1552	 test -z "$ac_c_werror_flag" ||
1553	 test ! -s conftest.err
1554       } && test -s conftest.$ac_objext; then :
1555  ac_retval=0
1556else
1557  $as_echo "$as_me: failed program was:" >&5
1558sed 's/^/| /' conftest.$ac_ext >&5
1559
1560	ac_retval=1
1561fi
1562  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563  as_fn_set_status $ac_retval
1564
1565} # ac_fn_c_try_compile
1566
1567# ac_fn_c_try_cpp LINENO
1568# ----------------------
1569# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1570ac_fn_c_try_cpp ()
1571{
1572  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573  if { { ac_try="$ac_cpp conftest.$ac_ext"
1574case "(($ac_try" in
1575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576  *) ac_try_echo=$ac_try;;
1577esac
1578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579$as_echo "$ac_try_echo"; } >&5
1580  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1581  ac_status=$?
1582  if test -s conftest.err; then
1583    grep -v '^ *+' conftest.err >conftest.er1
1584    cat conftest.er1 >&5
1585    mv -f conftest.er1 conftest.err
1586  fi
1587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588  test $ac_status = 0; } > conftest.i && {
1589	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1590	 test ! -s conftest.err
1591       }; then :
1592  ac_retval=0
1593else
1594  $as_echo "$as_me: failed program was:" >&5
1595sed 's/^/| /' conftest.$ac_ext >&5
1596
1597    ac_retval=1
1598fi
1599  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600  as_fn_set_status $ac_retval
1601
1602} # ac_fn_c_try_cpp
1603
1604# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1605# -------------------------------------------------------
1606# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1607# the include files in INCLUDES and setting the cache variable VAR
1608# accordingly.
1609ac_fn_c_check_header_mongrel ()
1610{
1611  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612  if eval \${$3+:} false; then :
1613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1614$as_echo_n "checking for $2... " >&6; }
1615if eval \${$3+:} false; then :
1616  $as_echo_n "(cached) " >&6
1617fi
1618eval ac_res=\$$3
1619	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620$as_echo "$ac_res" >&6; }
1621else
1622  # Is the header compilable?
1623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1624$as_echo_n "checking $2 usability... " >&6; }
1625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626/* end confdefs.h.  */
1627$4
1628#include <$2>
1629_ACEOF
1630if ac_fn_c_try_compile "$LINENO"; then :
1631  ac_header_compiler=yes
1632else
1633  ac_header_compiler=no
1634fi
1635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1637$as_echo "$ac_header_compiler" >&6; }
1638
1639# Is the header present?
1640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1641$as_echo_n "checking $2 presence... " >&6; }
1642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643/* end confdefs.h.  */
1644#include <$2>
1645_ACEOF
1646if ac_fn_c_try_cpp "$LINENO"; then :
1647  ac_header_preproc=yes
1648else
1649  ac_header_preproc=no
1650fi
1651rm -f conftest.err conftest.i conftest.$ac_ext
1652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1653$as_echo "$ac_header_preproc" >&6; }
1654
1655# So?  What about this header?
1656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1657  yes:no: )
1658    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1659$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1660    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1661$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1662    ;;
1663  no:yes:* )
1664    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1665$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1666    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1667$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1668    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1669$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1670    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1671$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1672    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674( $as_echo "## ------------------------------------ ##
1675## Report this to nsd-bugs@nlnetlabs.nl ##
1676## ------------------------------------ ##"
1677     ) | sed "s/^/$as_me: WARNING:     /" >&2
1678    ;;
1679esac
1680  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681$as_echo_n "checking for $2... " >&6; }
1682if eval \${$3+:} false; then :
1683  $as_echo_n "(cached) " >&6
1684else
1685  eval "$3=\$ac_header_compiler"
1686fi
1687eval ac_res=\$$3
1688	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689$as_echo "$ac_res" >&6; }
1690fi
1691  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692
1693} # ac_fn_c_check_header_mongrel
1694
1695# ac_fn_c_try_run LINENO
1696# ----------------------
1697# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698# that executables *can* be run.
1699ac_fn_c_try_run ()
1700{
1701  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702  if { { ac_try="$ac_link"
1703case "(($ac_try" in
1704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705  *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709  (eval "$ac_link") 2>&5
1710  ac_status=$?
1711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713  { { case "(($ac_try" in
1714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715  *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
1719  (eval "$ac_try") 2>&5
1720  ac_status=$?
1721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722  test $ac_status = 0; }; }; then :
1723  ac_retval=0
1724else
1725  $as_echo "$as_me: program exited with status $ac_status" >&5
1726       $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729       ac_retval=$ac_status
1730fi
1731  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733  as_fn_set_status $ac_retval
1734
1735} # ac_fn_c_try_run
1736
1737# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1738# -------------------------------------------------------
1739# Tests whether HEADER exists and can be compiled using the include files in
1740# INCLUDES, setting the cache variable VAR accordingly.
1741ac_fn_c_check_header_compile ()
1742{
1743  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745$as_echo_n "checking for $2... " >&6; }
1746if eval \${$3+:} false; then :
1747  $as_echo_n "(cached) " >&6
1748else
1749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750/* end confdefs.h.  */
1751$4
1752#include <$2>
1753_ACEOF
1754if ac_fn_c_try_compile "$LINENO"; then :
1755  eval "$3=yes"
1756else
1757  eval "$3=no"
1758fi
1759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760fi
1761eval ac_res=\$$3
1762	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763$as_echo "$ac_res" >&6; }
1764  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766} # ac_fn_c_check_header_compile
1767
1768# ac_fn_c_try_link LINENO
1769# -----------------------
1770# Try to link conftest.$ac_ext, and return whether this succeeded.
1771ac_fn_c_try_link ()
1772{
1773  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774  rm -f conftest.$ac_objext conftest$ac_exeext
1775  if { { ac_try="$ac_link"
1776case "(($ac_try" in
1777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778  *) ac_try_echo=$ac_try;;
1779esac
1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781$as_echo "$ac_try_echo"; } >&5
1782  (eval "$ac_link") 2>conftest.err
1783  ac_status=$?
1784  if test -s conftest.err; then
1785    grep -v '^ *+' conftest.err >conftest.er1
1786    cat conftest.er1 >&5
1787    mv -f conftest.er1 conftest.err
1788  fi
1789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790  test $ac_status = 0; } && {
1791	 test -z "$ac_c_werror_flag" ||
1792	 test ! -s conftest.err
1793       } && test -s conftest$ac_exeext && {
1794	 test "$cross_compiling" = yes ||
1795	 test -x conftest$ac_exeext
1796       }; then :
1797  ac_retval=0
1798else
1799  $as_echo "$as_me: failed program was:" >&5
1800sed 's/^/| /' conftest.$ac_ext >&5
1801
1802	ac_retval=1
1803fi
1804  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1805  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1806  # interfere with the next link command; also delete a directory that is
1807  # left behind by Apple's compiler.  We do this before executing the actions.
1808  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810  as_fn_set_status $ac_retval
1811
1812} # ac_fn_c_try_link
1813
1814# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1815# -------------------------------------------
1816# Tests whether TYPE exists after having included INCLUDES, setting cache
1817# variable VAR accordingly.
1818ac_fn_c_check_type ()
1819{
1820  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822$as_echo_n "checking for $2... " >&6; }
1823if eval \${$3+:} false; then :
1824  $as_echo_n "(cached) " >&6
1825else
1826  eval "$3=no"
1827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828/* end confdefs.h.  */
1829$4
1830int
1831main ()
1832{
1833if (sizeof ($2))
1834	 return 0;
1835  ;
1836  return 0;
1837}
1838_ACEOF
1839if ac_fn_c_try_compile "$LINENO"; then :
1840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841/* end confdefs.h.  */
1842$4
1843int
1844main ()
1845{
1846if (sizeof (($2)))
1847	    return 0;
1848  ;
1849  return 0;
1850}
1851_ACEOF
1852if ac_fn_c_try_compile "$LINENO"; then :
1853
1854else
1855  eval "$3=yes"
1856fi
1857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1858fi
1859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860fi
1861eval ac_res=\$$3
1862	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863$as_echo "$ac_res" >&6; }
1864  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865
1866} # ac_fn_c_check_type
1867
1868# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1869# ---------------------------------------------
1870# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1871# accordingly.
1872ac_fn_c_check_decl ()
1873{
1874  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875  as_decl_name=`echo $2|sed 's/ *(.*//'`
1876  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1877  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1878$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1879if eval \${$3+:} false; then :
1880  $as_echo_n "(cached) " >&6
1881else
1882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883/* end confdefs.h.  */
1884$4
1885int
1886main ()
1887{
1888#ifndef $as_decl_name
1889#ifdef __cplusplus
1890  (void) $as_decl_use;
1891#else
1892  (void) $as_decl_name;
1893#endif
1894#endif
1895
1896  ;
1897  return 0;
1898}
1899_ACEOF
1900if ac_fn_c_try_compile "$LINENO"; then :
1901  eval "$3=yes"
1902else
1903  eval "$3=no"
1904fi
1905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906fi
1907eval ac_res=\$$3
1908	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909$as_echo "$ac_res" >&6; }
1910  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911
1912} # ac_fn_c_check_decl
1913
1914# ac_fn_c_check_func LINENO FUNC VAR
1915# ----------------------------------
1916# Tests whether FUNC exists, setting the cache variable VAR accordingly
1917ac_fn_c_check_func ()
1918{
1919  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921$as_echo_n "checking for $2... " >&6; }
1922if eval \${$3+:} false; then :
1923  $as_echo_n "(cached) " >&6
1924else
1925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926/* end confdefs.h.  */
1927/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1928   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1929#define $2 innocuous_$2
1930
1931/* System header to define __stub macros and hopefully few prototypes,
1932    which can conflict with char $2 (); below.
1933    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1934    <limits.h> exists even on freestanding compilers.  */
1935
1936#ifdef __STDC__
1937# include <limits.h>
1938#else
1939# include <assert.h>
1940#endif
1941
1942#undef $2
1943
1944/* Override any GCC internal prototype to avoid an error.
1945   Use char because int might match the return type of a GCC
1946   builtin and then its argument prototype would still apply.  */
1947#ifdef __cplusplus
1948extern "C"
1949#endif
1950char $2 ();
1951/* The GNU C library defines this for functions which it implements
1952    to always fail with ENOSYS.  Some functions are actually named
1953    something starting with __ and the normal name is an alias.  */
1954#if defined __stub_$2 || defined __stub___$2
1955choke me
1956#endif
1957
1958int
1959main ()
1960{
1961return $2 ();
1962  ;
1963  return 0;
1964}
1965_ACEOF
1966if ac_fn_c_try_link "$LINENO"; then :
1967  eval "$3=yes"
1968else
1969  eval "$3=no"
1970fi
1971rm -f core conftest.err conftest.$ac_objext \
1972    conftest$ac_exeext conftest.$ac_ext
1973fi
1974eval ac_res=\$$3
1975	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976$as_echo "$ac_res" >&6; }
1977  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978
1979} # ac_fn_c_check_func
1980
1981# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1982# ----------------------------------------------------
1983# Tries to find if the field MEMBER exists in type AGGR, after including
1984# INCLUDES, setting cache variable VAR accordingly.
1985ac_fn_c_check_member ()
1986{
1987  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1989$as_echo_n "checking for $2.$3... " >&6; }
1990if eval \${$4+:} false; then :
1991  $as_echo_n "(cached) " >&6
1992else
1993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994/* end confdefs.h.  */
1995$5
1996int
1997main ()
1998{
1999static $2 ac_aggr;
2000if (ac_aggr.$3)
2001return 0;
2002  ;
2003  return 0;
2004}
2005_ACEOF
2006if ac_fn_c_try_compile "$LINENO"; then :
2007  eval "$4=yes"
2008else
2009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010/* end confdefs.h.  */
2011$5
2012int
2013main ()
2014{
2015static $2 ac_aggr;
2016if (sizeof ac_aggr.$3)
2017return 0;
2018  ;
2019  return 0;
2020}
2021_ACEOF
2022if ac_fn_c_try_compile "$LINENO"; then :
2023  eval "$4=yes"
2024else
2025  eval "$4=no"
2026fi
2027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028fi
2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030fi
2031eval ac_res=\$$4
2032	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033$as_echo "$ac_res" >&6; }
2034  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035
2036} # ac_fn_c_check_member
2037
2038# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2039# --------------------------------------------
2040# Tries to find the compile-time value of EXPR in a program that includes
2041# INCLUDES, setting VAR accordingly. Returns whether the value could be
2042# computed
2043ac_fn_c_compute_int ()
2044{
2045  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046  if test "$cross_compiling" = yes; then
2047    # Depending upon the size, compute the lo and hi bounds.
2048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049/* end confdefs.h.  */
2050$4
2051int
2052main ()
2053{
2054static int test_array [1 - 2 * !(($2) >= 0)];
2055test_array [0] = 0;
2056return test_array [0];
2057
2058  ;
2059  return 0;
2060}
2061_ACEOF
2062if ac_fn_c_try_compile "$LINENO"; then :
2063  ac_lo=0 ac_mid=0
2064  while :; do
2065    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066/* end confdefs.h.  */
2067$4
2068int
2069main ()
2070{
2071static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2072test_array [0] = 0;
2073return test_array [0];
2074
2075  ;
2076  return 0;
2077}
2078_ACEOF
2079if ac_fn_c_try_compile "$LINENO"; then :
2080  ac_hi=$ac_mid; break
2081else
2082  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2083			if test $ac_lo -le $ac_mid; then
2084			  ac_lo= ac_hi=
2085			  break
2086			fi
2087			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2088fi
2089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090  done
2091else
2092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093/* end confdefs.h.  */
2094$4
2095int
2096main ()
2097{
2098static int test_array [1 - 2 * !(($2) < 0)];
2099test_array [0] = 0;
2100return test_array [0];
2101
2102  ;
2103  return 0;
2104}
2105_ACEOF
2106if ac_fn_c_try_compile "$LINENO"; then :
2107  ac_hi=-1 ac_mid=-1
2108  while :; do
2109    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110/* end confdefs.h.  */
2111$4
2112int
2113main ()
2114{
2115static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2116test_array [0] = 0;
2117return test_array [0];
2118
2119  ;
2120  return 0;
2121}
2122_ACEOF
2123if ac_fn_c_try_compile "$LINENO"; then :
2124  ac_lo=$ac_mid; break
2125else
2126  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2127			if test $ac_mid -le $ac_hi; then
2128			  ac_lo= ac_hi=
2129			  break
2130			fi
2131			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2132fi
2133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134  done
2135else
2136  ac_lo= ac_hi=
2137fi
2138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139fi
2140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141# Binary search between lo and hi bounds.
2142while test "x$ac_lo" != "x$ac_hi"; do
2143  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145/* end confdefs.h.  */
2146$4
2147int
2148main ()
2149{
2150static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2151test_array [0] = 0;
2152return test_array [0];
2153
2154  ;
2155  return 0;
2156}
2157_ACEOF
2158if ac_fn_c_try_compile "$LINENO"; then :
2159  ac_hi=$ac_mid
2160else
2161  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2162fi
2163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164done
2165case $ac_lo in #((
2166?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2167'') ac_retval=1 ;;
2168esac
2169  else
2170    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171/* end confdefs.h.  */
2172$4
2173static long int longval () { return $2; }
2174static unsigned long int ulongval () { return $2; }
2175#include <stdio.h>
2176#include <stdlib.h>
2177int
2178main ()
2179{
2180
2181  FILE *f = fopen ("conftest.val", "w");
2182  if (! f)
2183    return 1;
2184  if (($2) < 0)
2185    {
2186      long int i = longval ();
2187      if (i != ($2))
2188	return 1;
2189      fprintf (f, "%ld", i);
2190    }
2191  else
2192    {
2193      unsigned long int i = ulongval ();
2194      if (i != ($2))
2195	return 1;
2196      fprintf (f, "%lu", i);
2197    }
2198  /* Do not output a trailing newline, as this causes \r\n confusion
2199     on some platforms.  */
2200  return ferror (f) || fclose (f) != 0;
2201
2202  ;
2203  return 0;
2204}
2205_ACEOF
2206if ac_fn_c_try_run "$LINENO"; then :
2207  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2208else
2209  ac_retval=1
2210fi
2211rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2212  conftest.$ac_objext conftest.beam conftest.$ac_ext
2213rm -f conftest.val
2214
2215  fi
2216  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217  as_fn_set_status $ac_retval
2218
2219} # ac_fn_c_compute_int
2220cat >config.log <<_ACEOF
2221This file contains any messages produced by compilers while
2222running configure, to aid debugging if configure makes a mistake.
2223
2224It was created by NSD $as_me 4.1.27, which was
2225generated by GNU Autoconf 2.69.  Invocation command line was
2226
2227  $ $0 $@
2228
2229_ACEOF
2230exec 5>>config.log
2231{
2232cat <<_ASUNAME
2233## --------- ##
2234## Platform. ##
2235## --------- ##
2236
2237hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2238uname -m = `(uname -m) 2>/dev/null || echo unknown`
2239uname -r = `(uname -r) 2>/dev/null || echo unknown`
2240uname -s = `(uname -s) 2>/dev/null || echo unknown`
2241uname -v = `(uname -v) 2>/dev/null || echo unknown`
2242
2243/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2244/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2245
2246/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2247/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2248/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2249/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2250/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2251/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2252/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2253
2254_ASUNAME
2255
2256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257for as_dir in $PATH
2258do
2259  IFS=$as_save_IFS
2260  test -z "$as_dir" && as_dir=.
2261    $as_echo "PATH: $as_dir"
2262  done
2263IFS=$as_save_IFS
2264
2265} >&5
2266
2267cat >&5 <<_ACEOF
2268
2269
2270## ----------- ##
2271## Core tests. ##
2272## ----------- ##
2273
2274_ACEOF
2275
2276
2277# Keep a trace of the command line.
2278# Strip out --no-create and --no-recursion so they do not pile up.
2279# Strip out --silent because we don't want to record it for future runs.
2280# Also quote any args containing shell meta-characters.
2281# Make two passes to allow for proper duplicate-argument suppression.
2282ac_configure_args=
2283ac_configure_args0=
2284ac_configure_args1=
2285ac_must_keep_next=false
2286for ac_pass in 1 2
2287do
2288  for ac_arg
2289  do
2290    case $ac_arg in
2291    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2292    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2293    | -silent | --silent | --silen | --sile | --sil)
2294      continue ;;
2295    *\'*)
2296      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2297    esac
2298    case $ac_pass in
2299    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2300    2)
2301      as_fn_append ac_configure_args1 " '$ac_arg'"
2302      if test $ac_must_keep_next = true; then
2303	ac_must_keep_next=false # Got value, back to normal.
2304      else
2305	case $ac_arg in
2306	  *=* | --config-cache | -C | -disable-* | --disable-* \
2307	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2308	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2309	  | -with-* | --with-* | -without-* | --without-* | --x)
2310	    case "$ac_configure_args0 " in
2311	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2312	    esac
2313	    ;;
2314	  -* ) ac_must_keep_next=true ;;
2315	esac
2316      fi
2317      as_fn_append ac_configure_args " '$ac_arg'"
2318      ;;
2319    esac
2320  done
2321done
2322{ ac_configure_args0=; unset ac_configure_args0;}
2323{ ac_configure_args1=; unset ac_configure_args1;}
2324
2325# When interrupted or exit'd, cleanup temporary files, and complete
2326# config.log.  We remove comments because anyway the quotes in there
2327# would cause problems or look ugly.
2328# WARNING: Use '\'' to represent an apostrophe within the trap.
2329# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2330trap 'exit_status=$?
2331  # Save into config.log some information that might help in debugging.
2332  {
2333    echo
2334
2335    $as_echo "## ---------------- ##
2336## Cache variables. ##
2337## ---------------- ##"
2338    echo
2339    # The following way of writing the cache mishandles newlines in values,
2340(
2341  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2342    eval ac_val=\$$ac_var
2343    case $ac_val in #(
2344    *${as_nl}*)
2345      case $ac_var in #(
2346      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2347$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2348      esac
2349      case $ac_var in #(
2350      _ | IFS | as_nl) ;; #(
2351      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2352      *) { eval $ac_var=; unset $ac_var;} ;;
2353      esac ;;
2354    esac
2355  done
2356  (set) 2>&1 |
2357    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2358    *${as_nl}ac_space=\ *)
2359      sed -n \
2360	"s/'\''/'\''\\\\'\'''\''/g;
2361	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2362      ;; #(
2363    *)
2364      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2365      ;;
2366    esac |
2367    sort
2368)
2369    echo
2370
2371    $as_echo "## ----------------- ##
2372## Output variables. ##
2373## ----------------- ##"
2374    echo
2375    for ac_var in $ac_subst_vars
2376    do
2377      eval ac_val=\$$ac_var
2378      case $ac_val in
2379      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2380      esac
2381      $as_echo "$ac_var='\''$ac_val'\''"
2382    done | sort
2383    echo
2384
2385    if test -n "$ac_subst_files"; then
2386      $as_echo "## ------------------- ##
2387## File substitutions. ##
2388## ------------------- ##"
2389      echo
2390      for ac_var in $ac_subst_files
2391      do
2392	eval ac_val=\$$ac_var
2393	case $ac_val in
2394	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2395	esac
2396	$as_echo "$ac_var='\''$ac_val'\''"
2397      done | sort
2398      echo
2399    fi
2400
2401    if test -s confdefs.h; then
2402      $as_echo "## ----------- ##
2403## confdefs.h. ##
2404## ----------- ##"
2405      echo
2406      cat confdefs.h
2407      echo
2408    fi
2409    test "$ac_signal" != 0 &&
2410      $as_echo "$as_me: caught signal $ac_signal"
2411    $as_echo "$as_me: exit $exit_status"
2412  } >&5
2413  rm -f core *.core core.conftest.* &&
2414    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2415    exit $exit_status
2416' 0
2417for ac_signal in 1 2 13 15; do
2418  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2419done
2420ac_signal=0
2421
2422# confdefs.h avoids OS command line length limits that DEFS can exceed.
2423rm -f -r conftest* confdefs.h
2424
2425$as_echo "/* confdefs.h */" > confdefs.h
2426
2427# Predefined preprocessor variables.
2428
2429cat >>confdefs.h <<_ACEOF
2430#define PACKAGE_NAME "$PACKAGE_NAME"
2431_ACEOF
2432
2433cat >>confdefs.h <<_ACEOF
2434#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2435_ACEOF
2436
2437cat >>confdefs.h <<_ACEOF
2438#define PACKAGE_VERSION "$PACKAGE_VERSION"
2439_ACEOF
2440
2441cat >>confdefs.h <<_ACEOF
2442#define PACKAGE_STRING "$PACKAGE_STRING"
2443_ACEOF
2444
2445cat >>confdefs.h <<_ACEOF
2446#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2447_ACEOF
2448
2449cat >>confdefs.h <<_ACEOF
2450#define PACKAGE_URL "$PACKAGE_URL"
2451_ACEOF
2452
2453
2454# Let the site file select an alternate cache file if it wants to.
2455# Prefer an explicitly selected file to automatically selected ones.
2456ac_site_file1=NONE
2457ac_site_file2=NONE
2458if test -n "$CONFIG_SITE"; then
2459  # We do not want a PATH search for config.site.
2460  case $CONFIG_SITE in #((
2461    -*)  ac_site_file1=./$CONFIG_SITE;;
2462    */*) ac_site_file1=$CONFIG_SITE;;
2463    *)   ac_site_file1=./$CONFIG_SITE;;
2464  esac
2465elif test "x$prefix" != xNONE; then
2466  ac_site_file1=$prefix/share/config.site
2467  ac_site_file2=$prefix/etc/config.site
2468else
2469  ac_site_file1=$ac_default_prefix/share/config.site
2470  ac_site_file2=$ac_default_prefix/etc/config.site
2471fi
2472for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2473do
2474  test "x$ac_site_file" = xNONE && continue
2475  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2476    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2477$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2478    sed 's/^/| /' "$ac_site_file" >&5
2479    . "$ac_site_file" \
2480      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2482as_fn_error $? "failed to load site script $ac_site_file
2483See \`config.log' for more details" "$LINENO" 5; }
2484  fi
2485done
2486
2487if test -r "$cache_file"; then
2488  # Some versions of bash will fail to source /dev/null (special files
2489  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2490  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2491    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2492$as_echo "$as_me: loading cache $cache_file" >&6;}
2493    case $cache_file in
2494      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2495      *)                      . "./$cache_file";;
2496    esac
2497  fi
2498else
2499  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2500$as_echo "$as_me: creating cache $cache_file" >&6;}
2501  >$cache_file
2502fi
2503
2504# Check that the precious variables saved in the cache have kept the same
2505# value.
2506ac_cache_corrupted=false
2507for ac_var in $ac_precious_vars; do
2508  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2509  eval ac_new_set=\$ac_env_${ac_var}_set
2510  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2511  eval ac_new_val=\$ac_env_${ac_var}_value
2512  case $ac_old_set,$ac_new_set in
2513    set,)
2514      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2515$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2516      ac_cache_corrupted=: ;;
2517    ,set)
2518      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2519$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2520      ac_cache_corrupted=: ;;
2521    ,);;
2522    *)
2523      if test "x$ac_old_val" != "x$ac_new_val"; then
2524	# differences in whitespace do not lead to failure.
2525	ac_old_val_w=`echo x $ac_old_val`
2526	ac_new_val_w=`echo x $ac_new_val`
2527	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2528	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2529$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2530	  ac_cache_corrupted=:
2531	else
2532	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2533$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2534	  eval $ac_var=\$ac_old_val
2535	fi
2536	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2537$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2538	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2539$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2540      fi;;
2541  esac
2542  # Pass precious variables to config.status.
2543  if test "$ac_new_set" = set; then
2544    case $ac_new_val in
2545    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2546    *) ac_arg=$ac_var=$ac_new_val ;;
2547    esac
2548    case " $ac_configure_args " in
2549      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2550      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2551    esac
2552  fi
2553done
2554if $ac_cache_corrupted; then
2555  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2557  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2558$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2559  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2560fi
2561## -------------------- ##
2562## Main body of script. ##
2563## -------------------- ##
2564
2565ac_ext=c
2566ac_cpp='$CPP $CPPFLAGS'
2567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2569ac_compiler_gnu=$ac_cv_c_compiler_gnu
2570
2571
2572ac_config_headers="$ac_config_headers config.h"
2573
2574
2575CFLAGS="$CFLAGS"
2576ac_ext=c
2577ac_cpp='$CPP $CPPFLAGS'
2578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2580ac_compiler_gnu=$ac_cv_c_compiler_gnu
2581if test -n "$ac_tool_prefix"; then
2582  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2583set dummy ${ac_tool_prefix}gcc; ac_word=$2
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2585$as_echo_n "checking for $ac_word... " >&6; }
2586if ${ac_cv_prog_CC+:} false; then :
2587  $as_echo_n "(cached) " >&6
2588else
2589  if test -n "$CC"; then
2590  ac_cv_prog_CC="$CC" # Let the user override the test.
2591else
2592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595  IFS=$as_save_IFS
2596  test -z "$as_dir" && as_dir=.
2597    for ac_exec_ext in '' $ac_executable_extensions; do
2598  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2599    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2600    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2601    break 2
2602  fi
2603done
2604  done
2605IFS=$as_save_IFS
2606
2607fi
2608fi
2609CC=$ac_cv_prog_CC
2610if test -n "$CC"; then
2611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2612$as_echo "$CC" >&6; }
2613else
2614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615$as_echo "no" >&6; }
2616fi
2617
2618
2619fi
2620if test -z "$ac_cv_prog_CC"; then
2621  ac_ct_CC=$CC
2622  # Extract the first word of "gcc", so it can be a program name with args.
2623set dummy gcc; ac_word=$2
2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625$as_echo_n "checking for $ac_word... " >&6; }
2626if ${ac_cv_prog_ac_ct_CC+:} false; then :
2627  $as_echo_n "(cached) " >&6
2628else
2629  if test -n "$ac_ct_CC"; then
2630  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2631else
2632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633for as_dir in $PATH
2634do
2635  IFS=$as_save_IFS
2636  test -z "$as_dir" && as_dir=.
2637    for ac_exec_ext in '' $ac_executable_extensions; do
2638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2639    ac_cv_prog_ac_ct_CC="gcc"
2640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2641    break 2
2642  fi
2643done
2644  done
2645IFS=$as_save_IFS
2646
2647fi
2648fi
2649ac_ct_CC=$ac_cv_prog_ac_ct_CC
2650if test -n "$ac_ct_CC"; then
2651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2652$as_echo "$ac_ct_CC" >&6; }
2653else
2654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655$as_echo "no" >&6; }
2656fi
2657
2658  if test "x$ac_ct_CC" = x; then
2659    CC=""
2660  else
2661    case $cross_compiling:$ac_tool_warned in
2662yes:)
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2664$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2665ac_tool_warned=yes ;;
2666esac
2667    CC=$ac_ct_CC
2668  fi
2669else
2670  CC="$ac_cv_prog_CC"
2671fi
2672
2673if test -z "$CC"; then
2674          if test -n "$ac_tool_prefix"; then
2675    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2676set dummy ${ac_tool_prefix}cc; ac_word=$2
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678$as_echo_n "checking for $ac_word... " >&6; }
2679if ${ac_cv_prog_CC+:} false; then :
2680  $as_echo_n "(cached) " >&6
2681else
2682  if test -n "$CC"; then
2683  ac_cv_prog_CC="$CC" # Let the user override the test.
2684else
2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686for as_dir in $PATH
2687do
2688  IFS=$as_save_IFS
2689  test -z "$as_dir" && as_dir=.
2690    for ac_exec_ext in '' $ac_executable_extensions; do
2691  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692    ac_cv_prog_CC="${ac_tool_prefix}cc"
2693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694    break 2
2695  fi
2696done
2697  done
2698IFS=$as_save_IFS
2699
2700fi
2701fi
2702CC=$ac_cv_prog_CC
2703if test -n "$CC"; then
2704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2705$as_echo "$CC" >&6; }
2706else
2707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708$as_echo "no" >&6; }
2709fi
2710
2711
2712  fi
2713fi
2714if test -z "$CC"; then
2715  # Extract the first word of "cc", so it can be a program name with args.
2716set dummy cc; ac_word=$2
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718$as_echo_n "checking for $ac_word... " >&6; }
2719if ${ac_cv_prog_CC+:} false; then :
2720  $as_echo_n "(cached) " >&6
2721else
2722  if test -n "$CC"; then
2723  ac_cv_prog_CC="$CC" # Let the user override the test.
2724else
2725  ac_prog_rejected=no
2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727for as_dir in $PATH
2728do
2729  IFS=$as_save_IFS
2730  test -z "$as_dir" && as_dir=.
2731    for ac_exec_ext in '' $ac_executable_extensions; do
2732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2734       ac_prog_rejected=yes
2735       continue
2736     fi
2737    ac_cv_prog_CC="cc"
2738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739    break 2
2740  fi
2741done
2742  done
2743IFS=$as_save_IFS
2744
2745if test $ac_prog_rejected = yes; then
2746  # We found a bogon in the path, so make sure we never use it.
2747  set dummy $ac_cv_prog_CC
2748  shift
2749  if test $# != 0; then
2750    # We chose a different compiler from the bogus one.
2751    # However, it has the same basename, so the bogon will be chosen
2752    # first if we set CC to just the basename; use the full file name.
2753    shift
2754    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2755  fi
2756fi
2757fi
2758fi
2759CC=$ac_cv_prog_CC
2760if test -n "$CC"; then
2761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2762$as_echo "$CC" >&6; }
2763else
2764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765$as_echo "no" >&6; }
2766fi
2767
2768
2769fi
2770if test -z "$CC"; then
2771  if test -n "$ac_tool_prefix"; then
2772  for ac_prog in cl.exe
2773  do
2774    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2775set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777$as_echo_n "checking for $ac_word... " >&6; }
2778if ${ac_cv_prog_CC+:} false; then :
2779  $as_echo_n "(cached) " >&6
2780else
2781  if test -n "$CC"; then
2782  ac_cv_prog_CC="$CC" # Let the user override the test.
2783else
2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785for as_dir in $PATH
2786do
2787  IFS=$as_save_IFS
2788  test -z "$as_dir" && as_dir=.
2789    for ac_exec_ext in '' $ac_executable_extensions; do
2790  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793    break 2
2794  fi
2795done
2796  done
2797IFS=$as_save_IFS
2798
2799fi
2800fi
2801CC=$ac_cv_prog_CC
2802if test -n "$CC"; then
2803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2804$as_echo "$CC" >&6; }
2805else
2806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807$as_echo "no" >&6; }
2808fi
2809
2810
2811    test -n "$CC" && break
2812  done
2813fi
2814if test -z "$CC"; then
2815  ac_ct_CC=$CC
2816  for ac_prog in cl.exe
2817do
2818  # Extract the first word of "$ac_prog", so it can be a program name with args.
2819set dummy $ac_prog; ac_word=$2
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821$as_echo_n "checking for $ac_word... " >&6; }
2822if ${ac_cv_prog_ac_ct_CC+:} false; then :
2823  $as_echo_n "(cached) " >&6
2824else
2825  if test -n "$ac_ct_CC"; then
2826  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2827else
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831  IFS=$as_save_IFS
2832  test -z "$as_dir" && as_dir=.
2833    for ac_exec_ext in '' $ac_executable_extensions; do
2834  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835    ac_cv_prog_ac_ct_CC="$ac_prog"
2836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837    break 2
2838  fi
2839done
2840  done
2841IFS=$as_save_IFS
2842
2843fi
2844fi
2845ac_ct_CC=$ac_cv_prog_ac_ct_CC
2846if test -n "$ac_ct_CC"; then
2847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2848$as_echo "$ac_ct_CC" >&6; }
2849else
2850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851$as_echo "no" >&6; }
2852fi
2853
2854
2855  test -n "$ac_ct_CC" && break
2856done
2857
2858  if test "x$ac_ct_CC" = x; then
2859    CC=""
2860  else
2861    case $cross_compiling:$ac_tool_warned in
2862yes:)
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2865ac_tool_warned=yes ;;
2866esac
2867    CC=$ac_ct_CC
2868  fi
2869fi
2870
2871fi
2872
2873
2874test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2876as_fn_error $? "no acceptable C compiler found in \$PATH
2877See \`config.log' for more details" "$LINENO" 5; }
2878
2879# Provide some information about the compiler.
2880$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2881set X $ac_compile
2882ac_compiler=$2
2883for ac_option in --version -v -V -qversion; do
2884  { { ac_try="$ac_compiler $ac_option >&5"
2885case "(($ac_try" in
2886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887  *) ac_try_echo=$ac_try;;
2888esac
2889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2890$as_echo "$ac_try_echo"; } >&5
2891  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2892  ac_status=$?
2893  if test -s conftest.err; then
2894    sed '10a\
2895... rest of stderr output deleted ...
2896         10q' conftest.err >conftest.er1
2897    cat conftest.er1 >&5
2898  fi
2899  rm -f conftest.er1 conftest.err
2900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2901  test $ac_status = 0; }
2902done
2903
2904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2905/* end confdefs.h.  */
2906
2907int
2908main ()
2909{
2910
2911  ;
2912  return 0;
2913}
2914_ACEOF
2915ac_clean_files_save=$ac_clean_files
2916ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2917# Try to create an executable without -o first, disregard a.out.
2918# It will help us diagnose broken compilers, and finding out an intuition
2919# of exeext.
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2921$as_echo_n "checking whether the C compiler works... " >&6; }
2922ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2923
2924# The possible output files:
2925ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2926
2927ac_rmfiles=
2928for ac_file in $ac_files
2929do
2930  case $ac_file in
2931    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2932    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2933  esac
2934done
2935rm -f $ac_rmfiles
2936
2937if { { ac_try="$ac_link_default"
2938case "(($ac_try" in
2939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940  *) ac_try_echo=$ac_try;;
2941esac
2942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943$as_echo "$ac_try_echo"; } >&5
2944  (eval "$ac_link_default") 2>&5
2945  ac_status=$?
2946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2947  test $ac_status = 0; }; then :
2948  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2949# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2950# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2951# so that the user can short-circuit this test for compilers unknown to
2952# Autoconf.
2953for ac_file in $ac_files ''
2954do
2955  test -f "$ac_file" || continue
2956  case $ac_file in
2957    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2958	;;
2959    [ab].out )
2960	# We found the default executable, but exeext='' is most
2961	# certainly right.
2962	break;;
2963    *.* )
2964	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2965	then :; else
2966	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2967	fi
2968	# We set ac_cv_exeext here because the later test for it is not
2969	# safe: cross compilers may not add the suffix if given an `-o'
2970	# argument, so we may need to know it at that point already.
2971	# Even if this section looks crufty: it has the advantage of
2972	# actually working.
2973	break;;
2974    * )
2975	break;;
2976  esac
2977done
2978test "$ac_cv_exeext" = no && ac_cv_exeext=
2979
2980else
2981  ac_file=''
2982fi
2983if test -z "$ac_file"; then :
2984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985$as_echo "no" >&6; }
2986$as_echo "$as_me: failed program was:" >&5
2987sed 's/^/| /' conftest.$ac_ext >&5
2988
2989{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991as_fn_error 77 "C compiler cannot create executables
2992See \`config.log' for more details" "$LINENO" 5; }
2993else
2994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2995$as_echo "yes" >&6; }
2996fi
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2998$as_echo_n "checking for C compiler default output file name... " >&6; }
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3000$as_echo "$ac_file" >&6; }
3001ac_exeext=$ac_cv_exeext
3002
3003rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3004ac_clean_files=$ac_clean_files_save
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3006$as_echo_n "checking for suffix of executables... " >&6; }
3007if { { ac_try="$ac_link"
3008case "(($ac_try" in
3009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010  *) ac_try_echo=$ac_try;;
3011esac
3012eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3013$as_echo "$ac_try_echo"; } >&5
3014  (eval "$ac_link") 2>&5
3015  ac_status=$?
3016  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3017  test $ac_status = 0; }; then :
3018  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3019# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3020# work properly (i.e., refer to `conftest.exe'), while it won't with
3021# `rm'.
3022for ac_file in conftest.exe conftest conftest.*; do
3023  test -f "$ac_file" || continue
3024  case $ac_file in
3025    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3026    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3027	  break;;
3028    * ) break;;
3029  esac
3030done
3031else
3032  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3033$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3034as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3035See \`config.log' for more details" "$LINENO" 5; }
3036fi
3037rm -f conftest conftest$ac_cv_exeext
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3039$as_echo "$ac_cv_exeext" >&6; }
3040
3041rm -f conftest.$ac_ext
3042EXEEXT=$ac_cv_exeext
3043ac_exeext=$EXEEXT
3044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045/* end confdefs.h.  */
3046#include <stdio.h>
3047int
3048main ()
3049{
3050FILE *f = fopen ("conftest.out", "w");
3051 return ferror (f) || fclose (f) != 0;
3052
3053  ;
3054  return 0;
3055}
3056_ACEOF
3057ac_clean_files="$ac_clean_files conftest.out"
3058# Check that the compiler produces executables we can run.  If not, either
3059# the compiler is broken, or we cross compile.
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3061$as_echo_n "checking whether we are cross compiling... " >&6; }
3062if test "$cross_compiling" != yes; then
3063  { { ac_try="$ac_link"
3064case "(($ac_try" in
3065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066  *) ac_try_echo=$ac_try;;
3067esac
3068eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069$as_echo "$ac_try_echo"; } >&5
3070  (eval "$ac_link") 2>&5
3071  ac_status=$?
3072  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073  test $ac_status = 0; }
3074  if { ac_try='./conftest$ac_cv_exeext'
3075  { { case "(($ac_try" in
3076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077  *) ac_try_echo=$ac_try;;
3078esac
3079eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3080$as_echo "$ac_try_echo"; } >&5
3081  (eval "$ac_try") 2>&5
3082  ac_status=$?
3083  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084  test $ac_status = 0; }; }; then
3085    cross_compiling=no
3086  else
3087    if test "$cross_compiling" = maybe; then
3088	cross_compiling=yes
3089    else
3090	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3092as_fn_error $? "cannot run C compiled programs.
3093If you meant to cross compile, use \`--host'.
3094See \`config.log' for more details" "$LINENO" 5; }
3095    fi
3096  fi
3097fi
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3099$as_echo "$cross_compiling" >&6; }
3100
3101rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3102ac_clean_files=$ac_clean_files_save
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3104$as_echo_n "checking for suffix of object files... " >&6; }
3105if ${ac_cv_objext+:} false; then :
3106  $as_echo_n "(cached) " >&6
3107else
3108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109/* end confdefs.h.  */
3110
3111int
3112main ()
3113{
3114
3115  ;
3116  return 0;
3117}
3118_ACEOF
3119rm -f conftest.o conftest.obj
3120if { { ac_try="$ac_compile"
3121case "(($ac_try" in
3122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123  *) ac_try_echo=$ac_try;;
3124esac
3125eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126$as_echo "$ac_try_echo"; } >&5
3127  (eval "$ac_compile") 2>&5
3128  ac_status=$?
3129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130  test $ac_status = 0; }; then :
3131  for ac_file in conftest.o conftest.obj conftest.*; do
3132  test -f "$ac_file" || continue;
3133  case $ac_file in
3134    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3135    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3136       break;;
3137  esac
3138done
3139else
3140  $as_echo "$as_me: failed program was:" >&5
3141sed 's/^/| /' conftest.$ac_ext >&5
3142
3143{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145as_fn_error $? "cannot compute suffix of object files: cannot compile
3146See \`config.log' for more details" "$LINENO" 5; }
3147fi
3148rm -f conftest.$ac_cv_objext conftest.$ac_ext
3149fi
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3151$as_echo "$ac_cv_objext" >&6; }
3152OBJEXT=$ac_cv_objext
3153ac_objext=$OBJEXT
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3155$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3156if ${ac_cv_c_compiler_gnu+:} false; then :
3157  $as_echo_n "(cached) " >&6
3158else
3159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160/* end confdefs.h.  */
3161
3162int
3163main ()
3164{
3165#ifndef __GNUC__
3166       choke me
3167#endif
3168
3169  ;
3170  return 0;
3171}
3172_ACEOF
3173if ac_fn_c_try_compile "$LINENO"; then :
3174  ac_compiler_gnu=yes
3175else
3176  ac_compiler_gnu=no
3177fi
3178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179ac_cv_c_compiler_gnu=$ac_compiler_gnu
3180
3181fi
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3183$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3184if test $ac_compiler_gnu = yes; then
3185  GCC=yes
3186else
3187  GCC=
3188fi
3189ac_test_CFLAGS=${CFLAGS+set}
3190ac_save_CFLAGS=$CFLAGS
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3192$as_echo_n "checking whether $CC accepts -g... " >&6; }
3193if ${ac_cv_prog_cc_g+:} false; then :
3194  $as_echo_n "(cached) " >&6
3195else
3196  ac_save_c_werror_flag=$ac_c_werror_flag
3197   ac_c_werror_flag=yes
3198   ac_cv_prog_cc_g=no
3199   CFLAGS="-g"
3200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201/* end confdefs.h.  */
3202
3203int
3204main ()
3205{
3206
3207  ;
3208  return 0;
3209}
3210_ACEOF
3211if ac_fn_c_try_compile "$LINENO"; then :
3212  ac_cv_prog_cc_g=yes
3213else
3214  CFLAGS=""
3215      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3216/* end confdefs.h.  */
3217
3218int
3219main ()
3220{
3221
3222  ;
3223  return 0;
3224}
3225_ACEOF
3226if ac_fn_c_try_compile "$LINENO"; then :
3227
3228else
3229  ac_c_werror_flag=$ac_save_c_werror_flag
3230	 CFLAGS="-g"
3231	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232/* end confdefs.h.  */
3233
3234int
3235main ()
3236{
3237
3238  ;
3239  return 0;
3240}
3241_ACEOF
3242if ac_fn_c_try_compile "$LINENO"; then :
3243  ac_cv_prog_cc_g=yes
3244fi
3245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246fi
3247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248fi
3249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250   ac_c_werror_flag=$ac_save_c_werror_flag
3251fi
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3253$as_echo "$ac_cv_prog_cc_g" >&6; }
3254if test "$ac_test_CFLAGS" = set; then
3255  CFLAGS=$ac_save_CFLAGS
3256elif test $ac_cv_prog_cc_g = yes; then
3257  if test "$GCC" = yes; then
3258    CFLAGS="-g -O2"
3259  else
3260    CFLAGS="-g"
3261  fi
3262else
3263  if test "$GCC" = yes; then
3264    CFLAGS="-O2"
3265  else
3266    CFLAGS=
3267  fi
3268fi
3269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3270$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3271if ${ac_cv_prog_cc_c89+:} false; then :
3272  $as_echo_n "(cached) " >&6
3273else
3274  ac_cv_prog_cc_c89=no
3275ac_save_CC=$CC
3276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277/* end confdefs.h.  */
3278#include <stdarg.h>
3279#include <stdio.h>
3280struct stat;
3281/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3282struct buf { int x; };
3283FILE * (*rcsopen) (struct buf *, struct stat *, int);
3284static char *e (p, i)
3285     char **p;
3286     int i;
3287{
3288  return p[i];
3289}
3290static char *f (char * (*g) (char **, int), char **p, ...)
3291{
3292  char *s;
3293  va_list v;
3294  va_start (v,p);
3295  s = g (p, va_arg (v,int));
3296  va_end (v);
3297  return s;
3298}
3299
3300/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3301   function prototypes and stuff, but not '\xHH' hex character constants.
3302   These don't provoke an error unfortunately, instead are silently treated
3303   as 'x'.  The following induces an error, until -std is added to get
3304   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3305   array size at least.  It's necessary to write '\x00'==0 to get something
3306   that's true only with -std.  */
3307int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3308
3309/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3310   inside strings and character constants.  */
3311#define FOO(x) 'x'
3312int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3313
3314int test (int i, double x);
3315struct s1 {int (*f) (int a);};
3316struct s2 {int (*f) (double a);};
3317int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3318int argc;
3319char **argv;
3320int
3321main ()
3322{
3323return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3324  ;
3325  return 0;
3326}
3327_ACEOF
3328for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3329	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3330do
3331  CC="$ac_save_CC $ac_arg"
3332  if ac_fn_c_try_compile "$LINENO"; then :
3333  ac_cv_prog_cc_c89=$ac_arg
3334fi
3335rm -f core conftest.err conftest.$ac_objext
3336  test "x$ac_cv_prog_cc_c89" != "xno" && break
3337done
3338rm -f conftest.$ac_ext
3339CC=$ac_save_CC
3340
3341fi
3342# AC_CACHE_VAL
3343case "x$ac_cv_prog_cc_c89" in
3344  x)
3345    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3346$as_echo "none needed" >&6; } ;;
3347  xno)
3348    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3349$as_echo "unsupported" >&6; } ;;
3350  *)
3351    CC="$CC $ac_cv_prog_cc_c89"
3352    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3353$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3354esac
3355if test "x$ac_cv_prog_cc_c89" != xno; then :
3356
3357fi
3358
3359ac_ext=c
3360ac_cpp='$CPP $CPPFLAGS'
3361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3363ac_compiler_gnu=$ac_cv_c_compiler_gnu
3364
3365
3366ac_ext=c
3367ac_cpp='$CPP $CPPFLAGS'
3368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3370ac_compiler_gnu=$ac_cv_c_compiler_gnu
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3372$as_echo_n "checking how to run the C preprocessor... " >&6; }
3373# On Suns, sometimes $CPP names a directory.
3374if test -n "$CPP" && test -d "$CPP"; then
3375  CPP=
3376fi
3377if test -z "$CPP"; then
3378  if ${ac_cv_prog_CPP+:} false; then :
3379  $as_echo_n "(cached) " >&6
3380else
3381      # Double quotes because CPP needs to be expanded
3382    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3383    do
3384      ac_preproc_ok=false
3385for ac_c_preproc_warn_flag in '' yes
3386do
3387  # Use a header file that comes with gcc, so configuring glibc
3388  # with a fresh cross-compiler works.
3389  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3390  # <limits.h> exists even on freestanding compilers.
3391  # On the NeXT, cc -E runs the code through the compiler's parser,
3392  # not just through cpp. "Syntax error" is here to catch this case.
3393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394/* end confdefs.h.  */
3395#ifdef __STDC__
3396# include <limits.h>
3397#else
3398# include <assert.h>
3399#endif
3400		     Syntax error
3401_ACEOF
3402if ac_fn_c_try_cpp "$LINENO"; then :
3403
3404else
3405  # Broken: fails on valid input.
3406continue
3407fi
3408rm -f conftest.err conftest.i conftest.$ac_ext
3409
3410  # OK, works on sane cases.  Now check whether nonexistent headers
3411  # can be detected and how.
3412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413/* end confdefs.h.  */
3414#include <ac_nonexistent.h>
3415_ACEOF
3416if ac_fn_c_try_cpp "$LINENO"; then :
3417  # Broken: success on invalid input.
3418continue
3419else
3420  # Passes both tests.
3421ac_preproc_ok=:
3422break
3423fi
3424rm -f conftest.err conftest.i conftest.$ac_ext
3425
3426done
3427# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428rm -f conftest.i conftest.err conftest.$ac_ext
3429if $ac_preproc_ok; then :
3430  break
3431fi
3432
3433    done
3434    ac_cv_prog_CPP=$CPP
3435
3436fi
3437  CPP=$ac_cv_prog_CPP
3438else
3439  ac_cv_prog_CPP=$CPP
3440fi
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3442$as_echo "$CPP" >&6; }
3443ac_preproc_ok=false
3444for ac_c_preproc_warn_flag in '' yes
3445do
3446  # Use a header file that comes with gcc, so configuring glibc
3447  # with a fresh cross-compiler works.
3448  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3449  # <limits.h> exists even on freestanding compilers.
3450  # On the NeXT, cc -E runs the code through the compiler's parser,
3451  # not just through cpp. "Syntax error" is here to catch this case.
3452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453/* end confdefs.h.  */
3454#ifdef __STDC__
3455# include <limits.h>
3456#else
3457# include <assert.h>
3458#endif
3459		     Syntax error
3460_ACEOF
3461if ac_fn_c_try_cpp "$LINENO"; then :
3462
3463else
3464  # Broken: fails on valid input.
3465continue
3466fi
3467rm -f conftest.err conftest.i conftest.$ac_ext
3468
3469  # OK, works on sane cases.  Now check whether nonexistent headers
3470  # can be detected and how.
3471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472/* end confdefs.h.  */
3473#include <ac_nonexistent.h>
3474_ACEOF
3475if ac_fn_c_try_cpp "$LINENO"; then :
3476  # Broken: success on invalid input.
3477continue
3478else
3479  # Passes both tests.
3480ac_preproc_ok=:
3481break
3482fi
3483rm -f conftest.err conftest.i conftest.$ac_ext
3484
3485done
3486# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3487rm -f conftest.i conftest.err conftest.$ac_ext
3488if $ac_preproc_ok; then :
3489
3490else
3491  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3493as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3494See \`config.log' for more details" "$LINENO" 5; }
3495fi
3496
3497ac_ext=c
3498ac_cpp='$CPP $CPPFLAGS'
3499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502
3503
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3505$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3506if ${ac_cv_path_GREP+:} false; then :
3507  $as_echo_n "(cached) " >&6
3508else
3509  if test -z "$GREP"; then
3510  ac_path_GREP_found=false
3511  # Loop through the user's path and test for each of PROGNAME-LIST
3512  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3514do
3515  IFS=$as_save_IFS
3516  test -z "$as_dir" && as_dir=.
3517    for ac_prog in grep ggrep; do
3518    for ac_exec_ext in '' $ac_executable_extensions; do
3519      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3520      as_fn_executable_p "$ac_path_GREP" || continue
3521# Check for GNU ac_path_GREP and select it if it is found.
3522  # Check for GNU $ac_path_GREP
3523case `"$ac_path_GREP" --version 2>&1` in
3524*GNU*)
3525  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3526*)
3527  ac_count=0
3528  $as_echo_n 0123456789 >"conftest.in"
3529  while :
3530  do
3531    cat "conftest.in" "conftest.in" >"conftest.tmp"
3532    mv "conftest.tmp" "conftest.in"
3533    cp "conftest.in" "conftest.nl"
3534    $as_echo 'GREP' >> "conftest.nl"
3535    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3536    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3537    as_fn_arith $ac_count + 1 && ac_count=$as_val
3538    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3539      # Best one so far, save it but keep looking for a better one
3540      ac_cv_path_GREP="$ac_path_GREP"
3541      ac_path_GREP_max=$ac_count
3542    fi
3543    # 10*(2^10) chars as input seems more than enough
3544    test $ac_count -gt 10 && break
3545  done
3546  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3547esac
3548
3549      $ac_path_GREP_found && break 3
3550    done
3551  done
3552  done
3553IFS=$as_save_IFS
3554  if test -z "$ac_cv_path_GREP"; then
3555    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3556  fi
3557else
3558  ac_cv_path_GREP=$GREP
3559fi
3560
3561fi
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3563$as_echo "$ac_cv_path_GREP" >&6; }
3564 GREP="$ac_cv_path_GREP"
3565
3566
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3568$as_echo_n "checking for egrep... " >&6; }
3569if ${ac_cv_path_EGREP+:} false; then :
3570  $as_echo_n "(cached) " >&6
3571else
3572  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3573   then ac_cv_path_EGREP="$GREP -E"
3574   else
3575     if test -z "$EGREP"; then
3576  ac_path_EGREP_found=false
3577  # Loop through the user's path and test for each of PROGNAME-LIST
3578  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3580do
3581  IFS=$as_save_IFS
3582  test -z "$as_dir" && as_dir=.
3583    for ac_prog in egrep; do
3584    for ac_exec_ext in '' $ac_executable_extensions; do
3585      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3586      as_fn_executable_p "$ac_path_EGREP" || continue
3587# Check for GNU ac_path_EGREP and select it if it is found.
3588  # Check for GNU $ac_path_EGREP
3589case `"$ac_path_EGREP" --version 2>&1` in
3590*GNU*)
3591  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3592*)
3593  ac_count=0
3594  $as_echo_n 0123456789 >"conftest.in"
3595  while :
3596  do
3597    cat "conftest.in" "conftest.in" >"conftest.tmp"
3598    mv "conftest.tmp" "conftest.in"
3599    cp "conftest.in" "conftest.nl"
3600    $as_echo 'EGREP' >> "conftest.nl"
3601    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3602    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3603    as_fn_arith $ac_count + 1 && ac_count=$as_val
3604    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3605      # Best one so far, save it but keep looking for a better one
3606      ac_cv_path_EGREP="$ac_path_EGREP"
3607      ac_path_EGREP_max=$ac_count
3608    fi
3609    # 10*(2^10) chars as input seems more than enough
3610    test $ac_count -gt 10 && break
3611  done
3612  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3613esac
3614
3615      $ac_path_EGREP_found && break 3
3616    done
3617  done
3618  done
3619IFS=$as_save_IFS
3620  if test -z "$ac_cv_path_EGREP"; then
3621    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3622  fi
3623else
3624  ac_cv_path_EGREP=$EGREP
3625fi
3626
3627   fi
3628fi
3629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3630$as_echo "$ac_cv_path_EGREP" >&6; }
3631 EGREP="$ac_cv_path_EGREP"
3632
3633
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3635$as_echo_n "checking for ANSI C header files... " >&6; }
3636if ${ac_cv_header_stdc+:} false; then :
3637  $as_echo_n "(cached) " >&6
3638else
3639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640/* end confdefs.h.  */
3641#include <stdlib.h>
3642#include <stdarg.h>
3643#include <string.h>
3644#include <float.h>
3645
3646int
3647main ()
3648{
3649
3650  ;
3651  return 0;
3652}
3653_ACEOF
3654if ac_fn_c_try_compile "$LINENO"; then :
3655  ac_cv_header_stdc=yes
3656else
3657  ac_cv_header_stdc=no
3658fi
3659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3660
3661if test $ac_cv_header_stdc = yes; then
3662  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664/* end confdefs.h.  */
3665#include <string.h>
3666
3667_ACEOF
3668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3669  $EGREP "memchr" >/dev/null 2>&1; then :
3670
3671else
3672  ac_cv_header_stdc=no
3673fi
3674rm -f conftest*
3675
3676fi
3677
3678if test $ac_cv_header_stdc = yes; then
3679  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681/* end confdefs.h.  */
3682#include <stdlib.h>
3683
3684_ACEOF
3685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3686  $EGREP "free" >/dev/null 2>&1; then :
3687
3688else
3689  ac_cv_header_stdc=no
3690fi
3691rm -f conftest*
3692
3693fi
3694
3695if test $ac_cv_header_stdc = yes; then
3696  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3697  if test "$cross_compiling" = yes; then :
3698  :
3699else
3700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701/* end confdefs.h.  */
3702#include <ctype.h>
3703#include <stdlib.h>
3704#if ((' ' & 0x0FF) == 0x020)
3705# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3706# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3707#else
3708# define ISLOWER(c) \
3709		   (('a' <= (c) && (c) <= 'i') \
3710		     || ('j' <= (c) && (c) <= 'r') \
3711		     || ('s' <= (c) && (c) <= 'z'))
3712# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3713#endif
3714
3715#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3716int
3717main ()
3718{
3719  int i;
3720  for (i = 0; i < 256; i++)
3721    if (XOR (islower (i), ISLOWER (i))
3722	|| toupper (i) != TOUPPER (i))
3723      return 2;
3724  return 0;
3725}
3726_ACEOF
3727if ac_fn_c_try_run "$LINENO"; then :
3728
3729else
3730  ac_cv_header_stdc=no
3731fi
3732rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3733  conftest.$ac_objext conftest.beam conftest.$ac_ext
3734fi
3735
3736fi
3737fi
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3739$as_echo "$ac_cv_header_stdc" >&6; }
3740if test $ac_cv_header_stdc = yes; then
3741
3742$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3743
3744fi
3745
3746# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3747for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3748		  inttypes.h stdint.h unistd.h
3749do :
3750  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3751ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3752"
3753if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3754  cat >>confdefs.h <<_ACEOF
3755#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3756_ACEOF
3757
3758fi
3759
3760done
3761
3762
3763
3764  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3765if test "x$ac_cv_header_minix_config_h" = xyes; then :
3766  MINIX=yes
3767else
3768  MINIX=
3769fi
3770
3771
3772  if test "$MINIX" = yes; then
3773
3774$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3775
3776
3777$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3778
3779
3780$as_echo "#define _MINIX 1" >>confdefs.h
3781
3782  fi
3783
3784
3785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3786$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3787if ${ac_cv_safe_to_define___extensions__+:} false; then :
3788  $as_echo_n "(cached) " >&6
3789else
3790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791/* end confdefs.h.  */
3792
3793#         define __EXTENSIONS__ 1
3794          $ac_includes_default
3795int
3796main ()
3797{
3798
3799  ;
3800  return 0;
3801}
3802_ACEOF
3803if ac_fn_c_try_compile "$LINENO"; then :
3804  ac_cv_safe_to_define___extensions__=yes
3805else
3806  ac_cv_safe_to_define___extensions__=no
3807fi
3808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809fi
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3811$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3812  test $ac_cv_safe_to_define___extensions__ = yes &&
3813    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3814
3815  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3816
3817  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3818
3819  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3820
3821  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3822
3823
3824
3825if test "$ac_cv_header_minix_config_h" = "yes"; then
3826
3827$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
3828
3829fi
3830
3831case "$prefix" in
3832	NONE)
3833		case "$sysconfdir" in
3834			'${prefix}/etc')
3835				sysconfdir=/etc
3836			;;
3837                esac
3838		case "$localstatedir" in
3839			'${prefix}/var')
3840				localstatedir=/var
3841			;;
3842		esac
3843	;;
3844esac
3845
3846#
3847# Determine configuration directory
3848#
3849configdir=$sysconfdir/nsd
3850
3851# Check whether --with-configdir was given.
3852if test "${with_configdir+set}" = set; then :
3853  withval=$with_configdir; configdir=$withval
3854fi
3855
3856
3857cat >>confdefs.h <<_ACEOF
3858#define CONFIGDIR "`eval echo $configdir`"
3859_ACEOF
3860
3861
3862
3863#
3864# Determine configuration file
3865nsd_conf_file=${configdir}/nsd.conf
3866
3867# Check whether --with-nsd_conf_file was given.
3868if test "${with_nsd_conf_file+set}" = set; then :
3869  withval=$with_nsd_conf_file; nsd_conf_file=$withval
3870fi
3871
3872
3873# the eval is to evaluate shell expansion twice, once
3874# for $nsd_conf_file and once for the ${prefix} within it.
3875
3876cat >>confdefs.h <<_ACEOF
3877#define CONFIGFILE "`eval echo $nsd_conf_file`"
3878_ACEOF
3879
3880
3881#
3882# Default logfile
3883#
3884logfile=${localstatedir}/log/nsd.log
3885
3886# Check whether --with-logfile was given.
3887if test "${with_logfile+set}" = set; then :
3888  withval=$with_logfile; logfile=$withval
3889fi
3890
3891
3892
3893#
3894# Database directory
3895#
3896dbdir=${localstatedir}/db/nsd
3897
3898#
3899# Determine the pidfile location. Check if /var/run exists, if so set pidfile
3900# to /var/run/nsd.pid by default
3901#
3902if test -d ${localstatedir}/run; then
3903	pidfile=${localstatedir}/run/nsd.pid
3904else
3905	pidfile=${dbdir}/nsd.pid
3906fi
3907
3908# Check whether --with-pidfile was given.
3909if test "${with_pidfile+set}" = set; then :
3910  withval=$with_pidfile; pidfile=$withval
3911fi
3912
3913
3914
3915cat >>confdefs.h <<_ACEOF
3916#define PIDFILE "`eval echo $pidfile`"
3917_ACEOF
3918
3919
3920#
3921# Determine location of nsd.db
3922#
3923dbfile=${dbdir}/nsd.db
3924
3925# Check whether --with-dbfile was given.
3926if test "${with_dbfile+set}" = set; then :
3927  withval=$with_dbfile; dbfile=$withval
3928fi
3929
3930
3931
3932cat >>confdefs.h <<_ACEOF
3933#define DBFILE "`eval echo $dbfile`"
3934_ACEOF
3935
3936
3937if test -n "$dbfile"; then
3938	dbdir=`dirname $dbfile`
3939fi
3940
3941
3942piddir=`dirname $pidfile`
3943
3944
3945#
3946# Determine the default directory for the zone files
3947#
3948zonesdir=$configdir
3949
3950# Check whether --with-zonesdir was given.
3951if test "${with_zonesdir+set}" = set; then :
3952  withval=$with_zonesdir; zonesdir=$withval
3953fi
3954
3955
3956
3957cat >>confdefs.h <<_ACEOF
3958#define ZONESDIR "`eval echo $zonesdir`"
3959_ACEOF
3960
3961
3962# default xfrd file location.
3963xfrdfile=${dbdir}/xfrd.state
3964
3965# Check whether --with-xfrdfile was given.
3966if test "${with_xfrdfile+set}" = set; then :
3967  withval=$with_xfrdfile; xfrdfile=$withval
3968fi
3969
3970
3971cat >>confdefs.h <<_ACEOF
3972#define XFRDFILE "`eval echo $xfrdfile`"
3973_ACEOF
3974
3975
3976
3977# default zonelist file location.
3978zonelistfile=${dbdir}/zone.list
3979
3980# Check whether --with-zonelistfile was given.
3981if test "${with_zonelistfile+set}" = set; then :
3982  withval=$with_zonelistfile; zonelistfile=$withval
3983fi
3984
3985
3986cat >>confdefs.h <<_ACEOF
3987#define ZONELISTFILE "`eval echo $zonelistfile`"
3988_ACEOF
3989
3990
3991
3992# default xfr dir location.
3993xfrdir="/tmp"
3994
3995# Check whether --with-xfrdir was given.
3996if test "${with_xfrdir+set}" = set; then :
3997  withval=$with_xfrdir; xfrdir=$withval
3998fi
3999
4000
4001cat >>confdefs.h <<_ACEOF
4002#define XFRDIR "`eval echo $xfrdir`"
4003_ACEOF
4004
4005
4006
4007# nsd sbin location. tmpinstantiate execprefix with defaults if not yet done.
4008if test "x${exec_prefix}" = "xNONE"; then
4009	if test "x${prefix}" = "xNONE"; then exec_prefix="$ac_default_prefix"
4010	else exec_prefix="${prefix}"; fi
4011	nsd_start_path="`eval echo $sbindir`/nsd"
4012	exec_prefix="NONE"
4013else
4014	nsd_start_path="`eval echo $sbindir`/nsd"
4015fi
4016
4017cat >>confdefs.h <<_ACEOF
4018#define NSD_START_PATH "$nsd_start_path"
4019_ACEOF
4020
4021
4022#
4023# Determine default chroot directory
4024#
4025
4026# Check whether --with-chroot was given.
4027if test "${with_chroot+set}" = set; then :
4028  withval=$with_chroot;
4029		chrootdir=$withval
4030
4031cat >>confdefs.h <<_ACEOF
4032#define CHROOTDIR "`eval echo $chrootdir`"
4033_ACEOF
4034
4035
4036fi
4037
4038
4039
4040#
4041# Determine the user name to drop privileges to
4042#
4043user=nsd
4044
4045# Check whether --with-user was given.
4046if test "${with_user+set}" = set; then :
4047  withval=$with_user; user=$withval
4048fi
4049
4050
4051
4052cat >>confdefs.h <<_ACEOF
4053#define USER "$user"
4054_ACEOF
4055
4056
4057# Checks for programs.
4058for ac_prog in gawk mawk nawk awk
4059do
4060  # Extract the first word of "$ac_prog", so it can be a program name with args.
4061set dummy $ac_prog; ac_word=$2
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4063$as_echo_n "checking for $ac_word... " >&6; }
4064if ${ac_cv_prog_AWK+:} false; then :
4065  $as_echo_n "(cached) " >&6
4066else
4067  if test -n "$AWK"; then
4068  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4069else
4070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071for as_dir in $PATH
4072do
4073  IFS=$as_save_IFS
4074  test -z "$as_dir" && as_dir=.
4075    for ac_exec_ext in '' $ac_executable_extensions; do
4076  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4077    ac_cv_prog_AWK="$ac_prog"
4078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4079    break 2
4080  fi
4081done
4082  done
4083IFS=$as_save_IFS
4084
4085fi
4086fi
4087AWK=$ac_cv_prog_AWK
4088if test -n "$AWK"; then
4089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4090$as_echo "$AWK" >&6; }
4091else
4092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093$as_echo "no" >&6; }
4094fi
4095
4096
4097  test -n "$AWK" && break
4098done
4099
4100ac_ext=c
4101ac_cpp='$CPP $CPPFLAGS'
4102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105if test -n "$ac_tool_prefix"; then
4106  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4107set dummy ${ac_tool_prefix}gcc; ac_word=$2
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4109$as_echo_n "checking for $ac_word... " >&6; }
4110if ${ac_cv_prog_CC+:} false; then :
4111  $as_echo_n "(cached) " >&6
4112else
4113  if test -n "$CC"; then
4114  ac_cv_prog_CC="$CC" # Let the user override the test.
4115else
4116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117for as_dir in $PATH
4118do
4119  IFS=$as_save_IFS
4120  test -z "$as_dir" && as_dir=.
4121    for ac_exec_ext in '' $ac_executable_extensions; do
4122  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125    break 2
4126  fi
4127done
4128  done
4129IFS=$as_save_IFS
4130
4131fi
4132fi
4133CC=$ac_cv_prog_CC
4134if test -n "$CC"; then
4135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4136$as_echo "$CC" >&6; }
4137else
4138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139$as_echo "no" >&6; }
4140fi
4141
4142
4143fi
4144if test -z "$ac_cv_prog_CC"; then
4145  ac_ct_CC=$CC
4146  # Extract the first word of "gcc", so it can be a program name with args.
4147set dummy gcc; ac_word=$2
4148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4149$as_echo_n "checking for $ac_word... " >&6; }
4150if ${ac_cv_prog_ac_ct_CC+:} false; then :
4151  $as_echo_n "(cached) " >&6
4152else
4153  if test -n "$ac_ct_CC"; then
4154  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4155else
4156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157for as_dir in $PATH
4158do
4159  IFS=$as_save_IFS
4160  test -z "$as_dir" && as_dir=.
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_ac_ct_CC="gcc"
4164    $as_echo "$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
4173ac_ct_CC=$ac_cv_prog_ac_ct_CC
4174if test -n "$ac_ct_CC"; then
4175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4176$as_echo "$ac_ct_CC" >&6; }
4177else
4178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179$as_echo "no" >&6; }
4180fi
4181
4182  if test "x$ac_ct_CC" = x; then
4183    CC=""
4184  else
4185    case $cross_compiling:$ac_tool_warned in
4186yes:)
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4188$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4189ac_tool_warned=yes ;;
4190esac
4191    CC=$ac_ct_CC
4192  fi
4193else
4194  CC="$ac_cv_prog_CC"
4195fi
4196
4197if test -z "$CC"; then
4198          if test -n "$ac_tool_prefix"; then
4199    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4200set dummy ${ac_tool_prefix}cc; ac_word=$2
4201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202$as_echo_n "checking for $ac_word... " >&6; }
4203if ${ac_cv_prog_CC+:} false; then :
4204  $as_echo_n "(cached) " >&6
4205else
4206  if test -n "$CC"; then
4207  ac_cv_prog_CC="$CC" # Let the user override the test.
4208else
4209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210for as_dir in $PATH
4211do
4212  IFS=$as_save_IFS
4213  test -z "$as_dir" && as_dir=.
4214    for ac_exec_ext in '' $ac_executable_extensions; do
4215  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4216    ac_cv_prog_CC="${ac_tool_prefix}cc"
4217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218    break 2
4219  fi
4220done
4221  done
4222IFS=$as_save_IFS
4223
4224fi
4225fi
4226CC=$ac_cv_prog_CC
4227if test -n "$CC"; then
4228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4229$as_echo "$CC" >&6; }
4230else
4231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232$as_echo "no" >&6; }
4233fi
4234
4235
4236  fi
4237fi
4238if test -z "$CC"; then
4239  # Extract the first word of "cc", so it can be a program name with args.
4240set dummy cc; ac_word=$2
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242$as_echo_n "checking for $ac_word... " >&6; }
4243if ${ac_cv_prog_CC+:} false; then :
4244  $as_echo_n "(cached) " >&6
4245else
4246  if test -n "$CC"; then
4247  ac_cv_prog_CC="$CC" # Let the user override the test.
4248else
4249  ac_prog_rejected=no
4250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251for as_dir in $PATH
4252do
4253  IFS=$as_save_IFS
4254  test -z "$as_dir" && as_dir=.
4255    for ac_exec_ext in '' $ac_executable_extensions; do
4256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4258       ac_prog_rejected=yes
4259       continue
4260     fi
4261    ac_cv_prog_CC="cc"
4262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4263    break 2
4264  fi
4265done
4266  done
4267IFS=$as_save_IFS
4268
4269if test $ac_prog_rejected = yes; then
4270  # We found a bogon in the path, so make sure we never use it.
4271  set dummy $ac_cv_prog_CC
4272  shift
4273  if test $# != 0; then
4274    # We chose a different compiler from the bogus one.
4275    # However, it has the same basename, so the bogon will be chosen
4276    # first if we set CC to just the basename; use the full file name.
4277    shift
4278    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4279  fi
4280fi
4281fi
4282fi
4283CC=$ac_cv_prog_CC
4284if test -n "$CC"; then
4285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4286$as_echo "$CC" >&6; }
4287else
4288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289$as_echo "no" >&6; }
4290fi
4291
4292
4293fi
4294if test -z "$CC"; then
4295  if test -n "$ac_tool_prefix"; then
4296  for ac_prog in cl.exe
4297  do
4298    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4299set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301$as_echo_n "checking for $ac_word... " >&6; }
4302if ${ac_cv_prog_CC+:} false; then :
4303  $as_echo_n "(cached) " >&6
4304else
4305  if test -n "$CC"; then
4306  ac_cv_prog_CC="$CC" # Let the user override the test.
4307else
4308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309for as_dir in $PATH
4310do
4311  IFS=$as_save_IFS
4312  test -z "$as_dir" && as_dir=.
4313    for ac_exec_ext in '' $ac_executable_extensions; do
4314  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4315    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4317    break 2
4318  fi
4319done
4320  done
4321IFS=$as_save_IFS
4322
4323fi
4324fi
4325CC=$ac_cv_prog_CC
4326if test -n "$CC"; then
4327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4328$as_echo "$CC" >&6; }
4329else
4330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331$as_echo "no" >&6; }
4332fi
4333
4334
4335    test -n "$CC" && break
4336  done
4337fi
4338if test -z "$CC"; then
4339  ac_ct_CC=$CC
4340  for ac_prog in cl.exe
4341do
4342  # Extract the first word of "$ac_prog", so it can be a program name with args.
4343set dummy $ac_prog; ac_word=$2
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4345$as_echo_n "checking for $ac_word... " >&6; }
4346if ${ac_cv_prog_ac_ct_CC+:} false; then :
4347  $as_echo_n "(cached) " >&6
4348else
4349  if test -n "$ac_ct_CC"; then
4350  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4351else
4352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353for as_dir in $PATH
4354do
4355  IFS=$as_save_IFS
4356  test -z "$as_dir" && as_dir=.
4357    for ac_exec_ext in '' $ac_executable_extensions; do
4358  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4359    ac_cv_prog_ac_ct_CC="$ac_prog"
4360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4361    break 2
4362  fi
4363done
4364  done
4365IFS=$as_save_IFS
4366
4367fi
4368fi
4369ac_ct_CC=$ac_cv_prog_ac_ct_CC
4370if test -n "$ac_ct_CC"; then
4371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4372$as_echo "$ac_ct_CC" >&6; }
4373else
4374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375$as_echo "no" >&6; }
4376fi
4377
4378
4379  test -n "$ac_ct_CC" && break
4380done
4381
4382  if test "x$ac_ct_CC" = x; then
4383    CC=""
4384  else
4385    case $cross_compiling:$ac_tool_warned in
4386yes:)
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4389ac_tool_warned=yes ;;
4390esac
4391    CC=$ac_ct_CC
4392  fi
4393fi
4394
4395fi
4396
4397
4398test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4400as_fn_error $? "no acceptable C compiler found in \$PATH
4401See \`config.log' for more details" "$LINENO" 5; }
4402
4403# Provide some information about the compiler.
4404$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4405set X $ac_compile
4406ac_compiler=$2
4407for ac_option in --version -v -V -qversion; do
4408  { { ac_try="$ac_compiler $ac_option >&5"
4409case "(($ac_try" in
4410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411  *) ac_try_echo=$ac_try;;
4412esac
4413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414$as_echo "$ac_try_echo"; } >&5
4415  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4416  ac_status=$?
4417  if test -s conftest.err; then
4418    sed '10a\
4419... rest of stderr output deleted ...
4420         10q' conftest.err >conftest.er1
4421    cat conftest.er1 >&5
4422  fi
4423  rm -f conftest.er1 conftest.err
4424  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4425  test $ac_status = 0; }
4426done
4427
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4429$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4430if ${ac_cv_c_compiler_gnu+:} false; then :
4431  $as_echo_n "(cached) " >&6
4432else
4433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434/* end confdefs.h.  */
4435
4436int
4437main ()
4438{
4439#ifndef __GNUC__
4440       choke me
4441#endif
4442
4443  ;
4444  return 0;
4445}
4446_ACEOF
4447if ac_fn_c_try_compile "$LINENO"; then :
4448  ac_compiler_gnu=yes
4449else
4450  ac_compiler_gnu=no
4451fi
4452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4453ac_cv_c_compiler_gnu=$ac_compiler_gnu
4454
4455fi
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4457$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4458if test $ac_compiler_gnu = yes; then
4459  GCC=yes
4460else
4461  GCC=
4462fi
4463ac_test_CFLAGS=${CFLAGS+set}
4464ac_save_CFLAGS=$CFLAGS
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4466$as_echo_n "checking whether $CC accepts -g... " >&6; }
4467if ${ac_cv_prog_cc_g+:} false; then :
4468  $as_echo_n "(cached) " >&6
4469else
4470  ac_save_c_werror_flag=$ac_c_werror_flag
4471   ac_c_werror_flag=yes
4472   ac_cv_prog_cc_g=no
4473   CFLAGS="-g"
4474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475/* end confdefs.h.  */
4476
4477int
4478main ()
4479{
4480
4481  ;
4482  return 0;
4483}
4484_ACEOF
4485if ac_fn_c_try_compile "$LINENO"; then :
4486  ac_cv_prog_cc_g=yes
4487else
4488  CFLAGS=""
4489      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490/* end confdefs.h.  */
4491
4492int
4493main ()
4494{
4495
4496  ;
4497  return 0;
4498}
4499_ACEOF
4500if ac_fn_c_try_compile "$LINENO"; then :
4501
4502else
4503  ac_c_werror_flag=$ac_save_c_werror_flag
4504	 CFLAGS="-g"
4505	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506/* end confdefs.h.  */
4507
4508int
4509main ()
4510{
4511
4512  ;
4513  return 0;
4514}
4515_ACEOF
4516if ac_fn_c_try_compile "$LINENO"; then :
4517  ac_cv_prog_cc_g=yes
4518fi
4519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520fi
4521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522fi
4523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524   ac_c_werror_flag=$ac_save_c_werror_flag
4525fi
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4527$as_echo "$ac_cv_prog_cc_g" >&6; }
4528if test "$ac_test_CFLAGS" = set; then
4529  CFLAGS=$ac_save_CFLAGS
4530elif test $ac_cv_prog_cc_g = yes; then
4531  if test "$GCC" = yes; then
4532    CFLAGS="-g -O2"
4533  else
4534    CFLAGS="-g"
4535  fi
4536else
4537  if test "$GCC" = yes; then
4538    CFLAGS="-O2"
4539  else
4540    CFLAGS=
4541  fi
4542fi
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4544$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4545if ${ac_cv_prog_cc_c89+:} false; then :
4546  $as_echo_n "(cached) " >&6
4547else
4548  ac_cv_prog_cc_c89=no
4549ac_save_CC=$CC
4550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551/* end confdefs.h.  */
4552#include <stdarg.h>
4553#include <stdio.h>
4554struct stat;
4555/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4556struct buf { int x; };
4557FILE * (*rcsopen) (struct buf *, struct stat *, int);
4558static char *e (p, i)
4559     char **p;
4560     int i;
4561{
4562  return p[i];
4563}
4564static char *f (char * (*g) (char **, int), char **p, ...)
4565{
4566  char *s;
4567  va_list v;
4568  va_start (v,p);
4569  s = g (p, va_arg (v,int));
4570  va_end (v);
4571  return s;
4572}
4573
4574/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4575   function prototypes and stuff, but not '\xHH' hex character constants.
4576   These don't provoke an error unfortunately, instead are silently treated
4577   as 'x'.  The following induces an error, until -std is added to get
4578   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4579   array size at least.  It's necessary to write '\x00'==0 to get something
4580   that's true only with -std.  */
4581int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4582
4583/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4584   inside strings and character constants.  */
4585#define FOO(x) 'x'
4586int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4587
4588int test (int i, double x);
4589struct s1 {int (*f) (int a);};
4590struct s2 {int (*f) (double a);};
4591int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4592int argc;
4593char **argv;
4594int
4595main ()
4596{
4597return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4598  ;
4599  return 0;
4600}
4601_ACEOF
4602for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4603	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4604do
4605  CC="$ac_save_CC $ac_arg"
4606  if ac_fn_c_try_compile "$LINENO"; then :
4607  ac_cv_prog_cc_c89=$ac_arg
4608fi
4609rm -f core conftest.err conftest.$ac_objext
4610  test "x$ac_cv_prog_cc_c89" != "xno" && break
4611done
4612rm -f conftest.$ac_ext
4613CC=$ac_save_CC
4614
4615fi
4616# AC_CACHE_VAL
4617case "x$ac_cv_prog_cc_c89" in
4618  x)
4619    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4620$as_echo "none needed" >&6; } ;;
4621  xno)
4622    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4623$as_echo "unsupported" >&6; } ;;
4624  *)
4625    CC="$CC $ac_cv_prog_cc_c89"
4626    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4627$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4628esac
4629if test "x$ac_cv_prog_cc_c89" != xno; then :
4630
4631fi
4632
4633ac_ext=c
4634ac_cpp='$CPP $CPPFLAGS'
4635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637ac_compiler_gnu=$ac_cv_c_compiler_gnu
4638
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4640$as_echo_n "checking whether ln -s works... " >&6; }
4641LN_S=$as_ln_s
4642if test "$LN_S" = "ln -s"; then
4643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4644$as_echo "yes" >&6; }
4645else
4646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4647$as_echo "no, using $LN_S" >&6; }
4648fi
4649
4650ac_aux_dir=
4651for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4652  if test -f "$ac_dir/install-sh"; then
4653    ac_aux_dir=$ac_dir
4654    ac_install_sh="$ac_aux_dir/install-sh -c"
4655    break
4656  elif test -f "$ac_dir/install.sh"; then
4657    ac_aux_dir=$ac_dir
4658    ac_install_sh="$ac_aux_dir/install.sh -c"
4659    break
4660  elif test -f "$ac_dir/shtool"; then
4661    ac_aux_dir=$ac_dir
4662    ac_install_sh="$ac_aux_dir/shtool install -c"
4663    break
4664  fi
4665done
4666if test -z "$ac_aux_dir"; then
4667  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4668fi
4669
4670# These three variables are undocumented and unsupported,
4671# and are intended to be withdrawn in a future Autoconf release.
4672# They can cause serious problems if a builder's source tree is in a directory
4673# whose full name contains unusual characters.
4674ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4675ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4676ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4677
4678
4679# Find a good install program.  We prefer a C program (faster),
4680# so one script is as good as another.  But avoid the broken or
4681# incompatible versions:
4682# SysV /etc/install, /usr/sbin/install
4683# SunOS /usr/etc/install
4684# IRIX /sbin/install
4685# AIX /bin/install
4686# AmigaOS /C/install, which installs bootblocks on floppy discs
4687# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4688# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4689# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4690# OS/2's system install, which has a completely different semantic
4691# ./install, which can be erroneously created by make from ./install.sh.
4692# Reject install programs that cannot install multiple files.
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4694$as_echo_n "checking for a BSD-compatible install... " >&6; }
4695if test -z "$INSTALL"; then
4696if ${ac_cv_path_install+:} false; then :
4697  $as_echo_n "(cached) " >&6
4698else
4699  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700for as_dir in $PATH
4701do
4702  IFS=$as_save_IFS
4703  test -z "$as_dir" && as_dir=.
4704    # Account for people who put trailing slashes in PATH elements.
4705case $as_dir/ in #((
4706  ./ | .// | /[cC]/* | \
4707  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4708  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4709  /usr/ucb/* ) ;;
4710  *)
4711    # OSF1 and SCO ODT 3.0 have their own names for install.
4712    # Don't use installbsd from OSF since it installs stuff as root
4713    # by default.
4714    for ac_prog in ginstall scoinst install; do
4715      for ac_exec_ext in '' $ac_executable_extensions; do
4716	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4717	  if test $ac_prog = install &&
4718	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4719	    # AIX install.  It has an incompatible calling convention.
4720	    :
4721	  elif test $ac_prog = install &&
4722	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4723	    # program-specific install script used by HP pwplus--don't use.
4724	    :
4725	  else
4726	    rm -rf conftest.one conftest.two conftest.dir
4727	    echo one > conftest.one
4728	    echo two > conftest.two
4729	    mkdir conftest.dir
4730	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4731	      test -s conftest.one && test -s conftest.two &&
4732	      test -s conftest.dir/conftest.one &&
4733	      test -s conftest.dir/conftest.two
4734	    then
4735	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4736	      break 3
4737	    fi
4738	  fi
4739	fi
4740      done
4741    done
4742    ;;
4743esac
4744
4745  done
4746IFS=$as_save_IFS
4747
4748rm -rf conftest.one conftest.two conftest.dir
4749
4750fi
4751  if test "${ac_cv_path_install+set}" = set; then
4752    INSTALL=$ac_cv_path_install
4753  else
4754    # As a last resort, use the slow shell script.  Don't cache a
4755    # value for INSTALL within a source directory, because that will
4756    # break other packages using the cache if that directory is
4757    # removed, or if the value is a relative name.
4758    INSTALL=$ac_install_sh
4759  fi
4760fi
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4762$as_echo "$INSTALL" >&6; }
4763
4764# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4765# It thinks the first close brace ends the variable substitution.
4766test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4767
4768test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4769
4770test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4771
4772for ac_prog in flex lex
4773do
4774  # Extract the first word of "$ac_prog", so it can be a program name with args.
4775set dummy $ac_prog; ac_word=$2
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777$as_echo_n "checking for $ac_word... " >&6; }
4778if ${ac_cv_prog_LEX+:} false; then :
4779  $as_echo_n "(cached) " >&6
4780else
4781  if test -n "$LEX"; then
4782  ac_cv_prog_LEX="$LEX" # Let the user override the test.
4783else
4784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785for as_dir in $PATH
4786do
4787  IFS=$as_save_IFS
4788  test -z "$as_dir" && as_dir=.
4789    for ac_exec_ext in '' $ac_executable_extensions; do
4790  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4791    ac_cv_prog_LEX="$ac_prog"
4792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793    break 2
4794  fi
4795done
4796  done
4797IFS=$as_save_IFS
4798
4799fi
4800fi
4801LEX=$ac_cv_prog_LEX
4802if test -n "$LEX"; then
4803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4804$as_echo "$LEX" >&6; }
4805else
4806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807$as_echo "no" >&6; }
4808fi
4809
4810
4811  test -n "$LEX" && break
4812done
4813test -n "$LEX" || LEX=":"
4814
4815if test "x$LEX" != "x:"; then
4816  cat >conftest.l <<_ACEOF
4817%%
4818a { ECHO; }
4819b { REJECT; }
4820c { yymore (); }
4821d { yyless (1); }
4822e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
4823    yyless ((input () != 0)); }
4824f { unput (yytext[0]); }
4825. { BEGIN INITIAL; }
4826%%
4827#ifdef YYTEXT_POINTER
4828extern char *yytext;
4829#endif
4830int
4831main (void)
4832{
4833  return ! yylex () + ! yywrap ();
4834}
4835_ACEOF
4836{ { ac_try="$LEX conftest.l"
4837case "(($ac_try" in
4838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839  *) ac_try_echo=$ac_try;;
4840esac
4841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4842$as_echo "$ac_try_echo"; } >&5
4843  (eval "$LEX conftest.l") 2>&5
4844  ac_status=$?
4845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4846  test $ac_status = 0; }
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4848$as_echo_n "checking lex output file root... " >&6; }
4849if ${ac_cv_prog_lex_root+:} false; then :
4850  $as_echo_n "(cached) " >&6
4851else
4852
4853if test -f lex.yy.c; then
4854  ac_cv_prog_lex_root=lex.yy
4855elif test -f lexyy.c; then
4856  ac_cv_prog_lex_root=lexyy
4857else
4858  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4859fi
4860fi
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4862$as_echo "$ac_cv_prog_lex_root" >&6; }
4863LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4864
4865if test -z "${LEXLIB+set}"; then
4866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4867$as_echo_n "checking lex library... " >&6; }
4868if ${ac_cv_lib_lex+:} false; then :
4869  $as_echo_n "(cached) " >&6
4870else
4871
4872    ac_save_LIBS=$LIBS
4873    ac_cv_lib_lex='none needed'
4874    for ac_lib in '' -lfl -ll; do
4875      LIBS="$ac_lib $ac_save_LIBS"
4876      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877/* end confdefs.h.  */
4878`cat $LEX_OUTPUT_ROOT.c`
4879_ACEOF
4880if ac_fn_c_try_link "$LINENO"; then :
4881  ac_cv_lib_lex=$ac_lib
4882fi
4883rm -f core conftest.err conftest.$ac_objext \
4884    conftest$ac_exeext conftest.$ac_ext
4885      test "$ac_cv_lib_lex" != 'none needed' && break
4886    done
4887    LIBS=$ac_save_LIBS
4888
4889fi
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4891$as_echo "$ac_cv_lib_lex" >&6; }
4892  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4893fi
4894
4895
4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4897$as_echo_n "checking whether yytext is a pointer... " >&6; }
4898if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4899  $as_echo_n "(cached) " >&6
4900else
4901  # POSIX says lex can declare yytext either as a pointer or an array; the
4902# default is implementation-dependent.  Figure out which it is, since
4903# not all implementations provide the %pointer and %array declarations.
4904ac_cv_prog_lex_yytext_pointer=no
4905ac_save_LIBS=$LIBS
4906LIBS="$LEXLIB $ac_save_LIBS"
4907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908/* end confdefs.h.  */
4909
4910  #define YYTEXT_POINTER 1
4911`cat $LEX_OUTPUT_ROOT.c`
4912_ACEOF
4913if ac_fn_c_try_link "$LINENO"; then :
4914  ac_cv_prog_lex_yytext_pointer=yes
4915fi
4916rm -f core conftest.err conftest.$ac_objext \
4917    conftest$ac_exeext conftest.$ac_ext
4918LIBS=$ac_save_LIBS
4919
4920fi
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4922$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4923if test $ac_cv_prog_lex_yytext_pointer = yes; then
4924
4925$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4926
4927fi
4928rm -f conftest.l $LEX_OUTPUT_ROOT.c
4929
4930fi
4931for ac_prog in 'bison -y' byacc
4932do
4933  # Extract the first word of "$ac_prog", so it can be a program name with args.
4934set dummy $ac_prog; ac_word=$2
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936$as_echo_n "checking for $ac_word... " >&6; }
4937if ${ac_cv_prog_YACC+:} false; then :
4938  $as_echo_n "(cached) " >&6
4939else
4940  if test -n "$YACC"; then
4941  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4942else
4943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944for as_dir in $PATH
4945do
4946  IFS=$as_save_IFS
4947  test -z "$as_dir" && as_dir=.
4948    for ac_exec_ext in '' $ac_executable_extensions; do
4949  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950    ac_cv_prog_YACC="$ac_prog"
4951    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952    break 2
4953  fi
4954done
4955  done
4956IFS=$as_save_IFS
4957
4958fi
4959fi
4960YACC=$ac_cv_prog_YACC
4961if test -n "$YACC"; then
4962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4963$as_echo "$YACC" >&6; }
4964else
4965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966$as_echo "no" >&6; }
4967fi
4968
4969
4970  test -n "$YACC" && break
4971done
4972test -n "$YACC" || YACC="yacc"
4973
4974
4975if test "$LEX" != ":" -a "$LEX" != ""; then
4976  # Check if lex defines yy_current_buffer, because 2.4.6 and older use it,
4977  # but later could define it as a macro and then we should not redefine it.
4978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lex defines yy_current_buffer" >&5
4979$as_echo_n "checking if lex defines yy_current_buffer... " >&6; }
4980  cat <<EOF >conftest.lex
4981%%
4982EOF
4983  $LEX -i -t conftest.lex >> conftest.c
4984  if grep "^#define yy_current_buffer" conftest.c >/dev/null; then
4985
4986cat >>confdefs.h <<_ACEOF
4987#define LEX_DEFINES_YY_CURRENT_BUFFER 1
4988_ACEOF
4989
4990	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4991$as_echo "yes" >&6; }
4992  else
4993	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994$as_echo "no" >&6; }
4995  fi
4996  rm -f conftest.lex conftest.c
4997fi
4998
4999
5000
5001
5002
5003
5004
5005# Checks for typedefs, structures, and compiler characteristics.
5006# allow user to override the -g -O2 flags.
5007if test "x$CFLAGS" = "x" ; then
5008
5009
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
5011$as_echo_n "checking whether $CC supports -g... " >&6; }
5012cache=`echo g | sed 'y%.=/+-%___p_%'`
5013if eval \${cv_prog_cc_flag_$cache+:} false; then :
5014  $as_echo_n "(cached) " >&6
5015else
5016
5017echo 'void f(void){}' >conftest.c
5018if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
5019eval "cv_prog_cc_flag_$cache=yes"
5020else
5021eval "cv_prog_cc_flag_$cache=no"
5022fi
5023rm -f conftest conftest.o conftest.c
5024
5025fi
5026
5027if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5029$as_echo "yes" >&6; }
5030:
5031CFLAGS="$CFLAGS -g"
5032else
5033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034$as_echo "no" >&6; }
5035:
5036
5037fi
5038
5039	# we do not use O3 because it causes miscompilations.
5040
5041
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
5043$as_echo_n "checking whether $CC supports -O2... " >&6; }
5044cache=`echo O2 | sed 'y%.=/+-%___p_%'`
5045if eval \${cv_prog_cc_flag_$cache+:} false; then :
5046  $as_echo_n "(cached) " >&6
5047else
5048
5049echo 'void f(void){}' >conftest.c
5050if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
5051eval "cv_prog_cc_flag_$cache=yes"
5052else
5053eval "cv_prog_cc_flag_$cache=no"
5054fi
5055rm -f conftest conftest.o conftest.c
5056
5057fi
5058
5059if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5061$as_echo "yes" >&6; }
5062:
5063CFLAGS="$CFLAGS -O2"
5064else
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066$as_echo "no" >&6; }
5067:
5068
5069fi
5070
5071
5072    # Check whether --enable-flto was given.
5073if test "${enable_flto+set}" = set; then :
5074  enableval=$enable_flto;
5075fi
5076
5077    if test "x$enable_flto" != "xno"; then :
5078
5079        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5080$as_echo_n "checking if $CC supports -flto... " >&6; }
5081        BAKCFLAGS="$CFLAGS"
5082        CFLAGS="$CFLAGS -flto"
5083        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084/* end confdefs.h.  */
5085
5086int
5087main ()
5088{
5089
5090  ;
5091  return 0;
5092}
5093_ACEOF
5094if ac_fn_c_try_link "$LINENO"; then :
5095
5096            if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
5097                CFLAGS="$BAKCFLAGS"
5098                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099$as_echo "no" >&6; }
5100            else
5101                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5102$as_echo "yes" >&6; }
5103            fi
5104            rm -f conftest conftest.c conftest.o
5105
5106else
5107  CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108$as_echo "no" >&6; }
5109fi
5110rm -f core conftest.err conftest.$ac_objext \
5111    conftest$ac_exeext conftest.$ac_ext
5112
5113fi
5114
5115
5116    # Check whether --enable-pie was given.
5117if test "${enable_pie+set}" = set; then :
5118  enableval=$enable_pie;
5119fi
5120
5121    if test "x$enable_pie" = "xyes"; then :
5122
5123	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
5124$as_echo_n "checking if $CC supports PIE... " >&6; }
5125	BAKLDFLAGS="$LDFLAGS"
5126	BAKCFLAGS="$CFLAGS"
5127	LDFLAGS="$LDFLAGS -pie"
5128	CFLAGS="$CFLAGS -fPIE"
5129	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5130/* end confdefs.h.  */
5131
5132int
5133main ()
5134{
5135
5136  ;
5137  return 0;
5138}
5139_ACEOF
5140if ac_fn_c_try_link "$LINENO"; then :
5141
5142	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5143		LDFLAGS="$BAKLDFLAGS"
5144		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145$as_echo "no" >&6; }
5146	    else
5147		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5148$as_echo "yes" >&6; }
5149	    fi
5150	    rm -f conftest conftest.c conftest.o
5151
5152else
5153  LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154$as_echo "no" >&6; }
5155fi
5156rm -f core conftest.err conftest.$ac_objext \
5157    conftest$ac_exeext conftest.$ac_ext
5158
5159fi
5160
5161
5162    # Check whether --enable-relro_now was given.
5163if test "${enable_relro_now+set}" = set; then :
5164  enableval=$enable_relro_now;
5165fi
5166
5167    if test "x$enable_relro_now" = "xyes"; then :
5168
5169	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
5170$as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
5171	BAKLDFLAGS="$LDFLAGS"
5172	LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
5173	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174/* end confdefs.h.  */
5175
5176int
5177main ()
5178{
5179
5180  ;
5181  return 0;
5182}
5183_ACEOF
5184if ac_fn_c_try_link "$LINENO"; then :
5185
5186	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5187		LDFLAGS="$BAKLDFLAGS"
5188		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189$as_echo "no" >&6; }
5190	    else
5191		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5192$as_echo "yes" >&6; }
5193	    fi
5194	    rm -f conftest conftest.c conftest.o
5195
5196else
5197  LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198$as_echo "no" >&6; }
5199fi
5200rm -f core conftest.err conftest.$ac_objext \
5201    conftest$ac_exeext conftest.$ac_ext
5202
5203fi
5204
5205fi
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5207$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5208if ${ac_cv_c_const+:} false; then :
5209  $as_echo_n "(cached) " >&6
5210else
5211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212/* end confdefs.h.  */
5213
5214int
5215main ()
5216{
5217
5218#ifndef __cplusplus
5219  /* Ultrix mips cc rejects this sort of thing.  */
5220  typedef int charset[2];
5221  const charset cs = { 0, 0 };
5222  /* SunOS 4.1.1 cc rejects this.  */
5223  char const *const *pcpcc;
5224  char **ppc;
5225  /* NEC SVR4.0.2 mips cc rejects this.  */
5226  struct point {int x, y;};
5227  static struct point const zero = {0,0};
5228  /* AIX XL C 1.02.0.0 rejects this.
5229     It does not let you subtract one const X* pointer from another in
5230     an arm of an if-expression whose if-part is not a constant
5231     expression */
5232  const char *g = "string";
5233  pcpcc = &g + (g ? g-g : 0);
5234  /* HPUX 7.0 cc rejects these. */
5235  ++pcpcc;
5236  ppc = (char**) pcpcc;
5237  pcpcc = (char const *const *) ppc;
5238  { /* SCO 3.2v4 cc rejects this sort of thing.  */
5239    char tx;
5240    char *t = &tx;
5241    char const *s = 0 ? (char *) 0 : (char const *) 0;
5242
5243    *t++ = 0;
5244    if (s) return 0;
5245  }
5246  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5247    int x[] = {25, 17};
5248    const int *foo = &x[0];
5249    ++foo;
5250  }
5251  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5252    typedef const int *iptr;
5253    iptr p = 0;
5254    ++p;
5255  }
5256  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5257       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5258    struct s { int j; const int *ap[3]; } bx;
5259    struct s *b = &bx; b->j = 5;
5260  }
5261  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5262    const int foo = 10;
5263    if (!foo) return 0;
5264  }
5265  return !cs[0] && !zero.x;
5266#endif
5267
5268  ;
5269  return 0;
5270}
5271_ACEOF
5272if ac_fn_c_try_compile "$LINENO"; then :
5273  ac_cv_c_const=yes
5274else
5275  ac_cv_c_const=no
5276fi
5277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278fi
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5280$as_echo "$ac_cv_c_const" >&6; }
5281if test $ac_cv_c_const = no; then
5282
5283$as_echo "#define const /**/" >>confdefs.h
5284
5285fi
5286
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5288$as_echo_n "checking for inline... " >&6; }
5289if ${ac_cv_c_inline+:} false; then :
5290  $as_echo_n "(cached) " >&6
5291else
5292  ac_cv_c_inline=no
5293for ac_kw in inline __inline__ __inline; do
5294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295/* end confdefs.h.  */
5296#ifndef __cplusplus
5297typedef int foo_t;
5298static $ac_kw foo_t static_foo () {return 0; }
5299$ac_kw foo_t foo () {return 0; }
5300#endif
5301
5302_ACEOF
5303if ac_fn_c_try_compile "$LINENO"; then :
5304  ac_cv_c_inline=$ac_kw
5305fi
5306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307  test "$ac_cv_c_inline" != no && break
5308done
5309
5310fi
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5312$as_echo "$ac_cv_c_inline" >&6; }
5313
5314case $ac_cv_c_inline in
5315  inline | yes) ;;
5316  *)
5317    case $ac_cv_c_inline in
5318      no) ac_val=;;
5319      *) ac_val=$ac_cv_c_inline;;
5320    esac
5321    cat >>confdefs.h <<_ACEOF
5322#ifndef __cplusplus
5323#define inline $ac_val
5324#endif
5325_ACEOF
5326    ;;
5327esac
5328
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5330$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5331if ${ac_cv_type_uid_t+:} false; then :
5332  $as_echo_n "(cached) " >&6
5333else
5334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335/* end confdefs.h.  */
5336#include <sys/types.h>
5337
5338_ACEOF
5339if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5340  $EGREP "uid_t" >/dev/null 2>&1; then :
5341  ac_cv_type_uid_t=yes
5342else
5343  ac_cv_type_uid_t=no
5344fi
5345rm -f conftest*
5346
5347fi
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5349$as_echo "$ac_cv_type_uid_t" >&6; }
5350if test $ac_cv_type_uid_t = no; then
5351
5352$as_echo "#define uid_t int" >>confdefs.h
5353
5354
5355$as_echo "#define gid_t int" >>confdefs.h
5356
5357fi
5358
5359ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5360if test "x$ac_cv_type_pid_t" = xyes; then :
5361
5362else
5363
5364cat >>confdefs.h <<_ACEOF
5365#define pid_t int
5366_ACEOF
5367
5368fi
5369
5370ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5371if test "x$ac_cv_type_size_t" = xyes; then :
5372
5373else
5374
5375cat >>confdefs.h <<_ACEOF
5376#define size_t unsigned int
5377_ACEOF
5378
5379fi
5380
5381ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5382if test "x$ac_cv_type_off_t" = xyes; then :
5383
5384else
5385
5386cat >>confdefs.h <<_ACEOF
5387#define off_t long int
5388_ACEOF
5389
5390fi
5391
5392
5393
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
5395$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
5396if ${ac_cv_c_format_attribute+:} false; then :
5397  $as_echo_n "(cached) " >&6
5398else
5399  ac_cv_c_format_attribute=no
5400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401/* end confdefs.h.  */
5402#include <stdio.h>
5403void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5404void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5405
5406int
5407main ()
5408{
5409
5410   f ("%s", "str");
5411
5412  ;
5413  return 0;
5414}
5415_ACEOF
5416if ac_fn_c_try_compile "$LINENO"; then :
5417  ac_cv_c_format_attribute="yes"
5418else
5419  ac_cv_c_format_attribute="no"
5420fi
5421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422
5423fi
5424
5425
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
5427$as_echo "$ac_cv_c_format_attribute" >&6; }
5428if test $ac_cv_c_format_attribute = yes; then
5429
5430$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
5431
5432fi
5433
5434
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
5436$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
5437if ${ac_cv_c_unused_attribute+:} false; then :
5438  $as_echo_n "(cached) " >&6
5439else
5440  ac_cv_c_unused_attribute=no
5441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442/* end confdefs.h.  */
5443#include <stdio.h>
5444void f (char *u __attribute__((unused)));
5445
5446int
5447main ()
5448{
5449
5450   f ("x");
5451
5452  ;
5453  return 0;
5454}
5455_ACEOF
5456if ac_fn_c_try_compile "$LINENO"; then :
5457  ac_cv_c_unused_attribute="yes"
5458else
5459  ac_cv_c_unused_attribute="no"
5460fi
5461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5462
5463fi
5464
5465
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
5467$as_echo "$ac_cv_c_unused_attribute" >&6; }
5468if test $ac_cv_c_unused_attribute = yes; then
5469
5470$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
5471
5472fi
5473
5474
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5
5476$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; }
5477if ${ac_cv_c_noreturn_attribute+:} false; then :
5478  $as_echo_n "(cached) " >&6
5479else
5480  ac_cv_c_noreturn_attribute=no
5481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482/* end confdefs.h.  */
5483 #include <stdio.h>
5484__attribute__((noreturn)) void f(int x) { printf("%d", x); }
5485
5486int
5487main ()
5488{
5489
5490   f(1);
5491
5492  ;
5493  return 0;
5494}
5495_ACEOF
5496if ac_fn_c_try_compile "$LINENO"; then :
5497  ac_cv_c_noreturn_attribute="yes"
5498else
5499  ac_cv_c_noreturn_attribute="no"
5500fi
5501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502
5503fi
5504
5505
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5
5507$as_echo "$ac_cv_c_noreturn_attribute" >&6; }
5508if test $ac_cv_c_noreturn_attribute = yes; then
5509
5510$as_echo "#define HAVE_ATTR_NORETURN 1" >>confdefs.h
5511
5512
5513$as_echo "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h
5514
5515fi
5516
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
5518$as_echo_n "checking if memcmp compares unsigned... " >&6; }
5519if test "$cross_compiling" = yes; then :
5520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
5521$as_echo "cross-compile no" >&6; }
5522
5523$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
5524
5525  case " $LIBOBJS " in
5526  *" memcmp.$ac_objext "* ) ;;
5527  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
5528 ;;
5529esac
5530
5531
5532else
5533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534/* end confdefs.h.  */
5535
5536#include <stdio.h>
5537#include <stdlib.h>
5538#include <string.h>
5539int main(void)
5540{
5541	char a = 255, b = 0;
5542	if(memcmp(&a, &b, 1) < 0)
5543		return 1;
5544	return 0;
5545}
5546
5547_ACEOF
5548if ac_fn_c_try_run "$LINENO"; then :
5549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5550$as_echo "yes" >&6; }
5551else
5552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553$as_echo "no" >&6; }
5554
5555$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
5556
5557  case " $LIBOBJS " in
5558  *" memcmp.$ac_objext "* ) ;;
5559  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
5560 ;;
5561esac
5562
5563
5564fi
5565rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5566  conftest.$ac_objext conftest.beam conftest.$ac_ext
5567fi
5568
5569
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ctime_r works with two arguments" >&5
5571$as_echo_n "checking whether ctime_r works with two arguments... " >&6; }
5572if ${ac_cv_c_ctime_c+:} false; then :
5573  $as_echo_n "(cached) " >&6
5574else
5575  ac_cv_c_ctime_c=no
5576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577/* end confdefs.h.  */
5578#include <time.h>
5579void testing (void) { time_t clock; char current_time[40]; ctime_r(&clock, current_time); }
5580int
5581main ()
5582{
5583
5584        testing();
5585
5586  ;
5587  return 0;
5588}
5589_ACEOF
5590if ac_fn_c_try_compile "$LINENO"; then :
5591  ac_cv_c_ctime_c="yes"
5592else
5593  ac_cv_c_ctime_c="no"
5594fi
5595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596
5597fi
5598
5599
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ctime_c" >&5
5601$as_echo "$ac_cv_c_ctime_c" >&6; }
5602if test $ac_cv_c_ctime_c = no; then
5603        CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
5604fi
5605
5606
5607# Checks for libraries.
5608
5609# Check for SSL, original taken from
5610# http://www.gnu.org/software/ac-archive/htmldoc/check_ssl.html and
5611# modified for NSD.
5612
5613# check for libevent
5614
5615# Check whether --with-libevent was given.
5616if test "${with_libevent+set}" = set; then :
5617  withval=$with_libevent;
5618else
5619   withval="yes"
5620fi
5621
5622if test x_$withval = x_yes -o x_$withval != x_no; then
5623        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
5624$as_echo_n "checking for libevent... " >&6; }
5625        if test x_$withval = x_ -o x_$withval = x_yes; then
5626            withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
5627        fi
5628        for dir in $withval; do
5629            thedir="$dir"
5630            if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
5631                found_libevent="yes"
5632				if test "$thedir" != "/usr"; then
5633                    CPPFLAGS="$CPPFLAGS -I$thedir/include"
5634		fi
5635                break;
5636            fi
5637        done
5638        if test x_$found_libevent != x_yes; then
5639		if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
5640			# libevent source directory
5641            		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
5642$as_echo "found in $thedir" >&6; }
5643                	CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
5644			# remove evdns from linking
5645			ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
5646			cp $ev_files_o .
5647			LDFLAGS="$ev_files_o $LDFLAGS -lm"
5648		else
5649            		as_fn_error $? "Cannot find the libevent library.
5650You can restart ./configure --with-libevent=no to use a builtin alternative." "$LINENO" 5
5651		fi
5652        else
5653            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
5654$as_echo "found in $thedir" >&6; }
5655	    	    if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
5656		LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
5657
5658	if test "x$enable_rpath" = xyes; then
5659		if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
5660			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
5661		fi
5662	fi
5663
5664	    else
5665		    		    if test "$thedir" != "/usr" -a "$thedir" != ""; then
5666			LDFLAGS="$LDFLAGS -L$thedir/lib"
5667
5668	if test "x$enable_rpath" = xyes; then
5669		if echo "$thedir/lib" | grep "^/" >/dev/null; then
5670			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
5671		fi
5672	fi
5673
5674		    fi
5675	    fi
5676        fi
5677	# check for library used by libevent after 1.3c
5678	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
5679$as_echo_n "checking for library containing clock_gettime... " >&6; }
5680if ${ac_cv_search_clock_gettime+:} false; then :
5681  $as_echo_n "(cached) " >&6
5682else
5683  ac_func_search_save_LIBS=$LIBS
5684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685/* end confdefs.h.  */
5686
5687/* Override any GCC internal prototype to avoid an error.
5688   Use char because int might match the return type of a GCC
5689   builtin and then its argument prototype would still apply.  */
5690#ifdef __cplusplus
5691extern "C"
5692#endif
5693char clock_gettime ();
5694int
5695main ()
5696{
5697return clock_gettime ();
5698  ;
5699  return 0;
5700}
5701_ACEOF
5702for ac_lib in '' rt; do
5703  if test -z "$ac_lib"; then
5704    ac_res="none required"
5705  else
5706    ac_res=-l$ac_lib
5707    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5708  fi
5709  if ac_fn_c_try_link "$LINENO"; then :
5710  ac_cv_search_clock_gettime=$ac_res
5711fi
5712rm -f core conftest.err conftest.$ac_objext \
5713    conftest$ac_exeext
5714  if ${ac_cv_search_clock_gettime+:} false; then :
5715  break
5716fi
5717done
5718if ${ac_cv_search_clock_gettime+:} false; then :
5719
5720else
5721  ac_cv_search_clock_gettime=no
5722fi
5723rm conftest.$ac_ext
5724LIBS=$ac_func_search_save_LIBS
5725fi
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5727$as_echo "$ac_cv_search_clock_gettime" >&6; }
5728ac_res=$ac_cv_search_clock_gettime
5729if test "$ac_res" != no; then :
5730  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5731
5732fi
5733
5734
5735	# is the event.h header libev or libevent?
5736	for ac_header in event.h
5737do :
5738  ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
5739"
5740if test "x$ac_cv_header_event_h" = xyes; then :
5741  cat >>confdefs.h <<_ACEOF
5742#define HAVE_EVENT_H 1
5743_ACEOF
5744
5745fi
5746
5747done
5748
5749	ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
5750#include <event.h>
5751
5752"
5753if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
5754
5755		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
5756$as_echo_n "checking for library containing event_set... " >&6; }
5757if ${ac_cv_search_event_set+:} false; then :
5758  $as_echo_n "(cached) " >&6
5759else
5760  ac_func_search_save_LIBS=$LIBS
5761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762/* end confdefs.h.  */
5763
5764/* Override any GCC internal prototype to avoid an error.
5765   Use char because int might match the return type of a GCC
5766   builtin and then its argument prototype would still apply.  */
5767#ifdef __cplusplus
5768extern "C"
5769#endif
5770char event_set ();
5771int
5772main ()
5773{
5774return event_set ();
5775  ;
5776  return 0;
5777}
5778_ACEOF
5779for ac_lib in '' ev; do
5780  if test -z "$ac_lib"; then
5781    ac_res="none required"
5782  else
5783    ac_res=-l$ac_lib
5784    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5785  fi
5786  if ac_fn_c_try_link "$LINENO"; then :
5787  ac_cv_search_event_set=$ac_res
5788fi
5789rm -f core conftest.err conftest.$ac_objext \
5790    conftest$ac_exeext
5791  if ${ac_cv_search_event_set+:} false; then :
5792  break
5793fi
5794done
5795if ${ac_cv_search_event_set+:} false; then :
5796
5797else
5798  ac_cv_search_event_set=no
5799fi
5800rm conftest.$ac_ext
5801LIBS=$ac_func_search_save_LIBS
5802fi
5803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
5804$as_echo "$ac_cv_search_event_set" >&6; }
5805ac_res=$ac_cv_search_event_set
5806if test "$ac_res" != no; then :
5807  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5808
5809fi
5810
5811
5812else
5813
5814		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
5815$as_echo_n "checking for library containing event_set... " >&6; }
5816if ${ac_cv_search_event_set+:} false; then :
5817  $as_echo_n "(cached) " >&6
5818else
5819  ac_func_search_save_LIBS=$LIBS
5820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821/* end confdefs.h.  */
5822
5823/* Override any GCC internal prototype to avoid an error.
5824   Use char because int might match the return type of a GCC
5825   builtin and then its argument prototype would still apply.  */
5826#ifdef __cplusplus
5827extern "C"
5828#endif
5829char event_set ();
5830int
5831main ()
5832{
5833return event_set ();
5834  ;
5835  return 0;
5836}
5837_ACEOF
5838for ac_lib in '' event; do
5839  if test -z "$ac_lib"; then
5840    ac_res="none required"
5841  else
5842    ac_res=-l$ac_lib
5843    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5844  fi
5845  if ac_fn_c_try_link "$LINENO"; then :
5846  ac_cv_search_event_set=$ac_res
5847fi
5848rm -f core conftest.err conftest.$ac_objext \
5849    conftest$ac_exeext
5850  if ${ac_cv_search_event_set+:} false; then :
5851  break
5852fi
5853done
5854if ${ac_cv_search_event_set+:} false; then :
5855
5856else
5857  ac_cv_search_event_set=no
5858fi
5859rm conftest.$ac_ext
5860LIBS=$ac_func_search_save_LIBS
5861fi
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
5863$as_echo "$ac_cv_search_event_set" >&6; }
5864ac_res=$ac_cv_search_event_set
5865if test "$ac_res" != no; then :
5866  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5867
5868fi
5869
5870
5871fi
5872
5873	for ac_func in event_base_free
5874do :
5875  ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
5876if test "x$ac_cv_func_event_base_free" = xyes; then :
5877  cat >>confdefs.h <<_ACEOF
5878#define HAVE_EVENT_BASE_FREE 1
5879_ACEOF
5880
5881fi
5882done
5883 # only in libevent 1.2 and later
5884	for ac_func in event_base_once
5885do :
5886  ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
5887if test "x$ac_cv_func_event_base_once" = xyes; then :
5888  cat >>confdefs.h <<_ACEOF
5889#define HAVE_EVENT_BASE_ONCE 1
5890_ACEOF
5891
5892fi
5893done
5894 # only in libevent 1.4.1 and later
5895	for ac_func in event_base_new
5896do :
5897  ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
5898if test "x$ac_cv_func_event_base_new" = xyes; then :
5899  cat >>confdefs.h <<_ACEOF
5900#define HAVE_EVENT_BASE_NEW 1
5901_ACEOF
5902
5903fi
5904done
5905 # only in libevent 1.4.1 and later
5906	for ac_func in event_base_get_method
5907do :
5908  ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
5909if test "x$ac_cv_func_event_base_get_method" = xyes; then :
5910  cat >>confdefs.h <<_ACEOF
5911#define HAVE_EVENT_BASE_GET_METHOD 1
5912_ACEOF
5913
5914fi
5915done
5916 # only in libevent 1.4.3 and later
5917	for ac_func in ev_loop
5918do :
5919  ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
5920if test "x$ac_cv_func_ev_loop" = xyes; then :
5921  cat >>confdefs.h <<_ACEOF
5922#define HAVE_EV_LOOP 1
5923_ACEOF
5924
5925fi
5926done
5927 # only in libev. (tested on 3.51)
5928	for ac_func in ev_default_loop
5929do :
5930  ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
5931if test "x$ac_cv_func_ev_default_loop" = xyes; then :
5932  cat >>confdefs.h <<_ACEOF
5933#define HAVE_EV_DEFAULT_LOOP 1
5934_ACEOF
5935
5936fi
5937done
5938 # only in libev. (tested on 4.00)
5939else
5940
5941$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
5942
5943fi
5944
5945# Checks for header files.
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5947$as_echo_n "checking for ANSI C header files... " >&6; }
5948if ${ac_cv_header_stdc+:} false; then :
5949  $as_echo_n "(cached) " >&6
5950else
5951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952/* end confdefs.h.  */
5953#include <stdlib.h>
5954#include <stdarg.h>
5955#include <string.h>
5956#include <float.h>
5957
5958int
5959main ()
5960{
5961
5962  ;
5963  return 0;
5964}
5965_ACEOF
5966if ac_fn_c_try_compile "$LINENO"; then :
5967  ac_cv_header_stdc=yes
5968else
5969  ac_cv_header_stdc=no
5970fi
5971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972
5973if test $ac_cv_header_stdc = yes; then
5974  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976/* end confdefs.h.  */
5977#include <string.h>
5978
5979_ACEOF
5980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5981  $EGREP "memchr" >/dev/null 2>&1; then :
5982
5983else
5984  ac_cv_header_stdc=no
5985fi
5986rm -f conftest*
5987
5988fi
5989
5990if test $ac_cv_header_stdc = yes; then
5991  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993/* end confdefs.h.  */
5994#include <stdlib.h>
5995
5996_ACEOF
5997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5998  $EGREP "free" >/dev/null 2>&1; then :
5999
6000else
6001  ac_cv_header_stdc=no
6002fi
6003rm -f conftest*
6004
6005fi
6006
6007if test $ac_cv_header_stdc = yes; then
6008  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6009  if test "$cross_compiling" = yes; then :
6010  :
6011else
6012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013/* end confdefs.h.  */
6014#include <ctype.h>
6015#include <stdlib.h>
6016#if ((' ' & 0x0FF) == 0x020)
6017# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6018# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6019#else
6020# define ISLOWER(c) \
6021		   (('a' <= (c) && (c) <= 'i') \
6022		     || ('j' <= (c) && (c) <= 'r') \
6023		     || ('s' <= (c) && (c) <= 'z'))
6024# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6025#endif
6026
6027#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6028int
6029main ()
6030{
6031  int i;
6032  for (i = 0; i < 256; i++)
6033    if (XOR (islower (i), ISLOWER (i))
6034	|| toupper (i) != TOUPPER (i))
6035      return 2;
6036  return 0;
6037}
6038_ACEOF
6039if ac_fn_c_try_run "$LINENO"; then :
6040
6041else
6042  ac_cv_header_stdc=no
6043fi
6044rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6045  conftest.$ac_objext conftest.beam conftest.$ac_ext
6046fi
6047
6048fi
6049fi
6050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6051$as_echo "$ac_cv_header_stdc" >&6; }
6052if test $ac_cv_header_stdc = yes; then
6053
6054$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6055
6056fi
6057
6058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6059$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6060if ${ac_cv_header_sys_wait_h+:} false; then :
6061  $as_echo_n "(cached) " >&6
6062else
6063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064/* end confdefs.h.  */
6065#include <sys/types.h>
6066#include <sys/wait.h>
6067#ifndef WEXITSTATUS
6068# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6069#endif
6070#ifndef WIFEXITED
6071# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6072#endif
6073
6074int
6075main ()
6076{
6077  int s;
6078  wait (&s);
6079  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6080  ;
6081  return 0;
6082}
6083_ACEOF
6084if ac_fn_c_try_compile "$LINENO"; then :
6085  ac_cv_header_sys_wait_h=yes
6086else
6087  ac_cv_header_sys_wait_h=no
6088fi
6089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6090fi
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6092$as_echo "$ac_cv_header_sys_wait_h" >&6; }
6093if test $ac_cv_header_sys_wait_h = yes; then
6094
6095$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6096
6097fi
6098
6099for ac_header in time.h arpa/inet.h signal.h string.h strings.h fcntl.h limits.h netinet/in.h netinet/tcp.h stddef.h sys/param.h sys/socket.h sys/un.h syslog.h unistd.h sys/select.h stdarg.h stdint.h netdb.h sys/bitypes.h tcpd.h glob.h grp.h endian.h
6100do :
6101  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6102ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6103if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6104  cat >>confdefs.h <<_ACEOF
6105#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6106_ACEOF
6107
6108fi
6109
6110done
6111
6112
6113
6114
6115
6116
6117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for double definition of struct va_list" >&5
6118$as_echo_n "checking for double definition of struct va_list... " >&6; }
6119if ${ac_cv_c_va_list_def+:} false; then :
6120  $as_echo_n "(cached) " >&6
6121else
6122
6123cat >conftest.c <<EOF
6124#include <stdio.h>
6125#include <stdarg.h>
6126int foo(void);
6127EOF
6128if test -z "`$CC -Werror -D_XOPEN_SOURCE=600 -c conftest.c 2>&1`"; then
6129eval "ac_cv_c_va_list_def=no"
6130else
6131eval "ac_cv_c_va_list_def=yes"
6132fi
6133rm -f conftest*
6134
6135fi
6136
6137if test $ac_cv_c_va_list_def = yes; then
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6139$as_echo "yes" >&6; }
6140:
6141
6142cat >>confdefs.h <<_ACEOF
6143#define HAVE_VA_LIST_DOUBLE_DEF /**/
6144_ACEOF
6145
6146else
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148$as_echo "no" >&6; }
6149:
6150
6151fi
6152
6153
6154
6155
6156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime needs defines" >&5
6157$as_echo_n "checking whether strptime needs defines... " >&6; }
6158if ${ac_cv_c_strptime_needs_defs+:} false; then :
6159  $as_echo_n "(cached) " >&6
6160else
6161
6162cat >conftest.c <<EOF
6163#include <time.h>
6164int testing (void) { struct tm t; const char *timestr="201201"; return strptime(timestr, "%Y%m", &t) != 0; }
6165EOF
6166if test -z "`$CC -Wall -Werror -c conftest.c 2>&1`"; then
6167eval "ac_cv_c_strptime_needs_defs=no"
6168else
6169eval "ac_cv_c_strptime_needs_defs=yes"
6170fi
6171rm -f conftest*
6172
6173fi
6174
6175
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_needs_defs" >&5
6177$as_echo "$ac_cv_c_strptime_needs_defs" >&6; }
6178if test $ac_cv_c_strptime_needs_defs = yes; then
6179
6180cat >>confdefs.h <<_ACEOF
6181#define STRPTIME_NEEDS_DEFINES 1
6182_ACEOF
6183
6184fi
6185
6186
6187# check wether strptime also works
6188
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
6190$as_echo_n "checking for library containing inet_pton... " >&6; }
6191if ${ac_cv_search_inet_pton+:} false; then :
6192  $as_echo_n "(cached) " >&6
6193else
6194  ac_func_search_save_LIBS=$LIBS
6195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196/* end confdefs.h.  */
6197
6198/* Override any GCC internal prototype to avoid an error.
6199   Use char because int might match the return type of a GCC
6200   builtin and then its argument prototype would still apply.  */
6201#ifdef __cplusplus
6202extern "C"
6203#endif
6204char inet_pton ();
6205int
6206main ()
6207{
6208return inet_pton ();
6209  ;
6210  return 0;
6211}
6212_ACEOF
6213for ac_lib in '' nsl; do
6214  if test -z "$ac_lib"; then
6215    ac_res="none required"
6216  else
6217    ac_res=-l$ac_lib
6218    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6219  fi
6220  if ac_fn_c_try_link "$LINENO"; then :
6221  ac_cv_search_inet_pton=$ac_res
6222fi
6223rm -f core conftest.err conftest.$ac_objext \
6224    conftest$ac_exeext
6225  if ${ac_cv_search_inet_pton+:} false; then :
6226  break
6227fi
6228done
6229if ${ac_cv_search_inet_pton+:} false; then :
6230
6231else
6232  ac_cv_search_inet_pton=no
6233fi
6234rm conftest.$ac_ext
6235LIBS=$ac_func_search_save_LIBS
6236fi
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
6238$as_echo "$ac_cv_search_inet_pton" >&6; }
6239ac_res=$ac_cv_search_inet_pton
6240if test "$ac_res" != no; then :
6241  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6242
6243fi
6244
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6246$as_echo_n "checking for library containing socket... " >&6; }
6247if ${ac_cv_search_socket+:} false; then :
6248  $as_echo_n "(cached) " >&6
6249else
6250  ac_func_search_save_LIBS=$LIBS
6251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252/* end confdefs.h.  */
6253
6254/* Override any GCC internal prototype to avoid an error.
6255   Use char because int might match the return type of a GCC
6256   builtin and then its argument prototype would still apply.  */
6257#ifdef __cplusplus
6258extern "C"
6259#endif
6260char socket ();
6261int
6262main ()
6263{
6264return socket ();
6265  ;
6266  return 0;
6267}
6268_ACEOF
6269for ac_lib in '' socket; do
6270  if test -z "$ac_lib"; then
6271    ac_res="none required"
6272  else
6273    ac_res=-l$ac_lib
6274    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6275  fi
6276  if ac_fn_c_try_link "$LINENO"; then :
6277  ac_cv_search_socket=$ac_res
6278fi
6279rm -f core conftest.err conftest.$ac_objext \
6280    conftest$ac_exeext
6281  if ${ac_cv_search_socket+:} false; then :
6282  break
6283fi
6284done
6285if ${ac_cv_search_socket+:} false; then :
6286
6287else
6288  ac_cv_search_socket=no
6289fi
6290rm conftest.$ac_ext
6291LIBS=$ac_func_search_save_LIBS
6292fi
6293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6294$as_echo "$ac_cv_search_socket" >&6; }
6295ac_res=$ac_cv_search_socket
6296if test "$ac_res" != no; then :
6297  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6298
6299fi
6300
6301
6302
6303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
6304$as_echo_n "checking whether strptime works... " >&6; }
6305if test c${cross_compiling} = cno; then
6306if test "$cross_compiling" = yes; then :
6307  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6309as_fn_error $? "cannot run test program while cross compiling
6310See \`config.log' for more details" "$LINENO" 5; }
6311else
6312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313/* end confdefs.h.  */
6314
6315#define _XOPEN_SOURCE 600
6316#include <time.h>
6317int main(void) { struct tm tm; char *res;
6318res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
6319if (!res) return 1; return 0; }
6320
6321_ACEOF
6322if ac_fn_c_try_run "$LINENO"; then :
6323  eval "ac_cv_c_strptime_works=yes"
6324else
6325  eval "ac_cv_c_strptime_works=no"
6326fi
6327rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6328  conftest.$ac_objext conftest.beam conftest.$ac_ext
6329fi
6330
6331else
6332eval "ac_cv_c_strptime_works=maybe"
6333fi
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
6335$as_echo "$ac_cv_c_strptime_works" >&6; }
6336if test $ac_cv_c_strptime_works = no; then
6337case " $LIBOBJS " in
6338  *" strptime.$ac_objext "* ) ;;
6339  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
6340 ;;
6341esac
6342
6343else
6344
6345cat >>confdefs.h <<_ACEOF
6346#define STRPTIME_WORKS 1
6347_ACEOF
6348
6349fi
6350
6351
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
6353$as_echo_n "checking if nonblocking sockets work... " >&6; }
6354if echo $target | grep mingw32 >/dev/null; then
6355	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
6356$as_echo "no (windows)" >&6; }
6357
6358$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
6359
6360else
6361if test "$cross_compiling" = yes; then :
6362
6363	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
6364$as_echo "crosscompile(yes)" >&6; }
6365
6366else
6367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368/* end confdefs.h.  */
6369
6370
6371#include <stdio.h>
6372#include <string.h>
6373#include <stdlib.h>
6374#include <fcntl.h>
6375#include <errno.h>
6376#ifdef HAVE_SYS_TYPES_H
6377#include <sys/types.h>
6378#endif
6379#ifdef HAVE_SYS_SOCKET_H
6380#include <sys/socket.h>
6381#endif
6382#ifdef HAVE_NETINET_IN_H
6383#include <netinet/in.h>
6384#endif
6385#ifdef HAVE_ARPA_INET_H
6386#include <arpa/inet.h>
6387#endif
6388#ifdef HAVE_UNISTD_H
6389#include <unistd.h>
6390#endif
6391#ifdef HAVE_TIME_H
6392#include <time.h>
6393#endif
6394
6395int main(void)
6396{
6397	int port;
6398	int sfd, cfd;
6399	int num = 10;
6400	int i, p;
6401	struct sockaddr_in a;
6402	/* test if select and nonblocking reads work well together */
6403	/* open port.
6404	   fork child to send 10 messages.
6405	   select to read.
6406	   then try to nonblocking read the 10 messages
6407	   then, nonblocking read must give EAGAIN
6408	*/
6409
6410	port = 12345 + (time(0)%32);
6411	sfd = socket(PF_INET, SOCK_DGRAM, 0);
6412	if(sfd == -1) {
6413		perror("socket");
6414		return 1;
6415	}
6416	memset(&a, 0, sizeof(a));
6417	a.sin_family = AF_INET;
6418	a.sin_port = htons(port);
6419	a.sin_addr.s_addr = inet_addr("127.0.0.1");
6420	if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
6421		perror("bind");
6422		return 1;
6423	}
6424	if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
6425		perror("fcntl");
6426		return 1;
6427	}
6428
6429	cfd = socket(PF_INET, SOCK_DGRAM, 0);
6430	if(cfd == -1) {
6431		perror("client socket");
6432		return 1;
6433	}
6434	a.sin_port = 0;
6435	if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
6436		perror("client bind");
6437		return 1;
6438	}
6439	a.sin_port = htons(port);
6440
6441	/* no handler, causes exit in 10 seconds */
6442	alarm(10);
6443
6444	/* send and receive on the socket */
6445	if((p=fork()) == 0) {
6446		for(i=0; i<num; i++) {
6447			if(sendto(cfd, &i, sizeof(i), 0,
6448				(struct sockaddr*)&a, sizeof(a)) < 0) {
6449				perror("sendto");
6450				return 1;
6451			}
6452		}
6453	} else {
6454		/* parent */
6455		fd_set rset;
6456		int x;
6457		if(p == -1) {
6458			perror("fork");
6459			return 1;
6460		}
6461		FD_ZERO(&rset);
6462		FD_SET(sfd, &rset);
6463		if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
6464			perror("select");
6465			return 1;
6466		}
6467		i = 0;
6468		while(i < num) {
6469			if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
6470				if(errno == EAGAIN)
6471					continue;
6472				perror("recv");
6473				return 1;
6474			}
6475			i++;
6476		}
6477		/* now we want to get EAGAIN: nonblocking goodness */
6478		errno = 0;
6479		recv(sfd, &x, sizeof(x), 0);
6480		if(errno != EAGAIN) {
6481			perror("trying to recv again");
6482			return 1;
6483		}
6484		/* EAGAIN encountered */
6485	}
6486
6487	close(sfd);
6488	close(cfd);
6489	return 0;
6490}
6491
6492_ACEOF
6493if ac_fn_c_try_run "$LINENO"; then :
6494
6495	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6496$as_echo "yes" >&6; }
6497
6498else
6499
6500	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501$as_echo "no" >&6; }
6502
6503$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
6504
6505
6506fi
6507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6508  conftest.$ac_objext conftest.beam conftest.$ac_ext
6509fi
6510
6511fi
6512
6513
6514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
6515$as_echo_n "checking whether mkdir has one arg... " >&6; }
6516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517/* end confdefs.h.  */
6518
6519#include <stdio.h>
6520#include <unistd.h>
6521#ifdef HAVE_WINSOCK2_H
6522#include <winsock2.h>
6523#endif
6524#ifdef HAVE_SYS_STAT_H
6525#include <sys/stat.h>
6526#endif
6527
6528int
6529main ()
6530{
6531
6532	(void)mkdir("directory");
6533
6534  ;
6535  return 0;
6536}
6537_ACEOF
6538if ac_fn_c_try_compile "$LINENO"; then :
6539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6540$as_echo "yes" >&6; }
6541
6542$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
6543
6544
6545else
6546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547$as_echo "no" >&6; }
6548
6549fi
6550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551
6552
6553# set -I. and -Isrcdir
6554if test -n "$CPPFLAGS"; then
6555	CPPFLAGS="$CPPFLAGS -I."
6556else
6557	CPPFLAGS="-I."
6558fi
6559if test "$srcdir" != "."; then
6560	CPPFLAGS="$CPPFLAGS -I$srcdir"
6561	if test -f $srcdir/config.h; then
6562		as_fn_error $? "$srcdir/config.h is in the way, please remove it" "$LINENO" 5
6563	fi
6564fi
6565
6566
6567
6568
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int8_t" >&5
6570$as_echo_n "checking for int8_t... " >&6; }
6571if ${ac_cv_type_int8_t+:} false; then :
6572  $as_echo_n "(cached) " >&6
6573else
6574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575/* end confdefs.h.  */
6576
6577#include <sys/types.h>
6578#if STDC_HEADERS
6579#include <stdlib.h>
6580#include <stddef.h>
6581#endif
6582
6583#ifdef HAVE_STDINT_H
6584#include <stdint.h>
6585#endif
6586
6587#ifdef HAVE_SYS_SOCKET_H
6588#include <sys/socket.h>
6589#endif
6590
6591#ifdef HAVE_ARPA_INET_H
6592#include <arpa/inet.h>
6593#endif
6594
6595#ifdef HAVE_SIGNAL_H
6596#include <signal.h>
6597#endif
6598
6599/* For Tru64 */
6600#ifdef HAVE_SYS_BITYPES_H
6601#include <sys/bitypes.h>
6602#endif
6603
6604_ACEOF
6605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6606  $EGREP "(^|[^a-zA-Z_0-9])int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
6607  ac_cv_type_int8_t=yes
6608else
6609  ac_cv_type_int8_t=no
6610fi
6611rm -f conftest*
6612
6613fi
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int8_t" >&5
6615$as_echo "$ac_cv_type_int8_t" >&6; }
6616if test $ac_cv_type_int8_t = no; then
6617
6618$as_echo "#define int8_t char" >>confdefs.h
6619
6620fi
6621
6622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int16_t" >&5
6623$as_echo_n "checking for int16_t... " >&6; }
6624if ${ac_cv_type_int16_t+:} false; then :
6625  $as_echo_n "(cached) " >&6
6626else
6627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628/* end confdefs.h.  */
6629
6630#include <sys/types.h>
6631#if STDC_HEADERS
6632#include <stdlib.h>
6633#include <stddef.h>
6634#endif
6635
6636#ifdef HAVE_STDINT_H
6637#include <stdint.h>
6638#endif
6639
6640#ifdef HAVE_SYS_SOCKET_H
6641#include <sys/socket.h>
6642#endif
6643
6644#ifdef HAVE_ARPA_INET_H
6645#include <arpa/inet.h>
6646#endif
6647
6648#ifdef HAVE_SIGNAL_H
6649#include <signal.h>
6650#endif
6651
6652/* For Tru64 */
6653#ifdef HAVE_SYS_BITYPES_H
6654#include <sys/bitypes.h>
6655#endif
6656
6657_ACEOF
6658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6659  $EGREP "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
6660  ac_cv_type_int16_t=yes
6661else
6662  ac_cv_type_int16_t=no
6663fi
6664rm -f conftest*
6665
6666fi
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int16_t" >&5
6668$as_echo "$ac_cv_type_int16_t" >&6; }
6669if test $ac_cv_type_int16_t = no; then
6670
6671$as_echo "#define int16_t short" >>confdefs.h
6672
6673fi
6674
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32_t" >&5
6676$as_echo_n "checking for int32_t... " >&6; }
6677if ${ac_cv_type_int32_t+:} false; then :
6678  $as_echo_n "(cached) " >&6
6679else
6680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681/* end confdefs.h.  */
6682
6683#include <sys/types.h>
6684#if STDC_HEADERS
6685#include <stdlib.h>
6686#include <stddef.h>
6687#endif
6688
6689#ifdef HAVE_STDINT_H
6690#include <stdint.h>
6691#endif
6692
6693#ifdef HAVE_SYS_SOCKET_H
6694#include <sys/socket.h>
6695#endif
6696
6697#ifdef HAVE_ARPA_INET_H
6698#include <arpa/inet.h>
6699#endif
6700
6701#ifdef HAVE_SIGNAL_H
6702#include <signal.h>
6703#endif
6704
6705/* For Tru64 */
6706#ifdef HAVE_SYS_BITYPES_H
6707#include <sys/bitypes.h>
6708#endif
6709
6710_ACEOF
6711if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6712  $EGREP "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
6713  ac_cv_type_int32_t=yes
6714else
6715  ac_cv_type_int32_t=no
6716fi
6717rm -f conftest*
6718
6719fi
6720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int32_t" >&5
6721$as_echo "$ac_cv_type_int32_t" >&6; }
6722if test $ac_cv_type_int32_t = no; then
6723
6724$as_echo "#define int32_t int" >>confdefs.h
6725
6726fi
6727
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t" >&5
6729$as_echo_n "checking for int64_t... " >&6; }
6730if ${ac_cv_type_int64_t+:} false; then :
6731  $as_echo_n "(cached) " >&6
6732else
6733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734/* end confdefs.h.  */
6735
6736#include <sys/types.h>
6737#if STDC_HEADERS
6738#include <stdlib.h>
6739#include <stddef.h>
6740#endif
6741
6742#ifdef HAVE_STDINT_H
6743#include <stdint.h>
6744#endif
6745
6746#ifdef HAVE_SYS_SOCKET_H
6747#include <sys/socket.h>
6748#endif
6749
6750#ifdef HAVE_ARPA_INET_H
6751#include <arpa/inet.h>
6752#endif
6753
6754#ifdef HAVE_SIGNAL_H
6755#include <signal.h>
6756#endif
6757
6758/* For Tru64 */
6759#ifdef HAVE_SYS_BITYPES_H
6760#include <sys/bitypes.h>
6761#endif
6762
6763_ACEOF
6764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6765  $EGREP "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
6766  ac_cv_type_int64_t=yes
6767else
6768  ac_cv_type_int64_t=no
6769fi
6770rm -f conftest*
6771
6772fi
6773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int64_t" >&5
6774$as_echo "$ac_cv_type_int64_t" >&6; }
6775if test $ac_cv_type_int64_t = no; then
6776
6777$as_echo "#define int64_t long long" >>confdefs.h
6778
6779fi
6780
6781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
6782$as_echo_n "checking for uint8_t... " >&6; }
6783if ${ac_cv_type_uint8_t+:} false; then :
6784  $as_echo_n "(cached) " >&6
6785else
6786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787/* end confdefs.h.  */
6788
6789#include <sys/types.h>
6790#if STDC_HEADERS
6791#include <stdlib.h>
6792#include <stddef.h>
6793#endif
6794
6795#ifdef HAVE_STDINT_H
6796#include <stdint.h>
6797#endif
6798
6799#ifdef HAVE_SYS_SOCKET_H
6800#include <sys/socket.h>
6801#endif
6802
6803#ifdef HAVE_ARPA_INET_H
6804#include <arpa/inet.h>
6805#endif
6806
6807#ifdef HAVE_SIGNAL_H
6808#include <signal.h>
6809#endif
6810
6811/* For Tru64 */
6812#ifdef HAVE_SYS_BITYPES_H
6813#include <sys/bitypes.h>
6814#endif
6815
6816_ACEOF
6817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6818  $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
6819  ac_cv_type_uint8_t=yes
6820else
6821  ac_cv_type_uint8_t=no
6822fi
6823rm -f conftest*
6824
6825fi
6826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
6827$as_echo "$ac_cv_type_uint8_t" >&6; }
6828if test $ac_cv_type_uint8_t = no; then
6829
6830$as_echo "#define uint8_t unsigned char" >>confdefs.h
6831
6832fi
6833
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
6835$as_echo_n "checking for uint16_t... " >&6; }
6836if ${ac_cv_type_uint16_t+:} false; then :
6837  $as_echo_n "(cached) " >&6
6838else
6839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840/* end confdefs.h.  */
6841
6842#include <sys/types.h>
6843#if STDC_HEADERS
6844#include <stdlib.h>
6845#include <stddef.h>
6846#endif
6847
6848#ifdef HAVE_STDINT_H
6849#include <stdint.h>
6850#endif
6851
6852#ifdef HAVE_SYS_SOCKET_H
6853#include <sys/socket.h>
6854#endif
6855
6856#ifdef HAVE_ARPA_INET_H
6857#include <arpa/inet.h>
6858#endif
6859
6860#ifdef HAVE_SIGNAL_H
6861#include <signal.h>
6862#endif
6863
6864/* For Tru64 */
6865#ifdef HAVE_SYS_BITYPES_H
6866#include <sys/bitypes.h>
6867#endif
6868
6869_ACEOF
6870if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6871  $EGREP "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
6872  ac_cv_type_uint16_t=yes
6873else
6874  ac_cv_type_uint16_t=no
6875fi
6876rm -f conftest*
6877
6878fi
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
6880$as_echo "$ac_cv_type_uint16_t" >&6; }
6881if test $ac_cv_type_uint16_t = no; then
6882
6883$as_echo "#define uint16_t unsigned short" >>confdefs.h
6884
6885fi
6886
6887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
6888$as_echo_n "checking for uint32_t... " >&6; }
6889if ${ac_cv_type_uint32_t+:} false; then :
6890  $as_echo_n "(cached) " >&6
6891else
6892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893/* end confdefs.h.  */
6894
6895#include <sys/types.h>
6896#if STDC_HEADERS
6897#include <stdlib.h>
6898#include <stddef.h>
6899#endif
6900
6901#ifdef HAVE_STDINT_H
6902#include <stdint.h>
6903#endif
6904
6905#ifdef HAVE_SYS_SOCKET_H
6906#include <sys/socket.h>
6907#endif
6908
6909#ifdef HAVE_ARPA_INET_H
6910#include <arpa/inet.h>
6911#endif
6912
6913#ifdef HAVE_SIGNAL_H
6914#include <signal.h>
6915#endif
6916
6917/* For Tru64 */
6918#ifdef HAVE_SYS_BITYPES_H
6919#include <sys/bitypes.h>
6920#endif
6921
6922_ACEOF
6923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6924  $EGREP "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
6925  ac_cv_type_uint32_t=yes
6926else
6927  ac_cv_type_uint32_t=no
6928fi
6929rm -f conftest*
6930
6931fi
6932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
6933$as_echo "$ac_cv_type_uint32_t" >&6; }
6934if test $ac_cv_type_uint32_t = no; then
6935
6936$as_echo "#define uint32_t unsigned int" >>confdefs.h
6937
6938fi
6939
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5
6941$as_echo_n "checking for uint64_t... " >&6; }
6942if ${ac_cv_type_uint64_t+:} false; then :
6943  $as_echo_n "(cached) " >&6
6944else
6945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946/* end confdefs.h.  */
6947
6948#include <sys/types.h>
6949#if STDC_HEADERS
6950#include <stdlib.h>
6951#include <stddef.h>
6952#endif
6953
6954#ifdef HAVE_STDINT_H
6955#include <stdint.h>
6956#endif
6957
6958#ifdef HAVE_SYS_SOCKET_H
6959#include <sys/socket.h>
6960#endif
6961
6962#ifdef HAVE_ARPA_INET_H
6963#include <arpa/inet.h>
6964#endif
6965
6966#ifdef HAVE_SIGNAL_H
6967#include <signal.h>
6968#endif
6969
6970/* For Tru64 */
6971#ifdef HAVE_SYS_BITYPES_H
6972#include <sys/bitypes.h>
6973#endif
6974
6975_ACEOF
6976if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6977  $EGREP "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
6978  ac_cv_type_uint64_t=yes
6979else
6980  ac_cv_type_uint64_t=no
6981fi
6982rm -f conftest*
6983
6984fi
6985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint64_t" >&5
6986$as_echo "$ac_cv_type_uint64_t" >&6; }
6987if test $ac_cv_type_uint64_t = no; then
6988
6989$as_echo "#define uint64_t unsigned long long" >>confdefs.h
6990
6991fi
6992
6993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
6994$as_echo_n "checking for socklen_t... " >&6; }
6995if ${ac_cv_type_socklen_t+:} false; then :
6996  $as_echo_n "(cached) " >&6
6997else
6998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6999/* end confdefs.h.  */
7000
7001#include <sys/types.h>
7002#if STDC_HEADERS
7003#include <stdlib.h>
7004#include <stddef.h>
7005#endif
7006
7007#ifdef HAVE_STDINT_H
7008#include <stdint.h>
7009#endif
7010
7011#ifdef HAVE_SYS_SOCKET_H
7012#include <sys/socket.h>
7013#endif
7014
7015#ifdef HAVE_ARPA_INET_H
7016#include <arpa/inet.h>
7017#endif
7018
7019#ifdef HAVE_SIGNAL_H
7020#include <signal.h>
7021#endif
7022
7023/* For Tru64 */
7024#ifdef HAVE_SYS_BITYPES_H
7025#include <sys/bitypes.h>
7026#endif
7027
7028_ACEOF
7029if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7030  $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
7031  ac_cv_type_socklen_t=yes
7032else
7033  ac_cv_type_socklen_t=no
7034fi
7035rm -f conftest*
7036
7037fi
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
7039$as_echo "$ac_cv_type_socklen_t" >&6; }
7040if test $ac_cv_type_socklen_t = no; then
7041
7042$as_echo "#define socklen_t int" >>confdefs.h
7043
7044fi
7045
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5
7047$as_echo_n "checking for sig_atomic_t... " >&6; }
7048if ${ac_cv_type_sig_atomic_t+:} false; then :
7049  $as_echo_n "(cached) " >&6
7050else
7051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052/* end confdefs.h.  */
7053
7054#include <sys/types.h>
7055#if STDC_HEADERS
7056#include <stdlib.h>
7057#include <stddef.h>
7058#endif
7059
7060#ifdef HAVE_STDINT_H
7061#include <stdint.h>
7062#endif
7063
7064#ifdef HAVE_SYS_SOCKET_H
7065#include <sys/socket.h>
7066#endif
7067
7068#ifdef HAVE_ARPA_INET_H
7069#include <arpa/inet.h>
7070#endif
7071
7072#ifdef HAVE_SIGNAL_H
7073#include <signal.h>
7074#endif
7075
7076/* For Tru64 */
7077#ifdef HAVE_SYS_BITYPES_H
7078#include <sys/bitypes.h>
7079#endif
7080
7081_ACEOF
7082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083  $EGREP "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
7084  ac_cv_type_sig_atomic_t=yes
7085else
7086  ac_cv_type_sig_atomic_t=no
7087fi
7088rm -f conftest*
7089
7090fi
7091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5
7092$as_echo "$ac_cv_type_sig_atomic_t" >&6; }
7093if test $ac_cv_type_sig_atomic_t = no; then
7094
7095$as_echo "#define sig_atomic_t int" >>confdefs.h
7096
7097fi
7098
7099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
7100$as_echo_n "checking for ssize_t... " >&6; }
7101if ${ac_cv_type_ssize_t+:} false; then :
7102  $as_echo_n "(cached) " >&6
7103else
7104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105/* end confdefs.h.  */
7106
7107#include <sys/types.h>
7108#if STDC_HEADERS
7109#include <stdlib.h>
7110#include <stddef.h>
7111#endif
7112
7113#ifdef HAVE_STDINT_H
7114#include <stdint.h>
7115#endif
7116
7117#ifdef HAVE_SYS_SOCKET_H
7118#include <sys/socket.h>
7119#endif
7120
7121#ifdef HAVE_ARPA_INET_H
7122#include <arpa/inet.h>
7123#endif
7124
7125#ifdef HAVE_SIGNAL_H
7126#include <signal.h>
7127#endif
7128
7129/* For Tru64 */
7130#ifdef HAVE_SYS_BITYPES_H
7131#include <sys/bitypes.h>
7132#endif
7133
7134_ACEOF
7135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7136  $EGREP "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
7137  ac_cv_type_ssize_t=yes
7138else
7139  ac_cv_type_ssize_t=no
7140fi
7141rm -f conftest*
7142
7143fi
7144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_ssize_t" >&5
7145$as_echo "$ac_cv_type_ssize_t" >&6; }
7146if test $ac_cv_type_ssize_t = no; then
7147
7148$as_echo "#define ssize_t int" >>confdefs.h
7149
7150fi
7151
7152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suseconds_t" >&5
7153$as_echo_n "checking for suseconds_t... " >&6; }
7154if ${ac_cv_type_suseconds_t+:} false; then :
7155  $as_echo_n "(cached) " >&6
7156else
7157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158/* end confdefs.h.  */
7159
7160#include <sys/types.h>
7161#if STDC_HEADERS
7162#include <stdlib.h>
7163#include <stddef.h>
7164#endif
7165
7166#ifdef HAVE_STDINT_H
7167#include <stdint.h>
7168#endif
7169
7170#ifdef HAVE_SYS_SOCKET_H
7171#include <sys/socket.h>
7172#endif
7173
7174#ifdef HAVE_ARPA_INET_H
7175#include <arpa/inet.h>
7176#endif
7177
7178#ifdef HAVE_SIGNAL_H
7179#include <signal.h>
7180#endif
7181
7182/* For Tru64 */
7183#ifdef HAVE_SYS_BITYPES_H
7184#include <sys/bitypes.h>
7185#endif
7186
7187_ACEOF
7188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7189  $EGREP "(^|[^a-zA-Z_0-9])suseconds_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
7190  ac_cv_type_suseconds_t=yes
7191else
7192  ac_cv_type_suseconds_t=no
7193fi
7194rm -f conftest*
7195
7196fi
7197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_suseconds_t" >&5
7198$as_echo "$ac_cv_type_suseconds_t" >&6; }
7199if test $ac_cv_type_suseconds_t = no; then
7200
7201$as_echo "#define suseconds_t time_t" >>confdefs.h
7202
7203fi
7204
7205
7206ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
7207#if HAVE_SYS_TYPES_H
7208# include <sys/types.h>
7209#endif
7210#if HAVE_NETINET_IN_H
7211# include <netinet/in.h>
7212#endif
7213"
7214if test "x$ac_cv_type_in_addr_t" = xyes; then :
7215
7216else
7217
7218$as_echo "#define in_addr_t uint32_t" >>confdefs.h
7219
7220fi
7221
7222ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "$ac_includes_default
7223#ifdef HAVE_NETINET_IN_H
7224#include <netinet/in.h>
7225#endif
7226#ifdef HAVE_SYS_SOCKET_H
7227#include <sys/socket.h>
7228#endif
7229#ifdef HAVE_NETDB_H
7230#include <netdb.h>
7231#endif
7232#ifdef HAVE_ARPA_INET_H
7233#include <arpa/inet.h>
7234#endif
7235
7236"
7237if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
7238
7239else
7240
7241        ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "$ac_includes_default
7242#ifdef HAVE_NETINET_IN_H
7243#include <netinet/in.h>
7244#endif
7245#ifdef HAVE_SYS_SOCKET_H
7246#include <sys/socket.h>
7247#endif
7248#ifdef HAVE_NETDB_H
7249#include <netdb.h>
7250#endif
7251#ifdef HAVE_ARPA_INET_H
7252#include <arpa/inet.h>
7253#endif
7254
7255"
7256if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
7257
7258
7259$as_echo "#define ss_family __ss_family" >>confdefs.h
7260
7261
7262fi
7263
7264
7265fi
7266
7267ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default"
7268if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
7269
7270cat >>confdefs.h <<_ACEOF
7271#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
7272_ACEOF
7273
7274
7275fi
7276ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default"
7277if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
7278
7279cat >>confdefs.h <<_ACEOF
7280#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
7281_ACEOF
7282
7283
7284fi
7285
7286ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
7287$ac_includes_default
7288#ifdef HAVE_SYS_UN_H
7289#include <sys/un.h>
7290#endif
7291
7292"
7293if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
7294
7295cat >>confdefs.h <<_ACEOF
7296#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
7297_ACEOF
7298
7299
7300fi
7301
7302
7303# Checks for library functions.
7304for ac_header in unistd.h
7305do :
7306  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
7307if test "x$ac_cv_header_unistd_h" = xyes; then :
7308  cat >>confdefs.h <<_ACEOF
7309#define HAVE_UNISTD_H 1
7310_ACEOF
7311
7312fi
7313
7314done
7315
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
7317$as_echo_n "checking for working chown... " >&6; }
7318if ${ac_cv_func_chown_works+:} false; then :
7319  $as_echo_n "(cached) " >&6
7320else
7321  if test "$cross_compiling" = yes; then :
7322  ac_cv_func_chown_works=no
7323else
7324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325/* end confdefs.h.  */
7326$ac_includes_default
7327#include <fcntl.h>
7328
7329int
7330main ()
7331{
7332  char *f = "conftest.chown";
7333  struct stat before, after;
7334
7335  if (creat (f, 0600) < 0)
7336    return 1;
7337  if (stat (f, &before) < 0)
7338    return 1;
7339  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
7340    return 1;
7341  if (stat (f, &after) < 0)
7342    return 1;
7343  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
7344
7345  ;
7346  return 0;
7347}
7348_ACEOF
7349if ac_fn_c_try_run "$LINENO"; then :
7350  ac_cv_func_chown_works=yes
7351else
7352  ac_cv_func_chown_works=no
7353fi
7354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7355  conftest.$ac_objext conftest.beam conftest.$ac_ext
7356fi
7357
7358rm -f conftest.chown
7359
7360fi
7361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
7362$as_echo "$ac_cv_func_chown_works" >&6; }
7363if test $ac_cv_func_chown_works = yes; then
7364
7365$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
7366
7367fi
7368
7369for ac_header in vfork.h
7370do :
7371  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7372if test "x$ac_cv_header_vfork_h" = xyes; then :
7373  cat >>confdefs.h <<_ACEOF
7374#define HAVE_VFORK_H 1
7375_ACEOF
7376
7377fi
7378
7379done
7380
7381for ac_func in fork vfork
7382do :
7383  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7384ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7385if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7386  cat >>confdefs.h <<_ACEOF
7387#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7388_ACEOF
7389
7390fi
7391done
7392
7393if test "x$ac_cv_func_fork" = xyes; then
7394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7395$as_echo_n "checking for working fork... " >&6; }
7396if ${ac_cv_func_fork_works+:} false; then :
7397  $as_echo_n "(cached) " >&6
7398else
7399  if test "$cross_compiling" = yes; then :
7400  ac_cv_func_fork_works=cross
7401else
7402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403/* end confdefs.h.  */
7404$ac_includes_default
7405int
7406main ()
7407{
7408
7409	  /* By Ruediger Kuhlmann. */
7410	  return fork () < 0;
7411
7412  ;
7413  return 0;
7414}
7415_ACEOF
7416if ac_fn_c_try_run "$LINENO"; then :
7417  ac_cv_func_fork_works=yes
7418else
7419  ac_cv_func_fork_works=no
7420fi
7421rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7422  conftest.$ac_objext conftest.beam conftest.$ac_ext
7423fi
7424
7425fi
7426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7427$as_echo "$ac_cv_func_fork_works" >&6; }
7428
7429else
7430  ac_cv_func_fork_works=$ac_cv_func_fork
7431fi
7432if test "x$ac_cv_func_fork_works" = xcross; then
7433  case $host in
7434    *-*-amigaos* | *-*-msdosdjgpp*)
7435      # Override, as these systems have only a dummy fork() stub
7436      ac_cv_func_fork_works=no
7437      ;;
7438    *)
7439      ac_cv_func_fork_works=yes
7440      ;;
7441  esac
7442  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7443$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7444fi
7445ac_cv_func_vfork_works=$ac_cv_func_vfork
7446if test "x$ac_cv_func_vfork" = xyes; then
7447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
7448$as_echo_n "checking for working vfork... " >&6; }
7449if ${ac_cv_func_vfork_works+:} false; then :
7450  $as_echo_n "(cached) " >&6
7451else
7452  if test "$cross_compiling" = yes; then :
7453  ac_cv_func_vfork_works=cross
7454else
7455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456/* end confdefs.h.  */
7457/* Thanks to Paul Eggert for this test.  */
7458$ac_includes_default
7459#include <sys/wait.h>
7460#ifdef HAVE_VFORK_H
7461# include <vfork.h>
7462#endif
7463/* On some sparc systems, changes by the child to local and incoming
7464   argument registers are propagated back to the parent.  The compiler
7465   is told about this with #include <vfork.h>, but some compilers
7466   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
7467   static variable whose address is put into a register that is
7468   clobbered by the vfork.  */
7469static void
7470#ifdef __cplusplus
7471sparc_address_test (int arg)
7472# else
7473sparc_address_test (arg) int arg;
7474#endif
7475{
7476  static pid_t child;
7477  if (!child) {
7478    child = vfork ();
7479    if (child < 0) {
7480      perror ("vfork");
7481      _exit(2);
7482    }
7483    if (!child) {
7484      arg = getpid();
7485      write(-1, "", 0);
7486      _exit (arg);
7487    }
7488  }
7489}
7490
7491int
7492main ()
7493{
7494  pid_t parent = getpid ();
7495  pid_t child;
7496
7497  sparc_address_test (0);
7498
7499  child = vfork ();
7500
7501  if (child == 0) {
7502    /* Here is another test for sparc vfork register problems.  This
7503       test uses lots of local variables, at least as many local
7504       variables as main has allocated so far including compiler
7505       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
7506       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
7507       reuse the register of parent for one of the local variables,
7508       since it will think that parent can't possibly be used any more
7509       in this routine.  Assigning to the local variable will thus
7510       munge parent in the parent process.  */
7511    pid_t
7512      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7513      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7514    /* Convince the compiler that p..p7 are live; otherwise, it might
7515       use the same hardware register for all 8 local variables.  */
7516    if (p != p1 || p != p2 || p != p3 || p != p4
7517	|| p != p5 || p != p6 || p != p7)
7518      _exit(1);
7519
7520    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7521       from child file descriptors.  If the child closes a descriptor
7522       before it execs or exits, this munges the parent's descriptor
7523       as well.  Test for this by closing stdout in the child.  */
7524    _exit(close(fileno(stdout)) != 0);
7525  } else {
7526    int status;
7527    struct stat st;
7528
7529    while (wait(&status) != child)
7530      ;
7531    return (
7532	 /* Was there some problem with vforking?  */
7533	 child < 0
7534
7535	 /* Did the child fail?  (This shouldn't happen.)  */
7536	 || status
7537
7538	 /* Did the vfork/compiler bug occur?  */
7539	 || parent != getpid()
7540
7541	 /* Did the file descriptor bug occur?  */
7542	 || fstat(fileno(stdout), &st) != 0
7543	 );
7544  }
7545}
7546_ACEOF
7547if ac_fn_c_try_run "$LINENO"; then :
7548  ac_cv_func_vfork_works=yes
7549else
7550  ac_cv_func_vfork_works=no
7551fi
7552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7553  conftest.$ac_objext conftest.beam conftest.$ac_ext
7554fi
7555
7556fi
7557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
7558$as_echo "$ac_cv_func_vfork_works" >&6; }
7559
7560fi;
7561if test "x$ac_cv_func_fork_works" = xcross; then
7562  ac_cv_func_vfork_works=$ac_cv_func_vfork
7563  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7564$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7565fi
7566
7567if test "x$ac_cv_func_vfork_works" = xyes; then
7568
7569$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
7570
7571else
7572
7573$as_echo "#define vfork fork" >>confdefs.h
7574
7575fi
7576if test "x$ac_cv_func_fork_works" = xyes; then
7577
7578$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
7579
7580fi
7581
7582for ac_header in stdlib.h
7583do :
7584  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
7585if test "x$ac_cv_header_stdlib_h" = xyes; then :
7586  cat >>confdefs.h <<_ACEOF
7587#define HAVE_STDLIB_H 1
7588_ACEOF
7589
7590fi
7591
7592done
7593
7594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
7595$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7596if ${ac_cv_func_malloc_0_nonnull+:} false; then :
7597  $as_echo_n "(cached) " >&6
7598else
7599  if test "$cross_compiling" = yes; then :
7600  ac_cv_func_malloc_0_nonnull=no
7601else
7602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603/* end confdefs.h.  */
7604#if defined STDC_HEADERS || defined HAVE_STDLIB_H
7605# include <stdlib.h>
7606#else
7607char *malloc ();
7608#endif
7609
7610int
7611main ()
7612{
7613return ! malloc (0);
7614  ;
7615  return 0;
7616}
7617_ACEOF
7618if ac_fn_c_try_run "$LINENO"; then :
7619  ac_cv_func_malloc_0_nonnull=yes
7620else
7621  ac_cv_func_malloc_0_nonnull=no
7622fi
7623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7624  conftest.$ac_objext conftest.beam conftest.$ac_ext
7625fi
7626
7627fi
7628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
7629$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7630if test $ac_cv_func_malloc_0_nonnull = yes; then :
7631
7632$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
7633
7634else
7635  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
7636
7637   case " $LIBOBJS " in
7638  *" malloc.$ac_objext "* ) ;;
7639  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7640 ;;
7641esac
7642
7643
7644$as_echo "#define malloc rpl_malloc" >>confdefs.h
7645
7646fi
7647
7648
7649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7650$as_echo_n "checking return type of signal handlers... " >&6; }
7651if ${ac_cv_type_signal+:} false; then :
7652  $as_echo_n "(cached) " >&6
7653else
7654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655/* end confdefs.h.  */
7656#include <sys/types.h>
7657#include <signal.h>
7658
7659int
7660main ()
7661{
7662return *(signal (0, 0)) (0) == 1;
7663  ;
7664  return 0;
7665}
7666_ACEOF
7667if ac_fn_c_try_compile "$LINENO"; then :
7668  ac_cv_type_signal=int
7669else
7670  ac_cv_type_signal=void
7671fi
7672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7673fi
7674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7675$as_echo "$ac_cv_type_signal" >&6; }
7676
7677cat >>confdefs.h <<_ACEOF
7678#define RETSIGTYPE $ac_cv_type_signal
7679_ACEOF
7680
7681
7682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7683$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
7684if ${ac_cv_sys_largefile_source+:} false; then :
7685  $as_echo_n "(cached) " >&6
7686else
7687  while :; do
7688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689/* end confdefs.h.  */
7690#include <sys/types.h> /* for off_t */
7691     #include <stdio.h>
7692int
7693main ()
7694{
7695int (*fp) (FILE *, off_t, int) = fseeko;
7696     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7697  ;
7698  return 0;
7699}
7700_ACEOF
7701if ac_fn_c_try_link "$LINENO"; then :
7702  ac_cv_sys_largefile_source=no; break
7703fi
7704rm -f core conftest.err conftest.$ac_objext \
7705    conftest$ac_exeext conftest.$ac_ext
7706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707/* end confdefs.h.  */
7708#define _LARGEFILE_SOURCE 1
7709#include <sys/types.h> /* for off_t */
7710     #include <stdio.h>
7711int
7712main ()
7713{
7714int (*fp) (FILE *, off_t, int) = fseeko;
7715     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7716  ;
7717  return 0;
7718}
7719_ACEOF
7720if ac_fn_c_try_link "$LINENO"; then :
7721  ac_cv_sys_largefile_source=1; break
7722fi
7723rm -f core conftest.err conftest.$ac_objext \
7724    conftest$ac_exeext conftest.$ac_ext
7725  ac_cv_sys_largefile_source=unknown
7726  break
7727done
7728fi
7729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
7730$as_echo "$ac_cv_sys_largefile_source" >&6; }
7731case $ac_cv_sys_largefile_source in #(
7732  no | unknown) ;;
7733  *)
7734cat >>confdefs.h <<_ACEOF
7735#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7736_ACEOF
7737;;
7738esac
7739rm -rf conftest*
7740
7741# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7742# in glibc 2.1.3, but that breaks too many other things.
7743# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7744if test $ac_cv_sys_largefile_source != unknown; then
7745
7746$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
7747
7748fi
7749
7750# Check whether --enable-largefile was given.
7751if test "${enable_largefile+set}" = set; then :
7752  enableval=$enable_largefile;
7753fi
7754
7755if test "$enable_largefile" != no; then
7756
7757  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7758$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7759if ${ac_cv_sys_largefile_CC+:} false; then :
7760  $as_echo_n "(cached) " >&6
7761else
7762  ac_cv_sys_largefile_CC=no
7763     if test "$GCC" != yes; then
7764       ac_save_CC=$CC
7765       while :; do
7766	 # IRIX 6.2 and later do not support large files by default,
7767	 # so use the C compiler's -n32 option if that helps.
7768	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769/* end confdefs.h.  */
7770#include <sys/types.h>
7771 /* Check that off_t can represent 2**63 - 1 correctly.
7772    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7773    since some C++ compilers masquerading as C compilers
7774    incorrectly reject 9223372036854775807.  */
7775#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7776  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7777		       && LARGE_OFF_T % 2147483647 == 1)
7778		      ? 1 : -1];
7779int
7780main ()
7781{
7782
7783  ;
7784  return 0;
7785}
7786_ACEOF
7787	 if ac_fn_c_try_compile "$LINENO"; then :
7788  break
7789fi
7790rm -f core conftest.err conftest.$ac_objext
7791	 CC="$CC -n32"
7792	 if ac_fn_c_try_compile "$LINENO"; then :
7793  ac_cv_sys_largefile_CC=' -n32'; break
7794fi
7795rm -f core conftest.err conftest.$ac_objext
7796	 break
7797       done
7798       CC=$ac_save_CC
7799       rm -f conftest.$ac_ext
7800    fi
7801fi
7802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7803$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7804  if test "$ac_cv_sys_largefile_CC" != no; then
7805    CC=$CC$ac_cv_sys_largefile_CC
7806  fi
7807
7808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7809$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7810if ${ac_cv_sys_file_offset_bits+:} false; then :
7811  $as_echo_n "(cached) " >&6
7812else
7813  while :; do
7814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815/* end confdefs.h.  */
7816#include <sys/types.h>
7817 /* Check that off_t can represent 2**63 - 1 correctly.
7818    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7819    since some C++ compilers masquerading as C compilers
7820    incorrectly reject 9223372036854775807.  */
7821#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7822  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7823		       && LARGE_OFF_T % 2147483647 == 1)
7824		      ? 1 : -1];
7825int
7826main ()
7827{
7828
7829  ;
7830  return 0;
7831}
7832_ACEOF
7833if ac_fn_c_try_compile "$LINENO"; then :
7834  ac_cv_sys_file_offset_bits=no; break
7835fi
7836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838/* end confdefs.h.  */
7839#define _FILE_OFFSET_BITS 64
7840#include <sys/types.h>
7841 /* Check that off_t can represent 2**63 - 1 correctly.
7842    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7843    since some C++ compilers masquerading as C compilers
7844    incorrectly reject 9223372036854775807.  */
7845#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7846  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7847		       && LARGE_OFF_T % 2147483647 == 1)
7848		      ? 1 : -1];
7849int
7850main ()
7851{
7852
7853  ;
7854  return 0;
7855}
7856_ACEOF
7857if ac_fn_c_try_compile "$LINENO"; then :
7858  ac_cv_sys_file_offset_bits=64; break
7859fi
7860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7861  ac_cv_sys_file_offset_bits=unknown
7862  break
7863done
7864fi
7865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7866$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7867case $ac_cv_sys_file_offset_bits in #(
7868  no | unknown) ;;
7869  *)
7870cat >>confdefs.h <<_ACEOF
7871#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7872_ACEOF
7873;;
7874esac
7875rm -rf conftest*
7876  if test $ac_cv_sys_file_offset_bits = unknown; then
7877    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7878$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7879if ${ac_cv_sys_large_files+:} false; then :
7880  $as_echo_n "(cached) " >&6
7881else
7882  while :; do
7883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884/* end confdefs.h.  */
7885#include <sys/types.h>
7886 /* Check that off_t can represent 2**63 - 1 correctly.
7887    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7888    since some C++ compilers masquerading as C compilers
7889    incorrectly reject 9223372036854775807.  */
7890#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7891  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7892		       && LARGE_OFF_T % 2147483647 == 1)
7893		      ? 1 : -1];
7894int
7895main ()
7896{
7897
7898  ;
7899  return 0;
7900}
7901_ACEOF
7902if ac_fn_c_try_compile "$LINENO"; then :
7903  ac_cv_sys_large_files=no; break
7904fi
7905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907/* end confdefs.h.  */
7908#define _LARGE_FILES 1
7909#include <sys/types.h>
7910 /* Check that off_t can represent 2**63 - 1 correctly.
7911    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7912    since some C++ compilers masquerading as C compilers
7913    incorrectly reject 9223372036854775807.  */
7914#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7915  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7916		       && LARGE_OFF_T % 2147483647 == 1)
7917		      ? 1 : -1];
7918int
7919main ()
7920{
7921
7922  ;
7923  return 0;
7924}
7925_ACEOF
7926if ac_fn_c_try_compile "$LINENO"; then :
7927  ac_cv_sys_large_files=1; break
7928fi
7929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930  ac_cv_sys_large_files=unknown
7931  break
7932done
7933fi
7934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7935$as_echo "$ac_cv_sys_large_files" >&6; }
7936case $ac_cv_sys_large_files in #(
7937  no | unknown) ;;
7938  *)
7939cat >>confdefs.h <<_ACEOF
7940#define _LARGE_FILES $ac_cv_sys_large_files
7941_ACEOF
7942;;
7943esac
7944rm -rf conftest*
7945  fi
7946
7947
7948fi
7949
7950# The cast to long int works around a bug in the HP C Compiler
7951# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7952# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7953# This bug is HP SR number 8606223364.
7954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
7955$as_echo_n "checking size of void*... " >&6; }
7956if ${ac_cv_sizeof_voidp+:} false; then :
7957  $as_echo_n "(cached) " >&6
7958else
7959  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
7960
7961else
7962  if test "$ac_cv_type_voidp" = yes; then
7963     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7965as_fn_error 77 "cannot compute sizeof (void*)
7966See \`config.log' for more details" "$LINENO" 5; }
7967   else
7968     ac_cv_sizeof_voidp=0
7969   fi
7970fi
7971
7972fi
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
7974$as_echo "$ac_cv_sizeof_voidp" >&6; }
7975
7976
7977
7978cat >>confdefs.h <<_ACEOF
7979#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
7980_ACEOF
7981
7982
7983# The cast to long int works around a bug in the HP C Compiler
7984# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7985# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7986# This bug is HP SR number 8606223364.
7987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
7988$as_echo_n "checking size of off_t... " >&6; }
7989if ${ac_cv_sizeof_off_t+:} false; then :
7990  $as_echo_n "(cached) " >&6
7991else
7992  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
7993
7994else
7995  if test "$ac_cv_type_off_t" = yes; then
7996     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7998as_fn_error 77 "cannot compute sizeof (off_t)
7999See \`config.log' for more details" "$LINENO" 5; }
8000   else
8001     ac_cv_sizeof_off_t=0
8002   fi
8003fi
8004
8005fi
8006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
8007$as_echo "$ac_cv_sizeof_off_t" >&6; }
8008
8009
8010
8011cat >>confdefs.h <<_ACEOF
8012#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
8013_ACEOF
8014
8015
8016for ac_func in arc4random arc4random_uniform
8017do :
8018  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8019ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8020if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8021  cat >>confdefs.h <<_ACEOF
8022#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8023_ACEOF
8024
8025fi
8026done
8027
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
8029$as_echo_n "checking for library containing setusercontext... " >&6; }
8030if ${ac_cv_search_setusercontext+:} false; then :
8031  $as_echo_n "(cached) " >&6
8032else
8033  ac_func_search_save_LIBS=$LIBS
8034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035/* end confdefs.h.  */
8036
8037/* Override any GCC internal prototype to avoid an error.
8038   Use char because int might match the return type of a GCC
8039   builtin and then its argument prototype would still apply.  */
8040#ifdef __cplusplus
8041extern "C"
8042#endif
8043char setusercontext ();
8044int
8045main ()
8046{
8047return setusercontext ();
8048  ;
8049  return 0;
8050}
8051_ACEOF
8052for ac_lib in '' util; do
8053  if test -z "$ac_lib"; then
8054    ac_res="none required"
8055  else
8056    ac_res=-l$ac_lib
8057    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8058  fi
8059  if ac_fn_c_try_link "$LINENO"; then :
8060  ac_cv_search_setusercontext=$ac_res
8061fi
8062rm -f core conftest.err conftest.$ac_objext \
8063    conftest$ac_exeext
8064  if ${ac_cv_search_setusercontext+:} false; then :
8065  break
8066fi
8067done
8068if ${ac_cv_search_setusercontext+:} false; then :
8069
8070else
8071  ac_cv_search_setusercontext=no
8072fi
8073rm conftest.$ac_ext
8074LIBS=$ac_func_search_save_LIBS
8075fi
8076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
8077$as_echo "$ac_cv_search_setusercontext" >&6; }
8078ac_res=$ac_cv_search_setusercontext
8079if test "$ac_res" != no; then :
8080  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8081  for ac_header in login_cap.h
8082do :
8083  ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
8084if test "x$ac_cv_header_login_cap_h" = xyes; then :
8085  cat >>confdefs.h <<_ACEOF
8086#define HAVE_LOGIN_CAP_H 1
8087_ACEOF
8088
8089fi
8090
8091done
8092
8093fi
8094
8095for ac_func in tzset alarm chroot dup2 endpwent gethostname memset memcpy pwrite socket strcasecmp strchr strdup strerror strncasecmp strtol writev getaddrinfo getnameinfo freeaddrinfo gai_strerror sigaction sigprocmask strptime strftime localtime_r setusercontext glob initgroups setresuid setreuid setresgid setregid getpwnam mmap ppoll clock_gettime accept4
8096do :
8097  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8098ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8099if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8100  cat >>confdefs.h <<_ACEOF
8101#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8102_ACEOF
8103
8104fi
8105done
8106
8107
8108# Check whether --enable-recvmmsg was given.
8109if test "${enable_recvmmsg+set}" = set; then :
8110  enableval=$enable_recvmmsg;
8111fi
8112
8113case "$enable_recvmmsg" in
8114        yes)
8115		ac_fn_c_check_func "$LINENO" "recvmmsg" "ac_cv_func_recvmmsg"
8116if test "x$ac_cv_func_recvmmsg" = xyes; then :
8117
8118if test "$cross_compiling" = yes; then :
8119
8120
8121$as_echo "#define HAVE_RECVMMSG 1" >>confdefs.h
8122
8123
8124else
8125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126/* end confdefs.h.  */
8127
8128#include <sys/socket.h>
8129#include <errno.h>
8130int main(void)
8131{
8132	int s = socket(AF_INET, SOCK_DGRAM, 0);
8133	int r = recvmmsg(s, 0, 0, 0, 0) == -1 && errno == ENOSYS;
8134	close(s);
8135	return r;
8136}
8137
8138_ACEOF
8139if ac_fn_c_try_run "$LINENO"; then :
8140
8141
8142$as_echo "#define HAVE_RECVMMSG 1" >>confdefs.h
8143
8144fi
8145rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8146  conftest.$ac_objext conftest.beam conftest.$ac_ext
8147fi
8148
8149fi
8150
8151		ac_fn_c_check_func "$LINENO" "sendmmsg" "ac_cv_func_sendmmsg"
8152if test "x$ac_cv_func_sendmmsg" = xyes; then :
8153
8154if test "$cross_compiling" = yes; then :
8155
8156
8157$as_echo "#define HAVE_SENDMMSG 1" >>confdefs.h
8158
8159
8160else
8161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162/* end confdefs.h.  */
8163
8164#include <sys/socket.h>
8165#include <errno.h>
8166int main(void)
8167{
8168	int s = socket(AF_INET, SOCK_DGRAM, 0);
8169	int r = sendmmsg(s, 0, 0, 0) == -1 && errno == ENOSYS;
8170	close(s);
8171	return r;
8172}
8173
8174_ACEOF
8175if ac_fn_c_try_run "$LINENO"; then :
8176
8177
8178$as_echo "#define HAVE_SENDMMSG 1" >>confdefs.h
8179
8180fi
8181rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8182  conftest.$ac_objext conftest.beam conftest.$ac_ext
8183fi
8184
8185fi
8186
8187
8188		;;
8189        no|*)
8190                ;;
8191esac
8192
8193# check if setreuid en setregid fail, on MacOSX10.4(darwin8).
8194if echo $target_os | grep darwin8 > /dev/null; then
8195
8196$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
8197
8198fi
8199
8200#
8201# Checking for missing functions we can replace
8202#
8203ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
8204if test "x$ac_cv_func_basename" = xyes; then :
8205  $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
8206
8207else
8208  case " $LIBOBJS " in
8209  *" basename.$ac_objext "* ) ;;
8210  *) LIBOBJS="$LIBOBJS basename.$ac_objext"
8211 ;;
8212esac
8213
8214fi
8215
8216
8217ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
8218if test "x$ac_cv_func_inet_aton" = xyes; then :
8219  $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
8220
8221else
8222  case " $LIBOBJS " in
8223  *" inet_aton.$ac_objext "* ) ;;
8224  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
8225 ;;
8226esac
8227
8228fi
8229
8230
8231ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
8232if test "x$ac_cv_func_inet_pton" = xyes; then :
8233  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
8234
8235else
8236  case " $LIBOBJS " in
8237  *" inet_pton.$ac_objext "* ) ;;
8238  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8239 ;;
8240esac
8241
8242fi
8243
8244
8245ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
8246if test "x$ac_cv_func_inet_ntop" = xyes; then :
8247  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
8248
8249else
8250  case " $LIBOBJS " in
8251  *" inet_ntop.$ac_objext "* ) ;;
8252  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
8253 ;;
8254esac
8255
8256fi
8257
8258
8259ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
8260if test "x$ac_cv_func_snprintf" = xyes; then :
8261  $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
8262
8263else
8264  case " $LIBOBJS " in
8265  *" snprintf.$ac_objext "* ) ;;
8266  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8267 ;;
8268esac
8269
8270fi
8271
8272
8273ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
8274if test "x$ac_cv_func_strlcat" = xyes; then :
8275  $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
8276
8277else
8278  case " $LIBOBJS " in
8279  *" strlcat.$ac_objext "* ) ;;
8280  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
8281 ;;
8282esac
8283
8284fi
8285
8286
8287ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
8288if test "x$ac_cv_func_strlcpy" = xyes; then :
8289  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
8290
8291else
8292  case " $LIBOBJS " in
8293  *" strlcpy.$ac_objext "* ) ;;
8294  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
8295 ;;
8296esac
8297
8298fi
8299
8300
8301ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
8302if test "x$ac_cv_func_strptime" = xyes; then :
8303  $as_echo "#define HAVE_STRPTIME 1" >>confdefs.h
8304
8305else
8306  case " $LIBOBJS " in
8307  *" strptime.$ac_objext "* ) ;;
8308  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
8309 ;;
8310esac
8311
8312fi
8313
8314
8315ac_fn_c_check_func "$LINENO" "pselect" "ac_cv_func_pselect"
8316if test "x$ac_cv_func_pselect" = xyes; then :
8317  $as_echo "#define HAVE_PSELECT 1" >>confdefs.h
8318
8319else
8320  case " $LIBOBJS " in
8321  *" pselect.$ac_objext "* ) ;;
8322  *) LIBOBJS="$LIBOBJS pselect.$ac_objext"
8323 ;;
8324esac
8325
8326fi
8327
8328
8329ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
8330if test "x$ac_cv_func_memmove" = xyes; then :
8331  $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
8332
8333else
8334  case " $LIBOBJS " in
8335  *" memmove.$ac_objext "* ) ;;
8336  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
8337 ;;
8338esac
8339
8340fi
8341
8342
8343ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
8344if test "x$ac_cv_func_reallocarray" = xyes; then :
8345  $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
8346
8347else
8348  case " $LIBOBJS " in
8349  *" reallocarray.$ac_objext "* ) ;;
8350  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
8351 ;;
8352esac
8353
8354fi
8355
8356
8357
8358#
8359# Check for b64_ntop (and assume result applies to b64_pton as well).
8360# The functions are actually prefixed with __ and resolv.h defines
8361# macros for the unprefixed versions, however including this header
8362# causes conflicts with our T_xx defines.
8363#
8364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __b64_ntop" >&5
8365$as_echo_n "checking for __b64_ntop... " >&6; }
8366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367/* end confdefs.h.  */
8368#include <stddef.h>
8369int
8370main ()
8371{
8372__b64_ntop(NULL, 0, NULL, 0);
8373  ;
8374  return 0;
8375}
8376_ACEOF
8377if ac_fn_c_try_link "$LINENO"; then :
8378  found_b64_ntop=yes
8379else
8380  found_b64_ntop=no
8381
8382fi
8383rm -f core conftest.err conftest.$ac_objext \
8384    conftest$ac_exeext conftest.$ac_ext
8385if test "x$found_b64_ntop" = xno; then
8386	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387$as_echo "no" >&6; }
8388
8389	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __b64_ntop with -lresolv" >&5
8390$as_echo_n "checking for __b64_ntop with -lresolv... " >&6; }
8391	LIBS="$LIBS -lresolv"
8392	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393/* end confdefs.h.  */
8394#include <stddef.h>
8395int
8396main ()
8397{
8398__b64_ntop(NULL, 0, NULL, 0);
8399  ;
8400  return 0;
8401}
8402_ACEOF
8403if ac_fn_c_try_link "$LINENO"; then :
8404  found_b64_ntop=yes
8405else
8406  found_b64_ntop=no
8407
8408fi
8409rm -f core conftest.err conftest.$ac_objext \
8410    conftest$ac_exeext conftest.$ac_ext
8411	if test "x$found_b64_ntop" = xno; then
8412		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413$as_echo "no" >&6; }
8414	fi
8415fi
8416if test "x$found_b64_ntop" = xyes; then
8417
8418$as_echo "#define HAVE_B64_NTOP 1" >>confdefs.h
8419
8420
8421$as_echo "#define HAVE_B64_PTON 1" >>confdefs.h
8422
8423	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8424$as_echo "yes" >&6; }
8425else
8426	case " $LIBOBJS " in
8427  *" b64_ntop.$ac_objext "* ) ;;
8428  *) LIBOBJS="$LIBOBJS b64_ntop.$ac_objext"
8429 ;;
8430esac
8431
8432	case " $LIBOBJS " in
8433  *" b64_pton.$ac_objext "* ) ;;
8434  *) LIBOBJS="$LIBOBJS b64_pton.$ac_objext"
8435 ;;
8436esac
8437
8438fi
8439
8440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pselect prototype in sys/select.h" >&5
8441$as_echo_n "checking for pselect prototype in sys/select.h... " >&6; }
8442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443/* end confdefs.h.  */
8444#include <sys/select.h>
8445
8446_ACEOF
8447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8448  $EGREP "[^a-zA-Z_]*pselect[^a-zA-Z_]" >/dev/null 2>&1; then :
8449
8450$as_echo "#define HAVE_PSELECT_PROTO 1" >>confdefs.h
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8452$as_echo "yes" >&6; }
8453else
8454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455$as_echo "no" >&6; }
8456fi
8457rm -f conftest*
8458
8459
8460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctime_r prototype in time.h" >&5
8461$as_echo_n "checking for ctime_r prototype in time.h... " >&6; }
8462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8463/* end confdefs.h.  */
8464#include <time.h>
8465
8466_ACEOF
8467if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8468  $EGREP "[^a-zA-Z_]*ctime_r[^a-zA-Z_]" >/dev/null 2>&1; then :
8469
8470$as_echo "#define HAVE_CTIME_R_PROTO 1" >>confdefs.h
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8472$as_echo "yes" >&6; }
8473else
8474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475$as_echo "no" >&6; }
8476fi
8477rm -f conftest*
8478
8479
8480ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "
8481$ac_includes_default
8482#ifdef HAVE_SIGNAL_H
8483#include <signal.h>
8484#endif
8485#ifdef HAVE_TIME_H
8486#include <time.h>
8487#endif
8488
8489"
8490if test "x$ac_cv_type_struct_timespec" = xyes; then :
8491
8492$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
8493
8494fi
8495
8496
8497
8498cat >>confdefs.h <<_ACEOF
8499#define IDENTITY "unidentified server"
8500_ACEOF
8501
8502
8503cat >>confdefs.h <<_ACEOF
8504#define VERSION PACKAGE_STRING
8505_ACEOF
8506
8507
8508cat >>confdefs.h <<_ACEOF
8509#define TCP_BACKLOG 256
8510_ACEOF
8511
8512
8513cat >>confdefs.h <<_ACEOF
8514#define TCP_PORT "53"
8515_ACEOF
8516
8517
8518cat >>confdefs.h <<_ACEOF
8519#define TCP_MAX_MESSAGE_LEN 65535
8520_ACEOF
8521
8522
8523cat >>confdefs.h <<_ACEOF
8524#define UDP_PORT "53"
8525_ACEOF
8526
8527
8528cat >>confdefs.h <<_ACEOF
8529#define UDP_MAX_MESSAGE_LEN 512
8530_ACEOF
8531
8532
8533cat >>confdefs.h <<_ACEOF
8534#define EDNS_MAX_MESSAGE_LEN 4096
8535_ACEOF
8536
8537
8538cat >>confdefs.h <<_ACEOF
8539#define MAXSYSLOGMSGLEN 512
8540_ACEOF
8541
8542
8543cat >>confdefs.h <<_ACEOF
8544#define NSD_CONTROL_PORT 8952
8545_ACEOF
8546
8547
8548cat >>confdefs.h <<_ACEOF
8549#define NSD_CONTROL_VERSION 1
8550_ACEOF
8551
8552
8553facility=LOG_DAEMON
8554
8555# Check whether --with-facility was given.
8556if test "${with_facility+set}" = set; then :
8557  withval=$with_facility; facility=$withval
8558fi
8559
8560
8561cat >>confdefs.h <<_ACEOF
8562#define FACILITY $facility
8563_ACEOF
8564
8565
8566tcp_timeout=120
8567
8568# Check whether --with-tcp_timeout was given.
8569if test "${with_tcp_timeout+set}" = set; then :
8570  withval=$with_tcp_timeout; tcp_timeout=$withval
8571fi
8572
8573
8574cat >>confdefs.h <<_ACEOF
8575#define TCP_TIMEOUT $tcp_timeout
8576_ACEOF
8577
8578
8579# Check whether --enable-root-server was given.
8580if test "${enable_root_server+set}" = set; then :
8581  enableval=$enable_root_server;
8582fi
8583
8584case "$enable_root_server" in
8585        yes)
8586
8587cat >>confdefs.h <<_ACEOF
8588#define ROOT_SERVER /**/
8589_ACEOF
8590
8591		;;
8592        no|*)
8593                ;;
8594esac
8595
8596# Check whether --enable-ipv6 was given.
8597if test "${enable_ipv6+set}" = set; then :
8598  enableval=$enable_ipv6;
8599fi
8600
8601case "$enable_ipv6" in
8602        no)
8603                ;;
8604        yes|*)
8605
8606cat >>confdefs.h <<_ACEOF
8607#define INET6 /**/
8608_ACEOF
8609
8610		;;
8611esac
8612
8613# Check whether --enable-bind8-stats was given.
8614if test "${enable_bind8_stats+set}" = set; then :
8615  enableval=$enable_bind8_stats;
8616fi
8617
8618
8619case "$enable_bind8_stats" in
8620	yes|'')
8621
8622cat >>confdefs.h <<_ACEOF
8623#define BIND8_STATS /**/
8624_ACEOF
8625
8626		;;
8627	no|*)
8628		;;
8629esac
8630
8631# Check whether --enable-zone-stats was given.
8632if test "${enable_zone_stats+set}" = set; then :
8633  enableval=$enable_zone_stats;
8634fi
8635
8636case "$enable_zone_stats" in
8637	yes)
8638
8639cat >>confdefs.h <<_ACEOF
8640#define USE_ZONE_STATS /**/
8641_ACEOF
8642
8643
8644cat >>confdefs.h <<_ACEOF
8645#define BIND8_STATS /**/
8646_ACEOF
8647
8648		;;
8649	no|''|*)
8650		;;
8651esac
8652
8653# Check whether --enable-checking was given.
8654if test "${enable_checking+set}" = set; then :
8655  enableval=$enable_checking;
8656fi
8657
8658case "$enable_checking" in
8659        yes)
8660
8661
8662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
8663$as_echo_n "checking whether $CC supports -W... " >&6; }
8664cache=`echo W | sed 'y%.=/+-%___p_%'`
8665if eval \${cv_prog_cc_flag_$cache+:} false; then :
8666  $as_echo_n "(cached) " >&6
8667else
8668
8669echo 'void f(){}' >conftest.c
8670if test -z "`$CC -W -c conftest.c 2>&1`"; then
8671eval "cv_prog_cc_flag_$cache=yes"
8672else
8673eval "cv_prog_cc_flag_$cache=no"
8674fi
8675rm -f conftest*
8676
8677fi
8678
8679if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
8680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8681$as_echo "yes" >&6; }
8682:
8683 CFLAGS="$CFLAGS -W"
8684else
8685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686$as_echo "no" >&6; }
8687:
8688
8689fi
8690
8691
8692
8693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
8694$as_echo_n "checking whether $CC supports -Wall... " >&6; }
8695cache=`echo Wall | sed 'y%.=/+-%___p_%'`
8696if eval \${cv_prog_cc_flag_$cache+:} false; then :
8697  $as_echo_n "(cached) " >&6
8698else
8699
8700echo 'void f(){}' >conftest.c
8701if test -z "`$CC -Wall -c conftest.c 2>&1`"; then
8702eval "cv_prog_cc_flag_$cache=yes"
8703else
8704eval "cv_prog_cc_flag_$cache=no"
8705fi
8706rm -f conftest*
8707
8708fi
8709
8710if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
8711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8712$as_echo "yes" >&6; }
8713:
8714 CFLAGS="$CFLAGS -Wall"
8715else
8716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717$as_echo "no" >&6; }
8718:
8719
8720fi
8721
8722
8723
8724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
8725$as_echo_n "checking whether $CC supports -Wextra... " >&6; }
8726cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
8727if eval \${cv_prog_cc_flag_$cache+:} false; then :
8728  $as_echo_n "(cached) " >&6
8729else
8730
8731echo 'void f(){}' >conftest.c
8732if test -z "`$CC -Wextra -c conftest.c 2>&1`"; then
8733eval "cv_prog_cc_flag_$cache=yes"
8734else
8735eval "cv_prog_cc_flag_$cache=no"
8736fi
8737rm -f conftest*
8738
8739fi
8740
8741if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
8742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8743$as_echo "yes" >&6; }
8744:
8745 CFLAGS="$CFLAGS -Wextra"
8746else
8747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748$as_echo "no" >&6; }
8749:
8750
8751fi
8752
8753
8754
8755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
8756$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
8757cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
8758if eval \${cv_prog_cc_flag_$cache+:} false; then :
8759  $as_echo_n "(cached) " >&6
8760else
8761
8762echo 'void f(){}' >conftest.c
8763if test -z "`$CC -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
8764eval "cv_prog_cc_flag_$cache=yes"
8765else
8766eval "cv_prog_cc_flag_$cache=no"
8767fi
8768rm -f conftest*
8769
8770fi
8771
8772if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8774$as_echo "yes" >&6; }
8775:
8776 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
8777else
8778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779$as_echo "no" >&6; }
8780:
8781
8782fi
8783
8784		;;
8785        no|*)
8786
8787$as_echo "#define NDEBUG /**/" >>confdefs.h
8788
8789                ;;
8790esac
8791
8792# Check whether --enable-memclean was given.
8793if test "${enable_memclean+set}" = set; then :
8794  enableval=$enable_memclean;
8795fi
8796
8797if test "$enable_memclean" = "yes"; then
8798cat >>confdefs.h <<_ACEOF
8799#define MEMCLEAN 1
8800_ACEOF
8801
8802fi
8803
8804# Check whether --enable-ratelimit was given.
8805if test "${enable_ratelimit+set}" = set; then :
8806  enableval=$enable_ratelimit;
8807fi
8808
8809case "$enable_ratelimit" in
8810	yes)
8811
8812cat >>confdefs.h <<_ACEOF
8813#define RATELIMIT /**/
8814_ACEOF
8815
8816				ratelimit="xx"
8817		;;
8818	no|*)
8819		ratelimit=""
8820		;;
8821esac
8822
8823
8824# Check whether --enable-ratelimit-default-is-off was given.
8825if test "${enable_ratelimit_default_is_off+set}" = set; then :
8826  enableval=$enable_ratelimit_default_is_off;
8827fi
8828
8829case "$enable_ratelimit_default_is_off" in
8830	yes)
8831
8832cat >>confdefs.h <<_ACEOF
8833#define RATELIMIT_DEFAULT_OFF /**/
8834_ACEOF
8835
8836		ratelimit_default="off"
8837		;;
8838	no|*)
8839		ratelimit_default="on"
8840		;;
8841esac
8842
8843
8844# we need SSL for TSIG (and maybe also for NSEC3).
8845
8846
8847# Check whether --with-ssl was given.
8848if test "${with_ssl+set}" = set; then :
8849  withval=$with_ssl;
8850
8851else
8852
8853            withval="yes"
8854
8855fi
8856
8857    if test x_$withval != x_no; then
8858        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
8859$as_echo_n "checking for SSL... " >&6; }
8860        if test x_$withval = x_ -o x_$withval = x_yes; then
8861            withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/sfw /usr/local /usr"
8862        fi
8863        for dir in $withval; do
8864            ssldir="$dir"
8865            if test -f "$dir/include/openssl/ssl.h"; then
8866                found_ssl="yes";
8867
8868cat >>confdefs.h <<_ACEOF
8869#define HAVE_SSL /**/
8870_ACEOF
8871
8872                if test x_$ssldir != x_/usr; then
8873                    CPPFLAGS="$CPPFLAGS -I$ssldir/include";
8874                fi
8875                break;
8876            fi
8877        done
8878        if test x_$found_ssl != x_yes; then
8879            as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
8880        else
8881            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
8882$as_echo "found in $ssldir" >&6; }
8883            HAVE_SSL=yes
8884            if test x_$ssldir != x_/usr; then
8885                LDFLAGS="$LDFLAGS -L$ssldir/lib";
8886            fi
8887	    if test x_$ssldir = x_/usr/sfw; then
8888		LDFLAGS="$LDFLAGS -R$ssldir/lib";
8889	    fi
8890        fi
8891
8892    fi
8893
8894if test x$HAVE_SSL = x"yes"; then
8895
8896# check if libssl needs libdl
8897BAKLIBS="$LIBS"
8898LIBS="-lssl $LIBS"
8899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
8900$as_echo_n "checking if libssl needs libdl... " >&6; }
8901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902/* end confdefs.h.  */
8903
8904/* Override any GCC internal prototype to avoid an error.
8905   Use char because int might match the return type of a GCC
8906   builtin and then its argument prototype would still apply.  */
8907#ifdef __cplusplus
8908extern "C"
8909#endif
8910char SSL_CTX_new ();
8911int
8912main ()
8913{
8914return SSL_CTX_new ();
8915  ;
8916  return 0;
8917}
8918_ACEOF
8919if ac_fn_c_try_link "$LINENO"; then :
8920
8921	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8922$as_echo "no" >&6; }
8923	LIBS="$BAKLIBS"
8924
8925else
8926
8927	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8928$as_echo "yes" >&6; }
8929	LIBS="$BAKLIBS"
8930	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8931$as_echo_n "checking for library containing dlopen... " >&6; }
8932if ${ac_cv_search_dlopen+:} false; then :
8933  $as_echo_n "(cached) " >&6
8934else
8935  ac_func_search_save_LIBS=$LIBS
8936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937/* end confdefs.h.  */
8938
8939/* Override any GCC internal prototype to avoid an error.
8940   Use char because int might match the return type of a GCC
8941   builtin and then its argument prototype would still apply.  */
8942#ifdef __cplusplus
8943extern "C"
8944#endif
8945char dlopen ();
8946int
8947main ()
8948{
8949return dlopen ();
8950  ;
8951  return 0;
8952}
8953_ACEOF
8954for ac_lib in '' dl; do
8955  if test -z "$ac_lib"; then
8956    ac_res="none required"
8957  else
8958    ac_res=-l$ac_lib
8959    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8960  fi
8961  if ac_fn_c_try_link "$LINENO"; then :
8962  ac_cv_search_dlopen=$ac_res
8963fi
8964rm -f core conftest.err conftest.$ac_objext \
8965    conftest$ac_exeext
8966  if ${ac_cv_search_dlopen+:} false; then :
8967  break
8968fi
8969done
8970if ${ac_cv_search_dlopen+:} false; then :
8971
8972else
8973  ac_cv_search_dlopen=no
8974fi
8975rm conftest.$ac_ext
8976LIBS=$ac_func_search_save_LIBS
8977fi
8978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8979$as_echo "$ac_cv_search_dlopen" >&6; }
8980ac_res=$ac_cv_search_dlopen
8981if test "$ac_res" != no; then :
8982  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8983
8984fi
8985
8986
8987fi
8988rm -f core conftest.err conftest.$ac_objext \
8989    conftest$ac_exeext conftest.$ac_ext
8990
8991	# Check for -pthread
8992	BAKLIBS="$LIBS"
8993	LIBS="-lcrypto $LIBS"
8994	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995/* end confdefs.h.  */
8996
8997int
8998main ()
8999{
9000
9001		int HMAC_Update(void);
9002		(void)HMAC_Update();
9003
9004  ;
9005  return 0;
9006}
9007_ACEOF
9008if ac_fn_c_try_link "$LINENO"; then :
9009
9010else
9011
9012				BAKCFLAGS="$CFLAGS"
9013		CFLAGS="$CFLAGS -pthread"
9014		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libcrypto needs -pthread" >&5
9015$as_echo_n "checking if libcrypto needs -pthread... " >&6; }
9016		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017/* end confdefs.h.  */
9018
9019/* Override any GCC internal prototype to avoid an error.
9020   Use char because int might match the return type of a GCC
9021   builtin and then its argument prototype would still apply.  */
9022#ifdef __cplusplus
9023extern "C"
9024#endif
9025char HMAC_Update ();
9026int
9027main ()
9028{
9029return HMAC_Update ();
9030  ;
9031  return 0;
9032}
9033_ACEOF
9034if ac_fn_c_try_link "$LINENO"; then :
9035
9036			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9037$as_echo "yes" >&6; }
9038
9039else
9040
9041			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042$as_echo "no" >&6; }
9043						CFLAGS="$BAKCFLAGS"
9044
9045fi
9046rm -f core conftest.err conftest.$ac_objext \
9047    conftest$ac_exeext conftest.$ac_ext
9048
9049fi
9050rm -f core conftest.err conftest.$ac_objext \
9051    conftest$ac_exeext conftest.$ac_ext
9052	LIBS="$BAKLIBS"
9053
9054	if test -n "$ssldir"; then
9055            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
9056$as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
9057if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
9058  $as_echo_n "(cached) " >&6
9059else
9060  ac_check_lib_save_LIBS=$LIBS
9061LIBS="-lcrypto  $LIBS"
9062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063/* end confdefs.h.  */
9064
9065/* Override any GCC internal prototype to avoid an error.
9066   Use char because int might match the return type of a GCC
9067   builtin and then its argument prototype would still apply.  */
9068#ifdef __cplusplus
9069extern "C"
9070#endif
9071char HMAC_Update ();
9072int
9073main ()
9074{
9075return HMAC_Update ();
9076  ;
9077  return 0;
9078}
9079_ACEOF
9080if ac_fn_c_try_link "$LINENO"; then :
9081  ac_cv_lib_crypto_HMAC_Update=yes
9082else
9083  ac_cv_lib_crypto_HMAC_Update=no
9084fi
9085rm -f core conftest.err conftest.$ac_objext \
9086    conftest$ac_exeext conftest.$ac_ext
9087LIBS=$ac_check_lib_save_LIBS
9088fi
9089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
9090$as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
9091if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
9092  cat >>confdefs.h <<_ACEOF
9093#define HAVE_LIBCRYPTO 1
9094_ACEOF
9095
9096  LIBS="-lcrypto $LIBS"
9097
9098else
9099
9100                    as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
9101
9102fi
9103
9104	fi
9105	SSL_LIBS="-lssl"
9106
9107	for ac_header in openssl/ssl.h
9108do :
9109  ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
9110"
9111if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
9112  cat >>confdefs.h <<_ACEOF
9113#define HAVE_OPENSSL_SSL_H 1
9114_ACEOF
9115
9116fi
9117
9118done
9119
9120	for ac_header in openssl/err.h
9121do :
9122  ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
9123"
9124if test "x$ac_cv_header_openssl_err_h" = xyes; then :
9125  cat >>confdefs.h <<_ACEOF
9126#define HAVE_OPENSSL_ERR_H 1
9127_ACEOF
9128
9129fi
9130
9131done
9132
9133	for ac_header in openssl/rand.h
9134do :
9135  ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
9136"
9137if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
9138  cat >>confdefs.h <<_ACEOF
9139#define HAVE_OPENSSL_RAND_H 1
9140_ACEOF
9141
9142fi
9143
9144done
9145
9146	for ac_func in HMAC_CTX_reset HMAC_CTX_new EVP_cleanup ERR_load_crypto_strings OPENSSL_init_crypto
9147do :
9148  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9149ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9150if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9151  cat >>confdefs.h <<_ACEOF
9152#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9153_ACEOF
9154
9155fi
9156done
9157
9158
9159	BAKLIBS="$LIBS"
9160	LIBS="-lssl $LIBS"
9161	for ac_func in OPENSSL_init_ssl
9162do :
9163  ac_fn_c_check_func "$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl"
9164if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes; then :
9165  cat >>confdefs.h <<_ACEOF
9166#define HAVE_OPENSSL_INIT_SSL 1
9167_ACEOF
9168
9169fi
9170done
9171
9172	LIBS="$BAKLIBS"
9173
9174else
9175	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No SSL, therefore remote-control is disabled" >&5
9176$as_echo "$as_me: WARNING: No SSL, therefore remote-control is disabled" >&2;}
9177fi
9178
9179# Check whether --enable-nsec3 was given.
9180if test "${enable_nsec3+set}" = set; then :
9181  enableval=$enable_nsec3;
9182fi
9183
9184case "$enable_nsec3" in
9185        no)
9186		;;
9187        yes)
9188
9189cat >>confdefs.h <<_ACEOF
9190#define NSEC3 /**/
9191_ACEOF
9192
9193		;;
9194		*)
9195		if test x$HAVE_SSL = x"yes"; then
9196
9197cat >>confdefs.h <<_ACEOF
9198#define NSEC3 /**/
9199_ACEOF
9200
9201		else
9202			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No SSL, therefore NSEC3 is disabled" >&5
9203$as_echo "$as_me: WARNING: No SSL, therefore NSEC3 is disabled" >&2;}
9204		fi
9205                ;;
9206esac
9207
9208# Check whether --enable-minimal-responses was given.
9209if test "${enable_minimal_responses+set}" = set; then :
9210  enableval=$enable_minimal_responses;
9211fi
9212
9213case "$enable_minimal_responses" in
9214        no)
9215		;;
9216        yes|*)
9217
9218cat >>confdefs.h <<_ACEOF
9219#define MINIMAL_RESPONSES /**/
9220_ACEOF
9221
9222                ;;
9223esac
9224
9225# Check whether --enable-mmap was given.
9226if test "${enable_mmap+set}" = set; then :
9227  enableval=$enable_mmap;
9228fi
9229
9230case "$enable_mmap" in
9231        yes)
9232		for ac_header in sys/mman.h
9233do :
9234  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
9235if test "x$ac_cv_header_sys_mman_h" = xyes; then :
9236  cat >>confdefs.h <<_ACEOF
9237#define HAVE_SYS_MMAN_H 1
9238_ACEOF
9239
9240fi
9241
9242done
9243
9244		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintptr_t" >&5
9245$as_echo_n "checking for uintptr_t... " >&6; }
9246if ${ac_cv_type_uintptr_t+:} false; then :
9247  $as_echo_n "(cached) " >&6
9248else
9249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250/* end confdefs.h.  */
9251
9252#include <sys/types.h>
9253#if STDC_HEADERS
9254#include <stdlib.h>
9255#include <stddef.h>
9256#endif
9257
9258#ifdef HAVE_STDINT_H
9259#include <stdint.h>
9260#endif
9261
9262#ifdef HAVE_SYS_SOCKET_H
9263#include <sys/socket.h>
9264#endif
9265
9266#ifdef HAVE_ARPA_INET_H
9267#include <arpa/inet.h>
9268#endif
9269
9270#ifdef HAVE_SIGNAL_H
9271#include <signal.h>
9272#endif
9273
9274/* For Tru64 */
9275#ifdef HAVE_SYS_BITYPES_H
9276#include <sys/bitypes.h>
9277#endif
9278
9279_ACEOF
9280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9281  $EGREP "(^|[^a-zA-Z_0-9])uintptr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
9282  ac_cv_type_uintptr_t=yes
9283else
9284  ac_cv_type_uintptr_t=no
9285fi
9286rm -f conftest*
9287
9288fi
9289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uintptr_t" >&5
9290$as_echo "$ac_cv_type_uintptr_t" >&6; }
9291if test $ac_cv_type_uintptr_t = no; then
9292
9293$as_echo "#define uintptr_t void*" >>confdefs.h
9294
9295fi
9296
9297		for ac_func in mmap munmap
9298do :
9299  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9300ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9301if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9302  cat >>confdefs.h <<_ACEOF
9303#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9304_ACEOF
9305
9306fi
9307done
9308
9309
9310cat >>confdefs.h <<_ACEOF
9311#define USE_MMAP_ALLOC /**/
9312_ACEOF
9313
9314		;;
9315        no|*)
9316                ;;
9317esac
9318
9319# Check whether --enable-radix-tree was given.
9320if test "${enable_radix_tree+set}" = set; then :
9321  enableval=$enable_radix_tree;
9322fi
9323
9324case "$enable_radix_tree" in
9325        no)
9326	;;
9327	yes|*)
9328
9329cat >>confdefs.h <<_ACEOF
9330#define USE_RADIX_TREE /**/
9331_ACEOF
9332
9333	;;
9334esac
9335
9336# Check whether --enable-packed was given.
9337if test "${enable_packed+set}" = set; then :
9338  enableval=$enable_packed;
9339fi
9340
9341case "$enable_packed" in
9342	yes)
9343
9344cat >>confdefs.h <<_ACEOF
9345#define PACKED_STRUCTS /**/
9346_ACEOF
9347
9348
9349
9350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-address-of-packed-member" >&5
9351$as_echo_n "checking whether $CC supports -Wno-address-of-packed-member... " >&6; }
9352cache=`echo Wno-address-of-packed-member | sed 'y%.=/+-%___p_%'`
9353if eval \${cv_prog_cc_flag_$cache+:} false; then :
9354  $as_echo_n "(cached) " >&6
9355else
9356
9357echo 'void f(void){}' >conftest.c
9358if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-address-of-packed-member -c conftest.c 2>&1`"; then
9359eval "cv_prog_cc_flag_$cache=yes"
9360else
9361eval "cv_prog_cc_flag_$cache=no"
9362fi
9363rm -f conftest conftest.o conftest.c
9364
9365fi
9366
9367if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
9368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9369$as_echo "yes" >&6; }
9370:
9371CFLAGS="$CFLAGS -Wno-address-of-packed-member"
9372else
9373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9374$as_echo "no" >&6; }
9375:
9376
9377fi
9378
9379	;;
9380	no|*)
9381	;;
9382esac
9383
9384# check for dnstap if requested
9385
9386  # Check whether --enable-dnstap was given.
9387if test "${enable_dnstap+set}" = set; then :
9388  enableval=$enable_dnstap; opt_dnstap=$enableval
9389else
9390  opt_dnstap=no
9391fi
9392
9393
9394
9395# Check whether --with-dnstap-socket-path was given.
9396if test "${with_dnstap_socket_path+set}" = set; then :
9397  withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
9398else
9399  opt_dnstap_socket_path="${localstatedir}/run/nsd-dnstap.sock"
9400fi
9401
9402
9403  if test "x$opt_dnstap" != "xno"; then
9404    # Extract the first word of "protoc-c", so it can be a program name with args.
9405set dummy protoc-c; ac_word=$2
9406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9407$as_echo_n "checking for $ac_word... " >&6; }
9408if ${ac_cv_path_PROTOC_C+:} false; then :
9409  $as_echo_n "(cached) " >&6
9410else
9411  case $PROTOC_C in
9412  [\\/]* | ?:[\\/]*)
9413  ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
9414  ;;
9415  *)
9416  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9417for as_dir in $PATH
9418do
9419  IFS=$as_save_IFS
9420  test -z "$as_dir" && as_dir=.
9421    for ac_exec_ext in '' $ac_executable_extensions; do
9422  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9423    ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
9424    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9425    break 2
9426  fi
9427done
9428  done
9429IFS=$as_save_IFS
9430
9431  ;;
9432esac
9433fi
9434PROTOC_C=$ac_cv_path_PROTOC_C
9435if test -n "$PROTOC_C"; then
9436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
9437$as_echo "$PROTOC_C" >&6; }
9438else
9439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9440$as_echo "no" >&6; }
9441fi
9442
9443
9444    if test -z "$PROTOC_C"; then
9445      as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
9446    fi
9447
9448# Check whether --with-protobuf-c was given.
9449if test "${with_protobuf_c+set}" = set; then :
9450  withval=$with_protobuf_c;
9451	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
9452	  if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
9453	    CFLAGS="$CFLAGS -I$withval/include/google"
9454	  else
9455	    CFLAGS="$CFLAGS -I$withval/include"
9456	  fi
9457	  LDFLAGS="$LDFLAGS -L$withval/lib"
9458
9459else
9460
9461	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
9462	  if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
9463	    CFLAGS="$CFLAGS -I/usr/include/google"
9464	  else
9465	    if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
9466	      CFLAGS="$CFLAGS -I/usr/local/include/google"
9467	      LDFLAGS="$LDFLAGS -L/usr/local/lib"
9468	    fi
9469	  fi
9470
9471fi
9472
9473
9474# Check whether --with-libfstrm was given.
9475if test "${with_libfstrm+set}" = set; then :
9476  withval=$with_libfstrm;
9477	CFLAGS="$CFLAGS -I$withval/include"
9478	LDFLAGS="$LDFLAGS -L$withval/lib"
9479
9480fi
9481
9482    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
9483$as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
9484if ${ac_cv_search_fstrm_iothr_init+:} false; then :
9485  $as_echo_n "(cached) " >&6
9486else
9487  ac_func_search_save_LIBS=$LIBS
9488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489/* end confdefs.h.  */
9490
9491/* Override any GCC internal prototype to avoid an error.
9492   Use char because int might match the return type of a GCC
9493   builtin and then its argument prototype would still apply.  */
9494#ifdef __cplusplus
9495extern "C"
9496#endif
9497char fstrm_iothr_init ();
9498int
9499main ()
9500{
9501return fstrm_iothr_init ();
9502  ;
9503  return 0;
9504}
9505_ACEOF
9506for ac_lib in '' fstrm; do
9507  if test -z "$ac_lib"; then
9508    ac_res="none required"
9509  else
9510    ac_res=-l$ac_lib
9511    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9512  fi
9513  if ac_fn_c_try_link "$LINENO"; then :
9514  ac_cv_search_fstrm_iothr_init=$ac_res
9515fi
9516rm -f core conftest.err conftest.$ac_objext \
9517    conftest$ac_exeext
9518  if ${ac_cv_search_fstrm_iothr_init+:} false; then :
9519  break
9520fi
9521done
9522if ${ac_cv_search_fstrm_iothr_init+:} false; then :
9523
9524else
9525  ac_cv_search_fstrm_iothr_init=no
9526fi
9527rm conftest.$ac_ext
9528LIBS=$ac_func_search_save_LIBS
9529fi
9530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
9531$as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
9532ac_res=$ac_cv_search_fstrm_iothr_init
9533if test "$ac_res" != no; then :
9534  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9535
9536else
9537  as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
9538fi
9539
9540    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
9541$as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
9542if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
9543  $as_echo_n "(cached) " >&6
9544else
9545  ac_func_search_save_LIBS=$LIBS
9546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547/* end confdefs.h.  */
9548
9549/* Override any GCC internal prototype to avoid an error.
9550   Use char because int might match the return type of a GCC
9551   builtin and then its argument prototype would still apply.  */
9552#ifdef __cplusplus
9553extern "C"
9554#endif
9555char protobuf_c_message_pack ();
9556int
9557main ()
9558{
9559return protobuf_c_message_pack ();
9560  ;
9561  return 0;
9562}
9563_ACEOF
9564for ac_lib in '' protobuf-c; do
9565  if test -z "$ac_lib"; then
9566    ac_res="none required"
9567  else
9568    ac_res=-l$ac_lib
9569    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9570  fi
9571  if ac_fn_c_try_link "$LINENO"; then :
9572  ac_cv_search_protobuf_c_message_pack=$ac_res
9573fi
9574rm -f core conftest.err conftest.$ac_objext \
9575    conftest$ac_exeext
9576  if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
9577  break
9578fi
9579done
9580if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
9581
9582else
9583  ac_cv_search_protobuf_c_message_pack=no
9584fi
9585rm conftest.$ac_ext
9586LIBS=$ac_func_search_save_LIBS
9587fi
9588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
9589$as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
9590ac_res=$ac_cv_search_protobuf_c_message_pack
9591if test "$ac_res" != no; then :
9592  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9593
9594else
9595  as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
9596fi
9597
9598
9599
9600$as_echo "#define USE_DNSTAP 1" >>confdefs.h
9601
9602        ENABLE_DNSTAP=1
9603
9604
9605
9606        hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
9607
9608
9609cat >>confdefs.h <<_ACEOF
9610#define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
9611_ACEOF
9612
9613
9614        DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_collector.c"
9615
9616        DNSTAP_OBJ="dnstap.o dnstap_collector.o dnstap.pb-c.o"
9617
9618	dnstap_config="dnstap/dnstap_config.h"
9619
9620  else
9621
9622        ENABLE_DNSTAP=0
9623
9624
9625
9626  fi
9627
9628
9629# Include systemd.m4 - begin
9630#   macros for configuring systemd
9631#   Copyright 2015, Sami Kerola, CloudFlare.
9632#   BSD licensed.
9633# Check whether --enable-systemd was given.
9634if test "${enable_systemd+set}" = set; then :
9635  enableval=$enable_systemd;
9636else
9637  enable_systemd=no
9638fi
9639
9640have_systemd=no
9641if test "x$enable_systemd" != xno; then :
9642
9643
9644    	as_fn_error $? "systemd enabled but need pkg-config to configure for it, also, run aclocal before autoconf, or run autoreconf to include pkgconfig macros" "$LINENO" 5
9645
9646
9647fi
9648
9649# Include systemd.m4 - end
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661if test $ac_cv_func_getaddrinfo = no; then
9662case " $LIBOBJS " in
9663  *" fake-rfc2553.$ac_objext "* ) ;;
9664  *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
9665 ;;
9666esac
9667
9668fi
9669
9670
9671
9672
9673
9674
9675
9676
9677# big fat warning
9678if test "$enable_checking" = "yes"; then
9679        echo "************************************************"
9680        echo "* You have activated \"--enable-checking\"       *"
9681        echo "*                                              *"
9682        echo "* This will instruct NSD to be stricter        *"
9683        echo "* when validating its input. This could lead   *"
9684        echo "* to a reduced service level.                  *"
9685        echo "*                                              *"
9686        echo "************************************************"
9687fi
9688
9689ac_config_files="$ac_config_files Makefile $dnstap_config"
9690
9691cat >confcache <<\_ACEOF
9692# This file is a shell script that caches the results of configure
9693# tests run on this system so they can be shared between configure
9694# scripts and configure runs, see configure's option --config-cache.
9695# It is not useful on other systems.  If it contains results you don't
9696# want to keep, you may remove or edit it.
9697#
9698# config.status only pays attention to the cache file if you give it
9699# the --recheck option to rerun configure.
9700#
9701# `ac_cv_env_foo' variables (set or unset) will be overridden when
9702# loading this file, other *unset* `ac_cv_foo' will be assigned the
9703# following values.
9704
9705_ACEOF
9706
9707# The following way of writing the cache mishandles newlines in values,
9708# but we know of no workaround that is simple, portable, and efficient.
9709# So, we kill variables containing newlines.
9710# Ultrix sh set writes to stderr and can't be redirected directly,
9711# and sets the high bit in the cache file unless we assign to the vars.
9712(
9713  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9714    eval ac_val=\$$ac_var
9715    case $ac_val in #(
9716    *${as_nl}*)
9717      case $ac_var in #(
9718      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9719$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9720      esac
9721      case $ac_var in #(
9722      _ | IFS | as_nl) ;; #(
9723      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9724      *) { eval $ac_var=; unset $ac_var;} ;;
9725      esac ;;
9726    esac
9727  done
9728
9729  (set) 2>&1 |
9730    case $as_nl`(ac_space=' '; set) 2>&1` in #(
9731    *${as_nl}ac_space=\ *)
9732      # `set' does not quote correctly, so add quotes: double-quote
9733      # substitution turns \\\\ into \\, and sed turns \\ into \.
9734      sed -n \
9735	"s/'/'\\\\''/g;
9736	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9737      ;; #(
9738    *)
9739      # `set' quotes correctly as required by POSIX, so do not add quotes.
9740      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9741      ;;
9742    esac |
9743    sort
9744) |
9745  sed '
9746     /^ac_cv_env_/b end
9747     t clear
9748     :clear
9749     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9750     t end
9751     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9752     :end' >>confcache
9753if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9754  if test -w "$cache_file"; then
9755    if test "x$cache_file" != "x/dev/null"; then
9756      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9757$as_echo "$as_me: updating cache $cache_file" >&6;}
9758      if test ! -f "$cache_file" || test -h "$cache_file"; then
9759	cat confcache >"$cache_file"
9760      else
9761        case $cache_file in #(
9762        */* | ?:*)
9763	  mv -f confcache "$cache_file"$$ &&
9764	  mv -f "$cache_file"$$ "$cache_file" ;; #(
9765        *)
9766	  mv -f confcache "$cache_file" ;;
9767	esac
9768      fi
9769    fi
9770  else
9771    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9772$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9773  fi
9774fi
9775rm -f confcache
9776
9777test "x$prefix" = xNONE && prefix=$ac_default_prefix
9778# Let make expand exec_prefix.
9779test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9780
9781DEFS=-DHAVE_CONFIG_H
9782
9783ac_libobjs=
9784ac_ltlibobjs=
9785U=
9786for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9787  # 1. Remove the extension, and $U if already installed.
9788  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9789  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9790  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9791  #    will be set to the directory where LIBOBJS objects are built.
9792  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9793  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9794done
9795LIBOBJS=$ac_libobjs
9796
9797LTLIBOBJS=$ac_ltlibobjs
9798
9799
9800
9801: "${CONFIG_STATUS=./config.status}"
9802ac_write_fail=0
9803ac_clean_files_save=$ac_clean_files
9804ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9805{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9806$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9807as_write_fail=0
9808cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9809#! $SHELL
9810# Generated by $as_me.
9811# Run this file to recreate the current configuration.
9812# Compiler output produced by configure, useful for debugging
9813# configure, is in config.log if it exists.
9814
9815debug=false
9816ac_cs_recheck=false
9817ac_cs_silent=false
9818
9819SHELL=\${CONFIG_SHELL-$SHELL}
9820export SHELL
9821_ASEOF
9822cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9823## -------------------- ##
9824## M4sh Initialization. ##
9825## -------------------- ##
9826
9827# Be more Bourne compatible
9828DUALCASE=1; export DUALCASE # for MKS sh
9829if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9830  emulate sh
9831  NULLCMD=:
9832  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9833  # is contrary to our usage.  Disable this feature.
9834  alias -g '${1+"$@"}'='"$@"'
9835  setopt NO_GLOB_SUBST
9836else
9837  case `(set -o) 2>/dev/null` in #(
9838  *posix*) :
9839    set -o posix ;; #(
9840  *) :
9841     ;;
9842esac
9843fi
9844
9845
9846as_nl='
9847'
9848export as_nl
9849# Printing a long string crashes Solaris 7 /usr/bin/printf.
9850as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9851as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9852as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9853# Prefer a ksh shell builtin over an external printf program on Solaris,
9854# but without wasting forks for bash or zsh.
9855if test -z "$BASH_VERSION$ZSH_VERSION" \
9856    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9857  as_echo='print -r --'
9858  as_echo_n='print -rn --'
9859elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9860  as_echo='printf %s\n'
9861  as_echo_n='printf %s'
9862else
9863  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9864    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9865    as_echo_n='/usr/ucb/echo -n'
9866  else
9867    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9868    as_echo_n_body='eval
9869      arg=$1;
9870      case $arg in #(
9871      *"$as_nl"*)
9872	expr "X$arg" : "X\\(.*\\)$as_nl";
9873	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9874      esac;
9875      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9876    '
9877    export as_echo_n_body
9878    as_echo_n='sh -c $as_echo_n_body as_echo'
9879  fi
9880  export as_echo_body
9881  as_echo='sh -c $as_echo_body as_echo'
9882fi
9883
9884# The user is always right.
9885if test "${PATH_SEPARATOR+set}" != set; then
9886  PATH_SEPARATOR=:
9887  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9888    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9889      PATH_SEPARATOR=';'
9890  }
9891fi
9892
9893
9894# IFS
9895# We need space, tab and new line, in precisely that order.  Quoting is
9896# there to prevent editors from complaining about space-tab.
9897# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9898# splitting by setting IFS to empty value.)
9899IFS=" ""	$as_nl"
9900
9901# Find who we are.  Look in the path if we contain no directory separator.
9902as_myself=
9903case $0 in #((
9904  *[\\/]* ) as_myself=$0 ;;
9905  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9906for as_dir in $PATH
9907do
9908  IFS=$as_save_IFS
9909  test -z "$as_dir" && as_dir=.
9910    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9911  done
9912IFS=$as_save_IFS
9913
9914     ;;
9915esac
9916# We did not find ourselves, most probably we were run as `sh COMMAND'
9917# in which case we are not to be found in the path.
9918if test "x$as_myself" = x; then
9919  as_myself=$0
9920fi
9921if test ! -f "$as_myself"; then
9922  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9923  exit 1
9924fi
9925
9926# Unset variables that we do not need and which cause bugs (e.g. in
9927# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9928# suppresses any "Segmentation fault" message there.  '((' could
9929# trigger a bug in pdksh 5.2.14.
9930for as_var in BASH_ENV ENV MAIL MAILPATH
9931do eval test x\${$as_var+set} = xset \
9932  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9933done
9934PS1='$ '
9935PS2='> '
9936PS4='+ '
9937
9938# NLS nuisances.
9939LC_ALL=C
9940export LC_ALL
9941LANGUAGE=C
9942export LANGUAGE
9943
9944# CDPATH.
9945(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9946
9947
9948# as_fn_error STATUS ERROR [LINENO LOG_FD]
9949# ----------------------------------------
9950# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9951# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9952# script with STATUS, using 1 if that was 0.
9953as_fn_error ()
9954{
9955  as_status=$1; test $as_status -eq 0 && as_status=1
9956  if test "$4"; then
9957    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9958    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9959  fi
9960  $as_echo "$as_me: error: $2" >&2
9961  as_fn_exit $as_status
9962} # as_fn_error
9963
9964
9965# as_fn_set_status STATUS
9966# -----------------------
9967# Set $? to STATUS, without forking.
9968as_fn_set_status ()
9969{
9970  return $1
9971} # as_fn_set_status
9972
9973# as_fn_exit STATUS
9974# -----------------
9975# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9976as_fn_exit ()
9977{
9978  set +e
9979  as_fn_set_status $1
9980  exit $1
9981} # as_fn_exit
9982
9983# as_fn_unset VAR
9984# ---------------
9985# Portably unset VAR.
9986as_fn_unset ()
9987{
9988  { eval $1=; unset $1;}
9989}
9990as_unset=as_fn_unset
9991# as_fn_append VAR VALUE
9992# ----------------------
9993# Append the text in VALUE to the end of the definition contained in VAR. Take
9994# advantage of any shell optimizations that allow amortized linear growth over
9995# repeated appends, instead of the typical quadratic growth present in naive
9996# implementations.
9997if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9998  eval 'as_fn_append ()
9999  {
10000    eval $1+=\$2
10001  }'
10002else
10003  as_fn_append ()
10004  {
10005    eval $1=\$$1\$2
10006  }
10007fi # as_fn_append
10008
10009# as_fn_arith ARG...
10010# ------------------
10011# Perform arithmetic evaluation on the ARGs, and store the result in the
10012# global $as_val. Take advantage of shells that can avoid forks. The arguments
10013# must be portable across $(()) and expr.
10014if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10015  eval 'as_fn_arith ()
10016  {
10017    as_val=$(( $* ))
10018  }'
10019else
10020  as_fn_arith ()
10021  {
10022    as_val=`expr "$@" || test $? -eq 1`
10023  }
10024fi # as_fn_arith
10025
10026
10027if expr a : '\(a\)' >/dev/null 2>&1 &&
10028   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10029  as_expr=expr
10030else
10031  as_expr=false
10032fi
10033
10034if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10035  as_basename=basename
10036else
10037  as_basename=false
10038fi
10039
10040if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10041  as_dirname=dirname
10042else
10043  as_dirname=false
10044fi
10045
10046as_me=`$as_basename -- "$0" ||
10047$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10048	 X"$0" : 'X\(//\)$' \| \
10049	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10050$as_echo X/"$0" |
10051    sed '/^.*\/\([^/][^/]*\)\/*$/{
10052	    s//\1/
10053	    q
10054	  }
10055	  /^X\/\(\/\/\)$/{
10056	    s//\1/
10057	    q
10058	  }
10059	  /^X\/\(\/\).*/{
10060	    s//\1/
10061	    q
10062	  }
10063	  s/.*/./; q'`
10064
10065# Avoid depending upon Character Ranges.
10066as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10067as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10068as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10069as_cr_digits='0123456789'
10070as_cr_alnum=$as_cr_Letters$as_cr_digits
10071
10072ECHO_C= ECHO_N= ECHO_T=
10073case `echo -n x` in #(((((
10074-n*)
10075  case `echo 'xy\c'` in
10076  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
10077  xy)  ECHO_C='\c';;
10078  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
10079       ECHO_T='	';;
10080  esac;;
10081*)
10082  ECHO_N='-n';;
10083esac
10084
10085rm -f conf$$ conf$$.exe conf$$.file
10086if test -d conf$$.dir; then
10087  rm -f conf$$.dir/conf$$.file
10088else
10089  rm -f conf$$.dir
10090  mkdir conf$$.dir 2>/dev/null
10091fi
10092if (echo >conf$$.file) 2>/dev/null; then
10093  if ln -s conf$$.file conf$$ 2>/dev/null; then
10094    as_ln_s='ln -s'
10095    # ... but there are two gotchas:
10096    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10097    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10098    # In both cases, we have to default to `cp -pR'.
10099    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10100      as_ln_s='cp -pR'
10101  elif ln conf$$.file conf$$ 2>/dev/null; then
10102    as_ln_s=ln
10103  else
10104    as_ln_s='cp -pR'
10105  fi
10106else
10107  as_ln_s='cp -pR'
10108fi
10109rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10110rmdir conf$$.dir 2>/dev/null
10111
10112
10113# as_fn_mkdir_p
10114# -------------
10115# Create "$as_dir" as a directory, including parents if necessary.
10116as_fn_mkdir_p ()
10117{
10118
10119  case $as_dir in #(
10120  -*) as_dir=./$as_dir;;
10121  esac
10122  test -d "$as_dir" || eval $as_mkdir_p || {
10123    as_dirs=
10124    while :; do
10125      case $as_dir in #(
10126      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10127      *) as_qdir=$as_dir;;
10128      esac
10129      as_dirs="'$as_qdir' $as_dirs"
10130      as_dir=`$as_dirname -- "$as_dir" ||
10131$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10132	 X"$as_dir" : 'X\(//\)[^/]' \| \
10133	 X"$as_dir" : 'X\(//\)$' \| \
10134	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10135$as_echo X"$as_dir" |
10136    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10137	    s//\1/
10138	    q
10139	  }
10140	  /^X\(\/\/\)[^/].*/{
10141	    s//\1/
10142	    q
10143	  }
10144	  /^X\(\/\/\)$/{
10145	    s//\1/
10146	    q
10147	  }
10148	  /^X\(\/\).*/{
10149	    s//\1/
10150	    q
10151	  }
10152	  s/.*/./; q'`
10153      test -d "$as_dir" && break
10154    done
10155    test -z "$as_dirs" || eval "mkdir $as_dirs"
10156  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10157
10158
10159} # as_fn_mkdir_p
10160if mkdir -p . 2>/dev/null; then
10161  as_mkdir_p='mkdir -p "$as_dir"'
10162else
10163  test -d ./-p && rmdir ./-p
10164  as_mkdir_p=false
10165fi
10166
10167
10168# as_fn_executable_p FILE
10169# -----------------------
10170# Test if FILE is an executable regular file.
10171as_fn_executable_p ()
10172{
10173  test -f "$1" && test -x "$1"
10174} # as_fn_executable_p
10175as_test_x='test -x'
10176as_executable_p=as_fn_executable_p
10177
10178# Sed expression to map a string onto a valid CPP name.
10179as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10180
10181# Sed expression to map a string onto a valid variable name.
10182as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10183
10184
10185exec 6>&1
10186## ----------------------------------- ##
10187## Main body of $CONFIG_STATUS script. ##
10188## ----------------------------------- ##
10189_ASEOF
10190test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10191
10192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10193# Save the log message, to keep $0 and so on meaningful, and to
10194# report actual input values of CONFIG_FILES etc. instead of their
10195# values after options handling.
10196ac_log="
10197This file was extended by NSD $as_me 4.1.27, which was
10198generated by GNU Autoconf 2.69.  Invocation command line was
10199
10200  CONFIG_FILES    = $CONFIG_FILES
10201  CONFIG_HEADERS  = $CONFIG_HEADERS
10202  CONFIG_LINKS    = $CONFIG_LINKS
10203  CONFIG_COMMANDS = $CONFIG_COMMANDS
10204  $ $0 $@
10205
10206on `(hostname || uname -n) 2>/dev/null | sed 1q`
10207"
10208
10209_ACEOF
10210
10211case $ac_config_files in *"
10212"*) set x $ac_config_files; shift; ac_config_files=$*;;
10213esac
10214
10215case $ac_config_headers in *"
10216"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10217esac
10218
10219
10220cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10221# Files that config.status was made for.
10222config_files="$ac_config_files"
10223config_headers="$ac_config_headers"
10224
10225_ACEOF
10226
10227cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10228ac_cs_usage="\
10229\`$as_me' instantiates files and other configuration actions
10230from templates according to the current configuration.  Unless the files
10231and actions are specified as TAGs, all are instantiated by default.
10232
10233Usage: $0 [OPTION]... [TAG]...
10234
10235  -h, --help       print this help, then exit
10236  -V, --version    print version number and configuration settings, then exit
10237      --config     print configuration, then exit
10238  -q, --quiet, --silent
10239                   do not print progress messages
10240  -d, --debug      don't remove temporary files
10241      --recheck    update $as_me by reconfiguring in the same conditions
10242      --file=FILE[:TEMPLATE]
10243                   instantiate the configuration file FILE
10244      --header=FILE[:TEMPLATE]
10245                   instantiate the configuration header FILE
10246
10247Configuration files:
10248$config_files
10249
10250Configuration headers:
10251$config_headers
10252
10253Report bugs to <nsd-bugs@nlnetlabs.nl>."
10254
10255_ACEOF
10256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10257ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10258ac_cs_version="\\
10259NSD config.status 4.1.27
10260configured by $0, generated by GNU Autoconf 2.69,
10261  with options \\"\$ac_cs_config\\"
10262
10263Copyright (C) 2012 Free Software Foundation, Inc.
10264This config.status script is free software; the Free Software Foundation
10265gives unlimited permission to copy, distribute and modify it."
10266
10267ac_pwd='$ac_pwd'
10268srcdir='$srcdir'
10269INSTALL='$INSTALL'
10270AWK='$AWK'
10271test -n "\$AWK" || AWK=awk
10272_ACEOF
10273
10274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10275# The default lists apply if the user does not specify any file.
10276ac_need_defaults=:
10277while test $# != 0
10278do
10279  case $1 in
10280  --*=?*)
10281    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10282    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10283    ac_shift=:
10284    ;;
10285  --*=)
10286    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10287    ac_optarg=
10288    ac_shift=:
10289    ;;
10290  *)
10291    ac_option=$1
10292    ac_optarg=$2
10293    ac_shift=shift
10294    ;;
10295  esac
10296
10297  case $ac_option in
10298  # Handling of the options.
10299  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10300    ac_cs_recheck=: ;;
10301  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10302    $as_echo "$ac_cs_version"; exit ;;
10303  --config | --confi | --conf | --con | --co | --c )
10304    $as_echo "$ac_cs_config"; exit ;;
10305  --debug | --debu | --deb | --de | --d | -d )
10306    debug=: ;;
10307  --file | --fil | --fi | --f )
10308    $ac_shift
10309    case $ac_optarg in
10310    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10311    '') as_fn_error $? "missing file argument" ;;
10312    esac
10313    as_fn_append CONFIG_FILES " '$ac_optarg'"
10314    ac_need_defaults=false;;
10315  --header | --heade | --head | --hea )
10316    $ac_shift
10317    case $ac_optarg in
10318    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10319    esac
10320    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10321    ac_need_defaults=false;;
10322  --he | --h)
10323    # Conflict between --help and --header
10324    as_fn_error $? "ambiguous option: \`$1'
10325Try \`$0 --help' for more information.";;
10326  --help | --hel | -h )
10327    $as_echo "$ac_cs_usage"; exit ;;
10328  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10329  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10330    ac_cs_silent=: ;;
10331
10332  # This is an error.
10333  -*) as_fn_error $? "unrecognized option: \`$1'
10334Try \`$0 --help' for more information." ;;
10335
10336  *) as_fn_append ac_config_targets " $1"
10337     ac_need_defaults=false ;;
10338
10339  esac
10340  shift
10341done
10342
10343ac_configure_extra_args=
10344
10345if $ac_cs_silent; then
10346  exec 6>/dev/null
10347  ac_configure_extra_args="$ac_configure_extra_args --silent"
10348fi
10349
10350_ACEOF
10351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10352if \$ac_cs_recheck; then
10353  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10354  shift
10355  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10356  CONFIG_SHELL='$SHELL'
10357  export CONFIG_SHELL
10358  exec "\$@"
10359fi
10360
10361_ACEOF
10362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10363exec 5>>config.log
10364{
10365  echo
10366  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10367## Running $as_me. ##
10368_ASBOX
10369  $as_echo "$ac_log"
10370} >&5
10371
10372_ACEOF
10373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10374_ACEOF
10375
10376cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10377
10378# Handling of arguments.
10379for ac_config_target in $ac_config_targets
10380do
10381  case $ac_config_target in
10382    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10383    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10384    "$dnstap_config") CONFIG_FILES="$CONFIG_FILES $dnstap_config" ;;
10385
10386  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10387  esac
10388done
10389
10390
10391# If the user did not use the arguments to specify the items to instantiate,
10392# then the envvar interface is used.  Set only those that are not.
10393# We use the long form for the default assignment because of an extremely
10394# bizarre bug on SunOS 4.1.3.
10395if $ac_need_defaults; then
10396  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10397  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10398fi
10399
10400# Have a temporary directory for convenience.  Make it in the build tree
10401# simply because there is no reason against having it here, and in addition,
10402# creating and moving files from /tmp can sometimes cause problems.
10403# Hook for its removal unless debugging.
10404# Note that there is a small window in which the directory will not be cleaned:
10405# after its creation but before its name has been assigned to `$tmp'.
10406$debug ||
10407{
10408  tmp= ac_tmp=
10409  trap 'exit_status=$?
10410  : "${ac_tmp:=$tmp}"
10411  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10412' 0
10413  trap 'as_fn_exit 1' 1 2 13 15
10414}
10415# Create a (secure) tmp directory for tmp files.
10416
10417{
10418  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10419  test -d "$tmp"
10420}  ||
10421{
10422  tmp=./conf$$-$RANDOM
10423  (umask 077 && mkdir "$tmp")
10424} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10425ac_tmp=$tmp
10426
10427# Set up the scripts for CONFIG_FILES section.
10428# No need to generate them if there are no CONFIG_FILES.
10429# This happens for instance with `./config.status config.h'.
10430if test -n "$CONFIG_FILES"; then
10431
10432
10433ac_cr=`echo X | tr X '\015'`
10434# On cygwin, bash can eat \r inside `` if the user requested igncr.
10435# But we know of no other shell where ac_cr would be empty at this
10436# point, so we can use a bashism as a fallback.
10437if test "x$ac_cr" = x; then
10438  eval ac_cr=\$\'\\r\'
10439fi
10440ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10441if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10442  ac_cs_awk_cr='\\r'
10443else
10444  ac_cs_awk_cr=$ac_cr
10445fi
10446
10447echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10448_ACEOF
10449
10450
10451{
10452  echo "cat >conf$$subs.awk <<_ACEOF" &&
10453  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10454  echo "_ACEOF"
10455} >conf$$subs.sh ||
10456  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10457ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10458ac_delim='%!_!# '
10459for ac_last_try in false false false false false :; do
10460  . ./conf$$subs.sh ||
10461    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10462
10463  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10464  if test $ac_delim_n = $ac_delim_num; then
10465    break
10466  elif $ac_last_try; then
10467    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10468  else
10469    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10470  fi
10471done
10472rm -f conf$$subs.sh
10473
10474cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10475cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10476_ACEOF
10477sed -n '
10478h
10479s/^/S["/; s/!.*/"]=/
10480p
10481g
10482s/^[^!]*!//
10483:repl
10484t repl
10485s/'"$ac_delim"'$//
10486t delim
10487:nl
10488h
10489s/\(.\{148\}\)..*/\1/
10490t more1
10491s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10492p
10493n
10494b repl
10495:more1
10496s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10497p
10498g
10499s/.\{148\}//
10500t nl
10501:delim
10502h
10503s/\(.\{148\}\)..*/\1/
10504t more2
10505s/["\\]/\\&/g; s/^/"/; s/$/"/
10506p
10507b
10508:more2
10509s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10510p
10511g
10512s/.\{148\}//
10513t delim
10514' <conf$$subs.awk | sed '
10515/^[^""]/{
10516  N
10517  s/\n//
10518}
10519' >>$CONFIG_STATUS || ac_write_fail=1
10520rm -f conf$$subs.awk
10521cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10522_ACAWK
10523cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10524  for (key in S) S_is_set[key] = 1
10525  FS = ""
10526
10527}
10528{
10529  line = $ 0
10530  nfields = split(line, field, "@")
10531  substed = 0
10532  len = length(field[1])
10533  for (i = 2; i < nfields; i++) {
10534    key = field[i]
10535    keylen = length(key)
10536    if (S_is_set[key]) {
10537      value = S[key]
10538      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10539      len += length(value) + length(field[++i])
10540      substed = 1
10541    } else
10542      len += 1 + keylen
10543  }
10544
10545  print line
10546}
10547
10548_ACAWK
10549_ACEOF
10550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10551if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10552  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10553else
10554  cat
10555fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10556  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10557_ACEOF
10558
10559# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10560# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10561# trailing colons and then remove the whole line if VPATH becomes empty
10562# (actually we leave an empty line to preserve line numbers).
10563if test "x$srcdir" = x.; then
10564  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
10565h
10566s///
10567s/^/:/
10568s/[	 ]*$/:/
10569s/:\$(srcdir):/:/g
10570s/:\${srcdir}:/:/g
10571s/:@srcdir@:/:/g
10572s/^:*//
10573s/:*$//
10574x
10575s/\(=[	 ]*\).*/\1/
10576G
10577s/\n//
10578s/^[^=]*=[	 ]*$//
10579}'
10580fi
10581
10582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10583fi # test -n "$CONFIG_FILES"
10584
10585# Set up the scripts for CONFIG_HEADERS section.
10586# No need to generate them if there are no CONFIG_HEADERS.
10587# This happens for instance with `./config.status Makefile'.
10588if test -n "$CONFIG_HEADERS"; then
10589cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10590BEGIN {
10591_ACEOF
10592
10593# Transform confdefs.h into an awk script `defines.awk', embedded as
10594# here-document in config.status, that substitutes the proper values into
10595# config.h.in to produce config.h.
10596
10597# Create a delimiter string that does not exist in confdefs.h, to ease
10598# handling of long lines.
10599ac_delim='%!_!# '
10600for ac_last_try in false false :; do
10601  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10602  if test -z "$ac_tt"; then
10603    break
10604  elif $ac_last_try; then
10605    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10606  else
10607    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10608  fi
10609done
10610
10611# For the awk script, D is an array of macro values keyed by name,
10612# likewise P contains macro parameters if any.  Preserve backslash
10613# newline sequences.
10614
10615ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10616sed -n '
10617s/.\{148\}/&'"$ac_delim"'/g
10618t rset
10619:rset
10620s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
10621t def
10622d
10623:def
10624s/\\$//
10625t bsnl
10626s/["\\]/\\&/g
10627s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
10628D["\1"]=" \3"/p
10629s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
10630d
10631:bsnl
10632s/["\\]/\\&/g
10633s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
10634D["\1"]=" \3\\\\\\n"\\/p
10635t cont
10636s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10637t cont
10638d
10639:cont
10640n
10641s/.\{148\}/&'"$ac_delim"'/g
10642t clear
10643:clear
10644s/\\$//
10645t bsnlc
10646s/["\\]/\\&/g; s/^/"/; s/$/"/p
10647d
10648:bsnlc
10649s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10650b cont
10651' <confdefs.h | sed '
10652s/'"$ac_delim"'/"\\\
10653"/g' >>$CONFIG_STATUS || ac_write_fail=1
10654
10655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10656  for (key in D) D_is_set[key] = 1
10657  FS = ""
10658}
10659/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10660  line = \$ 0
10661  split(line, arg, " ")
10662  if (arg[1] == "#") {
10663    defundef = arg[2]
10664    mac1 = arg[3]
10665  } else {
10666    defundef = substr(arg[1], 2)
10667    mac1 = arg[2]
10668  }
10669  split(mac1, mac2, "(") #)
10670  macro = mac2[1]
10671  prefix = substr(line, 1, index(line, defundef) - 1)
10672  if (D_is_set[macro]) {
10673    # Preserve the white space surrounding the "#".
10674    print prefix "define", macro P[macro] D[macro]
10675    next
10676  } else {
10677    # Replace #undef with comments.  This is necessary, for example,
10678    # in the case of _POSIX_SOURCE, which is predefined and required
10679    # on some systems where configure will not decide to define it.
10680    if (defundef == "undef") {
10681      print "/*", prefix defundef, macro, "*/"
10682      next
10683    }
10684  }
10685}
10686{ print }
10687_ACAWK
10688_ACEOF
10689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10690  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10691fi # test -n "$CONFIG_HEADERS"
10692
10693
10694eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
10695shift
10696for ac_tag
10697do
10698  case $ac_tag in
10699  :[FHLC]) ac_mode=$ac_tag; continue;;
10700  esac
10701  case $ac_mode$ac_tag in
10702  :[FHL]*:*);;
10703  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10704  :[FH]-) ac_tag=-:-;;
10705  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10706  esac
10707  ac_save_IFS=$IFS
10708  IFS=:
10709  set x $ac_tag
10710  IFS=$ac_save_IFS
10711  shift
10712  ac_file=$1
10713  shift
10714
10715  case $ac_mode in
10716  :L) ac_source=$1;;
10717  :[FH])
10718    ac_file_inputs=
10719    for ac_f
10720    do
10721      case $ac_f in
10722      -) ac_f="$ac_tmp/stdin";;
10723      *) # Look for the file first in the build tree, then in the source tree
10724	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
10725	 # because $ac_f cannot contain `:'.
10726	 test -f "$ac_f" ||
10727	   case $ac_f in
10728	   [\\/$]*) false;;
10729	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10730	   esac ||
10731	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10732      esac
10733      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10734      as_fn_append ac_file_inputs " '$ac_f'"
10735    done
10736
10737    # Let's still pretend it is `configure' which instantiates (i.e., don't
10738    # use $as_me), people would be surprised to read:
10739    #    /* config.h.  Generated by config.status.  */
10740    configure_input='Generated from '`
10741	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10742	`' by configure.'
10743    if test x"$ac_file" != x-; then
10744      configure_input="$ac_file.  $configure_input"
10745      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10746$as_echo "$as_me: creating $ac_file" >&6;}
10747    fi
10748    # Neutralize special characters interpreted by sed in replacement strings.
10749    case $configure_input in #(
10750    *\&* | *\|* | *\\* )
10751       ac_sed_conf_input=`$as_echo "$configure_input" |
10752       sed 's/[\\\\&|]/\\\\&/g'`;; #(
10753    *) ac_sed_conf_input=$configure_input;;
10754    esac
10755
10756    case $ac_tag in
10757    *:-:* | *:-) cat >"$ac_tmp/stdin" \
10758      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10759    esac
10760    ;;
10761  esac
10762
10763  ac_dir=`$as_dirname -- "$ac_file" ||
10764$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10765	 X"$ac_file" : 'X\(//\)[^/]' \| \
10766	 X"$ac_file" : 'X\(//\)$' \| \
10767	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10768$as_echo X"$ac_file" |
10769    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10770	    s//\1/
10771	    q
10772	  }
10773	  /^X\(\/\/\)[^/].*/{
10774	    s//\1/
10775	    q
10776	  }
10777	  /^X\(\/\/\)$/{
10778	    s//\1/
10779	    q
10780	  }
10781	  /^X\(\/\).*/{
10782	    s//\1/
10783	    q
10784	  }
10785	  s/.*/./; q'`
10786  as_dir="$ac_dir"; as_fn_mkdir_p
10787  ac_builddir=.
10788
10789case "$ac_dir" in
10790.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10791*)
10792  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10793  # A ".." for each directory in $ac_dir_suffix.
10794  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10795  case $ac_top_builddir_sub in
10796  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10797  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10798  esac ;;
10799esac
10800ac_abs_top_builddir=$ac_pwd
10801ac_abs_builddir=$ac_pwd$ac_dir_suffix
10802# for backward compatibility:
10803ac_top_builddir=$ac_top_build_prefix
10804
10805case $srcdir in
10806  .)  # We are building in place.
10807    ac_srcdir=.
10808    ac_top_srcdir=$ac_top_builddir_sub
10809    ac_abs_top_srcdir=$ac_pwd ;;
10810  [\\/]* | ?:[\\/]* )  # Absolute name.
10811    ac_srcdir=$srcdir$ac_dir_suffix;
10812    ac_top_srcdir=$srcdir
10813    ac_abs_top_srcdir=$srcdir ;;
10814  *) # Relative name.
10815    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10816    ac_top_srcdir=$ac_top_build_prefix$srcdir
10817    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10818esac
10819ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10820
10821
10822  case $ac_mode in
10823  :F)
10824  #
10825  # CONFIG_FILE
10826  #
10827
10828  case $INSTALL in
10829  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10830  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10831  esac
10832_ACEOF
10833
10834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10835# If the template does not know about datarootdir, expand it.
10836# FIXME: This hack should be removed a few years after 2.60.
10837ac_datarootdir_hack=; ac_datarootdir_seen=
10838ac_sed_dataroot='
10839/datarootdir/ {
10840  p
10841  q
10842}
10843/@datadir@/p
10844/@docdir@/p
10845/@infodir@/p
10846/@localedir@/p
10847/@mandir@/p'
10848case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10849*datarootdir*) ac_datarootdir_seen=yes;;
10850*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10851  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10852$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10853_ACEOF
10854cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10855  ac_datarootdir_hack='
10856  s&@datadir@&$datadir&g
10857  s&@docdir@&$docdir&g
10858  s&@infodir@&$infodir&g
10859  s&@localedir@&$localedir&g
10860  s&@mandir@&$mandir&g
10861  s&\\\${datarootdir}&$datarootdir&g' ;;
10862esac
10863_ACEOF
10864
10865# Neutralize VPATH when `$srcdir' = `.'.
10866# Shell code in configure.ac might set extrasub.
10867# FIXME: do we really want to maintain this feature?
10868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10869ac_sed_extra="$ac_vpsub
10870$extrasub
10871_ACEOF
10872cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10873:t
10874/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10875s|@configure_input@|$ac_sed_conf_input|;t t
10876s&@top_builddir@&$ac_top_builddir_sub&;t t
10877s&@top_build_prefix@&$ac_top_build_prefix&;t t
10878s&@srcdir@&$ac_srcdir&;t t
10879s&@abs_srcdir@&$ac_abs_srcdir&;t t
10880s&@top_srcdir@&$ac_top_srcdir&;t t
10881s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10882s&@builddir@&$ac_builddir&;t t
10883s&@abs_builddir@&$ac_abs_builddir&;t t
10884s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10885s&@INSTALL@&$ac_INSTALL&;t t
10886$ac_datarootdir_hack
10887"
10888eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10889  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10890
10891test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10892  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10893  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
10894      "$ac_tmp/out"`; test -z "$ac_out"; } &&
10895  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10896which seems to be undefined.  Please make sure it is defined" >&5
10897$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10898which seems to be undefined.  Please make sure it is defined" >&2;}
10899
10900  rm -f "$ac_tmp/stdin"
10901  case $ac_file in
10902  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10903  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10904  esac \
10905  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10906 ;;
10907  :H)
10908  #
10909  # CONFIG_HEADER
10910  #
10911  if test x"$ac_file" != x-; then
10912    {
10913      $as_echo "/* $configure_input  */" \
10914      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10915    } >"$ac_tmp/config.h" \
10916      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10917    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10918      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10919$as_echo "$as_me: $ac_file is unchanged" >&6;}
10920    else
10921      rm -f "$ac_file"
10922      mv "$ac_tmp/config.h" "$ac_file" \
10923	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
10924    fi
10925  else
10926    $as_echo "/* $configure_input  */" \
10927      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10928      || as_fn_error $? "could not create -" "$LINENO" 5
10929  fi
10930 ;;
10931
10932
10933  esac
10934
10935done # for ac_tag
10936
10937
10938as_fn_exit 0
10939_ACEOF
10940ac_clean_files=$ac_clean_files_save
10941
10942test $ac_write_fail = 0 ||
10943  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10944
10945
10946# configure is writing to config.log, and then calls config.status.
10947# config.status does its own redirection, appending to config.log.
10948# Unfortunately, on DOS this fails, as config.log is still kept open
10949# by configure, so config.status won't be able to write to it; its
10950# output is simply discarded.  So we exec the FD to /dev/null,
10951# effectively closing config.log, so it can be properly (re)opened and
10952# appended to by config.status.  When coming back to configure, we
10953# need to make the FD available again.
10954if test "$no_create" != yes; then
10955  ac_cs_success=:
10956  ac_config_status_args=
10957  test "$silent" = yes &&
10958    ac_config_status_args="$ac_config_status_args --quiet"
10959  exec 5>/dev/null
10960  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10961  exec 5>>config.log
10962  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10963  # would make configure fail if this is the last instruction.
10964  $ac_cs_success || as_fn_exit 1
10965fi
10966if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10967  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10968$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10969fi
10970
10971