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