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