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