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