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