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