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