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