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