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