2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for DHCP 4.4.0-dev.
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.4.0-dev'
584 PACKAGE_STRING
='DHCP 4.4.0-dev'
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
634 DISTCHECK_LIBBIND_CONFIGURE_FLAG
644 DISTCHECK_ATF_CONFIGURE_FLAG
686 MAINTAINER_MODE_FALSE
700 INSTALL_STRIP_PROGRAM
742 program_transform_name
755 enable_option_checking
757 enable_maintainer_mode
758 enable_dependency_tracking
770 enable_secs_byteorder
788 with_bind_extra_config
796 ac_precious_vars
='build_alias
807 # Initialize some variables set by options.
809 ac_init_version
=false
810 ac_unrecognized_opts
=
812 # The variables have the same names as the options, with
813 # dashes changed to underlines.
821 program_transform_name
=s
,x
,x
,
829 # Installation directory options.
830 # These are left unexpanded so users can "make install exec_prefix=/foo"
831 # and all the variables that are supposed to be based on exec_prefix
832 # by default will actually change.
833 # Use braces instead of parens because sh, perl, etc. also accept them.
834 # (The list follows the same order as the GNU Coding Standards.)
835 bindir
='${exec_prefix}/bin'
836 sbindir
='${exec_prefix}/sbin'
837 libexecdir
='${exec_prefix}/libexec'
838 datarootdir
='${prefix}/share'
839 datadir
='${datarootdir}'
840 sysconfdir
='${prefix}/etc'
841 sharedstatedir
='${prefix}/com'
842 localstatedir
='${prefix}/var'
843 includedir
='${prefix}/include'
844 oldincludedir
='/usr/include'
845 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
846 infodir
='${datarootdir}/info'
851 libdir
='${exec_prefix}/lib'
852 localedir
='${datarootdir}/locale'
853 mandir
='${datarootdir}/man'
859 # If the previous option needs an argument, assign it.
860 if test -n "$ac_prev"; then
861 eval $ac_prev=\
$ac_option
867 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872 # Accept the important Cygnus configure options, so we can diagnose typos.
874 case $ac_dashdash$ac_option in
878 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
880 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
883 -build |
--build |
--buil |
--bui |
--bu)
884 ac_prev
=build_alias
;;
885 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
886 build_alias
=$ac_optarg ;;
888 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
889 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
890 ac_prev
=cache_file
;;
891 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
892 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
893 cache_file
=$ac_optarg ;;
896 cache_file
=config.cache
;;
898 -datadir |
--datadir |
--datadi |
--datad)
900 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
901 datadir
=$ac_optarg ;;
903 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
904 |
--dataroo |
--dataro |
--datar)
905 ac_prev
=datarootdir
;;
906 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
907 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
908 datarootdir
=$ac_optarg ;;
910 -disable-* |
--disable-*)
911 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
914 as_fn_error $?
"invalid feature name: $ac_useropt"
915 ac_useropt_orig
=$ac_useropt
916 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
921 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922 ac_unrecognized_sep
=', ';;
924 eval enable_
$ac_useropt=no
;;
926 -docdir |
--docdir |
--docdi |
--doc |
--do)
928 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
931 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
933 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
936 -enable-* |
--enable-*)
937 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
940 as_fn_error $?
"invalid feature name: $ac_useropt"
941 ac_useropt_orig
=$ac_useropt
942 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
947 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948 ac_unrecognized_sep
=', ';;
950 eval enable_
$ac_useropt=\
$ac_optarg ;;
952 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
953 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
954 |
--exec |
--exe |
--ex)
955 ac_prev
=exec_prefix
;;
956 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
957 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
958 |
--exec=* |
--exe=* |
--ex=*)
959 exec_prefix
=$ac_optarg ;;
961 -gas |
--gas |
--ga |
--g)
962 # Obsolete; use --with-gas.
965 -help |
--help |
--hel |
--he |
-h)
967 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
968 ac_init_help
=recursive
;;
969 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
970 ac_init_help
=short
;;
972 -host |
--host |
--hos |
--ho)
973 ac_prev
=host_alias
;;
974 -host=* |
--host=* |
--hos=* |
--ho=*)
975 host_alias
=$ac_optarg ;;
977 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
979 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
981 htmldir
=$ac_optarg ;;
983 -includedir |
--includedir |
--includedi |
--included |
--include \
984 |
--includ |
--inclu |
--incl |
--inc)
985 ac_prev
=includedir
;;
986 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
987 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
988 includedir
=$ac_optarg ;;
990 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
992 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
993 infodir
=$ac_optarg ;;
995 -libdir |
--libdir |
--libdi |
--libd)
997 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1000 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1001 |
--libexe |
--libex |
--libe)
1002 ac_prev
=libexecdir
;;
1003 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1004 |
--libexe=* |
--libex=* |
--libe=*)
1005 libexecdir
=$ac_optarg ;;
1007 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1008 ac_prev
=localedir
;;
1009 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1010 localedir
=$ac_optarg ;;
1012 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1013 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1014 ac_prev
=localstatedir
;;
1015 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1016 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1017 localstatedir
=$ac_optarg ;;
1019 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1021 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1022 mandir
=$ac_optarg ;;
1024 -nfp |
--nfp |
--nf)
1025 # Obsolete; use --without-fp.
1028 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1029 |
--no-cr |
--no-c |
-n)
1032 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1033 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1036 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1037 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1038 |
--oldin |
--oldi |
--old |
--ol |
--o)
1039 ac_prev
=oldincludedir
;;
1040 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1041 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1042 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1043 oldincludedir
=$ac_optarg ;;
1045 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1047 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1048 prefix
=$ac_optarg ;;
1050 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1051 |
--program-pre |
--program-pr |
--program-p)
1052 ac_prev
=program_prefix
;;
1053 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1054 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1055 program_prefix
=$ac_optarg ;;
1057 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1058 |
--program-suf |
--program-su |
--program-s)
1059 ac_prev
=program_suffix
;;
1060 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1061 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1062 program_suffix
=$ac_optarg ;;
1064 -program-transform-name |
--program-transform-name \
1065 |
--program-transform-nam |
--program-transform-na \
1066 |
--program-transform-n |
--program-transform- \
1067 |
--program-transform |
--program-transfor \
1068 |
--program-transfo |
--program-transf \
1069 |
--program-trans |
--program-tran \
1070 |
--progr-tra |
--program-tr |
--program-t)
1071 ac_prev
=program_transform_name
;;
1072 -program-transform-name=* |
--program-transform-name=* \
1073 |
--program-transform-nam=* |
--program-transform-na=* \
1074 |
--program-transform-n=* |
--program-transform-=* \
1075 |
--program-transform=* |
--program-transfor=* \
1076 |
--program-transfo=* |
--program-transf=* \
1077 |
--program-trans=* |
--program-tran=* \
1078 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1079 program_transform_name
=$ac_optarg ;;
1081 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1083 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1084 pdfdir
=$ac_optarg ;;
1086 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1088 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1091 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1092 |
-silent |
--silent |
--silen |
--sile |
--sil)
1095 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1097 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1099 sbindir
=$ac_optarg ;;
1101 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1102 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1103 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1105 ac_prev
=sharedstatedir
;;
1106 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1107 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1108 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1110 sharedstatedir
=$ac_optarg ;;
1112 -site |
--site |
--sit)
1114 -site=* |
--site=* |
--sit=*)
1117 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1119 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1120 srcdir
=$ac_optarg ;;
1122 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1123 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1124 ac_prev
=sysconfdir
;;
1125 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1126 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1127 sysconfdir
=$ac_optarg ;;
1129 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1130 ac_prev
=target_alias
;;
1131 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1132 target_alias
=$ac_optarg ;;
1134 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1137 -version |
--version |
--versio |
--versi |
--vers |
-V)
1138 ac_init_version
=: ;;
1141 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1144 as_fn_error $?
"invalid package name: $ac_useropt"
1145 ac_useropt_orig
=$ac_useropt
1146 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1151 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152 ac_unrecognized_sep
=', ';;
1154 eval with_
$ac_useropt=\
$ac_optarg ;;
1156 -without-* |
--without-*)
1157 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1160 as_fn_error $?
"invalid package name: $ac_useropt"
1161 ac_useropt_orig
=$ac_useropt
1162 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1167 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168 ac_unrecognized_sep
=', ';;
1170 eval with_
$ac_useropt=no
;;
1173 # Obsolete; use --with-x.
1176 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1177 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1178 ac_prev
=x_includes
;;
1179 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1180 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1181 x_includes
=$ac_optarg ;;
1183 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1184 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1185 ac_prev
=x_libraries
;;
1186 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1187 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1188 x_libraries
=$ac_optarg ;;
1190 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1191 Try \`$0 --help' for more information"
1195 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1196 # Reject names that are not valid shell variable names.
1197 case $ac_envvar in #(
1198 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1199 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1201 eval $ac_envvar=\
$ac_optarg
1202 export $ac_envvar ;;
1205 # FIXME: should be removed in autoconf 3.0.
1206 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1208 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1215 if test -n "$ac_prev"; then
1216 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1217 as_fn_error $?
"missing argument to $ac_option"
1220 if test -n "$ac_unrecognized_opts"; then
1221 case $enable_option_checking in
1223 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1224 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228 # Check all directory arguments for consistency.
1229 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230 datadir sysconfdir sharedstatedir localstatedir includedir \
1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232 libdir localedir mandir
1234 eval ac_val
=\$
$ac_var
1235 # Remove trailing slashes.
1238 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239 eval $ac_var=\
$ac_val;;
1241 # Be sure to have absolute directory names.
1243 [\\/$
]* | ?
:[\\/]* ) continue;;
1244 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1246 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1249 # There might be people who depend on the old broken behavior: `$host'
1250 # used to hold the argument of --host etc.
1251 # FIXME: To remove some day.
1254 target
=$target_alias
1256 # FIXME: To remove some day.
1257 if test "x$host_alias" != x
; then
1258 if test "x$build_alias" = x
; then
1259 cross_compiling
=maybe
1260 elif test "x$build_alias" != "x$host_alias"; then
1266 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1268 test "$silent" = yes && exec 6>/dev
/null
1271 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1272 ac_ls_di
=`ls -di .` &&
1273 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1274 as_fn_error $?
"working directory cannot be determined"
1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276 as_fn_error $?
"pwd does not report name of working directory"
1279 # Find the source files, if location was not specified.
1280 if test -z "$srcdir"; then
1281 ac_srcdir_defaulted
=yes
1282 # Try the directory containing this script, then the parent directory.
1283 ac_confdir
=`$as_dirname -- "$as_myself" ||
1284 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285 X"$as_myself" : 'X\(//\)[^/]' \| \
1286 X"$as_myself" : 'X\(//\)$' \| \
1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288 $as_echo X"$as_myself" |
1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1311 ac_srcdir_defaulted
=no
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1315 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1317 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1321 # When building in place, set srcdir=.
1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 # Remove unnecessary trailing slashes from srcdir.
1326 # Double slashes in file names in object file debugging info
1327 # mess up M-x gdb in Emacs.
1329 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331 for ac_var
in $ac_precious_vars; do
1332 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1333 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1334 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1335 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1339 # Report the --help message.
1341 if test "$ac_init_help" = "long"; then
1342 # Omit some internal or obsolete options to make the list less imposing.
1343 # This message is too long to be a string in the A/UX 3.1 sh.
1345 \`configure' configures DHCP 4.4.0-dev to adapt to many kinds of systems.
1347 Usage: $0 [OPTION]... [VAR=VALUE]...
1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350 VAR=VALUE. See below for descriptions of some of the useful variables.
1352 Defaults for the options are specified in brackets.
1355 -h, --help display this help and exit
1356 --help=short display options specific to this package
1357 --help=recursive display the short help of all the included packages
1358 -V, --version display version information and exit
1359 -q, --quiet, --silent do not print \`checking ...' messages
1360 --cache-file=FILE cache test results in FILE [disabled]
1361 -C, --config-cache alias for \`--cache-file=config.cache'
1362 -n, --no-create do not create output files
1363 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1365 Installation directories:
1366 --prefix=PREFIX install architecture-independent files in PREFIX
1367 [$ac_default_prefix]
1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1371 By default, \`make install' will install all the files in
1372 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1373 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374 for instance \`--prefix=\$HOME'.
1376 For better control, use the options below.
1378 Fine tuning of the installation directories:
1379 --bindir=DIR user executables [EPREFIX/bin]
1380 --sbindir=DIR system admin executables [EPREFIX/sbin]
1381 --libexecdir=DIR program executables [EPREFIX/libexec]
1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1385 --libdir=DIR object code libraries [EPREFIX/lib]
1386 --includedir=DIR C header files [PREFIX/include]
1387 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1388 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1389 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1390 --infodir=DIR info documentation [DATAROOTDIR/info]
1391 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1392 --mandir=DIR man documentation [DATAROOTDIR/man]
1393 --docdir=DIR documentation root [DATAROOTDIR/doc/dhcp]
1394 --htmldir=DIR html documentation [DOCDIR]
1395 --dvidir=DIR dvi documentation [DOCDIR]
1396 --pdfdir=DIR pdf documentation [DOCDIR]
1397 --psdir=DIR ps documentation [DOCDIR]
1403 --program-prefix=PREFIX prepend PREFIX to installed program names
1404 --program-suffix=SUFFIX append SUFFIX to installed program names
1405 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1408 --build=BUILD configure
for building on BUILD
[guessed
]
1409 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1413 if test -n "$ac_init_help"; then
1414 case $ac_init_help in
1415 short | recursive
) echo "Configuration of DHCP 4.4.0-dev:";;
1420 --disable-option-checking ignore unrecognized
--enable/--with options
1421 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1422 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1423 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1424 --disable-silent-rules verbose build output
(undo
: "make V=0")
1425 --enable-maintainer-mode
1426 enable make rules and dependencies not useful
(and
1427 sometimes confusing
) to the casual installer
1428 --enable-dependency-tracking
1429 do not reject slow dependency extractors
1430 --disable-dependency-tracking
1431 speeds up one-time build
1432 --enable-debug create a debug-only version of the software
(default
1434 --enable-failover enable support
for failover
(default is
yes)
1435 --enable-execute enable support
for execute
() in config
(default is
1437 --enable-tracing enable support
for server activity tracing
(default
1439 --enable-delayed-ack queues multiple DHCPACK replies
(default is no
)
1440 --enable-dhcpv6 enable support
for DHCPv6
(default is
yes)
1441 --enable-dhcpv4o6 enable support
for DHCPv4-over-DHCPv6
(default is
1443 --enable-paranoia enable support
for chroot
/setuid
(default is no
)
1444 --enable-early-chroot enable chrooting prior to configuration
(default is
1446 --enable-ipv4-pktinfo enable use of pktinfo on IPv4 sockets
(default is
1448 --enable-use-sockets use the standard BSD socket API
(default is no
)
1449 --enable-secs-byteorder Correct bad byteorders
in the secs field
(default is
1451 --enable-log-pid Include PIDs
in syslog messages
(default is no
).
1452 --enable-binary-leases enable support
for binary insertion of leases
1454 --enable-kqueue use BSD kqueue
(default is no
)
1455 --enable-epoll use Linux epoll
(default is no
)
1456 --enable-devpoll use
/dev
/poll
(default is no
)
1457 --enable-bind-install install bind includes and libraries
(default is no
).
1460 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1461 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1462 --with-atf=PATH specify location where atf was installed
(or
"bind")
1463 --with-srv-lease-file=PATH
1464 File
for dhcpd leases
(default is
1465 LOCALSTATEDIR
/db
/dhcpd.leases
)
1466 --with-srv6-lease-file=PATH
1467 File
for dhcpd6 leases
(default is
1468 LOCALSTATEDIR
/db
/dhcpd6.leases
)
1469 --with-cli-lease-file=PATH
1470 File
for dhclient leases
(default is
1471 LOCALSTATEDIR
/db
/dhclient.leases
)
1472 --with-cli6-lease-file=PATH
1473 File
for dhclient6 leases
(default is
1474 LOCALSTATEDIR
/db
/dhclient6.leases
)
1475 --with-srv-pid-file=PATH
1476 File
for dhcpd process information
(default is
1477 LOCALSTATEDIR
/run
/dhcpd.pid
)
1478 --with-srv6-pid-file=PATH
1479 File
for dhcpd6 process information
(default is
1480 LOCALSTATEDIR
/run
/dhcpd6.pid
)
1481 --with-cli-pid-file=PATH
1482 File
for dhclient process information
(default is
1483 LOCALSTATEDIR
/run
/dhclient.pid
)
1484 --with-cli6-pid-file=PATH
1485 File
for dhclient6 process information
(default is
1486 LOCALSTATEDIR
/run
/dhclient6.pid
)
1487 --with-relay-pid-file=PATH
1488 File
for dhcrelay process information
(default is
1489 LOCALSTATEDIR
/run
/dhcrelay.pid
)
1490 --with-relay6-pid-file=PATH
1491 File
for dhcrelay6 process information
(default is
1492 LOCALSTATEDIR
/run
/dhcrelay6.pid
)
1493 --with-randomdev=PATH Path
for random device
(default is
/dev
/random
)
1494 --with-bind-extra-config
1495 configure
bind librairies with some extra options
1497 --with-libbind=PATH
bind includes and libraries are
in PATH
1498 --with-ldap enable OpenLDAP support
in dhcpd
(default is no
)
1499 --with-ldapcrypto enable OpenLDAP crypto support
in dhcpd
(default is
1501 --with-ldap-gssapi enable krb
5/gssapi authentication
for OpenLDAP
in
1502 dhcpd
(default is no
)
1503 --with-ldapcasa enable LDAP CASA auth support
in dhcpd
(default is
1506 Some influential environment variables
:
1507 CC C compiler
command
1508 CFLAGS C compiler flags
1509 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1510 nonstandard directory
<lib dir
>
1511 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1512 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1513 you have headers
in a nonstandard directory
<include dir
>
1516 Use these variables to override the choices made by
`configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1519 Report bugs to <dhcp-users@isc.org>.
1524 if test "$ac_init_help" = "recursive"; then
1525 # If there are subdirs, report their specific --help.
1526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527 test -d "$ac_dir" ||
1528 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1536 # A ".." for each directory in $ac_dir_suffix.
1537 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1538 case $ac_top_builddir_sub in
1539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1543 ac_abs_top_builddir=$ac_pwd
1544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir=$ac_top_build_prefix
1549 .) # We are building in place.
1551 ac_top_srcdir=$ac_top_builddir_sub
1552 ac_abs_top_srcdir=$ac_pwd ;;
1553 [\\/]* | ?:[\\/]* ) # Absolute name.
1554 ac_srcdir=$srcdir$ac_dir_suffix;
1555 ac_top_srcdir=$srcdir
1556 ac_abs_top_srcdir=$srcdir ;;
1558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559 ac_top_srcdir=$ac_top_build_prefix$srcdir
1560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564 cd "$ac_dir" || { ac_status=$?; continue; }
1565 # Check for guested configure.
1566 if test -f "$ac_srcdir/configure.gnu"; then
1568 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569 elif test -f "$ac_srcdir/configure"; then
1571 $SHELL "$ac_srcdir/configure" --help=recursive
1573 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 cd "$ac_pwd" || { ac_status=$?; break; }
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1582 DHCP configure 4.4.0-dev
1583 generated by GNU Autoconf 2.69
1585 Copyright (C) 2012 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1592 ## ------------------------ ##
1593 ## Autoconf initialization. ##
1594 ## ------------------------ ##
1596 # ac_fn_c_try_compile LINENO
1597 # --------------------------
1598 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_compile ()
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 rm -f conftest.$ac_objext
1603 if { { ac_try="$ac_compile"
1605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1606 *) ac_try_echo
=$ac_try;;
1608 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_compile") 2>conftest.err
1612 if test -s conftest.err
; then
1613 grep -v '^ *+' conftest.err
>conftest.er1
1614 cat conftest.er1
>&5
1615 mv -f conftest.er1 conftest.err
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } && {
1619 test -z "$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 } && test -s conftest.
$ac_objext; then :
1624 $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.
$ac_ext >&5
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630 as_fn_set_status
$ac_retval
1632 } # ac_fn_c_try_compile
1634 # ac_fn_c_try_cpp LINENO
1635 # ----------------------
1636 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1640 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } > conftest.i && {
1656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1671 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1672 # -------------------------------------------------------
1673 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1674 # the include files in INCLUDES and setting the cache variable VAR
1676 ac_fn_c_check_header_mongrel ()
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if eval \${$3+:} false; then :
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 $as_echo_n "checking for $2... " >&6; }
1682 if eval \${$3+:} false; then :
1683 $as_echo_n "(cached) " >&6
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 $as_echo "$ac_res" >&6; }
1689 # Is the header compilable?
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1691 $as_echo_n "checking $2 usability... " >&6; }
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h. */
1697 if ac_fn_c_try_compile "$LINENO"; then :
1698 ac_header_compiler=yes
1700 ac_header_compiler=no
1702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1704 $as_echo "$ac_header_compiler" >&6; }
1706 # Is the header present?
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1708 $as_echo_n "checking $2 presence... " >&6; }
1709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h. */
1713 if ac_fn_c_try_cpp "$LINENO"; then :
1714 ac_header_preproc=yes
1716 ac_header_preproc=no
1718 rm -f conftest.err conftest.i conftest.$ac_ext
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1720 $as_echo "$ac_header_preproc" >&6; }
1722 # So? What about this header?
1723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1726 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1728 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1732 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1734 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1736 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1738 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1740 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1741 ( $as_echo "## --------------------------------- ##
1742 ## Report this to dhcp-users@isc.org ##
1743 ## --------------------------------- ##"
1744 ) | sed "s/^/$as_me: WARNING: /" >&2
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if eval \${$3+:} false; then :
1750 $as_echo_n "(cached) " >&6
1752 eval "$3=\$ac_header_compiler"
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 } # ac_fn_c_check_header_mongrel
1762 # ac_fn_c_try_run LINENO
1763 # ----------------------
1764 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1765 # that executables *can* be run.
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { { ac_try="$ac_link"
1771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1772 *) ac_try_echo
=$ac_try;;
1774 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>&5
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1780 { { case "(($ac_try" in
1781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_try") 2>&5
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; }; }; then :
1792 $as_echo "$as_me: program exited with status $ac_status" >&5
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1796 ac_retval=$ac_status
1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status $ac_retval
1804 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1805 # -------------------------------------------------------
1806 # Tests whether HEADER exists and can be compiled using the include files in
1807 # INCLUDES, setting the cache variable VAR accordingly.
1808 ac_fn_c_check_header_compile ()
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval \${$3+:} false; then :
1814 $as_echo_n "(cached) " >&6
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1821 if ac_fn_c_try_compile "$LINENO"; then :
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 } # ac_fn_c_check_header_compile
1835 # ac_fn_c_find_intX_t LINENO BITS VAR
1836 # -----------------------------------
1837 # Finds a signed integer type with width BITS, setting cache variable VAR
1839 ac_fn_c_find_intX_t ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1843 $as_echo_n "checking for int$2_t... " >&6; }
1844 if eval \${$3+:} false; then :
1845 $as_echo_n "(cached) " >&6
1848 # Order is important - never check a type that is potentially smaller
1849 # than half of the expected target width.
1850 for ac_type in int$2_t 'int' 'long int' \
1851 'long long int' 'short int' 'signed char'; do
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1854 $ac_includes_default
1855 enum { N = $2 / 2 - 1 };
1859 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1861 return test_array [0];
1867 if ac_fn_c_try_compile "$LINENO"; then :
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1870 $ac_includes_default
1871 enum { N = $2 / 2 - 1 };
1875 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1876 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1878 return test_array [0];
1884 if ac_fn_c_try_compile "$LINENO"; then :
1891 eval "$3=\$ac_type" ;;
1894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897 if eval test \"x\$"$3"\" = x"no"; then :
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 } # ac_fn_c_find_intX_t
1911 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1912 # -------------------------------------------
1913 # Tests whether TYPE exists after having included INCLUDES, setting cache
1914 # variable VAR accordingly.
1915 ac_fn_c_check_type ()
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if eval \${$3+:} false; then :
1921 $as_echo_n "(cached) " >&6
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1936 if ac_fn_c_try_compile "$LINENO"; then :
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1949 if ac_fn_c_try_compile "$LINENO"; then :
1954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 } # ac_fn_c_check_type
1965 # ac_fn_c_find_uintX_t LINENO BITS VAR
1966 # ------------------------------------
1967 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1969 ac_fn_c_find_uintX_t ()
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1973 $as_echo_n "checking for uint$2_t... " >&6; }
1974 if eval \${$3+:} false; then :
1975 $as_echo_n "(cached) " >&6
1978 # Order is important - never check a type that is potentially smaller
1979 # than half of the expected target width.
1980 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1981 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1984 $ac_includes_default
1988 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1990 return test_array [0];
1996 if ac_fn_c_try_compile "$LINENO"; then :
2001 eval "$3=\$ac_type" ;;
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005 if eval test \"x\$"$3"\" = x"no"; then :
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014 $as_echo "$ac_res" >&6; }
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017 } # ac_fn_c_find_uintX_t
2019 # ac_fn_c_try_link LINENO
2020 # -----------------------
2021 # Try to link conftest.$ac_ext, and return whether this succeeded.
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 rm -f conftest.$ac_objext conftest$ac_exeext
2026 if { { ac_try="$ac_link"
2028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2029 *) ac_try_echo
=$ac_try;;
2031 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2032 $as_echo "$ac_try_echo"; } >&5
2033 (eval "$ac_link") 2>conftest.err
2035 if test -s conftest.err
; then
2036 grep -v '^ *+' conftest.err
>conftest.er1
2037 cat conftest.er1
>&5
2038 mv -f conftest.er1 conftest.err
2040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2041 test $ac_status = 0; } && {
2042 test -z "$ac_c_werror_flag" ||
2043 test ! -s conftest.err
2044 } && test -s conftest
$ac_exeext && {
2045 test "$cross_compiling" = yes ||
2046 test -x conftest
$ac_exeext
2050 $as_echo "$as_me: failed program was:" >&5
2051 sed 's/^/| /' conftest.
$ac_ext >&5
2055 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2056 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2057 # interfere with the next link command; also delete a directory that is
2058 # left behind by Apple's compiler. We do this before executing the actions.
2059 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061 as_fn_set_status
$ac_retval
2063 } # ac_fn_c_try_link
2065 # ac_fn_c_check_func LINENO FUNC VAR
2066 # ----------------------------------
2067 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2068 ac_fn_c_check_func
()
2070 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \
${$3+:} false
; then :
2074 $as_echo_n "(cached) " >&6
2076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2080 #define $2 innocuous_$2
2082 /* System header to define __stub macros and hopefully few prototypes,
2083 which can conflict with char $2 (); below.
2084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2085 <limits.h> exists even on freestanding compilers. */
2088 # include <limits.h>
2090 # include <assert.h>
2095 /* Override any GCC internal prototype to avoid an error.
2096 Use char because int might match the return type of a GCC
2097 builtin and then its argument prototype would still apply. */
2102 /* The GNU C library defines this for functions which it implements
2103 to always fail with ENOSYS. Some functions are actually named
2104 something starting with __ and the normal name is an alias. */
2105 #if defined __stub_$2 || defined __stub___$2
2117 if ac_fn_c_try_link
"$LINENO"; then :
2122 rm -f core conftest.err conftest.
$ac_objext \
2123 conftest
$ac_exeext conftest.
$ac_ext
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127 $as_echo "$ac_res" >&6; }
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130 } # ac_fn_c_check_func
2132 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2133 # ----------------------------------------------------
2134 # Tries to find if the field MEMBER exists in type AGGR, after including
2135 # INCLUDES, setting cache variable VAR accordingly.
2136 ac_fn_c_check_member
()
2138 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2140 $as_echo_n "checking for $2.$3... " >&6; }
2141 if eval \
${$4+:} false
; then :
2142 $as_echo_n "(cached) " >&6
2144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2157 if ac_fn_c_try_compile
"$LINENO"; then :
2160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2167 if (sizeof ac_aggr.$3)
2173 if ac_fn_c_try_compile
"$LINENO"; then :
2178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184 $as_echo "$ac_res" >&6; }
2185 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2187 } # ac_fn_c_check_member
2189 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2190 # --------------------------------------------
2191 # Tries to find the compile-time value of EXPR in a program that includes
2192 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2194 ac_fn_c_compute_int
()
2196 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2197 if test "$cross_compiling" = yes; then
2198 # Depending upon the size, compute the lo and hi bounds.
2199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2205 static int test_array [1 - 2 * !(($2) >= 0)];
2207 return test_array [0];
2213 if ac_fn_c_try_compile
"$LINENO"; then :
2216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h. */
2222 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2224 return test_array [0];
2230 if ac_fn_c_try_compile
"$LINENO"; then :
2231 ac_hi
=$ac_mid; break
2233 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2234 if test $ac_lo -le $ac_mid; then
2238 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2249 static int test_array [1 - 2 * !(($2) < 0)];
2251 return test_array [0];
2257 if ac_fn_c_try_compile
"$LINENO"; then :
2260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2266 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2268 return test_array [0];
2274 if ac_fn_c_try_compile
"$LINENO"; then :
2275 ac_lo
=$ac_mid; break
2277 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2278 if test $ac_mid -le $ac_hi; then
2282 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2292 # Binary search between lo and hi bounds.
2293 while test "x$ac_lo" != "x$ac_hi"; do
2294 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2301 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2303 return test_array [0];
2309 if ac_fn_c_try_compile
"$LINENO"; then :
2312 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2317 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2324 static long int longval () { return $2; }
2325 static unsigned long int ulongval () { return $2; }
2332 FILE *f = fopen ("conftest.val", "w");
2337 long int i = longval ();
2340 fprintf (f, "%ld", i);
2344 unsigned long int i = ulongval ();
2347 fprintf (f, "%lu", i);
2349 /* Do not output a trailing newline, as this causes \r\n confusion
2350 on some platforms. */
2351 return ferror (f) || fclose (f) != 0;
2357 if ac_fn_c_try_run
"$LINENO"; then :
2358 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2362 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2363 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2367 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368 as_fn_set_status
$ac_retval
2370 } # ac_fn_c_compute_int
2371 cat >config.log
<<_ACEOF
2372 This file contains any messages produced by compilers while
2373 running configure, to aid debugging if configure makes a mistake.
2375 It was created by DHCP $as_me 4.4.0-dev, which was
2376 generated by GNU Autoconf 2.69. Invocation command line was
2388 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2389 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2390 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2391 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2392 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2394 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2395 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2397 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2398 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2399 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2400 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2401 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2402 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2403 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2411 test -z "$as_dir" && as_dir
=.
2412 $as_echo "PATH: $as_dir"
2428 # Keep a trace of the command line.
2429 # Strip out --no-create and --no-recursion so they do not pile up.
2430 # Strip out --silent because we don't want to record it for future runs.
2431 # Also quote any args containing shell meta-characters.
2432 # Make two passes to allow for proper duplicate-argument suppression.
2436 ac_must_keep_next
=false
2442 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2443 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2444 |
-silent |
--silent |
--silen |
--sile |
--sil)
2447 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2450 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2452 as_fn_append ac_configure_args1
" '$ac_arg'"
2453 if test $ac_must_keep_next = true
; then
2454 ac_must_keep_next
=false
# Got value, back to normal.
2457 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2458 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2459 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2460 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2461 case "$ac_configure_args0 " in
2462 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2465 -* ) ac_must_keep_next
=true
;;
2468 as_fn_append ac_configure_args
" '$ac_arg'"
2473 { ac_configure_args0
=; unset ac_configure_args0
;}
2474 { ac_configure_args1
=; unset ac_configure_args1
;}
2476 # When interrupted or exit'd, cleanup temporary files, and complete
2477 # config.log. We remove comments because anyway the quotes in there
2478 # would cause problems or look ugly.
2479 # WARNING: Use '\'' to represent an apostrophe within the trap.
2480 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2481 trap 'exit_status=$?
2482 # Save into config.log some information that might help in debugging.
2486 $as_echo "## ---------------- ##
2487 ## Cache variables. ##
2488 ## ---------------- ##"
2490 # The following way of writing the cache mishandles newlines in values,
2492 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2493 eval ac_val=\$$ac_var
2497 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2498 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2501 _ | IFS | as_nl) ;; #(
2502 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2503 *) { eval $ac_var=; unset $ac_var;} ;;
2508 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2509 *${as_nl}ac_space=\ *)
2511 "s/'\''/'\''\\\\'\'''\''/g;
2512 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2522 $as_echo "## ----------------- ##
2523 ## Output variables. ##
2524 ## ----------------- ##"
2526 for ac_var in $ac_subst_vars
2528 eval ac_val=\$$ac_var
2530 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2532 $as_echo "$ac_var='\''$ac_val'\''"
2536 if test -n "$ac_subst_files"; then
2537 $as_echo "## ------------------- ##
2538 ## File substitutions. ##
2539 ## ------------------- ##"
2541 for ac_var
in $ac_subst_files
2543 eval ac_val
=\$
$ac_var
2545 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2547 $as_echo "$ac_var='\''$ac_val'\''"
2552 if test -s confdefs.h; then
2553 $as_echo "## ----------- ##
2560 test "$ac_signal" != 0 &&
2561 $as_echo "$as_me: caught signal $ac_signal"
2562 $as_echo "$as_me: exit $exit_status"
2564 rm -f core *.core core.conftest.* &&
2565 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2568 for ac_signal
in 1 2 13 15; do
2569 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2573 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2574 rm -f -r conftest
* confdefs.h
2576 $as_echo "/* confdefs.h */" > confdefs.h
2578 # Predefined preprocessor variables.
2580 cat >>confdefs.h
<<_ACEOF
2581 #define PACKAGE_NAME "$PACKAGE_NAME"
2584 cat >>confdefs.h
<<_ACEOF
2585 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2588 cat >>confdefs.h
<<_ACEOF
2589 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2592 cat >>confdefs.h
<<_ACEOF
2593 #define PACKAGE_STRING "$PACKAGE_STRING"
2596 cat >>confdefs.h
<<_ACEOF
2597 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2600 cat >>confdefs.h
<<_ACEOF
2601 #define PACKAGE_URL "$PACKAGE_URL"
2605 # Let the site file select an alternate cache file if it wants to.
2606 # Prefer an explicitly selected file to automatically selected ones.
2609 if test -n "$CONFIG_SITE"; then
2610 # We do not want a PATH search for config.site.
2611 case $CONFIG_SITE in #((
2612 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2613 */*) ac_site_file1
=$CONFIG_SITE;;
2614 *) ac_site_file1
=.
/$CONFIG_SITE;;
2616 elif test "x$prefix" != xNONE
; then
2617 ac_site_file1
=$prefix/share
/config.site
2618 ac_site_file2
=$prefix/etc
/config.site
2620 ac_site_file1
=$ac_default_prefix/share
/config.site
2621 ac_site_file2
=$ac_default_prefix/etc
/config.site
2623 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2625 test "x$ac_site_file" = xNONE
&& continue
2626 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2628 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2629 sed 's/^/| /' "$ac_site_file" >&5
2631 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2633 as_fn_error $?
"failed to load site script $ac_site_file
2634 See \`config.log' for more details" "$LINENO" 5; }
2638 if test -r "$cache_file"; then
2639 # Some versions of bash will fail to source /dev/null (special files
2640 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2641 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2643 $as_echo "$as_me: loading cache $cache_file" >&6;}
2645 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2646 *) .
"./$cache_file";;
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2651 $as_echo "$as_me: creating cache $cache_file" >&6;}
2655 # Check that the precious variables saved in the cache have kept the same
2657 ac_cache_corrupted
=false
2658 for ac_var
in $ac_precious_vars; do
2659 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2660 eval ac_new_set
=\
$ac_env_${ac_var}_set
2661 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2662 eval ac_new_val
=\
$ac_env_${ac_var}_value
2663 case $ac_old_set,$ac_new_set in
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2666 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2667 ac_cache_corrupted
=: ;;
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2670 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2671 ac_cache_corrupted
=: ;;
2674 if test "x$ac_old_val" != "x$ac_new_val"; then
2675 # differences in whitespace do not lead to failure.
2676 ac_old_val_w
=`echo x $ac_old_val`
2677 ac_new_val_w
=`echo x $ac_new_val`
2678 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2680 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2681 ac_cache_corrupted
=:
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2684 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2685 eval $ac_var=\
$ac_old_val
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2688 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2690 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2693 # Pass precious variables to config.status.
2694 if test "$ac_new_set" = set; then
2696 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2697 *) ac_arg
=$ac_var=$ac_new_val ;;
2699 case " $ac_configure_args " in
2700 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2701 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2705 if $ac_cache_corrupted; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2709 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2710 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2712 ## -------------------- ##
2713 ## Main body of script. ##
2714 ## -------------------- ##
2717 ac_cpp
='$CPP $CPPFLAGS'
2718 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2719 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2720 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2724 # we specify "foreign" to avoid having to have the GNU mandated files,
2725 # like AUTHORS, COPYING, and such
2726 am__api_version
='1.15'
2729 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2730 if test -f "$ac_dir/install-sh"; then
2732 ac_install_sh
="$ac_aux_dir/install-sh -c"
2734 elif test -f "$ac_dir/install.sh"; then
2736 ac_install_sh
="$ac_aux_dir/install.sh -c"
2738 elif test -f "$ac_dir/shtool"; then
2740 ac_install_sh
="$ac_aux_dir/shtool install -c"
2744 if test -z "$ac_aux_dir"; then
2745 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2748 # These three variables are undocumented and unsupported,
2749 # and are intended to be withdrawn in a future Autoconf release.
2750 # They can cause serious problems if a builder's source tree is in a directory
2751 # whose full name contains unusual characters.
2752 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2753 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2754 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2757 # Find a good install program. We prefer a C program (faster),
2758 # so one script is as good as another. But avoid the broken or
2759 # incompatible versions:
2760 # SysV /etc/install, /usr/sbin/install
2761 # SunOS /usr/etc/install
2762 # IRIX /sbin/install
2764 # AmigaOS /C/install, which installs bootblocks on floppy discs
2765 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2766 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2767 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2768 # OS/2's system install, which has a completely different semantic
2769 # ./install, which can be erroneously created by make from ./install.sh.
2770 # Reject install programs that cannot install multiple files.
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2772 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2773 if test -z "$INSTALL"; then
2774 if ${ac_cv_path_install+:} false
; then :
2775 $as_echo_n "(cached) " >&6
2777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2781 test -z "$as_dir" && as_dir
=.
2782 # Account for people who put trailing slashes in PATH elements.
2783 case $as_dir/ in #((
2784 .
/ | .
// |
/[cC
]/* | \
2785 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2786 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2789 # OSF1 and SCO ODT 3.0 have their own names for install.
2790 # Don't use installbsd from OSF since it installs stuff as root
2792 for ac_prog
in ginstall scoinst
install; do
2793 for ac_exec_ext
in '' $ac_executable_extensions; do
2794 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2795 if test $ac_prog = install &&
2796 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2797 # AIX install. It has an incompatible calling convention.
2799 elif test $ac_prog = install &&
2800 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2801 # program-specific install script used by HP pwplus--don't use.
2804 rm -rf conftest.one conftest.two conftest.dir
2805 echo one
> conftest.one
2806 echo two
> conftest.two
2808 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2809 test -s conftest.one
&& test -s conftest.two
&&
2810 test -s conftest.dir
/conftest.one
&&
2811 test -s conftest.dir
/conftest.two
2813 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2826 rm -rf conftest.one conftest.two conftest.dir
2829 if test "${ac_cv_path_install+set}" = set; then
2830 INSTALL
=$ac_cv_path_install
2832 # As a last resort, use the slow shell script. Don't cache a
2833 # value for INSTALL within a source directory, because that will
2834 # break other packages using the cache if that directory is
2835 # removed, or if the value is a relative name.
2836 INSTALL
=$ac_install_sh
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2840 $as_echo "$INSTALL" >&6; }
2842 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2843 # It thinks the first close brace ends the variable substitution.
2844 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2846 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2848 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2851 $as_echo_n "checking whether build environment is sane... " >&6; }
2852 # Reject unsafe characters in $srcdir or the absolute working directory
2853 # name. Accept space and tab only in the latter.
2857 *[\\\"\
#\$\&\'\`$am_lf]*)
2858 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2861 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2862 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2865 # Do 'set' in a subshell so we don't clobber the current shell's
2866 # arguments. Must try -L first in case configure is actually a
2867 # symlink; some systems play weird games with the mod time of symlinks
2868 # (eg FreeBSD returns the mod time of the symlink's containing
2872 for am_try
in 1 2; do
2873 echo "timestamp, slept: $am_has_slept" > conftest.
file
2874 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2875 if test "$*" = "X"; then
2877 set X
`ls -t "$srcdir/configure" conftest.file`
2879 if test "$*" != "X $srcdir/configure conftest.file" \
2880 && test "$*" != "X conftest.file $srcdir/configure"; then
2882 # If neither matched, then we have a broken ls. This can happen
2883 # if, for instance, CONFIG_SHELL is bash and it inherits a
2884 # broken ls alias from the environment. This has actually
2885 # happened. Such a system could not be considered "sane".
2886 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2887 alias in your environment" "$LINENO" 5
2889 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2896 test "$2" = conftest.
file
2902 as_fn_error $?
"newly created file is older than distributed files!
2903 Check your system clock" "$LINENO" 5
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2906 $as_echo "yes" >&6; }
2907 # If we didn't sleep, we still need to ensure time stamps of config.status and
2908 # generated files are strictly newer.
2910 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2917 test "$program_prefix" != NONE
&&
2918 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2919 # Use a double $ so make ignores it.
2920 test "$program_suffix" != NONE
&&
2921 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2922 # Double any \ or $.
2923 # By default was `s,x,x', remove it if useless.
2924 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2925 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2927 # Expand $ac_aux_dir to an absolute path.
2928 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2930 if test x
"${MISSING+set}" != xset
; then
2933 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2935 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2938 # Use eval to expand $SHELL
2939 if eval "$MISSING --is-lightweight"; then
2940 am_missing_run
="$MISSING "
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2944 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2947 if test x
"${install_sh+set}" != xset
; then
2950 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2952 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2956 # Installed binaries are usually stripped using 'strip' when the user
2957 # run "make install-strip". However 'strip' might not be the right
2958 # tool to use in cross-compilation environments, therefore Automake
2959 # will honor the 'STRIP' environment variable to overrule this program.
2960 if test "$cross_compiling" != no
; then
2961 if test -n "$ac_tool_prefix"; then
2962 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2963 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if ${ac_cv_prog_STRIP+:} false
; then :
2967 $as_echo_n "(cached) " >&6
2969 if test -n "$STRIP"; then
2970 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2976 test -z "$as_dir" && as_dir
=.
2977 for ac_exec_ext
in '' $ac_executable_extensions; do
2978 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2979 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 STRIP
=$ac_cv_prog_STRIP
2990 if test -n "$STRIP"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2992 $as_echo "$STRIP" >&6; }
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
3000 if test -z "$ac_cv_prog_STRIP"; then
3002 # Extract the first word of "strip", so it can be a program name with args.
3003 set dummy strip
; ac_word
=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3007 $as_echo_n "(cached) " >&6
3009 if test -n "$ac_ct_STRIP"; then
3010 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3016 test -z "$as_dir" && as_dir
=.
3017 for ac_exec_ext
in '' $ac_executable_extensions; do
3018 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_ac_ct_STRIP
="strip"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3030 if test -n "$ac_ct_STRIP"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3032 $as_echo "$ac_ct_STRIP" >&6; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3038 if test "x$ac_ct_STRIP" = x
; then
3041 case $cross_compiling:$ac_tool_warned in
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3045 ac_tool_warned
=yes ;;
3050 STRIP
="$ac_cv_prog_STRIP"
3054 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3057 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3058 if test -z "$MKDIR_P"; then
3059 if ${ac_cv_path_mkdir+:} false
; then :
3060 $as_echo_n "(cached) " >&6
3062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3063 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3066 test -z "$as_dir" && as_dir
=.
3067 for ac_prog
in mkdir gmkdir
; do
3068 for ac_exec_ext
in '' $ac_executable_extensions; do
3069 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3070 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3071 'mkdir (GNU coreutils) '* | \
3072 'mkdir (coreutils) '* | \
3073 'mkdir (fileutils) '4.1*)
3074 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3084 test -d .
/--version && rmdir .
/--version
3085 if test "${ac_cv_path_mkdir+set}" = set; then
3086 MKDIR_P
="$ac_cv_path_mkdir -p"
3088 # As a last resort, use the slow shell script. Don't cache a
3089 # value for MKDIR_P within a source directory, because that will
3090 # break other packages using the cache if that directory is
3091 # removed, or if the value is a relative name.
3092 MKDIR_P
="$ac_install_sh -d"
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3096 $as_echo "$MKDIR_P" >&6; }
3098 for ac_prog
in gawk mawk nawk
awk
3100 # Extract the first word of "$ac_prog", so it can be a program name with args.
3101 set dummy
$ac_prog; ac_word
=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if ${ac_cv_prog_AWK+:} false
; then :
3105 $as_echo_n "(cached) " >&6
3107 if test -n "$AWK"; then
3108 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3114 test -z "$as_dir" && as_dir
=.
3115 for ac_exec_ext
in '' $ac_executable_extensions; do
3116 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_AWK
="$ac_prog"
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 if test -n "$AWK"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3130 $as_echo "$AWK" >&6; }
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3137 test -n "$AWK" && break
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3141 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3143 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3144 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3145 $as_echo_n "(cached) " >&6
3147 cat >conftest.
make <<\_ACEOF
3150 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3152 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3153 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3155 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3157 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3161 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3163 $as_echo "yes" >&6; }
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3168 SET_MAKE
="MAKE=${MAKE-make}"
3171 rm -rf .tst
2>/dev
/null
3172 mkdir .tst
2>/dev
/null
3173 if test -d .tst
; then
3178 rmdir .tst
2>/dev
/null
3180 # Check whether --enable-silent-rules was given.
3181 if test "${enable_silent_rules+set}" = set; then :
3182 enableval
=$enable_silent_rules;
3185 case $enable_silent_rules in # (((
3186 yes) AM_DEFAULT_VERBOSITY
=0;;
3187 no
) AM_DEFAULT_VERBOSITY
=1;;
3188 *) AM_DEFAULT_VERBOSITY
=1;;
3190 am_make
=${MAKE-make}
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3192 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3193 if ${am_cv_make_support_nested_variables+:} false
; then :
3194 $as_echo_n "(cached) " >&6
3196 if $as_echo 'TRUE=$(BAR$(V))
3202 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3203 am_cv_make_support_nested_variables
=yes
3205 am_cv_make_support_nested_variables
=no
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3209 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3210 if test $am_cv_make_support_nested_variables = yes; then
3212 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3214 AM_V
=$AM_DEFAULT_VERBOSITY
3215 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3219 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3220 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3221 # is not polluted with repeated "-I."
3222 am__isrc
=' -I$(srcdir)'
3223 # test to see if srcdir already configured
3224 if test -f $srcdir/config.status
; then
3225 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3229 # test whether we have cygpath
3230 if test -z "$CYGPATH_W"; then
3231 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3232 CYGPATH_W
='cygpath -w'
3239 # Define the identity of the package.
3244 cat >>confdefs.h
<<_ACEOF
3245 #define PACKAGE "$PACKAGE"
3249 cat >>confdefs.h
<<_ACEOF
3250 #define VERSION "$VERSION"
3253 # Some tools Automake needs.
3255 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3258 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3261 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3264 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3267 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3269 # For better backward compatibility. To be removed once Automake 1.9.x
3270 # dies out for good. For more background, see:
3271 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3272 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3273 mkdir_p
='$(MKDIR_P)'
3275 # We need awk for the "check" target (and possibly the TAP driver). The
3276 # system "awk" is bad on some platforms.
3277 # Always define AMTAR for backward compatibility. Yes, it's still used
3278 # in the wild :-( We should find a proper way to deprecate it ...
3282 # We'll loop over all known methods to create a tar archive until one works.
3283 _am_tools
='gnutar pax cpio none'
3285 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3292 # POSIX will say in a future version that running "rm -f" with no argument
3293 # is OK; and we want to be able to make that assumption in our Makefile
3294 # recipes. So use an aggressive probe to check that the usage we want is
3295 # actually supported "in the wild" to an acceptable degree.
3296 # See automake bug#10828.
3297 # To make any issue more visible, cause the running configure to be aborted
3298 # by default if the 'rm' program in use doesn't match our expectations; the
3299 # user can still override this though.
3300 if rm -f && rm -fr && rm -rf; then : OK
; else
3304 Your 'rm' program seems unable to run without file operands specified
3305 on the command line, even when the '-f' option is present. This is contrary
3306 to the behaviour of most rm programs out there, and not conforming with
3307 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3309 Please tell bug-automake@gnu.org about your system, including the value
3310 of your $PATH and any error possibly output before this message. This
3311 can help us improve future automake versions.
3314 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3315 echo 'Configuration will proceed anyway, since you have set the' >&2
3316 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3320 Aborting the configuration process, to ensure you take notice of the issue.
3322 You can download and install GNU coreutils to get an 'rm' implementation
3323 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3325 If you want to complete the configuration process using your problematic
3326 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3327 to "yes", and re-run configure.
3330 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3335 # we specify AM_MAINTAINER_MODE to avoid problems with rebuilding
3336 # the configure and makefiles. Without it users doing things that
3337 # change the timestamps on the code, like checking it into a cvs
3338 # tree, could trigger a rebuild of the infrastructure files which
3339 # might fail if they don't have the correct tools.
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3342 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3343 # Check whether --enable-maintainer-mode was given.
3344 if test "${enable_maintainer_mode+set}" = set; then :
3345 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3347 USE_MAINTAINER_MODE
=no
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3351 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3352 if test $USE_MAINTAINER_MODE = yes; then
3353 MAINTAINER_MODE_TRUE
=
3354 MAINTAINER_MODE_FALSE
='#'
3356 MAINTAINER_MODE_TRUE
='#'
3357 MAINTAINER_MODE_FALSE
=
3360 MAINT
=$MAINTAINER_MODE_TRUE
3364 # Make sure we can run config.sub.
3365 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3366 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3369 $as_echo_n "checking build system type... " >&6; }
3370 if ${ac_cv_build+:} false
; then :
3371 $as_echo_n "(cached) " >&6
3373 ac_build_alias
=$build_alias
3374 test "x$ac_build_alias" = x
&&
3375 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3376 test "x$ac_build_alias" = x
&&
3377 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3378 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3379 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3383 $as_echo "$ac_cv_build" >&6; }
3384 case $ac_cv_build in
3386 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3389 ac_save_IFS
=$IFS; IFS
='-'
3395 # Remember, the first character of IFS is used to create $*,
3396 # except with old shells:
3399 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3403 $as_echo_n "checking host system type... " >&6; }
3404 if ${ac_cv_host+:} false
; then :
3405 $as_echo_n "(cached) " >&6
3407 if test "x$host_alias" = x
; then
3408 ac_cv_host
=$ac_cv_build
3410 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3411 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3416 $as_echo "$ac_cv_host" >&6; }
3419 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3422 ac_save_IFS
=$IFS; IFS
='-'
3428 # Remember, the first character of IFS is used to create $*,
3429 # except with old shells:
3432 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3436 # We want to turn on warnings if we are using gcc and the user did
3437 # not specify CFLAGS. The autoconf check for the C compiler sets the
3438 # CFLAGS if gcc is used, so we will save it before we run that check.
3439 SAVE_CFLAGS
="$CFLAGS"
3441 # Now find our C compiler.
3443 ac_cpp
='$CPP $CPPFLAGS'
3444 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3447 if test -n "$ac_tool_prefix"; then
3448 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3449 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 $as_echo_n "checking for $ac_word... " >&6; }
3452 if ${ac_cv_prog_CC+:} false
; then :
3453 $as_echo_n "(cached) " >&6
3455 if test -n "$CC"; then
3456 ac_cv_prog_CC
="$CC" # Let the user override the test.
3458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3462 test -z "$as_dir" && as_dir
=.
3463 for ac_exec_ext
in '' $ac_executable_extensions; do
3464 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3465 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3476 if test -n "$CC"; then
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3478 $as_echo "$CC" >&6; }
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3486 if test -z "$ac_cv_prog_CC"; then
3488 # Extract the first word of "gcc", so it can be a program name with args.
3489 set dummy gcc
; ac_word
=$2
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491 $as_echo_n "checking for $ac_word... " >&6; }
3492 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3493 $as_echo_n "(cached) " >&6
3495 if test -n "$ac_ct_CC"; then
3496 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3502 test -z "$as_dir" && as_dir
=.
3503 for ac_exec_ext
in '' $ac_executable_extensions; do
3504 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3505 ac_cv_prog_ac_ct_CC
="gcc"
3506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3516 if test -n "$ac_ct_CC"; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3518 $as_echo "$ac_ct_CC" >&6; }
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3524 if test "x$ac_ct_CC" = x
; then
3527 case $cross_compiling:$ac_tool_warned in
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3531 ac_tool_warned
=yes ;;
3539 if test -z "$CC"; then
3540 if test -n "$ac_tool_prefix"; then
3541 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3542 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544 $as_echo_n "checking for $ac_word... " >&6; }
3545 if ${ac_cv_prog_CC+:} false
; then :
3546 $as_echo_n "(cached) " >&6
3548 if test -n "$CC"; then
3549 ac_cv_prog_CC
="$CC" # Let the user override the test.
3551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3555 test -z "$as_dir" && as_dir
=.
3556 for ac_exec_ext
in '' $ac_executable_extensions; do
3557 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3558 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 if test -n "$CC"; then
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3571 $as_echo "$CC" >&6; }
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 $as_echo "no" >&6; }
3580 if test -z "$CC"; then
3581 # Extract the first word of "cc", so it can be a program name with args.
3582 set dummy cc
; ac_word
=$2
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 $as_echo_n "checking for $ac_word... " >&6; }
3585 if ${ac_cv_prog_CC+:} false
; then :
3586 $as_echo_n "(cached) " >&6
3588 if test -n "$CC"; then
3589 ac_cv_prog_CC
="$CC" # Let the user override the test.
3592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3596 test -z "$as_dir" && as_dir
=.
3597 for ac_exec_ext
in '' $ac_executable_extensions; do
3598 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3599 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3600 ac_prog_rejected
=yes
3604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 if test $ac_prog_rejected = yes; then
3612 # We found a bogon in the path, so make sure we never use it.
3613 set dummy
$ac_cv_prog_CC
3615 if test $# != 0; then
3616 # We chose a different compiler from the bogus one.
3617 # However, it has the same basename, so the bogon will be chosen
3618 # first if we set CC to just the basename; use the full file name.
3620 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3626 if test -n "$CC"; then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3628 $as_echo "$CC" >&6; }
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631 $as_echo "no" >&6; }
3636 if test -z "$CC"; then
3637 if test -n "$ac_tool_prefix"; then
3638 for ac_prog
in cl.exe
3640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3641 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3643 $as_echo_n "checking for $ac_word... " >&6; }
3644 if ${ac_cv_prog_CC+:} false
; then :
3645 $as_echo_n "(cached) " >&6
3647 if test -n "$CC"; then
3648 ac_cv_prog_CC
="$CC" # Let the user override the test.
3650 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3654 test -z "$as_dir" && as_dir
=.
3655 for ac_exec_ext
in '' $ac_executable_extensions; do
3656 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3657 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 if test -n "$CC"; then
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3670 $as_echo "$CC" >&6; }
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 $as_echo "no" >&6; }
3677 test -n "$CC" && break
3680 if test -z "$CC"; then
3682 for ac_prog
in cl.exe
3684 # Extract the first word of "$ac_prog", so it can be a program name with args.
3685 set dummy
$ac_prog; ac_word
=$2
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687 $as_echo_n "checking for $ac_word... " >&6; }
3688 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3689 $as_echo_n "(cached) " >&6
3691 if test -n "$ac_ct_CC"; then
3692 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3698 test -z "$as_dir" && as_dir
=.
3699 for ac_exec_ext
in '' $ac_executable_extensions; do
3700 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3701 ac_cv_prog_ac_ct_CC
="$ac_prog"
3702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3711 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3712 if test -n "$ac_ct_CC"; then
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3714 $as_echo "$ac_ct_CC" >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3721 test -n "$ac_ct_CC" && break
3724 if test "x$ac_ct_CC" = x
; then
3727 case $cross_compiling:$ac_tool_warned in
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3731 ac_tool_warned
=yes ;;
3740 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3742 as_fn_error $?
"no acceptable C compiler found in \$PATH
3743 See \`config.log' for more details" "$LINENO" 5; }
3745 # Provide some information about the compiler.
3746 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3749 for ac_option
in --version -v -V -qversion; do
3750 { { ac_try
="$ac_compiler $ac_option >&5"
3752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3756 $as_echo "$ac_try_echo"; } >&5
3757 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3759 if test -s conftest.err; then
3761 ... rest of stderr output deleted ...
3762 10q' conftest.err >conftest.er1
3763 cat conftest.er1 >&5
3765 rm -f conftest.er1 conftest.err
3766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3767 test $ac_status = 0; }
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h. */
3781 ac_clean_files_save=$ac_clean_files
3782 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3783 # Try to create an executable without -o first, disregard a.out.
3784 # It will help us diagnose broken compilers, and finding out an intuition
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3787 $as_echo_n "checking whether the C compiler works... " >&6; }
3788 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3790 # The possible output files:
3791 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3794 for ac_file in $ac_files
3797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3798 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3803 if { { ac_try="$ac_link_default"
3805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3806 *) ac_try_echo
=$ac_try;;
3808 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 $as_echo "$ac_try_echo"; } >&5
3810 (eval "$ac_link_default") 2>&5
3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }; then :
3814 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3815 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3816 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3817 # so that the user can short-circuit this test for compilers unknown to
3819 for ac_file
in $ac_files ''
3821 test -f "$ac_file" ||
continue
3823 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3826 # We found the default executable, but exeext='' is most
3830 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3832 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3834 # We set ac_cv_exeext here because the later test for it is not
3835 # safe: cross compilers may not add the suffix if given an `-o'
3836 # argument, so we may need to know it at that point already.
3837 # Even if this section looks crufty: it has the advantage of
3844 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3849 if test -z "$ac_file"; then :
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 $as_echo "no" >&6; }
3852 $as_echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.
$ac_ext >&5
3855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3857 as_fn_error
77 "C compiler cannot create executables
3858 See \`config.log' for more details" "$LINENO" 5; }
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3861 $as_echo "yes" >&6; }
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3864 $as_echo_n "checking for C compiler default output file name... " >&6; }
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3866 $as_echo "$ac_file" >&6; }
3867 ac_exeext
=$ac_cv_exeext
3869 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3870 ac_clean_files
=$ac_clean_files_save
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3872 $as_echo_n "checking for suffix of executables... " >&6; }
3873 if { { ac_try
="$ac_link"
3875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880 (eval "$ac_link") 2>&5
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }; then :
3884 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3885 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3886 # work properly (i.e., refer to `conftest.exe'), while it won't with
3888 for ac_file
in conftest.exe conftest conftest.
*; do
3889 test -f "$ac_file" ||
continue
3891 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3892 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3900 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3901 See \`config.log' for more details" "$LINENO" 5; }
3903 rm -f conftest conftest
$ac_cv_exeext
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3905 $as_echo "$ac_cv_exeext" >&6; }
3907 rm -f conftest.
$ac_ext
3908 EXEEXT
=$ac_cv_exeext
3910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3916 FILE *f = fopen ("conftest.out", "w");
3917 return ferror (f) || fclose (f) != 0;
3923 ac_clean_files
="$ac_clean_files conftest.out"
3924 # Check that the compiler produces executables we can run. If not, either
3925 # the compiler is broken, or we cross compile.
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3927 $as_echo_n "checking whether we are cross compiling... " >&6; }
3928 if test "$cross_compiling" != yes; then
3929 { { ac_try
="$ac_link"
3931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 $as_echo "$ac_try_echo"; } >&5
3936 (eval "$ac_link") 2>&5
3938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939 test $ac_status = 0; }
3940 if { ac_try='./conftest$ac_cv_exeext'
3941 { { case "(($ac_try" in
3942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3943 *) ac_try_echo
=$ac_try;;
3945 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 $as_echo "$ac_try_echo"; } >&5
3947 (eval "$ac_try") 2>&5
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }; }; then
3953 if test "$cross_compiling" = maybe
; then
3956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3958 as_fn_error $?
"cannot run C compiled programs.
3959 If you meant to cross compile, use \`--host'.
3960 See \`config.log' for more details" "$LINENO" 5; }
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3965 $as_echo "$cross_compiling" >&6; }
3967 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3968 ac_clean_files
=$ac_clean_files_save
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3970 $as_echo_n "checking for suffix of object files... " >&6; }
3971 if ${ac_cv_objext+:} false
; then :
3972 $as_echo_n "(cached) " >&6
3974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3985 rm -f conftest.o conftest.obj
3986 if { { ac_try
="$ac_compile"
3988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3992 $as_echo "$ac_try_echo"; } >&5
3993 (eval "$ac_compile") 2>&5
3995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996 test $ac_status = 0; }; then :
3997 for ac_file in conftest.o conftest.obj conftest.*; do
3998 test -f "$ac_file" || continue;
4000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4001 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4006 $as_echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4011 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4012 See \
`config.log' for more details" "$LINENO" 5; }
4014 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4017 $as_echo "$ac_cv_objext" >&6; }
4018 OBJEXT=$ac_cv_objext
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4021 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4022 if ${ac_cv_c_compiler_gnu+:} false; then :
4023 $as_echo_n "(cached) " >&6
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4039 if ac_fn_c_try_compile "$LINENO"; then :
4044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4049 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4050 if test $ac_compiler_gnu = yes; then
4055 ac_test_CFLAGS=${CFLAGS+set}
4056 ac_save_CFLAGS=$CFLAGS
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4058 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4059 if ${ac_cv_prog_cc_g+:} false; then :
4060 $as_echo_n "(cached) " >&6
4062 ac_save_c_werror_flag=$ac_c_werror_flag
4063 ac_c_werror_flag=yes
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4077 if ac_fn_c_try_compile "$LINENO"; then :
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4092 if ac_fn_c_try_compile "$LINENO"; then :
4095 ac_c_werror_flag=$ac_save_c_werror_flag
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4108 if ac_fn_c_try_compile "$LINENO"; then :
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 ac_c_werror_flag=$ac_save_c_werror_flag
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4119 $as_echo "$ac_cv_prog_cc_g" >&6; }
4120 if test "$ac_test_CFLAGS" = set; then
4121 CFLAGS=$ac_save_CFLAGS
4122 elif test $ac_cv_prog_cc_g = yes; then
4123 if test "$GCC" = yes; then
4129 if test "$GCC" = yes; then
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4136 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4137 if ${ac_cv_prog_cc_c89+:} false; then :
4138 $as_echo_n "(cached) " >&6
4140 ac_cv_prog_cc_c89=no
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4147 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4148 struct buf { int x; };
4149 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4150 static char *e (p, i)
4156 static char *f (char * (*g) (char **, int), char **p, ...)
4161 s = g (p, va_arg (v,int));
4166 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4167 function prototypes and stuff, but not '\xHH' hex character constants.
4168 These don't provoke an error unfortunately, instead are silently treated
4169 as 'x'. The following induces an error, until -std is added to get
4170 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4171 array size at least. It's necessary to write '\x00'==0 to get something
4172 that's true only with -std. */
4173 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4175 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4176 inside strings and character constants. */
4178 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4180 int test (int i, double x);
4181 struct s1 {int (*f) (int a);};
4182 struct s2 {int (*f) (double a);};
4183 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4189 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4194 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4195 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4197 CC="$ac_save_CC $ac_arg"
4198 if ac_fn_c_try_compile "$LINENO"; then :
4199 ac_cv_prog_cc_c89=$ac_arg
4201 rm -f core conftest.err conftest.$ac_objext
4202 test "x$ac_cv_prog_cc_c89" != "xno" && break
4204 rm -f conftest.$ac_ext
4209 case "x$ac_cv_prog_cc_c89" in
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4212 $as_echo "none needed" >&6; } ;;
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4215 $as_echo "unsupported" >&6; } ;;
4217 CC="$CC $ac_cv_prog_cc_c89"
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4219 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4221 if test "x$ac_cv_prog_cc_c89" != xno; then :
4226 ac_cpp='$CPP $CPPFLAGS'
4227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4232 ac_cpp='$CPP $CPPFLAGS'
4233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4237 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4238 if ${am_cv_prog_cc_c_o+:} false; then :
4239 $as_echo_n "(cached) " >&6
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4252 # Make sure it works both with $CC and with simple cc.
4253 # Following AC_PROG_CC_C_O, we do the test twice because some
4254 # compilers refuse to overwrite an existing .o file with -o,
4255 # though they will create one.
4256 am_cv_prog_cc_c_o=yes
4258 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4259 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } \
4263 && test -f conftest2.$ac_objext; then
4266 am_cv_prog_cc_c_o=no
4270 rm -f core conftest*
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4274 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4275 if test "$am_cv_prog_cc_c_o" != yes; then
4276 # Losing compiler, so override with the script.
4277 # FIXME: It is wrong to rewrite CC.
4278 # But if we don't then we get into trouble of one sort or another.
4279 # A longer-term fix would be to have automake use am__CC in this case,
4280 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4281 CC="$am_aux_dir/compile $CC"
4284 ac_cpp='$CPP $CPPFLAGS'
4285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4289 DEPDIR="${am__leading_dot}deps"
4291 ac_config_commands="$ac_config_commands depfiles"
4294 am_make=${MAKE-make}
4295 cat > confinc << 'END'
4297 @echo this is the am__doit target
4300 # If we don't find an include directive, just comment out the code.
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4302 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4306 # First try GNU make style include.
4307 echo "include confinc" > confmf
4308 # Ignore all kinds of additional output from 'make'.
4309 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4310 *the\ am__doit\ target*)
4316 # Now try BSD make style include.
4317 if test "$am__include" = "#"; then
4318 echo '.include "confinc"' > confmf
4319 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4320 *the\ am__doit\ target*)
4321 am__include=.include
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4330 $as_echo "$_am_result" >&6; }
4331 rm -f confinc confmf
4333 # Check whether --enable-dependency-tracking was given.
4334 if test "${enable_dependency_tracking+set}" = set; then :
4335 enableval=$enable_dependency_tracking;
4338 if test "x$enable_dependency_tracking" != xno; then
4339 am_depcomp="$ac_aux_dir/depcomp"
4343 if test "x$enable_dependency_tracking" != xno; then
4353 depcc="$CC" am_compiler_list=
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4356 $as_echo_n "checking dependency style of $depcc... " >&6; }
4357 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4358 $as_echo_n "(cached) " >&6
4360 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4361 # We make a subdir and do the tests there. Otherwise we can end up
4362 # making bogus files that we don't know about and never remove. For
4363 # instance it was reported that on HP-UX the gcc test will end up
4364 # making a dummy file named 'D' -- because '-MD' means "put the output
4368 # Copy depcomp to subdir because otherwise we won't find it if we're
4369 # using a relative directory.
4370 cp "$am_depcomp" conftest.dir
4372 # We will build objects and dependencies in a subdirectory because
4373 # it helps to detect inapplicable dependency modes. For instance
4374 # both Tru64's cc and ICC support -MD to output dependencies as a
4375 # side effect of compilation, but ICC will put the dependencies in
4376 # the current directory while Tru64 will put them in the object
4380 am_cv_CC_dependencies_compiler_type=none
4381 if test "$am_compiler_list" = ""; then
4382 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4385 case " $depcc " in #(
4386 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4389 for depmode in $am_compiler_list; do
4390 # Setup a source with many dependencies, because some compilers
4391 # like to wrap large dependency lists on column 80 (with \), and
4392 # we should not choose a depcomp mode which is confused by this.
4394 # We need to recreate these files for each test, as the compiler may
4395 # overwrite some of them when testing with obscure command lines.
4396 # This happens at least with the AIX C compiler.
4398 for i in 1 2 3 4 5 6; do
4399 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4400 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4401 # Solaris 10 /bin/sh.
4402 echo '/* dummy */' > sub/conftst$i.h
4404 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4406 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4407 # mode. It turns out that the SunPro C++ compiler does not properly
4408 # handle '-M -o', and we need to detect this. Also, some Intel
4409 # versions had trouble with output in subdirs.
4410 am__obj=sub/conftest.${OBJEXT-o}
4411 am__minus_obj="-o $am__obj"
4414 # This depmode causes a compiler race in universal mode.
4415 test "$am__universal" = false || continue
4418 # After this tag, mechanisms are not by side-effect, so they'll
4419 # only be used when explicitly requested.
4420 if test "x$enable_dependency_tracking" = xyes; then
4426 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4427 # This compiler won't grok '-c -o', but also, the minuso test has
4428 # not run yet. These depmodes are late enough in the game, and
4429 # so weak that their functioning should not be impacted.
4430 am__obj=conftest.${OBJEXT-o}
4435 if depmode=$depmode \
4436 source=sub/conftest.c object=$am__obj \
4437 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4438 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4439 >/dev/null 2>conftest.err &&
4440 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4441 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4442 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4443 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4444 # icc doesn't choke on unknown options, it will just issue warnings
4445 # or remarks (even with -Werror). So we grep stderr for any message
4446 # that says an option was ignored or not supported.
4447 # When given -MP, icc 7.0 and 7.1 complain thusly:
4448 # icc: Command line warning: ignoring option '-M'; no argument required
4449 # The diagnosis changed in icc 8.0:
4450 # icc: Command line remark: option '-MP' not supported
4451 if (grep 'ignoring option' conftest.err ||
4452 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4453 am_cv_CC_dependencies_compiler_type=$depmode
4462 am_cv_CC_dependencies_compiler_type=none
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4467 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4468 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4471 test "x$enable_dependency_tracking" != xno \
4472 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4474 am__fastdepCC_FALSE='#'
4476 am__fastdepCC_TRUE='#'
4477 am__fastdepCC_FALSE=
4482 # Suppress warnings about --datarootdir
4485 # If we have gcc, and AC_PROG_CC changed the flags, then we know the
4486 # user did not specify any flags. Add warnings in this case.
4487 if test "$GCC" = "yes"; then
4488 if test "$CFLAGS" != "$SAVE_CFLAGS"; then
4489 STD_CWARNINGS="$STD_CWARNINGS -Wall -Werror -fno-strict-aliasing"
4493 # We can have some flags to pass to bind configure
4495 if test "$cross_compiling" = "yes"; then
4496 BINDCONFIG="--host=$host"
4498 # Pass CFLAGS and co. $ac_configure_args looks like "'arg1' 'arg2' ..."
4499 # and as there can be a space inside an argument some magic is required.
4500 # This sets $1 ... $N to my_configure_args, arg1 ... argN
4501 eval "set my_configure_args $ac_configure_args"
4502 # remove my_configure_args, i.e., the guard against empty $ac_configure_args
4504 # iterate on arguments and copying 'arg' when it begins by an upper case
4508 [A-Z]*) BINDCONFIG="$BINDCONFIG '$a'" ;;
4513 # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
4514 # parts of the IPv6 Advanced Socket API as a result. This is stupid
4515 # as it breaks how the two halves (Basic and Advanced) of the IPv6
4516 # Socket API were designed to be used but we have to live with it.
4517 # Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
4520 ac_cpp='$CPP $CPPFLAGS'
4521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4525 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4526 # On Suns, sometimes $CPP names a directory.
4527 if test -n "$CPP" && test -d "$CPP"; then
4530 if test -z "$CPP"; then
4531 if ${ac_cv_prog_CPP+:} false; then :
4532 $as_echo_n "(cached) " >&6
4534 # Double quotes because CPP needs to be expanded
4535 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4538 for ac_c_preproc_warn_flag in '' yes
4540 # Use a header file that comes with gcc, so configuring glibc
4541 # with a fresh cross-compiler works.
4542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4543 # <limits.h> exists even on freestanding compilers.
4544 # On the NeXT, cc -E runs the code through the compiler's parser,
4545 # not just through cpp. "Syntax error" is here to catch this case.
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4549 # include <limits.h>
4551 # include <assert.h>
4555 if ac_fn_c_try_cpp "$LINENO"; then :
4558 # Broken: fails on valid input.
4561 rm -f conftest.err conftest.i conftest.$ac_ext
4563 # OK, works on sane cases. Now check whether nonexistent headers
4564 # can be detected and how.
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4567 #include <ac_nonexistent.h>
4569 if ac_fn_c_try_cpp "$LINENO"; then :
4570 # Broken: success on invalid input.
4573 # Passes both tests.
4577 rm -f conftest.err conftest.i conftest.$ac_ext
4580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4581 rm -f conftest.i conftest.err conftest.
$ac_ext
4582 if $ac_preproc_ok; then :
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4595 $as_echo "$CPP" >&6; }
4597 for ac_c_preproc_warn_flag
in '' yes
4599 # Use a header file that comes with gcc, so configuring glibc
4600 # with a fresh cross-compiler works.
4601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4602 # <limits.h> exists even on freestanding compilers.
4603 # On the NeXT, cc -E runs the code through the compiler's parser,
4604 # not just through cpp. "Syntax error" is here to catch this case.
4605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4608 # include <limits.h>
4610 # include <assert.h>
4614 if ac_fn_c_try_cpp
"$LINENO"; then :
4617 # Broken: fails on valid input.
4620 rm -f conftest.err conftest.i conftest.
$ac_ext
4622 # OK, works on sane cases. Now check whether nonexistent headers
4623 # can be detected and how.
4624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4626 #include <ac_nonexistent.h>
4628 if ac_fn_c_try_cpp
"$LINENO"; then :
4629 # Broken: success on invalid input.
4632 # Passes both tests.
4636 rm -f conftest.err conftest.i conftest.
$ac_ext
4639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4640 rm -f conftest.i conftest.err conftest.
$ac_ext
4641 if $ac_preproc_ok; then :
4644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4646 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4647 See \`config.log' for more details" "$LINENO" 5; }
4651 ac_cpp
='$CPP $CPPFLAGS'
4652 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4658 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4659 if ${ac_cv_path_GREP+:} false
; then :
4660 $as_echo_n "(cached) " >&6
4662 if test -z "$GREP"; then
4663 ac_path_GREP_found
=false
4664 # Loop through the user's path and test for each of PROGNAME-LIST
4665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4666 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4669 test -z "$as_dir" && as_dir
=.
4670 for ac_prog
in grep ggrep
; do
4671 for ac_exec_ext
in '' $ac_executable_extensions; do
4672 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4673 as_fn_executable_p
"$ac_path_GREP" ||
continue
4674 # Check for GNU ac_path_GREP and select it if it is found.
4675 # Check for GNU $ac_path_GREP
4676 case `"$ac_path_GREP" --version 2>&1` in
4678 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4681 $as_echo_n 0123456789 >"conftest.in"
4684 cat "conftest.in" "conftest.in" >"conftest.tmp"
4685 mv "conftest.tmp" "conftest.in"
4686 cp "conftest.in" "conftest.nl"
4687 $as_echo 'GREP' >> "conftest.nl"
4688 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4689 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4690 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4691 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4692 # Best one so far, save it but keep looking for a better one
4693 ac_cv_path_GREP
="$ac_path_GREP"
4694 ac_path_GREP_max
=$ac_count
4696 # 10*(2^10) chars as input seems more than enough
4697 test $ac_count -gt 10 && break
4699 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4702 $ac_path_GREP_found && break 3
4707 if test -z "$ac_cv_path_GREP"; then
4708 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4711 ac_cv_path_GREP
=$GREP
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4716 $as_echo "$ac_cv_path_GREP" >&6; }
4717 GREP
="$ac_cv_path_GREP"
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4721 $as_echo_n "checking for egrep... " >&6; }
4722 if ${ac_cv_path_EGREP+:} false
; then :
4723 $as_echo_n "(cached) " >&6
4725 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4726 then ac_cv_path_EGREP
="$GREP -E"
4728 if test -z "$EGREP"; then
4729 ac_path_EGREP_found
=false
4730 # Loop through the user's path and test for each of PROGNAME-LIST
4731 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4732 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4735 test -z "$as_dir" && as_dir
=.
4736 for ac_prog
in egrep; do
4737 for ac_exec_ext
in '' $ac_executable_extensions; do
4738 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4739 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4740 # Check for GNU ac_path_EGREP and select it if it is found.
4741 # Check for GNU $ac_path_EGREP
4742 case `"$ac_path_EGREP" --version 2>&1` in
4744 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4747 $as_echo_n 0123456789 >"conftest.in"
4750 cat "conftest.in" "conftest.in" >"conftest.tmp"
4751 mv "conftest.tmp" "conftest.in"
4752 cp "conftest.in" "conftest.nl"
4753 $as_echo 'EGREP' >> "conftest.nl"
4754 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4755 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4756 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4757 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4758 # Best one so far, save it but keep looking for a better one
4759 ac_cv_path_EGREP
="$ac_path_EGREP"
4760 ac_path_EGREP_max
=$ac_count
4762 # 10*(2^10) chars as input seems more than enough
4763 test $ac_count -gt 10 && break
4765 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4768 $ac_path_EGREP_found && break 3
4773 if test -z "$ac_cv_path_EGREP"; then
4774 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4777 ac_cv_path_EGREP
=$EGREP
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4783 $as_echo "$ac_cv_path_EGREP" >&6; }
4784 EGREP
="$ac_cv_path_EGREP"
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4788 $as_echo_n "checking for ANSI C header files... " >&6; }
4789 if ${ac_cv_header_stdc+:} false
; then :
4790 $as_echo_n "(cached) " >&6
4792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4807 if ac_fn_c_try_compile
"$LINENO"; then :
4808 ac_cv_header_stdc
=yes
4810 ac_cv_header_stdc
=no
4812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4814 if test $ac_cv_header_stdc = yes; then
4815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4822 $EGREP "memchr" >/dev
/null
2>&1; then :
4825 ac_cv_header_stdc
=no
4831 if test $ac_cv_header_stdc = yes; then
4832 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4839 $EGREP "free" >/dev
/null
2>&1; then :
4842 ac_cv_header_stdc
=no
4848 if test $ac_cv_header_stdc = yes; then
4849 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4850 if test "$cross_compiling" = yes; then :
4853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4854 /* end confdefs.h. */
4857 #if ((' ' & 0x0FF) == 0x020)
4858 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4859 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4861 # define ISLOWER(c) \
4862 (('a' <= (c) && (c) <= 'i') \
4863 || ('j' <= (c) && (c) <= 'r') \
4864 || ('s' <= (c) && (c) <= 'z'))
4865 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4868 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4873 for (i = 0; i < 256; i++)
4874 if (XOR (islower (i), ISLOWER (i))
4875 || toupper (i) != TOUPPER (i))
4880 if ac_fn_c_try_run
"$LINENO"; then :
4883 ac_cv_header_stdc
=no
4885 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4886 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4892 $as_echo "$ac_cv_header_stdc" >&6; }
4893 if test $ac_cv_header_stdc = yes; then
4895 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4899 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4900 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4901 inttypes.h stdint.h unistd.h
4903 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4904 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4906 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4907 cat >>confdefs.h
<<_ACEOF
4908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4917 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4918 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4925 if test "$MINIX" = yes; then
4927 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4930 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4933 $as_echo "#define _MINIX 1" >>confdefs.h
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4939 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4940 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4941 $as_echo_n "(cached) " >&6
4943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4946 # define __EXTENSIONS__ 1
4947 $ac_includes_default
4956 if ac_fn_c_try_compile
"$LINENO"; then :
4957 ac_cv_safe_to_define___extensions__
=yes
4959 ac_cv_safe_to_define___extensions__
=no
4961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4964 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4965 test $ac_cv_safe_to_define___extensions__ = yes &&
4966 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4968 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4970 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4972 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4974 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4978 if test -n "$ac_tool_prefix"; then
4979 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4980 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982 $as_echo_n "checking for $ac_word... " >&6; }
4983 if ${ac_cv_prog_RANLIB+:} false
; then :
4984 $as_echo_n "(cached) " >&6
4986 if test -n "$RANLIB"; then
4987 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4993 test -z "$as_dir" && as_dir
=.
4994 for ac_exec_ext
in '' $ac_executable_extensions; do
4995 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 RANLIB
=$ac_cv_prog_RANLIB
5007 if test -n "$RANLIB"; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5009 $as_echo "$RANLIB" >&6; }
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5017 if test -z "$ac_cv_prog_RANLIB"; then
5018 ac_ct_RANLIB
=$RANLIB
5019 # Extract the first word of "ranlib", so it can be a program name with args.
5020 set dummy ranlib
; ac_word
=$2
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5024 $as_echo_n "(cached) " >&6
5026 if test -n "$ac_ct_RANLIB"; then
5027 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5033 test -z "$as_dir" && as_dir
=.
5034 for ac_exec_ext
in '' $ac_executable_extensions; do
5035 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5036 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5047 if test -n "$ac_ct_RANLIB"; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5049 $as_echo "$ac_ct_RANLIB" >&6; }
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052 $as_echo "no" >&6; }
5055 if test "x$ac_ct_RANLIB" = x
; then
5058 case $cross_compiling:$ac_tool_warned in
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5062 ac_tool_warned
=yes ;;
5064 RANLIB
=$ac_ct_RANLIB
5067 RANLIB
="$ac_cv_prog_RANLIB"
5071 # Extract the first word of "ar", so it can be a program name with args.
5072 set dummy
ar; ac_word
=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if ${ac_cv_path_AR+:} false
; then :
5076 $as_echo_n "(cached) " >&6
5080 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
5083 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5087 test -z "$as_dir" && as_dir
=.
5088 for ac_exec_ext
in '' $ac_executable_extensions; do
5089 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5090 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
5091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 if test -n "$AR"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5104 $as_echo "$AR" >&6; }
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5113 if test "X$AR" = "X"; then
5115 ar program not found. Please fix your PATH to include the directory in
5116 which ar resides, or set AR in the environment with the full path to ar." "$LINENO" 5
5119 ac_config_headers
="$ac_config_headers includes/config.h"
5122 # we sometimes need to know byte order for building packets
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5124 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5125 if ${ac_cv_c_bigendian+:} false
; then :
5126 $as_echo_n "(cached) " >&6
5128 ac_cv_c_bigendian
=unknown
5129 # See if we're dealing with a universal compiler.
5130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h. */
5132 #ifndef __APPLE_CC__
5133 not a universal capable compiler
5138 if ac_fn_c_try_compile
"$LINENO"; then :
5140 # Check for potential -arch flags. It is not universal unless
5141 # there are at least two -arch flags with different values.
5144 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5145 if test -n "$ac_prev"; then
5147 i?
86 | x86_64 | ppc | ppc64
)
5148 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
5151 ac_cv_c_bigendian
=universal
5157 elif test "x$ac_word" = "x-arch"; then
5162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5163 if test $ac_cv_c_bigendian = unknown
; then
5164 # See if sys/param.h defines the BYTE_ORDER macro.
5165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5167 #include <sys/types.h>
5168 #include <sys/param.h>
5173 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5174 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5183 if ac_fn_c_try_compile
"$LINENO"; then :
5184 # It does; now see whether it defined to BIG_ENDIAN or not.
5185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5187 #include <sys/types.h>
5188 #include <sys/param.h>
5193 #if BYTE_ORDER != BIG_ENDIAN
5201 if ac_fn_c_try_compile
"$LINENO"; then :
5202 ac_cv_c_bigendian
=yes
5204 ac_cv_c_bigendian
=no
5206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5210 if test $ac_cv_c_bigendian = unknown
; then
5211 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5219 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5227 if ac_fn_c_try_compile
"$LINENO"; then :
5228 # It does; now see whether it defined to _BIG_ENDIAN or not.
5229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5230 /* end confdefs.h. */
5244 if ac_fn_c_try_compile
"$LINENO"; then :
5245 ac_cv_c_bigendian
=yes
5247 ac_cv_c_bigendian
=no
5249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5253 if test $ac_cv_c_bigendian = unknown
; then
5254 # Compile a test program.
5255 if test "$cross_compiling" = yes; then :
5256 # Try to guess by grepping values from an object file.
5257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5259 short int ascii_mm[] =
5260 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5261 short int ascii_ii[] =
5262 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5263 int use_ascii (int i) {
5264 return ascii_mm[i] + ascii_ii[i];
5266 short int ebcdic_ii[] =
5267 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5268 short int ebcdic_mm[] =
5269 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5270 int use_ebcdic (int i) {
5271 return ebcdic_mm[i] + ebcdic_ii[i];
5278 return use_ascii (foo) == use_ebcdic (foo);
5283 if ac_fn_c_try_compile
"$LINENO"; then :
5284 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5285 ac_cv_c_bigendian
=yes
5287 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5288 if test "$ac_cv_c_bigendian" = unknown
; then
5289 ac_cv_c_bigendian
=no
5291 # finding both strings is unlikely to happen, but who knows?
5292 ac_cv_c_bigendian
=unknown
5296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5300 $ac_includes_default
5305 /* Are we little or big endian? From Harbison&Steele. */
5309 char c[sizeof (long int)];
5312 return u.c[sizeof (long int) - 1] == 1;
5318 if ac_fn_c_try_run
"$LINENO"; then :
5319 ac_cv_c_bigendian
=no
5321 ac_cv_c_bigendian
=yes
5323 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5324 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5330 $as_echo "$ac_cv_c_bigendian" >&6; }
5331 case $ac_cv_c_bigendian in #(
5333 byte_order
=BIG_ENDIAN
5336 byte_order
=LITTLE_ENDIAN
5340 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5344 as_fn_error $?
"unknown endianness
5345 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5349 cat >>confdefs.h
<<_ACEOF
5350 #define DHCP_BYTE_ORDER $byte_order
5354 # Optional compile-time DEBUGging.
5355 # Check whether --enable-debug was given.
5356 if test "${enable_debug+set}" = set; then :
5357 enableval
=$enable_debug; case "${enableval}" in
5358 yes) enable_debug
=yes
5360 $as_echo "#define DEBUG 1" >>confdefs.h
5362 # Just override CFLAGS totally to remove optimization.
5364 no
) enable_debug
=no
;;
5365 *) as_fn_error $?
"bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
5372 # XXX: there are actually quite a lot more DEBUG_ features we could enable,
5373 # but I don't want to pollute the --help space.
5375 #/* #define DEBUG_TOKENS */
5376 #/* #define DEBUG_PACKET */
5377 #/* #define DEBUG_EXPRESSIONS */
5378 #/* #define DEBUG_FIND_LEASE */
5379 #/* #define DEBUG_EXPRESSION_PARSE */
5380 #/* #define DEBUG_CLASS_MATCHING */
5381 #/* #define DEBUG_MEMORY_LEAKAGE */
5382 #/* #define DEBUG_MALLOC_POOL */
5383 #/* #define DEBUG_LEASE_STATE_TRANSITIONS */
5384 #/* #define DEBUG_RC_HISTORY */
5385 #/* #define DEBUG_RC_HISTORY_EXHAUSTIVELY */
5386 #/* #define RC_HISTORY_MAX 10240 */
5387 #/* #define POINTER_DEBUG */
5388 #/* #define DEBUG_FAILOVER_MESSAGES */
5389 #/* #define DEBUG_FAILOVER_TIMING */
5390 #/* #define DEBUG_DUMP_ALL_LEASES */
5392 # Failover optional compile-time feature.
5393 # Check whether --enable-failover was given.
5394 if test "${enable_failover+set}" = set; then :
5395 enableval
=$enable_failover;
5398 # Failover is on by default, so define if it is not explicitly disabled.
5399 if test "$enable_failover" != "no"; then
5400 enable_failover
="yes"
5402 $as_echo "#define FAILOVER_PROTOCOL 1" >>confdefs.h
5406 # execute() support.
5407 # Check whether --enable-execute was given.
5408 if test "${enable_execute+set}" = set; then :
5409 enableval
=$enable_execute;
5412 # execute() is on by default, so define if it is not explicitly disabled.
5413 if test "$enable_execute" != "no" ; then
5414 enable_execute
="yes"
5416 $as_echo "#define ENABLE_EXECUTE 1" >>confdefs.h
5420 # Server tracing support.
5421 # Check whether --enable-tracing was given.
5422 if test "${enable_tracing+set}" = set; then :
5423 enableval
=$enable_tracing;
5426 # tracing is on by default, so define if it is not explicitly disabled.
5427 if test "$enable_tracing" != "no" ; then
5429 $as_echo "#define TRACING 1" >>confdefs.h
5433 # Delayed-ack feature support (experimental).
5434 # Check whether --enable-delayed_ack was given.
5435 if test "${enable_delayed_ack+set}" = set; then :
5436 enableval
=$enable_delayed_ack;
5439 if test "$enable_delayed_ack" = "yes"; then
5441 $as_echo "#define DELAYED_ACK 1" >>confdefs.h
5444 enable_delayed_ack
="no"
5447 # DHCPv6 optional compile-time feature.
5448 # Check whether --enable-dhcpv6 was given.
5449 if test "${enable_dhcpv6+set}" = set; then :
5450 enableval
=$enable_dhcpv6;
5453 # DHCPv6 is on by default, so define if it is not explicitly disabled.
5454 if test "$enable_dhcpv6" != "no"; then
5457 $as_echo "#define DHCPv6 1" >>confdefs.h
5461 # DHCPv4o6 optional compile-time feature.
5462 # Check whether --enable-dhcpv4o6 was given.
5463 if test "${enable_dhcpv4o6+set}" = set; then :
5464 enableval
=$enable_dhcpv4o6;
5467 # DHCPv4o6 is off by default, so define if it is explicitly enabled.
5468 if test "$enable_dhcpv4o6" = "yes"; then
5469 # DHCPv4o6 requires DHCPv6
5470 if test "$enable_dhcpv6" = "no"; then
5471 as_fn_error $?
"dhcpv4o6 requires dhcpv6" "$LINENO" 5
5473 # DHCPv4o6 is not yet compatible with delayed-ack
5474 if test "$enable_delayed_ack" = "yes"; then
5475 as_fn_error $?
"dhcpv4o6 is not compatible with delayed-ack" "$LINENO" 5
5478 $as_echo "#define DHCP4o6 1" >>confdefs.h
5482 # PARANOIA is off by default (until we can test it with all features)
5483 # Check whether --enable-paranoia was given.
5484 if test "${enable_paranoia+set}" = set; then :
5485 enableval
=$enable_paranoia;
5488 # Check whether --enable-early_chroot was given.
5489 if test "${enable_early_chroot+set}" = set; then :
5490 enableval
=$enable_early_chroot;
5493 # If someone enables early chroot, but does not enable paranoia, do so for
5495 if test "$enable_paranoia" != "yes" && \
5496 test "$enable_early_chroot" = "yes" ; then
5497 enable_paranoia
="yes"
5500 if test "$enable_paranoia" = "yes" ; then
5502 $as_echo "#define PARANOIA 1" >>confdefs.h
5505 if test "$enable_early_chroot" = "yes" ; then
5507 $as_echo "#define EARLY_CHROOT 1" >>confdefs.h
5511 # Check whether --enable-ipv4_pktinfo was given.
5512 if test "${enable_ipv4_pktinfo+set}" = set; then :
5513 enableval
=$enable_ipv4_pktinfo;
5517 if test "$enable_ipv4_pktinfo" = "yes"; then
5519 $as_echo "#define USE_V4_PKTINFO 1" >>confdefs.h
5523 # Check whether --enable-use_sockets was given.
5524 if test "${enable_use_sockets+set}" = set; then :
5525 enableval
=$enable_use_sockets;
5529 if test "$enable_use_sockets" = "yes"; then
5531 $as_echo "#define USE_SOCKETS 1" >>confdefs.h
5535 # Try to hnadle incorrect byte order for secs field
5536 # This is off by default
5537 # Check whether --enable-secs_byteorder was given.
5538 if test "${enable_secs_byteorder+set}" = set; then :
5539 enableval
=$enable_secs_byteorder;
5543 if test "$enable_secs_byteorder" = "yes" ; then
5545 $as_echo "#define SECS_BYTEORDER 1" >>confdefs.h
5549 # Include the PID in the log messages. This is useful when there may
5550 # be multiple instances of a program.
5551 # This is off by default
5552 # Check whether --enable-log_pid was given.
5553 if test "${enable_log_pid+set}" = set; then :
5554 enableval
=$enable_log_pid;
5557 if test "$enable_log_pid" = "yes" ; then
5559 $as_echo "#define USE_LOG_PID 1" >>confdefs.h
5563 # Allow for binary search when inserting v4 leases into queues
5564 # Check whether --enable-binary_leases was given.
5565 if test "${enable_binary_leases+set}" = set; then :
5566 enableval
=$enable_binary_leases;
5569 # binary_leases is off by default.
5570 if test "$enable_binary_leases" = "yes"; then
5572 $as_echo "#define BINARY_LEASES 1" >>confdefs.h
5575 enable_binary_leases
="no"
5580 DISTCHECK_ATF_CONFIGURE_FLAG
=
5583 # Check whether --with-atf was given.
5584 if test "${with_atf+set}" = set; then :
5585 withval
=$with_atf; atf_path
="$withval"
5588 if test "$atf_path" = "bind"; then
5596 if test "$atf_path" = "bind" ; then
5597 DISTCHECK_ATF_CONFIGURE_FLAG
="--with-atf=bind"
5599 atf_path
="\${top_srcdir}/bind/atf"
5600 ATF_CFLAGS
="-I$atf_path/include -DUNIT_TEST"
5601 ATF_LDFLAGS
="-L$atf_path/lib -latf-c"
5602 ATF_BIN
=`cd $srcdir; pwd`/bind
/atf
/bin
5606 BINDCONFIG
="$BINDCONFIG --with-atf"
5607 elif test "$atf_path" != "no" ; then
5608 DISTCHECK_ATF_CONFIGURE_FLAG
="--with-atf=$atf_path"
5609 # Config path for pkg-config
5611 if test "$atf_path" != "yes" ; then
5612 if test -f $atf_path/lib
/pkgconfig
/atf-c.pc
; then
5613 atf_pcp
=$atf_path/lib
/pkgconfig
5614 elif test -f $atf_path/lib64
/pkgconfig
/atf-c.pc
; then
5615 atf_pcp
=$atf_path/lib64
/pkgconfig
5618 # Not specified, try some common paths
5619 atf_dirs
="/usr /usr/local /usr/pkg /opt /opt/local"
5622 if test -f $d/lib
/pkgconfig
/atf-c.pc
; then
5623 atf_pcp
=$d/lib
/pkgconfig
5625 elif test -f $d/lib64
/pkgconfig
/atf-c.pc
; then
5626 atf_pcp
=$d/lib64
/pkgconfig
5632 if test "$atf_pcp" = "" ; then
5633 as_fn_error $?
"Unable to find atf files in location specified" "$LINENO" 5
5635 # Extract the first word of "pkg-config", so it can be a program name with args.
5636 set dummy pkg-config
; ac_word
=$2
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638 $as_echo_n "checking for $ac_word... " >&6; }
5639 if ${ac_cv_prog_pkgcfg_found+:} false
; then :
5640 $as_echo_n "(cached) " >&6
5642 if test -n "$pkgcfg_found"; then
5643 ac_cv_prog_pkgcfg_found
="$pkgcfg_found" # Let the user override the test.
5645 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5649 test -z "$as_dir" && as_dir
=.
5650 for ac_exec_ext
in '' $ac_executable_extensions; do
5651 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5652 ac_cv_prog_pkgcfg_found
="pkg-config"
5653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 pkgcfg_found
=$ac_cv_prog_pkgcfg_found
5663 if test -n "$pkgcfg_found"; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgcfg_found" >&5
5665 $as_echo "$pkgcfg_found" >&6; }
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }
5672 if test "$pkgcfg_found" = ""; then
5673 as_fn_error $?
"Could not locate ATF, pkg-config not installed" "$LINENO" 5
5675 ATF_CFLAGS
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --cflags atf-c` -DUNIT_TEST"
5676 ATF_LDFLAGS
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --libs atf-c`"
5677 if test -f $atf_pcp/atf-sh.pc
; then
5678 ATF_BIN
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --variable=exec_prefix atf-sh`/bin"
5680 # older versions don't have atf-sh, try usual place
5681 ATF_BIN
=$atf_path/bin
5684 if test ! -x $ATF_BIN/atf-run
-o ! -x $ATF_BIN/atf-report
; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: atf-run/atf-report not found, assuming they are in your path" >&5
5686 $as_echo "$as_me: WARNING: atf-run/atf-report not found, assuming they are in your path" >&2;}
5695 if test "$atf_pcp" != ""; then
5703 if test -z "$HAVE_ATF_TRUE"; then :
5705 $as_echo "#define HAVE_ATF 1" >>confdefs.h
5711 ### Path fun. Older versions of DHCP were installed in /usr/sbin, so we
5712 ### need to look there and potentially overwrite by default (but not if
5713 ### the user configures an alternate value). LOCALSTATEDIR is totally
5714 ### braindead. No one uses /usr/local/var/db/ nor /usr/local/var/run, and
5715 ### they would be insane for suggesting it. We need to look in /var/for
5716 ### 'db' and 'state/dhcp' for db files, and /var/run for pid files by
5719 if test "x$prefix" = xNONE
; then
5720 $as_echo_n "checking for prefix by " >&6
5721 # Extract the first word of "dhcpd", so it can be a program name with args.
5722 set dummy dhcpd
; ac_word
=$2
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if ${ac_cv_path_ac_prefix_program+:} false
; then :
5726 $as_echo_n "(cached) " >&6
5728 case $ac_prefix_program in
5730 ac_cv_path_ac_prefix_program
="$ac_prefix_program" # Let the user override the test with a path.
5733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5737 test -z "$as_dir" && as_dir
=.
5738 for ac_exec_ext
in '' $ac_executable_extensions; do
5739 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5740 ac_cv_path_ac_prefix_program
="$as_dir/$ac_word$ac_exec_ext"
5741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5751 ac_prefix_program
=$ac_cv_path_ac_prefix_program
5752 if test -n "$ac_prefix_program"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
5754 $as_echo "$ac_prefix_program" >&6; }
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5761 if test -n "$ac_prefix_program"; then
5762 prefix
=`$as_dirname -- "$ac_prefix_program" ||
5763 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5764 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
5765 X"$ac_prefix_program" : 'X\(//\)$' \| \
5766 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
5767 $as_echo X"$ac_prefix_program" |
5768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5785 prefix
=`$as_dirname -- "$prefix" ||
5786 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5787 X"$prefix" : 'X\(//\)[^/]' \| \
5788 X"$prefix" : 'X\(//\)$' \| \
5789 X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
5790 $as_echo X"$prefix" |
5791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5812 # XXX - isn't there SOME WAY to default autoconf to /var instead of
5813 # /usr/local/var/no/one/has/this/please/stop/trying?
5814 case "$localstatedir" in
5820 # Allow specification of alternate state files
5822 # Check whether --with-srv-lease-file was given.
5823 if test "${with_srv_lease_file+set}" = set; then :
5824 withval
=$with_srv_lease_file;
5825 cat >>confdefs.h
<<_ACEOF
5826 #define _PATH_DHCPD_DB "$withval"
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhcpd.leases location" >&5
5833 $as_echo_n "checking for dhcpd.leases location... " >&6; }
5834 if [ "x$with_srv_lease_file" = "x" ] ; then
5835 if [ -d "${localstatedir}/db" ] ; then
5836 with_srv_lease_file
="${localstatedir}/db/dhcpd.leases"
5837 elif [ -d "${localstatedir}/state" ] ; then
5838 if [ -d "${localstatedir}/state/dhcp" ] ; then
5839 with_srv_lease_file
="${localstatedir}/state/dhcp/dhcpd.leases"
5841 with_srv_lease_file
="${localstatedir}/state/dhcpd.leases"
5843 elif [ -d "${localstatedir}/lib" ] ; then
5844 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5845 with_srv_lease_file
="${localstatedir}/lib/dhcp/dhcpd.leases"
5847 with_srv_lease_file
="${localstatedir}/lib/dhcpd.leases"
5849 elif [ -d "${localstatedir}/etc" ] ; then
5850 with_srv_lease_file
="${localstatedir}/etc/dhcpd.leases"
5852 with_srv_lease_file
="/etc/dhcpd.leases"
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_srv_lease_file" >&5
5856 $as_echo "$with_srv_lease_file" >&6; }
5859 # Check whether --with-srv6-lease-file was given.
5860 if test "${with_srv6_lease_file+set}" = set; then :
5861 withval
=$with_srv6_lease_file;
5862 cat >>confdefs.h
<<_ACEOF
5863 #define _PATH_DHCPD6_DB "$withval"
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhcpd6.leases location" >&5
5870 $as_echo_n "checking for dhcpd6.leases location... " >&6; }
5871 if [ "x$with_srv6_lease_file" = "x" ] ; then
5872 if [ -d "${localstatedir}/db" ] ; then
5873 with_srv6_lease_file
="${localstatedir}/db/dhcpd6.leases"
5874 elif [ -d "${localstatedir}/state" ] ; then
5875 if [ -d "${localstatedir}/state/dhcp" ] ; then
5876 with_srv6_lease_file
="${localstatedir}/state/dhcp/dhcpd6.leases"
5878 with_srv6_lease_file
="${localstatedir}/state/dhcpd6.leases"
5880 elif [ -d "${localstatedir}/lib" ] ; then
5881 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5882 with_srv6_lease_file
="${localstatedir}/lib/dhcp/dhcpd6.leases"
5884 with_srv6_lease_file
="${localstatedir}/lib/dhcpd6.leases"
5886 elif [ -d "${localstatedir}/etc" ] ; then
5887 with_srv6_lease_file
="${localstatedir}/etc/dhcpd6.leases"
5889 with_srv6_lease_file
="/etc/dhcpd6.leases"
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_srv6_lease_file" >&5
5893 $as_echo "$with_srv6_lease_file" >&6; }
5896 # Check whether --with-cli-lease-file was given.
5897 if test "${with_cli_lease_file+set}" = set; then :
5898 withval
=$with_cli_lease_file;
5899 cat >>confdefs.h
<<_ACEOF
5900 #define _PATH_DHCLIENT_DB "$withval"
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhclient.leases location" >&5
5907 $as_echo_n "checking for dhclient.leases location... " >&6; }
5908 if [ "x$with_cli_lease_file" = "x" ] ; then
5909 if [ -d "${localstatedir}/db" ] ; then
5910 with_cli_lease_file
="${localstatedir}/db/dhclient.leases"
5911 elif [ -d "${localstatedir}/state" ] ; then
5912 if [ -d "${localstatedir}/state/dhcp" ] ; then
5913 with_cli_lease_file
="${localstatedir}/state/dhcp/dhclient.leases"
5915 with_cli_lease_file
="${localstatedir}/state/dhclient.leases"
5917 elif [ -d "${localstatedir}/lib" ] ; then
5918 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5919 with_cli_lease_file
="${localstatedir}/lib/dhcp/dhclient.leases"
5921 with_cli_lease_file
="${localstatedir}/lib/dhclient.leases"
5923 elif [ -d "${localstatedir}/etc" ] ; then
5924 with_cli_lease_file
="${localstatedir}/etc/dhclient.leases"
5926 with_cli_lease_file
="/etc/dhclient.leases"
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cli_lease_file" >&5
5930 $as_echo "$with_cli_lease_file" >&6; }
5933 # Check whether --with-cli6-lease-file was given.
5934 if test "${with_cli6_lease_file+set}" = set; then :
5935 withval
=$with_cli6_lease_file;
5936 cat >>confdefs.h
<<_ACEOF
5937 #define _PATH_DHCLIENT6_DB "$withval"
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhclient6.leases location" >&5
5944 $as_echo_n "checking for dhclient6.leases location... " >&6; }
5945 if [ "x$with_cli6_lease_file" = "x" ] ; then
5946 if [ -d "${localstatedir}/db" ] ; then
5947 with_cli6_lease_file
="${localstatedir}/db/dhclient6.leases"
5948 elif [ -d "${localstatedir}/state" ] ; then
5949 if [ -d "${localstatedir}/state/dhcp" ] ; then
5950 with_cli6_lease_file
="${localstatedir}/state/dhcp/dhclient6.leases"
5952 with_cli6_lease_file
="${localstatedir}/state/dhclient6.leases"
5954 elif [ -d "${localstatedir}/lib" ] ; then
5955 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5956 with_cli6_lease_file
="${localstatedir}/lib/dhcp/dhclient6.leases"
5958 with_cli6_lease_file
="${localstatedir}/lib/dhclient6.leases"
5960 elif [ -d "${localstatedir}/etc" ] ; then
5961 with_cli6_lease_file
="${localstatedir}/etc/dhclient6.leases"
5963 with_cli6_lease_file
="/etc/dhclient6.leases"
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cli6_lease_file" >&5
5967 $as_echo "$with_cli6_lease_file" >&6; }
5970 # Check whether --with-srv-pid-file was given.
5971 if test "${with_srv_pid_file+set}" = set; then :
5972 withval
=$with_srv_pid_file;
5973 cat >>confdefs.h
<<_ACEOF
5974 #define _PATH_DHCPD_PID "$withval"
5980 # Check whether --with-srv6-pid-file was given.
5981 if test "${with_srv6_pid_file+set}" = set; then :
5982 withval
=$with_srv6_pid_file;
5983 cat >>confdefs.h
<<_ACEOF
5984 #define _PATH_DHCPD6_PID "$withval"
5990 # Check whether --with-cli-pid-file was given.
5991 if test "${with_cli_pid_file+set}" = set; then :
5992 withval
=$with_cli_pid_file;
5993 cat >>confdefs.h
<<_ACEOF
5994 #define _PATH_DHCLIENT_PID "$withval"
6000 # Check whether --with-cli6-pid-file was given.
6001 if test "${with_cli6_pid_file+set}" = set; then :
6002 withval
=$with_cli6_pid_file;
6003 cat >>confdefs.h
<<_ACEOF
6004 #define _PATH_DHCLIENT6_PID "$withval"
6010 # Check whether --with-relay-pid-file was given.
6011 if test "${with_relay_pid_file+set}" = set; then :
6012 withval
=$with_relay_pid_file;
6013 cat >>confdefs.h
<<_ACEOF
6014 #define _PATH_DHCRELAY_PID "$withval"
6020 # Check whether --with-relay6-pid-file was given.
6021 if test "${with_relay6_pid_file+set}" = set; then :
6022 withval
=$with_relay6_pid_file;
6023 cat >>confdefs.h
<<_ACEOF
6024 #define _PATH_DHCRELAY6_PID "$withval"
6030 # Check basic types.
6031 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6032 case $ac_cv_c_int8_t in #(
6036 cat >>confdefs.h
<<_ACEOF
6037 #define int8_t $ac_cv_c_int8_t
6042 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6043 case $ac_cv_c_int16_t in #(
6047 cat >>confdefs.h
<<_ACEOF
6048 #define int16_t $ac_cv_c_int16_t
6053 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6054 case $ac_cv_c_int32_t in #(
6058 cat >>confdefs.h
<<_ACEOF
6059 #define int32_t $ac_cv_c_int32_t
6064 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6065 case $ac_cv_c_int64_t in #(
6069 cat >>confdefs.h
<<_ACEOF
6070 #define int64_t $ac_cv_c_int64_t
6076 # Some systems need the u_intX_t types defined across.
6077 ac_fn_c_check_type
"$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
6078 if test "x$ac_cv_type_u_int8_t" = xyes
; then :
6082 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6083 case $ac_cv_c_uint8_t in #(
6087 $as_echo "#define _UINT8_T 1" >>confdefs.h
6090 cat >>confdefs.h
<<_ACEOF
6091 #define uint8_t $ac_cv_c_uint8_t
6097 $as_echo "#define u_int8_t uint8_t" >>confdefs.h
6102 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
6103 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
6107 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6108 case $ac_cv_c_uint16_t in #(
6113 cat >>confdefs.h
<<_ACEOF
6114 #define uint16_t $ac_cv_c_uint16_t
6120 $as_echo "#define u_int16_t uint16_t" >>confdefs.h
6125 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
6126 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
6130 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6131 case $ac_cv_c_uint32_t in #(
6135 $as_echo "#define _UINT32_T 1" >>confdefs.h
6138 cat >>confdefs.h
<<_ACEOF
6139 #define uint32_t $ac_cv_c_uint32_t
6145 $as_echo "#define u_int32_t uint32_t" >>confdefs.h
6150 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
6151 if test "x$ac_cv_type_u_int64_t" = xyes
; then :
6155 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6156 case $ac_cv_c_uint64_t in #(
6160 $as_echo "#define _UINT64_T 1" >>confdefs.h
6163 cat >>confdefs.h
<<_ACEOF
6164 #define uint64_t $ac_cv_c_uint64_t
6170 $as_echo "#define u_int64_t uint64_t" >>confdefs.h
6176 # see if ifaddrs.h is available
6177 for ac_header
in ifaddrs.h
6179 ac_fn_c_check_header_mongrel
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6180 if test "x$ac_cv_header_ifaddrs_h" = xyes
; then :
6181 cat >>confdefs.h
<<_ACEOF
6182 #define HAVE_IFADDRS_H 1
6190 # figure out what IPv4 interface code to use
6191 for ac_header
in linux
/types.h
6193 ac_fn_c_check_header_mongrel
"$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
6194 if test "x$ac_cv_header_linux_types_h" = xyes
; then :
6195 cat >>confdefs.h
<<_ACEOF
6196 #define HAVE_LINUX_TYPES_H 1
6202 # needed for linux/filter.h on old systems
6204 ac_fn_c_check_header_compile
"$LINENO" "linux/filter.h" "ac_cv_header_linux_filter_h" "
6205 #ifdef HAVE_LINUX_TYPES_H
6206 #include <linux/types.h>
6210 if test "x$ac_cv_header_linux_filter_h" = xyes
; then :
6215 if test -n "$DO_LPF"
6218 $as_echo "#define HAVE_LPF 1" >>confdefs.h
6221 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dlpi.h" "ac_cv_header_sys_dlpi_h" "$ac_includes_default"
6222 if test "x$ac_cv_header_sys_dlpi_h" = xyes
; then :
6227 if test -n "$DO_DLPI"
6230 $as_echo "#define HAVE_DLPI 1" >>confdefs.h
6233 ac_fn_c_check_header_mongrel
"$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
6234 if test "x$ac_cv_header_net_bpf_h" = xyes
; then :
6239 if test -n "$DO_BPF"
6242 $as_echo "#define HAVE_BPF 1" >>confdefs.h
6248 # SIOCGLIFCONF uses some transport structures. Trick is not all platforms
6249 # use the same structures. We like to use 'struct lifconf' and 'struct
6250 # lifreq', but we'll use these other structures if they're present. HPUX
6251 # does not define 'struct lifnum', but does use SIOCGLIFNUM - they use an
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifnum" >&5
6255 $as_echo_n "checking for struct lifnum... " >&6; }
6256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6258 #include <sys/types.h>
6259 #include <sys/socket.h>
6271 if ac_fn_c_try_compile
"$LINENO"; then :
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6273 $as_echo "yes" >&6; }
6275 $as_echo "#define ISC_PLATFORM_HAVELIFNUM 1" >>confdefs.h
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279 $as_echo "no" >&6; }
6281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
6284 $as_echo_n "checking for struct if_laddrconf... " >&6; }
6285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6287 #include <sys/types.h>
6288 #include <net/if6.h>
6293 struct if_laddrconf a;
6299 if ac_fn_c_try_compile
"$LINENO"; then :
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6301 $as_echo "yes" >&6; }
6303 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
6312 $as_echo_n "checking for struct if_laddrreq... " >&6; }
6313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h. */
6315 #include <sys/types.h>
6316 #include <net/if6.h>
6321 struct if_laddrreq a;
6327 if ac_fn_c_try_link
"$LINENO"; then :
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6329 $as_echo "yes" >&6; }
6331 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6337 rm -f core conftest.err conftest.
$ac_objext \
6338 conftest
$ac_exeext conftest.
$ac_ext
6341 # check for GCC noreturn attribute
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
6344 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
6345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6351 void foo() __attribute__((noreturn));
6356 if ac_fn_c_try_compile
"$LINENO"; then :
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6358 $as_echo "yes" >&6; }
6360 $as_echo "#define ISC_DHCP_NORETURN __attribute__((noreturn))" >>confdefs.h
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 $as_echo "no" >&6; }
6366 $as_echo "#define ISC_DHCP_NORETURN /**/" >>confdefs.h
6369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6371 # Look for optional headers.
6372 for ac_header
in sys
/socket.h net
/if_dl.h net
/if6.h regex.h
6374 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6375 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6376 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6377 cat >>confdefs.h
<<_ACEOF
6378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6386 # Solaris needs some libraries for functions
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6388 $as_echo_n "checking for library containing socket... " >&6; }
6389 if ${ac_cv_search_socket+:} false
; then :
6390 $as_echo_n "(cached) " >&6
6392 ac_func_search_save_LIBS
=$LIBS
6393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6394 /* end confdefs.h. */
6396 /* Override any GCC internal prototype to avoid an error.
6397 Use char because int might match the return type of a GCC
6398 builtin and then its argument prototype would still apply. */
6411 for ac_lib
in '' socket
; do
6412 if test -z "$ac_lib"; then
6413 ac_res
="none required"
6416 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6418 if ac_fn_c_try_link
"$LINENO"; then :
6419 ac_cv_search_socket
=$ac_res
6421 rm -f core conftest.err conftest.
$ac_objext \
6423 if ${ac_cv_search_socket+:} false
; then :
6427 if ${ac_cv_search_socket+:} false
; then :
6430 ac_cv_search_socket
=no
6433 LIBS
=$ac_func_search_save_LIBS
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6436 $as_echo "$ac_cv_search_socket" >&6; }
6437 ac_res
=$ac_cv_search_socket
6438 if test "$ac_res" != no
; then :
6439 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6444 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
6445 if ${ac_cv_search_inet_ntoa+:} false
; then :
6446 $as_echo_n "(cached) " >&6
6448 ac_func_search_save_LIBS
=$LIBS
6449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6452 /* Override any GCC internal prototype to avoid an error.
6453 Use char because int might match the return type of a GCC
6454 builtin and then its argument prototype would still apply. */
6462 return inet_ntoa ();
6467 for ac_lib
in '' nsl
; do
6468 if test -z "$ac_lib"; then
6469 ac_res
="none required"
6472 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6474 if ac_fn_c_try_link
"$LINENO"; then :
6475 ac_cv_search_inet_ntoa
=$ac_res
6477 rm -f core conftest.err conftest.
$ac_objext \
6479 if ${ac_cv_search_inet_ntoa+:} false
; then :
6483 if ${ac_cv_search_inet_ntoa+:} false
; then :
6486 ac_cv_search_inet_ntoa
=no
6489 LIBS
=$ac_func_search_save_LIBS
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6492 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
6493 ac_res
=$ac_cv_search_inet_ntoa
6494 if test "$ac_res" != no
; then :
6495 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
6501 $as_echo_n "checking for library containing inet_aton... " >&6; }
6502 if ${ac_cv_search_inet_aton+:} false
; then :
6503 $as_echo_n "(cached) " >&6
6505 ac_func_search_save_LIBS
=$LIBS
6506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6509 /* Override any GCC internal prototype to avoid an error.
6510 Use char because int might match the return type of a GCC
6511 builtin and then its argument prototype would still apply. */
6519 return inet_aton ();
6524 for ac_lib
in '' socket nsl
; do
6525 if test -z "$ac_lib"; then
6526 ac_res
="none required"
6529 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6531 if ac_fn_c_try_link
"$LINENO"; then :
6532 ac_cv_search_inet_aton
=$ac_res
6534 rm -f core conftest.err conftest.
$ac_objext \
6536 if ${ac_cv_search_inet_aton+:} false
; then :
6540 if ${ac_cv_search_inet_aton+:} false
; then :
6543 ac_cv_search_inet_aton
=no
6546 LIBS
=$ac_func_search_save_LIBS
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
6549 $as_echo "$ac_cv_search_inet_aton" >&6; }
6550 ac_res
=$ac_cv_search_inet_aton
6551 if test "$ac_res" != no
; then :
6552 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6556 $as_echo "#define NEED_INET_ATON 1" >>confdefs.h
6561 # Check for a standalone regex library.
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
6563 $as_echo_n "checking for library containing regcomp... " >&6; }
6564 if ${ac_cv_search_regcomp+:} false
; then :
6565 $as_echo_n "(cached) " >&6
6567 ac_func_search_save_LIBS
=$LIBS
6568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h. */
6571 /* Override any GCC internal prototype to avoid an error.
6572 Use char because int might match the return type of a GCC
6573 builtin and then its argument prototype would still apply. */
6586 for ac_lib
in '' regex
; do
6587 if test -z "$ac_lib"; then
6588 ac_res
="none required"
6591 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6593 if ac_fn_c_try_link
"$LINENO"; then :
6594 ac_cv_search_regcomp
=$ac_res
6596 rm -f core conftest.err conftest.
$ac_objext \
6598 if ${ac_cv_search_regcomp+:} false
; then :
6602 if ${ac_cv_search_regcomp+:} false
; then :
6605 ac_cv_search_regcomp
=no
6608 LIBS
=$ac_func_search_save_LIBS
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
6611 $as_echo "$ac_cv_search_regcomp" >&6; }
6612 ac_res
=$ac_cv_search_regcomp
6613 if test "$ac_res" != no
; then :
6614 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6619 for ac_func
in strlcat
6621 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
6622 if test "x$ac_cv_func_strlcat" = xyes
; then :
6623 cat >>confdefs.h
<<_ACEOF
6624 #define HAVE_STRLCAT 1
6631 # For HP/UX we need -lipv6 for if_nametoindex, perhaps others.
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
6633 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
6634 if ${ac_cv_search_if_nametoindex+:} false
; then :
6635 $as_echo_n "(cached) " >&6
6637 ac_func_search_save_LIBS
=$LIBS
6638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6639 /* end confdefs.h. */
6641 /* Override any GCC internal prototype to avoid an error.
6642 Use char because int might match the return type of a GCC
6643 builtin and then its argument prototype would still apply. */
6647 char if_nametoindex ();
6651 return if_nametoindex ();
6656 for ac_lib
in '' ipv6
; do
6657 if test -z "$ac_lib"; then
6658 ac_res
="none required"
6661 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6663 if ac_fn_c_try_link
"$LINENO"; then :
6664 ac_cv_search_if_nametoindex
=$ac_res
6666 rm -f core conftest.err conftest.
$ac_objext \
6668 if ${ac_cv_search_if_nametoindex+:} false
; then :
6672 if ${ac_cv_search_if_nametoindex+:} false
; then :
6675 ac_cv_search_if_nametoindex
=no
6678 LIBS
=$ac_func_search_save_LIBS
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
6681 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
6682 ac_res
=$ac_cv_search_if_nametoindex
6683 if test "$ac_res" != no
; then :
6684 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6689 # check for /dev/random (declares HAVE_DEV_RANDOM)
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
6691 $as_echo_n "checking for random device... " >&6; }
6693 # Check whether --with-randomdev was given.
6694 if test "${with_randomdev+set}" = set; then :
6695 withval
=$with_randomdev; use_randomdev
="$withval"
6697 use_randomdev
="unspec"
6700 if test "$use_randomdev" = "unspec"; then
6701 if test "$cross_compiling" = "yes"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unspecified" >&5
6703 $as_echo "unspecified" >&6; }
6704 as_fn_error $?
" need --with-randomdev=PATH or --with-randomdev=no" "$LINENO" 5
6706 use_randomdev
="/dev/random"
6707 elif test "$use_randomdev" = "yes"; then
6708 use_randomdev
="/dev/random"
6710 if test "$use_randomdev" = "no"; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6712 $as_echo "disabled" >&6; }
6713 BINDCONFIG
="$BINDCONFIG --with-randomdev=no"
6715 if test "$cross_compiling" = "yes"; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_randomdev (unchecked)" >&5
6717 $as_echo "$use_randomdev (unchecked)" >&6; }
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_randomdev" >&5
6720 $as_echo "$use_randomdev" >&6; }
6721 as_ac_File
=`$as_echo "ac_cv_file_$use_randomdev" | $as_tr_sh`
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $use_randomdev" >&5
6723 $as_echo_n "checking for $use_randomdev... " >&6; }
6724 if eval \
${$as_ac_File+:} false
; then :
6725 $as_echo_n "(cached) " >&6
6727 test "$cross_compiling" = yes &&
6728 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
6729 if test -r "$use_randomdev"; then
6730 eval "$as_ac_File=yes"
6732 eval "$as_ac_File=no"
6735 eval ac_res
=\$
$as_ac_File
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6737 $as_echo "$ac_res" >&6; }
6738 if eval test \"x\$
"$as_ac_File"\" = x
"yes"; then :
6740 $as_echo "#define HAVE_DEV_RANDOM 1" >>confdefs.h
6743 as_fn_error $?
"cannot find $use_randomdev" "$LINENO" 5
6747 BINDCONFIG
="$BINDCONFIG --with-randomdev=$use_randomdev"
6750 BINDIOMUX
="--disable-kqueue --disable-epoll --disable-devpoll"
6751 # check kqueue/epoll/devpoll alternative to select
6752 # Check whether --enable-kqueue was given.
6753 if test "${enable_kqueue+set}" = set; then :
6754 enableval
=$enable_kqueue; want_kqueue
="$enableval"
6759 if test "$want_kqueue" = "yes"; then
6760 BINDIOMUX
="--enable-kqueue"
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-kqueue is not supported: it may lead to issues such as server looping" >&5
6762 $as_echo "$as_me: WARNING: --enable-kqueue is not supported: it may lead to issues such as server looping" >&2;}
6764 # Check whether --enable-epoll was given.
6765 if test "${enable_epoll+set}" = set; then :
6766 enableval
=$enable_epoll; want_epoll
="$enableval"
6771 if test "$want_epoll" = "yes"; then
6772 BINDIOMUX
="--enable-epoll"
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-epoll is not supported: it may lead to issues such as server looping" >&5
6774 $as_echo "$as_me: WARNING: --enable-epoll is not supported: it may lead to issues such as server looping" >&2;}
6776 # Check whether --enable-devpoll was given.
6777 if test "${enable_devpoll+set}" = set; then :
6778 enableval
=$enable_devpoll; want_devpoll
="$enableval"
6783 if test "$want_devpoll" = "yes"; then
6784 BINDIOMUX
="--enable-devpoll"
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-devpoll is not supported: it may lead to issues such as server looping" >&5
6786 $as_echo "$as_me: WARNING: --enable-devpoll is not supported: it may lead to issues such as server looping" >&2;}
6790 # general extra bind configure arguments
6792 # Check whether --with-bind-extra-config was given.
6793 if test "${with_bind_extra_config+set}" = set; then :
6794 withval
=$with_bind_extra_config; use_xbindconfig
="$withval"
6799 case "$use_xbindconfig" in
6803 BINDCONFIG
="$BINDCONFIG $use_xbindconfig"
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Most options to bind configure are not supported when used by ISC DHCP" >&5
6805 $as_echo "$as_me: WARNING: Most options to bind configure are not supported when used by ISC DHCP" >&2;}
6809 # see if there is a "sa_len" field in our interface information structure
6810 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
6812 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
6814 $as_echo "#define HAVE_SA_LEN /**/" >>confdefs.h
6819 # figure out pointer size
6820 SAVE_CFLAGS
="$CFLAGS"
6821 CFLAGS
="$CFLAGS -I$srcdir"
6822 # The cast to long int works around a bug in the HP C Compiler
6823 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6824 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6825 # This bug is HP SR number 8606223364.
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iaddr *" >&5
6827 $as_echo_n "checking size of struct iaddr *... " >&6; }
6828 if ${ac_cv_sizeof_struct_iaddr_p+:} false
; then :
6829 $as_echo_n "(cached) " >&6
6831 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (struct iaddr *))" "ac_cv_sizeof_struct_iaddr_p" "
6832 #include \"includes/inet.h\"
6838 if test "$ac_cv_type_struct_iaddr_p" = yes; then
6839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6841 as_fn_error
77 "cannot compute sizeof (struct iaddr *)
6842 See \`config.log' for more details" "$LINENO" 5; }
6844 ac_cv_sizeof_struct_iaddr_p
=0
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iaddr_p" >&5
6850 $as_echo "$ac_cv_sizeof_struct_iaddr_p" >&6; }
6854 cat >>confdefs.h
<<_ACEOF
6855 #define SIZEOF_STRUCT_IADDR_P $ac_cv_sizeof_struct_iaddr_p
6859 CFLAGS
="$SAVE_CFLAGS"
6861 # Solaris does not have the msg_control or msg_controlen members
6862 # in the msghdr structure unless you define:
6864 # _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, and __EXTENSIONS__
6866 # See the "standards" man page for details.
6868 # We check for the msg_control member, and if it is not found, we check
6869 # again with the appropriate defines added to the CFLAGS. (In order to
6870 # do this we have to remove the check from the cache, which is what the
6872 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6873 #include <sys/types.h>
6874 #include <sys/socket.h>
6877 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
; then :
6880 CFLAGS
="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6881 CFLAGS
="$CFLAGS -D__EXTENSIONS__"
6882 unset ac_cv_member_struct_msghdr_msg_control
6883 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6884 #include <sys/types.h>
6885 #include <sys/socket.h>
6888 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
; then :
6891 as_fn_error $?
"Missing msg_control member in
6892 msg_control structure." "$LINENO" 5
6899 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>
6901 if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes
; then :
6903 $as_echo "#define VLAN_TCI_PRESENT 1" >>confdefs.h
6909 # bind/Makefile.in is not from automake so we need 2 variables for bind dir
6917 DISTCHECK_LIBBIND_CONFIGURE_FLAG
=
6919 # Check whether --with-libbind was given.
6920 if test "${with_libbind+set}" = set; then :
6921 withval
=$with_libbind; use_libbind
="$withval"
6926 case "$use_libbind" in
6928 as_fn_error $?
"PATH is required in --with-libbind=PATH" "$LINENO" 5
6931 BINDSUBDIR
="\${top_srcdir}/bind"
6932 my_abs_srcdir
=`cd $srcdir && pwd`
6933 BINDDIR
="${my_abs_srcdir}/bind"
6934 if test ! -d "$srcdir/bind"; then
6935 as_fn_error $?
"Where to find or build bind includes and libraries must be specified" "$LINENO" 5
6937 if test -d "$srcdir/bind/bind9"; then
6938 BINDSRCDIR
="${my_abs_srcdir}/bind/bind9"
6940 if test ! -f "$srcdir/bind/version.tmp"; then
6941 as_fn_error $?
"Cannot find $srcdir/bind/version.tmp" "$LINENO" 5
6943 .
"$srcdir/bind/version.tmp"
6944 bindversion
=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
6945 BINDSRCDIR
="${my_abs_srcdir}/bind/bind-$bindversion"
6947 ac_config_files
="$ac_config_files $srcdir/bind/Makefile"
6950 BINDLIBIRSDIR
="$BINDSRCDIR/lib/irs"
6951 BINDLIBDNSDIR
="$BINDSRCDIR/lib/dns"
6952 BINDLIBISCCFGDIR
="$BINDSRCDIR/lib/isccfg"
6953 BINDLIBISCDIR
="$BINDSRCDIR/lib/isc"
6956 if test ! -d "$use_libbind"; then
6957 as_fn_error $?
"Cannot find bind directory at $use_libbind" "$LINENO" 5
6959 if test ! -d "$use_libbind/include"; then
6960 as_fn_error $?
"Cannot find bind includes at $use_libbind/include" "$LINENO" 5
6962 if test ! -d "$use_libbind/lib"; then
6963 as_fn_error $?
"Cannot find bind libraries at $use_libbind/lib" "$LINENO" 5
6965 BINDDIR
="$use_libbind"
6966 BINDLIBIRSDIR
="$BINDDIR/lib"
6967 BINDLIBDNSDIR
="$BINDDIR/lib"
6968 BINDLIBISCCFGDIR
="$BINDDIR/lib"
6969 BINDLIBISCDIR
="$BINDDIR/lib"
6970 DISTCHECK_LIBBIND_CONFIGURE_FLAG
="--with-libbind=$use_libbind"
6981 if test "$use_libbind" = "no"; then
6983 HAVE_BINDDIR_FALSE
='#'
6985 HAVE_BINDDIR_TRUE
='#'
6990 # Check whether --enable-bind_install was given.
6991 if test "${enable_bind_install+set}" = set; then :
6992 enableval
=$enable_bind_install;
6995 if test "$enable_bind_install" = "yes" -a "$use_libbind" != "no"; then
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bind-install does nothing when --with-libbind is set" >&5
6997 $as_echo "$as_me: WARNING: --enable-bind-install does nothing when --with-libbind is set" >&2;}
6999 if test "$enable_bind_install" = "yes"; then
7001 INSTALL_BIND_FALSE
='#'
7003 INSTALL_BIND_TRUE
='#'
7010 # Check whether --with-ldap was given.
7011 if test "${with_ldap+set}" = set; then :
7012 withval
=$with_ldap; ldap
=$withval
7018 # OpenLDAP with SSL support.
7020 # Check whether --with-ldapcrypto was given.
7021 if test "${with_ldapcrypto+set}" = set; then :
7022 withval
=$with_ldapcrypto; ldapcrypto
=$withval
7028 # Gssapi to allow LDAP to authenticate with a keytab
7030 # Check whether --with-ldap-gssapi was given.
7031 if test "${with_ldap_gssapi+set}" = set; then :
7032 withval
=$with_ldap_gssapi; ldap_gssapi
=$withval
7039 # LDAP CASA auth support.
7041 # Check whether --with-ldapcasa was given.
7042 if test "${with_ldapcasa+set}" = set; then :
7043 withval
=$with_ldapcasa; ldapcasa
=$withval
7049 # OpenLDAP support is disabled by default, if enabled then SSL support is an
7050 # extra optional that is also disabled by default. Enabling LDAP SSL support
7051 # implies enabling LDAP support. Similarly, KRB5 support implies LDAP support,
7052 # but doesn't include SSL. The two are not dependant.
7053 if test x
$ldap = xyes ||
test x
$ldapcrypto = xyes ||
test x
$ldap_gssapi = xyes
; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
7057 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
7058 if ${ac_cv_search_ldap_initialize+:} false
; then :
7059 $as_echo_n "(cached) " >&6
7061 ac_func_search_save_LIBS
=$LIBS
7062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7065 /* Override any GCC internal prototype to avoid an error.
7066 Use char because int might match the return type of a GCC
7067 builtin and then its argument prototype would still apply. */
7071 char ldap_initialize ();
7075 return ldap_initialize ();
7080 for ac_lib
in '' ldap
; do
7081 if test -z "$ac_lib"; then
7082 ac_res
="none required"
7085 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7087 if ac_fn_c_try_link
"$LINENO"; then :
7088 ac_cv_search_ldap_initialize
=$ac_res
7090 rm -f core conftest.err conftest.
$ac_objext \
7092 if ${ac_cv_search_ldap_initialize+:} false
; then :
7096 if ${ac_cv_search_ldap_initialize+:} false
; then :
7099 ac_cv_search_ldap_initialize
=no
7102 LIBS
=$ac_func_search_save_LIBS
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
7105 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
7106 ac_res
=$ac_cv_search_ldap_initialize
7107 if test "$ac_res" != no
; then :
7108 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7113 as_fn_error $?
"*** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package?
7114 See \`config.log' for more details" "$LINENO" 5; }
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_pvt_opt_on" >&5
7118 $as_echo_n "checking for library containing ber_pvt_opt_on... " >&6; }
7119 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
7120 $as_echo_n "(cached) " >&6
7122 ac_func_search_save_LIBS
=$LIBS
7123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7126 /* Override any GCC internal prototype to avoid an error.
7127 Use char because int might match the return type of a GCC
7128 builtin and then its argument prototype would still apply. */
7132 char ber_pvt_opt_on ();
7136 return ber_pvt_opt_on ();
7141 for ac_lib
in '' lber
; do
7142 if test -z "$ac_lib"; then
7143 ac_res
="none required"
7146 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7148 if ac_fn_c_try_link
"$LINENO"; then :
7149 ac_cv_search_ber_pvt_opt_on
=$ac_res
7151 rm -f core conftest.err conftest.
$ac_objext \
7153 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
7157 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
7160 ac_cv_search_ber_pvt_opt_on
=no
7163 LIBS
=$ac_func_search_save_LIBS
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_pvt_opt_on" >&5
7166 $as_echo "$ac_cv_search_ber_pvt_opt_on" >&6; }
7167 ac_res
=$ac_cv_search_ber_pvt_opt_on
7168 if test "$ac_res" != no
; then :
7169 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7174 as_fn_error $?
"*** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package?
7175 See \`config.log' for more details" "$LINENO" 5; }
7178 if test x
$ldap_gssapi = xyes
; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_init_context" >&5
7180 $as_echo_n "checking for library containing krb5_init_context... " >&6; }
7181 if ${ac_cv_search_krb5_init_context+:} false
; then :
7182 $as_echo_n "(cached) " >&6
7184 ac_func_search_save_LIBS
=$LIBS
7185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7188 /* Override any GCC internal prototype to avoid an error.
7189 Use char because int might match the return type of a GCC
7190 builtin and then its argument prototype would still apply. */
7194 char krb5_init_context ();
7198 return krb5_init_context ();
7203 for ac_lib
in '' krb5
; do
7204 if test -z "$ac_lib"; then
7205 ac_res
="none required"
7208 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7210 if ac_fn_c_try_link
"$LINENO"; then :
7211 ac_cv_search_krb5_init_context
=$ac_res
7213 rm -f core conftest.err conftest.
$ac_objext \
7215 if ${ac_cv_search_krb5_init_context+:} false
; then :
7219 if ${ac_cv_search_krb5_init_context+:} false
; then :
7222 ac_cv_search_krb5_init_context
=no
7225 LIBS
=$ac_func_search_save_LIBS
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_init_context" >&5
7228 $as_echo "$ac_cv_search_krb5_init_context" >&6; }
7229 ac_res
=$ac_cv_search_krb5_init_context
7230 if test "$ac_res" != no
; then :
7231 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7236 as_fn_error $?
"*** Cannot find krb5_init_context with -lkrb5 - do you need to install a Kerberos Devel package?
7237 See \`config.log' for more details" "$LINENO" 5; }
7242 # Create LDAP_LIBS which we specify them explicitly rather than lumping them in with LIBS
7248 for ac_header
in ldap.h
7250 ac_fn_c_check_header_mongrel
"$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
7251 if test "x$ac_cv_header_ldap_h" = xyes
; then :
7252 cat >>confdefs.h
<<_ACEOF
7253 #define HAVE_LDAP_H 1
7260 for ac_func
in inet_pton inet_ntop
7262 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7263 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7264 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7265 cat >>confdefs.h
<<_ACEOF
7266 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7274 LDAP_CFLAGS
="-DLDAP_CONFIGURATION"
7276 if test x
$ldapcasa = xyes
; then
7277 for ac_header
in micasa_mgmd.h
7279 ac_fn_c_check_header_mongrel
"$LINENO" "micasa_mgmd.h" "ac_cv_header_micasa_mgmd_h" "$ac_includes_default"
7280 if test "x$ac_cv_header_micasa_mgmd_h" = xyes
; then :
7281 cat >>confdefs.h
<<_ACEOF
7282 #define HAVE_MICASA_MGMD_H 1
7285 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_CASA_AUTH"
7288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7290 as_fn_error $?
"*** Cannot find micasa_mgmd.h for ldap casa auth support
7291 See \`config.log' for more details" "$LINENO" 5; }
7298 if test x
$ldapcrypto = xyes
; then
7299 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_USE_SSL"
7302 if test x
$ldap_gssapi = xyes
; then
7303 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_USE_GSSAPI"
7306 LDAP_CFLAGS
=$LDAP_CFLAGS
7310 # Append selected warning levels to CFLAGS before substitution (but after
7311 # AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]) & etc).
7312 CFLAGS
="$CFLAGS $STD_CWARNINGS"
7314 # Try to add the bind and dhcp include directories
7315 CFLAGS
="$CFLAGS -I\$(top_srcdir)/includes -I$BINDDIR/include"
7319 CFLAGS
="$CFLAGS -D__APPLE_USE_RFC_3542";;
7321 # As of Solaris 11, ethernet dev files are in /dev/net
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/net" >&5
7323 $as_echo_n "checking for /dev/net... " >&6; }
7324 if ${ac_cv_file__dev_net+:} false
; then :
7325 $as_echo_n "(cached) " >&6
7327 test "$cross_compiling" = yes &&
7328 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
7329 if test -r "/dev/net"; then
7330 ac_cv_file__dev_net
=yes
7332 ac_cv_file__dev_net
=no
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_net" >&5
7336 $as_echo "$ac_cv_file__dev_net" >&6; }
7337 if test "x$ac_cv_file__dev_net" = xyes
; then :
7339 $as_echo "#define USE_DEV_NET 1" >>confdefs.h
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
7348 $as_echo_n "checking for flexible array members... " >&6; }
7349 if ${ac_cv_c_flexmember+:} false
; then :
7350 $as_echo_n "(cached) " >&6
7352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7357 struct s { int n; double d[]; };
7362 struct s *p = malloc (offsetof (struct s, d)
7363 + m * sizeof (double));
7365 return p->d != (double *) NULL;
7370 if ac_fn_c_try_compile
"$LINENO"; then :
7371 ac_cv_c_flexmember
=yes
7373 ac_cv_c_flexmember
=no
7375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
7378 $as_echo "$ac_cv_c_flexmember" >&6; }
7379 if test $ac_cv_c_flexmember = yes; then
7381 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
7384 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
7389 ac_config_files
="$ac_config_files Makefile client/Makefile client/tests/Makefile common/Makefile common/tests/Makefile dhcpctl/Makefile includes/Makefile omapip/Makefile relay/Makefile server/Makefile tests/Makefile tests/unittest.sh server/tests/Makefile doc/devel/doxyfile"
7391 cat >confcache
<<\_ACEOF
7392 # This file is a shell script that caches the results of configure
7393 # tests run on this system so they can be shared between configure
7394 # scripts and configure runs, see configure's option --config-cache.
7395 # It is not useful on other systems. If it contains results you don't
7396 # want to keep, you may remove or edit it.
7398 # config.status only pays attention to the cache file if you give it
7399 # the --recheck option to rerun configure.
7401 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7402 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7407 # The following way of writing the cache mishandles newlines in values,
7408 # but we know of no workaround that is simple, portable, and efficient.
7409 # So, we kill variables containing newlines.
7410 # Ultrix sh set writes to stderr and can't be redirected directly,
7411 # and sets the high bit in the cache file unless we assign to the vars.
7413 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7414 eval ac_val
=\$
$ac_var
7418 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7419 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7422 _ | IFS | as_nl
) ;; #(
7423 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7424 *) { eval $ac_var=; unset $ac_var;} ;;
7430 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7431 *${as_nl}ac_space
=\
*)
7432 # `set' does not quote correctly, so add quotes: double-quote
7433 # substitution turns \\\\ into \\, and sed turns \\ into \.
7436 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7439 # `set' quotes correctly as required by POSIX, so do not add quotes.
7440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7449 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7451 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7453 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7454 if test -w "$cache_file"; then
7455 if test "x$cache_file" != "x/dev/null"; then
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7457 $as_echo "$as_me: updating cache $cache_file" >&6;}
7458 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
7459 cat confcache
>"$cache_file"
7461 case $cache_file in #(
7463 mv -f confcache
"$cache_file"$$
&&
7464 mv -f "$cache_file"$$
"$cache_file" ;; #(
7466 mv -f confcache
"$cache_file" ;;
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7472 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7477 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7478 # Let make expand exec_prefix.
7479 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7481 DEFS
=-DHAVE_CONFIG_H
7486 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7487 # 1. Remove the extension, and $U if already installed.
7488 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7489 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7490 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7491 # will be set to the directory where LIBOBJS objects are built.
7492 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7493 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7497 LTLIBOBJS
=$ac_ltlibobjs
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7501 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7502 if test -n "$am_sleep_pid"; then
7503 # Hide warnings about reused PIDs.
7504 wait $am_sleep_pid 2>/dev
/null
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7507 $as_echo "done" >&6; }
7508 if test -n "$EXEEXT"; then
7510 am__EXEEXT_FALSE
='#'
7516 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7517 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
7518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7520 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7521 as_fn_error $?
"conditional \"AMDEP\" was never defined.
7522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7524 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7525 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
7526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7529 if test -z "${BIND_ATF_TRUE}" && test -z "${BIND_ATF_FALSE}"; then
7530 as_fn_error $?
"conditional \"BIND_ATF\" was never defined.
7531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7533 if test -z "${HAVE_ATF_TRUE}" && test -z "${HAVE_ATF_FALSE}"; then
7534 as_fn_error $?
"conditional \"HAVE_ATF\" was never defined.
7535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7537 if test -z "${HAVE_BINDDIR_TRUE}" && test -z "${HAVE_BINDDIR_FALSE}"; then
7538 as_fn_error $?
"conditional \"HAVE_BINDDIR\" was never defined.
7539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7541 if test -z "${INSTALL_BIND_TRUE}" && test -z "${INSTALL_BIND_FALSE}"; then
7542 as_fn_error $?
"conditional \"INSTALL_BIND\" was never defined.
7543 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7546 : "${CONFIG_STATUS=./config.status}"
7548 ac_clean_files_save
=$ac_clean_files
7549 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7551 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7553 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7555 # Generated by $as_me.
7556 # Run this file to recreate the current configuration.
7557 # Compiler output produced by configure, useful for debugging
7558 # configure, is in config.log if it exists.
7564 SHELL=\${CONFIG_SHELL-$SHELL}
7567 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7568 ## -------------------- ##
7569 ## M4sh Initialization. ##
7570 ## -------------------- ##
7572 # Be more Bourne compatible
7573 DUALCASE
=1; export DUALCASE
# for MKS sh
7574 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7577 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7578 # is contrary to our usage. Disable this feature.
7579 alias -g '${1+"$@"}'='"$@"'
7580 setopt NO_GLOB_SUBST
7582 case `(set -o) 2>/dev/null` in #(
7594 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7595 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7596 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7597 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7598 # Prefer a ksh shell builtin over an external printf program on Solaris,
7599 # but without wasting forks for bash or zsh.
7600 if test -z "$BASH_VERSION$ZSH_VERSION" \
7601 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7602 as_echo='print
-r --'
7603 as_echo_n='print
-rn --'
7604 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7605 as_echo='printf %s
\n'
7606 as_echo_n='printf %s
'
7608 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7609 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7610 as_echo_n='/usr
/ucb
/echo -n'
7612 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7613 as_echo_n_body='eval
7617 expr "X$arg" : "X\\(.*\\)$as_nl";
7618 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7620 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7622 export as_echo_n_body
7623 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7626 as_echo='sh
-c $as_echo_body as_echo
'
7629 # The user is always right.
7630 if test "${PATH_SEPARATOR+set}" != set; then
7632 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7633 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7640 # We need space, tab and new line, in precisely that order. Quoting is
7641 # there to prevent editors from complaining about space-tab.
7642 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7643 # splitting by setting IFS to empty value.)
7646 # Find who we are. Look in the path if we contain no directory separator.
7649 *[\\/]* ) as_myself=$0 ;;
7650 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 test -z "$as_dir" && as_dir=.
7655 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7661 # We did not find ourselves, most probably we were run as `sh COMMAND'
7662 # in which case we are not to be found in the path.
7663 if test "x$as_myself" = x
; then
7666 if test ! -f "$as_myself"; then
7667 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7671 # Unset variables that we do not need and which cause bugs (e.g. in
7672 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7673 # suppresses any "Segmentation fault" message there. '((' could
7674 # trigger a bug in pdksh 5.2.14.
7675 for as_var
in BASH_ENV ENV MAIL MAILPATH
7676 do eval test x\
${$as_var+set} = xset \
7677 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7690 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7693 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7694 # ----------------------------------------
7695 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7696 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7697 # script with STATUS, using 1 if that was 0.
7700 as_status
=$1; test $as_status -eq 0 && as_status
=1
7702 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7703 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7705 $as_echo "$as_me: error: $2" >&2
7706 as_fn_exit
$as_status
7710 # as_fn_set_status STATUS
7711 # -----------------------
7712 # Set $? to STATUS, without forking.
7716 } # as_fn_set_status
7720 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7730 # Portably unset VAR.
7733 { eval $1=; unset $1;}
7735 as_unset
=as_fn_unset
7736 # as_fn_append VAR VALUE
7737 # ----------------------
7738 # Append the text in VALUE to the end of the definition contained in VAR. Take
7739 # advantage of any shell optimizations that allow amortized linear growth over
7740 # repeated appends, instead of the typical quadratic growth present in naive
7742 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7743 eval 'as_fn_append ()
7754 # as_fn_arith ARG...
7755 # ------------------
7756 # Perform arithmetic evaluation on the ARGs, and store the result in the
7757 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7758 # must be portable across $(()) and expr.
7759 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7760 eval 'as_fn_arith ()
7767 as_val
=`expr "$@" || test $? -eq 1`
7772 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7773 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7779 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7780 as_basename
=basename
7785 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7791 as_me
=`$as_basename -- "$0" ||
7792 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7793 X"$0" : 'X\(//\)$' \| \
7794 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7796 sed '/^.*\/\([^/][^/]*\)\/*$/{
7810 # Avoid depending upon Character Ranges.
7811 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7812 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7813 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7814 as_cr_digits
='0123456789'
7815 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7817 ECHO_C
= ECHO_N
= ECHO_T
=
7818 case `echo -n x` in #(((((
7820 case `echo 'xy\c'` in
7821 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7823 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7830 rm -f conf$$ conf$$.exe conf$$.
file
7831 if test -d conf$$.dir
; then
7832 rm -f conf$$.dir
/conf$$.
file
7835 mkdir conf$$.dir
2>/dev
/null
7837 if (echo >conf$$.
file) 2>/dev
/null
; then
7838 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7840 # ... but there are two gotchas:
7841 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7842 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7843 # In both cases, we have to default to `cp -pR'.
7844 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7846 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7854 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7855 rmdir conf$$.dir
2>/dev
/null
7860 # Create "$as_dir" as a directory, including parents if necessary.
7865 -*) as_dir
=.
/$as_dir;;
7867 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7871 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7872 *) as_qdir
=$as_dir;;
7874 as_dirs
="'$as_qdir' $as_dirs"
7875 as_dir
=`$as_dirname -- "$as_dir" ||
7876 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7877 X"$as_dir" : 'X\(//\)[^/]' \| \
7878 X"$as_dir" : 'X\(//\)$' \| \
7879 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7880 $as_echo X"$as_dir" |
7881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7898 test -d "$as_dir" && break
7900 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7901 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
7905 if mkdir
-p .
2>/dev
/null
; then
7906 as_mkdir_p
='mkdir -p "$as_dir"'
7908 test -d .
/-p && rmdir .
/-p
7913 # as_fn_executable_p FILE
7914 # -----------------------
7915 # Test if FILE is an executable regular file.
7916 as_fn_executable_p
()
7918 test -f "$1" && test -x "$1"
7919 } # as_fn_executable_p
7921 as_executable_p
=as_fn_executable_p
7923 # Sed expression to map a string onto a valid CPP name.
7924 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7926 # Sed expression to map a string onto a valid variable name.
7927 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7931 ## ----------------------------------- ##
7932 ## Main body of $CONFIG_STATUS script. ##
7933 ## ----------------------------------- ##
7935 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7938 # Save the log message, to keep $0 and so on meaningful, and to
7939 # report actual input values of CONFIG_FILES etc. instead of their
7940 # values after options handling.
7942 This file was extended by DHCP $as_me 4.4.0-dev, which was
7943 generated by GNU Autoconf 2.69. Invocation command line was
7945 CONFIG_FILES = $CONFIG_FILES
7946 CONFIG_HEADERS = $CONFIG_HEADERS
7947 CONFIG_LINKS = $CONFIG_LINKS
7948 CONFIG_COMMANDS = $CONFIG_COMMANDS
7951 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7956 case $ac_config_files in *"
7957 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7960 case $ac_config_headers in *"
7961 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7966 # Files that config.status was made for.
7967 config_files="$ac_config_files"
7968 config_headers="$ac_config_headers"
7969 config_commands="$ac_config_commands"
7973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7975 \`$as_me' instantiates files and other configuration actions
7976 from templates according to the current configuration. Unless the files
7977 and actions are specified as TAGs, all are instantiated by default.
7979 Usage: $0 [OPTION]... [TAG]...
7981 -h, --help print this help, then exit
7982 -V, --version print version number and configuration settings, then exit
7983 --config print configuration, then exit
7984 -q, --quiet, --silent
7985 do not print progress messages
7986 -d, --debug don't remove temporary files
7987 --recheck update $as_me by reconfiguring in the same conditions
7988 --file=FILE[:TEMPLATE]
7989 instantiate the configuration file FILE
7990 --header=FILE[:TEMPLATE]
7991 instantiate the configuration header FILE
7993 Configuration files:
7996 Configuration headers:
7999 Configuration commands:
8002 Report bugs to <dhcp-users@isc.org>."
8005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8006 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8008 DHCP config.status 4.4.0-dev
8009 configured by $0, generated by GNU Autoconf 2.69,
8010 with options \\"\$ac_cs_config\\"
8012 Copyright (C) 2012 Free Software Foundation, Inc.
8013 This config.status script is free software; the Free Software Foundation
8014 gives unlimited permission to copy, distribute and modify it."
8021 test -n "\$AWK" || AWK=awk
8024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8025 # The default lists apply if the user does not specify any file.
8031 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8032 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8036 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8048 # Handling of the options.
8049 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8051 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8052 $as_echo "$ac_cs_version"; exit ;;
8053 --config |
--confi |
--conf |
--con |
--co |
--c )
8054 $as_echo "$ac_cs_config"; exit ;;
8055 --debug |
--debu |
--deb |
--de |
--d |
-d )
8057 --file |
--fil |
--fi |
--f )
8060 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8061 '') as_fn_error $?
"missing file argument" ;;
8063 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8064 ac_need_defaults
=false
;;
8065 --header |
--heade |
--head |
--hea )
8068 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8070 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8071 ac_need_defaults
=false
;;
8073 # Conflict between --help and --header
8074 as_fn_error $?
"ambiguous option: \`$1'
8075 Try \`$0 --help' for more information.";;
8076 --help |
--hel |
-h )
8077 $as_echo "$ac_cs_usage"; exit ;;
8078 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8079 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8083 -*) as_fn_error $?
"unrecognized option: \`$1'
8084 Try \`$0 --help' for more information." ;;
8086 *) as_fn_append ac_config_targets
" $1"
8087 ac_need_defaults
=false
;;
8093 ac_configure_extra_args
=
8095 if $ac_cs_silent; then
8097 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8102 if \$ac_cs_recheck; then
8103 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8105 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8106 CONFIG_SHELL='$SHELL'
8112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8116 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8117 ## Running $as_me. ##
8123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8127 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8133 # Handling of arguments.
8134 for ac_config_target
in $ac_config_targets
8136 case $ac_config_target in
8137 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
8138 "includes/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS includes/config.h" ;;
8139 "$srcdir/bind/Makefile") CONFIG_FILES
="$CONFIG_FILES $srcdir/bind/Makefile" ;;
8140 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8141 "client/Makefile") CONFIG_FILES
="$CONFIG_FILES client/Makefile" ;;
8142 "client/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES client/tests/Makefile" ;;
8143 "common/Makefile") CONFIG_FILES
="$CONFIG_FILES common/Makefile" ;;
8144 "common/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES common/tests/Makefile" ;;
8145 "dhcpctl/Makefile") CONFIG_FILES
="$CONFIG_FILES dhcpctl/Makefile" ;;
8146 "includes/Makefile") CONFIG_FILES
="$CONFIG_FILES includes/Makefile" ;;
8147 "omapip/Makefile") CONFIG_FILES
="$CONFIG_FILES omapip/Makefile" ;;
8148 "relay/Makefile") CONFIG_FILES
="$CONFIG_FILES relay/Makefile" ;;
8149 "server/Makefile") CONFIG_FILES
="$CONFIG_FILES server/Makefile" ;;
8150 "tests/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
8151 "tests/unittest.sh") CONFIG_FILES
="$CONFIG_FILES tests/unittest.sh" ;;
8152 "server/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES server/tests/Makefile" ;;
8153 "doc/devel/doxyfile") CONFIG_FILES
="$CONFIG_FILES doc/devel/doxyfile" ;;
8155 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8160 # If the user did not use the arguments to specify the items to instantiate,
8161 # then the envvar interface is used. Set only those that are not.
8162 # We use the long form for the default assignment because of an extremely
8163 # bizarre bug on SunOS 4.1.3.
8164 if $ac_need_defaults; then
8165 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8166 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8167 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8170 # Have a temporary directory for convenience. Make it in the build tree
8171 # simply because there is no reason against having it here, and in addition,
8172 # creating and moving files from /tmp can sometimes cause problems.
8173 # Hook for its removal unless debugging.
8174 # Note that there is a small window in which the directory will not be cleaned:
8175 # after its creation but before its name has been assigned to `$tmp'.
8179 trap 'exit_status=$?
8181 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8183 trap 'as_fn_exit 1' 1 2 13 15
8185 # Create a (secure) tmp directory for tmp files.
8188 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8192 tmp
=.
/conf$$
-$RANDOM
8193 (umask 077 && mkdir
"$tmp")
8194 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8197 # Set up the scripts for CONFIG_FILES section.
8198 # No need to generate them if there are no CONFIG_FILES.
8199 # This happens for instance with `./config.status config.h'.
8200 if test -n "$CONFIG_FILES"; then
8203 ac_cr
=`echo X | tr X '\015'`
8204 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8205 # But we know of no other shell where ac_cr would be empty at this
8206 # point, so we can use a bashism as a fallback.
8207 if test "x$ac_cr" = x
; then
8208 eval ac_cr
=\$
\'\\r
\'
8210 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8211 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8217 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8222 echo "cat >conf$$subs.awk <<_ACEOF" &&
8223 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8226 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8227 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8229 for ac_last_try in false false false false false :; do
8230 . ./conf$$subs.sh ||
8231 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8233 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8234 if test $ac_delim_n = $ac_delim_num; then
8236 elif $ac_last_try; then
8237 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8239 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8245 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8249 s/^/S["/; s
/!.
*/"]=/
8259 s/\(.\{148\}\)..*/\1/
8261 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8266 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8273 s/\(.\{148\}\)..*/\1/
8275 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8279 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8284 ' <conf$$subs.awk | sed '
8289 ' >>$CONFIG_STATUS || ac_write_fail=1
8290 rm -f conf$$subs.awk
8291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8293 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8294 for (key in S) S_is_set[key] = 1
8300 nfields = split(line, field, "@
")
8302 len = length(field[1])
8303 for (i = 2; i < nfields; i++) {
8305 keylen = length(key)
8306 if (S_is_set[key]) {
8308 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8309 len += length(value) + length(field[++i])
8320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8321 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8322 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8325 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8326 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8329 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8330 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8331 # trailing colons and then remove the whole line if VPATH becomes empty
8332 # (actually we leave an empty line to preserve line numbers).
8333 if test "x
$srcdir" = x.; then
8334 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8353 fi # test -n "$CONFIG_FILES"
8355 # Set up the scripts for CONFIG_HEADERS section.
8356 # No need to generate them if there are no CONFIG_HEADERS.
8357 # This happens for instance with `./config.status Makefile'.
8358 if test -n "$CONFIG_HEADERS"; then
8359 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
8363 # Transform confdefs.h into an awk script `defines.awk', embedded as
8364 # here-document in config.status, that substitutes the proper values into
8365 # config.h.in to produce config.h.
8367 # Create a delimiter string that does not exist in confdefs.h, to ease
8368 # handling of long lines.
8370 for ac_last_try in false false :; do
8371 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
8372 if test -z "$ac_tt"; then
8374 elif $ac_last_try; then
8375 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
8377 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8381 # For the awk script, D is an array of macro values keyed by name,
8382 # likewise P contains macro parameters if any. Preserve backslash
8383 # newline sequences.
8385 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8387 s/.\{148\}/&'"$ac_delim"'/g
8390 s/^[ ]*#[ ]*define[ ][ ]*/ /
8397 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8399 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8403 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8404 D["\
1"]=" \
3\\\\\\n
"\\/p
8406 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8411 s/.\{148\}/&'"$ac_delim"'/g
8416 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8419 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8421 ' <confdefs.h | sed '
8422 s/'"$ac_delim"'/"\\\
8423 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8426 for (key in D) D_is_set[key] = 1
8429 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8431 split(line, arg, " ")
8432 if (arg[1] == "#") {
8436 defundef
= substr
(arg
[1], 2)
8439 split(mac1
, mac2
, "(") #)
8441 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8442 if (D_is_set
[macro
]) {
8443 # Preserve the white space surrounding the "#".
8444 print prefix
"define", macro P
[macro
] D
[macro
]
8447 # Replace #undef with comments. This is necessary, for example,
8448 # in the case of _POSIX_SOURCE, which is predefined and required
8449 # on some systems where configure will not decide to define it.
8450 if (defundef
== "undef") {
8451 print
"/*", prefix defundef
, macro
, "*/"
8459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8460 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
8461 fi # test -n "$CONFIG_HEADERS"
8464 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8469 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8471 case $ac_mode$ac_tag in
8473 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8474 :[FH
]-) ac_tag
=-:-;;
8475 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8492 -) ac_f
="$ac_tmp/stdin";;
8493 *) # Look for the file first in the build tree, then in the source tree
8494 # (if the path is not absolute). The absolute path cannot be DOS-style,
8495 # because $ac_f cannot contain `:'.
8499 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8501 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8503 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8504 as_fn_append ac_file_inputs
" '$ac_f'"
8507 # Let's still pretend it is `configure' which instantiates (i.e., don't
8508 # use $as_me), people would be surprised to read:
8509 # /* config.h. Generated by config.status. */
8510 configure_input
='Generated from '`
8511 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8513 if test x
"$ac_file" != x-
; then
8514 configure_input
="$ac_file. $configure_input"
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8516 $as_echo "$as_me: creating $ac_file" >&6;}
8518 # Neutralize special characters interpreted by sed in replacement strings.
8519 case $configure_input in #(
8520 *\
&* |
*\|
* |
*\\* )
8521 ac_sed_conf_input
=`$as_echo "$configure_input" |
8522 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8523 *) ac_sed_conf_input
=$configure_input;;
8527 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
8528 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
8533 ac_dir
=`$as_dirname -- "$ac_file" ||
8534 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8535 X"$ac_file" : 'X\(//\)[^/]' \| \
8536 X"$ac_file" : 'X\(//\)$' \| \
8537 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8538 $as_echo X"$ac_file" |
8539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8556 as_dir
="$ac_dir"; as_fn_mkdir_p
8560 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8562 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8563 # A ".." for each directory in $ac_dir_suffix.
8564 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8565 case $ac_top_builddir_sub in
8566 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8567 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8570 ac_abs_top_builddir
=$ac_pwd
8571 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8572 # for backward compatibility:
8573 ac_top_builddir
=$ac_top_build_prefix
8576 .
) # We are building in place.
8578 ac_top_srcdir
=$ac_top_builddir_sub
8579 ac_abs_top_srcdir
=$ac_pwd ;;
8580 [\\/]* | ?
:[\\/]* ) # Absolute name.
8581 ac_srcdir
=$srcdir$ac_dir_suffix;
8582 ac_top_srcdir
=$srcdir
8583 ac_abs_top_srcdir
=$srcdir ;;
8585 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8586 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8587 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8589 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8599 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8600 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8604 [\\/$
]* | ?
:[\\/]* ) ;;
8605 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
8610 # Neutralize VPATH when `$srcdir' = `.'.
8611 # Shell code in configure.ac might set extrasub.
8612 # FIXME: do we really want to maintain this feature?
8613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8614 ac_sed_extra="$ac_vpsub
8617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8619 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8620 s|@configure_input@|
$ac_sed_conf_input|
;t t
8621 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8622 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8623 s
&@srcdir@
&$ac_srcdir&;t t
8624 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8625 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8626 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8627 s
&@builddir@
&$ac_builddir&;t t
8628 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8629 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8630 s
&@INSTALL@
&$ac_INSTALL&;t t
8631 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
8633 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8634 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8637 rm -f "$ac_tmp/stdin
"
8639 -) cat "$ac_tmp/out
" && rm -f "$ac_tmp/out
";;
8640 *) rm -f "$ac_file" && mv "$ac_tmp/out
" "$ac_file";;
8642 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8648 if test x"$ac_file" != x-; then
8650 $as_echo "/* $configure_input */" \
8651 && eval '$AWK -f "$ac_tmp/defines.
awk"' "$ac_file_inputs"
8652 } >"$ac_tmp/config.h
" \
8653 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8654 if diff "$ac_file" "$ac_tmp/config.h
" >/dev/null 2>&1; then
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged
" >&5
8656 $as_echo "$as_me: $ac_file is unchanged
" >&6;}
8659 mv "$ac_tmp/config.h
" "$ac_file" \
8660 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8663 $as_echo "/* $configure_input */" \
8664 && eval '$AWK -f "$ac_tmp/defines.
awk"' "$ac_file_inputs" \
8665 || as_fn_error $? "could not create
-" "$LINENO" 5
8667 # Compute "$ac_file"'s index in $config_headers.
8670 for _am_header in $config_headers :; do
8672 $_am_arg | $_am_arg:* )
8675 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8678 echo "timestamp
for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8679 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8680 X"$_am_arg" : 'X\(//\)[^/]' \| \
8681 X"$_am_arg" : 'X\(//\)$' \| \
8682 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8683 $as_echo X"$_am_arg" |
8684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8700 s/.*/./; q'`/stamp-h$_am_stamp_count
8703 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing
$ac_file commands
" >&5
8704 $as_echo "$as_me: executing
$ac_file commands
" >&6;}
8709 case $ac_file$ac_mode in
8710 "depfiles
":C) test x"$AMDEP_TRUE" != x"" || {
8711 # Older Autoconf quotes --file arguments for eval, but not when files
8712 # are listed without --file. Let's play safe and only enable the eval
8713 # if we detect the quoting.
8714 case $CONFIG_FILES in
8715 *\'*) eval set x "$CONFIG_FILES" ;;
8716 *) set x $CONFIG_FILES ;;
8721 # Strip MF so we end up with the name of the file.
8722 mf=`echo "$mf" | sed -e 's/:.*$//'`
8723 # Check whether this is an Automake generated Makefile or not.
8724 # We used to match only the files named 'Makefile.in', but
8725 # some people rename them; so instead we look at the file content.
8726 # Grep'ing the first line is not enough: some people post-process
8727 # each Makefile.in and add a new line on top of each file to say so.
8728 # Grep'ing the whole file is not good either: AIX grep has a line
8729 # limit of 2048, but all sed's we know have understand at least 4000.
8730 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8731 dirpart=`$as_dirname -- "$mf" ||
8732 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8733 X"$mf" : 'X\(//\)[^/]' \| \
8734 X"$mf" : 'X\(//\)$' \| \
8735 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8757 # Extract the definition of DEPDIR, am__include, and am__quote
8758 # from the Makefile without running 'make'.
8759 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8760 test -z "$DEPDIR" && continue
8761 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8762 test -z "$am__include" && continue
8763 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8764 # Find all dependency output files, they are included files with
8765 # $(DEPDIR) in their names. We invoke sed twice because it is the
8766 # simplest approach to changing $(DEPDIR) to its actual value in the
8768 for file in `sed -n "
8769 s
/^
$am__include $am__quote\
(.
*(DEPDIR
).
*\
)$am__quote"'$/\1/p' <"$mf" | \
8770 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8771 # Make sure the directory exists.
8772 test -f "$dirpart/$file" && continue
8773 fdir=`$as_dirname -- "$file" ||
8774 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8775 X"$file" : 'X\(//\)[^/]' \| \
8776 X"$file" : 'X\(//\)$' \| \
8777 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8796 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8797 # echo "creating
$dirpart/$file"
8798 echo '# dummy' > "$dirpart/$file"
8810 ac_clean_files=$ac_clean_files_save
8812 test $ac_write_fail = 0 ||
8813 as_fn_error $? "write failure creating
$CONFIG_STATUS" "$LINENO" 5
8816 # configure is writing to config.log, and then calls config.status.
8817 # config.status does its own redirection, appending to config.log.
8818 # Unfortunately, on DOS this fails, as config.log is still kept open
8819 # by configure, so config.status won't be able to write to it; its
8820 # output is simply discarded. So we exec the FD to /dev/null,
8821 # effectively closing config.log, so it can be properly (re)opened and
8822 # appended to by config.status. When coming back to configure, we
8823 # need to make the FD available again.
8824 if test "$no_create" != yes; then
8826 ac_config_status_args=
8827 test "$silent" = yes &&
8828 ac_config_status_args="$ac_config_status_args --quiet"
8830 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8832 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8833 # would make configure fail if this is the last instruction.
8834 $ac_cs_success || as_fn_exit 1
8836 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: unrecognized options
: $ac_unrecognized_opts" >&5
8838 $as_echo "$as_me: WARNING
: unrecognized options
: $ac_unrecognized_opts" >&2;}
8842 if test "$enable_dhcpv4o6" = "yes"; then
8843 DHCP_VERSIONS="DHCPv4
, DHCPv6 and DHCPv4-over-DHCPv6
"
8844 elif test "$enable_dhcpv6" != "no
"; then
8845 DHCP_VERSIONS="DHCPv4 and DHCPv6
"
8847 DHCP_VERSIONS="DHCPv4
"
8850 cat > config.report << END
8852 ISC DHCP source configure results:
8853 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
8857 Version: $PACKAGE_VERSION
8865 DHCP versions: $DHCP_VERSIONS
8868 debug: $enable_debug
8869 failover: $enable_failover
8870 execute: $enable_execute
8871 binary-leases: $enable_binary_leases
8872 dhcpv6: $enable_dhcpv6
8873 delayed-ack: $enable_delayed_ack
8876 ATF unittests : $atf_path
8879 # TODO: Add Perl system tests
8881 if test "$atf_path" != "no
"
8883 echo "ATF_CFLAGS
: $ATF_CFLAGS" >> config.report
8884 echo "ATF_LDFLAGS
: $ATF_LDFLAGS" >> config.report
8885 echo "ATF_BIN
: $ATF_BIN" >> config.report
8892 echo Now you can type "make" to build ISC DHCP