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