Remove building with NOCRYPTO option
[minix.git] / external / bsd / dhcp / dist / configure
bloba0e6969497abc7597377e5e6a50b0ee6d015b24c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for DHCP 4.3.0.
5 # Report bugs to <dhcp-users@isc.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 *) :
32 esac
36 as_nl='
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
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 *) :
176 esac
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; }
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 :
192 else
193 exitcode=1; echo positional parameters were not saved.
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
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
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
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
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
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."
275 exit 1
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
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
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 ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
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/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
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"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
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 ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
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 ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
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 ()
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
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
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
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
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
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/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
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
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 '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
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; }
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
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;;
513 ECHO_N='-n';;
514 esac
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
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'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
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
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
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'"
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'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
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`
569 # Initializations.
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=
580 # Identity of this package.
581 PACKAGE_NAME='DHCP'
582 PACKAGE_TARNAME='dhcp'
583 PACKAGE_VERSION='4.3.0'
584 PACKAGE_STRING='DHCP 4.3.0'
585 PACKAGE_BUGREPORT='dhcp-users@isc.org'
586 PACKAGE_URL=''
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"
624 ac_subst_vars='am__EXEEXT_FALSE
625 am__EXEEXT_TRUE
626 LTLIBOBJS
627 LIBOBJS
628 LDAP_CFLAGS
629 ac_prefix_program
630 HAVE_ATF_FALSE
631 HAVE_ATF_TRUE
632 ATF_LDFLAGS
633 ATF_CFLAGS
634 byte_order
635 RANLIB
636 EGREP
637 GREP
639 am__fastdepCC_FALSE
640 am__fastdepCC_TRUE
641 CCDEPMODE
642 am__nodep
643 AMDEPBACKSLASH
644 AMDEP_FALSE
645 AMDEP_TRUE
646 am__quote
647 am__include
648 DEPDIR
649 OBJEXT
650 EXEEXT
651 ac_ct_CC
652 CPPFLAGS
653 LDFLAGS
654 CFLAGS
656 host_os
657 host_vendor
658 host_cpu
659 host
660 build_os
661 build_vendor
662 build_cpu
663 build
664 MAINT
665 MAINTAINER_MODE_FALSE
666 MAINTAINER_MODE_TRUE
667 AM_BACKSLASH
668 AM_DEFAULT_VERBOSITY
669 AM_DEFAULT_V
670 AM_V
671 am__untar
672 am__tar
673 AMTAR
674 am__leading_dot
675 SET_MAKE
677 mkdir_p
678 MKDIR_P
679 INSTALL_STRIP_PROGRAM
680 STRIP
681 install_sh
682 MAKEINFO
683 AUTOHEADER
684 AUTOMAKE
685 AUTOCONF
686 ACLOCAL
687 VERSION
688 PACKAGE
689 CYGPATH_W
690 am__isrc
691 INSTALL_DATA
692 INSTALL_SCRIPT
693 INSTALL_PROGRAM
694 target_alias
695 host_alias
696 build_alias
697 LIBS
698 ECHO_T
699 ECHO_N
700 ECHO_C
701 DEFS
702 mandir
703 localedir
704 libdir
705 psdir
706 pdfdir
707 dvidir
708 htmldir
709 infodir
710 docdir
711 oldincludedir
712 includedir
713 localstatedir
714 sharedstatedir
715 sysconfdir
716 datadir
717 datarootdir
718 libexecdir
719 sbindir
720 bindir
721 program_transform_name
722 prefix
723 exec_prefix
724 PACKAGE_URL
725 PACKAGE_BUGREPORT
726 PACKAGE_STRING
727 PACKAGE_VERSION
728 PACKAGE_TARNAME
729 PACKAGE_NAME
730 PATH_SEPARATOR
731 SHELL'
732 ac_subst_files=''
733 ac_user_opts='
734 enable_option_checking
735 enable_silent_rules
736 enable_maintainer_mode
737 enable_dependency_tracking
738 enable_debug
739 enable_failover
740 enable_execute
741 enable_tracing
742 enable_delayed_ack
743 enable_dhcpv6
744 enable_paranoia
745 enable_early_chroot
746 enable_ipv4_pktinfo
747 enable_use_sockets
748 enable_secs_byteorder
749 with_atf
750 with_srv_lease_file
751 with_srv6_lease_file
752 with_cli_lease_file
753 with_cli6_lease_file
754 with_srv_pid_file
755 with_srv6_pid_file
756 with_cli_pid_file
757 with_cli6_pid_file
758 with_relay_pid_file
759 with_relay6_pid_file
760 with_libbind
761 with_ldap
762 with_ldapcrypto
764 ac_precious_vars='build_alias
765 host_alias
766 target_alias
768 CFLAGS
769 LDFLAGS
770 LIBS
771 CPPFLAGS
772 CPP'
775 # Initialize some variables set by options.
776 ac_init_help=
777 ac_init_version=false
778 ac_unrecognized_opts=
779 ac_unrecognized_sep=
780 # The variables have the same names as the options, with
781 # dashes changed to underlines.
782 cache_file=/dev/null
783 exec_prefix=NONE
784 no_create=
785 no_recursion=
786 prefix=NONE
787 program_prefix=NONE
788 program_suffix=NONE
789 program_transform_name=s,x,x,
790 silent=
791 site=
792 srcdir=
793 verbose=
794 x_includes=NONE
795 x_libraries=NONE
797 # Installation directory options.
798 # These are left unexpanded so users can "make install exec_prefix=/foo"
799 # and all the variables that are supposed to be based on exec_prefix
800 # by default will actually change.
801 # Use braces instead of parens because sh, perl, etc. also accept them.
802 # (The list follows the same order as the GNU Coding Standards.)
803 bindir='${exec_prefix}/bin'
804 sbindir='${exec_prefix}/sbin'
805 libexecdir='${exec_prefix}/libexec'
806 datarootdir='${prefix}/share'
807 datadir='${datarootdir}'
808 sysconfdir='${prefix}/etc'
809 sharedstatedir='${prefix}/com'
810 localstatedir='${prefix}/var'
811 includedir='${prefix}/include'
812 oldincludedir='/usr/include'
813 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
814 infodir='${datarootdir}/info'
815 htmldir='${docdir}'
816 dvidir='${docdir}'
817 pdfdir='${docdir}'
818 psdir='${docdir}'
819 libdir='${exec_prefix}/lib'
820 localedir='${datarootdir}/locale'
821 mandir='${datarootdir}/man'
823 ac_prev=
824 ac_dashdash=
825 for ac_option
827 # If the previous option needs an argument, assign it.
828 if test -n "$ac_prev"; then
829 eval $ac_prev=\$ac_option
830 ac_prev=
831 continue
834 case $ac_option in
835 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
836 *=) ac_optarg= ;;
837 *) ac_optarg=yes ;;
838 esac
840 # Accept the important Cygnus configure options, so we can diagnose typos.
842 case $ac_dashdash$ac_option in
844 ac_dashdash=yes ;;
846 -bindir | --bindir | --bindi | --bind | --bin | --bi)
847 ac_prev=bindir ;;
848 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
849 bindir=$ac_optarg ;;
851 -build | --build | --buil | --bui | --bu)
852 ac_prev=build_alias ;;
853 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
854 build_alias=$ac_optarg ;;
856 -cache-file | --cache-file | --cache-fil | --cache-fi \
857 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
858 ac_prev=cache_file ;;
859 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
860 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
861 cache_file=$ac_optarg ;;
863 --config-cache | -C)
864 cache_file=config.cache ;;
866 -datadir | --datadir | --datadi | --datad)
867 ac_prev=datadir ;;
868 -datadir=* | --datadir=* | --datadi=* | --datad=*)
869 datadir=$ac_optarg ;;
871 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
872 | --dataroo | --dataro | --datar)
873 ac_prev=datarootdir ;;
874 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
875 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
876 datarootdir=$ac_optarg ;;
878 -disable-* | --disable-*)
879 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882 as_fn_error $? "invalid feature name: $ac_useropt"
883 ac_useropt_orig=$ac_useropt
884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885 case $ac_user_opts in
887 "enable_$ac_useropt"
888 "*) ;;
889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
890 ac_unrecognized_sep=', ';;
891 esac
892 eval enable_$ac_useropt=no ;;
894 -docdir | --docdir | --docdi | --doc | --do)
895 ac_prev=docdir ;;
896 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897 docdir=$ac_optarg ;;
899 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
900 ac_prev=dvidir ;;
901 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902 dvidir=$ac_optarg ;;
904 -enable-* | --enable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error $? "invalid feature name: $ac_useropt"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
913 "enable_$ac_useropt"
914 "*) ;;
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
917 esac
918 eval enable_$ac_useropt=\$ac_optarg ;;
920 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922 | --exec | --exe | --ex)
923 ac_prev=exec_prefix ;;
924 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926 | --exec=* | --exe=* | --ex=*)
927 exec_prefix=$ac_optarg ;;
929 -gas | --gas | --ga | --g)
930 # Obsolete; use --with-gas.
931 with_gas=yes ;;
933 -help | --help | --hel | --he | -h)
934 ac_init_help=long ;;
935 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936 ac_init_help=recursive ;;
937 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938 ac_init_help=short ;;
940 -host | --host | --hos | --ho)
941 ac_prev=host_alias ;;
942 -host=* | --host=* | --hos=* | --ho=*)
943 host_alias=$ac_optarg ;;
945 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946 ac_prev=htmldir ;;
947 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948 | --ht=*)
949 htmldir=$ac_optarg ;;
951 -includedir | --includedir | --includedi | --included | --include \
952 | --includ | --inclu | --incl | --inc)
953 ac_prev=includedir ;;
954 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955 | --includ=* | --inclu=* | --incl=* | --inc=*)
956 includedir=$ac_optarg ;;
958 -infodir | --infodir | --infodi | --infod | --info | --inf)
959 ac_prev=infodir ;;
960 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
961 infodir=$ac_optarg ;;
963 -libdir | --libdir | --libdi | --libd)
964 ac_prev=libdir ;;
965 -libdir=* | --libdir=* | --libdi=* | --libd=*)
966 libdir=$ac_optarg ;;
968 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969 | --libexe | --libex | --libe)
970 ac_prev=libexecdir ;;
971 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972 | --libexe=* | --libex=* | --libe=*)
973 libexecdir=$ac_optarg ;;
975 -localedir | --localedir | --localedi | --localed | --locale)
976 ac_prev=localedir ;;
977 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978 localedir=$ac_optarg ;;
980 -localstatedir | --localstatedir | --localstatedi | --localstated \
981 | --localstate | --localstat | --localsta | --localst | --locals)
982 ac_prev=localstatedir ;;
983 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
984 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
985 localstatedir=$ac_optarg ;;
987 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988 ac_prev=mandir ;;
989 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
990 mandir=$ac_optarg ;;
992 -nfp | --nfp | --nf)
993 # Obsolete; use --without-fp.
994 with_fp=no ;;
996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997 | --no-cr | --no-c | -n)
998 no_create=yes ;;
1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002 no_recursion=yes ;;
1004 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006 | --oldin | --oldi | --old | --ol | --o)
1007 ac_prev=oldincludedir ;;
1008 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1011 oldincludedir=$ac_optarg ;;
1013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014 ac_prev=prefix ;;
1015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1016 prefix=$ac_optarg ;;
1018 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1019 | --program-pre | --program-pr | --program-p)
1020 ac_prev=program_prefix ;;
1021 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1022 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1023 program_prefix=$ac_optarg ;;
1025 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1026 | --program-suf | --program-su | --program-s)
1027 ac_prev=program_suffix ;;
1028 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1029 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1030 program_suffix=$ac_optarg ;;
1032 -program-transform-name | --program-transform-name \
1033 | --program-transform-nam | --program-transform-na \
1034 | --program-transform-n | --program-transform- \
1035 | --program-transform | --program-transfor \
1036 | --program-transfo | --program-transf \
1037 | --program-trans | --program-tran \
1038 | --progr-tra | --program-tr | --program-t)
1039 ac_prev=program_transform_name ;;
1040 -program-transform-name=* | --program-transform-name=* \
1041 | --program-transform-nam=* | --program-transform-na=* \
1042 | --program-transform-n=* | --program-transform-=* \
1043 | --program-transform=* | --program-transfor=* \
1044 | --program-transfo=* | --program-transf=* \
1045 | --program-trans=* | --program-tran=* \
1046 | --progr-tra=* | --program-tr=* | --program-t=*)
1047 program_transform_name=$ac_optarg ;;
1049 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050 ac_prev=pdfdir ;;
1051 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052 pdfdir=$ac_optarg ;;
1054 -psdir | --psdir | --psdi | --psd | --ps)
1055 ac_prev=psdir ;;
1056 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057 psdir=$ac_optarg ;;
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1061 silent=yes ;;
1063 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064 ac_prev=sbindir ;;
1065 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066 | --sbi=* | --sb=*)
1067 sbindir=$ac_optarg ;;
1069 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1070 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071 | --sharedst | --shareds | --shared | --share | --shar \
1072 | --sha | --sh)
1073 ac_prev=sharedstatedir ;;
1074 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077 | --sha=* | --sh=*)
1078 sharedstatedir=$ac_optarg ;;
1080 -site | --site | --sit)
1081 ac_prev=site ;;
1082 -site=* | --site=* | --sit=*)
1083 site=$ac_optarg ;;
1085 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086 ac_prev=srcdir ;;
1087 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1088 srcdir=$ac_optarg ;;
1090 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091 | --syscon | --sysco | --sysc | --sys | --sy)
1092 ac_prev=sysconfdir ;;
1093 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1095 sysconfdir=$ac_optarg ;;
1097 -target | --target | --targe | --targ | --tar | --ta | --t)
1098 ac_prev=target_alias ;;
1099 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1100 target_alias=$ac_optarg ;;
1102 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103 verbose=yes ;;
1105 -version | --version | --versio | --versi | --vers | -V)
1106 ac_init_version=: ;;
1108 -with-* | --with-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error $? "invalid package name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1117 "with_$ac_useropt"
1118 "*) ;;
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1121 esac
1122 eval with_$ac_useropt=\$ac_optarg ;;
1124 -without-* | --without-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error $? "invalid package name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1133 "with_$ac_useropt"
1134 "*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval with_$ac_useropt=no ;;
1140 --x)
1141 # Obsolete; use --with-x.
1142 with_x=yes ;;
1144 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1145 | --x-incl | --x-inc | --x-in | --x-i)
1146 ac_prev=x_includes ;;
1147 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1148 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1149 x_includes=$ac_optarg ;;
1151 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1152 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1153 ac_prev=x_libraries ;;
1154 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1155 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1156 x_libraries=$ac_optarg ;;
1158 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1159 Try \`$0 --help' for more information"
1162 *=*)
1163 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164 # Reject names that are not valid shell variable names.
1165 case $ac_envvar in #(
1166 '' | [0-9]* | *[!_$as_cr_alnum]* )
1167 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1168 esac
1169 eval $ac_envvar=\$ac_optarg
1170 export $ac_envvar ;;
1173 # FIXME: should be removed in autoconf 3.0.
1174 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1175 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1176 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1177 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1180 esac
1181 done
1183 if test -n "$ac_prev"; then
1184 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1185 as_fn_error $? "missing argument to $ac_option"
1188 if test -n "$ac_unrecognized_opts"; then
1189 case $enable_option_checking in
1190 no) ;;
1191 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1192 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1193 esac
1196 # Check all directory arguments for consistency.
1197 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1198 datadir sysconfdir sharedstatedir localstatedir includedir \
1199 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1200 libdir localedir mandir
1202 eval ac_val=\$$ac_var
1203 # Remove trailing slashes.
1204 case $ac_val in
1205 */ )
1206 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1207 eval $ac_var=\$ac_val;;
1208 esac
1209 # Be sure to have absolute directory names.
1210 case $ac_val in
1211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213 esac
1214 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1215 done
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1220 build=$build_alias
1221 host=$host_alias
1222 target=$target_alias
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
1228 elif test "x$build_alias" != "x$host_alias"; then
1229 cross_compiling=yes
1233 ac_tool_prefix=
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236 test "$silent" = yes && exec 6>/dev/null
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242 as_fn_error $? "working directory cannot be determined"
1243 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244 as_fn_error $? "pwd does not report name of working directory"
1247 # Find the source files, if location was not specified.
1248 if test -z "$srcdir"; then
1249 ac_srcdir_defaulted=yes
1250 # Try the directory containing this script, then the parent directory.
1251 ac_confdir=`$as_dirname -- "$as_myself" ||
1252 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253 X"$as_myself" : 'X\(//\)[^/]' \| \
1254 X"$as_myself" : 'X\(//\)$' \| \
1255 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1256 $as_echo X"$as_myself" |
1257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1258 s//\1/
1261 /^X\(\/\/\)[^/].*/{
1262 s//\1/
1265 /^X\(\/\/\)$/{
1266 s//\1/
1269 /^X\(\/\).*/{
1270 s//\1/
1273 s/.*/./; q'`
1274 srcdir=$ac_confdir
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276 srcdir=..
1278 else
1279 ac_srcdir_defaulted=no
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1283 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1285 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286 ac_abs_confdir=`(
1287 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1288 pwd)`
1289 # When building in place, set srcdir=.
1290 if test "$ac_abs_confdir" = "$ac_pwd"; then
1291 srcdir=.
1293 # Remove unnecessary trailing slashes from srcdir.
1294 # Double slashes in file names in object file debugging info
1295 # mess up M-x gdb in Emacs.
1296 case $srcdir in
1297 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 esac
1299 for ac_var in $ac_precious_vars; do
1300 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_env_${ac_var}_value=\$${ac_var}
1302 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1304 done
1307 # Report the --help message.
1309 if test "$ac_init_help" = "long"; then
1310 # Omit some internal or obsolete options to make the list less imposing.
1311 # This message is too long to be a string in the A/UX 3.1 sh.
1312 cat <<_ACEOF
1313 \`configure' configures DHCP 4.3.0 to adapt to many kinds of systems.
1315 Usage: $0 [OPTION]... [VAR=VALUE]...
1317 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318 VAR=VALUE. See below for descriptions of some of the useful variables.
1320 Defaults for the options are specified in brackets.
1322 Configuration:
1323 -h, --help display this help and exit
1324 --help=short display options specific to this package
1325 --help=recursive display the short help of all the included packages
1326 -V, --version display version information and exit
1327 -q, --quiet, --silent do not print \`checking ...' messages
1328 --cache-file=FILE cache test results in FILE [disabled]
1329 -C, --config-cache alias for \`--cache-file=config.cache'
1330 -n, --no-create do not create output files
1331 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1333 Installation directories:
1334 --prefix=PREFIX install architecture-independent files in PREFIX
1335 [$ac_default_prefix]
1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1337 [PREFIX]
1339 By default, \`make install' will install all the files in
1340 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1341 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342 for instance \`--prefix=\$HOME'.
1344 For better control, use the options below.
1346 Fine tuning of the installation directories:
1347 --bindir=DIR user executables [EPREFIX/bin]
1348 --sbindir=DIR system admin executables [EPREFIX/sbin]
1349 --libexecdir=DIR program executables [EPREFIX/libexec]
1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1353 --libdir=DIR object code libraries [EPREFIX/lib]
1354 --includedir=DIR C header files [PREFIX/include]
1355 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1358 --infodir=DIR info documentation [DATAROOTDIR/info]
1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1360 --mandir=DIR man documentation [DATAROOTDIR/man]
1361 --docdir=DIR documentation root [DATAROOTDIR/doc/dhcp]
1362 --htmldir=DIR html documentation [DOCDIR]
1363 --dvidir=DIR dvi documentation [DOCDIR]
1364 --pdfdir=DIR pdf documentation [DOCDIR]
1365 --psdir=DIR ps documentation [DOCDIR]
1366 _ACEOF
1368 cat <<\_ACEOF
1370 Program names:
1371 --program-prefix=PREFIX prepend PREFIX to installed program names
1372 --program-suffix=SUFFIX append SUFFIX to installed program names
1373 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1375 System types:
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 _ACEOF
1381 if test -n "$ac_init_help"; then
1382 case $ac_init_help in
1383 short | recursive ) echo "Configuration of DHCP 4.3.0:";;
1384 esac
1385 cat <<\_ACEOF
1387 Optional Features:
1388 --disable-option-checking ignore unrecognized --enable/--with options
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1391 --enable-silent-rules less verbose build output (undo: "make V=1")
1392 --disable-silent-rules verbose build output (undo: "make V=0")
1393 --enable-maintainer-mode
1394 enable make rules and dependencies not useful (and
1395 sometimes confusing) to the casual installer
1396 --enable-dependency-tracking
1397 do not reject slow dependency extractors
1398 --disable-dependency-tracking
1399 speeds up one-time build
1400 --enable-debug create a debug-only version of the software (default
1401 is no).
1402 --enable-failover enable support for failover (default is yes)
1403 --enable-execute enable support for execute() in config (default is
1404 yes)
1405 --enable-tracing enable support for server activity tracing (default
1406 is yes)
1407 --enable-delayed-ack queues multiple DHCPACK replies (default is no)
1408 --enable-dhcpv6 enable support for DHCPv6 (default is yes)
1409 --enable-paranoia enable support for chroot/setuid (default is no)
1410 --enable-early-chroot enable chrooting prior to configuration (default is
1412 --enable-ipv4-pktinfo enable use of pktinfo on IPv4 sockets (default is
1414 --enable-use-sockets use the standard BSD socket API (default is no)
1415 --enable-secs-byteorder Correct bad byteorders in the secs field (default is
1416 no).
1418 Optional Packages:
1419 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1420 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1421 --with-atf=PATH specify location where atf was installed
1422 --with-srv-lease-file=PATH
1423 File for dhcpd leases (default is
1424 LOCALSTATEDIR/db/dhcpd.leases)
1425 --with-srv6-lease-file=PATH
1426 File for dhcpd6 leases (default is
1427 LOCALSTATEDIR/db/dhcpd6.leases)
1428 --with-cli-lease-file=PATH
1429 File for dhclient leases (default is
1430 LOCALSTATEDIR/db/dhclient.leases)
1431 --with-cli6-lease-file=PATH
1432 File for dhclient6 leases (default is
1433 LOCALSTATEDIR/db/dhclient6.leases)
1434 --with-srv-pid-file=PATH
1435 File for dhcpd process information (default is
1436 LOCALSTATEDIR/run/dhcpd.pid)
1437 --with-srv6-pid-file=PATH
1438 File for dhcpd6 process information (default is
1439 LOCALSTATEDIR/run/dhcpd6.pid)
1440 --with-cli-pid-file=PATH
1441 File for dhclient process information (default is
1442 LOCALSTATEDIR/run/dhclient.pid)
1443 --with-cli6-pid-file=PATH
1444 File for dhclient6 process information (default is
1445 LOCALSTATEDIR/run/dhclient6.pid)
1446 --with-relay-pid-file=PATH
1447 File for dhcrelay process information (default is
1448 LOCALSTATEDIR/run/dhcrelay.pid)
1449 --with-relay6-pid-file=PATH
1450 File for dhcrelay6 process information (default is
1451 LOCALSTATEDIR/run/dhcrelay6.pid)
1452 --with-libbind=PATH bind includes and libraries are in PATH (default is
1453 ./bind)
1454 --with-ldap enable OpenLDAP support in dhcpd (default is no)
1455 --with-ldapcrypto enable OpenLDAP crypto support in dhcpd (default is
1458 Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 LIBS libraries to pass to the linker, e.g. -l<library>
1464 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
1466 CPP C preprocessor
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1471 Report bugs to <dhcp-users@isc.org>.
1472 _ACEOF
1473 ac_status=$?
1476 if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479 test -d "$ac_dir" ||
1480 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481 continue
1482 ac_builddir=.
1484 case "$ac_dir" in
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1488 # A ".." for each directory in $ac_dir_suffix.
1489 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 esac ;;
1494 esac
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1500 case $srcdir in
1501 .) # We are building in place.
1502 ac_srcdir=.
1503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
1506 ac_srcdir=$srcdir$ac_dir_suffix;
1507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1509 *) # Relative name.
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 esac
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for guested configure.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure" --help=recursive
1524 else
1525 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526 fi || ac_status=$?
1527 cd "$ac_pwd" || { ac_status=$?; break; }
1528 done
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1533 cat <<\_ACEOF
1534 DHCP configure 4.3.0
1535 generated by GNU Autoconf 2.69
1537 Copyright (C) 2012 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1540 _ACEOF
1541 exit
1544 ## ------------------------ ##
1545 ## Autoconf initialization. ##
1546 ## ------------------------ ##
1548 # ac_fn_c_try_compile LINENO
1549 # --------------------------
1550 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_compile ()
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 rm -f conftest.$ac_objext
1555 if { { ac_try="$ac_compile"
1556 case "(($ac_try" in
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_compile") 2>conftest.err
1563 ac_status=$?
1564 if test -s conftest.err; then
1565 grep -v '^ *+' conftest.err >conftest.er1
1566 cat conftest.er1 >&5
1567 mv -f conftest.er1 conftest.err
1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } && {
1571 test -z "$ac_c_werror_flag" ||
1572 test ! -s conftest.err
1573 } && test -s conftest.$ac_objext; then :
1574 ac_retval=0
1575 else
1576 $as_echo "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1579 ac_retval=1
1581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582 as_fn_set_status $ac_retval
1584 } # ac_fn_c_try_compile
1586 # ac_fn_c_try_cpp LINENO
1587 # ----------------------
1588 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_c_try_cpp ()
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 if { { ac_try="$ac_cpp conftest.$ac_ext"
1593 case "(($ac_try" in
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1596 esac
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1600 ac_status=$?
1601 if test -s conftest.err; then
1602 grep -v '^ *+' conftest.err >conftest.er1
1603 cat conftest.er1 >&5
1604 mv -f conftest.er1 conftest.err
1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } > conftest.i && {
1608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1609 test ! -s conftest.err
1610 }; then :
1611 ac_retval=0
1612 else
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1616 ac_retval=1
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 as_fn_set_status $ac_retval
1621 } # ac_fn_c_try_cpp
1623 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1624 # -------------------------------------------------------
1625 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1626 # the include files in INCLUDES and setting the cache variable VAR
1627 # accordingly.
1628 ac_fn_c_check_header_mongrel ()
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 if eval \${$3+:} false; then :
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633 $as_echo_n "checking for $2... " >&6; }
1634 if eval \${$3+:} false; then :
1635 $as_echo_n "(cached) " >&6
1637 eval ac_res=\$$3
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639 $as_echo "$ac_res" >&6; }
1640 else
1641 # Is the header compilable?
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1643 $as_echo_n "checking $2 usability... " >&6; }
1644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h. */
1647 #include <$2>
1648 _ACEOF
1649 if ac_fn_c_try_compile "$LINENO"; then :
1650 ac_header_compiler=yes
1651 else
1652 ac_header_compiler=no
1654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1656 $as_echo "$ac_header_compiler" >&6; }
1658 # Is the header present?
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1660 $as_echo_n "checking $2 presence... " >&6; }
1661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662 /* end confdefs.h. */
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_cpp "$LINENO"; then :
1666 ac_header_preproc=yes
1667 else
1668 ac_header_preproc=no
1670 rm -f conftest.err conftest.i conftest.$ac_ext
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1672 $as_echo "$ac_header_preproc" >&6; }
1674 # So? What about this header?
1675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1676 yes:no: )
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1678 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1680 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1682 no:yes:* )
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1684 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1686 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1688 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1690 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1692 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1693 ( $as_echo "## --------------------------------- ##
1694 ## Report this to dhcp-users@isc.org ##
1695 ## --------------------------------- ##"
1696 ) | sed "s/^/$as_me: WARNING: /" >&2
1698 esac
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700 $as_echo_n "checking for $2... " >&6; }
1701 if eval \${$3+:} false; then :
1702 $as_echo_n "(cached) " >&6
1703 else
1704 eval "$3=\$ac_header_compiler"
1706 eval ac_res=\$$3
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708 $as_echo "$ac_res" >&6; }
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 } # ac_fn_c_check_header_mongrel
1714 # ac_fn_c_try_run LINENO
1715 # ----------------------
1716 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1717 # that executables *can* be run.
1718 ac_fn_c_try_run ()
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_link"
1722 case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_link") 2>&5
1729 ac_status=$?
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1732 { { case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_try") 2>&5
1739 ac_status=$?
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; }; }; then :
1742 ac_retval=0
1743 else
1744 $as_echo "$as_me: program exited with status $ac_status" >&5
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1748 ac_retval=$ac_status
1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1754 } # ac_fn_c_try_run
1756 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1757 # -------------------------------------------------------
1758 # Tests whether HEADER exists and can be compiled using the include files in
1759 # INCLUDES, setting the cache variable VAR accordingly.
1760 ac_fn_c_check_header_compile ()
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766 $as_echo_n "(cached) " >&6
1767 else
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1771 #include <$2>
1772 _ACEOF
1773 if ac_fn_c_try_compile "$LINENO"; then :
1774 eval "$3=yes"
1775 else
1776 eval "$3=no"
1778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780 eval ac_res=\$$3
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 } # ac_fn_c_check_header_compile
1787 # ac_fn_c_find_intX_t LINENO BITS VAR
1788 # -----------------------------------
1789 # Finds a signed integer type with width BITS, setting cache variable VAR
1790 # accordingly.
1791 ac_fn_c_find_intX_t ()
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1795 $as_echo_n "checking for int$2_t... " >&6; }
1796 if eval \${$3+:} false; then :
1797 $as_echo_n "(cached) " >&6
1798 else
1799 eval "$3=no"
1800 # Order is important - never check a type that is potentially smaller
1801 # than half of the expected target width.
1802 for ac_type in int$2_t 'int' 'long int' \
1803 'long long int' 'short int' 'signed char'; do
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1806 $ac_includes_default
1807 enum { N = $2 / 2 - 1 };
1809 main ()
1811 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1812 test_array [0] = 0;
1813 return test_array [0];
1816 return 0;
1818 _ACEOF
1819 if ac_fn_c_try_compile "$LINENO"; then :
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1822 $ac_includes_default
1823 enum { N = $2 / 2 - 1 };
1825 main ()
1827 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1828 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1829 test_array [0] = 0;
1830 return test_array [0];
1833 return 0;
1835 _ACEOF
1836 if ac_fn_c_try_compile "$LINENO"; then :
1838 else
1839 case $ac_type in #(
1840 int$2_t) :
1841 eval "$3=yes" ;; #(
1842 *) :
1843 eval "$3=\$ac_type" ;;
1844 esac
1846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849 if eval test \"x\$"$3"\" = x"no"; then :
1851 else
1852 break
1854 done
1856 eval ac_res=\$$3
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861 } # ac_fn_c_find_intX_t
1863 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1864 # -------------------------------------------
1865 # Tests whether TYPE exists after having included INCLUDES, setting cache
1866 # variable VAR accordingly.
1867 ac_fn_c_check_type ()
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if eval \${$3+:} false; then :
1873 $as_echo_n "(cached) " >&6
1874 else
1875 eval "$3=no"
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1880 main ()
1882 if (sizeof ($2))
1883 return 0;
1885 return 0;
1887 _ACEOF
1888 if ac_fn_c_try_compile "$LINENO"; then :
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1893 main ()
1895 if (sizeof (($2)))
1896 return 0;
1898 return 0;
1900 _ACEOF
1901 if ac_fn_c_try_compile "$LINENO"; then :
1903 else
1904 eval "$3=yes"
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 eval ac_res=\$$3
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 } # ac_fn_c_check_type
1917 # ac_fn_c_find_uintX_t LINENO BITS VAR
1918 # ------------------------------------
1919 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1920 # accordingly.
1921 ac_fn_c_find_uintX_t ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1925 $as_echo_n "checking for uint$2_t... " >&6; }
1926 if eval \${$3+:} false; then :
1927 $as_echo_n "(cached) " >&6
1928 else
1929 eval "$3=no"
1930 # Order is important - never check a type that is potentially smaller
1931 # than half of the expected target width.
1932 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1933 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1936 $ac_includes_default
1938 main ()
1940 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1941 test_array [0] = 0;
1942 return test_array [0];
1945 return 0;
1947 _ACEOF
1948 if ac_fn_c_try_compile "$LINENO"; then :
1949 case $ac_type in #(
1950 uint$2_t) :
1951 eval "$3=yes" ;; #(
1952 *) :
1953 eval "$3=\$ac_type" ;;
1954 esac
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 if eval test \"x\$"$3"\" = x"no"; then :
1959 else
1960 break
1962 done
1964 eval ac_res=\$$3
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 } # ac_fn_c_find_uintX_t
1971 # ac_fn_c_try_link LINENO
1972 # -----------------------
1973 # Try to link conftest.$ac_ext, and return whether this succeeded.
1974 ac_fn_c_try_link ()
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 rm -f conftest.$ac_objext conftest$ac_exeext
1978 if { { ac_try="$ac_link"
1979 case "(($ac_try" in
1980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981 *) ac_try_echo=$ac_try;;
1982 esac
1983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984 $as_echo "$ac_try_echo"; } >&5
1985 (eval "$ac_link") 2>conftest.err
1986 ac_status=$?
1987 if test -s conftest.err; then
1988 grep -v '^ *+' conftest.err >conftest.er1
1989 cat conftest.er1 >&5
1990 mv -f conftest.er1 conftest.err
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; } && {
1994 test -z "$ac_c_werror_flag" ||
1995 test ! -s conftest.err
1996 } && test -s conftest$ac_exeext && {
1997 test "$cross_compiling" = yes ||
1998 test -x conftest$ac_exeext
1999 }; then :
2000 ac_retval=0
2001 else
2002 $as_echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.$ac_ext >&5
2005 ac_retval=1
2007 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2008 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2009 # interfere with the next link command; also delete a directory that is
2010 # left behind by Apple's compiler. We do this before executing the actions.
2011 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 as_fn_set_status $ac_retval
2015 } # ac_fn_c_try_link
2017 # ac_fn_c_check_func LINENO FUNC VAR
2018 # ----------------------------------
2019 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2020 ac_fn_c_check_func ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024 $as_echo_n "checking for $2... " >&6; }
2025 if eval \${$3+:} false; then :
2026 $as_echo_n "(cached) " >&6
2027 else
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2030 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2032 #define $2 innocuous_$2
2034 /* System header to define __stub macros and hopefully few prototypes,
2035 which can conflict with char $2 (); below.
2036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2037 <limits.h> exists even on freestanding compilers. */
2039 #ifdef __STDC__
2040 # include <limits.h>
2041 #else
2042 # include <assert.h>
2043 #endif
2045 #undef $2
2047 /* Override any GCC internal prototype to avoid an error.
2048 Use char because int might match the return type of a GCC
2049 builtin and then its argument prototype would still apply. */
2050 #ifdef __cplusplus
2051 extern "C"
2052 #endif
2053 char $2 ();
2054 /* The GNU C library defines this for functions which it implements
2055 to always fail with ENOSYS. Some functions are actually named
2056 something starting with __ and the normal name is an alias. */
2057 #if defined __stub_$2 || defined __stub___$2
2058 choke me
2059 #endif
2062 main ()
2064 return $2 ();
2066 return 0;
2068 _ACEOF
2069 if ac_fn_c_try_link "$LINENO"; then :
2070 eval "$3=yes"
2071 else
2072 eval "$3=no"
2074 rm -f core conftest.err conftest.$ac_objext \
2075 conftest$ac_exeext conftest.$ac_ext
2077 eval ac_res=\$$3
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082 } # ac_fn_c_check_func
2084 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2085 # ----------------------------------------------------
2086 # Tries to find if the field MEMBER exists in type AGGR, after including
2087 # INCLUDES, setting cache variable VAR accordingly.
2088 ac_fn_c_check_member ()
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2092 $as_echo_n "checking for $2.$3... " >&6; }
2093 if eval \${$4+:} false; then :
2094 $as_echo_n "(cached) " >&6
2095 else
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2100 main ()
2102 static $2 ac_aggr;
2103 if (ac_aggr.$3)
2104 return 0;
2106 return 0;
2108 _ACEOF
2109 if ac_fn_c_try_compile "$LINENO"; then :
2110 eval "$4=yes"
2111 else
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2116 main ()
2118 static $2 ac_aggr;
2119 if (sizeof ac_aggr.$3)
2120 return 0;
2122 return 0;
2124 _ACEOF
2125 if ac_fn_c_try_compile "$LINENO"; then :
2126 eval "$4=yes"
2127 else
2128 eval "$4=no"
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 eval ac_res=\$$4
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136 $as_echo "$ac_res" >&6; }
2137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2139 } # ac_fn_c_check_member
2141 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2142 # --------------------------------------------
2143 # Tries to find the compile-time value of EXPR in a program that includes
2144 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2145 # computed
2146 ac_fn_c_compute_int ()
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 if test "$cross_compiling" = yes; then
2150 # Depending upon the size, compute the lo and hi bounds.
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2155 main ()
2157 static int test_array [1 - 2 * !(($2) >= 0)];
2158 test_array [0] = 0;
2159 return test_array [0];
2162 return 0;
2164 _ACEOF
2165 if ac_fn_c_try_compile "$LINENO"; then :
2166 ac_lo=0 ac_mid=0
2167 while :; do
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2172 main ()
2174 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2175 test_array [0] = 0;
2176 return test_array [0];
2179 return 0;
2181 _ACEOF
2182 if ac_fn_c_try_compile "$LINENO"; then :
2183 ac_hi=$ac_mid; break
2184 else
2185 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2186 if test $ac_lo -le $ac_mid; then
2187 ac_lo= ac_hi=
2188 break
2190 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 done
2194 else
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2199 main ()
2201 static int test_array [1 - 2 * !(($2) < 0)];
2202 test_array [0] = 0;
2203 return test_array [0];
2206 return 0;
2208 _ACEOF
2209 if ac_fn_c_try_compile "$LINENO"; then :
2210 ac_hi=-1 ac_mid=-1
2211 while :; do
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2216 main ()
2218 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2219 test_array [0] = 0;
2220 return test_array [0];
2223 return 0;
2225 _ACEOF
2226 if ac_fn_c_try_compile "$LINENO"; then :
2227 ac_lo=$ac_mid; break
2228 else
2229 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2230 if test $ac_mid -le $ac_hi; then
2231 ac_lo= ac_hi=
2232 break
2234 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237 done
2238 else
2239 ac_lo= ac_hi=
2241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 # Binary search between lo and hi bounds.
2245 while test "x$ac_lo" != "x$ac_hi"; do
2246 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2251 main ()
2253 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2254 test_array [0] = 0;
2255 return test_array [0];
2258 return 0;
2260 _ACEOF
2261 if ac_fn_c_try_compile "$LINENO"; then :
2262 ac_hi=$ac_mid
2263 else
2264 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 done
2268 case $ac_lo in #((
2269 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2270 '') ac_retval=1 ;;
2271 esac
2272 else
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2276 static long int longval () { return $2; }
2277 static unsigned long int ulongval () { return $2; }
2278 #include <stdio.h>
2279 #include <stdlib.h>
2281 main ()
2284 FILE *f = fopen ("conftest.val", "w");
2285 if (! f)
2286 return 1;
2287 if (($2) < 0)
2289 long int i = longval ();
2290 if (i != ($2))
2291 return 1;
2292 fprintf (f, "%ld", i);
2294 else
2296 unsigned long int i = ulongval ();
2297 if (i != ($2))
2298 return 1;
2299 fprintf (f, "%lu", i);
2301 /* Do not output a trailing newline, as this causes \r\n confusion
2302 on some platforms. */
2303 return ferror (f) || fclose (f) != 0;
2306 return 0;
2308 _ACEOF
2309 if ac_fn_c_try_run "$LINENO"; then :
2310 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2311 else
2312 ac_retval=1
2314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2315 conftest.$ac_objext conftest.beam conftest.$ac_ext
2316 rm -f conftest.val
2319 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2320 as_fn_set_status $ac_retval
2322 } # ac_fn_c_compute_int
2323 cat >config.log <<_ACEOF
2324 This file contains any messages produced by compilers while
2325 running configure, to aid debugging if configure makes a mistake.
2327 It was created by DHCP $as_me 4.3.0, which was
2328 generated by GNU Autoconf 2.69. Invocation command line was
2330 $ $0 $@
2332 _ACEOF
2333 exec 5>>config.log
2335 cat <<_ASUNAME
2336 ## --------- ##
2337 ## Platform. ##
2338 ## --------- ##
2340 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2341 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2342 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2343 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2344 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2346 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2347 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2349 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2350 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2351 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2352 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2353 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2354 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2355 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2357 _ASUNAME
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
2364 $as_echo "PATH: $as_dir"
2365 done
2366 IFS=$as_save_IFS
2368 } >&5
2370 cat >&5 <<_ACEOF
2373 ## ----------- ##
2374 ## Core tests. ##
2375 ## ----------- ##
2377 _ACEOF
2380 # Keep a trace of the command line.
2381 # Strip out --no-create and --no-recursion so they do not pile up.
2382 # Strip out --silent because we don't want to record it for future runs.
2383 # Also quote any args containing shell meta-characters.
2384 # Make two passes to allow for proper duplicate-argument suppression.
2385 ac_configure_args=
2386 ac_configure_args0=
2387 ac_configure_args1=
2388 ac_must_keep_next=false
2389 for ac_pass in 1 2
2391 for ac_arg
2393 case $ac_arg in
2394 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2396 | -silent | --silent | --silen | --sile | --sil)
2397 continue ;;
2398 *\'*)
2399 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2400 esac
2401 case $ac_pass in
2402 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2404 as_fn_append ac_configure_args1 " '$ac_arg'"
2405 if test $ac_must_keep_next = true; then
2406 ac_must_keep_next=false # Got value, back to normal.
2407 else
2408 case $ac_arg in
2409 *=* | --config-cache | -C | -disable-* | --disable-* \
2410 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2411 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2412 | -with-* | --with-* | -without-* | --without-* | --x)
2413 case "$ac_configure_args0 " in
2414 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2415 esac
2417 -* ) ac_must_keep_next=true ;;
2418 esac
2420 as_fn_append ac_configure_args " '$ac_arg'"
2422 esac
2423 done
2424 done
2425 { ac_configure_args0=; unset ac_configure_args0;}
2426 { ac_configure_args1=; unset ac_configure_args1;}
2428 # When interrupted or exit'd, cleanup temporary files, and complete
2429 # config.log. We remove comments because anyway the quotes in there
2430 # would cause problems or look ugly.
2431 # WARNING: Use '\'' to represent an apostrophe within the trap.
2432 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2433 trap 'exit_status=$?
2434 # Save into config.log some information that might help in debugging.
2436 echo
2438 $as_echo "## ---------------- ##
2439 ## Cache variables. ##
2440 ## ---------------- ##"
2441 echo
2442 # The following way of writing the cache mishandles newlines in values,
2444 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2445 eval ac_val=\$$ac_var
2446 case $ac_val in #(
2447 *${as_nl}*)
2448 case $ac_var in #(
2449 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2450 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2451 esac
2452 case $ac_var in #(
2453 _ | IFS | as_nl) ;; #(
2454 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2455 *) { eval $ac_var=; unset $ac_var;} ;;
2456 esac ;;
2457 esac
2458 done
2459 (set) 2>&1 |
2460 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2461 *${as_nl}ac_space=\ *)
2462 sed -n \
2463 "s/'\''/'\''\\\\'\'''\''/g;
2464 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2465 ;; #(
2467 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2469 esac |
2470 sort
2472 echo
2474 $as_echo "## ----------------- ##
2475 ## Output variables. ##
2476 ## ----------------- ##"
2477 echo
2478 for ac_var in $ac_subst_vars
2480 eval ac_val=\$$ac_var
2481 case $ac_val in
2482 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2483 esac
2484 $as_echo "$ac_var='\''$ac_val'\''"
2485 done | sort
2486 echo
2488 if test -n "$ac_subst_files"; then
2489 $as_echo "## ------------------- ##
2490 ## File substitutions. ##
2491 ## ------------------- ##"
2492 echo
2493 for ac_var in $ac_subst_files
2495 eval ac_val=\$$ac_var
2496 case $ac_val in
2497 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2498 esac
2499 $as_echo "$ac_var='\''$ac_val'\''"
2500 done | sort
2501 echo
2504 if test -s confdefs.h; then
2505 $as_echo "## ----------- ##
2506 ## confdefs.h. ##
2507 ## ----------- ##"
2508 echo
2509 cat confdefs.h
2510 echo
2512 test "$ac_signal" != 0 &&
2513 $as_echo "$as_me: caught signal $ac_signal"
2514 $as_echo "$as_me: exit $exit_status"
2515 } >&5
2516 rm -f core *.core core.conftest.* &&
2517 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2518 exit $exit_status
2520 for ac_signal in 1 2 13 15; do
2521 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2522 done
2523 ac_signal=0
2525 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2526 rm -f -r conftest* confdefs.h
2528 $as_echo "/* confdefs.h */" > confdefs.h
2530 # Predefined preprocessor variables.
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_NAME "$PACKAGE_NAME"
2534 _ACEOF
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2538 _ACEOF
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2542 _ACEOF
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_STRING "$PACKAGE_STRING"
2546 _ACEOF
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2550 _ACEOF
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_URL "$PACKAGE_URL"
2554 _ACEOF
2557 # Let the site file select an alternate cache file if it wants to.
2558 # Prefer an explicitly selected file to automatically selected ones.
2559 ac_site_file1=NONE
2560 ac_site_file2=NONE
2561 if test -n "$CONFIG_SITE"; then
2562 # We do not want a PATH search for config.site.
2563 case $CONFIG_SITE in #((
2564 -*) ac_site_file1=./$CONFIG_SITE;;
2565 */*) ac_site_file1=$CONFIG_SITE;;
2566 *) ac_site_file1=./$CONFIG_SITE;;
2567 esac
2568 elif test "x$prefix" != xNONE; then
2569 ac_site_file1=$prefix/share/config.site
2570 ac_site_file2=$prefix/etc/config.site
2571 else
2572 ac_site_file1=$ac_default_prefix/share/config.site
2573 ac_site_file2=$ac_default_prefix/etc/config.site
2575 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2577 test "x$ac_site_file" = xNONE && continue
2578 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2580 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2581 sed 's/^/| /' "$ac_site_file" >&5
2582 . "$ac_site_file" \
2583 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585 as_fn_error $? "failed to load site script $ac_site_file
2586 See \`config.log' for more details" "$LINENO" 5; }
2588 done
2590 if test -r "$cache_file"; then
2591 # Some versions of bash will fail to source /dev/null (special files
2592 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2593 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2595 $as_echo "$as_me: loading cache $cache_file" >&6;}
2596 case $cache_file in
2597 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2598 *) . "./$cache_file";;
2599 esac
2601 else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2603 $as_echo "$as_me: creating cache $cache_file" >&6;}
2604 >$cache_file
2607 # Check that the precious variables saved in the cache have kept the same
2608 # value.
2609 ac_cache_corrupted=false
2610 for ac_var in $ac_precious_vars; do
2611 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2612 eval ac_new_set=\$ac_env_${ac_var}_set
2613 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2614 eval ac_new_val=\$ac_env_${ac_var}_value
2615 case $ac_old_set,$ac_new_set in
2616 set,)
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2618 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2619 ac_cache_corrupted=: ;;
2620 ,set)
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2622 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2623 ac_cache_corrupted=: ;;
2624 ,);;
2626 if test "x$ac_old_val" != "x$ac_new_val"; then
2627 # differences in whitespace do not lead to failure.
2628 ac_old_val_w=`echo x $ac_old_val`
2629 ac_new_val_w=`echo x $ac_new_val`
2630 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2632 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2633 ac_cache_corrupted=:
2634 else
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2636 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2637 eval $ac_var=\$ac_old_val
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2640 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2642 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2643 fi;;
2644 esac
2645 # Pass precious variables to config.status.
2646 if test "$ac_new_set" = set; then
2647 case $ac_new_val in
2648 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2649 *) ac_arg=$ac_var=$ac_new_val ;;
2650 esac
2651 case " $ac_configure_args " in
2652 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2653 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2654 esac
2656 done
2657 if $ac_cache_corrupted; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2661 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2662 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2664 ## -------------------- ##
2665 ## Main body of script. ##
2666 ## -------------------- ##
2668 ac_ext=c
2669 ac_cpp='$CPP $CPPFLAGS'
2670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676 # we specify "foreign" to avoid having to have the GNU mandated files,
2677 # like AUTHORS, COPYING, and such
2678 am__api_version='1.14'
2680 ac_aux_dir=
2681 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2682 if test -f "$ac_dir/install-sh"; then
2683 ac_aux_dir=$ac_dir
2684 ac_install_sh="$ac_aux_dir/install-sh -c"
2685 break
2686 elif test -f "$ac_dir/install.sh"; then
2687 ac_aux_dir=$ac_dir
2688 ac_install_sh="$ac_aux_dir/install.sh -c"
2689 break
2690 elif test -f "$ac_dir/shtool"; then
2691 ac_aux_dir=$ac_dir
2692 ac_install_sh="$ac_aux_dir/shtool install -c"
2693 break
2695 done
2696 if test -z "$ac_aux_dir"; then
2697 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2700 # These three variables are undocumented and unsupported,
2701 # and are intended to be withdrawn in a future Autoconf release.
2702 # They can cause serious problems if a builder's source tree is in a directory
2703 # whose full name contains unusual characters.
2704 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2705 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2706 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2709 # Find a good install program. We prefer a C program (faster),
2710 # so one script is as good as another. But avoid the broken or
2711 # incompatible versions:
2712 # SysV /etc/install, /usr/sbin/install
2713 # SunOS /usr/etc/install
2714 # IRIX /sbin/install
2715 # AIX /bin/install
2716 # AmigaOS /C/install, which installs bootblocks on floppy discs
2717 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2718 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2719 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2720 # OS/2's system install, which has a completely different semantic
2721 # ./install, which can be erroneously created by make from ./install.sh.
2722 # Reject install programs that cannot install multiple files.
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2724 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2725 if test -z "$INSTALL"; then
2726 if ${ac_cv_path_install+:} false; then :
2727 $as_echo_n "(cached) " >&6
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 # Account for people who put trailing slashes in PATH elements.
2735 case $as_dir/ in #((
2736 ./ | .// | /[cC]/* | \
2737 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2738 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2739 /usr/ucb/* ) ;;
2741 # OSF1 and SCO ODT 3.0 have their own names for install.
2742 # Don't use installbsd from OSF since it installs stuff as root
2743 # by default.
2744 for ac_prog in ginstall scoinst install; do
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2747 if test $ac_prog = install &&
2748 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2749 # AIX install. It has an incompatible calling convention.
2751 elif test $ac_prog = install &&
2752 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2753 # program-specific install script used by HP pwplus--don't use.
2755 else
2756 rm -rf conftest.one conftest.two conftest.dir
2757 echo one > conftest.one
2758 echo two > conftest.two
2759 mkdir conftest.dir
2760 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2761 test -s conftest.one && test -s conftest.two &&
2762 test -s conftest.dir/conftest.one &&
2763 test -s conftest.dir/conftest.two
2764 then
2765 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2766 break 3
2770 done
2771 done
2773 esac
2775 done
2776 IFS=$as_save_IFS
2778 rm -rf conftest.one conftest.two conftest.dir
2781 if test "${ac_cv_path_install+set}" = set; then
2782 INSTALL=$ac_cv_path_install
2783 else
2784 # As a last resort, use the slow shell script. Don't cache a
2785 # value for INSTALL within a source directory, because that will
2786 # break other packages using the cache if that directory is
2787 # removed, or if the value is a relative name.
2788 INSTALL=$ac_install_sh
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2792 $as_echo "$INSTALL" >&6; }
2794 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2795 # It thinks the first close brace ends the variable substitution.
2796 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2798 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2800 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2803 $as_echo_n "checking whether build environment is sane... " >&6; }
2804 # Reject unsafe characters in $srcdir or the absolute working directory
2805 # name. Accept space and tab only in the latter.
2806 am_lf='
2808 case `pwd` in
2809 *[\\\"\#\$\&\'\`$am_lf]*)
2810 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2811 esac
2812 case $srcdir in
2813 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2814 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2815 esac
2817 # Do 'set' in a subshell so we don't clobber the current shell's
2818 # arguments. Must try -L first in case configure is actually a
2819 # symlink; some systems play weird games with the mod time of symlinks
2820 # (eg FreeBSD returns the mod time of the symlink's containing
2821 # directory).
2822 if (
2823 am_has_slept=no
2824 for am_try in 1 2; do
2825 echo "timestamp, slept: $am_has_slept" > conftest.file
2826 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2827 if test "$*" = "X"; then
2828 # -L didn't work.
2829 set X `ls -t "$srcdir/configure" conftest.file`
2831 if test "$*" != "X $srcdir/configure conftest.file" \
2832 && test "$*" != "X conftest.file $srcdir/configure"; then
2834 # If neither matched, then we have a broken ls. This can happen
2835 # if, for instance, CONFIG_SHELL is bash and it inherits a
2836 # broken ls alias from the environment. This has actually
2837 # happened. Such a system could not be considered "sane".
2838 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2839 alias in your environment" "$LINENO" 5
2841 if test "$2" = conftest.file || test $am_try -eq 2; then
2842 break
2844 # Just in case.
2845 sleep 1
2846 am_has_slept=yes
2847 done
2848 test "$2" = conftest.file
2850 then
2851 # Ok.
2853 else
2854 as_fn_error $? "newly created file is older than distributed files!
2855 Check your system clock" "$LINENO" 5
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2858 $as_echo "yes" >&6; }
2859 # If we didn't sleep, we still need to ensure time stamps of config.status and
2860 # generated files are strictly newer.
2861 am_sleep_pid=
2862 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2863 ( sleep 1 ) &
2864 am_sleep_pid=$!
2867 rm -f conftest.file
2869 test "$program_prefix" != NONE &&
2870 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2871 # Use a double $ so make ignores it.
2872 test "$program_suffix" != NONE &&
2873 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2874 # Double any \ or $.
2875 # By default was `s,x,x', remove it if useless.
2876 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2877 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2879 # expand $ac_aux_dir to an absolute path
2880 am_aux_dir=`cd $ac_aux_dir && pwd`
2882 if test x"${MISSING+set}" != xset; then
2883 case $am_aux_dir in
2884 *\ * | *\ *)
2885 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2887 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2888 esac
2890 # Use eval to expand $SHELL
2891 if eval "$MISSING --is-lightweight"; then
2892 am_missing_run="$MISSING "
2893 else
2894 am_missing_run=
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2896 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2899 if test x"${install_sh}" != xset; then
2900 case $am_aux_dir in
2901 *\ * | *\ *)
2902 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2904 install_sh="\${SHELL} $am_aux_dir/install-sh"
2905 esac
2908 # Installed binaries are usually stripped using 'strip' when the user
2909 # run "make install-strip". However 'strip' might not be the right
2910 # tool to use in cross-compilation environments, therefore Automake
2911 # will honor the 'STRIP' environment variable to overrule this program.
2912 if test "$cross_compiling" != no; then
2913 if test -n "$ac_tool_prefix"; then
2914 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2915 set dummy ${ac_tool_prefix}strip; ac_word=$2
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if ${ac_cv_prog_STRIP+:} false; then :
2919 $as_echo_n "(cached) " >&6
2920 else
2921 if test -n "$STRIP"; then
2922 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2927 IFS=$as_save_IFS
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2931 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 break 2
2935 done
2936 done
2937 IFS=$as_save_IFS
2941 STRIP=$ac_cv_prog_STRIP
2942 if test -n "$STRIP"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2944 $as_echo "$STRIP" >&6; }
2945 else
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2952 if test -z "$ac_cv_prog_STRIP"; then
2953 ac_ct_STRIP=$STRIP
2954 # Extract the first word of "strip", so it can be a program name with args.
2955 set dummy strip; ac_word=$2
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2959 $as_echo_n "(cached) " >&6
2960 else
2961 if test -n "$ac_ct_STRIP"; then
2962 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2967 IFS=$as_save_IFS
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2971 ac_cv_prog_ac_ct_STRIP="strip"
2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 break 2
2975 done
2976 done
2977 IFS=$as_save_IFS
2981 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2982 if test -n "$ac_ct_STRIP"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2984 $as_echo "$ac_ct_STRIP" >&6; }
2985 else
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2990 if test "x$ac_ct_STRIP" = x; then
2991 STRIP=":"
2992 else
2993 case $cross_compiling:$ac_tool_warned in
2994 yes:)
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2997 ac_tool_warned=yes ;;
2998 esac
2999 STRIP=$ac_ct_STRIP
3001 else
3002 STRIP="$ac_cv_prog_STRIP"
3006 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3009 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3010 if test -z "$MKDIR_P"; then
3011 if ${ac_cv_path_mkdir+:} false; then :
3012 $as_echo_n "(cached) " >&6
3013 else
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_prog in mkdir gmkdir; do
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3022 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3023 'mkdir (GNU coreutils) '* | \
3024 'mkdir (coreutils) '* | \
3025 'mkdir (fileutils) '4.1*)
3026 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3027 break 3;;
3028 esac
3029 done
3030 done
3031 done
3032 IFS=$as_save_IFS
3036 test -d ./--version && rmdir ./--version
3037 if test "${ac_cv_path_mkdir+set}" = set; then
3038 MKDIR_P="$ac_cv_path_mkdir -p"
3039 else
3040 # As a last resort, use the slow shell script. Don't cache a
3041 # value for MKDIR_P within a source directory, because that will
3042 # break other packages using the cache if that directory is
3043 # removed, or if the value is a relative name.
3044 MKDIR_P="$ac_install_sh -d"
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3048 $as_echo "$MKDIR_P" >&6; }
3050 for ac_prog in gawk mawk nawk awk
3052 # Extract the first word of "$ac_prog", so it can be a program name with args.
3053 set dummy $ac_prog; ac_word=$2
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if ${ac_cv_prog_AWK+:} false; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 if test -n "$AWK"; then
3060 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3061 else
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3065 IFS=$as_save_IFS
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069 ac_cv_prog_AWK="$ac_prog"
3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 break 2
3073 done
3074 done
3075 IFS=$as_save_IFS
3079 AWK=$ac_cv_prog_AWK
3080 if test -n "$AWK"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3082 $as_echo "$AWK" >&6; }
3083 else
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3089 test -n "$AWK" && break
3090 done
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3093 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3094 set x ${MAKE-make}
3095 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3096 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3097 $as_echo_n "(cached) " >&6
3098 else
3099 cat >conftest.make <<\_ACEOF
3100 SHELL = /bin/sh
3101 all:
3102 @echo '@@@%%%=$(MAKE)=@@@%%%'
3103 _ACEOF
3104 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3105 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3106 *@@@%%%=?*=@@@%%%*)
3107 eval ac_cv_prog_make_${ac_make}_set=yes;;
3109 eval ac_cv_prog_make_${ac_make}_set=no;;
3110 esac
3111 rm -f conftest.make
3113 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3115 $as_echo "yes" >&6; }
3116 SET_MAKE=
3117 else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3120 SET_MAKE="MAKE=${MAKE-make}"
3123 rm -rf .tst 2>/dev/null
3124 mkdir .tst 2>/dev/null
3125 if test -d .tst; then
3126 am__leading_dot=.
3127 else
3128 am__leading_dot=_
3130 rmdir .tst 2>/dev/null
3132 # Check whether --enable-silent-rules was given.
3133 if test "${enable_silent_rules+set}" = set; then :
3134 enableval=$enable_silent_rules;
3137 case $enable_silent_rules in # (((
3138 yes) AM_DEFAULT_VERBOSITY=0;;
3139 no) AM_DEFAULT_VERBOSITY=1;;
3140 *) AM_DEFAULT_VERBOSITY=1;;
3141 esac
3142 am_make=${MAKE-make}
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3144 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3145 if ${am_cv_make_support_nested_variables+:} false; then :
3146 $as_echo_n "(cached) " >&6
3147 else
3148 if $as_echo 'TRUE=$(BAR$(V))
3149 BAR0=false
3150 BAR1=true
3152 am__doit:
3153 @$(TRUE)
3154 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3155 am_cv_make_support_nested_variables=yes
3156 else
3157 am_cv_make_support_nested_variables=no
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3161 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3162 if test $am_cv_make_support_nested_variables = yes; then
3163 AM_V='$(V)'
3164 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3165 else
3166 AM_V=$AM_DEFAULT_VERBOSITY
3167 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3169 AM_BACKSLASH='\'
3171 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3172 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3173 # is not polluted with repeated "-I."
3174 am__isrc=' -I$(srcdir)'
3175 # test to see if srcdir already configured
3176 if test -f $srcdir/config.status; then
3177 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3181 # test whether we have cygpath
3182 if test -z "$CYGPATH_W"; then
3183 if (cygpath --version) >/dev/null 2>/dev/null; then
3184 CYGPATH_W='cygpath -w'
3185 else
3186 CYGPATH_W=echo
3191 # Define the identity of the package.
3192 PACKAGE='dhcp'
3193 VERSION='4.3.0'
3196 cat >>confdefs.h <<_ACEOF
3197 #define PACKAGE "$PACKAGE"
3198 _ACEOF
3201 cat >>confdefs.h <<_ACEOF
3202 #define VERSION "$VERSION"
3203 _ACEOF
3205 # Some tools Automake needs.
3207 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3210 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3213 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3216 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3219 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3221 # For better backward compatibility. To be removed once Automake 1.9.x
3222 # dies out for good. For more background, see:
3223 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3224 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3225 mkdir_p='$(MKDIR_P)'
3227 # We need awk for the "check" target. The system "awk" is bad on
3228 # some platforms.
3229 # Always define AMTAR for backward compatibility. Yes, it's still used
3230 # in the wild :-( We should find a proper way to deprecate it ...
3231 AMTAR='$${TAR-tar}'
3234 # We'll loop over all known methods to create a tar archive until one works.
3235 _am_tools='gnutar pax cpio none'
3237 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3244 # POSIX will say in a future version that running "rm -f" with no argument
3245 # is OK; and we want to be able to make that assumption in our Makefile
3246 # recipes. So use an aggressive probe to check that the usage we want is
3247 # actually supported "in the wild" to an acceptable degree.
3248 # See automake bug#10828.
3249 # To make any issue more visible, cause the running configure to be aborted
3250 # by default if the 'rm' program in use doesn't match our expectations; the
3251 # user can still override this though.
3252 if rm -f && rm -fr && rm -rf; then : OK; else
3253 cat >&2 <<'END'
3254 Oops!
3256 Your 'rm' program seems unable to run without file operands specified
3257 on the command line, even when the '-f' option is present. This is contrary
3258 to the behaviour of most rm programs out there, and not conforming with
3259 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3261 Please tell bug-automake@gnu.org about your system, including the value
3262 of your $PATH and any error possibly output before this message. This
3263 can help us improve future automake versions.
3266 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3267 echo 'Configuration will proceed anyway, since you have set the' >&2
3268 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3269 echo >&2
3270 else
3271 cat >&2 <<'END'
3272 Aborting the configuration process, to ensure you take notice of the issue.
3274 You can download and install GNU coreutils to get an 'rm' implementation
3275 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3277 If you want to complete the configuration process using your problematic
3278 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3279 to "yes", and re-run configure.
3282 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3286 # we specify AM_MAINTAINER_MODE to avoid problems with rebuilding
3287 # the configure and makefiles. Without it users doing things that
3288 # change the timestamps on the code, like checking it into a cvs
3289 # tree, could trigger a rebuild of the infrastructure files which
3290 # might fail if they don't have the correct tools.
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3293 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3294 # Check whether --enable-maintainer-mode was given.
3295 if test "${enable_maintainer_mode+set}" = set; then :
3296 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3297 else
3298 USE_MAINTAINER_MODE=no
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3302 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3303 if test $USE_MAINTAINER_MODE = yes; then
3304 MAINTAINER_MODE_TRUE=
3305 MAINTAINER_MODE_FALSE='#'
3306 else
3307 MAINTAINER_MODE_TRUE='#'
3308 MAINTAINER_MODE_FALSE=
3311 MAINT=$MAINTAINER_MODE_TRUE
3315 # Make sure we can run config.sub.
3316 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3317 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3320 $as_echo_n "checking build system type... " >&6; }
3321 if ${ac_cv_build+:} false; then :
3322 $as_echo_n "(cached) " >&6
3323 else
3324 ac_build_alias=$build_alias
3325 test "x$ac_build_alias" = x &&
3326 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3327 test "x$ac_build_alias" = x &&
3328 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3329 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3330 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3334 $as_echo "$ac_cv_build" >&6; }
3335 case $ac_cv_build in
3336 *-*-*) ;;
3337 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3338 esac
3339 build=$ac_cv_build
3340 ac_save_IFS=$IFS; IFS='-'
3341 set x $ac_cv_build
3342 shift
3343 build_cpu=$1
3344 build_vendor=$2
3345 shift; shift
3346 # Remember, the first character of IFS is used to create $*,
3347 # except with old shells:
3348 build_os=$*
3349 IFS=$ac_save_IFS
3350 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3354 $as_echo_n "checking host system type... " >&6; }
3355 if ${ac_cv_host+:} false; then :
3356 $as_echo_n "(cached) " >&6
3357 else
3358 if test "x$host_alias" = x; then
3359 ac_cv_host=$ac_cv_build
3360 else
3361 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3362 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3367 $as_echo "$ac_cv_host" >&6; }
3368 case $ac_cv_host in
3369 *-*-*) ;;
3370 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3371 esac
3372 host=$ac_cv_host
3373 ac_save_IFS=$IFS; IFS='-'
3374 set x $ac_cv_host
3375 shift
3376 host_cpu=$1
3377 host_vendor=$2
3378 shift; shift
3379 # Remember, the first character of IFS is used to create $*,
3380 # except with old shells:
3381 host_os=$*
3382 IFS=$ac_save_IFS
3383 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3387 # We want to turn on warnings if we are using gcc and the user did
3388 # not specify CFLAGS. The autoconf check for the C compiler sets the
3389 # CFLAGS if gcc is used, so we will save it before we run that check.
3390 SAVE_CFLAGS="$CFLAGS"
3392 # Now find our C compiler.
3393 ac_ext=c
3394 ac_cpp='$CPP $CPPFLAGS'
3395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398 if test -n "$ac_tool_prefix"; then
3399 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3400 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402 $as_echo_n "checking for $ac_word... " >&6; }
3403 if ${ac_cv_prog_CC+:} false; then :
3404 $as_echo_n "(cached) " >&6
3405 else
3406 if test -n "$CC"; then
3407 ac_cv_prog_CC="$CC" # Let the user override the test.
3408 else
3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 for as_dir in $PATH
3412 IFS=$as_save_IFS
3413 test -z "$as_dir" && as_dir=.
3414 for ac_exec_ext in '' $ac_executable_extensions; do
3415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3416 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418 break 2
3420 done
3421 done
3422 IFS=$as_save_IFS
3426 CC=$ac_cv_prog_CC
3427 if test -n "$CC"; then
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3429 $as_echo "$CC" >&6; }
3430 else
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432 $as_echo "no" >&6; }
3437 if test -z "$ac_cv_prog_CC"; then
3438 ac_ct_CC=$CC
3439 # Extract the first word of "gcc", so it can be a program name with args.
3440 set dummy gcc; ac_word=$2
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442 $as_echo_n "checking for $ac_word... " >&6; }
3443 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3444 $as_echo_n "(cached) " >&6
3445 else
3446 if test -n "$ac_ct_CC"; then
3447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3448 else
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 for as_dir in $PATH
3452 IFS=$as_save_IFS
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3456 ac_cv_prog_ac_ct_CC="gcc"
3457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 break 2
3460 done
3461 done
3462 IFS=$as_save_IFS
3466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3467 if test -n "$ac_ct_CC"; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3469 $as_echo "$ac_ct_CC" >&6; }
3470 else
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3475 if test "x$ac_ct_CC" = x; then
3476 CC=""
3477 else
3478 case $cross_compiling:$ac_tool_warned in
3479 yes:)
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3482 ac_tool_warned=yes ;;
3483 esac
3484 CC=$ac_ct_CC
3486 else
3487 CC="$ac_cv_prog_CC"
3490 if test -z "$CC"; then
3491 if test -n "$ac_tool_prefix"; then
3492 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3493 set dummy ${ac_tool_prefix}cc; ac_word=$2
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495 $as_echo_n "checking for $ac_word... " >&6; }
3496 if ${ac_cv_prog_CC+:} false; then :
3497 $as_echo_n "(cached) " >&6
3498 else
3499 if test -n "$CC"; then
3500 ac_cv_prog_CC="$CC" # Let the user override the test.
3501 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3505 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3509 ac_cv_prog_CC="${ac_tool_prefix}cc"
3510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 break 2
3513 done
3514 done
3515 IFS=$as_save_IFS
3519 CC=$ac_cv_prog_CC
3520 if test -n "$CC"; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3522 $as_echo "$CC" >&6; }
3523 else
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3531 if test -z "$CC"; then
3532 # Extract the first word of "cc", so it can be a program name with args.
3533 set dummy cc; ac_word=$2
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535 $as_echo_n "checking for $ac_word... " >&6; }
3536 if ${ac_cv_prog_CC+:} false; then :
3537 $as_echo_n "(cached) " >&6
3538 else
3539 if test -n "$CC"; then
3540 ac_cv_prog_CC="$CC" # Let the user override the test.
3541 else
3542 ac_prog_rejected=no
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3550 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3551 ac_prog_rejected=yes
3552 continue
3554 ac_cv_prog_CC="cc"
3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 break 2
3558 done
3559 done
3560 IFS=$as_save_IFS
3562 if test $ac_prog_rejected = yes; then
3563 # We found a bogon in the path, so make sure we never use it.
3564 set dummy $ac_cv_prog_CC
3565 shift
3566 if test $# != 0; then
3567 # We chose a different compiler from the bogus one.
3568 # However, it has the same basename, so the bogon will be chosen
3569 # first if we set CC to just the basename; use the full file name.
3570 shift
3571 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3576 CC=$ac_cv_prog_CC
3577 if test -n "$CC"; then
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3579 $as_echo "$CC" >&6; }
3580 else
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 $as_echo "no" >&6; }
3587 if test -z "$CC"; then
3588 if test -n "$ac_tool_prefix"; then
3589 for ac_prog in cl.exe
3591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if ${ac_cv_prog_CC+:} false; then :
3596 $as_echo_n "(cached) " >&6
3597 else
3598 if test -n "$CC"; then
3599 ac_cv_prog_CC="$CC" # Let the user override the test.
3600 else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 break 2
3612 done
3613 done
3614 IFS=$as_save_IFS
3618 CC=$ac_cv_prog_CC
3619 if test -n "$CC"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3621 $as_echo "$CC" >&6; }
3622 else
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3628 test -n "$CC" && break
3629 done
3631 if test -z "$CC"; then
3632 ac_ct_CC=$CC
3633 for ac_prog in cl.exe
3635 # Extract the first word of "$ac_prog", so it can be a program name with args.
3636 set dummy $ac_prog; ac_word=$2
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638 $as_echo_n "checking for $ac_word... " >&6; }
3639 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3640 $as_echo_n "(cached) " >&6
3641 else
3642 if test -n "$ac_ct_CC"; then
3643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3644 else
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH
3648 IFS=$as_save_IFS
3649 test -z "$as_dir" && as_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652 ac_cv_prog_ac_ct_CC="$ac_prog"
3653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 break 2
3656 done
3657 done
3658 IFS=$as_save_IFS
3662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3663 if test -n "$ac_ct_CC"; then
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3665 $as_echo "$ac_ct_CC" >&6; }
3666 else
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668 $as_echo "no" >&6; }
3672 test -n "$ac_ct_CC" && break
3673 done
3675 if test "x$ac_ct_CC" = x; then
3676 CC=""
3677 else
3678 case $cross_compiling:$ac_tool_warned in
3679 yes:)
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3682 ac_tool_warned=yes ;;
3683 esac
3684 CC=$ac_ct_CC
3691 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3693 as_fn_error $? "no acceptable C compiler found in \$PATH
3694 See \`config.log' for more details" "$LINENO" 5; }
3696 # Provide some information about the compiler.
3697 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3698 set X $ac_compile
3699 ac_compiler=$2
3700 for ac_option in --version -v -V -qversion; do
3701 { { ac_try="$ac_compiler $ac_option >&5"
3702 case "(($ac_try" in
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3705 esac
3706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3707 $as_echo "$ac_try_echo"; } >&5
3708 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3709 ac_status=$?
3710 if test -s conftest.err; then
3711 sed '10a\
3712 ... rest of stderr output deleted ...
3713 10q' conftest.err >conftest.er1
3714 cat conftest.er1 >&5
3716 rm -f conftest.er1 conftest.err
3717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718 test $ac_status = 0; }
3719 done
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h. */
3725 main ()
3729 return 0;
3731 _ACEOF
3732 ac_clean_files_save=$ac_clean_files
3733 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3734 # Try to create an executable without -o first, disregard a.out.
3735 # It will help us diagnose broken compilers, and finding out an intuition
3736 # of exeext.
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3738 $as_echo_n "checking whether the C compiler works... " >&6; }
3739 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3741 # The possible output files:
3742 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3744 ac_rmfiles=
3745 for ac_file in $ac_files
3747 case $ac_file in
3748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3749 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3750 esac
3751 done
3752 rm -f $ac_rmfiles
3754 if { { ac_try="$ac_link_default"
3755 case "(($ac_try" in
3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3758 esac
3759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761 (eval "$ac_link_default") 2>&5
3762 ac_status=$?
3763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764 test $ac_status = 0; }; then :
3765 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3766 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3767 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3768 # so that the user can short-circuit this test for compilers unknown to
3769 # Autoconf.
3770 for ac_file in $ac_files ''
3772 test -f "$ac_file" || continue
3773 case $ac_file in
3774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3776 [ab].out )
3777 # We found the default executable, but exeext='' is most
3778 # certainly right.
3779 break;;
3780 *.* )
3781 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3782 then :; else
3783 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3785 # We set ac_cv_exeext here because the later test for it is not
3786 # safe: cross compilers may not add the suffix if given an `-o'
3787 # argument, so we may need to know it at that point already.
3788 # Even if this section looks crufty: it has the advantage of
3789 # actually working.
3790 break;;
3792 break;;
3793 esac
3794 done
3795 test "$ac_cv_exeext" = no && ac_cv_exeext=
3797 else
3798 ac_file=''
3800 if test -z "$ac_file"; then :
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3802 $as_echo "no" >&6; }
3803 $as_echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3808 as_fn_error 77 "C compiler cannot create executables
3809 See \`config.log' for more details" "$LINENO" 5; }
3810 else
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3812 $as_echo "yes" >&6; }
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3815 $as_echo_n "checking for C compiler default output file name... " >&6; }
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3817 $as_echo "$ac_file" >&6; }
3818 ac_exeext=$ac_cv_exeext
3820 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3821 ac_clean_files=$ac_clean_files_save
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3823 $as_echo_n "checking for suffix of executables... " >&6; }
3824 if { { ac_try="$ac_link"
3825 case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3828 esac
3829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3830 $as_echo "$ac_try_echo"; } >&5
3831 (eval "$ac_link") 2>&5
3832 ac_status=$?
3833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834 test $ac_status = 0; }; then :
3835 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3836 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3837 # work properly (i.e., refer to `conftest.exe'), while it won't with
3838 # `rm'.
3839 for ac_file in conftest.exe conftest conftest.*; do
3840 test -f "$ac_file" || continue
3841 case $ac_file in
3842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3843 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3844 break;;
3845 * ) break;;
3846 esac
3847 done
3848 else
3849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3851 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3852 See \`config.log' for more details" "$LINENO" 5; }
3854 rm -f conftest conftest$ac_cv_exeext
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3856 $as_echo "$ac_cv_exeext" >&6; }
3858 rm -f conftest.$ac_ext
3859 EXEEXT=$ac_cv_exeext
3860 ac_exeext=$EXEEXT
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3863 #include <stdio.h>
3865 main ()
3867 FILE *f = fopen ("conftest.out", "w");
3868 return ferror (f) || fclose (f) != 0;
3871 return 0;
3873 _ACEOF
3874 ac_clean_files="$ac_clean_files conftest.out"
3875 # Check that the compiler produces executables we can run. If not, either
3876 # the compiler is broken, or we cross compile.
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3878 $as_echo_n "checking whether we are cross compiling... " >&6; }
3879 if test "$cross_compiling" != yes; then
3880 { { ac_try="$ac_link"
3881 case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884 esac
3885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3886 $as_echo "$ac_try_echo"; } >&5
3887 (eval "$ac_link") 2>&5
3888 ac_status=$?
3889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890 test $ac_status = 0; }
3891 if { ac_try='./conftest$ac_cv_exeext'
3892 { { case "(($ac_try" in
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3895 esac
3896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897 $as_echo "$ac_try_echo"; } >&5
3898 (eval "$ac_try") 2>&5
3899 ac_status=$?
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }; }; then
3902 cross_compiling=no
3903 else
3904 if test "$cross_compiling" = maybe; then
3905 cross_compiling=yes
3906 else
3907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3909 as_fn_error $? "cannot run C compiled programs.
3910 If you meant to cross compile, use \`--host'.
3911 See \`config.log' for more details" "$LINENO" 5; }
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3916 $as_echo "$cross_compiling" >&6; }
3918 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3919 ac_clean_files=$ac_clean_files_save
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3921 $as_echo_n "checking for suffix of object files... " >&6; }
3922 if ${ac_cv_objext+:} false; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3929 main ()
3933 return 0;
3935 _ACEOF
3936 rm -f conftest.o conftest.obj
3937 if { { ac_try="$ac_compile"
3938 case "(($ac_try" in
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3941 esac
3942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943 $as_echo "$ac_try_echo"; } >&5
3944 (eval "$ac_compile") 2>&5
3945 ac_status=$?
3946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947 test $ac_status = 0; }; then :
3948 for ac_file in conftest.o conftest.obj conftest.*; do
3949 test -f "$ac_file" || continue;
3950 case $ac_file in
3951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3952 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3953 break;;
3954 esac
3955 done
3956 else
3957 $as_echo "$as_me: failed program was:" >&5
3958 sed 's/^/| /' conftest.$ac_ext >&5
3960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3962 as_fn_error $? "cannot compute suffix of object files: cannot compile
3963 See \`config.log' for more details" "$LINENO" 5; }
3965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3968 $as_echo "$ac_cv_objext" >&6; }
3969 OBJEXT=$ac_cv_objext
3970 ac_objext=$OBJEXT
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3972 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3973 if ${ac_cv_c_compiler_gnu+:} false; then :
3974 $as_echo_n "(cached) " >&6
3975 else
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3980 main ()
3982 #ifndef __GNUC__
3983 choke me
3984 #endif
3987 return 0;
3989 _ACEOF
3990 if ac_fn_c_try_compile "$LINENO"; then :
3991 ac_compiler_gnu=yes
3992 else
3993 ac_compiler_gnu=no
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4000 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4001 if test $ac_compiler_gnu = yes; then
4002 GCC=yes
4003 else
4004 GCC=
4006 ac_test_CFLAGS=${CFLAGS+set}
4007 ac_save_CFLAGS=$CFLAGS
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4009 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4010 if ${ac_cv_prog_cc_g+:} false; then :
4011 $as_echo_n "(cached) " >&6
4012 else
4013 ac_save_c_werror_flag=$ac_c_werror_flag
4014 ac_c_werror_flag=yes
4015 ac_cv_prog_cc_g=no
4016 CFLAGS="-g"
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4021 main ()
4025 return 0;
4027 _ACEOF
4028 if ac_fn_c_try_compile "$LINENO"; then :
4029 ac_cv_prog_cc_g=yes
4030 else
4031 CFLAGS=""
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4036 main ()
4040 return 0;
4042 _ACEOF
4043 if ac_fn_c_try_compile "$LINENO"; then :
4045 else
4046 ac_c_werror_flag=$ac_save_c_werror_flag
4047 CFLAGS="-g"
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4052 main ()
4056 return 0;
4058 _ACEOF
4059 if ac_fn_c_try_compile "$LINENO"; then :
4060 ac_cv_prog_cc_g=yes
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 ac_c_werror_flag=$ac_save_c_werror_flag
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4070 $as_echo "$ac_cv_prog_cc_g" >&6; }
4071 if test "$ac_test_CFLAGS" = set; then
4072 CFLAGS=$ac_save_CFLAGS
4073 elif test $ac_cv_prog_cc_g = yes; then
4074 if test "$GCC" = yes; then
4075 CFLAGS="-g -O2"
4076 else
4077 CFLAGS="-g"
4079 else
4080 if test "$GCC" = yes; then
4081 CFLAGS="-O2"
4082 else
4083 CFLAGS=
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4087 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4088 if ${ac_cv_prog_cc_c89+:} false; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 ac_cv_prog_cc_c89=no
4092 ac_save_CC=$CC
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095 #include <stdarg.h>
4096 #include <stdio.h>
4097 struct stat;
4098 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4099 struct buf { int x; };
4100 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4101 static char *e (p, i)
4102 char **p;
4103 int i;
4105 return p[i];
4107 static char *f (char * (*g) (char **, int), char **p, ...)
4109 char *s;
4110 va_list v;
4111 va_start (v,p);
4112 s = g (p, va_arg (v,int));
4113 va_end (v);
4114 return s;
4117 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4118 function prototypes and stuff, but not '\xHH' hex character constants.
4119 These don't provoke an error unfortunately, instead are silently treated
4120 as 'x'. The following induces an error, until -std is added to get
4121 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4122 array size at least. It's necessary to write '\x00'==0 to get something
4123 that's true only with -std. */
4124 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4126 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4127 inside strings and character constants. */
4128 #define FOO(x) 'x'
4129 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4131 int test (int i, double x);
4132 struct s1 {int (*f) (int a);};
4133 struct s2 {int (*f) (double a);};
4134 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4135 int argc;
4136 char **argv;
4138 main ()
4140 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4142 return 0;
4144 _ACEOF
4145 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4146 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4148 CC="$ac_save_CC $ac_arg"
4149 if ac_fn_c_try_compile "$LINENO"; then :
4150 ac_cv_prog_cc_c89=$ac_arg
4152 rm -f core conftest.err conftest.$ac_objext
4153 test "x$ac_cv_prog_cc_c89" != "xno" && break
4154 done
4155 rm -f conftest.$ac_ext
4156 CC=$ac_save_CC
4159 # AC_CACHE_VAL
4160 case "x$ac_cv_prog_cc_c89" in
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4163 $as_echo "none needed" >&6; } ;;
4164 xno)
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4166 $as_echo "unsupported" >&6; } ;;
4168 CC="$CC $ac_cv_prog_cc_c89"
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4170 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4171 esac
4172 if test "x$ac_cv_prog_cc_c89" != xno; then :
4176 ac_ext=c
4177 ac_cpp='$CPP $CPPFLAGS'
4178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4182 ac_ext=c
4183 ac_cpp='$CPP $CPPFLAGS'
4184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4188 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4189 if ${am_cv_prog_cc_c_o+:} false; then :
4190 $as_echo_n "(cached) " >&6
4191 else
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4196 main ()
4200 return 0;
4202 _ACEOF
4203 # Make sure it works both with $CC and with simple cc.
4204 # Following AC_PROG_CC_C_O, we do the test twice because some
4205 # compilers refuse to overwrite an existing .o file with -o,
4206 # though they will create one.
4207 am_cv_prog_cc_c_o=yes
4208 for am_i in 1 2; do
4209 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4210 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4211 ac_status=$?
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } \
4214 && test -f conftest2.$ac_objext; then
4215 : OK
4216 else
4217 am_cv_prog_cc_c_o=no
4218 break
4220 done
4221 rm -f core conftest*
4222 unset am_i
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4225 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4226 if test "$am_cv_prog_cc_c_o" != yes; then
4227 # Losing compiler, so override with the script.
4228 # FIXME: It is wrong to rewrite CC.
4229 # But if we don't then we get into trouble of one sort or another.
4230 # A longer-term fix would be to have automake use am__CC in this case,
4231 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4232 CC="$am_aux_dir/compile $CC"
4234 ac_ext=c
4235 ac_cpp='$CPP $CPPFLAGS'
4236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4240 DEPDIR="${am__leading_dot}deps"
4242 ac_config_commands="$ac_config_commands depfiles"
4245 am_make=${MAKE-make}
4246 cat > confinc << 'END'
4247 am__doit:
4248 @echo this is the am__doit target
4249 .PHONY: am__doit
4251 # If we don't find an include directive, just comment out the code.
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4253 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4254 am__include="#"
4255 am__quote=
4256 _am_result=none
4257 # First try GNU make style include.
4258 echo "include confinc" > confmf
4259 # Ignore all kinds of additional output from 'make'.
4260 case `$am_make -s -f confmf 2> /dev/null` in #(
4261 *the\ am__doit\ target*)
4262 am__include=include
4263 am__quote=
4264 _am_result=GNU
4266 esac
4267 # Now try BSD make style include.
4268 if test "$am__include" = "#"; then
4269 echo '.include "confinc"' > confmf
4270 case `$am_make -s -f confmf 2> /dev/null` in #(
4271 *the\ am__doit\ target*)
4272 am__include=.include
4273 am__quote="\""
4274 _am_result=BSD
4276 esac
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4281 $as_echo "$_am_result" >&6; }
4282 rm -f confinc confmf
4284 # Check whether --enable-dependency-tracking was given.
4285 if test "${enable_dependency_tracking+set}" = set; then :
4286 enableval=$enable_dependency_tracking;
4289 if test "x$enable_dependency_tracking" != xno; then
4290 am_depcomp="$ac_aux_dir/depcomp"
4291 AMDEPBACKSLASH='\'
4292 am__nodep='_no'
4294 if test "x$enable_dependency_tracking" != xno; then
4295 AMDEP_TRUE=
4296 AMDEP_FALSE='#'
4297 else
4298 AMDEP_TRUE='#'
4299 AMDEP_FALSE=
4304 depcc="$CC" am_compiler_list=
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4307 $as_echo_n "checking dependency style of $depcc... " >&6; }
4308 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4312 # We make a subdir and do the tests there. Otherwise we can end up
4313 # making bogus files that we don't know about and never remove. For
4314 # instance it was reported that on HP-UX the gcc test will end up
4315 # making a dummy file named 'D' -- because '-MD' means "put the output
4316 # in D".
4317 rm -rf conftest.dir
4318 mkdir conftest.dir
4319 # Copy depcomp to subdir because otherwise we won't find it if we're
4320 # using a relative directory.
4321 cp "$am_depcomp" conftest.dir
4322 cd conftest.dir
4323 # We will build objects and dependencies in a subdirectory because
4324 # it helps to detect inapplicable dependency modes. For instance
4325 # both Tru64's cc and ICC support -MD to output dependencies as a
4326 # side effect of compilation, but ICC will put the dependencies in
4327 # the current directory while Tru64 will put them in the object
4328 # directory.
4329 mkdir sub
4331 am_cv_CC_dependencies_compiler_type=none
4332 if test "$am_compiler_list" = ""; then
4333 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4335 am__universal=false
4336 case " $depcc " in #(
4337 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4338 esac
4340 for depmode in $am_compiler_list; do
4341 # Setup a source with many dependencies, because some compilers
4342 # like to wrap large dependency lists on column 80 (with \), and
4343 # we should not choose a depcomp mode which is confused by this.
4345 # We need to recreate these files for each test, as the compiler may
4346 # overwrite some of them when testing with obscure command lines.
4347 # This happens at least with the AIX C compiler.
4348 : > sub/conftest.c
4349 for i in 1 2 3 4 5 6; do
4350 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4351 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4352 # Solaris 10 /bin/sh.
4353 echo '/* dummy */' > sub/conftst$i.h
4354 done
4355 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4357 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4358 # mode. It turns out that the SunPro C++ compiler does not properly
4359 # handle '-M -o', and we need to detect this. Also, some Intel
4360 # versions had trouble with output in subdirs.
4361 am__obj=sub/conftest.${OBJEXT-o}
4362 am__minus_obj="-o $am__obj"
4363 case $depmode in
4364 gcc)
4365 # This depmode causes a compiler race in universal mode.
4366 test "$am__universal" = false || continue
4368 nosideeffect)
4369 # After this tag, mechanisms are not by side-effect, so they'll
4370 # only be used when explicitly requested.
4371 if test "x$enable_dependency_tracking" = xyes; then
4372 continue
4373 else
4374 break
4377 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4378 # This compiler won't grok '-c -o', but also, the minuso test has
4379 # not run yet. These depmodes are late enough in the game, and
4380 # so weak that their functioning should not be impacted.
4381 am__obj=conftest.${OBJEXT-o}
4382 am__minus_obj=
4384 none) break ;;
4385 esac
4386 if depmode=$depmode \
4387 source=sub/conftest.c object=$am__obj \
4388 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4389 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4390 >/dev/null 2>conftest.err &&
4391 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4392 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4393 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4394 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4395 # icc doesn't choke on unknown options, it will just issue warnings
4396 # or remarks (even with -Werror). So we grep stderr for any message
4397 # that says an option was ignored or not supported.
4398 # When given -MP, icc 7.0 and 7.1 complain thusly:
4399 # icc: Command line warning: ignoring option '-M'; no argument required
4400 # The diagnosis changed in icc 8.0:
4401 # icc: Command line remark: option '-MP' not supported
4402 if (grep 'ignoring option' conftest.err ||
4403 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4404 am_cv_CC_dependencies_compiler_type=$depmode
4405 break
4408 done
4410 cd ..
4411 rm -rf conftest.dir
4412 else
4413 am_cv_CC_dependencies_compiler_type=none
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4418 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4419 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4422 test "x$enable_dependency_tracking" != xno \
4423 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4424 am__fastdepCC_TRUE=
4425 am__fastdepCC_FALSE='#'
4426 else
4427 am__fastdepCC_TRUE='#'
4428 am__fastdepCC_FALSE=
4433 # Suppress warnings about --datarootdir
4436 # If we have gcc, and AC_PROG_CC changed the flags, then we know the
4437 # user did not specify any flags. Add warnings in this case.
4438 if test "$GCC" = "yes"; then
4439 if test "$CFLAGS" != "$SAVE_CFLAGS"; then
4440 STD_CWARNINGS="$STD_CWARNINGS -Wall -Werror -fno-strict-aliasing"
4444 # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
4445 # parts of the IPv6 Advanced Socket API as a result. This is stupid
4446 # as it breaks how the two halves (Basic and Advanced) of the IPv6
4447 # Socket API were designed to be used but we have to live with it.
4448 # Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
4450 ac_ext=c
4451 ac_cpp='$CPP $CPPFLAGS'
4452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4456 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4457 # On Suns, sometimes $CPP names a directory.
4458 if test -n "$CPP" && test -d "$CPP"; then
4459 CPP=
4461 if test -z "$CPP"; then
4462 if ${ac_cv_prog_CPP+:} false; then :
4463 $as_echo_n "(cached) " >&6
4464 else
4465 # Double quotes because CPP needs to be expanded
4466 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4468 ac_preproc_ok=false
4469 for ac_c_preproc_warn_flag in '' yes
4471 # Use a header file that comes with gcc, so configuring glibc
4472 # with a fresh cross-compiler works.
4473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4474 # <limits.h> exists even on freestanding compilers.
4475 # On the NeXT, cc -E runs the code through the compiler's parser,
4476 # not just through cpp. "Syntax error" is here to catch this case.
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4479 #ifdef __STDC__
4480 # include <limits.h>
4481 #else
4482 # include <assert.h>
4483 #endif
4484 Syntax error
4485 _ACEOF
4486 if ac_fn_c_try_cpp "$LINENO"; then :
4488 else
4489 # Broken: fails on valid input.
4490 continue
4492 rm -f conftest.err conftest.i conftest.$ac_ext
4494 # OK, works on sane cases. Now check whether nonexistent headers
4495 # can be detected and how.
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4498 #include <ac_nonexistent.h>
4499 _ACEOF
4500 if ac_fn_c_try_cpp "$LINENO"; then :
4501 # Broken: success on invalid input.
4502 continue
4503 else
4504 # Passes both tests.
4505 ac_preproc_ok=:
4506 break
4508 rm -f conftest.err conftest.i conftest.$ac_ext
4510 done
4511 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4512 rm -f conftest.i conftest.err conftest.$ac_ext
4513 if $ac_preproc_ok; then :
4514 break
4517 done
4518 ac_cv_prog_CPP=$CPP
4521 CPP=$ac_cv_prog_CPP
4522 else
4523 ac_cv_prog_CPP=$CPP
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4526 $as_echo "$CPP" >&6; }
4527 ac_preproc_ok=false
4528 for ac_c_preproc_warn_flag in '' yes
4530 # Use a header file that comes with gcc, so configuring glibc
4531 # with a fresh cross-compiler works.
4532 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4533 # <limits.h> exists even on freestanding compilers.
4534 # On the NeXT, cc -E runs the code through the compiler's parser,
4535 # not just through cpp. "Syntax error" is here to catch this case.
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4538 #ifdef __STDC__
4539 # include <limits.h>
4540 #else
4541 # include <assert.h>
4542 #endif
4543 Syntax error
4544 _ACEOF
4545 if ac_fn_c_try_cpp "$LINENO"; then :
4547 else
4548 # Broken: fails on valid input.
4549 continue
4551 rm -f conftest.err conftest.i conftest.$ac_ext
4553 # OK, works on sane cases. Now check whether nonexistent headers
4554 # can be detected and how.
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4557 #include <ac_nonexistent.h>
4558 _ACEOF
4559 if ac_fn_c_try_cpp "$LINENO"; then :
4560 # Broken: success on invalid input.
4561 continue
4562 else
4563 # Passes both tests.
4564 ac_preproc_ok=:
4565 break
4567 rm -f conftest.err conftest.i conftest.$ac_ext
4569 done
4570 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4571 rm -f conftest.i conftest.err conftest.$ac_ext
4572 if $ac_preproc_ok; then :
4574 else
4575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4577 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4578 See \`config.log' for more details" "$LINENO" 5; }
4581 ac_ext=c
4582 ac_cpp='$CPP $CPPFLAGS'
4583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4589 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4590 if ${ac_cv_path_GREP+:} false; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 if test -z "$GREP"; then
4594 ac_path_GREP_found=false
4595 # Loop through the user's path and test for each of PROGNAME-LIST
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4599 IFS=$as_save_IFS
4600 test -z "$as_dir" && as_dir=.
4601 for ac_prog in grep ggrep; do
4602 for ac_exec_ext in '' $ac_executable_extensions; do
4603 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4604 as_fn_executable_p "$ac_path_GREP" || continue
4605 # Check for GNU ac_path_GREP and select it if it is found.
4606 # Check for GNU $ac_path_GREP
4607 case `"$ac_path_GREP" --version 2>&1` in
4608 *GNU*)
4609 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4611 ac_count=0
4612 $as_echo_n 0123456789 >"conftest.in"
4613 while :
4615 cat "conftest.in" "conftest.in" >"conftest.tmp"
4616 mv "conftest.tmp" "conftest.in"
4617 cp "conftest.in" "conftest.nl"
4618 $as_echo 'GREP' >> "conftest.nl"
4619 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4620 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4621 as_fn_arith $ac_count + 1 && ac_count=$as_val
4622 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4623 # Best one so far, save it but keep looking for a better one
4624 ac_cv_path_GREP="$ac_path_GREP"
4625 ac_path_GREP_max=$ac_count
4627 # 10*(2^10) chars as input seems more than enough
4628 test $ac_count -gt 10 && break
4629 done
4630 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4631 esac
4633 $ac_path_GREP_found && break 3
4634 done
4635 done
4636 done
4637 IFS=$as_save_IFS
4638 if test -z "$ac_cv_path_GREP"; then
4639 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4641 else
4642 ac_cv_path_GREP=$GREP
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4647 $as_echo "$ac_cv_path_GREP" >&6; }
4648 GREP="$ac_cv_path_GREP"
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4652 $as_echo_n "checking for egrep... " >&6; }
4653 if ${ac_cv_path_EGREP+:} false; then :
4654 $as_echo_n "(cached) " >&6
4655 else
4656 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4657 then ac_cv_path_EGREP="$GREP -E"
4658 else
4659 if test -z "$EGREP"; then
4660 ac_path_EGREP_found=false
4661 # Loop through the user's path and test for each of PROGNAME-LIST
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_prog in egrep; do
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4670 as_fn_executable_p "$ac_path_EGREP" || continue
4671 # Check for GNU ac_path_EGREP and select it if it is found.
4672 # Check for GNU $ac_path_EGREP
4673 case `"$ac_path_EGREP" --version 2>&1` in
4674 *GNU*)
4675 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4677 ac_count=0
4678 $as_echo_n 0123456789 >"conftest.in"
4679 while :
4681 cat "conftest.in" "conftest.in" >"conftest.tmp"
4682 mv "conftest.tmp" "conftest.in"
4683 cp "conftest.in" "conftest.nl"
4684 $as_echo 'EGREP' >> "conftest.nl"
4685 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4686 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4687 as_fn_arith $ac_count + 1 && ac_count=$as_val
4688 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4689 # Best one so far, save it but keep looking for a better one
4690 ac_cv_path_EGREP="$ac_path_EGREP"
4691 ac_path_EGREP_max=$ac_count
4693 # 10*(2^10) chars as input seems more than enough
4694 test $ac_count -gt 10 && break
4695 done
4696 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4697 esac
4699 $ac_path_EGREP_found && break 3
4700 done
4701 done
4702 done
4703 IFS=$as_save_IFS
4704 if test -z "$ac_cv_path_EGREP"; then
4705 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4707 else
4708 ac_cv_path_EGREP=$EGREP
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4714 $as_echo "$ac_cv_path_EGREP" >&6; }
4715 EGREP="$ac_cv_path_EGREP"
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4719 $as_echo_n "checking for ANSI C header files... " >&6; }
4720 if ${ac_cv_header_stdc+:} false; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4725 #include <stdlib.h>
4726 #include <stdarg.h>
4727 #include <string.h>
4728 #include <float.h>
4731 main ()
4735 return 0;
4737 _ACEOF
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739 ac_cv_header_stdc=yes
4740 else
4741 ac_cv_header_stdc=no
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 if test $ac_cv_header_stdc = yes; then
4746 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4749 #include <string.h>
4751 _ACEOF
4752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4753 $EGREP "memchr" >/dev/null 2>&1; then :
4755 else
4756 ac_cv_header_stdc=no
4758 rm -f conftest*
4762 if test $ac_cv_header_stdc = yes; then
4763 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4766 #include <stdlib.h>
4768 _ACEOF
4769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4770 $EGREP "free" >/dev/null 2>&1; then :
4772 else
4773 ac_cv_header_stdc=no
4775 rm -f conftest*
4779 if test $ac_cv_header_stdc = yes; then
4780 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4781 if test "$cross_compiling" = yes; then :
4783 else
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4786 #include <ctype.h>
4787 #include <stdlib.h>
4788 #if ((' ' & 0x0FF) == 0x020)
4789 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4790 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4791 #else
4792 # define ISLOWER(c) \
4793 (('a' <= (c) && (c) <= 'i') \
4794 || ('j' <= (c) && (c) <= 'r') \
4795 || ('s' <= (c) && (c) <= 'z'))
4796 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4797 #endif
4799 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4801 main ()
4803 int i;
4804 for (i = 0; i < 256; i++)
4805 if (XOR (islower (i), ISLOWER (i))
4806 || toupper (i) != TOUPPER (i))
4807 return 2;
4808 return 0;
4810 _ACEOF
4811 if ac_fn_c_try_run "$LINENO"; then :
4813 else
4814 ac_cv_header_stdc=no
4816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4817 conftest.$ac_objext conftest.beam conftest.$ac_ext
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4823 $as_echo "$ac_cv_header_stdc" >&6; }
4824 if test $ac_cv_header_stdc = yes; then
4826 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4830 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4831 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4832 inttypes.h stdint.h unistd.h
4833 do :
4834 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4835 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4837 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4838 cat >>confdefs.h <<_ACEOF
4839 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4840 _ACEOF
4844 done
4848 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4849 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4850 MINIX=yes
4851 else
4852 MINIX=
4856 if test "$MINIX" = yes; then
4858 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4861 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4864 $as_echo "#define _MINIX 1" >>confdefs.h
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4870 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4871 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4877 # define __EXTENSIONS__ 1
4878 $ac_includes_default
4880 main ()
4884 return 0;
4886 _ACEOF
4887 if ac_fn_c_try_compile "$LINENO"; then :
4888 ac_cv_safe_to_define___extensions__=yes
4889 else
4890 ac_cv_safe_to_define___extensions__=no
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4895 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4896 test $ac_cv_safe_to_define___extensions__ = yes &&
4897 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4899 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4901 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4903 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4905 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4909 if test -n "$ac_tool_prefix"; then
4910 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4911 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if ${ac_cv_prog_RANLIB+:} false; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 if test -n "$RANLIB"; then
4918 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4927 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 break 2
4931 done
4932 done
4933 IFS=$as_save_IFS
4937 RANLIB=$ac_cv_prog_RANLIB
4938 if test -n "$RANLIB"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4940 $as_echo "$RANLIB" >&6; }
4941 else
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4948 if test -z "$ac_cv_prog_RANLIB"; then
4949 ac_ct_RANLIB=$RANLIB
4950 # Extract the first word of "ranlib", so it can be a program name with args.
4951 set dummy ranlib; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 if test -n "$ac_ct_RANLIB"; then
4958 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967 ac_cv_prog_ac_ct_RANLIB="ranlib"
4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 break 2
4971 done
4972 done
4973 IFS=$as_save_IFS
4977 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4978 if test -n "$ac_ct_RANLIB"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4980 $as_echo "$ac_ct_RANLIB" >&6; }
4981 else
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4986 if test "x$ac_ct_RANLIB" = x; then
4987 RANLIB=":"
4988 else
4989 case $cross_compiling:$ac_tool_warned in
4990 yes:)
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4993 ac_tool_warned=yes ;;
4994 esac
4995 RANLIB=$ac_ct_RANLIB
4997 else
4998 RANLIB="$ac_cv_prog_RANLIB"
5001 ac_config_headers="$ac_config_headers includes/config.h"
5004 # we sometimes need to know byte order for building packets
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5006 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5007 if ${ac_cv_c_bigendian+:} false; then :
5008 $as_echo_n "(cached) " >&6
5009 else
5010 ac_cv_c_bigendian=unknown
5011 # See if we're dealing with a universal compiler.
5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013 /* end confdefs.h. */
5014 #ifndef __APPLE_CC__
5015 not a universal capable compiler
5016 #endif
5017 typedef int dummy;
5019 _ACEOF
5020 if ac_fn_c_try_compile "$LINENO"; then :
5022 # Check for potential -arch flags. It is not universal unless
5023 # there are at least two -arch flags with different values.
5024 ac_arch=
5025 ac_prev=
5026 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5027 if test -n "$ac_prev"; then
5028 case $ac_word in
5029 i?86 | x86_64 | ppc | ppc64)
5030 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5031 ac_arch=$ac_word
5032 else
5033 ac_cv_c_bigendian=universal
5034 break
5037 esac
5038 ac_prev=
5039 elif test "x$ac_word" = "x-arch"; then
5040 ac_prev=arch
5042 done
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045 if test $ac_cv_c_bigendian = unknown; then
5046 # See if sys/param.h defines the BYTE_ORDER macro.
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5049 #include <sys/types.h>
5050 #include <sys/param.h>
5053 main ()
5055 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5056 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5057 && LITTLE_ENDIAN)
5058 bogus endian macros
5059 #endif
5062 return 0;
5064 _ACEOF
5065 if ac_fn_c_try_compile "$LINENO"; then :
5066 # It does; now see whether it defined to BIG_ENDIAN or not.
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5069 #include <sys/types.h>
5070 #include <sys/param.h>
5073 main ()
5075 #if BYTE_ORDER != BIG_ENDIAN
5076 not big endian
5077 #endif
5080 return 0;
5082 _ACEOF
5083 if ac_fn_c_try_compile "$LINENO"; then :
5084 ac_cv_c_bigendian=yes
5085 else
5086 ac_cv_c_bigendian=no
5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 if test $ac_cv_c_bigendian = unknown; then
5093 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h. */
5096 #include <limits.h>
5099 main ()
5101 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5102 bogus endian macros
5103 #endif
5106 return 0;
5108 _ACEOF
5109 if ac_fn_c_try_compile "$LINENO"; then :
5110 # It does; now see whether it defined to _BIG_ENDIAN or not.
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5113 #include <limits.h>
5116 main ()
5118 #ifndef _BIG_ENDIAN
5119 not big endian
5120 #endif
5123 return 0;
5125 _ACEOF
5126 if ac_fn_c_try_compile "$LINENO"; then :
5127 ac_cv_c_bigendian=yes
5128 else
5129 ac_cv_c_bigendian=no
5131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5135 if test $ac_cv_c_bigendian = unknown; then
5136 # Compile a test program.
5137 if test "$cross_compiling" = yes; then :
5138 # Try to guess by grepping values from an object file.
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5141 short int ascii_mm[] =
5142 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5143 short int ascii_ii[] =
5144 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5145 int use_ascii (int i) {
5146 return ascii_mm[i] + ascii_ii[i];
5148 short int ebcdic_ii[] =
5149 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5150 short int ebcdic_mm[] =
5151 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5152 int use_ebcdic (int i) {
5153 return ebcdic_mm[i] + ebcdic_ii[i];
5155 extern int foo;
5158 main ()
5160 return use_ascii (foo) == use_ebcdic (foo);
5162 return 0;
5164 _ACEOF
5165 if ac_fn_c_try_compile "$LINENO"; then :
5166 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5167 ac_cv_c_bigendian=yes
5169 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5170 if test "$ac_cv_c_bigendian" = unknown; then
5171 ac_cv_c_bigendian=no
5172 else
5173 # finding both strings is unlikely to happen, but who knows?
5174 ac_cv_c_bigendian=unknown
5178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179 else
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5182 $ac_includes_default
5184 main ()
5187 /* Are we little or big endian? From Harbison&Steele. */
5188 union
5190 long int l;
5191 char c[sizeof (long int)];
5192 } u;
5193 u.l = 1;
5194 return u.c[sizeof (long int) - 1] == 1;
5197 return 0;
5199 _ACEOF
5200 if ac_fn_c_try_run "$LINENO"; then :
5201 ac_cv_c_bigendian=no
5202 else
5203 ac_cv_c_bigendian=yes
5205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5206 conftest.$ac_objext conftest.beam conftest.$ac_ext
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5212 $as_echo "$ac_cv_c_bigendian" >&6; }
5213 case $ac_cv_c_bigendian in #(
5214 yes)
5215 byte_order=BIG_ENDIAN
5216 ;; #(
5218 byte_order=LITTLE_ENDIAN
5219 ;; #(
5220 universal)
5222 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5224 ;; #(
5226 as_fn_error $? "unknown endianness
5227 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5228 esac
5231 cat >>confdefs.h <<_ACEOF
5232 #define DHCP_BYTE_ORDER $byte_order
5233 _ACEOF
5236 # Optional compile-time DEBUGging.
5237 # Check whether --enable-debug was given.
5238 if test "${enable_debug+set}" = set; then :
5239 enableval=$enable_debug; enable_debug=yes
5240 else
5241 enable_debug=no
5244 # This is very much off by default.
5245 if test "$enable_debug" = "yes" ; then
5247 $as_echo "#define DEBUG 1" >>confdefs.h
5249 # Just override CFLAGS to totally to remove optimization.
5250 CFLAGS="-g"
5252 # XXX: there are actually quite a lot more DEBUG_ features we could enable,
5253 # but I don't want to pollute the --help space.
5255 #/* #define DEBUG_TOKENS */
5256 #/* #define DEBUG_PACKET */
5257 #/* #define DEBUG_EXPRESSIONS */
5258 #/* #define DEBUG_FIND_LEASE */
5259 #/* #define DEBUG_EXPRESSION_PARSE */
5260 #/* #define DEBUG_CLASS_MATCHING */
5261 #/* #define DEBUG_MEMORY_LEAKAGE */
5262 #/* #define DEBUG_MALLOC_POOL */
5263 #/* #define DEBUG_LEASE_STATE_TRANSITIONS */
5264 #/* #define DEBUG_RC_HISTORY */
5265 #/* #define DEBUG_RC_HISTORY_EXHAUSTIVELY */
5266 #/* #define RC_HISTORY_MAX 10240 */
5267 #/* #define POINTER_DEBUG */
5268 #/* #define DEBUG_FAILOVER_MESSAGES */
5269 #/* #define DEBUG_FAILOVER_TIMING */
5270 #/* #define DEBUG_DUMP_ALL_LEASES */
5272 # Failover optional compile-time feature.
5273 # Check whether --enable-failover was given.
5274 if test "${enable_failover+set}" = set; then :
5275 enableval=$enable_failover;
5278 # Failover is on by default, so define if it is not explicitly disabled.
5279 if test "$enable_failover" != "no"; then
5281 $as_echo "#define FAILOVER_PROTOCOL 1" >>confdefs.h
5285 # execute() support.
5286 # Check whether --enable-execute was given.
5287 if test "${enable_execute+set}" = set; then :
5288 enableval=$enable_execute;
5291 # execute() is on by default, so define if it is not explicitly disabled.
5292 if test "$enable_execute" != "no" ; then
5294 $as_echo "#define ENABLE_EXECUTE 1" >>confdefs.h
5298 # Server tracing support.
5299 # Check whether --enable-tracing was given.
5300 if test "${enable_tracing+set}" = set; then :
5301 enableval=$enable_tracing;
5304 # tracing is on by default, so define if it is not explicitly disabled.
5305 if test "$enable_tracing" != "no" ; then
5307 $as_echo "#define TRACING 1" >>confdefs.h
5311 # Delayed-ack feature support (experimental).
5312 # Check whether --enable-delayed_ack was given.
5313 if test "${enable_delayed_ack+set}" = set; then :
5314 enableval=$enable_delayed_ack;
5317 if test "$enable_delayed_ack" = "yes"; then
5319 $as_echo "#define DELAYED_ACK 1" >>confdefs.h
5323 # DHCPv6 optional compile-time feature.
5324 # Check whether --enable-dhcpv6 was given.
5325 if test "${enable_dhcpv6+set}" = set; then :
5326 enableval=$enable_dhcpv6;
5329 # DHCPv6 is on by default, so define if it is not explicitly disabled.
5330 if test "$enable_dhcpv6" != "no"; then
5332 $as_echo "#define DHCPv6 1" >>confdefs.h
5336 # PARANOIA is off by default (until we can test it with all features)
5337 # Check whether --enable-paranoia was given.
5338 if test "${enable_paranoia+set}" = set; then :
5339 enableval=$enable_paranoia;
5342 # Check whether --enable-early_chroot was given.
5343 if test "${enable_early_chroot+set}" = set; then :
5344 enableval=$enable_early_chroot;
5347 # If someone enables early chroot, but does not enable paranoia, do so for
5348 # them.
5349 if test "$enable_paranoia" != "yes" && \
5350 test "$enable_early_chroot" = "yes" ; then
5351 enable_paranoia="yes"
5354 if test "$enable_paranoia" = "yes" ; then
5356 $as_echo "#define PARANOIA 1" >>confdefs.h
5359 if test "$enable_early_chroot" = "yes" ; then
5361 $as_echo "#define EARLY_CHROOT 1" >>confdefs.h
5365 # Check whether --enable-ipv4_pktinfo was given.
5366 if test "${enable_ipv4_pktinfo+set}" = set; then :
5367 enableval=$enable_ipv4_pktinfo;
5371 if test "$enable_ipv4_pktinfo" = "yes"; then
5373 $as_echo "#define USE_V4_PKTINFO 1" >>confdefs.h
5377 # Check whether --enable-use_sockets was given.
5378 if test "${enable_use_sockets+set}" = set; then :
5379 enableval=$enable_use_sockets;
5383 if test "$enable_use_sockets" = "yes"; then
5385 $as_echo "#define USE_SOCKETS 1" >>confdefs.h
5389 # Try to hnadle incorrect byte order for secs field
5390 # This is off by default
5391 # Check whether --enable-secs_byteorder was given.
5392 if test "${enable_secs_byteorder+set}" = set; then :
5393 enableval=$enable_secs_byteorder;
5397 if test "$enable_secs_byteorder" = "yes" ; then
5399 $as_echo "#define SECS_BYTEORDER 1" >>confdefs.h
5403 # Testing section
5405 atf_path="no"
5407 # Check whether --with-atf was given.
5408 if test "${with_atf+set}" = set; then :
5409 withval=$with_atf; atf_path="$withval"
5412 if test "$atf_path" != "no" ; then
5413 # Config path for pkg-config
5414 atf_pcp=""
5415 if test "$atf_path" != "yes" ; then
5416 if test -f $atf_path/lib/pkgconfig/atf-c.pc ; then
5417 atf_pcp=$atf_path/lib/pkgconfig
5418 elif test -f $atf_path/lib64/pkgconfig/atf-c.pc ; then
5419 atf_pcp=$atf_path/lib64/pkgconfig
5421 else
5422 # Not specified, try some common paths
5423 atf_dirs="/usr /usr/local /usr/pkg /opt /opt/local"
5424 for d in $atf_dirs
5426 if test -f $d/lib/pkgconfig/atf-c.pc ; then
5427 atf_pcp=$d/lib/pkgconfig
5428 elif test -f $d/lib64/pkgconfig/atf-c.pc ; then
5429 atf_pcp=$d/lib64/pkgconfig
5431 done
5433 if test "$atf_pcp" = "" ; then
5434 as_fn_error $? "Unable to find atf files in location specified" "$LINENO" 5
5435 else
5436 ATF_CFLAGS="`PKG_CONFIG_PATH=$atf_pcp pkg-config --cflags atf-c` -DUNIT_TEST"
5437 ATF_LDFLAGS="`PKG_CONFIG_PATH=$atf_pcp pkg-config --libs atf-c`"
5443 if test "$atf_pcp" != ""; then
5444 HAVE_ATF_TRUE=
5445 HAVE_ATF_FALSE='#'
5446 else
5447 HAVE_ATF_TRUE='#'
5448 HAVE_ATF_FALSE=
5451 ### Uncomment this once docs.lab.isc.org upgrades to automake 1.11
5452 ### AM_COND_IF([HAVE_ATF], [AC_DEFINE([HAVE_ATF], [1], [ATF framework specified?])])
5455 ### Path fun. Older versions of DHCP were installed in /usr/sbin, so we
5456 ### need to look there and potentially overwrite by default (but not if
5457 ### the user configures an alternate value). LOCALSTATEDIR is totally
5458 ### braindead. No one uses /usr/local/var/db/ nor /usr/local/var/run, and
5459 ### they would be insane for suggesting it. We need to look in /var/for
5460 ### 'db' and 'state/dhcp' for db files, and /var/run for pid files by
5461 ### default.
5463 if test "x$prefix" = xNONE; then
5464 $as_echo_n "checking for prefix by " >&6
5465 # Extract the first word of "dhcpd", so it can be a program name with args.
5466 set dummy dhcpd; ac_word=$2
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468 $as_echo_n "checking for $ac_word... " >&6; }
5469 if ${ac_cv_path_ac_prefix_program+:} false; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 case $ac_prefix_program in
5473 [\\/]* | ?:[\\/]*)
5474 ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 for as_dir in $PATH
5480 IFS=$as_save_IFS
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484 ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
5485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 break 2
5488 done
5489 done
5490 IFS=$as_save_IFS
5493 esac
5495 ac_prefix_program=$ac_cv_path_ac_prefix_program
5496 if test -n "$ac_prefix_program"; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
5498 $as_echo "$ac_prefix_program" >&6; }
5499 else
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 $as_echo "no" >&6; }
5505 if test -n "$ac_prefix_program"; then
5506 prefix=`$as_dirname -- "$ac_prefix_program" ||
5507 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5508 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
5509 X"$ac_prefix_program" : 'X\(//\)$' \| \
5510 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
5511 $as_echo X"$ac_prefix_program" |
5512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5513 s//\1/
5516 /^X\(\/\/\)[^/].*/{
5517 s//\1/
5520 /^X\(\/\/\)$/{
5521 s//\1/
5524 /^X\(\/\).*/{
5525 s//\1/
5528 s/.*/./; q'`
5529 prefix=`$as_dirname -- "$prefix" ||
5530 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5531 X"$prefix" : 'X\(//\)[^/]' \| \
5532 X"$prefix" : 'X\(//\)$' \| \
5533 X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
5534 $as_echo X"$prefix" |
5535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5536 s//\1/
5539 /^X\(\/\/\)[^/].*/{
5540 s//\1/
5543 /^X\(\/\/\)$/{
5544 s//\1/
5547 /^X\(\/\).*/{
5548 s//\1/
5551 s/.*/./; q'`
5556 # XXX - isn't there SOME WAY to default autoconf to /var instead of
5557 # /usr/local/var/no/one/has/this/please/stop/trying?
5558 case "$localstatedir" in
5559 '${prefix}/var')
5560 localstatedir=/var
5562 esac
5564 # Allow specification of alternate state files
5566 # Check whether --with-srv-lease-file was given.
5567 if test "${with_srv_lease_file+set}" = set; then :
5568 withval=$with_srv_lease_file;
5569 cat >>confdefs.h <<_ACEOF
5570 #define _PATH_DHCPD_DB "$withval"
5571 _ACEOF
5576 echo -n "checking for dhcpd.leases location..."
5577 if [ "x$with_srv_lease_file" = "x" ] ; then
5578 if [ -d "${localstatedir}/db" ] ; then
5579 with_srv_lease_file="${localstatedir}/db/dhcpd.leases"
5580 elif [ -d "${localstatedir}/state" ] ; then
5581 if [ -d "${localstatedir}/state/dhcp" ] ; then
5582 with_srv_lease_file="${localstatedir}/state/dhcp/dhcpd.leases"
5583 else
5584 with_srv_lease_file="${localstatedir}/state/dhcpd.leases"
5586 elif [ -d "${localstatedir}/lib" ] ; then
5587 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5588 with_srv_lease_file="${localstatedir}/lib/dhcp/dhcpd.leases"
5589 else
5590 with_srv_lease_file="${localstatedir}/lib/dhcpd.leases"
5592 elif [ -d "${localstatedir}/etc" ] ; then
5593 with_srv_lease_file="${localstatedir}/etc/dhcpd.leases"
5594 else
5595 with_srv_lease_file="/etc/dhcpd.leases"
5598 echo "$with_srv_lease_file"
5601 # Check whether --with-srv6-lease-file was given.
5602 if test "${with_srv6_lease_file+set}" = set; then :
5603 withval=$with_srv6_lease_file;
5604 cat >>confdefs.h <<_ACEOF
5605 #define _PATH_DHCPD6_DB "$withval"
5606 _ACEOF
5611 echo -n "checking for dhcpd6.leases location..."
5612 if [ "x$with_srv6_lease_file" = "x" ] ; then
5613 if [ -d "${localstatedir}/db" ] ; then
5614 with_srv6_lease_file="${localstatedir}/db/dhcpd6.leases"
5615 elif [ -d "${localstatedir}/state" ] ; then
5616 if [ -d "${localstatedir}/state/dhcp" ] ; then
5617 with_srv6_lease_file="${localstatedir}/state/dhcp/dhcpd6.leases"
5618 else
5619 with_srv6_lease_file="${localstatedir}/state/dhcpd6.leases"
5621 elif [ -d "${localstatedir}/lib" ] ; then
5622 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5623 with_srv6_lease_file="${localstatedir}/lib/dhcp/dhcpd6.leases"
5624 else
5625 with_srv6_lease_file="${localstatedir}/lib/dhcpd6.leases"
5627 elif [ -d "${localstatedir}/etc" ] ; then
5628 with_srv6_lease_file="${localstatedir}/etc/dhcpd6.leases"
5629 else
5630 with_srv6_lease_file="/etc/dhcpd6.leases"
5633 echo "$with_srv6_lease_file"
5636 # Check whether --with-cli-lease-file was given.
5637 if test "${with_cli_lease_file+set}" = set; then :
5638 withval=$with_cli_lease_file;
5639 cat >>confdefs.h <<_ACEOF
5640 #define _PATH_DHCLIENT_DB "$withval"
5641 _ACEOF
5646 echo -n "checking for dhclient.leases location..."
5647 if [ "x$with_cli_lease_file" = "x" ] ; then
5648 if [ -d "${localstatedir}/db" ] ; then
5649 with_cli_lease_file="${localstatedir}/db/dhclient.leases"
5650 elif [ -d "${localstatedir}/state" ] ; then
5651 if [ -d "${localstatedir}/state/dhcp" ] ; then
5652 with_cli_lease_file="${localstatedir}/state/dhcp/dhclient.leases"
5653 else
5654 with_cli_lease_file="${localstatedir}/state/dhclient.leases"
5656 elif [ -d "${localstatedir}/lib" ] ; then
5657 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5658 with_cli_lease_file="${localstatedir}/lib/dhcp/dhclient.leases"
5659 else
5660 with_cli_lease_file="${localstatedir}/lib/dhclient.leases"
5662 elif [ -d "${localstatedir}/etc" ] ; then
5663 with_cli_lease_file="${localstatedir}/etc/dhclient.leases"
5664 else
5665 with_cli_lease_file="/etc/dhclient.leases"
5668 echo "$with_cli_lease_file"
5671 # Check whether --with-cli6-lease-file was given.
5672 if test "${with_cli6_lease_file+set}" = set; then :
5673 withval=$with_cli6_lease_file;
5674 cat >>confdefs.h <<_ACEOF
5675 #define _PATH_DHCLIENT6_DB "$withval"
5676 _ACEOF
5681 echo -n "checking for dhclient6.leases location..."
5682 if [ "x$with_cli6_lease_file" = "x" ] ; then
5683 if [ -d "${localstatedir}/db" ] ; then
5684 with_cli6_lease_file="${localstatedir}/db/dhclient6.leases"
5685 elif [ -d "${localstatedir}/state" ] ; then
5686 if [ -d "${localstatedir}/state/dhcp" ] ; then
5687 with_cli6_lease_file="${localstatedir}/state/dhcp/dhclient6.leases"
5688 else
5689 with_cli6_lease_file="${localstatedir}/state/dhclient6.leases"
5691 elif [ -d "${localstatedir}/lib" ] ; then
5692 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5693 with_cli6_lease_file="${localstatedir}/lib/dhcp/dhclient6.leases"
5694 else
5695 with_cli6_lease_file="${localstatedir}/lib/dhclient6.leases"
5697 elif [ -d "${localstatedir}/etc" ] ; then
5698 with_cli6_lease_file="${localstatedir}/etc/dhclient6.leases"
5699 else
5700 with_cli6_lease_file="/etc/dhclient6.leases"
5703 echo "$with_cli6_lease_file"
5706 # Check whether --with-srv-pid-file was given.
5707 if test "${with_srv_pid_file+set}" = set; then :
5708 withval=$with_srv_pid_file;
5709 cat >>confdefs.h <<_ACEOF
5710 #define _PATH_DHCPD_PID "$withval"
5711 _ACEOF
5716 # Check whether --with-srv6-pid-file was given.
5717 if test "${with_srv6_pid_file+set}" = set; then :
5718 withval=$with_srv6_pid_file;
5719 cat >>confdefs.h <<_ACEOF
5720 #define _PATH_DHCPD6_PID "$withval"
5721 _ACEOF
5726 # Check whether --with-cli-pid-file was given.
5727 if test "${with_cli_pid_file+set}" = set; then :
5728 withval=$with_cli_pid_file;
5729 cat >>confdefs.h <<_ACEOF
5730 #define _PATH_DHCLIENT_PID "$withval"
5731 _ACEOF
5736 # Check whether --with-cli6-pid-file was given.
5737 if test "${with_cli6_pid_file+set}" = set; then :
5738 withval=$with_cli6_pid_file;
5739 cat >>confdefs.h <<_ACEOF
5740 #define _PATH_DHCLIENT6_PID "$withval"
5741 _ACEOF
5746 # Check whether --with-relay-pid-file was given.
5747 if test "${with_relay_pid_file+set}" = set; then :
5748 withval=$with_relay_pid_file;
5749 cat >>confdefs.h <<_ACEOF
5750 #define _PATH_DHCRELAY_PID "$withval"
5751 _ACEOF
5756 # Check whether --with-relay6-pid-file was given.
5757 if test "${with_relay6_pid_file+set}" = set; then :
5758 withval=$with_relay6_pid_file;
5759 cat >>confdefs.h <<_ACEOF
5760 #define _PATH_DHCRELAY6_PID "$withval"
5761 _ACEOF
5766 # Check basic types.
5767 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5768 case $ac_cv_c_int8_t in #(
5769 no|yes) ;; #(
5772 cat >>confdefs.h <<_ACEOF
5773 #define int8_t $ac_cv_c_int8_t
5774 _ACEOF
5776 esac
5778 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5779 case $ac_cv_c_int16_t in #(
5780 no|yes) ;; #(
5783 cat >>confdefs.h <<_ACEOF
5784 #define int16_t $ac_cv_c_int16_t
5785 _ACEOF
5787 esac
5789 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5790 case $ac_cv_c_int32_t in #(
5791 no|yes) ;; #(
5794 cat >>confdefs.h <<_ACEOF
5795 #define int32_t $ac_cv_c_int32_t
5796 _ACEOF
5798 esac
5800 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5801 case $ac_cv_c_int64_t in #(
5802 no|yes) ;; #(
5805 cat >>confdefs.h <<_ACEOF
5806 #define int64_t $ac_cv_c_int64_t
5807 _ACEOF
5809 esac
5812 # Some systems need the u_intX_t types defined across.
5813 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
5814 if test "x$ac_cv_type_u_int8_t" = xyes; then :
5816 else
5818 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5819 case $ac_cv_c_uint8_t in #(
5820 no|yes) ;; #(
5823 $as_echo "#define _UINT8_T 1" >>confdefs.h
5826 cat >>confdefs.h <<_ACEOF
5827 #define uint8_t $ac_cv_c_uint8_t
5828 _ACEOF
5830 esac
5833 $as_echo "#define u_int8_t uint8_t" >>confdefs.h
5838 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
5839 if test "x$ac_cv_type_u_int16_t" = xyes; then :
5841 else
5843 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5844 case $ac_cv_c_uint16_t in #(
5845 no|yes) ;; #(
5849 cat >>confdefs.h <<_ACEOF
5850 #define uint16_t $ac_cv_c_uint16_t
5851 _ACEOF
5853 esac
5856 $as_echo "#define u_int16_t uint16_t" >>confdefs.h
5861 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
5862 if test "x$ac_cv_type_u_int32_t" = xyes; then :
5864 else
5866 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5867 case $ac_cv_c_uint32_t in #(
5868 no|yes) ;; #(
5871 $as_echo "#define _UINT32_T 1" >>confdefs.h
5874 cat >>confdefs.h <<_ACEOF
5875 #define uint32_t $ac_cv_c_uint32_t
5876 _ACEOF
5878 esac
5881 $as_echo "#define u_int32_t uint32_t" >>confdefs.h
5886 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
5887 if test "x$ac_cv_type_u_int64_t" = xyes; then :
5889 else
5891 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5892 case $ac_cv_c_uint64_t in #(
5893 no|yes) ;; #(
5896 $as_echo "#define _UINT64_T 1" >>confdefs.h
5899 cat >>confdefs.h <<_ACEOF
5900 #define uint64_t $ac_cv_c_uint64_t
5901 _ACEOF
5903 esac
5906 $as_echo "#define u_int64_t uint64_t" >>confdefs.h
5912 # see if ifaddrs.h is available
5913 for ac_header in ifaddrs.h
5914 do :
5915 ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
5916 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
5917 cat >>confdefs.h <<_ACEOF
5918 #define HAVE_IFADDRS_H 1
5919 _ACEOF
5923 done
5926 # figure out what IPv4 interface code to use
5927 for ac_header in linux/types.h
5928 do :
5929 ac_fn_c_check_header_mongrel "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
5930 if test "x$ac_cv_header_linux_types_h" = xyes; then :
5931 cat >>confdefs.h <<_ACEOF
5932 #define HAVE_LINUX_TYPES_H 1
5933 _ACEOF
5937 done
5938 # needed for linux/filter.h on old systems
5940 ac_fn_c_check_header_compile "$LINENO" "linux/filter.h" "ac_cv_header_linux_filter_h" "
5941 #ifdef HAVE_LINUX_TYPES_H
5942 #include <linux/types.h>
5943 #endif
5946 if test "x$ac_cv_header_linux_filter_h" = xyes; then :
5947 DO_LPF=1
5951 if test -n "$DO_LPF"
5952 then
5954 $as_echo "#define HAVE_LPF 1" >>confdefs.h
5956 else
5957 ac_fn_c_check_header_mongrel "$LINENO" "sys/dlpi.h" "ac_cv_header_sys_dlpi_h" "$ac_includes_default"
5958 if test "x$ac_cv_header_sys_dlpi_h" = xyes; then :
5959 DO_DLPI=1
5963 if test -n "$DO_DLPI"
5964 then
5966 $as_echo "#define HAVE_DLPI 1" >>confdefs.h
5968 else
5969 ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
5970 if test "x$ac_cv_header_net_bpf_h" = xyes; then :
5971 DO_BPF=1
5975 if test -n "$DO_BPF"
5976 then
5978 $as_echo "#define HAVE_BPF 1" >>confdefs.h
5984 # SIOCGLIFCONF uses some transport structures. Trick is not all platforms
5985 # use the same structures. We like to use 'struct lifconf' and 'struct
5986 # lifreq', but we'll use these other structures if they're present. HPUX
5987 # does not define 'struct lifnum', but does use SIOCGLIFNUM - they use an
5988 # int value.
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifnum" >&5
5991 $as_echo_n "checking for struct lifnum... " >&6; }
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5994 #include <sys/types.h>
5995 #include <sys/socket.h>
5996 #include <net/if.h>
5999 main ()
6001 struct lifnum a;
6004 return 0;
6006 _ACEOF
6007 if ac_fn_c_try_compile "$LINENO"; then :
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6009 $as_echo "yes" >&6; }
6011 $as_echo "#define ISC_PLATFORM_HAVELIFNUM 1" >>confdefs.h
6013 else
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015 $as_echo "no" >&6; }
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
6020 $as_echo_n "checking for struct if_laddrconf... " >&6; }
6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h. */
6023 #include <sys/types.h>
6024 #include <net/if6.h>
6027 main ()
6029 struct if_laddrconf a;
6032 return 0;
6034 _ACEOF
6035 if ac_fn_c_try_compile "$LINENO"; then :
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6037 $as_echo "yes" >&6; }
6039 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
6041 else
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
6048 $as_echo_n "checking for struct if_laddrreq... " >&6; }
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051 #include <sys/types.h>
6052 #include <net/if6.h>
6055 main ()
6057 struct if_laddrreq a;
6060 return 0;
6062 _ACEOF
6063 if ac_fn_c_try_link "$LINENO"; then :
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6065 $as_echo "yes" >&6; }
6067 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
6069 else
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 $as_echo "no" >&6; }
6073 rm -f core conftest.err conftest.$ac_objext \
6074 conftest$ac_exeext conftest.$ac_ext
6077 # check for GCC noreturn attribute
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
6080 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6085 main ()
6087 void foo() __attribute__((noreturn));
6089 return 0;
6091 _ACEOF
6092 if ac_fn_c_try_compile "$LINENO"; then :
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6094 $as_echo "yes" >&6; }
6096 $as_echo "#define ISC_DHCP_NORETURN __attribute__((noreturn))" >>confdefs.h
6098 else
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100 $as_echo "no" >&6; }
6102 $as_echo "#define ISC_DHCP_NORETURN /**/" >>confdefs.h
6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107 # Look for optional headers.
6108 for ac_header in sys/socket.h net/if_dl.h net/if6.h regex.h
6109 do :
6110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6111 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6112 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6113 cat >>confdefs.h <<_ACEOF
6114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6115 _ACEOF
6119 done
6122 # Solaris needs some libraries for functions
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6124 $as_echo_n "checking for library containing socket... " >&6; }
6125 if ${ac_cv_search_socket+:} false; then :
6126 $as_echo_n "(cached) " >&6
6127 else
6128 ac_func_search_save_LIBS=$LIBS
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6132 /* Override any GCC internal prototype to avoid an error.
6133 Use char because int might match the return type of a GCC
6134 builtin and then its argument prototype would still apply. */
6135 #ifdef __cplusplus
6136 extern "C"
6137 #endif
6138 char socket ();
6140 main ()
6142 return socket ();
6144 return 0;
6146 _ACEOF
6147 for ac_lib in '' socket; do
6148 if test -z "$ac_lib"; then
6149 ac_res="none required"
6150 else
6151 ac_res=-l$ac_lib
6152 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6154 if ac_fn_c_try_link "$LINENO"; then :
6155 ac_cv_search_socket=$ac_res
6157 rm -f core conftest.err conftest.$ac_objext \
6158 conftest$ac_exeext
6159 if ${ac_cv_search_socket+:} false; then :
6160 break
6162 done
6163 if ${ac_cv_search_socket+:} false; then :
6165 else
6166 ac_cv_search_socket=no
6168 rm conftest.$ac_ext
6169 LIBS=$ac_func_search_save_LIBS
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6172 $as_echo "$ac_cv_search_socket" >&6; }
6173 ac_res=$ac_cv_search_socket
6174 if test "$ac_res" != no; then :
6175 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6180 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
6181 if ${ac_cv_search_inet_ntoa+:} false; then :
6182 $as_echo_n "(cached) " >&6
6183 else
6184 ac_func_search_save_LIBS=$LIBS
6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6188 /* Override any GCC internal prototype to avoid an error.
6189 Use char because int might match the return type of a GCC
6190 builtin and then its argument prototype would still apply. */
6191 #ifdef __cplusplus
6192 extern "C"
6193 #endif
6194 char inet_ntoa ();
6196 main ()
6198 return inet_ntoa ();
6200 return 0;
6202 _ACEOF
6203 for ac_lib in '' nsl; do
6204 if test -z "$ac_lib"; then
6205 ac_res="none required"
6206 else
6207 ac_res=-l$ac_lib
6208 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6210 if ac_fn_c_try_link "$LINENO"; then :
6211 ac_cv_search_inet_ntoa=$ac_res
6213 rm -f core conftest.err conftest.$ac_objext \
6214 conftest$ac_exeext
6215 if ${ac_cv_search_inet_ntoa+:} false; then :
6216 break
6218 done
6219 if ${ac_cv_search_inet_ntoa+:} false; then :
6221 else
6222 ac_cv_search_inet_ntoa=no
6224 rm conftest.$ac_ext
6225 LIBS=$ac_func_search_save_LIBS
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6228 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
6229 ac_res=$ac_cv_search_inet_ntoa
6230 if test "$ac_res" != no; then :
6231 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
6237 $as_echo_n "checking for library containing inet_aton... " >&6; }
6238 if ${ac_cv_search_inet_aton+:} false; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 ac_func_search_save_LIBS=$LIBS
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6245 /* Override any GCC internal prototype to avoid an error.
6246 Use char because int might match the return type of a GCC
6247 builtin and then its argument prototype would still apply. */
6248 #ifdef __cplusplus
6249 extern "C"
6250 #endif
6251 char inet_aton ();
6253 main ()
6255 return inet_aton ();
6257 return 0;
6259 _ACEOF
6260 for ac_lib in '' socket nsl; do
6261 if test -z "$ac_lib"; then
6262 ac_res="none required"
6263 else
6264 ac_res=-l$ac_lib
6265 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6267 if ac_fn_c_try_link "$LINENO"; then :
6268 ac_cv_search_inet_aton=$ac_res
6270 rm -f core conftest.err conftest.$ac_objext \
6271 conftest$ac_exeext
6272 if ${ac_cv_search_inet_aton+:} false; then :
6273 break
6275 done
6276 if ${ac_cv_search_inet_aton+:} false; then :
6278 else
6279 ac_cv_search_inet_aton=no
6281 rm conftest.$ac_ext
6282 LIBS=$ac_func_search_save_LIBS
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
6285 $as_echo "$ac_cv_search_inet_aton" >&6; }
6286 ac_res=$ac_cv_search_inet_aton
6287 if test "$ac_res" != no; then :
6288 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6290 else
6292 $as_echo "#define NEED_INET_ATON 1" >>confdefs.h
6297 # Check for a standalone regex library.
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
6299 $as_echo_n "checking for library containing regcomp... " >&6; }
6300 if ${ac_cv_search_regcomp+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 ac_func_search_save_LIBS=$LIBS
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6307 /* Override any GCC internal prototype to avoid an error.
6308 Use char because int might match the return type of a GCC
6309 builtin and then its argument prototype would still apply. */
6310 #ifdef __cplusplus
6311 extern "C"
6312 #endif
6313 char regcomp ();
6315 main ()
6317 return regcomp ();
6319 return 0;
6321 _ACEOF
6322 for ac_lib in '' regex; do
6323 if test -z "$ac_lib"; then
6324 ac_res="none required"
6325 else
6326 ac_res=-l$ac_lib
6327 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6329 if ac_fn_c_try_link "$LINENO"; then :
6330 ac_cv_search_regcomp=$ac_res
6332 rm -f core conftest.err conftest.$ac_objext \
6333 conftest$ac_exeext
6334 if ${ac_cv_search_regcomp+:} false; then :
6335 break
6337 done
6338 if ${ac_cv_search_regcomp+:} false; then :
6340 else
6341 ac_cv_search_regcomp=no
6343 rm conftest.$ac_ext
6344 LIBS=$ac_func_search_save_LIBS
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
6347 $as_echo "$ac_cv_search_regcomp" >&6; }
6348 ac_res=$ac_cv_search_regcomp
6349 if test "$ac_res" != no; then :
6350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6355 for ac_func in strlcat
6356 do :
6357 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
6358 if test "x$ac_cv_func_strlcat" = xyes; then :
6359 cat >>confdefs.h <<_ACEOF
6360 #define HAVE_STRLCAT 1
6361 _ACEOF
6364 done
6367 # For HP/UX we need -lipv6 for if_nametoindex, perhaps others.
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
6369 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
6370 if ${ac_cv_search_if_nametoindex+:} false; then :
6371 $as_echo_n "(cached) " >&6
6372 else
6373 ac_func_search_save_LIBS=$LIBS
6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6375 /* end confdefs.h. */
6377 /* Override any GCC internal prototype to avoid an error.
6378 Use char because int might match the return type of a GCC
6379 builtin and then its argument prototype would still apply. */
6380 #ifdef __cplusplus
6381 extern "C"
6382 #endif
6383 char if_nametoindex ();
6385 main ()
6387 return if_nametoindex ();
6389 return 0;
6391 _ACEOF
6392 for ac_lib in '' ipv6; do
6393 if test -z "$ac_lib"; then
6394 ac_res="none required"
6395 else
6396 ac_res=-l$ac_lib
6397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6399 if ac_fn_c_try_link "$LINENO"; then :
6400 ac_cv_search_if_nametoindex=$ac_res
6402 rm -f core conftest.err conftest.$ac_objext \
6403 conftest$ac_exeext
6404 if ${ac_cv_search_if_nametoindex+:} false; then :
6405 break
6407 done
6408 if ${ac_cv_search_if_nametoindex+:} false; then :
6410 else
6411 ac_cv_search_if_nametoindex=no
6413 rm conftest.$ac_ext
6414 LIBS=$ac_func_search_save_LIBS
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
6417 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
6418 ac_res=$ac_cv_search_if_nametoindex
6419 if test "$ac_res" != no; then :
6420 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6425 # check for /dev/random (declares HAVE_DEV_RANDOM)
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5
6427 $as_echo_n "checking for /dev/random... " >&6; }
6428 if ${ac_cv_file__dev_random+:} false; then :
6429 $as_echo_n "(cached) " >&6
6430 else
6431 test "$cross_compiling" = yes &&
6432 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
6433 if test -r "/dev/random"; then
6434 ac_cv_file__dev_random=yes
6435 else
6436 ac_cv_file__dev_random=no
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5
6440 $as_echo "$ac_cv_file__dev_random" >&6; }
6441 if test "x$ac_cv_file__dev_random" = xyes; then :
6443 $as_echo "#define HAVE_DEV_RANDOM 1" >>confdefs.h
6448 # see if there is a "sa_len" field in our interface information structure
6449 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
6451 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
6453 $as_echo "#define HAVE_SA_LEN /**/" >>confdefs.h
6458 # figure out pointer size
6459 # The cast to long int works around a bug in the HP C Compiler
6460 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6461 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6462 # This bug is HP SR number 8606223364.
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iaddr *" >&5
6464 $as_echo_n "checking size of struct iaddr *... " >&6; }
6465 if ${ac_cv_sizeof_struct_iaddr_p+:} false; then :
6466 $as_echo_n "(cached) " >&6
6467 else
6468 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct iaddr *))" "ac_cv_sizeof_struct_iaddr_p" "
6469 #include \"includes/inet.h\"
6470 #include <stdio.h>
6472 "; then :
6474 else
6475 if test "$ac_cv_type_struct_iaddr_p" = yes; then
6476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6478 as_fn_error 77 "cannot compute sizeof (struct iaddr *)
6479 See \`config.log' for more details" "$LINENO" 5; }
6480 else
6481 ac_cv_sizeof_struct_iaddr_p=0
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iaddr_p" >&5
6487 $as_echo "$ac_cv_sizeof_struct_iaddr_p" >&6; }
6491 cat >>confdefs.h <<_ACEOF
6492 #define SIZEOF_STRUCT_IADDR_P $ac_cv_sizeof_struct_iaddr_p
6493 _ACEOF
6497 # Solaris does not have the msg_control or msg_controlen members
6498 # in the msghdr structure unless you define:
6500 # _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, and __EXTENSIONS__
6502 # See the "standards" man page for details.
6504 # We check for the msg_control member, and if it is not found, we check
6505 # again with the appropriate defines added to the CFLAGS. (In order to
6506 # do this we have to remove the check from the cache, which is what the
6507 # "unset" is for.)
6508 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6509 #include <sys/types.h>
6510 #include <sys/socket.h>
6513 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
6515 else
6516 CFLAGS="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6517 CFLAGS="$CFLAGS -D__EXTENSIONS__"
6518 unset ac_cv_member_struct_msghdr_msg_control
6519 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6520 #include <sys/types.h>
6521 #include <sys/socket.h>
6524 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
6526 else
6527 as_fn_error $? "Missing msg_control member in
6528 msg_control structure." "$LINENO" 5
6535 libbind=
6537 # Check whether --with-libbind was given.
6538 if test "${with_libbind+set}" = set; then :
6539 withval=$with_libbind; use_libbind="$withval"
6540 else
6541 use_libbind="no"
6544 case "$use_libbind" in
6545 yes)
6546 libbind="\${top_srcdir}/bind"
6549 libbind="\${top_srcdir}/bind"
6552 libbind="$use_libbind"
6554 esac
6556 # OpenLDAP support.
6558 # Check whether --with-ldap was given.
6559 if test "${with_ldap+set}" = set; then :
6560 withval=$with_ldap; ldap=$withval
6561 else
6562 ldap=no
6566 # OpenLDAP with SSL support.
6568 # Check whether --with-ldapcrypto was given.
6569 if test "${with_ldapcrypto+set}" = set; then :
6570 withval=$with_ldapcrypto; ldapcrypto=$withval
6571 else
6572 ldapcrypto=no
6576 # OpenLDAP support is disabled by default, if enabled then SSL support is an
6577 # extra optional that is also disabled by default. Enabling LDAP SSL support
6578 # implies enabling LDAP support.
6579 if test x$ldap = xyes || test x$ldapcrypto = xyes ; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
6581 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
6582 if ${ac_cv_search_ldap_initialize+:} false; then :
6583 $as_echo_n "(cached) " >&6
6584 else
6585 ac_func_search_save_LIBS=$LIBS
6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587 /* end confdefs.h. */
6589 /* Override any GCC internal prototype to avoid an error.
6590 Use char because int might match the return type of a GCC
6591 builtin and then its argument prototype would still apply. */
6592 #ifdef __cplusplus
6593 extern "C"
6594 #endif
6595 char ldap_initialize ();
6597 main ()
6599 return ldap_initialize ();
6601 return 0;
6603 _ACEOF
6604 for ac_lib in '' ldap; do
6605 if test -z "$ac_lib"; then
6606 ac_res="none required"
6607 else
6608 ac_res=-l$ac_lib
6609 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6611 if ac_fn_c_try_link "$LINENO"; then :
6612 ac_cv_search_ldap_initialize=$ac_res
6614 rm -f core conftest.err conftest.$ac_objext \
6615 conftest$ac_exeext
6616 if ${ac_cv_search_ldap_initialize+:} false; then :
6617 break
6619 done
6620 if ${ac_cv_search_ldap_initialize+:} false; then :
6622 else
6623 ac_cv_search_ldap_initialize=no
6625 rm conftest.$ac_ext
6626 LIBS=$ac_func_search_save_LIBS
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
6629 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
6630 ac_res=$ac_cv_search_ldap_initialize
6631 if test "$ac_res" != no; then :
6632 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6634 else
6635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6637 as_fn_error $? "*** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package?
6638 See \`config.log' for more details" "$LINENO" 5; }
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_pvt_opt_on" >&5
6642 $as_echo_n "checking for library containing ber_pvt_opt_on... " >&6; }
6643 if ${ac_cv_search_ber_pvt_opt_on+:} false; then :
6644 $as_echo_n "(cached) " >&6
6645 else
6646 ac_func_search_save_LIBS=$LIBS
6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648 /* end confdefs.h. */
6650 /* Override any GCC internal prototype to avoid an error.
6651 Use char because int might match the return type of a GCC
6652 builtin and then its argument prototype would still apply. */
6653 #ifdef __cplusplus
6654 extern "C"
6655 #endif
6656 char ber_pvt_opt_on ();
6658 main ()
6660 return ber_pvt_opt_on ();
6662 return 0;
6664 _ACEOF
6665 for ac_lib in '' lber; do
6666 if test -z "$ac_lib"; then
6667 ac_res="none required"
6668 else
6669 ac_res=-l$ac_lib
6670 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6672 if ac_fn_c_try_link "$LINENO"; then :
6673 ac_cv_search_ber_pvt_opt_on=$ac_res
6675 rm -f core conftest.err conftest.$ac_objext \
6676 conftest$ac_exeext
6677 if ${ac_cv_search_ber_pvt_opt_on+:} false; then :
6678 break
6680 done
6681 if ${ac_cv_search_ber_pvt_opt_on+:} false; then :
6683 else
6684 ac_cv_search_ber_pvt_opt_on=no
6686 rm conftest.$ac_ext
6687 LIBS=$ac_func_search_save_LIBS
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_pvt_opt_on" >&5
6690 $as_echo "$ac_cv_search_ber_pvt_opt_on" >&6; }
6691 ac_res=$ac_cv_search_ber_pvt_opt_on
6692 if test "$ac_res" != no; then :
6693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6695 else
6696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6698 as_fn_error $? "*** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package?
6699 See \`config.log' for more details" "$LINENO" 5; }
6703 if test x$ldapcrypto = xyes ; then
6704 LDAP_CFLAGS="-DLDAP_CONFIGURATION -DLDAP_USE_SSL"
6706 else
6707 LDAP_CFLAGS="-DLDAP_CONFIGURATION"
6712 # Append selected warning levels to CFLAGS before substitution (but after
6713 # AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]) & etc).
6714 CFLAGS="$CFLAGS $STD_CWARNINGS"
6716 # Try to add the bind include directory
6717 CFLAGS="$CFLAGS -I$libbind/include"
6719 case "$host" in
6720 *-darwin*)
6721 CFLAGS="$CFLAGS -D__APPLE_USE_RFC_3542" ;;
6722 esac
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
6726 $as_echo_n "checking for flexible array members... " >&6; }
6727 if ${ac_cv_c_flexmember+:} false; then :
6728 $as_echo_n "(cached) " >&6
6729 else
6730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731 /* end confdefs.h. */
6732 #include <stdlib.h>
6733 #include <stdio.h>
6734 #include <stddef.h>
6735 struct s { int n; double d[]; };
6737 main ()
6739 int m = getchar ();
6740 struct s *p = malloc (offsetof (struct s, d)
6741 + m * sizeof (double));
6742 p->d[0] = 0.0;
6743 return p->d != (double *) NULL;
6745 return 0;
6747 _ACEOF
6748 if ac_fn_c_try_compile "$LINENO"; then :
6749 ac_cv_c_flexmember=yes
6750 else
6751 ac_cv_c_flexmember=no
6753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
6756 $as_echo "$ac_cv_c_flexmember" >&6; }
6757 if test $ac_cv_c_flexmember = yes; then
6759 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
6761 else
6762 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
6767 ac_config_files="$ac_config_files Makefile client/Makefile common/Makefile common/tests/Makefile dhcpctl/Makefile dst/Makefile includes/Makefile omapip/Makefile relay/Makefile server/Makefile tests/Makefile server/tests/Makefile doc/devel/doxyfile"
6769 cat >confcache <<\_ACEOF
6770 # This file is a shell script that caches the results of configure
6771 # tests run on this system so they can be shared between configure
6772 # scripts and configure runs, see configure's option --config-cache.
6773 # It is not useful on other systems. If it contains results you don't
6774 # want to keep, you may remove or edit it.
6776 # config.status only pays attention to the cache file if you give it
6777 # the --recheck option to rerun configure.
6779 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6780 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6781 # following values.
6783 _ACEOF
6785 # The following way of writing the cache mishandles newlines in values,
6786 # but we know of no workaround that is simple, portable, and efficient.
6787 # So, we kill variables containing newlines.
6788 # Ultrix sh set writes to stderr and can't be redirected directly,
6789 # and sets the high bit in the cache file unless we assign to the vars.
6791 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6792 eval ac_val=\$$ac_var
6793 case $ac_val in #(
6794 *${as_nl}*)
6795 case $ac_var in #(
6796 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6797 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6798 esac
6799 case $ac_var in #(
6800 _ | IFS | as_nl) ;; #(
6801 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6802 *) { eval $ac_var=; unset $ac_var;} ;;
6803 esac ;;
6804 esac
6805 done
6807 (set) 2>&1 |
6808 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6809 *${as_nl}ac_space=\ *)
6810 # `set' does not quote correctly, so add quotes: double-quote
6811 # substitution turns \\\\ into \\, and sed turns \\ into \.
6812 sed -n \
6813 "s/'/'\\\\''/g;
6814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6815 ;; #(
6817 # `set' quotes correctly as required by POSIX, so do not add quotes.
6818 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6820 esac |
6821 sort
6823 sed '
6824 /^ac_cv_env_/b end
6825 t clear
6826 :clear
6827 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6828 t end
6829 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6830 :end' >>confcache
6831 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6832 if test -w "$cache_file"; then
6833 if test "x$cache_file" != "x/dev/null"; then
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6835 $as_echo "$as_me: updating cache $cache_file" >&6;}
6836 if test ! -f "$cache_file" || test -h "$cache_file"; then
6837 cat confcache >"$cache_file"
6838 else
6839 case $cache_file in #(
6840 */* | ?:*)
6841 mv -f confcache "$cache_file"$$ &&
6842 mv -f "$cache_file"$$ "$cache_file" ;; #(
6844 mv -f confcache "$cache_file" ;;
6845 esac
6848 else
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6850 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6853 rm -f confcache
6855 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6856 # Let make expand exec_prefix.
6857 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6859 DEFS=-DHAVE_CONFIG_H
6861 ac_libobjs=
6862 ac_ltlibobjs=
6864 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6865 # 1. Remove the extension, and $U if already installed.
6866 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6867 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6868 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6869 # will be set to the directory where LIBOBJS objects are built.
6870 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6871 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6872 done
6873 LIBOBJS=$ac_libobjs
6875 LTLIBOBJS=$ac_ltlibobjs
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6879 $as_echo_n "checking that generated files are newer than configure... " >&6; }
6880 if test -n "$am_sleep_pid"; then
6881 # Hide warnings about reused PIDs.
6882 wait $am_sleep_pid 2>/dev/null
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
6885 $as_echo "done" >&6; }
6886 if test -n "$EXEEXT"; then
6887 am__EXEEXT_TRUE=
6888 am__EXEEXT_FALSE='#'
6889 else
6890 am__EXEEXT_TRUE='#'
6891 am__EXEEXT_FALSE=
6894 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6895 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
6896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6898 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6899 as_fn_error $? "conditional \"AMDEP\" was never defined.
6900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6902 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6903 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6907 if test -z "${HAVE_ATF_TRUE}" && test -z "${HAVE_ATF_FALSE}"; then
6908 as_fn_error $? "conditional \"HAVE_ATF\" was never defined.
6909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6912 : "${CONFIG_STATUS=./config.status}"
6913 ac_write_fail=0
6914 ac_clean_files_save=$ac_clean_files
6915 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6917 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6918 as_write_fail=0
6919 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6920 #! $SHELL
6921 # Generated by $as_me.
6922 # Run this file to recreate the current configuration.
6923 # Compiler output produced by configure, useful for debugging
6924 # configure, is in config.log if it exists.
6926 debug=false
6927 ac_cs_recheck=false
6928 ac_cs_silent=false
6930 SHELL=\${CONFIG_SHELL-$SHELL}
6931 export SHELL
6932 _ASEOF
6933 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6934 ## -------------------- ##
6935 ## M4sh Initialization. ##
6936 ## -------------------- ##
6938 # Be more Bourne compatible
6939 DUALCASE=1; export DUALCASE # for MKS sh
6940 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6941 emulate sh
6942 NULLCMD=:
6943 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6944 # is contrary to our usage. Disable this feature.
6945 alias -g '${1+"$@"}'='"$@"'
6946 setopt NO_GLOB_SUBST
6947 else
6948 case `(set -o) 2>/dev/null` in #(
6949 *posix*) :
6950 set -o posix ;; #(
6951 *) :
6953 esac
6957 as_nl='
6959 export as_nl
6960 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6961 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6962 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6963 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6964 # Prefer a ksh shell builtin over an external printf program on Solaris,
6965 # but without wasting forks for bash or zsh.
6966 if test -z "$BASH_VERSION$ZSH_VERSION" \
6967 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6968 as_echo='print -r --'
6969 as_echo_n='print -rn --'
6970 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6971 as_echo='printf %s\n'
6972 as_echo_n='printf %s'
6973 else
6974 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6975 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6976 as_echo_n='/usr/ucb/echo -n'
6977 else
6978 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6979 as_echo_n_body='eval
6980 arg=$1;
6981 case $arg in #(
6982 *"$as_nl"*)
6983 expr "X$arg" : "X\\(.*\\)$as_nl";
6984 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6985 esac;
6986 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6988 export as_echo_n_body
6989 as_echo_n='sh -c $as_echo_n_body as_echo'
6991 export as_echo_body
6992 as_echo='sh -c $as_echo_body as_echo'
6995 # The user is always right.
6996 if test "${PATH_SEPARATOR+set}" != set; then
6997 PATH_SEPARATOR=:
6998 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6999 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7000 PATH_SEPARATOR=';'
7005 # IFS
7006 # We need space, tab and new line, in precisely that order. Quoting is
7007 # there to prevent editors from complaining about space-tab.
7008 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7009 # splitting by setting IFS to empty value.)
7010 IFS=" "" $as_nl"
7012 # Find who we are. Look in the path if we contain no directory separator.
7013 as_myself=
7014 case $0 in #((
7015 *[\\/]* ) as_myself=$0 ;;
7016 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7022 done
7023 IFS=$as_save_IFS
7026 esac
7027 # We did not find ourselves, most probably we were run as `sh COMMAND'
7028 # in which case we are not to be found in the path.
7029 if test "x$as_myself" = x; then
7030 as_myself=$0
7032 if test ! -f "$as_myself"; then
7033 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7034 exit 1
7037 # Unset variables that we do not need and which cause bugs (e.g. in
7038 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7039 # suppresses any "Segmentation fault" message there. '((' could
7040 # trigger a bug in pdksh 5.2.14.
7041 for as_var in BASH_ENV ENV MAIL MAILPATH
7042 do eval test x\${$as_var+set} = xset \
7043 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7044 done
7045 PS1='$ '
7046 PS2='> '
7047 PS4='+ '
7049 # NLS nuisances.
7050 LC_ALL=C
7051 export LC_ALL
7052 LANGUAGE=C
7053 export LANGUAGE
7055 # CDPATH.
7056 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7059 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7060 # ----------------------------------------
7061 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7062 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7063 # script with STATUS, using 1 if that was 0.
7064 as_fn_error ()
7066 as_status=$1; test $as_status -eq 0 && as_status=1
7067 if test "$4"; then
7068 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7069 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7071 $as_echo "$as_me: error: $2" >&2
7072 as_fn_exit $as_status
7073 } # as_fn_error
7076 # as_fn_set_status STATUS
7077 # -----------------------
7078 # Set $? to STATUS, without forking.
7079 as_fn_set_status ()
7081 return $1
7082 } # as_fn_set_status
7084 # as_fn_exit STATUS
7085 # -----------------
7086 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7087 as_fn_exit ()
7089 set +e
7090 as_fn_set_status $1
7091 exit $1
7092 } # as_fn_exit
7094 # as_fn_unset VAR
7095 # ---------------
7096 # Portably unset VAR.
7097 as_fn_unset ()
7099 { eval $1=; unset $1;}
7101 as_unset=as_fn_unset
7102 # as_fn_append VAR VALUE
7103 # ----------------------
7104 # Append the text in VALUE to the end of the definition contained in VAR. Take
7105 # advantage of any shell optimizations that allow amortized linear growth over
7106 # repeated appends, instead of the typical quadratic growth present in naive
7107 # implementations.
7108 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7109 eval 'as_fn_append ()
7111 eval $1+=\$2
7113 else
7114 as_fn_append ()
7116 eval $1=\$$1\$2
7118 fi # as_fn_append
7120 # as_fn_arith ARG...
7121 # ------------------
7122 # Perform arithmetic evaluation on the ARGs, and store the result in the
7123 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7124 # must be portable across $(()) and expr.
7125 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7126 eval 'as_fn_arith ()
7128 as_val=$(( $* ))
7130 else
7131 as_fn_arith ()
7133 as_val=`expr "$@" || test $? -eq 1`
7135 fi # as_fn_arith
7138 if expr a : '\(a\)' >/dev/null 2>&1 &&
7139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7140 as_expr=expr
7141 else
7142 as_expr=false
7145 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7146 as_basename=basename
7147 else
7148 as_basename=false
7151 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7152 as_dirname=dirname
7153 else
7154 as_dirname=false
7157 as_me=`$as_basename -- "$0" ||
7158 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7159 X"$0" : 'X\(//\)$' \| \
7160 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7161 $as_echo X/"$0" |
7162 sed '/^.*\/\([^/][^/]*\)\/*$/{
7163 s//\1/
7166 /^X\/\(\/\/\)$/{
7167 s//\1/
7170 /^X\/\(\/\).*/{
7171 s//\1/
7174 s/.*/./; q'`
7176 # Avoid depending upon Character Ranges.
7177 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7178 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7179 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7180 as_cr_digits='0123456789'
7181 as_cr_alnum=$as_cr_Letters$as_cr_digits
7183 ECHO_C= ECHO_N= ECHO_T=
7184 case `echo -n x` in #(((((
7185 -n*)
7186 case `echo 'xy\c'` in
7187 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7188 xy) ECHO_C='\c';;
7189 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7190 ECHO_T=' ';;
7191 esac;;
7193 ECHO_N='-n';;
7194 esac
7196 rm -f conf$$ conf$$.exe conf$$.file
7197 if test -d conf$$.dir; then
7198 rm -f conf$$.dir/conf$$.file
7199 else
7200 rm -f conf$$.dir
7201 mkdir conf$$.dir 2>/dev/null
7203 if (echo >conf$$.file) 2>/dev/null; then
7204 if ln -s conf$$.file conf$$ 2>/dev/null; then
7205 as_ln_s='ln -s'
7206 # ... but there are two gotchas:
7207 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7208 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7209 # In both cases, we have to default to `cp -pR'.
7210 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7211 as_ln_s='cp -pR'
7212 elif ln conf$$.file conf$$ 2>/dev/null; then
7213 as_ln_s=ln
7214 else
7215 as_ln_s='cp -pR'
7217 else
7218 as_ln_s='cp -pR'
7220 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7221 rmdir conf$$.dir 2>/dev/null
7224 # as_fn_mkdir_p
7225 # -------------
7226 # Create "$as_dir" as a directory, including parents if necessary.
7227 as_fn_mkdir_p ()
7230 case $as_dir in #(
7231 -*) as_dir=./$as_dir;;
7232 esac
7233 test -d "$as_dir" || eval $as_mkdir_p || {
7234 as_dirs=
7235 while :; do
7236 case $as_dir in #(
7237 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7238 *) as_qdir=$as_dir;;
7239 esac
7240 as_dirs="'$as_qdir' $as_dirs"
7241 as_dir=`$as_dirname -- "$as_dir" ||
7242 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7243 X"$as_dir" : 'X\(//\)[^/]' \| \
7244 X"$as_dir" : 'X\(//\)$' \| \
7245 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7246 $as_echo X"$as_dir" |
7247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7248 s//\1/
7251 /^X\(\/\/\)[^/].*/{
7252 s//\1/
7255 /^X\(\/\/\)$/{
7256 s//\1/
7259 /^X\(\/\).*/{
7260 s//\1/
7263 s/.*/./; q'`
7264 test -d "$as_dir" && break
7265 done
7266 test -z "$as_dirs" || eval "mkdir $as_dirs"
7267 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7270 } # as_fn_mkdir_p
7271 if mkdir -p . 2>/dev/null; then
7272 as_mkdir_p='mkdir -p "$as_dir"'
7273 else
7274 test -d ./-p && rmdir ./-p
7275 as_mkdir_p=false
7279 # as_fn_executable_p FILE
7280 # -----------------------
7281 # Test if FILE is an executable regular file.
7282 as_fn_executable_p ()
7284 test -f "$1" && test -x "$1"
7285 } # as_fn_executable_p
7286 as_test_x='test -x'
7287 as_executable_p=as_fn_executable_p
7289 # Sed expression to map a string onto a valid CPP name.
7290 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7292 # Sed expression to map a string onto a valid variable name.
7293 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7296 exec 6>&1
7297 ## ----------------------------------- ##
7298 ## Main body of $CONFIG_STATUS script. ##
7299 ## ----------------------------------- ##
7300 _ASEOF
7301 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7304 # Save the log message, to keep $0 and so on meaningful, and to
7305 # report actual input values of CONFIG_FILES etc. instead of their
7306 # values after options handling.
7307 ac_log="
7308 This file was extended by DHCP $as_me 4.3.0, which was
7309 generated by GNU Autoconf 2.69. Invocation command line was
7311 CONFIG_FILES = $CONFIG_FILES
7312 CONFIG_HEADERS = $CONFIG_HEADERS
7313 CONFIG_LINKS = $CONFIG_LINKS
7314 CONFIG_COMMANDS = $CONFIG_COMMANDS
7315 $ $0 $@
7317 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7320 _ACEOF
7322 case $ac_config_files in *"
7323 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7324 esac
7326 case $ac_config_headers in *"
7327 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7328 esac
7331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7332 # Files that config.status was made for.
7333 config_files="$ac_config_files"
7334 config_headers="$ac_config_headers"
7335 config_commands="$ac_config_commands"
7337 _ACEOF
7339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7340 ac_cs_usage="\
7341 \`$as_me' instantiates files and other configuration actions
7342 from templates according to the current configuration. Unless the files
7343 and actions are specified as TAGs, all are instantiated by default.
7345 Usage: $0 [OPTION]... [TAG]...
7347 -h, --help print this help, then exit
7348 -V, --version print version number and configuration settings, then exit
7349 --config print configuration, then exit
7350 -q, --quiet, --silent
7351 do not print progress messages
7352 -d, --debug don't remove temporary files
7353 --recheck update $as_me by reconfiguring in the same conditions
7354 --file=FILE[:TEMPLATE]
7355 instantiate the configuration file FILE
7356 --header=FILE[:TEMPLATE]
7357 instantiate the configuration header FILE
7359 Configuration files:
7360 $config_files
7362 Configuration headers:
7363 $config_headers
7365 Configuration commands:
7366 $config_commands
7368 Report bugs to <dhcp-users@isc.org>."
7370 _ACEOF
7371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7372 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7373 ac_cs_version="\\
7374 DHCP config.status 4.3.0
7375 configured by $0, generated by GNU Autoconf 2.69,
7376 with options \\"\$ac_cs_config\\"
7378 Copyright (C) 2012 Free Software Foundation, Inc.
7379 This config.status script is free software; the Free Software Foundation
7380 gives unlimited permission to copy, distribute and modify it."
7382 ac_pwd='$ac_pwd'
7383 srcdir='$srcdir'
7384 INSTALL='$INSTALL'
7385 MKDIR_P='$MKDIR_P'
7386 AWK='$AWK'
7387 test -n "\$AWK" || AWK=awk
7388 _ACEOF
7390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7391 # The default lists apply if the user does not specify any file.
7392 ac_need_defaults=:
7393 while test $# != 0
7395 case $1 in
7396 --*=?*)
7397 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7398 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7399 ac_shift=:
7401 --*=)
7402 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7403 ac_optarg=
7404 ac_shift=:
7407 ac_option=$1
7408 ac_optarg=$2
7409 ac_shift=shift
7411 esac
7413 case $ac_option in
7414 # Handling of the options.
7415 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7416 ac_cs_recheck=: ;;
7417 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7418 $as_echo "$ac_cs_version"; exit ;;
7419 --config | --confi | --conf | --con | --co | --c )
7420 $as_echo "$ac_cs_config"; exit ;;
7421 --debug | --debu | --deb | --de | --d | -d )
7422 debug=: ;;
7423 --file | --fil | --fi | --f )
7424 $ac_shift
7425 case $ac_optarg in
7426 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7427 '') as_fn_error $? "missing file argument" ;;
7428 esac
7429 as_fn_append CONFIG_FILES " '$ac_optarg'"
7430 ac_need_defaults=false;;
7431 --header | --heade | --head | --hea )
7432 $ac_shift
7433 case $ac_optarg in
7434 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7435 esac
7436 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7437 ac_need_defaults=false;;
7438 --he | --h)
7439 # Conflict between --help and --header
7440 as_fn_error $? "ambiguous option: \`$1'
7441 Try \`$0 --help' for more information.";;
7442 --help | --hel | -h )
7443 $as_echo "$ac_cs_usage"; exit ;;
7444 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7445 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7446 ac_cs_silent=: ;;
7448 # This is an error.
7449 -*) as_fn_error $? "unrecognized option: \`$1'
7450 Try \`$0 --help' for more information." ;;
7452 *) as_fn_append ac_config_targets " $1"
7453 ac_need_defaults=false ;;
7455 esac
7456 shift
7457 done
7459 ac_configure_extra_args=
7461 if $ac_cs_silent; then
7462 exec 6>/dev/null
7463 ac_configure_extra_args="$ac_configure_extra_args --silent"
7466 _ACEOF
7467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7468 if \$ac_cs_recheck; then
7469 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7470 shift
7471 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7472 CONFIG_SHELL='$SHELL'
7473 export CONFIG_SHELL
7474 exec "\$@"
7477 _ACEOF
7478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7479 exec 5>>config.log
7481 echo
7482 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7483 ## Running $as_me. ##
7484 _ASBOX
7485 $as_echo "$ac_log"
7486 } >&5
7488 _ACEOF
7489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7491 # INIT-COMMANDS
7493 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7495 _ACEOF
7497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7499 # Handling of arguments.
7500 for ac_config_target in $ac_config_targets
7502 case $ac_config_target in
7503 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7504 "includes/config.h") CONFIG_HEADERS="$CONFIG_HEADERS includes/config.h" ;;
7505 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7506 "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
7507 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
7508 "common/tests/Makefile") CONFIG_FILES="$CONFIG_FILES common/tests/Makefile" ;;
7509 "dhcpctl/Makefile") CONFIG_FILES="$CONFIG_FILES dhcpctl/Makefile" ;;
7510 "dst/Makefile") CONFIG_FILES="$CONFIG_FILES dst/Makefile" ;;
7511 "includes/Makefile") CONFIG_FILES="$CONFIG_FILES includes/Makefile" ;;
7512 "omapip/Makefile") CONFIG_FILES="$CONFIG_FILES omapip/Makefile" ;;
7513 "relay/Makefile") CONFIG_FILES="$CONFIG_FILES relay/Makefile" ;;
7514 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
7515 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
7516 "server/tests/Makefile") CONFIG_FILES="$CONFIG_FILES server/tests/Makefile" ;;
7517 "doc/devel/doxyfile") CONFIG_FILES="$CONFIG_FILES doc/devel/doxyfile" ;;
7519 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7520 esac
7521 done
7524 # If the user did not use the arguments to specify the items to instantiate,
7525 # then the envvar interface is used. Set only those that are not.
7526 # We use the long form for the default assignment because of an extremely
7527 # bizarre bug on SunOS 4.1.3.
7528 if $ac_need_defaults; then
7529 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7530 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7531 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7534 # Have a temporary directory for convenience. Make it in the build tree
7535 # simply because there is no reason against having it here, and in addition,
7536 # creating and moving files from /tmp can sometimes cause problems.
7537 # Hook for its removal unless debugging.
7538 # Note that there is a small window in which the directory will not be cleaned:
7539 # after its creation but before its name has been assigned to `$tmp'.
7540 $debug ||
7542 tmp= ac_tmp=
7543 trap 'exit_status=$?
7544 : "${ac_tmp:=$tmp}"
7545 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7547 trap 'as_fn_exit 1' 1 2 13 15
7549 # Create a (secure) tmp directory for tmp files.
7552 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7553 test -d "$tmp"
7554 } ||
7556 tmp=./conf$$-$RANDOM
7557 (umask 077 && mkdir "$tmp")
7558 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7559 ac_tmp=$tmp
7561 # Set up the scripts for CONFIG_FILES section.
7562 # No need to generate them if there are no CONFIG_FILES.
7563 # This happens for instance with `./config.status config.h'.
7564 if test -n "$CONFIG_FILES"; then
7567 ac_cr=`echo X | tr X '\015'`
7568 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7569 # But we know of no other shell where ac_cr would be empty at this
7570 # point, so we can use a bashism as a fallback.
7571 if test "x$ac_cr" = x; then
7572 eval ac_cr=\$\'\\r\'
7574 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7575 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7576 ac_cs_awk_cr='\\r'
7577 else
7578 ac_cs_awk_cr=$ac_cr
7581 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7582 _ACEOF
7586 echo "cat >conf$$subs.awk <<_ACEOF" &&
7587 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7588 echo "_ACEOF"
7589 } >conf$$subs.sh ||
7590 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7591 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7592 ac_delim='%!_!# '
7593 for ac_last_try in false false false false false :; do
7594 . ./conf$$subs.sh ||
7595 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7597 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7598 if test $ac_delim_n = $ac_delim_num; then
7599 break
7600 elif $ac_last_try; then
7601 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7602 else
7603 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7605 done
7606 rm -f conf$$subs.sh
7608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7609 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7610 _ACEOF
7611 sed -n '
7613 s/^/S["/; s/!.*/"]=/
7616 s/^[^!]*!//
7617 :repl
7618 t repl
7619 s/'"$ac_delim"'$//
7620 t delim
7623 s/\(.\{148\}\)..*/\1/
7624 t more1
7625 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7628 b repl
7629 :more1
7630 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7633 s/.\{148\}//
7634 t nl
7635 :delim
7637 s/\(.\{148\}\)..*/\1/
7638 t more2
7639 s/["\\]/\\&/g; s/^/"/; s/$/"/
7642 :more2
7643 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7646 s/.\{148\}//
7647 t delim
7648 ' <conf$$subs.awk | sed '
7649 /^[^""]/{
7651 s/\n//
7653 ' >>$CONFIG_STATUS || ac_write_fail=1
7654 rm -f conf$$subs.awk
7655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7656 _ACAWK
7657 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7658 for (key in S) S_is_set[key] = 1
7659 FS = "\a"
7663 line = $ 0
7664 nfields = split(line, field, "@")
7665 substed = 0
7666 len = length(field[1])
7667 for (i = 2; i < nfields; i++) {
7668 key = field[i]
7669 keylen = length(key)
7670 if (S_is_set[key]) {
7671 value = S[key]
7672 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7673 len += length(value) + length(field[++i])
7674 substed = 1
7675 } else
7676 len += 1 + keylen
7679 print line
7682 _ACAWK
7683 _ACEOF
7684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7685 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7686 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7687 else
7689 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7690 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7691 _ACEOF
7693 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7694 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7695 # trailing colons and then remove the whole line if VPATH becomes empty
7696 # (actually we leave an empty line to preserve line numbers).
7697 if test "x$srcdir" = x.; then
7698 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7700 s///
7701 s/^/:/
7702 s/[ ]*$/:/
7703 s/:\$(srcdir):/:/g
7704 s/:\${srcdir}:/:/g
7705 s/:@srcdir@:/:/g
7706 s/^:*//
7707 s/:*$//
7709 s/\(=[ ]*\).*/\1/
7711 s/\n//
7712 s/^[^=]*=[ ]*$//
7716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7717 fi # test -n "$CONFIG_FILES"
7719 # Set up the scripts for CONFIG_HEADERS section.
7720 # No need to generate them if there are no CONFIG_HEADERS.
7721 # This happens for instance with `./config.status Makefile'.
7722 if test -n "$CONFIG_HEADERS"; then
7723 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7724 BEGIN {
7725 _ACEOF
7727 # Transform confdefs.h into an awk script `defines.awk', embedded as
7728 # here-document in config.status, that substitutes the proper values into
7729 # config.h.in to produce config.h.
7731 # Create a delimiter string that does not exist in confdefs.h, to ease
7732 # handling of long lines.
7733 ac_delim='%!_!# '
7734 for ac_last_try in false false :; do
7735 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7736 if test -z "$ac_tt"; then
7737 break
7738 elif $ac_last_try; then
7739 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7740 else
7741 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7743 done
7745 # For the awk script, D is an array of macro values keyed by name,
7746 # likewise P contains macro parameters if any. Preserve backslash
7747 # newline sequences.
7749 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7750 sed -n '
7751 s/.\{148\}/&'"$ac_delim"'/g
7752 t rset
7753 :rset
7754 s/^[ ]*#[ ]*define[ ][ ]*/ /
7755 t def
7757 :def
7758 s/\\$//
7759 t bsnl
7760 s/["\\]/\\&/g
7761 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7762 D["\1"]=" \3"/p
7763 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7765 :bsnl
7766 s/["\\]/\\&/g
7767 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7768 D["\1"]=" \3\\\\\\n"\\/p
7769 t cont
7770 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7771 t cont
7773 :cont
7775 s/.\{148\}/&'"$ac_delim"'/g
7776 t clear
7777 :clear
7778 s/\\$//
7779 t bsnlc
7780 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7782 :bsnlc
7783 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7784 b cont
7785 ' <confdefs.h | sed '
7786 s/'"$ac_delim"'/"\\\
7787 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7790 for (key in D) D_is_set[key] = 1
7791 FS = "\a"
7793 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7794 line = \$ 0
7795 split(line, arg, " ")
7796 if (arg[1] == "#") {
7797 defundef = arg[2]
7798 mac1 = arg[3]
7799 } else {
7800 defundef = substr(arg[1], 2)
7801 mac1 = arg[2]
7803 split(mac1, mac2, "(") #)
7804 macro = mac2[1]
7805 prefix = substr(line, 1, index(line, defundef) - 1)
7806 if (D_is_set[macro]) {
7807 # Preserve the white space surrounding the "#".
7808 print prefix "define", macro P[macro] D[macro]
7809 next
7810 } else {
7811 # Replace #undef with comments. This is necessary, for example,
7812 # in the case of _POSIX_SOURCE, which is predefined and required
7813 # on some systems where configure will not decide to define it.
7814 if (defundef == "undef") {
7815 print "/*", prefix defundef, macro, "*/"
7816 next
7820 { print }
7821 _ACAWK
7822 _ACEOF
7823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7824 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7825 fi # test -n "$CONFIG_HEADERS"
7828 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7829 shift
7830 for ac_tag
7832 case $ac_tag in
7833 :[FHLC]) ac_mode=$ac_tag; continue;;
7834 esac
7835 case $ac_mode$ac_tag in
7836 :[FHL]*:*);;
7837 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7838 :[FH]-) ac_tag=-:-;;
7839 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7840 esac
7841 ac_save_IFS=$IFS
7842 IFS=:
7843 set x $ac_tag
7844 IFS=$ac_save_IFS
7845 shift
7846 ac_file=$1
7847 shift
7849 case $ac_mode in
7850 :L) ac_source=$1;;
7851 :[FH])
7852 ac_file_inputs=
7853 for ac_f
7855 case $ac_f in
7856 -) ac_f="$ac_tmp/stdin";;
7857 *) # Look for the file first in the build tree, then in the source tree
7858 # (if the path is not absolute). The absolute path cannot be DOS-style,
7859 # because $ac_f cannot contain `:'.
7860 test -f "$ac_f" ||
7861 case $ac_f in
7862 [\\/$]*) false;;
7863 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7864 esac ||
7865 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7866 esac
7867 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7868 as_fn_append ac_file_inputs " '$ac_f'"
7869 done
7871 # Let's still pretend it is `configure' which instantiates (i.e., don't
7872 # use $as_me), people would be surprised to read:
7873 # /* config.h. Generated by config.status. */
7874 configure_input='Generated from '`
7875 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7876 `' by configure.'
7877 if test x"$ac_file" != x-; then
7878 configure_input="$ac_file. $configure_input"
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7880 $as_echo "$as_me: creating $ac_file" >&6;}
7882 # Neutralize special characters interpreted by sed in replacement strings.
7883 case $configure_input in #(
7884 *\&* | *\|* | *\\* )
7885 ac_sed_conf_input=`$as_echo "$configure_input" |
7886 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7887 *) ac_sed_conf_input=$configure_input;;
7888 esac
7890 case $ac_tag in
7891 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7892 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7893 esac
7895 esac
7897 ac_dir=`$as_dirname -- "$ac_file" ||
7898 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7899 X"$ac_file" : 'X\(//\)[^/]' \| \
7900 X"$ac_file" : 'X\(//\)$' \| \
7901 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7902 $as_echo X"$ac_file" |
7903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7904 s//\1/
7907 /^X\(\/\/\)[^/].*/{
7908 s//\1/
7911 /^X\(\/\/\)$/{
7912 s//\1/
7915 /^X\(\/\).*/{
7916 s//\1/
7919 s/.*/./; q'`
7920 as_dir="$ac_dir"; as_fn_mkdir_p
7921 ac_builddir=.
7923 case "$ac_dir" in
7924 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7926 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7927 # A ".." for each directory in $ac_dir_suffix.
7928 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7929 case $ac_top_builddir_sub in
7930 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7931 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7932 esac ;;
7933 esac
7934 ac_abs_top_builddir=$ac_pwd
7935 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7936 # for backward compatibility:
7937 ac_top_builddir=$ac_top_build_prefix
7939 case $srcdir in
7940 .) # We are building in place.
7941 ac_srcdir=.
7942 ac_top_srcdir=$ac_top_builddir_sub
7943 ac_abs_top_srcdir=$ac_pwd ;;
7944 [\\/]* | ?:[\\/]* ) # Absolute name.
7945 ac_srcdir=$srcdir$ac_dir_suffix;
7946 ac_top_srcdir=$srcdir
7947 ac_abs_top_srcdir=$srcdir ;;
7948 *) # Relative name.
7949 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7950 ac_top_srcdir=$ac_top_build_prefix$srcdir
7951 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7952 esac
7953 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7956 case $ac_mode in
7959 # CONFIG_FILE
7962 case $INSTALL in
7963 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7964 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7965 esac
7966 ac_MKDIR_P=$MKDIR_P
7967 case $MKDIR_P in
7968 [\\/$]* | ?:[\\/]* ) ;;
7969 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7970 esac
7971 _ACEOF
7974 # Neutralize VPATH when `$srcdir' = `.'.
7975 # Shell code in configure.ac might set extrasub.
7976 # FIXME: do we really want to maintain this feature?
7977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7978 ac_sed_extra="$ac_vpsub
7979 $extrasub
7980 _ACEOF
7981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7983 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7984 s|@configure_input@|$ac_sed_conf_input|;t t
7985 s&@top_builddir@&$ac_top_builddir_sub&;t t
7986 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7987 s&@srcdir@&$ac_srcdir&;t t
7988 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7989 s&@top_srcdir@&$ac_top_srcdir&;t t
7990 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7991 s&@builddir@&$ac_builddir&;t t
7992 s&@abs_builddir@&$ac_abs_builddir&;t t
7993 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7994 s&@INSTALL@&$ac_INSTALL&;t t
7995 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7997 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7998 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8001 rm -f "$ac_tmp/stdin"
8002 case $ac_file in
8003 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8004 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8005 esac \
8006 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8010 # CONFIG_HEADER
8012 if test x"$ac_file" != x-; then
8014 $as_echo "/* $configure_input */" \
8015 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8016 } >"$ac_tmp/config.h" \
8017 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8018 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8020 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8021 else
8022 rm -f "$ac_file"
8023 mv "$ac_tmp/config.h" "$ac_file" \
8024 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8026 else
8027 $as_echo "/* $configure_input */" \
8028 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8029 || as_fn_error $? "could not create -" "$LINENO" 5
8031 # Compute "$ac_file"'s index in $config_headers.
8032 _am_arg="$ac_file"
8033 _am_stamp_count=1
8034 for _am_header in $config_headers :; do
8035 case $_am_header in
8036 $_am_arg | $_am_arg:* )
8037 break ;;
8039 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8040 esac
8041 done
8042 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8043 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8044 X"$_am_arg" : 'X\(//\)[^/]' \| \
8045 X"$_am_arg" : 'X\(//\)$' \| \
8046 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8047 $as_echo X"$_am_arg" |
8048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8049 s//\1/
8052 /^X\(\/\/\)[^/].*/{
8053 s//\1/
8056 /^X\(\/\/\)$/{
8057 s//\1/
8060 /^X\(\/\).*/{
8061 s//\1/
8064 s/.*/./; q'`/stamp-h$_am_stamp_count
8067 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8068 $as_echo "$as_me: executing $ac_file commands" >&6;}
8070 esac
8073 case $ac_file$ac_mode in
8074 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8075 # Older Autoconf quotes --file arguments for eval, but not when files
8076 # are listed without --file. Let's play safe and only enable the eval
8077 # if we detect the quoting.
8078 case $CONFIG_FILES in
8079 *\'*) eval set x "$CONFIG_FILES" ;;
8080 *) set x $CONFIG_FILES ;;
8081 esac
8082 shift
8083 for mf
8085 # Strip MF so we end up with the name of the file.
8086 mf=`echo "$mf" | sed -e 's/:.*$//'`
8087 # Check whether this is an Automake generated Makefile or not.
8088 # We used to match only the files named 'Makefile.in', but
8089 # some people rename them; so instead we look at the file content.
8090 # Grep'ing the first line is not enough: some people post-process
8091 # each Makefile.in and add a new line on top of each file to say so.
8092 # Grep'ing the whole file is not good either: AIX grep has a line
8093 # limit of 2048, but all sed's we know have understand at least 4000.
8094 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8095 dirpart=`$as_dirname -- "$mf" ||
8096 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8097 X"$mf" : 'X\(//\)[^/]' \| \
8098 X"$mf" : 'X\(//\)$' \| \
8099 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8100 $as_echo X"$mf" |
8101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8102 s//\1/
8105 /^X\(\/\/\)[^/].*/{
8106 s//\1/
8109 /^X\(\/\/\)$/{
8110 s//\1/
8113 /^X\(\/\).*/{
8114 s//\1/
8117 s/.*/./; q'`
8118 else
8119 continue
8121 # Extract the definition of DEPDIR, am__include, and am__quote
8122 # from the Makefile without running 'make'.
8123 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8124 test -z "$DEPDIR" && continue
8125 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8126 test -z "$am__include" && continue
8127 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8128 # Find all dependency output files, they are included files with
8129 # $(DEPDIR) in their names. We invoke sed twice because it is the
8130 # simplest approach to changing $(DEPDIR) to its actual value in the
8131 # expansion.
8132 for file in `sed -n "
8133 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8134 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8135 # Make sure the directory exists.
8136 test -f "$dirpart/$file" && continue
8137 fdir=`$as_dirname -- "$file" ||
8138 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8139 X"$file" : 'X\(//\)[^/]' \| \
8140 X"$file" : 'X\(//\)$' \| \
8141 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8142 $as_echo X"$file" |
8143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8144 s//\1/
8147 /^X\(\/\/\)[^/].*/{
8148 s//\1/
8151 /^X\(\/\/\)$/{
8152 s//\1/
8155 /^X\(\/\).*/{
8156 s//\1/
8159 s/.*/./; q'`
8160 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8161 # echo "creating $dirpart/$file"
8162 echo '# dummy' > "$dirpart/$file"
8163 done
8164 done
8168 esac
8169 done # for ac_tag
8172 as_fn_exit 0
8173 _ACEOF
8174 ac_clean_files=$ac_clean_files_save
8176 test $ac_write_fail = 0 ||
8177 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8180 # configure is writing to config.log, and then calls config.status.
8181 # config.status does its own redirection, appending to config.log.
8182 # Unfortunately, on DOS this fails, as config.log is still kept open
8183 # by configure, so config.status won't be able to write to it; its
8184 # output is simply discarded. So we exec the FD to /dev/null,
8185 # effectively closing config.log, so it can be properly (re)opened and
8186 # appended to by config.status. When coming back to configure, we
8187 # need to make the FD available again.
8188 if test "$no_create" != yes; then
8189 ac_cs_success=:
8190 ac_config_status_args=
8191 test "$silent" = yes &&
8192 ac_config_status_args="$ac_config_status_args --quiet"
8193 exec 5>/dev/null
8194 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8195 exec 5>>config.log
8196 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8197 # would make configure fail if this is the last instruction.
8198 $ac_cs_success || as_fn_exit 1
8200 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8202 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8206 sh util/bindvar.sh
8208 cat > config.report << END
8210 ISC DHCP source configure results:
8211 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
8213 Package:
8214 Name: $PACKAGE_NAME
8215 Version: $PACKAGE_VERSION
8217 C Compiler: $CC
8219 Flags:
8220 DEFS: $DEFS
8221 CFLAGS: $CFLAGS
8223 Features:
8224 debug: $enable_debug
8225 failover: $enable_failover
8226 execute: $enable_execute
8228 Developer:
8229 ATF unittests : $atf_path
8232 # TODO: Add Perl system tests
8234 if test "$atf_path" != "no"
8235 then
8236 echo "ATF_CFLAGS : $ATF_CFLAGS" >> config.report
8237 echo "ATF_LDFLAGS : $ATF_LDFLAGS" >> config.report
8238 echo
8241 cat config.report
8243 echo
8244 echo Now you can type "make" to build ISC DHCP
8245 echo