]> git.ipfire.org Git - thirdparty/dhcp.git/blob - configure
release check list added
[thirdparty/dhcp.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for DHCP 4.4.3b1.
4 #
5 # Report bugs to <dhcp-users@isc.org>.
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@gnu.org and dhcp-users@isc.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: 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='DHCP'
582 PACKAGE_TARNAME='dhcp'
583 PACKAGE_VERSION='4.4.3b1'
584 PACKAGE_STRING='DHCP 4.4.3b1'
585 PACKAGE_BUGREPORT='dhcp-users@isc.org'
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='am__EXEEXT_FALSE
625 am__EXEEXT_TRUE
626 LTLIBOBJS
627 LIBOBJS
628 LDAP_CFLAGS
629 LDAP_LIBS
630 INSTALL_BIND_FALSE
631 INSTALL_BIND_TRUE
632 Q
633 DISTCHECK_LIBTOOL_CONFIGURE_FLAG
634 BINDLT
635 A
636 DHLIBS
637 HAVE_BINDDIR_FALSE
638 HAVE_BINDDIR_TRUE
639 DISTCHECK_LIBBIND_CONFIGURE_FLAG
640 BINDLIBISCDIR
641 BINDLIBISCCFGDIR
642 BINDLIBDNSDIR
643 BINDLIBIRSDIR
644 BINDSRCDIR
645 BINDDIR
646 BINDSUBDIR
647 BINDIOMUX
648 ac_prefix_program
649 DISTCHECK_ATF_CONFIGURE_FLAG
650 HAVE_ATF_FALSE
651 HAVE_ATF_TRUE
652 UNITTESTS
653 ATF_BIN
654 ATF_LDFLAGS
655 ATF_CFLAGS
656 pkgcfg_found
657 BIND_ATF_FALSE
658 BIND_ATF_TRUE
659 byte_order
660 AR
661 RANLIB
662 EGREP
663 GREP
664 CPP
665 BINDCONFIG
666 am__fastdepCC_FALSE
667 am__fastdepCC_TRUE
668 CCDEPMODE
669 am__nodep
670 AMDEPBACKSLASH
671 AMDEP_FALSE
672 AMDEP_TRUE
673 am__include
674 DEPDIR
675 OBJEXT
676 EXEEXT
677 ac_ct_CC
678 CPPFLAGS
679 LDFLAGS
680 CFLAGS
681 CC
682 host_os
683 host_vendor
684 host_cpu
685 host
686 build_os
687 build_vendor
688 build_cpu
689 build
690 MAINT
691 MAINTAINER_MODE_FALSE
692 MAINTAINER_MODE_TRUE
693 AM_BACKSLASH
694 AM_DEFAULT_VERBOSITY
695 AM_DEFAULT_V
696 AM_V
697 CSCOPE
698 ETAGS
699 CTAGS
700 am__untar
701 am__tar
702 AMTAR
703 am__leading_dot
704 SET_MAKE
705 AWK
706 mkdir_p
707 MKDIR_P
708 INSTALL_STRIP_PROGRAM
709 STRIP
710 install_sh
711 MAKEINFO
712 AUTOHEADER
713 AUTOMAKE
714 AUTOCONF
715 ACLOCAL
716 VERSION
717 PACKAGE
718 CYGPATH_W
719 am__isrc
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL
761 am__quote'
762 ac_subst_files=''
763 ac_user_opts='
764 enable_option_checking
765 enable_silent_rules
766 enable_maintainer_mode
767 enable_dependency_tracking
768 enable_debug
769 enable_failover
770 enable_execute
771 enable_tracing
772 enable_delayed_ack
773 enable_dhcpv6
774 enable_dhcpv4o6
775 enable_relay_port
776 enable_paranoia
777 enable_early_chroot
778 enable_ipv4_pktinfo
779 enable_use_sockets
780 enable_log_pid
781 enable_binary_leases
782 with_atf
783 with_srv_conf_file
784 with_srv_lease_file
785 with_srv6_lease_file
786 with_cli_lease_file
787 with_cli6_lease_file
788 with_srv_pid_file
789 with_srv6_pid_file
790 with_cli_pid_file
791 with_cli6_pid_file
792 with_relay_pid_file
793 with_relay6_pid_file
794 with_randomdev
795 enable_kqueue
796 enable_epoll
797 enable_devpoll
798 with_bind_extra_config
799 with_libbind
800 enable_libtool
801 enable_bind_install
802 with_ldap
803 with_ldapcrypto
804 with_ldap_gssapi
805 with_ldapcasa
806 '
807 ac_precious_vars='build_alias
808 host_alias
809 target_alias
810 CC
811 CFLAGS
812 LDFLAGS
813 LIBS
814 CPPFLAGS
815 CPP'
816
817
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 ac_unrecognized_opts=
822 ac_unrecognized_sep=
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
825 cache_file=/dev/null
826 exec_prefix=NONE
827 no_create=
828 no_recursion=
829 prefix=NONE
830 program_prefix=NONE
831 program_suffix=NONE
832 program_transform_name=s,x,x,
833 silent=
834 site=
835 srcdir=
836 verbose=
837 x_includes=NONE
838 x_libraries=NONE
839
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
858 htmldir='${docdir}'
859 dvidir='${docdir}'
860 pdfdir='${docdir}'
861 psdir='${docdir}'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
865
866 ac_prev=
867 ac_dashdash=
868 for ac_option
869 do
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
873 ac_prev=
874 continue
875 fi
876
877 case $ac_option in
878 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 *=) ac_optarg= ;;
880 *) ac_optarg=yes ;;
881 esac
882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
893
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
908
909 -datadir | --datadir | --datadi | --datad)
910 ac_prev=datadir ;;
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
913
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
921 -disable-* | --disable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=no ;;
936
937 -docdir | --docdir | --docdi | --doc | --do)
938 ac_prev=docdir ;;
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 docdir=$ac_optarg ;;
941
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 ac_prev=dvidir ;;
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 dvidir=$ac_optarg ;;
946
947 -enable-* | --enable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error $? "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
955 *"
956 "enable_$ac_useropt"
957 "*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=\$ac_optarg ;;
962
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
970 exec_prefix=$ac_optarg ;;
971
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
974 with_gas=yes ;;
975
976 -help | --help | --hel | --he | -h)
977 ac_init_help=long ;;
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
982
983 -host | --host | --hos | --ho)
984 ac_prev=host_alias ;;
985 -host=* | --host=* | --hos=* | --ho=*)
986 host_alias=$ac_optarg ;;
987
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 ac_prev=htmldir ;;
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 | --ht=*)
992 htmldir=$ac_optarg ;;
993
994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
999 includedir=$ac_optarg ;;
1000
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 ac_prev=infodir ;;
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004 infodir=$ac_optarg ;;
1005
1006 -libdir | --libdir | --libdi | --libd)
1007 ac_prev=libdir ;;
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009 libdir=$ac_optarg ;;
1010
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
1016 libexecdir=$ac_optarg ;;
1017
1018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1022
1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
1024 | --localstate | --localstat | --localsta | --localst | --locals)
1025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028 localstatedir=$ac_optarg ;;
1029
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 ac_prev=mandir ;;
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033 mandir=$ac_optarg ;;
1034
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1037 with_fp=no ;;
1038
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040 | --no-cr | --no-c | -n)
1041 no_create=yes ;;
1042
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 no_recursion=yes ;;
1046
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054 oldincludedir=$ac_optarg ;;
1055
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 ac_prev=prefix ;;
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059 prefix=$ac_optarg ;;
1060
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066 program_prefix=$ac_optarg ;;
1067
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073 program_suffix=$ac_optarg ;;
1074
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
1083 -program-transform-name=* | --program-transform-name=* \
1084 | --program-transform-nam=* | --program-transform-na=* \
1085 | --program-transform-n=* | --program-transform-=* \
1086 | --program-transform=* | --program-transfor=* \
1087 | --program-transfo=* | --program-transf=* \
1088 | --program-trans=* | --program-tran=* \
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
1090 program_transform_name=$ac_optarg ;;
1091
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 ac_prev=pdfdir ;;
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1096
1097 -psdir | --psdir | --psdi | --psd | --ps)
1098 ac_prev=psdir ;;
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 psdir=$ac_optarg ;;
1101
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1104 silent=yes ;;
1105
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 ac_prev=sbindir ;;
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 | --sbi=* | --sb=*)
1110 sbindir=$ac_optarg ;;
1111
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1115 | --sha | --sh)
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 | --sha=* | --sh=*)
1121 sharedstatedir=$ac_optarg ;;
1122
1123 -site | --site | --sit)
1124 ac_prev=site ;;
1125 -site=* | --site=* | --sit=*)
1126 site=$ac_optarg ;;
1127
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 ac_prev=srcdir ;;
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131 srcdir=$ac_optarg ;;
1132
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138 sysconfdir=$ac_optarg ;;
1139
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
1141 ac_prev=target_alias ;;
1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143 target_alias=$ac_optarg ;;
1144
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 verbose=yes ;;
1147
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
1150
1151 -with-* | --with-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=\$ac_optarg ;;
1166
1167 -without-* | --without-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=no ;;
1182
1183 --x)
1184 # Obsolete; use --with-x.
1185 with_x=yes ;;
1186
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188 | --x-incl | --x-inc | --x-in | --x-i)
1189 ac_prev=x_includes ;;
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192 x_includes=$ac_optarg ;;
1193
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196 ac_prev=x_libraries ;;
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199 x_libraries=$ac_optarg ;;
1200
1201 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1202 Try \`$0 --help' for more information"
1203 ;;
1204
1205 *=*)
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 case $ac_envvar in #(
1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
1210 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1211 esac
1212 eval $ac_envvar=\$ac_optarg
1213 export $ac_envvar ;;
1214
1215 *)
1216 # FIXME: should be removed in autoconf 3.0.
1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1221 ;;
1222
1223 esac
1224 done
1225
1226 if test -n "$ac_prev"; then
1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228 as_fn_error $? "missing argument to $ac_option"
1229 fi
1230
1231 if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1233 no) ;;
1234 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236 esac
1237 fi
1238
1239 # Check all directory arguments for consistency.
1240 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
1244 do
1245 eval ac_val=\$$ac_var
1246 # Remove trailing slashes.
1247 case $ac_val in
1248 */ )
1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\$ac_val;;
1251 esac
1252 # Be sure to have absolute directory names.
1253 case $ac_val in
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 esac
1257 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1258 done
1259
1260 # There might be people who depend on the old broken behavior: `$host'
1261 # used to hold the argument of --host etc.
1262 # FIXME: To remove some day.
1263 build=$build_alias
1264 host=$host_alias
1265 target=$target_alias
1266
1267 # FIXME: To remove some day.
1268 if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
1271 elif test "x$build_alias" != "x$host_alias"; then
1272 cross_compiling=yes
1273 fi
1274 fi
1275
1276 ac_tool_prefix=
1277 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279 test "$silent" = yes && exec 6>/dev/null
1280
1281
1282 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283 ac_ls_di=`ls -di .` &&
1284 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285 as_fn_error $? "working directory cannot be determined"
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287 as_fn_error $? "pwd does not report name of working directory"
1288
1289
1290 # Find the source files, if location was not specified.
1291 if test -z "$srcdir"; then
1292 ac_srcdir_defaulted=yes
1293 # Try the directory containing this script, then the parent directory.
1294 ac_confdir=`$as_dirname -- "$as_myself" ||
1295 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296 X"$as_myself" : 'X\(//\)[^/]' \| \
1297 X"$as_myself" : 'X\(//\)$' \| \
1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299 $as_echo X"$as_myself" |
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)[^/].*/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)$/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\).*/{
1313 s//\1/
1314 q
1315 }
1316 s/.*/./; q'`
1317 srcdir=$ac_confdir
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 srcdir=..
1320 fi
1321 else
1322 ac_srcdir_defaulted=no
1323 fi
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1327 fi
1328 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329 ac_abs_confdir=`(
1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1331 pwd)`
1332 # When building in place, set srcdir=.
1333 if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 srcdir=.
1335 fi
1336 # Remove unnecessary trailing slashes from srcdir.
1337 # Double slashes in file names in object file debugging info
1338 # mess up M-x gdb in Emacs.
1339 case $srcdir in
1340 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341 esac
1342 for ac_var in $ac_precious_vars; do
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_${ac_var}_value=\$${ac_var}
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347 done
1348
1349 #
1350 # Report the --help message.
1351 #
1352 if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1355 cat <<_ACEOF
1356 \`configure' configures DHCP 4.4.3b1 to adapt to many kinds of systems.
1357
1358 Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361 VAR=VALUE. See below for descriptions of some of the useful variables.
1362
1363 Defaults for the options are specified in brackets.
1364
1365 Configuration:
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking ...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375
1376 Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
1378 [$ac_default_prefix]
1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1380 [PREFIX]
1381
1382 By default, \`make install' will install all the files in
1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385 for instance \`--prefix=\$HOME'.
1386
1387 For better control, use the options below.
1388
1389 Fine tuning of the installation directories:
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/dhcp]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
1409 _ACEOF
1410
1411 cat <<\_ACEOF
1412
1413 Program names:
1414 --program-prefix=PREFIX prepend PREFIX to installed program names
1415 --program-suffix=SUFFIX append SUFFIX to installed program names
1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1417
1418 System types:
1419 --build=BUILD configure for building on BUILD [guessed]
1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1421 _ACEOF
1422 fi
1423
1424 if test -n "$ac_init_help"; then
1425 case $ac_init_help in
1426 short | recursive ) echo "Configuration of DHCP 4.4.3b1:";;
1427 esac
1428 cat <<\_ACEOF
1429
1430 Optional Features:
1431 --disable-option-checking ignore unrecognized --enable/--with options
1432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1434 --enable-silent-rules less verbose build output (undo: "make V=1")
1435 --disable-silent-rules verbose build output (undo: "make V=0")
1436 --enable-maintainer-mode
1437 enable make rules and dependencies not useful (and
1438 sometimes confusing) to the casual installer
1439 --enable-dependency-tracking
1440 do not reject slow dependency extractors
1441 --disable-dependency-tracking
1442 speeds up one-time build
1443 --enable-debug create a debug-only version of the software (default
1444 is no).
1445 --enable-failover enable support for failover (default is yes)
1446 --enable-execute enable support for execute() in config (default is
1447 yes)
1448 --enable-tracing enable support for server activity tracing (default
1449 is yes)
1450 --enable-delayed-ack queues multiple DHCPACK replies (default is yes)
1451 --enable-dhcpv6 enable support for DHCPv6 (default is yes)
1452 --enable-dhcpv4o6 enable support for DHCPv4-over-DHCPv6 (default is
1453 no)
1454 --enable-relay-port enable support for relay port (default is no)
1455 --enable-paranoia enable support for chroot/setuid (default is no)
1456 --enable-early-chroot enable chrooting prior to configuration (default is
1457 no)
1458 --enable-ipv4-pktinfo enable use of pktinfo on IPv4 sockets (default is
1459 no)
1460 --enable-use-sockets use the standard BSD socket API (default is no)
1461 --enable-log-pid Include PIDs in syslog messages (default is no).
1462 --enable-binary-leases enable support for binary insertion of leases
1463 (default is no)
1464 --enable-kqueue use BSD kqueue (default is no)
1465 --enable-epoll use Linux epoll (default is no)
1466 --enable-devpoll use /dev/poll (default is no)
1467 --enable-libtool use GNU libtool for dynamic shared libraries
1468 (default is no).
1469 --enable-bind-install install bind includes and libraries (default is no).
1470
1471 Optional Packages:
1472 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1473 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1474 --with-atf=PATH specify location where atf was installed
1475 --with-srv-conf-file=PATH
1476 Default file containing dhcpd configuration (default
1477 is typically /etc/dhcpd.conf)
1478 --with-srv-lease-file=PATH
1479 File for dhcpd leases (default is
1480 LOCALSTATEDIR/db/dhcpd.leases)
1481 --with-srv6-lease-file=PATH
1482 File for dhcpd6 leases (default is
1483 LOCALSTATEDIR/db/dhcpd6.leases)
1484 --with-cli-lease-file=PATH
1485 File for dhclient leases (default is
1486 LOCALSTATEDIR/db/dhclient.leases)
1487 --with-cli6-lease-file=PATH
1488 File for dhclient6 leases (default is
1489 LOCALSTATEDIR/db/dhclient6.leases)
1490 --with-srv-pid-file=PATH
1491 File for dhcpd process information (default is
1492 LOCALSTATEDIR/run/dhcpd.pid)
1493 --with-srv6-pid-file=PATH
1494 File for dhcpd6 process information (default is
1495 LOCALSTATEDIR/run/dhcpd6.pid)
1496 --with-cli-pid-file=PATH
1497 File for dhclient process information (default is
1498 LOCALSTATEDIR/run/dhclient.pid)
1499 --with-cli6-pid-file=PATH
1500 File for dhclient6 process information (default is
1501 LOCALSTATEDIR/run/dhclient6.pid)
1502 --with-relay-pid-file=PATH
1503 File for dhcrelay process information (default is
1504 LOCALSTATEDIR/run/dhcrelay.pid)
1505 --with-relay6-pid-file=PATH
1506 File for dhcrelay6 process information (default is
1507 LOCALSTATEDIR/run/dhcrelay6.pid)
1508 --with-randomdev=PATH Path for random device (default is /dev/random)
1509 --with-bind-extra-config
1510 configure bind librairies with some extra options
1511 (default is none)
1512 --with-libbind=PATH bind includes and libraries are in PATH
1513 --with-ldap enable OpenLDAP support in dhcpd (default is no)
1514 --with-ldapcrypto enable OpenLDAP crypto support in dhcpd (default is
1515 no)
1516 --with-ldap-gssapi enable krb5/gssapi authentication for OpenLDAP in
1517 dhcpd (default is no)
1518 --with-ldapcasa enable LDAP CASA auth support in dhcpd (default is
1519 no)
1520
1521 Some influential environment variables:
1522 CC C compiler command
1523 CFLAGS C compiler flags
1524 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1525 nonstandard directory <lib dir>
1526 LIBS libraries to pass to the linker, e.g. -l<library>
1527 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1528 you have headers in a nonstandard directory <include dir>
1529 CPP C preprocessor
1530
1531 Use these variables to override the choices made by `configure' or to help
1532 it to find libraries and programs with nonstandard names/locations.
1533
1534 Report bugs to <dhcp-users@isc.org>.
1535 _ACEOF
1536 ac_status=$?
1537 fi
1538
1539 if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" ||
1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 continue
1545 ac_builddir=.
1546
1547 case "$ac_dir" in
1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *)
1550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 esac ;;
1557 esac
1558 ac_abs_top_builddir=$ac_pwd
1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir=$ac_top_build_prefix
1562
1563 case $srcdir in
1564 .) # We are building in place.
1565 ac_srcdir=.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1572 *) # Relative name.
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 esac
1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1587 else
1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 fi || ac_status=$?
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1591 done
1592 fi
1593
1594 test -n "$ac_init_help" && exit $ac_status
1595 if $ac_init_version; then
1596 cat <<\_ACEOF
1597 DHCP configure 4.4.3b1
1598 generated by GNU Autoconf 2.69
1599
1600 Copyright (C) 2012 Free Software Foundation, Inc.
1601 This configure script is free software; the Free Software Foundation
1602 gives unlimited permission to copy, distribute and modify it.
1603 _ACEOF
1604 exit
1605 fi
1606
1607 ## ------------------------ ##
1608 ## Autoconf initialization. ##
1609 ## ------------------------ ##
1610
1611 # ac_fn_c_try_compile LINENO
1612 # --------------------------
1613 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_compile ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext
1618 if { { ac_try="$ac_compile"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_compile") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest.$ac_objext; then :
1637 ac_retval=0
1638 else
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1
1643 fi
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1646
1647 } # ac_fn_c_try_compile
1648
1649 # ac_fn_c_try_cpp LINENO
1650 # ----------------------
1651 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_cpp ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { { ac_try="$ac_cpp conftest.$ac_ext"
1656 case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1663 ac_status=$?
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1668 fi
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } > conftest.i && {
1671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1672 test ! -s conftest.err
1673 }; then :
1674 ac_retval=0
1675 else
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1678
1679 ac_retval=1
1680 fi
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1683
1684 } # ac_fn_c_try_cpp
1685
1686 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1687 # -------------------------------------------------------
1688 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1689 # the include files in INCLUDES and setting the cache variable VAR
1690 # accordingly.
1691 ac_fn_c_check_header_mongrel ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if eval \${$3+:} false; then :
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if eval \${$3+:} false; then :
1698 $as_echo_n "(cached) " >&6
1699 fi
1700 eval ac_res=\$$3
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702 $as_echo "$ac_res" >&6; }
1703 else
1704 # Is the header compilable?
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1706 $as_echo_n "checking $2 usability... " >&6; }
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h. */
1709 $4
1710 #include <$2>
1711 _ACEOF
1712 if ac_fn_c_try_compile "$LINENO"; then :
1713 ac_header_compiler=yes
1714 else
1715 ac_header_compiler=no
1716 fi
1717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1719 $as_echo "$ac_header_compiler" >&6; }
1720
1721 # Is the header present?
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1723 $as_echo_n "checking $2 presence... " >&6; }
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1726 #include <$2>
1727 _ACEOF
1728 if ac_fn_c_try_cpp "$LINENO"; then :
1729 ac_header_preproc=yes
1730 else
1731 ac_header_preproc=no
1732 fi
1733 rm -f conftest.err conftest.i conftest.$ac_ext
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1735 $as_echo "$ac_header_preproc" >&6; }
1736
1737 # So? What about this header?
1738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1739 yes:no: )
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1741 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1743 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1744 ;;
1745 no:yes:* )
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1747 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1749 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1751 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1753 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1755 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1756 ( $as_echo "## --------------------------------- ##
1757 ## Report this to dhcp-users@isc.org ##
1758 ## --------------------------------- ##"
1759 ) | sed "s/^/$as_me: WARNING: /" >&2
1760 ;;
1761 esac
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1766 else
1767 eval "$3=\$ac_header_compiler"
1768 fi
1769 eval ac_res=\$$3
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771 $as_echo "$ac_res" >&6; }
1772 fi
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774
1775 } # ac_fn_c_check_header_mongrel
1776
1777 # ac_fn_c_try_run LINENO
1778 # ----------------------
1779 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1780 # that executables *can* be run.
1781 ac_fn_c_try_run ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 if { { ac_try="$ac_link"
1785 case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_link") 2>&5
1792 ac_status=$?
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1795 { { case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_try") 2>&5
1802 ac_status=$?
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; }; }; then :
1805 ac_retval=0
1806 else
1807 $as_echo "$as_me: program exited with status $ac_status" >&5
1808 $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1810
1811 ac_retval=$ac_status
1812 fi
1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815 as_fn_set_status $ac_retval
1816
1817 } # ac_fn_c_try_run
1818
1819 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1820 # -------------------------------------------------------
1821 # Tests whether HEADER exists and can be compiled using the include files in
1822 # INCLUDES, setting the cache variable VAR accordingly.
1823 ac_fn_c_check_header_compile ()
1824 {
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 $as_echo_n "checking for $2... " >&6; }
1828 if eval \${$3+:} false; then :
1829 $as_echo_n "(cached) " >&6
1830 else
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1833 $4
1834 #include <$2>
1835 _ACEOF
1836 if ac_fn_c_try_compile "$LINENO"; then :
1837 eval "$3=yes"
1838 else
1839 eval "$3=no"
1840 fi
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842 fi
1843 eval ac_res=\$$3
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 $as_echo "$ac_res" >&6; }
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847
1848 } # ac_fn_c_check_header_compile
1849
1850 # ac_fn_c_find_intX_t LINENO BITS VAR
1851 # -----------------------------------
1852 # Finds a signed integer type with width BITS, setting cache variable VAR
1853 # accordingly.
1854 ac_fn_c_find_intX_t ()
1855 {
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1858 $as_echo_n "checking for int$2_t... " >&6; }
1859 if eval \${$3+:} false; then :
1860 $as_echo_n "(cached) " >&6
1861 else
1862 eval "$3=no"
1863 # Order is important - never check a type that is potentially smaller
1864 # than half of the expected target width.
1865 for ac_type in int$2_t 'int' 'long int' \
1866 'long long int' 'short int' 'signed char'; do
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1869 $ac_includes_default
1870 enum { N = $2 / 2 - 1 };
1871 int
1872 main ()
1873 {
1874 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1875 test_array [0] = 0;
1876 return test_array [0];
1877
1878 ;
1879 return 0;
1880 }
1881 _ACEOF
1882 if ac_fn_c_try_compile "$LINENO"; then :
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1885 $ac_includes_default
1886 enum { N = $2 / 2 - 1 };
1887 int
1888 main ()
1889 {
1890 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1891 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1892 test_array [0] = 0;
1893 return test_array [0];
1894
1895 ;
1896 return 0;
1897 }
1898 _ACEOF
1899 if ac_fn_c_try_compile "$LINENO"; then :
1900
1901 else
1902 case $ac_type in #(
1903 int$2_t) :
1904 eval "$3=yes" ;; #(
1905 *) :
1906 eval "$3=\$ac_type" ;;
1907 esac
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 fi
1911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912 if eval test \"x\$"$3"\" = x"no"; then :
1913
1914 else
1915 break
1916 fi
1917 done
1918 fi
1919 eval ac_res=\$$3
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923
1924 } # ac_fn_c_find_intX_t
1925
1926 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1927 # -------------------------------------------
1928 # Tests whether TYPE exists after having included INCLUDES, setting cache
1929 # variable VAR accordingly.
1930 ac_fn_c_check_type ()
1931 {
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934 $as_echo_n "checking for $2... " >&6; }
1935 if eval \${$3+:} false; then :
1936 $as_echo_n "(cached) " >&6
1937 else
1938 eval "$3=no"
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 $4
1942 int
1943 main ()
1944 {
1945 if (sizeof ($2))
1946 return 0;
1947 ;
1948 return 0;
1949 }
1950 _ACEOF
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1954 $4
1955 int
1956 main ()
1957 {
1958 if (sizeof (($2)))
1959 return 0;
1960 ;
1961 return 0;
1962 }
1963 _ACEOF
1964 if ac_fn_c_try_compile "$LINENO"; then :
1965
1966 else
1967 eval "$3=yes"
1968 fi
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 fi
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 fi
1973 eval ac_res=\$$3
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 $as_echo "$ac_res" >&6; }
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977
1978 } # ac_fn_c_check_type
1979
1980 # ac_fn_c_find_uintX_t LINENO BITS VAR
1981 # ------------------------------------
1982 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1983 # accordingly.
1984 ac_fn_c_find_uintX_t ()
1985 {
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1988 $as_echo_n "checking for uint$2_t... " >&6; }
1989 if eval \${$3+:} false; then :
1990 $as_echo_n "(cached) " >&6
1991 else
1992 eval "$3=no"
1993 # Order is important - never check a type that is potentially smaller
1994 # than half of the expected target width.
1995 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1996 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
1999 $ac_includes_default
2000 int
2001 main ()
2002 {
2003 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2004 test_array [0] = 0;
2005 return test_array [0];
2006
2007 ;
2008 return 0;
2009 }
2010 _ACEOF
2011 if ac_fn_c_try_compile "$LINENO"; then :
2012 case $ac_type in #(
2013 uint$2_t) :
2014 eval "$3=yes" ;; #(
2015 *) :
2016 eval "$3=\$ac_type" ;;
2017 esac
2018 fi
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 if eval test \"x\$"$3"\" = x"no"; then :
2021
2022 else
2023 break
2024 fi
2025 done
2026 fi
2027 eval ac_res=\$$3
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 $as_echo "$ac_res" >&6; }
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031
2032 } # ac_fn_c_find_uintX_t
2033
2034 # ac_fn_c_try_link LINENO
2035 # -----------------------
2036 # Try to link conftest.$ac_ext, and return whether this succeeded.
2037 ac_fn_c_try_link ()
2038 {
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040 rm -f conftest.$ac_objext conftest$ac_exeext
2041 if { { ac_try="$ac_link"
2042 case "(($ac_try" in
2043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044 *) ac_try_echo=$ac_try;;
2045 esac
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048 (eval "$ac_link") 2>conftest.err
2049 ac_status=$?
2050 if test -s conftest.err; then
2051 grep -v '^ *+' conftest.err >conftest.er1
2052 cat conftest.er1 >&5
2053 mv -f conftest.er1 conftest.err
2054 fi
2055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056 test $ac_status = 0; } && {
2057 test -z "$ac_c_werror_flag" ||
2058 test ! -s conftest.err
2059 } && test -s conftest$ac_exeext && {
2060 test "$cross_compiling" = yes ||
2061 test -x conftest$ac_exeext
2062 }; then :
2063 ac_retval=0
2064 else
2065 $as_echo "$as_me: failed program was:" >&5
2066 sed 's/^/| /' conftest.$ac_ext >&5
2067
2068 ac_retval=1
2069 fi
2070 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2071 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2072 # interfere with the next link command; also delete a directory that is
2073 # left behind by Apple's compiler. We do this before executing the actions.
2074 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076 as_fn_set_status $ac_retval
2077
2078 } # ac_fn_c_try_link
2079
2080 # ac_fn_c_check_func LINENO FUNC VAR
2081 # ----------------------------------
2082 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2083 ac_fn_c_check_func ()
2084 {
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087 $as_echo_n "checking for $2... " >&6; }
2088 if eval \${$3+:} false; then :
2089 $as_echo_n "(cached) " >&6
2090 else
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2093 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2095 #define $2 innocuous_$2
2096
2097 /* System header to define __stub macros and hopefully few prototypes,
2098 which can conflict with char $2 (); below.
2099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2100 <limits.h> exists even on freestanding compilers. */
2101
2102 #ifdef __STDC__
2103 # include <limits.h>
2104 #else
2105 # include <assert.h>
2106 #endif
2107
2108 #undef $2
2109
2110 /* Override any GCC internal prototype to avoid an error.
2111 Use char because int might match the return type of a GCC
2112 builtin and then its argument prototype would still apply. */
2113 #ifdef __cplusplus
2114 extern "C"
2115 #endif
2116 char $2 ();
2117 /* The GNU C library defines this for functions which it implements
2118 to always fail with ENOSYS. Some functions are actually named
2119 something starting with __ and the normal name is an alias. */
2120 #if defined __stub_$2 || defined __stub___$2
2121 choke me
2122 #endif
2123
2124 int
2125 main ()
2126 {
2127 return $2 ();
2128 ;
2129 return 0;
2130 }
2131 _ACEOF
2132 if ac_fn_c_try_link "$LINENO"; then :
2133 eval "$3=yes"
2134 else
2135 eval "$3=no"
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext \
2138 conftest$ac_exeext conftest.$ac_ext
2139 fi
2140 eval ac_res=\$$3
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 $as_echo "$ac_res" >&6; }
2143 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2144
2145 } # ac_fn_c_check_func
2146
2147 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2148 # ----------------------------------------------------
2149 # Tries to find if the field MEMBER exists in type AGGR, after including
2150 # INCLUDES, setting cache variable VAR accordingly.
2151 ac_fn_c_check_member ()
2152 {
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2155 $as_echo_n "checking for $2.$3... " >&6; }
2156 if eval \${$4+:} false; then :
2157 $as_echo_n "(cached) " >&6
2158 else
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2161 $5
2162 int
2163 main ()
2164 {
2165 static $2 ac_aggr;
2166 if (ac_aggr.$3)
2167 return 0;
2168 ;
2169 return 0;
2170 }
2171 _ACEOF
2172 if ac_fn_c_try_compile "$LINENO"; then :
2173 eval "$4=yes"
2174 else
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2177 $5
2178 int
2179 main ()
2180 {
2181 static $2 ac_aggr;
2182 if (sizeof ac_aggr.$3)
2183 return 0;
2184 ;
2185 return 0;
2186 }
2187 _ACEOF
2188 if ac_fn_c_try_compile "$LINENO"; then :
2189 eval "$4=yes"
2190 else
2191 eval "$4=no"
2192 fi
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 fi
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 fi
2197 eval ac_res=\$$4
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2199 $as_echo "$ac_res" >&6; }
2200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201
2202 } # ac_fn_c_check_member
2203
2204 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2205 # --------------------------------------------
2206 # Tries to find the compile-time value of EXPR in a program that includes
2207 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2208 # computed
2209 ac_fn_c_compute_int ()
2210 {
2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212 if test "$cross_compiling" = yes; then
2213 # Depending upon the size, compute the lo and hi bounds.
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2216 $4
2217 int
2218 main ()
2219 {
2220 static int test_array [1 - 2 * !(($2) >= 0)];
2221 test_array [0] = 0;
2222 return test_array [0];
2223
2224 ;
2225 return 0;
2226 }
2227 _ACEOF
2228 if ac_fn_c_try_compile "$LINENO"; then :
2229 ac_lo=0 ac_mid=0
2230 while :; do
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2233 $4
2234 int
2235 main ()
2236 {
2237 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2238 test_array [0] = 0;
2239 return test_array [0];
2240
2241 ;
2242 return 0;
2243 }
2244 _ACEOF
2245 if ac_fn_c_try_compile "$LINENO"; then :
2246 ac_hi=$ac_mid; break
2247 else
2248 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2249 if test $ac_lo -le $ac_mid; then
2250 ac_lo= ac_hi=
2251 break
2252 fi
2253 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2254 fi
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 done
2257 else
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2260 $4
2261 int
2262 main ()
2263 {
2264 static int test_array [1 - 2 * !(($2) < 0)];
2265 test_array [0] = 0;
2266 return test_array [0];
2267
2268 ;
2269 return 0;
2270 }
2271 _ACEOF
2272 if ac_fn_c_try_compile "$LINENO"; then :
2273 ac_hi=-1 ac_mid=-1
2274 while :; do
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2277 $4
2278 int
2279 main ()
2280 {
2281 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2282 test_array [0] = 0;
2283 return test_array [0];
2284
2285 ;
2286 return 0;
2287 }
2288 _ACEOF
2289 if ac_fn_c_try_compile "$LINENO"; then :
2290 ac_lo=$ac_mid; break
2291 else
2292 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2293 if test $ac_mid -le $ac_hi; then
2294 ac_lo= ac_hi=
2295 break
2296 fi
2297 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2298 fi
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 done
2301 else
2302 ac_lo= ac_hi=
2303 fi
2304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 fi
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 # Binary search between lo and hi bounds.
2308 while test "x$ac_lo" != "x$ac_hi"; do
2309 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2312 $4
2313 int
2314 main ()
2315 {
2316 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2317 test_array [0] = 0;
2318 return test_array [0];
2319
2320 ;
2321 return 0;
2322 }
2323 _ACEOF
2324 if ac_fn_c_try_compile "$LINENO"; then :
2325 ac_hi=$ac_mid
2326 else
2327 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2328 fi
2329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330 done
2331 case $ac_lo in #((
2332 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2333 '') ac_retval=1 ;;
2334 esac
2335 else
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2338 $4
2339 static long int longval () { return $2; }
2340 static unsigned long int ulongval () { return $2; }
2341 #include <stdio.h>
2342 #include <stdlib.h>
2343 int
2344 main ()
2345 {
2346
2347 FILE *f = fopen ("conftest.val", "w");
2348 if (! f)
2349 return 1;
2350 if (($2) < 0)
2351 {
2352 long int i = longval ();
2353 if (i != ($2))
2354 return 1;
2355 fprintf (f, "%ld", i);
2356 }
2357 else
2358 {
2359 unsigned long int i = ulongval ();
2360 if (i != ($2))
2361 return 1;
2362 fprintf (f, "%lu", i);
2363 }
2364 /* Do not output a trailing newline, as this causes \r\n confusion
2365 on some platforms. */
2366 return ferror (f) || fclose (f) != 0;
2367
2368 ;
2369 return 0;
2370 }
2371 _ACEOF
2372 if ac_fn_c_try_run "$LINENO"; then :
2373 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2374 else
2375 ac_retval=1
2376 fi
2377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2378 conftest.$ac_objext conftest.beam conftest.$ac_ext
2379 rm -f conftest.val
2380
2381 fi
2382 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2383 as_fn_set_status $ac_retval
2384
2385 } # ac_fn_c_compute_int
2386 cat >config.log <<_ACEOF
2387 This file contains any messages produced by compilers while
2388 running configure, to aid debugging if configure makes a mistake.
2389
2390 It was created by DHCP $as_me 4.4.3b1, which was
2391 generated by GNU Autoconf 2.69. Invocation command line was
2392
2393 $ $0 $@
2394
2395 _ACEOF
2396 exec 5>>config.log
2397 {
2398 cat <<_ASUNAME
2399 ## --------- ##
2400 ## Platform. ##
2401 ## --------- ##
2402
2403 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2404 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2405 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2406 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2407 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2408
2409 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2410 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2411
2412 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2413 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2414 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2415 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2416 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2417 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2418 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2419
2420 _ASUNAME
2421
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 for as_dir in $PATH
2424 do
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
2427 $as_echo "PATH: $as_dir"
2428 done
2429 IFS=$as_save_IFS
2430
2431 } >&5
2432
2433 cat >&5 <<_ACEOF
2434
2435
2436 ## ----------- ##
2437 ## Core tests. ##
2438 ## ----------- ##
2439
2440 _ACEOF
2441
2442
2443 # Keep a trace of the command line.
2444 # Strip out --no-create and --no-recursion so they do not pile up.
2445 # Strip out --silent because we don't want to record it for future runs.
2446 # Also quote any args containing shell meta-characters.
2447 # Make two passes to allow for proper duplicate-argument suppression.
2448 ac_configure_args=
2449 ac_configure_args0=
2450 ac_configure_args1=
2451 ac_must_keep_next=false
2452 for ac_pass in 1 2
2453 do
2454 for ac_arg
2455 do
2456 case $ac_arg in
2457 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2458 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2459 | -silent | --silent | --silen | --sile | --sil)
2460 continue ;;
2461 *\'*)
2462 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2463 esac
2464 case $ac_pass in
2465 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2466 2)
2467 as_fn_append ac_configure_args1 " '$ac_arg'"
2468 if test $ac_must_keep_next = true; then
2469 ac_must_keep_next=false # Got value, back to normal.
2470 else
2471 case $ac_arg in
2472 *=* | --config-cache | -C | -disable-* | --disable-* \
2473 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2474 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2475 | -with-* | --with-* | -without-* | --without-* | --x)
2476 case "$ac_configure_args0 " in
2477 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2478 esac
2479 ;;
2480 -* ) ac_must_keep_next=true ;;
2481 esac
2482 fi
2483 as_fn_append ac_configure_args " '$ac_arg'"
2484 ;;
2485 esac
2486 done
2487 done
2488 { ac_configure_args0=; unset ac_configure_args0;}
2489 { ac_configure_args1=; unset ac_configure_args1;}
2490
2491 # When interrupted or exit'd, cleanup temporary files, and complete
2492 # config.log. We remove comments because anyway the quotes in there
2493 # would cause problems or look ugly.
2494 # WARNING: Use '\'' to represent an apostrophe within the trap.
2495 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2496 trap 'exit_status=$?
2497 # Save into config.log some information that might help in debugging.
2498 {
2499 echo
2500
2501 $as_echo "## ---------------- ##
2502 ## Cache variables. ##
2503 ## ---------------- ##"
2504 echo
2505 # The following way of writing the cache mishandles newlines in values,
2506 (
2507 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2508 eval ac_val=\$$ac_var
2509 case $ac_val in #(
2510 *${as_nl}*)
2511 case $ac_var in #(
2512 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2513 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2514 esac
2515 case $ac_var in #(
2516 _ | IFS | as_nl) ;; #(
2517 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2518 *) { eval $ac_var=; unset $ac_var;} ;;
2519 esac ;;
2520 esac
2521 done
2522 (set) 2>&1 |
2523 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2524 *${as_nl}ac_space=\ *)
2525 sed -n \
2526 "s/'\''/'\''\\\\'\'''\''/g;
2527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2528 ;; #(
2529 *)
2530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2531 ;;
2532 esac |
2533 sort
2534 )
2535 echo
2536
2537 $as_echo "## ----------------- ##
2538 ## Output variables. ##
2539 ## ----------------- ##"
2540 echo
2541 for ac_var in $ac_subst_vars
2542 do
2543 eval ac_val=\$$ac_var
2544 case $ac_val in
2545 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2546 esac
2547 $as_echo "$ac_var='\''$ac_val'\''"
2548 done | sort
2549 echo
2550
2551 if test -n "$ac_subst_files"; then
2552 $as_echo "## ------------------- ##
2553 ## File substitutions. ##
2554 ## ------------------- ##"
2555 echo
2556 for ac_var in $ac_subst_files
2557 do
2558 eval ac_val=\$$ac_var
2559 case $ac_val in
2560 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2561 esac
2562 $as_echo "$ac_var='\''$ac_val'\''"
2563 done | sort
2564 echo
2565 fi
2566
2567 if test -s confdefs.h; then
2568 $as_echo "## ----------- ##
2569 ## confdefs.h. ##
2570 ## ----------- ##"
2571 echo
2572 cat confdefs.h
2573 echo
2574 fi
2575 test "$ac_signal" != 0 &&
2576 $as_echo "$as_me: caught signal $ac_signal"
2577 $as_echo "$as_me: exit $exit_status"
2578 } >&5
2579 rm -f core *.core core.conftest.* &&
2580 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2581 exit $exit_status
2582 ' 0
2583 for ac_signal in 1 2 13 15; do
2584 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2585 done
2586 ac_signal=0
2587
2588 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2589 rm -f -r conftest* confdefs.h
2590
2591 $as_echo "/* confdefs.h */" > confdefs.h
2592
2593 # Predefined preprocessor variables.
2594
2595 cat >>confdefs.h <<_ACEOF
2596 #define PACKAGE_NAME "$PACKAGE_NAME"
2597 _ACEOF
2598
2599 cat >>confdefs.h <<_ACEOF
2600 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2601 _ACEOF
2602
2603 cat >>confdefs.h <<_ACEOF
2604 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2605 _ACEOF
2606
2607 cat >>confdefs.h <<_ACEOF
2608 #define PACKAGE_STRING "$PACKAGE_STRING"
2609 _ACEOF
2610
2611 cat >>confdefs.h <<_ACEOF
2612 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2613 _ACEOF
2614
2615 cat >>confdefs.h <<_ACEOF
2616 #define PACKAGE_URL "$PACKAGE_URL"
2617 _ACEOF
2618
2619
2620 # Let the site file select an alternate cache file if it wants to.
2621 # Prefer an explicitly selected file to automatically selected ones.
2622 ac_site_file1=NONE
2623 ac_site_file2=NONE
2624 if test -n "$CONFIG_SITE"; then
2625 # We do not want a PATH search for config.site.
2626 case $CONFIG_SITE in #((
2627 -*) ac_site_file1=./$CONFIG_SITE;;
2628 */*) ac_site_file1=$CONFIG_SITE;;
2629 *) ac_site_file1=./$CONFIG_SITE;;
2630 esac
2631 elif test "x$prefix" != xNONE; then
2632 ac_site_file1=$prefix/share/config.site
2633 ac_site_file2=$prefix/etc/config.site
2634 else
2635 ac_site_file1=$ac_default_prefix/share/config.site
2636 ac_site_file2=$ac_default_prefix/etc/config.site
2637 fi
2638 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2639 do
2640 test "x$ac_site_file" = xNONE && continue
2641 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2643 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2644 sed 's/^/| /' "$ac_site_file" >&5
2645 . "$ac_site_file" \
2646 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2648 as_fn_error $? "failed to load site script $ac_site_file
2649 See \`config.log' for more details" "$LINENO" 5; }
2650 fi
2651 done
2652
2653 if test -r "$cache_file"; then
2654 # Some versions of bash will fail to source /dev/null (special files
2655 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2656 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2658 $as_echo "$as_me: loading cache $cache_file" >&6;}
2659 case $cache_file in
2660 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2661 *) . "./$cache_file";;
2662 esac
2663 fi
2664 else
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2666 $as_echo "$as_me: creating cache $cache_file" >&6;}
2667 >$cache_file
2668 fi
2669
2670 # Check that the precious variables saved in the cache have kept the same
2671 # value.
2672 ac_cache_corrupted=false
2673 for ac_var in $ac_precious_vars; do
2674 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2675 eval ac_new_set=\$ac_env_${ac_var}_set
2676 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2677 eval ac_new_val=\$ac_env_${ac_var}_value
2678 case $ac_old_set,$ac_new_set in
2679 set,)
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2681 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2682 ac_cache_corrupted=: ;;
2683 ,set)
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2685 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2686 ac_cache_corrupted=: ;;
2687 ,);;
2688 *)
2689 if test "x$ac_old_val" != "x$ac_new_val"; then
2690 # differences in whitespace do not lead to failure.
2691 ac_old_val_w=`echo x $ac_old_val`
2692 ac_new_val_w=`echo x $ac_new_val`
2693 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2695 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2696 ac_cache_corrupted=:
2697 else
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2699 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2700 eval $ac_var=\$ac_old_val
2701 fi
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2703 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2705 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2706 fi;;
2707 esac
2708 # Pass precious variables to config.status.
2709 if test "$ac_new_set" = set; then
2710 case $ac_new_val in
2711 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2712 *) ac_arg=$ac_var=$ac_new_val ;;
2713 esac
2714 case " $ac_configure_args " in
2715 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2716 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2717 esac
2718 fi
2719 done
2720 if $ac_cache_corrupted; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2724 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2725 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2726 fi
2727 ## -------------------- ##
2728 ## Main body of script. ##
2729 ## -------------------- ##
2730
2731 ac_ext=c
2732 ac_cpp='$CPP $CPPFLAGS'
2733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736
2737
2738
2739
2740 # we specify "foreign" to avoid having to have the GNU mandated files,
2741 # like AUTHORS, COPYING, and such
2742 am__api_version='1.16'
2743
2744 ac_aux_dir=
2745 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2746 if test -f "$ac_dir/install-sh"; then
2747 ac_aux_dir=$ac_dir
2748 ac_install_sh="$ac_aux_dir/install-sh -c"
2749 break
2750 elif test -f "$ac_dir/install.sh"; then
2751 ac_aux_dir=$ac_dir
2752 ac_install_sh="$ac_aux_dir/install.sh -c"
2753 break
2754 elif test -f "$ac_dir/shtool"; then
2755 ac_aux_dir=$ac_dir
2756 ac_install_sh="$ac_aux_dir/shtool install -c"
2757 break
2758 fi
2759 done
2760 if test -z "$ac_aux_dir"; then
2761 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2762 fi
2763
2764 # These three variables are undocumented and unsupported,
2765 # and are intended to be withdrawn in a future Autoconf release.
2766 # They can cause serious problems if a builder's source tree is in a directory
2767 # whose full name contains unusual characters.
2768 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2769 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2770 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2771
2772
2773 # Find a good install program. We prefer a C program (faster),
2774 # so one script is as good as another. But avoid the broken or
2775 # incompatible versions:
2776 # SysV /etc/install, /usr/sbin/install
2777 # SunOS /usr/etc/install
2778 # IRIX /sbin/install
2779 # AIX /bin/install
2780 # AmigaOS /C/install, which installs bootblocks on floppy discs
2781 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2782 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2783 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2784 # OS/2's system install, which has a completely different semantic
2785 # ./install, which can be erroneously created by make from ./install.sh.
2786 # Reject install programs that cannot install multiple files.
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2788 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2789 if test -z "$INSTALL"; then
2790 if ${ac_cv_path_install+:} false; then :
2791 $as_echo_n "(cached) " >&6
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2795 do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 # Account for people who put trailing slashes in PATH elements.
2799 case $as_dir/ in #((
2800 ./ | .// | /[cC]/* | \
2801 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2802 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2803 /usr/ucb/* ) ;;
2804 *)
2805 # OSF1 and SCO ODT 3.0 have their own names for install.
2806 # Don't use installbsd from OSF since it installs stuff as root
2807 # by default.
2808 for ac_prog in ginstall scoinst install; do
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2811 if test $ac_prog = install &&
2812 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2813 # AIX install. It has an incompatible calling convention.
2814 :
2815 elif test $ac_prog = install &&
2816 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2817 # program-specific install script used by HP pwplus--don't use.
2818 :
2819 else
2820 rm -rf conftest.one conftest.two conftest.dir
2821 echo one > conftest.one
2822 echo two > conftest.two
2823 mkdir conftest.dir
2824 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2825 test -s conftest.one && test -s conftest.two &&
2826 test -s conftest.dir/conftest.one &&
2827 test -s conftest.dir/conftest.two
2828 then
2829 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2830 break 3
2831 fi
2832 fi
2833 fi
2834 done
2835 done
2836 ;;
2837 esac
2838
2839 done
2840 IFS=$as_save_IFS
2841
2842 rm -rf conftest.one conftest.two conftest.dir
2843
2844 fi
2845 if test "${ac_cv_path_install+set}" = set; then
2846 INSTALL=$ac_cv_path_install
2847 else
2848 # As a last resort, use the slow shell script. Don't cache a
2849 # value for INSTALL within a source directory, because that will
2850 # break other packages using the cache if that directory is
2851 # removed, or if the value is a relative name.
2852 INSTALL=$ac_install_sh
2853 fi
2854 fi
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2856 $as_echo "$INSTALL" >&6; }
2857
2858 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2859 # It thinks the first close brace ends the variable substitution.
2860 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2861
2862 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2863
2864 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2865
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2867 $as_echo_n "checking whether build environment is sane... " >&6; }
2868 # Reject unsafe characters in $srcdir or the absolute working directory
2869 # name. Accept space and tab only in the latter.
2870 am_lf='
2871 '
2872 case `pwd` in
2873 *[\\\"\#\$\&\'\`$am_lf]*)
2874 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2875 esac
2876 case $srcdir in
2877 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2878 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2879 esac
2880
2881 # Do 'set' in a subshell so we don't clobber the current shell's
2882 # arguments. Must try -L first in case configure is actually a
2883 # symlink; some systems play weird games with the mod time of symlinks
2884 # (eg FreeBSD returns the mod time of the symlink's containing
2885 # directory).
2886 if (
2887 am_has_slept=no
2888 for am_try in 1 2; do
2889 echo "timestamp, slept: $am_has_slept" > conftest.file
2890 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2891 if test "$*" = "X"; then
2892 # -L didn't work.
2893 set X `ls -t "$srcdir/configure" conftest.file`
2894 fi
2895 if test "$*" != "X $srcdir/configure conftest.file" \
2896 && test "$*" != "X conftest.file $srcdir/configure"; then
2897
2898 # If neither matched, then we have a broken ls. This can happen
2899 # if, for instance, CONFIG_SHELL is bash and it inherits a
2900 # broken ls alias from the environment. This has actually
2901 # happened. Such a system could not be considered "sane".
2902 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2903 alias in your environment" "$LINENO" 5
2904 fi
2905 if test "$2" = conftest.file || test $am_try -eq 2; then
2906 break
2907 fi
2908 # Just in case.
2909 sleep 1
2910 am_has_slept=yes
2911 done
2912 test "$2" = conftest.file
2913 )
2914 then
2915 # Ok.
2916 :
2917 else
2918 as_fn_error $? "newly created file is older than distributed files!
2919 Check your system clock" "$LINENO" 5
2920 fi
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2922 $as_echo "yes" >&6; }
2923 # If we didn't sleep, we still need to ensure time stamps of config.status and
2924 # generated files are strictly newer.
2925 am_sleep_pid=
2926 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2927 ( sleep 1 ) &
2928 am_sleep_pid=$!
2929 fi
2930
2931 rm -f conftest.file
2932
2933 test "$program_prefix" != NONE &&
2934 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2935 # Use a double $ so make ignores it.
2936 test "$program_suffix" != NONE &&
2937 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2938 # Double any \ or $.
2939 # By default was `s,x,x', remove it if useless.
2940 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2941 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2942
2943 # Expand $ac_aux_dir to an absolute path.
2944 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2945
2946 if test x"${MISSING+set}" != xset; then
2947 MISSING="\${SHELL} '$am_aux_dir/missing'"
2948 fi
2949 # Use eval to expand $SHELL
2950 if eval "$MISSING --is-lightweight"; then
2951 am_missing_run="$MISSING "
2952 else
2953 am_missing_run=
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2955 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2956 fi
2957
2958 if test x"${install_sh+set}" != xset; then
2959 case $am_aux_dir in
2960 *\ * | *\ *)
2961 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2962 *)
2963 install_sh="\${SHELL} $am_aux_dir/install-sh"
2964 esac
2965 fi
2966
2967 # Installed binaries are usually stripped using 'strip' when the user
2968 # run "make install-strip". However 'strip' might not be the right
2969 # tool to use in cross-compilation environments, therefore Automake
2970 # will honor the 'STRIP' environment variable to overrule this program.
2971 if test "$cross_compiling" != no; then
2972 if test -n "$ac_tool_prefix"; then
2973 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2974 set dummy ${ac_tool_prefix}strip; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_STRIP+:} false; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 if test -n "$STRIP"; then
2981 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994 done
2995 done
2996 IFS=$as_save_IFS
2997
2998 fi
2999 fi
3000 STRIP=$ac_cv_prog_STRIP
3001 if test -n "$STRIP"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3003 $as_echo "$STRIP" >&6; }
3004 else
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 fi
3008
3009
3010 fi
3011 if test -z "$ac_cv_prog_STRIP"; then
3012 ac_ct_STRIP=$STRIP
3013 # Extract the first word of "strip", so it can be a program name with args.
3014 set dummy strip; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3018 $as_echo_n "(cached) " >&6
3019 else
3020 if test -n "$ac_ct_STRIP"; then
3021 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3022 else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3025 do
3026 IFS=$as_save_IFS
3027 test -z "$as_dir" && as_dir=.
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3030 ac_cv_prog_ac_ct_STRIP="strip"
3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 break 2
3033 fi
3034 done
3035 done
3036 IFS=$as_save_IFS
3037
3038 fi
3039 fi
3040 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3041 if test -n "$ac_ct_STRIP"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3043 $as_echo "$ac_ct_STRIP" >&6; }
3044 else
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3047 fi
3048
3049 if test "x$ac_ct_STRIP" = x; then
3050 STRIP=":"
3051 else
3052 case $cross_compiling:$ac_tool_warned in
3053 yes:)
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3056 ac_tool_warned=yes ;;
3057 esac
3058 STRIP=$ac_ct_STRIP
3059 fi
3060 else
3061 STRIP="$ac_cv_prog_STRIP"
3062 fi
3063
3064 fi
3065 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3066
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3068 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3069 if test -z "$MKDIR_P"; then
3070 if ${ac_cv_path_mkdir+:} false; then :
3071 $as_echo_n "(cached) " >&6
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3075 do
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_prog in mkdir gmkdir; do
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3081 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3082 'mkdir (GNU coreutils) '* | \
3083 'mkdir (coreutils) '* | \
3084 'mkdir (fileutils) '4.1*)
3085 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3086 break 3;;
3087 esac
3088 done
3089 done
3090 done
3091 IFS=$as_save_IFS
3092
3093 fi
3094
3095 test -d ./--version && rmdir ./--version
3096 if test "${ac_cv_path_mkdir+set}" = set; then
3097 MKDIR_P="$ac_cv_path_mkdir -p"
3098 else
3099 # As a last resort, use the slow shell script. Don't cache a
3100 # value for MKDIR_P within a source directory, because that will
3101 # break other packages using the cache if that directory is
3102 # removed, or if the value is a relative name.
3103 MKDIR_P="$ac_install_sh -d"
3104 fi
3105 fi
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3107 $as_echo "$MKDIR_P" >&6; }
3108
3109 for ac_prog in gawk mawk nawk awk
3110 do
3111 # Extract the first word of "$ac_prog", so it can be a program name with args.
3112 set dummy $ac_prog; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if ${ac_cv_prog_AWK+:} false; then :
3116 $as_echo_n "(cached) " >&6
3117 else
3118 if test -n "$AWK"; then
3119 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3123 do
3124 IFS=$as_save_IFS
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128 ac_cv_prog_AWK="$ac_prog"
3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 break 2
3131 fi
3132 done
3133 done
3134 IFS=$as_save_IFS
3135
3136 fi
3137 fi
3138 AWK=$ac_cv_prog_AWK
3139 if test -n "$AWK"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3141 $as_echo "$AWK" >&6; }
3142 else
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3145 fi
3146
3147
3148 test -n "$AWK" && break
3149 done
3150
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3152 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3153 set x ${MAKE-make}
3154 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3155 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3156 $as_echo_n "(cached) " >&6
3157 else
3158 cat >conftest.make <<\_ACEOF
3159 SHELL = /bin/sh
3160 all:
3161 @echo '@@@%%%=$(MAKE)=@@@%%%'
3162 _ACEOF
3163 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3164 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3165 *@@@%%%=?*=@@@%%%*)
3166 eval ac_cv_prog_make_${ac_make}_set=yes;;
3167 *)
3168 eval ac_cv_prog_make_${ac_make}_set=no;;
3169 esac
3170 rm -f conftest.make
3171 fi
3172 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3174 $as_echo "yes" >&6; }
3175 SET_MAKE=
3176 else
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3179 SET_MAKE="MAKE=${MAKE-make}"
3180 fi
3181
3182 rm -rf .tst 2>/dev/null
3183 mkdir .tst 2>/dev/null
3184 if test -d .tst; then
3185 am__leading_dot=.
3186 else
3187 am__leading_dot=_
3188 fi
3189 rmdir .tst 2>/dev/null
3190
3191 # Check whether --enable-silent-rules was given.
3192 if test "${enable_silent_rules+set}" = set; then :
3193 enableval=$enable_silent_rules;
3194 fi
3195
3196 case $enable_silent_rules in # (((
3197 yes) AM_DEFAULT_VERBOSITY=0;;
3198 no) AM_DEFAULT_VERBOSITY=1;;
3199 *) AM_DEFAULT_VERBOSITY=1;;
3200 esac
3201 am_make=${MAKE-make}
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3203 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3204 if ${am_cv_make_support_nested_variables+:} false; then :
3205 $as_echo_n "(cached) " >&6
3206 else
3207 if $as_echo 'TRUE=$(BAR$(V))
3208 BAR0=false
3209 BAR1=true
3210 V=1
3211 am__doit:
3212 @$(TRUE)
3213 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3214 am_cv_make_support_nested_variables=yes
3215 else
3216 am_cv_make_support_nested_variables=no
3217 fi
3218 fi
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3220 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3221 if test $am_cv_make_support_nested_variables = yes; then
3222 AM_V='$(V)'
3223 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3224 else
3225 AM_V=$AM_DEFAULT_VERBOSITY
3226 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3227 fi
3228 AM_BACKSLASH='\'
3229
3230 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3231 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3232 # is not polluted with repeated "-I."
3233 am__isrc=' -I$(srcdir)'
3234 # test to see if srcdir already configured
3235 if test -f $srcdir/config.status; then
3236 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3237 fi
3238 fi
3239
3240 # test whether we have cygpath
3241 if test -z "$CYGPATH_W"; then
3242 if (cygpath --version) >/dev/null 2>/dev/null; then
3243 CYGPATH_W='cygpath -w'
3244 else
3245 CYGPATH_W=echo
3246 fi
3247 fi
3248
3249
3250 # Define the identity of the package.
3251 PACKAGE='dhcp'
3252 VERSION='4.4.3b1'
3253
3254
3255 cat >>confdefs.h <<_ACEOF
3256 #define PACKAGE "$PACKAGE"
3257 _ACEOF
3258
3259
3260 cat >>confdefs.h <<_ACEOF
3261 #define VERSION "$VERSION"
3262 _ACEOF
3263
3264 # Some tools Automake needs.
3265
3266 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3267
3268
3269 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3270
3271
3272 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3273
3274
3275 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3276
3277
3278 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3279
3280 # For better backward compatibility. To be removed once Automake 1.9.x
3281 # dies out for good. For more background, see:
3282 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3283 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3284 mkdir_p='$(MKDIR_P)'
3285
3286 # We need awk for the "check" target (and possibly the TAP driver). The
3287 # system "awk" is bad on some platforms.
3288 # Always define AMTAR for backward compatibility. Yes, it's still used
3289 # in the wild :-( We should find a proper way to deprecate it ...
3290 AMTAR='$${TAR-tar}'
3291
3292
3293 # We'll loop over all known methods to create a tar archive until one works.
3294 _am_tools='gnutar pax cpio none'
3295
3296 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3297
3298
3299
3300
3301
3302 # Variables for tags utilities; see am/tags.am
3303 if test -z "$CTAGS"; then
3304 CTAGS=ctags
3305 fi
3306
3307 if test -z "$ETAGS"; then
3308 ETAGS=etags
3309 fi
3310
3311 if test -z "$CSCOPE"; then
3312 CSCOPE=cscope
3313 fi
3314
3315
3316
3317 # POSIX will say in a future version that running "rm -f" with no argument
3318 # is OK; and we want to be able to make that assumption in our Makefile
3319 # recipes. So use an aggressive probe to check that the usage we want is
3320 # actually supported "in the wild" to an acceptable degree.
3321 # See automake bug#10828.
3322 # To make any issue more visible, cause the running configure to be aborted
3323 # by default if the 'rm' program in use doesn't match our expectations; the
3324 # user can still override this though.
3325 if rm -f && rm -fr && rm -rf; then : OK; else
3326 cat >&2 <<'END'
3327 Oops!
3328
3329 Your 'rm' program seems unable to run without file operands specified
3330 on the command line, even when the '-f' option is present. This is contrary
3331 to the behaviour of most rm programs out there, and not conforming with
3332 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3333
3334 Please tell bug-automake@gnu.org about your system, including the value
3335 of your $PATH and any error possibly output before this message. This
3336 can help us improve future automake versions.
3337
3338 END
3339 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3340 echo 'Configuration will proceed anyway, since you have set the' >&2
3341 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3342 echo >&2
3343 else
3344 cat >&2 <<'END'
3345 Aborting the configuration process, to ensure you take notice of the issue.
3346
3347 You can download and install GNU coreutils to get an 'rm' implementation
3348 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3349
3350 If you want to complete the configuration process using your problematic
3351 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3352 to "yes", and re-run configure.
3353
3354 END
3355 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3356 fi
3357 fi
3358
3359
3360 # we specify AM_MAINTAINER_MODE to avoid problems with rebuilding
3361 # the configure and makefiles. Without it users doing things that
3362 # change the timestamps on the code, like checking it into a cvs
3363 # tree, could trigger a rebuild of the infrastructure files which
3364 # might fail if they don't have the correct tools.
3365
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3367 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3368 # Check whether --enable-maintainer-mode was given.
3369 if test "${enable_maintainer_mode+set}" = set; then :
3370 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3371 else
3372 USE_MAINTAINER_MODE=no
3373 fi
3374
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3376 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3377 if test $USE_MAINTAINER_MODE = yes; then
3378 MAINTAINER_MODE_TRUE=
3379 MAINTAINER_MODE_FALSE='#'
3380 else
3381 MAINTAINER_MODE_TRUE='#'
3382 MAINTAINER_MODE_FALSE=
3383 fi
3384
3385 MAINT=$MAINTAINER_MODE_TRUE
3386
3387
3388
3389 # Make sure we can run config.sub.
3390 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3391 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3392
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3394 $as_echo_n "checking build system type... " >&6; }
3395 if ${ac_cv_build+:} false; then :
3396 $as_echo_n "(cached) " >&6
3397 else
3398 ac_build_alias=$build_alias
3399 test "x$ac_build_alias" = x &&
3400 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3401 test "x$ac_build_alias" = x &&
3402 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3403 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3404 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3405
3406 fi
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3408 $as_echo "$ac_cv_build" >&6; }
3409 case $ac_cv_build in
3410 *-*-*) ;;
3411 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3412 esac
3413 build=$ac_cv_build
3414 ac_save_IFS=$IFS; IFS='-'
3415 set x $ac_cv_build
3416 shift
3417 build_cpu=$1
3418 build_vendor=$2
3419 shift; shift
3420 # Remember, the first character of IFS is used to create $*,
3421 # except with old shells:
3422 build_os=$*
3423 IFS=$ac_save_IFS
3424 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3425
3426
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3428 $as_echo_n "checking host system type... " >&6; }
3429 if ${ac_cv_host+:} false; then :
3430 $as_echo_n "(cached) " >&6
3431 else
3432 if test "x$host_alias" = x; then
3433 ac_cv_host=$ac_cv_build
3434 else
3435 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3436 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3437 fi
3438
3439 fi
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3441 $as_echo "$ac_cv_host" >&6; }
3442 case $ac_cv_host in
3443 *-*-*) ;;
3444 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3445 esac
3446 host=$ac_cv_host
3447 ac_save_IFS=$IFS; IFS='-'
3448 set x $ac_cv_host
3449 shift
3450 host_cpu=$1
3451 host_vendor=$2
3452 shift; shift
3453 # Remember, the first character of IFS is used to create $*,
3454 # except with old shells:
3455 host_os=$*
3456 IFS=$ac_save_IFS
3457 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3458
3459
3460
3461 # We want to turn on warnings if we are using gcc and the user did
3462 # not specify CFLAGS. The autoconf check for the C compiler sets the
3463 # CFLAGS if gcc is used, so we will save it before we run that check.
3464 SAVE_CFLAGS="$CFLAGS"
3465
3466 # Now find our C compiler.
3467 ac_ext=c
3468 ac_cpp='$CPP $CPPFLAGS'
3469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472 if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3474 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 $as_echo_n "checking for $ac_word... " >&6; }
3477 if ${ac_cv_prog_CC+:} false; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC="$CC" # Let the user override the test.
3482 else
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3485 do
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 break 2
3493 fi
3494 done
3495 done
3496 IFS=$as_save_IFS
3497
3498 fi
3499 fi
3500 CC=$ac_cv_prog_CC
3501 if test -n "$CC"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3503 $as_echo "$CC" >&6; }
3504 else
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3507 fi
3508
3509
3510 fi
3511 if test -z "$ac_cv_prog_CC"; then
3512 ac_ct_CC=$CC
3513 # Extract the first word of "gcc", so it can be a program name with args.
3514 set dummy gcc; ac_word=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 if test -n "$ac_ct_CC"; then
3521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3522 else
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 for as_dir in $PATH
3525 do
3526 IFS=$as_save_IFS
3527 test -z "$as_dir" && as_dir=.
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3530 ac_cv_prog_ac_ct_CC="gcc"
3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 break 2
3533 fi
3534 done
3535 done
3536 IFS=$as_save_IFS
3537
3538 fi
3539 fi
3540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3541 if test -n "$ac_ct_CC"; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3543 $as_echo "$ac_ct_CC" >&6; }
3544 else
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3547 fi
3548
3549 if test "x$ac_ct_CC" = x; then
3550 CC=""
3551 else
3552 case $cross_compiling:$ac_tool_warned in
3553 yes:)
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3556 ac_tool_warned=yes ;;
3557 esac
3558 CC=$ac_ct_CC
3559 fi
3560 else
3561 CC="$ac_cv_prog_CC"
3562 fi
3563
3564 if test -z "$CC"; then
3565 if test -n "$ac_tool_prefix"; then
3566 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3567 set dummy ${ac_tool_prefix}cc; ac_word=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if ${ac_cv_prog_CC+:} false; then :
3571 $as_echo_n "(cached) " >&6
3572 else
3573 if test -n "$CC"; then
3574 ac_cv_prog_CC="$CC" # Let the user override the test.
3575 else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3578 do
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3583 ac_cv_prog_CC="${ac_tool_prefix}cc"
3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2
3586 fi
3587 done
3588 done
3589 IFS=$as_save_IFS
3590
3591 fi
3592 fi
3593 CC=$ac_cv_prog_CC
3594 if test -n "$CC"; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3596 $as_echo "$CC" >&6; }
3597 else
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3600 fi
3601
3602
3603 fi
3604 fi
3605 if test -z "$CC"; then
3606 # Extract the first word of "cc", so it can be a program name with args.
3607 set dummy cc; ac_word=$2
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609 $as_echo_n "checking for $ac_word... " >&6; }
3610 if ${ac_cv_prog_CC+:} false; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 if test -n "$CC"; then
3614 ac_cv_prog_CC="$CC" # Let the user override the test.
3615 else
3616 ac_prog_rejected=no
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 for as_dir in $PATH
3619 do
3620 IFS=$as_save_IFS
3621 test -z "$as_dir" && as_dir=.
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3624 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3625 ac_prog_rejected=yes
3626 continue
3627 fi
3628 ac_cv_prog_CC="cc"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 break 2
3631 fi
3632 done
3633 done
3634 IFS=$as_save_IFS
3635
3636 if test $ac_prog_rejected = yes; then
3637 # We found a bogon in the path, so make sure we never use it.
3638 set dummy $ac_cv_prog_CC
3639 shift
3640 if test $# != 0; then
3641 # We chose a different compiler from the bogus one.
3642 # However, it has the same basename, so the bogon will be chosen
3643 # first if we set CC to just the basename; use the full file name.
3644 shift
3645 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3646 fi
3647 fi
3648 fi
3649 fi
3650 CC=$ac_cv_prog_CC
3651 if test -n "$CC"; then
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3653 $as_echo "$CC" >&6; }
3654 else
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3657 fi
3658
3659
3660 fi
3661 if test -z "$CC"; then
3662 if test -n "$ac_tool_prefix"; then
3663 for ac_prog in cl.exe
3664 do
3665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3668 $as_echo_n "checking for $ac_word... " >&6; }
3669 if ${ac_cv_prog_CC+:} false; then :
3670 $as_echo_n "(cached) " >&6
3671 else
3672 if test -n "$CC"; then
3673 ac_cv_prog_CC="$CC" # Let the user override the test.
3674 else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3677 do
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3682 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 break 2
3685 fi
3686 done
3687 done
3688 IFS=$as_save_IFS
3689
3690 fi
3691 fi
3692 CC=$ac_cv_prog_CC
3693 if test -n "$CC"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3695 $as_echo "$CC" >&6; }
3696 else
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3699 fi
3700
3701
3702 test -n "$CC" && break
3703 done
3704 fi
3705 if test -z "$CC"; then
3706 ac_ct_CC=$CC
3707 for ac_prog in cl.exe
3708 do
3709 # Extract the first word of "$ac_prog", so it can be a program name with args.
3710 set dummy $ac_prog; ac_word=$2
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712 $as_echo_n "checking for $ac_word... " >&6; }
3713 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3714 $as_echo_n "(cached) " >&6
3715 else
3716 if test -n "$ac_ct_CC"; then
3717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3718 else
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3721 do
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726 ac_cv_prog_ac_ct_CC="$ac_prog"
3727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3728 break 2
3729 fi
3730 done
3731 done
3732 IFS=$as_save_IFS
3733
3734 fi
3735 fi
3736 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3737 if test -n "$ac_ct_CC"; then
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3739 $as_echo "$ac_ct_CC" >&6; }
3740 else
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742 $as_echo "no" >&6; }
3743 fi
3744
3745
3746 test -n "$ac_ct_CC" && break
3747 done
3748
3749 if test "x$ac_ct_CC" = x; then
3750 CC=""
3751 else
3752 case $cross_compiling:$ac_tool_warned in
3753 yes:)
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3756 ac_tool_warned=yes ;;
3757 esac
3758 CC=$ac_ct_CC
3759 fi
3760 fi
3761
3762 fi
3763
3764
3765 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error $? "no acceptable C compiler found in \$PATH
3768 See \`config.log' for more details" "$LINENO" 5; }
3769
3770 # Provide some information about the compiler.
3771 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3772 set X $ac_compile
3773 ac_compiler=$2
3774 for ac_option in --version -v -V -qversion; do
3775 { { ac_try="$ac_compiler $ac_option >&5"
3776 case "(($ac_try" in
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3779 esac
3780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3781 $as_echo "$ac_try_echo"; } >&5
3782 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3783 ac_status=$?
3784 if test -s conftest.err; then
3785 sed '10a\
3786 ... rest of stderr output deleted ...
3787 10q' conftest.err >conftest.er1
3788 cat conftest.er1 >&5
3789 fi
3790 rm -f conftest.er1 conftest.err
3791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792 test $ac_status = 0; }
3793 done
3794
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3797
3798 int
3799 main ()
3800 {
3801
3802 ;
3803 return 0;
3804 }
3805 _ACEOF
3806 ac_clean_files_save=$ac_clean_files
3807 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3808 # Try to create an executable without -o first, disregard a.out.
3809 # It will help us diagnose broken compilers, and finding out an intuition
3810 # of exeext.
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3812 $as_echo_n "checking whether the C compiler works... " >&6; }
3813 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3814
3815 # The possible output files:
3816 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3817
3818 ac_rmfiles=
3819 for ac_file in $ac_files
3820 do
3821 case $ac_file in
3822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3823 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3824 esac
3825 done
3826 rm -f $ac_rmfiles
3827
3828 if { { ac_try="$ac_link_default"
3829 case "(($ac_try" in
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3832 esac
3833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834 $as_echo "$ac_try_echo"; } >&5
3835 (eval "$ac_link_default") 2>&5
3836 ac_status=$?
3837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838 test $ac_status = 0; }; then :
3839 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3840 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3841 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3842 # so that the user can short-circuit this test for compilers unknown to
3843 # Autoconf.
3844 for ac_file in $ac_files ''
3845 do
3846 test -f "$ac_file" || continue
3847 case $ac_file in
3848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3849 ;;
3850 [ab].out )
3851 # We found the default executable, but exeext='' is most
3852 # certainly right.
3853 break;;
3854 *.* )
3855 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3856 then :; else
3857 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3858 fi
3859 # We set ac_cv_exeext here because the later test for it is not
3860 # safe: cross compilers may not add the suffix if given an `-o'
3861 # argument, so we may need to know it at that point already.
3862 # Even if this section looks crufty: it has the advantage of
3863 # actually working.
3864 break;;
3865 * )
3866 break;;
3867 esac
3868 done
3869 test "$ac_cv_exeext" = no && ac_cv_exeext=
3870
3871 else
3872 ac_file=''
3873 fi
3874 if test -z "$ac_file"; then :
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 $as_echo "no" >&6; }
3877 $as_echo "$as_me: failed program was:" >&5
3878 sed 's/^/| /' conftest.$ac_ext >&5
3879
3880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3882 as_fn_error 77 "C compiler cannot create executables
3883 See \`config.log' for more details" "$LINENO" 5; }
3884 else
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3886 $as_echo "yes" >&6; }
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3889 $as_echo_n "checking for C compiler default output file name... " >&6; }
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3891 $as_echo "$ac_file" >&6; }
3892 ac_exeext=$ac_cv_exeext
3893
3894 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3895 ac_clean_files=$ac_clean_files_save
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3897 $as_echo_n "checking for suffix of executables... " >&6; }
3898 if { { ac_try="$ac_link"
3899 case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3902 esac
3903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904 $as_echo "$ac_try_echo"; } >&5
3905 (eval "$ac_link") 2>&5
3906 ac_status=$?
3907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3908 test $ac_status = 0; }; then :
3909 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3910 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3911 # work properly (i.e., refer to `conftest.exe'), while it won't with
3912 # `rm'.
3913 for ac_file in conftest.exe conftest conftest.*; do
3914 test -f "$ac_file" || continue
3915 case $ac_file in
3916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3917 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3918 break;;
3919 * ) break;;
3920 esac
3921 done
3922 else
3923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3925 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3926 See \`config.log' for more details" "$LINENO" 5; }
3927 fi
3928 rm -f conftest conftest$ac_cv_exeext
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3930 $as_echo "$ac_cv_exeext" >&6; }
3931
3932 rm -f conftest.$ac_ext
3933 EXEEXT=$ac_cv_exeext
3934 ac_exeext=$EXEEXT
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937 #include <stdio.h>
3938 int
3939 main ()
3940 {
3941 FILE *f = fopen ("conftest.out", "w");
3942 return ferror (f) || fclose (f) != 0;
3943
3944 ;
3945 return 0;
3946 }
3947 _ACEOF
3948 ac_clean_files="$ac_clean_files conftest.out"
3949 # Check that the compiler produces executables we can run. If not, either
3950 # the compiler is broken, or we cross compile.
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3952 $as_echo_n "checking whether we are cross compiling... " >&6; }
3953 if test "$cross_compiling" != yes; then
3954 { { ac_try="$ac_link"
3955 case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_link") 2>&5
3962 ac_status=$?
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }
3965 if { ac_try='./conftest$ac_cv_exeext'
3966 { { case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_try") 2>&5
3973 ac_status=$?
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; }; then
3976 cross_compiling=no
3977 else
3978 if test "$cross_compiling" = maybe; then
3979 cross_compiling=yes
3980 else
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error $? "cannot run C compiled programs.
3984 If you meant to cross compile, use \`--host'.
3985 See \`config.log' for more details" "$LINENO" 5; }
3986 fi
3987 fi
3988 fi
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3990 $as_echo "$cross_compiling" >&6; }
3991
3992 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3993 ac_clean_files=$ac_clean_files_save
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3995 $as_echo_n "checking for suffix of object files... " >&6; }
3996 if ${ac_cv_objext+:} false; then :
3997 $as_echo_n "(cached) " >&6
3998 else
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4001
4002 int
4003 main ()
4004 {
4005
4006 ;
4007 return 0;
4008 }
4009 _ACEOF
4010 rm -f conftest.o conftest.obj
4011 if { { ac_try="$ac_compile"
4012 case "(($ac_try" in
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4015 esac
4016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017 $as_echo "$ac_try_echo"; } >&5
4018 (eval "$ac_compile") 2>&5
4019 ac_status=$?
4020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021 test $ac_status = 0; }; then :
4022 for ac_file in conftest.o conftest.obj conftest.*; do
4023 test -f "$ac_file" || continue;
4024 case $ac_file in
4025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4026 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4027 break;;
4028 esac
4029 done
4030 else
4031 $as_echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4033
4034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4036 as_fn_error $? "cannot compute suffix of object files: cannot compile
4037 See \`config.log' for more details" "$LINENO" 5; }
4038 fi
4039 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4040 fi
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4042 $as_echo "$ac_cv_objext" >&6; }
4043 OBJEXT=$ac_cv_objext
4044 ac_objext=$OBJEXT
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4046 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4047 if ${ac_cv_c_compiler_gnu+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4052
4053 int
4054 main ()
4055 {
4056 #ifndef __GNUC__
4057 choke me
4058 #endif
4059
4060 ;
4061 return 0;
4062 }
4063 _ACEOF
4064 if ac_fn_c_try_compile "$LINENO"; then :
4065 ac_compiler_gnu=yes
4066 else
4067 ac_compiler_gnu=no
4068 fi
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4071
4072 fi
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4074 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4075 if test $ac_compiler_gnu = yes; then
4076 GCC=yes
4077 else
4078 GCC=
4079 fi
4080 ac_test_CFLAGS=${CFLAGS+set}
4081 ac_save_CFLAGS=$CFLAGS
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4083 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4084 if ${ac_cv_prog_cc_g+:} false; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 ac_save_c_werror_flag=$ac_c_werror_flag
4088 ac_c_werror_flag=yes
4089 ac_cv_prog_cc_g=no
4090 CFLAGS="-g"
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4093
4094 int
4095 main ()
4096 {
4097
4098 ;
4099 return 0;
4100 }
4101 _ACEOF
4102 if ac_fn_c_try_compile "$LINENO"; then :
4103 ac_cv_prog_cc_g=yes
4104 else
4105 CFLAGS=""
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4108
4109 int
4110 main ()
4111 {
4112
4113 ;
4114 return 0;
4115 }
4116 _ACEOF
4117 if ac_fn_c_try_compile "$LINENO"; then :
4118
4119 else
4120 ac_c_werror_flag=$ac_save_c_werror_flag
4121 CFLAGS="-g"
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4124
4125 int
4126 main ()
4127 {
4128
4129 ;
4130 return 0;
4131 }
4132 _ACEOF
4133 if ac_fn_c_try_compile "$LINENO"; then :
4134 ac_cv_prog_cc_g=yes
4135 fi
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 fi
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 fi
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 ac_c_werror_flag=$ac_save_c_werror_flag
4142 fi
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4144 $as_echo "$ac_cv_prog_cc_g" >&6; }
4145 if test "$ac_test_CFLAGS" = set; then
4146 CFLAGS=$ac_save_CFLAGS
4147 elif test $ac_cv_prog_cc_g = yes; then
4148 if test "$GCC" = yes; then
4149 CFLAGS="-g -O2"
4150 else
4151 CFLAGS="-g"
4152 fi
4153 else
4154 if test "$GCC" = yes; then
4155 CFLAGS="-O2"
4156 else
4157 CFLAGS=
4158 fi
4159 fi
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4161 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4162 if ${ac_cv_prog_cc_c89+:} false; then :
4163 $as_echo_n "(cached) " >&6
4164 else
4165 ac_cv_prog_cc_c89=no
4166 ac_save_CC=$CC
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #include <stdarg.h>
4170 #include <stdio.h>
4171 struct stat;
4172 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4173 struct buf { int x; };
4174 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4175 static char *e (p, i)
4176 char **p;
4177 int i;
4178 {
4179 return p[i];
4180 }
4181 static char *f (char * (*g) (char **, int), char **p, ...)
4182 {
4183 char *s;
4184 va_list v;
4185 va_start (v,p);
4186 s = g (p, va_arg (v,int));
4187 va_end (v);
4188 return s;
4189 }
4190
4191 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4192 function prototypes and stuff, but not '\xHH' hex character constants.
4193 These don't provoke an error unfortunately, instead are silently treated
4194 as 'x'. The following induces an error, until -std is added to get
4195 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4196 array size at least. It's necessary to write '\x00'==0 to get something
4197 that's true only with -std. */
4198 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4199
4200 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4201 inside strings and character constants. */
4202 #define FOO(x) 'x'
4203 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4204
4205 int test (int i, double x);
4206 struct s1 {int (*f) (int a);};
4207 struct s2 {int (*f) (double a);};
4208 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4209 int argc;
4210 char **argv;
4211 int
4212 main ()
4213 {
4214 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4215 ;
4216 return 0;
4217 }
4218 _ACEOF
4219 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4220 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4221 do
4222 CC="$ac_save_CC $ac_arg"
4223 if ac_fn_c_try_compile "$LINENO"; then :
4224 ac_cv_prog_cc_c89=$ac_arg
4225 fi
4226 rm -f core conftest.err conftest.$ac_objext
4227 test "x$ac_cv_prog_cc_c89" != "xno" && break
4228 done
4229 rm -f conftest.$ac_ext
4230 CC=$ac_save_CC
4231
4232 fi
4233 # AC_CACHE_VAL
4234 case "x$ac_cv_prog_cc_c89" in
4235 x)
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4237 $as_echo "none needed" >&6; } ;;
4238 xno)
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4240 $as_echo "unsupported" >&6; } ;;
4241 *)
4242 CC="$CC $ac_cv_prog_cc_c89"
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4244 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4245 esac
4246 if test "x$ac_cv_prog_cc_c89" != xno; then :
4247
4248 fi
4249
4250 ac_ext=c
4251 ac_cpp='$CPP $CPPFLAGS'
4252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4255
4256 ac_ext=c
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4262 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4263 if ${am_cv_prog_cc_c_o+:} false; then :
4264 $as_echo_n "(cached) " >&6
4265 else
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4268
4269 int
4270 main ()
4271 {
4272
4273 ;
4274 return 0;
4275 }
4276 _ACEOF
4277 # Make sure it works both with $CC and with simple cc.
4278 # Following AC_PROG_CC_C_O, we do the test twice because some
4279 # compilers refuse to overwrite an existing .o file with -o,
4280 # though they will create one.
4281 am_cv_prog_cc_c_o=yes
4282 for am_i in 1 2; do
4283 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4284 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } \
4288 && test -f conftest2.$ac_objext; then
4289 : OK
4290 else
4291 am_cv_prog_cc_c_o=no
4292 break
4293 fi
4294 done
4295 rm -f core conftest*
4296 unset am_i
4297 fi
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4299 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4300 if test "$am_cv_prog_cc_c_o" != yes; then
4301 # Losing compiler, so override with the script.
4302 # FIXME: It is wrong to rewrite CC.
4303 # But if we don't then we get into trouble of one sort or another.
4304 # A longer-term fix would be to have automake use am__CC in this case,
4305 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4306 CC="$am_aux_dir/compile $CC"
4307 fi
4308 ac_ext=c
4309 ac_cpp='$CPP $CPPFLAGS'
4310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4313
4314 DEPDIR="${am__leading_dot}deps"
4315
4316 ac_config_commands="$ac_config_commands depfiles"
4317
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4319 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4320 cat > confinc.mk << 'END'
4321 am__doit:
4322 @echo this is the am__doit target >confinc.out
4323 .PHONY: am__doit
4324 END
4325 am__include="#"
4326 am__quote=
4327 # BSD make does it like this.
4328 echo '.include "confinc.mk" # ignored' > confmf.BSD
4329 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4330 echo 'include confinc.mk # ignored' > confmf.GNU
4331 _am_result=no
4332 for s in GNU BSD; do
4333 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4334 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }
4338 case $?:`cat confinc.out 2>/dev/null` in #(
4339 '0:this is the am__doit target') :
4340 case $s in #(
4341 BSD) :
4342 am__include='.include' am__quote='"' ;; #(
4343 *) :
4344 am__include='include' am__quote='' ;;
4345 esac ;; #(
4346 *) :
4347 ;;
4348 esac
4349 if test "$am__include" != "#"; then
4350 _am_result="yes ($s style)"
4351 break
4352 fi
4353 done
4354 rm -f confinc.* confmf.*
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4356 $as_echo "${_am_result}" >&6; }
4357
4358 # Check whether --enable-dependency-tracking was given.
4359 if test "${enable_dependency_tracking+set}" = set; then :
4360 enableval=$enable_dependency_tracking;
4361 fi
4362
4363 if test "x$enable_dependency_tracking" != xno; then
4364 am_depcomp="$ac_aux_dir/depcomp"
4365 AMDEPBACKSLASH='\'
4366 am__nodep='_no'
4367 fi
4368 if test "x$enable_dependency_tracking" != xno; then
4369 AMDEP_TRUE=
4370 AMDEP_FALSE='#'
4371 else
4372 AMDEP_TRUE='#'
4373 AMDEP_FALSE=
4374 fi
4375
4376
4377
4378 depcc="$CC" am_compiler_list=
4379
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4381 $as_echo_n "checking dependency style of $depcc... " >&6; }
4382 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4383 $as_echo_n "(cached) " >&6
4384 else
4385 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4386 # We make a subdir and do the tests there. Otherwise we can end up
4387 # making bogus files that we don't know about and never remove. For
4388 # instance it was reported that on HP-UX the gcc test will end up
4389 # making a dummy file named 'D' -- because '-MD' means "put the output
4390 # in D".
4391 rm -rf conftest.dir
4392 mkdir conftest.dir
4393 # Copy depcomp to subdir because otherwise we won't find it if we're
4394 # using a relative directory.
4395 cp "$am_depcomp" conftest.dir
4396 cd conftest.dir
4397 # We will build objects and dependencies in a subdirectory because
4398 # it helps to detect inapplicable dependency modes. For instance
4399 # both Tru64's cc and ICC support -MD to output dependencies as a
4400 # side effect of compilation, but ICC will put the dependencies in
4401 # the current directory while Tru64 will put them in the object
4402 # directory.
4403 mkdir sub
4404
4405 am_cv_CC_dependencies_compiler_type=none
4406 if test "$am_compiler_list" = ""; then
4407 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4408 fi
4409 am__universal=false
4410 case " $depcc " in #(
4411 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4412 esac
4413
4414 for depmode in $am_compiler_list; do
4415 # Setup a source with many dependencies, because some compilers
4416 # like to wrap large dependency lists on column 80 (with \), and
4417 # we should not choose a depcomp mode which is confused by this.
4418 #
4419 # We need to recreate these files for each test, as the compiler may
4420 # overwrite some of them when testing with obscure command lines.
4421 # This happens at least with the AIX C compiler.
4422 : > sub/conftest.c
4423 for i in 1 2 3 4 5 6; do
4424 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4425 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4426 # Solaris 10 /bin/sh.
4427 echo '/* dummy */' > sub/conftst$i.h
4428 done
4429 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4430
4431 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4432 # mode. It turns out that the SunPro C++ compiler does not properly
4433 # handle '-M -o', and we need to detect this. Also, some Intel
4434 # versions had trouble with output in subdirs.
4435 am__obj=sub/conftest.${OBJEXT-o}
4436 am__minus_obj="-o $am__obj"
4437 case $depmode in
4438 gcc)
4439 # This depmode causes a compiler race in universal mode.
4440 test "$am__universal" = false || continue
4441 ;;
4442 nosideeffect)
4443 # After this tag, mechanisms are not by side-effect, so they'll
4444 # only be used when explicitly requested.
4445 if test "x$enable_dependency_tracking" = xyes; then
4446 continue
4447 else
4448 break
4449 fi
4450 ;;
4451 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4452 # This compiler won't grok '-c -o', but also, the minuso test has
4453 # not run yet. These depmodes are late enough in the game, and
4454 # so weak that their functioning should not be impacted.
4455 am__obj=conftest.${OBJEXT-o}
4456 am__minus_obj=
4457 ;;
4458 none) break ;;
4459 esac
4460 if depmode=$depmode \
4461 source=sub/conftest.c object=$am__obj \
4462 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4463 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4464 >/dev/null 2>conftest.err &&
4465 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4466 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4467 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4468 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4469 # icc doesn't choke on unknown options, it will just issue warnings
4470 # or remarks (even with -Werror). So we grep stderr for any message
4471 # that says an option was ignored or not supported.
4472 # When given -MP, icc 7.0 and 7.1 complain thusly:
4473 # icc: Command line warning: ignoring option '-M'; no argument required
4474 # The diagnosis changed in icc 8.0:
4475 # icc: Command line remark: option '-MP' not supported
4476 if (grep 'ignoring option' conftest.err ||
4477 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4478 am_cv_CC_dependencies_compiler_type=$depmode
4479 break
4480 fi
4481 fi
4482 done
4483
4484 cd ..
4485 rm -rf conftest.dir
4486 else
4487 am_cv_CC_dependencies_compiler_type=none
4488 fi
4489
4490 fi
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4492 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4493 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4494
4495 if
4496 test "x$enable_dependency_tracking" != xno \
4497 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4498 am__fastdepCC_TRUE=
4499 am__fastdepCC_FALSE='#'
4500 else
4501 am__fastdepCC_TRUE='#'
4502 am__fastdepCC_FALSE=
4503 fi
4504
4505
4506
4507 # Suppress warnings about --datarootdir
4508
4509
4510 # If we have gcc, and AC_PROG_CC changed the flags, then we know the
4511 # user did not specify any flags. Add warnings in this case.
4512 if test "$GCC" = "yes"; then
4513 if test "$CFLAGS" != "$SAVE_CFLAGS"; then
4514 STD_CWARNINGS="$STD_CWARNINGS -Wall -Werror -fno-strict-aliasing"
4515 fi
4516 fi
4517
4518 # We can have some flags to pass to bind configure
4519 BINDCONFIG=
4520 if test "$cross_compiling" = "yes"; then
4521 BINDCONFIG="--host=$host"
4522 fi
4523 # Pass CFLAGS and co. $ac_configure_args looks like "'arg1' 'arg2' ..."
4524 # and as there can be a space inside an argument some magic is required.
4525 # This sets $1 ... $N to my_configure_args, arg1 ... argN
4526 eval "set my_configure_args $ac_configure_args"
4527 # remove my_configure_args, i.e., the guard against empty $ac_configure_args
4528 shift
4529 # iterate on arguments and copying 'arg' when it begins by an upper case
4530 for a
4531 do
4532 case $a in
4533 [A-Z]*) BINDCONFIG="$BINDCONFIG '$a'" ;;
4534 esac
4535 done
4536
4537
4538 # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
4539 # parts of the IPv6 Advanced Socket API as a result. This is stupid
4540 # as it breaks how the two halves (Basic and Advanced) of the IPv6
4541 # Socket API were designed to be used but we have to live with it.
4542 # Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
4543
4544 ac_ext=c
4545 ac_cpp='$CPP $CPPFLAGS'
4546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4550 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4551 # On Suns, sometimes $CPP names a directory.
4552 if test -n "$CPP" && test -d "$CPP"; then
4553 CPP=
4554 fi
4555 if test -z "$CPP"; then
4556 if ${ac_cv_prog_CPP+:} false; then :
4557 $as_echo_n "(cached) " >&6
4558 else
4559 # Double quotes because CPP needs to be expanded
4560 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4561 do
4562 ac_preproc_ok=false
4563 for ac_c_preproc_warn_flag in '' yes
4564 do
4565 # Use a header file that comes with gcc, so configuring glibc
4566 # with a fresh cross-compiler works.
4567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4568 # <limits.h> exists even on freestanding compilers.
4569 # On the NeXT, cc -E runs the code through the compiler's parser,
4570 # not just through cpp. "Syntax error" is here to catch this case.
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4573 #ifdef __STDC__
4574 # include <limits.h>
4575 #else
4576 # include <assert.h>
4577 #endif
4578 Syntax error
4579 _ACEOF
4580 if ac_fn_c_try_cpp "$LINENO"; then :
4581
4582 else
4583 # Broken: fails on valid input.
4584 continue
4585 fi
4586 rm -f conftest.err conftest.i conftest.$ac_ext
4587
4588 # OK, works on sane cases. Now check whether nonexistent headers
4589 # can be detected and how.
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4592 #include <ac_nonexistent.h>
4593 _ACEOF
4594 if ac_fn_c_try_cpp "$LINENO"; then :
4595 # Broken: success on invalid input.
4596 continue
4597 else
4598 # Passes both tests.
4599 ac_preproc_ok=:
4600 break
4601 fi
4602 rm -f conftest.err conftest.i conftest.$ac_ext
4603
4604 done
4605 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4606 rm -f conftest.i conftest.err conftest.$ac_ext
4607 if $ac_preproc_ok; then :
4608 break
4609 fi
4610
4611 done
4612 ac_cv_prog_CPP=$CPP
4613
4614 fi
4615 CPP=$ac_cv_prog_CPP
4616 else
4617 ac_cv_prog_CPP=$CPP
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4620 $as_echo "$CPP" >&6; }
4621 ac_preproc_ok=false
4622 for ac_c_preproc_warn_flag in '' yes
4623 do
4624 # Use a header file that comes with gcc, so configuring glibc
4625 # with a fresh cross-compiler works.
4626 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4627 # <limits.h> exists even on freestanding compilers.
4628 # On the NeXT, cc -E runs the code through the compiler's parser,
4629 # not just through cpp. "Syntax error" is here to catch this case.
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4632 #ifdef __STDC__
4633 # include <limits.h>
4634 #else
4635 # include <assert.h>
4636 #endif
4637 Syntax error
4638 _ACEOF
4639 if ac_fn_c_try_cpp "$LINENO"; then :
4640
4641 else
4642 # Broken: fails on valid input.
4643 continue
4644 fi
4645 rm -f conftest.err conftest.i conftest.$ac_ext
4646
4647 # OK, works on sane cases. Now check whether nonexistent headers
4648 # can be detected and how.
4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650 /* end confdefs.h. */
4651 #include <ac_nonexistent.h>
4652 _ACEOF
4653 if ac_fn_c_try_cpp "$LINENO"; then :
4654 # Broken: success on invalid input.
4655 continue
4656 else
4657 # Passes both tests.
4658 ac_preproc_ok=:
4659 break
4660 fi
4661 rm -f conftest.err conftest.i conftest.$ac_ext
4662
4663 done
4664 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4665 rm -f conftest.i conftest.err conftest.$ac_ext
4666 if $ac_preproc_ok; then :
4667
4668 else
4669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4671 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4672 See \`config.log' for more details" "$LINENO" 5; }
4673 fi
4674
4675 ac_ext=c
4676 ac_cpp='$CPP $CPPFLAGS'
4677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4680
4681
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4683 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4684 if ${ac_cv_path_GREP+:} false; then :
4685 $as_echo_n "(cached) " >&6
4686 else
4687 if test -z "$GREP"; then
4688 ac_path_GREP_found=false
4689 # Loop through the user's path and test for each of PROGNAME-LIST
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4692 do
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_prog in grep ggrep; do
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4698 as_fn_executable_p "$ac_path_GREP" || continue
4699 # Check for GNU ac_path_GREP and select it if it is found.
4700 # Check for GNU $ac_path_GREP
4701 case `"$ac_path_GREP" --version 2>&1` in
4702 *GNU*)
4703 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4704 *)
4705 ac_count=0
4706 $as_echo_n 0123456789 >"conftest.in"
4707 while :
4708 do
4709 cat "conftest.in" "conftest.in" >"conftest.tmp"
4710 mv "conftest.tmp" "conftest.in"
4711 cp "conftest.in" "conftest.nl"
4712 $as_echo 'GREP' >> "conftest.nl"
4713 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4714 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4715 as_fn_arith $ac_count + 1 && ac_count=$as_val
4716 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4717 # Best one so far, save it but keep looking for a better one
4718 ac_cv_path_GREP="$ac_path_GREP"
4719 ac_path_GREP_max=$ac_count
4720 fi
4721 # 10*(2^10) chars as input seems more than enough
4722 test $ac_count -gt 10 && break
4723 done
4724 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4725 esac
4726
4727 $ac_path_GREP_found && break 3
4728 done
4729 done
4730 done
4731 IFS=$as_save_IFS
4732 if test -z "$ac_cv_path_GREP"; then
4733 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4734 fi
4735 else
4736 ac_cv_path_GREP=$GREP
4737 fi
4738
4739 fi
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4741 $as_echo "$ac_cv_path_GREP" >&6; }
4742 GREP="$ac_cv_path_GREP"
4743
4744
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4746 $as_echo_n "checking for egrep... " >&6; }
4747 if ${ac_cv_path_EGREP+:} false; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4751 then ac_cv_path_EGREP="$GREP -E"
4752 else
4753 if test -z "$EGREP"; then
4754 ac_path_EGREP_found=false
4755 # Loop through the user's path and test for each of PROGNAME-LIST
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4758 do
4759 IFS=$as_save_IFS
4760 test -z "$as_dir" && as_dir=.
4761 for ac_prog in egrep; do
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4764 as_fn_executable_p "$ac_path_EGREP" || continue
4765 # Check for GNU ac_path_EGREP and select it if it is found.
4766 # Check for GNU $ac_path_EGREP
4767 case `"$ac_path_EGREP" --version 2>&1` in
4768 *GNU*)
4769 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4770 *)
4771 ac_count=0
4772 $as_echo_n 0123456789 >"conftest.in"
4773 while :
4774 do
4775 cat "conftest.in" "conftest.in" >"conftest.tmp"
4776 mv "conftest.tmp" "conftest.in"
4777 cp "conftest.in" "conftest.nl"
4778 $as_echo 'EGREP' >> "conftest.nl"
4779 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4780 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4781 as_fn_arith $ac_count + 1 && ac_count=$as_val
4782 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4783 # Best one so far, save it but keep looking for a better one
4784 ac_cv_path_EGREP="$ac_path_EGREP"
4785 ac_path_EGREP_max=$ac_count
4786 fi
4787 # 10*(2^10) chars as input seems more than enough
4788 test $ac_count -gt 10 && break
4789 done
4790 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4791 esac
4792
4793 $ac_path_EGREP_found && break 3
4794 done
4795 done
4796 done
4797 IFS=$as_save_IFS
4798 if test -z "$ac_cv_path_EGREP"; then
4799 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4800 fi
4801 else
4802 ac_cv_path_EGREP=$EGREP
4803 fi
4804
4805 fi
4806 fi
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4808 $as_echo "$ac_cv_path_EGREP" >&6; }
4809 EGREP="$ac_cv_path_EGREP"
4810
4811
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4813 $as_echo_n "checking for ANSI C header files... " >&6; }
4814 if ${ac_cv_header_stdc+:} false; then :
4815 $as_echo_n "(cached) " >&6
4816 else
4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4819 #include <stdlib.h>
4820 #include <stdarg.h>
4821 #include <string.h>
4822 #include <float.h>
4823
4824 int
4825 main ()
4826 {
4827
4828 ;
4829 return 0;
4830 }
4831 _ACEOF
4832 if ac_fn_c_try_compile "$LINENO"; then :
4833 ac_cv_header_stdc=yes
4834 else
4835 ac_cv_header_stdc=no
4836 fi
4837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4838
4839 if test $ac_cv_header_stdc = yes; then
4840 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h. */
4843 #include <string.h>
4844
4845 _ACEOF
4846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4847 $EGREP "memchr" >/dev/null 2>&1; then :
4848
4849 else
4850 ac_cv_header_stdc=no
4851 fi
4852 rm -f conftest*
4853
4854 fi
4855
4856 if test $ac_cv_header_stdc = yes; then
4857 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859 /* end confdefs.h. */
4860 #include <stdlib.h>
4861
4862 _ACEOF
4863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4864 $EGREP "free" >/dev/null 2>&1; then :
4865
4866 else
4867 ac_cv_header_stdc=no
4868 fi
4869 rm -f conftest*
4870
4871 fi
4872
4873 if test $ac_cv_header_stdc = yes; then
4874 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4875 if test "$cross_compiling" = yes; then :
4876 :
4877 else
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880 #include <ctype.h>
4881 #include <stdlib.h>
4882 #if ((' ' & 0x0FF) == 0x020)
4883 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4884 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4885 #else
4886 # define ISLOWER(c) \
4887 (('a' <= (c) && (c) <= 'i') \
4888 || ('j' <= (c) && (c) <= 'r') \
4889 || ('s' <= (c) && (c) <= 'z'))
4890 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4891 #endif
4892
4893 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4894 int
4895 main ()
4896 {
4897 int i;
4898 for (i = 0; i < 256; i++)
4899 if (XOR (islower (i), ISLOWER (i))
4900 || toupper (i) != TOUPPER (i))
4901 return 2;
4902 return 0;
4903 }
4904 _ACEOF
4905 if ac_fn_c_try_run "$LINENO"; then :
4906
4907 else
4908 ac_cv_header_stdc=no
4909 fi
4910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4911 conftest.$ac_objext conftest.beam conftest.$ac_ext
4912 fi
4913
4914 fi
4915 fi
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4917 $as_echo "$ac_cv_header_stdc" >&6; }
4918 if test $ac_cv_header_stdc = yes; then
4919
4920 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4921
4922 fi
4923
4924 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4925 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4926 inttypes.h stdint.h unistd.h
4927 do :
4928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4929 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4930 "
4931 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4932 cat >>confdefs.h <<_ACEOF
4933 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4934 _ACEOF
4935
4936 fi
4937
4938 done
4939
4940
4941
4942 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4943 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4944 MINIX=yes
4945 else
4946 MINIX=
4947 fi
4948
4949
4950 if test "$MINIX" = yes; then
4951
4952 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4953
4954
4955 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4956
4957
4958 $as_echo "#define _MINIX 1" >>confdefs.h
4959
4960 fi
4961
4962
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4964 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4965 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h. */
4970
4971 # define __EXTENSIONS__ 1
4972 $ac_includes_default
4973 int
4974 main ()
4975 {
4976
4977 ;
4978 return 0;
4979 }
4980 _ACEOF
4981 if ac_fn_c_try_compile "$LINENO"; then :
4982 ac_cv_safe_to_define___extensions__=yes
4983 else
4984 ac_cv_safe_to_define___extensions__=no
4985 fi
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 fi
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4989 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4990 test $ac_cv_safe_to_define___extensions__ = yes &&
4991 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4992
4993 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4994
4995 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4996
4997 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4998
4999 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5000
5001
5002
5003 if test -n "$ac_tool_prefix"; then
5004 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5005 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007 $as_echo_n "checking for $ac_word... " >&6; }
5008 if ${ac_cv_prog_RANLIB+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 if test -n "$RANLIB"; then
5012 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5016 do
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5024 fi
5025 done
5026 done
5027 IFS=$as_save_IFS
5028
5029 fi
5030 fi
5031 RANLIB=$ac_cv_prog_RANLIB
5032 if test -n "$RANLIB"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5034 $as_echo "$RANLIB" >&6; }
5035 else
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5038 fi
5039
5040
5041 fi
5042 if test -z "$ac_cv_prog_RANLIB"; then
5043 ac_ct_RANLIB=$RANLIB
5044 # Extract the first word of "ranlib", so it can be a program name with args.
5045 set dummy ranlib; ac_word=$2
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 if test -n "$ac_ct_RANLIB"; then
5052 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5053 else
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5056 do
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5061 ac_cv_prog_ac_ct_RANLIB="ranlib"
5062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5064 fi
5065 done
5066 done
5067 IFS=$as_save_IFS
5068
5069 fi
5070 fi
5071 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5072 if test -n "$ac_ct_RANLIB"; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5074 $as_echo "$ac_ct_RANLIB" >&6; }
5075 else
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5078 fi
5079
5080 if test "x$ac_ct_RANLIB" = x; then
5081 RANLIB=":"
5082 else
5083 case $cross_compiling:$ac_tool_warned in
5084 yes:)
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5087 ac_tool_warned=yes ;;
5088 esac
5089 RANLIB=$ac_ct_RANLIB
5090 fi
5091 else
5092 RANLIB="$ac_cv_prog_RANLIB"
5093 fi
5094
5095
5096 # Extract the first word of "ar", so it can be a program name with args.
5097 set dummy ar; ac_word=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if ${ac_cv_path_AR+:} false; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 case $AR in
5104 [\\/]* | ?:[\\/]*)
5105 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5106 ;;
5107 *)
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5118 fi
5119 done
5120 done
5121 IFS=$as_save_IFS
5122
5123 ;;
5124 esac
5125 fi
5126 AR=$ac_cv_path_AR
5127 if test -n "$AR"; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5129 $as_echo "$AR" >&6; }
5130 else
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5133 fi
5134
5135
5136
5137
5138 if test "X$AR" = "X"; then
5139 as_fn_error $? "
5140 ar program not found. Please fix your PATH to include the directory in
5141 which ar resides, or set AR in the environment with the full path to ar." "$LINENO" 5
5142 fi
5143
5144 ac_config_headers="$ac_config_headers includes/config.h"
5145
5146
5147 # we sometimes need to know byte order for building packets
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5149 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5150 if ${ac_cv_c_bigendian+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 ac_cv_c_bigendian=unknown
5154 # See if we're dealing with a universal compiler.
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5157 #ifndef __APPLE_CC__
5158 not a universal capable compiler
5159 #endif
5160 typedef int dummy;
5161
5162 _ACEOF
5163 if ac_fn_c_try_compile "$LINENO"; then :
5164
5165 # Check for potential -arch flags. It is not universal unless
5166 # there are at least two -arch flags with different values.
5167 ac_arch=
5168 ac_prev=
5169 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5170 if test -n "$ac_prev"; then
5171 case $ac_word in
5172 i?86 | x86_64 | ppc | ppc64)
5173 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5174 ac_arch=$ac_word
5175 else
5176 ac_cv_c_bigendian=universal
5177 break
5178 fi
5179 ;;
5180 esac
5181 ac_prev=
5182 elif test "x$ac_word" = "x-arch"; then
5183 ac_prev=arch
5184 fi
5185 done
5186 fi
5187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188 if test $ac_cv_c_bigendian = unknown; then
5189 # See if sys/param.h defines the BYTE_ORDER macro.
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5192 #include <sys/types.h>
5193 #include <sys/param.h>
5194
5195 int
5196 main ()
5197 {
5198 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5199 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5200 && LITTLE_ENDIAN)
5201 bogus endian macros
5202 #endif
5203
5204 ;
5205 return 0;
5206 }
5207 _ACEOF
5208 if ac_fn_c_try_compile "$LINENO"; then :
5209 # It does; now see whether it defined to BIG_ENDIAN or not.
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5212 #include <sys/types.h>
5213 #include <sys/param.h>
5214
5215 int
5216 main ()
5217 {
5218 #if BYTE_ORDER != BIG_ENDIAN
5219 not big endian
5220 #endif
5221
5222 ;
5223 return 0;
5224 }
5225 _ACEOF
5226 if ac_fn_c_try_compile "$LINENO"; then :
5227 ac_cv_c_bigendian=yes
5228 else
5229 ac_cv_c_bigendian=no
5230 fi
5231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5232 fi
5233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5234 fi
5235 if test $ac_cv_c_bigendian = unknown; then
5236 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239 #include <limits.h>
5240
5241 int
5242 main ()
5243 {
5244 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5245 bogus endian macros
5246 #endif
5247
5248 ;
5249 return 0;
5250 }
5251 _ACEOF
5252 if ac_fn_c_try_compile "$LINENO"; then :
5253 # It does; now see whether it defined to _BIG_ENDIAN or not.
5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5256 #include <limits.h>
5257
5258 int
5259 main ()
5260 {
5261 #ifndef _BIG_ENDIAN
5262 not big endian
5263 #endif
5264
5265 ;
5266 return 0;
5267 }
5268 _ACEOF
5269 if ac_fn_c_try_compile "$LINENO"; then :
5270 ac_cv_c_bigendian=yes
5271 else
5272 ac_cv_c_bigendian=no
5273 fi
5274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275 fi
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 fi
5278 if test $ac_cv_c_bigendian = unknown; then
5279 # Compile a test program.
5280 if test "$cross_compiling" = yes; then :
5281 # Try to guess by grepping values from an object file.
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5284 short int ascii_mm[] =
5285 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5286 short int ascii_ii[] =
5287 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5288 int use_ascii (int i) {
5289 return ascii_mm[i] + ascii_ii[i];
5290 }
5291 short int ebcdic_ii[] =
5292 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5293 short int ebcdic_mm[] =
5294 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5295 int use_ebcdic (int i) {
5296 return ebcdic_mm[i] + ebcdic_ii[i];
5297 }
5298 extern int foo;
5299
5300 int
5301 main ()
5302 {
5303 return use_ascii (foo) == use_ebcdic (foo);
5304 ;
5305 return 0;
5306 }
5307 _ACEOF
5308 if ac_fn_c_try_compile "$LINENO"; then :
5309 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5310 ac_cv_c_bigendian=yes
5311 fi
5312 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5313 if test "$ac_cv_c_bigendian" = unknown; then
5314 ac_cv_c_bigendian=no
5315 else
5316 # finding both strings is unlikely to happen, but who knows?
5317 ac_cv_c_bigendian=unknown
5318 fi
5319 fi
5320 fi
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322 else
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5325 $ac_includes_default
5326 int
5327 main ()
5328 {
5329
5330 /* Are we little or big endian? From Harbison&Steele. */
5331 union
5332 {
5333 long int l;
5334 char c[sizeof (long int)];
5335 } u;
5336 u.l = 1;
5337 return u.c[sizeof (long int) - 1] == 1;
5338
5339 ;
5340 return 0;
5341 }
5342 _ACEOF
5343 if ac_fn_c_try_run "$LINENO"; then :
5344 ac_cv_c_bigendian=no
5345 else
5346 ac_cv_c_bigendian=yes
5347 fi
5348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5349 conftest.$ac_objext conftest.beam conftest.$ac_ext
5350 fi
5351
5352 fi
5353 fi
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5355 $as_echo "$ac_cv_c_bigendian" >&6; }
5356 case $ac_cv_c_bigendian in #(
5357 yes)
5358 byte_order=BIG_ENDIAN
5359 ;; #(
5360 no)
5361 byte_order=LITTLE_ENDIAN
5362 ;; #(
5363 universal)
5364
5365 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5366
5367 ;; #(
5368 *)
5369 as_fn_error $? "unknown endianness
5370 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5371 esac
5372
5373
5374 cat >>confdefs.h <<_ACEOF
5375 #define DHCP_BYTE_ORDER $byte_order
5376 _ACEOF
5377
5378
5379 # Optional compile-time DEBUGging.
5380 # Check whether --enable-debug was given.
5381 if test "${enable_debug+set}" = set; then :
5382 enableval=$enable_debug; case "${enableval}" in
5383 yes) enable_debug=yes
5384
5385 $as_echo "#define DEBUG 1" >>confdefs.h
5386
5387 # Just override CFLAGS totally to remove optimization.
5388 CFLAGS="-g";;
5389 no) enable_debug=no ;;
5390 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
5391 esac
5392 else
5393 enable_debug=no
5394 fi
5395
5396
5397 # XXX: there are actually quite a lot more DEBUG_ features we could enable,
5398 # but I don't want to pollute the --help space.
5399 #
5400 #/* #define DEBUG_TOKENS */
5401 #/* #define DEBUG_PACKET */
5402 #/* #define DEBUG_EXPRESSIONS */
5403 #/* #define DEBUG_FIND_LEASE */
5404 #/* #define DEBUG_EXPRESSION_PARSE */
5405 #/* #define DEBUG_CLASS_MATCHING */
5406 #/* #define DEBUG_MEMORY_LEAKAGE */
5407 #/* #define DEBUG_MALLOC_POOL */
5408 #/* #define DEBUG_LEASE_STATE_TRANSITIONS */
5409 #/* #define DEBUG_RC_HISTORY */
5410 #/* #define DEBUG_RC_HISTORY_EXHAUSTIVELY */
5411 #/* #define RC_HISTORY_MAX 10240 */
5412 #/* #define POINTER_DEBUG */
5413 #/* #define DEBUG_FAILOVER_MESSAGES */
5414 #/* #define DEBUG_FAILOVER_TIMING */
5415 #/* #define DEBUG_DUMP_ALL_LEASES */
5416
5417 # Failover optional compile-time feature.
5418 # Check whether --enable-failover was given.
5419 if test "${enable_failover+set}" = set; then :
5420 enableval=$enable_failover;
5421 fi
5422
5423 # Failover is on by default, so define if it is not explicitly disabled.
5424 if test "$enable_failover" != "no"; then
5425 enable_failover="yes"
5426
5427 $as_echo "#define FAILOVER_PROTOCOL 1" >>confdefs.h
5428
5429 fi
5430
5431 # execute() support.
5432 # Check whether --enable-execute was given.
5433 if test "${enable_execute+set}" = set; then :
5434 enableval=$enable_execute;
5435 fi
5436
5437 # execute() is on by default, so define if it is not explicitly disabled.
5438 if test "$enable_execute" != "no" ; then
5439 enable_execute="yes"
5440
5441 $as_echo "#define ENABLE_EXECUTE 1" >>confdefs.h
5442
5443 fi
5444
5445 # Server tracing support.
5446 # Check whether --enable-tracing was given.
5447 if test "${enable_tracing+set}" = set; then :
5448 enableval=$enable_tracing;
5449 fi
5450
5451 # tracing is on by default, so define if it is not explicitly disabled.
5452 if test "$enable_tracing" != "no" ; then
5453
5454 $as_echo "#define TRACING 1" >>confdefs.h
5455
5456 fi
5457
5458 # Delayed-ack feature support.
5459 # Check whether --enable-delayed_ack was given.
5460 if test "${enable_delayed_ack+set}" = set; then :
5461 enableval=$enable_delayed_ack;
5462 fi
5463
5464 if test "$enable_delayed_ack" != "no"; then
5465 enable_delayed_ack="yes"
5466
5467 $as_echo "#define DELAYED_ACK 1" >>confdefs.h
5468
5469 fi
5470
5471 # DHCPv6 optional compile-time feature.
5472 # Check whether --enable-dhcpv6 was given.
5473 if test "${enable_dhcpv6+set}" = set; then :
5474 enableval=$enable_dhcpv6;
5475 fi
5476
5477 # DHCPv6 is on by default, so define if it is not explicitly disabled.
5478 if test "$enable_dhcpv6" != "no"; then
5479 enable_dhcpv6="yes"
5480
5481 $as_echo "#define DHCPv6 1" >>confdefs.h
5482
5483 fi
5484
5485 # DHCPv4o6 optional compile-time feature.
5486 # Check whether --enable-dhcpv4o6 was given.
5487 if test "${enable_dhcpv4o6+set}" = set; then :
5488 enableval=$enable_dhcpv4o6;
5489 fi
5490
5491 # DHCPv4o6 is off by default, so define if it is explicitly enabled.
5492 if test "$enable_dhcpv4o6" = "yes"; then
5493 # DHCPv4o6 requires DHCPv6
5494 if test "$enable_dhcpv6" = "no"; then
5495 as_fn_error $? "dhcpv4o6 requires dhcpv6" "$LINENO" 5
5496 fi
5497
5498 $as_echo "#define DHCP4o6 1" >>confdefs.h
5499
5500 else
5501 # so we can report below
5502 enable_dhcpv4o6="no"
5503 fi
5504
5505 # Relay port (draft-ietf-dhc-relay-port-10.txt) optional compile-time feature.
5506 # Check whether --enable-relay-port was given.
5507 if test "${enable_relay_port+set}" = set; then :
5508 enableval=$enable_relay_port;
5509 fi
5510
5511 # Relay port is off by default (for now)
5512 if test "$enable_relay_port" = "yes"; then
5513
5514 $as_echo "#define RELAY_PORT 1" >>confdefs.h
5515
5516 else
5517 # so we can report below
5518 enable_relay_port="no"
5519 fi
5520
5521 # PARANOIA is off by default (until we can test it with all features)
5522 # Check whether --enable-paranoia was given.
5523 if test "${enable_paranoia+set}" = set; then :
5524 enableval=$enable_paranoia;
5525 fi
5526
5527 # Check whether --enable-early_chroot was given.
5528 if test "${enable_early_chroot+set}" = set; then :
5529 enableval=$enable_early_chroot;
5530 fi
5531
5532 # If someone enables early chroot, but does not enable paranoia, do so for
5533 # them.
5534 if test "$enable_paranoia" != "yes" && \
5535 test "$enable_early_chroot" = "yes" ; then
5536 enable_paranoia="yes"
5537 fi
5538
5539 if test "$enable_paranoia" = "yes" ; then
5540
5541 $as_echo "#define PARANOIA 1" >>confdefs.h
5542
5543 fi
5544 if test "$enable_early_chroot" = "yes" ; then
5545
5546 $as_echo "#define EARLY_CHROOT 1" >>confdefs.h
5547
5548 fi
5549
5550 # Check whether --enable-ipv4_pktinfo was given.
5551 if test "${enable_ipv4_pktinfo+set}" = set; then :
5552 enableval=$enable_ipv4_pktinfo;
5553 fi
5554
5555
5556 if test "$enable_ipv4_pktinfo" = "yes"; then
5557
5558 $as_echo "#define USE_V4_PKTINFO 1" >>confdefs.h
5559
5560 fi
5561
5562 # Check whether --enable-use_sockets was given.
5563 if test "${enable_use_sockets+set}" = set; then :
5564 enableval=$enable_use_sockets;
5565 fi
5566
5567
5568 if test "$enable_use_sockets" = "yes"; then
5569
5570 $as_echo "#define USE_SOCKETS 1" >>confdefs.h
5571
5572 fi
5573
5574 # Include the PID in the log messages. This is useful when there may
5575 # be multiple instances of a program.
5576 # This is off by default
5577 # Check whether --enable-log_pid was given.
5578 if test "${enable_log_pid+set}" = set; then :
5579 enableval=$enable_log_pid;
5580 fi
5581
5582 if test "$enable_log_pid" = "yes" ; then
5583
5584 $as_echo "#define USE_LOG_PID 1" >>confdefs.h
5585
5586 fi
5587
5588 # Allow for binary search when inserting v4 leases into queues
5589 # Check whether --enable-binary_leases was given.
5590 if test "${enable_binary_leases+set}" = set; then :
5591 enableval=$enable_binary_leases;
5592 fi
5593
5594 # binary_leases is off by default.
5595 if test "$enable_binary_leases" = "yes"; then
5596
5597 $as_echo "#define BINARY_LEASES 1" >>confdefs.h
5598
5599 else
5600 enable_binary_leases="no"
5601 fi
5602
5603 # Testing section
5604
5605 # Bind Makefile needs to know ATF is not included.
5606 if test "foo" = "barr"; then
5607 BIND_ATF_TRUE=
5608 BIND_ATF_FALSE='#'
5609 else
5610 BIND_ATF_TRUE='#'
5611 BIND_ATF_FALSE=
5612 fi
5613
5614
5615 DISTCHECK_ATF_CONFIGURE_FLAG=
5616 atf_path="no"
5617
5618 # Check whether --with-atf was given.
5619 if test "${with_atf+set}" = set; then :
5620 withval=$with_atf; atf_path="$withval"
5621 fi
5622
5623 if test "$atf_path" != "no" ; then
5624 DISTCHECK_ATF_CONFIGURE_FLAG="--with-atf=$atf_path"
5625 # Config path for pkg-config
5626 atf_pcp=""
5627 if test "$atf_path" != "yes" ; then
5628 if test -f $atf_path/lib/pkgconfig/atf-c.pc ; then
5629 atf_pcp=$atf_path/lib/pkgconfig
5630 elif test -f $atf_path/lib64/pkgconfig/atf-c.pc ; then
5631 atf_pcp=$atf_path/lib64/pkgconfig
5632 fi
5633 else
5634 # Not specified, try some common paths
5635 atf_dirs="/usr /usr/local /usr/pkg /opt /opt/local"
5636 for d in $atf_dirs
5637 do
5638 if test -f $d/lib/pkgconfig/atf-c.pc ; then
5639 atf_pcp=$d/lib/pkgconfig
5640 atf_path=$d
5641 elif test -f $d/lib64/pkgconfig/atf-c.pc ; then
5642 atf_pcp=$d/lib64/pkgconfig
5643 atf_path=$d
5644 fi
5645 done
5646 fi
5647
5648 if test "$atf_pcp" = "" ; then
5649 as_fn_error $? "Unable to find atf files in location specified" "$LINENO" 5
5650 else
5651 # Extract the first word of "pkg-config", so it can be a program name with args.
5652 set dummy pkg-config; ac_word=$2
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654 $as_echo_n "checking for $ac_word... " >&6; }
5655 if ${ac_cv_prog_pkgcfg_found+:} false; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 if test -n "$pkgcfg_found"; then
5659 ac_cv_prog_pkgcfg_found="$pkgcfg_found" # Let the user override the test.
5660 else
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5663 do
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5668 ac_cv_prog_pkgcfg_found="pkg-config"
5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5671 fi
5672 done
5673 done
5674 IFS=$as_save_IFS
5675
5676 fi
5677 fi
5678 pkgcfg_found=$ac_cv_prog_pkgcfg_found
5679 if test -n "$pkgcfg_found"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgcfg_found" >&5
5681 $as_echo "$pkgcfg_found" >&6; }
5682 else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5685 fi
5686
5687
5688 if test "$pkgcfg_found" = ""; then
5689 as_fn_error $? "Could not locate ATF, pkg-config not installed" "$LINENO" 5
5690 fi
5691 ATF_CFLAGS="`PKG_CONFIG_PATH=$atf_pcp pkg-config --cflags atf-c` -DUNIT_TEST"
5692 ATF_LDFLAGS="`PKG_CONFIG_PATH=$atf_pcp pkg-config --libs atf-c`"
5693 if test -f $atf_pcp/atf-sh.pc ; then
5694 ATF_BIN="`PKG_CONFIG_PATH=$atf_pcp pkg-config --variable=exec_prefix atf-sh`/bin"
5695 else
5696 # older versions don't have atf-sh, try usual place
5697 ATF_BIN=$atf_path/bin
5698 fi
5699
5700 UNITTESTS=tests
5701
5702
5703
5704
5705
5706 fi
5707 fi
5708
5709 if test "$atf_pcp" != ""; then
5710 HAVE_ATF_TRUE=
5711 HAVE_ATF_FALSE='#'
5712 else
5713 HAVE_ATF_TRUE='#'
5714 HAVE_ATF_FALSE=
5715 fi
5716
5717 if test -z "$HAVE_ATF_TRUE"; then :
5718
5719 $as_echo "#define HAVE_ATF 1" >>confdefs.h
5720
5721 fi
5722
5723
5724 ###
5725 ### Path fun. Older versions of DHCP were installed in /usr/sbin, so we
5726 ### need to look there and potentially overwrite by default (but not if
5727 ### the user configures an alternate value). LOCALSTATEDIR is totally
5728 ### braindead. No one uses /usr/local/var/db/ nor /usr/local/var/run, and
5729 ### they would be insane for suggesting it. We need to look in /var/for
5730 ### 'db' and 'state/dhcp' for db files, and /var/run for pid files by
5731 ### default.
5732 ###
5733 if test "x$prefix" = xNONE; then
5734 $as_echo_n "checking for prefix by " >&6
5735 # Extract the first word of "dhcpd", so it can be a program name with args.
5736 set dummy dhcpd; ac_word=$2
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 $as_echo_n "checking for $ac_word... " >&6; }
5739 if ${ac_cv_path_ac_prefix_program+:} false; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 case $ac_prefix_program in
5743 [\\/]* | ?:[\\/]*)
5744 ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
5745 ;;
5746 *)
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 for as_dir in $PATH
5749 do
5750 IFS=$as_save_IFS
5751 test -z "$as_dir" && as_dir=.
5752 for ac_exec_ext in '' $ac_executable_extensions; do
5753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5754 ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
5755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5756 break 2
5757 fi
5758 done
5759 done
5760 IFS=$as_save_IFS
5761
5762 ;;
5763 esac
5764 fi
5765 ac_prefix_program=$ac_cv_path_ac_prefix_program
5766 if test -n "$ac_prefix_program"; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
5768 $as_echo "$ac_prefix_program" >&6; }
5769 else
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5772 fi
5773
5774
5775 if test -n "$ac_prefix_program"; then
5776 prefix=`$as_dirname -- "$ac_prefix_program" ||
5777 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5778 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
5779 X"$ac_prefix_program" : 'X\(//\)$' \| \
5780 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
5781 $as_echo X"$ac_prefix_program" |
5782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5783 s//\1/
5784 q
5785 }
5786 /^X\(\/\/\)[^/].*/{
5787 s//\1/
5788 q
5789 }
5790 /^X\(\/\/\)$/{
5791 s//\1/
5792 q
5793 }
5794 /^X\(\/\).*/{
5795 s//\1/
5796 q
5797 }
5798 s/.*/./; q'`
5799 prefix=`$as_dirname -- "$prefix" ||
5800 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5801 X"$prefix" : 'X\(//\)[^/]' \| \
5802 X"$prefix" : 'X\(//\)$' \| \
5803 X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
5804 $as_echo X"$prefix" |
5805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5806 s//\1/
5807 q
5808 }
5809 /^X\(\/\/\)[^/].*/{
5810 s//\1/
5811 q
5812 }
5813 /^X\(\/\/\)$/{
5814 s//\1/
5815 q
5816 }
5817 /^X\(\/\).*/{
5818 s//\1/
5819 q
5820 }
5821 s/.*/./; q'`
5822 fi
5823 fi
5824
5825
5826 # XXX - isn't there SOME WAY to default autoconf to /var instead of
5827 # /usr/local/var/no/one/has/this/please/stop/trying?
5828 case "$localstatedir" in
5829 '${prefix}/var')
5830 localstatedir=/var
5831 ;;
5832 esac
5833
5834 # Default server configuration file.
5835
5836 # Check whether --with-srv-conf-file was given.
5837 if test "${with_srv_conf_file+set}" = set; then :
5838 withval=$with_srv_conf_file;
5839 cat >>confdefs.h <<_ACEOF
5840 #define _PATH_DHCPD_CONF "$withval"
5841 _ACEOF
5842
5843 fi
5844
5845
5846 # Allow specification of alternate state files
5847
5848 # Check whether --with-srv-lease-file was given.
5849 if test "${with_srv_lease_file+set}" = set; then :
5850 withval=$with_srv_lease_file;
5851 cat >>confdefs.h <<_ACEOF
5852 #define _PATH_DHCPD_DB "$withval"
5853 _ACEOF
5854
5855 fi
5856
5857
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhcpd.leases location" >&5
5859 $as_echo_n "checking for dhcpd.leases location... " >&6; }
5860 if [ "x$with_srv_lease_file" = "x" ] ; then
5861 if [ -d "${localstatedir}/db" ] ; then
5862 with_srv_lease_file="${localstatedir}/db/dhcpd.leases"
5863 elif [ -d "${localstatedir}/state" ] ; then
5864 if [ -d "${localstatedir}/state/dhcp" ] ; then
5865 with_srv_lease_file="${localstatedir}/state/dhcp/dhcpd.leases"
5866 else
5867 with_srv_lease_file="${localstatedir}/state/dhcpd.leases"
5868 fi
5869 elif [ -d "${localstatedir}/lib" ] ; then
5870 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5871 with_srv_lease_file="${localstatedir}/lib/dhcp/dhcpd.leases"
5872 else
5873 with_srv_lease_file="${localstatedir}/lib/dhcpd.leases"
5874 fi
5875 elif [ -d "${localstatedir}/etc" ] ; then
5876 with_srv_lease_file="${localstatedir}/etc/dhcpd.leases"
5877 else
5878 with_srv_lease_file="/etc/dhcpd.leases"
5879 fi
5880 fi
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_srv_lease_file" >&5
5882 $as_echo "$with_srv_lease_file" >&6; }
5883
5884
5885 # Check whether --with-srv6-lease-file was given.
5886 if test "${with_srv6_lease_file+set}" = set; then :
5887 withval=$with_srv6_lease_file;
5888 cat >>confdefs.h <<_ACEOF
5889 #define _PATH_DHCPD6_DB "$withval"
5890 _ACEOF
5891
5892 fi
5893
5894
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhcpd6.leases location" >&5
5896 $as_echo_n "checking for dhcpd6.leases location... " >&6; }
5897 if [ "x$with_srv6_lease_file" = "x" ] ; then
5898 if [ -d "${localstatedir}/db" ] ; then
5899 with_srv6_lease_file="${localstatedir}/db/dhcpd6.leases"
5900 elif [ -d "${localstatedir}/state" ] ; then
5901 if [ -d "${localstatedir}/state/dhcp" ] ; then
5902 with_srv6_lease_file="${localstatedir}/state/dhcp/dhcpd6.leases"
5903 else
5904 with_srv6_lease_file="${localstatedir}/state/dhcpd6.leases"
5905 fi
5906 elif [ -d "${localstatedir}/lib" ] ; then
5907 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5908 with_srv6_lease_file="${localstatedir}/lib/dhcp/dhcpd6.leases"
5909 else
5910 with_srv6_lease_file="${localstatedir}/lib/dhcpd6.leases"
5911 fi
5912 elif [ -d "${localstatedir}/etc" ] ; then
5913 with_srv6_lease_file="${localstatedir}/etc/dhcpd6.leases"
5914 else
5915 with_srv6_lease_file="/etc/dhcpd6.leases"
5916 fi
5917 fi
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_srv6_lease_file" >&5
5919 $as_echo "$with_srv6_lease_file" >&6; }
5920
5921
5922 # Check whether --with-cli-lease-file was given.
5923 if test "${with_cli_lease_file+set}" = set; then :
5924 withval=$with_cli_lease_file;
5925 cat >>confdefs.h <<_ACEOF
5926 #define _PATH_DHCLIENT_DB "$withval"
5927 _ACEOF
5928
5929 fi
5930
5931
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhclient.leases location" >&5
5933 $as_echo_n "checking for dhclient.leases location... " >&6; }
5934 if [ "x$with_cli_lease_file" = "x" ] ; then
5935 if [ -d "${localstatedir}/db" ] ; then
5936 with_cli_lease_file="${localstatedir}/db/dhclient.leases"
5937 elif [ -d "${localstatedir}/state" ] ; then
5938 if [ -d "${localstatedir}/state/dhcp" ] ; then
5939 with_cli_lease_file="${localstatedir}/state/dhcp/dhclient.leases"
5940 else
5941 with_cli_lease_file="${localstatedir}/state/dhclient.leases"
5942 fi
5943 elif [ -d "${localstatedir}/lib" ] ; then
5944 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5945 with_cli_lease_file="${localstatedir}/lib/dhcp/dhclient.leases"
5946 else
5947 with_cli_lease_file="${localstatedir}/lib/dhclient.leases"
5948 fi
5949 elif [ -d "${localstatedir}/etc" ] ; then
5950 with_cli_lease_file="${localstatedir}/etc/dhclient.leases"
5951 else
5952 with_cli_lease_file="/etc/dhclient.leases"
5953 fi
5954 fi
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cli_lease_file" >&5
5956 $as_echo "$with_cli_lease_file" >&6; }
5957
5958
5959 # Check whether --with-cli6-lease-file was given.
5960 if test "${with_cli6_lease_file+set}" = set; then :
5961 withval=$with_cli6_lease_file;
5962 cat >>confdefs.h <<_ACEOF
5963 #define _PATH_DHCLIENT6_DB "$withval"
5964 _ACEOF
5965
5966 fi
5967
5968
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhclient6.leases location" >&5
5970 $as_echo_n "checking for dhclient6.leases location... " >&6; }
5971 if [ "x$with_cli6_lease_file" = "x" ] ; then
5972 if [ -d "${localstatedir}/db" ] ; then
5973 with_cli6_lease_file="${localstatedir}/db/dhclient6.leases"
5974 elif [ -d "${localstatedir}/state" ] ; then
5975 if [ -d "${localstatedir}/state/dhcp" ] ; then
5976 with_cli6_lease_file="${localstatedir}/state/dhcp/dhclient6.leases"
5977 else
5978 with_cli6_lease_file="${localstatedir}/state/dhclient6.leases"
5979 fi
5980 elif [ -d "${localstatedir}/lib" ] ; then
5981 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5982 with_cli6_lease_file="${localstatedir}/lib/dhcp/dhclient6.leases"
5983 else
5984 with_cli6_lease_file="${localstatedir}/lib/dhclient6.leases"
5985 fi
5986 elif [ -d "${localstatedir}/etc" ] ; then
5987 with_cli6_lease_file="${localstatedir}/etc/dhclient6.leases"
5988 else
5989 with_cli6_lease_file="/etc/dhclient6.leases"
5990 fi
5991 fi
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cli6_lease_file" >&5
5993 $as_echo "$with_cli6_lease_file" >&6; }
5994
5995
5996 # Check whether --with-srv-pid-file was given.
5997 if test "${with_srv_pid_file+set}" = set; then :
5998 withval=$with_srv_pid_file;
5999 cat >>confdefs.h <<_ACEOF
6000 #define _PATH_DHCPD_PID "$withval"
6001 _ACEOF
6002
6003 fi
6004
6005
6006 # Check whether --with-srv6-pid-file was given.
6007 if test "${with_srv6_pid_file+set}" = set; then :
6008 withval=$with_srv6_pid_file;
6009 cat >>confdefs.h <<_ACEOF
6010 #define _PATH_DHCPD6_PID "$withval"
6011 _ACEOF
6012
6013 fi
6014
6015
6016 # Check whether --with-cli-pid-file was given.
6017 if test "${with_cli_pid_file+set}" = set; then :
6018 withval=$with_cli_pid_file;
6019 cat >>confdefs.h <<_ACEOF
6020 #define _PATH_DHCLIENT_PID "$withval"
6021 _ACEOF
6022
6023 fi
6024
6025
6026 # Check whether --with-cli6-pid-file was given.
6027 if test "${with_cli6_pid_file+set}" = set; then :
6028 withval=$with_cli6_pid_file;
6029 cat >>confdefs.h <<_ACEOF
6030 #define _PATH_DHCLIENT6_PID "$withval"
6031 _ACEOF
6032
6033 fi
6034
6035
6036 # Check whether --with-relay-pid-file was given.
6037 if test "${with_relay_pid_file+set}" = set; then :
6038 withval=$with_relay_pid_file;
6039 cat >>confdefs.h <<_ACEOF
6040 #define _PATH_DHCRELAY_PID "$withval"
6041 _ACEOF
6042
6043 fi
6044
6045
6046 # Check whether --with-relay6-pid-file was given.
6047 if test "${with_relay6_pid_file+set}" = set; then :
6048 withval=$with_relay6_pid_file;
6049 cat >>confdefs.h <<_ACEOF
6050 #define _PATH_DHCRELAY6_PID "$withval"
6051 _ACEOF
6052
6053 fi
6054
6055
6056 # Check basic types.
6057 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6058 case $ac_cv_c_int8_t in #(
6059 no|yes) ;; #(
6060 *)
6061
6062 cat >>confdefs.h <<_ACEOF
6063 #define int8_t $ac_cv_c_int8_t
6064 _ACEOF
6065 ;;
6066 esac
6067
6068 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6069 case $ac_cv_c_int16_t in #(
6070 no|yes) ;; #(
6071 *)
6072
6073 cat >>confdefs.h <<_ACEOF
6074 #define int16_t $ac_cv_c_int16_t
6075 _ACEOF
6076 ;;
6077 esac
6078
6079 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6080 case $ac_cv_c_int32_t in #(
6081 no|yes) ;; #(
6082 *)
6083
6084 cat >>confdefs.h <<_ACEOF
6085 #define int32_t $ac_cv_c_int32_t
6086 _ACEOF
6087 ;;
6088 esac
6089
6090 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6091 case $ac_cv_c_int64_t in #(
6092 no|yes) ;; #(
6093 *)
6094
6095 cat >>confdefs.h <<_ACEOF
6096 #define int64_t $ac_cv_c_int64_t
6097 _ACEOF
6098 ;;
6099 esac
6100
6101
6102 # Some systems need the u_intX_t types defined across.
6103 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
6104 if test "x$ac_cv_type_u_int8_t" = xyes; then :
6105
6106 else
6107
6108 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6109 case $ac_cv_c_uint8_t in #(
6110 no|yes) ;; #(
6111 *)
6112
6113 $as_echo "#define _UINT8_T 1" >>confdefs.h
6114
6115
6116 cat >>confdefs.h <<_ACEOF
6117 #define uint8_t $ac_cv_c_uint8_t
6118 _ACEOF
6119 ;;
6120 esac
6121
6122
6123 $as_echo "#define u_int8_t uint8_t" >>confdefs.h
6124
6125
6126 fi
6127
6128 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
6129 if test "x$ac_cv_type_u_int16_t" = xyes; then :
6130
6131 else
6132
6133 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6134 case $ac_cv_c_uint16_t in #(
6135 no|yes) ;; #(
6136 *)
6137
6138
6139 cat >>confdefs.h <<_ACEOF
6140 #define uint16_t $ac_cv_c_uint16_t
6141 _ACEOF
6142 ;;
6143 esac
6144
6145
6146 $as_echo "#define u_int16_t uint16_t" >>confdefs.h
6147
6148
6149 fi
6150
6151 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
6152 if test "x$ac_cv_type_u_int32_t" = xyes; then :
6153
6154 else
6155
6156 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6157 case $ac_cv_c_uint32_t in #(
6158 no|yes) ;; #(
6159 *)
6160
6161 $as_echo "#define _UINT32_T 1" >>confdefs.h
6162
6163
6164 cat >>confdefs.h <<_ACEOF
6165 #define uint32_t $ac_cv_c_uint32_t
6166 _ACEOF
6167 ;;
6168 esac
6169
6170
6171 $as_echo "#define u_int32_t uint32_t" >>confdefs.h
6172
6173
6174 fi
6175
6176 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
6177 if test "x$ac_cv_type_u_int64_t" = xyes; then :
6178
6179 else
6180
6181 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6182 case $ac_cv_c_uint64_t in #(
6183 no|yes) ;; #(
6184 *)
6185
6186 $as_echo "#define _UINT64_T 1" >>confdefs.h
6187
6188
6189 cat >>confdefs.h <<_ACEOF
6190 #define uint64_t $ac_cv_c_uint64_t
6191 _ACEOF
6192 ;;
6193 esac
6194
6195
6196 $as_echo "#define u_int64_t uint64_t" >>confdefs.h
6197
6198
6199 fi
6200
6201
6202 # see if ifaddrs.h is available
6203 for ac_header in ifaddrs.h
6204 do :
6205 ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6206 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6207 cat >>confdefs.h <<_ACEOF
6208 #define HAVE_IFADDRS_H 1
6209 _ACEOF
6210
6211 fi
6212
6213 done
6214
6215
6216 # figure out what IPv4 interface code to use
6217 for ac_header in linux/types.h
6218 do :
6219 ac_fn_c_check_header_mongrel "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
6220 if test "x$ac_cv_header_linux_types_h" = xyes; then :
6221 cat >>confdefs.h <<_ACEOF
6222 #define HAVE_LINUX_TYPES_H 1
6223 _ACEOF
6224
6225 fi
6226
6227 done
6228 # needed for linux/filter.h on old systems
6229
6230 relay_port_supported="no"
6231 ac_fn_c_check_header_compile "$LINENO" "linux/filter.h" "ac_cv_header_linux_filter_h" "
6232 #ifdef HAVE_LINUX_TYPES_H
6233 #include <linux/types.h>
6234 #endif
6235
6236 "
6237 if test "x$ac_cv_header_linux_filter_h" = xyes; then :
6238 DO_LPF=1
6239 fi
6240
6241
6242 if test -n "$DO_LPF"
6243 then
6244
6245 $as_echo "#define HAVE_LPF 1" >>confdefs.h
6246
6247 relay_port_supported="yes"
6248 else
6249 ac_fn_c_check_header_mongrel "$LINENO" "sys/dlpi.h" "ac_cv_header_sys_dlpi_h" "$ac_includes_default"
6250 if test "x$ac_cv_header_sys_dlpi_h" = xyes; then :
6251 DO_DLPI=1
6252 fi
6253
6254
6255 if test -n "$DO_DLPI"
6256 then
6257
6258 $as_echo "#define HAVE_DLPI 1" >>confdefs.h
6259
6260 else
6261 ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
6262 if test "x$ac_cv_header_net_bpf_h" = xyes; then :
6263 DO_BPF=1
6264 fi
6265
6266
6267 if test -n "$DO_BPF"
6268 then
6269
6270 $as_echo "#define HAVE_BPF 1" >>confdefs.h
6271
6272 relay_port_supported="yes"
6273 fi
6274 fi
6275 fi
6276
6277 if test "$enable_relay_port" = "yes"; then
6278 if test "$relay_port_supported" != "yes"; then
6279 as_fn_error $? "--enable-relay-port requires BPF or LPF" "$LINENO" 5
6280 fi
6281 fi
6282
6283 # SIOCGLIFCONF uses some transport structures. Trick is not all platforms
6284 # use the same structures. We like to use 'struct lifconf' and 'struct
6285 # lifreq', but we'll use these other structures if they're present. HPUX
6286 # does not define 'struct lifnum', but does use SIOCGLIFNUM - they use an
6287 # int value.
6288 #
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifnum" >&5
6290 $as_echo_n "checking for struct lifnum... " >&6; }
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6293 #include <sys/types.h>
6294 #include <sys/socket.h>
6295 #include <net/if.h>
6296
6297 int
6298 main ()
6299 {
6300 struct lifnum a;
6301
6302 ;
6303 return 0;
6304 }
6305 _ACEOF
6306 if ac_fn_c_try_compile "$LINENO"; then :
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6308 $as_echo "yes" >&6; }
6309
6310 $as_echo "#define ISC_PLATFORM_HAVELIFNUM 1" >>confdefs.h
6311
6312 else
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6315 fi
6316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
6319 $as_echo_n "checking for struct if_laddrconf... " >&6; }
6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h. */
6322 #include <sys/types.h>
6323 #include <net/if6.h>
6324
6325 int
6326 main ()
6327 {
6328 struct if_laddrconf a;
6329
6330 ;
6331 return 0;
6332 }
6333 _ACEOF
6334 if ac_fn_c_try_compile "$LINENO"; then :
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6336 $as_echo "yes" >&6; }
6337
6338 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
6339
6340 else
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 $as_echo "no" >&6; }
6343 fi
6344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6345
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
6347 $as_echo_n "checking for struct if_laddrreq... " >&6; }
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350 #include <sys/types.h>
6351 #include <net/if6.h>
6352
6353 int
6354 main ()
6355 {
6356 struct if_laddrreq a;
6357
6358 ;
6359 return 0;
6360 }
6361 _ACEOF
6362 if ac_fn_c_try_link "$LINENO"; then :
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6364 $as_echo "yes" >&6; }
6365
6366 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
6367
6368 else
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6371 fi
6372 rm -f core conftest.err conftest.$ac_objext \
6373 conftest$ac_exeext conftest.$ac_ext
6374
6375 #
6376 # check for GCC noreturn attribute
6377 #
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
6379 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6382
6383 int
6384 main ()
6385 {
6386 void foo() __attribute__((noreturn));
6387 ;
6388 return 0;
6389 }
6390 _ACEOF
6391 if ac_fn_c_try_compile "$LINENO"; then :
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6393 $as_echo "yes" >&6; }
6394
6395 $as_echo "#define ISC_DHCP_NORETURN __attribute__((noreturn))" >>confdefs.h
6396
6397 else
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6400
6401 $as_echo "#define ISC_DHCP_NORETURN /**/" >>confdefs.h
6402
6403 fi
6404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405
6406 # Look for optional headers.
6407 for ac_header in sys/socket.h net/if_dl.h net/if6.h regex.h
6408 do :
6409 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6410 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6411 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6412 cat >>confdefs.h <<_ACEOF
6413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6414 _ACEOF
6415
6416 fi
6417
6418 done
6419
6420
6421 # Solaris needs some libraries for functions
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6423 $as_echo_n "checking for library containing socket... " >&6; }
6424 if ${ac_cv_search_socket+:} false; then :
6425 $as_echo_n "(cached) " >&6
6426 else
6427 ac_func_search_save_LIBS=$LIBS
6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6430
6431 /* Override any GCC internal prototype to avoid an error.
6432 Use char because int might match the return type of a GCC
6433 builtin and then its argument prototype would still apply. */
6434 #ifdef __cplusplus
6435 extern "C"
6436 #endif
6437 char socket ();
6438 int
6439 main ()
6440 {
6441 return socket ();
6442 ;
6443 return 0;
6444 }
6445 _ACEOF
6446 for ac_lib in '' socket; do
6447 if test -z "$ac_lib"; then
6448 ac_res="none required"
6449 else
6450 ac_res=-l$ac_lib
6451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6452 fi
6453 if ac_fn_c_try_link "$LINENO"; then :
6454 ac_cv_search_socket=$ac_res
6455 fi
6456 rm -f core conftest.err conftest.$ac_objext \
6457 conftest$ac_exeext
6458 if ${ac_cv_search_socket+:} false; then :
6459 break
6460 fi
6461 done
6462 if ${ac_cv_search_socket+:} false; then :
6463
6464 else
6465 ac_cv_search_socket=no
6466 fi
6467 rm conftest.$ac_ext
6468 LIBS=$ac_func_search_save_LIBS
6469 fi
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6471 $as_echo "$ac_cv_search_socket" >&6; }
6472 ac_res=$ac_cv_search_socket
6473 if test "$ac_res" != no; then :
6474 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6475
6476 fi
6477
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6479 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
6480 if ${ac_cv_search_inet_ntoa+:} false; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 ac_func_search_save_LIBS=$LIBS
6484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485 /* end confdefs.h. */
6486
6487 /* Override any GCC internal prototype to avoid an error.
6488 Use char because int might match the return type of a GCC
6489 builtin and then its argument prototype would still apply. */
6490 #ifdef __cplusplus
6491 extern "C"
6492 #endif
6493 char inet_ntoa ();
6494 int
6495 main ()
6496 {
6497 return inet_ntoa ();
6498 ;
6499 return 0;
6500 }
6501 _ACEOF
6502 for ac_lib in '' nsl; do
6503 if test -z "$ac_lib"; then
6504 ac_res="none required"
6505 else
6506 ac_res=-l$ac_lib
6507 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6508 fi
6509 if ac_fn_c_try_link "$LINENO"; then :
6510 ac_cv_search_inet_ntoa=$ac_res
6511 fi
6512 rm -f core conftest.err conftest.$ac_objext \
6513 conftest$ac_exeext
6514 if ${ac_cv_search_inet_ntoa+:} false; then :
6515 break
6516 fi
6517 done
6518 if ${ac_cv_search_inet_ntoa+:} false; then :
6519
6520 else
6521 ac_cv_search_inet_ntoa=no
6522 fi
6523 rm conftest.$ac_ext
6524 LIBS=$ac_func_search_save_LIBS
6525 fi
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6527 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
6528 ac_res=$ac_cv_search_inet_ntoa
6529 if test "$ac_res" != no; then :
6530 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6531
6532 fi
6533
6534
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
6536 $as_echo_n "checking for library containing inet_aton... " >&6; }
6537 if ${ac_cv_search_inet_aton+:} false; then :
6538 $as_echo_n "(cached) " >&6
6539 else
6540 ac_func_search_save_LIBS=$LIBS
6541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6543
6544 /* Override any GCC internal prototype to avoid an error.
6545 Use char because int might match the return type of a GCC
6546 builtin and then its argument prototype would still apply. */
6547 #ifdef __cplusplus
6548 extern "C"
6549 #endif
6550 char inet_aton ();
6551 int
6552 main ()
6553 {
6554 return inet_aton ();
6555 ;
6556 return 0;
6557 }
6558 _ACEOF
6559 for ac_lib in '' socket nsl; do
6560 if test -z "$ac_lib"; then
6561 ac_res="none required"
6562 else
6563 ac_res=-l$ac_lib
6564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6565 fi
6566 if ac_fn_c_try_link "$LINENO"; then :
6567 ac_cv_search_inet_aton=$ac_res
6568 fi
6569 rm -f core conftest.err conftest.$ac_objext \
6570 conftest$ac_exeext
6571 if ${ac_cv_search_inet_aton+:} false; then :
6572 break
6573 fi
6574 done
6575 if ${ac_cv_search_inet_aton+:} false; then :
6576
6577 else
6578 ac_cv_search_inet_aton=no
6579 fi
6580 rm conftest.$ac_ext
6581 LIBS=$ac_func_search_save_LIBS
6582 fi
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
6584 $as_echo "$ac_cv_search_inet_aton" >&6; }
6585 ac_res=$ac_cv_search_inet_aton
6586 if test "$ac_res" != no; then :
6587 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6588
6589 else
6590
6591 $as_echo "#define NEED_INET_ATON 1" >>confdefs.h
6592
6593 fi
6594
6595
6596 # Check for a standalone regex library.
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
6598 $as_echo_n "checking for library containing regcomp... " >&6; }
6599 if ${ac_cv_search_regcomp+:} false; then :
6600 $as_echo_n "(cached) " >&6
6601 else
6602 ac_func_search_save_LIBS=$LIBS
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6605
6606 /* Override any GCC internal prototype to avoid an error.
6607 Use char because int might match the return type of a GCC
6608 builtin and then its argument prototype would still apply. */
6609 #ifdef __cplusplus
6610 extern "C"
6611 #endif
6612 char regcomp ();
6613 int
6614 main ()
6615 {
6616 return regcomp ();
6617 ;
6618 return 0;
6619 }
6620 _ACEOF
6621 for ac_lib in '' regex; do
6622 if test -z "$ac_lib"; then
6623 ac_res="none required"
6624 else
6625 ac_res=-l$ac_lib
6626 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6627 fi
6628 if ac_fn_c_try_link "$LINENO"; then :
6629 ac_cv_search_regcomp=$ac_res
6630 fi
6631 rm -f core conftest.err conftest.$ac_objext \
6632 conftest$ac_exeext
6633 if ${ac_cv_search_regcomp+:} false; then :
6634 break
6635 fi
6636 done
6637 if ${ac_cv_search_regcomp+:} false; then :
6638
6639 else
6640 ac_cv_search_regcomp=no
6641 fi
6642 rm conftest.$ac_ext
6643 LIBS=$ac_func_search_save_LIBS
6644 fi
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
6646 $as_echo "$ac_cv_search_regcomp" >&6; }
6647 ac_res=$ac_cv_search_regcomp
6648 if test "$ac_res" != no; then :
6649 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6650
6651 fi
6652
6653
6654 for ac_func in strlcat
6655 do :
6656 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
6657 if test "x$ac_cv_func_strlcat" = xyes; then :
6658 cat >>confdefs.h <<_ACEOF
6659 #define HAVE_STRLCAT 1
6660 _ACEOF
6661
6662 fi
6663 done
6664
6665
6666 # For HP/UX we need -lipv6 for if_nametoindex, perhaps others.
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
6668 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
6669 if ${ac_cv_search_if_nametoindex+:} false; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 ac_func_search_save_LIBS=$LIBS
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674 /* end confdefs.h. */
6675
6676 /* Override any GCC internal prototype to avoid an error.
6677 Use char because int might match the return type of a GCC
6678 builtin and then its argument prototype would still apply. */
6679 #ifdef __cplusplus
6680 extern "C"
6681 #endif
6682 char if_nametoindex ();
6683 int
6684 main ()
6685 {
6686 return if_nametoindex ();
6687 ;
6688 return 0;
6689 }
6690 _ACEOF
6691 for ac_lib in '' ipv6; do
6692 if test -z "$ac_lib"; then
6693 ac_res="none required"
6694 else
6695 ac_res=-l$ac_lib
6696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6697 fi
6698 if ac_fn_c_try_link "$LINENO"; then :
6699 ac_cv_search_if_nametoindex=$ac_res
6700 fi
6701 rm -f core conftest.err conftest.$ac_objext \
6702 conftest$ac_exeext
6703 if ${ac_cv_search_if_nametoindex+:} false; then :
6704 break
6705 fi
6706 done
6707 if ${ac_cv_search_if_nametoindex+:} false; then :
6708
6709 else
6710 ac_cv_search_if_nametoindex=no
6711 fi
6712 rm conftest.$ac_ext
6713 LIBS=$ac_func_search_save_LIBS
6714 fi
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
6716 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
6717 ac_res=$ac_cv_search_if_nametoindex
6718 if test "$ac_res" != no; then :
6719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6720
6721 fi
6722
6723
6724 # For some Solaris nanosleep is found by BIND in librt
6725 have_nanosleep="no"
6726 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
6727 if test "x$ac_cv_func_nanosleep" = xyes; then :
6728 have_nanosleep="yes"
6729 fi
6730
6731 if test "$have_nanosleep" = "no"; then
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
6733 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
6734 if ${ac_cv_lib_rt_nanosleep+:} false; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 ac_check_lib_save_LIBS=$LIBS
6738 LIBS="-lrt $LIBS"
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6741
6742 /* Override any GCC internal prototype to avoid an error.
6743 Use char because int might match the return type of a GCC
6744 builtin and then its argument prototype would still apply. */
6745 #ifdef __cplusplus
6746 extern "C"
6747 #endif
6748 char nanosleep ();
6749 int
6750 main ()
6751 {
6752 return nanosleep ();
6753 ;
6754 return 0;
6755 }
6756 _ACEOF
6757 if ac_fn_c_try_link "$LINENO"; then :
6758 ac_cv_lib_rt_nanosleep=yes
6759 else
6760 ac_cv_lib_rt_nanosleep=no
6761 fi
6762 rm -f core conftest.err conftest.$ac_objext \
6763 conftest$ac_exeext conftest.$ac_ext
6764 LIBS=$ac_check_lib_save_LIBS
6765 fi
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
6767 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
6768 if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
6769 have_nanosleep="rt"
6770 fi
6771
6772 fi
6773 if test "$have_nanosleep" = "rt"; then
6774 LIBS="-lrt $LIBS"
6775 fi
6776
6777 # check for /dev/random (declares ISC_PATH_RANDOMDEV)
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
6779 $as_echo_n "checking for random device... " >&6; }
6780
6781 # Check whether --with-randomdev was given.
6782 if test "${with_randomdev+set}" = set; then :
6783 withval=$with_randomdev; use_randomdev="$withval"
6784 else
6785 use_randomdev="unspec"
6786 fi
6787
6788 if test "$use_randomdev" = "unspec"; then
6789 if test "$cross_compiling" = "yes"; then
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unspecified" >&5
6791 $as_echo "unspecified" >&6; }
6792 as_fn_error $? " need --with-randomdev=PATH or --with-randomdev=no" "$LINENO" 5
6793 fi
6794 use_randomdev="/dev/random"
6795 elif test "$use_randomdev" = "yes"; then
6796 use_randomdev="/dev/random"
6797 fi
6798 if test "$use_randomdev" = "no"; then
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6800 $as_echo "disabled" >&6; }
6801 BINDCONFIG="$BINDCONFIG --with-randomdev=no"
6802 else
6803 if test "$cross_compiling" = "yes"; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_randomdev (unchecked)" >&5
6805 $as_echo "$use_randomdev (unchecked)" >&6; }
6806 else
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_randomdev" >&5
6808 $as_echo "$use_randomdev" >&6; }
6809 as_ac_File=`$as_echo "ac_cv_file_$use_randomdev" | $as_tr_sh`
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $use_randomdev" >&5
6811 $as_echo_n "checking for $use_randomdev... " >&6; }
6812 if eval \${$as_ac_File+:} false; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 test "$cross_compiling" = yes &&
6816 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
6817 if test -r "$use_randomdev"; then
6818 eval "$as_ac_File=yes"
6819 else
6820 eval "$as_ac_File=no"
6821 fi
6822 fi
6823 eval ac_res=\$$as_ac_File
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6825 $as_echo "$ac_res" >&6; }
6826 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
6827
6828 cat >>confdefs.h <<_ACEOF
6829 #define ISC_PATH_RANDOMDEV "$use_randomdev"
6830 _ACEOF
6831
6832 else
6833 as_fn_error $? "cannot find $use_randomdev" "$LINENO" 5
6834 fi
6835
6836 fi
6837 BINDCONFIG="$BINDCONFIG --with-randomdev=$use_randomdev"
6838 fi
6839
6840 BINDIOMUX="--disable-kqueue --disable-epoll --disable-devpoll"
6841 # check kqueue/epoll/devpoll alternative to select
6842 # Check whether --enable-kqueue was given.
6843 if test "${enable_kqueue+set}" = set; then :
6844 enableval=$enable_kqueue; want_kqueue="$enableval"
6845 else
6846 want_kqueue="no"
6847 fi
6848
6849 if test "$want_kqueue" = "yes"; then
6850 BINDIOMUX="--enable-kqueue"
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-kqueue is not supported: it may lead to issues such as server looping" >&5
6852 $as_echo "$as_me: WARNING: --enable-kqueue is not supported: it may lead to issues such as server looping" >&2;}
6853 fi
6854 # Check whether --enable-epoll was given.
6855 if test "${enable_epoll+set}" = set; then :
6856 enableval=$enable_epoll; want_epoll="$enableval"
6857 else
6858 want_epoll="no"
6859 fi
6860
6861 if test "$want_epoll" = "yes"; then
6862 BINDIOMUX="--enable-epoll"
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-epoll is not supported: it may lead to issues such as server looping" >&5
6864 $as_echo "$as_me: WARNING: --enable-epoll is not supported: it may lead to issues such as server looping" >&2;}
6865 fi
6866 # Check whether --enable-devpoll was given.
6867 if test "${enable_devpoll+set}" = set; then :
6868 enableval=$enable_devpoll; want_devpoll="$enableval"
6869 else
6870 want_devpoll="no"
6871 fi
6872
6873 if test "$want_devpoll" = "yes"; then
6874 BINDIOMUX="--enable-devpoll"
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-devpoll is not supported: it may lead to issues such as server looping" >&5
6876 $as_echo "$as_me: WARNING: --enable-devpoll is not supported: it may lead to issues such as server looping" >&2;}
6877 fi
6878
6879
6880 # general extra bind configure arguments
6881
6882 # Check whether --with-bind-extra-config was given.
6883 if test "${with_bind_extra_config+set}" = set; then :
6884 withval=$with_bind_extra_config; use_xbindconfig="$withval"
6885 else
6886 use_xbindconfig=""
6887 fi
6888
6889 case "$use_xbindconfig" in
6890 yes|no|'')
6891 ;;
6892 *)
6893 BINDCONFIG="$BINDCONFIG $use_xbindconfig"
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Most options to bind configure are not supported when used by ISC DHCP" >&5
6895 $as_echo "$as_me: WARNING: Most options to bind configure are not supported when used by ISC DHCP" >&2;}
6896 ;;
6897 esac
6898
6899 # see if there is a "sa_len" field in our interface information structure
6900 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
6901 "
6902 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
6903
6904 $as_echo "#define HAVE_SA_LEN /**/" >>confdefs.h
6905
6906 fi
6907
6908
6909 # figure out pointer size
6910 SAVE_CFLAGS="$CFLAGS"
6911 CFLAGS="$CFLAGS -I$srcdir"
6912 # The cast to long int works around a bug in the HP C Compiler
6913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6915 # This bug is HP SR number 8606223364.
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iaddr *" >&5
6917 $as_echo_n "checking size of struct iaddr *... " >&6; }
6918 if ${ac_cv_sizeof_struct_iaddr_p+:} false; then :
6919 $as_echo_n "(cached) " >&6
6920 else
6921 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct iaddr *))" "ac_cv_sizeof_struct_iaddr_p" "
6922 #include \"includes/inet.h\"
6923 #include <stdio.h>
6924
6925 "; then :
6926
6927 else
6928 if test "$ac_cv_type_struct_iaddr_p" = yes; then
6929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6931 as_fn_error 77 "cannot compute sizeof (struct iaddr *)
6932 See \`config.log' for more details" "$LINENO" 5; }
6933 else
6934 ac_cv_sizeof_struct_iaddr_p=0
6935 fi
6936 fi
6937
6938 fi
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iaddr_p" >&5
6940 $as_echo "$ac_cv_sizeof_struct_iaddr_p" >&6; }
6941
6942
6943
6944 cat >>confdefs.h <<_ACEOF
6945 #define SIZEOF_STRUCT_IADDR_P $ac_cv_sizeof_struct_iaddr_p
6946 _ACEOF
6947
6948
6949 CFLAGS="$SAVE_CFLAGS"
6950
6951 # Solaris does not have the msg_control or msg_controlen members
6952 # in the msghdr structure unless you define:
6953 #
6954 # _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, and __EXTENSIONS__
6955 #
6956 # See the "standards" man page for details.
6957 #
6958 # We check for the msg_control member, and if it is not found, we check
6959 # again with the appropriate defines added to the CFLAGS. (In order to
6960 # do this we have to remove the check from the cache, which is what the
6961 # "unset" is for.)
6962 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6963 #include <sys/types.h>
6964 #include <sys/socket.h>
6965
6966 "
6967 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
6968
6969 else
6970 CFLAGS="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6971 CFLAGS="$CFLAGS -D__EXTENSIONS__"
6972 unset ac_cv_member_struct_msghdr_msg_control
6973 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6974 #include <sys/types.h>
6975 #include <sys/socket.h>
6976
6977 "
6978 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
6979
6980 else
6981 as_fn_error $? "Missing msg_control member in
6982 msg_control structure." "$LINENO" 5
6983 fi
6984
6985
6986 fi
6987
6988
6989 ac_fn_c_check_member "$LINENO" "struct tpacket_auxdata" "tp_vlan_tci" "ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" "#include <linux/if_packet.h>
6990 "
6991 if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes; then :
6992
6993 $as_echo "#define VLAN_TCI_PRESENT 1" >>confdefs.h
6994
6995
6996 fi
6997
6998
6999 # bind/Makefile.in is not from automake so we need 2 variables for bind dir
7000 BINDSUBDIR=
7001 BINDDIR=
7002 BINDSRCDIR=
7003 BINDLIBIRSDIR=
7004 BINDLIBDNSDIR=
7005 BINDLIBISCCFGDIR=
7006 BINDLIBISCDIR=
7007 DISTCHECK_LIBBIND_CONFIGURE_FLAG=
7008
7009 # Check whether --with-libbind was given.
7010 if test "${with_libbind+set}" = set; then :
7011 withval=$with_libbind; use_libbind="$withval"
7012 else
7013 use_libbind="no"
7014 fi
7015
7016 case "$use_libbind" in
7017 yes)
7018 as_fn_error $? "PATH is required in --with-libbind=PATH" "$LINENO" 5
7019 ;;
7020 no)
7021 BINDSUBDIR="\${top_srcdir}/bind"
7022 my_abs_srcdir=`cd $srcdir && pwd`
7023 BINDDIR="${my_abs_srcdir}/bind"
7024 if test ! -d "$srcdir/bind"; then
7025 as_fn_error $? "Where to find or build bind includes and libraries must be specified" "$LINENO" 5
7026 fi
7027 if test -d "$srcdir/bind/bind9"; then
7028 BINDSRCDIR="${my_abs_srcdir}/bind/bind9"
7029 else
7030 if test ! -f "$srcdir/bind/version.tmp"; then
7031 as_fn_error $? "Cannot find $srcdir/bind/version.tmp" "$LINENO" 5
7032 fi
7033 . "$srcdir/bind/version.tmp"
7034 bindversion=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
7035 BINDSRCDIR="${my_abs_srcdir}/bind/bind-$bindversion"
7036 fi
7037 ac_config_files="$ac_config_files $srcdir/bind/Makefile"
7038
7039
7040 BINDLIBIRSDIR="$BINDSRCDIR/lib/irs"
7041 BINDLIBDNSDIR="$BINDSRCDIR/lib/dns"
7042 BINDLIBISCCFGDIR="$BINDSRCDIR/lib/isccfg"
7043 BINDLIBISCDIR="$BINDSRCDIR/lib/isc"
7044 ;;
7045 *)
7046 if test ! -d "$use_libbind"; then
7047 as_fn_error $? "Cannot find bind directory at $use_libbind" "$LINENO" 5
7048 fi
7049 if test ! -d "$use_libbind/include" -o \
7050 ! -f "$use_libbind/include/isc/buffer.h"
7051 then
7052 as_fn_error $? "Cannot find bind includes at $use_libbind/include" "$LINENO" 5
7053 fi
7054 if test ! -d "$use_libbind/lib" -o \
7055 \( ! -f "$use_libbind/lib/libisc.a" -a \
7056 ! -f "$use_libbind/lib/libisc.la" \)
7057 then
7058 as_fn_error $? "Cannot find bind libraries at $use_libbind/lib" "$LINENO" 5
7059 fi
7060 BINDDIR="$use_libbind"
7061 BINDLIBIRSDIR="$BINDDIR/lib"
7062 BINDLIBDNSDIR="$BINDDIR/lib"
7063 BINDLIBISCCFGDIR="$BINDDIR/lib"
7064 BINDLIBISCDIR="$BINDDIR/lib"
7065 DISTCHECK_LIBBIND_CONFIGURE_FLAG="--with-libbind=$use_libbind"
7066 ;;
7067 esac
7068
7069
7070
7071
7072
7073
7074
7075
7076 if test "$use_libbind" = "no"; then
7077 HAVE_BINDDIR_TRUE=
7078 HAVE_BINDDIR_FALSE='#'
7079 else
7080 HAVE_BINDDIR_TRUE='#'
7081 HAVE_BINDDIR_FALSE=
7082 fi
7083
7084
7085 #
7086 # GNU libtool support
7087 #
7088 case "$build_os" in
7089 sunos*)
7090 # Just set the maximum command line length for sunos
7091 # as it otherwise takes a exceptionally long time to
7092 # work it out. Required for libtool.
7093
7094 lt_cv_sys_max_cmd_len=4096
7095 ;;
7096 esac
7097
7098 want_libtool="no"
7099
7100 BINDLT=
7101 DISTCHECK_LIBTOOL_CONFIGURE_FLAG=
7102 # Check whether --enable-libtool was given.
7103 if test "${enable_libtool+set}" = set; then :
7104 enableval=$enable_libtool; want_libtool="$enableval"
7105 fi
7106
7107
7108 if test "$use_libbind" != "no"; then
7109 if test "$want_libtool" = "yes" -a \
7110 ! -f "$use_libbind/lib/libisc.la"
7111 then
7112 as_fn_error $? "Cannot find dynamic libraries at $use_libbind/lib" "$LINENO" 5
7113 fi
7114 if test "$want_libtool" = "no" -a \
7115 ! -f "$use_libbind/lib/libisc.a"
7116 then
7117 as_fn_error $? "Cannot find static libraries at $use_libbind/lib" "$LINENO" 5
7118 fi
7119 fi
7120
7121
7122 if test "$want_libtool" = "yes"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: legacy configure is used but libtool is enabled. Trying to recover..." >&5
7124 $as_echo "$as_me: WARNING: legacy configure is used but libtool is enabled. Trying to recover..." >&2;}
7125 # expand $ac_configure_args
7126 eval "set my_configure_args $ac_configure_args"
7127 shift
7128 cd $srcdir; exec ./config+lt "$@"
7129 as_fn_error $? "Recovering failed" "$LINENO" 5
7130 fi
7131
7132 DHLIBS=LIBRARIES
7133 A=a
7134
7135
7136
7137
7138
7139
7140 # quoting in Makefile.am.in
7141 Q=@
7142
7143
7144 # install bind includes and libraries
7145
7146 want_install_bind="no"
7147 if test "$want_libtool" = "yes"; then
7148 want_install_bind="yes"
7149 fi
7150 if test "$use_libbind" != "no"; then
7151 want_install_bind="no"
7152 fi
7153 # Check whether --enable-bind_install was given.
7154 if test "${enable_bind_install+set}" = set; then :
7155 enableval=$enable_bind_install; want_install_bind="$enableval"
7156 fi
7157
7158 if test "$want_install_bind" = "yes"; then
7159 if test "$use_libbind" != "no"; then
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bind-install does nothing when --with-libbind is set" >&5
7161 $as_echo "$as_me: WARNING: --enable-bind-install does nothing when --with-libbind is set" >&2;}
7162 fi
7163 elif test "$want_libtool" = "yes" -a "$use_libbind" = "no"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: embedded dynamic bind libraries must be installed" >&5
7165 $as_echo "$as_me: WARNING: embedded dynamic bind libraries must be installed" >&2;}
7166 fi
7167 if test "$want_install_bind" = "yes"; then
7168 INSTALL_BIND_TRUE=
7169 INSTALL_BIND_FALSE='#'
7170 else
7171 INSTALL_BIND_TRUE='#'
7172 INSTALL_BIND_FALSE=
7173 fi
7174
7175
7176 # OpenLDAP support.
7177
7178 # Check whether --with-ldap was given.
7179 if test "${with_ldap+set}" = set; then :
7180 withval=$with_ldap; ldap=$withval
7181 else
7182 ldap=no
7183 fi
7184
7185
7186 # OpenLDAP with SSL support.
7187
7188 # Check whether --with-ldapcrypto was given.
7189 if test "${with_ldapcrypto+set}" = set; then :
7190 withval=$with_ldapcrypto; ldapcrypto=$withval
7191 else
7192 ldapcrypto=no
7193 fi
7194
7195
7196 # Gssapi to allow LDAP to authenticate with a keytab
7197
7198 # Check whether --with-ldap-gssapi was given.
7199 if test "${with_ldap_gssapi+set}" = set; then :
7200 withval=$with_ldap_gssapi; ldap_gssapi=$withval
7201 else
7202 ldap_gssapi=no
7203 fi
7204
7205
7206
7207 # LDAP CASA auth support.
7208
7209 # Check whether --with-ldapcasa was given.
7210 if test "${with_ldapcasa+set}" = set; then :
7211 withval=$with_ldapcasa; ldapcasa=$withval
7212 else
7213 ldapcasa=no
7214 fi
7215
7216
7217 # OpenLDAP support is disabled by default, if enabled then SSL support is an
7218 # extra optional that is also disabled by default. Enabling LDAP SSL support
7219 # implies enabling LDAP support. Similarly, KRB5 support implies LDAP support,
7220 # but doesn't include SSL. The two are not dependant.
7221 if test x$ldap = xyes || test x$ldapcrypto = xyes || test x$ldap_gssapi = xyes; then
7222 saved_LIBS="$LIBS"
7223 LIBS=""
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
7225 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
7226 if ${ac_cv_search_ldap_initialize+:} false; then :
7227 $as_echo_n "(cached) " >&6
7228 else
7229 ac_func_search_save_LIBS=$LIBS
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7232
7233 /* Override any GCC internal prototype to avoid an error.
7234 Use char because int might match the return type of a GCC
7235 builtin and then its argument prototype would still apply. */
7236 #ifdef __cplusplus
7237 extern "C"
7238 #endif
7239 char ldap_initialize ();
7240 int
7241 main ()
7242 {
7243 return ldap_initialize ();
7244 ;
7245 return 0;
7246 }
7247 _ACEOF
7248 for ac_lib in '' ldap; do
7249 if test -z "$ac_lib"; then
7250 ac_res="none required"
7251 else
7252 ac_res=-l$ac_lib
7253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7254 fi
7255 if ac_fn_c_try_link "$LINENO"; then :
7256 ac_cv_search_ldap_initialize=$ac_res
7257 fi
7258 rm -f core conftest.err conftest.$ac_objext \
7259 conftest$ac_exeext
7260 if ${ac_cv_search_ldap_initialize+:} false; then :
7261 break
7262 fi
7263 done
7264 if ${ac_cv_search_ldap_initialize+:} false; then :
7265
7266 else
7267 ac_cv_search_ldap_initialize=no
7268 fi
7269 rm conftest.$ac_ext
7270 LIBS=$ac_func_search_save_LIBS
7271 fi
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
7273 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
7274 ac_res=$ac_cv_search_ldap_initialize
7275 if test "$ac_res" != no; then :
7276 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7277
7278 else
7279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7281 as_fn_error $? "*** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package?
7282 See \`config.log' for more details" "$LINENO" 5; }
7283 fi
7284
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_pvt_opt_on" >&5
7286 $as_echo_n "checking for library containing ber_pvt_opt_on... " >&6; }
7287 if ${ac_cv_search_ber_pvt_opt_on+:} false; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 ac_func_search_save_LIBS=$LIBS
7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292 /* end confdefs.h. */
7293
7294 /* Override any GCC internal prototype to avoid an error.
7295 Use char because int might match the return type of a GCC
7296 builtin and then its argument prototype would still apply. */
7297 #ifdef __cplusplus
7298 extern "C"
7299 #endif
7300 char ber_pvt_opt_on ();
7301 int
7302 main ()
7303 {
7304 return ber_pvt_opt_on ();
7305 ;
7306 return 0;
7307 }
7308 _ACEOF
7309 for ac_lib in '' lber; do
7310 if test -z "$ac_lib"; then
7311 ac_res="none required"
7312 else
7313 ac_res=-l$ac_lib
7314 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7315 fi
7316 if ac_fn_c_try_link "$LINENO"; then :
7317 ac_cv_search_ber_pvt_opt_on=$ac_res
7318 fi
7319 rm -f core conftest.err conftest.$ac_objext \
7320 conftest$ac_exeext
7321 if ${ac_cv_search_ber_pvt_opt_on+:} false; then :
7322 break
7323 fi
7324 done
7325 if ${ac_cv_search_ber_pvt_opt_on+:} false; then :
7326
7327 else
7328 ac_cv_search_ber_pvt_opt_on=no
7329 fi
7330 rm conftest.$ac_ext
7331 LIBS=$ac_func_search_save_LIBS
7332 fi
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_pvt_opt_on" >&5
7334 $as_echo "$ac_cv_search_ber_pvt_opt_on" >&6; }
7335 ac_res=$ac_cv_search_ber_pvt_opt_on
7336 if test "$ac_res" != no; then :
7337 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7338
7339 else
7340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7342 as_fn_error $? "*** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package?
7343 See \`config.log' for more details" "$LINENO" 5; }
7344 fi
7345
7346 if test x$ldap_gssapi = xyes ; then
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_init_context" >&5
7348 $as_echo_n "checking for library containing krb5_init_context... " >&6; }
7349 if ${ac_cv_search_krb5_init_context+:} false; then :
7350 $as_echo_n "(cached) " >&6
7351 else
7352 ac_func_search_save_LIBS=$LIBS
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7355
7356 /* Override any GCC internal prototype to avoid an error.
7357 Use char because int might match the return type of a GCC
7358 builtin and then its argument prototype would still apply. */
7359 #ifdef __cplusplus
7360 extern "C"
7361 #endif
7362 char krb5_init_context ();
7363 int
7364 main ()
7365 {
7366 return krb5_init_context ();
7367 ;
7368 return 0;
7369 }
7370 _ACEOF
7371 for ac_lib in '' krb5; do
7372 if test -z "$ac_lib"; then
7373 ac_res="none required"
7374 else
7375 ac_res=-l$ac_lib
7376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7377 fi
7378 if ac_fn_c_try_link "$LINENO"; then :
7379 ac_cv_search_krb5_init_context=$ac_res
7380 fi
7381 rm -f core conftest.err conftest.$ac_objext \
7382 conftest$ac_exeext
7383 if ${ac_cv_search_krb5_init_context+:} false; then :
7384 break
7385 fi
7386 done
7387 if ${ac_cv_search_krb5_init_context+:} false; then :
7388
7389 else
7390 ac_cv_search_krb5_init_context=no
7391 fi
7392 rm conftest.$ac_ext
7393 LIBS=$ac_func_search_save_LIBS
7394 fi
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_init_context" >&5
7396 $as_echo "$ac_cv_search_krb5_init_context" >&6; }
7397 ac_res=$ac_cv_search_krb5_init_context
7398 if test "$ac_res" != no; then :
7399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7400
7401 else
7402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7404 as_fn_error $? "*** Cannot find krb5_init_context with -lkrb5 - do you need to install a Kerberos Devel package?
7405 See \`config.log' for more details" "$LINENO" 5; }
7406 fi
7407
7408 fi
7409
7410 # Create LDAP_LIBS which we specify them explicitly rather than lumping them in with LIBS
7411 LDAP_LIBS=$LIBS
7412
7413 LIBS="$saved_LIBS"
7414
7415
7416 for ac_header in ldap.h
7417 do :
7418 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
7419 if test "x$ac_cv_header_ldap_h" = xyes; then :
7420 cat >>confdefs.h <<_ACEOF
7421 #define HAVE_LDAP_H 1
7422 _ACEOF
7423
7424 fi
7425
7426 done
7427
7428 for ac_func in inet_pton inet_ntop
7429 do :
7430 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7431 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7432 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7433 cat >>confdefs.h <<_ACEOF
7434 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7435 _ACEOF
7436
7437 fi
7438 done
7439
7440
7441
7442 LDAP_CFLAGS="-DLDAP_CONFIGURATION"
7443
7444 if test x$ldapcasa = xyes ; then
7445 for ac_header in micasa_mgmd.h
7446 do :
7447 ac_fn_c_check_header_mongrel "$LINENO" "micasa_mgmd.h" "ac_cv_header_micasa_mgmd_h" "$ac_includes_default"
7448 if test "x$ac_cv_header_micasa_mgmd_h" = xyes; then :
7449 cat >>confdefs.h <<_ACEOF
7450 #define HAVE_MICASA_MGMD_H 1
7451 _ACEOF
7452
7453 LDAP_CFLAGS="$LDAP_CFLAGS -DLDAP_CASA_AUTH"
7454
7455 else
7456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7458 as_fn_error $? "*** Cannot find micasa_mgmd.h for ldap casa auth support
7459 See \`config.log' for more details" "$LINENO" 5; }
7460 fi
7461
7462 done
7463
7464 fi
7465
7466 if test x$ldapcrypto = xyes ; then
7467 LDAP_CFLAGS="$LDAP_CFLAGS -DLDAP_USE_SSL"
7468 fi
7469
7470 if test x$ldap_gssapi = xyes; then
7471 LDAP_CFLAGS="$LDAP_CFLAGS -DLDAP_USE_GSSAPI"
7472 fi
7473
7474 LDAP_CFLAGS=$LDAP_CFLAGS
7475
7476 fi
7477
7478 # Append selected warning levels to CFLAGS before substitution (but after
7479 # AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]) & etc).
7480 CFLAGS="$CFLAGS $STD_CWARNINGS"
7481
7482 # Try to add the bind and dhcp include directories
7483 CFLAGS="$CFLAGS -I\$(top_srcdir)/includes -I$BINDDIR/include"
7484
7485 case "$host" in
7486 *-darwin*)
7487 CFLAGS="$CFLAGS -D__APPLE_USE_RFC_3542";;
7488 *-solaris*)
7489 # As of Solaris 11, ethernet dev files are in /dev/net
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/net" >&5
7491 $as_echo_n "checking for /dev/net... " >&6; }
7492 if ${ac_cv_file__dev_net+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 test "$cross_compiling" = yes &&
7496 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
7497 if test -r "/dev/net"; then
7498 ac_cv_file__dev_net=yes
7499 else
7500 ac_cv_file__dev_net=no
7501 fi
7502 fi
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_net" >&5
7504 $as_echo "$ac_cv_file__dev_net" >&6; }
7505 if test "x$ac_cv_file__dev_net" = xyes; then :
7506
7507 $as_echo "#define USE_DEV_NET 1" >>confdefs.h
7508
7509 fi
7510
7511 ;;
7512 esac
7513
7514
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
7516 $as_echo_n "checking for flexible array members... " >&6; }
7517 if ${ac_cv_c_flexmember+:} false; then :
7518 $as_echo_n "(cached) " >&6
7519 else
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7522 #include <stdlib.h>
7523 #include <stdio.h>
7524 #include <stddef.h>
7525 struct s { int n; double d[]; };
7526 int
7527 main ()
7528 {
7529 int m = getchar ();
7530 struct s *p = malloc (offsetof (struct s, d)
7531 + m * sizeof (double));
7532 p->d[0] = 0.0;
7533 return p->d != (double *) NULL;
7534 ;
7535 return 0;
7536 }
7537 _ACEOF
7538 if ac_fn_c_try_compile "$LINENO"; then :
7539 ac_cv_c_flexmember=yes
7540 else
7541 ac_cv_c_flexmember=no
7542 fi
7543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544 fi
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
7546 $as_echo "$ac_cv_c_flexmember" >&6; }
7547 if test $ac_cv_c_flexmember = yes; then
7548
7549 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
7550
7551 else
7552 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
7553
7554 fi
7555
7556
7557 ac_config_files="$ac_config_files Makefile client/Makefile client/tests/Makefile common/Makefile.am common/Makefile common/tests/Makefile dhcpctl/Makefile.am dhcpctl/Makefile includes/Makefile keama/Makefile omapip/Makefile.am omapip/Makefile relay/Makefile relay/tests/Makefile server/Makefile tests/Makefile.am tests/Makefile tests/unittest.sh server/tests/Makefile doc/devel/doxyfile"
7558
7559 cat >confcache <<\_ACEOF
7560 # This file is a shell script that caches the results of configure
7561 # tests run on this system so they can be shared between configure
7562 # scripts and configure runs, see configure's option --config-cache.
7563 # It is not useful on other systems. If it contains results you don't
7564 # want to keep, you may remove or edit it.
7565 #
7566 # config.status only pays attention to the cache file if you give it
7567 # the --recheck option to rerun configure.
7568 #
7569 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7570 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7571 # following values.
7572
7573 _ACEOF
7574
7575 # The following way of writing the cache mishandles newlines in values,
7576 # but we know of no workaround that is simple, portable, and efficient.
7577 # So, we kill variables containing newlines.
7578 # Ultrix sh set writes to stderr and can't be redirected directly,
7579 # and sets the high bit in the cache file unless we assign to the vars.
7580 (
7581 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7582 eval ac_val=\$$ac_var
7583 case $ac_val in #(
7584 *${as_nl}*)
7585 case $ac_var in #(
7586 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7587 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7588 esac
7589 case $ac_var in #(
7590 _ | IFS | as_nl) ;; #(
7591 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7592 *) { eval $ac_var=; unset $ac_var;} ;;
7593 esac ;;
7594 esac
7595 done
7596
7597 (set) 2>&1 |
7598 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7599 *${as_nl}ac_space=\ *)
7600 # `set' does not quote correctly, so add quotes: double-quote
7601 # substitution turns \\\\ into \\, and sed turns \\ into \.
7602 sed -n \
7603 "s/'/'\\\\''/g;
7604 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7605 ;; #(
7606 *)
7607 # `set' quotes correctly as required by POSIX, so do not add quotes.
7608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7609 ;;
7610 esac |
7611 sort
7612 ) |
7613 sed '
7614 /^ac_cv_env_/b end
7615 t clear
7616 :clear
7617 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7618 t end
7619 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7620 :end' >>confcache
7621 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7622 if test -w "$cache_file"; then
7623 if test "x$cache_file" != "x/dev/null"; then
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7625 $as_echo "$as_me: updating cache $cache_file" >&6;}
7626 if test ! -f "$cache_file" || test -h "$cache_file"; then
7627 cat confcache >"$cache_file"
7628 else
7629 case $cache_file in #(
7630 */* | ?:*)
7631 mv -f confcache "$cache_file"$$ &&
7632 mv -f "$cache_file"$$ "$cache_file" ;; #(
7633 *)
7634 mv -f confcache "$cache_file" ;;
7635 esac
7636 fi
7637 fi
7638 else
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7640 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7641 fi
7642 fi
7643 rm -f confcache
7644
7645 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7646 # Let make expand exec_prefix.
7647 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7648
7649 DEFS=-DHAVE_CONFIG_H
7650
7651 ac_libobjs=
7652 ac_ltlibobjs=
7653 U=
7654 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7655 # 1. Remove the extension, and $U if already installed.
7656 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7657 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7658 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7659 # will be set to the directory where LIBOBJS objects are built.
7660 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7661 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7662 done
7663 LIBOBJS=$ac_libobjs
7664
7665 LTLIBOBJS=$ac_ltlibobjs
7666
7667
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7669 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7670 if test -n "$am_sleep_pid"; then
7671 # Hide warnings about reused PIDs.
7672 wait $am_sleep_pid 2>/dev/null
7673 fi
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7675 $as_echo "done" >&6; }
7676 if test -n "$EXEEXT"; then
7677 am__EXEEXT_TRUE=
7678 am__EXEEXT_FALSE='#'
7679 else
7680 am__EXEEXT_TRUE='#'
7681 am__EXEEXT_FALSE=
7682 fi
7683
7684 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7685 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
7686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7687 fi
7688 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7689 as_fn_error $? "conditional \"AMDEP\" was never defined.
7690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7691 fi
7692 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7693 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7695 fi
7696
7697 if test -z "${BIND_ATF_TRUE}" && test -z "${BIND_ATF_FALSE}"; then
7698 as_fn_error $? "conditional \"BIND_ATF\" was never defined.
7699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7700 fi
7701 if test -z "${HAVE_ATF_TRUE}" && test -z "${HAVE_ATF_FALSE}"; then
7702 as_fn_error $? "conditional \"HAVE_ATF\" was never defined.
7703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7704 fi
7705 if test -z "${HAVE_BINDDIR_TRUE}" && test -z "${HAVE_BINDDIR_FALSE}"; then
7706 as_fn_error $? "conditional \"HAVE_BINDDIR\" was never defined.
7707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7708 fi
7709 if test -z "${INSTALL_BIND_TRUE}" && test -z "${INSTALL_BIND_FALSE}"; then
7710 as_fn_error $? "conditional \"INSTALL_BIND\" was never defined.
7711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7712 fi
7713
7714 : "${CONFIG_STATUS=./config.status}"
7715 ac_write_fail=0
7716 ac_clean_files_save=$ac_clean_files
7717 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7719 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7720 as_write_fail=0
7721 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7722 #! $SHELL
7723 # Generated by $as_me.
7724 # Run this file to recreate the current configuration.
7725 # Compiler output produced by configure, useful for debugging
7726 # configure, is in config.log if it exists.
7727
7728 debug=false
7729 ac_cs_recheck=false
7730 ac_cs_silent=false
7731
7732 SHELL=\${CONFIG_SHELL-$SHELL}
7733 export SHELL
7734 _ASEOF
7735 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7736 ## -------------------- ##
7737 ## M4sh Initialization. ##
7738 ## -------------------- ##
7739
7740 # Be more Bourne compatible
7741 DUALCASE=1; export DUALCASE # for MKS sh
7742 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7743 emulate sh
7744 NULLCMD=:
7745 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7746 # is contrary to our usage. Disable this feature.
7747 alias -g '${1+"$@"}'='"$@"'
7748 setopt NO_GLOB_SUBST
7749 else
7750 case `(set -o) 2>/dev/null` in #(
7751 *posix*) :
7752 set -o posix ;; #(
7753 *) :
7754 ;;
7755 esac
7756 fi
7757
7758
7759 as_nl='
7760 '
7761 export as_nl
7762 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7763 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7764 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7765 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7766 # Prefer a ksh shell builtin over an external printf program on Solaris,
7767 # but without wasting forks for bash or zsh.
7768 if test -z "$BASH_VERSION$ZSH_VERSION" \
7769 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7770 as_echo='print -r --'
7771 as_echo_n='print -rn --'
7772 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7773 as_echo='printf %s\n'
7774 as_echo_n='printf %s'
7775 else
7776 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7777 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7778 as_echo_n='/usr/ucb/echo -n'
7779 else
7780 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7781 as_echo_n_body='eval
7782 arg=$1;
7783 case $arg in #(
7784 *"$as_nl"*)
7785 expr "X$arg" : "X\\(.*\\)$as_nl";
7786 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7787 esac;
7788 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7789 '
7790 export as_echo_n_body
7791 as_echo_n='sh -c $as_echo_n_body as_echo'
7792 fi
7793 export as_echo_body
7794 as_echo='sh -c $as_echo_body as_echo'
7795 fi
7796
7797 # The user is always right.
7798 if test "${PATH_SEPARATOR+set}" != set; then
7799 PATH_SEPARATOR=:
7800 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7801 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7802 PATH_SEPARATOR=';'
7803 }
7804 fi
7805
7806
7807 # IFS
7808 # We need space, tab and new line, in precisely that order. Quoting is
7809 # there to prevent editors from complaining about space-tab.
7810 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7811 # splitting by setting IFS to empty value.)
7812 IFS=" "" $as_nl"
7813
7814 # Find who we are. Look in the path if we contain no directory separator.
7815 as_myself=
7816 case $0 in #((
7817 *[\\/]* ) as_myself=$0 ;;
7818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 for as_dir in $PATH
7820 do
7821 IFS=$as_save_IFS
7822 test -z "$as_dir" && as_dir=.
7823 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7824 done
7825 IFS=$as_save_IFS
7826
7827 ;;
7828 esac
7829 # We did not find ourselves, most probably we were run as `sh COMMAND'
7830 # in which case we are not to be found in the path.
7831 if test "x$as_myself" = x; then
7832 as_myself=$0
7833 fi
7834 if test ! -f "$as_myself"; then
7835 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7836 exit 1
7837 fi
7838
7839 # Unset variables that we do not need and which cause bugs (e.g. in
7840 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7841 # suppresses any "Segmentation fault" message there. '((' could
7842 # trigger a bug in pdksh 5.2.14.
7843 for as_var in BASH_ENV ENV MAIL MAILPATH
7844 do eval test x\${$as_var+set} = xset \
7845 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7846 done
7847 PS1='$ '
7848 PS2='> '
7849 PS4='+ '
7850
7851 # NLS nuisances.
7852 LC_ALL=C
7853 export LC_ALL
7854 LANGUAGE=C
7855 export LANGUAGE
7856
7857 # CDPATH.
7858 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7859
7860
7861 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7862 # ----------------------------------------
7863 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7864 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7865 # script with STATUS, using 1 if that was 0.
7866 as_fn_error ()
7867 {
7868 as_status=$1; test $as_status -eq 0 && as_status=1
7869 if test "$4"; then
7870 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7871 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7872 fi
7873 $as_echo "$as_me: error: $2" >&2
7874 as_fn_exit $as_status
7875 } # as_fn_error
7876
7877
7878 # as_fn_set_status STATUS
7879 # -----------------------
7880 # Set $? to STATUS, without forking.
7881 as_fn_set_status ()
7882 {
7883 return $1
7884 } # as_fn_set_status
7885
7886 # as_fn_exit STATUS
7887 # -----------------
7888 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7889 as_fn_exit ()
7890 {
7891 set +e
7892 as_fn_set_status $1
7893 exit $1
7894 } # as_fn_exit
7895
7896 # as_fn_unset VAR
7897 # ---------------
7898 # Portably unset VAR.
7899 as_fn_unset ()
7900 {
7901 { eval $1=; unset $1;}
7902 }
7903 as_unset=as_fn_unset
7904 # as_fn_append VAR VALUE
7905 # ----------------------
7906 # Append the text in VALUE to the end of the definition contained in VAR. Take
7907 # advantage of any shell optimizations that allow amortized linear growth over
7908 # repeated appends, instead of the typical quadratic growth present in naive
7909 # implementations.
7910 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7911 eval 'as_fn_append ()
7912 {
7913 eval $1+=\$2
7914 }'
7915 else
7916 as_fn_append ()
7917 {
7918 eval $1=\$$1\$2
7919 }
7920 fi # as_fn_append
7921
7922 # as_fn_arith ARG...
7923 # ------------------
7924 # Perform arithmetic evaluation on the ARGs, and store the result in the
7925 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7926 # must be portable across $(()) and expr.
7927 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7928 eval 'as_fn_arith ()
7929 {
7930 as_val=$(( $* ))
7931 }'
7932 else
7933 as_fn_arith ()
7934 {
7935 as_val=`expr "$@" || test $? -eq 1`
7936 }
7937 fi # as_fn_arith
7938
7939
7940 if expr a : '\(a\)' >/dev/null 2>&1 &&
7941 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7942 as_expr=expr
7943 else
7944 as_expr=false
7945 fi
7946
7947 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7948 as_basename=basename
7949 else
7950 as_basename=false
7951 fi
7952
7953 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7954 as_dirname=dirname
7955 else
7956 as_dirname=false
7957 fi
7958
7959 as_me=`$as_basename -- "$0" ||
7960 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7961 X"$0" : 'X\(//\)$' \| \
7962 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7963 $as_echo X/"$0" |
7964 sed '/^.*\/\([^/][^/]*\)\/*$/{
7965 s//\1/
7966 q
7967 }
7968 /^X\/\(\/\/\)$/{
7969 s//\1/
7970 q
7971 }
7972 /^X\/\(\/\).*/{
7973 s//\1/
7974 q
7975 }
7976 s/.*/./; q'`
7977
7978 # Avoid depending upon Character Ranges.
7979 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7980 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7981 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7982 as_cr_digits='0123456789'
7983 as_cr_alnum=$as_cr_Letters$as_cr_digits
7984
7985 ECHO_C= ECHO_N= ECHO_T=
7986 case `echo -n x` in #(((((
7987 -n*)
7988 case `echo 'xy\c'` in
7989 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7990 xy) ECHO_C='\c';;
7991 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7992 ECHO_T=' ';;
7993 esac;;
7994 *)
7995 ECHO_N='-n';;
7996 esac
7997
7998 rm -f conf$$ conf$$.exe conf$$.file
7999 if test -d conf$$.dir; then
8000 rm -f conf$$.dir/conf$$.file
8001 else
8002 rm -f conf$$.dir
8003 mkdir conf$$.dir 2>/dev/null
8004 fi
8005 if (echo >conf$$.file) 2>/dev/null; then
8006 if ln -s conf$$.file conf$$ 2>/dev/null; then
8007 as_ln_s='ln -s'
8008 # ... but there are two gotchas:
8009 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8010 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8011 # In both cases, we have to default to `cp -pR'.
8012 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8013 as_ln_s='cp -pR'
8014 elif ln conf$$.file conf$$ 2>/dev/null; then
8015 as_ln_s=ln
8016 else
8017 as_ln_s='cp -pR'
8018 fi
8019 else
8020 as_ln_s='cp -pR'
8021 fi
8022 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8023 rmdir conf$$.dir 2>/dev/null
8024
8025
8026 # as_fn_mkdir_p
8027 # -------------
8028 # Create "$as_dir" as a directory, including parents if necessary.
8029 as_fn_mkdir_p ()
8030 {
8031
8032 case $as_dir in #(
8033 -*) as_dir=./$as_dir;;
8034 esac
8035 test -d "$as_dir" || eval $as_mkdir_p || {
8036 as_dirs=
8037 while :; do
8038 case $as_dir in #(
8039 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8040 *) as_qdir=$as_dir;;
8041 esac
8042 as_dirs="'$as_qdir' $as_dirs"
8043 as_dir=`$as_dirname -- "$as_dir" ||
8044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8045 X"$as_dir" : 'X\(//\)[^/]' \| \
8046 X"$as_dir" : 'X\(//\)$' \| \
8047 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8048 $as_echo X"$as_dir" |
8049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8050 s//\1/
8051 q
8052 }
8053 /^X\(\/\/\)[^/].*/{
8054 s//\1/
8055 q
8056 }
8057 /^X\(\/\/\)$/{
8058 s//\1/
8059 q
8060 }
8061 /^X\(\/\).*/{
8062 s//\1/
8063 q
8064 }
8065 s/.*/./; q'`
8066 test -d "$as_dir" && break
8067 done
8068 test -z "$as_dirs" || eval "mkdir $as_dirs"
8069 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8070
8071
8072 } # as_fn_mkdir_p
8073 if mkdir -p . 2>/dev/null; then
8074 as_mkdir_p='mkdir -p "$as_dir"'
8075 else
8076 test -d ./-p && rmdir ./-p
8077 as_mkdir_p=false
8078 fi
8079
8080
8081 # as_fn_executable_p FILE
8082 # -----------------------
8083 # Test if FILE is an executable regular file.
8084 as_fn_executable_p ()
8085 {
8086 test -f "$1" && test -x "$1"
8087 } # as_fn_executable_p
8088 as_test_x='test -x'
8089 as_executable_p=as_fn_executable_p
8090
8091 # Sed expression to map a string onto a valid CPP name.
8092 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8093
8094 # Sed expression to map a string onto a valid variable name.
8095 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8096
8097
8098 exec 6>&1
8099 ## ----------------------------------- ##
8100 ## Main body of $CONFIG_STATUS script. ##
8101 ## ----------------------------------- ##
8102 _ASEOF
8103 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8104
8105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8106 # Save the log message, to keep $0 and so on meaningful, and to
8107 # report actual input values of CONFIG_FILES etc. instead of their
8108 # values after options handling.
8109 ac_log="
8110 This file was extended by DHCP $as_me 4.4.3b1, which was
8111 generated by GNU Autoconf 2.69. Invocation command line was
8112
8113 CONFIG_FILES = $CONFIG_FILES
8114 CONFIG_HEADERS = $CONFIG_HEADERS
8115 CONFIG_LINKS = $CONFIG_LINKS
8116 CONFIG_COMMANDS = $CONFIG_COMMANDS
8117 $ $0 $@
8118
8119 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8120 "
8121
8122 _ACEOF
8123
8124 case $ac_config_files in *"
8125 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8126 esac
8127
8128 case $ac_config_headers in *"
8129 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8130 esac
8131
8132
8133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8134 # Files that config.status was made for.
8135 config_files="$ac_config_files"
8136 config_headers="$ac_config_headers"
8137 config_commands="$ac_config_commands"
8138
8139 _ACEOF
8140
8141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8142 ac_cs_usage="\
8143 \`$as_me' instantiates files and other configuration actions
8144 from templates according to the current configuration. Unless the files
8145 and actions are specified as TAGs, all are instantiated by default.
8146
8147 Usage: $0 [OPTION]... [TAG]...
8148
8149 -h, --help print this help, then exit
8150 -V, --version print version number and configuration settings, then exit
8151 --config print configuration, then exit
8152 -q, --quiet, --silent
8153 do not print progress messages
8154 -d, --debug don't remove temporary files
8155 --recheck update $as_me by reconfiguring in the same conditions
8156 --file=FILE[:TEMPLATE]
8157 instantiate the configuration file FILE
8158 --header=FILE[:TEMPLATE]
8159 instantiate the configuration header FILE
8160
8161 Configuration files:
8162 $config_files
8163
8164 Configuration headers:
8165 $config_headers
8166
8167 Configuration commands:
8168 $config_commands
8169
8170 Report bugs to <dhcp-users@isc.org>."
8171
8172 _ACEOF
8173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8174 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8175 ac_cs_version="\\
8176 DHCP config.status 4.4.3b1
8177 configured by $0, generated by GNU Autoconf 2.69,
8178 with options \\"\$ac_cs_config\\"
8179
8180 Copyright (C) 2012 Free Software Foundation, Inc.
8181 This config.status script is free software; the Free Software Foundation
8182 gives unlimited permission to copy, distribute and modify it."
8183
8184 ac_pwd='$ac_pwd'
8185 srcdir='$srcdir'
8186 INSTALL='$INSTALL'
8187 MKDIR_P='$MKDIR_P'
8188 AWK='$AWK'
8189 test -n "\$AWK" || AWK=awk
8190 _ACEOF
8191
8192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8193 # The default lists apply if the user does not specify any file.
8194 ac_need_defaults=:
8195 while test $# != 0
8196 do
8197 case $1 in
8198 --*=?*)
8199 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8200 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8201 ac_shift=:
8202 ;;
8203 --*=)
8204 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8205 ac_optarg=
8206 ac_shift=:
8207 ;;
8208 *)
8209 ac_option=$1
8210 ac_optarg=$2
8211 ac_shift=shift
8212 ;;
8213 esac
8214
8215 case $ac_option in
8216 # Handling of the options.
8217 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8218 ac_cs_recheck=: ;;
8219 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8220 $as_echo "$ac_cs_version"; exit ;;
8221 --config | --confi | --conf | --con | --co | --c )
8222 $as_echo "$ac_cs_config"; exit ;;
8223 --debug | --debu | --deb | --de | --d | -d )
8224 debug=: ;;
8225 --file | --fil | --fi | --f )
8226 $ac_shift
8227 case $ac_optarg in
8228 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8229 '') as_fn_error $? "missing file argument" ;;
8230 esac
8231 as_fn_append CONFIG_FILES " '$ac_optarg'"
8232 ac_need_defaults=false;;
8233 --header | --heade | --head | --hea )
8234 $ac_shift
8235 case $ac_optarg in
8236 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8237 esac
8238 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8239 ac_need_defaults=false;;
8240 --he | --h)
8241 # Conflict between --help and --header
8242 as_fn_error $? "ambiguous option: \`$1'
8243 Try \`$0 --help' for more information.";;
8244 --help | --hel | -h )
8245 $as_echo "$ac_cs_usage"; exit ;;
8246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8247 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8248 ac_cs_silent=: ;;
8249
8250 # This is an error.
8251 -*) as_fn_error $? "unrecognized option: \`$1'
8252 Try \`$0 --help' for more information." ;;
8253
8254 *) as_fn_append ac_config_targets " $1"
8255 ac_need_defaults=false ;;
8256
8257 esac
8258 shift
8259 done
8260
8261 ac_configure_extra_args=
8262
8263 if $ac_cs_silent; then
8264 exec 6>/dev/null
8265 ac_configure_extra_args="$ac_configure_extra_args --silent"
8266 fi
8267
8268 _ACEOF
8269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8270 if \$ac_cs_recheck; then
8271 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8272 shift
8273 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8274 CONFIG_SHELL='$SHELL'
8275 export CONFIG_SHELL
8276 exec "\$@"
8277 fi
8278
8279 _ACEOF
8280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8281 exec 5>>config.log
8282 {
8283 echo
8284 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8285 ## Running $as_me. ##
8286 _ASBOX
8287 $as_echo "$ac_log"
8288 } >&5
8289
8290 _ACEOF
8291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8292 #
8293 # INIT-COMMANDS
8294 #
8295 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
8296
8297 _ACEOF
8298
8299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8300
8301 # Handling of arguments.
8302 for ac_config_target in $ac_config_targets
8303 do
8304 case $ac_config_target in
8305 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8306 "includes/config.h") CONFIG_HEADERS="$CONFIG_HEADERS includes/config.h" ;;
8307 "$srcdir/bind/Makefile") CONFIG_FILES="$CONFIG_FILES $srcdir/bind/Makefile" ;;
8308 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8309 "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
8310 "client/tests/Makefile") CONFIG_FILES="$CONFIG_FILES client/tests/Makefile" ;;
8311 "common/Makefile.am") CONFIG_FILES="$CONFIG_FILES common/Makefile.am" ;;
8312 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
8313 "common/tests/Makefile") CONFIG_FILES="$CONFIG_FILES common/tests/Makefile" ;;
8314 "dhcpctl/Makefile.am") CONFIG_FILES="$CONFIG_FILES dhcpctl/Makefile.am" ;;
8315 "dhcpctl/Makefile") CONFIG_FILES="$CONFIG_FILES dhcpctl/Makefile" ;;
8316 "includes/Makefile") CONFIG_FILES="$CONFIG_FILES includes/Makefile" ;;
8317 "keama/Makefile") CONFIG_FILES="$CONFIG_FILES keama/Makefile" ;;
8318 "omapip/Makefile.am") CONFIG_FILES="$CONFIG_FILES omapip/Makefile.am" ;;
8319 "omapip/Makefile") CONFIG_FILES="$CONFIG_FILES omapip/Makefile" ;;
8320 "relay/Makefile") CONFIG_FILES="$CONFIG_FILES relay/Makefile" ;;
8321 "relay/tests/Makefile") CONFIG_FILES="$CONFIG_FILES relay/tests/Makefile" ;;
8322 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
8323 "tests/Makefile.am") CONFIG_FILES="$CONFIG_FILES tests/Makefile.am" ;;
8324 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
8325 "tests/unittest.sh") CONFIG_FILES="$CONFIG_FILES tests/unittest.sh" ;;
8326 "server/tests/Makefile") CONFIG_FILES="$CONFIG_FILES server/tests/Makefile" ;;
8327 "doc/devel/doxyfile") CONFIG_FILES="$CONFIG_FILES doc/devel/doxyfile" ;;
8328
8329 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8330 esac
8331 done
8332
8333
8334 # If the user did not use the arguments to specify the items to instantiate,
8335 # then the envvar interface is used. Set only those that are not.
8336 # We use the long form for the default assignment because of an extremely
8337 # bizarre bug on SunOS 4.1.3.
8338 if $ac_need_defaults; then
8339 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8340 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8341 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8342 fi
8343
8344 # Have a temporary directory for convenience. Make it in the build tree
8345 # simply because there is no reason against having it here, and in addition,
8346 # creating and moving files from /tmp can sometimes cause problems.
8347 # Hook for its removal unless debugging.
8348 # Note that there is a small window in which the directory will not be cleaned:
8349 # after its creation but before its name has been assigned to `$tmp'.
8350 $debug ||
8351 {
8352 tmp= ac_tmp=
8353 trap 'exit_status=$?
8354 : "${ac_tmp:=$tmp}"
8355 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8356 ' 0
8357 trap 'as_fn_exit 1' 1 2 13 15
8358 }
8359 # Create a (secure) tmp directory for tmp files.
8360
8361 {
8362 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8363 test -d "$tmp"
8364 } ||
8365 {
8366 tmp=./conf$$-$RANDOM
8367 (umask 077 && mkdir "$tmp")
8368 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8369 ac_tmp=$tmp
8370
8371 # Set up the scripts for CONFIG_FILES section.
8372 # No need to generate them if there are no CONFIG_FILES.
8373 # This happens for instance with `./config.status config.h'.
8374 if test -n "$CONFIG_FILES"; then
8375
8376
8377 ac_cr=`echo X | tr X '\015'`
8378 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8379 # But we know of no other shell where ac_cr would be empty at this
8380 # point, so we can use a bashism as a fallback.
8381 if test "x$ac_cr" = x; then
8382 eval ac_cr=\$\'\\r\'
8383 fi
8384 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8385 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8386 ac_cs_awk_cr='\\r'
8387 else
8388 ac_cs_awk_cr=$ac_cr
8389 fi
8390
8391 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8392 _ACEOF
8393
8394
8395 {
8396 echo "cat >conf$$subs.awk <<_ACEOF" &&
8397 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8398 echo "_ACEOF"
8399 } >conf$$subs.sh ||
8400 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8401 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8402 ac_delim='%!_!# '
8403 for ac_last_try in false false false false false :; do
8404 . ./conf$$subs.sh ||
8405 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8406
8407 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8408 if test $ac_delim_n = $ac_delim_num; then
8409 break
8410 elif $ac_last_try; then
8411 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8412 else
8413 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8414 fi
8415 done
8416 rm -f conf$$subs.sh
8417
8418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8419 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8420 _ACEOF
8421 sed -n '
8422 h
8423 s/^/S["/; s/!.*/"]=/
8424 p
8425 g
8426 s/^[^!]*!//
8427 :repl
8428 t repl
8429 s/'"$ac_delim"'$//
8430 t delim
8431 :nl
8432 h
8433 s/\(.\{148\}\)..*/\1/
8434 t more1
8435 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8436 p
8437 n
8438 b repl
8439 :more1
8440 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8441 p
8442 g
8443 s/.\{148\}//
8444 t nl
8445 :delim
8446 h
8447 s/\(.\{148\}\)..*/\1/
8448 t more2
8449 s/["\\]/\\&/g; s/^/"/; s/$/"/
8450 p
8451 b
8452 :more2
8453 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8454 p
8455 g
8456 s/.\{148\}//
8457 t delim
8458 ' <conf$$subs.awk | sed '
8459 /^[^""]/{
8460 N
8461 s/\n//
8462 }
8463 ' >>$CONFIG_STATUS || ac_write_fail=1
8464 rm -f conf$$subs.awk
8465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8466 _ACAWK
8467 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8468 for (key in S) S_is_set[key] = 1
8469 FS = "\a"
8470
8471 }
8472 {
8473 line = $ 0
8474 nfields = split(line, field, "@")
8475 substed = 0
8476 len = length(field[1])
8477 for (i = 2; i < nfields; i++) {
8478 key = field[i]
8479 keylen = length(key)
8480 if (S_is_set[key]) {
8481 value = S[key]
8482 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8483 len += length(value) + length(field[++i])
8484 substed = 1
8485 } else
8486 len += 1 + keylen
8487 }
8488
8489 print line
8490 }
8491
8492 _ACAWK
8493 _ACEOF
8494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8495 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8496 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8497 else
8498 cat
8499 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8500 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8501 _ACEOF
8502
8503 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8504 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8505 # trailing colons and then remove the whole line if VPATH becomes empty
8506 # (actually we leave an empty line to preserve line numbers).
8507 if test "x$srcdir" = x.; then
8508 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8509 h
8510 s///
8511 s/^/:/
8512 s/[ ]*$/:/
8513 s/:\$(srcdir):/:/g
8514 s/:\${srcdir}:/:/g
8515 s/:@srcdir@:/:/g
8516 s/^:*//
8517 s/:*$//
8518 x
8519 s/\(=[ ]*\).*/\1/
8520 G
8521 s/\n//
8522 s/^[^=]*=[ ]*$//
8523 }'
8524 fi
8525
8526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8527 fi # test -n "$CONFIG_FILES"
8528
8529 # Set up the scripts for CONFIG_HEADERS section.
8530 # No need to generate them if there are no CONFIG_HEADERS.
8531 # This happens for instance with `./config.status Makefile'.
8532 if test -n "$CONFIG_HEADERS"; then
8533 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8534 BEGIN {
8535 _ACEOF
8536
8537 # Transform confdefs.h into an awk script `defines.awk', embedded as
8538 # here-document in config.status, that substitutes the proper values into
8539 # config.h.in to produce config.h.
8540
8541 # Create a delimiter string that does not exist in confdefs.h, to ease
8542 # handling of long lines.
8543 ac_delim='%!_!# '
8544 for ac_last_try in false false :; do
8545 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8546 if test -z "$ac_tt"; then
8547 break
8548 elif $ac_last_try; then
8549 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8550 else
8551 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8552 fi
8553 done
8554
8555 # For the awk script, D is an array of macro values keyed by name,
8556 # likewise P contains macro parameters if any. Preserve backslash
8557 # newline sequences.
8558
8559 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8560 sed -n '
8561 s/.\{148\}/&'"$ac_delim"'/g
8562 t rset
8563 :rset
8564 s/^[ ]*#[ ]*define[ ][ ]*/ /
8565 t def
8566 d
8567 :def
8568 s/\\$//
8569 t bsnl
8570 s/["\\]/\\&/g
8571 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8572 D["\1"]=" \3"/p
8573 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8574 d
8575 :bsnl
8576 s/["\\]/\\&/g
8577 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8578 D["\1"]=" \3\\\\\\n"\\/p
8579 t cont
8580 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8581 t cont
8582 d
8583 :cont
8584 n
8585 s/.\{148\}/&'"$ac_delim"'/g
8586 t clear
8587 :clear
8588 s/\\$//
8589 t bsnlc
8590 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8591 d
8592 :bsnlc
8593 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8594 b cont
8595 ' <confdefs.h | sed '
8596 s/'"$ac_delim"'/"\\\
8597 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8598
8599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8600 for (key in D) D_is_set[key] = 1
8601 FS = "\a"
8602 }
8603 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8604 line = \$ 0
8605 split(line, arg, " ")
8606 if (arg[1] == "#") {
8607 defundef = arg[2]
8608 mac1 = arg[3]
8609 } else {
8610 defundef = substr(arg[1], 2)
8611 mac1 = arg[2]
8612 }
8613 split(mac1, mac2, "(") #)
8614 macro = mac2[1]
8615 prefix = substr(line, 1, index(line, defundef) - 1)
8616 if (D_is_set[macro]) {
8617 # Preserve the white space surrounding the "#".
8618 print prefix "define", macro P[macro] D[macro]
8619 next
8620 } else {
8621 # Replace #undef with comments. This is necessary, for example,
8622 # in the case of _POSIX_SOURCE, which is predefined and required
8623 # on some systems where configure will not decide to define it.
8624 if (defundef == "undef") {
8625 print "/*", prefix defundef, macro, "*/"
8626 next
8627 }
8628 }
8629 }
8630 { print }
8631 _ACAWK
8632 _ACEOF
8633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8634 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8635 fi # test -n "$CONFIG_HEADERS"
8636
8637
8638 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8639 shift
8640 for ac_tag
8641 do
8642 case $ac_tag in
8643 :[FHLC]) ac_mode=$ac_tag; continue;;
8644 esac
8645 case $ac_mode$ac_tag in
8646 :[FHL]*:*);;
8647 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8648 :[FH]-) ac_tag=-:-;;
8649 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8650 esac
8651 ac_save_IFS=$IFS
8652 IFS=:
8653 set x $ac_tag
8654 IFS=$ac_save_IFS
8655 shift
8656 ac_file=$1
8657 shift
8658
8659 case $ac_mode in
8660 :L) ac_source=$1;;
8661 :[FH])
8662 ac_file_inputs=
8663 for ac_f
8664 do
8665 case $ac_f in
8666 -) ac_f="$ac_tmp/stdin";;
8667 *) # Look for the file first in the build tree, then in the source tree
8668 # (if the path is not absolute). The absolute path cannot be DOS-style,
8669 # because $ac_f cannot contain `:'.
8670 test -f "$ac_f" ||
8671 case $ac_f in
8672 [\\/$]*) false;;
8673 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8674 esac ||
8675 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8676 esac
8677 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8678 as_fn_append ac_file_inputs " '$ac_f'"
8679 done
8680
8681 # Let's still pretend it is `configure' which instantiates (i.e., don't
8682 # use $as_me), people would be surprised to read:
8683 # /* config.h. Generated by config.status. */
8684 configure_input='Generated from '`
8685 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8686 `' by configure.'
8687 if test x"$ac_file" != x-; then
8688 configure_input="$ac_file. $configure_input"
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8690 $as_echo "$as_me: creating $ac_file" >&6;}
8691 fi
8692 # Neutralize special characters interpreted by sed in replacement strings.
8693 case $configure_input in #(
8694 *\&* | *\|* | *\\* )
8695 ac_sed_conf_input=`$as_echo "$configure_input" |
8696 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8697 *) ac_sed_conf_input=$configure_input;;
8698 esac
8699
8700 case $ac_tag in
8701 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8702 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8703 esac
8704 ;;
8705 esac
8706
8707 ac_dir=`$as_dirname -- "$ac_file" ||
8708 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8709 X"$ac_file" : 'X\(//\)[^/]' \| \
8710 X"$ac_file" : 'X\(//\)$' \| \
8711 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8712 $as_echo X"$ac_file" |
8713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8714 s//\1/
8715 q
8716 }
8717 /^X\(\/\/\)[^/].*/{
8718 s//\1/
8719 q
8720 }
8721 /^X\(\/\/\)$/{
8722 s//\1/
8723 q
8724 }
8725 /^X\(\/\).*/{
8726 s//\1/
8727 q
8728 }
8729 s/.*/./; q'`
8730 as_dir="$ac_dir"; as_fn_mkdir_p
8731 ac_builddir=.
8732
8733 case "$ac_dir" in
8734 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8735 *)
8736 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8737 # A ".." for each directory in $ac_dir_suffix.
8738 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8739 case $ac_top_builddir_sub in
8740 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8741 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8742 esac ;;
8743 esac
8744 ac_abs_top_builddir=$ac_pwd
8745 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8746 # for backward compatibility:
8747 ac_top_builddir=$ac_top_build_prefix
8748
8749 case $srcdir in
8750 .) # We are building in place.
8751 ac_srcdir=.
8752 ac_top_srcdir=$ac_top_builddir_sub
8753 ac_abs_top_srcdir=$ac_pwd ;;
8754 [\\/]* | ?:[\\/]* ) # Absolute name.
8755 ac_srcdir=$srcdir$ac_dir_suffix;
8756 ac_top_srcdir=$srcdir
8757 ac_abs_top_srcdir=$srcdir ;;
8758 *) # Relative name.
8759 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8760 ac_top_srcdir=$ac_top_build_prefix$srcdir
8761 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8762 esac
8763 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8764
8765
8766 case $ac_mode in
8767 :F)
8768 #
8769 # CONFIG_FILE
8770 #
8771
8772 case $INSTALL in
8773 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8774 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8775 esac
8776 ac_MKDIR_P=$MKDIR_P
8777 case $MKDIR_P in
8778 [\\/$]* | ?:[\\/]* ) ;;
8779 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8780 esac
8781 _ACEOF
8782
8783
8784 # Neutralize VPATH when `$srcdir' = `.'.
8785 # Shell code in configure.ac might set extrasub.
8786 # FIXME: do we really want to maintain this feature?
8787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8788 ac_sed_extra="$ac_vpsub
8789 $extrasub
8790 _ACEOF
8791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8792 :t
8793 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8794 s|@configure_input@|$ac_sed_conf_input|;t t
8795 s&@top_builddir@&$ac_top_builddir_sub&;t t
8796 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8797 s&@srcdir@&$ac_srcdir&;t t
8798 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8799 s&@top_srcdir@&$ac_top_srcdir&;t t
8800 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8801 s&@builddir@&$ac_builddir&;t t
8802 s&@abs_builddir@&$ac_abs_builddir&;t t
8803 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8804 s&@INSTALL@&$ac_INSTALL&;t t
8805 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8806 "
8807 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8808 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8809
8810
8811 rm -f "$ac_tmp/stdin"
8812 case $ac_file in
8813 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8814 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8815 esac \
8816 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8817 ;;
8818 :H)
8819 #
8820 # CONFIG_HEADER
8821 #
8822 if test x"$ac_file" != x-; then
8823 {
8824 $as_echo "/* $configure_input */" \
8825 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8826 } >"$ac_tmp/config.h" \
8827 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8828 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8830 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8831 else
8832 rm -f "$ac_file"
8833 mv "$ac_tmp/config.h" "$ac_file" \
8834 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8835 fi
8836 else
8837 $as_echo "/* $configure_input */" \
8838 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8839 || as_fn_error $? "could not create -" "$LINENO" 5
8840 fi
8841 # Compute "$ac_file"'s index in $config_headers.
8842 _am_arg="$ac_file"
8843 _am_stamp_count=1
8844 for _am_header in $config_headers :; do
8845 case $_am_header in
8846 $_am_arg | $_am_arg:* )
8847 break ;;
8848 * )
8849 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8850 esac
8851 done
8852 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8853 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8854 X"$_am_arg" : 'X\(//\)[^/]' \| \
8855 X"$_am_arg" : 'X\(//\)$' \| \
8856 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8857 $as_echo X"$_am_arg" |
8858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8859 s//\1/
8860 q
8861 }
8862 /^X\(\/\/\)[^/].*/{
8863 s//\1/
8864 q
8865 }
8866 /^X\(\/\/\)$/{
8867 s//\1/
8868 q
8869 }
8870 /^X\(\/\).*/{
8871 s//\1/
8872 q
8873 }
8874 s/.*/./; q'`/stamp-h$_am_stamp_count
8875 ;;
8876
8877 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8878 $as_echo "$as_me: executing $ac_file commands" >&6;}
8879 ;;
8880 esac
8881
8882
8883 case $ac_file$ac_mode in
8884 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8885 # Older Autoconf quotes --file arguments for eval, but not when files
8886 # are listed without --file. Let's play safe and only enable the eval
8887 # if we detect the quoting.
8888 # TODO: see whether this extra hack can be removed once we start
8889 # requiring Autoconf 2.70 or later.
8890 case $CONFIG_FILES in #(
8891 *\'*) :
8892 eval set x "$CONFIG_FILES" ;; #(
8893 *) :
8894 set x $CONFIG_FILES ;; #(
8895 *) :
8896 ;;
8897 esac
8898 shift
8899 # Used to flag and report bootstrapping failures.
8900 am_rc=0
8901 for am_mf
8902 do
8903 # Strip MF so we end up with the name of the file.
8904 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
8905 # Check whether this is an Automake generated Makefile which includes
8906 # dependency-tracking related rules and includes.
8907 # Grep'ing the whole file directly is not great: AIX grep has a line
8908 # limit of 2048, but all sed's we know have understand at least 4000.
8909 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
8910 || continue
8911 am_dirpart=`$as_dirname -- "$am_mf" ||
8912 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8913 X"$am_mf" : 'X\(//\)[^/]' \| \
8914 X"$am_mf" : 'X\(//\)$' \| \
8915 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8916 $as_echo X"$am_mf" |
8917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8918 s//\1/
8919 q
8920 }
8921 /^X\(\/\/\)[^/].*/{
8922 s//\1/
8923 q
8924 }
8925 /^X\(\/\/\)$/{
8926 s//\1/
8927 q
8928 }
8929 /^X\(\/\).*/{
8930 s//\1/
8931 q
8932 }
8933 s/.*/./; q'`
8934 am_filepart=`$as_basename -- "$am_mf" ||
8935 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
8936 X"$am_mf" : 'X\(//\)$' \| \
8937 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8938 $as_echo X/"$am_mf" |
8939 sed '/^.*\/\([^/][^/]*\)\/*$/{
8940 s//\1/
8941 q
8942 }
8943 /^X\/\(\/\/\)$/{
8944 s//\1/
8945 q
8946 }
8947 /^X\/\(\/\).*/{
8948 s//\1/
8949 q
8950 }
8951 s/.*/./; q'`
8952 { echo "$as_me:$LINENO: cd "$am_dirpart" \
8953 && sed -e '/# am--include-marker/d' "$am_filepart" \
8954 | $MAKE -f - am--depfiles" >&5
8955 (cd "$am_dirpart" \
8956 && sed -e '/# am--include-marker/d' "$am_filepart" \
8957 | $MAKE -f - am--depfiles) >&5 2>&5
8958 ac_status=$?
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } || am_rc=$?
8961 done
8962 if test $am_rc -ne 0; then
8963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8965 as_fn_error $? "Something went wrong bootstrapping makefile fragments
8966 for automatic dependency tracking. If GNU make was not used, consider
8967 re-running the configure script with MAKE=\"gmake\" (or whatever is
8968 necessary). You can also try re-running configure with the
8969 '--disable-dependency-tracking' option to at least be able to build
8970 the package (albeit without support for automatic dependency tracking).
8971 See \`config.log' for more details" "$LINENO" 5; }
8972 fi
8973 { am_dirpart=; unset am_dirpart;}
8974 { am_filepart=; unset am_filepart;}
8975 { am_mf=; unset am_mf;}
8976 { am_rc=; unset am_rc;}
8977 rm -f conftest-deps.mk
8978 }
8979 ;;
8980
8981 esac
8982 done # for ac_tag
8983
8984
8985 as_fn_exit 0
8986 _ACEOF
8987 ac_clean_files=$ac_clean_files_save
8988
8989 test $ac_write_fail = 0 ||
8990 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8991
8992
8993 # configure is writing to config.log, and then calls config.status.
8994 # config.status does its own redirection, appending to config.log.
8995 # Unfortunately, on DOS this fails, as config.log is still kept open
8996 # by configure, so config.status won't be able to write to it; its
8997 # output is simply discarded. So we exec the FD to /dev/null,
8998 # effectively closing config.log, so it can be properly (re)opened and
8999 # appended to by config.status. When coming back to configure, we
9000 # need to make the FD available again.
9001 if test "$no_create" != yes; then
9002 ac_cs_success=:
9003 ac_config_status_args=
9004 test "$silent" = yes &&
9005 ac_config_status_args="$ac_config_status_args --quiet"
9006 exec 5>/dev/null
9007 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9008 exec 5>>config.log
9009 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9010 # would make configure fail if this is the last instruction.
9011 $ac_cs_success || as_fn_exit 1
9012 fi
9013 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9015 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9016 fi
9017
9018
9019
9020 if test "$enable_dhcpv4o6" = "yes"; then
9021 DHCP_VERSIONS="DHCPv4, DHCPv6 and DHCPv4-over-DHCPv6"
9022 elif test "$enable_dhcpv6" != "no"; then
9023 DHCP_VERSIONS="DHCPv4 and DHCPv6"
9024 else
9025 DHCP_VERSIONS="DHCPv4"
9026 fi
9027
9028 cat > config.report << END
9029
9030 ISC DHCP source configure results:
9031 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
9032
9033 Package:
9034 Name: $PACKAGE_NAME
9035 Version: $PACKAGE_VERSION
9036
9037 C Compiler: $CC
9038
9039 Flags:
9040 DEFS: $DEFS
9041 CFLAGS: $CFLAGS
9042
9043 DHCP versions: $DHCP_VERSIONS
9044
9045 Features:
9046 debug: $enable_debug
9047 failover: $enable_failover
9048 execute: $enable_execute
9049 binary-leases: $enable_binary_leases
9050 dhcpv6: $enable_dhcpv6
9051 delayed-ack: $enable_delayed_ack
9052 dhcpv4o6: $enable_dhcpv4o6
9053 relay-port: $enable_relay_port
9054
9055 Developer:
9056 ATF unittests : $atf_path
9057
9058 END
9059 # TODO: Add Perl system tests
9060
9061 if test "$atf_path" != "no"
9062 then
9063 echo "ATF_CFLAGS : $ATF_CFLAGS" >> config.report
9064 echo "ATF_LDFLAGS : $ATF_LDFLAGS" >> config.report
9065 echo "ATF_BIN : $ATF_BIN" >> config.report
9066 echo
9067 fi
9068
9069 cat config.report
9070
9071 echo
9072 echo Now you can type "make" to build ISC DHCP
9073 echo