2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for DHCP 4.3.4.
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 :
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+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
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
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 ||
:
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.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
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 :
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+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || 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 :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
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 :
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
240 if test "x$CONFIG_SHELL" != x
; then :
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.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
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."
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
279 SHELL
=${CONFIG_SHELL-/bin/sh}
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 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
358 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
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
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
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 :
401 as_val
=`expr "$@" || test $? -eq 1`
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.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
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
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
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
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 ||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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"'
546 test -d .
/-p && rmdir .
/-p
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
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`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
582 PACKAGE_TARNAME
='dhcp'
583 PACKAGE_VERSION
='4.3.4'
584 PACKAGE_STRING
='DHCP 4.3.4'
585 PACKAGE_BUGREPORT
='dhcp-users@isc.org'
588 # Factoring default headers for most tests.
589 ac_includes_default
="\
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
601 # ifdef HAVE_STDLIB_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
624 ac_subst_vars
='am__EXEEXT_FALSE
633 DISTCHECK_ATF_CONFIGURE_FLAG
648 CROSS_COMPILING_FALSE
677 MAINTAINER_MODE_FALSE
691 INSTALL_STRIP_PROGRAM
733 program_transform_name
746 enable_option_checking
748 enable_maintainer_mode
749 enable_dependency_tracking
761 enable_secs_byteorder
782 ac_precious_vars
='build_alias
793 # Initialize some variables set by options.
795 ac_init_version
=false
796 ac_unrecognized_opts
=
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
807 program_transform_name
=s
,x
,x
,
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir
='${exec_prefix}/bin'
822 sbindir
='${exec_prefix}/sbin'
823 libexecdir
='${exec_prefix}/libexec'
824 datarootdir
='${prefix}/share'
825 datadir
='${datarootdir}'
826 sysconfdir
='${prefix}/etc'
827 sharedstatedir
='${prefix}/com'
828 localstatedir
='${prefix}/var'
829 includedir
='${prefix}/include'
830 oldincludedir
='/usr/include'
831 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir
='${datarootdir}/info'
837 libdir
='${exec_prefix}/lib'
838 localedir
='${datarootdir}/locale'
839 mandir
='${datarootdir}/man'
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\
$ac_option
853 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858 # Accept the important Cygnus configure options, so we can diagnose typos.
860 case $ac_dashdash$ac_option in
864 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
866 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
869 -build |
--build |
--buil |
--bui |
--bu)
870 ac_prev
=build_alias
;;
871 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
872 build_alias
=$ac_optarg ;;
874 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
875 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
876 ac_prev
=cache_file
;;
877 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
878 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
879 cache_file
=$ac_optarg ;;
882 cache_file
=config.cache
;;
884 -datadir |
--datadir |
--datadi |
--datad)
886 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
887 datadir
=$ac_optarg ;;
889 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
890 |
--dataroo |
--dataro |
--datar)
891 ac_prev
=datarootdir
;;
892 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
893 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
894 datarootdir
=$ac_optarg ;;
896 -disable-* |
--disable-*)
897 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
900 as_fn_error $?
"invalid feature name: $ac_useropt"
901 ac_useropt_orig
=$ac_useropt
902 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
907 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep
=', ';;
910 eval enable_
$ac_useropt=no
;;
912 -docdir |
--docdir |
--docdi |
--doc |
--do)
914 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
917 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
919 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
922 -enable-* |
--enable-*)
923 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
926 as_fn_error $?
"invalid feature name: $ac_useropt"
927 ac_useropt_orig
=$ac_useropt
928 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
933 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep
=', ';;
936 eval enable_
$ac_useropt=\
$ac_optarg ;;
938 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
939 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
940 |
--exec |
--exe |
--ex)
941 ac_prev
=exec_prefix
;;
942 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
943 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
944 |
--exec=* |
--exe=* |
--ex=*)
945 exec_prefix
=$ac_optarg ;;
947 -gas |
--gas |
--ga |
--g)
948 # Obsolete; use --with-gas.
951 -help |
--help |
--hel |
--he |
-h)
953 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
954 ac_init_help
=recursive
;;
955 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
956 ac_init_help
=short
;;
958 -host |
--host |
--hos |
--ho)
959 ac_prev
=host_alias
;;
960 -host=* |
--host=* |
--hos=* |
--ho=*)
961 host_alias
=$ac_optarg ;;
963 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
965 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
967 htmldir
=$ac_optarg ;;
969 -includedir |
--includedir |
--includedi |
--included |
--include \
970 |
--includ |
--inclu |
--incl |
--inc)
971 ac_prev
=includedir
;;
972 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
973 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
974 includedir
=$ac_optarg ;;
976 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
978 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
979 infodir
=$ac_optarg ;;
981 -libdir |
--libdir |
--libdi |
--libd)
983 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
986 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
987 |
--libexe |
--libex |
--libe)
988 ac_prev
=libexecdir
;;
989 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
990 |
--libexe=* |
--libex=* |
--libe=*)
991 libexecdir
=$ac_optarg ;;
993 -localedir |
--localedir |
--localedi |
--localed |
--locale)
995 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
996 localedir
=$ac_optarg ;;
998 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
999 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1000 ac_prev
=localstatedir
;;
1001 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1002 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1003 localstatedir
=$ac_optarg ;;
1005 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1007 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1008 mandir
=$ac_optarg ;;
1010 -nfp |
--nfp |
--nf)
1011 # Obsolete; use --without-fp.
1014 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1015 |
--no-cr |
--no-c |
-n)
1018 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1019 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1022 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1023 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1024 |
--oldin |
--oldi |
--old |
--ol |
--o)
1025 ac_prev
=oldincludedir
;;
1026 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1027 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1028 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1029 oldincludedir
=$ac_optarg ;;
1031 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1033 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1034 prefix
=$ac_optarg ;;
1036 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1037 |
--program-pre |
--program-pr |
--program-p)
1038 ac_prev
=program_prefix
;;
1039 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1040 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1041 program_prefix
=$ac_optarg ;;
1043 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1044 |
--program-suf |
--program-su |
--program-s)
1045 ac_prev
=program_suffix
;;
1046 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1047 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1048 program_suffix
=$ac_optarg ;;
1050 -program-transform-name |
--program-transform-name \
1051 |
--program-transform-nam |
--program-transform-na \
1052 |
--program-transform-n |
--program-transform- \
1053 |
--program-transform |
--program-transfor \
1054 |
--program-transfo |
--program-transf \
1055 |
--program-trans |
--program-tran \
1056 |
--progr-tra |
--program-tr |
--program-t)
1057 ac_prev
=program_transform_name
;;
1058 -program-transform-name=* |
--program-transform-name=* \
1059 |
--program-transform-nam=* |
--program-transform-na=* \
1060 |
--program-transform-n=* |
--program-transform-=* \
1061 |
--program-transform=* |
--program-transfor=* \
1062 |
--program-transfo=* |
--program-transf=* \
1063 |
--program-trans=* |
--program-tran=* \
1064 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1065 program_transform_name
=$ac_optarg ;;
1067 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1069 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1070 pdfdir
=$ac_optarg ;;
1072 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1074 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1077 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1078 |
-silent |
--silent |
--silen |
--sile |
--sil)
1081 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1083 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1085 sbindir
=$ac_optarg ;;
1087 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1088 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1089 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1091 ac_prev
=sharedstatedir
;;
1092 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1093 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1094 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1096 sharedstatedir
=$ac_optarg ;;
1098 -site |
--site |
--sit)
1100 -site=* |
--site=* |
--sit=*)
1103 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1105 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1106 srcdir
=$ac_optarg ;;
1108 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1109 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1110 ac_prev
=sysconfdir
;;
1111 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1112 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1113 sysconfdir
=$ac_optarg ;;
1115 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1116 ac_prev
=target_alias
;;
1117 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1118 target_alias
=$ac_optarg ;;
1120 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1123 -version |
--version |
--versio |
--versi |
--vers |
-V)
1124 ac_init_version
=: ;;
1127 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1130 as_fn_error $?
"invalid package name: $ac_useropt"
1131 ac_useropt_orig
=$ac_useropt
1132 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1137 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138 ac_unrecognized_sep
=', ';;
1140 eval with_
$ac_useropt=\
$ac_optarg ;;
1142 -without-* |
--without-*)
1143 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1146 as_fn_error $?
"invalid package name: $ac_useropt"
1147 ac_useropt_orig
=$ac_useropt
1148 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1153 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154 ac_unrecognized_sep
=', ';;
1156 eval with_
$ac_useropt=no
;;
1159 # Obsolete; use --with-x.
1162 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1163 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1164 ac_prev
=x_includes
;;
1165 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1166 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1167 x_includes
=$ac_optarg ;;
1169 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1170 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1171 ac_prev
=x_libraries
;;
1172 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1173 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1174 x_libraries
=$ac_optarg ;;
1176 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1177 Try \`$0 --help' for more information"
1181 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 case $ac_envvar in #(
1184 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1185 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1187 eval $ac_envvar=\
$ac_optarg
1188 export $ac_envvar ;;
1191 # FIXME: should be removed in autoconf 3.0.
1192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1201 if test -n "$ac_prev"; then
1202 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1203 as_fn_error $?
"missing argument to $ac_option"
1206 if test -n "$ac_unrecognized_opts"; then
1207 case $enable_option_checking in
1209 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214 # Check all directory arguments for consistency.
1215 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
1220 eval ac_val
=\$
$ac_var
1221 # Remove trailing slashes.
1224 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225 eval $ac_var=\
$ac_val;;
1227 # Be sure to have absolute directory names.
1229 [\\/$
]* | ?
:[\\/]* ) continue;;
1230 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1232 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1235 # There might be people who depend on the old broken behavior: `$host'
1236 # used to hold the argument of --host etc.
1237 # FIXME: To remove some day.
1240 target
=$target_alias
1242 # FIXME: To remove some day.
1243 if test "x$host_alias" != x
; then
1244 if test "x$build_alias" = x
; then
1245 cross_compiling
=maybe
1246 elif test "x$build_alias" != "x$host_alias"; then
1252 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1254 test "$silent" = yes && exec 6>/dev
/null
1257 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1258 ac_ls_di
=`ls -di .` &&
1259 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1260 as_fn_error $?
"working directory cannot be determined"
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262 as_fn_error $?
"pwd does not report name of working directory"
1265 # Find the source files, if location was not specified.
1266 if test -z "$srcdir"; then
1267 ac_srcdir_defaulted
=yes
1268 # Try the directory containing this script, then the parent directory.
1269 ac_confdir
=`$as_dirname -- "$as_myself" ||
1270 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$as_myself" : 'X\(//\)[^/]' \| \
1272 X"$as_myself" : 'X\(//\)$' \| \
1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274 $as_echo X"$as_myself" |
1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1297 ac_srcdir_defaulted
=no
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1301 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1303 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1315 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 for ac_var
in $ac_precious_vars; do
1318 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1320 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1325 # Report the --help message.
1327 if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1331 \`configure' configures DHCP 4.3.4 to adapt to many kinds of systems.
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE. See below for descriptions of some of the useful variables.
1338 Defaults for the options are specified in brackets.
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking ...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351 Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 [$ac_default_prefix]
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1362 For better control, use the options below.
1364 Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/dhcp]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1389 --program-prefix=PREFIX prepend PREFIX to installed program names
1390 --program-suffix=SUFFIX append SUFFIX to installed program names
1391 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1394 --build=BUILD configure
for building on BUILD
[guessed
]
1395 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1399 if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive
) echo "Configuration of DHCP 4.3.4:";;
1406 --disable-option-checking ignore unrecognized
--enable/--with options
1407 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1408 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1409 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1410 --disable-silent-rules verbose build output
(undo
: "make V=0")
1411 --enable-maintainer-mode
1412 enable make rules and dependencies not useful
(and
1413 sometimes confusing
) to the casual installer
1414 --enable-dependency-tracking
1415 do not reject slow dependency extractors
1416 --disable-dependency-tracking
1417 speeds up one-time build
1418 --enable-debug create a debug-only version of the software
(default
1420 --enable-failover enable support
for failover
(default is
yes)
1421 --enable-execute enable support
for execute
() in config
(default is
1423 --enable-tracing enable support
for server activity tracing
(default
1425 --enable-delayed-ack queues multiple DHCPACK replies
(default is no
)
1426 --enable-dhcpv6 enable support
for DHCPv6
(default is
yes)
1427 --enable-dhcpv4o6 enable support
for DHCPv4-over-DHCPv6
(default is
1429 --enable-paranoia enable support
for chroot
/setuid
(default is no
)
1430 --enable-early-chroot enable chrooting prior to configuration
(default is
1432 --enable-ipv4-pktinfo enable use of pktinfo on IPv4 sockets
(default is
1434 --enable-use-sockets use the standard BSD socket API
(default is no
)
1435 --enable-secs-byteorder Correct bad byteorders
in the secs field
(default is
1437 --enable-log-pid Include PIDs
in syslog messages
(default is no
).
1438 --enable-binary-leases enable support
for binary insertion of leases
1442 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1443 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1444 --with-atf=PATH specify location where atf was installed
(or
"bind")
1445 --with-srv-lease-file=PATH
1446 File
for dhcpd leases
(default is
1447 LOCALSTATEDIR
/db
/dhcpd.leases
)
1448 --with-srv6-lease-file=PATH
1449 File
for dhcpd6 leases
(default is
1450 LOCALSTATEDIR
/db
/dhcpd6.leases
)
1451 --with-cli-lease-file=PATH
1452 File
for dhclient leases
(default is
1453 LOCALSTATEDIR
/db
/dhclient.leases
)
1454 --with-cli6-lease-file=PATH
1455 File
for dhclient6 leases
(default is
1456 LOCALSTATEDIR
/db
/dhclient6.leases
)
1457 --with-srv-pid-file=PATH
1458 File
for dhcpd process information
(default is
1459 LOCALSTATEDIR
/run
/dhcpd.pid
)
1460 --with-srv6-pid-file=PATH
1461 File
for dhcpd6 process information
(default is
1462 LOCALSTATEDIR
/run
/dhcpd6.pid
)
1463 --with-cli-pid-file=PATH
1464 File
for dhclient process information
(default is
1465 LOCALSTATEDIR
/run
/dhclient.pid
)
1466 --with-cli6-pid-file=PATH
1467 File
for dhclient6 process information
(default is
1468 LOCALSTATEDIR
/run
/dhclient6.pid
)
1469 --with-relay-pid-file=PATH
1470 File
for dhcrelay process information
(default is
1471 LOCALSTATEDIR
/run
/dhcrelay.pid
)
1472 --with-relay6-pid-file=PATH
1473 File
for dhcrelay6 process information
(default is
1474 LOCALSTATEDIR
/run
/dhcrelay6.pid
)
1475 --with-randomdev=PATH Path
for random device
(default is
/dev
/random
)
1476 --with-libbind=PATH
bind includes and libraries are
in PATH
(default is
1478 --with-ldap enable OpenLDAP support
in dhcpd
(default is no
)
1479 --with-ldapcrypto enable OpenLDAP crypto support
in dhcpd
(default is
1481 --with-ldap-gssapi enable krb
5/gssapi authentication
for OpenLDAP
in
1482 dhcpd
(default is no
)
1483 --with-ldapcasa enable LDAP CASA auth support
in dhcpd
(default is
1486 Some influential environment variables
:
1487 CC C compiler
command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1490 nonstandard directory
<lib dir
>
1491 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1492 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1493 you have headers
in a nonstandard directory
<include dir
>
1496 Use these variables to override the choices made by
`configure' or to help
1497 it to find libraries and programs with nonstandard names/locations.
1499 Report bugs to <dhcp-users@isc.org>.
1504 if test "$ac_init_help" = "recursive"; then
1505 # If there are subdirs, report their specific --help.
1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507 test -d "$ac_dir" ||
1508 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1516 # A ".." for each directory in $ac_dir_suffix.
1517 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1529 .) # We are building in place.
1531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
1534 ac_srcdir=$srcdir$ac_dir_suffix;
1535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for guested configure.
1546 if test -f "$ac_srcdir/configure.gnu"; then
1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549 elif test -f "$ac_srcdir/configure"; then
1551 $SHELL "$ac_srcdir/configure" --help=recursive
1553 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 cd "$ac_pwd" || { ac_status=$?; break; }
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1562 DHCP configure 4.3.4
1563 generated by GNU Autoconf 2.69
1565 Copyright (C) 2012 Free Software Foundation, Inc.
1566 This configure script is free software; the Free Software Foundation
1567 gives unlimited permission to copy, distribute and modify it.
1572 ## ------------------------ ##
1573 ## Autoconf initialization. ##
1574 ## ------------------------ ##
1576 # ac_fn_c_try_compile LINENO
1577 # --------------------------
1578 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_compile ()
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext
1583 if { { ac_try="$ac_compile"
1585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1586 *) ac_try_echo
=$ac_try;;
1588 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_compile") 2>conftest.err
1592 if test -s conftest.err
; then
1593 grep -v '^ *+' conftest.err
>conftest.er1
1594 cat conftest.er1
>&5
1595 mv -f conftest.er1 conftest.err
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && {
1599 test -z "$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 } && test -s conftest.
$ac_objext; then :
1604 $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.
$ac_ext >&5
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 as_fn_set_status
$ac_retval
1612 } # ac_fn_c_try_compile
1614 # ac_fn_c_try_cpp LINENO
1615 # ----------------------
1616 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1619 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1620 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } > conftest.i && {
1636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
1651 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1652 # -------------------------------------------------------
1653 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1654 # the include files in INCLUDES and setting the cache variable VAR
1656 ac_fn_c_check_header_mongrel ()
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if eval \${$3+:} false; then :
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 $as_echo_n "checking for $2... " >&6; }
1662 if eval \${$3+:} false; then :
1663 $as_echo_n "(cached) " >&6
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667 $as_echo "$ac_res" >&6; }
1669 # Is the header compilable?
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1671 $as_echo_n "checking $2 usability... " >&6; }
1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673 /* end confdefs.h. */
1677 if ac_fn_c_try_compile "$LINENO"; then :
1678 ac_header_compiler=yes
1680 ac_header_compiler=no
1682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1684 $as_echo "$ac_header_compiler" >&6; }
1686 # Is the header present?
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1688 $as_echo_n "checking $2 presence... " >&6; }
1689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690 /* end confdefs.h. */
1693 if ac_fn_c_try_cpp "$LINENO"; then :
1694 ac_header_preproc=yes
1696 ac_header_preproc=no
1698 rm -f conftest.err conftest.i conftest.$ac_ext
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1700 $as_echo "$ac_header_preproc" >&6; }
1702 # So? What about this header?
1703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1706 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1708 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1712 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1714 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1716 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1718 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1720 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1721 ( $as_echo "## --------------------------------- ##
1722 ## Report this to dhcp-users@isc.org ##
1723 ## --------------------------------- ##"
1724 ) | sed "s/^/$as_me: WARNING: /" >&2
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 $as_echo_n "checking for $2... " >&6; }
1729 if eval \${$3+:} false; then :
1730 $as_echo_n "(cached) " >&6
1732 eval "$3=\$ac_header_compiler"
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 $as_echo "$ac_res" >&6; }
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 } # ac_fn_c_check_header_mongrel
1742 # ac_fn_c_try_run LINENO
1743 # ----------------------
1744 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1745 # that executables *can* be run.
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 if { { ac_try="$ac_link"
1751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1752 *) ac_try_echo
=$ac_try;;
1754 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_link") 2>&5
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1760 { { case "(($ac_try" in
1761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_try") 2>&5
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; }; }; then :
1772 $as_echo "$as_me: program exited with status $ac_status" >&5
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1776 ac_retval=$ac_status
1778 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status $ac_retval
1784 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1785 # -------------------------------------------------------
1786 # Tests whether HEADER exists and can be compiled using the include files in
1787 # INCLUDES, setting the cache variable VAR accordingly.
1788 ac_fn_c_check_header_compile ()
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if eval \${$3+:} false; then :
1794 $as_echo_n "(cached) " >&6
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1801 if ac_fn_c_try_compile "$LINENO"; then :
1806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 } # ac_fn_c_check_header_compile
1815 # ac_fn_c_find_intX_t LINENO BITS VAR
1816 # -----------------------------------
1817 # Finds a signed integer type with width BITS, setting cache variable VAR
1819 ac_fn_c_find_intX_t ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1823 $as_echo_n "checking for int$2_t... " >&6; }
1824 if eval \${$3+:} false; then :
1825 $as_echo_n "(cached) " >&6
1828 # Order is important - never check a type that is potentially smaller
1829 # than half of the expected target width.
1830 for ac_type in int$2_t 'int' 'long int' \
1831 'long long int' 'short int' 'signed char'; do
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1834 $ac_includes_default
1835 enum { N = $2 / 2 - 1 };
1839 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1841 return test_array [0];
1847 if ac_fn_c_try_compile "$LINENO"; then :
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 $ac_includes_default
1851 enum { N = $2 / 2 - 1 };
1855 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1856 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1858 return test_array [0];
1864 if ac_fn_c_try_compile "$LINENO"; then :
1871 eval "$3=\$ac_type" ;;
1874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877 if eval test \"x\$"$3"\" = x"no"; then :
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 } # ac_fn_c_find_intX_t
1891 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1892 # -------------------------------------------
1893 # Tests whether TYPE exists after having included INCLUDES, setting cache
1894 # variable VAR accordingly.
1895 ac_fn_c_check_type ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if eval \${$3+:} false; then :
1901 $as_echo_n "(cached) " >&6
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1929 if ac_fn_c_try_compile "$LINENO"; then :
1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 } # ac_fn_c_check_type
1945 # ac_fn_c_find_uintX_t LINENO BITS VAR
1946 # ------------------------------------
1947 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1949 ac_fn_c_find_uintX_t ()
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1953 $as_echo_n "checking for uint$2_t... " >&6; }
1954 if eval \${$3+:} false; then :
1955 $as_echo_n "(cached) " >&6
1958 # Order is important - never check a type that is potentially smaller
1959 # than half of the expected target width.
1960 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1961 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1964 $ac_includes_default
1968 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1970 return test_array [0];
1976 if ac_fn_c_try_compile "$LINENO"; then :
1981 eval "$3=\$ac_type" ;;
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 if eval test \"x\$"$3"\" = x"no"; then :
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 } # ac_fn_c_find_uintX_t
1999 # ac_fn_c_try_link LINENO
2000 # -----------------------
2001 # Try to link conftest.$ac_ext, and return whether this succeeded.
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 rm -f conftest.$ac_objext conftest$ac_exeext
2006 if { { ac_try="$ac_link"
2008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2009 *) ac_try_echo
=$ac_try;;
2011 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_link") 2>conftest.err
2015 if test -s conftest.err
; then
2016 grep -v '^ *+' conftest.err
>conftest.er1
2017 cat conftest.er1
>&5
2018 mv -f conftest.er1 conftest.err
2020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2021 test $ac_status = 0; } && {
2022 test -z "$ac_c_werror_flag" ||
2023 test ! -s conftest.err
2024 } && test -s conftest
$ac_exeext && {
2025 test "$cross_compiling" = yes ||
2026 test -x conftest
$ac_exeext
2030 $as_echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.
$ac_ext >&5
2035 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2036 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2037 # interfere with the next link command; also delete a directory that is
2038 # left behind by Apple's compiler. We do this before executing the actions.
2039 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 as_fn_set_status
$ac_retval
2043 } # ac_fn_c_try_link
2045 # ac_fn_c_check_func LINENO FUNC VAR
2046 # ----------------------------------
2047 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2048 ac_fn_c_check_func
()
2050 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052 $as_echo_n "checking for $2... " >&6; }
2053 if eval \
${$3+:} false
; then :
2054 $as_echo_n "(cached) " >&6
2056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2058 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2060 #define $2 innocuous_$2
2062 /* System header to define __stub macros and hopefully few prototypes,
2063 which can conflict with char $2 (); below.
2064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2065 <limits.h> exists even on freestanding compilers. */
2068 # include <limits.h>
2070 # include <assert.h>
2075 /* Override any GCC internal prototype to avoid an error.
2076 Use char because int might match the return type of a GCC
2077 builtin and then its argument prototype would still apply. */
2082 /* The GNU C library defines this for functions which it implements
2083 to always fail with ENOSYS. Some functions are actually named
2084 something starting with __ and the normal name is an alias. */
2085 #if defined __stub_$2 || defined __stub___$2
2097 if ac_fn_c_try_link
"$LINENO"; then :
2102 rm -f core conftest.err conftest.
$ac_objext \
2103 conftest
$ac_exeext conftest.
$ac_ext
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 $as_echo "$ac_res" >&6; }
2108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110 } # ac_fn_c_check_func
2112 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2113 # ----------------------------------------------------
2114 # Tries to find if the field MEMBER exists in type AGGR, after including
2115 # INCLUDES, setting cache variable VAR accordingly.
2116 ac_fn_c_check_member
()
2118 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2120 $as_echo_n "checking for $2.$3... " >&6; }
2121 if eval \
${$4+:} false
; then :
2122 $as_echo_n "(cached) " >&6
2124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2137 if ac_fn_c_try_compile
"$LINENO"; then :
2140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2147 if (sizeof ac_aggr.$3)
2153 if ac_fn_c_try_compile
"$LINENO"; then :
2158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 } # ac_fn_c_check_member
2169 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2170 # --------------------------------------------
2171 # Tries to find the compile-time value of EXPR in a program that includes
2172 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2174 ac_fn_c_compute_int
()
2176 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2177 if test "$cross_compiling" = yes; then
2178 # Depending upon the size, compute the lo and hi bounds.
2179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2185 static int test_array [1 - 2 * !(($2) >= 0)];
2187 return test_array [0];
2193 if ac_fn_c_try_compile
"$LINENO"; then :
2196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2202 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2204 return test_array [0];
2210 if ac_fn_c_try_compile
"$LINENO"; then :
2211 ac_hi
=$ac_mid; break
2213 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2214 if test $ac_lo -le $ac_mid; then
2218 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2229 static int test_array [1 - 2 * !(($2) < 0)];
2231 return test_array [0];
2237 if ac_fn_c_try_compile
"$LINENO"; then :
2240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2246 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2248 return test_array [0];
2254 if ac_fn_c_try_compile
"$LINENO"; then :
2255 ac_lo
=$ac_mid; break
2257 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2258 if test $ac_mid -le $ac_hi; then
2262 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2272 # Binary search between lo and hi bounds.
2273 while test "x$ac_lo" != "x$ac_hi"; do
2274 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2281 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2283 return test_array [0];
2289 if ac_fn_c_try_compile
"$LINENO"; then :
2292 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2297 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2304 static long int longval () { return $2; }
2305 static unsigned long int ulongval () { return $2; }
2312 FILE *f = fopen ("conftest.val", "w");
2317 long int i = longval ();
2320 fprintf (f, "%ld", i);
2324 unsigned long int i = ulongval ();
2327 fprintf (f, "%lu", i);
2329 /* Do not output a trailing newline, as this causes \r\n confusion
2330 on some platforms. */
2331 return ferror (f) || fclose (f) != 0;
2337 if ac_fn_c_try_run
"$LINENO"; then :
2338 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2342 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2343 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2347 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2348 as_fn_set_status
$ac_retval
2350 } # ac_fn_c_compute_int
2351 cat >config.log
<<_ACEOF
2352 This file contains any messages produced by compilers while
2353 running configure, to aid debugging if configure makes a mistake.
2355 It was created by DHCP $as_me 4.3.4, which was
2356 generated by GNU Autoconf 2.69. Invocation command line was
2368 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2369 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2370 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2371 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2372 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2374 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2375 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2377 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2378 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2379 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2380 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2381 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2382 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2383 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2391 test -z "$as_dir" && as_dir
=.
2392 $as_echo "PATH: $as_dir"
2408 # Keep a trace of the command line.
2409 # Strip out --no-create and --no-recursion so they do not pile up.
2410 # Strip out --silent because we don't want to record it for future runs.
2411 # Also quote any args containing shell meta-characters.
2412 # Make two passes to allow for proper duplicate-argument suppression.
2416 ac_must_keep_next
=false
2422 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2423 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2424 |
-silent |
--silent |
--silen |
--sile |
--sil)
2427 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2430 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2432 as_fn_append ac_configure_args1
" '$ac_arg'"
2433 if test $ac_must_keep_next = true
; then
2434 ac_must_keep_next
=false
# Got value, back to normal.
2437 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2438 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2439 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2440 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2441 case "$ac_configure_args0 " in
2442 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2445 -* ) ac_must_keep_next
=true
;;
2448 as_fn_append ac_configure_args
" '$ac_arg'"
2453 { ac_configure_args0
=; unset ac_configure_args0
;}
2454 { ac_configure_args1
=; unset ac_configure_args1
;}
2456 # When interrupted or exit'd, cleanup temporary files, and complete
2457 # config.log. We remove comments because anyway the quotes in there
2458 # would cause problems or look ugly.
2459 # WARNING: Use '\'' to represent an apostrophe within the trap.
2460 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2461 trap 'exit_status=$?
2462 # Save into config.log some information that might help in debugging.
2466 $as_echo "## ---------------- ##
2467 ## Cache variables. ##
2468 ## ---------------- ##"
2470 # The following way of writing the cache mishandles newlines in values,
2472 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2473 eval ac_val=\$$ac_var
2477 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2478 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2481 _ | IFS | as_nl) ;; #(
2482 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2483 *) { eval $ac_var=; unset $ac_var;} ;;
2488 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2489 *${as_nl}ac_space=\ *)
2491 "s/'\''/'\''\\\\'\'''\''/g;
2492 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2495 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2502 $as_echo "## ----------------- ##
2503 ## Output variables. ##
2504 ## ----------------- ##"
2506 for ac_var in $ac_subst_vars
2508 eval ac_val=\$$ac_var
2510 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2512 $as_echo "$ac_var='\''$ac_val'\''"
2516 if test -n "$ac_subst_files"; then
2517 $as_echo "## ------------------- ##
2518 ## File substitutions. ##
2519 ## ------------------- ##"
2521 for ac_var
in $ac_subst_files
2523 eval ac_val
=\$
$ac_var
2525 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2527 $as_echo "$ac_var='\''$ac_val'\''"
2532 if test -s confdefs.h; then
2533 $as_echo "## ----------- ##
2540 test "$ac_signal" != 0 &&
2541 $as_echo "$as_me: caught signal $ac_signal"
2542 $as_echo "$as_me: exit $exit_status"
2544 rm -f core *.core core.conftest.* &&
2545 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2548 for ac_signal
in 1 2 13 15; do
2549 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2553 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2554 rm -f -r conftest
* confdefs.h
2556 $as_echo "/* confdefs.h */" > confdefs.h
2558 # Predefined preprocessor variables.
2560 cat >>confdefs.h
<<_ACEOF
2561 #define PACKAGE_NAME "$PACKAGE_NAME"
2564 cat >>confdefs.h
<<_ACEOF
2565 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2568 cat >>confdefs.h
<<_ACEOF
2569 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2572 cat >>confdefs.h
<<_ACEOF
2573 #define PACKAGE_STRING "$PACKAGE_STRING"
2576 cat >>confdefs.h
<<_ACEOF
2577 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2580 cat >>confdefs.h
<<_ACEOF
2581 #define PACKAGE_URL "$PACKAGE_URL"
2585 # Let the site file select an alternate cache file if it wants to.
2586 # Prefer an explicitly selected file to automatically selected ones.
2589 if test -n "$CONFIG_SITE"; then
2590 # We do not want a PATH search for config.site.
2591 case $CONFIG_SITE in #((
2592 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2593 */*) ac_site_file1
=$CONFIG_SITE;;
2594 *) ac_site_file1
=.
/$CONFIG_SITE;;
2596 elif test "x$prefix" != xNONE
; then
2597 ac_site_file1
=$prefix/share
/config.site
2598 ac_site_file2
=$prefix/etc
/config.site
2600 ac_site_file1
=$ac_default_prefix/share
/config.site
2601 ac_site_file2
=$ac_default_prefix/etc
/config.site
2603 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2605 test "x$ac_site_file" = xNONE
&& continue
2606 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2608 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2609 sed 's/^/| /' "$ac_site_file" >&5
2611 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2613 as_fn_error $?
"failed to load site script $ac_site_file
2614 See \`config.log' for more details" "$LINENO" 5; }
2618 if test -r "$cache_file"; then
2619 # Some versions of bash will fail to source /dev/null (special files
2620 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2621 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2623 $as_echo "$as_me: loading cache $cache_file" >&6;}
2625 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2626 *) .
"./$cache_file";;
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2631 $as_echo "$as_me: creating cache $cache_file" >&6;}
2635 # Check that the precious variables saved in the cache have kept the same
2637 ac_cache_corrupted
=false
2638 for ac_var
in $ac_precious_vars; do
2639 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2640 eval ac_new_set
=\
$ac_env_${ac_var}_set
2641 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2642 eval ac_new_val
=\
$ac_env_${ac_var}_value
2643 case $ac_old_set,$ac_new_set in
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2646 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2647 ac_cache_corrupted
=: ;;
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2650 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2651 ac_cache_corrupted
=: ;;
2654 if test "x$ac_old_val" != "x$ac_new_val"; then
2655 # differences in whitespace do not lead to failure.
2656 ac_old_val_w
=`echo x $ac_old_val`
2657 ac_new_val_w
=`echo x $ac_new_val`
2658 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2660 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2661 ac_cache_corrupted
=:
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2664 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2665 eval $ac_var=\
$ac_old_val
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2668 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2670 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2673 # Pass precious variables to config.status.
2674 if test "$ac_new_set" = set; then
2676 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2677 *) ac_arg
=$ac_var=$ac_new_val ;;
2679 case " $ac_configure_args " in
2680 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2681 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2685 if $ac_cache_corrupted; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2689 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2690 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2692 ## -------------------- ##
2693 ## Main body of script. ##
2694 ## -------------------- ##
2697 ac_cpp
='$CPP $CPPFLAGS'
2698 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2699 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2700 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2704 # we specify "foreign" to avoid having to have the GNU mandated files,
2705 # like AUTHORS, COPYING, and such
2706 am__api_version
='1.15'
2709 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2710 if test -f "$ac_dir/install-sh"; then
2712 ac_install_sh
="$ac_aux_dir/install-sh -c"
2714 elif test -f "$ac_dir/install.sh"; then
2716 ac_install_sh
="$ac_aux_dir/install.sh -c"
2718 elif test -f "$ac_dir/shtool"; then
2720 ac_install_sh
="$ac_aux_dir/shtool install -c"
2724 if test -z "$ac_aux_dir"; then
2725 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2728 # These three variables are undocumented and unsupported,
2729 # and are intended to be withdrawn in a future Autoconf release.
2730 # They can cause serious problems if a builder's source tree is in a directory
2731 # whose full name contains unusual characters.
2732 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2733 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2734 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2737 # Find a good install program. We prefer a C program (faster),
2738 # so one script is as good as another. But avoid the broken or
2739 # incompatible versions:
2740 # SysV /etc/install, /usr/sbin/install
2741 # SunOS /usr/etc/install
2742 # IRIX /sbin/install
2744 # AmigaOS /C/install, which installs bootblocks on floppy discs
2745 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2746 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2747 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2748 # OS/2's system install, which has a completely different semantic
2749 # ./install, which can be erroneously created by make from ./install.sh.
2750 # Reject install programs that cannot install multiple files.
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2752 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2753 if test -z "$INSTALL"; then
2754 if ${ac_cv_path_install+:} false
; then :
2755 $as_echo_n "(cached) " >&6
2757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2761 test -z "$as_dir" && as_dir
=.
2762 # Account for people who put trailing slashes in PATH elements.
2763 case $as_dir/ in #((
2764 .
/ | .
// |
/[cC
]/* | \
2765 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2766 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2769 # OSF1 and SCO ODT 3.0 have their own names for install.
2770 # Don't use installbsd from OSF since it installs stuff as root
2772 for ac_prog
in ginstall scoinst
install; do
2773 for ac_exec_ext
in '' $ac_executable_extensions; do
2774 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2775 if test $ac_prog = install &&
2776 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2777 # AIX install. It has an incompatible calling convention.
2779 elif test $ac_prog = install &&
2780 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2781 # program-specific install script used by HP pwplus--don't use.
2784 rm -rf conftest.one conftest.two conftest.dir
2785 echo one
> conftest.one
2786 echo two
> conftest.two
2788 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2789 test -s conftest.one
&& test -s conftest.two
&&
2790 test -s conftest.dir
/conftest.one
&&
2791 test -s conftest.dir
/conftest.two
2793 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2806 rm -rf conftest.one conftest.two conftest.dir
2809 if test "${ac_cv_path_install+set}" = set; then
2810 INSTALL
=$ac_cv_path_install
2812 # As a last resort, use the slow shell script. Don't cache a
2813 # value for INSTALL within a source directory, because that will
2814 # break other packages using the cache if that directory is
2815 # removed, or if the value is a relative name.
2816 INSTALL
=$ac_install_sh
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2820 $as_echo "$INSTALL" >&6; }
2822 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2823 # It thinks the first close brace ends the variable substitution.
2824 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2826 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2828 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2831 $as_echo_n "checking whether build environment is sane... " >&6; }
2832 # Reject unsafe characters in $srcdir or the absolute working directory
2833 # name. Accept space and tab only in the latter.
2837 *[\\\"\
#\$\&\'\`$am_lf]*)
2838 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2841 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2842 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2845 # Do 'set' in a subshell so we don't clobber the current shell's
2846 # arguments. Must try -L first in case configure is actually a
2847 # symlink; some systems play weird games with the mod time of symlinks
2848 # (eg FreeBSD returns the mod time of the symlink's containing
2852 for am_try
in 1 2; do
2853 echo "timestamp, slept: $am_has_slept" > conftest.
file
2854 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2855 if test "$*" = "X"; then
2857 set X
`ls -t "$srcdir/configure" conftest.file`
2859 if test "$*" != "X $srcdir/configure conftest.file" \
2860 && test "$*" != "X conftest.file $srcdir/configure"; then
2862 # If neither matched, then we have a broken ls. This can happen
2863 # if, for instance, CONFIG_SHELL is bash and it inherits a
2864 # broken ls alias from the environment. This has actually
2865 # happened. Such a system could not be considered "sane".
2866 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2867 alias in your environment" "$LINENO" 5
2869 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2876 test "$2" = conftest.
file
2882 as_fn_error $?
"newly created file is older than distributed files!
2883 Check your system clock" "$LINENO" 5
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2886 $as_echo "yes" >&6; }
2887 # If we didn't sleep, we still need to ensure time stamps of config.status and
2888 # generated files are strictly newer.
2890 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2897 test "$program_prefix" != NONE
&&
2898 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2899 # Use a double $ so make ignores it.
2900 test "$program_suffix" != NONE
&&
2901 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2902 # Double any \ or $.
2903 # By default was `s,x,x', remove it if useless.
2904 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2905 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2907 # Expand $ac_aux_dir to an absolute path.
2908 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2910 if test x
"${MISSING+set}" != xset
; then
2913 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2915 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2918 # Use eval to expand $SHELL
2919 if eval "$MISSING --is-lightweight"; then
2920 am_missing_run
="$MISSING "
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2924 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2927 if test x
"${install_sh+set}" != xset
; then
2930 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2932 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2936 # Installed binaries are usually stripped using 'strip' when the user
2937 # run "make install-strip". However 'strip' might not be the right
2938 # tool to use in cross-compilation environments, therefore Automake
2939 # will honor the 'STRIP' environment variable to overrule this program.
2940 if test "$cross_compiling" != no
; then
2941 if test -n "$ac_tool_prefix"; then
2942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2943 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if ${ac_cv_prog_STRIP+:} false
; then :
2947 $as_echo_n "(cached) " >&6
2949 if test -n "$STRIP"; then
2950 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2956 test -z "$as_dir" && as_dir
=.
2957 for ac_exec_ext
in '' $ac_executable_extensions; do
2958 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2959 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 STRIP
=$ac_cv_prog_STRIP
2970 if test -n "$STRIP"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2972 $as_echo "$STRIP" >&6; }
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2980 if test -z "$ac_cv_prog_STRIP"; then
2982 # Extract the first word of "strip", so it can be a program name with args.
2983 set dummy strip
; ac_word
=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2987 $as_echo_n "(cached) " >&6
2989 if test -n "$ac_ct_STRIP"; then
2990 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2992 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir
=.
2997 for ac_exec_ext
in '' $ac_executable_extensions; do
2998 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_ac_ct_STRIP
="strip"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3010 if test -n "$ac_ct_STRIP"; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3012 $as_echo "$ac_ct_STRIP" >&6; }
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3018 if test "x$ac_ct_STRIP" = x
; then
3021 case $cross_compiling:$ac_tool_warned in
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3025 ac_tool_warned
=yes ;;
3030 STRIP
="$ac_cv_prog_STRIP"
3034 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3037 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3038 if test -z "$MKDIR_P"; then
3039 if ${ac_cv_path_mkdir+:} false
; then :
3040 $as_echo_n "(cached) " >&6
3042 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3043 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3046 test -z "$as_dir" && as_dir
=.
3047 for ac_prog
in mkdir gmkdir
; do
3048 for ac_exec_ext
in '' $ac_executable_extensions; do
3049 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3050 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3051 'mkdir (GNU coreutils) '* | \
3052 'mkdir (coreutils) '* | \
3053 'mkdir (fileutils) '4.1*)
3054 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3064 test -d .
/--version && rmdir .
/--version
3065 if test "${ac_cv_path_mkdir+set}" = set; then
3066 MKDIR_P
="$ac_cv_path_mkdir -p"
3068 # As a last resort, use the slow shell script. Don't cache a
3069 # value for MKDIR_P within a source directory, because that will
3070 # break other packages using the cache if that directory is
3071 # removed, or if the value is a relative name.
3072 MKDIR_P
="$ac_install_sh -d"
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3076 $as_echo "$MKDIR_P" >&6; }
3078 for ac_prog
in gawk mawk nawk
awk
3080 # Extract the first word of "$ac_prog", so it can be a program name with args.
3081 set dummy
$ac_prog; ac_word
=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_prog_AWK+:} false
; then :
3085 $as_echo_n "(cached) " >&6
3087 if test -n "$AWK"; then
3088 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3094 test -z "$as_dir" && as_dir
=.
3095 for ac_exec_ext
in '' $ac_executable_extensions; do
3096 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_AWK
="$ac_prog"
3098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 if test -n "$AWK"; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3110 $as_echo "$AWK" >&6; }
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3117 test -n "$AWK" && break
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3121 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3123 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3124 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3125 $as_echo_n "(cached) " >&6
3127 cat >conftest.
make <<\_ACEOF
3130 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3132 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3133 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3135 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3137 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3141 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3143 $as_echo "yes" >&6; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148 SET_MAKE
="MAKE=${MAKE-make}"
3151 rm -rf .tst
2>/dev
/null
3152 mkdir .tst
2>/dev
/null
3153 if test -d .tst
; then
3158 rmdir .tst
2>/dev
/null
3160 # Check whether --enable-silent-rules was given.
3161 if test "${enable_silent_rules+set}" = set; then :
3162 enableval
=$enable_silent_rules;
3165 case $enable_silent_rules in # (((
3166 yes) AM_DEFAULT_VERBOSITY
=0;;
3167 no
) AM_DEFAULT_VERBOSITY
=1;;
3168 *) AM_DEFAULT_VERBOSITY
=1;;
3170 am_make
=${MAKE-make}
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3172 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3173 if ${am_cv_make_support_nested_variables+:} false
; then :
3174 $as_echo_n "(cached) " >&6
3176 if $as_echo 'TRUE=$(BAR$(V))
3182 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3183 am_cv_make_support_nested_variables
=yes
3185 am_cv_make_support_nested_variables
=no
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3189 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3190 if test $am_cv_make_support_nested_variables = yes; then
3192 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3194 AM_V
=$AM_DEFAULT_VERBOSITY
3195 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3199 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3200 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3201 # is not polluted with repeated "-I."
3202 am__isrc
=' -I$(srcdir)'
3203 # test to see if srcdir already configured
3204 if test -f $srcdir/config.status
; then
3205 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3209 # test whether we have cygpath
3210 if test -z "$CYGPATH_W"; then
3211 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3212 CYGPATH_W
='cygpath -w'
3219 # Define the identity of the package.
3224 cat >>confdefs.h
<<_ACEOF
3225 #define PACKAGE "$PACKAGE"
3229 cat >>confdefs.h
<<_ACEOF
3230 #define VERSION "$VERSION"
3233 # Some tools Automake needs.
3235 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3238 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3241 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3244 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3247 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3249 # For better backward compatibility. To be removed once Automake 1.9.x
3250 # dies out for good. For more background, see:
3251 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3252 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3253 mkdir_p
='$(MKDIR_P)'
3255 # We need awk for the "check" target (and possibly the TAP driver). The
3256 # system "awk" is bad on some platforms.
3257 # Always define AMTAR for backward compatibility. Yes, it's still used
3258 # in the wild :-( We should find a proper way to deprecate it ...
3262 # We'll loop over all known methods to create a tar archive until one works.
3263 _am_tools
='gnutar pax cpio none'
3265 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3272 # POSIX will say in a future version that running "rm -f" with no argument
3273 # is OK; and we want to be able to make that assumption in our Makefile
3274 # recipes. So use an aggressive probe to check that the usage we want is
3275 # actually supported "in the wild" to an acceptable degree.
3276 # See automake bug#10828.
3277 # To make any issue more visible, cause the running configure to be aborted
3278 # by default if the 'rm' program in use doesn't match our expectations; the
3279 # user can still override this though.
3280 if rm -f && rm -fr && rm -rf; then : OK
; else
3284 Your 'rm' program seems unable to run without file operands specified
3285 on the command line, even when the '-f' option is present. This is contrary
3286 to the behaviour of most rm programs out there, and not conforming with
3287 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3289 Please tell bug-automake@gnu.org about your system, including the value
3290 of your $PATH and any error possibly output before this message. This
3291 can help us improve future automake versions.
3294 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3295 echo 'Configuration will proceed anyway, since you have set the' >&2
3296 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3300 Aborting the configuration process, to ensure you take notice of the issue.
3302 You can download and install GNU coreutils to get an 'rm' implementation
3303 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3305 If you want to complete the configuration process using your problematic
3306 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3307 to "yes", and re-run configure.
3310 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3315 # we specify AM_MAINTAINER_MODE to avoid problems with rebuilding
3316 # the configure and makefiles. Without it users doing things that
3317 # change the timestamps on the code, like checking it into a cvs
3318 # tree, could trigger a rebuild of the infrastructure files which
3319 # might fail if they don't have the correct tools.
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3322 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3323 # Check whether --enable-maintainer-mode was given.
3324 if test "${enable_maintainer_mode+set}" = set; then :
3325 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3327 USE_MAINTAINER_MODE
=no
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3331 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3332 if test $USE_MAINTAINER_MODE = yes; then
3333 MAINTAINER_MODE_TRUE
=
3334 MAINTAINER_MODE_FALSE
='#'
3336 MAINTAINER_MODE_TRUE
='#'
3337 MAINTAINER_MODE_FALSE
=
3340 MAINT
=$MAINTAINER_MODE_TRUE
3344 # Make sure we can run config.sub.
3345 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3346 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3349 $as_echo_n "checking build system type... " >&6; }
3350 if ${ac_cv_build+:} false
; then :
3351 $as_echo_n "(cached) " >&6
3353 ac_build_alias
=$build_alias
3354 test "x$ac_build_alias" = x
&&
3355 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3356 test "x$ac_build_alias" = x
&&
3357 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3358 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3359 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3363 $as_echo "$ac_cv_build" >&6; }
3364 case $ac_cv_build in
3366 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3369 ac_save_IFS
=$IFS; IFS
='-'
3375 # Remember, the first character of IFS is used to create $*,
3376 # except with old shells:
3379 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3383 $as_echo_n "checking host system type... " >&6; }
3384 if ${ac_cv_host+:} false
; then :
3385 $as_echo_n "(cached) " >&6
3387 if test "x$host_alias" = x
; then
3388 ac_cv_host
=$ac_cv_build
3390 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3391 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3396 $as_echo "$ac_cv_host" >&6; }
3399 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3402 ac_save_IFS
=$IFS; IFS
='-'
3408 # Remember, the first character of IFS is used to create $*,
3409 # except with old shells:
3412 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3416 # We want to turn on warnings if we are using gcc and the user did
3417 # not specify CFLAGS. The autoconf check for the C compiler sets the
3418 # CFLAGS if gcc is used, so we will save it before we run that check.
3419 SAVE_CFLAGS
="$CFLAGS"
3421 # Now find our C compiler.
3423 ac_cpp
='$CPP $CPPFLAGS'
3424 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3425 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3426 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3427 if test -n "$ac_tool_prefix"; then
3428 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3429 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if ${ac_cv_prog_CC+:} false
; then :
3433 $as_echo_n "(cached) " >&6
3435 if test -n "$CC"; then
3436 ac_cv_prog_CC
="$CC" # Let the user override the test.
3438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3442 test -z "$as_dir" && as_dir
=.
3443 for ac_exec_ext
in '' $ac_executable_extensions; do
3444 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3445 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 if test -n "$CC"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3458 $as_echo "$CC" >&6; }
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3466 if test -z "$ac_cv_prog_CC"; then
3468 # Extract the first word of "gcc", so it can be a program name with args.
3469 set dummy gcc
; ac_word
=$2
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471 $as_echo_n "checking for $ac_word... " >&6; }
3472 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3473 $as_echo_n "(cached) " >&6
3475 if test -n "$ac_ct_CC"; then
3476 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3482 test -z "$as_dir" && as_dir
=.
3483 for ac_exec_ext
in '' $ac_executable_extensions; do
3484 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3485 ac_cv_prog_ac_ct_CC
="gcc"
3486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3496 if test -n "$ac_ct_CC"; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3498 $as_echo "$ac_ct_CC" >&6; }
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3504 if test "x$ac_ct_CC" = x
; then
3507 case $cross_compiling:$ac_tool_warned in
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3511 ac_tool_warned
=yes ;;
3519 if test -z "$CC"; then
3520 if test -n "$ac_tool_prefix"; then
3521 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3522 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524 $as_echo_n "checking for $ac_word... " >&6; }
3525 if ${ac_cv_prog_CC+:} false
; then :
3526 $as_echo_n "(cached) " >&6
3528 if test -n "$CC"; then
3529 ac_cv_prog_CC
="$CC" # Let the user override the test.
3531 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3535 test -z "$as_dir" && as_dir
=.
3536 for ac_exec_ext
in '' $ac_executable_extensions; do
3537 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3538 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 if test -n "$CC"; then
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3551 $as_echo "$CC" >&6; }
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 $as_echo "no" >&6; }
3560 if test -z "$CC"; then
3561 # Extract the first word of "cc", so it can be a program name with args.
3562 set dummy cc
; ac_word
=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if ${ac_cv_prog_CC+:} false
; then :
3566 $as_echo_n "(cached) " >&6
3568 if test -n "$CC"; then
3569 ac_cv_prog_CC
="$CC" # Let the user override the test.
3572 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3576 test -z "$as_dir" && as_dir
=.
3577 for ac_exec_ext
in '' $ac_executable_extensions; do
3578 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3579 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3580 ac_prog_rejected
=yes
3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3591 if test $ac_prog_rejected = yes; then
3592 # We found a bogon in the path, so make sure we never use it.
3593 set dummy
$ac_cv_prog_CC
3595 if test $# != 0; then
3596 # We chose a different compiler from the bogus one.
3597 # However, it has the same basename, so the bogon will be chosen
3598 # first if we set CC to just the basename; use the full file name.
3600 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3606 if test -n "$CC"; then
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3608 $as_echo "$CC" >&6; }
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 $as_echo "no" >&6; }
3616 if test -z "$CC"; then
3617 if test -n "$ac_tool_prefix"; then
3618 for ac_prog
in cl.exe
3620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3621 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3623 $as_echo_n "checking for $ac_word... " >&6; }
3624 if ${ac_cv_prog_CC+:} false
; then :
3625 $as_echo_n "(cached) " >&6
3627 if test -n "$CC"; then
3628 ac_cv_prog_CC
="$CC" # Let the user override the test.
3630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3634 test -z "$as_dir" && as_dir
=.
3635 for ac_exec_ext
in '' $ac_executable_extensions; do
3636 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3637 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 if test -n "$CC"; then
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3650 $as_echo "$CC" >&6; }
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653 $as_echo "no" >&6; }
3657 test -n "$CC" && break
3660 if test -z "$CC"; then
3662 for ac_prog
in cl.exe
3664 # Extract the first word of "$ac_prog", so it can be a program name with args.
3665 set dummy
$ac_prog; ac_word
=$2
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3667 $as_echo_n "checking for $ac_word... " >&6; }
3668 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3669 $as_echo_n "(cached) " >&6
3671 if test -n "$ac_ct_CC"; then
3672 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3678 test -z "$as_dir" && as_dir
=.
3679 for ac_exec_ext
in '' $ac_executable_extensions; do
3680 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3681 ac_cv_prog_ac_ct_CC
="$ac_prog"
3682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3692 if test -n "$ac_ct_CC"; then
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3694 $as_echo "$ac_ct_CC" >&6; }
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697 $as_echo "no" >&6; }
3701 test -n "$ac_ct_CC" && break
3704 if test "x$ac_ct_CC" = x
; then
3707 case $cross_compiling:$ac_tool_warned in
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3711 ac_tool_warned
=yes ;;
3720 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3722 as_fn_error $?
"no acceptable C compiler found in \$PATH
3723 See \`config.log' for more details" "$LINENO" 5; }
3725 # Provide some information about the compiler.
3726 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3729 for ac_option
in --version -v -V -qversion; do
3730 { { ac_try
="$ac_compiler $ac_option >&5"
3732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3736 $as_echo "$ac_try_echo"; } >&5
3737 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3739 if test -s conftest.err; then
3741 ... rest of stderr output deleted ...
3742 10q' conftest.err >conftest.er1
3743 cat conftest.er1 >&5
3745 rm -f conftest.er1 conftest.err
3746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3747 test $ac_status = 0; }
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3761 ac_clean_files_save=$ac_clean_files
3762 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3763 # Try to create an executable without -o first, disregard a.out.
3764 # It will help us diagnose broken compilers, and finding out an intuition
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3767 $as_echo_n "checking whether the C compiler works... " >&6; }
3768 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3770 # The possible output files:
3771 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3774 for ac_file in $ac_files
3777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3778 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3783 if { { ac_try="$ac_link_default"
3785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3786 *) ac_try_echo
=$ac_try;;
3788 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3789 $as_echo "$ac_try_echo"; } >&5
3790 (eval "$ac_link_default") 2>&5
3792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3793 test $ac_status = 0; }; then :
3794 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3795 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3796 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3797 # so that the user can short-circuit this test for compilers unknown to
3799 for ac_file
in $ac_files ''
3801 test -f "$ac_file" ||
continue
3803 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3806 # We found the default executable, but exeext='' is most
3810 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3812 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3814 # We set ac_cv_exeext here because the later test for it is not
3815 # safe: cross compilers may not add the suffix if given an `-o'
3816 # argument, so we may need to know it at that point already.
3817 # Even if this section looks crufty: it has the advantage of
3824 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3829 if test -z "$ac_file"; then :
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831 $as_echo "no" >&6; }
3832 $as_echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.
$ac_ext >&5
3835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3837 as_fn_error
77 "C compiler cannot create executables
3838 See \`config.log' for more details" "$LINENO" 5; }
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3841 $as_echo "yes" >&6; }
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3844 $as_echo_n "checking for C compiler default output file name... " >&6; }
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3846 $as_echo "$ac_file" >&6; }
3847 ac_exeext
=$ac_cv_exeext
3849 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3850 ac_clean_files
=$ac_clean_files_save
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3852 $as_echo_n "checking for suffix of executables... " >&6; }
3853 if { { ac_try
="$ac_link"
3855 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859 $as_echo "$ac_try_echo"; } >&5
3860 (eval "$ac_link") 2>&5
3862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3863 test $ac_status = 0; }; then :
3864 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3865 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3866 # work properly (i.e., refer to `conftest.exe'), while it won't with
3868 for ac_file
in conftest.exe conftest conftest.
*; do
3869 test -f "$ac_file" ||
continue
3871 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3872 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3880 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3881 See \`config.log' for more details" "$LINENO" 5; }
3883 rm -f conftest conftest
$ac_cv_exeext
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3885 $as_echo "$ac_cv_exeext" >&6; }
3887 rm -f conftest.
$ac_ext
3888 EXEEXT
=$ac_cv_exeext
3890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3896 FILE *f = fopen ("conftest.out", "w");
3897 return ferror (f) || fclose (f) != 0;
3903 ac_clean_files
="$ac_clean_files conftest.out"
3904 # Check that the compiler produces executables we can run. If not, either
3905 # the compiler is broken, or we cross compile.
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3907 $as_echo_n "checking whether we are cross compiling... " >&6; }
3908 if test "$cross_compiling" != yes; then
3909 { { ac_try
="$ac_link"
3911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915 $as_echo "$ac_try_echo"; } >&5
3916 (eval "$ac_link") 2>&5
3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919 test $ac_status = 0; }
3920 if { ac_try='./conftest$ac_cv_exeext'
3921 { { case "(($ac_try" in
3922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3923 *) ac_try_echo
=$ac_try;;
3925 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3926 $as_echo "$ac_try_echo"; } >&5
3927 (eval "$ac_try") 2>&5
3929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3930 test $ac_status = 0; }; }; then
3933 if test "$cross_compiling" = maybe
; then
3936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3938 as_fn_error $?
"cannot run C compiled programs.
3939 If you meant to cross compile, use \`--host'.
3940 See \`config.log' for more details" "$LINENO" 5; }
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3945 $as_echo "$cross_compiling" >&6; }
3947 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3948 ac_clean_files
=$ac_clean_files_save
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3950 $as_echo_n "checking for suffix of object files... " >&6; }
3951 if ${ac_cv_objext+:} false
; then :
3952 $as_echo_n "(cached) " >&6
3954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3965 rm -f conftest.o conftest.obj
3966 if { { ac_try
="$ac_compile"
3968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3972 $as_echo "$ac_try_echo"; } >&5
3973 (eval "$ac_compile") 2>&5
3975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3976 test $ac_status = 0; }; then :
3977 for ac_file in conftest.o conftest.obj conftest.*; do
3978 test -f "$ac_file" || continue;
3980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3981 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3986 $as_echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3991 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3992 See \
`config.log' for more details" "$LINENO" 5; }
3994 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3997 $as_echo "$ac_cv_objext" >&6; }
3998 OBJEXT=$ac_cv_objext
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4001 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4002 if ${ac_cv_c_compiler_gnu+:} false; then :
4003 $as_echo_n "(cached) " >&6
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4019 if ac_fn_c_try_compile "$LINENO"; then :
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4029 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4030 if test $ac_compiler_gnu = yes; then
4035 ac_test_CFLAGS=${CFLAGS+set}
4036 ac_save_CFLAGS=$CFLAGS
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4038 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4039 if ${ac_cv_prog_cc_g+:} false; then :
4040 $as_echo_n "(cached) " >&6
4042 ac_save_c_werror_flag=$ac_c_werror_flag
4043 ac_c_werror_flag=yes
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4057 if ac_fn_c_try_compile "$LINENO"; then :
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4072 if ac_fn_c_try_compile "$LINENO"; then :
4075 ac_c_werror_flag=$ac_save_c_werror_flag
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4088 if ac_fn_c_try_compile "$LINENO"; then :
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 ac_c_werror_flag=$ac_save_c_werror_flag
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4099 $as_echo "$ac_cv_prog_cc_g" >&6; }
4100 if test "$ac_test_CFLAGS" = set; then
4101 CFLAGS=$ac_save_CFLAGS
4102 elif test $ac_cv_prog_cc_g = yes; then
4103 if test "$GCC" = yes; then
4109 if test "$GCC" = yes; then
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4116 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4117 if ${ac_cv_prog_cc_c89+:} false; then :
4118 $as_echo_n "(cached) " >&6
4120 ac_cv_prog_cc_c89=no
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4127 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4128 struct buf { int x; };
4129 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4130 static char *e (p, i)
4136 static char *f (char * (*g) (char **, int), char **p, ...)
4141 s = g (p, va_arg (v,int));
4146 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4147 function prototypes and stuff, but not '\xHH' hex character constants.
4148 These don't provoke an error unfortunately, instead are silently treated
4149 as 'x'. The following induces an error, until -std is added to get
4150 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4151 array size at least. It's necessary to write '\x00'==0 to get something
4152 that's true only with -std. */
4153 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4155 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4156 inside strings and character constants. */
4158 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4160 int test (int i, double x);
4161 struct s1 {int (*f) (int a);};
4162 struct s2 {int (*f) (double a);};
4163 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4169 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4174 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4175 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4177 CC="$ac_save_CC $ac_arg"
4178 if ac_fn_c_try_compile "$LINENO"; then :
4179 ac_cv_prog_cc_c89=$ac_arg
4181 rm -f core conftest.err conftest.$ac_objext
4182 test "x$ac_cv_prog_cc_c89" != "xno" && break
4184 rm -f conftest.$ac_ext
4189 case "x$ac_cv_prog_cc_c89" in
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4192 $as_echo "none needed" >&6; } ;;
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4195 $as_echo "unsupported" >&6; } ;;
4197 CC="$CC $ac_cv_prog_cc_c89"
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4199 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4201 if test "x$ac_cv_prog_cc_c89" != xno; then :
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4217 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4218 if ${am_cv_prog_cc_c_o+:} false; then :
4219 $as_echo_n "(cached) " >&6
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4232 # Make sure it works both with $CC and with simple cc.
4233 # Following AC_PROG_CC_C_O, we do the test twice because some
4234 # compilers refuse to overwrite an existing .o file with -o,
4235 # though they will create one.
4236 am_cv_prog_cc_c_o=yes
4238 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4239 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } \
4243 && test -f conftest2.$ac_objext; then
4246 am_cv_prog_cc_c_o=no
4250 rm -f core conftest*
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4254 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4255 if test "$am_cv_prog_cc_c_o" != yes; then
4256 # Losing compiler, so override with the script.
4257 # FIXME: It is wrong to rewrite CC.
4258 # But if we don't then we get into trouble of one sort or another.
4259 # A longer-term fix would be to have automake use am__CC in this case,
4260 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4261 CC="$am_aux_dir/compile $CC"
4264 ac_cpp='$CPP $CPPFLAGS'
4265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269 DEPDIR="${am__leading_dot}deps"
4271 ac_config_commands="$ac_config_commands depfiles"
4274 am_make=${MAKE-make}
4275 cat > confinc << 'END'
4277 @echo this is the am__doit target
4280 # If we don't find an include directive, just comment out the code.
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4282 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4286 # First try GNU make style include.
4287 echo "include confinc" > confmf
4288 # Ignore all kinds of additional output from 'make'.
4289 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4290 *the\ am__doit\ target*)
4296 # Now try BSD make style include.
4297 if test "$am__include" = "#"; then
4298 echo '.include "confinc"' > confmf
4299 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4300 *the\ am__doit\ target*)
4301 am__include=.include
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4310 $as_echo "$_am_result" >&6; }
4311 rm -f confinc confmf
4313 # Check whether --enable-dependency-tracking was given.
4314 if test "${enable_dependency_tracking+set}" = set; then :
4315 enableval=$enable_dependency_tracking;
4318 if test "x$enable_dependency_tracking" != xno; then
4319 am_depcomp="$ac_aux_dir/depcomp"
4323 if test "x$enable_dependency_tracking" != xno; then
4333 depcc="$CC" am_compiler_list=
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4336 $as_echo_n "checking dependency style of $depcc... " >&6; }
4337 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4338 $as_echo_n "(cached) " >&6
4340 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4341 # We make a subdir and do the tests there. Otherwise we can end up
4342 # making bogus files that we don't know about and never remove. For
4343 # instance it was reported that on HP-UX the gcc test will end up
4344 # making a dummy file named 'D' -- because '-MD' means "put the output
4348 # Copy depcomp to subdir because otherwise we won't find it if we're
4349 # using a relative directory.
4350 cp "$am_depcomp" conftest.dir
4352 # We will build objects and dependencies in a subdirectory because
4353 # it helps to detect inapplicable dependency modes. For instance
4354 # both Tru64's cc and ICC support -MD to output dependencies as a
4355 # side effect of compilation, but ICC will put the dependencies in
4356 # the current directory while Tru64 will put them in the object
4360 am_cv_CC_dependencies_compiler_type=none
4361 if test "$am_compiler_list" = ""; then
4362 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4365 case " $depcc " in #(
4366 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4369 for depmode in $am_compiler_list; do
4370 # Setup a source with many dependencies, because some compilers
4371 # like to wrap large dependency lists on column 80 (with \), and
4372 # we should not choose a depcomp mode which is confused by this.
4374 # We need to recreate these files for each test, as the compiler may
4375 # overwrite some of them when testing with obscure command lines.
4376 # This happens at least with the AIX C compiler.
4378 for i in 1 2 3 4 5 6; do
4379 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4380 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4381 # Solaris 10 /bin/sh.
4382 echo '/* dummy */' > sub/conftst$i.h
4384 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4386 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4387 # mode. It turns out that the SunPro C++ compiler does not properly
4388 # handle '-M -o', and we need to detect this. Also, some Intel
4389 # versions had trouble with output in subdirs.
4390 am__obj=sub/conftest.${OBJEXT-o}
4391 am__minus_obj="-o $am__obj"
4394 # This depmode causes a compiler race in universal mode.
4395 test "$am__universal" = false || continue
4398 # After this tag, mechanisms are not by side-effect, so they'll
4399 # only be used when explicitly requested.
4400 if test "x$enable_dependency_tracking" = xyes; then
4406 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4407 # This compiler won't grok '-c -o', but also, the minuso test has
4408 # not run yet. These depmodes are late enough in the game, and
4409 # so weak that their functioning should not be impacted.
4410 am__obj=conftest.${OBJEXT-o}
4415 if depmode=$depmode \
4416 source=sub/conftest.c object=$am__obj \
4417 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4418 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4419 >/dev/null 2>conftest.err &&
4420 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4421 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4422 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4423 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4424 # icc doesn't choke on unknown options, it will just issue warnings
4425 # or remarks (even with -Werror). So we grep stderr for any message
4426 # that says an option was ignored or not supported.
4427 # When given -MP, icc 7.0 and 7.1 complain thusly:
4428 # icc: Command line warning: ignoring option '-M'; no argument required
4429 # The diagnosis changed in icc 8.0:
4430 # icc: Command line remark: option '-MP' not supported
4431 if (grep 'ignoring option' conftest.err ||
4432 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4433 am_cv_CC_dependencies_compiler_type=$depmode
4442 am_cv_CC_dependencies_compiler_type=none
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4447 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4448 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4451 test "x$enable_dependency_tracking" != xno \
4452 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4454 am__fastdepCC_FALSE='#'
4456 am__fastdepCC_TRUE='#'
4457 am__fastdepCC_FALSE=
4462 # Suppress warnings about --datarootdir
4465 # If we have gcc, and AC_PROG_CC changed the flags, then we know the
4466 # user did not specify any flags. Add warnings in this case.
4467 if test "$GCC" = "yes"; then
4468 if test "$CFLAGS" != "$SAVE_CFLAGS"; then
4469 STD_CWARNINGS="$STD_CWARNINGS -Wall -Werror -fno-strict-aliasing"
4473 # We can have some flags to pass to bind configure
4475 if test "$cross_compiling" = "yes"; then
4476 BINDCONFIG="--host=$host"
4478 # Pass CFLAGS and co. $ac_configure_args looks like "'arg1' 'arg2' ..."
4479 # and as there can be a space inside an argument some magic is required.
4480 # This sets $1 ... $N to my_configure_args, arg1 ... argN
4481 eval "set my_configure_args $ac_configure_args"
4482 # remove my_configure_args, i.e., the guard against empty $ac_configure_args
4484 # iterate on arguments and copying 'arg' when it begins by an upper case
4488 [A-Z]*) BINDCONFIG="$BINDCONFIG '$a'" ;;
4492 if test "$cross_compiling" = "yes"; then
4493 CROSS_COMPILING_TRUE=
4494 CROSS_COMPILING_FALSE='#'
4496 CROSS_COMPILING_TRUE='#'
4497 CROSS_COMPILING_FALSE=
4501 # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
4502 # parts of the IPv6 Advanced Socket API as a result. This is stupid
4503 # as it breaks how the two halves (Basic and Advanced) of the IPv6
4504 # Socket API were designed to be used but we have to live with it.
4505 # Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
4508 ac_cpp='$CPP $CPPFLAGS'
4509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4513 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4514 # On Suns, sometimes $CPP names a directory.
4515 if test -n "$CPP" && test -d "$CPP"; then
4518 if test -z "$CPP"; then
4519 if ${ac_cv_prog_CPP+:} false; then :
4520 $as_echo_n "(cached) " >&6
4522 # Double quotes because CPP needs to be expanded
4523 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4526 for ac_c_preproc_warn_flag in '' yes
4528 # Use a header file that comes with gcc, so configuring glibc
4529 # with a fresh cross-compiler works.
4530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4531 # <limits.h> exists even on freestanding compilers.
4532 # On the NeXT, cc -E runs the code through the compiler's parser,
4533 # not just through cpp. "Syntax error" is here to catch this case.
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4537 # include <limits.h>
4539 # include <assert.h>
4543 if ac_fn_c_try_cpp "$LINENO"; then :
4546 # Broken: fails on valid input.
4549 rm -f conftest.err conftest.i conftest.$ac_ext
4551 # OK, works on sane cases. Now check whether nonexistent headers
4552 # can be detected and how.
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4555 #include <ac_nonexistent.h>
4557 if ac_fn_c_try_cpp "$LINENO"; then :
4558 # Broken: success on invalid input.
4561 # Passes both tests.
4565 rm -f conftest.err conftest.i conftest.$ac_ext
4568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4569 rm -f conftest.i conftest.err conftest.
$ac_ext
4570 if $ac_preproc_ok; then :
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4583 $as_echo "$CPP" >&6; }
4585 for ac_c_preproc_warn_flag
in '' yes
4587 # Use a header file that comes with gcc, so configuring glibc
4588 # with a fresh cross-compiler works.
4589 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4590 # <limits.h> exists even on freestanding compilers.
4591 # On the NeXT, cc -E runs the code through the compiler's parser,
4592 # not just through cpp. "Syntax error" is here to catch this case.
4593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4596 # include <limits.h>
4598 # include <assert.h>
4602 if ac_fn_c_try_cpp
"$LINENO"; then :
4605 # Broken: fails on valid input.
4608 rm -f conftest.err conftest.i conftest.
$ac_ext
4610 # OK, works on sane cases. Now check whether nonexistent headers
4611 # can be detected and how.
4612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4614 #include <ac_nonexistent.h>
4616 if ac_fn_c_try_cpp
"$LINENO"; then :
4617 # Broken: success on invalid input.
4620 # Passes both tests.
4624 rm -f conftest.err conftest.i conftest.
$ac_ext
4627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4628 rm -f conftest.i conftest.err conftest.
$ac_ext
4629 if $ac_preproc_ok; then :
4632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4634 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4635 See \`config.log' for more details" "$LINENO" 5; }
4639 ac_cpp
='$CPP $CPPFLAGS'
4640 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4641 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4642 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4646 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4647 if ${ac_cv_path_GREP+:} false
; then :
4648 $as_echo_n "(cached) " >&6
4650 if test -z "$GREP"; then
4651 ac_path_GREP_found
=false
4652 # Loop through the user's path and test for each of PROGNAME-LIST
4653 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4654 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4657 test -z "$as_dir" && as_dir
=.
4658 for ac_prog
in grep ggrep
; do
4659 for ac_exec_ext
in '' $ac_executable_extensions; do
4660 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4661 as_fn_executable_p
"$ac_path_GREP" ||
continue
4662 # Check for GNU ac_path_GREP and select it if it is found.
4663 # Check for GNU $ac_path_GREP
4664 case `"$ac_path_GREP" --version 2>&1` in
4666 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4669 $as_echo_n 0123456789 >"conftest.in"
4672 cat "conftest.in" "conftest.in" >"conftest.tmp"
4673 mv "conftest.tmp" "conftest.in"
4674 cp "conftest.in" "conftest.nl"
4675 $as_echo 'GREP' >> "conftest.nl"
4676 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4677 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4678 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4679 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4680 # Best one so far, save it but keep looking for a better one
4681 ac_cv_path_GREP
="$ac_path_GREP"
4682 ac_path_GREP_max
=$ac_count
4684 # 10*(2^10) chars as input seems more than enough
4685 test $ac_count -gt 10 && break
4687 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4690 $ac_path_GREP_found && break 3
4695 if test -z "$ac_cv_path_GREP"; then
4696 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4699 ac_cv_path_GREP
=$GREP
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4704 $as_echo "$ac_cv_path_GREP" >&6; }
4705 GREP
="$ac_cv_path_GREP"
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4709 $as_echo_n "checking for egrep... " >&6; }
4710 if ${ac_cv_path_EGREP+:} false
; then :
4711 $as_echo_n "(cached) " >&6
4713 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4714 then ac_cv_path_EGREP
="$GREP -E"
4716 if test -z "$EGREP"; then
4717 ac_path_EGREP_found
=false
4718 # Loop through the user's path and test for each of PROGNAME-LIST
4719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4720 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4723 test -z "$as_dir" && as_dir
=.
4724 for ac_prog
in egrep; do
4725 for ac_exec_ext
in '' $ac_executable_extensions; do
4726 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4727 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4728 # Check for GNU ac_path_EGREP and select it if it is found.
4729 # Check for GNU $ac_path_EGREP
4730 case `"$ac_path_EGREP" --version 2>&1` in
4732 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4735 $as_echo_n 0123456789 >"conftest.in"
4738 cat "conftest.in" "conftest.in" >"conftest.tmp"
4739 mv "conftest.tmp" "conftest.in"
4740 cp "conftest.in" "conftest.nl"
4741 $as_echo 'EGREP' >> "conftest.nl"
4742 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4743 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4744 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4745 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4746 # Best one so far, save it but keep looking for a better one
4747 ac_cv_path_EGREP
="$ac_path_EGREP"
4748 ac_path_EGREP_max
=$ac_count
4750 # 10*(2^10) chars as input seems more than enough
4751 test $ac_count -gt 10 && break
4753 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4756 $ac_path_EGREP_found && break 3
4761 if test -z "$ac_cv_path_EGREP"; then
4762 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4765 ac_cv_path_EGREP
=$EGREP
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4771 $as_echo "$ac_cv_path_EGREP" >&6; }
4772 EGREP
="$ac_cv_path_EGREP"
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4776 $as_echo_n "checking for ANSI C header files... " >&6; }
4777 if ${ac_cv_header_stdc+:} false
; then :
4778 $as_echo_n "(cached) " >&6
4780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h. */
4795 if ac_fn_c_try_compile
"$LINENO"; then :
4796 ac_cv_header_stdc
=yes
4798 ac_cv_header_stdc
=no
4800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4802 if test $ac_cv_header_stdc = yes; then
4803 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4805 /* end confdefs.h. */
4809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4810 $EGREP "memchr" >/dev
/null
2>&1; then :
4813 ac_cv_header_stdc
=no
4819 if test $ac_cv_header_stdc = yes; then
4820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4822 /* end confdefs.h. */
4826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4827 $EGREP "free" >/dev
/null
2>&1; then :
4830 ac_cv_header_stdc
=no
4836 if test $ac_cv_header_stdc = yes; then
4837 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4838 if test "$cross_compiling" = yes; then :
4841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h. */
4845 #if ((' ' & 0x0FF) == 0x020)
4846 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4847 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4849 # define ISLOWER(c) \
4850 (('a' <= (c) && (c) <= 'i') \
4851 || ('j' <= (c) && (c) <= 'r') \
4852 || ('s' <= (c) && (c) <= 'z'))
4853 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4856 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4861 for (i = 0; i < 256; i++)
4862 if (XOR (islower (i), ISLOWER (i))
4863 || toupper (i) != TOUPPER (i))
4868 if ac_fn_c_try_run
"$LINENO"; then :
4871 ac_cv_header_stdc
=no
4873 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4874 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4880 $as_echo "$ac_cv_header_stdc" >&6; }
4881 if test $ac_cv_header_stdc = yes; then
4883 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4887 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4888 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4889 inttypes.h stdint.h unistd.h
4891 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4892 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4894 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4895 cat >>confdefs.h
<<_ACEOF
4896 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4905 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4906 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4913 if test "$MINIX" = yes; then
4915 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4918 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4921 $as_echo "#define _MINIX 1" >>confdefs.h
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4927 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4928 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4929 $as_echo_n "(cached) " >&6
4931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4934 # define __EXTENSIONS__ 1
4935 $ac_includes_default
4944 if ac_fn_c_try_compile
"$LINENO"; then :
4945 ac_cv_safe_to_define___extensions__
=yes
4947 ac_cv_safe_to_define___extensions__
=no
4949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4952 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4953 test $ac_cv_safe_to_define___extensions__ = yes &&
4954 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4956 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4958 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4960 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4962 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4966 if test -n "$ac_tool_prefix"; then
4967 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4968 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970 $as_echo_n "checking for $ac_word... " >&6; }
4971 if ${ac_cv_prog_RANLIB+:} false
; then :
4972 $as_echo_n "(cached) " >&6
4974 if test -n "$RANLIB"; then
4975 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4977 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4981 test -z "$as_dir" && as_dir
=.
4982 for ac_exec_ext
in '' $ac_executable_extensions; do
4983 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4984 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 RANLIB
=$ac_cv_prog_RANLIB
4995 if test -n "$RANLIB"; then
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4997 $as_echo "$RANLIB" >&6; }
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5005 if test -z "$ac_cv_prog_RANLIB"; then
5006 ac_ct_RANLIB
=$RANLIB
5007 # Extract the first word of "ranlib", so it can be a program name with args.
5008 set dummy ranlib
; ac_word
=$2
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010 $as_echo_n "checking for $ac_word... " >&6; }
5011 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5012 $as_echo_n "(cached) " >&6
5014 if test -n "$ac_ct_RANLIB"; then
5015 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5017 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5021 test -z "$as_dir" && as_dir
=.
5022 for ac_exec_ext
in '' $ac_executable_extensions; do
5023 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5024 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5035 if test -n "$ac_ct_RANLIB"; then
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5037 $as_echo "$ac_ct_RANLIB" >&6; }
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 $as_echo "no" >&6; }
5043 if test "x$ac_ct_RANLIB" = x
; then
5046 case $cross_compiling:$ac_tool_warned in
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5050 ac_tool_warned
=yes ;;
5052 RANLIB
=$ac_ct_RANLIB
5055 RANLIB
="$ac_cv_prog_RANLIB"
5059 # Extract the first word of "ar", so it can be a program name with args.
5060 set dummy
ar; ac_word
=$2
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5062 $as_echo_n "checking for $ac_word... " >&6; }
5063 if ${ac_cv_path_AR+:} false
; then :
5064 $as_echo_n "(cached) " >&6
5068 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
5071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5075 test -z "$as_dir" && as_dir
=.
5076 for ac_exec_ext
in '' $ac_executable_extensions; do
5077 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 if test -n "$AR"; then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5092 $as_echo "$AR" >&6; }
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5101 if test "X$AR" = "X"; then
5103 ar program not found. Please fix your PATH to include the directory in
5104 which ar resides, or set AR in the environment with the full path to ar." "$LINENO" 5
5107 ac_config_headers
="$ac_config_headers includes/config.h"
5110 # we sometimes need to know byte order for building packets
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5112 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5113 if ${ac_cv_c_bigendian+:} false
; then :
5114 $as_echo_n "(cached) " >&6
5116 ac_cv_c_bigendian
=unknown
5117 # See if we're dealing with a universal compiler.
5118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5120 #ifndef __APPLE_CC__
5121 not a universal capable compiler
5126 if ac_fn_c_try_compile
"$LINENO"; then :
5128 # Check for potential -arch flags. It is not universal unless
5129 # there are at least two -arch flags with different values.
5132 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5133 if test -n "$ac_prev"; then
5135 i?
86 | x86_64 | ppc | ppc64
)
5136 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
5139 ac_cv_c_bigendian
=universal
5145 elif test "x$ac_word" = "x-arch"; then
5150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5151 if test $ac_cv_c_bigendian = unknown
; then
5152 # See if sys/param.h defines the BYTE_ORDER macro.
5153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5155 #include <sys/types.h>
5156 #include <sys/param.h>
5161 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5162 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5171 if ac_fn_c_try_compile
"$LINENO"; then :
5172 # It does; now see whether it defined to BIG_ENDIAN or not.
5173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5175 #include <sys/types.h>
5176 #include <sys/param.h>
5181 #if BYTE_ORDER != BIG_ENDIAN
5189 if ac_fn_c_try_compile
"$LINENO"; then :
5190 ac_cv_c_bigendian
=yes
5192 ac_cv_c_bigendian
=no
5194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5198 if test $ac_cv_c_bigendian = unknown
; then
5199 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5207 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5215 if ac_fn_c_try_compile
"$LINENO"; then :
5216 # It does; now see whether it defined to _BIG_ENDIAN or not.
5217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5232 if ac_fn_c_try_compile
"$LINENO"; then :
5233 ac_cv_c_bigendian
=yes
5235 ac_cv_c_bigendian
=no
5237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5241 if test $ac_cv_c_bigendian = unknown
; then
5242 # Compile a test program.
5243 if test "$cross_compiling" = yes; then :
5244 # Try to guess by grepping values from an object file.
5245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h. */
5247 short int ascii_mm[] =
5248 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5249 short int ascii_ii[] =
5250 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5251 int use_ascii (int i) {
5252 return ascii_mm[i] + ascii_ii[i];
5254 short int ebcdic_ii[] =
5255 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5256 short int ebcdic_mm[] =
5257 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5258 int use_ebcdic (int i) {
5259 return ebcdic_mm[i] + ebcdic_ii[i];
5266 return use_ascii (foo) == use_ebcdic (foo);
5271 if ac_fn_c_try_compile
"$LINENO"; then :
5272 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5273 ac_cv_c_bigendian
=yes
5275 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5276 if test "$ac_cv_c_bigendian" = unknown
; then
5277 ac_cv_c_bigendian
=no
5279 # finding both strings is unlikely to happen, but who knows?
5280 ac_cv_c_bigendian
=unknown
5284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5288 $ac_includes_default
5293 /* Are we little or big endian? From Harbison&Steele. */
5297 char c[sizeof (long int)];
5300 return u.c[sizeof (long int) - 1] == 1;
5306 if ac_fn_c_try_run
"$LINENO"; then :
5307 ac_cv_c_bigendian
=no
5309 ac_cv_c_bigendian
=yes
5311 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5312 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5318 $as_echo "$ac_cv_c_bigendian" >&6; }
5319 case $ac_cv_c_bigendian in #(
5321 byte_order
=BIG_ENDIAN
5324 byte_order
=LITTLE_ENDIAN
5328 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5332 as_fn_error $?
"unknown endianness
5333 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5337 cat >>confdefs.h
<<_ACEOF
5338 #define DHCP_BYTE_ORDER $byte_order
5342 # Optional compile-time DEBUGging.
5343 # Check whether --enable-debug was given.
5344 if test "${enable_debug+set}" = set; then :
5345 enableval
=$enable_debug; case "${enableval}" in
5346 yes) enable_debug
=yes
5348 $as_echo "#define DEBUG 1" >>confdefs.h
5350 # Just override CFLAGS totally to remove optimization.
5352 no
) enable_debug
=no
;;
5353 *) as_fn_error $?
"bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
5360 # XXX: there are actually quite a lot more DEBUG_ features we could enable,
5361 # but I don't want to pollute the --help space.
5363 #/* #define DEBUG_TOKENS */
5364 #/* #define DEBUG_PACKET */
5365 #/* #define DEBUG_EXPRESSIONS */
5366 #/* #define DEBUG_FIND_LEASE */
5367 #/* #define DEBUG_EXPRESSION_PARSE */
5368 #/* #define DEBUG_CLASS_MATCHING */
5369 #/* #define DEBUG_MEMORY_LEAKAGE */
5370 #/* #define DEBUG_MALLOC_POOL */
5371 #/* #define DEBUG_LEASE_STATE_TRANSITIONS */
5372 #/* #define DEBUG_RC_HISTORY */
5373 #/* #define DEBUG_RC_HISTORY_EXHAUSTIVELY */
5374 #/* #define RC_HISTORY_MAX 10240 */
5375 #/* #define POINTER_DEBUG */
5376 #/* #define DEBUG_FAILOVER_MESSAGES */
5377 #/* #define DEBUG_FAILOVER_TIMING */
5378 #/* #define DEBUG_DUMP_ALL_LEASES */
5380 # Failover optional compile-time feature.
5381 # Check whether --enable-failover was given.
5382 if test "${enable_failover+set}" = set; then :
5383 enableval
=$enable_failover;
5386 # Failover is on by default, so define if it is not explicitly disabled.
5387 if test "$enable_failover" != "no"; then
5388 enable_failover
="yes"
5390 $as_echo "#define FAILOVER_PROTOCOL 1" >>confdefs.h
5394 # execute() support.
5395 # Check whether --enable-execute was given.
5396 if test "${enable_execute+set}" = set; then :
5397 enableval
=$enable_execute;
5400 # execute() is on by default, so define if it is not explicitly disabled.
5401 if test "$enable_execute" != "no" ; then
5402 enable_execute
="yes"
5404 $as_echo "#define ENABLE_EXECUTE 1" >>confdefs.h
5408 # Server tracing support.
5409 # Check whether --enable-tracing was given.
5410 if test "${enable_tracing+set}" = set; then :
5411 enableval
=$enable_tracing;
5414 # tracing is on by default, so define if it is not explicitly disabled.
5415 if test "$enable_tracing" != "no" ; then
5417 $as_echo "#define TRACING 1" >>confdefs.h
5421 # Delayed-ack feature support (experimental).
5422 # Check whether --enable-delayed_ack was given.
5423 if test "${enable_delayed_ack+set}" = set; then :
5424 enableval
=$enable_delayed_ack;
5427 if test "$enable_delayed_ack" = "yes"; then
5429 $as_echo "#define DELAYED_ACK 1" >>confdefs.h
5432 enable_delayed_ack
="no"
5435 # DHCPv6 optional compile-time feature.
5436 # Check whether --enable-dhcpv6 was given.
5437 if test "${enable_dhcpv6+set}" = set; then :
5438 enableval
=$enable_dhcpv6;
5441 # DHCPv6 is on by default, so define if it is not explicitly disabled.
5442 if test "$enable_dhcpv6" != "no"; then
5445 $as_echo "#define DHCPv6 1" >>confdefs.h
5449 # DHCPv4o6 optional compile-time feature.
5450 # Check whether --enable-dhcpv4o6 was given.
5451 if test "${enable_dhcpv4o6+set}" = set; then :
5452 enableval
=$enable_dhcpv4o6;
5455 # DHCPv4o6 is off by default, so define if it is explicitly enabled.
5456 if test "$enable_dhcpv4o6" = "yes"; then
5457 # DHCPv4o6 requires DHCPv6
5458 if test "$enable_dhcpv6" = "no"; then
5459 as_fn_error $?
"dhcpv4o6 requires dhcpv6" "$LINENO" 5
5461 # DHCPv4o6 is not yet compatible with delayed-ack
5462 if test "$enable_delayed_ack" = "yes"; then
5463 as_fn_error $?
"dhcpv4o6 is not compatible with delayed-ack" "$LINENO" 5
5466 $as_echo "#define DHCP4o6 1" >>confdefs.h
5470 # PARANOIA is off by default (until we can test it with all features)
5471 # Check whether --enable-paranoia was given.
5472 if test "${enable_paranoia+set}" = set; then :
5473 enableval
=$enable_paranoia;
5476 # Check whether --enable-early_chroot was given.
5477 if test "${enable_early_chroot+set}" = set; then :
5478 enableval
=$enable_early_chroot;
5481 # If someone enables early chroot, but does not enable paranoia, do so for
5483 if test "$enable_paranoia" != "yes" && \
5484 test "$enable_early_chroot" = "yes" ; then
5485 enable_paranoia
="yes"
5488 if test "$enable_paranoia" = "yes" ; then
5490 $as_echo "#define PARANOIA 1" >>confdefs.h
5493 if test "$enable_early_chroot" = "yes" ; then
5495 $as_echo "#define EARLY_CHROOT 1" >>confdefs.h
5499 # Check whether --enable-ipv4_pktinfo was given.
5500 if test "${enable_ipv4_pktinfo+set}" = set; then :
5501 enableval
=$enable_ipv4_pktinfo;
5505 if test "$enable_ipv4_pktinfo" = "yes"; then
5507 $as_echo "#define USE_V4_PKTINFO 1" >>confdefs.h
5511 # Check whether --enable-use_sockets was given.
5512 if test "${enable_use_sockets+set}" = set; then :
5513 enableval
=$enable_use_sockets;
5517 if test "$enable_use_sockets" = "yes"; then
5519 $as_echo "#define USE_SOCKETS 1" >>confdefs.h
5523 # Try to hnadle incorrect byte order for secs field
5524 # This is off by default
5525 # Check whether --enable-secs_byteorder was given.
5526 if test "${enable_secs_byteorder+set}" = set; then :
5527 enableval
=$enable_secs_byteorder;
5531 if test "$enable_secs_byteorder" = "yes" ; then
5533 $as_echo "#define SECS_BYTEORDER 1" >>confdefs.h
5537 # Include the PID in the log messages. This is useful when there may
5538 # be multiple instances of a program.
5539 # This is off by default
5540 # Check whether --enable-log_pid was given.
5541 if test "${enable_log_pid+set}" = set; then :
5542 enableval
=$enable_log_pid;
5545 if test "$enable_log_pid" = "yes" ; then
5547 $as_echo "#define USE_LOG_PID 1" >>confdefs.h
5551 # Allow for binary search when inserting v4 leases into queues
5552 # Check whether --enable-binary_leases was given.
5553 if test "${enable_binary_leases+set}" = set; then :
5554 enableval
=$enable_binary_leases;
5557 # binary_leases is off by default.
5558 if test "$enable_binary_leases" = "yes"; then
5560 $as_echo "#define BINARY_LEASES 1" >>confdefs.h
5563 enable_binary_leases
="no"
5568 DISTCHECK_ATF_CONFIGURE_FLAG
=
5571 # Check whether --with-atf was given.
5572 if test "${with_atf+set}" = set; then :
5573 withval
=$with_atf; atf_path
="$withval"
5576 if test "$atf_path" = "bind"; then
5584 if test "$atf_path" = "bind" ; then
5585 DISTCHECK_ATF_CONFIGURE_FLAG
="--with-atf=bind"
5587 atf_path
="\${top_srcdir}/bind/atf"
5588 ATF_CFLAGS
="-I$atf_path/include -DUNIT_TEST"
5589 ATF_LDFLAGS
="-L$atf_path/lib -latf-c"
5590 ATF_BIN
=`cd $srcdir; pwd`/bind
/atf
/bin
5594 BINDCONFIG
="$BINDCONFIG --with-atf"
5595 elif test "$atf_path" != "no" ; then
5596 DISTCHECK_ATF_CONFIGURE_FLAG
="--with-atf=$atf_path"
5597 # Config path for pkg-config
5599 if test "$atf_path" != "yes" ; then
5600 if test -f $atf_path/lib
/pkgconfig
/atf-c.pc
; then
5601 atf_pcp
=$atf_path/lib
/pkgconfig
5602 elif test -f $atf_path/lib64
/pkgconfig
/atf-c.pc
; then
5603 atf_pcp
=$atf_path/lib64
/pkgconfig
5606 # Not specified, try some common paths
5607 atf_dirs
="/usr /usr/local /usr/pkg /opt /opt/local"
5610 if test -f $d/lib
/pkgconfig
/atf-c.pc
; then
5611 atf_pcp
=$d/lib
/pkgconfig
5613 elif test -f $d/lib64
/pkgconfig
/atf-c.pc
; then
5614 atf_pcp
=$d/lib64
/pkgconfig
5620 if test "$atf_pcp" = "" ; then
5621 as_fn_error $?
"Unable to find atf files in location specified" "$LINENO" 5
5623 # Extract the first word of "pkg-config", so it can be a program name with args.
5624 set dummy pkg-config
; ac_word
=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if ${ac_cv_prog_pkgcfg_found+:} false
; then :
5628 $as_echo_n "(cached) " >&6
5630 if test -n "$pkgcfg_found"; then
5631 ac_cv_prog_pkgcfg_found
="$pkgcfg_found" # Let the user override the test.
5633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5637 test -z "$as_dir" && as_dir
=.
5638 for ac_exec_ext
in '' $ac_executable_extensions; do
5639 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5640 ac_cv_prog_pkgcfg_found
="pkg-config"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 pkgcfg_found
=$ac_cv_prog_pkgcfg_found
5651 if test -n "$pkgcfg_found"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgcfg_found" >&5
5653 $as_echo "$pkgcfg_found" >&6; }
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5660 if test "$pkgcfg_found" = ""; then
5661 as_fn_error $?
"Could not locate ATF, pkg-config not installed" "$LINENO" 5
5663 ATF_CFLAGS
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --cflags atf-c` -DUNIT_TEST"
5664 ATF_LDFLAGS
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --libs atf-c`"
5665 if test -f $atf_pcp/atf-sh.pc
; then
5666 ATF_BIN
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --variable=exec_prefix atf-sh`/bin"
5668 # older versions don't have atf-sh, try usual place
5669 ATF_BIN
=$atf_path/bin
5672 if test ! -x $ATF_BIN/atf-run
-o ! -x $ATF_BIN/atf-report
; then
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: atf-run,atf-report not found, assuming they are in your path" >&5
5674 $as_echo "$as_me: WARNING: atf-run,atf-report not found, assuming they are in your path" >&2;}
5683 if test "$atf_pcp" != ""; then
5691 if test -z "$HAVE_ATF_TRUE"; then :
5693 $as_echo "#define HAVE_ATF 1" >>confdefs.h
5699 ### Path fun. Older versions of DHCP were installed in /usr/sbin, so we
5700 ### need to look there and potentially overwrite by default (but not if
5701 ### the user configures an alternate value). LOCALSTATEDIR is totally
5702 ### braindead. No one uses /usr/local/var/db/ nor /usr/local/var/run, and
5703 ### they would be insane for suggesting it. We need to look in /var/for
5704 ### 'db' and 'state/dhcp' for db files, and /var/run for pid files by
5707 if test "x$prefix" = xNONE
; then
5708 $as_echo_n "checking for prefix by " >&6
5709 # Extract the first word of "dhcpd", so it can be a program name with args.
5710 set dummy dhcpd
; ac_word
=$2
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712 $as_echo_n "checking for $ac_word... " >&6; }
5713 if ${ac_cv_path_ac_prefix_program+:} false
; then :
5714 $as_echo_n "(cached) " >&6
5716 case $ac_prefix_program in
5718 ac_cv_path_ac_prefix_program
="$ac_prefix_program" # Let the user override the test with a path.
5721 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5725 test -z "$as_dir" && as_dir
=.
5726 for ac_exec_ext
in '' $ac_executable_extensions; do
5727 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5728 ac_cv_path_ac_prefix_program
="$as_dir/$ac_word$ac_exec_ext"
5729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5739 ac_prefix_program
=$ac_cv_path_ac_prefix_program
5740 if test -n "$ac_prefix_program"; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
5742 $as_echo "$ac_prefix_program" >&6; }
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745 $as_echo "no" >&6; }
5749 if test -n "$ac_prefix_program"; then
5750 prefix
=`$as_dirname -- "$ac_prefix_program" ||
5751 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5752 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
5753 X"$ac_prefix_program" : 'X\(//\)$' \| \
5754 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
5755 $as_echo X"$ac_prefix_program" |
5756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5773 prefix
=`$as_dirname -- "$prefix" ||
5774 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5775 X"$prefix" : 'X\(//\)[^/]' \| \
5776 X"$prefix" : 'X\(//\)$' \| \
5777 X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
5778 $as_echo X"$prefix" |
5779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5800 # XXX - isn't there SOME WAY to default autoconf to /var instead of
5801 # /usr/local/var/no/one/has/this/please/stop/trying?
5802 case "$localstatedir" in
5808 # Allow specification of alternate state files
5810 # Check whether --with-srv-lease-file was given.
5811 if test "${with_srv_lease_file+set}" = set; then :
5812 withval
=$with_srv_lease_file;
5813 cat >>confdefs.h
<<_ACEOF
5814 #define _PATH_DHCPD_DB "$withval"
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhcpd.leases location" >&5
5821 $as_echo_n "checking for dhcpd.leases location... " >&6; }
5822 if [ "x$with_srv_lease_file" = "x" ] ; then
5823 if [ -d "${localstatedir}/db" ] ; then
5824 with_srv_lease_file
="${localstatedir}/db/dhcpd.leases"
5825 elif [ -d "${localstatedir}/state" ] ; then
5826 if [ -d "${localstatedir}/state/dhcp" ] ; then
5827 with_srv_lease_file
="${localstatedir}/state/dhcp/dhcpd.leases"
5829 with_srv_lease_file
="${localstatedir}/state/dhcpd.leases"
5831 elif [ -d "${localstatedir}/lib" ] ; then
5832 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5833 with_srv_lease_file
="${localstatedir}/lib/dhcp/dhcpd.leases"
5835 with_srv_lease_file
="${localstatedir}/lib/dhcpd.leases"
5837 elif [ -d "${localstatedir}/etc" ] ; then
5838 with_srv_lease_file
="${localstatedir}/etc/dhcpd.leases"
5840 with_srv_lease_file
="/etc/dhcpd.leases"
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_srv_lease_file" >&5
5844 $as_echo "$with_srv_lease_file" >&6; }
5847 # Check whether --with-srv6-lease-file was given.
5848 if test "${with_srv6_lease_file+set}" = set; then :
5849 withval
=$with_srv6_lease_file;
5850 cat >>confdefs.h
<<_ACEOF
5851 #define _PATH_DHCPD6_DB "$withval"
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhcpd6.leases location" >&5
5858 $as_echo_n "checking for dhcpd6.leases location... " >&6; }
5859 if [ "x$with_srv6_lease_file" = "x" ] ; then
5860 if [ -d "${localstatedir}/db" ] ; then
5861 with_srv6_lease_file
="${localstatedir}/db/dhcpd6.leases"
5862 elif [ -d "${localstatedir}/state" ] ; then
5863 if [ -d "${localstatedir}/state/dhcp" ] ; then
5864 with_srv6_lease_file
="${localstatedir}/state/dhcp/dhcpd6.leases"
5866 with_srv6_lease_file
="${localstatedir}/state/dhcpd6.leases"
5868 elif [ -d "${localstatedir}/lib" ] ; then
5869 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5870 with_srv6_lease_file
="${localstatedir}/lib/dhcp/dhcpd6.leases"
5872 with_srv6_lease_file
="${localstatedir}/lib/dhcpd6.leases"
5874 elif [ -d "${localstatedir}/etc" ] ; then
5875 with_srv6_lease_file
="${localstatedir}/etc/dhcpd6.leases"
5877 with_srv6_lease_file
="/etc/dhcpd6.leases"
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_srv6_lease_file" >&5
5881 $as_echo "$with_srv6_lease_file" >&6; }
5884 # Check whether --with-cli-lease-file was given.
5885 if test "${with_cli_lease_file+set}" = set; then :
5886 withval
=$with_cli_lease_file;
5887 cat >>confdefs.h
<<_ACEOF
5888 #define _PATH_DHCLIENT_DB "$withval"
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhclient.leases location" >&5
5895 $as_echo_n "checking for dhclient.leases location... " >&6; }
5896 if [ "x$with_cli_lease_file" = "x" ] ; then
5897 if [ -d "${localstatedir}/db" ] ; then
5898 with_cli_lease_file
="${localstatedir}/db/dhclient.leases"
5899 elif [ -d "${localstatedir}/state" ] ; then
5900 if [ -d "${localstatedir}/state/dhcp" ] ; then
5901 with_cli_lease_file
="${localstatedir}/state/dhcp/dhclient.leases"
5903 with_cli_lease_file
="${localstatedir}/state/dhclient.leases"
5905 elif [ -d "${localstatedir}/lib" ] ; then
5906 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5907 with_cli_lease_file
="${localstatedir}/lib/dhcp/dhclient.leases"
5909 with_cli_lease_file
="${localstatedir}/lib/dhclient.leases"
5911 elif [ -d "${localstatedir}/etc" ] ; then
5912 with_cli_lease_file
="${localstatedir}/etc/dhclient.leases"
5914 with_cli_lease_file
="/etc/dhclient.leases"
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cli_lease_file" >&5
5918 $as_echo "$with_cli_lease_file" >&6; }
5921 # Check whether --with-cli6-lease-file was given.
5922 if test "${with_cli6_lease_file+set}" = set; then :
5923 withval
=$with_cli6_lease_file;
5924 cat >>confdefs.h
<<_ACEOF
5925 #define _PATH_DHCLIENT6_DB "$withval"
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhclient6.leases location" >&5
5932 $as_echo_n "checking for dhclient6.leases location... " >&6; }
5933 if [ "x$with_cli6_lease_file" = "x" ] ; then
5934 if [ -d "${localstatedir}/db" ] ; then
5935 with_cli6_lease_file
="${localstatedir}/db/dhclient6.leases"
5936 elif [ -d "${localstatedir}/state" ] ; then
5937 if [ -d "${localstatedir}/state/dhcp" ] ; then
5938 with_cli6_lease_file
="${localstatedir}/state/dhcp/dhclient6.leases"
5940 with_cli6_lease_file
="${localstatedir}/state/dhclient6.leases"
5942 elif [ -d "${localstatedir}/lib" ] ; then
5943 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5944 with_cli6_lease_file
="${localstatedir}/lib/dhcp/dhclient6.leases"
5946 with_cli6_lease_file
="${localstatedir}/lib/dhclient6.leases"
5948 elif [ -d "${localstatedir}/etc" ] ; then
5949 with_cli6_lease_file
="${localstatedir}/etc/dhclient6.leases"
5951 with_cli6_lease_file
="/etc/dhclient6.leases"
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cli6_lease_file" >&5
5955 $as_echo "$with_cli6_lease_file" >&6; }
5958 # Check whether --with-srv-pid-file was given.
5959 if test "${with_srv_pid_file+set}" = set; then :
5960 withval
=$with_srv_pid_file;
5961 cat >>confdefs.h
<<_ACEOF
5962 #define _PATH_DHCPD_PID "$withval"
5968 # Check whether --with-srv6-pid-file was given.
5969 if test "${with_srv6_pid_file+set}" = set; then :
5970 withval
=$with_srv6_pid_file;
5971 cat >>confdefs.h
<<_ACEOF
5972 #define _PATH_DHCPD6_PID "$withval"
5978 # Check whether --with-cli-pid-file was given.
5979 if test "${with_cli_pid_file+set}" = set; then :
5980 withval
=$with_cli_pid_file;
5981 cat >>confdefs.h
<<_ACEOF
5982 #define _PATH_DHCLIENT_PID "$withval"
5988 # Check whether --with-cli6-pid-file was given.
5989 if test "${with_cli6_pid_file+set}" = set; then :
5990 withval
=$with_cli6_pid_file;
5991 cat >>confdefs.h
<<_ACEOF
5992 #define _PATH_DHCLIENT6_PID "$withval"
5998 # Check whether --with-relay-pid-file was given.
5999 if test "${with_relay_pid_file+set}" = set; then :
6000 withval
=$with_relay_pid_file;
6001 cat >>confdefs.h
<<_ACEOF
6002 #define _PATH_DHCRELAY_PID "$withval"
6008 # Check whether --with-relay6-pid-file was given.
6009 if test "${with_relay6_pid_file+set}" = set; then :
6010 withval
=$with_relay6_pid_file;
6011 cat >>confdefs.h
<<_ACEOF
6012 #define _PATH_DHCRELAY6_PID "$withval"
6018 # Check basic types.
6019 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6020 case $ac_cv_c_int8_t in #(
6024 cat >>confdefs.h
<<_ACEOF
6025 #define int8_t $ac_cv_c_int8_t
6030 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6031 case $ac_cv_c_int16_t in #(
6035 cat >>confdefs.h
<<_ACEOF
6036 #define int16_t $ac_cv_c_int16_t
6041 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6042 case $ac_cv_c_int32_t in #(
6046 cat >>confdefs.h
<<_ACEOF
6047 #define int32_t $ac_cv_c_int32_t
6052 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6053 case $ac_cv_c_int64_t in #(
6057 cat >>confdefs.h
<<_ACEOF
6058 #define int64_t $ac_cv_c_int64_t
6064 # Some systems need the u_intX_t types defined across.
6065 ac_fn_c_check_type
"$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
6066 if test "x$ac_cv_type_u_int8_t" = xyes
; then :
6070 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6071 case $ac_cv_c_uint8_t in #(
6075 $as_echo "#define _UINT8_T 1" >>confdefs.h
6078 cat >>confdefs.h
<<_ACEOF
6079 #define uint8_t $ac_cv_c_uint8_t
6085 $as_echo "#define u_int8_t uint8_t" >>confdefs.h
6090 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
6091 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
6095 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6096 case $ac_cv_c_uint16_t in #(
6101 cat >>confdefs.h
<<_ACEOF
6102 #define uint16_t $ac_cv_c_uint16_t
6108 $as_echo "#define u_int16_t uint16_t" >>confdefs.h
6113 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
6114 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
6118 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6119 case $ac_cv_c_uint32_t in #(
6123 $as_echo "#define _UINT32_T 1" >>confdefs.h
6126 cat >>confdefs.h
<<_ACEOF
6127 #define uint32_t $ac_cv_c_uint32_t
6133 $as_echo "#define u_int32_t uint32_t" >>confdefs.h
6138 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
6139 if test "x$ac_cv_type_u_int64_t" = xyes
; then :
6143 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6144 case $ac_cv_c_uint64_t in #(
6148 $as_echo "#define _UINT64_T 1" >>confdefs.h
6151 cat >>confdefs.h
<<_ACEOF
6152 #define uint64_t $ac_cv_c_uint64_t
6158 $as_echo "#define u_int64_t uint64_t" >>confdefs.h
6164 # see if ifaddrs.h is available
6165 for ac_header
in ifaddrs.h
6167 ac_fn_c_check_header_mongrel
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6168 if test "x$ac_cv_header_ifaddrs_h" = xyes
; then :
6169 cat >>confdefs.h
<<_ACEOF
6170 #define HAVE_IFADDRS_H 1
6178 # figure out what IPv4 interface code to use
6179 for ac_header
in linux
/types.h
6181 ac_fn_c_check_header_mongrel
"$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
6182 if test "x$ac_cv_header_linux_types_h" = xyes
; then :
6183 cat >>confdefs.h
<<_ACEOF
6184 #define HAVE_LINUX_TYPES_H 1
6190 # needed for linux/filter.h on old systems
6192 ac_fn_c_check_header_compile
"$LINENO" "linux/filter.h" "ac_cv_header_linux_filter_h" "
6193 #ifdef HAVE_LINUX_TYPES_H
6194 #include <linux/types.h>
6198 if test "x$ac_cv_header_linux_filter_h" = xyes
; then :
6203 if test -n "$DO_LPF"
6206 $as_echo "#define HAVE_LPF 1" >>confdefs.h
6209 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dlpi.h" "ac_cv_header_sys_dlpi_h" "$ac_includes_default"
6210 if test "x$ac_cv_header_sys_dlpi_h" = xyes
; then :
6215 if test -n "$DO_DLPI"
6218 $as_echo "#define HAVE_DLPI 1" >>confdefs.h
6221 ac_fn_c_check_header_mongrel
"$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
6222 if test "x$ac_cv_header_net_bpf_h" = xyes
; then :
6227 if test -n "$DO_BPF"
6230 $as_echo "#define HAVE_BPF 1" >>confdefs.h
6236 # SIOCGLIFCONF uses some transport structures. Trick is not all platforms
6237 # use the same structures. We like to use 'struct lifconf' and 'struct
6238 # lifreq', but we'll use these other structures if they're present. HPUX
6239 # does not define 'struct lifnum', but does use SIOCGLIFNUM - they use an
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifnum" >&5
6243 $as_echo_n "checking for struct lifnum... " >&6; }
6244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6246 #include <sys/types.h>
6247 #include <sys/socket.h>
6259 if ac_fn_c_try_compile
"$LINENO"; then :
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6261 $as_echo "yes" >&6; }
6263 $as_echo "#define ISC_PLATFORM_HAVELIFNUM 1" >>confdefs.h
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267 $as_echo "no" >&6; }
6269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
6272 $as_echo_n "checking for struct if_laddrconf... " >&6; }
6273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6275 #include <sys/types.h>
6276 #include <net/if6.h>
6281 struct if_laddrconf a;
6287 if ac_fn_c_try_compile
"$LINENO"; then :
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6289 $as_echo "yes" >&6; }
6291 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295 $as_echo "no" >&6; }
6297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
6300 $as_echo_n "checking for struct if_laddrreq... " >&6; }
6301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h. */
6303 #include <sys/types.h>
6304 #include <net/if6.h>
6309 struct if_laddrreq a;
6315 if ac_fn_c_try_link
"$LINENO"; then :
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6317 $as_echo "yes" >&6; }
6319 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6325 rm -f core conftest.err conftest.
$ac_objext \
6326 conftest
$ac_exeext conftest.
$ac_ext
6329 # check for GCC noreturn attribute
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
6332 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
6333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6334 /* end confdefs.h. */
6339 void foo() __attribute__((noreturn));
6344 if ac_fn_c_try_compile
"$LINENO"; then :
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6346 $as_echo "yes" >&6; }
6348 $as_echo "#define ISC_DHCP_NORETURN __attribute__((noreturn))" >>confdefs.h
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352 $as_echo "no" >&6; }
6354 $as_echo "#define ISC_DHCP_NORETURN /**/" >>confdefs.h
6357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6359 # Look for optional headers.
6360 for ac_header
in sys
/socket.h net
/if_dl.h net
/if6.h regex.h
6362 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6363 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6364 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6365 cat >>confdefs.h
<<_ACEOF
6366 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6374 # Solaris needs some libraries for functions
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6376 $as_echo_n "checking for library containing socket... " >&6; }
6377 if ${ac_cv_search_socket+:} false
; then :
6378 $as_echo_n "(cached) " >&6
6380 ac_func_search_save_LIBS
=$LIBS
6381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6384 /* Override any GCC internal prototype to avoid an error.
6385 Use char because int might match the return type of a GCC
6386 builtin and then its argument prototype would still apply. */
6399 for ac_lib
in '' socket
; do
6400 if test -z "$ac_lib"; then
6401 ac_res
="none required"
6404 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6406 if ac_fn_c_try_link
"$LINENO"; then :
6407 ac_cv_search_socket
=$ac_res
6409 rm -f core conftest.err conftest.
$ac_objext \
6411 if ${ac_cv_search_socket+:} false
; then :
6415 if ${ac_cv_search_socket+:} false
; then :
6418 ac_cv_search_socket
=no
6421 LIBS
=$ac_func_search_save_LIBS
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6424 $as_echo "$ac_cv_search_socket" >&6; }
6425 ac_res
=$ac_cv_search_socket
6426 if test "$ac_res" != no
; then :
6427 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6432 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
6433 if ${ac_cv_search_inet_ntoa+:} false
; then :
6434 $as_echo_n "(cached) " >&6
6436 ac_func_search_save_LIBS
=$LIBS
6437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6440 /* Override any GCC internal prototype to avoid an error.
6441 Use char because int might match the return type of a GCC
6442 builtin and then its argument prototype would still apply. */
6450 return inet_ntoa ();
6455 for ac_lib
in '' nsl
; do
6456 if test -z "$ac_lib"; then
6457 ac_res
="none required"
6460 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6462 if ac_fn_c_try_link
"$LINENO"; then :
6463 ac_cv_search_inet_ntoa
=$ac_res
6465 rm -f core conftest.err conftest.
$ac_objext \
6467 if ${ac_cv_search_inet_ntoa+:} false
; then :
6471 if ${ac_cv_search_inet_ntoa+:} false
; then :
6474 ac_cv_search_inet_ntoa
=no
6477 LIBS
=$ac_func_search_save_LIBS
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6480 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
6481 ac_res
=$ac_cv_search_inet_ntoa
6482 if test "$ac_res" != no
; then :
6483 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
6489 $as_echo_n "checking for library containing inet_aton... " >&6; }
6490 if ${ac_cv_search_inet_aton+:} false
; then :
6491 $as_echo_n "(cached) " >&6
6493 ac_func_search_save_LIBS
=$LIBS
6494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6497 /* Override any GCC internal prototype to avoid an error.
6498 Use char because int might match the return type of a GCC
6499 builtin and then its argument prototype would still apply. */
6507 return inet_aton ();
6512 for ac_lib
in '' socket nsl
; do
6513 if test -z "$ac_lib"; then
6514 ac_res
="none required"
6517 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6519 if ac_fn_c_try_link
"$LINENO"; then :
6520 ac_cv_search_inet_aton
=$ac_res
6522 rm -f core conftest.err conftest.
$ac_objext \
6524 if ${ac_cv_search_inet_aton+:} false
; then :
6528 if ${ac_cv_search_inet_aton+:} false
; then :
6531 ac_cv_search_inet_aton
=no
6534 LIBS
=$ac_func_search_save_LIBS
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
6537 $as_echo "$ac_cv_search_inet_aton" >&6; }
6538 ac_res
=$ac_cv_search_inet_aton
6539 if test "$ac_res" != no
; then :
6540 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6544 $as_echo "#define NEED_INET_ATON 1" >>confdefs.h
6549 # Check for a standalone regex library.
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
6551 $as_echo_n "checking for library containing regcomp... " >&6; }
6552 if ${ac_cv_search_regcomp+:} false
; then :
6553 $as_echo_n "(cached) " >&6
6555 ac_func_search_save_LIBS
=$LIBS
6556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h. */
6559 /* Override any GCC internal prototype to avoid an error.
6560 Use char because int might match the return type of a GCC
6561 builtin and then its argument prototype would still apply. */
6574 for ac_lib
in '' regex
; do
6575 if test -z "$ac_lib"; then
6576 ac_res
="none required"
6579 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6581 if ac_fn_c_try_link
"$LINENO"; then :
6582 ac_cv_search_regcomp
=$ac_res
6584 rm -f core conftest.err conftest.
$ac_objext \
6586 if ${ac_cv_search_regcomp+:} false
; then :
6590 if ${ac_cv_search_regcomp+:} false
; then :
6593 ac_cv_search_regcomp
=no
6596 LIBS
=$ac_func_search_save_LIBS
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
6599 $as_echo "$ac_cv_search_regcomp" >&6; }
6600 ac_res
=$ac_cv_search_regcomp
6601 if test "$ac_res" != no
; then :
6602 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6607 for ac_func
in strlcat
6609 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
6610 if test "x$ac_cv_func_strlcat" = xyes
; then :
6611 cat >>confdefs.h
<<_ACEOF
6612 #define HAVE_STRLCAT 1
6619 # For HP/UX we need -lipv6 for if_nametoindex, perhaps others.
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
6621 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
6622 if ${ac_cv_search_if_nametoindex+:} false
; then :
6623 $as_echo_n "(cached) " >&6
6625 ac_func_search_save_LIBS
=$LIBS
6626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h. */
6629 /* Override any GCC internal prototype to avoid an error.
6630 Use char because int might match the return type of a GCC
6631 builtin and then its argument prototype would still apply. */
6635 char if_nametoindex ();
6639 return if_nametoindex ();
6644 for ac_lib
in '' ipv6
; do
6645 if test -z "$ac_lib"; then
6646 ac_res
="none required"
6649 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6651 if ac_fn_c_try_link
"$LINENO"; then :
6652 ac_cv_search_if_nametoindex
=$ac_res
6654 rm -f core conftest.err conftest.
$ac_objext \
6656 if ${ac_cv_search_if_nametoindex+:} false
; then :
6660 if ${ac_cv_search_if_nametoindex+:} false
; then :
6663 ac_cv_search_if_nametoindex
=no
6666 LIBS
=$ac_func_search_save_LIBS
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
6669 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
6670 ac_res
=$ac_cv_search_if_nametoindex
6671 if test "$ac_res" != no
; then :
6672 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6677 # check for /dev/random (declares HAVE_DEV_RANDOM)
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
6679 $as_echo_n "checking for random device... " >&6; }
6681 # Check whether --with-randomdev was given.
6682 if test "${with_randomdev+set}" = set; then :
6683 withval
=$with_randomdev; use_randomdev
="$withval"
6685 use_randomdev
="unspec"
6688 if test "$use_randomdev" = "unspec"; then
6689 if test "$cross_compiling" = "yes"; then
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unspecified" >&5
6691 $as_echo "unspecified" >&6; }
6692 as_fn_error $?
" need --with-randomdev=PATH or --with-randomdev=no" "$LINENO" 5
6694 use_randomdev
="/dev/random"
6695 elif test "$use_randomdev" = "yes"; then
6696 use_randomdev
="/dev/random"
6698 if test "$use_randomdev" = "no"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6700 $as_echo "disabled" >&6; }
6701 BINDCONFIG
="$BINDCONFIG --with-randomdev=no"
6703 if test "$cross_compiling" = "yes"; then
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_randomdev (unchecked)" >&5
6705 $as_echo "$use_randomdev (unchecked)" >&6; }
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_randomdev" >&5
6708 $as_echo "$use_randomdev" >&6; }
6709 as_ac_File
=`$as_echo "ac_cv_file_$use_randomdev" | $as_tr_sh`
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $use_randomdev" >&5
6711 $as_echo_n "checking for $use_randomdev... " >&6; }
6712 if eval \
${$as_ac_File+:} false
; then :
6713 $as_echo_n "(cached) " >&6
6715 test "$cross_compiling" = yes &&
6716 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
6717 if test -r "$use_randomdev"; then
6718 eval "$as_ac_File=yes"
6720 eval "$as_ac_File=no"
6723 eval ac_res
=\$
$as_ac_File
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6725 $as_echo "$ac_res" >&6; }
6726 if eval test \"x\$
"$as_ac_File"\" = x
"yes"; then :
6728 $as_echo "#define HAVE_DEV_RANDOM 1" >>confdefs.h
6731 as_fn_error $?
"cannot find $use_randomdev" "$LINENO" 5
6735 BINDCONFIG
="$BINDCONFIG --with-randomdev=$use_randomdev"
6738 # see if there is a "sa_len" field in our interface information structure
6739 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
6741 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
6743 $as_echo "#define HAVE_SA_LEN /**/" >>confdefs.h
6748 # figure out pointer size
6749 SAVE_CFLAGS
="$CFLAGS"
6750 CFLAGS
="$CFLAGS -I$srcdir"
6751 # The cast to long int works around a bug in the HP C Compiler
6752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6754 # This bug is HP SR number 8606223364.
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iaddr *" >&5
6756 $as_echo_n "checking size of struct iaddr *... " >&6; }
6757 if ${ac_cv_sizeof_struct_iaddr_p+:} false
; then :
6758 $as_echo_n "(cached) " >&6
6760 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (struct iaddr *))" "ac_cv_sizeof_struct_iaddr_p" "
6761 #include \"includes/inet.h\"
6767 if test "$ac_cv_type_struct_iaddr_p" = yes; then
6768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6770 as_fn_error
77 "cannot compute sizeof (struct iaddr *)
6771 See \`config.log' for more details" "$LINENO" 5; }
6773 ac_cv_sizeof_struct_iaddr_p
=0
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iaddr_p" >&5
6779 $as_echo "$ac_cv_sizeof_struct_iaddr_p" >&6; }
6783 cat >>confdefs.h
<<_ACEOF
6784 #define SIZEOF_STRUCT_IADDR_P $ac_cv_sizeof_struct_iaddr_p
6788 CFLAGS
="$SAVE_CFLAGS"
6790 # Solaris does not have the msg_control or msg_controlen members
6791 # in the msghdr structure unless you define:
6793 # _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, and __EXTENSIONS__
6795 # See the "standards" man page for details.
6797 # We check for the msg_control member, and if it is not found, we check
6798 # again with the appropriate defines added to the CFLAGS. (In order to
6799 # do this we have to remove the check from the cache, which is what the
6801 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6802 #include <sys/types.h>
6803 #include <sys/socket.h>
6806 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
; then :
6809 CFLAGS
="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6810 CFLAGS
="$CFLAGS -D__EXTENSIONS__"
6811 unset ac_cv_member_struct_msghdr_msg_control
6812 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6813 #include <sys/types.h>
6814 #include <sys/socket.h>
6817 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
; then :
6820 as_fn_error $?
"Missing msg_control member in
6821 msg_control structure." "$LINENO" 5
6828 ac_fn_c_check_member
"$LINENO" "struct tpacket_auxdata" "tp_vlan_tci" "ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" "#include <linux/if_packet.h>
6830 if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes
; then :
6832 $as_echo "#define VLAN_TCI_PRESENT 1" >>confdefs.h
6841 # Check whether --with-libbind was given.
6842 if test "${with_libbind+set}" = set; then :
6843 withval
=$with_libbind; use_libbind
="$withval"
6848 case "$use_libbind" in
6850 BINDDIR
="\${top_srcdir}/bind"
6851 BINDSRCDIR
="\${top_srcdir}/bind"
6854 BINDDIR
="\${top_srcdir}/bind"
6855 BINDSRCDIR
="\${top_srcdir}/bind"
6858 BINDDIR
="$use_libbind"
6859 if test ! -d "$srcdir/bind"; then
6860 # no bind directory, create it with a fake Makefile.in
6861 # (AC_CONFIG_FILES and top Makefile refer to it so
6864 cat > $srcdir/bind
/Makefile.
in << EOF
6866 all check clean distclean distdir install uninstall:
6877 # Check whether --with-ldap was given.
6878 if test "${with_ldap+set}" = set; then :
6879 withval
=$with_ldap; ldap
=$withval
6885 # OpenLDAP with SSL support.
6887 # Check whether --with-ldapcrypto was given.
6888 if test "${with_ldapcrypto+set}" = set; then :
6889 withval
=$with_ldapcrypto; ldapcrypto
=$withval
6895 # Gssapi to allow LDAP to authenticate with a keytab
6897 # Check whether --with-ldap-gssapi was given.
6898 if test "${with_ldap_gssapi+set}" = set; then :
6899 withval
=$with_ldap_gssapi; ldap_gssapi
=$withval
6906 # LDAP CASA auth support.
6908 # Check whether --with-ldapcasa was given.
6909 if test "${with_ldapcasa+set}" = set; then :
6910 withval
=$with_ldapcasa; ldapcasa
=$withval
6916 # OpenLDAP support is disabled by default, if enabled then SSL support is an
6917 # extra optional that is also disabled by default. Enabling LDAP SSL support
6918 # implies enabling LDAP support. Similarly, KRB5 support implies LDAP support,
6919 # but doesn't include SSL. The two are not dependant.
6920 if test x
$ldap = xyes ||
test x
$ldapcrypto = xyes ||
test x
$ldap_gssapi = xyes
; then
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
6924 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
6925 if ${ac_cv_search_ldap_initialize+:} false
; then :
6926 $as_echo_n "(cached) " >&6
6928 ac_func_search_save_LIBS
=$LIBS
6929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6932 /* Override any GCC internal prototype to avoid an error.
6933 Use char because int might match the return type of a GCC
6934 builtin and then its argument prototype would still apply. */
6938 char ldap_initialize ();
6942 return ldap_initialize ();
6947 for ac_lib
in '' ldap
; do
6948 if test -z "$ac_lib"; then
6949 ac_res
="none required"
6952 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6954 if ac_fn_c_try_link
"$LINENO"; then :
6955 ac_cv_search_ldap_initialize
=$ac_res
6957 rm -f core conftest.err conftest.
$ac_objext \
6959 if ${ac_cv_search_ldap_initialize+:} false
; then :
6963 if ${ac_cv_search_ldap_initialize+:} false
; then :
6966 ac_cv_search_ldap_initialize
=no
6969 LIBS
=$ac_func_search_save_LIBS
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
6972 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
6973 ac_res
=$ac_cv_search_ldap_initialize
6974 if test "$ac_res" != no
; then :
6975 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6980 as_fn_error $?
"*** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package?
6981 See \`config.log' for more details" "$LINENO" 5; }
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_pvt_opt_on" >&5
6985 $as_echo_n "checking for library containing ber_pvt_opt_on... " >&6; }
6986 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
6987 $as_echo_n "(cached) " >&6
6989 ac_func_search_save_LIBS
=$LIBS
6990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
6993 /* Override any GCC internal prototype to avoid an error.
6994 Use char because int might match the return type of a GCC
6995 builtin and then its argument prototype would still apply. */
6999 char ber_pvt_opt_on ();
7003 return ber_pvt_opt_on ();
7008 for ac_lib
in '' lber
; do
7009 if test -z "$ac_lib"; then
7010 ac_res
="none required"
7013 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7015 if ac_fn_c_try_link
"$LINENO"; then :
7016 ac_cv_search_ber_pvt_opt_on
=$ac_res
7018 rm -f core conftest.err conftest.
$ac_objext \
7020 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
7024 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
7027 ac_cv_search_ber_pvt_opt_on
=no
7030 LIBS
=$ac_func_search_save_LIBS
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_pvt_opt_on" >&5
7033 $as_echo "$ac_cv_search_ber_pvt_opt_on" >&6; }
7034 ac_res
=$ac_cv_search_ber_pvt_opt_on
7035 if test "$ac_res" != no
; then :
7036 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7041 as_fn_error $?
"*** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package?
7042 See \`config.log' for more details" "$LINENO" 5; }
7045 if test x
$ldap_gssapi = xyes
; then
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_init_context" >&5
7047 $as_echo_n "checking for library containing krb5_init_context... " >&6; }
7048 if ${ac_cv_search_krb5_init_context+:} false
; then :
7049 $as_echo_n "(cached) " >&6
7051 ac_func_search_save_LIBS
=$LIBS
7052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7055 /* Override any GCC internal prototype to avoid an error.
7056 Use char because int might match the return type of a GCC
7057 builtin and then its argument prototype would still apply. */
7061 char krb5_init_context ();
7065 return krb5_init_context ();
7070 for ac_lib
in '' krb5
; do
7071 if test -z "$ac_lib"; then
7072 ac_res
="none required"
7075 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7077 if ac_fn_c_try_link
"$LINENO"; then :
7078 ac_cv_search_krb5_init_context
=$ac_res
7080 rm -f core conftest.err conftest.
$ac_objext \
7082 if ${ac_cv_search_krb5_init_context+:} false
; then :
7086 if ${ac_cv_search_krb5_init_context+:} false
; then :
7089 ac_cv_search_krb5_init_context
=no
7092 LIBS
=$ac_func_search_save_LIBS
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_init_context" >&5
7095 $as_echo "$ac_cv_search_krb5_init_context" >&6; }
7096 ac_res
=$ac_cv_search_krb5_init_context
7097 if test "$ac_res" != no
; then :
7098 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7103 as_fn_error $?
"*** Cannot find krb5_init_context with -lkrb5 - do you need to install a Kerberos Devel package?
7104 See \`config.log' for more details" "$LINENO" 5; }
7109 # Create LDAP_LIBS which we specify them explicitly rather than lumping them in with LIBS
7115 for ac_header
in ldap.h
7117 ac_fn_c_check_header_mongrel
"$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
7118 if test "x$ac_cv_header_ldap_h" = xyes
; then :
7119 cat >>confdefs.h
<<_ACEOF
7120 #define HAVE_LDAP_H 1
7127 for ac_func
in inet_pton inet_ntop
7129 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7130 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7131 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7132 cat >>confdefs.h
<<_ACEOF
7133 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7141 LDAP_CFLAGS
="-DLDAP_CONFIGURATION"
7143 if test x
$ldapcasa = xyes
; then
7144 for ac_header
in micasa_mgmd.h
7146 ac_fn_c_check_header_mongrel
"$LINENO" "micasa_mgmd.h" "ac_cv_header_micasa_mgmd_h" "$ac_includes_default"
7147 if test "x$ac_cv_header_micasa_mgmd_h" = xyes
; then :
7148 cat >>confdefs.h
<<_ACEOF
7149 #define HAVE_MICASA_MGMD_H 1
7152 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_CASA_AUTH"
7155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7157 as_fn_error $?
"*** Cannot find micasa_mgmd.h for ldap casa auth support
7158 See \`config.log' for more details" "$LINENO" 5; }
7165 if test x
$ldapcrypto = xyes
; then
7166 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_USE_SSL"
7169 if test x
$ldap_gssapi = xyes
; then
7170 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_USE_GSSAPI"
7173 LDAP_CFLAGS
=$LDAP_CFLAGS
7177 # Append selected warning levels to CFLAGS before substitution (but after
7178 # AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]) & etc).
7179 CFLAGS
="$CFLAGS $STD_CWARNINGS"
7181 # Try to add the bind and dhcp include directories
7182 CFLAGS
="$CFLAGS -I\$(top_srcdir)/includes -I$BINDDIR/include"
7186 CFLAGS
="$CFLAGS -D__APPLE_USE_RFC_3542";;
7188 # As of Solaris 11, ethernet dev files are in /dev/net
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/net" >&5
7190 $as_echo_n "checking for /dev/net... " >&6; }
7191 if ${ac_cv_file__dev_net+:} false
; then :
7192 $as_echo_n "(cached) " >&6
7194 test "$cross_compiling" = yes &&
7195 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
7196 if test -r "/dev/net"; then
7197 ac_cv_file__dev_net
=yes
7199 ac_cv_file__dev_net
=no
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_net" >&5
7203 $as_echo "$ac_cv_file__dev_net" >&6; }
7204 if test "x$ac_cv_file__dev_net" = xyes
; then :
7206 $as_echo "#define USE_DEV_NET 1" >>confdefs.h
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
7215 $as_echo_n "checking for flexible array members... " >&6; }
7216 if ${ac_cv_c_flexmember+:} false
; then :
7217 $as_echo_n "(cached) " >&6
7219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7224 struct s { int n; double d[]; };
7229 struct s *p = malloc (offsetof (struct s, d)
7230 + m * sizeof (double));
7232 return p->d != (double *) NULL;
7237 if ac_fn_c_try_compile
"$LINENO"; then :
7238 ac_cv_c_flexmember
=yes
7240 ac_cv_c_flexmember
=no
7242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
7245 $as_echo "$ac_cv_c_flexmember" >&6; }
7246 if test $ac_cv_c_flexmember = yes; then
7248 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
7251 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
7256 ac_config_files
="$ac_config_files Makefile $srcdir/bind/Makefile client/Makefile client/tests/Makefile common/Makefile common/tests/Makefile dhcpctl/Makefile includes/Makefile omapip/Makefile relay/Makefile server/Makefile tests/Makefile tests/unittest.sh server/tests/Makefile doc/devel/doxyfile"
7258 cat >confcache
<<\_ACEOF
7259 # This file is a shell script that caches the results of configure
7260 # tests run on this system so they can be shared between configure
7261 # scripts and configure runs, see configure's option --config-cache.
7262 # It is not useful on other systems. If it contains results you don't
7263 # want to keep, you may remove or edit it.
7265 # config.status only pays attention to the cache file if you give it
7266 # the --recheck option to rerun configure.
7268 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7269 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7274 # The following way of writing the cache mishandles newlines in values,
7275 # but we know of no workaround that is simple, portable, and efficient.
7276 # So, we kill variables containing newlines.
7277 # Ultrix sh set writes to stderr and can't be redirected directly,
7278 # and sets the high bit in the cache file unless we assign to the vars.
7280 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7281 eval ac_val
=\$
$ac_var
7285 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7286 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7289 _ | IFS | as_nl
) ;; #(
7290 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7291 *) { eval $ac_var=; unset $ac_var;} ;;
7297 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7298 *${as_nl}ac_space
=\
*)
7299 # `set' does not quote correctly, so add quotes: double-quote
7300 # substitution turns \\\\ into \\, and sed turns \\ into \.
7303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7306 # `set' quotes correctly as required by POSIX, so do not add quotes.
7307 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7316 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7318 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7320 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7321 if test -w "$cache_file"; then
7322 if test "x$cache_file" != "x/dev/null"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7324 $as_echo "$as_me: updating cache $cache_file" >&6;}
7325 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
7326 cat confcache
>"$cache_file"
7328 case $cache_file in #(
7330 mv -f confcache
"$cache_file"$$
&&
7331 mv -f "$cache_file"$$
"$cache_file" ;; #(
7333 mv -f confcache
"$cache_file" ;;
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7339 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7344 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7345 # Let make expand exec_prefix.
7346 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7348 DEFS
=-DHAVE_CONFIG_H
7353 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7354 # 1. Remove the extension, and $U if already installed.
7355 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7356 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7357 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7358 # will be set to the directory where LIBOBJS objects are built.
7359 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7360 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7364 LTLIBOBJS
=$ac_ltlibobjs
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7368 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7369 if test -n "$am_sleep_pid"; then
7370 # Hide warnings about reused PIDs.
7371 wait $am_sleep_pid 2>/dev
/null
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7374 $as_echo "done" >&6; }
7375 if test -n "$EXEEXT"; then
7377 am__EXEEXT_FALSE
='#'
7383 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7384 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
7385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7387 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7388 as_fn_error $?
"conditional \"AMDEP\" was never defined.
7389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7391 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7392 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
7393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7395 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
7396 as_fn_error $?
"conditional \"CROSS_COMPILING\" was never defined.
7397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7400 if test -z "${BIND_ATF_TRUE}" && test -z "${BIND_ATF_FALSE}"; then
7401 as_fn_error $?
"conditional \"BIND_ATF\" was never defined.
7402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7404 if test -z "${HAVE_ATF_TRUE}" && test -z "${HAVE_ATF_FALSE}"; then
7405 as_fn_error $?
"conditional \"HAVE_ATF\" was never defined.
7406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7409 : "${CONFIG_STATUS=./config.status}"
7411 ac_clean_files_save
=$ac_clean_files
7412 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7414 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7416 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7418 # Generated by $as_me.
7419 # Run this file to recreate the current configuration.
7420 # Compiler output produced by configure, useful for debugging
7421 # configure, is in config.log if it exists.
7427 SHELL=\${CONFIG_SHELL-$SHELL}
7430 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7431 ## -------------------- ##
7432 ## M4sh Initialization. ##
7433 ## -------------------- ##
7435 # Be more Bourne compatible
7436 DUALCASE
=1; export DUALCASE
# for MKS sh
7437 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7440 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7441 # is contrary to our usage. Disable this feature.
7442 alias -g '${1+"$@"}'='"$@"'
7443 setopt NO_GLOB_SUBST
7445 case `(set -o) 2>/dev/null` in #(
7457 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7458 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7459 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7460 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7461 # Prefer a ksh shell builtin over an external printf program on Solaris,
7462 # but without wasting forks for bash or zsh.
7463 if test -z "$BASH_VERSION$ZSH_VERSION" \
7464 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7465 as_echo='print
-r --'
7466 as_echo_n='print
-rn --'
7467 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7468 as_echo='printf %s
\n'
7469 as_echo_n='printf %s
'
7471 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7472 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7473 as_echo_n='/usr
/ucb
/echo -n'
7475 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7476 as_echo_n_body='eval
7480 expr "X$arg" : "X\\(.*\\)$as_nl";
7481 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7483 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7485 export as_echo_n_body
7486 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7489 as_echo='sh
-c $as_echo_body as_echo
'
7492 # The user is always right.
7493 if test "${PATH_SEPARATOR+set}" != set; then
7495 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7496 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7503 # We need space, tab and new line, in precisely that order. Quoting is
7504 # there to prevent editors from complaining about space-tab.
7505 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7506 # splitting by setting IFS to empty value.)
7509 # Find who we are. Look in the path if we contain no directory separator.
7512 *[\\/]* ) as_myself=$0 ;;
7513 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 test -z "$as_dir" && as_dir=.
7518 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7524 # We did not find ourselves, most probably we were run as `sh COMMAND'
7525 # in which case we are not to be found in the path.
7526 if test "x$as_myself" = x
; then
7529 if test ! -f "$as_myself"; then
7530 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7534 # Unset variables that we do not need and which cause bugs (e.g. in
7535 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7536 # suppresses any "Segmentation fault" message there. '((' could
7537 # trigger a bug in pdksh 5.2.14.
7538 for as_var
in BASH_ENV ENV MAIL MAILPATH
7539 do eval test x\
${$as_var+set} = xset \
7540 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7553 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7556 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7557 # ----------------------------------------
7558 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7559 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7560 # script with STATUS, using 1 if that was 0.
7563 as_status
=$1; test $as_status -eq 0 && as_status
=1
7565 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7566 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7568 $as_echo "$as_me: error: $2" >&2
7569 as_fn_exit
$as_status
7573 # as_fn_set_status STATUS
7574 # -----------------------
7575 # Set $? to STATUS, without forking.
7579 } # as_fn_set_status
7583 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7593 # Portably unset VAR.
7596 { eval $1=; unset $1;}
7598 as_unset
=as_fn_unset
7599 # as_fn_append VAR VALUE
7600 # ----------------------
7601 # Append the text in VALUE to the end of the definition contained in VAR. Take
7602 # advantage of any shell optimizations that allow amortized linear growth over
7603 # repeated appends, instead of the typical quadratic growth present in naive
7605 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7606 eval 'as_fn_append ()
7617 # as_fn_arith ARG...
7618 # ------------------
7619 # Perform arithmetic evaluation on the ARGs, and store the result in the
7620 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7621 # must be portable across $(()) and expr.
7622 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7623 eval 'as_fn_arith ()
7630 as_val
=`expr "$@" || test $? -eq 1`
7635 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7636 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7642 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7643 as_basename
=basename
7648 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7654 as_me
=`$as_basename -- "$0" ||
7655 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7656 X"$0" : 'X\(//\)$' \| \
7657 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7659 sed '/^.*\/\([^/][^/]*\)\/*$/{
7673 # Avoid depending upon Character Ranges.
7674 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7675 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7676 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7677 as_cr_digits
='0123456789'
7678 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7680 ECHO_C
= ECHO_N
= ECHO_T
=
7681 case `echo -n x` in #(((((
7683 case `echo 'xy\c'` in
7684 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7686 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7693 rm -f conf$$ conf$$.exe conf$$.
file
7694 if test -d conf$$.dir
; then
7695 rm -f conf$$.dir
/conf$$.
file
7698 mkdir conf$$.dir
2>/dev
/null
7700 if (echo >conf$$.
file) 2>/dev
/null
; then
7701 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7703 # ... but there are two gotchas:
7704 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7705 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7706 # In both cases, we have to default to `cp -pR'.
7707 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7709 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7717 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7718 rmdir conf$$.dir
2>/dev
/null
7723 # Create "$as_dir" as a directory, including parents if necessary.
7728 -*) as_dir
=.
/$as_dir;;
7730 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7734 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7735 *) as_qdir
=$as_dir;;
7737 as_dirs
="'$as_qdir' $as_dirs"
7738 as_dir
=`$as_dirname -- "$as_dir" ||
7739 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7740 X"$as_dir" : 'X\(//\)[^/]' \| \
7741 X"$as_dir" : 'X\(//\)$' \| \
7742 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7743 $as_echo X"$as_dir" |
7744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7761 test -d "$as_dir" && break
7763 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7764 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
7768 if mkdir
-p .
2>/dev
/null
; then
7769 as_mkdir_p
='mkdir -p "$as_dir"'
7771 test -d .
/-p && rmdir .
/-p
7776 # as_fn_executable_p FILE
7777 # -----------------------
7778 # Test if FILE is an executable regular file.
7779 as_fn_executable_p
()
7781 test -f "$1" && test -x "$1"
7782 } # as_fn_executable_p
7784 as_executable_p
=as_fn_executable_p
7786 # Sed expression to map a string onto a valid CPP name.
7787 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7789 # Sed expression to map a string onto a valid variable name.
7790 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7794 ## ----------------------------------- ##
7795 ## Main body of $CONFIG_STATUS script. ##
7796 ## ----------------------------------- ##
7798 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7801 # Save the log message, to keep $0 and so on meaningful, and to
7802 # report actual input values of CONFIG_FILES etc. instead of their
7803 # values after options handling.
7805 This file was extended by DHCP $as_me 4.3.4, which was
7806 generated by GNU Autoconf 2.69. Invocation command line was
7808 CONFIG_FILES = $CONFIG_FILES
7809 CONFIG_HEADERS = $CONFIG_HEADERS
7810 CONFIG_LINKS = $CONFIG_LINKS
7811 CONFIG_COMMANDS = $CONFIG_COMMANDS
7814 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7819 case $ac_config_files in *"
7820 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7823 case $ac_config_headers in *"
7824 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7829 # Files that config.status was made for.
7830 config_files="$ac_config_files"
7831 config_headers="$ac_config_headers"
7832 config_commands="$ac_config_commands"
7836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7838 \`$as_me' instantiates files and other configuration actions
7839 from templates according to the current configuration. Unless the files
7840 and actions are specified as TAGs, all are instantiated by default.
7842 Usage: $0 [OPTION]... [TAG]...
7844 -h, --help print this help, then exit
7845 -V, --version print version number and configuration settings, then exit
7846 --config print configuration, then exit
7847 -q, --quiet, --silent
7848 do not print progress messages
7849 -d, --debug don't remove temporary files
7850 --recheck update $as_me by reconfiguring in the same conditions
7851 --file=FILE[:TEMPLATE]
7852 instantiate the configuration file FILE
7853 --header=FILE[:TEMPLATE]
7854 instantiate the configuration header FILE
7856 Configuration files:
7859 Configuration headers:
7862 Configuration commands:
7865 Report bugs to <dhcp-users@isc.org>."
7868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7869 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7871 DHCP config.status 4.3.4
7872 configured by $0, generated by GNU Autoconf 2.69,
7873 with options \\"\$ac_cs_config\\"
7875 Copyright (C) 2012 Free Software Foundation, Inc.
7876 This config.status script is free software; the Free Software Foundation
7877 gives unlimited permission to copy, distribute and modify it."
7884 test -n "\$AWK" || AWK=awk
7887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7888 # The default lists apply if the user does not specify any file.
7894 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7895 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7899 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7911 # Handling of the options.
7912 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7914 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7915 $as_echo "$ac_cs_version"; exit ;;
7916 --config |
--confi |
--conf |
--con |
--co |
--c )
7917 $as_echo "$ac_cs_config"; exit ;;
7918 --debug |
--debu |
--deb |
--de |
--d |
-d )
7920 --file |
--fil |
--fi |
--f )
7923 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7924 '') as_fn_error $?
"missing file argument" ;;
7926 as_fn_append CONFIG_FILES
" '$ac_optarg'"
7927 ac_need_defaults
=false
;;
7928 --header |
--heade |
--head |
--hea )
7931 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7933 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
7934 ac_need_defaults
=false
;;
7936 # Conflict between --help and --header
7937 as_fn_error $?
"ambiguous option: \`$1'
7938 Try \`$0 --help' for more information.";;
7939 --help |
--hel |
-h )
7940 $as_echo "$ac_cs_usage"; exit ;;
7941 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7942 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7946 -*) as_fn_error $?
"unrecognized option: \`$1'
7947 Try \`$0 --help' for more information." ;;
7949 *) as_fn_append ac_config_targets
" $1"
7950 ac_need_defaults
=false
;;
7956 ac_configure_extra_args
=
7958 if $ac_cs_silent; then
7960 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7965 if \$ac_cs_recheck; then
7966 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7968 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7969 CONFIG_SHELL='$SHELL'
7975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7979 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7980 ## Running $as_me. ##
7986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7990 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7996 # Handling of arguments.
7997 for ac_config_target
in $ac_config_targets
7999 case $ac_config_target in
8000 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
8001 "includes/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS includes/config.h" ;;
8002 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8003 "$srcdir/bind/Makefile") CONFIG_FILES
="$CONFIG_FILES $srcdir/bind/Makefile" ;;
8004 "client/Makefile") CONFIG_FILES
="$CONFIG_FILES client/Makefile" ;;
8005 "client/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES client/tests/Makefile" ;;
8006 "common/Makefile") CONFIG_FILES
="$CONFIG_FILES common/Makefile" ;;
8007 "common/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES common/tests/Makefile" ;;
8008 "dhcpctl/Makefile") CONFIG_FILES
="$CONFIG_FILES dhcpctl/Makefile" ;;
8009 "includes/Makefile") CONFIG_FILES
="$CONFIG_FILES includes/Makefile" ;;
8010 "omapip/Makefile") CONFIG_FILES
="$CONFIG_FILES omapip/Makefile" ;;
8011 "relay/Makefile") CONFIG_FILES
="$CONFIG_FILES relay/Makefile" ;;
8012 "server/Makefile") CONFIG_FILES
="$CONFIG_FILES server/Makefile" ;;
8013 "tests/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
8014 "tests/unittest.sh") CONFIG_FILES
="$CONFIG_FILES tests/unittest.sh" ;;
8015 "server/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES server/tests/Makefile" ;;
8016 "doc/devel/doxyfile") CONFIG_FILES
="$CONFIG_FILES doc/devel/doxyfile" ;;
8018 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8023 # If the user did not use the arguments to specify the items to instantiate,
8024 # then the envvar interface is used. Set only those that are not.
8025 # We use the long form for the default assignment because of an extremely
8026 # bizarre bug on SunOS 4.1.3.
8027 if $ac_need_defaults; then
8028 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8029 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8030 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8033 # Have a temporary directory for convenience. Make it in the build tree
8034 # simply because there is no reason against having it here, and in addition,
8035 # creating and moving files from /tmp can sometimes cause problems.
8036 # Hook for its removal unless debugging.
8037 # Note that there is a small window in which the directory will not be cleaned:
8038 # after its creation but before its name has been assigned to `$tmp'.
8042 trap 'exit_status=$?
8044 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8046 trap 'as_fn_exit 1' 1 2 13 15
8048 # Create a (secure) tmp directory for tmp files.
8051 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8055 tmp
=.
/conf$$
-$RANDOM
8056 (umask 077 && mkdir
"$tmp")
8057 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8060 # Set up the scripts for CONFIG_FILES section.
8061 # No need to generate them if there are no CONFIG_FILES.
8062 # This happens for instance with `./config.status config.h'.
8063 if test -n "$CONFIG_FILES"; then
8066 ac_cr
=`echo X | tr X '\015'`
8067 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8068 # But we know of no other shell where ac_cr would be empty at this
8069 # point, so we can use a bashism as a fallback.
8070 if test "x$ac_cr" = x
; then
8071 eval ac_cr
=\$
\'\\r
\'
8073 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8074 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8080 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8085 echo "cat >conf$$subs.awk <<_ACEOF" &&
8086 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8089 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8090 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8092 for ac_last_try in false false false false false :; do
8093 . ./conf$$subs.sh ||
8094 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8096 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8097 if test $ac_delim_n = $ac_delim_num; then
8099 elif $ac_last_try; then
8100 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8102 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8108 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8112 s/^/S["/; s
/!.
*/"]=/
8122 s/\(.\{148\}\)..*/\1/
8124 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8129 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8136 s/\(.\{148\}\)..*/\1/
8138 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8142 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8147 ' <conf$$subs.awk | sed '
8152 ' >>$CONFIG_STATUS || ac_write_fail=1
8153 rm -f conf$$subs.awk
8154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8156 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8157 for (key in S) S_is_set[key] = 1
8163 nfields = split(line, field, "@
")
8165 len = length(field[1])
8166 for (i = 2; i < nfields; i++) {
8168 keylen = length(key)
8169 if (S_is_set[key]) {
8171 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8172 len += length(value) + length(field[++i])
8183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8184 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8185 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8188 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8189 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8192 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8193 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8194 # trailing colons and then remove the whole line if VPATH becomes empty
8195 # (actually we leave an empty line to preserve line numbers).
8196 if test "x
$srcdir" = x.; then
8197 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8216 fi # test -n "$CONFIG_FILES"
8218 # Set up the scripts for CONFIG_HEADERS section.
8219 # No need to generate them if there are no CONFIG_HEADERS.
8220 # This happens for instance with `./config.status Makefile'.
8221 if test -n "$CONFIG_HEADERS"; then
8222 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
8226 # Transform confdefs.h into an awk script `defines.awk', embedded as
8227 # here-document in config.status, that substitutes the proper values into
8228 # config.h.in to produce config.h.
8230 # Create a delimiter string that does not exist in confdefs.h, to ease
8231 # handling of long lines.
8233 for ac_last_try in false false :; do
8234 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
8235 if test -z "$ac_tt"; then
8237 elif $ac_last_try; then
8238 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
8240 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8244 # For the awk script, D is an array of macro values keyed by name,
8245 # likewise P contains macro parameters if any. Preserve backslash
8246 # newline sequences.
8248 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8250 s/.\{148\}/&'"$ac_delim"'/g
8253 s/^[ ]*#[ ]*define[ ][ ]*/ /
8260 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8262 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8266 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8267 D["\
1"]=" \
3\\\\\\n
"\\/p
8269 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8274 s/.\{148\}/&'"$ac_delim"'/g
8279 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8282 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8284 ' <confdefs.h | sed '
8285 s/'"$ac_delim"'/"\\\
8286 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8289 for (key in D) D_is_set[key] = 1
8292 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8294 split(line, arg, " ")
8295 if (arg[1] == "#") {
8299 defundef
= substr
(arg
[1], 2)
8302 split(mac1
, mac2
, "(") #)
8304 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8305 if (D_is_set
[macro
]) {
8306 # Preserve the white space surrounding the "#".
8307 print prefix
"define", macro P
[macro
] D
[macro
]
8310 # Replace #undef with comments. This is necessary, for example,
8311 # in the case of _POSIX_SOURCE, which is predefined and required
8312 # on some systems where configure will not decide to define it.
8313 if (defundef
== "undef") {
8314 print
"/*", prefix defundef
, macro
, "*/"
8322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8323 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
8324 fi # test -n "$CONFIG_HEADERS"
8327 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8332 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8334 case $ac_mode$ac_tag in
8336 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8337 :[FH
]-) ac_tag
=-:-;;
8338 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8355 -) ac_f
="$ac_tmp/stdin";;
8356 *) # Look for the file first in the build tree, then in the source tree
8357 # (if the path is not absolute). The absolute path cannot be DOS-style,
8358 # because $ac_f cannot contain `:'.
8362 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8364 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8366 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8367 as_fn_append ac_file_inputs
" '$ac_f'"
8370 # Let's still pretend it is `configure' which instantiates (i.e., don't
8371 # use $as_me), people would be surprised to read:
8372 # /* config.h. Generated by config.status. */
8373 configure_input
='Generated from '`
8374 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8376 if test x
"$ac_file" != x-
; then
8377 configure_input
="$ac_file. $configure_input"
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8379 $as_echo "$as_me: creating $ac_file" >&6;}
8381 # Neutralize special characters interpreted by sed in replacement strings.
8382 case $configure_input in #(
8383 *\
&* |
*\|
* |
*\\* )
8384 ac_sed_conf_input
=`$as_echo "$configure_input" |
8385 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8386 *) ac_sed_conf_input
=$configure_input;;
8390 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
8391 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
8396 ac_dir
=`$as_dirname -- "$ac_file" ||
8397 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8398 X"$ac_file" : 'X\(//\)[^/]' \| \
8399 X"$ac_file" : 'X\(//\)$' \| \
8400 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8401 $as_echo X"$ac_file" |
8402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8419 as_dir
="$ac_dir"; as_fn_mkdir_p
8423 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8425 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8426 # A ".." for each directory in $ac_dir_suffix.
8427 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8428 case $ac_top_builddir_sub in
8429 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8430 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8433 ac_abs_top_builddir
=$ac_pwd
8434 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8435 # for backward compatibility:
8436 ac_top_builddir
=$ac_top_build_prefix
8439 .
) # We are building in place.
8441 ac_top_srcdir
=$ac_top_builddir_sub
8442 ac_abs_top_srcdir
=$ac_pwd ;;
8443 [\\/]* | ?
:[\\/]* ) # Absolute name.
8444 ac_srcdir
=$srcdir$ac_dir_suffix;
8445 ac_top_srcdir
=$srcdir
8446 ac_abs_top_srcdir
=$srcdir ;;
8448 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8449 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8450 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8452 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8462 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8463 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8467 [\\/$
]* | ?
:[\\/]* ) ;;
8468 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
8473 # Neutralize VPATH when `$srcdir' = `.'.
8474 # Shell code in configure.ac might set extrasub.
8475 # FIXME: do we really want to maintain this feature?
8476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8477 ac_sed_extra="$ac_vpsub
8480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8482 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8483 s|@configure_input@|
$ac_sed_conf_input|
;t t
8484 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8485 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8486 s
&@srcdir@
&$ac_srcdir&;t t
8487 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8488 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8489 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8490 s
&@builddir@
&$ac_builddir&;t t
8491 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8492 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8493 s
&@INSTALL@
&$ac_INSTALL&;t t
8494 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
8496 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8497 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8500 rm -f "$ac_tmp/stdin
"
8502 -) cat "$ac_tmp/out
" && rm -f "$ac_tmp/out
";;
8503 *) rm -f "$ac_file" && mv "$ac_tmp/out
" "$ac_file";;
8505 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8511 if test x"$ac_file" != x-; then
8513 $as_echo "/* $configure_input */" \
8514 && eval '$AWK -f "$ac_tmp/defines.
awk"' "$ac_file_inputs"
8515 } >"$ac_tmp/config.h
" \
8516 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8517 if diff "$ac_file" "$ac_tmp/config.h
" >/dev/null 2>&1; then
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged
" >&5
8519 $as_echo "$as_me: $ac_file is unchanged
" >&6;}
8522 mv "$ac_tmp/config.h
" "$ac_file" \
8523 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8526 $as_echo "/* $configure_input */" \
8527 && eval '$AWK -f "$ac_tmp/defines.
awk"' "$ac_file_inputs" \
8528 || as_fn_error $? "could not create
-" "$LINENO" 5
8530 # Compute "$ac_file"'s index in $config_headers.
8533 for _am_header in $config_headers :; do
8535 $_am_arg | $_am_arg:* )
8538 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8541 echo "timestamp
for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8542 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8543 X"$_am_arg" : 'X\(//\)[^/]' \| \
8544 X"$_am_arg" : 'X\(//\)$' \| \
8545 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8546 $as_echo X"$_am_arg" |
8547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8563 s/.*/./; q'`/stamp-h$_am_stamp_count
8566 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing
$ac_file commands
" >&5
8567 $as_echo "$as_me: executing
$ac_file commands
" >&6;}
8572 case $ac_file$ac_mode in
8573 "depfiles
":C) test x"$AMDEP_TRUE" != x"" || {
8574 # Older Autoconf quotes --file arguments for eval, but not when files
8575 # are listed without --file. Let's play safe and only enable the eval
8576 # if we detect the quoting.
8577 case $CONFIG_FILES in
8578 *\'*) eval set x "$CONFIG_FILES" ;;
8579 *) set x $CONFIG_FILES ;;
8584 # Strip MF so we end up with the name of the file.
8585 mf=`echo "$mf" | sed -e 's/:.*$//'`
8586 # Check whether this is an Automake generated Makefile or not.
8587 # We used to match only the files named 'Makefile.in', but
8588 # some people rename them; so instead we look at the file content.
8589 # Grep'ing the first line is not enough: some people post-process
8590 # each Makefile.in and add a new line on top of each file to say so.
8591 # Grep'ing the whole file is not good either: AIX grep has a line
8592 # limit of 2048, but all sed's we know have understand at least 4000.
8593 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8594 dirpart=`$as_dirname -- "$mf" ||
8595 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8596 X"$mf" : 'X\(//\)[^/]' \| \
8597 X"$mf" : 'X\(//\)$' \| \
8598 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8620 # Extract the definition of DEPDIR, am__include, and am__quote
8621 # from the Makefile without running 'make'.
8622 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8623 test -z "$DEPDIR" && continue
8624 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8625 test -z "$am__include" && continue
8626 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8627 # Find all dependency output files, they are included files with
8628 # $(DEPDIR) in their names. We invoke sed twice because it is the
8629 # simplest approach to changing $(DEPDIR) to its actual value in the
8631 for file in `sed -n "
8632 s
/^
$am__include $am__quote\
(.
*(DEPDIR
).
*\
)$am__quote"'$/\1/p' <"$mf" | \
8633 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8634 # Make sure the directory exists.
8635 test -f "$dirpart/$file" && continue
8636 fdir=`$as_dirname -- "$file" ||
8637 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8638 X"$file" : 'X\(//\)[^/]' \| \
8639 X"$file" : 'X\(//\)$' \| \
8640 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8659 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8660 # echo "creating
$dirpart/$file"
8661 echo '# dummy' > "$dirpart/$file"
8673 ac_clean_files=$ac_clean_files_save
8675 test $ac_write_fail = 0 ||
8676 as_fn_error $? "write failure creating
$CONFIG_STATUS" "$LINENO" 5
8679 # configure is writing to config.log, and then calls config.status.
8680 # config.status does its own redirection, appending to config.log.
8681 # Unfortunately, on DOS this fails, as config.log is still kept open
8682 # by configure, so config.status won't be able to write to it; its
8683 # output is simply discarded. So we exec the FD to /dev/null,
8684 # effectively closing config.log, so it can be properly (re)opened and
8685 # appended to by config.status. When coming back to configure, we
8686 # need to make the FD available again.
8687 if test "$no_create" != yes; then
8689 ac_config_status_args=
8690 test "$silent" = yes &&
8691 ac_config_status_args="$ac_config_status_args --quiet"
8693 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8695 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8696 # would make configure fail if this is the last instruction.
8697 $ac_cs_success || as_fn_exit 1
8699 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: unrecognized options
: $ac_unrecognized_opts" >&5
8701 $as_echo "$as_me: WARNING
: unrecognized options
: $ac_unrecognized_opts" >&2;}
8705 if test "$enable_dhcpv4o6" = "yes"; then
8706 DHCP_VERSIONS="DHCPv4
, DHCPv6 and DHCPv4-over-DHCPv6
"
8707 elif test "$enable_dhcpv6" != "no
"; then
8708 DHCP_VERSIONS="DHCPv4 and DHCPv6
"
8710 DHCP_VERSIONS="DHCPv4
"
8715 if test $? -ne 0; then
8716 as_fn_error $? "*** util
/bindvar.sh failed
" "$LINENO" 5
8719 if test $? -ne 0; then
8723 cat > config.report << END
8725 ISC DHCP source configure results:
8726 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
8730 Version: $PACKAGE_VERSION
8738 DHCP versions: $DHCP_VERSIONS
8741 debug: $enable_debug
8742 failover: $enable_failover
8743 execute: $enable_execute
8744 binary-leases: $enable_binary_leases
8745 dhcpv6: $enable_dhcpv6
8746 delayed-ack: $enable_delayed_ack
8749 ATF unittests : $atf_path
8752 # TODO: Add Perl system tests
8754 if test "$atf_path" != "no
"
8756 echo "ATF_CFLAGS
: $ATF_CFLAGS" >> config.report
8757 echo "ATF_LDFLAGS
: $ATF_LDFLAGS" >> config.report
8758 echo "ATF_BIN
: $ATF_BIN" >> config.report
8765 echo Now you can type "make" to build ISC DHCP