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