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